@anna-ai/cli 0.1.21 → 0.1.23
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/{agent-Br6zY2qw.js → agent-DyXJhaZ0.js} +1 -1
- package/dist/{app-bundle-upload-DuLalcSt.js → app-bundle-upload-Cd4ci4rB.js} +1 -1
- package/dist/{apps-cut-DtEkddIk.js → apps-cut-BG6Ib3x4.js} +6 -4
- package/dist/{apps-destructive-DSTrcFUP.js → apps-destructive-DQIFqYE2.js} +1 -1
- package/dist/{apps-discard-y3_IwcbQ.js → apps-discard-BveXHAgF.js} +6 -4
- package/dist/{apps-publish-DfZTOxBJ.js → apps-publish-D403z305.js} +5 -5
- package/dist/{apps-publish-CaTCanDu.js → apps-publish-U_Y7svJw.js} +4 -4
- package/dist/{apps-push-B9XT2uwF.js → apps-push-x5reIQHx.js} +20 -6
- package/dist/{apps-release-BLH9XSxB.js → apps-release-ByIgz6lx.js} +2 -2
- package/dist/{apps-submit-review-DLwCxeAs.js → apps-submit-review-D-cPtZtc.js} +1 -1
- package/dist/{apps-sync-meta-D9eKMMUp.js → apps-sync-meta-CTHwGlzI.js} +2 -2
- package/dist/{bridge-BuklhzeE.js → bridge-CBew_Ytl.js} +1 -1
- package/dist/bridge-DZmZIWG0.js +3 -0
- package/dist/cli.js +69 -43
- package/dist/{dev-E7mqXj5S.js → dev-CyFATq6R.js} +4 -4
- package/dist/dev-DdjwQzJ2.js +3 -0
- package/dist/{doctor-DKrt-Kda.js → doctor-oqYeEjLv.js} +1 -1
- package/dist/{executa-destructive-COQE4Xqi.js → executa-destructive-Dpo58lxI.js} +1 -1
- package/dist/{executa-dev-BvS9zTpO.js → executa-dev-DFp1ckAn.js} +8 -8
- package/dist/executa-install-DnBG8UJA.js +90 -0
- package/dist/executa-install-viq3kiV7.js +6 -0
- package/dist/{executa-publish-Ca5V7MyA.js → executa-publish-BKFq6Hz9.js} +1 -1
- package/dist/{executa-publish-B88_9gbp.js → executa-publish-DaYvxbbW.js} +2 -2
- package/dist/{manifest-DGwRap2i.js → manifest-hXWnNFHE.js} +73 -14
- package/dist/{publish-C1wcf-qI.js → publish-R3JAl9Hm.js} +5 -5
- package/dist/{server-_IG8Igje.js → server-BzfmXVJD.js} +1 -1
- package/dist/{storage-CTkApNQ9.js → storage-BCj754in.js} +1 -1
- package/dist/test/index.js +3 -0
- package/dist/{working-orchestration-Dw9u1Vq0.js → working-orchestration-CIpQ_JMY.js} +51 -4
- package/package.json +1 -1
- package/templates/executa/go/main.go +4 -2
- package/templates/executa/node/plugin.mjs +4 -2
- package/templates/executa/python/__SLUG_PY___plugin.py +4 -2
- package/dist/bridge-Id8K8gr-.js +0 -3
- package/dist/dev-BS_8yoSm.js +0 -3
- /package/dist/{app-cache-BEM653Th.js → app-cache-TcmbIIuL.js} +0 -0
- /package/dist/{apps-BTn9EN0x.js → apps-B57i8xeb.js} +0 -0
- /package/dist/{apps-grants-BGWlpee0.js → apps-grants-D3i6GxX_.js} +0 -0
- /package/dist/{apps-status-DQ9RvlME.js → apps-status-BYo97Nh5.js} +0 -0
- /package/dist/{apps-versions-2Tmk0nsx.js → apps-versions-Ca-AAMLL.js} +0 -0
- /package/dist/{confirm-DxHkk9Wn.js → confirm-C-4haiIg.js} +0 -0
- /package/dist/{dev-account-qRaET1Cp.js → dev-account-CD6hTr7M.js} +0 -0
- /package/dist/{dev-app-cache-D-r6ZpEk.js → dev-app-cache-DMQLQ93-.js} +0 -0
- /package/dist/{executa-init-Jp-h9OI7.js → executa-init-By0kMPaF.js} +0 -0
- /package/dist/{executa-reads-CQ6S8gHY.js → executa-reads-cd-8ZRjI.js} +0 -0
- /package/dist/{executa-register-CulDtwYZ.js → executa-register-BX29VfcD.js} +0 -0
- /package/dist/{fixture-CYwxbiQD.js → fixture-C9VLX3os.js} +0 -0
- /package/dist/{host_upload-GXVkDM5M.js → host_upload-wKM0jQoL.js} +0 -0
- /package/dist/{image-DduR91n5.js → image-CBSlNb-9.js} +0 -0
- /package/dist/{login-BGqFjQwH.js → login-D4cU2Jcp.js} +0 -0
- /package/dist/{logout-CGIRKH3y.js → logout-DOpL3vXX.js} +0 -0
- /package/dist/{runner-B-hIqx5L.js → runner-4-ugGH5e.js} +0 -0
- /package/dist/{sampling-CXke7hq1.js → sampling-finZ8aNJ.js} +0 -0
- /package/dist/{token-B9JUPelx.js → token-BGjbb2aU.js} +0 -0
- /package/dist/{whoami-BoFLEUcp.js → whoami-DarmijoA.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { hostOf, mintAppSession, requireAccount, withCode } from "./dev-account-
|
|
2
|
+
import { hostOf, mintAppSession, requireAccount, withCode } from "./dev-account-CD6hTr7M.js";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { finalizeBundle, finalizeWorkingBundle, getBundle, initBundle, initWorkingBundle, uploadBundleFile, uploadWorkingBundleFile } from "./apps-B1Nd8l_t.js";
|
|
2
2
|
import { CliError } from "./client-Dn9zThOd.js";
|
|
3
|
-
import { canonicalize } from "./executa-publish-
|
|
3
|
+
import { canonicalize } from "./executa-publish-BKFq6Hz9.js";
|
|
4
4
|
import { join, relative, sep } from "node:path";
|
|
5
5
|
import { readFileSync, readdirSync, statSync } from "node:fs";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
@@ -4,11 +4,13 @@ import { CliError } from "./client-Dn9zThOd.js";
|
|
|
4
4
|
import { readExecutasLock, writeExecutasLock } from "./bundled-executas-BNOKw4kv.js";
|
|
5
5
|
import "./executas-Cep6KEo0.js";
|
|
6
6
|
import "./executa-cache-BFoUtb4J.js";
|
|
7
|
-
import "./executa-publish-
|
|
8
|
-
import "./manifest-
|
|
7
|
+
import "./executa-publish-BKFq6Hz9.js";
|
|
8
|
+
import "./manifest-hXWnNFHE.js";
|
|
9
9
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
10
|
+
import "./dev-CyFATq6R.js";
|
|
11
|
+
import "./executa-install-DnBG8UJA.js";
|
|
12
|
+
import "./app-cache-TcmbIIuL.js";
|
|
13
|
+
import { resolveAppBySlugOrCache } from "./working-orchestration-CIpQ_JMY.js";
|
|
12
14
|
import { resolve } from "node:path";
|
|
13
15
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
14
16
|
|
|
@@ -2,7 +2,7 @@ import "./credentials-BTv2IfUZ.js";
|
|
|
2
2
|
import { archiveApp, deleteApp, findAppBySlug, unarchiveApp, unpublishApp } from "./apps-B1Nd8l_t.js";
|
|
3
3
|
import { CliError } from "./client-Dn9zThOd.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
5
|
-
import { ensureDestructiveAllowed } from "./confirm-
|
|
5
|
+
import { ensureDestructiveAllowed } from "./confirm-C-4haiIg.js";
|
|
6
6
|
import { dim, green, yellow } from "kleur/colors";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/apps-destructive.ts
|
|
@@ -4,11 +4,13 @@ import "./client-Dn9zThOd.js";
|
|
|
4
4
|
import "./bundled-executas-BNOKw4kv.js";
|
|
5
5
|
import "./executas-Cep6KEo0.js";
|
|
6
6
|
import "./executa-cache-BFoUtb4J.js";
|
|
7
|
-
import "./executa-publish-
|
|
8
|
-
import "./manifest-
|
|
7
|
+
import "./executa-publish-BKFq6Hz9.js";
|
|
8
|
+
import "./manifest-hXWnNFHE.js";
|
|
9
9
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
10
|
+
import "./dev-CyFATq6R.js";
|
|
11
|
+
import "./executa-install-DnBG8UJA.js";
|
|
12
|
+
import "./app-cache-TcmbIIuL.js";
|
|
13
|
+
import { resolveAppBySlugOrCache } from "./working-orchestration-CIpQ_JMY.js";
|
|
12
14
|
import { dim, green, yellow } from "kleur/colors";
|
|
13
15
|
|
|
14
16
|
//#region src/commands/apps-discard.ts
|
|
@@ -4,11 +4,11 @@ import "./client-Dn9zThOd.js";
|
|
|
4
4
|
import "./bundled-executas-BNOKw4kv.js";
|
|
5
5
|
import "./executas-Cep6KEo0.js";
|
|
6
6
|
import "./executa-cache-BFoUtb4J.js";
|
|
7
|
-
import "./executa-publish-
|
|
8
|
-
import "./manifest-
|
|
7
|
+
import "./executa-publish-BKFq6Hz9.js";
|
|
8
|
+
import "./manifest-hXWnNFHE.js";
|
|
9
9
|
import "./_lifecycle-shared-sbea9HtH.js";
|
|
10
|
-
import "./app-cache-
|
|
11
|
-
import "./app-bundle-upload-
|
|
12
|
-
import { runAppsPublish } from "./apps-publish-
|
|
10
|
+
import "./app-cache-TcmbIIuL.js";
|
|
11
|
+
import "./app-bundle-upload-Cd4ci4rB.js";
|
|
12
|
+
import { runAppsPublish } from "./apps-publish-U_Y7svJw.js";
|
|
13
13
|
|
|
14
14
|
export { runAppsPublish };
|
|
@@ -2,11 +2,11 @@ import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
|
2
2
|
import { createApp, createVersion, findAppBySlug, getApp } from "./apps-B1Nd8l_t.js";
|
|
3
3
|
import { CliError } from "./client-Dn9zThOd.js";
|
|
4
4
|
import { parseExecutaIdOverrides, readExecutasLock, substituteBundledRefs, validateBundledHandles, writeBundleToolIdSidecar, writeExecutasLock } from "./bundled-executas-BNOKw4kv.js";
|
|
5
|
-
import { bumpVersion, bundleHash, manifestHash, rewriteVersion, runExecutaPublish } from "./executa-publish-
|
|
6
|
-
import { loadAppManifest } from "./manifest-
|
|
5
|
+
import { bumpVersion, bundleHash, manifestHash, rewriteVersion, runExecutaPublish } from "./executa-publish-BKFq6Hz9.js";
|
|
6
|
+
import { loadAppManifest } from "./manifest-hXWnNFHE.js";
|
|
7
7
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
8
|
-
import { appCacheMatches, readAppIdentity, writeAppIdentity } from "./app-cache-
|
|
9
|
-
import { isExistingDir, uploadAppBundle } from "./app-bundle-upload-
|
|
8
|
+
import { appCacheMatches, readAppIdentity, writeAppIdentity } from "./app-cache-TcmbIIuL.js";
|
|
9
|
+
import { isExistingDir, uploadAppBundle } from "./app-bundle-upload-Cd4ci4rB.js";
|
|
10
10
|
import { resolve } from "node:path";
|
|
11
11
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
12
12
|
|
|
@@ -4,12 +4,14 @@ import { CliError } from "./client-Dn9zThOd.js";
|
|
|
4
4
|
import "./bundled-executas-BNOKw4kv.js";
|
|
5
5
|
import "./executas-Cep6KEo0.js";
|
|
6
6
|
import "./executa-cache-BFoUtb4J.js";
|
|
7
|
-
import { bumpVersion, bundleHash, manifestHash, rewriteVersion } from "./executa-publish-
|
|
8
|
-
import { loadAppManifest } from "./manifest-
|
|
7
|
+
import { bumpVersion, bundleHash, manifestHash, rewriteVersion } from "./executa-publish-BKFq6Hz9.js";
|
|
8
|
+
import { loadAppManifest } from "./manifest-hXWnNFHE.js";
|
|
9
9
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import "./dev-CyFATq6R.js";
|
|
11
|
+
import "./executa-install-DnBG8UJA.js";
|
|
12
|
+
import "./app-cache-TcmbIIuL.js";
|
|
13
|
+
import { installLocalBundledShims, resolveAppIdentity, resolveBundledExecutas } from "./working-orchestration-CIpQ_JMY.js";
|
|
14
|
+
import { isExistingDir, uploadWorkingBundle } from "./app-bundle-upload-Cd4ci4rB.js";
|
|
13
15
|
import { resolve } from "node:path";
|
|
14
16
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
15
17
|
|
|
@@ -27,7 +29,7 @@ async function runAppsPush(opts) {
|
|
|
27
29
|
manifest.version = next;
|
|
28
30
|
manifest.metadataRaw.version = next;
|
|
29
31
|
}
|
|
30
|
-
const { publishManifestRaw } = await resolveBundledExecutas({
|
|
32
|
+
const { publishManifestRaw, resolved } = await resolveBundledExecutas({
|
|
31
33
|
manifest,
|
|
32
34
|
cwd,
|
|
33
35
|
host,
|
|
@@ -40,6 +42,13 @@ async function runAppsPush(opts) {
|
|
|
40
42
|
account: opts.account,
|
|
41
43
|
json: opts.json
|
|
42
44
|
});
|
|
45
|
+
let installedShims = [];
|
|
46
|
+
if (!opts.dryRun && !opts.noInstallLocal && Object.keys(resolved).length > 0) installedShims = await installLocalBundledShims({
|
|
47
|
+
manifest,
|
|
48
|
+
cwd,
|
|
49
|
+
resolved,
|
|
50
|
+
json: opts.json
|
|
51
|
+
});
|
|
43
52
|
const identity = await resolveAppIdentity({
|
|
44
53
|
client,
|
|
45
54
|
cwd,
|
|
@@ -101,6 +110,7 @@ async function runAppsPush(opts) {
|
|
|
101
110
|
first_publish: firstPublish,
|
|
102
111
|
status: finalApp.status,
|
|
103
112
|
dirty_vs_latest_cut: draft?.dirty_vs_latest_cut ?? null,
|
|
113
|
+
installed_shims: installedShims,
|
|
104
114
|
bundle: bundleResult ? {
|
|
105
115
|
status: bundleResult.status,
|
|
106
116
|
file_count: bundleResult.fileCount,
|
|
@@ -117,6 +127,10 @@ async function runAppsPush(opts) {
|
|
|
117
127
|
else console.log(green(` ✓ working bundle: ${bundleResult.fileCount} files, ${(bundleResult.totalBytes / 1024).toFixed(1)} KB → ${bundleResult.bundleStatus}`));
|
|
118
128
|
console.log(bold(cyan(`status: ${finalApp.status}`)));
|
|
119
129
|
if (draft?.dirty_vs_latest_cut) console.log(dim(` (uncommitted changes vs latest cut version)`));
|
|
130
|
+
if (installedShims.length > 0) {
|
|
131
|
+
for (const s of installedShims) console.log(green(` ✓ installed local dev shim: `) + cyan(s.tool_id));
|
|
132
|
+
console.log(dim(`→ click `) + cyan(`Rediscover Local`) + dim(` in the Agent's Plugin Details to load `) + (installedShims.length === 1 ? dim("it") : dim("them")));
|
|
133
|
+
}
|
|
120
134
|
console.log(dim(`→ install & test the draft (reserved `) + cyan(`0.0.0-draft`) + dim(`) from the Developer Console`));
|
|
121
135
|
console.log(dim(`→ run `) + cyan(`anna-app apps cut ${manifest.version}`) + dim(` to snapshot an immutable version`));
|
|
122
136
|
return 0;
|
|
@@ -2,7 +2,7 @@ import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
|
2
2
|
import { findAppBySlug, getApp, getBundle, listVersions, publishVersion } from "./apps-B1Nd8l_t.js";
|
|
3
3
|
import { CliError } from "./client-Dn9zThOd.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
5
|
-
import { readAppIdentity } from "./app-cache-
|
|
5
|
+
import { readAppIdentity } from "./app-cache-TcmbIIuL.js";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
8
8
|
|
|
@@ -58,7 +58,7 @@ async function runAppsRelease(opts) {
|
|
|
58
58
|
if (!target) {
|
|
59
59
|
if (opts.allowCreate) {
|
|
60
60
|
if (!opts.json) console.log(yellow(`version ${opts.version} not found remotely; running 'apps publish' first (--allow-create)…`));
|
|
61
|
-
const { runAppsPublish } = await import("./apps-publish-
|
|
61
|
+
const { runAppsPublish } = await import("./apps-publish-D403z305.js");
|
|
62
62
|
const code = await runAppsPublish({
|
|
63
63
|
cwd: opts.cwd,
|
|
64
64
|
account: opts.account,
|
|
@@ -2,7 +2,7 @@ import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
|
2
2
|
import { findAppBySlug, getApp, submitForReview } from "./apps-B1Nd8l_t.js";
|
|
3
3
|
import { CliError } from "./client-Dn9zThOd.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
5
|
-
import { readAppIdentity } from "./app-cache-
|
|
5
|
+
import { readAppIdentity } from "./app-cache-TcmbIIuL.js";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
import { bold, cyan, green } from "kleur/colors";
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
2
|
import { findAppBySlug, getApp, patchApp } from "./apps-B1Nd8l_t.js";
|
|
3
3
|
import { CliError } from "./client-Dn9zThOd.js";
|
|
4
|
-
import { loadAppManifest } from "./manifest-
|
|
4
|
+
import { loadAppManifest } from "./manifest-hXWnNFHE.js";
|
|
5
5
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-sbea9HtH.js";
|
|
6
|
-
import { readAppIdentity } from "./app-cache-
|
|
6
|
+
import { readAppIdentity } from "./app-cache-TcmbIIuL.js";
|
|
7
7
|
import { resolve } from "node:path";
|
|
8
8
|
import { bold, cyan, dim, green } from "kleur/colors";
|
|
9
9
|
|
|
@@ -9,7 +9,7 @@ import { createInterface } from "node:readline";
|
|
|
9
9
|
* `uvx <pkg>@<version>` so end users always run the dispatcher version
|
|
10
10
|
* the CLI was tested against.
|
|
11
11
|
*/
|
|
12
|
-
const PINNED_RUNTIME_VERSION = "0.2.
|
|
12
|
+
const PINNED_RUNTIME_VERSION = "0.2.0a7";
|
|
13
13
|
/**
|
|
14
14
|
* Throwable from a {@link RequestHandler} to send a structured JSON-RPC
|
|
15
15
|
* error back to the python bridge with a stable string ``code`` (e.g.
|