sessiongraph 1.0.19 → 1.0.21
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/PRIVACY.md +7 -0
- package/dist/assets/{index-ZvQzUBK1.css → index-BROemBuT.css} +1 -1
- package/dist/assets/{index--OQ4NiAJ.js → index-ClDHxy66.js} +1 -1
- package/dist/assets/index-DK0pBf-7.js +192 -0
- package/dist/assets/{index-ZwvTaIqn.js → index-DWWZZL6C.js} +1 -1
- package/dist/assets/{index-DZcMVUpG.js → index-tIWYckIn.js} +1 -1
- package/dist/assets/{public-viewer-DVqMq2gi.js → public-viewer-B1aKDYpa.js} +1 -1
- package/dist/assets/{scene-B94ITHcm.js → scene-BCuZ73oU.js} +1 -1
- package/dist/assets/{share-DnZuWOzh.js → share-mJrTMarx.js} +3 -3
- package/dist/index.html +2 -2
- package/dist-server/cli.mjs +449 -869
- package/dist-server/server.mjs +2930 -890
- package/docs/cli.md +6 -0
- package/docs/guide.md +12 -0
- package/package.json +7 -7
- package/dist/assets/index-DCSeQKMi.js +0 -186
package/dist-server/cli.mjs
CHANGED
|
@@ -208,12 +208,12 @@ function blockEvents(message2, content, transform2 = (v3) => v3) {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
function userBlockEvents(message2, content, normalize2) {
|
|
211
|
-
const
|
|
211
|
+
const context2 = [];
|
|
212
212
|
return blockEvents(message2, content, (value) => {
|
|
213
213
|
const text4 = normalize2(value);
|
|
214
|
-
|
|
214
|
+
context2.push(Boolean(value && !text4));
|
|
215
215
|
return text4 || value;
|
|
216
|
-
}).map((event) => event.kind === "message" &&
|
|
216
|
+
}).map((event) => event.kind === "message" && context2.shift() ? { ...event, kind: "event", role: "system", name: "Session context", nativeType: "user-context" } : event);
|
|
217
217
|
}
|
|
218
218
|
function normalizedEvents(message2, sessionID) {
|
|
219
219
|
let events = message2.events;
|
|
@@ -267,8 +267,8 @@ var init_commits = __esm({
|
|
|
267
267
|
|
|
268
268
|
// server/commit-extraction.ts
|
|
269
269
|
import { posix, win32 } from "node:path";
|
|
270
|
-
function executionFields(input2,
|
|
271
|
-
const args = object(input2), meta3 = object(
|
|
270
|
+
function executionFields(input2, metadata3 = {}) {
|
|
271
|
+
const args = object(input2), meta3 = object(metadata3);
|
|
272
272
|
return { cwd: string(args.workdir ?? args.cwd ?? args.working_directory ?? meta3.cwd), exitCode: exitCode(meta3.exitCode ?? meta3.exit_code ?? meta3.exit) };
|
|
273
273
|
}
|
|
274
274
|
function nativeCommit(value) {
|
|
@@ -1152,7 +1152,7 @@ function withSourcePaths(adapter, configured) {
|
|
|
1152
1152
|
function sourcePathHint(id3) {
|
|
1153
1153
|
const hints = {
|
|
1154
1154
|
opencode: "OpenCode data directory or SQLite file (normally ~/.local/share/opencode/opencode.db). Supports V1 and V2 offline.",
|
|
1155
|
-
"claude-code": "Claude home containing projects/ and transcripts
|
|
1155
|
+
"claude-code": "Claude home containing projects/ and transcripts/. Automatic discovery searches accessible locations across the computer; a custom path restricts it to this home.",
|
|
1156
1156
|
codex: "Codex home containing sessions/ and archived_sessions/ (normally ~/.codex).",
|
|
1157
1157
|
"t3-code": "T3 home containing its local server history (normally ~/.t3).",
|
|
1158
1158
|
cursor: "Cursor CLI home (normally ~/.cursor); IDE data still uses SESSIONGRAPH_CURSOR_USER_DATA_DIR.",
|
|
@@ -5714,7 +5714,7 @@ function isRef(value) {
|
|
|
5714
5714
|
function cloneIssues(issues) {
|
|
5715
5715
|
return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
|
|
5716
5716
|
}
|
|
5717
|
-
function isRecursive(inst, stack,
|
|
5717
|
+
function isRecursive(inst, stack, resolve5) {
|
|
5718
5718
|
const cached3 = recursive.get(inst);
|
|
5719
5719
|
if (cached3 !== void 0)
|
|
5720
5720
|
return cached3 ? PROVEN : NONE;
|
|
@@ -5724,7 +5724,7 @@ function isRecursive(inst, stack, resolve3) {
|
|
|
5724
5724
|
let result = NONE;
|
|
5725
5725
|
const check2 = (child) => {
|
|
5726
5726
|
if (result !== PROVEN && child?._zod) {
|
|
5727
|
-
const answer = isRecursive(child, stack,
|
|
5727
|
+
const answer = isRecursive(child, stack, resolve5);
|
|
5728
5728
|
if (answer > result)
|
|
5729
5729
|
result = answer;
|
|
5730
5730
|
}
|
|
@@ -5735,7 +5735,7 @@ function isRecursive(inst, stack, resolve3) {
|
|
|
5735
5735
|
const desc = Object.getOwnPropertyDescriptor(sh2, key);
|
|
5736
5736
|
if (spread && !desc.enumerable)
|
|
5737
5737
|
continue;
|
|
5738
|
-
const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack,
|
|
5738
|
+
const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack, resolve5) : NONE;
|
|
5739
5739
|
if (child > answer)
|
|
5740
5740
|
answer = child;
|
|
5741
5741
|
}
|
|
@@ -5799,7 +5799,7 @@ function isRecursive(inst, stack, resolve3) {
|
|
|
5799
5799
|
break;
|
|
5800
5800
|
// `$ZodLazy` caches its inner on the def, so a resolved edge is followed exactly
|
|
5801
5801
|
case "lazy": {
|
|
5802
|
-
const inner = def._cachedInner ?? (
|
|
5802
|
+
const inner = def._cachedInner ?? (resolve5 ? inst._zod.innerType : void 0);
|
|
5803
5803
|
merge3(inner ? isRecursive(inner, stack, false) : ASSUMED);
|
|
5804
5804
|
break;
|
|
5805
5805
|
}
|
|
@@ -16643,12 +16643,12 @@ function describe(description) {
|
|
|
16643
16643
|
return ch;
|
|
16644
16644
|
}
|
|
16645
16645
|
// @__NO_SIDE_EFFECTS__
|
|
16646
|
-
function meta(
|
|
16646
|
+
function meta(metadata3) {
|
|
16647
16647
|
const ch = new $ZodCheck({ check: "meta" });
|
|
16648
16648
|
ch._zod.onattach = [
|
|
16649
16649
|
(inst) => {
|
|
16650
16650
|
const existing = globalRegistry.get(inst) ?? {};
|
|
16651
|
-
globalRegistry.add(inst, { ...existing, ...
|
|
16651
|
+
globalRegistry.add(inst, { ...existing, ...metadata3 });
|
|
16652
16652
|
}
|
|
16653
16653
|
];
|
|
16654
16654
|
ch._zod.check = () => {
|
|
@@ -16847,8 +16847,8 @@ function encodeJSONPointerSegment(segment) {
|
|
|
16847
16847
|
return segment.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
16848
16848
|
}
|
|
16849
16849
|
function extractDefs(ctx, schema) {
|
|
16850
|
-
const
|
|
16851
|
-
if (!
|
|
16850
|
+
const root2 = ctx.seen.get(schema);
|
|
16851
|
+
if (!root2)
|
|
16852
16852
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
16853
16853
|
if (ctx.external && ctx.sharedDefsExtractedFor === ctx.external)
|
|
16854
16854
|
return;
|
|
@@ -16877,7 +16877,7 @@ function extractDefs(ctx, schema) {
|
|
|
16877
16877
|
}
|
|
16878
16878
|
const uriPrefix = `#`;
|
|
16879
16879
|
const defUriPrefix = `${uriPrefix}/${defsSegment}/`;
|
|
16880
|
-
if (entry[1] ===
|
|
16880
|
+
if (entry[1] === root2 && !entry[1].schema.id) {
|
|
16881
16881
|
return { ref: uriPrefix };
|
|
16882
16882
|
}
|
|
16883
16883
|
const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
|
|
@@ -17046,8 +17046,8 @@ function foldIntersection(json6) {
|
|
|
17046
17046
|
assignProps(json6, folded);
|
|
17047
17047
|
}
|
|
17048
17048
|
function finalize(ctx, schema) {
|
|
17049
|
-
const
|
|
17050
|
-
if (!
|
|
17049
|
+
const root2 = ctx.seen.get(schema);
|
|
17050
|
+
if (!root2)
|
|
17051
17051
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
17052
17052
|
const flattenRef = (zodSchema) => {
|
|
17053
17053
|
const seen = ctx.seen.get(zodSchema);
|
|
@@ -17158,7 +17158,7 @@ function finalize(ctx, schema) {
|
|
|
17158
17158
|
throw new Error("Schema is missing an `id` property");
|
|
17159
17159
|
result.$id = ctx.external.uri(id3);
|
|
17160
17160
|
}
|
|
17161
|
-
assignProps(result,
|
|
17161
|
+
assignProps(result, root2.defId ? root2.schema : root2.def ?? root2.schema);
|
|
17162
17162
|
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
17163
17163
|
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
17164
17164
|
delete result.id;
|
|
@@ -21780,11 +21780,11 @@ async function startAgentHttp(library, port, credential, version2) {
|
|
|
21780
21780
|
return fail(e10.status, e10.code, e10.message);
|
|
21781
21781
|
}
|
|
21782
21782
|
});
|
|
21783
|
-
await new Promise((
|
|
21783
|
+
await new Promise((resolve5, reject) => {
|
|
21784
21784
|
server.once("error", reject);
|
|
21785
21785
|
server.listen(port, "127.0.0.1", () => {
|
|
21786
21786
|
server.off("error", reject);
|
|
21787
|
-
|
|
21787
|
+
resolve5();
|
|
21788
21788
|
});
|
|
21789
21789
|
});
|
|
21790
21790
|
return server;
|
|
@@ -24335,16 +24335,16 @@ async function fileState(path) {
|
|
|
24335
24335
|
async function historyFiles(roots2, match2) {
|
|
24336
24336
|
const files = [], queue = [];
|
|
24337
24337
|
const warnings = [];
|
|
24338
|
-
for (const
|
|
24338
|
+
for (const root2 of new Set(roots2)) {
|
|
24339
24339
|
try {
|
|
24340
|
-
if ((await lstat(
|
|
24340
|
+
if ((await lstat(root2)).isDirectory()) queue.push({ root: root2, path: root2, depth: 0 });
|
|
24341
24341
|
} catch (error62) {
|
|
24342
24342
|
if (error62.code !== "ENOENT") warnings.push("A history directory could not be read.");
|
|
24343
24343
|
}
|
|
24344
24344
|
}
|
|
24345
24345
|
let entriesSeen = 0, limited = false;
|
|
24346
24346
|
for (let i = 0; i < queue.length && files.length < MAX_FILES && entriesSeen < 1e5; i++) {
|
|
24347
|
-
const { root:
|
|
24347
|
+
const { root: root2, path, depth } = queue[i];
|
|
24348
24348
|
let entries2;
|
|
24349
24349
|
try {
|
|
24350
24350
|
entries2 = await readdir(path, { withFileTypes: true });
|
|
@@ -24359,10 +24359,10 @@ async function historyFiles(roots2, match2) {
|
|
|
24359
24359
|
}
|
|
24360
24360
|
const file2 = join3(path, entry.name);
|
|
24361
24361
|
if (entry.isDirectory()) {
|
|
24362
|
-
if (depth < 6 && queue.length < MAX_FILES) queue.push({ root:
|
|
24362
|
+
if (depth < 6 && queue.length < MAX_FILES) queue.push({ root: root2, path: file2, depth: depth + 1 });
|
|
24363
24363
|
else limited = true;
|
|
24364
24364
|
}
|
|
24365
|
-
if (entry.isFile() && match2(relative2(
|
|
24365
|
+
if (entry.isFile() && match2(relative2(root2, file2).split("\\").join("/"))) files.push(file2);
|
|
24366
24366
|
}
|
|
24367
24367
|
}
|
|
24368
24368
|
if (limited) warnings.push("History discovery reached its file, directory, or depth limit.");
|
|
@@ -24389,7 +24389,7 @@ function jsonLines(value) {
|
|
|
24389
24389
|
return { rows: rows2, partial: partial2 };
|
|
24390
24390
|
}
|
|
24391
24391
|
function localFileAdapter(source) {
|
|
24392
|
-
const
|
|
24392
|
+
const metadata3 = /* @__PURE__ */ new Map();
|
|
24393
24393
|
let cached3;
|
|
24394
24394
|
const states = (path) => Promise.all([path, ...source.extras?.(path) || []].map(fileState));
|
|
24395
24395
|
const revision2 = (values) => digest([1, ...values.filter((_, i) => i === 0 || source.revisionExtras !== false).map((s) => [s.path, s.signature])]);
|
|
@@ -24434,7 +24434,7 @@ function localFileAdapter(source) {
|
|
|
24434
24434
|
description: source.description,
|
|
24435
24435
|
capabilities: source.capabilities,
|
|
24436
24436
|
async detect() {
|
|
24437
|
-
for (const
|
|
24437
|
+
for (const root2 of source.roots()) if ((await lstat(root2).catch(() => void 0))?.isDirectory()) return true;
|
|
24438
24438
|
return false;
|
|
24439
24439
|
},
|
|
24440
24440
|
async discover() {
|
|
@@ -24444,7 +24444,7 @@ function localFileAdapter(source) {
|
|
|
24444
24444
|
for (const path of listing.files) {
|
|
24445
24445
|
try {
|
|
24446
24446
|
const before = await states(path), rev = revision2(before);
|
|
24447
|
-
let candidate =
|
|
24447
|
+
let candidate = metadata3.get(path);
|
|
24448
24448
|
if (!candidate || candidate.revision !== rev) {
|
|
24449
24449
|
const history = await load(path, rev, before);
|
|
24450
24450
|
if (!history) {
|
|
@@ -24465,7 +24465,7 @@ function localFileAdapter(source) {
|
|
|
24465
24465
|
session.forkID = history.fork ? identity(source.id, history.fork) : void 0;
|
|
24466
24466
|
if (session.title === "Untitled session" || !session.title) session.title = history.messages.flatMap((m) => m.role === "user" ? m.fragments.filter((f) => f.kind === "You").map((f) => f.text) : []).find(Boolean)?.replace(/\s+/g, " ").slice(0, 180) || `${source.name} session`;
|
|
24467
24467
|
candidate = { session, revision: rev, locator: { path } };
|
|
24468
|
-
|
|
24468
|
+
metadata3.set(path, candidate);
|
|
24469
24469
|
}
|
|
24470
24470
|
const previous = found.get(candidate.session.id);
|
|
24471
24471
|
const preferred = candidate.locator.path.endsWith(".jsonl"), previousPreferred = previous?.locator.path.endsWith(".jsonl");
|
|
@@ -24480,7 +24480,7 @@ function localFileAdapter(source) {
|
|
|
24480
24480
|
}
|
|
24481
24481
|
}
|
|
24482
24482
|
const listed = new Set(listing.files);
|
|
24483
|
-
for (const path of
|
|
24483
|
+
for (const path of metadata3.keys()) if (!listed.has(path)) metadata3.delete(path);
|
|
24484
24484
|
if (failed) listing.warnings.push(`${source.name}: Skipped ${failed} unreadable, changing, unsupported, or oversized ${failed === 1 ? "history file" : "history files"}.`);
|
|
24485
24485
|
const sessions = [...found.values()].filter((c) => !blocked.has(c.session.id));
|
|
24486
24486
|
const errors = unreadable.size ? [`${source.name}: Could not read history for ${unreadable.size} ${unreadable.size === 1 ? "session" : "sessions"}.`] : void 0;
|
|
@@ -24733,7 +24733,7 @@ function optionalJSON(value) {
|
|
|
24733
24733
|
return value == null || value === "" ? {} : sqliteJSON(value);
|
|
24734
24734
|
}
|
|
24735
24735
|
function sqliteHistoryAdapter(source) {
|
|
24736
|
-
const
|
|
24736
|
+
const metadata3 = /* @__PURE__ */ new Map();
|
|
24737
24737
|
return {
|
|
24738
24738
|
id: source.id,
|
|
24739
24739
|
name: source.name,
|
|
@@ -24748,7 +24748,7 @@ function sqliteHistoryAdapter(source) {
|
|
|
24748
24748
|
for (const path of await source.paths()) {
|
|
24749
24749
|
try {
|
|
24750
24750
|
const snapshot2 = sqliteRevision(path), rev = digest([source.version || 2, source.id, snapshot2]);
|
|
24751
|
-
let cached3 =
|
|
24751
|
+
let cached3 = metadata3.get(path);
|
|
24752
24752
|
if (!cached3 || cached3.revision !== rev) {
|
|
24753
24753
|
cached3 = withSqliteSnapshot(path, (db2) => {
|
|
24754
24754
|
const table2 = typeof source.table === "string" ? source.table : source.table(db2);
|
|
@@ -24786,7 +24786,7 @@ function sqliteHistoryAdapter(source) {
|
|
|
24786
24786
|
if (failed) errors2.push(`${source.name}: Skipped ${failed} unreadable, undated, unsupported, or oversized ${failed === 1 ? "session" : "sessions"}.`);
|
|
24787
24787
|
return { revision: rev, candidates: found, blocked: blocked2, errors: errors2 };
|
|
24788
24788
|
}, snapshot2);
|
|
24789
|
-
|
|
24789
|
+
metadata3.set(path, cached3);
|
|
24790
24790
|
}
|
|
24791
24791
|
errors.push(...cached3.errors);
|
|
24792
24792
|
blocked.push(...cached3.blocked);
|
|
@@ -24953,16 +24953,16 @@ function openCodeMessage(raw, sessionID) {
|
|
|
24953
24953
|
}
|
|
24954
24954
|
async function openCodeDatabases() {
|
|
24955
24955
|
const override = sourcePath("opencode") || process.env.SESSIONGRAPH_OPENCODE_HISTORY_DIR || process.env.OPENCODE_DB;
|
|
24956
|
-
const
|
|
24956
|
+
const root2 = override || dataPath("opencode");
|
|
24957
24957
|
try {
|
|
24958
|
-
const info = await lstat3(
|
|
24959
|
-
if (info.isFile()) return [
|
|
24958
|
+
const info = await lstat3(root2);
|
|
24959
|
+
if (info.isFile()) return [root2];
|
|
24960
24960
|
if (!info.isDirectory()) return [];
|
|
24961
|
-
const files = (await readdir2(
|
|
24961
|
+
const files = (await readdir2(root2)).filter((name) => /^opencode(?:[-.][\w.-]+)?\.db$/.test(name)).sort((a, b) => a === "opencode.db" ? -1 : b === "opencode.db" ? 1 : a.localeCompare(b));
|
|
24962
24962
|
if (files.length > 20) throw new Error("Too many OpenCode databases. Choose a database file with a source path override.");
|
|
24963
24963
|
const paths2 = [];
|
|
24964
24964
|
for (const file2 of files) {
|
|
24965
|
-
const path = join5(
|
|
24965
|
+
const path = join5(root2, file2);
|
|
24966
24966
|
if ((await lstat3(path)).isFile()) paths2.push(path);
|
|
24967
24967
|
}
|
|
24968
24968
|
return paths2;
|
|
@@ -25238,15 +25238,6 @@ import { basename as o0, dirname as s0, isAbsolute as Fst, join as WTe, relative
|
|
|
25238
25238
|
import { createHash as YRe } from "crypto";
|
|
25239
25239
|
import { constants as PU } from "fs";
|
|
25240
25240
|
import { isAbsolute as KTe, sep as r0 } from "path";
|
|
25241
|
-
import { readdir as PR, stat as TOe } from "fs/promises";
|
|
25242
|
-
import { basename as sOe, dirname as iOe, join as aOe } from "path";
|
|
25243
|
-
import { basename as OOe, join as Sd } from "path";
|
|
25244
|
-
import { readFile as dOe } from "fs/promises";
|
|
25245
|
-
import { dirname as pOe, join as fOe } from "path";
|
|
25246
|
-
import { basename as E0, dirname as b0 } from "path";
|
|
25247
|
-
import { constants as Xm } from "fs";
|
|
25248
|
-
import { lstat as _Oe, open as yOe } from "fs/promises";
|
|
25249
|
-
import { dirname as SOe, join as EOe } from "path";
|
|
25250
25241
|
import { AsyncLocalStorage as dwe } from "async_hooks";
|
|
25251
25242
|
import { closeSync as Oat, constants as Kt, fchmodSync as wat, fstatSync as xat, ftruncateSync as vat, lstatSync as kat, openSync as Pat, readFileSync as Iat, renameSync as Dat, unlinkSync as Lat, writeFileSync as Mat } from "fs";
|
|
25252
25243
|
import { readdir as Iwe, readFile as J0 } from "fs/promises";
|
|
@@ -26254,9 +26245,6 @@ function R5(e10) {
|
|
|
26254
26245
|
if (e10?.anchors !== void 0 && e10.anchors.length > 0) return e10.anchors;
|
|
26255
26246
|
return e10?.anchor !== void 0 ? [e10.anchor] : void 0;
|
|
26256
26247
|
}
|
|
26257
|
-
async function xP(e10) {
|
|
26258
|
-
return Ua(e10) || du(e10) || vo(e10) || Ss(e10) || await gu(TE, e10) !== void 0;
|
|
26259
|
-
}
|
|
26260
26248
|
async function RE(e10, t = TE) {
|
|
26261
26249
|
return Ua(e10) || du(e10) || vo(e10) || Ss(e10) || await gu(t, e10, { surfaceNetworkRaw: true, unreadableAncestry: "unverified" }) !== void 0;
|
|
26262
26250
|
}
|
|
@@ -27096,49 +27084,6 @@ function ab(e10) {
|
|
|
27096
27084
|
for (let n = 0; n < e10.length; n++) t = (t << 5) - t + e10.charCodeAt(n) | 0;
|
|
27097
27085
|
return t;
|
|
27098
27086
|
}
|
|
27099
|
-
function See(e10) {
|
|
27100
|
-
return `</pasted_content id="${e10}">
|
|
27101
|
-
`;
|
|
27102
|
-
}
|
|
27103
|
-
function Eee(e10) {
|
|
27104
|
-
if (e10.length !== 4) return false;
|
|
27105
|
-
for (let t = 0; t < e10.length; t++) {
|
|
27106
|
-
let n = e10.charCodeAt(t);
|
|
27107
|
-
if (!(n >= 48 && n <= 57 || n >= 97 && n <= 102)) return false;
|
|
27108
|
-
}
|
|
27109
|
-
return true;
|
|
27110
|
-
}
|
|
27111
|
-
function bee(e10) {
|
|
27112
|
-
let t = [], n = 0, r = 0;
|
|
27113
|
-
for (; ; ) {
|
|
27114
|
-
let o = e10.indexOf('<pasted_content id="', r);
|
|
27115
|
-
if (o === -1) break;
|
|
27116
|
-
let s = o + 20, i = e10.slice(s, s + 4);
|
|
27117
|
-
if (!Eee(i) || !e10.startsWith(`">
|
|
27118
|
-
`, s + 4)) {
|
|
27119
|
-
r = s;
|
|
27120
|
-
continue;
|
|
27121
|
-
}
|
|
27122
|
-
let a = s + 4 + 3, c = See(i).slice(0, -1), d = e10.indexOf(`
|
|
27123
|
-
${c}`, a - 1) + 1;
|
|
27124
|
-
if (d === 0) break;
|
|
27125
|
-
let p = o;
|
|
27126
|
-
for (let f = 0; f < 2 && p > n && e10[p - 1] === `
|
|
27127
|
-
`; f++) p--;
|
|
27128
|
-
if (p > n) t.push({ kind: "text", text: e10.slice(n, p) });
|
|
27129
|
-
n = d + c.length;
|
|
27130
|
-
for (let f = 0; f < 2 && e10[n] === `
|
|
27131
|
-
`; f++) n++;
|
|
27132
|
-
t.push({ kind: "block", id: i, body: e10.slice(a, d - 1), raw: e10.slice(p, n) }), r = n;
|
|
27133
|
-
}
|
|
27134
|
-
if (n < e10.length) t.push({ kind: "text", text: e10.slice(n) });
|
|
27135
|
-
return t;
|
|
27136
|
-
}
|
|
27137
|
-
function lb(e10) {
|
|
27138
|
-
let t = bee(e10);
|
|
27139
|
-
if (t.length === 1 && t[0].kind === "text") return e10;
|
|
27140
|
-
return t.map((n) => n.kind === "text" ? n.text : n.body).join("");
|
|
27141
|
-
}
|
|
27142
27087
|
function Aee() {
|
|
27143
27088
|
if (process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) return "essential-traffic";
|
|
27144
27089
|
if (process.env.DISABLE_TELEMETRY) return "no-telemetry";
|
|
@@ -27477,35 +27422,6 @@ async function vr(e10, t, n) {
|
|
|
27477
27422
|
}
|
|
27478
27423
|
return { status: "capped" };
|
|
27479
27424
|
}
|
|
27480
|
-
function zi(e10, t) {
|
|
27481
|
-
if (e10.type !== "user") return;
|
|
27482
|
-
if (e10.isMeta === true || e10.isCompactSummary === true) return;
|
|
27483
|
-
let n = e10.message;
|
|
27484
|
-
if (!n) return;
|
|
27485
|
-
let r = n.content, o = [];
|
|
27486
|
-
if (typeof r === "string") o.push(r);
|
|
27487
|
-
else if (Array.isArray(r)) for (let s of r) {
|
|
27488
|
-
if (!s || typeof s !== "object") continue;
|
|
27489
|
-
if (s.type === "tool_result") return;
|
|
27490
|
-
if (s.type === "text" && typeof s.text === "string") o.push(s.text);
|
|
27491
|
-
}
|
|
27492
|
-
for (let s of o) {
|
|
27493
|
-
let i = lb(s).replaceAll(`
|
|
27494
|
-
`, " ").trim();
|
|
27495
|
-
if (!i) continue;
|
|
27496
|
-
let a = Ebe.exec(i);
|
|
27497
|
-
if (a) {
|
|
27498
|
-
if (!t.commandFallback) t.commandFallback = a[1];
|
|
27499
|
-
continue;
|
|
27500
|
-
}
|
|
27501
|
-
let l = /<bash-input>([\s\S]*?)<\/bash-input>/.exec(i);
|
|
27502
|
-
if (l) return `! ${l[1].trim()}`;
|
|
27503
|
-
if (Sbe.test(i)) continue;
|
|
27504
|
-
if (i.length > 200) i = Cs(i, 200).trim() + "\u2026";
|
|
27505
|
-
return i;
|
|
27506
|
-
}
|
|
27507
|
-
return;
|
|
27508
|
-
}
|
|
27509
27425
|
function PD(e10, t) {
|
|
27510
27426
|
if (process.platform !== "darwin" || Boolean(t.DEVELOPER_DIR)) return false;
|
|
27511
27427
|
try {
|
|
@@ -27578,66 +27494,10 @@ async function Do(e10) {
|
|
|
27578
27494
|
return [];
|
|
27579
27495
|
}
|
|
27580
27496
|
}
|
|
27581
|
-
function WD(e10, t) {
|
|
27582
|
-
let n = nl(e10, "entrypoint") ?? Xt(t, "entrypoint");
|
|
27583
|
-
if (n && Gbe.has(n)) return true;
|
|
27584
|
-
let r = e10.split(`
|
|
27585
|
-
`).find((s) => s.includes('"parentUuid":')) ?? e10, o = nl(r, "sessionKind");
|
|
27586
|
-
return o === "daemon" || o === "daemon-worker";
|
|
27587
|
-
}
|
|
27588
27497
|
function Ve(e10) {
|
|
27589
27498
|
if (typeof e10 !== "string") return null;
|
|
27590
27499
|
return Wbe.test(e10) ? e10 : null;
|
|
27591
27500
|
}
|
|
27592
|
-
function VD(e10) {
|
|
27593
|
-
if (!e10.includes("\\")) return e10;
|
|
27594
|
-
try {
|
|
27595
|
-
return JSON.parse(`"${e10}"`);
|
|
27596
|
-
} catch {
|
|
27597
|
-
return e10;
|
|
27598
|
-
}
|
|
27599
|
-
}
|
|
27600
|
-
function nl(e10, t) {
|
|
27601
|
-
let n = [`"${t}":"`, `"${t}": "`];
|
|
27602
|
-
for (let r of n) {
|
|
27603
|
-
let o = e10.indexOf(r);
|
|
27604
|
-
if (o < 0) continue;
|
|
27605
|
-
let s = o + r.length, i = s;
|
|
27606
|
-
while (i < e10.length) {
|
|
27607
|
-
if (e10[i] === "\\") {
|
|
27608
|
-
i += 2;
|
|
27609
|
-
continue;
|
|
27610
|
-
}
|
|
27611
|
-
if (e10[i] === '"') return VD(e10.slice(s, i));
|
|
27612
|
-
i++;
|
|
27613
|
-
}
|
|
27614
|
-
}
|
|
27615
|
-
return;
|
|
27616
|
-
}
|
|
27617
|
-
function Xt(e10, t) {
|
|
27618
|
-
let n = [`"${t}":"`, `"${t}": "`], r, o = -1;
|
|
27619
|
-
for (let s of n) {
|
|
27620
|
-
let i = 0;
|
|
27621
|
-
while (true) {
|
|
27622
|
-
let a = e10.indexOf(s, i);
|
|
27623
|
-
if (a < 0) break;
|
|
27624
|
-
let l = a + s.length, c = l;
|
|
27625
|
-
while (c < e10.length) {
|
|
27626
|
-
if (e10[c] === "\\") {
|
|
27627
|
-
c += 2;
|
|
27628
|
-
continue;
|
|
27629
|
-
}
|
|
27630
|
-
if (e10[c] === '"') {
|
|
27631
|
-
if (a > o) r = VD(e10.slice(l, c)), o = a;
|
|
27632
|
-
break;
|
|
27633
|
-
}
|
|
27634
|
-
c++;
|
|
27635
|
-
}
|
|
27636
|
-
i = c + 1;
|
|
27637
|
-
}
|
|
27638
|
-
}
|
|
27639
|
-
return r;
|
|
27640
|
-
}
|
|
27641
27501
|
function am(e10, t, n) {
|
|
27642
27502
|
return Vbe(e10, n, t);
|
|
27643
27503
|
}
|
|
@@ -27677,37 +27537,6 @@ function Sb(e10, t) {
|
|
|
27677
27537
|
function lm(e10, t) {
|
|
27678
27538
|
return e10?.realWorkspacePath === void 0 ? void 0 : { hoverRestOn: t, realPath: e10.realWorkspacePath };
|
|
27679
27539
|
}
|
|
27680
|
-
function cm(e10) {
|
|
27681
|
-
let t = 0, n = { commandFallback: "" };
|
|
27682
|
-
while (t < e10.length) {
|
|
27683
|
-
let r = e10.indexOf(`
|
|
27684
|
-
`, t), o = r >= 0 ? e10.slice(t, r) : e10.slice(t);
|
|
27685
|
-
if (t = r >= 0 ? r + 1 : e10.length, !o.includes('"type":"user"') && !o.includes('"type": "user"')) continue;
|
|
27686
|
-
if (o.includes('"tool_result"')) continue;
|
|
27687
|
-
if (o.includes('"isMeta":true') || o.includes('"isMeta": true')) continue;
|
|
27688
|
-
if (o.includes('"isCompactSummary":true') || o.includes('"isCompactSummary": true')) continue;
|
|
27689
|
-
try {
|
|
27690
|
-
let s = JSON.parse(o), i = zi(s, n);
|
|
27691
|
-
if (i !== void 0) return i;
|
|
27692
|
-
} catch {
|
|
27693
|
-
continue;
|
|
27694
|
-
}
|
|
27695
|
-
}
|
|
27696
|
-
return n.commandFallback;
|
|
27697
|
-
}
|
|
27698
|
-
function qD(e10) {
|
|
27699
|
-
let t = 0;
|
|
27700
|
-
while (t < e10.length) {
|
|
27701
|
-
let n = e10.indexOf(`
|
|
27702
|
-
`, t), r = n >= 0 ? e10.slice(t, n) : e10.slice(t);
|
|
27703
|
-
if (t = n >= 0 ? n + 1 : e10.length, !r.includes('"type":"user"') && !r.includes('"type": "user"')) continue;
|
|
27704
|
-
if (r.includes('"tool_result"')) continue;
|
|
27705
|
-
if (r.includes('"isMeta":true') || r.includes('"isMeta": true')) continue;
|
|
27706
|
-
if (r.includes('"type":"image"') || r.includes('"type": "image"')) return "Image";
|
|
27707
|
-
if (r.includes('"type":"document"') || r.includes('"type": "document"')) return "Document";
|
|
27708
|
-
}
|
|
27709
|
-
return "";
|
|
27710
|
-
}
|
|
27711
27540
|
async function Zbe(e10) {
|
|
27712
27541
|
let { backend: t, key: n } = e10;
|
|
27713
27542
|
try {
|
|
@@ -27793,43 +27622,6 @@ function Mu(e10) {
|
|
|
27793
27622
|
if (t.length <= Lo) return t;
|
|
27794
27623
|
return `${t.slice(0, Lo)}-${Jbe(e10)}`;
|
|
27795
27624
|
}
|
|
27796
|
-
function om(e10, t) {
|
|
27797
|
-
let n = e10.replaceAll("\\", "/");
|
|
27798
|
-
return t ? n.toLowerCase() : n;
|
|
27799
|
-
}
|
|
27800
|
-
function FD(e10, t, n) {
|
|
27801
|
-
let r = Ye(e10), o = Ye(t), s = (i) => n ? i.toLowerCase() : i;
|
|
27802
|
-
if (s(rl(r)) !== s(rl(o))) return false;
|
|
27803
|
-
return om(r, n) !== om(o, n);
|
|
27804
|
-
}
|
|
27805
|
-
async function XD(e10, t, n, r, o) {
|
|
27806
|
-
if (!FD(e10, t, n)) return false;
|
|
27807
|
-
if (uu(e10) || uu(t)) return false;
|
|
27808
|
-
if (await r(e10) || await r(t)) return false;
|
|
27809
|
-
let s;
|
|
27810
|
-
try {
|
|
27811
|
-
if (o !== void 0 && o.hoverRestOn) {
|
|
27812
|
-
let a = await o.realPath(e10);
|
|
27813
|
-
if (!a.ok || !a.value.found) return false;
|
|
27814
|
-
s = Ye(a.value.path);
|
|
27815
|
-
} else s = Ye(await GD(e10));
|
|
27816
|
-
} catch {
|
|
27817
|
-
return false;
|
|
27818
|
-
}
|
|
27819
|
-
let i = await Mo(t, o);
|
|
27820
|
-
return FD(s, i, n);
|
|
27821
|
-
}
|
|
27822
|
-
function QD(e10, t, n) {
|
|
27823
|
-
if (t === void 0) return false;
|
|
27824
|
-
let r = om(Ye(e10), n);
|
|
27825
|
-
return t.some((o) => {
|
|
27826
|
-
let s = om(Ye(o), n);
|
|
27827
|
-
return r === s || r.startsWith(s.endsWith("/") ? s : s + "/");
|
|
27828
|
-
});
|
|
27829
|
-
}
|
|
27830
|
-
function bb() {
|
|
27831
|
-
return process.platform === "win32" || process.platform === "darwin";
|
|
27832
|
-
}
|
|
27833
27625
|
function St() {
|
|
27834
27626
|
return kr(Dt(), "projects");
|
|
27835
27627
|
}
|
|
@@ -30234,9 +30026,6 @@ function GTe(e10) {
|
|
|
30234
30026
|
function TR(e10) {
|
|
30235
30027
|
return (t) => e10.hostFiles.realPath(kf.workspace(t === "" || KTe(t) ? t : GTe(t)), { native: true });
|
|
30236
30028
|
}
|
|
30237
|
-
function gd(e10) {
|
|
30238
|
-
return e10 === void 0 ? void 0 : { hoverRestOn: be(), realPath: TR(e10) };
|
|
30239
|
-
}
|
|
30240
30029
|
function VTe(e10) {
|
|
30241
30030
|
return e10.namespace !== "transcript" || e10.journal !== void 0 || e10.sessionJournal !== void 0 ? void 0 : e10.agentId ?? null;
|
|
30242
30031
|
}
|
|
@@ -30678,310 +30467,9 @@ async function g0(e10, t, n, r) {
|
|
|
30678
30467
|
let { entries: l, delivered: c } = await ZTe(a);
|
|
30679
30468
|
return m0(l, t, c);
|
|
30680
30469
|
}
|
|
30681
|
-
function lOe() {
|
|
30682
|
-
return aOe(Dt(), "projects");
|
|
30683
|
-
}
|
|
30684
|
-
function h0(e10) {
|
|
30685
|
-
return iOe(e10) === lOe() ? sOe(e10) : void 0;
|
|
30686
|
-
}
|
|
30687
|
-
function cOe(e10) {
|
|
30688
|
-
return [...e10.replace(/[\x00-\x1f\x7f-\x9f]/g, "")].slice(0, y0).join("");
|
|
30689
|
-
}
|
|
30690
|
-
function S0(e10) {
|
|
30691
|
-
return cOe(Vf(e10.trim())).trim();
|
|
30692
|
-
}
|
|
30693
|
-
function C0(e10) {
|
|
30694
|
-
let t = E0(e10);
|
|
30695
|
-
if (fd(t)) return;
|
|
30696
|
-
let n = St(), r = [t], o = b0(e10);
|
|
30697
|
-
while (o !== n && r.length <= uOe + 1) {
|
|
30698
|
-
let c = b0(o);
|
|
30699
|
-
if (c === o) return;
|
|
30700
|
-
r.unshift(E0(o)), o = c;
|
|
30701
|
-
}
|
|
30702
|
-
if (o !== n || r.length < 3) return;
|
|
30703
|
-
let [s, i, ...a] = r;
|
|
30704
|
-
if (!Qt(s) || !Qt(i) || a.length === 0 || !a.every(Qt)) return;
|
|
30705
|
-
let l = Mt.sidecar(s, i, a);
|
|
30706
|
-
return zo(l) === void 0 ? l : void 0;
|
|
30707
|
-
}
|
|
30708
|
-
function gOe(e10, t) {
|
|
30709
|
-
return fOe(pOe(e10), t, "custom-title.json");
|
|
30710
|
-
}
|
|
30711
|
-
async function ml(e10, t, n) {
|
|
30712
|
-
let r = await hOe(gOe(e10, t), n);
|
|
30713
|
-
if (r === void 0) return;
|
|
30714
|
-
let o;
|
|
30715
|
-
try {
|
|
30716
|
-
o = JSON.parse(r);
|
|
30717
|
-
} catch {
|
|
30718
|
-
return;
|
|
30719
|
-
}
|
|
30720
|
-
let s = mOe().safeParse(o);
|
|
30721
|
-
if (!s.success) return;
|
|
30722
|
-
return S0(s.data.customTitle) || void 0;
|
|
30723
|
-
}
|
|
30724
|
-
async function hOe(e10, t) {
|
|
30725
|
-
if (be() && t !== void 0) try {
|
|
30726
|
-
let n = C0(e10);
|
|
30727
|
-
if (n !== void 0) {
|
|
30728
|
-
let r = await t.readText([n]);
|
|
30729
|
-
if (!r.ok) return;
|
|
30730
|
-
let o = r.value.items[0];
|
|
30731
|
-
return o.found ? o.value : void 0;
|
|
30732
|
-
}
|
|
30733
|
-
} catch {
|
|
30734
|
-
return;
|
|
30735
|
-
}
|
|
30736
|
-
if (Qe()) return;
|
|
30737
|
-
try {
|
|
30738
|
-
return await dOe(e10, "utf8");
|
|
30739
|
-
} catch {
|
|
30740
|
-
return;
|
|
30741
|
-
}
|
|
30742
|
-
}
|
|
30743
30470
|
function se(e10) {
|
|
30744
30471
|
return typeof e10 === "object" && e10 !== null && !Array.isArray(e10);
|
|
30745
30472
|
}
|
|
30746
|
-
function T0(e10) {
|
|
30747
|
-
if (!e10.includes(A0)) return;
|
|
30748
|
-
let t = e10.length;
|
|
30749
|
-
while (t > 0) {
|
|
30750
|
-
let n = e10.lastIndexOf(`
|
|
30751
|
-
`, t - 1), r = e10.slice(n + 1, t);
|
|
30752
|
-
t = n;
|
|
30753
|
-
let o = r.includes(A0), s = r.includes('"type":"user"') || r.includes('"type":"assistant"');
|
|
30754
|
-
if (o || s) try {
|
|
30755
|
-
let i = JSON.parse(r);
|
|
30756
|
-
if (o) {
|
|
30757
|
-
let a = bOe().safeParse(i);
|
|
30758
|
-
if (a.success) return Ve(a.data.continuedInSessionId) ?? void 0;
|
|
30759
|
-
}
|
|
30760
|
-
if (s && AOe(i)) return;
|
|
30761
|
-
} catch {
|
|
30762
|
-
}
|
|
30763
|
-
if (n < 0) break;
|
|
30764
|
-
}
|
|
30765
|
-
return;
|
|
30766
|
-
}
|
|
30767
|
-
function AOe(e10) {
|
|
30768
|
-
let t = COe().safeParse(e10);
|
|
30769
|
-
if (t.success) return t.data.isApiErrorMessage !== true && typeof t.data.message?.stop_reason === "string";
|
|
30770
|
-
return se(e10) && zi(e10, { commandFallback: "" }) !== void 0;
|
|
30771
|
-
}
|
|
30772
|
-
async function O0(e10, t, n) {
|
|
30773
|
-
let r = EOe(SOe(e10), `${t}.jsonl`), o = await ji(r, cn(Lr(r, n)));
|
|
30774
|
-
return o !== null && await w0(r, o.head, o.tail, o.size, n);
|
|
30775
|
-
}
|
|
30776
|
-
async function w0(e10, t, n, r, o) {
|
|
30777
|
-
if (t.includes(yd) || n.includes(yd)) return true;
|
|
30778
|
-
if (r <= En) return false;
|
|
30779
|
-
if (Lr(e10, o) !== void 0) return true;
|
|
30780
|
-
try {
|
|
30781
|
-
let s = process.platform !== "win32";
|
|
30782
|
-
if (!s && !(await _Oe(e10)).isFile()) return false;
|
|
30783
|
-
let i = await yOe(e10, s ? Xm.O_RDONLY | Xm.O_NOFOLLOW | Xm.O_NONBLOCK : Xm.O_RDONLY);
|
|
30784
|
-
try {
|
|
30785
|
-
if (!(await i.stat()).isFile()) return false;
|
|
30786
|
-
let a = Buffer.allocUnsafe(R0 + yd.length), l = 0, c = 0;
|
|
30787
|
-
while (c < ROe) {
|
|
30788
|
-
let { bytesRead: d } = await i.read(a, l, R0, c);
|
|
30789
|
-
if (d === 0) return false;
|
|
30790
|
-
let p = l + d;
|
|
30791
|
-
if (a.subarray(0, p).includes(yd)) return true;
|
|
30792
|
-
l = Math.min(yd.length, p), a.copyWithin(0, p - l, p), c += d;
|
|
30793
|
-
}
|
|
30794
|
-
return true;
|
|
30795
|
-
} finally {
|
|
30796
|
-
await i.close();
|
|
30797
|
-
}
|
|
30798
|
-
} catch {
|
|
30799
|
-
return false;
|
|
30800
|
-
}
|
|
30801
|
-
}
|
|
30802
|
-
function gl(e10, t, n, r) {
|
|
30803
|
-
let { head: o, tail: s, mtime: i, size: a } = t, l = o.indexOf(`
|
|
30804
|
-
`), c = l >= 0 ? o.slice(0, l) : o;
|
|
30805
|
-
if (c.includes('"isSidechain":true') || c.includes('"isSidechain": true')) return null;
|
|
30806
|
-
let d = Xt(s, "customTitle") || r || Xt(o, "customTitle") || Xt(s, "aiTitle") || Xt(o, "aiTitle") || void 0, p = cm(o) || void 0, f = nl(o, "timestamp"), m;
|
|
30807
|
-
if (f) {
|
|
30808
|
-
let b = Date.parse(f);
|
|
30809
|
-
if (!Number.isNaN(b)) m = b;
|
|
30810
|
-
}
|
|
30811
|
-
let g = d || Xt(s, "lastPrompt") || Xt(s, "summary") || p || qD(o);
|
|
30812
|
-
if (!g) return null;
|
|
30813
|
-
let _ = Xt(s, "gitBranch") || nl(o, "gitBranch") || void 0, y = am(s, "relocated", "relocatedCwd") || nl(o, "cwd") || n || void 0, S = s.split(`
|
|
30814
|
-
`).findLast((b) => b.includes('"type":"tag"') && b.includes('"tag":"')), E = S ? Xt(S, "tag") || void 0 : void 0;
|
|
30815
|
-
return { sessionId: e10, summary: g, lastModified: i, fileSize: a, customTitle: d, firstPrompt: p, gitBranch: _, cwd: y, tag: E, createdAt: m };
|
|
30816
|
-
}
|
|
30817
|
-
function wOe(e10) {
|
|
30818
|
-
let t = h0(e10);
|
|
30819
|
-
return t !== void 0 && Qt(t) ? t : void 0;
|
|
30820
|
-
}
|
|
30821
|
-
function IR(e10) {
|
|
30822
|
-
return { pagesLeft: kD + e10 };
|
|
30823
|
-
}
|
|
30824
|
-
async function Qm(e10, t, n, r, o, s) {
|
|
30825
|
-
let i = be() && r !== void 0 ? wOe(e10) : void 0;
|
|
30826
|
-
if (r !== void 0 && i !== void 0) {
|
|
30827
|
-
let c = /* @__PURE__ */ new Map();
|
|
30828
|
-
try {
|
|
30829
|
-
await vr((d) => r.listEntries({ namespace: "transcript", projectKey: i }, { skipScopeStats: true, ...t ? {} : { skipKeyStats: true }, ...d !== void 0 && { cursor: d } }), (d) => {
|
|
30830
|
-
for (let p of d) {
|
|
30831
|
-
if (p.kind !== "key" || p.key.namespace !== "transcript") continue;
|
|
30832
|
-
let f = Ve(p.key.sessionId);
|
|
30833
|
-
if (!f) continue;
|
|
30834
|
-
if (t && p.mtimeMs === void 0) continue;
|
|
30835
|
-
let m = t ? Math.trunc(p.mtimeMs ?? 0) : 0, g = c.get(f);
|
|
30836
|
-
if (g !== void 0) {
|
|
30837
|
-
if (m > g.mtime) g.mtime = m;
|
|
30838
|
-
continue;
|
|
30839
|
-
}
|
|
30840
|
-
c.set(f, { sessionId: f, filePath: Sd(e10, `${p.key.sessionId}.jsonl`), mtime: m, projectPath: n, ownWorktrees: s });
|
|
30841
|
-
}
|
|
30842
|
-
}, o !== void 0 ? { budget: o } : void 0);
|
|
30843
|
-
} catch {
|
|
30844
|
-
}
|
|
30845
|
-
return [...c.values()];
|
|
30846
|
-
}
|
|
30847
|
-
let a;
|
|
30848
|
-
try {
|
|
30849
|
-
a = await PR(e10);
|
|
30850
|
-
} catch {
|
|
30851
|
-
return [];
|
|
30852
|
-
}
|
|
30853
|
-
return (await Promise.all(a.map(async (c) => {
|
|
30854
|
-
if (!c.endsWith(".jsonl")) return null;
|
|
30855
|
-
let d = Ve(c.slice(0, -6));
|
|
30856
|
-
if (!d) return null;
|
|
30857
|
-
let p = Sd(e10, c);
|
|
30858
|
-
if (!t) return { sessionId: d, filePath: p, mtime: 0, projectPath: n, ownWorktrees: s };
|
|
30859
|
-
try {
|
|
30860
|
-
let f = await TOe(p);
|
|
30861
|
-
return { sessionId: d, filePath: p, mtime: f.mtime.getTime(), projectPath: n, ownWorktrees: s };
|
|
30862
|
-
} catch {
|
|
30863
|
-
return null;
|
|
30864
|
-
}
|
|
30865
|
-
}))).filter((c) => c !== null);
|
|
30866
|
-
}
|
|
30867
|
-
async function v0(e10, t, n) {
|
|
30868
|
-
let r = await ji(e10.filePath, cn(Lr(e10.filePath, n)));
|
|
30869
|
-
if (!r) return null;
|
|
30870
|
-
if (!t && WD(r.head, r.tail)) return null;
|
|
30871
|
-
let o = T0(r.tail);
|
|
30872
|
-
if (o !== void 0 && await O0(e10.filePath, o, n)) return null;
|
|
30873
|
-
let s = Xt(r.tail, "customTitle") === void 0 ? await ml(e10.filePath, e10.sessionId, n) : void 0, i = gl(e10.sessionId, r, e10.projectPath, s);
|
|
30874
|
-
if (!i) return null;
|
|
30875
|
-
let a = am(r.tail, "relocated", "relocatedCwd") ?? Sb(r.head, "cwd");
|
|
30876
|
-
if (a !== void 0 && e10.projectPath !== void 0 && !QD(a, e10.ownWorktrees, bb()) && await XD(a, e10.projectPath, bb(), xP, gd(n))) return null;
|
|
30877
|
-
if (e10.mtime) i.lastModified = e10.mtime;
|
|
30878
|
-
return i;
|
|
30879
|
-
}
|
|
30880
|
-
function vOe(e10, t) {
|
|
30881
|
-
if (t.mtime !== e10.mtime) return t.mtime - e10.mtime;
|
|
30882
|
-
return t.sessionId < e10.sessionId ? -1 : t.sessionId > e10.sessionId ? 1 : 0;
|
|
30883
|
-
}
|
|
30884
|
-
async function kOe(e10, t, n, r, o) {
|
|
30885
|
-
e10.sort(vOe);
|
|
30886
|
-
let s = [], i = t && t > 0 ? t : 1 / 0, a = 0, l = /* @__PURE__ */ new Set();
|
|
30887
|
-
for (let c = 0; c < e10.length && s.length < i; ) {
|
|
30888
|
-
let d = Math.min(c + xOe, e10.length), p = e10.slice(c, d), f = await Promise.all(p.map((m) => v0(m, r, o)));
|
|
30889
|
-
for (let m = 0; m < f.length && s.length < i; m++) {
|
|
30890
|
-
c++;
|
|
30891
|
-
let g = f[m];
|
|
30892
|
-
if (!g) continue;
|
|
30893
|
-
if (l.has(g.sessionId)) continue;
|
|
30894
|
-
if (l.add(g.sessionId), a < n) {
|
|
30895
|
-
a++;
|
|
30896
|
-
continue;
|
|
30897
|
-
}
|
|
30898
|
-
s.push(g);
|
|
30899
|
-
}
|
|
30900
|
-
}
|
|
30901
|
-
return s;
|
|
30902
|
-
}
|
|
30903
|
-
async function POe(e10, t, n) {
|
|
30904
|
-
let r = await Promise.all(e10.map((i) => v0(i, t, n))), o = /* @__PURE__ */ new Map();
|
|
30905
|
-
for (let i of r) {
|
|
30906
|
-
if (!i) continue;
|
|
30907
|
-
let a = o.get(i.sessionId);
|
|
30908
|
-
if (!a || i.lastModified > a.lastModified) o.set(i.sessionId, i);
|
|
30909
|
-
}
|
|
30910
|
-
let s = [...o.values()];
|
|
30911
|
-
return s.sort((i, a) => a.lastModified !== i.lastModified ? a.lastModified - i.lastModified : a.sessionId < i.sessionId ? -1 : a.sessionId > i.sessionId ? 1 : 0), s;
|
|
30912
|
-
}
|
|
30913
|
-
async function x0(e10, t, n, r, o) {
|
|
30914
|
-
let s = process.platform === "win32", i = o !== void 0 && o.hoverRestOn && e10.length > 1 ? { ...o, source: Eb(o.source) } : o, a = [], l = /* @__PURE__ */ new Set();
|
|
30915
|
-
for (let p of e10) for (let f of await qn(p, i, n)) {
|
|
30916
|
-
let m = s ? f.toLowerCase() : f;
|
|
30917
|
-
if (!l.has(m)) l.add(m), a.push({ projectDir: f, projectPath: p });
|
|
30918
|
-
}
|
|
30919
|
-
let c = IR(a.length), d = [];
|
|
30920
|
-
for (let { projectDir: p, projectPath: f } of a) d.push(...await Qm(p, t, f, r, c));
|
|
30921
|
-
return d;
|
|
30922
|
-
}
|
|
30923
|
-
async function IOe(e10, t, n, r, o) {
|
|
30924
|
-
let s = await Mo(e10, gd(o)), i = cn(zn(o)), a = Ab(e10, s), l;
|
|
30925
|
-
if (t) try {
|
|
30926
|
-
l = await Do(s);
|
|
30927
|
-
} catch {
|
|
30928
|
-
l = [];
|
|
30929
|
-
}
|
|
30930
|
-
else l = [];
|
|
30931
|
-
if (l.length <= 1) return x0(a, n, r, o, i);
|
|
30932
|
-
let c = process.platform === "win32", d = l.map((S) => {
|
|
30933
|
-
let E = Vr(S), b = c ? E.toLowerCase() : E;
|
|
30934
|
-
return { path: S, exactName: b, truncatedPrefix: E.length > Lo ? b.slice(0, Lo) : void 0 };
|
|
30935
|
-
});
|
|
30936
|
-
d.sort((S, E) => E.exactName.length - S.exactName.length);
|
|
30937
|
-
let p = i !== void 0 && i.hoverRestOn ? await il(i.source) : null, f = p;
|
|
30938
|
-
if (f === null) {
|
|
30939
|
-
let S;
|
|
30940
|
-
try {
|
|
30941
|
-
S = await PR(r, { withFileTypes: true });
|
|
30942
|
-
} catch {
|
|
30943
|
-
return x0(a, n, r, o, void 0);
|
|
30944
|
-
}
|
|
30945
|
-
f = S.filter((E) => E.isDirectory()).map((E) => E.name);
|
|
30946
|
-
}
|
|
30947
|
-
let m = [], g = /* @__PURE__ */ new Set(), _ = IR(f.length + a.length), y = [...a, ...l];
|
|
30948
|
-
for (let S of a) {
|
|
30949
|
-
let E = i !== void 0 && i.hoverRestOn && p !== null ? await Rb(S, p, c, i) : await qn(S, void 0, r);
|
|
30950
|
-
for (let b of E) {
|
|
30951
|
-
let C = OOe(b), A = c ? C.toLowerCase() : C;
|
|
30952
|
-
if (g.has(A)) continue;
|
|
30953
|
-
g.add(A), m.push(...await Qm(b, n, S, o, _, y));
|
|
30954
|
-
}
|
|
30955
|
-
}
|
|
30956
|
-
for (let S of f) {
|
|
30957
|
-
let E = c ? S.toLowerCase() : S;
|
|
30958
|
-
if (g.has(E)) continue;
|
|
30959
|
-
for (let { path: b, exactName: C, truncatedPrefix: A } of d) if (E === C || A !== void 0 && E.startsWith(A + "-") && await sl(Sd(r, S), b, c, i)) {
|
|
30960
|
-
g.add(E), m.push(...await Qm(Sd(r, S), n, b, o, _, y));
|
|
30961
|
-
break;
|
|
30962
|
-
}
|
|
30963
|
-
}
|
|
30964
|
-
return m;
|
|
30965
|
-
}
|
|
30966
|
-
async function DOe(e10, t, n) {
|
|
30967
|
-
let r = zn(n), o = r !== void 0 ? await il(r) : null;
|
|
30968
|
-
if (o === null) {
|
|
30969
|
-
let a;
|
|
30970
|
-
try {
|
|
30971
|
-
a = await PR(t, { withFileTypes: true });
|
|
30972
|
-
} catch {
|
|
30973
|
-
return [];
|
|
30974
|
-
}
|
|
30975
|
-
o = a.filter((l) => l.isDirectory()).map((l) => l.name);
|
|
30976
|
-
}
|
|
30977
|
-
let s = IR(o.length);
|
|
30978
|
-
return (await Promise.all(o.map((a) => Qm(Sd(t, a), e10, void 0, n, s)))).flat();
|
|
30979
|
-
}
|
|
30980
|
-
async function k0(e10, t, n = St()) {
|
|
30981
|
-
let r = be() ? t : void 0, { dir: o, limit: s, offset: i, includeWorktrees: a, includeProgrammatic: l } = e10 ?? {}, c = i ?? 0, d = l ?? true, p = s !== void 0 && s > 0 || c > 0, f = o ? await IOe(o, a ?? true, p, n, r) : await DOe(p, n, r);
|
|
30982
|
-
if (!p) return POe(f, d, r);
|
|
30983
|
-
return kOe(f, s, c, d, r);
|
|
30984
|
-
}
|
|
30985
30473
|
async function eF(e10, t, n, r, o) {
|
|
30986
30474
|
let s = await ws(e10, t, zn(n), r, o);
|
|
30987
30475
|
if (!s) return null;
|
|
@@ -31127,19 +30615,6 @@ function zR(e10, t, n, r) {
|
|
|
31127
30615
|
let o = Fwe(e10), s = $we(o), i = ku(n), a = typeof r === "string" && Vy(r) ? r : void 0, l = xR(s, { keepMeta: true }).filter((c) => c.type === "user" || c.type === "assistant").map((c) => vR(c, i, a));
|
|
31128
30616
|
return kR(l, t);
|
|
31129
30617
|
}
|
|
31130
|
-
function cF(e10, t) {
|
|
31131
|
-
let n = e10.data;
|
|
31132
|
-
if (n.isSidechain === true) return null;
|
|
31133
|
-
let r = Ps(n.firstPromptLocked === true ? n.firstPrompt : n.commandFallback) || void 0, o = Ps(n.customTitle) || Ps(n.aiTitle) || void 0, s = o || Ps(n.lastPrompt) || Ps(n.summaryHint) || r;
|
|
31134
|
-
if (!s) return null;
|
|
31135
|
-
return { sessionId: e10.sessionId, summary: s, lastModified: e10.mtime, fileSize: void 0, customTitle: o, firstPrompt: r, gitBranch: Ps(n.gitBranch) || void 0, cwd: Ps(n.cwd) || t || void 0, tag: Ps(n.tag) || void 0, createdAt: Gwe(n.createdAt) };
|
|
31136
|
-
}
|
|
31137
|
-
function Ps(e10) {
|
|
31138
|
-
return typeof e10 === "string" ? e10 : void 0;
|
|
31139
|
-
}
|
|
31140
|
-
function Gwe(e10) {
|
|
31141
|
-
return typeof e10 === "number" ? e10 : void 0;
|
|
31142
|
-
}
|
|
31143
30618
|
function Ad() {
|
|
31144
30619
|
return Ywe;
|
|
31145
30620
|
}
|
|
@@ -35641,10 +35116,6 @@ async function P1t(e10, t) {
|
|
|
35641
35116
|
if (t?.sessionStore) return c3e(t.sessionStore, e10, t);
|
|
35642
35117
|
return g0(e10, t);
|
|
35643
35118
|
}
|
|
35644
|
-
async function I1t(e10) {
|
|
35645
|
-
if (e10?.sessionStore) return i3e(e10.sessionStore, e10);
|
|
35646
|
-
return k0(e10);
|
|
35647
|
-
}
|
|
35648
35119
|
async function U1t(e10, t, n) {
|
|
35649
35120
|
if (n?.sessionStore) return f3e(n.sessionStore, e10, t, n);
|
|
35650
35121
|
return oF(e10, t, n);
|
|
@@ -35654,59 +35125,6 @@ function A3(e10) {
|
|
|
35654
35125
|
`) + `
|
|
35655
35126
|
`;
|
|
35656
35127
|
}
|
|
35657
|
-
function R3(e10, t, n) {
|
|
35658
|
-
if (t !== void 0 && t > 0) return e10.slice(n, n + t);
|
|
35659
|
-
if (n > 0) return e10.slice(n);
|
|
35660
|
-
return e10;
|
|
35661
|
-
}
|
|
35662
|
-
async function i3e(e10, t) {
|
|
35663
|
-
let n = Dv(t.dir), r = Vr(n), o = t.offset ?? 0, s = t.limit;
|
|
35664
|
-
if (e10.listSessionSummaries) return a3e(e10, r, n, t.dir, s, o);
|
|
35665
|
-
if (!e10.listSessions) throw Error("sessionStore.listSessions is not implemented -- cannot list sessions. Provide a store with a listSessions() method.");
|
|
35666
|
-
let a = (await e10.listSessions(r)).slice().sort((c, d) => d.mtime - c.mtime), l = R3(a, s, o);
|
|
35667
|
-
return T3(e10, l, t.dir, n);
|
|
35668
|
-
}
|
|
35669
|
-
async function a3e(e10, t, n, r, o, s) {
|
|
35670
|
-
let i = await e10.listSessionSummaries(t), a = e10.listSessions ? new Map((await e10.listSessions(t)).map((p) => [p.sessionId, p])) : void 0, l = [];
|
|
35671
|
-
for (let p of i) {
|
|
35672
|
-
let f = a?.get(p.sessionId);
|
|
35673
|
-
if (a && !f) continue;
|
|
35674
|
-
let m = f !== void 0 && p.mtime < f.mtime;
|
|
35675
|
-
l.push({ sessionId: p.sessionId, mtime: m ? f.mtime : p.mtime, info: m ? void 0 : cF(p, n) });
|
|
35676
|
-
}
|
|
35677
|
-
if (a) {
|
|
35678
|
-
let p = new Set(i.map((f) => f.sessionId));
|
|
35679
|
-
for (let [f, m] of a) if (!p.has(f)) l.push({ sessionId: f, mtime: m.mtime });
|
|
35680
|
-
} else K("listSessionSummaries without listSessions: gap-fill skipped; sessions lacking a sidecar will be omitted");
|
|
35681
|
-
l.sort((p, f) => f.mtime - p.mtime);
|
|
35682
|
-
let c = R3(l, o, s), d = c.filter((p) => p.info === void 0);
|
|
35683
|
-
if (d.length > 0) {
|
|
35684
|
-
let p = await T3(e10, d, r, n), f = new Map(p.map((m) => [m.sessionId, m]));
|
|
35685
|
-
for (let m of c) if (m.info === void 0) m.info = f.get(m.sessionId) ?? null;
|
|
35686
|
-
}
|
|
35687
|
-
return c.flatMap((p) => p.info ? [p.info] : []);
|
|
35688
|
-
}
|
|
35689
|
-
async function T3(e10, t, n, r) {
|
|
35690
|
-
return (await Promise.allSettled(t.map(async (s) => {
|
|
35691
|
-
let i = await w3(e10, s.sessionId, n);
|
|
35692
|
-
if (!i) return null;
|
|
35693
|
-
let a = gl(s.sessionId, O3(i, s.mtime), r);
|
|
35694
|
-
return a ? { ...a, lastModified: s.mtime } : null;
|
|
35695
|
-
}))).flatMap((s, i) => {
|
|
35696
|
-
let a = t[i];
|
|
35697
|
-
if (s.status === "fulfilled") return s.value ? [s.value] : [];
|
|
35698
|
-
return [{ sessionId: a.sessionId, summary: "", lastModified: a.mtime }];
|
|
35699
|
-
});
|
|
35700
|
-
}
|
|
35701
|
-
function O3(e10, t) {
|
|
35702
|
-
let n = Buffer.from(e10, "utf-8"), r = n.length, o = n.subarray(0, En).toString("utf-8"), s = r > En ? n.subarray(r - En).toString("utf-8") : o;
|
|
35703
|
-
return { mtime: t, size: r, head: o, tail: s };
|
|
35704
|
-
}
|
|
35705
|
-
async function w3(e10, t, n) {
|
|
35706
|
-
let r = Pn(n), o = await e10.load({ projectKey: r, sessionId: t });
|
|
35707
|
-
if (!o || o.length === 0) return null;
|
|
35708
|
-
return A3(o);
|
|
35709
|
-
}
|
|
35710
35128
|
async function c3e(e10, t, n) {
|
|
35711
35129
|
if (!Ve(t)) return [];
|
|
35712
35130
|
let r = Pn(n.dir), o = await e10.load({ projectKey: r, sessionId: t });
|
|
@@ -35728,7 +35146,7 @@ async function f3e(e10, t, n, r) {
|
|
|
35728
35146
|
if (d.length === 0) return [];
|
|
35729
35147
|
return zR(Buffer.from(A3(d)), { limit: r.limit, offset: r.offset }, l, c);
|
|
35730
35148
|
}
|
|
35731
|
-
var I3, D3, Wy, L3, Wv, N3, U3, Vv, X, F3, Ar, H3, j3, B3, ht, _t, Zd, RT, ke, $e, Vo, Xd, sz, IT, DT, Qd, Az, gr, Mz, Fz, $T, Hz, ep, tp, sh, np, lh, yH, VT, vH, MH, FH, qH, ZH, ej, nj, oj, ij, cj, pj, hj, yj, bj, Aj, _h, xj, Pj, Lj, Nj, XT, QT, Wj, Jj, Qj, iB, cB, eO, mB, hB, SB, CB, TB, xB, PB, LB, NB, FB, zB, BB, GB, YB, XB, QB, nO, uK, fK, _K, JE, XE, ub, db, fb, mb, gb, hb, Wh, qh, b_, Yv, G3, W3, y3e, V3, q3, Pe, ek, Di, Yy, Zy, Xy, hs, ik, tS, ck, oS, iS, sJ, aS, lS, cS, uS, dS, pS, fS, mS, gS, hS, _S, yS, SS, ES, pk, bS, fk, CS, aJ, lJ, AS, RS, TS, OS, wS, xS, vS, kS, PS, IS, DS, mk, cJ, e5e, _f, Ma, gJ, $S, Ek, SJ, Mk, Nk, Sf, Ef, AJ, Uk, Fk, O5e, Rk, RJ, zS, OJ, xk, IJ, qS, DJ, ZS, LJ, Hk, jk, pu, Es, Wk, qk, JS, XS, QS, eE, Jk, tE, nE, rE, oE, sE, iE, aE, lE, cE, uE, nP, e8e, t8e, n8e, r8e, o8e, FJ, kf, fE, aP, mE, gE, cP, HJ, BJ, pP, dP, VJ, qJ, YJ, Dt, XJ, QJ, SP, V8e, t5, Ht, He, _5, za, b5, Or, Ff, TE, wE, m7e, PP, L5, M5, xE, N5, U5, F5, W5, HP, jf, $P, GP, V5, _7e, Y5, VP, wr, Eu, qP, Ka, x7e, v7e, LE, k7e, P7e, I7e, D7e, Su, L7e, X5, Q5, eX, WP, M7e, N7e, nX, lX, cX, uX, dX, pX, fX, iI, mX, gX, hX, _X, yX, SX, EX, bX, rI, _I, Va, Ui, cI, uI, Jf, Rs, J7e, X7e, xX, dI, Qf, vX, kX, PX, IX, cr, xr, DX, yI, KE, SI, $E, zE, EI, bI, As, LX, MX, CI, Tu, HE, pI, GE, AI, NX, BE, NE, fI, UE, HX, jX, GX, WX, OI, VX, Q7e, eQe, qX, YX, Xf, JX, xI, tQe, nQe, XX, YE, n8, r8, PI, o8, s8, i8, II, a8, c8, d8, FI, $I, m8, b8, C8, A8, R8, T8, u, O8, w8, x8, v8, k8, P8, I8, D8, L8, M8, N8, U8, F8, $8, z8, H8, j8, B8, K8, G8, W8, V8, q8, Y8, Z8, J8, X8, Q8, e7, t7, n7, r7, o7, s7, i7, a7, l7, c7, u7, d7, p7, f7, m7, g7, h7, _7, y7, S7, E7, b7, C7, A7, R7, T7, O7, w7, x7, v7, k7, P7, I7, D7, L7, M7, N7, U7, F7, $7, z7, H7, j7, B7, K7, G7, W7, V7, q7, Y7, Z7, J7, X7, Q7, eQ, tQ, nQ, rQ, oQ, sQ, iQ, aQ, lQ, cQ, uQ, dQ, pQ, fQ, mQ, gQ, hQ, _Q, yQ, SQ, EQ, bQ, CQ, AQ, RQ, TQ, OQ, wQ, xQ, vQ, kQ, PQ, IQ, DQ, LQ, MQ, NQ, UQ, FQ, $Q, zQ, HQ, jQ, BQ, KQ, GQ, WQ, VQ, qQ, ZQ, HQe, YI, em, KQe, GQe, Ja, WQe, VQe, qQe, YQe, ZI, JI, eb, XI, tee, QI, eD, tD, nee, tb, nb, rb, ree, nD, rD, oee, XQe, see, QQe, iee, aee, oD, eet, lee, cee, uee, dee, pee, fee, mee, tet, Os, sb, Xa, gee, hee, _ee, met, Cee, yet, Ree, Tee, lD, aD, Oee, dD, xee, mD, gD, ED, Bee, CD, AD, Xee, vu, tl, ete, tte, nte, rte, ote, ste, ite, ate, lte, cte, ute, dte, pte, fte, mte, gte, hte, _te, yte, Ste, Ete, bte, Cte, Ate, Rte, Tte, Ote, wte, xte, vte, kte, Pte, Ite, Dte, Lte, Mte, Nte, Ute, Fte, $te, zte, Hte, jte, Bte, Kte, Gte, Wte, Vte, qte, Yte, Zte, Jte, Xte, Qte, ene, tne, nne, rne, one, sne, ine, ane, lne, cne, une, dne, pne, fne, mne, gne, hne, _ne, yne, Sne, Ene, bne, Cne, Ane, Rne, Tne, One, wne, xne, vne, kne, Pne, Ine, Dne, Lne, Mne, Nne, Une, Fne, $ne, zne, Hne, jne, Bne, Kne, Gne, Wne, Vne, qne, Yne, Zne, Jne, Xne, Qne, ere, tre, nre, rre, ore, sre, ire, are, lre, cre, ure, dre, pre, fre, mre, gre, hre, _re, yre, Sre, Ere, bre, Cre, Are, Rre, Tre, Ore, wre, xre, vre, kre, Pre, Ire, Dre, Lre, Mre, Nre, Ure, Fre, $re, zre, Hre, jre, Bre, Kre, Gre, Wre, Vre, qre, Yre, Zre, Jre, Xre, Qre, eoe, toe, noe, roe, ooe, soe, ioe, aoe, loe, coe, uoe, doe, poe, foe, moe, goe, hoe, _oe, yoe, Soe, Eoe, boe, Coe, Aoe, Roe, Toe, Ooe, woe, xoe, voe, koe, Poe, Ioe, Doe, Loe, Moe, Noe, Uoe, Foe, $oe, zoe, Hoe, joe, Boe, Koe, Goe, Woe, Voe, qoe, Yoe, Zoe, Joe, Xoe, Qoe, ese, tse, nse, rse, ose, sse, ise, ase, lse, cse, use, dse, pse, fse, mse, gse, hse, _se, yse, Sse, Ese, bse, Cse, Ase, Rse, Tse, Ose, wse, xse, vse, kse, Pse, Ise, Dse, Lse, Mse, Nse, Use, Fse, $se, zse, Hse, jse, Bse, Kse, Gse, Wse, Vse, qse, Yse, Zse, Jse, Xse, Qse, eie, tie, nie, rie, oie, sie, iie, aie, lie, cie, uie, die, pie, fie, mie, gie, hie, _ie, yie, Sie, Eie, bie, Cie, Aie, Rie, Tie, Oie, wie, xie, vie, kie, Pie, Iie, Die, Lie, Mie, Nie, Uie, Fie, $ie, zie, Hie, jie, Bie, Kie, Gie, Wie, Vie, qie, Yie, Zie, Jie, Xie, Qie, eae, tae, nae, rae, oae, sae, iae, aae, lae, cae, uae, dae, pae, fae, mae, gae, hae, _ae, yae, Sae, Eae, bae, Cae, Aae, Rae, Tae, Oae, wae, xae, vae, kae, Pae, Iae, Dae, Lae, Mae, Nae, Uae, Fae, $ae, zae, Hae, jae, Bae, Kae, Gae, Wae, Vae, qae, Yae, Zae, Jae, Xae, Qae, ele, tle, nle, rle, ole, sle, ile, ale, lle, cle, ule, dle, ple, fle, mle, gle, hle, _le, yle, Sle, Ele, ble, Cle, Ale, Rle, Tle, Ole, wle, xle, vle, kle, Ple, Ile, Dle, Lle, Mle, Nle, Ule, Fle, $le, zle, Hle, jle, Ble, Kle, Gle, Wle, Vle, qle, Yle, Zle, Jle, Xle, Qle, ece, tce, nce, rce, oce, sce, ice, ace, lce, cce, uce, dce, pce, fce, mce, gce, hce, _ce, yce, Sce, Ece, bce, Cce, Ace, Rce, Tce, Oce, wce, xce, vce, kce, Pce, Ice, Dce, Lce, Mce, Nce, Uce, Fce, $ce, zce, Hce, jce, Bce, Kce, Gce, Wce, Vce, qce, Yce, Zce, Jce, Xce, Qce, eue, tue, nue, rue, oue, sue, iue, aue, lue, cue, uue, due, pue, fue, mue, gue, hue, _ue, yue, Sue, Eue, bue, Cue, Aue, Rue, Tue, Oue, wue, xue, vue, kue, Pue, Iue, Due, Lue, Mue, Nue, Uue, Fue, $ue, zue, Hue, jue, Bue, Kue, Gue, Wue, Vue, que, Yue, Zue, Jue, Xue, Que, ede, tde, nde, rde, ode, sde, ide, ade, lde, cde, ude, dde, pde, fde, mde, gde, hde, _de, yde, Sde, Ede, bde, Cde, Ade, Rde, Tde, Ode, wde, xde, vde, kde, Pde, Ide, Dde, Lde, Mde, Nde, Ude, Fde, $de, zde, Hde, jde, Bde, Kde, Gde, Wde, Vde, qde, Yde, Zde, Jde, Xde, Qde, epe, tpe, npe, rpe, ope, spe, ipe, ape, lpe, cpe, upe, dpe, ppe, fpe, mpe, gpe, hpe, _pe, ype, Spe, Epe, bpe, Cpe, Ape, pb, Rpe, Tpe, Ope, wpe, xpe, vpe, kpe, Ppe, Ipe, Dpe, Lpe, Mpe, Npe, Upe, Fpe, $pe, zpe, Hpe, jpe, Bpe, Kpe, Gpe, Wpe, Vpe, qpe, Ype, Zpe, Jpe, Xpe, Qpe, efe, tfe, nfe, rfe, ofe, sfe, ife, afe, lfe, cfe, ufe, dfe, pfe, ffe, mfe, gfe, hfe, _fe, yfe, Sfe, Efe, bfe, Cfe, Afe, Rfe, Tfe, Ofe, wfe, xfe, vfe, kfe, Pfe, Ife, Dfe, Lfe, Mfe, Nfe, Ufe, Ffe, $fe, zfe, Hfe, jfe, Bfe, Kfe, Gfe, Wfe, Vfe, qfe, Yfe, Zfe, Jfe, Xfe, Qfe, eme, tme, nme, rme, ome, sme, ime, ame, lme, cme, ume, dme, pme, fme, mme, gme, hme, _me, yme, Sme, Eme, bme, Cme, Ame, Rme, Tme, Ome, wme, xme, vme, kme, Pme, Ime, Dme, Lme, Mme, Nme, Ume, Fme, $me, zme, Hme, jme, Bme, Kme, Gme, Wme, Vme, qme, Yme, Zme, Jme, Xme, Qme, ege, tge, nge, rge, oge, sge, ige, age, lge, cge, uge, dge, pge, fge, mge, gge, hge, _ge, yge, Sge, Ege, bge, Cge, Age, Rge, Tge, Oge, wge, xge, vge, kge, Pge, Ige, Dge, Lge, Mge, Nge, Uge, Fge, $ge, zge, Hge, jge, Bge, Kge, Gge, Wge, Vge, qge, Yge, Zge, Jge, Xge, Qge, ehe, the, nhe, rhe, ohe, she, ihe, ahe, lhe, che, uhe, dhe, phe, fhe, mhe, ghe, hhe, _he, yhe, She, Ehe, bhe, Che, Ahe, Rhe, The, Ohe, whe, xhe, vhe, khe, Phe, Ihe, Dhe, Lhe, Mhe, Nhe, Uhe, Fhe, $he, zhe, Hhe, jhe, Bhe, Khe, Ghe, Whe, Vhe, qhe, Yhe, Zhe, Jhe, Xhe, Qhe, e_e, t_e, n_e, r_e, o_e, s_e, i_e, a_e, l_e, c_e, u_e, d_e, p_e, f_e, m_e, g_e, h_e, __e, y_e, S_e, E_e, b_e, C_e, A_e, R_e, T_e, O_e, w_e, x_e, v_e, k_e, P_e, I_e, D_e, L_e, M_e, N_e, U_e, F_e, $_e, z_e, H_e, j_e, B_e, K_e, G_e, W_e, V_e, q_e, Y_e, Z_e, J_e, X_e, Q_e, eye, tye, nye, rye, oye, sye, iye, aye, lye, cye, uye, dye, pye, fye, mye, gye, hye, _ye, yye, Sye, Eye, bye, Cye, Aye, Rye, Tye, Oye, wye, xye, vye, kye, Pye, Iye, Dye, Lye, Mye, Nye, Uye, Fye, $ye, zye, Hye, jye, Bye, Kye, Gye, Wye, Vye, qye, Yye, Zye, Jye, Xye, Qye, eSe, tSe, nSe, rSe, oSe, sSe, iSe, aSe, lSe, cSe, uSe, dSe, pSe, fSe, mSe, gSe, hSe, _Se, ySe, SSe, ESe, bSe, CSe, ASe, RSe, TSe, OSe, wSe, xSe, vSe, kSe, PSe, ISe, DSe, LSe, MSe, NSe, USe, FSe, $Se, zSe, HSe, jSe, wD, BSe, KSe, GSe, WSe, VSe, qSe, YSe, ZSe, JSe, XSe, QSe, eEe, tEe, nEe, rEe, oEe, sEe, iEe, aEe, lEe, cEe, uEe, dEe, pEe, fEe, mEe, gEe, hEe, _Ee, yEe, SEe, EEe, bEe, CEe, AEe, REe, TEe, OEe, wEe, xEe, vEe, kEe, PEe, IEe, DEe, LEe, MEe, NEe, UEe, FEe, $Ee, zEe, HEe, jEe, BEe, KEe, GEe, WEe, VEe, qEe, YEe, ZEe, JEe, XEe, QEe, ebe, tbe, nbe, rbe, obe, sbe, ibe, abe, lbe, cbe, ube, pbe, fbe, mbe, an, hbe, tnt, _be, nnt, ybe, kD, Sbe, Ebe, DD, Pbe, Ibe, Dbe, $be, En, Gbe, Wbe, ND, Knt, Gnt, Lo, tL, nL, tCe, im, nCe, Du, rCe, oCe, sL, aL, iCe, Tb, aCe, lCe, qnt, pL, uL, xb, SL, EL, pm, kb, uCe, Ob, xs, pCe, fCe, LL, Mb, ML, Zr, Bu, Cn, _Ce, Ub, NL, UL, FL, Ku, Gu, zb, Wu, Hb, Vu, qu, Yu, Zu, ECe, bCe, _m, ym, zL, HL, jL, BL, KL, GL, WL, VL, qL, YL, ZL, JL, XL, QL, tM, nM, Bb, rM, ACe, sM, iM, aM, lM, cM, uM, dM, pM, fM, mM, _M, Kb, Ju, yM, SM, EM, bM, CM, jt, Gb, Sm, Wb, Vb, AM, RM, TM, OM, wM, Xu, xM, vM, kM, PM, IM, DM, LM, qb, Ir, Ke, WM, Qu, rt, Jb, Xb, Qb, VM, qM, wCe, eC, tC, nC, rC, oC, sC, iC, aC, YM, ZM, JM, XM, lC, PCe, cC, uC, dC, pC, fC, Cm, mC, gC, hC, Am, _C, yC, SC, EC, bC, CC, AC, MCe, RC, rN, Rm, TC, OC, wC, xC, vC, kC, Tm, PC, IC, DC, LC, MC, NC, Om, oN, UC, FC, $C, sN, aN, HC, iN, cN, ed, vm, td, wm, xm, $Ce, HCe, uN, dN, Dr, SN, hN, EN, sd, cl, ul, bN, ON, wN, xN, vN, CN, AN, RN, KCe, GCe, WCe, kN, zA, HA, jA, BA, KA, GA, WA, VA, qA, YA, ZA, JA, XA, QA, eR, $A, tR, nR, rR, oR, sR, iR, aR, lR, cR, Um, uR, VN, tAe, Yn, qN, YN, ZN, JN, XN, QN, eU, tU, nU, rU, oU, sU, Je, lU, mR, Et, gR, cU, uU, dU, WAe, VAe, $m, qAe, YAe, ZAe, JAe, XAe, QAe, eRe, tRe, nRe, rRe, oRe, sRe, iRe, aRe, lRe, cRe, hR, uRe, pU, dRe, pRe, fRe, mRe, gRe, ud, fU, hRe, _Re, pR, fR, yRe, SRe, pl, hU, bRe, CRe, RRe, _U, Bm, dd, xRe, vRe, PRe, yU, ur, SU, AU, NRe, URe, HRe, jRe, BRe, Wm, WRe, Mt, ZRe, Zi, IU, yst, MU, NU, UU, FU, nTe, rTe, $U, oTe, sTe, zU, iTe, aTe, jU, pTe, BU, mTe, GU, gTe, hTe, qm, WU, YU, yTe, ZU, ETe, CTe, RTe, TTe, md, JU, QU, e0, ITe, DU, DTe, LTe, MTe, FTe, zTe, i0, a0, _0, Eit, y0, uOe, mOe, A0, bOe, COe, yd, ROe, R0, xOe, N0, VOe, qOe, jat, MR, Swe, Nwe, Ne, uF, ee, Ho, z2, Zn, qwe, Is, Ywe, ig, _n, ye, _l, An, jR, BR, Xi, Rd, le, Mr, dF, De, Zwe, Jwe, Xwe, Qwe, exe, txe, nxe, rxe, oxe, KR, sxe, ixe, axe, lxe, cxe, uxe, pF, dxe, Bo, Sl, El, ag, Od, lg, wd, xd, cg, Qi, Ko, ug, Jr, Rt, vd, jo, WR, kd, Go, dg, pg, bl, Td, Pd, Id, ea, Dd, Cl, Qr, Xr, Ds, Ld, Md, fg, VR, mg, Nd, Qlt, j, ect, tct, nct, rct, oct, sct, ict, act, lct, cct, uct, dct, pct, fct, gF, mct, gct, hct, _ct, yct, Sct, Ect, bct, Cct, Act, Rct, Tct, Oct, wct, xct, vct, kct, Pct, Ict, Sxe, Exe, Us, Sg, Gt, SF, EF, Qct, Cxe, Axe, ZR, Jn, Ud, un, pr, fr, dn, Eg, CF, AF, XR, ue, QR, eut, tut, bg, Rxe, Cg, Txe, $d, Al, OF, Oxe, wxe, xxe, vxe, kxe, Pxe, eT, Ixe, Dxe, tT, Ag, Lxe, Mxe, Rg, Nxe, zd, Hd, Uxe, jd, Rl, Fxe, Bd, Tg, Og, wg, nut, xg, vg, kg, wF, xF, vF, nT, kF, Kd, Tl, PF, $xe, Pg, zxe, Ig, Hxe, rT, jxe, Dg, Bxe, Kxe, Gxe, Wxe, Vxe, qxe, Yxe, Zxe, Jxe, Xxe, Lg, Qxe, eve, Mg, oT, sT, iT, tve, nve, rve, aT, ove, sve, ive, ave, lve, IF, Ng, cve, Ug, rut, uve, Ol, dve, out, Gd, pve, lT, fve, mve, gve, hve, _ve, yve, Sve, yg, Eve, bve, Cve, Wd, cT, Ave, Rve, Tve, Ove, wve, xve, vve, kve, Pve, Ive, Dve, Lve, Mve, Nve, Uve, Fve, $ve, zve, wl, Hve, jve, Bve, Fg, Kve, Gve, Wve, uT, Vve, sut, iut, aut, lut, cut, uut, Zve, yK, SK, CK, Yo, n0e, a0e, l0e, c0e, u0e, d0e, vK, UK, f0e, m0e, g0e, h0e, Ae, _0e, Mh, la, wO, Jo, zK, HK, jK, BK, KK, GK, xO, vO, CO, IK, A0e, R0e, O0e, WK, AO, Lh, TO, OO, x0e, v0e, DK, si, Nh, B0e, Uh, K0e, G0e, Ut, W0e, tn, Yl, q0e, ot, c1, Y0e, Z0e, lp, u1, X0e, Q0e, d1, tFe, nFe, p1, er, Wt, sFe, Zl, aFe, f1, m1, h1, _1, cFe, y1, pFe, E1, gFe, _Fe, w1, mo, ai, AFe, RFe, x1, v1, k1, P1, li, I1, D1, L1, M1, Pt, LFe, MFe, NFe, UFe, Ql, $Fe, Fh, N1, U1, HFe, jFe, Xo, KFe, GFe, WFe, VFe, qFe, YFe, ZFe, F1, $1, Gn, e$e, ci, t$e, Qo, z1, H1, o$e, s$e, i$e, j1, l$e, c$e, B1, d$e, K1, MO, G1, W1, ui, V1, q1, Y1, Z1, ca, E$e, J1, go, C$e, X1, Q1, zh, eG, Hh, w$e, x$e, jh, k$e, rc, tG, oc, D$e, L$e, M$e, N$e, U$e, F$e, $$e, z$e, H$e, j$e, B$e, K$e, G$e, nG, NO, rG, sc, Bh, oG, Kh, J$e, X$e, sG, Q$e, ic, iG, tze, UO, aG, rze, oze, sze, es, lG, dG, cG, aze, uG, lze, cze, ho, uze, dze, di, fze, ac, gze, hze, _ze, yze, Sze, Eze, bze, Cze, Aze, Rze, Tze, Oze, wze, xze, vze, kze, Pze, Ize, Dze, Lze, Mze, Nze, Uze, Fze, lt, pG, lc, fG, dp, Hze, FO, jze, _o, mG, Bze, cc, Kze, Gze, Yh, Vze, uc, Zh, Zze, gG, Jze, Xze, hG, yo, So, pp, rHe, oHe, sHe, _G, aHe, Jh, lHe, Xh, cHe, pi, uHe, Qh, yG, dHe, SG, EG, bG, CG, pHe, fHe, mHe, gHe, hHe, ua, ts, _He, AG, RG, e_, yHe, TG, OG, dc, EHe, bHe, xG, t_, vG, n_, kG, wHe, xHe, pc, kHe, PG, PHe, IG, DHe, LHe, MHe, DG, Sr, UHe, tr, fi, LG, MG, NG, r_, KHe, GHe, UG, fc, FG, $G, zG, Eo, XHe, mc, mi, eje, tje, gc, HG, o_, sje, hc, ije, aje, s_, jG, cje, uje, BG, bo, _c, i_, hje, rAt, VG, yje, ZG, Oje, QG, Dje, Lje, tW, nW, rW, oW, Sc, iW, HO, aW, l_, sW, Hje, hi, lW, mp, Ec, c_, jje, dW, cW, da, SW, Xje, RW, eBe, TW, d_, OW, qRt, sBe, xW, PW, aBe, cBe, YRt, gp, Co, bc, m_, pBe, fBe, zr, NW, hBe, __, y_, S_, _p, zW, UW, EBe, FW, $W, yp, Cc, C_, A_, HW, TBe, jW, R_, BW, xBe, vBe, kBe, KW, PBe, IBe, T_, Sp, Er, GW, WW, qW, YW, ZW, O_, JW, HBe, XW, jBe, BBe, KBe, QW, WBe, w_, eV, tV, nV, ZBe, rV, oV, sV, iV, aV, nKe, rKe, lV, cV, iKe, uV, dV, pV, fV, cKe, uKe, dKe, pKe, fKe, mKe, gKe, hKe, _Ke, yKe, SKe, EKe, bKe, CKe, AKe, RKe, TKe, OKe, wKe, mV, vKe, gV, hV, PKe, _V, IKe, yV, SV, LKe, EV, MKe, NKe, UKe, bV, FKe, $Ke, zKe, HKe, CV, jKe, BKe, KKe, AV, GKe, WKe, VKe, qKe, YKe, ZKe, JKe, XKe, QKe, e1e, t1e, n1e, r1e, o1e, s1e, i1e, st, RV, TV, OV, wV, u1e, d1e, v_, xV, vV, kV, IV, DV, k_, _1e, y1e, S1e, E1e, LV, MV, A1e, NV, UV, FV, O1e, zV, x1e, k1e, jV, fa, YV, z1e, H1e, QV, W1e, Ep, tw, uGe, fGe, mGe, gGe, hGe, bGe, CGe, gkt, wGe, m2, g2, Ac, h2, kGe, D_, MGe, NGe, UGe, FGe, E2, vkt, kkt, rw, zGe, HGe, jGe, ss, Rc, N_, R2, T2, BGe, KGe, GGe, WGe, U_, Tc, F_, Si, ow, z_, VGe, qGe, sw, ma, ZGe, v2, $kt, zkt, k2, P2, I2, D2, JGe, L2, M2, N2, U2, XGe, QGe, iw, eWe, $2, nWe, rWe, Qkt, z22, H2, oPt, sPt, PPt, IPt, DPt, hWe, H_, rIt, oIt, _We, xc, Ei, yWe, q2, SWe, EWe, Z2, mw, J2, bWe, CWe, X2, AWe, RWe, TWe, OWe, hw, _w, xWe, vWe, yw, kWe, B_, sIt, Op, PWe, IWe, uIt, DWe, LWe, RIt, MWe, NWe, TIt, MIt, NIt, eq, bw, $We, jWe, nq, WWe, qWe, aq, wp, lq, K_, Cw, _a3, JWe, dq, XWe, nDt, xp, is, mq, wn, lDt, cDt, uDt, QWe, _q, tVe, vc, bq, Iw, oVe, Dq, sVe, iVe, Lq, Mq, aVe, Mw, Nq, Uq, QDt, cVe, uVe, dVe, or, Sa, Aq, Rq, xw, vw, Nw, Uw, fVe, mVe, hVe, Fw, _Ve, yVe, q_, $w, Wn, EVe, eLt, Hq, bVe, jq, Bq, Kq, CVe, zw, AVe, RVe, TVe, OVe, Hw, Gq, Tq, wVe, Wq, Vq, qq, Yq, Oq, xVe, vVe, jw, Zq, kVe, PVe, IVe, Jq, DVe, LVe, MVe, NVe, Xq, Qq, eY, tY, FVe, tLt, nY, oY, zVe, GVe, kp, Kw, nLt, rLt, oLt, VVe, Gw, Y_, ww, cY, qVe, ZVe, uY, JVe, XVe, QVe, e2e, t2e, r2e, s2e, i2e, a2e, l2e, c2e, f2e, sLt, kw, iLt, m2e, xq, kc, aLt, lLt, fY, g2e, h2e, _2e, cLt, y2e, S2e, uLt, dLt, E2e, pLt, J_, Ic, b2e, C2e, qw, bLt, CLt, ALt, X_, A2e, T2e, Qw, CY, Lp, ry, x2e, fMt, v2e, k2e, ox, sx, ix, ax, oy, sy, UY, P2e, I2e, U2e, z2e, H2e, Ci, j2e, RY, TY, OY, ty, $Y, B2e, K2e, G2e, W2e, V2e, q2e, Y2e, Z2e, yn, cx, ex, ey, Ea, eqe, mMt, nqe, Dp, wY, rqe, xY, oqe, sqe, iy, iqe, vY, dx, ly, Ai, WY, Lc, Mc, aqe, cy, IY, pqe, fqe, eZ, tZ, mqe, xMt, gqe, hqe, _qe, vMt, kMt, PMt, IMt, Sx, Ex, yqe, Sqe, DMt, Cx, oZ, Ax, sZ, iZ, aZ, lZ, cZ, uZ, Tx, Cqe, ZMt, Ox, Aqe, wx, xx, Rqe, JMt, XMt, Tqe, vx, kx, Px, QMt, dZ, Oqe, wqe, xqe, vqe, eNt, pZ, fZ, Ix, mZ, gZ, kqe, Pqe, Iqe, Dqe, Mqe, yZ, Uqe, kNt, bZ, zNt, CZ, py, Lx, Fqe, $qe, zqe, YNt, ZNt, AZ, JNt, XNt, QNt, Hqe, uUt, Nc, Kqe, Np, Gqe, IZ, LZ, Zqe, aYe, zUt, GZ, VZ, gYe, AYe, N0t, U0t, OYe, vYe, kYe, H0t, j0t, J0t, PYe, IYe, dFt, DYe, pFt, b4, hy, _y, Fp, Bx, C4, A4, R4, yy, Ti, T4, xn, jx, cs, YYe, ZYe, C$t, XYe, eZe, rZe, sZe, _Ze, L4, bZe, CZe, F4, H4, G4, Oy, DZe, Wp, n4e, rv, R9, c4e, x9, Ry, k9, A4e, T4e, z9, z4e, W4e, Wc, G9, j9, V4e, Y4e, X4e, Q4e, AHt, m9e, RHt, THt, g9e, OHt, h9e, wHt, _9e, gv, y9e, vHt, Q9, e62, S9e, t6, n6, E9e, b9e, r6, o6, C9e, A9e, kHt, PHt, d6, ky, S6, E6, w6, us, x6, v6, q9e, ef, tf, Y9e, Z9e, k6, kn, J9e, X9e, Q9e, xi, e6e, t6e, I6, nBt, n6e, M6, N6, U6, r6e, o6e, F6, s6e, i6e, Rv, a6e, My, Tv, $6, Ov, xv, l6e, B6, vv, K6, Uy, G6, NBt, Q6, JBt;
|
|
35149
|
+
var I3, D3, Wy, L3, Wv, N3, U3, Vv, X, F3, Ar, H3, j3, B3, ht, _t, Zd, RT, ke, $e, Vo, Xd, sz, IT, DT, Qd, Az, gr, Mz, Fz, $T, Hz, ep, tp, sh, np, lh, yH, VT, vH, MH, FH, qH, ZH, ej, nj, oj, ij, cj, pj, hj, yj, bj, Aj, _h, xj, Pj, Lj, Nj, XT, QT, Wj, Jj, Qj, iB, cB, eO, mB, hB, SB, CB, TB, xB, PB, LB, NB, FB, zB, BB, GB, YB, XB, QB, nO, uK, fK, _K, JE, XE, ub, db, fb, mb, gb, hb, Wh, qh, b_, Yv, G3, W3, y3e, V3, q3, Pe, ek, Di, Yy, Zy, Xy, hs, ik, tS, ck, oS, iS, sJ, aS, lS, cS, uS, dS, pS, fS, mS, gS, hS, _S, yS, SS, ES, pk, bS, fk, CS, aJ, lJ, AS, RS, TS, OS, wS, xS, vS, kS, PS, IS, DS, mk, cJ, e5e, _f, Ma, gJ, $S, Ek, SJ, Mk, Nk, Sf, Ef, AJ, Uk, Fk, O5e, Rk, RJ, zS, OJ, xk, IJ, qS, DJ, ZS, LJ, Hk, jk, pu, Es, Wk, qk, JS, XS, QS, eE, Jk, tE, nE, rE, oE, sE, iE, aE, lE, cE, uE, nP, e8e, t8e, n8e, r8e, o8e, FJ, kf, fE, aP, mE, gE, cP, HJ, BJ, pP, dP, VJ, qJ, YJ, Dt, XJ, QJ, SP, V8e, t5, Ht, He, _5, za, b5, Or, Ff, TE, wE, m7e, PP, L5, M5, xE, N5, U5, F5, W5, HP, jf, $P, GP, V5, _7e, Y5, VP, wr, Eu, qP, Ka, x7e, v7e, LE, k7e, P7e, I7e, D7e, Su, L7e, X5, Q5, eX, WP, M7e, N7e, nX, lX, cX, uX, dX, pX, fX, iI, mX, gX, hX, _X, yX, SX, EX, bX, rI, _I, Va, Ui, cI, uI, Jf, Rs, J7e, X7e, xX, dI, Qf, vX, kX, PX, IX, cr, xr, DX, yI, KE, SI, $E, zE, EI, bI, As, LX, MX, CI, Tu, HE, pI, GE, AI, NX, BE, NE, fI, UE, HX, jX, GX, WX, OI, VX, Q7e, eQe, qX, YX, Xf, JX, xI, tQe, nQe, XX, YE, n8, r8, PI, o8, s8, i8, II, a8, c8, d8, FI, $I, m8, b8, C8, A8, R8, T8, u, O8, w8, x8, v8, k8, P8, I8, D8, L8, M8, N8, U8, F8, $8, z8, H8, j8, B8, K8, G8, W8, V8, q8, Y8, Z8, J8, X8, Q8, e7, t7, n7, r7, o7, s7, i7, a7, l7, c7, u7, d7, p7, f7, m7, g7, h7, _7, y7, S7, E7, b7, C7, A7, R7, T7, O7, w7, x7, v7, k7, P7, I7, D7, L7, M7, N7, U7, F7, $7, z7, H7, j7, B7, K7, G7, W7, V7, q7, Y7, Z7, J7, X7, Q7, eQ, tQ, nQ, rQ, oQ, sQ, iQ, aQ, lQ, cQ, uQ, dQ, pQ, fQ, mQ, gQ, hQ, _Q, yQ, SQ, EQ, bQ, CQ, AQ, RQ, TQ, OQ, wQ, xQ, vQ, kQ, PQ, IQ, DQ, LQ, MQ, NQ, UQ, FQ, $Q, zQ, HQ, jQ, BQ, KQ, GQ, WQ, VQ, qQ, ZQ, HQe, YI, em, KQe, GQe, Ja, WQe, VQe, qQe, YQe, ZI, JI, eb, XI, tee, QI, eD, tD, nee, tb, nb, rb, ree, nD, rD, oee, XQe, see, QQe, iee, aee, oD, eet, lee, cee, uee, dee, pee, fee, mee, tet, Os, sb, Xa, gee, hee, _ee, met, Cee, yet, Ree, Tee, lD, aD, Oee, dD, xee, mD, gD, ED, Bee, CD, AD, Xee, vu, tl, ete, tte, nte, rte, ote, ste, ite, ate, lte, cte, ute, dte, pte, fte, mte, gte, hte, _te, yte, Ste, Ete, bte, Cte, Ate, Rte, Tte, Ote, wte, xte, vte, kte, Pte, Ite, Dte, Lte, Mte, Nte, Ute, Fte, $te, zte, Hte, jte, Bte, Kte, Gte, Wte, Vte, qte, Yte, Zte, Jte, Xte, Qte, ene, tne, nne, rne, one, sne, ine, ane, lne, cne, une, dne, pne, fne, mne, gne, hne, _ne, yne, Sne, Ene, bne, Cne, Ane, Rne, Tne, One, wne, xne, vne, kne, Pne, Ine, Dne, Lne, Mne, Nne, Une, Fne, $ne, zne, Hne, jne, Bne, Kne, Gne, Wne, Vne, qne, Yne, Zne, Jne, Xne, Qne, ere, tre, nre, rre, ore, sre, ire, are, lre, cre, ure, dre, pre, fre, mre, gre, hre, _re, yre, Sre, Ere, bre, Cre, Are, Rre, Tre, Ore, wre, xre, vre, kre, Pre, Ire, Dre, Lre, Mre, Nre, Ure, Fre, $re, zre, Hre, jre, Bre, Kre, Gre, Wre, Vre, qre, Yre, Zre, Jre, Xre, Qre, eoe, toe, noe, roe, ooe, soe, ioe, aoe, loe, coe, uoe, doe, poe, foe, moe, goe, hoe, _oe, yoe, Soe, Eoe, boe, Coe, Aoe, Roe, Toe, Ooe, woe, xoe, voe, koe, Poe, Ioe, Doe, Loe, Moe, Noe, Uoe, Foe, $oe, zoe, Hoe, joe, Boe, Koe, Goe, Woe, Voe, qoe, Yoe, Zoe, Joe, Xoe, Qoe, ese, tse, nse, rse, ose, sse, ise, ase, lse, cse, use, dse, pse, fse, mse, gse, hse, _se, yse, Sse, Ese, bse, Cse, Ase, Rse, Tse, Ose, wse, xse, vse, kse, Pse, Ise, Dse, Lse, Mse, Nse, Use, Fse, $se, zse, Hse, jse, Bse, Kse, Gse, Wse, Vse, qse, Yse, Zse, Jse, Xse, Qse, eie, tie, nie, rie, oie, sie, iie, aie, lie, cie, uie, die, pie, fie, mie, gie, hie, _ie, yie, Sie, Eie, bie, Cie, Aie, Rie, Tie, Oie, wie, xie, vie, kie, Pie, Iie, Die, Lie, Mie, Nie, Uie, Fie, $ie, zie, Hie, jie, Bie, Kie, Gie, Wie, Vie, qie, Yie, Zie, Jie, Xie, Qie, eae, tae, nae, rae, oae, sae, iae, aae, lae, cae, uae, dae, pae, fae, mae, gae, hae, _ae, yae, Sae, Eae, bae, Cae, Aae, Rae, Tae, Oae, wae, xae, vae, kae, Pae, Iae, Dae, Lae, Mae, Nae, Uae, Fae, $ae, zae, Hae, jae, Bae, Kae, Gae, Wae, Vae, qae, Yae, Zae, Jae, Xae, Qae, ele, tle, nle, rle, ole, sle, ile, ale, lle, cle, ule, dle, ple, fle, mle, gle, hle, _le, yle, Sle, Ele, ble, Cle, Ale, Rle, Tle, Ole, wle, xle, vle, kle, Ple, Ile, Dle, Lle, Mle, Nle, Ule, Fle, $le, zle, Hle, jle, Ble, Kle, Gle, Wle, Vle, qle, Yle, Zle, Jle, Xle, Qle, ece, tce, nce, rce, oce, sce, ice, ace, lce, cce, uce, dce, pce, fce, mce, gce, hce, _ce, yce, Sce, Ece, bce, Cce, Ace, Rce, Tce, Oce, wce, xce, vce, kce, Pce, Ice, Dce, Lce, Mce, Nce, Uce, Fce, $ce, zce, Hce, jce, Bce, Kce, Gce, Wce, Vce, qce, Yce, Zce, Jce, Xce, Qce, eue, tue, nue, rue, oue, sue, iue, aue, lue, cue, uue, due, pue, fue, mue, gue, hue, _ue, yue, Sue, Eue, bue, Cue, Aue, Rue, Tue, Oue, wue, xue, vue, kue, Pue, Iue, Due, Lue, Mue, Nue, Uue, Fue, $ue, zue, Hue, jue, Bue, Kue, Gue, Wue, Vue, que, Yue, Zue, Jue, Xue, Que, ede, tde, nde, rde, ode, sde, ide, ade, lde, cde, ude, dde, pde, fde, mde, gde, hde, _de, yde, Sde, Ede, bde, Cde, Ade, Rde, Tde, Ode, wde, xde, vde, kde, Pde, Ide, Dde, Lde, Mde, Nde, Ude, Fde, $de, zde, Hde, jde, Bde, Kde, Gde, Wde, Vde, qde, Yde, Zde, Jde, Xde, Qde, epe, tpe, npe, rpe, ope, spe, ipe, ape, lpe, cpe, upe, dpe, ppe, fpe, mpe, gpe, hpe, _pe, ype, Spe, Epe, bpe, Cpe, Ape, pb, Rpe, Tpe, Ope, wpe, xpe, vpe, kpe, Ppe, Ipe, Dpe, Lpe, Mpe, Npe, Upe, Fpe, $pe, zpe, Hpe, jpe, Bpe, Kpe, Gpe, Wpe, Vpe, qpe, Ype, Zpe, Jpe, Xpe, Qpe, efe, tfe, nfe, rfe, ofe, sfe, ife, afe, lfe, cfe, ufe, dfe, pfe, ffe, mfe, gfe, hfe, _fe, yfe, Sfe, Efe, bfe, Cfe, Afe, Rfe, Tfe, Ofe, wfe, xfe, vfe, kfe, Pfe, Ife, Dfe, Lfe, Mfe, Nfe, Ufe, Ffe, $fe, zfe, Hfe, jfe, Bfe, Kfe, Gfe, Wfe, Vfe, qfe, Yfe, Zfe, Jfe, Xfe, Qfe, eme, tme, nme, rme, ome, sme, ime, ame, lme, cme, ume, dme, pme, fme, mme, gme, hme, _me, yme, Sme, Eme, bme, Cme, Ame, Rme, Tme, Ome, wme, xme, vme, kme, Pme, Ime, Dme, Lme, Mme, Nme, Ume, Fme, $me, zme, Hme, jme, Bme, Kme, Gme, Wme, Vme, qme, Yme, Zme, Jme, Xme, Qme, ege, tge, nge, rge, oge, sge, ige, age, lge, cge, uge, dge, pge, fge, mge, gge, hge, _ge, yge, Sge, Ege, bge, Cge, Age, Rge, Tge, Oge, wge, xge, vge, kge, Pge, Ige, Dge, Lge, Mge, Nge, Uge, Fge, $ge, zge, Hge, jge, Bge, Kge, Gge, Wge, Vge, qge, Yge, Zge, Jge, Xge, Qge, ehe, the, nhe, rhe, ohe, she, ihe, ahe, lhe, che, uhe, dhe, phe, fhe, mhe, ghe, hhe, _he, yhe, She, Ehe, bhe, Che, Ahe, Rhe, The, Ohe, whe, xhe, vhe, khe, Phe, Ihe, Dhe, Lhe, Mhe, Nhe, Uhe, Fhe, $he, zhe, Hhe, jhe, Bhe, Khe, Ghe, Whe, Vhe, qhe, Yhe, Zhe, Jhe, Xhe, Qhe, e_e, t_e, n_e, r_e, o_e, s_e, i_e, a_e, l_e, c_e, u_e, d_e, p_e, f_e, m_e, g_e, h_e, __e, y_e, S_e, E_e, b_e, C_e, A_e, R_e, T_e, O_e, w_e, x_e, v_e, k_e, P_e, I_e, D_e, L_e, M_e, N_e, U_e, F_e, $_e, z_e, H_e, j_e, B_e, K_e, G_e, W_e, V_e, q_e, Y_e, Z_e, J_e, X_e, Q_e, eye, tye, nye, rye, oye, sye, iye, aye, lye, cye, uye, dye, pye, fye, mye, gye, hye, _ye, yye, Sye, Eye, bye, Cye, Aye, Rye, Tye, Oye, wye, xye, vye, kye, Pye, Iye, Dye, Lye, Mye, Nye, Uye, Fye, $ye, zye, Hye, jye, Bye, Kye, Gye, Wye, Vye, qye, Yye, Zye, Jye, Xye, Qye, eSe, tSe, nSe, rSe, oSe, sSe, iSe, aSe, lSe, cSe, uSe, dSe, pSe, fSe, mSe, gSe, hSe, _Se, ySe, SSe, ESe, bSe, CSe, ASe, RSe, TSe, OSe, wSe, xSe, vSe, kSe, PSe, ISe, DSe, LSe, MSe, NSe, USe, FSe, $Se, zSe, HSe, jSe, wD, BSe, KSe, GSe, WSe, VSe, qSe, YSe, ZSe, JSe, XSe, QSe, eEe, tEe, nEe, rEe, oEe, sEe, iEe, aEe, lEe, cEe, uEe, dEe, pEe, fEe, mEe, gEe, hEe, _Ee, yEe, SEe, EEe, bEe, CEe, AEe, REe, TEe, OEe, wEe, xEe, vEe, kEe, PEe, IEe, DEe, LEe, MEe, NEe, UEe, FEe, $Ee, zEe, HEe, jEe, BEe, KEe, GEe, WEe, VEe, qEe, YEe, ZEe, JEe, XEe, QEe, ebe, tbe, nbe, rbe, obe, sbe, ibe, abe, lbe, cbe, ube, pbe, fbe, mbe, an, hbe, tnt, _be, nnt, ybe, DD, Pbe, Ibe, Dbe, $be, En, Wbe, ND, Knt, Gnt, Lo, tL, nL, tCe, im, nCe, Du, rCe, oCe, sL, aL, iCe, Tb, aCe, lCe, qnt, pL, uL, xb, SL, EL, pm, kb, uCe, Ob, xs, pCe, fCe, LL, Mb, ML, Zr, Bu, Cn, _Ce, Ub, NL, UL, FL, Ku, Gu, zb, Wu, Hb, Vu, qu, Yu, Zu, ECe, bCe, _m, ym, zL, HL, jL, BL, KL, GL, WL, VL, qL, YL, ZL, JL, XL, QL, tM, nM, Bb, rM, ACe, sM, iM, aM, lM, cM, uM, dM, pM, fM, mM, _M, Kb, Ju, yM, SM, EM, bM, CM, jt, Gb, Sm, Wb, Vb, AM, RM, TM, OM, wM, Xu, xM, vM, kM, PM, IM, DM, LM, qb, Ir, Ke, WM, Qu, rt, Jb, Xb, Qb, VM, qM, wCe, eC, tC, nC, rC, oC, sC, iC, aC, YM, ZM, JM, XM, lC, PCe, cC, uC, dC, pC, fC, Cm, mC, gC, hC, Am, _C, yC, SC, EC, bC, CC, AC, MCe, RC, rN, Rm, TC, OC, wC, xC, vC, kC, Tm, PC, IC, DC, LC, MC, NC, Om, oN, UC, FC, $C, sN, aN, HC, iN, cN, ed, vm, td, wm, xm, $Ce, HCe, uN, dN, Dr, SN, hN, EN, sd, cl, ul, bN, ON, wN, xN, vN, CN, AN, RN, KCe, GCe, WCe, kN, zA, HA, jA, BA, KA, GA, WA, VA, qA, YA, ZA, JA, XA, QA, eR, $A, tR, nR, rR, oR, sR, iR, aR, lR, cR, Um, uR, VN, tAe, Yn, qN, YN, ZN, JN, XN, QN, eU, tU, nU, rU, oU, sU, Je, lU, mR, Et, gR, cU, uU, dU, WAe, VAe, $m, qAe, YAe, ZAe, JAe, XAe, QAe, eRe, tRe, nRe, rRe, oRe, sRe, iRe, aRe, lRe, cRe, hR, uRe, pU, dRe, pRe, fRe, mRe, gRe, ud, fU, hRe, _Re, pR, fR, yRe, SRe, pl, hU, bRe, CRe, RRe, _U, Bm, dd, xRe, vRe, PRe, yU, ur, SU, AU, NRe, URe, HRe, jRe, BRe, Wm, WRe, Mt, ZRe, Zi, IU, yst, MU, NU, UU, FU, nTe, rTe, $U, oTe, sTe, zU, iTe, aTe, jU, pTe, BU, mTe, GU, gTe, hTe, qm, WU, YU, yTe, ZU, ETe, CTe, RTe, TTe, md, JU, QU, e0, ITe, DU, DTe, LTe, MTe, FTe, zTe, i0, a0, _0, Eit, mOe, bOe, COe, N0, VOe, qOe, jat, MR, Swe, Nwe, Ne, uF, ee, Ho, z2, Zn, qwe, Is, Ywe, ig, _n, ye, _l, An, jR, BR, Xi, Rd, le, Mr, dF, De, Zwe, Jwe, Xwe, Qwe, exe, txe, nxe, rxe, oxe, KR, sxe, ixe, axe, lxe, cxe, uxe, pF, dxe, Bo, Sl, El, ag, Od, lg, wd, xd, cg, Qi, Ko, ug, Jr, Rt, vd, jo, WR, kd, Go, dg, pg, bl, Td, Pd, Id, ea, Dd, Cl, Qr, Xr, Ds, Ld, Md, fg, VR, mg, Nd, Qlt, j, ect, tct, nct, rct, oct, sct, ict, act, lct, cct, uct, dct, pct, fct, gF, mct, gct, hct, _ct, yct, Sct, Ect, bct, Cct, Act, Rct, Tct, Oct, wct, xct, vct, kct, Pct, Ict, Sxe, Exe, Us, Sg, Gt, SF, EF, Qct, Cxe, Axe, ZR, Jn, Ud, un, pr, fr, dn, Eg, CF, AF, XR, ue, QR, eut, tut, bg, Rxe, Cg, Txe, $d, Al, OF, Oxe, wxe, xxe, vxe, kxe, Pxe, eT, Ixe, Dxe, tT, Ag, Lxe, Mxe, Rg, Nxe, zd, Hd, Uxe, jd, Rl, Fxe, Bd, Tg, Og, wg, nut, xg, vg, kg, wF, xF, vF, nT, kF, Kd, Tl, PF, $xe, Pg, zxe, Ig, Hxe, rT, jxe, Dg, Bxe, Kxe, Gxe, Wxe, Vxe, qxe, Yxe, Zxe, Jxe, Xxe, Lg, Qxe, eve, Mg, oT, sT, iT, tve, nve, rve, aT, ove, sve, ive, ave, lve, IF, Ng, cve, Ug, rut, uve, Ol, dve, out, Gd, pve, lT, fve, mve, gve, hve, _ve, yve, Sve, yg, Eve, bve, Cve, Wd, cT, Ave, Rve, Tve, Ove, wve, xve, vve, kve, Pve, Ive, Dve, Lve, Mve, Nve, Uve, Fve, $ve, zve, wl, Hve, jve, Bve, Fg, Kve, Gve, Wve, uT, Vve, sut, iut, aut, lut, cut, uut, Zve, yK, SK, CK, Yo, n0e, a0e, l0e, c0e, u0e, d0e, vK, UK, f0e, m0e, g0e, h0e, Ae, _0e, Mh, la, wO, Jo, zK, HK, jK, BK, KK, GK, xO, vO, CO, IK, A0e, R0e, O0e, WK, AO, Lh, TO, OO, x0e, v0e, DK, si, Nh, B0e, Uh, K0e, G0e, Ut, W0e, tn, Yl, q0e, ot, c1, Y0e, Z0e, lp, u1, X0e, Q0e, d1, tFe, nFe, p1, er, Wt, sFe, Zl, aFe, f1, m1, h1, _1, cFe, y1, pFe, E1, gFe, _Fe, w1, mo, ai, AFe, RFe, x1, v1, k1, P1, li, I1, D1, L1, M1, Pt, LFe, MFe, NFe, UFe, Ql, $Fe, Fh, N1, U1, HFe, jFe, Xo, KFe, GFe, WFe, VFe, qFe, YFe, ZFe, F1, $1, Gn, e$e, ci, t$e, Qo, z1, H1, o$e, s$e, i$e, j1, l$e, c$e, B1, d$e, K1, MO, G1, W1, ui, V1, q1, Y1, Z1, ca, E$e, J1, go, C$e, X1, Q1, zh, eG, Hh, w$e, x$e, jh, k$e, rc, tG, oc, D$e, L$e, M$e, N$e, U$e, F$e, $$e, z$e, H$e, j$e, B$e, K$e, G$e, nG, NO, rG, sc, Bh, oG, Kh, J$e, X$e, sG, Q$e, ic, iG, tze, UO, aG, rze, oze, sze, es, lG, dG, cG, aze, uG, lze, cze, ho, uze, dze, di, fze, ac, gze, hze, _ze, yze, Sze, Eze, bze, Cze, Aze, Rze, Tze, Oze, wze, xze, vze, kze, Pze, Ize, Dze, Lze, Mze, Nze, Uze, Fze, lt, pG, lc, fG, dp, Hze, FO, jze, _o, mG, Bze, cc, Kze, Gze, Yh, Vze, uc, Zh, Zze, gG, Jze, Xze, hG, yo, So, pp, rHe, oHe, sHe, _G, aHe, Jh, lHe, Xh, cHe, pi, uHe, Qh, yG, dHe, SG, EG, bG, CG, pHe, fHe, mHe, gHe, hHe, ua, ts, _He, AG, RG, e_, yHe, TG, OG, dc, EHe, bHe, xG, t_, vG, n_, kG, wHe, xHe, pc, kHe, PG, PHe, IG, DHe, LHe, MHe, DG, Sr, UHe, tr, fi, LG, MG, NG, r_, KHe, GHe, UG, fc, FG, $G, zG, Eo, XHe, mc, mi, eje, tje, gc, HG, o_, sje, hc, ije, aje, s_, jG, cje, uje, BG, bo, _c, i_, hje, rAt, VG, yje, ZG, Oje, QG, Dje, Lje, tW, nW, rW, oW, Sc, iW, HO, aW, l_, sW, Hje, hi, lW, mp, Ec, c_, jje, dW, cW, da, SW, Xje, RW, eBe, TW, d_, OW, qRt, sBe, xW, PW, aBe, cBe, YRt, gp, Co, bc, m_, pBe, fBe, zr, NW, hBe, __, y_, S_, _p, zW, UW, EBe, FW, $W, yp, Cc, C_, A_, HW, TBe, jW, R_, BW, xBe, vBe, kBe, KW, PBe, IBe, T_, Sp, Er, GW, WW, qW, YW, ZW, O_, JW, HBe, XW, jBe, BBe, KBe, QW, WBe, w_, eV, tV, nV, ZBe, rV, oV, sV, iV, aV, nKe, rKe, lV, cV, iKe, uV, dV, pV, fV, cKe, uKe, dKe, pKe, fKe, mKe, gKe, hKe, _Ke, yKe, SKe, EKe, bKe, CKe, AKe, RKe, TKe, OKe, wKe, mV, vKe, gV, hV, PKe, _V, IKe, yV, SV, LKe, EV, MKe, NKe, UKe, bV, FKe, $Ke, zKe, HKe, CV, jKe, BKe, KKe, AV, GKe, WKe, VKe, qKe, YKe, ZKe, JKe, XKe, QKe, e1e, t1e, n1e, r1e, o1e, s1e, i1e, st, RV, TV, OV, wV, u1e, d1e, v_, xV, vV, kV, IV, DV, k_, _1e, y1e, S1e, E1e, LV, MV, A1e, NV, UV, FV, O1e, zV, x1e, k1e, jV, fa, YV, z1e, H1e, QV, W1e, Ep, tw, uGe, fGe, mGe, gGe, hGe, bGe, CGe, gkt, wGe, m2, g2, Ac, h2, kGe, D_, MGe, NGe, UGe, FGe, E2, vkt, kkt, rw, zGe, HGe, jGe, ss, Rc, N_, R2, T2, BGe, KGe, GGe, WGe, U_, Tc, F_, Si, ow, z_, VGe, qGe, sw, ma, ZGe, v2, $kt, zkt, k2, P2, I2, D2, JGe, L2, M2, N2, U2, XGe, QGe, iw, eWe, $2, nWe, rWe, Qkt, z22, H2, oPt, sPt, PPt, IPt, DPt, hWe, H_, rIt, oIt, _We, xc, Ei, yWe, q2, SWe, EWe, Z2, mw, J2, bWe, CWe, X2, AWe, RWe, TWe, OWe, hw, _w, xWe, vWe, yw, kWe, B_, sIt, Op, PWe, IWe, uIt, DWe, LWe, RIt, MWe, NWe, TIt, MIt, NIt, eq, bw, $We, jWe, nq, WWe, qWe, aq, wp, lq, K_, Cw, _a3, JWe, dq, XWe, nDt, xp, is, mq, wn, lDt, cDt, uDt, QWe, _q, tVe, vc, bq, Iw, oVe, Dq, sVe, iVe, Lq, Mq, aVe, Mw, Nq, Uq, QDt, cVe, uVe, dVe, or, Sa, Aq, Rq, xw, vw, Nw, Uw, fVe, mVe, hVe, Fw, _Ve, yVe, q_, $w, Wn, EVe, eLt, Hq, bVe, jq, Bq, Kq, CVe, zw, AVe, RVe, TVe, OVe, Hw, Gq, Tq, wVe, Wq, Vq, qq, Yq, Oq, xVe, vVe, jw, Zq, kVe, PVe, IVe, Jq, DVe, LVe, MVe, NVe, Xq, Qq, eY, tY, FVe, tLt, nY, oY, zVe, GVe, kp, Kw, nLt, rLt, oLt, VVe, Gw, Y_, ww, cY, qVe, ZVe, uY, JVe, XVe, QVe, e2e, t2e, r2e, s2e, i2e, a2e, l2e, c2e, f2e, sLt, kw, iLt, m2e, xq, kc, aLt, lLt, fY, g2e, h2e, _2e, cLt, y2e, S2e, uLt, dLt, E2e, pLt, J_, Ic, b2e, C2e, qw, bLt, CLt, ALt, X_, A2e, T2e, Qw, CY, Lp, ry, x2e, fMt, v2e, k2e, ox, sx, ix, ax, oy, sy, UY, P2e, I2e, U2e, z2e, H2e, Ci, j2e, RY, TY, OY, ty, $Y, B2e, K2e, G2e, W2e, V2e, q2e, Y2e, Z2e, yn, cx, ex, ey, Ea, eqe, mMt, nqe, Dp, wY, rqe, xY, oqe, sqe, iy, iqe, vY, dx, ly, Ai, WY, Lc, Mc, aqe, cy, IY, pqe, fqe, eZ, tZ, mqe, xMt, gqe, hqe, _qe, vMt, kMt, PMt, IMt, Sx, Ex, yqe, Sqe, DMt, Cx, oZ, Ax, sZ, iZ, aZ, lZ, cZ, uZ, Tx, Cqe, ZMt, Ox, Aqe, wx, xx, Rqe, JMt, XMt, Tqe, vx, kx, Px, QMt, dZ, Oqe, wqe, xqe, vqe, eNt, pZ, fZ, Ix, mZ, gZ, kqe, Pqe, Iqe, Dqe, Mqe, yZ, Uqe, kNt, bZ, zNt, CZ, py, Lx, Fqe, $qe, zqe, YNt, ZNt, AZ, JNt, XNt, QNt, Hqe, uUt, Nc, Kqe, Np, Gqe, IZ, LZ, Zqe, aYe, zUt, GZ, VZ, gYe, AYe, N0t, U0t, OYe, vYe, kYe, H0t, j0t, J0t, PYe, IYe, dFt, DYe, pFt, b4, hy, _y, Fp, Bx, C4, A4, R4, yy, Ti, T4, xn, jx, cs, YYe, ZYe, C$t, XYe, eZe, rZe, sZe, _Ze, L4, bZe, CZe, F4, H4, G4, Oy, DZe, Wp, n4e, rv, R9, c4e, x9, Ry, k9, A4e, T4e, z9, z4e, W4e, Wc, G9, j9, V4e, Y4e, X4e, Q4e, AHt, m9e, RHt, THt, g9e, OHt, h9e, wHt, _9e, gv, y9e, vHt, Q9, e62, S9e, t6, n6, E9e, b9e, r6, o6, C9e, A9e, kHt, PHt, d6, ky, S6, E6, w6, us, x6, v6, q9e, ef, tf, Y9e, Z9e, k6, kn, J9e, X9e, Q9e, xi, e6e, t6e, I6, nBt, n6e, M6, N6, U6, r6e, o6e, F6, s6e, i6e, Rv, a6e, My, Tv, $6, Ov, xv, l6e, B6, vv, K6, Uy, G6, NBt, Q6, JBt;
|
|
35732
35150
|
var init_sdk = __esm({
|
|
35733
35151
|
"node_modules/.pnpm/@anthropic-ai+claude-agent-sdk@0.3.312_@anthropic-ai+sdk@1.3.0_zod@4.6.7__@modelcontext_c168b5f06cc65c7000421490472fc64d/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs"() {
|
|
35734
35152
|
if (typeof Symbol.dispose !== "symbol") {
|
|
@@ -45415,9 +44833,6 @@ var init_sdk = __esm({
|
|
|
45415
44833
|
_be = {};
|
|
45416
44834
|
nnt = _b(_be, null);
|
|
45417
44835
|
ybe = /^[A-Za-z0-9_.:-]{1,128}$/;
|
|
45418
|
-
kD = 1e4;
|
|
45419
|
-
Sbe = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
45420
|
-
Ebe = /<command-name>(.*?)<\/command-name>/;
|
|
45421
44836
|
DD = class {
|
|
45422
44837
|
resolved = /* @__PURE__ */ new Map();
|
|
45423
44838
|
lookup(e10) {
|
|
@@ -45435,7 +44850,6 @@ var init_sdk = __esm({
|
|
|
45435
44850
|
Dbe = /* @__PURE__ */ new Set([".com", ".exe", ".bat", ".cmd"]);
|
|
45436
44851
|
$be = Fbe(Ube);
|
|
45437
44852
|
En = 65536;
|
|
45438
|
-
Gbe = /* @__PURE__ */ new Set(["sdk-cli", "sdk-ts", "sdk-py"]);
|
|
45439
44853
|
Wbe = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
45440
44854
|
ND = process.platform === "win32" ? Pu.O_RDONLY : Pu.O_RDONLY | Pu.O_NOFOLLOW | Pu.O_NONBLOCK;
|
|
45441
44855
|
Knt = Buffer.from('"type":"user"');
|
|
@@ -47468,16 +46882,9 @@ ${t.join(`
|
|
|
47468
46882
|
}
|
|
47469
46883
|
};
|
|
47470
46884
|
Eit = new Pe(() => new _0());
|
|
47471
|
-
y0 = 200;
|
|
47472
|
-
uOe = 6;
|
|
47473
46885
|
mOe = k(() => R({ customTitle: h() }));
|
|
47474
|
-
A0 = '"type":"continued-in"';
|
|
47475
46886
|
bOe = k(() => Bt({ type: N("continued-in"), continuedInSessionId: h() }));
|
|
47476
46887
|
COe = k(() => Bt({ type: N("assistant"), isApiErrorMessage: x().optional(), message: Bt({ stop_reason: h().nullish() }).optional() }));
|
|
47477
|
-
yd = '"parentUuid":';
|
|
47478
|
-
ROe = 16777216;
|
|
47479
|
-
R0 = 1048576;
|
|
47480
|
-
xOe = 32;
|
|
47481
46888
|
N0 = 4;
|
|
47482
46889
|
VOe = 50;
|
|
47483
46890
|
qOe = Array.from({ length: N0 - 1 }, () => VOe);
|
|
@@ -52525,10 +51932,10 @@ async function claudeTranscript(path, revision2) {
|
|
|
52525
51932
|
}
|
|
52526
51933
|
if (entries2.length > 2e5) throw new Error("Claude transcript exceeds the 200,000-record import limit.");
|
|
52527
51934
|
}
|
|
52528
|
-
const
|
|
52529
|
-
if (
|
|
51935
|
+
const metadata3 = sidecar(path);
|
|
51936
|
+
if (metadata3 && await metadataState(path)) {
|
|
52530
51937
|
try {
|
|
52531
|
-
entries2.push({ ...JSON.parse(await bytes(
|
|
51938
|
+
entries2.push({ ...JSON.parse(await bytes(metadata3, 64e3)), type: "agent_metadata" });
|
|
52532
51939
|
} catch {
|
|
52533
51940
|
partial2 = true;
|
|
52534
51941
|
}
|
|
@@ -52885,10 +52292,152 @@ var init_harness_formats = __esm({
|
|
|
52885
52292
|
}
|
|
52886
52293
|
});
|
|
52887
52294
|
|
|
52888
|
-
// server/adapters/claude.ts
|
|
52889
|
-
import {
|
|
52295
|
+
// server/adapters/claude-locations.ts
|
|
52296
|
+
import { lstat as lstat5, opendir } from "node:fs/promises";
|
|
52890
52297
|
import { homedir as homedir5 } from "node:os";
|
|
52891
|
-
import { join as join9 } from "node:path";
|
|
52298
|
+
import { basename as basename6, dirname as dirname4, join as join9, resolve as resolve3 } from "node:path";
|
|
52299
|
+
async function computerRoots(platform = process.platform) {
|
|
52300
|
+
if (platform !== "win32") return ["/"];
|
|
52301
|
+
const drives = Array.from({ length: 26 }, (_, i) => `${String.fromCharCode(65 + i)}:\\`);
|
|
52302
|
+
return (await Promise.all(drives.map(async (drive) => (await lstat5(drive).catch(() => void 0))?.isDirectory() ? drive : void 0))).filter((p) => Boolean(p));
|
|
52303
|
+
}
|
|
52304
|
+
function excludedScanPaths(platform = process.platform) {
|
|
52305
|
+
if (platform === "linux") return ["/dev", "/proc", "/sys", "/run"];
|
|
52306
|
+
if (platform === "darwin") return ["/dev", "/System/Volumes"];
|
|
52307
|
+
return [];
|
|
52308
|
+
}
|
|
52309
|
+
function createClaudeLocationScanner(options) {
|
|
52310
|
+
const now = options.now || Date.now, openDirectory = options.openDirectory || opendir;
|
|
52311
|
+
const excluded = new Set((options.excluded || []).map((p) => resolve3(p)));
|
|
52312
|
+
const homes2 = /* @__PURE__ */ new Set();
|
|
52313
|
+
let queue = [], index = 0;
|
|
52314
|
+
let visited = /* @__PURE__ */ new Set(), skipped = /* @__PURE__ */ new Set(), limited = false, initialized = false, finishedAt;
|
|
52315
|
+
let last2, lastAt = -Infinity, job;
|
|
52316
|
+
async function scan() {
|
|
52317
|
+
const started = now();
|
|
52318
|
+
if (!initialized || finishedAt !== void 0 && started - finishedAt >= (options.refreshMs ?? 3e5)) {
|
|
52319
|
+
queue = [.../* @__PURE__ */ new Set([dirname4(options.preferredHome()), ...await options.roots()])].map((path) => ({ path: resolve3(path), depth: 0, offset: 0 }));
|
|
52320
|
+
index = 0;
|
|
52321
|
+
visited = /* @__PURE__ */ new Set();
|
|
52322
|
+
skipped = /* @__PURE__ */ new Set();
|
|
52323
|
+
limited = false;
|
|
52324
|
+
initialized = true;
|
|
52325
|
+
finishedAt = void 0;
|
|
52326
|
+
}
|
|
52327
|
+
homes2.add(resolve3(options.preferredHome()));
|
|
52328
|
+
let entries2 = 0;
|
|
52329
|
+
const budget2 = options.maxEntries ?? 1e5, deadline = started + (options.sliceMs ?? 2e3);
|
|
52330
|
+
while (index < queue.length && entries2 < budget2 && now() < deadline) {
|
|
52331
|
+
const item = queue[index], path = item.path;
|
|
52332
|
+
if (excluded.has(path)) {
|
|
52333
|
+
index++;
|
|
52334
|
+
continue;
|
|
52335
|
+
}
|
|
52336
|
+
let complete = true;
|
|
52337
|
+
try {
|
|
52338
|
+
const info = await lstat5(path);
|
|
52339
|
+
if (!info.isDirectory()) {
|
|
52340
|
+
index++;
|
|
52341
|
+
continue;
|
|
52342
|
+
}
|
|
52343
|
+
const key = `${info.dev}:${info.ino}`;
|
|
52344
|
+
if (!item.offset && visited.has(key)) {
|
|
52345
|
+
index++;
|
|
52346
|
+
continue;
|
|
52347
|
+
}
|
|
52348
|
+
let offset = 0;
|
|
52349
|
+
for await (const entry of await openDirectory(path)) {
|
|
52350
|
+
if (offset++ < item.offset) continue;
|
|
52351
|
+
if (entry.isDirectory()) {
|
|
52352
|
+
const child = join9(path, entry.name);
|
|
52353
|
+
if (entry.name === ".claude") addHome(child);
|
|
52354
|
+
if (item.depth < 128 && queue.length < 1e5) queue.push({ path: child, depth: item.depth + 1, offset: 0 });
|
|
52355
|
+
else limited = true;
|
|
52356
|
+
} else if (entry.isFile() && entry.name.endsWith(".jsonl") && claudeSessionID(entry.name.slice(0, -6)) && basename6(dirname4(path)) === "projects") {
|
|
52357
|
+
addHome(dirname4(dirname4(path)));
|
|
52358
|
+
}
|
|
52359
|
+
entries2++;
|
|
52360
|
+
item.offset = offset;
|
|
52361
|
+
if (entries2 >= budget2 || now() >= deadline) {
|
|
52362
|
+
complete = false;
|
|
52363
|
+
break;
|
|
52364
|
+
}
|
|
52365
|
+
}
|
|
52366
|
+
if (complete) visited.add(key);
|
|
52367
|
+
} catch (error62) {
|
|
52368
|
+
if (!["ENOENT", "ENOTDIR"].includes(error62.code || "")) skipped.add(path);
|
|
52369
|
+
}
|
|
52370
|
+
if (!complete) break;
|
|
52371
|
+
index++;
|
|
52372
|
+
}
|
|
52373
|
+
const pending = index < queue.length;
|
|
52374
|
+
if (!pending && finishedAt === void 0) finishedAt = now();
|
|
52375
|
+
const found = [];
|
|
52376
|
+
for (const home of homes2) {
|
|
52377
|
+
try {
|
|
52378
|
+
if (!(await lstat5(home)).isDirectory()) continue;
|
|
52379
|
+
} catch (error62) {
|
|
52380
|
+
if (error62.code !== "ENOENT") skipped.add(home);
|
|
52381
|
+
continue;
|
|
52382
|
+
}
|
|
52383
|
+
for (const name of ["projects", "transcripts"]) {
|
|
52384
|
+
try {
|
|
52385
|
+
if ((await lstat5(join9(home, name))).isDirectory()) {
|
|
52386
|
+
found.push(home);
|
|
52387
|
+
break;
|
|
52388
|
+
}
|
|
52389
|
+
} catch (error62) {
|
|
52390
|
+
if (!["ENOENT", "ENOTDIR"].includes(error62.code || "")) skipped.add(join9(home, name));
|
|
52391
|
+
}
|
|
52392
|
+
}
|
|
52393
|
+
}
|
|
52394
|
+
const warnings = [];
|
|
52395
|
+
if (pending) warnings.push("Claude Code: Computer-wide history search is still in progress. Refresh sessions to continue; known locations are imported now.");
|
|
52396
|
+
if (skipped.size) warnings.push(`Claude Code: Computer-wide search skipped ${skipped.size} unreadable or protected locations. OS permissions were not changed; use an accessible copy or a custom history path for missing sessions.`);
|
|
52397
|
+
if (limited) warnings.push("Claude Code: Computer-wide search reached its 100,000-directory, 1,000-location, or 128-level depth limit. Use a custom history path for locations outside this scan.");
|
|
52398
|
+
return { homes: found, warnings, pending };
|
|
52399
|
+
}
|
|
52400
|
+
function addHome(home) {
|
|
52401
|
+
if (homes2.size < 1e3) homes2.add(home);
|
|
52402
|
+
else limited = true;
|
|
52403
|
+
}
|
|
52404
|
+
return () => {
|
|
52405
|
+
if (job) return job;
|
|
52406
|
+
if (last2 && now() - lastAt < 1e3) return Promise.resolve(last2);
|
|
52407
|
+
job = scan().then((result) => {
|
|
52408
|
+
last2 = result;
|
|
52409
|
+
lastAt = now();
|
|
52410
|
+
return result;
|
|
52411
|
+
}).finally(() => {
|
|
52412
|
+
job = void 0;
|
|
52413
|
+
});
|
|
52414
|
+
return job;
|
|
52415
|
+
};
|
|
52416
|
+
}
|
|
52417
|
+
async function claudeLocations() {
|
|
52418
|
+
const configured = sourcePath("claude-code") || process.env.CLAUDE_CONFIG_DIR;
|
|
52419
|
+
if (configured) return { homes: [resolve3(configured)], warnings: [], pending: false };
|
|
52420
|
+
return scanComputer();
|
|
52421
|
+
}
|
|
52422
|
+
var activeClaudeHome, scanComputer;
|
|
52423
|
+
var init_claude_locations = __esm({
|
|
52424
|
+
"server/adapters/claude-locations.ts"() {
|
|
52425
|
+
"use strict";
|
|
52426
|
+
init_source_paths();
|
|
52427
|
+
init_claude_transcripts();
|
|
52428
|
+
activeClaudeHome = () => resolve3(process.env.CLAUDE_CONFIG_DIR || join9(homedir5(), ".claude"));
|
|
52429
|
+
scanComputer = createClaudeLocationScanner({
|
|
52430
|
+
roots: computerRoots,
|
|
52431
|
+
preferredHome: activeClaudeHome,
|
|
52432
|
+
excluded: excludedScanPaths()
|
|
52433
|
+
});
|
|
52434
|
+
}
|
|
52435
|
+
});
|
|
52436
|
+
|
|
52437
|
+
// server/adapters/claude.ts
|
|
52438
|
+
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
52439
|
+
import { lstat as lstat6, readdir as readdir3, stat } from "node:fs/promises";
|
|
52440
|
+
import { basename as basename7, dirname as dirname5, join as join10, resolve as resolve4 } from "node:path";
|
|
52892
52441
|
function claudeMessages(rows2, candidate, times, entries2) {
|
|
52893
52442
|
const calls = /* @__PURE__ */ new Map();
|
|
52894
52443
|
return rows2.map((row) => {
|
|
@@ -52932,7 +52481,25 @@ function claudeMessages(rows2, candidate, times, entries2) {
|
|
|
52932
52481
|
return msg;
|
|
52933
52482
|
});
|
|
52934
52483
|
}
|
|
52935
|
-
|
|
52484
|
+
function createClaudeAdapter(locations = claudeLocations, currentHome = activeClaudeHome) {
|
|
52485
|
+
const combined = combineAdapters([sdkClaudeAdapter, exportedClaudeAdapter]);
|
|
52486
|
+
return {
|
|
52487
|
+
...combined,
|
|
52488
|
+
async detect() {
|
|
52489
|
+
const found = await locations();
|
|
52490
|
+
return context.run({ ...found, activeHome: resolve4(currentHome()) }, () => found.pending ? Promise.resolve(true) : combined.detect());
|
|
52491
|
+
},
|
|
52492
|
+
async discover() {
|
|
52493
|
+
const found = await locations();
|
|
52494
|
+
return context.run({ ...found, activeHome: resolve4(currentHome()) }, async () => {
|
|
52495
|
+
const result = await combined.discover();
|
|
52496
|
+
for (const candidate of result.sessions) if (candidate.locator.representation === "1") candidate.session.nativeResume = false;
|
|
52497
|
+
return { ...result, warnings: [.../* @__PURE__ */ new Set([...found.warnings, ...result.warnings])] };
|
|
52498
|
+
});
|
|
52499
|
+
}
|
|
52500
|
+
};
|
|
52501
|
+
}
|
|
52502
|
+
var context, homes, activeHome, metadata, sdkClaudeAdapter, exportedClaudeAdapter, claudeAdapter;
|
|
52936
52503
|
var init_claude = __esm({
|
|
52937
52504
|
"server/adapters/claude.ts"() {
|
|
52938
52505
|
"use strict";
|
|
@@ -52946,65 +52513,62 @@ var init_claude = __esm({
|
|
|
52946
52513
|
init_source_paths();
|
|
52947
52514
|
init_commit_extraction();
|
|
52948
52515
|
init_usage();
|
|
52949
|
-
|
|
52516
|
+
init_claude_locations();
|
|
52517
|
+
context = new AsyncLocalStorage2();
|
|
52518
|
+
homes = () => context.getStore()?.homes || [];
|
|
52519
|
+
activeHome = () => context.getStore()?.activeHome || activeClaudeHome();
|
|
52520
|
+
metadata = /* @__PURE__ */ new Map();
|
|
52950
52521
|
sdkClaudeAdapter = {
|
|
52951
52522
|
id: "claude-code",
|
|
52952
52523
|
name: "Claude Code",
|
|
52953
|
-
description: "
|
|
52524
|
+
description: "Computer-wide local CLI and VS Code history \xB7 all projects and subagent transcripts",
|
|
52954
52525
|
capabilities: { history: true, forks: false, children: true, files: true },
|
|
52955
52526
|
async detect() {
|
|
52956
|
-
|
|
52957
|
-
|
|
52958
|
-
} catch {
|
|
52959
|
-
return false;
|
|
52960
|
-
}
|
|
52527
|
+
for (const home of homes()) if ((await lstat6(join10(home, "projects")).catch(() => void 0))?.isDirectory()) return true;
|
|
52528
|
+
return false;
|
|
52961
52529
|
},
|
|
52962
52530
|
async discover() {
|
|
52963
52531
|
const sessions = [], warnings = [];
|
|
52964
|
-
const
|
|
52965
|
-
|
|
52532
|
+
const listing = await historyFiles(homes().map((home) => join10(home, "projects")), (p) => {
|
|
52533
|
+
const parts = p.split("/");
|
|
52534
|
+
return parts.length === 2 && parts[1].endsWith(".jsonl") && claudeSessionID(parts[1].slice(0, -6));
|
|
52535
|
+
});
|
|
52536
|
+
warnings.push(...listing.warnings);
|
|
52966
52537
|
const files = /* @__PURE__ */ new Map();
|
|
52967
52538
|
let unreadable = 0;
|
|
52968
|
-
for (const
|
|
52969
|
-
|
|
52970
|
-
const
|
|
52971
|
-
let entries2;
|
|
52539
|
+
for (const path of listing.files) {
|
|
52540
|
+
const name = basename7(path);
|
|
52541
|
+
const id3 = name.slice(0, -6), home = dirname5(dirname5(dirname5(path)));
|
|
52972
52542
|
try {
|
|
52973
|
-
|
|
52543
|
+
const modified = (await stat(path)).mtimeMs, old = files.get(id3);
|
|
52544
|
+
if (!old || modified > old.modified || modified === old.modified && home === resolve4(activeHome()) && old.home !== home) files.set(id3, { path, home, modified, children: join10(dirname5(path), id3, "subagents") });
|
|
52974
52545
|
} catch {
|
|
52975
52546
|
unreadable++;
|
|
52976
|
-
continue;
|
|
52977
|
-
}
|
|
52978
|
-
for (const file2 of entries2) if (file2.isFile() && file2.name.endsWith(".jsonl") && claudeSessionID(file2.name.slice(0, -6))) {
|
|
52979
|
-
const id3 = file2.name.slice(0, -6), path = join9(parent, file2.name);
|
|
52980
|
-
try {
|
|
52981
|
-
const old = files.get(id3);
|
|
52982
|
-
if (!old || (await stat(path)).mtimeMs > (await stat(old.path)).mtimeMs) files.set(id3, { path, children: join9(parent, id3, "subagents") });
|
|
52983
|
-
} catch {
|
|
52984
|
-
unreadable++;
|
|
52985
|
-
}
|
|
52986
52547
|
}
|
|
52987
52548
|
}
|
|
52988
|
-
const listed = new Set(infos.map((info) => info.sessionId));
|
|
52989
52549
|
for (const [id3, file2] of files) {
|
|
52990
|
-
|
|
52991
|
-
if (infos.length >= 2e4) {
|
|
52992
|
-
warnings.push("Claude Code discovery is limited to 20,000 sessions.");
|
|
52993
|
-
break;
|
|
52994
|
-
}
|
|
52550
|
+
let info;
|
|
52995
52551
|
try {
|
|
52996
|
-
const
|
|
52997
|
-
|
|
52998
|
-
if (
|
|
52999
|
-
|
|
52552
|
+
const rev = await claudeRevision(file2.path);
|
|
52553
|
+
let cached3 = metadata.get(file2.path);
|
|
52554
|
+
if (!cached3 || cached3.revision !== rev) {
|
|
52555
|
+
const transcript = await claudeTranscript(file2.path, rev);
|
|
52556
|
+
cached3 = { revision: rev, info: claudeTranscriptInfo(transcript, id3), partial: transcript.partial };
|
|
52557
|
+
if (metadata.size >= 2e4) metadata.delete(metadata.keys().next().value);
|
|
52558
|
+
metadata.set(file2.path, cached3);
|
|
52559
|
+
}
|
|
52560
|
+
info = cached3.info;
|
|
52561
|
+
if (!info && cached3.partial) unreadable++;
|
|
53000
52562
|
} catch {
|
|
53001
52563
|
unreadable++;
|
|
52564
|
+
continue;
|
|
52565
|
+
}
|
|
52566
|
+
if (!info) continue;
|
|
52567
|
+
const s = { ...blankSession("claude-code", info.sessionId, info.cwd), title: info.customTitle || info.summary || info.firstPrompt || "Untitled session", created: info.createdAt || info.lastModified, updated: info.lastModified, provider: "anthropic", agent: "Claude Code", nativeResume: !sourcePath("claude-code") && file2.home === resolve4(activeHome()) };
|
|
52568
|
+
if (sessions.length >= 2e4) {
|
|
52569
|
+
warnings.push("Claude Code discovery is limited to 20,000 sessions.");
|
|
52570
|
+
break;
|
|
53002
52571
|
}
|
|
53003
|
-
}
|
|
53004
|
-
for (const info of infos) {
|
|
53005
|
-
const file2 = files.get(info.sessionId);
|
|
53006
|
-
if (!file2) continue;
|
|
53007
|
-
const s = { ...blankSession("claude-code", info.sessionId, info.cwd), title: info.customTitle || info.summary || info.firstPrompt || "Untitled session", created: info.createdAt || info.lastModified, updated: info.lastModified, provider: "anthropic", agent: "Claude Code" };
|
|
53008
52572
|
try {
|
|
53009
52573
|
sessions.push({ session: s, revision: await claudeRevision(file2.path), locator: { path: file2.path, dir: info.cwd || "" } });
|
|
53010
52574
|
} catch {
|
|
@@ -53013,15 +52577,20 @@ var init_claude = __esm({
|
|
|
53013
52577
|
}
|
|
53014
52578
|
let children;
|
|
53015
52579
|
try {
|
|
52580
|
+
if (!(await lstat6(file2.children)).isDirectory()) continue;
|
|
53016
52581
|
children = await readdir3(file2.children, { withFileTypes: true });
|
|
53017
52582
|
} catch (error62) {
|
|
53018
52583
|
if (error62.code !== "ENOENT") unreadable++;
|
|
53019
52584
|
continue;
|
|
53020
52585
|
}
|
|
53021
52586
|
for (const child of children) {
|
|
52587
|
+
if (sessions.length >= 2e4) {
|
|
52588
|
+
warnings.push("Claude Code discovery is limited to 20,000 sessions.");
|
|
52589
|
+
break;
|
|
52590
|
+
}
|
|
53022
52591
|
if (!child.isFile() || !/^agent-[\w-]+\.jsonl$/.test(child.name)) continue;
|
|
53023
52592
|
try {
|
|
53024
|
-
const agent = child.name.slice(6, -6), path =
|
|
52593
|
+
const agent = child.name.slice(6, -6), path = join10(file2.children, child.name), stats = await stat(path);
|
|
53025
52594
|
sessions.push({ session: { ...s, id: identity("claude-code", `${info.sessionId}/agent/${agent}`), nativeID: `${info.sessionId}/agent/${agent}`, title: `Subagent ${agent}`, created: stats.birthtimeMs || s.created, updated: stats.mtimeMs, parentID: s.id, origin: "automated", agent }, revision: await claudeRevision(path), locator: { path, dir: info.cwd || "", parent: info.sessionId, agent } });
|
|
53026
52595
|
} catch {
|
|
53027
52596
|
unreadable++;
|
|
@@ -53069,17 +52638,17 @@ var init_claude = __esm({
|
|
|
53069
52638
|
name: "Claude Code",
|
|
53070
52639
|
description: "Legacy local transcript exports",
|
|
53071
52640
|
capabilities: { history: true, forks: false, children: false, files: false },
|
|
53072
|
-
roots: () =>
|
|
52641
|
+
roots: () => homes().map((home) => join10(home, "transcripts")),
|
|
53073
52642
|
match: (p) => p.endsWith(".jsonl"),
|
|
53074
52643
|
parse: (path, files) => envelopeHistory(path, files.get(path))
|
|
53075
52644
|
});
|
|
53076
|
-
claudeAdapter =
|
|
52645
|
+
claudeAdapter = createClaudeAdapter();
|
|
53077
52646
|
}
|
|
53078
52647
|
});
|
|
53079
52648
|
|
|
53080
52649
|
// server/adapters/jsonl.ts
|
|
53081
52650
|
import { open as open4, readdir as readdir4 } from "node:fs/promises";
|
|
53082
|
-
import { join as
|
|
52651
|
+
import { join as join11 } from "node:path";
|
|
53083
52652
|
import { constants as constants5 } from "node:fs";
|
|
53084
52653
|
async function readJSONL(path, offset = 0, budget2 = 2e6, limit = 200) {
|
|
53085
52654
|
if (!Number.isSafeInteger(offset) || offset < 0) throw new Error("Invalid transcript cursor.");
|
|
@@ -53150,8 +52719,8 @@ async function readJSONL(path, offset = 0, budget2 = 2e6, limit = 200) {
|
|
|
53150
52719
|
await file2.close();
|
|
53151
52720
|
}
|
|
53152
52721
|
}
|
|
53153
|
-
async function transcriptFiles(
|
|
53154
|
-
const files = [], queue = [
|
|
52722
|
+
async function transcriptFiles(root2, max = 2e4, match2 = (name) => name.endsWith(".jsonl")) {
|
|
52723
|
+
const files = [], queue = [root2];
|
|
53155
52724
|
for (let i = 0; i < queue.length && files.length < max; i++) {
|
|
53156
52725
|
let entries2;
|
|
53157
52726
|
try {
|
|
@@ -53161,8 +52730,8 @@ async function transcriptFiles(root3, max = 2e4, match2 = (name) => name.endsWit
|
|
|
53161
52730
|
throw error62;
|
|
53162
52731
|
}
|
|
53163
52732
|
for (const entry of entries2) {
|
|
53164
|
-
if (entry.isDirectory() && queue.length < 2e4) queue.push(
|
|
53165
|
-
if (entry.isFile() && match2(entry.name)) files.push(
|
|
52733
|
+
if (entry.isDirectory() && queue.length < 2e4) queue.push(join11(queue[i], entry.name));
|
|
52734
|
+
if (entry.isFile() && match2(entry.name)) files.push(join11(queue[i], entry.name));
|
|
53166
52735
|
if (files.length >= max) break;
|
|
53167
52736
|
}
|
|
53168
52737
|
}
|
|
@@ -53179,7 +52748,7 @@ var init_jsonl = __esm({
|
|
|
53179
52748
|
// server/adapters/codex.ts
|
|
53180
52749
|
import { stat as stat2 } from "node:fs/promises";
|
|
53181
52750
|
import { homedir as homedir6 } from "node:os";
|
|
53182
|
-
import { join as
|
|
52751
|
+
import { join as join12, sep as sep3 } from "node:path";
|
|
53183
52752
|
function changedPaths(value) {
|
|
53184
52753
|
if (!value || typeof value !== "object") return [];
|
|
53185
52754
|
const changes = Array.isArray(value) ? value : Object.entries(value).map(([path, change]) => ({ ...change && typeof change === "object" ? change : {}, path }));
|
|
@@ -53189,11 +52758,11 @@ function codexUserText(value) {
|
|
|
53189
52758
|
if (typeof value !== "string") return "";
|
|
53190
52759
|
let text4 = value.trim();
|
|
53191
52760
|
for (; ; ) {
|
|
53192
|
-
const
|
|
53193
|
-
if (!
|
|
53194
|
-
const end = text4.toLowerCase().indexOf(`</${
|
|
52761
|
+
const context2 = text4.match(/^<(environment_context|permissions|user_instructions|turn_aborted|system_instruction|recommended_plugins|external_codex_[\w-]+)(?:\s[^>]*)?>/i);
|
|
52762
|
+
if (!context2) break;
|
|
52763
|
+
const end = text4.toLowerCase().indexOf(`</${context2[1].toLowerCase()}>`, context2[0].length);
|
|
53195
52764
|
if (end < 0) return "";
|
|
53196
|
-
text4 = text4.slice(end +
|
|
52765
|
+
text4 = text4.slice(end + context2[1].length + 3).trim();
|
|
53197
52766
|
}
|
|
53198
52767
|
if (/^# (?:AGENTS\.md|Instructions for)/i.test(text4)) return "";
|
|
53199
52768
|
return text4;
|
|
@@ -53203,7 +52772,7 @@ async function sessionNames() {
|
|
|
53203
52772
|
let cursor2, count = 0;
|
|
53204
52773
|
try {
|
|
53205
52774
|
do {
|
|
53206
|
-
const page3 = await readJSONL(
|
|
52775
|
+
const page3 = await readJSONL(join12(root(), "session_index.jsonl"), cursor2, 2e6, 1e3);
|
|
53207
52776
|
for (const { value } of page3.rows) if (typeof value.id === "string" && typeof value.thread_name === "string" && value.thread_name.trim()) names.set(value.id, value.thread_name.trim().slice(0, 300));
|
|
53208
52777
|
cursor2 = page3.cursor;
|
|
53209
52778
|
count += page3.rows.length;
|
|
@@ -53278,7 +52847,7 @@ function codexRecord(raw, offset, candidate) {
|
|
|
53278
52847
|
}
|
|
53279
52848
|
return msg;
|
|
53280
52849
|
}
|
|
53281
|
-
var
|
|
52850
|
+
var root, revision, codexAdapter;
|
|
53282
52851
|
var init_codex = __esm({
|
|
53283
52852
|
"server/adapters/codex.ts"() {
|
|
53284
52853
|
"use strict";
|
|
@@ -53288,7 +52857,7 @@ var init_codex = __esm({
|
|
|
53288
52857
|
init_source_paths();
|
|
53289
52858
|
init_commit_extraction();
|
|
53290
52859
|
init_usage();
|
|
53291
|
-
|
|
52860
|
+
root = () => sourcePath("codex") || process.env.CODEX_HOME || join12(homedir6(), ".codex");
|
|
53292
52861
|
revision = async (path) => {
|
|
53293
52862
|
const s = await stat2(path);
|
|
53294
52863
|
return digest([10, s.mtimeMs, s.size]);
|
|
@@ -53300,7 +52869,7 @@ var init_codex = __esm({
|
|
|
53300
52869
|
capabilities: { history: true, forks: true, children: true, files: true },
|
|
53301
52870
|
async detect() {
|
|
53302
52871
|
try {
|
|
53303
|
-
return (await stat2(
|
|
52872
|
+
return (await stat2(root())).isDirectory();
|
|
53304
52873
|
} catch {
|
|
53305
52874
|
return false;
|
|
53306
52875
|
}
|
|
@@ -53309,7 +52878,7 @@ var init_codex = __esm({
|
|
|
53309
52878
|
const found = /* @__PURE__ */ new Map(), warnings = [];
|
|
53310
52879
|
const names = await sessionNames();
|
|
53311
52880
|
const match2 = (name) => /\.jsonl(?:\.[\w.-]+)?$/.test(name);
|
|
53312
|
-
const paths2 = [...await transcriptFiles(
|
|
52881
|
+
const paths2 = [...await transcriptFiles(join12(root(), "sessions"), 2e4, match2), ...await transcriptFiles(join12(root(), "archived_sessions"), 2e4, match2)];
|
|
53313
52882
|
if (paths2.length >= 2e4) warnings.push("Codex transcript listing may be partial (20,000 files per history folder).");
|
|
53314
52883
|
let unsupported = 0;
|
|
53315
52884
|
for (const path of paths2) {
|
|
@@ -53364,9 +52933,9 @@ var init_codex = __esm({
|
|
|
53364
52933
|
});
|
|
53365
52934
|
|
|
53366
52935
|
// server/adapters/t3-code.ts
|
|
53367
|
-
import { lstat as
|
|
52936
|
+
import { lstat as lstat7 } from "node:fs/promises";
|
|
53368
52937
|
import { homedir as homedir7 } from "node:os";
|
|
53369
|
-
import { isAbsolute as
|
|
52938
|
+
import { isAbsolute as isAbsolute5, join as join13 } from "node:path";
|
|
53370
52939
|
function parsedObject(value) {
|
|
53371
52940
|
if (typeof value !== "string") return;
|
|
53372
52941
|
try {
|
|
@@ -53384,16 +52953,16 @@ function status(value) {
|
|
|
53384
52953
|
return ["pending", "running", "completed", "failed"].includes(string6(value)) ? value : "unknown";
|
|
53385
52954
|
}
|
|
53386
52955
|
async function databasePath2() {
|
|
53387
|
-
const
|
|
53388
|
-
const paths2 = /\.sqlite$/.test(
|
|
53389
|
-
|
|
53390
|
-
|
|
53391
|
-
|
|
53392
|
-
|
|
52956
|
+
const root2 = sourcePath("t3-code") || process.env.SESSIONGRAPH_T3_CODE_HISTORY_DIR || process.env.T3CODE_HOME || join13(homedir7(), ".t3");
|
|
52957
|
+
const paths2 = /\.sqlite$/.test(root2) ? [root2] : [
|
|
52958
|
+
join13(root2, "userdata", "statev2.sqlite"),
|
|
52959
|
+
join13(root2, "statev2.sqlite"),
|
|
52960
|
+
join13(root2, "userdata", "state.sqlite"),
|
|
52961
|
+
join13(root2, "state.sqlite")
|
|
53393
52962
|
];
|
|
53394
52963
|
for (const path of paths2) {
|
|
53395
52964
|
try {
|
|
53396
|
-
if ((await
|
|
52965
|
+
if ((await lstat7(path)).isFile()) return path;
|
|
53397
52966
|
} catch (error62) {
|
|
53398
52967
|
if (error62.code !== "ENOENT") throw error62;
|
|
53399
52968
|
}
|
|
@@ -53585,7 +53154,7 @@ function v2Message(row, directory3) {
|
|
|
53585
53154
|
message2.events = [eventFor(message2, id3, kind2, file2, "", { ...fields3, callID: string6(native.nativeId) || void 0 })];
|
|
53586
53155
|
return message2;
|
|
53587
53156
|
}
|
|
53588
|
-
if (file2 && completed) message2.files.push({ path:
|
|
53157
|
+
if (file2 && completed) message2.files.push({ path: isAbsolute5(file2) ? file2 : join13(directory3, file2), source: "file change", steps: 1 });
|
|
53589
53158
|
message2.events = [eventFor(message2, id3, "file_change", file2 || name, "", fields3)];
|
|
53590
53159
|
return message2;
|
|
53591
53160
|
}
|
|
@@ -53703,11 +53272,11 @@ function cursorEnvelope(text4) {
|
|
|
53703
53272
|
value = value.slice(clock[0].length);
|
|
53704
53273
|
continue;
|
|
53705
53274
|
}
|
|
53706
|
-
const
|
|
53707
|
-
if (!
|
|
53708
|
-
const end = value.indexOf(`</${
|
|
53275
|
+
const context2 = value.match(/^<(user_info|environment_context|system_reminder|external_links|attached_files|image_files)(?:\s[^>]*)?>/);
|
|
53276
|
+
if (!context2) break;
|
|
53277
|
+
const end = value.indexOf(`</${context2[1]}>`, context2[0].length);
|
|
53709
53278
|
if (end < 0) return { text: "", timestamp };
|
|
53710
|
-
value = value.slice(end +
|
|
53279
|
+
value = value.slice(end + context2[1].length + 3).trim();
|
|
53711
53280
|
}
|
|
53712
53281
|
return { text: value, timestamp };
|
|
53713
53282
|
}
|
|
@@ -53795,7 +53364,7 @@ var init_cursor_message = __esm({
|
|
|
53795
53364
|
import { DatabaseSync as DatabaseSync3 } from "node:sqlite";
|
|
53796
53365
|
import { chmodSync as chmodSync3, copyFileSync as copyFileSync2, lstatSync as lstatSync3, mkdtempSync as mkdtempSync2, rmSync as rmSync3 } from "node:fs";
|
|
53797
53366
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
53798
|
-
import { join as
|
|
53367
|
+
import { join as join14 } from "node:path";
|
|
53799
53368
|
function withStore(path, read2) {
|
|
53800
53369
|
const files = [path, `${path}-wal`];
|
|
53801
53370
|
const stats = () => files.map((file2) => {
|
|
@@ -53808,11 +53377,11 @@ function withStore(path, read2) {
|
|
|
53808
53377
|
throw error62;
|
|
53809
53378
|
}
|
|
53810
53379
|
});
|
|
53811
|
-
const before = stats(), directory3 = mkdtempSync2(
|
|
53380
|
+
const before = stats(), directory3 = mkdtempSync2(join14(tmpdir2(), "sessiongraph-cursor-"));
|
|
53812
53381
|
let db2;
|
|
53813
53382
|
try {
|
|
53814
53383
|
chmodSync3(directory3, 448);
|
|
53815
|
-
const copy =
|
|
53384
|
+
const copy = join14(directory3, "store.db");
|
|
53816
53385
|
files.forEach((file2, index) => {
|
|
53817
53386
|
if (before[index]) {
|
|
53818
53387
|
const target = index ? `${copy}-wal` : copy;
|
|
@@ -53832,7 +53401,7 @@ function withStore(path, read2) {
|
|
|
53832
53401
|
}
|
|
53833
53402
|
}
|
|
53834
53403
|
}
|
|
53835
|
-
function
|
|
53404
|
+
function metadata2(db2) {
|
|
53836
53405
|
const row = db2.prepare("SELECT value FROM meta WHERE key=? AND length(value)<=?").get("0", MAX_VALUE);
|
|
53837
53406
|
if (typeof row?.value !== "string" || !/^(?:[a-f\d]{2})+$/i.test(row.value)) throw new Error("Unsupported Cursor store metadata.");
|
|
53838
53407
|
const value = JSON.parse(Buffer.from(row.value, "hex").toString("utf8"));
|
|
@@ -53874,13 +53443,13 @@ function fields2(data) {
|
|
|
53874
53443
|
}
|
|
53875
53444
|
function readCursorStore(path) {
|
|
53876
53445
|
return withStore(path, (db2) => {
|
|
53877
|
-
const meta3 =
|
|
53878
|
-
if (!
|
|
53879
|
-
if (typeof
|
|
53446
|
+
const meta3 = metadata2(db2), root2 = meta3.latestRootBlobId;
|
|
53447
|
+
if (!root2) throw new Error("Cursor store has no committed conversation root.");
|
|
53448
|
+
if (typeof root2 !== "string" || !/^[a-f\d]{64}$/i.test(root2)) throw new Error("Unsupported Cursor conversation root.");
|
|
53880
53449
|
const get = db2.prepare("SELECT data FROM blobs WHERE id=? AND length(data)<=?");
|
|
53881
53450
|
const messages = [];
|
|
53882
53451
|
let bytes2 = 0, nodes = 0, text4 = 0, partial2 = false, ordinal = 0;
|
|
53883
|
-
const stack = [{ id:
|
|
53452
|
+
const stack = [{ id: root2, leaf: false, ancestors: [] }];
|
|
53884
53453
|
while (stack.length) {
|
|
53885
53454
|
if (++nodes > MAX_NODES || bytes2 >= MAX_BYTES3 || text4 >= MAX_TEXT) {
|
|
53886
53455
|
partial2 = true;
|
|
@@ -53956,12 +53525,12 @@ var init_cursor_store = __esm({
|
|
|
53956
53525
|
MAX_BYTES3 = 64e6;
|
|
53957
53526
|
MAX_NODES = 5e4;
|
|
53958
53527
|
MAX_TEXT = 16e6;
|
|
53959
|
-
cursorStoreMetadata = (path) => withStore(path,
|
|
53528
|
+
cursorStoreMetadata = (path) => withStore(path, metadata2);
|
|
53960
53529
|
}
|
|
53961
53530
|
});
|
|
53962
53531
|
|
|
53963
53532
|
// server/adapters/cursor-composer.ts
|
|
53964
|
-
import { isAbsolute as
|
|
53533
|
+
import { isAbsolute as isAbsolute6 } from "node:path";
|
|
53965
53534
|
import { fileURLToPath } from "node:url";
|
|
53966
53535
|
function decode3(value) {
|
|
53967
53536
|
return object4(JSON.parse(typeof value === "string" ? value : value instanceof Uint8Array ? Buffer.from(value).toString("utf8") : "{}"));
|
|
@@ -53969,7 +53538,7 @@ function decode3(value) {
|
|
|
53969
53538
|
function directory2(raw) {
|
|
53970
53539
|
const value = text3(raw.workspaceIdentifier?.uri?.path) || text3(raw.workspaceIdentifier?.uri) || text3(raw.cwd);
|
|
53971
53540
|
try {
|
|
53972
|
-
return value.startsWith("file:") ? fileURLToPath(value) :
|
|
53541
|
+
return value.startsWith("file:") ? fileURLToPath(value) : isAbsolute6(value) ? value : "";
|
|
53973
53542
|
} catch {
|
|
53974
53543
|
return "";
|
|
53975
53544
|
}
|
|
@@ -54085,13 +53654,13 @@ var init_cursor_composer = __esm({
|
|
|
54085
53654
|
|
|
54086
53655
|
// server/adapters/cursor.ts
|
|
54087
53656
|
import { createHash as createHash5 } from "node:crypto";
|
|
54088
|
-
import { lstat as
|
|
53657
|
+
import { lstat as lstat8, opendir as opendir2, readFile as readFile2 } from "node:fs/promises";
|
|
54089
53658
|
import { homedir as homedir8 } from "node:os";
|
|
54090
|
-
import { isAbsolute as
|
|
53659
|
+
import { isAbsolute as isAbsolute7, join as join15 } from "node:path";
|
|
54091
53660
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
54092
53661
|
async function fileStats(path) {
|
|
54093
53662
|
try {
|
|
54094
|
-
const s = await
|
|
53663
|
+
const s = await lstat8(path);
|
|
54095
53664
|
if (s.isSymbolicLink()) throw new Error("Cursor history symlinks are not followed.");
|
|
54096
53665
|
return s.isFile() ? s : void 0;
|
|
54097
53666
|
} catch (error62) {
|
|
@@ -54116,8 +53685,8 @@ async function json5(path) {
|
|
|
54116
53685
|
async function entries(path, warnings) {
|
|
54117
53686
|
const result = [];
|
|
54118
53687
|
try {
|
|
54119
|
-
if (!(await
|
|
54120
|
-
for await (const entry of await
|
|
53688
|
+
if (!(await lstat8(path)).isDirectory()) return result;
|
|
53689
|
+
for await (const entry of await opendir2(path)) {
|
|
54121
53690
|
if (!entry.isSymbolicLink()) result.push(entry);
|
|
54122
53691
|
if (result.length === LIMIT) {
|
|
54123
53692
|
warnings.push("Cursor directory listing limited to 20,000 entries.");
|
|
@@ -54129,14 +53698,14 @@ async function entries(path, warnings) {
|
|
|
54129
53698
|
}
|
|
54130
53699
|
return result.sort((a, b) => a.name.localeCompare(b.name));
|
|
54131
53700
|
}
|
|
54132
|
-
async function workspacePaths(
|
|
53701
|
+
async function workspacePaths(root2, warnings) {
|
|
54133
53702
|
const stores = /* @__PURE__ */ new Map();
|
|
54134
|
-
const storage =
|
|
53703
|
+
const storage = join15(root2, "User/workspaceStorage");
|
|
54135
53704
|
for (const entry of await entries(storage, warnings)) if (entry.isDirectory()) {
|
|
54136
|
-
const database =
|
|
53705
|
+
const database = join15(storage, entry.name, "state.vscdb");
|
|
54137
53706
|
stores.set(database, "");
|
|
54138
53707
|
try {
|
|
54139
|
-
const info = await json5(
|
|
53708
|
+
const info = await json5(join15(storage, entry.name, "workspace.json"));
|
|
54140
53709
|
if (typeof info.folder === "string" && info.folder.startsWith("file:")) {
|
|
54141
53710
|
const path = cwd(fileURLToPath2(info.folder));
|
|
54142
53711
|
if (path) stores.set(database, path);
|
|
@@ -54148,7 +53717,7 @@ async function workspacePaths(root3, warnings) {
|
|
|
54148
53717
|
return stores;
|
|
54149
53718
|
}
|
|
54150
53719
|
function createCursorAdapter(options = {}) {
|
|
54151
|
-
const
|
|
53720
|
+
const root2 = () => options.home || sourcePath("cursor") || process.env.SESSIONGRAPH_CURSOR_HOME || process.env.SESSION_ATLAS_CURSOR_HOME || join15(homedir8(), ".cursor");
|
|
54152
53721
|
const editor = () => options.userData || process.env.SESSIONGRAPH_CURSOR_USER_DATA_DIR || process.env.SESSION_ATLAS_CURSOR_USER_DATA_DIR || userData();
|
|
54153
53722
|
return {
|
|
54154
53723
|
id: "cursor",
|
|
@@ -54156,13 +53725,13 @@ function createCursorAdapter(options = {}) {
|
|
|
54156
53725
|
description: "Local IDE, Composer, and CLI sessions",
|
|
54157
53726
|
capabilities: { history: true, forks: false, children: true, files: false },
|
|
54158
53727
|
async detect() {
|
|
54159
|
-
if (await fileStats(
|
|
54160
|
-
for (const entry of await entries(
|
|
54161
|
-
if (entry.isDirectory() && await fileStats(
|
|
53728
|
+
if (await fileStats(join15(editor(), "User/globalStorage/state.vscdb"))) return true;
|
|
53729
|
+
for (const entry of await entries(join15(editor(), "User/workspaceStorage"), [])) {
|
|
53730
|
+
if (entry.isDirectory() && await fileStats(join15(editor(), "User/workspaceStorage", entry.name, "state.vscdb"))) return true;
|
|
54162
53731
|
}
|
|
54163
53732
|
for (const name of ["projects", "chats", "acp-sessions"]) {
|
|
54164
53733
|
try {
|
|
54165
|
-
if ((await
|
|
53734
|
+
if ((await lstat8(join15(root2(), name))).isDirectory()) return true;
|
|
54166
53735
|
} catch {
|
|
54167
53736
|
}
|
|
54168
53737
|
}
|
|
@@ -54172,7 +53741,7 @@ function createCursorAdapter(options = {}) {
|
|
|
54172
53741
|
const warnings = [], errors = [], found = /* @__PURE__ */ new Map(), blocked = /* @__PURE__ */ new Set();
|
|
54173
53742
|
const workspaceStores = await workspacePaths(editor(), warnings);
|
|
54174
53743
|
const paths2 = [...new Set([...workspaceStores.values()].filter(Boolean))];
|
|
54175
|
-
const legacyStores = new Map([[
|
|
53744
|
+
const legacyStores = new Map([[join15(editor(), "User/globalStorage/state.vscdb"), ""], ...workspaceStores]);
|
|
54176
53745
|
for (const [path, workspace] of legacyStores) {
|
|
54177
53746
|
try {
|
|
54178
53747
|
if (!await fileStats(path)) continue;
|
|
@@ -54203,7 +53772,7 @@ function createCursorAdapter(options = {}) {
|
|
|
54203
53772
|
if (!stats) return;
|
|
54204
53773
|
const native = parent ? `${parent}/agent/${id3}` : id3;
|
|
54205
53774
|
const locator = { path, kind };
|
|
54206
|
-
if (kind !== "transcript") locator.meta =
|
|
53775
|
+
if (kind !== "transcript") locator.meta = join15(path, "..", "meta.json");
|
|
54207
53776
|
const before = await snapshot(locator);
|
|
54208
53777
|
const extra2 = locator.meta ? await json5(locator.meta) : {};
|
|
54209
53778
|
const meta3 = kind === "transcript" ? {} : cursorStoreMetadata(path);
|
|
@@ -54245,7 +53814,7 @@ function createCursorAdapter(options = {}) {
|
|
|
54245
53814
|
}
|
|
54246
53815
|
if (!session.directory) locator.directoryNote = "Working directory is unknown; choose one when continuing.";
|
|
54247
53816
|
session.projectID = project("cursor", session.directory).id;
|
|
54248
|
-
session.nativeResume = kind === "cli" && Boolean(session.directory) && hashCwd(session.directory) === workspaceHash &&
|
|
53817
|
+
session.nativeResume = kind === "cli" && Boolean(session.directory) && hashCwd(session.directory) === workspaceHash && root2() === join15(homedir8(), ".cursor");
|
|
54249
53818
|
locator.snapshot = before;
|
|
54250
53819
|
if (await snapshot(locator) !== before) throw new Error("Cursor session changed during discovery.");
|
|
54251
53820
|
const previous = found.get(session.id);
|
|
@@ -54268,39 +53837,39 @@ function createCursorAdapter(options = {}) {
|
|
|
54268
53837
|
if (kind !== "transcript") blocked.add(identity("cursor", id3));
|
|
54269
53838
|
}
|
|
54270
53839
|
};
|
|
54271
|
-
const projects =
|
|
53840
|
+
const projects = join15(root2(), "projects");
|
|
54272
53841
|
for (const dir of await entries(projects, warnings)) {
|
|
54273
53842
|
if (!dir.isDirectory() || scanned >= LIMIT) continue;
|
|
54274
|
-
const transcripts =
|
|
53843
|
+
const transcripts = join15(projects, dir.name, "agent-transcripts"), directory3 = match2(dir.name, slug);
|
|
54275
53844
|
for (const entry of await entries(transcripts, warnings)) {
|
|
54276
53845
|
if (scanned >= LIMIT) break;
|
|
54277
|
-
if (entry.isFile() && entry.name.endsWith(".jsonl")) await add(
|
|
53846
|
+
if (entry.isFile() && entry.name.endsWith(".jsonl")) await add(join15(transcripts, entry.name), entry.name.slice(0, -6), "transcript", directory3);
|
|
54278
53847
|
else if (entry.isFile() && entry.name.endsWith(".txt")) legacy++;
|
|
54279
53848
|
else if (entry.isDirectory() && validID(entry.name)) {
|
|
54280
|
-
await add(
|
|
54281
|
-
for (const child of await entries(
|
|
54282
|
-
if (child.isFile() && child.name.endsWith(".jsonl")) await add(
|
|
53849
|
+
await add(join15(transcripts, entry.name, `${entry.name}.jsonl`), entry.name, "transcript", directory3);
|
|
53850
|
+
for (const child of await entries(join15(transcripts, entry.name, "subagents"), warnings)) {
|
|
53851
|
+
if (child.isFile() && child.name.endsWith(".jsonl")) await add(join15(transcripts, entry.name, "subagents", child.name), child.name.slice(0, -6), "transcript", directory3, entry.name);
|
|
54283
53852
|
if (scanned >= LIMIT) break;
|
|
54284
53853
|
}
|
|
54285
53854
|
}
|
|
54286
53855
|
}
|
|
54287
53856
|
}
|
|
54288
|
-
const chats =
|
|
53857
|
+
const chats = join15(root2(), "chats");
|
|
54289
53858
|
for (const bucket of await entries(chats, warnings)) {
|
|
54290
53859
|
if (!bucket.isDirectory() || scanned >= LIMIT) continue;
|
|
54291
|
-
const folder =
|
|
54292
|
-
if (/^[a-f\d]{32}$/i.test(bucket.name) && await fileStats(
|
|
53860
|
+
const folder = join15(chats, bucket.name), directory3 = match2(bucket.name, hashCwd);
|
|
53861
|
+
if (/^[a-f\d]{32}$/i.test(bucket.name) && await fileStats(join15(folder, "store.db"))) {
|
|
54293
53862
|
const id3 = bucket.name.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/, "$1-$2-$3-$4-$5");
|
|
54294
|
-
await add(
|
|
53863
|
+
await add(join15(folder, "store.db"), id3, "cli", "");
|
|
54295
53864
|
}
|
|
54296
53865
|
for (const entry of await entries(folder, warnings)) {
|
|
54297
|
-
if (entry.isDirectory()) await add(
|
|
53866
|
+
if (entry.isDirectory()) await add(join15(folder, entry.name, "store.db"), entry.name, "cli", directory3, "", bucket.name);
|
|
54298
53867
|
if (scanned >= LIMIT) break;
|
|
54299
53868
|
}
|
|
54300
53869
|
}
|
|
54301
|
-
const acp =
|
|
53870
|
+
const acp = join15(root2(), "acp-sessions");
|
|
54302
53871
|
for (const entry of await entries(acp, warnings)) {
|
|
54303
|
-
if (entry.isDirectory()) await add(
|
|
53872
|
+
if (entry.isDirectory()) await add(join15(acp, entry.name, "store.db"), entry.name, "acp", "");
|
|
54304
53873
|
if (scanned >= LIMIT) break;
|
|
54305
53874
|
}
|
|
54306
53875
|
if (scanned >= LIMIT) warnings.push("Cursor discovery limited to 20,000 history files.");
|
|
@@ -54357,24 +53926,24 @@ var init_cursor = __esm({
|
|
|
54357
53926
|
init_jsonl();
|
|
54358
53927
|
LIMIT = 2e4;
|
|
54359
53928
|
validID = (id3) => /^[a-z\d][\w-]{0,159}$/i.test(id3);
|
|
54360
|
-
cwd = (value) => typeof value === "string" &&
|
|
53929
|
+
cwd = (value) => typeof value === "string" && isAbsolute7(value) && !/[\x00-\x1f\x7f]/.test(value) ? value : "";
|
|
54361
53930
|
slug = (path) => path.replace(/\\/g, "/").replace(/^([A-Z]):/i, (_, drive) => drive.toLowerCase()).replace(/^\/+|\/+$/g, "").replace(/[/:]+/g, "-");
|
|
54362
53931
|
hashCwd = (path) => createHash5("md5").update(path).digest("hex");
|
|
54363
|
-
userData = () => process.platform === "darwin" ?
|
|
53932
|
+
userData = () => process.platform === "darwin" ? join15(homedir8(), "Library/Application Support/Cursor") : process.platform === "win32" ? join15(process.env.APPDATA || join15(homedir8(), "AppData/Roaming"), "Cursor") : join15(process.env.XDG_CONFIG_HOME || join15(homedir8(), ".config"), "Cursor");
|
|
54364
53933
|
cursorAdapter = createCursorAdapter();
|
|
54365
53934
|
}
|
|
54366
53935
|
});
|
|
54367
53936
|
|
|
54368
53937
|
// server/adapters/gemini.ts
|
|
54369
53938
|
import { homedir as homedir9 } from "node:os";
|
|
54370
|
-
import { basename as
|
|
53939
|
+
import { basename as basename8, dirname as dirname6, join as join16, sep as sep4 } from "node:path";
|
|
54371
53940
|
function projectRootFile(path) {
|
|
54372
53941
|
const parts = path.split(sep4);
|
|
54373
|
-
return
|
|
53942
|
+
return join16(parts.slice(0, parts.lastIndexOf("chats")).join(sep4), ".project_root");
|
|
54374
53943
|
}
|
|
54375
53944
|
function geminiConversation(contents, lines) {
|
|
54376
53945
|
const parsed = lines ? jsonLines(contents) : { rows: [object4(json4(contents))], partial: false };
|
|
54377
|
-
let
|
|
53946
|
+
let metadata3 = {};
|
|
54378
53947
|
const messages = /* @__PURE__ */ new Map();
|
|
54379
53948
|
const patch = (p) => {
|
|
54380
53949
|
const existing = messages.get(text3(p.id));
|
|
@@ -54406,7 +53975,7 @@ function geminiConversation(contents, lines) {
|
|
|
54406
53975
|
}
|
|
54407
53976
|
} else if (row.$set || row.sessionId) {
|
|
54408
53977
|
const update = row.$set ? object4(row.$set) : row;
|
|
54409
|
-
|
|
53978
|
+
metadata3 = { ...metadata3, ...update };
|
|
54410
53979
|
if (Array.isArray(update.messages)) {
|
|
54411
53980
|
if (row.$set) messages.clear();
|
|
54412
53981
|
for (const message2 of update.messages) if (typeof message2.id === "string") messages.set(message2.id, message2);
|
|
@@ -54414,7 +53983,7 @@ function geminiConversation(contents, lines) {
|
|
|
54414
53983
|
} else if (typeof row.id === "string" && typeof row.type === "string") messages.set(row.id, row);
|
|
54415
53984
|
else parsed.partial = true;
|
|
54416
53985
|
}
|
|
54417
|
-
return { metadata:
|
|
53986
|
+
return { metadata: metadata3, records: [...messages.values()], partial: parsed.partial };
|
|
54418
53987
|
}
|
|
54419
53988
|
var geminiAdapter;
|
|
54420
53989
|
var init_gemini = __esm({
|
|
@@ -54431,7 +54000,7 @@ var init_gemini = __esm({
|
|
|
54431
54000
|
name: "Gemini CLI",
|
|
54432
54001
|
description: "Local JSON and JSONL chats, including recorded subagent histories",
|
|
54433
54002
|
capabilities: { history: true, forks: false, children: true, files: true },
|
|
54434
|
-
roots: () => sourcePath("gemini") || process.env.SESSIONGRAPH_GEMINI_HOME ? [
|
|
54003
|
+
roots: () => sourcePath("gemini") || process.env.SESSIONGRAPH_GEMINI_HOME ? [join16(sourcePath("gemini") || process.env.SESSIONGRAPH_GEMINI_HOME, "tmp")] : [join16(process.env.GEMINI_CLI_HOME || homedir9(), ".gemini", "tmp"), join16(process.env.GEMINI_CLI_HOME || homedir9(), ".cache", ".gemini", "tmp")],
|
|
54435
54004
|
match: (path) => /^[^/]+\/chats\/(?:[^/]+\/)?[^/]+\.jsonl?$/.test(path),
|
|
54436
54005
|
extras: (path) => [projectRootFile(path)],
|
|
54437
54006
|
parse(path, files) {
|
|
@@ -54456,7 +54025,7 @@ var init_gemini = __esm({
|
|
|
54456
54025
|
return message2;
|
|
54457
54026
|
});
|
|
54458
54027
|
successfulEdits(messages, ["write_file", "replace"]);
|
|
54459
|
-
const parent = meta3.kind === "subagent" &&
|
|
54028
|
+
const parent = meta3.kind === "subagent" && basename8(dirname6(dirname6(path))) === "chats" ? basename8(dirname6(path)) : void 0;
|
|
54460
54029
|
return {
|
|
54461
54030
|
nativeID: meta3.sessionId,
|
|
54462
54031
|
messages,
|
|
@@ -54471,7 +54040,7 @@ var init_gemini = __esm({
|
|
|
54471
54040
|
|
|
54472
54041
|
// server/adapters/qwen.ts
|
|
54473
54042
|
import { homedir as homedir10 } from "node:os";
|
|
54474
|
-
import { join as
|
|
54043
|
+
import { join as join17 } from "node:path";
|
|
54475
54044
|
var qwenAdapter;
|
|
54476
54045
|
var init_qwen = __esm({
|
|
54477
54046
|
"server/adapters/qwen.ts"() {
|
|
@@ -54487,7 +54056,7 @@ var init_qwen = __esm({
|
|
|
54487
54056
|
name: "Qwen Code",
|
|
54488
54057
|
description: "Local project chat records \xB7 tool results, forks, and child sessions",
|
|
54489
54058
|
capabilities: { history: true, forks: true, children: true, files: true },
|
|
54490
|
-
roots: () => [
|
|
54059
|
+
roots: () => [join17(sourcePath("qwen-code") || process.env.SESSIONGRAPH_QWEN_HOME || process.env.QWEN_RUNTIME_DIR || process.env.QWEN_HOME || join17(homedir10(), ".qwen"), "projects")],
|
|
54491
54060
|
match: (path) => /^[^/]+\/chats\/[^/]+\.jsonl$/.test(path),
|
|
54492
54061
|
parse(path, files) {
|
|
54493
54062
|
const { rows: rows2, partial: partial2 } = jsonLines(files.get(path));
|
|
@@ -54528,7 +54097,7 @@ var init_qwen = __esm({
|
|
|
54528
54097
|
|
|
54529
54098
|
// server/adapters/copilot.ts
|
|
54530
54099
|
import { homedir as homedir11 } from "node:os";
|
|
54531
|
-
import { join as
|
|
54100
|
+
import { join as join18 } from "node:path";
|
|
54532
54101
|
var copilotAdapter;
|
|
54533
54102
|
var init_copilot = __esm({
|
|
54534
54103
|
"server/adapters/copilot.ts"() {
|
|
@@ -54542,7 +54111,7 @@ var init_copilot = __esm({
|
|
|
54542
54111
|
name: "GitHub Copilot CLI",
|
|
54543
54112
|
description: "Local session event logs \xB7 conversations and completed file edits",
|
|
54544
54113
|
capabilities: { history: true, forks: false, children: true, files: true },
|
|
54545
|
-
roots: () => [
|
|
54114
|
+
roots: () => [join18(sourcePath("copilot") || process.env.SESSIONGRAPH_COPILOT_HOME || join18(homedir11(), ".copilot"), "session-state")],
|
|
54546
54115
|
match: (path) => /(?:^|\/)events\.jsonl$/.test(path),
|
|
54547
54116
|
parse(path, files) {
|
|
54548
54117
|
const { rows: rows2, partial: partial2 } = jsonLines(files.get(path));
|
|
@@ -54640,7 +54209,7 @@ var init_vscode_chat_log = __esm({
|
|
|
54640
54209
|
|
|
54641
54210
|
// server/adapters/copilot-chat.ts
|
|
54642
54211
|
import { homedir as homedir12 } from "node:os";
|
|
54643
|
-
import { basename as
|
|
54212
|
+
import { basename as basename9, dirname as dirname7, join as join19, posix as posix2, win32 as win323 } from "node:path";
|
|
54644
54213
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
54645
54214
|
function copilotChatRoots(platform = process.platform, home = homedir12(), env2 = process.env) {
|
|
54646
54215
|
const path = platform === "win32" ? win323 : posix2;
|
|
@@ -54709,10 +54278,10 @@ function chatMessages(requests) {
|
|
|
54709
54278
|
const messages = [user];
|
|
54710
54279
|
if (request.response !== void 0 || request.result?.errorDetails || request.responseErrorDetails || request.editedFileEvents?.length) {
|
|
54711
54280
|
const assistant = blankMessage(text3(request.responseId) || `response:${requestID}`, time3(request.responseTimestamp), "assistant");
|
|
54712
|
-
const
|
|
54713
|
-
const input2 = request.promptTokens ??
|
|
54281
|
+
const metadata3 = object4(request.result?.metadata);
|
|
54282
|
+
const input2 = request.promptTokens ?? metadata3.promptTokens, output3 = request.completionTokens ?? metadata3.outputTokens;
|
|
54714
54283
|
assistant.usage = recordedUsage({ input: input2, output: output3, total: sumTokens([input2, output3]), inputIncludesCache: true, outputIncludesReasoning: true }, "message", request.responseId || requestID);
|
|
54715
|
-
assistant.metadata = messageMetadata({ model:
|
|
54284
|
+
assistant.metadata = messageMetadata({ model: metadata3.resolvedModel || request.modelId });
|
|
54716
54285
|
assistant.events = [];
|
|
54717
54286
|
const parts = Array.isArray(request.response) ? request.response : request.response == null ? [] : [request.response];
|
|
54718
54287
|
if (parts.length > 200) assistant.partial = true;
|
|
@@ -54757,16 +54326,16 @@ var init_copilot_chat = __esm({
|
|
|
54757
54326
|
capabilities: { history: true, forks: false, children: false, files: true },
|
|
54758
54327
|
roots,
|
|
54759
54328
|
match,
|
|
54760
|
-
authoritativeIdentity: (path) => path.endsWith(".jsonl") ?
|
|
54761
|
-
extras: (path) => [...
|
|
54329
|
+
authoritativeIdentity: (path) => path.endsWith(".jsonl") ? basename9(path, ".jsonl") : void 0,
|
|
54330
|
+
extras: (path) => [...basename9(dirname7(path)) === "chatSessions" ? [join19(dirname7(dirname7(path)), "workspace.json")] : [], ...path.endsWith(".json") ? [`${path}l`] : []],
|
|
54762
54331
|
parse(path, files) {
|
|
54763
54332
|
const log = path.endsWith(".jsonl") ? path : `${path}l`;
|
|
54764
54333
|
const data = files.has(log) ? vscodeChatLog(files.get(log)) : object4(JSON.parse(files.get(path)));
|
|
54765
54334
|
if (!text3(data.sessionId) || !Array.isArray(data.requests) || data.version !== void 0 && ![1, 2, 3].includes(data.version)) throw new Error("Unsupported VS Code chat history.");
|
|
54766
|
-
if (data.sessionId !==
|
|
54335
|
+
if (data.sessionId !== basename9(path).replace(/\.jsonl?$/, "")) throw new Error("VS Code chat identity mismatch.");
|
|
54767
54336
|
if (!data.requests.length) return;
|
|
54768
54337
|
if (data.requests.length > 25e3) throw new Error("Chat exceeds the 50,000-message limit.");
|
|
54769
|
-
const workspacePath =
|
|
54338
|
+
const workspacePath = join19(dirname7(dirname7(path)), "workspace.json");
|
|
54770
54339
|
const workspace = files.has(workspacePath) ? object4(JSON.parse(files.get(workspacePath))) : {};
|
|
54771
54340
|
const messages = chatMessages(data.requests);
|
|
54772
54341
|
const model = [...data.requests].reverse().find((r) => text3(r.modelId));
|
|
@@ -54786,7 +54355,7 @@ var init_copilot_chat = __esm({
|
|
|
54786
54355
|
|
|
54787
54356
|
// server/adapters/extensions.ts
|
|
54788
54357
|
import { homedir as homedir13 } from "node:os";
|
|
54789
|
-
import { basename as
|
|
54358
|
+
import { basename as basename10, dirname as dirname8, join as join20 } from "node:path";
|
|
54790
54359
|
function taskUsage(value, source) {
|
|
54791
54360
|
if (!Array.isArray(value)) return;
|
|
54792
54361
|
const records = /* @__PURE__ */ new Map();
|
|
@@ -54817,12 +54386,12 @@ function taskUsage(value, source) {
|
|
|
54817
54386
|
}
|
|
54818
54387
|
function editorTaskRoots(extension) {
|
|
54819
54388
|
const home = homedir13();
|
|
54820
|
-
const base = process.platform === "darwin" ?
|
|
54821
|
-
return ["Code", "Code - Insiders", "VSCodium", "Cursor", "Windsurf"].map((app) =>
|
|
54389
|
+
const base = process.platform === "darwin" ? join20(home, "Library", "Application Support") : process.platform === "win32" ? process.env.APPDATA || join20(home, "AppData", "Roaming") : process.env.XDG_CONFIG_HOME || join20(home, ".config");
|
|
54390
|
+
return ["Code", "Code - Insiders", "VSCodium", "Cursor", "Windsurf"].map((app) => join20(base, app, "User", "globalStorage", extension, "tasks")).concat([".vscode-server", ".vscode-server-insiders"].map((app) => join20(home, app, "data", "User", "globalStorage", extension, "tasks")));
|
|
54822
54391
|
}
|
|
54823
54392
|
function taskAdapter(id3, name, extension, env2) {
|
|
54824
54393
|
const home = () => sourcePath(id3) || process.env[env2];
|
|
54825
|
-
const roots2 = () => home() ? [
|
|
54394
|
+
const roots2 = () => home() ? [join20(home(), "tasks"), ...id3 === "cline" ? [join20(home(), "data", "sessions")] : []] : [...editorTaskRoots(extension), ...id3 === "cline" ? [process.env.CLINE_SESSION_DATA_DIR || join20(process.env.CLINE_DATA_DIR || join20(process.env.CLINE_DIR || join20(homedir13(), ".cline"), "data"), "sessions")] : []];
|
|
54826
54395
|
return localFileAdapter({
|
|
54827
54396
|
id: id3,
|
|
54828
54397
|
name,
|
|
@@ -54830,14 +54399,14 @@ function taskAdapter(id3, name, extension, env2) {
|
|
|
54830
54399
|
capabilities: { history: true, forks: id3 === "cline", children: true, files: true },
|
|
54831
54400
|
roots: roots2,
|
|
54832
54401
|
match: (path) => /^[^/]+\/api_conversation_history\.json$/.test(path) || id3 === "cline" && /^[^/]+\/[^/]+\.messages\.json$/.test(path),
|
|
54833
|
-
extras: (path) => ["history_item.json", "task_metadata.json", "session.json", "ui_messages.json"].map((file2) =>
|
|
54402
|
+
extras: (path) => ["history_item.json", "task_metadata.json", "session.json", "ui_messages.json"].map((file2) => join20(dirname8(path), file2)),
|
|
54834
54403
|
parse(path, files) {
|
|
54835
54404
|
const sdk = path.endsWith(".messages.json"), value = json4(files.get(path));
|
|
54836
54405
|
const records = sdk ? object4(value).messages : value;
|
|
54837
54406
|
if (!Array.isArray(records) || sdk && !text3(value.sessionId)) throw new Error("Unsupported task history.");
|
|
54838
|
-
const read2 = (name2) => object4(files.has(
|
|
54407
|
+
const read2 = (name2) => object4(files.has(join20(dirname8(path), name2)) ? json4(files.get(join20(dirname8(path), name2))) : void 0);
|
|
54839
54408
|
const history = read2("history_item.json"), info = read2("session.json"), task = read2("task_metadata.json");
|
|
54840
|
-
const nativeID = sdk ? value.sessionId :
|
|
54409
|
+
const nativeID = sdk ? value.sessionId : basename10(dirname8(path));
|
|
54841
54410
|
if (history.id && history.id !== nativeID || info.session_id && info.session_id !== nativeID) throw new Error("Task metadata identity mismatch.");
|
|
54842
54411
|
const messages = records.map((raw, index) => {
|
|
54843
54412
|
const row = object4(raw), message2 = conversationMessage(row, `record:${index}`);
|
|
@@ -54877,7 +54446,7 @@ function taskAdapter(id3, name, extension, env2) {
|
|
|
54877
54446
|
title: text3(history.task || info.metadata?.title),
|
|
54878
54447
|
model: text3(lastModel?.modelInfo?.id || lastModel?.model || info.model) || "Unknown model",
|
|
54879
54448
|
provider: text3(lastModel?.modelInfo?.provider || info.provider),
|
|
54880
|
-
usage: !sdk && files.has(
|
|
54449
|
+
usage: !sdk && files.has(join20(dirname8(path), "ui_messages.json")) ? taskUsage(json4(files.get(join20(dirname8(path), "ui_messages.json"))), id3) : void 0
|
|
54881
54450
|
},
|
|
54882
54451
|
note: sdk ? void 0 : "Earlier and editor-only messages may be missing."
|
|
54883
54452
|
};
|
|
@@ -54902,14 +54471,14 @@ var init_extensions = __esm({
|
|
|
54902
54471
|
name: "Continue",
|
|
54903
54472
|
description: "Local IDE and CLI session JSON \xB7 recorded conversation and tool history",
|
|
54904
54473
|
capabilities: { history: true, forks: false, children: false, files: false },
|
|
54905
|
-
roots: () => [
|
|
54474
|
+
roots: () => [join20(sourcePath("continue") || process.env.SESSIONGRAPH_CONTINUE_HOME || process.env.CONTINUE_GLOBAL_DIR || join20(homedir13(), ".continue"), "sessions")],
|
|
54906
54475
|
match: (path) => /^[^/]+\.json$/.test(path) && path !== "sessions.json",
|
|
54907
|
-
extras: (path) => [
|
|
54476
|
+
extras: (path) => [join20(dirname8(path), "sessions.json")],
|
|
54908
54477
|
revisionExtras: false,
|
|
54909
54478
|
parse(path, files) {
|
|
54910
54479
|
const value = object4(json4(files.get(path)));
|
|
54911
54480
|
if (!text3(value.sessionId) || !Array.isArray(value.history)) throw new Error("Unsupported Continue session.");
|
|
54912
|
-
const indexPath =
|
|
54481
|
+
const indexPath = join20(dirname8(path), "sessions.json"), index = files.has(indexPath) ? json4(files.get(indexPath)) : [];
|
|
54913
54482
|
const meta3 = Array.isArray(index) ? object4(index.find((r) => r.sessionId === value.sessionId)) : {};
|
|
54914
54483
|
const messages = value.history.map((item, i) => {
|
|
54915
54484
|
const row = object4(item), raw = object4(row.message), message2 = conversationMessage(raw, `record:${i}`);
|
|
@@ -54944,13 +54513,13 @@ var init_extensions = __esm({
|
|
|
54944
54513
|
});
|
|
54945
54514
|
|
|
54946
54515
|
// server/adapters/harness-extra-formats.ts
|
|
54947
|
-
import { basename as
|
|
54516
|
+
import { basename as basename11, dirname as dirname9, join as join21 } from "node:path";
|
|
54948
54517
|
function kiroHistory(path, files) {
|
|
54949
54518
|
const header = object4(json4(files.get(path)));
|
|
54950
|
-
const ide2 =
|
|
54951
|
-
const nativeID = text3(header.session_id || header.sessionId || header.id) || (ide2 ?
|
|
54519
|
+
const ide2 = basename11(path) === "session.json";
|
|
54520
|
+
const nativeID = text3(header.session_id || header.sessionId || header.id) || (ide2 ? basename11(dirname9(path)) : "");
|
|
54952
54521
|
if (!nativeID) throw new Error("Unsupported Kiro session header.");
|
|
54953
|
-
const side = ide2 ?
|
|
54522
|
+
const side = ide2 ? join21(dirname9(path), "messages.jsonl") : path.replace(/\.json$/, ".jsonl");
|
|
54954
54523
|
if (!files.has(side)) throw new Error("Kiro conversation sidecar is unavailable.");
|
|
54955
54524
|
const { rows: rows2 } = jsonLines(files.get(side));
|
|
54956
54525
|
const messages = rows2.flatMap((r, i) => {
|
|
@@ -54976,7 +54545,7 @@ function kiroHistory(path, files) {
|
|
|
54976
54545
|
};
|
|
54977
54546
|
}
|
|
54978
54547
|
function muxHistory(path, files) {
|
|
54979
|
-
const archive = files.get(
|
|
54548
|
+
const archive = files.get(join21(dirname9(path), "chat-archive.jsonl"));
|
|
54980
54549
|
const records = [...archive ? jsonLines(archive).rows : [], ...jsonLines(files.get(path)).rows];
|
|
54981
54550
|
const unique = /* @__PURE__ */ new Map();
|
|
54982
54551
|
for (const r of records) {
|
|
@@ -54994,7 +54563,7 @@ function muxHistory(path, files) {
|
|
|
54994
54563
|
return m ? [m] : [];
|
|
54995
54564
|
});
|
|
54996
54565
|
if (!messages.length) throw new Error("No readable Mux conversation.");
|
|
54997
|
-
const usagePath =
|
|
54566
|
+
const usagePath = join21(dirname9(path), "session-usage.json");
|
|
54998
54567
|
const usage = files.has(usagePath) ? object4(json4(files.get(usagePath))) : {};
|
|
54999
54568
|
const models = Object.values(object4(usage.byModel)).slice(0, 5e4).map((value) => {
|
|
55000
54569
|
const row = object4(value), buckets = [row.input, row.cached, row.cacheCreate, row.output, row.reasoning].map(object4);
|
|
@@ -55010,7 +54579,7 @@ function muxHistory(path, files) {
|
|
|
55010
54579
|
cost: buckets.every((bucket) => recordedCost(bucket.cost_usd) !== null) ? buckets.reduce((sum, bucket) => sum + bucket.cost_usd, 0) : null
|
|
55011
54580
|
});
|
|
55012
54581
|
}).filter((value) => value !== void 0);
|
|
55013
|
-
return { nativeID:
|
|
54582
|
+
return { nativeID: basename11(dirname9(path)), messages, partial: true, session: { usage: sessionUsage(sumUsage(models), models.some((value) => value.total === null)) } };
|
|
55014
54583
|
}
|
|
55015
54584
|
function devinDesktopHistory(path, files) {
|
|
55016
54585
|
const { rows: rows2 } = jsonLines(files.get(path));
|
|
@@ -55030,12 +54599,12 @@ var init_harness_extra_formats = __esm({
|
|
|
55030
54599
|
});
|
|
55031
54600
|
|
|
55032
54601
|
// server/adapters/harness-files.ts
|
|
55033
|
-
import { basename as
|
|
54602
|
+
import { basename as basename12, dirname as dirname10, join as join22 } from "node:path";
|
|
55034
54603
|
function kimiHistory(path, files) {
|
|
55035
54604
|
const { rows: rows2 } = jsonLines(files.get(path));
|
|
55036
|
-
const folder =
|
|
55037
|
-
const nativeID = agent ? `${
|
|
55038
|
-
const wire =
|
|
54605
|
+
const folder = dirname10(path), id3 = basename12(folder), agent = basename12(dirname10(folder)) === "agents";
|
|
54606
|
+
const nativeID = agent ? `${basename12(dirname10(dirname10(folder)))}/agent/${id3}` : id3;
|
|
54607
|
+
const wire = join22(folder, "wire.jsonl"), wireRows = files.has(wire) ? jsonLines(files.get(wire)).rows : [];
|
|
55039
54608
|
const messages = rows2.flatMap((r, i) => {
|
|
55040
54609
|
const m = message(r, nativeText(r.id) || `context:${i}`);
|
|
55041
54610
|
return m ? [m] : [];
|
|
@@ -55054,7 +54623,7 @@ function museHistory(path, files) {
|
|
|
55054
54623
|
const meta3 = rows2.find((r) => r.payload_type === "runtime.session.metadata");
|
|
55055
54624
|
const ids = new Set(rows2.map((r) => text3(r.stream?.id)).filter(Boolean));
|
|
55056
54625
|
if (!meta3 || ids.size > 1) throw new Error("Unsupported Muse stream.");
|
|
55057
|
-
const nativeID = [...ids][0] ||
|
|
54626
|
+
const nativeID = [...ids][0] || basename12(dirname10(path));
|
|
55058
54627
|
const messages = rows2.flatMap((r, i) => {
|
|
55059
54628
|
const event = object4(r.payload?.event), body = object4(event.message);
|
|
55060
54629
|
const at2 = typeof r.recorded_at === "number" && r.recorded_at >= 1e15 ? r.recorded_at / 1e3 : typeof r.recorded_at === "number" && r.recorded_at < 1e12 ? seconds(r.recorded_at) : time3(r.recorded_at);
|
|
@@ -55072,7 +54641,7 @@ function junieHistory(path, files) {
|
|
|
55072
54641
|
return [recordEvent(r, text3(r.id) || `event:${i}`, kind, r.timestampMs, e10.text ?? e10.prompt ?? e10.message)];
|
|
55073
54642
|
});
|
|
55074
54643
|
if (!messages.length) throw new Error("No supported Junie events.");
|
|
55075
|
-
return { nativeID:
|
|
54644
|
+
return { nativeID: basename12(dirname10(path)), messages, partial: true, note: "Recorded events only." };
|
|
55076
54645
|
}
|
|
55077
54646
|
function augmentHistory(path, files) {
|
|
55078
54647
|
const r = object4(json4(files.get(path)));
|
|
@@ -55084,7 +54653,7 @@ function augmentHistory(path, files) {
|
|
|
55084
54653
|
return { nativeID: r.sessionId, messages, partial: true, session: { title: text3(r.title), created: time3(r.created), model: text3(r.agentState?.modelId) || "Unknown model" }, note: "Recorded exchanges only." };
|
|
55085
54654
|
}
|
|
55086
54655
|
function fxHistory(path, files) {
|
|
55087
|
-
const usage = object4(json4(files.get(path))), meta3 = sidecar2(files,
|
|
54656
|
+
const usage = object4(json4(files.get(path))), meta3 = sidecar2(files, join22(dirname10(path), "session.json"));
|
|
55088
54657
|
const id3 = text3(usage.session_id) || text3(meta3.id);
|
|
55089
54658
|
if (!id3 || !usage.snapshot || meta3.id && meta3.id !== id3) throw new Error("Unsupported Fx session metadata.");
|
|
55090
54659
|
const snapshot2 = object4(usage.snapshot);
|
|
@@ -55127,22 +54696,22 @@ var init_harness_files = __esm({
|
|
|
55127
54696
|
{ id: "prime-agent", name: "Prime Agent", roots: () => [process.env.PRIME_AGENT_SESSION_DIR || process.env.PRIME_AGENT_CODING_AGENT_SESSION_DIR || envHome("PRIME_AGENT_CODING_AGENT_DIR", ".prime/agent", "sessions"), envHome("PRIME_AGENT_CODING_AGENT_DIR", ".prime/agent", "session-artifacts")] },
|
|
55128
54697
|
{ id: "omp", name: "Oh My Pi", roots: () => [envHome("PI_CODING_AGENT_DIR_OMP", ".omp/agent", "sessions")] },
|
|
55129
54698
|
{ id: "senpi", name: "Senpi / OmO Native", roots: () => [envHome("SENPI_CODING_AGENT_DIR", ".senpi/agent", "sessions"), homePath(".omo/agent/sessions")] },
|
|
55130
|
-
{ id: "kimchi", name: "Kimchi", roots: () => [
|
|
55131
|
-
{ id: "gajae", name: "Gajae-Code", roots: () => [
|
|
54699
|
+
{ id: "kimchi", name: "Kimchi", roots: () => [join22(process.env.KIMCHI_CODING_AGENT_DIR || configPath("kimchi/harness"), "sessions")] },
|
|
54700
|
+
{ id: "gajae", name: "Gajae-Code", roots: () => [join22(process.env.GJC_CODING_AGENT_DIR || (process.env.GJC_CONFIG_DIR || process.env.PI_CONFIG_DIR ? join22(process.env.GJC_CONFIG_DIR || process.env.PI_CONFIG_DIR, "agent") : homePath(".gjc/agent")), "sessions"), dataPath("gjc/sessions")] }
|
|
55132
54701
|
].map((s) => ({ ...s, parse: piParse }));
|
|
55133
54702
|
openclawRoots = () => [envHome("OPENCLAW_STATE_DIR", ".openclaw", "agents"), ...[".clawdbot", ".moltbot", ".moldbot"].map((p) => homePath(p, "agents"))];
|
|
55134
54703
|
promaRoots = () => [".proma", ".proma-dev"].flatMap((p) => ["agent-sessions", "sdk-config/sessions", "sdk-config/projects"].map((s) => homePath(p, s)));
|
|
55135
54704
|
definitions = [
|
|
55136
54705
|
...piSources,
|
|
55137
|
-
{ id: "kiro", name: "Kiro", roots: () => [homePath(".kiro/sessions"), appPath("Kiro/User/globalStorage/kiro.kiroagent")], match: (p) => p.endsWith("/session.json") || /^cli\/[^/]+\.json$/.test(p), extras: (p) => [
|
|
55138
|
-
{ id: "mux", name: "Mux", roots: () => [envHome("MUX_ROOT", ".mux", "sessions")], match: (p) => p.endsWith("/chat.jsonl"), extras: (p) => [
|
|
54706
|
+
{ id: "kiro", name: "Kiro", roots: () => [homePath(".kiro/sessions"), appPath("Kiro/User/globalStorage/kiro.kiroagent")], match: (p) => p.endsWith("/session.json") || /^cli\/[^/]+\.json$/.test(p), extras: (p) => [basename12(p) === "session.json" ? join22(dirname10(p), "messages.jsonl") : p.replace(/\.json$/, ".jsonl")], parse: kiroHistory },
|
|
54707
|
+
{ id: "mux", name: "Mux", roots: () => [envHome("MUX_ROOT", ".mux", "sessions")], match: (p) => p.endsWith("/chat.jsonl"), extras: (p) => [join22(dirname10(p), "chat-archive.jsonl"), join22(dirname10(p), "session-usage.json")], parse: muxHistory },
|
|
55139
54708
|
{ id: "devin-desktop", name: "Devin Desktop", roots: () => [appPath("Devin/User/acp-events")], match: (p) => /\.(ndjson|jsonl)$/.test(p), parse: devinDesktopHistory },
|
|
55140
54709
|
{ id: "openclaw", name: "OpenClaw", roots: openclawRoots, match: (p) => /(?:^|\/)sessions\/.*\.jsonl(?:\.[\w.-]+)?$/.test(p) || /session-sqlite-import-archive\/.*\.jsonl\./.test(p), parse: piParse },
|
|
55141
54710
|
{ id: "amp", name: "Amp", roots: () => [dataPath("amp/threads"), tokscalePath("amp-cache/threads")], match: (p) => p.endsWith(".json"), parse: ampHistory },
|
|
55142
54711
|
{ id: "droid", name: "Factory Droid", roots: () => [envHome("FACTORY_HOME", ".factory", "sessions")] },
|
|
55143
54712
|
{ id: "codebuff", name: "Codebuff", roots: () => process.env.CODEBUFF_DATA_DIR ? [process.env.CODEBUFF_DATA_DIR] : ["manicode", "manicode-dev", "manicode-staging"].map((p) => configPath(p)), match: (p) => p.endsWith("/chat-messages.json"), parse: (p, f) => codebuffHistory(p, f, false) },
|
|
55144
54713
|
{ id: "freebuff", name: "Freebuff", roots: () => process.env.FREEBUFF_DATA_DIR ? [process.env.FREEBUFF_DATA_DIR] : process.env.CODEBUFF_DATA_DIR ? [process.env.CODEBUFF_DATA_DIR] : ["manicode", "manicode-dev", "manicode-staging"].map((p) => configPath(p)), match: (p) => p.endsWith("/chat-messages.json"), parse: (p, f) => codebuffHistory(p, f, true) },
|
|
55145
|
-
{ id: "kimi", name: "Kimi CLI / Code", roots: () => [envHome("KIMI_HOME", ".kimi", "sessions"), envHome("KIMI_CODE_HOME", ".kimi-code", "sessions")], match: (p) => p.endsWith("/context.jsonl"), extras: (p) => [
|
|
54714
|
+
{ id: "kimi", name: "Kimi CLI / Code", roots: () => [envHome("KIMI_HOME", ".kimi", "sessions"), envHome("KIMI_CODE_HOME", ".kimi-code", "sessions")], match: (p) => p.endsWith("/context.jsonl"), extras: (p) => [join22(dirname10(p), "wire.jsonl")], parse: kimiHistory },
|
|
55146
54715
|
{ id: "grok", name: "Grok Build", roots: () => [envHome("GROK_HOME", ".grok", "sessions")], match: (p) => p.endsWith("/updates.jsonl"), parse: (p, f) => acpHistory(p, f.get(p)) },
|
|
55147
54716
|
{ id: "jcode", name: "Jcode", roots: () => [envHome("JCODE_HOME", ".jcode", "sessions")], match: (p) => /(?:^|\/)session_[^/]+\.json$/.test(p), extras: (p) => [p.replace(/\.json$/, ".journal.jsonl")], parse: jcodeHistory },
|
|
55148
54717
|
{ id: "cherry-studio", name: "Cherry Studio", roots: () => [appPath("CherryStudio/Data/Agents/.claude/projects"), appPath("CherryStudio/.claude/projects")] },
|
|
@@ -55154,15 +54723,15 @@ var init_harness_files = __esm({
|
|
|
55154
54723
|
{ id: "deepseek-harness", name: "DeepSeek Harness", roots: () => [envHome("DSH_HOME", ".dsh", "sessions")], match: (p) => /(?:^|\/)session(?:\.v\d+)?\.jsonl(?:\.zstd)?$/.test(p), parse: (p, f) => dshHistory(f.get(p)) },
|
|
55155
54724
|
{ id: "aside", name: "Aside", roots: () => [homePath(".aside/u")], match: (p) => /^[^/]+\/sessions\/[^/]+\/messages\.jsonl$/.test(p), parse(p, f) {
|
|
55156
54725
|
const h3 = envelopeHistory(p, f.get(p));
|
|
55157
|
-
h3.nativeID = `${
|
|
54726
|
+
h3.nativeID = `${basename12(dirname10(dirname10(dirname10(p))))}/${basename12(dirname10(p))}`;
|
|
55158
54727
|
return h3;
|
|
55159
54728
|
} },
|
|
55160
|
-
{ id: "vibe", name: "Mistral Vibe", roots: () => [envHome("VIBE_HOME", ".vibe", "logs/session")], match: (p) => p.endsWith("/meta.json") || /^[^/]+\.json$/.test(p), extras: (p) =>
|
|
54729
|
+
{ id: "vibe", name: "Mistral Vibe", roots: () => [envHome("VIBE_HOME", ".vibe", "logs/session")], match: (p) => p.endsWith("/meta.json") || /^[^/]+\.json$/.test(p), extras: (p) => basename12(p) === "meta.json" ? [join22(dirname10(p), "messages.jsonl")] : [], parse: vibeHistory },
|
|
55161
54730
|
{ id: "muse", name: "Muse Code", roots: () => [dataPath("muse/sessions")], match: (p) => p.endsWith("/session.jsonl"), parse: museHistory },
|
|
55162
54731
|
{ id: "junie", name: "Junie", roots: () => [homePath(".junie/sessions")], match: (p) => p.endsWith("/events.jsonl"), parse: junieHistory, description: "Local agent event history \xB7 partial conversation coverage" },
|
|
55163
54732
|
{ id: "augment", name: "Augment Code", roots: () => [homePath(".augment/sessions")], match: (p) => p.endsWith(".json"), parse: augmentHistory, description: "Local exchange records \xB7 partial conversation coverage" },
|
|
55164
|
-
{ id: "fx", name: "Fx", roots: () => [homePath(".fx/sessions")], match: (p) => p.endsWith("/usage-v2.json"), extras: (p) => [
|
|
55165
|
-
{ id: "minimax-code", name: "MiniMax Code", roots: () => [
|
|
54733
|
+
{ id: "fx", name: "Fx", roots: () => [homePath(".fx/sessions")], match: (p) => p.endsWith("/usage-v2.json"), extras: (p) => [join22(dirname10(p), "session.json")], parse: fxHistory, history: false, description: "Session metadata only" },
|
|
54734
|
+
{ id: "minimax-code", name: "MiniMax Code", roots: () => [join22(process.env.TOKSCALE_HEADLESS_DIR || tokscalePath("headless"), "mcode")], parse(p, f) {
|
|
55166
54735
|
const value = f.get(p), { rows: rows2 } = jsonLines(value), ids = new Set(rows2.map((r) => text3(r.sessionId)).filter(Boolean));
|
|
55167
54736
|
if (ids.size !== 1) throw new Error("Headless capture needs one explicit session identity.");
|
|
55168
54737
|
const messages = rows2.flatMap((r, i) => {
|
|
@@ -55189,8 +54758,8 @@ var init_harness_files = __esm({
|
|
|
55189
54758
|
});
|
|
55190
54759
|
|
|
55191
54760
|
// server/adapters/harness-databases.ts
|
|
55192
|
-
import { lstat as
|
|
55193
|
-
import { isAbsolute as
|
|
54761
|
+
import { lstat as lstat9, readFile as readFile3 } from "node:fs/promises";
|
|
54762
|
+
import { isAbsolute as isAbsolute8, join as join23 } from "node:path";
|
|
55194
54763
|
function hermesContent(value) {
|
|
55195
54764
|
if (typeof value !== "string" || !value.startsWith("\0json:")) return value;
|
|
55196
54765
|
try {
|
|
@@ -55310,7 +54879,7 @@ var init_harness_databases = __esm({
|
|
|
55310
54879
|
goose = {
|
|
55311
54880
|
id: "goose",
|
|
55312
54881
|
name: "Goose",
|
|
55313
|
-
paths: dbPaths("goose", () => process.env.GOOSE_PATH_ROOT &&
|
|
54882
|
+
paths: dbPaths("goose", () => process.env.GOOSE_PATH_ROOT && isAbsolute8(process.env.GOOSE_PATH_ROOT) ? [join23(process.env.GOOSE_PATH_ROOT, "data/sessions/sessions.db")] : [dataPath("goose/sessions/sessions.db"), dataPath("Block/goose/sessions/sessions.db"), appPath("goose/sessions/sessions.db"), appPath("Block/goose/sessions/sessions.db"), appPath("Block/goose/data/sessions/sessions.db")], (p) => p.endsWith("sessions.db")),
|
|
55314
54883
|
table: "sessions",
|
|
55315
54884
|
key: "id",
|
|
55316
54885
|
fields: [
|
|
@@ -55377,7 +54946,7 @@ var init_harness_databases = __esm({
|
|
|
55377
54946
|
zed = {
|
|
55378
54947
|
id: "zed",
|
|
55379
54948
|
name: "Zed Agent",
|
|
55380
|
-
paths: dbPaths("zed", () => [process.platform === "darwin" ? appPath("Zed/threads/threads.db") : process.platform === "win32" ?
|
|
54949
|
+
paths: dbPaths("zed", () => [process.platform === "darwin" ? appPath("Zed/threads/threads.db") : process.platform === "win32" ? join23(process.env.LOCALAPPDATA || homePath("AppData/Local"), "Zed/threads/threads.db") : dataPath("zed/threads/threads.db")], (p) => p.endsWith("threads.db")),
|
|
55381
54950
|
table: "threads",
|
|
55382
54951
|
key: "id",
|
|
55383
54952
|
fields: ["id", "summary", "created_at", "updated_at", "data_type", "data", "folder_paths"],
|
|
@@ -55426,15 +54995,15 @@ var init_harness_databases = __esm({
|
|
|
55426
54995
|
paths: async () => {
|
|
55427
54996
|
const override = sourcePath("crush") || process.env.SESSIONGRAPH_CRUSH_HISTORY_DIR;
|
|
55428
54997
|
if (override) return (await historyFiles([override], (p) => p.endsWith("crush.db"))).files;
|
|
55429
|
-
const registry2 =
|
|
54998
|
+
const registry2 = join23(process.env.CRUSH_GLOBAL_DATA || dataPath("crush"), "projects.json");
|
|
55430
54999
|
try {
|
|
55431
|
-
const stat3 = await
|
|
55000
|
+
const stat3 = await lstat9(registry2);
|
|
55432
55001
|
if (!stat3.isFile() || stat3.size > 2e6) throw new Error("Unsupported Crush registry.");
|
|
55433
55002
|
const raw = JSON.parse(await readFile3(registry2, "utf8"));
|
|
55434
55003
|
const paths2 = [];
|
|
55435
55004
|
for (const p of Array.isArray(raw.projects) ? raw.projects.slice(0, 2e4) : []) {
|
|
55436
|
-
if (!
|
|
55437
|
-
const path =
|
|
55005
|
+
if (!isAbsolute8(text3(p.path)) || !text3(p.data_dir)) continue;
|
|
55006
|
+
const path = join23(isAbsolute8(p.data_dir) ? p.data_dir : join23(p.path, p.data_dir), "crush.db");
|
|
55438
55007
|
paths2.push(path);
|
|
55439
55008
|
crushDirectories.set(path, p.path);
|
|
55440
55009
|
}
|
|
@@ -55492,7 +55061,7 @@ var init_harness_databases = __esm({
|
|
|
55492
55061
|
fields: ["id", "title", "model_id", "created_at", "updated_at", "archived", "forked_from_thread_id"],
|
|
55493
55062
|
parse(db2, r) {
|
|
55494
55063
|
const messages = rows(db2, "chat_messages", ["id", "role", "content_json", "created_at", "metadata_json"], ["thread_id", r.id], "created_at").flatMap((row) => {
|
|
55495
|
-
const
|
|
55064
|
+
const metadata3 = usageJSON(row.metadata_json), usage = object4(metadata3.contextUsage);
|
|
55496
55065
|
const m = message({ role: row.role, content: sqliteJSON(row.content_json) }, text3(row.id), seconds(row.created_at));
|
|
55497
55066
|
if (m?.role === "assistant") {
|
|
55498
55067
|
m.usage = recordedUsage({
|
|
@@ -55505,7 +55074,7 @@ var init_harness_databases = __esm({
|
|
|
55505
55074
|
inputIncludesCache: true,
|
|
55506
55075
|
outputIncludesReasoning: true
|
|
55507
55076
|
}, "message", row.id);
|
|
55508
|
-
m.metadata = messageMetadata({ model:
|
|
55077
|
+
m.metadata = messageMetadata({ model: metadata3.responseDetails?.responseModelId || usage.modelId, provider: metadata3.responseDetails?.providerType });
|
|
55509
55078
|
}
|
|
55510
55079
|
return m ? [m] : [];
|
|
55511
55080
|
});
|
|
@@ -55554,7 +55123,7 @@ var init_harness_databases = __esm({
|
|
|
55554
55123
|
});
|
|
55555
55124
|
|
|
55556
55125
|
// server/adapters/harness-metadata.ts
|
|
55557
|
-
import { basename as
|
|
55126
|
+
import { basename as basename13 } from "node:path";
|
|
55558
55127
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
55559
55128
|
function protoFields(value) {
|
|
55560
55129
|
if (value.length > 2e6) throw new Error("Trajectory metadata exceeds 2 MB.");
|
|
@@ -55617,7 +55186,7 @@ var init_harness_metadata = __esm({
|
|
|
55617
55186
|
}
|
|
55618
55187
|
}
|
|
55619
55188
|
if (!created) throw new Error("Trajectory creation time is unavailable.");
|
|
55620
|
-
return { nativeID:
|
|
55189
|
+
return { nativeID: basename13(path, ".db"), messages: [], partial: true, session: { created, directory: directory3 }, note: "Session metadata only." };
|
|
55621
55190
|
}
|
|
55622
55191
|
}));
|
|
55623
55192
|
antigravityCacheAdapter = localFileAdapter({
|
|
@@ -58259,7 +57828,7 @@ var init_protocol = __esm({
|
|
|
58259
57828
|
return;
|
|
58260
57829
|
}
|
|
58261
57830
|
const pollInterval = task2.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1e3;
|
|
58262
|
-
await new Promise((
|
|
57831
|
+
await new Promise((resolve5) => setTimeout(resolve5, pollInterval));
|
|
58263
57832
|
options?.signal?.throwIfAborted();
|
|
58264
57833
|
}
|
|
58265
57834
|
} catch (error62) {
|
|
@@ -58276,7 +57845,7 @@ var init_protocol = __esm({
|
|
|
58276
57845
|
*/
|
|
58277
57846
|
request(request, resultSchema, options) {
|
|
58278
57847
|
const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {};
|
|
58279
|
-
return new Promise((
|
|
57848
|
+
return new Promise((resolve5, reject) => {
|
|
58280
57849
|
const earlyReject = (error62) => {
|
|
58281
57850
|
reject(error62);
|
|
58282
57851
|
};
|
|
@@ -58354,7 +57923,7 @@ var init_protocol = __esm({
|
|
|
58354
57923
|
if (!parseResult.success) {
|
|
58355
57924
|
reject(parseResult.error);
|
|
58356
57925
|
} else {
|
|
58357
|
-
|
|
57926
|
+
resolve5(parseResult.data);
|
|
58358
57927
|
}
|
|
58359
57928
|
} catch (error62) {
|
|
58360
57929
|
reject(error62);
|
|
@@ -58616,12 +58185,12 @@ var init_protocol = __esm({
|
|
|
58616
58185
|
}
|
|
58617
58186
|
} catch {
|
|
58618
58187
|
}
|
|
58619
|
-
return new Promise((
|
|
58188
|
+
return new Promise((resolve5, reject) => {
|
|
58620
58189
|
if (signal.aborted) {
|
|
58621
58190
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
58622
58191
|
return;
|
|
58623
58192
|
}
|
|
58624
|
-
const timeoutId = setTimeout(
|
|
58193
|
+
const timeoutId = setTimeout(resolve5, interval);
|
|
58625
58194
|
signal.addEventListener("abort", () => {
|
|
58626
58195
|
clearTimeout(timeoutId);
|
|
58627
58196
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
@@ -60427,7 +59996,7 @@ var require_code2 = __commonJS({
|
|
|
60427
59996
|
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it2, schemaMap[p]));
|
|
60428
59997
|
}
|
|
60429
59998
|
exports.schemaProperties = schemaProperties;
|
|
60430
|
-
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it: it2 }, func,
|
|
59999
|
+
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it: it2 }, func, context2, passSchema) {
|
|
60431
60000
|
const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
60432
60001
|
const valCxt = [
|
|
60433
60002
|
[names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)],
|
|
@@ -60438,7 +60007,7 @@ var require_code2 = __commonJS({
|
|
|
60438
60007
|
if (it2.opts.dynamicRef)
|
|
60439
60008
|
valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]);
|
|
60440
60009
|
const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
60441
|
-
return
|
|
60010
|
+
return context2 !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context2}, ${args})` : (0, codegen_1._)`${func}(${args})`;
|
|
60442
60011
|
}
|
|
60443
60012
|
exports.callValidateCode = callValidateCode;
|
|
60444
60013
|
var newRegExp = (0, codegen_1._)`new RegExp`;
|
|
@@ -61642,22 +61211,22 @@ var require_compile = __commonJS({
|
|
|
61642
61211
|
}
|
|
61643
61212
|
}
|
|
61644
61213
|
exports.compileSchema = compileSchema;
|
|
61645
|
-
function resolveRef2(
|
|
61214
|
+
function resolveRef2(root2, baseId, ref) {
|
|
61646
61215
|
var _a4;
|
|
61647
61216
|
ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
|
|
61648
|
-
const schOrFunc =
|
|
61217
|
+
const schOrFunc = root2.refs[ref];
|
|
61649
61218
|
if (schOrFunc)
|
|
61650
61219
|
return schOrFunc;
|
|
61651
|
-
let _sch =
|
|
61220
|
+
let _sch = resolve5.call(this, root2, ref);
|
|
61652
61221
|
if (_sch === void 0) {
|
|
61653
|
-
const schema = (_a4 =
|
|
61222
|
+
const schema = (_a4 = root2.localRefs) === null || _a4 === void 0 ? void 0 : _a4[ref];
|
|
61654
61223
|
const { schemaId } = this.opts;
|
|
61655
61224
|
if (schema)
|
|
61656
|
-
_sch = new SchemaEnv({ schema, schemaId, root:
|
|
61225
|
+
_sch = new SchemaEnv({ schema, schemaId, root: root2, baseId });
|
|
61657
61226
|
}
|
|
61658
61227
|
if (_sch === void 0)
|
|
61659
61228
|
return;
|
|
61660
|
-
return
|
|
61229
|
+
return root2.refs[ref] = inlineOrCompile.call(this, _sch);
|
|
61661
61230
|
}
|
|
61662
61231
|
exports.resolveRef = resolveRef2;
|
|
61663
61232
|
function inlineOrCompile(sch) {
|
|
@@ -61675,23 +61244,23 @@ var require_compile = __commonJS({
|
|
|
61675
61244
|
function sameSchemaEnv(s1, s2) {
|
|
61676
61245
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
61677
61246
|
}
|
|
61678
|
-
function
|
|
61247
|
+
function resolve5(root2, ref) {
|
|
61679
61248
|
let sch;
|
|
61680
61249
|
while (typeof (sch = this.refs[ref]) == "string")
|
|
61681
61250
|
ref = sch;
|
|
61682
|
-
return sch || this.schemas[ref] || resolveSchema.call(this,
|
|
61251
|
+
return sch || this.schemas[ref] || resolveSchema.call(this, root2, ref);
|
|
61683
61252
|
}
|
|
61684
|
-
function resolveSchema(
|
|
61253
|
+
function resolveSchema(root2, ref) {
|
|
61685
61254
|
const p = this.opts.uriResolver.parse(ref);
|
|
61686
61255
|
const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p);
|
|
61687
|
-
let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver,
|
|
61688
|
-
if (Object.keys(
|
|
61689
|
-
return getJsonPointer.call(this, p,
|
|
61256
|
+
let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root2.baseId, void 0);
|
|
61257
|
+
if (Object.keys(root2.schema).length > 0 && refPath === baseId) {
|
|
61258
|
+
return getJsonPointer.call(this, p, root2);
|
|
61690
61259
|
}
|
|
61691
61260
|
const id3 = (0, resolve_1.normalizeId)(refPath);
|
|
61692
61261
|
const schOrRef = this.refs[id3] || this.schemas[id3];
|
|
61693
61262
|
if (typeof schOrRef == "string") {
|
|
61694
|
-
const sch = resolveSchema.call(this,
|
|
61263
|
+
const sch = resolveSchema.call(this, root2, schOrRef);
|
|
61695
61264
|
if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== "object")
|
|
61696
61265
|
return;
|
|
61697
61266
|
return getJsonPointer.call(this, p, sch);
|
|
@@ -61706,7 +61275,7 @@ var require_compile = __commonJS({
|
|
|
61706
61275
|
const schId = schema[schemaId];
|
|
61707
61276
|
if (schId)
|
|
61708
61277
|
baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);
|
|
61709
|
-
return new SchemaEnv({ schema, schemaId, root:
|
|
61278
|
+
return new SchemaEnv({ schema, schemaId, root: root2, baseId });
|
|
61710
61279
|
}
|
|
61711
61280
|
return getJsonPointer.call(this, p, schOrRef);
|
|
61712
61281
|
}
|
|
@@ -61718,7 +61287,7 @@ var require_compile = __commonJS({
|
|
|
61718
61287
|
"dependencies",
|
|
61719
61288
|
"definitions"
|
|
61720
61289
|
]);
|
|
61721
|
-
function getJsonPointer(parsedRef, { baseId, schema, root:
|
|
61290
|
+
function getJsonPointer(parsedRef, { baseId, schema, root: root2 }) {
|
|
61722
61291
|
var _a4;
|
|
61723
61292
|
if (((_a4 = parsedRef.fragment) === null || _a4 === void 0 ? void 0 : _a4[0]) !== "/")
|
|
61724
61293
|
return;
|
|
@@ -61737,10 +61306,10 @@ var require_compile = __commonJS({
|
|
|
61737
61306
|
let env2;
|
|
61738
61307
|
if (typeof schema != "boolean" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) {
|
|
61739
61308
|
const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref);
|
|
61740
|
-
env2 = resolveSchema.call(this,
|
|
61309
|
+
env2 = resolveSchema.call(this, root2, $ref);
|
|
61741
61310
|
}
|
|
61742
61311
|
const { schemaId } = this.opts;
|
|
61743
|
-
env2 = env2 || new SchemaEnv({ schema, schemaId, root:
|
|
61312
|
+
env2 = env2 || new SchemaEnv({ schema, schemaId, root: root2, baseId });
|
|
61744
61313
|
if (env2.schema !== env2.root.schema)
|
|
61745
61314
|
return env2;
|
|
61746
61315
|
return void 0;
|
|
@@ -62539,7 +62108,7 @@ var require_fast_uri = __commonJS({
|
|
|
62539
62108
|
}
|
|
62540
62109
|
return uri;
|
|
62541
62110
|
}
|
|
62542
|
-
function
|
|
62111
|
+
function resolve5(baseURI, relativeURI, options) {
|
|
62543
62112
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
62544
62113
|
const {
|
|
62545
62114
|
parsed: baseParsed,
|
|
@@ -62930,7 +62499,7 @@ var require_fast_uri = __commonJS({
|
|
|
62930
62499
|
var fastUri = {
|
|
62931
62500
|
SCHEMES,
|
|
62932
62501
|
normalize: normalize2,
|
|
62933
|
-
resolve:
|
|
62502
|
+
resolve: resolve5,
|
|
62934
62503
|
resolveComponent,
|
|
62935
62504
|
equal,
|
|
62936
62505
|
serialize,
|
|
@@ -63235,8 +62804,8 @@ var require_core = __commonJS({
|
|
|
63235
62804
|
keyRef = sch;
|
|
63236
62805
|
if (sch === void 0) {
|
|
63237
62806
|
const { schemaId } = this.opts;
|
|
63238
|
-
const
|
|
63239
|
-
sch = compile_1.resolveSchema.call(this,
|
|
62807
|
+
const root2 = new compile_1.SchemaEnv({ schema: {}, schemaId });
|
|
62808
|
+
sch = compile_1.resolveSchema.call(this, root2, keyRef);
|
|
63240
62809
|
if (!sch)
|
|
63241
62810
|
return;
|
|
63242
62811
|
this.refs[keyRef] = sch;
|
|
@@ -63597,20 +63166,20 @@ var require_ref = __commonJS({
|
|
|
63597
63166
|
code(cxt) {
|
|
63598
63167
|
const { gen, schema: $ref, it: it2 } = cxt;
|
|
63599
63168
|
const { baseId, schemaEnv: env2, validateName, opts, self: self2 } = it2;
|
|
63600
|
-
const { root:
|
|
63601
|
-
if (($ref === "#" || $ref === "#/") && baseId ===
|
|
63169
|
+
const { root: root2 } = env2;
|
|
63170
|
+
if (($ref === "#" || $ref === "#/") && baseId === root2.baseId)
|
|
63602
63171
|
return callRootRef();
|
|
63603
|
-
const schOrEnv = compile_1.resolveRef.call(self2,
|
|
63172
|
+
const schOrEnv = compile_1.resolveRef.call(self2, root2, baseId, $ref);
|
|
63604
63173
|
if (schOrEnv === void 0)
|
|
63605
63174
|
throw new ref_error_1.default(it2.opts.uriResolver, baseId, $ref);
|
|
63606
63175
|
if (schOrEnv instanceof compile_1.SchemaEnv)
|
|
63607
63176
|
return callValidate(schOrEnv);
|
|
63608
63177
|
return inlineRefSchema(schOrEnv);
|
|
63609
63178
|
function callRootRef() {
|
|
63610
|
-
if (env2 ===
|
|
63179
|
+
if (env2 === root2)
|
|
63611
63180
|
return callRef(cxt, validateName, env2, env2.$async);
|
|
63612
|
-
const rootName = gen.scopeValue("root", { ref:
|
|
63613
|
-
return callRef(cxt, (0, codegen_1._)`${rootName}.validate`,
|
|
63181
|
+
const rootName = gen.scopeValue("root", { ref: root2 });
|
|
63182
|
+
return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root2, root2.$async);
|
|
63614
63183
|
}
|
|
63615
63184
|
function callValidate(sch) {
|
|
63616
63185
|
const v3 = getValidate(cxt, sch);
|
|
@@ -66736,12 +66305,12 @@ var init_stdio2 = __esm({
|
|
|
66736
66305
|
this.onclose?.();
|
|
66737
66306
|
}
|
|
66738
66307
|
send(message2) {
|
|
66739
|
-
return new Promise((
|
|
66308
|
+
return new Promise((resolve5) => {
|
|
66740
66309
|
const json6 = serializeMessage(message2);
|
|
66741
66310
|
if (this._stdout.write(json6)) {
|
|
66742
|
-
|
|
66311
|
+
resolve5();
|
|
66743
66312
|
} else {
|
|
66744
|
-
this._stdout.once("drain",
|
|
66313
|
+
this._stdout.once("drain", resolve5);
|
|
66745
66314
|
}
|
|
66746
66315
|
});
|
|
66747
66316
|
}
|
|
@@ -66778,8 +66347,8 @@ async function runAgentMcp(library, version2) {
|
|
|
66778
66347
|
return { isError: true, content: [{ type: "text", text: `${code}: ${message2}` }] };
|
|
66779
66348
|
}
|
|
66780
66349
|
});
|
|
66781
|
-
const closed = new Promise((
|
|
66782
|
-
server.onclose =
|
|
66350
|
+
const closed = new Promise((resolve5) => {
|
|
66351
|
+
server.onclose = resolve5;
|
|
66783
66352
|
});
|
|
66784
66353
|
const stop = () => {
|
|
66785
66354
|
void server.close();
|
|
@@ -67135,7 +66704,7 @@ var SessionGraphStore = class {
|
|
|
67135
66704
|
}
|
|
67136
66705
|
upsert(candidate) {
|
|
67137
66706
|
const s = candidate.session, previous = this.getSession(s.id);
|
|
67138
|
-
const
|
|
66707
|
+
const metadata3 = {
|
|
67139
66708
|
...s,
|
|
67140
66709
|
model: s.model === "Unknown model" ? previous?.model || s.model : s.model,
|
|
67141
66710
|
tokens: previous?.revision === candidate.revision ? previous.tokens : s.tokens,
|
|
@@ -67149,7 +66718,7 @@ var SessionGraphStore = class {
|
|
|
67149
66718
|
coverage: previous?.coverage || { history: "pending" }
|
|
67150
66719
|
};
|
|
67151
66720
|
this.db.prepare(`INSERT INTO sessions (id,source,native_id,metadata,locator) VALUES (?,?,?,?,?)
|
|
67152
|
-
ON CONFLICT(id) DO UPDATE SET metadata=excluded.metadata,locator=excluded.locator`).run(s.id, s.source, s.nativeID, JSON.stringify(
|
|
66721
|
+
ON CONFLICT(id) DO UPDATE SET metadata=excluded.metadata,locator=excluded.locator`).run(s.id, s.source, s.nativeID, JSON.stringify(metadata3), JSON.stringify(candidate.locator));
|
|
67153
66722
|
}
|
|
67154
66723
|
replace(candidate, messages, partial2, note) {
|
|
67155
66724
|
const usage = summarizeUsage(candidate.session, messages, partial2);
|
|
@@ -67424,7 +66993,7 @@ var SessionGraphStore = class {
|
|
|
67424
66993
|
};
|
|
67425
66994
|
|
|
67426
66995
|
// server/library-service.ts
|
|
67427
|
-
import { basename as basename3 } from "node:path";
|
|
66996
|
+
import { basename as basename3, isAbsolute as isAbsolute3 } from "node:path";
|
|
67428
66997
|
|
|
67429
66998
|
// server/git-checkouts.ts
|
|
67430
66999
|
import { execFile } from "node:child_process";
|
|
@@ -67516,8 +67085,8 @@ var Importer = class {
|
|
|
67516
67085
|
status = { running: false, discovered: 0, imported: 0, unchanged: 0, failed: 0, errors: [], warnings: [] };
|
|
67517
67086
|
job;
|
|
67518
67087
|
adapters;
|
|
67519
|
-
async sources() {
|
|
67520
|
-
return Promise.all(this.adapters.map(async (adapter) => ({ id: adapter.id, name: adapter.name, description: adapter.description, capabilities: adapter.capabilities, available: await adapter.detect().catch(() => false), selected: this.store.selected().includes(adapter.id), ...this.store.sourceInfo(adapter.id) })));
|
|
67088
|
+
async sources(ids) {
|
|
67089
|
+
return Promise.all(this.adapters.filter((adapter) => !ids || ids.includes(adapter.id)).map(async (adapter) => ({ id: adapter.id, name: adapter.name, description: adapter.description, capabilities: adapter.capabilities, available: await adapter.detect().catch(() => false), selected: this.store.selected().includes(adapter.id), ...this.store.sourceInfo(adapter.id) })));
|
|
67521
67090
|
}
|
|
67522
67091
|
start(ids, automatic = false) {
|
|
67523
67092
|
return this.begin(ids, automatic, true);
|
|
@@ -68294,7 +67863,7 @@ var MiniSearch = class _MiniSearch {
|
|
|
68294
67863
|
if ((i + 1) % chunkSize === 0) {
|
|
68295
67864
|
return {
|
|
68296
67865
|
chunk: [],
|
|
68297
|
-
promise: promise3.then(() => new Promise((
|
|
67866
|
+
promise: promise3.then(() => new Promise((resolve5) => setTimeout(resolve5, 0))).then(() => this.addAll(chunk2))
|
|
68298
67867
|
};
|
|
68299
67868
|
} else {
|
|
68300
67869
|
return { chunk: chunk2, promise: promise3 };
|
|
@@ -68573,7 +68142,7 @@ var MiniSearch = class _MiniSearch {
|
|
|
68573
68142
|
this._index.delete(term);
|
|
68574
68143
|
}
|
|
68575
68144
|
if (i % batchSize === 0) {
|
|
68576
|
-
await new Promise((
|
|
68145
|
+
await new Promise((resolve5) => setTimeout(resolve5, batchWait));
|
|
68577
68146
|
}
|
|
68578
68147
|
i += 1;
|
|
68579
68148
|
}
|
|
@@ -69471,7 +69040,7 @@ var objectToNumericMapAsync = async (object6) => {
|
|
|
69471
69040
|
}
|
|
69472
69041
|
return map2;
|
|
69473
69042
|
};
|
|
69474
|
-
var wait = (ms) => new Promise((
|
|
69043
|
+
var wait = (ms) => new Promise((resolve5) => setTimeout(resolve5, ms));
|
|
69475
69044
|
var SPACE_OR_PUNCTUATION = /[\n\r\p{Z}\p{P}]+/u;
|
|
69476
69045
|
|
|
69477
69046
|
// src/search/engine.ts
|
|
@@ -69655,7 +69224,7 @@ var utc = (ms) => ms > 0 && ms <= 864e13 ? new Date(ms).toISOString() : null;
|
|
|
69655
69224
|
var LibraryService = class {
|
|
69656
69225
|
constructor(store, adapters2) {
|
|
69657
69226
|
this.store = store;
|
|
69658
|
-
this.importer = new Importer(store, adapters2);
|
|
69227
|
+
this.importer = adapters2 instanceof Importer ? adapters2 : new Importer(store, adapters2);
|
|
69659
69228
|
}
|
|
69660
69229
|
store;
|
|
69661
69230
|
searchCache;
|
|
@@ -69688,14 +69257,25 @@ var LibraryService = class {
|
|
|
69688
69257
|
key(kind, sessions, filters4) {
|
|
69689
69258
|
return fingerprint([this.store.setting("libraryID"), kind, filters4, sessions]);
|
|
69690
69259
|
}
|
|
69691
|
-
async discoverSources() {
|
|
69260
|
+
async discoverSources(ids) {
|
|
69692
69261
|
const paths2 = this.store.setting("sourcePaths") || {};
|
|
69693
69262
|
return {
|
|
69694
|
-
sources: (await this.importer.sources()).map((source) => ({ ...source, path: paths2[source.id] || null, pathSupported: true, pathHint: sourcePathHint(source.id) })),
|
|
69263
|
+
sources: (await this.importer.sources(ids)).map((source) => ({ ...source, path: paths2[source.id] || null, pathSupported: true, pathHint: sourcePathHint(source.id) })),
|
|
69695
69264
|
configured: this.store.setting("selected") !== void 0,
|
|
69696
69265
|
autoImport: this.store.autoImportEnabled()
|
|
69697
69266
|
};
|
|
69698
69267
|
}
|
|
69268
|
+
/** Editing a location neither selects a source nor imports its conversations. */
|
|
69269
|
+
setSourcePath(id3, path) {
|
|
69270
|
+
this.validateSources([id3]);
|
|
69271
|
+
if (path !== null && (typeof path !== "string" || !path.trim() || path.includes("\0") || !isAbsolute3(path) && path !== "~" && !path.startsWith("~/"))) invalid("Enter an absolute history path, or choose Automatic.");
|
|
69272
|
+
return this.configure(() => {
|
|
69273
|
+
const paths2 = this.store.setting("sourcePaths") || {};
|
|
69274
|
+
if (path === null) delete paths2[id3];
|
|
69275
|
+
else paths2[id3] = localPath(path);
|
|
69276
|
+
this.store.setting("sourcePaths", paths2);
|
|
69277
|
+
});
|
|
69278
|
+
}
|
|
69699
69279
|
configure(change) {
|
|
69700
69280
|
if (this.importer.status.running || !this.store.acquireImport()) throw new LibraryError("IMPORT_BUSY", "Another import is running. Try again when it finishes.");
|
|
69701
69281
|
try {
|
|
@@ -70200,7 +69780,7 @@ async function runCli(argv, io = {}) {
|
|
|
70200
69780
|
if (http && credential) {
|
|
70201
69781
|
const server = await http.startAgentHttp(library, port, credential, version2);
|
|
70202
69782
|
const url2 = `http://127.0.0.1:${server.address().port}`;
|
|
70203
|
-
const closed = new Promise((
|
|
69783
|
+
const closed = new Promise((resolve5) => server.once("close", resolve5));
|
|
70204
69784
|
const stop = () => {
|
|
70205
69785
|
server.close();
|
|
70206
69786
|
server.closeAllConnections();
|