@cortexkit/pi-magic-context 0.49.86 → 0.49.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-search-worker.js +13 -7
- package/dist/chunk-embedding-write-worker.js +6 -6
- package/dist/{compartment-chunk-embedding-avkyp2df.js → compartment-chunk-embedding-7pzb51r4.js} +3 -1
- package/dist/{embedding-backfill-7a01ns95.js → embedding-backfill-yydkxhrp.js} +8 -8
- package/dist/{embedding-cache-7rp4gqzr.js → embedding-cache-xft42rsb.js} +5 -1
- package/dist/embedding-worker.js +2 -2
- package/dist/{index-cxczethe.js → index-464qhgjp.js} +4 -4
- package/dist/{index-hpbdnbtf.js → index-68tyan5e.js} +8 -2
- package/dist/{index-7yz95h83.js → index-6x595qtk.js} +76 -13
- package/dist/{index-29nw7n1r.js → index-70sw39ck.js} +1 -1
- package/dist/{index-53fgdt6n.js → index-7xsbhw6m.js} +1 -1
- package/dist/{index-ex9te7tc.js → index-aahd8x9s.js} +1 -1
- package/dist/{index-rqdjb6j3.js → index-fsjsvq78.js} +1 -1
- package/dist/{index-fvfq9gva.js → index-hp320128.js} +1 -1
- package/dist/{index-yhzhdp3m.js → index-hrwc50n3.js} +48 -1
- package/dist/{index-fd57gfnn.js → index-hs862sjk.js} +3 -3
- package/dist/{index-7thk2cwt.js → index-jhsypxe9.js} +3 -0
- package/dist/{index-94z1xzmr.js → index-kezt62gs.js} +1 -1
- package/dist/{index-wy6h2wn2.js → index-kn83b37d.js} +5 -5
- package/dist/{index-5n3bqhp9.js → index-ndprcb9x.js} +25 -16
- package/dist/{index-0t9xfj3x.js → index-qpdh2aff.js} +1 -1
- package/dist/{index-bjr11ay6.js → index-qtfp61mq.js} +4 -4
- package/dist/{index-8x8wtn3t.js → index-rrm9ce0j.js} +108 -13
- package/dist/{index-gbc29ysq.js → index-rzwcmbww.js} +1 -1
- package/dist/{index-sqp84q6s.js → index-w48rf3j6.js} +2 -2
- package/dist/{index-8631kxcp.js → index-z2bdsba1.js} +14 -14
- package/dist/index.js +397 -135
- package/dist/{message-index-bounded-sra4jpac.js → message-index-bounded-vxf4ez55.js} +2 -2
- package/dist/migration-worker.js +4 -4
- package/dist/{project-embedding-registry-agkd7egh.js → project-embedding-registry-f9tzr12g.js} +7 -7
- package/dist/raw-ordinal-warmup-worker.js +3 -3
- package/dist/{read-session-chunk-wek7gb7j.js → read-session-chunk-tec7t4vy.js} +1 -1
- package/dist/{render-rphfegr8.js → render-mr2bb4yf.js} +9 -9
- package/dist/{rpc-notifications-889zvhn2.js → rpc-notifications-qc5ha504.js} +1 -1
- package/dist/{search-archive-7p43e77j.js → search-archive-abtztrw5.js} +3 -3
- package/dist/{search-rdvsnxky.js → search-rdqrskte.js} +14 -14
- package/dist/{storage-memory-0ndn65fm.js → storage-memory-2sed597w.js} +2 -2
- package/dist/subagent-entry.js +19 -19
- package/dist/tag-snapshot-worker-pi.js +4 -4
- package/dist/{v2-archive-reader-qc4c9wrp.js → v2-archive-reader-qaecyb4y.js} +1 -1
- package/package.json +1 -1
|
@@ -33,12 +33,13 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
buildCanonicalChunkTextFromFts2,
|
|
35
35
|
loadCompartmentChunkEmbeddingsForSearch2,
|
|
36
|
+
trackCompartmentChunkSearchPool2,
|
|
36
37
|
peekCompartmentChunkSearchPool2,
|
|
37
38
|
warmCompartmentChunkSearchPool2
|
|
38
|
-
} from "./index-
|
|
39
|
+
} from "./index-464qhgjp.js";
|
|
39
40
|
import {
|
|
40
41
|
LocalEmbeddingProvider
|
|
41
|
-
} from "./index-
|
|
42
|
+
} from "./index-fsjsvq78.js";
|
|
42
43
|
import {
|
|
43
44
|
OpenAICompatibleEmbeddingProvider,
|
|
44
45
|
saveCommitEmbedding,
|
|
@@ -56,20 +57,20 @@ import {
|
|
|
56
57
|
getProjectEmbeddingSnapshot2,
|
|
57
58
|
embedTextForProject2,
|
|
58
59
|
embedItemsForProject2
|
|
59
|
-
} from "./index-
|
|
60
|
+
} from "./index-kn83b37d.js";
|
|
60
61
|
import {
|
|
61
62
|
recordEmbeddingMeasurement
|
|
62
63
|
} from "./index-hgd00nas.js";
|
|
63
64
|
import {
|
|
64
65
|
scheduleAfterBootQuiet
|
|
65
|
-
} from "./index-
|
|
66
|
+
} from "./index-kezt62gs.js";
|
|
66
67
|
import {
|
|
67
68
|
saveEmbeddingIfHashMatches,
|
|
68
69
|
getProjectEmbeddings2
|
|
69
|
-
} from "./index-
|
|
70
|
+
} from "./index-hrwc50n3.js";
|
|
70
71
|
import {
|
|
71
72
|
ensureMemoryEmbeddings2
|
|
72
|
-
} from "./index-
|
|
73
|
+
} from "./index-w48rf3j6.js";
|
|
73
74
|
import {
|
|
74
75
|
getMemorySelectColumns2,
|
|
75
76
|
isMemoryRow2,
|
|
@@ -83,7 +84,7 @@ import {
|
|
|
83
84
|
getMemoryById2,
|
|
84
85
|
updateMemorySeenCount2,
|
|
85
86
|
updateMemoryRetrievalCount2
|
|
86
|
-
} from "./index-
|
|
87
|
+
} from "./index-70sw39ck.js";
|
|
87
88
|
import {
|
|
88
89
|
cleanSearchText,
|
|
89
90
|
hintKeywordRelevance,
|
|
@@ -97,7 +98,7 @@ import {
|
|
|
97
98
|
clearIndexedMessages,
|
|
98
99
|
indexSingleMessage,
|
|
99
100
|
indexMessagesAfterOrdinal
|
|
100
|
-
} from "./index-
|
|
101
|
+
} from "./index-qpdh2aff.js";
|
|
101
102
|
import {
|
|
102
103
|
MESSAGE_FTS_SESSION_FILTER_SQL,
|
|
103
104
|
withMessageFtsSessionFilter
|
|
@@ -108,11 +109,11 @@ import {
|
|
|
108
109
|
expandWorkspaceIdentitySetWithAliases,
|
|
109
110
|
resolveStoredPathWorkspaceIdentity,
|
|
110
111
|
sourceNameForMemory
|
|
111
|
-
} from "./index-
|
|
112
|
+
} from "./index-7xsbhw6m.js";
|
|
112
113
|
import {
|
|
113
114
|
getNotes,
|
|
114
115
|
getActivePrimers
|
|
115
|
-
} from "./index-
|
|
116
|
+
} from "./index-rzwcmbww.js";
|
|
116
117
|
import {
|
|
117
118
|
computeNormalizedHash
|
|
118
119
|
} from "./index-9x1f96r8.js";
|
|
@@ -398,10 +399,12 @@ var USER_FACING_FAILURES = {
|
|
|
398
399
|
action: "Check the Magic Context log for the failing task and its error."
|
|
399
400
|
}
|
|
400
401
|
};
|
|
401
|
-
function renderUserFacingFailure(key, style = "markdown") {
|
|
402
|
+
function renderUserFacingFailure(key, style = "markdown", overrides) {
|
|
402
403
|
const failure = USER_FACING_FAILURES[key];
|
|
403
|
-
const
|
|
404
|
-
|
|
404
|
+
const sentence = overrides?.sentence ?? failure.sentence;
|
|
405
|
+
const action = overrides?.action ?? failure.action;
|
|
406
|
+
const styledAction = style === "plain" ? action.replaceAll("`", "") : action;
|
|
407
|
+
return `${sentence}${styledAction ? ` ${styledAction}` : ""} (${failure.code})`;
|
|
405
408
|
}
|
|
406
409
|
function userFacingFailureCode(key) {
|
|
407
410
|
return USER_FACING_FAILURES[key].code;
|
|
@@ -3308,8 +3311,12 @@ async function searchCompartmentChunks(args) {
|
|
|
3308
3311
|
if (args.diagnostics)
|
|
3309
3312
|
args.diagnostics.pool = "no-vector";
|
|
3310
3313
|
args.reportDiagnostics?.();
|
|
3311
|
-
if (args.warmOnly)
|
|
3312
|
-
|
|
3314
|
+
if (args.warmOnly) {
|
|
3315
|
+
if (args.deferWarmup)
|
|
3316
|
+
trackCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
|
|
3317
|
+
else
|
|
3318
|
+
warmCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
|
|
3319
|
+
}
|
|
3313
3320
|
return [];
|
|
3314
3321
|
}
|
|
3315
3322
|
const cutoff = args.maxOrdinal != null && args.maxOrdinal >= 0 ? args.maxOrdinal : null;
|
|
@@ -3324,7 +3331,8 @@ async function searchCompartmentChunks(args) {
|
|
|
3324
3331
|
args.diagnostics.poolRows = 0;
|
|
3325
3332
|
}
|
|
3326
3333
|
args.reportDiagnostics?.();
|
|
3327
|
-
|
|
3334
|
+
if (!args.deferWarmup)
|
|
3335
|
+
warmCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
|
|
3328
3336
|
return [];
|
|
3329
3337
|
}
|
|
3330
3338
|
if (args.timings)
|
|
@@ -3734,6 +3742,7 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
|
|
|
3734
3742
|
modelId: chunkModelId && chunkModelId !== "off" ? chunkModelId : null,
|
|
3735
3743
|
dateRange,
|
|
3736
3744
|
warmOnly: options.chunkPoolWarmOnly,
|
|
3745
|
+
deferWarmup: options.deferChunkPoolWarmup,
|
|
3737
3746
|
signal: options.signal,
|
|
3738
3747
|
timings,
|
|
3739
3748
|
diagnostics: options.autoSearchDiagnostics,
|
|
@@ -66,13 +66,13 @@ import {
|
|
|
66
66
|
writeStorageFileAtomicSync,
|
|
67
67
|
syncStorageDirectorySync,
|
|
68
68
|
writeStorageFileDurableAtomicSync
|
|
69
|
-
} from "./index-
|
|
69
|
+
} from "./index-rrm9ce0j.js";
|
|
70
70
|
import {
|
|
71
71
|
withReadOnlySessionDb,
|
|
72
72
|
expandToolPart,
|
|
73
73
|
visitRawSessionMessages2,
|
|
74
74
|
readRawSessionMessageById2
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-68tyan5e.js";
|
|
76
76
|
import {
|
|
77
77
|
gaDatabasePath2,
|
|
78
78
|
V2StoreReader2
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
} from "./index-ghp32f9m.js";
|
|
83
83
|
import {
|
|
84
84
|
deleteChunkEmbedBackoffForSession2
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-464qhgjp.js";
|
|
86
86
|
import {
|
|
87
87
|
invalidateAutoEmbedSession,
|
|
88
88
|
drainBackgroundBatches
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
import {
|
|
91
91
|
layoutLkgPrefix,
|
|
92
92
|
assembleLkgPrefix
|
|
93
|
-
} from "./index-
|
|
93
|
+
} from "./index-7xsbhw6m.js";
|
|
94
94
|
import {
|
|
95
95
|
logSlowWriteTransaction
|
|
96
96
|
} from "./index-1ts77n1b.js";
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
readdirSync,
|
|
18
18
|
readlinkSync,
|
|
19
19
|
readSync,
|
|
20
|
+
realpathSync,
|
|
20
21
|
renameSync,
|
|
21
22
|
rmdirSync,
|
|
22
23
|
rmSync,
|
|
@@ -25,6 +26,7 @@ import {
|
|
|
25
26
|
writeSync
|
|
26
27
|
} from "node:fs";
|
|
27
28
|
import { open as openAsync, writeFile as writeFileAsync } from "node:fs/promises";
|
|
29
|
+
import { homedir } from "node:os";
|
|
28
30
|
import { basename, dirname, join, resolve } from "node:path";
|
|
29
31
|
|
|
30
32
|
// ../plugin/src/shared/rpc-utils.ts
|
|
@@ -742,6 +744,36 @@ var STORAGE_PERMISSIONS_MARKER_BYTES = Buffer.from(`${STORAGE_PERMISSIONS_POLICY
|
|
|
742
744
|
`);
|
|
743
745
|
var STORAGE_PERMISSIONS_MARKER_MAX_AGE_MS = 24 * 60 * 60000;
|
|
744
746
|
var LEGACY_FENCE_TEMP_MIN_AGE_MS = 10 * 60000;
|
|
747
|
+
var MAGIC_CONTEXT_STORAGE_ENTRIES = [
|
|
748
|
+
"context.db",
|
|
749
|
+
"context.db-wal",
|
|
750
|
+
"context.db-shm",
|
|
751
|
+
"context.db-journal",
|
|
752
|
+
"store.db",
|
|
753
|
+
"store.db-wal",
|
|
754
|
+
"store.db-shm",
|
|
755
|
+
"store.db-journal",
|
|
756
|
+
STORAGE_PERMISSIONS_MARKER,
|
|
757
|
+
"models",
|
|
758
|
+
"logs",
|
|
759
|
+
"backups",
|
|
760
|
+
"config-backups",
|
|
761
|
+
"lkg-recovery-fences",
|
|
762
|
+
"rpc",
|
|
763
|
+
"project-identities",
|
|
764
|
+
"heap-snapshots",
|
|
765
|
+
"host-profiler",
|
|
766
|
+
"pi-served-array-digests",
|
|
767
|
+
"pi-served-array-bodies",
|
|
768
|
+
"pi-served-tag-numbers",
|
|
769
|
+
"window-reports.jsonl",
|
|
770
|
+
"window-reports.jsonl.1",
|
|
771
|
+
/^(?:last_announced_version|last-update-check\.json|pending-plugin-update\.json|model-context-limits-(?:opencode|opencode2)\.json)(?:\.[1-9]\d*\.[a-f0-9]{12}\.tmp)?$/,
|
|
772
|
+
/^identity-merge-backup-[A-Za-z0-9]{6}$/,
|
|
773
|
+
/^context\.db\.bak-\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}-\d{3}Z$/,
|
|
774
|
+
/^context\.db\.corrupt-(?:backup|original)-\d{8}T\d{9}Z(?:-[1-9]\d{0,3})?(?:-wal|-shm)?$/,
|
|
775
|
+
/^context\.db\.recovering-\d{8}T\d{9}Z-[1-9]\d*(?:-[1-9]\d{0,3})?(?:\.(?:count-source|recover-source|(?:fresh\.)?db)(?:-wal|-shm)?|\.sql)$/
|
|
776
|
+
];
|
|
745
777
|
var storagePermissionRoots = new Set;
|
|
746
778
|
function invalidateStoragePermissionMarkers(directory) {
|
|
747
779
|
for (let current = resolve(directory);; current = dirname(current)) {
|
|
@@ -913,11 +945,77 @@ function readStoragePermissionCertificate(marker) {
|
|
|
913
945
|
closeSync(fd);
|
|
914
946
|
}
|
|
915
947
|
}
|
|
948
|
+
function inspectLinkedStorageRoot(root, rootStat) {
|
|
949
|
+
const parent = dirname(root);
|
|
950
|
+
if (root === parent)
|
|
951
|
+
return { skipped: "filesystem-root" };
|
|
952
|
+
try {
|
|
953
|
+
if (root === realpathSync(homedir()))
|
|
954
|
+
return { skipped: "home-folder" };
|
|
955
|
+
} catch (error) {
|
|
956
|
+
if (error.code !== "ENOENT")
|
|
957
|
+
throw error;
|
|
958
|
+
}
|
|
959
|
+
if (lstatSync(parent).dev !== rootStat.dev)
|
|
960
|
+
return { skipped: "mount-point" };
|
|
961
|
+
const entries = readdirSync(root);
|
|
962
|
+
const foreignEntries = entries.filter((name) => name !== ".DS_Store" && !MAGIC_CONTEXT_STORAGE_ENTRIES.some((entry) => typeof entry === "string" ? entry === name : entry.test(name))).length;
|
|
963
|
+
return foreignEntries === 0 ? { entries } : { skipped: foreignEntries };
|
|
964
|
+
}
|
|
916
965
|
function tightenStorageTreeSync(directory, dbPath = join(directory, "context.db")) {
|
|
917
966
|
if (process.platform === "win32") {
|
|
918
967
|
return { tightened: 0, failures: 0 };
|
|
919
968
|
}
|
|
920
|
-
const
|
|
969
|
+
const enforce = shouldEnforcePrivateStoragePermissions();
|
|
970
|
+
const startupPath = resolve(directory);
|
|
971
|
+
let root = startupPath;
|
|
972
|
+
let rootStat;
|
|
973
|
+
let rootLink;
|
|
974
|
+
let linkedEntries;
|
|
975
|
+
try {
|
|
976
|
+
rootStat = lstatSync(root);
|
|
977
|
+
} catch {
|
|
978
|
+
if (enforce)
|
|
979
|
+
return { tightened: 0, failures: 1 };
|
|
980
|
+
}
|
|
981
|
+
if (rootStat?.isSymbolicLink()) {
|
|
982
|
+
try {
|
|
983
|
+
root = realpathSync(startupPath);
|
|
984
|
+
rootStat = lstatSync(root);
|
|
985
|
+
if (rootStat.isDirectory() && enforce) {
|
|
986
|
+
const eligibility = inspectLinkedStorageRoot(root, rootStat);
|
|
987
|
+
if ("skipped" in eligibility) {
|
|
988
|
+
return {
|
|
989
|
+
tightened: 0,
|
|
990
|
+
failures: 0,
|
|
991
|
+
rootLink: { path: startupPath, target: root, skipped: eligibility.skipped }
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
linkedEntries = eligibility.entries;
|
|
995
|
+
}
|
|
996
|
+
} catch (error) {
|
|
997
|
+
if (!enforce)
|
|
998
|
+
return { tightened: 0, failures: 0 };
|
|
999
|
+
const failure = error.code ?? String(error);
|
|
1000
|
+
return { tightened: 0, failures: 1, rootLink: { path: startupPath, failure } };
|
|
1001
|
+
}
|
|
1002
|
+
if (!rootStat.isDirectory()) {
|
|
1003
|
+
if (!enforce)
|
|
1004
|
+
return { tightened: 0, failures: 0 };
|
|
1005
|
+
return {
|
|
1006
|
+
tightened: 0,
|
|
1007
|
+
failures: 1,
|
|
1008
|
+
rootLink: {
|
|
1009
|
+
path: startupPath,
|
|
1010
|
+
failure: "not a directory",
|
|
1011
|
+
nonDirectoryTarget: root
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
rootLink = { path: startupPath, target: root };
|
|
1016
|
+
dbPath = join(root, basename(dbPath));
|
|
1017
|
+
storagePermissionRoots.add(startupPath);
|
|
1018
|
+
}
|
|
921
1019
|
const marker = join(root, STORAGE_PERMISSIONS_MARKER);
|
|
922
1020
|
let tightened = 0;
|
|
923
1021
|
let failures = 0;
|
|
@@ -930,20 +1028,14 @@ function tightenStorageTreeSync(directory, dbPath = join(directory, "context.db"
|
|
|
930
1028
|
return false;
|
|
931
1029
|
}
|
|
932
1030
|
};
|
|
933
|
-
if (!
|
|
1031
|
+
if (!enforce) {
|
|
934
1032
|
storagePermissionRoots.add(root);
|
|
935
1033
|
if (!removeMarker())
|
|
936
1034
|
failures++;
|
|
937
|
-
return { tightened, failures };
|
|
1035
|
+
return { tightened, failures, ...rootLink && { rootLink } };
|
|
938
1036
|
}
|
|
939
|
-
|
|
940
|
-
try {
|
|
941
|
-
rootStat = lstatSync(root);
|
|
942
|
-
if (!rootStat.isDirectory())
|
|
943
|
-
return { tightened, failures: 1 };
|
|
944
|
-
} catch {
|
|
1037
|
+
if (!rootStat?.isDirectory())
|
|
945
1038
|
return { tightened, failures: 1 };
|
|
946
|
-
}
|
|
947
1039
|
storagePermissionRoots.add(root);
|
|
948
1040
|
let certificate;
|
|
949
1041
|
let discardMarker = false;
|
|
@@ -1023,13 +1115,16 @@ function tightenStorageTreeSync(directory, dbPath = join(directory, "context.db"
|
|
|
1023
1115
|
return;
|
|
1024
1116
|
let entries;
|
|
1025
1117
|
try {
|
|
1026
|
-
entries = readdirSync(entryPath);
|
|
1118
|
+
entries = (entryPath === root ? linkedEntries : undefined) ?? readdirSync(entryPath);
|
|
1027
1119
|
} catch {
|
|
1028
1120
|
failures++;
|
|
1029
1121
|
return;
|
|
1030
1122
|
}
|
|
1031
|
-
for (const entry of entries)
|
|
1123
|
+
for (const entry of entries) {
|
|
1124
|
+
if (entryPath === root && linkedEntries && markerRemoved && entry === STORAGE_PERMISSIONS_MARKER)
|
|
1125
|
+
continue;
|
|
1032
1126
|
visit(join(entryPath, entry));
|
|
1127
|
+
}
|
|
1033
1128
|
};
|
|
1034
1129
|
if (certificate) {
|
|
1035
1130
|
visit(root, false, false, rootStat);
|
|
@@ -1077,7 +1172,7 @@ function tightenStorageTreeSync(directory, dbPath = join(directory, "context.db"
|
|
|
1077
1172
|
}
|
|
1078
1173
|
}
|
|
1079
1174
|
}
|
|
1080
|
-
return { tightened, failures };
|
|
1175
|
+
return { tightened, failures, ...rootLink && { rootLink } };
|
|
1081
1176
|
}
|
|
1082
1177
|
|
|
1083
1178
|
export { piHarnessKindFromExecutable, isOwnRpcServerRecord, isPidAlive, readProcessStartTime, readProcessProbeEvidence, classifyProcessKind, isPidIdentityPlausible, inspectLivePiProcesses, parseRpcPortFile, inspectProcessesAsync, inspectWindowsProcessesSync, setStoragePrivatePermissionEnforcement, shouldEnforcePrivateStoragePermissions, ensureStorageDirectorySync, ensurePrivateStorageDirectorySync, writeStorageFileSync, writeStorageFileAtomicSync, syncStorageDirectorySync, writeStorageFileDurableAtomicSync, copyStorageFileSync, copyStorageTreeSync, writeStorageFileAsync, writeStorageFileHandleAsync, createStorageFileHandleAsync, tightenStorageTreeSync };
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
readSearchBackfillCursor2,
|
|
11
11
|
writeSearchBackfillCursor2,
|
|
12
12
|
embedItemsWindowBounded2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-kn83b37d.js";
|
|
14
14
|
import {
|
|
15
15
|
saveEmbeddingIfHashMatches
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-hrwc50n3.js";
|
|
17
17
|
|
|
18
18
|
// ../plugin/src/features/magic-context/memory/embedding-backfill.ts
|
|
19
19
|
var SEARCH_BACKFILL_LIMIT = 50;
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
piHarnessKindFromExecutable,
|
|
23
23
|
ensureStorageDirectorySync,
|
|
24
24
|
writeStorageFileAtomicSync
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-rrm9ce0j.js";
|
|
26
26
|
import {
|
|
27
27
|
piModelRefToCanonical,
|
|
28
28
|
modelRefLookupOrder,
|
|
@@ -71,10 +71,10 @@ import {
|
|
|
71
71
|
renderMessageByOrdinal2,
|
|
72
72
|
renderVerboseRange2,
|
|
73
73
|
renderItemByTag2
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-qtfp61mq.js";
|
|
75
75
|
import {
|
|
76
76
|
getLastIndexedOrdinal
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-qpdh2aff.js";
|
|
78
78
|
import {
|
|
79
79
|
TODO_STATUSES,
|
|
80
80
|
TODO_PRIORITIES,
|
|
@@ -111,14 +111,14 @@ import {
|
|
|
111
111
|
supersededMemory2,
|
|
112
112
|
mergeMemoryStats2,
|
|
113
113
|
archiveMemory2
|
|
114
|
-
} from "./index-
|
|
114
|
+
} from "./index-70sw39ck.js";
|
|
115
115
|
import {
|
|
116
116
|
saveEmbedding,
|
|
117
117
|
invalidateMemory2
|
|
118
|
-
} from "./index-
|
|
118
|
+
} from "./index-hrwc50n3.js";
|
|
119
119
|
import {
|
|
120
120
|
preflightLocalEmbeddingPooling
|
|
121
|
-
} from "./index-
|
|
121
|
+
} from "./index-fsjsvq78.js";
|
|
122
122
|
import {
|
|
123
123
|
withQueryEmbeddingDeadline,
|
|
124
124
|
markProjectLoadUntrusted2,
|
|
@@ -131,23 +131,23 @@ import {
|
|
|
131
131
|
unregisterProjectEmbedding2,
|
|
132
132
|
getProjectEmbeddingSnapshot2,
|
|
133
133
|
embedTextForProject2
|
|
134
|
-
} from "./index-
|
|
134
|
+
} from "./index-kn83b37d.js";
|
|
135
135
|
import {
|
|
136
136
|
directoryHasGitMetadata,
|
|
137
137
|
resolveProjectIdentityForSession,
|
|
138
138
|
normalizeStoredProjectPath,
|
|
139
139
|
storedPathBelongsToIdentity
|
|
140
|
-
} from "./index-
|
|
140
|
+
} from "./index-kezt62gs.js";
|
|
141
141
|
import {
|
|
142
142
|
createUnifiedSearchDiagnostics2,
|
|
143
143
|
parseIdShapedQuery2,
|
|
144
144
|
resolveMemoriesByIdsForSearch2,
|
|
145
145
|
unifiedSearch2,
|
|
146
146
|
formatSearchResults2
|
|
147
|
-
} from "./index-
|
|
147
|
+
} from "./index-ndprcb9x.js";
|
|
148
148
|
import {
|
|
149
149
|
getErrorMessage
|
|
150
|
-
} from "./index-
|
|
150
|
+
} from "./index-6x595qtk.js";
|
|
151
151
|
import {
|
|
152
152
|
resolveOpenCodeDbPath,
|
|
153
153
|
assertOpenCodeStoreGeneration
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
hasRawMessageProvider2,
|
|
157
157
|
setRawMessageProvider2,
|
|
158
158
|
readSessionChunk2
|
|
159
|
-
} from "./index-
|
|
159
|
+
} from "./index-68tyan5e.js";
|
|
160
160
|
import {
|
|
161
161
|
resolveWorkspaceShareCategories,
|
|
162
162
|
resolveWorkspaceIdentitySet,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
resolveStoredPathWorkspaceIdentity,
|
|
165
165
|
storedPathBelongsToWorkspace,
|
|
166
166
|
sourceNameForMemory
|
|
167
|
-
} from "./index-
|
|
167
|
+
} from "./index-7xsbhw6m.js";
|
|
168
168
|
import {
|
|
169
169
|
getNoteByIdInScope,
|
|
170
170
|
getNotes,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
updateNote,
|
|
176
176
|
dismissNotes,
|
|
177
177
|
dismissNote
|
|
178
|
-
} from "./index-
|
|
178
|
+
} from "./index-rzwcmbww.js";
|
|
179
179
|
import {
|
|
180
180
|
isMarkerCandidateBasisCurrent2,
|
|
181
181
|
invalidateMarkerCandidateBasis2,
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
} from "./index-3s39a1md.js";
|
|
190
190
|
import {
|
|
191
191
|
renderSearchArchive2
|
|
192
|
-
} from "./index-
|
|
192
|
+
} from "./index-hp320128.js";
|
|
193
193
|
import {
|
|
194
194
|
computeNormalizedHash
|
|
195
195
|
} from "./index-9x1f96r8.js";
|