@akanjs/cli 3.0.0-alpha.21 → 3.0.0-alpha.22

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 (46) hide show
  1. package/.build-stamp +1 -1
  2. package/{agent.command-g92sg0pw.js → agent.command-e835fjem.js} +5 -5
  3. package/{application.command-8snsrzks.js → application.command-e2za636m.js} +4 -4
  4. package/buildBatch.proc.js +1 -1
  5. package/{capacitorApp-hyz5hypv.js → capacitorApp-qv7g3dp2.js} +2 -2
  6. package/{cloud.command-27tan2c5.js → cloud.command-krea92t8.js} +7 -7
  7. package/{context.command-x0ms4783.js → context.command-vn87jb08.js} +12 -12
  8. package/{guideline.command-1vadc7m2.js → guideline.command-s4hn2bsy.js} +2 -2
  9. package/incrementalBuilder.proc.js +1 -1
  10. package/{index-1brb6fhj.js → index-0h212yqe.js} +10 -10
  11. package/{index-4zbcwnr4.js → index-33zce8gt.js} +2 -2
  12. package/{index-3taw6vhk.js → index-3dp7x6rc.js} +3 -3
  13. package/{index-cmffkxcx.js → index-73rnbwgg.js} +2 -2
  14. package/{index-gn6jc5kp.js → index-8vkkm7v0.js} +0 -17
  15. package/{index-prq4dmbf.js → index-9jsnb4vw.js} +4 -4
  16. package/{index-zyk0731f.js → index-dh9vdsrd.js} +4 -4
  17. package/{index-68ynenz3.js → index-g9e2fhw2.js} +2 -2
  18. package/{index-w4gzpx6w.js → index-k6fvbcj1.js} +3 -3
  19. package/{index-dc8y2vae.js → index-k93ep78g.js} +5 -5
  20. package/{index-72jn9p18.js → index-mykmf6wd.js} +4 -4
  21. package/{index-hbm5htq0.js → index-mz5jtaq7.js} +1 -1
  22. package/{index-vbvnq3cr.js → index-n0zdjawn.js} +3 -3
  23. package/{index-91va923f.js → index-n706txcv.js} +1 -1
  24. package/{index-f8qt4sdr.js → index-qc0tnhs2.js} +1 -1
  25. package/{index-cfzvtfwp.js → index-tsmjxph2.js} +1 -1
  26. package/{index-cxf04znn.js → index-x33gnap3.js} +2 -2
  27. package/{index-krmp6zdm.js → index-xyrb7pk5.js} +3 -3
  28. package/index.js +18 -18
  29. package/{library.command-eszvmj60.js → library.command-v5cyaw9t.js} +3 -3
  30. package/{localRegistry.command-t4yksc4z.js → localRegistry.command-bsgg0jqq.js} +6 -6
  31. package/{module.command-7nezmr8d.js → module.command-pq6w84xg.js} +5 -5
  32. package/{package.command-vtyf9kgj.js → package.command-qkcs60ts.js} +3 -3
  33. package/package.json +2 -2
  34. package/{page.command-08kg25hh.js → page.command-qj5bfnh9.js} +3 -3
  35. package/{primitive.command-er9zkjhd.js → primitive.command-bw0nes6x.js} +6 -6
  36. package/{quality.command-ntyzf8vz.js → quality.command-f8drhx6c.js} +2 -2
  37. package/{repair.command-sfn4msje.js → repair.command-mzwtejpk.js} +5 -5
  38. package/{scalar.command-mxvqc069.js → scalar.command-rm6k3c65.js} +4 -4
  39. package/templates/app/env/env.server.debug.ts.template +2 -3
  40. package/templates/app/env/env.server.develop.ts.template +2 -3
  41. package/templates/app/env/env.server.local.ts.template +2 -3
  42. package/templates/app/env/env.server.main.ts.template +2 -3
  43. package/templates/env/_env.server.type.ts +6 -7
  44. package/templates/lib/srv.ts +1 -1
  45. package/{workflow.command-y7vg1hx2.js → workflow.command-g2cgcgxn.js} +9 -9
  46. package/{workspace.command-bjf247fv.js → workspace.command-5m3f02kd.js} +18 -18
package/.build-stamp CHANGED
@@ -1 +1 @@
1
- 154521b52720afd2e316364f8295ea5d0904956932c0c63067b416ba2c71a473
1
+ 3e7239f205adf97e7963c9c815081694ccab1602ea91fb3ca264977690e1df04
@@ -1,15 +1,15 @@
1
1
  // @bun
2
2
  import {
3
3
  AgentScript
4
- } from "./index-w4gzpx6w.js";
5
- import"./index-68ynenz3.js";
6
- import"./index-cfzvtfwp.js";
4
+ } from "./index-k6fvbcj1.js";
5
+ import"./index-g9e2fhw2.js";
6
+ import"./index-tsmjxph2.js";
7
7
  import"./index-j37qq1f2.js";
8
8
  import {
9
9
  Workspace,
10
10
  command
11
- } from "./index-91va923f.js";
12
- import"./index-gn6jc5kp.js";
11
+ } from "./index-n706txcv.js";
12
+ import"./index-8vkkm7v0.js";
13
13
  import"./index-mxvakhsm.js";
14
14
  import"./index-xys926f2.js";
15
15
  import"./index-1577bej2.js";
@@ -4,8 +4,8 @@ import {
4
4
  } from "./index-0wae5ebk.js";
5
5
  import {
6
6
  ApplicationScript
7
- } from "./index-zyk0731f.js";
8
- import"./index-cmffkxcx.js";
7
+ } from "./index-dh9vdsrd.js";
8
+ import"./index-73rnbwgg.js";
9
9
  import {
10
10
  getMobileTargetChoices
11
11
  } from "./index-76rn3g2c.js";
@@ -15,10 +15,10 @@ import {
15
15
  Sys,
16
16
  Workspace,
17
17
  command
18
- } from "./index-91va923f.js";
18
+ } from "./index-n706txcv.js";
19
19
  import"./index-fgc8r6dj.js";
20
20
  import"./index-bjpxzr6s.js";
21
- import"./index-gn6jc5kp.js";
21
+ import"./index-8vkkm7v0.js";
22
22
  import"./index-mxvakhsm.js";
23
23
  import"./index-1577bej2.js";
24
24
  import"./index-67546d0j.js";
@@ -12,7 +12,7 @@ import"./index-bjpxzr6s.js";
12
12
  import {
13
13
  AppExecutor,
14
14
  WorkspaceExecutor
15
- } from "./index-gn6jc5kp.js";
15
+ } from "./index-8vkkm7v0.js";
16
16
  import"./index-mxvakhsm.js";
17
17
  import"./index-1577bej2.js";
18
18
  import"./index-67546d0j.js";
@@ -25,9 +25,9 @@ import {
25
25
  selectLocalDevHost,
26
26
  sortIosRunTargets,
27
27
  writeRootCapacitorConfig
28
- } from "./index-hbm5htq0.js";
28
+ } from "./index-mz5jtaq7.js";
29
29
  import"./index-76rn3g2c.js";
30
- import"./index-gn6jc5kp.js";
30
+ import"./index-8vkkm7v0.js";
31
31
  import"./index-mxvakhsm.js";
32
32
  import"./index-1577bej2.js";
33
33
  import"./index-67546d0j.js";
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript
4
- } from "./index-dc8y2vae.js";
5
- import"./index-vbvnq3cr.js";
6
- import"./index-4zbcwnr4.js";
4
+ } from "./index-k93ep78g.js";
5
+ import"./index-n0zdjawn.js";
6
+ import"./index-33zce8gt.js";
7
7
  import {
8
8
  GlobalConfig
9
9
  } from "./index-sh01r3pm.js";
10
- import"./index-zyk0731f.js";
11
- import"./index-cmffkxcx.js";
10
+ import"./index-dh9vdsrd.js";
11
+ import"./index-73rnbwgg.js";
12
12
  import"./index-76rn3g2c.js";
13
13
  import {
14
14
  Workspace,
15
15
  command
16
- } from "./index-91va923f.js";
16
+ } from "./index-n706txcv.js";
17
17
  import"./index-fgc8r6dj.js";
18
18
  import"./index-bjpxzr6s.js";
19
- import"./index-gn6jc5kp.js";
19
+ import"./index-8vkkm7v0.js";
20
20
  import"./index-mxvakhsm.js";
21
21
  import"./index-1577bej2.js";
22
22
  import"./index-46tjzh6s.js";
@@ -1,25 +1,25 @@
1
1
  // @bun
2
2
  import {
3
3
  ContextScript
4
- } from "./index-1brb6fhj.js";
5
- import"./index-krmp6zdm.js";
6
- import"./index-3taw6vhk.js";
7
- import"./index-cxf04znn.js";
8
- import"./index-prq4dmbf.js";
9
- import"./index-72jn9p18.js";
4
+ } from "./index-0h212yqe.js";
5
+ import"./index-xyrb7pk5.js";
6
+ import"./index-3dp7x6rc.js";
7
+ import"./index-x33gnap3.js";
8
+ import"./index-9jsnb4vw.js";
9
+ import"./index-mykmf6wd.js";
10
10
  import"./index-ss469dec.js";
11
- import"./index-f8qt4sdr.js";
12
- import"./index-hbm5htq0.js";
11
+ import"./index-qc0tnhs2.js";
12
+ import"./index-mz5jtaq7.js";
13
13
  import"./index-sh01r3pm.js";
14
- import"./index-68ynenz3.js";
15
- import"./index-cfzvtfwp.js";
14
+ import"./index-g9e2fhw2.js";
15
+ import"./index-tsmjxph2.js";
16
16
  import"./index-j37qq1f2.js";
17
17
  import"./index-76rn3g2c.js";
18
18
  import {
19
19
  Workspace,
20
20
  command
21
- } from "./index-91va923f.js";
22
- import"./index-gn6jc5kp.js";
21
+ } from "./index-n706txcv.js";
22
+ import"./index-8vkkm7v0.js";
23
23
  import"./index-mxvakhsm.js";
24
24
  import"./index-xys926f2.js";
25
25
  import"./index-1577bej2.js";
@@ -10,8 +10,8 @@ import {
10
10
  command,
11
11
  runner,
12
12
  script
13
- } from "./index-91va923f.js";
14
- import"./index-gn6jc5kp.js";
13
+ } from "./index-n706txcv.js";
14
+ import"./index-8vkkm7v0.js";
15
15
  import"./index-mxvakhsm.js";
16
16
  import {
17
17
  getDirname
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  AppExecutor,
18
18
  WorkspaceExecutor
19
- } from "./index-gn6jc5kp.js";
19
+ } from "./index-8vkkm7v0.js";
20
20
  import"./index-mxvakhsm.js";
21
21
  import"./index-1577bej2.js";
22
22
  import"./index-67546d0j.js";
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
3
  RepairRunner
4
- } from "./index-krmp6zdm.js";
4
+ } from "./index-xyrb7pk5.js";
5
5
  import {
6
6
  WorkflowRunner
7
- } from "./index-3taw6vhk.js";
7
+ } from "./index-3dp7x6rc.js";
8
8
  import {
9
9
  ScalarScript
10
- } from "./index-cxf04znn.js";
10
+ } from "./index-x33gnap3.js";
11
11
  import {
12
12
  PrimitiveScript
13
- } from "./index-prq4dmbf.js";
13
+ } from "./index-9jsnb4vw.js";
14
14
  import {
15
15
  ModuleScript
16
- } from "./index-72jn9p18.js";
16
+ } from "./index-mykmf6wd.js";
17
17
  import {
18
18
  isPlaceholderAppId
19
- } from "./index-hbm5htq0.js";
19
+ } from "./index-mz5jtaq7.js";
20
20
  import {
21
21
  AkanContextAnalyzer,
22
22
  akanMcpInstallConfigPaths,
@@ -27,14 +27,14 @@ import {
27
27
  renderDoctorText,
28
28
  resourceList,
29
29
  upsertCodexMcpServerBlock
30
- } from "./index-68ynenz3.js";
30
+ } from "./index-g9e2fhw2.js";
31
31
  import {
32
32
  buildAkanModuleContextIndex,
33
33
  createWorkflowBaselineSummary,
34
34
  createWorkflowStepRegistry,
35
35
  jsonText,
36
36
  toolingRolloutGate
37
- } from "./index-cfzvtfwp.js";
37
+ } from "./index-tsmjxph2.js";
38
38
  import {
39
39
  Prompter
40
40
  } from "./index-j37qq1f2.js";
@@ -45,10 +45,10 @@ import {
45
45
  CommandContainer,
46
46
  runner,
47
47
  script
48
- } from "./index-91va923f.js";
48
+ } from "./index-n706txcv.js";
49
49
  import {
50
50
  AppExecutor
51
- } from "./index-gn6jc5kp.js";
51
+ } from "./index-8vkkm7v0.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/context/context.script.ts
54
54
  import { Logger } from "akanjs/common";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-91va923f.js";
5
+ } from "./index-n706txcv.js";
6
6
  import {
7
7
  PkgExecutor
8
- } from "./index-gn6jc5kp.js";
8
+ } from "./index-8vkkm7v0.js";
9
9
  import {
10
10
  TypeScriptDependencyScanner
11
11
  } from "./index-46tjzh6s.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-68ynenz3.js";
4
+ } from "./index-g9e2fhw2.js";
5
5
  import {
6
6
  WorkflowExecutor,
7
7
  compactWorkflowInputs,
@@ -23,10 +23,10 @@ import {
23
23
  workflowCommandsForPlan,
24
24
  workflowPlanApproval,
25
25
  writeWorkflowRunArtifact
26
- } from "./index-cfzvtfwp.js";
26
+ } from "./index-tsmjxph2.js";
27
27
  import {
28
28
  runner
29
- } from "./index-91va923f.js";
29
+ } from "./index-n706txcv.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
32
32
  import { mkdir, readFile, writeFile } from "fs/promises";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-91va923f.js";
5
+ } from "./index-n706txcv.js";
6
6
  import {
7
7
  LibExecutor
8
- } from "./index-gn6jc5kp.js";
8
+ } from "./index-8vkkm7v0.js";
9
9
 
10
10
  // pkgs/@akanjs/cli/semver.ts
11
11
  var stripRangeOperator = (version) => version.replace(/^[\s^~>=<v]+/, "").trim();
@@ -2532,7 +2532,6 @@ class SysExecutor extends Executor {
2532
2532
  return fileContents;
2533
2533
  }
2534
2534
  }
2535
- var bootAppName = process.env.AKAN_PUBLIC_APP_NAME;
2536
2535
 
2537
2536
  class AppExecutor extends SysExecutor {
2538
2537
  static #routeSourceValidator = null;
@@ -2585,22 +2584,6 @@ class AppExecutor extends SysExecutor {
2585
2584
  ...env
2586
2585
  };
2587
2586
  }
2588
- static shouldRelaunchForAppEnv(appName, bootName = bootAppName, marker = process.env.AKAN_BUILD_RELAUNCHED) {
2589
- if (marker === "1")
2590
- return false;
2591
- return bootName !== appName;
2592
- }
2593
- async relaunchWithAppEnv() {
2594
- if (!AppExecutor.shouldRelaunchForAppEnv(this.name))
2595
- return null;
2596
- const child = Bun.spawn([process.execPath, ...process.argv.slice(1)], {
2597
- env: { ...this.getCommandEnv(), AKAN_PUBLIC_APP_NAME: this.name, AKAN_BUILD_RELAUNCHED: "1" },
2598
- stdin: "inherit",
2599
- stdout: "inherit",
2600
- stderr: "inherit"
2601
- });
2602
- return await child.exited;
2603
- }
2604
2587
  async prepareCommand(type) {
2605
2588
  const akanConfig2 = await this.getConfig();
2606
2589
  const databaseMode = process.env.AKAN_DATABASE_MODE ?? akanConfig2.defaultDatabaseMode ?? "single";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ModuleScript
4
- } from "./index-72jn9p18.js";
4
+ } from "./index-mykmf6wd.js";
5
5
  import {
6
6
  addFieldUiPolicyForType,
7
7
  coerceFieldDefault,
@@ -34,15 +34,15 @@ import {
34
34
  sourceFile,
35
35
  validationCommandsForTarget,
36
36
  viaBuilderParameterName
37
- } from "./index-cfzvtfwp.js";
37
+ } from "./index-tsmjxph2.js";
38
38
  import {
39
39
  script
40
- } from "./index-91va923f.js";
40
+ } from "./index-n706txcv.js";
41
41
  import {
42
42
  AppExecutor,
43
43
  LibExecutor,
44
44
  ModuleExecutor
45
- } from "./index-gn6jc5kp.js";
45
+ } from "./index-8vkkm7v0.js";
46
46
 
47
47
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
48
48
  import { capitalize } from "akanjs/common";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  LibraryScript
4
- } from "./index-cmffkxcx.js";
4
+ } from "./index-73rnbwgg.js";
5
5
  import {
6
6
  resolveMobileTargets
7
7
  } from "./index-76rn3g2c.js";
8
8
  import {
9
9
  runner,
10
10
  script
11
- } from "./index-91va923f.js";
11
+ } from "./index-n706txcv.js";
12
12
  import {
13
13
  HmrWatcher,
14
14
  WatchRootResolver
@@ -18,7 +18,7 @@ import {
18
18
  LibExecutor,
19
19
  PkgExecutor,
20
20
  WorkspaceExecutor
21
- } from "./index-gn6jc5kp.js";
21
+ } from "./index-8vkkm7v0.js";
22
22
  import {
23
23
  __require
24
24
  } from "./index-yb2wsc7f.js";
@@ -1900,7 +1900,7 @@ function openBrowser(url) {
1900
1900
  // pkgs/@akanjs/cli/application/application.runner.ts
1901
1901
  var loadBuildRunner = async () => (await import("./applicationBuildRunner-7gnfz7ww.js")).ApplicationBuildRunner;
1902
1902
  var loadReleasePackager = async () => (await import("./applicationReleasePackager-93nzdfsy.js")).ApplicationReleasePackager;
1903
- var loadCapacitorApp = async () => (await import("./capacitorApp-hyz5hypv.js")).CapacitorApp;
1903
+ var loadCapacitorApp = async () => (await import("./capacitorApp-qv7g3dp2.js")).CapacitorApp;
1904
1904
  var loadAbstractCompactor = async () => (await import("./abstractCompactor-20e0cwbs.js")).AbstractCompactor;
1905
1905
  var loadPrompts = async () => await import("@inquirer/prompts");
1906
1906
 
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  workflowRunArtifactPath,
4
4
  workflowSyncDir
5
- } from "./index-cfzvtfwp.js";
5
+ } from "./index-tsmjxph2.js";
6
6
  import {
7
7
  AppExecutor,
8
8
  LibExecutor,
@@ -11,7 +11,7 @@ import {
11
11
  extractBlockVersion,
12
12
  isScannedAppRootEntry,
13
13
  readDevkitVersion
14
- } from "./index-gn6jc5kp.js";
14
+ } from "./index-8vkkm7v0.js";
15
15
  import {
16
16
  collectRecipeSources,
17
17
  findInlineRecipeDuplicates,
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-68ynenz3.js";
4
+ } from "./index-g9e2fhw2.js";
5
5
  import {
6
6
  Prompter
7
7
  } from "./index-j37qq1f2.js";
8
8
  import {
9
9
  runner,
10
10
  script
11
- } from "./index-91va923f.js";
11
+ } from "./index-n706txcv.js";
12
12
  import {
13
13
  AGENT_BLOCK_END,
14
14
  AGENT_BLOCK_START,
@@ -19,7 +19,7 @@ import {
19
19
  renderRecipeEntries,
20
20
  stampBlockVersion,
21
21
  upsertAgentBlock
22
- } from "./index-gn6jc5kp.js";
22
+ } from "./index-8vkkm7v0.js";
23
23
  import {
24
24
  collectRecipeSources,
25
25
  scanRecipes
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudRunner
4
- } from "./index-vbvnq3cr.js";
4
+ } from "./index-n0zdjawn.js";
5
5
  import {
6
6
  PackageScript
7
- } from "./index-4zbcwnr4.js";
7
+ } from "./index-33zce8gt.js";
8
8
  import {
9
9
  AiSession,
10
10
  CloudApi,
@@ -12,13 +12,13 @@ import {
12
12
  } from "./index-sh01r3pm.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-zyk0731f.js";
15
+ } from "./index-dh9vdsrd.js";
16
16
  import {
17
17
  script
18
- } from "./index-91va923f.js";
18
+ } from "./index-n706txcv.js";
19
19
  import {
20
20
  PkgExecutor
21
- } from "./index-gn6jc5kp.js";
21
+ } from "./index-8vkkm7v0.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-ss469dec.js";
5
5
  import {
6
6
  PageScript
7
- } from "./index-f8qt4sdr.js";
7
+ } from "./index-qc0tnhs2.js";
8
8
  import {
9
9
  AiSession
10
10
  } from "./index-sh01r3pm.js";
@@ -15,17 +15,17 @@ import {
15
15
  generatedFilesForSync,
16
16
  moduleSourcePaths,
17
17
  sourceFile
18
- } from "./index-cfzvtfwp.js";
18
+ } from "./index-tsmjxph2.js";
19
19
  import {
20
20
  Prompter
21
21
  } from "./index-j37qq1f2.js";
22
22
  import {
23
23
  runner,
24
24
  script
25
- } from "./index-91va923f.js";
25
+ } from "./index-n706txcv.js";
26
26
  import {
27
27
  ModuleExecutor
28
- } from "./index-gn6jc5kp.js";
28
+ } from "./index-8vkkm7v0.js";
29
29
  import {
30
30
  FileSys
31
31
  } from "./index-67546d0j.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-76rn3g2c.js";
6
6
  import {
7
7
  CommandExecutionError
8
- } from "./index-gn6jc5kp.js";
8
+ } from "./index-8vkkm7v0.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/capacitorApp.ts
11
11
  import { cp, mkdir, readFile, rm, writeFile } from "fs/promises";
@@ -7,14 +7,14 @@ import {
7
7
  } from "./index-sh01r3pm.js";
8
8
  import {
9
9
  openBrowser
10
- } from "./index-zyk0731f.js";
10
+ } from "./index-dh9vdsrd.js";
11
11
  import {
12
12
  runner
13
- } from "./index-91va923f.js";
13
+ } from "./index-n706txcv.js";
14
14
  import {
15
15
  AppExecutor,
16
16
  WorkspaceExecutor
17
- } from "./index-gn6jc5kp.js";
17
+ } from "./index-8vkkm7v0.js";
18
18
 
19
19
  // pkgs/@akanjs/cli/npmRegistry.ts
20
20
  var defaultNpmRegistry = "https://registry.npmjs.org";
@@ -6,7 +6,7 @@ import {
6
6
  ModuleExecutor,
7
7
  PkgExecutor,
8
8
  WorkspaceExecutor
9
- } from "./index-gn6jc5kp.js";
9
+ } from "./index-8vkkm7v0.js";
10
10
  import {
11
11
  getDirname
12
12
  } from "./index-1577bej2.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-91va923f.js";
5
+ } from "./index-n706txcv.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-gn6jc5kp.js";
5
+ } from "./index-8vkkm7v0.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/utils.ts
8
8
  var jsonText = (value, { trailingNewline = true } = {}) => `${JSON.stringify(value, null, 2)}${trailingNewline ? `
@@ -9,14 +9,14 @@ import {
9
9
  createPassedPrimitiveReport,
10
10
  generatedFilesForSync,
11
11
  scalarChangedFiles
12
- } from "./index-cfzvtfwp.js";
12
+ } from "./index-tsmjxph2.js";
13
13
  import {
14
14
  Prompter
15
15
  } from "./index-j37qq1f2.js";
16
16
  import {
17
17
  runner,
18
18
  script
19
- } from "./index-91va923f.js";
19
+ } from "./index-n706txcv.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/scalar/scalar.prompt.ts
22
22
  import { input } from "@inquirer/prompts";
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-68ynenz3.js";
4
+ } from "./index-g9e2fhw2.js";
5
5
  import {
6
6
  createRepairReport,
7
7
  generatedFilePathsForTarget,
8
8
  renderRepairReport,
9
9
  writeGeneratedSyncState,
10
10
  writeWorkflowRunArtifact
11
- } from "./index-cfzvtfwp.js";
11
+ } from "./index-tsmjxph2.js";
12
12
  import {
13
13
  runner
14
- } from "./index-91va923f.js";
14
+ } from "./index-n706txcv.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.runner.ts
17
17
  var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
package/index.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  getTargetCommandNames,
5
5
  getTargetMetas,
6
6
  runCommands
7
- } from "./index-91va923f.js";
8
- import"./index-gn6jc5kp.js";
7
+ } from "./index-n706txcv.js";
8
+ import"./index-8vkkm7v0.js";
9
9
  import"./index-mxvakhsm.js";
10
10
  import"./index-1577bej2.js";
11
11
  import"./index-67546d0j.js";
@@ -18,22 +18,22 @@ import path from "path";
18
18
 
19
19
  // pkgs/@akanjs/cli/commandModules.ts
20
20
  var commandModules = {
21
- workspace: async () => (await import("./workspace.command-bjf247fv.js")).WorkspaceCommand,
22
- agent: async () => (await import("./agent.command-g92sg0pw.js")).AgentCommand,
23
- application: async () => (await import("./application.command-8snsrzks.js")).ApplicationCommand,
24
- library: async () => (await import("./library.command-eszvmj60.js")).LibraryCommand,
25
- localRegistry: async () => (await import("./localRegistry.command-t4yksc4z.js")).LocalRegistryCommand,
26
- package: async () => (await import("./package.command-vtyf9kgj.js")).PackageCommand,
27
- module: async () => (await import("./module.command-7nezmr8d.js")).ModuleCommand,
28
- page: async () => (await import("./page.command-08kg25hh.js")).PageCommand,
29
- context: async () => (await import("./context.command-x0ms4783.js")).ContextCommand,
30
- cloud: async () => (await import("./cloud.command-27tan2c5.js")).CloudCommand,
31
- guideline: async () => (await import("./guideline.command-1vadc7m2.js")).GuidelineCommand,
32
- scalar: async () => (await import("./scalar.command-mxvqc069.js")).ScalarCommand,
33
- primitive: async () => (await import("./primitive.command-er9zkjhd.js")).PrimitiveCommand,
34
- quality: async () => (await import("./quality.command-ntyzf8vz.js")).QualityCommand,
35
- repair: async () => (await import("./repair.command-sfn4msje.js")).RepairCommand,
36
- workflow: async () => (await import("./workflow.command-y7vg1hx2.js")).WorkflowCommand
21
+ workspace: async () => (await import("./workspace.command-5m3f02kd.js")).WorkspaceCommand,
22
+ agent: async () => (await import("./agent.command-e835fjem.js")).AgentCommand,
23
+ application: async () => (await import("./application.command-e2za636m.js")).ApplicationCommand,
24
+ library: async () => (await import("./library.command-v5cyaw9t.js")).LibraryCommand,
25
+ localRegistry: async () => (await import("./localRegistry.command-bsgg0jqq.js")).LocalRegistryCommand,
26
+ package: async () => (await import("./package.command-qkcs60ts.js")).PackageCommand,
27
+ module: async () => (await import("./module.command-pq6w84xg.js")).ModuleCommand,
28
+ page: async () => (await import("./page.command-qj5bfnh9.js")).PageCommand,
29
+ context: async () => (await import("./context.command-vn87jb08.js")).ContextCommand,
30
+ cloud: async () => (await import("./cloud.command-krea92t8.js")).CloudCommand,
31
+ guideline: async () => (await import("./guideline.command-s4hn2bsy.js")).GuidelineCommand,
32
+ scalar: async () => (await import("./scalar.command-rm6k3c65.js")).ScalarCommand,
33
+ primitive: async () => (await import("./primitive.command-bw0nes6x.js")).PrimitiveCommand,
34
+ quality: async () => (await import("./quality.command-f8drhx6c.js")).QualityCommand,
35
+ repair: async () => (await import("./repair.command-mzwtejpk.js")).RepairCommand,
36
+ workflow: async () => (await import("./workflow.command-g2cgcgxn.js")).WorkflowCommand
37
37
  };
38
38
  var commandModuleIds = Object.keys(commandModules);
39
39
 
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  LibraryScript
4
- } from "./index-cmffkxcx.js";
4
+ } from "./index-73rnbwgg.js";
5
5
  import {
6
6
  Lib,
7
7
  Workspace,
8
8
  command
9
- } from "./index-91va923f.js";
10
- import"./index-gn6jc5kp.js";
9
+ } from "./index-n706txcv.js";
10
+ import"./index-8vkkm7v0.js";
11
11
  import"./index-mxvakhsm.js";
12
12
  import"./index-1577bej2.js";
13
13
  import"./index-67546d0j.js";
@@ -2,27 +2,27 @@
2
2
  import {
3
3
  CloudRunner,
4
4
  getNpmRegistryUrl
5
- } from "./index-vbvnq3cr.js";
5
+ } from "./index-n0zdjawn.js";
6
6
  import {
7
7
  PackageScript
8
- } from "./index-4zbcwnr4.js";
8
+ } from "./index-33zce8gt.js";
9
9
  import"./index-sh01r3pm.js";
10
10
  import {
11
11
  ApplicationScript
12
- } from "./index-zyk0731f.js";
13
- import"./index-cmffkxcx.js";
12
+ } from "./index-dh9vdsrd.js";
13
+ import"./index-73rnbwgg.js";
14
14
  import"./index-76rn3g2c.js";
15
15
  import {
16
16
  Workspace,
17
17
  command,
18
18
  runner,
19
19
  script
20
- } from "./index-91va923f.js";
20
+ } from "./index-n706txcv.js";
21
21
  import"./index-fgc8r6dj.js";
22
22
  import"./index-bjpxzr6s.js";
23
23
  import {
24
24
  PkgExecutor
25
- } from "./index-gn6jc5kp.js";
25
+ } from "./index-8vkkm7v0.js";
26
26
  import"./index-mxvakhsm.js";
27
27
  import"./index-1577bej2.js";
28
28
  import"./index-46tjzh6s.js";
@@ -1,20 +1,20 @@
1
1
  // @bun
2
2
  import {
3
3
  ModuleScript
4
- } from "./index-72jn9p18.js";
4
+ } from "./index-mykmf6wd.js";
5
5
  import"./index-ss469dec.js";
6
- import"./index-f8qt4sdr.js";
6
+ import"./index-qc0tnhs2.js";
7
7
  import"./index-sh01r3pm.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-cfzvtfwp.js";
10
+ } from "./index-tsmjxph2.js";
11
11
  import"./index-j37qq1f2.js";
12
12
  import {
13
13
  Module,
14
14
  Sys,
15
15
  command
16
- } from "./index-91va923f.js";
17
- import"./index-gn6jc5kp.js";
16
+ } from "./index-n706txcv.js";
17
+ import"./index-8vkkm7v0.js";
18
18
  import"./index-mxvakhsm.js";
19
19
  import"./index-1577bej2.js";
20
20
  import"./index-67546d0j.js";
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  PackageScript
4
- } from "./index-4zbcwnr4.js";
4
+ } from "./index-33zce8gt.js";
5
5
  import {
6
6
  Pkg,
7
7
  Workspace,
8
8
  command
9
- } from "./index-91va923f.js";
10
- import"./index-gn6jc5kp.js";
9
+ } from "./index-n706txcv.js";
10
+ import"./index-8vkkm7v0.js";
11
11
  import"./index-mxvakhsm.js";
12
12
  import"./index-1577bej2.js";
13
13
  import"./index-46tjzh6s.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.0.0-alpha.21",
3
+ "version": "3.0.0-alpha.22",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@langchain/openai": "^1.4.6",
35
35
  "@tailwindcss/node": "^4.3.0",
36
36
  "@trapezedev/project": "^7.1.4",
37
- "akanjs": "3.0.0-alpha.21",
37
+ "akanjs": "3.0.0-alpha.22",
38
38
  "chalk": "^5.6.2",
39
39
  "commander": "^14.0.3",
40
40
  "dayjs": "^1.11.20",
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  PageScript
4
- } from "./index-f8qt4sdr.js";
4
+ } from "./index-qc0tnhs2.js";
5
5
  import {
6
6
  App,
7
7
  Module,
8
8
  command
9
- } from "./index-91va923f.js";
10
- import"./index-gn6jc5kp.js";
9
+ } from "./index-n706txcv.js";
10
+ import"./index-8vkkm7v0.js";
11
11
  import"./index-mxvakhsm.js";
12
12
  import"./index-1577bej2.js";
13
13
  import"./index-67546d0j.js";
@@ -1,20 +1,20 @@
1
1
  // @bun
2
2
  import {
3
3
  PrimitiveScript
4
- } from "./index-prq4dmbf.js";
5
- import"./index-72jn9p18.js";
4
+ } from "./index-9jsnb4vw.js";
5
+ import"./index-mykmf6wd.js";
6
6
  import"./index-ss469dec.js";
7
- import"./index-f8qt4sdr.js";
7
+ import"./index-qc0tnhs2.js";
8
8
  import"./index-sh01r3pm.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-cfzvtfwp.js";
11
+ } from "./index-tsmjxph2.js";
12
12
  import"./index-j37qq1f2.js";
13
13
  import {
14
14
  Workspace,
15
15
  command
16
- } from "./index-91va923f.js";
17
- import"./index-gn6jc5kp.js";
16
+ } from "./index-n706txcv.js";
17
+ import"./index-8vkkm7v0.js";
18
18
  import"./index-mxvakhsm.js";
19
19
  import"./index-1577bej2.js";
20
20
  import"./index-67546d0j.js";
@@ -7,11 +7,11 @@ import {
7
7
  command,
8
8
  runner,
9
9
  script
10
- } from "./index-91va923f.js";
10
+ } from "./index-n706txcv.js";
11
11
  import {
12
12
  appRootAllowedFiles,
13
13
  libFacetRootAllowedFiles
14
- } from "./index-gn6jc5kp.js";
14
+ } from "./index-8vkkm7v0.js";
15
15
  import"./index-mxvakhsm.js";
16
16
  import"./index-1577bej2.js";
17
17
  import"./index-67546d0j.js";
@@ -1,15 +1,15 @@
1
1
  // @bun
2
2
  import {
3
3
  RepairRunner
4
- } from "./index-krmp6zdm.js";
5
- import"./index-68ynenz3.js";
6
- import"./index-cfzvtfwp.js";
4
+ } from "./index-xyrb7pk5.js";
5
+ import"./index-g9e2fhw2.js";
6
+ import"./index-tsmjxph2.js";
7
7
  import {
8
8
  Workspace,
9
9
  command,
10
10
  script
11
- } from "./index-91va923f.js";
12
- import"./index-gn6jc5kp.js";
11
+ } from "./index-n706txcv.js";
12
+ import"./index-8vkkm7v0.js";
13
13
  import"./index-mxvakhsm.js";
14
14
  import"./index-xys926f2.js";
15
15
  import"./index-1577bej2.js";
@@ -1,18 +1,18 @@
1
1
  // @bun
2
2
  import {
3
3
  ScalarScript
4
- } from "./index-cxf04znn.js";
4
+ } from "./index-x33gnap3.js";
5
5
  import"./index-ss469dec.js";
6
6
  import"./index-sh01r3pm.js";
7
7
  import {
8
8
  renderPrimitiveReport
9
- } from "./index-cfzvtfwp.js";
9
+ } from "./index-tsmjxph2.js";
10
10
  import"./index-j37qq1f2.js";
11
11
  import {
12
12
  Sys,
13
13
  command
14
- } from "./index-91va923f.js";
15
- import"./index-gn6jc5kp.js";
14
+ } from "./index-n706txcv.js";
15
+ import"./index-8vkkm7v0.js";
16
16
  import"./index-mxvakhsm.js";
17
17
  import"./index-1577bej2.js";
18
18
  import"./index-67546d0j.js";
@@ -1,7 +1,6 @@
1
- import { getEnv } from "akanjs/base";
2
-
3
1
  import type { ModulesOptions } from "../lib/option";
2
+ import { libEnv } from "./env.server.type";
4
3
 
5
4
  export const env: ModulesOptions = {
6
- ...getEnv(),
5
+ ...libEnv,
7
6
  };
@@ -1,7 +1,6 @@
1
- import { getEnv } from "akanjs/base";
2
-
3
1
  import type { ModulesOptions } from "../lib/option";
2
+ import { libEnv } from "./env.server.type";
4
3
 
5
4
  export const env: ModulesOptions = {
6
- ...getEnv(),
5
+ ...libEnv,
7
6
  };
@@ -1,7 +1,6 @@
1
- import { getEnv } from "akanjs/base";
2
-
3
1
  import type { ModulesOptions } from "../lib/option";
2
+ import { libEnv } from "./env.server.type";
4
3
 
5
4
  export const env: ModulesOptions = {
6
- ...getEnv(),
5
+ ...libEnv,
7
6
  };
@@ -1,7 +1,6 @@
1
- import { getEnv } from "akanjs/base";
2
-
3
1
  import type { ModulesOptions } from "../lib/option";
2
+ import { libEnv } from "./env.server.type";
4
3
 
5
4
  export const env: ModulesOptions = {
6
- ...getEnv(),
5
+ ...libEnv,
7
6
  };
@@ -5,15 +5,14 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [
5
5
  const libs = scanInfo.getLibs();
6
6
  return {
7
7
  filename: "env.server.type.ts",
8
- content: `
9
- ${libs.length ? libs.map((lib) => `import { env as ${lib}Option } from "@libs/${lib}/server";`).join("\n") : 'import { getEnv } from "akanjs/base";'}
8
+ content: libs.length
9
+ ? `
10
+ ${libs.map((lib) => `import { env as ${lib}Option } from "@libs/${lib}/server";`).join("\n")}
10
11
 
11
- export const libEnv = ${
12
- libs.length
13
- ? `{
12
+ export const libEnv = {
14
13
  ${libs.map((lib) => ` ...${lib}Option,`).join("\n")}
15
14
  };`
16
- : "{};"
17
- }`,
15
+ : `
16
+ export const libEnv = {};`,
18
17
  };
19
18
  }
@@ -33,6 +33,6 @@ ${serviceModules.map((module) => `export { ${capitalize(module)}Service } from "
33
33
  ${databaseModules.map((module) => `export const ${module} = ServiceModel.fromModel(${capitalize(module)}Service, cnst.${module}, db.${module});`).join("\n")}
34
34
  ${serviceModules.map((module) => `export const ${module} = ServiceModel.from(${capitalize(module)}Service);`).join("\n")}
35
35
 
36
- export type LibOptions = ${libs.length ? libs.map((lib) => `${lib}.ModulesOptions`).join(" & ") : "{}"};
36
+ export type LibOptions = ${libs.length ? libs.map((lib) => `${lib}.ModulesOptions`).join(" & ") : "BackendEnv"};
37
37
  `;
38
38
  }
@@ -1,30 +1,30 @@
1
1
  // @bun
2
2
  import {
3
3
  WorkflowRunner
4
- } from "./index-3taw6vhk.js";
4
+ } from "./index-3dp7x6rc.js";
5
5
  import {
6
6
  ScalarScript
7
- } from "./index-cxf04znn.js";
7
+ } from "./index-x33gnap3.js";
8
8
  import {
9
9
  PrimitiveScript
10
- } from "./index-prq4dmbf.js";
10
+ } from "./index-9jsnb4vw.js";
11
11
  import {
12
12
  ModuleScript
13
- } from "./index-72jn9p18.js";
13
+ } from "./index-mykmf6wd.js";
14
14
  import"./index-ss469dec.js";
15
- import"./index-f8qt4sdr.js";
15
+ import"./index-qc0tnhs2.js";
16
16
  import"./index-sh01r3pm.js";
17
- import"./index-68ynenz3.js";
17
+ import"./index-g9e2fhw2.js";
18
18
  import {
19
19
  createWorkflowStepRegistry
20
- } from "./index-cfzvtfwp.js";
20
+ } from "./index-tsmjxph2.js";
21
21
  import"./index-j37qq1f2.js";
22
22
  import {
23
23
  Workspace,
24
24
  command,
25
25
  script
26
- } from "./index-91va923f.js";
27
- import"./index-gn6jc5kp.js";
26
+ } from "./index-n706txcv.js";
27
+ import"./index-8vkkm7v0.js";
28
28
  import"./index-mxvakhsm.js";
29
29
  import"./index-xys926f2.js";
30
30
  import"./index-1577bej2.js";
@@ -1,40 +1,40 @@
1
1
  // @bun
2
2
  import {
3
3
  ContextScript
4
- } from "./index-1brb6fhj.js";
5
- import"./index-krmp6zdm.js";
6
- import"./index-3taw6vhk.js";
7
- import"./index-cxf04znn.js";
8
- import"./index-prq4dmbf.js";
9
- import"./index-72jn9p18.js";
4
+ } from "./index-0h212yqe.js";
5
+ import"./index-xyrb7pk5.js";
6
+ import"./index-3dp7x6rc.js";
7
+ import"./index-x33gnap3.js";
8
+ import"./index-9jsnb4vw.js";
9
+ import"./index-mykmf6wd.js";
10
10
  import"./index-ss469dec.js";
11
- import"./index-f8qt4sdr.js";
11
+ import"./index-qc0tnhs2.js";
12
12
  import {
13
13
  CloudScript
14
- } from "./index-dc8y2vae.js";
14
+ } from "./index-k93ep78g.js";
15
15
  import {
16
16
  getLatestPackageVersion,
17
17
  getNpmRegistryUrl
18
- } from "./index-vbvnq3cr.js";
18
+ } from "./index-n0zdjawn.js";
19
19
  import {
20
20
  PackageScript
21
- } from "./index-4zbcwnr4.js";
22
- import"./index-hbm5htq0.js";
21
+ } from "./index-33zce8gt.js";
22
+ import"./index-mz5jtaq7.js";
23
23
  import {
24
24
  GlobalConfig
25
25
  } from "./index-sh01r3pm.js";
26
26
  import {
27
27
  AgentScript
28
- } from "./index-w4gzpx6w.js";
29
- import"./index-68ynenz3.js";
30
- import"./index-cfzvtfwp.js";
28
+ } from "./index-k6fvbcj1.js";
29
+ import"./index-g9e2fhw2.js";
30
+ import"./index-tsmjxph2.js";
31
31
  import"./index-j37qq1f2.js";
32
32
  import {
33
33
  ApplicationScript
34
- } from "./index-zyk0731f.js";
34
+ } from "./index-dh9vdsrd.js";
35
35
  import {
36
36
  LibraryScript
37
- } from "./index-cmffkxcx.js";
37
+ } from "./index-73rnbwgg.js";
38
38
  import"./index-76rn3g2c.js";
39
39
  import {
40
40
  Exec,
@@ -42,7 +42,7 @@ import {
42
42
  command,
43
43
  runner,
44
44
  script
45
- } from "./index-91va923f.js";
45
+ } from "./index-n706txcv.js";
46
46
  import"./index-fgc8r6dj.js";
47
47
  import {
48
48
  ThemeValidator,
@@ -59,7 +59,7 @@ import {
59
59
  collectScopeRecipeSources,
60
60
  extractAgentBlock,
61
61
  renderScopeAgentBlock
62
- } from "./index-gn6jc5kp.js";
62
+ } from "./index-8vkkm7v0.js";
63
63
  import"./index-mxvakhsm.js";
64
64
  import {
65
65
  collectRecipeSources,