opencode-agent-orchestration-kit 1.0.32 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -4
- package/SECURITY.md +7 -0
- package/docs/cli.md +100 -0
- package/docs/installation.md +25 -5
- package/docs/quickstart.md +1 -1
- package/docs/releases/v1.0.33.md +72 -0
- package/docs/releases/v1.0.34.md +59 -0
- package/docs/releases/v1.0.35.md +62 -0
- package/docs/releases/v1.0.36.md +58 -0
- package/docs/releases/v1.0.37.md +53 -0
- package/docs/security.md +4 -0
- package/docs/supply-chain.md +9 -5
- package/docs/threat-model.md +244 -0
- package/docs/use-cases/README.md +31 -0
- package/docs/use-cases/direct-label-change/README.md +76 -0
- package/docs/use-cases/direct-label-change/before/package.json +8 -0
- package/docs/use-cases/direct-label-change/before/src/settings-label.mjs +1 -0
- package/docs/use-cases/direct-label-change/before/test/settings-label.test.mjs +8 -0
- package/docs/use-cases/direct-label-change/case.json +118 -0
- package/docs/use-cases/direct-label-change/expected/package.json +8 -0
- package/docs/use-cases/direct-label-change/expected/src/settings-label.mjs +1 -0
- package/docs/use-cases/direct-label-change/expected/test/settings-label.test.mjs +8 -0
- package/docs/use-cases/feature-tag-normalizer/README.md +78 -0
- package/docs/use-cases/feature-tag-normalizer/before/package.json +8 -0
- package/docs/use-cases/feature-tag-normalizer/before/src/normalize-tags.mjs +3 -0
- package/docs/use-cases/feature-tag-normalizer/before/test/normalize-tags.test.mjs +13 -0
- package/docs/use-cases/feature-tag-normalizer/case.json +119 -0
- package/docs/use-cases/feature-tag-normalizer/expected/package.json +8 -0
- package/docs/use-cases/feature-tag-normalizer/expected/src/normalize-tags.mjs +14 -0
- package/docs/use-cases/feature-tag-normalizer/expected/test/normalize-tags.test.mjs +18 -0
- package/docs/workflows.md +6 -0
- package/opencode/agents/lead.md +11 -2
- package/opencode/agents/review_api.md +26 -9
- package/opencode/agents/review_coordinator.md +60 -68
- package/opencode/agents/review_quality.md +27 -11
- package/opencode/agents/review_security.md +26 -10
- package/opencode/agents/review_tests.md +26 -9
- package/opencode/agents/reviewer.md +95 -80
- package/opencode/commands/autonomous.md +75 -0
- package/opencode/commands/evolve.md +3 -1
- package/opencode/commands/feature.md +6 -2
- package/opencode/commands/loop.md +12 -8
- package/opencode/commands/review-orchestrated.md +26 -24
- package/opencode/commands/review-preflight.md +8 -7
- package/opencode/commands/review.md +27 -10
- package/opencode/docs/ai/harness/README.md +5 -0
- package/opencode/docs/ai/harness/agents.md +27 -3
- package/opencode/docs/ai/harness/checks.md +18 -0
- package/opencode/docs/ai/harness/commands.md +44 -0
- package/opencode/docs/ai/harness/orchestrated-review.md +8 -1
- package/opencode/docs/ai/harness/orchestration-contracts.json +924 -0
- package/opencode/package-lock.json +14 -8
- package/opencode/package.json +1 -0
- package/opencode/plugins/shell-export-guard.ts +23 -0
- package/opencode/scripts/adversarial-harness.test.mjs +5 -2
- package/opencode/scripts/check-harness.mjs +873 -18
- package/opencode/scripts/check-harness.test.mjs +562 -0
- package/opencode/scripts/loop-state.mjs +88 -14
- package/opencode/scripts/loop-state.test.mjs +82 -5
- package/opencode/scripts/review-orchestrated-prepare.mjs +18 -1
- package/opencode/scripts/review-orchestrated-prepare.test.mjs +49 -0
- package/opencode/scripts/shell-export-policy.d.mts +4 -0
- package/opencode/scripts/shell-export-policy.mjs +272 -0
- package/opencode/scripts/shell-export-policy.test.mjs +96 -0
- package/opencode/skills/code-review-and-quality/SKILL.md +63 -321
- package/opencode/skills/code-review-and-quality/references/profiles/backend-clean-ddd-cqrs.md +60 -0
- package/opencode/skills/code-review-and-quality/references/profiles/backend.md +54 -0
- package/opencode/skills/code-review-and-quality/references/profiles/frontend-clean-layered.md +60 -0
- package/opencode/skills/code-review-and-quality/references/profiles/frontend.md +62 -0
- package/opencode/skills/code-review-and-quality/references/review-policy.md +258 -0
- package/package.json +5 -2
- package/scripts/check-supply-chain.mjs +16 -2
- package/scripts/check-supply-chain.test.mjs +52 -1
- package/scripts/check-threat-model.mjs +421 -0
- package/scripts/check-threat-model.test.mjs +304 -0
- package/scripts/check-use-cases.mjs +501 -0
- package/scripts/check-use-cases.test.mjs +225 -0
- package/scripts/check.sh +55 -1
- package/scripts/install-smoke.sh +24 -1
- package/scripts/manage-installation.mjs +567 -25
- package/scripts/manage-installation.test.mjs +418 -0
- package/scripts/oak.mjs +246 -0
- package/scripts/oak.test.mjs +329 -0
- package/scripts/package-smoke.mjs +57 -0
- package/scripts/package-smoke.test.mjs +75 -2
- package/scripts/version.mjs +1 -0
- package/scripts/version.test.mjs +3 -2
- package/supply-chain.json +1 -0
|
@@ -773,10 +773,13 @@
|
|
|
773
773
|
}
|
|
774
774
|
},
|
|
775
775
|
"node_modules/balanced-match": {
|
|
776
|
-
"version": "
|
|
777
|
-
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-
|
|
778
|
-
"integrity": "sha512-
|
|
779
|
-
"license": "MIT"
|
|
776
|
+
"version": "4.0.4",
|
|
777
|
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
|
|
778
|
+
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
|
779
|
+
"license": "MIT",
|
|
780
|
+
"engines": {
|
|
781
|
+
"node": "18 || 20 || >=22"
|
|
782
|
+
}
|
|
780
783
|
},
|
|
781
784
|
"node_modules/baseline-browser-mapping": {
|
|
782
785
|
"version": "2.10.27",
|
|
@@ -791,12 +794,15 @@
|
|
|
791
794
|
}
|
|
792
795
|
},
|
|
793
796
|
"node_modules/brace-expansion": {
|
|
794
|
-
"version": "
|
|
795
|
-
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-
|
|
796
|
-
"integrity": "sha512-
|
|
797
|
+
"version": "5.0.9",
|
|
798
|
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
|
|
799
|
+
"integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
|
|
797
800
|
"license": "MIT",
|
|
798
801
|
"dependencies": {
|
|
799
|
-
"balanced-match": "^
|
|
802
|
+
"balanced-match": "^4.0.2"
|
|
803
|
+
},
|
|
804
|
+
"engines": {
|
|
805
|
+
"node": "20 || >=22"
|
|
800
806
|
}
|
|
801
807
|
},
|
|
802
808
|
"node_modules/browserslist": {
|
package/opencode/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
|
+
import { classifyShellExport } from "../scripts/shell-export-policy.mjs";
|
|
3
|
+
|
|
4
|
+
const BLOCK_MESSAGE =
|
|
5
|
+
"Sensitive shell export blocked by policy; use an explicit non-secret value or a scoped secret-aware tool.";
|
|
6
|
+
|
|
7
|
+
export const ShellExportGuardPlugin: Plugin = async () => ({
|
|
8
|
+
"tool.execute.before": async (input, output) => {
|
|
9
|
+
const tool = String(input?.tool ?? "").toLowerCase();
|
|
10
|
+
if (tool !== "bash" && tool !== "shell") return;
|
|
11
|
+
|
|
12
|
+
const args = output?.args;
|
|
13
|
+
if (!args || typeof args !== "object") return;
|
|
14
|
+
|
|
15
|
+
const command = (args as Record<string, unknown>).command;
|
|
16
|
+
if (typeof command !== "string") return;
|
|
17
|
+
|
|
18
|
+
const decision = classifyShellExport(command);
|
|
19
|
+
if (decision.blocked) {
|
|
20
|
+
throw new Error(`[shell-export-guard:${decision.rule}] ${BLOCK_MESSAGE}`);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
});
|
|
@@ -79,6 +79,7 @@ function initializeLoop(rootDir) {
|
|
|
79
79
|
gitBaseline: "abc123",
|
|
80
80
|
sessionId: "session-1",
|
|
81
81
|
actionId: "approve-1",
|
|
82
|
+
plannedIterations: 1,
|
|
82
83
|
});
|
|
83
84
|
return contractPath;
|
|
84
85
|
}
|
|
@@ -141,6 +142,7 @@ const handlers = {
|
|
|
141
142
|
gitBaseline: "abc123",
|
|
142
143
|
sessionId: "session-1",
|
|
143
144
|
actionId: "approve-1",
|
|
145
|
+
plannedIterations: 1,
|
|
144
146
|
}),
|
|
145
147
|
(error) => error instanceof LoopStateError && error.code === "unsafe_path",
|
|
146
148
|
);
|
|
@@ -159,8 +161,9 @@ const handlers = {
|
|
|
159
161
|
slug: "../escape",
|
|
160
162
|
contractPath,
|
|
161
163
|
gitBaseline: "abc123",
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
sessionId: "session-1",
|
|
165
|
+
actionId: "approve-1",
|
|
166
|
+
plannedIterations: 1,
|
|
164
167
|
}),
|
|
165
168
|
(error) => error instanceof LoopStateError && error.code === "invalid_argument",
|
|
166
169
|
);
|