lody 0.110.0 → 0.110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-interaction-owner-CdfQZsA1.js → acp-interaction-owner-CcAOYmEj.js} +4 -4
- package/dist/{agent-execution-BDaiNzV1.js → agent-execution-DbMHu2MY.js} +73 -3
- package/dist/chunks/{vendor-diff-1FyGa8Sd.js → vendor-diff-CPHd5agL.js} +251 -1
- package/dist/{client-CdDGKDiJ.js → client-CBW0Grpt.js} +4 -4
- package/dist/{code-collab-Q9UJxF5f.js → code-collab-COUEig0Z.js} +238 -155
- package/dist/{daemon-session-tools-B2o_Rn8o.js → daemon-session-tools-DgWu5_Fi.js} +4 -4
- package/dist/{diff-line-counts-Cfd7ywAS.js → diff-line-counts-C4QnbxuZ.js} +2 -2
- package/dist/{diff-worker-task-D7Ri1Pxx.js → diff-worker-task-CRv8CGSL.js} +2 -2
- package/dist/diff-worker.js +3 -3
- package/dist/{directory-handle-D3jV-baK.js → directory-handle-DT-Xm7WB.js} +5 -5
- package/dist/{dsh-plugins-bpB7jsn7.js → dsh-plugins-D2C2tzW9.js} +10 -10
- package/dist/file-index-scan-worker.js +4 -4
- package/dist/{file-lock-De7Gp7uV.js → file-lock-Ct7V9_V7.js} +5 -5
- package/dist/{index-DCvrDzQ4.js → index-C4-tIIH9.js} +5 -5
- package/dist/{index-Ct3cdpLb.js → index-Drq2NUA9.js} +95 -93
- package/dist/{index-CCkzRWUs.js → index-FDl9UATC.js} +7 -7
- package/dist/{index-Dr_w9T6F.js → index-R0ifto56.js} +5 -5
- package/dist/index.js +4 -4
- package/dist/{register-D7pWlArd.js → register-DDeKCzbJ.js} +1012 -83
- package/dist/{remote-pairing-1sJYblth.js → remote-pairing-CcEqyvpe.js} +5 -5
- package/dist/{reset-identity-DdzOplMy.js → reset-identity-E0bQ4nDX.js} +6 -6
- package/dist/{review-viewer-Be1SFRPK.js → review-viewer-CuYdljPk.js} +2 -2
- package/dist/{schedule-command-client--Bl9vjMS.js → schedule-command-client-SjsG4n0y.js} +4 -4
- package/dist/{telemetry-CHUhwRVv.js → telemetry-CztoQabb.js} +1155 -751
- package/dist/turn-diff-store-worker.js +92 -4
- package/dist/{workspace-legacy-CAbHfoet.js → workspace-legacy-Cu3kw51y.js} +246 -113
- package/package.json +1 -1
|
@@ -521,6 +521,7 @@ const CodeCollabV2EncodedTextPayloadSchema = discriminatedUnion("encoding", [
|
|
|
521
521
|
}).strict()
|
|
522
522
|
]);
|
|
523
523
|
const CodeCollabV2ErrorCodeSchema = _enum([
|
|
524
|
+
"stale",
|
|
524
525
|
"invalid_path",
|
|
525
526
|
"session_not_found",
|
|
526
527
|
"workspace_root_unavailable",
|
|
@@ -915,11 +916,16 @@ const isCorruptedCodeCollabWorkspacePath = (workspacePath) => workspacePath.incl
|
|
|
915
916
|
function scanCodeCollabFileIndexFlock(flock) {
|
|
916
917
|
const fileIndex = {};
|
|
917
918
|
const corruptedPaths = [];
|
|
919
|
+
const generations = {};
|
|
918
920
|
for (const row of flock.scan()) {
|
|
919
921
|
if (row.value === void 0) {
|
|
920
922
|
continue;
|
|
921
923
|
}
|
|
922
924
|
const [workspacePath, ...extra] = row.key;
|
|
925
|
+
if (extra.length === 1 && extra[0] === "v" && typeof workspacePath === "string" && isCodeCollabRecord(row.value) && typeof row.value.g === "string" && row.value.g.length > 0) {
|
|
926
|
+
generations[workspacePath] = row.value.g;
|
|
927
|
+
continue;
|
|
928
|
+
}
|
|
923
929
|
if (typeof workspacePath !== "string" || workspacePath.length === 0 || extra.length > 0) {
|
|
924
930
|
continue;
|
|
925
931
|
}
|
|
@@ -933,7 +939,34 @@ function scanCodeCollabFileIndexFlock(flock) {
|
|
|
933
939
|
}
|
|
934
940
|
fileIndex[workspacePath] = parsed;
|
|
935
941
|
}
|
|
936
|
-
return { fileIndex, corruptedPaths };
|
|
942
|
+
return { fileIndex, corruptedPaths, generations };
|
|
943
|
+
}
|
|
944
|
+
function readCodeCollabFileGenerations(flock) {
|
|
945
|
+
const result = {};
|
|
946
|
+
for (const row of flock.scan()) {
|
|
947
|
+
if (row.key.length !== 2 || row.key[1] !== "v" || typeof row.key[0] !== "string" || !isCodeCollabRecord(row.value))
|
|
948
|
+
continue;
|
|
949
|
+
if (typeof row.value.g === "string" && row.value.g.length > 0) result[row.key[0]] = row.value.g;
|
|
950
|
+
}
|
|
951
|
+
return result;
|
|
952
|
+
}
|
|
953
|
+
function applyCodeCollabFileGenerationEvents(previous, events) {
|
|
954
|
+
let next;
|
|
955
|
+
for (const event of events) {
|
|
956
|
+
if (event.key.length !== 2 || event.key[1] !== "v" || typeof event.key[0] !== "string")
|
|
957
|
+
continue;
|
|
958
|
+
const token = isCodeCollabRecord(event.value) && typeof event.value.g === "string" ? event.value.g : void 0;
|
|
959
|
+
const path = event.key[0];
|
|
960
|
+
if ((next ?? previous)[path] === token) continue;
|
|
961
|
+
next ??= { ...previous };
|
|
962
|
+
if (token === void 0) delete next[path];
|
|
963
|
+
else next[path] = token;
|
|
964
|
+
}
|
|
965
|
+
return next ?? previous;
|
|
966
|
+
}
|
|
967
|
+
function readCodeCollabFileIndexSnapshotFromFlock(flock) {
|
|
968
|
+
const { fileIndex, generations } = scanCodeCollabFileIndexFlock(flock);
|
|
969
|
+
return { fileIndex, generations };
|
|
937
970
|
}
|
|
938
971
|
function readCodeCollabFileIndexFromFlock(flock) {
|
|
939
972
|
return scanCodeCollabFileIndexFlock(flock).fileIndex;
|
|
@@ -965,29 +998,41 @@ function writeCodeCollabFileIndexSignalToFlock(flock, revision, nowMs) {
|
|
|
965
998
|
}
|
|
966
999
|
const CODE_COLLAB_FILE_INDEX_FLOCK_ROW_OVERHEAD_BYTES = 113;
|
|
967
1000
|
const CODE_COLLAB_FILE_INDEX_FLOCK_BUNDLE_OVERHEAD_BYTES = 40;
|
|
1001
|
+
const CODE_COLLAB_FILE_GENERATION_MAX_BYTES = 64;
|
|
1002
|
+
function estimateCodeCollabFlockRowBytes(key, value) {
|
|
1003
|
+
return utf8ByteLength(JSON.stringify(JSON.stringify(key))) + (value === void 0 ? 0 : utf8ByteLength(JSON.stringify(value))) + CODE_COLLAB_FILE_INDEX_FLOCK_ROW_OVERHEAD_BYTES;
|
|
1004
|
+
}
|
|
968
1005
|
function estimateCodeCollabFileIndexRowBytes(workspacePath, value) {
|
|
969
|
-
|
|
970
|
-
|
|
1006
|
+
return estimateCodeCollabFlockRowBytes(codeCollabFileIndexKeyForWorkspacePath(workspacePath), value);
|
|
1007
|
+
}
|
|
1008
|
+
const codeCollabFileIndexRowCount = (value) => codeCollabFileIndexValueChange(value) === void 0 ? 1 : 2;
|
|
1009
|
+
function estimateCodeCollabFileIndexPathBytes(workspacePath, value) {
|
|
1010
|
+
return estimateCodeCollabFileIndexRowBytes(workspacePath, value) + (codeCollabFileIndexValueChange(value) === void 0 ? 0 : estimateCodeCollabFlockRowBytes([workspacePath, "v"], {
|
|
1011
|
+
g: "x".repeat(CODE_COLLAB_FILE_GENERATION_MAX_BYTES)
|
|
1012
|
+
}));
|
|
971
1013
|
}
|
|
972
1014
|
function estimateCodeCollabFileIndexStateBytes(fileIndex) {
|
|
973
1015
|
let total = CODE_COLLAB_FILE_INDEX_FLOCK_BUNDLE_OVERHEAD_BYTES;
|
|
974
1016
|
for (const [workspacePath, value] of Object.entries(fileIndex)) {
|
|
975
|
-
total +=
|
|
1017
|
+
total += estimateCodeCollabFileIndexPathBytes(workspacePath, value);
|
|
976
1018
|
}
|
|
977
1019
|
return total;
|
|
978
1020
|
}
|
|
979
1021
|
function planCodeCollabFileIndexFlockWrite(flock, next, options = {}) {
|
|
980
1022
|
const maxBatchBytes = options.maxBatchBytes ?? CODE_COLLAB_FILE_INDEX_LIMITS.maxBytes;
|
|
981
|
-
const {
|
|
1023
|
+
const {
|
|
1024
|
+
fileIndex: previous,
|
|
1025
|
+
corruptedPaths,
|
|
1026
|
+
generations: previousGenerations
|
|
1027
|
+
} = scanCodeCollabFileIndexFlock(flock);
|
|
982
1028
|
const batches = [];
|
|
983
|
-
let
|
|
984
|
-
let deletes = [];
|
|
1029
|
+
let batch = { sets: [], deletes: [], generationSets: [], generationDeletes: [] };
|
|
985
1030
|
let batchBytes = CODE_COLLAB_FILE_INDEX_FLOCK_BUNDLE_OVERHEAD_BYTES;
|
|
1031
|
+
const hasWrites = () => batch.sets.length + batch.deletes.length + batch.generationSets.length + batch.generationDeletes.length > 0;
|
|
986
1032
|
const push = (rowBytes, add) => {
|
|
987
|
-
if ((
|
|
988
|
-
batches.push(
|
|
989
|
-
|
|
990
|
-
deletes = [];
|
|
1033
|
+
if (hasWrites() && batchBytes + rowBytes > maxBatchBytes) {
|
|
1034
|
+
batches.push(batch);
|
|
1035
|
+
batch = { sets: [], deletes: [], generationSets: [], generationDeletes: [] };
|
|
991
1036
|
batchBytes = CODE_COLLAB_FILE_INDEX_FLOCK_BUNDLE_OVERHEAD_BYTES;
|
|
992
1037
|
}
|
|
993
1038
|
batchBytes += rowBytes;
|
|
@@ -995,14 +1040,23 @@ function planCodeCollabFileIndexFlockWrite(flock, next, options = {}) {
|
|
|
995
1040
|
};
|
|
996
1041
|
for (const [workspacePath, value] of Object.entries(next)) {
|
|
997
1042
|
const normalized = normalizeCodeCollabFileIndexValue(value);
|
|
998
|
-
if (!normalized || codeCollabFileIndexValuesEqual(previous[workspacePath], normalized))
|
|
1043
|
+
if (!normalized || codeCollabFileIndexValuesEqual(previous[workspacePath], normalized))
|
|
999
1044
|
continue;
|
|
1000
|
-
}
|
|
1001
1045
|
push(
|
|
1002
1046
|
estimateCodeCollabFileIndexRowBytes(workspacePath, normalized),
|
|
1003
|
-
() => sets.push([workspacePath, normalized])
|
|
1047
|
+
() => batch.sets.push([workspacePath, normalized])
|
|
1004
1048
|
);
|
|
1005
1049
|
}
|
|
1050
|
+
if (options.generations) {
|
|
1051
|
+
for (const [workspacePath, g] of Object.entries(options.generations)) {
|
|
1052
|
+
if (!Object.prototype.hasOwnProperty.call(next, workspacePath) || previousGenerations[workspacePath] === g)
|
|
1053
|
+
continue;
|
|
1054
|
+
push(
|
|
1055
|
+
estimateCodeCollabFlockRowBytes([workspacePath, "v"], { g }),
|
|
1056
|
+
() => batch.generationSets.push([workspacePath, g])
|
|
1057
|
+
);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1006
1060
|
const stalePaths = [
|
|
1007
1061
|
...corruptedPaths,
|
|
1008
1062
|
...Object.keys(previous).filter(
|
|
@@ -1010,27 +1064,40 @@ function planCodeCollabFileIndexFlockWrite(flock, next, options = {}) {
|
|
|
1010
1064
|
)
|
|
1011
1065
|
];
|
|
1012
1066
|
for (const workspacePath of stalePaths) {
|
|
1013
|
-
push(
|
|
1067
|
+
push(
|
|
1068
|
+
estimateCodeCollabFileIndexRowBytes(workspacePath),
|
|
1069
|
+
() => batch.deletes.push(workspacePath)
|
|
1070
|
+
);
|
|
1014
1071
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1072
|
+
for (const workspacePath of Object.keys(previousGenerations)) {
|
|
1073
|
+
if (Object.prototype.hasOwnProperty.call(next, workspacePath) && (options.generations === void 0 || options.generations[workspacePath] !== void 0))
|
|
1074
|
+
continue;
|
|
1075
|
+
push(
|
|
1076
|
+
estimateCodeCollabFlockRowBytes([workspacePath, "v"]),
|
|
1077
|
+
() => batch.generationDeletes.push(workspacePath)
|
|
1078
|
+
);
|
|
1017
1079
|
}
|
|
1080
|
+
if (hasWrites()) batches.push(batch);
|
|
1018
1081
|
return batches;
|
|
1019
1082
|
}
|
|
1020
1083
|
function applyCodeCollabFileIndexFlockWriteBatch(flock, batch, nowMs) {
|
|
1021
1084
|
for (const [workspacePath, value] of batch.sets) {
|
|
1022
1085
|
flock.set(codeCollabFileIndexKeyForWorkspacePath(workspacePath), value, nowMs);
|
|
1023
1086
|
}
|
|
1087
|
+
for (const [workspacePath, g] of batch.generationSets) {
|
|
1088
|
+
flock.set([workspacePath, "v"], { g }, nowMs);
|
|
1089
|
+
}
|
|
1024
1090
|
for (const workspacePath of batch.deletes) {
|
|
1025
1091
|
flock.delete(codeCollabFileIndexKeyForWorkspacePath(workspacePath), nowMs);
|
|
1026
1092
|
}
|
|
1093
|
+
for (const workspacePath of batch.generationDeletes) {
|
|
1094
|
+
flock.delete([workspacePath, "v"], nowMs);
|
|
1095
|
+
}
|
|
1027
1096
|
flock.commit();
|
|
1028
1097
|
}
|
|
1029
|
-
function writeCodeCollabFileIndexToFlock(flock, next, nowMs) {
|
|
1030
|
-
const batches = planCodeCollabFileIndexFlockWrite(flock, next);
|
|
1031
|
-
for (const batch of batches)
|
|
1032
|
-
applyCodeCollabFileIndexFlockWriteBatch(flock, batch, nowMs);
|
|
1033
|
-
}
|
|
1098
|
+
function writeCodeCollabFileIndexToFlock(flock, next, nowMs, generations) {
|
|
1099
|
+
const batches = planCodeCollabFileIndexFlockWrite(flock, next, { generations });
|
|
1100
|
+
for (const batch of batches) applyCodeCollabFileIndexFlockWriteBatch(flock, batch, nowMs);
|
|
1034
1101
|
return batches.length > 0;
|
|
1035
1102
|
}
|
|
1036
1103
|
function applyCodeCollabFileIndexSignalFlockEvents(previous, events) {
|
|
@@ -1209,14 +1276,21 @@ function buildBoundedCodeCollabFileIndexState(fileTree, allChanges, options = {}
|
|
|
1209
1276
|
complete.set(parent, { kind: "lazy" });
|
|
1210
1277
|
}
|
|
1211
1278
|
}
|
|
1279
|
+
let completeRows = 0;
|
|
1212
1280
|
let completeBytes = CODE_COLLAB_FILE_INDEX_FLOCK_BUNDLE_OVERHEAD_BYTES;
|
|
1213
1281
|
for (const [workspacePath, value] of complete) {
|
|
1214
|
-
|
|
1282
|
+
completeRows += codeCollabFileIndexRowCount(value);
|
|
1283
|
+
completeBytes += estimateCodeCollabFileIndexPathBytes(workspacePath, value);
|
|
1215
1284
|
}
|
|
1216
|
-
if (
|
|
1217
|
-
return {
|
|
1285
|
+
if (completeRows <= budget.maxEntries && completeBytes <= budget.maxBytes) {
|
|
1286
|
+
return {
|
|
1287
|
+
fileIndex: Object.fromEntries(complete),
|
|
1288
|
+
omittedPaths: 0,
|
|
1289
|
+
estimatedBytes: completeBytes
|
|
1290
|
+
};
|
|
1218
1291
|
}
|
|
1219
1292
|
const selected = /* @__PURE__ */ new Map();
|
|
1293
|
+
let selectedRows = 0;
|
|
1220
1294
|
let selectedBytes = CODE_COLLAB_FILE_INDEX_FLOCK_BUNDLE_OVERHEAD_BYTES;
|
|
1221
1295
|
let full = false;
|
|
1222
1296
|
const take = (workspacePath) => {
|
|
@@ -1225,12 +1299,16 @@ function buildBoundedCodeCollabFileIndexState(fileTree, allChanges, options = {}
|
|
|
1225
1299
|
for (let current = workspacePath; current && !selected.has(current); current = codeCollabParentWorkspacePath(current)) {
|
|
1226
1300
|
if (complete.has(current)) chain.push(current);
|
|
1227
1301
|
}
|
|
1302
|
+
let chainRows = 0;
|
|
1228
1303
|
let chainBytes = 0;
|
|
1229
1304
|
for (const path of chain) {
|
|
1230
1305
|
const value = complete.get(path);
|
|
1231
|
-
if (value !== void 0)
|
|
1306
|
+
if (value !== void 0) {
|
|
1307
|
+
chainRows += codeCollabFileIndexRowCount(value);
|
|
1308
|
+
chainBytes += estimateCodeCollabFileIndexPathBytes(path, value);
|
|
1309
|
+
}
|
|
1232
1310
|
}
|
|
1233
|
-
if (
|
|
1311
|
+
if (selectedRows + chainRows > budget.maxEntries || selectedBytes + chainBytes > budget.maxBytes) {
|
|
1234
1312
|
full = true;
|
|
1235
1313
|
return;
|
|
1236
1314
|
}
|
|
@@ -1239,6 +1317,7 @@ function buildBoundedCodeCollabFileIndexState(fileTree, allChanges, options = {}
|
|
|
1239
1317
|
const value = path === void 0 ? void 0 : complete.get(path);
|
|
1240
1318
|
if (path !== void 0 && value !== void 0) selected.set(path, value);
|
|
1241
1319
|
}
|
|
1320
|
+
selectedRows += chainRows;
|
|
1242
1321
|
selectedBytes += chainBytes;
|
|
1243
1322
|
};
|
|
1244
1323
|
const breadthFirst = [...complete.keys()].sort(compareCodeCollabWorkspacePathsBreadthFirst);
|
|
@@ -1900,143 +1979,147 @@ const deriveCodeCollabFileSourceState = (input) => {
|
|
|
1900
1979
|
return input.role === "read" ? "live-readonly" : "live-collaborative";
|
|
1901
1980
|
};
|
|
1902
1981
|
export {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1982
|
+
CodeCollabTextEolSchema as $,
|
|
1983
|
+
CodeCollabV2OpenAllChangesDiffRequestSchema as A,
|
|
1984
|
+
CodeCollabV2OpenTurnDiffRequestSchema as B,
|
|
1906
1985
|
CodeCollabV2RpcContentEnvelopeSchema as C,
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1986
|
+
CodeCollabV2InitDirectoryRequestSchema as D,
|
|
1987
|
+
CODE_COLLAB_FEATURE_FLAGS as E,
|
|
1988
|
+
CODE_COLLAB_FILE_GENERATION_MAX_BYTES as F,
|
|
1989
|
+
CODE_COLLAB_LIMITS as G,
|
|
1990
|
+
CODE_COLLAB_V2_ALL_CHANGES_DIFF_LIMITS as H,
|
|
1991
|
+
CODE_COLLAB_V2_RPC_CONTENT_ENVELOPE_TYPE as I,
|
|
1992
|
+
CODE_COLLAB_V2_RPC_CONTENT_KEY_ALGORITHM as J,
|
|
1993
|
+
CODE_COLLAB_V2_RPC_CONTENT_KEY_VERSION as K,
|
|
1994
|
+
CODE_COLLAB_V2_TEXT_LIMITS as L,
|
|
1995
|
+
CodeCollabContentUnavailableReasonSchema as M,
|
|
1996
|
+
CodeCollabDomainErrorCodeSchema as N,
|
|
1997
|
+
CodeCollabDomainErrorSchema as O,
|
|
1919
1998
|
ProjectLocalMemberProbeSchema as P,
|
|
1920
|
-
|
|
1921
|
-
|
|
1999
|
+
CodeCollabFileEntrySchema as Q,
|
|
2000
|
+
CodeCollabFileKindSchema as R,
|
|
1922
2001
|
SessionProjectRunSchema as S,
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
2002
|
+
CodeCollabFileSourceStateSchema as T,
|
|
2003
|
+
CodeCollabFileStateSchema as U,
|
|
2004
|
+
CodeCollabFsNodeKindSchema as V,
|
|
2005
|
+
CodeCollabLiveHostStateSchema as W,
|
|
2006
|
+
CodeCollabParticipantFreshnessSchema as X,
|
|
2007
|
+
CodeCollabProviderKindSchema as Y,
|
|
2008
|
+
CodeCollabRoleSchema as Z,
|
|
2009
|
+
CodeCollabSpecialKindSchema as _,
|
|
1931
2010
|
CODE_COLLAB_FILE_INDEX_LIMITS as a,
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2011
|
+
getProjectMemberRootId as a$,
|
|
2012
|
+
CodeCollabUnavailableReasonSchema as a0,
|
|
2013
|
+
CodeCollabV2AllChangesDiffEntrySchema as a1,
|
|
2014
|
+
CodeCollabV2AllChangesStateSchema as a2,
|
|
2015
|
+
CodeCollabV2AllChangesValueSchema as a3,
|
|
2016
|
+
CodeCollabV2DiffSnapshotSchema as a4,
|
|
2017
|
+
CodeCollabV2EncodedTextPayloadSchema as a5,
|
|
2018
|
+
CodeCollabV2ErrorCodeSchema as a6,
|
|
2019
|
+
CodeCollabV2FileDigestSchema as a7,
|
|
2020
|
+
CodeCollabV2FileIndexStateSchema as a8,
|
|
2021
|
+
CodeCollabV2FileIndexValueSchema as a9,
|
|
2022
|
+
codeCollabFileIndexToSharedState as aA,
|
|
2023
|
+
codeCollabFileIndexValueChange as aB,
|
|
2024
|
+
codeCollabFileIndexValueToFileTreeValue as aC,
|
|
2025
|
+
codeCollabFileIndexValuesEqual as aD,
|
|
2026
|
+
codeCollabFileTreeValueToFileIndexValue as aE,
|
|
2027
|
+
decodeProjectPreparationProgress as aF,
|
|
2028
|
+
decodeUtf8Strict as aG,
|
|
2029
|
+
deduplicateProjectMembers as aH,
|
|
2030
|
+
deriveCodeCollabFileSourceState as aI,
|
|
2031
|
+
deriveCodeCollabRoleFromPermissions as aJ,
|
|
2032
|
+
deriveCodeCollabV2ContentKeyBytes as aK,
|
|
2033
|
+
deriveCodeCollabV2ContentKeyId as aL,
|
|
2034
|
+
detectTextEol as aM,
|
|
2035
|
+
diffCodeCollabFileMetadata as aN,
|
|
2036
|
+
encodeProjectPreparationProgress as aO,
|
|
2037
|
+
encodeSessionFilePath as aP,
|
|
2038
|
+
estimateCodeCollabFileIndexRowBytes as aQ,
|
|
2039
|
+
estimateCodeCollabFileIndexStateBytes as aR,
|
|
2040
|
+
findCodeCollabPathCollisions as aS,
|
|
2041
|
+
getCodeCollabExecutableFromMode as aT,
|
|
2042
|
+
getCodeCollabFileEntryContentAvailability as aU,
|
|
2043
|
+
getCodeCollabFileStateContentAvailability as aV,
|
|
2044
|
+
getCodeCollabMaxRoleForWorkspaceMember as aW,
|
|
2045
|
+
getCodeCollabPathComparisonKey as aX,
|
|
2046
|
+
getCodeCollabRepositorySupport as aY,
|
|
2047
|
+
getCurrentPullRequestsByRepository as aZ,
|
|
2048
|
+
getProjectBoundMachineId as a_,
|
|
2049
|
+
CodeCollabV2FileTreeStateSchema as aa,
|
|
2050
|
+
CodeCollabV2FileTreeValueSchema as ab,
|
|
2051
|
+
CodeCollabV2RpcResponseSchema as ac,
|
|
2052
|
+
CodeCollabV2SaveTextConflictSchema as ad,
|
|
2053
|
+
CodeCollabV2SaveTextOkSchema as ae,
|
|
2054
|
+
MAIN_SESSION_FILE_ROOT_ID as af,
|
|
2055
|
+
PROJECT_SUBMODULE_BASE as ag,
|
|
2056
|
+
ProjectIdSchema as ah,
|
|
2057
|
+
ProjectMemberIdSchema as ai,
|
|
2058
|
+
ProjectMemberPlacementSchema as aj,
|
|
2059
|
+
ProjectMemberSchema as ak,
|
|
2060
|
+
ProjectMemberSourceSchema as al,
|
|
2061
|
+
SessionProjectMemberSchema as am,
|
|
2062
|
+
WorkspaceProjectSchema as an,
|
|
2063
|
+
applyCodeCollabFileGenerationEvents as ao,
|
|
2064
|
+
applyCodeCollabFileIndexFlockEvents as ap,
|
|
2065
|
+
applyCodeCollabFileIndexFlockWriteBatch as aq,
|
|
2066
|
+
applyCodeCollabFileIndexSignalFlockEvents as ar,
|
|
2067
|
+
authorizeCodeCollabRoleRequest as as,
|
|
2068
|
+
buildCodeCollabFileIndexState as at,
|
|
2069
|
+
buildSessionProjectRun as au,
|
|
2070
|
+
checkRealtimeTextLineLimits as av,
|
|
2071
|
+
classifyCodeCollabFileSystemNode as aw,
|
|
2072
|
+
classifyRegularFileContent as ax,
|
|
2073
|
+
codeCollabAllChangesValuesEqual as ay,
|
|
2074
|
+
codeCollabFileIndexStatesEqual as az,
|
|
1996
2075
|
buildBoundedCodeCollabFileIndexState as b,
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2076
|
+
getProjectRepositoryFullName as b0,
|
|
2077
|
+
getProjectRunRoot as b1,
|
|
2078
|
+
hasBinarySniffBytes as b2,
|
|
2079
|
+
hasCodeCollabRoleAtLeast as b3,
|
|
2080
|
+
hasUtf8Bom as b4,
|
|
2081
|
+
isCodeCollabDomainError as b5,
|
|
2082
|
+
matchProjectSubmoduleMember as b6,
|
|
2083
|
+
normalizeCodeCollabDomainError as b7,
|
|
2084
|
+
normalizeWorkspaceRelativePath as b8,
|
|
2085
|
+
parseProjectMemberRootId as b9,
|
|
2086
|
+
pickProjectRepositoryLocalCopy as ba,
|
|
2087
|
+
planCodeCollabFileIndexFlockWrite as bb,
|
|
2088
|
+
projectRepositoryUrlIdentity as bc,
|
|
2089
|
+
readCodeCollabFileGenerations as bd,
|
|
2090
|
+
readCodeCollabFileIndexFromFlock as be,
|
|
2091
|
+
readCodeCollabFileIndexSignalFromFlock as bf,
|
|
2092
|
+
readCodeCollabFileIndexSnapshotFromFlock as bg,
|
|
2093
|
+
resolveCodeCollabSymlinkTarget as bh,
|
|
2094
|
+
resolveProjectMemberPaths as bi,
|
|
2095
|
+
selectProjectMembers as bj,
|
|
2096
|
+
serializeCodeCollabText as bk,
|
|
2097
|
+
shouldCountForCodeCollabFileLimit as bl,
|
|
2098
|
+
writeCodeCollabFileIndexSignalToFlock as bm,
|
|
2099
|
+
writeCodeCollabFileIndexToFlock as bn,
|
|
2017
2100
|
parseGitHubPrNumber as c,
|
|
2018
2101
|
decodeSessionFilePath as d,
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2102
|
+
CodeCollabAllChangesScopeSchema as e,
|
|
2103
|
+
CodeCollabV2TextFormatSchema as f,
|
|
2104
|
+
CodeCollabV2ErrorSchema as g,
|
|
2105
|
+
SessionFileRootIdSchema as h,
|
|
2023
2106
|
isSafeProjectPath as i,
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2107
|
+
CodeCollabV2FileIndexSnapshotSchema as j,
|
|
2108
|
+
CodeCollabV2OpenTextOkSchema as k,
|
|
2109
|
+
CodeCollabV2RefreshTextResponseSchema as l,
|
|
2110
|
+
CodeCollabV2SaveTextResponseSchema as m,
|
|
2028
2111
|
normalizeWorkspaceProject as n,
|
|
2029
|
-
|
|
2112
|
+
CodeCollabV2OpenCurrentDiffResponseSchema as o,
|
|
2030
2113
|
parseGitHubPullRequestUrl as p,
|
|
2031
|
-
|
|
2114
|
+
CodeCollabV2OpenAllChangesDiffResponseSchema as q,
|
|
2032
2115
|
resolveSessionFilePath as r,
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2116
|
+
CodeCollabV2OpenTurnDiffResponseSchema as s,
|
|
2117
|
+
CodeCollabV2InitDirectoryOkSchema as t,
|
|
2118
|
+
CodeCollabV2LspUnsupportedSchema as u,
|
|
2119
|
+
CodeCollabV2FileIndexRequestSchema as v,
|
|
2120
|
+
CodeCollabV2OpenTextRequestSchema as w,
|
|
2121
|
+
CodeCollabV2RefreshTextRequestSchema as x,
|
|
2122
|
+
CodeCollabV2SaveTextRequestSchema as y,
|
|
2123
|
+
CodeCollabV2OpenCurrentDiffRequestSchema as z
|
|
2041
2124
|
};
|
|
2042
|
-
//# sourceMappingURL=code-collab-
|
|
2125
|
+
//# sourceMappingURL=code-collab-COUEig0Z.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aV as getDaemonWorkspace, aW as getSessionCommandEnvironment, aX as getSessionRoomId, aY as isLoroRepoDocDeleted, aZ as runWithMcpSessionContext, a_ as SessionToolResultSchema, a$ as buildSessionToolServer } from "./telemetry-
|
|
1
|
+
import { aV as getDaemonWorkspace, aW as getSessionCommandEnvironment, aX as getSessionRoomId, aY as isLoroRepoDocDeleted, aZ as runWithMcpSessionContext, a_ as SessionToolResultSchema, a$ as buildSessionToolServer } from "./telemetry-CztoQabb.js";
|
|
2
2
|
import "./chunks/vendor-effect-qEtB86Xz.js";
|
|
3
3
|
import "./chunks/vendor-commander-B86VeeRa.js";
|
|
4
4
|
import "node:events";
|
|
@@ -7,9 +7,9 @@ import "node:path";
|
|
|
7
7
|
import "node:fs";
|
|
8
8
|
import "node:process";
|
|
9
9
|
import "./chunks/commonjs-helpers-CCIqAdii.js";
|
|
10
|
-
import "./ios-simulator-BJjtVdO8.js";
|
|
11
10
|
import "./chunks/vendor-zod-CBWGVFD-.js";
|
|
12
|
-
import "./
|
|
11
|
+
import "./ios-simulator-BJjtVdO8.js";
|
|
12
|
+
import "./code-collab-COUEig0Z.js";
|
|
13
13
|
import "./chunks/vendor-immer-F2vkwr8n.js";
|
|
14
14
|
import "./chunks/vendor-loro-crdt-B0fZaMbx.js";
|
|
15
15
|
import "./chunks/vendor-loro-mirror-g7rEjGgt.js";
|
|
@@ -193,4 +193,4 @@ async function executeDaemonSessionTool(context, name, args) {
|
|
|
193
193
|
export {
|
|
194
194
|
executeDaemonSessionTool
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=daemon-session-tools-
|
|
196
|
+
//# sourceMappingURL=daemon-session-tools-DgWu5_Fi.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdtempSync, writeFileSync, rmSync } from "node:fs";
|
|
2
2
|
import os__default from "node:os";
|
|
3
3
|
import path__default from "node:path";
|
|
4
|
-
import { d as diffLines } from "./chunks/vendor-diff-
|
|
4
|
+
import { d as diffLines } from "./chunks/vendor-diff-CPHd5agL.js";
|
|
5
5
|
import { r as runCommandTextSyncLegacy } from "./process-CWlMaHnu.js";
|
|
6
6
|
const MAX_EDIT_LENGTH = 600;
|
|
7
7
|
const MAX_LINES_FOR_JSDIFF = 2e5;
|
|
@@ -133,4 +133,4 @@ export {
|
|
|
133
133
|
countTextLines as a,
|
|
134
134
|
computeLineCounts as c
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=diff-line-counts-
|
|
136
|
+
//# sourceMappingURL=diff-line-counts-C4QnbxuZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { open, stat } from "node:fs/promises";
|
|
3
|
-
import { c as computeLineCounts } from "./diff-line-counts-
|
|
3
|
+
import { c as computeLineCounts } from "./diff-line-counts-C4QnbxuZ.js";
|
|
4
4
|
async function runDiffWorkerTask(input) {
|
|
5
5
|
const lineCounts = computeLineCounts(input.oldText, input.newText);
|
|
6
6
|
if (input.kind === "line-count") return { kind: input.kind, lineCounts };
|
|
@@ -58,4 +58,4 @@ function nodeErrorCode(error) {
|
|
|
58
58
|
export {
|
|
59
59
|
runDiffWorkerTask as r
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=diff-worker-task-
|
|
61
|
+
//# sourceMappingURL=diff-worker-task-CRv8CGSL.js.map
|
package/dist/diff-worker.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as runDiffWorkerTask } from "./diff-worker-task-
|
|
1
|
+
import { r as runDiffWorkerTask } from "./diff-worker-task-CRv8CGSL.js";
|
|
2
2
|
import "node:crypto";
|
|
3
3
|
import "node:fs/promises";
|
|
4
|
-
import "./diff-line-counts-
|
|
4
|
+
import "./diff-line-counts-C4QnbxuZ.js";
|
|
5
5
|
import "node:fs";
|
|
6
6
|
import "node:os";
|
|
7
7
|
import "node:path";
|
|
8
|
-
import "./chunks/vendor-diff-
|
|
8
|
+
import "./chunks/vendor-diff-CPHd5agL.js";
|
|
9
9
|
import "./process-CWlMaHnu.js";
|
|
10
10
|
import "node:child_process";
|
|
11
11
|
import "node:url";
|
|
@@ -3,9 +3,9 @@ import { realpath, readFile } from "node:fs/promises";
|
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import path__default from "node:path";
|
|
5
5
|
import { a as runCommandTextLegacy } from "./process-CWlMaHnu.js";
|
|
6
|
-
import { a as countTextLines } from "./diff-line-counts-
|
|
6
|
+
import { a as countTextLines } from "./diff-line-counts-C4QnbxuZ.js";
|
|
7
7
|
import { i as isInCodeCollabIgnoredDirectory } from "./workspace-watch-path-policy-CxHey7qg.js";
|
|
8
|
-
import { a as CODE_COLLAB_FILE_INDEX_LIMITS, i as isSafeProjectPath, r as resolveSessionFilePath } from "./code-collab-
|
|
8
|
+
import { a as CODE_COLLAB_FILE_INDEX_LIMITS, i as isSafeProjectPath, r as resolveSessionFilePath } from "./code-collab-COUEig0Z.js";
|
|
9
9
|
function gitDiffBaseRefCandidates(preferredBaseBranch) {
|
|
10
10
|
const preferred = preferredBaseBranch?.trim();
|
|
11
11
|
const refs = [];
|
|
@@ -487,9 +487,9 @@ export {
|
|
|
487
487
|
createGitIgnoreScanFilter as c,
|
|
488
488
|
computeAllChanges as d,
|
|
489
489
|
closeDirectoryQuietly as e,
|
|
490
|
-
|
|
490
|
+
resolveAllChangesDiffBase as f,
|
|
491
491
|
gitDiffBaseRefCandidates as g,
|
|
492
|
-
|
|
492
|
+
computeProjectAllChangesSnapshot as h,
|
|
493
493
|
isInsideGitWorktree as i,
|
|
494
494
|
joinWorkspacePath as j,
|
|
495
495
|
listGitIgnoredPaths as l,
|
|
@@ -497,4 +497,4 @@ export {
|
|
|
497
497
|
resolveProjectGitDirectory as r,
|
|
498
498
|
scanGitDirectoryEntries as s
|
|
499
499
|
};
|
|
500
|
-
//# sourceMappingURL=directory-handle-
|
|
500
|
+
//# sourceMappingURL=directory-handle-DT-Xm7WB.js.map
|