@wrongstack/tools 0.313.1 → 0.316.2
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/_edit-match.d.ts +3 -2
- package/dist/_output-spool.d.ts +4 -3
- package/dist/_shell-pick.d.ts +2 -1
- package/dist/_spawn-stream.d.ts +2 -1
- package/dist/_syntax-check.d.ts +2 -1
- package/dist/audit.js +5 -5
- package/dist/bash-kill-guard.d.ts +3 -6
- package/dist/bash.js +3 -3
- package/dist/browser/index.js +1 -1
- package/dist/browser/network-guard-proxy.d.ts +2 -1
- package/dist/builtin.js +36 -36
- package/dist/{chunk-MAN26PZ5.js → chunk-22B7GE5T.js} +2 -2
- package/dist/{chunk-2TFQDEPU.js → chunk-2VSZC6QM.js} +1 -1
- package/dist/{chunk-IWDFZ6XR.js → chunk-42BHI7TN.js} +2 -2
- package/dist/{chunk-TVTCSBJF.js → chunk-4UESMQDP.js} +2 -2
- package/dist/{chunk-H5OHH6F4.js → chunk-5H4GSJAI.js} +3 -3
- package/dist/{chunk-J4SRJKBW.js → chunk-7EY5DCRO.js} +13 -7
- package/dist/{chunk-HC5RM4WY.js → chunk-BSLVR56S.js} +3 -3
- package/dist/{chunk-OA6YJIWL.js → chunk-DA4KNE2H.js} +4 -4
- package/dist/{chunk-FW65TP4G.js → chunk-DR7JOQTC.js} +3 -3
- package/dist/{chunk-B2CIOKWP.js → chunk-EEOFQDT6.js} +1 -2
- package/dist/{chunk-INF5CGAO.js → chunk-EJWSCQ6D.js} +3 -3
- package/dist/{chunk-3QMQBO5Z.js → chunk-FQZOHLG3.js} +1 -1
- package/dist/{chunk-2ME7ZWDD.js → chunk-HYX2TZ7O.js} +4 -4
- package/dist/{chunk-RP2ZA47V.js → chunk-I64BS3VC.js} +2 -2
- package/dist/{chunk-FGOABE4Z.js → chunk-IVWV2UM6.js} +3 -3
- package/dist/{chunk-QHVW4AAM.js → chunk-IYK7XGDZ.js} +10 -10
- package/dist/{chunk-55KF77OK.js → chunk-JNNVRHMV.js} +339 -172
- package/dist/{chunk-H5MJUAA6.js → chunk-JOHXDF3D.js} +3 -3
- package/dist/{chunk-XMIFYKUT.js → chunk-K3WNSHUF.js} +1 -1
- package/dist/{chunk-OZC255IC.js → chunk-L25CVUVR.js} +6 -6
- package/dist/{chunk-2CTB3UK5.js → chunk-LWKUTMD5.js} +2 -2
- package/dist/{chunk-YF2RSV34.js → chunk-MQX2KXVW.js} +3 -3
- package/dist/{chunk-6HLZK37X.js → chunk-MZZN7VCD.js} +2 -2
- package/dist/{chunk-KXNDHMUB.js → chunk-NKJW5GFO.js} +3 -3
- package/dist/{chunk-ZIGAZFWE.js → chunk-NKNOBUBU.js} +2 -2
- package/dist/{chunk-DIJKHSUO.js → chunk-O4MBV4AX.js} +3 -3
- package/dist/{chunk-DPL47QGS.js → chunk-OUBDL3WH.js} +2 -2
- package/dist/{chunk-NHA6BEIH.js → chunk-PQKK5JH7.js} +2 -2
- package/dist/{chunk-QNJ7AQ4B.js → chunk-PY2IOS7C.js} +1 -1
- package/dist/{chunk-2ZCJNKFE.js → chunk-QZQSPUBF.js} +2 -2
- package/dist/{chunk-UTV7YAW7.js → chunk-SDLVH5RZ.js} +3 -3
- package/dist/{chunk-HXSBQ2SE.js → chunk-T2F4S7U4.js} +3 -3
- package/dist/{chunk-ILESNGNM.js → chunk-TEBQ4VPZ.js} +1 -1
- package/dist/{chunk-42SKEETB.js → chunk-UCYQTZ7F.js} +1 -1
- package/dist/{chunk-PUR6WU2B.js → chunk-VFKPWSOX.js} +3 -3
- package/dist/{chunk-HEQFMLZ7.js → chunk-VJNHFZ7J.js} +3 -3
- package/dist/{chunk-URFKEIHM.js → chunk-VXECAJJ7.js} +23 -23
- package/dist/{chunk-MKRQMLZA.js → chunk-ZJQ4IGXK.js} +3 -3
- package/dist/{chunk-42AKKX7O.js → chunk-ZLTFLC25.js} +2 -2
- package/dist/codebase-index/ast-invariant-engine.d.ts +5 -4
- package/dist/codebase-index/binary-frame.d.ts +0 -2
- package/dist/codebase-index/bm25.d.ts +1 -1
- package/dist/codebase-index/circuit-breaker.d.ts +2 -1
- package/dist/codebase-index/codebase-ast-replace-tool.d.ts +3 -2
- package/dist/codebase-index/codebase-impact-analysis-tool.d.ts +4 -3
- package/dist/codebase-index/codebase-invariant-check-tool.d.ts +3 -2
- package/dist/codebase-index/codebase-repo-map-tool.d.ts +3 -2
- package/dist/codebase-index/codebase-skeleton-tool.d.ts +3 -2
- package/dist/codebase-index/codebase-targeted-test-tool.d.ts +3 -2
- package/dist/codebase-index/content-hash.d.ts +0 -2
- package/dist/codebase-index/import-extractor.d.ts +0 -13
- package/dist/codebase-index/index-service.d.ts +1 -1
- package/dist/codebase-index/index.js +11 -11
- package/dist/codebase-index/languages.d.ts +2 -1
- package/dist/codebase-index/module-roots.d.ts +3 -2
- package/dist/codebase-index/parser-batch.d.ts +0 -5
- package/dist/codebase-index/parser-dispatch.d.ts +2 -1
- package/dist/codebase-index/parser-output.d.ts +4 -3
- package/dist/codebase-index/parser-worker-pool.d.ts +0 -2
- package/dist/codebase-index/parser-worker-script.d.ts +1 -16
- package/dist/codebase-index/parser-worker-script.js +4 -4
- package/dist/codebase-index/project-server-client-state.d.ts +2 -2
- package/dist/codebase-index/project-server-endpoint.d.ts +0 -15
- package/dist/codebase-index/project-server.js +6 -6
- package/dist/codebase-index/tree-sitter/visitor.d.ts +2 -1
- package/dist/codebase-index/tree-sitter-parser.d.ts +0 -2
- package/dist/codebase-index/ts-parser.d.ts +1 -1
- package/dist/codebase-index/vector-search.d.ts +2 -1
- package/dist/codebase-index/wal-maintenance.d.ts +3 -2
- package/dist/codebase-index/worker.js +5 -5
- package/dist/codebase-index/writer-admin.d.ts +0 -1
- package/dist/codebase-index/writer-search.d.ts +0 -9
- package/dist/edit.js +9 -9
- package/dist/exec.js +3 -3
- package/dist/format.js +5 -5
- package/dist/{go-parser-6CA77WZ4.js → go-parser-JXYKJHRC.js} +3 -3
- package/dist/index.js +39 -39
- package/dist/install.js +5 -5
- package/dist/{json-parser-7YMDJSBJ.js → json-parser-IBHZ4BZC.js} +2 -2
- package/dist/kanban-contract-actions.d.ts +1 -1
- package/dist/kanban-detail-actions.d.ts +2 -1
- package/dist/kanban-presence.d.ts +2 -1
- package/dist/kanban-serializer.d.ts +0 -8
- package/dist/kanban-split-task-handler.d.ts +2 -2
- package/dist/kanban-tool-types.d.ts +2 -1
- package/dist/kanban.js +2 -2
- package/dist/languages/diagnostics.d.ts +2 -1
- package/dist/languages/index.js +3 -3
- package/dist/languages/legacy-bridge.d.ts +3 -2
- package/dist/languages/types.d.ts +2 -1
- package/dist/{legacy-bridge-7UKZT46G.js → legacy-bridge-7M6QLUQN.js} +5 -5
- package/dist/lint.js +5 -5
- package/dist/outdated.js +1 -1
- package/dist/pack.js +37 -37
- package/dist/parser-dispatch-QH4XPGG6.js +14 -0
- package/dist/patch.js +8 -8
- package/dist/plan.js +4 -4
- package/dist/ps-slash.js +2 -2
- package/dist/pwsh.d.ts +0 -1
- package/dist/{py-parser-GPM5VYRG.js → py-parser-IS4HKYMF.js} +4 -4
- package/dist/read.js +8 -8
- package/dist/replace.js +8 -8
- package/dist/{rs-parser-WVQ4KYCX.js → rs-parser-XHUUO2KZ.js} +2 -2
- package/dist/session-kanban-sync.d.ts +0 -6
- package/dist/session-kanban.js +1 -1
- package/dist/spawn-background.d.ts +1 -1
- package/dist/task.js +4 -4
- package/dist/test.js +5 -5
- package/dist/todo.js +3 -3
- package/dist/tool-tier.js +38 -38
- package/dist/{tree-sitter-parser-YCILHGZD.js → tree-sitter-parser-AIERW3YI.js} +2 -4
- package/dist/{ts-parser-YH4ZMWMH.js → ts-parser-RCTYKSVI.js} +2 -2
- package/dist/typecheck.js +5 -5
- package/dist/write.js +9 -9
- package/dist/{yaml-parser-GFAOKV53.js → yaml-parser-4SAXV3PL.js} +2 -2
- package/package.json +6 -6
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
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-
|
|
48
|
+
} from "../chunk-HYX2TZ7O.js";
|
|
49
49
|
import {
|
|
50
50
|
projectIndexServerEndpoint,
|
|
51
51
|
projectIndexServerMetadataPath
|
|
52
|
-
} from "../chunk-
|
|
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-
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-
|
|
69
|
+
} from "../chunk-DA4KNE2H.js";
|
|
70
|
+
import "../chunk-IYK7XGDZ.js";
|
|
71
|
+
import "../chunk-ZLTFLC25.js";
|
|
72
72
|
import "../chunk-A6BRWIXN.js";
|
|
73
|
-
import "../chunk-
|
|
73
|
+
import "../chunk-UCYQTZ7F.js";
|
|
74
74
|
import {
|
|
75
75
|
INDEXABLE_EXTENSIONS,
|
|
76
76
|
detectLang,
|
|
77
77
|
isIndexablePath
|
|
78
|
-
} from "../chunk-
|
|
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
|
-
|
|
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
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IYK7XGDZ.js";
|
|
4
|
+
import "../chunk-ZLTFLC25.js";
|
|
5
5
|
import "../chunk-A6BRWIXN.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-DA4KNE2H.js";
|
|
26
|
+
import "../chunk-IYK7XGDZ.js";
|
|
27
|
+
import "../chunk-ZLTFLC25.js";
|
|
28
28
|
import "../chunk-A6BRWIXN.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-UCYQTZ7F.js";
|
|
30
30
|
import {
|
|
31
31
|
isIndexablePath
|
|
32
|
-
} from "../chunk-
|
|
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
|
-
|
|
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
|
/**
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-DA4KNE2H.js";
|
|
11
|
+
import "../chunk-IYK7XGDZ.js";
|
|
12
|
+
import "../chunk-ZLTFLC25.js";
|
|
13
13
|
import "../chunk-A6BRWIXN.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
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-
|
|
12
|
-
import "./chunk-
|
|
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-
|
|
10
|
+
} from "./chunk-T2F4S7U4.js";
|
|
11
11
|
import "./chunk-BTSFTGIL.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
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-
|
|
4
|
+
} from "./chunk-UCYQTZ7F.js";
|
|
5
5
|
import {
|
|
6
6
|
detectLang
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
469
|
+
//# sourceMappingURL=go-parser-JXYKJHRC.js.map
|