@conveno/cli 0.2.0-rc.9 → 0.2.0
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.
- package/README.md +3 -5
- package/dist/{acp-BVk6rmXR.js → acp-BUddItzP.js} +39 -7
- package/dist/{agy-relay-D8eZcLuc.js → agy-relay-BZ3d_-FS.js} +4 -2
- package/dist/{args-B3Cj2Ie4.js → args-CtyKPZuN.js} +29 -8
- package/dist/bin.js +16 -2
- package/dist/daemon.js +4 -3139
- package/dist/{daemonError-C05GqdhQ.js → daemonError-CDgEtvy7.js} +1 -1
- package/dist/dist-BNhTPp5p.js +4509 -0
- package/dist/{dist-BRjg9CLd.js → dist-BOwFdixw.js} +23 -50
- package/dist/{dist-DaIpdMke.js → dist-CFsDqevs.js} +51 -9
- package/dist/dist-CNdqmI3E.js +1065 -0
- package/dist/{dist-STNJjbNH.js → dist-CSSvrcKr.js} +1516 -599
- package/dist/{dist-BjdBeCHy.js → dist-D6Xoip5W.js} +63 -17
- package/dist/{dist-D_O_JLLq.js → dist-DAVtixeC.js} +19 -5
- package/dist/{dist-MK-cK1JY.js → dist-DTMnNySx.js} +39 -19
- package/dist/{hook-CDF1A8AY.js → hook-BA-tI6Oc.js} +101 -7
- package/dist/hook-entry-BwzBtAnd.js +1346 -0
- package/dist/hook-entry-Cgt5ZH1s.js +1 -0
- package/dist/{main-Kv31Qxro.js → main-kKnLA7Hj.js} +58 -21
- package/dist/{pick-DLp6w_-z.js → pick-BsMvXuDo.js} +1 -1
- package/dist/run-PQBzaHv1.js +8193 -0
- package/dist/{runtime-xjPzIGmp.js → runtime-0FMqklYn.js} +171 -119
- package/dist/{uninstall-8AHErPRN.js → uninstall-DcxkIDpk.js} +356 -56
- package/dist/{watch-D0KIPowJ.js → watch-BIepRTXJ.js} +29 -7
- package/package.json +14 -15
- package/dist/dist-CVdpCNJo.js +0 -793
- package/dist/dist-DzpERiRx.js +0 -624
- package/dist/hook-entry-BTJK7aO0.js +0 -2500
- package/dist/hook-entry-D6zup0QV.js +0 -1
- package/dist/run-BPtFUGtu.js +0 -5609
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ conveno init
|
|
|
25
25
|
|
|
26
26
|
Then open two CLI sessions, for example Claude Code and Codex. Make one the lead (in the app, with `conveno lead <session>`, or by asking it to coordinate) and ask it to hand out work. The other session wakes up and starts. `conveno status` lists the sessions.
|
|
27
27
|
|
|
28
|
-
Or run `conveno` with no arguments. It opens a full-screen app
|
|
28
|
+
Or run `conveno` with no arguments. It opens a full-screen app for the keyboard and mouse: a table of your sessions with an Activity box and a detail pane, and a menu (`/` or ctrl+p) whose screens open as dialogs. `?` shows the keys. Turn the mouse off in Setup or with `CONVENO_MOUSE=0`.
|
|
29
29
|
|
|
30
30
|
`conveno uninstall` reverts what `init` did. A file that has not changed since `init` is restored byte for byte. If a CLI has rewritten it since, only Conveno's entries are removed.
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ Or run `conveno` with no arguments. It opens a full-screen app (Sessions, New, D
|
|
|
39
39
|
| `conveno send <to> <text...> [--urgent]` | Send a message as you to a session name or id, `lead`, or `device:name`. `-` reads the text from standard input. |
|
|
40
40
|
| `conveno rename <session> <new-name>` | Rename an online session. |
|
|
41
41
|
| `conveno lead <session>` | Make a session the lead. `conveno lead --clear` leaves no lead. |
|
|
42
|
-
| `conveno spawn <cli> [--cwd <dir>] [--name <name>] [--task <text> \| --task-file <path>] [--window] [--
|
|
42
|
+
| `conveno spawn <cli> [--cwd <dir>] [--name <name>] [--task <text> \| --task-file <path>] [--window] [--access <read\|edit\|full>] [--model <name>] [--effort <name>] [--yes]` | Start a worker session of `claude`, `codex`, `opencode`, `antigravity` or `grok`, and print its name once it registers. The CLI must be installed. By default the worker runs in the background through the CLI's Agent Client Protocol server, with `conveno acp-host` driving it. It keeps running: each message sent to it becomes its next prompt at once when it is idle, or when its current turn ends. `--window` opens the real CLI in a new terminal instead, so you can watch it and take over: Windows Terminal (`wt -w 0 new-tab`, else a new console window) on Windows, Terminal.app (iTerm2 when it is your terminal) on macOS, and on Linux a new tmux window when you are inside tmux, else the first of `x-terminal-emulator`, `gnome-terminal`, `konsole`, `kitty`, `wezterm`, `alacritty` and `xterm`. The ACP commands are `claude-agent-acp` (install `@agentclientprotocol/claude-agent-acp`), `codex-acp` (install `@agentclientprotocol/codex-acp`), `opencode acp`, `agy acp` and `grok agent stdio`; a missing one is an error that says what to install. For Claude Code and Codex, `conveno init` can allow running the adapter with `npx -y <package>@<pinned version>`, and `CONVENO_ACP_CODEX_CMD` / `CONVENO_ACP_CLAUDE_CMD` replace the command. In the background a tool call the `--access` preset (`read`, `edit` or `full`; default `full`) does not cover is asked of the session that spawned the worker. The first task is optional. `--name` sets the session name (a taken or reserved one is refused); otherwise the usual `<cli>@<repo>-<n>` name is used. `--cwd` defaults to the current folder, which must be inside your home folder; an explicit `--cwd` can be anywhere. It asks first and `--yes` skips the question; without a terminal it exits 2 unless `--yes` is given. At most 8 spawned sessions run at once (`CONVENO_SPAWN_MAX` changes that), and a spawned session cannot spawn more than 3 levels deep. `--model` and `--effort` pick the CLI's own model and effort names; without them your setting for that CLI applies, else the CLI's default. A task is at most 16000 characters. See `packages/protocol/PROTOCOL.md`. |
|
|
43
43
|
| `conveno stop <worker>` | Stop a background worker. It cancels a running turn, ends its CLI and the processes it started, tells the spawning session why, and goes offline. A worker in a window is yours to close. |
|
|
44
44
|
| `conveno doctor [--cli <list>]` | Check each CLI and the daemon, and say how to fix what is wrong. `--cli claude,codex` checks only those CLIs, so problems in the others do not count. |
|
|
45
45
|
| `conveno devices [pair\|join\|revoke\|rename\|accept\|reset]` | Pro. List your devices, or pair a new machine: `pair` on one device and `join` on the new one at the same time, then type the 8-digit code each screen shows. `revoke` removes a device for good. Needs a Pro login on both. |
|
|
@@ -57,8 +57,6 @@ Or run `conveno` with no arguments. It opens a full-screen app (Sessions, New, D
|
|
|
57
57
|
| Claude Code | Next turn (hook), or `inbox` | Yes |
|
|
58
58
|
| OpenCode | `inbox`, plus the plugin at the end of a turn | Yes (plugin) |
|
|
59
59
|
| Codex | Next turn (hook), or `inbox` | Coming in the next release |
|
|
60
|
-
| Cursor CLI | After the next tool call (hook), or `inbox` | Coming in the next release |
|
|
61
|
-
| GitHub Copilot CLI | Next turn (hook), or `inbox` | Coming in the next release |
|
|
62
60
|
| Antigravity | Before each model call (hook), or `inbox` | Coming in the next release |
|
|
63
61
|
| Grok | `inbox`, plus a hook at the end of a turn | Coming in the next release |
|
|
64
62
|
|
|
@@ -66,7 +64,7 @@ A worker started with `conveno spawn` wakes on every message, whatever the CLI.
|
|
|
66
64
|
|
|
67
65
|
## Compatibility
|
|
68
66
|
|
|
69
|
-
Vendors change config and hook formats without notice. `conveno doctor` compares each detected CLI with the versions Conveno was checked against: a newer one is
|
|
67
|
+
Vendors change config and hook formats without notice. `conveno doctor` compares each detected CLI with the versions Conveno was checked against: a newer one is not flagged, and one older than a known minimum (a release that lacks something Conveno needs) is a warning with an upgrade hint. A version never makes doctor exit 1. A nightly workflow installs the latest release of every supported CLI and checks that it accepts what `conveno init` writes, then raises the checked version or opens an issue. The table of versions and the details are in the [repository README](https://github.com/0xPixelNinja/conveno#compatibility).
|
|
70
68
|
|
|
71
69
|
## How it works
|
|
72
70
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { writeFileSync } from "node:fs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as parseFlags, n as COMMANDS } from "./args-
|
|
2
|
+
import { i as stopRequestPath, r as runAcpHostFromFile, t as killProcessTree } from "./dist-CNdqmI3E.js";
|
|
3
|
+
import { nn as readSpawnRecord, vn as spawnRecordOfSession, yn as spawnRecordPath } from "./dist-CSSvrcKr.js";
|
|
4
|
+
import { a as parseFlags, n as COMMANDS } from "./args-CtyKPZuN.js";
|
|
5
|
+
import { n as connectOpts } from "./ctx-tYftvhz_.js";
|
|
5
6
|
import { a as fail, n as cmd } from "./fmt-C2SsP5Y0.js";
|
|
7
|
+
import { t as findSession } from "./pick-BsMvXuDo.js";
|
|
6
8
|
// src/acp.ts
|
|
7
9
|
/** How long `conveno stop` waits for a worker to end by itself before it ends the process tree. */
|
|
8
10
|
const STOP_WAIT_MS = 1e4;
|
|
@@ -32,14 +34,26 @@ async function runAcpHostCmd(ctx, argv) {
|
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
|
-
|
|
37
|
+
/**
|
|
38
|
+
* The worker `name` means: a session's name now, which a rename may have changed, or, when no
|
|
39
|
+
* online session has that name, the name it was spawned with (its record's file name).
|
|
40
|
+
*/
|
|
41
|
+
async function findWorker(ctx, name, command) {
|
|
36
42
|
if (!name) return fail(ctx, {
|
|
37
43
|
what: `conveno ${command} needs a worker name`,
|
|
38
44
|
fix: `Run ${cmd(ctx.theme, "conveno status")} to see the names.`,
|
|
39
45
|
exit: 2,
|
|
40
46
|
ref: "e_usage"
|
|
41
47
|
});
|
|
42
|
-
const
|
|
48
|
+
const live = await byCurrentName(ctx, name);
|
|
49
|
+
if (live === null) return fail(ctx, {
|
|
50
|
+
what: `${name} is not a worker started here`,
|
|
51
|
+
detail: ["Only sessions started by conveno spawn or spawn_session on this machine are workers."],
|
|
52
|
+
fix: `Run ${cmd(ctx.theme, "conveno status")} to see the names.`,
|
|
53
|
+
exit: 1,
|
|
54
|
+
ref: "e_not_found"
|
|
55
|
+
});
|
|
56
|
+
const rec = live ?? (/^[a-z0-9][a-z0-9._@-]{0,63}$/.test(name) ? readSpawnRecord(spawnRecordPath(ctx.dataDir, name)) : void 0);
|
|
43
57
|
if (!rec) return fail(ctx, {
|
|
44
58
|
what: `No running worker named "${name}"`,
|
|
45
59
|
detail: ["Only sessions started by conveno spawn or spawn_session on this machine are workers."],
|
|
@@ -50,6 +64,24 @@ function findWorker(ctx, name, command) {
|
|
|
50
64
|
return rec;
|
|
51
65
|
}
|
|
52
66
|
/**
|
|
67
|
+
* The record of the online session named `name`, through the daemon; null when that session has
|
|
68
|
+
* no record (it is not a worker started here). Undefined when no online session has that name, or
|
|
69
|
+
* the daemon is not running.
|
|
70
|
+
*/
|
|
71
|
+
async function byCurrentName(ctx, name) {
|
|
72
|
+
const client = await ctx.connect(connectOpts(ctx, false)).catch(() => void 0);
|
|
73
|
+
if (!client) return void 0;
|
|
74
|
+
try {
|
|
75
|
+
const session = await findSession(client, name);
|
|
76
|
+
if (!session) return void 0;
|
|
77
|
+
return spawnRecordOfSession(ctx.dataDir, session.id) ?? null;
|
|
78
|
+
} catch {
|
|
79
|
+
return;
|
|
80
|
+
} finally {
|
|
81
|
+
await client.close().catch(() => void 0);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
53
85
|
* `conveno stop <worker>`. An ACP worker gets a stop request: its host sends `session/cancel` for
|
|
54
86
|
* a running turn, ends the agent, reports to the spawner and takes the session offline. A worker in a
|
|
55
87
|
* terminal window is the user's to close.
|
|
@@ -60,7 +92,7 @@ async function runStop(ctx, argv) {
|
|
|
60
92
|
const parsed = parseFlags(ctx, spec, argv);
|
|
61
93
|
if (typeof parsed === "number") return parsed;
|
|
62
94
|
const [name] = parsed.positionals;
|
|
63
|
-
const rec = findWorker(ctx, name, "stop");
|
|
95
|
+
const rec = await findWorker(ctx, name, "stop");
|
|
64
96
|
if (typeof rec === "number") return rec;
|
|
65
97
|
const t = ctx.theme;
|
|
66
98
|
if (!rec.acp) return fail(ctx, {
|
|
@@ -76,7 +108,7 @@ async function runStop(ctx, argv) {
|
|
|
76
108
|
while (alive() && Date.now() < end) await new Promise((r) => setTimeout(r, 100));
|
|
77
109
|
if (alive() && rec.pid !== void 0) killProcessTree(rec.pid, ctx.platform);
|
|
78
110
|
if (rec.agentPid !== void 0 && ctx.isAlive(rec.agentPid)) killProcessTree(rec.agentPid, ctx.platform);
|
|
79
|
-
ctx.out(`${t.status("ok")} ${t.bold(`Stopped ${rec.name}`)}\n`);
|
|
111
|
+
ctx.out(`${t.status("ok")} ${t.bold(`Stopped ${name ?? rec.name}`)}\n`);
|
|
80
112
|
return 0;
|
|
81
113
|
}
|
|
82
114
|
export { runAcpHostCmd, runStop };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { execFile } from "node:child_process";
|
|
2
|
-
import { t as RELAY_SUBCOMMAND } from "./dist-
|
|
3
|
-
import {
|
|
2
|
+
import { t as RELAY_SUBCOMMAND } from "./dist-D6Xoip5W.js";
|
|
3
|
+
import { mn as runWaker } from "./dist-CSSvrcKr.js";
|
|
4
4
|
import { n as connectOpts } from "./ctx-tYftvhz_.js";
|
|
5
5
|
// src/agy-relay.ts
|
|
6
6
|
/**
|
|
@@ -64,6 +64,7 @@ async function runAgyRelay(ctx, argv, deps = {}) {
|
|
|
64
64
|
ctx.out(`[conveno] ${RELAY_SUBCOMMAND} ended: ${why}\n`);
|
|
65
65
|
return code;
|
|
66
66
|
};
|
|
67
|
+
if (ctx.env.CONVENO_ACP_WORKER === "1") return 0;
|
|
67
68
|
if (argv.length > 0) return end("it takes no arguments.", 2);
|
|
68
69
|
const conversationId = ctx.env.ANTIGRAVITY_CONVERSATION_ID;
|
|
69
70
|
const exe = ctx.env.ANTIGRAVITY_AGENTAPI_EXE;
|
|
@@ -117,6 +118,7 @@ async function runAgyRelay(ctx, argv, deps = {}) {
|
|
|
117
118
|
client: c,
|
|
118
119
|
sessionId: session.id,
|
|
119
120
|
signal,
|
|
121
|
+
nativeId: conversationId,
|
|
120
122
|
...hostPid ? { isHostAlive: () => ctx.isAlive(hostPid) } : {},
|
|
121
123
|
inject: (text, messages) => sendToConversation({
|
|
122
124
|
platform: ctx.platform,
|
|
@@ -19,7 +19,7 @@ const SETUP_FLAGS = {
|
|
|
19
19
|
accept: {
|
|
20
20
|
type: "string",
|
|
21
21
|
value: "<ids>",
|
|
22
|
-
help: "Say yes to these extras without asking, such as
|
|
22
|
+
help: "Say yes to these extras without asking, such as codex-trust-hooks"
|
|
23
23
|
},
|
|
24
24
|
"acp-adapters": {
|
|
25
25
|
type: "boolean",
|
|
@@ -33,7 +33,7 @@ const SETUP_FLAGS = {
|
|
|
33
33
|
const COMMANDS = [
|
|
34
34
|
{
|
|
35
35
|
name: "setup",
|
|
36
|
-
usage: "conveno setup [--yes] [--dry-run] [--cli <list>] [--lead <cli>]",
|
|
36
|
+
usage: "conveno setup [--yes] [--dry-run] [--cli <list>] [--lead <cli>] [--worker-access <level>]",
|
|
37
37
|
summary: "Connect Conveno to your AI tools",
|
|
38
38
|
flags: {
|
|
39
39
|
...SETUP_FLAGS,
|
|
@@ -41,12 +41,17 @@ const COMMANDS = [
|
|
|
41
41
|
type: "string",
|
|
42
42
|
value: "<cli>",
|
|
43
43
|
help: "The AI tool that should lead when it starts, such as claude"
|
|
44
|
+
},
|
|
45
|
+
"worker-access": {
|
|
46
|
+
type: "string",
|
|
47
|
+
value: "<read|edit|full>",
|
|
48
|
+
help: "What background workers may do: read, edit or full (the default)"
|
|
44
49
|
}
|
|
45
50
|
},
|
|
46
51
|
notes: [
|
|
47
52
|
"In a terminal, setup walks you through it. With --yes, or without a terminal, it applies the changes without a walk-through.",
|
|
48
53
|
"Setup shows every file it will change and asks first. Without a terminal it needs --yes, and exits 2 without it.",
|
|
49
|
-
"Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Extras
|
|
54
|
+
"Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Extras default no. --yes takes the defaults; --accept <ids> says yes to only those.",
|
|
50
55
|
"Undo any time with conveno uninstall."
|
|
51
56
|
]
|
|
52
57
|
},
|
|
@@ -58,7 +63,7 @@ const COMMANDS = [
|
|
|
58
63
|
notes: [
|
|
59
64
|
"init is the older name for setup. It shows every file it will change, with a diff, and asks first.",
|
|
60
65
|
"Without a terminal it needs --yes, and exits 2 without it.",
|
|
61
|
-
"Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Other optional setups
|
|
66
|
+
"Approving Conveno inside Codex and Antigravity is asked as yes/no, default yes. Other optional setups default no. --yes takes the defaults; --accept <ids> says yes to only those.",
|
|
62
67
|
"When Codex or Claude Code is installed without its ACP adapter, init asks once whether npx may fetch it (third-party npm packages, pinned versions). The answer is kept; the two adapter flags change it."
|
|
63
68
|
],
|
|
64
69
|
hidden: true
|
|
@@ -153,10 +158,20 @@ const COMMANDS = [
|
|
|
153
158
|
type: "boolean",
|
|
154
159
|
help: "Open the CLI in a terminal window you can watch, instead of the background"
|
|
155
160
|
},
|
|
156
|
-
|
|
161
|
+
access: {
|
|
162
|
+
type: "string",
|
|
163
|
+
value: "<read|edit|full>",
|
|
164
|
+
help: "Background: what the worker may do without asking (default: your setting, full unless changed)"
|
|
165
|
+
},
|
|
166
|
+
model: {
|
|
157
167
|
type: "string",
|
|
158
|
-
value: "<
|
|
159
|
-
help: "
|
|
168
|
+
value: "<name>",
|
|
169
|
+
help: "The CLI's own model name (default: your setting for that CLI, else the CLI's default)"
|
|
170
|
+
},
|
|
171
|
+
effort: {
|
|
172
|
+
type: "string",
|
|
173
|
+
value: "<name>",
|
|
174
|
+
help: "The CLI's own effort name (default: your setting for that CLI, else the CLI's default)"
|
|
160
175
|
},
|
|
161
176
|
yes: {
|
|
162
177
|
type: "boolean",
|
|
@@ -165,10 +180,16 @@ const COMMANDS = [
|
|
|
165
180
|
}
|
|
166
181
|
},
|
|
167
182
|
notes: [
|
|
183
|
+
"--model and --effort pick the model and effort by the CLI's own names. A name the CLI does not offer",
|
|
184
|
+
"leaves its default. In a window they become the CLI's launch flags; OpenCode has no effort flag.",
|
|
185
|
+
"--access sets what a background worker may do without asking: read (look only), edit (also",
|
|
186
|
+
"change files and fetch pages) or full (everything). Without it, your setting applies; full unless changed.",
|
|
168
187
|
"By default the worker runs in the background over ACP and stays alive. Each message sent to",
|
|
169
188
|
"it becomes its next prompt: right away when it is idle, else when its turn ends.",
|
|
170
189
|
"--window opens the real CLI in a new terminal instead, so you can watch it and take over.",
|
|
171
|
-
"In the background, tool calls
|
|
190
|
+
"In the background, tool calls the preset does not cover are asked of the session that spawned the worker,",
|
|
191
|
+
"and denied if nobody answers in time or there is nobody to ask.",
|
|
192
|
+
"Conveno's own tools, such as send, are always allowed.",
|
|
172
193
|
"claude and codex need an ACP adapter installed. End a worker with conveno stop.",
|
|
173
194
|
"Waits until the session registers, then prints its name.",
|
|
174
195
|
"Without a terminal of your own it needs --yes, and exits 2 without it.",
|
package/dist/bin.js
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
import { enableCompileCache } from "node:module";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
|
+
// src/hook-skip.ts
|
|
6
|
+
/**
|
|
7
|
+
* Whether `conveno <argv>` is a hook that must exit 0 at once, with no output:
|
|
8
|
+
* - an ACP worker's agent (`CONVENO_ACP_WORKER`, set by the ACP host): the host drives its turns
|
|
9
|
+
* and delivery itself, and a hook's process walk could reach the lead's session instead;
|
|
10
|
+
* - Claude hooks run by Grok, which imports `~/.claude/settings.json` and sets `GROK_HOOK_EVENT`
|
|
11
|
+
* on every hook process. Claude Code never sets it. Grok's own hooks (`hook grok ...`) still run.
|
|
12
|
+
*/
|
|
13
|
+
function hookSkipped(argv, env) {
|
|
14
|
+
if (argv[0] !== "hook") return false;
|
|
15
|
+
if (env.CONVENO_ACP_WORKER) return true;
|
|
16
|
+
return argv[1] === "claude" && Boolean(env.GROK_HOOK_EVENT);
|
|
17
|
+
}
|
|
5
18
|
// src/bin.ts
|
|
6
19
|
/**
|
|
7
20
|
* Cache V8's compiled code for Conveno's files and its dependencies, in the user's own data
|
|
@@ -20,15 +33,16 @@ function startCompileCache() {
|
|
|
20
33
|
startCompileCache();
|
|
21
34
|
const argv = process.argv.slice(2);
|
|
22
35
|
const isHook = argv[0] === "hook";
|
|
36
|
+
if (hookSkipped(argv, process.env)) process.exit(0);
|
|
23
37
|
for (const stream of [process.stdout, process.stderr]) stream.on("error", (err) => {
|
|
24
38
|
if (err.code === "EPIPE") process.exit(0);
|
|
25
39
|
throw err;
|
|
26
40
|
});
|
|
27
41
|
try {
|
|
28
42
|
let code;
|
|
29
|
-
if (isHook) code = await (await import("./hook-entry-
|
|
43
|
+
if (isHook) code = await (await import("./hook-entry-Cgt5ZH1s.js")).runHookEntry(argv.slice(1));
|
|
30
44
|
else {
|
|
31
|
-
const [{ main }, { createRuntimeCtx }] = await Promise.all([import("./main-
|
|
45
|
+
const [{ main }, { createRuntimeCtx }] = await Promise.all([import("./main-kKnLA7Hj.js"), import("./runtime-0FMqklYn.js")]);
|
|
32
46
|
code = await main(argv, createRuntimeCtx());
|
|
33
47
|
}
|
|
34
48
|
if (isHook) process.exit(code);
|