@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,181 +0,0 @@
1
- /**
2
- * Live-status probe for Deploy pipeline stages in `lisa ui`.
3
- *
4
- * Combines the project's `.github/workflows/deploy.yml` job sequence with
5
- * live GitHub environment protection rules for each `github.environments`
6
- * entry. READ-ONLY — never fabricates a hold/no-hold claim.
7
- * @module cli/ui-deploy-pipeline
8
- */
9
- import { execFile } from "node:child_process";
10
- import { isJsonObject } from "../sync/json-path.js";
11
- import { readConfinedMergedConfig, readConfinedProjectText, } from "./ui-confined-project-read.js";
12
- import { buildDeployPipelineResult, DEPLOY_PIPELINE_PROBE_ID, } from "./ui-deploy-pipeline-model.js";
13
- export { assembleDeployPipelineStages, buildDeployPipelineResult, DEPLOY_PIPELINE_PROBE_ID, mapEnvironmentHoldStage, parseDeployWorkflowStages, } from "./ui-deploy-pipeline-model.js";
14
- const DEPLOY_YML_RELATIVE = ".github/workflows/deploy.yml";
15
- const DEFAULT_TIMEOUT_MS = 8_000;
16
- /**
17
- * Read deploy.yml when present; null when the project has no deploy workflow.
18
- * @param cwd - Project root
19
- * @returns File contents or null
20
- */
21
- async function readDeployWorkflowDefault(cwd) {
22
- return (await readConfinedProjectText(cwd, DEPLOY_YML_RELATIVE)) ?? null;
23
- }
24
- /**
25
- * Read configured environment names from merged Lisa config.
26
- * @param cwd - Project root
27
- * @returns Stable key order from the merged `github.environments` map
28
- */
29
- async function readConfiguredEnvironmentsDefault(cwd) {
30
- const merged = await readConfinedMergedConfig(cwd);
31
- const github = merged.github;
32
- if (!isJsonObject(github)) {
33
- return [];
34
- }
35
- const environments = github.environments;
36
- if (!isJsonObject(environments)) {
37
- return [];
38
- }
39
- return Object.keys(environments);
40
- }
41
- /**
42
- * Detect whether a gh failure means the CLI is not authenticated.
43
- * @param stderr - Combined stderr/stdout from the failed command
44
- * @returns Whether the failure is an authentication problem
45
- */
46
- function isNotAuthenticatedFailure(stderr) {
47
- const text = stderr.toLowerCase();
48
- return (text.includes("not logged into") ||
49
- text.includes("not authenticated") ||
50
- text.includes("gh auth login") ||
51
- text.includes("http 401") ||
52
- text.includes("401 unauthorized") ||
53
- text.includes("to re-authenticate") ||
54
- text.includes("authentication required"));
55
- }
56
- /**
57
- * Parse a required-reviewers protection rule into a boolean hold signal.
58
- * @param rules - Protection rules from one environment payload
59
- * @returns True when at least one required reviewer is configured
60
- */
61
- function protectionHasRequiredReviewers(rules) {
62
- if (!Array.isArray(rules)) {
63
- return false;
64
- }
65
- return rules.some(rule => {
66
- if (!isJsonObject(rule) || rule.type !== "required_reviewers") {
67
- return false;
68
- }
69
- const reviewers = rule.reviewers;
70
- return Array.isArray(reviewers) && reviewers.length > 0;
71
- });
72
- }
73
- /**
74
- * Classify a failed `gh api` invocation without fabricating hold state.
75
- * @param stderr - Command stderr
76
- * @param errorMessage - Error message from execFile
77
- * @returns not-authenticated or generic error lookup
78
- */
79
- function classifyGithubEnvironmentsFailure(stderr, errorMessage) {
80
- const detail = `${stderr}\n${errorMessage}`.trim();
81
- if (isNotAuthenticatedFailure(detail)) {
82
- return {
83
- status: "not-authenticated",
84
- message: detail.length > 0 ? detail : "GitHub CLI is not authenticated",
85
- };
86
- }
87
- return {
88
- status: "error",
89
- message: detail.length > 0 ? detail : "Failed to list GitHub environments",
90
- };
91
- }
92
- /**
93
- * Parse the jq-shaped environments array from `gh api`.
94
- * @param stdout - Command stdout
95
- * @returns ok lookup or parse error
96
- */
97
- function parseGithubEnvironmentsStdout(stdout) {
98
- try {
99
- const parsed = JSON.parse(stdout);
100
- if (!Array.isArray(parsed)) {
101
- return {
102
- status: "error",
103
- message: "GitHub environments response was not an array",
104
- };
105
- }
106
- const environments = parsed.flatMap((entry) => {
107
- if (!isJsonObject(entry) || typeof entry.name !== "string") {
108
- return [];
109
- }
110
- return [
111
- {
112
- name: entry.name,
113
- hasRequiredReviewers: protectionHasRequiredReviewers(entry.protection_rules),
114
- },
115
- ];
116
- });
117
- return { status: "ok", environments };
118
- }
119
- catch (parseError) {
120
- return {
121
- status: "error",
122
- message: parseError instanceof Error
123
- ? parseError.message
124
- : "Failed to parse GitHub environments response",
125
- };
126
- }
127
- }
128
- /**
129
- * List GitHub Environments for the project's origin repo via `gh api`.
130
- * @param cwd - Project root
131
- * @param signal - Probe cancellation signal
132
- * @param timeoutMs - Child-process timeout
133
- * @returns Authenticated list, not-authenticated, or error
134
- */
135
- export async function listGithubEnvironmentsViaGh(cwd, signal, timeoutMs) {
136
- return await new Promise(resolve => {
137
- const ghExecutable = "gh";
138
- execFile(
139
- // eslint-disable-next-line sonarjs/no-os-command-from-path -- fixed user-installed gh executable
140
- ghExecutable, [
141
- "api",
142
- "repos/{owner}/{repo}/environments",
143
- "--paginate",
144
- "--jq",
145
- "[.environments[]? | {name, protection_rules}]",
146
- ], { cwd, signal, timeout: timeoutMs, encoding: "utf8" }, (error, stdout, stderr) => {
147
- if (error !== null) {
148
- resolve(classifyGithubEnvironmentsFailure(stderr, error.message));
149
- return;
150
- }
151
- resolve(parseGithubEnvironmentsStdout(stdout));
152
- });
153
- });
154
- }
155
- /**
156
- * Create the probe that reports Deploy pipeline stages for `lisa ui`.
157
- * @param cwd - Project root the console is serving
158
- * @param dependencies - Injectable IO for focused tests
159
- * @returns Status probe registered as `deploy-pipeline-stages`
160
- */
161
- export function createDeployPipelineProbe(cwd, dependencies = {}) {
162
- const readDeployWorkflow = dependencies.readDeployWorkflow ?? readDeployWorkflowDefault;
163
- const readConfiguredEnvironments = dependencies.readConfiguredEnvironments ??
164
- readConfiguredEnvironmentsDefault;
165
- const listGithubEnvironments = dependencies.listGithubEnvironments ?? listGithubEnvironmentsViaGh;
166
- return {
167
- id: DEPLOY_PIPELINE_PROBE_ID,
168
- timeoutMs: DEFAULT_TIMEOUT_MS,
169
- run: async (signal) => {
170
- const [workflow, configuredEnvironments] = await Promise.all([
171
- readDeployWorkflow(cwd),
172
- readConfiguredEnvironments(cwd),
173
- ]);
174
- const lookup = configuredEnvironments.length === 0
175
- ? { status: "ok", environments: [] }
176
- : await listGithubEnvironments(cwd, signal, DEFAULT_TIMEOUT_MS + 250);
177
- return buildDeployPipelineResult(workflow, configuredEnvironments, lookup);
178
- },
179
- };
180
- }
181
- //# sourceMappingURL=ui-deploy-pipeline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-deploy-pipeline.js","sourceRoot":"","sources":["../../src/cli/ui-deploy-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EACL,wBAAw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} from "../detection/index.js";
2
- import type { ProjectType } from "../core/config.js";
3
- import type { StatusProbe } from "./ui-status.js";
4
- /** Probe id for the detected-stacks live-status entry. */
5
- export declare const DETECTED_STACKS_PROBE_ID = "detected-stacks";
6
- /**
7
- * Detect setup-automation stacks using only bounded, no-follow project reads.
8
- * This mirrors the authoritative detector signals without invoking their
9
- * legacy unbounded readers on the setup-readiness request path.
10
- * @param destDir - Project root
11
- * @returns Expanded types in canonical detector-registry order
12
- */
13
- export declare function readConfinedDetectedStacks(destDir: string): Promise<readonly ProjectType[]>;
14
- /**
15
- * Create the probe that reports the project's detected stacks.
16
- * @param destDir - Project root scanned by the detector registry
17
- * @param registry - Injectable detector registry used by focused tests
18
- * @returns Probe emitting the expanded, ordered project types
19
- */
20
- export declare function createDetectedStacksProbe(destDir: string, registry?: DetectorRegistry): StatusProbe<string[]>;
21
- //# sourceMappingURL=ui-detected-stacks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-detected-stacks.d.ts","sourceRoot":"","sources":["../../src/cli/ui-detected-stacks.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,0DAA0D;AAC1D,eAAO,MAAM,wBAAwB,oBAAoB,CAAC;AA0G1D;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAuBjC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,gBAA2C,GACpD,WAAW,CAAC,MAAM,EAAE,CAAC,CAWvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-detected-stacks.js","sourceRoot":"","sources":["../../src/cli/ui-detected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,GAAG,IAAI,GAAG,CACrB,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAC3D,CAAC;IACF,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;QACtD,CAAC,CAAC,MAAM,eAAe,CAAC,IAAI,EAAE,sBAAsB,CAAC;QACrD,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,QAAQ,GAAG,qBAAqB,CAAC;QACrC,WAAW;QACX,YAAY,EAAE,eAAe,CAAC,WAAW,CAAC;QAC1C,OAAO;QACP,YAAY;KACb,CAAC,CAAC;IACH,OAAO,sBAAsB,EAAE,CAAC,mBAAmB,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;AACrE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAe,EACf,WAA6B,sBAAsB,EAAE;IAErD,OAAO;QACL,EAAE,EAAE,wBAAwB;QAC5B,SAAS,EAAE,KAAK;QAChB,GAAG,EAAE,KAAK,IAAI,EAAE;YACd,MAAM,KAAK,GAAG,QAAQ,CAAC,mBAAmB,CACxC,MAAM,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,CAClC,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC;QAC/C,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,52 +0,0 @@
1
- import type { JsonValue } from "../sync/json-path.js";
2
- import type { StatusProbe } from "./ui-status.js";
3
- /** One plugin entry from a marketplace.json catalog. */
4
- export type MarketplacePlugin = {
5
- readonly name: string;
6
- readonly description?: string;
7
- };
8
- /** One plugin row emitted by the enabled-plugins probe. */
9
- export type EnabledPluginRow = {
10
- readonly [key: string]: JsonValue;
11
- readonly id: string;
12
- readonly status: "enabled" | "available";
13
- readonly description: string;
14
- };
15
- /** Structured value emitted by the enabled-plugins live-status probe. */
16
- export type EnabledPluginsValue = {
17
- readonly [key: string]: JsonValue;
18
- /** False when `.claude/settings.json` is absent (empty-state trigger). */
19
- readonly settingsPresent: boolean;
20
- /** Enabled and available-not-enabled plugins; never demo data. */
21
- readonly plugins: EnabledPluginRow[];
22
- };
23
- /** Injectable collaborators for focused tests. */
24
- export type EnabledPluginsProbeDependencies = {
25
- /** Home directory used to locate `~/.claude/plugins/known_marketplaces.json`. */
26
- readonly homedir?: () => string;
27
- /** Override marketplace discovery for unit tests. */
28
- readonly listMarketplacePlugins?: (cwd: string, home: string) => Promise<ReadonlyMap<string, string>>;
29
- };
30
- /**
31
- * Collect plugin id → description from known Claude marketplaces on disk.
32
- * @param cwd - Project root (checked for a local `.claude-plugin/marketplace.json`)
33
- * @param home - Home directory containing `~/.claude/plugins`
34
- * @returns Map of `plugin@marketplace` ids to descriptions
35
- */
36
- export declare function listMarketplacePluginsFromDisk(cwd: string, home: string): Promise<ReadonlyMap<string, string>>;
37
- /**
38
- * Build the probe value from settings + marketplace catalog.
39
- * @param settingsPresent - Whether settings.json existed
40
- * @param enabledPlugins - Parsed enabledPlugins map (true = enabled)
41
- * @param marketplace - Plugin id → description catalog
42
- * @returns Structured probe value
43
- */
44
- export declare function buildEnabledPluginsValue(settingsPresent: boolean, enabledPlugins: Readonly<Record<string, boolean>>, marketplace: ReadonlyMap<string, string>): EnabledPluginsValue;
45
- /**
46
- * Create the probe that reports project plugin enablement vs marketplace availability.
47
- * @param cwd - Project root containing `.claude/settings.json`
48
- * @param dependencies - Injectable collaborators for focused tests
49
- * @returns Probe emitting enabled / available-not-enabled rows, or unknown
50
- */
51
- export declare function createEnabledPluginsProbe(cwd: string, dependencies?: EnabledPluginsProbeDependencies): StatusProbe<EnabledPluginsValue>;
52
- //# sourceMappingURL=ui-enabled-plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-enabled-plugins.d.ts","sourceRoot":"","sources":["../../src/cli/ui-enabled-pl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,CAkBtC;AAkBD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,OAAO,EACxB,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACjD,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACvC,mBAAmB,CA+BrB;AAsFD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,YAAY,GAAE,+BAAoC,GACjD,WAAW,CAAC,mBAAmB,CAAC,CA2ClC"}
@@ -1,229 +0,0 @@
1
- /**
2
- * Live-status probe for the console Plugins & MCP section.
3
- *
4
- * Reads project `.claude/settings.json` `enabledPlugins` and joins against
5
- * marketplace catalogs on disk. READ-ONLY — never fabricates enablement.
6
- * @module cli/ui-enabled-plugins
7
- */
8
- import { readFile } from "node:fs/promises";
9
- import { homedir as defaultHomedir } from "node:os";
10
- import * as path from "node:path";
11
- import { readMarketplaceCatalog } from "../utils/marketplace-manifest.js";
12
- const ENABLED_PLUGINS_PROBE_ID = "enabled-plugins";
13
- const SETTINGS_RELATIVE = path.join(".claude", "settings.json");
14
- const MARKETPLACE_JSON = path.join(".claude-plugin", "marketplace.json");
15
- /**
16
- * Read and parse JSON with a real parser; never hand-roll.
17
- * @param filePath - Absolute path to a JSON file
18
- * @returns Parsed value
19
- */
20
- async function readJsonFile(filePath) {
21
- const content = await readFile(filePath, "utf8");
22
- return JSON.parse(content);
23
- }
24
- /**
25
- * Extract `plugin@marketplace` → description pairs from one marketplace.json.
26
- * @param marketplacePath - Absolute path to marketplace.json
27
- * @param fallbackName - Name used when the file omits `name`
28
- * @returns Catalog entries (may be empty on read/parse failure)
29
- */
30
- async function readMarketplaceEntries(marketplacePath, fallbackName) {
31
- const catalog = await readMarketplaceCatalog(marketplacePath);
32
- if (catalog === null) {
33
- return [];
34
- }
35
- const marketplaceName = catalog.name ?? fallbackName;
36
- return catalog.plugins.map(plugin => [`${plugin.name}@${marketplaceName}`, plugin.description]);
37
- }
38
- /**
39
- * Read install locations from `~/.claude/plugins/known_marketplaces.json`.
40
- * @param home - Home directory
41
- * @returns Marketplace name → installLocation pairs
42
- */
43
- async function readKnownMarketplaceInstalls(home) {
44
- const knownPath = path.join(home, ".claude", "plugins", "known_marketplaces.json");
45
- try {
46
- const known = await readJsonFile(knownPath);
47
- if (typeof known !== "object" || known === null || Array.isArray(known)) {
48
- return [];
49
- }
50
- return Object.entries(known).flatMap(([marketplaceName, entry]) => {
51
- if (typeof entry !== "object" || entry === null) {
52
- return [];
53
- }
54
- const installLocation = Reflect.get(entry, "installLocation");
55
- if (typeof installLocation !== "string" || installLocation.length === 0) {
56
- return [];
57
- }
58
- return [[marketplaceName, installLocation]];
59
- });
60
- }
61
- catch {
62
- return [];
63
- }
64
- }
65
- /**
66
- * Collect plugin id → description from known Claude marketplaces on disk.
67
- * @param cwd - Project root (checked for a local `.claude-plugin/marketplace.json`)
68
- * @param home - Home directory containing `~/.claude/plugins`
69
- * @returns Map of `plugin@marketplace` ids to descriptions
70
- */
71
- export async function listMarketplacePluginsFromDisk(cwd, home) {
72
- const localEntries = await readMarketplaceEntries(path.join(cwd, MARKETPLACE_JSON), "lisa");
73
- const installs = await readKnownMarketplaceInstalls(home);
74
- const knownEntries = (await Promise.all(installs.map(async ([marketplaceName, installLocation]) => readMarketplaceEntries(path.join(installLocation, MARKETPLACE_JSON), marketplaceName)))).flat();
75
- // Later entries win so the project's local marketplace takes precedence.
76
- return new Map([...knownEntries, ...localEntries]);
77
- }
78
- /**
79
- * Sort enabled rows before available, then by id.
80
- * @param left - First row
81
- * @param right - Second row
82
- * @returns Comparator result
83
- */
84
- function comparePluginRows(left, right) {
85
- if (left.status !== right.status) {
86
- return left.status === "enabled" ? -1 : 1;
87
- }
88
- return left.id.localeCompare(right.id);
89
- }
90
- /**
91
- * Build the probe value from settings + marketplace catalog.
92
- * @param settingsPresent - Whether settings.json existed
93
- * @param enabledPlugins - Parsed enabledPlugins map (true = enabled)
94
- * @param marketplace - Plugin id → description catalog
95
- * @returns Structured probe value
96
- */
97
- export function buildEnabledPluginsValue(settingsPresent, enabledPlugins, marketplace) {
98
- if (!settingsPresent) {
99
- return { settingsPresent: false, plugins: [] };
100
- }
101
- const enabledRows = Object.entries(enabledPlugins)
102
- .filter((entry) => typeof entry[0] === "string" &&
103
- entry[0].trim().length > 0 &&
104
- entry[1] === true)
105
- .map(([id]) => ({
106
- id,
107
- status: "enabled",
108
- description: marketplace.get(id) ?? "",
109
- }));
110
- const enabledIds = new Set(enabledRows.map(row => row.id));
111
- const availableRows = [...marketplace.entries()]
112
- .filter(([id]) => !enabledIds.has(id))
113
- .map(([id, description]) => ({
114
- id,
115
- status: "available",
116
- description,
117
- }));
118
- return {
119
- settingsPresent: true,
120
- plugins: [...enabledRows, ...availableRows].sort(comparePluginRows),
121
- };
122
- }
123
- /**
124
- * Parse `enabledPlugins` from a settings document.
125
- * @param settings - Parsed settings.json root
126
- * @returns Map of plugin id → enabled, or an error reason
127
- */
128
- function parseEnabledPluginsMap(settings) {
129
- if (typeof settings !== "object" ||
130
- settings === null ||
131
- Array.isArray(settings)) {
132
- return {
133
- ok: false,
134
- reason: "invalid-settings",
135
- message: ".claude/settings.json did not contain a JSON object",
136
- };
137
- }
138
- if (!Object.hasOwn(settings, "enabledPlugins")) {
139
- return { ok: true, map: {} };
140
- }
141
- const enabledPlugins = Reflect.get(settings, "enabledPlugins");
142
- if (typeof enabledPlugins !== "object" ||
143
- enabledPlugins === null ||
144
- Array.isArray(enabledPlugins)) {
145
- return {
146
- ok: false,
147
- reason: "invalid-enabled-plugins",
148
- message: "enabledPlugins must be a JSON object map of plugin id → boolean",
149
- };
150
- }
151
- const map = Object.fromEntries(Object.entries(enabledPlugins).filter((entry) => typeof entry[1] === "boolean"));
152
- return { ok: true, map };
153
- }
154
- /**
155
- * Classify a settings.json read failure into empty vs unknown.
156
- * @param error - Thrown value from read/parse
157
- * @returns Probe outcome when the file cannot be used
158
- */
159
- function classifySettingsReadError(error) {
160
- const code = typeof error === "object" &&
161
- error !== null &&
162
- "code" in error &&
163
- typeof Reflect.get(error, "code") === "string"
164
- ? Reflect.get(error, "code")
165
- : undefined;
166
- if (code === "ENOENT") {
167
- return { missing: true };
168
- }
169
- if (error instanceof SyntaxError) {
170
- return {
171
- state: "unknown",
172
- reason: "unparseable-settings",
173
- message: error.message.trim().length > 0
174
- ? error.message
175
- : ".claude/settings.json could not be parsed as JSON",
176
- };
177
- }
178
- const message = error instanceof Error && error.message.trim().length > 0
179
- ? error.message
180
- : "Failed to read .claude/settings.json";
181
- return {
182
- state: "unknown",
183
- reason: "settings-read-failed",
184
- message,
185
- };
186
- }
187
- /**
188
- * Create the probe that reports project plugin enablement vs marketplace availability.
189
- * @param cwd - Project root containing `.claude/settings.json`
190
- * @param dependencies - Injectable collaborators for focused tests
191
- * @returns Probe emitting enabled / available-not-enabled rows, or unknown
192
- */
193
- export function createEnabledPluginsProbe(cwd, dependencies = {}) {
194
- const resolveHome = dependencies.homedir ?? defaultHomedir;
195
- const listMarketplace = dependencies.listMarketplacePlugins ?? listMarketplacePluginsFromDisk;
196
- return {
197
- id: ENABLED_PLUGINS_PROBE_ID,
198
- timeoutMs: 5_000,
199
- run: async () => {
200
- const settingsPath = path.join(cwd, SETTINGS_RELATIVE);
201
- const loaded = await readJsonFile(settingsPath).then(settings => ({ ok: true, settings }), (error) => ({ ok: false, error }));
202
- if (!loaded.ok) {
203
- const classified = classifySettingsReadError(loaded.error);
204
- if (!("missing" in classified)) {
205
- return classified;
206
- }
207
- const marketplace = await listMarketplace(cwd, resolveHome());
208
- return {
209
- state: "value",
210
- value: buildEnabledPluginsValue(false, {}, marketplace),
211
- };
212
- }
213
- const parsed = parseEnabledPluginsMap(loaded.settings);
214
- if (!parsed.ok) {
215
- return {
216
- state: "unknown",
217
- reason: parsed.reason,
218
- message: parsed.message,
219
- };
220
- }
221
- const marketplace = await listMarketplace(cwd, resolveHome());
222
- return {
223
- state: "value",
224
- value: buildEnabledPluginsValue(true, parsed.map, marketplace),
225
- };
226
- },
227
- };
228
- }
229
- //# sourceMappingURL=ui-enabled-plugins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-enabled-plugins.js","sourceRoot":"","sources":["../../src/cli/ui-enabled-plugins.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAqC1E,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AACnD,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AAChE,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;AAEzE;;;;GAIG;AACH,KAAK,UAAU,YAAY,CAAC,QAAgB;IAC1C,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACjD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAY,CAAC;AACxC,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,sBAAsB,CACnC,eAAuB,EACvB,YAAoB;IAEpB,MAAM,OAAO,GAAG,MAAM,sBAAsB,CAAC,eAAe,CAAC,CAAC;IAC9D,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,IAAI,YAAY,CAAC;IACrD,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CACxB,MAAM,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,IAAI,eAAe,EAAE,EAAE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CAAC,CAAC;gBAC9D,OAAO;oBACL,KAAK,EAAE,OAAO;oBACd,KAAK,EAAE,wBAAwB,CAAC,KAAK,EAAE,EAAE,EAAE,WAAW,CAAC;iBACxD,CAAC;YACJ,CAAC;YAED,MAAM,MAAM,GAAG,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACvD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;gBACf,OAAO;oBACL,KAAK,EAAE,SAAS;oBAChB,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,OAAO,EAAE,MAAM,CAAC,OAAO;iBACxB,CAAC;YACJ,CAAC;YAED,MAAM,WAAW,GAAG,MAAM,eAAe,CAAC,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC;YAC9D,OAAO;gBACL,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,wBAAwB,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC;aAC/D,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,57 +0,0 @@
1
- /**
2
- * `GET /api/gate-report` — the Doctor tab's data, composed at serve time.
3
- *
4
- * The tab's markup is composed HERE rather than living inside
5
- * `ui/index.html`, and that is the point of the route. That file is a single
6
- * 13,000-line zero-build document with a known concurrent-edit hazard where
7
- * union merges lose braces; a section of this size pasted into it would make a
8
- * bad merge materially worse, and would put a second copy of the report's
9
- * markup somewhere no test renders. The console instead gains a small block
10
- * that asks this route for the fragment.
11
- *
12
- * The standalone property `ui/README.md` advertises survives untouched:
13
- * opening `ui/index.html` from disk still works, and the tab then says — in
14
- * the report's own three-state vocabulary — that the report could not be
15
- * derived without a server. That is an honest `unknown`, not an empty panel.
16
- *
17
- * Lazy and single-flight, following `/api/setup-readiness`. Tier 2 shells out
18
- * to `gh`, so building the report at server start would delay the console for
19
- * a section the operator may never open, and two tabs opened at once must not
20
- * become two `gh` invocations.
21
- * @module cli/ui-gate-report
22
- */
23
- import type * as http from "node:http";
24
- import type { GateReport } from "./gate-report-types.js";
25
- /** What the route returns. */
26
- export interface GateReportResponse {
27
- /** The scoped fragment the console injects into the Doctor tab. */
28
- readonly html: string;
29
- /**
30
- * The payload the fragment was rendered from.
31
- *
32
- * Served alongside the markup so an agent or a script can consume the same
33
- * verdicts the operator is looking at, without a second derivation that
34
- * could disagree with the first.
35
- */
36
- readonly report: GateReport;
37
- }
38
- /** Injectable boundaries, so tests never shell out or read a real project. */
39
- export interface GateReportDependencies {
40
- /** Build the report. Defaults to the real emitter. */
41
- readonly build?: (projectRoot: string) => Promise<GateReport>;
42
- }
43
- /**
44
- * Build the response for one project.
45
- * @param projectRoot - Project root served by this UI process
46
- * @param dependencies - Injectable boundaries
47
- * @returns The fragment and the payload it came from
48
- */
49
- export declare function readGateReport(projectRoot: string, dependencies?: GateReportDependencies): Promise<GateReportResponse>;
50
- /**
51
- * Create the `/api/gate-report` handler for one project.
52
- * @param projectRoot - Project root served by this UI process
53
- * @param dependencies - Injectable boundaries
54
- * @returns A request handler
55
- */
56
- export declare function createGateReportHandler(projectRoot: string, dependencies?: GateReportDependencies): (request: http.IncomingMessage, response: http.ServerResponse) => void;
57
- //# sourceMappingURL=ui-gate-report.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-gate-report.d.ts","sourceRoot":"","sources":["../../src/cli/ui-gate-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AAKvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAMzD,8BAA8B;AAC9B,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;CAC7B;AAED,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC,sDAAsD;IACtD,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;CAC/D;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,MAAM,EACnB,YAAY,GAAE,sBAA2B,GACxC,OAAO,CAAC,kBAAkB,CAAC,CAS7B;AA8BD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,YAAY,GAAE,sBAA2B,GACxC,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,KAAK,IAAI,CA8CxE"}