lody 0.101.0 → 0.101.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-CEUQAboP.js} +4 -4
- package/dist/claude-acp.js +25216 -32219
- package/dist/codex-acp.js +1 -1
- package/dist/index.js +672 -662
- package/package.json +3 -3
- package/dist/chunks/loro_wasm_bg-D4nQYTqS.js +0 -8458
|
@@ -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
|