lody 0.94.0 → 0.96.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/codex-acp.js CHANGED
@@ -3,5 +3,5 @@
3
3
  console.error("CODEX_PATH is required for the bundled Codex ACP adapter.");
4
4
  process.exit(1);
5
5
  }
6
- await import("./chunks/index-rdPvrzqi.js");
6
+ await import("./chunks/index-5o35kMTc.js");
7
7
  })();
@@ -3,7 +3,7 @@ import { randomUUID, createHash } from "node:crypto";
3
3
  import { isAbsolute } from "node:path";
4
4
  import { Readable, Writable } from "node:stream";
5
5
  import { n as ndJsonStream, A as AgentSideConnection, R as RequestError, P as PROTOCOL_VERSION } from "./chunks/acp-DCoAUZc7.js";
6
- import { i as DEEPSEEK_HARNESS_BASE_URL_ENV, j as DEEPSEEK_HARNESS_API_KEY_ENV, a as DEEPSEEK_HARNESS_AGENT_PRESETS, k as ACP_EXTENSION_DSH_VERSION, l as DEEPSEEK_HARNESS_DEFAULT_MODEL, m as DEEPSEEK_HARNESS_PROVIDER } from "./chunks/profile-6mKAZyTP.js";
6
+ import { j as DEEPSEEK_HARNESS_BASE_URL_ENV, k as DEEPSEEK_HARNESS_API_KEY_ENV, a as DEEPSEEK_HARNESS_AGENT_PRESETS, l as ACP_EXTENSION_DSH_VERSION, m as DEEPSEEK_HARNESS_DEFAULT_MODEL, n as DEEPSEEK_HARNESS_PROVIDER } from "./chunks/profile-DQaC7SJZ.js";
7
7
  import { L as LODY_EXTENSION_METHODS } from "./chunks/methods-CvEDMahD.js";
8
8
  import { c as createPlanModeConfigOption, L as LODY_PLAN_MODE_CONFIG_ID } from "./chunks/plan-mode-BLOER-fv.js";
9
9
  import "node:url";
@@ -1026,9 +1026,13 @@ function apply(ctx, rawConfig) {
1026
1026
  }
1027
1027
  };
1028
1028
  const agentPresetOptions = (await ctx.agentPresets.list()).filter((preset) => preset.broken === void 0);
1029
- const requestedPreset = ctx.agentPresets.defaultId;
1029
+ let requestedPreset = ctx.agentPresets.defaultId;
1030
1030
  if (!agentPresetOptions.some((preset) => preset.id === requestedPreset)) {
1031
- throw internalError(`default agent preset ${JSON.stringify(requestedPreset)} is unavailable`);
1031
+ if (!agentPresetOptions.some((preset) => preset.id === "standard")) {
1032
+ throw internalError(`default agent preset ${JSON.stringify(requestedPreset)} and recovery preset "standard" are unavailable; restore the bundled standard preset or choose an available agent-presets.default in $DSH_HOME/settings.yaml`);
1033
+ }
1034
+ ctx.logger.warn(`acp-extension-dsh: default agent preset ${JSON.stringify(requestedPreset)} is unavailable; using "standard" for this session without changing settings`);
1035
+ requestedPreset = "standard";
1032
1036
  }
1033
1037
  const mcpServerNames = reserveMcpServerNames(params.mcpServers, sessionId, activeMcpServerNames);
1034
1038
  let mountedPreset = requestedPreset;
package/dist/grok-acp.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createInterface } from "node:readline";
2
- import { r as runtimeManifest } from "./chunks/runtime-manifest-FeOT7MvW.js";
2
+ import { r as runtimeManifest } from "./chunks/runtime-manifest-DqfOlvSw.js";
3
3
  import { L as LODY_EXTENSION_METHODS } from "./chunks/methods-CvEDMahD.js";
4
4
  import { L as LODY_PLAN_MODE_CONFIG_ID, c as createPlanModeConfigOption } from "./chunks/plan-mode-BLOER-fv.js";
5
5
  import { S as SessionUsageAccumulator } from "./chunks/usage-DY4Eg1Mf.js";