@moxt-ai/mobius-protocol 0.0.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/bot.d.ts +398 -0
- package/dist/bot.d.ts.map +1 -0
- package/dist/bot.js +901 -0
- package/dist/bot.js.map +1 -0
- package/dist/codecs/messages.d.ts +35 -0
- package/dist/codecs/messages.d.ts.map +1 -0
- package/dist/codecs/messages.js +466 -0
- package/dist/codecs/messages.js.map +1 -0
- package/dist/control-messages.d.ts +662 -0
- package/dist/control-messages.d.ts.map +1 -0
- package/dist/control-messages.js +494 -0
- package/dist/control-messages.js.map +1 -0
- package/dist/conversation-title.d.ts +2 -0
- package/dist/conversation-title.d.ts.map +1 -0
- package/dist/conversation-title.js +28 -0
- package/dist/conversation-title.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/messages.d.ts +135 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +25 -0
- package/dist/messages.js.map +1 -0
- package/dist/mobius-api.d.ts +15 -0
- package/dist/mobius-api.d.ts.map +1 -0
- package/dist/mobius-api.js +28 -0
- package/dist/mobius-api.js.map +1 -0
- package/dist/native-sessions.d.ts +262 -0
- package/dist/native-sessions.d.ts.map +1 -0
- package/dist/native-sessions.js +153 -0
- package/dist/native-sessions.js.map +1 -0
- package/dist/prompt-usage.d.ts +76 -0
- package/dist/prompt-usage.d.ts.map +1 -0
- package/dist/prompt-usage.js +88 -0
- package/dist/prompt-usage.js.map +1 -0
- package/dist/resource-model.d.ts +945 -0
- package/dist/resource-model.d.ts.map +1 -0
- package/dist/resource-model.js +716 -0
- package/dist/resource-model.js.map +1 -0
- package/dist/session-events.d.ts +97 -0
- package/dist/session-events.d.ts.map +1 -0
- package/dist/session-events.js +160 -0
- package/dist/session-events.js.map +1 -0
- package/dist/session-history.d.ts +69 -0
- package/dist/session-history.d.ts.map +1 -0
- package/dist/session-history.js +84 -0
- package/dist/session-history.js.map +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const SESSION_PROMPT_KIND = "session.prompt";
|
|
2
|
+
export declare const SESSION_CANCEL_KIND = "session.cancel";
|
|
3
|
+
export declare const RUNTIME_STATUS_KIND = "runtime.status";
|
|
4
|
+
export declare const RUNTIME_LIVENESS_READY_KIND = "runtime.liveness.ready";
|
|
5
|
+
export declare const RUNTIME_HEARTBEAT_KIND = "runtime.heartbeat";
|
|
6
|
+
export declare const RUNTIME_HEARTBEAT_ACK_KIND = "runtime.heartbeat.ack";
|
|
7
|
+
export declare const RUNTIME_DELIVERY_KIND = "runtime.delivery";
|
|
8
|
+
export declare const RUNTIME_DELIVERY_RECEIVED_KIND = "runtime.delivery.received";
|
|
9
|
+
export declare const RUNTIME_DELIVERY_COMMITTED_KIND = "runtime.delivery.committed";
|
|
10
|
+
export declare const SESSION_STARTED_KIND = "session.started";
|
|
11
|
+
export declare const AGENT_MESSAGE_DELTA_KIND = "agent.message.delta";
|
|
12
|
+
export declare const AGENT_ACTIVITY_KIND = "agent.activity";
|
|
13
|
+
export declare const AGENT_ACTIVITY_DETAIL_LIMIT = 24000;
|
|
14
|
+
export declare const AGENT_ACTIVITY_RECORDED_FIELD_LIMIT = 4000000;
|
|
15
|
+
export declare const AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT = 6000000;
|
|
16
|
+
export declare const AGENT_ACTIVITY_LOCATION_LIMIT = 12;
|
|
17
|
+
export declare const AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT = 1024;
|
|
18
|
+
export declare const SESSION_COMPLETED_KIND = "session.completed";
|
|
19
|
+
export declare const SESSION_FAILED_KIND = "session.failed";
|
|
20
|
+
export declare const SessionPromptDisposition: Readonly<{
|
|
21
|
+
Queue: "queue";
|
|
22
|
+
Reject: "reject";
|
|
23
|
+
Steer: "steer";
|
|
24
|
+
}>;
|
|
25
|
+
export interface SessionPromptCommand {
|
|
26
|
+
readonly additionalDirectoryIds: readonly string[];
|
|
27
|
+
readonly agentId: string;
|
|
28
|
+
readonly bindingId: string;
|
|
29
|
+
readonly commandId: string;
|
|
30
|
+
readonly directoryId: string;
|
|
31
|
+
readonly disposition: string;
|
|
32
|
+
readonly images: readonly PromptImage[];
|
|
33
|
+
readonly kind: typeof SESSION_PROMPT_KIND;
|
|
34
|
+
readonly prompt: string;
|
|
35
|
+
readonly resources: readonly PromptResource[];
|
|
36
|
+
readonly sessionId: string;
|
|
37
|
+
readonly targetCommandId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface SessionCancelCommand {
|
|
40
|
+
readonly commandId: string;
|
|
41
|
+
readonly kind: typeof SESSION_CANCEL_KIND;
|
|
42
|
+
readonly sessionId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface RuntimeStatusEvent {
|
|
45
|
+
readonly kind: typeof RUNTIME_STATUS_KIND;
|
|
46
|
+
readonly online: boolean;
|
|
47
|
+
readonly runtimeId: string;
|
|
48
|
+
}
|
|
49
|
+
export interface RuntimeLivenessReadyEvent {
|
|
50
|
+
readonly kind: typeof RUNTIME_LIVENESS_READY_KIND;
|
|
51
|
+
}
|
|
52
|
+
export interface RuntimeHeartbeatEvent {
|
|
53
|
+
readonly heartbeatId: string;
|
|
54
|
+
readonly kind: typeof RUNTIME_HEARTBEAT_KIND;
|
|
55
|
+
}
|
|
56
|
+
export interface RuntimeHeartbeatAckEvent {
|
|
57
|
+
readonly heartbeatId: string;
|
|
58
|
+
readonly kind: typeof RUNTIME_HEARTBEAT_ACK_KIND;
|
|
59
|
+
}
|
|
60
|
+
export interface RuntimeDelivery {
|
|
61
|
+
readonly deliveryId: string;
|
|
62
|
+
readonly kind: typeof RUNTIME_DELIVERY_KIND;
|
|
63
|
+
readonly payload: string;
|
|
64
|
+
readonly sessionId: string;
|
|
65
|
+
}
|
|
66
|
+
export interface RuntimeDeliveryReceived {
|
|
67
|
+
readonly deliveryId: string;
|
|
68
|
+
readonly kind: typeof RUNTIME_DELIVERY_RECEIVED_KIND;
|
|
69
|
+
readonly sessionId: string;
|
|
70
|
+
}
|
|
71
|
+
export interface RuntimeDeliveryCommitted {
|
|
72
|
+
readonly deliveryId: string;
|
|
73
|
+
readonly kind: typeof RUNTIME_DELIVERY_COMMITTED_KIND;
|
|
74
|
+
readonly sessionId: string;
|
|
75
|
+
}
|
|
76
|
+
export interface SessionStartedEvent {
|
|
77
|
+
readonly commandId: string;
|
|
78
|
+
readonly kind: typeof SESSION_STARTED_KIND;
|
|
79
|
+
readonly attemptId: string;
|
|
80
|
+
readonly sessionId: string;
|
|
81
|
+
}
|
|
82
|
+
export interface AgentMessageDeltaEvent {
|
|
83
|
+
readonly commandId: string;
|
|
84
|
+
readonly kind: typeof AGENT_MESSAGE_DELTA_KIND;
|
|
85
|
+
readonly messageId: string;
|
|
86
|
+
readonly sessionId: string;
|
|
87
|
+
readonly text: string;
|
|
88
|
+
}
|
|
89
|
+
export interface AgentActivityEvent {
|
|
90
|
+
readonly activityId: string;
|
|
91
|
+
readonly activityType: string;
|
|
92
|
+
readonly commandId: string;
|
|
93
|
+
readonly content: readonly AgentDisplayContent[];
|
|
94
|
+
readonly detail: AgentActivityDetailCapture;
|
|
95
|
+
readonly input: string;
|
|
96
|
+
readonly kind: typeof AGENT_ACTIVITY_KIND;
|
|
97
|
+
readonly locations: readonly string[];
|
|
98
|
+
readonly name: string;
|
|
99
|
+
readonly output: string;
|
|
100
|
+
readonly sequence: number;
|
|
101
|
+
readonly sessionId: string;
|
|
102
|
+
readonly status: string;
|
|
103
|
+
readonly title: string;
|
|
104
|
+
readonly toolKind: string;
|
|
105
|
+
}
|
|
106
|
+
export type AgentActivityDetailCapture = {
|
|
107
|
+
readonly artifactId: string;
|
|
108
|
+
readonly kind: "available";
|
|
109
|
+
} | {
|
|
110
|
+
readonly content: readonly AgentDisplayContent[];
|
|
111
|
+
readonly input: string;
|
|
112
|
+
readonly kind: "recorded";
|
|
113
|
+
readonly output: string;
|
|
114
|
+
} | {
|
|
115
|
+
readonly capturedBytes: number;
|
|
116
|
+
readonly kind: "truncated";
|
|
117
|
+
readonly originalBytes: number;
|
|
118
|
+
} | {
|
|
119
|
+
readonly kind: "unrecorded";
|
|
120
|
+
};
|
|
121
|
+
export interface SessionCompletedEvent {
|
|
122
|
+
readonly commandId: string;
|
|
123
|
+
readonly kind: typeof SESSION_COMPLETED_KIND;
|
|
124
|
+
readonly sessionId: string;
|
|
125
|
+
readonly stopReason: string;
|
|
126
|
+
}
|
|
127
|
+
export interface SessionFailedEvent {
|
|
128
|
+
readonly code: string;
|
|
129
|
+
readonly commandId: string;
|
|
130
|
+
readonly kind: typeof SESSION_FAILED_KIND;
|
|
131
|
+
readonly message: string;
|
|
132
|
+
readonly sessionId: string;
|
|
133
|
+
}
|
|
134
|
+
import type { AgentDisplayContent, PromptImage, PromptResource } from "./control-messages.ts";
|
|
135
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AACpE,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,8BAA8B,8BAA8B,CAAC;AAC1E,eAAO,MAAM,+BAA+B,+BAA+B,CAAC;AAC5E,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AACtD,eAAO,MAAM,wBAAwB,wBAAwB,CAAC;AAC9D,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,2BAA2B,QAAS,CAAC;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AAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAClC,GACD;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AAEtC,MAAM,WAAW,qBAAqB;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,sBAAsB,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC9B;AAED,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/messages.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const SESSION_PROMPT_KIND = "session.prompt";
|
|
2
|
+
export const SESSION_CANCEL_KIND = "session.cancel";
|
|
3
|
+
export const RUNTIME_STATUS_KIND = "runtime.status";
|
|
4
|
+
export const RUNTIME_LIVENESS_READY_KIND = "runtime.liveness.ready";
|
|
5
|
+
export const RUNTIME_HEARTBEAT_KIND = "runtime.heartbeat";
|
|
6
|
+
export const RUNTIME_HEARTBEAT_ACK_KIND = "runtime.heartbeat.ack";
|
|
7
|
+
export const RUNTIME_DELIVERY_KIND = "runtime.delivery";
|
|
8
|
+
export const RUNTIME_DELIVERY_RECEIVED_KIND = "runtime.delivery.received";
|
|
9
|
+
export const RUNTIME_DELIVERY_COMMITTED_KIND = "runtime.delivery.committed";
|
|
10
|
+
export const SESSION_STARTED_KIND = "session.started";
|
|
11
|
+
export const AGENT_MESSAGE_DELTA_KIND = "agent.message.delta";
|
|
12
|
+
export const AGENT_ACTIVITY_KIND = "agent.activity";
|
|
13
|
+
export const AGENT_ACTIVITY_DETAIL_LIMIT = 24_000;
|
|
14
|
+
export const AGENT_ACTIVITY_RECORDED_FIELD_LIMIT = 4_000_000;
|
|
15
|
+
export const AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT = 6_000_000;
|
|
16
|
+
export const AGENT_ACTIVITY_LOCATION_LIMIT = 12;
|
|
17
|
+
export const AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT = 1_024;
|
|
18
|
+
export const SESSION_COMPLETED_KIND = "session.completed";
|
|
19
|
+
export const SESSION_FAILED_KIND = "session.failed";
|
|
20
|
+
export const SessionPromptDisposition = Object.freeze({
|
|
21
|
+
Queue: "queue",
|
|
22
|
+
Reject: "reject",
|
|
23
|
+
Steer: "steer",
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,2BAA2B,GAAG,wBAAwB,CAAC;AACpE,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAC1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC;AAClE,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,8BAA8B,GAAG,2BAA2B,CAAC;AAC1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,4BAA4B,CAAC;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AACtD,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAClD,MAAM,CAAC,MAAM,mCAAmC,GAAG,SAAS,CAAC;AAC7D,MAAM,CAAC,MAAM,oCAAoC,GAAG,SAAS,CAAC;AAC9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,oCAAoC,GAAG,KAAK,CAAC;AAC1D,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC;IAClD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const MOBIUS_API_PREFIX = "/mobius/api";
|
|
2
|
+
export declare const MOBIUS_API_VERSION = "1";
|
|
3
|
+
export declare const MOBIUS_EVENT_FORMAT_VERSION = "1";
|
|
4
|
+
export declare const MOBIUS_SESSION_EXPORT_FORMAT_VERSION = "1";
|
|
5
|
+
export declare const MOBIUS_SESSION_EVENT_STREAM_EVENT = "mobius.session-event.v1";
|
|
6
|
+
export declare const MOBIUS_SESSION_EVENT_STREAM_MEDIA_TYPE = "text/event-stream";
|
|
7
|
+
export declare const MOBIUS_SESSION_EVENT_STREAM_TRANSPORT = "sse";
|
|
8
|
+
export declare class MobiusApiConfigurationError extends Error {
|
|
9
|
+
readonly code = "invalid_api_prefix";
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
export declare function parseMobiusApiPrefix(value: unknown): string;
|
|
13
|
+
export declare function mobiusApiPath(resourcePath: `/${string}`, apiPrefix?: string): string;
|
|
14
|
+
export declare function mobiusApiUrl(origin: string | URL, resourcePath: `/${string}`, apiPrefix?: string): URL;
|
|
15
|
+
//# sourceMappingURL=mobius-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobius-api.d.ts","sourceRoot":"","sources":["../src/mobius-api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,iCAAiC,4BAA4B,CAAC;AAC3E,eAAO,MAAM,sCAAsC,sBAAsB,CAAC;AAC1E,eAAO,MAAM,qCAAqC,QAAQ,CAAC;AAI3D,qBAAa,2BAA4B,SAAQ,KAAK;IAClD,QAAQ,CAAC,IAAI,wBAAwB;IAErC,cAGC;CACJ;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAK3D;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,IAAI,MAAM,EAAE,EAAE,SAAS,GAAE,MAA0B,GAAG,MAAM,CAEvG;AAED,wBAAgB,YAAY,CACxB,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,YAAY,EAAE,IAAI,MAAM,EAAE,EAC1B,SAAS,GAAE,MAA0B,GACtC,GAAG,CAEL"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const MOBIUS_API_PREFIX = "/mobius/api";
|
|
2
|
+
export const MOBIUS_API_VERSION = "1";
|
|
3
|
+
export const MOBIUS_EVENT_FORMAT_VERSION = "1";
|
|
4
|
+
export const MOBIUS_SESSION_EXPORT_FORMAT_VERSION = "1";
|
|
5
|
+
export const MOBIUS_SESSION_EVENT_STREAM_EVENT = "mobius.session-event.v1";
|
|
6
|
+
export const MOBIUS_SESSION_EVENT_STREAM_MEDIA_TYPE = "text/event-stream";
|
|
7
|
+
export const MOBIUS_SESSION_EVENT_STREAM_TRANSPORT = "sse";
|
|
8
|
+
const API_PREFIX_PATTERN = /^\/[a-zA-Z0-9._~-]+(?:\/[a-zA-Z0-9._~-]+)*$/;
|
|
9
|
+
export class MobiusApiConfigurationError extends Error {
|
|
10
|
+
code = "invalid_api_prefix";
|
|
11
|
+
constructor() {
|
|
12
|
+
super("The Mobius API prefix must be an absolute path without parameters");
|
|
13
|
+
this.name = "MobiusApiConfigurationError";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function parseMobiusApiPrefix(value) {
|
|
17
|
+
if (typeof value !== "string" || !API_PREFIX_PATTERN.test(value)) {
|
|
18
|
+
throw new MobiusApiConfigurationError();
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
export function mobiusApiPath(resourcePath, apiPrefix = MOBIUS_API_PREFIX) {
|
|
23
|
+
return `${parseMobiusApiPrefix(apiPrefix)}${resourcePath}`;
|
|
24
|
+
}
|
|
25
|
+
export function mobiusApiUrl(origin, resourcePath, apiPrefix = MOBIUS_API_PREFIX) {
|
|
26
|
+
return new URL(mobiusApiPath(resourcePath, apiPrefix), origin);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=mobius-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobius-api.js","sourceRoot":"","sources":["../src/mobius-api.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AACtC,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAC/C,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AACxD,MAAM,CAAC,MAAM,iCAAiC,GAAG,yBAAyB,CAAC;AAC3E,MAAM,CAAC,MAAM,sCAAsC,GAAG,mBAAmB,CAAC;AAC1E,MAAM,CAAC,MAAM,qCAAqC,GAAG,KAAK,CAAC;AAE3D,MAAM,kBAAkB,GAAG,6CAA6C,CAAC;AAEzE,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IACzC,IAAI,GAAG,oBAAoB,CAAC;IAErC;QACI,KAAK,CAAC,mEAAmE,CAAC,CAAC;QAC3E,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC9C,CAAC;CACJ;AAED,MAAM,UAAU,oBAAoB,CAAC,KAAc;IAC/C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/D,MAAM,IAAI,2BAA2B,EAAE,CAAC;IAC5C,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,YAA0B,EAAE,SAAS,GAAW,iBAAiB;IAC3F,OAAO,GAAG,oBAAoB,CAAC,SAAS,CAAC,GAAG,YAAY,EAAE,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,YAAY,CACxB,MAAoB,EACpB,YAA0B,EAC1B,SAAS,GAAW,iBAAiB;IAErC,OAAO,IAAI,GAAG,CAAC,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1,262 @@
|
|
|
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
|
+
export declare const NATIVE_SESSION_TURN_FORK_REQUEST_KIND = "native.session.turn-fork.request";
|
|
6
|
+
export declare const NATIVE_SESSION_TURN_FORK_KIND = "native.session.turn-fork";
|
|
7
|
+
declare const nativeSessionTurnForkRequestSchema: z.ZodReadonly<z.ZodObject<{
|
|
8
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
9
|
+
agentId: z.ZodString;
|
|
10
|
+
bindingId: z.ZodString;
|
|
11
|
+
directoryId: z.ZodString;
|
|
12
|
+
requestId: z.ZodString;
|
|
13
|
+
sessionId: z.ZodString;
|
|
14
|
+
sourceCommandId: z.ZodString;
|
|
15
|
+
targetSessionId: z.ZodString;
|
|
16
|
+
kind: z.ZodLiteral<"native.session.turn-fork.request">;
|
|
17
|
+
}, z.core.$strict>>;
|
|
18
|
+
export type NativeSessionTurnForkRequest = z.infer<typeof nativeSessionTurnForkRequestSchema>;
|
|
19
|
+
declare const nativeSessionTurnForkCommandSchema: z.ZodReadonly<z.ZodObject<{
|
|
20
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
21
|
+
agentId: z.ZodString;
|
|
22
|
+
bindingId: z.ZodString;
|
|
23
|
+
directoryId: z.ZodString;
|
|
24
|
+
requestId: z.ZodString;
|
|
25
|
+
sessionId: z.ZodString;
|
|
26
|
+
sourceCommandId: z.ZodString;
|
|
27
|
+
targetSessionId: z.ZodString;
|
|
28
|
+
kind: z.ZodLiteral<"native.session.turn-fork">;
|
|
29
|
+
messageFingerprint: z.ZodString;
|
|
30
|
+
messageId: z.ZodString;
|
|
31
|
+
messageOccurrence: z.ZodNumber;
|
|
32
|
+
title: z.ZodString;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
export type NativeSessionTurnForkCommand = z.infer<typeof nativeSessionTurnForkCommandSchema>;
|
|
35
|
+
declare const nativeSessionCommandSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
36
|
+
requestId: z.ZodString;
|
|
37
|
+
sessionId: z.ZodString;
|
|
38
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
39
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
40
|
+
agentId: z.ZodString;
|
|
41
|
+
bindingId: z.ZodString;
|
|
42
|
+
directoryId: z.ZodString;
|
|
43
|
+
action: z.ZodLiteral<"list">;
|
|
44
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
46
|
+
requestId: z.ZodString;
|
|
47
|
+
sessionId: z.ZodString;
|
|
48
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
49
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
50
|
+
agentId: z.ZodString;
|
|
51
|
+
bindingId: z.ZodString;
|
|
52
|
+
directoryId: z.ZodString;
|
|
53
|
+
action: z.ZodEnum<{
|
|
54
|
+
fork: "fork";
|
|
55
|
+
import: "import";
|
|
56
|
+
}>;
|
|
57
|
+
entryId: z.ZodString;
|
|
58
|
+
targetSessionId: z.ZodString;
|
|
59
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
60
|
+
requestId: z.ZodString;
|
|
61
|
+
sessionId: z.ZodString;
|
|
62
|
+
kind: z.ZodLiteral<"native.session.request">;
|
|
63
|
+
additionalDirectoryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
64
|
+
agentId: z.ZodString;
|
|
65
|
+
bindingId: z.ZodString;
|
|
66
|
+
directoryId: z.ZodString;
|
|
67
|
+
action: z.ZodLiteral<"delete">;
|
|
68
|
+
entryId: z.ZodString;
|
|
69
|
+
}, z.core.$strict>>], "action">;
|
|
70
|
+
export type NativeSessionCommand = z.infer<typeof nativeSessionCommandSchema>;
|
|
71
|
+
declare const nativeSessionEntrySchema: z.ZodReadonly<z.ZodObject<{
|
|
72
|
+
entryId: z.ZodString;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
directoryId: z.ZodString;
|
|
75
|
+
directoryLabel: z.ZodString;
|
|
76
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
77
|
+
additionalDirectories: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
78
|
+
directoryId: z.ZodString;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
}, z.core.$strict>>>>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
export type NativeSessionEntry = z.infer<typeof nativeSessionEntrySchema>;
|
|
83
|
+
declare const nativeSessionResultSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
84
|
+
requestId: z.ZodString;
|
|
85
|
+
sessionId: z.ZodString;
|
|
86
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
87
|
+
action: z.ZodLiteral<"list">;
|
|
88
|
+
capabilities: z.ZodReadonly<z.ZodObject<{
|
|
89
|
+
additionalDirectories: z.ZodBoolean;
|
|
90
|
+
audioPrompt: z.ZodBoolean;
|
|
91
|
+
closeSession: z.ZodBoolean;
|
|
92
|
+
deleteSession: z.ZodBoolean;
|
|
93
|
+
embeddedContextPrompt: z.ZodBoolean;
|
|
94
|
+
imagePrompt: z.ZodBoolean;
|
|
95
|
+
listSessions: z.ZodBoolean;
|
|
96
|
+
loadSession: z.ZodBoolean;
|
|
97
|
+
promptQueueing: z.ZodDefault<z.ZodBoolean>;
|
|
98
|
+
resumeSession: z.ZodBoolean;
|
|
99
|
+
steering: z.ZodDefault<z.ZodBoolean>;
|
|
100
|
+
unstableForkSession: z.ZodDefault<z.ZodBoolean>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
entries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
103
|
+
entryId: z.ZodString;
|
|
104
|
+
title: z.ZodString;
|
|
105
|
+
directoryId: z.ZodString;
|
|
106
|
+
directoryLabel: z.ZodString;
|
|
107
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
108
|
+
additionalDirectories: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
109
|
+
directoryId: z.ZodString;
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
}, z.core.$strict>>>>;
|
|
112
|
+
}, z.core.$strict>>>>;
|
|
113
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
114
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
115
|
+
requestId: z.ZodString;
|
|
116
|
+
sessionId: z.ZodString;
|
|
117
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
118
|
+
action: z.ZodEnum<{
|
|
119
|
+
fork: "fork";
|
|
120
|
+
import: "import";
|
|
121
|
+
}>;
|
|
122
|
+
targetSessionId: z.ZodString;
|
|
123
|
+
ready: z.ZodReadonly<z.ZodObject<{
|
|
124
|
+
additionalDirectories: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
125
|
+
directoryId: z.ZodString;
|
|
126
|
+
name: z.ZodString;
|
|
127
|
+
}, z.core.$strict>>>>;
|
|
128
|
+
agentId: z.ZodString;
|
|
129
|
+
agentName: z.ZodString;
|
|
130
|
+
agentVersion: z.ZodString;
|
|
131
|
+
capabilities: z.ZodReadonly<z.ZodObject<{
|
|
132
|
+
additionalDirectories: z.ZodBoolean;
|
|
133
|
+
audioPrompt: z.ZodBoolean;
|
|
134
|
+
closeSession: z.ZodBoolean;
|
|
135
|
+
deleteSession: z.ZodBoolean;
|
|
136
|
+
embeddedContextPrompt: z.ZodBoolean;
|
|
137
|
+
imagePrompt: z.ZodBoolean;
|
|
138
|
+
listSessions: z.ZodBoolean;
|
|
139
|
+
loadSession: z.ZodBoolean;
|
|
140
|
+
promptQueueing: z.ZodDefault<z.ZodBoolean>;
|
|
141
|
+
resumeSession: z.ZodBoolean;
|
|
142
|
+
steering: z.ZodDefault<z.ZodBoolean>;
|
|
143
|
+
unstableForkSession: z.ZodDefault<z.ZodBoolean>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
commands: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
146
|
+
description: z.ZodString;
|
|
147
|
+
inputHint: z.ZodString;
|
|
148
|
+
name: z.ZodString;
|
|
149
|
+
}, z.core.$strict>>>>;
|
|
150
|
+
configOptions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
151
|
+
booleanValue: z.ZodBoolean;
|
|
152
|
+
category: z.ZodString;
|
|
153
|
+
currentValue: z.ZodString;
|
|
154
|
+
description: z.ZodString;
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
type: z.ZodEnum<{
|
|
158
|
+
boolean: "boolean";
|
|
159
|
+
select: "select";
|
|
160
|
+
}>;
|
|
161
|
+
values: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
162
|
+
description: z.ZodString;
|
|
163
|
+
groupId: z.ZodString;
|
|
164
|
+
groupName: z.ZodString;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
value: z.ZodString;
|
|
167
|
+
}, z.core.$strict>>>>;
|
|
168
|
+
}, z.core.$strict>>>>;
|
|
169
|
+
directoryId: z.ZodString;
|
|
170
|
+
directoryLabel: z.ZodString;
|
|
171
|
+
kind: z.ZodLiteral<"session.ready">;
|
|
172
|
+
requestId: z.ZodString;
|
|
173
|
+
restored: z.ZodBoolean;
|
|
174
|
+
sessionId: z.ZodString;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
history: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
177
|
+
status: z.ZodLiteral<"available">;
|
|
178
|
+
messages: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
179
|
+
role: z.ZodEnum<{
|
|
180
|
+
assistant: "assistant";
|
|
181
|
+
user: "user";
|
|
182
|
+
}>;
|
|
183
|
+
text: z.ZodString;
|
|
184
|
+
images: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
185
|
+
data: z.ZodString;
|
|
186
|
+
mimeType: z.ZodEnum<{
|
|
187
|
+
"image/gif": "image/gif";
|
|
188
|
+
"image/jpeg": "image/jpeg";
|
|
189
|
+
"image/png": "image/png";
|
|
190
|
+
"image/webp": "image/webp";
|
|
191
|
+
}>;
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
}, z.core.$strict>>>>>;
|
|
194
|
+
}, z.core.$strict>>>>;
|
|
195
|
+
truncated: z.ZodBoolean;
|
|
196
|
+
coveredCommandIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
197
|
+
coveredMessageIds: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
198
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
199
|
+
status: z.ZodLiteral<"unavailable">;
|
|
200
|
+
}, z.core.$strict>>], "status">;
|
|
201
|
+
title: z.ZodString;
|
|
202
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
203
|
+
requestId: z.ZodString;
|
|
204
|
+
sessionId: z.ZodString;
|
|
205
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
206
|
+
action: z.ZodLiteral<"preview">;
|
|
207
|
+
entryId: z.ZodString;
|
|
208
|
+
targetSessionId: z.ZodString;
|
|
209
|
+
reason: z.ZodLiteral<"continuation_unavailable">;
|
|
210
|
+
history: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
211
|
+
status: z.ZodLiteral<"available">;
|
|
212
|
+
messages: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
213
|
+
role: z.ZodEnum<{
|
|
214
|
+
assistant: "assistant";
|
|
215
|
+
user: "user";
|
|
216
|
+
}>;
|
|
217
|
+
text: z.ZodString;
|
|
218
|
+
images: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
219
|
+
data: z.ZodString;
|
|
220
|
+
mimeType: z.ZodEnum<{
|
|
221
|
+
"image/gif": "image/gif";
|
|
222
|
+
"image/jpeg": "image/jpeg";
|
|
223
|
+
"image/png": "image/png";
|
|
224
|
+
"image/webp": "image/webp";
|
|
225
|
+
}>;
|
|
226
|
+
name: z.ZodString;
|
|
227
|
+
}, z.core.$strict>>>>>;
|
|
228
|
+
}, z.core.$strict>>>>;
|
|
229
|
+
truncated: z.ZodBoolean;
|
|
230
|
+
coveredCommandIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
231
|
+
coveredMessageIds: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
232
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
233
|
+
status: z.ZodLiteral<"unavailable">;
|
|
234
|
+
}, z.core.$strict>>], "status">;
|
|
235
|
+
title: z.ZodString;
|
|
236
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
237
|
+
requestId: z.ZodString;
|
|
238
|
+
sessionId: z.ZodString;
|
|
239
|
+
kind: z.ZodLiteral<"native.session.result">;
|
|
240
|
+
action: z.ZodLiteral<"delete">;
|
|
241
|
+
entryId: z.ZodString;
|
|
242
|
+
deletedSessionIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
243
|
+
}, z.core.$strict>>], "action">;
|
|
244
|
+
export type NativeSessionResult = z.infer<typeof nativeSessionResultSchema>;
|
|
245
|
+
declare const nativeSessionCancelSchema: z.ZodReadonly<z.ZodObject<{
|
|
246
|
+
requestId: z.ZodString;
|
|
247
|
+
sessionId: z.ZodString;
|
|
248
|
+
kind: z.ZodLiteral<"native.session.cancel">;
|
|
249
|
+
}, z.core.$strict>>;
|
|
250
|
+
export type NativeSessionCancel = z.infer<typeof nativeSessionCancelSchema>;
|
|
251
|
+
export declare const decodeNativeSessionCommand: (encoded: string) => NativeSessionCommand;
|
|
252
|
+
export declare const encodeNativeSessionCommand: (value: NativeSessionCommand) => string;
|
|
253
|
+
export declare const decodeNativeSessionResult: (encoded: string) => NativeSessionResult;
|
|
254
|
+
export declare const encodeNativeSessionResult: (value: NativeSessionResult) => string;
|
|
255
|
+
export declare const decodeNativeSessionCancel: (encoded: string) => NativeSessionCancel;
|
|
256
|
+
export declare const encodeNativeSessionCancel: (value: NativeSessionCancel) => string;
|
|
257
|
+
export declare const decodeNativeSessionTurnForkRequest: (encoded: string) => NativeSessionTurnForkRequest;
|
|
258
|
+
export declare const encodeNativeSessionTurnForkRequest: (value: NativeSessionTurnForkRequest) => string;
|
|
259
|
+
export declare const decodeNativeSessionTurnForkCommand: (encoded: string) => NativeSessionTurnForkCommand;
|
|
260
|
+
export declare const encodeNativeSessionTurnForkCommand: (value: NativeSessionTurnForkCommand) => string;
|
|
261
|
+
export {};
|
|
262
|
+
//# sourceMappingURL=native-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-sessions.d.ts","sourceRoot":"","sources":["../src/native-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AACpE,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,qCAAqC,qCAAqC,CAAC;AACxF,eAAO,MAAM,6BAA6B,6BAA6B,CAAC;AA4BxE,QAAA,MAAM,kCAAkC;;;;;;;;;;mBAKzB,CAAC;AAChB,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,QAAA,MAAM,kCAAkC;;;;;;;;;;;;;;mBASzB,CAAC;AAChB,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAuB9B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAA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{ z } from "zod";
|
|
2
|
+
import { ProtocolMessageError } from "./codecs/messages.js";
|
|
3
|
+
import { sessionCapabilitiesSchema, sessionReadyEventSchema } from "./control-messages.js";
|
|
4
|
+
import { sessionHistorySchema } from "./session-history.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
|
+
export const NATIVE_SESSION_TURN_FORK_REQUEST_KIND = "native.session.turn-fork.request";
|
|
9
|
+
export const NATIVE_SESSION_TURN_FORK_KIND = "native.session.turn-fork";
|
|
10
|
+
const identifier = z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$/);
|
|
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
|
+
const identity = {
|
|
17
|
+
...envelope,
|
|
18
|
+
kind: z.literal(NATIVE_SESSION_REQUEST_KIND),
|
|
19
|
+
additionalDirectoryIds: z.array(directoryId).max(16).readonly(),
|
|
20
|
+
agentId: identifier,
|
|
21
|
+
bindingId: identifier,
|
|
22
|
+
directoryId,
|
|
23
|
+
};
|
|
24
|
+
const turnForkIdentity = {
|
|
25
|
+
additionalDirectoryIds: z.array(directoryId).max(16).readonly(),
|
|
26
|
+
agentId: identifier,
|
|
27
|
+
bindingId: identifier,
|
|
28
|
+
directoryId,
|
|
29
|
+
requestId: identifier,
|
|
30
|
+
sessionId: identifier,
|
|
31
|
+
sourceCommandId: identifier,
|
|
32
|
+
targetSessionId: identifier,
|
|
33
|
+
};
|
|
34
|
+
const nativeSessionTurnForkRequestSchema = z
|
|
35
|
+
.strictObject({
|
|
36
|
+
...turnForkIdentity,
|
|
37
|
+
kind: z.literal(NATIVE_SESSION_TURN_FORK_REQUEST_KIND),
|
|
38
|
+
})
|
|
39
|
+
.readonly();
|
|
40
|
+
const nativeSessionTurnForkCommandSchema = z
|
|
41
|
+
.strictObject({
|
|
42
|
+
...turnForkIdentity,
|
|
43
|
+
kind: z.literal(NATIVE_SESSION_TURN_FORK_KIND),
|
|
44
|
+
messageFingerprint: z.string().regex(/^sha256:[a-f0-9]{64}$/),
|
|
45
|
+
messageId: z.string().min(1).max(255),
|
|
46
|
+
messageOccurrence: z.number().int().positive(),
|
|
47
|
+
title: z.string().max(500),
|
|
48
|
+
})
|
|
49
|
+
.readonly();
|
|
50
|
+
const nativeSessionCommandSchema = z.discriminatedUnion("action", [
|
|
51
|
+
z
|
|
52
|
+
.strictObject({
|
|
53
|
+
...identity,
|
|
54
|
+
action: z.literal("list"),
|
|
55
|
+
cursor: identifier.nullable(),
|
|
56
|
+
})
|
|
57
|
+
.readonly(),
|
|
58
|
+
z
|
|
59
|
+
.strictObject({
|
|
60
|
+
...identity,
|
|
61
|
+
action: z.enum(["import", "fork"]),
|
|
62
|
+
entryId: identifier,
|
|
63
|
+
targetSessionId: identifier,
|
|
64
|
+
})
|
|
65
|
+
.readonly(),
|
|
66
|
+
z
|
|
67
|
+
.strictObject({
|
|
68
|
+
...identity,
|
|
69
|
+
action: z.literal("delete"),
|
|
70
|
+
entryId: identifier,
|
|
71
|
+
})
|
|
72
|
+
.readonly(),
|
|
73
|
+
]);
|
|
74
|
+
const nativeSessionEntrySchema = z
|
|
75
|
+
.strictObject({
|
|
76
|
+
entryId: identifier,
|
|
77
|
+
title: z.string().max(500),
|
|
78
|
+
directoryId,
|
|
79
|
+
directoryLabel: z.string().min(1).max(2_048),
|
|
80
|
+
updatedAt: z.iso.datetime({ offset: true }).nullable(),
|
|
81
|
+
additionalDirectories: z
|
|
82
|
+
.array(z.strictObject({ directoryId, name: z.string().min(1).max(255) }).readonly())
|
|
83
|
+
.max(16)
|
|
84
|
+
.readonly(),
|
|
85
|
+
})
|
|
86
|
+
.readonly();
|
|
87
|
+
const resultEnvelope = {
|
|
88
|
+
...envelope,
|
|
89
|
+
kind: z.literal(NATIVE_SESSION_RESULT_KIND),
|
|
90
|
+
};
|
|
91
|
+
const nativeSessionResultSchema = z.discriminatedUnion("action", [
|
|
92
|
+
z
|
|
93
|
+
.strictObject({
|
|
94
|
+
...resultEnvelope,
|
|
95
|
+
action: z.literal("list"),
|
|
96
|
+
capabilities: sessionCapabilitiesSchema,
|
|
97
|
+
entries: z.array(nativeSessionEntrySchema).max(500).readonly(),
|
|
98
|
+
nextCursor: identifier.nullable(),
|
|
99
|
+
})
|
|
100
|
+
.readonly(),
|
|
101
|
+
z
|
|
102
|
+
.strictObject({
|
|
103
|
+
...resultEnvelope,
|
|
104
|
+
action: z.enum(["import", "fork"]),
|
|
105
|
+
targetSessionId: identifier,
|
|
106
|
+
ready: sessionReadyEventSchema,
|
|
107
|
+
history: sessionHistorySchema,
|
|
108
|
+
title: z.string().max(500),
|
|
109
|
+
})
|
|
110
|
+
.readonly(),
|
|
111
|
+
z
|
|
112
|
+
.strictObject({
|
|
113
|
+
...resultEnvelope,
|
|
114
|
+
action: z.literal("preview"),
|
|
115
|
+
entryId: identifier,
|
|
116
|
+
targetSessionId: identifier,
|
|
117
|
+
reason: z.literal("continuation_unavailable"),
|
|
118
|
+
history: sessionHistorySchema,
|
|
119
|
+
title: z.string().max(500),
|
|
120
|
+
})
|
|
121
|
+
.readonly(),
|
|
122
|
+
z
|
|
123
|
+
.strictObject({
|
|
124
|
+
...resultEnvelope,
|
|
125
|
+
action: z.literal("delete"),
|
|
126
|
+
entryId: identifier,
|
|
127
|
+
deletedSessionIds: z.array(identifier).max(500).readonly(),
|
|
128
|
+
})
|
|
129
|
+
.readonly(),
|
|
130
|
+
]);
|
|
131
|
+
const nativeSessionCancelSchema = z
|
|
132
|
+
.strictObject({ ...envelope, kind: z.literal(NATIVE_SESSION_CANCEL_KIND) })
|
|
133
|
+
.readonly();
|
|
134
|
+
function decode(schema, encoded) {
|
|
135
|
+
try {
|
|
136
|
+
const value = JSON.parse(encoded);
|
|
137
|
+
return schema.parse(value);
|
|
138
|
+
}
|
|
139
|
+
catch (cause) {
|
|
140
|
+
throw new ProtocolMessageError("Invalid native session message", { cause });
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export const decodeNativeSessionCommand = (encoded) => decode(nativeSessionCommandSchema, encoded);
|
|
144
|
+
export const encodeNativeSessionCommand = (value) => JSON.stringify(nativeSessionCommandSchema.parse(value));
|
|
145
|
+
export const decodeNativeSessionResult = (encoded) => decode(nativeSessionResultSchema, encoded);
|
|
146
|
+
export const encodeNativeSessionResult = (value) => JSON.stringify(nativeSessionResultSchema.parse(value));
|
|
147
|
+
export const decodeNativeSessionCancel = (encoded) => decode(nativeSessionCancelSchema, encoded);
|
|
148
|
+
export const encodeNativeSessionCancel = (value) => JSON.stringify(nativeSessionCancelSchema.parse(value));
|
|
149
|
+
export const decodeNativeSessionTurnForkRequest = (encoded) => decode(nativeSessionTurnForkRequestSchema, encoded);
|
|
150
|
+
export const encodeNativeSessionTurnForkRequest = (value) => JSON.stringify(nativeSessionTurnForkRequestSchema.parse(value));
|
|
151
|
+
export const decodeNativeSessionTurnForkCommand = (encoded) => decode(nativeSessionTurnForkCommandSchema, encoded);
|
|
152
|
+
export const encodeNativeSessionTurnForkCommand = (value) => JSON.stringify(nativeSessionTurnForkCommandSchema.parse(value));
|
|
153
|
+
//# sourceMappingURL=native-sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-sessions.js","sourceRoot":"","sources":["../src/native-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBA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