opencode-swarm 7.149.1 → 7.150.0

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/dist/cli/{config-doctor-d3nsq1nz.js → config-doctor-96qyv31a.js} +2 -2
  2. package/dist/cli/{core-y9d858n6.js → core-xx0x5tfv.js} +1 -1
  3. package/dist/cli/{curator-f5m0hh2p.js → curator-frrehxxe.js} +17 -17
  4. package/dist/cli/{curator-llm-factory-mzh9ns5s.js → curator-llm-factory-b83jsg02.js} +17 -17
  5. package/dist/cli/{evidence-summary-service-601x7ne7.js → evidence-summary-service-dv4bt2bx.js} +6 -6
  6. package/dist/cli/{gate-evidence-kjs9vsx9.js → gate-evidence-dkvs7aez.js} +2 -2
  7. package/dist/cli/{guardrail-explain-j291sss5.js → guardrail-explain-1zbk21fq.js} +18 -18
  8. package/dist/cli/{guardrail-log-1jykfrqc.js → guardrail-log-d20jewtr.js} +3 -3
  9. package/dist/cli/{guardrail-reset-tr07m077.js → guardrail-reset-wb3ba243.js} +17 -17
  10. package/dist/cli/{hive-promoter-162ws6xp.js → hive-promoter-10zv1b45.js} +17 -17
  11. package/dist/cli/{index-xe83cwvn.js → index-0tn1kxej.js} +3 -3
  12. package/dist/cli/{index-t994f8fp.js → index-1rpjd5na.js} +1 -1
  13. package/dist/cli/{index-dkrz1vv5.js → index-1rww5k9e.js} +3 -3
  14. package/dist/cli/{index-jg2gwzvq.js → index-1wmd5wn1.js} +1 -1
  15. package/dist/cli/{index-f53yyerg.js → index-8cn6545x.js} +19 -19
  16. package/dist/cli/{index-ekvs3ade.js → index-an922xj4.js} +3 -3
  17. package/dist/cli/{index-cna8m7my.js → index-bhg6brtw.js} +1 -1
  18. package/dist/cli/{index-5gntxwxt.js → index-g75rbw3e.js} +5 -5
  19. package/dist/cli/{index-eaq9b0qm.js → index-ggs716fj.js} +1 -1
  20. package/dist/cli/{index-kgk65rde.js → index-htqs4p52.js} +1 -1
  21. package/dist/cli/{index-mdwtj4xm.js → index-ma1p1w05.js} +4 -4
  22. package/dist/cli/{index-pf22x0dr.js → index-mef0trex.js} +1 -1
  23. package/dist/cli/{index-srwp8fs7.js → index-mnhagjvn.js} +1 -1
  24. package/dist/cli/{index-7m8rk72d.js → index-qqs44wcp.js} +1285 -428
  25. package/dist/cli/{index-fc4x86sy.js → index-r5djc1cc.js} +2 -2
  26. package/dist/cli/{index-hxbrsb40.js → index-reknv4f9.js} +1 -1
  27. package/dist/cli/{index-yjj3s8af.js → index-s0xz2520.js} +3 -3
  28. package/dist/cli/{index-cqhf7fkw.js → index-t54jt9cs.js} +1 -1
  29. package/dist/cli/{index-38ema5k2.js → index-w9pb72vg.js} +2 -2
  30. package/dist/cli/{index-64d17yd0.js → index-x3pt7d0b.js} +2 -2
  31. package/dist/cli/{index-1aztaa2s.js → index-zyv56em5.js} +1 -1
  32. package/dist/cli/index.js +17 -17
  33. package/dist/cli/{knowledge-escalator-whkxxgxj.js → knowledge-escalator-pc7smwrd.js} +6 -6
  34. package/dist/cli/{knowledge-events-rnqzt87h.js → knowledge-events-jmb3jm84.js} +4 -4
  35. package/dist/cli/{knowledge-store-7de59rnz.js → knowledge-store-wd6zh05h.js} +1 -1
  36. package/dist/cli/{knowledge-validator-bpk17jf4.js → knowledge-validator-2v6ar1wk.js} +2 -2
  37. package/dist/cli/{scan-cursor-0p51fh61.js → scan-cursor-hr8e3jqj.js} +2 -2
  38. package/dist/cli/{schema-8g2nxhjf.js → schema-g44y7s0w.js} +1 -1
  39. package/dist/cli/{scope-persistence-hhkr0c46.js → scope-persistence-0n2cv4kn.js} +4 -4
  40. package/dist/cli/{skill-generator-pk9gcz7r.js → skill-generator-0gmpxwgk.js} +7 -7
  41. package/dist/cli/{worktree-isolation-1hwwfbdw.js → worktree-isolation-pcr5zv0c.js} +17 -17
  42. package/dist/index.js +176 -152
  43. package/dist/lang/symbol-graph.d.ts +15 -0
  44. package/dist/tools/repo-graph/builder.d.ts +27 -1
  45. package/dist/tools/symbols.d.ts +35 -0
  46. package/package.json +1 -1
@@ -50,3 +50,18 @@ export interface FileSymbolFacts {
50
50
  * @returns FileSymbolFacts, or null on failure
51
51
  */
52
52
  export declare function extractFileSymbols(grammarId: string, source: string): Promise<FileSymbolFacts | null>;
53
+ declare function parseDartImport(text: string): FileSymbolFacts['imports'][0] | FileSymbolFacts['imports'] | null;
54
+ declare function parseRubyRequire(text: string): FileSymbolFacts['imports'][0] | null;
55
+ declare function parsePhpUse(text: string): FileSymbolFacts['imports'][0] | null;
56
+ /**
57
+ * DI seam for direct parser tests — the import parsers are module-private by
58
+ * design; tests exercise them through this seam instead of `mock.module`,
59
+ * which leaks across Bun's shared test-runner process (@see AGENTS.md
60
+ * invariant #7; PR #2361 review R10/PRR-017).
61
+ */
62
+ export declare const _internals: {
63
+ parseDartImport: typeof parseDartImport;
64
+ parseRubyRequire: typeof parseRubyRequire;
65
+ parsePhpUse: typeof parsePhpUse;
66
+ };
67
+ export {};
@@ -11,7 +11,7 @@
11
11
  * used by both the builder and the incremental updater.
12
12
  */
13
13
  import { extractFileSymbols } from '../../lang/symbol-graph';
14
- import { extractGoSymbols, extractPythonSymbols, extractRustSymbols, extractTSSymbols } from '../symbols';
14
+ import { extractDartSymbols, extractGoSymbols, extractPhpSymbols, extractPythonSymbols, extractRubySymbols, extractRustSymbols, extractTSSymbols } from '../symbols';
15
15
  import { extractFileOntology } from './ontology';
16
16
  import { safeRealpathSync } from './safe-realpath';
17
17
  import type { BuildWorkspaceGraphOptions, GraphEdge, GraphExtractorInputWitness, GraphNode, RepoGraph, RepoGraphDiagnostics, SymbolEdge } from './types';
@@ -28,7 +28,13 @@ export declare const _internals: {
28
28
  extractPythonSymbols: typeof extractPythonSymbols;
29
29
  extractRustSymbols: typeof extractRustSymbols;
30
30
  extractGoSymbols: typeof extractGoSymbols;
31
+ extractDartSymbols: typeof extractDartSymbols;
32
+ extractRubySymbols: typeof extractRubySymbols;
33
+ extractPhpSymbols: typeof extractPhpSymbols;
31
34
  parseFileImports: typeof parseFileImports;
35
+ parseDartFileImports: typeof parseDartFileImports;
36
+ parseRubyFileImports: typeof parseRubyFileImports;
37
+ parsePhpFileImports: typeof parsePhpFileImports;
32
38
  extractFileOntology: typeof extractFileOntology;
33
39
  stripComments: typeof stripComments;
34
40
  computeUsedSymbols: typeof computeUsedSymbols;
@@ -132,6 +138,26 @@ interface ParsedImport {
132
138
  */
133
139
  declare function stripComments(content: string): string;
134
140
  declare function parseFileImports(rawContent: string, sourceFile?: string, workspaceRoot?: string): ParsedImport[];
141
+ /**
142
+ * Regex import fallback for Dart (see {@link parseCSharpFileImports}).
143
+ * `hide` clauses are intentionally unhandled — the import is still recorded
144
+ * as a namespace import (all symbols minus hidden ones), which is correct
145
+ * for graph purposes.
146
+ */
147
+ declare function parseDartFileImports(rawContent: string): ParsedImport[];
148
+ /**
149
+ * Regex import fallback for Ruby require/require_relative. `require_relative`
150
+ * resolves against the requiring file's directory, so the specifier is
151
+ * normalized to './name' when no explicit relative prefix is present.
152
+ */
153
+ declare function parseRubyFileImports(rawContent: string): ParsedImport[];
154
+ /**
155
+ * Regex import fallback for PHP `use` declarations. Grouped `use A\B, C\D;`
156
+ * forms are a known limitation (the whole group is skipped); FQN specifiers
157
+ * are recorded as-is — mapping them to workspace files requires composer
158
+ * PSR-4 awareness, which is out of scope (#1531 "where practical").
159
+ */
160
+ declare function parsePhpFileImports(rawContent: string): ParsedImport[];
135
161
  /**
136
162
  * Conservatively determine which imported bindings are actually referenced in
137
163
  * the importing file's body.
@@ -19,5 +19,40 @@ export declare function extractTSSymbols(filePath: string, cwd: string): SymbolI
19
19
  export declare function extractPythonSymbols(filePath: string, cwd: string): SymbolInfo[];
20
20
  export declare function extractRustSymbols(filePath: string, cwd: string): SymbolInfo[];
21
21
  export declare function extractGoSymbols(filePath: string, cwd: string): SymbolInfo[];
22
+ /**
23
+ * Dart symbols: classes/mixins/enums/extensions and functions. Visibility is
24
+ * the `_`-prefix convention. Functions declared INSIDE a type body are
25
+ * emitted as qualified `TypeName.member` method symbols (mirroring the Swift
26
+ * extractor's naming) instead of being mislabeled as top-level functions;
27
+ * the qualification also keeps same-named members of different classes from
28
+ * collapsing in the name:kind dedup.
29
+ */
30
+ export declare function extractDartSymbols(filePath: string, cwd: string): SymbolInfo[];
31
+ /**
32
+ * Ruby symbols: modules, classes, constants, and `def` methods with
33
+ * `private`/`protected` section tracking. A nested class/module saves and
34
+ * restores the outer section (approximate `end`-balance tracking); targeted
35
+ * `private :sym` marks the named method. Singleton methods keep their `self.`
36
+ * qualification in the name. Dynamic constructs (`define_method`, `send`,
37
+ * metaprogramming) are invisible to this scanner by design.
38
+ */
39
+ export declare function extractRubySymbols(filePath: string, cwd: string): SymbolInfo[];
40
+ /**
41
+ * PHP symbols: namespaces, traits/interfaces/classes, functions and methods
42
+ * with visibility modifiers. Dynamic constructs (variable functions/classes,
43
+ * variable variables, Blade directives in `.blade.php`) are best-effort
44
+ * only — see docs/php-laravel.md.
45
+ */
46
+ export declare function extractPhpSymbols(filePath: string, cwd: string): SymbolInfo[];
22
47
  export declare const symbols: ToolDefinition;
48
+ /**
49
+ * DI seam for testability — tests substitute via `_internals.fn` rather than
50
+ * `mock.module`, which leaks across Bun's shared test-runner process.
51
+ * @see AGENTS.md invariant #7
52
+ */
53
+ export declare const _internals: {
54
+ extractDartSymbols: typeof extractDartSymbols;
55
+ extractRubySymbols: typeof extractRubySymbols;
56
+ extractPhpSymbols: typeof extractPhpSymbols;
57
+ };
23
58
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.149.1",
3
+ "version": "7.150.0",
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",