@agentconnect.md/daemon 1.0.0-rc.304 → 1.0.0-rc.306
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/{acp-host-D_rGwxE5.js → acp-host-BDcV2bZY.js} +19 -3
- package/dist/{acp-host-D_rGwxE5.js.map → acp-host-BDcV2bZY.js.map} +1 -1
- package/dist/{agent-list-Drju-EDG.js → agent-list-Cs_EgUh5.js} +2 -2
- package/dist/{agent-list-Drju-EDG.js.map → agent-list-Cs_EgUh5.js.map} +1 -1
- package/dist/{chat-CsR5oJP2.js → chat-BUFOmSMl.js} +3 -3
- package/dist/{chat-CsR5oJP2.js.map → chat-BUFOmSMl.js.map} +1 -1
- package/dist/{dist-CO_RU4EO.js → dist-BG425zHm.js} +7 -1
- package/dist/dist-BG425zHm.js.map +1 -0
- package/dist/{gh-token-CppI9sti.js → gh-token-VZeW2R2c.js} +2 -2
- package/dist/{gh-token-CppI9sti.js.map → gh-token-VZeW2R2c.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{load-agents-BC4zZ0xL.js → load-agents-CROyMyq9.js} +2 -2
- package/dist/{load-agents-BC4zZ0xL.js.map → load-agents-CROyMyq9.js.map} +1 -1
- package/dist/{login-D1KMrVDs.js → login-BOGVQVpU.js} +4 -4
- package/dist/{login-D1KMrVDs.js.map → login-BOGVQVpU.js.map} +1 -1
- package/dist/run-foreground-DeXQELR6.js +2 -0
- package/dist/{run-foreground-CN_44eeH.js → run-foreground-DrYgPjW_.js} +69 -19
- package/dist/{run-foreground-CN_44eeH.js.map → run-foreground-DrYgPjW_.js.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-CO_RU4EO.js.map +0 -1
- package/dist/run-foreground-PrZ6IyPn.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE-6LUnI.js";
|
|
2
2
|
import { t as require_src$1 } from "./src-DDtlVutj.js";
|
|
3
3
|
import { T as NEVER, _ as record, a as array, b as unknown, d as literal, l as int, m as object, o as boolean, p as number, u as intersection, v as string, x as url, y as union } from "./schemas-CQkO9hC5.js";
|
|
4
|
-
import { p as MEMORY_INDEX, r as normalizeGitUrl } from "./dist-
|
|
4
|
+
import { p as MEMORY_INDEX, r as normalizeGitUrl } from "./dist-BG425zHm.js";
|
|
5
5
|
import { c as registryPath, s as registryCachePath } from "./paths-DEcUO8lC.js";
|
|
6
6
|
import { delimiter, dirname, isAbsolute, join, normalize, relative, resolve, sep } from "node:path";
|
|
7
7
|
import { accessSync, constants, existsSync, mkdirSync, promises, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -9648,6 +9648,22 @@ function installedRuntimes(runtimes, env = process.env) {
|
|
|
9648
9648
|
//#region src/acp/acp-host.ts
|
|
9649
9649
|
const PROTOCOL_VERSION = 1;
|
|
9650
9650
|
/**
|
|
9651
|
+
* Distill the human-actionable reason from a failed ACP request. Adapters wrap
|
|
9652
|
+
* their runtime's own message in a JSON-RPC error whose `message` is often just
|
|
9653
|
+
* the generic title — codex-acp reports quota exhaustion as code -32603
|
|
9654
|
+
* "Internal error" with the real text ("You've hit your usage limit. Visit … or
|
|
9655
|
+
* try again at 7:01 PM.") under `error.data.message` — so prefer that detail
|
|
9656
|
+
* over a bare title, and append it when a specific message carries extra data.
|
|
9657
|
+
* Non-RequestError failures fall back to the plain Error message.
|
|
9658
|
+
*/
|
|
9659
|
+
function turnFailureReason(err) {
|
|
9660
|
+
const e = err;
|
|
9661
|
+
const msg = typeof e?.message === "string" && e.message.trim() ? e.message.trim() : String(err);
|
|
9662
|
+
const detail = typeof e?.data?.message === "string" ? e.data.message.trim() : "";
|
|
9663
|
+
if (!detail || msg.includes(detail)) return msg;
|
|
9664
|
+
return /^(parse error|invalid request|invalid params|internal error|request cancelled|authentication required|resource not found)$/i.test(msg) ? detail : `${msg}: ${detail}`;
|
|
9665
|
+
}
|
|
9666
|
+
/**
|
|
9651
9667
|
* Resolve how to apply `desired` to the select config option tagged `category`.
|
|
9652
9668
|
* `{skip}` (with the reason) means nothing should be sent: the runtime
|
|
9653
9669
|
* advertises no such selector, doesn't offer the value, or already has it set.
|
|
@@ -10121,6 +10137,6 @@ var AcpHost = class {
|
|
|
10121
10137
|
}
|
|
10122
10138
|
};
|
|
10123
10139
|
//#endregion
|
|
10124
|
-
export { resolveRuntimes as S,
|
|
10140
|
+
export { resolveRuntimes as C, cachedRuntimeVersions as S, resolveInMemoryDir as _, prepareWorkspace as a, toolsForIntegrations as b, sessionGitEnv as c, memoryKindOf as d, memoryProviderFor as f, listMemory as g, MemoryTooLargeError as h, prefetchWorkspace as i, simpleGit as l, MemoryPathError as m, turnFailureReason as n, initGitInjection as o, MemoryConflictError as p, installedRuntimes as r, probeGitVersion as s, AcpHost as t, createMemoryProvider as u, writeMemoryFile as v, cachedRuntimeNames as x, MEMORY_TOOL_NAMES as y };
|
|
10125
10141
|
|
|
10126
|
-
//# sourceMappingURL=acp-host-
|
|
10142
|
+
//# sourceMappingURL=acp-host-BDcV2bZY.js.map
|