@akanjs/cli 3.3.0-rc.5 → 3.3.0-rc.6

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 (41) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-0r05qa30.js → CodeAgent-277k8f4q.js} +2 -2
  3. package/{CodeTui-brryts78.js → CodeTui-rk7zw5mx.js} +1 -1
  4. package/{TunnelShare-dcx5j51j.js → TunnelShare-8pejh5jk.js} +3 -3
  5. package/{agent.command-xn4maemk.js → agent.command-m6scv9dh.js} +5 -5
  6. package/akanCode.js +2 -2
  7. package/{application.command-rv2n5bw8.js → application.command-rdjx4678.js} +4 -4
  8. package/{applicationBuildRunner-ggkd5qgy.js → applicationBuildRunner-6jkbfzmm.js} +4 -4
  9. package/buildBatch.proc.js +4 -4
  10. package/{cloud.command-hgnbps4n.js → cloud.command-4kw1vbs0.js} +7 -7
  11. package/{cloud.script-rzsnzjsg.js → cloud.script-af2js02g.js} +7 -7
  12. package/{code.command-9gfph3t3.js → code.command-87btt2a0.js} +4 -4
  13. package/{context.command-dwhz1fwq.js → context.command-bbq2tdj4.js} +4 -4
  14. package/{context.runner-gh9rr71p.js → context.runner-ma47t32x.js} +3 -3
  15. package/{csrArtifactBuilder-zawt8knq.js → csrArtifactBuilder-wrqsfn1s.js} +2 -2
  16. package/incrementalBuilder.proc.js +2 -2
  17. package/{index-rwhdcnr8.js → index-3h0zqg41.js} +1 -1
  18. package/{index-arcdcexp.js → index-4gxaerb7.js} +1 -1
  19. package/{index-yejf6fth.js → index-5ptvewmq.js} +1 -1
  20. package/{index-v0gt5ryd.js → index-8a4mnn65.js} +2 -2
  21. package/{index-rd669r6x.js → index-8zxkjybr.js} +3 -3
  22. package/{index-b3kjr19v.js → index-94h6dxc3.js} +1 -1
  23. package/{index-h1k3zyyb.js → index-9jm7t0h5.js} +1 -1
  24. package/{index-0k64a38w.js → index-bwhja4dj.js} +2 -2
  25. package/{index-5cpjkfhk.js → index-c1t41tk8.js} +1 -1
  26. package/{index-66b1hrxh.js → index-eap5y4w5.js} +62 -8
  27. package/{index-8fg1hvj5.js → index-ewp82tjf.js} +1 -1
  28. package/{index-dy5reyet.js → index-hfqc5n8e.js} +2 -2
  29. package/{index-58ck1gsm.js → index-k29kg5c1.js} +3 -3
  30. package/{index-rnhbh45p.js → index-nd69pk6t.js} +4 -4
  31. package/{index-sn5cka91.js → index-nd7tzzd9.js} +1 -1
  32. package/{index-91bcfjej.js → index-sxnszzh7.js} +3 -3
  33. package/{index-1v5eghaa.js → index-vq0y1vr4.js} +2 -2
  34. package/{index-ndfxse05.js → index-zas8gm0a.js} +2 -2
  35. package/index.js +10 -10
  36. package/{localRegistry.command-3yq90wgp.js → localRegistry.command-edtbn4cy.js} +6 -6
  37. package/package.json +2 -2
  38. package/{subspace.command-cxyej1an.js → subspace.command-tg85k9ry.js} +3 -3
  39. package/{tunnel.command-gvnv36yf.js → tunnel.command-t629kcm0.js} +3 -3
  40. package/{verify.command-yj2mngs0.js → verify.command-837mthft.js} +4 -4
  41. package/{workspace.command-91wx03de.js → workspace.command-12egv8xq.js} +11 -11
package/.build-stamp CHANGED
@@ -1,2 +1,2 @@
1
- 578f04cd003d54a417bcfe4eb0fb0bb85d08339e42e50e811398414dd35978cd
2
- 889bdbd3-ee0a-4390-b7dd-e19000451d02
1
+ 0917854338c3ae0ecc3c432fe00fb1071025024878272256c64b08505db90953
2
+ 9b70d56e-5148-4b5c-a5bd-bdcc08be9b07
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgent2
4
- } from "./index-58ck1gsm.js";
5
- import"./index-yejf6fth.js";
4
+ } from "./index-k29kg5c1.js";
5
+ import"./index-5ptvewmq.js";
6
6
  import"./index-rwgqba9p.js";
7
7
  import"./index-xv3pvdw4.js";
8
8
  import"./index-zyjztrvc.js";
@@ -4,7 +4,7 @@ import {
4
4
  McpTokenStore,
5
5
  McpSignIn,
6
6
  AkanCodeCompaction2
7
- } from "./index-yejf6fth.js";
7
+ } from "./index-5ptvewmq.js";
8
8
  import"./index-zyjztrvc.js";
9
9
  import"./index-xv3pvdw4.js";
10
10
  import {
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  TunnelShare2
4
- } from "./index-h1k3zyyb.js";
5
- import"./index-arcdcexp.js";
6
- import"./index-v0gt5ryd.js";
4
+ } from "./index-9jm7t0h5.js";
5
+ import"./index-4gxaerb7.js";
6
+ import"./index-8a4mnn65.js";
7
7
  import"./index-m9jj544v.js";
8
8
  import"./index-cfzqdsam.js";
9
9
  import"./index-c67vjafa.js";
@@ -15,10 +15,10 @@ import"./index-ghs8gtvp.js";
15
15
  import"./index-1p81ecbz.js";
16
16
  import"./index-xv3pvdw4.js";
17
17
  import"./index-j3fqs8rc.js";
18
- import"./index-rd669r6x.js";
18
+ import"./index-8zxkjybr.js";
19
19
  import"./index-w18qdjyf.js";
20
- import"./index-v0gt5ryd.js";
21
- import"./index-8fg1hvj5.js";
20
+ import"./index-8a4mnn65.js";
21
+ import"./index-ewp82tjf.js";
22
22
  import"./index-m9jj544v.js";
23
23
  import"./index-0vtpxfx6.js";
24
24
  import"./index-bsew0a12.js";
@@ -26,10 +26,10 @@ import"./index-62md4dwy.js";
26
26
  import"./index-zyb0ebm4.js";
27
27
  import"./index-jf4vk1s0.js";
28
28
  import"./index-t4d0ckde.js";
29
- import"./index-rwhdcnr8.js";
29
+ import"./index-3h0zqg41.js";
30
30
  import {
31
31
  AgentScript
32
- } from "./index-0k64a38w.js";
32
+ } from "./index-bwhja4dj.js";
33
33
  import"./index-zx3bv21b.js";
34
34
  import"./index-zfmc4380.js";
35
35
 
package/akanCode.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  CodeMailbox2,
35
35
  CodeSessionFork2,
36
36
  CodeAgent2
37
- } from "./index-58ck1gsm.js";
37
+ } from "./index-k29kg5c1.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-yejf6fth.js";
48
+ } from "./index-5ptvewmq.js";
49
49
  import {
50
50
  CodeAgentRpcHost2
51
51
  } from "./index-s4nvxpzm.js";
@@ -19,15 +19,15 @@ import {
19
19
  import"./index-cfzqdsam.js";
20
20
  import"./index-c67vjafa.js";
21
21
  import"./index-2t7jnfg5.js";
22
- import"./index-v0gt5ryd.js";
23
- import"./index-8fg1hvj5.js";
22
+ import"./index-8a4mnn65.js";
23
+ import"./index-ewp82tjf.js";
24
24
  import"./index-m9jj544v.js";
25
25
  import"./index-m4s4tzjr.js";
26
- import"./index-rd669r6x.js";
26
+ import"./index-8zxkjybr.js";
27
27
  import"./index-rwgqba9p.js";
28
28
  import {
29
29
  ApplicationScript
30
- } from "./index-91bcfjej.js";
30
+ } from "./index-sxnszzh7.js";
31
31
  import {
32
32
  writeOption,
33
33
  nativeTargetOption,
@@ -13,21 +13,21 @@ import"./index-c67vjafa.js";
13
13
  import"./index-2t7jnfg5.js";
14
14
  import {
15
15
  NARROWABLE_VENDOR_SPECIFIERS
16
- } from "./index-b3kjr19v.js";
16
+ } from "./index-94h6dxc3.js";
17
17
  import {
18
18
  FontPruner,
19
19
  precompressArtifacts,
20
20
  RouteJsBudget
21
21
  } from "./index-w18qdjyf.js";
22
- import"./index-66b1hrxh.js";
22
+ import"./index-eap5y4w5.js";
23
23
  import {
24
24
  AllRoutesBuilder,
25
25
  SsrBaseArtifactBuilder,
26
26
  VendorImportScanner
27
- } from "./index-dy5reyet.js";
27
+ } from "./index-hfqc5n8e.js";
28
28
  import {
29
29
  CsrArtifactBuilder2
30
- } from "./index-sn5cka91.js";
30
+ } from "./index-nd7tzzd9.js";
31
31
  import"./index-62md4dwy.js";
32
32
 
33
33
  // pkgs/@akanjs/devkit/app/applicationBuildRunner.ts
@@ -17,20 +17,20 @@ import {
17
17
  saveRouteSeedIndex,
18
18
  CsrDevBundler,
19
19
  SsrDevBundler
20
- } from "./index-b3kjr19v.js";
20
+ } from "./index-94h6dxc3.js";
21
21
  import"./index-c67vjafa.js";
22
22
  import"./index-2t7jnfg5.js";
23
23
  import {
24
24
  ServerGraphFile,
25
25
  PagesBundleBuilder
26
- } from "./index-66b1hrxh.js";
26
+ } from "./index-eap5y4w5.js";
27
27
  import {
28
28
  CssCompiler,
29
29
  SsrBaseArtifactBuilder
30
- } from "./index-dy5reyet.js";
30
+ } from "./index-hfqc5n8e.js";
31
31
  import {
32
32
  CsrArtifactBuilder2
33
- } from "./index-sn5cka91.js";
33
+ } from "./index-nd7tzzd9.js";
34
34
  import"./index-62md4dwy.js";
35
35
  import"./index-zfmc4380.js";
36
36
 
@@ -10,12 +10,12 @@ import"./index-zyjztrvc.js";
10
10
  import"./index-cfzqdsam.js";
11
11
  import"./index-c67vjafa.js";
12
12
  import"./index-2t7jnfg5.js";
13
- import"./index-arcdcexp.js";
13
+ import"./index-4gxaerb7.js";
14
14
  import {
15
15
  PlatformTestRun
16
- } from "./index-ndfxse05.js";
17
- import"./index-v0gt5ryd.js";
18
- import"./index-8fg1hvj5.js";
16
+ } from "./index-zas8gm0a.js";
17
+ import"./index-8a4mnn65.js";
18
+ import"./index-ewp82tjf.js";
19
19
  import"./index-m9jj544v.js";
20
20
  import {
21
21
  npmRegistryFromEnv,
@@ -23,14 +23,14 @@ import {
23
23
  } from "./index-jf4vk1s0.js";
24
24
  import"./index-w18qdjyf.js";
25
25
  import"./index-m4s4tzjr.js";
26
- import"./index-rd669r6x.js";
26
+ import"./index-8zxkjybr.js";
27
27
  import"./index-rwgqba9p.js";
28
- import"./index-91bcfjej.js";
28
+ import"./index-sxnszzh7.js";
29
29
  import"./index-bsew0a12.js";
30
30
  import"./index-999e5kp4.js";
31
31
  import {
32
32
  CloudScript2
33
- } from "./index-rnhbh45p.js";
33
+ } from "./index-nd69pk6t.js";
34
34
  import {
35
35
  writeOption,
36
36
  oneNativeTargetOption,
@@ -1,18 +1,18 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript2
4
- } from "./index-rnhbh45p.js";
5
- import"./index-ndfxse05.js";
4
+ } from "./index-nd69pk6t.js";
5
+ import"./index-zas8gm0a.js";
6
6
  import"./index-999e5kp4.js";
7
- import"./index-91bcfjej.js";
7
+ import"./index-sxnszzh7.js";
8
8
  import"./index-m4s4tzjr.js";
9
- import"./index-arcdcexp.js";
9
+ import"./index-4gxaerb7.js";
10
10
  import"./index-jf4vk1s0.js";
11
11
  import"./index-bsew0a12.js";
12
- import"./index-rd669r6x.js";
12
+ import"./index-8zxkjybr.js";
13
13
  import"./index-zx3bv21b.js";
14
- import"./index-8fg1hvj5.js";
15
- import"./index-v0gt5ryd.js";
14
+ import"./index-ewp82tjf.js";
15
+ import"./index-8a4mnn65.js";
16
16
  import"./index-m9jj544v.js";
17
17
  import"./index-vznyyaf8.js";
18
18
  import"./index-9bv479q5.js";
@@ -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-0r05qa30.js"),
85
+ import("./CodeAgent-277k8f4q.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-0r05qa30.js"),
120
- import("./CodeTui-brryts78.js")
119
+ import("./CodeAgent-277k8f4q.js"),
120
+ import("./CodeTui-rk7zw5mx.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-0r05qa30.js");
156
+ const { CodeAgent } = await import("./CodeAgent-277k8f4q.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)
@@ -13,10 +13,10 @@ import"./index-g7hm77j6.js";
13
13
  import"./index-trffs83s.js";
14
14
  import"./index-ghs8gtvp.js";
15
15
  import"./index-1p81ecbz.js";
16
- import"./index-1v5eghaa.js";
16
+ import"./index-vq0y1vr4.js";
17
17
  import"./index-j3fqs8rc.js";
18
- import"./index-v0gt5ryd.js";
19
- import"./index-8fg1hvj5.js";
18
+ import"./index-8a4mnn65.js";
19
+ import"./index-ewp82tjf.js";
20
20
  import"./index-m9jj544v.js";
21
21
  import"./index-zyb0ebm4.js";
22
22
  import"./index-xs9a3ddt.js";
@@ -29,7 +29,7 @@ import"./index-t4d0ckde.js";
29
29
  import"./index-fqhr7j56.js";
30
30
  import {
31
31
  ContextScript
32
- } from "./index-5cpjkfhk.js";
32
+ } from "./index-c1t41tk8.js";
33
33
  import"./index-zfmc4380.js";
34
34
 
35
35
  // pkgs/@akanjs/cli/context/context.command.ts
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ContextRunner2
4
- } from "./index-1v5eghaa.js";
4
+ } from "./index-vq0y1vr4.js";
5
5
  import"./index-fqhr7j56.js";
6
6
  import"./index-0vv0a5h8.js";
7
7
  import"./index-jzwdwse0.js";
@@ -12,8 +12,8 @@ import"./index-t4d0ckde.js";
12
12
  import"./index-ghs8gtvp.js";
13
13
  import"./index-g7hm77j6.js";
14
14
  import"./index-j3fqs8rc.js";
15
- import"./index-8fg1hvj5.js";
16
- import"./index-v0gt5ryd.js";
15
+ import"./index-ewp82tjf.js";
16
+ import"./index-8a4mnn65.js";
17
17
  import"./index-m9jj544v.js";
18
18
  import"./index-vznyyaf8.js";
19
19
  import"./index-xs9a3ddt.js";
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  CsrArtifactBuilder2
4
- } from "./index-sn5cka91.js";
5
- import"./index-66b1hrxh.js";
4
+ } from "./index-nd7tzzd9.js";
5
+ import"./index-eap5y4w5.js";
6
6
  import"./index-zyjztrvc.js";
7
7
  export {
8
8
  CsrArtifactBuilder2 as CsrArtifactBuilder
@@ -17,7 +17,7 @@ import"./index-c67vjafa.js";
17
17
  import"./index-2t7jnfg5.js";
18
18
  import {
19
19
  ServerGraphFile
20
- } from "./index-66b1hrxh.js";
20
+ } from "./index-eap5y4w5.js";
21
21
  import {
22
22
  GraphClientEntryDiscovery,
23
23
  RouteClientBuilder,
@@ -27,7 +27,7 @@ import {
27
27
  DevChangePlanner,
28
28
  DevGeneratedIndexSync,
29
29
  SsrDevBundler
30
- } from "./index-b3kjr19v.js";
30
+ } from "./index-94h6dxc3.js";
31
31
  import"./index-trffs83s.js";
32
32
  import {
33
33
  FrameworkGraph2
@@ -25,7 +25,7 @@ import {
25
25
  } from "./index-0vtpxfx6.js";
26
26
  import {
27
27
  VerifyScope
28
- } from "./index-rd669r6x.js";
28
+ } from "./index-8zxkjybr.js";
29
29
 
30
30
  // pkgs/@akanjs/cli/verify/verifyComments.ts
31
31
  import { existsSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  UpdatePackFolder,
10
10
  NativePublicEnv,
11
11
  NativeApp
12
- } from "./index-v0gt5ryd.js";
12
+ } from "./index-8a4mnn65.js";
13
13
  import {
14
14
  ExitCodeError
15
15
  } from "./index-vznyyaf8.js";
@@ -157,7 +157,7 @@ class SubagentPool2 {
157
157
  }
158
158
  }
159
159
  async#run(id, kind, prompt, signal) {
160
- const { CodeAgent } = await import("./CodeAgent-0r05qa30.js");
160
+ const { CodeAgent } = await import("./CodeAgent-277k8f4q.js");
161
161
  const budget = this.#options.parent.tools.subagent;
162
162
  const child = SubagentPool2.childOf(this.#options.parent, kind);
163
163
  const model = this.#options.model?.();
@@ -1127,14 +1127,14 @@ class NativePublicEnv {
1127
1127
  return [...new Set([...Object.keys(a), ...Object.keys(b)])].filter((key) => a[key] !== b[key]).sort((x, y) => x < y ? -1 : x > y ? 1 : 0);
1128
1128
  }
1129
1129
  static async built(app) {
1130
- const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-zawt8knq.js");
1130
+ const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-wrqsfn1s.js");
1131
1131
  const file = Bun.file(CsrArtifactBuilder.publicEnvPath(app));
1132
1132
  if (!await file.exists())
1133
1133
  return null;
1134
1134
  return NativePublicEnv.of(await file.json());
1135
1135
  }
1136
1136
  static async inlined(app) {
1137
- const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-zawt8knq.js");
1137
+ const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-wrqsfn1s.js");
1138
1138
  const file = Bun.file(CsrArtifactBuilder.publicEnvPath(app));
1139
1139
  const env = await file.exists() ? await file.json() : process.env;
1140
1140
  return Object.fromEntries(Object.entries(env).flatMap(([key, value]) => key.startsWith("AKAN_PUBLIC_") && typeof value === "string" ? [[key, value]] : []));
@@ -65,10 +65,10 @@ import {
65
65
  UpdateUploader,
66
66
  NativePublicEnv,
67
67
  NativeApp
68
- } from "./index-v0gt5ryd.js";
68
+ } from "./index-8a4mnn65.js";
69
69
  import {
70
70
  DesktopServerStage
71
- } from "./index-8fg1hvj5.js";
71
+ } from "./index-ewp82tjf.js";
72
72
  import {
73
73
  resolveMobileTargets,
74
74
  resolveAppId
@@ -2481,7 +2481,7 @@ var reportsNoTestFile = (exec) => {
2481
2481
  };
2482
2482
 
2483
2483
  // pkgs/@akanjs/cli/application/application.runner.ts
2484
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-ggkd5qgy.js")).ApplicationBuildRunner;
2484
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-6jkbfzmm.js")).ApplicationBuildRunner;
2485
2485
  var loadPrompts = async () => await import("@inquirer/prompts");
2486
2486
 
2487
2487
  class ApplicationRunner extends runner("application") {
@@ -18,7 +18,7 @@ import {
18
18
  CsrDevPaths,
19
19
  PagesEntrySourceGenerator,
20
20
  PagesBundleBuilder
21
- } from "./index-66b1hrxh.js";
21
+ } from "./index-eap5y4w5.js";
22
22
  import {
23
23
  FileSys2
24
24
  } from "./index-zyjztrvc.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-arcdcexp.js";
5
+ } from "./index-4gxaerb7.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
@@ -40,7 +40,7 @@ import {
40
40
  import {
41
41
  ApplicationRunner,
42
42
  VerifyScope
43
- } from "./index-rd669r6x.js";
43
+ } from "./index-8zxkjybr.js";
44
44
  import {
45
45
  WorkspaceRunner
46
46
  } from "./index-0vtpxfx6.js";
@@ -48,7 +48,7 @@ import {
48
48
  VerifyComments,
49
49
  VerifyPipeline,
50
50
  VerifyReport
51
- } from "./index-rwhdcnr8.js";
51
+ } from "./index-3h0zqg41.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/agent/agent.script.ts
54
54
  import { Logger as Logger3 } from "akanjs/common";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-ghs8gtvp.js";
11
11
  import {
12
12
  ContextRunner2
13
- } from "./index-1v5eghaa.js";
13
+ } from "./index-vq0y1vr4.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/context/context.script.ts
16
16
  import { Logger } from "akanjs/common";
@@ -771,7 +771,7 @@ class CsrEntryFiles {
771
771
 
772
772
  // pkgs/@akanjs/devkit/frontendBuild/pagesBundleBuilder.ts
773
773
  import fs4 from "fs";
774
- import path9 from "path";
774
+ import path10 from "path";
775
775
  import ts3 from "typescript";
776
776
 
777
777
  // pkgs/@akanjs/devkit/transforms/externalizeFrameworkPlugin.ts
@@ -981,14 +981,67 @@ ${entries.join(`
981
981
  }
982
982
  }
983
983
 
984
+ // pkgs/@akanjs/devkit/frontendBuild/rscServerRendererGuard.ts
985
+ import { realpathSync } from "fs";
986
+ import path8 from "path";
987
+ var SERVER_RENDERER_RE = /^react-dom\/server(?:\.\w+)?$/;
988
+
989
+ class RscServerRendererGuard {
990
+ static offenders(metafile) {
991
+ const offenders = [];
992
+ const included = new Set(Object.values(metafile.outputs).flatMap((output) => Object.entries(output.inputs).filter(([, { bytesInOutput }]) => bytesInOutput > 0).map(([input]) => input)));
993
+ for (const input of included)
994
+ for (const edge of metafile.inputs[input]?.imports ?? [])
995
+ if (edge.external && edge.kind === "import-statement" && SERVER_RENDERER_RE.test(edge.path))
996
+ offenders.push({ input, specifier: edge.path });
997
+ return offenders;
998
+ }
999
+ static chain(metafile, target) {
1000
+ const entries = Object.values(metafile.outputs).flatMap((output) => output.entryPoint ? [output.entryPoint] : []);
1001
+ const reached = new Map(entries.map((entry) => [entry, null]));
1002
+ const queue = [...entries];
1003
+ for (let input = queue.shift();input !== undefined && !reached.has(target); input = queue.shift())
1004
+ for (const edge of metafile.inputs[input]?.imports ?? []) {
1005
+ if (edge.external || reached.has(edge.path))
1006
+ continue;
1007
+ reached.set(edge.path, {
1008
+ from: input,
1009
+ dynamic: edge.kind === "dynamic-import" || edge.kind === "require-call"
1010
+ });
1011
+ queue.push(edge.path);
1012
+ }
1013
+ const chain = [];
1014
+ for (let input = target;input !== undefined; ) {
1015
+ const edge = reached.get(input);
1016
+ chain.unshift({ input, dynamic: edge?.dynamic ?? false });
1017
+ input = edge?.from;
1018
+ }
1019
+ return chain;
1020
+ }
1021
+ static assert(metafile, workspaceRoot) {
1022
+ const [offender] = metafile ? RscServerRendererGuard.offenders(metafile) : [];
1023
+ if (!metafile || !offender)
1024
+ return;
1025
+ const root = realpathSync(workspaceRoot);
1026
+ const shown = (input) => path8.relative(root, path8.resolve(input)) || input;
1027
+ const lines = RscServerRendererGuard.chain(metafile, offender.input).map(({ input, dynamic }, idx) => ` ${idx === 0 ? "" : dynamic ? "\u2192 import() " : "\u2192 "}${shown(input)}`);
1028
+ throw new Error([
1029
+ `[PagesBundleBuilder] The server pages bundle imports ${offender.specifier} as it loads, and the RSC worker runs under the react-server condition, where that import throws. It is reached through:`,
1030
+ ...lines,
1031
+ "A module in the page graph that imports the app's server entry, or anything that starts the server, brings the SSR renderer with it: import only what that module uses, or hand it in from the code that boots the server."
1032
+ ].join(`
1033
+ `));
1034
+ }
1035
+ }
1036
+
984
1037
  // pkgs/@akanjs/devkit/frontendBuild/serverGraphFile.ts
985
1038
  import fs3 from "fs";
986
- import path8 from "path";
1039
+ import path9 from "path";
987
1040
  class ServerGraphFile {
988
1041
  static fileName = "server-graph.json";
989
1042
  static #cache = null;
990
1043
  static async read(artifactDir) {
991
- const file = path8.join(artifactDir, ServerGraphFile.fileName);
1044
+ const file = path9.join(artifactDir, ServerGraphFile.fileName);
992
1045
  const stat = fs3.statSync(file, { throwIfNoEntry: false });
993
1046
  if (!stat)
994
1047
  return null;
@@ -1002,7 +1055,7 @@ class ServerGraphFile {
1002
1055
  return graph;
1003
1056
  }
1004
1057
  static async write(artifactDir, graph) {
1005
- const file = path8.join(artifactDir, ServerGraphFile.fileName);
1058
+ const file = path9.join(artifactDir, ServerGraphFile.fileName);
1006
1059
  const temp = `${file}.${process.pid}.tmp`;
1007
1060
  await Bun.write(temp, JSON.stringify(graph));
1008
1061
  await FileSys2.replace(temp, file);
@@ -1087,7 +1140,7 @@ class PagesBundleBuilder {
1087
1140
  asset: "assets/[name]-[hash].[ext]"
1088
1141
  },
1089
1142
  define: bundleDefine(this.#app, this.#command, "ssr"),
1090
- metafile: dev,
1143
+ metafile: true,
1091
1144
  plugins: [
1092
1145
  ...this.#serverEnv ? [this.#serverEnv] : [],
1093
1146
  PagesBundleBuilder.createPagesEntryPlugin(entrySource),
@@ -1105,16 +1158,17 @@ class PagesBundleBuilder {
1105
1158
  });
1106
1159
  if (!result.success)
1107
1160
  throw new AggregateError(result.logs, "[PagesBundleBuilder] Bun.build failed");
1161
+ RscServerRendererGuard.assert(result.metafile, workspaceRoot);
1108
1162
  const entryArtifact = result.outputs.find((a) => a.kind === "entry-point");
1109
1163
  if (!entryArtifact)
1110
1164
  throw new Error("[PagesBundleBuilder] Bun.build emitted no entry-point artifact");
1111
- const bundlePath = path9.resolve(entryArtifact.path);
1165
+ const bundlePath = path10.resolve(entryArtifact.path);
1112
1166
  const buildId = Date.now();
1113
1167
  if (dev && result.metafile)
1114
1168
  await ServerGraphFile.write(this.#artifactDir, this.#serverGraph(result.metafile, clientExports));
1115
1169
  const outputBytes = result.outputs.reduce((sum, output) => sum + output.size, 0);
1116
1170
  const chunkCount = result.outputs.filter((output) => output.kind === "chunk").length;
1117
- this.#app.verbose(`[PagesBundleBuilder] ${path9.basename(bundlePath)} emitted in ${Date.now() - this.#started}ms splitting=${this.#splitting} entry=${entryArtifact.size} bytes outputs=${result.outputs.length} chunks=${chunkCount} total=${outputBytes} bytes`);
1171
+ this.#app.verbose(`[PagesBundleBuilder] ${path10.basename(bundlePath)} emitted in ${Date.now() - this.#started}ms splitting=${this.#splitting} entry=${entryArtifact.size} bytes outputs=${result.outputs.length} chunks=${chunkCount} total=${outputBytes} bytes`);
1118
1172
  return {
1119
1173
  bundlePath,
1120
1174
  buildId,
@@ -1126,7 +1180,7 @@ class PagesBundleBuilder {
1126
1180
  };
1127
1181
  }
1128
1182
  #serverGraph(metafile, clientExports) {
1129
- const inputs = Object.keys(metafile.inputs).filter((input) => !input.includes("node_modules")).map((input) => path9.resolve(input)).filter((input) => fs4.existsSync(input)).map((input) => CsrDevPaths.realpath(input));
1183
+ const inputs = Object.keys(metafile.inputs).filter((input) => !input.includes("node_modules")).map((input) => path10.resolve(input)).filter((input) => fs4.existsSync(input)).map((input) => CsrDevPaths.realpath(input));
1130
1184
  return { inputs, clientExports };
1131
1185
  }
1132
1186
  get #artifactDir() {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  DesktopBin
4
- } from "./index-v0gt5ryd.js";
4
+ } from "./index-8a4mnn65.js";
5
5
  // pkgs/@akanjs/devkit/mobile/desktopServerStage.ts
6
6
  import { cp, mkdir, readdir, rm, writeFile } from "fs/promises";
7
7
  import path from "path";
@@ -11,7 +11,7 @@ import {
11
11
  ClientEntriesBundler,
12
12
  VENDOR_SPECIFIERS,
13
13
  RouteClientBuilder
14
- } from "./index-b3kjr19v.js";
14
+ } from "./index-94h6dxc3.js";
15
15
  import {
16
16
  SOURCE_EXTS,
17
17
  buildCacheStamp,
@@ -25,7 +25,7 @@ import {
25
25
  CsrEntryFiles,
26
26
  toClientReferencePath,
27
27
  PagesBundleBuilder
28
- } from "./index-66b1hrxh.js";
28
+ } from "./index-eap5y4w5.js";
29
29
  import {
30
30
  FileSys2
31
31
  } from "./index-zyjztrvc.js";
@@ -19,7 +19,7 @@ import {
19
19
  SubagentPool2,
20
20
  McpSignIn,
21
21
  AkanCodeCompaction2
22
- } from "./index-yejf6fth.js";
22
+ } from "./index-5ptvewmq.js";
23
23
  import {
24
24
  codeAgentIsLoopback,
25
25
  codeAgentHostListed,
@@ -676,7 +676,7 @@ class AkanToolPack2 {
676
676
  return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
677
677
  }
678
678
  async names() {
679
- const { ContextRunner } = await import("./context.runner-gh9rr71p.js");
679
+ const { ContextRunner } = await import("./context.runner-ma47t32x.js");
680
680
  return [
681
681
  ...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
682
682
  AkanToolPack2.verifyToolName
@@ -684,7 +684,7 @@ class AkanToolPack2 {
684
684
  }
685
685
  static verifyToolName = "akan_verify";
686
686
  async#register(pi) {
687
- const { ContextRunner } = await import("./context.runner-gh9rr71p.js");
687
+ const { ContextRunner } = await import("./context.runner-ma47t32x.js");
688
688
  const runner = new ContextRunner;
689
689
  const guidelineNames = await AkanToolPack2.#guidelineNames();
690
690
  for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
@@ -4,7 +4,7 @@ import {
4
4
  CloudApi,
5
5
  CloudUpdates,
6
6
  PipelineSecrets
7
- } from "./index-arcdcexp.js";
7
+ } from "./index-4gxaerb7.js";
8
8
  import {
9
9
  PkgExecutor2
10
10
  } from "./index-2t7jnfg5.js";
@@ -12,19 +12,19 @@ import {
12
12
  UpdatePackFolder,
13
13
  NativePublicEnv,
14
14
  NativeApp
15
- } from "./index-v0gt5ryd.js";
15
+ } from "./index-8a4mnn65.js";
16
16
  import {
17
17
  script
18
18
  } from "./index-vznyyaf8.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-91bcfjej.js";
21
+ } from "./index-sxnszzh7.js";
22
22
  import {
23
23
  PackageScript
24
24
  } from "./index-999e5kp4.js";
25
25
  import {
26
26
  CloudRunner
27
- } from "./index-ndfxse05.js";
27
+ } from "./index-zas8gm0a.js";
28
28
 
29
29
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
30
30
  import { Logger } from "akanjs/common";
@@ -10,7 +10,7 @@ import {
10
10
  CsrEntryFiles,
11
11
  PagesEntrySourceGenerator,
12
12
  PagesBundleBuilder
13
- } from "./index-66b1hrxh.js";
13
+ } from "./index-eap5y4w5.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
16
16
  import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
@@ -24,14 +24,14 @@ import {
24
24
  } from "./index-2t7jnfg5.js";
25
25
  import {
26
26
  DesktopServerStage
27
- } from "./index-8fg1hvj5.js";
27
+ } from "./index-ewp82tjf.js";
28
28
  import {
29
29
  LibraryScript
30
30
  } from "./index-m4s4tzjr.js";
31
31
  import {
32
32
  ApplicationRunner,
33
33
  VerifyScope
34
- } from "./index-rd669r6x.js";
34
+ } from "./index-8zxkjybr.js";
35
35
  import {
36
36
  PreviewChrome2,
37
37
  PreviewView2,
@@ -1779,7 +1779,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
1779
1779
  await Promise.all(shares.map(async (share) => await share.close()));
1780
1780
  }, "Abandoning the tunnel release; the shares expire on their own.");
1781
1781
  await Promise.all(apps.map(async (app) => {
1782
- const { TunnelShare } = await import("./TunnelShare-dcx5j51j.js");
1782
+ const { TunnelShare } = await import("./TunnelShare-8pejh5jk.js");
1783
1783
  const share = await TunnelShare.open(app, { workspace: app.workspace });
1784
1784
  shares.push(share);
1785
1785
  urls.set(app.name, share.url);
@@ -27,10 +27,10 @@ import {
27
27
  } from "./index-j3fqs8rc.js";
28
28
  import {
29
29
  NativeApp
30
- } from "./index-v0gt5ryd.js";
30
+ } from "./index-8a4mnn65.js";
31
31
  import {
32
32
  isPlaceholderAppId
33
- } from "./index-8fg1hvj5.js";
33
+ } from "./index-ewp82tjf.js";
34
34
  import {
35
35
  getMobileTargets,
36
36
  appIdsOf
@@ -6,7 +6,7 @@ import {
6
6
  CloudApi,
7
7
  CloudUpdates,
8
8
  PipelineSecrets
9
- } from "./index-arcdcexp.js";
9
+ } from "./index-4gxaerb7.js";
10
10
  import {
11
11
  resolveMobileTargets
12
12
  } from "./index-m9jj544v.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./index-cfzqdsam.js";
19
19
  import {
20
20
  NativeApp
21
- } from "./index-v0gt5ryd.js";
21
+ } from "./index-8a4mnn65.js";
22
22
  import {
23
23
  runner,
24
24
  assertPromptable
package/index.js CHANGED
@@ -27,27 +27,27 @@ import path from "path";
27
27
 
28
28
  // pkgs/@akanjs/cli/commandModules.ts
29
29
  var commandModules = {
30
- workspace: async () => (await import("./workspace.command-91wx03de.js")).WorkspaceCommand,
31
- agent: async () => (await import("./agent.command-xn4maemk.js")).AgentCommand,
32
- code: async () => (await import("./code.command-9gfph3t3.js")).CodeCommand,
33
- application: async () => (await import("./application.command-rv2n5bw8.js")).ApplicationCommand,
30
+ workspace: async () => (await import("./workspace.command-12egv8xq.js")).WorkspaceCommand,
31
+ agent: async () => (await import("./agent.command-m6scv9dh.js")).AgentCommand,
32
+ code: async () => (await import("./code.command-87btt2a0.js")).CodeCommand,
33
+ application: async () => (await import("./application.command-rdjx4678.js")).ApplicationCommand,
34
34
  library: async () => (await import("./library.command-m4gw18qq.js")).LibraryCommand,
35
- localRegistry: async () => (await import("./localRegistry.command-3yq90wgp.js")).LocalRegistryCommand,
35
+ localRegistry: async () => (await import("./localRegistry.command-edtbn4cy.js")).LocalRegistryCommand,
36
36
  package: async () => (await import("./package.command-rt4y8xaf.js")).PackageCommand,
37
37
  module: async () => (await import("./module.command-9vfdxapr.js")).ModuleCommand,
38
38
  page: async () => (await import("./page.command-4zc20rnv.js")).PageCommand,
39
- context: async () => (await import("./context.command-dwhz1fwq.js")).ContextCommand,
40
- cloud: async () => (await import("./cloud.command-hgnbps4n.js")).CloudCommand,
41
- subspace: async () => (await import("./subspace.command-cxyej1an.js")).SubspaceCommand,
39
+ context: async () => (await import("./context.command-bbq2tdj4.js")).ContextCommand,
40
+ cloud: async () => (await import("./cloud.command-4kw1vbs0.js")).CloudCommand,
41
+ subspace: async () => (await import("./subspace.command-tg85k9ry.js")).SubspaceCommand,
42
42
  guideline: async () => (await import("./guideline.command-v2daz21k.js")).GuidelineCommand,
43
43
  scalar: async () => (await import("./scalar.command-4bvzmbbh.js")).ScalarCommand,
44
44
  primitive: async () => (await import("./primitive.command-5g3xe4mf.js")).PrimitiveCommand,
45
45
  quality: async () => (await import("./quality.command-zf8dyc9w.js")).QualityCommand,
46
- verify: async () => (await import("./verify.command-yj2mngs0.js")).VerifyCommand,
46
+ verify: async () => (await import("./verify.command-837mthft.js")).VerifyCommand,
47
47
  repair: async () => (await import("./repair.command-sx0eyq4w.js")).RepairCommand,
48
48
  workflow: async () => (await import("./workflow.command-42p9g0w8.js")).WorkflowCommand,
49
49
  pipeline: async () => (await import("./pipeline.command-4ekd9xgb.js")).PipelineCommand,
50
- tunnel: async () => (await import("./tunnel.command-gvnv36yf.js")).TunnelCommand
50
+ tunnel: async () => (await import("./tunnel.command-t629kcm0.js")).TunnelCommand
51
51
  };
52
52
  var commandModuleIds = Object.keys(commandModules);
53
53
 
@@ -21,19 +21,19 @@ import {
21
21
  getNpmRegistryUrl
22
22
  } from "./index-jf4vk1s0.js";
23
23
  import"./index-w18qdjyf.js";
24
- import"./index-v0gt5ryd.js";
25
- import"./index-8fg1hvj5.js";
24
+ import"./index-8a4mnn65.js";
25
+ import"./index-ewp82tjf.js";
26
26
  import"./index-m9jj544v.js";
27
27
  import"./index-m4s4tzjr.js";
28
- import"./index-rd669r6x.js";
28
+ import"./index-8zxkjybr.js";
29
29
  import"./index-rwgqba9p.js";
30
30
  import {
31
31
  ApplicationScript
32
- } from "./index-91bcfjej.js";
33
- import"./index-arcdcexp.js";
32
+ } from "./index-sxnszzh7.js";
33
+ import"./index-4gxaerb7.js";
34
34
  import {
35
35
  CloudRunner
36
- } from "./index-ndfxse05.js";
36
+ } from "./index-zas8gm0a.js";
37
37
  import"./index-bsew0a12.js";
38
38
  import {
39
39
  PackageScript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.3.0-rc.5",
3
+ "version": "3.3.0-rc.6",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -40,7 +40,7 @@
40
40
  "@earendil-works/pi-tui": "1.5.2",
41
41
  "@inquirer/prompts": "^8.7.3",
42
42
  "@tailwindcss/node": "^4.3.3",
43
- "akanjs": "3.3.0-rc.5",
43
+ "akanjs": "3.3.0-rc.6",
44
44
  "chalk": "^6.0.1",
45
45
  "commander": "^15.0.0",
46
46
  "dayjs": "^1.11.23",
@@ -22,9 +22,9 @@ import"./index-c67vjafa.js";
22
22
  import"./index-2t7jnfg5.js";
23
23
  import {
24
24
  GlobalConfig
25
- } from "./index-arcdcexp.js";
25
+ } from "./index-4gxaerb7.js";
26
26
  import"./index-m9jj544v.js";
27
- import"./index-v0gt5ryd.js";
27
+ import"./index-8a4mnn65.js";
28
28
  import {
29
29
  SubspaceConfig
30
30
  } from "./index-xczjdng6.js";
@@ -822,7 +822,7 @@ class SubspaceRunner extends runner("subspace") {
822
822
  if (!asked)
823
823
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
824
824
  const { libs } = await subspace.slice();
825
- const { CloudScript } = await import("./cloud.script-rzsnzjsg.js");
825
+ const { CloudScript } = await import("./cloud.script-af2js02g.js");
826
826
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
827
827
  host,
828
828
  workspaceId,
@@ -16,12 +16,12 @@ import"./index-2t7jnfg5.js";
16
16
  import {
17
17
  GlobalConfig,
18
18
  CloudApi
19
- } from "./index-arcdcexp.js";
19
+ } from "./index-4gxaerb7.js";
20
20
  import"./index-m9jj544v.js";
21
- import"./index-v0gt5ryd.js";
21
+ import"./index-8a4mnn65.js";
22
22
  import {
23
23
  TunnelShare2
24
- } from "./index-h1k3zyyb.js";
24
+ } from "./index-9jm7t0h5.js";
25
25
  import {
26
26
  writeClipboard
27
27
  } from "./index-p6pbz9n5.js";
@@ -16,10 +16,10 @@ import"./index-2t7jnfg5.js";
16
16
  import {
17
17
  ApplicationRunner,
18
18
  VerifyScope
19
- } from "./index-rd669r6x.js";
19
+ } from "./index-8zxkjybr.js";
20
20
  import"./index-w18qdjyf.js";
21
- import"./index-v0gt5ryd.js";
22
- import"./index-8fg1hvj5.js";
21
+ import"./index-8a4mnn65.js";
22
+ import"./index-ewp82tjf.js";
23
23
  import"./index-m9jj544v.js";
24
24
  import"./index-1p81ecbz.js";
25
25
  import"./index-62md4dwy.js";
@@ -34,7 +34,7 @@ import"./index-t4d0ckde.js";
34
34
  import {
35
35
  VerifyPipeline,
36
36
  VerifyReport
37
- } from "./index-rwhdcnr8.js";
37
+ } from "./index-3h0zqg41.js";
38
38
  import"./index-zx3bv21b.js";
39
39
  import"./index-zfmc4380.js";
40
40
 
@@ -35,31 +35,31 @@ import"./index-g7hm77j6.js";
35
35
  import"./index-ghs8gtvp.js";
36
36
  import"./index-xv3pvdw4.js";
37
37
  import"./index-j3fqs8rc.js";
38
- import"./index-rd669r6x.js";
38
+ import"./index-8zxkjybr.js";
39
39
  import"./index-w18qdjyf.js";
40
- import"./index-v0gt5ryd.js";
41
- import"./index-8fg1hvj5.js";
40
+ import"./index-8a4mnn65.js";
41
+ import"./index-ewp82tjf.js";
42
42
  import"./index-m9jj544v.js";
43
- import"./index-rwhdcnr8.js";
43
+ import"./index-3h0zqg41.js";
44
44
  import {
45
45
  AgentScript
46
- } from "./index-0k64a38w.js";
46
+ } from "./index-bwhja4dj.js";
47
47
  import {
48
48
  LibraryScript
49
49
  } from "./index-m4s4tzjr.js";
50
50
  import"./index-rwgqba9p.js";
51
51
  import {
52
52
  ApplicationScript
53
- } from "./index-91bcfjej.js";
54
- import"./index-arcdcexp.js";
53
+ } from "./index-sxnszzh7.js";
54
+ import"./index-4gxaerb7.js";
55
55
  import {
56
56
  PackageScript
57
57
  } from "./index-999e5kp4.js";
58
- import"./index-ndfxse05.js";
58
+ import"./index-zas8gm0a.js";
59
59
  import {
60
60
  CloudScript2
61
- } from "./index-rnhbh45p.js";
62
- import"./index-1v5eghaa.js";
61
+ } from "./index-nd69pk6t.js";
62
+ import"./index-vq0y1vr4.js";
63
63
  import"./index-xs9a3ddt.js";
64
64
  import"./index-2ktpwjgf.js";
65
65
  import"./index-bjg9thz8.js";
@@ -69,7 +69,7 @@ import"./index-0vv0a5h8.js";
69
69
  import"./index-fqhr7j56.js";
70
70
  import {
71
71
  ContextScript
72
- } from "./index-5cpjkfhk.js";
72
+ } from "./index-c1t41tk8.js";
73
73
  import"./index-zx3bv21b.js";
74
74
  import {
75
75
  assertPlainName