@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
|
@@ -6,39 +6,29 @@
|
|
|
6
6
|
* is NOT the coding agent. On npm it resolves to an unrelated "CLI tool for
|
|
7
7
|
* managing vLLM deployments on GPU pods" (bin: `pi-pods`). The real coding
|
|
8
8
|
* agent was `@mariozechner/pi-coding-agent`, which is now itself deprecated
|
|
9
|
-
* in favor of this package (same maintainers: badlogic, mitsuhiko)
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* in favor of this package (same maintainers: badlogic, mitsuhiko).
|
|
10
|
+
*
|
|
11
|
+
* This constant identifies the user-installed runtime for diagnostics and
|
|
12
|
+
* documentation only. The client package deliberately does not install pi:
|
|
13
|
+
* security-fixed pi releases require Node >=22.19 while this SDK supports
|
|
14
|
+
* Node >=20, and runtime credentials/lifecycle remain user-owned.
|
|
15
15
|
*/
|
|
16
16
|
export declare const PI_PACKAGE_NAME = "@earendil-works/pi-coding-agent";
|
|
17
17
|
export interface ResolvedBin {
|
|
18
18
|
command: string;
|
|
19
|
-
source: '
|
|
19
|
+
source: 'path';
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Resolve the pi CLI executable.
|
|
23
|
-
* alongside @byok-sdk/client (guarantees a known-good, version-matched build);
|
|
24
|
-
* falls back to whatever `pi` is on PATH so users with a pre-existing global
|
|
25
|
-
* pi install still work even when the optionalDependency didn't install.
|
|
22
|
+
* Resolve the user-installed pi CLI executable.
|
|
26
23
|
*
|
|
27
|
-
* `BYOK_PI_BIN` overrides
|
|
24
|
+
* `BYOK_PI_BIN` overrides PATH lookup when set: `PiAdapterOptions.resolveBin`
|
|
28
25
|
* is the injectable seam for in-process tests, but the `byok-agent` CLI bin
|
|
29
26
|
* only ever constructs `new PiAdapter()` with no options (see `createDaemon`),
|
|
30
27
|
* so an out-of-process substitution (e.g. examples/basic's e2e run swapping
|
|
31
28
|
* in the fake-pi fixture ahead of a real pi install) has no other seam to use.
|
|
32
29
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* `ERR_PACKAGE_PATH_NOT_EXPORTED` — empirically confirmed, not a hypothetical.
|
|
37
|
-
* It also does NOT resolve the `./package.json` subpath directly (also not
|
|
38
|
-
* exported by this package); instead it resolves the package's main entry
|
|
39
|
-
* via `import.meta.resolve` and walks up parent directories to find the
|
|
40
|
-
* package root (identified by a `package.json` whose `name` matches), which
|
|
41
|
-
* is robust to `dist/` layout changes and to whether `./package.json` is
|
|
42
|
-
* ever exported.
|
|
30
|
+
* Resolution is deliberately the same authority shape as Claude Code and
|
|
31
|
+
* Codex: an explicit product/test override, otherwise the user's PATH. The
|
|
32
|
+
* SDK does not infer package-manager layouts or install a second runtime.
|
|
43
33
|
*/
|
|
44
34
|
export declare function resolvePiBin(): ResolvedBin;
|