@codyswann/lisa 8.10.2 → 8.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +10 -6
- package/dist/opencode/plugin-templates/task-readiness-guard.mjs +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +8 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-action.mjs +28 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-unbound.mjs +12 -3
- package/plugins/lisa/hooks/task-readiness-guard.mjs +1 -1
- package/plugins/lisa/rules/reference/tool-access-gate.md +7 -2
- package/plugins/lisa/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +8 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-action.mjs +28 -6
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-unbound.mjs +12 -3
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +8 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-action.mjs +28 -6
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-unbound.mjs +12 -3
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/task-readiness-guard.mjs +1 -1
- package/plugins/lisa-copilot/rules/reference/tool-access-gate.md +7 -2
- package/plugins/lisa-copilot/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +8 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-action.mjs +28 -6
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-unbound.mjs +12 -3
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/task-readiness-guard.mjs +1 -1
- package/plugins/lisa-cursor/rules/tool-access-gate-reference.mdc +7 -2
- package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +2 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +8 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-action.mjs +28 -6
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-unbound.mjs +12 -3
- 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/task-readiness-guard.mjs +1 -1
- package/plugins/lisa-devin/rules/reference/tool-access-gate.md +7 -2
- package/plugins/lisa-devin/rules/reference/tracked-work.md +2 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +8 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-action.mjs +28 -6
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-unbound.mjs +12 -3
- 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/src/base/hooks/task-readiness-guard.mjs +1 -1
- package/plugins/src/base/rules/reference/tool-access-gate.md +7 -2
- package/plugins/src/base/rules/reference/tracked-work.md +2 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +8 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs +28 -6
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-unbound.mjs +12 -3
|
@@ -27,9 +27,9 @@ export const NIGHTLY_E2E_GUARD_BEHAVIOR_CERTIFICATES = Object.freeze({
|
|
|
27
27
|
}),
|
|
28
28
|
"4679c1e7cc92f960bad81854b9ce68a14aa0e404f2264cca0c2d6186008a17eb": Object.freeze({
|
|
29
29
|
contractVersion: "1.9.0",
|
|
30
|
-
packageVersions: Object.freeze(["8.10.
|
|
30
|
+
packageVersions: Object.freeze(["8.10.3"]),
|
|
31
31
|
provenances: Object.freeze([
|
|
32
|
-
"workspace package @codyswann/lisa@8.10.
|
|
32
|
+
"workspace package @codyswann/lisa@8.10.3 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
|
|
33
33
|
]),
|
|
34
34
|
}),
|
|
35
35
|
"898ee0247806c7aa6e98328662d80bcff22ff067999298865462a58daef8bb22": Object.freeze({
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
"plugins/src/base/hooks/setup-jira-cli.sh": "384bc8d935a2ed5788d7185979b3e74c75c17cd4bc5c230d7d8f086ab2703443",
|
|
600
600
|
"plugins/src/base/hooks/shell-write-nudge.sh": "69839af423f8792b1e52c71097316c3264425553031627c0a2f9409a9d5becd0",
|
|
601
601
|
"plugins/src/base/hooks/sonar-secrets.sh": "554fb65766d617c8b57411b0d53906b7358c219dd2031708370ffc91e97f7381",
|
|
602
|
-
"plugins/src/base/hooks/task-readiness-guard.mjs": "
|
|
602
|
+
"plugins/src/base/hooks/task-readiness-guard.mjs": "3ea609b4617532b63807d322a0caae13556ea1f65c3781d6000a32ba188912d9",
|
|
603
603
|
"plugins/src/base/hooks/task-readiness-guard.sh": "46254d444580947df927293a7b65d49f865022089bb0ff33403dca5189cbd056",
|
|
604
604
|
"plugins/src/base/hooks/threshold-ratchet-compare.mjs": "335426213e2a0daa37389da12932fbf87b4cab6e2ee2c2318ef624548e370dac",
|
|
605
605
|
"plugins/src/base/hooks/threshold-ratchet-families.mjs": "e0aae600cc3187e832b5a959f60869c87a95b32ab8ee2ccbf9f959e41deacd3b",
|
|
@@ -681,8 +681,8 @@
|
|
|
681
681
|
"plugins/src/base/rules/reference/session-status-updates.md": "dc4d782da9428c90fbb419787c937f4a08bdee894eff3acfe3fffa942e2438d0",
|
|
682
682
|
"plugins/src/base/rules/reference/settled-decisions.md": "53064fc04010e330cce04459bb2e26e39b4868117376319fe303caafffe0f910",
|
|
683
683
|
"plugins/src/base/rules/reference/stale-state-claims.md": "ea788d884c297ef8c8b573625172cdb123bb80690907cea0efa789b8dd60e466",
|
|
684
|
-
"plugins/src/base/rules/reference/tool-access-gate.md": "
|
|
685
|
-
"plugins/src/base/rules/reference/tracked-work.md": "
|
|
684
|
+
"plugins/src/base/rules/reference/tool-access-gate.md": "de4d30265540f843d7766cf0d6a05aadb2fb557d535ba0b235b8d44249bfc387",
|
|
685
|
+
"plugins/src/base/rules/reference/tracked-work.md": "827ca631b863961f9f3fe7e590ec5f30422202620a254b46cae25018e17a0ab8",
|
|
686
686
|
"plugins/src/base/rules/reference/upstream-to-lisa.md": "6b82577bf182fa1ed05e8dc3e1f68d9f76eb1eb7497de75031595db488c396de",
|
|
687
687
|
"plugins/src/base/rules/reference/usage-accounting.md": "53dec94f4cba696d4b4f6e990565173c6aa0c9972432b8b127517fc3617ca7cc",
|
|
688
688
|
"plugins/src/base/rules/reference/verification.md": "cb8d03601dcc4ed4fb8e2bfd0aa9d7879dfa00be3401d6a33864a8c34cde38ef",
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
"plugins/src/base/skills/lisa-secrets-access/scripts/materialize-secrets.mjs": "91b443b7c54272f7b94fe3a592eeddd9f45b00901301bf769297a87b01cf18f1",
|
|
892
892
|
"plugins/src/base/skills/lisa-secrets-access/scripts/note-format.mjs": "09bd6904bc84a5a93a32499ac94db5ec7728db68908a661698445ef5e6974f3e",
|
|
893
893
|
"plugins/src/base/skills/lisa-secrets-access/scripts/owner.mjs": "576b146e3f60306967b15e382105fe8a27644965b9fbb2870f701b042952461a",
|
|
894
|
-
"plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs": "
|
|
894
|
+
"plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs": "59100d0ad6977abba87cf2d2e643d2808a06cdb910cd075558957330a571a59e",
|
|
895
895
|
"plugins/src/base/skills/lisa-secrets-access/scripts/prompt-secret.mjs": "22b28bcdf49b9b0fcd1b15639e031655efacc028b74d48d57e2275f3e1557508",
|
|
896
896
|
"plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs": "cff2018a0298b833e51efe8626b51b20409e84f4fb3c6cbe4b4e13da33121a95",
|
|
897
897
|
"plugins/src/base/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs": "2ab1e70fe8b8f6ccf7b5e589ea80031be755ddce8c30009ead71790542c68e2b",
|
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
"plugins/src/base/skills/lisa-secrets-access/scripts/surfaces.mjs": "d9259269fd2d0a8387bef8a13c9d167bd1f9d20dd58e6b51ce02119dfe1d4c87",
|
|
904
904
|
"plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs": "8c5b8e5aa775420d0778436666c9b03b67fae443809d9b5fd57ebf0f04d9a4e2",
|
|
905
905
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-access.mjs": "ee88c5f1d39e11c2d7233df255bdbb2246be808baa7825173111edaa8517a490",
|
|
906
|
-
"plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs": "
|
|
906
|
+
"plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs": "8281a33d0fdef8399065ac439cb0f3085f6730e114e0faaaddea33e51acf8548",
|
|
907
907
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs": "b9231c667bb62d3d30edf1a45d632696fc3c1d81ae8b32652e5e37a9635cb2f4",
|
|
908
908
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-context-data.mjs": "14a1a873e92e45cc4e1f50ca6bf93484ad78315249e39c62772c6e4d2d305eed",
|
|
909
909
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs": "db365b7f05eef81eb4505e883eb124e4bbb2a24db7dc8c7848b12215d57d628d",
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-readiness.mjs": "dc29611bc57a0cabefe1e7631659bc6d85b487eed19b7483bfb7fc443b175273",
|
|
919
919
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-requirements.mjs": "e184ed7fb4eacb448553cca5a1c440707449066ef9edddb81f6eeba8b79e879d",
|
|
920
920
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": "775b202a5611f3f6aeaec15eb7abb1659604fa687d62f41e40e7701dfa137895",
|
|
921
|
-
"plugins/src/base/skills/lisa-secrets-access/scripts/task-unbound.mjs": "
|
|
921
|
+
"plugins/src/base/skills/lisa-secrets-access/scripts/task-unbound.mjs": "da933678f8d0c225bd6c46b65351c398446fc22175ce5d5d0b883f626c53ffb2",
|
|
922
922
|
"plugins/src/base/skills/lisa-secrets-access/scripts/tools-from-notes.mjs": "6ab78776157345992224c5f74f1e6b82867d003961499faf2e51f1473c78dbb8",
|
|
923
923
|
"plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs": "dac2bad3b92355c71fa9ecb5c484b17ad042e7e33dcdbcadf381d4fc13ab15f9",
|
|
924
924
|
"plugins/src/base/skills/lisa-security-audit-handling/SKILL.md": "cc0fd59927cc13fc3cfa59eb07852b8c8373c9021b42e016229e632b8fbcc916",
|
|
@@ -13285,6 +13285,7 @@
|
|
|
13285
13285
|
"tests/unit/secrets/task-readiness-postlaunch.test.ts": true,
|
|
13286
13286
|
"tests/unit/secrets/task-readiness-qualification.test.ts": true,
|
|
13287
13287
|
"tests/unit/secrets/task-readiness-scope.test.ts": true,
|
|
13288
|
+
"tests/unit/secrets/task-readiness-unbound-prepare.test.ts": true,
|
|
13288
13289
|
"tests/unit/secrets/task-readiness-unbound.test.ts": true,
|
|
13289
13290
|
"tests/unit/secrets/task-readiness.test.ts": true,
|
|
13290
13291
|
"tests/unit/secrets/task-requirements.test.ts": true,
|
|
@@ -23184,6 +23185,7 @@
|
|
|
23184
23185
|
"88467afd996f3018768a220e58ef501eba90ca3c": true,
|
|
23185
23186
|
"884d00f083e87434674530c3532beb9bec194840": true,
|
|
23186
23187
|
"884e330724908f53a553d95148438e08fae54bfc": true,
|
|
23188
|
+
"884edc2384d4ad5b4cc16799839234e41819fd9c": true,
|
|
23187
23189
|
"884f1b9b44f79f9b71b3be18a7214df8055cd527": true,
|
|
23188
23190
|
"884fb37539e5f50ee24f8d73411e63cc94c38582": true,
|
|
23189
23191
|
"8852a177827bd575a468768060ac8c750fd5db3f": true,
|
|
@@ -23555,6 +23557,7 @@
|
|
|
23555
23557
|
"8ddf05f06fdbd0e0d24ba7ed800789bd02222fc2": true,
|
|
23556
23558
|
"8de03319af7110136349e6b142185a9ce942a465": true,
|
|
23557
23559
|
"8de0ca04d22fed9c6412ee7d1fff460b14a37c51": true,
|
|
23560
|
+
"8de2fd67c5f769f11971d61ccfe8af3c367f7dfb": true,
|
|
23558
23561
|
"8de82040617d16f4e7bab68a21aa1f16375c75f2": true,
|
|
23559
23562
|
"8de98e478f3241350b6d7833e138fb2bf46db32c": true,
|
|
23560
23563
|
"8dea21ffe56f58db88dd7bf0e573bb20efe2ea1b": true,
|
|
@@ -29301,6 +29304,7 @@
|
|
|
29301
29304
|
"e28caa8bf13dc355d7572b5e770c831d30940193": true,
|
|
29302
29305
|
"e29095b0b3987210ff6880cbea886d462788dcc0": true,
|
|
29303
29306
|
"e292cbcd025727495ad0ef1c454f9728b4735e26": true,
|
|
29307
|
+
"e29598654e47a9e641a7eeed547e0702c4af8bbe": true,
|
|
29304
29308
|
"e296960a059218f1d22a331dc20de654b7ba9bcd": true,
|
|
29305
29309
|
"e29c93db0fb5eed022c0018f52e9f033706c0976": true,
|
|
29306
29310
|
"e2a4656551a23242d6a8d972fff0e821504db3b0": true,
|
|
@@ -79,7 +79,7 @@ try {
|
|
|
79
79
|
} else if (result.status !== 0) {
|
|
80
80
|
// Only the fixed owner result is published. Environment errors never echo.
|
|
81
81
|
const safe =
|
|
82
|
-
/^(?:credential-missing|provider-unreachable|capability-unreachable|bootstrap-missing|tool-missing|config-invalid|config-unreadable|config-undiscovered|config-unknown|identity-mismatch|adapter-unsupported|requirements-stale|requirements-prepared|native-proof-needed|native-response-unrepresented): [^\n]*\n?$/.test(
|
|
82
|
+
/^(?:credential-missing|provider-unreachable|capability-unreachable|bootstrap-missing|tool-missing|config-invalid|config-unreadable|config-undiscovered|config-unknown|identity-mismatch|adapter-unsupported|requirements-stale|work-item-unbound|requirements-prepared|native-proof-needed|native-response-unrepresented): [^\n]*\n?$/.test(
|
|
83
83
|
result.stderr ?? ""
|
|
84
84
|
);
|
|
85
85
|
console.error(
|
package/package.json
CHANGED
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"zod": "^4.6.7"
|
|
201
201
|
},
|
|
202
202
|
"name": "@codyswann/lisa",
|
|
203
|
-
"version": "8.10.
|
|
203
|
+
"version": "8.10.3",
|
|
204
204
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
205
205
|
"main": "dist/index.js",
|
|
206
206
|
"exports": {
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
"optional": true
|
|
372
372
|
}
|
|
373
373
|
},
|
|
374
|
-
"lisaReleaseCommit": "
|
|
375
|
-
"gitHead": "
|
|
376
|
-
"lisaReleaseTag": "v8.10.
|
|
374
|
+
"lisaReleaseCommit": "be0cda9fafacc01e2c33ff10dc7f0d60ad469fd3",
|
|
375
|
+
"gitHead": "be0cda9fafacc01e2c33ff10dc7f0d60ad469fd3",
|
|
376
|
+
"lisaReleaseTag": "v8.10.3"
|
|
377
377
|
}
|
|
@@ -42,6 +42,7 @@ import { failure } from "./task-readiness.mjs";
|
|
|
42
42
|
import { runTaskAction } from "./task-action.mjs";
|
|
43
43
|
import { AccessFailure } from "./config-layers.mjs";
|
|
44
44
|
import { prepareRequirements } from "./task-requirements.mjs";
|
|
45
|
+
import { outsideEveryRepository } from "./task-unbound.mjs";
|
|
45
46
|
import { runIntakeRead } from "./task-intake-read.mjs";
|
|
46
47
|
import { runTrackerIntakeRead } from "./task-tracker-intake.mjs";
|
|
47
48
|
export { taskReadiness, credentialAvailability } from "./task-readiness.mjs";
|
|
@@ -367,7 +368,13 @@ function main() {
|
|
|
367
368
|
if (process.argv.includes("--prepare")) {
|
|
368
369
|
const cfg = readTaskConfig();
|
|
369
370
|
const index = process.argv.indexOf("--ref");
|
|
370
|
-
const
|
|
371
|
+
const fileIndex = process.argv.indexOf("--input-file");
|
|
372
|
+
// An agent's shell tool has no stdin. It writes the JSON to a file outside
|
|
373
|
+
// every repository (admitted while unbound) and names it here instead.
|
|
374
|
+
const file = fileIndex >= 0 ? process.argv[fileIndex + 1] : undefined;
|
|
375
|
+
if (fileIndex >= 0 && !outsideEveryRepository(file, cfg.projectRoot))
|
|
376
|
+
throw new AccessFailure("requirements-stale");
|
|
377
|
+
const input = JSON.parse(readFileSync(fileIndex >= 0 ? file : 0, "utf8"));
|
|
371
378
|
console.log(
|
|
372
379
|
JSON.stringify(
|
|
373
380
|
prepareRequirements(
|
|
@@ -9,7 +9,11 @@ import { readTaskRequirements } from "./task-requirements.mjs";
|
|
|
9
9
|
import { lifecycleEvents, resetNativeEvent } from "./task-native-lifecycle.mjs";
|
|
10
10
|
import { intakeRead } from "./task-intake.mjs";
|
|
11
11
|
import { nativeContext } from "./task-native-context.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
outsideEveryRepository,
|
|
14
|
+
unboundRefusal,
|
|
15
|
+
unboundWrite,
|
|
16
|
+
} from "./task-unbound.mjs";
|
|
13
17
|
import {
|
|
14
18
|
linearIntakeRead,
|
|
15
19
|
observeLinearIntake,
|
|
@@ -26,17 +30,35 @@ const owner = join(
|
|
|
26
30
|
const refs = /^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/;
|
|
27
31
|
const quote = path => `'${path.replaceAll("'", "'\\''")}'`;
|
|
28
32
|
|
|
29
|
-
/**
|
|
30
|
-
|
|
33
|
+
/** A file path that a shell reads as exactly one plain word. */
|
|
34
|
+
const plainPath = /^\/[A-Za-z0-9_./@+-]+$/;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Exact canonical recovery command. JSON uses structured child/terminal
|
|
38
|
+
* stdin, or a file outside every repository that an agent's shell tool can
|
|
39
|
+
* name, since it has no stdin to supply.
|
|
40
|
+
* @param {unknown} command Shell command text.
|
|
41
|
+
* @param {string} [root] Project root, for the input file's location check.
|
|
42
|
+
* @returns {boolean} True for an exact recovery command.
|
|
43
|
+
*/
|
|
44
|
+
export function readinessOwnerInvocation(command, root = process.cwd()) {
|
|
31
45
|
if (typeof command !== "string") return false;
|
|
32
46
|
for (const runtime of ["node", process.execPath, quote(process.execPath)])
|
|
33
47
|
for (const script of [owner, quote(owner)]) {
|
|
34
48
|
if (command === `${runtime} ${script} --task`) return true;
|
|
35
49
|
for (const mode of ["task", "prepare"]) {
|
|
36
50
|
const prefix = `${runtime} ${script} --${mode} --ref `;
|
|
51
|
+
if (!command.startsWith(prefix)) continue;
|
|
52
|
+
const rest = command.slice(prefix.length);
|
|
53
|
+
if (refs.test(rest)) return true;
|
|
54
|
+
const [ref, flag, file, ...extra] = rest.split(" ");
|
|
37
55
|
if (
|
|
38
|
-
|
|
39
|
-
refs.test(
|
|
56
|
+
mode === "prepare" &&
|
|
57
|
+
refs.test(ref) &&
|
|
58
|
+
flag === "--input-file" &&
|
|
59
|
+
extra.length === 0 &&
|
|
60
|
+
plainPath.test(file ?? "") &&
|
|
61
|
+
outsideEveryRepository(file, root)
|
|
40
62
|
)
|
|
41
63
|
return true;
|
|
42
64
|
}
|
|
@@ -52,7 +74,7 @@ function orientation(input) {
|
|
|
52
74
|
return true;
|
|
53
75
|
if (input?.tool_name !== "Bash") return false;
|
|
54
76
|
return (
|
|
55
|
-
readinessOwnerInvocation(input.tool_input?.command) ||
|
|
77
|
+
readinessOwnerInvocation(input.tool_input?.command, input.cwd) ||
|
|
56
78
|
[
|
|
57
79
|
"pwd",
|
|
58
80
|
"ls -la",
|
|
@@ -150,6 +150,16 @@ export function unboundWrite(input, cfg) {
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* This installation's prepare/read owner script as one shell word.
|
|
155
|
+
* @returns {string} The path, quoted only when it needs to be.
|
|
156
|
+
*/
|
|
157
|
+
function ownerWord() {
|
|
158
|
+
return /^[\w./@+-]+$/.test(owner)
|
|
159
|
+
? owner
|
|
160
|
+
: `'${owner.replaceAll("'", "'\\''")}'`;
|
|
161
|
+
}
|
|
162
|
+
|
|
153
163
|
/**
|
|
154
164
|
* The exact read command this installation admits with no work item bound.
|
|
155
165
|
* @param {Record<string, any>} cfg Task configuration.
|
|
@@ -157,9 +167,7 @@ export function unboundWrite(input, cfg) {
|
|
|
157
167
|
*/
|
|
158
168
|
function readCommand(cfg) {
|
|
159
169
|
const c = cfg.effective ?? {};
|
|
160
|
-
const script =
|
|
161
|
-
? owner
|
|
162
|
-
: `'${owner.replaceAll("'", "'\\''")}'`;
|
|
170
|
+
const script = ownerWord();
|
|
163
171
|
if (c.tracker === "linear" && c.linear?.teamKey)
|
|
164
172
|
return `node ${script} --tracker-intake-read --ref ${c.linear.teamKey}-<number> --read issue`;
|
|
165
173
|
if (c.tracker === "jira" && c.jira?.project)
|
|
@@ -192,6 +200,7 @@ export function unboundRefusal(cfg) {
|
|
|
192
200
|
: "",
|
|
193
201
|
"A file written outside every git repository, such as a scratch or memory file, is allowed.",
|
|
194
202
|
"To change anything in this project, bind its ticket first with lisa-track.",
|
|
203
|
+
`Its prepare step needs no shell input: write the prepare JSON to a file outside every repository, then run exactly: node ${ownerWord()} --prepare --ref <ticket> --input-file <absolute path of that file>.`,
|
|
195
204
|
]
|
|
196
205
|
.filter(Boolean)
|
|
197
206
|
.join(" "),
|
|
@@ -76,7 +76,7 @@ try {
|
|
|
76
76
|
} else if (result.status !== 0) {
|
|
77
77
|
// Only the fixed owner result is published. Environment errors never echo.
|
|
78
78
|
const safe =
|
|
79
|
-
/^(?:credential-missing|provider-unreachable|capability-unreachable|bootstrap-missing|tool-missing|config-invalid|config-unreadable|config-undiscovered|config-unknown|identity-mismatch|adapter-unsupported|requirements-stale|requirements-prepared|native-proof-needed|native-response-unrepresented): [^\n]*\n?$/.test(
|
|
79
|
+
/^(?:credential-missing|provider-unreachable|capability-unreachable|bootstrap-missing|tool-missing|config-invalid|config-unreadable|config-undiscovered|config-unknown|identity-mismatch|adapter-unsupported|requirements-stale|work-item-unbound|requirements-prepared|native-proof-needed|native-response-unrepresented): [^\n]*\n?$/.test(
|
|
80
80
|
result.stderr ?? ""
|
|
81
81
|
);
|
|
82
82
|
console.error(
|
|
@@ -23,7 +23,11 @@ the resolver or read its inputs.
|
|
|
23
23
|
|
|
24
24
|
Supply a complete values-free `required_access` array and
|
|
25
25
|
`requirements_complete: true` as JSON on stdin to the owner's
|
|
26
|
-
`--prepare --ref <canonical-ref>` mode.
|
|
26
|
+
`--prepare --ref <canonical-ref>` mode. An agent's shell tool has no stdin:
|
|
27
|
+
write the same JSON to a file outside every git repository (such a write is
|
|
28
|
+
admitted with no ticket bound) and run exactly
|
|
29
|
+
`node <owner>/preflight-secrets.mjs --prepare --ref <canonical-ref> --input-file <absolute path>`.
|
|
30
|
+
The path is one plain word; nothing may follow it. For the first context, include the complete
|
|
27
31
|
unedited `context_body` on that same stdin; it creates
|
|
28
32
|
only the fixed ignored0600 context after Git-ignore and EAS checks. Existing
|
|
29
33
|
context cannot be replaced through `context_body`. This is the bounded initial
|
|
@@ -92,7 +96,8 @@ reflect requirement identifiers/resources/paths, parse errors or provider output
|
|
|
92
96
|
Do not block unrelated tasks or require optional integrations universally.
|
|
93
97
|
|
|
94
98
|
The exact readiness owner command (`node <owner>/preflight-secrets.mjs --task
|
|
95
|
-
--ref <canonical-ref>`, or `--prepare` with that ref and JSON on terminal stdin
|
|
99
|
+
--ref <canonical-ref>`, or `--prepare` with that ref and JSON on terminal stdin
|
|
100
|
+
or in an `--input-file` outside every repository)
|
|
96
101
|
remains available during refusal. It grants no work: task mode still reports its
|
|
97
102
|
real verdict, and preparation only refreshes the ignored requirements metadata.
|
|
98
103
|
Only the exact native context Write/Add File forms above carry private metadata.
|
|
@@ -14,6 +14,8 @@ In a project with `.lisa.config.json`, the task-readiness guard enforces this. W
|
|
|
14
14
|
|
|
15
15
|
Answering a question about a ticket needs none of this. Never bind a ticket just to read one.
|
|
16
16
|
|
|
17
|
+
To start work on an existing ticket from an unbound session, prepare it first, then bind it. Write the prepare JSON to a file outside every repository, then run the admitted `preflight-secrets.mjs --prepare --ref <ticket> --input-file <absolute path>` (see `tool-access-gate`). Once the ticket is prepared, the guard decides by that ticket's readiness, and `lisa-work-item.mjs link`, the claim and the work run normally.
|
|
18
|
+
|
|
17
19
|
## Resolve, claim, bind
|
|
18
20
|
|
|
19
21
|
Use `lisa-track` as the single entry point:
|
|
@@ -42,6 +42,7 @@ import { failure } from "./task-readiness.mjs";
|
|
|
42
42
|
import { runTaskAction } from "./task-action.mjs";
|
|
43
43
|
import { AccessFailure } from "./config-layers.mjs";
|
|
44
44
|
import { prepareRequirements } from "./task-requirements.mjs";
|
|
45
|
+
import { outsideEveryRepository } from "./task-unbound.mjs";
|
|
45
46
|
import { runIntakeRead } from "./task-intake-read.mjs";
|
|
46
47
|
import { runTrackerIntakeRead } from "./task-tracker-intake.mjs";
|
|
47
48
|
export { taskReadiness, credentialAvailability } from "./task-readiness.mjs";
|
|
@@ -367,7 +368,13 @@ function main() {
|
|
|
367
368
|
if (process.argv.includes("--prepare")) {
|
|
368
369
|
const cfg = readTaskConfig();
|
|
369
370
|
const index = process.argv.indexOf("--ref");
|
|
370
|
-
const
|
|
371
|
+
const fileIndex = process.argv.indexOf("--input-file");
|
|
372
|
+
// An agent's shell tool has no stdin. It writes the JSON to a file outside
|
|
373
|
+
// every repository (admitted while unbound) and names it here instead.
|
|
374
|
+
const file = fileIndex >= 0 ? process.argv[fileIndex + 1] : undefined;
|
|
375
|
+
if (fileIndex >= 0 && !outsideEveryRepository(file, cfg.projectRoot))
|
|
376
|
+
throw new AccessFailure("requirements-stale");
|
|
377
|
+
const input = JSON.parse(readFileSync(fileIndex >= 0 ? file : 0, "utf8"));
|
|
371
378
|
console.log(
|
|
372
379
|
JSON.stringify(
|
|
373
380
|
prepareRequirements(
|
|
@@ -9,7 +9,11 @@ import { readTaskRequirements } from "./task-requirements.mjs";
|
|
|
9
9
|
import { lifecycleEvents, resetNativeEvent } from "./task-native-lifecycle.mjs";
|
|
10
10
|
import { intakeRead } from "./task-intake.mjs";
|
|
11
11
|
import { nativeContext } from "./task-native-context.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
outsideEveryRepository,
|
|
14
|
+
unboundRefusal,
|
|
15
|
+
unboundWrite,
|
|
16
|
+
} from "./task-unbound.mjs";
|
|
13
17
|
import {
|
|
14
18
|
linearIntakeRead,
|
|
15
19
|
observeLinearIntake,
|
|
@@ -26,17 +30,35 @@ const owner = join(
|
|
|
26
30
|
const refs = /^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/;
|
|
27
31
|
const quote = path => `'${path.replaceAll("'", "'\\''")}'`;
|
|
28
32
|
|
|
29
|
-
/**
|
|
30
|
-
|
|
33
|
+
/** A file path that a shell reads as exactly one plain word. */
|
|
34
|
+
const plainPath = /^\/[A-Za-z0-9_./@+-]+$/;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Exact canonical recovery command. JSON uses structured child/terminal
|
|
38
|
+
* stdin, or a file outside every repository that an agent's shell tool can
|
|
39
|
+
* name, since it has no stdin to supply.
|
|
40
|
+
* @param {unknown} command Shell command text.
|
|
41
|
+
* @param {string} [root] Project root, for the input file's location check.
|
|
42
|
+
* @returns {boolean} True for an exact recovery command.
|
|
43
|
+
*/
|
|
44
|
+
export function readinessOwnerInvocation(command, root = process.cwd()) {
|
|
31
45
|
if (typeof command !== "string") return false;
|
|
32
46
|
for (const runtime of ["node", process.execPath, quote(process.execPath)])
|
|
33
47
|
for (const script of [owner, quote(owner)]) {
|
|
34
48
|
if (command === `${runtime} ${script} --task`) return true;
|
|
35
49
|
for (const mode of ["task", "prepare"]) {
|
|
36
50
|
const prefix = `${runtime} ${script} --${mode} --ref `;
|
|
51
|
+
if (!command.startsWith(prefix)) continue;
|
|
52
|
+
const rest = command.slice(prefix.length);
|
|
53
|
+
if (refs.test(rest)) return true;
|
|
54
|
+
const [ref, flag, file, ...extra] = rest.split(" ");
|
|
37
55
|
if (
|
|
38
|
-
|
|
39
|
-
refs.test(
|
|
56
|
+
mode === "prepare" &&
|
|
57
|
+
refs.test(ref) &&
|
|
58
|
+
flag === "--input-file" &&
|
|
59
|
+
extra.length === 0 &&
|
|
60
|
+
plainPath.test(file ?? "") &&
|
|
61
|
+
outsideEveryRepository(file, root)
|
|
40
62
|
)
|
|
41
63
|
return true;
|
|
42
64
|
}
|
|
@@ -52,7 +74,7 @@ function orientation(input) {
|
|
|
52
74
|
return true;
|
|
53
75
|
if (input?.tool_name !== "Bash") return false;
|
|
54
76
|
return (
|
|
55
|
-
readinessOwnerInvocation(input.tool_input?.command) ||
|
|
77
|
+
readinessOwnerInvocation(input.tool_input?.command, input.cwd) ||
|
|
56
78
|
[
|
|
57
79
|
"pwd",
|
|
58
80
|
"ls -la",
|
|
@@ -150,6 +150,16 @@ export function unboundWrite(input, cfg) {
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* This installation's prepare/read owner script as one shell word.
|
|
155
|
+
* @returns {string} The path, quoted only when it needs to be.
|
|
156
|
+
*/
|
|
157
|
+
function ownerWord() {
|
|
158
|
+
return /^[\w./@+-]+$/.test(owner)
|
|
159
|
+
? owner
|
|
160
|
+
: `'${owner.replaceAll("'", "'\\''")}'`;
|
|
161
|
+
}
|
|
162
|
+
|
|
153
163
|
/**
|
|
154
164
|
* The exact read command this installation admits with no work item bound.
|
|
155
165
|
* @param {Record<string, any>} cfg Task configuration.
|
|
@@ -157,9 +167,7 @@ export function unboundWrite(input, cfg) {
|
|
|
157
167
|
*/
|
|
158
168
|
function readCommand(cfg) {
|
|
159
169
|
const c = cfg.effective ?? {};
|
|
160
|
-
const script =
|
|
161
|
-
? owner
|
|
162
|
-
: `'${owner.replaceAll("'", "'\\''")}'`;
|
|
170
|
+
const script = ownerWord();
|
|
163
171
|
if (c.tracker === "linear" && c.linear?.teamKey)
|
|
164
172
|
return `node ${script} --tracker-intake-read --ref ${c.linear.teamKey}-<number> --read issue`;
|
|
165
173
|
if (c.tracker === "jira" && c.jira?.project)
|
|
@@ -192,6 +200,7 @@ export function unboundRefusal(cfg) {
|
|
|
192
200
|
: "",
|
|
193
201
|
"A file written outside every git repository, such as a scratch or memory file, is allowed.",
|
|
194
202
|
"To change anything in this project, bind its ticket first with lisa-track.",
|
|
203
|
+
`Its prepare step needs no shell input: write the prepare JSON to a file outside every repository, then run exactly: node ${ownerWord()} --prepare --ref <ticket> --input-file <absolute path of that file>.`,
|
|
195
204
|
]
|
|
196
205
|
.filter(Boolean)
|
|
197
206
|
.join(" "),
|
|
@@ -42,6 +42,7 @@ import { failure } from "./task-readiness.mjs";
|
|
|
42
42
|
import { runTaskAction } from "./task-action.mjs";
|
|
43
43
|
import { AccessFailure } from "./config-layers.mjs";
|
|
44
44
|
import { prepareRequirements } from "./task-requirements.mjs";
|
|
45
|
+
import { outsideEveryRepository } from "./task-unbound.mjs";
|
|
45
46
|
import { runIntakeRead } from "./task-intake-read.mjs";
|
|
46
47
|
import { runTrackerIntakeRead } from "./task-tracker-intake.mjs";
|
|
47
48
|
export { taskReadiness, credentialAvailability } from "./task-readiness.mjs";
|
|
@@ -367,7 +368,13 @@ function main() {
|
|
|
367
368
|
if (process.argv.includes("--prepare")) {
|
|
368
369
|
const cfg = readTaskConfig();
|
|
369
370
|
const index = process.argv.indexOf("--ref");
|
|
370
|
-
const
|
|
371
|
+
const fileIndex = process.argv.indexOf("--input-file");
|
|
372
|
+
// An agent's shell tool has no stdin. It writes the JSON to a file outside
|
|
373
|
+
// every repository (admitted while unbound) and names it here instead.
|
|
374
|
+
const file = fileIndex >= 0 ? process.argv[fileIndex + 1] : undefined;
|
|
375
|
+
if (fileIndex >= 0 && !outsideEveryRepository(file, cfg.projectRoot))
|
|
376
|
+
throw new AccessFailure("requirements-stale");
|
|
377
|
+
const input = JSON.parse(readFileSync(fileIndex >= 0 ? file : 0, "utf8"));
|
|
371
378
|
console.log(
|
|
372
379
|
JSON.stringify(
|
|
373
380
|
prepareRequirements(
|
|
@@ -9,7 +9,11 @@ import { readTaskRequirements } from "./task-requirements.mjs";
|
|
|
9
9
|
import { lifecycleEvents, resetNativeEvent } from "./task-native-lifecycle.mjs";
|
|
10
10
|
import { intakeRead } from "./task-intake.mjs";
|
|
11
11
|
import { nativeContext } from "./task-native-context.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
outsideEveryRepository,
|
|
14
|
+
unboundRefusal,
|
|
15
|
+
unboundWrite,
|
|
16
|
+
} from "./task-unbound.mjs";
|
|
13
17
|
import {
|
|
14
18
|
linearIntakeRead,
|
|
15
19
|
observeLinearIntake,
|
|
@@ -26,17 +30,35 @@ const owner = join(
|
|
|
26
30
|
const refs = /^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/;
|
|
27
31
|
const quote = path => `'${path.replaceAll("'", "'\\''")}'`;
|
|
28
32
|
|
|
29
|
-
/**
|
|
30
|
-
|
|
33
|
+
/** A file path that a shell reads as exactly one plain word. */
|
|
34
|
+
const plainPath = /^\/[A-Za-z0-9_./@+-]+$/;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Exact canonical recovery command. JSON uses structured child/terminal
|
|
38
|
+
* stdin, or a file outside every repository that an agent's shell tool can
|
|
39
|
+
* name, since it has no stdin to supply.
|
|
40
|
+
* @param {unknown} command Shell command text.
|
|
41
|
+
* @param {string} [root] Project root, for the input file's location check.
|
|
42
|
+
* @returns {boolean} True for an exact recovery command.
|
|
43
|
+
*/
|
|
44
|
+
export function readinessOwnerInvocation(command, root = process.cwd()) {
|
|
31
45
|
if (typeof command !== "string") return false;
|
|
32
46
|
for (const runtime of ["node", process.execPath, quote(process.execPath)])
|
|
33
47
|
for (const script of [owner, quote(owner)]) {
|
|
34
48
|
if (command === `${runtime} ${script} --task`) return true;
|
|
35
49
|
for (const mode of ["task", "prepare"]) {
|
|
36
50
|
const prefix = `${runtime} ${script} --${mode} --ref `;
|
|
51
|
+
if (!command.startsWith(prefix)) continue;
|
|
52
|
+
const rest = command.slice(prefix.length);
|
|
53
|
+
if (refs.test(rest)) return true;
|
|
54
|
+
const [ref, flag, file, ...extra] = rest.split(" ");
|
|
37
55
|
if (
|
|
38
|
-
|
|
39
|
-
refs.test(
|
|
56
|
+
mode === "prepare" &&
|
|
57
|
+
refs.test(ref) &&
|
|
58
|
+
flag === "--input-file" &&
|
|
59
|
+
extra.length === 0 &&
|
|
60
|
+
plainPath.test(file ?? "") &&
|
|
61
|
+
outsideEveryRepository(file, root)
|
|
40
62
|
)
|
|
41
63
|
return true;
|
|
42
64
|
}
|
|
@@ -52,7 +74,7 @@ function orientation(input) {
|
|
|
52
74
|
return true;
|
|
53
75
|
if (input?.tool_name !== "Bash") return false;
|
|
54
76
|
return (
|
|
55
|
-
readinessOwnerInvocation(input.tool_input?.command) ||
|
|
77
|
+
readinessOwnerInvocation(input.tool_input?.command, input.cwd) ||
|
|
56
78
|
[
|
|
57
79
|
"pwd",
|
|
58
80
|
"ls -la",
|
|
@@ -150,6 +150,16 @@ export function unboundWrite(input, cfg) {
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* This installation's prepare/read owner script as one shell word.
|
|
155
|
+
* @returns {string} The path, quoted only when it needs to be.
|
|
156
|
+
*/
|
|
157
|
+
function ownerWord() {
|
|
158
|
+
return /^[\w./@+-]+$/.test(owner)
|
|
159
|
+
? owner
|
|
160
|
+
: `'${owner.replaceAll("'", "'\\''")}'`;
|
|
161
|
+
}
|
|
162
|
+
|
|
153
163
|
/**
|
|
154
164
|
* The exact read command this installation admits with no work item bound.
|
|
155
165
|
* @param {Record<string, any>} cfg Task configuration.
|
|
@@ -157,9 +167,7 @@ export function unboundWrite(input, cfg) {
|
|
|
157
167
|
*/
|
|
158
168
|
function readCommand(cfg) {
|
|
159
169
|
const c = cfg.effective ?? {};
|
|
160
|
-
const script =
|
|
161
|
-
? owner
|
|
162
|
-
: `'${owner.replaceAll("'", "'\\''")}'`;
|
|
170
|
+
const script = ownerWord();
|
|
163
171
|
if (c.tracker === "linear" && c.linear?.teamKey)
|
|
164
172
|
return `node ${script} --tracker-intake-read --ref ${c.linear.teamKey}-<number> --read issue`;
|
|
165
173
|
if (c.tracker === "jira" && c.jira?.project)
|
|
@@ -192,6 +200,7 @@ export function unboundRefusal(cfg) {
|
|
|
192
200
|
: "",
|
|
193
201
|
"A file written outside every git repository, such as a scratch or memory file, is allowed.",
|
|
194
202
|
"To change anything in this project, bind its ticket first with lisa-track.",
|
|
203
|
+
`Its prepare step needs no shell input: write the prepare JSON to a file outside every repository, then run exactly: node ${ownerWord()} --prepare --ref <ticket> --input-file <absolute path of that file>.`,
|
|
195
204
|
]
|
|
196
205
|
.filter(Boolean)
|
|
197
206
|
.join(" "),
|