@byok-sdk/client 0.8.1 → 0.9.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/README.md +7 -1
- package/dist/adapters/index.js +14 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/agent-home.d.ts +5 -0
- package/dist/bin/agent-memory-mcp-server.d.ts +38 -0
- package/dist/bin/agent-message-mcp-server.d.ts +24 -0
- package/dist/bin/byok-agent-memory-mcp.d.ts +2 -0
- package/dist/bin/byok-agent-memory-mcp.js +432 -0
- package/dist/bin/byok-agent-memory-mcp.js.map +1 -0
- package/dist/bin/byok-agent-message-mcp.d.ts +2 -0
- package/dist/bin/byok-agent-message-mcp.js +441 -0
- package/dist/bin/byok-agent-message-mcp.js.map +1 -0
- package/dist/bin/byok-agent.js +1792 -192
- package/dist/bin/byok-agent.js.map +1 -1
- package/dist/bin/byok-approval-mcp.js.map +1 -1
- package/dist/daemon/agent-memory-filesystem.d.ts +23 -0
- package/dist/daemon/agent-memory-fs-helper.d.ts +10 -0
- package/dist/daemon/agent-memory.d.ts +160 -0
- package/dist/daemon/agent-message-outbox.d.ts +58 -0
- package/dist/daemon/control-protocol.d.ts +25 -0
- package/dist/daemon/create-daemon.d.ts +10 -0
- package/dist/daemon/memory-guidance.d.ts +8 -0
- package/dist/daemon/resolve-agent-memory-mcp-bin.d.ts +6 -0
- package/dist/daemon/resolve-agent-message-mcp-bin.d.ts +6 -0
- package/dist/daemon/task-runner.d.ts +79 -3
- package/dist/daemon/toolset-registry.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1801 -201
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -4,7 +4,13 @@ The local BYOK daemon. It pairs a device, durably journals tasks, connects over
|
|
|
4
4
|
WebSocket or long poll, dispatches to local Claude Code, Codex, or pi adapters,
|
|
5
5
|
and exposes authenticated local diagnostics/control commands.
|
|
6
6
|
|
|
7
|
-
The package installs `byok-agent
|
|
7
|
+
The package installs `byok-agent`, `byok-approval-mcp`, and the SDK-reserved
|
|
8
|
+
`byok-agent-message-mcp` task helper. The message helper exposes only bounded
|
|
9
|
+
plain text/Markdown; authenticated task, Agent, session, device, tenant, and
|
|
10
|
+
destination facts remain daemon/server authority and are never model input.
|
|
11
|
+
The helper receives only a daemon-issued single-task sealed context token;
|
|
12
|
+
it cannot select a task id or product destination.
|
|
13
|
+
Provider
|
|
8
14
|
credentials are not read by the dispatch plane; `@byok-sdk/keys` is a separate
|
|
9
15
|
install and keeps a zero dependency edge to this package.
|
|
10
16
|
|
package/dist/adapters/index.js
CHANGED
|
@@ -2551,6 +2551,7 @@ var CodexAdapter = class {
|
|
|
2551
2551
|
steer: false,
|
|
2552
2552
|
resume: true,
|
|
2553
2553
|
approvalInteractive: false,
|
|
2554
|
+
mcpToolsets: true,
|
|
2554
2555
|
permissionModes: ["auto", "readonly"]
|
|
2555
2556
|
},
|
|
2556
2557
|
environmentRequirements: { credentialNames: [] }
|
|
@@ -2682,7 +2683,7 @@ ${withStreams.stderr ?? ""}`);
|
|
|
2682
2683
|
resumeRef: startInput.manifest.sessionRef,
|
|
2683
2684
|
instruction: startInput.instruction,
|
|
2684
2685
|
modelId: manifestModelId,
|
|
2685
|
-
policyArgs: [...policyArgs],
|
|
2686
|
+
policyArgs: [...policyArgs, ...codexMcpConfigArgs(startInput.mcpServers)],
|
|
2686
2687
|
cwd: manifestCwd,
|
|
2687
2688
|
env: runtimeEnv,
|
|
2688
2689
|
spawnFn: this.options.spawnFn,
|
|
@@ -2712,6 +2713,18 @@ ${withStreams.stderr ?? ""}`);
|
|
|
2712
2713
|
return (this.options.resolveBin ?? resolveCodexBin)();
|
|
2713
2714
|
}
|
|
2714
2715
|
};
|
|
2716
|
+
function codexMcpConfigArgs(servers) {
|
|
2717
|
+
if (servers === void 0 || Object.keys(servers).length === 0) return [];
|
|
2718
|
+
const args = ["--ignore-user-config"];
|
|
2719
|
+
for (const [name, server] of Object.entries(servers).sort(([left], [right]) => left.localeCompare(right))) {
|
|
2720
|
+
args.push("-c", `mcp_servers.${name}.command=${JSON.stringify(server.command)}`);
|
|
2721
|
+
if (server.args !== void 0) args.push("-c", `mcp_servers.${name}.args=${JSON.stringify([...server.args])}`);
|
|
2722
|
+
for (const [key, value] of Object.entries(server.env ?? {}).sort(([left], [right]) => left.localeCompare(right))) {
|
|
2723
|
+
args.push("-c", `mcp_servers.${name}.env.${key}=${JSON.stringify(value)}`);
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
return args;
|
|
2727
|
+
}
|
|
2715
2728
|
async function resolveRealWorkspaceDir(workspaceDir) {
|
|
2716
2729
|
return promises.realpath(workspaceDir).catch(() => workspaceDir);
|
|
2717
2730
|
}
|