@codyswann/lisa 4.107.1 → 4.107.2

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 (374) hide show
  1. package/all/copy-overwrite/scripts/lisa-plugin-registration-notice.mjs +190 -0
  2. package/all/copy-overwrite/scripts/lisa-postinstall.mjs +6 -2
  3. package/all/merge/.claude/settings.json +9 -0
  4. package/dist/cli/{ui-ci-quality-jobs-parse.d.ts → ci-workflow-inputs.d.ts} +7 -2
  5. package/dist/cli/ci-workflow-inputs.d.ts.map +1 -0
  6. package/dist/cli/{ui-ci-quality-jobs-parse.js → ci-workflow-inputs.js} +2 -2
  7. package/dist/cli/ci-workflow-inputs.js.map +1 -0
  8. package/dist/cli/{ui-confined-project-read.d.ts → confined-project-read.d.ts} +1 -1
  9. package/dist/cli/confined-project-read.d.ts.map +1 -0
  10. package/dist/cli/{ui-confined-project-read.js → confined-project-read.js} +2 -2
  11. package/dist/cli/confined-project-read.js.map +1 -0
  12. package/dist/cli/detected-stacks.d.ts +10 -0
  13. package/dist/cli/detected-stacks.d.ts.map +1 -0
  14. package/dist/cli/{ui-detected-stacks.js → detected-stacks.js} +8 -27
  15. package/dist/cli/detected-stacks.js.map +1 -0
  16. package/dist/cli/doctor-apply-freshness.d.ts +2 -2
  17. package/dist/cli/doctor-apply-freshness.js +2 -2
  18. package/dist/cli/doctor-coderabbit-labeling.js +1 -1
  19. package/dist/cli/doctor-coderabbit-labeling.js.map +1 -1
  20. package/dist/cli/doctor-coderabbit.js +1 -1
  21. package/dist/cli/doctor-coderabbit.js.map +1 -1
  22. package/dist/cli/doctor-instruction-files.d.ts +11 -0
  23. package/dist/cli/doctor-instruction-files.d.ts.map +1 -0
  24. package/dist/cli/doctor-instruction-files.js +57 -0
  25. package/dist/cli/doctor-instruction-files.js.map +1 -0
  26. package/dist/cli/doctor-plugin-registration.d.ts +25 -0
  27. package/dist/cli/doctor-plugin-registration.d.ts.map +1 -0
  28. package/dist/cli/doctor-plugin-registration.js +63 -0
  29. package/dist/cli/doctor-plugin-registration.js.map +1 -0
  30. package/dist/cli/doctor.d.ts +5 -2
  31. package/dist/cli/doctor.d.ts.map +1 -1
  32. package/dist/cli/doctor.js +11 -56
  33. package/dist/cli/doctor.js.map +1 -1
  34. package/dist/cli/gate-report-ruleset.js +1 -1
  35. package/dist/cli/gate-report-ruleset.js.map +1 -1
  36. package/dist/cli/gate-report-skip-jobs.js +1 -1
  37. package/dist/cli/gate-report-skip-jobs.js.map +1 -1
  38. package/dist/cli/gate-report-types.d.ts +2 -3
  39. package/dist/cli/gate-report-types.d.ts.map +1 -1
  40. package/dist/cli/gh-cli.d.ts +14 -0
  41. package/dist/cli/gh-cli.d.ts.map +1 -0
  42. package/dist/cli/gh-cli.js +32 -0
  43. package/dist/cli/gh-cli.js.map +1 -0
  44. package/dist/cli/index.d.ts +0 -3
  45. package/dist/cli/index.d.ts.map +1 -1
  46. package/dist/cli/index.js +2 -3
  47. package/dist/cli/index.js.map +1 -1
  48. package/dist/cli/removed-ui-cmd.d.ts +18 -0
  49. package/dist/cli/removed-ui-cmd.d.ts.map +1 -0
  50. package/dist/cli/removed-ui-cmd.js +17 -0
  51. package/dist/cli/removed-ui-cmd.js.map +1 -0
  52. package/dist/core/bootstrap-environment.d.ts.map +1 -1
  53. package/dist/core/bootstrap-environment.js +6 -2
  54. package/dist/core/bootstrap-environment.js.map +1 -1
  55. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  56. package/dist/core/lisa-owned-hash-ledger.js +12 -0
  57. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  58. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  59. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  60. package/dist/core/upstream-evidence-manifest.js +36 -97
  61. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  62. package/dist/devin/enforcement-fallback-installer.d.ts +0 -8
  63. package/dist/devin/enforcement-fallback-installer.d.ts.map +1 -1
  64. package/dist/devin/enforcement-fallback-installer.js +0 -26
  65. package/dist/devin/enforcement-fallback-installer.js.map +1 -1
  66. package/dist/health/governance-probes.d.ts.map +1 -1
  67. package/dist/health/governance-probes.js +8 -1
  68. package/dist/health/governance-probes.js.map +1 -1
  69. package/dist/health/plugin-inspection.d.ts +6 -1
  70. package/dist/health/plugin-inspection.d.ts.map +1 -1
  71. package/dist/health/plugin-inspection.js +10 -3
  72. package/dist/health/plugin-inspection.js.map +1 -1
  73. package/dist/health/ruleset-reach-inspection.d.ts.map +1 -1
  74. package/dist/health/ruleset-reach-inspection.js +2 -7
  75. package/dist/health/ruleset-reach-inspection.js.map +1 -1
  76. package/dist/standards/capture.d.ts +1 -1
  77. package/dist/standards/capture.d.ts.map +1 -1
  78. package/dist/standards/capture.js +2 -2
  79. package/dist/standards/capture.js.map +1 -1
  80. package/dist/standards/readiness.d.ts +9 -2
  81. package/dist/standards/readiness.d.ts.map +1 -1
  82. package/dist/standards/readiness.js +12 -3
  83. package/dist/standards/readiness.js.map +1 -1
  84. package/dist/sync/json-path.d.ts +0 -10
  85. package/dist/sync/json-path.d.ts.map +1 -1
  86. package/dist/sync/json-path.js +0 -14
  87. package/dist/sync/json-path.js.map +1 -1
  88. package/dist/sync/sync-population.d.ts +0 -6
  89. package/dist/sync/sync-population.d.ts.map +1 -1
  90. package/dist/sync/sync-population.js +0 -8
  91. package/dist/sync/sync-population.js.map +1 -1
  92. package/dist/utils/marketplace-manifest.d.ts.map +1 -1
  93. package/dist/utils/marketplace-manifest.js +2 -3
  94. package/dist/utils/marketplace-manifest.js.map +1 -1
  95. package/package.json +4 -5
  96. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  98. package/plugins/lisa/.codex-plugin/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
  99. package/plugins/lisa/.codex-plugin/skills/lisa-setup-automations/SKILL.md +1 -1
  100. package/plugins/lisa/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
  101. package/plugins/lisa/skills/lisa-setup-automations/SKILL.md +1 -1
  102. package/plugins/lisa-agy/plugin.json +1 -1
  103. package/plugins/lisa-agy/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
  104. package/plugins/lisa-agy/skills/lisa-setup-automations/SKILL.md +1 -1
  105. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  107. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  108. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  112. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  113. package/plugins/lisa-copilot/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
  114. package/plugins/lisa-copilot/skills/lisa-setup-automations/SKILL.md +1 -1
  115. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-cursor/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
  117. package/plugins/lisa-cursor/skills/lisa-setup-automations/SKILL.md +1 -1
  118. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  119. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  120. package/plugins/lisa-devin/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
  121. package/plugins/lisa-devin/skills/lisa-setup-automations/SKILL.md +1 -1
  122. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  123. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  124. package/plugins/lisa-expo-agy/plugin.json +1 -1
  125. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  126. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  127. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  128. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  129. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  130. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  131. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  132. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  133. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  134. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  135. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  136. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  137. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  138. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  139. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  140. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  141. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  142. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  143. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  144. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  145. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  146. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  147. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  148. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  149. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  150. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  151. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  152. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  153. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  155. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  156. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  157. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  159. package/plugins/lisa-rails-agy/plugin.json +1 -1
  160. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  161. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  164. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  165. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  166. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  167. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  168. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  169. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  170. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  171. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  172. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  173. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  174. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  175. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  176. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  177. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  178. package/plugins/src/base/skills/lisa-generate-claude-remote-build-script/SKILL.md +5 -18
  179. package/plugins/src/base/skills/lisa-setup-automations/SKILL.md +1 -1
  180. package/scripts/check-derived-artifacts.mjs +0 -1
  181. package/scripts/generate-upstream-evidence-manifest.mjs +0 -1
  182. package/scripts/install-claude-plugins.sh +4 -1
  183. package/scripts/lisa-ruleset-reach.mjs +0 -3
  184. package/scripts/two-channel-couplings.json +1 -1
  185. package/typescript/copy-overwrite/.prettierignore +1 -0
  186. package/dist/cli/gate-report-drift-section.d.ts +0 -8
  187. package/dist/cli/gate-report-drift-section.d.ts.map +0 -1
  188. package/dist/cli/gate-report-drift-section.js +0 -76
  189. package/dist/cli/gate-report-drift-section.js.map +0 -1
  190. package/dist/cli/gate-report-fragment.d.ts +0 -11
  191. package/dist/cli/gate-report-fragment.d.ts.map +0 -1
  192. package/dist/cli/gate-report-fragment.js +0 -106
  193. package/dist/cli/gate-report-fragment.js.map +0 -1
  194. package/dist/cli/gate-report-html.d.ts +0 -47
  195. package/dist/cli/gate-report-html.d.ts.map +0 -1
  196. package/dist/cli/gate-report-html.js +0 -49
  197. package/dist/cli/gate-report-html.js.map +0 -1
  198. package/dist/cli/gate-report-preview.d.ts +0 -9
  199. package/dist/cli/gate-report-preview.d.ts.map +0 -1
  200. package/dist/cli/gate-report-preview.js +0 -55
  201. package/dist/cli/gate-report-preview.js.map +0 -1
  202. package/dist/cli/gate-report-rows.d.ts +0 -39
  203. package/dist/cli/gate-report-rows.d.ts.map +0 -1
  204. package/dist/cli/gate-report-rows.js +0 -227
  205. package/dist/cli/gate-report-rows.js.map +0 -1
  206. package/dist/cli/gate-report-sections.d.ts +0 -38
  207. package/dist/cli/gate-report-sections.d.ts.map +0 -1
  208. package/dist/cli/gate-report-sections.js +0 -225
  209. package/dist/cli/gate-report-sections.js.map +0 -1
  210. package/dist/cli/gate-report-style.d.ts +0 -19
  211. package/dist/cli/gate-report-style.d.ts.map +0 -1
  212. package/dist/cli/gate-report-style.js +0 -100
  213. package/dist/cli/gate-report-style.js.map +0 -1
  214. package/dist/cli/remote-environment-catalog.d.ts +0 -17
  215. package/dist/cli/remote-environment-catalog.d.ts.map +0 -1
  216. package/dist/cli/remote-environment-catalog.js +0 -175
  217. package/dist/cli/remote-environment-catalog.js.map +0 -1
  218. package/dist/cli/remote-environment-contract.d.ts +0 -94
  219. package/dist/cli/remote-environment-contract.d.ts.map +0 -1
  220. package/dist/cli/remote-environment-contract.js +0 -59
  221. package/dist/cli/remote-environment-contract.js.map +0 -1
  222. package/dist/cli/remote-environment-detection.d.ts +0 -23
  223. package/dist/cli/remote-environment-detection.d.ts.map +0 -1
  224. package/dist/cli/remote-environment-detection.js +0 -120
  225. package/dist/cli/remote-environment-detection.js.map +0 -1
  226. package/dist/cli/remote-environment.d.ts +0 -12
  227. package/dist/cli/remote-environment.d.ts.map +0 -1
  228. package/dist/cli/remote-environment.js +0 -73
  229. package/dist/cli/remote-environment.js.map +0 -1
  230. package/dist/cli/ui-automations-adapters.d.ts +0 -72
  231. package/dist/cli/ui-automations-adapters.d.ts.map +0 -1
  232. package/dist/cli/ui-automations-adapters.js +0 -174
  233. package/dist/cli/ui-automations-adapters.js.map +0 -1
  234. package/dist/cli/ui-automations.d.ts +0 -90
  235. package/dist/cli/ui-automations.d.ts.map +0 -1
  236. package/dist/cli/ui-automations.js +0 -149
  237. package/dist/cli/ui-automations.js.map +0 -1
  238. package/dist/cli/ui-ci-quality-jobs-compute.d.ts +0 -44
  239. package/dist/cli/ui-ci-quality-jobs-compute.d.ts.map +0 -1
  240. package/dist/cli/ui-ci-quality-jobs-compute.js +0 -278
  241. package/dist/cli/ui-ci-quality-jobs-compute.js.map +0 -1
  242. package/dist/cli/ui-ci-quality-jobs-parse.d.ts.map +0 -1
  243. package/dist/cli/ui-ci-quality-jobs-parse.js.map +0 -1
  244. package/dist/cli/ui-ci-quality-jobs.d.ts +0 -22
  245. package/dist/cli/ui-ci-quality-jobs.d.ts.map +0 -1
  246. package/dist/cli/ui-ci-quality-jobs.js +0 -160
  247. package/dist/cli/ui-ci-quality-jobs.js.map +0 -1
  248. package/dist/cli/ui-cmd.d.ts +0 -87
  249. package/dist/cli/ui-cmd.d.ts.map +0 -1
  250. package/dist/cli/ui-cmd.js +0 -383
  251. package/dist/cli/ui-cmd.js.map +0 -1
  252. package/dist/cli/ui-config-write-document.d.ts +0 -53
  253. package/dist/cli/ui-config-write-document.d.ts.map +0 -1
  254. package/dist/cli/ui-config-write-document.js +0 -212
  255. package/dist/cli/ui-config-write-document.js.map +0 -1
  256. package/dist/cli/ui-config-write-patch-plan.d.ts +0 -30
  257. package/dist/cli/ui-config-write-patch-plan.d.ts.map +0 -1
  258. package/dist/cli/ui-config-write-patch-plan.js +0 -151
  259. package/dist/cli/ui-config-write-patch-plan.js.map +0 -1
  260. package/dist/cli/ui-config-write-persistence.d.ts +0 -29
  261. package/dist/cli/ui-config-write-persistence.d.ts.map +0 -1
  262. package/dist/cli/ui-config-write-persistence.js +0 -298
  263. package/dist/cli/ui-config-write-persistence.js.map +0 -1
  264. package/dist/cli/ui-config-write-property-edits.d.ts +0 -40
  265. package/dist/cli/ui-config-write-property-edits.d.ts.map +0 -1
  266. package/dist/cli/ui-config-write-property-edits.js +0 -250
  267. package/dist/cli/ui-config-write-property-edits.js.map +0 -1
  268. package/dist/cli/ui-config-write-provenance.d.ts +0 -12
  269. package/dist/cli/ui-config-write-provenance.d.ts.map +0 -1
  270. package/dist/cli/ui-config-write-provenance.js +0 -29
  271. package/dist/cli/ui-config-write-provenance.js.map +0 -1
  272. package/dist/cli/ui-config-write-root-identity.d.ts +0 -25
  273. package/dist/cli/ui-config-write-root-identity.d.ts.map +0 -1
  274. package/dist/cli/ui-config-write-root-identity.js +0 -66
  275. package/dist/cli/ui-config-write-root-identity.js.map +0 -1
  276. package/dist/cli/ui-config-write.d.ts +0 -13
  277. package/dist/cli/ui-config-write.d.ts.map +0 -1
  278. package/dist/cli/ui-config-write.js +0 -341
  279. package/dist/cli/ui-config-write.js.map +0 -1
  280. package/dist/cli/ui-confined-project-read.d.ts.map +0 -1
  281. package/dist/cli/ui-confined-project-read.js.map +0 -1
  282. package/dist/cli/ui-deploy-pipeline-model.d.ts +0 -74
  283. package/dist/cli/ui-deploy-pipeline-model.d.ts.map +0 -1
  284. package/dist/cli/ui-deploy-pipeline-model.js +0 -127
  285. package/dist/cli/ui-deploy-pipeline-model.js.map +0 -1
  286. package/dist/cli/ui-deploy-pipeline.d.ts +0 -25
  287. package/dist/cli/ui-deploy-pipeline.d.ts.map +0 -1
  288. package/dist/cli/ui-deploy-pipeline.js +0 -181
  289. package/dist/cli/ui-deploy-pipeline.js.map +0 -1
  290. package/dist/cli/ui-detected-stacks.d.ts +0 -21
  291. package/dist/cli/ui-detected-stacks.d.ts.map +0 -1
  292. package/dist/cli/ui-detected-stacks.js.map +0 -1
  293. package/dist/cli/ui-enabled-plugins.d.ts +0 -52
  294. package/dist/cli/ui-enabled-plugins.d.ts.map +0 -1
  295. package/dist/cli/ui-enabled-plugins.js +0 -229
  296. package/dist/cli/ui-enabled-plugins.js.map +0 -1
  297. package/dist/cli/ui-gate-report.d.ts +0 -57
  298. package/dist/cli/ui-gate-report.d.ts.map +0 -1
  299. package/dist/cli/ui-gate-report.js +0 -95
  300. package/dist/cli/ui-gate-report.js.map +0 -1
  301. package/dist/cli/ui-github-repo-expected.d.ts +0 -36
  302. package/dist/cli/ui-github-repo-expected.d.ts.map +0 -1
  303. package/dist/cli/ui-github-repo-expected.js +0 -118
  304. package/dist/cli/ui-github-repo-expected.js.map +0 -1
  305. package/dist/cli/ui-github-repo-gh.d.ts +0 -56
  306. package/dist/cli/ui-github-repo-gh.d.ts.map +0 -1
  307. package/dist/cli/ui-github-repo-gh.js +0 -117
  308. package/dist/cli/ui-github-repo-gh.js.map +0 -1
  309. package/dist/cli/ui-github-repo-map.d.ts +0 -25
  310. package/dist/cli/ui-github-repo-map.d.ts.map +0 -1
  311. package/dist/cli/ui-github-repo-map.js +0 -175
  312. package/dist/cli/ui-github-repo-map.js.map +0 -1
  313. package/dist/cli/ui-github-repo.d.ts +0 -51
  314. package/dist/cli/ui-github-repo.d.ts.map +0 -1
  315. package/dist/cli/ui-github-repo.js +0 -117
  316. package/dist/cli/ui-github-repo.js.map +0 -1
  317. package/dist/cli/ui-health.d.ts +0 -18
  318. package/dist/cli/ui-health.d.ts.map +0 -1
  319. package/dist/cli/ui-health.js +0 -101
  320. package/dist/cli/ui-health.js.map +0 -1
  321. package/dist/cli/ui-lisa-version.d.ts +0 -36
  322. package/dist/cli/ui-lisa-version.d.ts.map +0 -1
  323. package/dist/cli/ui-lisa-version.js +0 -82
  324. package/dist/cli/ui-lisa-version.js.map +0 -1
  325. package/dist/cli/ui-observability-checks.d.ts +0 -23
  326. package/dist/cli/ui-observability-checks.d.ts.map +0 -1
  327. package/dist/cli/ui-observability-checks.js +0 -156
  328. package/dist/cli/ui-observability-checks.js.map +0 -1
  329. package/dist/cli/ui-observability-providers.d.ts +0 -69
  330. package/dist/cli/ui-observability-providers.d.ts.map +0 -1
  331. package/dist/cli/ui-observability-providers.js +0 -99
  332. package/dist/cli/ui-observability-providers.js.map +0 -1
  333. package/dist/cli/ui-request-origin.d.ts +0 -8
  334. package/dist/cli/ui-request-origin.d.ts.map +0 -1
  335. package/dist/cli/ui-request-origin.js +0 -41
  336. package/dist/cli/ui-request-origin.js.map +0 -1
  337. package/dist/cli/ui-setup-readiness-config.d.ts +0 -28
  338. package/dist/cli/ui-setup-readiness-config.d.ts.map +0 -1
  339. package/dist/cli/ui-setup-readiness-config.js +0 -116
  340. package/dist/cli/ui-setup-readiness-config.js.map +0 -1
  341. package/dist/cli/ui-setup-readiness-contract.d.ts +0 -32
  342. package/dist/cli/ui-setup-readiness-contract.d.ts.map +0 -1
  343. package/dist/cli/ui-setup-readiness-contract.js +0 -61
  344. package/dist/cli/ui-setup-readiness-contract.js.map +0 -1
  345. package/dist/cli/ui-setup-readiness-install.d.ts +0 -24
  346. package/dist/cli/ui-setup-readiness-install.d.ts.map +0 -1
  347. package/dist/cli/ui-setup-readiness-install.js +0 -211
  348. package/dist/cli/ui-setup-readiness-install.js.map +0 -1
  349. package/dist/cli/ui-setup-readiness-local.d.ts +0 -41
  350. package/dist/cli/ui-setup-readiness-local.d.ts.map +0 -1
  351. package/dist/cli/ui-setup-readiness-local.js +0 -237
  352. package/dist/cli/ui-setup-readiness-local.js.map +0 -1
  353. package/dist/cli/ui-setup-readiness-remote.d.ts +0 -30
  354. package/dist/cli/ui-setup-readiness-remote.d.ts.map +0 -1
  355. package/dist/cli/ui-setup-readiness-remote.js +0 -108
  356. package/dist/cli/ui-setup-readiness-remote.js.map +0 -1
  357. package/dist/cli/ui-setup-readiness.d.ts +0 -52
  358. package/dist/cli/ui-setup-readiness.d.ts.map +0 -1
  359. package/dist/cli/ui-setup-readiness.js +0 -126
  360. package/dist/cli/ui-setup-readiness.js.map +0 -1
  361. package/dist/cli/ui-starter-sync.d.ts +0 -17
  362. package/dist/cli/ui-starter-sync.d.ts.map +0 -1
  363. package/dist/cli/ui-starter-sync.js +0 -75
  364. package/dist/cli/ui-starter-sync.js.map +0 -1
  365. package/dist/cli/ui-status-json.d.ts +0 -29
  366. package/dist/cli/ui-status-json.d.ts.map +0 -1
  367. package/dist/cli/ui-status-json.js +0 -162
  368. package/dist/cli/ui-status-json.js.map +0 -1
  369. package/dist/cli/ui-status.d.ts +0 -42
  370. package/dist/cli/ui-status.d.ts.map +0 -1
  371. package/dist/cli/ui-status.js +0 -221
  372. package/dist/cli/ui-status.js.map +0 -1
  373. package/ui/README.md +0 -443
  374. package/ui/index.html +0 -14392
@@ -1,95 +0,0 @@
1
- import * as path from "node:path";
2
- import { renderGateReportFragment } from "./gate-report-fragment.js";
3
- import { buildGateReport } from "./gate-report.js";
4
- const JSON_CONTENT_TYPE = "application/json; charset=utf-8";
5
- const NO_STORE = "no-store";
6
- const TEXT_CONTENT_TYPE = "text/plain; charset=utf-8";
7
- /**
8
- * Build the response for one project.
9
- * @param projectRoot - Project root served by this UI process
10
- * @param dependencies - Injectable boundaries
11
- * @returns The fragment and the payload it came from
12
- */
13
- export async function readGateReport(projectRoot, dependencies = {}) {
14
- const build = dependencies.build ??
15
- (async (root) => await buildGateReport({ projectRoot: root }));
16
- const report = await build(projectRoot);
17
- return {
18
- report,
19
- html: renderGateReportFragment(report, path.basename(projectRoot)),
20
- };
21
- }
22
- /**
23
- * Coalesce concurrent reads without caching a stale answer for later ones.
24
- *
25
- * The slot is a `current` holder rather than a reassigned binding, which is
26
- * the shape the repository's immutability rules already sanction: the entry is
27
- * set when a read starts and cleared when it settles, which is the same
28
- * lifetime with none of the suppression.
29
- * @param read - The underlying reader
30
- * @returns A single-flight reader that clears after settlement
31
- */
32
- function singleFlight(read) {
33
- const slot = {
34
- current: undefined,
35
- };
36
- return () => {
37
- if (slot.current !== undefined)
38
- return slot.current;
39
- const pending = read();
40
- slot.current = pending;
41
- const clear = () => {
42
- if (slot.current === pending)
43
- slot.current = undefined;
44
- };
45
- void pending.then(clear, clear);
46
- return pending;
47
- };
48
- }
49
- /**
50
- * Create the `/api/gate-report` handler for one project.
51
- * @param projectRoot - Project root served by this UI process
52
- * @param dependencies - Injectable boundaries
53
- * @returns A request handler
54
- */
55
- export function createGateReportHandler(projectRoot, dependencies = {}) {
56
- const read = singleFlight(async () => await readGateReport(projectRoot, dependencies));
57
- return (request, response) => {
58
- if (request.method === "HEAD") {
59
- response.writeHead(200, {
60
- "cache-control": NO_STORE,
61
- "content-type": JSON_CONTENT_TYPE,
62
- });
63
- response.end();
64
- return;
65
- }
66
- if (request.method !== "GET") {
67
- response.writeHead(405, {
68
- allow: "GET, HEAD",
69
- "cache-control": NO_STORE,
70
- "content-type": TEXT_CONTENT_TYPE,
71
- });
72
- response.end("Method not allowed");
73
- return;
74
- }
75
- void read().then(result => {
76
- response.writeHead(200, {
77
- "cache-control": NO_STORE,
78
- "content-type": JSON_CONTENT_TYPE,
79
- });
80
- response.end(JSON.stringify(result));
81
- }, error => {
82
- // A failure here must not render as an empty report. The console shows
83
- // the message, which keeps "the report could not be derived" distinct
84
- // from "the report found nothing".
85
- response.writeHead(500, {
86
- "cache-control": NO_STORE,
87
- "content-type": JSON_CONTENT_TYPE,
88
- });
89
- response.end(JSON.stringify({
90
- error: error instanceof Error ? error.message : String(error),
91
- }));
92
- });
93
- };
94
- }
95
- //# sourceMappingURL=ui-gate-report.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-gate-report.js","sourceRoot":"","sources":["../../src/cli/ui-gate-report.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,MAAM,iBAAiB,GAAG,iCAAiC,CAAC;AAC5D,MAAM,QAAQ,GAAG,UAAU,CAAC;AAC5B,MAAM,iBAAiB,GAAG,2BAA2B,CAAC;AAsBtD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,WAAmB,EACnB,eAAuC,EAAE;IAEzC,MAAM,KAAK,GACT,YAAY,CAAC,KAAK;QAClB,CAAC,KAAK,EAAE,IAAY,EAAE,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC;IACxC,OAAO;QACL,MAAM;QACN,IAAI,EAAE,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;KACnE,CAAC;AACJ,CAAC;AAED;;;;;;;;;GASG;AACH,SAAS,YAAY,CACnB,IAAuC;IAEvC,MAAM,IAAI,GAAyD;QACjE,OAAO,EAAE,SAAS;KACnB,CAAC;IACF,OAAO,GAAG,EAAE;QACV,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC;QACpD,MAAM,OAAO,GAAG,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,MAAM,KA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ACvC,CAAC,EACD,KAAK,CAAC,EAAE;YACN,uEAAuE;YACvE,sEAAsE;YACtE,mCAAmC;YACnC,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE;gBACtB,eAAe,EAAE,QAAQ;gBACzB,cAAc,EAAE,iBAAiB;aAClC,CAAC,CAAC;YACH,QAAQ,CAAC,GAAG,CACV,IAAI,CAAC,SAAS,CAAC;gBACb,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;aAC9D,CAAC,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Expected labels and secrets for the GitHub repository live-status panel.
3
- * @module cli/ui-github-repo-expected
4
- */
5
- import type { JsonObject } from "../sync/json-path.js";
6
- /** One config-expected lifecycle label. */
7
- export interface ExpectedLabel {
8
- readonly name: string;
9
- readonly role: string;
10
- }
11
- /** One workflow-expected repository secret (presence only). */
12
- export interface ExpectedSecret {
13
- readonly name: string;
14
- readonly purpose: string;
15
- }
16
- /**
17
- * Secrets Lisa creates or expects workflows to consume.
18
- * Presence is checked via `gh secret list`; values are never read.
19
- */
20
- export declare const EXPECTED_GITHUB_SECRETS: readonly ExpectedSecret[];
21
- /**
22
- * Flatten `github.labels` from merged config into expected label rows.
23
- * @param config - Merged Lisa project config
24
- * @returns Expected labels with human-readable role paths
25
- */
26
- export declare function expectedLabelsFromConfig(config: JsonObject): readonly ExpectedLabel[];
27
- /**
28
- * Read configured github.org / github.repo when both are non-empty strings.
29
- * @param config - Merged Lisa project config
30
- * @returns Owner and repo, or undefined when either is missing
31
- */
32
- export declare function configuredGithubRepo(config: JsonObject): {
33
- readonly owner: string;
34
- readonly repo: string;
35
- } | undefined;
36
- //# sourceMappingURL=ui-github-repo-expected.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-github-repo-expected.d.ts","sourceRoot":"","sources":["../../src/cli/ui-github-repo-expected.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAC;AAElE,2CAA2C;AAC3C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,+DAA+D;AAC/D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,cAAc,EAgE5D,CAAC;AAuBF;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,UAAU,GACjB,SAAS,aAAa,EAAE,CAU1B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,UAAU,GACjB;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAgB/D"}
@@ -1,118 +0,0 @@
1
- /**
2
- * Secrets Lisa creates or expects workflows to consume.
3
- * Presence is checked via `gh secret list`; values are never read.
4
- */
5
- export const EXPECTED_GITHUB_SECRETS = [
6
- {
7
- name: "DEPLOY_KEY",
8
- purpose: "Write deploy key so CI can push version bumps through ruleset bypass",
9
- },
10
- {
11
- name: "CLAUDE_CODE_OAUTH_TOKEN",
12
- purpose: "Claude Code Action workflows (nightly, review response, auto-fix)",
13
- },
14
- {
15
- name: "AWS_ACCOUNT_ID_DEV",
16
- purpose: "Per-environment AWS account for dev deploys",
17
- },
18
- {
19
- name: "AWS_ACCOUNT_ID_STAGING",
20
- purpose: "Per-environment AWS account for staging deploys",
21
- },
22
- {
23
- name: "AWS_ACCOUNT_ID_PRODUCTION",
24
- purpose: "Per-environment AWS account for production deploys",
25
- },
26
- {
27
- name: "GITGUARDIAN_API_KEY",
28
- purpose: "Secret scanning check",
29
- },
30
- {
31
- name: "SONAR_TOKEN",
32
- purpose: "Static security analysis",
33
- },
34
- {
35
- name: "SNYK_TOKEN",
36
- purpose: "Snyk dependency scan",
37
- },
38
- {
39
- name: "FOSSA_API_KEY",
40
- purpose: "License compliance",
41
- },
42
- {
43
- name: "SENTRY_AUTH_TOKEN",
44
- purpose: "Sentry releases and sourcemaps",
45
- },
46
- {
47
- name: "SENTRY_ORG",
48
- purpose: "Sentry organization slug",
49
- },
50
- {
51
- name: "SENTRY_PROJECT",
52
- purpose: "Sentry project slug",
53
- },
54
- {
55
- name: "EXPO_TOKEN",
56
- purpose: "EAS builds",
57
- },
58
- {
59
- name: "MAESTRO_API_KEY",
60
- purpose: "Maestro Cloud mobile E2E",
61
- },
62
- {
63
- name: "MAESTRO_SECRET_ENV",
64
- purpose: "Native Maestro e2e — newline-separated KEY=VALUE secrets forwarded to flows",
65
- },
66
- ];
67
- /**
68
- * Walk a nested labels object into role-path entries.
69
- * @param value - Nested label map or leaf string
70
- * @param pathParts - Role segments accumulated so far
71
- * @returns Flattened labels under this node
72
- */
73
- function walkLabels(value, pathParts) {
74
- if (typeof value === "string" && value.trim().length > 0) {
75
- return [{ name: value, role: pathParts.join(" · ") }];
76
- }
77
- if (value === null || typeof value !== "object" || Array.isArray(value)) {
78
- return [];
79
- }
80
- return Object.entries(value).flatMap(([key, child]) => walkLabels(child, [...pathParts, key]));
81
- }
82
- /**
83
- * Flatten `github.labels` from merged config into expected label rows.
84
- * @param config - Merged Lisa project config
85
- * @returns Expected labels with human-readable role paths
86
- */
87
- export function expectedLabelsFromConfig(config) {
88
- const github = config.github;
89
- if (github === null || typeof github !== "object" || Array.isArray(github)) {
90
- return [];
91
- }
92
- const labels = Reflect.get(github, "labels");
93
- if (labels === null || typeof labels !== "object" || Array.isArray(labels)) {
94
- return [];
95
- }
96
- return walkLabels(labels, []);
97
- }
98
- /**
99
- * Read configured github.org / github.repo when both are non-empty strings.
100
- * @param config - Merged Lisa project config
101
- * @returns Owner and repo, or undefined when either is missing
102
- */
103
- export function configuredGithubRepo(config) {
104
- const github = config.github;
105
- if (github === null || typeof github !== "object" || Array.isArray(github)) {
106
- return undefined;
107
- }
108
- const owner = Reflect.get(github, "org");
109
- const repo = Reflect.get(github, "repo");
110
- if (typeof owner !== "string" ||
111
- owner.trim().length === 0 ||
112
- typeof repo !== "string" ||
113
- repo.trim().length === 0) {
114
- return undefined;
115
- }
116
- return { owner: owner.trim(), repo: repo.trim() };
117
- }
118
- //# sourceMappingURL=ui-github-repo-expected.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-github-repo-expected.js","sourceRoot":"","sources":["../../src/cli/ui-github-repo-expected.ts"],"names":[],"mappings":"AAkBA;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA8B;IAChE;QACE,IAAI,EAAE,YAAY;QAClB,OAAO,EACL,sEAAsE;KACzE;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EACL,mEAAmE;KACtE;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,6CAA6C;KACvD;IACD;QACE,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,iDAAiD;KAC3D;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,OAAO,EAAE,oDAAoD;KAC9D;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,sBAAsB;KAChC;IACD;QACE,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,IAAI,EAAE,YAAY;QAClB,OAAO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,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3E,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,UAAU,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAkB;IAElB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3E,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;QACzB,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EACxB,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;AACpD,CAAC"}
@@ -1,56 +0,0 @@
1
- /** Live repository settings surfaced in the console panel. */
2
- export interface GithubRepoSettings {
3
- readonly allow_merge_commit: boolean;
4
- readonly allow_squash_merge: boolean;
5
- readonly allow_rebase_merge: boolean;
6
- readonly allow_auto_merge: boolean;
7
- readonly allow_update_branch: boolean;
8
- readonly delete_branch_on_merge: boolean;
9
- readonly merge_commit_title: string;
10
- readonly has_issues: boolean;
11
- readonly has_wiki: boolean;
12
- readonly secret_scanning: boolean;
13
- readonly default_branch: string;
14
- }
15
- /** One ruleset row for the panel. */
16
- export interface GithubRulesetRow {
17
- readonly name: string;
18
- readonly appliesTo: string;
19
- readonly enforces: string;
20
- readonly active: boolean;
21
- /** Structured default-branch targeting retained beside display text. */
22
- readonly targetsDefaultBranch?: boolean;
23
- /** Structured pull-request enforcement retained beside display text. */
24
- readonly requiresPullRequest?: boolean;
25
- /** At least one required status-check context is configured. */
26
- readonly requiresStatusChecks?: boolean;
27
- }
28
- /** One label present on the remote repository. */
29
- export interface GithubRemoteLabel {
30
- readonly name: string;
31
- readonly color: string;
32
- }
33
- /** Injectable collaborators used by the github-repo probe. */
34
- export interface GithubRepoGhReads {
35
- readonly readSettings: (owner: string, repo: string, cwd: string, timeoutMs: number, signal: AbortSignal) => Promise<GithubRepoSettings>;
36
- readonly listRulesets: (owner: string, repo: string, cwd: string, timeoutMs: number, signal: AbortSignal) => Promise<readonly GithubRulesetRow[]>;
37
- readonly listLabels: (owner: string, repo: string, cwd: string, timeoutMs: number, signal: AbortSignal) => Promise<readonly GithubRemoteLabel[]>;
38
- readonly listSecretNames: (owner: string, repo: string, cwd: string, timeoutMs: number, signal: AbortSignal) => Promise<readonly string[]>;
39
- }
40
- /**
41
- * Run `gh` without a shell and return stdout.
42
- *
43
- * Exported so every `gh` read in the CLI goes through one shell-free call site.
44
- * A second one would mean a second place to get argument handling and the
45
- * command-from-PATH exemption right, and the gate report needs a branch-rules
46
- * read that belongs to no existing member of `GithubRepoGhReads`.
47
- * @param args - gh argv after the executable
48
- * @param cwd - Working directory
49
- * @param timeoutMs - Child-process timeout
50
- * @param signal - Probe cancellation signal
51
- * @returns Trimmed stdout
52
- */
53
- export declare function runGh(args: readonly string[], cwd: string, timeoutMs: number, signal: AbortSignal): Promise<string>;
54
- /** Default `gh` implementations used by `lisa ui`. */
55
- export declare const defaultGithubRepoGhReads: GithubRepo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E,MAAM,CAAC;CACxB;AAED,8DAA8D;AAC9D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,YAAY,EAAE,CACrB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,CACrB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,SAAS,gBAAgB,EAAE,CAAC,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,CACnB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,SAAS,iBAAiB,EAAE,CAAC,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,CACxB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;CACjC;AAED;;;;;;;;;;;;GAYG;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,CAiBjB;AAoDD,sDAAsD;AACtD,eAAO,MAAM,wBAAwB,EAAE,iBA0EtC,CAAC"}
@@ -1,117 +0,0 @@
1
- /**
2
- * Injectable `gh` reads for the GitHub repository live-status panel.
3
- * @module cli/ui-github-repo-gh
4
- */
5
- import { execFile } from "node:child_process";
6
- import { mapRepoSettings, mapRulesetRow, requireNamedString, } from "./ui-github-repo-map.js";
7
- /**
8
- * Run `gh` without a shell and return stdout.
9
- *
10
- * Exported so every `gh` read in the CLI goes through one shell-free call site.
11
- * A second one would mean a second place to get argument handling and the
12
- * command-from-PATH exemption right, and the gate report needs a branch-rules
13
- * read that belongs to no existing member of `GithubRepoGhReads`.
14
- * @param args - gh argv after the executable
15
- * @param cwd - Working directory
16
- * @param timeoutMs - Child-process timeout
17
- * @param signal - Probe cancellation signal
18
- * @returns Trimmed stdout
19
- */
20
- export function runGh(args, cwd, timeoutMs, signal) {
21
- return new Promise((resolve, reject) => {
22
- const ghExecutable = "gh";
23
- execFile(
24
- // eslint-disable-next-line sonarjs/no-os-command-from-path -- fixed user-installed gh executable
25
- ghExecutable, [...args], { cwd, signal, timeout: timeoutMs, encoding: "utf8" }, (error, stdout) => {
26
- if (error !== null) {
27
- reject(error);
28
- return;
29
- }
30
- resolve(stdout.trim());
31
- });
32
- });
33
- }
34
- /**
35
- * Parse JSON from a gh command, rejecting non-JSON payloads.
36
- * @param stdout - Command stdout
37
- * @returns Parsed JSON value
38
- */
39
- function parseJson(stdout) {
40
- return JSON.parse(stdout);
41
- }
42
- /**
43
- * Load detailed ruleset rows for every ruleset id in the list response.
44
- * @param owner - Repository owner
45
- * @param repo - Repository name
46
- * @param listed - Parsed rulesets list payload
47
- * @param cwd - Working directory
48
- * @param timeoutMs - Child-process timeout
49
- * @param signal - Probe cancellation signal
50
- * @returns Panel ruleset rows
51
- */
52
- async function loadRulesetDetails(owner, repo, listed, cwd, timeoutMs, signal) {
53
- if (!Array.isArray(listed)) {
54
- throw new TypeError("Rulesets list was not an array");
55
- }
56
- return await Promise.all(listed.map(async (entry) => {
57
- if (entry === null || typeof entry !== "object") {
58
- throw new TypeError("Ruleset list entry was not an object");
59
- }
60
- const id = Reflect.get(entry, "id");
61
- if (typeof id !== "number") {
62
- throw new TypeError("Ruleset list entry omitted numeric id");
63
- }
64
- const detailStdout = await runGh(["api", `repos/${owner}/${repo}/rulesets/${String(id)}`], cwd, timeoutMs, signal);
65
- return mapRulesetRow(parseJson(detailStdout));
66
- }));
67
- }
68
- /** Default `gh` implementations used by `lisa ui`. */
69
- export const defaultGithubRepoGhReads = {
70
- readSettings: async (owner, repo, cwd, timeoutMs, signal) => {
71
- const stdout = await runGh(["api", `repos/${owner}/${repo}`], cwd, timeoutMs, signal);
72
- return mapRepoSettings(parseJson(stdout));
73
- },
74
- listRulesets: async (owner, repo, cwd, timeoutMs, signal) => {
75
- const listStdout = await runGh(["api", `repos/${owner}/${repo}/rulesets`], cwd, timeoutMs, signal);
76
- return loadRulesetDetails(owner, repo, parseJson(listStdout), cwd, timeoutMs, signal);
77
- },
78
- listLabels: async (owner, repo, cwd, timeoutMs, signal) => {
79
- const stdout = await runGh([
80
- "label",
81
- "list",
82
- "--repo",
83
- `${owner}/${repo}`,
84
- "--limit",
85
- "200",
86
- "--json",
87
- "name,color",
88
- ], cwd, timeoutMs, signal);
89
- const parsed = parseJson(stdout);
90
- if (!Array.isArray(parsed)) {
91
- throw new TypeError("Label list was not an array");
92
- }
93
- return parsed.map(entry => {
94
- if (entry === null || typeof entry !== "object") {
95
- throw new TypeError("Label entry was not an object");
96
- }
97
- return {
98
- name: requireNamedString(entry, "name"),
99
- color: requireNamedString(entry, "color"),
100
- };
101
- });
102
- },
103
- listSecretNames: async (owner, repo, cwd, timeoutMs, signal) => {
104
- const stdout = await runGh(["secret", "list", "--repo", `${owner}/${repo}`, "--json", "name"], cwd, timeoutMs, signal);
105
- const parsed = parseJson(stdout);
106
- if (!Array.isArray(parsed)) {
107
- throw new TypeError("Secret list was not an array");
108
- }
109
- return parsed.map(entry => {
110
- if (entry === null || typeof entry !== "object") {
111
- throw new TypeError("Secret entry was not an object");
112
- }
113
- return requireNamedString(entry, "name");
114
- });
115
- },
116
- };
117
- //# sourceMappingURL=ui-github-repo-gh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-github-repo-gh.js","sourceR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AAS,EACT,MAAM,CACP,CAAC;QACF,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,SAAS,CAAC,8BAA8B,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;YACxB,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAChD,MAAM,IAAI,SAAS,CAAC,gCAAgC,CAAC,CAAC;YACxD,CAAC;YACD,OAAO,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Pure mappers from GitHub API JSON onto repository panel rows.
3
- * @module cli/ui-github-repo-map
4
- */
5
- import type { GithubRepoSettings, GithubRulesetRow } from "./ui-github-repo-gh.js";
6
- /**
7
- * Map repository JSON into the panel settings shape.
8
- * @param raw - Parsed `gh api repos/{owner}/{repo}` payload
9
- * @returns Settings for the console
10
- */
11
- export declare function mapRepoSettings(raw: unknown): GithubRepoSettings;
12
- /**
13
- * Map a detailed ruleset payload into a panel row.
14
- * @param raw - One ruleset object from gh api
15
- * @returns Panel row
16
- */
17
- export declare function mapRulesetRow(raw: unknown): GithubRulesetRow;
18
- /**
19
- * Require a non-empty string field (shared by label/secret list parsers).
20
- * @param record - Source object
21
- * @param key - Property name
22
- * @returns String value
23
- */
24
- export declare function requireNamedString(record: object, key: string): string;
25
- //# sourceMappingURL=ui-github-repo-map.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-github-repo-map.d.ts","sourceRoot":"","sources":["../../src/cli/ui-github-repo-map.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AA+ChC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,CAiBhE;AA2FD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAe5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEtE"}
@@ -1,175 +0,0 @@
1
- /**
2
- * Require a boolean field from a plain object.
3
- * @param record - Source object
4
- * @param key - Property name
5
- * @returns Boolean value
6
- */
7
- function requireBoolean(record, key) {
8
- const value = Reflect.get(record, key);
9
- if (typeof value !== "boolean") {
10
- throw new TypeError(`Repository settings omitted boolean ${key}`);
11
- }
12
- return value;
13
- }
14
- /**
15
- * Require a string field from a plain object.
16
- * @param record - Source object
17
- * @param key - Property name
18
- * @returns String value
19
- */
20
- function requireString(record, key) {
21
- const value = Reflect.get(record, key);
22
- if (typeof value !== "string" || value.trim().length === 0) {
23
- throw new TypeError(`Repository settings omitted string ${key}`);
24
- }
25
- return value;
26
- }
27
- /**
28
- * Derive secret-scanning enabled from the security_and_analysis payload.
29
- * @param record - Repository API object
30
- * @returns Whether secret scanning is enabled
31
- */
32
- function secretScanningEnabled(record) {
33
- const security = Reflect.get(record, "security_and_analysis");
34
- if (security === null || typeof security !== "object") {
35
- return false;
36
- }
37
- const scanning = Reflect.get(security, "secret_scanning");
38
- if (scanning === null || typeof scanning !== "object") {
39
- return false;
40
- }
41
- return Reflect.get(scanning, "status") === "enabled";
42
- }
43
- /**
44
- * Map repository JSON into the panel settings shape.
45
- * @param raw - Parsed `gh api repos/{owner}/{repo}` payload
46
- * @returns Settings for the console
47
- */
48
- export function mapRepoSettings(raw) {
49
- if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
50
- throw new TypeError("Repository settings response was not an object");
51
- }
52
- return {
53
- allow_merge_commit: requireBoolean(raw, "allow_merge_commit"),
54
- allow_squash_merge: requireBoolean(raw, "allow_squash_merge"),
55
- allow_rebase_merge: requireBoolean(raw, "allow_rebase_merge"),
56
- allow_auto_merge: requireBoolean(raw, "allow_auto_merge"),
57
- allow_update_branch: requireBoolean(raw, "allow_update_branch"),
58
- delete_branch_on_merge: requireBoolean(raw, "delete_branch_on_merge"),
59
- merge_commit_title: requireString(raw, "merge_commit_title"),
60
- has_issues: requireBoolean(raw, "has_issues"),
61
- has_wiki: requireBoolean(raw, "has_wiki"),
62
- secret_scanning: secretScanningEnabled(raw),
63
- default_branch: requireString(raw, "default_branch"),
64
- };
65
- }
66
- /**
67
- * Humanize ruleset ref includes for the Applies-to column.
68
- * @param includes - Ruleset condition include list
69
- * @returns Display string
70
- */
71
- function formatAppliesTo(includes) {
72
- if (includes.length === 0) {
73
- return "—";
74
- }
75
- return includes
76
- .map(entry => entry
77
- .replace(/^refs\/heads\//u, "")
78
- .replace(/^refs\/tags\//u, "")
79
- .replace(/^~DEFAULT_BRANCH$/u, "default"))
80
- .join(" · ");
81
- }
82
- /**
83
- * Extract ref_name.include strings from a ruleset conditions object.
84
- * @param conditions - Ruleset conditions payload
85
- * @returns Include list, or empty when absent
86
- */
87
- function rulesetIncludes(conditions) {
88
- if (conditions === null ||
89
- typeof conditions !== "object" ||
90
- Array.isArray(conditions)) {
91
- return [];
92
- }
93
- const refName = Reflect.get(conditions, "ref_name");
94
- if (refName === null ||
95
- typeof refName !== "object" ||
96
- Array.isArray(refName)) {
97
- return [];
98
- }
99
- const include = Reflect.get(refName, "include");
100
- if (!Array.isArray(include)) {
101
- return [];
102
- }
103
- return include.filter((entry) => typeof entry === "string");
104
- }
105
- /**
106
- * Extract rule type names from a ruleset rules array.
107
- * @param rules - Ruleset rules payload
108
- * @returns Rule type strings
109
- */
110
- function rulesetRuleTypes(rules) {
111
- if (!Array.isArray(rules)) {
112
- return [];
113
- }
114
- return rules
115
- .map(rule => {
116
- if (rule === null || typeof rule !== "object") {
117
- return undefined;
118
- }
119
- const type = Reflect.get(rule, "type");
120
- return typeof type === "string" ? type : undefined;
121
- })
122
- .filter((type) => type !== undefined);
123
- }
124
- /**
125
- * Whether a required-status-check rule contains at least one context.
126
- * @param rules - Raw ruleset rules
127
- * @returns Whether at least one required check context is configured
128
- */
129
- function hasRequiredStatusChecks(rules) {
130
- if (!Array.isArray(rules))
131
- return false;
132
- return rules.some(rule => {
133
- if (rule === null ||
134
- typeof rule !== "object" ||
135
- Reflect.get(rule, "type") !== "required_status_checks") {
136
- return false;
137
- }
138
- const parameters = Reflect.get(rule, "parameters");
139
- if (parameters === null || typeof parameters !== "object")
140
- return false;
141
- const checks = Reflect.get(parameters, "required_status_checks");
142
- return Array.isArray(checks) && checks.length > 0;
143
- });
144
- }
145
- /**
146
- * Map a detailed ruleset payload into a panel row.
147
- * @param raw - One ruleset object from gh api
148
- * @returns Panel row
149
- */
150
- export function mapRulesetRow(raw) {
151
- if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
152
- throw new TypeError("Ruleset entry was not an object");
153
- }
154
- const ruleTypes = rulesetRuleTypes(Reflect.get(raw, "rules"));
155
- const includes = rulesetIncludes(Reflect.get(raw, "conditions"));
156
- return {
157
- name: requireString(raw, "name"),
158
- appliesTo: formatAppliesTo(includes),
159
- enforces: ruleTypes.length > 0 ? ruleTypes.join(", ") : "—",
160
- active: Reflect.get(raw, "enforcement") === "active",
161
- targetsDefaultBranch: includes.includes("~DEFAULT_BRANCH"),
162
- requiresPullRequest: ruleTypes.includes("pull_request"),
163
- requiresStatusChecks: hasRequiredStatusChecks(Reflect.get(raw, "rules")),
164
- };
165
- }
166
- /**
167
- * Require a non-empty string field (shared by label/secret list parsers).
168
- * @param record - Source object
169
- * @param key - Property name
170
- * @returns String value
171
- */
172
- export function requireNamedString(record, key) {
173
- return requireString(record, key);
174
- }
175
- //# sourceMappingURL=ui-github-repo-map.js.map