@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,174 +0,0 @@
1
- /**
2
- * Default harness-scheduler seams for the Automations live-status probe.
3
- *
4
- * Loads the shared Codex/Claude automation-status adapters dynamically so the
5
- * TypeScript build root stays under `src/` while reusing the plugin scripts.
6
- * @module cli/ui-automations-adapters
7
- */
8
- import { existsSync, constants as fsConstants } from "node:fs";
9
- import { access } from "node:fs/promises";
10
- import { execFile } from "node:child_process";
11
- import * as os from "node:os";
12
- import * as path from "node:path";
13
- import { fileURLToPath, pathToFileURL } from "node:url";
14
- import { promisify } from "node:util";
15
- import { readConfinedMergedConfig } from "./ui-confined-project-read.js";
16
- const execFileAsync = promisify(execFile);
17
- /**
18
- * Walk parents until a package-root-relative file exists.
19
- * @param startDir - Directory to start searching from
20
- * @param relativePath - Path under the package root
21
- * @returns Absolute path
22
- */
23
- function findPackageFileWalk(startDir, relativePath) {
24
- const candidate = path.join(startDir, relativePath);
25
- if (existsSync(candidate)) {
26
- return candidate;
27
- }
28
- const parent = path.dirname(startDir);
29
- if (parent === startDir) {
30
- throw new Error(`Unable to locate ${relativePath}`);
31
- }
32
- return findPackageFileWalk(parent, relativePath);
33
- }
34
- /**
35
- * Resolve a script under `plugins/src/base/scripts/` from src or dist.
36
- * @param scriptName - File name inside the scripts directory
37
- * @returns Absolute path to the script
38
- */
39
- function resolveAutomationStatusScript(scriptName) {
40
- const moduleDir = path.dirname(fileURLToPath(import.meta.url));
41
- const relative = path.join("plugins", "src", "base", "scripts", scriptName);
42
- const fromPackageRoot = path.join(moduleDir, "..", "..", relative);
43
- if (existsSync(fromPackageRoot)) {
44
- return fromPackageRoot;
45
- }
46
- return findPackageFileWalk(moduleDir, relative);
47
- }
48
- /**
49
- * Default Codex automations directory (`$CODEX_HOME/automations` or `~/.codex/automations`).
50
- * @returns Absolute directory path
51
- */
52
- export function resolveDefaultCodexAutomationsDir() {
53
- // eslint-disable-next-line no-restricted-syntax -- harness path follows Codex's CODEX_HOME contract
54
- const codexHome = process.env.CODEX_HOME;
55
- return path.join(codexHome ?? path.join(os.homedir(), ".codex"), "automations");
56
- }
57
- /**
58
- * Dynamically load a shared automation-status adapter module.
59
- * @param scriptName - Adapter filename
60
- * @returns Imported module
61
- */
62
- async function loadAdapterModule(scriptName) {
63
- const scriptPath = resolveAutomationStatusScript(scriptName);
64
- return import(pathToFileURL(scriptPath).href);
65
- }
66
- /**
67
- * Resolve applicable automations through setup-automations' shared contract.
68
- * @param config - Current merged Lisa config
69
- * @param detectedTypes - Authoritatively detected project types
70
- * @param gitRemoteUrl - Optional origin fallback for repository identity
71
- * @returns Applicable expected entries; unsupported loops are excluded
72
- */
73
- export async function resolveExpectedAutomationEntries(config, detectedTypes, gitRemoteUrl) {
74
- const { resolveExpectedAutomationFleet } = await loadAdapterModule("automation-status-expected-fleet.mjs");
75
- return resolveExpectedAutomationFleet({
76
- config,
77
- detectedTypes,
78
- ...(gitRemoteUrl === undefined ? {} : { gitRemoteUrl }),
79
- }).expected;
80
- }
81
- /**
82
- * Read merged Lisa config for identity resolution.
83
- * @param cwd - Project root
84
- * @returns Merged config object
85
- */
86
- async function readMergedConfig(cwd) {
87
- return await readConfinedMergedConfig(cwd);
88
- }
89
- /**
90
- * Read the origin remote URL via git without a shell.
91
- * @param cwd - Project root
92
- * @param signal - Abort signal
93
- * @returns Origin URL, or undefined when unavailable
94
- */
95
- export async function readOriginRemote(cwd, signal) {
96
- try {
97
- const { stdout } = await execFileAsync("git", ["-C", cwd, "remote", "get-url", "origin"], { cwd, signal, timeout: 2_500, encoding: "utf8" });
98
- const remote = stdout.trim();
99
- return remote.length > 0 ? remote : undefined;
100
- }
101
- catch {
102
- return undefined;
103
- }
104
- }
105
- /**
106
- * Normalize adapter observations into the probe's observation shape.
107
- * @param entry - Adapter observation fields
108
- * @returns Probe observation without invented cadence/status
109
- */
110
- export function toObservation(entry) {
111
- return {
112
- automationId: entry.automationId,
113
- lastRunAt: entry.lastRunAt ?? null,
114
- ...(typeof entry.observedCadence === "string"
115
- ? { observedCadence: entry.observedCadence }
116
- : {}),
117
- ...(typeof entry.status === "string" ? { status: entry.status } : {}),
118
- };
119
- }
120
- /**
121
- * Default identity resolver: config + origin remote → `lisa-auto-<project>-`.
122
- * @param cwd - Project root
123
- * @param signal - Abort signal
124
- * @returns Automation project identity
125
- */
126
- export const defaultResolveIdentity = async (cwd, signal) => {
127
- const { resolveAutomationProjectIdentity } = await loadAdapterModule("automation-status-expected-fleet.mjs");
128
- const config = await readMergedConfig(cwd);
129
- const gitRemoteUrl = await readOriginRemote(cwd, signal);
130
- return resolveAutomationProjectIdentity(gitRemoteUrl === undefined ? { config } : { config, gitRemoteUrl });
131
- };
132
- /**
133
- * Default Codex directory readability check.
134
- * @param automationsDir - Directory to probe
135
- * @param signal - Probe cancellation signal
136
- * @returns Whether the directory is readable
137
- */
138
- export const defaultCodexDirReadable = async (automationsDir, signal) => {
139
- signal.throwIfAborted();
140
- try {
141
- await access(automationsDir, fsConstants.R_OK);
142
- signal.throwIfAborted();
143
- return true;
144
- }
145
- catch {
146
- signal.throwIfAborted();
147
- return false;
148
- }
149
- };
150
- /**
151
- * Default Claude `/schedule` reader — Node cannot invoke the interactive
152
- * `/schedule` surface, so the default is honest unavailability.
153
- * @returns Always null
154
- */
155
- export const defaultReadClaudeScheduleListing = async () => null;
156
- /**
157
- * Default Codex lister via the shared automation-status adapter.
158
- * @param input - Prefix and optional directory override
159
- * @returns Observed Codex automations
160
- */
161
- export const defaultListCodexAutomations = async (input) => {
162
- const { listCodexAutomations } = await loadAdapterModule("automation-status-codex-adapter.mjs");
163
- const observed = await listCodexAutomations(input);
164
- return observed.map(toObservation);
165
- };
166
- /**
167
- * Load the default Claude lister from the shared adapter.
168
- * @returns Claude automation lister
169
- */
170
- export async function loadDefaultListClaudeAutomations() {
171
- const { listClaudeAutomations } = await loadAdapterModule("automation-status-claude-adapter.mjs");
172
- return ({ scheduleListing, automationPrefix }) => listClaudeAutomations({ scheduleListing, automationPrefix }).map(toObservation);
173
- }
174
- //# sourceMappingURL=ui-automations-adapters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-automations-adapters.js","sourceRoot":"","sources":["../../src/cli/ui-automations-adapters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAA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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA0B,KAAK,EACjE,cAAc,EACd,MAAM,EACN,EAAE;IACF,MAAM,CAAC,cAAc,EAAE,CAAC;IACxB,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAC3C,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC;AAEnB;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GACtC,KAAK,EAAC,KAAK,EAAC,EAAE;IACZ,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,iBAAiB,CAErD,qCAAqC,CAAC,CAAC;IAC1C,MAAM,QAAQ,GAAG,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACnD,OAAO,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACrC,CAAC,CAAC;AAEJ;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAgC;IACpD,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,iBAAiB,CAEtD,sCAAsC,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAC/C,qBAAqB,CAAC,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC,CAAC,GAAG,CAC9D,aAAa,CACd,CAAC;AACN,CAAC"}
@@ -1,90 +0,0 @@
1
- /**
2
- * Live-status probe for the console Automations section.
3
- *
4
- * Reads the harness scheduler (Codex `~/.codex/automations/` or Claude
5
- * `/schedule`) and emits only `lisa-auto-<project>-` matches with their real
6
- * cadence. READ-ONLY — never fabricates demo automations; absent or unreadable
7
- * schedulers resolve to unknown with a reason.
8
- * @module cli/ui-automations
9
- */
10
- import type { JsonValue } from "../sync/json-path.js";
11
- import type { ProbeResult, StatusProbe } from "./ui-status.js";
12
- /** Stable probe id consumed by `/api/status` and the Automations section. */
13
- export declare const AUTOMATIONS_PROBE_ID = "automations";
14
- /** One observed automation from a harness scheduler adapter. */
15
- export interface HarnessAutomationObservation {
16
- readonly automationId: string;
17
- readonly observedCadence?: string;
18
- readonly status?: string;
19
- readonly lastRunAt?: string | null;
20
- }
21
- /** One automation entry shipped to the console (never invented). */
22
- export interface HarnessAutomationEntry {
23
- readonly [key: string]: JsonValue;
24
- readonly id: string;
25
- readonly cadence: string | null;
26
- readonly runtime: "codex" | "claude";
27
- readonly status: string | null;
28
- readonly lastRunAt: string | null;
29
- }
30
- /** Structured value emitted when the scheduler is readable. */
31
- export type AutomationsProbeValue = {
32
- readonly [key: string]: JsonValue;
33
- readonly prefix: string;
34
- readonly runtime: "codex" | "claude";
35
- /** Prefix-matching automations; typed as JsonValue[] for the probe transport. */
36
- readonly automations: JsonValue[];
37
- };
38
- /** Resolved Lisa automation naming identity for the current project. */
39
- export interface AutomationProjectIdentity {
40
- readonly owner: string;
41
- readonly repo: string;
42
- readonly project: string;
43
- readonly automationPrefix: string;
44
- }
45
- /** Resolve `lisa-auto-<project>-` for the served project root. */
46
- export type ProjectIdentityResolver = (cwd: string, signal: AbortSignal) => Promise<AutomationProjectIdentity>;
47
- /** List Codex automations matching a prefix (adapter seam). */
48
- export type CodexAutomationLister = (input: {
49
- readonly automationsDir?: string;
50
- readonly automationPrefix: string;
51
- readonly signal?: AbortSignal;
52
- }) => Promise<readonly HarnessAutomationObservation[]>;
53
- /** List Claude `/schedule` automations matching a prefix (adapter seam). */
54
- export type ClaudeAutomationLister = (input: {
55
- readonly scheduleListing: unknown;
56
- readonly automationPrefix: string;
57
- }) => readonly HarnessAutomationObservation[];
58
- /** Read the Claude `/schedule` listing when the runtime can expose it. */
59
- export type ClaudeScheduleListingReader = (signal: AbortSignal) => Promise<unknown | null>;
60
- /** Whether the Codex automations directory exists and is readable. */
61
- export type CodexDirReadableCheck = (automationsDir: string, signal: AbortSignal) => Promise<boolean>;
62
- /** Injectable collaborators for focused tests and default runtime wiring. */
63
- export interface AutomationsProbeDependencies {
64
- readonly cwd: string;
65
- readonly automationsDir?: string;
66
- readonly resolveIdentity?: ProjectIdentityResolver;
67
- readonly listCodexAutomations?: CodexAutomationLister;
68
- readonly listClaudeAutomations?: ClaudeAutomationLister;
69
- readonly readClaudeScheduleListing?: ClaudeScheduleListingReader;
70
- readonly codexAutomationsDirReadable?: CodexDirReadableCheck;
71
- }
72
- /** Inputs for {@link mapHarnessAutomations}. */
73
- export interface MapHarnessAutomationsInput {
74
- readonly prefix: string;
75
- readonly runtime: "codex" | "claude";
76
- readonly observations: readonly HarnessAutomationObservation[];
77
- }
78
- /**
79
- * Map scheduler observations onto the live-status tri-state contract.
80
- * @param input - Prefix, runtime label, and raw observations
81
- * @returns Probe value with only prefix-matching automations
82
- */
83
- export declare function mapHarnessAutomations(input: MapHarnessAutomationsInput): ProbeResult<AutomationsProbeValue>;
84
- /**
85
- * Create the Automations live-status probe.
86
- * @param dependencies - Project root plus injectable scheduler seams
87
- * @returns Probe registered under {@link AUTOMATIONS_PROBE_ID}
88
- */
89
- export declare function createAutomationsProbe(dependencies: AutomationsProbeDependencies): StatusProbe<AutomationsProbeValue>;
90
- //# sourceMappingURL=ui-automations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-automations.d.ts","sourceRoot":"","sources":["../../src/cli/ui-automations.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAU/D,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,gBAAgB,CA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,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,SAAS,4BAA4B,EAAE,CAAC;CAChE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,0BAA0B,GAChC,WAAW,CAAC,qBAAqB,CAAC,CAiCpC;AA8BD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,4BAA4B,GACzC,WAAW,CAAC,qBAAqB,CAAC,CAmCpC"}
@@ -1,149 +0,0 @@
1
- import { defaultCodexDirReadable, defaultListCodexAutomations, defaultReadClaudeScheduleListing, defaultResolveIdentity, loadDefaultListClaudeAutomations, resolveDefaultCodexAutomationsDir, } from "./ui-automations-adapters.js";
2
- /** Stable probe id consumed by `/api/status` and the Automations section. */
3
- export const AUTOMATIONS_PROBE_ID = "automations";
4
- const PROBE_TIMEOUT_MS = 8_000;
5
- const IDENTITY_UNAVAILABLE = "identity-unavailable";
6
- const SCHEDULER_UNAVAILABLE = "scheduler-unavailable";
7
- const SCHEDULER_UNREADABLE = "scheduler-unreadable";
8
- const SCHEDULER_UNAVAILABLE_MESSAGE = "No harness scheduler is configured (Codex automations directory absent and Claude /schedule listing unavailable)";
9
- /**
10
- * Map scheduler observations onto the live-status tri-state contract.
11
- * @param input - Prefix, runtime label, and raw observations
12
- * @returns Probe value with only prefix-matching automations
13
- */
14
- export function mapHarnessAutomations(input) {
15
- const automations = input.observations
16
- .filter(entry => entry.automationId.startsWith(input.prefix))
17
- .map((entry) => ({
18
- id: entry.automationId,
19
- cadence: typeof entry.observedCadence === "string" &&
20
- entry.observedCadence.trim().length > 0
21
- ? entry.observedCadence
22
- : null,
23
- runtime: input.runtime,
24
- status: typeof entry.status === "string" && entry.status.trim().length > 0
25
- ? entry.status
26
- : null,
27
- lastRunAt: typeof entry.lastRunAt === "string" &&
28
- entry.lastRunAt.trim().length > 0
29
- ? entry.lastRunAt
30
- : null,
31
- }))
32
- .sort((left, right) => left.id.localeCompare(right.id));
33
- return {
34
- state: "value",
35
- value: {
36
- prefix: input.prefix,
37
- runtime: input.runtime,
38
- automations,
39
- },
40
- };
41
- }
42
- /**
43
- * Map thrown identity errors to unknown.
44
- * @param error - Thrown value
45
- * @returns Unknown identity result
46
- */
47
- function identityUnknown(error) {
48
- const message = error instanceof Error && error.message.trim().length > 0
49
- ? error.message
50
- : "Unable to resolve repo identity for automation naming";
51
- return { state: "unknown", reason: IDENTITY_UNAVAILABLE, message };
52
- }
53
- /**
54
- * Map scheduler read failures to unknown.
55
- * @param error - Thrown value
56
- * @returns Unknown scheduler result
57
- */
58
- function schedulerUnreadable(error) {
59
- const message = error instanceof Error && error.message.trim().length > 0
60
- ? error.message
61
- : "Harness scheduler could not be read";
62
- return { state: "unknown", reason: SCHEDULER_UNREADABLE, message };
63
- }
64
- /**
65
- * Create the Automations live-status probe.
66
- * @param dependencies - Project root plus injectable scheduler seams
67
- * @returns Probe registered under {@link AUTOMATIONS_PROBE_ID}
68
- */
69
- export function createAutomationsProbe(dependencies) {
70
- const resolveIdentity = dependencies.resolveIdentity ?? defaultResolveIdentity;
71
- const listCodex = dependencies.listCodexAutomations ?? defaultListCodexAutomations;
72
- const readClaudeListing = dependencies.readClaudeScheduleListing ?? defaultReadClaudeScheduleListing;
73
- const codexReadable = dependencies.codexAutomationsDirReadable ?? defaultCodexDirReadable;
74
- const automationsDir = dependencies.automationsDir ?? resolveDefaultCodexAutomationsDir();
75
- return {
76
- id: AUTOMATIONS_PROBE_ID,
77
- timeoutMs: PROBE_TIMEOUT_MS,
78
- run: async (signal) => {
79
- const base = {
80
- cwd: dependencies.cwd,
81
- signal,
82
- resolveIdentity,
83
- listCodex,
84
- readClaudeListing,
85
- codexReadable,
86
- automationsDir,
87
- };
88
- return runAutomationsProbe(dependencies.listClaudeAutomations === undefined
89
- ? base
90
- : {
91
- ...base,
92
- listClaudeAutomations: dependencies.listClaudeAutomations,
93
- });
94
- },
95
- };
96
- }
97
- /**
98
- * Execute one automations probe cycle.
99
- * @param input - Bound collaborators for this request
100
- * @returns Probe result
101
- */
102
- async function runAutomationsProbe(input) {
103
- const identity = await input.resolveIdentity(input.cwd, input.signal).then(value => ({ ok: true, value }), error => ({ ok: false, error }));
104
- if (!identity.ok) {
105
- return identityUnknown(identity.error);
106
- }
107
- if (await input.codexReadable(input.automationsDir, input.signal)) {
108
- try {
109
- return mapHarnessAutomations({
110
- prefix: identity.value.automationPrefix,
111
- runtime: "codex",
112
- observations: await input.listCodex({
113
- automationsDir: input.automationsDir,
114
- automationPrefix: identity.value.automationPrefix,
115
- signal: input.signal,
116
- }),
117
- });
118
- }
119
- catch (error) {
120
- return schedulerUnreadable(error);
121
- }
122
- }
123
- const listing = await input.readClaudeListing(input.signal).then(value => ({ ok: true, value }), error => ({ ok: false, error }));
124
- if (!listing.ok) {
125
- return schedulerUnreadable(listing.error);
126
- }
127
- if (listing.value === null || listing.value === undefined) {
128
- return {
129
- state: "unknown",
130
- reason: SCHEDULER_UNAVAILABLE,
131
- message: SCHEDULER_UNAVAILABLE_MESSAGE,
132
- };
133
- }
134
- try {
135
- const listClaude = input.listClaudeAutomations ?? (await loadDefaultListClaudeAutomations());
136
- return mapHarnessAutomations({
137
- prefix: identity.value.automationPrefix,
138
- runtime: "claude",
139
- observations: listClaude({
140
- scheduleListing: listing.value,
141
- automationPrefix: identity.value.automationPrefix,
142
- }),
143
- });
144
- }
145
- catch (error) {
146
- return schedulerUnreadable(error);
147
- }
148
- }
149
- //# sourceMappingURL=ui-automations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-automations.js","sourceRoot":"","sources":["../../src/cli/ui-automations.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,gCAAgC,EAChC,sBAAsB,EACtB,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AAEtC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,oBAAoB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BAAmB,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;AACH,CAAC"}
@@ -1,44 +0,0 @@
1
- /**
2
- * Pure join of ci.yml inputs, Lisa gate config, and secret presence for the
3
- * CI Quality jobs Active column.
4
- * @module cli/ui-ci-quality-jobs-compute
5
- */
6
- import { type JsonObject, type JsonValue } from "../sync/json-path.js";
7
- /** Inputs the project's `ci.yml` forwards into Lisa's quality workflow. */
8
- export interface CiWorkflowInputs {
9
- readonly skipJobs: readonly string[];
10
- readonly complianceFramework: string;
11
- readonly requireApproval: boolean;
12
- }
13
- /** Presence-only secret inventory, or an honest unknown. */
14
- export type RepoSecretsPresence = {
15
- readonly state: "value";
16
- readonly names: ReadonlySet<string>;
17
- } | {
18
- readonly state: "unknown";
19
- readonly reason: string;
20
- readonly message: string;
21
- };
22
- /** One Quality-jobs row for the Active column. */
23
- export type CiQualityJobEntry = {
24
- readonly [key: string]: JsonValue;
25
- readonly id: string;
26
- readonly label: string;
27
- /** `true` active, `false` off, `null` unknown (never a false off). */
28
- readonly active: boolean | null;
29
- readonly reason: string;
30
- };
31
- /** Structured probe value for the Quality jobs table. */
32
- export type CiQualityJobsValue = {
33
- readonly [key: string]: JsonValue;
34
- readonly jobs: CiQualityJobEntry[];
35
- };
36
- /**
37
- * Join ci.yml inputs, gate config, and secret presence into Active-column rows.
38
- * @param inputs - Parsed ci.yml quality inputs
39
- * @param config - Merged Lisa config
40
- * @param secrets - Presence-only secret inventory
41
- * @returns Probe value for the Quality jobs table
42
- */
43
- export declare function computeCiQualityJobs(inputs: CiWorkflowInputs, config: JsonObject, secrets: RepoSecretsPresence): CiQualityJobsValue;
44
- //# sourceMappingURL=ui-ci-quality-jobs-compute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-ci-quality-jobs-compute.d.ts","sourceRoot":"","sources":["../../src/cli/ui-ci-quality-jobs-compute.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAEL,KAAK,UAAU,EACf,KAA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