opencode-swarm 7.151.0 → 7.152.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.
- package/dist/cli/{config-doctor-23ega26j.js → config-doctor-4hctd61b.js} +2 -2
- package/dist/cli/{core-3g4krkj8.js → core-ea8xgnwy.js} +1 -1
- package/dist/cli/{curation-policy-fmvccdrg.js → curation-policy-vb2f0vm7.js} +4 -4
- package/dist/cli/{curator-rym2wtn6.js → curator-krg3abzq.js} +23 -23
- package/dist/cli/{curator-llm-factory-k0nxn5gt.js → curator-llm-factory-6xnnfpt4.js} +23 -23
- package/dist/cli/{evidence-summary-service-f0gvjesf.js → evidence-summary-service-dtjr30pg.js} +9 -9
- package/dist/cli/{gate-evidence-cghq17xc.js → gate-evidence-msnd1tda.js} +4 -4
- package/dist/cli/{guardrail-explain-cv52smw2.js → guardrail-explain-nbgds0g0.js} +24 -24
- package/dist/cli/{guardrail-log-wgwmh9b7.js → guardrail-log-emgfqa5s.js} +3 -3
- package/dist/cli/{guardrail-reset-vx7zsmzd.js → guardrail-reset-95jhw7rg.js} +23 -23
- package/dist/cli/{hive-promoter-jb2nzv3j.js → hive-promoter-ch6h94j3.js} +23 -23
- package/dist/cli/{index-bfc4bbq4.js → index-19tznm6x.js} +4 -4
- package/dist/cli/{index-8wy7pb4a.js → index-1hbmy0ny.js} +2 -2
- package/dist/cli/{index-dvycdkhj.js → index-30gf3exm.js} +1 -1
- package/dist/cli/{index-v3gshkpz.js → index-5th6khpe.js} +1 -1
- package/dist/cli/{index-7qbyetsf.js → index-7afvf50d.js} +1 -1
- package/dist/cli/{index-xeptzfb6.js → index-8nzqtv6b.js} +2 -2
- package/dist/cli/{index-tp1avc8j.js → index-93rgk3ax.js} +2 -2
- package/dist/cli/{index-fybg880e.js → index-9hc6ytb1.js} +82 -59
- package/dist/cli/{index-fkqfcv14.js → index-cgfjvkps.js} +1 -1
- package/dist/cli/{index-2qte9nr7.js → index-cxt62pxj.js} +1 -1
- package/dist/cli/{index-kghpgs47.js → index-dc7hh4d9.js} +1 -1
- package/dist/cli/{index-e9qh1j19.js → index-dsg5aqtj.js} +3 -3
- package/dist/cli/{index-9wpr1p2g.js → index-ek6t1e9h.js} +1 -1
- package/dist/cli/{index-vs8wtavs.js → index-fk3msss3.js} +1 -1
- package/dist/cli/{index-sg48w5e4.js → index-h6tvj6nr.js} +2 -2
- package/dist/cli/{index-wna9f75x.js → index-h9tcawtm.js} +4 -4
- package/dist/cli/{index-frp2hwdg.js → index-kca6ng28.js} +1 -1
- package/dist/cli/{index-tfkc0zf4.js → index-n1j0cmj3.js} +1 -1
- package/dist/cli/{index-02qc4ehj.js → index-n8yastrw.js} +3 -3
- package/dist/cli/{index-vradyw0x.js → index-ngzc8db3.js} +25 -25
- package/dist/cli/{index-qa8bmwav.js → index-nwpbfh8x.js} +1 -1
- package/dist/cli/{index-sdff3rvj.js → index-qdnj3nwt.js} +6 -6
- package/dist/cli/{index-f73px21b.js → index-r0bwks42.js} +1 -1
- package/dist/cli/{index-zkxnba57.js → index-rqc83msp.js} +5 -5
- package/dist/cli/{index-jjpppdvb.js → index-s85abenr.js} +1 -1
- package/dist/cli/{index-wxkgy9gh.js → index-sgdqbhkv.js} +5 -5
- package/dist/cli/{index-5ep31be7.js → index-trj11few.js} +4 -4
- package/dist/cli/index.js +23 -23
- package/dist/cli/{knowledge-escalator-a9dwxqz8.js → knowledge-escalator-n4nx4veq.js} +9 -9
- package/dist/cli/{knowledge-events-0q4sb713.js → knowledge-events-t77r3zhe.js} +7 -7
- package/dist/cli/{knowledge-link-v7hj1h8m.js → knowledge-link-r6hfj2ep.js} +3 -3
- package/dist/cli/{knowledge-store-y2nbt9jk.js → knowledge-store-w1v0041d.js} +4 -4
- package/dist/cli/{knowledge-validator-4wr1m0xa.js → knowledge-validator-6fcx0xdb.js} +6 -6
- package/dist/cli/{runner-7znestx4.js → runner-cmvgkbtp.js} +4 -4
- package/dist/cli/{scan-cursor-bsrfrxm6.js → scan-cursor-936pmv37.js} +5 -5
- package/dist/cli/{schema-s6yh3rst.js → schema-exk5afyz.js} +1 -1
- package/dist/cli/{scope-persistence-f77w4jrx.js → scope-persistence-0ddz95ke.js} +5 -5
- package/dist/cli/{skill-generator-jr7c8fcg.js → skill-generator-qk0mf7da.js} +11 -11
- package/dist/cli/{worktree-isolation-ka20b0rm.js → worktree-isolation-2jvaebns.js} +23 -23
- package/dist/commands/registry.d.ts +2 -2
- package/dist/index.js +180 -180
- package/dist/tools/repo-graph/builder.d.ts +1 -1
- package/dist/tools/repo-graph/symbol-edge.d.ts +21 -0
- package/dist/tools/repo-graph/types.d.ts +39 -1
- package/dist/tools/repo-graph.d.ts +1 -1
- package/package.json +1 -1
|
@@ -271,7 +271,7 @@ export declare function scanFile(filePath: string, absoluteRoot: string, maxFile
|
|
|
271
271
|
* @param maxFileSize - Maximum file size in bytes
|
|
272
272
|
* @returns AsyncScanResult with node, edges, and symbolEdges
|
|
273
273
|
*/
|
|
274
|
-
export declare function scanFileAsync(filePath: string, absoluteRoot: string, maxFileSize: number, hasManifest
|
|
274
|
+
export declare function scanFileAsync(filePath: string, absoluteRoot: string, maxFileSize: number, hasManifest: ((relDir: string) => boolean) | undefined, repoRootId: string): Promise<AsyncScanResult>;
|
|
275
275
|
/**
|
|
276
276
|
* Build a complete dependency graph for a workspace by scanning all source files.
|
|
277
277
|
*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type SymbolEdge, type SymbolEdgeEvidence, type SymbolEdgeKind, type SymbolEdgeResolution, type SymbolIdentityKind } from './types';
|
|
2
|
+
export declare const LOW_CONFIDENCE_SYMBOL_EDGE_THRESHOLD = 0.5;
|
|
3
|
+
export declare const MAX_SYMBOL_EDGE_EVIDENCE = 16;
|
|
4
|
+
declare const V2_KEYS: readonly ["id", "fromId", "toId", "kind", "confidence", "resolution", "evidence"];
|
|
5
|
+
export declare function deriveRepoRootId(workspaceRoot: string): string;
|
|
6
|
+
export declare function relativeSymbolPath(workspaceRoot: string, filePath: string): string;
|
|
7
|
+
export declare function createStableSymbolId(repoRootId: string, relativePath: string, qualifiedName: string, identityKind: SymbolIdentityKind): string;
|
|
8
|
+
export declare function createStableSymbolEdgeId(fromId: string, toId: string, kind: SymbolEdgeKind): string;
|
|
9
|
+
export declare function hashSymbolEdgeSnippet(snippet: string): string;
|
|
10
|
+
export declare function isCompleteSymbolEdge(edge: SymbolEdge): edge is SymbolEdge & Required<Pick<SymbolEdge, (typeof V2_KEYS)[number]>>;
|
|
11
|
+
export declare function hasSymbolEdgeV2Fields(edge: SymbolEdge): boolean;
|
|
12
|
+
export declare function mergeSymbolEdgeEvidence(left: readonly SymbolEdgeEvidence[], right: readonly SymbolEdgeEvidence[]): SymbolEdgeEvidence[];
|
|
13
|
+
export declare function normalizeSymbolEdge(edge: SymbolEdge, workspaceRoot: string, repoRootId: string): SymbolEdge & Required<Pick<SymbolEdge, (typeof V2_KEYS)[number]>>;
|
|
14
|
+
export declare function createSymbolEdgeV2(edge: Pick<SymbolEdge, 'fromFile' | 'fromSymbol' | 'toFile' | 'toSymbol'>, workspaceRoot: string, repoRootId: string, options: {
|
|
15
|
+
kind?: SymbolEdgeKind;
|
|
16
|
+
confidence: number;
|
|
17
|
+
resolution: SymbolEdgeResolution;
|
|
18
|
+
evidence: SymbolEdgeEvidence[];
|
|
19
|
+
}): SymbolEdge;
|
|
20
|
+
export declare function mergeSymbolEdges(left: SymbolEdge, right: SymbolEdge, workspaceRoot: string, repoRootId: string): SymbolEdge;
|
|
21
|
+
export {};
|
|
@@ -43,8 +43,12 @@ export declare const REPO_GRAPH_FILENAME = "repo-graph.json";
|
|
|
43
43
|
* source read. The content-freshness sidecar requires both witnesses before
|
|
44
44
|
* it will certify a graph; older graphs remain readable but are intentionally
|
|
45
45
|
* treated as needing a rebuild before certification.
|
|
46
|
+
*
|
|
47
|
+
* 1.5.0 adds an optional graph-level `repoRootId` plus additive SymbolEdge v2
|
|
48
|
+
* identity, kind, confidence, resolution, and evidence fields. Legacy 1.2.0
|
|
49
|
+
* four-coordinate symbol edges remain readable and are normalized in memory.
|
|
46
50
|
*/
|
|
47
|
-
export declare const GRAPH_SCHEMA_VERSION = "1.
|
|
51
|
+
export declare const GRAPH_SCHEMA_VERSION = "1.5.0";
|
|
48
52
|
/**
|
|
49
53
|
* Compare dotted numeric version strings (e.g. '1.1.0' >= '1.1.0').
|
|
50
54
|
* Missing/non-numeric segments are treated as 0. Returns true when `version`
|
|
@@ -228,6 +232,23 @@ export interface SymbolReference {
|
|
|
228
232
|
* than {@link GraphEdge} (which tracks file-level imports) and enable
|
|
229
233
|
* precise context-packing and symbol navigation queries.
|
|
230
234
|
*/
|
|
235
|
+
export declare const SYMBOL_EDGE_KIND_VALUES: readonly ["CALLS", "REFERENCES", "USES_TYPE", "INSTANTIATES", "IMPLEMENTS", "OVERRIDES"];
|
|
236
|
+
export type SymbolEdgeKind = (typeof SYMBOL_EDGE_KIND_VALUES)[number];
|
|
237
|
+
export declare const SYMBOL_EDGE_RESOLUTION_VALUES: readonly ["exact", "import_binding", "same_file_scope", "unique_name", "type_resolved", "lsp", "scip", "heuristic", "unresolved"];
|
|
238
|
+
export type SymbolEdgeResolution = (typeof SYMBOL_EDGE_RESOLUTION_VALUES)[number];
|
|
239
|
+
export type SymbolIdentityKind = 'symbol' | 'module';
|
|
240
|
+
export interface SymbolEdgeEvidence {
|
|
241
|
+
/** Workspace-relative source path; source text itself is never persisted. */
|
|
242
|
+
file: string;
|
|
243
|
+
/** 1-based source line. */
|
|
244
|
+
line: number;
|
|
245
|
+
/** Optional 1-based source column. */
|
|
246
|
+
column?: number;
|
|
247
|
+
/** SHA-256 of the NFC-normalized logical source line. */
|
|
248
|
+
snippetHash: string;
|
|
249
|
+
/** Extractor that produced the fact, for example `tree-sitter/typescript`. */
|
|
250
|
+
extractor: string;
|
|
251
|
+
}
|
|
231
252
|
export interface SymbolEdge {
|
|
232
253
|
/** Resolved absolute path of the source file (matches `GraphNode.filePath` keys). */
|
|
233
254
|
fromFile: string;
|
|
@@ -237,6 +258,20 @@ export interface SymbolEdge {
|
|
|
237
258
|
toFile: string;
|
|
238
259
|
/** Exported symbol referenced in the target file. */
|
|
239
260
|
toSymbol: string;
|
|
261
|
+
/** Stable SHA-256 identity of this edge (schema >= 1.5.0). */
|
|
262
|
+
id?: string;
|
|
263
|
+
/** Stable SHA-256 identity of the source symbol. */
|
|
264
|
+
fromId?: string;
|
|
265
|
+
/** Stable SHA-256 identity of the target symbol. */
|
|
266
|
+
toId?: string;
|
|
267
|
+
/** Relationship kind. Current tree-sitter extraction emits REFERENCES. */
|
|
268
|
+
kind?: SymbolEdgeKind;
|
|
269
|
+
/** Advisory confidence in the inclusive range 0..1. */
|
|
270
|
+
confidence?: number;
|
|
271
|
+
/** How the relationship was resolved. */
|
|
272
|
+
resolution?: SymbolEdgeResolution;
|
|
273
|
+
/** Bounded provenance records. Empty only when no honest location exists. */
|
|
274
|
+
evidence?: SymbolEdgeEvidence[];
|
|
240
275
|
}
|
|
241
276
|
/**
|
|
242
277
|
* A contiguous line span inside a source file, used by context-packing to
|
|
@@ -396,6 +431,7 @@ export interface GraphHealthResult {
|
|
|
396
431
|
unreadableFiles: string[];
|
|
397
432
|
validationSkippedFiles: string[];
|
|
398
433
|
lowConfidenceEdgeCount: number;
|
|
434
|
+
unresolvedSymbolEdgeCount: number;
|
|
399
435
|
walkTruncated: boolean;
|
|
400
436
|
walkTruncationReason: 'budget' | 'cap' | null;
|
|
401
437
|
incrementalFallbacks: number;
|
|
@@ -441,6 +477,8 @@ export interface RepoGraph {
|
|
|
441
477
|
schema_version: string;
|
|
442
478
|
/** Workspace root directory */
|
|
443
479
|
workspaceRoot: string;
|
|
480
|
+
/** Root-independent repository label used to scope stable symbol IDs. */
|
|
481
|
+
repoRootId?: string;
|
|
444
482
|
/** Graph nodes keyed by resolved file path */
|
|
445
483
|
nodes: Record<string, GraphNode>;
|
|
446
484
|
/** Graph edges representing dependencies */
|
|
@@ -26,6 +26,6 @@ export { extractFileOntology } from './repo-graph/ontology';
|
|
|
26
26
|
export type { DeadExportsOptions } from './repo-graph/query';
|
|
27
27
|
export { buildOntologyPreflightPacket, getBlastRadius, getCallers, getContextPack, getDeadExports, getDependencies, getFileOntology, getGraphHealth, getGraphNode, getImporters, getKeyFiles, getLocalizationContext, getPackageBoundaries, getSymbolConsumers, isGraphFresh, resetQueryCache, } from './repo-graph/query';
|
|
28
28
|
export { getGraphPath, loadGraph, loadGraphSync, loadOrCreateGraph, saveGraph, saveIfDirty, } from './repo-graph/storage';
|
|
29
|
-
export type { AskHit, AskOptions, AskResult, BlastRadiusResult, BuildWorkspaceGraphOptions, CallerReference, ContextPackResult, ContextPackSpan, ConventionFact, DataOperationFact, DeadExportCandidate, DeadExportsResult, FileOntology, FileReference, FileRole, FreshnessProbeState, GraphEdge, GraphExtractionFailure, GraphExtractorInputWitness, GraphHealthResult, GraphNode, GraphUnresolvedImport, LocalizationBlock, OntologyFinding, PackageBoundarySummary, RepoGraph, RepoGraphDiagnostics, RouteFact, RouteMethod, SecurityFact, SymbolEdge, SymbolReference, } from './repo-graph/types';
|
|
29
|
+
export type { AskHit, AskOptions, AskResult, BlastRadiusResult, BuildWorkspaceGraphOptions, CallerReference, ContextPackResult, ContextPackSpan, ConventionFact, DataOperationFact, DeadExportCandidate, DeadExportsResult, FileOntology, FileReference, FileRole, FreshnessProbeState, GraphEdge, GraphExtractionFailure, GraphExtractorInputWitness, GraphHealthResult, GraphNode, GraphUnresolvedImport, LocalizationBlock, OntologyFinding, PackageBoundarySummary, RepoGraph, RepoGraphDiagnostics, RouteFact, RouteMethod, SecurityFact, SymbolEdge, SymbolEdgeEvidence, SymbolEdgeKind, SymbolEdgeResolution, SymbolIdentityKind, SymbolReference, } from './repo-graph/types';
|
|
30
30
|
export { createEmptyGraph, GRAPH_SCHEMA_VERSION, inferPackageBoundary, isSchemaVersionAtLeast, normalizeGraphPath, REPO_GRAPH_FILENAME, updateGraphMetadata, } from './repo-graph/types';
|
|
31
31
|
export { validateGraphEdge, validateGraphNode, validateWorkspace, } from './repo-graph/validation';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.152.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",
|