refactor(bundle-source): Rename into Endo org
MODIFY
package.json
package.json
"useWorkspaces": true,
"workspaces": [
"packages/base64",
+ "packages/bundle-source",
"packages/captp",
"packages/cjs-module-analyzer",
"packages/compartment-mapper",

DELETE
packages/bundle-source/.gitignore
-# emacs
-*~
-
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# Bower dependency directory (https://bower.io/)
-bower_components
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (https://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules
-jspm_packages/
-
-# TypeScript v1 declaration files
-typings/
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# dotenv environment variables file
-.env
-
-# next.js build output
-.next
-
-.idea/
-
-# dist files
-/dist
-
-# generated integration-test files
-integration-test/.cache
-integration-test/bundles
-integration-test/transform-tests/output
-
-# generated Sphinx/ReadTheDocs files
-/docs/build/

MODIFY
packages/bundle-source/README.md
packages/bundle-source/README.md
# Bundle Source
-This package creates source bundles from ES Modules, compatible with Agoric contracts and SwingSet vats.
+This package creates source bundles from ES Modules, compatible with Endo
+applications, Agoric contracts, and SwingSet vats.
To bundle your sources, first do
```js
-import bundleSource from '@agoric/bundle-source';
+import bundleSource from '@endo/bundle-source';
const sourceBundleP = bundleSource(new URL('../path/to/toplevel', import.meta.url).pathname);
```

MODIFY
packages/bundle-source/package.json
packages/bundle-source/package.json
{
- "name": "@agoric/bundle-source",
+ "name": "@endo/bundle-source",
"version": "2.0.1",
"description": "Create source bundles from ES Modules",
"type": "module",
"lint": "eslint '**/*.js'"
},
"devDependencies": {
- "@agoric/lockdown": "^0.1.1",
+ "@endo/lockdown": "^0.1.1",
+ "@endo/init": "^0.5.29",
"@endo/ses-ava": "^0.2.13",
"ava": "^3.12.1"
},
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"acorn": "^8.2.4",
- "c8": "^7.7.2",
+ "c8": "^7.7.3",
"rollup": "^2.47.0",
"source-map": "^0.7.3"
},
],
"repository": {
"type": "git",
- "url": "git+https://github.com/Agoric/agoric-sdk"
+ "url": "git+https://github.com/endojs/endo"
},
- "author": "Agoric",
+ "author": "Endo contributors",
"license": "Apache-2.0",
"bugs": {
- "url": "https://github.com/Agoric/agoric-sdk/issues"
+ "url": "https://github.com/endojs/endo/issues"
},
- "homepage": "https://github.com/Agoric/agoric-sdk#readme",
+ "homepage": "https://github.com/endojs/endo#readme",
"publishConfig": {
"access": "public"
},
},
"eslintConfig": {
"extends": [
- "@agoric"
+ "@endo"
]
},
"prettier": {

DELETE
packages/bundle-source/scripts/npm-audit-fix.sh
-git clone https://github.com/AgoricBot/???.git
-cd ???
-git remote add upstream https://github.com/Agoric/???.git
-git remote set-url origin https://AgoricBot:$GITHUB_TOKEN@github.com/AgoricBot/???.git
-git fetch upstream
-git checkout master
-git rebase upstream/master
-git config user.email "kate+agoricbot@agoric.com"
-git config user.name "AgoricBot"
-git config --global hub.protocol https
-hub push origin master
-
-if git ls-remote --heads --exit-code origin npm-audit-fix ; then
- git push --delete origin npm-audit-fix
-fi
-
-git checkout -b npm-audit-fix
-
-if npm audit ; then
- echo "Nothing to fix"
-else
- npm audit fix
- files_changed=true
-fi
-
-if [ "$files_changed" = true ] ; then
- git add .
- git commit -m "results of running npm audit fix"
- git push origin npm-audit-fix
- hub pull-request --no-edit --base Agoric/???:master
-fi

DELETE
packages/bundle-source/scripts/setup-agoric-bot.md
-# AgoricBot
-
-AgoricBot is a github user that we've created to automatically create
-Pull Requests for anything that can be automatically fixed as a result
-of npm audit.
-
-# Setting up AgoricBot
-
-1. Sign in as AgoricBot on Github (see Kate for the password)
-2. Go to the github page for the Agoric repo that you have just
- created
-3. Fork the repo as AgoricBot
-4. Change npm-audit-fix.sh (in this folder) to use this forked repo
- and the actual Agoric repo instead of the '???' fillers
-5. On CircleCI (see setup-circleci.md in the root directory for more),
- go to your project's settings and look for 'Environmental
- Variables' under Build Settings
-6. Import the environmental variable from another repo, like SES. The
- variable should be named GITHUB_TOKEN and have a value that ends
- with "c166". (Note that the UI may not change once you have
- imported until you reload the page.)
-

MODIFY
packages/bundle-source/test/prepare-test-env-ava.js
packages/bundle-source/test/prepare-test-env-ava.js
/* eslint-disable import/no-extraneous-dependencies */
-import '@agoric/install-ses/pre-bundle-source.js';
-import '@agoric/lockdown/commit-debug.js';
+import '@endo/init/pre-bundle-source.js';
+import '@endo/lockdown/commit-debug.js';
import { wrapTest } from '@endo/ses-ava';
import rawTest from 'ava';

MODIFY
packages/bundle-source/test/sanity.js
packages/bundle-source/test/sanity.js
-import { lockdown } from '@agoric/lockdown';
+import { lockdown } from '@endo/lockdown';
import { decodeBase64 } from '@endo/base64';
import { parseArchive } from '@endo/compartment-mapper/import-archive.js';

refactor(bundle-source): Rename into Endo org