@akanjs/cli 3.1.2-rc.0 → 3.1.2-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 (36) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-dyc45f5w.js → CodeAgent-nkk70v5h.js} +2 -2
  3. package/{CodeTui-q55b2zrn.js → CodeTui-sdqz2gxb.js} +1 -1
  4. package/{agent.command-20zaqe60.js → agent.command-5gfrfh8d.js} +7 -7
  5. package/akanCode.js +2 -2
  6. package/{code.command-625bg8s8.js → code.command-5djp5c0n.js} +4 -4
  7. package/{context.command-p6haqjay.js → context.command-5d0bscv6.js} +11 -11
  8. package/{context.runner-rsnqnk9j.js → context.runner-2v5pq18d.js} +10 -10
  9. package/{index-hm0tn7qv.js → index-1404hqcj.js} +102 -4
  10. package/{index-t1t9wq9a.js → index-19cspack.js} +1 -1
  11. package/{index-a1vb3x7t.js → index-3q4kkyd4.js} +3 -3
  12. package/{index-cjmjvg4r.js → index-chjaw222.js} +2 -2
  13. package/{index-j7hwy56s.js → index-dbxac7mz.js} +1 -1
  14. package/{index-qw6814m4.js → index-f6zrhcnk.js} +7 -5
  15. package/index-gf4fcw1n.js +876 -0
  16. package/{index-fbewhg4g.js → index-k64mhwbw.js} +60 -1
  17. package/{index-2phm56a1.js → index-ms1am2wr.js} +2 -2
  18. package/{index-raz588b3.js → index-mzjwq4dd.js} +8 -7
  19. package/{index-jc2zbwra.js → index-pnk67cqd.js} +1 -1
  20. package/{index-g841cap9.js → index-pqdyyxz0.js} +23 -2
  21. package/{index-tgqameyb.js → index-q9q6jjk1.js} +3 -3
  22. package/{index-7apsdr5g.js → index-tw27n941.js} +1 -1
  23. package/{index-fhw7yq2d.js → index-tyt7cw99.js} +3 -3
  24. package/{index-1qsd8ft1.js → index-yep9xcz0.js} +1 -1
  25. package/index.js +11 -11
  26. package/{module.command-r4sa2khp.js → module.command-myykfb6s.js} +3 -3
  27. package/package.json +2 -2
  28. package/{primitive.command-dfsv4mpe.js → primitive.command-eg2c3m97.js} +4 -4
  29. package/{quality.command-webzxee2.js → quality.command-b840977n.js} +3 -3
  30. package/{repair.command-3r3j1xre.js → repair.command-r7z709yf.js} +4 -4
  31. package/{scalar.command-e8y47j6d.js → scalar.command-t6hhty3f.js} +3 -3
  32. package/skills/akan-scaffold/SKILL.md +1 -0
  33. package/{verify.command-yyepccbh.js → verify.command-07fqhpak.js} +4 -4
  34. package/{workflow.command-z5pg9ay0.js → workflow.command-c2jhzf7v.js} +13 -11
  35. package/{workspace.command-d7x5jttw.js → workspace.command-gv20zq1z.js} +14 -14
  36. package/index-2nxk8wgs.js +0 -266
package/.build-stamp CHANGED
@@ -1 +1 @@
1
- 794d67dba25af2a8d6ccdf57a9309054c139d32013c90e47afdea66c9d5387ee
1
+ 059862b64c480941037f841c4a31a985e9ab6b12c646f80af224f37cc310e0a2
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgent2
4
- } from "./index-a1vb3x7t.js";
5
- import"./index-1qsd8ft1.js";
4
+ } from "./index-3q4kkyd4.js";
5
+ import"./index-yep9xcz0.js";
6
6
  import"./index-tenw3mah.js";
7
7
  import"./index-35j83zkd.js";
8
8
  import"./index-bns3wcpc.js";
@@ -4,7 +4,7 @@ import {
4
4
  McpTokenStore,
5
5
  McpSignIn,
6
6
  AkanCodeCompaction2
7
- } from "./index-1qsd8ft1.js";
7
+ } from "./index-yep9xcz0.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import"./index-35j83zkd.js";
10
10
  import {
@@ -8,9 +8,9 @@ import"./index-g500c5j9.js";
8
8
  import"./index-35j83zkd.js";
9
9
  import"./index-j6eeh5d7.js";
10
10
  import"./index-hj6w4ka1.js";
11
- import"./index-hm0tn7qv.js";
12
- import"./index-2nxk8wgs.js";
13
- import"./index-j7hwy56s.js";
11
+ import"./index-1404hqcj.js";
12
+ import"./index-gf4fcw1n.js";
13
+ import"./index-dbxac7mz.js";
14
14
  import"./index-2mwjshz5.js";
15
15
  import"./index-p6x5b7hr.js";
16
16
  import"./index-sp0qsr7a.js";
@@ -18,14 +18,14 @@ import"./index-0j1t1h2b.js";
18
18
  import"./index-m9jj544v.js";
19
19
  import"./index-zbrwnmf1.js";
20
20
  import"./index-sveq36gh.js";
21
- import"./index-cjmjvg4r.js";
21
+ import"./index-chjaw222.js";
22
22
  import"./index-62md4dwy.js";
23
23
  import"./index-4am4dvmf.js";
24
- import"./index-fbewhg4g.js";
24
+ import"./index-k64mhwbw.js";
25
25
  import {
26
26
  AgentScript
27
- } from "./index-fhw7yq2d.js";
28
- import"./index-7apsdr5g.js";
27
+ } from "./index-tyt7cw99.js";
28
+ import"./index-tw27n941.js";
29
29
  import"./index-defp4gmb.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/agent/agent.command.ts
package/akanCode.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  CodeMailbox2,
31
31
  CodeSessionFork2,
32
32
  CodeAgent2
33
- } from "./index-a1vb3x7t.js";
33
+ } from "./index-3q4kkyd4.js";
34
34
  import {
35
35
  akanCodeDefaultModel2,
36
36
  akanCodeModel2,
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  SubagentPool2,
43
43
  AkanCodeCompaction2
44
- } from "./index-1qsd8ft1.js";
44
+ } from "./index-yep9xcz0.js";
45
45
  import {
46
46
  PreviewChrome2,
47
47
  PreviewView2
@@ -77,7 +77,7 @@ class CodeRunner extends runner("code") {
77
77
  async serve(options, listen) {
78
78
  await import("./consoleToStderr-h5bryj94.js");
79
79
  const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
80
- import("./CodeAgent-dyc45f5w.js"),
80
+ import("./CodeAgent-nkk70v5h.js"),
81
81
  import("./CodeAgentRpcHost-6dzfkvsc.js"),
82
82
  import("./CodeAgentRpcListener-tcwrdvst.js")
83
83
  ]);
@@ -111,8 +111,8 @@ class CodeRunner extends runner("code") {
111
111
  }
112
112
  async tui(options, seed) {
113
113
  const [{ CodeAgent }, { CodeTui }] = await Promise.all([
114
- import("./CodeAgent-dyc45f5w.js"),
115
- import("./CodeTui-q55b2zrn.js")
114
+ import("./CodeAgent-nkk70v5h.js"),
115
+ import("./CodeTui-sdqz2gxb.js")
116
116
  ]);
117
117
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
118
118
  const agentOptions = start.agent;
@@ -148,7 +148,7 @@ class CodeRunner extends runner("code") {
148
148
  }
149
149
  }
150
150
  async run(prompt, options) {
151
- const { CodeAgent } = await import("./CodeAgent-dyc45f5w.js");
151
+ const { CodeAgent } = await import("./CodeAgent-nkk70v5h.js");
152
152
  const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
153
153
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
154
154
  for (const warning of start.warnings)
@@ -6,26 +6,26 @@ import {
6
6
  import"./index-bns3wcpc.js";
7
7
  import"./index-g500c5j9.js";
8
8
  import"./index-hj6w4ka1.js";
9
- import"./index-hm0tn7qv.js";
10
- import"./index-2nxk8wgs.js";
11
- import"./index-j7hwy56s.js";
12
- import"./index-qw6814m4.js";
9
+ import"./index-1404hqcj.js";
10
+ import"./index-gf4fcw1n.js";
11
+ import"./index-dbxac7mz.js";
12
+ import"./index-f6zrhcnk.js";
13
13
  import"./index-sp0qsr7a.js";
14
14
  import"./index-0j1t1h2b.js";
15
15
  import"./index-m9jj544v.js";
16
16
  import"./index-zbrwnmf1.js";
17
17
  import"./index-sveq36gh.js";
18
18
  import"./index-j6eeh5d7.js";
19
- import"./index-2phm56a1.js";
19
+ import"./index-ms1am2wr.js";
20
20
  import"./index-khk05tsf.js";
21
- import"./index-t1t9wq9a.js";
22
- import"./index-g841cap9.js";
23
- import"./index-jc2zbwra.js";
24
- import"./index-fbewhg4g.js";
25
- import"./index-raz588b3.js";
21
+ import"./index-19cspack.js";
22
+ import"./index-pqdyyxz0.js";
23
+ import"./index-pnk67cqd.js";
24
+ import"./index-k64mhwbw.js";
25
+ import"./index-mzjwq4dd.js";
26
26
  import {
27
27
  ContextScript
28
- } from "./index-tgqameyb.js";
28
+ } from "./index-q9q6jjk1.js";
29
29
 
30
30
  // pkgs/@akanjs/cli/context/context.command.ts
31
31
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  ContextRunner2
4
- } from "./index-qw6814m4.js";
5
- import"./index-raz588b3.js";
6
- import"./index-jc2zbwra.js";
7
- import"./index-g841cap9.js";
8
- import"./index-2phm56a1.js";
9
- import"./index-t1t9wq9a.js";
4
+ } from "./index-f6zrhcnk.js";
5
+ import"./index-mzjwq4dd.js";
6
+ import"./index-pnk67cqd.js";
7
+ import"./index-pqdyyxz0.js";
8
+ import"./index-ms1am2wr.js";
9
+ import"./index-19cspack.js";
10
10
  import"./index-khk05tsf.js";
11
- import"./index-fbewhg4g.js";
12
- import"./index-j7hwy56s.js";
13
- import"./index-hm0tn7qv.js";
14
- import"./index-2nxk8wgs.js";
11
+ import"./index-k64mhwbw.js";
12
+ import"./index-dbxac7mz.js";
13
+ import"./index-1404hqcj.js";
14
+ import"./index-gf4fcw1n.js";
15
15
  import"./index-0j1t1h2b.js";
16
16
  import"./index-j6eeh5d7.js";
17
17
  import"./index-sp0qsr7a.js";
@@ -4,8 +4,9 @@ import {
4
4
  LibExecutor
5
5
  } from "./index-g500c5j9.js";
6
6
  import {
7
- createAst
8
- } from "./index-2nxk8wgs.js";
7
+ createAst,
8
+ AkanIndex
9
+ } from "./index-gf4fcw1n.js";
9
10
  import {
10
11
  camelToKebabCase
11
12
  } from "./index-9zy8479y.js";
@@ -2112,6 +2113,7 @@ var createWorkflowStepRegistry = ({
2112
2113
  addEnumField,
2113
2114
  addMutation,
2114
2115
  addSlice,
2116
+ renameKey,
2115
2117
  createInteraction
2116
2118
  }) => {
2117
2119
  const inspect = async () => {
@@ -2213,7 +2215,14 @@ var createWorkflowStepRegistry = ({
2213
2215
  slice: workflowStringInput(plan.inputs.slice)
2214
2216
  })),
2215
2217
  [workflowStepKey("add-slice", "update-signal-slice")]: inspect,
2216
- [workflowStepKey("add-slice", "connect-view-surfaces")]: async (_step, plan) => addSliceViewSurfaceInspection(plan)
2218
+ [workflowStepKey("add-slice", "connect-view-surfaces")]: async (_step, plan) => addSliceViewSurfaceInspection(plan),
2219
+ [workflowStepKey("rename-key", "rename-key")]: async (_step, plan) => primitiveReportToWorkflowStepResult(await renameKey({
2220
+ app: workflowStringInput(plan.inputs.app),
2221
+ module: workflowStringInput(plan.inputs.module),
2222
+ slice: workflowStringInput(plan.inputs.slice),
2223
+ query: workflowStringInput(plan.inputs.query),
2224
+ to: workflowStringInput(plan.inputs.to)
2225
+ }))
2217
2226
  };
2218
2227
  };
2219
2228
  class WorkflowExecutor {
@@ -2367,6 +2376,75 @@ class GuardCatalog {
2367
2376
  }));
2368
2377
  }
2369
2378
  }
2379
+ // pkgs/@akanjs/devkit/workflow/keyRename.ts
2380
+ import { readFile } from "fs/promises";
2381
+ import path2 from "path";
2382
+ import ts5 from "typescript";
2383
+ var indexedPath = /^(apps|libs)\/(?!(?:.*\/)?(?:node_modules|dist|\.akan)\/).*\.tsx?$/;
2384
+ var keyPattern = /^[a-z][A-Za-z0-9]*$/;
2385
+ var slashed = (fileName) => fileName.replace(/\\/g, "/");
2386
+ var refuse = (code, input, message) => ({
2387
+ diagnostics: [{ severity: "error", code, input, message }],
2388
+ files: []
2389
+ });
2390
+
2391
+ class KeyRename {
2392
+ static async build(workspace, input) {
2393
+ const sys = await resolveWorkflowSys(workspace, input.app);
2394
+ if (!sys)
2395
+ return refuse("workflow-target-missing", "app", `No app or library named ${input.app ?? ""}.`);
2396
+ if (!input.module)
2397
+ return refuse("workflow-input-missing", "module", "Module name is required.");
2398
+ if (!input.slice === !input.query)
2399
+ return refuse("rename-key-source-invalid", "slice", "Name exactly one key to rename, as slice or as query.");
2400
+ const family = input.slice ? "slice" : "query";
2401
+ const from = input.slice ?? input.query ?? "";
2402
+ if (!input.to || !keyPattern.test(input.to))
2403
+ return refuse("rename-key-name-invalid", "to", `New key "${input.to ?? ""}" must be camelCase (inFeed, byTitle).`);
2404
+ if (input.to === from)
2405
+ return refuse("rename-key-name-same", "to", `New key is the same as ${from}.`);
2406
+ const root = workspace.workspaceRoot;
2407
+ const paths = moduleSourcePaths(input.module);
2408
+ const sourceRelative = `${getSysRoot(sys)}/${family === "slice" ? paths.signal : paths.document}`;
2409
+ const sourcePath = slashed(path2.join(root, sourceRelative));
2410
+ const texts = new Map;
2411
+ const index = new AkanIndex({ ts: ts5, root });
2412
+ for (const relative of await workspace.getAllFiles("{apps,libs}/**/*.{ts,tsx}")) {
2413
+ if (!indexedPath.test(slashed(relative)))
2414
+ continue;
2415
+ const fileName = slashed(path2.join(root, relative));
2416
+ const text = await readFile(fileName, "utf8");
2417
+ texts.set(fileName, text);
2418
+ index.setFile(fileName, text);
2419
+ }
2420
+ const keys = index.sourceKeysOf(sourcePath).filter((key) => key.family === family);
2421
+ const source = keys.find((key) => key.sourceKey === from);
2422
+ if (!source)
2423
+ return refuse("rename-key-source-missing", family, `${sourceRelative} declares no ${family} key ${from}.`);
2424
+ if (keys.some((key) => key.sourceKey === input.to))
2425
+ return refuse("rename-key-exists", "to", `${sourceRelative} already declares the ${family} key ${input.to}.`);
2426
+ const edits = index.renameAt(sourcePath, source.span.start, input.to, (fileName) => texts.get(fileName)) ?? [];
2427
+ const byFile = new Map;
2428
+ for (const edit of edits)
2429
+ byFile.set(edit.span.fileName, [...byFile.get(edit.span.fileName) ?? [], edit]);
2430
+ const files = [...byFile].map(([fileName, fileEdits]) => {
2431
+ let content = texts.get(fileName) ?? "";
2432
+ for (const { span, newText } of fileEdits.toSorted((a, b) => b.span.start - a.span.start))
2433
+ content = content.slice(0, span.start) + newText + content.slice(span.end);
2434
+ const names = fileEdits.length === 1 ? "1 name changes" : `${fileEdits.length} names change`;
2435
+ return {
2436
+ path: slashed(path2.relative(root, fileName)),
2437
+ content,
2438
+ action: "modify",
2439
+ reason: `${names} with the ${family} key ${from} \u2192 ${input.to}.`
2440
+ };
2441
+ });
2442
+ return { diagnostics: [], files: files.toSorted((a, b) => a.path.localeCompare(b.path)) };
2443
+ }
2444
+ static targetsOf(files) {
2445
+ return [...new Set(files.map((file) => file.path.split("/").slice(0, 2).join("/")))];
2446
+ }
2447
+ }
2370
2448
  // pkgs/@akanjs/devkit/workflow/mutationScaffold.ts
2371
2449
  import { lowerlize as lowerlize4, modelNames } from "akanjs/common";
2372
2450
 
@@ -2933,6 +3011,8 @@ var nameInputPatterns = {
2933
3011
  scalar: identifierPattern,
2934
3012
  field: identifierPattern,
2935
3013
  slice: identifierPattern,
3014
+ query: identifierPattern,
3015
+ to: identifierPattern,
2936
3016
  mutation: identifierPattern,
2937
3017
  interaction: identifierPattern
2938
3018
  };
@@ -3298,7 +3378,25 @@ var createWorkflowPlan = (spec, rawInputs) => {
3298
3378
  };
3299
3379
  var planString = (inputs, name) => typeof inputs[name] === "string" ? inputs[name] : null;
3300
3380
  var planStrings = (inputs, name) => Array.isArray(inputs[name]) ? inputs[name] : null;
3381
+ var inspectRenameKeyPlan = async (workspace, plan) => {
3382
+ if (plan.diagnostics.some((diagnostic) => diagnostic.severity === "error"))
3383
+ return plan;
3384
+ const { diagnostics, files } = await KeyRename.build(workspace, {
3385
+ app: planString(plan.inputs, "app"),
3386
+ module: planString(plan.inputs, "module"),
3387
+ slice: planString(plan.inputs, "slice"),
3388
+ query: planString(plan.inputs, "query"),
3389
+ to: planString(plan.inputs, "to")
3390
+ });
3391
+ return {
3392
+ ...plan,
3393
+ diagnostics: [...plan.diagnostics, ...diagnostics],
3394
+ predictedChanges: files.length ? files.map((file) => ({ target: file.path, action: "modify", applyScope: "auto", reason: file.reason })) : plan.predictedChanges
3395
+ };
3396
+ };
3301
3397
  var inspectWorkflowPlan = async (workspace, plan) => {
3398
+ if (plan.workflow === "rename-key")
3399
+ return await inspectRenameKeyPlan(workspace, plan);
3302
3400
  if (plan.workflow !== "add-mutation" && plan.workflow !== "create-interaction")
3303
3401
  return plan;
3304
3402
  const app = planString(plan.inputs, "app");
@@ -3662,4 +3760,4 @@ for (const candidate of toolingRolloutCandidates) {
3662
3760
  if (isRestrictedCandidate(candidate))
3663
3761
  restrictedCandidates.set(candidate.packageName, candidate);
3664
3762
  }
3665
- export { InteractionScaffold, jsonText, workflowStatus, compactDiagnostics, workflowPlanApproval, createWorkflowApplyReport, workflowCommandsForPlan, workflowPathsForPlan, workflowRunArtifactPath, writeWorkflowRunArtifact, workflowSyncDir, generatedFilePathsForTarget, writeGeneratedSyncState, readWorkflowRunArtifact, createWorkflowBaselineSummary, createWorkflowValidationRunReport, createDryRunWorkflowApplyReport, createRepairReport, sourceFile, moduleComponentName, moduleSourcePaths, generatedFilesForSync, validationCommandsForTarget, nextActionsForTarget, createPrimitiveWriteReport, createPassedPrimitiveReport, scalarChangedFiles, bilingualLabelForField, bilingualDescriptionForField, normalizeFieldType, ensureNamedImport, ensureBaseImport, ensureBaseTypeImport, coerceFieldDefault, fieldExpression, viaBuilderParameterName, insertIntoObject, insertLightProjectionField, insertTemplateField, ensureEnumImport, insertEnumClass, insertDictionaryModelField, hasConstantInputField, hasDictionaryModelField, ensureConstantTypeImport, insertDictionaryEnum, parseValues, hasSourceParseErrors, hasClassMethod, insertClassMethod, hasSignalFactoryEntry, insertSignalFactoryEntry, buildAkanModuleContextIndex, addFieldUiPolicyForType, createWorkflowStepRegistry, WorkflowExecutor, MutationScaffold, isWorkflowSysName, isWorkflowModuleName, listWorkflowSpecs, getWorkflowSpec, compactWorkflowInputs, createWorkflowPlan, inspectWorkflowPlan, renderWorkflowList, renderWorkflowExplain, renderWorkflowPlan, renderWorkflowApply, renderWorkflowValidation, renderRepairReport, renderWorkflowRunArtifact, renderPrimitiveReport, toolingRolloutGate };
3763
+ export { InteractionScaffold, jsonText, workflowStatus, compactDiagnostics, workflowPlanApproval, createWorkflowApplyReport, workflowCommandsForPlan, workflowPathsForPlan, workflowRunArtifactPath, writeWorkflowRunArtifact, workflowSyncDir, generatedFilePathsForTarget, writeGeneratedSyncState, readWorkflowRunArtifact, createWorkflowBaselineSummary, createWorkflowValidationRunReport, createDryRunWorkflowApplyReport, createRepairReport, sourceFile, moduleComponentName, moduleSourcePaths, generatedFilesForSync, validationCommandsForTarget, nextActionsForTarget, createPrimitiveWriteReport, createPassedPrimitiveReport, scalarChangedFiles, bilingualLabelForField, bilingualDescriptionForField, normalizeFieldType, ensureNamedImport, ensureBaseImport, ensureBaseTypeImport, coerceFieldDefault, fieldExpression, viaBuilderParameterName, insertIntoObject, insertLightProjectionField, insertTemplateField, ensureEnumImport, insertEnumClass, insertDictionaryModelField, hasConstantInputField, hasDictionaryModelField, ensureConstantTypeImport, insertDictionaryEnum, parseValues, hasSourceParseErrors, hasClassMethod, insertClassMethod, hasSignalFactoryEntry, insertSignalFactoryEntry, buildAkanModuleContextIndex, addFieldUiPolicyForType, createWorkflowStepRegistry, WorkflowExecutor, KeyRename, MutationScaffold, isWorkflowSysName, isWorkflowModuleName, listWorkflowSpecs, getWorkflowSpec, compactWorkflowInputs, createWorkflowPlan, inspectWorkflowPlan, renderWorkflowList, renderWorkflowExplain, renderWorkflowPlan, renderWorkflowApply, renderWorkflowValidation, renderRepairReport, renderWorkflowRunArtifact, renderPrimitiveReport, toolingRolloutGate };
@@ -13,7 +13,7 @@ import {
13
13
  createPassedPrimitiveReport,
14
14
  bilingualLabelForField,
15
15
  bilingualDescriptionForField
16
- } from "./index-hm0tn7qv.js";
16
+ } from "./index-1404hqcj.js";
17
17
  import {
18
18
  PageScript
19
19
  } from "./index-khk05tsf.js";
@@ -15,7 +15,7 @@ import {
15
15
  SubagentPool2,
16
16
  McpSignIn,
17
17
  AkanCodeCompaction2
18
- } from "./index-1qsd8ft1.js";
18
+ } from "./index-yep9xcz0.js";
19
19
  import {
20
20
  PreviewView2,
21
21
  stripAnsi
@@ -659,7 +659,7 @@ class AkanToolPack2 {
659
659
  return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
660
660
  }
661
661
  async names() {
662
- const { ContextRunner } = await import("./context.runner-rsnqnk9j.js");
662
+ const { ContextRunner } = await import("./context.runner-2v5pq18d.js");
663
663
  return [
664
664
  ...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
665
665
  AkanToolPack2.verifyToolName
@@ -667,7 +667,7 @@ class AkanToolPack2 {
667
667
  }
668
668
  static verifyToolName = "akan_verify";
669
669
  async#register(pi) {
670
- const { ContextRunner } = await import("./context.runner-rsnqnk9j.js");
670
+ const { ContextRunner } = await import("./context.runner-2v5pq18d.js");
671
671
  const runner = new ContextRunner;
672
672
  const guidelineNames = await AkanToolPack2.#guidelineNames();
673
673
  for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  createAst,
32
32
  createFactReader
33
- } from "./index-2nxk8wgs.js";
33
+ } from "./index-gf4fcw1n.js";
34
34
  import {
35
35
  collectRecipeSources2,
36
36
  scanRecipes2
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  sysInputs,
44
44
  workflowSpecs
45
- } from "./index-fbewhg4g.js";
45
+ } from "./index-k64mhwbw.js";
46
46
 
47
47
  // pkgs/@akanjs/cli/workspace/workspace.runner.ts
48
48
  import { mkdir, writeFile as writeFile2 } from "fs/promises";
@@ -23,7 +23,7 @@ import {
23
23
  workflowPathsForPlan,
24
24
  workflowRunArtifactPath,
25
25
  workflowSyncDir
26
- } from "./index-hm0tn7qv.js";
26
+ } from "./index-1404hqcj.js";
27
27
 
28
28
  // pkgs/@akanjs/devkit/akanContext.ts
29
29
  import { readdir } from "fs/promises";
@@ -7,7 +7,7 @@ import {
7
7
  createWorkflowBaselineSummary,
8
8
  buildAkanModuleContextIndex,
9
9
  toolingRolloutGate
10
- } from "./index-hm0tn7qv.js";
10
+ } from "./index-1404hqcj.js";
11
11
  import {
12
12
  buildResourceList,
13
13
  codexMcpConfigPath,
@@ -17,7 +17,7 @@ import {
17
17
  upsertCodexMcpServerBlock,
18
18
  renderDoctorText,
19
19
  AkanContextAnalyzer
20
- } from "./index-j7hwy56s.js";
20
+ } from "./index-dbxac7mz.js";
21
21
  import {
22
22
  runner
23
23
  } from "./index-9zy8479y.js";
@@ -36,10 +36,10 @@ import {
36
36
  } from "./index-j6eeh5d7.js";
37
37
  import {
38
38
  RepairRunner
39
- } from "./index-2phm56a1.js";
39
+ } from "./index-ms1am2wr.js";
40
40
  import {
41
41
  WorkflowRunner
42
- } from "./index-raz588b3.js";
42
+ } from "./index-mzjwq4dd.js";
43
43
 
44
44
  // pkgs/@akanjs/devkit/akanMcpContract.ts
45
45
  import { lstatSync, realpathSync } from "fs";
@@ -182,7 +182,9 @@ var defaultWorkflowPlanPath = (workflow, inputs) => {
182
182
  slugPart(inputs.scalar),
183
183
  slugPart(inputs.surface),
184
184
  slugPart(inputs.mutation),
185
- slugPart(inputs.slice)
185
+ slugPart(inputs.slice),
186
+ slugPart(inputs.query),
187
+ slugPart(inputs.to)
186
188
  ].filter(Boolean).join("-");
187
189
  return `.akan/workflows/plans/${slug || "workflow-plan"}.json`;
188
190
  };