@codyswann/lisa 5.13.0 → 5.14.1

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 (306) hide show
  1. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  2. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  3. package/dist/core/upstream-evidence-manifest.js +22 -150
  4. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  5. package/dist/strategies/merge.d.ts +1 -1
  6. package/dist/strategies/merge.d.ts.map +1 -1
  7. package/dist/strategies/merge.js +18 -8
  8. package/dist/strategies/merge.js.map +1 -1
  9. package/package.json +4 -4
  10. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  11. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  12. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -4
  13. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +2 -2
  14. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  15. package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +1 -1
  16. package/plugins/lisa/.codex-plugin/skills/lisa-posthog-access/SKILL.md +2 -0
  17. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
  18. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/SKILL.md +2 -0
  19. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
  20. package/plugins/lisa/hooks/inject-resolved-config.mjs +1 -0
  21. package/plugins/lisa/rules/reference/config-resolution.md +28 -0
  22. package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -4
  23. package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +2 -2
  24. package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  25. package/plugins/lisa/skills/lisa-monitor/SKILL.md +1 -1
  26. package/plugins/lisa/skills/lisa-posthog-access/SKILL.md +2 -0
  27. package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
  28. package/plugins/lisa/skills/lisa-setup-remote-env/SKILL.md +2 -0
  29. package/plugins/lisa/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
  30. package/plugins/lisa-agy/plugin.json +1 -1
  31. package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -4
  32. package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +2 -2
  33. package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  34. package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +1 -1
  35. package/plugins/lisa-agy/skills/lisa-posthog-access/SKILL.md +2 -0
  36. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
  37. package/plugins/lisa-agy/skills/lisa-setup-remote-env/SKILL.md +2 -0
  38. package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
  39. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  41. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  42. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  46. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +1 -0
  48. package/plugins/lisa-copilot/rules/reference/config-resolution.md +28 -0
  49. package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -4
  50. package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +2 -2
  51. package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  52. package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +1 -1
  53. package/plugins/lisa-copilot/skills/lisa-posthog-access/SKILL.md +2 -0
  54. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
  55. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/SKILL.md +2 -0
  56. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
  57. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +1 -0
  59. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +28 -0
  60. package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -4
  61. package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +2 -2
  62. package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  63. package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +1 -1
  64. package/plugins/lisa-cursor/skills/lisa-posthog-access/SKILL.md +2 -0
  65. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
  66. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/SKILL.md +2 -0
  67. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
  68. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  70. package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +1 -0
  71. package/plugins/lisa-devin/rules/reference/config-resolution.md +28 -0
  72. package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -4
  73. package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +2 -2
  74. package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  75. package/plugins/lisa-devin/skills/lisa-monitor/SKILL.md +1 -1
  76. package/plugins/lisa-devin/skills/lisa-posthog-access/SKILL.md +2 -0
  77. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
  78. package/plugins/lisa-devin/skills/lisa-setup-remote-env/SKILL.md +2 -0
  79. package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
  80. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  82. package/plugins/lisa-expo/.codex-plugin/skills/journey-guidance/SKILL.md +9 -4
  83. package/plugins/lisa-expo/.codex-plugin/skills/ops-check-logs/SKILL.md +1 -1
  84. package/plugins/lisa-expo/.codex-plugin/skills/ops-deploy/SKILL.md +1 -1
  85. package/plugins/lisa-expo/.codex-plugin/skills/ops-monitor-errors/SKILL.md +16 -4
  86. package/plugins/lisa-expo/.codex-plugin/skills/ops-monitor-errors/agents/openai.yaml +2 -2
  87. package/plugins/lisa-expo/.codex-plugin/skills/play-store-access/SKILL.md +42 -7
  88. package/plugins/lisa-expo/agents/ops-specialist.md +3 -3
  89. package/plugins/lisa-expo/skills/journey-guidance/SKILL.md +9 -4
  90. package/plugins/lisa-expo/skills/ops-check-logs/SKILL.md +1 -1
  91. package/plugins/lisa-expo/skills/ops-deploy/SKILL.md +1 -1
  92. package/plugins/lisa-expo/skills/ops-monitor-errors/SKILL.md +15 -3
  93. package/plugins/lisa-expo/skills/ops-monitor-errors/agents/openai.yaml +2 -2
  94. package/plugins/lisa-expo/skills/play-store-access/SKILL.md +42 -7
  95. package/plugins/lisa-expo-agy/agents/ops-specialist.md +3 -3
  96. package/plugins/lisa-expo-agy/plugin.json +1 -1
  97. package/plugins/lisa-expo-agy/skills/journey-guidance/SKILL.md +9 -4
  98. package/plugins/lisa-expo-agy/skills/ops-check-logs/SKILL.md +1 -1
  99. package/plugins/lisa-expo-agy/skills/ops-deploy/SKILL.md +1 -1
  100. package/plugins/lisa-expo-agy/skills/ops-monitor-errors/SKILL.md +15 -3
  101. package/plugins/lisa-expo-agy/skills/play-store-access/SKILL.md +42 -7
  102. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-expo-copilot/agents/ops-specialist.agent.md +3 -3
  104. package/plugins/lisa-expo-copilot/skills/journey-guidance/SKILL.md +9 -4
  105. package/plugins/lisa-expo-copilot/skills/ops-check-logs/SKILL.md +1 -1
  106. package/plugins/lisa-expo-copilot/skills/ops-deploy/SKILL.md +1 -1
  107. package/plugins/lisa-expo-copilot/skills/ops-monitor-errors/SKILL.md +15 -3
  108. package/plugins/lisa-expo-copilot/skills/play-store-access/SKILL.md +42 -7
  109. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-expo-cursor/agents/ops-specialist.md +3 -3
  111. package/plugins/lisa-expo-cursor/skills/journey-guidance/SKILL.md +9 -4
  112. package/plugins/lisa-expo-cursor/skills/ops-check-logs/SKILL.md +1 -1
  113. package/plugins/lisa-expo-cursor/skills/ops-deploy/SKILL.md +1 -1
  114. package/plugins/lisa-expo-cursor/skills/ops-monitor-errors/SKILL.md +15 -3
  115. package/plugins/lisa-expo-cursor/skills/play-store-access/SKILL.md +42 -7
  116. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  118. package/plugins/lisa-expo-devin/agents/ops-specialist.md +3 -3
  119. package/plugins/lisa-expo-devin/skills/journey-guidance/SKILL.md +9 -4
  120. package/plugins/lisa-expo-devin/skills/ops-check-logs/SKILL.md +1 -1
  121. package/plugins/lisa-expo-devin/skills/ops-deploy/SKILL.md +1 -1
  122. package/plugins/lisa-expo-devin/skills/ops-monitor-errors/SKILL.md +15 -3
  123. package/plugins/lisa-expo-devin/skills/play-store-access/SKILL.md +42 -7
  124. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  125. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  126. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  127. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  128. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  129. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  130. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  131. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  132. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  133. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  134. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  135. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  136. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  137. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  138. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  139. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  140. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  141. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  142. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  143. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  144. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  145. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  146. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  147. package/plugins/lisa-rails/.codex-plugin/skills/journey-guidance/SKILL.md +3 -1
  148. package/plugins/lisa-rails/skills/journey-guidance/SKILL.md +3 -1
  149. package/plugins/lisa-rails-agy/plugin.json +1 -1
  150. package/plugins/lisa-rails-agy/skills/journey-guidance/SKILL.md +3 -1
  151. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  152. package/plugins/lisa-rails-copilot/skills/journey-guidance/SKILL.md +3 -1
  153. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-rails-cursor/skills/journey-guidance/SKILL.md +3 -1
  155. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  156. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  157. package/plugins/lisa-rails-devin/skills/journey-guidance/SKILL.md +3 -1
  158. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  159. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  160. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  161. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  164. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  165. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  166. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  167. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  168. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  169. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  170. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  171. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  172. package/plugins/src/base/hooks/inject-resolved-config.mjs +1 -0
  173. package/plugins/src/base/rules/reference/config-resolution.md +28 -0
  174. package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -4
  175. package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +2 -2
  176. package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  177. package/plugins/src/base/skills/lisa-monitor/SKILL.md +1 -1
  178. package/plugins/src/base/skills/lisa-posthog-access/SKILL.md +2 -0
  179. package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
  180. package/plugins/src/base/skills/lisa-setup-remote-env/SKILL.md +2 -0
  181. package/plugins/src/base/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
  182. package/plugins/src/expo/agents/ops-specialist.md +3 -3
  183. package/plugins/src/expo/skills/journey-guidance/SKILL.md +9 -4
  184. package/plugins/src/expo/skills/ops-check-logs/SKILL.md +1 -1
  185. package/plugins/src/expo/skills/ops-deploy/SKILL.md +1 -1
  186. package/plugins/src/expo/skills/ops-monitor-errors/SKILL.md +15 -3
  187. package/plugins/src/expo/skills/play-store-access/SKILL.md +42 -7
  188. package/plugins/src/rails/skills/journey-guidance/SKILL.md +3 -1
  189. package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -142
  190. package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
  191. package/plugins/lisa-expo/.codex-plugin/skills/jira-create/SKILL.md +0 -163
  192. package/plugins/lisa-expo/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
  193. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +0 -112
  194. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
  195. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  196. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +0 -209
  197. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
  198. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +0 -323
  199. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/parse-plan.py +0 -400
  200. package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/SKILL.md +0 -29
  201. package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
  202. package/plugins/lisa-expo/skills/jira-add-journey/SKILL.md +0 -140
  203. package/plugins/lisa-expo/skills/jira-add-journey/agents/openai.yaml +0 -4
  204. package/plugins/lisa-expo/skills/jira-create/SKILL.md +0 -161
  205. package/plugins/lisa-expo/skills/jira-create/agents/openai.yaml +0 -4
  206. package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +0 -110
  207. package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +0 -4
  208. package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  209. package/plugins/lisa-expo/skills/jira-journey/SKILL.md +0 -207
  210. package/plugins/lisa-expo/skills/jira-journey/agents/openai.yaml +0 -4
  211. package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +0 -323
  212. package/plugins/lisa-expo/skills/jira-journey/scripts/parse-plan.py +0 -400
  213. package/plugins/lisa-expo/skills/jira-verify/SKILL.md +0 -27
  214. package/plugins/lisa-expo/skills/jira-verify/agents/openai.yaml +0 -4
  215. package/plugins/lisa-expo-agy/skills/jira-add-journey/SKILL.md +0 -140
  216. package/plugins/lisa-expo-agy/skills/jira-create/SKILL.md +0 -161
  217. package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +0 -110
  218. package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  219. package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +0 -207
  220. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +0 -323
  221. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/parse-plan.py +0 -400
  222. package/plugins/lisa-expo-agy/skills/jira-verify/SKILL.md +0 -27
  223. package/plugins/lisa-expo-copilot/skills/jira-add-journey/SKILL.md +0 -140
  224. package/plugins/lisa-expo-copilot/skills/jira-create/SKILL.md +0 -161
  225. package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +0 -110
  226. package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  227. package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +0 -207
  228. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +0 -323
  229. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/parse-plan.py +0 -400
  230. package/plugins/lisa-expo-copilot/skills/jira-verify/SKILL.md +0 -27
  231. package/plugins/lisa-expo-cursor/skills/jira-add-journey/SKILL.md +0 -140
  232. package/plugins/lisa-expo-cursor/skills/jira-create/SKILL.md +0 -161
  233. package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +0 -110
  234. package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  235. package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +0 -207
  236. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +0 -323
  237. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/parse-plan.py +0 -400
  238. package/plugins/lisa-expo-cursor/skills/jira-verify/SKILL.md +0 -27
  239. package/plugins/lisa-expo-devin/skills/jira-add-journey/SKILL.md +0 -140
  240. package/plugins/lisa-expo-devin/skills/jira-create/SKILL.md +0 -161
  241. package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +0 -110
  242. package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  243. package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +0 -207
  244. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +0 -323
  245. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/parse-plan.py +0 -400
  246. package/plugins/lisa-expo-devin/skills/jira-verify/SKILL.md +0 -27
  247. package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -81
  248. package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
  249. package/plugins/lisa-rails/.codex-plugin/skills/jira-create/SKILL.md +0 -102
  250. package/plugins/lisa-rails/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
  251. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +0 -103
  252. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
  253. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  254. package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/SKILL.md +0 -67
  255. package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
  256. package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/SKILL.md +0 -28
  257. package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
  258. package/plugins/lisa-rails/skills/jira-add-journey/SKILL.md +0 -79
  259. package/plugins/lisa-rails/skills/jira-add-journey/agents/openai.yaml +0 -4
  260. package/plugins/lisa-rails/skills/jira-create/SKILL.md +0 -100
  261. package/plugins/lisa-rails/skills/jira-create/agents/openai.yaml +0 -4
  262. package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +0 -101
  263. package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +0 -4
  264. package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  265. package/plugins/lisa-rails/skills/jira-journey/SKILL.md +0 -65
  266. package/plugins/lisa-rails/skills/jira-journey/agents/openai.yaml +0 -4
  267. package/plugins/lisa-rails/skills/jira-verify/SKILL.md +0 -26
  268. package/plugins/lisa-rails/skills/jira-verify/agents/openai.yaml +0 -4
  269. package/plugins/lisa-rails-agy/skills/jira-add-journey/SKILL.md +0 -79
  270. package/plugins/lisa-rails-agy/skills/jira-create/SKILL.md +0 -100
  271. package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +0 -101
  272. package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  273. package/plugins/lisa-rails-agy/skills/jira-journey/SKILL.md +0 -65
  274. package/plugins/lisa-rails-agy/skills/jira-verify/SKILL.md +0 -26
  275. package/plugins/lisa-rails-copilot/skills/jira-add-journey/SKILL.md +0 -79
  276. package/plugins/lisa-rails-copilot/skills/jira-create/SKILL.md +0 -100
  277. package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +0 -101
  278. package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  279. package/plugins/lisa-rails-copilot/skills/jira-journey/SKILL.md +0 -65
  280. package/plugins/lisa-rails-copilot/skills/jira-verify/SKILL.md +0 -26
  281. package/plugins/lisa-rails-cursor/skills/jira-add-journey/SKILL.md +0 -79
  282. package/plugins/lisa-rails-cursor/skills/jira-create/SKILL.md +0 -100
  283. package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +0 -101
  284. package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  285. package/plugins/lisa-rails-cursor/skills/jira-journey/SKILL.md +0 -65
  286. package/plugins/lisa-rails-cursor/skills/jira-verify/SKILL.md +0 -26
  287. package/plugins/lisa-rails-devin/skills/jira-add-journey/SKILL.md +0 -79
  288. package/plugins/lisa-rails-devin/skills/jira-create/SKILL.md +0 -100
  289. package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +0 -101
  290. package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  291. package/plugins/lisa-rails-devin/skills/jira-journey/SKILL.md +0 -65
  292. package/plugins/lisa-rails-devin/skills/jira-verify/SKILL.md +0 -26
  293. package/plugins/src/expo/skills/jira-add-journey/SKILL.md +0 -140
  294. package/plugins/src/expo/skills/jira-create/SKILL.md +0 -161
  295. package/plugins/src/expo/skills/jira-evidence/SKILL.md +0 -110
  296. package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  297. package/plugins/src/expo/skills/jira-journey/SKILL.md +0 -207
  298. package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +0 -323
  299. package/plugins/src/expo/skills/jira-journey/scripts/parse-plan.py +0 -400
  300. package/plugins/src/expo/skills/jira-verify/SKILL.md +0 -27
  301. package/plugins/src/rails/skills/jira-add-journey/SKILL.md +0 -79
  302. package/plugins/src/rails/skills/jira-create/SKILL.md +0 -100
  303. package/plugins/src/rails/skills/jira-evidence/SKILL.md +0 -101
  304. package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  305. package/plugins/src/rails/skills/jira-journey/SKILL.md +0 -65
  306. package/plugins/src/rails/skills/jira-verify/SKILL.md +0 -26
@@ -1,103 +0,0 @@
1
- ---
2
- name: jira-evidence
3
- description: "Post verification evidence…"
4
- ---
5
- Post verification evidence: upload it to the GitHub evidence release, update the PR description, attach it to the JIRA ticket with a comment, and move the ticket to review only when a review status is configured.
6
-
7
-
8
- # JIRA Evidence Posting
9
-
10
- Upload captured evidence and generated templates to GitHub PR description and JIRA ticket. This skill is the posting step — it assumes evidence files and comment templates already exist in the evidence directory.
11
-
12
- ## Arguments
13
-
14
- `$ARGUMENTS`: `<TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>`
15
-
16
- - `TICKET_ID` (required): JIRA ticket key (e.g., `PROJ-123`)
17
- - `EVIDENCE_DIR` (required): Directory containing evidence and templates (e.g., `./evidence`)
18
- - `PR_NUMBER` (required): GitHub PR number to update description
19
-
20
- ## Prerequisites
21
-
22
- - `python3` for destination validation. Configure `server` as a bare HTTPS origin:
23
- no userinfo, path prefix, query, or fragment. Invalid destinations are rejected
24
- before Basic authorization is constructed.
25
- - `JIRA_API_TOKEN` environment variable set
26
- - a jira-cli config — `.lisa/jira-cli/.config.yml` if the `setup-jira-cli`
27
- SessionStart hook wrote one, otherwise `~/.config/.jira/.config.yml`. `server`
28
- and `login` are read from whichever is used, and the fallback is announced on
29
- stderr rather than taken silently.
30
- - `gh` CLI authenticated
31
- - Evidence directory containing:
32
- - Evidence files: `NN-name-viewport.png` (screenshots) and/or `NN-name.txt`/`NN-name.json` (text evidence)
33
- - `comment.txt` — JIRA wiki markup (generated by `generate-templates.py`)
34
- - `comment.md` — GitHub markdown (generated by `generate-templates.py`)
35
-
36
- ## Usage
37
-
38
- Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
39
-
40
- If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
41
-
42
- ```bash
43
- unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
44
- export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
45
- ```
46
-
47
- Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
48
-
49
- ```bash
50
- LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>
51
- ```
52
-
53
- ### Example
54
-
55
- ```bash
56
- LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
57
- ```
58
-
59
- `post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
60
-
61
- ## What It Does
62
-
63
- 1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
64
- 2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Validates `PR_NUMBER` as a positive integer, uploads each evidence file as `pr-<PR_NUMBER>-<file>` via `gh release upload --clobber`, creating CDN URLs, then lists the release and exits 1 naming any uploaded asset that is missing. Before uploading it refuses an evidence name outside `NN-name.(png|txt|json)` with letters, digits, `.`, `_` and `-` only (GitHub rewrites other characters in asset names), and before editing the description it exits 1 naming any Markdown link or image target in `comment.md` (inline, titled, `<url>`-bracketed or a reference definition such as `[ref]: url`) that points into that release but is not `pr-<PR_NUMBER>-…` or was not uploaded by this run (a stale asset from an earlier run does not count; release URLs quoted as plain text in inlined evidence are ignored). `--clobber` therefore only ever replaces this pull request's own earlier upload.
65
- 3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body using `gh pr edit`
66
- 4. **Upload JIRA attachments** — Uploads image evidence via REST API v3 so `!filename.png!` wiki markup renders inline
67
- 5. **Post JIRA comment** — Posts `comment.txt` as a new comment via REST API v2 (wiki markup)
68
- 6. **Move ticket to the configured review status** — Resolves `jira.workflow.review` (or the `jira.workflow.code_review` alias) from `.lisa.config.json` / `.lisa.config.local.json` and transitions via `jira issue move`. `review` is optional; when unset, the ticket stays in `claimed` and this step is skipped. Never transition to a status not named in `config.jira.workflow`. If the configured status is not a valid transition from the current state, log a warning and skip.
69
-
70
- ## Evidence Naming Conventions
71
-
72
- - Image evidence: `NN-name-viewport.png` (e.g., `01-search-step-desktop.png`)
73
- - Text evidence: `NN-name.txt` or `NN-name.json` (e.g., `01-health-check.json`)
74
- - Release assets: local files keep their `NN-` names; in the shared evidence release each one is stored as `pr-<number>-<file>` (for PR 42, `pr-42-01-health-check.json`), so two pull requests with a same-named file never overwrite each other's evidence. JIRA attachments keep the local name.
75
-
76
- ## Troubleshooting
77
-
78
- ### Images not rendering in GitHub PR
79
-
80
- Images must be in the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`). Create it when it is missing, and
81
- check it is not at GitHub's 1000-file limit, with:
82
-
83
- ```bash
84
- node scripts/lisa-work-item.mjs evidence-release --ensure
85
- ```
86
-
87
- A nearly full release rolls over to the next overflow release (`<release>-2`,
88
- `-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
89
- is full (unset it, or pin a release with room), every overflow release of the
90
- period is full (prune old evidence with
91
- `node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
92
- does not rotate yet, set `verification.completion.evidenceRelease` in
93
- `.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
94
- release name is too long to take an overflow suffix (shorten it); older evidence
95
- keeps validating.
96
-
97
- ### JIRA comment shows `!filename.png!` as text (not image)
98
-
99
- The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment.
100
-
101
- ### JIRA API returns 403 on attachment upload
102
-
103
- Ensure `JIRA_API_TOKEN` is set and `login` in the resolved jira-cli config (`.lisa/jira-cli/.config.yml`, else `~/.config/.jira/.config.yml`) matches your Atlassian account email.
@@ -1,4 +0,0 @@
1
- display_name: "Jira Evidence"
2
- short_description: "Post verification evidence…"
3
- default_prompt:
4
- - "Use $jira-evidence: Post verification evidence…."
@@ -1,397 +0,0 @@
1
- #!/usr/bin/env bash
2
- # post-evidence.sh — Upload evidence and post to JIRA + GitHub PR description
3
- #
4
- # Usage:
5
- # bash post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>
6
- #
7
- # Prerequisites:
8
- # - JIRA_API_TOKEN env var set
9
- # - a jira-cli config, resolved in this order (see "CONFIG RESOLUTION" below):
10
- # 1. ${PROJECT_DIR}/.lisa/jira-cli/.config.yml (written by the
11
- # setup-jira-cli SessionStart hook from the JIRA_* environment)
12
- # 2. ~/.config/.jira/.config.yml (a developer's own
13
- # `jira init` config; announced on stderr when it is used)
14
- # - gh CLI authenticated
15
- #
16
- # What it does:
17
- # 1. Uploads evidence files to the configured GitHub evidence release
18
- # (default 'pr-assets'; see verification.completion.evidenceRelease) as
19
- # pr-<PR_NUMBER>-<file>, then confirms every one is listed there
20
- # 2. Updates the GitHub PR description with evidence/comment.md
21
- # 3. Uploads image evidence as JIRA attachments
22
- # 4. Posts/updates the JIRA comment with evidence/comment.txt
23
- # 5. Moves the JIRA ticket to the configured jira.workflow.review status
24
- # (skipped entirely when review is unconfigured — stays in claimed)
25
-
26
- set -euo pipefail
27
-
28
- TICKET_ID="${1:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
29
- EVIDENCE_DIR="${2:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
30
- PR_NUMBER="${3:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
31
-
32
- # Every release asset is named pr-${PR_NUMBER}-<file>, so the number must be a
33
- # canonical positive integer before anything is uploaded: an empty, signed or
34
- # padded value would produce a name another pull request could also produce.
35
- if [[ ! "$PR_NUMBER" =~ ^[1-9][0-9]*$ ]]; then
36
- echo "ERROR: PR_NUMBER must be a positive integer, got '$PR_NUMBER'" >&2
37
- exit 1
38
- fi
39
-
40
- # ─────────────────────────────────────────────────────────────────────────────
41
- # CONFIG RESOLUTION
42
- #
43
- # The setup-jira-cli SessionStart hook writes ${PROJECT_DIR}/.lisa/jira-cli/
44
- # .config.yml. Nothing read it — this script looked only at the developer's own
45
- # ~/.config/.jira/.config.yml and exited 1 telling the operator to run
46
- # `jira init`, so on a headless JIRA project the hook was an inert control.
47
- # See CodySwannGT/lisa#2767.
48
- #
49
- # PROJECT_DIR is resolved with the same rule as the hook that writes the file,
50
- # deliberately character-for-character: CLAUDE_PROJECT_DIR (the harness's own
51
- # declaration of the root, inert on harnesses that never set it), then the git
52
- # toplevel, then pwd. A session launched from a subdirectory otherwise reads a
53
- # directory it never wrote — the #2768 defect, on the read side.
54
- #
55
- # Nothing here writes to ~/.config/.jira. That file is a developer's personal
56
- # jira-cli state; it is read as a fallback and never created or modified.
57
- #
58
- # NOTE: the `.lisa.config.json` reads in Step 5 below are still resolved from
59
- # the process working directory. That is pre-existing and out of scope here.
60
- # ─────────────────────────────────────────────────────────────────────────────
61
- PROJECT_DIR="${CLAUDE_PROJECT_DIR:-}"
62
- if [[ -z "${PROJECT_DIR}" || ! -d "${PROJECT_DIR}" ]]; then
63
- PROJECT_DIR="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
64
- fi
65
- PROJECT_JIRA_CONFIG="${PROJECT_DIR}/.lisa/jira-cli/.config.yml"
66
- HOME_JIRA_CONFIG="${HOME}/.config/.jira/.config.yml"
67
-
68
- if [[ -f "$PROJECT_JIRA_CONFIG" ]]; then
69
- JIRA_CONFIG="$PROJECT_JIRA_CONFIG"
70
- elif [[ -f "$HOME_JIRA_CONFIG" ]]; then
71
- # Announced, never silent. A silent fall-through to the developer's own file
72
- # is precisely how the Lisa-written config stayed unconsumed without anyone
73
- # noticing, and on a headless runner there is no such file to fall back to.
74
- echo "NOTE: no Lisa-written jira-cli config at $PROJECT_JIRA_CONFIG" >&2
75
- echo " falling back to the developer config at $HOME_JIRA_CONFIG" >&2
76
- JIRA_CONFIG="$HOME_JIRA_CONFIG"
77
- else
78
- echo "ERROR: jira-cli config not found." >&2
79
- echo " Lisa-written config (expected): $PROJECT_JIRA_CONFIG" >&2
80
- echo " developer config (fallback): $HOME_JIRA_CONFIG" >&2
81
- echo " Fix: export JIRA_SERVER, JIRA_LOGIN (and JIRA_INSTALLATION," >&2
82
- echo " JIRA_PROJECT) and start a new session so the setup-jira-cli hook" >&2
83
- echo " writes the project config — or run 'jira init' locally." >&2
84
- exit 1
85
- fi
86
- JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
87
- JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
88
- # Validate before constructing credentials; use only the approved HTTPS origin.
89
- JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
90
- import ipaddress
91
- import re
92
- import sys
93
- from urllib.parse import urlsplit
94
-
95
- raw = sys.argv[1]
96
- try:
97
- if not raw or any(c <= " " or c >= "\x7f" for c in raw):
98
- raise ValueError()
99
- url = urlsplit(raw)
100
- if (url.scheme != "https" or "@" in url.netloc or "?" in raw
101
- or "#" in raw or url.path not in ("", "/") or not url.hostname):
102
- raise ValueError()
103
- host = url.hostname
104
- if url.netloc.startswith("["):
105
- host = f"[{ipaddress.IPv6Address(host).compressed}]"
106
- elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
107
- raise ValueError()
108
- port = url.port
109
- if port == 0:
110
- raise ValueError()
111
- suffix = f":{port}" if port is not None and port != 443 else ""
112
- print(f"https://{host}{suffix}")
113
- except ValueError:
114
- sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
115
- PY_ORIGIN
116
- )
117
-
118
- GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
119
- # The evidence release comes from the one resolver every writer shares, so a
120
- # project's `verification.completion.evidenceRelease` (for example the rotating
121
- # `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
122
- # assets; a hardcoded `pr-assets` filled up and every upload then failed with a
123
- # raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
124
- # is absent and, when it is nearly full, rolls over to the next overflow
125
- # release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
126
- # It refuses, in plain words, only when a pinned release is full, every
127
- # overflow release is full, the release name is too long to take an overflow
128
- # suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
129
- # name the release uploaded here. A host whose Lisa predates the resolver keeps
130
- # the legacy release.
131
- #
132
- # LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
133
- # generate-templates.py wrote match these uploads. The resolver still checks
134
- # that name and the release's capacity; it reads the variable itself.
135
- RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
136
- WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
137
- if [[ -f "$WORK_ITEM_CLI" ]]; then
138
- if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
139
- echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
140
- exit 1
141
- fi
142
- fi
143
-
144
- if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
145
- echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
146
- exit 1
147
- fi
148
-
149
- # Collect numbered evidence files (images + text)
150
- SCREENSHOTS=()
151
- while IFS= read -r -d '' f; do
152
- SCREENSHOTS+=("$f")
153
- done < <(find "$EVIDENCE_DIR" -maxdepth 1 -name '[0-9][0-9]-*.png' -print0 | sort -z)
154
-
155
- TEXT_EVIDENCE=()
156
- while IFS= read -r -d '' f; do
157
- TEXT_EVIDENCE+=("$f")
158
- done < <(find "$EVIDENCE_DIR" -maxdepth 1 \( -name '[0-9][0-9]-*.txt' -o -name '[0-9][0-9]-*.json' \) ! -name 'comment.txt' -print0 | sort -z)
159
-
160
- # Bash 3.2 treats an empty array as unset under nounset.
161
- ALL_EVIDENCE=(${SCREENSHOTS[@]+"${SCREENSHOTS[@]}"} ${TEXT_EVIDENCE[@]+"${TEXT_EVIDENCE[@]}"})
162
-
163
- if [[ ${#ALL_EVIDENCE[@]} -eq 0 ]]; then
164
- echo "ERROR: No numbered evidence files found in $EVIDENCE_DIR (expected NN-*.png, NN-*.txt, or NN-*.json)" >&2
165
- exit 1
166
- fi
167
-
168
- echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
169
-
170
- # GitHub rewrites special characters (spaces, brackets, non-ASCII) in release
171
- # asset names, so a link built from the local name would point at an asset that
172
- # does not exist under that name. Refuse such names before anything is uploaded.
173
- for FILE in "${ALL_EVIDENCE[@]}"; do
174
- if [[ ! "$(basename "$FILE")" =~ ^[0-9]{2}-[A-Za-z0-9._-]+\.(png|txt|json)$ ]]; then
175
- echo "ERROR: evidence file name '$(basename "$FILE")' is not release-safe." >&2
176
- echo " Rename it to NN-name.ext using only letters, digits, '.', '_' and '-'" >&2
177
- echo " (e.g. '01-search step.png' -> '01-search-step.png'), then re-run generate-templates.py." >&2
178
- exit 1
179
- fi
180
- done
181
-
182
- # The description's links are checked before uploading and again against the
183
- # release after uploading, so it must exist before anything is uploaded.
184
- COMMENT_MD="$EVIDENCE_DIR/comment.md"
185
- if [[ ! -f "$COMMENT_MD" ]]; then
186
- echo "ERROR: $COMMENT_MD not found — run generate-templates.py first" >&2
187
- exit 1
188
- fi
189
-
190
- # Print every Markdown link or image target in comment.md, one per line. Every
191
- # Markdown target form counts:
192
- # inline ](url) ](url "title") ](<url>) ](<url> "title")
193
- # reference [ref]: url [ref]: <url> "title" (up to 3 leading spaces)
194
- # Only link targets count: text evidence inlined into comment.md may quote a
195
- # release URL as plain text, and that must not fail the run.
196
- comment_links() {
197
- { grep -oE '\]\(<?[^)<>[:space:]]+' "$COMMENT_MD" || true; } | sed -E 's/^\]\(<?//'
198
- { grep -oE '^ {0,3}\[[^]]+\]:[[:space:]]*<?[^<>[:space:]]+' "$COMMENT_MD" || true; } |
199
- sed -E 's/^ {0,3}\[[^]]+\]:[[:space:]]*<?//'
200
- }
201
-
202
- # A link to THIS pull request's own pr-${PR_NUMBER}- asset in a different
203
- # release of this repository means the templates were generated against one
204
- # release and this run uploads to another (a roll-over to `<release>-2` in
205
- # between, CodySwannGT/lisa#4838): the link would 404, so refuse it. The check
206
- # runs before anything is uploaded, so a refused run leaves no copies behind in
207
- # a release the operator then re-pins away from (CodySwannGT/lisa#4856).
208
- # Any other cross-release link (another PR's evidence, or an older release's
209
- # asset linked on purpose) passes through untouched: regenerating the
210
- # templates cannot remove a hand-written link, so refusing it would loop.
211
- RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
212
- CROSS_RELEASE_LINKS=0
213
- while IFS= read -r LINK; do
214
- [[ "$LINK" == *"$RELEASE_PREFIX"* ]] || continue
215
- LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
216
- LINK_TAG="${LINK_TAG%%/*}"
217
- [[ "$LINK_TAG" != "$RELEASE_TAG" ]] || continue
218
- [[ "${LINK##*/}" == "pr-${PR_NUMBER}-"* ]] || continue
219
- echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploads to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG. If this link was written by hand, remove it or re-upload the asset to '$RELEASE_TAG'." >&2
220
- CROSS_RELEASE_LINKS=1
221
- done < <(comment_links)
222
- if [[ $CROSS_RELEASE_LINKS -ne 0 ]]; then
223
- echo "No evidence was uploaded." >&2
224
- exit 1
225
- fi
226
-
227
- # Compute JIRA auth early (used in steps 3 and 4)
228
- JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
229
-
230
- # ── Step 1: Upload to the GitHub evidence release ───────────────────────────
231
- echo ""
232
- echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
233
-
234
- # Every pull request shares this one release, and --clobber deletes a
235
- # same-named asset before uploading. Bare NN- names collided across pull
236
- # requests, so a later upload destroyed an earlier one's evidence
237
- # (CodySwannGT/lisa#4639). Each asset is therefore uploaded as
238
- # pr-${PR_NUMBER}-<file>: --clobber can then replace only this pull request's
239
- # own earlier upload. Local evidence files keep their NN- names; the scoped
240
- # copies live in a private directory removed on exit.
241
- UPLOAD_DIR=$(mktemp -d)
242
- trap 'rm -rf "$UPLOAD_DIR"' EXIT
243
- UPLOADED_ASSETS=()
244
- for FILE in "${ALL_EVIDENCE[@]}"; do
245
- ASSET_NAME="pr-${PR_NUMBER}-$(basename "$FILE")"
246
- cp "$FILE" "$UPLOAD_DIR/$ASSET_NAME"
247
- echo " ↑ $ASSET_NAME"
248
- gh release upload "$RELEASE_TAG" "$UPLOAD_DIR/$ASSET_NAME" --repo "$GH_REPO" --clobber
249
- UPLOADED_ASSETS+=("$ASSET_NAME")
250
- done
251
-
252
- # The description links these names, so confirm each one is really in the
253
- # release before pointing anything at it.
254
- RELEASE_ASSETS=$(gh release view "$RELEASE_TAG" --repo "$GH_REPO" --json assets --jq '.assets[].name')
255
- MISSING_ASSETS=0
256
- for ASSET_NAME in "${UPLOADED_ASSETS[@]}"; do
257
- if ! grep -qxF "$ASSET_NAME" <<< "$RELEASE_ASSETS"; then
258
- echo "ERROR: $ASSET_NAME is missing from release '$RELEASE_TAG' after upload" >&2
259
- MISSING_ASSETS=1
260
- fi
261
- done
262
- if [[ $MISSING_ASSETS -ne 0 ]]; then
263
- exit 1
264
- fi
265
-
266
- echo " ✓ GitHub release assets uploaded"
267
-
268
- # Every Markdown link or image target that points into the release must name
269
- # an asset THIS run uploaded, and therefore one the check above just found in
270
- # the release. A bare or other-PR name would show some other pull request's
271
- # evidence, and a pr-<n>- asset left over from an earlier run would show
272
- # evidence this run did not produce. Links into other releases were already
273
- # checked before uploading.
274
- THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
275
- BAD_LINKS=0
276
- while IFS= read -r LINK; do
277
- # Only this repository's release counts: another repository's release of the
278
- # same name holds assets this run never uploaded.
279
- [[ "$LINK" == *"${RELEASE_PREFIX}${RELEASE_TAG}/"* ]] || continue
280
- LINK_NAME="${LINK##*/}"
281
- if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
282
- echo "ERROR: $COMMENT_MD links $LINK, which is not scoped to PR #$PR_NUMBER (expected pr-${PR_NUMBER}-<file>)" >&2
283
- BAD_LINKS=1
284
- elif ! grep -qxF "$LINK_NAME" <<< "$THIS_RUN_ASSETS"; then
285
- echo "ERROR: $COMMENT_MD links $LINK, which this run did not upload to release '$RELEASE_TAG'" >&2
286
- BAD_LINKS=1
287
- fi
288
- done < <(comment_links)
289
- if [[ $BAD_LINKS -ne 0 ]]; then
290
- exit 1
291
- fi
292
-
293
- # ── Step 2: Update GitHub PR description with evidence ──────────────────────
294
- echo ""
295
- echo "==> Updating GitHub PR #$PR_NUMBER description..."
296
-
297
- CURRENT_BODY=$(gh pr view "$PR_NUMBER" --json body --jq '.body')
298
-
299
- # Replace or append the Evidence section
300
- if echo "$CURRENT_BODY" | grep -q "^## Evidence"; then
301
- # Replace from "## Evidence" to end of file
302
- NEW_BODY=$(echo "$CURRENT_BODY" | sed '/^## Evidence/,$d')
303
- EVIDENCE_SECTION=$(cat "$COMMENT_MD")
304
- UPDATED_BODY="${NEW_BODY}
305
- ${EVIDENCE_SECTION}"
306
- else
307
- EVIDENCE_SECTION=$(cat "$COMMENT_MD")
308
- UPDATED_BODY="${CURRENT_BODY}
309
-
310
- ${EVIDENCE_SECTION}"
311
- fi
312
-
313
- gh pr edit "$PR_NUMBER" --body "$UPDATED_BODY"
314
- echo " ✓ PR description updated with evidence"
315
-
316
- # ── Step 3: Upload image evidence as JIRA attachments ───────────────────────
317
- if [[ ${#SCREENSHOTS[@]} -gt 0 ]]; then
318
- echo ""
319
- echo "==> Uploading image attachments to JIRA $TICKET_ID..."
320
-
321
- for IMG in "${SCREENSHOTS[@]}"; do
322
- FILENAME=$(basename "$IMG")
323
- echo " ↑ $FILENAME"
324
- RESP=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
325
- -X POST \
326
- -H "Authorization: Basic $JIRA_AUTH" \
327
- -H "X-Atlassian-Token: no-check" \
328
- -F "file=@$IMG" \
329
- "$JIRA_SERVER/rest/api/3/issue/$TICKET_ID/attachments")
330
- HTTP_CODE=$(echo "$RESP" | grep "HTTP_CODE:" | cut -d: -f2)
331
- if [[ "$HTTP_CODE" != "200" ]]; then
332
- echo " WARNING: Failed to upload $FILENAME (HTTP $HTTP_CODE)" >&2
333
- fi
334
- done
335
-
336
- echo " ✓ JIRA attachments uploaded"
337
- fi
338
-
339
- # ── Step 4: Post JIRA comment ────────────────────────────────────────────────
340
- COMMENT_TXT="$EVIDENCE_DIR/comment.txt"
341
- if [[ ! -f "$COMMENT_TXT" ]]; then
342
- echo "ERROR: $COMMENT_TXT not found — run generate-templates.py first" >&2
343
- exit 1
344
- fi
345
-
346
- echo ""
347
- echo "==> Posting JIRA comment on $TICKET_ID..."
348
-
349
- COMMENT_BODY=$(cat "$COMMENT_TXT")
350
- COMMENT_JSON=$(python3 -c "import sys, json; print(json.dumps(sys.stdin.read()))" <<< "$COMMENT_BODY")
351
-
352
- RESP=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
353
- -X POST \
354
- -H "Authorization: Basic $JIRA_AUTH" \
355
- -H "Content-Type: application/json" \
356
- "$JIRA_SERVER/rest/api/2/issue/$TICKET_ID/comment" \
357
- -d "{\"body\": $COMMENT_JSON}")
358
- HTTP_CODE=$(echo "$RESP" | grep "HTTP_CODE:" | cut -d: -f2)
359
-
360
- if [[ "$HTTP_CODE" == "201" ]]; then
361
- echo " ✓ JIRA comment posted"
362
- else
363
- echo " WARNING: JIRA comment returned HTTP $HTTP_CODE" >&2
364
- echo "$RESP" | grep -v "HTTP_CODE:" | head -3
365
- fi
366
-
367
- # ── Step 5: Move ticket to the configured review status (if any) ────────────
368
- # A transition may target only a status named in .lisa.config.json jira.workflow.
369
- # `review` is OPTIONAL: when it is not configured, the build lifecycle stays in
370
- # `claimed` until `done` — do NOT invent a transition. (See config-resolution.md.)
371
- REVIEW=""
372
- if [ -f .lisa.config.json ]; then
373
- _cfg=$(jq -r '.jira.workflow.review // .jira.workflow.code_review // empty' .lisa.config.json 2>/dev/null)
374
- [ -n "$_cfg" ] && REVIEW="$_cfg"
375
- fi
376
- if [ -f .lisa.config.local.json ]; then
377
- _local=$(jq -r '.jira.workflow.review // .jira.workflow.code_review // empty' .lisa.config.local.json 2>/dev/null)
378
- [ -n "$_local" ] && REVIEW="$_local"
379
- fi
380
- echo ""
381
- if [ -n "$REVIEW" ]; then
382
- echo "==> Moving $TICKET_ID to $REVIEW..."
383
- # --config pins jira-cli to the same file this script parsed above.
384
- # jira-cli resolves --config > JIRA_CONFIG_FILE > ~/.config/.jira/
385
- # .config.yml, and a --config path that does not exist fails closed
386
- # rather than falling back (measured against jira-cli v1.7.0). The flag
387
- # needs no environment export, so this works identically on every
388
- # harness — see the harness note in the setup-jira-cli hook.
389
- jira --config "$JIRA_CONFIG" issue move "$TICKET_ID" "$REVIEW" 2>&1 && echo " ✓ Ticket moved to $REVIEW" || echo " WARNING: Could not move ticket to $REVIEW (not a valid transition?); leaving in current status" >&2
390
- else
391
- echo "==> No jira.workflow.review configured; leaving $TICKET_ID in its current (claimed) status per config-resolution."
392
- fi
393
-
394
- echo ""
395
- echo "==> Done!"
396
- echo " JIRA: $JIRA_SERVER/browse/$TICKET_ID"
397
- echo " GitHub: https://github.com/$GH_REPO/pull/$PR_NUMBER"
@@ -1,67 +0,0 @@
1
- ---
2
- name: jira-journey
3
- description: "Parse a JIRA ticket's…"
4
- ---
5
- Parse a JIRA ticket's Validation Journey section, execute the verification steps, capture evidence, and post to JIRA + GitHub PR using the jira-evidence skill.
6
-
7
-
8
- # JIRA Validation Journey
9
-
10
- Parse a JIRA ticket's Validation Journey, execute the verification steps using the project's appropriate tools, capture evidence at each marker, and post to JIRA + GitHub PR.
11
-
12
- ## Arguments
13
-
14
- `$ARGUMENTS`: `<TICKET_ID> [PR_NUMBER]`
15
-
16
- - `TICKET_ID` (required): JIRA ticket key (e.g., `PROJ-123`)
17
- - `PR_NUMBER` (optional): GitHub PR number to update description
18
-
19
- ## Prerequisites
20
-
21
- - `JIRA_API_TOKEN` environment variable set
22
- - `jira-cli` configured — `.lisa/jira-cli/.config.yml` (written by the
23
- `setup-jira-cli` SessionStart hook) or `~/.config/.jira/.config.yml`
24
- - `gh` CLI authenticated
25
-
26
- ## Workflow
27
-
28
- ### Step 1: Parse the Validation Journey
29
-
30
- Run the parser script to extract the Validation Journey from the JIRA ticket description:
31
-
32
- ```bash
33
- python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID>
34
- ```
35
-
36
- The script outputs JSON with: `ticket`, `prerequisites`, `steps`, `viewports`, `assertions`.
37
-
38
- ### Step 2: Satisfy Prerequisites
39
-
40
- Before starting the journey, verify each prerequisite listed in the parsed output.
41
-
42
- ### Step 3: Execute Steps
43
-
44
- Execute each step sequentially. At each step with an evidence marker (`[SCREENSHOT: name]`, or typed `[EVIDENCE: <artifact-type>: <name>]` per the `verification` rule — `[SCREENSHOT: name]` is shorthand for `[EVIDENCE: screenshot: name]`), capture an artifact of the declared type.
45
-
46
- The execution method depends on the project type:
47
- - **UI projects**: Use Playwright MCP browser tools, capture screenshots at each viewport
48
- - **API projects**: Use curl or test commands, capture stdout/stderr
49
- - **Library projects**: Run tests, capture output
50
-
51
- Stack-specific overrides provide the actual execution implementation.
52
-
53
- ### Step 4: Generate Evidence Templates
54
-
55
- After capturing all evidence, run the template generator to format evidence for JIRA and GitHub.
56
-
57
- ### Step 5: Post Evidence
58
-
59
- Use the `/jira-evidence` skill to post everything:
60
-
61
- ```bash
62
- bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
63
- ```
64
-
65
- ### Step 6: Verify
66
-
67
- Confirm evidence renders at both the JIRA ticket and GitHub PR.
@@ -1,4 +0,0 @@
1
- display_name: "Jira Journey"
2
- short_description: "Parse a JIRA ticket's…"
3
- default_prompt:
4
- - "Use $jira-journey: Parse a JIRA ticket's…."
@@ -1,28 +0,0 @@
1
- ---
2
- name: jira-verify
3
- description: "verifying that a JIRA ticket…"
4
- allowed-tools: ["Skill", "mcp__atlassian__getJiraIssue", "mcp__atlassian__getAccessibleAtlassianResources"]
5
- ---
6
- This skill should be used when verifying that a JIRA ticket meets organizational standards for epic relationships and description quality. It fetches the live ticket and delegates the gate checks to jira-validate-ticket so the bar matches what jira-write-ticket enforces pre-write.
7
-
8
-
9
- # Verify JIRA Ticket: $ARGUMENTS
10
-
11
- Verify that the existing JIRA ticket `$ARGUMENTS` meets organizational standards. This skill is a thin post-write wrapper around `lisa:jira-validate-ticket`: it fetches the live ticket and asks `lisa:jira-validate-ticket` to run the gates against the fetched state.
12
-
13
- This indirection exists so the gate definitions live in exactly one place (`lisa:jira-validate-ticket`). When the bar changes, change it there — `lisa:jira-verify`, `lisa:jira-write-ticket` (Phase 5.5 pre-write), and `lisa:notion-to-tracker` (PRD dry-run) all pick it up.
14
-
15
- ## Process
16
-
17
- 1. Resolve cloud ID via `mcp__atlassian__getAccessibleAtlassianResources`.
18
- 2. Fetch the ticket via `mcp__atlassian__getJiraIssue` for `$ARGUMENTS`.
19
- 3. Invoke `lisa:jira-validate-ticket` and pass the ticket key. The validator runs every gate (Specification + Feasibility) against the live state.
20
- 4. Surface the validator's report verbatim.
21
-
22
- ## Output
23
-
24
- Pass through `lisa:jira-validate-ticket`'s structured output unchanged. Downstream callers parse the gate lines.
25
-
26
- ## Notes
27
-
28
- - This skill is read-only. It never edits the ticket, posts comments, or changes status.
@@ -1,4 +0,0 @@
1
- display_name: "Jira Verify"
2
- short_description: "verifying that a JIRA ticket…"
3
- default_prompt:
4
- - "Use $jira-verify: verifying that a JIRA ticket…."