opencode-swarm 7.134.1 → 7.134.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/.opencode/skills/swarm-pr-feedback/SKILL.md +10 -3
- package/.opencode/skills/swarm-pr-review/SKILL.md +11 -3
- package/README.md +1 -1
- package/dist/background/pr-event-delivery.d.ts +8 -0
- package/dist/background/pr-event-subscribers.d.ts +5 -0
- package/dist/background/pr-feedback-event-queue.d.ts +37 -0
- package/dist/background/workspace-snapshot.d.ts +8 -3
- package/dist/cli/{config-doctor-4avzz3rh.js → config-doctor-yqwm2tfh.js} +2 -2
- package/dist/cli/{curation-policy-8vkzjtwb.js → curation-policy-x5m4x34n.js} +2 -2
- package/dist/cli/{curator-llm-factory-2qk8q4y9.js → curator-llm-factory-24mjnh2y.js} +14 -14
- package/dist/cli/{curator-3vsvhwav.js → curator-thrwgwh1.js} +14 -14
- package/dist/cli/{evidence-summary-service-mrzsjpg4.js → evidence-summary-service-pay9409b.js} +1 -1
- package/dist/cli/{guardrail-explain-tw521x47.js → guardrail-explain-nmfq71cm.js} +15 -15
- package/dist/cli/{guardrail-log-e3jrwdw8.js → guardrail-log-2a61rz1w.js} +3 -3
- package/dist/cli/{hive-promoter-sdy5qjzn.js → hive-promoter-2nkjjwgc.js} +14 -14
- package/dist/cli/{index-m8ajf6wb.js → index-1mq8kmp6.js} +3 -3
- package/dist/cli/{index-bq2848a3.js → index-2b7sv71f.js} +1 -1
- package/dist/cli/{index-h3k62043.js → index-3nasn371.js} +47 -12
- package/dist/cli/{index-0541h76w.js → index-5f403c30.js} +1 -1
- package/dist/cli/{index-358f9h8p.js → index-6kfqz0jw.js} +3203 -2039
- package/dist/cli/{index-8t9xpn1a.js → index-6wya5cqh.js} +1 -1
- package/dist/cli/{index-k742ecbm.js → index-8fhg2nt2.js} +2 -2
- package/dist/cli/{index-9z1q181f.js → index-8wktghbc.js} +1 -1
- package/dist/cli/{index-c0e3vhv9.js → index-ddxt327j.js} +1 -1
- package/dist/cli/{index-kwm7hz18.js → index-mgr951p8.js} +5 -5
- package/dist/cli/{index-6b69mp0r.js → index-q3m6bpx2.js} +2 -2
- package/dist/cli/{index-463k8mfr.js → index-reesz606.js} +2 -2
- package/dist/cli/{index-2j8f71c3.js → index-rjngxx7q.js} +4 -4
- package/dist/cli/{index-y2esw64s.js → index-tsmjmhnk.js} +1 -1
- package/dist/cli/{index-mz6sqtm9.js → index-txwm0fv4.js} +16 -16
- package/dist/cli/{index-zjw32rv9.js → index-y3rj2jgb.js} +1 -1
- package/dist/cli/{index-pz49rx4y.js → index-yaptf0hg.js} +2 -2
- package/dist/cli/{index-1v5mby7t.js → index-yqvh2s4w.js} +1 -1
- package/dist/cli/index.js +14 -14
- package/dist/cli/{knowledge-escalator-v09w0jmg.js → knowledge-escalator-fqsavryx.js} +3 -3
- package/dist/cli/{knowledge-events-qp19r2he.js → knowledge-events-ykt8vrvj.js} +1 -1
- package/dist/cli/{knowledge-store-n5pvv0s3.js → knowledge-store-tpd98m39.js} +1 -1
- package/dist/cli/{knowledge-validator-qg31ycbb.js → knowledge-validator-kc7fnt2r.js} +4 -4
- package/dist/cli/{scan-cursor-wtzfvkh2.js → scan-cursor-121b73j0.js} +2 -2
- package/dist/cli/{schema-erk5bz43.js → schema-jb4p8ja9.js} +1 -1
- package/dist/cli/{skill-generator-nxs65tq3.js → skill-generator-m2g5mdva.js} +5 -5
- package/dist/cli/{workspace-snapshot-35qc0y8a.js → workspace-snapshot-9h5za0s6.js} +3 -1
- package/dist/commands/pr-feedback.d.ts +15 -2
- package/dist/git/pr-workflow-state.d.ts +37 -0
- package/dist/hooks/pr-workflow-gate.d.ts +42 -2
- package/dist/hooks/pr-workflow-response-gate.d.ts +3 -0
- package/dist/hooks/shell-write-detect.d.ts +1 -1
- package/dist/index.js +490 -476
- package/dist/tools/pr-workflow-status.d.ts +2 -0
- package/dist/tools/pre-check-batch.d.ts +22 -0
- package/dist/tools/prepare-pr-workflow-checkout.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { resolveCurrentGitHeadAsync, resolveIsWorkingTreeCleanAsync } from '../background/workspace-snapshot';
|
|
2
|
+
import { classifyPrWorkflowGitState } from '../git/pr-workflow-state';
|
|
2
3
|
import { readPrWorkflowGateState } from '../hooks/pr-workflow-gate';
|
|
3
4
|
import { createSwarmTool } from './create-tool';
|
|
4
5
|
/**
|
|
@@ -23,6 +24,7 @@ export declare const _internals: {
|
|
|
23
24
|
resolveCurrentGitHeadAsync: typeof resolveCurrentGitHeadAsync;
|
|
24
25
|
resolveIsWorkingTreeCleanAsync: typeof resolveIsWorkingTreeCleanAsync;
|
|
25
26
|
runGitCapture: typeof runGitCapture;
|
|
27
|
+
classifyGitState: typeof classifyPrWorkflowGitState;
|
|
26
28
|
truncateToByteBudget: typeof truncateToByteBudget;
|
|
27
29
|
};
|
|
28
30
|
export {};
|
|
@@ -12,6 +12,11 @@ import type { SastScanFinding, SastScanResult } from './sast-scan';
|
|
|
12
12
|
import type { SecretscanErrorResult, SecretscanResult } from './secretscan';
|
|
13
13
|
export declare const _internals: {
|
|
14
14
|
qualityBudget: typeof qualityBudget;
|
|
15
|
+
runLintWrapped: typeof runLintWrapped;
|
|
16
|
+
runSecretscanWrapped: typeof runSecretscanWrapped;
|
|
17
|
+
runSastScanWrapped: typeof runSastScanWrapped;
|
|
18
|
+
runQualityBudgetWrapped: typeof runQualityBudgetWrapped;
|
|
19
|
+
getChangedLineRanges: typeof getChangedLineRanges;
|
|
15
20
|
};
|
|
16
21
|
export interface PreCheckBatchInput {
|
|
17
22
|
/** List of specific files to check (optional) */
|
|
@@ -57,6 +62,22 @@ export interface PreCheckBatchResult {
|
|
|
57
62
|
/** Pre-existing SAST findings on unchanged lines, requiring reviewer triage */
|
|
58
63
|
sast_preexisting_findings?: SastScanFinding[];
|
|
59
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Run lint with detection and timeout
|
|
67
|
+
*/
|
|
68
|
+
declare function runLintWrapped(files: string[] | undefined, directory: string, _config?: PluginConfig): Promise<ToolResult<LintResult>>;
|
|
69
|
+
/**
|
|
70
|
+
* Run secretscan with timeout
|
|
71
|
+
*/
|
|
72
|
+
declare function runSecretscanWrapped(files: string[] | undefined, directory: string, _config?: PluginConfig): Promise<ToolResult<SecretscanResult | SecretscanErrorResult>>;
|
|
73
|
+
/**
|
|
74
|
+
* Run SAST scan with timeout
|
|
75
|
+
*/
|
|
76
|
+
declare function runSastScanWrapped(changedFiles: string[], directory: string, severityThreshold: 'low' | 'medium' | 'high' | 'critical', config?: PluginConfig, phase?: number): Promise<ToolResult<SastScanResult>>;
|
|
77
|
+
/**
|
|
78
|
+
* Run quality budget with timeout
|
|
79
|
+
*/
|
|
80
|
+
declare function runQualityBudgetWrapped(changedFiles: string[], directory: string, config?: PluginConfig): Promise<ToolResult<QualityBudgetResult>>;
|
|
60
81
|
/**
|
|
61
82
|
* Parse unified diff output (with -U0) to extract added/modified line numbers per file.
|
|
62
83
|
* Returns a Map from normalised file path → Set of changed line numbers.
|
|
@@ -91,3 +112,4 @@ export declare function runPreCheckBatch(input: PreCheckBatchInput, workspaceDir
|
|
|
91
112
|
* Returns unified result with gates_passed status
|
|
92
113
|
*/
|
|
93
114
|
export declare const pre_check_batch: ReturnType<typeof tool>;
|
|
115
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { classifyPrWorkflowGitState } from '../git/pr-workflow-state.js';
|
|
1
2
|
import { createSwarmTool } from './create-tool.js';
|
|
2
3
|
/**
|
|
3
4
|
* Preserve explicit dirty tracked files before the unbound PR checkout.
|
|
@@ -26,6 +27,7 @@ declare function runGit(directory: string, args: string[], options?: {
|
|
|
26
27
|
*/
|
|
27
28
|
export declare const _internals: {
|
|
28
29
|
runGit: typeof runGit;
|
|
30
|
+
classifyGitState: typeof classifyPrWorkflowGitState;
|
|
29
31
|
};
|
|
30
32
|
export declare const prepare_pr_workflow_checkout: ReturnType<typeof createSwarmTool>;
|
|
31
33
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.134.
|
|
3
|
+
"version": "7.134.3",
|
|
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",
|