@akanjs/cli 3.2.0-rc.31 → 3.2.0-rc.32

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 (94) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-c17abdbf.js → CodeAgent-7m6cmdf8.js} +2 -2
  3. package/{CodeTui-jed1nj82.js → CodeTui-c6de37ea.js} +1 -1
  4. package/README.ko.md +7 -0
  5. package/README.md +7 -0
  6. package/TunnelShare-9ry4vh0y.js +18 -0
  7. package/{agent.command-9whnc6vb.js → agent.command-3qstwjef.js} +26 -21
  8. package/akanCode.js +2 -2
  9. package/{appExecutor-020cyesq.js → appExecutor-79azsb2w.js} +3 -3
  10. package/{application.command-4eqvyxkw.js → application.command-8y4kxzvc.js} +36 -24
  11. package/{applicationBuildRunner-frtcrqfd.js → applicationBuildRunner-trfxv3pd.js} +43 -15
  12. package/buildBatch.proc.js +10 -10
  13. package/{cloud.command-hbvmeezn.js → cloud.command-zczv575c.js} +28 -28
  14. package/cloud.script-t268m15f.js +35 -0
  15. package/{code.command-0ayrenk4.js → code.command-069wchwn.js} +10 -10
  16. package/context.command-v3e98f2h.js +64 -0
  17. package/context.runner-3jr6chgz.js +34 -0
  18. package/{guideline.command-w1grfwh7.js → guideline.command-zwypaqsh.js} +7 -7
  19. package/guidelines/errorCodes/errorCodes.instruction.md +1 -0
  20. package/guidelines/mcpRule/mcpRule.instruction.md +87 -27
  21. package/guidelines/queryRule/queryRule.instruction.md +3 -1
  22. package/guidelines/runtimeRule/runtimeRule.instruction.md +7 -3
  23. package/guidelines/transportRule/transportRule.instruction.md +28 -0
  24. package/incrementalBuilder.proc.js +12 -9
  25. package/{index-5d57kx0s.js → index-275a4r3n.js} +3 -3
  26. package/{index-6zb17wcm.js → index-2jmvfa62.js} +3 -3
  27. package/{index-9rv2zt48.js → index-2yn3r67f.js} +78 -25
  28. package/{index-6pxmcaq8.js → index-3txdtztz.js} +1 -1
  29. package/{index-nm7nt9vm.js → index-4ss4gkv3.js} +2 -2
  30. package/{index-9wab2ngg.js → index-612fdtbk.js} +1 -1
  31. package/{index-7bs463x7.js → index-6dzjer7p.js} +6 -6
  32. package/{index-qssq2d41.js → index-71y6176j.js} +11 -6
  33. package/{index-4st0hq72.js → index-73x6z7ym.js} +24 -17
  34. package/{index-vjbne22r.js → index-7wf8snar.js} +1 -1
  35. package/{index-yvzm8mby.js → index-9wh04mqy.js} +1 -1
  36. package/{index-yxkjsyx8.js → index-a860mx0m.js} +2 -2
  37. package/{index-42jhx2ya.js → index-b2sdtgc7.js} +3 -3
  38. package/{index-1pjwsh2g.js → index-baccvws5.js} +1 -1
  39. package/{index-99kjwyma.js → index-c669pbyb.js} +4 -3
  40. package/{index-prgvqqxe.js → index-cd839jw2.js} +126 -113
  41. package/{index-6469101k.js → index-dadwp2aw.js} +33 -98
  42. package/{index-7v7tvgt7.js → index-dmcpetwe.js} +123 -43
  43. package/{index-ba2xd32s.js → index-e9w8wq0a.js} +27 -22
  44. package/{index-fp5xf6ef.js → index-ebn9kgea.js} +3 -3
  45. package/{index-s3m89wt2.js → index-exzkev4k.js} +7 -7
  46. package/{index-m5gg0wzv.js → index-gec8q5z9.js} +57 -30
  47. package/{index-m3t28rt3.js → index-gt8phqpt.js} +4 -4
  48. package/{index-g7jgd4xs.js → index-j592zfqc.js} +1 -1
  49. package/{index-cb91b6d8.js → index-jek2re5k.js} +3 -3
  50. package/{index-ffa52fwf.js → index-jf4vk1s0.js} +8 -1
  51. package/{index-v929w7j7.js → index-kykky4re.js} +59 -15
  52. package/{index-9wjrwjgz.js → index-nk374pqd.js} +8 -8
  53. package/{index-28nk8w3j.js → index-pk2ja04e.js} +8 -8
  54. package/{index-jgj31xvw.js → index-qcp6e2ht.js} +22 -5
  55. package/{index-at6haq2x.js → index-qyhr8wst.js} +61 -18
  56. package/{index-f16kr6vj.js → index-s885g0jj.js} +2 -2
  57. package/{index-bj8s07s7.js → index-t2zhw8c7.js} +4 -4
  58. package/{index-11d7nh8a.js → index-v7ajmsh3.js} +1 -1
  59. package/{index-dss3ds74.js → index-w1zexzpx.js} +1 -1
  60. package/{index-g45y5f3e.js → index-wzp3yg01.js} +1 -1
  61. package/{index-ze48c0vd.js → index-z92zm3wd.js} +2 -2
  62. package/{index-na8r4a27.js → index-zfnz878d.js} +1 -1
  63. package/{index-0gaj78wn.js → index-zmd9xxgd.js} +3 -3
  64. package/{index-p06kfhdf.js → index-zzebpyr0.js} +4 -4
  65. package/index.js +27 -27
  66. package/{libExecutor-tq994592.js → libExecutor-jc6f8hm6.js} +2 -2
  67. package/{library.command-x219mhcx.js → library.command-nxvesvhb.js} +11 -8
  68. package/{localRegistry.command-zvdcejhn.js → localRegistry.command-4a655xnq.js} +20 -20
  69. package/{module.command-k6cwcm7g.js → module.command-aaws9byg.js} +9 -9
  70. package/{package.command-vw7x09f8.js → package.command-j7hv26p0.js} +10 -10
  71. package/package.json +8 -8
  72. package/{page.command-gf06paq2.js → page.command-7yffs7n9.js} +7 -7
  73. package/{pipeline.command-y07dgj9b.js → pipeline.command-7yk0zcng.js} +8 -7
  74. package/{pkgExecutor-stde3yc3.js → pkgExecutor-arxmvx4t.js} +2 -2
  75. package/{primitive.command-edydvh07.js → primitive.command-7a1pt715.js} +10 -10
  76. package/{projectTypecheck-mk8wefvd.js → projectTypecheck-f4qhbecd.js} +1 -1
  77. package/{quality.command-mdb45vyr.js → quality.command-08bn42t4.js} +13 -10
  78. package/{repair.command-kvtaeecy.js → repair.command-r59jat74.js} +9 -9
  79. package/{scalar.command-sjt9p5e1.js → scalar.command-2ex84spb.js} +8 -8
  80. package/skills/akan-mcp/SKILL.md +6 -2
  81. package/skills/akan-validate/SKILL.md +3 -3
  82. package/{subspace.command-mkkqync4.js → subspace.command-2nxakmk3.js} +16 -13
  83. package/templates/workspaceRoot/.devcontainer/devcontainer.json.template +1 -1
  84. package/templates/workspaceRoot/README.ts +4 -2
  85. package/{tunnel.command-tr5b3030.js → tunnel.command-f7ep1qfa.js} +12 -12
  86. package/{typeChecker-bfrd1n9n.js → typeChecker-7jt6abrs.js} +1 -1
  87. package/typecheck.proc.js +3 -2
  88. package/{verify.command-0p9h8tpp.js → verify.command-xbztwp1r.js} +17 -17
  89. package/{workflow.command-9mfcwqzj.js → workflow.command-pmyx55y4.js} +18 -15
  90. package/{workspace.command-5hjtmcfs.js → workspace.command-89p90zvb.js} +36 -36
  91. package/TunnelShare-mbfcaqg0.js +0 -18
  92. package/cloud.script-9kmbr3d6.js +0 -35
  93. package/context.command-php852kf.js +0 -61
  94. package/context.runner-nngmn7c0.js +0 -34
@@ -19,7 +19,7 @@ import {
19
19
  SubagentPool2,
20
20
  McpSignIn,
21
21
  AkanCodeCompaction2
22
- } from "./index-g45y5f3e.js";
22
+ } from "./index-wzp3yg01.js";
23
23
  import {
24
24
  codeAgentIsLoopback,
25
25
  codeAgentHostListed,
@@ -267,7 +267,8 @@ class AkanCodeServices2 {
267
267
  enableInstallTelemetry: false,
268
268
  enableAnalytics: false,
269
269
  quietStartup: true,
270
- compaction: { reserveTokens: AkanCodeCompaction2.reserveFloor }
270
+ compaction: { reserveTokens: AkanCodeCompaction2.reserveFloor },
271
+ cacheWarming: "streaming"
271
272
  });
272
273
  }
273
274
  static async runtime(workspaceRoot, proxy = null) {
@@ -276,12 +277,28 @@ class AkanCodeServices2 {
276
277
  authPath: proxy ? path4.join(mkdtempSync(path4.join(tmpdir(), "akan-code-proxy-")), "auth.json") : akanCodePaths2.authFile(),
277
278
  modelsPath: akanCodePaths2.modelsFile()
278
279
  });
280
+ AkanCodeServices2.#holdMessageThreadsOff(runtime);
279
281
  if (proxy)
280
282
  await proxy.apply(runtime);
281
283
  else
282
284
  await AkanEnvKeys2.apply(runtime, workspaceRoot);
283
285
  return runtime;
284
286
  }
287
+ static #holdMessageThreadsOff(runtime) {
288
+ const target = runtime;
289
+ const original = target.prepareRequest?.bind(runtime);
290
+ if (!original)
291
+ throw new Error("The model runtime no longer exposes prepareRequest; update AkanCodeServices");
292
+ target.prepareRequest = async (model, options) => {
293
+ const prepared = await original(model, options);
294
+ if (prepared.model.compat?.supportsMessageThreads !== undefined)
295
+ return prepared;
296
+ return {
297
+ ...prepared,
298
+ model: { ...prepared.model, compat: { ...prepared.model.compat, supportsMessageThreads: false } }
299
+ };
300
+ };
301
+ }
285
302
  static sessions(workspaceRoot, cwd, profile, resume) {
286
303
  if (profile.session.store === "memory")
287
304
  return SessionManager.inMemory(cwd);
@@ -659,7 +676,7 @@ class AkanToolPack2 {
659
676
  return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
660
677
  }
661
678
  async names() {
662
- const { ContextRunner } = await import("./context.runner-nngmn7c0.js");
679
+ const { ContextRunner } = await import("./context.runner-3jr6chgz.js");
663
680
  return [
664
681
  ...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
665
682
  AkanToolPack2.verifyToolName
@@ -667,7 +684,7 @@ class AkanToolPack2 {
667
684
  }
668
685
  static verifyToolName = "akan_verify";
669
686
  async#register(pi) {
670
- const { ContextRunner } = await import("./context.runner-nngmn7c0.js");
687
+ const { ContextRunner } = await import("./context.runner-3jr6chgz.js");
671
688
  const runner = new ContextRunner;
672
689
  const guidelineNames = await AkanToolPack2.#guidelineNames();
673
690
  for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
@@ -694,7 +711,7 @@ class AkanToolPack2 {
694
711
  pi.registerTool({
695
712
  name: AkanToolPack2.verifyToolName,
696
713
  label: "akan verify",
697
- description: "Run `akan verify` over everything the working tree has changed: sync, lint (with fixes), typecheck, a fast build of each changed app, and the SSR check for .tsx changes, in one call. It prints one line when it passes and one line per problem when it fails. Call this after editing, before you finish; never run lint, typecheck or build separately.",
714
+ description: "Run `akan verify` over everything the working tree has changed: sync, lint (with fixes), typecheck, a build of each changed app's server and SSR routes, and the SSR check for .tsx changes, in one call. It prints one line when it passes and one line per problem when it fails. Call this after editing, before you finish; never run lint, typecheck or build separately.",
698
715
  promptSnippet: "akan_verify: sync, lint, typecheck and build what the working tree changed, in one call",
699
716
  parameters: Type.Object({}),
700
717
  execute: async () => {
@@ -4,7 +4,7 @@ import {
4
4
  SysExecutor,
5
5
  AppInfo,
6
6
  WorkspaceExecutor
7
- } from "./index-qssq2d41.js";
7
+ } from "./index-71y6176j.js";
8
8
  import {
9
9
  FileSys2
10
10
  } from "./index-by2tvsq6.js";
@@ -13,13 +13,13 @@ import {
13
13
  } from "./index-j4yvgfhr.js";
14
14
  import {
15
15
  AppExecutor2
16
- } from "./index-ze48c0vd.js";
16
+ } from "./index-z92zm3wd.js";
17
17
  import {
18
18
  LibExecutor2
19
- } from "./index-na8r4a27.js";
19
+ } from "./index-zfnz878d.js";
20
20
  import {
21
21
  PkgExecutor2
22
- } from "./index-dss3ds74.js";
22
+ } from "./index-w1zexzpx.js";
23
23
  import {
24
24
  UNAVAILABLE_REDIS_HOST,
25
25
  redisTunnelPolicy,
@@ -55,27 +55,27 @@ import {
55
55
  filesChangedSince,
56
56
  HmrWatcher,
57
57
  WatchRootResolver
58
- } from "./index-7v7tvgt7.js";
58
+ } from "./index-dmcpetwe.js";
59
59
  import {
60
60
  runner,
61
61
  assertPromptable
62
- } from "./index-9rv2zt48.js";
62
+ } from "./index-2yn3r67f.js";
63
63
  import {
64
64
  UpdatePackFolder,
65
65
  UpdateUploader,
66
66
  NativePublicEnv,
67
67
  NativeApp
68
- } from "./index-fp5xf6ef.js";
68
+ } from "./index-ebn9kgea.js";
69
69
  import {
70
70
  DesktopServerStage
71
- } from "./index-9wab2ngg.js";
71
+ } from "./index-612fdtbk.js";
72
72
  import {
73
73
  resolveMobileTargets,
74
74
  resolveAppId
75
75
  } from "./index-m9jj544v.js";
76
76
  import {
77
77
  SlicePlanner
78
- } from "./index-g7jgd4xs.js";
78
+ } from "./index-j592zfqc.js";
79
79
  import {
80
80
  openBrowser
81
81
  } from "./index-9dp031by.js";
@@ -2373,7 +2373,7 @@ var reportsNoTestFile = (exec) => {
2373
2373
  };
2374
2374
 
2375
2375
  // pkgs/@akanjs/cli/application/application.runner.ts
2376
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-frtcrqfd.js")).ApplicationBuildRunner;
2376
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-trfxv3pd.js")).ApplicationBuildRunner;
2377
2377
  var loadPrompts = async () => await import("@inquirer/prompts");
2378
2378
 
2379
2379
  class ApplicationRunner extends runner("application") {
@@ -2574,7 +2574,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
2574
2574
  await new (await loadBuildRunner())(app).typecheck(options);
2575
2575
  }
2576
2576
  async typecheckLibrary(lib, options = {}) {
2577
- const { ProjectTypecheck } = await import("./projectTypecheck-mk8wefvd.js");
2577
+ const { ProjectTypecheck } = await import("./projectTypecheck-f4qhbecd.js");
2578
2578
  const root = lib.workspace.workspaceRoot;
2579
2579
  await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
2580
2580
  "../../server.ts",
@@ -2616,16 +2616,11 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
2616
2616
  });
2617
2617
  }
2618
2618
  async build(app, {
2619
- fast = false,
2620
- reporter,
2621
2619
  spinner = false,
2622
2620
  envProfile,
2623
- environment,
2624
- budget
2621
+ ...options
2625
2622
  } = {}) {
2626
- return new (await loadBuildRunner())(app, { fast, reporter, profile: envProfile, environment, budget }).build({
2627
- spinner
2628
- });
2623
+ return new (await loadBuildRunner())(app, { ...options, profile: envProfile }).build({ spinner });
2629
2624
  }
2630
2625
  async start(app, {
2631
2626
  open = false,
@@ -3006,6 +3001,9 @@ ${detail}`
3006
3001
  }
3007
3002
 
3008
3003
  // pkgs/@akanjs/cli/verify/verifyScope.ts
3004
+ import path8 from "path";
3005
+ import ts from "typescript";
3006
+
3009
3007
  class VerifyScope {
3010
3008
  targets;
3011
3009
  constructor(targets) {
@@ -3017,6 +3015,51 @@ class VerifyScope {
3017
3015
  get changedFiles() {
3018
3016
  return new Set(this.targets.flatMap((target) => target.files));
3019
3017
  }
3018
+ get changedLibs() {
3019
+ return this.targets.filter((target) => target.type === "lib" && target.files.length).map((target) => target.name);
3020
+ }
3021
+ withDependents(names, libDeps) {
3022
+ const affected = new Set(this.changedLibs);
3023
+ if (!affected.size)
3024
+ return this;
3025
+ const known = VerifyScope.#knownTargets(names).filter((target) => target.type !== "pkg");
3026
+ const pulled = new Set;
3027
+ for (let grew = true;grew; ) {
3028
+ grew = false;
3029
+ for (const target of known) {
3030
+ if (pulled.has(target) || !(libDeps.get(target.dir) ?? []).some((lib) => affected.has(lib)))
3031
+ continue;
3032
+ pulled.add(target);
3033
+ if (target.type === "lib")
3034
+ affected.add(target.name);
3035
+ grew = true;
3036
+ }
3037
+ }
3038
+ const inScope = new Set(this.targets.map((target) => target.dir));
3039
+ const dependents = known.filter((target) => pulled.has(target) && !inScope.has(target.dir)).map((target) => ({ ...target, dependent: true }));
3040
+ return new VerifyScope([...this.targets, ...dependents]);
3041
+ }
3042
+ static async libDepsIn(workspaceRoot, { apps, libs }) {
3043
+ const dirs = [...apps.map((name) => `apps/${name}`), ...libs.map((name) => `libs/${name}`)];
3044
+ return new Map(await Promise.all(dirs.map(async (dir) => [dir, await VerifyScope.#libImportsIn(workspaceRoot, dir)])));
3045
+ }
3046
+ static async#libImportsIn(workspaceRoot, dir) {
3047
+ const libs = new Set;
3048
+ const cwd = path8.join(workspaceRoot, dir);
3049
+ for await (const file of new Bun.Glob("**/*.{ts,tsx}").scan({ cwd })) {
3050
+ if (/(^|\/)(node_modules|dist)\//.test(file))
3051
+ continue;
3052
+ const text = await Bun.file(path8.join(cwd, file)).text();
3053
+ if (!text.includes("@libs/"))
3054
+ continue;
3055
+ for (const { fileName } of ts.preProcessFile(text, true, true).importedFiles) {
3056
+ const lib = fileName.startsWith("@libs/") ? fileName.split("/")[1] : undefined;
3057
+ if (lib && `libs/${lib}` !== dir)
3058
+ libs.add(lib);
3059
+ }
3060
+ }
3061
+ return [...libs];
3062
+ }
3020
3063
  static async changesIn(workspaceRoot) {
3021
3064
  const prefix = await VerifyScope.#git(workspaceRoot, ["rev-parse", "--show-prefix"]);
3022
3065
  if (prefix === null)
@@ -9,10 +9,10 @@ import {
9
9
  UpdatePackFolder,
10
10
  NativePublicEnv,
11
11
  NativeApp
12
- } from "./index-fp5xf6ef.js";
12
+ } from "./index-ebn9kgea.js";
13
13
  import {
14
14
  ExitCodeError
15
- } from "./index-9rv2zt48.js";
15
+ } from "./index-2yn3r67f.js";
16
16
  import {
17
17
  ConfigLock
18
18
  } from "./index-bqbf654f.js";
@@ -8,21 +8,21 @@ import {
8
8
  isScannedRootEntry,
9
9
  extractBlockVersion,
10
10
  readDevkitVersion
11
- } from "./index-qssq2d41.js";
11
+ } from "./index-71y6176j.js";
12
12
  import {
13
13
  FileSys2
14
14
  } from "./index-by2tvsq6.js";
15
15
  import {
16
16
  AppExecutor2
17
- } from "./index-ze48c0vd.js";
17
+ } from "./index-z92zm3wd.js";
18
18
  import {
19
19
  LibExecutor2
20
- } from "./index-na8r4a27.js";
20
+ } from "./index-zfnz878d.js";
21
21
  import {
22
22
  workflowPathsForPlan,
23
23
  workflowRunArtifactPath,
24
24
  workflowSyncDir
25
- } from "./index-0gaj78wn.js";
25
+ } from "./index-zmd9xxgd.js";
26
26
  import {
27
27
  collectRecipeSources2,
28
28
  scanRecipes2,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-f16kr6vj.js";
5
+ } from "./index-s885g0jj.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
@@ -4,7 +4,7 @@ import {
4
4
  Executor,
5
5
  PkgInfo,
6
6
  WorkspaceExecutor
7
- } from "./index-qssq2d41.js";
7
+ } from "./index-71y6176j.js";
8
8
 
9
9
  // pkgs/@akanjs/devkit/executors/pkgExecutor.ts
10
10
  import path from "path";
@@ -157,7 +157,7 @@ class SubagentPool2 {
157
157
  }
158
158
  }
159
159
  async#run(id, kind, prompt, signal) {
160
- const { CodeAgent } = await import("./CodeAgent-c17abdbf.js");
160
+ const { CodeAgent } = await import("./CodeAgent-7m6cmdf8.js");
161
161
  const budget = this.#options.parent.tools.subagent;
162
162
  const child = SubagentPool2.childOf(this.#options.parent, kind);
163
163
  const model = this.#options.model?.();
@@ -7,13 +7,13 @@ import {
7
7
  AkanAppConfig,
8
8
  increaseBuildNum,
9
9
  decreaseBuildNum
10
- } from "./index-qssq2d41.js";
10
+ } from "./index-71y6176j.js";
11
11
  import {
12
12
  FileSys2
13
13
  } from "./index-by2tvsq6.js";
14
14
  import {
15
15
  LibExecutor2
16
- } from "./index-na8r4a27.js";
16
+ } from "./index-zfnz878d.js";
17
17
 
18
18
  // pkgs/@akanjs/devkit/executors/appExecutor.ts
19
19
  import { cp as cpEntry, lstat, mkdir, readdir as readDirEntries, realpath, symlink } from "fs/promises";
@@ -5,7 +5,7 @@ import {
5
5
  SysExecutor,
6
6
  WorkspaceExecutor,
7
7
  AkanLibConfig
8
- } from "./index-qssq2d41.js";
8
+ } from "./index-71y6176j.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/executors/libExecutor.ts
11
11
  class LibExecutor2 extends SysExecutor {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  AppExecutor2
4
- } from "./index-ze48c0vd.js";
4
+ } from "./index-z92zm3wd.js";
5
5
  import {
6
6
  LibExecutor2
7
- } from "./index-na8r4a27.js";
7
+ } from "./index-zfnz878d.js";
8
8
  import {
9
9
  createAst,
10
10
  AkanIndex
@@ -15,7 +15,7 @@ import {
15
15
  } from "./index-va90m8nd.js";
16
16
  import {
17
17
  camelToKebabCase
18
- } from "./index-9rv2zt48.js";
18
+ } from "./index-2yn3r67f.js";
19
19
 
20
20
  // pkgs/@akanjs/devkit/workflow/artifacts.ts
21
21
  import { capitalize as capitalize2 } from "akanjs/common";
@@ -1,16 +1,16 @@
1
1
  // @bun
2
2
  import {
3
3
  script
4
- } from "./index-9rv2zt48.js";
4
+ } from "./index-2yn3r67f.js";
5
5
  import {
6
6
  jsonText
7
- } from "./index-0gaj78wn.js";
7
+ } from "./index-zmd9xxgd.js";
8
8
  import {
9
9
  akanMcpInstallTargets
10
- } from "./index-bj8s07s7.js";
10
+ } from "./index-t2zhw8c7.js";
11
11
  import {
12
12
  ContextRunner2
13
- } from "./index-9wjrwjgz.js";
13
+ } from "./index-nk374pqd.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/context/context.script.ts
16
16
  import { Logger } from "akanjs/common";
package/index.js CHANGED
@@ -4,14 +4,14 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-9rv2zt48.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-qssq2d41.js";
9
+ import"./index-71y6176j.js";
10
10
  import"./index-by2tvsq6.js";
11
- import"./index-ze48c0vd.js";
12
- import"./index-na8r4a27.js";
13
- import"./index-dss3ds74.js";
14
- import"./index-vjbne22r.js";
11
+ import"./index-z92zm3wd.js";
12
+ import"./index-zfnz878d.js";
13
+ import"./index-w1zexzpx.js";
14
+ import"./index-7wf8snar.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/bunVersionGuard.ts
17
17
  class BunVersionGuard {
@@ -27,27 +27,27 @@ import path from "path";
27
27
 
28
28
  // pkgs/@akanjs/cli/commandModules.ts
29
29
  var commandModules = {
30
- workspace: async () => (await import("./workspace.command-5hjtmcfs.js")).WorkspaceCommand,
31
- agent: async () => (await import("./agent.command-9whnc6vb.js")).AgentCommand,
32
- code: async () => (await import("./code.command-0ayrenk4.js")).CodeCommand,
33
- application: async () => (await import("./application.command-4eqvyxkw.js")).ApplicationCommand,
34
- library: async () => (await import("./library.command-x219mhcx.js")).LibraryCommand,
35
- localRegistry: async () => (await import("./localRegistry.command-zvdcejhn.js")).LocalRegistryCommand,
36
- package: async () => (await import("./package.command-vw7x09f8.js")).PackageCommand,
37
- module: async () => (await import("./module.command-k6cwcm7g.js")).ModuleCommand,
38
- page: async () => (await import("./page.command-gf06paq2.js")).PageCommand,
39
- context: async () => (await import("./context.command-php852kf.js")).ContextCommand,
40
- cloud: async () => (await import("./cloud.command-hbvmeezn.js")).CloudCommand,
41
- subspace: async () => (await import("./subspace.command-mkkqync4.js")).SubspaceCommand,
42
- guideline: async () => (await import("./guideline.command-w1grfwh7.js")).GuidelineCommand,
43
- scalar: async () => (await import("./scalar.command-sjt9p5e1.js")).ScalarCommand,
44
- primitive: async () => (await import("./primitive.command-edydvh07.js")).PrimitiveCommand,
45
- quality: async () => (await import("./quality.command-mdb45vyr.js")).QualityCommand,
46
- verify: async () => (await import("./verify.command-0p9h8tpp.js")).VerifyCommand,
47
- repair: async () => (await import("./repair.command-kvtaeecy.js")).RepairCommand,
48
- workflow: async () => (await import("./workflow.command-9mfcwqzj.js")).WorkflowCommand,
49
- pipeline: async () => (await import("./pipeline.command-y07dgj9b.js")).PipelineCommand,
50
- tunnel: async () => (await import("./tunnel.command-tr5b3030.js")).TunnelCommand
30
+ workspace: async () => (await import("./workspace.command-89p90zvb.js")).WorkspaceCommand,
31
+ agent: async () => (await import("./agent.command-3qstwjef.js")).AgentCommand,
32
+ code: async () => (await import("./code.command-069wchwn.js")).CodeCommand,
33
+ application: async () => (await import("./application.command-8y4kxzvc.js")).ApplicationCommand,
34
+ library: async () => (await import("./library.command-nxvesvhb.js")).LibraryCommand,
35
+ localRegistry: async () => (await import("./localRegistry.command-4a655xnq.js")).LocalRegistryCommand,
36
+ package: async () => (await import("./package.command-j7hv26p0.js")).PackageCommand,
37
+ module: async () => (await import("./module.command-aaws9byg.js")).ModuleCommand,
38
+ page: async () => (await import("./page.command-7yffs7n9.js")).PageCommand,
39
+ context: async () => (await import("./context.command-v3e98f2h.js")).ContextCommand,
40
+ cloud: async () => (await import("./cloud.command-zczv575c.js")).CloudCommand,
41
+ subspace: async () => (await import("./subspace.command-2nxakmk3.js")).SubspaceCommand,
42
+ guideline: async () => (await import("./guideline.command-zwypaqsh.js")).GuidelineCommand,
43
+ scalar: async () => (await import("./scalar.command-2ex84spb.js")).ScalarCommand,
44
+ primitive: async () => (await import("./primitive.command-7a1pt715.js")).PrimitiveCommand,
45
+ quality: async () => (await import("./quality.command-08bn42t4.js")).QualityCommand,
46
+ verify: async () => (await import("./verify.command-xbztwp1r.js")).VerifyCommand,
47
+ repair: async () => (await import("./repair.command-r59jat74.js")).RepairCommand,
48
+ workflow: async () => (await import("./workflow.command-pmyx55y4.js")).WorkflowCommand,
49
+ pipeline: async () => (await import("./pipeline.command-7yk0zcng.js")).PipelineCommand,
50
+ tunnel: async () => (await import("./tunnel.command-f7ep1qfa.js")).TunnelCommand
51
51
  };
52
52
  var commandModuleIds = Object.keys(commandModules);
53
53
 
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  LibExecutor2
4
- } from "./index-na8r4a27.js";
5
- import"./index-qssq2d41.js";
4
+ } from "./index-zfnz878d.js";
5
+ import"./index-71y6176j.js";
6
6
  import"./index-j4yvgfhr.js";
7
7
  import"./index-by2tvsq6.js";
8
8
  export {
@@ -3,17 +3,17 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-9rv2zt48.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-qssq2d41.js";
8
+ import"./index-71y6176j.js";
9
9
  import"./index-by2tvsq6.js";
10
- import"./index-ze48c0vd.js";
11
- import"./index-na8r4a27.js";
12
- import"./index-dss3ds74.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
13
13
  import {
14
14
  LibraryScript
15
- } from "./index-6zb17wcm.js";
16
- import"./index-vjbne22r.js";
15
+ } from "./index-2jmvfa62.js";
16
+ import"./index-7wf8snar.js";
17
17
 
18
18
  // pkgs/@akanjs/cli/library/library.command.ts
19
19
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -26,7 +26,10 @@ class LibraryCommand extends command("library", [LibraryScript], ({ public: targ
26
26
  syncLibrary: target({ desc: "Sync dependencies and configuration for a library" }).with(Lib).exec(async function(lib) {
27
27
  await this.libraryScript.syncLibrary(lib);
28
28
  }),
29
- libraryStatus: target({ desc: "Report whether each library still matches the source it was installed from" }).with(Workspace).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(workspace, format) {
29
+ libraryStatus: target({
30
+ desc: "Report whether each library still matches the source it was installed from",
31
+ readOnly: true
32
+ }).with(Workspace).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(workspace, format) {
30
33
  await this.libraryScript.libraryStatus(workspace, format);
31
34
  }),
32
35
  installLibrary: target({ desc: "Install pre-built library templates (shared, util, etc.)" }).arg("libName", String, { desc: "name of library" }).with(Workspace).exec(async function(libName, workspace) {
@@ -4,48 +4,48 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-9rv2zt48.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
9
  import {
10
10
  parseEnvFile
11
- } from "./index-qssq2d41.js";
11
+ } from "./index-71y6176j.js";
12
12
  import"./index-by2tvsq6.js";
13
- import"./index-ze48c0vd.js";
14
- import"./index-na8r4a27.js";
13
+ import"./index-z92zm3wd.js";
14
+ import"./index-zfnz878d.js";
15
15
  import {
16
16
  PkgExecutor2
17
- } from "./index-dss3ds74.js";
17
+ } from "./index-w1zexzpx.js";
18
18
  import {
19
19
  npmRegistryFromEnv,
20
20
  warnIgnoredNpmRegistry,
21
21
  getNpmRegistryUrl
22
- } from "./index-ffa52fwf.js";
23
- import"./index-7v7tvgt7.js";
24
- import"./index-fp5xf6ef.js";
25
- import"./index-9wab2ngg.js";
22
+ } from "./index-jf4vk1s0.js";
23
+ import"./index-dmcpetwe.js";
24
+ import"./index-ebn9kgea.js";
25
+ import"./index-612fdtbk.js";
26
26
  import"./index-m9jj544v.js";
27
- import"./index-yvzm8mby.js";
28
- import"./index-yxkjsyx8.js";
29
- import"./index-6zb17wcm.js";
30
- import"./index-at6haq2x.js";
27
+ import"./index-9wh04mqy.js";
28
+ import"./index-a860mx0m.js";
29
+ import"./index-2jmvfa62.js";
30
+ import"./index-qyhr8wst.js";
31
31
  import"./index-rwgqba9p.js";
32
32
  import {
33
33
  ApplicationScript
34
- } from "./index-v929w7j7.js";
35
- import"./index-f16kr6vj.js";
34
+ } from "./index-kykky4re.js";
35
+ import"./index-s885g0jj.js";
36
36
  import {
37
37
  CloudRunner
38
- } from "./index-ba2xd32s.js";
38
+ } from "./index-e9w8wq0a.js";
39
39
  import"./index-trffs83s.js";
40
40
  import"./index-p7beqww9.js";
41
- import"./index-1pjwsh2g.js";
41
+ import"./index-baccvws5.js";
42
42
  import"./index-2ny1e95c.js";
43
43
  import {
44
44
  PackageScript
45
- } from "./index-5d57kx0s.js";
46
- import"./index-g7jgd4xs.js";
45
+ } from "./index-275a4r3n.js";
46
+ import"./index-j592zfqc.js";
47
47
  import"./index-9bv479q5.js";
48
- import"./index-vjbne22r.js";
48
+ import"./index-7wf8snar.js";
49
49
 
50
50
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
51
51
  import { mkdir, rm } from "fs/promises";
@@ -4,22 +4,22 @@ import {
4
4
  Module,
5
5
  ModuleOrService,
6
6
  command
7
- } from "./index-9rv2zt48.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-qssq2d41.js";
9
+ import"./index-71y6176j.js";
10
10
  import"./index-by2tvsq6.js";
11
- import"./index-ze48c0vd.js";
12
- import"./index-na8r4a27.js";
13
- import"./index-dss3ds74.js";
11
+ import"./index-z92zm3wd.js";
12
+ import"./index-zfnz878d.js";
13
+ import"./index-w1zexzpx.js";
14
14
  import {
15
15
  renderPrimitiveReport
16
- } from "./index-0gaj78wn.js";
16
+ } from "./index-zmd9xxgd.js";
17
17
  import"./index-trffs83s.js";
18
- import"./index-6pxmcaq8.js";
18
+ import"./index-3txdtztz.js";
19
19
  import {
20
20
  ModuleScript
21
- } from "./index-m3t28rt3.js";
22
- import"./index-vjbne22r.js";
21
+ } from "./index-gt8phqpt.js";
22
+ import"./index-7wf8snar.js";
23
23
 
24
24
  // pkgs/@akanjs/cli/module/module.command.ts
25
25
  import { Logger, lowerlize } from "akanjs/common";
@@ -3,25 +3,25 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-9rv2zt48.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-qssq2d41.js";
8
+ import"./index-71y6176j.js";
9
9
  import"./index-by2tvsq6.js";
10
- import"./index-ze48c0vd.js";
11
- import"./index-na8r4a27.js";
12
- import"./index-dss3ds74.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
13
13
  import"./index-trffs83s.js";
14
14
  import"./index-p7beqww9.js";
15
- import"./index-1pjwsh2g.js";
15
+ import"./index-baccvws5.js";
16
16
  import"./index-2ny1e95c.js";
17
17
  import {
18
18
  PackageScript
19
- } from "./index-5d57kx0s.js";
20
- import"./index-vjbne22r.js";
19
+ } from "./index-275a4r3n.js";
20
+ import"./index-7wf8snar.js";
21
21
 
22
22
  // pkgs/@akanjs/cli/package/package.command.ts
23
23
  class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
24
- version: target({ desc: "Show version information for all packages" }).with(Workspace).exec(async function(workspace) {
24
+ version: target({ desc: "Show version information for all packages", readOnly: true }).with(Workspace).exec(async function(workspace) {
25
25
  await this.packageScript.version(workspace);
26
26
  }),
27
27
  createPackage: target({ desc: "Create a new package in pkgs/<name>/" }).option("name", String, { desc: "name of package" }).with(Workspace).exec(async function(name, workspace) {
@@ -36,7 +36,7 @@ class PackageCommand extends command("package", [PackageScript], ({ public: targ
36
36
  buildPackage: target({ desc: "Build a package for distribution" }).with(Pkg).exec(async function(pkg) {
37
37
  await this.packageScript.buildPackage(pkg);
38
38
  }),
39
- verifyDistPackage: target({ desc: "Verify a built dist package with npm pack dry-run" }).with(Pkg).exec(async function(pkg) {
39
+ verifyDistPackage: target({ desc: "Verify a built dist package with npm pack dry-run", readOnly: true }).with(Pkg).exec(async function(pkg) {
40
40
  await this.packageScript.verifyDistPackage(pkg);
41
41
  }),
42
42
  verifyAkanPublishPackages: target({ devOnly: true, desc: "Verify all Akan publish dist packages" }).with(Workspace).exec(async function(workspace) {