@anna-ai/cli 0.1.32 → 0.1.34
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-CUK2CE76.js → _lifecycle-shared-RyiRITI5.js} +4 -2
- package/dist/{account-bqao7Gp5.js → account-B4rdVDyg.js} +1 -1
- package/dist/{agent-CzPryLi6.js → agent-DAOr_aiE.js} +1 -1
- package/dist/{app-bundle-upload-CqT9KUOl.js → app-bundle-upload-CrBRnzf4.js} +3 -3
- package/dist/{apps-dvknZYI2.js → apps-C_Oln_om.js} +1 -1
- package/dist/apps-cut-C14A3V93.js +159 -0
- package/dist/{apps-destructive-B6RFjokU.js → apps-destructive-a2YBmWFm.js} +2 -2
- package/dist/{apps-discard-hVZxAQyj.js → apps-discard-B49iiOX6.js} +12 -10
- package/dist/{apps-grants-DnXCnkH5.js → apps-grants-lmllFB02.js} +1 -1
- package/dist/apps-publish-B9CnifEx.js +17 -0
- package/dist/{apps-publish-BKqVsS1W.js → apps-publish-qc_E4b_R.js} +7 -7
- package/dist/{apps-push-B3wZr9B4.js → apps-push-DnINd0Cx.js} +14 -12
- package/dist/{apps-release-DZK30eF_.js → apps-release--7R2cmPg.js} +7 -6
- package/dist/{apps-rename-slug-D2BrWasG.js → apps-rename-slug-CGykNHM5.js} +3 -3
- package/dist/{apps-status-Ca6MdXZd.js → apps-status-CcCoYu6i.js} +2 -2
- package/dist/{apps-submit-review-DMFQI8JZ.js → apps-submit-review-DNrQc2ws.js} +2 -2
- package/dist/{apps-sync-meta-BOb6J_wz.js → apps-sync-meta-dy9j-5n8.js} +4 -4
- package/dist/{apps-versions-D1lixrmM.js → apps-versions-2BR8xo7C.js} +1 -1
- package/dist/binary-upload-CKMU5Rfw.js +181 -0
- package/dist/bridge-CzeSuRRL.js +3 -0
- package/dist/{bridge-CbjqAm0H.js → bridge-Dvck0e9c.js} +1 -1
- package/dist/{bundled-executas-06keEPP_.js → bundled-executas-Bp9Z6aiR.js} +1 -1
- package/dist/cli.js +74 -41
- package/dist/dev-CZLOk2qE.js +4 -0
- package/dist/{dev-Re6NyNDS.js → dev-GUFWek03.js} +5 -5
- package/dist/{dev-app-cache-Dv1dZ_bw.js → dev-app-cache-B3Wa5t6X.js} +18 -3
- package/dist/{doctor-VrfEkedz.js → doctor-C3Nx8E2L.js} +1 -1
- package/dist/{executa-cache-B0O79Hpb.js → executa-cache-WBkCLic7.js} +1 -1
- package/dist/{executa-destructive-Bz7vWxEO.js → executa-destructive-DCfQ1ez5.js} +3 -3
- package/dist/{executa-dev-B5Uz982M.js → executa-dev-CAw5X64R.js} +8 -8
- package/dist/{executa-install-BW9jjY7u.js → executa-install-Dz7hBUsn.js} +2 -2
- package/dist/executa-install-nOFLBwxv.js +7 -0
- package/dist/{executa-publish-Ah6J7jYd.js → executa-publish-CGz5wM1Q.js} +20 -4
- package/dist/executa-publish-DHICU6S0.js +11 -0
- package/dist/{executa-reads-BXDJWWw6.js → executa-reads-BmwT_Yjp.js} +2 -2
- package/dist/executa-trusted-publisher-tVwzjI2d.js +91 -0
- package/dist/executa-upload-binaries-CYMtWJU7.js +9 -0
- package/dist/executa-upload-binaries-Do5Sq64E.js +277 -0
- package/dist/{manifest-DOMrcdCK.js → manifest-DlIcwLQs.js} +56 -1
- package/dist/{publish-GpvkaBIx.js → publish-DW_D3uQ4.js} +12 -10
- package/dist/{server-BMcGaUTy.js → server-BHWGGZsf.js} +1 -1
- package/dist/{storage-BkF4XyI0.js → storage-aii8EyPC.js} +1 -1
- package/dist/{token-uedeaAy7.js → token-COnYMRB-.js} +1 -1
- package/dist/{working-orchestration-1jzRuk34.js → working-orchestration-B8KdAh5S.js} +5 -5
- package/package.json +1 -1
- package/dist/apps-cut-8870xpk-.js +0 -86
- package/dist/apps-publish-Djpw5cfG.js +0 -15
- package/dist/bridge-CzHB_IsQ.js +0 -3
- package/dist/dev-C3yWhzAp.js +0 -4
- package/dist/executa-install-Cyid8R7r.js +0 -7
- package/dist/executa-publish-DI_6M_ea.js +0 -9
- /package/dist/{app-cache-BqnTkxUw.js → app-cache-Cr3tKbux.js} +0 -0
- /package/dist/{bundled-executas-_H1A9M50.js → bundled-executas-rSIkaA6-.js} +0 -0
- /package/dist/{confirm-BuT56E_B.js → confirm-BSoOy1X2.js} +0 -0
- /package/dist/{dev-account-DqEFCmVg.js → dev-account-CfVdGa9j.js} +0 -0
- /package/dist/{executa-cache-Do1D7xC0.js → executa-cache-BFoUtb4J.js} +0 -0
- /package/dist/{executa-init-D-kWINZ3.js → executa-init-DKy7DMSD.js} +0 -0
- /package/dist/{executa-register-D5kvSSz_.js → executa-register-CmqKsoAU.js} +0 -0
- /package/dist/{executas-BhFed1B-.js → executas-CvQY_w2U.js} +0 -0
- /package/dist/{fixture-BUKQYR5e.js → fixture-BF1Z0Rry.js} +0 -0
- /package/dist/{host_upload-BVzAqvX1.js → host_upload-DrbQ-vk2.js} +0 -0
- /package/dist/{image-BLPyUbGQ.js → image-B4UrufYH.js} +0 -0
- /package/dist/{listing-meta-BlY7XMrw.js → listing-meta-C0HsNjIB.js} +0 -0
- /package/dist/{login-DhgBgsfx.js → login-DbETuUxy.js} +0 -0
- /package/dist/{logout-VYDkLYAx.js → logout-BzIEf-HU.js} +0 -0
- /package/dist/{runner-BxYjAmih.js → runner-Bka_coxb.js} +0 -0
- /package/dist/{sampling-XBIEYU4A.js → sampling-BpJcd6BC.js} +0 -0
- /package/dist/{whoami-C_x26b_k.js → whoami-Bn38ns8r.js} +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import "./nexus-root-BlPwOusj.js";
|
|
3
|
-
import { cutWorkingDraft } from "./apps-DlVsVHQ5.js";
|
|
4
|
-
import { CliError } from "./client-D-_z1ALk.js";
|
|
5
|
-
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
6
|
-
import { readExecutasLock, writeExecutasLock } from "./bundled-executas-_H1A9M50.js";
|
|
7
|
-
import "./executas-BhFed1B-.js";
|
|
8
|
-
import "./executa-cache-Do1D7xC0.js";
|
|
9
|
-
import "./executa-publish-Ah6J7jYd.js";
|
|
10
|
-
import "./manifest-DOMrcdCK.js";
|
|
11
|
-
import "./dev-Re6NyNDS.js";
|
|
12
|
-
import "./executa-install-BW9jjY7u.js";
|
|
13
|
-
import "./app-cache-BqnTkxUw.js";
|
|
14
|
-
import { resolveAppBySlugOrCache } from "./working-orchestration-1jzRuk34.js";
|
|
15
|
-
import { resolve } from "node:path";
|
|
16
|
-
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
17
|
-
|
|
18
|
-
//#region src/commands/apps-cut.ts
|
|
19
|
-
async function runAppsCut(opts) {
|
|
20
|
-
return withErrorHandling(async () => {
|
|
21
|
-
const { client, host } = resolveClient({ account: opts.account });
|
|
22
|
-
const app = await resolveAppBySlugOrCache(client, host, {
|
|
23
|
-
slug: opts.slug,
|
|
24
|
-
cwd: opts.cwd
|
|
25
|
-
});
|
|
26
|
-
if (opts.dryRun) {
|
|
27
|
-
if (!opts.json) console.log(yellow(`[dry-run] would cut version ${opts.version} for apps/${app.slug} (app_id=${app.id})`));
|
|
28
|
-
return 0;
|
|
29
|
-
}
|
|
30
|
-
let result;
|
|
31
|
-
try {
|
|
32
|
-
result = await cutWorkingDraft(client, app.id, {
|
|
33
|
-
version: opts.version,
|
|
34
|
-
changelog: opts.changelog
|
|
35
|
-
});
|
|
36
|
-
} catch (e) {
|
|
37
|
-
if (e instanceof CliError && e.status === 409) throw new CliError(`version ${opts.version} already cut for apps/${app.slug}; choose a higher SemVer (e.g. bump patch/minor) and retry`, 9);
|
|
38
|
-
if (e instanceof CliError && (e.status === 400 || e.status === 422)) throw new CliError(`cannot cut: ${e.message} — fix the working draft and \`apps push\` again`, 4);
|
|
39
|
-
throw e;
|
|
40
|
-
}
|
|
41
|
-
if (result.frozen_executas.length > 0) {
|
|
42
|
-
const cwd = resolve(opts.cwd ?? process.cwd());
|
|
43
|
-
const lock = readExecutasLock(cwd, host);
|
|
44
|
-
if (lock) {
|
|
45
|
-
const byToolId = new Map(Object.entries(lock.executas).map(([h, e]) => [e.tool_id, h]));
|
|
46
|
-
for (const fr of result.frozen_executas) {
|
|
47
|
-
const handle = byToolId.get(fr.tool_id);
|
|
48
|
-
if (handle && lock.executas[handle]) lock.executas[handle] = {
|
|
49
|
-
...lock.executas[handle],
|
|
50
|
-
tool_id: fr.tool_id,
|
|
51
|
-
source: "cut"
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
writeExecutasLock(cwd, {
|
|
55
|
-
$schema: "anna-executas-lock/v1",
|
|
56
|
-
host: canonicalHost(host),
|
|
57
|
-
executas: lock.executas
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (opts.json) {
|
|
62
|
-
console.log(JSON.stringify({
|
|
63
|
-
app_id: app.id,
|
|
64
|
-
slug: app.slug,
|
|
65
|
-
host,
|
|
66
|
-
version_id: result.version_id,
|
|
67
|
-
version: result.version,
|
|
68
|
-
frozen_executas: result.frozen_executas,
|
|
69
|
-
bundle: result.bundle
|
|
70
|
-
}, null, 2));
|
|
71
|
-
return 0;
|
|
72
|
-
}
|
|
73
|
-
console.log(green(`✓ apps/${app.slug}: cut immutable version ${result.version} `) + dim(`(version_id=${result.version_id})`));
|
|
74
|
-
for (const fr of result.frozen_executas) console.log(dim(` froze ${fr.tool_id} → executa_version=${fr.executa_version_id}`) + (fr.version ? dim(` (v${fr.version})`) : ""));
|
|
75
|
-
if (result.bundle && typeof result.bundle === "object") {
|
|
76
|
-
const prefix = result.bundle.object_prefix;
|
|
77
|
-
if (prefix) console.log(dim(` bundle frozen at ${prefix}`));
|
|
78
|
-
}
|
|
79
|
-
console.log(dim(`→ run `) + cyan(`anna-app apps release ${result.version}`) + dim(` to go live`));
|
|
80
|
-
console.log(bold(cyan(`status: ${app.status}`)));
|
|
81
|
-
return 0;
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
//#endregion
|
|
86
|
-
export { runAppsCut };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import "./apps-DlVsVHQ5.js";
|
|
3
|
-
import "./client-D-_z1ALk.js";
|
|
4
|
-
import "./_lifecycle-shared-CUK2CE76.js";
|
|
5
|
-
import "./bundled-executas-_H1A9M50.js";
|
|
6
|
-
import "./executas-BhFed1B-.js";
|
|
7
|
-
import "./executa-cache-Do1D7xC0.js";
|
|
8
|
-
import "./executa-publish-Ah6J7jYd.js";
|
|
9
|
-
import "./manifest-DOMrcdCK.js";
|
|
10
|
-
import "./app-cache-BqnTkxUw.js";
|
|
11
|
-
import "./listing-meta-BlY7XMrw.js";
|
|
12
|
-
import "./app-bundle-upload-CqT9KUOl.js";
|
|
13
|
-
import { runAppsPublish } from "./apps-publish-BKqVsS1W.js";
|
|
14
|
-
|
|
15
|
-
export { runAppsPublish };
|
package/dist/bridge-CzHB_IsQ.js
DELETED
package/dist/dev-C3yWhzAp.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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-Ah6J7jYd.js";
|
|
7
|
-
import "./manifest-DOMrcdCK.js";
|
|
8
|
-
|
|
9
|
-
export { runExecutaPublish };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|