lody 0.67.3 → 0.68.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-DO0iziHq.js → index-JkdY-hwh.js} +5 -5
- package/dist/chunks/{review-viewer-DoxiB4Vb.js → review-viewer-Cdd4AwdU.js} +2 -2
- package/dist/claude-acp.js +182 -3
- package/dist/codex-acp.js +1 -1
- package/dist/index.js +2658 -582
- package/package.json +8 -8
- package/dist/chunks/baseline-config-BPa_f3S0.js +0 -283
- package/dist/chunks/baseline-config-CcYq1mUH.js +0 -245
|
@@ -4,7 +4,7 @@ import { createRequire as createRequire$1 } from "node:module";
|
|
|
4
4
|
import { Writable, Readable } from "node:stream";
|
|
5
5
|
import fs__default from "node:fs";
|
|
6
6
|
import path__default from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fs__default$1, { readFile, constants } from "node:fs/promises";
|
|
8
8
|
import process$1 from "node:process";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
10
|
import { promisify } from "node:util";
|
|
@@ -22328,14 +22328,14 @@ var wslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
|
22328
22328
|
const configFilePath = "/etc/wsl.conf";
|
|
22329
22329
|
let isConfigFileExists = false;
|
|
22330
22330
|
try {
|
|
22331
|
-
await
|
|
22331
|
+
await fs__default$1.access(configFilePath, constants.F_OK);
|
|
22332
22332
|
isConfigFileExists = true;
|
|
22333
22333
|
} catch {
|
|
22334
22334
|
}
|
|
22335
22335
|
if (!isConfigFileExists) {
|
|
22336
22336
|
return defaultMountPoint;
|
|
22337
22337
|
}
|
|
22338
|
-
const configContent = await
|
|
22338
|
+
const configContent = await fs__default$1.readFile(configFilePath, { encoding: "utf8" });
|
|
22339
22339
|
const parsedMountPoint = parseMountPointFromConfig(configContent);
|
|
22340
22340
|
if (parsedMountPoint === void 0) {
|
|
22341
22341
|
return defaultMountPoint;
|
|
@@ -22355,7 +22355,7 @@ var canAccessPowerShell = async () => {
|
|
|
22355
22355
|
canAccessPowerShellPromise ??= (async () => {
|
|
22356
22356
|
try {
|
|
22357
22357
|
const psPath = await powerShellPath2();
|
|
22358
|
-
await
|
|
22358
|
+
await fs__default$1.access(psPath, constants.X_OK);
|
|
22359
22359
|
return true;
|
|
22360
22360
|
} catch {
|
|
22361
22361
|
return false;
|
|
@@ -22638,7 +22638,7 @@ var baseOpen = async (options) => {
|
|
|
22638
22638
|
const isBundled = !__dirname$1 || __dirname$1 === "/";
|
|
22639
22639
|
let exeLocalXdgOpen = false;
|
|
22640
22640
|
try {
|
|
22641
|
-
await
|
|
22641
|
+
await fs__default$1.access(localXdgOpenPath, constants.X_OK);
|
|
22642
22642
|
exeLocalXdgOpen = true;
|
|
22643
22643
|
} catch {
|
|
22644
22644
|
}
|
|
@@ -3,8 +3,8 @@ import { readFile, mkdir, writeFile, rename } from "node:fs/promises";
|
|
|
3
3
|
import os__default from "node:os";
|
|
4
4
|
import path__default from "node:path";
|
|
5
5
|
import process from "node:process";
|
|
6
|
-
const reviewViewerVersion = "0.
|
|
7
|
-
const reviewViewerSha256 = "
|
|
6
|
+
const reviewViewerVersion = "0.68.1";
|
|
7
|
+
const reviewViewerSha256 = "b66fe7a47d26d463570208d5fb3d09107c806dfbfbaed5c85c669b9438812e38";
|
|
8
8
|
const reviewViewerFileName = "standalone.html";
|
|
9
9
|
const DEFAULT_CDN_BASES = ["https://cdn.jsdelivr.net/npm", "https://unpkg.com"];
|
|
10
10
|
function cacheDir() {
|
package/dist/claude-acp.js
CHANGED
|
@@ -23,12 +23,11 @@ import process$1 from "node:process";
|
|
|
23
23
|
import { a as array, c as unknown, N as NEVER, u as union, n as number, s as string, o as object, r as record, C as int, l as literal, b as boolean, i as intersection, D as url } from "./chunks/schemas-muln0r74.js";
|
|
24
24
|
import { execFile as execFile$1 } from "node:child_process";
|
|
25
25
|
import { randomUUID as randomUUID$1 } from "node:crypto";
|
|
26
|
-
import * as
|
|
26
|
+
import * as fs$4 from "node:fs/promises";
|
|
27
27
|
import { promisify as promisify$1 } from "node:util";
|
|
28
28
|
import * as fs$3 from "node:fs";
|
|
29
29
|
import { WritableStream as WritableStream$1, ReadableStream as ReadableStream$1 } from "node:stream/web";
|
|
30
30
|
import * as require$$1 from "https";
|
|
31
|
-
import { MODE_CONFIG_ID, FAST_MODE_CONFIG_ID, resolveFastModeEnabled, MODEL_CONFIG_ID, buildAvailableModes, EFFORT_CONFIG_ID, buildConfigOptions, clientSupportsBooleanConfigOptions, AGENT_CONFIG_ID, DEFAULT_AGENT_ID, createFastModeConfigOption, fastModeStateEnabled, BUILTIN_AGENT_NAMES } from "./chunks/baseline-config-CcYq1mUH.js";
|
|
32
31
|
(async () => {
|
|
33
32
|
var jz = Object.create;
|
|
34
33
|
var { getPrototypeOf: Uz, defineProperty: $g, getOwnPropertyNames: zz } = Object;
|
|
@@ -63038,6 +63037,186 @@ ${content.text}
|
|
|
63038
63037
|
req.end();
|
|
63039
63038
|
});
|
|
63040
63039
|
}
|
|
63040
|
+
const BUILTIN_AGENT_NAMES = /* @__PURE__ */ new Set([
|
|
63041
|
+
"claude",
|
|
63042
|
+
"general-purpose",
|
|
63043
|
+
"Explore",
|
|
63044
|
+
"Plan",
|
|
63045
|
+
"statusline-setup"
|
|
63046
|
+
]);
|
|
63047
|
+
const DEFAULT_AGENT_ID = "default";
|
|
63048
|
+
const MODE_CONFIG_ID = "mode";
|
|
63049
|
+
const MODEL_CONFIG_ID = "model";
|
|
63050
|
+
const EFFORT_CONFIG_ID = "effort";
|
|
63051
|
+
const AGENT_CONFIG_ID = "agent";
|
|
63052
|
+
const FAST_MODE_CONFIG_ID = "fast";
|
|
63053
|
+
const FAST_MODE_ON = "on";
|
|
63054
|
+
const FAST_MODE_OFF = "off";
|
|
63055
|
+
const FAST_MODE_DESCRIPTION = "Faster responses on supported models";
|
|
63056
|
+
function buildAvailableModes(modelInfo, options = {}) {
|
|
63057
|
+
const modes = [];
|
|
63058
|
+
if (modelInfo?.supportsAutoMode === true) {
|
|
63059
|
+
modes.push({
|
|
63060
|
+
id: "auto",
|
|
63061
|
+
name: "Auto",
|
|
63062
|
+
description: "Use a model classifier to approve/deny permission prompts"
|
|
63063
|
+
});
|
|
63064
|
+
}
|
|
63065
|
+
modes.push({
|
|
63066
|
+
id: "default",
|
|
63067
|
+
name: "Default",
|
|
63068
|
+
description: "Standard behavior, prompts for dangerous operations"
|
|
63069
|
+
}, {
|
|
63070
|
+
id: "acceptEdits",
|
|
63071
|
+
name: "Accept Edits",
|
|
63072
|
+
description: "Auto-accept file edit operations"
|
|
63073
|
+
}, {
|
|
63074
|
+
id: "plan",
|
|
63075
|
+
name: "Plan Mode",
|
|
63076
|
+
description: "Planning mode, no actual tool execution"
|
|
63077
|
+
}, {
|
|
63078
|
+
id: "dontAsk",
|
|
63079
|
+
name: "Don't Ask",
|
|
63080
|
+
description: "Don't prompt for permissions, deny if not pre-approved"
|
|
63081
|
+
});
|
|
63082
|
+
if (options.allowBypass === true) {
|
|
63083
|
+
modes.push({
|
|
63084
|
+
id: "bypassPermissions",
|
|
63085
|
+
name: "Bypass Permissions",
|
|
63086
|
+
description: "Bypass all permission checks"
|
|
63087
|
+
});
|
|
63088
|
+
}
|
|
63089
|
+
return modes;
|
|
63090
|
+
}
|
|
63091
|
+
function fastModeStateEnabled(state) {
|
|
63092
|
+
return state !== "off";
|
|
63093
|
+
}
|
|
63094
|
+
function clientSupportsBooleanConfigOptions(clientCapabilities) {
|
|
63095
|
+
return clientCapabilities?.session?.configOptions?.boolean != null;
|
|
63096
|
+
}
|
|
63097
|
+
function createFastModeConfigOption(enabled, useBooleanOption) {
|
|
63098
|
+
const base = {
|
|
63099
|
+
id: FAST_MODE_CONFIG_ID,
|
|
63100
|
+
name: "Fast mode",
|
|
63101
|
+
description: FAST_MODE_DESCRIPTION,
|
|
63102
|
+
category: "model_config"
|
|
63103
|
+
};
|
|
63104
|
+
if (useBooleanOption) {
|
|
63105
|
+
return {
|
|
63106
|
+
...base,
|
|
63107
|
+
type: "boolean",
|
|
63108
|
+
currentValue: enabled
|
|
63109
|
+
};
|
|
63110
|
+
}
|
|
63111
|
+
return {
|
|
63112
|
+
...base,
|
|
63113
|
+
type: "select",
|
|
63114
|
+
currentValue: enabled ? FAST_MODE_ON : FAST_MODE_OFF,
|
|
63115
|
+
options: [
|
|
63116
|
+
{
|
|
63117
|
+
value: FAST_MODE_ON,
|
|
63118
|
+
name: "On"
|
|
63119
|
+
},
|
|
63120
|
+
{
|
|
63121
|
+
value: FAST_MODE_OFF,
|
|
63122
|
+
name: "Off"
|
|
63123
|
+
}
|
|
63124
|
+
]
|
|
63125
|
+
};
|
|
63126
|
+
}
|
|
63127
|
+
function resolveFastModeEnabled(params) {
|
|
63128
|
+
const value = params.value;
|
|
63129
|
+
if (typeof value === "boolean") {
|
|
63130
|
+
return value;
|
|
63131
|
+
}
|
|
63132
|
+
if (value === FAST_MODE_ON) {
|
|
63133
|
+
return true;
|
|
63134
|
+
}
|
|
63135
|
+
if (value === FAST_MODE_OFF) {
|
|
63136
|
+
return false;
|
|
63137
|
+
}
|
|
63138
|
+
throw new Error(`Invalid value for config option ${FAST_MODE_CONFIG_ID}: ${value}`);
|
|
63139
|
+
}
|
|
63140
|
+
function buildConfigOptions(modes, models, modelInfos, currentEffortLevel, agents = [], currentAgent = DEFAULT_AGENT_ID, fastMode) {
|
|
63141
|
+
const options = [
|
|
63142
|
+
{
|
|
63143
|
+
id: MODE_CONFIG_ID,
|
|
63144
|
+
name: "Mode",
|
|
63145
|
+
description: "Session permission mode",
|
|
63146
|
+
category: "mode",
|
|
63147
|
+
type: "select",
|
|
63148
|
+
currentValue: modes.currentModeId,
|
|
63149
|
+
options: modes.availableModes.map((mode) => ({
|
|
63150
|
+
value: mode.id,
|
|
63151
|
+
name: mode.name,
|
|
63152
|
+
description: mode.description
|
|
63153
|
+
}))
|
|
63154
|
+
},
|
|
63155
|
+
{
|
|
63156
|
+
id: MODEL_CONFIG_ID,
|
|
63157
|
+
name: "Model",
|
|
63158
|
+
description: "AI model to use",
|
|
63159
|
+
category: "model",
|
|
63160
|
+
type: "select",
|
|
63161
|
+
currentValue: models.currentModelId,
|
|
63162
|
+
options: models.availableModels.map((model) => ({
|
|
63163
|
+
value: model.modelId,
|
|
63164
|
+
name: model.name,
|
|
63165
|
+
description: model.description ?? void 0
|
|
63166
|
+
}))
|
|
63167
|
+
}
|
|
63168
|
+
];
|
|
63169
|
+
const currentModelInfo = modelInfos.find((model) => model.value === models.currentModelId);
|
|
63170
|
+
const supportedLevels = currentModelInfo?.supportsEffort ? currentModelInfo.supportedEffortLevels ?? [] : [];
|
|
63171
|
+
if (supportedLevels.length > 0) {
|
|
63172
|
+
const effortOptions = [
|
|
63173
|
+
{
|
|
63174
|
+
value: "default",
|
|
63175
|
+
name: "Default"
|
|
63176
|
+
},
|
|
63177
|
+
...supportedLevels.map((level) => ({
|
|
63178
|
+
value: level,
|
|
63179
|
+
name: level.split(/[_-]/).map((part) => part ? part.charAt(0).toUpperCase() + part.slice(1) : part).join(" ")
|
|
63180
|
+
}))
|
|
63181
|
+
];
|
|
63182
|
+
const includes = (level) => level === "default" || supportedLevels.includes(level);
|
|
63183
|
+
const validEffort = currentEffortLevel && includes(currentEffortLevel) ? currentEffortLevel : "default";
|
|
63184
|
+
options.push({
|
|
63185
|
+
id: EFFORT_CONFIG_ID,
|
|
63186
|
+
name: "Effort",
|
|
63187
|
+
description: "Available effort levels for this model",
|
|
63188
|
+
category: "thought_level",
|
|
63189
|
+
type: "select",
|
|
63190
|
+
currentValue: validEffort,
|
|
63191
|
+
options: effortOptions
|
|
63192
|
+
});
|
|
63193
|
+
}
|
|
63194
|
+
if (fastMode?.supported) {
|
|
63195
|
+
options.push(createFastModeConfigOption(fastMode.enabled, fastMode.useBooleanOption));
|
|
63196
|
+
}
|
|
63197
|
+
if (agents.length > 0) {
|
|
63198
|
+
options.push({
|
|
63199
|
+
id: AGENT_CONFIG_ID,
|
|
63200
|
+
name: "Agent",
|
|
63201
|
+
description: "Main-thread agent persona",
|
|
63202
|
+
type: "select",
|
|
63203
|
+
currentValue: currentAgent,
|
|
63204
|
+
options: [
|
|
63205
|
+
{
|
|
63206
|
+
value: DEFAULT_AGENT_ID,
|
|
63207
|
+
name: "Default",
|
|
63208
|
+
description: "Standard Claude Code agent"
|
|
63209
|
+
},
|
|
63210
|
+
...agents.map((agent2) => ({
|
|
63211
|
+
value: agent2.name,
|
|
63212
|
+
name: agent2.name,
|
|
63213
|
+
description: agent2.description || void 0
|
|
63214
|
+
}))
|
|
63215
|
+
]
|
|
63216
|
+
});
|
|
63217
|
+
}
|
|
63218
|
+
return options;
|
|
63219
|
+
}
|
|
63041
63220
|
const CLAUDE_CONFIG_DIR = process.env.CLAUDE_CONFIG_DIR ?? path$1.join(os$3.homedir(), ".claude");
|
|
63042
63221
|
const execFileAsync = promisify$1(execFile$1);
|
|
63043
63222
|
const MAX_TITLE_LENGTH = 256;
|
|
@@ -65154,7 +65333,7 @@ Compacting failed${reason}`
|
|
|
65154
65333
|
}
|
|
65155
65334
|
let stats;
|
|
65156
65335
|
try {
|
|
65157
|
-
stats = await
|
|
65336
|
+
stats = await fs$4.stat(cwd2);
|
|
65158
65337
|
} catch {
|
|
65159
65338
|
throw RequestError.invalidParams({
|
|
65160
65339
|
cwd: cwd2
|
package/dist/codex-acp.js
CHANGED