@codyswann/lisa 8.3.0 → 8.5.0

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 (281) hide show
  1. package/all/copy-overwrite/scripts/lib/private-key-redaction.d.mts +4 -0
  2. package/all/copy-overwrite/scripts/lib/private-key-redaction.mjs +59 -0
  3. package/all/copy-overwrite/scripts/lisa-gates.mjs +1 -0
  4. package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +4 -1
  5. package/all/copy-overwrite/scripts/lisa-hooks/worktree-binding-guard.mjs +56 -1
  6. package/all/copy-overwrite/scripts/lisa-run-gates.mjs +17 -14
  7. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +2 -2
  8. package/cdk/package-lisa/package.lisa.json +1 -1
  9. package/dist/cli/confined-project-read.d.ts +2 -1
  10. package/dist/cli/confined-project-read.d.ts.map +1 -1
  11. package/dist/cli/confined-project-read.js +22 -5
  12. package/dist/cli/confined-project-read.js.map +1 -1
  13. package/dist/cli/gh-cli.d.ts +2 -1
  14. package/dist/cli/gh-cli.d.ts.map +1 -1
  15. package/dist/cli/gh-cli.js +5 -3
  16. package/dist/cli/gh-cli.js.map +1 -1
  17. package/dist/cli/github-read-issue-cmd.d.ts +62 -0
  18. package/dist/cli/github-read-issue-cmd.d.ts.map +1 -0
  19. package/dist/cli/github-read-issue-cmd.js +121 -0
  20. package/dist/cli/github-read-issue-cmd.js.map +1 -0
  21. package/dist/cli/github-reader-relationships.d.ts +41 -0
  22. package/dist/cli/github-reader-relationships.d.ts.map +1 -0
  23. package/dist/cli/github-reader-relationships.js +218 -0
  24. package/dist/cli/github-reader-relationships.js.map +1 -0
  25. package/dist/cli/github-reader-target.d.ts +24 -0
  26. package/dist/cli/github-reader-target.d.ts.map +1 -0
  27. package/dist/cli/github-reader-target.js +95 -0
  28. package/dist/cli/github-reader-target.js.map +1 -0
  29. package/dist/cli/github-reader-wire.d.ts +72 -0
  30. package/dist/cli/github-reader-wire.d.ts.map +1 -0
  31. package/dist/cli/github-reader-wire.js +125 -0
  32. package/dist/cli/github-reader-wire.js.map +1 -0
  33. package/dist/cli/index.d.ts.map +1 -1
  34. package/dist/cli/index.js +2 -2
  35. package/dist/cli/index.js.map +1 -1
  36. package/dist/controls/carrier-edits.d.ts +1 -1
  37. package/dist/controls/carrier-edits.d.ts.map +1 -1
  38. package/dist/controls/carrier-edits.js +13 -3
  39. package/dist/controls/carrier-edits.js.map +1 -1
  40. package/dist/controls/carriers.d.ts.map +1 -1
  41. package/dist/controls/carriers.js +7 -2
  42. package/dist/controls/carriers.js.map +1 -1
  43. package/dist/controls/checks-binding.d.ts.map +1 -1
  44. package/dist/controls/checks-binding.js +13 -7
  45. package/dist/controls/checks-binding.js.map +1 -1
  46. package/dist/controls/commands/attest-before-enforce.d.ts.map +1 -1
  47. package/dist/controls/commands/attest-before-enforce.js +4 -5
  48. package/dist/controls/commands/attest-before-enforce.js.map +1 -1
  49. package/dist/controls/commands/attest-workspace.d.ts.map +1 -1
  50. package/dist/controls/commands/attest-workspace.js +3 -1
  51. package/dist/controls/commands/attest-workspace.js.map +1 -1
  52. package/dist/controls/commands/declaration-check.d.ts.map +1 -1
  53. package/dist/controls/commands/declaration-check.js +7 -4
  54. package/dist/controls/commands/declaration-check.js.map +1 -1
  55. package/dist/controls/commands/proof-check.js +1 -1
  56. package/dist/controls/commands/proof-check.js.map +1 -1
  57. package/dist/controls/commands/seed.d.ts +1 -9
  58. package/dist/controls/commands/seed.d.ts.map +1 -1
  59. package/dist/controls/commands/seed.js +72 -65
  60. package/dist/controls/commands/seed.js.map +1 -1
  61. package/dist/controls/configure-road.d.ts +2 -0
  62. package/dist/controls/configure-road.d.ts.map +1 -1
  63. package/dist/controls/configure-road.js +18 -14
  64. package/dist/controls/configure-road.js.map +1 -1
  65. package/dist/controls/enforce-entry-outcome.d.ts +2 -1
  66. package/dist/controls/enforce-entry-outcome.d.ts.map +1 -1
  67. package/dist/controls/enforce-entry-outcome.js +17 -15
  68. package/dist/controls/enforce-entry-outcome.js.map +1 -1
  69. package/dist/controls/enforce-points.d.ts +2 -0
  70. package/dist/controls/enforce-points.d.ts.map +1 -1
  71. package/dist/controls/enforce-points.js +4 -1
  72. package/dist/controls/enforce-points.js.map +1 -1
  73. package/dist/controls/enforce-report.d.ts.map +1 -1
  74. package/dist/controls/enforce-report.js +6 -1
  75. package/dist/controls/enforce-report.js.map +1 -1
  76. package/dist/controls/evidence-redact.d.ts.map +1 -1
  77. package/dist/controls/evidence-redact.js +11 -6
  78. package/dist/controls/evidence-redact.js.map +1 -1
  79. package/dist/controls/gates-declaration.d.ts.map +1 -1
  80. package/dist/controls/gates-declaration.js +6 -1
  81. package/dist/controls/gates-declaration.js.map +1 -1
  82. package/dist/controls/proof-copy-preparation.d.ts +33 -0
  83. package/dist/controls/proof-copy-preparation.d.ts.map +1 -0
  84. package/dist/controls/proof-copy-preparation.js +159 -0
  85. package/dist/controls/proof-copy-preparation.js.map +1 -0
  86. package/dist/controls/proof-copy-prepared-state.d.ts +33 -0
  87. package/dist/controls/proof-copy-prepared-state.d.ts.map +1 -0
  88. package/dist/controls/proof-copy-prepared-state.js +117 -0
  89. package/dist/controls/proof-copy-prepared-state.js.map +1 -0
  90. package/dist/controls/proof-copy-workspace.d.ts.map +1 -1
  91. package/dist/controls/proof-copy-workspace.js +17 -4
  92. package/dist/controls/proof-copy-workspace.js.map +1 -1
  93. package/dist/controls/proof-copy.d.ts +5 -0
  94. package/dist/controls/proof-copy.d.ts.map +1 -1
  95. package/dist/controls/proof-copy.js +17 -15
  96. package/dist/controls/proof-copy.js.map +1 -1
  97. package/dist/controls/proof-patch.d.ts +12 -0
  98. package/dist/controls/proof-patch.d.ts.map +1 -1
  99. package/dist/controls/proof-patch.js +28 -0
  100. package/dist/controls/proof-patch.js.map +1 -1
  101. package/dist/controls/proof-preparation-declaration.d.ts +15 -0
  102. package/dist/controls/proof-preparation-declaration.d.ts.map +1 -0
  103. package/dist/controls/proof-preparation-declaration.js +57 -0
  104. package/dist/controls/proof-preparation-declaration.js.map +1 -0
  105. package/dist/controls/proof-tools.d.ts +7 -4
  106. package/dist/controls/proof-tools.d.ts.map +1 -1
  107. package/dist/controls/proof-tools.js +1 -1
  108. package/dist/controls/proof-tools.js.map +1 -1
  109. package/dist/controls/register-drift.d.ts.map +1 -1
  110. package/dist/controls/register-drift.js +4 -3
  111. package/dist/controls/register-drift.js.map +1 -1
  112. package/dist/controls/register-evidence-rule.d.ts +2 -0
  113. package/dist/controls/register-evidence-rule.d.ts.map +1 -1
  114. package/dist/controls/register-evidence-rule.js +8 -7
  115. package/dist/controls/register-evidence-rule.js.map +1 -1
  116. package/dist/controls/register-rules.d.ts +2 -0
  117. package/dist/controls/register-rules.d.ts.map +1 -1
  118. package/dist/controls/register-rules.js.map +1 -1
  119. package/dist/controls/register-types.d.ts +2 -4
  120. package/dist/controls/register-types.d.ts.map +1 -1
  121. package/dist/controls/register-types.js.map +1 -1
  122. package/dist/controls/register.d.ts +2 -0
  123. package/dist/controls/register.d.ts.map +1 -1
  124. package/dist/controls/register.js +3 -1
  125. package/dist/controls/register.js.map +1 -1
  126. package/dist/controls/secret-scan.d.ts.map +1 -1
  127. package/dist/controls/secret-scan.js +7 -5
  128. package/dist/controls/secret-scan.js.map +1 -1
  129. package/dist/controls/secret-shapes.d.ts +7 -7
  130. package/dist/controls/secret-shapes.d.ts.map +1 -1
  131. package/dist/controls/secret-shapes.js +7 -18
  132. package/dist/controls/secret-shapes.js.map +1 -1
  133. package/dist/controls/shipped-parts.d.ts +89 -0
  134. package/dist/controls/shipped-parts.d.ts.map +1 -0
  135. package/dist/controls/shipped-parts.js +233 -0
  136. package/dist/controls/shipped-parts.js.map +1 -0
  137. package/dist/core/lisa-owned-hash-ledger.json +38 -0
  138. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  139. package/dist/core/upstream-evidence-manifest.json +90 -23
  140. package/dist/strategies/package-lisa-host-pins.d.ts +7 -12
  141. package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -1
  142. package/dist/strategies/package-lisa-host-pins.js +29 -30
  143. package/dist/strategies/package-lisa-host-pins.js.map +1 -1
  144. package/dist/strategies/package-lisa-range-intersection.d.ts +8 -0
  145. package/dist/strategies/package-lisa-range-intersection.d.ts.map +1 -0
  146. package/dist/strategies/package-lisa-range-intersection.js +73 -0
  147. package/dist/strategies/package-lisa-range-intersection.js.map +1 -0
  148. package/harper-fabric/package-lisa/package.lisa.json +3 -2
  149. package/package.json +4 -4
  150. package/phaser/package-lisa/package.lisa.json +3 -2
  151. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  152. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  153. package/plugins/lisa/.codex-plugin/skills/lisa-attest/SKILL.md +12 -2
  154. package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +27 -13
  155. package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/SKILL.md +22 -106
  156. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +37 -5
  157. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +9 -10
  158. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
  159. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
  160. package/plugins/lisa/hooks/block-direct-issue-create.sh +4 -1
  161. package/plugins/lisa/hooks/worktree-binding-guard.mjs +56 -1
  162. package/plugins/lisa/skills/lisa-attest/SKILL.md +12 -2
  163. package/plugins/lisa/skills/lisa-configure/SKILL.md +27 -13
  164. package/plugins/lisa/skills/lisa-github-read-issue/SKILL.md +22 -106
  165. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +37 -5
  166. package/plugins/lisa/skills/lisa-session-manager/SKILL.md +9 -10
  167. package/plugins/lisa/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
  168. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
  169. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +4 -1
  170. package/plugins/lisa-agy/plugin.json +1 -1
  171. package/plugins/lisa-agy/skills/lisa-attest/SKILL.md +12 -2
  172. package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +27 -13
  173. package/plugins/lisa-agy/skills/lisa-github-read-issue/SKILL.md +22 -106
  174. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +37 -5
  175. package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +9 -10
  176. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
  177. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
  178. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  179. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  180. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  181. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  182. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  183. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  184. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  185. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  186. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +4 -1
  187. package/plugins/lisa-copilot/hooks/worktree-binding-guard.mjs +56 -1
  188. package/plugins/lisa-copilot/skills/lisa-attest/SKILL.md +12 -2
  189. package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +27 -13
  190. package/plugins/lisa-copilot/skills/lisa-github-read-issue/SKILL.md +22 -106
  191. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +37 -5
  192. package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +9 -10
  193. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
  194. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
  195. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  196. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +4 -1
  197. package/plugins/lisa-cursor/hooks/worktree-binding-guard.mjs +56 -1
  198. package/plugins/lisa-cursor/skills/lisa-attest/SKILL.md +12 -2
  199. package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +27 -13
  200. package/plugins/lisa-cursor/skills/lisa-github-read-issue/SKILL.md +22 -106
  201. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +37 -5
  202. package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +9 -10
  203. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
  204. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
  205. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  206. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  207. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +4 -1
  208. package/plugins/lisa-devin/hooks/worktree-binding-guard.mjs +56 -1
  209. package/plugins/lisa-devin/skills/lisa-attest/SKILL.md +12 -2
  210. package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +27 -13
  211. package/plugins/lisa-devin/skills/lisa-github-read-issue/SKILL.md +22 -106
  212. package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +37 -5
  213. package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +9 -10
  214. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
  215. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
  216. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  217. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  218. package/plugins/lisa-expo-agy/plugin.json +1 -1
  219. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  220. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  221. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  222. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  223. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  224. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  225. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  226. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  227. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  228. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  229. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  230. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  231. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  232. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  233. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  234. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  235. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  236. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  237. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  238. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  239. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  240. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  241. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  242. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  243. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  244. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  245. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  246. package/plugins/lisa-rails-agy/plugin.json +1 -1
  247. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  248. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  249. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  250. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  251. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  252. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  253. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  254. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  255. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  256. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  257. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  258. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  259. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  260. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  261. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  262. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  263. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  264. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  265. package/plugins/src/base/hooks/block-direct-issue-create.sh +4 -1
  266. package/plugins/src/base/hooks/worktree-binding-guard.mjs +56 -1
  267. package/plugins/src/base/skills/lisa-attest/SKILL.md +12 -2
  268. package/plugins/src/base/skills/lisa-configure/SKILL.md +27 -13
  269. package/plugins/src/base/skills/lisa-github-read-issue/SKILL.md +22 -106
  270. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +37 -5
  271. package/plugins/src/base/skills/lisa-session-manager/SKILL.md +9 -10
  272. package/plugins/src/base/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
  273. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
  274. package/rails/copy-overwrite/scripts/check-nightly-e2e-health.mjs +5115 -0
  275. package/scripts/check-derived-artifacts.mjs +1 -0
  276. package/scripts/generate-nightly-e2e-guard-certificate.mjs +15 -1
  277. package/scripts/lib/phrase-tests/redact.mjs +3 -8
  278. package/scripts/two-channel-couplings.json +5 -3
  279. package/typescript/copy-overwrite/.prettierignore +2 -0
  280. package/typescript/copy-overwrite/scripts/lisa-typecheck.mjs +82 -0
  281. package/typescript/package-lisa/package.lisa.json +3 -2
@@ -0,0 +1,4 @@
1
+ // This file is managed by Lisa and IS replaced on each `lisa` run.
2
+ // Do not edit directly — durable changes belong upstream in Lisa.
3
+
4
+ export function redactPrivateKeyBlocks(text: string): string;
@@ -0,0 +1,59 @@
1
+ // This file is managed by Lisa and IS replaced on each `lisa` run.
2
+ // Do not edit directly — durable changes belong upstream in Lisa.
3
+
4
+ /** Find private-key boundaries without making the regex traverse their body. */
5
+ const BOUNDARY =
6
+ /-----BEGIN (?:[A-Z ]*PRIVATE KEY-----)?|-----END [A-Z ]*PRIVATE KEY-----/gu;
7
+ const BEGIN = "-----BEGIN ";
8
+ const PLACEHOLDER = "[REDACTED:PRIVATE_KEY]";
9
+ const KEY_PAYLOAD = /^[A-Za-z0-9+/]+={0,2}$/u;
10
+ const KEY_METADATA = /^(?:Proc-Type|DEK-Info):[ \t]*[\w,-]+$/u;
11
+
12
+ /**
13
+ * Consume PEM body lines still present when output was cut before the footer.
14
+ * @param {string} text Captured output.
15
+ * @param {number} start First character after the opening boundary.
16
+ * @returns {number} The end of the visible key material, or the given start.
17
+ */
18
+ function unterminatedKeyEnd(text, start) {
19
+ const rows = /(?:\r\n|\r|\n)([^\r\n]*)/y;
20
+ rows.lastIndex = start;
21
+ let end = start;
22
+ for (let row = rows.exec(text); row !== null; row = rows.exec(text)) {
23
+ const line = row[1].trim();
24
+ if (line === "") continue;
25
+ if (!KEY_PAYLOAD.test(line) && !KEY_METADATA.test(line)) break;
26
+ end = rows.lastIndex;
27
+ }
28
+ return end;
29
+ }
30
+
31
+ /**
32
+ * Replace each key up to the first closing line or the next block.
33
+ * When the footer is missing, consume the visible PEM body before any prose.
34
+ * @param {string} text Text which may contain key material.
35
+ * @returns {string} Text with private keys replaced.
36
+ */
37
+ export function redactPrivateKeyBlocks(text) {
38
+ /** @type {string[]} */
39
+ const output = [];
40
+ /** @type {{ start: number, body: number } | null} */
41
+ let key = null;
42
+ let offset = 0;
43
+ for (const match of text.matchAll(BOUNDARY)) {
44
+ const first = match[0].startsWith(BEGIN);
45
+ const end = match.index + match[0].length;
46
+ if (key !== null && (first || match.index > key.body)) {
47
+ output.push(text.slice(offset, key.start), PLACEHOLDER);
48
+ offset = first ? unterminatedKeyEnd(text, key.body) : end;
49
+ key = null;
50
+ }
51
+ if (first && match[0].length > BEGIN.length)
52
+ key = { start: match.index, body: end };
53
+ }
54
+ if (key !== null) {
55
+ output.push(text.slice(offset, key.start), PLACEHOLDER);
56
+ offset = unterminatedKeyEnd(text, key.body);
57
+ }
58
+ return output.length === 0 ? text : output.join("") + text.slice(offset);
59
+ }
@@ -3448,6 +3448,7 @@ export const KNOWN_CONFIG_KEYS = Object.freeze([
3448
3448
  "deploy",
3449
3449
  "quality",
3450
3450
  "gates",
3451
+ "controls",
3451
3452
  "policy",
3452
3453
  "intake",
3453
3454
  "monitor",
@@ -729,11 +729,14 @@ HTTP_CLIS = {"curl", "http", "httpie", "wget"}
729
729
  # and permitting something we demonstrably cannot read. Deliberately narrower
730
730
  # than "mentions a tracker CLI" so an ordinary unparseable command
731
731
  # (`echo 'it's fine`) still passes.
732
+ # The GitHub collection can create an issue. A complete numeric member path
733
+ # identifies an existing issue. Keep the fallback for other route forms and
734
+ # for independent creation signatures appearing alongside a member path.
732
735
  UNPARSEABLE_CREATION = re.compile(
733
736
  r"\b(?:gh|jira|linear)\b[^\n]*?\bissue\b[^\n]*?\bcreate\b"
734
737
  r"|\bacli\b[^\n]*?\b(?:workitem|issue)s?\b[^\n]*?\bcreate\b"
735
738
  r"|\bcreateIssue\b|\bissueCreate\b"
736
- r"|repos/[^/\s]+/[^/\s]+/issues"
739
+ r"|repos/[^/\s]+/[^/\s]+/issues\b(?!/[0-9]+(?:$|[\s'\"`.,);?#]))"
737
740
  r"|atlassian\.net/rest/api/[^/\s]+/issue",
738
741
  re.IGNORECASE,
739
742
  )
@@ -442,6 +442,56 @@ function applyCd(current, target) {
442
442
  }
443
443
  }
444
444
 
445
+ const PYTHON_STRING = String.raw`(?:"[^"\\]*"|'[^'\\]*')`;
446
+ const PYTHON_BYTES = `b${PYTHON_STRING}`;
447
+ const PYTHON_NAME = "[A-Za-z_][A-Za-z0-9_]*";
448
+ const PYTHON_BYTES_ASSIGNMENT = new RegExp(
449
+ String.raw`^(${PYTHON_NAME})[ \t]*=[ \t]*${PYTHON_BYTES}$`,
450
+ "u"
451
+ );
452
+ const PYTHON_BYTES_COMPARISON = new RegExp(
453
+ String.raw`^assert[ \t]+(${PYTHON_NAME})\.replace\([ \t]*${PYTHON_BYTES}[ \t]*,[ \t]*${PYTHON_BYTES}[ \t]*\)[ \t]*==[ \t]*(${PYTHON_NAME})$`,
454
+ "u"
455
+ );
456
+ const PYTHON_LITERAL_GIT_CALL = new RegExp(
457
+ String.raw`^subprocess\.check_output\(\[[ \t]*(?:"git"|'git')(?:[ \t]*,[ \t]*${PYTHON_STRING})*[ \t]*\](?:[ \t]*,[ \t]*cwd[ \t]*=[ \t]*b?${PYTHON_STRING})?[ \t]*\)$`,
458
+ "u"
459
+ );
460
+
461
+ /**
462
+ * Ignore the literals of a bounded Python source-byte comparison. The script
463
+ * can assign two bytes values and compare one replacement with the other.
464
+ * Optional literal Git subprocess calls remain visible to the path scanner.
465
+ * Any additional Python statement keeps the full source under inspection.
466
+ * @param {string} text - The bounded source read from the script
467
+ * @returns {string} The source to inspect for directory paths
468
+ */
469
+ function pythonSourceForPathScan(text) {
470
+ const lines = text
471
+ .split(/\r\n?|\n/u)
472
+ .map(line => line.trim())
473
+ .filter(line => line !== "" && !line.startsWith("#"));
474
+ const importsSubprocess = lines[0] === "import subprocess";
475
+ const [first, second, assertion, ...calls] = lines.slice(
476
+ importsSubprocess ? 1 : 0
477
+ );
478
+ const before = PYTHON_BYTES_ASSIGNMENT.exec(first ?? "")?.[1];
479
+ const after = PYTHON_BYTES_ASSIGNMENT.exec(second ?? "")?.[1];
480
+ const compared = PYTHON_BYTES_COMPARISON.exec(assertion ?? "");
481
+ if (
482
+ before === undefined ||
483
+ after === undefined ||
484
+ before === after ||
485
+ compared?.[1] !== before ||
486
+ compared[2] !== after ||
487
+ (calls.length > 0 && !importsSubprocess) ||
488
+ !calls.every(line => PYTHON_LITERAL_GIT_CALL.test(line))
489
+ ) {
490
+ return text;
491
+ }
492
+ return calls.join("\n");
493
+ }
494
+
445
495
  /**
446
496
  * The foreign worktree an executed script reaches, or null.
447
497
  *
@@ -532,7 +582,12 @@ function scriptReachingForeignTree(payload, bound) {
532
582
  // Not a readable file: nothing was executed that this can read.
533
583
  continue;
534
584
  }
535
- const foreign = foreignTreeIn(text, bound, cwd);
585
+ const program = tokenise(segment)[0]?.split("/").at(-1);
586
+ const inspected =
587
+ program === "python" || program === "python3"
588
+ ? pythonSourceForPathScan(text)
589
+ : text;
590
+ const foreign = foreignTreeIn(inspected, bound, cwd);
536
591
  if (foreign) return { script: path, foreign };
537
592
  }
538
593
  return null;
@@ -2299,12 +2299,13 @@ function isRunnableFile(path) {
2299
2299
  * supervisor and blocks there. Neither is a pass.
2300
2300
  * @param {string} program The first item of a part's argument list.
2301
2301
  * @param {string} cwd The folder the command starts in.
2302
+ * @param {string} [searchPath] The command environment’s executable search path.
2302
2303
  * @returns {string|null} Why the program cannot be started, finishing
2303
2304
  * `NOTHING_RAN`, or null when a runnable file answers to that name.
2304
2305
  */
2305
- function programProblem(program, cwd) {
2306
+ function programProblem(program, cwd, searchPath = DEFAULT_SEARCH_PATH) {
2306
2307
  if (!program.includes("/")) {
2307
- const found = (process.env.PATH ?? DEFAULT_SEARCH_PATH)
2308
+ const found = searchPath
2308
2309
  .split(delimiter)
2309
2310
  .some(folder => isRunnableFile(resolve(cwd, folder, program)));
2310
2311
  return found ? null : programMissing(program);
@@ -2347,12 +2348,10 @@ function programMissing(program) {
2347
2348
  * supervisor's own messages still reach this process's error output.
2348
2349
  * @param {readonly string[]} argv The program and its arguments.
2349
2350
  * @param {string} cwd The folder to start in.
2350
- * @param {{capture: boolean, quiet: boolean, budgetMs: number}} how Whether to
2351
- * keep a diagnostic tail of the output, whether to show nothing while the
2352
- * command runs, and the deadline.
2351
+ * @param {{capture: boolean, quiet: boolean, budgetMs: number, env?: NodeJS.ProcessEnv}} how How to supervise and capture the command.
2353
2352
  * @returns {import("node:child_process").SpawnSyncReturns<string>} Result.
2354
2353
  */
2355
- function superviseArgv(argv, cwd, { capture, quiet, budgetMs }) {
2354
+ function superviseArgv(argv, cwd, { capture, quiet, budgetMs, env }) {
2356
2355
  const watch = isWatchablePid(LAUNCH_PARENT_PID)
2357
2356
  ? [`--watch-pid=${LAUNCH_PARENT_PID}`]
2358
2357
  : [];
@@ -2373,6 +2372,7 @@ function superviseArgv(argv, cwd, { capture, quiet, budgetMs }) {
2373
2372
  shell: false,
2374
2373
  stdio: capture ? [shown, shown, "inherit", "pipe"] : "inherit",
2375
2374
  timeout: budgetMs + PROCESS_TREE_REAP_BUDGET_MS,
2375
+ ...(env === undefined ? {} : { env }),
2376
2376
  }
2377
2377
  );
2378
2378
  }
@@ -2422,19 +2422,20 @@ function partBudget(timeoutMs) {
2422
2422
  * reads from nothing and what it prints is collected instead of shown.
2423
2423
  * @param {readonly string[]} argv The program and its arguments.
2424
2424
  * @param {string} cwd The folder to start in.
2425
- * @param {{quiet: boolean, budgetMs: number}} how Whether to collect the
2425
+ * @param {{quiet: boolean, budgetMs: number, env?: NodeJS.ProcessEnv}} how Whether to collect the
2426
2426
  * output instead of showing it, and the deadline.
2427
2427
  * @returns {{code: number|null, output: string|null, signal?: string, notStarted?: string}}
2428
2428
  * Exit code; null with `notStarted` when the program could not be started.
2429
2429
  * @throws {Error} When the program was killed at its deadline.
2430
2430
  */
2431
- function startArgv(argv, cwd, { quiet, budgetMs }) {
2431
+ function startArgv(argv, cwd, { quiet, budgetMs, env }) {
2432
2432
  const [program, ...rest] = argv;
2433
2433
  const child = boundedSpawnSync(program, rest, {
2434
2434
  cwd,
2435
2435
  shell: false,
2436
2436
  stdio: quiet ? ["ignore", "pipe", "pipe"] : "inherit",
2437
2437
  timeout: budgetMs,
2438
+ ...(env === undefined ? {} : { env }),
2438
2439
  // Only a quiet start collects anything, and a check that prints a great
2439
2440
  // deal must still be read rather than cut off as if it could not start.
2440
2441
  ...(quiet ? { maxBuffer: QUIET_OUTPUT_BYTES } : {}),
@@ -2470,8 +2471,8 @@ function startArgv(argv, cwd, { quiet, budgetMs }) {
2470
2471
  * It starts in `cwd` and nowhere else, so `cwd` is required: a part's command
2471
2472
  * must never run in whatever folder the runner happened to be started in.
2472
2473
  *
2473
- * The program gets this process's environment unchanged, as every gate
2474
- * command does.
2474
+ * Gate commands inherit this process's environment. Proof preparation can
2475
+ * supply a copy without repository-selection variables from Git hooks.
2475
2476
  *
2476
2477
  * ## What it refuses, and how
2477
2478
  *
@@ -2510,6 +2511,7 @@ function startArgv(argv, cwd, { quiet, budgetMs }) {
2510
2511
  * from 1 to thirty minutes. Thirty minutes when left out.
2511
2512
  * @param {boolean} [options.quiet] Show nothing while the command runs, and
2512
2513
  * always keep what it printed.
2514
+ * @param {NodeJS.ProcessEnv} [options.env] Environment for this start.
2513
2515
  * @returns {{code: number|null, output: string|null, signal?: string, notStarted?: string, timedOut?: true}}
2514
2516
  * OS status and diagnostic tail, or why nothing started.
2515
2517
  * @throws {TypeError} When `argv` is not a list of text naming a program,
@@ -2517,7 +2519,7 @@ function startArgv(argv, cwd, { quiet, budgetMs }) {
2517
2519
  */
2518
2520
  export function spawnArgv(
2519
2521
  argv,
2520
- { cwd, platform = process.platform, timeoutMs, quiet = false } = {}
2522
+ { cwd, platform = process.platform, timeoutMs, quiet = false, env } = {}
2521
2523
  ) {
2522
2524
  const problem = argvProblem(argv);
2523
2525
  if (problem !== null) {
@@ -2555,7 +2557,7 @@ export function spawnArgv(
2555
2557
  : answer;
2556
2558
  if (platform === "win32") {
2557
2559
  try {
2558
- return startArgv(argv, cwd, { quiet, budgetMs });
2560
+ return startArgv(argv, cwd, { quiet, budgetMs, env });
2559
2561
  } catch (error) {
2560
2562
  // A gate keeps what it always had here. Only a start that was given a
2561
2563
  // limit of its own is answered instead.
@@ -2563,11 +2565,12 @@ export function spawnArgv(
2563
2565
  return atDeadline(killedOrRethrow(error));
2564
2566
  }
2565
2567
  }
2566
- const notStarted = programProblem(argv[0], cwd);
2568
+ const searchPath = env === undefined ? process.env.PATH : env.PATH;
2569
+ const notStarted = programProblem(argv[0], cwd, searchPath);
2567
2570
  if (notStarted !== null) return { code: null, output: null, notStarted };
2568
2571
  const capture = quiet || process.env.LISA_GATES_CAPTURE !== "0";
2569
2572
  try {
2570
- const child = superviseArgv(argv, cwd, { capture, quiet, budgetMs });
2573
+ const child = superviseArgv(argv, cwd, { capture, quiet, budgetMs, env });
2571
2574
  // A non-timeout `spawnSync` failure arrives on the result, and it means
2572
2575
  // the supervisor itself never ran: nothing checked this part.
2573
2576
  if (child.error) return { code: null, output: null };
@@ -1580,7 +1580,7 @@
1580
1580
  "children": []
1581
1581
  },
1582
1582
  "lisa-gates.mjs": {
1583
- "sha256": "5c44bf2bb003249a62c443ef594509f7b6828be12157c9aa90f90d3acad13636",
1583
+ "sha256": "302fb2a3035f52dc9915785327148243fadf2ec3c324be862a177550a02aa3ca",
1584
1584
  "staticImports": [
1585
1585
  "lib/gate-pass-cache.mjs",
1586
1586
  "lib/invoked-as-script.mjs",
@@ -1665,7 +1665,7 @@
1665
1665
  "children": []
1666
1666
  },
1667
1667
  "lisa-run-gates.mjs": {
1668
- "sha256": "c8d581ffa7c7a34b1d4d5c7ac8618f47af9a705fe14cae6b8ce3bba158a1405a",
1668
+ "sha256": "9e79d35cf08f6cac68c38cbdb6e2cf52eb1fea0021b77114026e04519232aed7",
1669
1669
  "staticImports": [
1670
1670
  "lib/affected-tests.mjs",
1671
1671
  "lib/bounded-spawn.mjs",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "force": {
3
3
  "scripts": {
4
- "build": "node scripts/lib/worktree-dependencies.mjs && tsc --noEmit",
4
+ "build": "node scripts/lib/worktree-dependencies.mjs && node scripts/lisa-typecheck.mjs",
5
5
  "cdk": "cdk",
6
6
  "lint:fix": "node scripts/lib/worktree-dependencies.mjs && oxlint --fix && eslint . --fix",
7
7
  "lint:lisa": "node scripts/lib/worktree-dependencies.mjs && oxlint && eslint . --quiet",
@@ -2,7 +2,8 @@ import { type JsonObject } from "../sync/json-path.js";
2
2
  /**
3
3
  * Read committed-plus-local Lisa config without following unsafe files.
4
4
  * @param projectRoot - Project root
5
+ * @param strict - Refuse a present configuration with a non-object root.
5
6
  * @returns Merged config with the local overlay winning per key
6
7
  */
7
- export declare function readConfinedMergedConfig(projectRoot: string): Promise<JsonObject>;
8
+ export declare function readConfinedMergedConfig(projectRoot: string, strict?: boolean): Promise<JsonObject>;
8
9
  //# sourceMappingURL=confined-project-read.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"confined-project-read.d.ts","sourceRoot":"","sources":["../../src/cli/confined-project-read.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AA+BrE;;;;GAIG;AACH,wBAAsB,wBAAwB,CAC5C,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,UAAU,CAAC,CASrB"}
1
+ {"version":3,"file":"confined-project-read.d.ts","sourceRoot":"","sources":["../../src/cli/confined-project-read.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AA6CrE;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,WAAW,EAAE,MAAM,EACnB,MAAM,UAAQ,GACb,OAAO,CAAC,UAAU,CAAC,CASrB"}
@@ -17,21 +17,38 @@ async function readConfinedProjectText(projectRoot, relativePath) {
17
17
  * Read and parse one confined JSON file.
18
18
  * @param projectRoot - Project root
19
19
  * @param relativePath - Strict project-relative JSON path
20
+ * @param strict - Require an object without exposing malformed source text.
20
21
  * @returns Parsed JSON, or undefined when absent
21
22
  */
22
- async function readConfinedProjectJson(projectRoot, relativePath) {
23
+ async function readConfinedProjectJson(projectRoot, relativePath, strict) {
23
24
  const text = await readConfinedProjectText(projectRoot, relativePath);
24
- return text === undefined ? undefined : JSON.parse(text);
25
+ if (text === undefined)
26
+ return undefined;
27
+ try {
28
+ const value = JSON.parse(text);
29
+ if (strict && !isJsonObject(value)) {
30
+ throw new TypeError(`${relativePath} must contain a JSON object`);
31
+ }
32
+ return value;
33
+ }
34
+ catch (error) {
35
+ if (!strict || !(error instanceof SyntaxError))
36
+ throw error;
37
+ throw new Error(`Could not parse ${relativePath} as JSON`, {
38
+ cause: error,
39
+ });
40
+ }
25
41
  }
26
42
  /**
27
43
  * Read committed-plus-local Lisa config without following unsafe files.
28
44
  * @param projectRoot - Project root
45
+ * @param strict - Refuse a present configuration with a non-object root.
29
46
  * @returns Merged config with the local overlay winning per key
30
47
  */
31
- export async function readConfinedMergedConfig(projectRoot) {
48
+ export async function readConfinedMergedConfig(projectRoot, strict = false) {
32
49
  const [committed, local] = await Promise.all([
33
- readConfinedProjectJson(projectRoot, ".lisa.config.json"),
34
- readConfinedProjectJson(projectRoot, ".lisa.config.local.json"),
50
+ readConfinedProjectJson(projectRoot, ".lisa.config.json", strict),
51
+ readConfinedProjectJson(projectRoot, ".lisa.config.local.json", strict),
35
52
  ]);
36
53
  return deepMerge(isJsonObject(committed) ? committed : {}, isJsonObject(local) ? local : {});
37
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"confined-project-read.js","sourceRoot":"","sources":["../../src/cli/confined-project-read.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,OAAO,E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CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3C,uBAAuB,CAAC,WAAW,EAAE,mBAAmB,EAAE,MAAM,CAAC;QACjE,uBAAuB,CAAC,WAAW,EAAE,yBAAyB,EAAE,MAAM,CAAC;KACxE,CAAC,CAAC;IACH,OAAO,SAAS,CACd,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EACxC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CACnB,CAAC;AAClB,CAAC"}
@@ -8,7 +8,8 @@
8
8
  * @param cwd - Working directory
9
9
  * @param timeoutMs - Child-process timeout
10
10
  * @param signal - Probe cancellation signal
11
+ * @param maxBuffer - Optional output bound for paginated reads.
11
12
  * @returns Trimmed stdout
12
13
  */
13
- export declare function runGh(args: readonly string[], cwd: string, timeoutMs: number, signal: AbortSignal): Promise<string>;
14
+ export declare function runGh(args: readonly string[], cwd: string, timeoutMs: number, signal: AbortSignal, maxBuffer?: number): Promise<string>;
14
15
  //# sourceMappingURL=gh-cli.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gh-cli.d.ts","sourceRoot":"","sources":["../../src/cli/gh-cli.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,MAAM,CAAC,CAwBjB"}
1
+ {"version":3,"file":"gh-cli.d.ts","sourceRoot":"","sources":["../../src/cli/gh-cli.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,CAyBjB"}
@@ -14,9 +14,10 @@ import { spawnTarget } from "../utils/resolve-executable.js";
14
14
  * @param cwd - Working directory
15
15
  * @param timeoutMs - Child-process timeout
16
16
  * @param signal - Probe cancellation signal
17
+ * @param maxBuffer - Optional output bound for paginated reads.
17
18
  * @returns Trimmed stdout
18
19
  */
19
- export function runGh(args, cwd, timeoutMs, signal) {
20
+ export function runGh(args, cwd, timeoutMs, signal, maxBuffer) {
20
21
  return new Promise((resolve, reject) => {
21
22
  // Throws ExecutableNotFoundError (code ENOENT) when gh is not installed;
22
23
  // inside the executor that rejects, exactly as execFile's ENOENT did.
@@ -25,11 +26,12 @@ export function runGh(args, cwd, timeoutMs, signal) {
25
26
  cwd,
26
27
  signal,
27
28
  timeout: timeoutMs,
29
+ ...(maxBuffer === undefined ? {} : { maxBuffer }),
28
30
  encoding: "utf8",
29
31
  windowsVerbatimArguments: gh.windowsVerbatimArguments,
30
- }, (error, stdout) => {
32
+ }, (error, stdout, stderr) => {
31
33
  if (error !== null) {
32
- reject(error);
34
+ reject(Object.assign(error, { stderr }));
33
35
  return;
34
36
  }
35
37
  resolve(stdout.trim());
@@ -1 +1 @@
1
- {"version":3,"file":"gh-cli.js","sourceRoot":"","sources":["../../src/cli/gh-cli.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,KAAK,CACnB,IAAuB,EACvB,GAAW,EACX,SAAiB,EACjB,MAAmB;IAEnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,yEAAyE;QACzE,sEAAsE;QACtE,MAAM,EAAE,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACnC,QAAQ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AE,MAAM,EAAE,MAAM,EAAE,EAAE;YACxB,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;gBACzC,OAAO;YACT,CAAC;YACD,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QACzB,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,62 @@
1
+ /** Read repository context and separately resolve configured GitHub Projects metadata. */
2
+ import type { Command } from "commander";
3
+ import { type GitHubRead } from "./github-reader-wire.js";
4
+ /**
5
+ * Read the issue bundle without requesting any unconfigured services.
6
+ * @param root - Current Lisa checkout.
7
+ * @param input - Issue reference accepted by the GitHub reader.
8
+ * @param read - Native read function, injectable for request-selection tests.
9
+ * @returns Repository-native context and separately qualified Project metadata.
10
+ */
11
+ export declare function readGitHubIssue(root: string, input: string, read?: GitHubRead): Promise<{
12
+ graph: {
13
+ parent: import("../sync/json-path.js").JsonObject | null;
14
+ children: import("../sync/json-path.js").JsonObject[];
15
+ warning?: never;
16
+ } | {
17
+ warning: string;
18
+ parent?: never;
19
+ children?: never;
20
+ };
21
+ timeline: {
22
+ events: import("../sync/json-path.js").JsonObject[];
23
+ warning?: never;
24
+ } | {
25
+ events: never[];
26
+ warning: string;
27
+ };
28
+ pullRequests: ({
29
+ repo: string;
30
+ metadata: import("../sync/json-path.js").JsonObject;
31
+ reviews: import("../sync/json-path.js").JsonObject[];
32
+ threads: {
33
+ comments: import("../sync/json-path.js").JsonObject[];
34
+ }[];
35
+ } | {
36
+ repo: string;
37
+ number: number;
38
+ warning: string;
39
+ })[];
40
+ ref: string;
41
+ issue: import("../sync/json-path.js").JsonObject;
42
+ comments: import("../sync/json-path.js").JsonObject[];
43
+ project: {
44
+ readonly status: "unconfigured";
45
+ readonly metadata?: never;
46
+ warning?: never;
47
+ } | {
48
+ readonly status: "verified";
49
+ readonly metadata: import("../sync/json-path.js").JsonObject;
50
+ warning?: never;
51
+ } | {
52
+ readonly status: "unverified";
53
+ readonly warning: string;
54
+ readonly metadata?: never;
55
+ };
56
+ }>;
57
+ /**
58
+ * Register the exact read-only command used by generated GitHub skills.
59
+ * @param program - The Lisa CLI program.
60
+ */
61
+ export declare function addGitHubReadIssueCommand(program: Command): void;
62
+ //# sourceMappingURL=github-read-issue-cmd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-read-issue-cmd.d.ts","sourceRoot":"","sources":["../../src/cli/github-read-issue-cmd.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAkGjC;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,UAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkB1C;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAchE"}
@@ -0,0 +1,121 @@
1
+ import { readGitHubIssueRelationships } from "./github-reader-relationships.js";
2
+ import { resolveGitHubReaderTarget, } from "./github-reader-target.js";
3
+ import { githubReadError, graphql, nativeGitHubRead, responseObject, restPages, } from "./github-reader-wire.js";
4
+ const ISSUE_FIELDS = "number,title,body,state,stateReason,author,assignees,labels,milestone,createdAt,updatedAt,closedAt,url,reactionGroups";
5
+ /**
6
+ * Query only the configured Project and keep service failures separate.
7
+ * @param read - Native GitHub reader.
8
+ * @param project - Validated effective Project settings.
9
+ * @returns Metadata with an explicit evidence status.
10
+ */
11
+ async function readProject(read, project) {
12
+ if (project === undefined)
13
+ return { status: "unconfigured" };
14
+ const query = `query($login:String!,$number:Int!) {
15
+ ${project.kind}(login:$login) { login projectV2(number:$number) { id title number url } }
16
+ }`;
17
+ try {
18
+ const [page] = await graphql(read, query, {
19
+ login: project.login,
20
+ number: project.number,
21
+ });
22
+ const owner = responseObject(page?.[project.kind], "the configured Project owner");
23
+ const metadata = responseObject(owner.projectV2, "the configured Project metadata");
24
+ if (typeof owner.login !== "string" ||
25
+ owner.login.toLowerCase() !== project.login.toLowerCase() ||
26
+ metadata.number !== project.number ||
27
+ typeof metadata.id !== "string" ||
28
+ !metadata.id ||
29
+ typeof metadata.title !== "string" ||
30
+ typeof metadata.url !== "string") {
31
+ throw new Error("GitHub did not verify the configured Project identity");
32
+ }
33
+ return { status: "verified", metadata };
34
+ }
35
+ catch (error) {
36
+ const message = githubReadError(error);
37
+ if (project.required)
38
+ throw new Error(`Required GitHub Project could not be read. ${message}`, {
39
+ cause: error,
40
+ });
41
+ return { status: "unverified", warning: message };
42
+ }
43
+ }
44
+ /**
45
+ * Read comments through all native pages and prove the number fetched.
46
+ * @param read - Native GitHub reader.
47
+ * @param route - Selected issue REST route.
48
+ * @returns Complete native comments in provider order.
49
+ */
50
+ async function issueComments(read, route) {
51
+ const comments = await restPages(read, `${route}/comments`);
52
+ const total = await read(["api", route, "--jq", ".comments"]);
53
+ if (total !== comments.length) {
54
+ throw new Error(`GitHub issue comments are incomplete. Read ${comments.length} of ${String(total)}`);
55
+ }
56
+ return comments;
57
+ }
58
+ /**
59
+ * Read core metadata through the same native issue selection on every path.
60
+ * @param read - Native GitHub reader.
61
+ * @param ref - Selected repository and issue number.
62
+ * @returns Native issue metadata.
63
+ */
64
+ async function readIssue(read, ref) {
65
+ const repo = `${ref.owner}/${ref.repo}`;
66
+ const view = await read([
67
+ "issue",
68
+ "view",
69
+ String(ref.number),
70
+ "--repo",
71
+ repo,
72
+ "--json",
73
+ ISSUE_FIELDS,
74
+ ]);
75
+ const issue = responseObject(view, "issue metadata");
76
+ if (issue.number !== ref.number ||
77
+ typeof issue.body !== "string" ||
78
+ typeof issue.title !== "string")
79
+ throw new Error("GitHub did not verify the selected issue identity");
80
+ return issue;
81
+ }
82
+ /**
83
+ * Read the issue bundle without requesting any unconfigured services.
84
+ * @param root - Current Lisa checkout.
85
+ * @param input - Issue reference accepted by the GitHub reader.
86
+ * @param read - Native read function, injectable for request-selection tests.
87
+ * @returns Repository-native context and separately qualified Project metadata.
88
+ */
89
+ export async function readGitHubIssue(root, input, read = nativeGitHubRead(root)) {
90
+ const target = await resolveGitHubReaderTarget(root, input);
91
+ const { owner, repo, number } = target.issue;
92
+ await read(["auth", "status"]);
93
+ const issue = await readIssue(read, target.issue);
94
+ const project = await readProject(read, target.project);
95
+ const [comments, relationships] = await Promise.all([
96
+ issueComments(read, `repos/${owner}/${repo}/issues/${number}`),
97
+ readGitHubIssueRelationships(read, target.issue),
98
+ ]);
99
+ return {
100
+ ref: `${owner}/${repo}#${number}`,
101
+ issue,
102
+ comments,
103
+ project,
104
+ ...relationships,
105
+ };
106
+ }
107
+ /**
108
+ * Register the exact read-only command used by generated GitHub skills.
109
+ * @param program - The Lisa CLI program.
110
+ */
111
+ export function addGitHubReadIssueCommand(program) {
112
+ program
113
+ .command("github-read-issue")
114
+ .description("Read GitHub issue context and any configured Project metadata")
115
+ .argument("<issue>", "Issue number, owner/repo#number, or a GitHub issue URL")
116
+ .action(async (issue) => {
117
+ const result = await readGitHubIssue(process.cwd(), issue);
118
+ console.log(JSON.stringify(result));
119
+ });
120
+ }
121
+ //# sourceMappingURL=github-read-issue-cmd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-read-issue-cmd.js","sourceRoot":"","sources":["../../src/cli/github-read-issue-cmd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EACL,yBAAyB,GAG1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,eAAe,EACf,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,SAAS,GAEV,MAAM,yBAAyB,CAAC;AAEjC,MA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