opencode-swarm 7.199.4 → 7.199.6
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/references/followup-dispositions.md +1 -0
- package/.opencode/skills/swarm-pr-review/SKILL.md +3 -3
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/architect.d.ts +1 -1
- package/dist/background/pending-delegations.d.ts +46 -0
- package/dist/cli/{auto-checkpoint-75n3s0qj.js → auto-checkpoint-gv21fb1h.js} +12 -11
- package/dist/cli/{checkpoint-vdjfn78h.js → checkpoint-rd1bt793.js} +21 -21
- package/dist/cli/{coder-settlement-wwgdrzcb.js → coder-settlement-21zd1g3a.js} +18 -18
- package/dist/cli/{config-doctor-x8ke4n9r.js → config-doctor-mxe9nr78.js} +19 -19
- package/dist/cli/{core-2zmr3718.js → core-7bd1sd36.js} +7 -7
- package/dist/cli/{curation-policy-0smbd33w.js → curation-policy-w9y0db1n.js} +8 -8
- package/dist/cli/{curator-7pnzsqe8.js → curator-7rf98h3k.js} +51 -51
- package/dist/cli/{curator-drift-2rtecv79.js → curator-drift-21y19fnz.js} +12 -12
- package/dist/cli/curator-llm-factory-ab821je6.js +82 -0
- package/dist/cli/{dispatch-1pbmmj8z.js → dispatch-sftetpzv.js} +4 -4
- package/dist/cli/{doctor-knowledge-receipt-phase-id-0yqb8t1e.js → doctor-knowledge-receipt-phase-id-6pdjxgfa.js} +12 -12
- package/dist/cli/{evidence-summary-service-59r4wnbz.js → evidence-summary-service-vdcx7fqd.js} +27 -27
- package/dist/cli/{gate-evidence-7xp8a4s3.js → gate-evidence-ernx9gck.js} +13 -13
- package/dist/cli/guardrail-explain-7jef0dhs.js +83 -0
- package/dist/cli/guardrail-log-jr6b9rt3.js +23 -0
- package/dist/cli/{guardrail-reset-2edjt0zn.js → guardrail-reset-0qyt8vpd.js} +51 -51
- package/dist/cli/hive-promoter-2qwxrrsc.js +97 -0
- package/dist/cli/{index-g1wra8ky.js → index-0bw1jyen.js} +5 -4
- package/dist/cli/{index-dyp5807d.js → index-0je0mees.js} +10 -8
- package/dist/cli/{index-2mx2gn97.js → index-0veqvgny.js} +1 -1
- package/dist/cli/{index-ywb5er8g.js → index-270zfq1f.js} +2 -2
- package/dist/cli/{index-h3nns8py.js → index-2cb644vj.js} +403 -170
- package/dist/cli/{index-k0er6f51.js → index-38fgg593.js} +2 -2
- package/dist/cli/{index-3gr7a9j8.js → index-3ct8kgfj.js} +4 -4
- package/dist/cli/{index-h349p91m.js → index-3mzc5rqc.js} +2 -2
- package/dist/cli/{index-bkscmz4z.js → index-4cyc18bc.js} +11 -11
- package/dist/cli/{index-hfpa3hrz.js → index-7m2gcmm7.js} +11 -11
- package/dist/cli/{index-97cpeqb2.js → index-88d5kpjj.js} +2 -2
- package/dist/cli/{index-nr1pj3hy.js → index-9y6yk1n0.js} +1 -1
- package/dist/cli/{index-j2vv0h13.js → index-axqyjreb.js} +6 -4
- package/dist/cli/{index-820pzqd6.js → index-b3ws03kp.js} +7 -5
- package/dist/cli/{index-sxh861jr.js → index-b9f2j9bx.js} +4 -4
- package/dist/cli/{index-jwg4wy3g.js → index-bef4nhtj.js} +6 -5
- package/dist/cli/{index-ry1jgeqa.js → index-cs1d9e03.js} +2 -2
- package/dist/cli/{index-3chx0ed6.js → index-cwg99gea.js} +11 -11
- package/dist/cli/{index-hxav7nr0.js → index-cyp3r8ar.js} +1645 -124
- package/dist/cli/{index-nfpfbce0.js → index-dqkr60bw.js} +18 -16
- package/dist/cli/{index-6dtt0brw.js → index-dtwj4hsk.js} +4 -4
- package/dist/cli/{index-4s6kdsfr.js → index-dz15f98h.js} +1 -1
- package/dist/cli/{index-s41r5s5p.js → index-eqw5vq9r.js} +1 -1
- package/dist/cli/{index-5mfahvm2.js → index-exj9yb0x.js} +4884 -5746
- package/dist/cli/{index-vnmadnbs.js → index-exr153j1.js} +15 -11
- package/dist/cli/{index-hz2609qt.js → index-eyq1q1xn.js} +9 -7
- package/dist/cli/{index-4f5ejd03.js → index-f02p4yn4.js} +2 -2
- package/dist/cli/{index-ffkd1zwc.js → index-gdyqdhz1.js} +10 -10
- package/dist/cli/{index-7c432abn.js → index-hx2f3j9w.js} +2 -2
- package/dist/cli/{index-p5pgjp7n.js → index-j3rfbs45.js} +1 -1
- package/dist/cli/{index-jhz7qpb4.js → index-jhjmf5sn.js} +21 -17
- package/dist/cli/{index-w7d8gcj0.js → index-jmhn6ab5.js} +2 -2
- package/dist/cli/{index-2bc7zfw3.js → index-n1ddn12j.js} +2 -2
- package/dist/cli/{index-t94vcqg6.js → index-qbhjey8k.js} +7 -7
- package/dist/cli/{index-2s7dvzff.js → index-qbxk2rn6.js} +42 -41
- package/dist/cli/{index-h44592hj.js → index-r227g76y.js} +6 -6
- package/dist/cli/{index-9gfymmr8.js → index-s4wbe96z.js} +5 -5
- package/dist/cli/{index-bh6j8qxz.js → index-s5tgnsmh.js} +5 -5
- package/dist/cli/{index-dradkxhb.js → index-s9hekeej.js} +13 -13
- package/dist/cli/{index-w00dj8p5.js → index-snx2vb1x.js} +2 -2
- package/dist/cli/{index-zxdawwc7.js → index-sp2cxpaq.js} +131 -8
- package/dist/cli/{index-g4fs6z4e.js → index-spggmr30.js} +6 -2
- package/dist/cli/{index-aaqgsmxr.js → index-syaa76vg.js} +53 -53
- package/dist/cli/{index-x1j0838n.js → index-t67n8jhb.js} +7 -7
- package/dist/cli/{index-2wsh6d15.js → index-tqtfjzb0.js} +15 -6
- package/dist/cli/{index-pxdc0qn1.js → index-tsg61z0r.js} +2 -2
- package/dist/cli/{index-h69d3ksz.js → index-txh6dtnj.js} +51 -51
- package/dist/cli/{index-eh12k044.js → index-vgb679vr.js} +13 -11
- package/dist/cli/{index-cjapb4hy.js → index-x5jwegqw.js} +7 -5
- package/dist/cli/{index-aayv19fb.js → index-x6rv0e00.js} +25 -21
- package/dist/cli/{index-hc6wa3yg.js → index-zbygz217.js} +3 -3
- package/dist/cli/{index-65syfqe1.js → index-zzpy5cx3.js} +8 -8
- package/dist/cli/index.js +52 -52
- package/dist/cli/{knowledge-escalator-2kphhk52.js → knowledge-escalator-rsj9nqqt.js} +18 -18
- package/dist/cli/{knowledge-events-xw4qjnts.js → knowledge-events-appww5kb.js} +16 -16
- package/dist/cli/{knowledge-link-1f91bzcc.js → knowledge-link-t0ce3mw7.js} +7 -7
- package/dist/cli/{knowledge-store-1cm7y9e6.js → knowledge-store-n76rzv27.js} +8 -8
- package/dist/cli/{knowledge-validator-q4r4ng23.js → knowledge-validator-ycxvjasa.js} +10 -10
- package/dist/cli/{mcp-0548g7fk.js → mcp-jy0gk3c8.js} +1 -1
- package/dist/cli/{model-preflight-pdewpzmm.js → model-preflight-rg0mppzf.js} +51 -51
- package/dist/cli/{pending-delegations-zv9ffy5b.js → pending-delegations-e6brjxp2.js} +18 -15
- package/dist/cli/{pr-subscriptions-0ktv4qaq.js → pr-subscriptions-vjsb5ydq.js} +15 -15
- package/dist/cli/{pr-workflow-gate-71nxjz6p.js → pr-workflow-gate-bj66aa9k.js} +59 -59
- package/dist/cli/{runner-7sd43gan.js → runner-wq954cda.js} +9 -9
- package/dist/cli/{scan-cursor-ty5dqwhm.js → scan-cursor-kkg94g0t.js} +11 -10
- package/dist/cli/{schema-tnrvn8h1.js → schema-d1exxwv8.js} +1 -1
- package/dist/cli/{scope-persistence-camnvcaq.js → scope-persistence-3v9hce7b.js} +20 -19
- package/dist/cli/{server-cr9kvgzz.js → server-jkcwkh8t.js} +56 -56
- package/dist/cli/{skill-generator-nx2g9975.js → skill-generator-wg8qfdm8.js} +20 -20
- package/dist/cli/{snapshot-coordination-init-ymsjgsqf.js → snapshot-coordination-init-xyffgya9.js} +51 -51
- package/dist/cli/{speckit-checkoff-1pyx7y0d.js → speckit-checkoff-61xn2c2v.js} +7 -6
- package/dist/cli/{telemetry-6yv06xyz.js → telemetry-gena5typ.js} +3 -3
- package/dist/cli/{workspace-snapshot-4zfj5wnd.js → workspace-snapshot-hzhz0rxw.js} +7 -7
- package/dist/cli/{worktree-collision-ownership-twe4r9f2.js → worktree-collision-ownership-gsv009xc.js} +22 -21
- package/dist/cli/{worktree-isolation-yj3vfp1h.js → worktree-isolation-3sdvs69a.js} +51 -51
- package/dist/commands/close/dry-run.d.ts +2 -1
- package/dist/commands/close/orchestrator.d.ts +16 -5
- package/dist/commands/destructive-purge.d.ts +53 -12
- package/dist/commands/git-status-read.d.ts +76 -0
- package/dist/commands/rollback-gate.d.ts +24 -5
- package/dist/config/schema.d.ts +5 -3
- package/dist/evaluation/contracts.d.ts +5 -5
- package/dist/hooks/lane-liveness-watchdog.d.ts +6 -1
- package/dist/hooks/pr-workflow-gate.d.ts +61 -1
- package/dist/host/v2/guidance.d.ts +7 -0
- package/dist/index.js +255 -253
- package/dist/memory/schema.d.ts +3 -3
- package/dist/pr-review/completion.d.ts +63 -2
- package/dist/services/diagnose-service.d.ts +7 -8
- package/dist/tools/dispatch-lanes.d.ts +2 -1
- package/dist/utils/git-executable.d.ts +4 -0
- package/opencode-swarm.schema.json +3 -2
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-aybwqak6.js +0 -82
- package/dist/cli/guardrail-explain-jahptqqd.js +0 -83
- package/dist/cli/guardrail-log-csp211g7.js +0 -23
- package/dist/cli/hive-promoter-17q1qg8e.js +0 -97
- package/dist/cli/{index-fzpt2djt.js → index-te9hq2f4.js} +3 -3
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-hx2f3j9w.js";
|
|
7
7
|
import {
|
|
8
8
|
TASK_WORKFLOW_SCHEMA_MARKER,
|
|
9
9
|
deriveApplicableGateSet,
|
|
@@ -12,14 +12,11 @@ import {
|
|
|
12
12
|
readTaskEvidence,
|
|
13
13
|
readTaskEvidenceRaw,
|
|
14
14
|
sanitizeTaskId
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-dqkr60bw.js";
|
|
16
16
|
import {
|
|
17
17
|
readSwarmFileAsync,
|
|
18
18
|
validateSwarmPath
|
|
19
|
-
} from "./index-
|
|
20
|
-
import {
|
|
21
|
-
bunWrite
|
|
22
|
-
} from "./index-2s7dvzff.js";
|
|
19
|
+
} from "./index-b3ws03kp.js";
|
|
23
20
|
import {
|
|
24
21
|
EVIDENCE_MAX_JSON_BYTES,
|
|
25
22
|
EvidenceBundleSchema,
|
|
@@ -27,20 +24,24 @@ import {
|
|
|
27
24
|
} from "./index-g22dps7x.js";
|
|
28
25
|
import {
|
|
29
26
|
withEvidenceLock
|
|
30
|
-
} from "./index-
|
|
27
|
+
} from "./index-dz15f98h.js";
|
|
31
28
|
import {
|
|
32
29
|
assertProjectRoot
|
|
33
30
|
} from "./index-t7hmqgjy.js";
|
|
34
31
|
import {
|
|
35
32
|
invalidateCachedArtifact
|
|
36
|
-
} from "./index-
|
|
33
|
+
} from "./index-270zfq1f.js";
|
|
37
34
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./index-
|
|
35
|
+
bunWrite,
|
|
36
|
+
init_bun_compat
|
|
37
|
+
} from "./index-qbxk2rn6.js";
|
|
41
38
|
import {
|
|
42
39
|
warn
|
|
43
40
|
} from "./index-zgwm4ryv.js";
|
|
41
|
+
import {
|
|
42
|
+
ZodError,
|
|
43
|
+
init_zod
|
|
44
|
+
} from "./index-gknz3bv1.js";
|
|
44
45
|
|
|
45
46
|
// src/evidence/manager.ts
|
|
46
47
|
init_zod();
|
|
@@ -210,6 +211,9 @@ async function archiveEvaluationArtifacts(args) {
|
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
213
|
|
|
214
|
+
// src/evidence/manager.ts
|
|
215
|
+
init_bun_compat();
|
|
216
|
+
|
|
213
217
|
// src/evidence/documents-retention.ts
|
|
214
218
|
import * as fs2 from "fs";
|
|
215
219
|
import * as fsp from "fs/promises";
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
5
|
-
import {
|
|
6
|
-
bunSpawn
|
|
7
|
-
} from "./index-2s7dvzff.js";
|
|
4
|
+
} from "./index-b3ws03kp.js";
|
|
8
5
|
import {
|
|
9
6
|
canonicalRootKey,
|
|
10
7
|
sameProjectRoot
|
|
11
|
-
} from "./index-
|
|
8
|
+
} from "./index-te9hq2f4.js";
|
|
12
9
|
import {
|
|
13
10
|
atomicWriteSwarmFile
|
|
14
|
-
} from "./index-
|
|
11
|
+
} from "./index-270zfq1f.js";
|
|
15
12
|
import {
|
|
16
13
|
init_git_executable,
|
|
17
14
|
resolveGitExecutable
|
|
18
|
-
} from "./index-
|
|
15
|
+
} from "./index-sp2cxpaq.js";
|
|
16
|
+
import {
|
|
17
|
+
bunSpawn,
|
|
18
|
+
init_bun_compat
|
|
19
|
+
} from "./index-qbxk2rn6.js";
|
|
19
20
|
|
|
20
21
|
// src/background/workspace-snapshot.ts
|
|
21
22
|
import * as child_process from "child_process";
|
|
22
23
|
import { createHash } from "crypto";
|
|
23
24
|
import * as fs from "fs";
|
|
24
25
|
import * as path from "path";
|
|
26
|
+
init_bun_compat();
|
|
25
27
|
init_git_executable();
|
|
26
28
|
var GIT_SNAPSHOT_TIMEOUT_MS = 3000;
|
|
27
29
|
var GIT_SNAPSHOT_MAX_BUFFER = 32 * 1024 * 1024;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-88d5kpjj.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-0bw1jyen.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -5,42 +5,42 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
effectiveRetrievalOutcomes,
|
|
7
7
|
readAuthoritativeKnowledgeCounterRollups
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-s4wbe96z.js";
|
|
9
9
|
import {
|
|
10
10
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
11
11
|
validateSkillPath
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-3ct8kgfj.js";
|
|
13
13
|
import {
|
|
14
14
|
computeOutcomeSignal,
|
|
15
15
|
readKnowledge,
|
|
16
16
|
resolveHiveKnowledgePath,
|
|
17
17
|
resolveSwarmKnowledgePath,
|
|
18
18
|
transactKnowledge
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-cwg99gea.js";
|
|
20
20
|
import {
|
|
21
21
|
appendCappedJsonl,
|
|
22
22
|
resolveRetentionCap
|
|
23
23
|
} from "./index-vzm6zre7.js";
|
|
24
24
|
import {
|
|
25
25
|
canonicalRootKeyFresh
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-te9hq2f4.js";
|
|
27
27
|
import {
|
|
28
28
|
atomicWriteFileAnyRoot,
|
|
29
29
|
atomicWriteSwarmFile
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-270zfq1f.js";
|
|
31
31
|
import {
|
|
32
32
|
advisoryWarn,
|
|
33
33
|
init_warning_buffer
|
|
34
|
-
} from "./index-
|
|
35
|
-
import {
|
|
36
|
-
init_knowledge_types,
|
|
37
|
-
isActiveStatus
|
|
38
|
-
} from "./index-bk5tah7q.js";
|
|
34
|
+
} from "./index-sp2cxpaq.js";
|
|
39
35
|
import {
|
|
40
36
|
init_logger,
|
|
41
37
|
log,
|
|
42
38
|
warn
|
|
43
39
|
} from "./index-zgwm4ryv.js";
|
|
40
|
+
import {
|
|
41
|
+
init_knowledge_types,
|
|
42
|
+
isActiveStatus
|
|
43
|
+
} from "./index-bk5tah7q.js";
|
|
44
44
|
import {
|
|
45
45
|
__require
|
|
46
46
|
} from "./index-a76rekgs.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./index-txdagbh7.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-jmhn6ab5.js";
|
|
13
13
|
import {
|
|
14
14
|
withEvidenceLock
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-dz15f98h.js";
|
|
16
16
|
import {
|
|
17
17
|
assertProjectRoot
|
|
18
18
|
} from "./index-t7hmqgjy.js";
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
observeStoreHealth
|
|
4
|
-
} from "./index-hc6wa3yg.js";
|
|
5
|
-
import {
|
|
6
|
-
telemetry
|
|
7
|
-
} from "./index-6dtt0brw.js";
|
|
8
|
-
import {
|
|
9
|
-
init_git_executable,
|
|
10
|
-
resolveGitExecutable
|
|
11
|
-
} from "./index-zxdawwc7.js";
|
|
12
|
-
import {
|
|
13
|
-
init_schema,
|
|
14
|
-
stripKnownSwarmPrefix
|
|
15
|
-
} from "./index-g1wra8ky.js";
|
|
16
|
-
import {
|
|
17
|
-
init_constants
|
|
18
|
-
} from "./index-xfzkq1k4.js";
|
|
19
2
|
import {
|
|
20
3
|
getPathFlavor,
|
|
21
4
|
init_path_identity,
|
|
@@ -26,10 +9,30 @@ import {
|
|
|
26
9
|
sanitizeDiagnosticText,
|
|
27
10
|
unsafePathTextReason
|
|
28
11
|
} from "./index-9rwhas09.js";
|
|
12
|
+
import {
|
|
13
|
+
observeStoreHealth
|
|
14
|
+
} from "./index-zbygz217.js";
|
|
15
|
+
import {
|
|
16
|
+
telemetry
|
|
17
|
+
} from "./index-dtwj4hsk.js";
|
|
18
|
+
import {
|
|
19
|
+
init_git_executable,
|
|
20
|
+
resolveGitExecutable
|
|
21
|
+
} from "./index-sp2cxpaq.js";
|
|
22
|
+
import {
|
|
23
|
+
init_bun_compat
|
|
24
|
+
} from "./index-qbxk2rn6.js";
|
|
29
25
|
import {
|
|
30
26
|
init_logger,
|
|
31
27
|
warn
|
|
32
28
|
} from "./index-zgwm4ryv.js";
|
|
29
|
+
import {
|
|
30
|
+
init_schema,
|
|
31
|
+
stripKnownSwarmPrefix
|
|
32
|
+
} from "./index-0bw1jyen.js";
|
|
33
|
+
import {
|
|
34
|
+
init_constants
|
|
35
|
+
} from "./index-xfzkq1k4.js";
|
|
33
36
|
import {
|
|
34
37
|
__commonJS,
|
|
35
38
|
__toESM
|
|
@@ -2150,6 +2153,7 @@ function protectedRoots(projectRoot, additional = []) {
|
|
|
2150
2153
|
}
|
|
2151
2154
|
|
|
2152
2155
|
// src/utils/arg-hash.ts
|
|
2156
|
+
init_bun_compat();
|
|
2153
2157
|
var HASH_INPUT_CAP_BYTES = 64 * 1024;
|
|
2154
2158
|
|
|
2155
2159
|
// src/hooks/guardrails/file-authority.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
withEvidenceLock
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-dz15f98h.js";
|
|
5
5
|
import {
|
|
6
6
|
atomicWriteFileAnyRoot
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-270zfq1f.js";
|
|
8
8
|
|
|
9
9
|
// src/evidence/task-file.ts
|
|
10
10
|
import * as path from "path";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
writeSpeckitCheckoffLedger
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-38fgg593.js";
|
|
5
5
|
import {
|
|
6
6
|
validateSpecContent
|
|
7
7
|
} from "./index-0725jpp7.js";
|
|
8
8
|
import {
|
|
9
9
|
init_loader,
|
|
10
10
|
readSddSourceSetting
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-88d5kpjj.js";
|
|
12
12
|
import {
|
|
13
13
|
advisoryWarn,
|
|
14
14
|
init_warning_buffer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import {
|
|
17
|
-
SDD_SOURCES,
|
|
18
|
-
init_schema
|
|
19
|
-
} from "./index-g1wra8ky.js";
|
|
15
|
+
} from "./index-sp2cxpaq.js";
|
|
20
16
|
import {
|
|
21
17
|
init_logger,
|
|
22
18
|
log
|
|
23
19
|
} from "./index-zgwm4ryv.js";
|
|
20
|
+
import {
|
|
21
|
+
SDD_SOURCES,
|
|
22
|
+
init_schema
|
|
23
|
+
} from "./index-0bw1jyen.js";
|
|
24
24
|
|
|
25
25
|
// src/sdd/effective-spec.ts
|
|
26
26
|
init_loader();
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
__esm
|
|
4
|
+
} from "./index-a76rekgs.js";
|
|
5
|
+
|
|
2
6
|
// src/utils/bun-compat.ts
|
|
3
7
|
import {
|
|
4
8
|
spawn as nodeSpawn,
|
|
@@ -7,9 +11,6 @@ import {
|
|
|
7
11
|
import * as fsSync from "fs";
|
|
8
12
|
import * as fsPromises from "fs/promises";
|
|
9
13
|
import * as path from "path";
|
|
10
|
-
var WINDOWS_RENAME_MAX_RETRIES = 3;
|
|
11
|
-
var WINDOWS_RENAME_RETRY_DELAY_MS = 50;
|
|
12
|
-
var tempCounter = 0;
|
|
13
14
|
function getBun() {
|
|
14
15
|
const g = globalThis;
|
|
15
16
|
return g.Bun;
|
|
@@ -137,20 +138,6 @@ function bunHash(input) {
|
|
|
137
138
|
}
|
|
138
139
|
return hash;
|
|
139
140
|
}
|
|
140
|
-
var DEFAULT_BUN_SPAWN_MAX_BUFFER_BYTES = 5 * 1024 * 1024;
|
|
141
|
-
|
|
142
|
-
class BunCompatOutputLimitError extends Error {
|
|
143
|
-
limit;
|
|
144
|
-
captured;
|
|
145
|
-
total;
|
|
146
|
-
constructor(limit, captured, total) {
|
|
147
|
-
super(`Subprocess output exceeded the ${limit}-byte buffer limit after capturing ${captured} bytes (${total} bytes observed)`);
|
|
148
|
-
this.name = "BunCompatOutputLimitError";
|
|
149
|
-
this.limit = limit;
|
|
150
|
-
this.captured = captured;
|
|
151
|
-
this.total = total;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
141
|
async function killProcessTreeImpl(pid, signal, directKill, wasDetached) {
|
|
155
142
|
if (typeof pid !== "number" || pid <= 0) {
|
|
156
143
|
directKill(signal);
|
|
@@ -198,27 +185,6 @@ async function killProcessTreeImpl(pid, signal, directKill, wasDetached) {
|
|
|
198
185
|
function createProcessTreeKiller(pid, directKill, wasDetached) {
|
|
199
186
|
return (signal) => killProcessTreeImpl(pid, signal, directKill, wasDetached);
|
|
200
187
|
}
|
|
201
|
-
var _internals = {
|
|
202
|
-
platform: () => process.platform,
|
|
203
|
-
cwd: () => process.cwd(),
|
|
204
|
-
spawnTaskkill: (args, options) => nodeSpawn("taskkill", args, options),
|
|
205
|
-
createProcessTreeKiller,
|
|
206
|
-
statSync: (target) => fsSync.statSync(target)
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
class SpawnCwdMissingError extends Error {
|
|
210
|
-
name = "SpawnCwdMissingError";
|
|
211
|
-
code = "ENOENT";
|
|
212
|
-
cwd;
|
|
213
|
-
reason;
|
|
214
|
-
executable;
|
|
215
|
-
constructor(cwd, reason, executable, options) {
|
|
216
|
-
super(reason === "missing" ? `cannot start "${executable}": working directory no longer exists: ${cwd}` : `cannot start "${executable}": working directory is not a directory: ${cwd}`, options);
|
|
217
|
-
this.cwd = cwd;
|
|
218
|
-
this.reason = reason;
|
|
219
|
-
this.executable = executable;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
188
|
function inspectSpawnCwd(cwd) {
|
|
223
189
|
try {
|
|
224
190
|
return _internals.statSync(cwd).isDirectory() ? "directory" : "not-directory";
|
|
@@ -243,7 +209,6 @@ function describeSpawnCwdFailure(cwd, executable, cause) {
|
|
|
243
209
|
}
|
|
244
210
|
return null;
|
|
245
211
|
}
|
|
246
|
-
var AMBIGUOUS_SPAWN_CODES = new Set(["ENOENT", "ENOTDIR", "EACCES", "EPERM"]);
|
|
247
212
|
function spawnErrorCode(err) {
|
|
248
213
|
if (typeof err !== "object" || err === null || !("code" in err)) {
|
|
249
214
|
return;
|
|
@@ -543,7 +508,6 @@ function mergeEnvForChild(baseEnv, envOverrides) {
|
|
|
543
508
|
}
|
|
544
509
|
return merged;
|
|
545
510
|
}
|
|
546
|
-
var SPAWN_CREATION_FAILURE_EXIT_CODE = 1;
|
|
547
511
|
function asError(value) {
|
|
548
512
|
return value instanceof Error ? value : new Error(String(value));
|
|
549
513
|
}
|
|
@@ -800,5 +764,42 @@ function bunSpawnSync(cmd, options) {
|
|
|
800
764
|
success: exitCode === 0 && !result.error
|
|
801
765
|
};
|
|
802
766
|
}
|
|
767
|
+
var WINDOWS_RENAME_MAX_RETRIES = 3, WINDOWS_RENAME_RETRY_DELAY_MS = 50, tempCounter = 0, DEFAULT_BUN_SPAWN_MAX_BUFFER_BYTES, BunCompatOutputLimitError, _internals, SpawnCwdMissingError, AMBIGUOUS_SPAWN_CODES, SPAWN_CREATION_FAILURE_EXIT_CODE = 1;
|
|
768
|
+
var init_bun_compat = __esm(() => {
|
|
769
|
+
DEFAULT_BUN_SPAWN_MAX_BUFFER_BYTES = 5 * 1024 * 1024;
|
|
770
|
+
BunCompatOutputLimitError = class BunCompatOutputLimitError extends Error {
|
|
771
|
+
limit;
|
|
772
|
+
captured;
|
|
773
|
+
total;
|
|
774
|
+
constructor(limit, captured, total) {
|
|
775
|
+
super(`Subprocess output exceeded the ${limit}-byte buffer limit after capturing ${captured} bytes (${total} bytes observed)`);
|
|
776
|
+
this.name = "BunCompatOutputLimitError";
|
|
777
|
+
this.limit = limit;
|
|
778
|
+
this.captured = captured;
|
|
779
|
+
this.total = total;
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
_internals = {
|
|
783
|
+
platform: () => process.platform,
|
|
784
|
+
cwd: () => process.cwd(),
|
|
785
|
+
spawnTaskkill: (args, options) => nodeSpawn("taskkill", args, options),
|
|
786
|
+
createProcessTreeKiller,
|
|
787
|
+
statSync: (target) => fsSync.statSync(target)
|
|
788
|
+
};
|
|
789
|
+
SpawnCwdMissingError = class SpawnCwdMissingError extends Error {
|
|
790
|
+
name = "SpawnCwdMissingError";
|
|
791
|
+
code = "ENOENT";
|
|
792
|
+
cwd;
|
|
793
|
+
reason;
|
|
794
|
+
executable;
|
|
795
|
+
constructor(cwd, reason, executable, options) {
|
|
796
|
+
super(reason === "missing" ? `cannot start "${executable}": working directory no longer exists: ${cwd}` : `cannot start "${executable}": working directory is not a directory: ${cwd}`, options);
|
|
797
|
+
this.cwd = cwd;
|
|
798
|
+
this.reason = reason;
|
|
799
|
+
this.executable = executable;
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
AMBIGUOUS_SPAWN_CODES = new Set(["ENOENT", "ENOTDIR", "EACCES", "EPERM"]);
|
|
803
|
+
});
|
|
803
804
|
|
|
804
|
-
export { bunFile, bunWrite, sleep, collectGarbageBestEffort, bunHash, classifySpawnFailure, mergeEnvForChild, bunSpawn, bunSpawnSync };
|
|
805
|
+
export { bunFile, bunWrite, sleep, collectGarbageBestEffort, bunHash, classifySpawnFailure, mergeEnvForChild, bunSpawn, bunSpawnSync, init_bun_compat };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledgeEvents,
|
|
4
4
|
recordKnowledgeEvent
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-s4wbe96z.js";
|
|
6
6
|
import {
|
|
7
7
|
queryHistoricalOutcomes
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-s5tgnsmh.js";
|
|
9
9
|
import {
|
|
10
10
|
jaccardBigram,
|
|
11
11
|
readKnowledge,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveSwarmKnowledgePath,
|
|
14
14
|
transactKnowledge,
|
|
15
15
|
wordBigrams
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-cwg99gea.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -226,11 +226,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
226
226
|
alreadyInactive: true
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
229
|
+
const { quarantineEntry } = await import("./knowledge-validator-ycxvjasa.js");
|
|
230
230
|
let policyConfig;
|
|
231
231
|
try {
|
|
232
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
233
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
232
|
+
const { KnowledgeConfigSchema } = await import("./schema-d1exxwv8.js");
|
|
233
|
+
const { loadPluginConfigWithMeta } = await import("./index-bef4nhtj.js");
|
|
234
234
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
235
235
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
236
236
|
} catch {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
queryHistoricalOutcomes
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-s5tgnsmh.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveHiveEventsPath
|
|
7
7
|
} from "./index-ae75rja9.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveKnowledgeStoreDir
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-n1ddn12j.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteFile
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-jmhn6ab5.js";
|
|
14
14
|
import {
|
|
15
15
|
canonicalRootKey
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-te9hq2f4.js";
|
|
17
17
|
import {
|
|
18
18
|
require_proper_lockfile
|
|
19
19
|
} from "./index-7g4c7s5r.js";
|
|
@@ -708,7 +708,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
708
708
|
}
|
|
709
709
|
let bumps = 0;
|
|
710
710
|
if (deltas.length > 0) {
|
|
711
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
711
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-n76rzv27.js");
|
|
712
712
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
713
713
|
}
|
|
714
714
|
return {
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
} from "./index-m9zzj4ee.js";
|
|
5
5
|
import {
|
|
6
6
|
validateSwarmPath
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-b3ws03kp.js";
|
|
8
8
|
import {
|
|
9
9
|
observeReceiptTransition
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-zbygz217.js";
|
|
11
11
|
import {
|
|
12
12
|
assertProjectRoot
|
|
13
13
|
} from "./index-t7hmqgjy.js";
|
|
14
14
|
import {
|
|
15
15
|
emit
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-dtwj4hsk.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveActivePhaseId
|
|
19
19
|
} from "./index-gx2vp8gx.js";
|
|
20
20
|
import {
|
|
21
21
|
loadPluginConfigWithMeta
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-88d5kpjj.js";
|
|
23
23
|
import {
|
|
24
24
|
KnowledgeConfigSchema,
|
|
25
25
|
init_schema
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-0bw1jyen.js";
|
|
27
27
|
|
|
28
28
|
// src/utils/context-decisions.ts
|
|
29
29
|
function extractContextDecisions(content) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
captureWorkspaceSnapshotAsync,
|
|
4
4
|
changedFilesSinceSnapshotAsync
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-eyq1q1xn.js";
|
|
6
6
|
import {
|
|
7
7
|
removeWorktreeProvisioningOwner
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-tsg61z0r.js";
|
|
9
9
|
import {
|
|
10
10
|
SOURCE_WORKTREE_GONE_STAGE,
|
|
11
11
|
ensureTaskGateRequirementsReceiptForSettledTransition,
|
|
@@ -14,16 +14,20 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-dqkr60bw.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-b3ws03kp.js";
|
|
21
21
|
import {
|
|
22
22
|
appendCoreEventSync
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-3mzc5rqc.js";
|
|
24
|
+
import {
|
|
25
|
+
init_path_identity,
|
|
26
|
+
isPathWithinDeclaredScope
|
|
27
|
+
} from "./index-9rwhas09.js";
|
|
24
28
|
import {
|
|
25
29
|
canonicalRootKeyFresh
|
|
26
|
-
} from "./index-
|
|
30
|
+
} from "./index-te9hq2f4.js";
|
|
27
31
|
import {
|
|
28
32
|
tryAcquireLock
|
|
29
33
|
} from "./index-ejhxgyvm.js";
|
|
@@ -32,11 +36,7 @@ import {
|
|
|
32
36
|
init_git_executable,
|
|
33
37
|
init_warning_buffer,
|
|
34
38
|
resolveGitExecutable
|
|
35
|
-
} from "./index-
|
|
36
|
-
import {
|
|
37
|
-
init_path_identity,
|
|
38
|
-
isPathWithinDeclaredScope
|
|
39
|
-
} from "./index-9rwhas09.js";
|
|
39
|
+
} from "./index-sp2cxpaq.js";
|
|
40
40
|
import {
|
|
41
41
|
criticalWarn,
|
|
42
42
|
init_logger
|
|
@@ -512,7 +512,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
|
|
|
512
512
|
awaitingMergeByCallID,
|
|
513
513
|
cleanupStandardWorktreeForCallId,
|
|
514
514
|
standardWorktreeByCallID
|
|
515
|
-
} = await import("./worktree-isolation-
|
|
515
|
+
} = await import("./worktree-isolation-3sdvs69a.js");
|
|
516
516
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
517
517
|
if (hasResidue)
|
|
518
518
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -648,7 +648,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
648
648
|
awaitingMergeByCallID,
|
|
649
649
|
finishStandardWorktreeDispatch,
|
|
650
650
|
standardWorktreeByCallID
|
|
651
|
-
} = await import("./worktree-isolation-
|
|
651
|
+
} = await import("./worktree-isolation-3sdvs69a.js");
|
|
652
652
|
const descriptor = wal.worktree;
|
|
653
653
|
const reconstructedDispatch = {
|
|
654
654
|
callID: descriptor.callID,
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
canonicalRootKeyFresh,
|
|
10
10
|
lexicalRootAliasKey
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-te9hq2f4.js";
|
|
12
12
|
import {
|
|
13
13
|
atomicWriteSwarmFileSync
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-270zfq1f.js";
|
|
15
15
|
|
|
16
16
|
// src/db/project-db.ts
|
|
17
17
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|