@akanjs/cli 3.0.0-alpha.44 → 3.0.0-alpha.46

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 (41) hide show
  1. package/.build-stamp +1 -1
  2. package/{agent.command-e835fjem.js → agent.command-nqs3bw0g.js} +5 -5
  3. package/{application.command-sjtbk6tr.js → application.command-cfx525a9.js} +4 -4
  4. package/buildBatch.proc.js +1 -1
  5. package/{capacitorApp-qv7g3dp2.js → capacitorApp-927ahhz2.js} +2 -2
  6. package/{cloud.command-y0e4eyqz.js → cloud.command-4mkbvey2.js} +7 -7
  7. package/{context.command-vn87jb08.js → context.command-6kn3tady.js} +12 -12
  8. package/{guideline.command-s4hn2bsy.js → guideline.command-pjdrndqk.js} +2 -2
  9. package/guidelines/conventions/conventions.instruction.md +6 -4
  10. package/incrementalBuilder.proc.js +1 -1
  11. package/{index-g9e2fhw2.js → index-24h5bqpj.js} +15 -15
  12. package/{index-t71zvmt9.js → index-3h0d06v8.js} +3 -3
  13. package/{index-qc0tnhs2.js → index-4z05haak.js} +1 -1
  14. package/{index-tsmjxph2.js → index-5em412h5.js} +1 -1
  15. package/{index-xyrb7pk5.js → index-5fe016p2.js} +3 -3
  16. package/{index-73rnbwgg.js → index-6bs24rb4.js} +2 -2
  17. package/{index-x33gnap3.js → index-7w5vv8jk.js} +2 -2
  18. package/{index-33zce8gt.js → index-7zd96bng.js} +2 -2
  19. package/{index-0h212yqe.js → index-866yqz3y.js} +10 -10
  20. package/{index-n706txcv.js → index-8rr621r2.js} +1 -1
  21. package/{index-8vkkm7v0.js → index-90zyjrby.js} +73 -21
  22. package/{index-9jsnb4vw.js → index-97cw8sg1.js} +4 -4
  23. package/{index-3dp7x6rc.js → index-k7sm38v6.js} +3 -3
  24. package/{index-becx1t0k.js → index-xc6bbz6e.js} +5 -5
  25. package/{index-k6fvbcj1.js → index-xe3ychw5.js} +3 -3
  26. package/{index-mykmf6wd.js → index-xrdrttjb.js} +4 -4
  27. package/{index-8d2sv6pw.js → index-yay1fd05.js} +4 -4
  28. package/{index-mz5jtaq7.js → index-zgkey4d0.js} +1 -1
  29. package/index.js +18 -18
  30. package/{library.command-v5cyaw9t.js → library.command-7h3yezwc.js} +3 -3
  31. package/{localRegistry.command-53t758pt.js → localRegistry.command-tet9rxqb.js} +6 -6
  32. package/{module.command-pq6w84xg.js → module.command-4g11k3xd.js} +5 -5
  33. package/{package.command-qkcs60ts.js → package.command-z7dd6vy2.js} +3 -3
  34. package/package.json +2 -2
  35. package/{page.command-qj5bfnh9.js → page.command-y996708m.js} +3 -3
  36. package/{primitive.command-bw0nes6x.js → primitive.command-4fcn8k83.js} +6 -6
  37. package/{quality.command-g1s2wt8b.js → quality.command-hx5af2yn.js} +41 -20
  38. package/{repair.command-mzwtejpk.js → repair.command-ysxd8pef.js} +5 -5
  39. package/{scalar.command-rm6k3c65.js → scalar.command-3chgxybs.js} +4 -4
  40. package/{workflow.command-g2cgcgxn.js → workflow.command-endxfzv5.js} +9 -9
  41. package/{workspace.command-f7jerqb2.js → workspace.command-f2966kvr.js} +18 -18
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudRunner
4
- } from "./index-t71zvmt9.js";
4
+ } from "./index-3h0d06v8.js";
5
5
  import {
6
6
  PackageScript
7
- } from "./index-33zce8gt.js";
7
+ } from "./index-7zd96bng.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-8d2sv6pw.js";
15
+ } from "./index-yay1fd05.js";
16
16
  import {
17
17
  script
18
- } from "./index-n706txcv.js";
18
+ } from "./index-8rr621r2.js";
19
19
  import {
20
20
  PkgExecutor
21
- } from "./index-8vkkm7v0.js";
21
+ } from "./index-90zyjrby.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-g9e2fhw2.js";
4
+ } from "./index-24h5bqpj.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-n706txcv.js";
11
+ } from "./index-8rr621r2.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-8vkkm7v0.js";
22
+ } from "./index-90zyjrby.js";
23
23
  import {
24
24
  collectRecipeSources,
25
25
  scanRecipes
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-ss469dec.js";
5
5
  import {
6
6
  PageScript
7
- } from "./index-qc0tnhs2.js";
7
+ } from "./index-4z05haak.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-tsmjxph2.js";
18
+ } from "./index-5em412h5.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-n706txcv.js";
25
+ } from "./index-8rr621r2.js";
26
26
  import {
27
27
  ModuleExecutor
28
- } from "./index-8vkkm7v0.js";
28
+ } from "./index-90zyjrby.js";
29
29
  import {
30
30
  FileSys
31
31
  } from "./index-67546d0j.js";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  LibraryScript
4
- } from "./index-73rnbwgg.js";
4
+ } from "./index-6bs24rb4.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-n706txcv.js";
11
+ } from "./index-8rr621r2.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-8vkkm7v0.js";
21
+ } from "./index-90zyjrby.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-qv7g3dp2.js")).CapacitorApp;
1903
+ var loadCapacitorApp = async () => (await import("./capacitorApp-927ahhz2.js")).CapacitorApp;
1904
1904
  var loadAbstractCompactor = async () => (await import("./abstractCompactor-20e0cwbs.js")).AbstractCompactor;
1905
1905
  var loadPrompts = async () => await import("@inquirer/prompts");
1906
1906
 
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-76rn3g2c.js";
6
6
  import {
7
7
  CommandExecutionError
8
- } from "./index-8vkkm7v0.js";
8
+ } from "./index-90zyjrby.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/capacitorApp.ts
11
11
  import { cp, mkdir, readFile, rm, writeFile } from "fs/promises";
package/index.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  getTargetCommandNames,
5
5
  getTargetMetas,
6
6
  runCommands
7
- } from "./index-n706txcv.js";
8
- import"./index-8vkkm7v0.js";
7
+ } from "./index-8rr621r2.js";
8
+ import"./index-90zyjrby.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-f7jerqb2.js")).WorkspaceCommand,
22
- agent: async () => (await import("./agent.command-e835fjem.js")).AgentCommand,
23
- application: async () => (await import("./application.command-sjtbk6tr.js")).ApplicationCommand,
24
- library: async () => (await import("./library.command-v5cyaw9t.js")).LibraryCommand,
25
- localRegistry: async () => (await import("./localRegistry.command-53t758pt.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-y0e4eyqz.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-g1s2wt8b.js")).QualityCommand,
35
- repair: async () => (await import("./repair.command-mzwtejpk.js")).RepairCommand,
36
- workflow: async () => (await import("./workflow.command-g2cgcgxn.js")).WorkflowCommand
21
+ workspace: async () => (await import("./workspace.command-f2966kvr.js")).WorkspaceCommand,
22
+ agent: async () => (await import("./agent.command-nqs3bw0g.js")).AgentCommand,
23
+ application: async () => (await import("./application.command-cfx525a9.js")).ApplicationCommand,
24
+ library: async () => (await import("./library.command-7h3yezwc.js")).LibraryCommand,
25
+ localRegistry: async () => (await import("./localRegistry.command-tet9rxqb.js")).LocalRegistryCommand,
26
+ package: async () => (await import("./package.command-z7dd6vy2.js")).PackageCommand,
27
+ module: async () => (await import("./module.command-4g11k3xd.js")).ModuleCommand,
28
+ page: async () => (await import("./page.command-y996708m.js")).PageCommand,
29
+ context: async () => (await import("./context.command-6kn3tady.js")).ContextCommand,
30
+ cloud: async () => (await import("./cloud.command-4mkbvey2.js")).CloudCommand,
31
+ guideline: async () => (await import("./guideline.command-pjdrndqk.js")).GuidelineCommand,
32
+ scalar: async () => (await import("./scalar.command-3chgxybs.js")).ScalarCommand,
33
+ primitive: async () => (await import("./primitive.command-4fcn8k83.js")).PrimitiveCommand,
34
+ quality: async () => (await import("./quality.command-hx5af2yn.js")).QualityCommand,
35
+ repair: async () => (await import("./repair.command-ysxd8pef.js")).RepairCommand,
36
+ workflow: async () => (await import("./workflow.command-endxfzv5.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-73rnbwgg.js";
4
+ } from "./index-6bs24rb4.js";
5
5
  import {
6
6
  Lib,
7
7
  Workspace,
8
8
  command
9
- } from "./index-n706txcv.js";
10
- import"./index-8vkkm7v0.js";
9
+ } from "./index-8rr621r2.js";
10
+ import"./index-90zyjrby.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-t71zvmt9.js";
5
+ } from "./index-3h0d06v8.js";
6
6
  import {
7
7
  PackageScript
8
- } from "./index-33zce8gt.js";
8
+ } from "./index-7zd96bng.js";
9
9
  import"./index-sh01r3pm.js";
10
10
  import {
11
11
  ApplicationScript
12
- } from "./index-8d2sv6pw.js";
13
- import"./index-73rnbwgg.js";
12
+ } from "./index-yay1fd05.js";
13
+ import"./index-6bs24rb4.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-n706txcv.js";
20
+ } from "./index-8rr621r2.js";
21
21
  import"./index-fgc8r6dj.js";
22
22
  import"./index-bjpxzr6s.js";
23
23
  import {
24
24
  PkgExecutor
25
- } from "./index-8vkkm7v0.js";
25
+ } from "./index-90zyjrby.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-mykmf6wd.js";
4
+ } from "./index-xrdrttjb.js";
5
5
  import"./index-ss469dec.js";
6
- import"./index-qc0tnhs2.js";
6
+ import"./index-4z05haak.js";
7
7
  import"./index-sh01r3pm.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-tsmjxph2.js";
10
+ } from "./index-5em412h5.js";
11
11
  import"./index-j37qq1f2.js";
12
12
  import {
13
13
  Module,
14
14
  Sys,
15
15
  command
16
- } from "./index-n706txcv.js";
17
- import"./index-8vkkm7v0.js";
16
+ } from "./index-8rr621r2.js";
17
+ import"./index-90zyjrby.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-33zce8gt.js";
4
+ } from "./index-7zd96bng.js";
5
5
  import {
6
6
  Pkg,
7
7
  Workspace,
8
8
  command
9
- } from "./index-n706txcv.js";
10
- import"./index-8vkkm7v0.js";
9
+ } from "./index-8rr621r2.js";
10
+ import"./index-90zyjrby.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.44",
3
+ "version": "3.0.0-alpha.46",
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.44",
37
+ "akanjs": "3.0.0-alpha.46",
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-qc0tnhs2.js";
4
+ } from "./index-4z05haak.js";
5
5
  import {
6
6
  App,
7
7
  Module,
8
8
  command
9
- } from "./index-n706txcv.js";
10
- import"./index-8vkkm7v0.js";
9
+ } from "./index-8rr621r2.js";
10
+ import"./index-90zyjrby.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-9jsnb4vw.js";
5
- import"./index-mykmf6wd.js";
4
+ } from "./index-97cw8sg1.js";
5
+ import"./index-xrdrttjb.js";
6
6
  import"./index-ss469dec.js";
7
- import"./index-qc0tnhs2.js";
7
+ import"./index-4z05haak.js";
8
8
  import"./index-sh01r3pm.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-tsmjxph2.js";
11
+ } from "./index-5em412h5.js";
12
12
  import"./index-j37qq1f2.js";
13
13
  import {
14
14
  Workspace,
15
15
  command
16
- } from "./index-n706txcv.js";
17
- import"./index-8vkkm7v0.js";
16
+ } from "./index-8rr621r2.js";
17
+ import"./index-90zyjrby.js";
18
18
  import"./index-mxvakhsm.js";
19
19
  import"./index-1577bej2.js";
20
20
  import"./index-67546d0j.js";
@@ -7,11 +7,12 @@ import {
7
7
  command,
8
8
  runner,
9
9
  script
10
- } from "./index-n706txcv.js";
10
+ } from "./index-8rr621r2.js";
11
11
  import {
12
- appRootAllowedFiles,
13
- libFacetRootAllowedFiles
14
- } from "./index-8vkkm7v0.js";
12
+ isAllowedLibFacetRootFile,
13
+ rootAllowedDirs,
14
+ rootAllowedFiles
15
+ } from "./index-90zyjrby.js";
15
16
  import"./index-mxvakhsm.js";
16
17
  import"./index-1577bej2.js";
17
18
  import"./index-67546d0j.js";
@@ -476,7 +477,7 @@ var SUGGESTED_RULES = [
476
477
  "Use domain module folders consistently: lib/<model> for database modules, lib/_<service> for service modules, and lib/__scalar/<scalar> for scalar modules.",
477
478
  "Keep module UI filenames predictable: database modules use <Model>.Template/Unit/Util/View/Zone.tsx, service modules use <Service>.Util/Zone.tsx, and scalar modules use <Scalar>.Template/Unit.tsx.",
478
479
  "Hand a form control its store setter by reference so the field publishes an agent tool; put normalization in the control's transform prop and a multi-write in a _postSet<Field> hook on the store.",
479
- "Move shared app utilities to apps/*/common instead of creating apps/*/base.",
480
+ "Move shared app and lib utilities to common/ instead of creating apps/*/base or libs/*/base.",
480
481
  "Avoid large mixed-purpose class files; class export files should import helpers from neighboring utility files instead of declaring them inline."
481
482
  ];
482
483
  var CONVENTION_SUFFIXES = [
@@ -503,7 +504,10 @@ var RULE_FIXES = {
503
504
  "akan.file.component-internal-declaration": "Move the type or helper to a type/util file in ui/, webkit/, or common/ by purpose. If it is the component's props, declare it as `interface <Component>Props`.",
504
505
  "akan.file.component-export": "Move the value or type to a util/constant/type file in ui/, webkit/, or common/ and import it. Adding `export` is not a valid fix \u2014 only PascalCase components and their `<Component>Props` interface belong here.",
505
506
  "akan.layout.app-root-file": "Move the file into a conventional app folder (common, env, lib, page, private, public, script, srvkit, ui, or webkit).",
506
- "akan.layout.lib-root-file": "Move the file into a domain module folder under lib/; keep lib root limited to generated support facets.",
507
+ "akan.layout.app-root-folder": "Move the folder's contents into a conventional app folder (common, env, lib, page, private, public, script, srvkit, ui, or webkit) and delete it.",
508
+ "akan.layout.lib-root-file": "Move the file into a conventional lib folder (common, env, lib, page, private, public, srvkit, ui, or webkit).",
509
+ "akan.layout.lib-root-folder": "Move the folder's contents into a conventional lib folder (common, env, lib, page, private, public, srvkit, ui, or webkit) and delete it.",
510
+ "akan.layout.lib-facet-file": "Move the file into a domain module folder under lib/; keep the lib facet root limited to generated support facets.",
507
511
  "akan.layout.module-ui-file": "Rename the file to an allowed module UI name, or move it to ui/ if it is not a module component.",
508
512
  "akan.ssr.unnecessary-use-client": 'Delete the "use client" directive so the file renders on the server. If it exists only to wrap one client child, drop the wrapper and use the child directly.',
509
513
  "akan.ssr.client-static-component": "Move the component to a server file \u2014 a <Model>.Unit.tsx / <Model>.View.tsx for a module, or a ui/ file with no directive \u2014 and reference it from the client file.",
@@ -743,25 +747,30 @@ class AkanQualityScanner {
743
747
  ];
744
748
  }
745
749
  #scanLayoutQuality(sourceFile) {
746
- const segments = sourceFile.file.split("/");
747
750
  const warnings = [];
748
- if (segments[0] === "apps" && segments.length === 3 && !appRootAllowedFiles.has(segments[2])) {
749
- warnings.push({
750
- rule: "akan.layout.app-root-file",
751
- scope: "layout",
752
- severity: "warning",
753
- file: sourceFile.file,
754
- message: `Unexpected app root file "${segments[2]}". Keep application code in conventional app folders.`
755
- });
751
+ const rootEntry = getSysRootEntry(sourceFile.file);
752
+ if (rootEntry) {
753
+ const { type, name, isDir } = rootEntry;
754
+ const allowed = isDir ? rootAllowedDirs[type].has(name) : rootAllowedFiles[type].has(name);
755
+ const kind = isDir ? "folder" : "file";
756
+ if (!allowed) {
757
+ warnings.push({
758
+ rule: `akan.layout.${type}-root-${kind}`,
759
+ scope: "layout",
760
+ severity: "warning",
761
+ file: sourceFile.file,
762
+ message: `Unexpected ${type} root ${kind} "${name}". Keep ${type} code in conventional ${type} folders.`
763
+ });
764
+ }
756
765
  }
757
- const libRootFile = getLibRootFile(sourceFile.file);
758
- if (libRootFile && !libFacetRootAllowedFiles.has(libRootFile)) {
766
+ const libFacetFile = getLibFacetRootFile(sourceFile.file);
767
+ if (libFacetFile && !isAllowedLibFacetRootFile(libFacetFile)) {
759
768
  warnings.push({
760
- rule: "akan.layout.lib-root-file",
769
+ rule: "akan.layout.lib-facet-file",
761
770
  scope: "layout",
762
771
  severity: "warning",
763
772
  file: sourceFile.file,
764
- message: `Unexpected lib root file "${libRootFile}". Keep direct lib root files limited to generated support facets.`
773
+ message: `Unexpected lib facet root file "${libFacetFile}". Keep direct lib/ root files limited to generated support facets.`
765
774
  });
766
775
  }
767
776
  const moduleUiWarning = getModuleUiWarning(sourceFile.file);
@@ -1115,7 +1124,19 @@ function getConventionDescription(suffix, modelName) {
1115
1124
  return `${modelName}Internal, ${modelName}Slice, or ${modelName}Endpoint`;
1116
1125
  return `${modelName}Store`;
1117
1126
  }
1118
- function getLibRootFile(file) {
1127
+ var sysRootTypes = { apps: "app", libs: "lib" };
1128
+ function getSysRootEntry(file) {
1129
+ const segments = file.split("/");
1130
+ const root = segments[0];
1131
+ const name = segments[2];
1132
+ if (!root || !name || segments.length < 3)
1133
+ return null;
1134
+ const type = sysRootTypes[root];
1135
+ if (!type)
1136
+ return null;
1137
+ return { type, name, isDir: segments.length > 3 };
1138
+ }
1139
+ function getLibFacetRootFile(file) {
1119
1140
  const segments = file.split("/");
1120
1141
  if ((segments[0] === "libs" || segments[0] === "apps") && segments.length === 4 && segments[2] === "lib")
1121
1142
  return segments[3];
@@ -1,15 +1,15 @@
1
1
  // @bun
2
2
  import {
3
3
  RepairRunner
4
- } from "./index-xyrb7pk5.js";
5
- import"./index-g9e2fhw2.js";
6
- import"./index-tsmjxph2.js";
4
+ } from "./index-5fe016p2.js";
5
+ import"./index-24h5bqpj.js";
6
+ import"./index-5em412h5.js";
7
7
  import {
8
8
  Workspace,
9
9
  command,
10
10
  script
11
- } from "./index-n706txcv.js";
12
- import"./index-8vkkm7v0.js";
11
+ } from "./index-8rr621r2.js";
12
+ import"./index-90zyjrby.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-x33gnap3.js";
4
+ } from "./index-7w5vv8jk.js";
5
5
  import"./index-ss469dec.js";
6
6
  import"./index-sh01r3pm.js";
7
7
  import {
8
8
  renderPrimitiveReport
9
- } from "./index-tsmjxph2.js";
9
+ } from "./index-5em412h5.js";
10
10
  import"./index-j37qq1f2.js";
11
11
  import {
12
12
  Sys,
13
13
  command
14
- } from "./index-n706txcv.js";
15
- import"./index-8vkkm7v0.js";
14
+ } from "./index-8rr621r2.js";
15
+ import"./index-90zyjrby.js";
16
16
  import"./index-mxvakhsm.js";
17
17
  import"./index-1577bej2.js";
18
18
  import"./index-67546d0j.js";
@@ -1,30 +1,30 @@
1
1
  // @bun
2
2
  import {
3
3
  WorkflowRunner
4
- } from "./index-3dp7x6rc.js";
4
+ } from "./index-k7sm38v6.js";
5
5
  import {
6
6
  ScalarScript
7
- } from "./index-x33gnap3.js";
7
+ } from "./index-7w5vv8jk.js";
8
8
  import {
9
9
  PrimitiveScript
10
- } from "./index-9jsnb4vw.js";
10
+ } from "./index-97cw8sg1.js";
11
11
  import {
12
12
  ModuleScript
13
- } from "./index-mykmf6wd.js";
13
+ } from "./index-xrdrttjb.js";
14
14
  import"./index-ss469dec.js";
15
- import"./index-qc0tnhs2.js";
15
+ import"./index-4z05haak.js";
16
16
  import"./index-sh01r3pm.js";
17
- import"./index-g9e2fhw2.js";
17
+ import"./index-24h5bqpj.js";
18
18
  import {
19
19
  createWorkflowStepRegistry
20
- } from "./index-tsmjxph2.js";
20
+ } from "./index-5em412h5.js";
21
21
  import"./index-j37qq1f2.js";
22
22
  import {
23
23
  Workspace,
24
24
  command,
25
25
  script
26
- } from "./index-n706txcv.js";
27
- import"./index-8vkkm7v0.js";
26
+ } from "./index-8rr621r2.js";
27
+ import"./index-90zyjrby.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-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";
4
+ } from "./index-866yqz3y.js";
5
+ import"./index-5fe016p2.js";
6
+ import"./index-k7sm38v6.js";
7
+ import"./index-7w5vv8jk.js";
8
+ import"./index-97cw8sg1.js";
9
+ import"./index-xrdrttjb.js";
10
10
  import"./index-ss469dec.js";
11
- import"./index-qc0tnhs2.js";
11
+ import"./index-4z05haak.js";
12
12
  import {
13
13
  CloudScript
14
- } from "./index-becx1t0k.js";
14
+ } from "./index-xc6bbz6e.js";
15
15
  import {
16
16
  getLatestPackageVersion,
17
17
  getNpmRegistryUrl
18
- } from "./index-t71zvmt9.js";
18
+ } from "./index-3h0d06v8.js";
19
19
  import {
20
20
  PackageScript
21
- } from "./index-33zce8gt.js";
22
- import"./index-mz5jtaq7.js";
21
+ } from "./index-7zd96bng.js";
22
+ import"./index-zgkey4d0.js";
23
23
  import {
24
24
  GlobalConfig
25
25
  } from "./index-sh01r3pm.js";
26
26
  import {
27
27
  AgentScript
28
- } from "./index-k6fvbcj1.js";
29
- import"./index-g9e2fhw2.js";
30
- import"./index-tsmjxph2.js";
28
+ } from "./index-xe3ychw5.js";
29
+ import"./index-24h5bqpj.js";
30
+ import"./index-5em412h5.js";
31
31
  import"./index-j37qq1f2.js";
32
32
  import {
33
33
  ApplicationScript
34
- } from "./index-8d2sv6pw.js";
34
+ } from "./index-yay1fd05.js";
35
35
  import {
36
36
  LibraryScript
37
- } from "./index-73rnbwgg.js";
37
+ } from "./index-6bs24rb4.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-n706txcv.js";
45
+ } from "./index-8rr621r2.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-8vkkm7v0.js";
62
+ } from "./index-90zyjrby.js";
63
63
  import"./index-mxvakhsm.js";
64
64
  import {
65
65
  collectRecipeSources,