refactor(init): Rename from install-ses
MODIFY
package.json
package.json
"packages/eslint-config",
"packages/eslint-plugin",
"packages/eventual-send",
- "packages/install-ses",
+ "packages/init",
"packages/lockdown",
"packages/lp32",
"packages/marshal",

MODIFY
packages/init/NEWS.md
packages/init/NEWS.md
## Next Release
-The `@endo/import-ses` package exists so the "main" of production code can
+The `@endo/init` package exists so the "main" of production code can
start with the following import or its equivalent.
```js
-import '@endo/install-ses';
+import '@endo/init';
```
But production code must also be tested. Normal ocap discipline of passing
explicit arguments into the `lockdown`
call would require an awkward structuring of start modules, since
-the `install-ses` module calls `lockdown` during its initialization,
+the `init` module calls `lockdown` during its initialization,
before any explicit code in the start module gets to run. Even if other code
does get to run first, the `lockdown` call in this module happens during
module initialization, before it can legitimately receive parameters by
explicit parameter passing.
-Instead, for now, `install-ses` violates normal ocap discipline by feature
+Instead, for now, `init` violates normal ocap discipline by feature
testing global state for a passed "parameter". This is something that a
module can but normally should not do, during initialization or otherwise.
Initialization is often awkward.
-The `install-ses` module tests, first,
+The `init` module tests, first,
for a JavaScript global named `LOCKDOWN_OPTIONS`, and second, for an environment
variable named `LOCKDOWN_OPTIONS`. If either is present, its value should be
a JSON encoding of the options bag to pass to the `lockdown` call. If so,
-then `install-ses` calls `lockdown` with those options. If there is no such
-feature, `install-ses` calls `lockdown` with appropriate settings for
+then `init` calls `lockdown` with those options. If there is no such
+feature, `init` calls `lockdown` with appropriate settings for
production use.

MODIFY
packages/init/debug.js
packages/init/debug.js
-// install-ses.js - call lockdown with default Agoric shims
+// debug.js - call lockdown with default Agoric shims
// Install our HandledPromise global.
import './pre-remoting.js';

RENAME
packages/init/install-ses.js
packages/init/index.js
-// install-ses.js - call lockdown with default Agoric shims
+// index.js - call lockdown with default Agoric shims
// Install our HandledPromise global.
import './pre-remoting.js';

MODIFY
packages/init/package.json
packages/init/package.json
{
- "name": "@endo/install-ses",
+ "name": "@endo/init",
"version": "0.5.29",
"description": "Prepare Endo environment on import",
"type": "module",
- "main": "install-ses.js",
+ "main": "index.js",
"scripts": {
"build": "exit 0",
"test": "ava",

RENAME
packages/init/test/test-install-ses.js
packages/init/test/test-init.js
-import '../install-ses.js';
+import '../index.js';
import test from 'ava';
test('globals are present', t => {

refactor(init): Rename from install-ses