opencode-swarm 7.134.3 → 7.135.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.
Files changed (64) hide show
  1. package/dist/background/pr-monitor-worker.d.ts +14 -13
  2. package/dist/cli/{config-doctor-yqwm2tfh.js → config-doctor-6398t3a6.js} +2 -2
  3. package/dist/cli/{core-d6yd2jzv.js → core-9876t6cs.js} +1 -1
  4. package/dist/cli/{curation-policy-x5m4x34n.js → curation-policy-f7qz4tez.js} +6 -6
  5. package/dist/cli/{curator-thrwgwh1.js → curator-fjhyezyx.js} +23 -23
  6. package/dist/cli/{curator-llm-factory-24mjnh2y.js → curator-llm-factory-wr3zmy2c.js} +23 -23
  7. package/dist/cli/{evidence-summary-service-pay9409b.js → evidence-summary-service-0cczdmjv.js} +6 -6
  8. package/dist/cli/{gate-evidence-b5v1xvxp.js → gate-evidence-8zrwdj69.js} +4 -4
  9. package/dist/cli/{guardrail-explain-nmfq71cm.js → guardrail-explain-g1s89b3e.js} +24 -24
  10. package/dist/cli/{guardrail-log-2a61rz1w.js → guardrail-log-bd45kw0x.js} +3 -3
  11. package/dist/cli/{hive-promoter-2nkjjwgc.js → hive-promoter-f2yh22m1.js} +23 -23
  12. package/dist/cli/{index-5nybajn9.js → index-09b9zncg.js} +1 -1
  13. package/dist/cli/{index-1mq8kmp6.js → index-247b1c1m.js} +3 -3
  14. package/dist/cli/{index-q3m6bpx2.js → index-2nqsr1dx.js} +4 -4
  15. package/dist/cli/{index-yaptf0hg.js → index-4pdrmemy.js} +2 -2
  16. package/dist/cli/{index-2b7sv71f.js → index-5vp9gka3.js} +1 -1
  17. package/dist/cli/{index-mgr951p8.js → index-5wx8wdxg.js} +5 -5
  18. package/dist/cli/{index-q2rrv0cy.js → index-7a2hm51h.js} +57 -2
  19. package/dist/cli/{index-y3v1404y.js → index-7an2qn0s.js} +1 -1
  20. package/dist/cli/{index-6kfqz0jw.js → index-aky90eqz.js} +1289 -1124
  21. package/dist/cli/{index-wk1h5ec2.js → index-b7p0mp2q.js} +2 -2
  22. package/dist/cli/{index-5f403c30.js → index-bjrkg4tc.js} +2 -2
  23. package/dist/cli/{index-tsmjmhnk.js → index-dzaarxhg.js} +2 -2
  24. package/dist/cli/{index-8fhg2nt2.js → index-ens0gt38.js} +5 -5
  25. package/dist/cli/{index-p8hezdtz.js → index-fpkb3mw1.js} +1 -1
  26. package/dist/cli/{index-2t1n9k7b.js → index-fwkqq9mq.js} +1 -1
  27. package/dist/cli/{index-6wya5cqh.js → index-g1drmgxe.js} +3 -3
  28. package/dist/cli/{index-rjngxx7q.js → index-j89zmcpx.js} +6 -6
  29. package/dist/cli/{index-yqvh2s4w.js → index-jtshf1pd.js} +1 -1
  30. package/dist/cli/{index-ddxt327j.js → index-jxchddjk.js} +1 -1
  31. package/dist/cli/{index-8wktghbc.js → index-nbnqf4fj.js} +1 -1
  32. package/dist/cli/{index-txwm0fv4.js → index-w80r3axq.js} +25 -25
  33. package/dist/cli/{index-reesz606.js → index-wdkkf3xg.js} +2 -2
  34. package/dist/cli/{index-4p02dp92.js → index-wxyxf0bd.js} +2 -2
  35. package/dist/cli/{index-dd7ttx8x.js → index-xg9repnx.js} +1 -1
  36. package/dist/cli/{index-y3rj2jgb.js → index-xhpmagdm.js} +2 -2
  37. package/dist/cli/{index-cfkvc5q9.js → index-yhba8swx.js} +1 -1
  38. package/dist/cli/{index-1j3682j8.js → index-z085b4ka.js} +1 -1
  39. package/dist/cli/index.js +23 -23
  40. package/dist/cli/{knowledge-escalator-fqsavryx.js → knowledge-escalator-4tp3yy7e.js} +7 -7
  41. package/dist/cli/{knowledge-events-ykt8vrvj.js → knowledge-events-7854gb3p.js} +5 -5
  42. package/dist/cli/{knowledge-link-nc4y2zkq.js → knowledge-link-etrfntkd.js} +4 -4
  43. package/dist/cli/{knowledge-store-tpd98m39.js → knowledge-store-cxnr6v01.js} +5 -5
  44. package/dist/cli/{knowledge-validator-kc7fnt2r.js → knowledge-validator-3n5t55qy.js} +8 -8
  45. package/dist/cli/{pending-delegations-v9e40hfk.js → pending-delegations-4z3tkkct.js} +3 -3
  46. package/dist/cli/{pr-subscriptions-ztq40hrt.js → pr-subscriptions-29j794kd.js} +3 -3
  47. package/dist/cli/{scan-cursor-121b73j0.js → scan-cursor-0cexjh3b.js} +6 -6
  48. package/dist/cli/{schema-jb4p8ja9.js → schema-rs5a7ywx.js} +1 -1
  49. package/dist/cli/{scope-persistence-hz3zmmsv.js → scope-persistence-1vsnkmm4.js} +4 -4
  50. package/dist/cli/{skill-generator-m2g5mdva.js → skill-generator-n0h9n0zd.js} +9 -9
  51. package/dist/cli/{telemetry-qh78ymq4.js → telemetry-859khp82.js} +9 -1
  52. package/dist/cli/{worktree-collision-ownership-c4bdnjtx.js → worktree-collision-ownership-dtwr0xj4.js} +3 -3
  53. package/dist/commands/context-map-stats.d.ts +5 -0
  54. package/dist/commands/registry.d.ts +14 -0
  55. package/dist/hooks/scope-guard.d.ts +11 -4
  56. package/dist/index.js +189 -187
  57. package/dist/scope/scope-binding.d.ts +68 -0
  58. package/dist/services/status-service.d.ts +12 -2
  59. package/dist/session/snapshot-reader.d.ts +6 -0
  60. package/dist/state.d.ts +118 -0
  61. package/dist/telemetry.d.ts +5 -0
  62. package/dist/turbo/lean/lane-scope.d.ts +120 -0
  63. package/dist/turbo/lean/runner.d.ts +66 -4
  64. package/package.json +1 -1
@@ -33,21 +33,21 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-1mq8kmp6.js";
37
- import"./index-q3m6bpx2.js";
38
- import"./index-y3rj2jgb.js";
36
+ } from "./index-247b1c1m.js";
37
+ import"./index-2nqsr1dx.js";
38
+ import"./index-xhpmagdm.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-rjngxx7q.js";
41
- import"./index-6wya5cqh.js";
40
+ import"./index-j89zmcpx.js";
41
+ import"./index-g1drmgxe.js";
42
42
  import"./index-ae75rja9.js";
43
- import"./index-cfkvc5q9.js";
44
- import"./index-dd7ttx8x.js";
43
+ import"./index-yhba8swx.js";
44
+ import"./index-xg9repnx.js";
45
45
  import"./index-bk5tah7q.js";
46
46
  import"./index-4rhhvd1a.js";
47
47
  import"./index-fsrp8wp3.js";
48
- import"./index-5nybajn9.js";
48
+ import"./index-09b9zncg.js";
49
49
  import"./index-7g4c7s5r.js";
50
- import"./index-q2rrv0cy.js";
50
+ import"./index-7a2hm51h.js";
51
51
  import"./index-qe3v54nb.js";
52
52
  import"./index-zgwm4ryv.js";
53
53
  import"./index-a76rekgs.js";
@@ -4,17 +4,25 @@ import {
4
4
  _internals,
5
5
  addTelemetryListener,
6
6
  emit,
7
+ getLastHeartbeat,
7
8
  initTelemetry,
9
+ resetHeartbeatTrackingForTesting,
8
10
  resetTelemetryForTesting,
9
11
  rotateTelemetryIfNeeded,
12
+ startHeartbeatTracking,
13
+ stopHeartbeatTracking,
10
14
  telemetry
11
- } from "./index-q2rrv0cy.js";
15
+ } from "./index-7a2hm51h.js";
12
16
  import"./index-a76rekgs.js";
13
17
  export {
14
18
  telemetry,
19
+ stopHeartbeatTracking,
20
+ startHeartbeatTracking,
15
21
  rotateTelemetryIfNeeded,
16
22
  resetTelemetryForTesting,
23
+ resetHeartbeatTrackingForTesting,
17
24
  initTelemetry,
25
+ getLastHeartbeat,
18
26
  emit,
19
27
  addTelemetryListener,
20
28
  _internals,
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  scanDelegationFallbacksForRecovery,
10
10
  scanDelegationsForRecovery
11
- } from "./index-y3v1404y.js";
11
+ } from "./index-7an2qn0s.js";
12
12
  import"./index-2ghkk9ve.js";
13
13
  import"./index-fsrp8wp3.js";
14
- import"./index-5nybajn9.js";
14
+ import"./index-09b9zncg.js";
15
15
  import"./index-7g4c7s5r.js";
16
- import"./index-q2rrv0cy.js";
16
+ import"./index-7a2hm51h.js";
17
17
  import"./index-bpmtbmy9.js";
18
18
  import"./index-z6xqpmqg.js";
19
19
  import"./index-zjygnfay.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * /swarm context-map stats — show aggregated context-capsule telemetry.
3
+ * FR-013: thin invocation wrapper over getTelemetrySummary; aggregation logic unchanged.
4
+ */
5
+ export declare function handleContextMapStatsCommand(directory: string): Promise<string>;
@@ -88,6 +88,20 @@ export declare const COMMAND_REGISTRY: {
88
88
  readonly toolPolicy: "agent";
89
89
  readonly toolNoArgs: true;
90
90
  };
91
+ readonly 'context-map stats': {
92
+ readonly handler: (ctx: CommandContext) => Promise<string>;
93
+ readonly description: "Show aggregated context-capsule telemetry stats";
94
+ readonly category: "diagnostics";
95
+ readonly toolPolicy: "agent";
96
+ readonly toolNoArgs: true;
97
+ };
98
+ readonly 'context-map-stats': {
99
+ readonly handler: (ctx: CommandContext) => Promise<string>;
100
+ readonly description: "Show aggregated context-capsule telemetry stats";
101
+ readonly category: "diagnostics";
102
+ readonly aliasOf: "context-map stats";
103
+ readonly deprecated: true;
104
+ };
91
105
  readonly 'show-plan': {
92
106
  readonly handler: (ctx: CommandContext) => Promise<string>;
93
107
  readonly description: "Show current plan (optionally filter by phase number)";
@@ -8,9 +8,9 @@
8
8
  * Fires BEFORE write/edit tools execute. When a coder attempts to modify a file
9
9
  * outside its Task-correlated scope, blocks the call and injects an advisory.
10
10
  */
11
- import { getAuthorizedPrFeedbackScopeBinding } from '../scope/scope-binding';
11
+ import { describeScopeWorkspaceMismatch, getAuthorizedPrFeedbackScopeBinding } from '../scope/scope-binding';
12
12
  import { resolveAuthorizedPrFeedbackScopeBindingFromDisk, resolveAuthorizedScopeBinding, resolveAuthorizedScopeBindingForSession } from '../scope/scope-persistence';
13
- import { type AgentSessionState } from '../state';
13
+ import { type AgentSessionState, resolveSessionWorkspaceDirectory } from '../state';
14
14
  import { validatePrFeedbackScopeBinding } from './pr-workflow-gate';
15
15
  import { resolveWriteTargets } from './write-target-resolver';
16
16
  /**
@@ -25,10 +25,15 @@ export interface ScopeGuardConfig {
25
25
  /**
26
26
  * Creates the scope-guard hook that blocks out-of-scope writes.
27
27
  * @param config - ScopeGuardConfig (enabled, skip_in_turbo)
28
- * @param _directory - The workspace directory (reserved for future use)
28
+ * @param fallbackDirectory - The plugin-root directory (`ctx.directory`). Used
29
+ * ONLY as the fallback for sessions with no recorded workspace root. Issue
30
+ * #2002: this hook is constructed once per plugin instance and serves every
31
+ * session, including worktree-isolated coder children that execute in a
32
+ * different root — so this value must never be used directly as "the
33
+ * directory" inside the handler. Resolve per session instead.
29
34
  * @param injectAdvisory - Optional callback to push advisory to architect session
30
35
  */
31
- export declare function createScopeGuardHook(config: Partial<ScopeGuardConfig>, directory: string, injectAdvisory?: (sessionId: string, message: string) => void): {
36
+ export declare function createScopeGuardHook(config: Partial<ScopeGuardConfig>, fallbackDirectory: string, injectAdvisory?: (sessionId: string, message: string) => void): {
32
37
  toolBefore: (input: {
33
38
  tool: string;
34
39
  sessionID: string;
@@ -74,6 +79,8 @@ export declare const _internals: {
74
79
  getAuthorizedPrFeedbackScopeBinding: typeof getAuthorizedPrFeedbackScopeBinding;
75
80
  resolveAuthorizedPrFeedbackScopeBindingFromDisk: typeof resolveAuthorizedPrFeedbackScopeBindingFromDisk;
76
81
  validatePrFeedbackScopeBinding: typeof validatePrFeedbackScopeBinding;
82
+ resolveSessionWorkspaceDirectory: typeof resolveSessionWorkspaceDirectory;
83
+ describeScopeWorkspaceMismatch: typeof describeScopeWorkspaceMismatch;
77
84
  resolveTaskId: (session: AgentSessionState | undefined) => string | null;
78
85
  };
79
86
  export {};