@akanjs/cli 3.1.0-rc.9 → 3.1.0

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 (91) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-rkjyxgec.js → CodeAgent-c53dm40p.js} +2 -2
  3. package/{CodeAgentRpcHost-p7h6n2hp.js → CodeAgentRpcHost-9g27hmer.js} +1 -1
  4. package/{CodeTui-h7pyj6xa.js → CodeTui-xz9jtrn3.js} +47 -4
  5. package/README.ko.md +1 -1
  6. package/README.md +1 -1
  7. package/TunnelShare-59zd4j8n.js +14 -0
  8. package/{agent.command-3qxf4xcj.js → agent.command-qawf7z4s.js} +5 -5
  9. package/akanCode.js +7 -5
  10. package/{application.command-m1kcd7jf.js → application.command-jqrgqk6j.js} +35 -9
  11. package/{applicationBuildRunner-dj0xkrep.js → applicationBuildRunner-grgrey5c.js} +23 -8
  12. package/buildBatch.proc.js +9 -9
  13. package/{cloud.command-9cp1t0f5.js → cloud.command-p9067ssj.js} +13 -13
  14. package/cloud.script-f0r4ce7j.js +24 -0
  15. package/{code.command-0ad6gw2a.js → code.command-t6j55sbk.js} +25 -12
  16. package/commandManifest.json +1 -1
  17. package/{context.command-0qx447mb.js → context.command-eqbzbgth.js} +16 -16
  18. package/context.runner-1cs88ags.js +25 -0
  19. package/{guideline.command-cv5bmrx2.js → guideline.command-w905q73w.js} +2 -2
  20. package/guidelines/agentRule/agentRule.instruction.md +25 -10
  21. package/guidelines/conventions/conventions.instruction.md +71 -24
  22. package/guidelines/fieldRule/fieldRule.instruction.md +17 -0
  23. package/guidelines/mcpRule/mcpRule.instruction.md +93 -48
  24. package/guidelines/modelDocument/modelDocument.instruction.md +2 -1
  25. package/guidelines/modelStore/modelStore.instruction.md +7 -0
  26. package/guidelines/pageRule/pageRule.instruction.md +55 -8
  27. package/guidelines/queryRule/queryRule.instruction.md +24 -10
  28. package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -4
  29. package/guidelines/ssrRule/ssrRule.instruction.md +9 -6
  30. package/guidelines/transportRule/transportRule.instruction.md +36 -5
  31. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +5 -3
  32. package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +28 -8
  33. package/incrementalBuilder.proc.js +3 -3
  34. package/{index-j4mkhz93.js → index-0dd6z4b9.js} +3 -3
  35. package/{index-bspm21y1.js → index-1de5f0qq.js} +7 -7
  36. package/{index-j237xtew.js → index-1enc9rga.js} +2 -2
  37. package/index-25ks6x4k.js +643 -0
  38. package/{index-wa5jbxj1.js → index-2mrn1mrg.js} +1 -0
  39. package/{index-qwa5k1j8.js → index-3aynkpf8.js} +1 -1
  40. package/{index-vk0pa0mn.js → index-3hvmytbs.js} +2 -1
  41. package/{index-w44cy4vs.js → index-45c0mxb6.js} +2 -2
  42. package/{index-fyq1z6kt.js → index-48n4yhm4.js} +3 -3
  43. package/{index-192ha4xh.js → index-64pjry21.js} +1 -1
  44. package/{index-5edzv8fn.js → index-aqwdjn4x.js} +2 -2
  45. package/{index-d2242ksy.js → index-at7bz0xq.js} +3 -0
  46. package/{index-9z426msb.js → index-avjqbtkj.js} +7 -6
  47. package/{index-20bxxyvn.js → index-bs9yr4we.js} +40 -2
  48. package/{index-d72hfmdm.js → index-cgexcnwd.js} +8 -8
  49. package/{index-1xj2t7cb.js → index-dkfadmrx.js} +7 -7
  50. package/{index-35hc95h5.js → index-eabfsarf.js} +1 -1
  51. package/{index-pydbnfez.js → index-er62k6w3.js} +35 -9
  52. package/{index-1p98exm2.js → index-f2gfq0yh.js} +2 -2
  53. package/{index-jw1zm273.js → index-fbw3kmt5.js} +54 -10
  54. package/{index-4mhy6qme.js → index-fnqj2d2w.js} +4 -4
  55. package/{index-awbdfcf2.js → index-hqh4mpgt.js} +4 -4
  56. package/{index-fmzcs8v6.js → index-j4dzazmw.js} +4 -4
  57. package/{index-va06nr10.js → index-n8dsax1f.js} +64 -19
  58. package/{index-g1mbppa9.js → index-nr8m4j21.js} +5 -5
  59. package/{index-86jt2a0e.js → index-qh73jnyb.js} +1 -1
  60. package/{index-8fp3b47h.js → index-vtj332gj.js} +281 -46
  61. package/{index-tamvyvj3.js → index-wt7m1hfc.js} +3 -3
  62. package/{index-cpb3nvma.js → index-yfy3t4kw.js} +2 -2
  63. package/{index-trpasv9q.js → index-yyxy7aff.js} +1 -1
  64. package/{index-d47ypebv.js → index-z5cxrbvv.js} +75 -19
  65. package/index.js +40 -22
  66. package/{library.command-erp2f56n.js → library.command-z1v7zepj.js} +3 -3
  67. package/{localRegistry.command-y176p558.js → localRegistry.command-48n23bjy.js} +12 -12
  68. package/{module.command-gs2r615e.js → module.command-rv307dk7.js} +5 -5
  69. package/{package.command-j10r76ax.js → package.command-7xkzc8m1.js} +3 -3
  70. package/package.json +16 -16
  71. package/{page.command-4h4a8pnh.js → page.command-34hpdt7v.js} +3 -3
  72. package/{pipeline.command-a2nrk26m.js → pipeline.command-ckvhrpyg.js} +2 -2
  73. package/{primitive.command-w6t0asqz.js → primitive.command-em0twr5a.js} +6 -6
  74. package/{projectTypecheck-f534enqj.js → projectTypecheck-fy6hn05y.js} +1 -1
  75. package/{quality.command-77x7vbbx.js → quality.command-c6p2819k.js} +2 -2
  76. package/{repair.command-y6sstev7.js → repair.command-j6czdgrv.js} +5 -5
  77. package/{routeSourceValidator-7ycnfz0e.js → routeSourceValidator-6jd0q6r6.js} +47 -14
  78. package/{scalar.command-20b8cy0k.js → scalar.command-17e20sj2.js} +4 -4
  79. package/skills/akan-code/SKILL.md +4 -0
  80. package/skills/akan-store/SKILL.md +4 -2
  81. package/{subspace.command-5c7yasd7.js → subspace.command-n3j7vv0w.js} +8 -17
  82. package/templates/migration/__migrationId__.ts +23 -0
  83. package/templates/server.ts +8 -1
  84. package/templates/workspaceRoot/biome.json.template +1 -1
  85. package/{tunnel.command-2kw8vt9g.js → tunnel.command-cm578f4s.js} +7 -7
  86. package/{workflow.command-2djwmpqf.js → workflow.command-h9vkr6jb.js} +10 -10
  87. package/{workspace.command-ms84ykse.js → workspace.command-tp8ysvjs.js} +30 -28
  88. package/TunnelShare-661cxz5e.js +0 -14
  89. package/cloud.script-dgstqt1m.js +0 -24
  90. package/context.runner-1vsjztjg.js +0 -25
  91. package/index-665zp9rs.js +0 -271
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Sys,
4
4
  command
5
- } from "./index-jw1zm273.js";
5
+ } from "./index-fbw3kmt5.js";
6
6
  import"./index-52w0fvh8.js";
7
- import"./index-va06nr10.js";
7
+ import"./index-n8dsax1f.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-trpasv9q.js";
10
+ } from "./index-yyxy7aff.js";
11
11
  import {
12
12
  ScalarScript
13
- } from "./index-1p98exm2.js";
13
+ } from "./index-f2gfq0yh.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
16
16
  import { Logger, lowerlize } from "akanjs/common";
@@ -78,6 +78,9 @@ Stored under `.akan/code/sessions` — project history, so a second checkout of
78
78
  - `/peers` lists other `akan code` sessions running in this workspace; `/msg <peer> <text>` hands one a
79
79
  message.
80
80
  - `/clear` wipes the screen and keeps the conversation; `/compact [notes]` shortens what the model carries.
81
+ - `/autocompact <percent>` compacts on its own once the window is that full, in steps of 10 (`/autocompact 60`);
82
+ `100` is the default, which waits until 32k remain for the reply. `akan code --compact-at 60` (`-c`) starts
83
+ with it, and a share under the 20k every compaction keeps is refused.
81
84
 
82
85
  ## Model, effort, keys
83
86
 
@@ -119,6 +122,7 @@ akan code -i "<prompt>" open the session with the prompt already sent
119
122
  --app <name> narrow the agent to one app
120
123
  --profile local|pod|review|web what it may do (default local)
121
124
  --model <provider>/<id> --thinking, --json, --rpc, --resume <id>
125
+ --compact-at <percent> compact once the window is this full (10, 20, … 100)
122
126
  ```
123
127
 
124
128
  `review` reads and never writes, loads no project context files, and keeps no session on disk. `pod` has
@@ -19,14 +19,16 @@ For a model `comment` (`<Slice>` is a signal slice suffix, e.g. `InPublic`):
19
19
  `add<Field>OnComment(value)` / `sub<Field>OnComment(idx)` for arrays, `upload<Field>OnComment(fileList)`
20
20
  for file fields, `checkCommentSubmitable()`, `submitComment()`, `createCommentInForm()`,
21
21
  `updateCommentInForm()`
22
- - single: `viewComment(model)`, `mergeComment(model, data)`, `setComment(...models)`, `resetComment()`
22
+ - single: `viewComment(model)`, `mergeComment(model, data)`, `setComment(...models)`, `resetComment()`,
23
+ `invalidateComment()` (marks every slice stale after a custom mutation, so the next mount refetches)
23
24
  - per slice: `initComment<Slice>(...args)`, `refreshComment<Slice>()`, `selectComment<Slice>(model)`,
24
25
  `setPageOfComment<Slice>(page)`, `loadMoreOfComment<Slice>()`, `setLimitOfComment<Slice>(limit)`,
25
26
  `setQueryArgsOfComment<Slice>(...)`, `setSortOfComment<Slice>(sort)`
26
27
 
27
28
  ## Generated state — `st.use.*`
28
29
 
29
- `comment`, `commentLoading`, `commentForm`, `commentFormLoading`, `commentSubmit`, `commentModal`,
30
+ `comment`, `commentLoading`, `commentForm`, `commentFormLoading`, `commentFormUploading` (uploads in flight, per
31
+ `File` field — non-empty means do not submit), `commentSubmit`, `commentModal`,
30
32
  `commentViewAt`, `commentOperation`; per slice `commentList<Slice>`, `commentListLoading<Slice>`,
31
33
  `commentInitList<Slice>`, `commentSelection<Slice>`, `commentInsight<Slice>`, `pageOfComment<Slice>`,
32
34
  `lastPageOfComment<Slice>`, `hasMoreOfComment<Slice>`, `limitOfComment<Slice>`, `sortOfComment<Slice>`.
@@ -5,7 +5,7 @@ import {
5
5
  runner,
6
6
  script,
7
7
  command
8
- } from "./index-jw1zm273.js";
8
+ } from "./index-fbw3kmt5.js";
9
9
  import {
10
10
  FileSys2
11
11
  } from "./index-52w0fvh8.js";
@@ -14,20 +14,20 @@ import {
14
14
  Executor,
15
15
  WorkspaceExecutor,
16
16
  AppExecutor
17
- } from "./index-va06nr10.js";
17
+ } from "./index-n8dsax1f.js";
18
18
  import {
19
19
  GlobalConfig
20
- } from "./index-cpb3nvma.js";
20
+ } from "./index-yfy3t4kw.js";
21
21
  import"./index-m9jj544v.js";
22
- import"./index-g1mbppa9.js";
23
- import"./index-192ha4xh.js";
22
+ import"./index-nr8m4j21.js";
23
+ import"./index-25ks6x4k.js";
24
+ import"./index-64pjry21.js";
24
25
  import {
25
26
  SubspaceConfig
26
27
  } from "./index-4pf8g7ff.js";
27
28
  import {
28
29
  SlicePlanner
29
- } from "./index-35hc95h5.js";
30
- import"./index-665zp9rs.js";
30
+ } from "./index-eabfsarf.js";
31
31
 
32
32
  // pkgs/@akanjs/devkit/subspace.ts
33
33
  import { mkdir as mkdir2 } from "fs/promises";
@@ -67,9 +67,6 @@ class SubspaceClone {
67
67
  this.#clonePath = path.join(workspace.workspaceRoot, ".akan/subspace", declaration.name);
68
68
  this.#clone = new Executor(`subspace-${declaration.name}`, this.#clonePath);
69
69
  }
70
- async#cloneGit(args) {
71
- return await this.#workspace.spawn("git", ["-C", this.#clonePath, ...args]);
72
- }
73
70
  async#ensure(branch) {
74
71
  if (!await FileSys2.dirExists(path.join(this.#clonePath, ".git"))) {
75
72
  await rm(this.#clonePath, { recursive: true, force: true });
@@ -171,8 +168,6 @@ class SubspaceClone {
171
168
  const from = path.join(this.#clonePath, entry);
172
169
  if (!await FileSys2.entryExists(from))
173
170
  continue;
174
- if (await this.#isPushedCopy(entry))
175
- continue;
176
171
  await mkdir(holdRoot, { recursive: true });
177
172
  await rename(from, path.join(holdRoot, entry));
178
173
  held.push(entry);
@@ -188,10 +183,6 @@ class SubspaceClone {
188
183
  await rename(path.join(holdRoot, entry), target);
189
184
  }
190
185
  }
191
- async#isPushedCopy(entry) {
192
- const subject = await this.#cloneGit(["log", "-1", "--format=%s", "--", entry]).catch(() => "");
193
- return subject.trim().startsWith(SubspaceClone.syncSubjectPrefix);
194
- }
195
186
  static async#copyMissing(from, to) {
196
187
  await mkdir(to, { recursive: true });
197
188
  for (const entry of await readdir(from, { withFileTypes: true })) {
@@ -825,7 +816,7 @@ class SubspaceRunner extends runner("subspace") {
825
816
  if (!asked)
826
817
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
827
818
  const { libs } = await subspace.slice();
828
- const { CloudScript } = await import("./cloud.script-dgstqt1m.js");
819
+ const { CloudScript } = await import("./cloud.script-f0r4ce7j.js");
829
820
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
830
821
  host,
831
822
  workspaceId,
@@ -0,0 +1,23 @@
1
+ import type { AppInfo, LibInfo } from "akanjs";
2
+
3
+ interface Dict {
4
+ migrationId: string;
5
+ title: string;
6
+ }
7
+ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict) {
8
+ return `import { migration } from "akanjs/server";
9
+
10
+ export default migration(${JSON.stringify(dict.title)})
11
+ .plan(async ({ table }) => {
12
+ // TODO: count the rows apply changes, and list each decision a person approves
13
+ return { summary: {}, items: [] };
14
+ })
15
+ .apply(async ({ table }, { items }) => {
16
+ // TODO: write through table(refName), so every change is logged and a rollback can undo it
17
+ })
18
+ .verify(async ({ table }) => {
19
+ // TODO: one line per row apply left wrong; none means the data is as intended
20
+ return [];
21
+ });
22
+ `;
23
+ }
@@ -6,7 +6,7 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [
6
6
  const databaseModules = [...scanInfo.database.entries()].filter(([_, files]) => files.has("service"));
7
7
  const serviceModules = [...scanInfo.service.entries()].filter(([_, files]) => files.has("service"));
8
8
  const scalarModules = [...scanInfo.scalar.entries()];
9
- return `import { ${scanInfo.type === "app" ? "AkanServer, " : ""}AkanLib } from "akanjs/server";
9
+ return `import { ${scanInfo.type === "app" ? "AkanServer, " : ""}AkanLib${scanInfo.type === "app" ? ", Migrations" : ""} } from "akanjs/server";
10
10
  import * as cnst from "./lib/cnst";
11
11
  import * as db from "./lib/db";
12
12
  import * as sig from "./lib/sig";
@@ -29,6 +29,13 @@ ${scalarModules.map(([model]) => ` { constant: cnst.${model}, database: db.${
29
29
  });
30
30
 
31
31
  ${scanInfo.type === "app" ? `export const server = new AkanServer("${scanInfo.name}", env, undefined${libs.length ? `, ${libs.join(", ")}` : ""}, lib);` : ""}
32
+ ${
33
+ scanInfo.type === "app"
34
+ ? `export const migrations = new Migrations([
35
+ ${scanInfo.migrations.map(({ id, checksum }) => ` { id: "${id}", checksum: "${checksum}", load: () => import("./script/migration/${id}") },`).join("\n")}
36
+ ]);`
37
+ : ""
38
+ }
32
39
 
33
40
  ${scanInfo.type === "lib" ? `export { env } from "./env/env.server.testing";` : ""}
34
41
  export * as db from "./lib/db";
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.5.12/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.14/schema.json",
3
3
  "extends": ["@akanjs/devkit/biome.base.json"],
4
4
  "files": {
5
5
  "includes": [
@@ -4,25 +4,25 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-jw1zm273.js";
7
+ } from "./index-fbw3kmt5.js";
8
8
  import"./index-52w0fvh8.js";
9
9
  import {
10
10
  AppExecutor
11
- } from "./index-va06nr10.js";
11
+ } from "./index-n8dsax1f.js";
12
12
  import {
13
13
  GlobalConfig,
14
14
  CloudApi
15
- } from "./index-cpb3nvma.js";
15
+ } from "./index-yfy3t4kw.js";
16
16
  import"./index-m9jj544v.js";
17
- import"./index-g1mbppa9.js";
18
- import"./index-192ha4xh.js";
17
+ import"./index-nr8m4j21.js";
18
+ import"./index-25ks6x4k.js";
19
+ import"./index-64pjry21.js";
19
20
  import {
20
21
  TunnelShare2
21
- } from "./index-qwa5k1j8.js";
22
+ } from "./index-3aynkpf8.js";
22
23
  import {
23
24
  writeClipboard
24
25
  } from "./index-p6pbz9n5.js";
25
- import"./index-665zp9rs.js";
26
26
 
27
27
  // pkgs/@akanjs/cli/tunnel/tunnel.script.ts
28
28
  import { select } from "@inquirer/prompts";
@@ -3,20 +3,20 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-jw1zm273.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-va06nr10.js";
8
+ import"./index-n8dsax1f.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-trpasv9q.js";
11
- import"./index-5edzv8fn.js";
12
- import"./index-86jt2a0e.js";
13
- import"./index-fmzcs8v6.js";
14
- import"./index-awbdfcf2.js";
15
- import"./index-j4mkhz93.js";
16
- import"./index-1p98exm2.js";
10
+ import"./index-yyxy7aff.js";
11
+ import"./index-aqwdjn4x.js";
12
+ import"./index-qh73jnyb.js";
13
+ import"./index-j4dzazmw.js";
14
+ import"./index-hqh4mpgt.js";
15
+ import"./index-0dd6z4b9.js";
16
+ import"./index-f2gfq0yh.js";
17
17
  import {
18
18
  WorkflowRunner
19
- } from "./index-1xj2t7cb.js";
19
+ } from "./index-dkfadmrx.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/workflow/workflow.script.ts
22
22
  import { Logger } from "akanjs/common";
@@ -5,7 +5,7 @@ import {
5
5
  runner,
6
6
  script,
7
7
  command
8
- } from "./index-jw1zm273.js";
8
+ } from "./index-fbw3kmt5.js";
9
9
  import {
10
10
  FileSys2
11
11
  } from "./index-52w0fvh8.js";
@@ -19,7 +19,7 @@ import {
19
19
  AppExecutor,
20
20
  LibExecutor,
21
21
  PkgExecutor
22
- } from "./index-va06nr10.js";
22
+ } from "./index-n8dsax1f.js";
23
23
  import {
24
24
  countBlocking,
25
25
  formatStyleContract,
@@ -29,55 +29,55 @@ import {
29
29
  collectRecipeSources2,
30
30
  scanRecipes2
31
31
  } from "./index-hj6w4ka1.js";
32
- import"./index-trpasv9q.js";
33
- import"./index-5edzv8fn.js";
32
+ import"./index-yyxy7aff.js";
33
+ import"./index-aqwdjn4x.js";
34
34
  import"./index-zzvvc845.js";
35
35
  import {
36
36
  AgentScript
37
- } from "./index-tamvyvj3.js";
37
+ } from "./index-wt7m1hfc.js";
38
38
  import"./index-5nd1wtkv.js";
39
- import"./index-vk0pa0mn.js";
39
+ import"./index-3hvmytbs.js";
40
40
  import"./index-m9jj544v.js";
41
- import"./index-g1mbppa9.js";
42
- import"./index-192ha4xh.js";
41
+ import"./index-nr8m4j21.js";
42
+ import"./index-25ks6x4k.js";
43
+ import"./index-64pjry21.js";
43
44
  import {
44
45
  LibraryScript
45
- } from "./index-pydbnfez.js";
46
+ } from "./index-er62k6w3.js";
46
47
  import {
47
48
  ApplicationScript
48
- } from "./index-d47ypebv.js";
49
+ } from "./index-z5cxrbvv.js";
49
50
  import"./index-7md2g9vw.js";
50
- import"./index-cpb3nvma.js";
51
+ import"./index-yfy3t4kw.js";
51
52
  import"./index-tvehn2sp.js";
52
53
  import {
53
54
  PackageScript
54
- } from "./index-j237xtew.js";
55
+ } from "./index-1enc9rga.js";
55
56
  import {
56
57
  getNpmRegistryUrl,
57
58
  getLatestPackageVersion
58
- } from "./index-fyq1z6kt.js";
59
+ } from "./index-48n4yhm4.js";
59
60
  import {
60
61
  CloudScript2
61
- } from "./index-bspm21y1.js";
62
- import"./index-d72hfmdm.js";
63
- import"./index-j4mkhz93.js";
64
- import"./index-86jt2a0e.js";
65
- import"./index-fmzcs8v6.js";
66
- import"./index-awbdfcf2.js";
67
- import"./index-1p98exm2.js";
68
- import"./index-1xj2t7cb.js";
62
+ } from "./index-1de5f0qq.js";
63
+ import"./index-cgexcnwd.js";
64
+ import"./index-0dd6z4b9.js";
65
+ import"./index-qh73jnyb.js";
66
+ import"./index-j4dzazmw.js";
67
+ import"./index-hqh4mpgt.js";
68
+ import"./index-f2gfq0yh.js";
69
+ import"./index-dkfadmrx.js";
69
70
  import {
70
71
  ContextScript
71
- } from "./index-4mhy6qme.js";
72
- import"./index-35hc95h5.js";
73
- import"./index-665zp9rs.js";
72
+ } from "./index-fnqj2d2w.js";
73
+ import"./index-eabfsarf.js";
74
74
 
75
75
  // pkgs/@akanjs/cli/workspace/workspace.runner.ts
76
76
  import { mkdir, writeFile } from "fs/promises";
77
77
  import path from "path";
78
78
 
79
79
  // pkgs/@akanjs/devkit/biomeBase.ts
80
- var biomeVersion = "2.5.12";
80
+ var biomeVersion = "2.5.14";
81
81
 
82
82
  // pkgs/@akanjs/cli/workspace/workspace.runner.ts
83
83
  import { Ed25519Key } from "akanjs/server/ed25519Key";
@@ -96,6 +96,7 @@ var defaultWorkspacePeerDependencies = new Set([
96
96
  "tailwindcss",
97
97
  "typescript"
98
98
  ]);
99
+ var defaultWorkspaceTypeDependencies = { "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0" };
99
100
  var defaultMaxDiagnostics = 200;
100
101
 
101
102
  class WorkspaceRunner extends runner("workspace") {
@@ -163,6 +164,7 @@ class WorkspaceRunner extends runner("workspace") {
163
164
  ...rootPackageJson.devDependencies,
164
165
  "@biomejs/biome": biomeVersion,
165
166
  "@types/bun": latestTypesBunVersion,
167
+ ...defaultWorkspaceTypeDependencies,
166
168
  "@akanjs/devkit": akanVersion,
167
169
  ...typescript ? { typescript } : {}
168
170
  }
@@ -256,7 +258,7 @@ class WorkspaceRunner extends runner("workspace") {
256
258
  const actual = existing ? extractAgentBlock(existing) : null;
257
259
  if (actual === expected.trim())
258
260
  return;
259
- throw new Error(`[agentsIndex] ${scope.type}s/${scope.name}/AGENTS.md \uC758 recipe \uC0C9\uC778\uC774 \uC18C\uC2A4\uC640 \uB2E4\uB985\uB2C8\uB2E4(stale). ` + `\`akan sync ${scope.name}\` \uC744 \uC2E4\uD589\uD574 \uC7AC\uC0DD\uC131\uD558\uC138\uC694.`);
261
+ throw new Error(`[agentsIndex] The recipe index in ${scope.type}s/${scope.name}/AGENTS.md is stale: it differs from the recipe ` + `sources. Run \`akan sync ${scope.name}\` to regenerate it.`);
260
262
  }
261
263
  async#enforceRecipeGate(exec) {
262
264
  const cwdPath = exec.cwdPath;
@@ -272,8 +274,8 @@ class WorkspaceRunner extends runner("workspace") {
272
274
  const offenders = scanRecipes2(sources).filter((recipe) => !Object.values(recipe.variants).some((values) => values.length >= 2 || values.length === 1 && values[0] === "true"));
273
275
  if (offenders.length === 0)
274
276
  return;
275
- throw new Error(`[recipeGate] variant-less recipe(s): ${offenders.map((recipe) => recipe.name).join(", ")}
276
- ` + "\uACE0\uB97C \uC635\uC158 \uC5C6\uB294 look \uC740 recipe \uB85C \uB450\uC9C0 \uB9C8\uC138\uC694 \u2014 \uC790\uAE30 \uB9C8\uD06C\uC5C5\uC774 \uC788\uC73C\uBA74 \uCEF4\uD3EC\uB10C\uD2B8\uB85C \uC2B9\uACA9\uD558\uACE0, " + "\uB2E4\uB978 \uCEF4\uD3EC\uB10C\uD2B8\uC758 className \uC5D0 \uC8FC\uC785\uD558\uB294 \uC2A4\uD0A8\uC774\uBA74 \uACF5\uC720 \uD074\uB798\uC2A4 \uC0C1\uC218\uB85C \uB450\uC138\uC694.");
277
+ throw new Error(`[recipeGate] variant-less recipe(s): ${[...new Set(offenders.map((recipe) => recipe.name))].join(", ")}
278
+ ` + "A look with nothing to pick is not a recipe: promote one that has its own markup to a component, and keep " + "a skin passed into another component's className as a shared class constant.");
277
279
  }
278
280
  async#enforceStyleContract(exec) {
279
281
  const cwdPath = exec.cwdPath;
@@ -1,14 +0,0 @@
1
- // @bun
2
- import {
3
- TunnelShare2
4
- } from "./index-qwa5k1j8.js";
5
- import"./index-cpb3nvma.js";
6
- import"./index-g1mbppa9.js";
7
- import"./index-m9jj544v.js";
8
- import"./index-665zp9rs.js";
9
- import"./index-192ha4xh.js";
10
- import"./index-va06nr10.js";
11
- import"./index-52w0fvh8.js";
12
- export {
13
- TunnelShare2 as TunnelShare
14
- };
@@ -1,24 +0,0 @@
1
- // @bun
2
- import {
3
- CloudScript2
4
- } from "./index-bspm21y1.js";
5
- import"./index-fyq1z6kt.js";
6
- import"./index-d47ypebv.js";
7
- import"./index-35hc95h5.js";
8
- import"./index-pydbnfez.js";
9
- import"./index-j237xtew.js";
10
- import"./index-vk0pa0mn.js";
11
- import"./index-cpb3nvma.js";
12
- import"./index-g1mbppa9.js";
13
- import"./index-m9jj544v.js";
14
- import"./index-jw1zm273.js";
15
- import"./index-7md2g9vw.js";
16
- import"./index-665zp9rs.js";
17
- import"./index-5nd1wtkv.js";
18
- import"./index-192ha4xh.js";
19
- import"./index-va06nr10.js";
20
- import"./index-tvehn2sp.js";
21
- import"./index-52w0fvh8.js";
22
- export {
23
- CloudScript2 as CloudScript
24
- };
@@ -1,25 +0,0 @@
1
- // @bun
2
- import {
3
- ContextRunner2
4
- } from "./index-d72hfmdm.js";
5
- import"./index-1xj2t7cb.js";
6
- import"./index-1p98exm2.js";
7
- import"./index-awbdfcf2.js";
8
- import"./index-j4mkhz93.js";
9
- import"./index-fmzcs8v6.js";
10
- import"./index-86jt2a0e.js";
11
- import"./index-vk0pa0mn.js";
12
- import"./index-g1mbppa9.js";
13
- import"./index-m9jj544v.js";
14
- import"./index-5edzv8fn.js";
15
- import"./index-trpasv9q.js";
16
- import"./index-zzvvc845.js";
17
- import"./index-jw1zm273.js";
18
- import"./index-665zp9rs.js";
19
- import"./index-192ha4xh.js";
20
- import"./index-va06nr10.js";
21
- import"./index-hj6w4ka1.js";
22
- import"./index-52w0fvh8.js";
23
- export {
24
- ContextRunner2 as ContextRunner
25
- };