opencode-swarm 7.138.0 → 7.138.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/dist/background/candidate-contract.d.ts +31 -0
- package/dist/background/pending-delegations.d.ts +7 -0
- package/dist/cli/{config-doctor-mb81xytp.js → config-doctor-hzb0bck9.js} +2 -2
- package/dist/cli/{curation-policy-qx23sc8b.js → curation-policy-aj37yvz8.js} +2 -2
- package/dist/cli/{curator-b9ascpbh.js → curator-jt6dza8y.js} +15 -15
- package/dist/cli/{curator-llm-factory-r47q1hbd.js → curator-llm-factory-m9f4h8t4.js} +15 -15
- package/dist/cli/{evidence-summary-service-1azhyeft.js → evidence-summary-service-6cttrkzw.js} +2 -2
- package/dist/cli/{guardrail-explain-ph1n3ryc.js → guardrail-explain-rks41rpx.js} +16 -16
- package/dist/cli/{guardrail-log-ghgqaw3w.js → guardrail-log-h39jxftx.js} +3 -3
- package/dist/cli/{hive-promoter-7x2zzhb7.js → hive-promoter-34y2x4vt.js} +15 -15
- package/dist/cli/{index-7wzyf4dr.js → index-49ygvqvm.js} +4 -4
- package/dist/cli/{index-sp7s1vk3.js → index-89dwrz8n.js} +712 -233
- package/dist/cli/{index-2vzgvscz.js → index-8emf08eb.js} +3 -3
- package/dist/cli/{index-9zf5gfca.js → index-bakfqtye.js} +1 -1
- package/dist/cli/{index-z55s5719.js → index-d01d4102.js} +2 -2
- package/dist/cli/{index-ca6qmxd8.js → index-da98750t.js} +1 -1
- package/dist/cli/{index-6nenabrm.js → index-exq36v6w.js} +1 -1
- package/dist/cli/{index-k5jrywpr.js → index-gprxjmm7.js} +6 -1
- package/dist/cli/{index-bf0j2wd2.js → index-gpxg7wx8.js} +2 -2
- package/dist/cli/{index-npgjk6vc.js → index-k6cq9wwh.js} +1 -1
- package/dist/cli/{index-0s4gr6qh.js → index-q344kj84.js} +2 -1
- package/dist/cli/{index-4xs9e82s.js → index-qg5smxv9.js} +3 -3
- package/dist/cli/{index-xz0zjrdr.js → index-qt3jjjw9.js} +1 -1
- package/dist/cli/{index-cdx3aqj5.js → index-r9pn41rj.js} +1 -1
- package/dist/cli/{index-ag7ppc40.js → index-s7ac0xrf.js} +17 -17
- package/dist/cli/{index-hmapndcz.js → index-xm07cqy2.js} +5 -5
- package/dist/cli/{index-fmh15wxb.js → index-y06a43sk.js} +1 -1
- package/dist/cli/{index-whf5ecbw.js → index-yxswbd1t.js} +1 -1
- package/dist/cli/{index-7kgfvt3h.js → index-ze4we97d.js} +1 -1
- package/dist/cli/index.js +15 -15
- package/dist/cli/{knowledge-escalator-pqskjp6y.js → knowledge-escalator-qmpfh5yz.js} +3 -3
- package/dist/cli/{knowledge-events-ahpxnqjd.js → knowledge-events-7neg8x0p.js} +1 -1
- package/dist/cli/{knowledge-store-27aynbeg.js → knowledge-store-a6d4625r.js} +1 -1
- package/dist/cli/{knowledge-validator-4saz53kh.js → knowledge-validator-q1qrdyvx.js} +4 -4
- package/dist/cli/{pending-delegations-ztb67amh.js → pending-delegations-7dbc0j2a.js} +1 -1
- package/dist/cli/{scan-cursor-ngykkd7f.js → scan-cursor-3tqshkb2.js} +2 -2
- package/dist/cli/{schema-p82ntfy9.js → schema-mtyaeh18.js} +1 -1
- package/dist/cli/{skill-generator-r19a1zje.js → skill-generator-t3m5qajm.js} +5 -5
- package/dist/cli/{worktree-collision-ownership-rc6pe17g.js → worktree-collision-ownership-hjrt5hx2.js} +1 -1
- package/dist/config/evidence-schema.d.ts +15 -0
- package/dist/hooks/pr-workflow-gate.d.ts +41 -1
- package/dist/index.js +41 -28
- package/dist/services/preflight-service.d.ts +2 -0
- package/dist/tools/dispatch-lanes.d.ts +7 -0
- package/dist/tools/pre-check-batch.d.ts +2 -0
- package/dist/tools/secretscan.d.ts +17 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadPluginConfigWithMeta,
|
|
8
8
|
loadPluginConfigWithMetaAsync,
|
|
9
9
|
resolveWorktreeIsolationConfig
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-k6cq9wwh.js";
|
|
11
11
|
import {
|
|
12
12
|
ApprovalEvidenceSchema,
|
|
13
13
|
BaseEvidenceSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
NoteEvidenceSchema,
|
|
23
23
|
ReviewEvidenceSchema,
|
|
24
24
|
TestEvidenceSchema
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-gprxjmm7.js";
|
|
26
26
|
import {
|
|
27
27
|
DeltaSpecSchema,
|
|
28
28
|
ObligationSchema,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
TurboConfigSchema,
|
|
55
55
|
WorktreeIsolationConfigSchema,
|
|
56
56
|
resolveAutoReviewConfig
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-exq36v6w.js";
|
|
58
58
|
import"./index-bk5tah7q.js";
|
|
59
59
|
import {
|
|
60
60
|
MigrationStatusSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ze4we97d.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-49ygvqvm.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
15
|
} from "./index-en4fb04r.js";
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.138.
|
|
24
|
+
version: "7.138.2",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -235,7 +235,12 @@ var SecretscanEvidenceSchema = BaseEvidenceSchema.extend({
|
|
|
235
235
|
findings_count: exports_external.number().int().min(0).default(0),
|
|
236
236
|
scan_directory: exports_external.string().optional(),
|
|
237
237
|
files_scanned: exports_external.number().int().min(0).default(0),
|
|
238
|
-
skipped_files: exports_external.number().int().min(0).default(0)
|
|
238
|
+
skipped_files: exports_external.number().int().min(0).default(0),
|
|
239
|
+
incomplete_files: exports_external.number().int().min(0),
|
|
240
|
+
incomplete_paths: exports_external.array(exports_external.object({
|
|
241
|
+
path: exports_external.string(),
|
|
242
|
+
reason: exports_external.string()
|
|
243
|
+
}))
|
|
239
244
|
});
|
|
240
245
|
var GateEvidenceBaseSchema = exports_external.object({
|
|
241
246
|
task_id: exports_external.string().optional(),
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-89dwrz8n.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-qt3jjjw9.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -52,7 +52,8 @@ var ResultSchema = exports_external.object({
|
|
|
52
52
|
outputDegraded: exports_external.boolean().optional(),
|
|
53
53
|
outputArtifactError: exports_external.string().optional(),
|
|
54
54
|
transcriptIncomplete: exports_external.boolean().optional(),
|
|
55
|
-
messageCount: exports_external.number().optional()
|
|
55
|
+
messageCount: exports_external.number().optional(),
|
|
56
|
+
salvagedWorkflowLanes: exports_external.array(exports_external.string()).optional()
|
|
56
57
|
}).strict();
|
|
57
58
|
var WorkspaceSchema = exports_external.object({
|
|
58
59
|
directory: exports_external.string(),
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-d01d4102.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-49ygvqvm.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-r9pn41rj.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -625,7 +625,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
625
625
|
deltas.push({ id, delta });
|
|
626
626
|
}
|
|
627
627
|
if (deltas.length > 0) {
|
|
628
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
628
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-a6d4625r.js");
|
|
629
629
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
630
630
|
}
|
|
631
631
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-gpxg7wx8.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-bakfqtye.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,39 +84,39 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-89dwrz8n.js";
|
|
88
88
|
import"./index-vm4xw9z3.js";
|
|
89
89
|
import"./index-rrxcfxrd.js";
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
92
|
-
import"./index-
|
|
90
|
+
import"./index-qt3jjjw9.js";
|
|
91
|
+
import"./index-da98750t.js";
|
|
92
|
+
import"./index-y06a43sk.js";
|
|
93
93
|
import"./index-ngqxzkqm.js";
|
|
94
94
|
import"./index-y8552snf.js";
|
|
95
95
|
import"./index-4905hd2m.js";
|
|
96
96
|
import"./index-134d35c1.js";
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
97
|
+
import"./index-qg5smxv9.js";
|
|
98
|
+
import"./index-xm07cqy2.js";
|
|
99
|
+
import"./index-yxswbd1t.js";
|
|
100
100
|
import"./index-6mjf4vr1.js";
|
|
101
101
|
import"./index-c8s9a3zh.js";
|
|
102
102
|
import"./index-9ss2m4rs.js";
|
|
103
103
|
import"./index-wsdnttf4.js";
|
|
104
104
|
import"./index-39k6y018.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-d01d4102.js";
|
|
106
|
+
import"./index-ze4we97d.js";
|
|
107
107
|
import"./index-rtry5xyf.js";
|
|
108
|
-
import"./index-
|
|
109
|
-
import"./index-
|
|
108
|
+
import"./index-49ygvqvm.js";
|
|
109
|
+
import"./index-r9pn41rj.js";
|
|
110
110
|
import"./index-ae75rja9.js";
|
|
111
111
|
import"./index-en4fb04r.js";
|
|
112
112
|
import"./index-tqshdzaw.js";
|
|
113
|
-
import"./index-
|
|
114
|
-
import"./index-
|
|
113
|
+
import"./index-k6cq9wwh.js";
|
|
114
|
+
import"./index-gprxjmm7.js";
|
|
115
115
|
import"./index-n832052r.js";
|
|
116
116
|
import {
|
|
117
117
|
init_schema,
|
|
118
118
|
stripKnownSwarmPrefix
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-exq36v6w.js";
|
|
120
120
|
import"./index-bk5tah7q.js";
|
|
121
121
|
import"./index-8fwhhayc.js";
|
|
122
122
|
import"./index-q1exe2b3.js";
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
ORCHESTRATOR_NAME,
|
|
134
134
|
init_constants
|
|
135
135
|
} from "./index-3jcyn8g6.js";
|
|
136
|
-
import"./index-
|
|
136
|
+
import"./index-q344kj84.js";
|
|
137
137
|
import"./index-4qzeef9h.js";
|
|
138
138
|
import"./index-fsrp8wp3.js";
|
|
139
139
|
import"./index-xybtaph7.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-49ygvqvm.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-r9pn41rj.js";
|
|
16
16
|
import {
|
|
17
17
|
init_knowledge_types,
|
|
18
18
|
isActiveStatus
|
|
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
190
190
|
alreadyInactive: true
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
193
|
+
const { quarantineEntry } = await import("./knowledge-validator-q1qrdyvx.js");
|
|
194
194
|
let policyConfig;
|
|
195
195
|
try {
|
|
196
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
197
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
196
|
+
const { KnowledgeConfigSchema } = await import("./schema-mtyaeh18.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-8emf08eb.js");
|
|
198
198
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
199
199
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
200
200
|
} catch {
|
package/dist/cli/index.js
CHANGED
|
@@ -6,39 +6,39 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-89dwrz8n.js";
|
|
10
10
|
import"./index-vm4xw9z3.js";
|
|
11
11
|
import"./index-rrxcfxrd.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
import"./index-qt3jjjw9.js";
|
|
13
|
+
import"./index-da98750t.js";
|
|
14
|
+
import"./index-y06a43sk.js";
|
|
15
15
|
import"./index-ngqxzkqm.js";
|
|
16
16
|
import"./index-y8552snf.js";
|
|
17
17
|
import"./index-4905hd2m.js";
|
|
18
18
|
import"./index-134d35c1.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-qg5smxv9.js";
|
|
20
|
+
import"./index-xm07cqy2.js";
|
|
21
|
+
import"./index-yxswbd1t.js";
|
|
22
22
|
import"./index-6mjf4vr1.js";
|
|
23
23
|
import"./index-c8s9a3zh.js";
|
|
24
24
|
import"./index-9ss2m4rs.js";
|
|
25
25
|
import"./index-wsdnttf4.js";
|
|
26
26
|
import"./index-39k6y018.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-d01d4102.js";
|
|
28
|
+
import"./index-ze4we97d.js";
|
|
29
29
|
import"./index-rtry5xyf.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-49ygvqvm.js";
|
|
31
|
+
import"./index-r9pn41rj.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-en4fb04r.js";
|
|
34
34
|
import"./index-tqshdzaw.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-k6cq9wwh.js";
|
|
36
|
+
import"./index-gprxjmm7.js";
|
|
37
37
|
import"./index-n832052r.js";
|
|
38
38
|
import {
|
|
39
39
|
init_package,
|
|
40
40
|
package_default
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-exq36v6w.js";
|
|
42
42
|
import"./index-bk5tah7q.js";
|
|
43
43
|
import"./index-8fwhhayc.js";
|
|
44
44
|
import"./index-q1exe2b3.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
DEFAULT_AGENT_CONFIGS,
|
|
55
55
|
init_constants
|
|
56
56
|
} from "./index-3jcyn8g6.js";
|
|
57
|
-
import"./index-
|
|
57
|
+
import"./index-q344kj84.js";
|
|
58
58
|
import"./index-4qzeef9h.js";
|
|
59
59
|
import"./index-fsrp8wp3.js";
|
|
60
60
|
import"./index-xybtaph7.js";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-xm07cqy2.js";
|
|
12
|
+
import"./index-49ygvqvm.js";
|
|
13
|
+
import"./index-r9pn41rj.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-en4fb04r.js";
|
|
16
16
|
import"./index-tqshdzaw.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveKnowledgeCounterBaselinePath,
|
|
29
29
|
resolveKnowledgeEventsPath,
|
|
30
30
|
resolveLegacyApplicationLogPath
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-r9pn41rj.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-en4fb04r.js";
|
|
34
34
|
import"./index-tqshdzaw.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-d01d4102.js";
|
|
27
|
+
import"./index-ze4we97d.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-49ygvqvm.js";
|
|
30
|
+
import"./index-r9pn41rj.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-en4fb04r.js";
|
|
33
33
|
import"./index-tqshdzaw.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-yxswbd1t.js";
|
|
8
|
+
import"./index-49ygvqvm.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-en4fb04r.js";
|
|
11
11
|
import"./index-tqshdzaw.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-qg5smxv9.js";
|
|
37
|
+
import"./index-d01d4102.js";
|
|
38
|
+
import"./index-ze4we97d.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-49ygvqvm.js";
|
|
41
|
+
import"./index-r9pn41rj.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-en4fb04r.js";
|
|
44
44
|
import"./index-tqshdzaw.js";
|
|
@@ -546,6 +546,11 @@ export declare const SecretscanEvidenceSchema: z.ZodObject<{
|
|
|
546
546
|
scan_directory: z.ZodOptional<z.ZodString>;
|
|
547
547
|
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
548
548
|
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
549
|
+
incomplete_files: z.ZodNumber;
|
|
550
|
+
incomplete_paths: z.ZodArray<z.ZodObject<{
|
|
551
|
+
path: z.ZodString;
|
|
552
|
+
reason: z.ZodString;
|
|
553
|
+
}, z.core.$strip>>;
|
|
549
554
|
}, z.core.$strip>;
|
|
550
555
|
export type SecretscanEvidence = z.infer<typeof SecretscanEvidenceSchema>;
|
|
551
556
|
export declare const MutationGateEvidenceSchema: z.ZodObject<{
|
|
@@ -1034,6 +1039,11 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1034
1039
|
scan_directory: z.ZodOptional<z.ZodString>;
|
|
1035
1040
|
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
1036
1041
|
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
1042
|
+
incomplete_files: z.ZodNumber;
|
|
1043
|
+
incomplete_paths: z.ZodArray<z.ZodObject<{
|
|
1044
|
+
path: z.ZodString;
|
|
1045
|
+
reason: z.ZodString;
|
|
1046
|
+
}, z.core.$strip>>;
|
|
1037
1047
|
}, z.core.$strip>, z.ZodObject<{
|
|
1038
1048
|
task_id: z.ZodOptional<z.ZodString>;
|
|
1039
1049
|
agent: z.ZodOptional<z.ZodString>;
|
|
@@ -1519,6 +1529,11 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1519
1529
|
scan_directory: z.ZodOptional<z.ZodString>;
|
|
1520
1530
|
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
1521
1531
|
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
1532
|
+
incomplete_files: z.ZodNumber;
|
|
1533
|
+
incomplete_paths: z.ZodArray<z.ZodObject<{
|
|
1534
|
+
path: z.ZodString;
|
|
1535
|
+
reason: z.ZodString;
|
|
1536
|
+
}, z.core.$strip>>;
|
|
1522
1537
|
}, z.core.$strip>, z.ZodObject<{
|
|
1523
1538
|
task_id: z.ZodOptional<z.ZodString>;
|
|
1524
1539
|
agent: z.ZodOptional<z.ZodString>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as fsp from 'node:fs/promises';
|
|
2
|
+
import { type RowFormatFamily } from '../background/candidate-contract.js';
|
|
2
3
|
import { type LaneOutputArtifact } from '../background/lane-output-store.js';
|
|
3
4
|
import { type BackgroundDelegationRecord, type BackgroundDelegationResult, findByBatchId } from '../background/pending-delegations.js';
|
|
4
5
|
import { type PrReviewInlineTriggerRow } from '../background/pr-review-trigger-contract.js';
|
|
@@ -16,6 +17,13 @@ export interface PrReviewLaneValidationFailure {
|
|
|
16
17
|
}
|
|
17
18
|
export type PrReviewLaneValidationResult = {
|
|
18
19
|
ok: true;
|
|
20
|
+
/**
|
|
21
|
+
* Workflow lanes accepted only after repair — a synthesized canonical
|
|
22
|
+
* header, or valid rows retained beside malformed ones. Structural rather
|
|
23
|
+
* than log-only, so a repaired artifact is programmatically
|
|
24
|
+
* distinguishable from a well-formed one.
|
|
25
|
+
*/
|
|
26
|
+
salvaged?: readonly string[];
|
|
19
27
|
} | {
|
|
20
28
|
ok: false;
|
|
21
29
|
failure: PrReviewLaneValidationFailure;
|
|
@@ -491,6 +499,9 @@ export declare const _test_exports: {
|
|
|
491
499
|
minimumConsolidatedLaneCover: typeof minimumConsolidatedLaneCover;
|
|
492
500
|
analyzePrReviewBatchRecordIntegrity: typeof analyzePrReviewBatchRecordIntegrity;
|
|
493
501
|
MAX_COVER_UNIVERSE_BITS: number;
|
|
502
|
+
extractCandidateIds: typeof extractCandidateIds;
|
|
503
|
+
parseCanonicalCandidateRows: typeof parseCanonicalCandidateRows;
|
|
504
|
+
resolvePrReviewRowFamily: typeof resolvePrReviewRowFamily;
|
|
494
505
|
workflowGateStateRelativePath: typeof workflowGateStateRelativePath;
|
|
495
506
|
workflowGateStateLockRelativePath: typeof workflowGateStateLockRelativePath;
|
|
496
507
|
workflowCheckoutMutationLockRelativePath: typeof workflowCheckoutMutationLockRelativePath;
|
|
@@ -659,6 +670,35 @@ interface PrReviewGateContext {
|
|
|
659
670
|
critic?: PrReviewPhaseComposition;
|
|
660
671
|
candidateInventory?: string[];
|
|
661
672
|
}
|
|
673
|
+
/**
|
|
674
|
+
* Extract candidate ids from a discovery artifact's [CANDIDATE] rows. When
|
|
675
|
+
* `scopeToLanes` is given (base-dimension sources credited for only a subset
|
|
676
|
+
* of their owned dimensions), rows whose `lane` field is outside that set are
|
|
677
|
+
* skipped — the artifact may legitimately discuss a dimension this source is
|
|
678
|
+
* no longer the authoritative source for (a more recent batch superseded it),
|
|
679
|
+
* and that stale content must not re-enter the candidate pool.
|
|
680
|
+
*/
|
|
681
|
+
interface CanonicalCandidateArtifactRow {
|
|
682
|
+
candidateId: string;
|
|
683
|
+
workflowLane: string;
|
|
684
|
+
evidence: string;
|
|
685
|
+
lineNumber: number;
|
|
686
|
+
}
|
|
687
|
+
interface CandidateArtifactParseResult {
|
|
688
|
+
rows: CanonicalCandidateArtifactRow[];
|
|
689
|
+
issues: string[];
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Single source of truth for a PR-review lane's row family.
|
|
693
|
+
*
|
|
694
|
+
* Coverage validation and id extraction previously derived this separately (one
|
|
695
|
+
* from the dispatch mode, one from lane membership). Because the artifact
|
|
696
|
+
* normalizer's output depends on the family, any disagreement would reintroduce
|
|
697
|
+
* the very coverage/inventory split this normalization exists to remove.
|
|
698
|
+
*/
|
|
699
|
+
declare function resolvePrReviewRowFamily(workflowLane: string | undefined, mode?: string): RowFormatFamily;
|
|
700
|
+
declare function parseCanonicalCandidateRows(text: string, fallbackFamily: RowFormatFamily): CandidateArtifactParseResult;
|
|
701
|
+
declare function extractCandidateIds(text: string, fallbackFamily: RowFormatFamily, scopeToLanes?: readonly string[]): string[];
|
|
662
702
|
type PrReviewComposablePhase = 'reviewer' | 'critic';
|
|
663
703
|
/** One item's admitted verdict plus the lane provenance that admitted it. */
|
|
664
704
|
interface PrReviewItemClaim {
|
|
@@ -748,7 +788,7 @@ declare function analyzePrReviewBatchRecordIntegrity(args: {
|
|
|
748
788
|
*/
|
|
749
789
|
export declare function validatePrReviewDiscoveryLaneCompletion(input: PrReviewDiscoveryLaneValidationInput): PrReviewLaneValidationResult;
|
|
750
790
|
/** Require at least one semantically valid discovery row or CLEAN attestation. */
|
|
751
|
-
export declare function prReviewDiscoveryArtifactCoversLane(text: string, expectedWorkflowLane: string, ownedWorkflowLanes?: readonly string[]): boolean;
|
|
791
|
+
export declare function prReviewDiscoveryArtifactCoversLane(text: string, expectedWorkflowLane: string, ownedWorkflowLanes?: readonly string[], mode?: string): boolean;
|
|
752
792
|
declare function parseCriticVerdict(text: string, itemId: string, reviewerSeverity?: string): {
|
|
753
793
|
status: string;
|
|
754
794
|
severity: string;
|