@optave/codegraph 3.12.0 → 3.13.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/README.md +71 -35
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/audit.js +2 -1
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/cli/commands/batch.d.ts.map +1 -1
- package/dist/cli/commands/batch.js +1 -0
- package/dist/cli/commands/batch.js.map +1 -1
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +6 -1
- package/dist/cli/commands/build.js.map +1 -1
- package/dist/cli/commands/config.d.ts +3 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +272 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/triage.js +1 -1
- package/dist/cli/commands/triage.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +10 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/shared/options.d.ts +2 -1
- package/dist/cli/shared/options.d.ts.map +1 -1
- package/dist/cli/shared/options.js +11 -1
- package/dist/cli/shared/options.js.map +1 -1
- package/dist/cli/types.d.ts +2 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/db/migrations.js +1 -1
- package/dist/db/migrations.js.map +1 -1
- package/dist/domain/graph/builder/call-resolver.d.ts +12 -8
- package/dist/domain/graph/builder/call-resolver.d.ts.map +1 -1
- package/dist/domain/graph/builder/call-resolver.js +93 -38
- package/dist/domain/graph/builder/call-resolver.js.map +1 -1
- package/dist/domain/graph/builder/cha.d.ts +9 -1
- package/dist/domain/graph/builder/cha.d.ts.map +1 -1
- package/dist/domain/graph/builder/cha.js +17 -2
- package/dist/domain/graph/builder/cha.js.map +1 -1
- package/dist/domain/graph/builder/helpers.d.ts +8 -0
- package/dist/domain/graph/builder/helpers.d.ts.map +1 -1
- package/dist/domain/graph/builder/helpers.js +22 -3
- package/dist/domain/graph/builder/helpers.js.map +1 -1
- package/dist/domain/graph/builder/incremental.d.ts.map +1 -1
- package/dist/domain/graph/builder/incremental.js +1 -1
- package/dist/domain/graph/builder/incremental.js.map +1 -1
- package/dist/domain/graph/builder/pipeline.d.ts.map +1 -1
- package/dist/domain/graph/builder/pipeline.js +37 -2
- package/dist/domain/graph/builder/pipeline.js.map +1 -1
- package/dist/domain/graph/builder/stages/build-edges.d.ts +0 -2
- package/dist/domain/graph/builder/stages/build-edges.d.ts.map +1 -1
- package/dist/domain/graph/builder/stages/build-edges.js +88 -318
- package/dist/domain/graph/builder/stages/build-edges.js.map +1 -1
- package/dist/domain/graph/builder/stages/detect-changes.js +1 -1
- package/dist/domain/graph/builder/stages/detect-changes.js.map +1 -1
- package/dist/domain/graph/builder/stages/finalize.d.ts.map +1 -1
- package/dist/domain/graph/builder/stages/finalize.js +4 -0
- package/dist/domain/graph/builder/stages/finalize.js.map +1 -1
- package/dist/domain/graph/builder/stages/native-orchestrator.d.ts.map +1 -1
- package/dist/domain/graph/builder/stages/native-orchestrator.js +341 -82
- package/dist/domain/graph/builder/stages/native-orchestrator.js.map +1 -1
- package/dist/domain/graph/builder/stages/resolve-imports.js +1 -1
- package/dist/domain/graph/builder/stages/resolve-imports.js.map +1 -1
- package/dist/domain/parser.d.ts +4 -5
- package/dist/domain/parser.d.ts.map +1 -1
- package/dist/domain/parser.js +46 -15
- package/dist/domain/parser.js.map +1 -1
- package/dist/domain/wasm-worker-entry.js +10 -2
- package/dist/domain/wasm-worker-entry.js.map +1 -1
- package/dist/domain/wasm-worker-pool.d.ts.map +1 -1
- package/dist/domain/wasm-worker-pool.js +2 -0
- package/dist/domain/wasm-worker-pool.js.map +1 -1
- package/dist/domain/wasm-worker-protocol.d.ts +1 -0
- package/dist/domain/wasm-worker-protocol.d.ts.map +1 -1
- package/dist/extractors/cpp.d.ts.map +1 -1
- package/dist/extractors/cpp.js +42 -1
- package/dist/extractors/cpp.js.map +1 -1
- package/dist/extractors/cuda.d.ts.map +1 -1
- package/dist/extractors/cuda.js +42 -1
- package/dist/extractors/cuda.js.map +1 -1
- package/dist/extractors/helpers.d.ts +11 -0
- package/dist/extractors/helpers.d.ts.map +1 -1
- package/dist/extractors/helpers.js +40 -0
- package/dist/extractors/helpers.js.map +1 -1
- package/dist/extractors/java.d.ts.map +1 -1
- package/dist/extractors/java.js +8 -7
- package/dist/extractors/java.js.map +1 -1
- package/dist/extractors/javascript.js +137 -6
- package/dist/extractors/javascript.js.map +1 -1
- package/dist/features/structure-query.d.ts +1 -1
- package/dist/features/structure-query.d.ts.map +1 -1
- package/dist/features/structure-query.js +6 -6
- package/dist/features/structure-query.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/config.d.ts +77 -4
- package/dist/infrastructure/config.d.ts.map +1 -1
- package/dist/infrastructure/config.js +395 -21
- package/dist/infrastructure/config.js.map +1 -1
- package/dist/infrastructure/registry.d.ts +27 -0
- package/dist/infrastructure/registry.d.ts.map +1 -1
- package/dist/infrastructure/registry.js +59 -1
- package/dist/infrastructure/registry.js.map +1 -1
- package/dist/presentation/structure.d.ts +1 -1
- package/dist/presentation/structure.d.ts.map +1 -1
- package/dist/presentation/structure.js +2 -2
- package/dist/presentation/structure.js.map +1 -1
- package/dist/types.d.ts +37 -0
- package/dist/types.d.ts.map +1 -1
- package/grammars/tree-sitter-gleam.wasm +0 -0
- package/package.json +7 -8
- package/src/cli/commands/audit.ts +2 -1
- package/src/cli/commands/batch.ts +1 -0
- package/src/cli/commands/build.ts +6 -1
- package/src/cli/commands/config.ts +353 -0
- package/src/cli/commands/triage.ts +1 -1
- package/src/cli/index.ts +10 -0
- package/src/cli/shared/options.ts +11 -1
- package/src/cli/types.ts +2 -0
- package/src/db/migrations.ts +1 -1
- package/src/domain/graph/builder/call-resolver.ts +99 -41
- package/src/domain/graph/builder/cha.ts +18 -1
- package/src/domain/graph/builder/helpers.ts +24 -4
- package/src/domain/graph/builder/incremental.ts +1 -0
- package/src/domain/graph/builder/pipeline.ts +49 -2
- package/src/domain/graph/builder/stages/build-edges.ts +130 -399
- package/src/domain/graph/builder/stages/detect-changes.ts +1 -1
- package/src/domain/graph/builder/stages/finalize.ts +4 -0
- package/src/domain/graph/builder/stages/native-orchestrator.ts +396 -92
- package/src/domain/graph/builder/stages/resolve-imports.ts +1 -1
- package/src/domain/parser.ts +45 -14
- package/src/domain/wasm-worker-entry.ts +10 -2
- package/src/domain/wasm-worker-pool.ts +1 -0
- package/src/domain/wasm-worker-protocol.ts +1 -0
- package/src/extractors/cpp.ts +44 -1
- package/src/extractors/cuda.ts +44 -1
- package/src/extractors/helpers.ts +43 -0
- package/src/extractors/java.ts +8 -7
- package/src/extractors/javascript.ts +127 -6
- package/src/features/structure-query.ts +7 -7
- package/src/index.ts +5 -1
- package/src/infrastructure/config.ts +481 -22
- package/src/infrastructure/registry.ts +82 -1
- package/src/presentation/structure.ts +3 -3
- package/src/types.ts +41 -0
- package/grammars/tree-sitter-erlang.wasm +0 -0
package/src/types.ts
CHANGED
|
@@ -1254,6 +1254,20 @@ export interface BuildGraphOpts {
|
|
|
1254
1254
|
* `findDbPath` for every other DB-scoped command.
|
|
1255
1255
|
*/
|
|
1256
1256
|
dbPath?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* User-config override for this build (from --user-config / --no-user-config).
|
|
1259
|
+
* - false → --no-user-config: skip global layer for this run
|
|
1260
|
+
* - string → --user-config <path>: apply the given file
|
|
1261
|
+
* - true → --user-config (bare): apply the default global file
|
|
1262
|
+
* - undefined → honour per-repo consent from the registry (normal)
|
|
1263
|
+
*/
|
|
1264
|
+
userConfig?: string | boolean;
|
|
1265
|
+
/**
|
|
1266
|
+
* When true, an interactive consent prompt may fire on first build for
|
|
1267
|
+
* repos whose global-config consent is undecided. Only set by the CLI
|
|
1268
|
+
* build command when stdin/stdout are TTYs and CI is not set.
|
|
1269
|
+
*/
|
|
1270
|
+
promptForConsent?: boolean;
|
|
1257
1271
|
}
|
|
1258
1272
|
|
|
1259
1273
|
/** Build timing result from buildGraph. */
|
|
@@ -1268,8 +1282,16 @@ export interface BuildResult {
|
|
|
1268
1282
|
edgesMs: number;
|
|
1269
1283
|
structureMs: number;
|
|
1270
1284
|
rolesMs: number;
|
|
1285
|
+
/** Wall-clock time for the CHA expansion post-pass (native path only). */
|
|
1286
|
+
chaMs?: number;
|
|
1271
1287
|
/** Wall-clock time for the this/super dispatch WASM post-pass (native path only). */
|
|
1272
1288
|
thisDispatchMs?: number;
|
|
1289
|
+
/** Wall-clock time for the dropped-language gap detection + backfill (native path only). */
|
|
1290
|
+
gapDetectMs?: number;
|
|
1291
|
+
/** Wall-clock time for role re-classification after JS edge-writing post-passes (native path only). */
|
|
1292
|
+
reclassifyMs?: number;
|
|
1293
|
+
/** Wall-clock time for the technique-column backfill on native-written edges (native path only). */
|
|
1294
|
+
techniqueBackfillMs?: number;
|
|
1273
1295
|
astMs: number;
|
|
1274
1296
|
complexityMs: number;
|
|
1275
1297
|
cfgMs: number;
|
|
@@ -1469,6 +1491,25 @@ export interface McpDefaults {
|
|
|
1469
1491
|
interfaces: number;
|
|
1470
1492
|
}
|
|
1471
1493
|
|
|
1494
|
+
/** Per-repo consent decision for the user-level global config. */
|
|
1495
|
+
export type ConsentDecision = 'enabled' | 'disabled';
|
|
1496
|
+
|
|
1497
|
+
/** Which layer contributed a resolved config value. */
|
|
1498
|
+
export type ConfigSource = 'default' | 'user' | 'project' | 'env';
|
|
1499
|
+
|
|
1500
|
+
/** Maps config key paths (dot notation) to the layer that supplied the value. */
|
|
1501
|
+
export type ConfigProvenance = Record<string, ConfigSource>;
|
|
1502
|
+
|
|
1503
|
+
/** Result of loadConfigWithProvenance. */
|
|
1504
|
+
export interface ConfigWithProvenance {
|
|
1505
|
+
config: CodegraphConfig;
|
|
1506
|
+
provenance: ConfigProvenance;
|
|
1507
|
+
/** Absolute path of the applied global file, or null if none was applied. */
|
|
1508
|
+
appliedGlobalPath: string | null;
|
|
1509
|
+
/** This repo's recorded consent decision (may be undefined if undecided). */
|
|
1510
|
+
consentDecision: ConsentDecision | undefined;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1472
1513
|
// ════════════════════════════════════════════════════════════════════════
|
|
1473
1514
|
// §12 Pagination
|
|
1474
1515
|
// ════════════════════════════════════════════════════════════════════════
|
|
Binary file
|