@codyswann/lisa 8.7.1 → 8.9.0
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/README.md +21 -0
- package/all/copy-overwrite/scripts/lib/completion-authorization.mjs +54 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-adapters.mjs +59 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-markdown.mjs +1 -1
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lib/release-switch.d.mts +91 -0
- package/all/copy-overwrite/scripts/lib/release-switch.mjs +1049 -0
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +3 -3
- package/all/copy-overwrite/scripts/lisa-enforcement-freshness.mjs +1 -0
- package/all/copy-overwrite/scripts/lisa-gates.mjs +90 -5
- package/all/copy-overwrite/scripts/lisa-hooks/task-readiness-guard.sh +54 -0
- package/all/copy-overwrite/scripts/lisa-release-switch.mjs +203 -0
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +18 -5
- package/dist/cli/doctor-release-setting.d.ts +8 -0
- package/dist/cli/doctor-release-setting.d.ts.map +1 -0
- package/dist/cli/doctor-release-setting.js +71 -0
- package/dist/cli/doctor-release-setting.js.map +1 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +2 -0
- package/dist/cli/doctor.js.map +1 -1
- package/dist/controls/before-enforce-observe.d.ts +1 -1
- package/dist/controls/before-enforce-observe.d.ts.map +1 -1
- package/dist/controls/before-enforce-observe.js +3 -7
- package/dist/controls/before-enforce-observe.js.map +1 -1
- package/dist/controls/before-enforce-workspace.d.ts.map +1 -1
- package/dist/controls/before-enforce-workspace.js +16 -1
- package/dist/controls/before-enforce-workspace.js.map +1 -1
- package/dist/controls/commands/proof-check.d.ts +1 -1
- package/dist/controls/commands/proof-check.d.ts.map +1 -1
- package/dist/controls/commands/proof-check.js +11 -11
- package/dist/controls/commands/seed.d.ts.map +1 -1
- package/dist/controls/commands/seed.js +14 -30
- package/dist/controls/commands/seed.js.map +1 -1
- package/dist/controls/proof-check-plan.d.ts +5 -6
- package/dist/controls/proof-check-plan.d.ts.map +1 -1
- package/dist/controls/proof-check-plan.js +11 -10
- package/dist/controls/proof-check-plan.js.map +1 -1
- package/dist/controls/proof-check-report.d.ts.map +1 -1
- package/dist/controls/proof-check-report.js +2 -4
- package/dist/controls/proof-check-report.js.map +1 -1
- package/dist/controls/proof-copy-source.d.ts +24 -0
- package/dist/controls/proof-copy-source.d.ts.map +1 -0
- package/dist/controls/proof-copy-source.js +60 -0
- package/dist/controls/proof-copy-source.js.map +1 -0
- package/dist/controls/proof-copy-wording.d.ts +10 -1
- package/dist/controls/proof-copy-wording.d.ts.map +1 -1
- package/dist/controls/proof-copy-wording.js +23 -2
- package/dist/controls/proof-copy-wording.js.map +1 -1
- package/dist/controls/proof-copy-workspace.d.ts +4 -3
- package/dist/controls/proof-copy-workspace.d.ts.map +1 -1
- package/dist/controls/proof-copy-workspace.js +39 -23
- package/dist/controls/proof-copy-workspace.js.map +1 -1
- package/dist/controls/proof-copy.d.ts +1 -9
- package/dist/controls/proof-copy.d.ts.map +1 -1
- package/dist/controls/proof-copy.js +3 -45
- package/dist/controls/proof-copy.js.map +1 -1
- package/dist/controls/proof-half-run.d.ts +1 -1
- package/dist/controls/proof-half-run.d.ts.map +1 -1
- package/dist/controls/proof-half-run.js +6 -9
- package/dist/controls/proof-half-run.js.map +1 -1
- package/dist/controls/proof-plan.d.ts +17 -2
- package/dist/controls/proof-plan.d.ts.map +1 -1
- package/dist/controls/proof-plan.js +47 -3
- package/dist/controls/proof-plan.js.map +1 -1
- package/dist/controls/proof-push-fixture.d.ts +16 -0
- package/dist/controls/proof-push-fixture.d.ts.map +1 -0
- package/dist/controls/proof-push-fixture.js +137 -0
- package/dist/controls/proof-push-fixture.js.map +1 -0
- package/dist/controls/proof-types.d.ts +4 -0
- package/dist/controls/proof-types.d.ts.map +1 -1
- package/dist/controls/register-entries.d.ts.map +1 -1
- package/dist/controls/register-entries.js +23 -2
- package/dist/controls/register-entries.js.map +1 -1
- package/dist/controls/register-types.d.ts +4 -0
- package/dist/controls/register-types.d.ts.map +1 -1
- package/dist/controls/register-types.js.map +1 -1
- package/dist/controls/shipped-parts.d.ts +8 -6
- package/dist/controls/shipped-parts.d.ts.map +1 -1
- package/dist/controls/shipped-parts.js +19 -1
- package/dist/controls/shipped-parts.js.map +1 -1
- package/dist/controls/shipped-task-proofs.d.ts +24 -0
- package/dist/controls/shipped-task-proofs.d.ts.map +1 -0
- package/dist/controls/shipped-task-proofs.js +191 -0
- package/dist/controls/shipped-task-proofs.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.json +148 -4
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +391 -66
- package/dist/migrations/ensure-seeded-gates.d.ts.map +1 -1
- package/dist/migrations/ensure-seeded-gates.js +4 -1
- package/dist/migrations/ensure-seeded-gates.js.map +1 -1
- package/dist/opencode/hooks-installer.d.ts.map +1 -1
- package/dist/opencode/hooks-installer.js +2 -0
- package/dist/opencode/hooks-installer.js.map +1 -1
- package/dist/opencode/plugin-catalog.d.ts.map +1 -1
- package/dist/opencode/plugin-catalog.js +5 -0
- package/dist/opencode/plugin-catalog.js.map +1 -1
- package/dist/opencode/plugin-templates/lisa-task-readiness.ts +47 -0
- package/dist/opencode/plugin-templates/task-readiness-guard.mjs +99 -0
- package/dist/opencode/plugin-templates/task-readiness-guard.sh +54 -0
- package/package.json +5 -4
- package/plugins/lisa/.claude-plugin/plugin.json +49 -2
- package/plugins/lisa/.codex-plugin/hooks.json +48 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa/hooks/secrets-preflight.agy.sh +19 -0
- package/plugins/lisa/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa/rules/reference/config-resolution.md +4 -1
- package/plugins/lisa/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa/rules/reference/tool-access-gate.md +160 -0
- package/plugins/lisa/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-agy/hooks/secrets-preflight.agy.sh +19 -0
- package/plugins/lisa-agy/hooks/secrets-preflight.sh +114 -0
- package/plugins/lisa-agy/hooks.json +13 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-agy/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-agy/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-agy/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-agy/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-agy/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-agy/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-agy/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-agy/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-agy/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-agy/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +4 -1
- 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 +49 -2
- package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-copilot/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa-copilot/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa-copilot/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +4 -1
- package/plugins/lisa-copilot/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa-copilot/rules/reference/tool-access-gate.md +160 -0
- package/plugins/lisa-copilot/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa-copilot/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-copilot/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-copilot/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-copilot/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-copilot/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-copilot/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-copilot/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-copilot/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-copilot/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-copilot/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/hooks.json +18 -1
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-cursor/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa-cursor/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa-cursor/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa-cursor/rules/coding-philosophy-reference.mdc +48 -0
- package/plugins/lisa-cursor/rules/coding-philosophy.mdc +7 -6
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +4 -1
- package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +2 -2
- package/plugins/lisa-cursor/rules/tool-access-gate-reference.mdc +160 -0
- package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +2 -0
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +31 -0
- package/plugins/lisa-cursor/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-cursor/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-cursor/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-cursor/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-cursor/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-cursor/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-cursor/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-cursor/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-cursor/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-cursor/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +4 -1
- 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 +235 -3
- package/plugins/lisa-devin/hooks/secrets-preflight.sh +42 -0
- package/plugins/lisa-devin/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/lisa-devin/hooks/task-readiness-guard.sh +54 -0
- package/plugins/lisa-devin/hooks.json +43 -1
- package/plugins/lisa-devin/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa-devin/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa-devin/rules/reference/config-resolution.md +4 -1
- package/plugins/lisa-devin/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa-devin/rules/reference/tool-access-gate.md +160 -0
- package/plugins/lisa-devin/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa-devin/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/lisa-devin/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-devin/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/lisa-devin/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/lisa-devin/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/lisa-devin/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/lisa-devin/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/lisa-devin/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/lisa-devin/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/lisa-devin/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-devin/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- 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-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-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -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-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/materialized-artifacts.json +2 -0
- package/plugins/src/base/.claude-plugin/plugin.json +25 -1
- package/plugins/src/base/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/src/base/hooks/secrets-preflight.agy.sh +19 -0
- package/plugins/src/base/hooks/secrets-preflight.sh +42 -0
- package/plugins/src/base/hooks/task-readiness-guard.mjs +96 -0
- package/plugins/src/base/hooks/task-readiness-guard.sh +51 -0
- package/plugins/src/base/rules/eager/coding-philosophy.md +7 -6
- package/plugins/src/base/rules/reference/coding-philosophy.md +48 -0
- package/plugins/src/base/rules/reference/config-resolution.md +4 -1
- package/plugins/src/base/rules/reference/intent-routing.md +2 -2
- package/plugins/src/base/rules/reference/tool-access-gate.md +160 -0
- package/plugins/src/base/rules/reference/tracked-work.md +2 -0
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/src/base/scripts/install-remote-agent-aws.mjs +3 -2
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +123 -10
- package/plugins/src/base/skills/lisa-atlassian-access/SKILL.md +13 -0
- package/plugins/src/base/skills/lisa-configure/SKILL.md +19 -7
- package/plugins/src/base/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/src/base/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-github-claim/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-github-read-issue/SKILL.md +29 -0
- package/plugins/src/base/skills/lisa-github-read-issue/read-contract.mjs +70 -0
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +23 -0
- package/plugins/src/base/skills/lisa-implement/SKILL.md +15 -2
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-jira-claim/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-jira-read-ticket/SKILL.md +9 -0
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +23 -0
- package/plugins/src/base/skills/lisa-linear-access/SKILL.md +102 -103
- package/plugins/src/base/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-linear-claim/SKILL.md +3 -1
- package/plugins/src/base/skills/lisa-linear-read-issue/SKILL.md +13 -0
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +27 -0
- package/plugins/src/base/skills/lisa-notion-access/SKILL.md +37 -0
- package/plugins/src/base/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
- package/plugins/src/base/skills/lisa-secrets-access/SKILL.md +8 -26
- package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
- package/plugins/src/base/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
- package/plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
- package/plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
- package/plugins/src/base/skills/lisa-setup-linear/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-setup-remote-aws/SKILL.md +8 -0
- package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-track/SKILL.md +13 -1
- package/plugins/src/base/skills/lisa-tracker-claim/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-verify/SKILL.md +4 -1
- package/scripts/build-plugins.sh +1 -1
- package/scripts/copy-opencode-plugin-templates.mjs +2 -0
- package/scripts/generate-agy-plugin-artifacts.mjs +8 -0
- package/scripts/lib/per-agent-hook-filter.mjs +1 -1
- package/scripts/lisa-enforcement-fallback.sh +3 -3
- package/scripts/lisa-enforcement-freshness.mjs +1 -0
- package/scripts/lisa-release-switch.mjs +9 -0
- package/scripts/two-channel-couplings.json +2 -2
- package/typescript/copy-overwrite/.prettierignore +2 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style-slow.clean.patch +25 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style-slow.violation.patch +28 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style.clean.patch +13 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style.violation.patch +13 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-coverage-adequacy.clean.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-coverage-adequacy.violation.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dead-code.clean.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dead-code.violation.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dependency-vulnerability.clean.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dependency-vulnerability.violation.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-format-conformance.clean.patch +8 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-format-conformance.violation.patch +7 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-structural-rules.clean.patch +14 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-structural-rules.violation.patch +14 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-correctness.clean.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-correctness.violation.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-integration.clean.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-integration.violation.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-traceability.clean.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-traceability.violation.patch +6 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-type-correctness.clean.patch +10 -0
- package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-type-correctness.violation.patch +10 -0
- package/typescript/package-lisa/package.lisa.json +2 -3
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
/** Task decision owner: availability, scoped proof, and opaque native handoff stay distinct. */
|
|
2
|
+
import { AccessFailure } from "./config-layers.mjs";
|
|
3
|
+
import { readinessProvider } from "./providers.mjs";
|
|
4
|
+
import { readMaterialized } from "./resolve-secret.mjs";
|
|
5
|
+
import { readTaskConfig } from "./surfaces.mjs";
|
|
6
|
+
import { readTaskRequirements } from "./task-requirements.mjs";
|
|
7
|
+
import { routingFloor, routingCapabilityMatches } from "./routing-floor.mjs";
|
|
8
|
+
import {
|
|
9
|
+
capabilityAccess,
|
|
10
|
+
githubAccess,
|
|
11
|
+
ESTABLISHED,
|
|
12
|
+
DENIED,
|
|
13
|
+
NATIVE_OWNER_REQUIRED,
|
|
14
|
+
} from "./task-access.mjs";
|
|
15
|
+
|
|
16
|
+
const actions = {
|
|
17
|
+
"credential-missing":
|
|
18
|
+
"Grant the named credential through this project's supported source, then check access again.",
|
|
19
|
+
"provider-unreachable":
|
|
20
|
+
"Restore the named provider connection, then check access again. No credential absence was established.",
|
|
21
|
+
"capability-unreachable":
|
|
22
|
+
"Restore the integration API connection using the named tool, then repeat its scoped read. The credential source was reached; this is not a missing vault record.",
|
|
23
|
+
"bootstrap-missing":
|
|
24
|
+
"Restore the named provider sign-in through lisa-secrets-access, then check access again.",
|
|
25
|
+
"tool-missing": "Install the named documented tool, then check access again.",
|
|
26
|
+
"config-invalid":
|
|
27
|
+
"Correct the project configuration, then refresh task requirements.",
|
|
28
|
+
"config-unreadable":
|
|
29
|
+
"Restore read access to the project configuration, then refresh task requirements.",
|
|
30
|
+
"config-undiscovered":
|
|
31
|
+
"Open the actual project folder or supply its documented project hint, then refresh task requirements.",
|
|
32
|
+
"config-unknown":
|
|
33
|
+
"Select a supported project configuration, then refresh task requirements.",
|
|
34
|
+
"identity-mismatch":
|
|
35
|
+
"Use the intended project identity and resource, then check access again. Do not use the mismatched account.",
|
|
36
|
+
"adapter-unsupported":
|
|
37
|
+
"No supported adapter or documented native alternative implements this operation. Establish its documented authenticated access path before affected work.",
|
|
38
|
+
"requirements-stale":
|
|
39
|
+
"Have the input resolver refresh the complete task requirements for this worktree, then check access again.",
|
|
40
|
+
"native-proof-needed":
|
|
41
|
+
"The ordinary action is withheld. Load the named access owner, use the supported primary first, then the fixed native identity and exact-resource probes. Retry the identical action only after every required scope is proved.",
|
|
42
|
+
"native-response-unrepresented":
|
|
43
|
+
"The ordinary action is withheld. This native response, call identity or trusted connection mapping cannot be verified. Use the documented access owner and its supported primary route; do not supply a passed field or reuse an earlier result.",
|
|
44
|
+
};
|
|
45
|
+
/** Public credential identifiers use the same bounded schema as requirements. */
|
|
46
|
+
const publicCredential = name =>
|
|
47
|
+
typeof name === "string" && /^[A-Z_][A-Z0-9_]{0,127}$/.test(name);
|
|
48
|
+
const tools = {
|
|
49
|
+
env: "environment",
|
|
50
|
+
bitwarden: "bws",
|
|
51
|
+
doppler: "doppler",
|
|
52
|
+
"1password": "op",
|
|
53
|
+
aws: "aws",
|
|
54
|
+
vault: "vault",
|
|
55
|
+
};
|
|
56
|
+
const ownerNames = new Set([
|
|
57
|
+
"lisa-notion-access",
|
|
58
|
+
"lisa-linear-access",
|
|
59
|
+
"lisa-atlassian-access",
|
|
60
|
+
"lisa-sentry-access",
|
|
61
|
+
"lisa-posthog-access",
|
|
62
|
+
"lisa-jam-access",
|
|
63
|
+
"lisa-sonarcloud-access",
|
|
64
|
+
]);
|
|
65
|
+
const safeDetails = ({ requirementIndex, name, cfg, owner, tool } = {}) => ({
|
|
66
|
+
requirement_index:
|
|
67
|
+
Number.isInteger(requirementIndex) &&
|
|
68
|
+
requirementIndex >= 1 &&
|
|
69
|
+
requirementIndex <= 100
|
|
70
|
+
? requirementIndex
|
|
71
|
+
: null,
|
|
72
|
+
requirement:
|
|
73
|
+
Number.isInteger(requirementIndex) &&
|
|
74
|
+
requirementIndex >= 1 &&
|
|
75
|
+
requirementIndex <= 100
|
|
76
|
+
? `requirement-${requirementIndex}`
|
|
77
|
+
: "configuration-access",
|
|
78
|
+
credential: publicCredential(name) ? name : "task-credential",
|
|
79
|
+
provider: Object.hasOwn(tools, cfg?.provider) ? cfg.provider : "unknown",
|
|
80
|
+
tool: ["gh", "curl"].includes(tool)
|
|
81
|
+
? tool
|
|
82
|
+
: Object.hasOwn(tools, cfg?.provider)
|
|
83
|
+
? tools[cfg.provider]
|
|
84
|
+
: "documented-tool",
|
|
85
|
+
...(ownerNames.has(owner) ? { owner } : {}),
|
|
86
|
+
});
|
|
87
|
+
export const failure = (code, details = {}) => {
|
|
88
|
+
const safe = safeDetails(details);
|
|
89
|
+
code = Object.hasOwn(actions, code) ? code : "config-invalid";
|
|
90
|
+
return {
|
|
91
|
+
outcome: DENIED,
|
|
92
|
+
allowed: false,
|
|
93
|
+
code,
|
|
94
|
+
...safe,
|
|
95
|
+
action: `${safe.requirement}; ${safe.credential}; ${safe.provider} (${safe.tool})${safe.owner ? `; ${safe.owner}` : ""}: ${actions[code]}`,
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const present = value => typeof value === "string" && value.trim().length > 0;
|
|
99
|
+
|
|
100
|
+
/** Internal memory-only candidate; values never leave this module's decision path. */
|
|
101
|
+
export function candidate(
|
|
102
|
+
cfg,
|
|
103
|
+
name,
|
|
104
|
+
{
|
|
105
|
+
env = process.env,
|
|
106
|
+
materialized = readMaterialized,
|
|
107
|
+
provider = readinessProvider,
|
|
108
|
+
} = {}
|
|
109
|
+
) {
|
|
110
|
+
if (present(env[name]))
|
|
111
|
+
return {
|
|
112
|
+
available: true,
|
|
113
|
+
value: env[name],
|
|
114
|
+
source: "environment",
|
|
115
|
+
provider_health: "not-observed",
|
|
116
|
+
};
|
|
117
|
+
if (
|
|
118
|
+
cfg.require !== null &&
|
|
119
|
+
cfg.require !== undefined &&
|
|
120
|
+
!cfg.require.includes(name)
|
|
121
|
+
)
|
|
122
|
+
throw new AccessFailure("config-invalid");
|
|
123
|
+
if (cfg.capabilities?.materialized) {
|
|
124
|
+
try {
|
|
125
|
+
const value = materialized(cfg).get(name);
|
|
126
|
+
if (present(value))
|
|
127
|
+
return {
|
|
128
|
+
available: true,
|
|
129
|
+
value,
|
|
130
|
+
source: "materialized",
|
|
131
|
+
provider_health: "not-observed",
|
|
132
|
+
};
|
|
133
|
+
} catch {
|
|
134
|
+
/* The configured provider remains authoritative. */
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const value = provider(cfg).get(name)?.value;
|
|
138
|
+
return present(value)
|
|
139
|
+
? {
|
|
140
|
+
available: true,
|
|
141
|
+
value,
|
|
142
|
+
source: "provider",
|
|
143
|
+
provider_health: "reachable",
|
|
144
|
+
}
|
|
145
|
+
: {
|
|
146
|
+
available: false,
|
|
147
|
+
source: "provider",
|
|
148
|
+
code: "credential-missing",
|
|
149
|
+
provider_health: "reachable",
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** Preserve get() precedence without returning a credential value. */
|
|
154
|
+
export function credentialAvailability(cfg, name, options = {}) {
|
|
155
|
+
const { value, ...safe } = candidate(cfg, name, options);
|
|
156
|
+
return safe;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** Fresh task decision. Import-only adapters are not header-controlled code.
|
|
160
|
+
* @param {{root?: string, ref?: string, tracker?: string, cfg?: object, requirements?: object, binding?: object|null, env?: object, provider?: Function, materialized?: Function, capability?: Function}} [options] Trusted runtime/test inputs.
|
|
161
|
+
* @returns {{outcome: string, allowed: boolean|null, code: string, action?: string, checked_scope?: string, credentials?: object[], capabilities?: object[], requirement?: string, credential?: string, provider?: string, tool?: string, owner?: string}} Safe values-free result.
|
|
162
|
+
*/
|
|
163
|
+
export function taskReadiness(options = {}) {
|
|
164
|
+
try {
|
|
165
|
+
const {
|
|
166
|
+
root = process.cwd(),
|
|
167
|
+
ref,
|
|
168
|
+
tracker,
|
|
169
|
+
cfg = readTaskConfig(root),
|
|
170
|
+
requirements,
|
|
171
|
+
binding,
|
|
172
|
+
env = process.env,
|
|
173
|
+
provider,
|
|
174
|
+
materialized,
|
|
175
|
+
capability = capabilityAccess,
|
|
176
|
+
} = options;
|
|
177
|
+
const header =
|
|
178
|
+
requirements ??
|
|
179
|
+
readTaskRequirements(cfg, {
|
|
180
|
+
ref,
|
|
181
|
+
tracker,
|
|
182
|
+
...(binding === undefined ? {} : { binding }),
|
|
183
|
+
});
|
|
184
|
+
if (!header)
|
|
185
|
+
return {
|
|
186
|
+
outcome: ESTABLISHED,
|
|
187
|
+
allowed: true,
|
|
188
|
+
code: "no-active-task",
|
|
189
|
+
checked_scope: "orientation",
|
|
190
|
+
};
|
|
191
|
+
const credentials = [],
|
|
192
|
+
capabilities = [],
|
|
193
|
+
pending = [];
|
|
194
|
+
const resolved = new Map();
|
|
195
|
+
const sourceOptions = {
|
|
196
|
+
env,
|
|
197
|
+
...(provider ? { provider } : {}),
|
|
198
|
+
...(materialized ? { materialized } : {}),
|
|
199
|
+
};
|
|
200
|
+
// A routing-floor credential is a proxy for its routed capability. When
|
|
201
|
+
// every route implying it has a matching task capability, that capability
|
|
202
|
+
// must establish access or hand off to its documented native owner below.
|
|
203
|
+
// Explicit assertions remain independent even when they name the same key.
|
|
204
|
+
const routingAssertions = (cfg.requiredFloor ?? []).filter(name => {
|
|
205
|
+
const routes = Object.entries(cfg.routing ?? {}).filter(([role, route]) =>
|
|
206
|
+
routingFloor({ [role]: route }).includes(name)
|
|
207
|
+
);
|
|
208
|
+
return (
|
|
209
|
+
!routes.length ||
|
|
210
|
+
routes.some(
|
|
211
|
+
([, route]) =>
|
|
212
|
+
!header.required_access.some(
|
|
213
|
+
r =>
|
|
214
|
+
r.kind === "capability" &&
|
|
215
|
+
routingCapabilityMatches(route, r) &&
|
|
216
|
+
r.credential_names.includes(name)
|
|
217
|
+
)
|
|
218
|
+
)
|
|
219
|
+
);
|
|
220
|
+
});
|
|
221
|
+
const mandatory = [
|
|
222
|
+
...routingAssertions,
|
|
223
|
+
...(cfg.require ?? []),
|
|
224
|
+
...header.required_access
|
|
225
|
+
.filter(r => r.kind === "credential")
|
|
226
|
+
.flatMap(r => r.credential_names),
|
|
227
|
+
];
|
|
228
|
+
for (const name of new Set(mandatory)) {
|
|
229
|
+
const requirement = header.required_access.find(r =>
|
|
230
|
+
r.credential_names.includes(name)
|
|
231
|
+
);
|
|
232
|
+
const requirementIndex = requirement
|
|
233
|
+
? header.required_access.indexOf(requirement) + 1
|
|
234
|
+
: undefined;
|
|
235
|
+
if (name === "GH_TOKEN" && cfg.effective?.github) {
|
|
236
|
+
const proof = githubAccess(cfg, {
|
|
237
|
+
operation: "repository-read",
|
|
238
|
+
resource: `${cfg.effective.github.org}/${cfg.effective.github.repo}`,
|
|
239
|
+
});
|
|
240
|
+
if (proof.code === "identity-mismatch")
|
|
241
|
+
return failure(proof.code, { cfg, name, requirementIndex });
|
|
242
|
+
if (proof.established) {
|
|
243
|
+
credentials.push({ source: "native-github" });
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
let result;
|
|
248
|
+
try {
|
|
249
|
+
result = candidate(cfg, name, sourceOptions);
|
|
250
|
+
} catch (error) {
|
|
251
|
+
return failure(
|
|
252
|
+
error instanceof AccessFailure ? error.code : "provider-unreachable",
|
|
253
|
+
{ cfg, name, requirementIndex }
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
if (!result.available)
|
|
257
|
+
return failure(result.code, { cfg, name, requirementIndex });
|
|
258
|
+
resolved.set(name, result);
|
|
259
|
+
const { value, ...safe } = result;
|
|
260
|
+
credentials.push(safe);
|
|
261
|
+
}
|
|
262
|
+
for (const requirement of header.required_access.filter(
|
|
263
|
+
r => r.kind === "capability"
|
|
264
|
+
)) {
|
|
265
|
+
const candidates = new Map();
|
|
266
|
+
let result =
|
|
267
|
+
requirement.access_layer === "github"
|
|
268
|
+
? capability(cfg, requirement, candidates)
|
|
269
|
+
: null;
|
|
270
|
+
if (!result || result.code === "capability-unreachable")
|
|
271
|
+
for (const name of requirement.credential_names) {
|
|
272
|
+
try {
|
|
273
|
+
candidates.set(
|
|
274
|
+
name,
|
|
275
|
+
resolved.get(name) ?? candidate(cfg, name, sourceOptions)
|
|
276
|
+
);
|
|
277
|
+
} catch (error) {
|
|
278
|
+
const code =
|
|
279
|
+
error instanceof AccessFailure
|
|
280
|
+
? error.code
|
|
281
|
+
: "provider-unreachable";
|
|
282
|
+
candidates.set(name, {
|
|
283
|
+
available: false,
|
|
284
|
+
code,
|
|
285
|
+
provider_health: code,
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (!result || result.code === "capability-unreachable") {
|
|
290
|
+
const source = candidates.get("GH_TOKEN");
|
|
291
|
+
result =
|
|
292
|
+
requirement.access_layer === "github" && !source?.available
|
|
293
|
+
? {
|
|
294
|
+
established: false,
|
|
295
|
+
code: source?.code ?? "credential-missing",
|
|
296
|
+
provider_health: source?.provider_health ?? "not-observed",
|
|
297
|
+
tool: "gh",
|
|
298
|
+
}
|
|
299
|
+
: capability(cfg, requirement, candidates);
|
|
300
|
+
}
|
|
301
|
+
const detail = {
|
|
302
|
+
cfg,
|
|
303
|
+
requirementIndex: header.required_access.indexOf(requirement) + 1,
|
|
304
|
+
name: requirement.credential_names[0],
|
|
305
|
+
owner: result.owner,
|
|
306
|
+
tool: result.tool,
|
|
307
|
+
};
|
|
308
|
+
if (result.outcome === NATIVE_OWNER_REQUIRED) {
|
|
309
|
+
const handoff = {
|
|
310
|
+
...failure("native-proof-needed", detail),
|
|
311
|
+
outcome: NATIVE_OWNER_REQUIRED,
|
|
312
|
+
allowed: null,
|
|
313
|
+
provider_health: result.provider_health,
|
|
314
|
+
primary_available: result.primary_available === true,
|
|
315
|
+
source_available: result.source_available === true,
|
|
316
|
+
checked_scope: "native-flow-duty",
|
|
317
|
+
};
|
|
318
|
+
pending.push(handoff);
|
|
319
|
+
} else if (!result.established)
|
|
320
|
+
return {
|
|
321
|
+
...failure(result.code, detail),
|
|
322
|
+
provider_health:
|
|
323
|
+
result.provider_health ??
|
|
324
|
+
[...candidates.values()].map(c => c.provider_health),
|
|
325
|
+
};
|
|
326
|
+
else
|
|
327
|
+
capabilities.push({
|
|
328
|
+
...result,
|
|
329
|
+
provider_health: result.provider_health ?? "not-observed",
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
if (pending.length)
|
|
333
|
+
return { ...pending[0], pending, credentials, capabilities };
|
|
334
|
+
return {
|
|
335
|
+
outcome: ESTABLISHED,
|
|
336
|
+
allowed: true,
|
|
337
|
+
code: "ok",
|
|
338
|
+
checked_scope: "current-task",
|
|
339
|
+
credentials,
|
|
340
|
+
capabilities,
|
|
341
|
+
};
|
|
342
|
+
} catch (error) {
|
|
343
|
+
return failure(
|
|
344
|
+
error instanceof AccessFailure ? error.code : "config-invalid"
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/** Requirements-only intake header. No stored decision can authorize access. */
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { execFileSync } from "node:child_process";
|
|
4
|
+
import {
|
|
5
|
+
existsSync,
|
|
6
|
+
readFileSync,
|
|
7
|
+
realpathSync,
|
|
8
|
+
renameSync,
|
|
9
|
+
writeFileSync,
|
|
10
|
+
rmSync,
|
|
11
|
+
statSync,
|
|
12
|
+
lstatSync,
|
|
13
|
+
mkdirSync,
|
|
14
|
+
} from "node:fs";
|
|
15
|
+
import { join, dirname } from "node:path";
|
|
16
|
+
import { AccessFailure, plainObject } from "./config-layers.mjs";
|
|
17
|
+
import { writeRequirementsContext } from "./task-context-write.mjs";
|
|
18
|
+
import { configuredIssueRepository } from "../../lisa-github-read-issue/read-contract.mjs";
|
|
19
|
+
|
|
20
|
+
export const REQUIREMENTS_HEADER = "<!-- lisa-required-access:v1\n";
|
|
21
|
+
export const digest = value => createHash("sha256").update(value).digest("hex");
|
|
22
|
+
const stable = value =>
|
|
23
|
+
Array.isArray(value)
|
|
24
|
+
? value.map(stable)
|
|
25
|
+
: plainObject(value)
|
|
26
|
+
? Object.fromEntries(
|
|
27
|
+
Object.keys(value)
|
|
28
|
+
.sort()
|
|
29
|
+
.map(k => [k, stable(value[k])])
|
|
30
|
+
)
|
|
31
|
+
: value;
|
|
32
|
+
export const configDigest = cfg =>
|
|
33
|
+
digest(
|
|
34
|
+
JSON.stringify(
|
|
35
|
+
stable({
|
|
36
|
+
effective: cfg.effective,
|
|
37
|
+
root: cfg.projectRoot,
|
|
38
|
+
provenance: cfg.provenance,
|
|
39
|
+
surface: cfg.surface,
|
|
40
|
+
provider: cfg.provider,
|
|
41
|
+
namespace: cfg.namespace,
|
|
42
|
+
bootstrap: cfg.bootstrap,
|
|
43
|
+
})
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
const fields = [
|
|
47
|
+
"schema",
|
|
48
|
+
"work_item_ref",
|
|
49
|
+
"tracker",
|
|
50
|
+
"project_root",
|
|
51
|
+
"context_sha256",
|
|
52
|
+
"effective_config_sha256",
|
|
53
|
+
"surface",
|
|
54
|
+
"requirements_complete",
|
|
55
|
+
"required_access",
|
|
56
|
+
"requirements_sha256",
|
|
57
|
+
];
|
|
58
|
+
const entryFields = [
|
|
59
|
+
"id",
|
|
60
|
+
"kind",
|
|
61
|
+
"credential_names",
|
|
62
|
+
"access_layer",
|
|
63
|
+
"operation",
|
|
64
|
+
"resource",
|
|
65
|
+
];
|
|
66
|
+
const fail = () => {
|
|
67
|
+
throw new AccessFailure("requirements-stale");
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** Produce a leading requirements header while preserving every following byte. */
|
|
71
|
+
export function requirementsContext(cfg, ref, tracker, requiredAccess, body) {
|
|
72
|
+
const header = {
|
|
73
|
+
schema: 1,
|
|
74
|
+
work_item_ref: ref,
|
|
75
|
+
tracker,
|
|
76
|
+
project_root: cfg.projectRoot,
|
|
77
|
+
context_sha256: digest(body),
|
|
78
|
+
effective_config_sha256: configDigest(cfg),
|
|
79
|
+
surface: cfg.surface,
|
|
80
|
+
requirements_complete: true,
|
|
81
|
+
required_access: requiredAccess,
|
|
82
|
+
requirements_sha256: digest(JSON.stringify(requiredAccess)),
|
|
83
|
+
};
|
|
84
|
+
validateHeader(header);
|
|
85
|
+
return REQUIREMENTS_HEADER + JSON.stringify(header) + "\n-->\n" + body;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** Canonical bounded preclaim metadata transaction. No product/source write. */
|
|
89
|
+
export function prepareRequirements(cfg, ref, input) {
|
|
90
|
+
return writeRequirementsContext(
|
|
91
|
+
cfg,
|
|
92
|
+
ref,
|
|
93
|
+
input,
|
|
94
|
+
taskBinding(cfg.projectRoot),
|
|
95
|
+
requirementsContext,
|
|
96
|
+
REQUIREMENTS_HEADER
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function validateHeader(header) {
|
|
101
|
+
if (
|
|
102
|
+
!plainObject(header) ||
|
|
103
|
+
Object.keys(header).length !== fields.length ||
|
|
104
|
+
Object.keys(header).some(k => !fields.includes(k))
|
|
105
|
+
)
|
|
106
|
+
fail();
|
|
107
|
+
if (
|
|
108
|
+
header.schema !== 1 ||
|
|
109
|
+
header.requirements_complete !== true ||
|
|
110
|
+
!["github", "jira", "linear"].includes(header.tracker) ||
|
|
111
|
+
typeof header.work_item_ref !== "string" ||
|
|
112
|
+
!/^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/.test(
|
|
113
|
+
header.work_item_ref
|
|
114
|
+
)
|
|
115
|
+
)
|
|
116
|
+
fail();
|
|
117
|
+
if (
|
|
118
|
+
!Array.isArray(header.required_access) ||
|
|
119
|
+
header.required_access.length > 100
|
|
120
|
+
)
|
|
121
|
+
fail();
|
|
122
|
+
const ids = new Set();
|
|
123
|
+
for (const r of header.required_access) {
|
|
124
|
+
if (
|
|
125
|
+
!plainObject(r) ||
|
|
126
|
+
Object.keys(r).some(k => !entryFields.includes(k)) ||
|
|
127
|
+
!/^[a-z][a-z0-9-]{0,63}$/.test(r.id) ||
|
|
128
|
+
ids.has(r.id) ||
|
|
129
|
+
!["credential", "capability"].includes(r.kind)
|
|
130
|
+
)
|
|
131
|
+
fail();
|
|
132
|
+
ids.add(r.id);
|
|
133
|
+
if (
|
|
134
|
+
!Array.isArray(r.credential_names) ||
|
|
135
|
+
!r.credential_names.every(
|
|
136
|
+
n => typeof n === "string" && /^[A-Z_][A-Z0-9_]{0,127}$/.test(n)
|
|
137
|
+
)
|
|
138
|
+
)
|
|
139
|
+
fail();
|
|
140
|
+
if (
|
|
141
|
+
r.kind === "capability" &&
|
|
142
|
+
(typeof r.access_layer !== "string" ||
|
|
143
|
+
!/^[a-z][a-z0-9-]{0,63}$/.test(r.access_layer) ||
|
|
144
|
+
typeof r.operation !== "string" ||
|
|
145
|
+
!/^[a-z][a-z0-9-]{0,63}$/.test(r.operation) ||
|
|
146
|
+
typeof r.resource !== "string" ||
|
|
147
|
+
r.resource.length > 256 ||
|
|
148
|
+
/[\r\n\x00-\x1f]/.test(r.resource))
|
|
149
|
+
)
|
|
150
|
+
fail();
|
|
151
|
+
if (
|
|
152
|
+
r.kind === "credential" &&
|
|
153
|
+
(r.access_layer !== undefined ||
|
|
154
|
+
r.operation !== undefined ||
|
|
155
|
+
r.resource !== undefined ||
|
|
156
|
+
!r.credential_names.length)
|
|
157
|
+
)
|
|
158
|
+
fail();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Read current canonical binding; it remains owned by lisa-work-item. */
|
|
163
|
+
export function taskBinding(root) {
|
|
164
|
+
// Confirm positive repo-less absence before invoking a Git-only facility.
|
|
165
|
+
let dir = root;
|
|
166
|
+
for (;;) {
|
|
167
|
+
try {
|
|
168
|
+
statSync(join(dir, ".git"));
|
|
169
|
+
break;
|
|
170
|
+
} catch (error) {
|
|
171
|
+
if (!["ENOENT", "ENOTDIR"].includes(error.code)) fail();
|
|
172
|
+
const parent = dirname(dir);
|
|
173
|
+
if (parent === dir) return null;
|
|
174
|
+
dir = parent;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
let path;
|
|
178
|
+
try {
|
|
179
|
+
path = execFileSync(
|
|
180
|
+
"git",
|
|
181
|
+
["rev-parse", "--git-path", "lisa/work-item.json"],
|
|
182
|
+
{
|
|
183
|
+
cwd: root,
|
|
184
|
+
encoding: "utf8",
|
|
185
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
186
|
+
timeout: 5000,
|
|
187
|
+
}
|
|
188
|
+
).trim();
|
|
189
|
+
} catch (error) {
|
|
190
|
+
// probe-direction: fail-closed — an unreadable binding is not no active task.
|
|
191
|
+
throw new AccessFailure(
|
|
192
|
+
error.code === "ENOENT" ? "tool-missing" : "requirements-stale"
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
const absolute = join(root, path);
|
|
196
|
+
const actual = path.startsWith("/") ? path : absolute;
|
|
197
|
+
try {
|
|
198
|
+
statSync(actual);
|
|
199
|
+
} catch (error) {
|
|
200
|
+
if (error.code === "ENOENT") return null;
|
|
201
|
+
fail();
|
|
202
|
+
}
|
|
203
|
+
try {
|
|
204
|
+
const value = JSON.parse(readFileSync(actual, "utf8"));
|
|
205
|
+
if (
|
|
206
|
+
!plainObject(value) ||
|
|
207
|
+
Object.keys(value).length !== 4 ||
|
|
208
|
+
Object.keys(value).some(
|
|
209
|
+
key => !["version", "provider", "ref", "branch"].includes(key)
|
|
210
|
+
) ||
|
|
211
|
+
value.version !== 1 ||
|
|
212
|
+
!["github", "linear", "jira"].includes(value.provider) ||
|
|
213
|
+
typeof value.ref !== "string" ||
|
|
214
|
+
!value.ref.length ||
|
|
215
|
+
value.ref.length > 512 ||
|
|
216
|
+
!(value.branch === null || typeof value.branch === "string")
|
|
217
|
+
)
|
|
218
|
+
fail();
|
|
219
|
+
return value;
|
|
220
|
+
} catch {
|
|
221
|
+
fail();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/** Recompute root/ref/config/surface/body/requirements equality on every action. */
|
|
226
|
+
export function readTaskRequirements(cfg, { ref, tracker, binding } = {}) {
|
|
227
|
+
if (cfg.provenance?.status === "undiscovered")
|
|
228
|
+
throw new AccessFailure("config-undiscovered");
|
|
229
|
+
if (binding === undefined) binding = taskBinding(cfg.projectRoot);
|
|
230
|
+
const path = join(cfg.projectRoot, ".lisa/work-item-context.md");
|
|
231
|
+
if (!existsSync(path)) {
|
|
232
|
+
if (binding || ref) fail();
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
if (realpathSync(path) !== path) fail();
|
|
236
|
+
const context = readFileSync(path, "utf8");
|
|
237
|
+
if (!context.startsWith(REQUIREMENTS_HEADER)) fail();
|
|
238
|
+
const end = context.indexOf("\n-->\n");
|
|
239
|
+
if (end < 0 || end > 65536) fail();
|
|
240
|
+
const raw = context.slice(REQUIREMENTS_HEADER.length, end);
|
|
241
|
+
let header;
|
|
242
|
+
try {
|
|
243
|
+
header = JSON.parse(raw);
|
|
244
|
+
} catch {
|
|
245
|
+
fail();
|
|
246
|
+
}
|
|
247
|
+
validateHeader(header);
|
|
248
|
+
// Canonical JSON also rejects duplicate keys and ambiguous alternate spellings.
|
|
249
|
+
if (JSON.stringify(header) !== raw) fail();
|
|
250
|
+
const body = context.slice(end + 5);
|
|
251
|
+
if (body.startsWith(REQUIREMENTS_HEADER)) fail();
|
|
252
|
+
if (
|
|
253
|
+
header.project_root !== cfg.projectRoot ||
|
|
254
|
+
header.context_sha256 !== digest(body) ||
|
|
255
|
+
header.effective_config_sha256 !== configDigest(cfg) ||
|
|
256
|
+
header.surface !== cfg.surface ||
|
|
257
|
+
header.requirements_sha256 !==
|
|
258
|
+
digest(JSON.stringify(header.required_access))
|
|
259
|
+
)
|
|
260
|
+
fail();
|
|
261
|
+
if (
|
|
262
|
+
(ref && header.work_item_ref !== ref) ||
|
|
263
|
+
(tracker && header.tracker !== tracker) ||
|
|
264
|
+
(cfg.effective?.tracker && header.tracker !== cfg.effective.tracker)
|
|
265
|
+
)
|
|
266
|
+
fail();
|
|
267
|
+
if (cfg.effective?.github && header.tracker === "github") {
|
|
268
|
+
const repo = configuredIssueRepository(cfg.effective.github);
|
|
269
|
+
if (!repo || !header.work_item_ref.startsWith(`${repo}#`)) fail();
|
|
270
|
+
}
|
|
271
|
+
if (
|
|
272
|
+
binding &&
|
|
273
|
+
(binding.ref !== header.work_item_ref ||
|
|
274
|
+
binding.provider !== header.tracker ||
|
|
275
|
+
binding.version !== 1)
|
|
276
|
+
)
|
|
277
|
+
fail();
|
|
278
|
+
return header;
|
|
279
|
+
}
|