@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
@@ -0,0 +1,190 @@
1
+ #!/usr/bin/env node
2
+ // This file is managed by Lisa and IS replaced on each `lisa` run.
3
+ // Do not edit directly — durable changes belong upstream in Lisa.
4
+
5
+ /**
6
+ * Session-startup pointer (SessionStart, `startup` matcher only — not resume,
7
+ * clear or compact) for a checkout whose Lisa plugins are not registered
8
+ * (CodySwannGT/lisa#4504).
9
+ *
10
+ * Dependency install deliberately registers nothing (#4135), so a fresh clone
11
+ * opens in Claude Code without the `@lisa` plugins its settings enable, and
12
+ * commands such as `/lisa:implement` simply do not exist. The plugin cannot
13
+ * report its own absence, so this check is a REPOSITORY hook: `lisa apply`
14
+ * writes it into the host's `.claude/settings.json`, which travels with the
15
+ * clone whether or not any plugin ever installs.
16
+ *
17
+ * It is advisory and cheap by contract: it reads local files only (the
18
+ * project settings, the plugin registry, and a linked worktree's `.git`
19
+ * pointer), never runs the Claude CLI, never touches the network, never
20
+ * writes, and always exits 0. Anything it cannot read confidently makes it stay silent — a false
21
+ * alarm at every session start would teach operators to ignore it.
22
+ *
23
+ * Agent parity: Claude Code is the only agent with a per-folder plugin
24
+ * registry (`~/.claude/plugins/installed_plugins.json`, keyed by projectPath).
25
+ * Codex reads its project-local `.codex-plugin` pointer, and Cursor, OpenCode,
26
+ * Antigravity, Copilot and Devin load Lisa's surfaces from files `lisa apply`
27
+ * writes into the checkout, so none of them has an "enabled but unregistered
28
+ * for this folder" state for an equivalent hook to detect.
29
+ */
30
+
31
+ import { existsSync, readFileSync, realpathSync } from "node:fs";
32
+ import { homedir } from "node:os";
33
+ import path from "node:path";
34
+
35
+ import { invokedAsScript } from "./lib/invoked-as-script.mjs";
36
+
37
+ /**
38
+ * Read and parse a JSON file.
39
+ * @param {string} file Absolute path.
40
+ * @returns {{ ok: true, value: unknown } | { ok: false, missing: boolean }}
41
+ */
42
+ function readJson(file) {
43
+ if (!existsSync(file)) return { ok: false, missing: true };
44
+ try {
45
+ return { ok: true, value: JSON.parse(readFileSync(file, "utf8")) };
46
+ } catch {
47
+ return { ok: false, missing: false };
48
+ }
49
+ }
50
+
51
+ /**
52
+ * Canonical spelling of a path, falling back to its resolved form.
53
+ * @param {string} value Path to canonicalise.
54
+ * @returns {string}
55
+ */
56
+ function canonical(value) {
57
+ try {
58
+ return realpathSync(value);
59
+ } catch {
60
+ return path.resolve(value);
61
+ }
62
+ }
63
+
64
+ /**
65
+ * Enabled `<name>@lisa` plugin ids from the project's committed settings.
66
+ * @param {string} projectDir Project root.
67
+ * @returns {string[]}
68
+ */
69
+ function enabledLisaPlugins(projectDir) {
70
+ const settings = readJson(path.join(projectDir, ".claude", "settings.json"));
71
+ if (!settings.ok) return [];
72
+ const enabled = /** @type {Record<string, unknown>} */ (settings.value)
73
+ ?.enabledPlugins;
74
+ if (enabled === null || typeof enabled !== "object" || Array.isArray(enabled))
75
+ return [];
76
+ return Object.entries(enabled)
77
+ .filter(([id, on]) => on === true && id.endsWith("@lisa"))
78
+ .map(([id]) => id)
79
+ .sort((left, right) => left.localeCompare(right));
80
+ }
81
+
82
+ /**
83
+ * Folders whose project-scope registration serves this session: the project
84
+ * itself and, for a linked git worktree, its primary checkout (Lisa defers a
85
+ * worktree's registration to the primary's sync — see `computePluginSyncPlan`).
86
+ * Read from the `.git` file directly so no git process is spawned.
87
+ * @param {string} projectDir Project root.
88
+ * @returns {Set<string>}
89
+ */
90
+ function servingFolders(projectDir) {
91
+ const folders = new Set([canonical(projectDir)]);
92
+ try {
93
+ const pointer = readFileSync(path.join(projectDir, ".git"), "utf8");
94
+ // Line-split + prefix check instead of a regex: no backtracking surface.
95
+ const gitdir = pointer
96
+ .split("\n")
97
+ .find(line => line.startsWith("gitdir:"))
98
+ ?.slice("gitdir:".length)
99
+ .trim();
100
+ const marker = `${path.sep}.git${path.sep}worktrees${path.sep}`;
101
+ const at = gitdir?.lastIndexOf(marker) ?? -1;
102
+ if (gitdir && at > 0) folders.add(canonical(gitdir.slice(0, at)));
103
+ } catch {
104
+ // Not a linked worktree (a `.git` directory, or no git at all).
105
+ }
106
+ return folders;
107
+ }
108
+
109
+ /**
110
+ * Whether one registry entry makes the plugin available in this folder.
111
+ * @param {unknown} entry Registry entry.
112
+ * @param {Set<string>} folders Folders that serve this session.
113
+ * @returns {boolean}
114
+ */
115
+ function servesHere(entry, folders) {
116
+ if (entry === null || typeof entry !== "object") return false;
117
+ const { scope, projectPath } = /** @type {Record<string, unknown>} */ (entry);
118
+ if (scope === "user") return true;
119
+ return typeof projectPath === "string" && folders.has(canonical(projectPath));
120
+ }
121
+
122
+ /**
123
+ * Decide what, if anything, to tell the operator at session start.
124
+ * @param {{ projectDir: string, configDir: string, env?: Record<string, string | undefined> }} options
125
+ * Project root, Claude config directory, and environment.
126
+ * @returns {string | undefined} The notice, or undefined when nothing is missing.
127
+ */
128
+ export function pluginRegistrationNotice({ projectDir, configDir, env = {} }) {
129
+ // A cloud session installs plugins from the marketplace itself; running
130
+ // `lisa apply .` there is not the operator's remedy.
131
+ if (env.CLAUDE_CODE_REMOTE === "true") return undefined;
132
+ const enabled = enabledLisaPlugins(projectDir);
133
+ if (enabled.length === 0) return undefined;
134
+ const registry = readJson(
135
+ path.join(configDir, "plugins", "installed_plugins.json")
136
+ );
137
+ if (!registry.ok && !registry.missing) return undefined;
138
+ const plugins = registry.ok
139
+ ? /** @type {Record<string, unknown>} */ (registry.value)?.plugins
140
+ : {};
141
+ if (plugins === null || typeof plugins !== "object") return undefined;
142
+ const folders = servingFolders(projectDir);
143
+ const missing = enabled.filter(id => {
144
+ const entries = /** @type {Record<string, unknown>} */ (plugins)[id];
145
+ return !(
146
+ Array.isArray(entries) &&
147
+ entries.some(entry => servesHere(entry, folders))
148
+ );
149
+ });
150
+ if (missing.length === 0) return undefined;
151
+ return (
152
+ `Lisa: this project turns on ${missing.length} Claude Code plugin(s) that are not ` +
153
+ `set up for this folder yet (${missing.join(", ")}), so Lisa commands such as ` +
154
+ `/lisa:implement are unavailable in this session. Installing dependencies does not ` +
155
+ "set them up. Run `lisa apply .` in this project, then restart Claude Code."
156
+ );
157
+ }
158
+
159
+ /**
160
+ * Hook entry point: print a SessionStart message when plugins are missing.
161
+ * @returns {void}
162
+ */
163
+ function main() {
164
+ try {
165
+ const env = process.env;
166
+ const message = pluginRegistrationNotice({
167
+ projectDir: env.CLAUDE_PROJECT_DIR?.trim() || process.cwd(),
168
+ configDir:
169
+ env.CLAUDE_CONFIG_DIR?.trim() || path.join(homedir(), ".claude"),
170
+ env,
171
+ });
172
+ if (message === undefined) return;
173
+ process.stdout.write(
174
+ `${JSON.stringify({
175
+ systemMessage: message,
176
+ hookSpecificOutput: {
177
+ hookEventName: "SessionStart",
178
+ additionalContext: message,
179
+ },
180
+ })}\n`
181
+ );
182
+ } catch {
183
+ // Advisory only: never fail or block a session over this pointer.
184
+ }
185
+ }
186
+
187
+ if (invokedAsScript(import.meta.url)) {
188
+ main();
189
+ process.exitCode = 0;
190
+ }
@@ -22,9 +22,13 @@ export const APPLY_FAILURE_MARKER = join(
22
22
  * @returns {void}
23
23
  */
24
24
  export function runPostinstall(_cwd = process.cwd(), _env = process.env) {
25
+ // Name the missing plugin registration outright (#4504): nothing here runs
26
+ // `claude plugin install`, so a fresh clone has no Lisa commands until the
27
+ // operator runs `lisa apply .` in it.
25
28
  console.log(
26
- "lisa: installation leaves unrelated project templates unchanged. Run `lisa apply .` " +
27
- "to apply updates, or `lisa doctor` to check freshness."
29
+ "lisa: installation leaves unrelated project templates unchanged, and Claude Code " +
30
+ "plugins are not registered by dependency install. Run `lisa apply .` in this " +
31
+ "project to register them and apply updates, or `lisa doctor` to check freshness."
28
32
  );
29
33
  }
30
34
 
@@ -66,6 +66,15 @@
66
66
  "command": "bash \"$CLAUDE_PROJECT_DIR\"/scripts/lisa-hooks/worktree-binding-guard.sh"
67
67
  }
68
68
  ]
69
+ },
70
+ {
71
+ "matcher": "startup",
72
+ "hooks": [
73
+ {
74
+ "type": "command",
75
+ "command": "node \"$CLAUDE_PROJECT_DIR\"/scripts/lisa-plugin-registration-notice.mjs 2>/dev/null || true"
76
+ }
77
+ ]
69
78
  }
70
79
  ]
71
80
  }
@@ -1,4 +1,9 @@
1
- import type { CiWorkflowInputs } from "./ui-ci-quality-jobs-compute.js";
1
+ /** Inputs the project's `ci.yml` forwards into Lisa's quality workflow. */
2
+ export interface CiWorkflowInputs {
3
+ readonly skipJobs: readonly string[];
4
+ readonly complianceFramework: string;
5
+ readonly requireApproval: boolean;
6
+ }
2
7
  /**
3
8
  * Read `ci.yml` from the project workflows directory.
4
9
  * @param cwd - Project root
@@ -12,4 +17,4 @@ export declare function readCiYmlFile(cwd: string): Promise<string>;
12
17
  * @returns Normalized inputs
13
18
  */
14
19
  export declare function parseCiWorkflowInputs(cwd: string, readCiYml?: (projectRoot: string) => Promise<string>): Promise<CiWorkflowInputs>;
15
- //# sourceMappingURL=ui-ci-quality-jobs-parse.d.ts.map
20
+ //# sourceMappingURL=ci-workflow-inputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ci-workflow-inputs.d.ts","sourceRoot":"","sources":["../../src/cli/ci-workflow-inputs.ts"],"names":[],"mappings":"AASA,2EAA2E;AAC3E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKhE;AAiFD;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,SAAS,GAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAiB,GAClE,OAAO,CAAC,gBAAgB,CAAC,CAiB3B"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Parse the project's calling `ci.yml` quality workflow inputs.
3
- * @module cli/ui-ci-quality-jobs-parse
3
+ * @module cli/ci-workflow-inputs
4
4
  */
5
5
  import { readFile } from "node:fs/promises";
6
6
  import * as path from "node:path";
@@ -104,4 +104,4 @@ export async function parseCiWorkflowInputs(cwd, readCiYml = readCiYmlFile) {
104
104
  requireApproval: asBoolean(withBlock.require_approval, false),
105
105
  };
106
106
  }
107
- //# sourceMappingURL=ui-ci-quality-jobs-parse.js.map
107
+ //# sourceMappingURL=ci-workflow-inputs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ci-workflow-inputs.js","sourceRoot":"","sources":["../../src/cli/ci-workflow-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AS,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;IACJ,CAAC;IACD,OAAO;QACL,QAAQ,EAAE,aAAa,CAAC,SAAS,CAAC,SAAS,CAAC;QAC5C,mBAAmB,EAAE,QAAQ,CAC3B,SAAS,CAAC,oBAAoB,EAC9B,MAAM,CACP,CAAC,WAAW,EAAE;QACf,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC"}
@@ -19,4 +19,4 @@ export declare function readConfinedProjectJson(projectRoot: string, relativePat
19
19
  * @returns Merged config with the local overlay winning per key
20
20
  */
21
21
  export declare function readConfinedMergedConfig(projectRoot: string): Promise<JsonObject>;
22
- //# sourceMappingURL=ui-confined-project-read.d.ts.map
22
+ //# sourceMappingURL=confined-project-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confined-project-read.d.ts","sourceRoot":"","sources":["../../src/cli/confined-project-read.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGrE;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAG7B;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAG9B;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAC5C,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,UAAU,CAAC,CASrB"}
@@ -1,4 +1,4 @@
1
- /** Bounded, no-follow local project reads shared by localhost UI probes. */
1
+ /** Bounded, no-follow local project reads for setup and doctor checks. */
2
2
  import { realpath } from "node:fs/promises";
3
3
  import { readProjectText } from "../health/read-only-fs.js";
4
4
  import { isJsonObject } from "../sync/json-path.js";
@@ -35,4 +35,4 @@ export async function readConfinedMergedConfig(projectRoot) {
35
35
  ]);
36
36
  return deepMerge(isJsonObject(committed) ? committed : {}, isJsonObject(local) ? local : {});
37
37
  }
38
- //# sourceMappingURL=ui-confined-project-read.js.map
38
+ //# sourceMappingURL=confined-project-read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confined-project-read.js","sourceRoot":"","sources":["../../src/cli/confined-project-read.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAmB,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,WAAmB,EACnB,YAAoB;IAEpB,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,CAAC;IACzC,OAAO,MAAM,eAAe,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AACnD,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,WAAmB,EACnB,YAAoB;IAEpB,MAAM,IAAI,GAAG,MAAM,uBAAuB,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IACtE,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAa,CAAC;AACxE,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,WAAmB;IAEnB,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3C,uBAAuB,CAAC,WAAW,EAAE,mBAAmB,CAAC;QACzD,uBAAuB,CAAC,WAAW,EAAE,yBAAyB,CAAC;KAChE,CAAC,CAAC;IACH,OAAO,SAAS,CACd,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EACxC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CACnB,CAAC;AAClB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ProjectType } from "../core/config.js";
2
+ /**
3
+ * Detect project stacks using only bounded, no-follow project reads.
4
+ * This mirrors the authoritative detector signals without invoking their
5
+ * legacy unbounded readers.
6
+ * @param destDir - Project root
7
+ * @returns Expanded types in canonical detector-registry order
8
+ */
9
+ export declare function readConfinedDetectedStacks(destDir: string): Promise<readonly ProjectType[]>;
10
+ //# sourceMappingURL=detected-stacks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detected-stacks.d.ts","sourceRoot":"","sources":["../../src/cli/detected-stacks.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA6GrD;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAuBjC"}
@@ -1,18 +1,15 @@
1
1
  /**
2
- * Live-status probe for the console Stacks section.
2
+ * Bounded, no-follow stack detection for standards proof.
3
3
  *
4
- * Mirrors doctor's detection chain exactly so the console and `lisa doctor`
5
- * can never disagree. An empty match is the honest empty value (`[]`), never
6
- * unknown; the runner maps a thrown detector error to unknown.
7
- * @module cli/ui-detected-stacks
4
+ * Mirrors the detector registry's signals without invoking its unbounded
5
+ * readers, so a project root cannot steer reads outside itself.
6
+ * @module cli/detected-stacks
8
7
  */
9
8
  import { realpath } from "node:fs/promises";
10
- import { createDetectorRegistry, } from "../detection/index.js";
9
+ import { createDetectorRegistry } from "../detection/index.js";
11
10
  import { CDK_APP_MARKER } from "../core/cdk-preset-adoption.js";
12
11
  import { projectPathKind, readProjectText } from "../health/read-only-fs.js";
13
12
  import { isJsonObject } from "../sync/json-path.js";
14
- /** Probe id for the detected-stacks live-status entry. */
15
- export const DETECTED_STACKS_PROBE_ID = "detected-stacks";
16
13
  const PACKAGE_JSON_RELATIVE = "package.json";
17
14
  const HARPER_CONFIG_RELATIVE = "harper-app/config.yaml";
18
15
  const MARKER_NAMES = [
@@ -94,9 +91,9 @@ function classifyDetectedTypes(signals) {
94
91
  ].flat();
95
92
  }
96
93
  /**
97
- * Detect setup-automation stacks using only bounded, no-follow project reads.
94
+ * Detect project stacks using only bounded, no-follow project reads.
98
95
  * This mirrors the authoritative detector signals without invoking their
99
- * legacy unbounded readers on the setup-readiness request path.
96
+ * legacy unbounded readers.
100
97
  * @param destDir - Project root
101
98
  * @returns Expanded types in canonical detector-registry order
102
99
  */
@@ -119,20 +116,4 @@ export async function readConfinedDetectedStacks(destDir) {
119
116
  });
120
117
  return createDetectorRegistry().expandAndOrderTypes([...detected]);
121
118
  }
122
- /**
123
- * Create the probe that reports the project's detected stacks.
124
- * @param destDir - Project root scanned by the detector registry
125
- * @param registry - Injectable detector registry used by focused tests
126
- * @returns Probe emitting the expanded, ordered project types
127
- */
128
- export function createDetectedStacksProbe(destDir, registry = createDetectorRegistry()) {
129
- return {
130
- id: DETECTED_STACKS_PROBE_ID,
131
- timeoutMs: 5_000,
132
- run: async () => {
133
- const types = registry.expandAndOrderTypes(await registry.detectAll(destDir));
134
- return { state: "value", value: [...types] };
135
- },
136
- };
137
- }
138
- //# sourceMappingURL=ui-detected-stacks.js.map
119
+ //# sourceMappingURL=detected-stacks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detected-stacks.js","sourceRoot":"","sources":["../../src/cli/detected-stacks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EA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C,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"}
@@ -20,8 +20,8 @@ export declare function checkApplyFreshness(targetPath: string): Promise<Freshne
20
20
  * any js-yaml shape and reports the incompatibility in plain language here.
21
21
  *
22
22
  * `fail`, not `warn`: nothing that parses YAML works in this state — Codex and
23
- * OpenCode artifact generation, CI workflow readiness, and the console's deploy
24
- * pipeline all stop — and the remedy is a one-line manifest edit.
23
+ * OpenCode artifact generation and CI workflow readiness both stop — and the
24
+ * remedy is a one-line manifest edit.
25
25
  * @returns Doctor check result
26
26
  */
27
27
  export declare function checkYamlRuntime(): FreshnessCheck;
@@ -258,8 +258,8 @@ export async function checkApplyFreshness(targetPath) {
258
258
  * any js-yaml shape and reports the incompatibility in plain language here.
259
259
  *
260
260
  * `fail`, not `warn`: nothing that parses YAML works in this state — Codex and
261
- * OpenCode artifact generation, CI workflow readiness, and the console's deploy
262
- * pipeline all stop — and the remedy is a one-line manifest edit.
261
+ * OpenCode artifact generation and CI workflow readiness both stop — and the
262
+ * remedy is a one-line manifest edit.
263
263
  * @returns Doctor check result
264
264
  */
265
265
  export function checkYamlRuntime() {
@@ -24,7 +24,7 @@ import { DEFAULT_HUMAN_ONLY_LABELS, evaluateCoderabbitLabeling, SHIPPED_CODERABB
24
24
  import { isShippedVersion } from "../core/retire-unmodified.js";
25
25
  import { getAtPath } from "../sync/json-path.js";
26
26
  import { loadYaml } from "../utils/yaml.js";
27
- import { readConfinedMergedConfig } from "./ui-confined-project-read.js";
27
+ import { readConfinedMergedConfig } from "./confined-project-read.js";
28
28
  /** Name of the labeling check as doctor reports it. */
29
29
  export const CODERABBIT_LABELING_CHECK_NAME = "CodeRabbit kept off Lisa's lifecycle labels?";
30
30
  /** The repository config file names CodeRabbit reads, in lookup order. */
@@ -1 +1 @@
1
- {"version":3,"file":"doctor-coderabbit-labeling.js","sourceRoot":"","sources":["../../src/cli/doctor-coderabbit-labeling.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,uDAAuD;AACvD,MAAM,CAAC,MAAM,8BAA8B,GACzC,8CAA8C,CAAC;AAEjD,0EAA0E;AAC1E,MAAM,YAAY,GAAG,CAAC,iBAAiB,EAAE,kBAAkB,CAAU,CAAC;AAEtE,uDAAuD;AACvD,MAAM,iBAAiB,GAAG,kCAAkC,CAAC;AAQ7D;;;;GAIG;AACH,SAAS,SAAS,CAAC,KAAc;IAC/B,MAAM,IAAI,GAAI,KAAmC,EAAE,IAAI,CAAC;IACxD,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,SAAS,CAAC;AACjD,CAAC;AAED;;;;;;;;GAQG;AACH,KAAK,UAAU,WAAW,CACxB,WAAmB;IAEnB,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAC7B,YAAY,CAAC,GAAG,CAAC,KAAK,EAAC,IAAI,EAAC,EAAE,C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AK,CAAC,KAAK,EACX,iCAAiC,CAClC;QACC,CAAC,CAAC,oEAAoE;YACpE,iEAAiE;YACjE,kCAAkC;QACpC,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,IAAI,UAAU,EAAE,EAAE,CAAC;AAC3D,CAAC;AAED;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,QAAgC,EAChC,SAA4B;IAE5B,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAChE,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/D,OAAO;QACL,IAAI,EAAE,8BAA8B;QACpC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,GAAG,MAAM,IAAI,QAAQ,CAAC,SAAS,CAAC,EAAE;KAC3C,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,EAAE,CAAC,MAAc;IACxB,OAAO,EAAE,IAAI,EAAE,8BAA8B,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,CAAC"}
@@ -3,7 +3,7 @@ import { execFile } from "node:child_process";
3
3
  import { env as processEnvironment } from "node:process";
4
4
  import { promisify } from "node:util";
5
5
  import { importGateRegistry } from "./gate-registry-source.js";
6
- import { readConfinedMergedConfig } from "./ui-confined-project-read.js";
6
+ import { readConfinedMergedConfig } from "./confined-project-read.js";
7
7
  import { isJsonObject } from "../sync/json-path.js";
8
8
  const execFileAsync = promisify(execFile);
9
9
  const CODERABBIT = "coderabbit";
@@ -1 +1 @@
1
- {"version":3,"file":"doctor-coderabbit.js","sourceRoot":"","sources":["../../src/cli/doctor-coderabbit.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,GAAG,IAAI,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAmB,MAAM,sBAAsB,CAAC;AAGrE,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC1C,MAAM,UAAU,GAAG,YAAY,CAAC;AAChC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AAwBhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA4B,KAAK,EAAC,IAAI,EAAC,EAAE;IACxE,IAAI,CAAC;QACH,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,aAAa,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;YAC5D,OAAO,EAAE,MAAM;SAChB,CAAC,CAAC;QACH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACnC,CAAC;AACH,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,SAAS,yBAAyB,CAAC,MAAc;IAC/C,OAAO,MAAM;SACV,IAAI,EAAE;SACN,KAAK,CAAC,QAAQ,CAAC;SACf,MAAM,CAAiB,CAAC,aA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,IAAI,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAClE,OAAO;YACL,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EACJ,SAAS,CAAC,MAAM,KAAK,UAAU,IAAI,SAAS,CAAC,MAAM,KAAK,OAAO;gBAC7D,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,SAAS,CAAC,MAAM;YACtB,MAAM,EAAE,SAAS,CAAC,MAAM;SACzB,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,kDACN,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE;SACH,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { DoctorCheck } from "./doctor.js";
2
+ /**
3
+ * Ensure the project's agent instruction files follow Lisa's canonical pattern
4
+ * (canonical `AGENTS.md` + a thin `CLAUDE.md` that `@AGENTS.md`-imports it) and
5
+ * carry no legacy agy baked-rules block. This check is mutating: it repairs
6
+ * existing projects in place, non-destructively (host content is preserved).
7
+ * @param targetPath - Project path to inspect and repair
8
+ * @returns Doctor check result describing what, if anything, was changed
9
+ */
10
+ export declare function checkInstructionFiles(targetPath: string): Promise<DoctorCheck>;
11
+ //# sourceMappingURL=doctor-instruction-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor-instruction-files.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-instruction-files.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAqB/C;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,WAAW,CAAC,CA2BtB"}
@@ -0,0 +1,57 @@
1
+ import { existsSync } from "node:fs";
2
+ import * as path from "node:path";
3
+ import { AGENTS_MD_FILENAME } from "../codex/agents-md-installer.js";
4
+ import { CLAUDE_MD_FILENAME } from "../claude/claude-md-installer.js";
5
+ import { migrateInstructionFiles } from "../core/instruction-files-migration.js";
6
+ const INSTRUCTION_FILES_CHECK_NAME = "Instruction files canonical?";
7
+ /**
8
+ * Determine whether a path looks like an agent-governed project, i.e. one that
9
+ * should carry the canonical `AGENTS.md` / `CLAUDE.md` pointer pattern. True
10
+ * when a Lisa config or either instruction file already exists — this keeps the
11
+ * mutating migration from touching unrelated, non-Lisa directories.
12
+ * @param targetPath - Project path to inspect
13
+ * @returns True when the path is an agent/Lisa project
14
+ */
15
+ function looksLikeAgentProject(targetPath) {
16
+ return [
17
+ ".lisa.config.json",
18
+ ".lisa.config.local.json",
19
+ AGENTS_MD_FILENAME,
20
+ CLAUDE_MD_FILENAME,
21
+ ].some(fileName => existsSync(path.join(targetPath, fileName)));
22
+ }
23
+ /**
24
+ * Ensure the project's agent instruction files follow Lisa's canonical pattern
25
+ * (canonical `AGENTS.md` + a thin `CLAUDE.md` that `@AGENTS.md`-imports it) and
26
+ * carry no legacy agy baked-rules block. This check is mutating: it repairs
27
+ * existing projects in place, non-destructively (host content is preserved).
28
+ * @param targetPath - Project path to inspect and repair
29
+ * @returns Doctor check result describing what, if anything, was changed
30
+ */
31
+ export async function checkInstructionFiles(targetPath) {
32
+ if (!looksLikeAgentProject(targetPath)) {
33
+ return {
34
+ name: INSTRUCTION_FILES_CHECK_NAME,
35
+ status: "ok",
36
+ detail: "Not a Lisa/agent project; skipped",
37
+ };
38
+ }
39
+ try {
40
+ const result = await migrateInstructionFiles(targetPath);
41
+ return {
42
+ name: INSTRUCTION_FILES_CHECK_NAME,
43
+ status: "ok",
44
+ detail: result.changed
45
+ ? `Repaired: ${result.actions.join("; ")}`
46
+ : "Already canonical (AGENTS.md source of truth, CLAUDE.md imports it)",
47
+ };
48
+ }
49
+ catch (error) {
50
+ return {
51
+ name: INSTRUCTION_FILES_CHECK_NAME,
52
+ status: "fail",
53
+ detail: `Could not reconcile instruction files: ${error instanceof Error ? error.message : String(error)}`,
54
+ };
55
+ }
56
+ }
57
+ //# sourceMappingURL=doctor-instruction-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor-instruction-files.js","sourceRoot":"","sources":["../../src/cli/doctor-instruction-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGjF,MAAM,4BAA4B,GAAG,8BAA8B,CAAC;AAEpE;;;;;;;GAOG;AACH,SAAS,qBAAqB,CAAC,UAAkB;IAC/C,OAAO;QACL,mBAAmB;QACnB,yBAAyB;QACzB,kBAAkB;QAClB,kBAAkB;KACnB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,UAAkB;IAElB,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,CAAC;QACvC,OAAO;YACL,IAAI,EAAE,4BAA4B;YAClC,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,mCAAmC;SAC5C,CAAC;IACJ,CAAC;IAED,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,UAAU,CAAC,CAAC;QACzD,OAAO;YACL,IAAI,EAAE,4BAA4B;YAClC,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM,CAAC,OAAO;gBACpB,CAAC,CAAC,aAAa,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAC1C,CAAC,CAAC,qEAAqE;SAC1E,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,IAAI,EAAE,4BAA4B;YAClC,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,0CACN,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE;SACH,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type InstalledPluginReader } from "../health/plugin-inspection.js";
2
+ import type { DoctorCheck } from "./doctor.js";
3
+ /**
4
+ * Report whether the `@lisa` Claude Code plugins this project enables are
5
+ * registered for THIS folder (CodySwannGT/lisa#4504).
6
+ *
7
+ * Dependency install deliberately registers no plugin (#4135) and its notice
8
+ * points operators here, so doctor has to answer the question. It does so
9
+ * through health's `pluginFinding` rather than a second implementation: one
10
+ * definition of "registered here", one `lisa apply .` remedy.
11
+ *
12
+ * Quiet wherever the answer cannot be had — Claude not in the harness, no
13
+ * `.claude/settings.json`, or no `claude` CLI to ask (CI). The CLI is asked
14
+ * BEFORE the marker/settings comparison so a CI checkout, whose gitignored
15
+ * marker is always absent, is skipped instead of warned about.
16
+ *
17
+ * Severity is `warn`, like the apply-freshness and enforcement-coverage
18
+ * checks whose remedy is also an explicit `lisa apply`: it never changes the
19
+ * exit code on its own.
20
+ * @param targetPath - Project path to inspect
21
+ * @param reader - Installed-plugin reader (`claude plugin list --json`)
22
+ * @returns Doctor check result
23
+ */
24
+ export declare function checkPluginRegistration(targetPath: string, reader?: InstalledPluginReader): Promise<DoctorCheck>;
25
+ //# sourceMappingURL=doctor-plugin-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor-plugin-registration.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-plugin-registration.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,uBAAuB,CAC3C,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,qBAAkD,GACzD,OAAO,CAAC,WAAW,CAAC,CA0CtB"}