@byok-sdk/client 0.1.0 → 0.1.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 +9 -0
- package/dist/adapters/codex/resolve-bin.d.ts +3 -4
- package/dist/adapters/index.d.ts +9 -0
- package/dist/adapters/index.js +1921 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/pi/resolve-bin.d.ts +12 -22
- package/dist/bin/byok-agent.js +91 -117
- package/dist/bin/byok-agent.js.map +1 -1
- package/dist/index.js +72 -97
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -7,5 +7,14 @@ and exposes authenticated local diagnostics/control commands.
|
|
|
7
7
|
The package installs `byok-agent` and `byok-approval-mcp` binaries. Provider
|
|
8
8
|
credentials are not read by the dispatch plane; `@byok-sdk/keys` is separate.
|
|
9
9
|
|
|
10
|
+
Pi, Claude Code and Codex are user-installed runtimes. Install and authenticate
|
|
11
|
+
the runtime CLI you choose; the SDK never packages its executable or
|
|
12
|
+
credentials. Hosts that only need runtime detection/composition can import the
|
|
13
|
+
transport-free adapter surface:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { PiAdapter, ClaudeAdapter, CodexAdapter } from '@byok-sdk/client/adapters';
|
|
17
|
+
```
|
|
18
|
+
|
|
10
19
|
MIT licensed. Node.js 20 or newer; SQLite-backed journaling requires a runtime
|
|
11
20
|
with `node:sqlite` support.
|
|
@@ -5,15 +5,14 @@ export interface ResolvedBin {
|
|
|
5
5
|
/**
|
|
6
6
|
* Resolve the codex CLI executable.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* `../pi/resolve-bin.ts`), the real OpenAI Codex CLI (empirically `codex-cli
|
|
8
|
+
* Like pi and Claude Code, the real OpenAI Codex CLI (empirically `codex-cli
|
|
10
9
|
* 0.144.5` on the machine this adapter was built/verified against, installed
|
|
11
10
|
* at a plain PATH location — not inside this repo's `node_modules`) is not
|
|
12
11
|
* published as an npm package this SDK could sensibly depend on: it's a
|
|
13
12
|
* standalone global install (native installer / `npm i -g @openai/codex` /
|
|
14
13
|
* homebrew, depending on platform and version). There is no package-relative
|
|
15
|
-
* resolution to attempt
|
|
16
|
-
*
|
|
14
|
+
* resolution to attempt: use an explicit override for tests, else a bare
|
|
15
|
+
* PATH lookup.
|
|
17
16
|
*
|
|
18
17
|
* `BYOK_CODEX_BIN` overrides PATH lookup — substituting the fake-codex test
|
|
19
18
|
* fixture, exactly like `BYOK_PI_BIN` does for pi. The `byok-agent` CLI bin
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { RuntimeAdapter, RuntimeCapabilities, RuntimeDetectResult, } from '../types';
|
|
2
|
+
export type { RuntimeEnvironmentRequirements } from '../daemon/environment';
|
|
3
|
+
export { PiAdapter } from './pi/pi-adapter';
|
|
4
|
+
export type { PiAdapterOptions } from './pi/pi-adapter';
|
|
5
|
+
export { PI_PACKAGE_NAME } from './pi/resolve-bin';
|
|
6
|
+
export { ClaudeAdapter } from './claude/claude-adapter';
|
|
7
|
+
export type { ClaudeAdapterOptions } from './claude/claude-adapter';
|
|
8
|
+
export { CodexAdapter } from './codex/codex-adapter';
|
|
9
|
+
export type { CodexAdapterOptions } from './codex/codex-adapter';
|