@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.
@@ -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), as of
10
- * literally the day before this was written. `package.json` pins the
11
- * `legacy-node20` dist-tag (0.74.2) rather than `latest` (0.80.7), because
12
- * `latest` requires Node >=22.19 while this SDK's baseline is Node >=20;
13
- * both versions were empirically confirmed to speak the identical RPC-mode
14
- * frame shapes this adapter depends on.
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: 'package' | 'path';
19
+ source: 'path';
20
20
  }
21
21
  /**
22
- * Resolve the pi CLI executable. Prefers the optionalDependency installed
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 both of the above when set: `PiAdapterOptions.resolveBin`
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
- * Deliberately does NOT use `createRequire(...).resolve()`: this package is
34
- * pure ESM with no `require` export condition (`exports["."]` only offers
35
- * `import`), so CJS-style resolution fails outright with
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;