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

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 (105) hide show
  1. package/.build-stamp +2 -2
  2. package/CodeAgent-0r05qa30.js +11 -0
  3. package/{CodeTui-zee8atsr.js → CodeTui-brryts78.js} +4 -4
  4. package/TunnelShare-dcx5j51j.js +16 -0
  5. package/{agent.command-x65f2ags.js → agent.command-xn4maemk.js} +20 -22
  6. package/akanCode.js +5 -5
  7. package/appExecutor-qt1nm242.js +11 -0
  8. package/{application.command-azbd1pb2.js → application.command-rv2n5bw8.js} +17 -19
  9. package/{applicationBuildRunner-trfxv3pd.js → applicationBuildRunner-ggkd5qgy.js} +16 -13
  10. package/buildBatch.proc.js +19 -18
  11. package/{cloud.command-gapp4634.js → cloud.command-hgnbps4n.js} +19 -24
  12. package/cloud.script-rzsnzjsg.js +30 -0
  13. package/{code.command-5smx61yf.js → code.command-9gfph3t3.js} +13 -13
  14. package/{context.command-ym5jbkny.js → context.command-dwhz1fwq.js} +20 -22
  15. package/context.runner-gh9rr71p.js +32 -0
  16. package/csrArtifactBuilder-zawt8knq.js +9 -0
  17. package/{index-2ny1e95c.js → dependencyScanner-93g8tk0r.js} +6 -5
  18. package/{fileSys-q22646yc.js → fileSys-e5mwt73x.js} +1 -1
  19. package/frameworkGraph-aneq2nwy.js +8 -0
  20. package/{guideline.command-zwypaqsh.js → guideline.command-v2daz21k.js} +8 -8
  21. package/guidelines/akanApi/akanApi.instruction.md +7 -2
  22. package/guidelines/conventions/core.md +6 -11
  23. package/guidelines/conventions/rules/app.md +1 -2
  24. package/guidelines/conventions/rules/auth.md +18 -27
  25. package/guidelines/conventions/rules/config.md +14 -46
  26. package/guidelines/conventions/rules/page.md +19 -34
  27. package/guidelines/conventions/rules/server.md +1 -4
  28. package/guidelines/conventions/rules/ssr.md +3 -4
  29. package/guidelines/conventions/rules/ts.md +2 -1
  30. package/guidelines/cssRule/cssRule.instruction.md +1 -0
  31. package/guidelines/pageRule/pageRule.instruction.md +6 -53
  32. package/incrementalBuilder.proc.js +24 -18
  33. package/{index-j6jjmn2r.js → index-0k64a38w.js} +62 -21
  34. package/{index-78y75t0a.js → index-0vtpxfx6.js} +6 -7
  35. package/{index-4ss4gkv3.js → index-0vv0a5h8.js} +2 -2
  36. package/{index-j0wr4e32.js → index-1v5eghaa.js} +9 -9
  37. package/{index-kfvjzk8r.js → index-2ktpwjgf.js} +3 -3
  38. package/{index-w1zexzpx.js → index-2t7jnfg5.js} +1 -1
  39. package/{index-p7beqww9.js → index-3fmzz9sf.js} +18 -18
  40. package/{index-8jtqfye2.js → index-58ck1gsm.js} +6 -6
  41. package/{index-0s7w2085.js → index-5cpjkfhk.js} +4 -4
  42. package/{index-71y6176j.js → index-609zbjve.js} +8 -8
  43. package/{index-9wh04mqy.js → index-66b1hrxh.js} +2 -2
  44. package/{index-gt8phqpt.js → index-6yefp97x.js} +4 -4
  45. package/{index-0dm25wvf.js → index-7ssr7wq4.js} +1 -1
  46. package/{index-612fdtbk.js → index-8fg1hvj5.js} +1 -1
  47. package/{index-41a03gkj.js → index-91bcfjej.js} +19 -19
  48. package/{index-275a4r3n.js → index-999e5kp4.js} +11 -15
  49. package/{index-s885g0jj.js → index-arcdcexp.js} +3 -3
  50. package/{index-jek2re5k.js → index-b3kjr19v.js} +4 -4
  51. package/{index-3txdtztz.js → index-bjg9thz8.js} +1 -1
  52. package/{index-baccvws5.js → index-bsew0a12.js} +1 -1
  53. package/{index-zfnz878d.js → index-c67vjafa.js} +1 -1
  54. package/{index-z92zm3wd.js → index-cfzqdsam.js} +29 -11
  55. package/{index-dadwp2aw.js → index-dy5reyet.js} +271 -39
  56. package/{index-67sd09ag.js → index-fqhr7j56.js} +8 -8
  57. package/{index-zmd9xxgd.js → index-g7hm77j6.js} +3 -3
  58. package/{index-h901f24n.js → index-ghs8gtvp.js} +5 -5
  59. package/{index-v7ajmsh3.js → index-h1k3zyyb.js} +1 -1
  60. package/{index-knpm8sdm.js → index-j3fqs8rc.js} +1 -1
  61. package/{index-6dzjer7p.js → index-jzwdwse0.js} +6 -6
  62. package/{index-2jmvfa62.js → index-m4s4tzjr.js} +3 -3
  63. package/{index-xwwex8rf.js → index-ndfxse05.js} +5 -5
  64. package/{index-z96ks033.js → index-rd669r6x.js} +153 -45
  65. package/{index-k6vwww45.js → index-rnhbh45p.js} +7 -7
  66. package/{index-ybcb9wc8.js → index-rwhdcnr8.js} +9 -9
  67. package/{index-a860mx0m.js → index-sn5cka91.js} +24 -24
  68. package/{index-ebn9kgea.js → index-v0gt5ryd.js} +18 -15
  69. package/{index-2yn3r67f.js → index-vznyyaf8.js} +6 -6
  70. package/{index-dmcpetwe.js → index-w18qdjyf.js} +98 -23
  71. package/{index-p5zh7pmc.js → index-xv3pvdw4.js} +1 -1
  72. package/{index-nc3br31y.js → index-yejf6fth.js} +2 -2
  73. package/{index-7wf8snar.js → index-zfmc4380.js} +1 -1
  74. package/{index-j592zfqc.js → index-zx3bv21b.js} +1 -1
  75. package/{index-by2tvsq6.js → index-zyjztrvc.js} +1 -1
  76. package/index.js +30 -28
  77. package/{libExecutor-jc6f8hm6.js → libExecutor-p21kkayq.js} +3 -3
  78. package/{library.command-nxvesvhb.js → library.command-m4gw18qq.js} +8 -8
  79. package/{localRegistry.command-xz62e4ng.js → localRegistry.command-3yq90wgp.js} +18 -23
  80. package/{module.command-aaws9byg.js → module.command-9vfdxapr.js} +10 -10
  81. package/{package.command-j7hv26p0.js → package.command-rt4y8xaf.js} +9 -12
  82. package/package.json +3 -2
  83. package/{page.command-7yffs7n9.js → page.command-4zc20rnv.js} +8 -8
  84. package/{pipeline.command-7yk0zcng.js → pipeline.command-4ekd9xgb.js} +7 -7
  85. package/{pkgExecutor-arxmvx4t.js → pkgExecutor-mh903rz9.js} +3 -3
  86. package/{primitive.command-7a1pt715.js → primitive.command-5g3xe4mf.js} +11 -11
  87. package/{projectTypecheck-f4qhbecd.js → projectTypecheck-bz6smek9.js} +1 -1
  88. package/{prompter-qyggfhqd.js → prompter-d33wmdpa.js} +2 -2
  89. package/{quality.command-c6mvrjh1.js → quality.command-zf8dyc9w.js} +9 -9
  90. package/{repair.command-093adzt9.js → repair.command-sx0eyq4w.js} +10 -10
  91. package/{scalar.command-2ex84spb.js → scalar.command-4bvzmbbh.js} +9 -9
  92. package/skills/akan-page/SKILL.md +18 -13
  93. package/skills/akan-runtime/SKILL.md +21 -16
  94. package/skills/akan-service/SKILL.md +2 -2
  95. package/{subspace.command-4n4n4jpv.js → subspace.command-cxyej1an.js} +11 -13
  96. package/{tunnel.command-f7ep1qfa.js → tunnel.command-gvnv36yf.js} +10 -12
  97. package/{verify.command-zrkxnvct.js → verify.command-yj2mngs0.js} +15 -17
  98. package/{workflow.command-ks16jegk.js → workflow.command-42p9g0w8.js} +15 -15
  99. package/{workspace.command-ahhfpaag.js → workspace.command-91wx03de.js} +34 -38
  100. package/CodeAgent-fx6088tv.js +0 -11
  101. package/TunnelShare-9ry4vh0y.js +0 -18
  102. package/appExecutor-79azsb2w.js +0 -11
  103. package/cloud.script-3b401efv.js +0 -35
  104. package/context.runner-kctbfsde.js +0 -34
  105. package/dependencyScanner-ge10gb52.js +0 -8
package/.build-stamp CHANGED
@@ -1,2 +1,2 @@
1
- 77fdf91fe8a5acc96c3bd2344a2a71da51a59b22ba1b2ea9febf261b7c0cb22c
2
- 33dad65d-c187-41cd-a72c-72379771f46e
1
+ cc2c21b4d2628042c9b709ec3e69f5a224a8765511ebc9efd121825814c3316b
2
+ 0744702a-5da2-459a-9f97-1119b42531e3
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import {
3
+ CodeAgent2
4
+ } from "./index-58ck1gsm.js";
5
+ import"./index-yejf6fth.js";
6
+ import"./index-rwgqba9p.js";
7
+ import"./index-xv3pvdw4.js";
8
+ import"./index-zyjztrvc.js";
9
+ export {
10
+ CodeAgent2 as CodeAgent
11
+ };
@@ -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-yejf6fth.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,
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import {
3
+ TunnelShare2
4
+ } from "./index-h1k3zyyb.js";
5
+ import"./index-arcdcexp.js";
6
+ import"./index-v0gt5ryd.js";
7
+ import"./index-m9jj544v.js";
8
+ import"./index-cfzqdsam.js";
9
+ import"./index-c67vjafa.js";
10
+ import"./index-2t7jnfg5.js";
11
+ import"./index-609zbjve.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-vznyyaf8.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-609zbjve.js";
8
+ import"./index-zyjztrvc.js";
9
+ import"./index-cfzqdsam.js";
10
+ import"./index-c67vjafa.js";
11
+ import"./index-2t7jnfg5.js";
12
+ import"./index-g7hm77j6.js";
13
13
  import"./index-trffs83s.js";
14
- import"./index-h901f24n.js";
14
+ import"./index-ghs8gtvp.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-rd669r6x.js";
19
+ import"./index-w18qdjyf.js";
20
+ import"./index-v0gt5ryd.js";
21
+ import"./index-8fg1hvj5.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-0vtpxfx6.js";
24
+ import"./index-bsew0a12.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-rwhdcnr8.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-0k64a38w.js";
33
+ import"./index-zx3bv21b.js";
34
+ import"./index-zfmc4380.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,18 +34,18 @@ import {
34
34
  CodeMailbox2,
35
35
  CodeSessionFork2,
36
36
  CodeAgent2
37
- } from "./index-8jtqfye2.js";
37
+ } from "./index-58ck1gsm.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-yejf6fth.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-cfzqdsam.js";
5
+ import"./index-c67vjafa.js";
6
+ import"./index-609zbjve.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-609zbjve.js";
4
+ import {
5
+ CliError
6
+ } from "./index-j4yvgfhr.js";
2
7
  import {
3
8
  RouteJsBudget
4
- } from "./index-dmcpetwe.js";
9
+ } from "./index-w18qdjyf.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-vznyyaf8.js";
19
+ import"./index-cfzqdsam.js";
20
+ import"./index-c67vjafa.js";
21
+ import"./index-2t7jnfg5.js";
22
+ import"./index-v0gt5ryd.js";
23
+ import"./index-8fg1hvj5.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-m4s4tzjr.js";
26
+ import"./index-rd669r6x.js";
29
27
  import"./index-rwgqba9p.js";
30
28
  import {
31
29
  ApplicationScript
32
- } from "./index-41a03gkj.js";
30
+ } from "./index-91bcfjej.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-zx3bv21b.js";
41
39
  import"./index-9bv479q5.js";
42
- import"./index-7wf8snar.js";
40
+ import"./index-zfmc4380.js";
43
41
 
44
42
  // pkgs/@akanjs/cli/application/application.command.ts
45
43
  import { MigrationCommand } from "akanjs/server/migration/migrationCommand";
@@ -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-609zbjve.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-cfzqdsam.js";
12
+ import"./index-c67vjafa.js";
13
+ import"./index-2t7jnfg5.js";
14
14
  import {
15
15
  NARROWABLE_VENDOR_SPECIFIERS
16
- } from "./index-jek2re5k.js";
16
+ } from "./index-b3kjr19v.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-w18qdjyf.js";
22
+ import"./index-66b1hrxh.js";
23
23
  import {
24
24
  AllRoutesBuilder,
25
25
  SsrBaseArtifactBuilder,
26
26
  VendorImportScanner
27
- } from "./index-dadwp2aw.js";
27
+ } from "./index-dy5reyet.js";
28
28
  import {
29
- CsrArtifactBuilder
30
- } from "./index-a860mx0m.js";
29
+ CsrArtifactBuilder2
30
+ } from "./index-sn5cka91.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,38 +1,38 @@
1
1
  // @bun
2
+ import"./index-zyjztrvc.js";
3
+ import {
4
+ WorkspaceExecutor
5
+ } from "./index-609zbjve.js";
6
+ import"./index-j4yvgfhr.js";
2
7
  import {
3
8
  FontOptimizer,
4
9
  ApplicationBuildReporter
5
- } from "./index-dmcpetwe.js";
10
+ } from "./index-w18qdjyf.js";
6
11
  import {
7
12
  resolveSsrPageEntriesForApp,
8
13
  AppExecutor2
9
- } from "./index-z92zm3wd.js";
14
+ } from "./index-cfzqdsam.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-b3kjr19v.js";
21
+ import"./index-c67vjafa.js";
22
+ import"./index-2t7jnfg5.js";
23
23
  import {
24
24
  ServerGraphFile,
25
25
  PagesBundleBuilder
26
- } from "./index-9wh04mqy.js";
26
+ } from "./index-66b1hrxh.js";
27
27
  import {
28
28
  CssCompiler,
29
29
  SsrBaseArtifactBuilder
30
- } from "./index-dadwp2aw.js";
30
+ } from "./index-dy5reyet.js";
31
31
  import {
32
- CsrArtifactBuilder
33
- } from "./index-a860mx0m.js";
32
+ CsrArtifactBuilder2
33
+ } from "./index-sn5cka91.js";
34
34
  import"./index-62md4dwy.js";
35
- import"./index-7wf8snar.js";
35
+ import"./index-zfmc4380.js";
36
36
 
37
37
  // pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
38
38
  import path from "path";
@@ -99,9 +99,10 @@ class BuildBatch {
99
99
  async#buildBase() {
100
100
  const started = Date.now();
101
101
  try {
102
- const { artifact, optimizedFonts } = await new SsrBaseArtifactBuilder(this.#app).build();
102
+ const { artifact, optimizedFonts, phaseMs } = await new SsrBaseArtifactBuilder(this.#app).build();
103
103
  this.#result.artifact = artifact;
104
104
  this.#result.optimizedFonts = optimizedFonts;
105
+ this.#result.basePhaseMs = phaseMs;
105
106
  this.#logger.verbose(`base-artifact ok buildId=${artifact.pagesBundleBuildId} (${Date.now() - started}ms)`);
106
107
  } catch (err) {
107
108
  this.#fail("base", "base-artifact", err);
@@ -122,7 +123,7 @@ class BuildBatch {
122
123
  async#buildShell() {
123
124
  const started = Date.now();
124
125
  try {
125
- await new CsrArtifactBuilder(this.#app, "start", "en", { cssAssets: this.#request.cssAssets }).buildMcpAppViews();
126
+ await new CsrArtifactBuilder2(this.#app, "start", "en", { cssAssets: this.#request.cssAssets }).buildMcpAppViews();
126
127
  this.#logger.verbose(`mcp-app-views ok (${Date.now() - started}ms)`);
127
128
  } catch (err) {
128
129
  this.#fail("shell", "mcp-app-views", err);
@@ -130,7 +131,7 @@ class BuildBatch {
130
131
  }
131
132
  async#rebuildCsrArtifact(started) {
132
133
  const cssAssets = this.#result.cssAssets ?? this.#request.cssAssets;
133
- await new CsrArtifactBuilder(this.#app, "start", "en", { cssAssets }).build();
134
+ await new CsrArtifactBuilder2(this.#app, "start", "en", { cssAssets }).build();
134
135
  this.#logger.verbose(`csr-rebundle ok (${Date.now() - started}ms)`);
135
136
  if (this.#request.changedFiles.length === 0)
136
137
  return;
@@ -3,39 +3,34 @@ import {
3
3
  App,
4
4
  Workspace,
5
5
  command
6
- } from "./index-2yn3r67f.js";
6
+ } from "./index-vznyyaf8.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-609zbjve.js";
9
+ import"./index-zyjztrvc.js";
10
+ import"./index-cfzqdsam.js";
11
+ import"./index-c67vjafa.js";
12
+ import"./index-2t7jnfg5.js";
13
+ import"./index-arcdcexp.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-ndfxse05.js";
17
+ import"./index-v0gt5ryd.js";
18
+ import"./index-8fg1hvj5.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-w18qdjyf.js";
25
+ import"./index-m4s4tzjr.js";
26
+ import"./index-rd669r6x.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-91bcfjej.js";
29
+ import"./index-bsew0a12.js";
30
+ import"./index-999e5kp4.js";
36
31
  import {
37
32
  CloudScript2
38
- } from "./index-k6vwww45.js";
33
+ } from "./index-rnhbh45p.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-zx3bv21b.js";
50
45
  import"./index-9bv479q5.js";
51
- import"./index-7wf8snar.js";
46
+ import"./index-zfmc4380.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-rnhbh45p.js";
5
+ import"./index-ndfxse05.js";
6
+ import"./index-999e5kp4.js";
7
+ import"./index-91bcfjej.js";
8
+ import"./index-m4s4tzjr.js";
9
+ import"./index-arcdcexp.js";
10
+ import"./index-jf4vk1s0.js";
11
+ import"./index-bsew0a12.js";
12
+ import"./index-rd669r6x.js";
13
+ import"./index-zx3bv21b.js";
14
+ import"./index-8fg1hvj5.js";
15
+ import"./index-v0gt5ryd.js";
16
+ import"./index-m9jj544v.js";
17
+ import"./index-vznyyaf8.js";
18
+ import"./index-9bv479q5.js";
19
+ import"./index-rwgqba9p.js";
20
+ import"./index-w18qdjyf.js";
21
+ import"./index-zfmc4380.js";
22
+ import"./index-cfzqdsam.js";
23
+ import"./index-c67vjafa.js";
24
+ import"./index-2t7jnfg5.js";
25
+ import"./index-609zbjve.js";
26
+ import"./index-j4yvgfhr.js";
27
+ import"./index-zyjztrvc.js";
28
+ export {
29
+ CloudScript2 as CloudScript
30
+ };
@@ -4,23 +4,23 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-2yn3r67f.js";
7
+ } from "./index-vznyyaf8.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-71y6176j.js";
10
- import"./index-by2tvsq6.js";
11
- import"./index-z92zm3wd.js";
12
- import"./index-zfnz878d.js";
13
- import"./index-w1zexzpx.js";
9
+ import"./index-609zbjve.js";
10
+ import"./index-zyjztrvc.js";
11
+ import"./index-cfzqdsam.js";
12
+ import"./index-c67vjafa.js";
13
+ import"./index-2t7jnfg5.js";
14
14
  import {
15
15
  AkanCodeEnv,
16
16
  akanCodePaths2
17
- } from "./index-p5zh7pmc.js";
17
+ } from "./index-xv3pvdw4.js";
18
18
  import {
19
19
  akanCodeDefaultModel2,
20
20
  CodeAgentStreamPrinter2,
21
21
  WorkspaceTrust
22
- } from "./index-0dm25wvf.js";
23
- import"./index-7wf8snar.js";
22
+ } from "./index-7ssr7wq4.js";
23
+ import"./index-zfmc4380.js";
24
24
 
25
25
  // pkgs/@akanjs/cli/code/code.runner.ts
26
26
  import { randomBytes } from "crypto";
@@ -82,7 +82,7 @@ class CodeRunner extends runner("code") {
82
82
  async serve(options, listen) {
83
83
  await import("./consoleToStderr-h5bryj94.js");
84
84
  const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
85
- import("./CodeAgent-fx6088tv.js"),
85
+ import("./CodeAgent-0r05qa30.js"),
86
86
  import("./CodeAgentRpcHost-6dzfkvsc.js"),
87
87
  import("./CodeAgentRpcListener-tcwrdvst.js")
88
88
  ]);
@@ -116,8 +116,8 @@ class CodeRunner extends runner("code") {
116
116
  }
117
117
  async tui(options, seed) {
118
118
  const [{ CodeAgent }, { CodeTui }] = await Promise.all([
119
- import("./CodeAgent-fx6088tv.js"),
120
- import("./CodeTui-zee8atsr.js")
119
+ import("./CodeAgent-0r05qa30.js"),
120
+ import("./CodeTui-brryts78.js")
121
121
  ]);
122
122
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
123
123
  const agentOptions = start.agent;
@@ -153,7 +153,7 @@ class CodeRunner extends runner("code") {
153
153
  }
154
154
  }
155
155
  async run(prompt, options) {
156
- const { CodeAgent } = await import("./CodeAgent-fx6088tv.js");
156
+ const { CodeAgent } = await import("./CodeAgent-0r05qa30.js");
157
157
  const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
158
158
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
159
159
  for (const warning of start.warnings)
@@ -2,37 +2,35 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-2yn3r67f.js";
5
+ } from "./index-vznyyaf8.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-609zbjve.js";
8
+ import"./index-zyjztrvc.js";
9
+ import"./index-cfzqdsam.js";
10
+ import"./index-c67vjafa.js";
11
+ import"./index-2t7jnfg5.js";
12
+ import"./index-g7hm77j6.js";
13
13
  import"./index-trffs83s.js";
14
- import"./index-h901f24n.js";
14
+ import"./index-ghs8gtvp.js";
15
15
  import"./index-1p81ecbz.js";
16
- import"./index-j0wr4e32.js";
17
- import"./index-knpm8sdm.js";
18
- import"./index-ebn9kgea.js";
19
- import"./index-612fdtbk.js";
16
+ import"./index-1v5eghaa.js";
17
+ import"./index-j3fqs8rc.js";
18
+ import"./index-v0gt5ryd.js";
19
+ import"./index-8fg1hvj5.js";
20
20
  import"./index-m9jj544v.js";
21
- import"./index-9wh04mqy.js";
22
- import"./index-a860mx0m.js";
23
21
  import"./index-zyb0ebm4.js";
24
22
  import"./index-xs9a3ddt.js";
25
- import"./index-kfvjzk8r.js";
26
- import"./index-3txdtztz.js";
27
- import"./index-gt8phqpt.js";
28
- import"./index-6dzjer7p.js";
29
- import"./index-4ss4gkv3.js";
23
+ import"./index-2ktpwjgf.js";
24
+ import"./index-bjg9thz8.js";
25
+ import"./index-6yefp97x.js";
26
+ import"./index-jzwdwse0.js";
27
+ import"./index-0vv0a5h8.js";
30
28
  import"./index-t4d0ckde.js";
31
- import"./index-67sd09ag.js";
29
+ import"./index-fqhr7j56.js";
32
30
  import {
33
31
  ContextScript
34
- } from "./index-0s7w2085.js";
35
- import"./index-7wf8snar.js";
32
+ } from "./index-5cpjkfhk.js";
33
+ import"./index-zfmc4380.js";
36
34
 
37
35
  // pkgs/@akanjs/cli/context/context.command.ts
38
36
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -0,0 +1,32 @@
1
+ // @bun
2
+ import {
3
+ ContextRunner2
4
+ } from "./index-1v5eghaa.js";
5
+ import"./index-fqhr7j56.js";
6
+ import"./index-0vv0a5h8.js";
7
+ import"./index-jzwdwse0.js";
8
+ import"./index-2ktpwjgf.js";
9
+ import"./index-6yefp97x.js";
10
+ import"./index-bjg9thz8.js";
11
+ import"./index-t4d0ckde.js";
12
+ import"./index-ghs8gtvp.js";
13
+ import"./index-g7hm77j6.js";
14
+ import"./index-j3fqs8rc.js";
15
+ import"./index-8fg1hvj5.js";
16
+ import"./index-v0gt5ryd.js";
17
+ import"./index-m9jj544v.js";
18
+ import"./index-vznyyaf8.js";
19
+ import"./index-xs9a3ddt.js";
20
+ import"./index-zyb0ebm4.js";
21
+ import"./index-trffs83s.js";
22
+ import"./index-zfmc4380.js";
23
+ import"./index-cfzqdsam.js";
24
+ import"./index-c67vjafa.js";
25
+ import"./index-2t7jnfg5.js";
26
+ import"./index-609zbjve.js";
27
+ import"./index-j4yvgfhr.js";
28
+ import"./index-1p81ecbz.js";
29
+ import"./index-zyjztrvc.js";
30
+ export {
31
+ ContextRunner2 as ContextRunner
32
+ };
@@ -0,0 +1,9 @@
1
+ // @bun
2
+ import {
3
+ CsrArtifactBuilder2
4
+ } from "./index-sn5cka91.js";
5
+ import"./index-66b1hrxh.js";
6
+ import"./index-zyjztrvc.js";
7
+ export {
8
+ CsrArtifactBuilder2 as CsrArtifactBuilder
9
+ };