@byok-sdk/server 0.8.1 → 0.9.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/hub.d.ts +18 -2
- package/dist/index.js +74 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +22 -1
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentContentReadPayload, AgentHomeProjectionPayload, AgentHomeProjectionReadback, 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, AgentMessageEgressRequirement, AgentMessageServerContext, AgentMessagePublishPayload, AgentRef, BlobRef, DispatchSelection, PermissionPolicy, RuntimeCapabilities, RuntimeId, RuntimeInfo, TaskApprovalResolvedPayload, TaskArtifactPayload, TaskState, ToolsetId, TerminalProjectionSelection } 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';
|
|
@@ -80,6 +80,18 @@ export interface CreateByokServerOptions {
|
|
|
80
80
|
* `stats()`.
|
|
81
81
|
*/
|
|
82
82
|
healthzRoute?: boolean;
|
|
83
|
+
/** Product-owned, authenticated task destination consumer. */
|
|
84
|
+
agentMessage?: {
|
|
85
|
+
consume(input: {
|
|
86
|
+
readonly deviceId: string;
|
|
87
|
+
readonly taskId: string;
|
|
88
|
+
readonly context: AgentMessageServerContext;
|
|
89
|
+
readonly payload: AgentMessagePublishPayload;
|
|
90
|
+
}): {
|
|
91
|
+
readonly outcome: 'accepted' | 'held' | 'refused';
|
|
92
|
+
readonly reasonCode?: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
83
95
|
}
|
|
84
96
|
/** Input to {@link ByokServer.dispatch}. */
|
|
85
97
|
export interface DispatchInput {
|
|
@@ -102,6 +114,12 @@ export interface DispatchInput {
|
|
|
102
114
|
* Agent-bound offer on the distinct egress-aware wire message.
|
|
103
115
|
*/
|
|
104
116
|
egressPolicy?: AgentEgressPolicy;
|
|
117
|
+
/** Distinct user-visible message lane; independent of activity egress. */
|
|
118
|
+
messageEgress?: AgentMessageEgressRequirement;
|
|
119
|
+
/** Exact offer-scoped terminal projection authority. */
|
|
120
|
+
terminalProjection?: TerminalProjectionSelection;
|
|
121
|
+
/** Host-only product destination/freshness authority; never serialized to the daemon. */
|
|
122
|
+
agentMessageContext?: AgentMessageServerContext;
|
|
105
123
|
}
|
|
106
124
|
/** Input to the distinct fresh-session Agent egress dispatch surface. */
|
|
107
125
|
export interface FreshAgentEgressDispatchInput extends Omit<DispatchInput, 'deviceId' | 'sessionRef' | 'agentRef' | 'egressPolicy'> {
|
|
@@ -111,6 +129,9 @@ export interface FreshAgentEgressDispatchInput extends Omit<DispatchInput, 'devi
|
|
|
111
129
|
agentRef: AgentRef;
|
|
112
130
|
/** Exact policy revision consumed by the fresh execution. */
|
|
113
131
|
egressPolicy: AgentEgressPolicy;
|
|
132
|
+
messageEgress?: AgentMessageEgressRequirement;
|
|
133
|
+
terminalProjection?: TerminalProjectionSelection;
|
|
134
|
+
agentMessageContext?: AgentMessageServerContext;
|
|
114
135
|
}
|
|
115
136
|
/** Host control-plane input for one exact content-read request. */
|
|
116
137
|
export interface AgentContentReadRequest {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byok-sdk/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.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.
|
|
48
|
-
"@byok-sdk/protocol": "0.
|
|
47
|
+
"@byok-sdk/core": "0.9.0",
|
|
48
|
+
"@byok-sdk/protocol": "0.9.0",
|
|
49
49
|
"@hono/node-server": "^2.0.10",
|
|
50
50
|
"hono": "^4.12.30",
|
|
51
51
|
"jose": "^6.2.3",
|