@akanjs/cli 3.1.2-rc.3 → 3.1.2-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 (86) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-n2tkg59z.js → CodeAgent-z34p8m91.js} +2 -2
  3. package/{CodeTui-9wsdx7ap.js → CodeTui-nvd9fk3g.js} +1 -1
  4. package/TunnelShare-jwbb50kz.js +14 -0
  5. package/{agent.command-tffz6wdn.js → agent.command-962mp3kg.js} +15 -15
  6. package/akanCode.js +2 -2
  7. package/{application.command-7bkxbrsp.js → application.command-1nr0bqq1.js} +24 -15
  8. package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-xy7hnfzq.js} +7 -6
  9. package/buildBatch.proc.js +6 -6
  10. package/{cloud.command-a792bc10.js → cloud.command-cj7b3m6y.js} +15 -15
  11. package/cloud.script-8kr7qgfa.js +27 -0
  12. package/{code.command-ma8dtzww.js → code.command-asq7xrr6.js} +6 -6
  13. package/{context.command-80a1qhps.js → context.command-fw4g2pw1.js} +18 -18
  14. package/context.runner-p6m5cxk3.js +28 -0
  15. package/{guideline.command-195g0h9a.js → guideline.command-43gfjsjv.js} +2 -2
  16. package/guidelines/conventions/rules/page.md +4 -2
  17. package/guidelines/conventions/rules/server.md +2 -0
  18. package/guidelines/conventions/rules/style.md +3 -1
  19. package/guidelines/conventions/rules/ts.md +2 -1
  20. package/guidelines/cssRule/cssRule.instruction.md +3 -1
  21. package/guidelines/pageRule/pageRule.instruction.md +3 -0
  22. package/incrementalBuilder.proc.js +39 -13
  23. package/{index-tns543wd.js → index-0tkj05cz.js} +3 -3
  24. package/{index-sx91nf4z.js → index-2yan1ajk.js} +7 -7
  25. package/{index-g500c5j9.js → index-38by07nw.js} +1 -1
  26. package/{index-zttm13c3.js → index-38patcx6.js} +4 -4
  27. package/{index-jb2sreps.js → index-53h0053j.js} +16 -14
  28. package/{index-zbrwnmf1.js → index-6t7fkx73.js} +1 -1
  29. package/{index-361ex3rb.js → index-6zgt7zmx.js} +4 -4
  30. package/{index-y4kcmbt2.js → index-8d9r465x.js} +2 -2
  31. package/{index-wrmq92vk.js → index-90q0w90q.js} +1 -1
  32. package/{index-scck6h6d.js → index-ampz4vgv.js} +4 -4
  33. package/{index-sjabnf7j.js → index-ap6ac70m.js} +3 -3
  34. package/{index-j9d3mjx1.js → index-ck64kxrn.js} +2 -2
  35. package/{index-p6x5b7hr.js → index-d894868w.js} +3 -0
  36. package/{index-sveq36gh.js → index-dcm66hss.js} +2 -2
  37. package/{index-84h43kg6.js → index-demt944k.js} +2 -2
  38. package/{index-0j1t1h2b.js → index-g0yds382.js} +1 -1
  39. package/{index-hapx5myy.js → index-gfh90r3t.js} +2 -2
  40. package/{index-gbp1q1b5.js → index-hmj94es2.js} +4 -4
  41. package/{index-z7kbxdqg.js → index-jzpeny42.js} +3 -3
  42. package/{index-eft5c2mp.js → index-jzz6ye8x.js} +296 -24
  43. package/{index-ppvqy5bc.js → index-kc6ffq0s.js} +8 -8
  44. package/{index-tp56652m.js → index-kc871vpc.js} +3 -3
  45. package/{index-m02tdq8a.js → index-kdswbvys.js} +3 -3
  46. package/{index-defp4gmb.js → index-qev8p5wp.js} +1 -1
  47. package/{index-1h2jc0x3.js → index-qwe079ww.js} +4 -4
  48. package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
  49. package/{index-9zy8479y.js → index-r0q2ka2b.js} +1 -1
  50. package/{index-db2nqrad.js → index-r8t5sq7z.js} +13 -8
  51. package/{index-j2dgmzbj.js → index-re2kfscb.js} +122 -18
  52. package/{index-gr9thy79.js → index-sra1a5f8.js} +2 -2
  53. package/{index-khk05tsf.js → index-t0hk1kxq.js} +1 -1
  54. package/index-vkpqe29t.js +267 -0
  55. package/{index-sp0qsr7a.js → index-w60zxxye.js} +3 -3
  56. package/{index-9z3egsmg.js → index-wymcdsas.js} +8 -8
  57. package/{index-zdpte1pj.js → index-y0y0pnx8.js} +1 -1
  58. package/{index-aayg4dqf.js → index-z47rw9ez.js} +6 -6
  59. package/index.js +23 -23
  60. package/{library.command-63hgt9te.js → library.command-zh29tjdd.js} +3 -3
  61. package/{localRegistry.command-343ksmn9.js → localRegistry.command-k9pn9ahj.js} +14 -14
  62. package/{module.command-2hce9m6k.js → module.command-dgpqs9fz.js} +6 -6
  63. package/{package.command-96eheyvd.js → package.command-1je4hsca.js} +3 -3
  64. package/package.json +2 -2
  65. package/{page.command-gs6d841d.js → page.command-cgsasanh.js} +3 -3
  66. package/{pipeline.command-wdfvdbfj.js → pipeline.command-tb46sa8v.js} +2 -2
  67. package/{primitive.command-7tdj12wn.js → primitive.command-bzsy23x5.js} +7 -7
  68. package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-h8rgaczy.js} +1 -1
  69. package/{quality.command-29bgarh1.js → quality.command-120m9h6v.js} +4 -4
  70. package/{repair.command-yng4rf5d.js → repair.command-6m4wd0qv.js} +6 -6
  71. package/{scalar.command-1nk4329t.js → scalar.command-3dn5hsc6.js} +5 -5
  72. package/skills/akan-page/SKILL.md +19 -0
  73. package/skills/akan-service/SKILL.md +47 -0
  74. package/{subspace.command-5cehmcdd.js → subspace.command-s8nyfqbn.js} +8 -8
  75. package/{tunnel.command-yrd4atqy.js → tunnel.command-8mwrqkr3.js} +7 -7
  76. package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
  77. package/typecheck.proc.js +1 -1
  78. package/{verify.command-kbq0fcg8.js → verify.command-2pspfy7k.js} +12 -12
  79. package/{workflow.command-274qfa8z.js → workflow.command-7sy5vnsj.js} +11 -11
  80. package/{workspace.command-r6hgmawy.js → workspace.command-x518tdv4.js} +30 -30
  81. package/TunnelShare-6d7z36sr.js +0 -14
  82. package/cloud.script-t2n13gv6.js +0 -27
  83. package/context.runner-wxqb3qcy.js +0 -28
  84. package/index-vzpnr12w.js +0 -65
  85. package/templates/workspaceRoot/patches/zod@3.25.76.patch.template +0 -22
  86. package/templates/workspaceRoot/patches/zod@4.4.3.patch.template +0 -11
package/.build-stamp CHANGED
@@ -1 +1 @@
1
- d8513e49255bf8543d57da33449af8ef9a0f8a5ffdca3bc7312299043ea77e58
1
+ 1a38eb8d8398f32d4195d35dd0a21da5d96c9106b41ac32dc008da90c1837f19
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgent2
4
- } from "./index-z7kbxdqg.js";
5
- import"./index-wrmq92vk.js";
4
+ } from "./index-jzpeny42.js";
5
+ import"./index-90q0w90q.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-wrmq92vk.js";
7
+ } from "./index-90q0w90q.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import"./index-35j83zkd.js";
10
10
  import {
@@ -0,0 +1,14 @@
1
+ // @bun
2
+ import {
3
+ TunnelShare2
4
+ } from "./index-y0y0pnx8.js";
5
+ import"./index-sra1a5f8.js";
6
+ import"./index-w60zxxye.js";
7
+ import"./index-m9jj544v.js";
8
+ import"./index-dcm66hss.js";
9
+ import"./index-6t7fkx73.js";
10
+ import"./index-38by07nw.js";
11
+ import"./index-bns3wcpc.js";
12
+ export {
13
+ TunnelShare2 as TunnelShare
14
+ };
@@ -2,31 +2,31 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-9zy8479y.js";
5
+ } from "./index-r0q2ka2b.js";
6
6
  import"./index-bns3wcpc.js";
7
- import"./index-g500c5j9.js";
7
+ import"./index-38by07nw.js";
8
8
  import"./index-35j83zkd.js";
9
9
  import"./index-j6eeh5d7.js";
10
10
  import"./index-hj6w4ka1.js";
11
- import"./index-m02tdq8a.js";
12
- import"./index-j2dgmzbj.js";
13
- import"./index-j9d3mjx1.js";
14
- import"./index-ppvqy5bc.js";
15
- import"./index-p6x5b7hr.js";
16
- import"./index-sp0qsr7a.js";
17
- import"./index-0j1t1h2b.js";
11
+ import"./index-kdswbvys.js";
12
+ import"./index-re2kfscb.js";
13
+ import"./index-ck64kxrn.js";
14
+ import"./index-kc6ffq0s.js";
15
+ import"./index-d894868w.js";
16
+ import"./index-w60zxxye.js";
17
+ import"./index-g0yds382.js";
18
18
  import"./index-m9jj544v.js";
19
- import"./index-zbrwnmf1.js";
20
- import"./index-sveq36gh.js";
21
- import"./index-sjabnf7j.js";
19
+ import"./index-6t7fkx73.js";
20
+ import"./index-dcm66hss.js";
21
+ import"./index-ap6ac70m.js";
22
22
  import"./index-62md4dwy.js";
23
23
  import"./index-4am4dvmf.js";
24
24
  import"./index-k64mhwbw.js";
25
+ import"./index-jzz6ye8x.js";
25
26
  import {
26
27
  AgentScript
27
- } from "./index-aayg4dqf.js";
28
- import"./index-eft5c2mp.js";
29
- import"./index-defp4gmb.js";
28
+ } from "./index-z47rw9ez.js";
29
+ import"./index-qev8p5wp.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/agent/agent.command.ts
32
32
  class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
package/akanCode.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  CodeMailbox2,
31
31
  CodeSessionFork2,
32
32
  CodeAgent2
33
- } from "./index-z7kbxdqg.js";
33
+ } from "./index-jzpeny42.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-wrmq92vk.js";
44
+ } from "./index-90q0w90q.js";
45
45
  import {
46
46
  PreviewChrome2,
47
47
  PreviewView2
@@ -7,20 +7,20 @@ import {
7
7
  Exec,
8
8
  Workspace,
9
9
  command
10
- } from "./index-9zy8479y.js";
10
+ } from "./index-r0q2ka2b.js";
11
11
  import"./index-bns3wcpc.js";
12
- import"./index-g500c5j9.js";
13
- import"./index-p6x5b7hr.js";
14
- import"./index-sp0qsr7a.js";
15
- import"./index-0j1t1h2b.js";
12
+ import"./index-38by07nw.js";
13
+ import"./index-d894868w.js";
14
+ import"./index-w60zxxye.js";
15
+ import"./index-g0yds382.js";
16
16
  import"./index-m9jj544v.js";
17
- import"./index-zbrwnmf1.js";
18
- import"./index-sveq36gh.js";
19
- import"./index-y4kcmbt2.js";
20
- import"./index-ppvqy5bc.js";
17
+ import"./index-6t7fkx73.js";
18
+ import"./index-dcm66hss.js";
19
+ import"./index-8d9r465x.js";
20
+ import"./index-kc6ffq0s.js";
21
21
  import {
22
22
  ApplicationScript
23
- } from "./index-db2nqrad.js";
23
+ } from "./index-r8t5sq7z.js";
24
24
  import"./index-tenw3mah.js";
25
25
  import {
26
26
  writeOption,
@@ -29,7 +29,7 @@ import {
29
29
  allowLocalOption,
30
30
  publicEnvOption
31
31
  } from "./index-mdjc93e1.js";
32
- import"./index-defp4gmb.js";
32
+ import"./index-qev8p5wp.js";
33
33
  import"./index-9bv479q5.js";
34
34
 
35
35
  // pkgs/@akanjs/cli/application/application.command.ts
@@ -122,15 +122,24 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
122
122
  });
123
123
  }),
124
124
  studio: target({
125
- desc: "Print the Akan Studio URL of the app's running dev server: its ERD and each module's signals"
126
- }).with(App).option("module", String, { desc: "the module to show", nullable: true }).option("view", String, { flag: "w", desc: "the view to open", default: "erd", enum: ["erd", "signals"] }).option("editor", String, {
125
+ desc: "Print the Akan Studio URL of the app's running dev server: its ERD, each module's signals and the Change Map"
126
+ }).with(App).option("module", String, { desc: "the module to show", nullable: true }).option("view", String, {
127
+ flag: "w",
128
+ desc: "the view to open",
129
+ default: "erd",
130
+ enum: ["erd", "signals", "changes"]
131
+ }).option("since", String, {
132
+ desc: "the git revision the Change Map compares with (default: where HEAD forked from the default branch)",
133
+ nullable: true
134
+ }).option("editor", String, {
127
135
  desc: "the editor source links open in",
128
136
  default: "vscode",
129
137
  enum: ["vscode", "cursor"]
130
- }).option("open", Boolean, { desc: "also open it in the browser", default: false }).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(app, module, view, editor, open, format) {
138
+ }).option("open", Boolean, { desc: "also open it in the browser", default: false }).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(app, module, view, since, editor, open, format) {
131
139
  await this.applicationScript.studio(app, {
132
140
  module,
133
- view: view === "signals" ? "signals" : "erd",
141
+ view: view === "signals" || view === "changes" ? view : "erd",
142
+ since,
134
143
  editor: editor === "cursor" ? "cursor" : "vscode",
135
144
  open,
136
145
  format: format === "json" ? "json" : "text"
@@ -4,19 +4,19 @@ import {
4
4
  Spinner,
5
5
  ProjectTypecheck2,
6
6
  WorkspaceExecutor
7
- } from "./index-g500c5j9.js";
7
+ } from "./index-38by07nw.js";
8
8
  import"./index-bns3wcpc.js";
9
- import"./index-tp56652m.js";
10
- import"./index-zbrwnmf1.js";
9
+ import"./index-kc871vpc.js";
10
+ import"./index-6t7fkx73.js";
11
11
  import {
12
12
  AllRoutesBuilder,
13
13
  FontPruner,
14
14
  precompressArtifacts,
15
15
  SsrBaseArtifactBuilder
16
- } from "./index-zttm13c3.js";
16
+ } from "./index-38patcx6.js";
17
17
  import {
18
18
  CsrArtifactBuilder
19
- } from "./index-sveq36gh.js";
19
+ } from "./index-dcm66hss.js";
20
20
  import"./index-62md4dwy.js";
21
21
 
22
22
  // pkgs/@akanjs/devkit/applicationBuildRunner.ts
@@ -195,7 +195,8 @@ class ApplicationBuildRunner {
195
195
  phases: this.#phases,
196
196
  durationMs: Date.now() - this.#startedAt,
197
197
  outputDir: this.#app.dist.cwdPath,
198
- artifactDir: path3.join(this.#app.dist.cwdPath, ".akan/artifact")
198
+ artifactDir: path3.join(this.#app.dist.cwdPath, ".akan/artifact"),
199
+ environment
199
200
  };
200
201
  }
201
202
  async typecheck(options = {}) {
@@ -1,31 +1,31 @@
1
1
  // @bun
2
2
  import {
3
3
  ApplicationBuildReporter
4
- } from "./index-p6x5b7hr.js";
4
+ } from "./index-d894868w.js";
5
5
  import {
6
6
  resolveSsrPageEntriesForApp,
7
7
  WorkspaceExecutor,
8
8
  AppExecutor
9
- } from "./index-g500c5j9.js";
9
+ } from "./index-38by07nw.js";
10
10
  import {
11
11
  computeRouteSeedIndex,
12
12
  saveRouteSeedIndex,
13
13
  CsrDevBundler,
14
14
  SsrDevBundler
15
- } from "./index-tp56652m.js";
15
+ } from "./index-kc871vpc.js";
16
16
  import"./index-bns3wcpc.js";
17
17
  import {
18
18
  ServerGraphFile,
19
19
  PagesBundleBuilder
20
- } from "./index-zbrwnmf1.js";
20
+ } from "./index-6t7fkx73.js";
21
21
  import {
22
22
  CssCompiler,
23
23
  FontOptimizer,
24
24
  SsrBaseArtifactBuilder
25
- } from "./index-zttm13c3.js";
25
+ } from "./index-38patcx6.js";
26
26
  import {
27
27
  CsrArtifactBuilder
28
- } from "./index-sveq36gh.js";
28
+ } from "./index-dcm66hss.js";
29
29
  import"./index-62md4dwy.js";
30
30
 
31
31
  // pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
@@ -3,32 +3,32 @@ import {
3
3
  App,
4
4
  Workspace,
5
5
  command
6
- } from "./index-9zy8479y.js";
6
+ } from "./index-r0q2ka2b.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-g500c5j9.js";
9
- import"./index-gr9thy79.js";
8
+ import"./index-38by07nw.js";
9
+ import"./index-sra1a5f8.js";
10
10
  import {
11
11
  PlatformTestRun
12
- } from "./index-1h2jc0x3.js";
13
- import"./index-sp0qsr7a.js";
14
- import"./index-0j1t1h2b.js";
12
+ } from "./index-qwe079ww.js";
13
+ import"./index-w60zxxye.js";
14
+ import"./index-g0yds382.js";
15
15
  import"./index-m9jj544v.js";
16
- import"./index-zbrwnmf1.js";
17
- import"./index-sveq36gh.js";
16
+ import"./index-6t7fkx73.js";
17
+ import"./index-dcm66hss.js";
18
18
  import {
19
19
  npmRegistryFromEnv,
20
20
  warnIgnoredNpmRegistry
21
21
  } from "./index-4am4dvmf.js";
22
- import"./index-p6x5b7hr.js";
23
- import"./index-y4kcmbt2.js";
24
- import"./index-ppvqy5bc.js";
25
- import"./index-db2nqrad.js";
22
+ import"./index-d894868w.js";
23
+ import"./index-8d9r465x.js";
24
+ import"./index-kc6ffq0s.js";
25
+ import"./index-r8t5sq7z.js";
26
26
  import"./index-tenw3mah.js";
27
27
  import"./index-qd7xn2bk.js";
28
- import"./index-84h43kg6.js";
28
+ import"./index-demt944k.js";
29
29
  import {
30
30
  CloudScript2
31
- } from "./index-sx91nf4z.js";
31
+ } from "./index-2yan1ajk.js";
32
32
  import {
33
33
  writeOption,
34
34
  oneNativeTargetOption,
@@ -39,7 +39,7 @@ import {
39
39
  hostOption,
40
40
  subspaceOption
41
41
  } from "./index-mdjc93e1.js";
42
- import"./index-defp4gmb.js";
42
+ import"./index-qev8p5wp.js";
43
43
  import"./index-9bv479q5.js";
44
44
 
45
45
  // pkgs/@akanjs/cli/cloud/cloud.command.ts
@@ -0,0 +1,27 @@
1
+ // @bun
2
+ import {
3
+ CloudScript2
4
+ } from "./index-2yan1ajk.js";
5
+ import"./index-qwe079ww.js";
6
+ import"./index-r8t5sq7z.js";
7
+ import"./index-8d9r465x.js";
8
+ import"./index-demt944k.js";
9
+ import"./index-sra1a5f8.js";
10
+ import"./index-4am4dvmf.js";
11
+ import"./index-kc6ffq0s.js";
12
+ import"./index-qev8p5wp.js";
13
+ import"./index-g0yds382.js";
14
+ import"./index-w60zxxye.js";
15
+ import"./index-m9jj544v.js";
16
+ import"./index-r0q2ka2b.js";
17
+ import"./index-9bv479q5.js";
18
+ import"./index-tenw3mah.js";
19
+ import"./index-dcm66hss.js";
20
+ import"./index-d894868w.js";
21
+ import"./index-6t7fkx73.js";
22
+ import"./index-38by07nw.js";
23
+ import"./index-qd7xn2bk.js";
24
+ import"./index-bns3wcpc.js";
25
+ export {
26
+ CloudScript2 as CloudScript
27
+ };
@@ -4,9 +4,9 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-9zy8479y.js";
7
+ } from "./index-r0q2ka2b.js";
8
8
  import"./index-bns3wcpc.js";
9
- import"./index-g500c5j9.js";
9
+ import"./index-38by07nw.js";
10
10
  import {
11
11
  AkanCodeEnv,
12
12
  akanCodePaths2
@@ -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-n2tkg59z.js"),
80
+ import("./CodeAgent-z34p8m91.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-n2tkg59z.js"),
115
- import("./CodeTui-9wsdx7ap.js")
114
+ import("./CodeAgent-z34p8m91.js"),
115
+ import("./CodeTui-nvd9fk3g.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-n2tkg59z.js");
151
+ const { CodeAgent } = await import("./CodeAgent-z34p8m91.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)
@@ -2,31 +2,31 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-9zy8479y.js";
5
+ } from "./index-r0q2ka2b.js";
6
6
  import"./index-bns3wcpc.js";
7
- import"./index-g500c5j9.js";
7
+ import"./index-38by07nw.js";
8
8
  import"./index-hj6w4ka1.js";
9
- import"./index-m02tdq8a.js";
10
- import"./index-j2dgmzbj.js";
11
- import"./index-j9d3mjx1.js";
12
- import"./index-jb2sreps.js";
13
- import"./index-sp0qsr7a.js";
14
- import"./index-0j1t1h2b.js";
9
+ import"./index-kdswbvys.js";
10
+ import"./index-re2kfscb.js";
11
+ import"./index-ck64kxrn.js";
12
+ import"./index-53h0053j.js";
13
+ import"./index-w60zxxye.js";
14
+ import"./index-g0yds382.js";
15
15
  import"./index-m9jj544v.js";
16
- import"./index-zbrwnmf1.js";
17
- import"./index-sveq36gh.js";
16
+ import"./index-6t7fkx73.js";
17
+ import"./index-dcm66hss.js";
18
18
  import"./index-j6eeh5d7.js";
19
- import"./index-vzpnr12w.js";
20
- import"./index-tns543wd.js";
21
- import"./index-khk05tsf.js";
22
- import"./index-gbp1q1b5.js";
23
- import"./index-361ex3rb.js";
24
- import"./index-hapx5myy.js";
19
+ import"./index-vkpqe29t.js";
20
+ import"./index-0tkj05cz.js";
21
+ import"./index-t0hk1kxq.js";
22
+ import"./index-hmj94es2.js";
23
+ import"./index-6zgt7zmx.js";
24
+ import"./index-gfh90r3t.js";
25
25
  import"./index-k64mhwbw.js";
26
- import"./index-9z3egsmg.js";
26
+ import"./index-wymcdsas.js";
27
27
  import {
28
28
  ContextScript
29
- } from "./index-scck6h6d.js";
29
+ } from "./index-ampz4vgv.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/context/context.command.ts
32
32
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -0,0 +1,28 @@
1
+ // @bun
2
+ import {
3
+ ContextRunner2
4
+ } from "./index-53h0053j.js";
5
+ import"./index-wymcdsas.js";
6
+ import"./index-gfh90r3t.js";
7
+ import"./index-6zgt7zmx.js";
8
+ import"./index-0tkj05cz.js";
9
+ import"./index-hmj94es2.js";
10
+ import"./index-t0hk1kxq.js";
11
+ import"./index-k64mhwbw.js";
12
+ import"./index-ck64kxrn.js";
13
+ import"./index-kdswbvys.js";
14
+ import"./index-g0yds382.js";
15
+ import"./index-j6eeh5d7.js";
16
+ import"./index-w60zxxye.js";
17
+ import"./index-m9jj544v.js";
18
+ import"./index-r0q2ka2b.js";
19
+ import"./index-vkpqe29t.js";
20
+ import"./index-re2kfscb.js";
21
+ import"./index-dcm66hss.js";
22
+ import"./index-6t7fkx73.js";
23
+ import"./index-38by07nw.js";
24
+ import"./index-hj6w4ka1.js";
25
+ import"./index-bns3wcpc.js";
26
+ export {
27
+ ContextRunner2 as ContextRunner
28
+ };
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  script,
4
4
  command
5
- } from "./index-9zy8479y.js";
5
+ } from "./index-r0q2ka2b.js";
6
6
  import"./index-bns3wcpc.js";
7
- import"./index-g500c5j9.js";
7
+ import"./index-38by07nw.js";
8
8
  import {
9
9
  Prompter2
10
10
  } from "./index-j6eeh5d7.js";
@@ -16,9 +16,11 @@ Full contract — guards, apps, heads, CSR root layouts, typed params, lib pages
16
16
  `.notFound` / `.error` on layouts; `.fonts` / `.theme` / `.manifest` / … on the root; `.prompt` / `.app` on a page).
17
17
  A named export beside it fails the build.
18
18
  - **Name every `[x]` segment with `.param("x", Type)`** and read query keys only via `.search("k", Type)`; values
19
- arrive typed. `lang` is never declared — every stage receives it.
19
+ arrive typed. `lang` is never declared — every stage receives it. A client filter writes its key back with
20
+ `router.replace(href, { shallow: true })`, which keeps the page on screen.
20
21
  - `.head()` takes JSX or a function returning it — never a metadata object; deeper heads replace by tag identity,
21
- and a canonical link / `og:url` comes only from the page's own `.head()`.
22
+ and a canonical link / `og:url` comes only from the page's own `.head()`. A 404's title is the `<title>` a layout's
23
+ `.notFound()` returns at its top: `.notFound(() => <><title>Not found</title>…</>)`, except below a `.loading()`.
22
24
  - In a CSR bundle a root layout's own markup is hidden: what a person must see from it renders through
23
25
  `createPortal(…, document.body)`.
24
26
  - `_overrides.tsx` is one `export default override({ Slot: AppComponent })` (`akanjs/ui`), no logic, no
@@ -84,6 +84,8 @@ paths:
84
84
  option, with keys its dictionary defines and never `base.error.*`. That is the status's OpenAPI response and a line
85
85
  of the MCP tool's description; outside production a thrown key it leaves out warns once. A caller narrows with
86
86
  `Err.is(error, "ticket.error.locked")`.
87
+ - An `srvkit/` adapter belongs to no module: its keys go in the app's or lib's own service dictionary,
88
+ `lib/_<name>/<name>.dictionary.ts`, thrown as `new Err("<name>.error.<key>")` with `Err` from `"../lib/dict"`.
87
89
  - `try/catch` turns an exception into a decision: guards → `logger.warn` → `false`; adapters → `logger.error` →
88
90
  `null`; UI `try/finally` resets a spinner. A bodyless `catch {}` needs a one-line reason.
89
91
  - Store actions do not `try/catch` (the framework toasts the `Err`); one no screen waits on (a token refresh) is
@@ -14,7 +14,9 @@ paths:
14
14
  `no-daisyui-legacy-class`, `no-inline-color`): no raw palette (`bg-blue-500`), arbitrary or interpolated color classes
15
15
  (`bg-[#3b82f6]`), daisyUI classes or slots (`btn-primary`, `bg-base-100`), or color literals in `style={{}}` — they
16
16
  render no CSS. Use semantic tokens (`bg-primary`, `text-foreground/70`); a legitimate fixed color takes
17
- `// biome-ignore lint/plugin: <reason>`. Slot replacements, SVG / `el.style` warnings, legal values: `cssRule`.
17
+ `// biome-ignore lint/plugin: <reason>`. A daisyUI component name (`stat-value`) is only a warning, which
18
+ `akan verify` drops once the app's or a lib's CSS defines that class. Slot replacements, SVG / `el.style` warnings,
19
+ legal values: `cssRule`.
18
20
 
19
21
  - Static class strings stay plain. `cn` (from `akanjs/client`) only for a conditional or to merge an incoming
20
22
  `className`, caller last: `cn("base", cond && "extra", className)` — the only combiner: no `clsx`, raw `twMerge`,
@@ -43,7 +43,8 @@ paths:
43
43
 
44
44
  - **`#private` is banned in exactly `*.constant.ts`, `*.document.ts`, `*.service.ts`, `*.store.ts`**
45
45
  (`no-js-private-class-method`, by path, so it stays the house style everywhere else, `srvkit/` and `adapt()` classes
46
- included).
46
+ included). A `#method` there becomes `private method()`, never `_method` (a service runs `_preCreate`-style names as
47
+ hooks); `akan verify` renames it and its calls unless the class already has that name.
47
48
 
48
49
  ## TypeScript And Imports
49
50
 
@@ -14,10 +14,12 @@ Use TailwindCSS with Akan's semantic design-token layer and the `akanjs/ui` prim
14
14
  ## Color Vocabulary — What Lint Refuses
15
15
  - Vocabulary closure strips the raw Tailwind palette, so these render as no CSS and fail lint: raw palette classes
16
16
  (`bg-blue-500`, `text-gray-400`), arbitrary color values (`bg-[#3b82f6]`), an arbitrary class built by
17
- interpolation, daisyUI legacy classes (`btn-primary`, `card-body`) and its dropped color slots (`bg-base-100`,
17
+ interpolation, daisyUI's dropped color slots (`bg-base-100`,
18
18
  `text-base-content`, `text-primary-content`, `bg-error` — use `background`/`muted`/`border`, `foreground`,
19
19
  `<color>-foreground`, `destructive`), and color literals in `style={{...}}` (`no-raw-palette-class`,
20
20
  `no-arbitrary-color`, `no-daisyui-legacy-class`, `no-inline-color`, `no-interpolated-arbitrary-class`).
21
+ - daisyUI component classes (`btn-primary`, `card-body`) render no CSS unless the app defines them, so lint only warns;
22
+ `akan verify` drops the warning once the app's or a lib's stylesheet defines the class.
21
23
  - A legitimate fixed color (OS-chrome mockups, data-viz) takes a `// biome-ignore lint/plugin: <reason>`.
22
24
  - Color literals in SVG color attributes (`fill`, `stroke`, `stopColor`, `floodColor`, `lightingColor`, `color`) and
23
25
  in `el.style.<prop> = …` / `el.style.setProperty(…)` writes are flagged as warnings for now; `currentColor`,
@@ -114,6 +114,9 @@ body shape — this is the full contract behind them. Before changing route beha
114
114
  `property`, and a canonical / manifest / icon link, and keeps the rest — so a page states only what it changes.
115
115
  - A canonical link and `og:url` each name one URL, so a page carries them only from its own `.head()`, never from a
116
116
  layout's.
117
+ - **A not-found or error view titles itself**: the `<title>` and `<meta>` at the top of what a layout's `.notFound()`
118
+ / `.error()` returns replace the layouts' head, and the page's own head is dropped. Under a `.loading()` the head is
119
+ already out, so they stay in the view.
117
120
 
118
121
  ## A Root Layout Inside A CSR Bundle
119
122
 
@@ -3,12 +3,12 @@ import {
3
3
  HmrWatcher,
4
4
  WatchRootResolver,
5
5
  ApplicationBuildReporter
6
- } from "./index-p6x5b7hr.js";
6
+ } from "./index-d894868w.js";
7
7
  import {
8
8
  CodegenLock,
9
9
  WorkspaceExecutor,
10
10
  AppExecutor
11
- } from "./index-g500c5j9.js";
11
+ } from "./index-38by07nw.js";
12
12
  import"./index-bns3wcpc.js";
13
13
  import {
14
14
  GraphClientEntryDiscovery,
@@ -19,14 +19,15 @@ import {
19
19
  DevChangePlanner,
20
20
  DevGeneratedIndexSync,
21
21
  SsrDevBundler
22
- } from "./index-tp56652m.js";
22
+ } from "./index-kc871vpc.js";
23
23
  import {
24
24
  ServerGraphFile
25
- } from "./index-zbrwnmf1.js";
26
- import"./index-j2dgmzbj.js";
25
+ } from "./index-6t7fkx73.js";
27
26
  import {
27
+ GitRevision,
28
28
  WorkspaceGraph
29
- } from "./index-vzpnr12w.js";
29
+ } from "./index-vkpqe29t.js";
30
+ import"./index-re2kfscb.js";
30
31
  import {
31
32
  prepareDevWatchBatch
32
33
  } from "./index-a5vmm6x4.js";
@@ -243,6 +244,7 @@ class IncrementalBuilder {
243
244
  #generation = 0;
244
245
  #shellKey = null;
245
246
  #graph = null;
247
+ #changes = null;
246
248
  #discoveredThrough = 0;
247
249
  #csrActive = IncrementalBuilder.#csrArmedByEnv();
248
250
  #csrBundler;
@@ -924,20 +926,44 @@ class IncrementalBuilder {
924
926
  this.#logger.verbose(`announced boot state after recycle generation=${generation}`);
925
927
  }
926
928
  async handleBuildGraph(msg) {
927
- const generation = this.#generation;
928
929
  try {
929
- if (this.#graph?.generation !== generation) {
930
- const { workspace } = this.#app;
931
- const graph = WorkspaceGraph.visibleTo(await WorkspaceGraph.build(workspace), this.#app.name);
932
- this.#graph = { generation, payload: { workspaceRoot: workspace.workspaceRoot, graph } };
933
- }
934
- await BuilderChannel.send({ type: "build-graph-res", id: msg.id, ok: true, data: this.#graph.payload });
930
+ const data = msg.changes ? await this.#changesPayload(msg.changes.since) : await this.#graphPayload();
931
+ await BuilderChannel.send({ type: "build-graph-res", id: msg.id, ok: true, data });
935
932
  } catch (err) {
936
933
  const error = ApplicationBuildReporter.formatError(err, this.#app.workspace.workspaceRoot);
937
934
  this.#logger.error(`build-graph failed: ${error}`);
938
935
  await BuilderChannel.send({ type: "build-graph-res", id: msg.id, ok: false, error });
939
936
  }
940
937
  }
938
+ async#graphPayload() {
939
+ const generation = this.#generation;
940
+ if (this.#graph?.generation !== generation) {
941
+ const { workspace } = this.#app;
942
+ const graph = WorkspaceGraph.visibleTo(await WorkspaceGraph.build(workspace), this.#app.name);
943
+ this.#graph = { generation, payload: { workspaceRoot: workspace.workspaceRoot, graph } };
944
+ }
945
+ return this.#graph.payload;
946
+ }
947
+ async#changesPayload(since) {
948
+ const { workspace, name } = this.#app;
949
+ const { workspaceRoot } = workspace;
950
+ const forkPoint = await new GitRevision(workspaceRoot).forkPointOf(since);
951
+ if (forkPoint.error !== undefined)
952
+ return { workspaceRoot, changes: { error: forkPoint.error } };
953
+ const key = `${this.#generation}:${forkPoint.sha}`;
954
+ if (this.#changes?.key !== key) {
955
+ const payload = WorkspaceGraph.changesAt(workspace, forkPoint.sha).then((changes) => ({
956
+ workspaceRoot,
957
+ changes: WorkspaceGraph.changesVisibleTo(changes, name)
958
+ }));
959
+ payload.catch(() => {
960
+ if (this.#changes?.payload === payload)
961
+ this.#changes = null;
962
+ });
963
+ this.#changes = { key, payload };
964
+ }
965
+ return await this.#changes.payload;
966
+ }
941
967
  async handleBuildCsr(msg) {
942
968
  if (msg.shell) {
943
969
  await this.#buildShell(msg);