lody 0.88.1 → 0.89.0-next.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.
@@ -41,6 +41,9 @@ const CLIENT_METHODS = {
41
41
  elicitation_create: "elicitation/create",
42
42
  elicitation_complete: "elicitation/complete"
43
43
  };
44
+ const PROTOCOL_METHODS = {
45
+ cancel_request: "$/cancel_request"
46
+ };
44
47
  const PROTOCOL_VERSION = 1;
45
48
  const skippedItem = Symbol("skippedItem");
46
49
  function defaultOnError(schema, fallback) {
@@ -2843,6 +2846,20 @@ const methods = {
2843
2846
  setConfigOption: AGENT_METHODS.session_set_config_option,
2844
2847
  prompt: AGENT_METHODS.session_prompt,
2845
2848
  cancel: AGENT_METHODS.session_cancel
2849
+ },
2850
+ nes: {
2851
+ start: AGENT_METHODS.nes_start,
2852
+ suggest: AGENT_METHODS.nes_suggest,
2853
+ accept: AGENT_METHODS.nes_accept,
2854
+ reject: AGENT_METHODS.nes_reject,
2855
+ close: AGENT_METHODS.nes_close
2856
+ },
2857
+ document: {
2858
+ didOpen: AGENT_METHODS.document_did_open,
2859
+ didChange: AGENT_METHODS.document_did_change,
2860
+ didClose: AGENT_METHODS.document_did_close,
2861
+ didSave: AGENT_METHODS.document_did_save,
2862
+ didFocus: AGENT_METHODS.document_did_focus
2846
2863
  }
2847
2864
  },
2848
2865
  client: {
@@ -2854,10 +2871,20 @@ const methods = {
2854
2871
  writeTextFile: CLIENT_METHODS.fs_write_text_file,
2855
2872
  readTextFile: CLIENT_METHODS.fs_read_text_file
2856
2873
  },
2874
+ terminal: {
2875
+ create: CLIENT_METHODS.terminal_create,
2876
+ output: CLIENT_METHODS.terminal_output,
2877
+ release: CLIENT_METHODS.terminal_release,
2878
+ waitForExit: CLIENT_METHODS.terminal_wait_for_exit,
2879
+ kill: CLIENT_METHODS.terminal_kill
2880
+ },
2857
2881
  elicitation: {
2858
2882
  create: CLIENT_METHODS.elicitation_create,
2859
2883
  complete: CLIENT_METHODS.elicitation_complete
2860
2884
  }
2885
+ },
2886
+ protocol: {
2887
+ cancelRequest: PROTOCOL_METHODS.cancel_request
2861
2888
  }
2862
2889
  };
2863
2890
  const startActiveSession = Symbol("startActiveSession");
@@ -4504,6 +4531,7 @@ export {
4504
4531
  RequestError as R,
4505
4532
  CreateElicitationResponse as a,
4506
4533
  agent as b,
4534
+ client as c,
4507
4535
  methods as m,
4508
4536
  ndJsonStream as n
4509
4537
  };
@@ -1,11 +1,11 @@
1
1
  import { createRequire } from "module";
2
- import LE__default, { execFile as execFile$1, spawn } from "node:child_process";
2
+ import Tw__default, { execFile as execFile$1, spawn } from "node:child_process";
3
3
  import { createRequire as createRequire$1 } from "node:module";
4
4
  import { Writable, Readable } from "node:stream";
5
5
  import { StringDecoder } from "node:string_decoder";
6
6
  import fs__default from "node:fs";
7
7
  import path__default from "node:path";
8
- import jt__default, { constants, readFile } from "node:fs/promises";
8
+ import Xt__default, { constants, readFile } from "node:fs/promises";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import process$1 from "node:process";
11
11
  import { fileURLToPath } from "node:url";
@@ -24948,7 +24948,7 @@ var isWsl = () => {
24948
24948
  return false;
24949
24949
  };
24950
24950
  var is_wsl_default = process$1.env.__IS_WSL_TEST__ ? isWsl : isWsl();
24951
- var execFile = promisify(LE__default.execFile);
24951
+ var execFile = promisify(Tw__default.execFile);
24952
24952
  var powerShellPath = () => `${process$1.env.SYSTEMROOT || process$1.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
24953
24953
  var executePowerShell = async (command, options = {}) => {
24954
24954
  const {
@@ -24989,7 +24989,7 @@ function parseMountPointFromConfig(content) {
24989
24989
  return match.groups.mountPoint.trim().replaceAll(/^["']|["']$/g, "");
24990
24990
  }
24991
24991
  }
24992
- var execFile2 = promisify(LE__default.execFile);
24992
+ var execFile2 = promisify(Tw__default.execFile);
24993
24993
  var wslDrivesMountPoint = /* @__PURE__ */ (() => {
24994
24994
  const defaultMountPoint = "/mnt/";
24995
24995
  let mountPoint;
@@ -25000,14 +25000,14 @@ var wslDrivesMountPoint = /* @__PURE__ */ (() => {
25000
25000
  const configFilePath = "/etc/wsl.conf";
25001
25001
  let isConfigFileExists = false;
25002
25002
  try {
25003
- await jt__default.access(configFilePath, constants.F_OK);
25003
+ await Xt__default.access(configFilePath, constants.F_OK);
25004
25004
  isConfigFileExists = true;
25005
25005
  } catch {
25006
25006
  }
25007
25007
  if (!isConfigFileExists) {
25008
25008
  return defaultMountPoint;
25009
25009
  }
25010
- const configContent = await jt__default.readFile(configFilePath, { encoding: "utf8" });
25010
+ const configContent = await Xt__default.readFile(configFilePath, { encoding: "utf8" });
25011
25011
  const parsedMountPoint = parseMountPointFromConfig(configContent);
25012
25012
  if (parsedMountPoint === void 0) {
25013
25013
  return defaultMountPoint;
@@ -25027,7 +25027,7 @@ var canAccessPowerShell = async () => {
25027
25027
  canAccessPowerShellPromise ??= (async () => {
25028
25028
  try {
25029
25029
  const psPath = await powerShellPath2();
25030
- await jt__default.access(psPath, constants.X_OK);
25030
+ await Xt__default.access(psPath, constants.X_OK);
25031
25031
  return true;
25032
25032
  } catch {
25033
25033
  return false;
@@ -25310,7 +25310,7 @@ var baseOpen = async (options) => {
25310
25310
  const isBundled = !__dirname$1 || __dirname$1 === "/";
25311
25311
  let exeLocalXdgOpen = false;
25312
25312
  try {
25313
- await jt__default.access(localXdgOpenPath, constants.X_OK);
25313
+ await Xt__default.access(localXdgOpenPath, constants.X_OK);
25314
25314
  exeLocalXdgOpen = true;
25315
25315
  } catch {
25316
25316
  }
@@ -25331,7 +25331,7 @@ var baseOpen = async (options) => {
25331
25331
  if (options.target) {
25332
25332
  cliArguments.push(options.target);
25333
25333
  }
25334
- const subprocess = LE__default.spawn(command, cliArguments, childProcessOptions);
25334
+ const subprocess = Tw__default.spawn(command, cliArguments, childProcessOptions);
25335
25335
  if (options.wait) {
25336
25336
  return new Promise((resolve, reject) => {
25337
25337
  subprocess.once("error", reject);
@@ -25657,7 +25657,7 @@ var package_default = {
25657
25657
  },
25658
25658
  dependencies: {
25659
25659
  "@agentclientprotocol/sdk": "^1.3.0",
25660
- "@openai/codex": "^0.148.0",
25660
+ "@openai/codex": "^0.151.0",
25661
25661
  "acp-extension-core": "0.1.0",
25662
25662
  diff: "^9.0.0",
25663
25663
  open: "^11.0.0",
@@ -28040,6 +28040,12 @@ var GOAL_CONTINUATION_PROMPT = [{
28040
28040
  type: "text",
28041
28041
  text: "Continue working toward the active goal."
28042
28042
  }];
28043
+ function resolveGoalCommandHandleResult(turnCompleted) {
28044
+ if (turnCompleted?.turn.status === "interrupted") {
28045
+ return { handled: true, turnCompleted };
28046
+ }
28047
+ return { handled: false, prompt: GOAL_CONTINUATION_PROMPT };
28048
+ }
28043
28049
  var CodexCommands = class {
28044
28050
  connection;
28045
28051
  codexAcpClient;
@@ -28337,13 +28343,7 @@ var CodexCommands = class {
28337
28343
  }
28338
28344
  }
28339
28345
  createGoalCommandResult(turnCompleted) {
28340
- if (turnCompleted === null) {
28341
- return { handled: false, prompt: GOAL_CONTINUATION_PROMPT };
28342
- }
28343
- return {
28344
- handled: true,
28345
- turnCompleted
28346
- };
28346
+ return resolveGoalCommandHandleResult(turnCompleted);
28347
28347
  }
28348
28348
  buildReviewTarget(instructions) {
28349
28349
  if (instructions.length === 0) {
@@ -1,6 +1,6 @@
1
1
  const name = "acp-extension-claude";
2
2
  const version = "0.70.0";
3
- const dependencies = { "@anthropic-ai/claude-agent-sdk": "0.3.232" };
3
+ const dependencies = { "@anthropic-ai/claude-agent-sdk": "0.3.258" };
4
4
  const packageJson = {
5
5
  name,
6
6
  version,
@@ -63,7 +63,7 @@ const DEEPSEEK_HARNESS_AGENT_PRESETS = [
63
63
  }
64
64
  ];
65
65
  const ACP_EXTENSION_DSH_VERSION = "0.1.0";
66
- const DEEPSEEK_HARNESS_VERSION = "0.1.1-rc.1";
66
+ const DEEPSEEK_HARNESS_VERSION = "0.1.1-rc.2";
67
67
  const ACP_EXTENSION_DSH_PROFILE_REVISION = "v5";
68
68
  const ACP_EXTENSION_DSH_SESSION_ROOT_ENV = "ACP_EXTENSION_DSH_SESSION_ROOT";
69
69
  const ACP_EXTENSION_DSH_QUERY_PATH_ENV = "ACP_EXTENSION_DSH_QUERY_PATH";
@@ -32,7 +32,7 @@ import "perf_hooks";
32
32
  import "net";
33
33
  import "tls";
34
34
  import "url";
35
- import "./profile-Cxxl5hCq.js";
35
+ import "./profile-CPDWaQXE.js";
36
36
  import "assert";
37
37
  import "fs/promises";
38
38
  import "better-sqlite3";
@@ -52,12 +52,12 @@ import "node:console";
52
52
  import "node:dns";
53
53
  import "./directory-handle-Bp47LF5g.js";
54
54
  import "./diff-line-counts-bmGB_T-n.js";
55
- import "./acp-CrvzLY5A.js";
55
+ import "./acp-DBqkNziA.js";
56
56
  import "node:string_decoder";
57
57
  import "./methods-CvEDMahD.js";
58
58
  import "node:stream/promises";
59
- import "./package-CNW89xCh.js";
60
- import "./runtime-manifest-ByWJfM07.js";
59
+ import "./package-DlotPnLa.js";
60
+ import "./runtime-manifest-DnyvD_EC.js";
61
61
  import "async_hooks";
62
62
  import "module";
63
63
  import "./diff-worker-task-8tVIjLTu.js";
@@ -80,7 +80,7 @@ let __tla = Promise.all([
80
80
  }
81
81
  })()
82
82
  ]).then(async () => {
83
- const reviewViewerVersion = "0.88.1";
83
+ const reviewViewerVersion = "0.89.0-next.1";
84
84
  const reviewViewerSha256 = "dc9c7fc1dde49bb39c5fe86392d69219b469c0cab4fd492d8b562045e7f676e4";
85
85
  const reviewViewerFileName = "standalone.html";
86
86
  const DEFAULT_CDN_BASES = [
@@ -1,4 +1,4 @@
1
- const officialRuntime = { "version": "1.0.0" };
1
+ const officialRuntime = { "version": "1.0.13" };
2
2
  const privateWireContract = { "permissionNotification": "x.ai/yolo_mode_changed", "sessionConfigMeta": "x.ai/sessionConfig", "sessionNotification": "x.ai/session_notification", "sessionUpdateNotification": "x.ai/session/update", "modelsUpdateNotification": "x.ai/models/update", "turnCompletedUpdate": "turn_completed", "sessionInfoRequest": "x.ai/session/info", "billingRequest": "x.ai/billing", "weeklyUsagePeriodType": "USAGE_PERIOD_TYPE_WEEKLY", "reasoningEffortMeta": "reasoningEffort", "autoPermissionMode": true };
3
3
  const runtimeManifest = {
4
4
  officialRuntime,