@akanjs/cli 3.1.1-rc.16 → 3.1.1-rc.18

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 (118) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-23ewzxqa.js → CodeAgent-fbcq8vks.js} +2 -2
  3. package/{CodeTui-kc99fk78.js → CodeTui-0626gxqd.js} +1 -1
  4. package/TunnelShare-2p24xxza.js +14 -0
  5. package/agent.command-hpza0pg9.js +46 -0
  6. package/akanCode.js +5 -3
  7. package/{application.command-bvfd1680.js → application.command-3a7q1hs2.js} +11 -10
  8. package/{applicationBuildRunner-4ajaesk1.js → applicationBuildRunner-s7yt71j4.js} +5 -5
  9. package/buildBatch.proc.js +6 -6
  10. package/{cloud.command-f2w40fyy.js → cloud.command-4vg0pcea.js} +15 -14
  11. package/cloud.script-nkmeyhet.js +25 -0
  12. package/{code.command-dbhhnahn.js → code.command-fbntb67p.js} +6 -6
  13. package/commandManifest.json +1 -1
  14. package/{context.command-yswjwv6y.js → context.command-31rm54v0.js} +18 -18
  15. package/context.runner-w01a32ph.js +26 -0
  16. package/{guideline.command-ztx6dkpk.js → guideline.command-cv3by2ng.js} +3 -3
  17. package/guidelines/conventions/core.md +104 -0
  18. package/guidelines/conventions/rules/app.md +83 -0
  19. package/guidelines/conventions/rules/auth.md +45 -0
  20. package/guidelines/conventions/rules/config.md +56 -0
  21. package/guidelines/conventions/rules/constant.md +24 -0
  22. package/guidelines/conventions/rules/gates.md +31 -0
  23. package/guidelines/conventions/rules/layer.md +25 -0
  24. package/guidelines/conventions/rules/migration.md +27 -0
  25. package/guidelines/conventions/rules/module.md +90 -0
  26. package/guidelines/conventions/rules/page.md +56 -0
  27. package/guidelines/conventions/rules/sensitive.md +16 -0
  28. package/guidelines/conventions/rules/server.md +86 -0
  29. package/guidelines/conventions/rules/ssr.md +47 -0
  30. package/guidelines/conventions/rules/style.md +43 -0
  31. package/guidelines/conventions/rules/test.md +34 -0
  32. package/guidelines/conventions/rules/ts.md +95 -0
  33. package/guidelines/conventions/rules/tsx.md +75 -0
  34. package/guidelines/mcpRule/mcpRule.instruction.md +1 -1
  35. package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +3 -3
  36. package/incrementalBuilder.proc.js +6 -6
  37. package/{index-xjwcp91m.js → index-05nxx4m5.js} +43 -12
  38. package/{index-k9k18vq9.js → index-0ht91675.js} +37 -59
  39. package/{index-er16p89s.js → index-0zwznvv1.js} +1 -1
  40. package/{index-76jwsm3g.js → index-0zyatd10.js} +2 -2
  41. package/{index-97fsvy66.js → index-12kzwak1.js} +3 -3
  42. package/{index-005dqc83.js → index-1dhf8ymv.js} +2 -2
  43. package/{index-00ke4phc.js → index-3gccwenr.js} +1 -1
  44. package/{index-2epb3wgh.js → index-3txrjt6n.js} +2 -2
  45. package/{index-7ndgffg4.js → index-57q1ayd2.js} +18 -1240
  46. package/index-5kh9scvs.js +514 -0
  47. package/index-5n5hds19.js +1246 -0
  48. package/{index-9sa6abze.js → index-6269mf2s.js} +10 -9
  49. package/{index-921cxqrd.js → index-64g9fsjy.js} +41 -12
  50. package/index-7zeb5r1p.js +653 -0
  51. package/{index-s4c2y5gs.js → index-8s8b4eba.js} +45 -4
  52. package/{index-4332q6yj.js → index-922k2zwq.js} +3 -3
  53. package/{index-m6qgr1rx.js → index-9ndw5d8j.js} +7 -7
  54. package/{index-xfp4dcnx.js → index-et6ce601.js} +1 -1
  55. package/{index-saj9cx3a.js → index-f5adsa58.js} +4 -4
  56. package/{index-vgt25eh1.js → index-fbewhg4g.js} +7 -32
  57. package/{index-ysyt782g.js → index-hm7x0c11.js} +4 -4
  58. package/{index-2p1brf5e.js → index-hvv5rnaq.js} +2 -2
  59. package/index-jje9qzyq.js +27 -0
  60. package/{index-rxse80x6.js → index-js1gj6f6.js} +12 -10
  61. package/{index-p2pahmsa.js → index-kjrvwzav.js} +3 -3
  62. package/index-m6r88hhr.js +3582 -0
  63. package/{index-mk391h0z.js → index-mt0wa941.js} +4 -4
  64. package/{index-m93qg20j.js → index-mwj9q2ya.js} +1 -1
  65. package/{index-5nd1wtkv.js → index-p6x5b7hr.js} +1 -1
  66. package/index-r2wedvqn.js +138 -0
  67. package/{index-gxj80jz7.js → index-rvynj5gz.js} +1 -1
  68. package/{index-m54n0v29.js → index-tdv66eah.js} +4 -4
  69. package/{index-vq77g679.js → index-w134p86k.js} +1 -1
  70. package/{index-deeskxjh.js → index-wfczhj1z.js} +14 -36
  71. package/{index-dy0jx9ay.js → index-wwe9rsrx.js} +14 -0
  72. package/{index-qx4r4cj2.js → index-x5ecanqh.js} +2 -2
  73. package/{index-nzfgyw3b.js → index-zre4m2ce.js} +4 -4
  74. package/index.js +23 -22
  75. package/{library.command-hmbkcwzw.js → library.command-sh70fyvy.js} +3 -3
  76. package/{localRegistry.command-sq5p4c9x.js → localRegistry.command-2nbyy84d.js} +14 -13
  77. package/{module.command-n4z29zcv.js → module.command-n0bmtzwy.js} +5 -5
  78. package/{package.command-20025dy3.js → package.command-7h9r51bz.js} +3 -3
  79. package/package.json +2 -2
  80. package/{page.command-q8fvpjer.js → page.command-vjtpfbb1.js} +3 -3
  81. package/{pipeline.command-8j97fq88.js → pipeline.command-c93se3ar.js} +2 -2
  82. package/{primitive.command-e5y6dqp1.js → primitive.command-a3075qp2.js} +6 -6
  83. package/{projectTypecheck-tbdye9k3.js → projectTypecheck-sf9xwaga.js} +1 -1
  84. package/{prompter-76k56b37.js → prompter-hgcta8pb.js} +1 -1
  85. package/quality.command-dw1y9hmy.js +76 -0
  86. package/{repair.command-dq1gckth.js → repair.command-tg57d8yt.js} +5 -5
  87. package/{scalar.command-5vwf152w.js → scalar.command-cwzge353.js} +4 -4
  88. package/skills/akan-agent/SKILL.md +36 -0
  89. package/skills/akan-debug/SKILL.md +3 -3
  90. package/skills/akan-deps/SKILL.md +1 -2
  91. package/skills/akan-mcp/SKILL.md +40 -0
  92. package/skills/akan-page/SKILL.md +44 -0
  93. package/skills/akan-query/SKILL.md +38 -0
  94. package/skills/akan-runtime/SKILL.md +40 -0
  95. package/skills/akan-scaffold/SKILL.md +16 -6
  96. package/skills/akan-transport/SKILL.md +40 -0
  97. package/skills/akan-validate/SKILL.md +13 -11
  98. package/{subspace.command-182be8vj.js → subspace.command-3h03c7kc.js} +8 -8
  99. package/templates/workspaceRoot/.gitignore.template +3 -0
  100. package/templates/workspaceRoot/AGENTS.md.template +4 -10
  101. package/{tunnel.command-bfzj7xkb.js → tunnel.command-czaz6ys4.js} +7 -7
  102. package/{typeChecker-px49mezc.js → typeChecker-j2jdnqsr.js} +1 -1
  103. package/typecheck.proc.js +6 -1
  104. package/verify.command-nzwhtz71.js +91 -0
  105. package/{workflow.command-3g53242s.js → workflow.command-srhky88x.js} +23 -13
  106. package/{workspace.command-h7399jwv.js → workspace.command-9stchcd2.js} +31 -29
  107. package/TunnelShare-dk2gw78d.js +0 -14
  108. package/agent.command-knp5j7bq.js +0 -25
  109. package/cloud.script-2r82sv0f.js +0 -24
  110. package/context.runner-c3wsh2jw.js +0 -26
  111. package/guidelines/conventions/conventions.instruction.md +0 -663
  112. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +0 -291
  113. package/index-4t4qb8jg.js +0 -279
  114. package/index-hvg3esm0.js +0 -1844
  115. package/index-zzvvc845.js +0 -74
  116. package/quality.command-168pt5vm.js +0 -1788
  117. package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +0 -69
  118. package/templates/workspaceRoot/docs/GENERATED.md.template +0 -55
@@ -10,7 +10,7 @@ import {
10
10
  isScannedRootEntry,
11
11
  AppExecutor,
12
12
  LibExecutor
13
- } from "./index-921cxqrd.js";
13
+ } from "./index-64g9fsjy.js";
14
14
  import {
15
15
  FileSys2
16
16
  } from "./index-52w0fvh8.js";
@@ -23,7 +23,7 @@ import {
23
23
  workflowPathsForPlan,
24
24
  workflowRunArtifactPath,
25
25
  workflowSyncDir
26
- } from "./index-xjwcp91m.js";
26
+ } from "./index-05nxx4m5.js";
27
27
 
28
28
  // pkgs/@akanjs/devkit/akanContext.ts
29
29
  import { readdir } from "fs/promises";
@@ -129,6 +129,7 @@ var generatedFiles = [
129
129
  "*/common/index.ts"
130
130
  ];
131
131
  var validationCommands = [
132
+ "akan verify [<app-or-lib-or-pkg>]",
132
133
  "akan sync <app-or-lib>",
133
134
  "akan lint <app-or-lib-or-pkg>",
134
135
  "akan typecheck <app-or-lib>",
@@ -142,7 +143,7 @@ var unknownGeneratedFilesFreshness = {
142
143
  status: "unknown",
143
144
  message: "Run sync before validation so generated Akan files match the current source conventions.",
144
145
  refreshCommand: "akan sync <app-or-lib>",
145
- verifyingCommands: ["akan lint <app-or-lib-or-pkg>", "akan build <app-name>"]
146
+ verifyingCommands: ["akan verify <app-or-lib>"]
146
147
  };
147
148
  var repairAction = (kind, command, reason, safeToRun) => ({
148
149
  kind,
@@ -231,7 +232,7 @@ var generatedFreshnessFromStates = async (workspace) => {
231
232
  status: targets.some((target) => target.status === "fresh") ? "fresh" : "stale",
232
233
  message: lastFresh ? `Generated files were refreshed for ${lastFresh.target} at ${lastFresh.lastSyncedAt}.` : "Generated sync state exists, but the last recorded repair did not pass.",
233
234
  refreshCommand: "akan sync <app-or-lib>",
234
- verifyingCommands: ["akan lint <app-or-lib-or-pkg>", "akan build <app-name>"],
235
+ verifyingCommands: ["akan verify <app-or-lib>"],
235
236
  targets
236
237
  };
237
238
  };
@@ -372,6 +373,41 @@ class AkanContextAnalyzer {
372
373
  hint
373
374
  };
374
375
  }
376
+ static async#agentGuideOversize(workspace, sysPaths) {
377
+ const sizeOf = async (file) => {
378
+ const content = await safeReadText(path.join(workspace.workspaceRoot, file));
379
+ return { file, bytes: content === null ? 0 : Buffer.byteLength(content) };
380
+ };
381
+ const root = await sizeOf("AGENTS.md");
382
+ if (root.bytes === 0)
383
+ return null;
384
+ const scoped = await Promise.all(sysPaths.map((sysPath) => sizeOf(`${sysPath}/AGENTS.md`)));
385
+ const largest = scoped.reduce((max, entry) => entry.bytes > max.bytes ? entry : max, { file: "", bytes: 0 });
386
+ const total = root.bytes + largest.bytes;
387
+ if (total <= 32 * 1024 * 0.8)
388
+ return null;
389
+ const subject = largest.bytes ? `AGENTS.md and ${largest.file} add up to` : "AGENTS.md is";
390
+ return `${subject} ${Math.ceil(total / 1024)} KiB of the 32 KiB Codex reads \u2014 run \`akan agent install\`, then shorten the text outside the akan:agent markers or move it into a skill.`;
391
+ }
392
+ static async#agentGuideLeftovers(workspace) {
393
+ const root = workspace.workspaceRoot;
394
+ const guide = await safeReadText(path.join(root, "AGENTS.md")) ?? "";
395
+ const leftovers = [];
396
+ for (const doc of ["docs/AI-DEVELOPMENT.md", "docs/GENERATED.md"]) {
397
+ const pointer = guide.includes(doc);
398
+ if (await safeReadText(path.join(root, doc)) !== null)
399
+ leftovers.push({
400
+ path: doc,
401
+ message: `${doc} is an older template's copy of the agent guide, and nothing reads it now \u2014 delete it${pointer ? " and the AGENTS.md sentence that points to it" : ""}.`
402
+ });
403
+ else if (pointer)
404
+ leftovers.push({
405
+ path: "AGENTS.md",
406
+ message: `AGENTS.md points to ${doc}, which is gone \u2014 delete that sentence.`
407
+ });
408
+ }
409
+ return leftovers;
410
+ }
375
411
  static async#configLeftovers(workspace, sysPaths) {
376
412
  const leftovers = [];
377
413
  for (const sysPath of sysPaths) {
@@ -435,6 +471,11 @@ class AkanContextAnalyzer {
435
471
  if (agentDrift)
436
472
  report({ severity: "warning", code: agentDrift.code, path: "AGENTS.md", message: agentDrift.message }, repairAction("generated", "akan agent install agents-md", agentDrift.hint, true));
437
473
  const sysPaths = [...context.apps, ...context.libs].map((sys) => sys.path);
474
+ const oversize = await AkanContextAnalyzer.#agentGuideOversize(workspace, sysPaths);
475
+ if (oversize)
476
+ diagnostics.push({ severity: "warning", code: "agent-guide-oversized", path: "AGENTS.md", message: oversize });
477
+ for (const leftover of await AkanContextAnalyzer.#agentGuideLeftovers(workspace))
478
+ diagnostics.push({ severity: "warning", code: "agent-guide-leftover", ...leftover });
438
479
  for (const leftover of await AkanContextAnalyzer.#configLeftovers(workspace, sysPaths))
439
480
  diagnostics.push({ severity: "warning", code: "config-leftover", ...leftover });
440
481
  for (const sys of [...context.apps, ...context.libs]) {
@@ -5,13 +5,13 @@ import {
5
5
  writeGeneratedSyncState,
6
6
  createRepairReport,
7
7
  renderRepairReport
8
- } from "./index-xjwcp91m.js";
8
+ } from "./index-05nxx4m5.js";
9
9
  import {
10
10
  AkanContextAnalyzer
11
- } from "./index-s4c2y5gs.js";
11
+ } from "./index-8s8b4eba.js";
12
12
  import {
13
13
  runner
14
- } from "./index-00ke4phc.js";
14
+ } from "./index-3gccwenr.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.runner.ts
17
17
  var spawnShell = async (workspace, command) => await workspace.spawn("bash", ["-lc", command.startsWith("akan ") ? `bun run ${command}` : command], {
@@ -4,27 +4,27 @@ import {
4
4
  CloudApi,
5
5
  CloudUpdates,
6
6
  PipelineSecrets
7
- } from "./index-76jwsm3g.js";
7
+ } from "./index-0zyatd10.js";
8
8
  import {
9
9
  PkgExecutor
10
- } from "./index-921cxqrd.js";
10
+ } from "./index-64g9fsjy.js";
11
11
  import {
12
12
  UpdatePackFolder,
13
13
  NativePublicEnv,
14
14
  NativeApp
15
- } from "./index-p2pahmsa.js";
15
+ } from "./index-kjrvwzav.js";
16
16
  import {
17
17
  script
18
- } from "./index-00ke4phc.js";
18
+ } from "./index-3gccwenr.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-7ndgffg4.js";
21
+ } from "./index-5n5hds19.js";
22
22
  import {
23
23
  PackageScript
24
- } from "./index-2epb3wgh.js";
24
+ } from "./index-3txrjt6n.js";
25
25
  import {
26
26
  CloudRunner
27
- } from "./index-nzfgyw3b.js";
27
+ } from "./index-zre4m2ce.js";
28
28
 
29
29
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
30
30
  import { Logger } from "akanjs/common";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-76jwsm3g.js";
5
+ } from "./index-0zyatd10.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
@@ -1,16 +1,16 @@
1
1
  // @bun
2
2
  import {
3
3
  jsonText
4
- } from "./index-xjwcp91m.js";
4
+ } from "./index-05nxx4m5.js";
5
5
  import {
6
6
  akanMcpInstallTargets
7
- } from "./index-s4c2y5gs.js";
7
+ } from "./index-8s8b4eba.js";
8
8
  import {
9
9
  script
10
- } from "./index-00ke4phc.js";
10
+ } from "./index-3gccwenr.js";
11
11
  import {
12
12
  ContextRunner2
13
- } from "./index-9sa6abze.js";
13
+ } from "./index-6269mf2s.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/context/context.script.ts
16
16
  import { Logger } from "akanjs/common";
@@ -15,11 +15,10 @@ var moduleInput = {
15
15
  }
16
16
  };
17
17
  var baseValidation = [
18
- { command: "akan sync <app-or-lib>", reason: "Refresh generated Akan files from source conventions.", kind: "sync" },
19
18
  {
20
- command: "akan lint <app-or-lib-or-pkg>",
21
- reason: "Validate formatting, imports, and static lint rules.",
22
- kind: "lint"
19
+ command: "akan verify <app-or-lib>",
20
+ reason: "Sync, lint, typecheck and build the target in one run, printing only what failed.",
21
+ kind: "verify"
23
22
  }
24
23
  ];
25
24
  var stepOf = (id, title, tool) => (description) => ({ id, title, tool, description });
@@ -78,10 +77,7 @@ var addEnumFieldWorkflowSpec = {
78
77
  { target: "*/lib/<module>/<module>.dictionary.ts", action: "modify", reason: "Enum labels are added." },
79
78
  { target: "*/lib/<module>/<module>.option.ts", action: "modify", reason: "Enum options may be added." }
80
79
  ],
81
- validation: [
82
- ...baseValidation,
83
- { command: "akan typecheck <app-name>", reason: "Validate enum usage across module surfaces.", kind: "typecheck" }
84
- ],
80
+ validation: baseValidation,
85
81
  completionCriteria: ["Enum values are represented.", "Labels and options exist.", "Sync, lint, and typecheck pass."]
86
82
  };
87
83
 
@@ -177,14 +173,7 @@ var addFieldWorkflowSpec = {
177
173
  reason: "Generated dictionary barrel may change after sync."
178
174
  }
179
175
  ],
180
- validation: [
181
- ...baseValidation,
182
- {
183
- command: "akan typecheck <app-name>",
184
- reason: "Validate cross-surface TypeScript contracts after field changes.",
185
- kind: "typecheck"
186
- }
187
- ],
176
+ validation: baseValidation,
188
177
  completionCriteria: [
189
178
  "Field exists in source-of-truth module shape.",
190
179
  "Dictionary labels cover the field.",
@@ -323,14 +312,7 @@ var addMutationWorkflowSpec = {
323
312
  { target: "*/lib/srv.ts", action: "sync", reason: "Generated service barrel may change after sync." },
324
313
  { target: "*/lib/sig.ts", action: "sync", reason: "Generated signal barrel may change after sync." }
325
314
  ],
326
- validation: [
327
- ...baseValidation,
328
- {
329
- command: "akan typecheck <app-name>",
330
- reason: "Validate the mutation across document, service, signal, and store.",
331
- kind: "typecheck"
332
- }
333
- ],
315
+ validation: baseValidation,
334
316
  completionCriteria: [
335
317
  "The chain method validates and mutates, and its transition comment names the real states.",
336
318
  "Every write that must land together runs in the one service method; no store action sends a second mutation.",
@@ -408,14 +390,7 @@ var addSliceWorkflowSpec = {
408
390
  },
409
391
  { target: "*/lib/sig.ts", action: "sync", reason: "Generated signal barrel may change after sync." }
410
392
  ],
411
- validation: [
412
- ...baseValidation,
413
- {
414
- command: "akan build <app-name>",
415
- reason: "Validate page and list surfaces when a slice changes app behavior.",
416
- kind: "custom"
417
- }
418
- ],
393
+ validation: baseValidation,
419
394
  completionCriteria: [
420
395
  "Slice query and signal shape align.",
421
396
  "Optional view surfaces are planned.",
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  script
4
- } from "./index-00ke4phc.js";
4
+ } from "./index-3gccwenr.js";
5
5
  import {
6
6
  AppExecutor,
7
7
  LibExecutor,
8
8
  ModuleExecutor
9
- } from "./index-921cxqrd.js";
9
+ } from "./index-64g9fsjy.js";
10
10
  import {
11
11
  InteractionScaffold,
12
12
  workflowStatus,
@@ -43,10 +43,10 @@ import {
43
43
  insertSignalFactoryEntry,
44
44
  addFieldUiPolicyForType,
45
45
  MutationScaffold
46
- } from "./index-xjwcp91m.js";
46
+ } from "./index-05nxx4m5.js";
47
47
  import {
48
48
  ModuleScript
49
- } from "./index-m54n0v29.js";
49
+ } from "./index-tdv66eah.js";
50
50
 
51
51
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
52
52
  import { capitalize, lowerlize } from "akanjs/common";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-00ke4phc.js";
5
+ } from "./index-3gccwenr.js";
6
6
  import {
7
7
  LibSource,
8
8
  formatLibStatuses,
9
9
  CommandExecutionError,
10
10
  LibExecutor
11
- } from "./index-921cxqrd.js";
11
+ } from "./index-64g9fsjy.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.script.ts
14
14
  import { Logger } from "akanjs/common";
@@ -0,0 +1,27 @@
1
+ // @bun
2
+ // pkgs/@akanjs/devkit/codeAgent/agent/akanCodePaths.ts
3
+ import { existsSync } from "fs";
4
+ import { homedir } from "os";
5
+ import path from "path";
6
+ var builtinSkillsDir = () => {
7
+ const candidates = [path.join(import.meta.dir, "skills"), path.join(import.meta.dir, "..", "skills")];
8
+ return candidates.find((candidate) => existsSync(candidate));
9
+ };
10
+ var globalDir = () => process.env.AKAN_CODE_HOME ?? path.join(homedir(), ".akan", "code");
11
+ var akanCodePaths2 = {
12
+ workspaceDir: (workspaceRoot) => path.join(workspaceRoot, ".akan", "code"),
13
+ sessionsDir: (workspaceRoot) => path.join(workspaceRoot, ".akan", "code", "sessions"),
14
+ extensionsDir: (workspaceRoot) => path.join(workspaceRoot, ".akan", "code", "extensions"),
15
+ skillsDir: (workspaceRoot) => path.join(workspaceRoot, ".akan", "code", "skills"),
16
+ mailDir: (workspaceRoot) => path.join(workspaceRoot, ".akan", "code", "mail"),
17
+ builtinSkillsDir,
18
+ mcpFile: (workspaceRoot) => path.join(workspaceRoot, ".akan", "code", "mcp.json"),
19
+ globalMcpFile: () => path.join(globalDir(), "mcp.json"),
20
+ globalSkillsDir: () => path.join(globalDir(), "skills"),
21
+ globalDir,
22
+ authFile: () => path.join(globalDir(), "auth.json"),
23
+ mcpAuthFile: () => path.join(globalDir(), "mcpAuth.json"),
24
+ modelsFile: () => path.join(globalDir(), "models.json")
25
+ };
26
+
27
+ export { akanCodePaths2 };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  WorkspaceExecutor
4
- } from "./index-921cxqrd.js";
4
+ } from "./index-64g9fsjy.js";
5
5
  import {
6
6
  jsonText,
7
7
  workflowPlanApproval,
@@ -26,29 +26,29 @@ import {
26
26
  renderWorkflowApply,
27
27
  renderWorkflowValidation,
28
28
  renderWorkflowRunArtifact
29
- } from "./index-xjwcp91m.js";
29
+ } from "./index-05nxx4m5.js";
30
30
  import {
31
31
  AkanContextAnalyzer
32
- } from "./index-s4c2y5gs.js";
32
+ } from "./index-8s8b4eba.js";
33
33
  import {
34
34
  CommandContainer,
35
35
  runner
36
- } from "./index-00ke4phc.js";
36
+ } from "./index-3gccwenr.js";
37
37
  import {
38
38
  ModuleScript
39
- } from "./index-m54n0v29.js";
39
+ } from "./index-tdv66eah.js";
40
40
  import {
41
41
  PrimitiveScript
42
- } from "./index-ysyt782g.js";
42
+ } from "./index-hm7x0c11.js";
43
43
  import {
44
44
  spawnShell
45
- } from "./index-4332q6yj.js";
45
+ } from "./index-922k2zwq.js";
46
46
  import {
47
47
  ScalarScript
48
- } from "./index-qx4r4cj2.js";
48
+ } from "./index-x5ecanqh.js";
49
49
  import {
50
50
  workflowSpecs
51
- } from "./index-vgt25eh1.js";
51
+ } from "./index-fbewhg4g.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
54
54
  import { mkdir, readFile, writeFile } from "fs/promises";
@@ -100,6 +100,8 @@ var failedApplyReport = (workflow, code, message, plan) => {
100
100
  var inferValidationKind = (command) => {
101
101
  if (command.kind)
102
102
  return command.kind;
103
+ if (/\bakan\s+verify\b/.test(command.command))
104
+ return "verify";
103
105
  if (/\bakan\s+sync\b/.test(command.command))
104
106
  return "sync";
105
107
  if (/\bakan\s+lint\b/.test(command.command))
@@ -121,7 +123,7 @@ ${error.message ?? ""}`.toLowerCase();
121
123
  return "workspace-config";
122
124
  }
123
125
  const kind = inferValidationKind(command);
124
- if (kind === "lint" || kind === "typecheck" || kind === "sync")
126
+ if (kind === "verify" || kind === "lint" || kind === "typecheck" || kind === "sync")
125
127
  return "source-change";
126
128
  return "unknown";
127
129
  };
@@ -5,17 +5,17 @@ import {
5
5
  AkanAppConfig,
6
6
  Executor,
7
7
  WorkspaceExecutor
8
- } from "./index-921cxqrd.js";
8
+ } from "./index-64g9fsjy.js";
9
9
  import {
10
10
  resolveAppId,
11
11
  targetHtmlFilename
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
14
  CsrArtifactBuilder
15
- } from "./index-005dqc83.js";
15
+ } from "./index-1dhf8ymv.js";
16
16
  import {
17
17
  ExitCodeError
18
- } from "./index-00ke4phc.js";
18
+ } from "./index-3gccwenr.js";
19
19
 
20
20
  // pkgs/@akanjs/devkit/mobile/desktopBin.ts
21
21
  import { chmod, mkdir, rename, rm, writeFile } from "fs/promises";