opencode-swarm 7.114.3 → 7.114.5
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/.opencode/skills/execute/SKILL.md +12 -14
- package/.opencode/skills/swarm-pr-review/SKILL.md +136 -78
- package/README.md +2 -1
- package/dist/agents/explorer.d.ts +1 -1
- package/dist/background/candidate-parser.d.ts +30 -0
- package/dist/background/candidate-sidecar-store.d.ts +4 -3
- package/dist/cli/{config-doctor-xbdfrbwt.js → config-doctor-jy3mdh9t.js} +2 -2
- package/dist/cli/{curator-68rn0ss8.js → curator-2cnthj9n.js} +5 -5
- package/dist/cli/{curator-llm-factory-fpzm8j0g.js → curator-llm-factory-asqhpq08.js} +5 -5
- package/dist/cli/{explorer-t5srbq64.js → explorer-jp0nen03.js} +1 -1
- package/dist/cli/{guardrail-explain-k3bb68q5.js → guardrail-explain-xt6skemq.js} +6 -6
- package/dist/cli/{guardrail-log-qfc2j0tb.js → guardrail-log-84wnx273.js} +3 -3
- package/dist/cli/{hive-promoter-h3jcrdh0.js → hive-promoter-n9qt3sth.js} +5 -5
- package/dist/cli/{index-xbe1wtme.js → index-7jmrbp68.js} +1 -1
- package/dist/cli/{index-2148358e.js → index-9bsmzfk3.js} +1 -1
- package/dist/cli/{index-147ja18h.js → index-a45jq4b7.js} +4 -0
- package/dist/cli/{index-e8zaze89.js → index-fc35yaah.js} +18 -18
- package/dist/cli/{index-by2gt09c.js → index-s0h4kf1t.js} +7 -7
- package/dist/cli/{index-hnv7rrf9.js → index-s8se9nt5.js} +2 -2
- package/dist/cli/{index-jt58s751.js → index-vxv732ex.js} +8 -4
- package/dist/cli/{index-g6va6n3t.js → index-yfedche9.js} +1 -1
- package/dist/cli/index.js +5 -5
- package/dist/cli/{schema-e5kd993s.js → schema-aymfdrsb.js} +1 -1
- package/dist/hooks/skill-injection.d.ts +80 -0
- package/dist/index.js +85 -77
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/dist/tools/write-pr-review-trigger-eval.d.ts +74 -0
- package/package.json +1 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -110,4 +110,5 @@ export { write_drift_evidence } from './write-drift-evidence';
|
|
|
110
110
|
export { write_final_council_evidence } from './write-final-council-evidence';
|
|
111
111
|
export { write_hallucination_evidence } from './write-hallucination-evidence';
|
|
112
112
|
export { write_mutation_evidence } from './write-mutation-evidence';
|
|
113
|
+
export { executeWritePrReviewTriggerEval, PR_REVIEW_TRIGGER_DEFINITIONS, write_pr_review_trigger_eval, } from './write-pr-review-trigger-eval';
|
|
113
114
|
export { executeWriteRetro, write_retro } from './write-retro';
|
package/dist/tools/manifest.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const TOOL_MANIFEST: {
|
|
|
49
49
|
checkpoint: () => ToolDefinition;
|
|
50
50
|
pkg_audit: () => ToolDefinition;
|
|
51
51
|
parse_lane_candidates: () => ToolDefinition;
|
|
52
|
+
write_pr_review_trigger_eval: () => ToolDefinition;
|
|
52
53
|
test_runner: () => ToolDefinition;
|
|
53
54
|
test_impact: () => ToolDefinition;
|
|
54
55
|
mutation_test: () => ToolDefinition;
|
|
@@ -127,6 +127,10 @@ export declare const TOOL_METADATA: {
|
|
|
127
127
|
description: string;
|
|
128
128
|
agents: "architect"[];
|
|
129
129
|
};
|
|
130
|
+
write_pr_review_trigger_eval: {
|
|
131
|
+
description: string;
|
|
132
|
+
agents: "architect"[];
|
|
133
|
+
};
|
|
130
134
|
test_runner: {
|
|
131
135
|
description: string;
|
|
132
136
|
agents: ("reviewer" | "test_engineer" | "architect")[];
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { createSwarmTool } from './create-tool';
|
|
3
|
+
/** Canonical trigger IDs and display values shared with the PR-review protocol. */
|
|
4
|
+
export declare const PR_REVIEW_TRIGGER_DEFINITIONS: readonly [{
|
|
5
|
+
readonly id: "architect-prompts";
|
|
6
|
+
readonly trigger_row: "agents, prompts, templates, prompt interpolation, role text";
|
|
7
|
+
readonly micro_lane: "Architect prompt integrity";
|
|
8
|
+
}, {
|
|
9
|
+
readonly id: "council-orchestration";
|
|
10
|
+
readonly trigger_row: "council, verdict, quorum, veto, synthesis";
|
|
11
|
+
readonly micro_lane: "Council orchestration";
|
|
12
|
+
}, {
|
|
13
|
+
readonly id: "guardrail-bypass";
|
|
14
|
+
readonly trigger_row: "guardrail, gate, delegation, rate limit, approval checks";
|
|
15
|
+
readonly micro_lane: "Guardrail bypass paths";
|
|
16
|
+
}, {
|
|
17
|
+
readonly id: "evidence-schema";
|
|
18
|
+
readonly trigger_row: "schema, evidence, JSONL, migrations, serializers";
|
|
19
|
+
readonly micro_lane: "Evidence schema drift";
|
|
20
|
+
}, {
|
|
21
|
+
readonly id: "knowledge-contract";
|
|
22
|
+
readonly trigger_row: "knowledge, curator, hive, quarantine, memory";
|
|
23
|
+
readonly micro_lane: "Knowledge base contract";
|
|
24
|
+
}, {
|
|
25
|
+
readonly id: "phase-transitions";
|
|
26
|
+
readonly trigger_row: "phase, state, plan, .swarm/state, completion markers";
|
|
27
|
+
readonly micro_lane: "Phase transition validation";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "model-role-mapping";
|
|
30
|
+
readonly trigger_row: "model, role, prefix, tool, agent config";
|
|
31
|
+
readonly micro_lane: "Model-to-role mapping";
|
|
32
|
+
}, {
|
|
33
|
+
readonly id: "config-ratchet";
|
|
34
|
+
readonly trigger_row: "config, defaults, ratchet, locks, policy flags";
|
|
35
|
+
readonly micro_lane: "Config ratchet semantics";
|
|
36
|
+
}, {
|
|
37
|
+
readonly id: "url-fetch";
|
|
38
|
+
readonly trigger_row: "url, fetch, http, GitHub PR/issue parsing, package fetch";
|
|
39
|
+
readonly micro_lane: "URL sanitization and external fetch";
|
|
40
|
+
}, {
|
|
41
|
+
readonly id: "git-safety";
|
|
42
|
+
readonly trigger_row: "git, branch, checkout, reset, worktree, .git";
|
|
43
|
+
readonly micro_lane: "Git safety";
|
|
44
|
+
}, {
|
|
45
|
+
readonly id: "shell-write";
|
|
46
|
+
readonly trigger_row: "shell, exec, command parser, file writes, delete/move/copy";
|
|
47
|
+
readonly micro_lane: "Shell/write authority and path containment";
|
|
48
|
+
}, {
|
|
49
|
+
readonly id: "test-infrastructure";
|
|
50
|
+
readonly trigger_row: "test, bun, mocks, fixtures, CI matrix";
|
|
51
|
+
readonly micro_lane: "Test infrastructure";
|
|
52
|
+
}, {
|
|
53
|
+
readonly id: "metrics-privacy";
|
|
54
|
+
readonly trigger_row: "metrics, telemetry, logs, serialized traces";
|
|
55
|
+
readonly micro_lane: "Metrics and evidence privacy";
|
|
56
|
+
}];
|
|
57
|
+
declare const WritePrReviewTriggerEvalArgsSchema: z.ZodObject<{
|
|
58
|
+
run_id: z.ZodString;
|
|
59
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
60
|
+
trigger_id: z.ZodString;
|
|
61
|
+
result: z.ZodEnum<{
|
|
62
|
+
MATCHED: "MATCHED";
|
|
63
|
+
"NO-MATCH": "NO-MATCH";
|
|
64
|
+
}>;
|
|
65
|
+
evidence: z.ZodString;
|
|
66
|
+
source_batch_id: z.ZodOptional<z.ZodString>;
|
|
67
|
+
source_lane_id: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export type WritePrReviewTriggerEvalArgs = z.infer<typeof WritePrReviewTriggerEvalArgsSchema>;
|
|
71
|
+
/** Validate and atomically persist the complete PR-review trigger evaluation. */
|
|
72
|
+
export declare function executeWritePrReviewTriggerEval(args: unknown, directory: string): Promise<string>;
|
|
73
|
+
export declare const write_pr_review_trigger_eval: ReturnType<typeof createSwarmTool>;
|
|
74
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.114.
|
|
3
|
+
"version": "7.114.5",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|