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

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 (77) hide show
  1. package/.build-stamp +2 -1
  2. package/{CodeAgent-6cpjtj25.js → CodeAgent-4a2skdph.js} +3 -3
  3. package/{CodeTui-zyc7zaq6.js → CodeTui-enrzsnzc.js} +1 -1
  4. package/{TunnelShare-zkfkrw8w.js → TunnelShare-xs5rrpf1.js} +5 -5
  5. package/{agent.command-kf1g3nh4.js → agent.command-y22t9x1e.js} +12 -12
  6. package/akanCode.js +3 -3
  7. package/{application.command-vb278qnq.js → application.command-yhj5arwc.js} +10 -10
  8. package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-6w1fd61b.js} +5 -5
  9. package/buildBatch.proc.js +4 -4
  10. package/{cloud.command-ca777ee2.js → cloud.command-bqfh4cnx.js} +15 -15
  11. package/cloud.script-8jvfw1sh.js +30 -0
  12. package/{code.command-j08txqcd.js → code.command-y94hwxsn.js} +5 -5
  13. package/{context.command-2fa6egp9.js → context.command-xz65fhrn.js} +17 -17
  14. package/context.runner-dpt5wjb7.js +29 -0
  15. package/{devTui-w38ch13a.js → devTui-h77zrjv5.js} +1 -1
  16. package/{guideline.command-w6yqpdec.js → guideline.command-sn843nw6.js} +1 -1
  17. package/guidelines/conventions/rules/page.md +4 -0
  18. package/guidelines/pageRule/pageRule.instruction.md +5 -0
  19. package/guidelines/runtimeRule/runtimeRule.instruction.md +5 -1
  20. package/guidelines/transportRule/transportRule.instruction.md +5 -0
  21. package/incrementalBuilder.proc.js +5 -5
  22. package/{index-xq97me1h.js → index-02b8qvww.js} +7 -7
  23. package/{index-j1hjb477.js → index-2rcptfyp.js} +1 -1
  24. package/{index-ebwkh7bt.js → index-39jz41jb.js} +23 -5
  25. package/{index-84c2pgak.js → index-3rff2c48.js} +1 -0
  26. package/{index-dk4g0x0d.js → index-3wen6ddy.js} +1 -1
  27. package/{index-c5ymqb05.js → index-49y45vbj.js} +9 -9
  28. package/{index-cbcwxp5v.js → index-4mgabs8t.js} +7 -5
  29. package/{index-0fj9ra3q.js → index-50mg8bsm.js} +4 -4
  30. package/{index-20wvskt8.js → index-5hhe0rdd.js} +1 -1
  31. package/{index-kcpk2d20.js → index-5qq6qky3.js} +8 -8
  32. package/{index-vbhx60x5.js → index-5w8amdr7.js} +1 -1
  33. package/{index-bdmgqzb5.js → index-8vxdsqra.js} +35 -22
  34. package/{index-m5sg5spm.js → index-9p260r4e.js} +114 -24
  35. package/{index-8nbx607g.js → index-ah09graf.js} +56 -25
  36. package/{index-23860fej.js → index-b4qq3rq0.js} +23 -8
  37. package/{index-mvwvxgtd.js → index-b9q5aw30.js} +12 -12
  38. package/{index-1cb9apzn.js → index-cmg5ngqa.js} +1 -1
  39. package/{index-0mqga3h9.js → index-fqx74yxn.js} +11 -8
  40. package/{index-djc5nxpy.js → index-g43360sn.js} +2 -2
  41. package/{index-65b6ms4c.js → index-gsty3pkx.js} +6 -2
  42. package/{index-386canwe.js → index-hkq0q73d.js} +44 -25
  43. package/{index-htxck0pn.js → index-jgj6ajnk.js} +8 -3
  44. package/{index-466z5931.js → index-jqsj5wjb.js} +2 -2
  45. package/{index-xa0289eg.js → index-jrdp7c4h.js} +6 -1
  46. package/{index-wr9magsr.js → index-jxaq2evq.js} +1 -1
  47. package/{index-pq5rjkch.js → index-kgxhwgdk.js} +7 -2
  48. package/{index-6h775rv3.js → index-kjmrkc45.js} +4 -4
  49. package/{index-abfbf01s.js → index-kr8dvqnr.js} +1 -1
  50. package/{index-j7p0jgaq.js → index-qrp98bmp.js} +4 -4
  51. package/{index-qgazn58x.js → index-sjj3ywn5.js} +16 -9
  52. package/index-va90m8nd.js +25 -0
  53. package/{index-e22zedc2.js → index-vftjqv28.js} +2 -2
  54. package/{index-2gees180.js → index-w15hnxmb.js} +5 -5
  55. package/{index-annxfpgz.js → index-w88xghey.js} +6 -6
  56. package/{index-7kmbqp0b.js → index-z9b72teg.js} +1 -1
  57. package/index.js +22 -22
  58. package/{library.command-8d03a0pq.js → library.command-6eafevmj.js} +2 -2
  59. package/{localRegistry.command-vyv5k6t0.js → localRegistry.command-9tef2qsj.js} +14 -14
  60. package/{module.command-vy3kg965.js → module.command-pn1k7dfk.js} +10 -6
  61. package/{package.command-qjh13rs9.js → package.command-kbg9z7re.js} +4 -4
  62. package/package.json +2 -2
  63. package/{page.command-t0nx1jat.js → page.command-st0y2xg8.js} +2 -2
  64. package/{pipeline.command-2yjeas7m.js → pipeline.command-76m32y7z.js} +1 -1
  65. package/{primitive.command-8vm49279.js → primitive.command-ax6wg70s.js} +6 -6
  66. package/{quality.command-v76fev72.js → quality.command-0gzskga8.js} +3 -3
  67. package/{repair.command-fp4m3w03.js → repair.command-g5kc3x89.js} +5 -5
  68. package/{scalar.command-hxe6try8.js → scalar.command-ck8621dy.js} +4 -4
  69. package/skills/akan-debug/SKILL.md +6 -2
  70. package/skills/akan-transport/SKILL.md +2 -0
  71. package/{subspace.command-q42n1844.js → subspace.command-vh6dye0v.js} +6 -6
  72. package/{tunnel.command-22g11n0x.js → tunnel.command-4mezrypt.js} +6 -6
  73. package/{verify.command-rx43bha1.js → verify.command-f2n4bwp7.js} +9 -9
  74. package/{workflow.command-yg0d8mmq.js → workflow.command-bx9xwgs5.js} +10 -10
  75. package/{workspace.command-fcfztvn5.js → workspace.command-04qgwsst.js} +33 -29
  76. package/cloud.script-agpxzq6j.js +0 -30
  77. package/context.runner-ftv8373t.js +0 -29
@@ -6,7 +6,7 @@ import {
6
6
  CloudApi,
7
7
  CloudUpdates,
8
8
  PipelineSecrets
9
- } from "./index-e22zedc2.js";
9
+ } from "./index-vftjqv28.js";
10
10
  import {
11
11
  resolveMobileTargets
12
12
  } from "./index-m9jj544v.js";
@@ -16,11 +16,11 @@ import {
16
16
  } from "./index-wfmpxke3.js";
17
17
  import {
18
18
  NativeApp
19
- } from "./index-djc5nxpy.js";
19
+ } from "./index-g43360sn.js";
20
20
  import {
21
21
  runner,
22
22
  assertPromptable
23
- } from "./index-386canwe.js";
23
+ } from "./index-hkq0q73d.js";
24
24
  import {
25
25
  getNpmRegistryUrl,
26
26
  getPublishedVersions,
@@ -1244,7 +1244,7 @@ ${run.format(results)}
1244
1244
  async downloadEnv(cloudApi, workspace, workspaceId) {
1245
1245
  await workspace.mkdir("local");
1246
1246
  const localPath = await cloudApi.downloadEnv(workspaceId).catch((error) => {
1247
- throw CloudApi.refusal(error, "downloading its env archive takes the project owner's own `akan login`");
1247
+ throw CloudApi.refusal(error, "only the repository owner, or an owner or operator they allowed on the project's settings page, can download its env archive; sign in as one of them with `akan login`");
1248
1248
  });
1249
1249
  await EnvArchive.extract(workspace, localPath);
1250
1250
  await workspace.remove(localPath);
@@ -157,7 +157,7 @@ class SubagentPool2 {
157
157
  }
158
158
  }
159
159
  async#run(id, kind, prompt, signal) {
160
- const { CodeAgent } = await import("./CodeAgent-6cpjtj25.js");
160
+ const { CodeAgent } = await import("./CodeAgent-4a2skdph.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?.();
@@ -1,16 +1,16 @@
1
1
  // @bun
2
2
  import {
3
3
  akanMcpInstallTargets
4
- } from "./index-0mqga3h9.js";
4
+ } from "./index-fqx74yxn.js";
5
5
  import {
6
6
  jsonText
7
- } from "./index-xq97me1h.js";
7
+ } from "./index-02b8qvww.js";
8
8
  import {
9
9
  script
10
- } from "./index-386canwe.js";
10
+ } from "./index-hkq0q73d.js";
11
11
  import {
12
12
  ContextRunner2
13
- } from "./index-mvwvxgtd.js";
13
+ } from "./index-b9q5aw30.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/context/context.script.ts
16
16
  import { Logger } from "akanjs/common";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  script
4
- } from "./index-386canwe.js";
4
+ } from "./index-hkq0q73d.js";
5
5
  import {
6
6
  AppExecutor,
7
7
  LibExecutor,
@@ -45,10 +45,13 @@ import {
45
45
  addFieldUiPolicyForType,
46
46
  KeyRename,
47
47
  MutationScaffold
48
- } from "./index-xq97me1h.js";
48
+ } from "./index-02b8qvww.js";
49
49
  import {
50
50
  ModuleScript
51
- } from "./index-htxck0pn.js";
51
+ } from "./index-jgj6ajnk.js";
52
+ import {
53
+ plainNameProblem
54
+ } from "./index-va90m8nd.js";
52
55
 
53
56
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
54
57
  import { capitalize, lowerlize } from "akanjs/common";
@@ -65,11 +68,9 @@ class PrimitiveScript extends script("primitive", [ModuleScript]) {
65
68
  }
66
69
  async createUi(workspace, input) {
67
70
  const sys = await this.resolveSys(workspace, input.app);
68
- if (!sys || !input.module)
69
- return PrimitiveScript.#refuse("create-ui", compactDiagnostics([
70
- !sys && PrimitiveScript.#targetMissing(),
71
- !input.module && PrimitiveScript.#inputMissing("module")
72
- ]));
71
+ const moduleProblem = PrimitiveScript.#moduleProblem(input.module);
72
+ if (!sys || !input.module || moduleProblem)
73
+ return PrimitiveScript.#refuse("create-ui", compactDiagnostics([!sys && PrimitiveScript.#targetMissing(), moduleProblem]));
73
74
  const mod = ModuleExecutor.from(sys, input.module);
74
75
  if (input.surface === "view")
75
76
  return await this.moduleScript.createView(mod);
@@ -91,7 +92,7 @@ class PrimitiveScript extends script("primitive", [ModuleScript]) {
91
92
  const normalizedType = input.type ? normalizeFieldType(input.type) : null;
92
93
  const diagnostics = compactDiagnostics([
93
94
  !sys && PrimitiveScript.#targetMissing(),
94
- !input.module && PrimitiveScript.#inputMissing("module"),
95
+ PrimitiveScript.#moduleProblem(input.module),
95
96
  !input.field && PrimitiveScript.#inputMissing("field"),
96
97
  !input.type && PrimitiveScript.#inputMissing("type"),
97
98
  enumValues?.length === 0 && PrimitiveScript.#inputMissing("values", "Enum values are required."),
@@ -466,6 +467,12 @@ class PrimitiveScript extends script("primitive", [ModuleScript]) {
466
467
  static #inputMissing(input, message = `${capitalize(input)} is required.`) {
467
468
  return { severity: "error", code: "primitive-input-missing", message, input };
468
469
  }
470
+ static #moduleProblem(module) {
471
+ if (!module)
472
+ return PrimitiveScript.#inputMissing("module");
473
+ const message = plainNameProblem("module", module);
474
+ return message ? { severity: "error", code: "primitive-input-invalid", message, input: "module" } : null;
475
+ }
469
476
  static #sourceMissing(kind, path) {
470
477
  return {
471
478
  severity: "error",
@@ -0,0 +1,25 @@
1
+ // @bun
2
+ // pkgs/@akanjs/devkit/workflow/plainName.ts
3
+ var sysNamePattern = /^[a-z0-9][a-zA-Z0-9_-]*$/;
4
+ var identifierPattern = /^_{0,2}[a-zA-Z][a-zA-Z0-9_-]*$/;
5
+ var packageNamePattern = /^(@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/;
6
+ var isWorkflowSysName = (value) => typeof value === "string" && sysNamePattern.test(value);
7
+ var isWorkflowModuleName = (value) => typeof value === "string" && identifierPattern.test(value);
8
+ var plainNameProblem = (kind, name) => {
9
+ const isSys = kind === "app" || kind === "lib";
10
+ if (isSys ? isWorkflowSysName(name) : isWorkflowModuleName(name))
11
+ return null;
12
+ return `${JSON.stringify(name)} is no ${kind} name; use letters, digits, - and _, starting with ${isSys ? "a lowercase letter or digit" : "a letter"}`;
13
+ };
14
+ var assertPlainName = (kind, name) => {
15
+ const problem = plainNameProblem(kind, name);
16
+ if (problem)
17
+ throw new Error(problem);
18
+ };
19
+ var assertPackageName = (name) => {
20
+ if (packageNamePattern.test(name))
21
+ return;
22
+ throw new Error(`${JSON.stringify(name)} is no package name; use name or @scope/name, each of lowercase letters, digits, -, . and _, starting with a letter or digit`);
23
+ };
24
+
25
+ export { sysNamePattern, identifierPattern, isWorkflowSysName, isWorkflowModuleName, plainNameProblem, assertPlainName, assertPackageName };
@@ -9,10 +9,10 @@ import {
9
9
  UpdatePackFolder,
10
10
  NativePublicEnv,
11
11
  NativeApp
12
- } from "./index-djc5nxpy.js";
12
+ } from "./index-g43360sn.js";
13
13
  import {
14
14
  ExitCodeError
15
- } from "./index-386canwe.js";
15
+ } from "./index-hkq0q73d.js";
16
16
  import {
17
17
  ConfigLock
18
18
  } from "./index-bqbf654f.js";
@@ -4,7 +4,7 @@ import {
4
4
  script,
5
5
  ExitCodeError,
6
6
  markCliErrorPrinted
7
- } from "./index-386canwe.js";
7
+ } from "./index-hkq0q73d.js";
8
8
  import {
9
9
  AGENT_BLOCK_START,
10
10
  AGENT_BLOCK_END,
@@ -25,7 +25,7 @@ import {
25
25
  } from "./index-j6eeh5d7.js";
26
26
  import {
27
27
  AkanContextAnalyzer
28
- } from "./index-0mqga3h9.js";
28
+ } from "./index-fqx74yxn.js";
29
29
  import {
30
30
  collectRecipeSources2,
31
31
  scanRecipes2
@@ -33,15 +33,15 @@ import {
33
33
  import {
34
34
  ApplicationRunner,
35
35
  VerifyScope
36
- } from "./index-kcpk2d20.js";
36
+ } from "./index-5qq6qky3.js";
37
37
  import {
38
38
  WorkspaceRunner
39
- } from "./index-466z5931.js";
39
+ } from "./index-jqsj5wjb.js";
40
40
  import {
41
41
  VerifyComments,
42
42
  VerifyPipeline,
43
43
  VerifyReport
44
- } from "./index-dk4g0x0d.js";
44
+ } from "./index-3wen6ddy.js";
45
45
 
46
46
  // pkgs/@akanjs/cli/agent/agent.script.ts
47
47
  import { Logger as Logger3 } from "akanjs/common";
@@ -4,7 +4,7 @@ import {
4
4
  CloudApi,
5
5
  CloudUpdates,
6
6
  PipelineSecrets
7
- } from "./index-e22zedc2.js";
7
+ } from "./index-vftjqv28.js";
8
8
  import {
9
9
  PkgExecutor
10
10
  } from "./index-wfmpxke3.js";
@@ -12,19 +12,19 @@ import {
12
12
  UpdatePackFolder,
13
13
  NativePublicEnv,
14
14
  NativeApp
15
- } from "./index-djc5nxpy.js";
15
+ } from "./index-g43360sn.js";
16
16
  import {
17
17
  script
18
- } from "./index-386canwe.js";
18
+ } from "./index-hkq0q73d.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-8nbx607g.js";
21
+ } from "./index-ah09graf.js";
22
22
  import {
23
23
  PackageScript
24
- } from "./index-65b6ms4c.js";
24
+ } from "./index-gsty3pkx.js";
25
25
  import {
26
26
  CloudRunner
27
- } from "./index-6h775rv3.js";
27
+ } from "./index-kjmrkc45.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
  runner,
4
4
  script
5
- } from "./index-386canwe.js";
5
+ } from "./index-hkq0q73d.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
package/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-386canwe.js";
7
+ } from "./index-hkq0q73d.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import"./index-wfmpxke3.js";
10
10
 
@@ -22,27 +22,27 @@ import path from "path";
22
22
 
23
23
  // pkgs/@akanjs/cli/commandModules.ts
24
24
  var commandModules = {
25
- workspace: async () => (await import("./workspace.command-fcfztvn5.js")).WorkspaceCommand,
26
- agent: async () => (await import("./agent.command-kf1g3nh4.js")).AgentCommand,
27
- code: async () => (await import("./code.command-j08txqcd.js")).CodeCommand,
28
- application: async () => (await import("./application.command-vb278qnq.js")).ApplicationCommand,
29
- library: async () => (await import("./library.command-8d03a0pq.js")).LibraryCommand,
30
- localRegistry: async () => (await import("./localRegistry.command-vyv5k6t0.js")).LocalRegistryCommand,
31
- package: async () => (await import("./package.command-qjh13rs9.js")).PackageCommand,
32
- module: async () => (await import("./module.command-vy3kg965.js")).ModuleCommand,
33
- page: async () => (await import("./page.command-t0nx1jat.js")).PageCommand,
34
- context: async () => (await import("./context.command-2fa6egp9.js")).ContextCommand,
35
- cloud: async () => (await import("./cloud.command-ca777ee2.js")).CloudCommand,
36
- subspace: async () => (await import("./subspace.command-q42n1844.js")).SubspaceCommand,
37
- guideline: async () => (await import("./guideline.command-w6yqpdec.js")).GuidelineCommand,
38
- scalar: async () => (await import("./scalar.command-hxe6try8.js")).ScalarCommand,
39
- primitive: async () => (await import("./primitive.command-8vm49279.js")).PrimitiveCommand,
40
- quality: async () => (await import("./quality.command-v76fev72.js")).QualityCommand,
41
- verify: async () => (await import("./verify.command-rx43bha1.js")).VerifyCommand,
42
- repair: async () => (await import("./repair.command-fp4m3w03.js")).RepairCommand,
43
- workflow: async () => (await import("./workflow.command-yg0d8mmq.js")).WorkflowCommand,
44
- pipeline: async () => (await import("./pipeline.command-2yjeas7m.js")).PipelineCommand,
45
- tunnel: async () => (await import("./tunnel.command-22g11n0x.js")).TunnelCommand
25
+ workspace: async () => (await import("./workspace.command-04qgwsst.js")).WorkspaceCommand,
26
+ agent: async () => (await import("./agent.command-y22t9x1e.js")).AgentCommand,
27
+ code: async () => (await import("./code.command-y94hwxsn.js")).CodeCommand,
28
+ application: async () => (await import("./application.command-yhj5arwc.js")).ApplicationCommand,
29
+ library: async () => (await import("./library.command-6eafevmj.js")).LibraryCommand,
30
+ localRegistry: async () => (await import("./localRegistry.command-9tef2qsj.js")).LocalRegistryCommand,
31
+ package: async () => (await import("./package.command-kbg9z7re.js")).PackageCommand,
32
+ module: async () => (await import("./module.command-pn1k7dfk.js")).ModuleCommand,
33
+ page: async () => (await import("./page.command-st0y2xg8.js")).PageCommand,
34
+ context: async () => (await import("./context.command-xz65fhrn.js")).ContextCommand,
35
+ cloud: async () => (await import("./cloud.command-bqfh4cnx.js")).CloudCommand,
36
+ subspace: async () => (await import("./subspace.command-vh6dye0v.js")).SubspaceCommand,
37
+ guideline: async () => (await import("./guideline.command-sn843nw6.js")).GuidelineCommand,
38
+ scalar: async () => (await import("./scalar.command-ck8621dy.js")).ScalarCommand,
39
+ primitive: async () => (await import("./primitive.command-ax6wg70s.js")).PrimitiveCommand,
40
+ quality: async () => (await import("./quality.command-0gzskga8.js")).QualityCommand,
41
+ verify: async () => (await import("./verify.command-f2n4bwp7.js")).VerifyCommand,
42
+ repair: async () => (await import("./repair.command-g5kc3x89.js")).RepairCommand,
43
+ workflow: async () => (await import("./workflow.command-bx9xwgs5.js")).WorkflowCommand,
44
+ pipeline: async () => (await import("./pipeline.command-76m32y7z.js")).PipelineCommand,
45
+ tunnel: async () => (await import("./tunnel.command-4mezrypt.js")).TunnelCommand
46
46
  };
47
47
  var commandModuleIds = Object.keys(commandModules);
48
48
 
@@ -3,12 +3,12 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-386canwe.js";
6
+ } from "./index-hkq0q73d.js";
7
7
  import"./index-bns3wcpc.js";
8
8
  import"./index-wfmpxke3.js";
9
9
  import {
10
10
  LibraryScript
11
- } from "./index-xa0289eg.js";
11
+ } from "./index-jrdp7c4h.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.command.ts
14
14
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,7 +4,7 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-386canwe.js";
7
+ } from "./index-hkq0q73d.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import {
10
10
  parseEnvFile,
@@ -16,28 +16,28 @@ import {
16
16
  getNpmRegistryUrl
17
17
  } from "./index-ny2k80mv.js";
18
18
  import"./index-y725zb1a.js";
19
- import"./index-djc5nxpy.js";
20
- import"./index-20wvskt8.js";
19
+ import"./index-g43360sn.js";
20
+ import"./index-5hhe0rdd.js";
21
21
  import"./index-m9jj544v.js";
22
- import"./index-84c2pgak.js";
23
- import"./index-wr9magsr.js";
24
- import"./index-xa0289eg.js";
25
- import"./index-kcpk2d20.js";
26
- import"./index-23860fej.js";
22
+ import"./index-3rff2c48.js";
23
+ import"./index-jxaq2evq.js";
24
+ import"./index-jrdp7c4h.js";
25
+ import"./index-5qq6qky3.js";
26
+ import"./index-b4qq3rq0.js";
27
27
  import {
28
28
  ApplicationScript
29
- } from "./index-8nbx607g.js";
30
- import"./index-e22zedc2.js";
29
+ } from "./index-ah09graf.js";
30
+ import"./index-vftjqv28.js";
31
31
  import {
32
32
  CloudRunner
33
- } from "./index-6h775rv3.js";
33
+ } from "./index-kjmrkc45.js";
34
34
  import"./index-qd7xn2bk.js";
35
- import"./index-m5sg5spm.js";
36
- import"./index-1cb9apzn.js";
35
+ import"./index-9p260r4e.js";
36
+ import"./index-cmg5ngqa.js";
37
37
  import"./index-ygrdw6jw.js";
38
38
  import {
39
39
  PackageScript
40
- } from "./index-65b6ms4c.js";
40
+ } from "./index-gsty3pkx.js";
41
41
  import"./index-8jpc5fqv.js";
42
42
  import"./index-9bv479q5.js";
43
43
 
@@ -2,18 +2,19 @@
2
2
  import {
3
3
  Sys,
4
4
  Module,
5
+ ModuleOrService,
5
6
  command
6
- } from "./index-386canwe.js";
7
+ } from "./index-hkq0q73d.js";
7
8
  import"./index-bns3wcpc.js";
8
9
  import"./index-wfmpxke3.js";
9
10
  import {
10
11
  renderPrimitiveReport
11
- } from "./index-xq97me1h.js";
12
- import"./index-m5sg5spm.js";
13
- import"./index-7kmbqp0b.js";
12
+ } from "./index-02b8qvww.js";
13
+ import"./index-9p260r4e.js";
14
+ import"./index-z9b72teg.js";
14
15
  import {
15
16
  ModuleScript
16
- } from "./index-htxck0pn.js";
17
+ } from "./index-jgj6ajnk.js";
17
18
 
18
19
  // pkgs/@akanjs/cli/module/module.command.ts
19
20
  import { Logger, lowerlize } from "akanjs/common";
@@ -23,7 +24,10 @@ class ModuleCommand extends command("module", [ModuleScript], ({ public: target
23
24
  const report = await this.moduleScript.createModuleTemplate(sys, name, { page });
24
25
  Logger.rawLog(renderPrimitiveReport(report, format));
25
26
  }),
26
- removeModule: target({ desc: "Remove a module from an app or library", destructive: true }).with(Module).exec(async function(module) {
27
+ removeModule: target({
28
+ desc: "Remove a module, or a service module as <sys>:_<name>, from an app or library",
29
+ destructive: true
30
+ }).with(ModuleOrService).exec(async function(module) {
27
31
  await this.moduleScript.removeModule(module);
28
32
  }),
29
33
  createService: target({ desc: "Create a service module without database files" }).arg("serviceName", String, { desc: "name of service module" }).with(Sys).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(serviceName, sys, format) {
@@ -3,16 +3,16 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-386canwe.js";
6
+ } from "./index-hkq0q73d.js";
7
7
  import"./index-bns3wcpc.js";
8
8
  import"./index-wfmpxke3.js";
9
9
  import"./index-qd7xn2bk.js";
10
- import"./index-m5sg5spm.js";
11
- import"./index-1cb9apzn.js";
10
+ import"./index-9p260r4e.js";
11
+ import"./index-cmg5ngqa.js";
12
12
  import"./index-ygrdw6jw.js";
13
13
  import {
14
14
  PackageScript
15
- } from "./index-65b6ms4c.js";
15
+ } from "./index-gsty3pkx.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/package/package.command.ts
18
18
  class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.2.0-rc.2",
3
+ "version": "3.2.0-rc.4",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.2.0-rc.2",
42
+ "akanjs": "3.2.0-rc.4",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",
@@ -3,12 +3,12 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-386canwe.js";
6
+ } from "./index-hkq0q73d.js";
7
7
  import"./index-bns3wcpc.js";
8
8
  import"./index-wfmpxke3.js";
9
9
  import {
10
10
  PageScript
11
- } from "./index-7kmbqp0b.js";
11
+ } from "./index-z9b72teg.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/page/page.command.ts
14
14
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,7 +4,7 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-386canwe.js";
7
+ } from "./index-hkq0q73d.js";
8
8
  import {
9
9
  FileSys2
10
10
  } from "./index-bns3wcpc.js";
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-386canwe.js";
5
+ } from "./index-hkq0q73d.js";
6
6
  import"./index-bns3wcpc.js";
7
7
  import"./index-wfmpxke3.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-xq97me1h.js";
11
- import"./index-m5sg5spm.js";
12
- import"./index-7kmbqp0b.js";
13
- import"./index-htxck0pn.js";
10
+ } from "./index-02b8qvww.js";
11
+ import"./index-9p260r4e.js";
12
+ import"./index-z9b72teg.js";
13
+ import"./index-jgj6ajnk.js";
14
14
  import {
15
15
  PrimitiveScript
16
- } from "./index-qgazn58x.js";
16
+ } from "./index-sjj3ywn5.js";
17
17
 
18
18
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
19
19
  import { Logger } from "akanjs/common";
@@ -3,7 +3,7 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-386canwe.js";
6
+ } from "./index-hkq0q73d.js";
7
7
  import"./index-bns3wcpc.js";
8
8
  import {
9
9
  AppExecutor,
@@ -18,8 +18,8 @@ import {
18
18
  AkanQualityScanner,
19
19
  formatQualityScanResult,
20
20
  formatSsrScanResult
21
- } from "./index-466z5931.js";
22
- import"./index-m5sg5spm.js";
21
+ } from "./index-jqsj5wjb.js";
22
+ import"./index-9p260r4e.js";
23
23
  import"./index-62md4dwy.js";
24
24
  import"./index-ygdbn9jn.js";
25
25
  import"./index-hj6w4ka1.js";
@@ -3,16 +3,16 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-386canwe.js";
6
+ } from "./index-hkq0q73d.js";
7
7
  import"./index-bns3wcpc.js";
8
8
  import"./index-wfmpxke3.js";
9
- import"./index-0mqga3h9.js";
9
+ import"./index-fqx74yxn.js";
10
10
  import"./index-hj6w4ka1.js";
11
- import"./index-xq97me1h.js";
12
- import"./index-m5sg5spm.js";
11
+ import"./index-02b8qvww.js";
12
+ import"./index-9p260r4e.js";
13
13
  import {
14
14
  RepairRunner
15
- } from "./index-cbcwxp5v.js";
15
+ } from "./index-4mgabs8t.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/repair/repair.script.ts
18
18
  import { Logger } from "akanjs/common";
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  Sys,
4
4
  command
5
- } from "./index-386canwe.js";
5
+ } from "./index-hkq0q73d.js";
6
6
  import"./index-bns3wcpc.js";
7
7
  import"./index-wfmpxke3.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-xq97me1h.js";
11
- import"./index-m5sg5spm.js";
10
+ } from "./index-02b8qvww.js";
11
+ import"./index-9p260r4e.js";
12
12
  import {
13
13
  ScalarScript
14
- } from "./index-pq5rjkch.js";
14
+ } from "./index-kgxhwgdk.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
17
17
  import { Logger, lowerlize } from "akanjs/common";
@@ -15,8 +15,12 @@ the server errors logged meanwhile, console errors and warnings, and layout smel
15
15
  stops it after; `--keep` leaves it up for the next preview. It never starts a second server beside a
16
16
  running one.
17
17
  - Paths are comma-separated (`akan preview <app> /board,/board/new`) and get the default locale when they lack
18
- one, unless the app sets `localePrefix: "as-needed"` and `--csr` is off. A `/_akan` route such as Studio
19
- (`/_akan/studio?view=runtime`), a signal route or a file opens as written.
18
+ one, unless the app sets `localePrefix: "as-needed"` and `--csr` is off. What the server answers outside a
19
+ locale opens as written: a `/_akan` route such as Studio (`/_akan/studio?view=runtime`), a route under the
20
+ API prefix, `/__csr`, `/__rsc`, `/.well-known`, `/openapi.json`, the default `/mcp`, `/favicon.ico`,
21
+ `/robots.txt`, `/sitemap.xml`, `manifest.webmanifest` and a file in the app's `public/`. A full URL
22
+ (`http://localhost:<port>/oauth/token`) opens exactly as written: use it for an endpoint mounted outside the
23
+ API prefix or a custom MCP path. A page `--changed` finds always gets the locale.
20
24
  `--changed` adds the pages your uncommitted page and layout edits reach. A dynamic route needs a concrete
21
25
  path (`/memo/1`); `akan context --app <app>` lists every route with its params and search names.
22
26
  - The viewport is a 390x844 phone; `--desktop` is 1280x800. `--csr` loads each page in the CSR boot the native
@@ -27,6 +27,8 @@ description: "Guard and tune endpoints on the wire: writing a Can<Verb><Model> g
27
27
  - `{ rateLimit: { calls, windowMs?, by? } }` per endpoint, `option.setRateLimit` per app, `plug(RateLimit)` for a
28
28
  business key.
29
29
  - A mutation repeated under one `Idempotency-Key` header runs once and replays its first answer.
30
+ - A browser send that changes nothing read back (typing status, a cursor move) passes `{ keepsReads: true }`, so it
31
+ neither ends in-flight query sharing nor drops prefetched pages.
30
32
  - `{ method: "PATCH" | "PUT" | "DELETE" }` moves a mutation off `POST` — only when a foreign protocol forces it.
31
33
  - `errors: { 409: ["ticket.error.locked"] }` names the errors an endpoint throws on purpose.
32
34
 
@@ -5,7 +5,7 @@ import {
5
5
  runner,
6
6
  script,
7
7
  command
8
- } from "./index-386canwe.js";
8
+ } from "./index-hkq0q73d.js";
9
9
  import {
10
10
  FileSys2
11
11
  } from "./index-bns3wcpc.js";
@@ -17,11 +17,11 @@ import {
17
17
  } from "./index-wfmpxke3.js";
18
18
  import {
19
19
  GlobalConfig
20
- } from "./index-e22zedc2.js";
20
+ } from "./index-vftjqv28.js";
21
21
  import"./index-m9jj544v.js";
22
- import"./index-djc5nxpy.js";
23
- import"./index-84c2pgak.js";
24
- import"./index-wr9magsr.js";
22
+ import"./index-g43360sn.js";
23
+ import"./index-3rff2c48.js";
24
+ import"./index-jxaq2evq.js";
25
25
  import {
26
26
  SubspaceConfig
27
27
  } from "./index-h7hehkw6.js";
@@ -818,7 +818,7 @@ class SubspaceRunner extends runner("subspace") {
818
818
  if (!asked)
819
819
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
820
820
  const { libs } = await subspace.slice();
821
- const { CloudScript } = await import("./cloud.script-agpxzq6j.js");
821
+ const { CloudScript } = await import("./cloud.script-8jvfw1sh.js");
822
822
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
823
823
  host,
824
824
  workspaceId,