opencode-swarm 7.135.0 → 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 (43) hide show
  1. package/dist/cli/{config-doctor-j1x63x87.js → config-doctor-6398t3a6.js} +2 -2
  2. package/dist/cli/{core-fvqp2gnn.js → core-9876t6cs.js} +1 -1
  3. package/dist/cli/{curation-policy-xg9zw0ep.js → curation-policy-f7qz4tez.js} +2 -2
  4. package/dist/cli/{curator-yc06cmnz.js → curator-fjhyezyx.js} +14 -14
  5. package/dist/cli/{curator-llm-factory-4mat6cq5.js → curator-llm-factory-wr3zmy2c.js} +14 -14
  6. package/dist/cli/{guardrail-explain-zmbxwh3s.js → guardrail-explain-g1s89b3e.js} +15 -15
  7. package/dist/cli/{guardrail-log-7egxrxap.js → guardrail-log-bd45kw0x.js} +3 -3
  8. package/dist/cli/{hive-promoter-7s3gzajy.js → hive-promoter-f2yh22m1.js} +14 -14
  9. package/dist/cli/{index-a4972t0f.js → index-247b1c1m.js} +3 -3
  10. package/dist/cli/{index-997d6p42.js → index-2nqsr1dx.js} +2 -2
  11. package/dist/cli/{index-6kmmdtdp.js → index-4pdrmemy.js} +2 -2
  12. package/dist/cli/{index-ctvnb76s.js → index-5vp9gka3.js} +1 -1
  13. package/dist/cli/{index-86wdrskb.js → index-5wx8wdxg.js} +5 -5
  14. package/dist/cli/{index-crw4n55v.js → index-aky90eqz.js} +36 -36
  15. package/dist/cli/{index-vf6e8ame.js → index-bjrkg4tc.js} +1 -1
  16. package/dist/cli/{index-337r9pkr.js → index-dzaarxhg.js} +1 -1
  17. package/dist/cli/{index-44zgqvqh.js → index-fwkqq9mq.js} +1 -1
  18. package/dist/cli/{index-x88w0cp5.js → index-g1drmgxe.js} +1 -1
  19. package/dist/cli/{index-nrvs08pr.js → index-j89zmcpx.js} +4 -4
  20. package/dist/cli/{index-grxkbbc5.js → index-jtshf1pd.js} +1 -1
  21. package/dist/cli/{index-e8w62fgs.js → index-jxchddjk.js} +1 -1
  22. package/dist/cli/{index-4yv2rn8q.js → index-nbnqf4fj.js} +1 -1
  23. package/dist/cli/{index-96b78s7p.js → index-w80r3axq.js} +16 -16
  24. package/dist/cli/{index-q9mq5tv3.js → index-wdkkf3xg.js} +2 -2
  25. package/dist/cli/{index-g0raqavt.js → index-xhpmagdm.js} +1 -1
  26. package/dist/cli/index.js +14 -14
  27. package/dist/cli/{knowledge-escalator-d76a090n.js → knowledge-escalator-4tp3yy7e.js} +3 -3
  28. package/dist/cli/{knowledge-events-3mcg1a0e.js → knowledge-events-7854gb3p.js} +1 -1
  29. package/dist/cli/{knowledge-store-xtt4sede.js → knowledge-store-cxnr6v01.js} +1 -1
  30. package/dist/cli/{knowledge-validator-h1k7ymtd.js → knowledge-validator-3n5t55qy.js} +4 -4
  31. package/dist/cli/{scan-cursor-stztfv7d.js → scan-cursor-0cexjh3b.js} +2 -2
  32. package/dist/cli/{schema-tbq2srrh.js → schema-rs5a7ywx.js} +1 -1
  33. package/dist/cli/{scope-persistence-7wydjzx8.js → scope-persistence-1vsnkmm4.js} +1 -1
  34. package/dist/cli/{skill-generator-02q1qdf0.js → skill-generator-n0h9n0zd.js} +5 -5
  35. package/dist/hooks/scope-guard.d.ts +11 -4
  36. package/dist/index.js +10 -10
  37. package/dist/scope/scope-binding.d.ts +68 -0
  38. package/dist/session/snapshot-reader.d.ts +6 -0
  39. package/dist/state.d.ts +118 -0
  40. package/dist/turbo/lean/lane-scope.d.ts +120 -0
  41. package/dist/turbo/lean/runner.d.ts +66 -4
  42. package/package.json +1 -1
  43. /package/dist/cli/{index-ny93srnd.js → index-fpkb3mw1.js} +0 -0
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-nrvs08pr.js";
5
+ } from "./index-j89zmcpx.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-yhba8swx.js";
@@ -19,7 +19,7 @@ var package_default;
19
19
  var init_package = __esm(() => {
20
20
  package_default = {
21
21
  name: "opencode-swarm",
22
- version: "7.135.0",
22
+ version: "7.135.1",
23
23
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
24
24
  main: "dist/index.js",
25
25
  types: "dist/index.d.ts",
@@ -39,7 +39,7 @@ var _internals = {
39
39
  symlinkSync: fs.symlinkSync
40
40
  },
41
41
  writeScopeToDisk: async (directory, taskId, files) => {
42
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-7wydjzx8.js");
42
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-1vsnkmm4.js");
43
43
  return realWrite(directory, taskId, files);
44
44
  },
45
45
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -608,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
608
608
  deltas.push({ id, delta });
609
609
  }
610
610
  if (deltas.length > 0) {
611
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-xtt4sede.js");
611
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-cxnr6v01.js");
612
612
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
613
613
  }
614
614
  return {
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
702
702
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
703
703
  if (atFloor.length === 0 && recovered.length === 0)
704
704
  return;
705
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-3mcg1a0e.js");
705
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-7854gb3p.js");
706
706
  const rollups = await readKnowledgeCounterRollups(directory);
707
707
  const flagIds = new Set;
708
708
  for (const e of atFloor) {
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
769
769
  });
770
770
  }
771
771
  if (action === "quarantine" && toQuarantine.length > 0) {
772
- const { quarantineEntry } = await import("./knowledge-validator-h1k7ymtd.js");
773
- const { KnowledgeConfigSchema } = await import("./schema-tbq2srrh.js");
772
+ const { quarantineEntry } = await import("./knowledge-validator-3n5t55qy.js");
773
+ const { KnowledgeConfigSchema } = await import("./schema-rs5a7ywx.js");
774
774
  let config;
775
775
  try {
776
- const { loadPluginConfigWithMeta } = await import("./index-q9mq5tv3.js");
776
+ const { loadPluginConfigWithMeta } = await import("./index-wdkkf3xg.js");
777
777
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
778
778
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
779
779
  } catch {
@@ -3,7 +3,7 @@ import {
3
3
  init_constants,
4
4
  init_schema,
5
5
  stripKnownSwarmPrefix
6
- } from "./index-337r9pkr.js";
6
+ } from "./index-dzaarxhg.js";
7
7
  import {
8
8
  init_logger,
9
9
  warn
@@ -8,7 +8,7 @@ import {
8
8
  init_constants,
9
9
  init_schema,
10
10
  resolveExternalSkillsConfig
11
- } from "./index-337r9pkr.js";
11
+ } from "./index-dzaarxhg.js";
12
12
  import {
13
13
  advisoryWarn,
14
14
  init_warning_buffer
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-grxkbbc5.js";
5
+ } from "./index-jtshf1pd.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-6kmmdtdp.js";
4
+ } from "./index-4pdrmemy.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-4yv2rn8q.js";
7
+ } from "./index-nbnqf4fj.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,30 +84,30 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-crw4n55v.js";
87
+ } from "./index-aky90eqz.js";
88
88
  import"./index-13xxjfhn.js";
89
- import"./index-grxkbbc5.js";
90
- import"./index-ctvnb76s.js";
89
+ import"./index-jtshf1pd.js";
90
+ import"./index-5vp9gka3.js";
91
91
  import"./index-ens0gt38.js";
92
92
  import"./index-4905hd2m.js";
93
93
  import"./index-134d35c1.js";
94
- import"./index-a4972t0f.js";
95
- import"./index-86wdrskb.js";
96
- import"./index-vf6e8ame.js";
94
+ import"./index-247b1c1m.js";
95
+ import"./index-5wx8wdxg.js";
96
+ import"./index-bjrkg4tc.js";
97
97
  import"./index-vxv732ex.js";
98
98
  import"./index-c8s9a3zh.js";
99
99
  import"./index-9ss2m4rs.js";
100
100
  import"./index-b7p0mp2q.js";
101
101
  import"./index-z085b4ka.js";
102
- import"./index-997d6p42.js";
103
- import"./index-g0raqavt.js";
102
+ import"./index-2nqsr1dx.js";
103
+ import"./index-xhpmagdm.js";
104
104
  import"./index-rtry5xyf.js";
105
- import"./index-nrvs08pr.js";
106
- import"./index-x88w0cp5.js";
105
+ import"./index-j89zmcpx.js";
106
+ import"./index-g1drmgxe.js";
107
107
  import"./index-ae75rja9.js";
108
108
  import"./index-yhba8swx.js";
109
109
  import"./index-xg9repnx.js";
110
- import"./index-e8w62fgs.js";
110
+ import"./index-jxchddjk.js";
111
111
  import"./index-k5jrywpr.js";
112
112
  import"./index-n832052r.js";
113
113
  import {
@@ -116,16 +116,16 @@ import {
116
116
  init_constants,
117
117
  init_schema,
118
118
  stripKnownSwarmPrefix
119
- } from "./index-337r9pkr.js";
119
+ } from "./index-dzaarxhg.js";
120
120
  import"./index-bk5tah7q.js";
121
121
  import"./index-8fwhhayc.js";
122
122
  import"./index-q1exe2b3.js";
123
- import"./index-ny93srnd.js";
123
+ import"./index-fpkb3mw1.js";
124
124
  import"./index-wxyxf0bd.js";
125
125
  import"./index-1kz6da87.js";
126
126
  import"./index-b4z7s917.js";
127
127
  import"./index-b8zgtz81.js";
128
- import"./index-44zgqvqh.js";
128
+ import"./index-fwkqq9mq.js";
129
129
  import"./index-4rhhvd1a.js";
130
130
  import"./index-7an2qn0s.js";
131
131
  import"./index-2ghkk9ve.js";
@@ -7,7 +7,7 @@ import {
7
7
  loadPluginConfigWithMeta,
8
8
  loadPluginConfigWithMetaAsync,
9
9
  resolveWorktreeIsolationConfig
10
- } from "./index-e8w62fgs.js";
10
+ } from "./index-jxchddjk.js";
11
11
  import {
12
12
  ApprovalEvidenceSchema,
13
13
  BaseEvidenceSchema,
@@ -62,7 +62,7 @@ import {
62
62
  isQAAgent,
63
63
  isSubagent,
64
64
  resolveAutoReviewConfig
65
- } from "./index-337r9pkr.js";
65
+ } from "./index-dzaarxhg.js";
66
66
  import"./index-bk5tah7q.js";
67
67
  import {
68
68
  MigrationStatusSchema,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rtry5xyf.js";
5
5
  import {
6
6
  readKnowledgeEvents
7
- } from "./index-x88w0cp5.js";
7
+ } from "./index-g1drmgxe.js";
8
8
  import {
9
9
  isLinked,
10
10
  readLinkPointer,
package/dist/cli/index.js CHANGED
@@ -6,30 +6,30 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-crw4n55v.js";
9
+ } from "./index-aky90eqz.js";
10
10
  import"./index-13xxjfhn.js";
11
- import"./index-grxkbbc5.js";
12
- import"./index-ctvnb76s.js";
11
+ import"./index-jtshf1pd.js";
12
+ import"./index-5vp9gka3.js";
13
13
  import"./index-ens0gt38.js";
14
14
  import"./index-4905hd2m.js";
15
15
  import"./index-134d35c1.js";
16
- import"./index-a4972t0f.js";
17
- import"./index-86wdrskb.js";
18
- import"./index-vf6e8ame.js";
16
+ import"./index-247b1c1m.js";
17
+ import"./index-5wx8wdxg.js";
18
+ import"./index-bjrkg4tc.js";
19
19
  import"./index-vxv732ex.js";
20
20
  import"./index-c8s9a3zh.js";
21
21
  import"./index-9ss2m4rs.js";
22
22
  import"./index-b7p0mp2q.js";
23
23
  import"./index-z085b4ka.js";
24
- import"./index-997d6p42.js";
25
- import"./index-g0raqavt.js";
24
+ import"./index-2nqsr1dx.js";
25
+ import"./index-xhpmagdm.js";
26
26
  import"./index-rtry5xyf.js";
27
- import"./index-nrvs08pr.js";
28
- import"./index-x88w0cp5.js";
27
+ import"./index-j89zmcpx.js";
28
+ import"./index-g1drmgxe.js";
29
29
  import"./index-ae75rja9.js";
30
30
  import"./index-yhba8swx.js";
31
31
  import"./index-xg9repnx.js";
32
- import"./index-e8w62fgs.js";
32
+ import"./index-jxchddjk.js";
33
33
  import"./index-k5jrywpr.js";
34
34
  import"./index-n832052r.js";
35
35
  import {
@@ -37,16 +37,16 @@ import {
37
37
  init_constants,
38
38
  init_package,
39
39
  package_default
40
- } from "./index-337r9pkr.js";
40
+ } from "./index-dzaarxhg.js";
41
41
  import"./index-bk5tah7q.js";
42
42
  import"./index-8fwhhayc.js";
43
43
  import"./index-q1exe2b3.js";
44
- import"./index-ny93srnd.js";
44
+ import"./index-fpkb3mw1.js";
45
45
  import"./index-wxyxf0bd.js";
46
46
  import"./index-1kz6da87.js";
47
47
  import"./index-b4z7s917.js";
48
48
  import"./index-b8zgtz81.js";
49
- import"./index-44zgqvqh.js";
49
+ import"./index-fwkqq9mq.js";
50
50
  import"./index-4rhhvd1a.js";
51
51
  import"./index-7an2qn0s.js";
52
52
  import"./index-2ghkk9ve.js";
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-86wdrskb.js";
12
- import"./index-nrvs08pr.js";
13
- import"./index-x88w0cp5.js";
11
+ } from "./index-5wx8wdxg.js";
12
+ import"./index-j89zmcpx.js";
13
+ import"./index-g1drmgxe.js";
14
14
  import"./index-ae75rja9.js";
15
15
  import"./index-yhba8swx.js";
16
16
  import"./index-xg9repnx.js";
@@ -26,7 +26,7 @@ import {
26
26
  resolveKnowledgeCounterBaselinePath,
27
27
  resolveKnowledgeEventsPath,
28
28
  resolveLegacyApplicationLogPath
29
- } from "./index-x88w0cp5.js";
29
+ } from "./index-g1drmgxe.js";
30
30
  import"./index-ae75rja9.js";
31
31
  import"./index-yhba8swx.js";
32
32
  import"./index-xg9repnx.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-nrvs08pr.js";
44
+ } from "./index-j89zmcpx.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,11 +23,11 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-997d6p42.js";
27
- import"./index-g0raqavt.js";
26
+ } from "./index-2nqsr1dx.js";
27
+ import"./index-xhpmagdm.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-nrvs08pr.js";
30
- import"./index-x88w0cp5.js";
29
+ import"./index-j89zmcpx.js";
30
+ import"./index-g1drmgxe.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-yhba8swx.js";
33
33
  import"./index-xg9repnx.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-vf6e8ame.js";
8
- import"./index-nrvs08pr.js";
7
+ } from "./index-bjrkg4tc.js";
8
+ import"./index-j89zmcpx.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-yhba8swx.js";
11
11
  import"./index-xg9repnx.js";
@@ -93,7 +93,7 @@ import {
93
93
  resolveGeneratedAgentRole,
94
94
  resolveGuardrailsConfig,
95
95
  stripKnownSwarmPrefix
96
- } from "./index-337r9pkr.js";
96
+ } from "./index-dzaarxhg.js";
97
97
  import"./index-bk5tah7q.js";
98
98
  import"./index-bpmtbmy9.js";
99
99
  import"./index-zjygnfay.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveScopeWithFallbacks,
13
13
  writeScopeBindingToDisk,
14
14
  writeScopeToDisk
15
- } from "./index-ny93srnd.js";
15
+ } from "./index-fpkb3mw1.js";
16
16
  import"./index-wxyxf0bd.js";
17
17
  import"./index-1kz6da87.js";
18
18
  import"./index-09b9zncg.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-a4972t0f.js";
37
- import"./index-997d6p42.js";
38
- import"./index-g0raqavt.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-nrvs08pr.js";
41
- import"./index-x88w0cp5.js";
40
+ import"./index-j89zmcpx.js";
41
+ import"./index-g1drmgxe.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-yhba8swx.js";
44
44
  import"./index-xg9repnx.js";
@@ -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 {};