@byok-sdk/server 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/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AgentContentReadPayload, AgentEventOrUnknown, AgentEgressPolicy, AgentEgressReliablePayload, AgentRef, BlobRef, DispatchSelection, PermissionPolicy, RuntimeCapabilities, RuntimeId, RuntimeInfo, TaskApprovalResolvedPayload, TaskArtifactPayload, TaskState, ToolsetId } from '@byok-sdk/protocol';
1
+ import type { AgentContentReadPayload, AgentHomeProjectionPayload, AgentHomeProjectionReadback, AgentEventOrUnknown, AgentEgressPolicy, AgentEgressReliablePayload, AgentRef, BlobRef, DispatchSelection, PermissionPolicy, RuntimeCapabilities, RuntimeId, RuntimeInfo, TaskApprovalResolvedPayload, TaskArtifactPayload, TaskState, ToolsetId } from '@byok-sdk/protocol';
2
2
  import type { BlobStore } from './blob-store';
3
3
  import type { RateLimiterOptions } from './rate-limiter';
4
4
  import type { TaskStore } from './task-store';
@@ -103,11 +103,27 @@ export interface DispatchInput {
103
103
  */
104
104
  egressPolicy?: AgentEgressPolicy;
105
105
  }
106
+ /** Input to the distinct fresh-session Agent egress dispatch surface. */
107
+ export interface FreshAgentEgressDispatchInput extends Omit<DispatchInput, 'deviceId' | 'sessionRef' | 'agentRef' | 'egressPolicy'> {
108
+ /** Exact target; fresh Agent dispatch never selects an ambient device. */
109
+ deviceId: string;
110
+ /** Exact durable Agent identity for the canonical-home execution. */
111
+ agentRef: AgentRef;
112
+ /** Exact policy revision consumed by the fresh execution. */
113
+ egressPolicy: AgentEgressPolicy;
114
+ }
106
115
  /** Host control-plane input for one exact content-read request. */
107
116
  export interface AgentContentReadRequest {
108
117
  readonly deviceId: string;
109
118
  readonly payload: AgentContentReadPayload;
110
119
  }
120
+ /** Host control-plane input for one exact task-free Agent-home projection. */
121
+ export interface AgentHomeProjectionRequest {
122
+ readonly deviceId: string;
123
+ readonly payload: AgentHomeProjectionPayload;
124
+ }
125
+ /** Reference-server readback. The default implementation is process-local only. */
126
+ export type AgentHomeProjectionStatusReadback = AgentHomeProjectionReadback;
111
127
  /** First-write-wins reference-server readback for a reliable Agent egress item. */
112
128
  export interface AgentEgressReceipt {
113
129
  readonly deviceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byok-sdk/server",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "BYOK SDK server: in-memory M0 reference implementation of the SaaS-side coordinator",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -44,8 +44,8 @@
44
44
  "clean": "rm -rf dist"
45
45
  },
46
46
  "dependencies": {
47
- "@byok-sdk/core": "0.7.0",
48
- "@byok-sdk/protocol": "0.7.0",
47
+ "@byok-sdk/core": "0.8.0",
48
+ "@byok-sdk/protocol": "0.8.0",
49
49
  "@hono/node-server": "^2.0.10",
50
50
  "hono": "^4.12.30",
51
51
  "jose": "^6.2.3",