opencode-swarm 7.130.0 → 7.130.2
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/swarm-pr-review/SKILL.md +75 -26
- package/dist/cli/{config-doctor-2admdwc2.js → config-doctor-489wej17.js} +2 -2
- package/dist/cli/{curation-policy-s08pg90f.js → curation-policy-aaz0hap6.js} +2 -2
- package/dist/cli/{curator-llm-factory-swde9kj0.js → curator-llm-factory-mxjcctn8.js} +13 -13
- package/dist/cli/{curator-yppkg914.js → curator-s2ynewsr.js} +13 -13
- package/dist/cli/{guardrail-explain-2w8tezk9.js → guardrail-explain-s85kv81r.js} +14 -14
- package/dist/cli/{guardrail-log-7cychbgs.js → guardrail-log-2cejc33f.js} +3 -3
- package/dist/cli/{hive-promoter-k055s568.js → hive-promoter-qdgxajht.js} +13 -13
- package/dist/cli/{index-mgz9nm4a.js → index-3rnkyb60.js} +5 -5
- package/dist/cli/{index-7ttstfv6.js → index-5xxgeksy.js} +9 -0
- package/dist/cli/{index-x0d06qx6.js → index-6fqj8fcp.js} +2 -2
- package/dist/cli/{index-nbdge8b6.js → index-agte9w1e.js} +2 -2
- package/dist/cli/{index-mkqqh1z9.js → index-etdgtk3m.js} +42 -39
- package/dist/cli/{index-f2y46pda.js → index-h3k62043.js} +20 -6
- package/dist/cli/{index-v4n224r1.js → index-hjar4crm.js} +1 -1
- package/dist/cli/{index-rhc0d3tn.js → index-jvwkxz8q.js} +15 -15
- package/dist/cli/{index-8fy8q1px.js → index-jvyn76xe.js} +3 -3
- package/dist/cli/{index-bz814zsm.js → index-jxha73tm.js} +1 -1
- package/dist/cli/{index-yxz0c97p.js → index-nr5pr54q.js} +1 -1
- package/dist/cli/{index-cpssctv1.js → index-p6qgjkbt.js} +1 -1
- package/dist/cli/{index-hbbj7ktj.js → index-s8h2cedv.js} +1 -1
- package/dist/cli/{index-n08cksd6.js → index-ts9wh1ba.js} +4 -4
- package/dist/cli/{index-x7wt1g4w.js → index-wy3q73j2.js} +2 -2
- package/dist/cli/{index-nhexgq4a.js → index-xa29259t.js} +1 -1
- package/dist/cli/{index-8etcyr9r.js → index-zft4hp35.js} +1 -1
- package/dist/cli/index.js +13 -13
- package/dist/cli/{knowledge-escalator-jjyn29ht.js → knowledge-escalator-1ypz0266.js} +3 -3
- package/dist/cli/{knowledge-events-f75n3916.js → knowledge-events-yvcczmja.js} +1 -1
- package/dist/cli/{knowledge-store-7sahm702.js → knowledge-store-h8bp9eje.js} +1 -1
- package/dist/cli/{knowledge-validator-rjwvafv3.js → knowledge-validator-sz9v1fdq.js} +4 -4
- package/dist/cli/{scan-cursor-518rhxyd.js → scan-cursor-k9zyt374.js} +2 -2
- package/dist/cli/{schema-2x7wsb0n.js → schema-fkpn2r1s.js} +1 -1
- package/dist/cli/{skill-generator-hk6mc7pc.js → skill-generator-a6a9jxfd.js} +5 -5
- package/dist/cli/{workspace-snapshot-jwkjg790.js → workspace-snapshot-35qc0y8a.js} +1 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/hooks/pr-workflow-gate.d.ts +9 -0
- package/dist/hooks/pr-workflow-response-gate.d.ts +29 -6
- package/dist/index.js +46 -42
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/pr-workflow-status.d.ts +28 -0
- package/dist/tools/prepare-pr-workflow-checkout.d.ts +7 -1
- package/dist/tools/tool-metadata.d.ts +8 -0
- package/package.json +1 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export { parse_lane_candidates } from './parse-lane-candidates';
|
|
|
48
48
|
export { phase_complete } from './phase-complete';
|
|
49
49
|
export { pkg_audit } from './pkg-audit';
|
|
50
50
|
export { type PlaceholderFinding, type PlaceholderScanInput, type PlaceholderScanResult, placeholder_scan, placeholderScan, } from './placeholder-scan';
|
|
51
|
+
export { pr_workflow_status } from './pr-workflow-status';
|
|
51
52
|
export { type PreCheckBatchInput, type PreCheckBatchResult, pre_check_batch, runPreCheckBatch, type ToolResult, } from './pre-check-batch';
|
|
52
53
|
export { executePreparePrFeedbackScope, prepare_pr_feedback_scope, } from './prepare-pr-feedback-scope';
|
|
53
54
|
export { type QualityBudgetInput, type QualityBudgetResult, quality_budget, qualityBudget, } from './quality-budget';
|
package/dist/tools/manifest.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare const TOOL_MANIFEST: {
|
|
|
89
89
|
actionlint_scan: () => ToolDefinition;
|
|
90
90
|
osv_scan: () => ToolDefinition;
|
|
91
91
|
gh_evidence: () => ToolDefinition;
|
|
92
|
+
pr_workflow_status: () => ToolDefinition;
|
|
92
93
|
batch_symbols: () => ToolDefinition;
|
|
93
94
|
suggest_patch: () => ToolDefinition;
|
|
94
95
|
req_coverage: () => ToolDefinition;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { resolveCurrentGitHeadAsync, resolveIsWorkingTreeCleanAsync } from '../background/workspace-snapshot';
|
|
2
|
+
import { readPrWorkflowGateState } from '../hooks/pr-workflow-gate';
|
|
3
|
+
import { createSwarmTool } from './create-tool';
|
|
4
|
+
/**
|
|
5
|
+
* Truncate to an exact UTF-8 byte budget. `String.prototype.length`/`.slice`
|
|
6
|
+
* operate on UTF-16 code units, not bytes — for multi-byte content (non-ASCII
|
|
7
|
+
* filenames, emoji) that under-counts real byte size and can split a
|
|
8
|
+
* surrogate pair at the cut point. Round-tripping through TextEncoder/Decoder
|
|
9
|
+
* truncates by actual byte count and safely replaces any multi-byte sequence
|
|
10
|
+
* severed at the boundary instead of leaving a lone surrogate.
|
|
11
|
+
*/
|
|
12
|
+
declare function truncateToByteBudget(value: string, maxBytes: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* Bounded, killable, non-interactive Git read (AGENTS.md invariant 3). Array
|
|
15
|
+
* form, explicit cwd, ignored stdin, capped stdout, timeout, best-effort kill in
|
|
16
|
+
* finally. Never runs a PR-controlled script — only fixed read verbs are passed.
|
|
17
|
+
*/
|
|
18
|
+
declare function runGitCapture(directory: string, args: string[]): Promise<string | null>;
|
|
19
|
+
export declare const pr_workflow_status: ReturnType<typeof createSwarmTool>;
|
|
20
|
+
/** Test seam mirroring gh-evidence's `_internals` (issue #507 DI convention). */
|
|
21
|
+
export declare const _internals: {
|
|
22
|
+
readPrWorkflowGateState: typeof readPrWorkflowGateState;
|
|
23
|
+
resolveCurrentGitHeadAsync: typeof resolveCurrentGitHeadAsync;
|
|
24
|
+
resolveIsWorkingTreeCleanAsync: typeof resolveIsWorkingTreeCleanAsync;
|
|
25
|
+
runGitCapture: typeof runGitCapture;
|
|
26
|
+
truncateToByteBudget: typeof truncateToByteBudget;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -13,11 +13,17 @@ export declare function executePreparePrWorkflowCheckout(args: unknown, director
|
|
|
13
13
|
}): Promise<string>;
|
|
14
14
|
declare function runGit(directory: string, args: string[], options?: {
|
|
15
15
|
captureStdout?: boolean;
|
|
16
|
+
literalPathspecs?: boolean;
|
|
16
17
|
}): Promise<{
|
|
17
18
|
exitCode: number;
|
|
18
19
|
stdout: string;
|
|
19
20
|
}>;
|
|
20
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Test-only seam for every Git invocation this file makes (stash push/list/show,
|
|
23
|
+
* status). Originally added to serialize concurrent real-Git checkout
|
|
24
|
+
* preparation in tests; now the single DI point so exit-code and malformed-output
|
|
25
|
+
* failure branches can be exercised without a real git-command failure.
|
|
26
|
+
*/
|
|
21
27
|
export declare const _internals: {
|
|
22
28
|
runGit: typeof runGit;
|
|
23
29
|
};
|
|
@@ -372,6 +372,14 @@ export declare const TOOL_METADATA: {
|
|
|
372
372
|
capability: "observe";
|
|
373
373
|
};
|
|
374
374
|
};
|
|
375
|
+
pr_workflow_status: {
|
|
376
|
+
description: string;
|
|
377
|
+
agents: "architect"[];
|
|
378
|
+
prWorkflow: {
|
|
379
|
+
modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
|
|
380
|
+
capability: "observe";
|
|
381
|
+
};
|
|
382
|
+
};
|
|
375
383
|
batch_symbols: {
|
|
376
384
|
description: string;
|
|
377
385
|
agents: ("reviewer" | "explorer" | "critic_hallucination_verifier" | "critic_oversight" | "architect")[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.130.
|
|
3
|
+
"version": "7.130.2",
|
|
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",
|