opencode-swarm 7.141.1 → 7.142.0
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/cli/{config-doctor-xs2p0xy3.js → config-doctor-7xqerhnw.js} +2 -2
- package/dist/cli/{core-znrxk8gw.js → core-nwmpg9t8.js} +1 -1
- package/dist/cli/{curation-policy-j1fbc3ry.js → curation-policy-bzk13bj2.js} +5 -5
- package/dist/cli/{curator-a95x81ek.js → curator-3wsaz7ay.js} +26 -26
- package/dist/cli/{curator-llm-factory-ak7p0scv.js → curator-llm-factory-kbkddqk2.js} +26 -26
- package/dist/cli/{evidence-summary-service-2gk48s5s.js → evidence-summary-service-wwfvpvxq.js} +9 -9
- package/dist/cli/{gate-evidence-rt9034ft.js → gate-evidence-3mazsjrq.js} +4 -4
- package/dist/cli/{guardrail-explain-4st3vc3d.js → guardrail-explain-rmz1yjzw.js} +27 -27
- package/dist/cli/{guardrail-log-vjexgpfm.js → guardrail-log-8m4dnkgd.js} +3 -3
- package/dist/cli/{hive-promoter-g9ad9vad.js → hive-promoter-ss8dm52r.js} +26 -26
- package/dist/cli/{index-q4vaar2b.js → index-0dvx8f03.js} +2 -2
- package/dist/cli/{index-w9613ace.js → index-26ynh10w.js} +6 -6
- package/dist/cli/{index-39xs96mk.js → index-2p3h7det.js} +1 -1
- package/dist/cli/{index-9d4gck4e.js → index-338zfvff.js} +58 -34
- package/dist/cli/{index-nse60anv.js → index-520ev2d7.js} +1 -1
- package/dist/cli/{index-dx1mdsrj.js → index-56knmbwf.js} +2031 -1029
- package/dist/cli/{index-ry609ctr.js → index-67vxmh1v.js} +7 -7
- package/dist/cli/{index-f1hsrgw1.js → index-78p6nvcv.js} +1 -1
- package/dist/cli/{index-hjf8pjd4.js → index-7c5xtcfm.js} +3 -3
- package/dist/cli/{index-mr397tze.js → index-8g5aa1s7.js} +2 -2
- package/dist/cli/{index-qskz8j2z.js → index-99eftm6b.js} +1 -1
- package/dist/cli/{index-z8yr1yra.js → index-ad93kz8m.js} +1 -1
- package/dist/cli/{index-g29r600w.js → index-ae0j9qpc.js} +28 -28
- package/dist/cli/{index-zqshpey0.js → index-amepv9dh.js} +3 -3
- package/dist/cli/{index-zbj3yrrd.js → index-bd2h7r2w.js} +1 -1
- package/dist/cli/{index-wbf8sv70.js → index-e4y7mfp0.js} +1 -1
- package/dist/cli/{index-c2hczjhp.js → index-em1kfnss.js} +1 -1
- package/dist/cli/{index-8056f16v.js → index-eytxcbm8.js} +3 -3
- package/dist/cli/{index-kq5p3nm3.js → index-gcn7tsr3.js} +1 -1
- package/dist/cli/{index-3d13jkzq.js → index-h2vpk15y.js} +2 -2
- package/dist/cli/{index-5ykn39wq.js → index-hgydkvty.js} +2 -2
- package/dist/cli/{index-2ygp3pnx.js → index-hncahn40.js} +5 -5
- package/dist/cli/{index-vnr917xf.js → index-kkxt9g8d.js} +3 -3
- package/dist/cli/{index-44nf5s90.js → index-mbeqw4cb.js} +1 -1
- package/dist/cli/{index-3gfdb0t9.js → index-sh3r66tt.js} +1 -1
- package/dist/cli/{index-8s4vnqts.js → index-tzbd5050.js} +4 -4
- package/dist/cli/{index-pkxt2rg2.js → index-v8f3wa0e.js} +1 -1
- package/dist/cli/{index-ysapwztd.js → index-vwyamc2d.js} +2 -2
- package/dist/cli/{index-v250345n.js → index-ycd63sz3.js} +1 -1
- package/dist/cli/{index-c6m3t5n2.js → index-z7eeq0tt.js} +6 -6
- package/dist/cli/index.js +39 -26
- package/dist/cli/{knowledge-escalator-5xg6vmr4.js → knowledge-escalator-w235g6ce.js} +10 -10
- package/dist/cli/{knowledge-events-qvzpqt5b.js → knowledge-events-amn94djz.js} +8 -8
- package/dist/cli/{knowledge-link-x86ebng8.js → knowledge-link-xned4jbm.js} +4 -4
- package/dist/cli/{knowledge-store-k5td1vqx.js → knowledge-store-3vb855ta.js} +5 -5
- package/dist/cli/{knowledge-validator-zz26gk5d.js → knowledge-validator-a8c185hw.js} +7 -7
- package/dist/cli/{pending-delegations-7xsagjy5.js → pending-delegations-8ccjby4b.js} +3 -3
- package/dist/cli/{pr-subscriptions-r6cdsa3t.js → pr-subscriptions-gn7r3bg7.js} +3 -3
- package/dist/cli/{runner-nm3baddf.js → runner-rhgkhy5e.js} +5 -5
- package/dist/cli/{scan-cursor-nhcpebh5.js → scan-cursor-vjbjm140.js} +6 -6
- package/dist/cli/{schema-6ecb0xhn.js → schema-dd8mzm6k.js} +1 -1
- package/dist/cli/{scope-persistence-yet1hvmq.js → scope-persistence-8j8d4874.js} +6 -6
- package/dist/cli/{skill-generator-j0mbd2pp.js → skill-generator-a4apb7c2.js} +12 -12
- package/dist/cli/{telemetry-zex3zv3v.js → telemetry-k9nxy24s.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-n41qw3n8.js → worktree-collision-ownership-183jk2dv.js} +3 -3
- package/dist/cli/{worktree-isolation-445zjngp.js → worktree-isolation-j71zz7g9.js} +26 -26
- package/dist/commands/hive-quarantine.d.ts +23 -0
- package/dist/commands/registry.d.ts +9 -0
- package/dist/hooks/hive-transaction.d.ts +41 -0
- package/dist/index.js +290 -277
- package/dist/knowledge/hive-quarantine.d.ts +156 -0
- package/dist/observability/catalog.d.ts +2 -2
- package/dist/telemetry.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
} from "./index-ae75rja9.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveKnowledgeStoreDir
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-gcn7tsr3.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteFile
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-em1kfnss.js";
|
|
14
14
|
import {
|
|
15
15
|
assertProjectRoot
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-bd2h7r2w.js";
|
|
17
17
|
import {
|
|
18
18
|
require_proper_lockfile
|
|
19
19
|
} from "./index-7g4c7s5r.js";
|
|
20
20
|
import {
|
|
21
21
|
loadPluginConfigWithMeta
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-ad93kz8m.js";
|
|
23
23
|
import {
|
|
24
24
|
init_logger,
|
|
25
25
|
warn
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
KnowledgeConfigSchema,
|
|
29
29
|
init_schema
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-v8f3wa0e.js";
|
|
31
31
|
import {
|
|
32
32
|
emit
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-338zfvff.js";
|
|
34
34
|
import {
|
|
35
35
|
__require,
|
|
36
36
|
__toESM
|
|
@@ -2545,7 +2545,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
let bumps = 0;
|
|
2547
2547
|
if (deltas.length > 0) {
|
|
2548
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2548
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-3vb855ta.js");
|
|
2549
2549
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2550
2550
|
}
|
|
2551
2551
|
return {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
effectiveRetrievalOutcomes,
|
|
4
4
|
readAuthoritativeKnowledgeCounterRollups
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-67vxmh1v.js";
|
|
6
6
|
import {
|
|
7
7
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
8
8
|
validateSkillPath
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-tzbd5050.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-26ynh10w.js";
|
|
17
17
|
import {
|
|
18
18
|
advisoryWarn,
|
|
19
19
|
init_warning_buffer
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-hgydkvty.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-mbeqw4cb.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,58 +84,58 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-56knmbwf.js";
|
|
88
88
|
import"./index-4905hd2m.js";
|
|
89
89
|
import"./index-ebwznsfy.js";
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
90
|
+
import"./index-78p6nvcv.js";
|
|
91
|
+
import"./index-2p3h7det.js";
|
|
92
92
|
import"./index-c8s9a3zh.js";
|
|
93
|
-
import"./index-
|
|
94
|
-
import"./index-
|
|
93
|
+
import"./index-sh3r66tt.js";
|
|
94
|
+
import"./index-z7eeq0tt.js";
|
|
95
95
|
import"./index-134d35c1.js";
|
|
96
|
-
import"./index-
|
|
96
|
+
import"./index-0dvx8f03.js";
|
|
97
97
|
import"./index-y8552snf.js";
|
|
98
98
|
import"./index-9ss2m4rs.js";
|
|
99
99
|
import"./index-74hpm6sh.js";
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
100
|
+
import"./index-7c5xtcfm.js";
|
|
101
|
+
import"./index-hncahn40.js";
|
|
102
|
+
import"./index-8g5aa1s7.js";
|
|
103
103
|
import"./index-xmzmeknp.js";
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
104
|
+
import"./index-99eftm6b.js";
|
|
105
|
+
import"./index-eytxcbm8.js";
|
|
106
106
|
import"./index-556ja8an.js";
|
|
107
|
-
import"./index-
|
|
107
|
+
import"./index-amepv9dh.js";
|
|
108
108
|
import"./index-zsrtt42s.js";
|
|
109
|
-
import"./index-
|
|
109
|
+
import"./index-e4y7mfp0.js";
|
|
110
110
|
import"./index-qwm6vdyv.js";
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
111
|
+
import"./index-h2vpk15y.js";
|
|
112
|
+
import"./index-520ev2d7.js";
|
|
113
113
|
import"./index-8fwhhayc.js";
|
|
114
114
|
import"./index-q1exe2b3.js";
|
|
115
|
-
import"./index-
|
|
115
|
+
import"./index-67vxmh1v.js";
|
|
116
116
|
import"./index-k46me75h.js";
|
|
117
117
|
import"./index-ee3x66a5.js";
|
|
118
|
-
import"./index-
|
|
119
|
-
import"./index-
|
|
118
|
+
import"./index-tzbd5050.js";
|
|
119
|
+
import"./index-ycd63sz3.js";
|
|
120
120
|
import"./index-rtry5xyf.js";
|
|
121
|
-
import"./index-
|
|
121
|
+
import"./index-26ynh10w.js";
|
|
122
122
|
import"./index-ae75rja9.js";
|
|
123
|
-
import"./index-
|
|
124
|
-
import"./index-
|
|
125
|
-
import"./index-
|
|
123
|
+
import"./index-gcn7tsr3.js";
|
|
124
|
+
import"./index-em1kfnss.js";
|
|
125
|
+
import"./index-bd2h7r2w.js";
|
|
126
126
|
import"./index-7g4c7s5r.js";
|
|
127
127
|
import"./index-ed5ykebp.js";
|
|
128
128
|
import"./index-4nt52yr9.js";
|
|
129
|
-
import"./index-
|
|
129
|
+
import"./index-vwyamc2d.js";
|
|
130
130
|
import"./index-gprxjmm7.js";
|
|
131
131
|
import"./index-n832052r.js";
|
|
132
|
-
import"./index-
|
|
132
|
+
import"./index-ad93kz8m.js";
|
|
133
133
|
import"./index-4rhhvd1a.js";
|
|
134
134
|
import"./index-zgwm4ryv.js";
|
|
135
135
|
import {
|
|
136
136
|
init_schema,
|
|
137
137
|
stripKnownSwarmPrefix
|
|
138
|
-
} from "./index-
|
|
138
|
+
} from "./index-v8f3wa0e.js";
|
|
139
139
|
import {
|
|
140
140
|
AGENT_TOOL_MAP,
|
|
141
141
|
ORCHESTRATOR_NAME,
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
} from "./index-jqsfsqbx.js";
|
|
144
144
|
import"./index-zjygnfay.js";
|
|
145
145
|
import"./index-bk5tah7q.js";
|
|
146
|
-
import"./index-
|
|
146
|
+
import"./index-338zfvff.js";
|
|
147
147
|
import"./index-bpmtbmy9.js";
|
|
148
148
|
import"./index-a76rekgs.js";
|
|
149
149
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
assertProjectRoot,
|
|
4
4
|
withEvidenceLock
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bd2h7r2w.js";
|
|
6
6
|
import {
|
|
7
7
|
ExecutionProfileSchema,
|
|
8
8
|
PlanSchema,
|
|
9
9
|
TaskStatusSchema,
|
|
10
10
|
init_loader
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-ad93kz8m.js";
|
|
12
12
|
import {
|
|
13
13
|
criticalWarn,
|
|
14
14
|
init_logger,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./index-zgwm4ryv.js";
|
|
17
17
|
import {
|
|
18
18
|
emit
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-338zfvff.js";
|
|
20
20
|
|
|
21
21
|
// src/plan/utils.ts
|
|
22
22
|
import { createHash } from "crypto";
|
|
@@ -86,7 +86,7 @@ var _internals = {
|
|
|
86
86
|
symlinkSync: fs.symlinkSync
|
|
87
87
|
},
|
|
88
88
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
89
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
89
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-8j8d4874.js");
|
|
90
90
|
return realWrite(directory, taskId, files);
|
|
91
91
|
},
|
|
92
92
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
computePlanStructureHash,
|
|
7
7
|
derivePlanId
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-amepv9dh.js";
|
|
9
9
|
import {
|
|
10
10
|
assertProjectRoot
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-bd2h7r2w.js";
|
|
12
12
|
import {
|
|
13
13
|
require_proper_lockfile
|
|
14
14
|
} from "./index-7g4c7s5r.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./index-4nt52yr9.js";
|
|
18
18
|
import {
|
|
19
19
|
PlanSchema
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-ad93kz8m.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./index-a76rekgs.js";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
atomicWriteFile,
|
|
7
7
|
taskEvidencePath,
|
|
8
8
|
withTaskEvidenceLock
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-em1kfnss.js";
|
|
10
10
|
import {
|
|
11
11
|
telemetry
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-338zfvff.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-56knmbwf.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-2p3h7det.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-67vxmh1v.js";
|
|
7
7
|
import {
|
|
8
8
|
jaccardBigram,
|
|
9
9
|
readKnowledge,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveSwarmKnowledgePath,
|
|
12
12
|
transactKnowledge,
|
|
13
13
|
wordBigrams
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-26ynh10w.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-a8c185hw.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-dd8mzm6k.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-kkxt9g8d.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vwyamc2d.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
loadPluginConfig,
|
|
43
43
|
loadPluginConfigWithMeta,
|
|
44
44
|
loadPluginConfigWithMetaAsync
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-ad93kz8m.js";
|
|
46
46
|
import"./index-4rhhvd1a.js";
|
|
47
47
|
import"./index-zgwm4ryv.js";
|
|
48
48
|
import {
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
TurboConfigSchema,
|
|
67
67
|
WorktreeIsolationConfigSchema,
|
|
68
68
|
resolveAutoReviewConfig
|
|
69
|
-
} from "./index-
|
|
69
|
+
} from "./index-v8f3wa0e.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_AGENT_NAMES,
|
|
72
72
|
ALL_SUBAGENT_NAMES,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ycd63sz3.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-26ynh10w.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-gcn7tsr3.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-em1kfnss.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.
|
|
24
|
+
version: "7.142.0",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ad93kz8m.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-v8f3wa0e.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readLinkPointer,
|
|
8
8
|
resolveKnowledgeStoreDir,
|
|
9
9
|
resolveLinkDir
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-gcn7tsr3.js";
|
|
11
11
|
|
|
12
12
|
// src/knowledge/curation-policy.ts
|
|
13
13
|
import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
EvaluationRunV1Schema,
|
|
7
7
|
GateAuditResultV1Schema,
|
|
8
8
|
getProtectedEvaluationRunIds
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-0dvx8f03.js";
|
|
10
10
|
import {
|
|
11
11
|
readEffectiveSpecSync
|
|
12
12
|
} from "./index-9ss2m4rs.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
replayFromLedgerWithStatus,
|
|
30
30
|
takeSnapshotEvent,
|
|
31
31
|
takeSnapshotWithRetry
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-amepv9dh.js";
|
|
33
33
|
import {
|
|
34
34
|
getWorktreeMergeFailure
|
|
35
35
|
} from "./index-zsrtt42s.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
readTaskEvidence,
|
|
39
39
|
readTaskEvidenceRaw,
|
|
40
40
|
sanitizeTaskId
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-h2vpk15y.js";
|
|
42
42
|
import {
|
|
43
43
|
_internals,
|
|
44
44
|
buildDefaultPolicy,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
assertProjectRoot,
|
|
55
55
|
tryAcquireLock,
|
|
56
56
|
withEvidenceLock
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-bd2h7r2w.js";
|
|
58
58
|
import {
|
|
59
59
|
invalidateCachedArtifact,
|
|
60
60
|
readCachedParsedFile
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./index-gprxjmm7.js";
|
|
72
72
|
import {
|
|
73
73
|
PlanSchema
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-ad93kz8m.js";
|
|
75
75
|
import {
|
|
76
76
|
criticalWarn,
|
|
77
77
|
error,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
} from "./index-zgwm4ryv.js";
|
|
81
81
|
import {
|
|
82
82
|
emit
|
|
83
|
-
} from "./index-
|
|
83
|
+
} from "./index-338zfvff.js";
|
|
84
84
|
import {
|
|
85
85
|
ZodError,
|
|
86
86
|
init_zod
|
package/dist/cli/index.js
CHANGED
|
@@ -1,70 +1,71 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
3
|
import {
|
|
4
|
+
COMMAND_REGISTRY,
|
|
4
5
|
VALID_COMMANDS,
|
|
5
6
|
getPluginCachePaths,
|
|
6
7
|
getPluginConfigDir,
|
|
7
8
|
getPluginLockFilePaths,
|
|
8
9
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
10
|
+
} from "./index-56knmbwf.js";
|
|
10
11
|
import"./index-4905hd2m.js";
|
|
11
12
|
import"./index-ebwznsfy.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-78p6nvcv.js";
|
|
14
|
+
import"./index-2p3h7det.js";
|
|
14
15
|
import"./index-c8s9a3zh.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-sh3r66tt.js";
|
|
17
|
+
import"./index-z7eeq0tt.js";
|
|
17
18
|
import"./index-134d35c1.js";
|
|
18
|
-
import"./index-
|
|
19
|
+
import"./index-0dvx8f03.js";
|
|
19
20
|
import"./index-y8552snf.js";
|
|
20
21
|
import"./index-9ss2m4rs.js";
|
|
21
22
|
import"./index-74hpm6sh.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-7c5xtcfm.js";
|
|
24
|
+
import"./index-hncahn40.js";
|
|
25
|
+
import"./index-8g5aa1s7.js";
|
|
25
26
|
import"./index-xmzmeknp.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-99eftm6b.js";
|
|
28
|
+
import"./index-eytxcbm8.js";
|
|
28
29
|
import"./index-556ja8an.js";
|
|
29
|
-
import"./index-
|
|
30
|
+
import"./index-amepv9dh.js";
|
|
30
31
|
import"./index-zsrtt42s.js";
|
|
31
|
-
import"./index-
|
|
32
|
+
import"./index-e4y7mfp0.js";
|
|
32
33
|
import"./index-qwm6vdyv.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-h2vpk15y.js";
|
|
35
|
+
import"./index-520ev2d7.js";
|
|
35
36
|
import"./index-8fwhhayc.js";
|
|
36
37
|
import"./index-q1exe2b3.js";
|
|
37
|
-
import"./index-
|
|
38
|
+
import"./index-67vxmh1v.js";
|
|
38
39
|
import"./index-k46me75h.js";
|
|
39
40
|
import"./index-ee3x66a5.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-tzbd5050.js";
|
|
42
|
+
import"./index-ycd63sz3.js";
|
|
42
43
|
import"./index-rtry5xyf.js";
|
|
43
|
-
import"./index-
|
|
44
|
+
import"./index-26ynh10w.js";
|
|
44
45
|
import"./index-ae75rja9.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-gcn7tsr3.js";
|
|
47
|
+
import"./index-em1kfnss.js";
|
|
48
|
+
import"./index-bd2h7r2w.js";
|
|
48
49
|
import"./index-7g4c7s5r.js";
|
|
49
50
|
import"./index-ed5ykebp.js";
|
|
50
51
|
import"./index-4nt52yr9.js";
|
|
51
|
-
import"./index-
|
|
52
|
+
import"./index-vwyamc2d.js";
|
|
52
53
|
import"./index-gprxjmm7.js";
|
|
53
54
|
import"./index-n832052r.js";
|
|
54
|
-
import"./index-
|
|
55
|
+
import"./index-ad93kz8m.js";
|
|
55
56
|
import"./index-4rhhvd1a.js";
|
|
56
57
|
import"./index-zgwm4ryv.js";
|
|
57
58
|
import {
|
|
58
59
|
init_package,
|
|
59
60
|
package_default
|
|
60
|
-
} from "./index-
|
|
61
|
+
} from "./index-v8f3wa0e.js";
|
|
61
62
|
import {
|
|
62
63
|
DEFAULT_AGENT_CONFIGS,
|
|
63
64
|
init_constants
|
|
64
65
|
} from "./index-jqsfsqbx.js";
|
|
65
66
|
import"./index-zjygnfay.js";
|
|
66
67
|
import"./index-bk5tah7q.js";
|
|
67
|
-
import"./index-
|
|
68
|
+
import"./index-338zfvff.js";
|
|
68
69
|
import"./index-bpmtbmy9.js";
|
|
69
70
|
import"./index-a76rekgs.js";
|
|
70
71
|
|
|
@@ -562,6 +563,18 @@ Valid commands: ${VALID_COMMANDS.join(", ")}`);
|
|
|
562
563
|
Valid commands: ${VALID_COMMANDS.join(", ")}`);
|
|
563
564
|
return 1;
|
|
564
565
|
}
|
|
566
|
+
let policy = resolved.entry.toolPolicy;
|
|
567
|
+
if (!policy) {
|
|
568
|
+
const aliasOf = resolved.entry.aliasOf;
|
|
569
|
+
if (aliasOf) {
|
|
570
|
+
const target = COMMAND_REGISTRY[aliasOf];
|
|
571
|
+
policy = target?.toolPolicy;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
if ((policy === "human-only" || policy === "restricted") && !process.stdout.isTTY && process.env.SWARM_ALLOW_HUMAN_ONLY_CLI !== "1") {
|
|
575
|
+
console.error(`Refusing to run human-only command '${resolved.key}' from a non-interactive shell. ` + "Run it yourself in a terminal, or set SWARM_ALLOW_HUMAN_ONLY_CLI=1 if this is an explicitly approved automation.");
|
|
576
|
+
return 1;
|
|
577
|
+
}
|
|
565
578
|
const result = await resolved.entry.handler({
|
|
566
579
|
directory: cwd,
|
|
567
580
|
args: resolved.remainingArgs,
|