@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.
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +22 -150
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/strategies/merge.d.ts +1 -1
- package/dist/strategies/merge.d.ts.map +1 -1
- package/dist/strategies/merge.js +18 -8
- package/dist/strategies/merge.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa/rules/reference/config-resolution.md +28 -0
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +28 -0
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +28 -0
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/lisa-devin/rules/reference/config-resolution.md +28 -0
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-devin/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/journey-guidance/SKILL.md +9 -4
- package/plugins/lisa-expo/.codex-plugin/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/ops-monitor-errors/SKILL.md +16 -4
- package/plugins/lisa-expo/.codex-plugin/skills/ops-monitor-errors/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/.codex-plugin/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo/skills/journey-guidance/SKILL.md +9 -4
- package/plugins/lisa-expo/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo/skills/ops-monitor-errors/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo-agy/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/journey-guidance/SKILL.md +9 -4
- package/plugins/lisa-expo-agy/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-agy/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/agents/ops-specialist.agent.md +3 -3
- package/plugins/lisa-expo-copilot/skills/journey-guidance/SKILL.md +9 -4
- package/plugins/lisa-expo-copilot/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-copilot/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo-cursor/skills/journey-guidance/SKILL.md +9 -4
- package/plugins/lisa-expo-cursor/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-cursor/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/agents/ops-specialist.md +3 -3
- package/plugins/lisa-expo-devin/skills/journey-guidance/SKILL.md +9 -4
- package/plugins/lisa-expo-devin/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/lisa-expo-devin/skills/play-store-access/SKILL.md +42 -7
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/inject-resolved-config.mjs +1 -0
- package/plugins/src/base/rules/reference/config-resolution.md +28 -0
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/src/base/skills/lisa-monitor/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-posthog-access/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +65 -11
- package/plugins/src/base/skills/lisa-setup-remote-env/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +248 -18
- package/plugins/src/expo/agents/ops-specialist.md +3 -3
- package/plugins/src/expo/skills/journey-guidance/SKILL.md +9 -4
- package/plugins/src/expo/skills/ops-check-logs/SKILL.md +1 -1
- package/plugins/src/expo/skills/ops-deploy/SKILL.md +1 -1
- package/plugins/src/expo/skills/ops-monitor-errors/SKILL.md +15 -3
- package/plugins/src/expo/skills/play-store-access/SKILL.md +42 -7
- package/plugins/src/rails/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -142
- package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-create/SKILL.md +0 -163
- package/plugins/lisa-expo/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +0 -112
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +0 -209
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/SKILL.md +0 -29
- package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-expo-agy/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-agy/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-agy/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo-copilot/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-copilot/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-copilot/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo-cursor/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-cursor/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-cursor/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo-devin/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-devin/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-devin/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -81
- package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-create/SKILL.md +0 -102
- package/plugins/lisa-rails/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +0 -103
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/SKILL.md +0 -67
- package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/SKILL.md +0 -28
- package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-rails-agy/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-agy/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-agy/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-agy/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails-copilot/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-copilot/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-copilot/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-copilot/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails-cursor/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-cursor/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-cursor/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-cursor/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails-devin/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-devin/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-devin/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-devin/skills/jira-verify/SKILL.md +0 -26
- package/plugins/src/expo/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/src/expo/skills/jira-create/SKILL.md +0 -161
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/src/expo/skills/jira-journey/SKILL.md +0 -207
- package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/src/expo/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/src/expo/skills/jira-verify/SKILL.md +0 -27
- package/plugins/src/rails/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/src/rails/skills/jira-create/SKILL.md +0 -100
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/src/rails/skills/jira-journey/SKILL.md +0 -65
- package/plugins/src/rails/skills/jira-verify/SKILL.md +0 -26
|
@@ -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,207 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: jira-journey
|
|
3
|
-
description: "Read a JIRA ticket's Validation Journey section, execute the steps using Playwright MCP browser tools across all defined viewports, capture screenshots at each marker, generate evidence templates, and post to JIRA + GitHub PR using the jira-evidence skill."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# JIRA Validation Journey
|
|
7
|
-
|
|
8
|
-
Read a JIRA ticket's Validation Journey, execute it via Playwright MCP browser tools, capture screenshots at every `[SCREENSHOT: name]` marker across all viewports, and post evidence to both JIRA and GitHub PR.
|
|
9
|
-
|
|
10
|
-
## Arguments
|
|
11
|
-
|
|
12
|
-
`$ARGUMENTS`: `<TICKET_ID> [PR_NUMBER]`
|
|
13
|
-
|
|
14
|
-
- `TICKET_ID` (required): JIRA ticket key (e.g., `PROJ-123`)
|
|
15
|
-
- `PR_NUMBER` (optional): GitHub PR number to update description
|
|
16
|
-
|
|
17
|
-
## Prerequisites
|
|
18
|
-
|
|
19
|
-
- `JIRA_API_TOKEN` environment variable set
|
|
20
|
-
- `jira-cli` configured in the operator's `~/.config/.jira/.config.yml`.
|
|
21
|
-
This Expo parser deliberately remains home-config-only: it does not consume
|
|
22
|
-
checkout configuration or a `JIRA_SERVER` environment override. Its server must
|
|
23
|
-
be a bare HTTPS origin with no userinfo, query, fragment, or path prefix.
|
|
24
|
-
ASCII DNS names, IPv4, and bracketed IPv6 are supported; default port `443`
|
|
25
|
-
and a root slash are canonicalized away. Whitespace, controls, encoded or
|
|
26
|
-
non-ASCII hosts, trailing dots, and port zero are rejected before the token is read.
|
|
27
|
-
- `gh` CLI authenticated
|
|
28
|
-
- Playwright MCP server running (browser tools available)
|
|
29
|
-
- Dev server running
|
|
30
|
-
|
|
31
|
-
## Workflow
|
|
32
|
-
|
|
33
|
-
### Step 1: Parse the Validation Journey
|
|
34
|
-
|
|
35
|
-
Run the parser script to extract the Validation Journey from the JIRA ticket description:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID>
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
The script outputs JSON to stdout:
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"ticket": "PROJ-123",
|
|
46
|
-
"prerequisites": [
|
|
47
|
-
"Backend dev server running",
|
|
48
|
-
"Admin user with test credentials"
|
|
49
|
-
],
|
|
50
|
-
"steps": [
|
|
51
|
-
{"number": 1, "text": "Navigate to Players page", "screenshot": null},
|
|
52
|
-
{"number": 5, "text": "Open transfer modal", "screenshot": "confirm-step-disabled"}
|
|
53
|
-
],
|
|
54
|
-
"viewports": [
|
|
55
|
-
{"name": "Desktop", "width": 1512, "height": 768},
|
|
56
|
-
{"name": "Mobile", "width": 375, "height": 812}
|
|
57
|
-
],
|
|
58
|
-
"assertions": [
|
|
59
|
-
"Modal fills entire screen on mobile (no horizontal overflow)"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Read the JSON output and use it to drive the Playwright session.
|
|
65
|
-
|
|
66
|
-
### Step 2: Satisfy Prerequisites
|
|
67
|
-
|
|
68
|
-
Before starting the journey, verify each prerequisite:
|
|
69
|
-
|
|
70
|
-
1. Check if the dev server is running (try `browser_navigate` to the app URL)
|
|
71
|
-
2. Authenticate if needed (use test credentials from `.env.localhost` or `.env.local`)
|
|
72
|
-
3. Navigate to the starting point described in step 1
|
|
73
|
-
|
|
74
|
-
### Step 3: Execute Steps at Each Viewport
|
|
75
|
-
|
|
76
|
-
For **each viewport** defined in the journey:
|
|
77
|
-
|
|
78
|
-
1. Use `browser_resize` to set the viewport dimensions
|
|
79
|
-
2. Execute each step sequentially using Playwright MCP tools
|
|
80
|
-
3. At each step with a `screenshot` marker, use `browser_take_screenshot` to capture the screenshot
|
|
81
|
-
|
|
82
|
-
#### Screenshot Naming Convention
|
|
83
|
-
|
|
84
|
-
Screenshots are named: `{NN}-{screenshot-name}-{viewport-name}.png`
|
|
85
|
-
|
|
86
|
-
- `NN`: zero-padded sequential number (01, 02, 03...)
|
|
87
|
-
- `screenshot-name`: the value from `[SCREENSHOT: name]` in the JIRA step
|
|
88
|
-
- `viewport-name`: lowercase viewport name from the Viewports table
|
|
89
|
-
|
|
90
|
-
Example: For a journey with 3 screenshot markers and 2 viewports:
|
|
91
|
-
|
|
92
|
-
```text
|
|
93
|
-
evidence/
|
|
94
|
-
01-search-step-desktop.png
|
|
95
|
-
02-confirm-step-desktop.png
|
|
96
|
-
03-success-step-desktop.png
|
|
97
|
-
04-search-step-mobile.png
|
|
98
|
-
05-confirm-step-mobile.png
|
|
99
|
-
06-success-step-mobile.png
|
|
100
|
-
comment.txt
|
|
101
|
-
comment.md
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
#### Viewport Execution Strategy
|
|
105
|
-
|
|
106
|
-
Execute the **full journey once per viewport**. Between viewports:
|
|
107
|
-
|
|
108
|
-
1. Resize the browser using `browser_resize`
|
|
109
|
-
2. Navigate back to the starting point
|
|
110
|
-
3. Re-execute all steps from the beginning
|
|
111
|
-
|
|
112
|
-
This ensures each screenshot is captured at the correct viewport dimensions with the correct application state.
|
|
113
|
-
|
|
114
|
-
### Step 4: Generate Evidence Templates
|
|
115
|
-
|
|
116
|
-
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. 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 continuing.
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
120
|
-
export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
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.
|
|
124
|
-
|
|
125
|
-
After capturing all screenshots, run the template generator with that release name:
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
LISA_EVIDENCE_RELEASE=<name> python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
129
|
-
<TICKET_ID> \
|
|
130
|
-
<PR_NUMBER> \
|
|
131
|
-
<BRANCH_NAME> \
|
|
132
|
-
./evidence
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.md` (GitHub markdown) with:
|
|
136
|
-
|
|
137
|
-
- PR and branch metadata
|
|
138
|
-
- All screenshots organized by viewport
|
|
139
|
-
- The verification journey steps
|
|
140
|
-
- Assertions as verification results
|
|
141
|
-
|
|
142
|
-
Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
143
|
-
|
|
144
|
-
### Step 5: Post Evidence
|
|
145
|
-
|
|
146
|
-
Use the jira-evidence skill to post everything, with the same release name as Step 4:
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### Step 6: Verify
|
|
153
|
-
|
|
154
|
-
Confirm images render inline at both the JIRA ticket and GitHub PR.
|
|
155
|
-
|
|
156
|
-
## Validation Journey Format in JIRA
|
|
157
|
-
|
|
158
|
-
The JIRA ticket description must contain a section with this structure:
|
|
159
|
-
|
|
160
|
-
### ADF Structure
|
|
161
|
-
|
|
162
|
-
```text
|
|
163
|
-
h2. Validation Journey
|
|
164
|
-
|
|
165
|
-
h3. Prerequisites
|
|
166
|
-
- App running locally or on dev
|
|
167
|
-
- Authenticated as test user
|
|
168
|
-
- Required feature flags enabled
|
|
169
|
-
|
|
170
|
-
h3. Steps
|
|
171
|
-
1. Navigate to the relevant page
|
|
172
|
-
2. Perform the first action
|
|
173
|
-
3. Click on the element [SCREENSHOT: element-state]
|
|
174
|
-
4. Complete the flow
|
|
175
|
-
5. Verify the final state [SCREENSHOT: final-state]
|
|
176
|
-
|
|
177
|
-
h3. Viewports
|
|
178
|
-
||Name||Width||Height||
|
|
179
|
-
|Desktop|1512|768|
|
|
180
|
-
|Mobile|375|812|
|
|
181
|
-
|
|
182
|
-
h3. Assertions
|
|
183
|
-
- Visual assertion about expected behavior
|
|
184
|
-
- Another assertion about responsive layout
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Key Rules
|
|
188
|
-
|
|
189
|
-
1. **`[SCREENSHOT: name]`** markers define where to capture. The `name` is used in the filename.
|
|
190
|
-
2. **Steps without markers** are executed but not captured.
|
|
191
|
-
3. **Viewports** define all resolutions to test. Each viewport runs the full journey.
|
|
192
|
-
4. **Assertions** describe what to verify visually in each screenshot.
|
|
193
|
-
5. **Prerequisites** describe what must be true before starting.
|
|
194
|
-
|
|
195
|
-
## Troubleshooting
|
|
196
|
-
|
|
197
|
-
### Modal closes on viewport resize
|
|
198
|
-
|
|
199
|
-
Some modals close when the viewport changes. The viewport execution strategy (full journey per viewport) handles this — each viewport starts fresh.
|
|
200
|
-
|
|
201
|
-
### Authentication required at each viewport
|
|
202
|
-
|
|
203
|
-
If the app requires re-authentication after resize/navigation, include the auth steps in the journey.
|
|
204
|
-
|
|
205
|
-
### Screenshot markers in conditional steps
|
|
206
|
-
|
|
207
|
-
If a step is conditional, capture the screenshot at the state described in the step text, not after the conditional action.
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
display_name: "Jira Journey"
|
|
2
|
-
short_description: "Read a JIRA ticket's Validation Journey section, execute the steps using Playwright MCP browser tools across all defined viewports, capture…"
|
|
3
|
-
default_prompt:
|
|
4
|
-
- "Use $jira-journey: Read a JIRA ticket's Validation Journey section, execute the steps using Playwright MCP browser tools across all defined viewports, capture…."
|