@anhlp/alp-cli 0.0.1-beta.4 → 0.0.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/THIRD-PARTY-NOTICES.txt +26 -1
  2. package/dist/acp/main.js +1 -1
  3. package/dist/acp.js +152 -33
  4. package/dist/alp-web/THIRD-PARTY-NOTICES.txt +666 -0
  5. package/dist/alp-web/alp-boundary.json +1 -0
  6. package/dist/alp-web/assets/TerminalPanel-BeMws9CP.js +22 -0
  7. package/dist/alp-web/assets/highlighter-BnicKQ_d.js +18 -0
  8. package/dist/alp-web/assets/index-Dl7motn1.js +59 -0
  9. package/dist/alp-web/assets/index-DwqDSiIi.css +1 -0
  10. package/dist/alp-web/index.html +2 -2
  11. package/dist/alp-web.js +529 -172
  12. package/dist/alpd.js +10623 -2570
  13. package/dist/backup.js +1 -1
  14. package/dist/build-manifest.json +22 -2
  15. package/dist/cli.js +28 -3
  16. package/dist/daemon.d.ts +1 -1
  17. package/dist/daemon.js +5 -0
  18. package/dist/interfaces.d.ts +13 -1
  19. package/dist/interfaces.js +95 -11
  20. package/dist/paths.d.ts +1 -0
  21. package/dist/paths.js +2 -1
  22. package/dist/roles.d.ts +15 -0
  23. package/dist/roles.js +16 -0
  24. package/dist/self-update.d.ts +149 -0
  25. package/dist/self-update.js +399 -0
  26. package/dist/sessions.d.ts +4 -0
  27. package/dist/sessions.js +22 -1
  28. package/dist/tasks.js +22 -8
  29. package/dist/terminal-native/README.md +201 -0
  30. package/dist/terminal-native/prebuilt/darwin-arm64/manifest.json +11 -0
  31. package/dist/terminal-native/prebuilt/darwin-arm64/terminal-owner +0 -0
  32. package/dist/terminal-native/prebuilt/darwin-x64/manifest.json +11 -0
  33. package/dist/terminal-native/prebuilt/darwin-x64/terminal-owner +0 -0
  34. package/dist/terminal-native/prebuilt/linux-arm64-glibc/manifest.json +10 -0
  35. package/dist/terminal-native/prebuilt/linux-arm64-glibc/terminal-owner +0 -0
  36. package/dist/terminal-native/prebuilt/linux-arm64-musl/manifest.json +10 -0
  37. package/dist/terminal-native/prebuilt/linux-arm64-musl/terminal-owner +0 -0
  38. package/dist/terminal-native/prebuilt/linux-x64-glibc/manifest.json +10 -0
  39. package/dist/terminal-native/prebuilt/linux-x64-glibc/terminal-owner +0 -0
  40. package/dist/terminal-native/prebuilt/linux-x64-musl/manifest.json +10 -0
  41. package/dist/terminal-native/prebuilt/linux-x64-musl/terminal-owner +0 -0
  42. package/dist/terminal-native/terminal-owner.c +389 -0
  43. package/dist/terminal.d.ts +5 -0
  44. package/dist/terminal.js +4 -3
  45. package/dist/usage.d.ts +1 -1
  46. package/dist/usage.js +14 -5
  47. package/dist/web-service.d.ts +22 -4
  48. package/dist/web-service.js +32 -8
  49. package/package.json +6 -5
  50. package/src/cli.js +35 -4
  51. package/src/daemon.js +3 -0
  52. package/src/interfaces.js +101 -12
  53. package/src/paths.js +3 -1
  54. package/src/roles.js +26 -0
  55. package/src/self-update.js +406 -0
  56. package/src/sessions.js +23 -2
  57. package/src/tasks.js +22 -8
  58. package/src/terminal.js +4 -3
  59. package/src/usage.js +14 -5
  60. package/src/web-service.js +56 -13
  61. package/dist/alp-web/assets/TerminalPanel-PrU2l3u5.js +0 -16
  62. package/dist/alp-web/assets/index-BJdBTDFX.css +0 -1
  63. package/dist/alp-web/assets/index-DpfiPv5s.js +0 -52
  64. package/src/web/grant.js +0 -204
  65. package/src/web/main.js +0 -285
  66. package/src/web/serve.js +0 -144
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@anhlp/alp-cli",
3
- "version": "0.0.1-beta.4",
3
+ "version": "0.0.1-beta.7",
4
4
  "type": "module",
5
5
  "description": "ALP cli module",
6
6
  "files": [
7
7
  "src",
8
+ "!src/web",
8
9
  "dist",
9
10
  "NOTICE"
10
11
  ],
@@ -126,9 +127,9 @@
126
127
  "node": ">=22.12"
127
128
  },
128
129
  "dependencies": {
129
- "@anhlp/alp-core": "0.0.1-beta.4",
130
- "@anhlp/alp-client": "0.0.1-beta.4",
131
- "@anhlp/alp-protocol": "0.0.1-beta.4",
130
+ "@anhlp/alp-core": "0.0.1-beta.7",
131
+ "@anhlp/alp-client": "0.0.1-beta.7",
132
+ "@anhlp/alp-protocol": "0.0.1-beta.7",
132
133
  "smol-toml": "1.9.0",
133
134
  "@agentclientprotocol/sdk": "1.7.0",
134
135
  "@anthropic-ai/claude-agent-sdk": "^0.3.292"
@@ -160,6 +161,6 @@
160
161
  "node-pty": "1.2.0-beta.15"
161
162
  },
162
163
  "devDependencies": {
163
- "@anhlp/alp-gateway": "0.0.1-beta.4"
164
+ "@anhlp/alp-gateway": "0.0.1-beta.7"
164
165
  }
165
166
  }
package/src/cli.js CHANGED
@@ -6,21 +6,52 @@ import { scrubText } from '@anhlp/alp-core/log';
6
6
  import { USAGE, UsageError } from './usage.js';
7
7
  import { project, permissionsCommand, trustCommand, language, verify, doctor } from './projects.js';
8
8
  import { daemon } from './daemon.js';
9
- import { run, ps, attach, send, questions, answer, top, log, board, pause, resume, recall, interrupt } from './sessions.js';
9
+ import { run, ps, attach, send, questions, answer, top, log, board, models, pause, resume, recall, interrupt, compact } from './sessions.js';
10
10
  import { libraryCommand, editCommand, teamsCommand } from './library.js';
11
11
  import { scheduleCommand } from './schedules.js';
12
12
  import { tasksCommand, formulaCommand, taskCommand } from './tasks.js';
13
13
  import { webCommand, acpCommand } from './interfaces.js';
14
14
  import { backupCommand, restoreCommand } from './backup.js';
15
15
  import { terminalCommand } from './terminal.js';
16
+ import { bridgeCommand } from './roles.js';
17
+ import { selfUpdate } from './self-update.js';
18
+ import { bundleInfo } from '@anhlp/alp-core/packaged';
19
+ import { connect, lockAlive, readLock } from '@anhlp/alp-client/index';
16
20
 
17
- const commands = { schedule: scheduleCommand, setup: args => setup(args, alpHome()), init: args => project('init', args), upgrade: args => project('upgrade', args), update: args => project('upgrade', args), daemon, doctor, run, ps, top, attach, send, questions, answer, log, board, tasks: tasksCommand, task: taskCommand, formula: formulaCommand, permissions: permissionsCommand, agents: args => libraryCommand('agents', args), skills: args => libraryCommand('skills', args), mcp: args => ['add', 'rm', 'mv', 'cp', 'test', 'show', 'edit'].includes(args[0]) ? editCommand('mcp', args) : libraryCommand('mcp', args), hooks: args => libraryCommand('hooks', args), providers: args => libraryCommand('providers', args), provider: args => editCommand('providers', args), teams: teamsCommand, trust: trustCommand, agent: args => editCommand('agents', args), team: args => editCommand('teams', args), skill: args => editCommand('skills', args), hook: args => editCommand('hooks', args), verify, recall, pause, resume, language, interrupt, acp: acpCommand, web: webCommand, backup: backupCommand, restore: restoreCommand, terminal: terminalCommand };
21
+ /** The version of this alp: the build's, or the package's. */
22
+ function alpVersion() {
23
+ /* global __ALP_VERSION__ */
24
+ return (typeof __ALP_VERSION__ === 'string' ? __ALP_VERSION__ : JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version);
25
+ }
26
+
27
+ /** The running alpd's version and live sessions, if one runs for this ALP_HOME. */
28
+ async function runningDaemon() {
29
+ const lock = await readLock(alpHome());
30
+ if (!lockAlive(lock)) return undefined;
31
+ const client = await connect(lock.socket, { name: 'alp-cli', version: '1' }).catch(() => undefined);
32
+ if (!client) return { version: lock.version };
33
+ try {
34
+ const status = await client.request('daemon.status');
35
+ return { version: status.version ?? lock.version, sessions: status.sessions };
36
+ } catch {
37
+ return { version: lock.version };
38
+ } finally {
39
+ client.close();
40
+ }
41
+ }
42
+
43
+ /** alp update: the bundle's self-update (t-1807); the template upgrade is alp update-template. */
44
+ async function updateCommand(args) {
45
+ const code = await selfUpdate(args, { bundle: bundleInfo(), version: alpVersion(), daemon: runningDaemon });
46
+ if (code) process.exitCode = code;
47
+ }
48
+
49
+ const commands = { schedule: scheduleCommand, setup: args => setup(args, alpHome()), init: args => project('init', args), 'update-template': args => project('upgrade', args), upgrade: args => project('upgrade', args), update: updateCommand, daemon, doctor, run, ps, top, attach, send, questions, answer, log, board, tasks: tasksCommand, task: taskCommand, formula: formulaCommand, permissions: permissionsCommand, agents: args => libraryCommand('agents', args), skills: args => libraryCommand('skills', args), mcp: args => ['add', 'rm', 'mv', 'cp', 'test', 'show', 'edit'].includes(args[0]) ? editCommand('mcp', args) : libraryCommand('mcp', args), hooks: args => libraryCommand('hooks', args), providers: args => libraryCommand('providers', args), provider: args => editCommand('providers', args), teams: teamsCommand, trust: trustCommand, agent: args => editCommand('agents', args), team: args => editCommand('teams', args), skill: args => editCommand('skills', args), hook: args => editCommand('hooks', args), verify, recall, pause, resume, language, models, interrupt, compact, acp: acpCommand, web: webCommand, backup: backupCommand, restore: restoreCommand, terminal: terminalCommand, bridge: bridgeCommand };
18
50
  const [command, ...args] = process.argv.slice(2);
19
51
  try {
20
52
  if (command === '--version') {
21
53
  // Published builds inject their package version; source execution reads the same metadata.
22
- /* global __ALP_VERSION__ */
23
- console.log(typeof __ALP_VERSION__ === 'string' ? __ALP_VERSION__ : JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version);
54
+ console.log(alpVersion());
24
55
  } else {
25
56
  if (!Object.hasOwn(commands, command)) throw new UsageError();
26
57
  await commands[command](args);
package/src/daemon.js CHANGED
@@ -6,6 +6,7 @@ import { alpHome, connect, lockAlive, readLock, withDaemonLifecycle } from '@anh
6
6
  import { scrubText } from '@anhlp/alp-core/log';
7
7
  import { UsageError } from './usage.js';
8
8
  import { DAEMON_ENTRY } from './paths.js';
9
+ import { runRole } from './roles.js';
9
10
 
10
11
  async function built() {
11
12
  try {
@@ -60,6 +61,8 @@ async function stop() {
60
61
  }
61
62
 
62
63
  async function daemon([action, ...rest]) {
64
+ // alpd itself in this process; its own options (--detach, --service, --startup-timeout=MS) follow.
65
+ if (action === 'run') { await built(); return runRole('daemon', DAEMON_ENTRY, rest); }
63
66
  if (rest.length && !(action === 'status' && rest.length === 1 && rest[0] === '--json')) throw new UsageError();
64
67
  if (action === 'start') {
65
68
  const socket = await start();
package/src/interfaces.js CHANGED
@@ -1,12 +1,15 @@
1
+ import { randomUUID } from 'node:crypto';
1
2
  import { execFile, spawn } from 'node:child_process';
2
- import { readFile, stat } from 'node:fs/promises';
3
+ import { readFile, realpath, stat } from 'node:fs/promises';
3
4
  import path from 'node:path';
4
5
  import { parseArgs } from 'node:util';
5
- import { alpHome, discoverIntegration, startIntegration } from '@anhlp/alp-client/index';
6
+ import { alpHome, connect, daemonPaths, discoverIntegration, startIntegration } from '@anhlp/alp-client/index';
6
7
  import { UsageError } from './usage.js';
7
8
  import { built, start, running } from './daemon.js';
8
9
  import { DAEMON_ENTRY, distributionEntry } from './paths.js';
9
- import { alpWebEntry, refusal, stopPreRenamePaseo, stopWebService, webOwner } from './web-service.js';
10
+ import { entryCommand } from '@anhlp/alp-core/packaged';
11
+ import { runRole } from './roles.js';
12
+ import { alpWebEntry, alpWebScript, isWebClaimed, isWebReady, refusal, stopPreRenamePaseo, stopWebService, webOwner } from './web-service.js';
10
13
 
11
14
  /** The Paseo integration (its web app, bridge and relay) runs as integration `paseo`. */
12
15
  const PASEO = 'paseo';
@@ -53,10 +56,86 @@ async function legacyDescriptorEntry(file, home) {
53
56
  return undefined;
54
57
  }
55
58
 
59
+ /** Whether the current working directory is an ALP project: its grant then covers it. */
60
+ async function currentProject() {
61
+ const cwd = process.cwd();
62
+ return await stat(path.join(cwd, '.alp')).then(info => info.isDirectory(), () => false) ? cwd : undefined;
63
+ }
64
+
56
65
  /** `--project <cwd>` when the directory `alp web` runs in is an ALP project: its grant then covers it. */
57
66
  async function projectArgs() {
58
- const cwd = process.cwd();
59
- return await stat(path.join(cwd, '.alp')).then(info => info.isDirectory(), () => false) ? ['--project', cwd] : [];
67
+ const project = await currentProject();
68
+ return project ? ['--project', project] : [];
69
+ }
70
+
71
+ /**
72
+ * Registers `directory` as a project in alpd via IPC (`project.register`).
73
+ * If alpd cannot be reached or the call fails, this is best-effort.
74
+ * @param {string} home
75
+ * @param {string} directory
76
+ * @param {{ timeoutMs?: number, connectClient?: typeof connect }} [options]
77
+ */
78
+ export async function registerProject(home, directory, { timeoutMs = 5_000, connectClient = connect } = {}) {
79
+ const socket = daemonPaths(home).socket;
80
+ let client;
81
+ let expired = false;
82
+ let timer;
83
+ const work = (async () => {
84
+ const connected = await connectClient(socket, { name: 'alp-cli', version: '1' }, { timeoutMs });
85
+ if (expired) { connected.close(); return; }
86
+ client = connected;
87
+ for (let attempt = 0; attempt < 5 && !expired; attempt++) {
88
+ const list = await client.request('project.list', { limit: 1 }, { timeoutMs }).catch(() => undefined);
89
+ if (expired) return;
90
+ const revision = typeof list?.revision === 'number' ? list.revision : 0;
91
+ try {
92
+ await client.request('project.register', { directory, ifRevision: revision, requestId: randomUUID() }, { timeoutMs });
93
+ break;
94
+ } catch (error) {
95
+ if (error?.data?.reason === 'stale_revision' && attempt < 4) continue;
96
+ break;
97
+ }
98
+ }
99
+ })();
100
+ try {
101
+ // One deadline covers connection/hello and every retry; a late connection is closed above.
102
+ await Promise.race([work.catch(() => {}), new Promise(resolve => {
103
+ timer = setTimeout(() => {
104
+ expired = true;
105
+ try { client?.close(); } catch {}
106
+ resolve(undefined);
107
+ }, timeoutMs);
108
+ })]);
109
+ } finally {
110
+ expired = true;
111
+ clearTimeout(timer);
112
+ try { client?.close(); } catch {}
113
+ }
114
+ }
115
+
116
+ /**
117
+ * Waits until the credential in `<home>/web/credentials.json` contains `project`.
118
+ * Polls for up to `timeoutMs` (default 5,000 ms).
119
+ * @param {string} home
120
+ * @param {string} credentialId
121
+ * @param {string} project
122
+ * @param {{ timeoutMs?: number }} [options]
123
+ */
124
+ async function waitForGrant(home, credentialId, project, { timeoutMs = 5_000 } = {}) {
125
+ const credentialsFile = path.join(home, 'web', 'credentials.json');
126
+ const canonical = await realpath(project).catch(() => project);
127
+ const deadline = Date.now() + timeoutMs;
128
+ while (Date.now() < deadline) {
129
+ try {
130
+ const raw = JSON.parse(await readFile(credentialsFile, 'utf8'));
131
+ const credential = raw?.credentials?.find(c => c.id === credentialId && !c.revokedAt);
132
+ if (credential?.workspaces?.some(w => w.canonical === canonical || w.path === project || w.path === canonical)) {
133
+ return true;
134
+ }
135
+ } catch {}
136
+ await new Promise(resolve => setTimeout(resolve, 25));
137
+ }
138
+ return false;
60
139
  }
61
140
 
62
141
  /** Whether settings.json turns alp web off. @param {string} home */
@@ -76,14 +155,15 @@ const DISABLED = 'alp web is disabled by settings ("web.enabled": false).';
76
155
  async function serveWeb(home, entry) {
77
156
  await stopPreRenamePaseo(home);
78
157
  // A lock held by a process proven not to be alp web: say so now rather than wait for it. A
79
- // running alp-web (its web.json names the lock's pid) is left to startIntegration, whatever the
80
- // proof says, so a clock step can never keep alp web from reusing it.
158
+ // running alp-web (its web.json names the lock's pid and is answering) is left to startIntegration.
81
159
  const held = await webOwner(home);
82
160
  const published = await readFile(path.join(home, 'web.json'), 'utf8').then(text => JSON.parse(text), () => undefined);
83
- const claimed = published?.app === 'alp-web' && published.pid === (await readFile(path.join(home, 'integrations', 'web.lock'), 'utf8').then(text => JSON.parse(text)?.pid, () => undefined));
161
+ const lockPid = await readFile(path.join(home, 'integrations', 'web.lock'), 'utf8').then(text => JSON.parse(text)?.pid, () => undefined);
162
+ const claimed = await isWebClaimed(published, lockPid, held);
84
163
  if ('reason' in held && held.alive && held.kind === 'foreign' && !claimed) throw new Error(`${refusal(home)} (${held.reason}). Stop it, then run alp web again.`);
164
+ const project = await currentProject();
85
165
  let lock;
86
- try { lock = await startIntegration({ name: WEB, entry, home, args: await projectArgs() }); }
166
+ try { lock = await startIntegration({ name: WEB, entry, home, args: project ? ['--project', project] : [] }); }
87
167
  catch (error) {
88
168
  // Still held by a live process alp cannot prove: name it, as the wait may have been for it.
89
169
  const owner = await webOwner(home);
@@ -95,13 +175,21 @@ async function serveWeb(home, entry) {
95
175
  const owner = await webOwner(home);
96
176
  throw new Error(`${refusal(home)}${'reason' in owner ? ` (${owner.reason})` : ''}. Stop pid ${lock.pid}, then run alp web again.`);
97
177
  }
98
- if (typeof info.url !== 'string' || typeof info.token !== 'string') throw new Error(`alp web published no address; see ${path.join(home, 'logs', 'integrations', 'alp-web.log')}`);
178
+ if (typeof info.url !== 'string' || typeof info.token !== 'string' || !(await isWebReady(info.url))) {
179
+ throw new Error(`alp web published no address; see ${path.join(home, 'logs', 'integrations', 'alp-web.log')}`);
180
+ }
181
+ if (project) {
182
+ await registerProject(home, project);
183
+ await waitForGrant(home, info.credentialId, project);
184
+ }
99
185
  return `${info.url}#token=${info.token}`;
100
186
  }
101
187
 
102
188
  async function webCommand(args) {
103
189
  if (args[0] === 'pair') return pairCommand(args.slice(1));
104
190
  if (args[0] === 'rotate') return rotateCommand(args.slice(1));
191
+ // alp-web itself in this process; its own options (--service, --rotate, --project DIR) follow.
192
+ if (args[0] === 'serve') return runRole('web', alpWebScript(), args.slice(1));
105
193
  const { values, positionals } = parseArgs({ args, allowPositionals: true, options: { print: { type: 'boolean' } } });
106
194
  if (positionals.length) throw new UsageError();
107
195
  const entry = alpWebEntry();
@@ -130,7 +218,8 @@ async function rotateCommand(args) {
130
218
  for (let attempt = 1; ; attempt++) {
131
219
  await stopWebService(home);
132
220
  const rotated = await new Promise(resolve => {
133
- execFile(process.execPath, [entry, '--rotate', ...project], { env: { ...process.env, ALP_HOME: home }, encoding: 'utf8', timeout: 60_000, killSignal: 'SIGTERM' },
221
+ const rotate = entryCommand(entry, 'web', ['--rotate', ...project]);
222
+ execFile(rotate.command, rotate.args, { env: { ...process.env, ALP_HOME: home }, encoding: 'utf8', timeout: 60_000, killSignal: 'SIGTERM' },
134
223
  (error, stdout, stderr) => resolve({ code: error ? (typeof error.code === 'number' ? error.code : 1) : 0, output: `${stderr}${stdout}`.trim() }));
135
224
  });
136
225
  if (rotated.code === 0) break;
@@ -198,7 +287,7 @@ async function pairCommand(args) {
198
287
  async function acpCommand(args) {
199
288
  if (args.length) throw new UsageError();
200
289
  await built();
201
- const { runAcp } = await import(distributionEntry('acp.js'));
290
+ const { runAcp } = /** @type {{ runAcp: (options: { daemonEntry: string }) => Promise<void> }} */ (await import(distributionEntry('acp.js').href));
202
291
  await runAcp({ daemonEntry: DAEMON_ENTRY });
203
292
  }
204
293
 
package/src/paths.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { fileURLToPath, pathToFileURL } from 'node:url';
3
3
  import path from 'node:path';
4
+ import { selfEntry } from '@anhlp/alp-core/packaged';
4
5
 
5
6
  /** Locate artifacts in either the independently shipped CLI or the legacy root build. */
6
7
  export function distributionEntry(name) {
@@ -13,4 +14,5 @@ export function distributionEntry(name) {
13
14
  return candidates.find(candidate => existsSync(candidate)) ?? candidates[0];
14
15
  }
15
16
 
16
- export const DAEMON_ENTRY = fileURLToPath(distributionEntry('alpd.js'));
17
+ /** What starts alpd: alpd.js under Node (named through app/current in the ALP bundle). */
18
+ export const DAEMON_ENTRY = selfEntry(fileURLToPath(distributionEntry('alpd.js')));
package/src/roles.js ADDED
@@ -0,0 +1,26 @@
1
+ import { pathToFileURL } from 'node:url';
2
+ import { runBridge } from '@anhlp/alp-core/bridges';
3
+ import { UsageError } from './usage.js';
4
+
5
+ /**
6
+ * The role subcommands (t-1e02): `alp daemon run`, `alp web serve` and `alp bridge acp|antigravity`
7
+ * run alpd, alp-web and the MCP bridges in this process: they import the same scripts that
8
+ * `node alpd.js` and `node alp-web.js` run. Services and MCP entries written by the single-file
9
+ * executable of 0.0.1-beta.5/6 still name them.
10
+ *
11
+ * The role's module reads its options from process.argv as when run directly, so argv is rewritten
12
+ * to `[runtime, entry, ...args]` before the module loads.
13
+ * @param {'daemon' | 'web' | 'acp'} role
14
+ * @param {string} file the role's script beside this CLI
15
+ * @param {string[]} args
16
+ */
17
+ export async function runRole(role, file, args) {
18
+ process.argv = [process.argv[0], file, ...args];
19
+ return import(pathToFileURL(file).href);
20
+ }
21
+
22
+ /** alp bridge acp|antigravity: the stdio MCP bridge an agent CLI starts to reach alpd's tools. @param {string[]} args */
23
+ export function bridgeCommand(args) {
24
+ if (args.length !== 1 || !['acp', 'antigravity'].includes(args[0])) throw new UsageError();
25
+ runBridge(args[0]);
26
+ }