opencode-swarm 7.123.0 → 7.125.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/.opencode/skills/critic-gate/SKILL.md +8 -0
- package/.opencode/skills/swarm/SKILL.md +12 -8
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +252 -62
- package/.opencode/skills/swarm-pr-review/SKILL.md +242 -76
- package/README.md +6 -1
- package/dist/background/lane-output-store.d.ts +10 -0
- package/dist/background/pending-delegations.d.ts +3 -0
- package/dist/background/workspace-snapshot.d.ts +59 -0
- package/dist/cli/{config-doctor-3ksh1534.js → config-doctor-be9sxqx8.js} +6 -6
- package/dist/cli/{core-cwgb7ev8.js → core-d38hc85b.js} +4 -4
- package/dist/cli/{curation-policy-4j4qce5a.js → curation-policy-52kt6d7t.js} +2 -2
- package/dist/cli/{curator-drift-6b2fjsgr.js → curator-drift-h9a2sjvf.js} +7 -7
- package/dist/cli/{curator-tkyn9bzz.js → curator-hbst8nbc.js} +32 -30
- package/dist/cli/curator-llm-factory-frde1955.js +54 -0
- package/dist/cli/{dispatch-07jgc3hn.js → dispatch-f4hj1cj7.js} +3 -3
- package/dist/cli/{evidence-summary-service-96ndczbk.js → evidence-summary-service-9hq7n9k9.js} +12 -12
- package/dist/cli/{gate-evidence-xqks3kk2.js → gate-evidence-cy2te3x8.js} +2 -2
- package/dist/cli/guardrail-explain-112kqmbc.js +55 -0
- package/dist/cli/guardrail-log-c8zcab91.js +16 -0
- package/dist/cli/hive-promoter-448xs2tp.js +69 -0
- package/dist/cli/{index-hns7xjm7.js → index-09vd53pz.js} +4 -2
- package/dist/cli/{pending-delegations-68cbaqv2.js → index-0cz1ws47.js} +9 -21
- package/dist/cli/{index-det5jwfk.js → index-0y6tmm9v.js} +5 -1
- package/dist/cli/index-134d35c1.js +116 -0
- package/dist/cli/{index-m1abzg93.js → index-1kz6da87.js} +4 -2
- package/dist/cli/{index-22e127jw.js → index-23zsx7dm.js} +5 -3
- package/dist/cli/{index-kzj3fp7c.js → index-2445sx3d.js} +1 -1
- package/dist/cli/{index-ctpgsj84.js → index-2tn5h2zp.js} +1 -1
- package/dist/cli/{index-6xnxz6z0.js → index-3x761jqv.js} +4 -2
- package/dist/cli/{index-7cspygmb.js → index-4rzzzjtg.js} +11 -8
- package/dist/cli/{index-cqsak7bf.js → index-67hqr2zv.js} +1 -1
- package/dist/cli/{index-nprawcc0.js → index-6n2jpz7x.js} +1 -1
- package/dist/cli/{index-19zn67q6.js → index-6vfvc36k.js} +5 -1
- package/dist/cli/{index-6sgqnvpw.js → index-7j3sm7h8.js} +2 -2
- package/dist/cli/{index-2j25br0p.js → index-958hf0yr.js} +9 -9
- package/dist/cli/{index-j9kxwshw.js → index-99ed0h32.js} +8 -6
- package/dist/cli/{index-7g91saha.js → index-9hbwa5x1.js} +40 -32
- package/dist/cli/{index-jyrhy4ww.js → index-amspa811.js} +3179 -1557
- package/dist/cli/index-bk5tah7q.js +19 -0
- package/dist/cli/{index-293f68mj.js → index-bpmtbmy9.js} +4680 -4342
- package/dist/cli/{index-m0bmh3w0.js → index-dx2c2wjt.js} +2 -2
- package/dist/cli/{index-ye3fndsw.js → index-gacm5s2n.js} +9 -5
- package/dist/cli/{index-d6h5hq91.js → index-gnvg72y1.js} +2 -2
- package/dist/cli/{index-17eybc3z.js → index-jh6s75f6.js} +1 -1
- package/dist/cli/{index-vcgfqd8f.js → index-k5jrywpr.js} +4 -2
- package/dist/cli/{index-3rr0ese8.js → index-kt0awv1n.js} +41 -9
- package/dist/cli/index-mg54y5gc.js +564 -0
- package/dist/cli/{index-dywekeen.js → index-n6chz2g8.js} +1 -1
- package/dist/cli/{index-gnp9x6se.js → index-n832052r.js} +4 -2
- package/dist/cli/{index-816rkp4y.js → index-s9mj4rb9.js} +5 -3
- package/dist/cli/{index-gw3m5fw0.js → index-v2rdhwx8.js} +5 -3
- package/dist/cli/{index-q00e4s1s.js → index-vtwqjr4z.js} +11 -7
- package/dist/cli/index-xattnmyb.js +2502 -0
- package/dist/cli/{index-n2712byd.js → index-yt1v62pv.js} +8 -5
- package/dist/cli/{index-5e4e2hvv.js → index-z6xqpmqg.js} +4 -0
- package/dist/cli/{index-p0arc26j.js → index-zjygnfay.js} +7 -2
- package/dist/cli/index.js +35 -31
- package/dist/cli/{knowledge-escalator-dyxsm78k.js → knowledge-escalator-htafbhxg.js} +4 -4
- package/dist/cli/{knowledge-events-36q6nvae.js → knowledge-events-havw8c4t.js} +1 -1
- package/dist/cli/{knowledge-store-e07b4s54.js → knowledge-store-hqngpt2v.js} +2 -2
- package/dist/cli/{knowledge-validator-sfyf7wn2.js → knowledge-validator-g7mpnazh.js} +5 -5
- package/dist/cli/pending-delegations-7j8xqg5f.js +34 -0
- package/dist/cli/{pr-subscriptions-x653151h.js → pr-subscriptions-bxpqde8w.js} +5 -5
- package/dist/cli/{scan-cursor-hm0aqqae.js → scan-cursor-sx7cvh8v.js} +3 -3
- package/dist/cli/{schema-13bnng2n.js → schema-2418eqy3.js} +7 -4
- package/dist/cli/{scope-persistence-d9erwnvb.js → scope-persistence-habn4q8a.js} +4 -4
- package/dist/cli/{skill-generator-63r20a9k.js → skill-generator-zggy797r.js} +7 -7
- package/dist/cli/sqlite-loader-r1kgt2pq.js +12 -0
- package/dist/cli/workspace-snapshot-c9pxxt9a.js +48 -0
- package/dist/commands/memory-link.d.ts +28 -0
- package/dist/commands/registry.d.ts +26 -1
- package/dist/config/schema.d.ts +6 -0
- package/dist/hooks/pr-workflow-gate.d.ts +211 -0
- package/dist/hooks/pr-workflow-response-gate.d.ts +23 -0
- package/dist/hooks/pr-workflow-session-resolver.d.ts +14 -0
- package/dist/index.js +496 -451
- package/dist/knowledge/family-migration-shared.d.ts +24 -0
- package/dist/knowledge/family-migration.d.ts +5 -0
- package/dist/memory/config.d.ts +11 -0
- package/dist/memory/consolidation-log.d.ts +8 -2
- package/dist/memory/finalize-reward-sweep.d.ts +2 -1
- package/dist/memory/gateway.d.ts +13 -0
- package/dist/memory/index.d.ts +4 -2
- package/dist/memory/local-jsonl-provider.d.ts +25 -1
- package/dist/memory/memory-family-manifest.d.ts +52 -0
- package/dist/memory/memory-family-migration.d.ts +94 -0
- package/dist/memory/memory-link.d.ts +103 -0
- package/dist/memory/provider-pool.d.ts +35 -0
- package/dist/memory/redaction.d.ts +31 -0
- package/dist/memory/schema.d.ts +21 -0
- package/dist/memory/sqlite-provider.d.ts +58 -1
- package/dist/memory/storage-root.d.ts +93 -0
- package/dist/memory/types.d.ts +20 -1
- package/dist/services/knowledge-diagnostics.d.ts +25 -0
- package/dist/services/status-service.d.ts +16 -0
- package/dist/tools/complete-pr-workflow.d.ts +5 -0
- package/dist/tools/dispatch-lanes.d.ts +44 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/manifest.d.ts +2 -0
- package/dist/tools/run-pr-feedback-stage-a.d.ts +69 -0
- package/dist/tools/tool-metadata.d.ts +8 -0
- package/dist/tools/write-pr-review-trigger-eval.d.ts +56 -46
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-mfvd4sqx.js +0 -52
- package/dist/cli/guardrail-explain-4vytbchb.js +0 -53
- package/dist/cli/guardrail-log-z291m4gw.js +0 -16
- package/dist/cli/hive-promoter-y5wsztkc.js +0 -67
- package/dist/cli/index-4rhcth7a.js +0 -14
- package/dist/cli/index-dqh3zhhc.js +0 -133
- package/dist/cli/index-wr8qgpz5.js +0 -2463
- package/dist/cli/workspace-snapshot-eyf6gd0d.js +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-67hqr2zv.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-yt1v62pv.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
15
|
} from "./index-q27bajqb.js";
|
|
@@ -3,12 +3,11 @@ import {
|
|
|
3
3
|
init_logger,
|
|
4
4
|
log
|
|
5
5
|
} from "./index-zgwm4ryv.js";
|
|
6
|
+
import {
|
|
7
|
+
__esm
|
|
8
|
+
} from "./index-a76rekgs.js";
|
|
6
9
|
|
|
7
10
|
// src/services/warning-buffer.ts
|
|
8
|
-
init_logger();
|
|
9
|
-
var deferredWarnings = [];
|
|
10
|
-
var MAX_DEFERRED_WARNINGS = 50;
|
|
11
|
-
var deferredWarningsTruncated = false;
|
|
12
11
|
function addDeferredWarning(warning) {
|
|
13
12
|
if (deferredWarnings.length < MAX_DEFERRED_WARNINGS - 1) {
|
|
14
13
|
deferredWarnings.push(warning);
|
|
@@ -26,5 +25,10 @@ function advisoryWarn(message, data) {
|
|
|
26
25
|
function getDeferredWarnings() {
|
|
27
26
|
return [...deferredWarnings];
|
|
28
27
|
}
|
|
28
|
+
var deferredWarnings, MAX_DEFERRED_WARNINGS = 50, deferredWarningsTruncated = false;
|
|
29
|
+
var init_warning_buffer = __esm(() => {
|
|
30
|
+
init_logger();
|
|
31
|
+
deferredWarnings = [];
|
|
32
|
+
});
|
|
29
33
|
|
|
30
|
-
export { advisoryWarn, getDeferredWarnings };
|
|
34
|
+
export { advisoryWarn, getDeferredWarnings, init_warning_buffer };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-2tn5h2zp.js";
|
|
6
6
|
import {
|
|
7
7
|
PlanSchema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-1kz6da87.js";
|
|
9
9
|
import {
|
|
10
10
|
require_proper_lockfile
|
|
11
11
|
} from "./index-7g4c7s5r.js";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
exports_external
|
|
4
|
-
|
|
3
|
+
exports_external,
|
|
4
|
+
init_zod
|
|
5
|
+
} from "./index-bpmtbmy9.js";
|
|
5
6
|
|
|
6
7
|
// src/config/evidence-schema.ts
|
|
8
|
+
init_zod();
|
|
7
9
|
var EVIDENCE_MAX_JSON_BYTES = 500 * 1024;
|
|
8
10
|
var EVIDENCE_MAX_PATCH_BYTES = 5 * 1024 * 1024;
|
|
9
11
|
var EVIDENCE_MAX_TASK_BYTES = 20 * 1024 * 1024;
|
|
@@ -5,22 +5,39 @@ import {
|
|
|
5
5
|
GATE_CONFIG_KNOWN_SECTION_KEYS,
|
|
6
6
|
GateConfigSchema,
|
|
7
7
|
PluginConfigSchema,
|
|
8
|
+
init_constants,
|
|
9
|
+
init_schema,
|
|
8
10
|
resolveExternalSkillsConfig
|
|
9
|
-
} from "./index-
|
|
11
|
+
} from "./index-xattnmyb.js";
|
|
10
12
|
import {
|
|
11
|
-
advisoryWarn
|
|
12
|
-
|
|
13
|
+
advisoryWarn,
|
|
14
|
+
init_warning_buffer
|
|
15
|
+
} from "./index-gacm5s2n.js";
|
|
13
16
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
MAX_MERGE_DEPTH,
|
|
18
|
+
deepMerge,
|
|
19
|
+
init_merge
|
|
20
|
+
} from "./index-zjygnfay.js";
|
|
21
|
+
import {
|
|
22
|
+
__esm,
|
|
23
|
+
__export
|
|
24
|
+
} from "./index-a76rekgs.js";
|
|
25
|
+
|
|
16
26
|
// src/config/loader.ts
|
|
27
|
+
var exports_loader = {};
|
|
28
|
+
__export(exports_loader, {
|
|
29
|
+
loadPluginConfigWithMetaAsync: () => loadPluginConfigWithMetaAsync,
|
|
30
|
+
loadPluginConfigWithMeta: () => loadPluginConfigWithMeta,
|
|
31
|
+
loadPluginConfig: () => loadPluginConfig,
|
|
32
|
+
loadAgentPrompt: () => loadAgentPrompt,
|
|
33
|
+
deepMerge: () => deepMerge,
|
|
34
|
+
MAX_MERGE_DEPTH: () => MAX_MERGE_DEPTH,
|
|
35
|
+
MAX_CONFIG_FILE_BYTES: () => MAX_CONFIG_FILE_BYTES
|
|
36
|
+
});
|
|
17
37
|
import * as fs from "fs";
|
|
18
38
|
import * as fsPromises from "fs/promises";
|
|
19
39
|
import * as os from "os";
|
|
20
40
|
import * as path from "path";
|
|
21
|
-
var CONFIG_FILENAME = "opencode-swarm.json";
|
|
22
|
-
var PROMPTS_DIR_NAME = "opencode-swarm";
|
|
23
|
-
var MAX_CONFIG_FILE_BYTES = 102400;
|
|
24
41
|
function getUserConfigDir() {
|
|
25
42
|
return process.env.XDG_CONFIG_HOME || path.join(os.homedir(), ".config");
|
|
26
43
|
}
|
|
@@ -361,7 +378,22 @@ function loadAgentPrompt(agentName) {
|
|
|
361
378
|
}
|
|
362
379
|
return result;
|
|
363
380
|
}
|
|
381
|
+
var CONFIG_FILENAME = "opencode-swarm.json", PROMPTS_DIR_NAME = "opencode-swarm", MAX_CONFIG_FILE_BYTES = 102400;
|
|
382
|
+
var init_loader = __esm(() => {
|
|
383
|
+
init_warning_buffer();
|
|
384
|
+
init_schema();
|
|
385
|
+
init_merge();
|
|
386
|
+
init_merge();
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
// src/config/index.ts
|
|
390
|
+
init_constants();
|
|
391
|
+
init_loader();
|
|
392
|
+
init_loader();
|
|
393
|
+
init_schema();
|
|
394
|
+
|
|
364
395
|
// src/config/worktree-isolation-config.ts
|
|
396
|
+
init_constants();
|
|
365
397
|
function resolveWorktreeIsolationConfig(config) {
|
|
366
398
|
if (config.worktree) {
|
|
367
399
|
return { ...DEFAULT_WORKTREE_ISOLATION_CONFIG, ...config.worktree };
|
|
@@ -383,4 +415,4 @@ function resolveWorktreeIsolationConfig(config) {
|
|
|
383
415
|
// src/config/index.ts
|
|
384
416
|
var _internals = { loadPluginConfigWithMeta };
|
|
385
417
|
|
|
386
|
-
export { loadPluginConfig, loadPluginConfigWithMeta, loadPluginConfigWithMetaAsync, loadAgentPrompt, resolveWorktreeIsolationConfig, _internals };
|
|
418
|
+
export { loadPluginConfig, loadPluginConfigWithMeta, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader, resolveWorktreeIsolationConfig, _internals };
|