opencode-swarm 7.160.0 → 7.160.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 (82) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +28 -29
  2. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +21 -5
  3. package/dist/background/pending-delegations.d.ts +46 -1
  4. package/dist/background/pr-review-contract.d.ts +245 -2
  5. package/dist/cli/{coder-settlement-zn552sp9.js → coder-settlement-678ccmnf.js} +9 -9
  6. package/dist/cli/{config-doctor-ddtdz2g0.js → config-doctor-fr8dfrt2.js} +3 -3
  7. package/dist/cli/{core-embasn2j.js → core-4j1hbhey.js} +2 -2
  8. package/dist/cli/{curation-policy-agr6ga1s.js → curation-policy-47przjwg.js} +4 -4
  9. package/dist/cli/{curator-dgp6dxxn.js → curator-85d97240.js} +31 -31
  10. package/dist/cli/{curator-llm-factory-7cwvmc46.js → curator-llm-factory-s9s4s0q3.js} +31 -31
  11. package/dist/cli/{evidence-summary-service-sbnyann4.js → evidence-summary-service-9dyt2kzh.js} +13 -13
  12. package/dist/cli/{gate-evidence-5v67a1dz.js → gate-evidence-a6paafg8.js} +5 -5
  13. package/dist/cli/{guardrail-explain-2gwarnca.js → guardrail-explain-4a2xdtew.js} +32 -32
  14. package/dist/cli/{guardrail-log-zbnbff1y.js → guardrail-log-27nkntrx.js} +7 -7
  15. package/dist/cli/{guardrail-reset-3cnz54hx.js → guardrail-reset-xn7k3hn8.js} +31 -31
  16. package/dist/cli/{hive-promoter-7cr7t2kg.js → hive-promoter-k57j3kp6.js} +31 -31
  17. package/dist/cli/{index-q6gjwy7m.js → index-497a3hhj.js} +2 -2
  18. package/dist/cli/{index-sy5aeegg.js → index-61c3d769.js} +866 -37
  19. package/dist/cli/{index-rq7k03rk.js → index-7ezv5j23.js} +1 -1
  20. package/dist/cli/{index-4mm22fzj.js → index-7h2armwf.js} +1 -1
  21. package/dist/cli/{index-1f4n43yz.js → index-7npz9n4s.js} +5 -4
  22. package/dist/cli/{index-gt8cxfbp.js → index-7v0ex0jt.js} +2 -2
  23. package/dist/cli/{index-ebz97mks.js → index-8c9qzpy7.js} +1 -0
  24. package/dist/cli/{index-5m7qjj29.js → index-98jmggma.js} +6 -6
  25. package/dist/cli/{index-cn233hsy.js → index-awjx0wgk.js} +1 -1
  26. package/dist/cli/{index-962jgzdq.js → index-bqxffayb.js} +1 -1
  27. package/dist/cli/{index-h3re5c78.js → index-c9zp4xwc.js} +12 -1
  28. package/dist/cli/{index-p39xem8b.js → index-dh5q6z7y.js} +3 -3
  29. package/dist/cli/{index-7qv869f0.js → index-dq93ar40.js} +5 -5
  30. package/dist/cli/{index-3055dgzp.js → index-drqvph47.js} +4 -4
  31. package/dist/cli/{index-jmths6jj.js → index-e1ygmd4q.js} +33 -33
  32. package/dist/cli/{index-py6bqwnb.js → index-f72612zc.js} +16 -2
  33. package/dist/cli/{index-9q6w7kke.js → index-gjx53y3c.js} +1 -1
  34. package/dist/cli/{index-xs15netk.js → index-j3ss86kf.js} +1 -1
  35. package/dist/cli/{index-kkfgygvn.js → index-jszabr0r.js} +4 -4
  36. package/dist/cli/{index-9k3zc2t8.js → index-m1cw9fsh.js} +6 -6
  37. package/dist/cli/{index-wzx6atbv.js → index-m84z3aa8.js} +3 -3
  38. package/dist/cli/{index-e75bzfgd.js → index-mmr96pwr.js} +1 -1
  39. package/dist/cli/{index-85qjc7b2.js → index-nk498mx6.js} +1 -1
  40. package/dist/cli/{index-3yh737hc.js → index-nnzdayvk.js} +6 -6
  41. package/dist/cli/{index-va1edd2n.js → index-ny0g8fdg.js} +5 -5
  42. package/dist/cli/{index-yrar1ask.js → index-pkz91fwm.js} +3 -3
  43. package/dist/cli/{index-zjvf7edj.js → index-pqjcyj0p.js} +1 -1
  44. package/dist/cli/{index-9fspg1xw.js → index-prv20xq6.js} +1 -1
  45. package/dist/cli/{index-fzkx24q5.js → index-qc53dfzh.js} +2 -2
  46. package/dist/cli/{index-8bjv01t8.js → index-v8dsmee1.js} +4 -4
  47. package/dist/cli/{index-d9s5hb0m.js → index-wccdm7jv.js} +5 -5
  48. package/dist/cli/{index-w699ekk9.js → index-z0bxbb9g.js} +2 -2
  49. package/dist/cli/{index-rnyt2z5r.js → index-zdv914xa.js} +304 -438
  50. package/dist/cli/{index-s7w428r3.js → index-znf683sm.js} +1 -1
  51. package/dist/cli/{index-rhc8jve7.js → index-zpzvpybn.js} +2 -2
  52. package/dist/cli/index.js +31 -31
  53. package/dist/cli/{knowledge-escalator-zksm9833.js → knowledge-escalator-3q2x34cg.js} +12 -12
  54. package/dist/cli/{knowledge-events-ayta750w.js → knowledge-events-5y34w84b.js} +10 -10
  55. package/dist/cli/{knowledge-link-7c7fjnzc.js → knowledge-link-xezm8hr3.js} +3 -3
  56. package/dist/cli/{knowledge-store-q5axge8b.js → knowledge-store-fqv89q5k.js} +4 -4
  57. package/dist/cli/{knowledge-validator-3rrbva2p.js → knowledge-validator-fsdx14tk.js} +6 -6
  58. package/dist/cli/{model-preflight-x9szw1v4.js → model-preflight-yqqchzjn.js} +1 -1
  59. package/dist/cli/{pending-delegations-kc7tzxg9.js → pending-delegations-6ae7wy5q.js} +5 -3
  60. package/dist/cli/{pr-review-reentry-authorization-vag5gh50.js → pr-review-reentry-authorization-986tk381.js} +33 -32
  61. package/dist/cli/{pr-subscriptions-wbdw9a82.js → pr-subscriptions-asjevc5p.js} +3 -3
  62. package/dist/cli/{runner-p9wg6z34.js → runner-wsdcy2d6.js} +4 -4
  63. package/dist/cli/{scan-cursor-4fjwtt1k.js → scan-cursor-shn926r6.js} +5 -5
  64. package/dist/cli/{schema-d0nbzj5k.js → schema-98tdb9h0.js} +4 -2
  65. package/dist/cli/{scope-persistence-bckcbc8h.js → scope-persistence-cn34xnwr.js} +8 -8
  66. package/dist/cli/{skill-generator-kebhevet.js → skill-generator-kck7087c.js} +14 -14
  67. package/dist/cli/{worktree-collision-ownership-h8qswnrp.js → worktree-collision-ownership-6b3kshcv.js} +4 -4
  68. package/dist/cli/{worktree-isolation-q0kbmadz.js → worktree-isolation-he01qhss.js} +31 -31
  69. package/dist/config/constants.d.ts +8 -0
  70. package/dist/config/evidence-schema.d.ts +3 -0
  71. package/dist/config/schema.d.ts +8 -0
  72. package/dist/hooks/pr-workflow-gate.d.ts +25 -1
  73. package/dist/index.js +124 -111
  74. package/dist/tools/dispatch-lanes.d.ts +27 -3
  75. package/dist/tools/index.d.ts +1 -0
  76. package/dist/tools/manifest.d.ts +1 -0
  77. package/dist/tools/sast-baseline.d.ts +2 -0
  78. package/dist/tools/sast-scan.d.ts +2 -2
  79. package/dist/tools/submit-pr-review-result.d.ts +5 -0
  80. package/dist/tools/tool-metadata.d.ts +8 -0
  81. package/opencode-swarm.schema.json +4 -0
  82. package/package.json +1 -1
@@ -21,63 +21,63 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-rnyt2z5r.js";
25
- import"./index-xs15netk.js";
26
- import"./index-wzx6atbv.js";
27
- import"./index-py6bqwnb.js";
28
- import"./index-9k3zc2t8.js";
29
- import"./index-85qjc7b2.js";
24
+ } from "./index-zdv914xa.js";
25
+ import"./index-j3ss86kf.js";
26
+ import"./index-m84z3aa8.js";
27
+ import"./index-f72612zc.js";
28
+ import"./index-m1cw9fsh.js";
29
+ import"./index-nk498mx6.js";
30
30
  import"./index-txdagbh7.js";
31
31
  import"./index-134d35c1.js";
32
32
  import"./index-nj6rmyeh.js";
33
- import"./index-8bjv01t8.js";
34
- import"./index-va1edd2n.js";
35
- import"./index-gt8cxfbp.js";
33
+ import"./index-v8dsmee1.js";
34
+ import"./index-ny0g8fdg.js";
35
+ import"./index-7v0ex0jt.js";
36
36
  import"./index-70ha9e09.js";
37
37
  import"./index-c8s9a3zh.js";
38
38
  import"./index-9ss2m4rs.js";
39
- import"./index-q6gjwy7m.js";
39
+ import"./index-497a3hhj.js";
40
40
  import"./index-zsrtt42s.js";
41
- import"./index-7qv869f0.js";
41
+ import"./index-dq93ar40.js";
42
42
  import"./index-3f7hqtgg.js";
43
- import"./index-cn233hsy.js";
44
- import"./index-kkfgygvn.js";
45
- import"./index-s7w428r3.js";
43
+ import"./index-awjx0wgk.js";
44
+ import"./index-jszabr0r.js";
45
+ import"./index-znf683sm.js";
46
46
  import"./index-rtry5xyf.js";
47
- import"./index-w699ekk9.js";
48
- import"./index-fzkx24q5.js";
49
- import"./index-sy5aeegg.js";
47
+ import"./index-z0bxbb9g.js";
48
+ import"./index-qc53dfzh.js";
49
+ import"./index-61c3d769.js";
50
50
  import"./index-ddszzne4.js";
51
- import"./index-3055dgzp.js";
52
- import"./index-zjvf7edj.js";
53
- import"./index-4mm22fzj.js";
51
+ import"./index-drqvph47.js";
52
+ import"./index-pqjcyj0p.js";
53
+ import"./index-7h2armwf.js";
54
54
  import"./index-556ja8an.js";
55
55
  import"./index-4fwbbad3.js";
56
56
  import"./index-b43rt5ph.js";
57
57
  import"./index-q7sjgr1y.js";
58
- import"./index-3yh737hc.js";
59
- import"./index-5m7qjj29.js";
58
+ import"./index-nnzdayvk.js";
59
+ import"./index-98jmggma.js";
60
60
  import {
61
61
  resolveWorktreeIsolationConfig
62
- } from "./index-yrar1ask.js";
63
- import"./index-ebz97mks.js";
62
+ } from "./index-pkz91fwm.js";
63
+ import"./index-8c9qzpy7.js";
64
64
  import"./index-n832052r.js";
65
65
  import"./index-dtn0pne5.js";
66
66
  import"./index-z6xqpmqg.js";
67
67
  import"./index-r3mvsbtq.js";
68
- import"./index-962jgzdq.js";
69
- import"./index-1f4n43yz.js";
68
+ import"./index-bqxffayb.js";
69
+ import"./index-7npz9n4s.js";
70
70
  import"./index-9e6fdz2h.js";
71
71
  import"./index-4rhhvd1a.js";
72
- import"./index-e75bzfgd.js";
73
- import"./index-h3re5c78.js";
72
+ import"./index-mmr96pwr.js";
73
+ import"./index-c9zp4xwc.js";
74
74
  import"./index-zjygnfay.js";
75
75
  import"./index-ae75rja9.js";
76
- import"./index-9fspg1xw.js";
77
- import"./index-rq7k03rk.js";
76
+ import"./index-prv20xq6.js";
77
+ import"./index-7ezv5j23.js";
78
78
  import"./index-bk5tah7q.js";
79
79
  import"./index-b5adxpy6.js";
80
- import"./index-p39xem8b.js";
80
+ import"./index-dh5q6z7y.js";
81
81
  import"./index-ed5ykebp.js";
82
82
  import"./index-dke4wzkn.js";
83
83
  import"./index-7g4c7s5r.js";
@@ -17,6 +17,14 @@ export declare const TURBO_TOOL_NAMES: readonly ["lean_turbo_plan_lanes", "lean_
17
17
  export declare const TURBO_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>>;
18
18
  export declare const SKILL_TOOL_NAMES: readonly ["skill_generate", "skill_list", "skill_apply", "skill_inspect", "skill_regenerate", "skill_retire", "skill_improve"];
19
19
  export declare const SKILL_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>>;
20
+ export declare const PR_REVIEW_CHILD_TOOL_NAMES: readonly ["submit_pr_review_result"];
21
+ /**
22
+ * This map documents the role ownership required by the registry invariant.
23
+ * It is deliberately consumed only by dispatch_lanes' base/micro child tool
24
+ * overlay; merging it into ordinary agent configs would expose the submission
25
+ * capability outside an exact controller-bound delegation.
26
+ */
27
+ export declare const PR_REVIEW_CHILD_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>>;
20
28
  /**
21
29
  * Human-readable descriptions for tools shown in the architect Available Tools block.
22
30
  * Used to generate the Available Tools section of the architect prompt at construction time.
@@ -424,6 +424,7 @@ export declare const SastEvidenceSchema: z.ZodObject<{
424
424
  remediation: z.ZodOptional<z.ZodString>;
425
425
  }, z.core.$strip>>>;
426
426
  baseline_used: z.ZodOptional<z.ZodBoolean>;
427
+ truncated_pre_existing: z.ZodOptional<z.ZodBoolean>;
427
428
  truncated_moved_findings: z.ZodOptional<z.ZodBoolean>;
428
429
  }, z.core.$strip>;
429
430
  export type SastEvidence = z.infer<typeof SastEvidenceSchema>;
@@ -942,6 +943,7 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
942
943
  remediation: z.ZodOptional<z.ZodString>;
943
944
  }, z.core.$strip>>>;
944
945
  baseline_used: z.ZodOptional<z.ZodBoolean>;
946
+ truncated_pre_existing: z.ZodOptional<z.ZodBoolean>;
945
947
  truncated_moved_findings: z.ZodOptional<z.ZodBoolean>;
946
948
  }, z.core.$strip>, z.ZodObject<{
947
949
  task_id: z.ZodString;
@@ -1449,6 +1451,7 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1449
1451
  remediation: z.ZodOptional<z.ZodString>;
1450
1452
  }, z.core.$strip>>>;
1451
1453
  baseline_used: z.ZodOptional<z.ZodBoolean>;
1454
+ truncated_pre_existing: z.ZodOptional<z.ZodBoolean>;
1452
1455
  truncated_moved_findings: z.ZodOptional<z.ZodBoolean>;
1453
1456
  }, z.core.$strip>, z.ZodObject<{
1454
1457
  task_id: z.ZodString;
@@ -1813,6 +1813,13 @@ export declare const PrReviewResilienceConfigSchema: z.ZodObject<{
1813
1813
  max_retry_attempts_after_initial: z.ZodDefault<z.ZodNumber>;
1814
1814
  circuit_open_duration_ms: z.ZodDefault<z.ZodNumber>;
1815
1815
  }, z.core.$strict>;
1816
+ /**
1817
+ * Issue #2384: deprecated transcript-row settlement for Profile A PR-review
1818
+ * base/micro discovery lanes is an explicit compatibility opt-in. Omitted
1819
+ * config resolves false in consumers; legacy transcript parsing remains a
1820
+ * migration-only path rather than the default authority.
1821
+ */
1822
+ export declare const DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false;
1816
1823
  export declare const PluginConfigSchema: z.ZodObject<{
1817
1824
  $schema: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1818
1825
  config_format_version: z.ZodDefault<z.ZodNumber>;
@@ -1911,6 +1918,7 @@ export declare const PluginConfigSchema: z.ZodObject<{
1911
1918
  max_retry_attempts_after_initial: z.ZodDefault<z.ZodNumber>;
1912
1919
  circuit_open_duration_ms: z.ZodDefault<z.ZodNumber>;
1913
1920
  }, z.core.$strict>>;
1921
+ pr_review_legacy_transcript_compatibility: z.ZodOptional<z.ZodBoolean>;
1914
1922
  gates: z.ZodOptional<z.ZodObject<{
1915
1923
  syntax_check: z.ZodDefault<z.ZodObject<{
1916
1924
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  import { type CandidateSeverity, type FindingsSeverity, type RowFormatFamily } from '../background/candidate-contract.js';
4
4
  import { type LaneOutputArtifact } from '../background/lane-output-store.js';
5
5
  import { type BackgroundDelegationRecord, type BackgroundDelegationResult, type BackgroundDelegationWorkflowLaneFailureClass, type BackgroundDelegationWorkflowLaneRecovery, findByBatchId, sweepStaleDelegations } from '../background/pending-delegations.js';
6
- import { PR_REVIEW_BASE_DIMENSION_IDS, type PrReviewRiskImpact, type PrReviewRiskTag } from '../background/pr-review-contract.js';
6
+ import { PR_REVIEW_BASE_DIMENSION_IDS, type PrReviewLaneResultEnvelope, type PrReviewRiskImpact, type PrReviewRiskTag } from '../background/pr-review-contract.js';
7
7
  import { type PrReviewInlineTriggerRow } from '../background/pr-review-trigger-contract.js';
8
8
  import { type RevisionDigestResult, resolveCommitCountSince, resolveCommitCountSinceAsync, resolveCurrentGitHead, resolveCurrentGitHeadAsync, resolveCurrentLocalHeadRefAsync, resolveCurrentUpstreamPushTarget, resolveCurrentUpstreamPushTargetAsync, resolveCurrentUpstreamRemoteRef, resolveExactRemoteBranchHead, resolveExactRemoteBranchHeadAsync, resolveIsExactSingleChildCommit, resolveIsExactSingleChildCommitAsync, resolveIsWorkingTreeClean, resolveIsWorkingTreeCleanAsync, resolvePrReviewDiffStats, resolvePrReviewDiffStatsAsync, resolvePrWorkflowRevisionDigest, resolvePrWorkflowRevisionDigestDetailed, resolveRemoteRefsContainingHead, resolveRemoteRefsContainingHeadAsync, resolveRemoteUrlIdentity, resolveRemoteUrlIdentityAsync } from '../background/workspace-snapshot.js';
9
9
  import { type PrReviewResilienceConfig } from '../config/schema.js';
@@ -50,6 +50,9 @@ export interface PrReviewDiscoveryLaneValidationInput {
50
50
  prHeadSha: string;
51
51
  gitHead: string;
52
52
  revisionDigest: string;
53
+ workflowInstanceId?: string;
54
+ workflowRevision?: number;
55
+ baseSha?: string;
53
56
  reviewScope?: string;
54
57
  checkWorkflowLane?: boolean;
55
58
  };
@@ -666,6 +669,25 @@ export declare function activatePrWorkflow(directory: string, sessionID: string,
666
669
  prUrl?: string;
667
670
  }): Promise<PrWorkflowGateState>;
668
671
  export declare function readPrWorkflowGateState(directory: string, sessionID: string): Promise<PrWorkflowGateState | null>;
672
+ export type SubmitPrReviewResultOutcome = {
673
+ status: 'recorded' | 'duplicate';
674
+ receiptDigest: string;
675
+ } | {
676
+ status: 'rejected';
677
+ reason: string;
678
+ };
679
+ /**
680
+ * Publish one structured base/micro discovery result from the exact child
681
+ * session that owns the live delegation. Lock order is deliberately
682
+ * workflow-session -> delegation-evidence; clear/abort takes the same outer
683
+ * lock and terminalization takes the same inner lock.
684
+ */
685
+ export declare function submitPrReviewResult(directory: string, childSessionId: string, input: {
686
+ batchId: string;
687
+ laneId: string;
688
+ revisionDigest: string;
689
+ result: PrReviewLaneResultEnvelope;
690
+ }): Promise<SubmitPrReviewResultOutcome>;
669
691
  /**
670
692
  * Serialize a pre-bind checkout-preservation controller with every terminal
671
693
  * PR-workflow transition for the raw parent session. The caller's action may
@@ -1128,6 +1150,7 @@ export declare function assertPrFeedbackGatePhaseSettled(directory: string, sess
1128
1150
  export declare function assertPrFeedbackReadyToPublish(directory: string, sessionID: string): Promise<PrWorkflowGateState>;
1129
1151
  /** Build the evidence join for a freshly armed generation. */
1130
1152
  declare function buildPublicationEvidenceJoin(state: PrWorkflowGateState, currentDigest: string): PrFeedbackPublicationEvidenceJoin | null;
1153
+ declare function boundPublicationDiagnostic(text: string): string;
1131
1154
  /**
1132
1155
  * Snapshot of the publication container with bounded history trimming.
1133
1156
  * History keeps the last {@link MAX_PUBLICATION_HISTORY_GENERATIONS}
@@ -1379,6 +1402,7 @@ export declare const _test_exports: {
1379
1402
  parseCanonicalCandidateRows: typeof parseCanonicalCandidateRows;
1380
1403
  resolvePrReviewRowFamily: typeof resolvePrReviewRowFamily;
1381
1404
  pipeFieldsCapped: typeof pipeFieldsCapped;
1405
+ boundPublicationDiagnostic: typeof boundPublicationDiagnostic;
1382
1406
  indexVerdictRows: typeof indexVerdictRows;
1383
1407
  reviewerVerdictRowDigest: typeof reviewerVerdictRowDigest;
1384
1408
  workflowGateStateRelativePath: typeof workflowGateStateRelativePath;