@byok-sdk/client 0.7.0 → 0.8.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/dist/agent-home.d.ts +21 -2
- package/dist/bin/byok-agent.js +473 -250
- package/dist/bin/byok-agent.js.map +1 -1
- package/dist/daemon/agent-home-projection-client.d.ts +20 -0
- package/dist/daemon/create-daemon.d.ts +4 -1
- package/dist/daemon/task-runner.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +462 -236
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type AgentHomeProjectionCompletionRequest, type AgentHomeProjectionReadback } from '@byok-sdk/protocol';
|
|
2
|
+
import type { AuthManager } from './auth-manager';
|
|
3
|
+
export declare class AgentHomeProjectionCompletionError extends Error {
|
|
4
|
+
constructor(message: string, options?: ErrorOptions);
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Direct authenticated completion lane. It deliberately does not use the
|
|
8
|
+
* transport outbox: a handler may advance the server-to-daemon cursor only
|
|
9
|
+
* after this request returns the exact durable status it just recorded.
|
|
10
|
+
*/
|
|
11
|
+
export declare class AgentHomeProjectionCompletionClient {
|
|
12
|
+
private readonly options;
|
|
13
|
+
constructor(options: {
|
|
14
|
+
readonly serverUrl: string;
|
|
15
|
+
readonly auth: AuthManager;
|
|
16
|
+
readonly tenantId: string;
|
|
17
|
+
readonly deviceId: string;
|
|
18
|
+
});
|
|
19
|
+
complete(input: AgentHomeProjectionCompletionRequest): Promise<AgentHomeProjectionReadback>;
|
|
20
|
+
}
|
|
@@ -372,8 +372,11 @@ export interface AgentContentReadConfig {
|
|
|
372
372
|
export interface AgentReliableEgressInput {
|
|
373
373
|
agentRef: AgentRef;
|
|
374
374
|
sessionRef: string;
|
|
375
|
+
/** Exact runtime identity from the durable Agent-home handoff. */
|
|
376
|
+
runtimeId: string;
|
|
377
|
+
/** Exact task identity from the same durable Agent-home handoff. */
|
|
378
|
+
taskId: string;
|
|
375
379
|
payload: unknown;
|
|
376
|
-
taskId?: string;
|
|
377
380
|
eventId?: string;
|
|
378
381
|
}
|
|
379
382
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentEgressPolicy, type Envelope, type PermissionPolicy, type RuntimeId, type TaskOfferPayload, type TaskOfferForAgentPayload, type TaskOfferForAgentWithEgressPayload, type TaskOfferWithToolsetsPayload } from '@byok-sdk/protocol';
|
|
1
|
+
import { type AgentEgressPolicy, type Envelope, type PermissionPolicy, type RuntimeId, type TaskOfferPayload, type TaskOfferForAgentPayload, type TaskOfferForAgentWithEgressPayload, type TaskOfferForAgentWithEgressFreshPayload, type TaskOfferWithToolsetsPayload } from '@byok-sdk/protocol';
|
|
2
2
|
import { type McpToolsetConfig, type RuntimeAdapter } from '../types';
|
|
3
3
|
import { AgentHomeManager, type AgentRef } from '../agent-home';
|
|
4
4
|
import { AgentSessionHandoffStore, type AgentTerminalCause } from './agent-session-handoff-store';
|
|
@@ -366,7 +366,7 @@ export type AdmissionGuardDecision = {
|
|
|
366
366
|
readonly reason: string;
|
|
367
367
|
readonly retryable: boolean;
|
|
368
368
|
};
|
|
369
|
-
type AcceptedOfferPayload = TaskOfferPayload | TaskOfferWithToolsetsPayload | TaskOfferForAgentPayload | TaskOfferForAgentWithEgressPayload;
|
|
369
|
+
type AcceptedOfferPayload = TaskOfferPayload | TaskOfferWithToolsetsPayload | TaskOfferForAgentPayload | TaskOfferForAgentWithEgressPayload | TaskOfferForAgentWithEgressFreshPayload;
|
|
370
370
|
/**
|
|
371
371
|
* Per-connection task orchestration: offer -> (decline | prepare -> seal ->
|
|
372
372
|
* claim -> prepared operation -> started) -> seq-ordered progress batches -> complete/fail/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type { RuntimeAdapter, RuntimeAdapterDescriptor, RuntimeAdapterPrepareInput, RuntimeAdapterPrepareResult, RuntimeAdapterRejectedOperation, RuntimeAdapterPreparedOperation, PreparedRuntimeOperation, RuntimeOperationManifest, RuntimeOperationStartInput, RuntimeCapabilities, RuntimeDetectResult, Session, GitWorkspaceConfig, McpStdioServerConfig, McpToolsetConfig, McpToolsetLifecycleState, McpToolsetObservation, McpToolsetStatus, McpToolsetRegistryStatus, McpToolsetReloadReceipt, AgentEgressPolicy, } from './types';
|
|
2
2
|
export type { AgentRef } from './agent-home';
|
|
3
|
-
export { AgentHomeError, AgentRefValidationError, AgentHomeResolutionError, AgentHomeCollisionError, AgentHomeBusyError, AgentHomeLeaseCorruptError, AgentHomeLayout, AgentHomeLeaseManager, AgentHomeManager, createAgentHomeProjection, stableAgentHomeOwnerId, validateAgentRef, } from './agent-home';
|
|
3
|
+
export { AgentHomeError, AgentRefValidationError, AgentHomeResolutionError, AgentHomeCollisionError, AgentHomeBusyError, AgentHomeLeaseCorruptError, AgentHomeLayout, AgentHomeLeaseManager, AgentHomeManager, createAgentHomeProjection, createAgentHomeProjectionConsumer, AGENT_HOME_PROJECTION_STATE_FILE, stableAgentHomeOwnerId, validateAgentRef, } from './agent-home';
|
|
4
4
|
export { AgentSessionHandoffStore, AgentSessionHandoffStoreError, AgentSessionHandoffCorruptError, AgentSessionHandoffMismatchError, } from './daemon/agent-session-handoff-store';
|
|
5
5
|
export type { AgentSessionHandoff, AgentSessionHandoffMatch, AgentTaskTerminalEvidence, AgentTaskTerminalMatch, AgentTerminalCause, } from './daemon/agent-session-handoff-store';
|
|
6
|
-
export type { AgentHomeResolution, AgentHomeProjection, AgentHomeProjectionInput, AgentHomeProjectionFunction, AgentHomeLease, AgentHomeBinding, } from './agent-home';
|
|
6
|
+
export type { AgentHomeResolution, AgentHomeProjection, AgentHomeProjectionInput, AgentHomeProjectionApplyInput, AgentHomeProjectionFunction, AgentHomeProjectionApplyFunction, AgentHomeLease, AgentHomeBinding, } from './agent-home';
|
|
7
7
|
export { PolicyUnsupportedError, SteerUnsupportedError, freezeRuntimeAdapterDescriptor, sealRuntimeOperationManifest } from './types';
|
|
8
8
|
export type { RuntimeEnvironmentRequirements } from './daemon/environment';
|
|
9
9
|
export { resolveLocalAgentReleaseIdentity } from './release-identity';
|