opencode-swarm 7.111.0 → 7.112.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 +24 -0
- package/dist/background/pr-event-subscribers.d.ts +28 -0
- package/dist/background/pr-monitor-worker.d.ts +8 -1
- package/dist/background/pr-subscriptions.d.ts +6 -0
- package/dist/cli/{config-doctor-q5e9yzn6.js → config-doctor-mmw4c50z.js} +2 -2
- package/dist/cli/{core-9a7nn51x.js → core-f4cbabe7.js} +2 -2
- package/dist/cli/{curator-drift-169wgaxn.js → curator-drift-jvs1v6em.js} +2 -2
- package/dist/cli/curator-llm-factory-vxa4pz48.js +40 -0
- package/dist/cli/{curator-2hm297yd.js → curator-ztdgdpb6.js} +19 -19
- package/dist/cli/{dispatch-zr1xja4t.js → dispatch-wst7bypk.js} +2 -2
- package/dist/cli/{evidence-summary-service-8tasw2tt.js → evidence-summary-service-j6fnsfeq.js} +5 -5
- package/dist/cli/{gate-evidence-v6ds8rcp.js → gate-evidence-mk0ss1re.js} +3 -3
- package/dist/cli/guardrail-explain-gv1ht6b0.js +41 -0
- package/dist/cli/{guardrail-log-973nan7m.js → guardrail-log-xjgr00eq.js} +4 -4
- package/dist/cli/{hive-promoter-0f8xh2rn.js → hive-promoter-wdextf8h.js} +19 -19
- package/dist/cli/{index-1cn967sa.js → index-0dab9w37.js} +1 -1
- package/dist/cli/{index-r3j3458j.js → index-1rga1vvb.js} +1 -1
- package/dist/cli/{index-7xfh4k71.js → index-20hyxe3z.js} +403 -291
- package/dist/cli/{index-c483hnn4.js → index-30ejh1tx.js} +3 -3
- package/dist/cli/{index-v8pk35h7.js → index-32bx4kch.js} +70 -5
- package/dist/cli/{index-cmjq1kg7.js → index-82v0d72f.js} +3 -3
- package/dist/cli/{index-yw8qpf51.js → index-9fxs0rm1.js} +1 -1
- package/dist/cli/{index-9ptp9kky.js → index-azf2bmr5.js} +2 -2
- package/dist/cli/{index-0g5xsrp4.js → index-cq2hgvd2.js} +13 -5
- package/dist/cli/{index-j2v3w1ds.js → index-d0w40jm3.js} +4 -4
- package/dist/cli/{index-40h0yp9e.js → index-db1fh1fv.js} +1 -1
- package/dist/cli/{index-dnbca696.js → index-fhmw7evd.js} +2 -2
- package/dist/cli/{index-vzzt3ygr.js → index-g55nzpwn.js} +1 -1
- package/dist/cli/{index-yhmt3dw3.js → index-hpp2r0sd.js} +3 -3
- package/dist/cli/{index-kf2h31c7.js → index-hy5r0mgf.js} +21 -21
- package/dist/cli/{index-53z1afgh.js → index-npxmfj48.js} +1 -1
- package/dist/cli/{index-6jng9c8t.js → index-pm992z24.js} +1 -1
- package/dist/cli/{index-85bacexr.js → index-q1jaeynn.js} +4 -1
- package/dist/cli/{index-mvg66d9n.js → index-t6wfwdm1.js} +3 -3
- package/dist/cli/{index-5rfxzgmt.js → index-w84stmkx.js} +1 -1
- package/dist/cli/{index-xddysq89.js → index-xehrmy76.js} +1 -1
- package/dist/cli/index.js +19 -19
- package/dist/cli/{knowledge-escalator-0dkkenp2.js → knowledge-escalator-4gbz527n.js} +6 -6
- package/dist/cli/{knowledge-events-bckbj6ah.js → knowledge-events-b6x28fgc.js} +4 -4
- package/dist/cli/{knowledge-store-dvjbdn00.js → knowledge-store-h3cjx4dg.js} +9 -5
- package/dist/cli/{knowledge-validator-bqr936sg.js → knowledge-validator-q6jw2p0t.js} +5 -5
- package/dist/cli/{pending-delegations-yyz3fcfn.js → pending-delegations-gc3a2hfx.js} +2 -2
- package/dist/cli/{pr-subscriptions-vv8byxe6.js → pr-subscriptions-p8g2rzxd.js} +3 -3
- package/dist/cli/{schema-s48je8zt.js → schema-2p15yrvn.js} +1 -1
- package/dist/cli/{scope-persistence-tgp00wtd.js → scope-persistence-5ccgtebg.js} +2 -2
- package/dist/cli/{skill-generator-5rsjmmfq.js → skill-generator-fe6q8xgm.js} +7 -7
- package/dist/commands/ci-simulate.d.ts +36 -12
- package/dist/commands/pr-monitor-status.d.ts +8 -0
- package/dist/config/bundled-skills.d.ts +1 -1
- package/dist/config/schema.d.ts +5 -0
- package/dist/full-auto/oversight.d.ts +4 -1
- package/dist/full-auto/state.d.ts +12 -0
- package/dist/git/pr.d.ts +23 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +110 -0
- package/dist/hooks/delegation-gate.d.ts +17 -2
- package/dist/hooks/full-auto-intercept.d.ts +1 -1
- package/dist/hooks/knowledge-events.d.ts +21 -1
- package/dist/hooks/knowledge-injector.d.ts +4 -0
- package/dist/hooks/knowledge-reader.d.ts +16 -0
- package/dist/hooks/knowledge-store.d.ts +23 -0
- package/dist/index.js +217 -192
- package/dist/tools/placeholder-scan.d.ts +14 -1
- package/dist/utils/bun-compat.d.ts +6 -0
- package/dist/worktree/merge.d.ts +12 -0
- package/package.json +7 -5
- package/dist/cli/curator-llm-factory-19s0r5v6.js +0 -40
- package/dist/cli/guardrail-explain-8w9rkdjx.js +0 -41
- /package/dist/cli/{index-7xgqky26.js → index-h91bv3hy.js} +0 -0
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
resolveSwarmRejectedPath,
|
|
8
8
|
transactKnowledge
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-32bx4kch.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveKnowledgeStoreDir
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-db1fh1fv.js";
|
|
13
13
|
import {
|
|
14
14
|
init_logger,
|
|
15
15
|
warn
|
|
16
16
|
} from "./index-zgwm4ryv.js";
|
|
17
17
|
import {
|
|
18
18
|
atomicWriteFile
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-0dab9w37.js";
|
|
20
20
|
import {
|
|
21
21
|
require_proper_lockfile
|
|
22
22
|
} from "./index-vvk2g744.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./index-bfwt3abw.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveKnowledgeStoreDir
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-db1fh1fv.js";
|
|
8
8
|
import {
|
|
9
9
|
readCachedParsedFile
|
|
10
10
|
} from "./index-jtqkh8jf.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteFile
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-0dab9w37.js";
|
|
14
14
|
import {
|
|
15
15
|
require_proper_lockfile
|
|
16
16
|
} from "./index-vvk2g744.js";
|
|
@@ -25,6 +25,42 @@ import { existsSync } from "fs";
|
|
|
25
25
|
import { appendFile, mkdir, readFile } from "fs/promises";
|
|
26
26
|
import * as os from "os";
|
|
27
27
|
import * as path from "path";
|
|
28
|
+
|
|
29
|
+
// src/hooks/knowledge-reinforcement.ts
|
|
30
|
+
function isActiveSwarmKnowledgeEntry(entry) {
|
|
31
|
+
return isActiveStatus(entry.status);
|
|
32
|
+
}
|
|
33
|
+
function findActiveSwarmNearDuplicate(lesson, entries, threshold) {
|
|
34
|
+
return findNearDuplicate(lesson, entries.filter(isActiveSwarmKnowledgeEntry), threshold);
|
|
35
|
+
}
|
|
36
|
+
function distinctPhaseCount(records) {
|
|
37
|
+
const phases = new Set;
|
|
38
|
+
for (const record of records ?? []) {
|
|
39
|
+
if (Number.isInteger(record.phase_number)) {
|
|
40
|
+
phases.add(record.phase_number);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return phases.size;
|
|
44
|
+
}
|
|
45
|
+
function reinforceSwarmKnowledgeEntry(entry, confirmation) {
|
|
46
|
+
if (!isActiveSwarmKnowledgeEntry(entry)) {
|
|
47
|
+
return { entryId: entry.id, reinforced: false, reason: "inactive" };
|
|
48
|
+
}
|
|
49
|
+
if ((entry.confirmed_by ?? []).some((record) => record.phase_number === confirmation.phase_number)) {
|
|
50
|
+
return {
|
|
51
|
+
entryId: entry.id,
|
|
52
|
+
reinforced: false,
|
|
53
|
+
reason: "already_confirmed_phase"
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
entry.confirmed_by = [...entry.confirmed_by ?? [], confirmation];
|
|
57
|
+
entry.updated_at = confirmation.confirmed_at;
|
|
58
|
+
entry.phases_alive = 0;
|
|
59
|
+
entry.confidence = computeConfidence(distinctPhaseCount(entry.confirmed_by), entry.auto_generated ?? false);
|
|
60
|
+
return { entryId: entry.id, reinforced: true, reason: "reinforced" };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// src/hooks/knowledge-store.ts
|
|
28
64
|
var KNOWLEDGE_JSONL_CACHE_NAMESPACE = "knowledge-jsonl:normalized:v1";
|
|
29
65
|
function getPlatformConfigDir() {
|
|
30
66
|
const platform = process.platform;
|
|
@@ -445,6 +481,35 @@ function computeConfidence(confirmedByCount, autoGenerated) {
|
|
|
445
481
|
score += 0.1;
|
|
446
482
|
return Math.min(score, 1);
|
|
447
483
|
}
|
|
484
|
+
var MAX_CONFIRMED_BY = 50;
|
|
485
|
+
async function confirmEntriesPhase(directory, ids, phaseNumber, projectName) {
|
|
486
|
+
if (ids.length === 0)
|
|
487
|
+
return;
|
|
488
|
+
const knowledgePath = resolveSwarmKnowledgePath(directory);
|
|
489
|
+
await transactKnowledge(knowledgePath, (current) => {
|
|
490
|
+
const idSet = new Set(ids);
|
|
491
|
+
let changed = false;
|
|
492
|
+
const now = new Date().toISOString();
|
|
493
|
+
for (const entry of current) {
|
|
494
|
+
if (!idSet.has(entry.id))
|
|
495
|
+
continue;
|
|
496
|
+
const result = reinforceSwarmKnowledgeEntry(entry, {
|
|
497
|
+
phase_number: phaseNumber,
|
|
498
|
+
confirmed_at: now,
|
|
499
|
+
project_name: projectName
|
|
500
|
+
});
|
|
501
|
+
if (result.reinforced) {
|
|
502
|
+
const records = entry.confirmed_by ?? [];
|
|
503
|
+
if (records.length > MAX_CONFIRMED_BY) {
|
|
504
|
+
entry.confirmed_by = [...records].sort((a, b) => a.confirmed_at.localeCompare(b.confirmed_at)).slice(-MAX_CONFIRMED_BY);
|
|
505
|
+
entry.confidence = computeConfidence(new Set(entry.confirmed_by.map((r) => r.phase_number).filter((n) => Number.isInteger(n))).size, entry.auto_generated ?? false);
|
|
506
|
+
}
|
|
507
|
+
changed = true;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
return changed ? current : null;
|
|
511
|
+
}).catch(() => {});
|
|
512
|
+
}
|
|
448
513
|
var OUTCOME_SIGNAL_SMOOTHING = 4;
|
|
449
514
|
function computeOutcomeSignal(outcomes) {
|
|
450
515
|
if (!outcomes)
|
|
@@ -525,7 +590,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
525
590
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
526
591
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
527
592
|
return;
|
|
528
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
593
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-b6x28fgc.js");
|
|
529
594
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
530
595
|
const flagIds = new Set;
|
|
531
596
|
for (const e of atFloor) {
|
|
@@ -592,7 +657,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
592
657
|
});
|
|
593
658
|
}
|
|
594
659
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
595
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
660
|
+
const { quarantineEntry } = await import("./knowledge-validator-q6jw2p0t.js");
|
|
596
661
|
for (const { id } of toQuarantine) {
|
|
597
662
|
await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto").catch((err) => {
|
|
598
663
|
console.warn("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
|
|
@@ -675,4 +740,4 @@ var _internals = {
|
|
|
675
740
|
getArchivedKnowledgeIds
|
|
676
741
|
};
|
|
677
742
|
|
|
678
|
-
export { getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveHiveKnowledgePath, resolveHiveRejectedPath, resolveHiveEventsPath, readKnowledge, normalizeEntry, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendKnowledge, rewriteKnowledge, transactFile, transactKnowledge, getArchivedKnowledgeIds, appendKnowledgeWithCapEnforcement, enforceKnowledgeCap, sweepAgedEntries, sweepStaleTodos, appendRejectedLesson, normalize, wordBigrams, jaccardBigram, findNearDuplicate, computeConfidence, OUTCOME_SIGNAL_SMOOTHING, computeOutcomeSignal, inferTags, bumpKnowledgeConfidenceBatch, _internals };
|
|
743
|
+
export { findActiveSwarmNearDuplicate, reinforceSwarmKnowledgeEntry, getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveHiveKnowledgePath, resolveHiveRejectedPath, resolveHiveEventsPath, readKnowledge, normalizeEntry, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendKnowledge, rewriteKnowledge, transactFile, transactKnowledge, getArchivedKnowledgeIds, appendKnowledgeWithCapEnforcement, enforceKnowledgeCap, sweepAgedEntries, sweepStaleTodos, appendRejectedLesson, normalize, wordBigrams, jaccardBigram, findNearDuplicate, computeConfidence, MAX_CONFIRMED_BY, confirmEntriesPhase, OUTCOME_SIGNAL_SMOOTHING, computeOutcomeSignal, inferTags, bumpKnowledgeConfidenceBatch, _internals };
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-30ejh1tx.js";
|
|
6
6
|
import {
|
|
7
7
|
effectiveRetrievalOutcomes,
|
|
8
8
|
readKnowledgeCounterRollups
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-hpp2r0sd.js";
|
|
10
10
|
import {
|
|
11
11
|
computeOutcomeSignal,
|
|
12
12
|
readKnowledge,
|
|
13
13
|
resolveHiveKnowledgePath,
|
|
14
14
|
resolveSwarmKnowledgePath,
|
|
15
15
|
transactKnowledge
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-32bx4kch.js";
|
|
17
17
|
import {
|
|
18
18
|
isActiveStatus
|
|
19
19
|
} from "./index-bfwt3abw.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-20hyxe3z.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-npxmfj48.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -1128,7 +1128,8 @@ var PlaceholderScanConfigSchema = GateFeatureSchema.extend({
|
|
|
1128
1128
|
"**/mocks/**",
|
|
1129
1129
|
"**/__tests__/**"
|
|
1130
1130
|
]),
|
|
1131
|
-
max_allowed_findings: exports_external.number().min(0).default(0)
|
|
1131
|
+
max_allowed_findings: exports_external.number().min(0).default(0),
|
|
1132
|
+
sentinel_allowlist: exports_external.array(exports_external.string()).default([])
|
|
1132
1133
|
});
|
|
1133
1134
|
var QualityBudgetConfigSchema = GateFeatureSchema.extend({
|
|
1134
1135
|
max_complexity_delta: exports_external.number().default(5),
|
|
@@ -1182,7 +1183,8 @@ var GateConfigSchema = exports_external.object({
|
|
|
1182
1183
|
"**/mocks/**",
|
|
1183
1184
|
"**/__tests__/**"
|
|
1184
1185
|
],
|
|
1185
|
-
max_allowed_findings: 0
|
|
1186
|
+
max_allowed_findings: 0,
|
|
1187
|
+
sentinel_allowlist: []
|
|
1186
1188
|
}),
|
|
1187
1189
|
sast_scan: GateFeatureSchema.default({ enabled: true }),
|
|
1188
1190
|
sbom_generate: GateFeatureSchema.default({ enabled: true }),
|
|
@@ -2326,7 +2328,9 @@ var PluginConfigSchema = exports_external.object({
|
|
|
2326
2328
|
on_subagent_return_warning: exports_external.boolean().default(true),
|
|
2327
2329
|
every_tool_calls: exports_external.number().int().min(0).max(1e4).default(25),
|
|
2328
2330
|
every_architect_turns: exports_external.number().int().min(0).max(1000).default(5),
|
|
2329
|
-
every_minutes: exports_external.number().int().min(0).max(1440).default(20)
|
|
2331
|
+
every_minutes: exports_external.number().int().min(0).max(1440).default(20),
|
|
2332
|
+
max_dispatch_retries: exports_external.number().int().min(0).max(10).default(2),
|
|
2333
|
+
max_consecutive_dispatch_failures: exports_external.number().int().min(0).max(50).default(3)
|
|
2330
2334
|
}).default(() => ({
|
|
2331
2335
|
on_plan_change: true,
|
|
2332
2336
|
on_task_completion: false,
|
|
@@ -2335,7 +2339,9 @@ var PluginConfigSchema = exports_external.object({
|
|
|
2335
2339
|
on_subagent_return_warning: true,
|
|
2336
2340
|
every_tool_calls: 25,
|
|
2337
2341
|
every_architect_turns: 5,
|
|
2338
|
-
every_minutes: 20
|
|
2342
|
+
every_minutes: 20,
|
|
2343
|
+
max_dispatch_retries: 2,
|
|
2344
|
+
max_consecutive_dispatch_failures: 3
|
|
2339
2345
|
}))
|
|
2340
2346
|
}).optional().default(() => ({
|
|
2341
2347
|
enabled: false,
|
|
@@ -2387,7 +2393,9 @@ var PluginConfigSchema = exports_external.object({
|
|
|
2387
2393
|
on_subagent_return_warning: true,
|
|
2388
2394
|
every_tool_calls: 25,
|
|
2389
2395
|
every_architect_turns: 5,
|
|
2390
|
-
every_minutes: 20
|
|
2396
|
+
every_minutes: 20,
|
|
2397
|
+
max_dispatch_retries: 2,
|
|
2398
|
+
max_consecutive_dispatch_failures: 3
|
|
2391
2399
|
}
|
|
2392
2400
|
})),
|
|
2393
2401
|
pr_monitor: PrMonitorConfigSchema.optional(),
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
readSwarmFileAsync,
|
|
14
14
|
validateSwarmPath
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-1rga1vvb.js";
|
|
16
16
|
import {
|
|
17
17
|
readCachedParsedFile
|
|
18
18
|
} from "./index-jtqkh8jf.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
readTaskEvidence,
|
|
28
28
|
readTaskEvidenceRaw,
|
|
29
29
|
sanitizeTaskId
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-pm992z24.js";
|
|
31
31
|
import {
|
|
32
32
|
ZodError,
|
|
33
33
|
exports_external
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
bunHash,
|
|
43
43
|
bunWrite,
|
|
44
44
|
mergeEnvForChild
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-h91bv3hy.js";
|
|
46
46
|
import {
|
|
47
47
|
__esm,
|
|
48
48
|
__export,
|
|
@@ -4555,4 +4555,4 @@ function mergeDurableGateEntriesFromEvidence(taskId, entries, evidence) {
|
|
|
4555
4555
|
return merged;
|
|
4556
4556
|
}
|
|
4557
4557
|
|
|
4558
|
-
export { PlanSchema, getExecutor, init_executor, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, getGitRepositoryStatus, isGitRepo, resetToRemoteBranch, resetToMainAfterMerge, initDurableStatusPath, getAllWorktreeMergeFailures, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, normalizePath, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, computeSpecHash, derivePlanId, computePlanHash, initLedger, appendLedgerEvent, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, derivePlanMarkdown, RetrospectiveEvidenceSchema, isValidEvidenceType, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
|
|
4558
|
+
export { PlanSchema, getExecutor, init_executor, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, resetToRemoteBranch, resetToMainAfterMerge, initDurableStatusPath, getAllWorktreeMergeFailures, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, normalizePath, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, computeSpecHash, derivePlanId, computePlanHash, initLedger, appendLedgerEvent, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, derivePlanMarkdown, RetrospectiveEvidenceSchema, isValidEvidenceType, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-zgwm4ryv.js";
|
|
5
5
|
import {
|
|
6
6
|
bunSpawn
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-h91bv3hy.js";
|
|
8
8
|
import {
|
|
9
9
|
__require
|
|
10
10
|
} from "./index-a76rekgs.js";
|
|
@@ -34,7 +34,7 @@ var _internals = {
|
|
|
34
34
|
symlinkSync: fs.symlinkSync
|
|
35
35
|
},
|
|
36
36
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
37
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
37
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-5ccgtebg.js");
|
|
38
38
|
return realWrite(directory, taskId, files);
|
|
39
39
|
},
|
|
40
40
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveKnowledgeStoreDir
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-db1fh1fv.js";
|
|
5
5
|
import {
|
|
6
6
|
init_logger,
|
|
7
7
|
warn
|
|
8
8
|
} from "./index-zgwm4ryv.js";
|
|
9
9
|
import {
|
|
10
10
|
atomicWriteFile
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-0dab9w37.js";
|
|
12
12
|
import {
|
|
13
13
|
require_proper_lockfile
|
|
14
14
|
} from "./index-vvk2g744.js";
|
|
@@ -594,7 +594,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
594
594
|
deltas.push({ id, delta });
|
|
595
595
|
}
|
|
596
596
|
if (deltas.length > 0) {
|
|
597
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
597
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-h3cjx4dg.js");
|
|
598
598
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
599
599
|
}
|
|
600
600
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-azf2bmr5.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-w84stmkx.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -81,43 +81,43 @@ import {
|
|
|
81
81
|
handleWriteRetroCommand,
|
|
82
82
|
normalizeSwarmCommandInput,
|
|
83
83
|
resolveCommand
|
|
84
|
-
} from "./index-
|
|
85
|
-
import"./index-
|
|
84
|
+
} from "./index-20hyxe3z.js";
|
|
85
|
+
import"./index-npxmfj48.js";
|
|
86
86
|
import"./index-c8s9a3zh.js";
|
|
87
|
-
import"./index-
|
|
87
|
+
import"./index-xehrmy76.js";
|
|
88
88
|
import {
|
|
89
89
|
AGENT_TOOL_MAP,
|
|
90
90
|
ORCHESTRATOR_NAME,
|
|
91
91
|
stripKnownSwarmPrefix
|
|
92
|
-
} from "./index-
|
|
93
|
-
import"./index-
|
|
92
|
+
} from "./index-cq2hgvd2.js";
|
|
93
|
+
import"./index-d0w40jm3.js";
|
|
94
94
|
import"./index-scww5b77.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
95
|
+
import"./index-9fxs0rm1.js";
|
|
96
|
+
import"./index-q1jaeynn.js";
|
|
97
|
+
import"./index-82v0d72f.js";
|
|
98
|
+
import"./index-30ejh1tx.js";
|
|
99
|
+
import"./index-t6wfwdm1.js";
|
|
100
|
+
import"./index-hpp2r0sd.js";
|
|
101
|
+
import"./index-32bx4kch.js";
|
|
102
102
|
import"./index-bfwt3abw.js";
|
|
103
|
-
import"./index-
|
|
103
|
+
import"./index-db1fh1fv.js";
|
|
104
104
|
import"./index-jt58s751.js";
|
|
105
105
|
import"./index-wvrj16f0.js";
|
|
106
106
|
import"./index-q1exe2b3.js";
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
109
|
-
import"./index-
|
|
107
|
+
import"./index-g55nzpwn.js";
|
|
108
|
+
import"./index-fhmw7evd.js";
|
|
109
|
+
import"./index-1rga1vvb.js";
|
|
110
110
|
import"./index-jtqkh8jf.js";
|
|
111
111
|
import"./index-5e4e2hvv.js";
|
|
112
112
|
import"./index-p0arc26j.js";
|
|
113
113
|
import"./index-zgwm4ryv.js";
|
|
114
|
-
import"./index-
|
|
115
|
-
import"./index-
|
|
114
|
+
import"./index-pm992z24.js";
|
|
115
|
+
import"./index-0dab9w37.js";
|
|
116
116
|
import"./index-293f68mj.js";
|
|
117
117
|
import"./index-5mkc2f9z.js";
|
|
118
118
|
import"./index-vn263hqt.js";
|
|
119
119
|
import"./index-vvk2g744.js";
|
|
120
|
-
import"./index-
|
|
120
|
+
import"./index-h91bv3hy.js";
|
|
121
121
|
import"./index-a76rekgs.js";
|
|
122
122
|
// src/commands/command-names.ts
|
|
123
123
|
var COMMAND_NAMES = Object.freeze(Object.keys(COMMAND_REGISTRY));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1rga1vvb.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
7
|
} from "./index-zgwm4ryv.js";
|
|
@@ -33,6 +33,9 @@ var RecordSchema = exports_external.object({
|
|
|
33
33
|
lastCommentId: exports_external.string().optional(),
|
|
34
34
|
lastCheckRunSet: exports_external.string().optional(),
|
|
35
35
|
mergeableState: exports_external.string().optional(),
|
|
36
|
+
mergeGroupRunStatus: exports_external.string().optional(),
|
|
37
|
+
mergeGroupRunConclusion: exports_external.string().optional(),
|
|
38
|
+
mergeGroupRunHtmlUrl: exports_external.string().optional(),
|
|
36
39
|
isWatching: exports_external.boolean(),
|
|
37
40
|
hasUnaddressedEvents: exports_external.boolean(),
|
|
38
41
|
status: exports_external.enum(["active", "removed", "expired"]),
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
countEntryViolationsInWindow,
|
|
5
5
|
readKnowledgeEvents,
|
|
6
6
|
recordKnowledgeEvent
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-hpp2r0sd.js";
|
|
8
8
|
import {
|
|
9
9
|
jaccardBigram,
|
|
10
10
|
readKnowledge,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveSwarmKnowledgePath,
|
|
13
13
|
transactKnowledge,
|
|
14
14
|
wordBigrams
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-32bx4kch.js";
|
|
16
16
|
import {
|
|
17
17
|
isActiveStatus
|
|
18
18
|
} from "./index-bfwt3abw.js";
|
|
@@ -188,7 +188,7 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
188
188
|
alreadyInactive: true
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
191
|
+
const { quarantineEntry } = await import("./knowledge-validator-q6jw2p0t.js");
|
|
192
192
|
await quarantineEntry(directory, entryId, `repeat_contradiction: ${count} contradicted events in ${windowDays}d`, "auto");
|
|
193
193
|
return { quarantined: true, entryId, contradictionsInWindow: count };
|
|
194
194
|
} catch {
|
package/dist/cli/index.js
CHANGED
|
@@ -7,41 +7,41 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-20hyxe3z.js";
|
|
11
|
+
import"./index-npxmfj48.js";
|
|
12
12
|
import"./index-c8s9a3zh.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-xehrmy76.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_AGENT_CONFIGS
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-cq2hgvd2.js";
|
|
17
|
+
import"./index-d0w40jm3.js";
|
|
18
18
|
import"./index-scww5b77.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
19
|
+
import"./index-9fxs0rm1.js";
|
|
20
|
+
import"./index-q1jaeynn.js";
|
|
21
|
+
import"./index-82v0d72f.js";
|
|
22
|
+
import"./index-30ejh1tx.js";
|
|
23
|
+
import"./index-t6wfwdm1.js";
|
|
24
|
+
import"./index-hpp2r0sd.js";
|
|
25
|
+
import"./index-32bx4kch.js";
|
|
26
26
|
import"./index-bfwt3abw.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-db1fh1fv.js";
|
|
28
28
|
import"./index-jt58s751.js";
|
|
29
29
|
import"./index-wvrj16f0.js";
|
|
30
30
|
import"./index-q1exe2b3.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
31
|
+
import"./index-g55nzpwn.js";
|
|
32
|
+
import"./index-fhmw7evd.js";
|
|
33
|
+
import"./index-1rga1vvb.js";
|
|
34
34
|
import"./index-jtqkh8jf.js";
|
|
35
35
|
import"./index-5e4e2hvv.js";
|
|
36
36
|
import"./index-p0arc26j.js";
|
|
37
37
|
import"./index-zgwm4ryv.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-pm992z24.js";
|
|
39
|
+
import"./index-0dab9w37.js";
|
|
40
40
|
import"./index-293f68mj.js";
|
|
41
41
|
import"./index-5mkc2f9z.js";
|
|
42
42
|
import"./index-vn263hqt.js";
|
|
43
43
|
import"./index-vvk2g744.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-h91bv3hy.js";
|
|
45
45
|
import"./index-a76rekgs.js";
|
|
46
46
|
|
|
47
47
|
// src/cli/index.ts
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-t6wfwdm1.js";
|
|
12
|
+
import"./index-hpp2r0sd.js";
|
|
13
|
+
import"./index-32bx4kch.js";
|
|
14
14
|
import"./index-bfwt3abw.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-db1fh1fv.js";
|
|
16
16
|
import"./index-jtqkh8jf.js";
|
|
17
17
|
import"./index-zgwm4ryv.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-0dab9w37.js";
|
|
19
19
|
import"./index-5mkc2f9z.js";
|
|
20
20
|
import"./index-vn263hqt.js";
|
|
21
21
|
import"./index-vvk2g744.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-h91bv3hy.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
25
25
|
readRecentEscalations,
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
resolveKnowledgeCounterBaselinePath,
|
|
26
26
|
resolveKnowledgeEventsPath,
|
|
27
27
|
resolveLegacyApplicationLogPath
|
|
28
|
-
} from "./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
} from "./index-hpp2r0sd.js";
|
|
29
|
+
import"./index-db1fh1fv.js";
|
|
30
30
|
import"./index-zgwm4ryv.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-0dab9w37.js";
|
|
32
32
|
import"./index-5mkc2f9z.js";
|
|
33
33
|
import"./index-vn263hqt.js";
|
|
34
34
|
import"./index-vvk2g744.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-h91bv3hy.js";
|
|
36
36
|
import"./index-a76rekgs.js";
|
|
37
37
|
export {
|
|
38
38
|
resolveLegacyApplicationLogPath,
|