lody 0.90.1 → 0.91.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-Bag7dEYc.js → index-BNIS69wD.js} +3055 -994
- package/dist/chunks/{profile-CPDWaQXE.js → profile-DLuYzIs8.js} +14 -37
- package/dist/chunks/{review-viewer-CtZMff5T.js → review-viewer-C_L6J8dc.js} +2 -2
- package/dist/claude-acp.js +54 -2
- package/dist/codex-acp.js +1 -1
- package/dist/deepseek-acp.js +438 -153
- package/dist/index.js +205 -145
- package/package.json +1 -1
|
@@ -15,31 +15,8 @@ const DEEPSEEK_HARNESS_PERMISSION_MODES = [
|
|
|
15
15
|
description: "Allow unrestricted file and command access without approval prompts."
|
|
16
16
|
}
|
|
17
17
|
];
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
modelId: "deepseek-v4-flash",
|
|
21
|
-
name: "DeepSeek-V4-Flash",
|
|
22
|
-
description: "Faster DeepSeek Harness coding model.",
|
|
23
|
-
inputModalities: ["text"]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
modelId: "deepseek-v4-pro",
|
|
27
|
-
name: "DeepSeek-V4-Pro",
|
|
28
|
-
description: "More capable DeepSeek Harness coding model.",
|
|
29
|
-
inputModalities: ["text"]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
modelId: "deepseek-v4-flash-vision-exp",
|
|
33
|
-
name: "DeepSeek-V4-Flash-Vision-Exp",
|
|
34
|
-
description: "Experimental multimodal DeepSeek model with image understanding.",
|
|
35
|
-
inputModalities: ["text", "image"]
|
|
36
|
-
}
|
|
37
|
-
];
|
|
38
|
-
const DEEPSEEK_HARNESS_REASONING_OPTIONS = [
|
|
39
|
-
{ value: "off", name: "Off", description: "Disable extended thinking" },
|
|
40
|
-
{ value: "high", name: "High", description: "Use the standard reasoning budget" },
|
|
41
|
-
{ value: "max", name: "Max", description: "Use the maximum reasoning budget" }
|
|
42
|
-
];
|
|
18
|
+
const DEEPSEEK_HARNESS_API_KEY_ENV = "DEEPSEEK_API_KEY";
|
|
19
|
+
const DEEPSEEK_HARNESS_BASE_URL_ENV = "DEEPSEEK_BASE_URL";
|
|
43
20
|
const DEEPSEEK_HARNESS_AGENT_PRESETS = [
|
|
44
21
|
{
|
|
45
22
|
value: "standard",
|
|
@@ -62,9 +39,9 @@ const DEEPSEEK_HARNESS_AGENT_PRESETS = [
|
|
|
62
39
|
description: "Standard capabilities plus runtime inspection, plugin experiments, and preset-authoring guidance."
|
|
63
40
|
}
|
|
64
41
|
];
|
|
65
|
-
const ACP_EXTENSION_DSH_VERSION = "0.1.
|
|
42
|
+
const ACP_EXTENSION_DSH_VERSION = "0.1.1";
|
|
66
43
|
const DEEPSEEK_HARNESS_VERSION = "0.1.1-rc.2";
|
|
67
|
-
const ACP_EXTENSION_DSH_PROFILE_REVISION = "
|
|
44
|
+
const ACP_EXTENSION_DSH_PROFILE_REVISION = "v8";
|
|
68
45
|
const ACP_EXTENSION_DSH_SESSION_ROOT_ENV = "ACP_EXTENSION_DSH_SESSION_ROOT";
|
|
69
46
|
const ACP_EXTENSION_DSH_QUERY_PATH_ENV = "ACP_EXTENSION_DSH_QUERY_PATH";
|
|
70
47
|
const DEEPSEEK_HARNESS_DEFAULT_SESSION_COMPRESSION = "zstd";
|
|
@@ -352,14 +329,14 @@ export {
|
|
|
352
329
|
ACP_EXTENSION_DSH_CAPABILITY_SOURCE_VERSION as A,
|
|
353
330
|
DEEPSEEK_HARNESS_PERMISSION_MODES as D,
|
|
354
331
|
DEEPSEEK_HARNESS_AGENT_PRESETS as a,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
332
|
+
ACP_EXTENSION_DSH_VERSION as b,
|
|
333
|
+
createDeepSeekHarnessCordisConfig as c,
|
|
334
|
+
ACP_EXTENSION_DSH_PROFILE_REVISION as d,
|
|
335
|
+
ACP_EXTENSION_DSH_QUERY_PATH_ENV as e,
|
|
336
|
+
ACP_EXTENSION_DSH_SESSION_ROOT_ENV as f,
|
|
337
|
+
DEEPSEEK_HARNESS_NPX_PACKAGES as g,
|
|
338
|
+
DEEPSEEK_HARNESS_VERSION as h,
|
|
339
|
+
DEEPSEEK_HARNESS_DEFAULT_SESSION_COMPRESSION as i,
|
|
340
|
+
DEEPSEEK_HARNESS_BASE_URL_ENV as j,
|
|
341
|
+
DEEPSEEK_HARNESS_API_KEY_ENV as k
|
|
365
342
|
};
|
|
@@ -32,7 +32,7 @@ import "perf_hooks";
|
|
|
32
32
|
import "net";
|
|
33
33
|
import "tls";
|
|
34
34
|
import "url";
|
|
35
|
-
import "./profile-
|
|
35
|
+
import "./profile-DLuYzIs8.js";
|
|
36
36
|
import "assert";
|
|
37
37
|
import "fs/promises";
|
|
38
38
|
import "better-sqlite3";
|
|
@@ -80,7 +80,7 @@ let __tla = Promise.all([
|
|
|
80
80
|
}
|
|
81
81
|
})()
|
|
82
82
|
]).then(async () => {
|
|
83
|
-
const reviewViewerVersion = "0.
|
|
83
|
+
const reviewViewerVersion = "0.91.1";
|
|
84
84
|
const reviewViewerSha256 = "dc9c7fc1dde49bb39c5fe86392d69219b469c0cab4fd492d8b562045e7f676e4";
|
|
85
85
|
const reviewViewerFileName = "standalone.html";
|
|
86
86
|
const DEFAULT_CDN_BASES = [
|
package/dist/claude-acp.js
CHANGED
|
@@ -41,7 +41,7 @@ import { isIPv4, isIPv6 } from "net";
|
|
|
41
41
|
import { R as RequestError, a as CreateElicitationResponse, n as ndJsonStream, b as agent$1, m as methods } from "./chunks/acp-DBqkNziA.js";
|
|
42
42
|
import { L as LODY_EXTENSION_METHODS } from "./chunks/methods-CvEDMahD.js";
|
|
43
43
|
import { p as packageJson } from "./chunks/package-DlotPnLa.js";
|
|
44
|
-
import { s as string, b as boolean, c as array } from "./chunks/schemas-Du3qLZPS.js";
|
|
44
|
+
import { s as string, b as boolean, c as array, o as object, n as number, l as literal } from "./chunks/schemas-Du3qLZPS.js";
|
|
45
45
|
import { WritableStream, ReadableStream as ReadableStream$1 } from "node:stream/web";
|
|
46
46
|
(async () => {
|
|
47
47
|
var One = Object.create;
|
|
@@ -68082,6 +68082,16 @@ ${content.text}
|
|
|
68082
68082
|
}
|
|
68083
68083
|
logger.error(`Unexpected case: ${valueAsString}`);
|
|
68084
68084
|
}
|
|
68085
|
+
const ScopedWeeklyLimitSchema = object({
|
|
68086
|
+
kind: literal("weekly_scoped"),
|
|
68087
|
+
percent: number(),
|
|
68088
|
+
resets_at: string().nullish(),
|
|
68089
|
+
scope: object({
|
|
68090
|
+
model: object({
|
|
68091
|
+
display_name: string().trim().min(1)
|
|
68092
|
+
})
|
|
68093
|
+
})
|
|
68094
|
+
});
|
|
68085
68095
|
const KEYCHAIN_TIMEOUT_MS = 5e3;
|
|
68086
68096
|
const KEYCHAIN_BACKOFF_MS = 6e4;
|
|
68087
68097
|
const defaultDeps = {
|
|
@@ -68130,6 +68140,22 @@ ${content.text}
|
|
|
68130
68140
|
resetsAtEpochSeconds: sevenDayResetAt
|
|
68131
68141
|
});
|
|
68132
68142
|
}
|
|
68143
|
+
if (Array.isArray(apiResponse.limits)) {
|
|
68144
|
+
for (const rawLimit of apiResponse.limits) {
|
|
68145
|
+
const parsed = ScopedWeeklyLimitSchema.safeParse(rawLimit);
|
|
68146
|
+
if (!parsed.success) continue;
|
|
68147
|
+
const limit = parsed.data;
|
|
68148
|
+
const usedPercent = parseUtilization(limit.percent);
|
|
68149
|
+
if (usedPercent === null) continue;
|
|
68150
|
+
const window2 = {
|
|
68151
|
+
label: limit.scope.model.display_name,
|
|
68152
|
+
usedPercent,
|
|
68153
|
+
windowDurationSeconds: 7 * 24 * 60 * 60,
|
|
68154
|
+
resetsAtEpochSeconds: parseDate(limit.resets_at ?? void 0)
|
|
68155
|
+
};
|
|
68156
|
+
windows.push(window2);
|
|
68157
|
+
}
|
|
68158
|
+
}
|
|
68133
68159
|
const result = {
|
|
68134
68160
|
rateLimits: [
|
|
68135
68161
|
{
|
|
@@ -72078,7 +72104,8 @@ ${explanation}` : fallbackSummary;
|
|
|
72078
72104
|
return {
|
|
72079
72105
|
sessionId,
|
|
72080
72106
|
modes,
|
|
72081
|
-
configOptions
|
|
72107
|
+
configOptions,
|
|
72108
|
+
...buildModelCapabilitiesMeta(modelInfos)
|
|
72082
72109
|
};
|
|
72083
72110
|
}
|
|
72084
72111
|
async enqueueProviderUpdate(config) {
|
|
@@ -72290,6 +72317,31 @@ ${explanation}` : fallbackSummary;
|
|
|
72290
72317
|
function clientSupportsBooleanConfigOptions(clientCapabilities) {
|
|
72291
72318
|
return clientCapabilities?.session?.configOptions?.boolean != null;
|
|
72292
72319
|
}
|
|
72320
|
+
function buildModelCapabilitiesMeta(modelInfos) {
|
|
72321
|
+
if (modelInfos.length === 0) {
|
|
72322
|
+
return {};
|
|
72323
|
+
}
|
|
72324
|
+
return {
|
|
72325
|
+
_meta: {
|
|
72326
|
+
lody: {
|
|
72327
|
+
modelCapabilities: {
|
|
72328
|
+
version: 1,
|
|
72329
|
+
models: Object.fromEntries(modelInfos.map((info) => [
|
|
72330
|
+
info.value,
|
|
72331
|
+
{
|
|
72332
|
+
...info.supportsEffort && info.supportedEffortLevels ? {
|
|
72333
|
+
effortValues: [
|
|
72334
|
+
...info.supportedEffortLevels
|
|
72335
|
+
]
|
|
72336
|
+
} : {},
|
|
72337
|
+
fastMode: info.supportsFastMode === true
|
|
72338
|
+
}
|
|
72339
|
+
]))
|
|
72340
|
+
}
|
|
72341
|
+
}
|
|
72342
|
+
}
|
|
72343
|
+
};
|
|
72344
|
+
}
|
|
72293
72345
|
function createFastModeConfigOption(enabled, useBooleanOption, disabledReason) {
|
|
72294
72346
|
const explanation = enabled ? void 0 : disabledReason && FAST_MODE_UNAVAILABLE_EXPLANATIONS[disabledReason];
|
|
72295
72347
|
const base = {
|
package/dist/codex-acp.js
CHANGED