@moxt-ai/mobius-sdk 0.0.106 → 0.0.108
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/conversation-title.d.ts +8 -0
- package/dist/conversation-title.d.ts.map +1 -0
- package/dist/{protocol/conversation-title.js → conversation-title.js} +6 -0
- package/dist/conversation-title.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/protocol/index.d.ts +28 -17
- package/dist/protocol/index.d.ts.map +1 -1
- package/dist/protocol/index.js +35 -17
- package/dist/protocol/index.js.map +1 -1
- package/dist/protocol/platform/mobius-api.d.ts.map +1 -0
- package/dist/protocol/platform/mobius-api.js.map +1 -0
- package/dist/protocol/platform/project-location.d.ts.map +1 -0
- package/dist/protocol/platform/project-location.js.map +1 -0
- package/dist/protocol/{runtime-diagnostics.d.ts → runtime/diagnostics.d.ts} +1 -1
- package/dist/protocol/runtime/diagnostics.d.ts.map +1 -0
- package/dist/protocol/{runtime-diagnostics.js → runtime/diagnostics.js} +2 -2
- package/dist/protocol/runtime/diagnostics.js.map +1 -0
- package/dist/protocol/runtime/liveness.d.ts +43 -0
- package/dist/protocol/runtime/liveness.d.ts.map +1 -0
- package/dist/protocol/runtime/liveness.js +66 -0
- package/dist/protocol/runtime/liveness.js.map +1 -0
- package/dist/protocol/{runtime-upgrade.d.ts → runtime/upgrade.d.ts} +1 -1
- package/dist/protocol/runtime/upgrade.d.ts.map +1 -0
- package/dist/protocol/{runtime-upgrade.js → runtime/upgrade.js} +2 -2
- package/dist/protocol/runtime/upgrade.js.map +1 -0
- package/dist/protocol/{session-access.d.ts → session/access/index.d.ts} +1 -1
- package/dist/protocol/session/access/index.d.ts.map +1 -0
- package/dist/protocol/{session-access.js → session/access/index.js} +3 -3
- package/dist/protocol/session/access/index.js.map +1 -0
- package/dist/protocol/session/agent/directory.d.ts +3 -0
- package/dist/protocol/session/agent/directory.d.ts.map +1 -0
- package/dist/protocol/session/agent/directory.js +3 -0
- package/dist/protocol/session/agent/directory.js.map +1 -0
- package/dist/protocol/session/agent/settings.d.ts +112 -0
- package/dist/protocol/session/agent/settings.d.ts.map +1 -0
- package/dist/protocol/session/agent/settings.js +72 -0
- package/dist/protocol/session/agent/settings.js.map +1 -0
- package/dist/protocol/session/configuration/index.d.ts +138 -0
- package/dist/protocol/session/configuration/index.d.ts.map +1 -0
- package/dist/protocol/session/configuration/index.js +120 -0
- package/dist/protocol/session/configuration/index.js.map +1 -0
- package/dist/protocol/session/configuration/title.d.ts +24 -0
- package/dist/protocol/session/configuration/title.d.ts.map +1 -0
- package/dist/protocol/session/configuration/title.js +27 -0
- package/dist/protocol/session/configuration/title.js.map +1 -0
- package/dist/protocol/session/files/index.d.ts +58 -0
- package/dist/protocol/session/files/index.d.ts.map +1 -0
- package/dist/protocol/session/files/index.js +72 -0
- package/dist/protocol/session/files/index.js.map +1 -0
- package/dist/protocol/session/interactions/index.d.ts +178 -0
- package/dist/protocol/session/interactions/index.d.ts.map +1 -0
- package/dist/protocol/session/interactions/index.js +118 -0
- package/dist/protocol/session/interactions/index.js.map +1 -0
- package/dist/protocol/{resource-model.d.ts → session/interactions/model.d.ts} +1 -137
- package/dist/protocol/session/interactions/model.d.ts.map +1 -0
- package/dist/protocol/session/interactions/model.js +87 -0
- package/dist/protocol/session/interactions/model.js.map +1 -0
- package/dist/protocol/session/lifecycle/index.d.ts +346 -0
- package/dist/protocol/session/lifecycle/index.d.ts.map +1 -0
- package/dist/protocol/session/lifecycle/index.js +206 -0
- package/dist/protocol/session/lifecycle/index.js.map +1 -0
- package/dist/protocol/{native-sessions.d.ts → session/native/index.d.ts} +1 -1
- package/dist/protocol/session/native/index.d.ts.map +1 -0
- package/dist/protocol/{native-sessions.js → session/native/index.js} +7 -4
- package/dist/protocol/session/native/index.js.map +1 -0
- package/dist/protocol/{session-event-log.d.ts → session/observability/event-log.d.ts} +1 -1
- package/dist/protocol/{session-event-log.d.ts.map → session/observability/event-log.d.ts.map} +1 -1
- package/dist/protocol/{session-event-log.js → session/observability/event-log.js} +4 -4
- package/dist/protocol/session/observability/event-log.js.map +1 -0
- package/dist/protocol/{session-history.d.ts → session/observability/history.d.ts} +3 -3
- package/dist/protocol/{session-history.d.ts.map → session/observability/history.d.ts.map} +1 -1
- package/dist/protocol/{session-history.js → session/observability/history.js} +4 -4
- package/dist/protocol/session/observability/history.js.map +1 -0
- package/dist/protocol/session/prompt/commands.d.ts +64 -0
- package/dist/protocol/session/prompt/commands.d.ts.map +1 -0
- package/dist/protocol/session/prompt/commands.js +121 -0
- package/dist/protocol/session/prompt/commands.js.map +1 -0
- package/dist/protocol/{prompt-usage.d.ts → session/prompt/usage.d.ts} +1 -1
- package/dist/protocol/session/prompt/usage.d.ts.map +1 -0
- package/dist/protocol/{prompt-usage.js → session/prompt/usage.js} +2 -2
- package/dist/protocol/session/prompt/usage.js.map +1 -0
- package/dist/protocol/{session-recording.d.ts → session/recording/recording.d.ts} +5 -1674
- package/dist/protocol/session/recording/recording.d.ts.map +1 -0
- package/dist/protocol/session/recording/recording.js +65 -0
- package/dist/protocol/session/recording/recording.js.map +1 -0
- package/dist/protocol/session/recording/turn-history.d.ts +1615 -0
- package/dist/protocol/session/recording/turn-history.d.ts.map +1 -0
- package/dist/protocol/{session-recording.js → session/recording/turn-history.js} +6 -111
- package/dist/protocol/session/recording/turn-history.js.map +1 -0
- package/dist/protocol/session/recording/webhooks.d.ts +60 -0
- package/dist/protocol/session/recording/webhooks.d.ts.map +1 -0
- package/dist/protocol/session/recording/webhooks.js +62 -0
- package/dist/protocol/session/recording/webhooks.js.map +1 -0
- package/dist/protocol/session/shared/index.d.ts +54 -0
- package/dist/protocol/session/shared/index.d.ts.map +1 -0
- package/dist/protocol/session/shared/index.js +65 -0
- package/dist/protocol/session/shared/index.js.map +1 -0
- package/dist/protocol/session/turn/index.d.ts +138 -0
- package/dist/protocol/session/turn/index.d.ts.map +1 -0
- package/dist/protocol/{resource-model.js → session/turn/index.js} +4 -77
- package/dist/protocol/session/turn/index.js.map +1 -0
- package/dist/protocol/session/workspace/index.d.ts +30 -0
- package/dist/protocol/session/workspace/index.d.ts.map +1 -0
- package/dist/protocol/session/workspace/index.js +31 -0
- package/dist/protocol/session/workspace/index.js.map +1 -0
- package/dist/protocol/shared/identifier.d.ts.map +1 -0
- package/dist/protocol/shared/identifier.js.map +1 -0
- package/dist/protocol/shared/message-codec.d.ts +24 -0
- package/dist/protocol/shared/message-codec.d.ts.map +1 -0
- package/dist/protocol/shared/message-codec.js +120 -0
- package/dist/protocol/shared/message-codec.js.map +1 -0
- package/dist/protocol/{daemon-transport.d.ts → transport/daemon-transport.d.ts} +11 -11
- package/dist/protocol/{daemon-transport.d.ts.map → transport/daemon-transport.d.ts.map} +1 -1
- package/dist/protocol/{daemon-transport.js → transport/daemon-transport.js} +15 -8
- package/dist/protocol/transport/daemon-transport.js.map +1 -0
- package/dist/service-client.d.ts +10 -1
- package/dist/service-client.d.ts.map +1 -1
- package/dist/service-client.js +18 -2
- package/dist/service-client.js.map +1 -1
- package/package.json +1 -1
- package/dist/protocol/codecs/messages.d.ts +0 -32
- package/dist/protocol/codecs/messages.d.ts.map +0 -1
- package/dist/protocol/codecs/messages.js +0 -249
- package/dist/protocol/codecs/messages.js.map +0 -1
- package/dist/protocol/control-messages.d.ts +0 -909
- package/dist/protocol/control-messages.d.ts.map +0 -1
- package/dist/protocol/control-messages.js +0 -724
- package/dist/protocol/control-messages.js.map +0 -1
- package/dist/protocol/conversation-title.d.ts +0 -2
- package/dist/protocol/conversation-title.d.ts.map +0 -1
- package/dist/protocol/conversation-title.js.map +0 -1
- package/dist/protocol/daemon-transport.js.map +0 -1
- package/dist/protocol/identifier.d.ts.map +0 -1
- package/dist/protocol/identifier.js.map +0 -1
- package/dist/protocol/messages.d.ts +0 -67
- package/dist/protocol/messages.d.ts.map +0 -1
- package/dist/protocol/messages.js +0 -16
- package/dist/protocol/messages.js.map +0 -1
- package/dist/protocol/mobius-api.d.ts.map +0 -1
- package/dist/protocol/mobius-api.js.map +0 -1
- package/dist/protocol/native-sessions.d.ts.map +0 -1
- package/dist/protocol/native-sessions.js.map +0 -1
- package/dist/protocol/project-location.d.ts.map +0 -1
- package/dist/protocol/project-location.js.map +0 -1
- package/dist/protocol/prompt-usage.d.ts.map +0 -1
- package/dist/protocol/prompt-usage.js.map +0 -1
- package/dist/protocol/resource-model.d.ts.map +0 -1
- package/dist/protocol/resource-model.js.map +0 -1
- package/dist/protocol/runtime-diagnostics.d.ts.map +0 -1
- package/dist/protocol/runtime-diagnostics.js.map +0 -1
- package/dist/protocol/runtime-upgrade.d.ts.map +0 -1
- package/dist/protocol/runtime-upgrade.js.map +0 -1
- package/dist/protocol/session-access.d.ts.map +0 -1
- package/dist/protocol/session-access.js.map +0 -1
- package/dist/protocol/session-event-log.js.map +0 -1
- package/dist/protocol/session-history.js.map +0 -1
- package/dist/protocol/session-recording.d.ts.map +0 -1
- package/dist/protocol/session-recording.js.map +0 -1
- /package/dist/protocol/{mobius-api.d.ts → platform/mobius-api.d.ts} +0 -0
- /package/dist/protocol/{mobius-api.js → platform/mobius-api.js} +0 -0
- /package/dist/protocol/{project-location.d.ts → platform/project-location.d.ts} +0 -0
- /package/dist/protocol/{project-location.js → platform/project-location.js} +0 -0
- /package/dist/protocol/{identifier.d.ts → shared/identifier.d.ts} +0 -0
- /package/dist/protocol/{identifier.js → shared/identifier.js} +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SESSION_PERMISSION_REQUESTED_KIND = "session.permission.requested";
|
|
3
|
+
export declare const SESSION_PERMISSION_RESPOND_KIND = "session.permission.respond";
|
|
4
|
+
export declare const SESSION_PERMISSION_RESOLVED_KIND = "session.permission.resolved";
|
|
5
|
+
export declare const SESSION_ELICITATION_REQUESTED_KIND = "session.elicitation.requested";
|
|
6
|
+
export declare const SESSION_ELICITATION_RESPOND_KIND = "session.elicitation.respond";
|
|
7
|
+
export declare const SESSION_ELICITATION_RESOLVED_KIND = "session.elicitation.resolved";
|
|
8
|
+
export declare const permissionOptionSchema: z.ZodReadonly<z.ZodObject<{
|
|
9
|
+
kind: z.ZodEnum<{
|
|
10
|
+
allow_always: "allow_always";
|
|
11
|
+
allow_once: "allow_once";
|
|
12
|
+
reject_always: "reject_always";
|
|
13
|
+
reject_once: "reject_once";
|
|
14
|
+
}>;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
optionId: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
export type SessionPermissionOption = z.infer<typeof permissionOptionSchema>;
|
|
19
|
+
declare const elicitationOptionSchema: z.ZodReadonly<z.ZodObject<{
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
label: z.ZodString;
|
|
22
|
+
value: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
export type SessionElicitationOption = z.infer<typeof elicitationOptionSchema>;
|
|
25
|
+
export declare const elicitationFieldSchema: z.ZodReadonly<z.ZodObject<{
|
|
26
|
+
defaultBooleanValue: z.ZodBoolean;
|
|
27
|
+
defaultNumberValue: z.ZodNumber;
|
|
28
|
+
defaultStringValue: z.ZodString;
|
|
29
|
+
description: z.ZodString;
|
|
30
|
+
format: z.ZodString;
|
|
31
|
+
hasDefaultValue: z.ZodBoolean;
|
|
32
|
+
maximum: z.ZodString;
|
|
33
|
+
maximumLength: z.ZodString;
|
|
34
|
+
minimum: z.ZodString;
|
|
35
|
+
minimumLength: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
38
|
+
description: z.ZodString;
|
|
39
|
+
label: z.ZodString;
|
|
40
|
+
value: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>>>;
|
|
42
|
+
pattern: z.ZodString;
|
|
43
|
+
required: z.ZodBoolean;
|
|
44
|
+
title: z.ZodString;
|
|
45
|
+
type: z.ZodEnum<{
|
|
46
|
+
boolean: "boolean";
|
|
47
|
+
integer: "integer";
|
|
48
|
+
multiselect: "multiselect";
|
|
49
|
+
number: "number";
|
|
50
|
+
select: "select";
|
|
51
|
+
string: "string";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
export type SessionElicitationField = z.infer<typeof elicitationFieldSchema>;
|
|
55
|
+
export declare const sessionPermissionRequestedEventSchema: z.ZodReadonly<z.ZodObject<{
|
|
56
|
+
commandId: z.ZodString;
|
|
57
|
+
interactionId: z.ZodString;
|
|
58
|
+
kind: z.ZodLiteral<"session.permission.requested">;
|
|
59
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
60
|
+
kind: z.ZodEnum<{
|
|
61
|
+
allow_always: "allow_always";
|
|
62
|
+
allow_once: "allow_once";
|
|
63
|
+
reject_always: "reject_always";
|
|
64
|
+
reject_once: "reject_once";
|
|
65
|
+
}>;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
optionId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>>>;
|
|
69
|
+
sessionId: z.ZodString;
|
|
70
|
+
title: z.ZodString;
|
|
71
|
+
toolCallId: z.ZodString;
|
|
72
|
+
toolKind: z.ZodString;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
export type SessionPermissionRequestedEvent = z.infer<typeof sessionPermissionRequestedEventSchema>;
|
|
75
|
+
declare const sessionPermissionRespondCommandSchema: z.ZodReadonly<z.ZodObject<{
|
|
76
|
+
interactionId: z.ZodString;
|
|
77
|
+
kind: z.ZodLiteral<"session.permission.respond">;
|
|
78
|
+
optionId: z.ZodString;
|
|
79
|
+
outcome: z.ZodEnum<{
|
|
80
|
+
cancelled: "cancelled";
|
|
81
|
+
selected: "selected";
|
|
82
|
+
}>;
|
|
83
|
+
sessionId: z.ZodString;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
export type SessionPermissionRespondCommand = z.infer<typeof sessionPermissionRespondCommandSchema>;
|
|
86
|
+
export declare const sessionPermissionResolvedEventSchema: z.ZodReadonly<z.ZodObject<{
|
|
87
|
+
interactionId: z.ZodString;
|
|
88
|
+
kind: z.ZodLiteral<"session.permission.resolved">;
|
|
89
|
+
optionId: z.ZodString;
|
|
90
|
+
outcome: z.ZodEnum<{
|
|
91
|
+
cancelled: "cancelled";
|
|
92
|
+
selected: "selected";
|
|
93
|
+
}>;
|
|
94
|
+
sessionId: z.ZodString;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
export type SessionPermissionResolvedEvent = z.infer<typeof sessionPermissionResolvedEventSchema>;
|
|
97
|
+
export declare const sessionElicitationRequestedEventSchema: z.ZodReadonly<z.ZodObject<{
|
|
98
|
+
accepted: z.ZodBoolean;
|
|
99
|
+
commandId: z.ZodString;
|
|
100
|
+
elicitationId: z.ZodString;
|
|
101
|
+
fields: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
102
|
+
defaultBooleanValue: z.ZodBoolean;
|
|
103
|
+
defaultNumberValue: z.ZodNumber;
|
|
104
|
+
defaultStringValue: z.ZodString;
|
|
105
|
+
description: z.ZodString;
|
|
106
|
+
format: z.ZodString;
|
|
107
|
+
hasDefaultValue: z.ZodBoolean;
|
|
108
|
+
maximum: z.ZodString;
|
|
109
|
+
maximumLength: z.ZodString;
|
|
110
|
+
minimum: z.ZodString;
|
|
111
|
+
minimumLength: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
114
|
+
description: z.ZodString;
|
|
115
|
+
label: z.ZodString;
|
|
116
|
+
value: z.ZodString;
|
|
117
|
+
}, z.core.$strip>>>>;
|
|
118
|
+
pattern: z.ZodString;
|
|
119
|
+
required: z.ZodBoolean;
|
|
120
|
+
title: z.ZodString;
|
|
121
|
+
type: z.ZodEnum<{
|
|
122
|
+
boolean: "boolean";
|
|
123
|
+
integer: "integer";
|
|
124
|
+
multiselect: "multiselect";
|
|
125
|
+
number: "number";
|
|
126
|
+
select: "select";
|
|
127
|
+
string: "string";
|
|
128
|
+
}>;
|
|
129
|
+
}, z.core.$strip>>>>;
|
|
130
|
+
interactionId: z.ZodString;
|
|
131
|
+
kind: z.ZodLiteral<"session.elicitation.requested">;
|
|
132
|
+
message: z.ZodString;
|
|
133
|
+
mode: z.ZodEnum<{
|
|
134
|
+
form: "form";
|
|
135
|
+
url: "url";
|
|
136
|
+
}>;
|
|
137
|
+
sessionId: z.ZodString;
|
|
138
|
+
url: z.ZodString;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
export type SessionElicitationRequestedEvent = z.infer<typeof sessionElicitationRequestedEventSchema>;
|
|
141
|
+
declare const sessionElicitationRespondCommandSchema: z.ZodReadonly<z.ZodObject<{
|
|
142
|
+
action: z.ZodEnum<{
|
|
143
|
+
accept: "accept";
|
|
144
|
+
cancel: "cancel";
|
|
145
|
+
decline: "decline";
|
|
146
|
+
}>;
|
|
147
|
+
content: z.ZodString;
|
|
148
|
+
interactionId: z.ZodString;
|
|
149
|
+
kind: z.ZodLiteral<"session.elicitation.respond">;
|
|
150
|
+
sessionId: z.ZodString;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
export type SessionElicitationRespondCommand = z.infer<typeof sessionElicitationRespondCommandSchema>;
|
|
153
|
+
export declare const sessionElicitationResolvedEventSchema: z.ZodReadonly<z.ZodObject<{
|
|
154
|
+
action: z.ZodEnum<{
|
|
155
|
+
accept: "accept";
|
|
156
|
+
cancel: "cancel";
|
|
157
|
+
complete: "complete";
|
|
158
|
+
decline: "decline";
|
|
159
|
+
}>;
|
|
160
|
+
interactionId: z.ZodString;
|
|
161
|
+
kind: z.ZodLiteral<"session.elicitation.resolved">;
|
|
162
|
+
sessionId: z.ZodString;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
export type SessionElicitationResolvedEvent = z.infer<typeof sessionElicitationResolvedEventSchema>;
|
|
165
|
+
export declare const decodeSessionPermissionRequestedEvent: (encoded: string) => SessionPermissionRequestedEvent;
|
|
166
|
+
export declare const encodeSessionPermissionRequestedEvent: (message: SessionPermissionRequestedEvent) => string;
|
|
167
|
+
export declare const decodeSessionPermissionRespondCommand: (encoded: string) => SessionPermissionRespondCommand;
|
|
168
|
+
export declare const encodeSessionPermissionRespondCommand: (message: SessionPermissionRespondCommand) => string;
|
|
169
|
+
export declare const decodeSessionPermissionResolvedEvent: (encoded: string) => SessionPermissionResolvedEvent;
|
|
170
|
+
export declare const encodeSessionPermissionResolvedEvent: (message: SessionPermissionResolvedEvent) => string;
|
|
171
|
+
export declare const decodeSessionElicitationRequestedEvent: (encoded: string) => SessionElicitationRequestedEvent;
|
|
172
|
+
export declare const encodeSessionElicitationRequestedEvent: (message: SessionElicitationRequestedEvent) => string;
|
|
173
|
+
export declare const decodeSessionElicitationRespondCommand: (encoded: string) => SessionElicitationRespondCommand;
|
|
174
|
+
export declare const encodeSessionElicitationRespondCommand: (message: SessionElicitationRespondCommand) => string;
|
|
175
|
+
export declare const decodeSessionElicitationResolvedEvent: (encoded: string) => SessionElicitationResolvedEvent;
|
|
176
|
+
export declare const encodeSessionElicitationResolvedEvent: (message: SessionElicitationResolvedEvent) => string;
|
|
177
|
+
export {};
|
|
178
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/protocol/session/interactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iCAAiC,iCAAiC,CAAC;AAChF,eAAO,MAAM,+BAA+B,+BAA+B,CAAC;AAC5E,eAAO,MAAM,gCAAgC,gCAAgC,CAAC;AAC9E,eAAO,MAAM,kCAAkC,kCAAkC,CAAC;AAClF,eAAO,MAAM,gCAAgC,gCAAg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C;;;;;;;;;;kBAOnC,CAAC;AAEhB,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,qCAAqC,YAAa,MAAM,KAAG,+BACd,CAAC;AAC3D,eAAO,MAAM,qCAAqC,YAAa,+BAA+B,KAAG,MACvC,CAAC;AAC3D,eAAO,MAAM,qCAAqC,YAAa,MAAM,KAAG,+BACd,CAAC;AAC3D,eAAO,MAAM,qCAAqC,YAAa,+BAA+B,KAAG,MACvC,CAAC;AAC3D,eAAO,MAAM,oCAAoC,YAAa,MAAM,KAAG,8BACd,CAAC;AAC1D,eAAO,MAAM,oCAAoC,YAAa,8BAA8B,KAAG,MACtC,CAAC;AAC1D,eAAO,MAAM,sCAAsC,YAAa,MAAM,KAAG,gCACd,CAAC;AAC5D,eAAO,MAAM,sCAAsC,YAAa,gCAAgC,KAAG,MACxC,CAAC;AAC5D,eAAO,MAAM,sCAAsC,YAAa,MAAM,KAAG,gCACd,CAAC;AAC5D,eAAO,MAAM,sCAAsC,YAAa,gCAAgC,KAAG,MACxC,CAAC;AAC5D,eAAO,MAAM,qCAAqC,YAAa,MAAM,KAAG,+BACd,CAAC;AAC3D,eAAO,MAAM,qCAAqC,YAAa,+BAA+B,KAAG,MACvC,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { identifierStringSchema as IDENTIFIER } from "../../shared/identifier.js";
|
|
3
|
+
import { decodeZodMessage as decode, encodeZodMessage as encode } from "../../shared/message-codec.js";
|
|
4
|
+
import { SHORT_TEXT } from "../shared/index.js";
|
|
5
|
+
export const SESSION_PERMISSION_REQUESTED_KIND = "session.permission.requested";
|
|
6
|
+
export const SESSION_PERMISSION_RESPOND_KIND = "session.permission.respond";
|
|
7
|
+
export const SESSION_PERMISSION_RESOLVED_KIND = "session.permission.resolved";
|
|
8
|
+
export const SESSION_ELICITATION_REQUESTED_KIND = "session.elicitation.requested";
|
|
9
|
+
export const SESSION_ELICITATION_RESPOND_KIND = "session.elicitation.respond";
|
|
10
|
+
export const SESSION_ELICITATION_RESOLVED_KIND = "session.elicitation.resolved";
|
|
11
|
+
export const permissionOptionSchema = z
|
|
12
|
+
.object({
|
|
13
|
+
kind: z.enum(["allow_once", "allow_always", "reject_once", "reject_always"]),
|
|
14
|
+
name: z.string().min(1).max(255),
|
|
15
|
+
optionId: z.string().min(1).max(255),
|
|
16
|
+
})
|
|
17
|
+
.readonly();
|
|
18
|
+
const elicitationOptionSchema = z
|
|
19
|
+
.object({
|
|
20
|
+
description: SHORT_TEXT,
|
|
21
|
+
label: z.string().min(1).max(255),
|
|
22
|
+
value: z.string().max(500),
|
|
23
|
+
})
|
|
24
|
+
.readonly();
|
|
25
|
+
export const elicitationFieldSchema = z
|
|
26
|
+
.object({
|
|
27
|
+
defaultBooleanValue: z.boolean(),
|
|
28
|
+
defaultNumberValue: z.number().finite(),
|
|
29
|
+
defaultStringValue: z.string().max(10_000),
|
|
30
|
+
description: SHORT_TEXT,
|
|
31
|
+
format: z.string().max(64),
|
|
32
|
+
hasDefaultValue: z.boolean(),
|
|
33
|
+
maximum: z.string().max(128),
|
|
34
|
+
maximumLength: z.string().max(128),
|
|
35
|
+
minimum: z.string().max(128),
|
|
36
|
+
minimumLength: z.string().max(128),
|
|
37
|
+
name: z.string().min(1).max(128),
|
|
38
|
+
options: z.array(elicitationOptionSchema).max(200).readonly(),
|
|
39
|
+
pattern: z.string().max(500),
|
|
40
|
+
required: z.boolean(),
|
|
41
|
+
title: z.string().min(1).max(255),
|
|
42
|
+
type: z.enum(["boolean", "integer", "multiselect", "number", "select", "string"]),
|
|
43
|
+
})
|
|
44
|
+
.readonly();
|
|
45
|
+
export const sessionPermissionRequestedEventSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
commandId: IDENTIFIER,
|
|
48
|
+
interactionId: IDENTIFIER,
|
|
49
|
+
kind: z.literal(SESSION_PERMISSION_REQUESTED_KIND),
|
|
50
|
+
options: z.array(permissionOptionSchema).min(1).max(20).readonly(),
|
|
51
|
+
sessionId: IDENTIFIER,
|
|
52
|
+
title: z.string().min(1).max(500),
|
|
53
|
+
toolCallId: z.string().min(1).max(255),
|
|
54
|
+
toolKind: z.string().max(64),
|
|
55
|
+
})
|
|
56
|
+
.readonly();
|
|
57
|
+
const sessionPermissionRespondCommandSchema = z
|
|
58
|
+
.object({
|
|
59
|
+
interactionId: IDENTIFIER,
|
|
60
|
+
kind: z.literal(SESSION_PERMISSION_RESPOND_KIND),
|
|
61
|
+
optionId: z.string().max(255),
|
|
62
|
+
outcome: z.enum(["cancelled", "selected"]),
|
|
63
|
+
sessionId: IDENTIFIER,
|
|
64
|
+
})
|
|
65
|
+
.readonly();
|
|
66
|
+
export const sessionPermissionResolvedEventSchema = z
|
|
67
|
+
.object({
|
|
68
|
+
interactionId: IDENTIFIER,
|
|
69
|
+
kind: z.literal(SESSION_PERMISSION_RESOLVED_KIND),
|
|
70
|
+
optionId: z.string().max(255),
|
|
71
|
+
outcome: z.enum(["cancelled", "selected"]),
|
|
72
|
+
sessionId: IDENTIFIER,
|
|
73
|
+
})
|
|
74
|
+
.readonly();
|
|
75
|
+
export const sessionElicitationRequestedEventSchema = z
|
|
76
|
+
.object({
|
|
77
|
+
accepted: z.boolean(),
|
|
78
|
+
commandId: IDENTIFIER,
|
|
79
|
+
elicitationId: z.string().max(255),
|
|
80
|
+
fields: z.array(elicitationFieldSchema).max(100).readonly(),
|
|
81
|
+
interactionId: IDENTIFIER,
|
|
82
|
+
kind: z.literal(SESSION_ELICITATION_REQUESTED_KIND),
|
|
83
|
+
message: z.string().min(1).max(2_000),
|
|
84
|
+
mode: z.enum(["form", "url"]),
|
|
85
|
+
sessionId: IDENTIFIER,
|
|
86
|
+
url: z.string().max(4_096),
|
|
87
|
+
})
|
|
88
|
+
.readonly();
|
|
89
|
+
const sessionElicitationRespondCommandSchema = z
|
|
90
|
+
.object({
|
|
91
|
+
action: z.enum(["accept", "cancel", "decline"]),
|
|
92
|
+
content: z.string().max(100_000),
|
|
93
|
+
interactionId: IDENTIFIER,
|
|
94
|
+
kind: z.literal(SESSION_ELICITATION_RESPOND_KIND),
|
|
95
|
+
sessionId: IDENTIFIER,
|
|
96
|
+
})
|
|
97
|
+
.readonly();
|
|
98
|
+
export const sessionElicitationResolvedEventSchema = z
|
|
99
|
+
.object({
|
|
100
|
+
action: z.enum(["accept", "cancel", "decline", "complete"]),
|
|
101
|
+
interactionId: IDENTIFIER,
|
|
102
|
+
kind: z.literal(SESSION_ELICITATION_RESOLVED_KIND),
|
|
103
|
+
sessionId: IDENTIFIER,
|
|
104
|
+
})
|
|
105
|
+
.readonly();
|
|
106
|
+
export const decodeSessionPermissionRequestedEvent = (encoded) => decode(encoded, sessionPermissionRequestedEventSchema);
|
|
107
|
+
export const encodeSessionPermissionRequestedEvent = (message) => encode(message, sessionPermissionRequestedEventSchema);
|
|
108
|
+
export const decodeSessionPermissionRespondCommand = (encoded) => decode(encoded, sessionPermissionRespondCommandSchema);
|
|
109
|
+
export const encodeSessionPermissionRespondCommand = (message) => encode(message, sessionPermissionRespondCommandSchema);
|
|
110
|
+
export const decodeSessionPermissionResolvedEvent = (encoded) => decode(encoded, sessionPermissionResolvedEventSchema);
|
|
111
|
+
export const encodeSessionPermissionResolvedEvent = (message) => encode(message, sessionPermissionResolvedEventSchema);
|
|
112
|
+
export const decodeSessionElicitationRequestedEvent = (encoded) => decode(encoded, sessionElicitationRequestedEventSchema);
|
|
113
|
+
export const encodeSessionElicitationRequestedEvent = (message) => encode(message, sessionElicitationRequestedEventSchema);
|
|
114
|
+
export const decodeSessionElicitationRespondCommand = (encoded) => decode(encoded, sessionElicitationRespondCommandSchema);
|
|
115
|
+
export const encodeSessionElicitationRespondCommand = (message) => encode(message, sessionElicitationRespondCommandSchema);
|
|
116
|
+
export const decodeSessionElicitationResolvedEvent = (encoded) => decode(encoded, sessionElicitationResolvedEventSchema);
|
|
117
|
+
export const encodeSessionElicitationResolvedEvent = (message) => encode(message, sessionElicitationResolvedEventSchema);
|
|
118
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/protocol/session/interactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,CAAC,MAAM,iCAAiC,GAAG,8BAA8B,CAAC;AAChF,MAAM,CAAC,MAAM,+BAA+B,GAAG,4BAA4B,CAAC;AAC5E,MAAM,CAAC,MAAM,gCAAgC,GAAG,6BAA6B,CAAC;AAC9E,MAAM,CAAC,MAAM,kCAAkC,GAAG,+BAA+B,CAAC;AAClF,MAAM,CAAC,MAAM,gCAAgC,GAAG,6BAA6B,CAAC;AAC9E,MAAM,CAAC,MAAM,iCAAiC,GAAG,8BAA8B,CAAC;AAEhF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KAClC,MAAM,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;IAC5E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACvC,CAAC;KACD,QAAQ,EAAE,CAAC;AAIhB,MAAM,uBAAuB,GAAG,CAAC;KAC5B,MAAM,CAA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C;AAC1D,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,OAAe,EAAoC,EAAE,CACxG,MAAM,CAAC,OAAO,EAAE,sCAAsC,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,OAAyC,EAAU,EAAE,CACxG,MAAM,CAAC,OAAO,EAAE,sCAAsC,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,OAAe,EAAoC,EAAE,CACxG,MAAM,CAAC,OAAO,EAAE,sCAAsC,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,OAAyC,EAAU,EAAE,CACxG,MAAM,CAAC,OAAO,EAAE,sCAAsC,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,OAAe,EAAmC,EAAE,CACtG,MAAM,CAAC,OAAO,EAAE,qCAAqC,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,OAAwC,EAAU,EAAE,CACtG,MAAM,CAAC,OAAO,EAAE,qCAAqC,CAAC,CAAC"}
|
|
@@ -1,139 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const MAX_LOCAL_AGENT_DIRECTORY_ENTRIES = 32;
|
|
3
|
-
declare const turnStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4
|
-
kind: z.ZodLiteral<"queued">;
|
|
5
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
6
|
-
kind: z.ZodLiteral<"running">;
|
|
7
|
-
startedAt: z.ZodString;
|
|
8
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
9
|
-
completedAt: z.ZodString;
|
|
10
|
-
kind: z.ZodLiteral<"succeeded">;
|
|
11
|
-
result: z.ZodReadonly<z.ZodObject<{
|
|
12
|
-
kind: z.ZodLiteral<"agent_result">;
|
|
13
|
-
stopReason: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>;
|
|
15
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
16
|
-
error: z.ZodReadonly<z.ZodObject<{
|
|
17
|
-
code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
18
|
-
message: z.ZodString;
|
|
19
|
-
retryable: z.ZodBoolean;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
failedAt: z.ZodString;
|
|
22
|
-
kind: z.ZodLiteral<"failed">;
|
|
23
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
24
|
-
cancelledAt: z.ZodString;
|
|
25
|
-
kind: z.ZodLiteral<"cancelled">;
|
|
26
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
27
|
-
kind: z.ZodLiteral<"indeterminate">;
|
|
28
|
-
reconciliation: z.ZodReadonly<z.ZodObject<{
|
|
29
|
-
detectedAt: z.ZodString;
|
|
30
|
-
reason: z.ZodEnum<{
|
|
31
|
-
connection_lost: "connection_lost";
|
|
32
|
-
dispatch_indeterminate: "dispatch_indeterminate";
|
|
33
|
-
runtime_restarted: "runtime_restarted";
|
|
34
|
-
}>;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>>], "kind">;
|
|
37
|
-
export type TurnState = z.infer<typeof turnStateSchema>;
|
|
38
|
-
declare const turnRequestSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
39
|
-
content: z.ZodString;
|
|
40
|
-
kind: z.ZodLiteral<"prompt">;
|
|
41
|
-
sessionConfigurations: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
42
|
-
booleanValue: z.ZodBoolean;
|
|
43
|
-
configId: z.ZodString;
|
|
44
|
-
value: z.ZodString;
|
|
45
|
-
valueType: z.ZodEnum<{
|
|
46
|
-
boolean: "boolean";
|
|
47
|
-
select: "select";
|
|
48
|
-
}>;
|
|
49
|
-
}, z.core.$strip>>>>>;
|
|
50
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
51
|
-
kind: z.ZodLiteral<"not_retained">;
|
|
52
|
-
}, z.core.$strip>>], "kind">;
|
|
53
|
-
export type TurnRequest = z.infer<typeof turnRequestSchema>;
|
|
54
|
-
declare const turnSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
55
|
-
acceptedAt: z.ZodString;
|
|
56
|
-
bindingId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
57
|
-
idempotencyKey: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
58
|
-
sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
59
|
-
turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
60
|
-
request: z.ZodReadonly<z.ZodObject<{
|
|
61
|
-
content: z.ZodString;
|
|
62
|
-
kind: z.ZodLiteral<"prompt">;
|
|
63
|
-
sessionConfigurations: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
64
|
-
booleanValue: z.ZodBoolean;
|
|
65
|
-
configId: z.ZodString;
|
|
66
|
-
value: z.ZodString;
|
|
67
|
-
valueType: z.ZodEnum<{
|
|
68
|
-
boolean: "boolean";
|
|
69
|
-
select: "select";
|
|
70
|
-
}>;
|
|
71
|
-
}, z.core.$strip>>>>>;
|
|
72
|
-
}, z.core.$strip>>;
|
|
73
|
-
state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
74
|
-
kind: z.ZodLiteral<"queued">;
|
|
75
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
76
|
-
kind: z.ZodLiteral<"running">;
|
|
77
|
-
startedAt: z.ZodString;
|
|
78
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
79
|
-
completedAt: z.ZodString;
|
|
80
|
-
kind: z.ZodLiteral<"succeeded">;
|
|
81
|
-
result: z.ZodReadonly<z.ZodObject<{
|
|
82
|
-
kind: z.ZodLiteral<"agent_result">;
|
|
83
|
-
stopReason: z.ZodString;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
86
|
-
error: z.ZodReadonly<z.ZodObject<{
|
|
87
|
-
code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
88
|
-
message: z.ZodString;
|
|
89
|
-
retryable: z.ZodBoolean;
|
|
90
|
-
}, z.core.$strip>>;
|
|
91
|
-
failedAt: z.ZodString;
|
|
92
|
-
kind: z.ZodLiteral<"failed">;
|
|
93
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
94
|
-
cancelledAt: z.ZodString;
|
|
95
|
-
kind: z.ZodLiteral<"cancelled">;
|
|
96
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
97
|
-
kind: z.ZodLiteral<"indeterminate">;
|
|
98
|
-
reconciliation: z.ZodReadonly<z.ZodObject<{
|
|
99
|
-
detectedAt: z.ZodString;
|
|
100
|
-
reason: z.ZodEnum<{
|
|
101
|
-
connection_lost: "connection_lost";
|
|
102
|
-
dispatch_indeterminate: "dispatch_indeterminate";
|
|
103
|
-
runtime_restarted: "runtime_restarted";
|
|
104
|
-
}>;
|
|
105
|
-
}, z.core.$strip>>;
|
|
106
|
-
}, z.core.$strip>>], "kind">;
|
|
107
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
108
|
-
acceptedAt: z.ZodString;
|
|
109
|
-
bindingId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
110
|
-
idempotencyKey: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
111
|
-
sessionId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
112
|
-
turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
113
|
-
request: z.ZodReadonly<z.ZodObject<{
|
|
114
|
-
kind: z.ZodLiteral<"not_retained">;
|
|
115
|
-
}, z.core.$strip>>;
|
|
116
|
-
state: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
117
|
-
completedAt: z.ZodString;
|
|
118
|
-
kind: z.ZodLiteral<"succeeded">;
|
|
119
|
-
result: z.ZodReadonly<z.ZodObject<{
|
|
120
|
-
kind: z.ZodLiteral<"agent_result">;
|
|
121
|
-
stopReason: z.ZodString;
|
|
122
|
-
}, z.core.$strip>>;
|
|
123
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
124
|
-
error: z.ZodReadonly<z.ZodObject<{
|
|
125
|
-
code: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
126
|
-
message: z.ZodString;
|
|
127
|
-
retryable: z.ZodBoolean;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
failedAt: z.ZodString;
|
|
130
|
-
kind: z.ZodLiteral<"failed">;
|
|
131
|
-
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
132
|
-
cancelledAt: z.ZodString;
|
|
133
|
-
kind: z.ZodLiteral<"cancelled">;
|
|
134
|
-
}, z.core.$strip>>], "kind">;
|
|
135
|
-
}, z.core.$strip>>]>;
|
|
136
|
-
export type Turn = z.infer<typeof turnSchema>;
|
|
137
2
|
declare const interactionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
138
3
|
kind: z.ZodLiteral<"permission">;
|
|
139
4
|
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
@@ -333,7 +198,6 @@ declare const interactionSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
333
198
|
turnId: z.core.$ZodBranded<z.ZodString, "Identifier", "out">;
|
|
334
199
|
}, z.core.$strip>>;
|
|
335
200
|
export type Interaction = z.infer<typeof interactionSchema>;
|
|
336
|
-
export declare const decodeTurn: (value: unknown) => Turn;
|
|
337
201
|
export declare const decodeInteraction: (value: unknown) => Interaction;
|
|
338
202
|
export {};
|
|
339
|
-
//# sourceMappingURL=
|
|
203
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../src/protocol/session/interactions/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAoF,CAAC;AAEnH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,QAAA,MAAM,yBAAyB;;;;;;kBAKhB,CAAC;AAEhB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkC1B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASR,CAAC;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAY5D,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,WAAuD,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { identifierSchema } from "../../shared/identifier.js";
|
|
3
|
+
import { ProtocolMessageError } from "../../shared/message-codec.js";
|
|
4
|
+
import { elicitationFieldSchema, permissionOptionSchema } from "./index.js";
|
|
5
|
+
const timestampSchema = z.string().datetime({ offset: true });
|
|
6
|
+
const permissionRequestSchema = z
|
|
7
|
+
.object({
|
|
8
|
+
kind: z.literal("permission"),
|
|
9
|
+
options: z.array(permissionOptionSchema).min(1).max(20).readonly(),
|
|
10
|
+
title: z.string().min(1).max(500),
|
|
11
|
+
toolCallId: z.string().min(1).max(255),
|
|
12
|
+
toolKind: z.string().max(64),
|
|
13
|
+
})
|
|
14
|
+
.readonly();
|
|
15
|
+
const elicitationRequestSchema = z
|
|
16
|
+
.object({
|
|
17
|
+
elicitationId: z.string().max(255),
|
|
18
|
+
fields: z.array(elicitationFieldSchema).max(100).readonly(),
|
|
19
|
+
kind: z.literal("elicitation"),
|
|
20
|
+
message: z.string().min(1).max(2_000),
|
|
21
|
+
mode: z.enum(["form", "url"]),
|
|
22
|
+
url: z.string().max(4_096),
|
|
23
|
+
})
|
|
24
|
+
.readonly();
|
|
25
|
+
const interactionRequestSchema = z.discriminatedUnion("kind", [permissionRequestSchema, elicitationRequestSchema]);
|
|
26
|
+
const interactionResponseSchema = z
|
|
27
|
+
.object({
|
|
28
|
+
content: z.string().max(100_000),
|
|
29
|
+
kind: z.enum(["permission", "elicitation"]),
|
|
30
|
+
})
|
|
31
|
+
.readonly();
|
|
32
|
+
const interactionStateSchema = z.discriminatedUnion("kind", [
|
|
33
|
+
z.object({ kind: z.literal("pending") }).readonly(),
|
|
34
|
+
z
|
|
35
|
+
.object({
|
|
36
|
+
kind: z.literal("responded"),
|
|
37
|
+
respondedAt: timestampSchema,
|
|
38
|
+
responderId: identifierSchema,
|
|
39
|
+
response: interactionResponseSchema,
|
|
40
|
+
})
|
|
41
|
+
.readonly(),
|
|
42
|
+
z
|
|
43
|
+
.object({
|
|
44
|
+
kind: z.literal("resolved"),
|
|
45
|
+
resolution: z.discriminatedUnion("kind", [
|
|
46
|
+
z.object({ kind: z.literal("without_response") }).readonly(),
|
|
47
|
+
z
|
|
48
|
+
.object({
|
|
49
|
+
kind: z.literal("response_applied"),
|
|
50
|
+
respondedAt: timestampSchema,
|
|
51
|
+
responderId: identifierSchema,
|
|
52
|
+
response: interactionResponseSchema,
|
|
53
|
+
})
|
|
54
|
+
.readonly(),
|
|
55
|
+
]),
|
|
56
|
+
resolvedAt: timestampSchema,
|
|
57
|
+
})
|
|
58
|
+
.readonly(),
|
|
59
|
+
z.object({ expiredAt: timestampSchema, kind: z.literal("expired") }).readonly(),
|
|
60
|
+
z
|
|
61
|
+
.object({
|
|
62
|
+
cancelledAt: timestampSchema,
|
|
63
|
+
kind: z.literal("cancelled"),
|
|
64
|
+
})
|
|
65
|
+
.readonly(),
|
|
66
|
+
]);
|
|
67
|
+
const interactionSchema = z
|
|
68
|
+
.object({
|
|
69
|
+
attemptId: identifierSchema,
|
|
70
|
+
interactionId: identifierSchema,
|
|
71
|
+
request: interactionRequestSchema,
|
|
72
|
+
sessionId: identifierSchema,
|
|
73
|
+
state: interactionStateSchema,
|
|
74
|
+
turnId: identifierSchema,
|
|
75
|
+
})
|
|
76
|
+
.readonly();
|
|
77
|
+
function decodeResource(value, schema) {
|
|
78
|
+
const decoded = schema.safeParse(value);
|
|
79
|
+
if (!decoded.success) {
|
|
80
|
+
throw new ProtocolMessageError("Resource does not match its schema", {
|
|
81
|
+
cause: decoded.error,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return decoded.data;
|
|
85
|
+
}
|
|
86
|
+
export const decodeInteraction = (value) => decodeResource(value, interactionSchema);
|
|
87
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../src/protocol/session/interactions/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAA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