@buildautomaton/cli 0.1.87 → 0.1.89
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 +3 -1
- package/dist/bridge-mcp-server.js +7 -7
- package/dist/bridge-mcp-server.js.map +1 -1
- package/dist/cli.js +34517 -34523
- package/dist/cli.js.map +4 -4
- package/dist/index.js +15004 -15001
- package/dist/index.js.map +4 -4
- package/dist/worker.js +291 -291
- package/dist/worker.js.map +1 -1
- package/package.json +3 -2
package/dist/worker.js
CHANGED
|
@@ -29,7 +29,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
mod
|
|
30
30
|
));
|
|
31
31
|
|
|
32
|
-
// src/files/browser/activity-shared.ts
|
|
32
|
+
// ../bridge/src/files/browser/activity-shared.ts
|
|
33
33
|
function bindFileBrowserActivitySharedBuffer(buffer) {
|
|
34
34
|
workerActivityView = new Int32Array(buffer);
|
|
35
35
|
}
|
|
@@ -43,7 +43,7 @@ function readFileBrowserActivityFromShared() {
|
|
|
43
43
|
}
|
|
44
44
|
var ACTIVITY_INDEX_REQUESTS, ACTIVITY_INDEX_READS, ACTIVITY_INDEX_LAST_ACTIVITY_SEC, activitySharedBuffer, mainActivityView, workerActivityView;
|
|
45
45
|
var init_activity_shared = __esm({
|
|
46
|
-
"src/files/browser/activity-shared.ts"() {
|
|
46
|
+
"../bridge/src/files/browser/activity-shared.ts"() {
|
|
47
47
|
"use strict";
|
|
48
48
|
ACTIVITY_INDEX_REQUESTS = 0;
|
|
49
49
|
ACTIVITY_INDEX_READS = 1;
|
|
@@ -54,16 +54,16 @@ var init_activity_shared = __esm({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
// src/files/browser/activity-types.ts
|
|
57
|
+
// ../bridge/src/files/browser/activity-types.ts
|
|
58
58
|
var BROWSE_INDEX_COOLDOWN_MS;
|
|
59
59
|
var init_activity_types = __esm({
|
|
60
|
-
"src/files/browser/activity-types.ts"() {
|
|
60
|
+
"../bridge/src/files/browser/activity-types.ts"() {
|
|
61
61
|
"use strict";
|
|
62
62
|
BROWSE_INDEX_COOLDOWN_MS = 2500;
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
// src/files/browser/counts.ts
|
|
66
|
+
// ../bridge/src/files/browser/counts.ts
|
|
67
67
|
function snapshotFromMain() {
|
|
68
68
|
return {
|
|
69
69
|
inFlightRequests,
|
|
@@ -76,7 +76,7 @@ function setWorkerMirror(snapshot) {
|
|
|
76
76
|
}
|
|
77
77
|
var inFlightRequests, inFlightReads, lastBrowseRequestActivityAt, workerMirror;
|
|
78
78
|
var init_counts = __esm({
|
|
79
|
-
"src/files/browser/counts.ts"() {
|
|
79
|
+
"../bridge/src/files/browser/counts.ts"() {
|
|
80
80
|
"use strict";
|
|
81
81
|
inFlightRequests = 0;
|
|
82
82
|
inFlightReads = 0;
|
|
@@ -89,7 +89,7 @@ var init_counts = __esm({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
// src/files/browser/publish.ts
|
|
92
|
+
// ../bridge/src/files/browser/publish.ts
|
|
93
93
|
import { isMainThread } from "node:worker_threads";
|
|
94
94
|
function applyFileBrowserActivityFromMain(snapshot) {
|
|
95
95
|
setWorkerMirror(snapshot);
|
|
@@ -99,14 +99,14 @@ function currentFileBrowserActivity() {
|
|
|
99
99
|
return readFileBrowserActivityFromShared();
|
|
100
100
|
}
|
|
101
101
|
var init_publish = __esm({
|
|
102
|
-
"src/files/browser/publish.ts"() {
|
|
102
|
+
"../bridge/src/files/browser/publish.ts"() {
|
|
103
103
|
"use strict";
|
|
104
104
|
init_activity_shared();
|
|
105
105
|
init_counts();
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
// src/files/browser/listeners.ts
|
|
109
|
+
// ../bridge/src/files/browser/listeners.ts
|
|
110
110
|
function registerFileBrowserActivityListener(listener) {
|
|
111
111
|
activityListeners.add(listener);
|
|
112
112
|
return () => {
|
|
@@ -115,22 +115,22 @@ function registerFileBrowserActivityListener(listener) {
|
|
|
115
115
|
}
|
|
116
116
|
var activityListeners;
|
|
117
117
|
var init_listeners = __esm({
|
|
118
|
-
"src/files/browser/listeners.ts"() {
|
|
118
|
+
"../bridge/src/files/browser/listeners.ts"() {
|
|
119
119
|
"use strict";
|
|
120
120
|
activityListeners = /* @__PURE__ */ new Set();
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
// src/files/read/cancel-background-resolve-priming.ts
|
|
124
|
+
// ../bridge/src/files/read/cancel-background-resolve-priming.ts
|
|
125
125
|
var init_cancel_background_resolve_priming = __esm({
|
|
126
|
-
"src/files/read/cancel-background-resolve-priming.ts"() {
|
|
126
|
+
"../bridge/src/files/read/cancel-background-resolve-priming.ts"() {
|
|
127
127
|
"use strict";
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
// src/files/browser/begin-end.ts
|
|
131
|
+
// ../bridge/src/files/browser/begin-end.ts
|
|
132
132
|
var init_begin_end = __esm({
|
|
133
|
-
"src/files/browser/begin-end.ts"() {
|
|
133
|
+
"../bridge/src/files/browser/begin-end.ts"() {
|
|
134
134
|
"use strict";
|
|
135
135
|
init_cancel_background_resolve_priming();
|
|
136
136
|
init_counts();
|
|
@@ -139,7 +139,7 @@ var init_begin_end = __esm({
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
// src/files/browser/status.ts
|
|
142
|
+
// ../bridge/src/files/browser/status.ts
|
|
143
143
|
function getFileBrowserInFlightReadCount() {
|
|
144
144
|
return currentFileBrowserActivity().inFlightReads;
|
|
145
145
|
}
|
|
@@ -147,15 +147,15 @@ function fileBrowserReadInFlight() {
|
|
|
147
147
|
return getFileBrowserInFlightReadCount() > 0;
|
|
148
148
|
}
|
|
149
149
|
var init_status = __esm({
|
|
150
|
-
"src/files/browser/status.ts"() {
|
|
150
|
+
"../bridge/src/files/browser/status.ts"() {
|
|
151
151
|
"use strict";
|
|
152
152
|
init_publish();
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
// src/files/browser/activity-tracker.ts
|
|
156
|
+
// ../bridge/src/files/browser/activity-tracker.ts
|
|
157
157
|
var init_activity_tracker = __esm({
|
|
158
|
-
"src/files/browser/activity-tracker.ts"() {
|
|
158
|
+
"../bridge/src/files/browser/activity-tracker.ts"() {
|
|
159
159
|
"use strict";
|
|
160
160
|
init_publish();
|
|
161
161
|
init_listeners();
|
|
@@ -166,23 +166,23 @@ var init_activity_tracker = __esm({
|
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
-
// src/runtime/yield-to-event-loop.ts
|
|
169
|
+
// ../bridge/src/runtime/yield-to-event-loop.ts
|
|
170
170
|
function yieldToEventLoop() {
|
|
171
171
|
return new Promise((resolve) => setImmediate(resolve));
|
|
172
172
|
}
|
|
173
173
|
var init_yield_to_event_loop = __esm({
|
|
174
|
-
"src/runtime/yield-to-event-loop.ts"() {
|
|
174
|
+
"../bridge/src/runtime/yield-to-event-loop.ts"() {
|
|
175
175
|
"use strict";
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
// src/code-nav/symbol-index/deferred-indexing.ts
|
|
179
|
+
// ../bridge/src/code-nav/symbol-index/deferred-indexing.ts
|
|
180
180
|
function isSymbolIndexDeferredError(err) {
|
|
181
181
|
return err instanceof SymbolIndexDeferredError;
|
|
182
182
|
}
|
|
183
183
|
var SymbolIndexDeferredError;
|
|
184
184
|
var init_deferred_indexing = __esm({
|
|
185
|
-
"src/code-nav/symbol-index/deferred-indexing.ts"() {
|
|
185
|
+
"../bridge/src/code-nav/symbol-index/deferred-indexing.ts"() {
|
|
186
186
|
"use strict";
|
|
187
187
|
SymbolIndexDeferredError = class extends Error {
|
|
188
188
|
constructor() {
|
|
@@ -193,7 +193,7 @@ var init_deferred_indexing = __esm({
|
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
// src/files/browser/idle-yield.ts
|
|
196
|
+
// ../bridge/src/files/browser/idle-yield.ts
|
|
197
197
|
import { isMainThread as isMainThread2 } from "node:worker_threads";
|
|
198
198
|
function isBridgeBrowseInteractiveActive() {
|
|
199
199
|
const { inFlightRequests: inFlightRequests2, inFlightReads: inFlightReads2, lastActivityAt } = currentFileBrowserActivity();
|
|
@@ -238,7 +238,7 @@ async function yieldForBridgeInteractivePriority() {
|
|
|
238
238
|
assertBackgroundIndexingAllowed();
|
|
239
239
|
}
|
|
240
240
|
var init_idle_yield = __esm({
|
|
241
|
-
"src/files/browser/idle-yield.ts"() {
|
|
241
|
+
"../bridge/src/files/browser/idle-yield.ts"() {
|
|
242
242
|
"use strict";
|
|
243
243
|
init_yield_to_event_loop();
|
|
244
244
|
init_deferred_indexing();
|
|
@@ -247,9 +247,9 @@ var init_idle_yield = __esm({
|
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
249
|
|
|
250
|
-
// src/files/browser/in-flight.ts
|
|
250
|
+
// ../bridge/src/files/browser/in-flight.ts
|
|
251
251
|
var init_in_flight = __esm({
|
|
252
|
-
"src/files/browser/in-flight.ts"() {
|
|
252
|
+
"../bridge/src/files/browser/in-flight.ts"() {
|
|
253
253
|
"use strict";
|
|
254
254
|
init_activity_shared();
|
|
255
255
|
init_activity_types();
|
|
@@ -258,14 +258,14 @@ var init_in_flight = __esm({
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
|
|
261
|
-
// src/cli-log-level.ts
|
|
261
|
+
// ../bridge/src/cli-log-level.ts
|
|
262
262
|
var init_cli_log_level = __esm({
|
|
263
|
-
"src/cli-log-level.ts"() {
|
|
263
|
+
"../bridge/src/cli-log-level.ts"() {
|
|
264
264
|
"use strict";
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
|
|
268
|
-
// src/log.ts
|
|
268
|
+
// ../bridge/src/log.ts
|
|
269
269
|
function timestampPrefix() {
|
|
270
270
|
const time = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
271
271
|
return `[${time}]`;
|
|
@@ -275,13 +275,13 @@ function logImmediate(line) {
|
|
|
275
275
|
`);
|
|
276
276
|
}
|
|
277
277
|
var init_log = __esm({
|
|
278
|
-
"src/log.ts"() {
|
|
278
|
+
"../bridge/src/log.ts"() {
|
|
279
279
|
"use strict";
|
|
280
280
|
init_cli_log_level();
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
283
|
|
|
284
|
-
// src/sqlite/sqlite-errors.ts
|
|
284
|
+
// ../bridge/src/sqlite/sqlite-errors.ts
|
|
285
285
|
function isCliSqliteLockError(e) {
|
|
286
286
|
if (e instanceof CliSqliteInterrupted) return false;
|
|
287
287
|
const msg = e instanceof Error ? e.message : String(e);
|
|
@@ -290,7 +290,7 @@ function isCliSqliteLockError(e) {
|
|
|
290
290
|
}
|
|
291
291
|
var CliSqliteInterrupted;
|
|
292
292
|
var init_sqlite_errors = __esm({
|
|
293
|
-
"src/sqlite/sqlite-errors.ts"() {
|
|
293
|
+
"../bridge/src/sqlite/sqlite-errors.ts"() {
|
|
294
294
|
"use strict";
|
|
295
295
|
CliSqliteInterrupted = class extends Error {
|
|
296
296
|
name = "CliSqliteInterrupted";
|
|
@@ -301,7 +301,7 @@ var init_sqlite_errors = __esm({
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
|
|
304
|
-
// src/sqlite/sqlite-lock-path.ts
|
|
304
|
+
// ../bridge/src/sqlite/sqlite-lock-path.ts
|
|
305
305
|
import fs from "node:fs";
|
|
306
306
|
function getSqliteLockPath(dbPath) {
|
|
307
307
|
return `${dbPath}.lock`;
|
|
@@ -320,13 +320,13 @@ function logStaleSqliteLockIntervention(dbPath) {
|
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
322
|
var init_sqlite_lock_path = __esm({
|
|
323
|
-
"src/sqlite/sqlite-lock-path.ts"() {
|
|
323
|
+
"../bridge/src/sqlite/sqlite-lock-path.ts"() {
|
|
324
324
|
"use strict";
|
|
325
325
|
init_log();
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
328
|
|
|
329
|
-
// src/sqlite/code-nav-cache/code-nav-cache-paths.ts
|
|
329
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-paths.ts
|
|
330
330
|
import fs2 from "node:fs";
|
|
331
331
|
import path from "node:path";
|
|
332
332
|
import os from "node:os";
|
|
@@ -340,12 +340,12 @@ function ensureCodeNavCacheSqliteParentDir(sqlitePath) {
|
|
|
340
340
|
if (!fs2.existsSync(dir)) fs2.mkdirSync(dir, { recursive: true });
|
|
341
341
|
}
|
|
342
342
|
var init_code_nav_cache_paths = __esm({
|
|
343
|
-
"src/sqlite/code-nav-cache/code-nav-cache-paths.ts"() {
|
|
343
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-paths.ts"() {
|
|
344
344
|
"use strict";
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
347
|
|
|
348
|
-
// src/sqlite/code-nav-cache/code-nav-cache-log.ts
|
|
348
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-log.ts
|
|
349
349
|
import fs3 from "node:fs";
|
|
350
350
|
function setCodeNavCacheDiagnosticSink(sink) {
|
|
351
351
|
diagnosticSink = sink;
|
|
@@ -388,7 +388,7 @@ function maybeLogCodeNavCacheWorkerError(message) {
|
|
|
388
388
|
}
|
|
389
389
|
var diagnosticSink, lastDiagnosticKey;
|
|
390
390
|
var init_code_nav_cache_log = __esm({
|
|
391
|
-
"src/sqlite/code-nav-cache/code-nav-cache-log.ts"() {
|
|
391
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-log.ts"() {
|
|
392
392
|
"use strict";
|
|
393
393
|
init_log();
|
|
394
394
|
init_sqlite_errors();
|
|
@@ -399,19 +399,19 @@ var init_code_nav_cache_log = __esm({
|
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
|
|
402
|
-
// src/runtime/cli-process-interrupt.ts
|
|
402
|
+
// ../bridge/src/runtime/cli-process-interrupt.ts
|
|
403
403
|
function isCliImmediateShutdownRequested() {
|
|
404
404
|
return cliImmediateShutdownRequested;
|
|
405
405
|
}
|
|
406
406
|
var cliImmediateShutdownRequested;
|
|
407
407
|
var init_cli_process_interrupt = __esm({
|
|
408
|
-
"src/runtime/cli-process-interrupt.ts"() {
|
|
408
|
+
"../bridge/src/runtime/cli-process-interrupt.ts"() {
|
|
409
409
|
"use strict";
|
|
410
410
|
cliImmediateShutdownRequested = false;
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
413
|
|
|
414
|
-
// src/sqlite/code-nav-cache/code-nav-cache-availability.ts
|
|
414
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-availability.ts
|
|
415
415
|
function isCodeNavCacheUnavailable() {
|
|
416
416
|
return initState === "unavailable";
|
|
417
417
|
}
|
|
@@ -420,7 +420,7 @@ function getCodeNavCacheInitPromise() {
|
|
|
420
420
|
}
|
|
421
421
|
var initState, initPromise, CodeNavCacheUnavailableError;
|
|
422
422
|
var init_code_nav_cache_availability = __esm({
|
|
423
|
-
"src/sqlite/code-nav-cache/code-nav-cache-availability.ts"() {
|
|
423
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-availability.ts"() {
|
|
424
424
|
"use strict";
|
|
425
425
|
init_log();
|
|
426
426
|
init_in_flight();
|
|
@@ -437,7 +437,7 @@ var init_code_nav_cache_availability = __esm({
|
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
|
|
440
|
-
// src/code-nav/symbol-index/worker/shutdown-state.ts
|
|
440
|
+
// ../bridge/src/code-nav/symbol-index/worker/shutdown-state.ts
|
|
441
441
|
function requestSymbolIndexWorkerShutdown() {
|
|
442
442
|
symbolIndexWorkerShutdownRequested = true;
|
|
443
443
|
}
|
|
@@ -446,13 +446,13 @@ function isSymbolIndexWorkerShutdownRequested() {
|
|
|
446
446
|
}
|
|
447
447
|
var symbolIndexWorkerShutdownRequested;
|
|
448
448
|
var init_shutdown_state = __esm({
|
|
449
|
-
"src/code-nav/symbol-index/worker/shutdown-state.ts"() {
|
|
449
|
+
"../bridge/src/code-nav/symbol-index/worker/shutdown-state.ts"() {
|
|
450
450
|
"use strict";
|
|
451
451
|
symbolIndexWorkerShutdownRequested = false;
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
|
|
455
|
-
// src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts
|
|
455
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts
|
|
456
456
|
async function waitForOuterCodeNavCacheAccessAsync() {
|
|
457
457
|
while (codeNavCacheAccessDepth > 0) {
|
|
458
458
|
if (isCliImmediateShutdownRequested() || isSymbolIndexWorkerShutdownRequested()) {
|
|
@@ -479,7 +479,7 @@ function resetCodeNavCacheAccessDepth() {
|
|
|
479
479
|
}
|
|
480
480
|
var codeNavCacheAccessDepth;
|
|
481
481
|
var init_code_nav_cache_access_depth = __esm({
|
|
482
|
-
"src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts"() {
|
|
482
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts"() {
|
|
483
483
|
"use strict";
|
|
484
484
|
init_yield_to_event_loop();
|
|
485
485
|
init_cli_process_interrupt();
|
|
@@ -489,7 +489,7 @@ var init_code_nav_cache_access_depth = __esm({
|
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
|
|
492
|
-
// src/sqlite/sqlite-lock-retry.ts
|
|
492
|
+
// ../bridge/src/sqlite/sqlite-lock-retry.ts
|
|
493
493
|
function syncSleepMs(ms) {
|
|
494
494
|
if (ms <= 0) return;
|
|
495
495
|
const deadline = Date.now() + ms;
|
|
@@ -521,7 +521,7 @@ async function asyncDelayMsInterruptible(ms) {
|
|
|
521
521
|
}
|
|
522
522
|
var SYNC_RETRY_MAX, ASYNC_RETRY_MAX, ASYNC_PROBE_RETRY_MAX, ASYNC_BASE_DELAY_MS;
|
|
523
523
|
var init_sqlite_lock_retry = __esm({
|
|
524
|
-
"src/sqlite/sqlite-lock-retry.ts"() {
|
|
524
|
+
"../bridge/src/sqlite/sqlite-lock-retry.ts"() {
|
|
525
525
|
"use strict";
|
|
526
526
|
init_cli_process_interrupt();
|
|
527
527
|
init_yield_to_event_loop();
|
|
@@ -533,20 +533,20 @@ var init_sqlite_lock_retry = __esm({
|
|
|
533
533
|
}
|
|
534
534
|
});
|
|
535
535
|
|
|
536
|
-
// src/sqlite/access/bindings.ts
|
|
536
|
+
// ../bridge/src/sqlite/access/bindings.ts
|
|
537
537
|
import sqliteWasm from "node-sqlite3-wasm";
|
|
538
538
|
function createSqliteMigrateState() {
|
|
539
539
|
return { migrateDoneForPath: null };
|
|
540
540
|
}
|
|
541
541
|
var SqliteDatabaseConstructor;
|
|
542
542
|
var init_bindings = __esm({
|
|
543
|
-
"src/sqlite/access/bindings.ts"() {
|
|
543
|
+
"../bridge/src/sqlite/access/bindings.ts"() {
|
|
544
544
|
"use strict";
|
|
545
545
|
SqliteDatabaseConstructor = sqliteWasm.Database;
|
|
546
546
|
}
|
|
547
547
|
});
|
|
548
548
|
|
|
549
|
-
// src/sqlite/sqlite-pragmas.ts
|
|
549
|
+
// ../bridge/src/sqlite/sqlite-pragmas.ts
|
|
550
550
|
function applySqliteConcurrencyPragmas(db) {
|
|
551
551
|
try {
|
|
552
552
|
db.run("PRAGMA foreign_keys = ON");
|
|
@@ -573,12 +573,12 @@ function applySqliteMemoryPragmas(db) {
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var init_sqlite_pragmas = __esm({
|
|
576
|
-
"src/sqlite/sqlite-pragmas.ts"() {
|
|
576
|
+
"../bridge/src/sqlite/sqlite-pragmas.ts"() {
|
|
577
577
|
"use strict";
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
580
|
|
|
581
|
-
// src/sqlite/access/open.ts
|
|
581
|
+
// ../bridge/src/sqlite/access/open.ts
|
|
582
582
|
function safeCloseSqliteDatabase(db) {
|
|
583
583
|
if (db == null) return;
|
|
584
584
|
try {
|
|
@@ -617,7 +617,7 @@ function openSqliteConnection(config, migrateState, options) {
|
|
|
617
617
|
return db;
|
|
618
618
|
}
|
|
619
619
|
var init_open = __esm({
|
|
620
|
-
"src/sqlite/access/open.ts"() {
|
|
620
|
+
"../bridge/src/sqlite/access/open.ts"() {
|
|
621
621
|
"use strict";
|
|
622
622
|
init_cli_process_interrupt();
|
|
623
623
|
init_sqlite_errors();
|
|
@@ -626,7 +626,7 @@ var init_open = __esm({
|
|
|
626
626
|
}
|
|
627
627
|
});
|
|
628
628
|
|
|
629
|
-
// src/sqlite/access/with-async.ts
|
|
629
|
+
// ../bridge/src/sqlite/access/with-async.ts
|
|
630
630
|
async function runSqliteWithAsync(config, openConnection, safeClose, fn, options, maxAttempts = ASYNC_RETRY_MAX) {
|
|
631
631
|
let lastError;
|
|
632
632
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
@@ -663,7 +663,7 @@ async function runSqliteWithAsync(config, openConnection, safeClose, fn, options
|
|
|
663
663
|
throw new Error(String(lastError));
|
|
664
664
|
}
|
|
665
665
|
var init_with_async = __esm({
|
|
666
|
-
"src/sqlite/access/with-async.ts"() {
|
|
666
|
+
"../bridge/src/sqlite/access/with-async.ts"() {
|
|
667
667
|
"use strict";
|
|
668
668
|
init_yield_to_event_loop();
|
|
669
669
|
init_cli_process_interrupt();
|
|
@@ -673,7 +673,7 @@ var init_with_async = __esm({
|
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
675
|
|
|
676
|
-
// src/sqlite/access/with-sync.ts
|
|
676
|
+
// ../bridge/src/sqlite/access/with-sync.ts
|
|
677
677
|
function runSqliteWithSync(config, openConnection, safeClose, fn, options) {
|
|
678
678
|
for (let attempt = 1; attempt <= SYNC_RETRY_MAX; attempt++) {
|
|
679
679
|
if (isCliImmediateShutdownRequested()) throw new CliSqliteInterrupted();
|
|
@@ -705,7 +705,7 @@ function runSqliteWithSync(config, openConnection, safeClose, fn, options) {
|
|
|
705
705
|
throw new Error("withSqliteSync: exhausted retries");
|
|
706
706
|
}
|
|
707
707
|
var init_with_sync = __esm({
|
|
708
|
-
"src/sqlite/access/with-sync.ts"() {
|
|
708
|
+
"../bridge/src/sqlite/access/with-sync.ts"() {
|
|
709
709
|
"use strict";
|
|
710
710
|
init_cli_process_interrupt();
|
|
711
711
|
init_sqlite_errors();
|
|
@@ -714,7 +714,7 @@ var init_with_sync = __esm({
|
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
|
|
717
|
-
// src/sqlite/access/index.ts
|
|
717
|
+
// ../bridge/src/sqlite/access/index.ts
|
|
718
718
|
function createSqliteDatabaseAccess(config) {
|
|
719
719
|
const migrateState = createSqliteMigrateState();
|
|
720
720
|
function safeClose(db) {
|
|
@@ -757,7 +757,7 @@ function createSqliteDatabaseAccess(config) {
|
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
759
|
var init_access = __esm({
|
|
760
|
-
"src/sqlite/access/index.ts"() {
|
|
760
|
+
"../bridge/src/sqlite/access/index.ts"() {
|
|
761
761
|
"use strict";
|
|
762
762
|
init_sqlite_lock_path();
|
|
763
763
|
init_sqlite_lock_retry();
|
|
@@ -768,7 +768,7 @@ var init_access = __esm({
|
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
770
|
|
|
771
|
-
// src/sqlite/read-migration-sql.ts
|
|
771
|
+
// ../bridge/src/sqlite/read-migration-sql.ts
|
|
772
772
|
import { existsSync, readFileSync } from "node:fs";
|
|
773
773
|
import { dirname, join } from "node:path";
|
|
774
774
|
import { fileURLToPath } from "node:url";
|
|
@@ -792,12 +792,12 @@ function readCodeNavCacheMigrationSql(filename) {
|
|
|
792
792
|
return readMigrationSql(filename, "code-nav-cache-migrations", "code-nav-cache/migrations");
|
|
793
793
|
}
|
|
794
794
|
var init_read_migration_sql = __esm({
|
|
795
|
-
"src/sqlite/read-migration-sql.ts"() {
|
|
795
|
+
"../bridge/src/sqlite/read-migration-sql.ts"() {
|
|
796
796
|
"use strict";
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
799
|
|
|
800
|
-
// src/sqlite/run-sqlite-migrations.ts
|
|
800
|
+
// ../bridge/src/sqlite/run-sqlite-migrations.ts
|
|
801
801
|
function checkpointSatisfiedByLegacyChain(applied, replacesLegacyMigrations) {
|
|
802
802
|
return Array.isArray(replacesLegacyMigrations) && replacesLegacyMigrations.length > 0 && replacesLegacyMigrations.every((n) => applied.has(n));
|
|
803
803
|
}
|
|
@@ -837,12 +837,12 @@ function runSqliteMigrations(db, migrations, bootstrapSql, label) {
|
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
var init_run_sqlite_migrations = __esm({
|
|
840
|
-
"src/sqlite/run-sqlite-migrations.ts"() {
|
|
840
|
+
"../bridge/src/sqlite/run-sqlite-migrations.ts"() {
|
|
841
841
|
"use strict";
|
|
842
842
|
}
|
|
843
843
|
});
|
|
844
844
|
|
|
845
|
-
// src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts
|
|
845
|
+
// ../bridge/src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts
|
|
846
846
|
function migrateCodeNavCacheSqlite(db) {
|
|
847
847
|
runSqliteMigrations(
|
|
848
848
|
db,
|
|
@@ -853,7 +853,7 @@ function migrateCodeNavCacheSqlite(db) {
|
|
|
853
853
|
}
|
|
854
854
|
var CHECKPOINT_V1, CHECKPOINT_V1_SQL, MIGRATION_002, MIGRATION_002_SQL, MIGRATION_003, MIGRATION_003_SQL, CODE_NAV_CACHE_SQLITE_MIGRATIONS;
|
|
855
855
|
var init_migrate_code_nav_cache_sqlite = __esm({
|
|
856
|
-
"src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts"() {
|
|
856
|
+
"../bridge/src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts"() {
|
|
857
857
|
"use strict";
|
|
858
858
|
init_read_migration_sql();
|
|
859
859
|
init_run_sqlite_migrations();
|
|
@@ -909,7 +909,7 @@ var init_migrate_code_nav_cache_sqlite = __esm({
|
|
|
909
909
|
}
|
|
910
910
|
});
|
|
911
911
|
|
|
912
|
-
// src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts
|
|
912
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts
|
|
913
913
|
import fs4 from "node:fs";
|
|
914
914
|
function isSqliteCorruptError(e) {
|
|
915
915
|
const msg = e instanceof Error ? e.message : String(e);
|
|
@@ -953,7 +953,7 @@ function withCodeNavCacheSqliteWorkLock(fn) {
|
|
|
953
953
|
}
|
|
954
954
|
var chain, workLockDepth;
|
|
955
955
|
var init_code_nav_cache_sqlite_work_lock = __esm({
|
|
956
|
-
"src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts"() {
|
|
956
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts"() {
|
|
957
957
|
"use strict";
|
|
958
958
|
init_code_nav_cache_paths();
|
|
959
959
|
chain = Promise.resolve();
|
|
@@ -961,7 +961,7 @@ var init_code_nav_cache_sqlite_work_lock = __esm({
|
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
|
|
964
|
-
// src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts
|
|
964
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts
|
|
965
965
|
async function withCodeNavCacheSqliteWorkLockWrapped(fn) {
|
|
966
966
|
return withCodeNavCacheSqliteWorkLock(async () => {
|
|
967
967
|
const nested = getCodeNavCacheAccessDepth() > 0;
|
|
@@ -981,7 +981,7 @@ function closeAllCodeNavCacheSqliteConnections() {
|
|
|
981
981
|
}
|
|
982
982
|
var codeNavCacheSqlite;
|
|
983
983
|
var init_code_nav_cache_wrapped_access = __esm({
|
|
984
|
-
"src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts"() {
|
|
984
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts"() {
|
|
985
985
|
"use strict";
|
|
986
986
|
init_access();
|
|
987
987
|
init_sqlite_errors();
|
|
@@ -1003,9 +1003,9 @@ var init_code_nav_cache_wrapped_access = __esm({
|
|
|
1003
1003
|
}
|
|
1004
1004
|
});
|
|
1005
1005
|
|
|
1006
|
-
// src/sqlite/code-nav-cache/instance.ts
|
|
1006
|
+
// ../bridge/src/sqlite/code-nav-cache/instance.ts
|
|
1007
1007
|
var init_instance = __esm({
|
|
1008
|
-
"src/sqlite/code-nav-cache/instance.ts"() {
|
|
1008
|
+
"../bridge/src/sqlite/code-nav-cache/instance.ts"() {
|
|
1009
1009
|
"use strict";
|
|
1010
1010
|
init_cli_process_interrupt();
|
|
1011
1011
|
init_shutdown_state();
|
|
@@ -1017,7 +1017,7 @@ var init_instance = __esm({
|
|
|
1017
1017
|
}
|
|
1018
1018
|
});
|
|
1019
1019
|
|
|
1020
|
-
// src/sqlite/code-nav-cache/database.ts
|
|
1020
|
+
// ../bridge/src/sqlite/code-nav-cache/database.ts
|
|
1021
1021
|
async function withCodeNavCacheSqlite(fn) {
|
|
1022
1022
|
if (isCodeNavCacheUnavailable()) throw new CodeNavCacheUnavailableError();
|
|
1023
1023
|
const initPromise3 = getCodeNavCacheInitPromise();
|
|
@@ -1029,7 +1029,7 @@ async function withCodeNavCacheSqlite(fn) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
var safeCloseCodeNavCacheSqliteDatabase, openCodeNavCacheSqliteConnection;
|
|
1031
1031
|
var init_database = __esm({
|
|
1032
|
-
"src/sqlite/code-nav-cache/database.ts"() {
|
|
1032
|
+
"../bridge/src/sqlite/code-nav-cache/database.ts"() {
|
|
1033
1033
|
"use strict";
|
|
1034
1034
|
init_code_nav_cache_availability();
|
|
1035
1035
|
init_instance();
|
|
@@ -1042,7 +1042,7 @@ var init_database = __esm({
|
|
|
1042
1042
|
}
|
|
1043
1043
|
});
|
|
1044
1044
|
|
|
1045
|
-
// src/paths/normalize-resolved-path.ts
|
|
1045
|
+
// ../bridge/src/paths/normalize-resolved-path.ts
|
|
1046
1046
|
import fs5 from "node:fs";
|
|
1047
1047
|
import path2 from "node:path";
|
|
1048
1048
|
function normalizeResolvedPath(resolved) {
|
|
@@ -1054,12 +1054,12 @@ function normalizeResolvedPath(resolved) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
var init_normalize_resolved_path = __esm({
|
|
1057
|
-
"src/paths/normalize-resolved-path.ts"() {
|
|
1057
|
+
"../bridge/src/paths/normalize-resolved-path.ts"() {
|
|
1058
1058
|
"use strict";
|
|
1059
1059
|
}
|
|
1060
1060
|
});
|
|
1061
1061
|
|
|
1062
|
-
// src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts
|
|
1062
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts
|
|
1063
1063
|
function runCodeNavCacheWriteTransaction(db, fn) {
|
|
1064
1064
|
db.run("BEGIN IMMEDIATE");
|
|
1065
1065
|
try {
|
|
@@ -1075,12 +1075,12 @@ function runCodeNavCacheWriteTransaction(db, fn) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
1077
|
var init_code_nav_cache_sqlite_transaction = __esm({
|
|
1078
|
-
"src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts"() {
|
|
1078
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts"() {
|
|
1079
1079
|
"use strict";
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
|
|
1083
|
-
// src/code-nav/yield-during-work.ts
|
|
1083
|
+
// ../bridge/src/code-nav/yield-during-work.ts
|
|
1084
1084
|
function createCodeNavYieldState() {
|
|
1085
1085
|
return { n: 0 };
|
|
1086
1086
|
}
|
|
@@ -1093,7 +1093,7 @@ async function yieldDuringCodeNavWork(state) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
var CODE_NAV_YIELD_EVERY;
|
|
1095
1095
|
var init_yield_during_work = __esm({
|
|
1096
|
-
"src/code-nav/yield-during-work.ts"() {
|
|
1096
|
+
"../bridge/src/code-nav/yield-during-work.ts"() {
|
|
1097
1097
|
"use strict";
|
|
1098
1098
|
init_cli_process_interrupt();
|
|
1099
1099
|
init_in_flight();
|
|
@@ -1102,7 +1102,7 @@ var init_yield_during_work = __esm({
|
|
|
1102
1102
|
}
|
|
1103
1103
|
});
|
|
1104
1104
|
|
|
1105
|
-
// src/sqlite/cli-sqlite-paths.ts
|
|
1105
|
+
// ../bridge/src/sqlite/cli-sqlite-paths.ts
|
|
1106
1106
|
import fs6 from "node:fs";
|
|
1107
1107
|
import path3 from "node:path";
|
|
1108
1108
|
import os2 from "node:os";
|
|
@@ -1116,17 +1116,17 @@ function ensureCliSqliteParentDir(sqlitePath) {
|
|
|
1116
1116
|
if (!fs6.existsSync(dir)) fs6.mkdirSync(dir, { recursive: true });
|
|
1117
1117
|
}
|
|
1118
1118
|
var init_cli_sqlite_paths = __esm({
|
|
1119
|
-
"src/sqlite/cli-sqlite-paths.ts"() {
|
|
1119
|
+
"../bridge/src/sqlite/cli-sqlite-paths.ts"() {
|
|
1120
1120
|
"use strict";
|
|
1121
1121
|
}
|
|
1122
1122
|
});
|
|
1123
1123
|
|
|
1124
|
-
// src/files/index/constants.ts
|
|
1124
|
+
// ../bridge/src/files/index/constants.ts
|
|
1125
1125
|
import path4 from "node:path";
|
|
1126
1126
|
import os3 from "node:os";
|
|
1127
1127
|
var INDEX_WORK_YIELD_EVERY, INDEX_DIR, INDEX_HASH_LEN;
|
|
1128
1128
|
var init_constants = __esm({
|
|
1129
|
-
"src/files/index/constants.ts"() {
|
|
1129
|
+
"../bridge/src/files/index/constants.ts"() {
|
|
1130
1130
|
"use strict";
|
|
1131
1131
|
INDEX_WORK_YIELD_EVERY = 128;
|
|
1132
1132
|
INDEX_DIR = path4.join(os3.homedir(), ".buildautomaton");
|
|
@@ -1134,7 +1134,7 @@ var init_constants = __esm({
|
|
|
1134
1134
|
}
|
|
1135
1135
|
});
|
|
1136
1136
|
|
|
1137
|
-
// src/prompt-turn-queue/paths.ts
|
|
1137
|
+
// ../bridge/src/prompt-turn-queue/paths.ts
|
|
1138
1138
|
import path5 from "node:path";
|
|
1139
1139
|
import os4 from "node:os";
|
|
1140
1140
|
function getPromptQueuesDirectory() {
|
|
@@ -1143,12 +1143,12 @@ function getPromptQueuesDirectory() {
|
|
|
1143
1143
|
return path5.join(os4.homedir(), ".buildautomaton", "queues");
|
|
1144
1144
|
}
|
|
1145
1145
|
var init_paths = __esm({
|
|
1146
|
-
"src/prompt-turn-queue/paths.ts"() {
|
|
1146
|
+
"../bridge/src/prompt-turn-queue/paths.ts"() {
|
|
1147
1147
|
"use strict";
|
|
1148
1148
|
}
|
|
1149
1149
|
});
|
|
1150
1150
|
|
|
1151
|
-
// src/sqlite/legacy_migration/archive-to-old-version.ts
|
|
1151
|
+
// ../bridge/src/sqlite/legacy_migration/archive-to-old-version.ts
|
|
1152
1152
|
import fs7 from "node:fs";
|
|
1153
1153
|
import path6 from "node:path";
|
|
1154
1154
|
function moveLegacyFileToOldVersionBackup(category, sourcePath) {
|
|
@@ -1165,14 +1165,14 @@ function moveLegacyFileToOldVersionBackup(category, sourcePath) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
var OLD_VERSION_DIR;
|
|
1167
1167
|
var init_archive_to_old_version = __esm({
|
|
1168
|
-
"src/sqlite/legacy_migration/archive-to-old-version.ts"() {
|
|
1168
|
+
"../bridge/src/sqlite/legacy_migration/archive-to-old-version.ts"() {
|
|
1169
1169
|
"use strict";
|
|
1170
1170
|
init_constants();
|
|
1171
1171
|
OLD_VERSION_DIR = path6.join(INDEX_DIR, "old-version");
|
|
1172
1172
|
}
|
|
1173
1173
|
});
|
|
1174
1174
|
|
|
1175
|
-
// src/sqlite/legacy_migration/archive-file-index-json.ts
|
|
1175
|
+
// ../bridge/src/sqlite/legacy_migration/archive-file-index-json.ts
|
|
1176
1176
|
import fs8 from "node:fs";
|
|
1177
1177
|
import path7 from "node:path";
|
|
1178
1178
|
function archiveLegacyFileIndexJsonFiles() {
|
|
@@ -1193,14 +1193,14 @@ function archiveLegacyFileIndexJsonFiles() {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
var init_archive_file_index_json = __esm({
|
|
1196
|
-
"src/sqlite/legacy_migration/archive-file-index-json.ts"() {
|
|
1196
|
+
"../bridge/src/sqlite/legacy_migration/archive-file-index-json.ts"() {
|
|
1197
1197
|
"use strict";
|
|
1198
1198
|
init_constants();
|
|
1199
1199
|
init_archive_to_old_version();
|
|
1200
1200
|
}
|
|
1201
1201
|
});
|
|
1202
1202
|
|
|
1203
|
-
// src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts
|
|
1203
|
+
// ../bridge/src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts
|
|
1204
1204
|
import fs9 from "node:fs";
|
|
1205
1205
|
import path8 from "node:path";
|
|
1206
1206
|
import os5 from "node:os";
|
|
@@ -1244,14 +1244,14 @@ function importLegacyAgentSessionsFromDisk(db) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
var LEGACY_AGENT_SESSION_DIR;
|
|
1246
1246
|
var init_import_agent_sessions_from_disk = __esm({
|
|
1247
|
-
"src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts"() {
|
|
1247
|
+
"../bridge/src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts"() {
|
|
1248
1248
|
"use strict";
|
|
1249
1249
|
init_archive_to_old_version();
|
|
1250
1250
|
LEGACY_AGENT_SESSION_DIR = path8.join(os5.homedir(), ".buildautomaton", "agent-sessions");
|
|
1251
1251
|
}
|
|
1252
1252
|
});
|
|
1253
1253
|
|
|
1254
|
-
// src/sqlite/legacy_migration/parse-persisted-queue-json.ts
|
|
1254
|
+
// ../bridge/src/sqlite/legacy_migration/parse-persisted-queue-json.ts
|
|
1255
1255
|
function parsePersistedQueueFromJson(raw) {
|
|
1256
1256
|
try {
|
|
1257
1257
|
const o = JSON.parse(raw);
|
|
@@ -1263,12 +1263,12 @@ function parsePersistedQueueFromJson(raw) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
1265
|
var init_parse_persisted_queue_json = __esm({
|
|
1266
|
-
"src/sqlite/legacy_migration/parse-persisted-queue-json.ts"() {
|
|
1266
|
+
"../bridge/src/sqlite/legacy_migration/parse-persisted-queue-json.ts"() {
|
|
1267
1267
|
"use strict";
|
|
1268
1268
|
}
|
|
1269
1269
|
});
|
|
1270
1270
|
|
|
1271
|
-
// src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts
|
|
1271
|
+
// ../bridge/src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts
|
|
1272
1272
|
import fs10 from "node:fs";
|
|
1273
1273
|
import path9 from "node:path";
|
|
1274
1274
|
function importLegacyPromptQueuesFromDisk(db) {
|
|
@@ -1300,7 +1300,7 @@ function importLegacyPromptQueuesFromDisk(db) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
var init_import_prompt_queues_from_disk = __esm({
|
|
1303
|
-
"src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts"() {
|
|
1303
|
+
"../bridge/src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts"() {
|
|
1304
1304
|
"use strict";
|
|
1305
1305
|
init_paths();
|
|
1306
1306
|
init_archive_to_old_version();
|
|
@@ -1308,7 +1308,7 @@ var init_import_prompt_queues_from_disk = __esm({
|
|
|
1308
1308
|
}
|
|
1309
1309
|
});
|
|
1310
1310
|
|
|
1311
|
-
// src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts
|
|
1311
|
+
// ../bridge/src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts
|
|
1312
1312
|
import fs11 from "node:fs";
|
|
1313
1313
|
function legacyCliDiskMigrationIsPending() {
|
|
1314
1314
|
try {
|
|
@@ -1345,7 +1345,7 @@ function importCliSqliteLegacyDiskData(db, log) {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
var init_import_cli_legacy_disk_data = __esm({
|
|
1348
|
-
"src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts"() {
|
|
1348
|
+
"../bridge/src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts"() {
|
|
1349
1349
|
"use strict";
|
|
1350
1350
|
init_constants();
|
|
1351
1351
|
init_paths();
|
|
@@ -1355,7 +1355,7 @@ var init_import_cli_legacy_disk_data = __esm({
|
|
|
1355
1355
|
}
|
|
1356
1356
|
});
|
|
1357
1357
|
|
|
1358
|
-
// src/sqlite/migrate-cli-sqlite.ts
|
|
1358
|
+
// ../bridge/src/sqlite/migrate-cli-sqlite.ts
|
|
1359
1359
|
function agentCapabilitiesTableState(db) {
|
|
1360
1360
|
const rows = db.all(
|
|
1361
1361
|
`SELECT name FROM sqlite_master WHERE type='table' AND name IN ('agent_capabilities', 'agent_capability_cache')`
|
|
@@ -1375,7 +1375,7 @@ function migrateCliSqlite(db) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
var CHECKPOINT_V12, CHECKPOINT_V1_SQL2, AGENT_CAPABILITIES_SQL, DROP_CACHE_TABLES_SQL, CLI_SQLITE_MIGRATIONS;
|
|
1377
1377
|
var init_migrate_cli_sqlite = __esm({
|
|
1378
|
-
"src/sqlite/migrate-cli-sqlite.ts"() {
|
|
1378
|
+
"../bridge/src/sqlite/migrate-cli-sqlite.ts"() {
|
|
1379
1379
|
"use strict";
|
|
1380
1380
|
init_read_migration_sql();
|
|
1381
1381
|
init_run_sqlite_migrations();
|
|
@@ -1426,10 +1426,10 @@ var init_migrate_cli_sqlite = __esm({
|
|
|
1426
1426
|
}
|
|
1427
1427
|
});
|
|
1428
1428
|
|
|
1429
|
-
// src/sqlite/cli-database.ts
|
|
1429
|
+
// ../bridge/src/sqlite/cli-database.ts
|
|
1430
1430
|
var legacyImportDoneForPath, cliSqlite, safeCloseCliSqliteDatabase, openCliSqliteConnection, withCliSqliteSync, withCliSqlite, ensureCliSqliteInitialized;
|
|
1431
1431
|
var init_cli_database = __esm({
|
|
1432
|
-
"src/sqlite/cli-database.ts"() {
|
|
1432
|
+
"../bridge/src/sqlite/cli-database.ts"() {
|
|
1433
1433
|
"use strict";
|
|
1434
1434
|
init_cli_process_interrupt();
|
|
1435
1435
|
init_cli_sqlite_paths();
|
|
@@ -1457,7 +1457,7 @@ var init_cli_database = __esm({
|
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
|
|
1460
|
-
// src/files/index/walk-workspace-tree.ts
|
|
1460
|
+
// ../bridge/src/files/index/walk-workspace-tree.ts
|
|
1461
1461
|
function shouldSkipWorkspaceWalkEntry(name) {
|
|
1462
1462
|
return DEPENDENCY_INSTALL_DIR_NAMES.has(name);
|
|
1463
1463
|
}
|
|
@@ -1466,7 +1466,7 @@ function createWalkYieldState() {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
var DEPENDENCY_INSTALL_DIR_NAMES;
|
|
1468
1468
|
var init_walk_workspace_tree = __esm({
|
|
1469
|
-
"src/files/index/walk-workspace-tree.ts"() {
|
|
1469
|
+
"../bridge/src/files/index/walk-workspace-tree.ts"() {
|
|
1470
1470
|
"use strict";
|
|
1471
1471
|
init_in_flight();
|
|
1472
1472
|
init_cli_process_interrupt();
|
|
@@ -1942,7 +1942,7 @@ var require_ignore = __commonJS({
|
|
|
1942
1942
|
}
|
|
1943
1943
|
});
|
|
1944
1944
|
|
|
1945
|
-
// src/code-nav/gitignore-filter.ts
|
|
1945
|
+
// ../bridge/src/code-nav/gitignore-filter.ts
|
|
1946
1946
|
import fs12 from "node:fs";
|
|
1947
1947
|
import path10 from "node:path";
|
|
1948
1948
|
function normalizeRelPath(relPath) {
|
|
@@ -1972,7 +1972,7 @@ async function isPathGitIgnored(root, relPath) {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
var import_ignore, DEFAULT_IGNORED, GitignoreFilter;
|
|
1974
1974
|
var init_gitignore_filter = __esm({
|
|
1975
|
-
"src/code-nav/gitignore-filter.ts"() {
|
|
1975
|
+
"../bridge/src/code-nav/gitignore-filter.ts"() {
|
|
1976
1976
|
"use strict";
|
|
1977
1977
|
import_ignore = __toESM(require_ignore(), 1);
|
|
1978
1978
|
DEFAULT_IGNORED = [".git", ".git/**"];
|
|
@@ -2007,7 +2007,7 @@ var init_gitignore_filter = __esm({
|
|
|
2007
2007
|
}
|
|
2008
2008
|
});
|
|
2009
2009
|
|
|
2010
|
-
// src/code-nav/language-registry.ts
|
|
2010
|
+
// ../bridge/src/code-nav/language-registry.ts
|
|
2011
2011
|
import path11 from "node:path";
|
|
2012
2012
|
function languageAssetPaths(key, wasmFile) {
|
|
2013
2013
|
return {
|
|
@@ -2029,7 +2029,7 @@ function isCodeNavSupportedPath(filePath) {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
var EXT_TO_LANGUAGE_KEY, LANGUAGE_SPECS;
|
|
2031
2031
|
var init_language_registry = __esm({
|
|
2032
|
-
"src/code-nav/language-registry.ts"() {
|
|
2032
|
+
"../bridge/src/code-nav/language-registry.ts"() {
|
|
2033
2033
|
"use strict";
|
|
2034
2034
|
EXT_TO_LANGUAGE_KEY = {
|
|
2035
2035
|
js: "javascript",
|
|
@@ -2065,7 +2065,7 @@ var init_language_registry = __esm({
|
|
|
2065
2065
|
}
|
|
2066
2066
|
});
|
|
2067
2067
|
|
|
2068
|
-
// src/code-nav/walk-code-nav-files.ts
|
|
2068
|
+
// ../bridge/src/code-nav/walk-code-nav-files.ts
|
|
2069
2069
|
import fs13 from "node:fs";
|
|
2070
2070
|
import path12 from "node:path";
|
|
2071
2071
|
async function walkCodeNavFilesInDirectory(dir, baseDir, relDir, filter, onFile, state) {
|
|
@@ -2114,7 +2114,7 @@ async function walkCodeNavFilesAsync(rootDir, onFile, state = createWalkYieldSta
|
|
|
2114
2114
|
await walkCodeNavFilesInDirectory(resolved, resolved, "", filter, onFile, state);
|
|
2115
2115
|
}
|
|
2116
2116
|
var init_walk_code_nav_files = __esm({
|
|
2117
|
-
"src/code-nav/walk-code-nav-files.ts"() {
|
|
2117
|
+
"../bridge/src/code-nav/walk-code-nav-files.ts"() {
|
|
2118
2118
|
"use strict";
|
|
2119
2119
|
init_walk_workspace_tree();
|
|
2120
2120
|
init_in_flight();
|
|
@@ -2126,16 +2126,16 @@ var init_walk_code_nav_files = __esm({
|
|
|
2126
2126
|
}
|
|
2127
2127
|
});
|
|
2128
2128
|
|
|
2129
|
-
// src/code-nav/symbol-index/sqlite/symbol-index-version.ts
|
|
2129
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/symbol-index-version.ts
|
|
2130
2130
|
var SYMBOL_INDEX_VERSION;
|
|
2131
2131
|
var init_symbol_index_version = __esm({
|
|
2132
|
-
"src/code-nav/symbol-index/sqlite/symbol-index-version.ts"() {
|
|
2132
|
+
"../bridge/src/code-nav/symbol-index/sqlite/symbol-index-version.ts"() {
|
|
2133
2133
|
"use strict";
|
|
2134
2134
|
SYMBOL_INDEX_VERSION = 11;
|
|
2135
2135
|
}
|
|
2136
2136
|
});
|
|
2137
2137
|
|
|
2138
|
-
// src/files/cwd/bridge-root.ts
|
|
2138
|
+
// ../bridge/src/files/cwd/bridge-root.ts
|
|
2139
2139
|
function getBridgeRoot() {
|
|
2140
2140
|
if (bridgeRootPath == null) {
|
|
2141
2141
|
bridgeRootPath = normalizeResolvedPath(process.cwd());
|
|
@@ -2144,27 +2144,27 @@ function getBridgeRoot() {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
var bridgeRootPath;
|
|
2146
2146
|
var init_bridge_root = __esm({
|
|
2147
|
-
"src/files/cwd/bridge-root.ts"() {
|
|
2147
|
+
"../bridge/src/files/cwd/bridge-root.ts"() {
|
|
2148
2148
|
"use strict";
|
|
2149
2149
|
init_normalize_resolved_path();
|
|
2150
2150
|
bridgeRootPath = null;
|
|
2151
2151
|
}
|
|
2152
2152
|
});
|
|
2153
2153
|
|
|
2154
|
-
// src/files/index/paths.ts
|
|
2154
|
+
// ../bridge/src/files/index/paths.ts
|
|
2155
2155
|
import path13 from "node:path";
|
|
2156
2156
|
import crypto from "node:crypto";
|
|
2157
2157
|
function getCwdHashForFileIndex(resolvedCwd) {
|
|
2158
2158
|
return crypto.createHash("sha256").update(path13.resolve(resolvedCwd)).digest("hex").slice(0, INDEX_HASH_LEN);
|
|
2159
2159
|
}
|
|
2160
2160
|
var init_paths2 = __esm({
|
|
2161
|
-
"src/files/index/paths.ts"() {
|
|
2161
|
+
"../bridge/src/files/index/paths.ts"() {
|
|
2162
2162
|
"use strict";
|
|
2163
2163
|
init_constants();
|
|
2164
2164
|
}
|
|
2165
2165
|
});
|
|
2166
2166
|
|
|
2167
|
-
// src/code-nav/symbol-index/sqlite/parent-path.ts
|
|
2167
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/parent-path.ts
|
|
2168
2168
|
function normalizeParentPath(resolved) {
|
|
2169
2169
|
return normalizeResolvedPath(resolved);
|
|
2170
2170
|
}
|
|
@@ -2216,7 +2216,7 @@ function getSymbolIndexParentContext(db, resolvedParentPath) {
|
|
|
2216
2216
|
return rowToSymbolIndexParentContext(row);
|
|
2217
2217
|
}
|
|
2218
2218
|
var init_parent_path = __esm({
|
|
2219
|
-
"src/code-nav/symbol-index/sqlite/parent-path.ts"() {
|
|
2219
|
+
"../bridge/src/code-nav/symbol-index/sqlite/parent-path.ts"() {
|
|
2220
2220
|
"use strict";
|
|
2221
2221
|
init_bridge_root();
|
|
2222
2222
|
init_paths2();
|
|
@@ -2226,7 +2226,7 @@ var init_parent_path = __esm({
|
|
|
2226
2226
|
}
|
|
2227
2227
|
});
|
|
2228
2228
|
|
|
2229
|
-
// src/code-nav/symbol-index/storage/content-hash-check.ts
|
|
2229
|
+
// ../bridge/src/code-nav/symbol-index/storage/content-hash-check.ts
|
|
2230
2230
|
function contentHashFileHasTags(db, contentHash, filePath) {
|
|
2231
2231
|
const row = db.get(
|
|
2232
2232
|
"SELECT 1 as ok FROM symbol_index_tag WHERE content_hash = ? AND file_path = ? LIMIT 1",
|
|
@@ -2242,12 +2242,12 @@ function contentHashFileHasImports(db, contentHash, filePath) {
|
|
|
2242
2242
|
return row != null;
|
|
2243
2243
|
}
|
|
2244
2244
|
var init_content_hash_check = __esm({
|
|
2245
|
-
"src/code-nav/symbol-index/storage/content-hash-check.ts"() {
|
|
2245
|
+
"../bridge/src/code-nav/symbol-index/storage/content-hash-check.ts"() {
|
|
2246
2246
|
"use strict";
|
|
2247
2247
|
}
|
|
2248
2248
|
});
|
|
2249
2249
|
|
|
2250
|
-
// src/code-nav/symbol-index/storage/insert-symbol-content.ts
|
|
2250
|
+
// ../bridge/src/code-nav/symbol-index/storage/insert-symbol-content.ts
|
|
2251
2251
|
function insertSymbolTagsForContent(db, contentHash, filePath, tags) {
|
|
2252
2252
|
const ins = db.prepare(
|
|
2253
2253
|
`INSERT OR IGNORE INTO symbol_index_tag
|
|
@@ -2305,12 +2305,12 @@ function insertSymbolImportsForContent(db, contentHash, filePath, imports) {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
2307
|
var init_insert_symbol_content = __esm({
|
|
2308
|
-
"src/code-nav/symbol-index/storage/insert-symbol-content.ts"() {
|
|
2308
|
+
"../bridge/src/code-nav/symbol-index/storage/insert-symbol-content.ts"() {
|
|
2309
2309
|
"use strict";
|
|
2310
2310
|
}
|
|
2311
2311
|
});
|
|
2312
2312
|
|
|
2313
|
-
// src/code-nav/symbol-index/storage/parent-file-map.ts
|
|
2313
|
+
// ../bridge/src/code-nav/symbol-index/storage/parent-file-map.ts
|
|
2314
2314
|
function getParentFileMapHash(db, parentId, filePath) {
|
|
2315
2315
|
const row = db.get(
|
|
2316
2316
|
"SELECT content_hash FROM symbol_parent_file_map WHERE parent_id = ? AND file_path = ?",
|
|
@@ -2372,12 +2372,12 @@ function clearParentFileMapBatch(db, parentId, limit) {
|
|
|
2372
2372
|
};
|
|
2373
2373
|
}
|
|
2374
2374
|
var init_parent_file_map = __esm({
|
|
2375
|
-
"src/code-nav/symbol-index/storage/parent-file-map.ts"() {
|
|
2375
|
+
"../bridge/src/code-nav/symbol-index/storage/parent-file-map.ts"() {
|
|
2376
2376
|
"use strict";
|
|
2377
2377
|
}
|
|
2378
2378
|
});
|
|
2379
2379
|
|
|
2380
|
-
// src/code-nav/symbol-index/storage/symbol-content-index.ts
|
|
2380
|
+
// ../bridge/src/code-nav/symbol-index/storage/symbol-content-index.ts
|
|
2381
2381
|
function upsertSymbolContentIndex(db, contentHash, filePath, tags, imports) {
|
|
2382
2382
|
if (tags.length > 0 && !contentHashFileHasTags(db, contentHash, filePath)) {
|
|
2383
2383
|
insertSymbolTagsForContent(db, contentHash, filePath, tags);
|
|
@@ -2392,7 +2392,7 @@ function deleteSymbolContentIfUnreferenced(db, contentHash) {
|
|
|
2392
2392
|
db.run("DELETE FROM symbol_index_import WHERE content_hash = ?", [contentHash]);
|
|
2393
2393
|
}
|
|
2394
2394
|
var init_symbol_content_index = __esm({
|
|
2395
|
-
"src/code-nav/symbol-index/storage/symbol-content-index.ts"() {
|
|
2395
|
+
"../bridge/src/code-nav/symbol-index/storage/symbol-content-index.ts"() {
|
|
2396
2396
|
"use strict";
|
|
2397
2397
|
init_content_hash_check();
|
|
2398
2398
|
init_insert_symbol_content();
|
|
@@ -2400,7 +2400,7 @@ var init_symbol_content_index = __esm({
|
|
|
2400
2400
|
}
|
|
2401
2401
|
});
|
|
2402
2402
|
|
|
2403
|
-
// src/code-nav/symbol-index/storage/effective-content.ts
|
|
2403
|
+
// ../bridge/src/code-nav/symbol-index/storage/effective-content.ts
|
|
2404
2404
|
function getEffectiveContentHash(db, ctx, filePath) {
|
|
2405
2405
|
const overlayHash = getParentFileMapHash(db, ctx.parentId, filePath);
|
|
2406
2406
|
if (overlayHash !== void 0) return overlayHash;
|
|
@@ -2433,24 +2433,24 @@ function listEffectiveIndexedFilePaths(db, ctx) {
|
|
|
2433
2433
|
return [...paths];
|
|
2434
2434
|
}
|
|
2435
2435
|
var init_effective_content = __esm({
|
|
2436
|
-
"src/code-nav/symbol-index/storage/effective-content.ts"() {
|
|
2436
|
+
"../bridge/src/code-nav/symbol-index/storage/effective-content.ts"() {
|
|
2437
2437
|
"use strict";
|
|
2438
2438
|
init_parent_file_map();
|
|
2439
2439
|
}
|
|
2440
2440
|
});
|
|
2441
2441
|
|
|
2442
|
-
// src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts
|
|
2442
|
+
// ../bridge/src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts
|
|
2443
2443
|
import crypto2 from "node:crypto";
|
|
2444
2444
|
function hashSymbolFileContent(source) {
|
|
2445
2445
|
return crypto2.createHash("sha256").update(source ?? "").digest("hex");
|
|
2446
2446
|
}
|
|
2447
2447
|
var init_symbol_file_content_hash = __esm({
|
|
2448
|
-
"src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts"() {
|
|
2448
|
+
"../bridge/src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts"() {
|
|
2449
2449
|
"use strict";
|
|
2450
2450
|
}
|
|
2451
2451
|
});
|
|
2452
2452
|
|
|
2453
|
-
// src/code-nav/symbol-index/sqlite/file-data-persistence.ts
|
|
2453
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/file-data-persistence.ts
|
|
2454
2454
|
function gcReleasedHashes(db, hashes) {
|
|
2455
2455
|
for (const hash of hashes) {
|
|
2456
2456
|
if (hash != null) deleteSymbolContentIfUnreferenced(db, hash);
|
|
@@ -2488,7 +2488,7 @@ function clearSymbolIndexParentDataBatch(db, ctx, limit) {
|
|
|
2488
2488
|
return remaining;
|
|
2489
2489
|
}
|
|
2490
2490
|
var init_file_data_persistence = __esm({
|
|
2491
|
-
"src/code-nav/symbol-index/sqlite/file-data-persistence.ts"() {
|
|
2491
|
+
"../bridge/src/code-nav/symbol-index/sqlite/file-data-persistence.ts"() {
|
|
2492
2492
|
"use strict";
|
|
2493
2493
|
init_symbol_content_index();
|
|
2494
2494
|
init_effective_content();
|
|
@@ -2497,9 +2497,9 @@ var init_file_data_persistence = __esm({
|
|
|
2497
2497
|
}
|
|
2498
2498
|
});
|
|
2499
2499
|
|
|
2500
|
-
// src/code-nav/symbol-index/sqlite/population.ts
|
|
2500
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/population.ts
|
|
2501
2501
|
var init_population = __esm({
|
|
2502
|
-
"src/code-nav/symbol-index/sqlite/population.ts"() {
|
|
2502
|
+
"../bridge/src/code-nav/symbol-index/sqlite/population.ts"() {
|
|
2503
2503
|
"use strict";
|
|
2504
2504
|
init_database();
|
|
2505
2505
|
init_parent_path();
|
|
@@ -2507,9 +2507,9 @@ var init_population = __esm({
|
|
|
2507
2507
|
}
|
|
2508
2508
|
});
|
|
2509
2509
|
|
|
2510
|
-
// src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts
|
|
2510
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts
|
|
2511
2511
|
var init_symbol_index_sqlite = __esm({
|
|
2512
|
-
"src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts"() {
|
|
2512
|
+
"../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts"() {
|
|
2513
2513
|
"use strict";
|
|
2514
2514
|
init_symbol_index_version();
|
|
2515
2515
|
init_parent_path();
|
|
@@ -2518,28 +2518,28 @@ var init_symbol_index_sqlite = __esm({
|
|
|
2518
2518
|
}
|
|
2519
2519
|
});
|
|
2520
2520
|
|
|
2521
|
-
// src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts
|
|
2521
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts
|
|
2522
2522
|
function withSymbolIndexSqliteLock(fn) {
|
|
2523
2523
|
return withCodeNavCacheSqliteWorkLock(fn);
|
|
2524
2524
|
}
|
|
2525
2525
|
var init_symbol_index_sqlite_lock = __esm({
|
|
2526
|
-
"src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts"() {
|
|
2526
|
+
"../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts"() {
|
|
2527
2527
|
"use strict";
|
|
2528
2528
|
init_code_nav_cache_sqlite_work_lock();
|
|
2529
2529
|
}
|
|
2530
2530
|
});
|
|
2531
2531
|
|
|
2532
|
-
// src/code-nav/symbol-index/query/tag-query-shared.ts
|
|
2532
|
+
// ../bridge/src/code-nav/symbol-index/query/tag-query-shared.ts
|
|
2533
2533
|
var TAG_SELECT;
|
|
2534
2534
|
var init_tag_query_shared = __esm({
|
|
2535
|
-
"src/code-nav/symbol-index/query/tag-query-shared.ts"() {
|
|
2535
|
+
"../bridge/src/code-nav/symbol-index/query/tag-query-shared.ts"() {
|
|
2536
2536
|
"use strict";
|
|
2537
2537
|
TAG_SELECT = `file_path, name, role, kind, start_line, start_column, end_line, end_column,
|
|
2538
2538
|
scope_start_line, scope_start_column, parent_scope_start_line, parent_scope_start_column, nav_target_path, scope_chain`;
|
|
2539
2539
|
}
|
|
2540
2540
|
});
|
|
2541
2541
|
|
|
2542
|
-
// src/code-nav/symbol-index/storage/file-content-load.ts
|
|
2542
|
+
// ../bridge/src/code-nav/symbol-index/storage/file-content-load.ts
|
|
2543
2543
|
function loadFileTags(db, ctx, filePath) {
|
|
2544
2544
|
const contentHash = getEffectiveContentHash(db, ctx, filePath);
|
|
2545
2545
|
if (contentHash == null) return [];
|
|
@@ -2563,16 +2563,16 @@ function loadFileImports(db, ctx, filePath) {
|
|
|
2563
2563
|
);
|
|
2564
2564
|
}
|
|
2565
2565
|
var init_file_content_load = __esm({
|
|
2566
|
-
"src/code-nav/symbol-index/storage/file-content-load.ts"() {
|
|
2566
|
+
"../bridge/src/code-nav/symbol-index/storage/file-content-load.ts"() {
|
|
2567
2567
|
"use strict";
|
|
2568
2568
|
init_tag_query_shared();
|
|
2569
2569
|
init_effective_content();
|
|
2570
2570
|
}
|
|
2571
2571
|
});
|
|
2572
2572
|
|
|
2573
|
-
// src/code-nav/symbol-index/storage/symbol-parent-file-map.ts
|
|
2573
|
+
// ../bridge/src/code-nav/symbol-index/storage/symbol-parent-file-map.ts
|
|
2574
2574
|
var init_symbol_parent_file_map = __esm({
|
|
2575
|
-
"src/code-nav/symbol-index/storage/symbol-parent-file-map.ts"() {
|
|
2575
|
+
"../bridge/src/code-nav/symbol-index/storage/symbol-parent-file-map.ts"() {
|
|
2576
2576
|
"use strict";
|
|
2577
2577
|
init_parent_file_map();
|
|
2578
2578
|
init_effective_content();
|
|
@@ -2580,7 +2580,7 @@ var init_symbol_parent_file_map = __esm({
|
|
|
2580
2580
|
}
|
|
2581
2581
|
});
|
|
2582
2582
|
|
|
2583
|
-
// src/code-nav/symbol-index/build/load-indexed-file-entry.ts
|
|
2583
|
+
// ../bridge/src/code-nav/symbol-index/build/load-indexed-file-entry.ts
|
|
2584
2584
|
function dbTagToSymbolTag(row) {
|
|
2585
2585
|
return {
|
|
2586
2586
|
name: row.name,
|
|
@@ -2621,13 +2621,13 @@ function loadIndexedFileEntry(db, ctx, relPath) {
|
|
|
2621
2621
|
};
|
|
2622
2622
|
}
|
|
2623
2623
|
var init_load_indexed_file_entry = __esm({
|
|
2624
|
-
"src/code-nav/symbol-index/build/load-indexed-file-entry.ts"() {
|
|
2624
|
+
"../bridge/src/code-nav/symbol-index/build/load-indexed-file-entry.ts"() {
|
|
2625
2625
|
"use strict";
|
|
2626
2626
|
init_symbol_parent_file_map();
|
|
2627
2627
|
}
|
|
2628
2628
|
});
|
|
2629
2629
|
|
|
2630
|
-
// src/code-nav/symbol-index/query/list-direct-import-targets.ts
|
|
2630
|
+
// ../bridge/src/code-nav/symbol-index/query/list-direct-import-targets.ts
|
|
2631
2631
|
function normalizeRelPath2(filePath) {
|
|
2632
2632
|
return filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
2633
2633
|
}
|
|
@@ -2649,7 +2649,7 @@ async function listDirectImportTargetsForFileAsync(parentPath, filePath) {
|
|
|
2649
2649
|
return withCodeNavCacheSqlite((db) => listDirectImportTargetsWithDb(db, resolved, relPath));
|
|
2650
2650
|
}
|
|
2651
2651
|
var init_list_direct_import_targets = __esm({
|
|
2652
|
-
"src/code-nav/symbol-index/query/list-direct-import-targets.ts"() {
|
|
2652
|
+
"../bridge/src/code-nav/symbol-index/query/list-direct-import-targets.ts"() {
|
|
2653
2653
|
"use strict";
|
|
2654
2654
|
init_normalize_resolved_path();
|
|
2655
2655
|
init_database();
|
|
@@ -2658,7 +2658,7 @@ var init_list_direct_import_targets = __esm({
|
|
|
2658
2658
|
}
|
|
2659
2659
|
});
|
|
2660
2660
|
|
|
2661
|
-
// src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts
|
|
2661
|
+
// ../bridge/src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts
|
|
2662
2662
|
function symbolIndexFileIsReadyWithDb(db, parentPath, filePath) {
|
|
2663
2663
|
const normalizedParent = normalizeResolvedPath(parentPath);
|
|
2664
2664
|
const normalizedFile = filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
@@ -2688,7 +2688,7 @@ async function loadSymbolIndexReadyFileSet(parentPath) {
|
|
|
2688
2688
|
return new Set(paths);
|
|
2689
2689
|
}
|
|
2690
2690
|
var init_symbol_index_file_ready = __esm({
|
|
2691
|
-
"src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts"() {
|
|
2691
|
+
"../bridge/src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts"() {
|
|
2692
2692
|
"use strict";
|
|
2693
2693
|
init_normalize_resolved_path();
|
|
2694
2694
|
init_database();
|
|
@@ -2697,7 +2697,7 @@ var init_symbol_index_file_ready = __esm({
|
|
|
2697
2697
|
}
|
|
2698
2698
|
});
|
|
2699
2699
|
|
|
2700
|
-
// src/code-nav/symbol-index/imports/star-reexport-names.ts
|
|
2700
|
+
// ../bridge/src/code-nav/symbol-index/imports/star-reexport-names.ts
|
|
2701
2701
|
function isModuleLevelDef(tag) {
|
|
2702
2702
|
return tag.role === "def" && tag.parentScopeStartLine == null && tag.parentScopeStartColumn == null;
|
|
2703
2703
|
}
|
|
@@ -2743,13 +2743,13 @@ function resolveExportableNames(filePath, entriesByPath, visited) {
|
|
|
2743
2743
|
}
|
|
2744
2744
|
var STAR_LOCAL_NAME;
|
|
2745
2745
|
var init_star_reexport_names = __esm({
|
|
2746
|
-
"src/code-nav/symbol-index/imports/star-reexport-names.ts"() {
|
|
2746
|
+
"../bridge/src/code-nav/symbol-index/imports/star-reexport-names.ts"() {
|
|
2747
2747
|
"use strict";
|
|
2748
2748
|
STAR_LOCAL_NAME = "*";
|
|
2749
2749
|
}
|
|
2750
2750
|
});
|
|
2751
2751
|
|
|
2752
|
-
// src/code-nav/symbol-index/imports/star-reexport-upstream.ts
|
|
2752
|
+
// ../bridge/src/code-nav/symbol-index/imports/star-reexport-upstream.ts
|
|
2753
2753
|
function collectUpstreamEntries(entry, resolveEntry) {
|
|
2754
2754
|
const entriesByPath = /* @__PURE__ */ new Map();
|
|
2755
2755
|
entriesByPath.set(entry.relPath, entry);
|
|
@@ -2770,12 +2770,12 @@ function collectUpstreamEntries(entry, resolveEntry) {
|
|
|
2770
2770
|
return [...entriesByPath.values()];
|
|
2771
2771
|
}
|
|
2772
2772
|
var init_star_reexport_upstream = __esm({
|
|
2773
|
-
"src/code-nav/symbol-index/imports/star-reexport-upstream.ts"() {
|
|
2773
|
+
"../bridge/src/code-nav/symbol-index/imports/star-reexport-upstream.ts"() {
|
|
2774
2774
|
"use strict";
|
|
2775
2775
|
}
|
|
2776
2776
|
});
|
|
2777
2777
|
|
|
2778
|
-
// src/code-nav/symbol-index/imports/expand-star-reexports.ts
|
|
2778
|
+
// ../bridge/src/code-nav/symbol-index/imports/expand-star-reexports.ts
|
|
2779
2779
|
function expandStarReexportForFile(entry, resolveEntry) {
|
|
2780
2780
|
const collected = collectUpstreamEntries(entry, resolveEntry);
|
|
2781
2781
|
return expandStarReexportBindings(collected).find((row) => row.relPath === entry.relPath) ?? entry;
|
|
@@ -2809,14 +2809,14 @@ function expandStarReexportBindings(collected) {
|
|
|
2809
2809
|
});
|
|
2810
2810
|
}
|
|
2811
2811
|
var init_expand_star_reexports = __esm({
|
|
2812
|
-
"src/code-nav/symbol-index/imports/expand-star-reexports.ts"() {
|
|
2812
|
+
"../bridge/src/code-nav/symbol-index/imports/expand-star-reexports.ts"() {
|
|
2813
2813
|
"use strict";
|
|
2814
2814
|
init_star_reexport_names();
|
|
2815
2815
|
init_star_reexport_upstream();
|
|
2816
2816
|
}
|
|
2817
2817
|
});
|
|
2818
2818
|
|
|
2819
|
-
// src/code-nav/symbol-index/persistence/persist-single-file.ts
|
|
2819
|
+
// ../bridge/src/code-nav/symbol-index/persistence/persist-single-file.ts
|
|
2820
2820
|
async function persistSymbolIndexFileAsync(resolved, relPath, source, tags, imports) {
|
|
2821
2821
|
await withCodeNavCacheSqlite(async (db) => {
|
|
2822
2822
|
runCodeNavCacheWriteTransaction(db, () => {
|
|
@@ -2838,7 +2838,7 @@ async function removeSymbolIndexFileAsync(resolved, relPath) {
|
|
|
2838
2838
|
});
|
|
2839
2839
|
}
|
|
2840
2840
|
var init_persist_single_file = __esm({
|
|
2841
|
-
"src/code-nav/symbol-index/persistence/persist-single-file.ts"() {
|
|
2841
|
+
"../bridge/src/code-nav/symbol-index/persistence/persist-single-file.ts"() {
|
|
2842
2842
|
"use strict";
|
|
2843
2843
|
init_database();
|
|
2844
2844
|
init_code_nav_cache_sqlite_transaction();
|
|
@@ -2846,7 +2846,7 @@ var init_persist_single_file = __esm({
|
|
|
2846
2846
|
}
|
|
2847
2847
|
});
|
|
2848
2848
|
|
|
2849
|
-
// src/code-nav/resolve-module-import-path.ts
|
|
2849
|
+
// ../bridge/src/code-nav/resolve-module-import-path.ts
|
|
2850
2850
|
import path14 from "node:path";
|
|
2851
2851
|
function normalizeWorkspacePath(filePath) {
|
|
2852
2852
|
return filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
@@ -2983,7 +2983,7 @@ function isModulePathSpecifier(name) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
var TS_JS_EXTENSIONS, PYTHON_EXTENSIONS, C_CPP_EXTENSIONS;
|
|
2985
2985
|
var init_resolve_module_import_path = __esm({
|
|
2986
|
-
"src/code-nav/resolve-module-import-path.ts"() {
|
|
2986
|
+
"../bridge/src/code-nav/resolve-module-import-path.ts"() {
|
|
2987
2987
|
"use strict";
|
|
2988
2988
|
init_language_registry();
|
|
2989
2989
|
TS_JS_EXTENSIONS = ["", ".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", "/index.ts", "/index.tsx", "/index.js", "/index.jsx"];
|
|
@@ -2992,7 +2992,7 @@ var init_resolve_module_import_path = __esm({
|
|
|
2992
2992
|
}
|
|
2993
2993
|
});
|
|
2994
2994
|
|
|
2995
|
-
// src/code-nav/enrich-tag-module-paths.ts
|
|
2995
|
+
// ../bridge/src/code-nav/enrich-tag-module-paths.ts
|
|
2996
2996
|
function enrichTagsWithModulePaths(tags, filePath, workspaceFiles) {
|
|
2997
2997
|
return tags.map((tag) => {
|
|
2998
2998
|
if (tag.kind !== "module" || tag.role !== "ref" || !isModulePathSpecifier(tag.name)) {
|
|
@@ -3004,13 +3004,13 @@ function enrichTagsWithModulePaths(tags, filePath, workspaceFiles) {
|
|
|
3004
3004
|
});
|
|
3005
3005
|
}
|
|
3006
3006
|
var init_enrich_tag_module_paths = __esm({
|
|
3007
|
-
"src/code-nav/enrich-tag-module-paths.ts"() {
|
|
3007
|
+
"../bridge/src/code-nav/enrich-tag-module-paths.ts"() {
|
|
3008
3008
|
"use strict";
|
|
3009
3009
|
init_resolve_module_import_path();
|
|
3010
3010
|
}
|
|
3011
3011
|
});
|
|
3012
3012
|
|
|
3013
|
-
// src/code-nav/enrich-tag-module-paths-async.ts
|
|
3013
|
+
// ../bridge/src/code-nav/enrich-tag-module-paths-async.ts
|
|
3014
3014
|
async function enrichTagsWithModulePathsAsync(tags, filePath, workspaceFiles, state) {
|
|
3015
3015
|
const chunkSize = 64;
|
|
3016
3016
|
const enriched = [];
|
|
@@ -3022,14 +3022,14 @@ async function enrichTagsWithModulePathsAsync(tags, filePath, workspaceFiles, st
|
|
|
3022
3022
|
return enriched;
|
|
3023
3023
|
}
|
|
3024
3024
|
var init_enrich_tag_module_paths_async = __esm({
|
|
3025
|
-
"src/code-nav/enrich-tag-module-paths-async.ts"() {
|
|
3025
|
+
"../bridge/src/code-nav/enrich-tag-module-paths-async.ts"() {
|
|
3026
3026
|
"use strict";
|
|
3027
3027
|
init_yield_during_work();
|
|
3028
3028
|
init_enrich_tag_module_paths();
|
|
3029
3029
|
}
|
|
3030
3030
|
});
|
|
3031
3031
|
|
|
3032
|
-
// src/code-nav/augment-function-type-param-references.ts
|
|
3032
|
+
// ../bridge/src/code-nav/augment-function-type-param-references.ts
|
|
3033
3033
|
function tagDedupeKey(tag) {
|
|
3034
3034
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3035
3035
|
}
|
|
@@ -3108,14 +3108,14 @@ async function augmentFunctionTypeParamReferenceTags(tags, nameNodes, root) {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
var PARAM_NODE_TYPES;
|
|
3110
3110
|
var init_augment_function_type_param_references = __esm({
|
|
3111
|
-
"src/code-nav/augment-function-type-param-references.ts"() {
|
|
3111
|
+
"../bridge/src/code-nav/augment-function-type-param-references.ts"() {
|
|
3112
3112
|
"use strict";
|
|
3113
3113
|
init_yield_during_work();
|
|
3114
3114
|
PARAM_NODE_TYPES = /* @__PURE__ */ new Set(["required_parameter", "optional_parameter"]);
|
|
3115
3115
|
}
|
|
3116
3116
|
});
|
|
3117
3117
|
|
|
3118
|
-
// src/code-nav/augment-type-reference-tags.ts
|
|
3118
|
+
// ../bridge/src/code-nav/augment-type-reference-tags.ts
|
|
3119
3119
|
function tagDedupeKey2(tag) {
|
|
3120
3120
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3121
3121
|
}
|
|
@@ -3159,7 +3159,7 @@ async function augmentTypeReferenceTags(tags, nameNodes, root) {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
var TYPE_DEFINITION_CONTAINER_TYPES;
|
|
3161
3161
|
var init_augment_type_reference_tags = __esm({
|
|
3162
|
-
"src/code-nav/augment-type-reference-tags.ts"() {
|
|
3162
|
+
"../bridge/src/code-nav/augment-type-reference-tags.ts"() {
|
|
3163
3163
|
"use strict";
|
|
3164
3164
|
init_yield_during_work();
|
|
3165
3165
|
TYPE_DEFINITION_CONTAINER_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -3182,18 +3182,18 @@ var init_augment_type_reference_tags = __esm({
|
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
3184
|
|
|
3185
|
-
// src/code-nav/scope-chain.ts
|
|
3185
|
+
// ../bridge/src/code-nav/scope-chain.ts
|
|
3186
3186
|
function serializeScopeChain(chain2) {
|
|
3187
3187
|
if (chain2.length === 0) return null;
|
|
3188
3188
|
return chain2.map((anchor) => `${anchor.startLine}:${anchor.startColumn}`).join(",");
|
|
3189
3189
|
}
|
|
3190
3190
|
var init_scope_chain = __esm({
|
|
3191
|
-
"src/code-nav/scope-chain.ts"() {
|
|
3191
|
+
"../bridge/src/code-nav/scope-chain.ts"() {
|
|
3192
3192
|
"use strict";
|
|
3193
3193
|
}
|
|
3194
3194
|
});
|
|
3195
3195
|
|
|
3196
|
-
// src/code-nav/enrich-tag-scope.ts
|
|
3196
|
+
// ../bridge/src/code-nav/enrich-tag-scope.ts
|
|
3197
3197
|
function scopeAnchorFromNode(node) {
|
|
3198
3198
|
const nameNode = node.childForFieldName("name");
|
|
3199
3199
|
if (nameNode) {
|
|
@@ -3255,7 +3255,7 @@ async function enrichTagsWithEnclosingScope(tags, nameNodes) {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
var SCOPE_CONTAINER_TYPES;
|
|
3257
3257
|
var init_enrich_tag_scope = __esm({
|
|
3258
|
-
"src/code-nav/enrich-tag-scope.ts"() {
|
|
3258
|
+
"../bridge/src/code-nav/enrich-tag-scope.ts"() {
|
|
3259
3259
|
"use strict";
|
|
3260
3260
|
init_scope_chain();
|
|
3261
3261
|
init_yield_during_work();
|
|
@@ -3281,10 +3281,10 @@ var init_enrich_tag_scope = __esm({
|
|
|
3281
3281
|
}
|
|
3282
3282
|
});
|
|
3283
3283
|
|
|
3284
|
-
// src/code-nav/member-access/c.ts
|
|
3284
|
+
// ../bridge/src/code-nav/member-access/c.ts
|
|
3285
3285
|
var C_MEMBER_ACCESS_RULES;
|
|
3286
3286
|
var init_c = __esm({
|
|
3287
|
-
"src/code-nav/member-access/c.ts"() {
|
|
3287
|
+
"../bridge/src/code-nav/member-access/c.ts"() {
|
|
3288
3288
|
"use strict";
|
|
3289
3289
|
C_MEMBER_ACCESS_RULES = [
|
|
3290
3290
|
{ parentType: "field_expression", objectField: "argument", propertyField: "field", tagKind: "member" }
|
|
@@ -3292,10 +3292,10 @@ var init_c = __esm({
|
|
|
3292
3292
|
}
|
|
3293
3293
|
});
|
|
3294
3294
|
|
|
3295
|
-
// src/code-nav/member-access/cpp.ts
|
|
3295
|
+
// ../bridge/src/code-nav/member-access/cpp.ts
|
|
3296
3296
|
var CPP_MEMBER_ACCESS_RULES;
|
|
3297
3297
|
var init_cpp = __esm({
|
|
3298
|
-
"src/code-nav/member-access/cpp.ts"() {
|
|
3298
|
+
"../bridge/src/code-nav/member-access/cpp.ts"() {
|
|
3299
3299
|
"use strict";
|
|
3300
3300
|
init_c();
|
|
3301
3301
|
CPP_MEMBER_ACCESS_RULES = [
|
|
@@ -3305,10 +3305,10 @@ var init_cpp = __esm({
|
|
|
3305
3305
|
}
|
|
3306
3306
|
});
|
|
3307
3307
|
|
|
3308
|
-
// src/code-nav/member-access/go.ts
|
|
3308
|
+
// ../bridge/src/code-nav/member-access/go.ts
|
|
3309
3309
|
var GO_MEMBER_ACCESS_RULES;
|
|
3310
3310
|
var init_go = __esm({
|
|
3311
|
-
"src/code-nav/member-access/go.ts"() {
|
|
3311
|
+
"../bridge/src/code-nav/member-access/go.ts"() {
|
|
3312
3312
|
"use strict";
|
|
3313
3313
|
GO_MEMBER_ACCESS_RULES = [
|
|
3314
3314
|
{ parentType: "selector_expression", objectField: "operand", propertyField: "field", tagKind: "member" }
|
|
@@ -3316,10 +3316,10 @@ var init_go = __esm({
|
|
|
3316
3316
|
}
|
|
3317
3317
|
});
|
|
3318
3318
|
|
|
3319
|
-
// src/code-nav/member-access/javascript.ts
|
|
3319
|
+
// ../bridge/src/code-nav/member-access/javascript.ts
|
|
3320
3320
|
var ECMA_SCRIPT_MEMBER_ACCESS_RULES, JAVASCRIPT_MEMBER_ACCESS_RULES;
|
|
3321
3321
|
var init_javascript = __esm({
|
|
3322
|
-
"src/code-nav/member-access/javascript.ts"() {
|
|
3322
|
+
"../bridge/src/code-nav/member-access/javascript.ts"() {
|
|
3323
3323
|
"use strict";
|
|
3324
3324
|
ECMA_SCRIPT_MEMBER_ACCESS_RULES = [
|
|
3325
3325
|
{ parentType: "member_expression", objectField: "object", propertyField: "property", tagKind: "member" }
|
|
@@ -3328,10 +3328,10 @@ var init_javascript = __esm({
|
|
|
3328
3328
|
}
|
|
3329
3329
|
});
|
|
3330
3330
|
|
|
3331
|
-
// src/code-nav/member-access/java.ts
|
|
3331
|
+
// ../bridge/src/code-nav/member-access/java.ts
|
|
3332
3332
|
var JAVA_MEMBER_ACCESS_RULES;
|
|
3333
3333
|
var init_java = __esm({
|
|
3334
|
-
"src/code-nav/member-access/java.ts"() {
|
|
3334
|
+
"../bridge/src/code-nav/member-access/java.ts"() {
|
|
3335
3335
|
"use strict";
|
|
3336
3336
|
JAVA_MEMBER_ACCESS_RULES = [
|
|
3337
3337
|
{ parentType: "field_access", objectField: "object", propertyField: "field", tagKind: "member" },
|
|
@@ -3340,10 +3340,10 @@ var init_java = __esm({
|
|
|
3340
3340
|
}
|
|
3341
3341
|
});
|
|
3342
3342
|
|
|
3343
|
-
// src/code-nav/member-access/python.ts
|
|
3343
|
+
// ../bridge/src/code-nav/member-access/python.ts
|
|
3344
3344
|
var PYTHON_MEMBER_ACCESS_RULES;
|
|
3345
3345
|
var init_python = __esm({
|
|
3346
|
-
"src/code-nav/member-access/python.ts"() {
|
|
3346
|
+
"../bridge/src/code-nav/member-access/python.ts"() {
|
|
3347
3347
|
"use strict";
|
|
3348
3348
|
PYTHON_MEMBER_ACCESS_RULES = [
|
|
3349
3349
|
{ parentType: "attribute", objectField: "object", propertyField: "attribute", tagKind: "member" }
|
|
@@ -3351,10 +3351,10 @@ var init_python = __esm({
|
|
|
3351
3351
|
}
|
|
3352
3352
|
});
|
|
3353
3353
|
|
|
3354
|
-
// src/code-nav/member-access/ruby.ts
|
|
3354
|
+
// ../bridge/src/code-nav/member-access/ruby.ts
|
|
3355
3355
|
var RUBY_MEMBER_ACCESS_RULES;
|
|
3356
3356
|
var init_ruby = __esm({
|
|
3357
|
-
"src/code-nav/member-access/ruby.ts"() {
|
|
3357
|
+
"../bridge/src/code-nav/member-access/ruby.ts"() {
|
|
3358
3358
|
"use strict";
|
|
3359
3359
|
RUBY_MEMBER_ACCESS_RULES = [
|
|
3360
3360
|
{ parentType: "call", objectField: "receiver", propertyField: "method", tagKind: "call" }
|
|
@@ -3362,10 +3362,10 @@ var init_ruby = __esm({
|
|
|
3362
3362
|
}
|
|
3363
3363
|
});
|
|
3364
3364
|
|
|
3365
|
-
// src/code-nav/member-access/rust.ts
|
|
3365
|
+
// ../bridge/src/code-nav/member-access/rust.ts
|
|
3366
3366
|
var RUST_MEMBER_ACCESS_RULES;
|
|
3367
3367
|
var init_rust = __esm({
|
|
3368
|
-
"src/code-nav/member-access/rust.ts"() {
|
|
3368
|
+
"../bridge/src/code-nav/member-access/rust.ts"() {
|
|
3369
3369
|
"use strict";
|
|
3370
3370
|
RUST_MEMBER_ACCESS_RULES = [
|
|
3371
3371
|
{ parentType: "field_expression", objectField: "value", propertyField: "field", tagKind: "member" },
|
|
@@ -3374,30 +3374,30 @@ var init_rust = __esm({
|
|
|
3374
3374
|
}
|
|
3375
3375
|
});
|
|
3376
3376
|
|
|
3377
|
-
// src/code-nav/member-access/tsx.ts
|
|
3377
|
+
// ../bridge/src/code-nav/member-access/tsx.ts
|
|
3378
3378
|
var init_tsx = __esm({
|
|
3379
|
-
"src/code-nav/member-access/tsx.ts"() {
|
|
3379
|
+
"../bridge/src/code-nav/member-access/tsx.ts"() {
|
|
3380
3380
|
"use strict";
|
|
3381
3381
|
init_javascript();
|
|
3382
3382
|
}
|
|
3383
3383
|
});
|
|
3384
3384
|
|
|
3385
|
-
// src/code-nav/member-access/typescript.ts
|
|
3385
|
+
// ../bridge/src/code-nav/member-access/typescript.ts
|
|
3386
3386
|
var init_typescript = __esm({
|
|
3387
|
-
"src/code-nav/member-access/typescript.ts"() {
|
|
3387
|
+
"../bridge/src/code-nav/member-access/typescript.ts"() {
|
|
3388
3388
|
"use strict";
|
|
3389
3389
|
init_javascript();
|
|
3390
3390
|
}
|
|
3391
3391
|
});
|
|
3392
3392
|
|
|
3393
|
-
// src/code-nav/member-access/registry.ts
|
|
3393
|
+
// ../bridge/src/code-nav/member-access/registry.ts
|
|
3394
3394
|
function memberAccessRulesForLanguageKey(languageKey) {
|
|
3395
3395
|
if (!languageKey) return [];
|
|
3396
3396
|
return MEMBER_ACCESS_RULES_BY_LANGUAGE_KEY[languageKey] ?? [];
|
|
3397
3397
|
}
|
|
3398
3398
|
var MEMBER_ACCESS_RULES_BY_LANGUAGE_KEY;
|
|
3399
3399
|
var init_registry = __esm({
|
|
3400
|
-
"src/code-nav/member-access/registry.ts"() {
|
|
3400
|
+
"../bridge/src/code-nav/member-access/registry.ts"() {
|
|
3401
3401
|
"use strict";
|
|
3402
3402
|
init_c();
|
|
3403
3403
|
init_cpp();
|
|
@@ -3424,10 +3424,10 @@ var init_registry = __esm({
|
|
|
3424
3424
|
}
|
|
3425
3425
|
});
|
|
3426
3426
|
|
|
3427
|
-
// src/code-nav/member-access/types.ts
|
|
3427
|
+
// ../bridge/src/code-nav/member-access/types.ts
|
|
3428
3428
|
var MEMBER_NAME_NODE_TYPES;
|
|
3429
3429
|
var init_types = __esm({
|
|
3430
|
-
"src/code-nav/member-access/types.ts"() {
|
|
3430
|
+
"../bridge/src/code-nav/member-access/types.ts"() {
|
|
3431
3431
|
"use strict";
|
|
3432
3432
|
MEMBER_NAME_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
3433
3433
|
"identifier",
|
|
@@ -3440,7 +3440,7 @@ var init_types = __esm({
|
|
|
3440
3440
|
}
|
|
3441
3441
|
});
|
|
3442
3442
|
|
|
3443
|
-
// src/code-nav/member-access/shared.ts
|
|
3443
|
+
// ../bridge/src/code-nav/member-access/shared.ts
|
|
3444
3444
|
function nodesMatch(a, b) {
|
|
3445
3445
|
return a.startPosition.row === b.startPosition.row && a.startPosition.column === b.startPosition.column && a.text === b.text;
|
|
3446
3446
|
}
|
|
@@ -3465,13 +3465,13 @@ function isMemberAccessPropertyNameNode(nameNode, rules) {
|
|
|
3465
3465
|
return false;
|
|
3466
3466
|
}
|
|
3467
3467
|
var init_shared = __esm({
|
|
3468
|
-
"src/code-nav/member-access/shared.ts"() {
|
|
3468
|
+
"../bridge/src/code-nav/member-access/shared.ts"() {
|
|
3469
3469
|
"use strict";
|
|
3470
3470
|
init_types();
|
|
3471
3471
|
}
|
|
3472
3472
|
});
|
|
3473
3473
|
|
|
3474
|
-
// src/code-nav/member-access/index.ts
|
|
3474
|
+
// ../bridge/src/code-nav/member-access/index.ts
|
|
3475
3475
|
function tagDedupeKey3(tag) {
|
|
3476
3476
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3477
3477
|
}
|
|
@@ -3534,7 +3534,7 @@ async function augmentMemberReceiverTags(tags, nameNodes, root, languageKey) {
|
|
|
3534
3534
|
return out;
|
|
3535
3535
|
}
|
|
3536
3536
|
var init_member_access = __esm({
|
|
3537
|
-
"src/code-nav/member-access/index.ts"() {
|
|
3537
|
+
"../bridge/src/code-nav/member-access/index.ts"() {
|
|
3538
3538
|
"use strict";
|
|
3539
3539
|
init_yield_during_work();
|
|
3540
3540
|
init_registry();
|
|
@@ -3542,7 +3542,7 @@ var init_member_access = __esm({
|
|
|
3542
3542
|
}
|
|
3543
3543
|
});
|
|
3544
3544
|
|
|
3545
|
-
// src/code-nav/tree-sitter-assets-dir.ts
|
|
3545
|
+
// ../bridge/src/code-nav/tree-sitter-assets-dir.ts
|
|
3546
3546
|
import { existsSync as existsSync2 } from "node:fs";
|
|
3547
3547
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
3548
3548
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
@@ -3570,12 +3570,12 @@ function getTreeSitterAssetsDir() {
|
|
|
3570
3570
|
);
|
|
3571
3571
|
}
|
|
3572
3572
|
var init_tree_sitter_assets_dir = __esm({
|
|
3573
|
-
"src/code-nav/tree-sitter-assets-dir.ts"() {
|
|
3573
|
+
"../bridge/src/code-nav/tree-sitter-assets-dir.ts"() {
|
|
3574
3574
|
"use strict";
|
|
3575
3575
|
}
|
|
3576
3576
|
});
|
|
3577
3577
|
|
|
3578
|
-
// src/code-nav/parser/tree-sitter-runtime.ts
|
|
3578
|
+
// ../bridge/src/code-nav/parser/tree-sitter-runtime.ts
|
|
3579
3579
|
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
3580
3580
|
import { dirname as dirname3, join as join3 } from "node:path";
|
|
3581
3581
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -3646,7 +3646,7 @@ async function loadLanguage(languageKey) {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
var initPromise2, loadedByKey, failedLanguageKeys, runtimeChain, CODE_NAV_QUERIES_ROOT;
|
|
3648
3648
|
var init_tree_sitter_runtime = __esm({
|
|
3649
|
-
"src/code-nav/parser/tree-sitter-runtime.ts"() {
|
|
3649
|
+
"../bridge/src/code-nav/parser/tree-sitter-runtime.ts"() {
|
|
3650
3650
|
"use strict";
|
|
3651
3651
|
init_tree_sitter_assets_dir();
|
|
3652
3652
|
init_language_registry();
|
|
@@ -3658,7 +3658,7 @@ var init_tree_sitter_runtime = __esm({
|
|
|
3658
3658
|
}
|
|
3659
3659
|
});
|
|
3660
3660
|
|
|
3661
|
-
// src/code-nav/parser/parse-source-root.ts
|
|
3661
|
+
// ../bridge/src/code-nav/parser/parse-source-root.ts
|
|
3662
3662
|
import { Parser as Parser2 } from "web-tree-sitter";
|
|
3663
3663
|
async function parseSourceRoot(filePath, source) {
|
|
3664
3664
|
const languageKey = getLanguageKeyForFilePath(filePath);
|
|
@@ -3699,7 +3699,7 @@ async function parseSourceRoot(filePath, source) {
|
|
|
3699
3699
|
});
|
|
3700
3700
|
}
|
|
3701
3701
|
var init_parse_source_root = __esm({
|
|
3702
|
-
"src/code-nav/parser/parse-source-root.ts"() {
|
|
3702
|
+
"../bridge/src/code-nav/parser/parse-source-root.ts"() {
|
|
3703
3703
|
"use strict";
|
|
3704
3704
|
init_in_flight();
|
|
3705
3705
|
init_deferred_indexing();
|
|
@@ -3708,7 +3708,7 @@ var init_parse_source_root = __esm({
|
|
|
3708
3708
|
}
|
|
3709
3709
|
});
|
|
3710
3710
|
|
|
3711
|
-
// src/code-nav/parser/run-tags-query.ts
|
|
3711
|
+
// ../bridge/src/code-nav/parser/run-tags-query.ts
|
|
3712
3712
|
async function runTagsQuery(loaded, root) {
|
|
3713
3713
|
await yieldForBridgeInteractivePriority();
|
|
3714
3714
|
assertBackgroundIndexingAllowed();
|
|
@@ -3718,13 +3718,13 @@ async function runTagsQuery(loaded, root) {
|
|
|
3718
3718
|
return matches;
|
|
3719
3719
|
}
|
|
3720
3720
|
var init_run_tags_query = __esm({
|
|
3721
|
-
"src/code-nav/parser/run-tags-query.ts"() {
|
|
3721
|
+
"../bridge/src/code-nav/parser/run-tags-query.ts"() {
|
|
3722
3722
|
"use strict";
|
|
3723
3723
|
init_in_flight();
|
|
3724
3724
|
}
|
|
3725
3725
|
});
|
|
3726
3726
|
|
|
3727
|
-
// src/code-nav/parser/tags-from-matches.ts
|
|
3727
|
+
// ../bridge/src/code-nav/parser/tags-from-matches.ts
|
|
3728
3728
|
function parseCaptureRole(captureName) {
|
|
3729
3729
|
if (captureName === "name") return null;
|
|
3730
3730
|
const dot = captureName.indexOf(".");
|
|
@@ -3776,12 +3776,12 @@ function tagsFromMatches(matches) {
|
|
|
3776
3776
|
return { tags, nameNodes };
|
|
3777
3777
|
}
|
|
3778
3778
|
var init_tags_from_matches = __esm({
|
|
3779
|
-
"src/code-nav/parser/tags-from-matches.ts"() {
|
|
3779
|
+
"../bridge/src/code-nav/parser/tags-from-matches.ts"() {
|
|
3780
3780
|
"use strict";
|
|
3781
3781
|
}
|
|
3782
3782
|
});
|
|
3783
3783
|
|
|
3784
|
-
// src/code-nav/parser/tags-from-matches-async.ts
|
|
3784
|
+
// ../bridge/src/code-nav/parser/tags-from-matches-async.ts
|
|
3785
3785
|
function tagDedupeKey5(tag) {
|
|
3786
3786
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3787
3787
|
}
|
|
@@ -3803,14 +3803,14 @@ async function tagsFromMatchesAsync(matches, state) {
|
|
|
3803
3803
|
return { tags, nameNodes };
|
|
3804
3804
|
}
|
|
3805
3805
|
var init_tags_from_matches_async = __esm({
|
|
3806
|
-
"src/code-nav/parser/tags-from-matches-async.ts"() {
|
|
3806
|
+
"../bridge/src/code-nav/parser/tags-from-matches-async.ts"() {
|
|
3807
3807
|
"use strict";
|
|
3808
3808
|
init_yield_during_work();
|
|
3809
3809
|
init_tags_from_matches();
|
|
3810
3810
|
}
|
|
3811
3811
|
});
|
|
3812
3812
|
|
|
3813
|
-
// src/code-nav/parser/extract-tags.ts
|
|
3813
|
+
// ../bridge/src/code-nav/parser/extract-tags.ts
|
|
3814
3814
|
async function extractTagsFromSource(filePath, source) {
|
|
3815
3815
|
const languageKey = getLanguageKeyForFilePath(filePath);
|
|
3816
3816
|
await yieldForBridgeInteractivePriority();
|
|
@@ -3837,7 +3837,7 @@ async function extractTagsFromSource(filePath, source) {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
}
|
|
3839
3839
|
var init_extract_tags = __esm({
|
|
3840
|
-
"src/code-nav/parser/extract-tags.ts"() {
|
|
3840
|
+
"../bridge/src/code-nav/parser/extract-tags.ts"() {
|
|
3841
3841
|
"use strict";
|
|
3842
3842
|
init_language_registry();
|
|
3843
3843
|
init_augment_function_type_param_references();
|
|
@@ -3853,16 +3853,16 @@ var init_extract_tags = __esm({
|
|
|
3853
3853
|
}
|
|
3854
3854
|
});
|
|
3855
3855
|
|
|
3856
|
-
// src/code-nav/parser-runtime.ts
|
|
3856
|
+
// ../bridge/src/code-nav/parser-runtime.ts
|
|
3857
3857
|
var init_parser_runtime = __esm({
|
|
3858
|
-
"src/code-nav/parser-runtime.ts"() {
|
|
3858
|
+
"../bridge/src/code-nav/parser-runtime.ts"() {
|
|
3859
3859
|
"use strict";
|
|
3860
3860
|
init_extract_tags();
|
|
3861
3861
|
init_parse_source_root();
|
|
3862
3862
|
}
|
|
3863
3863
|
});
|
|
3864
3864
|
|
|
3865
|
-
// src/code-nav/symbol-index/imports/shared.ts
|
|
3865
|
+
// ../bridge/src/code-nav/symbol-index/imports/shared.ts
|
|
3866
3866
|
function pushBinding(out, filePath, workspaceFiles, moduleSpecifier, localName, sourceName, importKind, nameNode) {
|
|
3867
3867
|
if (!localName) return;
|
|
3868
3868
|
out.push({
|
|
@@ -3887,13 +3887,13 @@ function stringLiteralText(node) {
|
|
|
3887
3887
|
return stripQuotes(fragment?.text ?? node.text);
|
|
3888
3888
|
}
|
|
3889
3889
|
var init_shared2 = __esm({
|
|
3890
|
-
"src/code-nav/symbol-index/imports/shared.ts"() {
|
|
3890
|
+
"../bridge/src/code-nav/symbol-index/imports/shared.ts"() {
|
|
3891
3891
|
"use strict";
|
|
3892
3892
|
init_resolve_module_import_path();
|
|
3893
3893
|
}
|
|
3894
3894
|
});
|
|
3895
3895
|
|
|
3896
|
-
// src/code-nav/symbol-index/imports/c.ts
|
|
3896
|
+
// ../bridge/src/code-nav/symbol-index/imports/c.ts
|
|
3897
3897
|
function extractCIncludeBindings(root, filePath, workspaceFiles) {
|
|
3898
3898
|
const out = [];
|
|
3899
3899
|
for (const node of root.descendantsOfType("preproc_include")) {
|
|
@@ -3906,24 +3906,24 @@ function extractCIncludeBindings(root, filePath, workspaceFiles) {
|
|
|
3906
3906
|
return out;
|
|
3907
3907
|
}
|
|
3908
3908
|
var init_c2 = __esm({
|
|
3909
|
-
"src/code-nav/symbol-index/imports/c.ts"() {
|
|
3909
|
+
"../bridge/src/code-nav/symbol-index/imports/c.ts"() {
|
|
3910
3910
|
"use strict";
|
|
3911
3911
|
init_shared2();
|
|
3912
3912
|
}
|
|
3913
3913
|
});
|
|
3914
3914
|
|
|
3915
|
-
// src/code-nav/symbol-index/imports/cpp.ts
|
|
3915
|
+
// ../bridge/src/code-nav/symbol-index/imports/cpp.ts
|
|
3916
3916
|
function extractCppImportBindings(root, filePath, workspaceFiles) {
|
|
3917
3917
|
return extractCIncludeBindings(root, filePath, workspaceFiles);
|
|
3918
3918
|
}
|
|
3919
3919
|
var init_cpp2 = __esm({
|
|
3920
|
-
"src/code-nav/symbol-index/imports/cpp.ts"() {
|
|
3920
|
+
"../bridge/src/code-nav/symbol-index/imports/cpp.ts"() {
|
|
3921
3921
|
"use strict";
|
|
3922
3922
|
init_c2();
|
|
3923
3923
|
}
|
|
3924
3924
|
});
|
|
3925
3925
|
|
|
3926
|
-
// src/code-nav/symbol-index/imports/ecma-script-imports.ts
|
|
3926
|
+
// ../bridge/src/code-nav/symbol-index/imports/ecma-script-imports.ts
|
|
3927
3927
|
function importKindForSpecifier(specifier, statementKind) {
|
|
3928
3928
|
if (specifier.children.some((child) => child.type === "type")) return "type";
|
|
3929
3929
|
return statementKind;
|
|
@@ -3984,13 +3984,13 @@ function extractEcmaScriptImportBindings(root, filePath, workspaceFiles) {
|
|
|
3984
3984
|
return out;
|
|
3985
3985
|
}
|
|
3986
3986
|
var init_ecma_script_imports = __esm({
|
|
3987
|
-
"src/code-nav/symbol-index/imports/ecma-script-imports.ts"() {
|
|
3987
|
+
"../bridge/src/code-nav/symbol-index/imports/ecma-script-imports.ts"() {
|
|
3988
3988
|
"use strict";
|
|
3989
3989
|
init_shared2();
|
|
3990
3990
|
}
|
|
3991
3991
|
});
|
|
3992
3992
|
|
|
3993
|
-
// src/code-nav/symbol-index/imports/ecma-script-exports.ts
|
|
3993
|
+
// ../bridge/src/code-nav/symbol-index/imports/ecma-script-exports.ts
|
|
3994
3994
|
function exportKindForSpecifier(specifier, statementKind) {
|
|
3995
3995
|
if (specifier.children.some((child) => child.type === "type")) return "type";
|
|
3996
3996
|
return statementKind;
|
|
@@ -4041,20 +4041,20 @@ function extractEcmaScriptReexportBindings(root, filePath, workspaceFiles) {
|
|
|
4041
4041
|
return out;
|
|
4042
4042
|
}
|
|
4043
4043
|
var init_ecma_script_exports = __esm({
|
|
4044
|
-
"src/code-nav/symbol-index/imports/ecma-script-exports.ts"() {
|
|
4044
|
+
"../bridge/src/code-nav/symbol-index/imports/ecma-script-exports.ts"() {
|
|
4045
4045
|
"use strict";
|
|
4046
4046
|
init_shared2();
|
|
4047
4047
|
}
|
|
4048
4048
|
});
|
|
4049
4049
|
|
|
4050
|
-
// src/code-nav/symbol-index/imports/ecma-script.ts
|
|
4050
|
+
// ../bridge/src/code-nav/symbol-index/imports/ecma-script.ts
|
|
4051
4051
|
function extractEcmaScriptBindings(root, filePath, workspaceFiles) {
|
|
4052
4052
|
const imports = extractEcmaScriptImportBindings(root, filePath, workspaceFiles);
|
|
4053
4053
|
const reexports = extractEcmaScriptReexportBindings(root, filePath, workspaceFiles);
|
|
4054
4054
|
return [...imports, ...reexports];
|
|
4055
4055
|
}
|
|
4056
4056
|
var init_ecma_script = __esm({
|
|
4057
|
-
"src/code-nav/symbol-index/imports/ecma-script.ts"() {
|
|
4057
|
+
"../bridge/src/code-nav/symbol-index/imports/ecma-script.ts"() {
|
|
4058
4058
|
"use strict";
|
|
4059
4059
|
init_ecma_script_imports();
|
|
4060
4060
|
init_ecma_script_exports();
|
|
@@ -4062,7 +4062,7 @@ var init_ecma_script = __esm({
|
|
|
4062
4062
|
}
|
|
4063
4063
|
});
|
|
4064
4064
|
|
|
4065
|
-
// src/code-nav/symbol-index/imports/go.ts
|
|
4065
|
+
// ../bridge/src/code-nav/symbol-index/imports/go.ts
|
|
4066
4066
|
function collectImportSpec(out, filePath, workspaceFiles, spec) {
|
|
4067
4067
|
const pathNode = spec.childForFieldName("path");
|
|
4068
4068
|
if (!pathNode) return;
|
|
@@ -4085,13 +4085,13 @@ function extractGoImportBindings(root, filePath, workspaceFiles) {
|
|
|
4085
4085
|
return out;
|
|
4086
4086
|
}
|
|
4087
4087
|
var init_go2 = __esm({
|
|
4088
|
-
"src/code-nav/symbol-index/imports/go.ts"() {
|
|
4088
|
+
"../bridge/src/code-nav/symbol-index/imports/go.ts"() {
|
|
4089
4089
|
"use strict";
|
|
4090
4090
|
init_shared2();
|
|
4091
4091
|
}
|
|
4092
4092
|
});
|
|
4093
4093
|
|
|
4094
|
-
// src/code-nav/symbol-index/imports/java.ts
|
|
4094
|
+
// ../bridge/src/code-nav/symbol-index/imports/java.ts
|
|
4095
4095
|
function localNameFromImport(nameNode) {
|
|
4096
4096
|
return nameNode.text.split(".").at(-1) ?? nameNode.text;
|
|
4097
4097
|
}
|
|
@@ -4112,13 +4112,13 @@ function extractJavaImportBindings(root, filePath, workspaceFiles) {
|
|
|
4112
4112
|
return out;
|
|
4113
4113
|
}
|
|
4114
4114
|
var init_java2 = __esm({
|
|
4115
|
-
"src/code-nav/symbol-index/imports/java.ts"() {
|
|
4115
|
+
"../bridge/src/code-nav/symbol-index/imports/java.ts"() {
|
|
4116
4116
|
"use strict";
|
|
4117
4117
|
init_shared2();
|
|
4118
4118
|
}
|
|
4119
4119
|
});
|
|
4120
4120
|
|
|
4121
|
-
// src/code-nav/symbol-index/imports/python.ts
|
|
4121
|
+
// ../bridge/src/code-nav/symbol-index/imports/python.ts
|
|
4122
4122
|
function dottedNameText(node) {
|
|
4123
4123
|
return node.text.replace(/\s+/g, "");
|
|
4124
4124
|
}
|
|
@@ -4160,13 +4160,13 @@ function extractPythonImportBindings(root, filePath, workspaceFiles) {
|
|
|
4160
4160
|
return out;
|
|
4161
4161
|
}
|
|
4162
4162
|
var init_python2 = __esm({
|
|
4163
|
-
"src/code-nav/symbol-index/imports/python.ts"() {
|
|
4163
|
+
"../bridge/src/code-nav/symbol-index/imports/python.ts"() {
|
|
4164
4164
|
"use strict";
|
|
4165
4165
|
init_shared2();
|
|
4166
4166
|
}
|
|
4167
4167
|
});
|
|
4168
4168
|
|
|
4169
|
-
// src/code-nav/symbol-index/imports/ruby.ts
|
|
4169
|
+
// ../bridge/src/code-nav/symbol-index/imports/ruby.ts
|
|
4170
4170
|
function collectRequireCall(out, filePath, workspaceFiles, node) {
|
|
4171
4171
|
const methodNode = node.childForFieldName("method");
|
|
4172
4172
|
if (!methodNode || methodNode.text !== "require" && methodNode.text !== "require_relative") return;
|
|
@@ -4185,13 +4185,13 @@ function extractRubyImportBindings(root, filePath, workspaceFiles) {
|
|
|
4185
4185
|
return out;
|
|
4186
4186
|
}
|
|
4187
4187
|
var init_ruby2 = __esm({
|
|
4188
|
-
"src/code-nav/symbol-index/imports/ruby.ts"() {
|
|
4188
|
+
"../bridge/src/code-nav/symbol-index/imports/ruby.ts"() {
|
|
4189
4189
|
"use strict";
|
|
4190
4190
|
init_shared2();
|
|
4191
4191
|
}
|
|
4192
4192
|
});
|
|
4193
4193
|
|
|
4194
|
-
// src/code-nav/symbol-index/imports/rust.ts
|
|
4194
|
+
// ../bridge/src/code-nav/symbol-index/imports/rust.ts
|
|
4195
4195
|
function identifierFromUseTree(node) {
|
|
4196
4196
|
if (node.type === "identifier" || node.type === "type_identifier") return node;
|
|
4197
4197
|
const nameNode = node.childForFieldName("name");
|
|
@@ -4256,13 +4256,13 @@ function extractRustImportBindings(root, filePath, workspaceFiles) {
|
|
|
4256
4256
|
return out;
|
|
4257
4257
|
}
|
|
4258
4258
|
var init_rust2 = __esm({
|
|
4259
|
-
"src/code-nav/symbol-index/imports/rust.ts"() {
|
|
4259
|
+
"../bridge/src/code-nav/symbol-index/imports/rust.ts"() {
|
|
4260
4260
|
"use strict";
|
|
4261
4261
|
init_shared2();
|
|
4262
4262
|
}
|
|
4263
4263
|
});
|
|
4264
4264
|
|
|
4265
|
-
// src/code-nav/symbol-index/imports/index.ts
|
|
4265
|
+
// ../bridge/src/code-nav/symbol-index/imports/index.ts
|
|
4266
4266
|
async function extractImportBindingsFromSource(filePath, source, workspaceFiles) {
|
|
4267
4267
|
const languageKey = getLanguageKeyForFilePath(filePath);
|
|
4268
4268
|
if (!languageKey) return [];
|
|
@@ -4283,7 +4283,7 @@ async function extractImportBindingsFromSource(filePath, source, workspaceFiles)
|
|
|
4283
4283
|
}
|
|
4284
4284
|
var EXTRACTORS_BY_LANGUAGE_KEY;
|
|
4285
4285
|
var init_imports = __esm({
|
|
4286
|
-
"src/code-nav/symbol-index/imports/index.ts"() {
|
|
4286
|
+
"../bridge/src/code-nav/symbol-index/imports/index.ts"() {
|
|
4287
4287
|
"use strict";
|
|
4288
4288
|
init_language_registry();
|
|
4289
4289
|
init_parser_runtime();
|
|
@@ -4312,10 +4312,10 @@ var init_imports = __esm({
|
|
|
4312
4312
|
}
|
|
4313
4313
|
});
|
|
4314
4314
|
|
|
4315
|
-
// src/code-nav/symbol-index/build/read-index-source.ts
|
|
4315
|
+
// ../bridge/src/code-nav/symbol-index/build/read-index-source.ts
|
|
4316
4316
|
var MAX_INDEX_FILE_BYTES;
|
|
4317
4317
|
var init_read_index_source = __esm({
|
|
4318
|
-
"src/code-nav/symbol-index/build/read-index-source.ts"() {
|
|
4318
|
+
"../bridge/src/code-nav/symbol-index/build/read-index-source.ts"() {
|
|
4319
4319
|
"use strict";
|
|
4320
4320
|
init_in_flight();
|
|
4321
4321
|
init_cli_process_interrupt();
|
|
@@ -4325,7 +4325,7 @@ var init_read_index_source = __esm({
|
|
|
4325
4325
|
}
|
|
4326
4326
|
});
|
|
4327
4327
|
|
|
4328
|
-
// src/code-nav/symbol-index/build/workspace-files.ts
|
|
4328
|
+
// ../bridge/src/code-nav/symbol-index/build/workspace-files.ts
|
|
4329
4329
|
function listWorkspaceFiles(db, workspacePath, includePath) {
|
|
4330
4330
|
const files = /* @__PURE__ */ new Set([includePath.replace(/\\/g, "/")]);
|
|
4331
4331
|
const normalizedWorkspace = normalizeResolvedPath(workspacePath);
|
|
@@ -4345,7 +4345,7 @@ function listWorkspaceFiles(db, workspacePath, includePath) {
|
|
|
4345
4345
|
return files;
|
|
4346
4346
|
}
|
|
4347
4347
|
var init_workspace_files = __esm({
|
|
4348
|
-
"src/code-nav/symbol-index/build/workspace-files.ts"() {
|
|
4348
|
+
"../bridge/src/code-nav/symbol-index/build/workspace-files.ts"() {
|
|
4349
4349
|
"use strict";
|
|
4350
4350
|
init_normalize_resolved_path();
|
|
4351
4351
|
init_symbol_index_sqlite();
|
|
@@ -4353,7 +4353,7 @@ var init_workspace_files = __esm({
|
|
|
4353
4353
|
}
|
|
4354
4354
|
});
|
|
4355
4355
|
|
|
4356
|
-
// src/code-nav/symbol-index/build/extract-file-symbol-data.ts
|
|
4356
|
+
// ../bridge/src/code-nav/symbol-index/build/extract-file-symbol-data.ts
|
|
4357
4357
|
import fs14 from "node:fs";
|
|
4358
4358
|
import path15 from "node:path";
|
|
4359
4359
|
import { isMainThread as isMainThread3 } from "node:worker_threads";
|
|
@@ -4401,7 +4401,7 @@ async function extractFileSymbolData(resolved, relPath, workspaceFilesOverride)
|
|
|
4401
4401
|
};
|
|
4402
4402
|
}
|
|
4403
4403
|
var init_extract_file_symbol_data = __esm({
|
|
4404
|
-
"src/code-nav/symbol-index/build/extract-file-symbol-data.ts"() {
|
|
4404
|
+
"../bridge/src/code-nav/symbol-index/build/extract-file-symbol-data.ts"() {
|
|
4405
4405
|
"use strict";
|
|
4406
4406
|
init_in_flight();
|
|
4407
4407
|
init_deferred_indexing();
|
|
@@ -4417,7 +4417,7 @@ var init_extract_file_symbol_data = __esm({
|
|
|
4417
4417
|
}
|
|
4418
4418
|
});
|
|
4419
4419
|
|
|
4420
|
-
// src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts
|
|
4420
|
+
// ../bridge/src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts
|
|
4421
4421
|
async function indexOneSymbolFileForBuild(resolved, relPath, workspaceFiles) {
|
|
4422
4422
|
await yieldForBridgeInteractivePriority();
|
|
4423
4423
|
const data = await extractFileSymbolData(resolved, relPath, workspaceFiles);
|
|
@@ -4443,7 +4443,7 @@ async function indexOneSymbolFileForBuild(resolved, relPath, workspaceFiles) {
|
|
|
4443
4443
|
});
|
|
4444
4444
|
}
|
|
4445
4445
|
var init_index_one_symbol_file_for_build = __esm({
|
|
4446
|
-
"src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts"() {
|
|
4446
|
+
"../bridge/src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts"() {
|
|
4447
4447
|
"use strict";
|
|
4448
4448
|
init_in_flight();
|
|
4449
4449
|
init_database();
|
|
@@ -4456,17 +4456,17 @@ var init_index_one_symbol_file_for_build = __esm({
|
|
|
4456
4456
|
}
|
|
4457
4457
|
});
|
|
4458
4458
|
|
|
4459
|
-
// src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts
|
|
4459
|
+
// ../bridge/src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts
|
|
4460
4460
|
function normalizeSymbolIndexRelPath(filePath) {
|
|
4461
4461
|
return filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
4462
4462
|
}
|
|
4463
4463
|
var init_normalize_symbol_index_rel_path = __esm({
|
|
4464
|
-
"src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts"() {
|
|
4464
|
+
"../bridge/src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts"() {
|
|
4465
4465
|
"use strict";
|
|
4466
4466
|
}
|
|
4467
4467
|
});
|
|
4468
4468
|
|
|
4469
|
-
// src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts
|
|
4469
|
+
// ../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts
|
|
4470
4470
|
async function ensureSymbolIndexFileImpl(parentPath, filePath, opts) {
|
|
4471
4471
|
const resolved = normalizeResolvedPath(parentPath);
|
|
4472
4472
|
const relPath = normalizeSymbolIndexRelPath(filePath);
|
|
@@ -4493,7 +4493,7 @@ async function ensureSymbolIndexFileImpl(parentPath, filePath, opts) {
|
|
|
4493
4493
|
}
|
|
4494
4494
|
var MAX_IMPORT_PREFETCH_COUNT;
|
|
4495
4495
|
var init_ensure_symbol_index_file_impl = __esm({
|
|
4496
|
-
"src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts"() {
|
|
4496
|
+
"../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts"() {
|
|
4497
4497
|
"use strict";
|
|
4498
4498
|
init_normalize_resolved_path();
|
|
4499
4499
|
init_database();
|
|
@@ -4507,7 +4507,7 @@ var init_ensure_symbol_index_file_impl = __esm({
|
|
|
4507
4507
|
}
|
|
4508
4508
|
});
|
|
4509
4509
|
|
|
4510
|
-
// src/code-nav/symbol-index/build/build-symbol-index-impl.ts
|
|
4510
|
+
// ../bridge/src/code-nav/symbol-index/build/build-symbol-index-impl.ts
|
|
4511
4511
|
async function buildSymbolIndexImpl(parentPath) {
|
|
4512
4512
|
const resolved = normalizeResolvedPath(parentPath);
|
|
4513
4513
|
let clearRemaining = true;
|
|
@@ -4547,7 +4547,7 @@ async function buildSymbolIndexImpl(parentPath) {
|
|
|
4547
4547
|
}
|
|
4548
4548
|
var SYMBOL_PARENT_CLEAR_BATCH_SIZE;
|
|
4549
4549
|
var init_build_symbol_index_impl = __esm({
|
|
4550
|
-
"src/code-nav/symbol-index/build/build-symbol-index-impl.ts"() {
|
|
4550
|
+
"../bridge/src/code-nav/symbol-index/build/build-symbol-index-impl.ts"() {
|
|
4551
4551
|
"use strict";
|
|
4552
4552
|
init_normalize_resolved_path();
|
|
4553
4553
|
init_database();
|
|
@@ -4561,30 +4561,30 @@ var init_build_symbol_index_impl = __esm({
|
|
|
4561
4561
|
}
|
|
4562
4562
|
});
|
|
4563
4563
|
|
|
4564
|
-
// src/code-nav/symbol-index/build/build-symbol-index-host.ts
|
|
4564
|
+
// ../bridge/src/code-nav/symbol-index/build/build-symbol-index-host.ts
|
|
4565
4565
|
var init_build_symbol_index_host = __esm({
|
|
4566
|
-
"src/code-nav/symbol-index/build/build-symbol-index-host.ts"() {
|
|
4566
|
+
"../bridge/src/code-nav/symbol-index/build/build-symbol-index-host.ts"() {
|
|
4567
4567
|
"use strict";
|
|
4568
4568
|
init_build_symbol_index_impl();
|
|
4569
4569
|
}
|
|
4570
4570
|
});
|
|
4571
4571
|
|
|
4572
|
-
// src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts
|
|
4572
|
+
// ../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts
|
|
4573
4573
|
var init_ensure_symbol_index_file_host = __esm({
|
|
4574
|
-
"src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts"() {
|
|
4574
|
+
"../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts"() {
|
|
4575
4575
|
"use strict";
|
|
4576
4576
|
init_ensure_symbol_index_file_impl();
|
|
4577
4577
|
}
|
|
4578
4578
|
});
|
|
4579
4579
|
|
|
4580
|
-
// src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts
|
|
4580
|
+
// ../bridge/src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts
|
|
4581
4581
|
var init_normalize_symbol_index_path = __esm({
|
|
4582
|
-
"src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts"() {
|
|
4582
|
+
"../bridge/src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts"() {
|
|
4583
4583
|
"use strict";
|
|
4584
4584
|
}
|
|
4585
4585
|
});
|
|
4586
4586
|
|
|
4587
|
-
// src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts
|
|
4587
|
+
// ../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts
|
|
4588
4588
|
async function updateSymbolIndexRelPathImpl(parentPath, relPath) {
|
|
4589
4589
|
const normalizedRel = relPath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
4590
4590
|
if (!normalizedRel) return;
|
|
@@ -4604,7 +4604,7 @@ async function removeSymbolIndexRelPathImpl(parentPath, relPath) {
|
|
|
4604
4604
|
});
|
|
4605
4605
|
}
|
|
4606
4606
|
var init_update_symbol_index_file_impl = __esm({
|
|
4607
|
-
"src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts"() {
|
|
4607
|
+
"../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts"() {
|
|
4608
4608
|
"use strict";
|
|
4609
4609
|
init_normalize_resolved_path();
|
|
4610
4610
|
init_yield_to_event_loop();
|
|
@@ -4615,15 +4615,15 @@ var init_update_symbol_index_file_impl = __esm({
|
|
|
4615
4615
|
}
|
|
4616
4616
|
});
|
|
4617
4617
|
|
|
4618
|
-
// src/code-nav/symbol-index/build/update-symbol-index-file-host.ts
|
|
4618
|
+
// ../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-host.ts
|
|
4619
4619
|
var init_update_symbol_index_file_host = __esm({
|
|
4620
|
-
"src/code-nav/symbol-index/build/update-symbol-index-file-host.ts"() {
|
|
4620
|
+
"../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-host.ts"() {
|
|
4621
4621
|
"use strict";
|
|
4622
4622
|
init_update_symbol_index_file_impl();
|
|
4623
4623
|
}
|
|
4624
4624
|
});
|
|
4625
4625
|
|
|
4626
|
-
// src/code-nav/symbol-index/worker/post-message.ts
|
|
4626
|
+
// ../bridge/src/code-nav/symbol-index/worker/post-message.ts
|
|
4627
4627
|
function postSafe(port, message) {
|
|
4628
4628
|
try {
|
|
4629
4629
|
port.postMessage(message);
|
|
@@ -4631,12 +4631,12 @@ function postSafe(port, message) {
|
|
|
4631
4631
|
}
|
|
4632
4632
|
}
|
|
4633
4633
|
var init_post_message = __esm({
|
|
4634
|
-
"src/code-nav/symbol-index/worker/post-message.ts"() {
|
|
4634
|
+
"../bridge/src/code-nav/symbol-index/worker/post-message.ts"() {
|
|
4635
4635
|
"use strict";
|
|
4636
4636
|
}
|
|
4637
4637
|
});
|
|
4638
4638
|
|
|
4639
|
-
// src/code-nav/symbol-index/worker/index-handlers.ts
|
|
4639
|
+
// ../bridge/src/code-nav/symbol-index/worker/index-handlers.ts
|
|
4640
4640
|
function postWorkerError(port, requestId, err) {
|
|
4641
4641
|
if (isCliImmediateShutdownRequested() || isSymbolIndexWorkerShutdownRequested() || err instanceof CliSqliteInterrupted) {
|
|
4642
4642
|
postSafe(port, {
|
|
@@ -4697,7 +4697,7 @@ async function handleIndexWorkerMessage(port, msg) {
|
|
|
4697
4697
|
}
|
|
4698
4698
|
}
|
|
4699
4699
|
var init_index_handlers = __esm({
|
|
4700
|
-
"src/code-nav/symbol-index/worker/index-handlers.ts"() {
|
|
4700
|
+
"../bridge/src/code-nav/symbol-index/worker/index-handlers.ts"() {
|
|
4701
4701
|
"use strict";
|
|
4702
4702
|
init_cli_process_interrupt();
|
|
4703
4703
|
init_sqlite_errors();
|
|
@@ -4709,13 +4709,13 @@ var init_index_handlers = __esm({
|
|
|
4709
4709
|
}
|
|
4710
4710
|
});
|
|
4711
4711
|
|
|
4712
|
-
// src/code-nav/symbol-index/scheduler/task-priority-heap.ts
|
|
4712
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-priority-heap.ts
|
|
4713
4713
|
function higherPriority(a, b) {
|
|
4714
4714
|
return a.priority > b.priority;
|
|
4715
4715
|
}
|
|
4716
4716
|
var SymbolIndexTaskPriorityHeap;
|
|
4717
4717
|
var init_task_priority_heap = __esm({
|
|
4718
|
-
"src/code-nav/symbol-index/scheduler/task-priority-heap.ts"() {
|
|
4718
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-priority-heap.ts"() {
|
|
4719
4719
|
"use strict";
|
|
4720
4720
|
SymbolIndexTaskPriorityHeap = class {
|
|
4721
4721
|
heap = [];
|
|
@@ -4767,17 +4767,17 @@ var init_task_priority_heap = __esm({
|
|
|
4767
4767
|
}
|
|
4768
4768
|
});
|
|
4769
4769
|
|
|
4770
|
-
// src/code-nav/symbol-index/scheduler/task-queue-types.ts
|
|
4770
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-types.ts
|
|
4771
4771
|
function symbolIndexTaskKey(parentPath, filePath) {
|
|
4772
4772
|
return `${parentPath}\0${filePath}`;
|
|
4773
4773
|
}
|
|
4774
4774
|
var init_task_queue_types = __esm({
|
|
4775
|
-
"src/code-nav/symbol-index/scheduler/task-queue-types.ts"() {
|
|
4775
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-types.ts"() {
|
|
4776
4776
|
"use strict";
|
|
4777
4777
|
}
|
|
4778
4778
|
});
|
|
4779
4779
|
|
|
4780
|
-
// src/code-nav/symbol-index/scheduler/task-queue-store.ts
|
|
4780
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-store.ts
|
|
4781
4781
|
function setSymbolIndexWorkerRunning(running) {
|
|
4782
4782
|
symbolIndexWorkerRunning = running;
|
|
4783
4783
|
}
|
|
@@ -4806,7 +4806,7 @@ function clearSymbolIndexHeapIfEmpty() {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
var pendingSymbolIndexTasks, symbolIndexTaskHeap, latestActiveSequenceByParent, symbolIndexWorkerRunning;
|
|
4808
4808
|
var init_task_queue_store = __esm({
|
|
4809
|
-
"src/code-nav/symbol-index/scheduler/task-queue-store.ts"() {
|
|
4809
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-store.ts"() {
|
|
4810
4810
|
"use strict";
|
|
4811
4811
|
init_task_priority_heap();
|
|
4812
4812
|
init_task_queue_types();
|
|
@@ -4817,7 +4817,7 @@ var init_task_queue_store = __esm({
|
|
|
4817
4817
|
}
|
|
4818
4818
|
});
|
|
4819
4819
|
|
|
4820
|
-
// src/code-nav/symbol-index/scheduler/task-queue-core.ts
|
|
4820
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-core.ts
|
|
4821
4821
|
function enqueueSymbolIndexTaskInternal(parentPath, filePath, priority, sequence) {
|
|
4822
4822
|
const normalizedParent = normalizeResolvedPath(parentPath);
|
|
4823
4823
|
const normalizedFile = filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
@@ -4855,7 +4855,7 @@ function deferBackgroundSymbolIndexTasks() {
|
|
|
4855
4855
|
}
|
|
4856
4856
|
var SYMBOL_INDEX_BACKGROUND_PRIORITY_MAX;
|
|
4857
4857
|
var init_task_queue_core = __esm({
|
|
4858
|
-
"src/code-nav/symbol-index/scheduler/task-queue-core.ts"() {
|
|
4858
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-core.ts"() {
|
|
4859
4859
|
"use strict";
|
|
4860
4860
|
init_normalize_resolved_path();
|
|
4861
4861
|
init_task_queue_store();
|
|
@@ -4863,7 +4863,7 @@ var init_task_queue_core = __esm({
|
|
|
4863
4863
|
}
|
|
4864
4864
|
});
|
|
4865
4865
|
|
|
4866
|
-
// src/code-nav/symbol-index/scheduler/task-queue-worker.ts
|
|
4866
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-worker.ts
|
|
4867
4867
|
async function runWorkerLoop() {
|
|
4868
4868
|
if (symbolIndexWorkerRunning) return;
|
|
4869
4869
|
setSymbolIndexWorkerRunning(true);
|
|
@@ -4901,7 +4901,7 @@ function kickSymbolIndexWorkerLoop() {
|
|
|
4901
4901
|
void runWorkerLoop();
|
|
4902
4902
|
}
|
|
4903
4903
|
var init_task_queue_worker = __esm({
|
|
4904
|
-
"src/code-nav/symbol-index/scheduler/task-queue-worker.ts"() {
|
|
4904
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-worker.ts"() {
|
|
4905
4905
|
"use strict";
|
|
4906
4906
|
init_deferred_indexing();
|
|
4907
4907
|
init_in_flight();
|
|
@@ -4913,7 +4913,7 @@ var init_task_queue_worker = __esm({
|
|
|
4913
4913
|
}
|
|
4914
4914
|
});
|
|
4915
4915
|
|
|
4916
|
-
// src/code-nav/symbol-index/worker/queue-handlers.ts
|
|
4916
|
+
// ../bridge/src/code-nav/symbol-index/worker/queue-handlers.ts
|
|
4917
4917
|
function handleQueueWorkerMessage(msg) {
|
|
4918
4918
|
switch (msg.type) {
|
|
4919
4919
|
case "enqueue":
|
|
@@ -4939,7 +4939,7 @@ function handleQueueWorkerMessage(msg) {
|
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
var init_queue_handlers = __esm({
|
|
4942
|
-
"src/code-nav/symbol-index/worker/queue-handlers.ts"() {
|
|
4942
|
+
"../bridge/src/code-nav/symbol-index/worker/queue-handlers.ts"() {
|
|
4943
4943
|
"use strict";
|
|
4944
4944
|
init_in_flight();
|
|
4945
4945
|
init_task_queue_core();
|
|
@@ -4947,7 +4947,7 @@ var init_queue_handlers = __esm({
|
|
|
4947
4947
|
}
|
|
4948
4948
|
});
|
|
4949
4949
|
|
|
4950
|
-
// src/code-nav/symbol-index/build/register-symbol-index-parent.ts
|
|
4950
|
+
// ../bridge/src/code-nav/symbol-index/build/register-symbol-index-parent.ts
|
|
4951
4951
|
async function registerSymbolIndexParentAsync(parentPath) {
|
|
4952
4952
|
const resolved = normalizeResolvedPath(parentPath);
|
|
4953
4953
|
await withCodeNavCacheSqlite((db) => {
|
|
@@ -4955,7 +4955,7 @@ async function registerSymbolIndexParentAsync(parentPath) {
|
|
|
4955
4955
|
});
|
|
4956
4956
|
}
|
|
4957
4957
|
var init_register_symbol_index_parent = __esm({
|
|
4958
|
-
"src/code-nav/symbol-index/build/register-symbol-index-parent.ts"() {
|
|
4958
|
+
"../bridge/src/code-nav/symbol-index/build/register-symbol-index-parent.ts"() {
|
|
4959
4959
|
"use strict";
|
|
4960
4960
|
init_normalize_resolved_path();
|
|
4961
4961
|
init_database();
|
|
@@ -4963,7 +4963,7 @@ var init_register_symbol_index_parent = __esm({
|
|
|
4963
4963
|
}
|
|
4964
4964
|
});
|
|
4965
4965
|
|
|
4966
|
-
// src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts
|
|
4966
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts
|
|
4967
4967
|
function scheduleWarmupWhenIdle() {
|
|
4968
4968
|
if (warmupIdleTimer != null) clearTimeout(warmupIdleTimer);
|
|
4969
4969
|
warmupIdleTimer = setTimeout(() => {
|
|
@@ -5018,7 +5018,7 @@ function scheduleSymbolIndexWarmupInWorkerHost(parentPath) {
|
|
|
5018
5018
|
}
|
|
5019
5019
|
var requestSeq, warmupSeq, warmupCompleted, pendingWarmupParents, warmupWalkInProgress, WARMUP_IDLE_MS, warmupIdleTimer;
|
|
5020
5020
|
var init_symbol_index_warmup_host = __esm({
|
|
5021
|
-
"src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts"() {
|
|
5021
|
+
"../bridge/src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts"() {
|
|
5022
5022
|
"use strict";
|
|
5023
5023
|
init_normalize_resolved_path();
|
|
5024
5024
|
init_in_flight();
|
|
@@ -5040,7 +5040,7 @@ var init_symbol_index_warmup_host = __esm({
|
|
|
5040
5040
|
}
|
|
5041
5041
|
});
|
|
5042
5042
|
|
|
5043
|
-
// src/code-nav/symbol-index/worker/setup-handlers.ts
|
|
5043
|
+
// ../bridge/src/code-nav/symbol-index/worker/setup-handlers.ts
|
|
5044
5044
|
async function handleSetupWorkerMessage(msg) {
|
|
5045
5045
|
switch (msg.type) {
|
|
5046
5046
|
case "registerParent":
|
|
@@ -5054,14 +5054,14 @@ async function handleSetupWorkerMessage(msg) {
|
|
|
5054
5054
|
}
|
|
5055
5055
|
}
|
|
5056
5056
|
var init_setup_handlers = __esm({
|
|
5057
|
-
"src/code-nav/symbol-index/worker/setup-handlers.ts"() {
|
|
5057
|
+
"../bridge/src/code-nav/symbol-index/worker/setup-handlers.ts"() {
|
|
5058
5058
|
"use strict";
|
|
5059
5059
|
init_register_symbol_index_parent();
|
|
5060
5060
|
init_symbol_index_warmup_host();
|
|
5061
5061
|
}
|
|
5062
5062
|
});
|
|
5063
5063
|
|
|
5064
|
-
// src/code-nav/symbol-index/worker/handle-message.ts
|
|
5064
|
+
// ../bridge/src/code-nav/symbol-index/worker/handle-message.ts
|
|
5065
5065
|
async function waitForActiveWorkerHandlersIdle(pollMs = 10) {
|
|
5066
5066
|
while (activeWorkerHandlers > 0) {
|
|
5067
5067
|
await new Promise((resolve) => setTimeout(resolve, pollMs));
|
|
@@ -5113,7 +5113,7 @@ async function handleRequestMessage(port, msg) {
|
|
|
5113
5113
|
}
|
|
5114
5114
|
var activeWorkerHandlers;
|
|
5115
5115
|
var init_handle_message = __esm({
|
|
5116
|
-
"src/code-nav/symbol-index/worker/handle-message.ts"() {
|
|
5116
|
+
"../bridge/src/code-nav/symbol-index/worker/handle-message.ts"() {
|
|
5117
5117
|
"use strict";
|
|
5118
5118
|
init_cli_process_interrupt();
|
|
5119
5119
|
init_database();
|
|
@@ -5128,7 +5128,7 @@ var init_handle_message = __esm({
|
|
|
5128
5128
|
}
|
|
5129
5129
|
});
|
|
5130
5130
|
|
|
5131
|
-
// src/code-nav/symbol-index/worker/host.ts
|
|
5131
|
+
// ../bridge/src/code-nav/symbol-index/worker/host.ts
|
|
5132
5132
|
function attachSymbolIndexWorkerHost(port) {
|
|
5133
5133
|
port.onMessage((message) => {
|
|
5134
5134
|
void handleRequestMessage(port, message);
|
|
@@ -5136,14 +5136,14 @@ function attachSymbolIndexWorkerHost(port) {
|
|
|
5136
5136
|
postSafe(port, { type: "ready" });
|
|
5137
5137
|
}
|
|
5138
5138
|
var init_host = __esm({
|
|
5139
|
-
"src/code-nav/symbol-index/worker/host.ts"() {
|
|
5139
|
+
"../bridge/src/code-nav/symbol-index/worker/host.ts"() {
|
|
5140
5140
|
"use strict";
|
|
5141
5141
|
init_handle_message();
|
|
5142
5142
|
init_post_message();
|
|
5143
5143
|
}
|
|
5144
5144
|
});
|
|
5145
5145
|
|
|
5146
|
-
// src/code-nav/symbol-index/worker/entry.ts
|
|
5146
|
+
// ../bridge/src/code-nav/symbol-index/worker/entry.ts
|
|
5147
5147
|
init_in_flight();
|
|
5148
5148
|
init_code_nav_cache_log();
|
|
5149
5149
|
init_host();
|