@akanjs/cli 3.2.0-rc.13 → 3.2.0-rc.15

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 (105) hide show
  1. package/.build-stamp +2 -2
  2. package/CodeAgent-18qg03re.js +11 -0
  3. package/{CodeTui-h7mksphk.js → CodeTui-zkm51zf3.js} +4 -4
  4. package/TunnelShare-6t4rwyc0.js +19 -0
  5. package/{agent.command-hrc2dfas.js → agent.command-5k2zegmj.js} +25 -25
  6. package/akanCode.js +6 -6
  7. package/appExecutor-1bgs9a69.js +11 -0
  8. package/{application.command-b2194cpv.js → application.command-ge27047n.js} +20 -20
  9. package/{applicationBuildRunner-gg03kydg.js → applicationBuildRunner-7skfg8zn.js} +14 -14
  10. package/buildBatch.proc.js +11 -11
  11. package/{cloud.command-d8ps1564.js → cloud.command-d18qj1v2.js} +25 -25
  12. package/cloud.script-0hbhm3mw.js +35 -0
  13. package/{code.command-6h6jr0s7.js → code.command-tz4x5zm6.js} +13 -13
  14. package/{context.command-t8akxhny.js → context.command-x1smtm5q.js} +25 -25
  15. package/context.runner-vb7jc0k8.js +34 -0
  16. package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
  17. package/{devTui-h77zrjv5.js → devTui-rf374y2w.js} +1 -1
  18. package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
  19. package/{guideline.command-f41b5nv5.js → guideline.command-rdcwxf8g.js} +8 -8
  20. package/guidelines/conventions/rules/app.md +1 -1
  21. package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -2
  22. package/incrementalBuilder.proc.js +12 -12
  23. package/{index-e599a0e4.js → index-0c8zj1da.js} +1 -1
  24. package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
  25. package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
  26. package/{index-66jt3m30.js → index-1ts8vfsk.js} +5 -5
  27. package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
  28. package/{index-3fn13v8p.js → index-3641r8q0.js} +6 -6
  29. package/{index-hbc0t3ng.js → index-39byv35b.js} +2 -2
  30. package/{index-j2me5hm4.js → index-669sg3yp.js} +3 -3
  31. package/{index-bb7cm060.js → index-6p02be7n.js} +22 -22
  32. package/{index-j6eeh5d7.js → index-89x8tp7z.js} +4 -4
  33. package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
  34. package/{index-71z3pdsn.js → index-9mx3b3zh.js} +4 -4
  35. package/{index-c0rnjeqn.js → index-b2sptt87.js} +7 -7
  36. package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
  37. package/{index-2z8mxgs7.js → index-bjnebzzc.js} +4 -4
  38. package/{index-hpe12v1h.js → index-bxqbt5p3.js} +2 -2
  39. package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
  40. package/{index-1b1p83vq.js → index-bzdq8wfw.js} +5 -5
  41. package/{index-nx4q5rey.js → index-d2r762fk.js} +4 -4
  42. package/{index-3fpv5v0t.js → index-dp7sht3v.js} +17 -17
  43. package/{index-rx8r0cbe.js → index-dqsc1b5t.js} +1 -1
  44. package/{index-x2bj2vyz.js → index-dtpeyts6.js} +1 -1
  45. package/{index-8bkbexcy.js → index-e82xwj3x.js} +1 -1
  46. package/{index-hg8s6nae.js → index-emf3wzvh.js} +7 -7
  47. package/{index-5np8zpep.js → index-er2ja34m.js} +13 -13
  48. package/{index-j33b0n38.js → index-f482h2hj.js} +20 -2
  49. package/{index-9yfssbgg.js → index-fcrr79gh.js} +75 -41
  50. package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
  51. package/{index-crtscw7c.js → index-g56xae1n.js} +183 -182
  52. package/{index-asfx2dhe.js → index-g7e58wz2.js} +6 -6
  53. package/{index-3fbmyb2r.js → index-gh4brxzn.js} +2 -2
  54. package/{index-xb1yh9km.js → index-h7yd92c8.js} +2 -2
  55. package/{index-k081wv4r.js → index-j2eqe3jk.js} +19 -19
  56. package/{index-9w51aevd.js → index-jfkh776h.js} +1 -1
  57. package/{index-1jzdengt.js → index-n8mxyy3f.js} +1 -1
  58. package/{index-3gmskeq2.js → index-neassptx.js} +10 -10
  59. package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
  60. package/{index-37k5vshx.js → index-q4e18ne4.js} +4 -4
  61. package/{index-g2ebpf0y.js → index-q57rsax4.js} +3 -3
  62. package/{index-b4qq3rq0.js → index-rwgqba9p.js} +1 -1
  63. package/{index-grt0e6kk.js → index-s75h0455.js} +1 -1
  64. package/{index-xgqz3kak.js → index-sp331bww.js} +2 -2
  65. package/{index-h7hehkw6.js → index-t0g6jgrc.js} +1 -1
  66. package/{index-6dwk5aej.js → index-t329y8am.js} +12 -12
  67. package/{index-8rmg8c0y.js → index-t8tysbxv.js} +7 -7
  68. package/{index-b3h37zk3.js → index-trp7jdr1.js} +4 -4
  69. package/{index-c4k6e098.js → index-ttfz2sc7.js} +104 -55
  70. package/{index-xjj0h74q.js → index-vm6pr11y.js} +3 -3
  71. package/{index-vb8gd135.js → index-xywq95wk.js} +6 -6
  72. package/{index-vy50ec2q.js → index-yr5jv8yd.js} +3 -3
  73. package/{index-f5j09jnj.js → index-z7t6neq1.js} +9 -9
  74. package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
  75. package/index.js +28 -28
  76. package/{libExecutor-ex8jqksz.js → libExecutor-hxe5eqfh.js} +3 -3
  77. package/{library.command-a9p5yg4k.js → library.command-83shs8fw.js} +8 -8
  78. package/{localRegistry.command-zz64k5vy.js → localRegistry.command-sz713jg3.js} +24 -24
  79. package/{module.command-1ht6dmxg.js → module.command-jhhm0nmw.js} +10 -10
  80. package/{package.command-eabq20aq.js → package.command-42syy96v.js} +11 -11
  81. package/package.json +2 -2
  82. package/{page.command-xhmzmvjn.js → page.command-jkv29zzs.js} +8 -8
  83. package/{pipeline.command-wsbg3fpr.js → pipeline.command-6sg9g4hq.js} +9 -9
  84. package/{pkgExecutor-d16x1xcb.js → pkgExecutor-6p82w5y1.js} +3 -3
  85. package/{primitive.command-yyxtfhvq.js → primitive.command-tt6aq7m9.js} +11 -11
  86. package/{projectTypecheck-wcrt7sae.js → projectTypecheck-wfrz0cxr.js} +1 -1
  87. package/{prompter-qrwx1p17.js → prompter-w58rvzb9.js} +2 -2
  88. package/{quality.command-n7hmt628.js → quality.command-tqar7ss5.js} +12 -12
  89. package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
  90. package/{repair.command-pczdq4mv.js → repair.command-qkcn329t.js} +11 -11
  91. package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8aph1dsr.js} +1 -1
  92. package/{scalar.command-cw3d32sv.js → scalar.command-6nvq11ag.js} +9 -9
  93. package/skills/akan-debug/SKILL.md +8 -5
  94. package/{subspace.command-d8t8geyv.js → subspace.command-dvwds4cv.js} +20 -20
  95. package/{tunnel.command-mhm64m9n.js → tunnel.command-h8r69a7v.js} +12 -12
  96. package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
  97. package/typecheck.proc.js +1 -1
  98. package/{verify.command-j4he0fbx.js → verify.command-ynec8kt2.js} +20 -20
  99. package/{workflow.command-k064waza.js → workflow.command-f70fx73a.js} +16 -16
  100. package/{workspace.command-pkpawft5.js → workspace.command-vagjy1q9.js} +43 -43
  101. package/CodeAgent-yd1f54yf.js +0 -11
  102. package/TunnelShare-hrjed2jf.js +0 -19
  103. package/appExecutor-0ssszyhf.js +0 -11
  104. package/cloud.script-7j7w4m0w.js +0 -35
  105. package/context.runner-eawk1n8e.js +0 -34
@@ -2,10 +2,7 @@
2
2
  import {
3
3
  camelToKebabCase,
4
4
  runner
5
- } from "./index-3gmskeq2.js";
6
- import {
7
- FileSys2
8
- } from "./index-bns3wcpc.js";
5
+ } from "./index-neassptx.js";
9
6
  import {
10
7
  rootAllowedFiles,
11
8
  rootAllowedDirs,
@@ -19,13 +16,20 @@ import {
19
16
  renderScopeAgentBlock,
20
17
  SysExecutor,
21
18
  WorkspaceExecutor
22
- } from "./index-crtscw7c.js";
19
+ } from "./index-g56xae1n.js";
20
+ import {
21
+ FileSys2
22
+ } from "./index-by2tvsq6.js";
23
23
  import {
24
24
  LibExecutor2
25
- } from "./index-1jzdengt.js";
25
+ } from "./index-n8mxyy3f.js";
26
26
  import {
27
27
  PkgExecutor2
28
- } from "./index-x2bj2vyz.js";
28
+ } from "./index-dtpeyts6.js";
29
+ import {
30
+ collectRecipeSources2,
31
+ scanRecipes2
32
+ } from "./index-1p81ecbz.js";
29
33
  import {
30
34
  countBlocking,
31
35
  formatStyleContract,
@@ -33,22 +37,18 @@ import {
33
37
  } from "./index-62md4dwy.js";
34
38
  import {
35
39
  GitRevision
36
- } from "./index-ygdbn9jn.js";
40
+ } from "./index-zyb0ebm4.js";
37
41
  import {
38
42
  MaintainabilityBaseline
39
- } from "./index-j33b0n38.js";
43
+ } from "./index-f482h2hj.js";
40
44
  import {
41
45
  createFactReader,
42
46
  createAst
43
47
  } from "./index-nd39rssn.js";
44
- import {
45
- collectRecipeSources2,
46
- scanRecipes2
47
- } from "./index-hj6w4ka1.js";
48
48
  import {
49
49
  getNpmRegistryUrl,
50
50
  getLatestPackageVersion
51
- } from "./index-ny2k80mv.js";
51
+ } from "./index-ffa52fwf.js";
52
52
  import {
53
53
  sysInputs,
54
54
  workflowSpecs
@@ -59,16 +59,17 @@ import { mkdir, writeFile as writeFile2 } from "fs/promises";
59
59
  import os from "os";
60
60
  import path5 from "path";
61
61
 
62
- // pkgs/@akanjs/devkit/biomeBase.ts
62
+ // pkgs/@akanjs/devkit/lint/biomeBase.ts
63
63
  var biomeVersion = "2.5.14";
64
64
 
65
- // pkgs/@akanjs/devkit/maintainabilityContract.ts
65
+ // pkgs/@akanjs/devkit/quality/maintainabilityContract.ts
66
66
  import { existsSync } from "fs";
67
- import { readFile, rm, writeFile } from "fs/promises";
67
+ import { copyFile, mkdtemp, readFile, rm, writeFile } from "fs/promises";
68
+ import { tmpdir } from "os";
68
69
  import path4 from "path";
69
70
  import ts13 from "typescript";
70
71
 
71
- // pkgs/@akanjs/devkit/bareErrorScanner.ts
72
+ // pkgs/@akanjs/devkit/quality/bareErrorScanner.ts
72
73
  import ts from "typescript";
73
74
 
74
75
  class BareErrorScanner {
@@ -159,7 +160,7 @@ class BareErrorScanner {
159
160
  }
160
161
  }
161
162
 
162
- // pkgs/@akanjs/devkit/componentSizeScanner.ts
163
+ // pkgs/@akanjs/devkit/quality/componentSizeScanner.ts
163
164
  import ts2 from "typescript";
164
165
 
165
166
  class ComponentSizeScanner {
@@ -190,10 +191,10 @@ class ComponentSizeScanner {
190
191
  }
191
192
  }
192
193
 
193
- // pkgs/@akanjs/devkit/componentWriteChainScanner.ts
194
+ // pkgs/@akanjs/devkit/quality/componentWriteChainScanner.ts
194
195
  import ts5 from "typescript";
195
196
 
196
- // pkgs/@akanjs/devkit/storeAccessScanner.ts
197
+ // pkgs/@akanjs/devkit/quality/storeAccessScanner.ts
197
198
  import ts3 from "typescript";
198
199
  class StoreAccessScanner {
199
200
  static #formSetter = /^(?:(?:set|add|sub|addOrSub|upload)[A-Z]\w*On|writeOn)[A-Z]\w*$/;
@@ -243,7 +244,7 @@ class StoreAccessScanner {
243
244
  }
244
245
  }
245
246
 
246
- // pkgs/@akanjs/devkit/writePath.ts
247
+ // pkgs/@akanjs/devkit/quality/writePath.ts
247
248
  import ts4 from "typescript";
248
249
 
249
250
  class WritePath {
@@ -412,7 +413,7 @@ class WritePath {
412
413
  #busier = (a, b) => this.countOf(b) > this.countOf(a) ? b : a;
413
414
  }
414
415
 
415
- // pkgs/@akanjs/devkit/componentWriteChainScanner.ts
416
+ // pkgs/@akanjs/devkit/quality/componentWriteChainScanner.ts
416
417
  class ComponentWriteChainScanner {
417
418
  static #inlineCallers = new Set([
418
419
  "map",
@@ -481,7 +482,7 @@ class ComponentWriteChainScanner {
481
482
  }
482
483
  }
483
484
 
484
- // pkgs/@akanjs/devkit/endpointReach.ts
485
+ // pkgs/@akanjs/devkit/quality/endpointReach.ts
485
486
  import path from "path";
486
487
  import ts6 from "typescript";
487
488
 
@@ -545,11 +546,11 @@ class EndpointReach {
545
546
  }
546
547
  }
547
548
 
548
- // pkgs/@akanjs/devkit/maintainabilityLimits.ts
549
+ // pkgs/@akanjs/devkit/quality/maintainabilityLimits.ts
549
550
  import path3 from "path";
550
551
  import ts7 from "typescript";
551
552
 
552
- // pkgs/@akanjs/devkit/abstractDoc.ts
553
+ // pkgs/@akanjs/devkit/quality/abstractDoc.ts
553
554
  import path2 from "path";
554
555
 
555
556
  class AbstractDoc {
@@ -614,7 +615,7 @@ class AbstractDoc {
614
615
  }
615
616
  }
616
617
 
617
- // pkgs/@akanjs/devkit/maintainabilityLimits.ts
618
+ // pkgs/@akanjs/devkit/quality/maintainabilityLimits.ts
618
619
  class MaintainabilityLimits {
619
620
  static fileMaxLines = {
620
621
  ".Template.tsx": 400,
@@ -678,7 +679,7 @@ class MaintainabilityLimits {
678
679
  }
679
680
  }
680
681
 
681
- // pkgs/@akanjs/devkit/maintainabilityReport.ts
682
+ // pkgs/@akanjs/devkit/quality/maintainabilityReport.ts
682
683
  class MaintainabilityReport {
683
684
  static #clientSplitFix = 'Split it, in this order: a mode/kind table `{ [kind in cnst.X["value"]]: \u2026 }` in place of mode flags, each entry a component of the module owning the data of that kind; an interaction hook in `webkit/use<X>.tsx` with its pure logic in `common/` (`akan workflow plan create-interaction`); the writes behind one endpoint (`akan workflow plan add-mutation`); last, a sub-concept in its own module (`lib/<sub>` or `lib/_<feature>`), never model-bound code moved into `ui/`.';
684
685
  static #serverMarkupFix = "Move model-independent pieces into ui/ components and display logic onto Light<Model>.";
@@ -827,7 +828,7 @@ class MaintainabilityReport {
827
828
  }
828
829
  }
829
830
 
830
- // pkgs/@akanjs/devkit/serviceLoopCallScanner.ts
831
+ // pkgs/@akanjs/devkit/quality/serviceLoopCallScanner.ts
831
832
  import ts8 from "typescript";
832
833
  class ServiceLoopCallScanner {
833
834
  static #reachingField = /(?:Service|Model)$/;
@@ -925,7 +926,7 @@ class ServiceLoopCallScanner {
925
926
  }
926
927
  }
927
928
 
928
- // pkgs/@akanjs/devkit/signalMutationIndex.ts
929
+ // pkgs/@akanjs/devkit/quality/signalMutationIndex.ts
929
930
  import { modelNames } from "akanjs/common";
930
931
  import ts9 from "typescript";
931
932
 
@@ -985,7 +986,7 @@ class SignalMutationIndex {
985
986
  }
986
987
  }
987
988
 
988
- // pkgs/@akanjs/devkit/storeSource.ts
989
+ // pkgs/@akanjs/devkit/quality/storeSource.ts
989
990
  import { modelNames as modelNames2 } from "akanjs/common";
990
991
  import ts10 from "typescript";
991
992
 
@@ -1116,7 +1117,7 @@ class StoreSource {
1116
1117
  }
1117
1118
  }
1118
1119
 
1119
- // pkgs/@akanjs/devkit/storeWriteScanner.ts
1120
+ // pkgs/@akanjs/devkit/quality/storeWriteScanner.ts
1120
1121
  class StoreWriteScanner {
1121
1122
  #index;
1122
1123
  constructor(index) {
@@ -1153,7 +1154,7 @@ class StoreWriteScanner {
1153
1154
  }
1154
1155
  }
1155
1156
 
1156
- // pkgs/@akanjs/devkit/structureScanner.ts
1157
+ // pkgs/@akanjs/devkit/quality/structureScanner.ts
1157
1158
  import ts11 from "typescript";
1158
1159
 
1159
1160
  class StructureScanner {
@@ -1265,7 +1266,7 @@ class StructureScanner {
1265
1266
  }
1266
1267
  }
1267
1268
 
1268
- // pkgs/@akanjs/devkit/writePlacementScanner.ts
1269
+ // pkgs/@akanjs/devkit/quality/writePlacementScanner.ts
1269
1270
  import ts12 from "typescript";
1270
1271
  class WritePlacementScanner {
1271
1272
  #index;
@@ -1300,7 +1301,7 @@ class WritePlacementScanner {
1300
1301
  }
1301
1302
  }
1302
1303
 
1303
- // pkgs/@akanjs/devkit/writingActionIndex.ts
1304
+ // pkgs/@akanjs/devkit/quality/writingActionIndex.ts
1304
1305
  class WritingActionIndex {
1305
1306
  #mutations;
1306
1307
  #actions = new Set;
@@ -1355,7 +1356,7 @@ class WritingActionIndex {
1355
1356
  }
1356
1357
  }
1357
1358
 
1358
- // pkgs/@akanjs/devkit/maintainabilityContract.ts
1359
+ // pkgs/@akanjs/devkit/quality/maintainabilityContract.ts
1359
1360
  class MaintainabilityContract {
1360
1361
  static ruleIds = [
1361
1362
  "akan.size.file",
@@ -1408,10 +1409,12 @@ class MaintainabilityContract {
1408
1409
  this.#readBaseline(),
1409
1410
  this.#readReferenceBaseline()
1410
1411
  ]);
1411
- const baseline = existing === null ? new MaintainabilityBaseline : MaintainabilityBaseline.parse(existing, this.baselinePath);
1412
+ const moves = await this.#movesSince(reference.ref);
1413
+ const onDisk = existing === null ? new MaintainabilityBaseline : MaintainabilityBaseline.parse(existing, this.baselinePath);
1414
+ const baseline = fix ? onDisk.movedBy(moves) : onDisk;
1412
1415
  const tightened = baseline.tightenedBy(violations);
1413
1416
  if (fix && existing !== null)
1414
- await this.#tighten(baseline, tightened);
1417
+ await this.#tighten(onDisk, tightened);
1415
1418
  const working = fix ? tightened : baseline;
1416
1419
  const lines = (await this.#readBaseline() ?? "").split(/\r?\n/);
1417
1420
  const failures = [
@@ -1435,8 +1438,8 @@ class MaintainabilityContract {
1435
1438
  const measured = unrecorded.size ? await this.#measuredAt(reference.ref) : null;
1436
1439
  if (recorded === null && measured === null)
1437
1440
  return failures;
1438
- const committed = (recorded ?? new MaintainabilityBaseline).withSectionsOf(measured, unrecorded);
1439
- const growths = working.grownFrom(committed).map(({ rule, ...growth }) => ({
1441
+ const committed = (recorded ?? new MaintainabilityBaseline).withSectionsOf(measured, unrecorded).movedBy(moves);
1442
+ const growths = (fix ? working : working.movedBy(moves)).grownFrom(committed).map(({ rule, ...growth }) => ({
1440
1443
  kind: "baselineGrowth",
1441
1444
  rule: "akan.baseline.growth",
1442
1445
  file: MaintainabilityBaseline.fileName,
@@ -1669,12 +1672,58 @@ class MaintainabilityContract {
1669
1672
  throw new Error(MaintainabilityContract.#missingHistory(this.sysPath, "this is a shallow clone"));
1670
1673
  return "HEAD";
1671
1674
  }
1675
+ async#movesSince(ref) {
1676
+ const staged = await this.#stagedScope();
1677
+ try {
1678
+ const diff = ["diff", ...staged ? ["--cached"] : [], "--relative", "--name-status", "-z", "-M", ref];
1679
+ const fields = (await this.#git([...diff, "--", this.sysPath], staged?.env))?.split("\x00") ?? [];
1680
+ const prefix = `${this.sysPath}/`;
1681
+ const moves = new Map;
1682
+ for (let idx = 0;idx < fields.length; idx += fields[idx]?.startsWith("R") ? 3 : 2) {
1683
+ const [from, to] = [fields[idx + 1], fields[idx + 2]];
1684
+ if (!fields[idx]?.startsWith("R") || !from?.startsWith(prefix) || !to?.startsWith(prefix))
1685
+ continue;
1686
+ moves.set(from.slice(prefix.length), to.slice(prefix.length));
1687
+ }
1688
+ return moves;
1689
+ } finally {
1690
+ if (staged)
1691
+ await rm(staged.dir, { recursive: true, force: true });
1692
+ }
1693
+ }
1694
+ async#stagedScope() {
1695
+ const indexPath = (await this.#git(["rev-parse", "--git-path", "index"]))?.trim();
1696
+ const untracked = (await this.#git(["ls-files", "-o", "--exclude-standard", "-z", "--", this.sysPath]))?.split("\x00").filter((file) => /\.(tsx?|md)$/.test(file));
1697
+ if (!indexPath || !untracked)
1698
+ return null;
1699
+ const dir = await mkdtemp(path4.join(tmpdir(), "akan-moves-")).catch(() => null);
1700
+ if (!dir)
1701
+ return null;
1702
+ const env = { GIT_INDEX_FILE: path4.join(dir, "index") };
1703
+ const listPath = path4.join(dir, "untracked");
1704
+ try {
1705
+ const indexFile = path4.resolve(this.#workspaceRoot, indexPath);
1706
+ if (existsSync(indexFile))
1707
+ await copyFile(indexFile, env.GIT_INDEX_FILE);
1708
+ await writeFile(listPath, untracked.join("\x00"));
1709
+ const added = await this.#git(["add", "-u", "--", this.sysPath], env) !== null && (!untracked.length || await this.#git(["add", "--pathspec-from-file", listPath, "--pathspec-file-nul"], env) !== null);
1710
+ if (added)
1711
+ return { dir, env };
1712
+ } catch {}
1713
+ await rm(dir, { recursive: true, force: true });
1714
+ return null;
1715
+ }
1672
1716
  static #missingHistory(sysPath, cause) {
1673
1717
  return `${sysPath}/${MaintainabilityBaseline.fileName} is compared with its copy where this branch forked from the default branch, ` + `but ${cause}. Fetch the default branch with its history (in GitHub Actions, actions/checkout with fetch-depth: 0).`;
1674
1718
  }
1675
- async#git(args) {
1719
+ async#git(args, env = {}) {
1676
1720
  try {
1677
- const proc = Bun.spawn(["git", ...args], { cwd: this.#workspaceRoot, stdout: "pipe", stderr: "ignore" });
1721
+ const proc = Bun.spawn(["git", ...args], {
1722
+ cwd: this.#workspaceRoot,
1723
+ env: { ...process.env, GIT_OPTIONAL_LOCKS: "0", ...env },
1724
+ stdout: "pipe",
1725
+ stderr: "ignore"
1726
+ });
1678
1727
  const [text, exitCode] = await Promise.all([new Response(proc.stdout).text(), proc.exited]);
1679
1728
  return exitCode === 0 ? text : null;
1680
1729
  } catch {
@@ -2102,7 +2151,7 @@ AKAN_PUBLIC_LOG_LEVEL=debug
2102
2151
  }
2103
2152
  }
2104
2153
 
2105
- // pkgs/@akanjs/devkit/qualityScanner.ts
2154
+ // pkgs/@akanjs/devkit/quality/qualityScanner.ts
2106
2155
  import { createHash } from "crypto";
2107
2156
  import { readdir as readdir2, readFile as readFile3, stat } from "fs/promises";
2108
2157
  import path9 from "path";
@@ -2110,11 +2159,11 @@ import { RESERVED_ROUTE_CONFIG_EXPORTS } from "akanjs/common";
2110
2159
  import ignore from "ignore";
2111
2160
  import ts21 from "typescript";
2112
2161
 
2113
- // pkgs/@akanjs/devkit/commentDensityScanner.ts
2162
+ // pkgs/@akanjs/devkit/quality/commentDensityScanner.ts
2114
2163
  import path6 from "path";
2115
2164
  import ts15 from "typescript";
2116
2165
 
2117
- // pkgs/@akanjs/devkit/sourceComments.ts
2166
+ // pkgs/@akanjs/devkit/quality/sourceComments.ts
2118
2167
  import ts14 from "typescript";
2119
2168
 
2120
2169
  class SourceComments {
@@ -2172,7 +2221,7 @@ class SourceComments {
2172
2221
  }
2173
2222
  }
2174
2223
 
2175
- // pkgs/@akanjs/devkit/commentDensityScanner.ts
2224
+ // pkgs/@akanjs/devkit/quality/commentDensityScanner.ts
2176
2225
  class CommentDensityScanner {
2177
2226
  static rule = "akan.comment.density";
2178
2227
  static maxShare = 0.01;
@@ -2248,7 +2297,7 @@ class CommentDensityScanner {
2248
2297
  }
2249
2298
  }
2250
2299
 
2251
- // pkgs/@akanjs/devkit/deprecatedCommentScanner.ts
2300
+ // pkgs/@akanjs/devkit/quality/deprecatedCommentScanner.ts
2252
2301
  class DeprecatedCommentScanner {
2253
2302
  static rule = "akan.comment.deprecated-marker";
2254
2303
  static #marker = /^[!?*\s]*(?:(?:TODO|FIXME|XXX|NOTE)\b\s*:?\s*)?@?deprecated\b/i;
@@ -2270,7 +2319,7 @@ class DeprecatedCommentScanner {
2270
2319
  }
2271
2320
  }
2272
2321
 
2273
- // pkgs/@akanjs/devkit/formSetterScanner.ts
2322
+ // pkgs/@akanjs/devkit/quality/formSetterScanner.ts
2274
2323
  import { capitalize, formSetterNames } from "akanjs/common";
2275
2324
  import ts16 from "typescript";
2276
2325
 
@@ -2379,7 +2428,7 @@ class FormSetterScanner {
2379
2428
  }
2380
2429
  }
2381
2430
 
2382
- // pkgs/@akanjs/devkit/kindBranchScanner.ts
2431
+ // pkgs/@akanjs/devkit/quality/kindBranchScanner.ts
2383
2432
  import path7 from "path";
2384
2433
  import ts17 from "typescript";
2385
2434
 
@@ -2516,7 +2565,7 @@ class KindBranchScanner {
2516
2565
  }
2517
2566
  }
2518
2567
 
2519
- // pkgs/@akanjs/devkit/maintainabilityExceptionScanner.ts
2568
+ // pkgs/@akanjs/devkit/quality/maintainabilityExceptionScanner.ts
2520
2569
  import { existsSync as existsSync2 } from "fs";
2521
2570
  import { readdir, readFile as readFile2 } from "fs/promises";
2522
2571
  import path8 from "path";
@@ -2579,10 +2628,10 @@ class MaintainabilityExceptionScanner {
2579
2628
  }
2580
2629
  }
2581
2630
 
2582
- // pkgs/@akanjs/devkit/ssrScanner.ts
2631
+ // pkgs/@akanjs/devkit/quality/ssrScanner.ts
2583
2632
  import ts19 from "typescript";
2584
2633
 
2585
- // pkgs/@akanjs/devkit/renderMutationScanner.ts
2634
+ // pkgs/@akanjs/devkit/quality/renderMutationScanner.ts
2586
2635
  import ts18 from "typescript";
2587
2636
 
2588
2637
  class RenderMutationScanner {
@@ -2766,7 +2815,7 @@ class RenderMutationScanner {
2766
2815
  }
2767
2816
  }
2768
2817
 
2769
- // pkgs/@akanjs/devkit/ssrScanner.ts
2818
+ // pkgs/@akanjs/devkit/quality/ssrScanner.ts
2770
2819
  var STATIC_COMPONENT_MIN_MASS = 4;
2771
2820
  var MIXED_COMPONENT_MIN_MASS = 10;
2772
2821
  var MIXED_COMPONENT_MAX_TOUCHES = 2;
@@ -3071,7 +3120,7 @@ function getAccessRoot(node) {
3071
3120
  return ts19.isIdentifier(current) ? current.text : "";
3072
3121
  }
3073
3122
 
3074
- // pkgs/@akanjs/devkit/testOnlyExportScanner.ts
3123
+ // pkgs/@akanjs/devkit/quality/testOnlyExportScanner.ts
3075
3124
  import ts20 from "typescript";
3076
3125
 
3077
3126
  class TestOnlyExportScanner {
@@ -3170,7 +3219,7 @@ class TestOnlyExportScanner {
3170
3219
  }
3171
3220
  }
3172
3221
 
3173
- // pkgs/@akanjs/devkit/qualityScanner.ts
3222
+ // pkgs/@akanjs/devkit/quality/qualityScanner.ts
3174
3223
  var MAX_FILE_LINES = 2000;
3175
3224
  var PLACEHOLDER_EXPORT_NAMES = new Set([
3176
3225
  "aa",
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  FileSys2
4
- } from "./index-bns3wcpc.js";
4
+ } from "./index-by2tvsq6.js";
5
5
  import {
6
6
  resolveMobileTargets
7
7
  } from "./index-m9jj544v.js";
@@ -9,10 +9,10 @@ import {
9
9
  UpdatePackFolder,
10
10
  NativePublicEnv,
11
11
  NativeApp
12
- } from "./index-g2ebpf0y.js";
12
+ } from "./index-q57rsax4.js";
13
13
  import {
14
14
  ExitCodeError
15
- } from "./index-3gmskeq2.js";
15
+ } from "./index-neassptx.js";
16
16
  import {
17
17
  ConfigLock
18
18
  } from "./index-bqbf654f.js";
@@ -1,28 +1,28 @@
1
1
  // @bun
2
2
  import {
3
3
  ApplicationBuildReporter
4
- } from "./index-66jt3m30.js";
4
+ } from "./index-1ts8vfsk.js";
5
5
  import {
6
6
  parseBiomeReport,
7
7
  Linter,
8
8
  ProjectTypecheck2
9
- } from "./index-crtscw7c.js";
9
+ } from "./index-g56xae1n.js";
10
10
  import {
11
11
  TypecheckFailure
12
12
  } from "./index-j4yvgfhr.js";
13
13
  import {
14
14
  AppExecutor2
15
- } from "./index-b3h37zk3.js";
15
+ } from "./index-trp7jdr1.js";
16
16
  import {
17
17
  LibExecutor2
18
- } from "./index-1jzdengt.js";
18
+ } from "./index-n8mxyy3f.js";
19
19
  import {
20
20
  PkgExecutor2
21
- } from "./index-x2bj2vyz.js";
21
+ } from "./index-dtpeyts6.js";
22
22
  import {
23
23
  WorkspaceRunner,
24
24
  AkanQualityScanner
25
- } from "./index-c4k6e098.js";
25
+ } from "./index-ttfz2sc7.js";
26
26
 
27
27
  // pkgs/@akanjs/cli/verify/verifyComments.ts
28
28
  import { existsSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveSsrPageEntriesForApp
4
- } from "./index-b3h37zk3.js";
4
+ } from "./index-trp7jdr1.js";
5
5
  import {
6
6
  createBarrelImportsPlugin,
7
7
  workspaceBarrels,
@@ -10,7 +10,7 @@ import {
10
10
  CsrEntryFiles,
11
11
  PagesEntrySourceGenerator,
12
12
  PagesBundleBuilder
13
- } from "./index-xb1yh9km.js";
13
+ } from "./index-h7yd92c8.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
16
16
  import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
@@ -269,7 +269,7 @@ ${logs}` : ""}`);
269
269
  await rm(stagingDir, { recursive: true, force: true });
270
270
  }
271
271
  static async discover(pageEntries, basePaths) {
272
- const { RouteSourceValidator } = await import("./routeSourceValidator-4h947v7c.js");
272
+ const { RouteSourceValidator } = await import("./routeSourceValidator-8aph1dsr.js");
273
273
  const roots = pageEntries.filter((entry) => parseRouteModuleKey(entry.key).isInternalRootLayout);
274
274
  const overrides = pageEntries.filter((entry) => parseRouteModuleKey(entry.key).kind === "overrides");
275
275
  const layoutNodes = new Set(pageEntries.flatMap((entry) => {
@@ -2,22 +2,22 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-3gmskeq2.js";
5
+ } from "./index-neassptx.js";
6
6
  import {
7
7
  FileSys2
8
- } from "./index-bns3wcpc.js";
8
+ } from "./index-by2tvsq6.js";
9
9
  import {
10
10
  PkgExecutor2
11
- } from "./index-x2bj2vyz.js";
12
- import {
13
- TypeScriptDependencyScanner2
14
- } from "./index-qd7xn2bk.js";
11
+ } from "./index-dtpeyts6.js";
15
12
  import {
16
13
  FrameworkGraph
17
- } from "./index-grt0e6kk.js";
14
+ } from "./index-s75h0455.js";
18
15
  import {
19
16
  MaintainabilityBaseline
20
- } from "./index-j33b0n38.js";
17
+ } from "./index-f482h2hj.js";
18
+ import {
19
+ TypeScriptDependencyScanner2
20
+ } from "./index-2ny1e95c.js";
21
21
  import {
22
22
  assertPackageName
23
23
  } from "./index-va90m8nd.js";
@@ -25,7 +25,7 @@ import {
25
25
  // pkgs/@akanjs/cli/package/package.runner.ts
26
26
  import path2 from "path";
27
27
 
28
- // pkgs/@akanjs/devkit/packageExportsMap.ts
28
+ // pkgs/@akanjs/devkit/workspace/packageExportsMap.ts
29
29
  import { statSync } from "fs";
30
30
  import path from "path";
31
31
 
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- // pkgs/@akanjs/devkit/gitRevision.ts
2
+ // pkgs/@akanjs/devkit/workspace/gitRevision.ts
3
3
  var systemPaths = ["apps", "libs"];
4
4
  var changeOfStatus = { A: "added", D: "removed" };
5
5
 
package/index.js CHANGED
@@ -4,14 +4,14 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-3gmskeq2.js";
7
+ } from "./index-neassptx.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-bns3wcpc.js";
10
- import"./index-crtscw7c.js";
11
- import"./index-b3h37zk3.js";
12
- import"./index-1jzdengt.js";
13
- import"./index-x2bj2vyz.js";
14
- import"./index-rx8r0cbe.js";
9
+ import"./index-g56xae1n.js";
10
+ import"./index-by2tvsq6.js";
11
+ import"./index-trp7jdr1.js";
12
+ import"./index-n8mxyy3f.js";
13
+ import"./index-dtpeyts6.js";
14
+ import"./index-dqsc1b5t.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/bunVersionGuard.ts
17
17
  class BunVersionGuard {
@@ -27,27 +27,27 @@ import path from "path";
27
27
 
28
28
  // pkgs/@akanjs/cli/commandModules.ts
29
29
  var commandModules = {
30
- workspace: async () => (await import("./workspace.command-pkpawft5.js")).WorkspaceCommand,
31
- agent: async () => (await import("./agent.command-hrc2dfas.js")).AgentCommand,
32
- code: async () => (await import("./code.command-6h6jr0s7.js")).CodeCommand,
33
- application: async () => (await import("./application.command-b2194cpv.js")).ApplicationCommand,
34
- library: async () => (await import("./library.command-a9p5yg4k.js")).LibraryCommand,
35
- localRegistry: async () => (await import("./localRegistry.command-zz64k5vy.js")).LocalRegistryCommand,
36
- package: async () => (await import("./package.command-eabq20aq.js")).PackageCommand,
37
- module: async () => (await import("./module.command-1ht6dmxg.js")).ModuleCommand,
38
- page: async () => (await import("./page.command-xhmzmvjn.js")).PageCommand,
39
- context: async () => (await import("./context.command-t8akxhny.js")).ContextCommand,
40
- cloud: async () => (await import("./cloud.command-d8ps1564.js")).CloudCommand,
41
- subspace: async () => (await import("./subspace.command-d8t8geyv.js")).SubspaceCommand,
42
- guideline: async () => (await import("./guideline.command-f41b5nv5.js")).GuidelineCommand,
43
- scalar: async () => (await import("./scalar.command-cw3d32sv.js")).ScalarCommand,
44
- primitive: async () => (await import("./primitive.command-yyxtfhvq.js")).PrimitiveCommand,
45
- quality: async () => (await import("./quality.command-n7hmt628.js")).QualityCommand,
46
- verify: async () => (await import("./verify.command-j4he0fbx.js")).VerifyCommand,
47
- repair: async () => (await import("./repair.command-pczdq4mv.js")).RepairCommand,
48
- workflow: async () => (await import("./workflow.command-k064waza.js")).WorkflowCommand,
49
- pipeline: async () => (await import("./pipeline.command-wsbg3fpr.js")).PipelineCommand,
50
- tunnel: async () => (await import("./tunnel.command-mhm64m9n.js")).TunnelCommand
30
+ workspace: async () => (await import("./workspace.command-vagjy1q9.js")).WorkspaceCommand,
31
+ agent: async () => (await import("./agent.command-5k2zegmj.js")).AgentCommand,
32
+ code: async () => (await import("./code.command-tz4x5zm6.js")).CodeCommand,
33
+ application: async () => (await import("./application.command-ge27047n.js")).ApplicationCommand,
34
+ library: async () => (await import("./library.command-83shs8fw.js")).LibraryCommand,
35
+ localRegistry: async () => (await import("./localRegistry.command-sz713jg3.js")).LocalRegistryCommand,
36
+ package: async () => (await import("./package.command-42syy96v.js")).PackageCommand,
37
+ module: async () => (await import("./module.command-jhhm0nmw.js")).ModuleCommand,
38
+ page: async () => (await import("./page.command-jkv29zzs.js")).PageCommand,
39
+ context: async () => (await import("./context.command-x1smtm5q.js")).ContextCommand,
40
+ cloud: async () => (await import("./cloud.command-d18qj1v2.js")).CloudCommand,
41
+ subspace: async () => (await import("./subspace.command-dvwds4cv.js")).SubspaceCommand,
42
+ guideline: async () => (await import("./guideline.command-rdcwxf8g.js")).GuidelineCommand,
43
+ scalar: async () => (await import("./scalar.command-6nvq11ag.js")).ScalarCommand,
44
+ primitive: async () => (await import("./primitive.command-tt6aq7m9.js")).PrimitiveCommand,
45
+ quality: async () => (await import("./quality.command-tqar7ss5.js")).QualityCommand,
46
+ verify: async () => (await import("./verify.command-ynec8kt2.js")).VerifyCommand,
47
+ repair: async () => (await import("./repair.command-qkcn329t.js")).RepairCommand,
48
+ workflow: async () => (await import("./workflow.command-f70fx73a.js")).WorkflowCommand,
49
+ pipeline: async () => (await import("./pipeline.command-6sg9g4hq.js")).PipelineCommand,
50
+ tunnel: async () => (await import("./tunnel.command-h8r69a7v.js")).TunnelCommand
51
51
  };
52
52
  var commandModuleIds = Object.keys(commandModules);
53
53
 
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  LibExecutor2
4
- } from "./index-1jzdengt.js";
5
- import"./index-crtscw7c.js";
4
+ } from "./index-n8mxyy3f.js";
5
+ import"./index-g56xae1n.js";
6
6
  import"./index-j4yvgfhr.js";
7
- import"./index-bns3wcpc.js";
7
+ import"./index-by2tvsq6.js";
8
8
  export {
9
9
  LibExecutor2 as LibExecutor
10
10
  };
@@ -3,17 +3,17 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-3gmskeq2.js";
6
+ } from "./index-neassptx.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-bns3wcpc.js";
9
- import"./index-crtscw7c.js";
10
- import"./index-b3h37zk3.js";
11
- import"./index-1jzdengt.js";
12
- import"./index-x2bj2vyz.js";
8
+ import"./index-g56xae1n.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-trp7jdr1.js";
11
+ import"./index-n8mxyy3f.js";
12
+ import"./index-dtpeyts6.js";
13
13
  import {
14
14
  LibraryScript
15
- } from "./index-37k5vshx.js";
16
- import"./index-rx8r0cbe.js";
15
+ } from "./index-q4e18ne4.js";
16
+ import"./index-dqsc1b5t.js";
17
17
 
18
18
  // pkgs/@akanjs/cli/library/library.command.ts
19
19
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({