@akanjs/cli 3.2.0-rc.1 → 3.2.0-rc.2

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 (76) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-vmd9k4ak.js → CodeAgent-6cpjtj25.js} +2 -2
  3. package/{CodeTui-zka44v52.js → CodeTui-zyc7zaq6.js} +1 -1
  4. package/TunnelShare-zkfkrw8w.js +14 -0
  5. package/{agent.command-2f657613.js → agent.command-kf1g3nh4.js} +17 -17
  6. package/akanCode.js +2 -2
  7. package/{application.command-q6skd3am.js → application.command-vb278qnq.js} +12 -12
  8. package/{applicationBuildRunner-sctcmkyx.js → applicationBuildRunner-bqbyeg84.js} +6 -6
  9. package/buildBatch.proc.js +6 -6
  10. package/{cloud.command-7642pks6.js → cloud.command-ca777ee2.js} +18 -18
  11. package/cloud.script-agpxzq6j.js +30 -0
  12. package/{code.command-7s4ndq2k.js → code.command-j08txqcd.js} +6 -6
  13. package/{context.command-569z0rqf.js → context.command-2fa6egp9.js} +19 -19
  14. package/context.runner-ftv8373t.js +29 -0
  15. package/{guideline.command-gnv3e8p8.js → guideline.command-w6yqpdec.js} +2 -2
  16. package/incrementalBuilder.proc.js +7 -7
  17. package/{index-a8a9ede9.js → index-0fj9ra3q.js} +3 -3
  18. package/{index-thckcabc.js → index-0mqga3h9.js} +18 -3
  19. package/{index-abgh0jve.js → index-1cb9apzn.js} +1 -1
  20. package/{index-ed6ea0qp.js → index-20wvskt8.js} +1 -1
  21. package/{index-5w9my9qe.js → index-2gees180.js} +8 -8
  22. package/{index-93ewzmp6.js → index-386canwe.js} +21 -14
  23. package/{index-fjr4d6yd.js → index-466z5931.js} +5 -5
  24. package/{index-d4n1wmrz.js → index-65b6ms4c.js} +4 -4
  25. package/{index-6wpaq392.js → index-6h775rv3.js} +4 -4
  26. package/{index-aj3ehkcx.js → index-7kmbqp0b.js} +1 -1
  27. package/{index-1q1cjn8s.js → index-84c2pgak.js} +93 -53
  28. package/{index-sy481q2x.js → index-8jpc5fqv.js} +1 -1
  29. package/{index-vr68mxj5.js → index-8nbx607g.js} +8 -8
  30. package/{index-8kczhnmv.js → index-abfbf01s.js} +1 -1
  31. package/{index-v4p1zye8.js → index-annxfpgz.js} +7 -7
  32. package/{index-8g7tdsk4.js → index-bdmgqzb5.js} +4 -4
  33. package/{index-vkzfk7qt.js → index-c5ymqb05.js} +40 -30
  34. package/{index-0fb3cpbt.js → index-cbcwxp5v.js} +5 -5
  35. package/{index-zpv14wpy.js → index-djc5nxpy.js} +3 -3
  36. package/{index-s2grpzef.js → index-dk4g0x0d.js} +3 -3
  37. package/{index-drz9e84d.js → index-e22zedc2.js} +2 -2
  38. package/{index-w639tvkd.js → index-ebwkh7bt.js} +7 -4
  39. package/{index-8ts9774g.js → index-htxck0pn.js} +4 -4
  40. package/{index-9tbgb4d8.js → index-j1hjb477.js} +1 -1
  41. package/{index-kpdv34rq.js → index-j7p0jgaq.js} +10 -7
  42. package/{index-ktb3wcqz.js → index-kcpk2d20.js} +8 -8
  43. package/{index-7y5yghjg.js → index-m5sg5spm.js} +932 -431
  44. package/{index-rc5fvqj2.js → index-mvwvxgtd.js} +28 -26
  45. package/{index-e3vmjtph.js → index-pq5rjkch.js} +2 -2
  46. package/{index-48d5qsj3.js → index-qgazn58x.js} +4 -4
  47. package/{index-eajbmk10.js → index-v50xjbbe.js} +1 -1
  48. package/{index-7xdpww43.js → index-vbhx60x5.js} +323 -129
  49. package/{index-sr5da35e.js → index-wfmpxke3.js} +2 -2
  50. package/{index-mmym5xmb.js → index-wr9magsr.js} +5 -3
  51. package/{index-mqntfzv5.js → index-xa0289eg.js} +2 -2
  52. package/{index-8pb9yvp8.js → index-xq97me1h.js} +49 -12
  53. package/{index-p6hjwt2d.js → index-y725zb1a.js} +1 -1
  54. package/{index-hqrkqxx2.js → index-ygrdw6jw.js} +1 -1
  55. package/index.js +23 -23
  56. package/{library.command-1gp5qe3r.js → library.command-8d03a0pq.js} +4 -4
  57. package/{localRegistry.command-x7jptkd3.js → localRegistry.command-vyv5k6t0.js} +17 -17
  58. package/{module.command-4xz9he6h.js → module.command-vy3kg965.js} +7 -7
  59. package/{package.command-s7qpnn1g.js → package.command-qjh13rs9.js} +7 -7
  60. package/package.json +2 -2
  61. package/{page.command-fan34c49.js → page.command-t0nx1jat.js} +3 -3
  62. package/{pipeline.command-ph4fnn9w.js → pipeline.command-2yjeas7m.js} +2 -2
  63. package/{primitive.command-3fqh8emf.js → primitive.command-8vm49279.js} +7 -7
  64. package/{projectTypecheck-vkb40hjc.js → projectTypecheck-s9hhe5sa.js} +1 -1
  65. package/{quality.command-ecj6exsh.js → quality.command-v76fev72.js} +6 -6
  66. package/{repair.command-fe9jw719.js → repair.command-fp4m3w03.js} +6 -6
  67. package/{scalar.command-cnvfhk0n.js → scalar.command-hxe6try8.js} +6 -6
  68. package/skills/akan-scaffold/SKILL.md +2 -1
  69. package/{subspace.command-qw5ddd6y.js → subspace.command-q42n1844.js} +8 -8
  70. package/{tunnel.command-ggj38mqf.js → tunnel.command-22g11n0x.js} +7 -7
  71. package/{verify.command-w9ttxkdz.js → verify.command-rx43bha1.js} +14 -14
  72. package/{workflow.command-ss8devj0.js → workflow.command-yg0d8mmq.js} +30 -15
  73. package/{workspace.command-6z2rh8ze.js → workspace.command-fcfztvn5.js} +33 -33
  74. package/TunnelShare-k3ja4w9x.js +0 -14
  75. package/cloud.script-1sfseznn.js +0 -30
  76. package/context.runner-ms8v1rxy.js +0 -29
@@ -1,13 +1,4 @@
1
1
  // @bun
2
- import {
3
- AppExecutor
4
- } from "./index-sr5da35e.js";
5
- import {
6
- jsonText,
7
- createWorkflowBaselineSummary,
8
- buildAkanModuleContextIndex,
9
- toolingRolloutGate
10
- } from "./index-8pb9yvp8.js";
11
2
  import {
12
3
  buildResourceList,
13
4
  codexMcpConfigPath,
@@ -17,16 +8,26 @@ import {
17
8
  upsertCodexMcpServerBlock,
18
9
  renderDoctorText,
19
10
  AkanContextAnalyzer
20
- } from "./index-thckcabc.js";
11
+ } from "./index-0mqga3h9.js";
12
+ import {
13
+ AppExecutor
14
+ } from "./index-wfmpxke3.js";
15
+ import {
16
+ jsonText,
17
+ workflowStatus,
18
+ createWorkflowBaselineSummary,
19
+ buildAkanModuleContextIndex,
20
+ toolingRolloutGate
21
+ } from "./index-xq97me1h.js";
21
22
  import {
22
23
  runner
23
- } from "./index-93ewzmp6.js";
24
+ } from "./index-386canwe.js";
24
25
  import {
25
26
  NativeApp
26
- } from "./index-zpv14wpy.js";
27
+ } from "./index-djc5nxpy.js";
27
28
  import {
28
29
  isPlaceholderAppId
29
- } from "./index-ed6ea0qp.js";
30
+ } from "./index-20wvskt8.js";
30
31
  import {
31
32
  getMobileTargets,
32
33
  appIdsOf
@@ -36,13 +37,13 @@ import {
36
37
  } from "./index-j6eeh5d7.js";
37
38
  import {
38
39
  WorkspaceGraph
39
- } from "./index-w639tvkd.js";
40
+ } from "./index-ebwkh7bt.js";
40
41
  import {
41
42
  RepairRunner
42
- } from "./index-0fb3cpbt.js";
43
+ } from "./index-cbcwxp5v.js";
43
44
  import {
44
45
  WorkflowRunner
45
- } from "./index-vkzfk7qt.js";
46
+ } from "./index-c5ymqb05.js";
46
47
 
47
48
  // pkgs/@akanjs/devkit/akanMcpContract.ts
48
49
  import { lstatSync, realpathSync } from "fs";
@@ -194,7 +195,7 @@ var defaultWorkflowPlanPath = (workflow, inputs) => {
194
195
  var applyFirstPolicy = {
195
196
  mode: "apply-first",
196
197
  directSourceEdits: "fallback-only",
197
- applyRequiredWhen: ["plan_workflow returns planPath", "plan_workflow returns next.tool=apply_workflow"],
198
+ applyRequiredWhen: ["plan_workflow returns next.tool=apply_workflow"],
198
199
  approvalMeaning: "requiresApproval is an agent/user review signal before apply_workflow mutates files; it is not a separate MCP permission gate.",
199
200
  validationRequiredAfterApply: ["validationTarget", "applyReportPath"],
200
201
  fallbackAllowedWhen: [
@@ -344,7 +345,7 @@ var planMcpTools = [
344
345
  },
345
346
  {
346
347
  name: "plan_workflow",
347
- description: "Create a read-only workflow plan after context inspection and return planPath plus next.tool=apply_workflow.",
348
+ description: "Create a read-only workflow plan after context inspection and return planPath, plus next.tool=apply_workflow unless a diagnostic is an error.",
348
349
  inputSchema: {
349
350
  type: "object",
350
351
  properties: { workflow: stringProperty, inputs: objectProperty, out: stringProperty },
@@ -355,7 +356,7 @@ var planMcpTools = [
355
356
  var applyMcpTools = [
356
357
  {
357
358
  name: "apply_workflow",
358
- description: "Apply a stored workflow plan before direct edits and return validationTarget for run_validation.",
359
+ description: "Apply a stored workflow plan before direct edits and return validationTarget, plus next.tool=run_validation unless the apply failed.",
359
360
  inputSchema: {
360
361
  type: "object",
361
362
  properties: { planPath: stringProperty, dryRun: booleanProperty },
@@ -636,7 +637,7 @@ class ContextRunner2 extends runner("context") {
636
637
  if (ios)
637
638
  return await this.#doctorIos(workspace, format);
638
639
  const result = await AkanContextAnalyzer.doctor(workspace, { strict });
639
- return format === "json" ? jsonText(result) : renderDoctorText(result);
640
+ return { status: result.status, output: format === "json" ? jsonText(result) : renderDoctorText(result) };
640
641
  }
641
642
  async#doctorIos(workspace, format) {
642
643
  const appNames = await workspace.getApps();
@@ -672,7 +673,7 @@ class ContextRunner2 extends runner("context") {
672
673
  }
673
674
  const status = diagnostics.some((diagnostic) => diagnostic.severity === "error") ? "failed" : "passed";
674
675
  if (format === "json")
675
- return jsonText({ schemaVersion: 1, kind: "ios", status, diagnostics });
676
+ return { status, output: jsonText({ schemaVersion: 1, kind: "ios", status, diagnostics }) };
676
677
  const lines = [`Akan iOS diagnostics for ${workspace.repoName}`];
677
678
  if (diagnostics.length === 0)
678
679
  lines.push(" No native configuration issues found.");
@@ -681,8 +682,8 @@ class ContextRunner2 extends runner("context") {
681
682
  lines.push(` [${diagnostic.severity}] ${diagnostic.code}: ${diagnostic.message}`);
682
683
  lines.push(` ${diagnostic.path}`);
683
684
  }
684
- return lines.join(`
685
- `);
685
+ return { status, output: lines.join(`
686
+ `) };
686
687
  }
687
688
  async getGuidelineResource(name) {
688
689
  return await Prompter2.getInstruction(name);
@@ -785,11 +786,12 @@ class ContextRunner2 extends runner("context") {
785
786
  const planPath = typeof args.out === "string" && args.out ? args.out : defaultWorkflowPlanPath(workflow, inputs);
786
787
  const out = workflowArtifactPath(workspace, planPath);
787
788
  const plan = parseJsonOutput(await new WorkflowRunner().plan(workflow, inputs, { format: "json", out, workspace }));
789
+ const applicable = workflowStatus(plan.diagnostics) === "passed";
788
790
  return {
789
791
  ...plan,
790
792
  planPath,
791
- approval: typeof plan === "object" && plan && "approval" in plan ? { ...plan.approval, canApplyWith: { planPath } } : undefined,
792
- next: { tool: "apply_workflow", args: { planPath } },
793
+ approval: plan.approval && applicable ? { ...plan.approval, canApplyWith: { planPath } } : plan.approval,
794
+ ...applicable ? { next: { tool: "apply_workflow", args: { planPath } } } : {},
793
795
  policy: applyFirstPolicy
794
796
  };
795
797
  }
@@ -804,7 +806,7 @@ class ContextRunner2 extends runner("context") {
804
806
  return {
805
807
  ...report,
806
808
  validationTarget,
807
- next: { tool: "run_validation", args: { runIdOrPlan: validationTarget } },
809
+ ...report.status === "failed" ? {} : { next: { tool: "run_validation", args: { runIdOrPlan: validationTarget } } },
808
810
  policy: applyFirstPolicy
809
811
  };
810
812
  }
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-93ewzmp6.js";
5
+ } from "./index-386canwe.js";
6
6
  import {
7
7
  generatedFilesForSync,
8
8
  createPassedPrimitiveReport,
9
9
  scalarChangedFiles
10
- } from "./index-8pb9yvp8.js";
10
+ } from "./index-xq97me1h.js";
11
11
  import {
12
12
  pluralizeName
13
13
  } from "./index-nz8prx9g.js";
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  script
4
- } from "./index-93ewzmp6.js";
4
+ } from "./index-386canwe.js";
5
5
  import {
6
6
  AppExecutor,
7
7
  LibExecutor,
8
8
  ModuleExecutor
9
- } from "./index-sr5da35e.js";
9
+ } from "./index-wfmpxke3.js";
10
10
  import {
11
11
  InteractionScaffold,
12
12
  workflowStatus,
@@ -45,10 +45,10 @@ import {
45
45
  addFieldUiPolicyForType,
46
46
  KeyRename,
47
47
  MutationScaffold
48
- } from "./index-8pb9yvp8.js";
48
+ } from "./index-xq97me1h.js";
49
49
  import {
50
50
  ModuleScript
51
- } from "./index-8ts9774g.js";
51
+ } from "./index-htxck0pn.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
54
54
  import { capitalize, lowerlize } from "akanjs/common";
@@ -11,7 +11,7 @@ var moduleInput = {
11
11
  module: {
12
12
  type: "string",
13
13
  required: true,
14
- description: "Target domain, service, or scalar module name.",
14
+ description: "An existing database module, one with lib/<module>/<module>.constant.ts; not a service or scalar module.",
15
15
  mustExist: true
16
16
  }
17
17
  };