@buildautomaton/cli 0.1.88 → 0.1.90
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 +38801 -39274
- package/dist/cli.js.map +4 -4
- package/dist/index.js +7630 -8100
- package/dist/index.js.map +4 -4
- package/dist/worker.js +291 -306
- package/dist/worker.js.map +3 -3
- package/package.json +4 -3
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,24 +166,22 @@ 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"() {
|
|
175
|
-
"use strict";
|
|
174
|
+
"../bridge/src/runtime/yield-to-event-loop.ts"() {
|
|
176
175
|
}
|
|
177
176
|
});
|
|
178
177
|
|
|
179
|
-
// src/code-nav/symbol-index/deferred-indexing.ts
|
|
178
|
+
// ../bridge/src/code-nav/symbol-index/deferred-indexing.ts
|
|
180
179
|
function isSymbolIndexDeferredError(err) {
|
|
181
180
|
return err instanceof SymbolIndexDeferredError;
|
|
182
181
|
}
|
|
183
182
|
var SymbolIndexDeferredError;
|
|
184
183
|
var init_deferred_indexing = __esm({
|
|
185
|
-
"src/code-nav/symbol-index/deferred-indexing.ts"() {
|
|
186
|
-
"use strict";
|
|
184
|
+
"../bridge/src/code-nav/symbol-index/deferred-indexing.ts"() {
|
|
187
185
|
SymbolIndexDeferredError = class extends Error {
|
|
188
186
|
constructor() {
|
|
189
187
|
super("Symbol indexing deferred for file browser");
|
|
@@ -193,7 +191,7 @@ var init_deferred_indexing = __esm({
|
|
|
193
191
|
}
|
|
194
192
|
});
|
|
195
193
|
|
|
196
|
-
// src/files/browser/idle-yield.ts
|
|
194
|
+
// ../bridge/src/files/browser/idle-yield.ts
|
|
197
195
|
import { isMainThread as isMainThread2 } from "node:worker_threads";
|
|
198
196
|
function isBridgeBrowseInteractiveActive() {
|
|
199
197
|
const { inFlightRequests: inFlightRequests2, inFlightReads: inFlightReads2, lastActivityAt } = currentFileBrowserActivity();
|
|
@@ -238,7 +236,7 @@ async function yieldForBridgeInteractivePriority() {
|
|
|
238
236
|
assertBackgroundIndexingAllowed();
|
|
239
237
|
}
|
|
240
238
|
var init_idle_yield = __esm({
|
|
241
|
-
"src/files/browser/idle-yield.ts"() {
|
|
239
|
+
"../bridge/src/files/browser/idle-yield.ts"() {
|
|
242
240
|
"use strict";
|
|
243
241
|
init_yield_to_event_loop();
|
|
244
242
|
init_deferred_indexing();
|
|
@@ -247,10 +245,9 @@ var init_idle_yield = __esm({
|
|
|
247
245
|
}
|
|
248
246
|
});
|
|
249
247
|
|
|
250
|
-
// src/files/browser/in-flight.ts
|
|
248
|
+
// ../bridge/src/files/browser/in-flight.ts
|
|
251
249
|
var init_in_flight = __esm({
|
|
252
|
-
"src/files/browser/in-flight.ts"() {
|
|
253
|
-
"use strict";
|
|
250
|
+
"../bridge/src/files/browser/in-flight.ts"() {
|
|
254
251
|
init_activity_shared();
|
|
255
252
|
init_activity_types();
|
|
256
253
|
init_activity_tracker();
|
|
@@ -258,14 +255,14 @@ var init_in_flight = __esm({
|
|
|
258
255
|
}
|
|
259
256
|
});
|
|
260
257
|
|
|
261
|
-
// src/cli-log-level.ts
|
|
258
|
+
// ../bridge/src/cli/cli-log-level.ts
|
|
262
259
|
var init_cli_log_level = __esm({
|
|
263
|
-
"src/cli-log-level.ts"() {
|
|
260
|
+
"../bridge/src/cli/cli-log-level.ts"() {
|
|
264
261
|
"use strict";
|
|
265
262
|
}
|
|
266
263
|
});
|
|
267
264
|
|
|
268
|
-
// src/log.ts
|
|
265
|
+
// ../bridge/src/cli/log.ts
|
|
269
266
|
function timestampPrefix() {
|
|
270
267
|
const time = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
|
|
271
268
|
return `[${time}]`;
|
|
@@ -275,13 +272,12 @@ function logImmediate(line) {
|
|
|
275
272
|
`);
|
|
276
273
|
}
|
|
277
274
|
var init_log = __esm({
|
|
278
|
-
"src/log.ts"() {
|
|
279
|
-
"use strict";
|
|
275
|
+
"../bridge/src/cli/log.ts"() {
|
|
280
276
|
init_cli_log_level();
|
|
281
277
|
}
|
|
282
278
|
});
|
|
283
279
|
|
|
284
|
-
// src/sqlite/sqlite-errors.ts
|
|
280
|
+
// ../bridge/src/sqlite/sqlite-errors.ts
|
|
285
281
|
function isCliSqliteLockError(e) {
|
|
286
282
|
if (e instanceof CliSqliteInterrupted) return false;
|
|
287
283
|
const msg = e instanceof Error ? e.message : String(e);
|
|
@@ -290,7 +286,7 @@ function isCliSqliteLockError(e) {
|
|
|
290
286
|
}
|
|
291
287
|
var CliSqliteInterrupted;
|
|
292
288
|
var init_sqlite_errors = __esm({
|
|
293
|
-
"src/sqlite/sqlite-errors.ts"() {
|
|
289
|
+
"../bridge/src/sqlite/sqlite-errors.ts"() {
|
|
294
290
|
"use strict";
|
|
295
291
|
CliSqliteInterrupted = class extends Error {
|
|
296
292
|
name = "CliSqliteInterrupted";
|
|
@@ -301,7 +297,7 @@ var init_sqlite_errors = __esm({
|
|
|
301
297
|
}
|
|
302
298
|
});
|
|
303
299
|
|
|
304
|
-
// src/sqlite/sqlite-lock-path.ts
|
|
300
|
+
// ../bridge/src/sqlite/sqlite-lock-path.ts
|
|
305
301
|
import fs from "node:fs";
|
|
306
302
|
function getSqliteLockPath(dbPath) {
|
|
307
303
|
return `${dbPath}.lock`;
|
|
@@ -320,13 +316,13 @@ function logStaleSqliteLockIntervention(dbPath) {
|
|
|
320
316
|
);
|
|
321
317
|
}
|
|
322
318
|
var init_sqlite_lock_path = __esm({
|
|
323
|
-
"src/sqlite/sqlite-lock-path.ts"() {
|
|
319
|
+
"../bridge/src/sqlite/sqlite-lock-path.ts"() {
|
|
324
320
|
"use strict";
|
|
325
321
|
init_log();
|
|
326
322
|
}
|
|
327
323
|
});
|
|
328
324
|
|
|
329
|
-
// src/sqlite/code-nav-cache/code-nav-cache-paths.ts
|
|
325
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-paths.ts
|
|
330
326
|
import fs2 from "node:fs";
|
|
331
327
|
import path from "node:path";
|
|
332
328
|
import os from "node:os";
|
|
@@ -340,12 +336,12 @@ function ensureCodeNavCacheSqliteParentDir(sqlitePath) {
|
|
|
340
336
|
if (!fs2.existsSync(dir)) fs2.mkdirSync(dir, { recursive: true });
|
|
341
337
|
}
|
|
342
338
|
var init_code_nav_cache_paths = __esm({
|
|
343
|
-
"src/sqlite/code-nav-cache/code-nav-cache-paths.ts"() {
|
|
339
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-paths.ts"() {
|
|
344
340
|
"use strict";
|
|
345
341
|
}
|
|
346
342
|
});
|
|
347
343
|
|
|
348
|
-
// src/sqlite/code-nav-cache/code-nav-cache-log.ts
|
|
344
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-log.ts
|
|
349
345
|
import fs3 from "node:fs";
|
|
350
346
|
function setCodeNavCacheDiagnosticSink(sink) {
|
|
351
347
|
diagnosticSink = sink;
|
|
@@ -388,8 +384,7 @@ function maybeLogCodeNavCacheWorkerError(message) {
|
|
|
388
384
|
}
|
|
389
385
|
var diagnosticSink, lastDiagnosticKey;
|
|
390
386
|
var init_code_nav_cache_log = __esm({
|
|
391
|
-
"src/sqlite/code-nav-cache/code-nav-cache-log.ts"() {
|
|
392
|
-
"use strict";
|
|
387
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-log.ts"() {
|
|
393
388
|
init_log();
|
|
394
389
|
init_sqlite_errors();
|
|
395
390
|
init_sqlite_lock_path();
|
|
@@ -399,19 +394,18 @@ var init_code_nav_cache_log = __esm({
|
|
|
399
394
|
}
|
|
400
395
|
});
|
|
401
396
|
|
|
402
|
-
// src/
|
|
397
|
+
// ../bridge/src/cli/teardown/cli-process-interrupt.ts
|
|
403
398
|
function isCliImmediateShutdownRequested() {
|
|
404
399
|
return cliImmediateShutdownRequested;
|
|
405
400
|
}
|
|
406
401
|
var cliImmediateShutdownRequested;
|
|
407
402
|
var init_cli_process_interrupt = __esm({
|
|
408
|
-
"src/
|
|
409
|
-
"use strict";
|
|
403
|
+
"../bridge/src/cli/teardown/cli-process-interrupt.ts"() {
|
|
410
404
|
cliImmediateShutdownRequested = false;
|
|
411
405
|
}
|
|
412
406
|
});
|
|
413
407
|
|
|
414
|
-
// src/sqlite/code-nav-cache/code-nav-cache-availability.ts
|
|
408
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-availability.ts
|
|
415
409
|
function isCodeNavCacheUnavailable() {
|
|
416
410
|
return initState === "unavailable";
|
|
417
411
|
}
|
|
@@ -420,7 +414,7 @@ function getCodeNavCacheInitPromise() {
|
|
|
420
414
|
}
|
|
421
415
|
var initState, initPromise, CodeNavCacheUnavailableError;
|
|
422
416
|
var init_code_nav_cache_availability = __esm({
|
|
423
|
-
"src/sqlite/code-nav-cache/code-nav-cache-availability.ts"() {
|
|
417
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-availability.ts"() {
|
|
424
418
|
"use strict";
|
|
425
419
|
init_log();
|
|
426
420
|
init_in_flight();
|
|
@@ -437,7 +431,7 @@ var init_code_nav_cache_availability = __esm({
|
|
|
437
431
|
}
|
|
438
432
|
});
|
|
439
433
|
|
|
440
|
-
// src/code-nav/symbol-index/worker/shutdown-state.ts
|
|
434
|
+
// ../bridge/src/code-nav/symbol-index/worker/shutdown-state.ts
|
|
441
435
|
function requestSymbolIndexWorkerShutdown() {
|
|
442
436
|
symbolIndexWorkerShutdownRequested = true;
|
|
443
437
|
}
|
|
@@ -446,13 +440,13 @@ function isSymbolIndexWorkerShutdownRequested() {
|
|
|
446
440
|
}
|
|
447
441
|
var symbolIndexWorkerShutdownRequested;
|
|
448
442
|
var init_shutdown_state = __esm({
|
|
449
|
-
"src/code-nav/symbol-index/worker/shutdown-state.ts"() {
|
|
443
|
+
"../bridge/src/code-nav/symbol-index/worker/shutdown-state.ts"() {
|
|
450
444
|
"use strict";
|
|
451
445
|
symbolIndexWorkerShutdownRequested = false;
|
|
452
446
|
}
|
|
453
447
|
});
|
|
454
448
|
|
|
455
|
-
// src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts
|
|
449
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts
|
|
456
450
|
async function waitForOuterCodeNavCacheAccessAsync() {
|
|
457
451
|
while (codeNavCacheAccessDepth > 0) {
|
|
458
452
|
if (isCliImmediateShutdownRequested() || isSymbolIndexWorkerShutdownRequested()) {
|
|
@@ -479,7 +473,7 @@ function resetCodeNavCacheAccessDepth() {
|
|
|
479
473
|
}
|
|
480
474
|
var codeNavCacheAccessDepth;
|
|
481
475
|
var init_code_nav_cache_access_depth = __esm({
|
|
482
|
-
"src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts"() {
|
|
476
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-access-depth.ts"() {
|
|
483
477
|
"use strict";
|
|
484
478
|
init_yield_to_event_loop();
|
|
485
479
|
init_cli_process_interrupt();
|
|
@@ -489,7 +483,7 @@ var init_code_nav_cache_access_depth = __esm({
|
|
|
489
483
|
}
|
|
490
484
|
});
|
|
491
485
|
|
|
492
|
-
// src/sqlite/sqlite-lock-retry.ts
|
|
486
|
+
// ../bridge/src/sqlite/sqlite-lock-retry.ts
|
|
493
487
|
function syncSleepMs(ms) {
|
|
494
488
|
if (ms <= 0) return;
|
|
495
489
|
const deadline = Date.now() + ms;
|
|
@@ -521,7 +515,7 @@ async function asyncDelayMsInterruptible(ms) {
|
|
|
521
515
|
}
|
|
522
516
|
var SYNC_RETRY_MAX, ASYNC_RETRY_MAX, ASYNC_PROBE_RETRY_MAX, ASYNC_BASE_DELAY_MS;
|
|
523
517
|
var init_sqlite_lock_retry = __esm({
|
|
524
|
-
"src/sqlite/sqlite-lock-retry.ts"() {
|
|
518
|
+
"../bridge/src/sqlite/sqlite-lock-retry.ts"() {
|
|
525
519
|
"use strict";
|
|
526
520
|
init_cli_process_interrupt();
|
|
527
521
|
init_yield_to_event_loop();
|
|
@@ -533,20 +527,20 @@ var init_sqlite_lock_retry = __esm({
|
|
|
533
527
|
}
|
|
534
528
|
});
|
|
535
529
|
|
|
536
|
-
// src/sqlite/access/bindings.ts
|
|
530
|
+
// ../bridge/src/sqlite/access/bindings.ts
|
|
537
531
|
import sqliteWasm from "node-sqlite3-wasm";
|
|
538
532
|
function createSqliteMigrateState() {
|
|
539
533
|
return { migrateDoneForPath: null };
|
|
540
534
|
}
|
|
541
535
|
var SqliteDatabaseConstructor;
|
|
542
536
|
var init_bindings = __esm({
|
|
543
|
-
"src/sqlite/access/bindings.ts"() {
|
|
537
|
+
"../bridge/src/sqlite/access/bindings.ts"() {
|
|
544
538
|
"use strict";
|
|
545
539
|
SqliteDatabaseConstructor = sqliteWasm.Database;
|
|
546
540
|
}
|
|
547
541
|
});
|
|
548
542
|
|
|
549
|
-
// src/sqlite/sqlite-pragmas.ts
|
|
543
|
+
// ../bridge/src/sqlite/sqlite-pragmas.ts
|
|
550
544
|
function applySqliteConcurrencyPragmas(db) {
|
|
551
545
|
try {
|
|
552
546
|
db.run("PRAGMA foreign_keys = ON");
|
|
@@ -573,12 +567,12 @@ function applySqliteMemoryPragmas(db) {
|
|
|
573
567
|
}
|
|
574
568
|
}
|
|
575
569
|
var init_sqlite_pragmas = __esm({
|
|
576
|
-
"src/sqlite/sqlite-pragmas.ts"() {
|
|
570
|
+
"../bridge/src/sqlite/sqlite-pragmas.ts"() {
|
|
577
571
|
"use strict";
|
|
578
572
|
}
|
|
579
573
|
});
|
|
580
574
|
|
|
581
|
-
// src/sqlite/access/open.ts
|
|
575
|
+
// ../bridge/src/sqlite/access/open.ts
|
|
582
576
|
function safeCloseSqliteDatabase(db) {
|
|
583
577
|
if (db == null) return;
|
|
584
578
|
try {
|
|
@@ -617,7 +611,7 @@ function openSqliteConnection(config, migrateState, options) {
|
|
|
617
611
|
return db;
|
|
618
612
|
}
|
|
619
613
|
var init_open = __esm({
|
|
620
|
-
"src/sqlite/access/open.ts"() {
|
|
614
|
+
"../bridge/src/sqlite/access/open.ts"() {
|
|
621
615
|
"use strict";
|
|
622
616
|
init_cli_process_interrupt();
|
|
623
617
|
init_sqlite_errors();
|
|
@@ -626,7 +620,7 @@ var init_open = __esm({
|
|
|
626
620
|
}
|
|
627
621
|
});
|
|
628
622
|
|
|
629
|
-
// src/sqlite/access/with-async.ts
|
|
623
|
+
// ../bridge/src/sqlite/access/with-async.ts
|
|
630
624
|
async function runSqliteWithAsync(config, openConnection, safeClose, fn, options, maxAttempts = ASYNC_RETRY_MAX) {
|
|
631
625
|
let lastError;
|
|
632
626
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
@@ -663,7 +657,7 @@ async function runSqliteWithAsync(config, openConnection, safeClose, fn, options
|
|
|
663
657
|
throw new Error(String(lastError));
|
|
664
658
|
}
|
|
665
659
|
var init_with_async = __esm({
|
|
666
|
-
"src/sqlite/access/with-async.ts"() {
|
|
660
|
+
"../bridge/src/sqlite/access/with-async.ts"() {
|
|
667
661
|
"use strict";
|
|
668
662
|
init_yield_to_event_loop();
|
|
669
663
|
init_cli_process_interrupt();
|
|
@@ -673,7 +667,7 @@ var init_with_async = __esm({
|
|
|
673
667
|
}
|
|
674
668
|
});
|
|
675
669
|
|
|
676
|
-
// src/sqlite/access/with-sync.ts
|
|
670
|
+
// ../bridge/src/sqlite/access/with-sync.ts
|
|
677
671
|
function runSqliteWithSync(config, openConnection, safeClose, fn, options) {
|
|
678
672
|
for (let attempt = 1; attempt <= SYNC_RETRY_MAX; attempt++) {
|
|
679
673
|
if (isCliImmediateShutdownRequested()) throw new CliSqliteInterrupted();
|
|
@@ -705,7 +699,7 @@ function runSqliteWithSync(config, openConnection, safeClose, fn, options) {
|
|
|
705
699
|
throw new Error("withSqliteSync: exhausted retries");
|
|
706
700
|
}
|
|
707
701
|
var init_with_sync = __esm({
|
|
708
|
-
"src/sqlite/access/with-sync.ts"() {
|
|
702
|
+
"../bridge/src/sqlite/access/with-sync.ts"() {
|
|
709
703
|
"use strict";
|
|
710
704
|
init_cli_process_interrupt();
|
|
711
705
|
init_sqlite_errors();
|
|
@@ -714,7 +708,7 @@ var init_with_sync = __esm({
|
|
|
714
708
|
}
|
|
715
709
|
});
|
|
716
710
|
|
|
717
|
-
// src/sqlite/access/index.ts
|
|
711
|
+
// ../bridge/src/sqlite/access/index.ts
|
|
718
712
|
function createSqliteDatabaseAccess(config) {
|
|
719
713
|
const migrateState = createSqliteMigrateState();
|
|
720
714
|
function safeClose(db) {
|
|
@@ -757,7 +751,7 @@ function createSqliteDatabaseAccess(config) {
|
|
|
757
751
|
};
|
|
758
752
|
}
|
|
759
753
|
var init_access = __esm({
|
|
760
|
-
"src/sqlite/access/index.ts"() {
|
|
754
|
+
"../bridge/src/sqlite/access/index.ts"() {
|
|
761
755
|
"use strict";
|
|
762
756
|
init_sqlite_lock_path();
|
|
763
757
|
init_sqlite_lock_retry();
|
|
@@ -768,7 +762,7 @@ var init_access = __esm({
|
|
|
768
762
|
}
|
|
769
763
|
});
|
|
770
764
|
|
|
771
|
-
// src/sqlite/read-migration-sql.ts
|
|
765
|
+
// ../bridge/src/sqlite/read-migration-sql.ts
|
|
772
766
|
import { existsSync, readFileSync } from "node:fs";
|
|
773
767
|
import { dirname, join } from "node:path";
|
|
774
768
|
import { fileURLToPath } from "node:url";
|
|
@@ -792,12 +786,12 @@ function readCodeNavCacheMigrationSql(filename) {
|
|
|
792
786
|
return readMigrationSql(filename, "code-nav-cache-migrations", "code-nav-cache/migrations");
|
|
793
787
|
}
|
|
794
788
|
var init_read_migration_sql = __esm({
|
|
795
|
-
"src/sqlite/read-migration-sql.ts"() {
|
|
789
|
+
"../bridge/src/sqlite/read-migration-sql.ts"() {
|
|
796
790
|
"use strict";
|
|
797
791
|
}
|
|
798
792
|
});
|
|
799
793
|
|
|
800
|
-
// src/sqlite/run-sqlite-migrations.ts
|
|
794
|
+
// ../bridge/src/sqlite/run-sqlite-migrations.ts
|
|
801
795
|
function checkpointSatisfiedByLegacyChain(applied, replacesLegacyMigrations) {
|
|
802
796
|
return Array.isArray(replacesLegacyMigrations) && replacesLegacyMigrations.length > 0 && replacesLegacyMigrations.every((n) => applied.has(n));
|
|
803
797
|
}
|
|
@@ -837,12 +831,12 @@ function runSqliteMigrations(db, migrations, bootstrapSql, label) {
|
|
|
837
831
|
}
|
|
838
832
|
}
|
|
839
833
|
var init_run_sqlite_migrations = __esm({
|
|
840
|
-
"src/sqlite/run-sqlite-migrations.ts"() {
|
|
834
|
+
"../bridge/src/sqlite/run-sqlite-migrations.ts"() {
|
|
841
835
|
"use strict";
|
|
842
836
|
}
|
|
843
837
|
});
|
|
844
838
|
|
|
845
|
-
// src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts
|
|
839
|
+
// ../bridge/src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts
|
|
846
840
|
function migrateCodeNavCacheSqlite(db) {
|
|
847
841
|
runSqliteMigrations(
|
|
848
842
|
db,
|
|
@@ -853,7 +847,7 @@ function migrateCodeNavCacheSqlite(db) {
|
|
|
853
847
|
}
|
|
854
848
|
var CHECKPOINT_V1, CHECKPOINT_V1_SQL, MIGRATION_002, MIGRATION_002_SQL, MIGRATION_003, MIGRATION_003_SQL, CODE_NAV_CACHE_SQLITE_MIGRATIONS;
|
|
855
849
|
var init_migrate_code_nav_cache_sqlite = __esm({
|
|
856
|
-
"src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts"() {
|
|
850
|
+
"../bridge/src/sqlite/code-nav-cache/migrate-code-nav-cache-sqlite.ts"() {
|
|
857
851
|
"use strict";
|
|
858
852
|
init_read_migration_sql();
|
|
859
853
|
init_run_sqlite_migrations();
|
|
@@ -909,7 +903,7 @@ var init_migrate_code_nav_cache_sqlite = __esm({
|
|
|
909
903
|
}
|
|
910
904
|
});
|
|
911
905
|
|
|
912
|
-
// src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts
|
|
906
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts
|
|
913
907
|
import fs4 from "node:fs";
|
|
914
908
|
function isSqliteCorruptError(e) {
|
|
915
909
|
const msg = e instanceof Error ? e.message : String(e);
|
|
@@ -953,7 +947,7 @@ function withCodeNavCacheSqliteWorkLock(fn) {
|
|
|
953
947
|
}
|
|
954
948
|
var chain, workLockDepth;
|
|
955
949
|
var init_code_nav_cache_sqlite_work_lock = __esm({
|
|
956
|
-
"src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts"() {
|
|
950
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-work-lock.ts"() {
|
|
957
951
|
"use strict";
|
|
958
952
|
init_code_nav_cache_paths();
|
|
959
953
|
chain = Promise.resolve();
|
|
@@ -961,7 +955,7 @@ var init_code_nav_cache_sqlite_work_lock = __esm({
|
|
|
961
955
|
}
|
|
962
956
|
});
|
|
963
957
|
|
|
964
|
-
// src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts
|
|
958
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts
|
|
965
959
|
async function withCodeNavCacheSqliteWorkLockWrapped(fn) {
|
|
966
960
|
return withCodeNavCacheSqliteWorkLock(async () => {
|
|
967
961
|
const nested = getCodeNavCacheAccessDepth() > 0;
|
|
@@ -981,7 +975,7 @@ function closeAllCodeNavCacheSqliteConnections() {
|
|
|
981
975
|
}
|
|
982
976
|
var codeNavCacheSqlite;
|
|
983
977
|
var init_code_nav_cache_wrapped_access = __esm({
|
|
984
|
-
"src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts"() {
|
|
978
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-wrapped-access.ts"() {
|
|
985
979
|
"use strict";
|
|
986
980
|
init_access();
|
|
987
981
|
init_sqlite_errors();
|
|
@@ -1003,9 +997,9 @@ var init_code_nav_cache_wrapped_access = __esm({
|
|
|
1003
997
|
}
|
|
1004
998
|
});
|
|
1005
999
|
|
|
1006
|
-
// src/sqlite/code-nav-cache/instance.ts
|
|
1000
|
+
// ../bridge/src/sqlite/code-nav-cache/instance.ts
|
|
1007
1001
|
var init_instance = __esm({
|
|
1008
|
-
"src/sqlite/code-nav-cache/instance.ts"() {
|
|
1002
|
+
"../bridge/src/sqlite/code-nav-cache/instance.ts"() {
|
|
1009
1003
|
"use strict";
|
|
1010
1004
|
init_cli_process_interrupt();
|
|
1011
1005
|
init_shutdown_state();
|
|
@@ -1017,7 +1011,7 @@ var init_instance = __esm({
|
|
|
1017
1011
|
}
|
|
1018
1012
|
});
|
|
1019
1013
|
|
|
1020
|
-
// src/sqlite/code-nav-cache/database.ts
|
|
1014
|
+
// ../bridge/src/sqlite/code-nav-cache/database.ts
|
|
1021
1015
|
async function withCodeNavCacheSqlite(fn) {
|
|
1022
1016
|
if (isCodeNavCacheUnavailable()) throw new CodeNavCacheUnavailableError();
|
|
1023
1017
|
const initPromise3 = getCodeNavCacheInitPromise();
|
|
@@ -1029,8 +1023,7 @@ async function withCodeNavCacheSqlite(fn) {
|
|
|
1029
1023
|
}
|
|
1030
1024
|
var safeCloseCodeNavCacheSqliteDatabase, openCodeNavCacheSqliteConnection;
|
|
1031
1025
|
var init_database = __esm({
|
|
1032
|
-
"src/sqlite/code-nav-cache/database.ts"() {
|
|
1033
|
-
"use strict";
|
|
1026
|
+
"../bridge/src/sqlite/code-nav-cache/database.ts"() {
|
|
1034
1027
|
init_code_nav_cache_availability();
|
|
1035
1028
|
init_instance();
|
|
1036
1029
|
init_sqlite_errors();
|
|
@@ -1042,7 +1035,7 @@ var init_database = __esm({
|
|
|
1042
1035
|
}
|
|
1043
1036
|
});
|
|
1044
1037
|
|
|
1045
|
-
// src/paths/normalize-resolved-path.ts
|
|
1038
|
+
// ../bridge/src/paths/normalize-resolved-path.ts
|
|
1046
1039
|
import fs5 from "node:fs";
|
|
1047
1040
|
import path2 from "node:path";
|
|
1048
1041
|
function normalizeResolvedPath(resolved) {
|
|
@@ -1054,12 +1047,11 @@ function normalizeResolvedPath(resolved) {
|
|
|
1054
1047
|
}
|
|
1055
1048
|
}
|
|
1056
1049
|
var init_normalize_resolved_path = __esm({
|
|
1057
|
-
"src/paths/normalize-resolved-path.ts"() {
|
|
1058
|
-
"use strict";
|
|
1050
|
+
"../bridge/src/paths/normalize-resolved-path.ts"() {
|
|
1059
1051
|
}
|
|
1060
1052
|
});
|
|
1061
1053
|
|
|
1062
|
-
// src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts
|
|
1054
|
+
// ../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts
|
|
1063
1055
|
function runCodeNavCacheWriteTransaction(db, fn) {
|
|
1064
1056
|
db.run("BEGIN IMMEDIATE");
|
|
1065
1057
|
try {
|
|
@@ -1075,12 +1067,11 @@ function runCodeNavCacheWriteTransaction(db, fn) {
|
|
|
1075
1067
|
}
|
|
1076
1068
|
}
|
|
1077
1069
|
var init_code_nav_cache_sqlite_transaction = __esm({
|
|
1078
|
-
"src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts"() {
|
|
1079
|
-
"use strict";
|
|
1070
|
+
"../bridge/src/sqlite/code-nav-cache/code-nav-cache-sqlite-transaction.ts"() {
|
|
1080
1071
|
}
|
|
1081
1072
|
});
|
|
1082
1073
|
|
|
1083
|
-
// src/code-nav/yield-during-work.ts
|
|
1074
|
+
// ../bridge/src/code-nav/yield-during-work.ts
|
|
1084
1075
|
function createCodeNavYieldState() {
|
|
1085
1076
|
return { n: 0 };
|
|
1086
1077
|
}
|
|
@@ -1093,7 +1084,7 @@ async function yieldDuringCodeNavWork(state) {
|
|
|
1093
1084
|
}
|
|
1094
1085
|
var CODE_NAV_YIELD_EVERY;
|
|
1095
1086
|
var init_yield_during_work = __esm({
|
|
1096
|
-
"src/code-nav/yield-during-work.ts"() {
|
|
1087
|
+
"../bridge/src/code-nav/yield-during-work.ts"() {
|
|
1097
1088
|
"use strict";
|
|
1098
1089
|
init_cli_process_interrupt();
|
|
1099
1090
|
init_in_flight();
|
|
@@ -1102,7 +1093,7 @@ var init_yield_during_work = __esm({
|
|
|
1102
1093
|
}
|
|
1103
1094
|
});
|
|
1104
1095
|
|
|
1105
|
-
// src/sqlite/cli-sqlite-paths.ts
|
|
1096
|
+
// ../bridge/src/sqlite/cli-sqlite-paths.ts
|
|
1106
1097
|
import fs6 from "node:fs";
|
|
1107
1098
|
import path3 from "node:path";
|
|
1108
1099
|
import os2 from "node:os";
|
|
@@ -1116,25 +1107,24 @@ function ensureCliSqliteParentDir(sqlitePath) {
|
|
|
1116
1107
|
if (!fs6.existsSync(dir)) fs6.mkdirSync(dir, { recursive: true });
|
|
1117
1108
|
}
|
|
1118
1109
|
var init_cli_sqlite_paths = __esm({
|
|
1119
|
-
"src/sqlite/cli-sqlite-paths.ts"() {
|
|
1110
|
+
"../bridge/src/sqlite/cli-sqlite-paths.ts"() {
|
|
1120
1111
|
"use strict";
|
|
1121
1112
|
}
|
|
1122
1113
|
});
|
|
1123
1114
|
|
|
1124
|
-
// src/files/index/constants.ts
|
|
1115
|
+
// ../bridge/src/files/index/constants.ts
|
|
1125
1116
|
import path4 from "node:path";
|
|
1126
1117
|
import os3 from "node:os";
|
|
1127
1118
|
var INDEX_WORK_YIELD_EVERY, INDEX_DIR, INDEX_HASH_LEN;
|
|
1128
1119
|
var init_constants = __esm({
|
|
1129
|
-
"src/files/index/constants.ts"() {
|
|
1130
|
-
"use strict";
|
|
1120
|
+
"../bridge/src/files/index/constants.ts"() {
|
|
1131
1121
|
INDEX_WORK_YIELD_EVERY = 128;
|
|
1132
1122
|
INDEX_DIR = path4.join(os3.homedir(), ".buildautomaton");
|
|
1133
1123
|
INDEX_HASH_LEN = 16;
|
|
1134
1124
|
}
|
|
1135
1125
|
});
|
|
1136
1126
|
|
|
1137
|
-
// src/prompt-turn-queue/paths.ts
|
|
1127
|
+
// ../bridge/src/prompt-turn-queue/paths.ts
|
|
1138
1128
|
import path5 from "node:path";
|
|
1139
1129
|
import os4 from "node:os";
|
|
1140
1130
|
function getPromptQueuesDirectory() {
|
|
@@ -1143,12 +1133,11 @@ function getPromptQueuesDirectory() {
|
|
|
1143
1133
|
return path5.join(os4.homedir(), ".buildautomaton", "queues");
|
|
1144
1134
|
}
|
|
1145
1135
|
var init_paths = __esm({
|
|
1146
|
-
"src/prompt-turn-queue/paths.ts"() {
|
|
1147
|
-
"use strict";
|
|
1136
|
+
"../bridge/src/prompt-turn-queue/paths.ts"() {
|
|
1148
1137
|
}
|
|
1149
1138
|
});
|
|
1150
1139
|
|
|
1151
|
-
// src/sqlite/legacy_migration/archive-to-old-version.ts
|
|
1140
|
+
// ../bridge/src/sqlite/legacy_migration/archive-to-old-version.ts
|
|
1152
1141
|
import fs7 from "node:fs";
|
|
1153
1142
|
import path6 from "node:path";
|
|
1154
1143
|
function moveLegacyFileToOldVersionBackup(category, sourcePath) {
|
|
@@ -1165,14 +1154,14 @@ function moveLegacyFileToOldVersionBackup(category, sourcePath) {
|
|
|
1165
1154
|
}
|
|
1166
1155
|
var OLD_VERSION_DIR;
|
|
1167
1156
|
var init_archive_to_old_version = __esm({
|
|
1168
|
-
"src/sqlite/legacy_migration/archive-to-old-version.ts"() {
|
|
1157
|
+
"../bridge/src/sqlite/legacy_migration/archive-to-old-version.ts"() {
|
|
1169
1158
|
"use strict";
|
|
1170
1159
|
init_constants();
|
|
1171
1160
|
OLD_VERSION_DIR = path6.join(INDEX_DIR, "old-version");
|
|
1172
1161
|
}
|
|
1173
1162
|
});
|
|
1174
1163
|
|
|
1175
|
-
// src/sqlite/legacy_migration/archive-file-index-json.ts
|
|
1164
|
+
// ../bridge/src/sqlite/legacy_migration/archive-file-index-json.ts
|
|
1176
1165
|
import fs8 from "node:fs";
|
|
1177
1166
|
import path7 from "node:path";
|
|
1178
1167
|
function archiveLegacyFileIndexJsonFiles() {
|
|
@@ -1193,14 +1182,14 @@ function archiveLegacyFileIndexJsonFiles() {
|
|
|
1193
1182
|
}
|
|
1194
1183
|
}
|
|
1195
1184
|
var init_archive_file_index_json = __esm({
|
|
1196
|
-
"src/sqlite/legacy_migration/archive-file-index-json.ts"() {
|
|
1185
|
+
"../bridge/src/sqlite/legacy_migration/archive-file-index-json.ts"() {
|
|
1197
1186
|
"use strict";
|
|
1198
1187
|
init_constants();
|
|
1199
1188
|
init_archive_to_old_version();
|
|
1200
1189
|
}
|
|
1201
1190
|
});
|
|
1202
1191
|
|
|
1203
|
-
// src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts
|
|
1192
|
+
// ../bridge/src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts
|
|
1204
1193
|
import fs9 from "node:fs";
|
|
1205
1194
|
import path8 from "node:path";
|
|
1206
1195
|
import os5 from "node:os";
|
|
@@ -1244,14 +1233,14 @@ function importLegacyAgentSessionsFromDisk(db) {
|
|
|
1244
1233
|
}
|
|
1245
1234
|
var LEGACY_AGENT_SESSION_DIR;
|
|
1246
1235
|
var init_import_agent_sessions_from_disk = __esm({
|
|
1247
|
-
"src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts"() {
|
|
1236
|
+
"../bridge/src/sqlite/legacy_migration/import-agent-sessions-from-disk.ts"() {
|
|
1248
1237
|
"use strict";
|
|
1249
1238
|
init_archive_to_old_version();
|
|
1250
1239
|
LEGACY_AGENT_SESSION_DIR = path8.join(os5.homedir(), ".buildautomaton", "agent-sessions");
|
|
1251
1240
|
}
|
|
1252
1241
|
});
|
|
1253
1242
|
|
|
1254
|
-
// src/sqlite/legacy_migration/parse-persisted-queue-json.ts
|
|
1243
|
+
// ../bridge/src/sqlite/legacy_migration/parse-persisted-queue-json.ts
|
|
1255
1244
|
function parsePersistedQueueFromJson(raw) {
|
|
1256
1245
|
try {
|
|
1257
1246
|
const o = JSON.parse(raw);
|
|
@@ -1263,12 +1252,12 @@ function parsePersistedQueueFromJson(raw) {
|
|
|
1263
1252
|
}
|
|
1264
1253
|
}
|
|
1265
1254
|
var init_parse_persisted_queue_json = __esm({
|
|
1266
|
-
"src/sqlite/legacy_migration/parse-persisted-queue-json.ts"() {
|
|
1255
|
+
"../bridge/src/sqlite/legacy_migration/parse-persisted-queue-json.ts"() {
|
|
1267
1256
|
"use strict";
|
|
1268
1257
|
}
|
|
1269
1258
|
});
|
|
1270
1259
|
|
|
1271
|
-
// src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts
|
|
1260
|
+
// ../bridge/src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts
|
|
1272
1261
|
import fs10 from "node:fs";
|
|
1273
1262
|
import path9 from "node:path";
|
|
1274
1263
|
function importLegacyPromptQueuesFromDisk(db) {
|
|
@@ -1300,7 +1289,7 @@ function importLegacyPromptQueuesFromDisk(db) {
|
|
|
1300
1289
|
}
|
|
1301
1290
|
}
|
|
1302
1291
|
var init_import_prompt_queues_from_disk = __esm({
|
|
1303
|
-
"src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts"() {
|
|
1292
|
+
"../bridge/src/sqlite/legacy_migration/import-prompt-queues-from-disk.ts"() {
|
|
1304
1293
|
"use strict";
|
|
1305
1294
|
init_paths();
|
|
1306
1295
|
init_archive_to_old_version();
|
|
@@ -1308,7 +1297,7 @@ var init_import_prompt_queues_from_disk = __esm({
|
|
|
1308
1297
|
}
|
|
1309
1298
|
});
|
|
1310
1299
|
|
|
1311
|
-
// src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts
|
|
1300
|
+
// ../bridge/src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts
|
|
1312
1301
|
import fs11 from "node:fs";
|
|
1313
1302
|
function legacyCliDiskMigrationIsPending() {
|
|
1314
1303
|
try {
|
|
@@ -1345,7 +1334,7 @@ function importCliSqliteLegacyDiskData(db, log) {
|
|
|
1345
1334
|
}
|
|
1346
1335
|
}
|
|
1347
1336
|
var init_import_cli_legacy_disk_data = __esm({
|
|
1348
|
-
"src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts"() {
|
|
1337
|
+
"../bridge/src/sqlite/legacy_migration/import-cli-legacy-disk-data.ts"() {
|
|
1349
1338
|
"use strict";
|
|
1350
1339
|
init_constants();
|
|
1351
1340
|
init_paths();
|
|
@@ -1355,7 +1344,7 @@ var init_import_cli_legacy_disk_data = __esm({
|
|
|
1355
1344
|
}
|
|
1356
1345
|
});
|
|
1357
1346
|
|
|
1358
|
-
// src/sqlite/migrate-cli-sqlite.ts
|
|
1347
|
+
// ../bridge/src/sqlite/migrate-cli-sqlite.ts
|
|
1359
1348
|
function agentCapabilitiesTableState(db) {
|
|
1360
1349
|
const rows = db.all(
|
|
1361
1350
|
`SELECT name FROM sqlite_master WHERE type='table' AND name IN ('agent_capabilities', 'agent_capability_cache')`
|
|
@@ -1375,7 +1364,7 @@ function migrateCliSqlite(db) {
|
|
|
1375
1364
|
}
|
|
1376
1365
|
var CHECKPOINT_V12, CHECKPOINT_V1_SQL2, AGENT_CAPABILITIES_SQL, DROP_CACHE_TABLES_SQL, CLI_SQLITE_MIGRATIONS;
|
|
1377
1366
|
var init_migrate_cli_sqlite = __esm({
|
|
1378
|
-
"src/sqlite/migrate-cli-sqlite.ts"() {
|
|
1367
|
+
"../bridge/src/sqlite/migrate-cli-sqlite.ts"() {
|
|
1379
1368
|
"use strict";
|
|
1380
1369
|
init_read_migration_sql();
|
|
1381
1370
|
init_run_sqlite_migrations();
|
|
@@ -1426,11 +1415,10 @@ var init_migrate_cli_sqlite = __esm({
|
|
|
1426
1415
|
}
|
|
1427
1416
|
});
|
|
1428
1417
|
|
|
1429
|
-
// src/sqlite/cli-database.ts
|
|
1418
|
+
// ../bridge/src/sqlite/cli-database.ts
|
|
1430
1419
|
var legacyImportDoneForPath, cliSqlite, safeCloseCliSqliteDatabase, openCliSqliteConnection, withCliSqliteSync, withCliSqlite, ensureCliSqliteInitialized;
|
|
1431
1420
|
var init_cli_database = __esm({
|
|
1432
|
-
"src/sqlite/cli-database.ts"() {
|
|
1433
|
-
"use strict";
|
|
1421
|
+
"../bridge/src/sqlite/cli-database.ts"() {
|
|
1434
1422
|
init_cli_process_interrupt();
|
|
1435
1423
|
init_cli_sqlite_paths();
|
|
1436
1424
|
init_access();
|
|
@@ -1457,7 +1445,7 @@ var init_cli_database = __esm({
|
|
|
1457
1445
|
}
|
|
1458
1446
|
});
|
|
1459
1447
|
|
|
1460
|
-
// src/files/index/walk-workspace-tree.ts
|
|
1448
|
+
// ../bridge/src/files/index/walk-workspace-tree.ts
|
|
1461
1449
|
function shouldSkipWorkspaceWalkEntry(name) {
|
|
1462
1450
|
return DEPENDENCY_INSTALL_DIR_NAMES.has(name);
|
|
1463
1451
|
}
|
|
@@ -1466,8 +1454,7 @@ function createWalkYieldState() {
|
|
|
1466
1454
|
}
|
|
1467
1455
|
var DEPENDENCY_INSTALL_DIR_NAMES;
|
|
1468
1456
|
var init_walk_workspace_tree = __esm({
|
|
1469
|
-
"src/files/index/walk-workspace-tree.ts"() {
|
|
1470
|
-
"use strict";
|
|
1457
|
+
"../bridge/src/files/index/walk-workspace-tree.ts"() {
|
|
1471
1458
|
init_in_flight();
|
|
1472
1459
|
init_cli_process_interrupt();
|
|
1473
1460
|
init_cli_database();
|
|
@@ -1942,7 +1929,7 @@ var require_ignore = __commonJS({
|
|
|
1942
1929
|
}
|
|
1943
1930
|
});
|
|
1944
1931
|
|
|
1945
|
-
// src/code-nav/gitignore-filter.ts
|
|
1932
|
+
// ../bridge/src/code-nav/gitignore-filter.ts
|
|
1946
1933
|
import fs12 from "node:fs";
|
|
1947
1934
|
import path10 from "node:path";
|
|
1948
1935
|
function normalizeRelPath(relPath) {
|
|
@@ -1972,7 +1959,7 @@ async function isPathGitIgnored(root, relPath) {
|
|
|
1972
1959
|
}
|
|
1973
1960
|
var import_ignore, DEFAULT_IGNORED, GitignoreFilter;
|
|
1974
1961
|
var init_gitignore_filter = __esm({
|
|
1975
|
-
"src/code-nav/gitignore-filter.ts"() {
|
|
1962
|
+
"../bridge/src/code-nav/gitignore-filter.ts"() {
|
|
1976
1963
|
"use strict";
|
|
1977
1964
|
import_ignore = __toESM(require_ignore(), 1);
|
|
1978
1965
|
DEFAULT_IGNORED = [".git", ".git/**"];
|
|
@@ -2007,7 +1994,7 @@ var init_gitignore_filter = __esm({
|
|
|
2007
1994
|
}
|
|
2008
1995
|
});
|
|
2009
1996
|
|
|
2010
|
-
// src/code-nav/language-registry.ts
|
|
1997
|
+
// ../bridge/src/code-nav/language-registry.ts
|
|
2011
1998
|
import path11 from "node:path";
|
|
2012
1999
|
function languageAssetPaths(key, wasmFile) {
|
|
2013
2000
|
return {
|
|
@@ -2029,7 +2016,7 @@ function isCodeNavSupportedPath(filePath) {
|
|
|
2029
2016
|
}
|
|
2030
2017
|
var EXT_TO_LANGUAGE_KEY, LANGUAGE_SPECS;
|
|
2031
2018
|
var init_language_registry = __esm({
|
|
2032
|
-
"src/code-nav/language-registry.ts"() {
|
|
2019
|
+
"../bridge/src/code-nav/language-registry.ts"() {
|
|
2033
2020
|
"use strict";
|
|
2034
2021
|
EXT_TO_LANGUAGE_KEY = {
|
|
2035
2022
|
js: "javascript",
|
|
@@ -2065,7 +2052,7 @@ var init_language_registry = __esm({
|
|
|
2065
2052
|
}
|
|
2066
2053
|
});
|
|
2067
2054
|
|
|
2068
|
-
// src/code-nav/walk-code-nav-files.ts
|
|
2055
|
+
// ../bridge/src/code-nav/walk-code-nav-files.ts
|
|
2069
2056
|
import fs13 from "node:fs";
|
|
2070
2057
|
import path12 from "node:path";
|
|
2071
2058
|
async function walkCodeNavFilesInDirectory(dir, baseDir, relDir, filter, onFile, state) {
|
|
@@ -2114,7 +2101,7 @@ async function walkCodeNavFilesAsync(rootDir, onFile, state = createWalkYieldSta
|
|
|
2114
2101
|
await walkCodeNavFilesInDirectory(resolved, resolved, "", filter, onFile, state);
|
|
2115
2102
|
}
|
|
2116
2103
|
var init_walk_code_nav_files = __esm({
|
|
2117
|
-
"src/code-nav/walk-code-nav-files.ts"() {
|
|
2104
|
+
"../bridge/src/code-nav/walk-code-nav-files.ts"() {
|
|
2118
2105
|
"use strict";
|
|
2119
2106
|
init_walk_workspace_tree();
|
|
2120
2107
|
init_in_flight();
|
|
@@ -2126,16 +2113,16 @@ var init_walk_code_nav_files = __esm({
|
|
|
2126
2113
|
}
|
|
2127
2114
|
});
|
|
2128
2115
|
|
|
2129
|
-
// src/code-nav/symbol-index/sqlite/symbol-index-version.ts
|
|
2116
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/symbol-index-version.ts
|
|
2130
2117
|
var SYMBOL_INDEX_VERSION;
|
|
2131
2118
|
var init_symbol_index_version = __esm({
|
|
2132
|
-
"src/code-nav/symbol-index/sqlite/symbol-index-version.ts"() {
|
|
2119
|
+
"../bridge/src/code-nav/symbol-index/sqlite/symbol-index-version.ts"() {
|
|
2133
2120
|
"use strict";
|
|
2134
2121
|
SYMBOL_INDEX_VERSION = 11;
|
|
2135
2122
|
}
|
|
2136
2123
|
});
|
|
2137
2124
|
|
|
2138
|
-
// src/files/cwd/bridge-root.ts
|
|
2125
|
+
// ../bridge/src/files/cwd/bridge-root.ts
|
|
2139
2126
|
function getBridgeRoot() {
|
|
2140
2127
|
if (bridgeRootPath == null) {
|
|
2141
2128
|
bridgeRootPath = normalizeResolvedPath(process.cwd());
|
|
@@ -2144,27 +2131,25 @@ function getBridgeRoot() {
|
|
|
2144
2131
|
}
|
|
2145
2132
|
var bridgeRootPath;
|
|
2146
2133
|
var init_bridge_root = __esm({
|
|
2147
|
-
"src/files/cwd/bridge-root.ts"() {
|
|
2148
|
-
"use strict";
|
|
2134
|
+
"../bridge/src/files/cwd/bridge-root.ts"() {
|
|
2149
2135
|
init_normalize_resolved_path();
|
|
2150
2136
|
bridgeRootPath = null;
|
|
2151
2137
|
}
|
|
2152
2138
|
});
|
|
2153
2139
|
|
|
2154
|
-
// src/files/index/paths.ts
|
|
2140
|
+
// ../bridge/src/files/index/paths.ts
|
|
2155
2141
|
import path13 from "node:path";
|
|
2156
2142
|
import crypto from "node:crypto";
|
|
2157
2143
|
function getCwdHashForFileIndex(resolvedCwd) {
|
|
2158
2144
|
return crypto.createHash("sha256").update(path13.resolve(resolvedCwd)).digest("hex").slice(0, INDEX_HASH_LEN);
|
|
2159
2145
|
}
|
|
2160
2146
|
var init_paths2 = __esm({
|
|
2161
|
-
"src/files/index/paths.ts"() {
|
|
2162
|
-
"use strict";
|
|
2147
|
+
"../bridge/src/files/index/paths.ts"() {
|
|
2163
2148
|
init_constants();
|
|
2164
2149
|
}
|
|
2165
2150
|
});
|
|
2166
2151
|
|
|
2167
|
-
// src/code-nav/symbol-index/sqlite/parent-path.ts
|
|
2152
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/parent-path.ts
|
|
2168
2153
|
function normalizeParentPath(resolved) {
|
|
2169
2154
|
return normalizeResolvedPath(resolved);
|
|
2170
2155
|
}
|
|
@@ -2216,7 +2201,7 @@ function getSymbolIndexParentContext(db, resolvedParentPath) {
|
|
|
2216
2201
|
return rowToSymbolIndexParentContext(row);
|
|
2217
2202
|
}
|
|
2218
2203
|
var init_parent_path = __esm({
|
|
2219
|
-
"src/code-nav/symbol-index/sqlite/parent-path.ts"() {
|
|
2204
|
+
"../bridge/src/code-nav/symbol-index/sqlite/parent-path.ts"() {
|
|
2220
2205
|
"use strict";
|
|
2221
2206
|
init_bridge_root();
|
|
2222
2207
|
init_paths2();
|
|
@@ -2226,7 +2211,7 @@ var init_parent_path = __esm({
|
|
|
2226
2211
|
}
|
|
2227
2212
|
});
|
|
2228
2213
|
|
|
2229
|
-
// src/code-nav/symbol-index/storage/content-hash-check.ts
|
|
2214
|
+
// ../bridge/src/code-nav/symbol-index/storage/content-hash-check.ts
|
|
2230
2215
|
function contentHashFileHasTags(db, contentHash, filePath) {
|
|
2231
2216
|
const row = db.get(
|
|
2232
2217
|
"SELECT 1 as ok FROM symbol_index_tag WHERE content_hash = ? AND file_path = ? LIMIT 1",
|
|
@@ -2242,12 +2227,12 @@ function contentHashFileHasImports(db, contentHash, filePath) {
|
|
|
2242
2227
|
return row != null;
|
|
2243
2228
|
}
|
|
2244
2229
|
var init_content_hash_check = __esm({
|
|
2245
|
-
"src/code-nav/symbol-index/storage/content-hash-check.ts"() {
|
|
2230
|
+
"../bridge/src/code-nav/symbol-index/storage/content-hash-check.ts"() {
|
|
2246
2231
|
"use strict";
|
|
2247
2232
|
}
|
|
2248
2233
|
});
|
|
2249
2234
|
|
|
2250
|
-
// src/code-nav/symbol-index/storage/insert-symbol-content.ts
|
|
2235
|
+
// ../bridge/src/code-nav/symbol-index/storage/insert-symbol-content.ts
|
|
2251
2236
|
function insertSymbolTagsForContent(db, contentHash, filePath, tags) {
|
|
2252
2237
|
const ins = db.prepare(
|
|
2253
2238
|
`INSERT OR IGNORE INTO symbol_index_tag
|
|
@@ -2305,12 +2290,12 @@ function insertSymbolImportsForContent(db, contentHash, filePath, imports) {
|
|
|
2305
2290
|
}
|
|
2306
2291
|
}
|
|
2307
2292
|
var init_insert_symbol_content = __esm({
|
|
2308
|
-
"src/code-nav/symbol-index/storage/insert-symbol-content.ts"() {
|
|
2293
|
+
"../bridge/src/code-nav/symbol-index/storage/insert-symbol-content.ts"() {
|
|
2309
2294
|
"use strict";
|
|
2310
2295
|
}
|
|
2311
2296
|
});
|
|
2312
2297
|
|
|
2313
|
-
// src/code-nav/symbol-index/storage/parent-file-map.ts
|
|
2298
|
+
// ../bridge/src/code-nav/symbol-index/storage/parent-file-map.ts
|
|
2314
2299
|
function getParentFileMapHash(db, parentId, filePath) {
|
|
2315
2300
|
const row = db.get(
|
|
2316
2301
|
"SELECT content_hash FROM symbol_parent_file_map WHERE parent_id = ? AND file_path = ?",
|
|
@@ -2372,12 +2357,12 @@ function clearParentFileMapBatch(db, parentId, limit) {
|
|
|
2372
2357
|
};
|
|
2373
2358
|
}
|
|
2374
2359
|
var init_parent_file_map = __esm({
|
|
2375
|
-
"src/code-nav/symbol-index/storage/parent-file-map.ts"() {
|
|
2360
|
+
"../bridge/src/code-nav/symbol-index/storage/parent-file-map.ts"() {
|
|
2376
2361
|
"use strict";
|
|
2377
2362
|
}
|
|
2378
2363
|
});
|
|
2379
2364
|
|
|
2380
|
-
// src/code-nav/symbol-index/storage/symbol-content-index.ts
|
|
2365
|
+
// ../bridge/src/code-nav/symbol-index/storage/symbol-content-index.ts
|
|
2381
2366
|
function upsertSymbolContentIndex(db, contentHash, filePath, tags, imports) {
|
|
2382
2367
|
if (tags.length > 0 && !contentHashFileHasTags(db, contentHash, filePath)) {
|
|
2383
2368
|
insertSymbolTagsForContent(db, contentHash, filePath, tags);
|
|
@@ -2392,7 +2377,7 @@ function deleteSymbolContentIfUnreferenced(db, contentHash) {
|
|
|
2392
2377
|
db.run("DELETE FROM symbol_index_import WHERE content_hash = ?", [contentHash]);
|
|
2393
2378
|
}
|
|
2394
2379
|
var init_symbol_content_index = __esm({
|
|
2395
|
-
"src/code-nav/symbol-index/storage/symbol-content-index.ts"() {
|
|
2380
|
+
"../bridge/src/code-nav/symbol-index/storage/symbol-content-index.ts"() {
|
|
2396
2381
|
"use strict";
|
|
2397
2382
|
init_content_hash_check();
|
|
2398
2383
|
init_insert_symbol_content();
|
|
@@ -2400,7 +2385,7 @@ var init_symbol_content_index = __esm({
|
|
|
2400
2385
|
}
|
|
2401
2386
|
});
|
|
2402
2387
|
|
|
2403
|
-
// src/code-nav/symbol-index/storage/effective-content.ts
|
|
2388
|
+
// ../bridge/src/code-nav/symbol-index/storage/effective-content.ts
|
|
2404
2389
|
function getEffectiveContentHash(db, ctx, filePath) {
|
|
2405
2390
|
const overlayHash = getParentFileMapHash(db, ctx.parentId, filePath);
|
|
2406
2391
|
if (overlayHash !== void 0) return overlayHash;
|
|
@@ -2433,24 +2418,24 @@ function listEffectiveIndexedFilePaths(db, ctx) {
|
|
|
2433
2418
|
return [...paths];
|
|
2434
2419
|
}
|
|
2435
2420
|
var init_effective_content = __esm({
|
|
2436
|
-
"src/code-nav/symbol-index/storage/effective-content.ts"() {
|
|
2421
|
+
"../bridge/src/code-nav/symbol-index/storage/effective-content.ts"() {
|
|
2437
2422
|
"use strict";
|
|
2438
2423
|
init_parent_file_map();
|
|
2439
2424
|
}
|
|
2440
2425
|
});
|
|
2441
2426
|
|
|
2442
|
-
// src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts
|
|
2427
|
+
// ../bridge/src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts
|
|
2443
2428
|
import crypto2 from "node:crypto";
|
|
2444
2429
|
function hashSymbolFileContent(source) {
|
|
2445
2430
|
return crypto2.createHash("sha256").update(source ?? "").digest("hex");
|
|
2446
2431
|
}
|
|
2447
2432
|
var init_symbol_file_content_hash = __esm({
|
|
2448
|
-
"src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts"() {
|
|
2433
|
+
"../bridge/src/code-nav/symbol-index/persistence/symbol-file-content-hash.ts"() {
|
|
2449
2434
|
"use strict";
|
|
2450
2435
|
}
|
|
2451
2436
|
});
|
|
2452
2437
|
|
|
2453
|
-
// src/code-nav/symbol-index/sqlite/file-data-persistence.ts
|
|
2438
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/file-data-persistence.ts
|
|
2454
2439
|
function gcReleasedHashes(db, hashes) {
|
|
2455
2440
|
for (const hash of hashes) {
|
|
2456
2441
|
if (hash != null) deleteSymbolContentIfUnreferenced(db, hash);
|
|
@@ -2488,7 +2473,7 @@ function clearSymbolIndexParentDataBatch(db, ctx, limit) {
|
|
|
2488
2473
|
return remaining;
|
|
2489
2474
|
}
|
|
2490
2475
|
var init_file_data_persistence = __esm({
|
|
2491
|
-
"src/code-nav/symbol-index/sqlite/file-data-persistence.ts"() {
|
|
2476
|
+
"../bridge/src/code-nav/symbol-index/sqlite/file-data-persistence.ts"() {
|
|
2492
2477
|
"use strict";
|
|
2493
2478
|
init_symbol_content_index();
|
|
2494
2479
|
init_effective_content();
|
|
@@ -2497,9 +2482,9 @@ var init_file_data_persistence = __esm({
|
|
|
2497
2482
|
}
|
|
2498
2483
|
});
|
|
2499
2484
|
|
|
2500
|
-
// src/code-nav/symbol-index/sqlite/population.ts
|
|
2485
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/population.ts
|
|
2501
2486
|
var init_population = __esm({
|
|
2502
|
-
"src/code-nav/symbol-index/sqlite/population.ts"() {
|
|
2487
|
+
"../bridge/src/code-nav/symbol-index/sqlite/population.ts"() {
|
|
2503
2488
|
"use strict";
|
|
2504
2489
|
init_database();
|
|
2505
2490
|
init_parent_path();
|
|
@@ -2507,9 +2492,9 @@ var init_population = __esm({
|
|
|
2507
2492
|
}
|
|
2508
2493
|
});
|
|
2509
2494
|
|
|
2510
|
-
// src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts
|
|
2495
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts
|
|
2511
2496
|
var init_symbol_index_sqlite = __esm({
|
|
2512
|
-
"src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts"() {
|
|
2497
|
+
"../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite.ts"() {
|
|
2513
2498
|
"use strict";
|
|
2514
2499
|
init_symbol_index_version();
|
|
2515
2500
|
init_parent_path();
|
|
@@ -2518,28 +2503,28 @@ var init_symbol_index_sqlite = __esm({
|
|
|
2518
2503
|
}
|
|
2519
2504
|
});
|
|
2520
2505
|
|
|
2521
|
-
// src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts
|
|
2506
|
+
// ../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts
|
|
2522
2507
|
function withSymbolIndexSqliteLock(fn) {
|
|
2523
2508
|
return withCodeNavCacheSqliteWorkLock(fn);
|
|
2524
2509
|
}
|
|
2525
2510
|
var init_symbol_index_sqlite_lock = __esm({
|
|
2526
|
-
"src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts"() {
|
|
2511
|
+
"../bridge/src/code-nav/symbol-index/sqlite/symbol-index-sqlite-lock.ts"() {
|
|
2527
2512
|
"use strict";
|
|
2528
2513
|
init_code_nav_cache_sqlite_work_lock();
|
|
2529
2514
|
}
|
|
2530
2515
|
});
|
|
2531
2516
|
|
|
2532
|
-
// src/code-nav/symbol-index/query/tag-query-shared.ts
|
|
2517
|
+
// ../bridge/src/code-nav/symbol-index/query/tag-query-shared.ts
|
|
2533
2518
|
var TAG_SELECT;
|
|
2534
2519
|
var init_tag_query_shared = __esm({
|
|
2535
|
-
"src/code-nav/symbol-index/query/tag-query-shared.ts"() {
|
|
2520
|
+
"../bridge/src/code-nav/symbol-index/query/tag-query-shared.ts"() {
|
|
2536
2521
|
"use strict";
|
|
2537
2522
|
TAG_SELECT = `file_path, name, role, kind, start_line, start_column, end_line, end_column,
|
|
2538
2523
|
scope_start_line, scope_start_column, parent_scope_start_line, parent_scope_start_column, nav_target_path, scope_chain`;
|
|
2539
2524
|
}
|
|
2540
2525
|
});
|
|
2541
2526
|
|
|
2542
|
-
// src/code-nav/symbol-index/storage/file-content-load.ts
|
|
2527
|
+
// ../bridge/src/code-nav/symbol-index/storage/file-content-load.ts
|
|
2543
2528
|
function loadFileTags(db, ctx, filePath) {
|
|
2544
2529
|
const contentHash = getEffectiveContentHash(db, ctx, filePath);
|
|
2545
2530
|
if (contentHash == null) return [];
|
|
@@ -2563,16 +2548,16 @@ function loadFileImports(db, ctx, filePath) {
|
|
|
2563
2548
|
);
|
|
2564
2549
|
}
|
|
2565
2550
|
var init_file_content_load = __esm({
|
|
2566
|
-
"src/code-nav/symbol-index/storage/file-content-load.ts"() {
|
|
2551
|
+
"../bridge/src/code-nav/symbol-index/storage/file-content-load.ts"() {
|
|
2567
2552
|
"use strict";
|
|
2568
2553
|
init_tag_query_shared();
|
|
2569
2554
|
init_effective_content();
|
|
2570
2555
|
}
|
|
2571
2556
|
});
|
|
2572
2557
|
|
|
2573
|
-
// src/code-nav/symbol-index/storage/symbol-parent-file-map.ts
|
|
2558
|
+
// ../bridge/src/code-nav/symbol-index/storage/symbol-parent-file-map.ts
|
|
2574
2559
|
var init_symbol_parent_file_map = __esm({
|
|
2575
|
-
"src/code-nav/symbol-index/storage/symbol-parent-file-map.ts"() {
|
|
2560
|
+
"../bridge/src/code-nav/symbol-index/storage/symbol-parent-file-map.ts"() {
|
|
2576
2561
|
"use strict";
|
|
2577
2562
|
init_parent_file_map();
|
|
2578
2563
|
init_effective_content();
|
|
@@ -2580,7 +2565,7 @@ var init_symbol_parent_file_map = __esm({
|
|
|
2580
2565
|
}
|
|
2581
2566
|
});
|
|
2582
2567
|
|
|
2583
|
-
// src/code-nav/symbol-index/build/load-indexed-file-entry.ts
|
|
2568
|
+
// ../bridge/src/code-nav/symbol-index/build/load-indexed-file-entry.ts
|
|
2584
2569
|
function dbTagToSymbolTag(row) {
|
|
2585
2570
|
return {
|
|
2586
2571
|
name: row.name,
|
|
@@ -2621,13 +2606,13 @@ function loadIndexedFileEntry(db, ctx, relPath) {
|
|
|
2621
2606
|
};
|
|
2622
2607
|
}
|
|
2623
2608
|
var init_load_indexed_file_entry = __esm({
|
|
2624
|
-
"src/code-nav/symbol-index/build/load-indexed-file-entry.ts"() {
|
|
2609
|
+
"../bridge/src/code-nav/symbol-index/build/load-indexed-file-entry.ts"() {
|
|
2625
2610
|
"use strict";
|
|
2626
2611
|
init_symbol_parent_file_map();
|
|
2627
2612
|
}
|
|
2628
2613
|
});
|
|
2629
2614
|
|
|
2630
|
-
// src/code-nav/symbol-index/query/list-direct-import-targets.ts
|
|
2615
|
+
// ../bridge/src/code-nav/symbol-index/query/list-direct-import-targets.ts
|
|
2631
2616
|
function normalizeRelPath2(filePath) {
|
|
2632
2617
|
return filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
2633
2618
|
}
|
|
@@ -2649,7 +2634,7 @@ async function listDirectImportTargetsForFileAsync(parentPath, filePath) {
|
|
|
2649
2634
|
return withCodeNavCacheSqlite((db) => listDirectImportTargetsWithDb(db, resolved, relPath));
|
|
2650
2635
|
}
|
|
2651
2636
|
var init_list_direct_import_targets = __esm({
|
|
2652
|
-
"src/code-nav/symbol-index/query/list-direct-import-targets.ts"() {
|
|
2637
|
+
"../bridge/src/code-nav/symbol-index/query/list-direct-import-targets.ts"() {
|
|
2653
2638
|
"use strict";
|
|
2654
2639
|
init_normalize_resolved_path();
|
|
2655
2640
|
init_database();
|
|
@@ -2658,7 +2643,7 @@ var init_list_direct_import_targets = __esm({
|
|
|
2658
2643
|
}
|
|
2659
2644
|
});
|
|
2660
2645
|
|
|
2661
|
-
// src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts
|
|
2646
|
+
// ../bridge/src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts
|
|
2662
2647
|
function symbolIndexFileIsReadyWithDb(db, parentPath, filePath) {
|
|
2663
2648
|
const normalizedParent = normalizeResolvedPath(parentPath);
|
|
2664
2649
|
const normalizedFile = filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
@@ -2688,7 +2673,7 @@ async function loadSymbolIndexReadyFileSet(parentPath) {
|
|
|
2688
2673
|
return new Set(paths);
|
|
2689
2674
|
}
|
|
2690
2675
|
var init_symbol_index_file_ready = __esm({
|
|
2691
|
-
"src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts"() {
|
|
2676
|
+
"../bridge/src/code-nav/symbol-index/lifecycle/symbol-index-file-ready.ts"() {
|
|
2692
2677
|
"use strict";
|
|
2693
2678
|
init_normalize_resolved_path();
|
|
2694
2679
|
init_database();
|
|
@@ -2697,7 +2682,7 @@ var init_symbol_index_file_ready = __esm({
|
|
|
2697
2682
|
}
|
|
2698
2683
|
});
|
|
2699
2684
|
|
|
2700
|
-
// src/code-nav/symbol-index/imports/star-reexport-names.ts
|
|
2685
|
+
// ../bridge/src/code-nav/symbol-index/imports/star-reexport-names.ts
|
|
2701
2686
|
function isModuleLevelDef(tag) {
|
|
2702
2687
|
return tag.role === "def" && tag.parentScopeStartLine == null && tag.parentScopeStartColumn == null;
|
|
2703
2688
|
}
|
|
@@ -2743,13 +2728,13 @@ function resolveExportableNames(filePath, entriesByPath, visited) {
|
|
|
2743
2728
|
}
|
|
2744
2729
|
var STAR_LOCAL_NAME;
|
|
2745
2730
|
var init_star_reexport_names = __esm({
|
|
2746
|
-
"src/code-nav/symbol-index/imports/star-reexport-names.ts"() {
|
|
2731
|
+
"../bridge/src/code-nav/symbol-index/imports/star-reexport-names.ts"() {
|
|
2747
2732
|
"use strict";
|
|
2748
2733
|
STAR_LOCAL_NAME = "*";
|
|
2749
2734
|
}
|
|
2750
2735
|
});
|
|
2751
2736
|
|
|
2752
|
-
// src/code-nav/symbol-index/imports/star-reexport-upstream.ts
|
|
2737
|
+
// ../bridge/src/code-nav/symbol-index/imports/star-reexport-upstream.ts
|
|
2753
2738
|
function collectUpstreamEntries(entry, resolveEntry) {
|
|
2754
2739
|
const entriesByPath = /* @__PURE__ */ new Map();
|
|
2755
2740
|
entriesByPath.set(entry.relPath, entry);
|
|
@@ -2770,12 +2755,12 @@ function collectUpstreamEntries(entry, resolveEntry) {
|
|
|
2770
2755
|
return [...entriesByPath.values()];
|
|
2771
2756
|
}
|
|
2772
2757
|
var init_star_reexport_upstream = __esm({
|
|
2773
|
-
"src/code-nav/symbol-index/imports/star-reexport-upstream.ts"() {
|
|
2758
|
+
"../bridge/src/code-nav/symbol-index/imports/star-reexport-upstream.ts"() {
|
|
2774
2759
|
"use strict";
|
|
2775
2760
|
}
|
|
2776
2761
|
});
|
|
2777
2762
|
|
|
2778
|
-
// src/code-nav/symbol-index/imports/expand-star-reexports.ts
|
|
2763
|
+
// ../bridge/src/code-nav/symbol-index/imports/expand-star-reexports.ts
|
|
2779
2764
|
function expandStarReexportForFile(entry, resolveEntry) {
|
|
2780
2765
|
const collected = collectUpstreamEntries(entry, resolveEntry);
|
|
2781
2766
|
return expandStarReexportBindings(collected).find((row) => row.relPath === entry.relPath) ?? entry;
|
|
@@ -2809,14 +2794,14 @@ function expandStarReexportBindings(collected) {
|
|
|
2809
2794
|
});
|
|
2810
2795
|
}
|
|
2811
2796
|
var init_expand_star_reexports = __esm({
|
|
2812
|
-
"src/code-nav/symbol-index/imports/expand-star-reexports.ts"() {
|
|
2797
|
+
"../bridge/src/code-nav/symbol-index/imports/expand-star-reexports.ts"() {
|
|
2813
2798
|
"use strict";
|
|
2814
2799
|
init_star_reexport_names();
|
|
2815
2800
|
init_star_reexport_upstream();
|
|
2816
2801
|
}
|
|
2817
2802
|
});
|
|
2818
2803
|
|
|
2819
|
-
// src/code-nav/symbol-index/persistence/persist-single-file.ts
|
|
2804
|
+
// ../bridge/src/code-nav/symbol-index/persistence/persist-single-file.ts
|
|
2820
2805
|
async function persistSymbolIndexFileAsync(resolved, relPath, source, tags, imports) {
|
|
2821
2806
|
await withCodeNavCacheSqlite(async (db) => {
|
|
2822
2807
|
runCodeNavCacheWriteTransaction(db, () => {
|
|
@@ -2838,7 +2823,7 @@ async function removeSymbolIndexFileAsync(resolved, relPath) {
|
|
|
2838
2823
|
});
|
|
2839
2824
|
}
|
|
2840
2825
|
var init_persist_single_file = __esm({
|
|
2841
|
-
"src/code-nav/symbol-index/persistence/persist-single-file.ts"() {
|
|
2826
|
+
"../bridge/src/code-nav/symbol-index/persistence/persist-single-file.ts"() {
|
|
2842
2827
|
"use strict";
|
|
2843
2828
|
init_database();
|
|
2844
2829
|
init_code_nav_cache_sqlite_transaction();
|
|
@@ -2846,7 +2831,7 @@ var init_persist_single_file = __esm({
|
|
|
2846
2831
|
}
|
|
2847
2832
|
});
|
|
2848
2833
|
|
|
2849
|
-
// src/code-nav/resolve-module-import-path.ts
|
|
2834
|
+
// ../bridge/src/code-nav/resolve-module-import-path.ts
|
|
2850
2835
|
import path14 from "node:path";
|
|
2851
2836
|
function normalizeWorkspacePath(filePath) {
|
|
2852
2837
|
return filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
@@ -2983,7 +2968,7 @@ function isModulePathSpecifier(name) {
|
|
|
2983
2968
|
}
|
|
2984
2969
|
var TS_JS_EXTENSIONS, PYTHON_EXTENSIONS, C_CPP_EXTENSIONS;
|
|
2985
2970
|
var init_resolve_module_import_path = __esm({
|
|
2986
|
-
"src/code-nav/resolve-module-import-path.ts"() {
|
|
2971
|
+
"../bridge/src/code-nav/resolve-module-import-path.ts"() {
|
|
2987
2972
|
"use strict";
|
|
2988
2973
|
init_language_registry();
|
|
2989
2974
|
TS_JS_EXTENSIONS = ["", ".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", "/index.ts", "/index.tsx", "/index.js", "/index.jsx"];
|
|
@@ -2992,7 +2977,7 @@ var init_resolve_module_import_path = __esm({
|
|
|
2992
2977
|
}
|
|
2993
2978
|
});
|
|
2994
2979
|
|
|
2995
|
-
// src/code-nav/enrich-tag-module-paths.ts
|
|
2980
|
+
// ../bridge/src/code-nav/enrich-tag-module-paths.ts
|
|
2996
2981
|
function enrichTagsWithModulePaths(tags, filePath, workspaceFiles) {
|
|
2997
2982
|
return tags.map((tag) => {
|
|
2998
2983
|
if (tag.kind !== "module" || tag.role !== "ref" || !isModulePathSpecifier(tag.name)) {
|
|
@@ -3004,13 +2989,13 @@ function enrichTagsWithModulePaths(tags, filePath, workspaceFiles) {
|
|
|
3004
2989
|
});
|
|
3005
2990
|
}
|
|
3006
2991
|
var init_enrich_tag_module_paths = __esm({
|
|
3007
|
-
"src/code-nav/enrich-tag-module-paths.ts"() {
|
|
2992
|
+
"../bridge/src/code-nav/enrich-tag-module-paths.ts"() {
|
|
3008
2993
|
"use strict";
|
|
3009
2994
|
init_resolve_module_import_path();
|
|
3010
2995
|
}
|
|
3011
2996
|
});
|
|
3012
2997
|
|
|
3013
|
-
// src/code-nav/enrich-tag-module-paths-async.ts
|
|
2998
|
+
// ../bridge/src/code-nav/enrich-tag-module-paths-async.ts
|
|
3014
2999
|
async function enrichTagsWithModulePathsAsync(tags, filePath, workspaceFiles, state) {
|
|
3015
3000
|
const chunkSize = 64;
|
|
3016
3001
|
const enriched = [];
|
|
@@ -3022,14 +3007,14 @@ async function enrichTagsWithModulePathsAsync(tags, filePath, workspaceFiles, st
|
|
|
3022
3007
|
return enriched;
|
|
3023
3008
|
}
|
|
3024
3009
|
var init_enrich_tag_module_paths_async = __esm({
|
|
3025
|
-
"src/code-nav/enrich-tag-module-paths-async.ts"() {
|
|
3010
|
+
"../bridge/src/code-nav/enrich-tag-module-paths-async.ts"() {
|
|
3026
3011
|
"use strict";
|
|
3027
3012
|
init_yield_during_work();
|
|
3028
3013
|
init_enrich_tag_module_paths();
|
|
3029
3014
|
}
|
|
3030
3015
|
});
|
|
3031
3016
|
|
|
3032
|
-
// src/code-nav/augment-function-type-param-references.ts
|
|
3017
|
+
// ../bridge/src/code-nav/augment-function-type-param-references.ts
|
|
3033
3018
|
function tagDedupeKey(tag) {
|
|
3034
3019
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3035
3020
|
}
|
|
@@ -3108,14 +3093,14 @@ async function augmentFunctionTypeParamReferenceTags(tags, nameNodes, root) {
|
|
|
3108
3093
|
}
|
|
3109
3094
|
var PARAM_NODE_TYPES;
|
|
3110
3095
|
var init_augment_function_type_param_references = __esm({
|
|
3111
|
-
"src/code-nav/augment-function-type-param-references.ts"() {
|
|
3096
|
+
"../bridge/src/code-nav/augment-function-type-param-references.ts"() {
|
|
3112
3097
|
"use strict";
|
|
3113
3098
|
init_yield_during_work();
|
|
3114
3099
|
PARAM_NODE_TYPES = /* @__PURE__ */ new Set(["required_parameter", "optional_parameter"]);
|
|
3115
3100
|
}
|
|
3116
3101
|
});
|
|
3117
3102
|
|
|
3118
|
-
// src/code-nav/augment-type-reference-tags.ts
|
|
3103
|
+
// ../bridge/src/code-nav/augment-type-reference-tags.ts
|
|
3119
3104
|
function tagDedupeKey2(tag) {
|
|
3120
3105
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3121
3106
|
}
|
|
@@ -3159,7 +3144,7 @@ async function augmentTypeReferenceTags(tags, nameNodes, root) {
|
|
|
3159
3144
|
}
|
|
3160
3145
|
var TYPE_DEFINITION_CONTAINER_TYPES;
|
|
3161
3146
|
var init_augment_type_reference_tags = __esm({
|
|
3162
|
-
"src/code-nav/augment-type-reference-tags.ts"() {
|
|
3147
|
+
"../bridge/src/code-nav/augment-type-reference-tags.ts"() {
|
|
3163
3148
|
"use strict";
|
|
3164
3149
|
init_yield_during_work();
|
|
3165
3150
|
TYPE_DEFINITION_CONTAINER_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -3182,18 +3167,18 @@ var init_augment_type_reference_tags = __esm({
|
|
|
3182
3167
|
}
|
|
3183
3168
|
});
|
|
3184
3169
|
|
|
3185
|
-
// src/code-nav/scope-chain.ts
|
|
3170
|
+
// ../bridge/src/code-nav/scope-chain.ts
|
|
3186
3171
|
function serializeScopeChain(chain2) {
|
|
3187
3172
|
if (chain2.length === 0) return null;
|
|
3188
3173
|
return chain2.map((anchor) => `${anchor.startLine}:${anchor.startColumn}`).join(",");
|
|
3189
3174
|
}
|
|
3190
3175
|
var init_scope_chain = __esm({
|
|
3191
|
-
"src/code-nav/scope-chain.ts"() {
|
|
3176
|
+
"../bridge/src/code-nav/scope-chain.ts"() {
|
|
3192
3177
|
"use strict";
|
|
3193
3178
|
}
|
|
3194
3179
|
});
|
|
3195
3180
|
|
|
3196
|
-
// src/code-nav/enrich-tag-scope.ts
|
|
3181
|
+
// ../bridge/src/code-nav/enrich-tag-scope.ts
|
|
3197
3182
|
function scopeAnchorFromNode(node) {
|
|
3198
3183
|
const nameNode = node.childForFieldName("name");
|
|
3199
3184
|
if (nameNode) {
|
|
@@ -3255,7 +3240,7 @@ async function enrichTagsWithEnclosingScope(tags, nameNodes) {
|
|
|
3255
3240
|
}
|
|
3256
3241
|
var SCOPE_CONTAINER_TYPES;
|
|
3257
3242
|
var init_enrich_tag_scope = __esm({
|
|
3258
|
-
"src/code-nav/enrich-tag-scope.ts"() {
|
|
3243
|
+
"../bridge/src/code-nav/enrich-tag-scope.ts"() {
|
|
3259
3244
|
"use strict";
|
|
3260
3245
|
init_scope_chain();
|
|
3261
3246
|
init_yield_during_work();
|
|
@@ -3281,10 +3266,10 @@ var init_enrich_tag_scope = __esm({
|
|
|
3281
3266
|
}
|
|
3282
3267
|
});
|
|
3283
3268
|
|
|
3284
|
-
// src/code-nav/member-access/c.ts
|
|
3269
|
+
// ../bridge/src/code-nav/member-access/c.ts
|
|
3285
3270
|
var C_MEMBER_ACCESS_RULES;
|
|
3286
3271
|
var init_c = __esm({
|
|
3287
|
-
"src/code-nav/member-access/c.ts"() {
|
|
3272
|
+
"../bridge/src/code-nav/member-access/c.ts"() {
|
|
3288
3273
|
"use strict";
|
|
3289
3274
|
C_MEMBER_ACCESS_RULES = [
|
|
3290
3275
|
{ parentType: "field_expression", objectField: "argument", propertyField: "field", tagKind: "member" }
|
|
@@ -3292,10 +3277,10 @@ var init_c = __esm({
|
|
|
3292
3277
|
}
|
|
3293
3278
|
});
|
|
3294
3279
|
|
|
3295
|
-
// src/code-nav/member-access/cpp.ts
|
|
3280
|
+
// ../bridge/src/code-nav/member-access/cpp.ts
|
|
3296
3281
|
var CPP_MEMBER_ACCESS_RULES;
|
|
3297
3282
|
var init_cpp = __esm({
|
|
3298
|
-
"src/code-nav/member-access/cpp.ts"() {
|
|
3283
|
+
"../bridge/src/code-nav/member-access/cpp.ts"() {
|
|
3299
3284
|
"use strict";
|
|
3300
3285
|
init_c();
|
|
3301
3286
|
CPP_MEMBER_ACCESS_RULES = [
|
|
@@ -3305,10 +3290,10 @@ var init_cpp = __esm({
|
|
|
3305
3290
|
}
|
|
3306
3291
|
});
|
|
3307
3292
|
|
|
3308
|
-
// src/code-nav/member-access/go.ts
|
|
3293
|
+
// ../bridge/src/code-nav/member-access/go.ts
|
|
3309
3294
|
var GO_MEMBER_ACCESS_RULES;
|
|
3310
3295
|
var init_go = __esm({
|
|
3311
|
-
"src/code-nav/member-access/go.ts"() {
|
|
3296
|
+
"../bridge/src/code-nav/member-access/go.ts"() {
|
|
3312
3297
|
"use strict";
|
|
3313
3298
|
GO_MEMBER_ACCESS_RULES = [
|
|
3314
3299
|
{ parentType: "selector_expression", objectField: "operand", propertyField: "field", tagKind: "member" }
|
|
@@ -3316,10 +3301,10 @@ var init_go = __esm({
|
|
|
3316
3301
|
}
|
|
3317
3302
|
});
|
|
3318
3303
|
|
|
3319
|
-
// src/code-nav/member-access/javascript.ts
|
|
3304
|
+
// ../bridge/src/code-nav/member-access/javascript.ts
|
|
3320
3305
|
var ECMA_SCRIPT_MEMBER_ACCESS_RULES, JAVASCRIPT_MEMBER_ACCESS_RULES;
|
|
3321
3306
|
var init_javascript = __esm({
|
|
3322
|
-
"src/code-nav/member-access/javascript.ts"() {
|
|
3307
|
+
"../bridge/src/code-nav/member-access/javascript.ts"() {
|
|
3323
3308
|
"use strict";
|
|
3324
3309
|
ECMA_SCRIPT_MEMBER_ACCESS_RULES = [
|
|
3325
3310
|
{ parentType: "member_expression", objectField: "object", propertyField: "property", tagKind: "member" }
|
|
@@ -3328,10 +3313,10 @@ var init_javascript = __esm({
|
|
|
3328
3313
|
}
|
|
3329
3314
|
});
|
|
3330
3315
|
|
|
3331
|
-
// src/code-nav/member-access/java.ts
|
|
3316
|
+
// ../bridge/src/code-nav/member-access/java.ts
|
|
3332
3317
|
var JAVA_MEMBER_ACCESS_RULES;
|
|
3333
3318
|
var init_java = __esm({
|
|
3334
|
-
"src/code-nav/member-access/java.ts"() {
|
|
3319
|
+
"../bridge/src/code-nav/member-access/java.ts"() {
|
|
3335
3320
|
"use strict";
|
|
3336
3321
|
JAVA_MEMBER_ACCESS_RULES = [
|
|
3337
3322
|
{ parentType: "field_access", objectField: "object", propertyField: "field", tagKind: "member" },
|
|
@@ -3340,10 +3325,10 @@ var init_java = __esm({
|
|
|
3340
3325
|
}
|
|
3341
3326
|
});
|
|
3342
3327
|
|
|
3343
|
-
// src/code-nav/member-access/python.ts
|
|
3328
|
+
// ../bridge/src/code-nav/member-access/python.ts
|
|
3344
3329
|
var PYTHON_MEMBER_ACCESS_RULES;
|
|
3345
3330
|
var init_python = __esm({
|
|
3346
|
-
"src/code-nav/member-access/python.ts"() {
|
|
3331
|
+
"../bridge/src/code-nav/member-access/python.ts"() {
|
|
3347
3332
|
"use strict";
|
|
3348
3333
|
PYTHON_MEMBER_ACCESS_RULES = [
|
|
3349
3334
|
{ parentType: "attribute", objectField: "object", propertyField: "attribute", tagKind: "member" }
|
|
@@ -3351,10 +3336,10 @@ var init_python = __esm({
|
|
|
3351
3336
|
}
|
|
3352
3337
|
});
|
|
3353
3338
|
|
|
3354
|
-
// src/code-nav/member-access/ruby.ts
|
|
3339
|
+
// ../bridge/src/code-nav/member-access/ruby.ts
|
|
3355
3340
|
var RUBY_MEMBER_ACCESS_RULES;
|
|
3356
3341
|
var init_ruby = __esm({
|
|
3357
|
-
"src/code-nav/member-access/ruby.ts"() {
|
|
3342
|
+
"../bridge/src/code-nav/member-access/ruby.ts"() {
|
|
3358
3343
|
"use strict";
|
|
3359
3344
|
RUBY_MEMBER_ACCESS_RULES = [
|
|
3360
3345
|
{ parentType: "call", objectField: "receiver", propertyField: "method", tagKind: "call" }
|
|
@@ -3362,10 +3347,10 @@ var init_ruby = __esm({
|
|
|
3362
3347
|
}
|
|
3363
3348
|
});
|
|
3364
3349
|
|
|
3365
|
-
// src/code-nav/member-access/rust.ts
|
|
3350
|
+
// ../bridge/src/code-nav/member-access/rust.ts
|
|
3366
3351
|
var RUST_MEMBER_ACCESS_RULES;
|
|
3367
3352
|
var init_rust = __esm({
|
|
3368
|
-
"src/code-nav/member-access/rust.ts"() {
|
|
3353
|
+
"../bridge/src/code-nav/member-access/rust.ts"() {
|
|
3369
3354
|
"use strict";
|
|
3370
3355
|
RUST_MEMBER_ACCESS_RULES = [
|
|
3371
3356
|
{ parentType: "field_expression", objectField: "value", propertyField: "field", tagKind: "member" },
|
|
@@ -3374,30 +3359,30 @@ var init_rust = __esm({
|
|
|
3374
3359
|
}
|
|
3375
3360
|
});
|
|
3376
3361
|
|
|
3377
|
-
// src/code-nav/member-access/tsx.ts
|
|
3362
|
+
// ../bridge/src/code-nav/member-access/tsx.ts
|
|
3378
3363
|
var init_tsx = __esm({
|
|
3379
|
-
"src/code-nav/member-access/tsx.ts"() {
|
|
3364
|
+
"../bridge/src/code-nav/member-access/tsx.ts"() {
|
|
3380
3365
|
"use strict";
|
|
3381
3366
|
init_javascript();
|
|
3382
3367
|
}
|
|
3383
3368
|
});
|
|
3384
3369
|
|
|
3385
|
-
// src/code-nav/member-access/typescript.ts
|
|
3370
|
+
// ../bridge/src/code-nav/member-access/typescript.ts
|
|
3386
3371
|
var init_typescript = __esm({
|
|
3387
|
-
"src/code-nav/member-access/typescript.ts"() {
|
|
3372
|
+
"../bridge/src/code-nav/member-access/typescript.ts"() {
|
|
3388
3373
|
"use strict";
|
|
3389
3374
|
init_javascript();
|
|
3390
3375
|
}
|
|
3391
3376
|
});
|
|
3392
3377
|
|
|
3393
|
-
// src/code-nav/member-access/registry.ts
|
|
3378
|
+
// ../bridge/src/code-nav/member-access/registry.ts
|
|
3394
3379
|
function memberAccessRulesForLanguageKey(languageKey) {
|
|
3395
3380
|
if (!languageKey) return [];
|
|
3396
3381
|
return MEMBER_ACCESS_RULES_BY_LANGUAGE_KEY[languageKey] ?? [];
|
|
3397
3382
|
}
|
|
3398
3383
|
var MEMBER_ACCESS_RULES_BY_LANGUAGE_KEY;
|
|
3399
3384
|
var init_registry = __esm({
|
|
3400
|
-
"src/code-nav/member-access/registry.ts"() {
|
|
3385
|
+
"../bridge/src/code-nav/member-access/registry.ts"() {
|
|
3401
3386
|
"use strict";
|
|
3402
3387
|
init_c();
|
|
3403
3388
|
init_cpp();
|
|
@@ -3424,10 +3409,10 @@ var init_registry = __esm({
|
|
|
3424
3409
|
}
|
|
3425
3410
|
});
|
|
3426
3411
|
|
|
3427
|
-
// src/code-nav/member-access/types.ts
|
|
3412
|
+
// ../bridge/src/code-nav/member-access/types.ts
|
|
3428
3413
|
var MEMBER_NAME_NODE_TYPES;
|
|
3429
3414
|
var init_types = __esm({
|
|
3430
|
-
"src/code-nav/member-access/types.ts"() {
|
|
3415
|
+
"../bridge/src/code-nav/member-access/types.ts"() {
|
|
3431
3416
|
"use strict";
|
|
3432
3417
|
MEMBER_NAME_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
3433
3418
|
"identifier",
|
|
@@ -3440,7 +3425,7 @@ var init_types = __esm({
|
|
|
3440
3425
|
}
|
|
3441
3426
|
});
|
|
3442
3427
|
|
|
3443
|
-
// src/code-nav/member-access/shared.ts
|
|
3428
|
+
// ../bridge/src/code-nav/member-access/shared.ts
|
|
3444
3429
|
function nodesMatch(a, b) {
|
|
3445
3430
|
return a.startPosition.row === b.startPosition.row && a.startPosition.column === b.startPosition.column && a.text === b.text;
|
|
3446
3431
|
}
|
|
@@ -3465,13 +3450,13 @@ function isMemberAccessPropertyNameNode(nameNode, rules) {
|
|
|
3465
3450
|
return false;
|
|
3466
3451
|
}
|
|
3467
3452
|
var init_shared = __esm({
|
|
3468
|
-
"src/code-nav/member-access/shared.ts"() {
|
|
3453
|
+
"../bridge/src/code-nav/member-access/shared.ts"() {
|
|
3469
3454
|
"use strict";
|
|
3470
3455
|
init_types();
|
|
3471
3456
|
}
|
|
3472
3457
|
});
|
|
3473
3458
|
|
|
3474
|
-
// src/code-nav/member-access/index.ts
|
|
3459
|
+
// ../bridge/src/code-nav/member-access/index.ts
|
|
3475
3460
|
function tagDedupeKey3(tag) {
|
|
3476
3461
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3477
3462
|
}
|
|
@@ -3534,7 +3519,7 @@ async function augmentMemberReceiverTags(tags, nameNodes, root, languageKey) {
|
|
|
3534
3519
|
return out;
|
|
3535
3520
|
}
|
|
3536
3521
|
var init_member_access = __esm({
|
|
3537
|
-
"src/code-nav/member-access/index.ts"() {
|
|
3522
|
+
"../bridge/src/code-nav/member-access/index.ts"() {
|
|
3538
3523
|
"use strict";
|
|
3539
3524
|
init_yield_during_work();
|
|
3540
3525
|
init_registry();
|
|
@@ -3542,7 +3527,7 @@ var init_member_access = __esm({
|
|
|
3542
3527
|
}
|
|
3543
3528
|
});
|
|
3544
3529
|
|
|
3545
|
-
// src/code-nav/tree-sitter-assets-dir.ts
|
|
3530
|
+
// ../bridge/src/code-nav/tree-sitter-assets-dir.ts
|
|
3546
3531
|
import { existsSync as existsSync2 } from "node:fs";
|
|
3547
3532
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
3548
3533
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
@@ -3570,12 +3555,12 @@ function getTreeSitterAssetsDir() {
|
|
|
3570
3555
|
);
|
|
3571
3556
|
}
|
|
3572
3557
|
var init_tree_sitter_assets_dir = __esm({
|
|
3573
|
-
"src/code-nav/tree-sitter-assets-dir.ts"() {
|
|
3558
|
+
"../bridge/src/code-nav/tree-sitter-assets-dir.ts"() {
|
|
3574
3559
|
"use strict";
|
|
3575
3560
|
}
|
|
3576
3561
|
});
|
|
3577
3562
|
|
|
3578
|
-
// src/code-nav/parser/tree-sitter-runtime.ts
|
|
3563
|
+
// ../bridge/src/code-nav/parser/tree-sitter-runtime.ts
|
|
3579
3564
|
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
3580
3565
|
import { dirname as dirname3, join as join3 } from "node:path";
|
|
3581
3566
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -3646,7 +3631,7 @@ async function loadLanguage(languageKey) {
|
|
|
3646
3631
|
}
|
|
3647
3632
|
var initPromise2, loadedByKey, failedLanguageKeys, runtimeChain, CODE_NAV_QUERIES_ROOT;
|
|
3648
3633
|
var init_tree_sitter_runtime = __esm({
|
|
3649
|
-
"src/code-nav/parser/tree-sitter-runtime.ts"() {
|
|
3634
|
+
"../bridge/src/code-nav/parser/tree-sitter-runtime.ts"() {
|
|
3650
3635
|
"use strict";
|
|
3651
3636
|
init_tree_sitter_assets_dir();
|
|
3652
3637
|
init_language_registry();
|
|
@@ -3658,7 +3643,7 @@ var init_tree_sitter_runtime = __esm({
|
|
|
3658
3643
|
}
|
|
3659
3644
|
});
|
|
3660
3645
|
|
|
3661
|
-
// src/code-nav/parser/parse-source-root.ts
|
|
3646
|
+
// ../bridge/src/code-nav/parser/parse-source-root.ts
|
|
3662
3647
|
import { Parser as Parser2 } from "web-tree-sitter";
|
|
3663
3648
|
async function parseSourceRoot(filePath, source) {
|
|
3664
3649
|
const languageKey = getLanguageKeyForFilePath(filePath);
|
|
@@ -3699,7 +3684,7 @@ async function parseSourceRoot(filePath, source) {
|
|
|
3699
3684
|
});
|
|
3700
3685
|
}
|
|
3701
3686
|
var init_parse_source_root = __esm({
|
|
3702
|
-
"src/code-nav/parser/parse-source-root.ts"() {
|
|
3687
|
+
"../bridge/src/code-nav/parser/parse-source-root.ts"() {
|
|
3703
3688
|
"use strict";
|
|
3704
3689
|
init_in_flight();
|
|
3705
3690
|
init_deferred_indexing();
|
|
@@ -3708,7 +3693,7 @@ var init_parse_source_root = __esm({
|
|
|
3708
3693
|
}
|
|
3709
3694
|
});
|
|
3710
3695
|
|
|
3711
|
-
// src/code-nav/parser/run-tags-query.ts
|
|
3696
|
+
// ../bridge/src/code-nav/parser/run-tags-query.ts
|
|
3712
3697
|
async function runTagsQuery(loaded, root) {
|
|
3713
3698
|
await yieldForBridgeInteractivePriority();
|
|
3714
3699
|
assertBackgroundIndexingAllowed();
|
|
@@ -3718,13 +3703,13 @@ async function runTagsQuery(loaded, root) {
|
|
|
3718
3703
|
return matches;
|
|
3719
3704
|
}
|
|
3720
3705
|
var init_run_tags_query = __esm({
|
|
3721
|
-
"src/code-nav/parser/run-tags-query.ts"() {
|
|
3706
|
+
"../bridge/src/code-nav/parser/run-tags-query.ts"() {
|
|
3722
3707
|
"use strict";
|
|
3723
3708
|
init_in_flight();
|
|
3724
3709
|
}
|
|
3725
3710
|
});
|
|
3726
3711
|
|
|
3727
|
-
// src/code-nav/parser/tags-from-matches.ts
|
|
3712
|
+
// ../bridge/src/code-nav/parser/tags-from-matches.ts
|
|
3728
3713
|
function parseCaptureRole(captureName) {
|
|
3729
3714
|
if (captureName === "name") return null;
|
|
3730
3715
|
const dot = captureName.indexOf(".");
|
|
@@ -3776,12 +3761,12 @@ function tagsFromMatches(matches) {
|
|
|
3776
3761
|
return { tags, nameNodes };
|
|
3777
3762
|
}
|
|
3778
3763
|
var init_tags_from_matches = __esm({
|
|
3779
|
-
"src/code-nav/parser/tags-from-matches.ts"() {
|
|
3764
|
+
"../bridge/src/code-nav/parser/tags-from-matches.ts"() {
|
|
3780
3765
|
"use strict";
|
|
3781
3766
|
}
|
|
3782
3767
|
});
|
|
3783
3768
|
|
|
3784
|
-
// src/code-nav/parser/tags-from-matches-async.ts
|
|
3769
|
+
// ../bridge/src/code-nav/parser/tags-from-matches-async.ts
|
|
3785
3770
|
function tagDedupeKey5(tag) {
|
|
3786
3771
|
return `${tag.startLine}:${tag.startColumn}:${tag.endLine}:${tag.endColumn}:${tag.role}:${tag.kind}:${tag.name}`;
|
|
3787
3772
|
}
|
|
@@ -3803,14 +3788,14 @@ async function tagsFromMatchesAsync(matches, state) {
|
|
|
3803
3788
|
return { tags, nameNodes };
|
|
3804
3789
|
}
|
|
3805
3790
|
var init_tags_from_matches_async = __esm({
|
|
3806
|
-
"src/code-nav/parser/tags-from-matches-async.ts"() {
|
|
3791
|
+
"../bridge/src/code-nav/parser/tags-from-matches-async.ts"() {
|
|
3807
3792
|
"use strict";
|
|
3808
3793
|
init_yield_during_work();
|
|
3809
3794
|
init_tags_from_matches();
|
|
3810
3795
|
}
|
|
3811
3796
|
});
|
|
3812
3797
|
|
|
3813
|
-
// src/code-nav/parser/extract-tags.ts
|
|
3798
|
+
// ../bridge/src/code-nav/parser/extract-tags.ts
|
|
3814
3799
|
async function extractTagsFromSource(filePath, source) {
|
|
3815
3800
|
const languageKey = getLanguageKeyForFilePath(filePath);
|
|
3816
3801
|
await yieldForBridgeInteractivePriority();
|
|
@@ -3837,7 +3822,7 @@ async function extractTagsFromSource(filePath, source) {
|
|
|
3837
3822
|
}
|
|
3838
3823
|
}
|
|
3839
3824
|
var init_extract_tags = __esm({
|
|
3840
|
-
"src/code-nav/parser/extract-tags.ts"() {
|
|
3825
|
+
"../bridge/src/code-nav/parser/extract-tags.ts"() {
|
|
3841
3826
|
"use strict";
|
|
3842
3827
|
init_language_registry();
|
|
3843
3828
|
init_augment_function_type_param_references();
|
|
@@ -3853,16 +3838,16 @@ var init_extract_tags = __esm({
|
|
|
3853
3838
|
}
|
|
3854
3839
|
});
|
|
3855
3840
|
|
|
3856
|
-
// src/code-nav/parser-runtime.ts
|
|
3841
|
+
// ../bridge/src/code-nav/parser-runtime.ts
|
|
3857
3842
|
var init_parser_runtime = __esm({
|
|
3858
|
-
"src/code-nav/parser-runtime.ts"() {
|
|
3843
|
+
"../bridge/src/code-nav/parser-runtime.ts"() {
|
|
3859
3844
|
"use strict";
|
|
3860
3845
|
init_extract_tags();
|
|
3861
3846
|
init_parse_source_root();
|
|
3862
3847
|
}
|
|
3863
3848
|
});
|
|
3864
3849
|
|
|
3865
|
-
// src/code-nav/symbol-index/imports/shared.ts
|
|
3850
|
+
// ../bridge/src/code-nav/symbol-index/imports/shared.ts
|
|
3866
3851
|
function pushBinding(out, filePath, workspaceFiles, moduleSpecifier, localName, sourceName, importKind, nameNode) {
|
|
3867
3852
|
if (!localName) return;
|
|
3868
3853
|
out.push({
|
|
@@ -3887,13 +3872,13 @@ function stringLiteralText(node) {
|
|
|
3887
3872
|
return stripQuotes(fragment?.text ?? node.text);
|
|
3888
3873
|
}
|
|
3889
3874
|
var init_shared2 = __esm({
|
|
3890
|
-
"src/code-nav/symbol-index/imports/shared.ts"() {
|
|
3875
|
+
"../bridge/src/code-nav/symbol-index/imports/shared.ts"() {
|
|
3891
3876
|
"use strict";
|
|
3892
3877
|
init_resolve_module_import_path();
|
|
3893
3878
|
}
|
|
3894
3879
|
});
|
|
3895
3880
|
|
|
3896
|
-
// src/code-nav/symbol-index/imports/c.ts
|
|
3881
|
+
// ../bridge/src/code-nav/symbol-index/imports/c.ts
|
|
3897
3882
|
function extractCIncludeBindings(root, filePath, workspaceFiles) {
|
|
3898
3883
|
const out = [];
|
|
3899
3884
|
for (const node of root.descendantsOfType("preproc_include")) {
|
|
@@ -3906,24 +3891,24 @@ function extractCIncludeBindings(root, filePath, workspaceFiles) {
|
|
|
3906
3891
|
return out;
|
|
3907
3892
|
}
|
|
3908
3893
|
var init_c2 = __esm({
|
|
3909
|
-
"src/code-nav/symbol-index/imports/c.ts"() {
|
|
3894
|
+
"../bridge/src/code-nav/symbol-index/imports/c.ts"() {
|
|
3910
3895
|
"use strict";
|
|
3911
3896
|
init_shared2();
|
|
3912
3897
|
}
|
|
3913
3898
|
});
|
|
3914
3899
|
|
|
3915
|
-
// src/code-nav/symbol-index/imports/cpp.ts
|
|
3900
|
+
// ../bridge/src/code-nav/symbol-index/imports/cpp.ts
|
|
3916
3901
|
function extractCppImportBindings(root, filePath, workspaceFiles) {
|
|
3917
3902
|
return extractCIncludeBindings(root, filePath, workspaceFiles);
|
|
3918
3903
|
}
|
|
3919
3904
|
var init_cpp2 = __esm({
|
|
3920
|
-
"src/code-nav/symbol-index/imports/cpp.ts"() {
|
|
3905
|
+
"../bridge/src/code-nav/symbol-index/imports/cpp.ts"() {
|
|
3921
3906
|
"use strict";
|
|
3922
3907
|
init_c2();
|
|
3923
3908
|
}
|
|
3924
3909
|
});
|
|
3925
3910
|
|
|
3926
|
-
// src/code-nav/symbol-index/imports/ecma-script-imports.ts
|
|
3911
|
+
// ../bridge/src/code-nav/symbol-index/imports/ecma-script-imports.ts
|
|
3927
3912
|
function importKindForSpecifier(specifier, statementKind) {
|
|
3928
3913
|
if (specifier.children.some((child) => child.type === "type")) return "type";
|
|
3929
3914
|
return statementKind;
|
|
@@ -3984,13 +3969,13 @@ function extractEcmaScriptImportBindings(root, filePath, workspaceFiles) {
|
|
|
3984
3969
|
return out;
|
|
3985
3970
|
}
|
|
3986
3971
|
var init_ecma_script_imports = __esm({
|
|
3987
|
-
"src/code-nav/symbol-index/imports/ecma-script-imports.ts"() {
|
|
3972
|
+
"../bridge/src/code-nav/symbol-index/imports/ecma-script-imports.ts"() {
|
|
3988
3973
|
"use strict";
|
|
3989
3974
|
init_shared2();
|
|
3990
3975
|
}
|
|
3991
3976
|
});
|
|
3992
3977
|
|
|
3993
|
-
// src/code-nav/symbol-index/imports/ecma-script-exports.ts
|
|
3978
|
+
// ../bridge/src/code-nav/symbol-index/imports/ecma-script-exports.ts
|
|
3994
3979
|
function exportKindForSpecifier(specifier, statementKind) {
|
|
3995
3980
|
if (specifier.children.some((child) => child.type === "type")) return "type";
|
|
3996
3981
|
return statementKind;
|
|
@@ -4041,20 +4026,20 @@ function extractEcmaScriptReexportBindings(root, filePath, workspaceFiles) {
|
|
|
4041
4026
|
return out;
|
|
4042
4027
|
}
|
|
4043
4028
|
var init_ecma_script_exports = __esm({
|
|
4044
|
-
"src/code-nav/symbol-index/imports/ecma-script-exports.ts"() {
|
|
4029
|
+
"../bridge/src/code-nav/symbol-index/imports/ecma-script-exports.ts"() {
|
|
4045
4030
|
"use strict";
|
|
4046
4031
|
init_shared2();
|
|
4047
4032
|
}
|
|
4048
4033
|
});
|
|
4049
4034
|
|
|
4050
|
-
// src/code-nav/symbol-index/imports/ecma-script.ts
|
|
4035
|
+
// ../bridge/src/code-nav/symbol-index/imports/ecma-script.ts
|
|
4051
4036
|
function extractEcmaScriptBindings(root, filePath, workspaceFiles) {
|
|
4052
4037
|
const imports = extractEcmaScriptImportBindings(root, filePath, workspaceFiles);
|
|
4053
4038
|
const reexports = extractEcmaScriptReexportBindings(root, filePath, workspaceFiles);
|
|
4054
4039
|
return [...imports, ...reexports];
|
|
4055
4040
|
}
|
|
4056
4041
|
var init_ecma_script = __esm({
|
|
4057
|
-
"src/code-nav/symbol-index/imports/ecma-script.ts"() {
|
|
4042
|
+
"../bridge/src/code-nav/symbol-index/imports/ecma-script.ts"() {
|
|
4058
4043
|
"use strict";
|
|
4059
4044
|
init_ecma_script_imports();
|
|
4060
4045
|
init_ecma_script_exports();
|
|
@@ -4062,7 +4047,7 @@ var init_ecma_script = __esm({
|
|
|
4062
4047
|
}
|
|
4063
4048
|
});
|
|
4064
4049
|
|
|
4065
|
-
// src/code-nav/symbol-index/imports/go.ts
|
|
4050
|
+
// ../bridge/src/code-nav/symbol-index/imports/go.ts
|
|
4066
4051
|
function collectImportSpec(out, filePath, workspaceFiles, spec) {
|
|
4067
4052
|
const pathNode = spec.childForFieldName("path");
|
|
4068
4053
|
if (!pathNode) return;
|
|
@@ -4085,13 +4070,13 @@ function extractGoImportBindings(root, filePath, workspaceFiles) {
|
|
|
4085
4070
|
return out;
|
|
4086
4071
|
}
|
|
4087
4072
|
var init_go2 = __esm({
|
|
4088
|
-
"src/code-nav/symbol-index/imports/go.ts"() {
|
|
4073
|
+
"../bridge/src/code-nav/symbol-index/imports/go.ts"() {
|
|
4089
4074
|
"use strict";
|
|
4090
4075
|
init_shared2();
|
|
4091
4076
|
}
|
|
4092
4077
|
});
|
|
4093
4078
|
|
|
4094
|
-
// src/code-nav/symbol-index/imports/java.ts
|
|
4079
|
+
// ../bridge/src/code-nav/symbol-index/imports/java.ts
|
|
4095
4080
|
function localNameFromImport(nameNode) {
|
|
4096
4081
|
return nameNode.text.split(".").at(-1) ?? nameNode.text;
|
|
4097
4082
|
}
|
|
@@ -4112,13 +4097,13 @@ function extractJavaImportBindings(root, filePath, workspaceFiles) {
|
|
|
4112
4097
|
return out;
|
|
4113
4098
|
}
|
|
4114
4099
|
var init_java2 = __esm({
|
|
4115
|
-
"src/code-nav/symbol-index/imports/java.ts"() {
|
|
4100
|
+
"../bridge/src/code-nav/symbol-index/imports/java.ts"() {
|
|
4116
4101
|
"use strict";
|
|
4117
4102
|
init_shared2();
|
|
4118
4103
|
}
|
|
4119
4104
|
});
|
|
4120
4105
|
|
|
4121
|
-
// src/code-nav/symbol-index/imports/python.ts
|
|
4106
|
+
// ../bridge/src/code-nav/symbol-index/imports/python.ts
|
|
4122
4107
|
function dottedNameText(node) {
|
|
4123
4108
|
return node.text.replace(/\s+/g, "");
|
|
4124
4109
|
}
|
|
@@ -4160,13 +4145,13 @@ function extractPythonImportBindings(root, filePath, workspaceFiles) {
|
|
|
4160
4145
|
return out;
|
|
4161
4146
|
}
|
|
4162
4147
|
var init_python2 = __esm({
|
|
4163
|
-
"src/code-nav/symbol-index/imports/python.ts"() {
|
|
4148
|
+
"../bridge/src/code-nav/symbol-index/imports/python.ts"() {
|
|
4164
4149
|
"use strict";
|
|
4165
4150
|
init_shared2();
|
|
4166
4151
|
}
|
|
4167
4152
|
});
|
|
4168
4153
|
|
|
4169
|
-
// src/code-nav/symbol-index/imports/ruby.ts
|
|
4154
|
+
// ../bridge/src/code-nav/symbol-index/imports/ruby.ts
|
|
4170
4155
|
function collectRequireCall(out, filePath, workspaceFiles, node) {
|
|
4171
4156
|
const methodNode = node.childForFieldName("method");
|
|
4172
4157
|
if (!methodNode || methodNode.text !== "require" && methodNode.text !== "require_relative") return;
|
|
@@ -4185,13 +4170,13 @@ function extractRubyImportBindings(root, filePath, workspaceFiles) {
|
|
|
4185
4170
|
return out;
|
|
4186
4171
|
}
|
|
4187
4172
|
var init_ruby2 = __esm({
|
|
4188
|
-
"src/code-nav/symbol-index/imports/ruby.ts"() {
|
|
4173
|
+
"../bridge/src/code-nav/symbol-index/imports/ruby.ts"() {
|
|
4189
4174
|
"use strict";
|
|
4190
4175
|
init_shared2();
|
|
4191
4176
|
}
|
|
4192
4177
|
});
|
|
4193
4178
|
|
|
4194
|
-
// src/code-nav/symbol-index/imports/rust.ts
|
|
4179
|
+
// ../bridge/src/code-nav/symbol-index/imports/rust.ts
|
|
4195
4180
|
function identifierFromUseTree(node) {
|
|
4196
4181
|
if (node.type === "identifier" || node.type === "type_identifier") return node;
|
|
4197
4182
|
const nameNode = node.childForFieldName("name");
|
|
@@ -4256,13 +4241,13 @@ function extractRustImportBindings(root, filePath, workspaceFiles) {
|
|
|
4256
4241
|
return out;
|
|
4257
4242
|
}
|
|
4258
4243
|
var init_rust2 = __esm({
|
|
4259
|
-
"src/code-nav/symbol-index/imports/rust.ts"() {
|
|
4244
|
+
"../bridge/src/code-nav/symbol-index/imports/rust.ts"() {
|
|
4260
4245
|
"use strict";
|
|
4261
4246
|
init_shared2();
|
|
4262
4247
|
}
|
|
4263
4248
|
});
|
|
4264
4249
|
|
|
4265
|
-
// src/code-nav/symbol-index/imports/index.ts
|
|
4250
|
+
// ../bridge/src/code-nav/symbol-index/imports/index.ts
|
|
4266
4251
|
async function extractImportBindingsFromSource(filePath, source, workspaceFiles) {
|
|
4267
4252
|
const languageKey = getLanguageKeyForFilePath(filePath);
|
|
4268
4253
|
if (!languageKey) return [];
|
|
@@ -4283,7 +4268,7 @@ async function extractImportBindingsFromSource(filePath, source, workspaceFiles)
|
|
|
4283
4268
|
}
|
|
4284
4269
|
var EXTRACTORS_BY_LANGUAGE_KEY;
|
|
4285
4270
|
var init_imports = __esm({
|
|
4286
|
-
"src/code-nav/symbol-index/imports/index.ts"() {
|
|
4271
|
+
"../bridge/src/code-nav/symbol-index/imports/index.ts"() {
|
|
4287
4272
|
"use strict";
|
|
4288
4273
|
init_language_registry();
|
|
4289
4274
|
init_parser_runtime();
|
|
@@ -4312,10 +4297,10 @@ var init_imports = __esm({
|
|
|
4312
4297
|
}
|
|
4313
4298
|
});
|
|
4314
4299
|
|
|
4315
|
-
// src/code-nav/symbol-index/build/read-index-source.ts
|
|
4300
|
+
// ../bridge/src/code-nav/symbol-index/build/read-index-source.ts
|
|
4316
4301
|
var MAX_INDEX_FILE_BYTES;
|
|
4317
4302
|
var init_read_index_source = __esm({
|
|
4318
|
-
"src/code-nav/symbol-index/build/read-index-source.ts"() {
|
|
4303
|
+
"../bridge/src/code-nav/symbol-index/build/read-index-source.ts"() {
|
|
4319
4304
|
"use strict";
|
|
4320
4305
|
init_in_flight();
|
|
4321
4306
|
init_cli_process_interrupt();
|
|
@@ -4325,7 +4310,7 @@ var init_read_index_source = __esm({
|
|
|
4325
4310
|
}
|
|
4326
4311
|
});
|
|
4327
4312
|
|
|
4328
|
-
// src/code-nav/symbol-index/build/workspace-files.ts
|
|
4313
|
+
// ../bridge/src/code-nav/symbol-index/build/workspace-files.ts
|
|
4329
4314
|
function listWorkspaceFiles(db, workspacePath, includePath) {
|
|
4330
4315
|
const files = /* @__PURE__ */ new Set([includePath.replace(/\\/g, "/")]);
|
|
4331
4316
|
const normalizedWorkspace = normalizeResolvedPath(workspacePath);
|
|
@@ -4345,7 +4330,7 @@ function listWorkspaceFiles(db, workspacePath, includePath) {
|
|
|
4345
4330
|
return files;
|
|
4346
4331
|
}
|
|
4347
4332
|
var init_workspace_files = __esm({
|
|
4348
|
-
"src/code-nav/symbol-index/build/workspace-files.ts"() {
|
|
4333
|
+
"../bridge/src/code-nav/symbol-index/build/workspace-files.ts"() {
|
|
4349
4334
|
"use strict";
|
|
4350
4335
|
init_normalize_resolved_path();
|
|
4351
4336
|
init_symbol_index_sqlite();
|
|
@@ -4353,7 +4338,7 @@ var init_workspace_files = __esm({
|
|
|
4353
4338
|
}
|
|
4354
4339
|
});
|
|
4355
4340
|
|
|
4356
|
-
// src/code-nav/symbol-index/build/extract-file-symbol-data.ts
|
|
4341
|
+
// ../bridge/src/code-nav/symbol-index/build/extract-file-symbol-data.ts
|
|
4357
4342
|
import fs14 from "node:fs";
|
|
4358
4343
|
import path15 from "node:path";
|
|
4359
4344
|
import { isMainThread as isMainThread3 } from "node:worker_threads";
|
|
@@ -4401,7 +4386,7 @@ async function extractFileSymbolData(resolved, relPath, workspaceFilesOverride)
|
|
|
4401
4386
|
};
|
|
4402
4387
|
}
|
|
4403
4388
|
var init_extract_file_symbol_data = __esm({
|
|
4404
|
-
"src/code-nav/symbol-index/build/extract-file-symbol-data.ts"() {
|
|
4389
|
+
"../bridge/src/code-nav/symbol-index/build/extract-file-symbol-data.ts"() {
|
|
4405
4390
|
"use strict";
|
|
4406
4391
|
init_in_flight();
|
|
4407
4392
|
init_deferred_indexing();
|
|
@@ -4417,7 +4402,7 @@ var init_extract_file_symbol_data = __esm({
|
|
|
4417
4402
|
}
|
|
4418
4403
|
});
|
|
4419
4404
|
|
|
4420
|
-
// src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts
|
|
4405
|
+
// ../bridge/src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts
|
|
4421
4406
|
async function indexOneSymbolFileForBuild(resolved, relPath, workspaceFiles) {
|
|
4422
4407
|
await yieldForBridgeInteractivePriority();
|
|
4423
4408
|
const data = await extractFileSymbolData(resolved, relPath, workspaceFiles);
|
|
@@ -4443,7 +4428,7 @@ async function indexOneSymbolFileForBuild(resolved, relPath, workspaceFiles) {
|
|
|
4443
4428
|
});
|
|
4444
4429
|
}
|
|
4445
4430
|
var init_index_one_symbol_file_for_build = __esm({
|
|
4446
|
-
"src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts"() {
|
|
4431
|
+
"../bridge/src/code-nav/symbol-index/build/index-one-symbol-file-for-build.ts"() {
|
|
4447
4432
|
"use strict";
|
|
4448
4433
|
init_in_flight();
|
|
4449
4434
|
init_database();
|
|
@@ -4456,17 +4441,17 @@ var init_index_one_symbol_file_for_build = __esm({
|
|
|
4456
4441
|
}
|
|
4457
4442
|
});
|
|
4458
4443
|
|
|
4459
|
-
// src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts
|
|
4444
|
+
// ../bridge/src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts
|
|
4460
4445
|
function normalizeSymbolIndexRelPath(filePath) {
|
|
4461
4446
|
return filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
4462
4447
|
}
|
|
4463
4448
|
var init_normalize_symbol_index_rel_path = __esm({
|
|
4464
|
-
"src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts"() {
|
|
4449
|
+
"../bridge/src/code-nav/symbol-index/build/normalize-symbol-index-rel-path.ts"() {
|
|
4465
4450
|
"use strict";
|
|
4466
4451
|
}
|
|
4467
4452
|
});
|
|
4468
4453
|
|
|
4469
|
-
// src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts
|
|
4454
|
+
// ../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts
|
|
4470
4455
|
async function ensureSymbolIndexFileImpl(parentPath, filePath, opts) {
|
|
4471
4456
|
const resolved = normalizeResolvedPath(parentPath);
|
|
4472
4457
|
const relPath = normalizeSymbolIndexRelPath(filePath);
|
|
@@ -4493,7 +4478,7 @@ async function ensureSymbolIndexFileImpl(parentPath, filePath, opts) {
|
|
|
4493
4478
|
}
|
|
4494
4479
|
var MAX_IMPORT_PREFETCH_COUNT;
|
|
4495
4480
|
var init_ensure_symbol_index_file_impl = __esm({
|
|
4496
|
-
"src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts"() {
|
|
4481
|
+
"../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-impl.ts"() {
|
|
4497
4482
|
"use strict";
|
|
4498
4483
|
init_normalize_resolved_path();
|
|
4499
4484
|
init_database();
|
|
@@ -4507,7 +4492,7 @@ var init_ensure_symbol_index_file_impl = __esm({
|
|
|
4507
4492
|
}
|
|
4508
4493
|
});
|
|
4509
4494
|
|
|
4510
|
-
// src/code-nav/symbol-index/build/build-symbol-index-impl.ts
|
|
4495
|
+
// ../bridge/src/code-nav/symbol-index/build/build-symbol-index-impl.ts
|
|
4511
4496
|
async function buildSymbolIndexImpl(parentPath) {
|
|
4512
4497
|
const resolved = normalizeResolvedPath(parentPath);
|
|
4513
4498
|
let clearRemaining = true;
|
|
@@ -4547,7 +4532,7 @@ async function buildSymbolIndexImpl(parentPath) {
|
|
|
4547
4532
|
}
|
|
4548
4533
|
var SYMBOL_PARENT_CLEAR_BATCH_SIZE;
|
|
4549
4534
|
var init_build_symbol_index_impl = __esm({
|
|
4550
|
-
"src/code-nav/symbol-index/build/build-symbol-index-impl.ts"() {
|
|
4535
|
+
"../bridge/src/code-nav/symbol-index/build/build-symbol-index-impl.ts"() {
|
|
4551
4536
|
"use strict";
|
|
4552
4537
|
init_normalize_resolved_path();
|
|
4553
4538
|
init_database();
|
|
@@ -4561,30 +4546,30 @@ var init_build_symbol_index_impl = __esm({
|
|
|
4561
4546
|
}
|
|
4562
4547
|
});
|
|
4563
4548
|
|
|
4564
|
-
// src/code-nav/symbol-index/build/build-symbol-index-host.ts
|
|
4549
|
+
// ../bridge/src/code-nav/symbol-index/build/build-symbol-index-host.ts
|
|
4565
4550
|
var init_build_symbol_index_host = __esm({
|
|
4566
|
-
"src/code-nav/symbol-index/build/build-symbol-index-host.ts"() {
|
|
4551
|
+
"../bridge/src/code-nav/symbol-index/build/build-symbol-index-host.ts"() {
|
|
4567
4552
|
"use strict";
|
|
4568
4553
|
init_build_symbol_index_impl();
|
|
4569
4554
|
}
|
|
4570
4555
|
});
|
|
4571
4556
|
|
|
4572
|
-
// src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts
|
|
4557
|
+
// ../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts
|
|
4573
4558
|
var init_ensure_symbol_index_file_host = __esm({
|
|
4574
|
-
"src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts"() {
|
|
4559
|
+
"../bridge/src/code-nav/symbol-index/build/ensure-symbol-index-file-host.ts"() {
|
|
4575
4560
|
"use strict";
|
|
4576
4561
|
init_ensure_symbol_index_file_impl();
|
|
4577
4562
|
}
|
|
4578
4563
|
});
|
|
4579
4564
|
|
|
4580
|
-
// src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts
|
|
4565
|
+
// ../bridge/src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts
|
|
4581
4566
|
var init_normalize_symbol_index_path = __esm({
|
|
4582
|
-
"src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts"() {
|
|
4567
|
+
"../bridge/src/code-nav/symbol-index/lifecycle/normalize-symbol-index-path.ts"() {
|
|
4583
4568
|
"use strict";
|
|
4584
4569
|
}
|
|
4585
4570
|
});
|
|
4586
4571
|
|
|
4587
|
-
// src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts
|
|
4572
|
+
// ../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts
|
|
4588
4573
|
async function updateSymbolIndexRelPathImpl(parentPath, relPath) {
|
|
4589
4574
|
const normalizedRel = relPath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
4590
4575
|
if (!normalizedRel) return;
|
|
@@ -4604,7 +4589,7 @@ async function removeSymbolIndexRelPathImpl(parentPath, relPath) {
|
|
|
4604
4589
|
});
|
|
4605
4590
|
}
|
|
4606
4591
|
var init_update_symbol_index_file_impl = __esm({
|
|
4607
|
-
"src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts"() {
|
|
4592
|
+
"../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-impl.ts"() {
|
|
4608
4593
|
"use strict";
|
|
4609
4594
|
init_normalize_resolved_path();
|
|
4610
4595
|
init_yield_to_event_loop();
|
|
@@ -4615,15 +4600,15 @@ var init_update_symbol_index_file_impl = __esm({
|
|
|
4615
4600
|
}
|
|
4616
4601
|
});
|
|
4617
4602
|
|
|
4618
|
-
// src/code-nav/symbol-index/build/update-symbol-index-file-host.ts
|
|
4603
|
+
// ../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-host.ts
|
|
4619
4604
|
var init_update_symbol_index_file_host = __esm({
|
|
4620
|
-
"src/code-nav/symbol-index/build/update-symbol-index-file-host.ts"() {
|
|
4605
|
+
"../bridge/src/code-nav/symbol-index/build/update-symbol-index-file-host.ts"() {
|
|
4621
4606
|
"use strict";
|
|
4622
4607
|
init_update_symbol_index_file_impl();
|
|
4623
4608
|
}
|
|
4624
4609
|
});
|
|
4625
4610
|
|
|
4626
|
-
// src/code-nav/symbol-index/worker/post-message.ts
|
|
4611
|
+
// ../bridge/src/code-nav/symbol-index/worker/post-message.ts
|
|
4627
4612
|
function postSafe(port, message) {
|
|
4628
4613
|
try {
|
|
4629
4614
|
port.postMessage(message);
|
|
@@ -4631,12 +4616,12 @@ function postSafe(port, message) {
|
|
|
4631
4616
|
}
|
|
4632
4617
|
}
|
|
4633
4618
|
var init_post_message = __esm({
|
|
4634
|
-
"src/code-nav/symbol-index/worker/post-message.ts"() {
|
|
4619
|
+
"../bridge/src/code-nav/symbol-index/worker/post-message.ts"() {
|
|
4635
4620
|
"use strict";
|
|
4636
4621
|
}
|
|
4637
4622
|
});
|
|
4638
4623
|
|
|
4639
|
-
// src/code-nav/symbol-index/worker/index-handlers.ts
|
|
4624
|
+
// ../bridge/src/code-nav/symbol-index/worker/index-handlers.ts
|
|
4640
4625
|
function postWorkerError(port, requestId, err) {
|
|
4641
4626
|
if (isCliImmediateShutdownRequested() || isSymbolIndexWorkerShutdownRequested() || err instanceof CliSqliteInterrupted) {
|
|
4642
4627
|
postSafe(port, {
|
|
@@ -4697,7 +4682,7 @@ async function handleIndexWorkerMessage(port, msg) {
|
|
|
4697
4682
|
}
|
|
4698
4683
|
}
|
|
4699
4684
|
var init_index_handlers = __esm({
|
|
4700
|
-
"src/code-nav/symbol-index/worker/index-handlers.ts"() {
|
|
4685
|
+
"../bridge/src/code-nav/symbol-index/worker/index-handlers.ts"() {
|
|
4701
4686
|
"use strict";
|
|
4702
4687
|
init_cli_process_interrupt();
|
|
4703
4688
|
init_sqlite_errors();
|
|
@@ -4709,13 +4694,13 @@ var init_index_handlers = __esm({
|
|
|
4709
4694
|
}
|
|
4710
4695
|
});
|
|
4711
4696
|
|
|
4712
|
-
// src/code-nav/symbol-index/scheduler/task-priority-heap.ts
|
|
4697
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-priority-heap.ts
|
|
4713
4698
|
function higherPriority(a, b) {
|
|
4714
4699
|
return a.priority > b.priority;
|
|
4715
4700
|
}
|
|
4716
4701
|
var SymbolIndexTaskPriorityHeap;
|
|
4717
4702
|
var init_task_priority_heap = __esm({
|
|
4718
|
-
"src/code-nav/symbol-index/scheduler/task-priority-heap.ts"() {
|
|
4703
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-priority-heap.ts"() {
|
|
4719
4704
|
"use strict";
|
|
4720
4705
|
SymbolIndexTaskPriorityHeap = class {
|
|
4721
4706
|
heap = [];
|
|
@@ -4767,17 +4752,17 @@ var init_task_priority_heap = __esm({
|
|
|
4767
4752
|
}
|
|
4768
4753
|
});
|
|
4769
4754
|
|
|
4770
|
-
// src/code-nav/symbol-index/scheduler/task-queue-types.ts
|
|
4755
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-types.ts
|
|
4771
4756
|
function symbolIndexTaskKey(parentPath, filePath) {
|
|
4772
4757
|
return `${parentPath}\0${filePath}`;
|
|
4773
4758
|
}
|
|
4774
4759
|
var init_task_queue_types = __esm({
|
|
4775
|
-
"src/code-nav/symbol-index/scheduler/task-queue-types.ts"() {
|
|
4760
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-types.ts"() {
|
|
4776
4761
|
"use strict";
|
|
4777
4762
|
}
|
|
4778
4763
|
});
|
|
4779
4764
|
|
|
4780
|
-
// src/code-nav/symbol-index/scheduler/task-queue-store.ts
|
|
4765
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-store.ts
|
|
4781
4766
|
function setSymbolIndexWorkerRunning(running) {
|
|
4782
4767
|
symbolIndexWorkerRunning = running;
|
|
4783
4768
|
}
|
|
@@ -4806,7 +4791,7 @@ function clearSymbolIndexHeapIfEmpty() {
|
|
|
4806
4791
|
}
|
|
4807
4792
|
var pendingSymbolIndexTasks, symbolIndexTaskHeap, latestActiveSequenceByParent, symbolIndexWorkerRunning;
|
|
4808
4793
|
var init_task_queue_store = __esm({
|
|
4809
|
-
"src/code-nav/symbol-index/scheduler/task-queue-store.ts"() {
|
|
4794
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-store.ts"() {
|
|
4810
4795
|
"use strict";
|
|
4811
4796
|
init_task_priority_heap();
|
|
4812
4797
|
init_task_queue_types();
|
|
@@ -4817,7 +4802,7 @@ var init_task_queue_store = __esm({
|
|
|
4817
4802
|
}
|
|
4818
4803
|
});
|
|
4819
4804
|
|
|
4820
|
-
// src/code-nav/symbol-index/scheduler/task-queue-core.ts
|
|
4805
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-core.ts
|
|
4821
4806
|
function enqueueSymbolIndexTaskInternal(parentPath, filePath, priority, sequence) {
|
|
4822
4807
|
const normalizedParent = normalizeResolvedPath(parentPath);
|
|
4823
4808
|
const normalizedFile = filePath.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
@@ -4855,7 +4840,7 @@ function deferBackgroundSymbolIndexTasks() {
|
|
|
4855
4840
|
}
|
|
4856
4841
|
var SYMBOL_INDEX_BACKGROUND_PRIORITY_MAX;
|
|
4857
4842
|
var init_task_queue_core = __esm({
|
|
4858
|
-
"src/code-nav/symbol-index/scheduler/task-queue-core.ts"() {
|
|
4843
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-core.ts"() {
|
|
4859
4844
|
"use strict";
|
|
4860
4845
|
init_normalize_resolved_path();
|
|
4861
4846
|
init_task_queue_store();
|
|
@@ -4863,7 +4848,7 @@ var init_task_queue_core = __esm({
|
|
|
4863
4848
|
}
|
|
4864
4849
|
});
|
|
4865
4850
|
|
|
4866
|
-
// src/code-nav/symbol-index/scheduler/task-queue-worker.ts
|
|
4851
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/task-queue-worker.ts
|
|
4867
4852
|
async function runWorkerLoop() {
|
|
4868
4853
|
if (symbolIndexWorkerRunning) return;
|
|
4869
4854
|
setSymbolIndexWorkerRunning(true);
|
|
@@ -4901,7 +4886,7 @@ function kickSymbolIndexWorkerLoop() {
|
|
|
4901
4886
|
void runWorkerLoop();
|
|
4902
4887
|
}
|
|
4903
4888
|
var init_task_queue_worker = __esm({
|
|
4904
|
-
"src/code-nav/symbol-index/scheduler/task-queue-worker.ts"() {
|
|
4889
|
+
"../bridge/src/code-nav/symbol-index/scheduler/task-queue-worker.ts"() {
|
|
4905
4890
|
"use strict";
|
|
4906
4891
|
init_deferred_indexing();
|
|
4907
4892
|
init_in_flight();
|
|
@@ -4913,7 +4898,7 @@ var init_task_queue_worker = __esm({
|
|
|
4913
4898
|
}
|
|
4914
4899
|
});
|
|
4915
4900
|
|
|
4916
|
-
// src/code-nav/symbol-index/worker/queue-handlers.ts
|
|
4901
|
+
// ../bridge/src/code-nav/symbol-index/worker/queue-handlers.ts
|
|
4917
4902
|
function handleQueueWorkerMessage(msg) {
|
|
4918
4903
|
switch (msg.type) {
|
|
4919
4904
|
case "enqueue":
|
|
@@ -4939,7 +4924,7 @@ function handleQueueWorkerMessage(msg) {
|
|
|
4939
4924
|
}
|
|
4940
4925
|
}
|
|
4941
4926
|
var init_queue_handlers = __esm({
|
|
4942
|
-
"src/code-nav/symbol-index/worker/queue-handlers.ts"() {
|
|
4927
|
+
"../bridge/src/code-nav/symbol-index/worker/queue-handlers.ts"() {
|
|
4943
4928
|
"use strict";
|
|
4944
4929
|
init_in_flight();
|
|
4945
4930
|
init_task_queue_core();
|
|
@@ -4947,7 +4932,7 @@ var init_queue_handlers = __esm({
|
|
|
4947
4932
|
}
|
|
4948
4933
|
});
|
|
4949
4934
|
|
|
4950
|
-
// src/code-nav/symbol-index/build/register-symbol-index-parent.ts
|
|
4935
|
+
// ../bridge/src/code-nav/symbol-index/build/register-symbol-index-parent.ts
|
|
4951
4936
|
async function registerSymbolIndexParentAsync(parentPath) {
|
|
4952
4937
|
const resolved = normalizeResolvedPath(parentPath);
|
|
4953
4938
|
await withCodeNavCacheSqlite((db) => {
|
|
@@ -4955,7 +4940,7 @@ async function registerSymbolIndexParentAsync(parentPath) {
|
|
|
4955
4940
|
});
|
|
4956
4941
|
}
|
|
4957
4942
|
var init_register_symbol_index_parent = __esm({
|
|
4958
|
-
"src/code-nav/symbol-index/build/register-symbol-index-parent.ts"() {
|
|
4943
|
+
"../bridge/src/code-nav/symbol-index/build/register-symbol-index-parent.ts"() {
|
|
4959
4944
|
"use strict";
|
|
4960
4945
|
init_normalize_resolved_path();
|
|
4961
4946
|
init_database();
|
|
@@ -4963,7 +4948,7 @@ var init_register_symbol_index_parent = __esm({
|
|
|
4963
4948
|
}
|
|
4964
4949
|
});
|
|
4965
4950
|
|
|
4966
|
-
// src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts
|
|
4951
|
+
// ../bridge/src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts
|
|
4967
4952
|
function scheduleWarmupWhenIdle() {
|
|
4968
4953
|
if (warmupIdleTimer != null) clearTimeout(warmupIdleTimer);
|
|
4969
4954
|
warmupIdleTimer = setTimeout(() => {
|
|
@@ -5018,7 +5003,7 @@ function scheduleSymbolIndexWarmupInWorkerHost(parentPath) {
|
|
|
5018
5003
|
}
|
|
5019
5004
|
var requestSeq, warmupSeq, warmupCompleted, pendingWarmupParents, warmupWalkInProgress, WARMUP_IDLE_MS, warmupIdleTimer;
|
|
5020
5005
|
var init_symbol_index_warmup_host = __esm({
|
|
5021
|
-
"src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts"() {
|
|
5006
|
+
"../bridge/src/code-nav/symbol-index/scheduler/symbol-index-warmup-host.ts"() {
|
|
5022
5007
|
"use strict";
|
|
5023
5008
|
init_normalize_resolved_path();
|
|
5024
5009
|
init_in_flight();
|
|
@@ -5040,7 +5025,7 @@ var init_symbol_index_warmup_host = __esm({
|
|
|
5040
5025
|
}
|
|
5041
5026
|
});
|
|
5042
5027
|
|
|
5043
|
-
// src/code-nav/symbol-index/worker/setup-handlers.ts
|
|
5028
|
+
// ../bridge/src/code-nav/symbol-index/worker/setup-handlers.ts
|
|
5044
5029
|
async function handleSetupWorkerMessage(msg) {
|
|
5045
5030
|
switch (msg.type) {
|
|
5046
5031
|
case "registerParent":
|
|
@@ -5054,14 +5039,14 @@ async function handleSetupWorkerMessage(msg) {
|
|
|
5054
5039
|
}
|
|
5055
5040
|
}
|
|
5056
5041
|
var init_setup_handlers = __esm({
|
|
5057
|
-
"src/code-nav/symbol-index/worker/setup-handlers.ts"() {
|
|
5042
|
+
"../bridge/src/code-nav/symbol-index/worker/setup-handlers.ts"() {
|
|
5058
5043
|
"use strict";
|
|
5059
5044
|
init_register_symbol_index_parent();
|
|
5060
5045
|
init_symbol_index_warmup_host();
|
|
5061
5046
|
}
|
|
5062
5047
|
});
|
|
5063
5048
|
|
|
5064
|
-
// src/code-nav/symbol-index/worker/handle-message.ts
|
|
5049
|
+
// ../bridge/src/code-nav/symbol-index/worker/handle-message.ts
|
|
5065
5050
|
async function waitForActiveWorkerHandlersIdle(pollMs = 10) {
|
|
5066
5051
|
while (activeWorkerHandlers > 0) {
|
|
5067
5052
|
await new Promise((resolve) => setTimeout(resolve, pollMs));
|
|
@@ -5113,7 +5098,7 @@ async function handleRequestMessage(port, msg) {
|
|
|
5113
5098
|
}
|
|
5114
5099
|
var activeWorkerHandlers;
|
|
5115
5100
|
var init_handle_message = __esm({
|
|
5116
|
-
"src/code-nav/symbol-index/worker/handle-message.ts"() {
|
|
5101
|
+
"../bridge/src/code-nav/symbol-index/worker/handle-message.ts"() {
|
|
5117
5102
|
"use strict";
|
|
5118
5103
|
init_cli_process_interrupt();
|
|
5119
5104
|
init_database();
|
|
@@ -5128,7 +5113,7 @@ var init_handle_message = __esm({
|
|
|
5128
5113
|
}
|
|
5129
5114
|
});
|
|
5130
5115
|
|
|
5131
|
-
// src/code-nav/symbol-index/worker/host.ts
|
|
5116
|
+
// ../bridge/src/code-nav/symbol-index/worker/host.ts
|
|
5132
5117
|
function attachSymbolIndexWorkerHost(port) {
|
|
5133
5118
|
port.onMessage((message) => {
|
|
5134
5119
|
void handleRequestMessage(port, message);
|
|
@@ -5136,14 +5121,14 @@ function attachSymbolIndexWorkerHost(port) {
|
|
|
5136
5121
|
postSafe(port, { type: "ready" });
|
|
5137
5122
|
}
|
|
5138
5123
|
var init_host = __esm({
|
|
5139
|
-
"src/code-nav/symbol-index/worker/host.ts"() {
|
|
5124
|
+
"../bridge/src/code-nav/symbol-index/worker/host.ts"() {
|
|
5140
5125
|
"use strict";
|
|
5141
5126
|
init_handle_message();
|
|
5142
5127
|
init_post_message();
|
|
5143
5128
|
}
|
|
5144
5129
|
});
|
|
5145
5130
|
|
|
5146
|
-
// src/code-nav/symbol-index/worker/entry.ts
|
|
5131
|
+
// ../bridge/src/code-nav/symbol-index/worker/entry.ts
|
|
5147
5132
|
init_in_flight();
|
|
5148
5133
|
init_code_nav_cache_log();
|
|
5149
5134
|
init_host();
|