opencode-swarm 7.186.1 → 7.186.3

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 (94) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/cli/{auto-checkpoint-fsd4a9q9.js → auto-checkpoint-3ft68we2.js} +8 -8
  4. package/dist/cli/{checkpoint-rc61fd93.js → checkpoint-27a98tkw.js} +16 -16
  5. package/dist/cli/{coder-settlement-x198191a.js → coder-settlement-z3r3mx9z.js} +12 -12
  6. package/dist/cli/{config-doctor-mj4ae4jn.js → config-doctor-d7tpqsk7.js} +2 -2
  7. package/dist/cli/{core-fvsjr20m.js → core-jzvq5n4x.js} +3 -3
  8. package/dist/cli/{curation-policy-pxwagyh7.js → curation-policy-1zdsb3h0.js} +6 -6
  9. package/dist/cli/{curator-drift-t150w08d.js → curator-drift-b3yfwf6r.js} +8 -8
  10. package/dist/cli/{curator-h7j1xse4.js → curator-hq3znz6x.js} +41 -41
  11. package/dist/cli/curator-llm-factory-x9xwvhf2.js +81 -0
  12. package/dist/cli/{evidence-summary-service-h42y6hwq.js → evidence-summary-service-y2c01066.js} +19 -19
  13. package/dist/cli/{gate-evidence-c7caa5x2.js → gate-evidence-0c3g9dye.js} +7 -7
  14. package/dist/cli/guardrail-explain-49cp1v40.js +82 -0
  15. package/dist/cli/{guardrail-log-hcr5rptq.js → guardrail-log-5vbtcfxm.js} +7 -7
  16. package/dist/cli/{guardrail-reset-fqgf5sdb.js → guardrail-reset-fk26vkf9.js} +41 -41
  17. package/dist/cli/{hive-promoter-632ewk29.js → hive-promoter-tv86mzjk.js} +41 -41
  18. package/dist/cli/{index-mnb1pg1n.js → index-0aqhn0vx.js} +4 -4
  19. package/dist/cli/{index-w6w6ny06.js → index-1f7mkb7p.js} +58 -58
  20. package/dist/cli/{index-dbcwvc1v.js → index-1m3502g5.js} +7 -7
  21. package/dist/cli/{index-pe1wgpvg.js → index-2jnw5f1m.js} +7 -7
  22. package/dist/cli/{index-hw8w4mkh.js → index-30231sgv.js} +41 -41
  23. package/dist/cli/{index-c5e1wr7h.js → index-4tpwp24b.js} +2 -2
  24. package/dist/cli/{index-hmwnegkz.js → index-57f4m0jx.js} +1 -1
  25. package/dist/cli/{index-j42256hj.js → index-5f27zcmk.js} +1 -1
  26. package/dist/cli/{index-teyvb5tr.js → index-5xqahbey.js} +1 -1
  27. package/dist/cli/{index-9z9g1897.js → index-5z1xrkaa.js} +2 -2
  28. package/dist/cli/{index-gjrs1epm.js → index-8ehsv9yw.js} +1 -1
  29. package/dist/cli/{index-bpqw4n2f.js → index-98hksf1k.js} +1 -1
  30. package/dist/cli/{index-3rd7gqfg.js → index-awhynpzh.js} +2 -2
  31. package/dist/cli/{index-8fnayk3x.js → index-brc3ya4v.js} +5 -5
  32. package/dist/cli/{index-4z0zdcd7.js → index-c0629bpk.js} +3 -3
  33. package/dist/cli/{index-92bbwjek.js → index-cbpggzdm.js} +2 -2
  34. package/dist/cli/{index-98j268bh.js → index-dvr0qqpd.js} +4 -4
  35. package/dist/cli/{index-m8dry0a6.js → index-g319bdeh.js} +1 -1
  36. package/dist/cli/{index-jwkybwv0.js → index-gagz268y.js} +4 -4
  37. package/dist/cli/{index-q9wnbz9q.js → index-gvch83kc.js} +1 -1
  38. package/dist/cli/{index-92y6cpqn.js → index-h8pb617g.js} +2 -2
  39. package/dist/cli/{index-8jq3jsas.js → index-hz5460h6.js} +1 -1
  40. package/dist/cli/{index-5v1sqv3m.js → index-j2m9q6w1.js} +1 -1
  41. package/dist/cli/{index-hq9f7fwf.js → index-j4m289f6.js} +2 -2
  42. package/dist/cli/{index-qg0nhcke.js → index-j94gxxr9.js} +5 -5
  43. package/dist/cli/{index-xkxt1b08.js → index-jh7zxttz.js} +3 -3
  44. package/dist/cli/{index-nnmgg6z6.js → index-k0y18g1z.js} +1 -1
  45. package/dist/cli/{index-y7s92gte.js → index-kbcx6rqh.js} +2 -2
  46. package/dist/cli/{index-ef3pecd4.js → index-kfrjsjsq.js} +178 -142
  47. package/dist/cli/{index-0t61279z.js → index-m4x88cwp.js} +3 -3
  48. package/dist/cli/{index-t46swpqf.js → index-mdxqv3r9.js} +1 -1
  49. package/dist/cli/{index-010en5sq.js → index-q4vf9k47.js} +1 -1
  50. package/dist/cli/{index-4h6e73bx.js → index-q5r4713h.js} +7 -7
  51. package/dist/cli/{index-ptp6d5mm.js → index-r8eakfzj.js} +11 -11
  52. package/dist/cli/{index-ezttvjcf.js → index-rm4z4a34.js} +7 -7
  53. package/dist/cli/{index-gbmsvfp2.js → index-s4dd6e7d.js} +2 -2
  54. package/dist/cli/{index-w12y73z5.js → index-sqksezk4.js} +1 -1
  55. package/dist/cli/{index-qj7ewgrf.js → index-vzfwgs6g.js} +8 -8
  56. package/dist/cli/{index-chaa1v0b.js → index-w2vzq8ws.js} +5 -5
  57. package/dist/cli/{index-vvajq163.js → index-x0aa15wh.js} +3 -3
  58. package/dist/cli/{index-ay508kfq.js → index-xavr110v.js} +5 -5
  59. package/dist/cli/{index-03d68zxw.js → index-y4bn9az1.js} +43 -43
  60. package/dist/cli/{index-6cjpmvpa.js → index-y9wsfekf.js} +1 -1
  61. package/dist/cli/{index-xe34ymp8.js → index-yjgg48mb.js} +2 -2
  62. package/dist/cli/{index-syt8wykh.js → index-z4mwsjw0.js} +4 -4
  63. package/dist/cli/{index-wrhf5apg.js → index-zyx7p0kb.js} +2 -2
  64. package/dist/cli/index.js +42 -42
  65. package/dist/cli/{knowledge-escalator-gajaew60.js → knowledge-escalator-2madg0ca.js} +13 -13
  66. package/dist/cli/{knowledge-events-fsbgfz4z.js → knowledge-events-gqctvgs7.js} +11 -11
  67. package/dist/cli/{knowledge-link-jnnk0nmk.js → knowledge-link-5jhded41.js} +5 -5
  68. package/dist/cli/{knowledge-store-vaq1g1dx.js → knowledge-store-sqp37v4m.js} +6 -6
  69. package/dist/cli/{knowledge-validator-pdr6m77a.js → knowledge-validator-vm75w5pd.js} +8 -8
  70. package/dist/cli/{mcp-5sn4e5t2.js → mcp-hd4g629b.js} +1 -1
  71. package/dist/cli/{model-preflight-z9p55ssn.js → model-preflight-a1tdp8za.js} +41 -41
  72. package/dist/cli/{pending-delegations-asyc469v.js → pending-delegations-s999zx97.js} +12 -12
  73. package/dist/cli/{pr-subscriptions-nacx8r6a.js → pr-subscriptions-eyz5vt2e.js} +12 -12
  74. package/dist/cli/{pr-workflow-gate-j3r636zg.js → pr-workflow-gate-zynajz1z.js} +41 -41
  75. package/dist/cli/{runner-fns4esbf.js → runner-fbmancth.js} +6 -6
  76. package/dist/cli/{scan-cursor-y9rchz83.js → scan-cursor-z9ns85nn.js} +7 -7
  77. package/dist/cli/{schema-g377jsvv.js → schema-fbjzdke4.js} +1 -1
  78. package/dist/cli/{scope-persistence-dtympt37.js → scope-persistence-n8deptf7.js} +15 -15
  79. package/dist/cli/{server-n51pvxds.js → server-34119777.js} +41 -41
  80. package/dist/cli/{skill-generator-k3hnf8xx.js → skill-generator-5wd9jyv0.js} +15 -15
  81. package/dist/cli/{snapshot-coordination-init-k1f93806.js → snapshot-coordination-init-fehge5m6.js} +41 -41
  82. package/dist/cli/{speckit-checkoff-w7qbrzph.js → speckit-checkoff-4s2pzjh7.js} +4 -4
  83. package/dist/cli/{telemetry-n6y2sjhg.js → telemetry-3bjvjbcp.js} +1 -1
  84. package/dist/cli/{workspace-snapshot-1sa8m2ea.js → workspace-snapshot-hcgztg7w.js} +3 -3
  85. package/dist/cli/{worktree-collision-ownership-4yxah5wy.js → worktree-collision-ownership-4mr9e88y.js} +13 -13
  86. package/dist/cli/{worktree-isolation-p0pz81a1.js → worktree-isolation-ezph1j56.js} +41 -41
  87. package/dist/hooks/diff-scope.d.ts +24 -1
  88. package/dist/index.d.ts +21 -0
  89. package/dist/index.js +18 -18
  90. package/dist/review/evidence.d.ts +8 -4
  91. package/dist/services/cost-accounting.d.ts +21 -12
  92. package/package.json +1 -1
  93. package/dist/cli/curator-llm-factory-29cswvhr.js +0 -81
  94. package/dist/cli/guardrail-explain-yfd11za1.js +0 -82
@@ -21,75 +21,75 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-ef3pecd4.js";
25
- import"./index-vvajq163.js";
26
- import"./index-hmwnegkz.js";
27
- import"./index-chaa1v0b.js";
24
+ } from "./index-kfrjsjsq.js";
25
+ import"./index-x0aa15wh.js";
26
+ import"./index-57f4m0jx.js";
27
+ import"./index-w2vzq8ws.js";
28
28
  import"./index-7bxssqaf.js";
29
- import"./index-w12y73z5.js";
30
- import"./index-92y6cpqn.js";
29
+ import"./index-sqksezk4.js";
30
+ import"./index-h8pb617g.js";
31
31
  import"./index-txdagbh7.js";
32
- import"./index-xe34ymp8.js";
32
+ import"./index-yjgg48mb.js";
33
33
  import"./index-rdec0y3z.js";
34
- import"./index-0t61279z.js";
35
- import"./index-4h6e73bx.js";
36
- import"./index-mnb1pg1n.js";
37
- import"./index-qg0nhcke.js";
38
- import"./index-9z9g1897.js";
39
- import"./index-dbcwvc1v.js";
34
+ import"./index-m4x88cwp.js";
35
+ import"./index-q5r4713h.js";
36
+ import"./index-0aqhn0vx.js";
37
+ import"./index-j94gxxr9.js";
38
+ import"./index-5z1xrkaa.js";
39
+ import"./index-1m3502g5.js";
40
40
  import"./index-cjapb4hy.js";
41
- import"./index-wrhf5apg.js";
41
+ import"./index-zyx7p0kb.js";
42
42
  import"./index-pt7h91zc.js";
43
43
  import"./index-q7sjgr1y.js";
44
- import"./index-syt8wykh.js";
45
- import"./index-ptp6d5mm.js";
44
+ import"./index-z4mwsjw0.js";
45
+ import"./index-r8eakfzj.js";
46
46
  import"./index-6b295cas.js";
47
47
  import"./index-9nyqt3kb.js";
48
- import"./index-8jq3jsas.js";
48
+ import"./index-hz5460h6.js";
49
49
  import"./index-zsrtt42s.js";
50
- import"./index-3rd7gqfg.js";
51
- import"./index-98j268bh.js";
52
- import"./index-4z0zdcd7.js";
50
+ import"./index-awhynpzh.js";
51
+ import"./index-dvr0qqpd.js";
52
+ import"./index-c0629bpk.js";
53
53
  import"./index-g4fs6z4e.js";
54
- import"./index-ezttvjcf.js";
55
- import"./index-qj7ewgrf.js";
56
- import"./index-5v1sqv3m.js";
54
+ import"./index-rm4z4a34.js";
55
+ import"./index-vzfwgs6g.js";
56
+ import"./index-j2m9q6w1.js";
57
57
  import"./index-2s7dvzff.js";
58
- import"./index-jwkybwv0.js";
59
- import"./index-bpqw4n2f.js";
58
+ import"./index-gagz268y.js";
59
+ import"./index-98hksf1k.js";
60
60
  import"./index-rtry5xyf.js";
61
61
  import {
62
62
  resolveWorktreeIsolationConfig
63
- } from "./index-hq9f7fwf.js";
63
+ } from "./index-j4m289f6.js";
64
64
  import"./index-frcemc0b.js";
65
65
  import"./index-0725jpp7.js";
66
- import"./index-8fnayk3x.js";
67
- import"./index-ay508kfq.js";
68
- import"./index-y7s92gte.js";
69
- import"./index-010en5sq.js";
70
- import"./index-q9wnbz9q.js";
71
- import"./index-t46swpqf.js";
66
+ import"./index-brc3ya4v.js";
67
+ import"./index-xavr110v.js";
68
+ import"./index-kbcx6rqh.js";
69
+ import"./index-q4vf9k47.js";
70
+ import"./index-gvch83kc.js";
71
+ import"./index-mdxqv3r9.js";
72
72
  import"./index-ry16d01s.js";
73
73
  import"./index-rdm3px0g.js";
74
74
  import"./index-7pmbnjvj.js";
75
- import"./index-92bbwjek.js";
76
- import"./index-pe1wgpvg.js";
75
+ import"./index-cbpggzdm.js";
76
+ import"./index-2jnw5f1m.js";
77
77
  import"./index-vzm6zre7.js";
78
78
  import"./index-ae75rja9.js";
79
- import"./index-gjrs1epm.js";
80
- import"./index-c5e1wr7h.js";
81
- import"./index-6cjpmvpa.js";
79
+ import"./index-8ehsv9yw.js";
80
+ import"./index-4tpwp24b.js";
81
+ import"./index-y9wsfekf.js";
82
82
  import"./index-t7hmqgjy.js";
83
- import"./index-w6w6ny06.js";
83
+ import"./index-1f7mkb7p.js";
84
84
  import"./index-mc72pk74.js";
85
85
  import"./index-c1ggtmpm.js";
86
86
  import"./index-ejhxgyvm.js";
87
87
  import"./index-7g4c7s5r.js";
88
- import"./index-m8dry0a6.js";
88
+ import"./index-g319bdeh.js";
89
89
  import"./index-gx2vp8gx.js";
90
- import"./index-teyvb5tr.js";
90
+ import"./index-5xqahbey.js";
91
91
  import"./index-zxdawwc7.js";
92
- import"./index-nnmgg6z6.js";
92
+ import"./index-k0y18g1z.js";
93
93
  import"./index-48jvqqfa.js";
94
94
  import"./index-bk5tah7q.js";
95
95
  import"./index-gknz3bv1.js";
@@ -3,6 +3,15 @@
3
3
  * for a given task in plan.json. Returns a warning string if undeclared files
4
4
  * were modified, or null if in-scope, no scope declared, or git unavailable.
5
5
  * Never throws.
6
+ *
7
+ * Issue #2818: the repository's latest commit belongs to whichever task
8
+ * committed last, so a repository-wide `git diff HEAD~1` mis-attributes a
9
+ * concurrent task's files to the task being checked. When the caller can
10
+ * supply the task's own attribution record (`modifiedFilesByTask`), the
11
+ * comparison runs against that per-task file set instead. Without an
12
+ * attribution record the legacy repository-wide comparison is kept, and the
13
+ * warning names its evidence (diff basis + latest commit) so a reader can
14
+ * detect possible mis-attribution.
6
15
  */
7
16
  import { bunSpawn } from '../utils/bun-compat';
8
17
  import { resolveGitExecutable } from '../utils/git-executable.js';
@@ -21,9 +30,23 @@ export declare const _internals: {
21
30
  */
22
31
  resolveGitExecutable: typeof resolveGitExecutable;
23
32
  };
33
+ /**
34
+ * Optional per-task attribution source supplied by the caller.
35
+ * When `attributedFiles` is a non-empty array it is the task's own
36
+ * modified-file set (the session's coder-settlement attribution record) and
37
+ * the repository-wide git diff is not consulted at all.
38
+ */
39
+ export interface DiffScopeAttribution {
40
+ attributedFiles?: readonly string[];
41
+ }
24
42
  /**
25
43
  * Validate that git-changed files match the declared scope for a task.
26
44
  * Returns a warning string if undeclared files were modified, null otherwise.
27
45
  * Never throws.
46
+ *
47
+ * When `attribution.attributedFiles` is a non-empty array it is used as the
48
+ * changed-file set (per-task truth) and no git command runs. Otherwise the
49
+ * repository-wide diff is compared, and any warning names its evidence
50
+ * (diff basis + latest commit) so mis-attribution is detectable.
28
51
  */
29
- export declare function validateDiffScope(taskId: string, directory: string): Promise<string | null>;
52
+ export declare function validateDiffScope(taskId: string, directory: string, attribution?: DiffScopeAttribution): Promise<string | null>;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { loadPluginConfigWithMetaAsync } from './config';
4
4
  import { resolveAutoReviewConfig } from './config/schema';
5
5
  import { createRepoGraphBuilderHook } from './hooks';
6
6
  import type { MemoryConfig as RuntimeMemoryConfig } from './memory/config.js';
7
+ import { type PricingConfig as CostPricingConfig, type DelegationCostFields } from './services/cost-accounting.js';
7
8
  import { loadSnapshot } from './session/snapshot-reader.js';
8
9
  import { ensureSwarmGitExcluded } from './utils/gitignore-warning';
9
10
  /**
@@ -49,6 +50,12 @@ export declare function overrideIndexInternalsForTest(overrides: {
49
50
  regenerateMemoryReflection?: RegenerateMemoryReflectionForInit;
50
51
  }): () => void;
51
52
  export declare function schedulePostResolutionTasksForTest(tasks: readonly PostResolutionTask[]): void;
53
+ /**
54
+ * #2789 test seam: the recovery readback is module-internal (no other
55
+ * consumer), so this thin wrapper gives the unknown-preservation contract a
56
+ * non-booting unit-test surface, mirroring `schedulePostResolutionTasksForTest`.
57
+ */
58
+ export declare function recoverPendingCostCorrectionForTest(directory: string, parentSessionId: string, childSessionId: string, pricing?: CostPricingConfig): Promise<PendingCostCorrection | null | undefined>;
52
59
  /**
53
60
  * Compute the effective set of tools eligible for line-based truncation.
54
61
  *
@@ -62,6 +69,20 @@ export declare function schedulePostResolutionTasksForTest(tasks: readonly PostR
62
69
  * layer.
63
70
  */
64
71
  export declare function computeEffectiveTruncatableTools(defaultTools: ReadonlySet<string>, configuredTools: readonly string[] | undefined): Set<string>;
72
+ type PendingCostCorrection = {
73
+ recordId: string;
74
+ identityFingerprint: string;
75
+ parentSessionId: string;
76
+ parentSessionDigest: string;
77
+ agentName: string;
78
+ taskId: string;
79
+ model: string;
80
+ gate?: string;
81
+ retryIndex?: number;
82
+ pricing?: CostPricingConfig;
83
+ version: number;
84
+ currentFields: DelegationCostFields;
85
+ };
65
86
  declare const _default: {
66
87
  id: "opencode-swarm";
67
88
  server: Plugin;