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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-4a2skdph.js → CodeAgent-aq43sq64.js} +2 -2
  3. package/{CodeTui-enrzsnzc.js → CodeTui-pmychb3m.js} +1 -1
  4. package/README.ko.md +3 -1
  5. package/README.md +3 -1
  6. package/TunnelShare-11a3fqxb.js +14 -0
  7. package/{agent.command-y22t9x1e.js → agent.command-pdmb75bk.js} +15 -15
  8. package/akanCode.js +2 -2
  9. package/{application.command-yhj5arwc.js → application.command-xwch7rww.js} +16 -16
  10. package/{applicationBuildRunner-6w1fd61b.js → applicationBuildRunner-6yjrxfqs.js} +7 -6
  11. package/buildBatch.proc.js +6 -6
  12. package/{cloud.command-bqfh4cnx.js → cloud.command-6angaryd.js} +16 -16
  13. package/cloud.script-w5b0a1sm.js +30 -0
  14. package/{code.command-y94hwxsn.js → code.command-ceyhrgrc.js} +6 -6
  15. package/{context.command-xz65fhrn.js → context.command-n7dbh0ca.js} +16 -16
  16. package/context.runner-9d5rbt2p.js +29 -0
  17. package/{guideline.command-sn843nw6.js → guideline.command-h5dfzrng.js} +2 -2
  18. package/guidelines/agentRule/agentRule.instruction.md +4 -3
  19. package/incrementalBuilder.proc.js +4 -4
  20. package/{index-wfmpxke3.js → index-0fq1b5jp.js} +10 -2
  21. package/{index-3wen6ddy.js → index-146p5x0r.js} +3 -3
  22. package/{index-kjmrkc45.js → index-1kj847m5.js} +42 -4
  23. package/{index-jqsj5wjb.js → index-1xfdzwrt.js} +3 -3
  24. package/{index-w15hnxmb.js → index-2b3n00gz.js} +6 -6
  25. package/{index-b9q5aw30.js → index-2m6gaatn.js} +8 -8
  26. package/{index-jxaq2evq.js → index-36dywqhv.js} +2 -2
  27. package/{index-50mg8bsm.js → index-80yc5q5y.js} +3 -3
  28. package/{index-49y45vbj.js → index-8bh9en9m.js} +8 -8
  29. package/{index-vftjqv28.js → index-9km2h20g.js} +2 -2
  30. package/{index-qrp98bmp.js → index-bza4z89k.js} +4 -4
  31. package/{index-5hhe0rdd.js → index-df0r4008.js} +1 -1
  32. package/{index-z9b72teg.js → index-dnqznx16.js} +1 -1
  33. package/{index-ygrdw6jw.js → index-dtxntsfx.js} +1 -1
  34. package/{index-fqx74yxn.js → index-fq72hk0a.js} +2 -2
  35. package/{index-kr8dvqnr.js → index-g6ss1r1w.js} +1 -1
  36. package/{index-hkq0q73d.js → index-ggzb32a9.js} +1 -1
  37. package/{index-5qq6qky3.js → index-kj7vyjng.js} +8 -8
  38. package/{index-kgxhwgdk.js → index-mcdezskv.js} +2 -2
  39. package/{index-ah09graf.js → index-mtxbw4fy.js} +13 -11
  40. package/{index-jrdp7c4h.js → index-n0vev0fv.js} +2 -2
  41. package/{index-y725zb1a.js → index-p9f6dsf2.js} +70 -23
  42. package/{index-w88xghey.js → index-qn5xmscz.js} +7 -7
  43. package/{index-5w8amdr7.js → index-qtcm6s8p.js} +22 -8
  44. package/{index-3rff2c48.js → index-qx12c8k5.js} +1 -1
  45. package/{index-sjj3ywn5.js → index-t0a5mng5.js} +4 -4
  46. package/{index-jgj6ajnk.js → index-ttrrm805.js} +4 -4
  47. package/{index-gsty3pkx.js → index-w0nztbs0.js} +3 -3
  48. package/{index-8vxdsqra.js → index-wnxc9n5v.js} +25 -9
  49. package/{index-2rcptfyp.js → index-xzscbgx2.js} +1 -1
  50. package/{index-8jpc5fqv.js → index-y1a7dc7t.js} +1 -1
  51. package/{index-g43360sn.js → index-y9xbhs20.js} +3 -3
  52. package/{index-4mgabs8t.js → index-yp6mpazs.js} +3 -3
  53. package/{index-02b8qvww.js → index-z0r6bhqe.js} +2 -2
  54. package/index.js +23 -23
  55. package/{library.command-6eafevmj.js → library.command-4c2yjfqa.js} +3 -3
  56. package/{localRegistry.command-9tef2qsj.js → localRegistry.command-mgb4fg60.js} +15 -15
  57. package/{module.command-pn1k7dfk.js → module.command-c6284z1b.js} +5 -5
  58. package/{package.command-kbg9z7re.js → package.command-3wh1hh2j.js} +4 -4
  59. package/package.json +2 -2
  60. package/{page.command-st0y2xg8.js → page.command-sx22j4yv.js} +3 -3
  61. package/{pipeline.command-76m32y7z.js → pipeline.command-8kdcgy47.js} +2 -2
  62. package/{primitive.command-ax6wg70s.js → primitive.command-4jaegn0m.js} +6 -6
  63. package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-t0r9argb.js} +1 -1
  64. package/{quality.command-0gzskga8.js → quality.command-46jhrbm2.js} +4 -4
  65. package/{repair.command-g5kc3x89.js → repair.command-dj4ke29k.js} +5 -5
  66. package/{scalar.command-ck8621dy.js → scalar.command-qwvbhytf.js} +4 -4
  67. package/{subspace.command-vh6dye0v.js → subspace.command-48d86hvc.js} +8 -8
  68. package/{tunnel.command-4mezrypt.js → tunnel.command-00v81x42.js} +7 -7
  69. package/{verify.command-f2n4bwp7.js → verify.command-sz542tvy.js} +12 -12
  70. package/{workflow.command-bx9xwgs5.js → workflow.command-0ra9304f.js} +10 -10
  71. package/{workspace.command-04qgwsst.js → workspace.command-5mm9ahzc.js} +29 -29
  72. package/TunnelShare-xs5rrpf1.js +0 -14
  73. package/cloud.script-8jvfw1sh.js +0 -30
  74. package/context.runner-dpt5wjb7.js +0 -29
package/.build-stamp CHANGED
@@ -1,2 +1,2 @@
1
- f8410aa8515cb8e0abfd227a644e23d745ccbf2b6c3d360e16e6793693073f5f
2
- e2389bab-b828-43d2-a344-f3aed6772082
1
+ 2b1260db864ba3e2ab2d63964e0a10d45b943de6edfc7a014463dde2dd0fd6f4
2
+ 0bb319f8-a578-4217-a38d-0ba080fddbef
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgent2
4
- } from "./index-50mg8bsm.js";
5
- import"./index-kr8dvqnr.js";
4
+ } from "./index-80yc5q5y.js";
5
+ import"./index-g6ss1r1w.js";
6
6
  import"./index-b4qq3rq0.js";
7
7
  import"./index-35j83zkd.js";
8
8
  import"./index-bns3wcpc.js";
@@ -4,7 +4,7 @@ import {
4
4
  McpTokenStore,
5
5
  McpSignIn,
6
6
  AkanCodeCompaction2
7
- } from "./index-kr8dvqnr.js";
7
+ } from "./index-g6ss1r1w.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import"./index-35j83zkd.js";
10
10
  import {
package/README.ko.md CHANGED
@@ -110,7 +110,9 @@ Akan 프레임워크 패키지는 `dist/pkgs/*`에서만 배포합니다. `verif
110
110
 
111
111
  릴리스 후보(rc)는 CI가 배포합니다. `rc` 브랜치에 push될 때마다 CI 전체를 돌린 뒤, 대기 중인 changeset이
112
112
  릴리스할 버전의 다음 `<version>-rc.N`을 npm provenance와 함께 배포하고 그 커밋에 `v<version>-rc.N` 태그를 붙입니다.
113
- 정식 릴리스는 지금처럼 수동입니다: `bun run changeset:version` 후 `akan deploy-akan --registry npm`.
113
+ 정식 릴리스는 지금처럼 수동입니다: `bun run changeset:version`, 커밋해서 `main`에 push, 그다음
114
+ `akan deploy-akan --registry npm`. npm 배포가 끝나면 `deploy-akan`이 그 커밋으로 에디터 확장 릴리스를 CI에
115
+ 요청합니다. 커밋이 아직 `main`에 없으면 push한 뒤 돌릴 `gh workflow run` 명령을 알려 줍니다.
114
116
  `npm-publish` environment는 `rc`만 허용하므로 `rc`에 push할 수 있는 사람은 rc를 배포할 수 있습니다. 저장소 규칙에서
115
117
  `rc` push 권한을 제한하세요.
116
118
 
package/README.md CHANGED
@@ -109,7 +109,9 @@ artifact is built last and is not overwritten by the root `akan` bootstrap scrip
109
109
 
110
110
  Release candidates publish from CI: each push to the `rc` branch runs the CI suite, then publishes the next
111
111
  `<version>-rc.N` of the version the pending changesets will release, with npm provenance, and tags that commit
112
- `v<version>-rc.N`. Stable releases stay manual: `bun run changeset:version`, then `akan deploy-akan --registry npm`.
112
+ `v<version>-rc.N`. Stable releases stay manual: `bun run changeset:version`, commit and push it to `main`, then
113
+ `akan deploy-akan --registry npm`. Once npm has the packages, `deploy-akan` asks CI to release the editor extension
114
+ from that commit; if the commit is not on `main` yet, it prints the `gh workflow run` command to run after pushing.
113
115
  The `npm-publish` environment admits only `rc`, so whoever can push to `rc` can publish an rc: restrict pushes to
114
116
  `rc` in the repository's rules.
115
117
 
@@ -0,0 +1,14 @@
1
+ // @bun
2
+ import {
3
+ TunnelShare2
4
+ } from "./index-xzscbgx2.js";
5
+ import"./index-9km2h20g.js";
6
+ import"./index-y9xbhs20.js";
7
+ import"./index-m9jj544v.js";
8
+ import"./index-36dywqhv.js";
9
+ import"./index-qx12c8k5.js";
10
+ import"./index-0fq1b5jp.js";
11
+ import"./index-bns3wcpc.js";
12
+ export {
13
+ TunnelShare2 as TunnelShare
14
+ };
@@ -2,33 +2,33 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-hkq0q73d.js";
5
+ } from "./index-ggzb32a9.js";
6
6
  import"./index-bns3wcpc.js";
7
- import"./index-wfmpxke3.js";
7
+ import"./index-0fq1b5jp.js";
8
8
  import"./index-35j83zkd.js";
9
9
  import"./index-j6eeh5d7.js";
10
- import"./index-fqx74yxn.js";
10
+ import"./index-fq72hk0a.js";
11
11
  import"./index-hj6w4ka1.js";
12
- import"./index-02b8qvww.js";
12
+ import"./index-z0r6bhqe.js";
13
13
  import"./index-9p260r4e.js";
14
- import"./index-5qq6qky3.js";
15
- import"./index-y725zb1a.js";
16
- import"./index-g43360sn.js";
17
- import"./index-5hhe0rdd.js";
14
+ import"./index-kj7vyjng.js";
15
+ import"./index-p9f6dsf2.js";
16
+ import"./index-y9xbhs20.js";
17
+ import"./index-df0r4008.js";
18
18
  import"./index-m9jj544v.js";
19
- import"./index-3rff2c48.js";
20
- import"./index-jxaq2evq.js";
21
- import"./index-jqsj5wjb.js";
22
- import"./index-ygrdw6jw.js";
19
+ import"./index-qx12c8k5.js";
20
+ import"./index-36dywqhv.js";
21
+ import"./index-1xfdzwrt.js";
22
+ import"./index-dtxntsfx.js";
23
23
  import"./index-62md4dwy.js";
24
24
  import"./index-ygdbn9jn.js";
25
25
  import"./index-ny2k80mv.js";
26
26
  import"./index-v50xjbbe.js";
27
- import"./index-3wen6ddy.js";
27
+ import"./index-146p5x0r.js";
28
28
  import {
29
29
  AgentScript
30
- } from "./index-w15hnxmb.js";
31
- import"./index-8jpc5fqv.js";
30
+ } from "./index-2b3n00gz.js";
31
+ import"./index-y1a7dc7t.js";
32
32
 
33
33
  // pkgs/@akanjs/cli/agent/agent.command.ts
34
34
  class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
package/akanCode.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  CodeMailbox2,
35
35
  CodeSessionFork2,
36
36
  CodeAgent2
37
- } from "./index-50mg8bsm.js";
37
+ } from "./index-80yc5q5y.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-kr8dvqnr.js";
48
+ } from "./index-g6ss1r1w.js";
49
49
  import {
50
50
  CodeAgentRpcHost2
51
51
  } from "./index-s4nvxpzm.js";
@@ -7,21 +7,23 @@ import {
7
7
  Exec,
8
8
  Workspace,
9
9
  command
10
- } from "./index-hkq0q73d.js";
10
+ } from "./index-ggzb32a9.js";
11
11
  import"./index-bns3wcpc.js";
12
- import"./index-wfmpxke3.js";
13
- import"./index-y725zb1a.js";
14
- import"./index-g43360sn.js";
15
- import"./index-5hhe0rdd.js";
12
+ import"./index-0fq1b5jp.js";
13
+ import {
14
+ RouteJsBudget
15
+ } from "./index-p9f6dsf2.js";
16
+ import"./index-y9xbhs20.js";
17
+ import"./index-df0r4008.js";
16
18
  import"./index-m9jj544v.js";
17
- import"./index-3rff2c48.js";
18
- import"./index-jxaq2evq.js";
19
- import"./index-jrdp7c4h.js";
20
- import"./index-5qq6qky3.js";
19
+ import"./index-qx12c8k5.js";
20
+ import"./index-36dywqhv.js";
21
+ import"./index-n0vev0fv.js";
22
+ import"./index-kj7vyjng.js";
21
23
  import"./index-b4qq3rq0.js";
22
24
  import {
23
25
  ApplicationScript
24
- } from "./index-ah09graf.js";
26
+ } from "./index-mtxbw4fy.js";
25
27
  import {
26
28
  writeOption,
27
29
  nativeTargetOption,
@@ -29,7 +31,7 @@ import {
29
31
  allowLocalOption,
30
32
  publicEnvOption
31
33
  } from "./index-mdjc93e1.js";
32
- import"./index-8jpc5fqv.js";
34
+ import"./index-y1a7dc7t.js";
33
35
  import"./index-9bv479q5.js";
34
36
 
35
37
  // pkgs/@akanjs/cli/application/application.command.ts
@@ -42,6 +44,7 @@ var deviceOption = {
42
44
  var teamOption = { flag: "T", desc: "Apple team id the signing is narrowed to", default: "" };
43
45
  var signDesc = "sign with the identity AKAN_NATIVE_MACOS_* / AKAN_NATIVE_WINDOWS_* names (without it the env signs nothing)";
44
46
  var notarizeDesc = "macOS: upload the signed app to Apple's notary service (takes --sign)";
47
+ var checkBudgetDesc = "fail on a route over its akan.budget.json entry or with none, or a missing or unreadable file";
45
48
  var devEnvs = ["local", "debug", "develop", "main"];
46
49
  var buildEnvOption = { enum: devEnvs, desc: "backend environment", default: "debug" };
47
50
  var startEnvOption = {
@@ -186,17 +189,14 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
186
189
  enum: devEnvs,
187
190
  desc: "environment the server runs in (default: AKAN_PUBLIC_ENV of the shell, else of the workspace .env)",
188
191
  nullable: true
189
- }).option("updateBudget", Boolean, {
190
- desc: "write akan.budget.json: add each new route's JS and lower an entry a route now fits under, never raise one",
191
- default: false
192
- }).exec(async function(app, write, fast, quiet, profile, env, updateBudget) {
192
+ }).option("checkBudget", Boolean, { desc: checkBudgetDesc, default: false }).option("updateBudget", Boolean, { desc: "write akan.budget.json, never raising an entry", default: false }).option("raiseBudget", Boolean, { desc: "rewrite akan.budget.json at each route's measured JS", default: false }).exec(async function(app, write, fast, quiet, profile, env, checkBudget, updateBudget, raiseBudget) {
193
193
  await this.applicationScript.build(app, {
194
194
  write,
195
195
  fast,
196
196
  quiet,
197
197
  profile: profile ?? undefined,
198
198
  env: env ?? undefined,
199
- updateBudget
199
+ budget: RouteJsBudget.modeOf({ checkBudget, updateBudget, raiseBudget })
200
200
  });
201
201
  }),
202
202
  typecheck: target({ short: true, desc: "Typecheck an app or a library, its tests and specs included" }).with(SysOrOnlyApp).option("write", Boolean, writeOption).option("clean", Boolean, { desc: "clear typecheck cache before running", default: false }).option("incremental", Boolean, { desc: "reuse TypeScript incremental cache", default: true }).option("tests", Boolean, { desc: "check its *.test.ts / *.spec.ts too, which nothing imports", default: true }).exec(async function(sys, write, clean, incremental, tests) {
@@ -5,25 +5,25 @@ import {
5
5
  ProjectTypecheck2,
6
6
  parseEnvFile,
7
7
  WorkspaceExecutor
8
- } from "./index-wfmpxke3.js";
8
+ } from "./index-0fq1b5jp.js";
9
9
  import"./index-bns3wcpc.js";
10
10
  import {
11
11
  NARROWABLE_VENDOR_SPECIFIERS
12
- } from "./index-5w8amdr7.js";
12
+ } from "./index-qtcm6s8p.js";
13
13
  import {
14
14
  FontPruner,
15
15
  RouteJsBudget
16
- } from "./index-y725zb1a.js";
17
- import"./index-3rff2c48.js";
16
+ } from "./index-p9f6dsf2.js";
17
+ import"./index-qx12c8k5.js";
18
18
  import {
19
19
  AllRoutesBuilder,
20
20
  precompressArtifacts,
21
21
  SsrBaseArtifactBuilder,
22
22
  VendorImportScanner
23
- } from "./index-8vxdsqra.js";
23
+ } from "./index-wnxc9n5v.js";
24
24
  import {
25
25
  CsrArtifactBuilder
26
- } from "./index-jxaq2evq.js";
26
+ } from "./index-36dywqhv.js";
27
27
  import"./index-62md4dwy.js";
28
28
 
29
29
  // pkgs/@akanjs/devkit/applicationBuildRunner.ts
@@ -408,6 +408,7 @@ void run().catch((error) => {
408
408
  const budgetPath = path3.join(this.#app.cwdPath, RouteJsBudget.fileName);
409
409
  const { summary: status, warnings } = await RouteJsBudget.check(sizes, {
410
410
  mode: this.#budget,
411
+ app: this.#app.name,
411
412
  budgetPath,
412
413
  source: path3.relative(this.#app.workspace.workspaceRoot, budgetPath),
413
414
  environment
@@ -2,30 +2,30 @@
2
2
  import {
3
3
  FontOptimizer,
4
4
  ApplicationBuildReporter
5
- } from "./index-y725zb1a.js";
5
+ } from "./index-p9f6dsf2.js";
6
6
  import {
7
7
  resolveSsrPageEntriesForApp,
8
8
  WorkspaceExecutor,
9
9
  AppExecutor
10
- } from "./index-wfmpxke3.js";
10
+ } from "./index-0fq1b5jp.js";
11
11
  import {
12
12
  computeRouteSeedIndex,
13
13
  saveRouteSeedIndex,
14
14
  CsrDevBundler,
15
15
  SsrDevBundler
16
- } from "./index-5w8amdr7.js";
16
+ } from "./index-qtcm6s8p.js";
17
17
  import"./index-bns3wcpc.js";
18
18
  import {
19
19
  ServerGraphFile,
20
20
  PagesBundleBuilder
21
- } from "./index-3rff2c48.js";
21
+ } from "./index-qx12c8k5.js";
22
22
  import {
23
23
  CssCompiler,
24
24
  SsrBaseArtifactBuilder
25
- } from "./index-8vxdsqra.js";
25
+ } from "./index-wnxc9n5v.js";
26
26
  import {
27
27
  CsrArtifactBuilder
28
- } from "./index-jxaq2evq.js";
28
+ } from "./index-36dywqhv.js";
29
29
  import"./index-62md4dwy.js";
30
30
 
31
31
  // pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
@@ -3,35 +3,35 @@ import {
3
3
  App,
4
4
  Workspace,
5
5
  command
6
- } from "./index-hkq0q73d.js";
6
+ } from "./index-ggzb32a9.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-wfmpxke3.js";
9
- import"./index-vftjqv28.js";
8
+ import"./index-0fq1b5jp.js";
9
+ import"./index-9km2h20g.js";
10
10
  import {
11
11
  PlatformTestRun
12
- } from "./index-kjmrkc45.js";
13
- import"./index-g43360sn.js";
14
- import"./index-5hhe0rdd.js";
12
+ } from "./index-1kj847m5.js";
13
+ import"./index-y9xbhs20.js";
14
+ import"./index-df0r4008.js";
15
15
  import"./index-m9jj544v.js";
16
- import"./index-3rff2c48.js";
17
- import"./index-jxaq2evq.js";
16
+ import"./index-qx12c8k5.js";
17
+ import"./index-36dywqhv.js";
18
18
  import {
19
19
  npmRegistryFromEnv,
20
20
  warnIgnoredNpmRegistry
21
21
  } from "./index-ny2k80mv.js";
22
- import"./index-y725zb1a.js";
23
- import"./index-jrdp7c4h.js";
24
- import"./index-5qq6qky3.js";
22
+ import"./index-p9f6dsf2.js";
23
+ import"./index-n0vev0fv.js";
24
+ import"./index-kj7vyjng.js";
25
25
  import"./index-b4qq3rq0.js";
26
- import"./index-ah09graf.js";
26
+ import"./index-mtxbw4fy.js";
27
27
  import"./index-qd7xn2bk.js";
28
28
  import"./index-9p260r4e.js";
29
29
  import"./index-cmg5ngqa.js";
30
- import"./index-ygrdw6jw.js";
31
- import"./index-gsty3pkx.js";
30
+ import"./index-dtxntsfx.js";
31
+ import"./index-w0nztbs0.js";
32
32
  import {
33
33
  CloudScript2
34
- } from "./index-w88xghey.js";
34
+ } from "./index-qn5xmscz.js";
35
35
  import {
36
36
  writeOption,
37
37
  oneNativeTargetOption,
@@ -42,7 +42,7 @@ import {
42
42
  hostOption,
43
43
  subspaceOption
44
44
  } from "./index-mdjc93e1.js";
45
- import"./index-8jpc5fqv.js";
45
+ import"./index-y1a7dc7t.js";
46
46
  import"./index-9bv479q5.js";
47
47
 
48
48
  // pkgs/@akanjs/cli/cloud/cloud.command.ts
@@ -0,0 +1,30 @@
1
+ // @bun
2
+ import {
3
+ CloudScript2
4
+ } from "./index-qn5xmscz.js";
5
+ import"./index-1kj847m5.js";
6
+ import"./index-mtxbw4fy.js";
7
+ import"./index-n0vev0fv.js";
8
+ import"./index-w0nztbs0.js";
9
+ import"./index-9km2h20g.js";
10
+ import"./index-ny2k80mv.js";
11
+ import"./index-kj7vyjng.js";
12
+ import"./index-y1a7dc7t.js";
13
+ import"./index-dtxntsfx.js";
14
+ import"./index-df0r4008.js";
15
+ import"./index-y9xbhs20.js";
16
+ import"./index-m9jj544v.js";
17
+ import"./index-ggzb32a9.js";
18
+ import"./index-9bv479q5.js";
19
+ import"./index-b4qq3rq0.js";
20
+ import"./index-cmg5ngqa.js";
21
+ import"./index-9p260r4e.js";
22
+ import"./index-36dywqhv.js";
23
+ import"./index-p9f6dsf2.js";
24
+ import"./index-qx12c8k5.js";
25
+ import"./index-0fq1b5jp.js";
26
+ import"./index-qd7xn2bk.js";
27
+ import"./index-bns3wcpc.js";
28
+ export {
29
+ CloudScript2 as CloudScript
30
+ };
@@ -4,9 +4,9 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-hkq0q73d.js";
7
+ } from "./index-ggzb32a9.js";
8
8
  import"./index-bns3wcpc.js";
9
- import"./index-wfmpxke3.js";
9
+ import"./index-0fq1b5jp.js";
10
10
  import {
11
11
  AkanCodeEnv,
12
12
  akanCodePaths2
@@ -77,7 +77,7 @@ class CodeRunner extends runner("code") {
77
77
  async serve(options, listen) {
78
78
  await import("./consoleToStderr-h5bryj94.js");
79
79
  const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
80
- import("./CodeAgent-4a2skdph.js"),
80
+ import("./CodeAgent-aq43sq64.js"),
81
81
  import("./CodeAgentRpcHost-6dzfkvsc.js"),
82
82
  import("./CodeAgentRpcListener-tcwrdvst.js")
83
83
  ]);
@@ -111,8 +111,8 @@ class CodeRunner extends runner("code") {
111
111
  }
112
112
  async tui(options, seed) {
113
113
  const [{ CodeAgent }, { CodeTui }] = await Promise.all([
114
- import("./CodeAgent-4a2skdph.js"),
115
- import("./CodeTui-enrzsnzc.js")
114
+ import("./CodeAgent-aq43sq64.js"),
115
+ import("./CodeTui-pmychb3m.js")
116
116
  ]);
117
117
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
118
118
  const agentOptions = start.agent;
@@ -148,7 +148,7 @@ class CodeRunner extends runner("code") {
148
148
  }
149
149
  }
150
150
  async run(prompt, options) {
151
- const { CodeAgent } = await import("./CodeAgent-4a2skdph.js");
151
+ const { CodeAgent } = await import("./CodeAgent-aq43sq64.js");
152
152
  const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
153
153
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
154
154
  for (const warning of start.warnings)
@@ -2,32 +2,32 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-hkq0q73d.js";
5
+ } from "./index-ggzb32a9.js";
6
6
  import"./index-bns3wcpc.js";
7
- import"./index-wfmpxke3.js";
8
- import"./index-fqx74yxn.js";
7
+ import"./index-0fq1b5jp.js";
8
+ import"./index-fq72hk0a.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-02b8qvww.js";
10
+ import"./index-z0r6bhqe.js";
11
11
  import"./index-9p260r4e.js";
12
- import"./index-b9q5aw30.js";
13
- import"./index-g43360sn.js";
14
- import"./index-5hhe0rdd.js";
12
+ import"./index-2m6gaatn.js";
13
+ import"./index-y9xbhs20.js";
14
+ import"./index-df0r4008.js";
15
15
  import"./index-m9jj544v.js";
16
- import"./index-3rff2c48.js";
17
- import"./index-jxaq2evq.js";
16
+ import"./index-qx12c8k5.js";
17
+ import"./index-36dywqhv.js";
18
18
  import"./index-j6eeh5d7.js";
19
19
  import"./index-ygdbn9jn.js";
20
20
  import"./index-39jz41jb.js";
21
- import"./index-4mgabs8t.js";
22
- import"./index-z9b72teg.js";
23
- import"./index-jgj6ajnk.js";
24
- import"./index-sjj3ywn5.js";
25
- import"./index-kgxhwgdk.js";
21
+ import"./index-yp6mpazs.js";
22
+ import"./index-dnqznx16.js";
23
+ import"./index-ttrrm805.js";
24
+ import"./index-t0a5mng5.js";
25
+ import"./index-mcdezskv.js";
26
26
  import"./index-v50xjbbe.js";
27
- import"./index-49y45vbj.js";
27
+ import"./index-8bh9en9m.js";
28
28
  import {
29
29
  ContextScript
30
- } from "./index-qrp98bmp.js";
30
+ } from "./index-bza4z89k.js";
31
31
 
32
32
  // pkgs/@akanjs/cli/context/context.command.ts
33
33
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -0,0 +1,29 @@
1
+ // @bun
2
+ import {
3
+ ContextRunner2
4
+ } from "./index-2m6gaatn.js";
5
+ import"./index-8bh9en9m.js";
6
+ import"./index-mcdezskv.js";
7
+ import"./index-t0a5mng5.js";
8
+ import"./index-yp6mpazs.js";
9
+ import"./index-ttrrm805.js";
10
+ import"./index-dnqznx16.js";
11
+ import"./index-v50xjbbe.js";
12
+ import"./index-fq72hk0a.js";
13
+ import"./index-z0r6bhqe.js";
14
+ import"./index-df0r4008.js";
15
+ import"./index-j6eeh5d7.js";
16
+ import"./index-y9xbhs20.js";
17
+ import"./index-m9jj544v.js";
18
+ import"./index-ggzb32a9.js";
19
+ import"./index-39jz41jb.js";
20
+ import"./index-ygdbn9jn.js";
21
+ import"./index-9p260r4e.js";
22
+ import"./index-36dywqhv.js";
23
+ import"./index-qx12c8k5.js";
24
+ import"./index-0fq1b5jp.js";
25
+ import"./index-hj6w4ka1.js";
26
+ import"./index-bns3wcpc.js";
27
+ export {
28
+ ContextRunner2 as ContextRunner
29
+ };
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  script,
4
4
  command
5
- } from "./index-hkq0q73d.js";
5
+ } from "./index-ggzb32a9.js";
6
6
  import"./index-bns3wcpc.js";
7
- import"./index-wfmpxke3.js";
7
+ import"./index-0fq1b5jp.js";
8
8
  import {
9
9
  Prompter2
10
10
  } from "./index-j6eeh5d7.js";
@@ -32,9 +32,10 @@ pages declaring one name never clash, and a registry kept outside the surface re
32
32
  warning. A product with accounts names it in its `option.ts`, `option.setAgentAccess(SignedIn)`, taking the same
33
33
  guard classes every endpoint takes (an array is ANDed, `null` clears what a library set); without one the chat
34
34
  cannot spend the LLM key. **The guard decides who, not what** — the browser writes the instructions, tools and
35
- transcript — so `option.setAgentRequestPolicy((request, { account, ip }) => request)` sees each turn after the
36
- guard, before the quota and the model (tool names as the page published them), and returns what is sent, or
37
- throws an `Err` (`agent.error.requestRefused`) to refuse it. With no policy set, a turn past
35
+ transcript — so `option.setAgentRequestPolicy((request, { id, headers, account, ip }) => request)` sees each turn
36
+ after the guard, before the quota and the model (tool names as the page published them), and returns what is
37
+ sent, or throws an `Err` (`agent.error.requestRefused`) to refuse it. `setAgentQuota` and `setAgentUsage` get that
38
+ same `turn`, and usage comes once per turn the quota passed, `failed` and `aborted` ones too. With no policy set, a turn past
38
39
  `AgentRelayPolicy.defaultLimits` (5,000 messages, 512 tools, 256 context entries, 8M characters, 64 MiB of
39
40
  attachments) is refused with 413; a policy of the app's own keeps them by returning
40
41
  `AgentRelayPolicy.capped(request, limits)`, and `(request) => request` lifts them. An error that is not an `Err`
@@ -3,12 +3,12 @@ import {
3
3
  HmrWatcher,
4
4
  WatchRootResolver,
5
5
  ApplicationBuildReporter
6
- } from "./index-y725zb1a.js";
6
+ } from "./index-p9f6dsf2.js";
7
7
  import {
8
8
  CodegenLock,
9
9
  WorkspaceExecutor,
10
10
  AppExecutor
11
- } from "./index-wfmpxke3.js";
11
+ } from "./index-0fq1b5jp.js";
12
12
  import"./index-bns3wcpc.js";
13
13
  import {
14
14
  GraphClientEntryDiscovery,
@@ -19,10 +19,10 @@ import {
19
19
  DevChangePlanner,
20
20
  DevGeneratedIndexSync,
21
21
  SsrDevBundler
22
- } from "./index-5w8amdr7.js";
22
+ } from "./index-qtcm6s8p.js";
23
23
  import {
24
24
  ServerGraphFile
25
- } from "./index-3rff2c48.js";
25
+ } from "./index-qx12c8k5.js";
26
26
  import"./index-9p260r4e.js";
27
27
  import {
28
28
  FrameworkGraph
@@ -1423,9 +1423,17 @@ function getRootBoundarySegments(key) {
1423
1423
  return [];
1424
1424
  return prefix.split("/").filter(Boolean);
1425
1425
  }
1426
+ var ROOT_LAYOUT_SYSTEM = {
1427
+ specifier: "akanjs/ui/System/index.tsx",
1428
+ ssrShell: "akanjs/ui/System/SSR.tsx",
1429
+ importsNoSsrPageRenders: ["./CSR", "./App"]
1430
+ };
1426
1431
  function implicitRootLayoutKey(segments) {
1427
1432
  return `./${[...segments, "__root_layout"].join("/")}.tsx`;
1428
1433
  }
1434
+ function isImplicitRootLayoutKey(key) {
1435
+ return key.endsWith("/__root_layout.tsx");
1436
+ }
1429
1437
  function implicitRootLayoutAbsPath(appCwdPath, segments) {
1430
1438
  const filename = segments.length ? `${segments.join("__")}__root_layout.tsx` : "__root_layout.tsx";
1431
1439
  return path6.join(path6.resolve(appCwdPath), IMPLICIT_LAYOUT_DIR, filename);
@@ -1535,7 +1543,7 @@ ${layoutBinding} return `;
1535
1543
  const source = opts.includeSystemProvider ? `import type { LayoutModule, LayoutProps, PageProps } from "akanjs/client";
1536
1544
  import { assertGuardOnChain, loadFonts, RouteGuards, resolveRouteModule, RouteHead } from "akanjs/client";
1537
1545
  import type { ReactNode } from "react";
1538
- import { System } from "akanjs/ui/System/index.tsx";
1546
+ import { System } from "${ROOT_LAYOUT_SYSTEM.specifier}";
1539
1547
  import type { McpAppRootProps } from "akanjs/webkit";
1540
1548
  import { env } from "@apps/${opts.appName}/env/env.client";
1541
1549
  import { allDictionary } from ${JSON.stringify(dictMacroSpecifier)};
@@ -4505,4 +4513,4 @@ class ModuleExecutor extends Executor {
4505
4513
  }
4506
4514
  }
4507
4515
 
4508
- export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, binPlatforms, ServerEnvProfile, AkanAppConfig, AkanWorkspaceConfig, AsyncDefaultExportDetector, StoreBootstrap, resolveSsrPageEntriesForApp, CodegenLock, JsonFormatter, parseBiomeReport, Linter, LibSource, formatLibStatuses, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, libFacetRootHintOf, barrelFacetDirs, facetIndexShadowOf, rootEntryHintOf, isScannedRootEntry, AppInfo, Spinner, TypecheckFailure, ProjectTypecheck2, CommandExecutionError, parseEnvFile, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
4516
+ export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, binPlatforms, ServerEnvProfile, AkanAppConfig, AkanWorkspaceConfig, AsyncDefaultExportDetector, StoreBootstrap, ROOT_LAYOUT_SYSTEM, isImplicitRootLayoutKey, resolveSsrPageEntriesForApp, CodegenLock, JsonFormatter, parseBiomeReport, Linter, LibSource, formatLibStatuses, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, libFacetRootHintOf, barrelFacetDirs, facetIndexShadowOf, rootEntryHintOf, isScannedRootEntry, AppInfo, Spinner, TypecheckFailure, ProjectTypecheck2, CommandExecutionError, parseEnvFile, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ApplicationBuildReporter
4
- } from "./index-y725zb1a.js";
4
+ } from "./index-p9f6dsf2.js";
5
5
  import {
6
6
  parseBiomeReport,
7
7
  Linter,
@@ -10,11 +10,11 @@ import {
10
10
  AppExecutor,
11
11
  LibExecutor,
12
12
  PkgExecutor
13
- } from "./index-wfmpxke3.js";
13
+ } from "./index-0fq1b5jp.js";
14
14
  import {
15
15
  WorkspaceRunner,
16
16
  AkanQualityScanner
17
- } from "./index-jqsj5wjb.js";
17
+ } from "./index-1xfdzwrt.js";
18
18
 
19
19
  // pkgs/@akanjs/cli/verify/verifyComments.ts
20
20
  import { existsSync } from "fs";