@akanjs/cli 3.0.0-beta.10 → 3.0.0-beta.12

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 (58) hide show
  1. package/.build-stamp +1 -1
  2. package/TunnelShare-sbsaggmb.js +9 -0
  3. package/{abstractCompactor-gmkc0z8j.js → abstractCompactor-bqh31fk5.js} +2 -2
  4. package/{agent.command-0q17pnrs.js → agent.command-7357vxd8.js} +5 -5
  5. package/{application.command-18y0s485.js → application.command-pc8mdn3w.js} +10 -10
  6. package/{applicationBuildRunner-kxwbssgn.js → applicationBuildRunner-4f1wrba0.js} +2 -2
  7. package/{applicationReleasePackager-4yasxwv9.js → applicationReleasePackager-jkjmy5ee.js} +1 -1
  8. package/buildBatch.proc.js +2 -2
  9. package/{capacitorApp-36rbr858.js → capacitorApp-hqvsrec4.js} +2 -2
  10. package/{cloud.command-av97ndh6.js → cloud.command-cawrd5nq.js} +10 -10
  11. package/cloud.script-1bmptvw0.js +20 -0
  12. package/commandManifest.json +1 -1
  13. package/{context.command-5v37ef3n.js → context.command-982b6kdp.js} +14 -14
  14. package/{devTui-m1atgkc9.js → devTui-hmteztv3.js} +4 -24
  15. package/{devTuiView-0hc2emhe.js → devTuiView-40jvjnyz.js} +1 -1
  16. package/{guideline.command-4pz9g1rt.js → guideline.command-jn0vwszx.js} +4 -4
  17. package/guidelines/agentRule/agentRule.instruction.md +69 -0
  18. package/incrementalBuilder.proc.js +1 -1
  19. package/{index-ktb5njgy.js → index-15r9a10e.js} +2 -2
  20. package/{index-vxtad5bd.js → index-1nwxbr2y.js} +2 -2
  21. package/{index-y6n8nmny.js → index-3pvkjza8.js} +10 -10
  22. package/{index-2tv3fdx4.js → index-5nyznra1.js} +1 -0
  23. package/{index-wt7qrtd4.js → index-7f4dsf9v.js} +1 -1
  24. package/{index-ffvk10zz.js → index-8pkvrcv1.js} +3 -3
  25. package/{index-rtxxan88.js → index-8tfmh0v6.js} +5 -5
  26. package/{index-2xp0kfkt.js → index-ay8wj00x.js} +7 -7
  27. package/{index-0g7r8xz3.js → index-b3ae16mg.js} +1 -1
  28. package/{index-m0xccmmm.js → index-bw2marpf.js} +9 -0
  29. package/{index-a17x49vg.js → index-ceph7zqj.js} +3 -3
  30. package/{index-04bk599g.js → index-em4swemt.js} +3 -3
  31. package/{index-5ystnsd5.js → index-fr2x3qvv.js} +5 -5
  32. package/index-jcekapz4.js +49 -0
  33. package/{index-gyd220p2.js → index-jwjaf9fy.js} +1 -1
  34. package/{index-d43r08tf.js → index-kbsach1y.js} +4 -4
  35. package/index-p6pbz9n5.js +25 -0
  36. package/{index-sj5vxr8f.js → index-r8bd61d9.js} +46 -11
  37. package/{index-k2j1hc4r.js → index-s3fvrydw.js} +3 -3
  38. package/{index-vyvre9en.js → index-sh88vtye.js} +1 -1
  39. package/{index-9077wzd2.js → index-t8gvwcrx.js} +2 -2
  40. package/{index-a64esmtb.js → index-vrwdx0zx.js} +1 -1
  41. package/{index-te54x9zm.js → index-yc1keaer.js} +2 -2
  42. package/{index-j9yhg404.js → index-ys7dvdb3.js} +1 -1
  43. package/index.js +20 -19
  44. package/{library.command-qzzbj6d8.js → library.command-1f9h2ex6.js} +3 -3
  45. package/{localRegistry.command-vyrgg4xw.js → localRegistry.command-rx758ajg.js} +9 -9
  46. package/{module.command-rq5hq3ax.js → module.command-c2eve036.js} +7 -7
  47. package/{package.command-d9hd6v9n.js → package.command-y2rh4np7.js} +3 -3
  48. package/package.json +2 -2
  49. package/{page.command-126d56te.js → page.command-e5h29fyt.js} +3 -3
  50. package/{primitive.command-taxd1538.js → primitive.command-c44f7z1s.js} +8 -8
  51. package/{quality.command-6gsna0a3.js → quality.command-5evdd263.js} +2 -2
  52. package/{repair.command-tq2dgy72.js → repair.command-c2amvt74.js} +5 -5
  53. package/{scalar.command-3bcmrrkv.js → scalar.command-xyzerygj.js} +6 -6
  54. package/{subspace.command-eddzqpx3.js → subspace.command-ebfwzypw.js} +5 -5
  55. package/tunnel.command-v6a7at16.js +130 -0
  56. package/{workflow.command-gtdnzvbz.js → workflow.command-t174m6sy.js} +11 -11
  57. package/{workspace.command-06wvstgr.js → workspace.command-bg3eveth.js} +21 -21
  58. package/cloud.script-cm11xjdz.js +0 -20
@@ -216,6 +216,15 @@ class CloudApi {
216
216
  this.#api.setHeaders({ Authorization: `Bearer ${this.#accessToken.jwt}` });
217
217
  return this.#accessToken;
218
218
  }
219
+ async requestTunnel(input) {
220
+ return await this.#api.post(`/requestTunnel`, input);
221
+ }
222
+ async tunnelListInSelf() {
223
+ return await this.#api.get(`/tunnelListInSelf`);
224
+ }
225
+ async revokeTunnel(code) {
226
+ return await this.#api.post(`/revokeTunnel`, { code });
227
+ }
219
228
  async getRemoteSelf() {
220
229
  try {
221
230
  const data = await this.#api.get(`/getRemoteSelf`);
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-0g7r8xz3.js";
5
+ } from "./index-b3ae16mg.js";
6
6
  import {
7
7
  generatedFilesForSync,
8
8
  createPassedPrimitiveReport,
9
9
  scalarChangedFiles
10
- } from "./index-gyd220p2.js";
10
+ } from "./index-jwjaf9fy.js";
11
11
  import {
12
12
  AiSession
13
- } from "./index-te54x9zm.js";
13
+ } from "./index-yc1keaer.js";
14
14
  import {
15
15
  Prompter
16
16
  } from "./index-h7yw2z9n.js";
@@ -5,13 +5,13 @@ import {
5
5
  writeGeneratedSyncState,
6
6
  createRepairReport,
7
7
  renderRepairReport
8
- } from "./index-gyd220p2.js";
8
+ } from "./index-jwjaf9fy.js";
9
9
  import {
10
10
  AkanContextAnalyzer
11
- } from "./index-ktb5njgy.js";
11
+ } from "./index-15r9a10e.js";
12
12
  import {
13
13
  runner
14
- } from "./index-0g7r8xz3.js";
14
+ } from "./index-b3ae16mg.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.runner.ts
17
17
  var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
@@ -4,14 +4,14 @@ import {
4
4
  } from "./index-q0y2jq9j.js";
5
5
  import {
6
6
  ModuleExecutor
7
- } from "./index-2tv3fdx4.js";
7
+ } from "./index-5nyznra1.js";
8
8
  import {
9
9
  AiSession
10
- } from "./index-te54x9zm.js";
10
+ } from "./index-yc1keaer.js";
11
11
  import {
12
12
  runner,
13
13
  script
14
- } from "./index-0g7r8xz3.js";
14
+ } from "./index-b3ae16mg.js";
15
15
  import {
16
16
  sourceFile,
17
17
  moduleSourcePaths,
@@ -19,10 +19,10 @@ import {
19
19
  createPassedPrimitiveReport,
20
20
  bilingualLabelForField,
21
21
  bilingualDescriptionForField
22
- } from "./index-gyd220p2.js";
22
+ } from "./index-jwjaf9fy.js";
23
23
  import {
24
24
  PageScript
25
- } from "./index-vyvre9en.js";
25
+ } from "./index-sh88vtye.js";
26
26
  import {
27
27
  Prompter
28
28
  } from "./index-h7yw2z9n.js";
@@ -0,0 +1,49 @@
1
+ // @bun
2
+ import {
3
+ GlobalConfig,
4
+ CloudApi
5
+ } from "./index-bw2marpf.js";
6
+
7
+ // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
+ import { TunnelAgent } from "akanjs/server/tunnel";
9
+
10
+ class TunnelShare2 {
11
+ #api;
12
+ #agent;
13
+ grant;
14
+ #closed = false;
15
+ constructor(api, agent, grant) {
16
+ this.#api = api;
17
+ this.#agent = agent;
18
+ this.grant = grant;
19
+ }
20
+ static async open(app, { workspace, host, port, ttlMinutes, onLost }) {
21
+ const api = await CloudApi.fromHost(workspace, host ?? GlobalConfig.akanCloudHost);
22
+ const grant = await api.requestTunnel({ name: app.name, ...ttlMinutes ? { ttlMinutes } : {} });
23
+ const origin = `http://localhost:${port ?? await app.getDevPort()}`;
24
+ const agent = new TunnelAgent({
25
+ gatewayUrl: grant.gatewayUrl,
26
+ token: grant.token,
27
+ hostnames: [grant.hostname],
28
+ origin,
29
+ name: app.name,
30
+ ...onLost ? { onLost } : {}
31
+ });
32
+ await agent.start();
33
+ return new TunnelShare2(api, agent, grant);
34
+ }
35
+ get url() {
36
+ return this.grant.url;
37
+ }
38
+ async close() {
39
+ if (this.#closed)
40
+ return;
41
+ this.#closed = true;
42
+ await this.#agent.stop("cli exited");
43
+ try {
44
+ await this.#api.revokeTunnel(this.grant.code);
45
+ } catch {}
46
+ }
47
+ }
48
+
49
+ export { TunnelShare2 };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-2tv3fdx4.js";
5
+ } from "./index-5nyznra1.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/utils.ts
8
8
  var jsonText = (value, { trailingNewline = true } = {}) => `${JSON.stringify(value, null, 2)}${trailingNewline ? `
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  script
4
- } from "./index-0g7r8xz3.js";
4
+ } from "./index-b3ae16mg.js";
5
5
  import {
6
6
  AppExecutor,
7
7
  LibExecutor,
8
8
  ModuleExecutor
9
- } from "./index-2tv3fdx4.js";
9
+ } from "./index-5nyznra1.js";
10
10
  import {
11
11
  compactDiagnostics,
12
12
  createPrimitiveWriteReport,
@@ -39,10 +39,10 @@ import {
39
39
  hasSignalFactoryEntry,
40
40
  insertSignalFactoryEntry,
41
41
  addFieldUiPolicyForType
42
- } from "./index-gyd220p2.js";
42
+ } from "./index-jwjaf9fy.js";
43
43
  import {
44
44
  ModuleScript
45
- } from "./index-5ystnsd5.js";
45
+ } from "./index-fr2x3qvv.js";
46
46
 
47
47
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
48
48
  import { capitalize } from "akanjs/common";
@@ -0,0 +1,25 @@
1
+ // @bun
2
+ // pkgs/@akanjs/cli/clipboard.ts
3
+ var clipboardCommands = () => {
4
+ if (process.platform === "darwin")
5
+ return [["pbcopy"]];
6
+ if (process.platform === "win32")
7
+ return [["clip"]];
8
+ return [["wl-copy"], ["xclip", "-selection", "clipboard"], ["xsel", "--clipboard", "--input"]];
9
+ };
10
+ var writeClipboard = async (text) => {
11
+ for (const command of clipboardCommands()) {
12
+ try {
13
+ const proc = Bun.spawn(command, {
14
+ stdin: new TextEncoder().encode(text),
15
+ stdout: "ignore",
16
+ stderr: "ignore"
17
+ });
18
+ if (await proc.exited === 0)
19
+ return true;
20
+ } catch {}
21
+ }
22
+ return false;
23
+ };
24
+
25
+ export { writeClipboard };
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-0g7r8xz3.js";
5
+ } from "./index-b3ae16mg.js";
6
6
  import {
7
7
  WorkspaceExecutor,
8
8
  AppExecutor,
9
9
  LibExecutor,
10
10
  PkgExecutor
11
- } from "./index-2tv3fdx4.js";
11
+ } from "./index-5nyznra1.js";
12
12
  import {
13
13
  LibraryScript
14
- } from "./index-vxtad5bd.js";
14
+ } from "./index-1nwxbr2y.js";
15
15
  import {
16
16
  HmrWatcher,
17
17
  WatchRootResolver
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  SlicePlanner,
21
21
  formatSlicePlan
22
- } from "./index-j9yhg404.js";
22
+ } from "./index-ys7dvdb3.js";
23
23
  import {
24
24
  resolveMobileTargets
25
25
  } from "./index-47pj3aee.js";
@@ -2049,10 +2049,10 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
2049
2049
  // pkgs/@akanjs/cli/application/application.runner.ts
2050
2050
  import { Logger as Logger4 } from "akanjs/common";
2051
2051
  import ora from "ora";
2052
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-kxwbssgn.js")).ApplicationBuildRunner;
2053
- var loadReleasePackager = async () => (await import("./applicationReleasePackager-4yasxwv9.js")).ApplicationReleasePackager;
2054
- var loadCapacitorApp = async () => (await import("./capacitorApp-36rbr858.js")).CapacitorApp;
2055
- var loadAbstractCompactor = async () => (await import("./abstractCompactor-gmkc0z8j.js")).AbstractCompactor;
2052
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-4f1wrba0.js")).ApplicationBuildRunner;
2053
+ var loadReleasePackager = async () => (await import("./applicationReleasePackager-jkjmy5ee.js")).ApplicationReleasePackager;
2054
+ var loadCapacitorApp = async () => (await import("./capacitorApp-hqvsrec4.js")).CapacitorApp;
2055
+ var loadAbstractCompactor = async () => (await import("./abstractCompactor-bqh31fk5.js")).AbstractCompactor;
2056
2056
  var loadPrompts = async () => await import("@inquirer/prompts");
2057
2057
 
2058
2058
  class ApplicationRunner extends runner("application") {
@@ -3230,7 +3230,15 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3230
3230
  }
3231
3231
  await this.applicationRunner.test(exec);
3232
3232
  }
3233
- async start(apps, { open = false, dbup = true, write = true, plain = false, kill = false, concurrency = null } = {}) {
3233
+ async start(apps, {
3234
+ open = false,
3235
+ dbup = true,
3236
+ write = true,
3237
+ plain = false,
3238
+ kill = false,
3239
+ share = false,
3240
+ concurrency = null
3241
+ } = {}) {
3234
3242
  const first = apps[0];
3235
3243
  if (!first)
3236
3244
  throw new Error("No app selected to start");
@@ -3239,6 +3247,8 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3239
3247
  first.workspace.log("no sized terminal to draw on; printing prefixed lines instead");
3240
3248
  if (kill)
3241
3249
  await this.reclaimDevPorts(apps);
3250
+ if (share)
3251
+ await this.#shareOnInterrupt(apps);
3242
3252
  if (mode === "stream" && apps.length === 1)
3243
3253
  return await this.startOne(first, { open, dbup, write, ...DevSupervisor.childHooks() });
3244
3254
  await this.#startMany(apps, { open, dbup, write, mode, concurrency });
@@ -3277,13 +3287,19 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3277
3287
  if (killed.length === 0 && foreign.length === 0)
3278
3288
  workspace.log("dev ports are free; nothing to kill");
3279
3289
  }
3280
- async#startMany(apps, { open, dbup, write, mode, concurrency }) {
3290
+ async#startMany(apps, {
3291
+ open,
3292
+ dbup,
3293
+ write,
3294
+ mode,
3295
+ concurrency
3296
+ }) {
3281
3297
  const workspace = apps[0]?.workspace;
3282
3298
  if (!workspace)
3283
3299
  throw new Error("No app selected to start");
3284
3300
  const startedDatabase = dbup ? await this.#prepareSharedDatabase(apps) : false;
3285
3301
  const supervisor = new DevSupervisor({ apps, mode, concurrency, open, write });
3286
- const view = mode === "tui" ? await (await import("./devTuiView-0hc2emhe.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
3302
+ const view = mode === "tui" ? await (await import("./devTuiView-40jvjnyz.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
3287
3303
  await supervisor.run(view);
3288
3304
  if (startedDatabase)
3289
3305
  await this.#stopDatabase(workspace);
@@ -3401,6 +3417,25 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3401
3417
  }
3402
3418
  spinner.succeed("Local database (/local/docker-compose.yaml) is down");
3403
3419
  }
3420
+ #shareOnInterrupt(apps) {
3421
+ const shares = [];
3422
+ const open = Promise.all(apps.map(async (app) => {
3423
+ const { TunnelShare } = await import("./TunnelShare-sbsaggmb.js");
3424
+ const share = await TunnelShare.open(app, { workspace: app.workspace });
3425
+ shares.push(share);
3426
+ Logger6.rawLog(`${app.name} is shared at ${share.url}`);
3427
+ })).catch((error) => {
3428
+ Logger6.rawLog(`Could not open the tunnel: ${error instanceof Error ? error.message : String(error)}`, undefined, "error");
3429
+ });
3430
+ let closing = false;
3431
+ process.on("SIGINT", () => {
3432
+ if (closing)
3433
+ return;
3434
+ closing = true;
3435
+ Promise.all(shares.map(async (share) => await share.close()));
3436
+ });
3437
+ return open;
3438
+ }
3404
3439
  #stopDatabaseOnInterrupt(workspace) {
3405
3440
  let stopping = false;
3406
3441
  process.on("SIGINT", () => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-0g7r8xz3.js";
5
+ } from "./index-b3ae16mg.js";
6
6
  import {
7
7
  AGENT_BLOCK_START,
8
8
  AGENT_BLOCK_END,
@@ -13,14 +13,14 @@ import {
13
13
  CLAUDE_COMMENT_RULE,
14
14
  AppExecutor,
15
15
  LibExecutor
16
- } from "./index-2tv3fdx4.js";
16
+ } from "./index-5nyznra1.js";
17
17
  import {
18
18
  collectRecipeSources2,
19
19
  scanRecipes2
20
20
  } from "./index-by5gpp8x.js";
21
21
  import {
22
22
  AkanContextAnalyzer
23
- } from "./index-ktb5njgy.js";
23
+ } from "./index-15r9a10e.js";
24
24
  import {
25
25
  Prompter
26
26
  } from "./index-h7yw2z9n.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-0g7r8xz3.js";
5
+ } from "./index-b3ae16mg.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-0g7r8xz3.js";
5
+ } from "./index-b3ae16mg.js";
6
6
  import {
7
7
  FileSys
8
8
  } from "./index-q0y2jq9j.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-2tv3fdx4.js";
11
+ } from "./index-5nyznra1.js";
12
12
  import {
13
13
  TypeScriptDependencyScanner2
14
14
  } from "./index-kcxmv48c.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AsyncDefaultExportDetector,
4
4
  resolveSsrPageEntriesForApp
5
- } from "./index-2tv3fdx4.js";
5
+ } from "./index-5nyznra1.js";
6
6
  import {
7
7
  BarrelAnalyzer,
8
8
  createBarrelImportsPlugin,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  GlobalConfig
4
- } from "./index-m0xccmmm.js";
4
+ } from "./index-bw2marpf.js";
5
5
  import {
6
6
  Spinner
7
- } from "./index-2tv3fdx4.js";
7
+ } from "./index-5nyznra1.js";
8
8
 
9
9
  // pkgs/@akanjs/devkit/aiEditor.ts
10
10
  import { input, select } from "@inquirer/prompts";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AppInfo
4
- } from "./index-2tv3fdx4.js";
4
+ } from "./index-5nyznra1.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/slicePlanner.ts
7
7
  class SlicePlanner {
package/index.js CHANGED
@@ -4,9 +4,9 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-0g7r8xz3.js";
7
+ } from "./index-b3ae16mg.js";
8
8
  import"./index-q0y2jq9j.js";
9
- import"./index-2tv3fdx4.js";
9
+ import"./index-5nyznra1.js";
10
10
  import"./index-6wwzs1bc.js";
11
11
 
12
12
  // pkgs/@akanjs/cli/commandManifest.ts
@@ -14,23 +14,24 @@ import path from "path";
14
14
 
15
15
  // pkgs/@akanjs/cli/commandModules.ts
16
16
  var commandModules = {
17
- workspace: async () => (await import("./workspace.command-06wvstgr.js")).WorkspaceCommand,
18
- agent: async () => (await import("./agent.command-0q17pnrs.js")).AgentCommand,
19
- application: async () => (await import("./application.command-18y0s485.js")).ApplicationCommand,
20
- library: async () => (await import("./library.command-qzzbj6d8.js")).LibraryCommand,
21
- localRegistry: async () => (await import("./localRegistry.command-vyrgg4xw.js")).LocalRegistryCommand,
22
- package: async () => (await import("./package.command-d9hd6v9n.js")).PackageCommand,
23
- module: async () => (await import("./module.command-rq5hq3ax.js")).ModuleCommand,
24
- page: async () => (await import("./page.command-126d56te.js")).PageCommand,
25
- context: async () => (await import("./context.command-5v37ef3n.js")).ContextCommand,
26
- cloud: async () => (await import("./cloud.command-av97ndh6.js")).CloudCommand,
27
- subspace: async () => (await import("./subspace.command-eddzqpx3.js")).SubspaceCommand,
28
- guideline: async () => (await import("./guideline.command-4pz9g1rt.js")).GuidelineCommand,
29
- scalar: async () => (await import("./scalar.command-3bcmrrkv.js")).ScalarCommand,
30
- primitive: async () => (await import("./primitive.command-taxd1538.js")).PrimitiveCommand,
31
- quality: async () => (await import("./quality.command-6gsna0a3.js")).QualityCommand,
32
- repair: async () => (await import("./repair.command-tq2dgy72.js")).RepairCommand,
33
- workflow: async () => (await import("./workflow.command-gtdnzvbz.js")).WorkflowCommand
17
+ workspace: async () => (await import("./workspace.command-bg3eveth.js")).WorkspaceCommand,
18
+ agent: async () => (await import("./agent.command-7357vxd8.js")).AgentCommand,
19
+ application: async () => (await import("./application.command-pc8mdn3w.js")).ApplicationCommand,
20
+ library: async () => (await import("./library.command-1f9h2ex6.js")).LibraryCommand,
21
+ localRegistry: async () => (await import("./localRegistry.command-rx758ajg.js")).LocalRegistryCommand,
22
+ package: async () => (await import("./package.command-y2rh4np7.js")).PackageCommand,
23
+ module: async () => (await import("./module.command-c2eve036.js")).ModuleCommand,
24
+ page: async () => (await import("./page.command-e5h29fyt.js")).PageCommand,
25
+ context: async () => (await import("./context.command-982b6kdp.js")).ContextCommand,
26
+ cloud: async () => (await import("./cloud.command-cawrd5nq.js")).CloudCommand,
27
+ subspace: async () => (await import("./subspace.command-ebfwzypw.js")).SubspaceCommand,
28
+ guideline: async () => (await import("./guideline.command-jn0vwszx.js")).GuidelineCommand,
29
+ scalar: async () => (await import("./scalar.command-xyzerygj.js")).ScalarCommand,
30
+ primitive: async () => (await import("./primitive.command-c44f7z1s.js")).PrimitiveCommand,
31
+ quality: async () => (await import("./quality.command-5evdd263.js")).QualityCommand,
32
+ repair: async () => (await import("./repair.command-c2amvt74.js")).RepairCommand,
33
+ workflow: async () => (await import("./workflow.command-t174m6sy.js")).WorkflowCommand,
34
+ tunnel: async () => (await import("./tunnel.command-v6a7at16.js")).TunnelCommand
34
35
  };
35
36
  var commandModuleIds = Object.keys(commandModules);
36
37
 
@@ -3,13 +3,13 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-0g7r8xz3.js";
6
+ } from "./index-b3ae16mg.js";
7
7
  import"./index-q0y2jq9j.js";
8
- import"./index-2tv3fdx4.js";
8
+ import"./index-5nyznra1.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import {
11
11
  LibraryScript
12
- } from "./index-vxtad5bd.js";
12
+ } from "./index-1nwxbr2y.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/library/library.command.ts
15
15
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,28 +4,28 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-0g7r8xz3.js";
7
+ } from "./index-b3ae16mg.js";
8
8
  import"./index-q0y2jq9j.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-2tv3fdx4.js";
11
+ } from "./index-5nyznra1.js";
12
12
  import"./index-6wwzs1bc.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-sj5vxr8f.js";
16
- import"./index-vxtad5bd.js";
15
+ } from "./index-r8bd61d9.js";
16
+ import"./index-1nwxbr2y.js";
17
17
  import"./index-hwkygn9s.js";
18
- import"./index-m0xccmmm.js";
19
- import"./index-te54x9zm.js";
18
+ import"./index-bw2marpf.js";
19
+ import"./index-yc1keaer.js";
20
20
  import {
21
21
  getNpmRegistryUrl,
22
22
  CloudRunner
23
- } from "./index-rtxxan88.js";
23
+ } from "./index-8tfmh0v6.js";
24
24
  import"./index-kcxmv48c.js";
25
25
  import {
26
26
  PackageScript
27
- } from "./index-9077wzd2.js";
28
- import"./index-j9yhg404.js";
27
+ } from "./index-t8gvwcrx.js";
28
+ import"./index-ys7dvdb3.js";
29
29
 
30
30
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
31
31
  import { mkdir, rm } from "fs/promises";
@@ -3,19 +3,19 @@ import {
3
3
  Sys,
4
4
  Module,
5
5
  command
6
- } from "./index-0g7r8xz3.js";
6
+ } from "./index-b3ae16mg.js";
7
7
  import"./index-q0y2jq9j.js";
8
- import"./index-2tv3fdx4.js";
8
+ import"./index-5nyznra1.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import {
11
11
  renderPrimitiveReport
12
- } from "./index-gyd220p2.js";
13
- import"./index-m0xccmmm.js";
14
- import"./index-te54x9zm.js";
12
+ } from "./index-jwjaf9fy.js";
13
+ import"./index-bw2marpf.js";
14
+ import"./index-yc1keaer.js";
15
15
  import {
16
16
  ModuleScript
17
- } from "./index-5ystnsd5.js";
18
- import"./index-vyvre9en.js";
17
+ } from "./index-fr2x3qvv.js";
18
+ import"./index-sh88vtye.js";
19
19
  import"./index-h7yw2z9n.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/module/module.command.ts
@@ -3,14 +3,14 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-0g7r8xz3.js";
6
+ } from "./index-b3ae16mg.js";
7
7
  import"./index-q0y2jq9j.js";
8
- import"./index-2tv3fdx4.js";
8
+ import"./index-5nyznra1.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import"./index-kcxmv48c.js";
11
11
  import {
12
12
  PackageScript
13
- } from "./index-9077wzd2.js";
13
+ } from "./index-t8gvwcrx.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/package/package.command.ts
16
16
  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.0.0-beta.10",
3
+ "version": "3.0.0-beta.12",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -33,7 +33,7 @@
33
33
  "@langchain/openai": "^1.4.6",
34
34
  "@tailwindcss/node": "^4.3.0",
35
35
  "@trapezedev/project": "^7.1.4",
36
- "akanjs": "3.0.0-beta.10",
36
+ "akanjs": "3.0.0-beta.12",
37
37
  "chalk": "^5.6.2",
38
38
  "commander": "^14.0.3",
39
39
  "dayjs": "^1.11.20",
@@ -3,13 +3,13 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-0g7r8xz3.js";
6
+ } from "./index-b3ae16mg.js";
7
7
  import"./index-q0y2jq9j.js";
8
- import"./index-2tv3fdx4.js";
8
+ import"./index-5nyznra1.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import {
11
11
  PageScript
12
- } from "./index-vyvre9en.js";
12
+ } from "./index-sh88vtye.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/page/page.command.ts
15
15
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-0g7r8xz3.js";
5
+ } from "./index-b3ae16mg.js";
6
6
  import"./index-q0y2jq9j.js";
7
- import"./index-2tv3fdx4.js";
7
+ import"./index-5nyznra1.js";
8
8
  import"./index-6wwzs1bc.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-gyd220p2.js";
12
- import"./index-m0xccmmm.js";
13
- import"./index-te54x9zm.js";
14
- import"./index-5ystnsd5.js";
15
- import"./index-vyvre9en.js";
11
+ } from "./index-jwjaf9fy.js";
12
+ import"./index-bw2marpf.js";
13
+ import"./index-yc1keaer.js";
14
+ import"./index-fr2x3qvv.js";
15
+ import"./index-sh88vtye.js";
16
16
  import"./index-h7yw2z9n.js";
17
17
  import {
18
18
  PrimitiveScript
19
- } from "./index-d43r08tf.js";
19
+ } from "./index-kbsach1y.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
22
22
  import { Logger } from "akanjs/common";
@@ -4,13 +4,13 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-0g7r8xz3.js";
7
+ } from "./index-b3ae16mg.js";
8
8
  import"./index-q0y2jq9j.js";
9
9
  import {
10
10
  rootAllowedFiles,
11
11
  rootAllowedDirs,
12
12
  isAllowedLibFacetRootFile
13
- } from "./index-2tv3fdx4.js";
13
+ } from "./index-5nyznra1.js";
14
14
  import"./index-6wwzs1bc.js";
15
15
  import {
16
16
  AbstractDoc