@anna-ai/cli 0.1.29 → 0.1.30
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/{_lifecycle-shared-BpSOfVCP.js → _lifecycle-shared-CUK2CE76.js} +1 -1
- package/dist/account-B6n0XkpV.js +30 -0
- package/dist/{agent-CaZVCPs6.js → agent-J2bELWfv.js} +1 -1
- package/dist/{app-bundle-upload-BhAYo6yj.js → app-bundle-upload-CPf_nGou.js} +2 -2
- package/dist/{app-cache-Bl7cE5fm.js → app-cache-BqnTkxUw.js} +1 -0
- package/dist/{apps-CCdtLmxQ.js → apps-73pdBAFE.js} +17 -1
- package/dist/{apps-3VcdHIBK.js → apps-BpJ-TvHP.js} +2 -2
- package/dist/{apps-cut-BOhg9RHy.js → apps-cut-C5SH9qZN.js} +11 -11
- package/dist/{apps-destructive-DWF4eTHn.js → apps-destructive-PY0wKjqu.js} +3 -3
- package/dist/{apps-discard-Dy3vzpCM.js → apps-discard-CfdkwUZ_.js} +11 -11
- package/dist/{apps-grants-DgvymPBT.js → apps-grants-BtXXiuJt.js} +2 -2
- package/dist/apps-publish-3wbhXfAg.js +14 -0
- package/dist/{apps-publish-Dgi4lBlu.js → apps-publish-B-ZVNmgn.js} +7 -7
- package/dist/{apps-push-DbUEFdCK.js → apps-push-Bh8zwT--.js} +12 -12
- package/dist/{apps-release-DJFG4BV3.js → apps-release-DNlN_8gz.js} +4 -4
- package/dist/apps-rename-slug-Bp-nQ_6I.js +62 -0
- package/dist/{apps-status-F6aVlzDW.js → apps-status-5DV9cY4A.js} +2 -2
- package/dist/{apps-submit-review-BVmZlhmB.js → apps-submit-review-DH-bzbDZ.js} +3 -3
- package/dist/{apps-sync-meta-CQQC_Heb.js → apps-sync-meta-DdPnXuIU.js} +4 -4
- package/dist/{apps-versions-BIKsJzIT.js → apps-versions-vGihRRje.js} +2 -2
- package/dist/bridge-CmoKMMcG.js +3 -0
- package/dist/{bundled-executas-DeBhDjd8.js → bundled-executas-06keEPP_.js} +1 -1
- package/dist/cli.js +59 -39
- package/dist/dev-C9VpI_AL.js +4 -0
- package/dist/{dev-DXODERsf.js → dev-aWkfWGLD.js} +5 -5
- package/dist/{dev-app-cache-TSjL4D4n.js → dev-app-cache-CP2P8SCZ.js} +1 -0
- package/dist/{doctor-DCsBgyRg.js → doctor-DnCYaREu.js} +1 -1
- package/dist/{executa-cache-Kx3rfQD-.js → executa-cache-B0O79Hpb.js} +1 -1
- package/dist/{executa-destructive-PL2ooHpZ.js → executa-destructive-8iSnfmcn.js} +3 -3
- package/dist/{executa-dev-DEpBrEIH.js → executa-dev-0XdBPTDy.js} +8 -8
- package/dist/{executa-install-BHQpOskj.js → executa-install-A-BgavhA.js} +2 -2
- package/dist/executa-install-Bc1WRrWu.js +7 -0
- package/dist/executa-publish-9XQRncyN.js +9 -0
- package/dist/{executa-publish-CkPAB34b.js → executa-publish-Xmm4DMO9.js} +4 -4
- package/dist/{executa-reads-CjGZq1yP.js → executa-reads-CjIr8BuD.js} +2 -2
- package/dist/{publish-BYWuujP3.js → publish-NTT1Libd.js} +10 -10
- package/dist/{server-F_VA-5tS.js → server-DtnMLKQS.js} +1 -1
- package/dist/{storage-CKTmE87u.js → storage-C95wApr2.js} +1 -1
- package/dist/{token-Cg7BZGp6.js → token-hGGfoge2.js} +1 -1
- package/dist/{working-orchestration-Pjm4YC_U.js → working-orchestration-CX0ONKIq.js} +30 -13
- package/package.json +1 -1
- package/dist/apps-publish-Do7M5je3.js +0 -14
- package/dist/bridge-6GIQG63S.js +0 -3
- package/dist/dev-CQkCFVXu.js +0 -4
- package/dist/executa-install-Bvf_Lvvg.js +0 -7
- package/dist/executa-publish-IXWSwva0.js +0 -9
- /package/dist/{bridge-DAY7bsje.js → bridge-DXH59CmP.js} +0 -0
- /package/dist/{bundled-executas-B6b8gIfp.js → bundled-executas-_H1A9M50.js} +0 -0
- /package/dist/{confirm-h_qMrx0I.js → confirm-BuT56E_B.js} +0 -0
- /package/dist/{dev-account-CGo8k9_2.js → dev-account-WXEjIE16.js} +0 -0
- /package/dist/{executa-cache-CXiEgFZY.js → executa-cache-Do1D7xC0.js} +0 -0
- /package/dist/{executa-init-DXea7yRN.js → executa-init-BCqJUZXT.js} +0 -0
- /package/dist/{executa-register-BUiPzPIU.js → executa-register-CMmlKyKB.js} +0 -0
- /package/dist/{executas-CK3er6f9.js → executas-BhFed1B-.js} +0 -0
- /package/dist/{fixture-BvP5umlN.js → fixture-BJqc1IfX.js} +0 -0
- /package/dist/{host_upload-BXeHTgJs.js → host_upload-sfo4UHlR.js} +0 -0
- /package/dist/{image-CSEXEfD-.js → image-Bdi4Hu0m.js} +0 -0
- /package/dist/{login-BGZjMAlh.js → login-CslsHbsq.js} +0 -0
- /package/dist/{logout-mh2_QlyM.js → logout-B4_b9ZL0.js} +0 -0
- /package/dist/{manifest-Bljz8Y6T.js → manifest-CMc7RM57.js} +0 -0
- /package/dist/{runner-BuYbm-ex.js → runner-DVu-o_U8.js} +0 -0
- /package/dist/{sampling-DwV7VPfT.js → sampling-Cc0qaj8a.js} +0 -0
- /package/dist/{whoami-l_kIkfbI.js → whoami-ChzwOaN2.js} +0 -0
package/dist/cli.js
CHANGED
|
@@ -470,7 +470,7 @@ program.command("validate").description("Run schema + ACL checks on a manifest+b
|
|
|
470
470
|
process.exit(code);
|
|
471
471
|
});
|
|
472
472
|
program.command("dev").description("Run a local harness (in-process dispatcher + iframe + SSE relay)").option("--manifest <path>", "manifest.json path", "manifest.json").option("--bundle <dir>", "bundle directory (default: ./bundle)").option("--slug <slug>", "App slug (overrides manifest.slug/name)").option("--view <name>", "View name to open (default: manifest default)").option("--matrix-nexus-root <path>", "matrix-nexus checkout (auto-detected if omitted; can also use $ANNA_NEXUS_ROOT)").option("--port <number>", "HTTP port", "5180").option("--user-id <id>", "Harness user_id", "1").option("--cwd <dir>", "Project root (default: cwd)").option("--no-watch", "Disable bundle file watcher (default: enabled)").option("--executa <spec>", "Explicit executa registration; repeatable. Spec: comma-separated key=value (dir=<path>[,tool_id=<id>][,type=python|node|go|binary][,command=\"<argv>\"]). When only `dir=` is given, the executa is auto-detected from executa.json / pyproject.toml / package.json / go.mod. Overrides directory auto-discovery under <manifest-dir>/executas/.", (val, prev) => prev ? [...prev, val] : [val]).option("--no-llm", "Disable LLM bridge (anna.llm/agent return llm_disabled)").option("--mock-llm <fixture>", "Serve canned LLM responses from a JSONL fixture").option("--llm-account <host>", "Saved account host to use (default: current)").option("--llm-app-slug <slug>", "Override the manifest slug used to register / look up the dev AnnaApp (default: manifest.slug)").option("--storage <mode>", "Storage backend: \"legacy\" (in-memory runtime_state, default) or \"aps\" (real nexus APS via /api/v1/storage/* — requires `anna-app login`).", "legacy").action(async (opts) => {
|
|
473
|
-
const { runDev, parseExecutaSpec } = await import("./dev-
|
|
473
|
+
const { runDev, parseExecutaSpec } = await import("./dev-C9VpI_AL.js");
|
|
474
474
|
const cwd = opts.cwd ?? process.cwd();
|
|
475
475
|
let executas;
|
|
476
476
|
if (opts.executa && opts.executa.length > 0) {
|
|
@@ -505,7 +505,7 @@ program.command("dev").description("Run a local harness (in-process dispatcher +
|
|
|
505
505
|
});
|
|
506
506
|
const fixture = program.command("fixture").description("Inspect / replay harness recordings (Phase 6)");
|
|
507
507
|
fixture.command("verify <file>").description("Schema + invariant checks on a harness JSONL recording").option("--json", "Emit machine-readable JSON", false).action(async (file, opts) => {
|
|
508
|
-
const { runFixtureVerify } = await import("./fixture-
|
|
508
|
+
const { runFixtureVerify } = await import("./fixture-BJqc1IfX.js");
|
|
509
509
|
const code = await runFixtureVerify({
|
|
510
510
|
file,
|
|
511
511
|
json: opts.json
|
|
@@ -513,7 +513,7 @@ fixture.command("verify <file>").description("Schema + invariant checks on a har
|
|
|
513
513
|
process.exit(code);
|
|
514
514
|
});
|
|
515
515
|
fixture.command("summarize <file>").description("Print a human-readable digest of a harness recording").option("--json", "Emit machine-readable JSON", false).action(async (file, opts) => {
|
|
516
|
-
const { runFixtureSummarize } = await import("./fixture-
|
|
516
|
+
const { runFixtureSummarize } = await import("./fixture-BJqc1IfX.js");
|
|
517
517
|
const code = await runFixtureSummarize({
|
|
518
518
|
file,
|
|
519
519
|
json: opts.json
|
|
@@ -521,7 +521,7 @@ fixture.command("summarize <file>").description("Print a human-readable digest o
|
|
|
521
521
|
process.exit(code);
|
|
522
522
|
});
|
|
523
523
|
fixture.command("replay <file>").description("Dry-run replay of a harness recording (Phase 6 MVP)").option("--manifest <path>", "manifest.json path", "manifest.json").action(async (file, opts) => {
|
|
524
|
-
const { runFixtureReplay } = await import("./fixture-
|
|
524
|
+
const { runFixtureReplay } = await import("./fixture-BJqc1IfX.js");
|
|
525
525
|
const code = await runFixtureReplay({
|
|
526
526
|
file,
|
|
527
527
|
manifest: opts.manifest
|
|
@@ -529,12 +529,12 @@ fixture.command("replay <file>").description("Dry-run replay of a harness record
|
|
|
529
529
|
process.exit(code);
|
|
530
530
|
});
|
|
531
531
|
program.command("doctor").description("Check environment for `anna-app dev` (uv, matrix-nexus, dev key)").option("--matrix-nexus-root <path>", "matrix-nexus checkout (optional)").action(async (opts) => {
|
|
532
|
-
const { runDoctor } = await import("./doctor-
|
|
532
|
+
const { runDoctor } = await import("./doctor-DnCYaREu.js");
|
|
533
533
|
const code = await runDoctor({ matrixNexusRoot: opts.matrixNexusRoot });
|
|
534
534
|
process.exit(code);
|
|
535
535
|
});
|
|
536
536
|
program.command("login").description("Device-flow login against a nexus host; saves a PAT to ~/.config/anna/credentials.json").requiredOption("--host <url>", "nexus base URL, e.g. https://nexus.example.com").option("--no-browser", "Do not open a browser window automatically", false).action(async (opts) => {
|
|
537
|
-
const { runLogin } = await import("./login-
|
|
537
|
+
const { runLogin } = await import("./login-CslsHbsq.js");
|
|
538
538
|
const code = await runLogin({
|
|
539
539
|
host: opts.host,
|
|
540
540
|
noBrowser: opts.browser === false
|
|
@@ -542,7 +542,7 @@ program.command("login").description("Device-flow login against a nexus host; sa
|
|
|
542
542
|
process.exit(code);
|
|
543
543
|
});
|
|
544
544
|
program.command("logout").description("Remove a saved PAT entry").option("--host <url>", "Account to remove (default: current)").option("--all", "Remove every saved account", false).action(async (opts) => {
|
|
545
|
-
const { runLogout } = await import("./logout-
|
|
545
|
+
const { runLogout } = await import("./logout-B4_b9ZL0.js");
|
|
546
546
|
const code = await runLogout({
|
|
547
547
|
host: opts.host,
|
|
548
548
|
all: opts.all
|
|
@@ -550,10 +550,20 @@ program.command("logout").description("Remove a saved PAT entry").option("--host
|
|
|
550
550
|
process.exit(code);
|
|
551
551
|
});
|
|
552
552
|
program.command("whoami").description("Show the current account (and any others)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
553
|
-
const { runWhoami } = await import("./whoami-
|
|
553
|
+
const { runWhoami } = await import("./whoami-ChzwOaN2.js");
|
|
554
554
|
const code = await runWhoami({ json: opts.json });
|
|
555
555
|
process.exit(code);
|
|
556
556
|
});
|
|
557
|
+
const account = program.command("account").description("Manage your developer account (handle / namespace)");
|
|
558
|
+
account.command("set-handle <handle>").description("Set or rename your developer handle — the @handle namespace your apps publish under (@handle/slug). Required before creating your first app.").option("--host <url>", "Account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (handle, opts) => {
|
|
559
|
+
const { runAccountSetHandle } = await import("./account-B6n0XkpV.js");
|
|
560
|
+
const code = await runAccountSetHandle({
|
|
561
|
+
handle,
|
|
562
|
+
account: opts.host,
|
|
563
|
+
json: opts.json
|
|
564
|
+
});
|
|
565
|
+
process.exit(code);
|
|
566
|
+
});
|
|
557
567
|
const executa = program.command("executa").description("Standalone Executa plugin scaffolding + local runner");
|
|
558
568
|
executa.command("init <dir>").description("Scaffold a standalone Executa plugin (python | node | go)").option("--slug <slug>", "Plugin slug (lowercase, hyphens)", "").option("--template <name>", "Language template: python | node | go", "python").option("--tool-id <id>", "Override the minted tool_id (default: tool-dev-<slug>)").option("--force", "Overwrite existing dir if non-empty", false).action(async (dir, opts) => {
|
|
559
569
|
const slug = opts.slug || dir.split(/[\\/]/).pop() || "my-executa";
|
|
@@ -566,7 +576,7 @@ executa.command("init <dir>").description("Scaffold a standalone Executa plugin
|
|
|
566
576
|
console.error(`✗ unknown template "${opts.template}" — expected python | node | go`);
|
|
567
577
|
process.exit(2);
|
|
568
578
|
}
|
|
569
|
-
const { runExecutaInit } = await import("./executa-init-
|
|
579
|
+
const { runExecutaInit } = await import("./executa-init-BCqJUZXT.js");
|
|
570
580
|
const code = runExecutaInit({
|
|
571
581
|
targetDir: dir,
|
|
572
582
|
slug,
|
|
@@ -577,12 +587,12 @@ executa.command("init <dir>").description("Scaffold a standalone Executa plugin
|
|
|
577
587
|
process.exit(code);
|
|
578
588
|
});
|
|
579
589
|
executa.command("register").description("Register a HARNESS AnnaApp(kind=executa) so `executa dev --storage real` (and agent / sampling / image / upload real-mode flows) can mint tokens for a local executa subprocess. Does NOT publish the executa itself — use `executa publish` for that. Lists/deletes via `apps list` / `apps delete`.").requiredOption("--tool-id <id>", "Executa tool_id (matches executa.json tool_id / executable_name)").option("--slug <slug>", "App slug (default: executa-<tool_id>; must be lowercase + hyphens)").option("--name <name>", "Human-readable display name (default: <tool_id>)").option("--account <host>", "Saved account host (default: current)").action(async (opts) => {
|
|
580
|
-
const { runExecutaRegister } = await import("./executa-register-
|
|
590
|
+
const { runExecutaRegister } = await import("./executa-register-CMmlKyKB.js");
|
|
581
591
|
const code = await runExecutaRegister(opts);
|
|
582
592
|
process.exit(code);
|
|
583
593
|
});
|
|
584
594
|
executa.command("install").description("Install a local-dev shim for an Executa under its minted tool_id so the Agent can discover it via 'Rediscover Local' (for distribution_type: local). Resolves the tool_id from .anna/executa.json (written by `executa publish` / `apps push`) unless --tool-id is given.").option("--dir <path>", "Executa project dir (default: CWD)").option("--tool-id <id>", "Install the shim under this exact id (default: minted id from .anna/executa.json, else executa.json tool_id)").option("--bin-dir <path>", "Install dir for the shim (default: ~/.anna/executa/bin)").option("--force", "Overwrite an existing shim of the same name", false).option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
585
|
-
const { runExecutaInstall } = await import("./executa-install-
|
|
595
|
+
const { runExecutaInstall } = await import("./executa-install-Bc1WRrWu.js");
|
|
586
596
|
const code = await runExecutaInstall({
|
|
587
597
|
dir: opts.dir,
|
|
588
598
|
toolId: opts.toolId,
|
|
@@ -593,7 +603,7 @@ executa.command("install").description("Install a local-dev shim for an Executa
|
|
|
593
603
|
process.exit(code);
|
|
594
604
|
});
|
|
595
605
|
executa.command("dev").description("Run one Executa plugin in isolation (REPL or one-shot describe/invoke)").option("--dir <path>", "Executa project dir (default: CWD)").option("--spec <spec>", "Override discovery: comma-separated key=value (tool_id=...,type=...,command=\"...\")").option("--describe", "Print MANIFEST and exit", false).option("--health", "Print health and exit", false).option("--invoke <tool>", "Invoke one tool and exit").option("--args <json>", "JSON object passed as tool arguments", "{}").option("--json", "One-shot: emit compact JSON (no banners)", false).option("--no-sampling", "Hard-disable sampling reverse RPC (returns sampling_disabled)").option("--mock-sampling <fixture>", "Serve canned sampling responses from a JSONL fixture (offline)").option("--sampling-unsupported-format", "Simulate a model without json_schema support — exercises responseFormat onUnsupported branches (-32010 / downgrade)").option("--app-slug <slug>", "Forward sampling to nexus on behalf of this dev AnnaApp slug").option("--sampling-account <host>", "Saved account host for nexus sampling (default: current)").option("--no-agent", "Hard-disable agent reverse RPC (returns agent_not_granted)").option("--mock-agent <fixture>", "Serve canned agent/* responses from a JSONL fixture (offline)").option("--agent-account <host>", "Saved account host for nexus agent (default: --sampling-account or current)").option("--storage <mode>", "Storage backend: off | memory | mock | real (default: memory)").option("--mock-storage <fixture>", "Serve canned storage/* + files/* responses from a JSONL fixture").option("--storage-account <host>", "Saved account host for nexus storage (default: --sampling-account or current)").option("--storage-scopes <list>", "Comma-separated scopes for real storage tokens (default: user,app,tool)").option("--no-image", "Hard-disable image reverse RPC (returns image_not_granted)").option("--mock-image <fixture>", "Serve canned image/generate + image/edit responses from a JSONL fixture").option("--image-account <host>", "Saved account host for nexus image (default: --sampling-account or current)").option("--no-upload", "Hard-disable host/uploadFile reverse RPC (returns upload_not_granted)").option("--mock-upload <fixture>", "Serve canned host/uploadFile responses from a JSONL fixture").option("--upload-account <host>", "Saved account host for nexus uploads (default: --sampling-account or current)").action(async (opts) => {
|
|
596
|
-
const { runExecutaDev } = await import("./executa-dev-
|
|
606
|
+
const { runExecutaDev } = await import("./executa-dev-0XdBPTDy.js");
|
|
597
607
|
const storageMode = opts.storage === void 0 ? void 0 : (() => {
|
|
598
608
|
const m = opts.storage;
|
|
599
609
|
if (m === "off" || m === "memory" || m === "mock" || m === "real") return m;
|
|
@@ -631,12 +641,22 @@ executa.command("dev").description("Run one Executa plugin in isolation (REPL or
|
|
|
631
641
|
});
|
|
632
642
|
const apps = program.command("apps").description("Anna App publish lifecycle commands");
|
|
633
643
|
apps.command("list").description("List the Anna Apps you authored, with lifecycle status").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
634
|
-
const { runAppsList } = await import("./apps-
|
|
644
|
+
const { runAppsList } = await import("./apps-BpJ-TvHP.js");
|
|
635
645
|
process.exit(await runAppsList({
|
|
636
646
|
account: opts.account,
|
|
637
647
|
json: opts.json
|
|
638
648
|
}));
|
|
639
649
|
});
|
|
650
|
+
apps.command("rename-slug <new-slug>").description("Rename an app's public slug (DRAFT/REJECTED, never-published, zero installs only). Updates local app.json + .anna/app.json on success.").option("--cwd <dir>", "Project root (default: cwd)").option("--manifest <path>", "manifest.json path", "manifest.json").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (newSlug, opts) => {
|
|
651
|
+
const { runAppsRenameSlug } = await import("./apps-rename-slug-Bp-nQ_6I.js");
|
|
652
|
+
process.exit(await runAppsRenameSlug({
|
|
653
|
+
newSlug,
|
|
654
|
+
cwd: opts.cwd,
|
|
655
|
+
manifest: opts.manifest,
|
|
656
|
+
account: opts.account,
|
|
657
|
+
json: opts.json
|
|
658
|
+
}));
|
|
659
|
+
});
|
|
640
660
|
apps.command("publish").description("Publish or update an Anna App (manifest.json in cwd)").option("--cwd <dir>", "Project root (default: cwd)").option("--manifest <path>", "manifest.json path", "manifest.json").option("--bump <kind>", "Bump version: patch|minor|major").option("--no-write", "Skip writing the bumped version back to disk", false).option("--dry-run", "Resolve identity + diff but don't upload", false).option("--executa-id <handle=id>", "Override a bundled executa handle with a real tool_id (repeatable)", (val, prev) => [...prev, val], []).option("--skip-executa-publish", "Use cached/overridden tool_ids; don't recursively publish bundled executas", false).option("--no-bundled-executas", "Disable bundled-executa orchestration (legacy behaviour)").option("--no-bundle", "Skip UI bundle upload even if the manifest declares a UI").option("--bundle-dir <dir>", "UI bundle directory (default: <cwd>/bundle)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
641
661
|
if (opts.bump && ![
|
|
642
662
|
"patch",
|
|
@@ -646,7 +666,7 @@ apps.command("publish").description("Publish or update an Anna App (manifest.jso
|
|
|
646
666
|
console.error(`✗ --bump must be patch|minor|major (got: ${opts.bump})`);
|
|
647
667
|
process.exit(2);
|
|
648
668
|
}
|
|
649
|
-
const { runAppsPublish } = await import("./apps-publish-
|
|
669
|
+
const { runAppsPublish } = await import("./apps-publish-3wbhXfAg.js");
|
|
650
670
|
process.exit(await runAppsPublish({
|
|
651
671
|
cwd: opts.cwd,
|
|
652
672
|
manifest: opts.manifest,
|
|
@@ -679,7 +699,7 @@ apps.command("push").description("Upsert the mutable working draft (manifest + b
|
|
|
679
699
|
process.exit(2);
|
|
680
700
|
}
|
|
681
701
|
}
|
|
682
|
-
const { runAppsPush } = await import("./apps-push-
|
|
702
|
+
const { runAppsPush } = await import("./apps-push-Bh8zwT--.js");
|
|
683
703
|
process.exit(await runAppsPush({
|
|
684
704
|
cwd: opts.cwd,
|
|
685
705
|
manifest: opts.manifest,
|
|
@@ -698,7 +718,7 @@ apps.command("push").description("Upsert the mutable working draft (manifest + b
|
|
|
698
718
|
}));
|
|
699
719
|
});
|
|
700
720
|
apps.command("cut <version>").description("Snapshot the working draft into an immutable version (freeze deps)").option("--changelog <text>", "Override the working draft changelog for this version").option("--slug <slug>", "App slug (default: resolve from .anna/app.json cache)").option("--cwd <dir>", "Project root for identity cache (default: cwd)").option("--dry-run", "Resolve target but don't cut", false).option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (version, opts) => {
|
|
701
|
-
const { runAppsCut } = await import("./apps-cut-
|
|
721
|
+
const { runAppsCut } = await import("./apps-cut-C5SH9qZN.js");
|
|
702
722
|
process.exit(await runAppsCut({
|
|
703
723
|
version,
|
|
704
724
|
changelog: opts.changelog,
|
|
@@ -710,7 +730,7 @@ apps.command("cut <version>").description("Snapshot the working draft into an im
|
|
|
710
730
|
}));
|
|
711
731
|
});
|
|
712
732
|
apps.command("discard").description("Drop the mutable working draft (leaves cut versions intact)").option("--slug <slug>", "App slug (default: resolve from .anna/app.json cache)").option("--cwd <dir>", "Project root for identity cache (default: cwd)").option("--dry-run", "Resolve target but don't discard", false).option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
713
|
-
const { runAppsDiscard } = await import("./apps-discard-
|
|
733
|
+
const { runAppsDiscard } = await import("./apps-discard-CfdkwUZ_.js");
|
|
714
734
|
process.exit(await runAppsDiscard({
|
|
715
735
|
slug: opts.slug,
|
|
716
736
|
cwd: opts.cwd,
|
|
@@ -720,7 +740,7 @@ apps.command("discard").description("Drop the mutable working draft (leaves cut
|
|
|
720
740
|
}));
|
|
721
741
|
});
|
|
722
742
|
apps.command("release <version>").description("Freeze & publish an existing remote version (go live)").option("--slug <slug>", "App slug (default: resolve from .anna/app.json cache)").option("--cwd <dir>", "Project root for identity cache (default: cwd)").option("--allow-create", "If the version isn't on the server, run 'apps publish' first, then release", false).option("--dry-run", "Resolve target + pre-flight but don't publish", false).option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (version, opts) => {
|
|
723
|
-
const { runAppsRelease } = await import("./apps-release-
|
|
743
|
+
const { runAppsRelease } = await import("./apps-release-DNlN_8gz.js");
|
|
724
744
|
process.exit(await runAppsRelease({
|
|
725
745
|
version,
|
|
726
746
|
slug: opts.slug,
|
|
@@ -732,7 +752,7 @@ apps.command("release <version>").description("Freeze & publish an existing remo
|
|
|
732
752
|
}));
|
|
733
753
|
});
|
|
734
754
|
apps.command("sync-meta").description("Push mutable store metadata (name/tagline/…) from the manifest").option("--cwd <dir>", "Project root (default: cwd)").option("--manifest <path>", "manifest.json path", "manifest.json").option("--dry-run", "Print the metadata diff but don't PATCH", false).option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
735
|
-
const { runAppsSyncMeta } = await import("./apps-sync-meta-
|
|
755
|
+
const { runAppsSyncMeta } = await import("./apps-sync-meta-DdPnXuIU.js");
|
|
736
756
|
process.exit(await runAppsSyncMeta({
|
|
737
757
|
cwd: opts.cwd,
|
|
738
758
|
manifest: opts.manifest,
|
|
@@ -742,7 +762,7 @@ apps.command("sync-meta").description("Push mutable store metadata (name/tagline
|
|
|
742
762
|
}));
|
|
743
763
|
});
|
|
744
764
|
apps.command("submit-review [slug]").description("Move an app into review (DRAFT/REJECTED → PENDING_REVIEW)").option("--cwd <dir>", "Project root for identity cache (default: cwd)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
745
|
-
const { runAppsSubmitReview } = await import("./apps-submit-review-
|
|
765
|
+
const { runAppsSubmitReview } = await import("./apps-submit-review-DH-bzbDZ.js");
|
|
746
766
|
process.exit(await runAppsSubmitReview({
|
|
747
767
|
slug,
|
|
748
768
|
cwd: opts.cwd,
|
|
@@ -751,7 +771,7 @@ apps.command("submit-review [slug]").description("Move an app into review (DRAFT
|
|
|
751
771
|
}));
|
|
752
772
|
});
|
|
753
773
|
apps.command("status <slug>").description("Show server-known state for one Anna App").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
754
|
-
const { runAppsStatus } = await import("./apps-status-
|
|
774
|
+
const { runAppsStatus } = await import("./apps-status-5DV9cY4A.js");
|
|
755
775
|
process.exit(await runAppsStatus({
|
|
756
776
|
slug,
|
|
757
777
|
account: opts.account,
|
|
@@ -759,7 +779,7 @@ apps.command("status <slug>").description("Show server-known state for one Anna
|
|
|
759
779
|
}));
|
|
760
780
|
});
|
|
761
781
|
apps.command("versions <slug>").description("List all server versions of one Anna App").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
762
|
-
const { runAppsVersions } = await import("./apps-versions-
|
|
782
|
+
const { runAppsVersions } = await import("./apps-versions-vGihRRje.js");
|
|
763
783
|
process.exit(await runAppsVersions({
|
|
764
784
|
slug,
|
|
765
785
|
account: opts.account,
|
|
@@ -767,7 +787,7 @@ apps.command("versions <slug>").description("List all server versions of one Ann
|
|
|
767
787
|
}));
|
|
768
788
|
});
|
|
769
789
|
apps.command("grants <slug>").description("Show currently granted scopes/quota for one Anna App").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
770
|
-
const { runAppsGrants } = await import("./apps-grants-
|
|
790
|
+
const { runAppsGrants } = await import("./apps-grants-BtXXiuJt.js");
|
|
771
791
|
process.exit(await runAppsGrants({
|
|
772
792
|
slug,
|
|
773
793
|
account: opts.account,
|
|
@@ -775,7 +795,7 @@ apps.command("grants <slug>").description("Show currently granted scopes/quota f
|
|
|
775
795
|
}));
|
|
776
796
|
});
|
|
777
797
|
apps.command("unpublish <slug>").description("Flip a PUBLISHED app back to APPROVED (private)").option("--yes", "Acknowledge the destructive operation", false).option("--confirm <slug>", "Slug confirmation (must match target)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
778
|
-
const { runAppsUnpublish } = await import("./apps-destructive-
|
|
798
|
+
const { runAppsUnpublish } = await import("./apps-destructive-PY0wKjqu.js");
|
|
779
799
|
process.exit(await runAppsUnpublish({
|
|
780
800
|
slug,
|
|
781
801
|
yes: opts.yes,
|
|
@@ -785,7 +805,7 @@ apps.command("unpublish <slug>").description("Flip a PUBLISHED app back to APPRO
|
|
|
785
805
|
}));
|
|
786
806
|
});
|
|
787
807
|
apps.command("archive <slug>").description("Archive an Anna App (hides it from end users)").option("--yes", "Acknowledge the destructive operation", false).option("--confirm <slug>", "Slug confirmation (must match target)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
788
|
-
const { runAppsArchive } = await import("./apps-destructive-
|
|
808
|
+
const { runAppsArchive } = await import("./apps-destructive-PY0wKjqu.js");
|
|
789
809
|
process.exit(await runAppsArchive({
|
|
790
810
|
slug,
|
|
791
811
|
yes: opts.yes,
|
|
@@ -795,7 +815,7 @@ apps.command("archive <slug>").description("Archive an Anna App (hides it from e
|
|
|
795
815
|
}));
|
|
796
816
|
});
|
|
797
817
|
apps.command("unarchive <slug>").description("Restore an archived Anna App back to APPROVED").option("--yes", "Acknowledge the operation", false).option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
798
|
-
const { runAppsUnarchive } = await import("./apps-destructive-
|
|
818
|
+
const { runAppsUnarchive } = await import("./apps-destructive-PY0wKjqu.js");
|
|
799
819
|
process.exit(await runAppsUnarchive({
|
|
800
820
|
slug,
|
|
801
821
|
yes: opts.yes,
|
|
@@ -804,7 +824,7 @@ apps.command("unarchive <slug>").description("Restore an archived Anna App back
|
|
|
804
824
|
}));
|
|
805
825
|
});
|
|
806
826
|
apps.command("delete <slug>").description("Hard-delete an Anna App (refused by server if installs exist)").option("--yes", "Acknowledge the destructive operation", false).option("--confirm <slug>", "Slug confirmation (must match target)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
807
|
-
const { runAppsDelete } = await import("./apps-destructive-
|
|
827
|
+
const { runAppsDelete } = await import("./apps-destructive-PY0wKjqu.js");
|
|
808
828
|
process.exit(await runAppsDelete({
|
|
809
829
|
slug,
|
|
810
830
|
yes: opts.yes,
|
|
@@ -814,14 +834,14 @@ apps.command("delete <slug>").description("Hard-delete an Anna App (refused by s
|
|
|
814
834
|
}));
|
|
815
835
|
});
|
|
816
836
|
executa.command("list").description("List Executas owned by the current PAT").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
817
|
-
const { runExecutaList } = await import("./executa-reads-
|
|
837
|
+
const { runExecutaList } = await import("./executa-reads-CjIr8BuD.js");
|
|
818
838
|
process.exit(await runExecutaList({
|
|
819
839
|
account: opts.account,
|
|
820
840
|
json: opts.json
|
|
821
841
|
}));
|
|
822
842
|
});
|
|
823
843
|
executa.command("status <ref>").description("Show server-known state for one Executa (slug or tool_id)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (ref, opts) => {
|
|
824
|
-
const { runExecutaStatus } = await import("./executa-reads-
|
|
844
|
+
const { runExecutaStatus } = await import("./executa-reads-CjIr8BuD.js");
|
|
825
845
|
process.exit(await runExecutaStatus({
|
|
826
846
|
ref,
|
|
827
847
|
account: opts.account,
|
|
@@ -829,7 +849,7 @@ executa.command("status <ref>").description("Show server-known state for one Exe
|
|
|
829
849
|
}));
|
|
830
850
|
});
|
|
831
851
|
executa.command("versions <ref>").description("List immutable version snapshots for one Executa").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (ref, opts) => {
|
|
832
|
-
const { runExecutaVersions } = await import("./executa-reads-
|
|
852
|
+
const { runExecutaVersions } = await import("./executa-reads-CjIr8BuD.js");
|
|
833
853
|
process.exit(await runExecutaVersions({
|
|
834
854
|
ref,
|
|
835
855
|
account: opts.account,
|
|
@@ -845,7 +865,7 @@ executa.command("publish").description("Mint or update an Executa (executa.json
|
|
|
845
865
|
console.error(`✗ --bump must be patch|minor|major (got: ${opts.bump})`);
|
|
846
866
|
process.exit(2);
|
|
847
867
|
}
|
|
848
|
-
const { runExecutaPublish } = await import("./executa-publish-
|
|
868
|
+
const { runExecutaPublish } = await import("./executa-publish-9XQRncyN.js");
|
|
849
869
|
process.exit(await runExecutaPublish({
|
|
850
870
|
cwd: opts.cwd,
|
|
851
871
|
manifest: opts.manifest,
|
|
@@ -858,7 +878,7 @@ executa.command("publish").description("Mint or update an Executa (executa.json
|
|
|
858
878
|
}));
|
|
859
879
|
});
|
|
860
880
|
executa.command("unpublish <slug>").description("Flip an Executa's visibility back to private").option("--yes", "Acknowledge the destructive operation", false).option("--confirm <slug>", "Slug confirmation (must match target)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
861
|
-
const { runExecutaUnpublish } = await import("./executa-destructive-
|
|
881
|
+
const { runExecutaUnpublish } = await import("./executa-destructive-8iSnfmcn.js");
|
|
862
882
|
process.exit(await runExecutaUnpublish({
|
|
863
883
|
slug,
|
|
864
884
|
yes: opts.yes,
|
|
@@ -868,7 +888,7 @@ executa.command("unpublish <slug>").description("Flip an Executa's visibility ba
|
|
|
868
888
|
}));
|
|
869
889
|
});
|
|
870
890
|
executa.command("yank <ref>").description("Hard-delete one Executa version (<slug>@<version>)").option("--yes", "Acknowledge the destructive operation", false).option("--confirm <slug>", "Slug confirmation (must match target)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (ref, opts) => {
|
|
871
|
-
const { runExecutaYank } = await import("./executa-destructive-
|
|
891
|
+
const { runExecutaYank } = await import("./executa-destructive-8iSnfmcn.js");
|
|
872
892
|
process.exit(await runExecutaYank({
|
|
873
893
|
ref,
|
|
874
894
|
yes: opts.yes,
|
|
@@ -878,7 +898,7 @@ executa.command("yank <ref>").description("Hard-delete one Executa version (<slu
|
|
|
878
898
|
}));
|
|
879
899
|
});
|
|
880
900
|
executa.command("delete <slug>").description("Hard-delete an Executa").option("--yes", "Acknowledge the destructive operation", false).option("--confirm <slug>", "Slug confirmation (must match target)").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (slug, opts) => {
|
|
881
|
-
const { runExecutaDelete } = await import("./executa-destructive-
|
|
901
|
+
const { runExecutaDelete } = await import("./executa-destructive-8iSnfmcn.js");
|
|
882
902
|
process.exit(await runExecutaDelete({
|
|
883
903
|
slug,
|
|
884
904
|
yes: opts.yes,
|
|
@@ -890,7 +910,7 @@ executa.command("delete <slug>").description("Hard-delete an Executa").option("-
|
|
|
890
910
|
executa.command("cache-clear").description("Delete the local `.anna/executa.json` identity cache. Use after the server-side Executa has been deleted/recreated, or when switching host. Next `executa publish` will re-mint via the idempotency key.").option("--cwd <dir>", "Project root (default: cwd)").action(async (opts) => {
|
|
891
911
|
const { resolve: resolve$1 } = await import("node:path");
|
|
892
912
|
const { existsSync: existsSync$1 } = await import("node:fs");
|
|
893
|
-
const { executaCachePath, invalidateExecutaCache } = await import("./executa-cache-
|
|
913
|
+
const { executaCachePath, invalidateExecutaCache } = await import("./executa-cache-B0O79Hpb.js");
|
|
894
914
|
const cwd = resolve$1(opts.cwd ?? process.cwd());
|
|
895
915
|
const p = executaCachePath(cwd);
|
|
896
916
|
if (!existsSync$1(p)) {
|
|
@@ -903,7 +923,7 @@ executa.command("cache-clear").description("Delete the local `.anna/executa.json
|
|
|
903
923
|
});
|
|
904
924
|
const token = program.command("token").description("Manage developer PATs (list / revoke / scopes)");
|
|
905
925
|
token.command("list").description("List the caller's PATs (most-recent first)").option("--include-revoked", "Also show revoked PATs", false).option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
906
|
-
const { runTokenList } = await import("./token-
|
|
926
|
+
const { runTokenList } = await import("./token-hGGfoge2.js");
|
|
907
927
|
process.exit(await runTokenList({
|
|
908
928
|
includeRevoked: opts.includeRevoked,
|
|
909
929
|
account: opts.account,
|
|
@@ -916,7 +936,7 @@ token.command("revoke <id>").description("Revoke one of the caller's PATs by id"
|
|
|
916
936
|
console.error(`✗ token id must be a positive integer (got: ${id})`);
|
|
917
937
|
process.exit(2);
|
|
918
938
|
}
|
|
919
|
-
const { runTokenRevoke } = await import("./token-
|
|
939
|
+
const { runTokenRevoke } = await import("./token-hGGfoge2.js");
|
|
920
940
|
process.exit(await runTokenRevoke({
|
|
921
941
|
id: idNum,
|
|
922
942
|
account: opts.account,
|
|
@@ -924,7 +944,7 @@ token.command("revoke <id>").description("Revoke one of the caller's PATs by id"
|
|
|
924
944
|
}));
|
|
925
945
|
});
|
|
926
946
|
token.command("scopes").description("Print the available PAT scope catalogue").option("--account <host>", "Saved account host (default: current)").option("--json", "Emit machine-readable JSON", false).action(async (opts) => {
|
|
927
|
-
const { runTokenScopes } = await import("./token-
|
|
947
|
+
const { runTokenScopes } = await import("./token-hGGfoge2.js");
|
|
928
948
|
process.exit(await runTokenScopes({
|
|
929
949
|
account: opts.account,
|
|
930
950
|
json: opts.json
|
|
@@ -939,7 +959,7 @@ program.command("publish").description("Auto-detect cwd and publish (apps publis
|
|
|
939
959
|
console.error(`✗ --bump must be patch|minor|major (got: ${opts.bump})`);
|
|
940
960
|
process.exit(2);
|
|
941
961
|
}
|
|
942
|
-
const { runTopLevelPublish } = await import("./publish-
|
|
962
|
+
const { runTopLevelPublish } = await import("./publish-NTT1Libd.js");
|
|
943
963
|
process.exit(await runTopLevelPublish({
|
|
944
964
|
cwd: opts.cwd,
|
|
945
965
|
bump: opts.bump,
|
|
@@ -49,8 +49,8 @@ async function runDev(opts) {
|
|
|
49
49
|
}
|
|
50
50
|
process.env.ANNA_APP_RUNTIME_STORAGE_MODE = "aps";
|
|
51
51
|
}
|
|
52
|
-
const { PythonBridge, PINNED_RUNTIME_VERSION } = await import("./bridge-
|
|
53
|
-
const { HarnessServer } = await import("./server-
|
|
52
|
+
const { PythonBridge, PINNED_RUNTIME_VERSION } = await import("./bridge-CmoKMMcG.js");
|
|
53
|
+
const { HarnessServer } = await import("./server-DtnMLKQS.js");
|
|
54
54
|
const bridge = new PythonBridge({
|
|
55
55
|
mode,
|
|
56
56
|
matrixNexusRoot: matrixNexusRoot ?? void 0,
|
|
@@ -90,7 +90,7 @@ async function runDev(opts) {
|
|
|
90
90
|
if (executas.length > 0) console.log(` executas ${dim(executas.map((e) => e.tool_id).join(", "))}`);
|
|
91
91
|
const bundledResolved = resolveBundledHandles(dirname(manifestPath), executas);
|
|
92
92
|
if (Object.keys(bundledResolved).length > 0) {
|
|
93
|
-
const { substituteBundledRefs, writeBundleToolIdSidecar } = await import("./bundled-executas-
|
|
93
|
+
const { substituteBundledRefs, writeBundleToolIdSidecar } = await import("./bundled-executas-06keEPP_.js");
|
|
94
94
|
try {
|
|
95
95
|
manifest = substituteBundledRefs(manifest, bundledResolved);
|
|
96
96
|
writeBundleToolIdSidecar(bundleDir, bundledResolved);
|
|
@@ -161,7 +161,7 @@ async function runDev(opts) {
|
|
|
161
161
|
*/
|
|
162
162
|
async function resolveRealLlm(args) {
|
|
163
163
|
const { getAccount } = await import("./credentials-Chkoidh5.js");
|
|
164
|
-
const { ensureDevAppRegistered } = await import("./dev-app-cache-
|
|
164
|
+
const { ensureDevAppRegistered } = await import("./dev-app-cache-CP2P8SCZ.js");
|
|
165
165
|
const acc = getAccount(args.account);
|
|
166
166
|
if (!acc) {
|
|
167
167
|
console.error(red("✗ no developer PAT on disk — run `anna-app login --host <nexus-url>` first.\n (or use `--no-llm` / `--mock-llm <fixture>` to develop offline.)"));
|
|
@@ -190,7 +190,7 @@ async function resolveRealLlm(args) {
|
|
|
190
190
|
account: args.account,
|
|
191
191
|
appSlug: entry.slug,
|
|
192
192
|
onAppSlugNotFound: async () => {
|
|
193
|
-
const { invalidateDevAppCache } = await import("./dev-app-cache-
|
|
193
|
+
const { invalidateDevAppCache } = await import("./dev-app-cache-CP2P8SCZ.js");
|
|
194
194
|
invalidateDevAppCache(args.cwd);
|
|
195
195
|
const fresh = getAccount(args.account);
|
|
196
196
|
if (!fresh) throw new Error("PAT not found while re-registering dev app — run `anna-app login` again");
|
|
@@ -58,6 +58,7 @@ async function registerDevApp(args) {
|
|
|
58
58
|
});
|
|
59
59
|
if (!res.ok) {
|
|
60
60
|
const text = await res.text().catch(() => "");
|
|
61
|
+
if (res.status === 409 && text.includes("HANDLE_REQUIRED")) throw new Error("developer handle required before registering a dev app — run `anna-app account set-handle <handle>` first.");
|
|
61
62
|
throw new Error(`/dev/apps/register failed: HTTP ${res.status} ${text}`);
|
|
62
63
|
}
|
|
63
64
|
return await res.json();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findMatrixNexusRoot, nexusSchemaDir } from "./nexus-root-BlPwOusj.js";
|
|
2
|
-
import { PINNED_RUNTIME_VERSION } from "./bridge-
|
|
2
|
+
import { PINNED_RUNTIME_VERSION } from "./bridge-DXH59CmP.js";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { existsSync, statSync } from "node:fs";
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { executaCacheMatches, executaCachePath, invalidateExecutaCache, mintIdempotencyKey, readExecutaIdentity, writeExecutaIdentity } from "./executa-cache-
|
|
2
|
+
import { executaCacheMatches, executaCachePath, invalidateExecutaCache, mintIdempotencyKey, readExecutaIdentity, writeExecutaIdentity } from "./executa-cache-Do1D7xC0.js";
|
|
3
3
|
|
|
4
4
|
export { executaCachePath, invalidateExecutaCache };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
2
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ensureDestructiveAllowed } from "./confirm-
|
|
3
|
+
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
4
|
+
import { deleteMyTool, listMyTools, listToolVersions, unpublishTool, yankToolVersion } from "./executas-BhFed1B-.js";
|
|
5
|
+
import { ensureDestructiveAllowed } from "./confirm-BuT56E_B.js";
|
|
6
6
|
import { dim, green, yellow } from "kleur/colors";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/executa-destructive.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./nexus-root-BlPwOusj.js";
|
|
2
|
-
import { parseExecutaSpec } from "./dev-
|
|
2
|
+
import { parseExecutaSpec } from "./dev-aWkfWGLD.js";
|
|
3
3
|
import { isAbsolute, resolve } from "node:path";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { bold, cyan, dim, green, red, yellow } from "kleur/colors";
|
|
@@ -35,7 +35,7 @@ async function runExecutaDev(opts) {
|
|
|
35
35
|
const oneShot = !!(opts.describe || opts.health || opts.invoke);
|
|
36
36
|
const quiet = oneShot && (opts.json ?? false);
|
|
37
37
|
const { getAccount } = await import("./credentials-Chkoidh5.js");
|
|
38
|
-
const { ensureDevExecutaRegistered } = await import("./dev-app-cache-
|
|
38
|
+
const { ensureDevExecutaRegistered } = await import("./dev-app-cache-CP2P8SCZ.js");
|
|
39
39
|
const needsRealMint = !opts.noSampling && !opts.mockSampling || !opts.noAgent && !opts.mockAgent || !opts.noImage && !opts.mockImage || !opts.noUpload && !opts.mockUpload || opts.storage === "real";
|
|
40
40
|
let effectiveAppSlug = opts.appSlug;
|
|
41
41
|
let autoRegistered = false;
|
|
@@ -57,7 +57,7 @@ async function runExecutaDev(opts) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const { SamplingBridge } = await import("./sampling-
|
|
60
|
+
const { SamplingBridge } = await import("./sampling-Cc0qaj8a.js");
|
|
61
61
|
const simulateUnsupportedResponseFormat = opts.samplingUnsupportedFormat;
|
|
62
62
|
const sampling = opts.noSampling ? new SamplingBridge({ mode: "off" }) : opts.mockSampling ? new SamplingBridge({
|
|
63
63
|
mode: "mock",
|
|
@@ -69,7 +69,7 @@ async function runExecutaDev(opts) {
|
|
|
69
69
|
appSlug: effectiveAppSlug,
|
|
70
70
|
simulateUnsupportedResponseFormat
|
|
71
71
|
}) : new SamplingBridge({ mode: "off" });
|
|
72
|
-
const { AgentBridge } = await import("./agent-
|
|
72
|
+
const { AgentBridge } = await import("./agent-J2bELWfv.js");
|
|
73
73
|
const agent = opts.noAgent ? new AgentBridge({ mode: "off" }) : opts.mockAgent ? new AgentBridge({
|
|
74
74
|
mode: "mock",
|
|
75
75
|
mockFile: opts.mockAgent
|
|
@@ -78,7 +78,7 @@ async function runExecutaDev(opts) {
|
|
|
78
78
|
account: opts.agentAccount ?? opts.samplingAccount,
|
|
79
79
|
appSlug: effectiveAppSlug
|
|
80
80
|
}) : new AgentBridge({ mode: "off" });
|
|
81
|
-
const { StorageBridge } = await import("./storage-
|
|
81
|
+
const { StorageBridge } = await import("./storage-C95wApr2.js");
|
|
82
82
|
const storageMode = opts.storage ?? (opts.mockStorage ? "mock" : "memory");
|
|
83
83
|
const storage = new StorageBridge({
|
|
84
84
|
mode: storageMode,
|
|
@@ -88,8 +88,8 @@ async function runExecutaDev(opts) {
|
|
|
88
88
|
scopes: opts.storageScopes ? opts.storageScopes.split(",").map((s) => s.trim()).filter(Boolean) : void 0,
|
|
89
89
|
pluginName: parsed.tool_id
|
|
90
90
|
});
|
|
91
|
-
const { ExecutaRunner } = await import("./runner-
|
|
92
|
-
const { ImageBridge } = await import("./image-
|
|
91
|
+
const { ExecutaRunner } = await import("./runner-DVu-o_U8.js");
|
|
92
|
+
const { ImageBridge } = await import("./image-Bdi4Hu0m.js");
|
|
93
93
|
const image = opts.noImage ? new ImageBridge({ mode: "off" }) : opts.mockImage ? new ImageBridge({
|
|
94
94
|
mode: "mock",
|
|
95
95
|
mockFile: opts.mockImage
|
|
@@ -98,7 +98,7 @@ async function runExecutaDev(opts) {
|
|
|
98
98
|
account: opts.imageAccount ?? opts.samplingAccount,
|
|
99
99
|
appSlug: effectiveAppSlug
|
|
100
100
|
}) : new ImageBridge({ mode: "off" });
|
|
101
|
-
const { HostUploadBridge } = await import("./host_upload-
|
|
101
|
+
const { HostUploadBridge } = await import("./host_upload-sfo4UHlR.js");
|
|
102
102
|
const hostUpload = opts.noUpload ? new HostUploadBridge({ mode: "off" }) : opts.mockUpload ? new HostUploadBridge({
|
|
103
103
|
mode: "mock",
|
|
104
104
|
mockFile: opts.mockUpload
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readExecutaIdentity } from "./executa-cache-
|
|
2
|
-
import { parseExecutaSpec } from "./dev-
|
|
1
|
+
import { readExecutaIdentity } from "./executa-cache-Do1D7xC0.js";
|
|
2
|
+
import { parseExecutaSpec } from "./dev-aWkfWGLD.js";
|
|
3
3
|
import { isAbsolute, join, resolve } from "node:path";
|
|
4
4
|
import { chmodSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { bold, cyan, dim, green, red, yellow } from "kleur/colors";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./credentials-BTv2IfUZ.js";
|
|
2
|
+
import "./client-D-_z1ALk.js";
|
|
3
|
+
import "./_lifecycle-shared-CUK2CE76.js";
|
|
4
|
+
import "./executas-BhFed1B-.js";
|
|
5
|
+
import "./executa-cache-Do1D7xC0.js";
|
|
6
|
+
import { runExecutaPublish } from "./executa-publish-Xmm4DMO9.js";
|
|
7
|
+
import "./manifest-CMc7RM57.js";
|
|
8
|
+
|
|
9
|
+
export { runExecutaPublish };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
2
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
4
|
+
import { commitDraft, createDraft, getMySkill, getMyTool, listToolVersions, publishToolVersion, setSkillVisibility, setToolVisibility, updateMySkill, updateMyTool } from "./executas-BhFed1B-.js";
|
|
5
|
+
import { executaCacheMatches, invalidateExecutaCache, mintIdempotencyKey, readExecutaIdentity, writeExecutaIdentity } from "./executa-cache-Do1D7xC0.js";
|
|
6
|
+
import { loadExecutaManifest } from "./manifest-CMc7RM57.js";
|
|
7
7
|
import { join, relative, resolve, sep } from "node:path";
|
|
8
8
|
import { readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
2
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
4
|
+
import { getMyTool, listMyTools, listToolVersions } from "./executas-BhFed1B-.js";
|
|
5
5
|
import { bold, cyan, dim, green } from "kleur/colors";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/executa-reads.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import "./apps-
|
|
2
|
+
import "./apps-73pdBAFE.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
|
-
import "./
|
|
5
|
-
import "./executas-
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
9
|
-
import
|
|
10
|
-
import "./app-cache-
|
|
11
|
-
import "./app-bundle-upload-
|
|
12
|
-
import { runAppsPublish } from "./apps-publish-
|
|
4
|
+
import { withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
|
+
import "./bundled-executas-_H1A9M50.js";
|
|
6
|
+
import "./executas-BhFed1B-.js";
|
|
7
|
+
import "./executa-cache-Do1D7xC0.js";
|
|
8
|
+
import { runExecutaPublish } from "./executa-publish-Xmm4DMO9.js";
|
|
9
|
+
import "./manifest-CMc7RM57.js";
|
|
10
|
+
import "./app-cache-BqnTkxUw.js";
|
|
11
|
+
import "./app-bundle-upload-CPf_nGou.js";
|
|
12
|
+
import { runAppsPublish } from "./apps-publish-B-ZVNmgn.js";
|
|
13
13
|
import { resolve } from "node:path";
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import { red, yellow } from "kleur/colors";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canonicalHost, getAccount } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { BridgeRequestError } from "./bridge-
|
|
2
|
+
import { BridgeRequestError } from "./bridge-DXH59CmP.js";
|
|
3
3
|
import { dirname, join, normalize, resolve } from "node:path";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { createReadStream, existsSync, readFileSync, statSync, watch } from "node:fs";
|