@akanjs/cli 3.3.0-rc.1 → 3.3.0-rc.10

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 (115) hide show
  1. package/.build-stamp +2 -2
  2. package/CodeAgent-cqbf9gsv.js +11 -0
  3. package/{CodeAgentRpcHost-6dzfkvsc.js → CodeAgentRpcHost-pwps2d67.js} +1 -1
  4. package/{CodeTui-zee8atsr.js → CodeTui-ehdr4hgw.js} +46 -6
  5. package/TunnelShare-0p4dy89e.js +16 -0
  6. package/{agent.command-x65f2ags.js → agent.command-x55ncdjm.js} +20 -22
  7. package/akanCode.js +7 -7
  8. package/appExecutor-1ctzymwa.js +11 -0
  9. package/{application.command-azbd1pb2.js → application.command-xpntxnh8.js} +18 -20
  10. package/{applicationBuildRunner-trfxv3pd.js → applicationBuildRunner-19c76791.js} +16 -13
  11. package/buildBatch.proc.js +19 -19
  12. package/{cloud.command-gapp4634.js → cloud.command-p3ybjes7.js} +19 -24
  13. package/cloud.script-0dsyd10v.js +30 -0
  14. package/{code.command-5smx61yf.js → code.command-m6skj1kj.js} +34 -19
  15. package/{context.command-ym5jbkny.js → context.command-3c3nv0d6.js} +20 -22
  16. package/context.runner-yyp7a112.js +32 -0
  17. package/csrArtifactBuilder-mdh9ykn2.js +9 -0
  18. package/{index-2ny1e95c.js → dependencyScanner-93g8tk0r.js} +6 -5
  19. package/{fileSys-q22646yc.js → fileSys-e5mwt73x.js} +1 -1
  20. package/frameworkGraph-aneq2nwy.js +8 -0
  21. package/{guideline.command-zwypaqsh.js → guideline.command-725fq5p0.js} +8 -8
  22. package/guidelines/agentRule/agentRule.instruction.md +46 -7
  23. package/guidelines/akanApi/akanApi.instruction.md +7 -2
  24. package/guidelines/conventions/core.md +6 -11
  25. package/guidelines/conventions/rules/app.md +1 -2
  26. package/guidelines/conventions/rules/auth.md +18 -27
  27. package/guidelines/conventions/rules/config.md +15 -46
  28. package/guidelines/conventions/rules/page.md +19 -34
  29. package/guidelines/conventions/rules/server.md +1 -4
  30. package/guidelines/conventions/rules/ssr.md +3 -4
  31. package/guidelines/conventions/rules/ts.md +2 -1
  32. package/guidelines/cssRule/cssRule.instruction.md +3 -0
  33. package/guidelines/errorCodes/errorCodes.instruction.md +4 -0
  34. package/guidelines/mcpRule/mcpRule.instruction.md +11 -4
  35. package/guidelines/pageRule/pageRule.instruction.md +6 -53
  36. package/guidelines/runtimeRule/runtimeRule.instruction.md +68 -4
  37. package/incrementalBuilder.proc.js +24 -18
  38. package/{index-nc3br31y.js → index-22bwg8hy.js} +2 -2
  39. package/{index-9f3reh2y.js → index-2v38x3ad.js} +12 -1
  40. package/{index-67sd09ag.js → index-3a3vy2xy.js} +8 -8
  41. package/{index-p7beqww9.js → index-3fmzz9sf.js} +18 -18
  42. package/{index-9wh04mqy.js → index-3mj5trqc.js} +65 -11
  43. package/{index-7wf8snar.js → index-3r1crbct.js} +1 -1
  44. package/{index-41a03gkj.js → index-3zkhg65e.js} +19 -19
  45. package/{index-2jmvfa62.js → index-4r8dgm4x.js} +3 -3
  46. package/{index-jek2re5k.js → index-4yvtqcme.js} +8 -8
  47. package/{index-j0wr4e32.js → index-5ahe641t.js} +9 -9
  48. package/{index-0dm25wvf.js → index-7ssr7wq4.js} +1 -1
  49. package/{index-dmcpetwe.js → index-8bta5pnr.js} +98 -23
  50. package/{index-z92zm3wd.js → index-9a9t77hz.js} +29 -11
  51. package/{index-3txdtztz.js → index-9gjcbp2g.js} +1 -1
  52. package/{index-8jtqfye2.js → index-a4gcdffy.js} +488 -53
  53. package/{index-xwwex8rf.js → index-cbm9gzgx.js} +5 -5
  54. package/{index-j6jjmn2r.js → index-ckcc9ab3.js} +62 -21
  55. package/{index-w1zexzpx.js → index-crd99zqs.js} +1 -1
  56. package/{index-612fdtbk.js → index-f4jydw2x.js} +1 -1
  57. package/{index-4ss4gkv3.js → index-fagjtk6m.js} +2 -2
  58. package/{index-ebn9kgea.js → index-fjqapyex.js} +45 -16
  59. package/{index-h901f24n.js → index-h8w1n11r.js} +5 -5
  60. package/{index-275a4r3n.js → index-hxg6ctk2.js} +12 -16
  61. package/{index-78y75t0a.js → index-j2wq064m.js} +6 -7
  62. package/{index-knpm8sdm.js → index-j3fqs8rc.js} +1 -1
  63. package/{index-kfvjzk8r.js → index-kbnvyhy4.js} +3 -3
  64. package/{index-6dzjer7p.js → index-m303nhv6.js} +6 -6
  65. package/{index-dadwp2aw.js → index-nmdmkjt2.js} +271 -39
  66. package/{index-2yn3r67f.js → index-nnmw56fz.js} +6 -6
  67. package/{index-a860mx0m.js → index-pr9nypg7.js} +24 -24
  68. package/{index-s885g0jj.js → index-pyjkbg8e.js} +3 -3
  69. package/{index-zmd9xxgd.js → index-q63nbpv7.js} +3 -3
  70. package/{index-v7ajmsh3.js → index-qecrqpt6.js} +4 -21
  71. package/{index-gt8phqpt.js → index-rdcgz02t.js} +4 -4
  72. package/{index-j592zfqc.js → index-rt7q20sj.js} +1 -1
  73. package/{index-baccvws5.js → index-se7n78fh.js} +1 -1
  74. package/{index-s4nvxpzm.js → index-sxbsrndq.js} +1 -1
  75. package/{index-k6vwww45.js → index-t23dgyaf.js} +7 -7
  76. package/{index-71y6176j.js → index-v16gj2as.js} +86 -66
  77. package/{index-0s7w2085.js → index-vnk1qwgr.js} +4 -4
  78. package/{index-z96ks033.js → index-wkwe91sn.js} +169 -51
  79. package/{index-ybcb9wc8.js → index-wxqp1amd.js} +9 -9
  80. package/{index-p5zh7pmc.js → index-xv3pvdw4.js} +1 -1
  81. package/{index-zfnz878d.js → index-yey1envc.js} +1 -1
  82. package/{index-by2tvsq6.js → index-zyjztrvc.js} +1 -1
  83. package/index.js +30 -28
  84. package/{libExecutor-jc6f8hm6.js → libExecutor-n8hpm8s7.js} +3 -3
  85. package/{library.command-nxvesvhb.js → library.command-8abb26pg.js} +8 -8
  86. package/{localRegistry.command-xz62e4ng.js → localRegistry.command-sa211m1z.js} +18 -23
  87. package/{module.command-aaws9byg.js → module.command-z3cwjf0p.js} +10 -10
  88. package/{package.command-j7hv26p0.js → package.command-akynhtee.js} +9 -12
  89. package/package.json +3 -2
  90. package/{page.command-7yffs7n9.js → page.command-3fpdavk9.js} +8 -8
  91. package/{pipeline.command-7yk0zcng.js → pipeline.command-ca95n8rd.js} +7 -7
  92. package/{pkgExecutor-arxmvx4t.js → pkgExecutor-a73q41vx.js} +3 -3
  93. package/{primitive.command-7a1pt715.js → primitive.command-xwe9ggnf.js} +11 -11
  94. package/{projectTypecheck-f4qhbecd.js → projectTypecheck-7g542ymk.js} +1 -1
  95. package/{prompter-qyggfhqd.js → prompter-d33wmdpa.js} +2 -2
  96. package/{quality.command-c6mvrjh1.js → quality.command-7wz7y8z1.js} +9 -9
  97. package/{repair.command-093adzt9.js → repair.command-dej1qtfq.js} +10 -10
  98. package/{scalar.command-2ex84spb.js → scalar.command-z9qfxnvm.js} +9 -9
  99. package/skills/akan-agent/SKILL.md +8 -1
  100. package/skills/akan-code/SKILL.md +38 -3
  101. package/skills/akan-page/SKILL.md +18 -13
  102. package/skills/akan-runtime/SKILL.md +21 -16
  103. package/skills/akan-service/SKILL.md +2 -2
  104. package/{subspace.command-4n4n4jpv.js → subspace.command-9wekm4gn.js} +11 -13
  105. package/templates/localDev/docker-compose.yaml.template +2 -2
  106. package/{tunnel.command-f7ep1qfa.js → tunnel.command-cxc4h3j8.js} +10 -12
  107. package/{verify.command-zrkxnvct.js → verify.command-j0w9dr5c.js} +15 -17
  108. package/{workflow.command-ks16jegk.js → workflow.command-yt4sz04b.js} +15 -15
  109. package/{workspace.command-ahhfpaag.js → workspace.command-8mp4mcp2.js} +34 -38
  110. package/CodeAgent-fx6088tv.js +0 -11
  111. package/TunnelShare-9ry4vh0y.js +0 -18
  112. package/appExecutor-79azsb2w.js +0 -11
  113. package/cloud.script-3b401efv.js +0 -35
  114. package/context.runner-kctbfsde.js +0 -34
  115. package/dependencyScanner-ge10gb52.js +0 -8
package/.build-stamp CHANGED
@@ -1,2 +1,2 @@
1
- 77fdf91fe8a5acc96c3bd2344a2a71da51a59b22ba1b2ea9febf261b7c0cb22c
2
- 33dad65d-c187-41cd-a72c-72379771f46e
1
+ 984cbdba94dde6966611d879a86121ced462c91a2060fd6621b4b3bff85734b0
2
+ 298221b3-4275-4aa5-b781-a5f2d86cc98b
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import {
3
+ CodeAgent2
4
+ } from "./index-a4gcdffy.js";
5
+ import"./index-22bwg8hy.js";
6
+ import"./index-rwgqba9p.js";
7
+ import"./index-xv3pvdw4.js";
8
+ import"./index-zyjztrvc.js";
9
+ export {
10
+ CodeAgent2 as CodeAgent
11
+ };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgentRpcHost2
4
- } from "./index-s4nvxpzm.js";
4
+ } from "./index-sxbsrndq.js";
5
5
  export {
6
6
  CodeAgentRpcHost2 as CodeAgentRpcHost
7
7
  };
@@ -4,13 +4,13 @@ import {
4
4
  McpTokenStore,
5
5
  McpSignIn,
6
6
  AkanCodeCompaction2
7
- } from "./index-nc3br31y.js";
8
- import"./index-by2tvsq6.js";
9
- import"./index-p5zh7pmc.js";
7
+ } from "./index-22bwg8hy.js";
8
+ import"./index-zyjztrvc.js";
9
+ import"./index-xv3pvdw4.js";
10
10
  import {
11
11
  McpServerConfig,
12
12
  WorkspaceTrust
13
- } from "./index-0dm25wvf.js";
13
+ } from "./index-7ssr7wq4.js";
14
14
  import {
15
15
  CodeTuiCommands2,
16
16
  CodeTuiLines2,
@@ -20,7 +20,7 @@ import {
20
20
  CodeTuiParts2,
21
21
  CodeTuiClipboard2,
22
22
  CodeTuiFiles2
23
- } from "./index-9f3reh2y.js";
23
+ } from "./index-2v38x3ad.js";
24
24
  import {
25
25
  openBrowser
26
26
  } from "./index-9dp031by.js";
@@ -213,6 +213,8 @@ var CodeTuiApp = ({ actions }) => {
213
213
  return actions.answerConfirm(true);
214
214
  if (input === "n" || input === "N")
215
215
  return actions.answerConfirm(false);
216
+ if (input === "a" || input === "A")
217
+ return actions.allowForSession();
216
218
  return;
217
219
  }
218
220
  if (snapshot.mode === "select") {
@@ -626,6 +628,33 @@ class CodeTuiCommandRunner {
626
628
  this.#host.fail(error);
627
629
  }
628
630
  }
631
+ allowed(argument) {
632
+ if (argument === "clear") {
633
+ const count = this.#agent.allowed.clear();
634
+ return this.#host.say(count ? "nothing is allowed any more \xB7 every command is asked about again" : "nothing was allowed");
635
+ }
636
+ if (argument)
637
+ return this.#overlay.open("allowed", "Usage: /allowed [clear]");
638
+ this.#overlay.open("allowed", CodeTuiCommandRunner.allowedList(this.#agent.allowed.names));
639
+ }
640
+ static allowedList(names) {
641
+ const always = "A networking command, a push or publish, rm and a command that runs another (sudo, xargs, sh \u2026) are asked about every time.";
642
+ if (!names.length)
643
+ return [
644
+ "Nothing is allowed for this session yet.",
645
+ "",
646
+ "Answer a at an approval to stop being asked about that command until the session ends.",
647
+ always
648
+ ].join(`
649
+ `);
650
+ return [
651
+ ...names,
652
+ "",
653
+ "These run without asking until this session ends. /allowed clear forgets them.",
654
+ always
655
+ ].join(`
656
+ `);
657
+ }
629
658
  #mcpAuth(verb, name) {
630
659
  const root = this.#agent.workspaceRoot;
631
660
  if (!name)
@@ -1238,12 +1267,15 @@ class CodeTuiQuestion {
1238
1267
  }
1239
1268
  static promptOf(question, approval) {
1240
1269
  if (approval)
1241
- return `approve? ${approval.summary} [y/n]`;
1270
+ return `approve? ${approval.summary} ${approval.remember?.length ? "[y/n/a]" : "[y/n]"}`;
1242
1271
  return question ? `? ${question.prompt}` : "";
1243
1272
  }
1244
1273
  hint(mode, multiSelect) {
1245
1274
  if (this.#typing)
1246
1275
  return "enter answer \xB7 esc back to the choices";
1276
+ const remember = this.#transcript.approval?.remember;
1277
+ if (mode === "confirm" && remember?.length)
1278
+ return `y yes \xB7 n no \xB7 esc no \xB7 a yes, and stop asking about ${remember.join(", ")} this session`;
1247
1279
  if (mode === "confirm")
1248
1280
  return "y yes \xB7 n no \xB7 esc no";
1249
1281
  if (mode === "select")
@@ -1279,6 +1311,11 @@ class CodeTuiQuestion {
1279
1311
  if (question)
1280
1312
  this.answer(question.questionId, { text: value ? "yes" : "no" });
1281
1313
  };
1314
+ allowForSession = () => {
1315
+ const approval = this.#transcript.approval;
1316
+ if (approval?.remember?.length)
1317
+ this.#agent.approve(approval.approvalId, true, "session");
1318
+ };
1282
1319
  open(question) {
1283
1320
  this.#typing = false;
1284
1321
  this.#checked = [];
@@ -1395,6 +1432,7 @@ class CodeTui {
1395
1432
  move: this.#move,
1396
1433
  toggle: this.#question.toggle,
1397
1434
  answerConfirm: this.#question.answerConfirm,
1435
+ allowForSession: this.#question.allowForSession,
1398
1436
  cancel: this.#cancel,
1399
1437
  interrupt: this.#interrupt
1400
1438
  }
@@ -1642,6 +1680,8 @@ ${tools.join(" \xB7 ")}`);
1642
1680
  return this.#overlay.open("agents", this.#runner.agentList());
1643
1681
  case "mcp":
1644
1682
  return this.#runner.mcp(argument);
1683
+ case "allowed":
1684
+ return this.#runner.allowed(argument);
1645
1685
  case "name":
1646
1686
  if (!argument)
1647
1687
  return this.#overlay.open("name", "Usage: /name <what this session is about>");
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import {
3
+ TunnelShare2
4
+ } from "./index-qecrqpt6.js";
5
+ import"./index-pyjkbg8e.js";
6
+ import"./index-fjqapyex.js";
7
+ import"./index-m9jj544v.js";
8
+ import"./index-9a9t77hz.js";
9
+ import"./index-yey1envc.js";
10
+ import"./index-crd99zqs.js";
11
+ import"./index-v16gj2as.js";
12
+ import"./index-j4yvgfhr.js";
13
+ import"./index-zyjztrvc.js";
14
+ export {
15
+ TunnelShare2 as TunnelShare
16
+ };
@@ -2,38 +2,36 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-2yn3r67f.js";
5
+ } from "./index-nnmw56fz.js";
6
6
  import"./index-j4yvgfhr.js";
7
- import"./index-71y6176j.js";
8
- import"./index-by2tvsq6.js";
9
- import"./index-z92zm3wd.js";
10
- import"./index-zfnz878d.js";
11
- import"./index-w1zexzpx.js";
12
- import"./index-zmd9xxgd.js";
7
+ import"./index-v16gj2as.js";
8
+ import"./index-zyjztrvc.js";
9
+ import"./index-9a9t77hz.js";
10
+ import"./index-yey1envc.js";
11
+ import"./index-crd99zqs.js";
12
+ import"./index-q63nbpv7.js";
13
13
  import"./index-trffs83s.js";
14
- import"./index-h901f24n.js";
14
+ import"./index-h8w1n11r.js";
15
15
  import"./index-1p81ecbz.js";
16
- import"./index-p5zh7pmc.js";
17
- import"./index-knpm8sdm.js";
18
- import"./index-z96ks033.js";
19
- import"./index-dmcpetwe.js";
20
- import"./index-ebn9kgea.js";
21
- import"./index-612fdtbk.js";
16
+ import"./index-xv3pvdw4.js";
17
+ import"./index-j3fqs8rc.js";
18
+ import"./index-wkwe91sn.js";
19
+ import"./index-8bta5pnr.js";
20
+ import"./index-fjqapyex.js";
21
+ import"./index-f4jydw2x.js";
22
22
  import"./index-m9jj544v.js";
23
- import"./index-9wh04mqy.js";
24
- import"./index-a860mx0m.js";
25
- import"./index-78y75t0a.js";
26
- import"./index-baccvws5.js";
23
+ import"./index-j2wq064m.js";
24
+ import"./index-se7n78fh.js";
27
25
  import"./index-62md4dwy.js";
28
26
  import"./index-zyb0ebm4.js";
29
27
  import"./index-jf4vk1s0.js";
30
28
  import"./index-t4d0ckde.js";
31
- import"./index-ybcb9wc8.js";
29
+ import"./index-wxqp1amd.js";
32
30
  import {
33
31
  AgentScript
34
- } from "./index-j6jjmn2r.js";
35
- import"./index-j592zfqc.js";
36
- import"./index-7wf8snar.js";
32
+ } from "./index-ckcc9ab3.js";
33
+ import"./index-rt7q20sj.js";
34
+ import"./index-3r1crbct.js";
37
35
 
38
36
  // pkgs/@akanjs/cli/agent/agent.command.ts
39
37
  class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
package/akanCode.js CHANGED
@@ -3,10 +3,10 @@ import {
3
3
  PreviewChrome2,
4
4
  PreviewView2
5
5
  } from "./index-rwgqba9p.js";
6
- import"./index-by2tvsq6.js";
6
+ import"./index-zyjztrvc.js";
7
7
  import {
8
8
  akanCodePaths2
9
- } from "./index-p5zh7pmc.js";
9
+ } from "./index-xv3pvdw4.js";
10
10
  import {
11
11
  AkanEditScope2,
12
12
  DevLogFeedback2,
@@ -34,21 +34,21 @@ import {
34
34
  CodeMailbox2,
35
35
  CodeSessionFork2,
36
36
  CodeAgent2
37
- } from "./index-8jtqfye2.js";
37
+ } from "./index-a4gcdffy.js";
38
38
  import {
39
39
  akanCodeDefaultModel2,
40
40
  akanCodeModel2,
41
41
  akanCodeModelSupportsImages2,
42
42
  akanCodeModelWarnings2,
43
43
  CodeAgentStreamPrinter2
44
- } from "./index-0dm25wvf.js";
44
+ } from "./index-7ssr7wq4.js";
45
45
  import {
46
46
  SubagentPool2,
47
47
  AkanCodeCompaction2
48
- } from "./index-nc3br31y.js";
48
+ } from "./index-22bwg8hy.js";
49
49
  import {
50
50
  CodeAgentRpcHost2
51
- } from "./index-s4nvxpzm.js";
51
+ } from "./index-sxbsrndq.js";
52
52
  import {
53
53
  CodeTuiCommands2,
54
54
  CodeTuiLines2,
@@ -58,7 +58,7 @@ import {
58
58
  CodeTuiParts2,
59
59
  CodeTuiClipboard2,
60
60
  CodeTuiFiles2
61
- } from "./index-9f3reh2y.js";
61
+ } from "./index-2v38x3ad.js";
62
62
  import"./index-9bv479q5.js";
63
63
  export {
64
64
  AkanCli2 as AkanCli,
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import {
3
+ AppExecutor2
4
+ } from "./index-9a9t77hz.js";
5
+ import"./index-yey1envc.js";
6
+ import"./index-v16gj2as.js";
7
+ import"./index-j4yvgfhr.js";
8
+ import"./index-zyjztrvc.js";
9
+ export {
10
+ AppExecutor2 as AppExecutor
11
+ };
@@ -1,7 +1,12 @@
1
1
  // @bun
2
+ import"./index-zyjztrvc.js";
3
+ import"./index-v16gj2as.js";
4
+ import {
5
+ CliError
6
+ } from "./index-j4yvgfhr.js";
2
7
  import {
3
8
  RouteJsBudget
4
- } from "./index-dmcpetwe.js";
9
+ } from "./index-8bta5pnr.js";
5
10
  import {
6
11
  App,
7
12
  Apps,
@@ -10,26 +15,19 @@ import {
10
15
  Exec,
11
16
  Workspace,
12
17
  command
13
- } from "./index-2yn3r67f.js";
14
- import {
15
- CliError
16
- } from "./index-j4yvgfhr.js";
17
- import"./index-71y6176j.js";
18
- import"./index-by2tvsq6.js";
19
- import"./index-z92zm3wd.js";
20
- import"./index-zfnz878d.js";
21
- import"./index-w1zexzpx.js";
22
- import"./index-ebn9kgea.js";
23
- import"./index-612fdtbk.js";
18
+ } from "./index-nnmw56fz.js";
19
+ import"./index-9a9t77hz.js";
20
+ import"./index-yey1envc.js";
21
+ import"./index-crd99zqs.js";
22
+ import"./index-fjqapyex.js";
23
+ import"./index-f4jydw2x.js";
24
24
  import"./index-m9jj544v.js";
25
- import"./index-9wh04mqy.js";
26
- import"./index-a860mx0m.js";
27
- import"./index-2jmvfa62.js";
28
- import"./index-z96ks033.js";
25
+ import"./index-4r8dgm4x.js";
26
+ import"./index-wkwe91sn.js";
29
27
  import"./index-rwgqba9p.js";
30
28
  import {
31
29
  ApplicationScript
32
- } from "./index-41a03gkj.js";
30
+ } from "./index-3zkhg65e.js";
33
31
  import {
34
32
  writeOption,
35
33
  nativeTargetOption,
@@ -37,9 +35,9 @@ import {
37
35
  allowLocalOption,
38
36
  publicEnvOption
39
37
  } from "./index-mdjc93e1.js";
40
- import"./index-j592zfqc.js";
38
+ import"./index-rt7q20sj.js";
41
39
  import"./index-9bv479q5.js";
42
- import"./index-7wf8snar.js";
40
+ import"./index-3r1crbct.js";
43
41
 
44
42
  // pkgs/@akanjs/cli/application/application.command.ts
45
43
  import { MigrationCommand } from "akanjs/server/migration/migrationCommand";
@@ -179,7 +177,7 @@ var inspectTargets = ({ public: target }) => ({
179
177
  }).with(App).option("level", String, { desc: "minimum level: trace, verbose, debug, info, warn, error", nullable: true }).option("grep", String, { desc: "substring the message must contain", nullable: true }).option("endpoint", String, {
180
178
  desc: "endpoint glob(s), comma-separated: mutation:*, query:userList",
181
179
  nullable: true
182
- }).option("trace", String, { desc: "one request's traceId", nullable: true }).option("child", String, { desc: "replica index(es), comma-separated", nullable: true }).option("role", String, {
180
+ }).option("trace", String, { desc: "one request's traceId, or the id its caller sent", nullable: true }).option("child", String, { desc: "replica index(es), comma-separated", nullable: true }).option("role", String, {
183
181
  flag: "R",
184
182
  desc: "process role(s): gateway, federation, batch, all, rsc-worker",
185
183
  nullable: true
@@ -5,29 +5,29 @@ import {
5
5
  parseEnvFile,
6
6
  WorkspaceExecutor,
7
7
  ServerEnvProfile
8
- } from "./index-71y6176j.js";
9
- import"./index-by2tvsq6.js";
8
+ } from "./index-v16gj2as.js";
9
+ import"./index-zyjztrvc.js";
10
10
  import"./index-j4yvgfhr.js";
11
- import"./index-z92zm3wd.js";
12
- import"./index-zfnz878d.js";
13
- import"./index-w1zexzpx.js";
11
+ import"./index-9a9t77hz.js";
12
+ import"./index-yey1envc.js";
13
+ import"./index-crd99zqs.js";
14
14
  import {
15
15
  NARROWABLE_VENDOR_SPECIFIERS
16
- } from "./index-jek2re5k.js";
16
+ } from "./index-4yvtqcme.js";
17
17
  import {
18
18
  FontPruner,
19
19
  precompressArtifacts,
20
20
  RouteJsBudget
21
- } from "./index-dmcpetwe.js";
22
- import"./index-9wh04mqy.js";
21
+ } from "./index-8bta5pnr.js";
22
+ import"./index-3mj5trqc.js";
23
23
  import {
24
24
  AllRoutesBuilder,
25
25
  SsrBaseArtifactBuilder,
26
26
  VendorImportScanner
27
- } from "./index-dadwp2aw.js";
27
+ } from "./index-nmdmkjt2.js";
28
28
  import {
29
- CsrArtifactBuilder
30
- } from "./index-a860mx0m.js";
29
+ CsrArtifactBuilder2
30
+ } from "./index-pr9nypg7.js";
31
31
  import"./index-62md4dwy.js";
32
32
 
33
33
  // pkgs/@akanjs/devkit/app/applicationBuildRunner.ts
@@ -202,6 +202,8 @@ class ApplicationBuildRunner {
202
202
  }
203
203
  async build({ spinner = false } = {}) {
204
204
  this.#spinner = spinner;
205
+ if (this.#verify)
206
+ this.#app.useVerifyDist();
205
207
  const { web, assets, baseDevEnv } = await this.#app.getConfig();
206
208
  const environment = this.#environment ?? baseDevEnv.env;
207
209
  WorkspaceExecutor.assertDeployableEnv(baseDevEnv, environment, "akan build");
@@ -218,7 +220,7 @@ class ApplicationBuildRunner {
218
220
  await this.#app.dist.writeJson("akan.build.json", { profile: "verify", builtAt: new Date().toISOString() });
219
221
  return this.#resultOf(environment, routeJs);
220
222
  }
221
- await this.#runPhase("csr", "Building CSR assets", async () => web.csr ? await new CsrArtifactBuilder(this.#app, "build").build() : null, (result) => result?.outputDir ?? (web.csr ? "skipped" : "disabled by akan.config.ts web.csr"));
223
+ await this.#runPhase("csr", "Building CSR assets", async () => web.csr ? await new CsrArtifactBuilder2(this.#app, "build").build() : null, (result) => result?.outputDir ?? (web.csr ? "skipped" : "disabled by akan.config.ts web.csr"));
222
224
  await this.#runPhase("assets", "Trimming unread static assets", async () => assets.pruneFonts ? await new FontPruner(this.#app, assets).prune() : null, (result) => result ? `${result.removed.length} font file(s) dropped, ${ApplicationBuildRunner.formatBytes(result.freedBytes)} freed; ${result.kept.length} kept` : "disabled by akan.config.ts assets.pruneFonts");
223
225
  await this.#runPhase("compress", "Compressing static assets", () => precompressArtifacts(this.#app), (result) => result.files > 0 ? `${result.files} files, ${ApplicationBuildRunner.formatBytes(result.inputBytes)} -> gzip ${ApplicationBuildRunner.formatBytes(result.outputBytes)} / br ${ApplicationBuildRunner.formatBytes(result.brotliBytes)}` : "no files");
224
226
  const routeJs = await this.#runBudgetPhase(environment);
@@ -334,7 +336,8 @@ class ApplicationBuildRunner {
334
336
  return this.#serverEnv;
335
337
  }
336
338
  #verifyBanner() {
337
- const message = `dist/apps/${this.#app.name} holds the partial output of akan verify, not a build. Run \`akan build ${this.#app.name}\` first.`;
339
+ const { name, dist, workspace } = this.#app;
340
+ const message = `${path3.relative(workspace.workspaceRoot, dist.cwdPath)} holds the partial output of akan verify, not a build. Run \`akan build ${name}\` and start dist/apps/${name}.`;
338
341
  return `console.error(${JSON.stringify(message)});process.exit(1);`;
339
342
  }
340
343
  async#buildBackend() {
@@ -1,44 +1,43 @@
1
1
  // @bun
2
+ import"./index-zyjztrvc.js";
3
+ import {
4
+ WorkspaceExecutor
5
+ } from "./index-v16gj2as.js";
6
+ import"./index-j4yvgfhr.js";
2
7
  import {
3
8
  FontOptimizer,
4
9
  ApplicationBuildReporter
5
- } from "./index-dmcpetwe.js";
10
+ } from "./index-8bta5pnr.js";
6
11
  import {
7
12
  resolveSsrPageEntriesForApp,
8
13
  AppExecutor2
9
- } from "./index-z92zm3wd.js";
14
+ } from "./index-9a9t77hz.js";
10
15
  import {
11
16
  computeRouteSeedIndex,
12
17
  saveRouteSeedIndex,
13
18
  CsrDevBundler,
14
19
  SsrDevBundler
15
- } from "./index-jek2re5k.js";
16
- import {
17
- WorkspaceExecutor
18
- } from "./index-71y6176j.js";
19
- import"./index-by2tvsq6.js";
20
- import"./index-j4yvgfhr.js";
21
- import"./index-zfnz878d.js";
22
- import"./index-w1zexzpx.js";
20
+ } from "./index-4yvtqcme.js";
21
+ import"./index-yey1envc.js";
22
+ import"./index-crd99zqs.js";
23
23
  import {
24
24
  ServerGraphFile,
25
25
  PagesBundleBuilder
26
- } from "./index-9wh04mqy.js";
26
+ } from "./index-3mj5trqc.js";
27
27
  import {
28
28
  CssCompiler,
29
29
  SsrBaseArtifactBuilder
30
- } from "./index-dadwp2aw.js";
30
+ } from "./index-nmdmkjt2.js";
31
31
  import {
32
- CsrArtifactBuilder
33
- } from "./index-a860mx0m.js";
32
+ CsrArtifactBuilder2
33
+ } from "./index-pr9nypg7.js";
34
34
  import"./index-62md4dwy.js";
35
- import"./index-7wf8snar.js";
35
+ import"./index-3r1crbct.js";
36
36
 
37
37
  // pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
38
38
  import path from "path";
39
39
  import { Logger } from "akanjs/common";
40
40
  import { resolveDevCsrMode } from "akanjs/server/hmr/csrDevManifest";
41
-
42
41
  class BuildBatch {
43
42
  #logger = new Logger("BuildBatch");
44
43
  #request;
@@ -99,9 +98,10 @@ class BuildBatch {
99
98
  async#buildBase() {
100
99
  const started = Date.now();
101
100
  try {
102
- const { artifact, optimizedFonts } = await new SsrBaseArtifactBuilder(this.#app).build();
101
+ const { artifact, optimizedFonts, phaseMs } = await new SsrBaseArtifactBuilder(this.#app).build();
103
102
  this.#result.artifact = artifact;
104
103
  this.#result.optimizedFonts = optimizedFonts;
104
+ this.#result.basePhaseMs = phaseMs;
105
105
  this.#logger.verbose(`base-artifact ok buildId=${artifact.pagesBundleBuildId} (${Date.now() - started}ms)`);
106
106
  } catch (err) {
107
107
  this.#fail("base", "base-artifact", err);
@@ -122,7 +122,7 @@ class BuildBatch {
122
122
  async#buildShell() {
123
123
  const started = Date.now();
124
124
  try {
125
- await new CsrArtifactBuilder(this.#app, "start", "en", { cssAssets: this.#request.cssAssets }).buildMcpAppViews();
125
+ await new CsrArtifactBuilder2(this.#app, "start", "en", { cssAssets: this.#request.cssAssets }).buildMcpAppViews();
126
126
  this.#logger.verbose(`mcp-app-views ok (${Date.now() - started}ms)`);
127
127
  } catch (err) {
128
128
  this.#fail("shell", "mcp-app-views", err);
@@ -130,7 +130,7 @@ class BuildBatch {
130
130
  }
131
131
  async#rebuildCsrArtifact(started) {
132
132
  const cssAssets = this.#result.cssAssets ?? this.#request.cssAssets;
133
- await new CsrArtifactBuilder(this.#app, "start", "en", { cssAssets }).build();
133
+ await new CsrArtifactBuilder2(this.#app, "start", "en", { cssAssets }).build();
134
134
  this.#logger.verbose(`csr-rebundle ok (${Date.now() - started}ms)`);
135
135
  if (this.#request.changedFiles.length === 0)
136
136
  return;
@@ -3,39 +3,34 @@ import {
3
3
  App,
4
4
  Workspace,
5
5
  command
6
- } from "./index-2yn3r67f.js";
6
+ } from "./index-nnmw56fz.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-71y6176j.js";
9
- import"./index-by2tvsq6.js";
10
- import"./index-z92zm3wd.js";
11
- import"./index-zfnz878d.js";
12
- import"./index-w1zexzpx.js";
13
- import"./index-s885g0jj.js";
8
+ import"./index-v16gj2as.js";
9
+ import"./index-zyjztrvc.js";
10
+ import"./index-9a9t77hz.js";
11
+ import"./index-yey1envc.js";
12
+ import"./index-crd99zqs.js";
13
+ import"./index-pyjkbg8e.js";
14
14
  import {
15
15
  PlatformTestRun
16
- } from "./index-xwwex8rf.js";
17
- import"./index-ebn9kgea.js";
18
- import"./index-612fdtbk.js";
16
+ } from "./index-cbm9gzgx.js";
17
+ import"./index-fjqapyex.js";
18
+ import"./index-f4jydw2x.js";
19
19
  import"./index-m9jj544v.js";
20
- import"./index-9wh04mqy.js";
21
- import"./index-a860mx0m.js";
22
20
  import {
23
21
  npmRegistryFromEnv,
24
22
  warnIgnoredNpmRegistry
25
23
  } from "./index-jf4vk1s0.js";
26
- import"./index-dmcpetwe.js";
27
- import"./index-2jmvfa62.js";
28
- import"./index-z96ks033.js";
24
+ import"./index-8bta5pnr.js";
25
+ import"./index-4r8dgm4x.js";
26
+ import"./index-wkwe91sn.js";
29
27
  import"./index-rwgqba9p.js";
30
- import"./index-41a03gkj.js";
31
- import"./index-trffs83s.js";
32
- import"./index-p7beqww9.js";
33
- import"./index-baccvws5.js";
34
- import"./index-2ny1e95c.js";
35
- import"./index-275a4r3n.js";
28
+ import"./index-3zkhg65e.js";
29
+ import"./index-se7n78fh.js";
30
+ import"./index-hxg6ctk2.js";
36
31
  import {
37
32
  CloudScript2
38
- } from "./index-k6vwww45.js";
33
+ } from "./index-t23dgyaf.js";
39
34
  import {
40
35
  writeOption,
41
36
  oneNativeTargetOption,
@@ -46,9 +41,9 @@ import {
46
41
  hostOption,
47
42
  subspaceOption
48
43
  } from "./index-mdjc93e1.js";
49
- import"./index-j592zfqc.js";
44
+ import"./index-rt7q20sj.js";
50
45
  import"./index-9bv479q5.js";
51
- import"./index-7wf8snar.js";
46
+ import"./index-3r1crbct.js";
52
47
 
53
48
  // pkgs/@akanjs/cli/cloud/cloud.command.ts
54
49
  var localRegistryUrl = () => npmRegistryFromEnv() ?? "http://127.0.0.1:4873";
@@ -0,0 +1,30 @@
1
+ // @bun
2
+ import {
3
+ CloudScript2
4
+ } from "./index-t23dgyaf.js";
5
+ import"./index-cbm9gzgx.js";
6
+ import"./index-hxg6ctk2.js";
7
+ import"./index-3zkhg65e.js";
8
+ import"./index-4r8dgm4x.js";
9
+ import"./index-pyjkbg8e.js";
10
+ import"./index-jf4vk1s0.js";
11
+ import"./index-se7n78fh.js";
12
+ import"./index-wkwe91sn.js";
13
+ import"./index-rt7q20sj.js";
14
+ import"./index-f4jydw2x.js";
15
+ import"./index-fjqapyex.js";
16
+ import"./index-m9jj544v.js";
17
+ import"./index-nnmw56fz.js";
18
+ import"./index-9bv479q5.js";
19
+ import"./index-rwgqba9p.js";
20
+ import"./index-8bta5pnr.js";
21
+ import"./index-3r1crbct.js";
22
+ import"./index-9a9t77hz.js";
23
+ import"./index-yey1envc.js";
24
+ import"./index-crd99zqs.js";
25
+ import"./index-v16gj2as.js";
26
+ import"./index-j4yvgfhr.js";
27
+ import"./index-zyjztrvc.js";
28
+ export {
29
+ CloudScript2 as CloudScript
30
+ };