@maiaos/protocol 0.1.0-canary.44938d4.manual.1
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/README.md +239 -0
- package/dist/aggregate/revision-effect-schema.d.ts +3 -0
- package/dist/aggregate/revision-effect-schema.d.ts.map +1 -0
- package/dist/aggregate/revision-effect-schema.js +4 -0
- package/dist/aggregate/revision-effect-schema.js.map +1 -0
- package/dist/capability.d.ts +12 -0
- package/dist/capability.d.ts.map +1 -0
- package/dist/capability.js +27 -0
- package/dist/capability.js.map +1 -0
- package/dist/command-receipt/contract.d.ts +85 -0
- package/dist/command-receipt/contract.d.ts.map +1 -0
- package/dist/command-receipt/contract.js +12 -0
- package/dist/command-receipt/contract.js.map +1 -0
- package/dist/command-receipt/effect-schema.d.ts +78 -0
- package/dist/command-receipt/effect-schema.d.ts.map +1 -0
- package/dist/command-receipt/effect-schema.js +72 -0
- package/dist/command-receipt/effect-schema.js.map +1 -0
- package/dist/command-receipt/policy.d.ts +16 -0
- package/dist/command-receipt/policy.d.ts.map +1 -0
- package/dist/command-receipt/policy.js +76 -0
- package/dist/command-receipt/policy.js.map +1 -0
- package/dist/command-receipt/version.d.ts +2 -0
- package/dist/command-receipt/version.d.ts.map +1 -0
- package/dist/command-receipt/version.js +2 -0
- package/dist/command-receipt/version.js.map +1 -0
- package/dist/configuration.d.ts +63 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/configuration.js +93 -0
- package/dist/configuration.js.map +1 -0
- package/dist/envelope-effect-schema.d.ts +49 -0
- package/dist/envelope-effect-schema.d.ts.map +1 -0
- package/dist/envelope-effect-schema.js +50 -0
- package/dist/envelope-effect-schema.js.map +1 -0
- package/dist/envelope-policy.d.ts +4 -0
- package/dist/envelope-policy.d.ts.map +1 -0
- package/dist/envelope-policy.js +4 -0
- package/dist/envelope-policy.js.map +1 -0
- package/dist/envelope.d.ts +52 -0
- package/dist/envelope.d.ts.map +1 -0
- package/dist/envelope.js +41 -0
- package/dist/envelope.js.map +1 -0
- package/dist/execution/contract.d.ts +230 -0
- package/dist/execution/contract.d.ts.map +1 -0
- package/dist/execution/contract.js +16 -0
- package/dist/execution/contract.js.map +1 -0
- package/dist/execution/effect-schema.d.ts +370 -0
- package/dist/execution/effect-schema.d.ts.map +1 -0
- package/dist/execution/effect-schema.js +148 -0
- package/dist/execution/effect-schema.js.map +1 -0
- package/dist/execution/version.d.ts +5 -0
- package/dist/execution/version.d.ts.map +1 -0
- package/dist/execution/version.js +5 -0
- package/dist/execution/version.js.map +1 -0
- package/dist/harness/installed/contract.d.ts +144 -0
- package/dist/harness/installed/contract.d.ts.map +1 -0
- package/dist/harness/installed/contract.js +6 -0
- package/dist/harness/installed/contract.js.map +1 -0
- package/dist/harness/installed/effect-schema.d.ts +261 -0
- package/dist/harness/installed/effect-schema.d.ts.map +1 -0
- package/dist/harness/installed/effect-schema.js +63 -0
- package/dist/harness/installed/effect-schema.js.map +1 -0
- package/dist/harness/installed/version.d.ts +2 -0
- package/dist/harness/installed/version.d.ts.map +1 -0
- package/dist/harness/installed/version.js +2 -0
- package/dist/harness/installed/version.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/integration-authorization/contract.d.ts +3495 -0
- package/dist/integration-authorization/contract.d.ts.map +1 -0
- package/dist/integration-authorization/contract.js +25 -0
- package/dist/integration-authorization/contract.js.map +1 -0
- package/dist/integration-authorization/effect-schema.d.ts +4495 -0
- package/dist/integration-authorization/effect-schema.d.ts.map +1 -0
- package/dist/integration-authorization/effect-schema.js +293 -0
- package/dist/integration-authorization/effect-schema.js.map +1 -0
- package/dist/integration-authorization/policy.d.ts +5 -0
- package/dist/integration-authorization/policy.d.ts.map +1 -0
- package/dist/integration-authorization/policy.js +5 -0
- package/dist/integration-authorization/policy.js.map +1 -0
- package/dist/integration-authorization/version.d.ts +2 -0
- package/dist/integration-authorization/version.d.ts.map +1 -0
- package/dist/integration-authorization/version.js +2 -0
- package/dist/integration-authorization/version.js.map +1 -0
- package/dist/invocation-context/contract.d.ts +38 -0
- package/dist/invocation-context/contract.d.ts.map +1 -0
- package/dist/invocation-context/contract.js +7 -0
- package/dist/invocation-context/contract.js.map +1 -0
- package/dist/invocation-context/effect-schema.d.ts +63 -0
- package/dist/invocation-context/effect-schema.d.ts.map +1 -0
- package/dist/invocation-context/effect-schema.js +52 -0
- package/dist/invocation-context/effect-schema.js.map +1 -0
- package/dist/invocation-context/policy.d.ts +8 -0
- package/dist/invocation-context/policy.d.ts.map +1 -0
- package/dist/invocation-context/policy.js +8 -0
- package/dist/invocation-context/policy.js.map +1 -0
- package/dist/invocation-context/version.d.ts +2 -0
- package/dist/invocation-context/version.d.ts.map +1 -0
- package/dist/invocation-context/version.js +2 -0
- package/dist/invocation-context/version.js.map +1 -0
- package/dist/local-node/contract.d.ts +233 -0
- package/dist/local-node/contract.d.ts.map +1 -0
- package/dist/local-node/contract.js +43 -0
- package/dist/local-node/contract.js.map +1 -0
- package/dist/local-node/effect-schema.d.ts +58786 -0
- package/dist/local-node/effect-schema.d.ts.map +1 -0
- package/dist/local-node/effect-schema.js +279 -0
- package/dist/local-node/effect-schema.js.map +1 -0
- package/dist/local-node/methods.d.ts +4 -0
- package/dist/local-node/methods.d.ts.map +1 -0
- package/dist/local-node/methods.js +73 -0
- package/dist/local-node/methods.js.map +1 -0
- package/dist/local-node/policy.d.ts +11 -0
- package/dist/local-node/policy.d.ts.map +1 -0
- package/dist/local-node/policy.js +11 -0
- package/dist/local-node/policy.js.map +1 -0
- package/dist/local-node.d.ts +2 -0
- package/dist/local-node.d.ts.map +1 -0
- package/dist/local-node.js +2 -0
- package/dist/local-node.js.map +1 -0
- package/dist/orchestration/canonical.d.ts +12 -0
- package/dist/orchestration/canonical.d.ts.map +1 -0
- package/dist/orchestration/canonical.js +50 -0
- package/dist/orchestration/canonical.js.map +1 -0
- package/dist/orchestration/contract.d.ts +2867 -0
- package/dist/orchestration/contract.d.ts.map +1 -0
- package/dist/orchestration/contract.js +45 -0
- package/dist/orchestration/contract.js.map +1 -0
- package/dist/orchestration/effect-schema.d.ts +4933 -0
- package/dist/orchestration/effect-schema.d.ts.map +1 -0
- package/dist/orchestration/effect-schema.js +610 -0
- package/dist/orchestration/effect-schema.js.map +1 -0
- package/dist/orchestration/policy.d.ts +28 -0
- package/dist/orchestration/policy.d.ts.map +1 -0
- package/dist/orchestration/policy.js +28 -0
- package/dist/orchestration/policy.js.map +1 -0
- package/dist/orchestration/topology.d.ts +13 -0
- package/dist/orchestration/topology.d.ts.map +1 -0
- package/dist/orchestration/topology.js +109 -0
- package/dist/orchestration/topology.js.map +1 -0
- package/dist/orchestration/version.d.ts +3 -0
- package/dist/orchestration/version.d.ts.map +1 -0
- package/dist/orchestration/version.js +3 -0
- package/dist/orchestration/version.js.map +1 -0
- package/dist/project-workspace/contract.d.ts +346 -0
- package/dist/project-workspace/contract.d.ts.map +1 -0
- package/dist/project-workspace/contract.js +20 -0
- package/dist/project-workspace/contract.js.map +1 -0
- package/dist/project-workspace/effect-schema.d.ts +602 -0
- package/dist/project-workspace/effect-schema.d.ts.map +1 -0
- package/dist/project-workspace/effect-schema.js +185 -0
- package/dist/project-workspace/effect-schema.js.map +1 -0
- package/dist/project-workspace/version.d.ts +5 -0
- package/dist/project-workspace/version.d.ts.map +1 -0
- package/dist/project-workspace/version.js +5 -0
- package/dist/project-workspace/version.js.map +1 -0
- package/dist/runtime/contract.d.ts +172 -0
- package/dist/runtime/contract.d.ts.map +1 -0
- package/dist/runtime/contract.js +6 -0
- package/dist/runtime/contract.js.map +1 -0
- package/dist/runtime/effect-schema.d.ts +211 -0
- package/dist/runtime/effect-schema.d.ts.map +1 -0
- package/dist/runtime/effect-schema.js +137 -0
- package/dist/runtime/effect-schema.js.map +1 -0
- package/dist/runtime/version.d.ts +2 -0
- package/dist/runtime/version.d.ts.map +1 -0
- package/dist/runtime/version.js +2 -0
- package/dist/runtime/version.js.map +1 -0
- package/dist/runtime-schema-effect.d.ts +4 -0
- package/dist/runtime-schema-effect.d.ts.map +1 -0
- package/dist/runtime-schema-effect.js +25 -0
- package/dist/runtime-schema-effect.js.map +1 -0
- package/dist/runtime-schema.d.ts +23 -0
- package/dist/runtime-schema.d.ts.map +1 -0
- package/dist/runtime-schema.js +12 -0
- package/dist/runtime-schema.js.map +1 -0
- package/dist/session/contract.d.ts +666 -0
- package/dist/session/contract.d.ts.map +1 -0
- package/dist/session/contract.js +16 -0
- package/dist/session/contract.js.map +1 -0
- package/dist/session/effect-schema.d.ts +1176 -0
- package/dist/session/effect-schema.d.ts.map +1 -0
- package/dist/session/effect-schema.js +195 -0
- package/dist/session/effect-schema.js.map +1 -0
- package/dist/session/version.d.ts +4 -0
- package/dist/session/version.d.ts.map +1 -0
- package/dist/session/version.js +4 -0
- package/dist/session/version.js.map +1 -0
- package/dist/temporal/recorded-at.d.ts +3 -0
- package/dist/temporal/recorded-at.d.ts.map +1 -0
- package/dist/temporal/recorded-at.js +13 -0
- package/dist/temporal/recorded-at.js.map +1 -0
- package/dist/terminal/contract.d.ts +3502 -0
- package/dist/terminal/contract.d.ts.map +1 -0
- package/dist/terminal/contract.js +31 -0
- package/dist/terminal/contract.js.map +1 -0
- package/dist/terminal/effect-schema.d.ts +15745 -0
- package/dist/terminal/effect-schema.d.ts.map +1 -0
- package/dist/terminal/effect-schema.js +193 -0
- package/dist/terminal/effect-schema.js.map +1 -0
- package/dist/terminal/live-contract.d.ts +87 -0
- package/dist/terminal/live-contract.d.ts.map +1 -0
- package/dist/terminal/live-contract.js +52 -0
- package/dist/terminal/live-contract.js.map +1 -0
- package/dist/terminal/live-effect-schema.d.ts +24770 -0
- package/dist/terminal/live-effect-schema.d.ts.map +1 -0
- package/dist/terminal/live-effect-schema.js +987 -0
- package/dist/terminal/live-effect-schema.js.map +1 -0
- package/dist/terminal/live-policy.d.ts +79 -0
- package/dist/terminal/live-policy.d.ts.map +1 -0
- package/dist/terminal/live-policy.js +91 -0
- package/dist/terminal/live-policy.js.map +1 -0
- package/dist/terminal/live-types.d.ts +584 -0
- package/dist/terminal/live-types.d.ts.map +1 -0
- package/dist/terminal/live-types.js +2 -0
- package/dist/terminal/live-types.js.map +1 -0
- package/dist/terminal/live-version.d.ts +4 -0
- package/dist/terminal/live-version.d.ts.map +1 -0
- package/dist/terminal/live-version.js +4 -0
- package/dist/terminal/live-version.js.map +1 -0
- package/dist/terminal/policy.d.ts +5 -0
- package/dist/terminal/policy.d.ts.map +1 -0
- package/dist/terminal/policy.js +5 -0
- package/dist/terminal/policy.js.map +1 -0
- package/dist/terminal/version.d.ts +4 -0
- package/dist/terminal/version.d.ts.map +1 -0
- package/dist/terminal/version.js +4 -0
- package/dist/terminal/version.js.map +1 -0
- package/dist/turn/contract.d.ts +493 -0
- package/dist/turn/contract.d.ts.map +1 -0
- package/dist/turn/contract.js +14 -0
- package/dist/turn/contract.js.map +1 -0
- package/dist/turn/effect-schema.d.ts +1063 -0
- package/dist/turn/effect-schema.d.ts.map +1 -0
- package/dist/turn/effect-schema.js +215 -0
- package/dist/turn/effect-schema.js.map +1 -0
- package/dist/turn/policy.d.ts +3 -0
- package/dist/turn/policy.d.ts.map +1 -0
- package/dist/turn/policy.js +3 -0
- package/dist/turn/policy.js.map +1 -0
- package/dist/turn/version.d.ts +2 -0
- package/dist/turn/version.d.ts.map +1 -0
- package/dist/turn/version.js +2 -0
- package/dist/turn/version.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
import type { InferRuntimeSchema } from "../runtime-schema.js";
|
|
2
|
+
export declare const sessionSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
3
|
+
readonly runtime: "codex";
|
|
4
|
+
readonly schemaVersion: 2;
|
|
5
|
+
readonly createdAt: string;
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly projectId: string;
|
|
8
|
+
readonly revision: string;
|
|
9
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
10
|
+
readonly updatedAt: string;
|
|
11
|
+
readonly workspaceId: string;
|
|
12
|
+
readonly workspaceRevision: string;
|
|
13
|
+
} | {
|
|
14
|
+
readonly schemaVersion: 3;
|
|
15
|
+
readonly profile: "codex";
|
|
16
|
+
readonly runtime: "codex";
|
|
17
|
+
readonly createdAt: string;
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly projectId: string;
|
|
20
|
+
readonly revision: string;
|
|
21
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
22
|
+
readonly updatedAt: string;
|
|
23
|
+
readonly workspaceId: string;
|
|
24
|
+
readonly workspaceRevision: string;
|
|
25
|
+
} | {
|
|
26
|
+
readonly schemaVersion: 3;
|
|
27
|
+
readonly profile: "pi-rpc";
|
|
28
|
+
readonly runtime: "pi";
|
|
29
|
+
readonly createdAt: string;
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly projectId: string;
|
|
32
|
+
readonly revision: string;
|
|
33
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
34
|
+
readonly updatedAt: string;
|
|
35
|
+
readonly workspaceId: string;
|
|
36
|
+
readonly workspaceRevision: string;
|
|
37
|
+
}>;
|
|
38
|
+
export type Session = InferRuntimeSchema<typeof sessionSchema>;
|
|
39
|
+
export declare const sessionEventSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
40
|
+
readonly commandId: string;
|
|
41
|
+
readonly eventType: "session.created";
|
|
42
|
+
readonly globalCursor: string;
|
|
43
|
+
readonly payload: {
|
|
44
|
+
readonly profile: "codex";
|
|
45
|
+
readonly runtime: "codex";
|
|
46
|
+
} | {
|
|
47
|
+
readonly profile: "pi-rpc";
|
|
48
|
+
readonly runtime: "pi";
|
|
49
|
+
};
|
|
50
|
+
readonly recordedAt: string;
|
|
51
|
+
readonly schemaVersion: 3;
|
|
52
|
+
readonly sessionCursor: string;
|
|
53
|
+
readonly sessionId: string;
|
|
54
|
+
} | {
|
|
55
|
+
readonly commandId: string;
|
|
56
|
+
readonly eventType: "session.start.requested";
|
|
57
|
+
readonly globalCursor: string;
|
|
58
|
+
readonly payload: {
|
|
59
|
+
readonly profile: "codex";
|
|
60
|
+
readonly runtime: "codex";
|
|
61
|
+
} | {
|
|
62
|
+
readonly profile: "pi-rpc";
|
|
63
|
+
readonly runtime: "pi";
|
|
64
|
+
};
|
|
65
|
+
readonly recordedAt: string;
|
|
66
|
+
readonly schemaVersion: 3;
|
|
67
|
+
readonly sessionCursor: string;
|
|
68
|
+
readonly sessionId: string;
|
|
69
|
+
} | {
|
|
70
|
+
readonly commandId: string;
|
|
71
|
+
readonly eventType: "session.runtime.started";
|
|
72
|
+
readonly globalCursor: string;
|
|
73
|
+
readonly payload: {
|
|
74
|
+
readonly profile: "codex";
|
|
75
|
+
readonly runtime: "codex";
|
|
76
|
+
} | {
|
|
77
|
+
readonly profile: "pi-rpc";
|
|
78
|
+
readonly runtime: "pi";
|
|
79
|
+
};
|
|
80
|
+
readonly recordedAt: string;
|
|
81
|
+
readonly schemaVersion: 3;
|
|
82
|
+
readonly sessionCursor: string;
|
|
83
|
+
readonly sessionId: string;
|
|
84
|
+
} | {
|
|
85
|
+
readonly commandId: string;
|
|
86
|
+
readonly eventType: "session.runtime.recovery.requested";
|
|
87
|
+
readonly globalCursor: string;
|
|
88
|
+
readonly payload: {
|
|
89
|
+
readonly profile: "codex";
|
|
90
|
+
readonly runtime: "codex";
|
|
91
|
+
} | {
|
|
92
|
+
readonly profile: "pi-rpc";
|
|
93
|
+
readonly runtime: "pi";
|
|
94
|
+
};
|
|
95
|
+
readonly recordedAt: string;
|
|
96
|
+
readonly schemaVersion: 3;
|
|
97
|
+
readonly sessionCursor: string;
|
|
98
|
+
readonly sessionId: string;
|
|
99
|
+
} | {
|
|
100
|
+
readonly commandId: string;
|
|
101
|
+
readonly eventType: "session.runtime.resumed";
|
|
102
|
+
readonly globalCursor: string;
|
|
103
|
+
readonly payload: {
|
|
104
|
+
readonly profile: "codex";
|
|
105
|
+
readonly runtime: "codex";
|
|
106
|
+
} | {
|
|
107
|
+
readonly profile: "pi-rpc";
|
|
108
|
+
readonly runtime: "pi";
|
|
109
|
+
};
|
|
110
|
+
readonly recordedAt: string;
|
|
111
|
+
readonly schemaVersion: 3;
|
|
112
|
+
readonly sessionCursor: string;
|
|
113
|
+
readonly sessionId: string;
|
|
114
|
+
} | {
|
|
115
|
+
readonly commandId: string;
|
|
116
|
+
readonly eventType: "session.runtime.failed";
|
|
117
|
+
readonly globalCursor: string;
|
|
118
|
+
readonly payload: {
|
|
119
|
+
readonly profile: "codex";
|
|
120
|
+
readonly runtime: "codex";
|
|
121
|
+
} | {
|
|
122
|
+
readonly profile: "pi-rpc";
|
|
123
|
+
readonly runtime: "pi";
|
|
124
|
+
};
|
|
125
|
+
readonly recordedAt: string;
|
|
126
|
+
readonly schemaVersion: 3;
|
|
127
|
+
readonly sessionCursor: string;
|
|
128
|
+
readonly sessionId: string;
|
|
129
|
+
} | {
|
|
130
|
+
readonly eventType: "turn.queued";
|
|
131
|
+
readonly payload: {
|
|
132
|
+
readonly profile: "codex";
|
|
133
|
+
readonly runtime: "codex";
|
|
134
|
+
readonly turnId: string;
|
|
135
|
+
} | {
|
|
136
|
+
readonly profile: "pi-rpc";
|
|
137
|
+
readonly runtime: "pi";
|
|
138
|
+
readonly turnId: string;
|
|
139
|
+
};
|
|
140
|
+
readonly commandId: string;
|
|
141
|
+
readonly globalCursor: string;
|
|
142
|
+
readonly recordedAt: string;
|
|
143
|
+
readonly schemaVersion: 3;
|
|
144
|
+
readonly sessionCursor: string;
|
|
145
|
+
readonly sessionId: string;
|
|
146
|
+
} | {
|
|
147
|
+
readonly eventType: "turn.dispatching";
|
|
148
|
+
readonly payload: {
|
|
149
|
+
readonly profile: "codex";
|
|
150
|
+
readonly runtime: "codex";
|
|
151
|
+
readonly turnId: string;
|
|
152
|
+
} | {
|
|
153
|
+
readonly profile: "pi-rpc";
|
|
154
|
+
readonly runtime: "pi";
|
|
155
|
+
readonly turnId: string;
|
|
156
|
+
};
|
|
157
|
+
readonly commandId: string;
|
|
158
|
+
readonly globalCursor: string;
|
|
159
|
+
readonly recordedAt: string;
|
|
160
|
+
readonly schemaVersion: 3;
|
|
161
|
+
readonly sessionCursor: string;
|
|
162
|
+
readonly sessionId: string;
|
|
163
|
+
} | {
|
|
164
|
+
readonly eventType: "turn.started";
|
|
165
|
+
readonly payload: {
|
|
166
|
+
readonly profile: "codex";
|
|
167
|
+
readonly runtime: "codex";
|
|
168
|
+
readonly turnId: string;
|
|
169
|
+
} | {
|
|
170
|
+
readonly profile: "pi-rpc";
|
|
171
|
+
readonly runtime: "pi";
|
|
172
|
+
readonly turnId: string;
|
|
173
|
+
};
|
|
174
|
+
readonly commandId: string;
|
|
175
|
+
readonly globalCursor: string;
|
|
176
|
+
readonly recordedAt: string;
|
|
177
|
+
readonly schemaVersion: 3;
|
|
178
|
+
readonly sessionCursor: string;
|
|
179
|
+
readonly sessionId: string;
|
|
180
|
+
} | {
|
|
181
|
+
readonly eventType: "turn.completed";
|
|
182
|
+
readonly payload: {
|
|
183
|
+
readonly profile: "codex";
|
|
184
|
+
readonly runtime: "codex";
|
|
185
|
+
readonly turnId: string;
|
|
186
|
+
} | {
|
|
187
|
+
readonly profile: "pi-rpc";
|
|
188
|
+
readonly runtime: "pi";
|
|
189
|
+
readonly turnId: string;
|
|
190
|
+
};
|
|
191
|
+
readonly commandId: string;
|
|
192
|
+
readonly globalCursor: string;
|
|
193
|
+
readonly recordedAt: string;
|
|
194
|
+
readonly schemaVersion: 3;
|
|
195
|
+
readonly sessionCursor: string;
|
|
196
|
+
readonly sessionId: string;
|
|
197
|
+
} | {
|
|
198
|
+
readonly eventType: "turn.interrupted";
|
|
199
|
+
readonly payload: {
|
|
200
|
+
readonly profile: "codex";
|
|
201
|
+
readonly runtime: "codex";
|
|
202
|
+
readonly turnId: string;
|
|
203
|
+
} | {
|
|
204
|
+
readonly profile: "pi-rpc";
|
|
205
|
+
readonly runtime: "pi";
|
|
206
|
+
readonly turnId: string;
|
|
207
|
+
};
|
|
208
|
+
readonly commandId: string;
|
|
209
|
+
readonly globalCursor: string;
|
|
210
|
+
readonly recordedAt: string;
|
|
211
|
+
readonly schemaVersion: 3;
|
|
212
|
+
readonly sessionCursor: string;
|
|
213
|
+
readonly sessionId: string;
|
|
214
|
+
} | {
|
|
215
|
+
readonly eventType: "turn.failed";
|
|
216
|
+
readonly payload: {
|
|
217
|
+
readonly profile: "codex";
|
|
218
|
+
readonly runtime: "codex";
|
|
219
|
+
readonly turnId: string;
|
|
220
|
+
} | {
|
|
221
|
+
readonly profile: "pi-rpc";
|
|
222
|
+
readonly runtime: "pi";
|
|
223
|
+
readonly turnId: string;
|
|
224
|
+
};
|
|
225
|
+
readonly commandId: string;
|
|
226
|
+
readonly globalCursor: string;
|
|
227
|
+
readonly recordedAt: string;
|
|
228
|
+
readonly schemaVersion: 3;
|
|
229
|
+
readonly sessionCursor: string;
|
|
230
|
+
readonly sessionId: string;
|
|
231
|
+
}>;
|
|
232
|
+
export type SessionEvent = InferRuntimeSchema<typeof sessionEventSchema>;
|
|
233
|
+
export declare const sessionCreateParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
234
|
+
readonly runtime: "codex";
|
|
235
|
+
readonly commandId: string;
|
|
236
|
+
readonly workspaceId: string;
|
|
237
|
+
readonly expectedRevision: "0";
|
|
238
|
+
readonly profile?: "codex" | undefined;
|
|
239
|
+
} | {
|
|
240
|
+
readonly profile: "pi-rpc";
|
|
241
|
+
readonly runtime: "pi";
|
|
242
|
+
readonly commandId: string;
|
|
243
|
+
readonly expectedRevision: "0";
|
|
244
|
+
readonly workspaceId: string;
|
|
245
|
+
}>;
|
|
246
|
+
export type SessionCreateParameters = InferRuntimeSchema<typeof sessionCreateParametersSchema>;
|
|
247
|
+
export declare const sessionListParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
248
|
+
readonly afterCursor: string;
|
|
249
|
+
readonly limit: number;
|
|
250
|
+
readonly projectId: string;
|
|
251
|
+
}>;
|
|
252
|
+
export type SessionListParameters = InferRuntimeSchema<typeof sessionListParametersSchema>;
|
|
253
|
+
export declare const sessionShowParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
254
|
+
readonly sessionId: string;
|
|
255
|
+
}>;
|
|
256
|
+
export type SessionShowParameters = InferRuntimeSchema<typeof sessionShowParametersSchema>;
|
|
257
|
+
export declare const sessionEventsListParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
258
|
+
readonly afterSessionCursor: string;
|
|
259
|
+
readonly limit: number;
|
|
260
|
+
readonly sessionId: string;
|
|
261
|
+
}>;
|
|
262
|
+
export type SessionEventsListParameters = InferRuntimeSchema<typeof sessionEventsListParametersSchema>;
|
|
263
|
+
export declare const sessionCreateResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
264
|
+
readonly delivery: "new" | "duplicate";
|
|
265
|
+
readonly method: "session.create";
|
|
266
|
+
readonly receipt: {
|
|
267
|
+
readonly actorId: string;
|
|
268
|
+
readonly aggregateRevision: string;
|
|
269
|
+
readonly commandId: string;
|
|
270
|
+
readonly createdAt: string;
|
|
271
|
+
readonly eventCursor: string;
|
|
272
|
+
readonly method: string;
|
|
273
|
+
readonly receiptId: string;
|
|
274
|
+
readonly schemaVersion: 1;
|
|
275
|
+
readonly state: "succeeded";
|
|
276
|
+
readonly target: {
|
|
277
|
+
readonly id: string;
|
|
278
|
+
readonly type: string;
|
|
279
|
+
};
|
|
280
|
+
readonly updatedAt: string;
|
|
281
|
+
};
|
|
282
|
+
readonly session: {
|
|
283
|
+
readonly runtime: "codex";
|
|
284
|
+
readonly schemaVersion: 2;
|
|
285
|
+
readonly createdAt: string;
|
|
286
|
+
readonly id: string;
|
|
287
|
+
readonly projectId: string;
|
|
288
|
+
readonly revision: string;
|
|
289
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
290
|
+
readonly updatedAt: string;
|
|
291
|
+
readonly workspaceId: string;
|
|
292
|
+
readonly workspaceRevision: string;
|
|
293
|
+
} | {
|
|
294
|
+
readonly schemaVersion: 3;
|
|
295
|
+
readonly profile: "codex";
|
|
296
|
+
readonly runtime: "codex";
|
|
297
|
+
readonly createdAt: string;
|
|
298
|
+
readonly id: string;
|
|
299
|
+
readonly projectId: string;
|
|
300
|
+
readonly revision: string;
|
|
301
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
302
|
+
readonly updatedAt: string;
|
|
303
|
+
readonly workspaceId: string;
|
|
304
|
+
readonly workspaceRevision: string;
|
|
305
|
+
} | {
|
|
306
|
+
readonly schemaVersion: 3;
|
|
307
|
+
readonly profile: "pi-rpc";
|
|
308
|
+
readonly runtime: "pi";
|
|
309
|
+
readonly createdAt: string;
|
|
310
|
+
readonly id: string;
|
|
311
|
+
readonly projectId: string;
|
|
312
|
+
readonly revision: string;
|
|
313
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
314
|
+
readonly updatedAt: string;
|
|
315
|
+
readonly workspaceId: string;
|
|
316
|
+
readonly workspaceRevision: string;
|
|
317
|
+
};
|
|
318
|
+
}>;
|
|
319
|
+
export type SessionCreateResult = InferRuntimeSchema<typeof sessionCreateResultSchema>;
|
|
320
|
+
export declare const sessionListResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
321
|
+
readonly method: "session.list";
|
|
322
|
+
readonly items: readonly ({
|
|
323
|
+
readonly runtime: "codex";
|
|
324
|
+
readonly schemaVersion: 2;
|
|
325
|
+
readonly createdAt: string;
|
|
326
|
+
readonly id: string;
|
|
327
|
+
readonly projectId: string;
|
|
328
|
+
readonly revision: string;
|
|
329
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
330
|
+
readonly updatedAt: string;
|
|
331
|
+
readonly workspaceId: string;
|
|
332
|
+
readonly workspaceRevision: string;
|
|
333
|
+
} | {
|
|
334
|
+
readonly schemaVersion: 3;
|
|
335
|
+
readonly profile: "codex";
|
|
336
|
+
readonly runtime: "codex";
|
|
337
|
+
readonly createdAt: string;
|
|
338
|
+
readonly id: string;
|
|
339
|
+
readonly projectId: string;
|
|
340
|
+
readonly revision: string;
|
|
341
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
342
|
+
readonly updatedAt: string;
|
|
343
|
+
readonly workspaceId: string;
|
|
344
|
+
readonly workspaceRevision: string;
|
|
345
|
+
} | {
|
|
346
|
+
readonly schemaVersion: 3;
|
|
347
|
+
readonly profile: "pi-rpc";
|
|
348
|
+
readonly runtime: "pi";
|
|
349
|
+
readonly createdAt: string;
|
|
350
|
+
readonly id: string;
|
|
351
|
+
readonly projectId: string;
|
|
352
|
+
readonly revision: string;
|
|
353
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
354
|
+
readonly updatedAt: string;
|
|
355
|
+
readonly workspaceId: string;
|
|
356
|
+
readonly workspaceRevision: string;
|
|
357
|
+
})[];
|
|
358
|
+
readonly nextCursor?: string | undefined;
|
|
359
|
+
}>;
|
|
360
|
+
export type SessionListResult = InferRuntimeSchema<typeof sessionListResultSchema>;
|
|
361
|
+
export declare const sessionShowResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
362
|
+
readonly method: "session.show";
|
|
363
|
+
readonly session: {
|
|
364
|
+
readonly runtime: "codex";
|
|
365
|
+
readonly schemaVersion: 2;
|
|
366
|
+
readonly createdAt: string;
|
|
367
|
+
readonly id: string;
|
|
368
|
+
readonly projectId: string;
|
|
369
|
+
readonly revision: string;
|
|
370
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
371
|
+
readonly updatedAt: string;
|
|
372
|
+
readonly workspaceId: string;
|
|
373
|
+
readonly workspaceRevision: string;
|
|
374
|
+
} | {
|
|
375
|
+
readonly schemaVersion: 3;
|
|
376
|
+
readonly profile: "codex";
|
|
377
|
+
readonly runtime: "codex";
|
|
378
|
+
readonly createdAt: string;
|
|
379
|
+
readonly id: string;
|
|
380
|
+
readonly projectId: string;
|
|
381
|
+
readonly revision: string;
|
|
382
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
383
|
+
readonly updatedAt: string;
|
|
384
|
+
readonly workspaceId: string;
|
|
385
|
+
readonly workspaceRevision: string;
|
|
386
|
+
} | {
|
|
387
|
+
readonly schemaVersion: 3;
|
|
388
|
+
readonly profile: "pi-rpc";
|
|
389
|
+
readonly runtime: "pi";
|
|
390
|
+
readonly createdAt: string;
|
|
391
|
+
readonly id: string;
|
|
392
|
+
readonly projectId: string;
|
|
393
|
+
readonly revision: string;
|
|
394
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
395
|
+
readonly updatedAt: string;
|
|
396
|
+
readonly workspaceId: string;
|
|
397
|
+
readonly workspaceRevision: string;
|
|
398
|
+
};
|
|
399
|
+
}>;
|
|
400
|
+
export type SessionShowResult = InferRuntimeSchema<typeof sessionShowResultSchema>;
|
|
401
|
+
export declare const sessionEventsListResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
402
|
+
readonly method: "session.events.list";
|
|
403
|
+
readonly items: readonly ({
|
|
404
|
+
readonly commandId: string;
|
|
405
|
+
readonly eventType: "session.created";
|
|
406
|
+
readonly globalCursor: string;
|
|
407
|
+
readonly payload: {
|
|
408
|
+
readonly profile: "codex";
|
|
409
|
+
readonly runtime: "codex";
|
|
410
|
+
} | {
|
|
411
|
+
readonly profile: "pi-rpc";
|
|
412
|
+
readonly runtime: "pi";
|
|
413
|
+
};
|
|
414
|
+
readonly recordedAt: string;
|
|
415
|
+
readonly schemaVersion: 3;
|
|
416
|
+
readonly sessionCursor: string;
|
|
417
|
+
readonly sessionId: string;
|
|
418
|
+
} | {
|
|
419
|
+
readonly commandId: string;
|
|
420
|
+
readonly eventType: "session.start.requested";
|
|
421
|
+
readonly globalCursor: string;
|
|
422
|
+
readonly payload: {
|
|
423
|
+
readonly profile: "codex";
|
|
424
|
+
readonly runtime: "codex";
|
|
425
|
+
} | {
|
|
426
|
+
readonly profile: "pi-rpc";
|
|
427
|
+
readonly runtime: "pi";
|
|
428
|
+
};
|
|
429
|
+
readonly recordedAt: string;
|
|
430
|
+
readonly schemaVersion: 3;
|
|
431
|
+
readonly sessionCursor: string;
|
|
432
|
+
readonly sessionId: string;
|
|
433
|
+
} | {
|
|
434
|
+
readonly commandId: string;
|
|
435
|
+
readonly eventType: "session.runtime.started";
|
|
436
|
+
readonly globalCursor: string;
|
|
437
|
+
readonly payload: {
|
|
438
|
+
readonly profile: "codex";
|
|
439
|
+
readonly runtime: "codex";
|
|
440
|
+
} | {
|
|
441
|
+
readonly profile: "pi-rpc";
|
|
442
|
+
readonly runtime: "pi";
|
|
443
|
+
};
|
|
444
|
+
readonly recordedAt: string;
|
|
445
|
+
readonly schemaVersion: 3;
|
|
446
|
+
readonly sessionCursor: string;
|
|
447
|
+
readonly sessionId: string;
|
|
448
|
+
} | {
|
|
449
|
+
readonly commandId: string;
|
|
450
|
+
readonly eventType: "session.runtime.recovery.requested";
|
|
451
|
+
readonly globalCursor: string;
|
|
452
|
+
readonly payload: {
|
|
453
|
+
readonly profile: "codex";
|
|
454
|
+
readonly runtime: "codex";
|
|
455
|
+
} | {
|
|
456
|
+
readonly profile: "pi-rpc";
|
|
457
|
+
readonly runtime: "pi";
|
|
458
|
+
};
|
|
459
|
+
readonly recordedAt: string;
|
|
460
|
+
readonly schemaVersion: 3;
|
|
461
|
+
readonly sessionCursor: string;
|
|
462
|
+
readonly sessionId: string;
|
|
463
|
+
} | {
|
|
464
|
+
readonly commandId: string;
|
|
465
|
+
readonly eventType: "session.runtime.resumed";
|
|
466
|
+
readonly globalCursor: string;
|
|
467
|
+
readonly payload: {
|
|
468
|
+
readonly profile: "codex";
|
|
469
|
+
readonly runtime: "codex";
|
|
470
|
+
} | {
|
|
471
|
+
readonly profile: "pi-rpc";
|
|
472
|
+
readonly runtime: "pi";
|
|
473
|
+
};
|
|
474
|
+
readonly recordedAt: string;
|
|
475
|
+
readonly schemaVersion: 3;
|
|
476
|
+
readonly sessionCursor: string;
|
|
477
|
+
readonly sessionId: string;
|
|
478
|
+
} | {
|
|
479
|
+
readonly commandId: string;
|
|
480
|
+
readonly eventType: "session.runtime.failed";
|
|
481
|
+
readonly globalCursor: string;
|
|
482
|
+
readonly payload: {
|
|
483
|
+
readonly profile: "codex";
|
|
484
|
+
readonly runtime: "codex";
|
|
485
|
+
} | {
|
|
486
|
+
readonly profile: "pi-rpc";
|
|
487
|
+
readonly runtime: "pi";
|
|
488
|
+
};
|
|
489
|
+
readonly recordedAt: string;
|
|
490
|
+
readonly schemaVersion: 3;
|
|
491
|
+
readonly sessionCursor: string;
|
|
492
|
+
readonly sessionId: string;
|
|
493
|
+
} | {
|
|
494
|
+
readonly eventType: "turn.queued";
|
|
495
|
+
readonly payload: {
|
|
496
|
+
readonly profile: "codex";
|
|
497
|
+
readonly runtime: "codex";
|
|
498
|
+
readonly turnId: string;
|
|
499
|
+
} | {
|
|
500
|
+
readonly profile: "pi-rpc";
|
|
501
|
+
readonly runtime: "pi";
|
|
502
|
+
readonly turnId: string;
|
|
503
|
+
};
|
|
504
|
+
readonly commandId: string;
|
|
505
|
+
readonly globalCursor: string;
|
|
506
|
+
readonly recordedAt: string;
|
|
507
|
+
readonly schemaVersion: 3;
|
|
508
|
+
readonly sessionCursor: string;
|
|
509
|
+
readonly sessionId: string;
|
|
510
|
+
} | {
|
|
511
|
+
readonly eventType: "turn.dispatching";
|
|
512
|
+
readonly payload: {
|
|
513
|
+
readonly profile: "codex";
|
|
514
|
+
readonly runtime: "codex";
|
|
515
|
+
readonly turnId: string;
|
|
516
|
+
} | {
|
|
517
|
+
readonly profile: "pi-rpc";
|
|
518
|
+
readonly runtime: "pi";
|
|
519
|
+
readonly turnId: string;
|
|
520
|
+
};
|
|
521
|
+
readonly commandId: string;
|
|
522
|
+
readonly globalCursor: string;
|
|
523
|
+
readonly recordedAt: string;
|
|
524
|
+
readonly schemaVersion: 3;
|
|
525
|
+
readonly sessionCursor: string;
|
|
526
|
+
readonly sessionId: string;
|
|
527
|
+
} | {
|
|
528
|
+
readonly eventType: "turn.started";
|
|
529
|
+
readonly payload: {
|
|
530
|
+
readonly profile: "codex";
|
|
531
|
+
readonly runtime: "codex";
|
|
532
|
+
readonly turnId: string;
|
|
533
|
+
} | {
|
|
534
|
+
readonly profile: "pi-rpc";
|
|
535
|
+
readonly runtime: "pi";
|
|
536
|
+
readonly turnId: string;
|
|
537
|
+
};
|
|
538
|
+
readonly commandId: string;
|
|
539
|
+
readonly globalCursor: string;
|
|
540
|
+
readonly recordedAt: string;
|
|
541
|
+
readonly schemaVersion: 3;
|
|
542
|
+
readonly sessionCursor: string;
|
|
543
|
+
readonly sessionId: string;
|
|
544
|
+
} | {
|
|
545
|
+
readonly eventType: "turn.completed";
|
|
546
|
+
readonly payload: {
|
|
547
|
+
readonly profile: "codex";
|
|
548
|
+
readonly runtime: "codex";
|
|
549
|
+
readonly turnId: string;
|
|
550
|
+
} | {
|
|
551
|
+
readonly profile: "pi-rpc";
|
|
552
|
+
readonly runtime: "pi";
|
|
553
|
+
readonly turnId: string;
|
|
554
|
+
};
|
|
555
|
+
readonly commandId: string;
|
|
556
|
+
readonly globalCursor: string;
|
|
557
|
+
readonly recordedAt: string;
|
|
558
|
+
readonly schemaVersion: 3;
|
|
559
|
+
readonly sessionCursor: string;
|
|
560
|
+
readonly sessionId: string;
|
|
561
|
+
} | {
|
|
562
|
+
readonly eventType: "turn.interrupted";
|
|
563
|
+
readonly payload: {
|
|
564
|
+
readonly profile: "codex";
|
|
565
|
+
readonly runtime: "codex";
|
|
566
|
+
readonly turnId: string;
|
|
567
|
+
} | {
|
|
568
|
+
readonly profile: "pi-rpc";
|
|
569
|
+
readonly runtime: "pi";
|
|
570
|
+
readonly turnId: string;
|
|
571
|
+
};
|
|
572
|
+
readonly commandId: string;
|
|
573
|
+
readonly globalCursor: string;
|
|
574
|
+
readonly recordedAt: string;
|
|
575
|
+
readonly schemaVersion: 3;
|
|
576
|
+
readonly sessionCursor: string;
|
|
577
|
+
readonly sessionId: string;
|
|
578
|
+
} | {
|
|
579
|
+
readonly eventType: "turn.failed";
|
|
580
|
+
readonly payload: {
|
|
581
|
+
readonly profile: "codex";
|
|
582
|
+
readonly runtime: "codex";
|
|
583
|
+
readonly turnId: string;
|
|
584
|
+
} | {
|
|
585
|
+
readonly profile: "pi-rpc";
|
|
586
|
+
readonly runtime: "pi";
|
|
587
|
+
readonly turnId: string;
|
|
588
|
+
};
|
|
589
|
+
readonly commandId: string;
|
|
590
|
+
readonly globalCursor: string;
|
|
591
|
+
readonly recordedAt: string;
|
|
592
|
+
readonly schemaVersion: 3;
|
|
593
|
+
readonly sessionCursor: string;
|
|
594
|
+
readonly sessionId: string;
|
|
595
|
+
})[];
|
|
596
|
+
readonly sessionId: string;
|
|
597
|
+
readonly headSessionCursor: string;
|
|
598
|
+
readonly nextSessionCursor?: string | undefined;
|
|
599
|
+
}>;
|
|
600
|
+
export type SessionEventsListResult = InferRuntimeSchema<typeof sessionEventsListResultSchema>;
|
|
601
|
+
export declare const sessionStartParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
602
|
+
readonly commandId: string;
|
|
603
|
+
readonly expectedRevision: string;
|
|
604
|
+
readonly sessionId: string;
|
|
605
|
+
}>;
|
|
606
|
+
export type SessionStartParameters = InferRuntimeSchema<typeof sessionStartParametersSchema>;
|
|
607
|
+
export declare const sessionStartResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
608
|
+
readonly delivery: "new" | "duplicate";
|
|
609
|
+
readonly method: "session.start";
|
|
610
|
+
readonly receipt: {
|
|
611
|
+
readonly actorId: string;
|
|
612
|
+
readonly aggregateRevision: string;
|
|
613
|
+
readonly commandId: string;
|
|
614
|
+
readonly createdAt: string;
|
|
615
|
+
readonly eventCursor: string;
|
|
616
|
+
readonly method: string;
|
|
617
|
+
readonly receiptId: string;
|
|
618
|
+
readonly schemaVersion: 1;
|
|
619
|
+
readonly state: "succeeded";
|
|
620
|
+
readonly target: {
|
|
621
|
+
readonly id: string;
|
|
622
|
+
readonly type: string;
|
|
623
|
+
};
|
|
624
|
+
readonly updatedAt: string;
|
|
625
|
+
};
|
|
626
|
+
readonly session: {
|
|
627
|
+
readonly runtime: "codex";
|
|
628
|
+
readonly schemaVersion: 2;
|
|
629
|
+
readonly createdAt: string;
|
|
630
|
+
readonly id: string;
|
|
631
|
+
readonly projectId: string;
|
|
632
|
+
readonly revision: string;
|
|
633
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
634
|
+
readonly updatedAt: string;
|
|
635
|
+
readonly workspaceId: string;
|
|
636
|
+
readonly workspaceRevision: string;
|
|
637
|
+
} | {
|
|
638
|
+
readonly schemaVersion: 3;
|
|
639
|
+
readonly profile: "codex";
|
|
640
|
+
readonly runtime: "codex";
|
|
641
|
+
readonly createdAt: string;
|
|
642
|
+
readonly id: string;
|
|
643
|
+
readonly projectId: string;
|
|
644
|
+
readonly revision: string;
|
|
645
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
646
|
+
readonly updatedAt: string;
|
|
647
|
+
readonly workspaceId: string;
|
|
648
|
+
readonly workspaceRevision: string;
|
|
649
|
+
} | {
|
|
650
|
+
readonly schemaVersion: 3;
|
|
651
|
+
readonly profile: "pi-rpc";
|
|
652
|
+
readonly runtime: "pi";
|
|
653
|
+
readonly createdAt: string;
|
|
654
|
+
readonly id: string;
|
|
655
|
+
readonly projectId: string;
|
|
656
|
+
readonly revision: string;
|
|
657
|
+
readonly state: "failed" | "running" | "interrupted" | "idle" | "starting" | "waiting-approval" | "recovering" | "stopping" | "stopped";
|
|
658
|
+
readonly updatedAt: string;
|
|
659
|
+
readonly workspaceId: string;
|
|
660
|
+
readonly workspaceRevision: string;
|
|
661
|
+
};
|
|
662
|
+
}>;
|
|
663
|
+
export type SessionStartResult = InferRuntimeSchema<typeof sessionStartResultSchema>;
|
|
664
|
+
export type SessionResult = SessionCreateResult | SessionEventsListResult | SessionListResult | SessionShowResult | SessionStartResult;
|
|
665
|
+
export { LEGACY_SESSION_SCHEMA_VERSION, SESSION_EVENT_SCHEMA_VERSION, SESSION_SCHEMA_VERSION, } from "./version.js";
|
|
666
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/session/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAkB/D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAC1E,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAEzC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CACtD,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;EAEvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;EAEvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;EAE7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAC1D,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAClD,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CACtD,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;EAExC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CACrD,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CACjD,OAAO,wBAAwB,CAChC,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,CAAC;AAEvB,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { makeEffectRuntimeSchema } from "../runtime-schema-effect.js";
|
|
2
|
+
import { sessionCreateParametersEffectSchema, sessionCreateResultEffectSchema, sessionEffectSchema, sessionEventEffectSchema, sessionEventsListParametersEffectSchema, sessionEventsListResultEffectSchema, sessionListParametersEffectSchema, sessionListResultEffectSchema, sessionShowParametersEffectSchema, sessionShowResultEffectSchema, sessionStartParametersEffectSchema, sessionStartResultEffectSchema, } from "./effect-schema.js";
|
|
3
|
+
export const sessionSchema = makeEffectRuntimeSchema(sessionEffectSchema);
|
|
4
|
+
export const sessionEventSchema = makeEffectRuntimeSchema(sessionEventEffectSchema);
|
|
5
|
+
export const sessionCreateParametersSchema = makeEffectRuntimeSchema(sessionCreateParametersEffectSchema);
|
|
6
|
+
export const sessionListParametersSchema = makeEffectRuntimeSchema(sessionListParametersEffectSchema);
|
|
7
|
+
export const sessionShowParametersSchema = makeEffectRuntimeSchema(sessionShowParametersEffectSchema);
|
|
8
|
+
export const sessionEventsListParametersSchema = makeEffectRuntimeSchema(sessionEventsListParametersEffectSchema);
|
|
9
|
+
export const sessionCreateResultSchema = makeEffectRuntimeSchema(sessionCreateResultEffectSchema);
|
|
10
|
+
export const sessionListResultSchema = makeEffectRuntimeSchema(sessionListResultEffectSchema);
|
|
11
|
+
export const sessionShowResultSchema = makeEffectRuntimeSchema(sessionShowResultEffectSchema);
|
|
12
|
+
export const sessionEventsListResultSchema = makeEffectRuntimeSchema(sessionEventsListResultEffectSchema);
|
|
13
|
+
export const sessionStartParametersSchema = makeEffectRuntimeSchema(sessionStartParametersEffectSchema);
|
|
14
|
+
export const sessionStartResultSchema = makeEffectRuntimeSchema(sessionStartResultEffectSchema);
|
|
15
|
+
export { LEGACY_SESSION_SCHEMA_VERSION, SESSION_EVENT_SCHEMA_VERSION, SESSION_SCHEMA_VERSION, } from "./version.js";
|
|
16
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/session/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EACL,mCAAmC,EACnC,+BAA+B,EAC/B,mBAAmB,EACnB,wBAAwB,EACxB,uCAAuC,EACvC,mCAAmC,EACnC,iCAAiC,EACjC,6BAA6B,EAC7B,iCAAiC,EACjC,6BAA6B,EAC7B,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,aAAa,GAAG,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;AAG1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAAuB,CACvD,wBAAwB,CACzB,CAAC;AAGF,MAAM,CAAC,MAAM,6BAA6B,GAAG,uBAAuB,CAClE,mCAAmC,CACpC,CAAC;AAKF,MAAM,CAAC,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,iCAAiC,CAClC,CAAC;AAKF,MAAM,CAAC,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,iCAAiC,CAClC,CAAC;AAKF,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB,CACtE,uCAAuC,CACxC,CAAC;AAKF,MAAM,CAAC,MAAM,yBAAyB,GAAG,uBAAuB,CAC9D,+BAA+B,CAChC,CAAC;AAKF,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAC5D,6BAA6B,CAC9B,CAAC;AAKF,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAC5D,6BAA6B,CAC9B,CAAC;AAKF,MAAM,CAAC,MAAM,6BAA6B,GAAG,uBAAuB,CAClE,mCAAmC,CACpC,CAAC;AAKF,MAAM,CAAC,MAAM,4BAA4B,GAAG,uBAAuB,CACjE,kCAAkC,CACnC,CAAC;AAKF,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAC7D,8BAA8B,CAC/B,CAAC;AAYF,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,cAAc,CAAC"}
|