@byok-sdk/client 0.8.1 → 0.9.0-rc.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/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` and `byok-approval-mcp` binaries. Provider
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
 
@@ -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
  }