@openape/apes 0.19.0 → 0.20.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/dist/cli.js +13 -16
- package/dist/cli.js.map +1 -1
- package/dist/{orchestrator-FJVDWH45.js → orchestrator-RWTALOSA.js} +5 -1
- package/dist/orchestrator-RWTALOSA.js.map +1 -0
- package/dist/{server-GYHLAJXV.js → server-XZHBOWRD.js} +2 -2
- package/package.json +1 -1
- package/dist/orchestrator-FJVDWH45.js.map +0 -1
- /package/dist/{server-GYHLAJXV.js.map → server-XZHBOWRD.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -2327,7 +2327,7 @@ function generateKeyPairInMemory() {
|
|
|
2327
2327
|
var spawnAgentCommand = defineCommand23({
|
|
2328
2328
|
meta: {
|
|
2329
2329
|
name: "spawn",
|
|
2330
|
-
description: "Provision a local macOS agent end-to-end (OS user, keypair, IdP agent,
|
|
2330
|
+
description: "Provision a local macOS agent end-to-end (OS user, keypair, IdP agent, Claude hook)"
|
|
2331
2331
|
},
|
|
2332
2332
|
args: {
|
|
2333
2333
|
name: {
|
|
@@ -2337,7 +2337,7 @@ var spawnAgentCommand = defineCommand23({
|
|
|
2337
2337
|
},
|
|
2338
2338
|
shell: {
|
|
2339
2339
|
type: "string",
|
|
2340
|
-
description: "
|
|
2340
|
+
description: "Login shell for the macOS user. Default: /bin/zsh. Pass $(which ape-shell) to opt into the grant-mediated REPL as login shell."
|
|
2341
2341
|
},
|
|
2342
2342
|
"no-claude-hook": {
|
|
2343
2343
|
type: "boolean",
|
|
@@ -2364,10 +2364,7 @@ var spawnAgentCommand = defineCommand23({
|
|
|
2364
2364
|
if (!idp) {
|
|
2365
2365
|
throw new CliError("No IdP URL configured. Run `apes login` first.");
|
|
2366
2366
|
}
|
|
2367
|
-
const
|
|
2368
|
-
if (!apeShell) {
|
|
2369
|
-
throw new CliError("`ape-shell` not found on PATH. Install @openape/apes globally first.");
|
|
2370
|
-
}
|
|
2367
|
+
const loginShell = (args.shell ?? "/bin/zsh").toString();
|
|
2371
2368
|
const apes = whichBinary("apes");
|
|
2372
2369
|
if (!apes) {
|
|
2373
2370
|
throw new CliError("`apes` not found on PATH. Install @openape/apes globally first.");
|
|
@@ -2378,10 +2375,10 @@ var spawnAgentCommand = defineCommand23({
|
|
|
2378
2375
|
"`escapes` not found on PATH. spawn delegates the privileged setup phase to escapes; install it before running spawn."
|
|
2379
2376
|
);
|
|
2380
2377
|
}
|
|
2381
|
-
if (!isShellRegistered(
|
|
2378
|
+
if (!isShellRegistered(loginShell)) {
|
|
2382
2379
|
throw new CliError(
|
|
2383
|
-
`${
|
|
2384
|
-
echo ${
|
|
2380
|
+
`${loginShell} is not registered in /etc/shells. macOS refuses to set it as a login shell. Run:
|
|
2381
|
+
echo ${loginShell} | sudo tee -a /etc/shells
|
|
2385
2382
|
and try again.`
|
|
2386
2383
|
);
|
|
2387
2384
|
}
|
|
@@ -2414,7 +2411,7 @@ and try again.`
|
|
|
2414
2411
|
const script = buildSpawnSetupScript({
|
|
2415
2412
|
name,
|
|
2416
2413
|
homeDir,
|
|
2417
|
-
shellPath:
|
|
2414
|
+
shellPath: loginShell,
|
|
2418
2415
|
privateKeyPem: privatePem,
|
|
2419
2416
|
publicKeySshLine: publicSshLine,
|
|
2420
2417
|
authJson,
|
|
@@ -3701,7 +3698,7 @@ var mcpCommand = defineCommand32({
|
|
|
3701
3698
|
if (transport !== "stdio" && transport !== "sse") {
|
|
3702
3699
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
3703
3700
|
}
|
|
3704
|
-
const { startMcpServer } = await import("./server-
|
|
3701
|
+
const { startMcpServer } = await import("./server-XZHBOWRD.js");
|
|
3705
3702
|
await startMcpServer(transport, port);
|
|
3706
3703
|
}
|
|
3707
3704
|
});
|
|
@@ -4339,7 +4336,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
4339
4336
|
}
|
|
4340
4337
|
}
|
|
4341
4338
|
async function runHealth(args) {
|
|
4342
|
-
const version = true ? "0.
|
|
4339
|
+
const version = true ? "0.20.0" : "0.0.0";
|
|
4343
4340
|
const auth = loadAuth();
|
|
4344
4341
|
if (!auth) {
|
|
4345
4342
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -4541,10 +4538,10 @@ if (shellRewrite) {
|
|
|
4541
4538
|
if (shellRewrite.action === "rewrite") {
|
|
4542
4539
|
process.argv = shellRewrite.argv;
|
|
4543
4540
|
} else if (shellRewrite.action === "version") {
|
|
4544
|
-
console.log(`ape-shell ${"0.
|
|
4541
|
+
console.log(`ape-shell ${"0.20.0"} (OpenApe DDISA shell wrapper)`);
|
|
4545
4542
|
process.exit(0);
|
|
4546
4543
|
} else if (shellRewrite.action === "help") {
|
|
4547
|
-
console.log(`ape-shell ${"0.
|
|
4544
|
+
console.log(`ape-shell ${"0.20.0"} \u2014 OpenApe DDISA shell wrapper`);
|
|
4548
4545
|
console.log("");
|
|
4549
4546
|
console.log("Usage:");
|
|
4550
4547
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -4559,7 +4556,7 @@ if (shellRewrite) {
|
|
|
4559
4556
|
console.log(" --help, -h Show this help message");
|
|
4560
4557
|
process.exit(0);
|
|
4561
4558
|
} else if (shellRewrite.action === "interactive") {
|
|
4562
|
-
const { runInteractiveShell } = await import("./orchestrator-
|
|
4559
|
+
const { runInteractiveShell } = await import("./orchestrator-RWTALOSA.js");
|
|
4563
4560
|
await runInteractiveShell();
|
|
4564
4561
|
process.exit(0);
|
|
4565
4562
|
} else {
|
|
@@ -4602,7 +4599,7 @@ var configCommand = defineCommand44({
|
|
|
4602
4599
|
var main = defineCommand44({
|
|
4603
4600
|
meta: {
|
|
4604
4601
|
name: "apes",
|
|
4605
|
-
version: "0.
|
|
4602
|
+
version: "0.20.0",
|
|
4606
4603
|
description: "Unified CLI for OpenApe"
|
|
4607
4604
|
},
|
|
4608
4605
|
subCommands: {
|