@wrongstack/tools 0.313.1 → 0.316.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 (128) hide show
  1. package/dist/_edit-match.d.ts +3 -2
  2. package/dist/_output-spool.d.ts +4 -3
  3. package/dist/_shell-pick.d.ts +2 -1
  4. package/dist/_spawn-stream.d.ts +2 -1
  5. package/dist/_syntax-check.d.ts +2 -1
  6. package/dist/audit.js +5 -5
  7. package/dist/bash-kill-guard.d.ts +3 -6
  8. package/dist/bash.js +3 -3
  9. package/dist/browser/index.js +1 -1
  10. package/dist/browser/network-guard-proxy.d.ts +2 -1
  11. package/dist/builtin.js +36 -36
  12. package/dist/{chunk-MAN26PZ5.js → chunk-22B7GE5T.js} +2 -2
  13. package/dist/{chunk-2TFQDEPU.js → chunk-2VSZC6QM.js} +1 -1
  14. package/dist/{chunk-IWDFZ6XR.js → chunk-42BHI7TN.js} +2 -2
  15. package/dist/{chunk-TVTCSBJF.js → chunk-4UESMQDP.js} +2 -2
  16. package/dist/{chunk-H5OHH6F4.js → chunk-5H4GSJAI.js} +3 -3
  17. package/dist/{chunk-J4SRJKBW.js → chunk-7EY5DCRO.js} +13 -7
  18. package/dist/{chunk-HC5RM4WY.js → chunk-BSLVR56S.js} +3 -3
  19. package/dist/{chunk-OA6YJIWL.js → chunk-DA4KNE2H.js} +4 -4
  20. package/dist/{chunk-FW65TP4G.js → chunk-DR7JOQTC.js} +3 -3
  21. package/dist/{chunk-B2CIOKWP.js → chunk-EEOFQDT6.js} +1 -2
  22. package/dist/{chunk-INF5CGAO.js → chunk-EJWSCQ6D.js} +3 -3
  23. package/dist/{chunk-3QMQBO5Z.js → chunk-FQZOHLG3.js} +1 -1
  24. package/dist/{chunk-2ME7ZWDD.js → chunk-HYX2TZ7O.js} +4 -4
  25. package/dist/{chunk-RP2ZA47V.js → chunk-I64BS3VC.js} +2 -2
  26. package/dist/{chunk-FGOABE4Z.js → chunk-IVWV2UM6.js} +3 -3
  27. package/dist/{chunk-QHVW4AAM.js → chunk-IYK7XGDZ.js} +10 -10
  28. package/dist/{chunk-55KF77OK.js → chunk-JNNVRHMV.js} +339 -172
  29. package/dist/{chunk-H5MJUAA6.js → chunk-JOHXDF3D.js} +3 -3
  30. package/dist/{chunk-XMIFYKUT.js → chunk-K3WNSHUF.js} +1 -1
  31. package/dist/{chunk-OZC255IC.js → chunk-L25CVUVR.js} +6 -6
  32. package/dist/{chunk-2CTB3UK5.js → chunk-LWKUTMD5.js} +2 -2
  33. package/dist/{chunk-YF2RSV34.js → chunk-MQX2KXVW.js} +3 -3
  34. package/dist/{chunk-6HLZK37X.js → chunk-MZZN7VCD.js} +2 -2
  35. package/dist/{chunk-KXNDHMUB.js → chunk-NKJW5GFO.js} +3 -3
  36. package/dist/{chunk-ZIGAZFWE.js → chunk-NKNOBUBU.js} +2 -2
  37. package/dist/{chunk-DIJKHSUO.js → chunk-O4MBV4AX.js} +3 -3
  38. package/dist/{chunk-DPL47QGS.js → chunk-OUBDL3WH.js} +2 -2
  39. package/dist/{chunk-NHA6BEIH.js → chunk-PQKK5JH7.js} +2 -2
  40. package/dist/{chunk-QNJ7AQ4B.js → chunk-PY2IOS7C.js} +1 -1
  41. package/dist/{chunk-2ZCJNKFE.js → chunk-QZQSPUBF.js} +2 -2
  42. package/dist/{chunk-UTV7YAW7.js → chunk-SDLVH5RZ.js} +3 -3
  43. package/dist/{chunk-HXSBQ2SE.js → chunk-T2F4S7U4.js} +3 -3
  44. package/dist/{chunk-ILESNGNM.js → chunk-TEBQ4VPZ.js} +1 -1
  45. package/dist/{chunk-42SKEETB.js → chunk-UCYQTZ7F.js} +1 -1
  46. package/dist/{chunk-PUR6WU2B.js → chunk-VFKPWSOX.js} +3 -3
  47. package/dist/{chunk-HEQFMLZ7.js → chunk-VJNHFZ7J.js} +3 -3
  48. package/dist/{chunk-URFKEIHM.js → chunk-VXECAJJ7.js} +23 -23
  49. package/dist/{chunk-MKRQMLZA.js → chunk-ZJQ4IGXK.js} +3 -3
  50. package/dist/{chunk-42AKKX7O.js → chunk-ZLTFLC25.js} +2 -2
  51. package/dist/codebase-index/ast-invariant-engine.d.ts +5 -4
  52. package/dist/codebase-index/binary-frame.d.ts +0 -2
  53. package/dist/codebase-index/bm25.d.ts +1 -1
  54. package/dist/codebase-index/circuit-breaker.d.ts +2 -1
  55. package/dist/codebase-index/codebase-ast-replace-tool.d.ts +3 -2
  56. package/dist/codebase-index/codebase-impact-analysis-tool.d.ts +4 -3
  57. package/dist/codebase-index/codebase-invariant-check-tool.d.ts +3 -2
  58. package/dist/codebase-index/codebase-repo-map-tool.d.ts +3 -2
  59. package/dist/codebase-index/codebase-skeleton-tool.d.ts +3 -2
  60. package/dist/codebase-index/codebase-targeted-test-tool.d.ts +3 -2
  61. package/dist/codebase-index/content-hash.d.ts +0 -2
  62. package/dist/codebase-index/import-extractor.d.ts +0 -13
  63. package/dist/codebase-index/index-service.d.ts +1 -1
  64. package/dist/codebase-index/index.js +11 -11
  65. package/dist/codebase-index/languages.d.ts +2 -1
  66. package/dist/codebase-index/module-roots.d.ts +3 -2
  67. package/dist/codebase-index/parser-batch.d.ts +0 -5
  68. package/dist/codebase-index/parser-dispatch.d.ts +2 -1
  69. package/dist/codebase-index/parser-output.d.ts +4 -3
  70. package/dist/codebase-index/parser-worker-pool.d.ts +0 -2
  71. package/dist/codebase-index/parser-worker-script.d.ts +1 -16
  72. package/dist/codebase-index/parser-worker-script.js +4 -4
  73. package/dist/codebase-index/project-server-client-state.d.ts +2 -2
  74. package/dist/codebase-index/project-server-endpoint.d.ts +0 -15
  75. package/dist/codebase-index/project-server.js +6 -6
  76. package/dist/codebase-index/tree-sitter/visitor.d.ts +2 -1
  77. package/dist/codebase-index/tree-sitter-parser.d.ts +0 -2
  78. package/dist/codebase-index/ts-parser.d.ts +1 -1
  79. package/dist/codebase-index/vector-search.d.ts +2 -1
  80. package/dist/codebase-index/wal-maintenance.d.ts +3 -2
  81. package/dist/codebase-index/worker.js +5 -5
  82. package/dist/codebase-index/writer-admin.d.ts +0 -1
  83. package/dist/codebase-index/writer-search.d.ts +0 -9
  84. package/dist/edit.js +9 -9
  85. package/dist/exec.js +3 -3
  86. package/dist/format.js +5 -5
  87. package/dist/{go-parser-6CA77WZ4.js → go-parser-JXYKJHRC.js} +3 -3
  88. package/dist/index.js +39 -39
  89. package/dist/install.js +5 -5
  90. package/dist/{json-parser-7YMDJSBJ.js → json-parser-IBHZ4BZC.js} +2 -2
  91. package/dist/kanban-contract-actions.d.ts +1 -1
  92. package/dist/kanban-detail-actions.d.ts +2 -1
  93. package/dist/kanban-presence.d.ts +2 -1
  94. package/dist/kanban-serializer.d.ts +0 -8
  95. package/dist/kanban-split-task-handler.d.ts +2 -2
  96. package/dist/kanban-tool-types.d.ts +2 -1
  97. package/dist/kanban.js +2 -2
  98. package/dist/languages/diagnostics.d.ts +2 -1
  99. package/dist/languages/index.js +3 -3
  100. package/dist/languages/legacy-bridge.d.ts +3 -2
  101. package/dist/languages/types.d.ts +2 -1
  102. package/dist/{legacy-bridge-7UKZT46G.js → legacy-bridge-7M6QLUQN.js} +5 -5
  103. package/dist/lint.js +5 -5
  104. package/dist/outdated.js +1 -1
  105. package/dist/pack.js +37 -37
  106. package/dist/parser-dispatch-QH4XPGG6.js +14 -0
  107. package/dist/patch.js +8 -8
  108. package/dist/plan.js +4 -4
  109. package/dist/ps-slash.js +2 -2
  110. package/dist/pwsh.d.ts +0 -1
  111. package/dist/{py-parser-GPM5VYRG.js → py-parser-IS4HKYMF.js} +4 -4
  112. package/dist/read.js +8 -8
  113. package/dist/replace.js +8 -8
  114. package/dist/{rs-parser-WVQ4KYCX.js → rs-parser-XHUUO2KZ.js} +2 -2
  115. package/dist/session-kanban-sync.d.ts +0 -6
  116. package/dist/session-kanban.js +1 -1
  117. package/dist/spawn-background.d.ts +1 -1
  118. package/dist/task.js +4 -4
  119. package/dist/test.js +5 -5
  120. package/dist/todo.js +3 -3
  121. package/dist/tool-tier.js +38 -38
  122. package/dist/{tree-sitter-parser-YCILHGZD.js → tree-sitter-parser-AIERW3YI.js} +2 -4
  123. package/dist/{ts-parser-YH4ZMWMH.js → ts-parser-RCTYKSVI.js} +2 -2
  124. package/dist/typecheck.js +5 -5
  125. package/dist/write.js +9 -9
  126. package/dist/{yaml-parser-GFAOKV53.js → yaml-parser-4SAXV3PL.js} +2 -2
  127. package/package.json +5 -5
  128. package/dist/parser-dispatch-VPOFDO2U.js +0 -14
@@ -8,7 +8,7 @@
8
8
  * })
9
9
  */
10
10
  import type { Tool } from '@wrongstack/core/types';
11
- export interface TargetedTestInput {
11
+ interface TargetedTestInput {
12
12
  /** Symbol name (function, class, method) whose tests should be discovered and run. */
13
13
  symbol?: string | undefined;
14
14
  /** Source file path whose corresponding test suite should be run. */
@@ -16,7 +16,7 @@ export interface TargetedTestInput {
16
16
  /** Optional explicit list of test files to run. */
17
17
  testFiles?: string[] | undefined;
18
18
  }
19
- export interface TargetedTestOutput {
19
+ interface TargetedTestOutput {
20
20
  status: 'passed' | 'failed' | 'no_tests_found' | 'error';
21
21
  discoveredSuites: string[];
22
22
  testsRun: number;
@@ -27,4 +27,5 @@ export interface TargetedTestOutput {
27
27
  error?: string | undefined;
28
28
  }
29
29
  export declare const codebaseTargetedTestTool: Tool<TargetedTestInput, TargetedTestOutput>;
30
+ export {};
30
31
  //# sourceMappingURL=codebase-targeted-test-tool.d.ts.map
@@ -51,8 +51,6 @@ export declare function xxhash64Hex(buf: Uint8Array, explicitLen?: number): stri
51
51
  * `Uint8Array` whose `.length` is the byte count of the content.
52
52
  */
53
53
  export declare function xxhash64String(content: string): string;
54
- /** Sentinel value stored in `files.content_hash` for a never-indexed file. */
55
- export declare const CONTENT_HASH_EMPTY = "";
56
54
  /**
57
55
  * Parse a stored `content_hash` value (from SQLite) and return the
58
56
  * equivalent BigInt, or `undefined` for empty / unknown values.
@@ -11,19 +11,6 @@
11
11
  * their own `ast` modules) never reach this module.
12
12
  */
13
13
  import type { Ref, SymbolLang } from './schema.js';
14
- /** Only the leading window is scanned, mirroring the generic symbol extractor. */
15
- export declare const IMPORT_MAX_FILE_CHARS: number;
16
- /** Upper bound on imports recorded per file. */
17
- export declare const IMPORT_MAX_PER_FILE = 400;
18
- /**
19
- * The name a specifier refers to.
20
- *
21
- * Path-like and namespace-like specifiers need opposite treatment of the dot:
22
- * in `engine/core.h` it introduces a file extension to strip, in
23
- * `com.example.Helper` it is the segment separator. The presence of a path
24
- * separator is what tells them apart.
25
- */
26
- export declare function lastSegment(specifier: string): string;
27
14
  /** True when this language's imports are extracted here rather than by a parser. */
28
15
  export declare function hasImportPatterns(lang: SymbolLang): boolean;
29
16
  /**
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import type { CodeMapGraph, IndexResult, IndexStats } from './schema.js';
15
15
  import type { CallRefsOpArgs, IndexOpArgs, SearchOpArgs, SearchOpResult, StatsOpArgs } from './worker-protocol.js';
16
- export interface ServiceHooks {
16
+ interface ServiceHooks {
17
17
  signal?: AbortSignal | undefined;
18
18
  onProgress?: ((current: number, total: number) => void) | undefined;
19
19
  }
@@ -18,10 +18,10 @@ import {
18
18
  polyglotInvariantEngine,
19
19
  replaceSymbolInFile,
20
20
  runDeadCodeScan
21
- } from "../chunk-OZC255IC.js";
22
- import "../chunk-B2CIOKWP.js";
23
- import "../chunk-MAN26PZ5.js";
24
- import "../chunk-2TFQDEPU.js";
21
+ } from "../chunk-L25CVUVR.js";
22
+ import "../chunk-EEOFQDT6.js";
23
+ import "../chunk-22B7GE5T.js";
24
+ import "../chunk-2VSZC6QM.js";
25
25
  import "../chunk-3PVYQFRQ.js";
26
26
  import "../chunk-HFXSNKCV.js";
27
27
  import {
@@ -45,11 +45,11 @@ import {
45
45
  shutdownCodebaseIndexHost,
46
46
  shutdownCodebaseIndexServer,
47
47
  symbolGraphService
48
- } from "../chunk-2ME7ZWDD.js";
48
+ } from "../chunk-HYX2TZ7O.js";
49
49
  import {
50
50
  projectIndexServerEndpoint,
51
51
  projectIndexServerMetadataPath
52
- } from "../chunk-TVTCSBJF.js";
52
+ } from "../chunk-4UESMQDP.js";
53
53
  import {
54
54
  CircuitOpenError,
55
55
  IndexCircuitBreaker,
@@ -66,16 +66,16 @@ import {
66
66
  resolveIndexDir,
67
67
  runIndexer,
68
68
  tokenise
69
- } from "../chunk-OA6YJIWL.js";
70
- import "../chunk-QHVW4AAM.js";
71
- import "../chunk-42AKKX7O.js";
69
+ } from "../chunk-DA4KNE2H.js";
70
+ import "../chunk-IYK7XGDZ.js";
71
+ import "../chunk-ZLTFLC25.js";
72
72
  import "../chunk-A6BRWIXN.js";
73
- import "../chunk-42SKEETB.js";
73
+ import "../chunk-UCYQTZ7F.js";
74
74
  import {
75
75
  INDEXABLE_EXTENSIONS,
76
76
  detectLang,
77
77
  isIndexablePath
78
- } from "../chunk-ILESNGNM.js";
78
+ } from "../chunk-TEBQ4VPZ.js";
79
79
  import "../chunk-LIJQMYYX.js";
80
80
  import "../chunk-V43EQ6VR.js";
81
81
  import "../chunk-D33S4RQG.js";
@@ -35,7 +35,7 @@ export declare function isIndexablePath(file: string): boolean;
35
35
  * letting genuinely mixed families (`.ts`/`.tsx` + the script block of a
36
36
  * `.vue`/`.svelte` file, `.java`/`.kt` on the JVM) resolve into one another.
37
37
  */
38
- export type LangFamily = 'js' | 'go' | 'py' | 'rs' | 'jvm' | 'dotnet' | 'c' | 'ruby' | 'php' | 'swift' | 'dart' | 'elixir' | 'haskell' | 'zig' | 'lua' | 'r' | 'shell' | 'sql' | 'data' | 'web' | 'proto' | 'graphql' | 'other';
38
+ type LangFamily = 'js' | 'go' | 'py' | 'rs' | 'jvm' | 'dotnet' | 'c' | 'ruby' | 'php' | 'swift' | 'dart' | 'elixir' | 'haskell' | 'zig' | 'lua' | 'r' | 'shell' | 'sql' | 'data' | 'web' | 'proto' | 'graphql' | 'other';
39
39
  /**
40
40
  * `(lang, family)` pairs, for mirroring the mapping into SQLite so ref
41
41
  * resolution can join on it instead of expanding a family into an IN-list of
@@ -46,4 +46,5 @@ export declare const LANG_FAMILY_ENTRIES: ReadonlyArray<readonly [SymbolLang, La
46
46
  export declare function languageFamily(lang: SymbolLang): LangFamily;
47
47
  /** Every language in the same resolution family as `lang`, including itself. */
48
48
  export declare function familyMembers(lang: SymbolLang): SymbolLang[];
49
+ export {};
49
50
  //# sourceMappingURL=languages.d.ts.map
@@ -25,8 +25,8 @@
25
25
  * than a second tree walk.
26
26
  */
27
27
  /** Package-manager ecosystem a module root belongs to. */
28
- export type ModuleRootKind = 'npm' | 'cargo' | 'go' | 'python' | 'maven' | 'gradle' | 'dotnet';
29
- export interface ModuleRoot {
28
+ type ModuleRootKind = 'npm' | 'cargo' | 'go' | 'python' | 'maven' | 'gradle' | 'dotnet';
29
+ interface ModuleRoot {
30
30
  /** Absolute directory holding the marker file, forward-slash normalized. */
31
31
  dir: string;
32
32
  kind: ModuleRootKind;
@@ -78,4 +78,5 @@ export declare function derivePackageFromLayout(filePath: string): string | unde
78
78
  * grouped by its manifest directory.
79
79
  */
80
80
  export declare function assignPackageLabels(structure: ProjectStructure, files: readonly string[]): Map<string, string>;
81
+ export {};
81
82
  //# sourceMappingURL=module-roots.d.ts.map
@@ -16,11 +16,6 @@
16
16
  * per-file path is therefore by construction, not by reimplementation.
17
17
  */
18
18
  import type { FileSymbols, SymbolLang } from './schema.js';
19
- /** Max files per child process. Bounded so one pathological file cannot
20
- * poison an unbounded chunk and stdin stays a comfortable pipe size. */
21
- export declare const MAX_BATCH_FILES = 100;
22
- /** Max cumulative source bytes per child process. */
23
- export declare const MAX_BATCH_BYTES: number;
24
19
  export interface BatchFile {
25
20
  file: string;
26
21
  content: string;
@@ -28,7 +28,7 @@ export declare function parseFileContent(file: string, content: string, lang: Sy
28
28
  * zero-symbol semantics. `error` carries the throw's message so callers can
29
29
  * record something actionable instead of a bare "no result".
30
30
  */
31
- export interface ParseSlot {
31
+ interface ParseSlot {
32
32
  result: FileSymbols | null;
33
33
  error?: string | undefined;
34
34
  }
@@ -37,4 +37,5 @@ export declare function parseFilesContent(files: ReadonlyArray<{
37
37
  content: string;
38
38
  lang: SymbolLang;
39
39
  }>): Promise<ParseSlot[]>;
40
+ export {};
40
41
  //# sourceMappingURL=parser-dispatch.d.ts.map
@@ -12,7 +12,7 @@
12
12
  * hard parse failure that drops the file from the index entirely.
13
13
  */
14
14
  import type { Ref, SymbolLang } from './schema.js';
15
- export interface RawParsedSymbol {
15
+ interface RawParsedSymbol {
16
16
  name: string;
17
17
  kind: string;
18
18
  line: number;
@@ -20,7 +20,7 @@ export interface RawParsedSymbol {
20
20
  signature: string;
21
21
  scope: string;
22
22
  }
23
- export interface ParsedParserOutput {
23
+ interface ParsedParserOutput {
24
24
  symbols: RawParsedSymbol[];
25
25
  refs: Ref[];
26
26
  }
@@ -32,7 +32,7 @@ export declare function parseParserOutput(stdout: string, lang: SymbolLang): Par
32
32
  * file failed inside the batch; the caller falls back to the single-file
33
33
  * parser). Never throws — a malformed envelope yields [].
34
34
  */
35
- export interface BatchFileOutput {
35
+ interface BatchFileOutput {
36
36
  file: string;
37
37
  /** Set when this file failed inside the batch (e.g. syntax error). */
38
38
  error?: string | undefined;
@@ -40,4 +40,5 @@ export interface BatchFileOutput {
40
40
  refs: Ref[];
41
41
  }
42
42
  export declare function parseParserBatchOutput(stdout: string, lang: SymbolLang): BatchFileOutput[];
43
+ export {};
43
44
  //# sourceMappingURL=parser-output.d.ts.map
@@ -23,8 +23,6 @@
23
23
  * are `unref()`'d so they don't keep the process alive.
24
24
  */
25
25
  import type { FileSymbols, SymbolLang } from './schema.js';
26
- /** Minimum number of files before the pool is worth spawning. */
27
- export declare const WORKER_POOL_THRESHOLD = 500;
28
26
  /**
29
27
  * Effective pool threshold for this run (audit T-04): the documented
30
28
  * {@link WORKER_POOL_THRESHOLD} default unless `WRONGSTACK_INDEX_WORKER_THRESHOLD`
@@ -13,18 +13,7 @@
13
13
  * The worker terminates cleanly when it receives a `{ type: 'shutdown' }`
14
14
  * message. If the parent port closes unexpectedly, the worker exits.
15
15
  */
16
- import type { FileSymbols, SymbolLang } from './schema.js';
17
- export interface ParserWorkerRequest {
18
- type: 'parse';
19
- id: number;
20
- /** Content is pre-read by the main thread for the hash check; passed here
21
- * to avoid a second disk read in the worker. */
22
- files: ReadonlyArray<{
23
- file: string;
24
- content: string;
25
- lang: SymbolLang;
26
- }>;
27
- }
16
+ import type { FileSymbols } from './schema.js';
28
17
  export interface ParserWorkerResponse {
29
18
  type: 'result';
30
19
  id: number;
@@ -38,8 +27,4 @@ export interface ParserWorkerResponse {
38
27
  error: string;
39
28
  }>;
40
29
  }
41
- export interface ParserWorkerShutdown {
42
- type: 'shutdown';
43
- }
44
- export type ParserWorkerInbound = ParserWorkerRequest | ParserWorkerShutdown;
45
30
  //# sourceMappingURL=parser-worker-script.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  parseFilesContent
3
- } from "../chunk-QHVW4AAM.js";
4
- import "../chunk-42AKKX7O.js";
3
+ } from "../chunk-IYK7XGDZ.js";
4
+ import "../chunk-ZLTFLC25.js";
5
5
  import "../chunk-A6BRWIXN.js";
6
- import "../chunk-42SKEETB.js";
7
- import "../chunk-ILESNGNM.js";
6
+ import "../chunk-UCYQTZ7F.js";
7
+ import "../chunk-TEBQ4VPZ.js";
8
8
  import "../chunk-V43EQ6VR.js";
9
9
 
10
10
  // src/codebase-index/parser-worker-script.ts
@@ -47,9 +47,8 @@ export interface ProjectIndexServerConnectionState {
47
47
  activity?: ProjectIndexServerActivity | undefined;
48
48
  health?: ProjectIndexServerClientHealth | undefined;
49
49
  }
50
- export type ProjectIndexServerConnectionListener = (state: ProjectIndexServerConnectionState) => void;
50
+ type ProjectIndexServerConnectionListener = (state: ProjectIndexServerConnectionState) => void;
51
51
  export declare const connectionStates: Map<string, ProjectIndexServerConnectionState>;
52
- export declare const connectionStateListeners: Set<ProjectIndexServerConnectionListener>;
53
52
  export declare let latestConnectionState: ProjectIndexServerConnectionState;
54
53
  export declare function setLatestConnectionState(state: ProjectIndexServerConnectionState): void;
55
54
  export type ProjectIndexDaemonAvailability = {
@@ -76,4 +75,5 @@ export declare function remoteError(message: string, name?: string): Error;
76
75
  export declare function isProjectIndexServerHealth(value: unknown): value is ProjectIndexServerHealth;
77
76
  export declare function delay(ms: number): Promise<void>;
78
77
  export declare function cancellationError(signal: AbortSignal): Error;
78
+ export {};
79
79
  //# sourceMappingURL=project-server-client-state.d.ts.map
@@ -1,19 +1,4 @@
1
1
  export declare const PROJECT_INDEX_SERVER_PROTOCOL_VERSION = 1;
2
- export declare const PROJECT_INDEX_SERVER_METADATA_FILE = "server.json";
3
- /**
4
- * Short directory name that owns the per-project Unix socket on Linux.
5
- *
6
- * The directory is created `0o700` by `bindProjectEndpoint`: on
7
- * multi-user Linux `/tmp` the kernel's sticky bit otherwise lets a local
8
- * attacker pre-bind a predictable socket name (project paths are guessable
9
- * via the public `buildId` handshake), hijacking clients whose `bind()` hits
10
- * EADDRINUSE. macOS is unaffected because each user already has a private
11
- * TMPDIR, so the subdirectory adds no extra ownership boundary there.
12
- *
13
- * The name is kept short to stay under the 103-byte `sun_path` cap on macOS
14
- * (48 bytes of `/var/folders/<xx>/<30 chars>/T` + 8 + 24 + 5 = 85 bytes).
15
- */
16
- export declare const PROJECT_INDEX_SERVER_SOCKET_DIR = "wsci-v1";
17
2
  /**
18
3
  * Content identity for the actual server artifact.
19
4
  *
@@ -10,7 +10,7 @@ import {
10
10
  projectIndexServerBuildId,
11
11
  projectIndexServerEndpoint,
12
12
  projectIndexServerMetadataPath
13
- } from "../chunk-TVTCSBJF.js";
13
+ } from "../chunk-4UESMQDP.js";
14
14
  import {
15
15
  fileGraphService,
16
16
  incomingCallsService,
@@ -22,14 +22,14 @@ import {
22
22
  searchService,
23
23
  statsService,
24
24
  symbolGraphService
25
- } from "../chunk-OA6YJIWL.js";
26
- import "../chunk-QHVW4AAM.js";
27
- import "../chunk-42AKKX7O.js";
25
+ } from "../chunk-DA4KNE2H.js";
26
+ import "../chunk-IYK7XGDZ.js";
27
+ import "../chunk-ZLTFLC25.js";
28
28
  import "../chunk-A6BRWIXN.js";
29
- import "../chunk-42SKEETB.js";
29
+ import "../chunk-UCYQTZ7F.js";
30
30
  import {
31
31
  isIndexablePath
32
- } from "../chunk-ILESNGNM.js";
32
+ } from "../chunk-TEBQ4VPZ.js";
33
33
  import "../chunk-LIJQMYYX.js";
34
34
  import "../chunk-V43EQ6VR.js";
35
35
 
@@ -30,7 +30,7 @@ import type { Tree } from 'web-tree-sitter';
30
30
  import type { Symbol as IndexSymbol, Ref, SymbolLang } from '../schema.js';
31
31
  import type { NodeQueries } from './queries.js';
32
32
  /** Result of walking one parsed file. */
33
- export interface VisitResult {
33
+ interface VisitResult {
34
34
  symbols: IndexSymbol[];
35
35
  refs: Ref[];
36
36
  }
@@ -45,4 +45,5 @@ export interface VisitResult {
45
45
  * `queries` — per-language node-mapping table.
46
46
  */
47
47
  export declare function visitTree(tree: Tree, content: string, file: string, lang: SymbolLang, queries: NodeQueries): VisitResult;
48
+ export {};
48
49
  //# sourceMappingURL=visitor.d.ts.map
@@ -23,8 +23,6 @@
23
23
  * file from the index" contract.
24
24
  */
25
25
  import type { FileSymbols, SymbolLang } from './schema.js';
26
- /** True when this lang has a tree-sitter grammar available right now. */
27
- export declare function isTreeSitterSupported(lang: SymbolLang): boolean;
28
26
  /** Visible for tests: the absolute path to a vendored grammar WASM. */
29
27
  export declare function getGrammarWasmPath(lang: SymbolLang): string | undefined;
30
28
  /**
@@ -11,7 +11,7 @@
11
11
  * assigning unique ids during insertion.
12
12
  */
13
13
  import type { FileSymbols, SymbolLang } from './schema.js';
14
- export interface ParseOptions {
14
+ interface ParseOptions {
15
15
  file: string;
16
16
  content: string;
17
17
  lang: SymbolLang;
@@ -55,7 +55,7 @@ export declare function decodeVector(buf: Buffer | Uint8Array): Float32Array;
55
55
  * Rank map: symbolId → rank (0-based). Lower rank = more relevant.
56
56
  * Built from a search result list (already sorted by relevance).
57
57
  */
58
- export type RankMap = Map<number, number>;
58
+ type RankMap = Map<number, number>;
59
59
  /** Build a RankMap from a sorted result list. */
60
60
  export declare function buildRankMap(sortedIds: number[]): RankMap;
61
61
  /**
@@ -71,4 +71,5 @@ export declare function buildRankMap(sortedIds: number[]): RankMap;
71
71
  * @returns sorted [symbolId, rrfScore] pairs, descending by score
72
72
  */
73
73
  export declare function reciprocalRankFusion(bm25Ranks: RankMap, vectorRanks: RankMap, k?: number): Array<[number, number]>;
74
+ export {};
74
75
  //# sourceMappingURL=vector-search.d.ts.map
@@ -17,7 +17,7 @@
17
17
  * idle-exit, and firing is harmless at any point because checkpointWal is
18
18
  * best-effort.
19
19
  */
20
- export interface WalMaintenanceOptions {
20
+ interface WalMaintenanceOptions {
21
21
  /** Idle window after a write completion before maintenance fires. */
22
22
  idleMs?: number | undefined;
23
23
  /** Run `optimize()` once every N maintenance fires. Default: 8. */
@@ -27,7 +27,7 @@ export interface WalMaintenanceOptions {
27
27
  /** Clear for tests. */
28
28
  clearTimeoutFn?: typeof clearTimeout | undefined;
29
29
  }
30
- export interface WalMaintenanceHooks {
30
+ interface WalMaintenanceHooks {
31
31
  /** Returns true when a checkpoint completed (WAL reset). */
32
32
  checkpoint: () => boolean;
33
33
  /** Recompute statistics. */
@@ -55,4 +55,5 @@ export declare class WalMaintenance {
55
55
  /** Stop all maintenance. Idempotent; safe to call on every shutdown path. */
56
56
  dispose(): void;
57
57
  }
58
+ export {};
58
59
  //# sourceMappingURL=wal-maintenance.d.ts.map
@@ -7,12 +7,12 @@ import {
7
7
  searchService,
8
8
  statsService,
9
9
  symbolGraphService
10
- } from "../chunk-OA6YJIWL.js";
11
- import "../chunk-QHVW4AAM.js";
12
- import "../chunk-42AKKX7O.js";
10
+ } from "../chunk-DA4KNE2H.js";
11
+ import "../chunk-IYK7XGDZ.js";
12
+ import "../chunk-ZLTFLC25.js";
13
13
  import "../chunk-A6BRWIXN.js";
14
- import "../chunk-42SKEETB.js";
15
- import "../chunk-ILESNGNM.js";
14
+ import "../chunk-UCYQTZ7F.js";
15
+ import "../chunk-TEBQ4VPZ.js";
16
16
  import "../chunk-LIJQMYYX.js";
17
17
  import "../chunk-V43EQ6VR.js";
18
18
 
@@ -22,6 +22,5 @@ export interface IndexSummary {
22
22
  export declare function getIndexSummaryWithStatement(stmt: PrepareStatement): IndexSummary;
23
23
  export declare function getFileMetaWithStatement(stmt: PrepareStatement, file: string): FileMeta | null;
24
24
  export declare function getAllFileMetasWithStatement(stmt: PrepareStatement): FileMeta[];
25
- export declare function getIndexDbSizeBytes(indexDir: string): number;
26
25
  export {};
27
26
  //# sourceMappingURL=writer-admin.d.ts.map
@@ -18,13 +18,4 @@ export declare function searchRankedWithStatement(stmtFn: (sql: string) => {
18
18
  results: SearchResult[];
19
19
  total: number;
20
20
  };
21
- export declare function searchRankedFallbackWithStatement(stmtFn: (sql: string) => {
22
- all: (...args: (string | number)[]) => unknown[];
23
- get: (...args: (string | number)[]) => unknown;
24
- }, searchFn: (query: string, filter?: WriterSearchFilter, opts?: {
25
- limit?: number | undefined;
26
- }) => SearchResult[], getOrBuildBm25: () => Bm25Index, query: string, filter: WriterSearchFilter | undefined, limit: number): {
27
- results: SearchResult[];
28
- total: number;
29
- };
30
21
  //# sourceMappingURL=writer-search.d.ts.map
package/dist/edit.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  editTool
3
- } from "./chunk-MKRQMLZA.js";
4
- import "./chunk-3QMQBO5Z.js";
5
- import "./chunk-2ME7ZWDD.js";
6
- import "./chunk-TVTCSBJF.js";
7
- import "./chunk-OA6YJIWL.js";
8
- import "./chunk-QHVW4AAM.js";
9
- import "./chunk-42AKKX7O.js";
3
+ } from "./chunk-ZJQ4IGXK.js";
4
+ import "./chunk-FQZOHLG3.js";
5
+ import "./chunk-HYX2TZ7O.js";
6
+ import "./chunk-4UESMQDP.js";
7
+ import "./chunk-DA4KNE2H.js";
8
+ import "./chunk-IYK7XGDZ.js";
9
+ import "./chunk-ZLTFLC25.js";
10
10
  import "./chunk-A6BRWIXN.js";
11
- import "./chunk-42SKEETB.js";
12
- import "./chunk-ILESNGNM.js";
11
+ import "./chunk-UCYQTZ7F.js";
12
+ import "./chunk-TEBQ4VPZ.js";
13
13
  import "./chunk-LIJQMYYX.js";
14
14
  import "./chunk-V43EQ6VR.js";
15
15
  import "./chunk-D33S4RQG.js";
package/dist/exec.js CHANGED
@@ -7,10 +7,10 @@ import {
7
7
  isExecCommandAllowed,
8
8
  resetDangerBypass,
9
9
  resetExecPolicy
10
- } from "./chunk-HXSBQ2SE.js";
10
+ } from "./chunk-T2F4S7U4.js";
11
11
  import "./chunk-BTSFTGIL.js";
12
- import "./chunk-ZIGAZFWE.js";
13
- import "./chunk-2TFQDEPU.js";
12
+ import "./chunk-NKNOBUBU.js";
13
+ import "./chunk-2VSZC6QM.js";
14
14
  import "./chunk-3PVYQFRQ.js";
15
15
  import "./chunk-HFXSNKCV.js";
16
16
  import "./chunk-V43EQ6VR.js";
package/dist/format.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  formatTool
3
- } from "./chunk-UTV7YAW7.js";
4
- import "./chunk-NHA6BEIH.js";
5
- import "./chunk-DPL47QGS.js";
6
- import "./chunk-MAN26PZ5.js";
7
- import "./chunk-2TFQDEPU.js";
3
+ } from "./chunk-SDLVH5RZ.js";
4
+ import "./chunk-PQKK5JH7.js";
5
+ import "./chunk-OUBDL3WH.js";
6
+ import "./chunk-22B7GE5T.js";
7
+ import "./chunk-2VSZC6QM.js";
8
8
  import "./chunk-3PVYQFRQ.js";
9
9
  import "./chunk-HFXSNKCV.js";
10
10
  import "./chunk-V43EQ6VR.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  parseParserOutput,
3
3
  withSpawnGate
4
- } from "./chunk-42SKEETB.js";
4
+ } from "./chunk-UCYQTZ7F.js";
5
5
  import {
6
6
  detectLang
7
- } from "./chunk-ILESNGNM.js";
7
+ } from "./chunk-TEBQ4VPZ.js";
8
8
  import {
9
9
  resolveWin32Command
10
10
  } from "./chunk-V43EQ6VR.js";
@@ -466,4 +466,4 @@ export {
466
466
  detectLang,
467
467
  parseSymbols
468
468
  };
469
- //# sourceMappingURL=go-parser-6CA77WZ4.js.map
469
+ //# sourceMappingURL=go-parser-JXYKJHRC.js.map