@moxt-ai/mobius-sdk 0.0.101 → 0.0.103
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/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/platform.d.ts +2 -2
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +2 -2
- package/dist/platform.js.map +1 -1
- package/dist/project-authentication.js +1 -1
- package/dist/project-authentication.js.map +1 -1
- package/dist/protocol/codecs/messages.d.ts +32 -0
- package/dist/protocol/codecs/messages.d.ts.map +1 -0
- package/dist/protocol/codecs/messages.js +249 -0
- package/dist/protocol/codecs/messages.js.map +1 -0
- package/dist/protocol/control-messages.d.ts +932 -0
- package/dist/protocol/control-messages.d.ts.map +1 -0
- package/dist/protocol/control-messages.js +741 -0
- package/dist/protocol/control-messages.js.map +1 -0
- package/dist/protocol/conversation-title.d.ts +2 -0
- package/dist/protocol/conversation-title.d.ts.map +1 -0
- package/dist/protocol/conversation-title.js +28 -0
- package/dist/protocol/conversation-title.js.map +1 -0
- package/dist/protocol/daemon-transport.d.ts +3979 -0
- package/dist/protocol/daemon-transport.d.ts.map +1 -0
- package/dist/protocol/daemon-transport.js +94 -0
- package/dist/protocol/daemon-transport.js.map +1 -0
- package/dist/protocol/identifier.d.ts +7 -0
- package/dist/protocol/identifier.d.ts.map +1 -0
- package/dist/protocol/identifier.js +11 -0
- package/dist/protocol/identifier.js.map +1 -0
- package/dist/protocol/index.d.ts +18 -0
- package/dist/protocol/index.d.ts.map +1 -0
- package/dist/protocol/index.js +18 -0
- package/dist/protocol/index.js.map +1 -0
- package/dist/protocol/messages.d.ts +67 -0
- package/dist/protocol/messages.d.ts.map +1 -0
- package/dist/protocol/messages.js +16 -0
- package/dist/protocol/messages.js.map +1 -0
- package/dist/protocol/mobius-api.d.ts +10 -0
- package/dist/protocol/mobius-api.d.ts.map +1 -0
- package/dist/protocol/mobius-api.js +23 -0
- package/dist/protocol/mobius-api.js.map +1 -0
- package/dist/protocol/native-sessions.d.ts +401 -0
- package/dist/protocol/native-sessions.d.ts.map +1 -0
- package/dist/protocol/native-sessions.js +154 -0
- package/dist/protocol/native-sessions.js.map +1 -0
- package/dist/protocol/project-location.d.ts +16 -0
- package/dist/protocol/project-location.d.ts.map +1 -0
- package/dist/protocol/project-location.js +6 -0
- package/dist/protocol/project-location.js.map +1 -0
- package/dist/protocol/prompt-usage.d.ts +76 -0
- package/dist/protocol/prompt-usage.d.ts.map +1 -0
- package/dist/protocol/prompt-usage.js +88 -0
- package/dist/protocol/prompt-usage.js.map +1 -0
- package/dist/protocol/resource-model.d.ts +339 -0
- package/dist/protocol/resource-model.d.ts.map +1 -0
- package/dist/protocol/resource-model.js +161 -0
- package/dist/protocol/resource-model.js.map +1 -0
- package/dist/protocol/runtime-diagnostics.d.ts +19 -0
- package/dist/protocol/runtime-diagnostics.d.ts.map +1 -0
- package/dist/protocol/runtime-diagnostics.js +24 -0
- package/dist/protocol/runtime-diagnostics.js.map +1 -0
- package/dist/protocol/runtime-upgrade.d.ts +29 -0
- package/dist/protocol/runtime-upgrade.d.ts.map +1 -0
- package/dist/protocol/runtime-upgrade.js +38 -0
- package/dist/protocol/runtime-upgrade.js.map +1 -0
- package/dist/protocol/session-access.d.ts +21 -0
- package/dist/protocol/session-access.d.ts.map +1 -0
- package/dist/protocol/session-access.js +108 -0
- package/dist/protocol/session-access.js.map +1 -0
- package/dist/protocol/session-event-log.d.ts +13542 -0
- package/dist/protocol/session-event-log.d.ts.map +1 -0
- package/dist/protocol/session-event-log.js +584 -0
- package/dist/protocol/session-event-log.js.map +1 -0
- package/dist/protocol/session-history.d.ts +2907 -0
- package/dist/protocol/session-history.d.ts.map +1 -0
- package/dist/protocol/session-history.js +58 -0
- package/dist/protocol/session-history.js.map +1 -0
- package/dist/protocol/session-recording.d.ts +5640 -0
- package/dist/protocol/session-recording.d.ts.map +1 -0
- package/dist/protocol/session-recording.js +365 -0
- package/dist/protocol/session-recording.js.map +1 -0
- package/dist/public-request.js +1 -1
- package/dist/public-request.js.map +1 -1
- package/dist/resources.d.ts +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +1 -1
- package/dist/resources.js.map +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/service-client.d.ts +1 -1
- package/dist/service-client.d.ts.map +1 -1
- package/dist/service-client.js +1 -1
- package/dist/service-client.js.map +1 -1
- package/dist/transport/ws-transport.js +1 -1
- package/dist/transport/ws-transport.js.map +1 -1
- package/package.json +8 -3
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const NATIVE_SESSION_REQUEST_KIND = "native.session.request";
|
|
3
|
+
export declare const NATIVE_SESSION_RESULT_KIND = "native.session.result";
|
|
4
|
+
export declare const NATIVE_SESSION_CANCEL_KIND = "native.session.cancel";
|
|
5
|
+
/** Bounding limits for materialized history payloads. */
|
|
6
|
+
export declare const SESSION_HISTORY_CHARACTER_LIMIT = 256000;
|
|
7
|
+
export declare const SESSION_HISTORY_MESSAGE_LIMIT = 1000;
|
|
8
|
+
export declare const activeTurnSnapshotSchema: z.ZodReadonly<z.ZodObject<{
|
|
9
|
+
commandId: z.ZodString;
|
|
10
|
+
epoch: z.ZodString;
|
|
11
|
+
interaction: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
12
|
+
commandId: z.ZodString;
|
|
13
|
+
interactionId: z.ZodString;
|
|
14
|
+
kind: z.ZodLiteral<"session.permission.requested">;
|
|
15
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
16
|
+
kind: z.ZodEnum<{
|
|
17
|
+
allow_always: "allow_always";
|
|
18
|
+
allow_once: "allow_once";
|
|
19
|
+
reject_always: "reject_always";
|
|
20
|
+
reject_once: "reject_once";
|
|
21
|
+
}>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
optionId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>>>;
|
|
25
|
+
sessionId: z.ZodString;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
toolCallId: z.ZodString;
|
|
28
|
+
toolKind: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
30
|
+
accepted: z.ZodBoolean;
|
|
31
|
+
commandId: z.ZodString;
|
|
32
|
+
elicitationId: z.ZodString;
|
|
33
|
+
fields: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
34
|
+
defaultBooleanValue: z.ZodBoolean;
|
|
35
|
+
defaultNumberValue: z.ZodNumber;
|
|
36
|
+
defaultStringValue: z.ZodString;
|
|
37
|
+
description: z.ZodString;
|
|
38
|
+
format: z.ZodString;
|
|
39
|
+
hasDefaultValue: z.ZodBoolean;
|
|
40
|
+
maximum: z.ZodString;
|
|
41
|
+
maximumLength: z.ZodString;
|
|
42
|
+
minimum: z.ZodString;
|
|
43
|
+
minimumLength: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
46
|
+
description: z.ZodString;
|
|
47
|
+
label: z.ZodString;
|
|
48
|
+
value: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>>>;
|
|
50
|
+
pattern: z.ZodString;
|
|
51
|
+
required: z.ZodBoolean;
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
type: z.ZodEnum<{
|
|
54
|
+
boolean: "boolean";
|
|
55
|
+
integer: "integer";
|
|
56
|
+
multiselect: "multiselect";
|
|
57
|
+
number: "number";
|
|
58
|
+
select: "select";
|
|
59
|
+
string: "string";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>>>>;
|
|
62
|
+
interactionId: z.ZodString;
|
|
63
|
+
kind: z.ZodLiteral<"session.elicitation.requested">;
|
|
64
|
+
message: z.ZodString;
|
|
65
|
+
mode: z.ZodEnum<{
|
|
66
|
+
form: "form";
|
|
67
|
+
url: "url";
|
|
68
|
+
}>;
|
|
69
|
+
sessionId: z.ZodString;
|
|
70
|
+
url: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>], "kind">>;
|
|
72
|
+
sequence: z.ZodNumber;
|
|
73
|
+
state: z.ZodLiteral<"running">;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
export type ActiveTurnSnapshot = z.infer<typeof activeTurnSnapshotSchema>;
|
|
76
|
+
declare const nativeSessionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
77
|
+
requestId: z.ZodString;
|
|
78
|
+
sessionId: z.ZodString;
|
|
79
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
80
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
81
|
+
agentId: z.ZodString;
|
|
82
|
+
bindingId: z.ZodString;
|
|
83
|
+
directoryId: z.ZodString;
|
|
84
|
+
action: z.ZodLiteral<"active-turn">;
|
|
85
|
+
targetSessionId: z.ZodString;
|
|
86
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
87
|
+
requestId: z.ZodString;
|
|
88
|
+
sessionId: z.ZodString;
|
|
89
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
90
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
91
|
+
agentId: z.ZodString;
|
|
92
|
+
bindingId: z.ZodString;
|
|
93
|
+
directoryId: z.ZodString;
|
|
94
|
+
action: z.ZodLiteral<"find">;
|
|
95
|
+
nativeSessionId: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
97
|
+
requestId: z.ZodString;
|
|
98
|
+
sessionId: z.ZodString;
|
|
99
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
100
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
101
|
+
agentId: z.ZodString;
|
|
102
|
+
bindingId: z.ZodString;
|
|
103
|
+
directoryId: z.ZodString;
|
|
104
|
+
action: z.ZodLiteral<"list">;
|
|
105
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
107
|
+
requestId: z.ZodString;
|
|
108
|
+
sessionId: z.ZodString;
|
|
109
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
110
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
111
|
+
agentId: z.ZodString;
|
|
112
|
+
bindingId: z.ZodString;
|
|
113
|
+
directoryId: z.ZodString;
|
|
114
|
+
action: z.ZodEnum<{
|
|
115
|
+
fork: "fork";
|
|
116
|
+
import: "import";
|
|
117
|
+
}>;
|
|
118
|
+
entryId: z.ZodString;
|
|
119
|
+
targetSessionId: z.ZodString;
|
|
120
|
+
}, z.core.$strip>>], "action">;
|
|
121
|
+
export type NativeSessionRequest = z.infer<typeof nativeSessionRequestSchema>;
|
|
122
|
+
declare const nativeSessionCommandSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
123
|
+
requestId: z.ZodString;
|
|
124
|
+
sessionId: z.ZodString;
|
|
125
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
126
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
127
|
+
agentId: z.ZodString;
|
|
128
|
+
bindingId: z.ZodString;
|
|
129
|
+
directoryId: z.ZodString;
|
|
130
|
+
action: z.ZodLiteral<"active-turn">;
|
|
131
|
+
targetSessionId: z.ZodString;
|
|
132
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
133
|
+
requestId: z.ZodString;
|
|
134
|
+
sessionId: z.ZodString;
|
|
135
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
136
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
137
|
+
agentId: z.ZodString;
|
|
138
|
+
bindingId: z.ZodString;
|
|
139
|
+
directoryId: z.ZodString;
|
|
140
|
+
action: z.ZodLiteral<"find">;
|
|
141
|
+
nativeSessionId: z.ZodString;
|
|
142
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
143
|
+
requestId: z.ZodString;
|
|
144
|
+
sessionId: z.ZodString;
|
|
145
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
146
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
147
|
+
agentId: z.ZodString;
|
|
148
|
+
bindingId: z.ZodString;
|
|
149
|
+
directoryId: z.ZodString;
|
|
150
|
+
action: z.ZodLiteral<"list">;
|
|
151
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
153
|
+
requestId: z.ZodString;
|
|
154
|
+
sessionId: z.ZodString;
|
|
155
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
156
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
157
|
+
agentId: z.ZodString;
|
|
158
|
+
bindingId: z.ZodString;
|
|
159
|
+
directoryId: z.ZodString;
|
|
160
|
+
action: z.ZodEnum<{
|
|
161
|
+
fork: "fork";
|
|
162
|
+
import: "import";
|
|
163
|
+
}>;
|
|
164
|
+
entryId: z.ZodString;
|
|
165
|
+
targetSessionId: z.ZodString;
|
|
166
|
+
}, z.core.$strip>>], "action">;
|
|
167
|
+
export type NativeSessionCommand = z.infer<typeof nativeSessionCommandSchema>;
|
|
168
|
+
declare const nativeSessionEntrySchema: z.ZodReadonly<z.ZodObject<{
|
|
169
|
+
entryId: z.ZodString;
|
|
170
|
+
mobiusSessionIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
171
|
+
nativeSessionId: z.ZodString;
|
|
172
|
+
title: z.ZodString;
|
|
173
|
+
directoryId: z.ZodString;
|
|
174
|
+
directoryLabel: z.ZodString;
|
|
175
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
176
|
+
additionalDirectories: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
177
|
+
directoryId: z.ZodString;
|
|
178
|
+
name: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>>>;
|
|
180
|
+
}, z.core.$strip>>;
|
|
181
|
+
export type NativeSessionEntry = z.infer<typeof nativeSessionEntrySchema>;
|
|
182
|
+
declare const nativeSessionResultSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
183
|
+
requestId: z.ZodString;
|
|
184
|
+
sessionId: z.ZodString;
|
|
185
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
186
|
+
action: z.ZodLiteral<"active-turn">;
|
|
187
|
+
targetSessionId: z.ZodString;
|
|
188
|
+
queued: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
189
|
+
commandId: z.ZodString;
|
|
190
|
+
prompt: z.ZodString;
|
|
191
|
+
images: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
192
|
+
data: z.ZodString;
|
|
193
|
+
mimeType: z.ZodString;
|
|
194
|
+
name: z.ZodString;
|
|
195
|
+
}, z.core.$strip>>>>;
|
|
196
|
+
}, z.core.$strip>>>>;
|
|
197
|
+
turn: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
198
|
+
commandId: z.ZodString;
|
|
199
|
+
epoch: z.ZodString;
|
|
200
|
+
interaction: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
201
|
+
commandId: z.ZodString;
|
|
202
|
+
interactionId: z.ZodString;
|
|
203
|
+
kind: z.ZodLiteral<"session.permission.requested">;
|
|
204
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
205
|
+
kind: z.ZodEnum<{
|
|
206
|
+
allow_always: "allow_always";
|
|
207
|
+
allow_once: "allow_once";
|
|
208
|
+
reject_always: "reject_always";
|
|
209
|
+
reject_once: "reject_once";
|
|
210
|
+
}>;
|
|
211
|
+
name: z.ZodString;
|
|
212
|
+
optionId: z.ZodString;
|
|
213
|
+
}, z.core.$strip>>>>;
|
|
214
|
+
sessionId: z.ZodString;
|
|
215
|
+
title: z.ZodString;
|
|
216
|
+
toolCallId: z.ZodString;
|
|
217
|
+
toolKind: z.ZodString;
|
|
218
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
219
|
+
accepted: z.ZodBoolean;
|
|
220
|
+
commandId: z.ZodString;
|
|
221
|
+
elicitationId: z.ZodString;
|
|
222
|
+
fields: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
223
|
+
defaultBooleanValue: z.ZodBoolean;
|
|
224
|
+
defaultNumberValue: z.ZodNumber;
|
|
225
|
+
defaultStringValue: z.ZodString;
|
|
226
|
+
description: z.ZodString;
|
|
227
|
+
format: z.ZodString;
|
|
228
|
+
hasDefaultValue: z.ZodBoolean;
|
|
229
|
+
maximum: z.ZodString;
|
|
230
|
+
maximumLength: z.ZodString;
|
|
231
|
+
minimum: z.ZodString;
|
|
232
|
+
minimumLength: z.ZodString;
|
|
233
|
+
name: z.ZodString;
|
|
234
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
235
|
+
description: z.ZodString;
|
|
236
|
+
label: z.ZodString;
|
|
237
|
+
value: z.ZodString;
|
|
238
|
+
}, z.core.$strip>>>>;
|
|
239
|
+
pattern: z.ZodString;
|
|
240
|
+
required: z.ZodBoolean;
|
|
241
|
+
title: z.ZodString;
|
|
242
|
+
type: z.ZodEnum<{
|
|
243
|
+
boolean: "boolean";
|
|
244
|
+
integer: "integer";
|
|
245
|
+
multiselect: "multiselect";
|
|
246
|
+
number: "number";
|
|
247
|
+
select: "select";
|
|
248
|
+
string: "string";
|
|
249
|
+
}>;
|
|
250
|
+
}, z.core.$strip>>>>;
|
|
251
|
+
interactionId: z.ZodString;
|
|
252
|
+
kind: z.ZodLiteral<"session.elicitation.requested">;
|
|
253
|
+
message: z.ZodString;
|
|
254
|
+
mode: z.ZodEnum<{
|
|
255
|
+
form: "form";
|
|
256
|
+
url: "url";
|
|
257
|
+
}>;
|
|
258
|
+
sessionId: z.ZodString;
|
|
259
|
+
url: z.ZodString;
|
|
260
|
+
}, z.core.$strip>>], "kind">>;
|
|
261
|
+
sequence: z.ZodNumber;
|
|
262
|
+
state: z.ZodLiteral<"running">;
|
|
263
|
+
}, z.core.$strip>>>;
|
|
264
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
265
|
+
requestId: z.ZodString;
|
|
266
|
+
sessionId: z.ZodString;
|
|
267
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
268
|
+
action: z.ZodLiteral<"find">;
|
|
269
|
+
entry: z.ZodReadonly<z.ZodObject<{
|
|
270
|
+
entryId: z.ZodString;
|
|
271
|
+
mobiusSessionIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
272
|
+
nativeSessionId: z.ZodString;
|
|
273
|
+
title: z.ZodString;
|
|
274
|
+
directoryId: z.ZodString;
|
|
275
|
+
directoryLabel: z.ZodString;
|
|
276
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
277
|
+
additionalDirectories: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
278
|
+
directoryId: z.ZodString;
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
}, z.core.$strip>>>>;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
283
|
+
requestId: z.ZodString;
|
|
284
|
+
sessionId: z.ZodString;
|
|
285
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
286
|
+
action: z.ZodLiteral<"list">;
|
|
287
|
+
capabilities: z.ZodReadonly<z.ZodObject<{
|
|
288
|
+
additionalDirectories: z.ZodBoolean;
|
|
289
|
+
audioPrompt: z.ZodBoolean;
|
|
290
|
+
closeSession: z.ZodBoolean;
|
|
291
|
+
deleteSession: z.ZodBoolean;
|
|
292
|
+
embeddedContextPrompt: z.ZodBoolean;
|
|
293
|
+
imagePrompt: z.ZodBoolean;
|
|
294
|
+
listSessions: z.ZodBoolean;
|
|
295
|
+
loadSession: z.ZodBoolean;
|
|
296
|
+
promptQueueing: z.ZodDefault<z.ZodBoolean>;
|
|
297
|
+
renameSession: z.ZodDefault<z.ZodBoolean>;
|
|
298
|
+
resumeSession: z.ZodBoolean;
|
|
299
|
+
steering: z.ZodDefault<z.ZodBoolean>;
|
|
300
|
+
unstableForkSession: z.ZodDefault<z.ZodBoolean>;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
entries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
303
|
+
entryId: z.ZodString;
|
|
304
|
+
mobiusSessionIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
305
|
+
nativeSessionId: z.ZodString;
|
|
306
|
+
title: z.ZodString;
|
|
307
|
+
directoryId: z.ZodString;
|
|
308
|
+
directoryLabel: z.ZodString;
|
|
309
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
310
|
+
additionalDirectories: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
311
|
+
directoryId: z.ZodString;
|
|
312
|
+
name: z.ZodString;
|
|
313
|
+
}, z.core.$strip>>>>;
|
|
314
|
+
}, z.core.$strip>>>>;
|
|
315
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
316
|
+
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
317
|
+
requestId: z.ZodString;
|
|
318
|
+
sessionId: z.ZodString;
|
|
319
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
320
|
+
action: z.ZodEnum<{
|
|
321
|
+
fork: "fork";
|
|
322
|
+
import: "import";
|
|
323
|
+
}>;
|
|
324
|
+
targetSessionId: z.ZodString;
|
|
325
|
+
ready: z.ZodReadonly<z.ZodObject<{
|
|
326
|
+
additionalDirectories: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
327
|
+
directoryId: z.ZodString;
|
|
328
|
+
name: z.ZodString;
|
|
329
|
+
}, z.core.$strip>>>>;
|
|
330
|
+
agentId: z.ZodString;
|
|
331
|
+
agentName: z.ZodString;
|
|
332
|
+
agentVersion: z.ZodString;
|
|
333
|
+
capabilities: z.ZodReadonly<z.ZodObject<{
|
|
334
|
+
additionalDirectories: z.ZodBoolean;
|
|
335
|
+
audioPrompt: z.ZodBoolean;
|
|
336
|
+
closeSession: z.ZodBoolean;
|
|
337
|
+
deleteSession: z.ZodBoolean;
|
|
338
|
+
embeddedContextPrompt: z.ZodBoolean;
|
|
339
|
+
imagePrompt: z.ZodBoolean;
|
|
340
|
+
listSessions: z.ZodBoolean;
|
|
341
|
+
loadSession: z.ZodBoolean;
|
|
342
|
+
promptQueueing: z.ZodDefault<z.ZodBoolean>;
|
|
343
|
+
renameSession: z.ZodDefault<z.ZodBoolean>;
|
|
344
|
+
resumeSession: z.ZodBoolean;
|
|
345
|
+
steering: z.ZodDefault<z.ZodBoolean>;
|
|
346
|
+
unstableForkSession: z.ZodDefault<z.ZodBoolean>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
348
|
+
commands: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
349
|
+
description: z.ZodString;
|
|
350
|
+
inputHint: z.ZodString;
|
|
351
|
+
name: z.ZodString;
|
|
352
|
+
}, z.core.$strip>>>>;
|
|
353
|
+
configOptions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
354
|
+
booleanValue: z.ZodBoolean;
|
|
355
|
+
category: z.ZodString;
|
|
356
|
+
currentValue: z.ZodString;
|
|
357
|
+
description: z.ZodString;
|
|
358
|
+
id: z.ZodString;
|
|
359
|
+
name: z.ZodString;
|
|
360
|
+
type: z.ZodEnum<{
|
|
361
|
+
boolean: "boolean";
|
|
362
|
+
select: "select";
|
|
363
|
+
}>;
|
|
364
|
+
values: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
365
|
+
description: z.ZodString;
|
|
366
|
+
groupId: z.ZodString;
|
|
367
|
+
groupName: z.ZodString;
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
value: z.ZodString;
|
|
370
|
+
}, z.core.$strip>>>>;
|
|
371
|
+
}, z.core.$strip>>>>;
|
|
372
|
+
directoryId: z.ZodString;
|
|
373
|
+
directoryLabel: z.ZodString;
|
|
374
|
+
kind: z.ZodLiteral<"session.ready">;
|
|
375
|
+
requestId: z.ZodString;
|
|
376
|
+
restored: z.ZodBoolean;
|
|
377
|
+
runtimeTimings: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
378
|
+
durationMilliseconds: z.ZodNumber;
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
}, z.core.$strip>>>>>;
|
|
381
|
+
sessionId: z.ZodString;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
title: z.ZodString;
|
|
384
|
+
}, z.core.$strip>>], "action">;
|
|
385
|
+
export type NativeSessionResult = z.infer<typeof nativeSessionResultSchema>;
|
|
386
|
+
declare const nativeSessionCancelSchema: z.ZodReadonly<z.ZodObject<{
|
|
387
|
+
requestId: z.ZodString;
|
|
388
|
+
sessionId: z.ZodString;
|
|
389
|
+
kind: z.ZodLiteral<"native.session.cancel">;
|
|
390
|
+
}, z.core.$strip>>;
|
|
391
|
+
export type NativeSessionCancel = z.infer<typeof nativeSessionCancelSchema>;
|
|
392
|
+
export declare const decodeNativeSessionCommand: (encoded: string) => NativeSessionCommand;
|
|
393
|
+
export declare const encodeNativeSessionCommand: (value: NativeSessionCommand) => string;
|
|
394
|
+
export declare const decodeNativeSessionRequest: (encoded: string) => NativeSessionRequest;
|
|
395
|
+
export declare const encodeNativeSessionRequest: (value: NativeSessionRequest) => string;
|
|
396
|
+
export declare const decodeNativeSessionResult: (encoded: string) => NativeSessionResult;
|
|
397
|
+
export declare const encodeNativeSessionResult: (value: NativeSessionResult) => string;
|
|
398
|
+
export declare const decodeNativeSessionCancel: (encoded: string) => NativeSessionCancel;
|
|
399
|
+
export declare const encodeNativeSessionCancel: (value: NativeSessionCancel) => string;
|
|
400
|
+
export {};
|
|
401
|
+
//# sourceMappingURL=native-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-sessions.d.ts","sourceRoot":"","sources":["../../src/protocol/native-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AACpE,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAElE,yDAAyD;AACzD,eAAO,MAAM,+BAA+B,SAAU,CAAC;AACvD,eAAO,MAAM,6BAA6B,OAAQ,CAAC;AAOnD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUtB,CAAC;AAChB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAW1E,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAkB9B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0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C/C,eAAO,MAAM,yBAAyB,UAAW,mBAAmB,KAAG,MACb,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ProtocolMessageError } from "./codecs/messages.js";
|
|
3
|
+
import { promptImageSchema, sessionCapabilitiesSchema, sessionElicitationRequestedEventSchema, sessionPermissionRequestedEventSchema, sessionReadyEventSchema, } from "./control-messages.js";
|
|
4
|
+
import { identifierStringSchema as identifier } from "./identifier.js";
|
|
5
|
+
export const NATIVE_SESSION_REQUEST_KIND = "native.session.request";
|
|
6
|
+
export const NATIVE_SESSION_RESULT_KIND = "native.session.result";
|
|
7
|
+
export const NATIVE_SESSION_CANCEL_KIND = "native.session.cancel";
|
|
8
|
+
/** Bounding limits for materialized history payloads. */
|
|
9
|
+
export const SESSION_HISTORY_CHARACTER_LIMIT = 256_000;
|
|
10
|
+
export const SESSION_HISTORY_MESSAGE_LIMIT = 1_000;
|
|
11
|
+
const directoryId = z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,2047}$/);
|
|
12
|
+
const envelope = {
|
|
13
|
+
requestId: identifier,
|
|
14
|
+
sessionId: identifier,
|
|
15
|
+
};
|
|
16
|
+
export const activeTurnSnapshotSchema = z
|
|
17
|
+
.object({
|
|
18
|
+
commandId: identifier,
|
|
19
|
+
epoch: identifier,
|
|
20
|
+
interaction: z
|
|
21
|
+
.discriminatedUnion("kind", [sessionPermissionRequestedEventSchema, sessionElicitationRequestedEventSchema])
|
|
22
|
+
.nullable(),
|
|
23
|
+
sequence: z.number().int().nonnegative(),
|
|
24
|
+
state: z.literal("running"),
|
|
25
|
+
})
|
|
26
|
+
.readonly();
|
|
27
|
+
const identity = {
|
|
28
|
+
...envelope,
|
|
29
|
+
kind: z.literal(NATIVE_SESSION_REQUEST_KIND),
|
|
30
|
+
additionalDirectoryIds: z.array(directoryId).max(16).readonly(),
|
|
31
|
+
agentId: identifier,
|
|
32
|
+
bindingId: identifier,
|
|
33
|
+
directoryId,
|
|
34
|
+
};
|
|
35
|
+
const nativeSessionRequestSchema = z.discriminatedUnion("action", [
|
|
36
|
+
z.object({ ...identity, action: z.literal("active-turn"), targetSessionId: identifier }).readonly(),
|
|
37
|
+
z.object({ ...identity, action: z.literal("find"), nativeSessionId: identifier }).readonly(),
|
|
38
|
+
z
|
|
39
|
+
.object({
|
|
40
|
+
...identity,
|
|
41
|
+
action: z.literal("list"),
|
|
42
|
+
cursor: identifier.nullable(),
|
|
43
|
+
})
|
|
44
|
+
.readonly(),
|
|
45
|
+
z
|
|
46
|
+
.object({
|
|
47
|
+
...identity,
|
|
48
|
+
action: z.enum(["import", "fork"]),
|
|
49
|
+
entryId: identifier,
|
|
50
|
+
targetSessionId: identifier,
|
|
51
|
+
})
|
|
52
|
+
.readonly(),
|
|
53
|
+
]);
|
|
54
|
+
const nativeSessionCommandSchema = z.discriminatedUnion("action", [
|
|
55
|
+
z.object({ ...identity, action: z.literal("active-turn"), targetSessionId: identifier }).readonly(),
|
|
56
|
+
z.object({ ...identity, action: z.literal("find"), nativeSessionId: identifier }).readonly(),
|
|
57
|
+
z
|
|
58
|
+
.object({
|
|
59
|
+
...identity,
|
|
60
|
+
action: z.literal("list"),
|
|
61
|
+
cursor: identifier.nullable(),
|
|
62
|
+
})
|
|
63
|
+
.readonly(),
|
|
64
|
+
z
|
|
65
|
+
.object({
|
|
66
|
+
...identity,
|
|
67
|
+
action: z.enum(["import", "fork"]),
|
|
68
|
+
entryId: identifier,
|
|
69
|
+
targetSessionId: identifier,
|
|
70
|
+
})
|
|
71
|
+
.readonly(),
|
|
72
|
+
]);
|
|
73
|
+
const nativeSessionEntrySchema = z
|
|
74
|
+
.object({
|
|
75
|
+
entryId: identifier,
|
|
76
|
+
mobiusSessionIds: z.array(identifier).max(500).readonly(),
|
|
77
|
+
nativeSessionId: identifier,
|
|
78
|
+
title: z.string().max(500),
|
|
79
|
+
directoryId,
|
|
80
|
+
directoryLabel: z.string().min(1).max(2_048),
|
|
81
|
+
updatedAt: z.iso.datetime({ offset: true }).nullable(),
|
|
82
|
+
additionalDirectories: z
|
|
83
|
+
.array(z.object({ directoryId, name: z.string().min(1).max(255) }).readonly())
|
|
84
|
+
.max(16)
|
|
85
|
+
.readonly(),
|
|
86
|
+
})
|
|
87
|
+
.readonly();
|
|
88
|
+
const resultEnvelope = {
|
|
89
|
+
...envelope,
|
|
90
|
+
kind: z.literal(NATIVE_SESSION_RESULT_KIND),
|
|
91
|
+
};
|
|
92
|
+
const nativeSessionResultSchema = z.discriminatedUnion("action", [
|
|
93
|
+
z
|
|
94
|
+
.object({
|
|
95
|
+
...resultEnvelope,
|
|
96
|
+
action: z.literal("active-turn"),
|
|
97
|
+
targetSessionId: identifier,
|
|
98
|
+
queued: z
|
|
99
|
+
.array(z
|
|
100
|
+
.object({
|
|
101
|
+
commandId: identifier,
|
|
102
|
+
prompt: z.string().max(100_000),
|
|
103
|
+
images: z.array(promptImageSchema).max(8).readonly(),
|
|
104
|
+
})
|
|
105
|
+
.readonly())
|
|
106
|
+
.readonly(),
|
|
107
|
+
turn: activeTurnSnapshotSchema.nullable(),
|
|
108
|
+
})
|
|
109
|
+
.readonly(),
|
|
110
|
+
z
|
|
111
|
+
.object({
|
|
112
|
+
...resultEnvelope,
|
|
113
|
+
action: z.literal("find"),
|
|
114
|
+
entry: nativeSessionEntrySchema,
|
|
115
|
+
})
|
|
116
|
+
.readonly(),
|
|
117
|
+
z
|
|
118
|
+
.object({
|
|
119
|
+
...resultEnvelope,
|
|
120
|
+
action: z.literal("list"),
|
|
121
|
+
capabilities: sessionCapabilitiesSchema,
|
|
122
|
+
entries: z.array(nativeSessionEntrySchema).max(500).readonly(),
|
|
123
|
+
nextCursor: identifier.nullable(),
|
|
124
|
+
})
|
|
125
|
+
.readonly(),
|
|
126
|
+
z
|
|
127
|
+
.object({
|
|
128
|
+
...resultEnvelope,
|
|
129
|
+
action: z.enum(["import", "fork"]),
|
|
130
|
+
targetSessionId: identifier,
|
|
131
|
+
ready: sessionReadyEventSchema,
|
|
132
|
+
title: z.string().max(500),
|
|
133
|
+
})
|
|
134
|
+
.readonly(),
|
|
135
|
+
]);
|
|
136
|
+
const nativeSessionCancelSchema = z.object({ ...envelope, kind: z.literal(NATIVE_SESSION_CANCEL_KIND) }).readonly();
|
|
137
|
+
function decode(schema, encoded) {
|
|
138
|
+
try {
|
|
139
|
+
const value = JSON.parse(encoded);
|
|
140
|
+
return schema.parse(value);
|
|
141
|
+
}
|
|
142
|
+
catch (cause) {
|
|
143
|
+
throw new ProtocolMessageError("Invalid native session message", { cause });
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export const decodeNativeSessionCommand = (encoded) => decode(nativeSessionCommandSchema, encoded);
|
|
147
|
+
export const encodeNativeSessionCommand = (value) => JSON.stringify(nativeSessionCommandSchema.parse(value));
|
|
148
|
+
export const decodeNativeSessionRequest = (encoded) => decode(nativeSessionRequestSchema, encoded);
|
|
149
|
+
export const encodeNativeSessionRequest = (value) => JSON.stringify(nativeSessionRequestSchema.parse(value));
|
|
150
|
+
export const decodeNativeSessionResult = (encoded) => decode(nativeSessionResultSchema, encoded);
|
|
151
|
+
export const encodeNativeSessionResult = (value) => JSON.stringify(nativeSessionResultSchema.parse(value));
|
|
152
|
+
export const decodeNativeSessionCancel = (encoded) => decode(nativeSessionCancelSchema, encoded);
|
|
153
|
+
export const encodeNativeSessionCancel = (value) => JSON.stringify(nativeSessionCancelSchema.parse(value));
|
|
154
|
+
//# sourceMappingURL=native-sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-sessions.js","sourceRoot":"","sources":["../../src/protocol/native-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACH,iBAAiB,EACjB,yBAAyB,EACzB,sCAAsC,EACtC,qCAAqC,EACrC,uBAA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AyB,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAA0B,EAAU,EAAE,CAC5E,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,OAAe,EAAuB,EAAE,CAC9E,MAAM,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAA0B,EAAU,EAAE,CAC5E,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const PROJECT_LOCATION_HINTS: readonly [
|
|
2
|
+
"wnam",
|
|
3
|
+
"enam",
|
|
4
|
+
"sam",
|
|
5
|
+
"weur",
|
|
6
|
+
"eeur",
|
|
7
|
+
"apac",
|
|
8
|
+
"apac-ne",
|
|
9
|
+
"apac-se",
|
|
10
|
+
"oc",
|
|
11
|
+
"afr",
|
|
12
|
+
"me"
|
|
13
|
+
];
|
|
14
|
+
export type ProjectLocationHint = (typeof PROJECT_LOCATION_HINTS)[number];
|
|
15
|
+
export declare function isProjectLocationHint(value: unknown): value is ProjectLocationHint;
|
|
16
|
+
//# sourceMappingURL=project-location.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-location.d.ts","sourceRoot":"","sources":["../../src/protocol/project-location.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,EAAE,SAAS;IAC1C,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,SAAS;IACT,SAAS;IACT,IAAI;IACJ,KAAK;IACL,IAAI;CACoF,CAAC;AAE7F,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI1E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAElF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const PROJECT_LOCATION_HINTS = ["wnam", "enam", "sam", "weur", "eeur", "apac", "apac-ne", "apac-se", "oc", "afr", "me"];
|
|
2
|
+
const projectLocationHints = new Set(PROJECT_LOCATION_HINTS);
|
|
3
|
+
export function isProjectLocationHint(value) {
|
|
4
|
+
return projectLocationHints.has(value);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=project-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-location.js","sourceRoot":"","sources":["../../src/protocol/project-location.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAY/B,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;AAI7F,MAAM,oBAAoB,GAAyB,IAAI,GAAG,CAAC,sBAAsB,CAAC,CAAC;AAEnF,MAAM,UAAU,qBAAqB,CAAC,KAAc;IAChD,OAAO,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC"}
|