@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.
Files changed (68) hide show
  1. package/dist/{_lifecycle-shared-CUK2CE76.js → _lifecycle-shared-RyiRITI5.js} +4 -2
  2. package/dist/{account-bqao7Gp5.js → account-B4rdVDyg.js} +1 -1
  3. package/dist/{agent-CzPryLi6.js → agent-DAOr_aiE.js} +1 -1
  4. package/dist/{app-bundle-upload-CqT9KUOl.js → app-bundle-upload-CrBRnzf4.js} +3 -3
  5. package/dist/{apps-dvknZYI2.js → apps-C_Oln_om.js} +1 -1
  6. package/dist/apps-cut-C14A3V93.js +159 -0
  7. package/dist/{apps-destructive-B6RFjokU.js → apps-destructive-a2YBmWFm.js} +2 -2
  8. package/dist/{apps-discard-hVZxAQyj.js → apps-discard-B49iiOX6.js} +12 -10
  9. package/dist/{apps-grants-DnXCnkH5.js → apps-grants-lmllFB02.js} +1 -1
  10. package/dist/apps-publish-B9CnifEx.js +17 -0
  11. package/dist/{apps-publish-BKqVsS1W.js → apps-publish-qc_E4b_R.js} +7 -7
  12. package/dist/{apps-push-B3wZr9B4.js → apps-push-DnINd0Cx.js} +14 -12
  13. package/dist/{apps-release-DZK30eF_.js → apps-release--7R2cmPg.js} +7 -6
  14. package/dist/{apps-rename-slug-D2BrWasG.js → apps-rename-slug-CGykNHM5.js} +3 -3
  15. package/dist/{apps-status-Ca6MdXZd.js → apps-status-CcCoYu6i.js} +2 -2
  16. package/dist/{apps-submit-review-DMFQI8JZ.js → apps-submit-review-DNrQc2ws.js} +2 -2
  17. package/dist/{apps-sync-meta-BOb6J_wz.js → apps-sync-meta-dy9j-5n8.js} +4 -4
  18. package/dist/{apps-versions-D1lixrmM.js → apps-versions-2BR8xo7C.js} +1 -1
  19. package/dist/binary-upload-CKMU5Rfw.js +181 -0
  20. package/dist/bridge-CzeSuRRL.js +3 -0
  21. package/dist/{bridge-CbjqAm0H.js → bridge-Dvck0e9c.js} +1 -1
  22. package/dist/{bundled-executas-06keEPP_.js → bundled-executas-Bp9Z6aiR.js} +1 -1
  23. package/dist/cli.js +74 -41
  24. package/dist/dev-CZLOk2qE.js +4 -0
  25. package/dist/{dev-Re6NyNDS.js → dev-GUFWek03.js} +5 -5
  26. package/dist/{dev-app-cache-Dv1dZ_bw.js → dev-app-cache-B3Wa5t6X.js} +18 -3
  27. package/dist/{doctor-VrfEkedz.js → doctor-C3Nx8E2L.js} +1 -1
  28. package/dist/{executa-cache-B0O79Hpb.js → executa-cache-WBkCLic7.js} +1 -1
  29. package/dist/{executa-destructive-Bz7vWxEO.js → executa-destructive-DCfQ1ez5.js} +3 -3
  30. package/dist/{executa-dev-B5Uz982M.js → executa-dev-CAw5X64R.js} +8 -8
  31. package/dist/{executa-install-BW9jjY7u.js → executa-install-Dz7hBUsn.js} +2 -2
  32. package/dist/executa-install-nOFLBwxv.js +7 -0
  33. package/dist/{executa-publish-Ah6J7jYd.js → executa-publish-CGz5wM1Q.js} +20 -4
  34. package/dist/executa-publish-DHICU6S0.js +11 -0
  35. package/dist/{executa-reads-BXDJWWw6.js → executa-reads-BmwT_Yjp.js} +2 -2
  36. package/dist/executa-trusted-publisher-tVwzjI2d.js +91 -0
  37. package/dist/executa-upload-binaries-CYMtWJU7.js +9 -0
  38. package/dist/executa-upload-binaries-Do5Sq64E.js +277 -0
  39. package/dist/{manifest-DOMrcdCK.js → manifest-DlIcwLQs.js} +56 -1
  40. package/dist/{publish-GpvkaBIx.js → publish-DW_D3uQ4.js} +12 -10
  41. package/dist/{server-BMcGaUTy.js → server-BHWGGZsf.js} +1 -1
  42. package/dist/{storage-BkF4XyI0.js → storage-aii8EyPC.js} +1 -1
  43. package/dist/{token-uedeaAy7.js → token-COnYMRB-.js} +1 -1
  44. package/dist/{working-orchestration-1jzRuk34.js → working-orchestration-B8KdAh5S.js} +5 -5
  45. package/package.json +1 -1
  46. package/dist/apps-cut-8870xpk-.js +0 -86
  47. package/dist/apps-publish-Djpw5cfG.js +0 -15
  48. package/dist/bridge-CzHB_IsQ.js +0 -3
  49. package/dist/dev-C3yWhzAp.js +0 -4
  50. package/dist/executa-install-Cyid8R7r.js +0 -7
  51. package/dist/executa-publish-DI_6M_ea.js +0 -9
  52. /package/dist/{app-cache-BqnTkxUw.js → app-cache-Cr3tKbux.js} +0 -0
  53. /package/dist/{bundled-executas-_H1A9M50.js → bundled-executas-rSIkaA6-.js} +0 -0
  54. /package/dist/{confirm-BuT56E_B.js → confirm-BSoOy1X2.js} +0 -0
  55. /package/dist/{dev-account-DqEFCmVg.js → dev-account-CfVdGa9j.js} +0 -0
  56. /package/dist/{executa-cache-Do1D7xC0.js → executa-cache-BFoUtb4J.js} +0 -0
  57. /package/dist/{executa-init-D-kWINZ3.js → executa-init-DKy7DMSD.js} +0 -0
  58. /package/dist/{executa-register-D5kvSSz_.js → executa-register-CmqKsoAU.js} +0 -0
  59. /package/dist/{executas-BhFed1B-.js → executas-CvQY_w2U.js} +0 -0
  60. /package/dist/{fixture-BUKQYR5e.js → fixture-BF1Z0Rry.js} +0 -0
  61. /package/dist/{host_upload-BVzAqvX1.js → host_upload-DrbQ-vk2.js} +0 -0
  62. /package/dist/{image-BLPyUbGQ.js → image-B4UrufYH.js} +0 -0
  63. /package/dist/{listing-meta-BlY7XMrw.js → listing-meta-C0HsNjIB.js} +0 -0
  64. /package/dist/{login-DhgBgsfx.js → login-DbETuUxy.js} +0 -0
  65. /package/dist/{logout-VYDkLYAx.js → logout-BzIEf-HU.js} +0 -0
  66. /package/dist/{runner-BxYjAmih.js → runner-Bka_coxb.js} +0 -0
  67. /package/dist/{sampling-XBIEYU4A.js → sampling-BpJcd6BC.js} +0 -0
  68. /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 };
@@ -1,3 +0,0 @@
1
- import { BridgeRequestError, PINNED_RUNTIME_VERSION, PythonBridge } from "./bridge-CbjqAm0H.js";
2
-
3
- export { PINNED_RUNTIME_VERSION, PythonBridge };
@@ -1,4 +0,0 @@
1
- import "./nexus-root-BlPwOusj.js";
2
- import { parseExecutaSpec, runDev } from "./dev-Re6NyNDS.js";
3
-
4
- export { parseExecutaSpec, runDev };
@@ -1,7 +0,0 @@
1
- import "./credentials-BTv2IfUZ.js";
2
- import "./nexus-root-BlPwOusj.js";
3
- import "./executa-cache-Do1D7xC0.js";
4
- import "./dev-Re6NyNDS.js";
5
- import { runExecutaInstall } from "./executa-install-BW9jjY7u.js";
6
-
7
- export { runExecutaInstall };
@@ -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