opencode-swarm 7.132.0 → 7.132.1
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 +8 -0
- package/.opencode/skills/swarm-pr-review/SKILL.md +2 -0
- package/README.md +11 -2
- package/dist/cli/{config-doctor-3rssa871.js → config-doctor-bp5spb79.js} +2 -2
- package/dist/cli/{curation-policy-3914h3g9.js → curation-policy-7zp2m9gv.js} +2 -2
- package/dist/cli/{curator-1e77dq6x.js → curator-28hcw9hx.js} +12 -12
- package/dist/cli/{curator-llm-factory-41c17ybs.js → curator-llm-factory-rd0s95fw.js} +12 -12
- package/dist/cli/{guardrail-explain-624brj1y.js → guardrail-explain-742dhpec.js} +13 -13
- package/dist/cli/{guardrail-log-vfka4tcn.js → guardrail-log-aa112fxv.js} +3 -3
- package/dist/cli/{hive-promoter-mw5prfy2.js → hive-promoter-8whgvcry.js} +12 -12
- package/dist/cli/{index-6mcx76j9.js → index-3s9rfnqq.js} +4 -4
- package/dist/cli/{index-99tq1zd5.js → index-4hapy63e.js} +2 -2
- package/dist/cli/{index-q0ysv66x.js → index-630badhp.js} +1 -1
- package/dist/cli/{index-zah4qws8.js → index-6ccynjv3.js} +2 -2
- package/dist/cli/{index-e630fw43.js → index-9cf1yr67.js} +3 -3
- package/dist/cli/{index-8w3sp149.js → index-b21a4zw4.js} +48 -39
- package/dist/cli/{index-5x3g1q91.js → index-bvp2v7k1.js} +18 -4
- package/dist/cli/{index-sbq3gbjs.js → index-djwemsjn.js} +1 -1
- package/dist/cli/{index-64z5dvam.js → index-fgcmxjp7.js} +1 -1
- package/dist/cli/{index-nsxchdx0.js → index-jgfcp9bh.js} +1 -1
- package/dist/cli/{index-exs5bt14.js → index-jj4earrh.js} +1 -1
- package/dist/cli/{index-ppkp20fp.js → index-mwkwyej1.js} +5 -5
- package/dist/cli/{index-2dtwjx39.js → index-rt5jgktq.js} +1 -1
- package/dist/cli/{index-qg1cj1ev.js → index-x3p6ktva.js} +14 -14
- package/dist/cli/{index-zrh07ykv.js → index-y5qp59rc.js} +2 -2
- package/dist/cli/{index-fegng5pv.js → index-yvv1wt2h.js} +1 -1
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-5hv2dwhz.js → knowledge-escalator-j0nceas7.js} +3 -3
- package/dist/cli/{knowledge-events-434663dp.js → knowledge-events-gpqc62jr.js} +1 -1
- package/dist/cli/{knowledge-store-73ykq5j3.js → knowledge-store-ggxr3ww5.js} +1 -1
- package/dist/cli/{knowledge-validator-tnadtt1h.js → knowledge-validator-007smap6.js} +4 -4
- package/dist/cli/{scan-cursor-e33n9pej.js → scan-cursor-wz4bff7a.js} +2 -2
- package/dist/cli/{schema-1kwmcayk.js → schema-023gwne7.js} +1 -1
- package/dist/cli/{skill-generator-k111qfdw.js → skill-generator-rtsg1m7x.js} +5 -5
- package/dist/config/constants.d.ts +22 -0
- package/dist/hooks/pr-workflow-gate.d.ts +2 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +19 -19
- package/dist/tools/dispatch-lanes.d.ts +18 -0
- package/dist/tools/run-pr-feedback-stage-a.d.ts +2 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-djwemsjn.js";
|
|
8
|
+
import"./index-3s9rfnqq.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-q27bajqb.js";
|
|
11
11
|
import"./index-bk5tah7q.js";
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-9cf1yr67.js";
|
|
37
|
+
import"./index-6ccynjv3.js";
|
|
38
|
+
import"./index-rt5jgktq.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-3s9rfnqq.js";
|
|
41
|
+
import"./index-jgfcp9bh.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-q27bajqb.js";
|
|
44
44
|
import"./index-bk5tah7q.js";
|
|
@@ -30,6 +30,28 @@ export declare const SKILL_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const WRITE_TOOL_NAMES: readonly ["write", "edit", "patch", "apply_patch", "swarm_apply_patch", "create_file", "insert", "replace", "append", "prepend", "extract_code_blocks"];
|
|
32
32
|
export type WriteToolName = (typeof WRITE_TOOL_NAMES)[number];
|
|
33
|
+
/**
|
|
34
|
+
* Single source of truth for tools that must NEVER have their output rewritten
|
|
35
|
+
* by the tool-output summarizer (tool-summarizer.ts) or the context-budget
|
|
36
|
+
* tool-output masker (context-budget.ts). Two independent admission reasons:
|
|
37
|
+
*
|
|
38
|
+
* (a) Retrieval tools (`retrieve_summary`, `retrieve_lane_output`, `task`,
|
|
39
|
+
* `read`) — rewriting their output would destroy the recovery mechanism
|
|
40
|
+
* itself, creating a retrieval loop where the summary/artifact gets
|
|
41
|
+
* summarized again.
|
|
42
|
+
* (b) Ref-carrying lane tools (`dispatch_lanes`, `dispatch_lanes_async`,
|
|
43
|
+
* `collect_lane_results`, `parse_lane_candidates`) — their payloads are
|
|
44
|
+
* already self-bounding AND carry the `output_ref`/structured rows that
|
|
45
|
+
* the PR-workflow gate requires to settle lanes. Rewriting them to a
|
|
46
|
+
* type-signature summary destroys the rows and the refs, so the gate
|
|
47
|
+
* can never settle and the model cannot recover.
|
|
48
|
+
*
|
|
49
|
+
* This list is a FLOOR, not a default: every consumer must treat these tool
|
|
50
|
+
* names as always exempt regardless of operator-supplied `exempt_tools`
|
|
51
|
+
* config — an operator narrowing `exempt_tools` must never be able to strip
|
|
52
|
+
* this floor.
|
|
53
|
+
*/
|
|
54
|
+
export declare const SUMMARIZER_EXEMPT_TOOL_NAMES: readonly ["retrieve_summary", "retrieve_lane_output", "task", "read", "dispatch_lanes", "dispatch_lanes_async", "collect_lane_results", "parse_lane_candidates"];
|
|
33
55
|
export declare const DEFAULT_MODELS: Record<string, string>;
|
|
34
56
|
export declare const DEFAULT_AGENT_CONFIGS: Record<string, {
|
|
35
57
|
model: string;
|
|
@@ -354,6 +354,7 @@ export declare const _test_exports: {
|
|
|
354
354
|
resolveRemoteRefsContainingHeadAsync: typeof resolveRemoteRefsContainingHeadAsync;
|
|
355
355
|
parseCriticVerdict: typeof parseCriticVerdict;
|
|
356
356
|
isProcessAlive: typeof isProcessAlive;
|
|
357
|
+
isSafeStandaloneGitCommit: typeof isSafeStandaloneGitCommit;
|
|
357
358
|
rename: typeof fsp.rename;
|
|
358
359
|
nowMs: () => number;
|
|
359
360
|
};
|
|
@@ -366,6 +367,7 @@ export declare function normalizePrWorkflowShellCommand(command: string): {
|
|
|
366
367
|
normalized: string;
|
|
367
368
|
strippedCdPrefix: boolean;
|
|
368
369
|
};
|
|
370
|
+
declare function isSafeStandaloneGitCommit(command: string): boolean;
|
|
369
371
|
/** Require at least one real discovery row or a lane-bound CLEAN attestation. */
|
|
370
372
|
export declare function prReviewDiscoveryArtifactCoversLane(text: string, expectedWorkflowLane: string): boolean;
|
|
371
373
|
declare function parseCriticVerdict(text: string, itemId: string, reviewerSeverity?: string): {
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,19 @@ export declare function overrideIndexInternalsForTest(overrides: {
|
|
|
26
26
|
ensureSwarmGitExcluded?: typeof ensureSwarmGitExcluded;
|
|
27
27
|
}): () => void;
|
|
28
28
|
export declare function schedulePostResolutionTasksForTest(tasks: readonly PostResolutionTask[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* Compute the effective set of tools eligible for line-based truncation.
|
|
31
|
+
*
|
|
32
|
+
* SUMMARIZER_EXEMPT_TOOL_NAMES is applied as an unconditional floor
|
|
33
|
+
* subtraction against BOTH the default allowlist and any operator-configured
|
|
34
|
+
* `tool_output.truncation_tools` override (finding R6). Line-truncating a
|
|
35
|
+
* lane/retrieval tool's payload destroys the `output_ref` rows a caller needs
|
|
36
|
+
* to recover the full content — the same unrecoverable-payload defect class
|
|
37
|
+
* the summarizer/context-budget floor already guards against — so operator
|
|
38
|
+
* config must never be able to reintroduce it via this separate rewriting
|
|
39
|
+
* layer.
|
|
40
|
+
*/
|
|
41
|
+
export declare function computeEffectiveTruncatableTools(defaultTools: ReadonlySet<string>, configuredTools: readonly string[] | undefined): Set<string>;
|
|
29
42
|
declare const _default: {
|
|
30
43
|
id: "opencode-swarm";
|
|
31
44
|
server: Plugin;
|