opencode-swarm 7.144.0 → 7.144.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/agents/architect.d.ts +65 -0
- package/dist/agents/coder.d.ts +1 -0
- package/dist/agents/critic.d.ts +1 -0
- package/dist/agents/explorer.d.ts +1 -0
- package/dist/agents/reviewer.d.ts +1 -0
- package/dist/cli/{ast-diff-ypptrcan.js → ast-diff-wbjcazfx.js} +5 -3
- package/dist/cli/{config-doctor-7gy47evn.js → config-doctor-7dfvxwjb.js} +3 -3
- package/dist/cli/{core-cpcspaw5.js → core-dwmwdc4y.js} +2 -2
- package/dist/cli/{curator-llm-factory-fyjmgxyp.js → curator-llm-factory-rrs1q4hg.js} +20 -20
- package/dist/cli/{curator-v97jnwn2.js → curator-w213v33y.js} +20 -20
- package/dist/cli/{evidence-summary-service-79mtxzhd.js → evidence-summary-service-t7n2h1he.js} +7 -7
- package/dist/cli/{explorer-18353rhn.js → explorer-zvk5kbcb.js} +3 -1
- package/dist/cli/{gate-evidence-kgyqz1g1.js → gate-evidence-xvxn603y.js} +3 -3
- package/dist/cli/{guardrail-explain-9ry66z5g.js → guardrail-explain-v1mwsnkq.js} +21 -21
- package/dist/cli/{guardrail-log-fe6smme1.js → guardrail-log-dn03dpz2.js} +4 -4
- package/dist/cli/{hive-promoter-vwq1dbh1.js → hive-promoter-asjtj7ga.js} +20 -20
- package/dist/cli/{index-8xertnqz.js → index-333kvewd.js} +4 -4
- package/dist/cli/{index-xmzmeknp.js → index-70ha9e09.js} +2 -1
- package/dist/cli/{index-269b52r3.js → index-7ca3a6gj.js} +3 -3
- package/dist/cli/{index-5n69863d.js → index-7ryh498h.js} +1 -173
- package/dist/cli/{index-vb9cpaz4.js → index-av0f6mm0.js} +5 -5
- package/dist/cli/{index-jqabjy7t.js → index-ckrasab9.js} +4 -4
- package/dist/cli/{index-jvbfrwt2.js → index-d55crzd4.js} +1 -1
- package/dist/cli/index-ddpkwdcb.js +176 -0
- package/dist/cli/{index-1pr8x10a.js → index-dg2w0wr4.js} +3 -3
- package/dist/cli/{index-tfkfyshg.js → index-dhh2j2nd.js} +2 -7
- package/dist/cli/{index-0ck3e366.js → index-g1c5fgaw.js} +1 -1
- package/dist/cli/{index-d45yrzkg.js → index-g2ajae1z.js} +2 -2
- package/dist/cli/{index-3q9w6e6v.js → index-h3z64mhz.js} +6 -2
- package/dist/cli/{index-6p09gyra.js → index-hqvt3mhk.js} +1 -1
- package/dist/cli/{index-evvbmbbv.js → index-jb4tchvy.js} +2 -2
- package/dist/cli/{index-rd2082y4.js → index-jsfghpy2.js} +2 -2
- package/dist/cli/{index-mw6p3nt6.js → index-m6wv2qdr.js} +1 -1
- package/dist/cli/{index-ewzmjm7m.js → index-ne8cfgw5.js} +1 -1
- package/dist/cli/{index-j1scj25g.js → index-nretd4qn.js} +6659 -1725
- package/dist/cli/{index-ez18gjk2.js → index-p3tnmkvc.js} +3 -3
- package/dist/cli/{index-3v3dxf75.js → index-qpt8ahph.js} +196 -93
- package/dist/cli/{index-e70d3xr7.js → index-tg9fn2dy.js} +22 -22
- package/dist/cli/{index-jqsfsqbx.js → index-whezv7vc.js} +4 -0
- package/dist/cli/{index-4905hd2m.js → index-wx8zdh4a.js} +6 -1
- package/dist/cli/{index-d45d4zyq.js → index-y95nwsge.js} +1 -1
- package/dist/cli/{index-zv4pwyas.js → index-zr370283.js} +3 -3
- package/dist/cli/index.js +22 -36
- package/dist/cli/{knowledge-escalator-rmy3jcx4.js → knowledge-escalator-cg19dhe5.js} +7 -7
- package/dist/cli/{knowledge-events-1tqpbwvj.js → knowledge-events-yzvysaqd.js} +5 -5
- package/dist/cli/{knowledge-store-389ck792.js → knowledge-store-6f77xpmm.js} +1 -1
- package/dist/cli/{knowledge-validator-kvtk6633.js → knowledge-validator-4b28zdxa.js} +2 -2
- package/dist/cli/{runtime-te94z1zb.js → runtime-x10qb3z1.js} +3 -2
- package/dist/cli/{scan-cursor-ahgm4f5p.js → scan-cursor-nqbb1xt6.js} +2 -2
- package/dist/cli/{schema-epdq7ykx.js → schema-jj2pb6zp.js} +2 -2
- package/dist/cli/{scope-persistence-37s9n40v.js → scope-persistence-63nasq0z.js} +5 -5
- package/dist/cli/{skill-generator-4d2t5gem.js → skill-generator-nsymtdqm.js} +8 -8
- package/dist/cli/tree-sitter-431q1bka.js +26 -0
- package/dist/cli/{worktree-isolation-4628yaka.js → worktree-isolation-g54kxw6x.js} +20 -20
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/schema.d.ts +8 -0
- package/dist/hooks/review-receipt-scope.d.ts +42 -15
- package/dist/hooks/reviewer-scope-file-fingerprint.d.ts +58 -6
- package/dist/hooks/reviewer-scope-lifecycle.d.ts +9 -1
- package/dist/hooks/reviewer-scope-mergeback.d.ts +23 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +564 -522
- package/dist/memory/config.d.ts +6 -0
- package/dist/memory/consolidation.d.ts +2 -0
- package/dist/memory/gateway.d.ts +12 -1
- package/dist/memory/index.d.ts +6 -4
- package/dist/memory/jsonl-migration.d.ts +28 -3
- package/dist/memory/local-jsonl-provider.d.ts +16 -1
- package/dist/memory/maintenance.d.ts +5 -0
- package/dist/memory/memory-family-migration.d.ts +12 -0
- package/dist/memory/outcome-events.d.ts +24 -0
- package/dist/memory/provider.d.ts +7 -1
- package/dist/memory/reflection-injection.d.ts +1 -0
- package/dist/memory/reflection-service.d.ts +68 -0
- package/dist/memory/reflection.d.ts +41 -0
- package/dist/memory/schema.d.ts +13 -1
- package/dist/memory/sqlite-provider.d.ts +18 -1
- package/dist/memory/types.d.ts +19 -1
- package/dist/state.d.ts +107 -2
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/swarm-memory-outcome.d.ts +11 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-jsfghpy2.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-hqvt3mhk.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,57 +84,57 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
88
|
-
import"./index-
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
87
|
+
} from "./index-nretd4qn.js";
|
|
88
|
+
import"./index-g2ajae1z.js";
|
|
89
|
+
import"./index-jb4tchvy.js";
|
|
90
|
+
import"./index-qpt8ahph.js";
|
|
91
91
|
import"./index-134d35c1.js";
|
|
92
92
|
import"./index-b6e016tv.js";
|
|
93
93
|
import"./index-4q9vfav6.js";
|
|
94
94
|
import"./index-k92cagmt.js";
|
|
95
95
|
import"./index-y8552snf.js";
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
96
|
+
import"./index-m6wv2qdr.js";
|
|
97
|
+
import"./index-70ha9e09.js";
|
|
98
98
|
import"./index-c8s9a3zh.js";
|
|
99
99
|
import"./index-9ss2m4rs.js";
|
|
100
|
-
import"./index-
|
|
100
|
+
import"./index-d55crzd4.js";
|
|
101
101
|
import"./index-74hpm6sh.js";
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
102
|
+
import"./index-7ca3a6gj.js";
|
|
103
|
+
import"./index-av0f6mm0.js";
|
|
104
|
+
import"./index-zr370283.js";
|
|
105
|
+
import"./index-g1c5fgaw.js";
|
|
106
106
|
import"./index-556ja8an.js";
|
|
107
107
|
import"./index-gdd4jt6b.js";
|
|
108
108
|
import"./index-zsrtt42s.js";
|
|
109
109
|
import"./index-k3cxyk66.js";
|
|
110
110
|
import"./index-4fda8kkw.js";
|
|
111
|
-
import"./index-
|
|
111
|
+
import"./index-dhh2j2nd.js";
|
|
112
112
|
import"./index-8fwhhayc.js";
|
|
113
113
|
import"./index-q1exe2b3.js";
|
|
114
114
|
import"./index-7sy3aa9m.js";
|
|
115
|
-
import"./index-
|
|
116
|
-
import"./index-
|
|
117
|
-
import"./index-
|
|
115
|
+
import"./index-wx8zdh4a.js";
|
|
116
|
+
import"./index-p3tnmkvc.js";
|
|
117
|
+
import"./index-dg2w0wr4.js";
|
|
118
118
|
import"./index-gprxjmm7.js";
|
|
119
119
|
import"./index-n832052r.js";
|
|
120
|
-
import"./index-
|
|
120
|
+
import"./index-y95nwsge.js";
|
|
121
121
|
import {
|
|
122
122
|
init_schema,
|
|
123
123
|
stripKnownSwarmPrefix
|
|
124
|
-
} from "./index-
|
|
124
|
+
} from "./index-h3z64mhz.js";
|
|
125
125
|
import"./index-rn0eq85g.js";
|
|
126
126
|
import"./index-4rhhvd1a.js";
|
|
127
127
|
import {
|
|
128
128
|
AGENT_TOOL_MAP,
|
|
129
129
|
ORCHESTRATOR_NAME,
|
|
130
130
|
init_constants
|
|
131
|
-
} from "./index-
|
|
131
|
+
} from "./index-whezv7vc.js";
|
|
132
132
|
import"./index-z6xqpmqg.js";
|
|
133
133
|
import"./index-zjygnfay.js";
|
|
134
|
-
import"./index-
|
|
134
|
+
import"./index-ne8cfgw5.js";
|
|
135
135
|
import"./index-tq5s07ta.js";
|
|
136
136
|
import"./index-rtry5xyf.js";
|
|
137
|
-
import"./index-
|
|
137
|
+
import"./index-ckrasab9.js";
|
|
138
138
|
import"./index-ae75rja9.js";
|
|
139
139
|
import"./index-w7x7qxz2.js";
|
|
140
140
|
import"./index-erfnw81g.js";
|
|
@@ -749,6 +749,10 @@ var init_tool_metadata = __esm(() => {
|
|
|
749
749
|
description: "create a pending Swarm memory proposal; does not write durable memory directly",
|
|
750
750
|
agents: []
|
|
751
751
|
},
|
|
752
|
+
swarm_memory_outcome: {
|
|
753
|
+
description: "record useful, dead-end, or corrected outcomes and, when enabled, synchronously refresh deterministic memory lessons",
|
|
754
|
+
agents: []
|
|
755
|
+
},
|
|
752
756
|
swarm_command: {
|
|
753
757
|
description: "run supported /swarm commands through the canonical command registry",
|
|
754
758
|
agents: [
|
|
@@ -15,5 +15,10 @@ async function withTimeout(promise, ms, timeoutError) {
|
|
|
15
15
|
clearTimeout(timer);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
function yieldToEventLoop() {
|
|
19
|
+
return new Promise((resolve) => {
|
|
20
|
+
setTimeout(resolve, 0);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
18
23
|
|
|
19
|
-
export { withTimeout };
|
|
24
|
+
export { withTimeout, yieldToEventLoop };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-g1c5fgaw.js";
|
|
6
6
|
import {
|
|
7
7
|
unsafePathTextReason
|
|
8
8
|
} from "./index-556ja8an.js";
|
|
9
9
|
import {
|
|
10
10
|
PlanSchema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-y95nwsge.js";
|
|
12
12
|
import {
|
|
13
13
|
assertProjectRoot
|
|
14
14
|
} from "./index-k31en0ja.js";
|
|
@@ -1757,4 +1757,4 @@ function resolveScopeWithFallbacks(input) {
|
|
|
1757
1757
|
return null;
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
|
-
export { MAX_PENDING_SCOPE_BINDINGS, clearScopeBindings, writeScopeToDisk, writeScopeBindingToDisk, persistAndRegisterScopeBinding, readScopeBindingFromDisk, resolveScopeBindingFromDisk, clearScopeBindingFromDisk, tombstoneScopeBinding, refreshScopeBindingLease, claimScopeBindingForChildDurably, replaceExistingScopeDeclaration, flushScopeBindingMaintenance, pruneScopeBindingTombstones, resolveAuthorizedScopeBinding, resolveAuthorizedScopeBindingDetailed, resolveAuthorizedScopeBindingForSession, resolveAuthorizedScopeBindingForSessionDetailed, resolveAuthorizedPrFeedbackScopeBindingFromDisk, _scopePersistenceInternals, readScopeFromDisk, readPlanScope, clearScopeForTask, clearAllScopes, resolveScopeWithFallbacks };
|
|
1760
|
+
export { MAX_PENDING_SCOPE_BINDINGS, canonicalWorkspaceIdentity, clearScopeBindings, writeScopeToDisk, writeScopeBindingToDisk, persistAndRegisterScopeBinding, readScopeBindingFromDisk, resolveScopeBindingFromDisk, clearScopeBindingFromDisk, tombstoneScopeBinding, refreshScopeBindingLease, claimScopeBindingForChildDurably, replaceExistingScopeDeclaration, flushScopeBindingMaintenance, pruneScopeBindingTombstones, resolveAuthorizedScopeBinding, resolveAuthorizedScopeBindingDetailed, resolveAuthorizedScopeBindingForSession, resolveAuthorizedScopeBindingForSessionDetailed, resolveAuthorizedPrFeedbackScopeBindingFromDisk, _scopePersistenceInternals, readScopeFromDisk, readPlanScope, clearScopeForTask, clearAllScopes, resolveScopeWithFallbacks };
|
package/dist/cli/index.js
CHANGED
|
@@ -6,57 +6,58 @@ import {
|
|
|
6
6
|
getPluginCachePaths,
|
|
7
7
|
getPluginConfigDir,
|
|
8
8
|
getPluginLockFilePaths,
|
|
9
|
-
resolveCommand
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
9
|
+
resolveCommand,
|
|
10
|
+
safeRealpathSync
|
|
11
|
+
} from "./index-nretd4qn.js";
|
|
12
|
+
import"./index-g2ajae1z.js";
|
|
13
|
+
import"./index-jb4tchvy.js";
|
|
14
|
+
import"./index-qpt8ahph.js";
|
|
14
15
|
import"./index-134d35c1.js";
|
|
15
16
|
import"./index-b6e016tv.js";
|
|
16
17
|
import"./index-4q9vfav6.js";
|
|
17
18
|
import"./index-k92cagmt.js";
|
|
18
19
|
import"./index-y8552snf.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-m6wv2qdr.js";
|
|
21
|
+
import"./index-70ha9e09.js";
|
|
21
22
|
import"./index-c8s9a3zh.js";
|
|
22
23
|
import"./index-9ss2m4rs.js";
|
|
23
|
-
import"./index-
|
|
24
|
+
import"./index-d55crzd4.js";
|
|
24
25
|
import"./index-74hpm6sh.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
26
|
+
import"./index-7ca3a6gj.js";
|
|
27
|
+
import"./index-av0f6mm0.js";
|
|
28
|
+
import"./index-zr370283.js";
|
|
29
|
+
import"./index-g1c5fgaw.js";
|
|
29
30
|
import"./index-556ja8an.js";
|
|
30
31
|
import"./index-gdd4jt6b.js";
|
|
31
32
|
import"./index-zsrtt42s.js";
|
|
32
33
|
import"./index-k3cxyk66.js";
|
|
33
34
|
import"./index-4fda8kkw.js";
|
|
34
|
-
import"./index-
|
|
35
|
+
import"./index-dhh2j2nd.js";
|
|
35
36
|
import"./index-8fwhhayc.js";
|
|
36
37
|
import"./index-q1exe2b3.js";
|
|
37
38
|
import"./index-7sy3aa9m.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-wx8zdh4a.js";
|
|
40
|
+
import"./index-p3tnmkvc.js";
|
|
41
|
+
import"./index-dg2w0wr4.js";
|
|
41
42
|
import"./index-gprxjmm7.js";
|
|
42
43
|
import"./index-n832052r.js";
|
|
43
|
-
import"./index-
|
|
44
|
+
import"./index-y95nwsge.js";
|
|
44
45
|
import {
|
|
45
46
|
init_package,
|
|
46
47
|
package_default
|
|
47
|
-
} from "./index-
|
|
48
|
+
} from "./index-h3z64mhz.js";
|
|
48
49
|
import"./index-rn0eq85g.js";
|
|
49
50
|
import"./index-4rhhvd1a.js";
|
|
50
51
|
import {
|
|
51
52
|
DEFAULT_AGENT_CONFIGS,
|
|
52
53
|
init_constants
|
|
53
|
-
} from "./index-
|
|
54
|
+
} from "./index-whezv7vc.js";
|
|
54
55
|
import"./index-z6xqpmqg.js";
|
|
55
56
|
import"./index-zjygnfay.js";
|
|
56
|
-
import"./index-
|
|
57
|
+
import"./index-ne8cfgw5.js";
|
|
57
58
|
import"./index-tq5s07ta.js";
|
|
58
59
|
import"./index-rtry5xyf.js";
|
|
59
|
-
import"./index-
|
|
60
|
+
import"./index-ckrasab9.js";
|
|
60
61
|
import"./index-ae75rja9.js";
|
|
61
62
|
import"./index-w7x7qxz2.js";
|
|
62
63
|
import"./index-erfnw81g.js";
|
|
@@ -77,21 +78,6 @@ import * as os from "os";
|
|
|
77
78
|
import * as path from "path";
|
|
78
79
|
import { fileURLToPath } from "url";
|
|
79
80
|
init_constants();
|
|
80
|
-
|
|
81
|
-
// src/tools/repo-graph/safe-realpath.ts
|
|
82
|
-
import { realpathSync } from "fs";
|
|
83
|
-
function safeRealpathSync(targetPath, fallback, realpathResolver = realpathSync) {
|
|
84
|
-
try {
|
|
85
|
-
return realpathResolver(targetPath);
|
|
86
|
-
} catch (error) {
|
|
87
|
-
if (error instanceof Error && error.code === "ENOENT") {
|
|
88
|
-
return fallback;
|
|
89
|
-
}
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// src/cli/index.ts
|
|
95
81
|
var { version } = package_default;
|
|
96
82
|
var PACKAGE_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..");
|
|
97
83
|
var CONFIG_DIR = getPluginConfigDir();
|
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-av0f6mm0.js";
|
|
13
|
+
import"./index-p3tnmkvc.js";
|
|
14
|
+
import"./index-dg2w0wr4.js";
|
|
15
15
|
import"./index-gprxjmm7.js";
|
|
16
16
|
import"./index-n832052r.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
import"./index-y95nwsge.js";
|
|
18
|
+
import"./index-h3z64mhz.js";
|
|
19
19
|
import"./index-rn0eq85g.js";
|
|
20
20
|
import"./index-4rhhvd1a.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-whezv7vc.js";
|
|
22
22
|
import"./index-z6xqpmqg.js";
|
|
23
23
|
import"./index-zjygnfay.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-ckrasab9.js";
|
|
25
25
|
import"./index-ae75rja9.js";
|
|
26
26
|
import"./index-w7x7qxz2.js";
|
|
27
27
|
import"./index-erfnw81g.js";
|
|
@@ -29,15 +29,15 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-p3tnmkvc.js";
|
|
33
|
+
import"./index-dg2w0wr4.js";
|
|
34
34
|
import"./index-gprxjmm7.js";
|
|
35
35
|
import"./index-n832052r.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
import"./index-y95nwsge.js";
|
|
37
|
+
import"./index-h3z64mhz.js";
|
|
38
38
|
import"./index-rn0eq85g.js";
|
|
39
39
|
import"./index-4rhhvd1a.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-whezv7vc.js";
|
|
41
41
|
import"./index-z6xqpmqg.js";
|
|
42
42
|
import"./index-zjygnfay.js";
|
|
43
43
|
import"./index-ae75rja9.js";
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-ne8cfgw5.js";
|
|
27
27
|
import"./index-tq5s07ta.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-ckrasab9.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-w7x7qxz2.js";
|
|
32
32
|
import"./index-erfnw81g.js";
|
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
loadGrammar,
|
|
9
9
|
parserCache,
|
|
10
10
|
resolveGrammarsDir
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-ddpkwdcb.js";
|
|
12
|
+
import"./index-7ryh498h.js";
|
|
13
|
+
import"./index-wx8zdh4a.js";
|
|
13
14
|
import"./index-a76rekgs.js";
|
|
14
15
|
export {
|
|
15
16
|
resolveGrammarsDir,
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-m6wv2qdr.js";
|
|
8
|
+
import"./index-ckrasab9.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-w7x7qxz2.js";
|
|
11
11
|
import"./index-erfnw81g.js";
|
|
@@ -96,8 +96,8 @@ import {
|
|
|
96
96
|
resolveGeneratedAgentRole,
|
|
97
97
|
resolveGuardrailsConfig,
|
|
98
98
|
stripKnownSwarmPrefix
|
|
99
|
-
} from "./index-
|
|
100
|
-
import"./index-
|
|
99
|
+
} from "./index-h3z64mhz.js";
|
|
100
|
+
import"./index-whezv7vc.js";
|
|
101
101
|
import"./index-zjygnfay.js";
|
|
102
102
|
import"./index-bk5tah7q.js";
|
|
103
103
|
import"./index-bpmtbmy9.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-zr370283.js";
|
|
27
|
+
import"./index-g1c5fgaw.js";
|
|
28
28
|
import"./index-556ja8an.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-y95nwsge.js";
|
|
30
|
+
import"./index-h3z64mhz.js";
|
|
31
31
|
import"./index-4rhhvd1a.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-whezv7vc.js";
|
|
33
33
|
import"./index-zjygnfay.js";
|
|
34
34
|
import"./index-bk5tah7q.js";
|
|
35
35
|
import"./index-k31en0ja.js";
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-7ca3a6gj.js";
|
|
37
|
+
import"./index-p3tnmkvc.js";
|
|
38
|
+
import"./index-dg2w0wr4.js";
|
|
39
39
|
import"./index-gprxjmm7.js";
|
|
40
40
|
import"./index-n832052r.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
41
|
+
import"./index-y95nwsge.js";
|
|
42
|
+
import"./index-h3z64mhz.js";
|
|
43
43
|
import"./index-rn0eq85g.js";
|
|
44
44
|
import"./index-4rhhvd1a.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-whezv7vc.js";
|
|
46
46
|
import"./index-z6xqpmqg.js";
|
|
47
47
|
import"./index-zjygnfay.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-ne8cfgw5.js";
|
|
49
49
|
import"./index-tq5s07ta.js";
|
|
50
50
|
import"./index-rtry5xyf.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-ckrasab9.js";
|
|
52
52
|
import"./index-ae75rja9.js";
|
|
53
53
|
import"./index-w7x7qxz2.js";
|
|
54
54
|
import"./index-erfnw81g.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CaptureQuantifier,
|
|
4
|
+
LANGUAGE_VERSION,
|
|
5
|
+
Language,
|
|
6
|
+
LookaheadIterator,
|
|
7
|
+
MIN_COMPATIBLE_VERSION,
|
|
8
|
+
Node,
|
|
9
|
+
Parser,
|
|
10
|
+
Query,
|
|
11
|
+
Tree,
|
|
12
|
+
TreeCursor
|
|
13
|
+
} from "./index-7ryh498h.js";
|
|
14
|
+
import"./index-a76rekgs.js";
|
|
15
|
+
export {
|
|
16
|
+
TreeCursor,
|
|
17
|
+
Tree,
|
|
18
|
+
Query,
|
|
19
|
+
Parser,
|
|
20
|
+
Node,
|
|
21
|
+
MIN_COMPATIBLE_VERSION,
|
|
22
|
+
LookaheadIterator,
|
|
23
|
+
Language,
|
|
24
|
+
LANGUAGE_VERSION,
|
|
25
|
+
CaptureQuantifier
|
|
26
|
+
};
|
|
@@ -20,52 +20,52 @@ import {
|
|
|
20
20
|
sanitizeWorktreeTaskId,
|
|
21
21
|
standardWorktreeByCallID,
|
|
22
22
|
standardWorktreeSerializationSessions
|
|
23
|
-
} from "./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
23
|
+
} from "./index-nretd4qn.js";
|
|
24
|
+
import"./index-g2ajae1z.js";
|
|
25
|
+
import"./index-jb4tchvy.js";
|
|
26
|
+
import"./index-qpt8ahph.js";
|
|
27
27
|
import"./index-134d35c1.js";
|
|
28
28
|
import"./index-b6e016tv.js";
|
|
29
29
|
import"./index-4q9vfav6.js";
|
|
30
30
|
import"./index-k92cagmt.js";
|
|
31
31
|
import"./index-y8552snf.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-m6wv2qdr.js";
|
|
33
|
+
import"./index-70ha9e09.js";
|
|
34
34
|
import"./index-c8s9a3zh.js";
|
|
35
35
|
import"./index-9ss2m4rs.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-d55crzd4.js";
|
|
37
37
|
import"./index-74hpm6sh.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
38
|
+
import"./index-7ca3a6gj.js";
|
|
39
|
+
import"./index-av0f6mm0.js";
|
|
40
|
+
import"./index-zr370283.js";
|
|
41
|
+
import"./index-g1c5fgaw.js";
|
|
42
42
|
import"./index-556ja8an.js";
|
|
43
43
|
import"./index-gdd4jt6b.js";
|
|
44
44
|
import"./index-zsrtt42s.js";
|
|
45
45
|
import"./index-k3cxyk66.js";
|
|
46
46
|
import"./index-4fda8kkw.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-dhh2j2nd.js";
|
|
48
48
|
import"./index-8fwhhayc.js";
|
|
49
49
|
import"./index-q1exe2b3.js";
|
|
50
50
|
import"./index-7sy3aa9m.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
51
|
+
import"./index-wx8zdh4a.js";
|
|
52
|
+
import"./index-p3tnmkvc.js";
|
|
53
53
|
import {
|
|
54
54
|
resolveWorktreeIsolationConfig
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-dg2w0wr4.js";
|
|
56
56
|
import"./index-gprxjmm7.js";
|
|
57
57
|
import"./index-n832052r.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-y95nwsge.js";
|
|
59
|
+
import"./index-h3z64mhz.js";
|
|
60
60
|
import"./index-rn0eq85g.js";
|
|
61
61
|
import"./index-4rhhvd1a.js";
|
|
62
|
-
import"./index-
|
|
62
|
+
import"./index-whezv7vc.js";
|
|
63
63
|
import"./index-z6xqpmqg.js";
|
|
64
64
|
import"./index-zjygnfay.js";
|
|
65
|
-
import"./index-
|
|
65
|
+
import"./index-ne8cfgw5.js";
|
|
66
66
|
import"./index-tq5s07ta.js";
|
|
67
67
|
import"./index-rtry5xyf.js";
|
|
68
|
-
import"./index-
|
|
68
|
+
import"./index-ckrasab9.js";
|
|
69
69
|
import"./index-ae75rja9.js";
|
|
70
70
|
import"./index-w7x7qxz2.js";
|
|
71
71
|
import"./index-erfnw81g.js";
|
|
@@ -5,7 +5,7 @@ export type { AgentName, PipelineAgentName, QAAgentName } from './agent-names';
|
|
|
5
5
|
export { ALL_AGENT_NAMES, ALL_SUBAGENT_NAMES, ORCHESTRATOR_NAME, PIPELINE_AGENTS, QA_AGENTS, } from './agent-names';
|
|
6
6
|
export declare const OPENCODE_NATIVE_AGENTS: Set<"plan" | "summary" | "compaction" | "title" | "build" | "general" | "explore">;
|
|
7
7
|
export declare const CLAUDE_CODE_NATIVE_COMMANDS: ReadonlySet<string>;
|
|
8
|
-
export declare const MEMORY_TOOL_NAMES: readonly ["swarm_memory_recall", "swarm_memory_propose"];
|
|
8
|
+
export declare const MEMORY_TOOL_NAMES: readonly ["swarm_memory_recall", "swarm_memory_propose", "swarm_memory_outcome"];
|
|
9
9
|
export declare const MEMORY_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>>;
|
|
10
10
|
export declare const EXTERNAL_SKILL_TOOL_NAMES: readonly ["external_skill_discover", "external_skill_list", "external_skill_inspect", "external_skill_promote", "external_skill_reject", "external_skill_delete", "external_skill_revoke"];
|
|
11
11
|
export declare const EXTERNAL_SKILL_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>>;
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -816,6 +816,10 @@ export declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
816
816
|
tokenBudget: z.ZodDefault<z.ZodNumber>;
|
|
817
817
|
}, z.core.$strip>>;
|
|
818
818
|
}, z.core.$strip>>;
|
|
819
|
+
reflection: z.ZodDefault<z.ZodObject<{
|
|
820
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
821
|
+
halfLifeDays: z.ZodDefault<z.ZodNumber>;
|
|
822
|
+
}, z.core.$strip>>;
|
|
819
823
|
learning: z.ZodDefault<z.ZodObject<{
|
|
820
824
|
learningRate: z.ZodDefault<z.ZodNumber>;
|
|
821
825
|
propagationFactor: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2199,6 +2203,10 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
2199
2203
|
tokenBudget: z.ZodDefault<z.ZodNumber>;
|
|
2200
2204
|
}, z.core.$strip>>;
|
|
2201
2205
|
}, z.core.$strip>>;
|
|
2206
|
+
reflection: z.ZodDefault<z.ZodObject<{
|
|
2207
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2208
|
+
halfLifeDays: z.ZodDefault<z.ZodNumber>;
|
|
2209
|
+
}, z.core.$strip>>;
|
|
2202
2210
|
learning: z.ZodDefault<z.ZodObject<{
|
|
2203
2211
|
learningRate: z.ZodDefault<z.ZodNumber>;
|
|
2204
2212
|
propagationFactor: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1,25 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Canonical scope construction for Stage-B reviewer receipts.
|
|
2
|
+
* Canonical scope construction for Stage-B reviewer receipts (v2, issue #2100).
|
|
3
3
|
*
|
|
4
4
|
* The architect-authored reviewer prompt is not authoritative scope: it can
|
|
5
5
|
* omit files that the coder actually changed. Guardrails records every
|
|
6
|
-
* write-tool target
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* the working-file bytes
|
|
6
|
+
* write-tool target on the coder generation, so receipts fingerprint an exact
|
|
7
|
+
* manifest of repository HEAD, the canonical workspace identity, those paths,
|
|
8
|
+
* and their complete current bytes (streamed SHA-256 — no byte caps). A base
|
|
9
|
+
* change therefore invalidates the receipt even when the working-file bytes
|
|
10
|
+
* happen to remain identical.
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* The inline payload budget (`maxBytes`) selects a per-file DELIVERY MODE only
|
|
13
|
+
* — it never decides which files enter the manifest and never changes the
|
|
14
|
+
* manifest digest. Unsafe paths, symlink/reparse points, non-regular files,
|
|
15
|
+
* and concurrent mutation fail toward typed results; transient classes
|
|
16
|
+
* (HEAD timeout/race, capture races, capture deadline) are retryable.
|
|
14
17
|
*/
|
|
15
18
|
import * as child_process from 'node:child_process';
|
|
16
19
|
import * as fs from 'node:fs';
|
|
17
|
-
export declare const REVIEWER_TASK_SCOPE_DESCRIPTION = "reviewer-task-files-
|
|
20
|
+
export declare const REVIEWER_TASK_SCOPE_DESCRIPTION = "reviewer-task-files-v2";
|
|
21
|
+
export declare const REVIEWER_TASK_SCOPE_HEADER = "opencode-swarm-reviewer-task-scope-v2";
|
|
22
|
+
export interface ReviewerTaskScopeDeliveryEntry {
|
|
23
|
+
path: string;
|
|
24
|
+
mode: 'inline' | 'manual';
|
|
25
|
+
}
|
|
18
26
|
export interface ReviewerTaskScope {
|
|
19
27
|
content: string;
|
|
20
|
-
|
|
28
|
+
/** Manifest version discriminator — `reviewer-task-files-v2` for live builds; legacy v1 values only reach us from persisted data. */
|
|
29
|
+
description: string;
|
|
21
30
|
files: string[];
|
|
22
31
|
headSha: string;
|
|
32
|
+
/** Canonical workspace identity the manifest bytes were captured from. */
|
|
33
|
+
workspaceIdentity: string;
|
|
34
|
+
/** Per-file delivery mode — advisory prompt metadata, never part of the digest. */
|
|
35
|
+
delivery: ReviewerTaskScopeDeliveryEntry[];
|
|
23
36
|
taskId?: string;
|
|
24
37
|
coderCallID?: string;
|
|
25
38
|
generation?: number;
|
|
@@ -41,6 +54,17 @@ export interface ResolveReviewerTaskScopeOptions {
|
|
|
41
54
|
/** Injectable clock used only for deterministic expiry tests. */
|
|
42
55
|
now?: number;
|
|
43
56
|
}
|
|
57
|
+
export type ReviewerScopeBuildFailureCode = 'no_files' | 'too_many_files' | 'invalid_budget' | 'invalid_path' | 'workspace_unresolvable' | 'head_timeout' | 'head_changed' | 'outside_workspace' | 'symlink_or_reparse' | 'non_regular' | 'unreadable' | 'file_changed_during_capture' | 'capture_deadline';
|
|
58
|
+
export type ReviewerScopeBuildResult = {
|
|
59
|
+
ok: true;
|
|
60
|
+
scope: ReviewerTaskScope;
|
|
61
|
+
} | {
|
|
62
|
+
ok: false;
|
|
63
|
+
code: ReviewerScopeBuildFailureCode;
|
|
64
|
+
retryable: boolean;
|
|
65
|
+
file?: string;
|
|
66
|
+
detail?: string;
|
|
67
|
+
};
|
|
44
68
|
/**
|
|
45
69
|
* Resolve the exact known plan task carried by reviewer/coder Task arguments.
|
|
46
70
|
*
|
|
@@ -58,14 +82,17 @@ export declare function resolveReviewerScopeTaskId(directory: string, args: unkn
|
|
|
58
82
|
export declare const _internals: {
|
|
59
83
|
spawn: typeof child_process.spawn;
|
|
60
84
|
realpath: typeof fs.promises.realpath;
|
|
61
|
-
lstatBigInt: (path: fs.PathLike) => Promise<fs.BigIntStats>;
|
|
62
|
-
open: typeof fs.promises.open;
|
|
63
|
-
fileHandleStatBigInt: (handle: fs.promises.FileHandle) => Promise<fs.BigIntStats>;
|
|
64
85
|
};
|
|
65
86
|
/**
|
|
66
|
-
* Build the exact
|
|
87
|
+
* Build the exact reviewer-task manifest for a guardrails-observed file list.
|
|
88
|
+
*
|
|
89
|
+
* Every regular file contributes its COMPLETE byte count and SHA-256 (streamed
|
|
90
|
+
* capture); the payload budget only selects per-file delivery mode. Transient
|
|
91
|
+
* failures return typed retryable results; the caller owns bounded retry.
|
|
67
92
|
*/
|
|
68
|
-
export declare function buildReviewerTaskScope(directory: string, modifiedFiles: readonly string[], maxBytes?: number, provenance?: ReviewerTaskScopeProvenance
|
|
93
|
+
export declare function buildReviewerTaskScope(directory: string, modifiedFiles: readonly string[], maxBytes?: number, provenance?: ReviewerTaskScopeProvenance, options?: {
|
|
94
|
+
deadlineAt?: number;
|
|
95
|
+
}): Promise<ReviewerScopeBuildResult>;
|
|
69
96
|
/**
|
|
70
97
|
* Resolve scope only from the architect session's guardrails-owned task state.
|
|
71
98
|
* Receipt collection consumes the completed coder handoff exactly once; direct
|