opencode-swarm 7.143.3 → 7.143.4

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.
Files changed (48) hide show
  1. package/dist/cli/{config-doctor-ddbwxt14.js → config-doctor-az6nqawx.js} +2 -2
  2. package/dist/cli/{core-gfk2tsre.js → core-a6rzajem.js} +1 -1
  3. package/dist/cli/{curator-llm-factory-z23scnwb.js → curator-llm-factory-j42j5rcr.js} +17 -17
  4. package/dist/cli/{curator-hkcd03bx.js → curator-tbw9przg.js} +17 -17
  5. package/dist/cli/{evidence-summary-service-cbhsye6e.js → evidence-summary-service-3f319cst.js} +6 -6
  6. package/dist/cli/{gate-evidence-5xd9j34y.js → gate-evidence-k2yycngf.js} +2 -2
  7. package/dist/cli/{guardrail-explain-49vn7rv6.js → guardrail-explain-tsgsw91f.js} +18 -18
  8. package/dist/cli/{guardrail-log-ghymef5s.js → guardrail-log-70cxb3va.js} +3 -3
  9. package/dist/cli/{hive-promoter-akf3x240.js → hive-promoter-nksqxfs4.js} +17 -17
  10. package/dist/cli/{index-9py8e0dk.js → index-19wyta2k.js} +3 -3
  11. package/dist/cli/{index-etxy4vz9.js → index-5qqyvwqw.js} +4 -4
  12. package/dist/cli/{index-vdkywste.js → index-6htwcbxh.js} +1 -1
  13. package/dist/cli/{index-ds7j4hth.js → index-8fq18k02.js} +3 -3
  14. package/dist/cli/{index-e1feasna.js → index-8qmnqd6g.js} +1 -1
  15. package/dist/cli/{index-6cgp4ska.js → index-9m5gz9ea.js} +2 -2
  16. package/dist/cli/{index-xq2effek.js → index-bt47jrhx.js} +2 -2
  17. package/dist/cli/{index-30yyh3m0.js → index-c9d5y70c.js} +3 -3
  18. package/dist/cli/{index-64pk7525.js → index-dmtq7tvd.js} +1 -1
  19. package/dist/cli/{index-1y0rggw0.js → index-f39n8pbr.js} +1 -1
  20. package/dist/cli/{index-vatqcjnd.js → index-f3xf9dv5.js} +5 -5
  21. package/dist/cli/{index-3qw0bsgr.js → index-gbr0jbxy.js} +1 -1
  22. package/dist/cli/{index-m7gss7zy.js → index-gz3z9d64.js} +57 -49
  23. package/dist/cli/{index-e3g0t29w.js → index-ja15rdzd.js} +1 -1
  24. package/dist/cli/{index-x90gktjx.js → index-jmgm1npc.js} +1 -1
  25. package/dist/cli/{index-tj18fe58.js → index-mewk624g.js} +19 -19
  26. package/dist/cli/{index-qykq6vge.js → index-seedt8m3.js} +3 -3
  27. package/dist/cli/{index-86tn52b3.js → index-td2ga37v.js} +1 -1
  28. package/dist/cli/{index-a6rnw33a.js → index-v9qmhrj9.js} +2 -2
  29. package/dist/cli/{index-4mr3ga48.js → index-z0j133c4.js} +1 -1
  30. package/dist/cli/{index-1et48zgf.js → index-z4g05zbr.js} +1 -1
  31. package/dist/cli/index.js +17 -17
  32. package/dist/cli/{knowledge-escalator-mgg6kvva.js → knowledge-escalator-8akk4n18.js} +6 -6
  33. package/dist/cli/{knowledge-events-yjmkrrv2.js → knowledge-events-51qk8fq2.js} +4 -4
  34. package/dist/cli/{knowledge-store-647twyjp.js → knowledge-store-7rsezhav.js} +1 -1
  35. package/dist/cli/{knowledge-validator-0nsax3n6.js → knowledge-validator-nq75s9et.js} +2 -2
  36. package/dist/cli/{scan-cursor-vgmzg5ys.js → scan-cursor-em4vrcw6.js} +2 -2
  37. package/dist/cli/{schema-mzh2tam4.js → schema-1wmfgtm9.js} +1 -1
  38. package/dist/cli/{scope-persistence-m4ah4fay.js → scope-persistence-8ehnjgsg.js} +4 -4
  39. package/dist/cli/{skill-generator-eyf32w7h.js → skill-generator-3jstr1sx.js} +7 -7
  40. package/dist/cli/{worktree-isolation-grxn94v9.js → worktree-isolation-cc3x13ng.js} +17 -17
  41. package/dist/commands/registry.d.ts +2 -2
  42. package/dist/hooks/review-receipt-collector.d.ts +1 -0
  43. package/dist/index.d.ts +6 -1
  44. package/dist/index.js +12 -12
  45. package/dist/session/snapshot-reader.d.ts +11 -0
  46. package/dist/state.d.ts +4 -3
  47. package/dist/tools/dispatch-lanes.d.ts +1 -0
  48. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -7,44 +7,44 @@ import {
7
7
  getPluginConfigDir,
8
8
  getPluginLockFilePaths,
9
9
  resolveCommand
10
- } from "./index-m7gss7zy.js";
11
- import"./index-vdkywste.js";
12
- import"./index-e3g0t29w.js";
13
- import"./index-30yyh3m0.js";
10
+ } from "./index-gz3z9d64.js";
11
+ import"./index-6htwcbxh.js";
12
+ import"./index-ja15rdzd.js";
13
+ import"./index-c9d5y70c.js";
14
14
  import"./index-134d35c1.js";
15
15
  import"./index-b6e016tv.js";
16
16
  import"./index-4q9vfav6.js";
17
17
  import"./index-k92cagmt.js";
18
18
  import"./index-y8552snf.js";
19
- import"./index-64pk7525.js";
19
+ import"./index-dmtq7tvd.js";
20
20
  import"./index-xmzmeknp.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
- import"./index-86tn52b3.js";
23
+ import"./index-td2ga37v.js";
24
24
  import"./index-74hpm6sh.js";
25
- import"./index-9py8e0dk.js";
26
- import"./index-vatqcjnd.js";
27
- import"./index-a6rnw33a.js";
28
- import"./index-e1feasna.js";
25
+ import"./index-19wyta2k.js";
26
+ import"./index-f3xf9dv5.js";
27
+ import"./index-v9qmhrj9.js";
28
+ import"./index-8qmnqd6g.js";
29
29
  import"./index-556ja8an.js";
30
30
  import"./index-gdd4jt6b.js";
31
31
  import"./index-zsrtt42s.js";
32
32
  import"./index-k3cxyk66.js";
33
33
  import"./index-8aabbfhv.js";
34
- import"./index-3qw0bsgr.js";
34
+ import"./index-gbr0jbxy.js";
35
35
  import"./index-8fwhhayc.js";
36
36
  import"./index-q1exe2b3.js";
37
37
  import"./index-7sy3aa9m.js";
38
38
  import"./index-4905hd2m.js";
39
- import"./index-ds7j4hth.js";
40
- import"./index-6cgp4ska.js";
39
+ import"./index-8fq18k02.js";
40
+ import"./index-9m5gz9ea.js";
41
41
  import"./index-gprxjmm7.js";
42
42
  import"./index-n832052r.js";
43
- import"./index-1y0rggw0.js";
43
+ import"./index-f39n8pbr.js";
44
44
  import {
45
45
  init_package,
46
46
  package_default
47
- } from "./index-1et48zgf.js";
47
+ } from "./index-z4g05zbr.js";
48
48
  import"./index-rn0eq85g.js";
49
49
  import"./index-4rhhvd1a.js";
50
50
  import {
@@ -53,10 +53,10 @@ import {
53
53
  } from "./index-jqsfsqbx.js";
54
54
  import"./index-z6xqpmqg.js";
55
55
  import"./index-zjygnfay.js";
56
- import"./index-4mr3ga48.js";
56
+ import"./index-z0j133c4.js";
57
57
  import"./index-tq5s07ta.js";
58
58
  import"./index-rtry5xyf.js";
59
- import"./index-etxy4vz9.js";
59
+ import"./index-5qqyvwqw.js";
60
60
  import"./index-ae75rja9.js";
61
61
  import"./index-w7x7qxz2.js";
62
62
  import"./index-erfnw81g.js";
@@ -9,19 +9,19 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-vatqcjnd.js";
13
- import"./index-ds7j4hth.js";
14
- import"./index-6cgp4ska.js";
12
+ } from "./index-f3xf9dv5.js";
13
+ import"./index-8fq18k02.js";
14
+ import"./index-9m5gz9ea.js";
15
15
  import"./index-gprxjmm7.js";
16
16
  import"./index-n832052r.js";
17
- import"./index-1y0rggw0.js";
18
- import"./index-1et48zgf.js";
17
+ import"./index-f39n8pbr.js";
18
+ import"./index-z4g05zbr.js";
19
19
  import"./index-rn0eq85g.js";
20
20
  import"./index-4rhhvd1a.js";
21
21
  import"./index-jqsfsqbx.js";
22
22
  import"./index-z6xqpmqg.js";
23
23
  import"./index-zjygnfay.js";
24
- import"./index-etxy4vz9.js";
24
+ import"./index-5qqyvwqw.js";
25
25
  import"./index-ae75rja9.js";
26
26
  import"./index-w7x7qxz2.js";
27
27
  import"./index-erfnw81g.js";
@@ -29,12 +29,12 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-ds7j4hth.js";
33
- import"./index-6cgp4ska.js";
32
+ } from "./index-8fq18k02.js";
33
+ import"./index-9m5gz9ea.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-1y0rggw0.js";
37
- import"./index-1et48zgf.js";
36
+ import"./index-f39n8pbr.js";
37
+ import"./index-z4g05zbr.js";
38
38
  import"./index-rn0eq85g.js";
39
39
  import"./index-4rhhvd1a.js";
40
40
  import"./index-jqsfsqbx.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-etxy4vz9.js";
44
+ } from "./index-5qqyvwqw.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,10 +23,10 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-4mr3ga48.js";
26
+ } from "./index-z0j133c4.js";
27
27
  import"./index-tq5s07ta.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-etxy4vz9.js";
29
+ import"./index-5qqyvwqw.js";
30
30
  import"./index-ae75rja9.js";
31
31
  import"./index-w7x7qxz2.js";
32
32
  import"./index-erfnw81g.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-64pk7525.js";
8
- import"./index-etxy4vz9.js";
7
+ } from "./index-dmtq7tvd.js";
8
+ import"./index-5qqyvwqw.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-w7x7qxz2.js";
11
11
  import"./index-erfnw81g.js";
@@ -96,7 +96,7 @@ import {
96
96
  resolveGeneratedAgentRole,
97
97
  resolveGuardrailsConfig,
98
98
  stripKnownSwarmPrefix
99
- } from "./index-1et48zgf.js";
99
+ } from "./index-z4g05zbr.js";
100
100
  import"./index-jqsfsqbx.js";
101
101
  import"./index-zjygnfay.js";
102
102
  import"./index-bk5tah7q.js";
@@ -23,11 +23,11 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-a6rnw33a.js";
27
- import"./index-e1feasna.js";
26
+ } from "./index-v9qmhrj9.js";
27
+ import"./index-8qmnqd6g.js";
28
28
  import"./index-556ja8an.js";
29
- import"./index-1y0rggw0.js";
30
- import"./index-1et48zgf.js";
29
+ import"./index-f39n8pbr.js";
30
+ import"./index-z4g05zbr.js";
31
31
  import"./index-4rhhvd1a.js";
32
32
  import"./index-jqsfsqbx.js";
33
33
  import"./index-zjygnfay.js";
@@ -33,22 +33,22 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-9py8e0dk.js";
37
- import"./index-ds7j4hth.js";
38
- import"./index-6cgp4ska.js";
36
+ } from "./index-19wyta2k.js";
37
+ import"./index-8fq18k02.js";
38
+ import"./index-9m5gz9ea.js";
39
39
  import"./index-gprxjmm7.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-1y0rggw0.js";
42
- import"./index-1et48zgf.js";
41
+ import"./index-f39n8pbr.js";
42
+ import"./index-z4g05zbr.js";
43
43
  import"./index-rn0eq85g.js";
44
44
  import"./index-4rhhvd1a.js";
45
45
  import"./index-jqsfsqbx.js";
46
46
  import"./index-z6xqpmqg.js";
47
47
  import"./index-zjygnfay.js";
48
- import"./index-4mr3ga48.js";
48
+ import"./index-z0j133c4.js";
49
49
  import"./index-tq5s07ta.js";
50
50
  import"./index-rtry5xyf.js";
51
- import"./index-etxy4vz9.js";
51
+ import"./index-5qqyvwqw.js";
52
52
  import"./index-ae75rja9.js";
53
53
  import"./index-w7x7qxz2.js";
54
54
  import"./index-erfnw81g.js";
@@ -20,52 +20,52 @@ import {
20
20
  sanitizeWorktreeTaskId,
21
21
  standardWorktreeByCallID,
22
22
  standardWorktreeSerializationSessions
23
- } from "./index-m7gss7zy.js";
24
- import"./index-vdkywste.js";
25
- import"./index-e3g0t29w.js";
26
- import"./index-30yyh3m0.js";
23
+ } from "./index-gz3z9d64.js";
24
+ import"./index-6htwcbxh.js";
25
+ import"./index-ja15rdzd.js";
26
+ import"./index-c9d5y70c.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-64pk7525.js";
32
+ import"./index-dmtq7tvd.js";
33
33
  import"./index-xmzmeknp.js";
34
34
  import"./index-c8s9a3zh.js";
35
35
  import"./index-9ss2m4rs.js";
36
- import"./index-86tn52b3.js";
36
+ import"./index-td2ga37v.js";
37
37
  import"./index-74hpm6sh.js";
38
- import"./index-9py8e0dk.js";
39
- import"./index-vatqcjnd.js";
40
- import"./index-a6rnw33a.js";
41
- import"./index-e1feasna.js";
38
+ import"./index-19wyta2k.js";
39
+ import"./index-f3xf9dv5.js";
40
+ import"./index-v9qmhrj9.js";
41
+ import"./index-8qmnqd6g.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-8aabbfhv.js";
47
- import"./index-3qw0bsgr.js";
47
+ import"./index-gbr0jbxy.js";
48
48
  import"./index-8fwhhayc.js";
49
49
  import"./index-q1exe2b3.js";
50
50
  import"./index-7sy3aa9m.js";
51
51
  import"./index-4905hd2m.js";
52
- import"./index-ds7j4hth.js";
52
+ import"./index-8fq18k02.js";
53
53
  import {
54
54
  resolveWorktreeIsolationConfig
55
- } from "./index-6cgp4ska.js";
55
+ } from "./index-9m5gz9ea.js";
56
56
  import"./index-gprxjmm7.js";
57
57
  import"./index-n832052r.js";
58
- import"./index-1y0rggw0.js";
59
- import"./index-1et48zgf.js";
58
+ import"./index-f39n8pbr.js";
59
+ import"./index-z4g05zbr.js";
60
60
  import"./index-rn0eq85g.js";
61
61
  import"./index-4rhhvd1a.js";
62
62
  import"./index-jqsfsqbx.js";
63
63
  import"./index-z6xqpmqg.js";
64
64
  import"./index-zjygnfay.js";
65
- import"./index-4mr3ga48.js";
65
+ import"./index-z0j133c4.js";
66
66
  import"./index-tq5s07ta.js";
67
67
  import"./index-rtry5xyf.js";
68
- import"./index-etxy4vz9.js";
68
+ import"./index-5qqyvwqw.js";
69
69
  import"./index-ae75rja9.js";
70
70
  import"./index-w7x7qxz2.js";
71
71
  import"./index-erfnw81g.js";
@@ -483,7 +483,7 @@ export declare const COMMAND_REGISTRY: {
483
483
  readonly finalize: {
484
484
  readonly handler: (ctx: CommandContext) => Promise<string>;
485
485
  readonly description: "Use /swarm finalize to finalize the swarm project and archive evidence";
486
- readonly details: "Idempotent 4-stage terminal finalization: (1) finalize writes retrospectives for in-progress phases, (2) archive creates timestamped bundle of swarm artifacts and evidence, (3) clean removes active-state files for a clean slate, (4) align performs aggressive git reset --hard to the default remote branch, discarding uncommitted changes and gitignored build artifacts (user-created untracked files are preserved); falls back to a cautious reset that preserves uncommitted changes when the aggressive path cannot proceed. WARNING: alignment discards local changes and gitignored files. Resets agent sessions and delegation chains. Reads .swarm/close-lessons.md for explicit lessons and runs curation. Use --skill-review to run the quota-bounded skill_improver in proposal mode. Use --dry-run to preview what finalize would archive, clean, and align without taking the lock or changing anything.";
486
+ readonly details: "Idempotent 4-stage terminal finalization: (1) finalize writes retrospectives for in-progress phases, (2) archive creates timestamped bundle of swarm artifacts and evidence, (3) clean removes active-state files for a clean slate, (4) align performs aggressive git reset --hard to the default remote branch, discarding uncommitted changes and gitignored build artifacts (user-created untracked files are preserved); falls back to a cautious reset that preserves uncommitted changes when the aggressive path cannot proceed. WARNING: alignment discards local changes and gitignored files. Resets agent sessions, delegation chains, and active-agent mappings. Reads .swarm/close-lessons.md for explicit lessons and runs curation. Use --skill-review to run the quota-bounded skill_improver in proposal mode. Use --dry-run to preview what finalize would archive, clean, and align without taking the lock or changing anything.";
487
487
  readonly args: "--prune-branches, --skill-review, --dry-run";
488
488
  readonly category: "core";
489
489
  readonly toolPolicy: "none";
@@ -825,7 +825,7 @@ export declare const COMMAND_REGISTRY: {
825
825
  readonly 'reset-session': {
826
826
  readonly handler: (ctx: CommandContext) => Promise<string>;
827
827
  readonly description: "Clear session state while preserving plan, evidence, and knowledge";
828
- readonly details: "Deletes only .swarm/session/state.json and any other session files. Clears in-memory agent sessions and delegation chains. Preserves plan, evidence, and knowledge for cross-session continuity. Before deleting, auto-backs up the session files it removes to .swarm/reset-backups/<timestamp>/ (newest 5 kept).";
828
+ readonly details: "Deletes only .swarm/session/state.json and any other session files. Clears in-memory agent sessions, delegation chains, and active-agent mappings. Preserves plan, evidence, and knowledge for cross-session continuity. Before deleting, auto-backs up the session files it removes to .swarm/reset-backups/<timestamp>/ (newest 5 kept).";
829
829
  readonly args: "";
830
830
  readonly category: "utility";
831
831
  readonly toolPolicy: "restricted";
@@ -92,6 +92,7 @@ export interface ReviewerReceiptValidationOptions {
92
92
  }
93
93
  /** Test seam for the otherwise process-global telemetry sink. */
94
94
  export declare const _internals: {
95
+ delegationBegin: (sessionId: string, agentName: string, taskId: string) => void;
95
96
  delegationEnd: (sessionId: string, agentName: string, taskId: string, result: string, costFields?: Partial<import("../services/cost-accounting.js").DelegationCostFields>) => void;
96
97
  resolveReviewerTaskScope: typeof resolveReviewerTaskScope;
97
98
  buildReviewerTaskScope: typeof buildReviewerTaskScope;
package/dist/index.d.ts CHANGED
@@ -8,9 +8,14 @@ import { ensureSwarmGitExcluded } from './utils/gitignore-warning';
8
8
  * FIFO-cap a session-keyed Map to at most `max` entries, evicting oldest first.
9
9
  * Values tracked by these maps are plain data (timestamps/usage snapshots), never
10
10
  * timer handles, so eviction requires no clearInterval/clearTimeout. Exported for
11
- * unit testing of the cap invariant; used by the heartbeat throttle path below.
11
+ * unit testing of the cap invariant; used by the heartbeat throttle and
12
+ * delegation-telemetry pairing paths below.
12
13
  */
13
14
  export declare function capSessionMap<K, V>(map: Map<K, V>, max: number): void;
15
+ /** @internal — test-only: clears delegation-telemetry pairing state so one
16
+ * test's unconsumed entries (e.g. a before with no matching after) cannot
17
+ * leak into the next. Mirrors resetTelemetryForTesting / resetSwarmState. */
18
+ export declare function _resetDelegationTelemetryPairingForTesting(): void;
14
19
  type PostResolutionTask = () => void | Promise<void>;
15
20
  /**
16
21
  * Start detached initialization work only after the plugin manifest promise can