@canonmsg/core 0.19.2 → 0.19.3
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-session.js +1 -1
- package/dist/rtdb-rest.js +2 -2
- package/dist/turn-protocol.d.ts +2 -1
- package/dist/turn-protocol.js +3 -0
- package/package.json +1 -1
package/dist/agent-session.js
CHANGED
|
@@ -133,7 +133,7 @@ export function buildAgentSessionSnapshot(input) {
|
|
|
133
133
|
executionFallbackReason: input.sessionState?.executionFallbackReason,
|
|
134
134
|
turnState: input.turnState?.state,
|
|
135
135
|
supportsQueue: input.turnState?.capabilities?.supportsQueue,
|
|
136
|
-
supportsInputInterrupt: input.turnState?.capabilities?.
|
|
136
|
+
supportsInputInterrupt: input.turnState?.capabilities?.supportsInputInterrupt,
|
|
137
137
|
queueDepth: input.turnState?.queueDepth ?? 0,
|
|
138
138
|
waitingForInput: input.turnState?.state === 'waiting_input',
|
|
139
139
|
contextUsage: input.sessionState?.contextUsage,
|
package/dist/rtdb-rest.js
CHANGED
|
@@ -208,8 +208,8 @@ function createRTDBClientHandle(client, options) {
|
|
|
208
208
|
...(state.capabilities?.supportsQueue !== undefined
|
|
209
209
|
? { supportsQueue: state.capabilities.supportsQueue }
|
|
210
210
|
: {}),
|
|
211
|
-
...(state.capabilities?.
|
|
212
|
-
? { supportsInputInterrupt: state.capabilities.
|
|
211
|
+
...(state.capabilities?.supportsInputInterrupt !== undefined
|
|
212
|
+
? { supportsInputInterrupt: state.capabilities.supportsInputInterrupt }
|
|
213
213
|
: {}),
|
|
214
214
|
queueDepth: state.queueDepth,
|
|
215
215
|
waitingForInput: state.state === 'waiting_input',
|
package/dist/turn-protocol.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export type DeliveryIntent = 'queue' | 'interrupt' | 'interleave' | 'stop';
|
|
2
2
|
export type TurnMessageSemantics = 'progress' | 'turn_complete' | 'control';
|
|
3
|
-
export type InboundDisposition = 'queued' | 'accepted_now' | 'interleaved' | 'trigger_suppressed' | 'rejected';
|
|
3
|
+
export type InboundDisposition = 'queued' | 'accepted_now' | 'interleaved' | 'trigger_suppressed' | 'rejected' | 'cancelled';
|
|
4
4
|
export type TurnLifecycleState = 'idle' | 'thinking' | 'streaming' | 'tool' | 'waiting_input' | 'completed' | 'interrupted';
|
|
5
5
|
export interface RuntimeCapabilities {
|
|
6
6
|
supportsInterrupt: boolean;
|
|
7
|
+
supportsInputInterrupt: boolean;
|
|
7
8
|
supportsQueue: boolean;
|
|
8
9
|
supportsInterleave: boolean;
|
|
9
10
|
supportsRequiresAction: boolean;
|
package/dist/turn-protocol.js
CHANGED
|
@@ -21,6 +21,7 @@ const DELIVERY_INTENTS = [
|
|
|
21
21
|
];
|
|
22
22
|
export const DEFAULT_RUNTIME_CAPABILITIES = {
|
|
23
23
|
supportsInterrupt: false,
|
|
24
|
+
supportsInputInterrupt: false,
|
|
24
25
|
supportsQueue: true,
|
|
25
26
|
supportsInterleave: false,
|
|
26
27
|
supportsRequiresAction: false,
|
|
@@ -73,6 +74,7 @@ export function normalizeTurnMetadata(metadata) {
|
|
|
73
74
|
|| metadata.inboundDisposition === 'interleaved'
|
|
74
75
|
|| metadata.inboundDisposition === 'trigger_suppressed'
|
|
75
76
|
|| metadata.inboundDisposition === 'rejected'
|
|
77
|
+
|| metadata.inboundDisposition === 'cancelled'
|
|
76
78
|
? metadata.inboundDisposition
|
|
77
79
|
: undefined;
|
|
78
80
|
if (!turnId && !turnSemantics && !deliveryIntent && typeof metadata.turnComplete !== 'boolean'
|
|
@@ -110,6 +112,7 @@ export function normalizeTurnState(value) {
|
|
|
110
112
|
capabilities: isRecord(value.capabilities)
|
|
111
113
|
? {
|
|
112
114
|
supportsInterrupt: Boolean(value.capabilities.supportsInterrupt),
|
|
115
|
+
supportsInputInterrupt: Boolean(value.capabilities.supportsInputInterrupt),
|
|
113
116
|
supportsQueue: value.capabilities.supportsQueue !== false,
|
|
114
117
|
supportsInterleave: Boolean(value.capabilities.supportsInterleave),
|
|
115
118
|
supportsRequiresAction: Boolean(value.capabilities.supportsRequiresAction),
|