opencode-swarm 7.140.1 → 7.140.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 (46) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +19 -3
  2. package/.opencode/skills/swarm-pr-review/SKILL.md +61 -14
  3. package/dist/background/candidate-contract.d.ts +3 -0
  4. package/dist/cli/{config-doctor-0b5z13vq.js → config-doctor-fnmfd35x.js} +3 -3
  5. package/dist/cli/{core-m5y25n0j.js → core-p5cyej3r.js} +2 -2
  6. package/dist/cli/{curation-policy-bn7g8n40.js → curation-policy-d52h4g8t.js} +2 -2
  7. package/dist/cli/{curator-b7f6nt8h.js → curator-3zpdqt9r.js} +14 -14
  8. package/dist/cli/{curator-llm-factory-0mkbw2hg.js → curator-llm-factory-2h0xb62t.js} +14 -14
  9. package/dist/cli/{guardrail-explain-p2htdqkz.js → guardrail-explain-yktan15c.js} +15 -15
  10. package/dist/cli/{guardrail-log-rqt9wrzw.js → guardrail-log-82da8y5a.js} +4 -4
  11. package/dist/cli/{hive-promoter-61sjdrgt.js → hive-promoter-af5yaxvt.js} +14 -14
  12. package/dist/cli/{index-jq7n7w9y.js → index-7d5jseea.js} +2 -2
  13. package/dist/cli/{index-yf6p4wc5.js → index-7kdd75se.js} +3 -3
  14. package/dist/cli/{index-vw75bhf3.js → index-898f16j9.js} +1 -1
  15. package/dist/cli/{index-0an7an2s.js → index-8bnzzv3b.js} +2 -2
  16. package/dist/cli/{index-hnprx6qv.js → index-8n4c3vec.js} +2 -2
  17. package/dist/cli/{index-6fwr2w8v.js → index-95bj4kaw.js} +2 -2
  18. package/dist/cli/{index-7nhrn9sy.js → index-gtbmabws.js} +1 -1
  19. package/dist/cli/{index-hgrzjhsf.js → index-j1xmren9.js} +3 -3
  20. package/dist/cli/{index-r7tg8kjh.js → index-jvk119ck.js} +5 -5
  21. package/dist/cli/{index-v1d4qz8y.js → index-n408rw7n.js} +1 -1
  22. package/dist/cli/{index-wysn7pcz.js → index-n8jncheh.js} +1 -1
  23. package/dist/cli/{index-a98msw3z.js → index-p9dsb0tw.js} +1 -1
  24. package/dist/cli/{index-dn3nkwbc.js → index-pg7n141e.js} +1 -1
  25. package/dist/cli/{index-ff7b0cr5.js → index-pj9h75cc.js} +16 -16
  26. package/dist/cli/{index-7f72x6nv.js → index-q1q8b85k.js} +435 -172
  27. package/dist/cli/{index-dbg3agxz.js → index-qksjaxpd.js} +4 -4
  28. package/dist/cli/{index-m9csth1h.js → index-wf35ka4z.js} +2 -2
  29. package/dist/cli/{index-acc18zrj.js → index-xz8f1n1a.js} +2 -2
  30. package/dist/cli/index.js +14 -14
  31. package/dist/cli/{knowledge-escalator-twwz5a0d.js → knowledge-escalator-7q59skqg.js} +3 -3
  32. package/dist/cli/{knowledge-events-hgaz06m8.js → knowledge-events-3nwfdpq7.js} +1 -1
  33. package/dist/cli/{knowledge-store-46jrzgvm.js → knowledge-store-0d83rhh3.js} +1 -1
  34. package/dist/cli/{knowledge-validator-7vnqwjtv.js → knowledge-validator-6mfx91a2.js} +4 -4
  35. package/dist/cli/{scan-cursor-acsjpv2n.js → scan-cursor-rc8q12ss.js} +2 -2
  36. package/dist/cli/{schema-4dy7emnw.js → schema-n9eaxp3a.js} +2 -2
  37. package/dist/cli/{skill-generator-a48t83hf.js → skill-generator-q7c6vadg.js} +5 -5
  38. package/dist/commands/registry.d.ts +1 -1
  39. package/dist/git/pr-workflow-state.d.ts +3 -1
  40. package/dist/hooks/compaction-customizer.d.ts +8 -0
  41. package/dist/hooks/pr-workflow-gate.d.ts +19 -13
  42. package/dist/index.js +108 -103
  43. package/dist/tools/complete-pr-workflow.d.ts +6 -0
  44. package/dist/tools/gh-evidence.d.ts +6 -0
  45. package/dist/tools/prepare-pr-workflow-checkout.d.ts +11 -0
  46. package/package.json +1 -1
@@ -1,5 +1,11 @@
1
+ import { completePrWorkflow } from '../hooks/pr-workflow-gate.js';
1
2
  import { createSwarmTool } from './create-tool.js';
3
+ import { listPendingPrWorkflowCheckoutRestores } from './prepare-pr-workflow-checkout.js';
2
4
  export declare function executeCompletePrWorkflow(args: unknown, directory: string, context?: {
3
5
  sessionID?: string;
4
6
  }): Promise<string>;
5
7
  export declare const complete_pr_workflow: ReturnType<typeof createSwarmTool>;
8
+ export declare const _internals: {
9
+ completePrWorkflow: typeof completePrWorkflow;
10
+ listPendingPrWorkflowCheckoutRestores: typeof listPendingPrWorkflowCheckoutRestores;
11
+ };
@@ -1,8 +1,14 @@
1
1
  import type { ToolDefinition } from '@opencode-ai/plugin/tool';
2
2
  import { resolveExecutableFromPath, runExternalTool } from '../utils/external-tool-runner';
3
+ interface GhBinaryCandidateOptions {
4
+ env?: Pick<NodeJS.ProcessEnv, 'ProgramFiles' | 'ProgramFiles(x86)' | 'LOCALAPPDATA'>;
5
+ platform?: NodeJS.Platform;
6
+ }
7
+ export declare function resolveGhBinaryCandidates(options?: GhBinaryCandidateOptions): string[];
3
8
  declare function resolveGhBinary(): string | null;
4
9
  export declare const gh_evidence: ToolDefinition;
5
10
  export declare const _internals: {
11
+ resolveGhBinaryCandidates: typeof resolveGhBinaryCandidates;
6
12
  resolveExecutableFromPath: typeof resolveExecutableFromPath;
7
13
  resolveGhBinary: typeof resolveGhBinary;
8
14
  runExternalTool: typeof runExternalTool;
@@ -1,5 +1,9 @@
1
1
  import { classifyPrWorkflowGitState } from '../git/pr-workflow-state.js';
2
2
  import { createSwarmTool } from './create-tool.js';
3
+ export interface PrWorkflowCheckoutRestoreInventoryItem {
4
+ stash_oid: string;
5
+ stash_present: boolean | null;
6
+ }
3
7
  /**
4
8
  * Preserve explicit dirty tracked files before the unbound PR checkout.
5
9
  *
@@ -19,6 +23,11 @@ declare function runGit(directory: string, args: string[], options?: {
19
23
  exitCode: number;
20
24
  stdout: string;
21
25
  }>;
26
+ declare function readBoundedGitStdout(stream: {
27
+ getReader(): ReadableStreamDefaultReader<Uint8Array>;
28
+ }, onOverflow: () => void): Promise<string>;
29
+ declare function removeCheckoutRestoreReceipt(receiptPath: string): Promise<void>;
30
+ export declare function listPendingPrWorkflowCheckoutRestores(directory: string, sessionID: string): Promise<PrWorkflowCheckoutRestoreInventoryItem[]>;
22
31
  /**
23
32
  * Test-only seam for every Git invocation this file makes (stash push/list/show,
24
33
  * status). Originally added to serialize concurrent real-Git checkout
@@ -27,7 +36,9 @@ declare function runGit(directory: string, args: string[], options?: {
27
36
  */
28
37
  export declare const _internals: {
29
38
  runGit: typeof runGit;
39
+ readBoundedGitStdout: typeof readBoundedGitStdout;
30
40
  classifyGitState: typeof classifyPrWorkflowGitState;
41
+ removeCheckoutRestoreReceipt: typeof removeCheckoutRestoreReceipt;
31
42
  };
32
43
  export declare const prepare_pr_workflow_checkout: ReturnType<typeof createSwarmTool>;
33
44
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.140.1",
3
+ "version": "7.140.3",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",