@anna-ai/cli 0.1.27 → 0.1.28
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/{apps-cut-DKl5I9bf.js → apps-cut-BOhg9RHy.js} +3 -3
- package/dist/{apps-discard-zg1nu2HN.js → apps-discard-Dy3vzpCM.js} +3 -3
- package/dist/{apps-push-C1-QDzF8.js → apps-push-DbUEFdCK.js} +3 -3
- package/dist/cli.js +6 -6
- package/dist/dev-CQkCFVXu.js +4 -0
- package/dist/{dev-DGTtVCNj.js → dev-DXODERsf.js} +1 -1
- package/dist/{executa-dev-BOo6xpVy.js → executa-dev-Deo8ag5o.js} +1 -1
- package/dist/{executa-install-BGirXLX5.js → executa-install-BHQpOskj.js} +1 -1
- package/dist/executa-install-Bvf_Lvvg.js +7 -0
- package/dist/{server-D7zabdJY.js → server-F_VA-5tS.js} +2 -1
- package/dist/{working-orchestration-Dh1gCwGg.js → working-orchestration-Pjm4YC_U.js} +1 -1
- package/package.json +1 -1
- package/dist/dev-DVCIv8mJ.js +0 -4
- package/dist/executa-install-Cuq0Y_H4.js +0 -7
|
@@ -8,10 +8,10 @@ import "./executa-cache-CXiEgFZY.js";
|
|
|
8
8
|
import "./executa-publish-CkPAB34b.js";
|
|
9
9
|
import "./manifest-Bljz8Y6T.js";
|
|
10
10
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-BpSOfVCP.js";
|
|
11
|
-
import "./dev-
|
|
12
|
-
import "./executa-install-
|
|
11
|
+
import "./dev-DXODERsf.js";
|
|
12
|
+
import "./executa-install-BHQpOskj.js";
|
|
13
13
|
import "./app-cache-Bl7cE5fm.js";
|
|
14
|
-
import { resolveAppBySlugOrCache } from "./working-orchestration-
|
|
14
|
+
import { resolveAppBySlugOrCache } from "./working-orchestration-Pjm4YC_U.js";
|
|
15
15
|
import { resolve } from "node:path";
|
|
16
16
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
17
17
|
|
|
@@ -8,10 +8,10 @@ import "./executa-cache-CXiEgFZY.js";
|
|
|
8
8
|
import "./executa-publish-CkPAB34b.js";
|
|
9
9
|
import "./manifest-Bljz8Y6T.js";
|
|
10
10
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-BpSOfVCP.js";
|
|
11
|
-
import "./dev-
|
|
12
|
-
import "./executa-install-
|
|
11
|
+
import "./dev-DXODERsf.js";
|
|
12
|
+
import "./executa-install-BHQpOskj.js";
|
|
13
13
|
import "./app-cache-Bl7cE5fm.js";
|
|
14
|
-
import { resolveAppBySlugOrCache } from "./working-orchestration-
|
|
14
|
+
import { resolveAppBySlugOrCache } from "./working-orchestration-Pjm4YC_U.js";
|
|
15
15
|
import { dim, green, yellow } from "kleur/colors";
|
|
16
16
|
|
|
17
17
|
//#region src/commands/apps-discard.ts
|
|
@@ -8,10 +8,10 @@ import "./executa-cache-CXiEgFZY.js";
|
|
|
8
8
|
import { bumpVersion, bundleHash, manifestHash, rewriteVersion } from "./executa-publish-CkPAB34b.js";
|
|
9
9
|
import { loadAppManifest } from "./manifest-Bljz8Y6T.js";
|
|
10
10
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-BpSOfVCP.js";
|
|
11
|
-
import "./dev-
|
|
12
|
-
import "./executa-install-
|
|
11
|
+
import "./dev-DXODERsf.js";
|
|
12
|
+
import "./executa-install-BHQpOskj.js";
|
|
13
13
|
import "./app-cache-Bl7cE5fm.js";
|
|
14
|
-
import { installLocalBundledShims, resolveAppIdentity, resolveBundledExecutas } from "./working-orchestration-
|
|
14
|
+
import { installLocalBundledShims, resolveAppIdentity, resolveBundledExecutas } from "./working-orchestration-Pjm4YC_U.js";
|
|
15
15
|
import { isExistingDir, uploadWorkingBundle } from "./app-bundle-upload-BhAYo6yj.js";
|
|
16
16
|
import { resolve } from "node:path";
|
|
17
17
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
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-CQkCFVXu.js");
|
|
474
474
|
const cwd = opts.cwd ?? process.cwd();
|
|
475
475
|
let executas;
|
|
476
476
|
if (opts.executa && opts.executa.length > 0) {
|
|
@@ -582,7 +582,7 @@ executa.command("register").description("Register a HARNESS AnnaApp(kind=executa
|
|
|
582
582
|
process.exit(code);
|
|
583
583
|
});
|
|
584
584
|
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-
|
|
585
|
+
const { runExecutaInstall } = await import("./executa-install-Bvf_Lvvg.js");
|
|
586
586
|
const code = await runExecutaInstall({
|
|
587
587
|
dir: opts.dir,
|
|
588
588
|
toolId: opts.toolId,
|
|
@@ -593,7 +593,7 @@ executa.command("install").description("Install a local-dev shim for an Executa
|
|
|
593
593
|
process.exit(code);
|
|
594
594
|
});
|
|
595
595
|
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("--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-
|
|
596
|
+
const { runExecutaDev } = await import("./executa-dev-Deo8ag5o.js");
|
|
597
597
|
const storageMode = opts.storage === void 0 ? void 0 : (() => {
|
|
598
598
|
const m = opts.storage;
|
|
599
599
|
if (m === "off" || m === "memory" || m === "mock" || m === "real") return m;
|
|
@@ -678,7 +678,7 @@ apps.command("push").description("Upsert the mutable working draft (manifest + b
|
|
|
678
678
|
process.exit(2);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
const { runAppsPush } = await import("./apps-push-
|
|
681
|
+
const { runAppsPush } = await import("./apps-push-DbUEFdCK.js");
|
|
682
682
|
process.exit(await runAppsPush({
|
|
683
683
|
cwd: opts.cwd,
|
|
684
684
|
manifest: opts.manifest,
|
|
@@ -697,7 +697,7 @@ apps.command("push").description("Upsert the mutable working draft (manifest + b
|
|
|
697
697
|
}));
|
|
698
698
|
});
|
|
699
699
|
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) => {
|
|
700
|
-
const { runAppsCut } = await import("./apps-cut-
|
|
700
|
+
const { runAppsCut } = await import("./apps-cut-BOhg9RHy.js");
|
|
701
701
|
process.exit(await runAppsCut({
|
|
702
702
|
version,
|
|
703
703
|
changelog: opts.changelog,
|
|
@@ -709,7 +709,7 @@ apps.command("cut <version>").description("Snapshot the working draft into an im
|
|
|
709
709
|
}));
|
|
710
710
|
});
|
|
711
711
|
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) => {
|
|
712
|
-
const { runAppsDiscard } = await import("./apps-discard-
|
|
712
|
+
const { runAppsDiscard } = await import("./apps-discard-Dy3vzpCM.js");
|
|
713
713
|
process.exit(await runAppsDiscard({
|
|
714
714
|
slug: opts.slug,
|
|
715
715
|
cwd: opts.cwd,
|
|
@@ -50,7 +50,7 @@ async function runDev(opts) {
|
|
|
50
50
|
process.env.ANNA_APP_RUNTIME_STORAGE_MODE = "aps";
|
|
51
51
|
}
|
|
52
52
|
const { PythonBridge, PINNED_RUNTIME_VERSION } = await import("./bridge-6GIQG63S.js");
|
|
53
|
-
const { HarnessServer } = await import("./server-
|
|
53
|
+
const { HarnessServer } = await import("./server-F_VA-5tS.js");
|
|
54
54
|
const bridge = new PythonBridge({
|
|
55
55
|
mode,
|
|
56
56
|
matrixNexusRoot: matrixNexusRoot ?? void 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./nexus-root-BlPwOusj.js";
|
|
2
|
-
import { parseExecutaSpec } from "./dev-
|
|
2
|
+
import { parseExecutaSpec } from "./dev-DXODERsf.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readExecutaIdentity } from "./executa-cache-CXiEgFZY.js";
|
|
2
|
-
import { parseExecutaSpec } from "./dev-
|
|
2
|
+
import { parseExecutaSpec } from "./dev-DXODERsf.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";
|
|
@@ -187,7 +187,8 @@ var LlmBridge = class {
|
|
|
187
187
|
fixed_client_id: args.fixed_client_id ?? args.fixedClientId ?? null,
|
|
188
188
|
app_slug: slug,
|
|
189
189
|
label: args.label ?? "anna-app dev",
|
|
190
|
-
quota_caps: args.quotaCaps ?? null
|
|
190
|
+
quota_caps: args.quotaCaps ?? null,
|
|
191
|
+
system_prompt: args.systemPrompt ?? args.system_prompt ?? null
|
|
191
192
|
};
|
|
192
193
|
const minted = await this.callMint(acc.host, body);
|
|
193
194
|
const ms = {
|
|
@@ -4,7 +4,7 @@ import { CliError } from "./client-D-_z1ALk.js";
|
|
|
4
4
|
import { parseExecutaIdOverrides, readExecutasLock, substituteBundledRefs, validateBundledHandles, writeBundleToolIdSidecar, writeExecutasLock } from "./bundled-executas-B6b8gIfp.js";
|
|
5
5
|
import { runExecutaPublish } from "./executa-publish-CkPAB34b.js";
|
|
6
6
|
import { loadExecutaManifest } from "./manifest-Bljz8Y6T.js";
|
|
7
|
-
import { runExecutaInstall } from "./executa-install-
|
|
7
|
+
import { runExecutaInstall } from "./executa-install-BHQpOskj.js";
|
|
8
8
|
import { appCacheMatches, readAppIdentity, writeAppIdentity } from "./app-cache-Bl7cE5fm.js";
|
|
9
9
|
import { join, resolve } from "node:path";
|
|
10
10
|
import { dim, green, yellow } from "kleur/colors";
|
package/package.json
CHANGED
package/dist/dev-DVCIv8mJ.js
DELETED