@codyswann/lisa 4.85.0 → 4.86.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/all/copy-overwrite/scripts/lib/completion-proof-content.mjs +63 -22
- package/all/copy-overwrite/scripts/lib/npm-update-hosted-hook.mjs +6 -1
- package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +19 -3
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +2 -2
- package/dist/cli/doctor-session-manager-pending.d.ts +17 -0
- package/dist/cli/doctor-session-manager-pending.d.ts.map +1 -0
- package/dist/cli/doctor-session-manager-pending.js +130 -0
- package/dist/cli/doctor-session-manager-pending.js.map +1 -0
- package/dist/cli/doctor-session-manager-token.d.ts +69 -0
- package/dist/cli/doctor-session-manager-token.d.ts.map +1 -0
- package/dist/cli/doctor-session-manager-token.js +264 -0
- package/dist/cli/doctor-session-manager-token.js.map +1 -0
- package/dist/cli/doctor-session-manager.d.ts +3 -1
- package/dist/cli/doctor-session-manager.d.ts.map +1 -1
- package/dist/cli/doctor-session-manager.js +168 -146
- package/dist/cli/doctor-session-manager.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +16 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- 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 +168 -26
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/parity-safety-net.sh +19 -3
- 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-parity-sentry-sdk-setup/SKILL.md +24 -17
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/SKILL.md +5 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +121 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +86 -31
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +197 -54
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/references/runbook-template.md +23 -10
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +21 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-human.mjs +199 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-manager-token.mjs +99 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-manager.mjs +52 -52
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -139
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-runtime.mjs +5 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-setup.mjs +94 -14
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-status.mjs +73 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +105 -15
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/config.mjs +39 -11
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-answer.mjs +162 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-needed.mjs +198 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/json-input.mjs +34 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/launch-shell.mjs +115 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/launch.mjs +69 -60
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/ledger-questions.mjs +252 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/ledger.mjs +22 -56
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/queue-github.mjs +117 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/session-manager.mjs +17 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/token-migrate.mjs +180 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/token-provider.mjs +150 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/token-read.mjs +166 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/token-store.mjs +248 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/token.mjs +39 -120
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-session-manager/SKILL.md +82 -19
- package/plugins/lisa/commands/session-manager.md +1 -1
- package/plugins/lisa/commands/setup/session-manager.md +1 -1
- package/plugins/lisa/hooks/parity-safety-net.sh +19 -3
- package/plugins/lisa/rules/reference/config-resolution.md +39 -7
- package/plugins/lisa/skills/lisa-parity-sentry-sdk-setup/SKILL.md +24 -17
- package/plugins/lisa/skills/lisa-secrets-access/SKILL.md +5 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +121 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +86 -31
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +197 -54
- package/plugins/lisa/skills/lisa-session-manager/references/runbook-template.md +23 -10
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +21 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-human.mjs +199 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-manager-token.mjs +99 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-manager.mjs +52 -52
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -139
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-runtime.mjs +5 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-setup.mjs +94 -14
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-status.mjs +73 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +105 -15
- package/plugins/lisa/skills/lisa-session-manager/scripts/config.mjs +39 -11
- package/plugins/lisa/skills/lisa-session-manager/scripts/human-answer.mjs +162 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/human-needed.mjs +198 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/json-input.mjs +34 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/launch-shell.mjs +115 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/launch.mjs +69 -60
- package/plugins/lisa/skills/lisa-session-manager/scripts/ledger-questions.mjs +252 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/ledger.mjs +22 -56
- package/plugins/lisa/skills/lisa-session-manager/scripts/queue-github.mjs +117 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/session-manager.mjs +17 -5
- package/plugins/lisa/skills/lisa-session-manager/scripts/token-migrate.mjs +180 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/token-provider.mjs +150 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/token-read.mjs +166 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/token-store.mjs +248 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/token.mjs +39 -120
- package/plugins/lisa/skills/lisa-setup-session-manager/SKILL.md +82 -19
- package/plugins/lisa-agy/commands/lisa/session-manager.md +1 -1
- package/plugins/lisa-agy/commands/lisa/setup/session-manager.md +1 -1
- package/plugins/lisa-agy/hooks/parity-safety-net.sh +19 -3
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-parity-sentry-sdk-setup/SKILL.md +24 -17
- package/plugins/lisa-agy/skills/lisa-secrets-access/SKILL.md +5 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +121 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +86 -31
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +197 -54
- package/plugins/lisa-agy/skills/lisa-session-manager/references/runbook-template.md +23 -10
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +21 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-human.mjs +199 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-manager-token.mjs +99 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-manager.mjs +52 -52
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -139
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-runtime.mjs +5 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-setup.mjs +94 -14
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-status.mjs +73 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +105 -15
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/config.mjs +39 -11
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-answer.mjs +162 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-needed.mjs +198 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/json-input.mjs +34 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/launch-shell.mjs +115 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/launch.mjs +69 -60
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/ledger-questions.mjs +252 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/ledger.mjs +22 -56
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/queue-github.mjs +117 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/session-manager.mjs +17 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/token-migrate.mjs +180 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/token-provider.mjs +150 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/token-read.mjs +166 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/token-store.mjs +248 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/token.mjs +39 -120
- package/plugins/lisa-agy/skills/lisa-setup-session-manager/SKILL.md +82 -19
- 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/commands/lisa/session-manager.md +1 -1
- package/plugins/lisa-copilot/commands/lisa/setup/session-manager.md +1 -1
- package/plugins/lisa-copilot/hooks/parity-safety-net.sh +19 -3
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +39 -7
- package/plugins/lisa-copilot/skills/lisa-parity-sentry-sdk-setup/SKILL.md +24 -17
- package/plugins/lisa-copilot/skills/lisa-secrets-access/SKILL.md +5 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/providers.mjs +121 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +86 -31
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +197 -54
- package/plugins/lisa-copilot/skills/lisa-session-manager/references/runbook-template.md +23 -10
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +21 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-human.mjs +199 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-manager-token.mjs +99 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-manager.mjs +52 -52
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -139
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-runtime.mjs +5 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-setup.mjs +94 -14
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-status.mjs +73 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +105 -15
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/config.mjs +39 -11
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-answer.mjs +162 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-needed.mjs +198 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/json-input.mjs +34 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/launch-shell.mjs +115 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/launch.mjs +69 -60
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/ledger-questions.mjs +252 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/ledger.mjs +22 -56
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/queue-github.mjs +117 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/session-manager.mjs +17 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/token-migrate.mjs +180 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/token-provider.mjs +150 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/token-read.mjs +166 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/token-store.mjs +248 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/token.mjs +39 -120
- package/plugins/lisa-copilot/skills/lisa-setup-session-manager/SKILL.md +82 -19
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/commands/lisa/session-manager.md +1 -1
- package/plugins/lisa-cursor/commands/lisa/setup/session-manager.md +1 -1
- package/plugins/lisa-cursor/hooks/parity-safety-net.sh +19 -3
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +39 -7
- package/plugins/lisa-cursor/skills/lisa-parity-sentry-sdk-setup/SKILL.md +24 -17
- package/plugins/lisa-cursor/skills/lisa-secrets-access/SKILL.md +5 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +121 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +86 -31
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +197 -54
- package/plugins/lisa-cursor/skills/lisa-session-manager/references/runbook-template.md +23 -10
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +21 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-human.mjs +199 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-manager-token.mjs +99 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-manager.mjs +52 -52
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -139
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-runtime.mjs +5 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-setup.mjs +94 -14
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-status.mjs +73 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +105 -15
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/config.mjs +39 -11
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-answer.mjs +162 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-needed.mjs +198 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/json-input.mjs +34 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/launch-shell.mjs +115 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/launch.mjs +69 -60
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/ledger-questions.mjs +252 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/ledger.mjs +22 -56
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/queue-github.mjs +117 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/session-manager.mjs +17 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/token-migrate.mjs +180 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/token-provider.mjs +150 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/token-read.mjs +166 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/token-store.mjs +248 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/token.mjs +39 -120
- package/plugins/lisa-cursor/skills/lisa-setup-session-manager/SKILL.md +82 -19
- 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/parity-safety-net.sh +19 -3
- package/plugins/lisa-devin/rules/reference/config-resolution.md +39 -7
- package/plugins/lisa-devin/skills/lisa-parity-sentry-sdk-setup/SKILL.md +24 -17
- package/plugins/lisa-devin/skills/lisa-secrets-access/SKILL.md +5 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/providers.mjs +121 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +86 -31
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +197 -54
- package/plugins/lisa-devin/skills/lisa-session-manager/references/runbook-template.md +23 -10
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +21 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-human.mjs +199 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-manager-token.mjs +99 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-manager.mjs +52 -52
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -139
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-runtime.mjs +5 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-setup.mjs +94 -14
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-status.mjs +73 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +105 -15
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/config.mjs +39 -11
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-answer.mjs +162 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-needed.mjs +198 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/json-input.mjs +34 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/launch-shell.mjs +115 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/launch.mjs +69 -60
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/ledger-questions.mjs +252 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/ledger.mjs +22 -56
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/queue-github.mjs +117 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/session-manager.mjs +17 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/token-migrate.mjs +180 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/token-provider.mjs +150 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/token-read.mjs +166 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/token-store.mjs +248 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/token.mjs +39 -120
- package/plugins/lisa-devin/skills/lisa-setup-session-manager/SKILL.md +82 -19
- 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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-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/src/base/commands/session-manager.md +1 -1
- package/plugins/src/base/commands/setup/session-manager.md +1 -1
- package/plugins/src/base/hooks/parity-safety-net.sh +19 -3
- package/plugins/src/base/rules/reference/config-resolution.md +39 -7
- package/plugins/src/base/skills/lisa-parity-sentry-sdk-setup/SKILL.md +24 -17
- package/plugins/src/base/skills/lisa-secrets-access/SKILL.md +5 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs +121 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +86 -31
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +197 -54
- package/plugins/src/base/skills/lisa-session-manager/references/runbook-template.md +23 -10
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +21 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-human.mjs +199 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-manager-token.mjs +99 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-manager.mjs +52 -52
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -139
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-runtime.mjs +5 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-setup.mjs +94 -14
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-status.mjs +73 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +105 -15
- package/plugins/src/base/skills/lisa-session-manager/scripts/config.mjs +39 -11
- package/plugins/src/base/skills/lisa-session-manager/scripts/human-answer.mjs +162 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/human-needed.mjs +198 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/json-input.mjs +34 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/launch-shell.mjs +115 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/launch.mjs +69 -60
- package/plugins/src/base/skills/lisa-session-manager/scripts/ledger-questions.mjs +252 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/ledger.mjs +22 -56
- package/plugins/src/base/skills/lisa-session-manager/scripts/queue-github.mjs +117 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/session-manager.mjs +17 -5
- package/plugins/src/base/skills/lisa-session-manager/scripts/token-migrate.mjs +180 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/token-provider.mjs +150 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/token-read.mjs +166 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/token-store.mjs +248 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/token.mjs +39 -120
- package/plugins/src/base/skills/lisa-setup-session-manager/SKILL.md +82 -19
|
@@ -3475,12 +3475,28 @@ if [ -f "$rules_file" ]; then
|
|
|
3475
3475
|
# here — before the remaining rules ran, and with an exit status that is
|
|
3476
3476
|
# not a refusal. The `||` puts the pipeline in a condition context, where
|
|
3477
3477
|
# a non-zero status is expected rather than fatal.
|
|
3478
|
-
#
|
|
3479
|
-
#
|
|
3478
|
+
# A here-string, never a pipe. With `printf | grep` under pipefail, a grep
|
|
3479
|
+
# that stops at its first match (`-q`, and GNU grep whose stdout is
|
|
3480
|
+
# /dev/null, which it treats as `-q`) closes the pipe while printf is still
|
|
3481
|
+
# writing; printf takes SIGPIPE and the pipeline reports 141 instead of
|
|
3482
|
+
# grep's 0. 141 lands in the `*)` arm below and a rule that MATCHED was
|
|
3483
|
+
# reported as an invalid regex and not enforced (CodySwannGT/lisa#4564).
|
|
3484
|
+
# A here-string has no writer process, so the status is grep's alone.
|
|
3485
|
+
#
|
|
3486
|
+
# The here-string is staged by the shell (a pipe, or a temp file for a
|
|
3487
|
+
# large body or on Bash 3.2), and that staging can fail: no temp space,
|
|
3488
|
+
# a file-size limit. A failed redirection on a bare `grep … <<<` returns
|
|
3489
|
+
# 1, the same status as "no match", so the rule would silently pass. The
|
|
3490
|
+
# brace group separates the two: grep's own status is captured INSIDE it,
|
|
3491
|
+
# so the group itself only fails when the redirection could not be set up.
|
|
3480
3492
|
rule_status=0
|
|
3481
|
-
|
|
3493
|
+
{ grep -qEi -- "$rule" || rule_status=$?; } <<<"$custom_command_str" \
|
|
3494
|
+
|| rule_status=unstaged
|
|
3482
3495
|
case "$rule_status" in
|
|
3483
3496
|
0) block "matched a project custom safety rule (${rules_file##*/}): $rule" ;;
|
|
3497
|
+
# Fail closed: the rule could not be evaluated at all, which is not the
|
|
3498
|
+
# same thing as the rule not matching.
|
|
3499
|
+
unstaged) block "could not stage the command to check project custom safety rule (${rules_file##*/}): $rule" ;;
|
|
3484
3500
|
1) ;; # no match
|
|
3485
3501
|
# grep exits 2 on a malformed ERE. Treated as no-match before, so a typo
|
|
3486
3502
|
# in a project's rules file silently disabled that rule — a guard the
|
|
@@ -285,7 +285,7 @@ fi
|
|
|
285
285
|
| `health.schedule` | no | `off` | Health cadence contract: `off`, `daily`, or `weekly`. `lisa sync` populates the default with `_lisaSync.populated` provenance and rejects values outside this closed vocabulary. Runtime results live only at the gitignored `.lisa/health/latest.json`, never in either config file. |
|
|
286
286
|
| `usage` | no | — | Optional token/cost pricing metadata consumed by the `usage-accounting` rule. Missing pricing never blocks a lifecycle flow; Lisa records token counts with `estimated_cost: null` when no trustworthy price source is configured. |
|
|
287
287
|
| `wiki` | no | — | Wiki location for the `wiki-knowledge-source` rule. Omit for a local in-repo wiki (`wiki/`). See **Wiki source** below. |
|
|
288
|
-
| `sessionManager` | no | — (opt-in) | Local session manager: polls the Ready queue, runs each item in a fresh background Claude Code session, and relays questions over a per-project Telegram bot. Absent means the manager is not used; `lisa sync` never populates it. Written by `/lisa:setup:session-manager`. See **Session manager (`sessionManager`)** below. |
|
|
288
|
+
| `sessionManager` | no | — (opt-in) | Local session manager: polls the Ready queue, runs each item in a fresh background Claude Code session, and relays questions over a per-project Telegram bot when one is configured (optional). Absent means the manager is not used; `lisa sync` never populates it. Written by `/lisa:setup:session-manager`. See **Session manager (`sessionManager`)** below. |
|
|
289
289
|
|
|
290
290
|
### Host rules (`.agents/rules/`)
|
|
291
291
|
|
|
@@ -721,6 +721,11 @@ have a `.lisa.config.json` and their own `.git` (written as `"root": "."`).
|
|
|
721
721
|
}
|
|
722
722
|
```
|
|
723
723
|
|
|
724
|
+
Telegram is optional. `"notify": { "provider": "none" }`, or no `notify` key at all, runs the
|
|
725
|
+
manager with no notification channel: no bot token, Telegram plugin or pairing, and questions wait
|
|
726
|
+
in the manager's ledger (`status` shows them). Setup writes `{ "provider": "none" }` unless the
|
|
727
|
+
operator chooses Telegram (`init-config --notify telegram`).
|
|
728
|
+
|
|
724
729
|
| Key | Required | Default | Notes |
|
|
725
730
|
|-----|----------|---------|-------|
|
|
726
731
|
| `sessionManager.name` | **yes** | — | Manager session name: lowercase letters, digits, `-` or `_`, at most 64 characters. It names the tmux session and the session workers `SendMessage` to. Setup writes `<project>-manager`. |
|
|
@@ -736,20 +741,47 @@ have a `.lisa.config.json` and their own `.git` (written as `"root": "."`).
|
|
|
736
741
|
| `sessionManager.stall.noOutputMinutes` | no | `60` | A live worker with no new output for this long counts as stalled (zero or positive). |
|
|
737
742
|
| `sessionManager.stall.maxAttempts` | no | `3` | Fresh sessions per item before it moves to the configured `blocked` role (a positive integer). |
|
|
738
743
|
| `sessionManager.stall.requestionHours` | no | `4` | How long an unanswered worker question waits before the manager asks again (zero or positive). |
|
|
739
|
-
| `sessionManager.notify.provider` | no | `
|
|
740
|
-
| `sessionManager.notify.stateDir` | **yes** | — | This project's own Telegram state dir. Never the shared default `~/.claude/channels/telegram`, because one bot per state dir is how projects stay isolated. Setup writes `~/.claude/channels/telegram-<project>`. |
|
|
744
|
+
| `sessionManager.notify.provider` | no | `none` | `none` (no notification channel) or `telegram`. Absent, like an absent `notify` block, means `none`. Any other value fails validation. |
|
|
745
|
+
| `sessionManager.notify.stateDir` | **yes** with `telegram`; must be absent otherwise | — | This project's own Telegram state dir. A `stateDir` without the `telegram` provider fails validation, because no bot would use it. Never the shared default `~/.claude/channels/telegram`, because one bot per state dir is how projects stay isolated. Setup writes `~/.claude/channels/telegram-<project>`. |
|
|
741
746
|
| `sessionManager.trustedAuthorIds` | no | — | Optional list of **stable tracker user ids**, as strings: the GitHub numeric user id (`gh api users/<login> --jq .id`), the Jira `accountId`, or the Linear user id. Not logins or display names: matching compares ids, so a login silently matches no one and excludes every item. When set, the manager takes only items authored by these people. |
|
|
742
747
|
| `sessionManager.operatorIds` | no | — | Optional, non-empty list of the people the manager works for, as tracker user ids matched against the **assignee** the same way "me" is: the GitHub **login**, the Jira `accountId`, or the Linear user id, spelled exactly as the tracker API returns it (matching is case-sensitive, so look the OPERATOR up rather than typing from memory: `gh api users/<operator-login> --jq .login` returns the canonical GitHub spelling. Do not use `gh api user`, which returns whoever the credential belongs to — the agent account, when that is the case this key exists for). Dispatch order is assigned to an operator, then to "me" (the tracker credential's identity), then unassigned; items assigned to anyone else are skipped. Set it whenever the tracker credential is not the operator's own (an agent account), or the operator's Ready items are never dispatched. |
|
|
743
748
|
| `sessionManager.backlogPickup` | no | `false` | Opt-in lowest dispatch tier. When the Ready queue is exhausted and capacity remains, the manager considers backlog items (open leaves in no lifecycle role) with the Ready exclusions plus any unfinished blocker; each one that passes the tracker validator (all gates, including the stateless-pickup dry-run) is assigned to the first `operatorIds` entry, moved to Ready in one write, read back and dispatched. A failed validation is cached against the item's `updatedAt`, so it is re-judged only after the item changes. Requires `operatorIds`. |
|
|
744
749
|
|
|
745
|
-
- **Non-secret only.**
|
|
746
|
-
|
|
747
|
-
|
|
750
|
+
- **Non-secret only.** A credential-named field or a token-shaped value anywhere in this block is a
|
|
751
|
+
validation error. With Telegram, where the bot token lives follows the project's `secrets` block
|
|
752
|
+
(`lisa-secrets-access`):
|
|
753
|
+
- **A secrets provider is configured** (`secrets.provider` set and not `env`): the token is the
|
|
754
|
+
provider secret `TELEGRAM_BOT_TOKEN_<NAME>`, where `<NAME>` is `sessionManager.name`
|
|
755
|
+
upper-snaked (`lisa-1a2b-manager` → `TELEGRAM_BOT_TOKEN_LISA_1A2B_MANAGER`). There is no config
|
|
756
|
+
key for it. `store-token` writes it (migrating, then deleting, any plaintext `<stateDir>/.env`);
|
|
757
|
+
`start` reads it once and passes it to the manager's tmux session only. When `secrets.require`
|
|
758
|
+
is declared it must list that name. A plaintext `<stateDir>/.env` left beside a provider stops
|
|
759
|
+
`start` (exit 2) with the `store-token` command that migrates it, and doctor warns about it.
|
|
760
|
+
- **No provider**: the token lives in `<stateDir>/.env` (directory 0700, file 0600), written by
|
|
761
|
+
setup, and doctor warns that it is plaintext.
|
|
748
762
|
- **Local over global, per key.** `.lisa.config.local.json` overrides `.lisa.config.json` key by key
|
|
749
763
|
(for example, a smaller `capacity.maxWorkers` on one machine); arrays such as `hints` are
|
|
750
764
|
replaced, not merged. Built-in defaults fill whatever neither file sets.
|
|
751
765
|
- **Workflow roles are not here.** Ready, claimed and blocked come from the existing tracker
|
|
752
|
-
workflow config, through the single role resolver, like every other lifecycle flow.
|
|
766
|
+
workflow config, through the single role resolver, like every other lifecycle flow. When an item
|
|
767
|
+
needs a human, the manager marks it with the tracker's human-needed label
|
|
768
|
+
(`github.labels.build.human_needed`, `jira.labels.human_needed`,
|
|
769
|
+
`linear.labels.build.human_needed`, else the tracker's default), or with the `blocked` role when
|
|
770
|
+
no label resolves, and moves an `exhausted` item to the `blocked` role; `mark-plan` resolves
|
|
771
|
+
both, so neither name is ever hard-coded.
|
|
772
|
+
- **Who may answer on the item.** A reply on a human-needed item is taken as the answer only from
|
|
773
|
+
`sessionManager.operatorIds` or `trustedAuthorIds`, matched on stable ids (GitHub login or
|
|
774
|
+
numeric id, Jira `accountId`, Linear user id; never a display name or email), and never from a
|
|
775
|
+
machine comment, which is excluded first, whoever wrote it: one starting with a Lisa or Claude
|
|
776
|
+
tag such as `[lisa-…]` or `[claude-sync]`, holding `[lisa-` or `<!-- lisa:`, saying "Written by
|
|
777
|
+
Claude", carrying the agent-attribution footer, or whose id the manager recorded as its own
|
|
778
|
+
(`ledger marked --comment-id`). Quoted (`>`) lines are ignored when testing those markers, so a
|
|
779
|
+
quote reply is still an answer. The answer must follow the question comment the manager
|
|
780
|
+
recorded last by id, or, with no recorded id, the latest comment that starts with the question
|
|
781
|
+
marker and is by an allowed answerer. With neither list set, nothing on the item is read
|
|
782
|
+
(`item-answer` reports `no-answerers-configured`): there is no fallback to the tracker
|
|
783
|
+
credential's identity, because the workers and the manager post as it. The operator then answers
|
|
784
|
+
with the `answerCommand` that `status` lists. Set `operatorIds` even in a single-user setup.
|
|
753
785
|
- **Shape check.** `validateSessionManager` in
|
|
754
786
|
`lisa-secrets-access/scripts/validate-config.mjs` runs as part of `validateConfig`, so
|
|
755
787
|
`/lisa:doctor` reports a malformed block.
|
|
@@ -177,8 +177,11 @@ once at module startup with the DSN from the environment. Await a finite positiv
|
|
|
177
177
|
flush budget on both success and original-error paths. A false flush result or
|
|
178
178
|
rejection must not turn successful queue work into a retry or replace its real
|
|
179
179
|
error. Keep diagnostics local and non-throwing, and preserve the client for warm
|
|
180
|
-
invocations: `close()` disables it.
|
|
181
|
-
|
|
180
|
+
invocations: `close()` disables it. A warm container reuses the same process, so
|
|
181
|
+
run each invocation inside `Sentry.withIsolationScope()`: tags, user and
|
|
182
|
+
breadcrumbs that one invocation sets then stay with that invocation instead of
|
|
183
|
+
leaking into the next one's events. The following helper wraps the host's existing
|
|
184
|
+
business operation; it neither mutates the Lambda context nor adds a Lambda callback.
|
|
182
185
|
|
|
183
186
|
<!-- lisa-node24-unwrapped-example:start -->
|
|
184
187
|
```ts
|
|
@@ -200,24 +203,28 @@ export async function withSentryFlush<T>(
|
|
|
200
203
|
if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {
|
|
201
204
|
throw new RangeError("Choose a finite positive Sentry flush budget");
|
|
202
205
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
try {
|
|
207
|
-
Sentry.captureException(originalError);
|
|
208
|
-
} catch {
|
|
209
|
-
// Preserve the original handler error even if capture fails.
|
|
210
|
-
}
|
|
211
|
-
throw originalError;
|
|
212
|
-
} finally {
|
|
206
|
+
// A fresh isolation scope per invocation: scope data set by one warm
|
|
207
|
+
// invocation must not be attached to the next invocation's events.
|
|
208
|
+
return Sentry.withIsolationScope(async () => {
|
|
213
209
|
try {
|
|
214
|
-
|
|
215
|
-
|
|
210
|
+
return await work();
|
|
211
|
+
} catch (originalError) {
|
|
212
|
+
try {
|
|
213
|
+
Sentry.captureException(originalError);
|
|
214
|
+
} catch {
|
|
215
|
+
// Preserve the original handler error even if capture fails.
|
|
216
|
+
}
|
|
217
|
+
throw originalError;
|
|
218
|
+
} finally {
|
|
219
|
+
try {
|
|
220
|
+
if (!(await Sentry.flush(timeoutMs))) {
|
|
221
|
+
reportFlushProblem("Sentry flush did not finish in time");
|
|
222
|
+
}
|
|
223
|
+
} catch {
|
|
224
|
+
reportFlushProblem("Sentry flush rejected");
|
|
216
225
|
}
|
|
217
|
-
} catch {
|
|
218
|
-
reportFlushProblem("Sentry flush rejected");
|
|
219
226
|
}
|
|
220
|
-
}
|
|
227
|
+
});
|
|
221
228
|
}
|
|
222
229
|
```
|
|
223
230
|
<!-- lisa-node24-unwrapped-example:end -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lisa-secrets-access
|
|
3
|
-
description: "Vendor-neutral access layer for secrets. Every skill and script that needs an API key MUST resolve it through this skill rather than reading a keychain, an .env file, or a provider CLI directly. Models two independent axes — the provider a secret lives in (Bitwarden, 1Password, AWS Secrets Manager, Doppler, Vault) and the surface the code runs on (local, GitHub Actions, Codex Cloud) — resolving environment first, then a materialized file where the surface has one, then the provider by exact key name. Enforces one store per secret, fails closed on duplicate names, reads usage metadata from the provider's own note field, and never writes. Rotating credentials route through the separate rotate-secret writer, and copying one into a second store (Bitwarden → GitHub Actions) routes through the separate sync-secret-to-ci propagator."
|
|
3
|
+
description: "Vendor-neutral access layer for secrets. Every skill and script that needs an API key MUST resolve it through this skill rather than reading a keychain, an .env file, or a provider CLI directly. Models two independent axes — the provider a secret lives in (Bitwarden, 1Password, AWS Secrets Manager, Doppler, Vault) and the surface the code runs on (local, GitHub Actions, Codex Cloud) — resolving environment first, then a materialized file where the surface has one, then the provider by exact key name. Enforces one store per secret, fails closed on duplicate names, reads usage metadata from the provider's own note field, and never writes. Rotating credentials route through the separate rotate-secret writer, and copying one into a second store (Bitwarden → GitHub Actions) routes through the separate sync-secret-to-ci propagator; the session manager's Telegram bot token is stored through its own store-token, which uses this skill's provider write path."
|
|
4
4
|
allowed-tools: ["Bash", "Read", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -273,6 +273,8 @@ No create, no update, no rotate. Writing secrets or their notes requires an auth
|
|
|
273
273
|
|
|
274
274
|
The two writers are siblings, not modes: `rotate-secret.mjs` replaces a value **at its source**, and `sync-secret-to-ci.mjs` copies one **into a second store** without touching the source. Each needs an authority the resolver must not hold, so each is its own program with its own declaration list.
|
|
275
275
|
|
|
276
|
+
A third, narrow writer lives outside this skill: the session manager's `store-token` (`lisa-session-manager/scripts/token-store.mjs`) stores the Telegram bot token as `TELEGRAM_BOT_TOKEN_<NAME>` through `providers.mjs` `createSecret` (a new record) or `writeSecret` (`--replace`), then reads it back through the ordinary provider view and compares hashes before deleting the plaintext file it replaces. It writes that one name only, and only when an operator runs it. `createSecret` is Bitwarden-only; on any other provider the operator creates the secret and `store-token` verifies it. Like `bws secret edit`, `bws secret create` (2.1.0) takes the value as a positional argument and its help offers no stdin or file option, so the value is in argv for the life of that one call: the same documented exception, confined the same way (no shell, `--output none`, and a failure message that never repeats the command line).
|
|
277
|
+
|
|
276
278
|
## Rotating credentials
|
|
277
279
|
|
|
278
280
|
A **consumable** credential is one where using it can invalidate the stored copy: an OAuth refresh token the issuer replaces on every exchange, a short-lived session, a single-use enrollment token. The defining property is not "OAuth" — it is that a successful use makes the value on record wrong.
|
|
@@ -366,9 +368,9 @@ Values never enter that process, so its output cannot leak one even if logged.
|
|
|
366
368
|
|
|
367
369
|
## Provider dispatch
|
|
368
370
|
|
|
369
|
-
| Provider | Read | Write (rotation
|
|
371
|
+
| Provider | Read | Write (rotation, and the session manager's `store-token`) |
|
|
370
372
|
| --- | --- | --- |
|
|
371
|
-
| `bitwarden` | `bws secret list --output json` → index by `key` | `bws secret edit`; temporary `create`/`delete` for AWS publication coordination |
|
|
373
|
+
| `bitwarden` | `bws secret list --output json` → index by `key` | `bws secret edit`; `bws secret create <KEY> <VALUE> <PROJECT_ID> --output none` for `store-token` (`createSecret`); temporary `create`/`delete` for AWS publication coordination |
|
|
372
374
|
| `doppler` | `doppler secrets download --no-file --format json` | not implemented |
|
|
373
375
|
| `env` | environment only; the provider is the environment | n/a |
|
|
374
376
|
| `1password` | `op read "op://<vault>/<name>/credential"` | not implemented |
|
|
@@ -701,6 +701,72 @@ export function rawByKey(cfg, key) {
|
|
|
701
701
|
return matches[0] ?? null;
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
+
/** A provider error that names a rate limit (HTTP 429). */
|
|
705
|
+
const RATE_LIMITED = /\b429\b|too many requests|rate.?limit/i;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Run a provider CLI whose argv carries a secret value, and never let that
|
|
709
|
+
* argv reach an error message.
|
|
710
|
+
*
|
|
711
|
+
* `execFileSync` puts the whole command line in its error (`Command failed:
|
|
712
|
+
* bws secret create KEY <value> ...`), so a failed write would print the very
|
|
713
|
+
* value it was writing. The rethrown error keeps only what a caller needs to
|
|
714
|
+
* act on: the operation, the exit status and whether the provider
|
|
715
|
+
* rate-limited the call. Every other error (a missing binary's
|
|
716
|
+
* `spawnSync bws ENOENT`, a deadline {@link run} already reworded) is
|
|
717
|
+
* rebuilt too, keeping only its message (with the value redacted) and its
|
|
718
|
+
* `code`/`errno`/`syscall`/`status`/`signal`: Node's spawn errors also carry
|
|
719
|
+
* `spawnargs`, the full argv, value included, which a caller that logs or
|
|
720
|
+
* serializes the error would publish.
|
|
721
|
+
* @param {string} bin Executable name.
|
|
722
|
+
* @param {string[]} args Arguments, one of them a secret value.
|
|
723
|
+
* @param {NodeJS.ProcessEnv} env Environment for the child.
|
|
724
|
+
* @param {string} operation What the call was doing, in operator words.
|
|
725
|
+
* @param {string} value The secret value in `args`, redacted from any error.
|
|
726
|
+
* @returns {string} Captured stdout.
|
|
727
|
+
*/
|
|
728
|
+
function runWithValue(bin, args, env, operation, value) {
|
|
729
|
+
try {
|
|
730
|
+
return run(bin, args, env, operation);
|
|
731
|
+
} catch (error) {
|
|
732
|
+
// Node's "Command failed: <command line>" error carries argv in its text.
|
|
733
|
+
if (!String(error?.message ?? "").startsWith("Command failed")) {
|
|
734
|
+
throw withoutArgv(error, value);
|
|
735
|
+
}
|
|
736
|
+
const why = RATE_LIMITED.test(String(error.stderr ?? ""))
|
|
737
|
+
? "the provider rate-limited the request (429 Too Many Requests)"
|
|
738
|
+
: "the provider refused the request or could not be reached";
|
|
739
|
+
throw new Error(
|
|
740
|
+
`${operation} failed (exit ${error.status ?? error.signal}): ${why}. ` +
|
|
741
|
+
`The command's own output is withheld because its arguments carry ` +
|
|
742
|
+
`the secret value.`
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/** The fields of a spawn error that carry no argv, output or value. */
|
|
748
|
+
const SAFE_ERROR_FIELDS = ["code", "errno", "syscall", "status", "signal"];
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* A copy of a child-process error with no argv on it: a fresh Error whose
|
|
752
|
+
* message has `value` redacted, and only {@link SAFE_ERROR_FIELDS}. Drops
|
|
753
|
+
* `spawnargs`, `cmd`, `path`, `stdout`, `stderr` and `output`.
|
|
754
|
+
* @param {unknown} error What the call threw.
|
|
755
|
+
* @param {string} value The secret value to redact.
|
|
756
|
+
* @returns {Error} The rebuilt error.
|
|
757
|
+
*/
|
|
758
|
+
function withoutArgv(error, value) {
|
|
759
|
+
const text = String(error?.message ?? error);
|
|
760
|
+
const message = value ? text.split(String(value)).join("<redacted>") : text;
|
|
761
|
+
const safe = Object.fromEntries(
|
|
762
|
+
SAFE_ERROR_FIELDS.filter(key => error?.[key] !== undefined).map(key => [
|
|
763
|
+
key,
|
|
764
|
+
error[key],
|
|
765
|
+
])
|
|
766
|
+
);
|
|
767
|
+
return Object.assign(new Error(message), safe);
|
|
768
|
+
}
|
|
769
|
+
|
|
704
770
|
/**
|
|
705
771
|
* Write a replacement value back to the provider.
|
|
706
772
|
*
|
|
@@ -709,7 +775,8 @@ export function rawByKey(cfg, key) {
|
|
|
709
775
|
* Bitwarden CLI exposes no stdin path for an edit, so this is a documented
|
|
710
776
|
* exception rather than an oversight: it is confined to the one operation that
|
|
711
777
|
* cannot be expressed otherwise, and `execFileSync` at least keeps the value
|
|
712
|
-
* out of a shell and therefore out of shell history.
|
|
778
|
+
* out of a shell and therefore out of shell history. A failure is reported
|
|
779
|
+
* through {@link runWithValue}, so the value never reaches the error either.
|
|
713
780
|
* @param {object} cfg Resolved configuration.
|
|
714
781
|
* @param {string} id Provider-side identifier for the secret.
|
|
715
782
|
* @param {string} value Replacement value.
|
|
@@ -718,11 +785,12 @@ export function writeSecret(cfg, id, value) {
|
|
|
718
785
|
const env = providerEnv(cfg);
|
|
719
786
|
|
|
720
787
|
if (cfg.provider === "bitwarden") {
|
|
721
|
-
|
|
788
|
+
runWithValue(
|
|
722
789
|
"bws",
|
|
723
790
|
["secret", "edit", id, "--value", value],
|
|
724
791
|
env,
|
|
725
|
-
"updating a secret in Bitwarden"
|
|
792
|
+
"updating a secret in Bitwarden",
|
|
793
|
+
value
|
|
726
794
|
);
|
|
727
795
|
return;
|
|
728
796
|
}
|
|
@@ -732,6 +800,56 @@ export function writeSecret(cfg, id, value) {
|
|
|
732
800
|
);
|
|
733
801
|
}
|
|
734
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Create one new secret in the provider.
|
|
805
|
+
*
|
|
806
|
+
* The one caller is the session manager's `store-token` (#4555), which moves
|
|
807
|
+
* the Telegram bot token out of a plaintext file and into the vault, then
|
|
808
|
+
* reads it back to prove the write before deleting the file. It never
|
|
809
|
+
* replaces an existing record: that is {@link writeSecret}'s job.
|
|
810
|
+
*
|
|
811
|
+
* The value is a positional argument, the same documented exception as
|
|
812
|
+
* {@link writeSecret}: `bws secret create` (2.1.0) takes `<KEY> <VALUE>
|
|
813
|
+
* <PROJECT_ID>` and its help lists no stdin or file option for the value, so
|
|
814
|
+
* there is no way to keep it out of argv. `execFileSync` keeps it out of a
|
|
815
|
+
* shell, `--output none` keeps the created record (value included) off
|
|
816
|
+
* stdout, and {@link runWithValue} keeps it out of any error.
|
|
817
|
+
*
|
|
818
|
+
* Bitwarden only. Other providers fail with a message naming where to add
|
|
819
|
+
* one; until then the operator creates the secret in the vault themselves.
|
|
820
|
+
* @param {object} cfg Resolved configuration.
|
|
821
|
+
* @param {{name: string, value: string, projectId: string, note?: string}}
|
|
822
|
+
* secret Exact key, value, target provider project and usage note.
|
|
823
|
+
*/
|
|
824
|
+
export function createSecret(cfg, { name, value, projectId, note }) {
|
|
825
|
+
if (!ENV_KEY.test(name)) {
|
|
826
|
+
throw new Error(`secret name is not an environment variable name: ${name}`);
|
|
827
|
+
}
|
|
828
|
+
if (cfg.provider === "bitwarden") {
|
|
829
|
+
runWithValue(
|
|
830
|
+
"bws",
|
|
831
|
+
[
|
|
832
|
+
"secret",
|
|
833
|
+
"create",
|
|
834
|
+
name,
|
|
835
|
+
value,
|
|
836
|
+
projectId,
|
|
837
|
+
...(note ? ["--note", note] : []),
|
|
838
|
+
"--output",
|
|
839
|
+
"none",
|
|
840
|
+
],
|
|
841
|
+
providerEnv(cfg),
|
|
842
|
+
"creating a secret in Bitwarden",
|
|
843
|
+
value
|
|
844
|
+
);
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
throw new Error(
|
|
848
|
+
`provider "${cfg.provider}" has no create implemented.\n` +
|
|
849
|
+
`Create the secret in the provider yourself, or add one in providers.mjs.`
|
|
850
|
+
);
|
|
851
|
+
}
|
|
852
|
+
|
|
735
853
|
/**
|
|
736
854
|
* Create one provider-issued publication contender in the target project.
|
|
737
855
|
*
|
|
@@ -664,12 +664,19 @@ const STALL_RULES = {
|
|
|
664
664
|
requestionHours: [n => n >= 0, "zero or a positive number"],
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
+
/** Notification providers `sessionManager.notify.provider` accepts. */
|
|
668
|
+
const NOTIFY_PROVIDERS = ["none", "telegram"];
|
|
669
|
+
|
|
667
670
|
/**
|
|
668
671
|
* Validate `sessionManager.notify`.
|
|
669
672
|
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
+
* A notification channel is optional (#4555): an absent block, an absent
|
|
674
|
+
* provider and `"none"` all mean the manager runs with no channel, and then
|
|
675
|
+
* there is no state dir to name. A `stateDir` without the telegram provider is
|
|
676
|
+
* refused rather than ignored, because it means the operator believes a bot is
|
|
677
|
+
* attached when none will be. For telegram, `stateDir` is required rather than
|
|
678
|
+
* defaulted here: the default dir is shared by every project, and a shared dir
|
|
679
|
+
* is exactly how one project's bot gets taken over by another's session.
|
|
673
680
|
* @param {unknown} notify The declared value.
|
|
674
681
|
* @returns {string[]} Problems found.
|
|
675
682
|
*/
|
|
@@ -677,56 +684,104 @@ function validateNotify(notify) {
|
|
|
677
684
|
if (notify !== undefined && !isPlainObject(notify)) {
|
|
678
685
|
return ["sessionManager.notify must be an object"];
|
|
679
686
|
}
|
|
680
|
-
const provider = notify?.provider;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
`"
|
|
695
|
-
|
|
696
|
-
|
|
687
|
+
const provider = notify?.provider ?? "none";
|
|
688
|
+
if (!NOTIFY_PROVIDERS.includes(provider)) {
|
|
689
|
+
return [
|
|
690
|
+
`sessionManager.notify.provider ${JSON.stringify(provider)} is not ` +
|
|
691
|
+
`supported. Use "none" (no notification channel) or "telegram".`,
|
|
692
|
+
];
|
|
693
|
+
}
|
|
694
|
+
const hasStateDir = notify?.stateDir !== undefined;
|
|
695
|
+
const stateDirOk =
|
|
696
|
+
typeof notify?.stateDir === "string" && notify.stateDir.trim() !== "";
|
|
697
|
+
if (provider === "none") {
|
|
698
|
+
return hasStateDir
|
|
699
|
+
? [
|
|
700
|
+
`sessionManager.notify.stateDir is set, but notify.provider is not ` +
|
|
701
|
+
`"telegram", so no bot would use it. Set notify.provider to ` +
|
|
702
|
+
`"telegram", or remove notify.stateDir.`,
|
|
703
|
+
]
|
|
704
|
+
: [];
|
|
705
|
+
}
|
|
706
|
+
return stateDirOk
|
|
707
|
+
? []
|
|
708
|
+
: [
|
|
709
|
+
`sessionManager.notify.stateDir is missing. Each project needs its ` +
|
|
710
|
+
`own Telegram state dir, such as ` +
|
|
711
|
+
`"~/.claude/channels/telegram-<project>".`,
|
|
712
|
+
];
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Maps under `sessionManager` whose KEYS are names chosen by the project, not
|
|
717
|
+
* config field names. `repos.entries` is keyed by child repository directory,
|
|
718
|
+
* so a repo called `token-service` or `secrets-manager` is a name, not a
|
|
719
|
+
* credential field; testing it against CREDENTIAL_KEY made `init-config
|
|
720
|
+
* --write` emit a block that `validate` then refused (CodySwannGT/lisa#4564).
|
|
721
|
+
* Their VALUES are still walked, so a token placed inside an entry is caught.
|
|
722
|
+
*/
|
|
723
|
+
const NAME_KEYED_MAPS = [["repos", "entries"]];
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Whether a key trail below `sessionManager` is exactly a name-keyed map.
|
|
727
|
+
* Compared segment by segment, never as a dotted string: a literal key
|
|
728
|
+
* `"repos.entries"` would otherwise borrow the exemption.
|
|
729
|
+
* @param {readonly string[]} segments Object keys from the block root.
|
|
730
|
+
* @returns {boolean} True for a map whose keys are names.
|
|
731
|
+
*/
|
|
732
|
+
function isNameKeyedMap(segments) {
|
|
733
|
+
return NAME_KEYED_MAPS.some(
|
|
734
|
+
map =>
|
|
735
|
+
map.length === segments.length &&
|
|
736
|
+
map.every((segment, i) => segment === segments[i])
|
|
737
|
+
);
|
|
697
738
|
}
|
|
698
739
|
|
|
699
740
|
/**
|
|
700
741
|
* Walk the block for anything that looks like a credential.
|
|
701
742
|
*
|
|
702
743
|
* Config is committed, and this block configures a bot that grants shell
|
|
703
|
-
* access over chat. The token belongs in the
|
|
704
|
-
*
|
|
744
|
+
* access over chat. The token belongs in the project's secrets provider
|
|
745
|
+
* (#4555; the state dir's 0600 dotenv file only when no provider is
|
|
746
|
+
* configured), so a token here is both leaked and unused. The value is never
|
|
747
|
+
* echoed.
|
|
705
748
|
* @param {unknown} value Subtree.
|
|
706
|
-
* @param {string} path Dotted path so far.
|
|
749
|
+
* @param {string} path Dotted path so far, for messages.
|
|
750
|
+
* @param {readonly string[] | null} [segments] Object keys from the block root;
|
|
751
|
+
* `null` once an array is crossed, since no name-keyed map lives there.
|
|
707
752
|
* @returns {string[]} Problems found.
|
|
708
753
|
*/
|
|
709
|
-
function findCredentials(value, path) {
|
|
754
|
+
function findCredentials(value, path, segments = []) {
|
|
710
755
|
if (typeof value === "string") {
|
|
711
756
|
return TOKEN_VALUE.test(value.trim())
|
|
712
757
|
? [
|
|
713
|
-
`${path} looks like a bot token. Tokens never go in config
|
|
714
|
-
|
|
758
|
+
`${path} looks like a bot token. Tokens never go in config: ` +
|
|
759
|
+
`remove it, and store the token in the project's secrets ` +
|
|
760
|
+
`provider with session-manager.mjs store-token ` +
|
|
761
|
+
`(/lisa:setup:session-manager runs it).`,
|
|
715
762
|
]
|
|
716
763
|
: [];
|
|
717
764
|
}
|
|
718
765
|
if (Array.isArray(value)) {
|
|
719
|
-
return value.flatMap((item, i) =>
|
|
766
|
+
return value.flatMap((item, i) =>
|
|
767
|
+
findCredentials(item, `${path}[${i}]`, null)
|
|
768
|
+
);
|
|
720
769
|
}
|
|
721
770
|
if (!isPlainObject(value)) return [];
|
|
771
|
+
const keysAreNames = segments !== null && isNameKeyedMap(segments);
|
|
722
772
|
return Object.entries(value).flatMap(([key, child]) =>
|
|
723
|
-
CREDENTIAL_KEY.test(key)
|
|
773
|
+
!keysAreNames && CREDENTIAL_KEY.test(key)
|
|
724
774
|
? [
|
|
725
775
|
`${path}.${key} names a credential. Tokens and secrets never go in ` +
|
|
726
|
-
`config
|
|
727
|
-
`
|
|
776
|
+
`config: remove it, and keep the bot token in the project's ` +
|
|
777
|
+
`secrets provider (session-manager.mjs store-token, run by ` +
|
|
778
|
+
`/lisa:setup:session-manager).`,
|
|
728
779
|
]
|
|
729
|
-
: findCredentials(
|
|
780
|
+
: findCredentials(
|
|
781
|
+
child,
|
|
782
|
+
`${path}.${key}`,
|
|
783
|
+
segments === null ? null : [...segments, key]
|
|
784
|
+
)
|
|
730
785
|
);
|
|
731
786
|
}
|
|
732
787
|
|