opencode-swarm 7.138.4 → 7.139.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/README.md +7 -6
- package/dist/cli/{config-doctor-31yppse4.js → config-doctor-tgnr91q3.js} +2 -2
- package/dist/cli/{core-65c7rvqf.js → core-g2dfh9fq.js} +1 -1
- package/dist/cli/{curation-policy-hs9pc1rp.js → curation-policy-2qnhgdtt.js} +7 -7
- package/dist/cli/{curator-drift-jpap6hv4.js → curator-drift-vfh07mqy.js} +5 -2
- package/dist/cli/{curator-llm-factory-wm27ra25.js → curator-llm-factory-1ftzece0.js} +28 -28
- package/dist/cli/{curator-54n1y4j8.js → curator-nbsag633.js} +28 -28
- package/dist/cli/{evidence-summary-service-hrxcf29a.js → evidence-summary-service-kzxr71yd.js} +9 -9
- package/dist/cli/{gate-evidence-ecx4djaw.js → gate-evidence-z2b1ymnw.js} +5 -5
- package/dist/cli/{guardrail-explain-1729nse8.js → guardrail-explain-vb9k9zwm.js} +29 -29
- package/dist/cli/{guardrail-log-yjj5srkw.js → guardrail-log-0djnvfas.js} +3 -3
- package/dist/cli/{hive-promoter-es2x2b0e.js → hive-promoter-bpt26yew.js} +28 -28
- package/dist/cli/{index-mycqmsz5.js → index-0wp67gqj.js} +452 -159
- package/dist/cli/{index-c60whfgh.js → index-0ymhx85c.js} +2 -2
- package/dist/cli/{index-5q009kc4.js → index-15526t16.js} +8 -3
- package/dist/cli/{index-smsy2p8n.js → index-3eddtgxt.js} +1 -1
- package/dist/cli/{index-4fmztnrq.js → index-4xbyy6aw.js} +2 -2
- package/dist/cli/{index-xybtaph7.js → index-5j6chvj8.js} +1 -1
- package/dist/cli/{index-39k6y018.js → index-5w7ekpy3.js} +2 -2
- package/dist/cli/{index-z7jgvm9b.js → index-5zyk8qgv.js} +2 -2
- package/dist/cli/{index-en4fb04r.js → index-668dpw5e.js} +1 -1
- package/dist/cli/{index-m8txs2a9.js → index-91s653xx.js} +1 -1
- package/dist/cli/{index-y28n2wmq.js → index-a12906mj.js} +1 -1
- package/dist/cli/{index-10mz5js6.js → index-a5eba0t8.js} +2 -2
- package/dist/cli/{index-57stye65.js → index-aymt7hzw.js} +6 -3
- package/dist/cli/{index-1g6xpjk3.js → index-db7wf6ke.js} +7 -7
- package/dist/cli/{index-m1pwkwfe.js → index-dw09fz3w.js} +1 -1
- package/dist/cli/{index-fsrp8wp3.js → index-ed5ykebp.js} +25 -2
- package/dist/cli/{index-jbge0dyh.js → index-en6qq954.js} +3 -3
- package/dist/cli/{index-tqshdzaw.js → index-gvhvz176.js} +2 -2
- package/dist/cli/{index-e1kgxchq.js → index-hgrkhxbk.js} +2 -2
- package/dist/cli/{index-33q2gmgd.js → index-hn0mdcmj.js} +1 -1
- package/dist/cli/{index-a9xny52r.js → index-ht4q3548.js} +2 -2
- package/dist/cli/{index-q344kj84.js → index-prmb5qfp.js} +2 -2
- package/dist/cli/{index-x20cgr2q.js → index-q7ezzgwq.js} +16 -2
- package/dist/cli/{index-ngqxzkqm.js → index-s608d3hw.js} +2 -2
- package/dist/cli/{index-50mwt8fx.js → index-vxbppwvf.js} +5 -5
- package/dist/cli/{index-rrxcfxrd.js → index-wrt6m5ze.js} +1 -1
- package/dist/cli/{index-4qzeef9h.js → index-x9q4bbhd.js} +1 -1
- package/dist/cli/{index-m40ea3zk.js → index-xec724kg.js} +2 -2
- package/dist/cli/{index-k27a4e5g.js → index-xka8s8jw.js} +30 -30
- package/dist/cli/{index-a18hk2fw.js → index-xr07r80d.js} +513 -483
- package/dist/cli/{index-gm3pjfhb.js → index-y1zcsf2a.js} +1 -1
- package/dist/cli/{index-tjwz5tct.js → index-ywysg26s.js} +4 -4
- package/dist/cli/index.js +28 -28
- package/dist/cli/{knowledge-escalator-s6z1x65b.js → knowledge-escalator-pjg2x75c.js} +8 -8
- package/dist/cli/{knowledge-events-nnyn6hst.js → knowledge-events-vxheptk8.js} +6 -6
- package/dist/cli/{knowledge-link-xc6yhxmz.js → knowledge-link-3tq8w6gs.js} +5 -5
- package/dist/cli/{knowledge-store-x4yfc7v3.js → knowledge-store-36mascwz.js} +6 -6
- package/dist/cli/{knowledge-validator-1v047gsa.js → knowledge-validator-anats6rj.js} +9 -9
- package/dist/cli/{pending-delegations-7dbc0j2a.js → pending-delegations-tmyf18p4.js} +5 -5
- package/dist/cli/{pr-subscriptions-m943zn6g.js → pr-subscriptions-hhx6yk24.js} +5 -5
- package/dist/cli/{runner-x1hy047y.js → runner-w30gazew.js} +6 -6
- package/dist/cli/{scan-cursor-jxajj6s7.js → scan-cursor-apbz9eez.js} +7 -7
- package/dist/cli/{schema-fj32eyae.js → schema-x9fr2ey8.js} +3 -1
- package/dist/cli/{scope-persistence-w7zen2wz.js → scope-persistence-3f0d4fwv.js} +4 -4
- package/dist/cli/{skill-generator-rt0jqcsa.js → skill-generator-20czn4kd.js} +10 -10
- package/dist/cli/{telemetry-0yqed3jv.js → telemetry-4tgrfhaz.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-hjrt5hx2.js → worktree-collision-ownership-vexb0b6r.js} +38 -8
- package/dist/config/context-window.d.ts +210 -0
- package/dist/config/schema.d.ts +18 -0
- package/dist/evaluation/ephemeral-agent-dispatcher.d.ts +18 -0
- package/dist/evaluation/model-dispatcher.d.ts +1 -0
- package/dist/hooks/delegate-ack-collector.d.ts +1 -1
- package/dist/hooks/delegation-gate/worktree-collision-ownership.d.ts +7 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +2 -1
- package/dist/hooks/delegation-gate/worktree-provisioning-owner.d.ts +6 -0
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/init-orphan-recovery.d.ts +4 -1
- package/dist/hooks/knowledge-application-gate.d.ts +2 -1
- package/dist/hooks/knowledge-application.d.ts +5 -4
- package/dist/hooks/knowledge-injector.d.ts +16 -0
- package/dist/hooks/knowledge-types.d.ts +1 -1
- package/dist/hooks/messages-transform.d.ts +18 -0
- package/dist/hooks/model-limits.d.ts +88 -30
- package/dist/index.js +501 -499
- package/dist/memory/injector.d.ts +2 -0
- package/dist/plan/manager.d.ts +2 -0
- package/dist/services/context-budget-service.d.ts +6 -1
- package/dist/services/run-memory.d.ts +53 -5
- package/dist/services/status-service.d.ts +14 -0
- package/dist/state.d.ts +37 -0
- package/dist/tools/context-status.d.ts +3 -1
- package/dist/tools/update-task-status.d.ts +2 -0
- package/dist/turbo/lean/runner.d.ts +10 -0
- package/dist/utils/ephemeral-session-teardown.d.ts +98 -0
- package/dist/utils/path-security.d.ts +95 -1
- package/dist/utils/swarm-artifact-cache.d.ts +13 -0
- package/dist/worktree/index.d.ts +1 -1
- package/dist/worktree/merge.d.ts +36 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-xec724kg.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-db7wf6ke.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-668dpw5e.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-gvhvz176.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
package/dist/cli/index.js
CHANGED
|
@@ -6,61 +6,61 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-xr07r80d.js";
|
|
10
10
|
import"./index-vm4xw9z3.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
11
|
+
import"./index-wrt6m5ze.js";
|
|
12
|
+
import"./index-y1zcsf2a.js";
|
|
13
|
+
import"./index-91s653xx.js";
|
|
14
|
+
import"./index-0wp67gqj.js";
|
|
15
|
+
import"./index-s608d3hw.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-en6qq954.js";
|
|
20
|
+
import"./index-vxbppwvf.js";
|
|
21
|
+
import"./index-0ymhx85c.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
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
26
|
+
import"./index-5w7ekpy3.js";
|
|
27
|
+
import"./index-ywysg26s.js";
|
|
28
|
+
import"./index-xec724kg.js";
|
|
29
29
|
import"./index-rtry5xyf.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-db7wf6ke.js";
|
|
31
|
+
import"./index-aymt7hzw.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
33
|
+
import"./index-668dpw5e.js";
|
|
34
|
+
import"./index-gvhvz176.js";
|
|
35
|
+
import"./index-dw09fz3w.js";
|
|
36
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-15526t16.js";
|
|
42
42
|
import"./index-bk5tah7q.js";
|
|
43
43
|
import"./index-8fwhhayc.js";
|
|
44
44
|
import"./index-q1exe2b3.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
45
|
+
import"./index-5zyk8qgv.js";
|
|
46
|
+
import"./index-3eddtgxt.js";
|
|
47
47
|
import"./index-556ja8an.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-4xbyy6aw.js";
|
|
49
49
|
import"./index-1kz6da87.js";
|
|
50
|
-
import"./index-
|
|
50
|
+
import"./index-q7ezzgwq.js";
|
|
51
51
|
import"./index-b8zgtz81.js";
|
|
52
|
-
import"./index-
|
|
52
|
+
import"./index-a12906mj.js";
|
|
53
53
|
import"./index-4rhhvd1a.js";
|
|
54
54
|
import {
|
|
55
55
|
DEFAULT_AGENT_CONFIGS,
|
|
56
56
|
init_constants
|
|
57
57
|
} from "./index-3jcyn8g6.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
58
|
+
import"./index-prmb5qfp.js";
|
|
59
|
+
import"./index-x9q4bbhd.js";
|
|
60
|
+
import"./index-ed5ykebp.js";
|
|
61
|
+
import"./index-5j6chvj8.js";
|
|
62
62
|
import"./index-7g4c7s5r.js";
|
|
63
|
-
import"./index-
|
|
63
|
+
import"./index-a5eba0t8.js";
|
|
64
64
|
import"./index-bpmtbmy9.js";
|
|
65
65
|
import"./index-z6xqpmqg.js";
|
|
66
66
|
import"./index-zjygnfay.js";
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-vxbppwvf.js";
|
|
12
|
+
import"./index-db7wf6ke.js";
|
|
13
|
+
import"./index-aymt7hzw.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
import"./index-668dpw5e.js";
|
|
16
|
+
import"./index-gvhvz176.js";
|
|
17
17
|
import"./index-bk5tah7q.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-ed5ykebp.js";
|
|
19
|
+
import"./index-5j6chvj8.js";
|
|
20
20
|
import"./index-7g4c7s5r.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-a5eba0t8.js";
|
|
22
22
|
import"./index-bpmtbmy9.js";
|
|
23
23
|
import"./index-y111zefa.js";
|
|
24
24
|
import"./index-zgwm4ryv.js";
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
resolveKnowledgeCounterBaselinePath,
|
|
29
29
|
resolveKnowledgeEventsPath,
|
|
30
30
|
resolveLegacyApplicationLogPath
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-aymt7hzw.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
33
|
+
import"./index-668dpw5e.js";
|
|
34
|
+
import"./index-gvhvz176.js";
|
|
35
|
+
import"./index-ed5ykebp.js";
|
|
36
|
+
import"./index-5j6chvj8.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-a5eba0t8.js";
|
|
39
39
|
import"./index-bpmtbmy9.js";
|
|
40
40
|
import"./index-y111zefa.js";
|
|
41
41
|
import"./index-zgwm4ryv.js";
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
} from "./index-668dpw5e.js";
|
|
16
|
+
import"./index-gvhvz176.js";
|
|
17
|
+
import"./index-ed5ykebp.js";
|
|
18
|
+
import"./index-5j6chvj8.js";
|
|
19
19
|
import"./index-7g4c7s5r.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-a5eba0t8.js";
|
|
21
21
|
import"./index-bpmtbmy9.js";
|
|
22
22
|
import"./index-y111zefa.js";
|
|
23
23
|
import"./index-zgwm4ryv.js";
|
|
@@ -41,17 +41,17 @@ import {
|
|
|
41
41
|
transactKnowledge,
|
|
42
42
|
transactKnowledgeWithCas,
|
|
43
43
|
wordBigrams
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-db7wf6ke.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveHiveDataDir
|
|
47
47
|
} from "./index-ae75rja9.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-668dpw5e.js";
|
|
49
|
+
import"./index-gvhvz176.js";
|
|
50
50
|
import"./index-bk5tah7q.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
51
|
+
import"./index-ed5ykebp.js";
|
|
52
|
+
import"./index-5j6chvj8.js";
|
|
53
53
|
import"./index-7g4c7s5r.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-a5eba0t8.js";
|
|
55
55
|
import"./index-bpmtbmy9.js";
|
|
56
56
|
import"./index-y111zefa.js";
|
|
57
57
|
import"./index-zgwm4ryv.js";
|
|
@@ -23,19 +23,19 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-ywysg26s.js";
|
|
27
|
+
import"./index-xec724kg.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-db7wf6ke.js";
|
|
30
|
+
import"./index-aymt7hzw.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-668dpw5e.js";
|
|
33
|
+
import"./index-gvhvz176.js";
|
|
34
34
|
import"./index-bk5tah7q.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-ed5ykebp.js";
|
|
36
|
+
import"./index-5j6chvj8.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-a5eba0t8.js";
|
|
39
39
|
import"./index-bpmtbmy9.js";
|
|
40
40
|
import"./index-y111zefa.js";
|
|
41
41
|
import"./index-zgwm4ryv.js";
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
sweepStaleDelegations,
|
|
42
42
|
updateCoderSettlement,
|
|
43
43
|
writeDelegationFallback
|
|
44
|
-
} from "./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
44
|
+
} from "./index-prmb5qfp.js";
|
|
45
|
+
import"./index-x9q4bbhd.js";
|
|
46
|
+
import"./index-ed5ykebp.js";
|
|
47
|
+
import"./index-5j6chvj8.js";
|
|
48
48
|
import"./index-7g4c7s5r.js";
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-a5eba0t8.js";
|
|
50
50
|
import"./index-bpmtbmy9.js";
|
|
51
51
|
import"./index-z6xqpmqg.js";
|
|
52
52
|
import"./index-zjygnfay.js";
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
} from "./index-5zyk8qgv.js";
|
|
13
|
+
import"./index-x9q4bbhd.js";
|
|
14
|
+
import"./index-ed5ykebp.js";
|
|
15
|
+
import"./index-5j6chvj8.js";
|
|
16
16
|
import"./index-7g4c7s5r.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-a5eba0t8.js";
|
|
18
18
|
import"./index-bpmtbmy9.js";
|
|
19
19
|
import"./index-z6xqpmqg.js";
|
|
20
20
|
import"./index-zjygnfay.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
_internals,
|
|
4
4
|
createModelEvaluationExecutor,
|
|
5
5
|
runEvaluation
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
} from "./index-wrt6m5ze.js";
|
|
7
|
+
import"./index-s608d3hw.js";
|
|
8
8
|
import"./index-y8552snf.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
9
|
+
import"./index-gvhvz176.js";
|
|
10
|
+
import"./index-ed5ykebp.js";
|
|
11
|
+
import"./index-5j6chvj8.js";
|
|
12
12
|
import"./index-7g4c7s5r.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-a5eba0t8.js";
|
|
14
14
|
import"./index-bpmtbmy9.js";
|
|
15
15
|
import"./index-y111zefa.js";
|
|
16
16
|
import"./index-a76rekgs.js";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-0ymhx85c.js";
|
|
8
|
+
import"./index-db7wf6ke.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
import"./index-668dpw5e.js";
|
|
11
|
+
import"./index-gvhvz176.js";
|
|
12
12
|
import"./index-bk5tah7q.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-ed5ykebp.js";
|
|
14
|
+
import"./index-5j6chvj8.js";
|
|
15
15
|
import"./index-7g4c7s5r.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-a5eba0t8.js";
|
|
17
17
|
import"./index-bpmtbmy9.js";
|
|
18
18
|
import"./index-y111zefa.js";
|
|
19
19
|
import"./index-zgwm4ryv.js";
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
DEFAULT_AGENT_PROFILES,
|
|
26
26
|
DEFAULT_ARCHITECT_PROFILE,
|
|
27
27
|
DEFAULT_EXTERNAL_SKILLS_CONFIG,
|
|
28
|
+
DEFAULT_MODEL_CONTEXT_TOKENS,
|
|
28
29
|
DEFAULT_SKILLS_CONFIG,
|
|
29
30
|
DEFAULT_SKILL_OPT_CONFIG,
|
|
30
31
|
DecisionDecaySchema,
|
|
@@ -95,7 +96,7 @@ import {
|
|
|
95
96
|
resolveGeneratedAgentRole,
|
|
96
97
|
resolveGuardrailsConfig,
|
|
97
98
|
stripKnownSwarmPrefix
|
|
98
|
-
} from "./index-
|
|
99
|
+
} from "./index-15526t16.js";
|
|
99
100
|
import"./index-bk5tah7q.js";
|
|
100
101
|
import"./index-3jcyn8g6.js";
|
|
101
102
|
import"./index-bpmtbmy9.js";
|
|
@@ -173,6 +174,7 @@ export {
|
|
|
173
174
|
DecisionDecaySchema,
|
|
174
175
|
DEFAULT_SKILL_OPT_CONFIG,
|
|
175
176
|
DEFAULT_SKILLS_CONFIG,
|
|
177
|
+
DEFAULT_MODEL_CONTEXT_TOKENS,
|
|
176
178
|
DEFAULT_EXTERNAL_SKILLS_CONFIG,
|
|
177
179
|
DEFAULT_ARCHITECT_PROFILE,
|
|
178
180
|
DEFAULT_AGENT_PROFILES,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-3eddtgxt.js";
|
|
27
27
|
import"./index-556ja8an.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-4xbyy6aw.js";
|
|
29
29
|
import"./index-1kz6da87.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-5j6chvj8.js";
|
|
31
31
|
import"./index-7g4c7s5r.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-a5eba0t8.js";
|
|
33
33
|
import"./index-bpmtbmy9.js";
|
|
34
34
|
import"./index-y111zefa.js";
|
|
35
35
|
import"./index-zgwm4ryv.js";
|
|
@@ -33,21 +33,21 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-en6qq954.js";
|
|
37
|
+
import"./index-ywysg26s.js";
|
|
38
|
+
import"./index-xec724kg.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-db7wf6ke.js";
|
|
41
|
+
import"./index-aymt7hzw.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
43
|
+
import"./index-668dpw5e.js";
|
|
44
|
+
import"./index-gvhvz176.js";
|
|
45
45
|
import"./index-bk5tah7q.js";
|
|
46
46
|
import"./index-4rhhvd1a.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
import"./index-ed5ykebp.js";
|
|
48
|
+
import"./index-5j6chvj8.js";
|
|
49
49
|
import"./index-7g4c7s5r.js";
|
|
50
|
-
import"./index-
|
|
50
|
+
import"./index-a5eba0t8.js";
|
|
51
51
|
import"./index-bpmtbmy9.js";
|
|
52
52
|
import"./index-y111zefa.js";
|
|
53
53
|
import"./index-zgwm4ryv.js";
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
WORKTREE_PROVISIONING_OWNER_LEASE_MS,
|
|
4
|
+
removeWorktreeProvisioningOwner,
|
|
3
5
|
scanWorktreeProvisioningOwnersForRecovery
|
|
4
|
-
} from "./index-
|
|
6
|
+
} from "./index-q7ezzgwq.js";
|
|
5
7
|
import {
|
|
6
8
|
scanWorktreeMergeFailuresForRecovery
|
|
7
9
|
} from "./index-b8zgtz81.js";
|
|
8
10
|
import {
|
|
9
11
|
scanDelegationFallbacksForRecovery,
|
|
10
12
|
scanDelegationsForRecovery
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-prmb5qfp.js";
|
|
14
|
+
import"./index-x9q4bbhd.js";
|
|
15
|
+
import"./index-ed5ykebp.js";
|
|
16
|
+
import"./index-5j6chvj8.js";
|
|
15
17
|
import"./index-7g4c7s5r.js";
|
|
16
|
-
import"./index-
|
|
18
|
+
import"./index-a5eba0t8.js";
|
|
17
19
|
import"./index-bpmtbmy9.js";
|
|
18
20
|
import"./index-z6xqpmqg.js";
|
|
19
21
|
import"./index-zjygnfay.js";
|
|
@@ -24,6 +26,7 @@ import"./index-zgwm4ryv.js";
|
|
|
24
26
|
import"./index-a76rekgs.js";
|
|
25
27
|
|
|
26
28
|
// src/hooks/delegation-gate/worktree-collision-ownership.ts
|
|
29
|
+
import * as fs2 from "fs";
|
|
27
30
|
import * as path2 from "path";
|
|
28
31
|
|
|
29
32
|
// src/hooks/delegation-gate/worktree-ownership-tag.ts
|
|
@@ -107,6 +110,10 @@ async function scanBackgroundWorktreeOwnershipTagsForRecovery(directory) {
|
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
// src/hooks/delegation-gate/worktree-collision-ownership.ts
|
|
113
|
+
var _internals = {
|
|
114
|
+
statSync: fs2.statSync,
|
|
115
|
+
removeWorktreeProvisioningOwner
|
|
116
|
+
};
|
|
110
117
|
function normalizedPath(value) {
|
|
111
118
|
const resolved = path2.normalize(path2.resolve(value));
|
|
112
119
|
return process.platform === "win32" ? resolved.toLowerCase() : resolved;
|
|
@@ -151,16 +158,38 @@ async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
|
151
158
|
const provisioning = scanWorktreeProvisioningOwnersForRecovery(identity.directory);
|
|
152
159
|
if (provisioning.status === "uncertain")
|
|
153
160
|
return provisioning;
|
|
161
|
+
const now = Date.now();
|
|
154
162
|
for (const owner of provisioning.owners) {
|
|
155
163
|
const sameSession = owner.parentSessionId === identity.parentSessionId || owner.worktreeSessionId === identity.parentSessionId;
|
|
156
164
|
if (!sameSession)
|
|
157
165
|
continue;
|
|
158
166
|
if (owner.schemaVersion === 1 || owner.taskId === identity.taskId) {
|
|
167
|
+
const leaseIsLive = now - owner.createdAt <= WORKTREE_PROVISIONING_OWNER_LEASE_MS;
|
|
168
|
+
if (!leaseIsLive) {
|
|
169
|
+
try {
|
|
170
|
+
_internals.statSync(identity.worktreePath);
|
|
171
|
+
} catch (error) {
|
|
172
|
+
const code = error.code;
|
|
173
|
+
if (code !== "ENOENT" && code !== "ENOTDIR") {
|
|
174
|
+
return {
|
|
175
|
+
status: "uncertain",
|
|
176
|
+
reason: `expired provisioning owner ${owner.callID} lane liveness is unreadable: ${error instanceof Error ? error.message : String(error)}`
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
if (!_internals.removeWorktreeProvisioningOwner(identity.directory, owner.callID)) {
|
|
180
|
+
return {
|
|
181
|
+
status: "uncertain",
|
|
182
|
+
reason: `expired provisioning owner ${owner.callID} could not be removed`
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
159
188
|
return {
|
|
160
189
|
status: "protected",
|
|
161
190
|
ownerKind: "provisioning",
|
|
162
191
|
lifecycle: "active",
|
|
163
|
-
reason: owner.schemaVersion === 1 ? `legacy provisioning owner ${owner.callID} cannot disprove ownership of this same-session lane` : `provisioning owner ${owner.callID} is active for task ${identity.taskId}`
|
|
192
|
+
reason: !leaseIsLive ? `provisioning owner ${owner.callID} lease expired, but its exact lane path still exists` : owner.schemaVersion === 1 ? `legacy provisioning owner ${owner.callID} cannot disprove ownership of this same-session lane` : `provisioning owner ${owner.callID} is active for task ${identity.taskId}`
|
|
164
193
|
};
|
|
165
194
|
}
|
|
166
195
|
}
|
|
@@ -217,5 +246,6 @@ async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
|
217
246
|
return { status: "unowned" };
|
|
218
247
|
}
|
|
219
248
|
export {
|
|
220
|
-
inspectStandardWorktreeCollisionOwnership
|
|
249
|
+
inspectStandardWorktreeCollisionOwnership,
|
|
250
|
+
_internals
|
|
221
251
|
};
|