lody 0.101.0 → 0.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{acp-w0Ug9k0u.js → acp-Bsd2Lmd6.js} +2 -2
- package/dist/chunks/{cloudflared-native-BPe7OSUZ.js → cloudflared-native-DbUToPHH.js} +2 -2
- package/dist/chunks/daemon-session-tools-BeXk1A1E.js +97 -0
- package/dist/chunks/{directory-handle-CjQk33eZ.js → directory-handle-CtdCjbNh.js} +2 -2
- package/dist/chunks/{index-D-wHGCLA.js → index-C0n6fro1.js} +11 -11
- package/dist/chunks/loro_wasm_bg-DIxpLA2J.js +9153 -0
- package/dist/chunks/{package-BNnQMV73.js → package-BoOO46ct.js} +2 -2
- package/dist/chunks/{review-viewer-Dfh1Vp30.js → review-viewer-B6wZ9fN1.js} +9 -8
- package/dist/chunks/{schemas-9JpFbIUJ.js → schemas-WuyisFi9.js} +5 -5
- package/dist/chunks/session-DyqwlJbY.js +10 -0
- package/dist/claude-acp.js +25216 -32219
- package/dist/cloudflared-worker.js +2 -2
- package/dist/codex-acp.js +1 -1
- package/dist/deepseek-acp.js +2 -2
- package/dist/file-index-scan-worker.js +2 -2
- package/dist/grok-acp.js +65 -0
- package/dist/index.js +1048 -747
- package/package.json +3 -3
- package/dist/chunks/loro_wasm_bg-D4nQYTqS.js +0 -8458
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pathToFileURL } from "node:url";
|
|
2
|
-
import { c as array, u as unknown, N as NEVER, e as union, n as number, s as string, o as object, r as record, Q as int, l as literal, b as boolean, E as intersection, H as url } from "./schemas-
|
|
2
|
+
import { c as array, u as unknown, N as NEVER, e as union, n as number, s as string, o as object, r as record, Q as int, l as literal, b as boolean, E as intersection, H as url } from "./schemas-WuyisFi9.js";
|
|
3
3
|
const DEEPSEEK_HARNESS_PERMISSION_PRESETS = [
|
|
4
4
|
{
|
|
5
5
|
id: "read-only",
|
|
@@ -4929,4 +4929,4 @@ export {
|
|
|
4929
4929
|
DEEPSEEK_HARNESS_DEFAULT_MODEL as q,
|
|
4930
4930
|
DEEPSEEK_HARNESS_PROVIDER as r
|
|
4931
4931
|
};
|
|
4932
|
-
//# sourceMappingURL=acp-
|
|
4932
|
+
//# sourceMappingURL=acp-Bsd2Lmd6.js.map
|
|
@@ -2,7 +2,7 @@ import { spawn } from "node:child_process";
|
|
|
2
2
|
import { mkdtemp, writeFile, rm } from "node:fs/promises";
|
|
3
3
|
import { tmpdir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
|
-
import { o as object, a as _enum, s as string } from "./schemas-
|
|
5
|
+
import { o as object, a as _enum, s as string } from "./schemas-WuyisFi9.js";
|
|
6
6
|
class CloudflaredError extends Error {
|
|
7
7
|
constructor(stage, message, cause) {
|
|
8
8
|
super(message, { cause });
|
|
@@ -237,4 +237,4 @@ export {
|
|
|
237
237
|
CloudflaredError as C,
|
|
238
238
|
startCloudflaredNative as s
|
|
239
239
|
};
|
|
240
|
-
//# sourceMappingURL=cloudflared-native-
|
|
240
|
+
//# sourceMappingURL=cloudflared-native-DbUToPHH.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { a as getSessionCommandEnvironment, b as getSessionRoomId, i as isLoroRepoDocDeleted, r as runWithMcpSessionContext, S as SessionToolResultSchema, c as buildSessionToolServer } from "../index.js";
|
|
2
|
+
import "path";
|
|
3
|
+
import "node:fs";
|
|
4
|
+
import "node:readline";
|
|
5
|
+
import "node:async_hooks";
|
|
6
|
+
import "fs";
|
|
7
|
+
import "crypto";
|
|
8
|
+
import "node:os";
|
|
9
|
+
import "node:path";
|
|
10
|
+
import "./schemas-WuyisFi9.js";
|
|
11
|
+
import "node:events";
|
|
12
|
+
import "node:child_process";
|
|
13
|
+
import "node:process";
|
|
14
|
+
import "node:tty";
|
|
15
|
+
import "os";
|
|
16
|
+
import "node:crypto";
|
|
17
|
+
import "util";
|
|
18
|
+
import "stream";
|
|
19
|
+
import "buffer";
|
|
20
|
+
import "events";
|
|
21
|
+
import "zlib";
|
|
22
|
+
import "tty";
|
|
23
|
+
import "string_decoder";
|
|
24
|
+
import "http";
|
|
25
|
+
import "https";
|
|
26
|
+
import "node:util";
|
|
27
|
+
import "node:fs/promises";
|
|
28
|
+
import "node:zlib";
|
|
29
|
+
import "child_process";
|
|
30
|
+
import "./plan-mode-D0D5cnMs.js";
|
|
31
|
+
import "./acp-Bsd2Lmd6.js";
|
|
32
|
+
import "node:url";
|
|
33
|
+
import "./subagent-events-BJ9JwZva.js";
|
|
34
|
+
import "./loro_wasm_bg-DIxpLA2J.js";
|
|
35
|
+
import "perf_hooks";
|
|
36
|
+
import "net";
|
|
37
|
+
import "tls";
|
|
38
|
+
import "url";
|
|
39
|
+
import "assert";
|
|
40
|
+
import "fs/promises";
|
|
41
|
+
import "better-sqlite3";
|
|
42
|
+
import "node:diagnostics_channel";
|
|
43
|
+
import "node:assert";
|
|
44
|
+
import "node:net";
|
|
45
|
+
import "node:http";
|
|
46
|
+
import "node:stream";
|
|
47
|
+
import "node:buffer";
|
|
48
|
+
import "node:querystring";
|
|
49
|
+
import "node:tls";
|
|
50
|
+
import "node:perf_hooks";
|
|
51
|
+
import "node:util/types";
|
|
52
|
+
import "node:worker_threads";
|
|
53
|
+
import "node:console";
|
|
54
|
+
import "node:dns";
|
|
55
|
+
import "./directory-handle-CtdCjbNh.js";
|
|
56
|
+
import "./diff-line-counts-DDGc5P-T.js";
|
|
57
|
+
import "node:stream/promises";
|
|
58
|
+
import "node:string_decoder";
|
|
59
|
+
import "./package-BoOO46ct.js";
|
|
60
|
+
import "./session-DyqwlJbY.js";
|
|
61
|
+
import "async_hooks";
|
|
62
|
+
import "module";
|
|
63
|
+
import "./diff-worker-task-MZsLArT5.js";
|
|
64
|
+
import "./workspace-watch-protocol-POg9Lpeq.js";
|
|
65
|
+
import "node:dns/promises";
|
|
66
|
+
import "./cloudflared-native-DbUToPHH.js";
|
|
67
|
+
import "node:timers/promises";
|
|
68
|
+
import "node:module";
|
|
69
|
+
import "node:v8";
|
|
70
|
+
import "http2";
|
|
71
|
+
let handlers;
|
|
72
|
+
const getHandlers = () => {
|
|
73
|
+
if (!handlers) {
|
|
74
|
+
handlers = /* @__PURE__ */ new Map();
|
|
75
|
+
void buildSessionToolServer(handlers);
|
|
76
|
+
}
|
|
77
|
+
return handlers;
|
|
78
|
+
};
|
|
79
|
+
async function executeDaemonSessionTool(context, name, args) {
|
|
80
|
+
const environment = getSessionCommandEnvironment();
|
|
81
|
+
if (!environment || context.machineId !== environment.auth.machineId || context.workspaceId !== environment.workspace.id)
|
|
82
|
+
throw new Error("Session tool scope mismatch");
|
|
83
|
+
const invocation = environment.host.readInvocation(context.sessionId);
|
|
84
|
+
if (!invocation.active || invocation.requesterUserId !== environment.auth.userId)
|
|
85
|
+
throw new Error("Session tool requires an active local user Turn");
|
|
86
|
+
const row = await environment.manager.repo.getDocMeta(getSessionRoomId(context.sessionId));
|
|
87
|
+
if (!row?.meta || isLoroRepoDocDeleted(row) || row.meta.machineId !== environment.auth.machineId)
|
|
88
|
+
throw new Error("Requester Session does not belong to this machine");
|
|
89
|
+
const handler = getHandlers().get(name);
|
|
90
|
+
if (!handler) throw new Error(`Unsupported daemon Session tool: ${name}`);
|
|
91
|
+
const result = await runWithMcpSessionContext(context, () => handler(args));
|
|
92
|
+
return SessionToolResultSchema.parse({ type: "session/tool-result", ...result });
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
executeDaemonSessionTool
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=daemon-session-tools-BeXk1A1E.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as object, s as string, l as literal, b as boolean, a as _enum, e as union, n as number, d as discriminatedUnion, c as array, r as record, P as tuple, u as unknown } from "./schemas-
|
|
1
|
+
import { o as object, s as string, l as literal, b as boolean, a as _enum, e as union, n as number, d as discriminatedUnion, c as array, r as record, P as tuple, u as unknown } from "./schemas-WuyisFi9.js";
|
|
2
2
|
import { execFile } from "node:child_process";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import path__default from "node:path";
|
|
@@ -1178,4 +1178,4 @@ export {
|
|
|
1178
1178
|
writeCodeCollabFileIndexToFlock as y,
|
|
1179
1179
|
buildCodeCollabFileIndexState as z
|
|
1180
1180
|
};
|
|
1181
|
-
//# sourceMappingURL=directory-handle-
|
|
1181
|
+
//# sourceMappingURL=directory-handle-CtdCjbNh.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire } from "module";
|
|
2
|
-
import
|
|
2
|
+
import require$$1, { execFile as execFile$1, spawn } from "node:child_process";
|
|
3
3
|
import { createRequire as createRequire$1 } from "node:module";
|
|
4
4
|
import fs__default, { readFileSync, writeFileSync } from "node:fs";
|
|
5
5
|
import path__default from "node:path";
|
|
6
6
|
import { Writable, Readable } from "node:stream";
|
|
7
7
|
import { StringDecoder } from "node:string_decoder";
|
|
8
|
-
import
|
|
8
|
+
import fs__default$1, { constants, readFile, realpath } from "node:fs/promises";
|
|
9
9
|
import { randomUUID, createHash } from "node:crypto";
|
|
10
10
|
import process$1 from "node:process";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -26678,7 +26678,7 @@ var isWsl = () => {
|
|
|
26678
26678
|
return false;
|
|
26679
26679
|
};
|
|
26680
26680
|
var is_wsl_default = process$1.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
26681
|
-
var execFile = promisify(
|
|
26681
|
+
var execFile = promisify(require$$1.execFile);
|
|
26682
26682
|
var powerShellPath = () => `${process$1.env.SYSTEMROOT || process$1.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
26683
26683
|
var executePowerShell = async (command, options = {}) => {
|
|
26684
26684
|
const {
|
|
@@ -26719,7 +26719,7 @@ function parseMountPointFromConfig(content2) {
|
|
|
26719
26719
|
return match.groups.mountPoint.trim().replaceAll(/^["']|["']$/g, "");
|
|
26720
26720
|
}
|
|
26721
26721
|
}
|
|
26722
|
-
var execFile2 = promisify(
|
|
26722
|
+
var execFile2 = promisify(require$$1.execFile);
|
|
26723
26723
|
var wslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
26724
26724
|
const defaultMountPoint = "/mnt/";
|
|
26725
26725
|
let mountPoint;
|
|
@@ -26730,14 +26730,14 @@ var wslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
|
26730
26730
|
const configFilePath = "/etc/wsl.conf";
|
|
26731
26731
|
let isConfigFileExists = false;
|
|
26732
26732
|
try {
|
|
26733
|
-
await
|
|
26733
|
+
await fs__default$1.access(configFilePath, constants.F_OK);
|
|
26734
26734
|
isConfigFileExists = true;
|
|
26735
26735
|
} catch {
|
|
26736
26736
|
}
|
|
26737
26737
|
if (!isConfigFileExists) {
|
|
26738
26738
|
return defaultMountPoint;
|
|
26739
26739
|
}
|
|
26740
|
-
const configContent = await
|
|
26740
|
+
const configContent = await fs__default$1.readFile(configFilePath, { encoding: "utf8" });
|
|
26741
26741
|
const parsedMountPoint = parseMountPointFromConfig(configContent);
|
|
26742
26742
|
if (parsedMountPoint === void 0) {
|
|
26743
26743
|
return defaultMountPoint;
|
|
@@ -26757,7 +26757,7 @@ var canAccessPowerShell = async () => {
|
|
|
26757
26757
|
canAccessPowerShellPromise ??= (async () => {
|
|
26758
26758
|
try {
|
|
26759
26759
|
const psPath = await powerShellPath2();
|
|
26760
|
-
await
|
|
26760
|
+
await fs__default$1.access(psPath, constants.X_OK);
|
|
26761
26761
|
return true;
|
|
26762
26762
|
} catch {
|
|
26763
26763
|
return false;
|
|
@@ -26799,7 +26799,7 @@ var convertWslPathToWindows = async (paths) => {
|
|
|
26799
26799
|
}
|
|
26800
26800
|
return isBatch ? results : results[0];
|
|
26801
26801
|
};
|
|
26802
|
-
var execFile3 = promisify(
|
|
26802
|
+
var execFile3 = promisify(require$$1.execFile);
|
|
26803
26803
|
var powerShellPath3 = () => `${process$1.env.SYSTEMROOT || process$1.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
26804
26804
|
var argumentsPrefix = [
|
|
26805
26805
|
"-NoProfile",
|
|
@@ -27096,7 +27096,7 @@ var baseOpen = async (options) => {
|
|
|
27096
27096
|
const isBundled = !__dirname$1 || __dirname$1 === "/";
|
|
27097
27097
|
let exeLocalXdgOpen = false;
|
|
27098
27098
|
try {
|
|
27099
|
-
await
|
|
27099
|
+
await fs__default$1.access(localXdgOpenPath, constants.X_OK);
|
|
27100
27100
|
exeLocalXdgOpen = true;
|
|
27101
27101
|
} catch {
|
|
27102
27102
|
}
|
|
@@ -27117,7 +27117,7 @@ var baseOpen = async (options) => {
|
|
|
27117
27117
|
if (options.target) {
|
|
27118
27118
|
cliArguments.push(options.target);
|
|
27119
27119
|
}
|
|
27120
|
-
const subprocess =
|
|
27120
|
+
const subprocess = require$$1.spawn(command, cliArguments, childProcessOptions);
|
|
27121
27121
|
if (options.wait) {
|
|
27122
27122
|
return new Promise((resolve, reject) => {
|
|
27123
27123
|
subprocess.once("error", reject);
|
|
@@ -35224,4 +35224,4 @@ function startAcpServer() {
|
|
|
35224
35224
|
}
|
|
35225
35225
|
createCodexAcpApp({ name: package_default.name, createAgent }).connect(acpJsonStream);
|
|
35226
35226
|
}
|
|
35227
|
-
//# sourceMappingURL=index-
|
|
35227
|
+
//# sourceMappingURL=index-C0n6fro1.js.map
|