@akanjs/cli 3.2.0-rc.3 → 3.2.0-rc.5

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 (74) hide show
  1. package/.build-stamp +2 -1
  2. package/{CodeAgent-e9c712an.js → CodeAgent-4a2skdph.js} +3 -3
  3. package/{CodeTui-wv9yf7eq.js → CodeTui-enrzsnzc.js} +1 -1
  4. package/{TunnelShare-zkfkrw8w.js → TunnelShare-xs5rrpf1.js} +5 -5
  5. package/{agent.command-9erafkcb.js → agent.command-y22t9x1e.js} +11 -11
  6. package/akanCode.js +3 -3
  7. package/{application.command-6515t682.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-32esk0v1.js → cloud.command-bqfh4cnx.js} +13 -13
  11. package/{cloud.script-arsagnq6.js → cloud.script-8jvfw1sh.js} +13 -13
  12. package/{code.command-xk7rwq2x.js → code.command-y94hwxsn.js} +5 -5
  13. package/{context.command-jwenkkf0.js → context.command-xz65fhrn.js} +15 -15
  14. package/context.runner-dpt5wjb7.js +29 -0
  15. package/{devTui-cd03z4mx.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 +2 -2
  22. package/{index-xrmrvafh.js → index-02b8qvww.js} +2 -2
  23. package/{index-j1hjb477.js → index-2rcptfyp.js} +1 -1
  24. package/{index-84c2pgak.js → index-3rff2c48.js} +1 -0
  25. package/{index-dpgywgeq.js → index-3wen6ddy.js} +1 -1
  26. package/{index-43acpsc7.js → index-49y45vbj.js} +9 -9
  27. package/{index-8gm4yag8.js → index-4mgabs8t.js} +4 -4
  28. package/{index-ytpmk3pb.js → index-50mg8bsm.js} +4 -4
  29. package/{index-20wvskt8.js → index-5hhe0rdd.js} +1 -1
  30. package/{index-kcpk2d20.js → index-5qq6qky3.js} +8 -8
  31. package/{index-vbhx60x5.js → index-5w8amdr7.js} +1 -1
  32. package/{index-bdmgqzb5.js → index-8vxdsqra.js} +35 -22
  33. package/{index-ddk49ypz.js → index-ah09graf.js} +53 -26
  34. package/{index-sc0g6zbm.js → index-b4qq3rq0.js} +23 -10
  35. package/{index-2eym1yjb.js → index-b9q5aw30.js} +10 -10
  36. package/{index-ngpt3zz3.js → index-fqx74yxn.js} +11 -8
  37. package/{index-djc5nxpy.js → index-g43360sn.js} +2 -2
  38. package/{index-bak9f2br.js → index-gsty3pkx.js} +5 -1
  39. package/{index-386canwe.js → index-hkq0q73d.js} +44 -25
  40. package/{index-s34v3y28.js → index-jgj6ajnk.js} +4 -4
  41. package/{index-zhkcab5a.js → index-jqsj5wjb.js} +1 -1
  42. package/{index-54s6knqe.js → index-jrdp7c4h.js} +2 -2
  43. package/{index-wr9magsr.js → index-jxaq2evq.js} +1 -1
  44. package/{index-h0p6n4k1.js → index-kgxhwgdk.js} +3 -3
  45. package/{index-6h775rv3.js → index-kjmrkc45.js} +4 -4
  46. package/{index-qrk06tfp.js → index-kr8dvqnr.js} +1 -1
  47. package/{index-j4hkbzj6.js → index-qrp98bmp.js} +4 -4
  48. package/{index-0ba8nj4d.js → index-sjj3ywn5.js} +16 -9
  49. package/index-va90m8nd.js +25 -0
  50. package/{index-e22zedc2.js → index-vftjqv28.js} +2 -2
  51. package/{index-2rqyrvcy.js → index-w15hnxmb.js} +5 -5
  52. package/{index-zcdmnfrf.js → index-w88xghey.js} +6 -6
  53. package/{index-7kmbqp0b.js → index-z9b72teg.js} +1 -1
  54. package/index.js +22 -22
  55. package/{library.command-qs8beggh.js → library.command-6eafevmj.js} +2 -2
  56. package/{localRegistry.command-hz4ged9n.js → localRegistry.command-9tef2qsj.js} +12 -12
  57. package/{module.command-z9js77m2.js → module.command-pn1k7dfk.js} +9 -5
  58. package/{package.command-zqenq8c0.js → package.command-kbg9z7re.js} +2 -2
  59. package/package.json +2 -2
  60. package/{page.command-t0nx1jat.js → page.command-st0y2xg8.js} +2 -2
  61. package/{pipeline.command-2yjeas7m.js → pipeline.command-76m32y7z.js} +1 -1
  62. package/{primitive.command-v5kypwy4.js → primitive.command-ax6wg70s.js} +5 -5
  63. package/{quality.command-q55j2htd.js → quality.command-0gzskga8.js} +2 -2
  64. package/{repair.command-7ssbbdq2.js → repair.command-g5kc3x89.js} +4 -4
  65. package/{scalar.command-p5jb7z57.js → scalar.command-ck8621dy.js} +3 -3
  66. package/skills/akan-debug/SKILL.md +6 -2
  67. package/skills/akan-transport/SKILL.md +2 -0
  68. package/{subspace.command-7wxy6ptj.js → subspace.command-vh6dye0v.js} +6 -6
  69. package/{tunnel.command-22g11n0x.js → tunnel.command-4mezrypt.js} +6 -6
  70. package/{verify.command-m0wnndd7.js → verify.command-f2n4bwp7.js} +8 -8
  71. package/{workflow.command-jx8dqs9n.js → workflow.command-bx9xwgs5.js} +9 -9
  72. package/{workspace.command-ca9kfyt3.js → workspace.command-04qgwsst.js} +27 -27
  73. package/context.runner-mqpp67br.js +0 -29
  74. package/index-x3x31df8.js +0 -14
package/.build-stamp CHANGED
@@ -1 +1,2 @@
1
- f8efeb58c14e108890195063e2a246a13cc74eaca8e585d692bf4b0745361288
1
+ f8410aa8515cb8e0abfd227a644e23d745ccbf2b6c3d360e16e6793693073f5f
2
+ e2389bab-b828-43d2-a344-f3aed6772082
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgent2
4
- } from "./index-ytpmk3pb.js";
5
- import"./index-qrk06tfp.js";
6
- import"./index-sc0g6zbm.js";
4
+ } from "./index-50mg8bsm.js";
5
+ import"./index-kr8dvqnr.js";
6
+ import"./index-b4qq3rq0.js";
7
7
  import"./index-35j83zkd.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  export {
@@ -4,7 +4,7 @@ import {
4
4
  McpTokenStore,
5
5
  McpSignIn,
6
6
  AkanCodeCompaction2
7
- } from "./index-qrk06tfp.js";
7
+ } from "./index-kr8dvqnr.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import"./index-35j83zkd.js";
10
10
  import {
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  TunnelShare2
4
- } from "./index-j1hjb477.js";
5
- import"./index-e22zedc2.js";
6
- import"./index-djc5nxpy.js";
4
+ } from "./index-2rcptfyp.js";
5
+ import"./index-vftjqv28.js";
6
+ import"./index-g43360sn.js";
7
7
  import"./index-m9jj544v.js";
8
- import"./index-wr9magsr.js";
9
- import"./index-84c2pgak.js";
8
+ import"./index-jxaq2evq.js";
9
+ import"./index-3rff2c48.js";
10
10
  import"./index-wfmpxke3.js";
11
11
  import"./index-bns3wcpc.js";
12
12
  export {
@@ -2,32 +2,32 @@
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"./index-35j83zkd.js";
9
9
  import"./index-j6eeh5d7.js";
10
- import"./index-ngpt3zz3.js";
10
+ import"./index-fqx74yxn.js";
11
11
  import"./index-hj6w4ka1.js";
12
- import"./index-xrmrvafh.js";
12
+ import"./index-02b8qvww.js";
13
13
  import"./index-9p260r4e.js";
14
- import"./index-kcpk2d20.js";
14
+ import"./index-5qq6qky3.js";
15
15
  import"./index-y725zb1a.js";
16
- import"./index-djc5nxpy.js";
17
- import"./index-20wvskt8.js";
16
+ import"./index-g43360sn.js";
17
+ import"./index-5hhe0rdd.js";
18
18
  import"./index-m9jj544v.js";
19
- import"./index-84c2pgak.js";
20
- import"./index-wr9magsr.js";
21
- import"./index-zhkcab5a.js";
19
+ import"./index-3rff2c48.js";
20
+ import"./index-jxaq2evq.js";
21
+ import"./index-jqsj5wjb.js";
22
22
  import"./index-ygrdw6jw.js";
23
23
  import"./index-62md4dwy.js";
24
24
  import"./index-ygdbn9jn.js";
25
25
  import"./index-ny2k80mv.js";
26
26
  import"./index-v50xjbbe.js";
27
- import"./index-dpgywgeq.js";
27
+ import"./index-3wen6ddy.js";
28
28
  import {
29
29
  AgentScript
30
- } from "./index-2rqyrvcy.js";
30
+ } from "./index-w15hnxmb.js";
31
31
  import"./index-8jpc5fqv.js";
32
32
 
33
33
  // pkgs/@akanjs/cli/agent/agent.command.ts
package/akanCode.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  PreviewChrome2,
4
4
  PreviewView2
5
- } from "./index-sc0g6zbm.js";
5
+ } from "./index-b4qq3rq0.js";
6
6
  import"./index-bns3wcpc.js";
7
7
  import {
8
8
  akanCodePaths2
@@ -34,7 +34,7 @@ import {
34
34
  CodeMailbox2,
35
35
  CodeSessionFork2,
36
36
  CodeAgent2
37
- } from "./index-ytpmk3pb.js";
37
+ } from "./index-50mg8bsm.js";
38
38
  import {
39
39
  akanCodeDefaultModel2,
40
40
  akanCodeModel2,
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  SubagentPool2,
47
47
  AkanCodeCompaction2
48
- } from "./index-qrk06tfp.js";
48
+ } from "./index-kr8dvqnr.js";
49
49
  import {
50
50
  CodeAgentRpcHost2
51
51
  } from "./index-s4nvxpzm.js";
@@ -7,21 +7,21 @@ import {
7
7
  Exec,
8
8
  Workspace,
9
9
  command
10
- } from "./index-386canwe.js";
10
+ } from "./index-hkq0q73d.js";
11
11
  import"./index-bns3wcpc.js";
12
12
  import"./index-wfmpxke3.js";
13
13
  import"./index-y725zb1a.js";
14
- import"./index-djc5nxpy.js";
15
- import"./index-20wvskt8.js";
14
+ import"./index-g43360sn.js";
15
+ import"./index-5hhe0rdd.js";
16
16
  import"./index-m9jj544v.js";
17
- import"./index-84c2pgak.js";
18
- import"./index-wr9magsr.js";
19
- import"./index-54s6knqe.js";
20
- import"./index-kcpk2d20.js";
21
- import"./index-sc0g6zbm.js";
17
+ import"./index-3rff2c48.js";
18
+ import"./index-jxaq2evq.js";
19
+ import"./index-jrdp7c4h.js";
20
+ import"./index-5qq6qky3.js";
21
+ import"./index-b4qq3rq0.js";
22
22
  import {
23
23
  ApplicationScript
24
- } from "./index-ddk49ypz.js";
24
+ } from "./index-ah09graf.js";
25
25
  import {
26
26
  writeOption,
27
27
  nativeTargetOption,
@@ -95,7 +95,7 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
95
95
  desc: "Open pages of the app's dev server in a headless browser and print what broke, starting a server if none runs",
96
96
  stdio: true
97
97
  }).with(App).arg("paths", String, {
98
- desc: "page paths, comma-separated; the default locale is added when missing, but not to /_akan routes such as Studio or to files (default: /)",
98
+ desc: "page paths, comma-separated; the default locale is added when missing, except to a path the server answers outside a locale (/_akan, the API prefix, /__csr, /__rsc, /.well-known, /openapi.json, the default /mcp, the server's own files, public/ files) or a full URL, which opens as written (default: /)",
99
99
  example: "/board,/board/new",
100
100
  nullable: true
101
101
  }).option("changed", Boolean, {
@@ -9,21 +9,21 @@ import {
9
9
  import"./index-bns3wcpc.js";
10
10
  import {
11
11
  NARROWABLE_VENDOR_SPECIFIERS
12
- } from "./index-vbhx60x5.js";
12
+ } from "./index-5w8amdr7.js";
13
13
  import {
14
14
  FontPruner,
15
15
  RouteJsBudget
16
16
  } from "./index-y725zb1a.js";
17
- import"./index-84c2pgak.js";
17
+ import"./index-3rff2c48.js";
18
18
  import {
19
19
  AllRoutesBuilder,
20
20
  precompressArtifacts,
21
21
  SsrBaseArtifactBuilder,
22
22
  VendorImportScanner
23
- } from "./index-bdmgqzb5.js";
23
+ } from "./index-8vxdsqra.js";
24
24
  import {
25
25
  CsrArtifactBuilder
26
- } from "./index-wr9magsr.js";
26
+ } from "./index-jxaq2evq.js";
27
27
  import"./index-62md4dwy.js";
28
28
 
29
29
  // pkgs/@akanjs/devkit/applicationBuildRunner.ts
@@ -393,7 +393,7 @@ void run().catch((error) => {
393
393
  const { baseDevEnv, branches } = await this.#app.getConfig();
394
394
  const routes = new AllRoutesBuilder(this.#app, "build");
395
395
  const allRoutes = await routes.build();
396
- const vendorExports = await VendorImportScanner.exportsUsedIn(path3.join(this.#app.dist.cwdPath, ".akan/artifact/client"), NARROWABLE_VENDOR_SPECIFIERS);
396
+ const vendorExports = await VendorImportScanner.exportsUsedIn(path3.join(this.#app.dist.cwdPath, ".akan/artifact/client"), NARROWABLE_VENDOR_SPECIFIERS, Object.values(allRoutes.manifest.clientManifest).map(({ id }) => id));
397
397
  const base = await new SsrBaseArtifactBuilder(this.#app, "build", {
398
398
  serverEnv: this.#serverEnvPlugin(baseDevEnv.env, branches),
399
399
  vendorExports
@@ -13,19 +13,19 @@ import {
13
13
  saveRouteSeedIndex,
14
14
  CsrDevBundler,
15
15
  SsrDevBundler
16
- } from "./index-vbhx60x5.js";
16
+ } from "./index-5w8amdr7.js";
17
17
  import"./index-bns3wcpc.js";
18
18
  import {
19
19
  ServerGraphFile,
20
20
  PagesBundleBuilder
21
- } from "./index-84c2pgak.js";
21
+ } from "./index-3rff2c48.js";
22
22
  import {
23
23
  CssCompiler,
24
24
  SsrBaseArtifactBuilder
25
- } from "./index-bdmgqzb5.js";
25
+ } from "./index-8vxdsqra.js";
26
26
  import {
27
27
  CsrArtifactBuilder
28
- } from "./index-wr9magsr.js";
28
+ } from "./index-jxaq2evq.js";
29
29
  import"./index-62md4dwy.js";
30
30
 
31
31
  // pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
@@ -3,35 +3,35 @@ import {
3
3
  App,
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
- import"./index-e22zedc2.js";
9
+ import"./index-vftjqv28.js";
10
10
  import {
11
11
  PlatformTestRun
12
- } from "./index-6h775rv3.js";
13
- import"./index-djc5nxpy.js";
14
- import"./index-20wvskt8.js";
12
+ } from "./index-kjmrkc45.js";
13
+ import"./index-g43360sn.js";
14
+ import"./index-5hhe0rdd.js";
15
15
  import"./index-m9jj544v.js";
16
- import"./index-84c2pgak.js";
17
- import"./index-wr9magsr.js";
16
+ import"./index-3rff2c48.js";
17
+ import"./index-jxaq2evq.js";
18
18
  import {
19
19
  npmRegistryFromEnv,
20
20
  warnIgnoredNpmRegistry
21
21
  } from "./index-ny2k80mv.js";
22
22
  import"./index-y725zb1a.js";
23
- import"./index-54s6knqe.js";
24
- import"./index-kcpk2d20.js";
25
- import"./index-sc0g6zbm.js";
26
- import"./index-ddk49ypz.js";
23
+ import"./index-jrdp7c4h.js";
24
+ import"./index-5qq6qky3.js";
25
+ import"./index-b4qq3rq0.js";
26
+ import"./index-ah09graf.js";
27
27
  import"./index-qd7xn2bk.js";
28
28
  import"./index-9p260r4e.js";
29
29
  import"./index-cmg5ngqa.js";
30
30
  import"./index-ygrdw6jw.js";
31
- import"./index-bak9f2br.js";
31
+ import"./index-gsty3pkx.js";
32
32
  import {
33
33
  CloudScript2
34
- } from "./index-zcdmnfrf.js";
34
+ } from "./index-w88xghey.js";
35
35
  import {
36
36
  writeOption,
37
37
  oneNativeTargetOption,
@@ -1,27 +1,27 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript2
4
- } from "./index-zcdmnfrf.js";
5
- import"./index-6h775rv3.js";
6
- import"./index-ddk49ypz.js";
7
- import"./index-54s6knqe.js";
8
- import"./index-bak9f2br.js";
9
- import"./index-e22zedc2.js";
4
+ } from "./index-w88xghey.js";
5
+ import"./index-kjmrkc45.js";
6
+ import"./index-ah09graf.js";
7
+ import"./index-jrdp7c4h.js";
8
+ import"./index-gsty3pkx.js";
9
+ import"./index-vftjqv28.js";
10
10
  import"./index-ny2k80mv.js";
11
- import"./index-kcpk2d20.js";
11
+ import"./index-5qq6qky3.js";
12
12
  import"./index-8jpc5fqv.js";
13
13
  import"./index-ygrdw6jw.js";
14
- import"./index-20wvskt8.js";
15
- import"./index-djc5nxpy.js";
14
+ import"./index-5hhe0rdd.js";
15
+ import"./index-g43360sn.js";
16
16
  import"./index-m9jj544v.js";
17
- import"./index-386canwe.js";
17
+ import"./index-hkq0q73d.js";
18
18
  import"./index-9bv479q5.js";
19
- import"./index-sc0g6zbm.js";
19
+ import"./index-b4qq3rq0.js";
20
20
  import"./index-cmg5ngqa.js";
21
21
  import"./index-9p260r4e.js";
22
- import"./index-wr9magsr.js";
22
+ import"./index-jxaq2evq.js";
23
23
  import"./index-y725zb1a.js";
24
- import"./index-84c2pgak.js";
24
+ import"./index-3rff2c48.js";
25
25
  import"./index-wfmpxke3.js";
26
26
  import"./index-qd7xn2bk.js";
27
27
  import"./index-bns3wcpc.js";
@@ -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"./index-wfmpxke3.js";
10
10
  import {
@@ -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-e9c712an.js"),
80
+ import("./CodeAgent-4a2skdph.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-e9c712an.js"),
115
- import("./CodeTui-wv9yf7eq.js")
114
+ import("./CodeAgent-4a2skdph.js"),
115
+ import("./CodeTui-enrzsnzc.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-e9c712an.js");
151
+ const { CodeAgent } = await import("./CodeAgent-4a2skdph.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,32 +2,32 @@
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
- import"./index-ngpt3zz3.js";
8
+ import"./index-fqx74yxn.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-xrmrvafh.js";
10
+ import"./index-02b8qvww.js";
11
11
  import"./index-9p260r4e.js";
12
- import"./index-2eym1yjb.js";
13
- import"./index-djc5nxpy.js";
14
- import"./index-20wvskt8.js";
12
+ import"./index-b9q5aw30.js";
13
+ import"./index-g43360sn.js";
14
+ import"./index-5hhe0rdd.js";
15
15
  import"./index-m9jj544v.js";
16
- import"./index-84c2pgak.js";
17
- import"./index-wr9magsr.js";
16
+ import"./index-3rff2c48.js";
17
+ import"./index-jxaq2evq.js";
18
18
  import"./index-j6eeh5d7.js";
19
19
  import"./index-ygdbn9jn.js";
20
20
  import"./index-39jz41jb.js";
21
- import"./index-8gm4yag8.js";
22
- import"./index-7kmbqp0b.js";
23
- import"./index-s34v3y28.js";
24
- import"./index-0ba8nj4d.js";
25
- import"./index-h0p6n4k1.js";
21
+ import"./index-4mgabs8t.js";
22
+ import"./index-z9b72teg.js";
23
+ import"./index-jgj6ajnk.js";
24
+ import"./index-sjj3ywn5.js";
25
+ import"./index-kgxhwgdk.js";
26
26
  import"./index-v50xjbbe.js";
27
- import"./index-43acpsc7.js";
27
+ import"./index-49y45vbj.js";
28
28
  import {
29
29
  ContextScript
30
- } from "./index-j4hkbzj6.js";
30
+ } from "./index-qrp98bmp.js";
31
31
 
32
32
  // pkgs/@akanjs/cli/context/context.command.ts
33
33
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -0,0 +1,29 @@
1
+ // @bun
2
+ import {
3
+ ContextRunner2
4
+ } from "./index-b9q5aw30.js";
5
+ import"./index-49y45vbj.js";
6
+ import"./index-kgxhwgdk.js";
7
+ import"./index-sjj3ywn5.js";
8
+ import"./index-4mgabs8t.js";
9
+ import"./index-jgj6ajnk.js";
10
+ import"./index-z9b72teg.js";
11
+ import"./index-v50xjbbe.js";
12
+ import"./index-fqx74yxn.js";
13
+ import"./index-02b8qvww.js";
14
+ import"./index-5hhe0rdd.js";
15
+ import"./index-j6eeh5d7.js";
16
+ import"./index-g43360sn.js";
17
+ import"./index-m9jj544v.js";
18
+ import"./index-hkq0q73d.js";
19
+ import"./index-39jz41jb.js";
20
+ import"./index-ygdbn9jn.js";
21
+ import"./index-9p260r4e.js";
22
+ import"./index-jxaq2evq.js";
23
+ import"./index-3rff2c48.js";
24
+ import"./index-wfmpxke3.js";
25
+ import"./index-hj6w4ka1.js";
26
+ import"./index-bns3wcpc.js";
27
+ export {
28
+ ContextRunner2 as ContextRunner
29
+ };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  stripAnsi
4
- } from "./index-sc0g6zbm.js";
4
+ } from "./index-b4qq3rq0.js";
5
5
  import {
6
6
  writeClipboard
7
7
  } from "./index-p6pbz9n5.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  script,
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 {
@@ -43,6 +43,10 @@ export default page()
43
43
  - `.render()` gets the declared args flat and typed (no `PageProps`, no `loader=` prop). Order: `usePage()`, fetch,
44
44
  return; auth is the chain's `.guard()`, which runs before anything renders. Hand `fetch.init*` / `view*` / `edit*` fields to sections unawaited; await only what the shell reads
45
45
  (title, redirect, link id) in one `Promise.all`.
46
+ - **A field's refusal belongs to its `Load.*`**, which draws a notice while the page answers 200. So a field reaches
47
+ only a `Load.*`, directly or through a Zone. Awaiting one in a component below the page, rendering it as a child or
48
+ `use()`-ing it outside `Load.*` blanks the page when the server refuses it. Await the handle (`await fetch.initX()`)
49
+ instead, so a refusal takes the layout's `.error()`.
46
50
  - **A route never writes while it renders**: a `fetch.<mutation>()` in a stage or a component it renders throws
47
51
  `base.error.mutationInRender`, since opening a link would perform it. Send it from a user action;
48
52
  `{ duringRender: true }` only for a write harmless to repeat and safe for anyone to trigger (`ssrRule`).
@@ -48,6 +48,11 @@ body shape — this is the full contract behind them. Before changing route beha
48
48
  that is harmless to repeat and safe for anyone to trigger (a warm-up) passes `{ duringRender: true }` as the option
49
49
  after the endpoint's own arguments (`fetch.updateX(id, data, { duringRender: true })`). `akan quality` flags the call,
50
50
  same-file helpers included, as `akan.ssr.render-mutation`.
51
+ - **A `Link` renders its page ahead of the click** — on hover, on keyboard focus, or as it shows with
52
+ `prefetch="viewport"` (production only). A page whose render has an effect one visit should cause once — a view
53
+ counted through `duringRender`, an expensive report — refuses with `.config({ prefetch: false })`; on a `_layout.tsx`
54
+ it covers every page below, and a page there opts back in with `prefetch: true`. Its guards still run for the
55
+ prefetch, so a redirect answers as one, and the click renders the page as usual.
51
56
 
52
57
  ## Route Guards — `.guard()`
53
58
 
@@ -536,6 +536,10 @@ page API is
536
536
  `akanjs/client/native/<id>` (`akanjs/client/native/window`, `…/screen`, `…/global-shortcut`), imported in a `webkit/`
537
537
  hook; `volume` and `filePicker` also come from `akanjs/client/native` itself. A capability the shell
538
538
  lacks is added there: an app's own plugin runs as Bun code in the plugin host and cannot add a native shell op.
539
+ `isNativeApp()`, `isNativeShell()`, `nativePlatform()` and `desktopPlatform()` come from `akanjs/client`, which starts
540
+ the native runtime only inside a shell. A static import of `akanjs/client/native` loads `@akanjs/native/core` on every
541
+ web page that reaches the file, so an app's store, or its own hook a web page also renders, loads the plugin on first
542
+ use behind the check: `if (isNativeApp()) await (await import("akanjs/client/native/push")).push.register()`.
539
543
 
540
544
  **A plugin the app or lib owns lives in `native/<id>/`**, the folder named after the plugin id: `native-plugin.json`
541
545
  beside its page API (`src/index.ts`, `definePlugin` from `akanjs/client/native`), its desktop part (`src/desktop.ts`,
@@ -555,7 +559,7 @@ uses `getCookie` / `setCookie` / `removeCookie`, `storage`, and `secretStorage`
555
559
  names — pass `sameSite: "none"` only for a cookie a cross-site POST must carry back. `getCookie` reads a name sent
556
560
  twice as unset, since a sibling subdomain can plant a second copy; server code reads `cookieJar()` from
557
561
  `akanjs/fetch`, or `CookieJar.parse(req.headers.get("cookie"))`, never `req.cookies`. Browser APIs an app WebView lacks
558
- stay in a `webkit/` hook that branches on `isNativeApp()` from `akanjs/client/native`, which is where the app side goes
562
+ stay in a `webkit/` hook that branches on `isNativeApp()` from `akanjs/client`, which is where the app side goes
559
563
  too (`no-web-only-api-outside-webkit`, a warning): `navigator.share` / `canShare` (Android's WebView has none),
560
564
  `navigator.serviceWorker` and `Notification.requestPermission` / `.permission` (no app page has them),
561
565
  `navigator.geolocation` (use `useGeoLocation` from `akanjs/webkit`) and `navigator.vibrate` (iOS has none; use
@@ -66,6 +66,11 @@ HTTP verb a mutation is mounted under. `conventions` carries the invariants —
66
66
  - **A subscribe the client leaves before it finishes joins nothing.** When an `unsubscribe` for the room, or the
67
67
  socket's close, arrives while the subscribe is still running, the subscribe answers `subscribe: false` and runs its
68
68
  `unsubscribe` cleanup (and its `disconnect` one when the socket closed) instead of joining the room.
69
+ - **A send from the browser drops the reads it may have made stale.** A mutation, an upload or a `message` sent
70
+ through `fetch` ends the sharing of queries already in flight and drops the pages a `Link` prefetched, so the next
71
+ read asks again; only this tab's own sends count. A send that changes nothing anyone reads back — typing status, a
72
+ cursor move — passes `{ keepsReads: true }` after its arguments (`fetch.typing(chatId, { keepsReads: true })`), or
73
+ a chatty endpoint keeps every prefetch from surviving. A read receipt changes an unread count and passes nothing.
69
74
 
70
75
  ## Writing A Guard
71
76
 
@@ -19,10 +19,10 @@ import {
19
19
  DevChangePlanner,
20
20
  DevGeneratedIndexSync,
21
21
  SsrDevBundler
22
- } from "./index-vbhx60x5.js";
22
+ } from "./index-5w8amdr7.js";
23
23
  import {
24
24
  ServerGraphFile
25
- } from "./index-84c2pgak.js";
25
+ } from "./index-3rff2c48.js";
26
26
  import"./index-9p260r4e.js";
27
27
  import {
28
28
  FrameworkGraph
@@ -10,10 +10,10 @@ import {
10
10
  import {
11
11
  sysNamePattern,
12
12
  identifierPattern
13
- } from "./index-x3x31df8.js";
13
+ } from "./index-va90m8nd.js";
14
14
  import {
15
15
  camelToKebabCase
16
- } from "./index-386canwe.js";
16
+ } from "./index-hkq0q73d.js";
17
17
 
18
18
  // pkgs/@akanjs/devkit/workflow/artifacts.ts
19
19
  import { capitalize as capitalize2 } from "akanjs/common";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-e22zedc2.js";
5
+ } from "./index-vftjqv28.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
@@ -576,6 +576,7 @@ var bundleDefine = (app, command, renderEnv) => {
576
576
  return {
577
577
  "process.env.NODE_ENV": JSON.stringify(nodeEnv),
578
578
  "process.env.AKAN_PUBLIC_RENDER_ENV": JSON.stringify(renderEnv),
579
+ "process.env.AKAN_BUNDLE_COMMAND": JSON.stringify(command),
579
580
  ...Object.fromEntries(Object.entries(app.getPublicEnv()).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, value]) => [`process.env.${key}`, JSON.stringify(value)]))
580
581
  };
581
582
  };
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  WorkspaceRunner,
16
16
  AkanQualityScanner
17
- } from "./index-zhkcab5a.js";
17
+ } from "./index-jqsj5wjb.js";
18
18
 
19
19
  // pkgs/@akanjs/cli/verify/verifyComments.ts
20
20
  import { existsSync } from "fs";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
- import {
3
- AkanContextAnalyzer
4
- } from "./index-ngpt3zz3.js";
5
2
  import {
6
3
  WorkspaceExecutor
7
4
  } from "./index-wfmpxke3.js";
5
+ import {
6
+ AkanContextAnalyzer
7
+ } from "./index-fqx74yxn.js";
8
8
  import {
9
9
  jsonText,
10
10
  workflowPlanApproval,
@@ -30,24 +30,24 @@ import {
30
30
  renderWorkflowApply,
31
31
  renderWorkflowValidation,
32
32
  renderWorkflowRunArtifact
33
- } from "./index-xrmrvafh.js";
33
+ } from "./index-02b8qvww.js";
34
34
  import {
35
35
  CommandContainer,
36
36
  runner
37
- } from "./index-386canwe.js";
37
+ } from "./index-hkq0q73d.js";
38
38
  import {
39
39
  ModuleScript
40
- } from "./index-s34v3y28.js";
40
+ } from "./index-jgj6ajnk.js";
41
41
  import {
42
42
  PrimitiveScript
43
- } from "./index-0ba8nj4d.js";
43
+ } from "./index-sjj3ywn5.js";
44
44
  import {
45
45
  spawnAkan,
46
46
  isWorkspaceTarget
47
- } from "./index-8gm4yag8.js";
47
+ } from "./index-4mgabs8t.js";
48
48
  import {
49
49
  ScalarScript
50
- } from "./index-h0p6n4k1.js";
50
+ } from "./index-kgxhwgdk.js";
51
51
  import {
52
52
  workflowSpecs
53
53
  } from "./index-v50xjbbe.js";
@@ -1,21 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-ngpt3zz3.js";
4
+ } from "./index-fqx74yxn.js";
5
5
  import {
6
6
  writeWorkflowRunArtifact,
7
7
  generatedFilePathsForTarget,
8
8
  writeGeneratedSyncState,
9
9
  createRepairReport,
10
10
  renderRepairReport
11
- } from "./index-xrmrvafh.js";
11
+ } from "./index-02b8qvww.js";
12
12
  import {
13
13
  runner
14
- } from "./index-386canwe.js";
14
+ } from "./index-hkq0q73d.js";
15
15
  import {
16
16
  isWorkflowSysName,
17
17
  isWorkflowModuleName
18
- } from "./index-x3x31df8.js";
18
+ } from "./index-va90m8nd.js";
19
19
 
20
20
  // pkgs/@akanjs/cli/repair/repair.runner.ts
21
21
  var akanArgPattern = /^(?:--?[a-z][a-zA-Z0-9-]*|[A-Za-z0-9@_][A-Za-z0-9@._/:,=-]*)$/;