@byok-sdk/client 0.14.0 → 0.15.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 +15 -0
- package/dist/adapters/codex/codex-adapter.d.ts +2 -0
- package/dist/adapters/codex/process-runner.d.ts +16 -17
- package/dist/adapters/detect-outcome.d.ts +18 -0
- package/dist/adapters/index.d.ts +1 -1
- package/dist/adapters/index.js +189 -50
- package/dist/adapters/index.js.map +1 -1
- package/dist/bin/byok-agent-memory-mcp.js +29 -0
- package/dist/bin/byok-agent-memory-mcp.js.map +1 -1
- package/dist/bin/byok-agent-message-mcp.js +29 -0
- package/dist/bin/byok-agent-message-mcp.js.map +1 -1
- package/dist/bin/byok-agent-team-mcp.js +29 -0
- package/dist/bin/byok-agent-team-mcp.js.map +1 -1
- package/dist/bin/byok-agent.js +1832 -932
- package/dist/bin/byok-agent.js.map +1 -1
- package/dist/bin/byok-approval-mcp.js +29 -0
- package/dist/bin/byok-approval-mcp.js.map +1 -1
- package/dist/bin/byok-mcp-env.d.ts +2 -0
- package/dist/bin/byok-mcp-env.js +36 -0
- package/dist/bin/byok-mcp-env.js.map +1 -0
- package/dist/bin/commands/doctor.d.ts +3 -0
- package/dist/bin/mcp-env-launcher.d.ts +5 -0
- package/dist/bin/runtime-probe.d.ts +6 -7
- package/dist/daemon/admission-wait.d.ts +2 -0
- package/dist/daemon/agent-egress-spool.d.ts +1 -0
- package/dist/daemon/agent-message-outbox.d.ts +15 -3
- package/dist/daemon/artifact-read.d.ts +7 -0
- package/dist/daemon/connection-manager.d.ts +18 -77
- package/dist/daemon/create-daemon.d.ts +11 -1
- package/dist/daemon/runtime-start.d.ts +3 -0
- package/dist/daemon/store.d.ts +2 -0
- package/dist/daemon/task-runner.d.ts +23 -0
- package/dist/daemon/terminal-commit-queue.d.ts +21 -0
- package/dist/daemon/terminal-identity.d.ts +6 -0
- package/dist/diagnostics/device-doctor.d.ts +46 -0
- package/dist/diagnostics/diagnostics.d.ts +3 -80
- package/dist/diagnostics/types.d.ts +82 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1942 -423
- package/dist/index.js.map +1 -1
- package/dist/runtime-detection.d.ts +3 -0
- package/dist/runtime-failure.d.ts +6 -0
- package/dist/sdk-reserved-helper-host.d.ts +1 -1
- package/dist/types.d.ts +20 -10
- package/dist/util/durable-jsonl.d.ts +12 -0
- package/package.json +4 -4
|
@@ -62,3 +62,9 @@ export declare const RUNTIME_ADAPTER_CONTRACT_VIOLATION_REASON: Readonly<{
|
|
|
62
62
|
export declare function projectRuntimeBoundaryFailure(value: unknown, expectedPhase: RuntimeFailurePhase): RuntimeFailureProjection & {
|
|
63
63
|
contractViolation: boolean;
|
|
64
64
|
};
|
|
65
|
+
/** A failed startup whose process tree has not yielded a disposal receipt. */
|
|
66
|
+
export declare class RuntimeStartupDisposalFailure extends Error {
|
|
67
|
+
readonly retryDisposal: () => Promise<void>;
|
|
68
|
+
constructor(retryDisposal: () => Promise<void>, options?: ErrorOptions);
|
|
69
|
+
}
|
|
70
|
+
export declare function isRuntimeStartupDisposalFailure(value: unknown): value is RuntimeStartupDisposalFailure;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const BYOK_SDK_HELPER_SUBCOMMAND = "__byok_sdk_helper";
|
|
2
|
-
export type SdkReservedHelperKind = 'agent-message-mcp' | 'agent-memory-mcp' | 'approval-mcp' | 'agent-team-mcp';
|
|
2
|
+
export type SdkReservedHelperKind = 'agent-message-mcp' | 'agent-memory-mcp' | 'approval-mcp' | 'agent-team-mcp' | 'mcp-env';
|
|
3
3
|
export interface SdkHelperHostConfig {
|
|
4
4
|
/**
|
|
5
5
|
* Run SDK-reserved helpers by re-entering the product's single-file/SEA
|
package/dist/types.d.ts
CHANGED
|
@@ -8,16 +8,21 @@ export interface GitWorkspaceConfig {
|
|
|
8
8
|
mode: 'local-checkpoints';
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* is computed without ever reading the runtime's own credential storage (see
|
|
13
|
-
* the credential-isolation rule on {@link RuntimeAdapter}) — it only reflects
|
|
14
|
-
* whether a recognized environment variable name is set.
|
|
11
|
+
* Failure vocabulary shared by the detection contract and local diagnostics.
|
|
15
12
|
*/
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
export declare const RUNTIME_DETECTION_FAILURE_KINDS: readonly ['not-found', 'not-executable', 'timeout', 'probe-failed'];
|
|
14
|
+
/**
|
|
15
|
+
* One probe outcome, never a separately authored presence boolean. Authentication
|
|
16
|
+
* observation retains each adapter's native status/env-name probe and never
|
|
17
|
+
* reads credential storage. Failure variants contain no arbitrary diagnostics.
|
|
18
|
+
*/
|
|
19
|
+
export type RuntimeDetectResult = {
|
|
20
|
+
readonly kind: 'available';
|
|
21
|
+
readonly version?: string;
|
|
22
|
+
readonly authPresent?: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
readonly kind: typeof RUNTIME_DETECTION_FAILURE_KINDS[number];
|
|
25
|
+
};
|
|
21
26
|
/** What a runtime adapter can do, advertised so the daemon can pick/validate adapters. */
|
|
22
27
|
export interface RuntimeCapabilities {
|
|
23
28
|
readonly steer: boolean;
|
|
@@ -195,6 +200,8 @@ export interface RuntimeAdapterDescriptor {
|
|
|
195
200
|
}
|
|
196
201
|
/** The pure input to one adapter admission decision. It contains no credential values or workspace resources. */
|
|
197
202
|
export interface RuntimeAdapterPrepareInput {
|
|
203
|
+
/** Admission cancellation; late pure results are discarded and never started. */
|
|
204
|
+
signal?: AbortSignal;
|
|
198
205
|
offer: TaskOfferPayload;
|
|
199
206
|
policy: PermissionPolicy;
|
|
200
207
|
descriptor: RuntimeAdapterDescriptor;
|
|
@@ -262,6 +269,8 @@ export interface RuntimeOperationManifest {
|
|
|
262
269
|
}
|
|
263
270
|
/** Runtime resources only available after TaskRunner has sealed the manifest and claimed the task. */
|
|
264
271
|
export interface RuntimeOperationStartInput {
|
|
272
|
+
/** Startup cancellation only; rejection must preserve unresolved process ownership. */
|
|
273
|
+
readonly signal?: AbortSignal;
|
|
265
274
|
readonly manifest: RuntimeOperationManifest;
|
|
266
275
|
readonly instruction: string;
|
|
267
276
|
readonly env: NodeJS.ProcessEnv;
|
|
@@ -283,7 +292,8 @@ export interface PreparedRuntimeOperation {
|
|
|
283
292
|
*/
|
|
284
293
|
export interface RuntimeAdapter {
|
|
285
294
|
readonly descriptor: RuntimeAdapterDescriptor;
|
|
286
|
-
|
|
295
|
+
/** Readiness probing must not mutate an Agent home or allocate execution ownership. */
|
|
296
|
+
detect(signal?: AbortSignal): Promise<RuntimeDetectResult>;
|
|
287
297
|
prepare(input: RuntimeAdapterPrepareInput): Promise<RuntimeAdapterPrepareResult>;
|
|
288
298
|
}
|
|
289
299
|
/** Copy then deeply freeze descriptor authority so callers cannot retain a mutable source reference. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** File mechanics only. The caller owns replay, identity and serialized mutations. */
|
|
2
|
+
export declare class DurableJsonlFile {
|
|
3
|
+
readonly filePath: string;
|
|
4
|
+
private failure;
|
|
5
|
+
constructor(filePath: string);
|
|
6
|
+
assertWritable(): void;
|
|
7
|
+
/** Replay is not a durability receipt: confirm the recovered bytes before use. */
|
|
8
|
+
confirmRecovered(): Promise<void>;
|
|
9
|
+
append(json: string): Promise<void>;
|
|
10
|
+
replace(lines: readonly string[]): Promise<void>;
|
|
11
|
+
private syncDirectory;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byok-sdk/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "BYOK SDK client daemon: runs on the end user's machine, pairs with a SaaS server, and drives a local coding-agent runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"koffi": "3.2.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@byok-sdk/core": "0.
|
|
71
|
-
"@byok-sdk/protocol": "0.
|
|
70
|
+
"@byok-sdk/core": "0.15.0",
|
|
71
|
+
"@byok-sdk/protocol": "0.15.0",
|
|
72
72
|
"@earendil-works/pi-coding-agent": "0.85.1",
|
|
73
73
|
"@juicesharp/rpiv-todo": "2.8.0",
|
|
74
74
|
"pi-mcp-adapter": "2.27.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"pi-web-access": "0.24.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@byok-sdk/server": "0.
|
|
79
|
+
"@byok-sdk/server": "0.15.0",
|
|
80
80
|
"@hono/node-server": "^2.0.10"
|
|
81
81
|
}
|
|
82
82
|
}
|