@akanjs/cli 3.1.2-rc.2 → 3.1.2-rc.4

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 (86) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-nkk70v5h.js → CodeAgent-z34p8m91.js} +2 -2
  3. package/{CodeTui-sdqz2gxb.js → CodeTui-nvd9fk3g.js} +1 -1
  4. package/TunnelShare-jwbb50kz.js +14 -0
  5. package/{agent.command-5gfrfh8d.js → agent.command-962mp3kg.js} +15 -15
  6. package/akanCode.js +2 -2
  7. package/{application.command-nd0fshsk.js → application.command-1nr0bqq1.js} +35 -11
  8. package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-xy7hnfzq.js} +7 -6
  9. package/buildBatch.proc.js +6 -6
  10. package/{cloud.command-8kbddsz9.js → cloud.command-cj7b3m6y.js} +15 -15
  11. package/cloud.script-8kr7qgfa.js +27 -0
  12. package/{code.command-5djp5c0n.js → code.command-asq7xrr6.js} +6 -6
  13. package/commandManifest.json +1 -1
  14. package/{context.command-5d0bscv6.js → context.command-fw4g2pw1.js} +18 -17
  15. package/context.runner-p6m5cxk3.js +28 -0
  16. package/{guideline.command-195g0h9a.js → guideline.command-43gfjsjv.js} +2 -2
  17. package/guidelines/conventions/rules/page.md +4 -2
  18. package/guidelines/conventions/rules/server.md +2 -0
  19. package/guidelines/conventions/rules/style.md +3 -1
  20. package/guidelines/conventions/rules/ts.md +2 -1
  21. package/guidelines/cssRule/cssRule.instruction.md +3 -1
  22. package/guidelines/pageRule/pageRule.instruction.md +3 -0
  23. package/incrementalBuilder.proc.js +52 -6
  24. package/{index-ms1am2wr.js → index-0tkj05cz.js} +3 -3
  25. package/{index-00a7j05x.js → index-2yan1ajk.js} +7 -7
  26. package/{index-g500c5j9.js → index-38by07nw.js} +1 -1
  27. package/{index-zttm13c3.js → index-38patcx6.js} +4 -4
  28. package/{index-f6zrhcnk.js → index-53h0053j.js} +23 -8
  29. package/{index-zbrwnmf1.js → index-6t7fkx73.js} +1 -1
  30. package/{index-pqdyyxz0.js → index-6zgt7zmx.js} +4 -4
  31. package/{index-y4kcmbt2.js → index-8d9r465x.js} +2 -2
  32. package/{index-yep9xcz0.js → index-90q0w90q.js} +1 -1
  33. package/{index-q9q6jjk1.js → index-ampz4vgv.js} +4 -4
  34. package/{index-chjaw222.js → index-ap6ac70m.js} +3 -3
  35. package/{index-dbxac7mz.js → index-ck64kxrn.js} +2 -2
  36. package/{index-p6x5b7hr.js → index-d894868w.js} +3 -0
  37. package/{index-sveq36gh.js → index-dcm66hss.js} +2 -2
  38. package/{index-84h43kg6.js → index-demt944k.js} +2 -2
  39. package/{index-0j1t1h2b.js → index-g0yds382.js} +1 -1
  40. package/{index-pnk67cqd.js → index-gfh90r3t.js} +2 -2
  41. package/{index-19cspack.js → index-hmj94es2.js} +4 -4
  42. package/{index-3q4kkyd4.js → index-jzpeny42.js} +3 -3
  43. package/{index-tw27n941.js → index-jzz6ye8x.js} +296 -24
  44. package/{index-2mwjshz5.js → index-kc6ffq0s.js} +16 -13
  45. package/{index-tp56652m.js → index-kc871vpc.js} +3 -3
  46. package/{index-1404hqcj.js → index-kdswbvys.js} +3 -3
  47. package/{index-defp4gmb.js → index-qev8p5wp.js} +1 -1
  48. package/{index-1h2jc0x3.js → index-qwe079ww.js} +4 -4
  49. package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
  50. package/{index-9zy8479y.js → index-r0q2ka2b.js} +1 -1
  51. package/{index-ewbmfarf.js → index-r8t5sq7z.js} +31 -8
  52. package/{index-gf4fcw1n.js → index-re2kfscb.js} +495 -8
  53. package/{index-gr9thy79.js → index-sra1a5f8.js} +2 -2
  54. package/{index-khk05tsf.js → index-t0hk1kxq.js} +1 -1
  55. package/index-vkpqe29t.js +267 -0
  56. package/{index-sp0qsr7a.js → index-w60zxxye.js} +3 -3
  57. package/{index-mzjwq4dd.js → index-wymcdsas.js} +8 -8
  58. package/{index-t78230d7.js → index-y0y0pnx8.js} +3 -2
  59. package/{index-tyt7cw99.js → index-z47rw9ez.js} +6 -6
  60. package/index.js +23 -23
  61. package/{library.command-63hgt9te.js → library.command-zh29tjdd.js} +3 -3
  62. package/{localRegistry.command-g3f8k25t.js → localRegistry.command-k9pn9ahj.js} +14 -14
  63. package/{module.command-myykfb6s.js → module.command-dgpqs9fz.js} +6 -6
  64. package/{package.command-96eheyvd.js → package.command-1je4hsca.js} +3 -3
  65. package/package.json +2 -2
  66. package/{page.command-gs6d841d.js → page.command-cgsasanh.js} +3 -3
  67. package/{pipeline.command-wdfvdbfj.js → pipeline.command-tb46sa8v.js} +2 -2
  68. package/{primitive.command-eg2c3m97.js → primitive.command-bzsy23x5.js} +7 -7
  69. package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-h8rgaczy.js} +1 -1
  70. package/{quality.command-b840977n.js → quality.command-120m9h6v.js} +4 -4
  71. package/{repair.command-r7z709yf.js → repair.command-6m4wd0qv.js} +6 -6
  72. package/{scalar.command-t6hhty3f.js → scalar.command-3dn5hsc6.js} +5 -5
  73. package/skills/akan-page/SKILL.md +19 -0
  74. package/skills/akan-service/SKILL.md +47 -0
  75. package/{subspace.command-a1sf9n5a.js → subspace.command-s8nyfqbn.js} +8 -8
  76. package/{tunnel.command-dcb0wg93.js → tunnel.command-8mwrqkr3.js} +7 -7
  77. package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
  78. package/typecheck.proc.js +1 -1
  79. package/{verify.command-07fqhpak.js → verify.command-2pspfy7k.js} +12 -12
  80. package/{workflow.command-c2jhzf7v.js → workflow.command-7sy5vnsj.js} +11 -11
  81. package/{workspace.command-gv20zq1z.js → workspace.command-x518tdv4.js} +30 -29
  82. package/TunnelShare-hdq9h1hr.js +0 -14
  83. package/cloud.script-hgvvajm3.js +0 -27
  84. package/context.runner-2v5pq18d.js +0 -27
  85. package/templates/workspaceRoot/patches/zod@3.25.76.patch.template +0 -22
  86. package/templates/workspaceRoot/patches/zod@4.4.3.patch.template +0 -11
@@ -9,10 +9,10 @@ import {
9
9
  UpdatePackFolder,
10
10
  NativePublicEnv,
11
11
  NativeApp
12
- } from "./index-sp0qsr7a.js";
12
+ } from "./index-w60zxxye.js";
13
13
  import {
14
14
  ExitCodeError
15
- } from "./index-9zy8479y.js";
15
+ } from "./index-r0q2ka2b.js";
16
16
  import {
17
17
  ConfigLock
18
18
  } from "./index-bqbf654f.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-9zy8479y.js";
5
+ } from "./index-r0q2ka2b.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -0,0 +1,267 @@
1
+ // @bun
2
+ import {
3
+ AkanGraphDiff,
4
+ AkanIndex
5
+ } from "./index-re2kfscb.js";
6
+
7
+ // pkgs/@akanjs/devkit/gitRevision.ts
8
+ var systemPaths = ["apps", "libs"];
9
+ var changeOfStatus = { A: "added", D: "removed" };
10
+
11
+ class GitRevision {
12
+ static #defaultBranches = ["upstream/HEAD", "upstream/main", "origin/HEAD", "origin/main", "main", "master"];
13
+ static #env = { ...process.env, GIT_OPTIONAL_LOCKS: "0" };
14
+ #root;
15
+ constructor(root) {
16
+ this.#root = root;
17
+ }
18
+ async forkPointOf(since) {
19
+ if ((await this.#git(["rev-parse", "--is-inside-work-tree"]))?.trim() !== "true")
20
+ return { error: "The Change Map compares with git history, and this workspace is not in a git repository." };
21
+ if (since !== null) {
22
+ const sha = /^[^-\s][^\s]*$/.test(since) ? (await this.#git(["rev-parse", "--verify", "--quiet", `${since}^{commit}`]))?.trim() : undefined;
23
+ if (!sha)
24
+ return { error: `${since} is not a commit in this repository.` };
25
+ return await this.#mergeBase(since, sha);
26
+ }
27
+ for (const branch of GitRevision.#defaultBranches)
28
+ if (await this.#git(["rev-parse", "--verify", "--quiet", `${branch}^{commit}`]) !== null)
29
+ return await this.#mergeBase(branch, branch);
30
+ const head = (await this.#git(["rev-parse", "--verify", "--quiet", "HEAD^{commit}"]))?.trim();
31
+ return head ? { sha: head } : { error: "The repository has no commit to compare with yet." };
32
+ }
33
+ async#mergeBase(name, revision) {
34
+ const sha = (await this.#git(["merge-base", "HEAD", revision]))?.trim();
35
+ if (sha)
36
+ return { sha };
37
+ return {
38
+ error: `HEAD shares no commit with ${name} here. In a shallow clone, \`git fetch --unshallow\` brings the history in.`
39
+ };
40
+ }
41
+ async filesAt(sha, isWanted) {
42
+ const listed = await this.#git(["ls-tree", "-r", "-z", "--name-only", sha, "--", ...systemPaths]);
43
+ if (listed === null)
44
+ throw new Error(`git ls-tree failed for ${sha}`);
45
+ const files = listed.split("\x00").filter((file) => file && isWanted(file));
46
+ const texts = new Map;
47
+ if (!files.length)
48
+ return texts;
49
+ const proc = Bun.spawn(["git", "cat-file", "--batch"], {
50
+ cwd: this.#root,
51
+ env: GitRevision.#env,
52
+ stdin: "pipe",
53
+ stdout: "pipe",
54
+ stderr: "ignore"
55
+ });
56
+ const output = new Response(proc.stdout).arrayBuffer();
57
+ proc.stdin.write(files.map((file) => `${sha}:./${file}
58
+ `).join(""));
59
+ await proc.stdin.end();
60
+ const bytes = new Uint8Array(await output);
61
+ if (await proc.exited !== 0)
62
+ throw new Error(`git cat-file failed for ${sha}`);
63
+ const decoder = new TextDecoder;
64
+ let offset = 0;
65
+ for (const file of files) {
66
+ const lineEnd = bytes.indexOf(10, offset);
67
+ if (lineEnd < 0)
68
+ throw new Error(`git cat-file ended before ${file} at ${sha}`);
69
+ const header = decoder.decode(bytes.subarray(offset, lineEnd));
70
+ offset = lineEnd + 1;
71
+ if (header.endsWith(" missing"))
72
+ continue;
73
+ const [, type, size] = header.split(" ");
74
+ const length = Number(size);
75
+ if (type === "blob")
76
+ texts.set(file, decoder.decode(bytes.subarray(offset, offset + length)));
77
+ offset += length + 1;
78
+ }
79
+ return texts;
80
+ }
81
+ async changedFilesSince(sha) {
82
+ const [tracked, untracked] = await Promise.all([
83
+ this.#git(["diff", "--name-status", "--no-renames", "--relative", "-z", sha, "--", ...systemPaths]),
84
+ this.#git(["ls-files", "-z", "--others", "--exclude-standard", "--", ...systemPaths])
85
+ ]);
86
+ if (tracked === null || untracked === null)
87
+ throw new Error(`git could not list the changes since ${sha}`);
88
+ const changes = new Map;
89
+ const fields = tracked.split("\x00");
90
+ for (let idx = 0;idx + 1 < fields.length; idx += 2)
91
+ changes.set(fields[idx + 1], changeOfStatus[fields[idx]] ?? "changed");
92
+ for (const file of untracked.split("\x00"))
93
+ if (file)
94
+ changes.set(file, "added");
95
+ return [...changes].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([file, change]) => ({ file, change }));
96
+ }
97
+ async workingFiles() {
98
+ const listed = await this.#git([
99
+ "ls-files",
100
+ "-z",
101
+ "--cached",
102
+ "--others",
103
+ "--exclude-standard",
104
+ "--",
105
+ ...systemPaths
106
+ ]);
107
+ if (listed === null)
108
+ throw new Error("git ls-files failed");
109
+ return [...new Set(listed.split("\x00").filter(Boolean))];
110
+ }
111
+ async#git(args) {
112
+ try {
113
+ const proc = Bun.spawn(["git", ...args], {
114
+ cwd: this.#root,
115
+ env: GitRevision.#env,
116
+ stdout: "pipe",
117
+ stderr: "ignore"
118
+ });
119
+ const [text, exitCode] = await Promise.all([new Response(proc.stdout).text(), proc.exited]);
120
+ return exitCode === 0 ? text : null;
121
+ } catch {
122
+ return null;
123
+ }
124
+ }
125
+ }
126
+
127
+ // pkgs/@akanjs/devkit/workspaceGraph.ts
128
+ import { readFile } from "fs/promises";
129
+ import path from "path";
130
+ import ts from "typescript";
131
+ var indexedPath = /^(apps|libs)\/(?!(?:.*\/)?(?:node_modules|dist|\.akan|env)\/).*\.tsx?$/;
132
+ var hiddenPath = /(?:^|\/)(?:node_modules|dist|\.akan|env)\//;
133
+ var unscopedNodeLimit = 600;
134
+ var cachedBaseLimit = 4;
135
+ var slashed = (fileName) => fileName.replace(/\\/g, "/");
136
+
137
+ class WorkspaceGraph {
138
+ static #bases = new Map;
139
+ static async build(workspace, { digests = false } = {}) {
140
+ const root = workspace.workspaceRoot;
141
+ const files = (await workspace.getAllFiles("{apps,libs}/**/*.{ts,tsx}")).map(slashed).filter((file) => indexedPath.test(file));
142
+ return WorkspaceGraph.#graphOf(root, await WorkspaceGraph.#textsOf(root, files), digests);
143
+ }
144
+ static async#textsOf(root, files) {
145
+ const read = await Promise.all(files.map(async (file) => [file, await readFile(path.join(root, file), "utf8").catch(() => null)]));
146
+ return new Map(read.filter((entry) => entry[1] !== null));
147
+ }
148
+ static async changes(workspace, since) {
149
+ const forkPoint = await new GitRevision(workspace.workspaceRoot).forkPointOf(since);
150
+ if (forkPoint.error !== undefined)
151
+ return { error: forkPoint.error };
152
+ return await WorkspaceGraph.changesAt(workspace, forkPoint.sha);
153
+ }
154
+ static async changesAt(workspace, sha) {
155
+ const root = workspace.workspaceRoot;
156
+ const git = new GitRevision(root);
157
+ const [before, after, files] = await Promise.all([
158
+ WorkspaceGraph.#baseAt(root, sha),
159
+ git.workingFiles().then((working) => WorkspaceGraph.#textsOf(root, working.filter((file) => indexedPath.test(file)))).then((texts) => WorkspaceGraph.#graphOf(root, texts, true)),
160
+ git.changedFilesSince(sha)
161
+ ]);
162
+ const changes = AkanGraphDiff.between(before, after);
163
+ const mapped = new Set([
164
+ ...changes.nodes.filter((node) => node.change).flatMap((node) => [
165
+ node.at?.file,
166
+ ...(node.fields ?? []).filter((field) => field.change).map(({ at }) => at.file)
167
+ ]),
168
+ ...changes.edges.filter((edge) => edge.change).map((edge) => edge.at?.file)
169
+ ]);
170
+ const unmapped = files.filter(({ file }) => !mapped.has(file) && !hiddenPath.test(file));
171
+ return { ...changes, since: sha.slice(0, 12), unmapped };
172
+ }
173
+ static #baseAt(root, sha) {
174
+ const key = `${root}
175
+ ${sha}`;
176
+ const cached = WorkspaceGraph.#bases.get(key);
177
+ if (cached)
178
+ return cached;
179
+ const graph = new GitRevision(root).filesAt(sha, (file) => indexedPath.test(file)).then((texts) => WorkspaceGraph.#graphOf(root, texts, true));
180
+ graph.catch(() => WorkspaceGraph.#bases.delete(key));
181
+ WorkspaceGraph.#bases.set(key, graph);
182
+ for (const old of [...WorkspaceGraph.#bases.keys()].slice(0, -cachedBaseLimit))
183
+ WorkspaceGraph.#bases.delete(old);
184
+ return graph;
185
+ }
186
+ static #graphOf(root, texts, digests) {
187
+ const index = new AkanIndex({ ts, root });
188
+ const byFileName = new Map;
189
+ for (const [file, text] of texts) {
190
+ const fileName = slashed(path.join(root, file));
191
+ byFileName.set(fileName, text);
192
+ index.setFile(fileName, text);
193
+ }
194
+ return index.graph((fileName) => byFileName.get(fileName), { digests });
195
+ }
196
+ static scope(graph, { app, module }) {
197
+ if (!app && !module)
198
+ return graph;
199
+ const owners = app ? new Set([`apps/${app}`, `libs/${app}`]) : null;
200
+ const seeds = new Set(graph.nodes.filter((node) => (!owners || owners.has(node.owner ?? "")) && (!module || node.module === module)).map((node) => node.id));
201
+ const edges = graph.edges.filter((edge) => seeds.has(edge.from) || seeds.has(edge.to));
202
+ const ids = new Set([...seeds, ...edges.flatMap((edge) => [edge.from, edge.to])]);
203
+ return { version: 1, nodes: graph.nodes.filter((node) => ids.has(node.id)), edges };
204
+ }
205
+ static visibleTo(graph, app) {
206
+ const appOwner = `apps/${app}`;
207
+ const isVisible = ({ owner }) => !owner || owner === appOwner || owner.startsWith("libs/");
208
+ const nodes = graph.nodes.filter(isVisible);
209
+ const ids = new Set(nodes.map((node) => node.id));
210
+ return { version: 1, nodes, edges: graph.edges.filter((edge) => ids.has(edge.from) && ids.has(edge.to)) };
211
+ }
212
+ static changesVisibleTo(changes, app) {
213
+ const visible = WorkspaceGraph.visibleTo(changes, app);
214
+ const linked = new Set(visible.edges.flatMap((edge) => [edge.from, edge.to]));
215
+ const nodes = visible.nodes.filter((node) => node.change || linked.has(node.id));
216
+ const appPath = `apps/${app}/`;
217
+ return {
218
+ ...changes,
219
+ nodes,
220
+ edges: visible.edges,
221
+ summary: WorkspaceGraph.#summaryOf(nodes),
222
+ unmapped: changes.unmapped.filter(({ file }) => file.startsWith(appPath) || file.startsWith("libs/"))
223
+ };
224
+ }
225
+ static #summaryOf(nodes) {
226
+ const summary = { added: 0, removed: 0, changed: 0 };
227
+ for (const { change } of nodes)
228
+ if (change)
229
+ summary[change] += 1;
230
+ return summary;
231
+ }
232
+ static answerChanges(changes, scope) {
233
+ if ("error" in changes)
234
+ return {
235
+ diagnostics: [{ severity: "error", code: "graph-since-unknown", message: changes.error, input: "since" }]
236
+ };
237
+ const answer = WorkspaceGraph.answer(changes, scope, changes.nodes.filter((node) => node.change));
238
+ if ("diagnostics" in answer)
239
+ return { since: changes.since, summary: changes.summary, ...answer };
240
+ const summary = WorkspaceGraph.#summaryOf(answer.nodes);
241
+ const owners = scope.app ? [`apps/${scope.app}/`, `libs/${scope.app}/`] : null;
242
+ const modules = scope.module ? [`/lib/${scope.module}/`, `/lib/_${scope.module}/`] : null;
243
+ const unmapped = changes.unmapped.filter(({ file }) => (!owners || owners.some((owner) => file.startsWith(owner))) && (!modules || modules.some((segment) => file.includes(segment))));
244
+ return { since: changes.since, summary, ...answer, unmapped };
245
+ }
246
+ static answer(graph, scope, counted = graph.nodes) {
247
+ if (scope.app || scope.module || graph.nodes.length <= unscopedNodeLimit)
248
+ return WorkspaceGraph.scope(graph, scope);
249
+ const owners = new Map;
250
+ for (const node of counted)
251
+ if (node.owner)
252
+ owners.set(node.owner, (owners.get(node.owner) ?? 0) + 1);
253
+ return {
254
+ diagnostics: [
255
+ {
256
+ severity: "error",
257
+ code: "graph-scope-required",
258
+ message: `The graph has ${graph.nodes.length} nodes. Pass app, module or both to scope it.`,
259
+ input: "app"
260
+ }
261
+ ],
262
+ owners: Object.fromEntries([...owners].sort(([a], [b]) => a < b ? -1 : 1))
263
+ };
264
+ }
265
+ }
266
+
267
+ export { GitRevision, WorkspaceGraph };
@@ -5,17 +5,17 @@ import {
5
5
  AkanAppConfig,
6
6
  Executor,
7
7
  WorkspaceExecutor
8
- } from "./index-g500c5j9.js";
8
+ } from "./index-38by07nw.js";
9
9
  import {
10
10
  resolveAppId,
11
11
  targetHtmlFilename
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
14
  CsrArtifactBuilder
15
- } from "./index-sveq36gh.js";
15
+ } from "./index-dcm66hss.js";
16
16
  import {
17
17
  ExitCodeError
18
- } from "./index-9zy8479y.js";
18
+ } from "./index-r0q2ka2b.js";
19
19
 
20
20
  // pkgs/@akanjs/devkit/mobile/desktopBin.ts
21
21
  import { chmod, mkdir, rename, rm, writeFile } from "fs/promises";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  WorkspaceExecutor
4
- } from "./index-g500c5j9.js";
4
+ } from "./index-38by07nw.js";
5
5
  import {
6
6
  jsonText,
7
7
  workflowPlanApproval,
@@ -26,27 +26,27 @@ import {
26
26
  renderWorkflowApply,
27
27
  renderWorkflowValidation,
28
28
  renderWorkflowRunArtifact
29
- } from "./index-1404hqcj.js";
29
+ } from "./index-kdswbvys.js";
30
30
  import {
31
31
  AkanContextAnalyzer
32
- } from "./index-dbxac7mz.js";
32
+ } from "./index-ck64kxrn.js";
33
33
  import {
34
34
  CommandContainer,
35
35
  runner
36
- } from "./index-9zy8479y.js";
36
+ } from "./index-r0q2ka2b.js";
37
37
  import {
38
38
  ModuleScript
39
- } from "./index-19cspack.js";
39
+ } from "./index-hmj94es2.js";
40
40
  import {
41
41
  PrimitiveScript
42
- } from "./index-pqdyyxz0.js";
42
+ } from "./index-6zgt7zmx.js";
43
43
  import {
44
44
  spawnAkan,
45
45
  isWorkspaceTarget
46
- } from "./index-ms1am2wr.js";
46
+ } from "./index-0tkj05cz.js";
47
47
  import {
48
48
  ScalarScript
49
- } from "./index-pnk67cqd.js";
49
+ } from "./index-gfh90r3t.js";
50
50
  import {
51
51
  workflowSpecs
52
52
  } from "./index-k64mhwbw.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-gr9thy79.js";
5
+ } from "./index-sra1a5f8.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
@@ -16,7 +16,8 @@ var devRoutePrefixes = [
16
16
  "/_akan/dictionary",
17
17
  "/_akan/hmr",
18
18
  "/_akan/app",
19
- "/_akan/ops"
19
+ "/_akan/ops",
20
+ "/_akan/studio"
20
21
  ];
21
22
  var handshakeHeaders = new Set([
22
23
  "upgrade",
@@ -4,7 +4,7 @@ import {
4
4
  script,
5
5
  ExitCodeError,
6
6
  markCliErrorPrinted
7
- } from "./index-9zy8479y.js";
7
+ } from "./index-r0q2ka2b.js";
8
8
  import {
9
9
  AGENT_BLOCK_START,
10
10
  AGENT_BLOCK_END,
@@ -15,7 +15,7 @@ import {
15
15
  CLAUDE_COMMENT_RULE,
16
16
  AppExecutor,
17
17
  LibExecutor
18
- } from "./index-g500c5j9.js";
18
+ } from "./index-38by07nw.js";
19
19
  import {
20
20
  akanCodePaths2
21
21
  } from "./index-35j83zkd.js";
@@ -29,19 +29,19 @@ import {
29
29
  } from "./index-hj6w4ka1.js";
30
30
  import {
31
31
  AkanContextAnalyzer
32
- } from "./index-dbxac7mz.js";
32
+ } from "./index-ck64kxrn.js";
33
33
  import {
34
34
  ApplicationRunner,
35
35
  VerifyScope
36
- } from "./index-2mwjshz5.js";
36
+ } from "./index-kc6ffq0s.js";
37
37
  import {
38
38
  WorkspaceRunner
39
- } from "./index-chjaw222.js";
39
+ } from "./index-ap6ac70m.js";
40
40
  import {
41
41
  VerifyComments,
42
42
  VerifyPipeline,
43
43
  VerifyReport
44
- } from "./index-tw27n941.js";
44
+ } from "./index-jzz6ye8x.js";
45
45
 
46
46
  // pkgs/@akanjs/cli/agent/agent.script.ts
47
47
  import { Logger as Logger3 } from "akanjs/common";
package/index.js CHANGED
@@ -4,9 +4,9 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-9zy8479y.js";
7
+ } from "./index-r0q2ka2b.js";
8
8
  import"./index-bns3wcpc.js";
9
- import"./index-g500c5j9.js";
9
+ import"./index-38by07nw.js";
10
10
 
11
11
  // pkgs/@akanjs/cli/bunVersionGuard.ts
12
12
  class BunVersionGuard {
@@ -22,27 +22,27 @@ import path from "path";
22
22
 
23
23
  // pkgs/@akanjs/cli/commandModules.ts
24
24
  var commandModules = {
25
- workspace: async () => (await import("./workspace.command-gv20zq1z.js")).WorkspaceCommand,
26
- agent: async () => (await import("./agent.command-5gfrfh8d.js")).AgentCommand,
27
- code: async () => (await import("./code.command-5djp5c0n.js")).CodeCommand,
28
- application: async () => (await import("./application.command-nd0fshsk.js")).ApplicationCommand,
29
- library: async () => (await import("./library.command-63hgt9te.js")).LibraryCommand,
30
- localRegistry: async () => (await import("./localRegistry.command-g3f8k25t.js")).LocalRegistryCommand,
31
- package: async () => (await import("./package.command-96eheyvd.js")).PackageCommand,
32
- module: async () => (await import("./module.command-myykfb6s.js")).ModuleCommand,
33
- page: async () => (await import("./page.command-gs6d841d.js")).PageCommand,
34
- context: async () => (await import("./context.command-5d0bscv6.js")).ContextCommand,
35
- cloud: async () => (await import("./cloud.command-8kbddsz9.js")).CloudCommand,
36
- subspace: async () => (await import("./subspace.command-a1sf9n5a.js")).SubspaceCommand,
37
- guideline: async () => (await import("./guideline.command-195g0h9a.js")).GuidelineCommand,
38
- scalar: async () => (await import("./scalar.command-t6hhty3f.js")).ScalarCommand,
39
- primitive: async () => (await import("./primitive.command-eg2c3m97.js")).PrimitiveCommand,
40
- quality: async () => (await import("./quality.command-b840977n.js")).QualityCommand,
41
- verify: async () => (await import("./verify.command-07fqhpak.js")).VerifyCommand,
42
- repair: async () => (await import("./repair.command-r7z709yf.js")).RepairCommand,
43
- workflow: async () => (await import("./workflow.command-c2jhzf7v.js")).WorkflowCommand,
44
- pipeline: async () => (await import("./pipeline.command-wdfvdbfj.js")).PipelineCommand,
45
- tunnel: async () => (await import("./tunnel.command-dcb0wg93.js")).TunnelCommand
25
+ workspace: async () => (await import("./workspace.command-x518tdv4.js")).WorkspaceCommand,
26
+ agent: async () => (await import("./agent.command-962mp3kg.js")).AgentCommand,
27
+ code: async () => (await import("./code.command-asq7xrr6.js")).CodeCommand,
28
+ application: async () => (await import("./application.command-1nr0bqq1.js")).ApplicationCommand,
29
+ library: async () => (await import("./library.command-zh29tjdd.js")).LibraryCommand,
30
+ localRegistry: async () => (await import("./localRegistry.command-k9pn9ahj.js")).LocalRegistryCommand,
31
+ package: async () => (await import("./package.command-1je4hsca.js")).PackageCommand,
32
+ module: async () => (await import("./module.command-dgpqs9fz.js")).ModuleCommand,
33
+ page: async () => (await import("./page.command-cgsasanh.js")).PageCommand,
34
+ context: async () => (await import("./context.command-fw4g2pw1.js")).ContextCommand,
35
+ cloud: async () => (await import("./cloud.command-cj7b3m6y.js")).CloudCommand,
36
+ subspace: async () => (await import("./subspace.command-s8nyfqbn.js")).SubspaceCommand,
37
+ guideline: async () => (await import("./guideline.command-43gfjsjv.js")).GuidelineCommand,
38
+ scalar: async () => (await import("./scalar.command-3dn5hsc6.js")).ScalarCommand,
39
+ primitive: async () => (await import("./primitive.command-bzsy23x5.js")).PrimitiveCommand,
40
+ quality: async () => (await import("./quality.command-120m9h6v.js")).QualityCommand,
41
+ verify: async () => (await import("./verify.command-2pspfy7k.js")).VerifyCommand,
42
+ repair: async () => (await import("./repair.command-6m4wd0qv.js")).RepairCommand,
43
+ workflow: async () => (await import("./workflow.command-7sy5vnsj.js")).WorkflowCommand,
44
+ pipeline: async () => (await import("./pipeline.command-tb46sa8v.js")).PipelineCommand,
45
+ tunnel: async () => (await import("./tunnel.command-8mwrqkr3.js")).TunnelCommand
46
46
  };
47
47
  var commandModuleIds = Object.keys(commandModules);
48
48
 
@@ -3,12 +3,12 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-9zy8479y.js";
6
+ } from "./index-r0q2ka2b.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-g500c5j9.js";
8
+ import"./index-38by07nw.js";
9
9
  import {
10
10
  LibraryScript
11
- } from "./index-y4kcmbt2.js";
11
+ } from "./index-8d9r465x.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.command.ts
14
14
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,37 +4,37 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-9zy8479y.js";
7
+ } from "./index-r0q2ka2b.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-g500c5j9.js";
11
+ } from "./index-38by07nw.js";
12
12
  import {
13
13
  npmRegistryFromEnv,
14
14
  warnIgnoredNpmRegistry,
15
15
  getNpmRegistryUrl
16
16
  } from "./index-4am4dvmf.js";
17
- import"./index-p6x5b7hr.js";
18
- import"./index-sp0qsr7a.js";
19
- import"./index-0j1t1h2b.js";
17
+ import"./index-d894868w.js";
18
+ import"./index-w60zxxye.js";
19
+ import"./index-g0yds382.js";
20
20
  import"./index-m9jj544v.js";
21
- import"./index-zbrwnmf1.js";
22
- import"./index-sveq36gh.js";
23
- import"./index-y4kcmbt2.js";
24
- import"./index-2mwjshz5.js";
21
+ import"./index-6t7fkx73.js";
22
+ import"./index-dcm66hss.js";
23
+ import"./index-8d9r465x.js";
24
+ import"./index-kc6ffq0s.js";
25
25
  import {
26
26
  ApplicationScript
27
- } from "./index-ewbmfarf.js";
27
+ } from "./index-r8t5sq7z.js";
28
28
  import"./index-tenw3mah.js";
29
- import"./index-gr9thy79.js";
29
+ import"./index-sra1a5f8.js";
30
30
  import {
31
31
  CloudRunner
32
- } from "./index-1h2jc0x3.js";
32
+ } from "./index-qwe079ww.js";
33
33
  import"./index-qd7xn2bk.js";
34
34
  import {
35
35
  PackageScript
36
- } from "./index-84h43kg6.js";
37
- import"./index-defp4gmb.js";
36
+ } from "./index-demt944k.js";
37
+ import"./index-qev8p5wp.js";
38
38
  import"./index-9bv479q5.js";
39
39
 
40
40
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
@@ -3,17 +3,17 @@ import {
3
3
  Sys,
4
4
  Module,
5
5
  command
6
- } from "./index-9zy8479y.js";
6
+ } from "./index-r0q2ka2b.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-g500c5j9.js";
8
+ import"./index-38by07nw.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-1404hqcj.js";
12
- import"./index-gf4fcw1n.js";
13
- import"./index-khk05tsf.js";
11
+ } from "./index-kdswbvys.js";
12
+ import"./index-re2kfscb.js";
13
+ import"./index-t0hk1kxq.js";
14
14
  import {
15
15
  ModuleScript
16
- } from "./index-19cspack.js";
16
+ } from "./index-hmj94es2.js";
17
17
 
18
18
  // pkgs/@akanjs/cli/module/module.command.ts
19
19
  import { Logger, lowerlize } from "akanjs/common";
@@ -3,13 +3,13 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-9zy8479y.js";
6
+ } from "./index-r0q2ka2b.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-g500c5j9.js";
8
+ import"./index-38by07nw.js";
9
9
  import"./index-qd7xn2bk.js";
10
10
  import {
11
11
  PackageScript
12
- } from "./index-84h43kg6.js";
12
+ } from "./index-demt944k.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/package/package.command.ts
15
15
  class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.1.2-rc.2",
3
+ "version": "3.1.2-rc.4",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.1.2-rc.2",
42
+ "akanjs": "3.1.2-rc.4",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",
@@ -3,12 +3,12 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-9zy8479y.js";
6
+ } from "./index-r0q2ka2b.js";
7
7
  import"./index-bns3wcpc.js";
8
- import"./index-g500c5j9.js";
8
+ import"./index-38by07nw.js";
9
9
  import {
10
10
  PageScript
11
- } from "./index-khk05tsf.js";
11
+ } from "./index-t0hk1kxq.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/page/page.command.ts
14
14
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,7 +4,7 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-9zy8479y.js";
7
+ } from "./index-r0q2ka2b.js";
8
8
  import {
9
9
  FileSys2
10
10
  } from "./index-bns3wcpc.js";
@@ -12,7 +12,7 @@ import {
12
12
  AkanAppConfig,
13
13
  AkanWorkspaceConfig,
14
14
  AppExecutor
15
- } from "./index-g500c5j9.js";
15
+ } from "./index-38by07nw.js";
16
16
  import {
17
17
  resolveMobileTargets
18
18
  } from "./index-m9jj544v.js";