@akanjs/cli 3.2.0-rc.12 → 3.2.0-rc.14

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 (82) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-cr8pvdmv.js → CodeAgent-yd1f54yf.js} +2 -2
  3. package/{CodeTui-89ssa9rr.js → CodeTui-h7mksphk.js} +1 -1
  4. package/TunnelShare-hrjed2jf.js +19 -0
  5. package/{agent.command-rp9hpf0v.js → agent.command-hrc2dfas.js} +19 -15
  6. package/akanCode.js +2 -2
  7. package/appExecutor-0ssszyhf.js +11 -0
  8. package/{application.command-fydjdvce.js → application.command-b2194cpv.js} +15 -11
  9. package/{applicationBuildRunner-68sph7t4.js → applicationBuildRunner-gg03kydg.js} +12 -8
  10. package/buildBatch.proc.js +14 -9
  11. package/{cloud.command-0y1gg3sb.js → cloud.command-d8ps1564.js} +20 -16
  12. package/cloud.script-7j7w4m0w.js +35 -0
  13. package/{code.command-63fcz7a3.js → code.command-6h6jr0s7.js} +10 -6
  14. package/{context.command-pgwcx0na.js → context.command-t8akxhny.js} +20 -16
  15. package/context.runner-eawk1n8e.js +34 -0
  16. package/{guideline.command-6yz6d4hf.js → guideline.command-f41b5nv5.js} +6 -2
  17. package/guidelines/agentRule/agentRule.instruction.md +12 -2
  18. package/guidelines/akanApi/akanApi.instruction.md +1 -1
  19. package/guidelines/pageRule/pageRule.instruction.md +6 -1
  20. package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -1
  21. package/incrementalBuilder.proc.js +12 -7
  22. package/{index-c3r23w24.js → index-1b1p83vq.js} +3 -3
  23. package/index-1jzdengt.js +30 -0
  24. package/{index-aybfcx58.js → index-2z8mxgs7.js} +6 -6
  25. package/{index-t8h09yjs.js → index-37k5vshx.js} +10 -8
  26. package/{index-frvjq1rd.js → index-3fbmyb2r.js} +1 -1
  27. package/{index-h0s3cjm0.js → index-3fn13v8p.js} +4 -4
  28. package/{index-axe04yqm.js → index-3fpv5v0t.js} +15 -11
  29. package/{index-23d8gw08.js → index-3gmskeq2.js} +37 -29
  30. package/{index-bper31wr.js → index-5np8zpep.js} +12 -8
  31. package/{index-41mfhgq0.js → index-66jt3m30.js} +1 -1
  32. package/{index-097bjwvm.js → index-6dwk5aej.js} +8 -8
  33. package/{index-qwzwzmvf.js → index-71z3pdsn.js} +4 -4
  34. package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
  35. package/{index-cqrndcq0.js → index-8rmg8c0y.js} +3 -3
  36. package/{index-s0w78805.js → index-9w51aevd.js} +1 -1
  37. package/{index-bmscnt1t.js → index-9yfssbgg.js} +25 -19
  38. package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
  39. package/index-b3h37zk3.js +787 -0
  40. package/{index-wm4385pm.js → index-bb7cm060.js} +10 -10
  41. package/{index-6r5f768n.js → index-c0rnjeqn.js} +11 -9
  42. package/{index-apcr1qgk.js → index-c4k6e098.js} +19 -15
  43. package/{index-sq9d0jhj.js → index-crtscw7c.js} +2710 -3615
  44. package/{index-ahk6rvth.js → index-e599a0e4.js} +1 -1
  45. package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
  46. package/{index-3m2cd8mm.js → index-g2ebpf0y.js} +6 -6
  47. package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
  48. package/{index-cswgczrv.js → index-hg8s6nae.js} +9 -9
  49. package/{index-pcprf7ft.js → index-hpe12v1h.js} +1 -1
  50. package/{index-dfsa009c.js → index-j2me5hm4.js} +8 -6
  51. package/{index-e5f6czck.js → index-j33b0n38.js} +1 -1
  52. package/{index-mmgtnh44.js → index-k081wv4r.js} +1428 -1106
  53. package/{index-bgp0h8rx.js → index-nx4q5rey.js} +3 -3
  54. package/index-rx8r0cbe.js +18 -0
  55. package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
  56. package/{index-6js9ek5c.js → index-vy50ec2q.js} +2 -2
  57. package/index-x2bj2vyz.js +127 -0
  58. package/{index-wpgtyek3.js → index-xb1yh9km.js} +1 -1
  59. package/{index-70jkxbf6.js → index-xjj0h74q.js} +2 -2
  60. package/index.js +27 -23
  61. package/libExecutor-ex8jqksz.js +10 -0
  62. package/{library.command-kc1zahcg.js → library.command-a9p5yg4k.js} +7 -3
  63. package/{localRegistry.command-yz150pcw.js → localRegistry.command-zz64k5vy.js} +23 -18
  64. package/{module.command-cchwzz9r.js → module.command-1ht6dmxg.js} +9 -5
  65. package/{package.command-qcjajpv8.js → package.command-eabq20aq.js} +8 -4
  66. package/package.json +2 -2
  67. package/{page.command-1t86dx8a.js → page.command-xhmzmvjn.js} +7 -3
  68. package/{pipeline.command-2xx9z3d0.js → pipeline.command-wsbg3fpr.js} +11 -6
  69. package/pkgExecutor-d16x1xcb.js +10 -0
  70. package/{primitive.command-mc0x8txr.js → primitive.command-yyxtfhvq.js} +10 -6
  71. package/{projectTypecheck-tz497yx7.js → projectTypecheck-wcrt7sae.js} +1 -1
  72. package/{quality.command-11rayf5c.js → quality.command-n7hmt628.js} +16 -10
  73. package/{repair.command-8w41vy78.js → repair.command-pczdq4mv.js} +9 -5
  74. package/{scalar.command-rvwh98ny.js → scalar.command-cw3d32sv.js} +8 -4
  75. package/{subspace.command-ykxertx8.js → subspace.command-d8t8geyv.js} +17 -12
  76. package/{tunnel.command-qbcbj0vq.js → tunnel.command-mhm64m9n.js} +15 -11
  77. package/{verify.command-gvveq05z.js → verify.command-j4he0fbx.js} +16 -12
  78. package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
  79. package/{workspace.command-jm7emxjh.js → workspace.command-pkpawft5.js} +47 -41
  80. package/TunnelShare-ndb5cts1.js +0 -15
  81. package/cloud.script-ewk72b3g.js +0 -31
  82. package/context.runner-5s2ytkjj.js +0 -30
package/.build-stamp CHANGED
@@ -1,2 +1,2 @@
1
- d67d3f47f5d4d1543eeeb0f52947ac386aafab7f55ecdf384aca9967fe1cb61a
2
- d4fc8eb4-d5e8-433e-9788-2c15108a8b68
1
+ 05b4717f187ff4ac95e0d323c71a0f984d4bab8d96433244d51b435cc74108ac
2
+ 6db591c3-d051-48c6-9b27-1f6b123b7fa9
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgent2
4
- } from "./index-cqrndcq0.js";
5
- import"./index-pcprf7ft.js";
4
+ } from "./index-8rmg8c0y.js";
5
+ import"./index-hpe12v1h.js";
6
6
  import"./index-b4qq3rq0.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-pcprf7ft.js";
7
+ } from "./index-hpe12v1h.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import"./index-35j83zkd.js";
10
10
  import {
@@ -0,0 +1,19 @@
1
+ // @bun
2
+ import {
3
+ TunnelShare2
4
+ } from "./index-e599a0e4.js";
5
+ import"./index-xjj0h74q.js";
6
+ import"./index-g2ebpf0y.js";
7
+ import"./index-m9jj544v.js";
8
+ import"./index-vy50ec2q.js";
9
+ import"./index-xb1yh9km.js";
10
+ import"./index-rx8r0cbe.js";
11
+ import"./index-b3h37zk3.js";
12
+ import"./index-1jzdengt.js";
13
+ import"./index-x2bj2vyz.js";
14
+ import"./index-crtscw7c.js";
15
+ import"./index-j4yvgfhr.js";
16
+ import"./index-bns3wcpc.js";
17
+ export {
18
+ TunnelShare2 as TunnelShare
19
+ };
@@ -2,34 +2,38 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-23d8gw08.js";
5
+ } from "./index-3gmskeq2.js";
6
6
  import"./index-j4yvgfhr.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-sq9d0jhj.js";
8
+ import"./index-crtscw7c.js";
9
+ import"./index-b3h37zk3.js";
10
+ import"./index-1jzdengt.js";
11
+ import"./index-x2bj2vyz.js";
9
12
  import"./index-35j83zkd.js";
10
13
  import"./index-j6eeh5d7.js";
11
- import"./index-bper31wr.js";
14
+ import"./index-5np8zpep.js";
12
15
  import"./index-hj6w4ka1.js";
13
- import"./index-dfsa009c.js";
16
+ import"./index-j2me5hm4.js";
14
17
  import"./index-nd39rssn.js";
15
- import"./index-mmgtnh44.js";
16
- import"./index-41mfhgq0.js";
17
- import"./index-3m2cd8mm.js";
18
- import"./index-s0w78805.js";
18
+ import"./index-k081wv4r.js";
19
+ import"./index-66jt3m30.js";
20
+ import"./index-g2ebpf0y.js";
21
+ import"./index-9w51aevd.js";
19
22
  import"./index-m9jj544v.js";
20
- import"./index-wpgtyek3.js";
21
- import"./index-6js9ek5c.js";
22
- import"./index-apcr1qgk.js";
23
- import"./index-e5f6czck.js";
23
+ import"./index-xb1yh9km.js";
24
+ import"./index-vy50ec2q.js";
25
+ import"./index-c4k6e098.js";
26
+ import"./index-j33b0n38.js";
24
27
  import"./index-62md4dwy.js";
25
28
  import"./index-ygdbn9jn.js";
26
29
  import"./index-ny2k80mv.js";
27
30
  import"./index-t4d0ckde.js";
28
- import"./index-k2r3hmbz.js";
31
+ import"./index-vb8gd135.js";
29
32
  import {
30
33
  AgentScript
31
- } from "./index-axe04yqm.js";
32
- import"./index-frvjq1rd.js";
34
+ } from "./index-3fpv5v0t.js";
35
+ import"./index-3fbmyb2r.js";
36
+ import"./index-rx8r0cbe.js";
33
37
 
34
38
  // pkgs/@akanjs/cli/agent/agent.command.ts
35
39
  class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
package/akanCode.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  CodeMailbox2,
35
35
  CodeSessionFork2,
36
36
  CodeAgent2
37
- } from "./index-cqrndcq0.js";
37
+ } from "./index-8rmg8c0y.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-pcprf7ft.js";
48
+ } from "./index-hpe12v1h.js";
49
49
  import {
50
50
  CodeAgentRpcHost2
51
51
  } from "./index-s4nvxpzm.js";
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import {
3
+ AppExecutor2
4
+ } from "./index-b3h37zk3.js";
5
+ import"./index-1jzdengt.js";
6
+ import"./index-crtscw7c.js";
7
+ import"./index-j4yvgfhr.js";
8
+ import"./index-bns3wcpc.js";
9
+ export {
10
+ AppExecutor2 as AppExecutor
11
+ };
@@ -7,26 +7,29 @@ import {
7
7
  Exec,
8
8
  Workspace,
9
9
  command
10
- } from "./index-23d8gw08.js";
10
+ } from "./index-3gmskeq2.js";
11
11
  import {
12
12
  CliError
13
13
  } from "./index-j4yvgfhr.js";
14
14
  import"./index-bns3wcpc.js";
15
- import"./index-sq9d0jhj.js";
15
+ import"./index-crtscw7c.js";
16
+ import"./index-b3h37zk3.js";
17
+ import"./index-1jzdengt.js";
18
+ import"./index-x2bj2vyz.js";
16
19
  import {
17
20
  RouteJsBudget
18
- } from "./index-41mfhgq0.js";
19
- import"./index-3m2cd8mm.js";
20
- import"./index-s0w78805.js";
21
+ } from "./index-66jt3m30.js";
22
+ import"./index-g2ebpf0y.js";
23
+ import"./index-9w51aevd.js";
21
24
  import"./index-m9jj544v.js";
22
- import"./index-wpgtyek3.js";
23
- import"./index-6js9ek5c.js";
24
- import"./index-t8h09yjs.js";
25
- import"./index-mmgtnh44.js";
25
+ import"./index-xb1yh9km.js";
26
+ import"./index-vy50ec2q.js";
27
+ import"./index-37k5vshx.js";
28
+ import"./index-k081wv4r.js";
26
29
  import"./index-b4qq3rq0.js";
27
30
  import {
28
31
  ApplicationScript
29
- } from "./index-bmscnt1t.js";
32
+ } from "./index-9yfssbgg.js";
30
33
  import {
31
34
  writeOption,
32
35
  nativeTargetOption,
@@ -34,8 +37,9 @@ import {
34
37
  allowLocalOption,
35
38
  publicEnvOption
36
39
  } from "./index-mdjc93e1.js";
37
- import"./index-frvjq1rd.js";
40
+ import"./index-3fbmyb2r.js";
38
41
  import"./index-9bv479q5.js";
42
+ import"./index-rx8r0cbe.js";
39
43
 
40
44
  // pkgs/@akanjs/cli/application/application.command.ts
41
45
  import { MigrationCommand } from "akanjs/server/migration/migrationCommand";
@@ -1,31 +1,35 @@
1
1
  // @bun
2
2
  import {
3
- ServerEnvProfile,
4
3
  Spinner,
5
4
  ProjectTypecheck2,
6
5
  parseEnvFile,
7
- WorkspaceExecutor
8
- } from "./index-sq9d0jhj.js";
6
+ WorkspaceExecutor,
7
+ ServerEnvProfile
8
+ } from "./index-crtscw7c.js";
9
9
  import"./index-bns3wcpc.js";
10
10
  import"./index-j4yvgfhr.js";
11
+ import"./index-b3h37zk3.js";
12
+ import"./index-1jzdengt.js";
13
+ import"./index-x2bj2vyz.js";
11
14
  import {
12
15
  NARROWABLE_VENDOR_SPECIFIERS
13
- } from "./index-bgp0h8rx.js";
16
+ } from "./index-nx4q5rey.js";
14
17
  import {
15
18
  FontPruner,
16
19
  RouteJsBudget
17
- } from "./index-41mfhgq0.js";
18
- import"./index-wpgtyek3.js";
20
+ } from "./index-66jt3m30.js";
21
+ import"./index-xb1yh9km.js";
19
22
  import {
20
23
  AllRoutesBuilder,
21
24
  precompressArtifacts,
22
25
  SsrBaseArtifactBuilder,
23
26
  VendorImportScanner
24
- } from "./index-qwzwzmvf.js";
27
+ } from "./index-71z3pdsn.js";
25
28
  import {
26
29
  CsrArtifactBuilder
27
- } from "./index-6js9ek5c.js";
30
+ } from "./index-vy50ec2q.js";
28
31
  import"./index-62md4dwy.js";
32
+ import"./index-rx8r0cbe.js";
29
33
 
30
34
  // pkgs/@akanjs/devkit/applicationBuildRunner.ts
31
35
  import path3 from "path";
@@ -2,32 +2,37 @@
2
2
  import {
3
3
  FontOptimizer,
4
4
  ApplicationBuildReporter
5
- } from "./index-41mfhgq0.js";
5
+ } from "./index-66jt3m30.js";
6
6
  import {
7
7
  resolveSsrPageEntriesForApp,
8
- WorkspaceExecutor,
9
- AppExecutor
10
- } from "./index-sq9d0jhj.js";
8
+ AppExecutor2
9
+ } from "./index-b3h37zk3.js";
11
10
  import {
12
11
  computeRouteSeedIndex,
13
12
  saveRouteSeedIndex,
14
13
  CsrDevBundler,
15
14
  SsrDevBundler
16
- } from "./index-bgp0h8rx.js";
15
+ } from "./index-nx4q5rey.js";
16
+ import {
17
+ WorkspaceExecutor
18
+ } from "./index-crtscw7c.js";
17
19
  import"./index-bns3wcpc.js";
18
20
  import"./index-j4yvgfhr.js";
21
+ import"./index-1jzdengt.js";
22
+ import"./index-x2bj2vyz.js";
19
23
  import {
20
24
  ServerGraphFile,
21
25
  PagesBundleBuilder
22
- } from "./index-wpgtyek3.js";
26
+ } from "./index-xb1yh9km.js";
23
27
  import {
24
28
  CssCompiler,
25
29
  SsrBaseArtifactBuilder
26
- } from "./index-qwzwzmvf.js";
30
+ } from "./index-71z3pdsn.js";
27
31
  import {
28
32
  CsrArtifactBuilder
29
- } from "./index-6js9ek5c.js";
33
+ } from "./index-vy50ec2q.js";
30
34
  import"./index-62md4dwy.js";
35
+ import"./index-rx8r0cbe.js";
31
36
 
32
37
  // pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
33
38
  import path from "path";
@@ -286,7 +291,7 @@ ${cssText}`).toString(36);
286
291
  workspaceRoot: request.workspaceRoot,
287
292
  repoName: request.repoName
288
293
  });
289
- const app = AppExecutor.from(workspace, request.appName);
294
+ const app = AppExecutor2.from(workspace, request.appName);
290
295
  if (request.pageKeys)
291
296
  app.setPageKeys(request.pageKeys);
292
297
  const orphaned = () => process.exit(1);
@@ -3,36 +3,39 @@ import {
3
3
  App,
4
4
  Workspace,
5
5
  command
6
- } from "./index-23d8gw08.js";
6
+ } from "./index-3gmskeq2.js";
7
7
  import"./index-j4yvgfhr.js";
8
8
  import"./index-bns3wcpc.js";
9
- import"./index-sq9d0jhj.js";
10
- import"./index-70jkxbf6.js";
9
+ import"./index-crtscw7c.js";
10
+ import"./index-b3h37zk3.js";
11
+ import"./index-1jzdengt.js";
12
+ import"./index-x2bj2vyz.js";
13
+ import"./index-xjj0h74q.js";
11
14
  import {
12
15
  PlatformTestRun
13
- } from "./index-6r5f768n.js";
14
- import"./index-3m2cd8mm.js";
15
- import"./index-s0w78805.js";
16
+ } from "./index-c0rnjeqn.js";
17
+ import"./index-g2ebpf0y.js";
18
+ import"./index-9w51aevd.js";
16
19
  import"./index-m9jj544v.js";
17
- import"./index-wpgtyek3.js";
18
- import"./index-6js9ek5c.js";
20
+ import"./index-xb1yh9km.js";
21
+ import"./index-vy50ec2q.js";
19
22
  import {
20
23
  npmRegistryFromEnv,
21
24
  warnIgnoredNpmRegistry
22
25
  } from "./index-ny2k80mv.js";
23
- import"./index-41mfhgq0.js";
24
- import"./index-t8h09yjs.js";
25
- import"./index-mmgtnh44.js";
26
+ import"./index-66jt3m30.js";
27
+ import"./index-37k5vshx.js";
28
+ import"./index-k081wv4r.js";
26
29
  import"./index-b4qq3rq0.js";
27
- import"./index-bmscnt1t.js";
30
+ import"./index-9yfssbgg.js";
28
31
  import"./index-qd7xn2bk.js";
29
32
  import"./index-nd39rssn.js";
30
33
  import"./index-grt0e6kk.js";
31
- import"./index-e5f6czck.js";
32
- import"./index-6fnrhpn1.js";
34
+ import"./index-j33b0n38.js";
35
+ import"./index-f5j09jnj.js";
33
36
  import {
34
37
  CloudScript2
35
- } from "./index-cswgczrv.js";
38
+ } from "./index-hg8s6nae.js";
36
39
  import {
37
40
  writeOption,
38
41
  oneNativeTargetOption,
@@ -43,8 +46,9 @@ import {
43
46
  hostOption,
44
47
  subspaceOption
45
48
  } from "./index-mdjc93e1.js";
46
- import"./index-frvjq1rd.js";
49
+ import"./index-3fbmyb2r.js";
47
50
  import"./index-9bv479q5.js";
51
+ import"./index-rx8r0cbe.js";
48
52
 
49
53
  // pkgs/@akanjs/cli/cloud/cloud.command.ts
50
54
  var localRegistryUrl = () => npmRegistryFromEnv() ?? "http://127.0.0.1:4873";
@@ -0,0 +1,35 @@
1
+ // @bun
2
+ import {
3
+ CloudScript2
4
+ } from "./index-hg8s6nae.js";
5
+ import"./index-c0rnjeqn.js";
6
+ import"./index-9yfssbgg.js";
7
+ import"./index-37k5vshx.js";
8
+ import"./index-f5j09jnj.js";
9
+ import"./index-xjj0h74q.js";
10
+ import"./index-ny2k80mv.js";
11
+ import"./index-k081wv4r.js";
12
+ import"./index-3fbmyb2r.js";
13
+ import"./index-j33b0n38.js";
14
+ import"./index-9w51aevd.js";
15
+ import"./index-g2ebpf0y.js";
16
+ import"./index-m9jj544v.js";
17
+ import"./index-qd7xn2bk.js";
18
+ import"./index-3gmskeq2.js";
19
+ import"./index-9bv479q5.js";
20
+ import"./index-b4qq3rq0.js";
21
+ import"./index-grt0e6kk.js";
22
+ import"./index-nd39rssn.js";
23
+ import"./index-vy50ec2q.js";
24
+ import"./index-66jt3m30.js";
25
+ import"./index-xb1yh9km.js";
26
+ import"./index-rx8r0cbe.js";
27
+ import"./index-b3h37zk3.js";
28
+ import"./index-1jzdengt.js";
29
+ import"./index-x2bj2vyz.js";
30
+ import"./index-crtscw7c.js";
31
+ import"./index-j4yvgfhr.js";
32
+ import"./index-bns3wcpc.js";
33
+ export {
34
+ CloudScript2 as CloudScript
35
+ };
@@ -4,10 +4,13 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-23d8gw08.js";
7
+ } from "./index-3gmskeq2.js";
8
8
  import"./index-j4yvgfhr.js";
9
9
  import"./index-bns3wcpc.js";
10
- import"./index-sq9d0jhj.js";
10
+ import"./index-crtscw7c.js";
11
+ import"./index-b3h37zk3.js";
12
+ import"./index-1jzdengt.js";
13
+ import"./index-x2bj2vyz.js";
11
14
  import {
12
15
  AkanCodeEnv,
13
16
  akanCodePaths2
@@ -17,6 +20,7 @@ import {
17
20
  CodeAgentStreamPrinter2,
18
21
  WorkspaceTrust
19
22
  } from "./index-w15mg3km.js";
23
+ import"./index-rx8r0cbe.js";
20
24
 
21
25
  // pkgs/@akanjs/cli/code/code.runner.ts
22
26
  import { randomBytes } from "crypto";
@@ -78,7 +82,7 @@ class CodeRunner extends runner("code") {
78
82
  async serve(options, listen) {
79
83
  await import("./consoleToStderr-h5bryj94.js");
80
84
  const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
81
- import("./CodeAgent-cr8pvdmv.js"),
85
+ import("./CodeAgent-yd1f54yf.js"),
82
86
  import("./CodeAgentRpcHost-6dzfkvsc.js"),
83
87
  import("./CodeAgentRpcListener-tcwrdvst.js")
84
88
  ]);
@@ -112,8 +116,8 @@ class CodeRunner extends runner("code") {
112
116
  }
113
117
  async tui(options, seed) {
114
118
  const [{ CodeAgent }, { CodeTui }] = await Promise.all([
115
- import("./CodeAgent-cr8pvdmv.js"),
116
- import("./CodeTui-89ssa9rr.js")
119
+ import("./CodeAgent-yd1f54yf.js"),
120
+ import("./CodeTui-h7mksphk.js")
117
121
  ]);
118
122
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
119
123
  const agentOptions = start.agent;
@@ -149,7 +153,7 @@ class CodeRunner extends runner("code") {
149
153
  }
150
154
  }
151
155
  async run(prompt, options) {
152
- const { CodeAgent } = await import("./CodeAgent-cr8pvdmv.js");
156
+ const { CodeAgent } = await import("./CodeAgent-yd1f54yf.js");
153
157
  const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
154
158
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
155
159
  for (const warning of start.warnings)
@@ -2,33 +2,37 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-23d8gw08.js";
5
+ } from "./index-3gmskeq2.js";
6
6
  import"./index-j4yvgfhr.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-sq9d0jhj.js";
9
- import"./index-bper31wr.js";
8
+ import"./index-crtscw7c.js";
9
+ import"./index-b3h37zk3.js";
10
+ import"./index-1jzdengt.js";
11
+ import"./index-x2bj2vyz.js";
12
+ import"./index-5np8zpep.js";
10
13
  import"./index-hj6w4ka1.js";
11
- import"./index-dfsa009c.js";
14
+ import"./index-j2me5hm4.js";
12
15
  import"./index-nd39rssn.js";
13
- import"./index-wm4385pm.js";
14
- import"./index-3m2cd8mm.js";
15
- import"./index-s0w78805.js";
16
+ import"./index-bb7cm060.js";
17
+ import"./index-g2ebpf0y.js";
18
+ import"./index-9w51aevd.js";
16
19
  import"./index-m9jj544v.js";
17
- import"./index-wpgtyek3.js";
18
- import"./index-6js9ek5c.js";
20
+ import"./index-xb1yh9km.js";
21
+ import"./index-vy50ec2q.js";
19
22
  import"./index-j6eeh5d7.js";
20
23
  import"./index-ygdbn9jn.js";
21
24
  import"./index-xgqz3kak.js";
22
- import"./index-c3r23w24.js";
23
- import"./index-p54s83sz.js";
24
- import"./index-aybfcx58.js";
25
- import"./index-adj7qmz9.js";
26
- import"./index-hf9nvwam.js";
25
+ import"./index-1b1p83vq.js";
26
+ import"./index-8bkbexcy.js";
27
+ import"./index-2z8mxgs7.js";
28
+ import"./index-asfx2dhe.js";
29
+ import"./index-hbc0t3ng.js";
27
30
  import"./index-t4d0ckde.js";
28
- import"./index-097bjwvm.js";
31
+ import"./index-6dwk5aej.js";
29
32
  import {
30
33
  ContextScript
31
- } from "./index-h0s3cjm0.js";
34
+ } from "./index-3fn13v8p.js";
35
+ import"./index-rx8r0cbe.js";
32
36
 
33
37
  // pkgs/@akanjs/cli/context/context.command.ts
34
38
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -0,0 +1,34 @@
1
+ // @bun
2
+ import {
3
+ ContextRunner2
4
+ } from "./index-bb7cm060.js";
5
+ import"./index-6dwk5aej.js";
6
+ import"./index-1b1p83vq.js";
7
+ import"./index-hbc0t3ng.js";
8
+ import"./index-asfx2dhe.js";
9
+ import"./index-2z8mxgs7.js";
10
+ import"./index-8bkbexcy.js";
11
+ import"./index-t4d0ckde.js";
12
+ import"./index-5np8zpep.js";
13
+ import"./index-9w51aevd.js";
14
+ import"./index-j2me5hm4.js";
15
+ import"./index-g2ebpf0y.js";
16
+ import"./index-m9jj544v.js";
17
+ import"./index-j6eeh5d7.js";
18
+ import"./index-3gmskeq2.js";
19
+ import"./index-xgqz3kak.js";
20
+ import"./index-ygdbn9jn.js";
21
+ import"./index-nd39rssn.js";
22
+ import"./index-vy50ec2q.js";
23
+ import"./index-xb1yh9km.js";
24
+ import"./index-rx8r0cbe.js";
25
+ import"./index-b3h37zk3.js";
26
+ import"./index-1jzdengt.js";
27
+ import"./index-x2bj2vyz.js";
28
+ import"./index-crtscw7c.js";
29
+ import"./index-j4yvgfhr.js";
30
+ import"./index-hj6w4ka1.js";
31
+ import"./index-bns3wcpc.js";
32
+ export {
33
+ ContextRunner2 as ContextRunner
34
+ };
@@ -2,13 +2,17 @@
2
2
  import {
3
3
  script,
4
4
  command
5
- } from "./index-23d8gw08.js";
5
+ } from "./index-3gmskeq2.js";
6
6
  import"./index-j4yvgfhr.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-sq9d0jhj.js";
8
+ import"./index-crtscw7c.js";
9
+ import"./index-b3h37zk3.js";
10
+ import"./index-1jzdengt.js";
11
+ import"./index-x2bj2vyz.js";
9
12
  import {
10
13
  Prompter2
11
14
  } from "./index-j6eeh5d7.js";
15
+ import"./index-rx8r0cbe.js";
12
16
 
13
17
  // pkgs/@akanjs/cli/guideline/guideline.script.ts
14
18
  import { Logger } from "akanjs/common";
@@ -60,8 +60,13 @@ pages declaring one name never clash, and a registry kept outside the surface re
60
60
  and under every menu and modal — `launcherClassName` / `panelClassName` reach one surface each where
61
61
  `className` reaches both, `intro`
62
62
  replaces the empty-state line — where starter questions go — and `header` adds controls beside the built-in
63
- clear and close. `chrome={false}` drops the header bar whole, for an `inline` chat inside a panel the app
64
- already titles, and `defaultDraft` opens the composer with text in it without sending it. A panel driven by a
63
+ clear and close. `title` takes a node (a mark before the name); give `label` then, as the panel's accessible
64
+ name. The header's parts carry `data-slot="agent-header"`, `"agent-title"` and `"agent-running"`, so
65
+ `panelClassName="[&_[data-slot=agent-running]]:bg-accent"` restyles one without leaning on the markup. A modal,
66
+ menu or popconfirm opened from inside the floating panel, `header` included, stacks above the panel, while
67
+ one the page opens stays under it. While the turn waits on an approval, card or question, a scrim the panel
68
+ opened sinks under the panel so the answer stays reachable, and it comes back once answered. `chrome={false}` drops the header bar whole, for an `inline` chat inside a
69
+ panel the app already titles, and `defaultDraft` opens the composer with text in it without sending it. A panel driven by a
65
70
  controlled `open` with **no** `onOpenChange` draws no close button at all rather than an inert one. Then the
66
71
  slots: `AgentLauncher`, `AgentSteps`, `AgentBubble`, `AgentComposer`, `AgentApproval`,
67
72
  `AgentQuestion`, `AgentToolCard`, `AgentQueued`, `AgentMenu`, `AgentMarkdown` and `AgentCode` each replace one part in `_overrides.tsx`, and
@@ -637,6 +642,11 @@ pages declaring one name never clash, and a registry kept outside the surface re
637
642
  - **A turn that failed says so on the wire.** `error` is a field only this wire has, so a provider mapping reads
638
643
  `text` and drops it; `AgentService.explained` folds it into the text before any adaptor sees it, because an
639
644
  assistant turn that says nothing is one the model repeats.
645
+ - **A failed turn keeps its code for the host.** The relay's `error` event carries `code`: the `Err`'s key, else
646
+ an `AkanError`'s own code, else the status's name. A refusal (401/403) is named by its status alone, whether it is
647
+ answered before the stream opens or inside it, unless the server kept it under its own code. The chat keeps it
648
+ on that assistant message as `errorCode` after translating the text, so a host branches on `message.errorCode`,
649
+ never on the sentence. It is never sent back to the relay.
640
650
  - **↑ and ↓ in the composer walk what was sent**, seeded from the transcript so a persisted chat does not lose
641
651
  only what was just typed. A single-line input has nothing of its own on the vertical arrows, and the
642
652
  half-written draft they were walked away from comes back at the bottom of the walk. **The `/` menu takes those
@@ -112,7 +112,7 @@ Shared by `page()`, `layout()` and `rootLayout()`:
112
112
  .render(render: (args: RouteBaseArgs) => PromiseOrObject<ReactNode>)
113
113
  .config(config: PageConfig)
114
114
  .head(head: HeadStage<RouteBaseArgs>)
115
- .guard(guard: (args: RouteBaseArgs) => void | Promise<void>)
115
+ .guard(guard: (args: RouteBaseArgs, request: RouteGuardRequest) => void | Promise<void>)
116
116
  .loading(render: (args: RouteBaseArgs) => PromiseOrObject<ReactNode>)
117
117
  ```
118
118
 
@@ -60,7 +60,12 @@ body shape — this is the full contract behind them. Before changing route beha
60
60
  `.guard()` throws when the module loads. `fn` receives the route's typed arguments and `lang` (a layout's gets no
61
61
  `children`) and may be `async`. It refuses by moving the router — `router.redirect(href)`, `router.notFound()` — or
62
62
  with `getSelf({ unauthorize })`; `signedIn()` from `@libs/shared/webkit` is that last one, called inside an arrow
63
- (`.guard(() => signedIn())`), because `.guard(signedIn)` would hand the route's arguments to `unauthorize`.
63
+ (`.guard(() => signedIn())`), because `.guard(signedIn)` would take the route's arguments as its option.
64
+ - **A guard's second argument `{ path }` is where the visitor was going** — the in-app path with its search, as
65
+ `router.push` takes it (`undefined` while MCP lists the screen): `.guard((_, { path }) => signedIn({ path }))`
66
+ sends a refused visitor to `/signin?redirect=<path>`. Build a redirect target from it, never an admission rule —
67
+ CSR asks a guard again only when the route or an argument it declared moves. Hand it only to `router.push` or
68
+ `router.redirect`: it can be a raw `//host`, which `window.location` would follow off the site.
64
69
  - **On the server every guard of the chain runs before any layout body starts**, root layout first and before the
65
70
  route's arguments are checked, so a redirect is a real 307 even after an awaited query, and a not-found is a 404 —
66
71
  where a `getSelf({ unauthorize })` inside a layout body under a `.loading()` redirects late after I/O, inside the
@@ -391,7 +391,8 @@ const config: AppConfig = {
391
391
  was opened for while its frames load web content from anywhere, with an init script that runs in the top document
392
392
  only, `evaluate`, a trusted `sendKey`, `capture`, and `loadFailed` / `gone` (it reloads, or is rebuilt, by itself;
393
393
  the reason is `terminated` on macOS, and `rebuildFailed` when a rebuild failed and the view is closed, to be opened
394
- again) / `consoleMessage` events. Every method on Windows; macOS 14+ lacks `sendKey`, `setMuted` and `capture`.
394
+ again) / `consoleMessage` events. Every method on Windows and Linux, where a visible view also holds the keyboard
395
+ focus and no `consoleMessage` is sent; macOS 14+ lacks `sendKey`, `setMuted` and `capture`.
395
396
 
396
397
  ## A Desktop App's Server — `bin` And `trustedDependencies`
397
398