@pstdio/sdk 0.20.0 → 0.22.0
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 +22 -192
- package/dist/api/index.js +932 -483
- package/dist/api.d.ts +3767 -0
- package/dist/client/index.js +21 -14
- package/dist/client.d.ts +1714 -0
- package/dist/extensions/index.js +262 -140
- package/dist/extensions/react/index.js +2 -1
- package/dist/{extensions/react/index.d.ts → extensions-react.d.ts} +23 -16
- package/dist/extensions.d.ts +3826 -0
- package/dist/hooks.d.ts +1775 -0
- package/dist/{prompts/render-prompt.d.ts → prompts.d.ts} +3 -1
- package/dist/resources/index.js +932 -483
- package/dist/resources.d.ts +422 -0
- package/package.json +12 -31
- package/dist/api/extensions.d.ts +0 -1
- package/dist/api/index.d.ts +0 -10
- package/dist/api/projects.d.ts +0 -1
- package/dist/api/sessions.d.ts +0 -2
- package/dist/api/settings.d.ts +0 -1
- package/dist/api/skills.d.ts +0 -1
- package/dist/api/templates.d.ts +0 -1
- package/dist/api/terminal.d.ts +0 -49
- package/dist/api/workspaces.d.ts +0 -12
- package/dist/client/agents.d.ts +0 -10
- package/dist/client/client.d.ts +0 -26
- package/dist/client/extensions.d.ts +0 -12
- package/dist/client/index.d.ts +0 -14
- package/dist/client/notifications.d.ts +0 -23
- package/dist/client/projects.d.ts +0 -14
- package/dist/client/request.d.ts +0 -25
- package/dist/client/runtime.d.ts +0 -5
- package/dist/client/sessions.d.ts +0 -45
- package/dist/client/settings.d.ts +0 -7
- package/dist/client/skills.d.ts +0 -9
- package/dist/client/sse.d.ts +0 -15
- package/dist/client/sync.d.ts +0 -35
- package/dist/client/templates.d.ts +0 -11
- package/dist/client/workspaces.d.ts +0 -20
- package/dist/extensions/command-outcome.d.ts +0 -5
- package/dist/extensions/define-command.d.ts +0 -26
- package/dist/extensions/define-extension-view.d.ts +0 -58
- package/dist/extensions/define-extension.d.ts +0 -54
- package/dist/extensions/index.d.ts +0 -13
- package/dist/extensions/params.d.ts +0 -36
- package/dist/extensions/refs.d.ts +0 -8
- package/dist/extensions/terminal-session-bridge.d.ts +0 -32
- package/dist/extensions/webview-client.d.ts +0 -41
- package/dist/extensions/when.d.ts +0 -9
- package/dist/hooks/base.d.ts +0 -17
- package/dist/hooks/entities.d.ts +0 -8
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/session.d.ts +0 -12
- package/dist/hooks/worktree.d.ts +0 -53
- package/dist/prompts/index.d.ts +0 -1
- package/dist/resources/agent.d.ts +0 -2
- package/dist/resources/file.d.ts +0 -1
- package/dist/resources/index.d.ts +0 -10
- package/dist/resources/project.d.ts +0 -1
- package/dist/resources/session.d.ts +0 -1
- package/dist/resources/settings.d.ts +0 -1
- package/dist/resources/skill.d.ts +0 -1
- package/dist/resources/template.d.ts +0 -1
- package/dist/resources/workspace.d.ts +0 -3
package/dist/hooks.d.ts
ADDED
|
@@ -0,0 +1,1775 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare type AgentClient = {
|
|
4
|
+
info(params?: {
|
|
5
|
+
project?: string;
|
|
6
|
+
}): Promise<AgentInfo[]>;
|
|
7
|
+
models(agentId: string): Promise<AgentModel[]>;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare type AgentInfo = z.infer<typeof agentInfoSchema>;
|
|
11
|
+
|
|
12
|
+
declare const agentInfoSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
availability: z.ZodObject<{
|
|
16
|
+
type: z.ZodEnum<{
|
|
17
|
+
INSTALLED: "INSTALLED";
|
|
18
|
+
NOT_FOUND: "NOT_FOUND";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
dir: z.ZodString;
|
|
23
|
+
global_dir: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
26
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
27
|
+
$l10n: z.ZodString;
|
|
28
|
+
default: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>]>>;
|
|
30
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31
|
+
$l10n: z.ZodString;
|
|
32
|
+
default: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>]>>;
|
|
34
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
36
|
+
type: z.ZodLiteral<"select">;
|
|
37
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
38
|
+
options: z.ZodArray<z.ZodObject<{
|
|
39
|
+
label: z.ZodString;
|
|
40
|
+
value: z.ZodString;
|
|
41
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
45
|
+
$l10n: z.ZodString;
|
|
46
|
+
default: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>]>>;
|
|
48
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
49
|
+
$l10n: z.ZodString;
|
|
50
|
+
default: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>]>>;
|
|
52
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
54
|
+
type: z.ZodLiteral<"boolean">;
|
|
55
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, z.core.$strip>]>>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
|
|
59
|
+
declare type AgentModel = z.infer<typeof agentModelSchema>;
|
|
60
|
+
|
|
61
|
+
declare const agentModelSchema: z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
label: z.ZodOptional<z.ZodString>;
|
|
64
|
+
description: z.ZodOptional<z.ZodString>;
|
|
65
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
paramOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
67
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
68
|
+
$l10n: z.ZodString;
|
|
69
|
+
default: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>]>>;
|
|
71
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
72
|
+
$l10n: z.ZodString;
|
|
73
|
+
default: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>]>>;
|
|
75
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
77
|
+
type: z.ZodLiteral<"select">;
|
|
78
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
79
|
+
options: z.ZodArray<z.ZodObject<{
|
|
80
|
+
label: z.ZodString;
|
|
81
|
+
value: z.ZodString;
|
|
82
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
86
|
+
$l10n: z.ZodString;
|
|
87
|
+
default: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>]>>;
|
|
89
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
90
|
+
$l10n: z.ZodString;
|
|
91
|
+
default: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>]>>;
|
|
93
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
|
+
type: z.ZodLiteral<"boolean">;
|
|
96
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
}, z.core.$strip>]>>>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
|
|
100
|
+
declare type ApprovalInput = z.infer<typeof approvalInputSchema>;
|
|
101
|
+
|
|
102
|
+
declare const approvalInputSchema: z.ZodObject<{
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
decision: z.ZodEnum<{
|
|
105
|
+
approve: "approve";
|
|
106
|
+
deny: "deny";
|
|
107
|
+
}>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
|
|
110
|
+
declare type AutomationClient = {
|
|
111
|
+
issueToken(input: IssueAutomationTokenInput): Promise<IssueAutomationTokenResponse>;
|
|
112
|
+
listTokens(projectId: string): Promise<ListAutomationTokensResponse>;
|
|
113
|
+
revokeToken(tokenId: string): Promise<void>;
|
|
114
|
+
createRun(projectId: string, idempotencyKey: string, input: CreateAutomationRunInput): Promise<AutomationRun>;
|
|
115
|
+
getRun(projectId: string, runId: string): Promise<AutomationRun>;
|
|
116
|
+
listRunEvents(projectId: string, runId: string, after?: number): Promise<ListAutomationRunEventsResponse>;
|
|
117
|
+
cancelRun(projectId: string, runId: string): Promise<AutomationRun>;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
declare type AutomationRun = z.infer<typeof automationRunSchema>;
|
|
121
|
+
|
|
122
|
+
declare const automationRunSchema: z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
projectId: z.ZodString;
|
|
125
|
+
commandId: z.ZodString;
|
|
126
|
+
status: z.ZodEnum<{
|
|
127
|
+
rejected: "rejected";
|
|
128
|
+
failed: "failed";
|
|
129
|
+
queued: "queued";
|
|
130
|
+
cancelled: "cancelled";
|
|
131
|
+
running: "running";
|
|
132
|
+
succeeded: "succeeded";
|
|
133
|
+
}>;
|
|
134
|
+
createdAt: z.ZodString;
|
|
135
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
136
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
137
|
+
result: z.ZodNullable<z.ZodUnknown>;
|
|
138
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
139
|
+
code: z.ZodString;
|
|
140
|
+
message: z.ZodString;
|
|
141
|
+
retryable: z.ZodBoolean;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
|
|
145
|
+
export declare type BaseHookContext = {
|
|
146
|
+
client: HookClient;
|
|
147
|
+
projectId: string;
|
|
148
|
+
payload?: HookPayload;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare type CommandExecuteRequest = z.infer<typeof commandExecuteRequestSchema>;
|
|
152
|
+
|
|
153
|
+
declare const commandExecuteRequestSchema: z.ZodObject<{
|
|
154
|
+
projectId: z.ZodString;
|
|
155
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
156
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
157
|
+
resource: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
type: z.ZodString;
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
label: z.ZodOptional<z.ZodString>;
|
|
162
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
163
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
164
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
167
|
+
target: z.ZodUnion<readonly [z.ZodEnum<{
|
|
168
|
+
"workbench.nav.actions": "workbench.nav.actions";
|
|
169
|
+
"workbench.nav.overflow": "workbench.nav.overflow";
|
|
170
|
+
}>, z.ZodEnum<{
|
|
171
|
+
"workbench.left.tree": "workbench.left.tree";
|
|
172
|
+
"workbench.main.left.tree": "workbench.main.left.tree";
|
|
173
|
+
"workbench.main.right.tree": "workbench.main.right.tree";
|
|
174
|
+
}>, z.ZodEnum<{
|
|
175
|
+
"workbench.main": "workbench.main";
|
|
176
|
+
"workbench.main.left": "workbench.main.left";
|
|
177
|
+
"workbench.main.right": "workbench.main.right";
|
|
178
|
+
"workbench.secondary": "workbench.secondary";
|
|
179
|
+
}>, z.ZodEnum<{
|
|
180
|
+
"workbench.settings": "workbench.settings";
|
|
181
|
+
}>]>;
|
|
182
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
183
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
184
|
+
resource: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
type: z.ZodString;
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
188
|
+
label: z.ZodOptional<z.ZodString>;
|
|
189
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
190
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
191
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
slot: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
kind: z.ZodEnum<{
|
|
197
|
+
menu: "menu";
|
|
198
|
+
panel: "panel";
|
|
199
|
+
settings: "settings";
|
|
200
|
+
renderer: "renderer";
|
|
201
|
+
kanbanRenderer: "kanbanRenderer";
|
|
202
|
+
dataTableRenderer: "dataTableRenderer";
|
|
203
|
+
}>;
|
|
204
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
repo: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
projectId: z.ZodString;
|
|
208
|
+
repoId: z.ZodString;
|
|
209
|
+
path: z.ZodString;
|
|
210
|
+
remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
default: "default";
|
|
213
|
+
selected: "selected";
|
|
214
|
+
workspace: "workspace";
|
|
215
|
+
}>>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
api: "api";
|
|
219
|
+
cli: "cli";
|
|
220
|
+
dashboard: "dashboard";
|
|
221
|
+
schedule: "schedule";
|
|
222
|
+
event: "event";
|
|
223
|
+
automation: "automation";
|
|
224
|
+
"command-panel": "command-panel";
|
|
225
|
+
}>>;
|
|
226
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
|
|
229
|
+
declare type CommandExecuteResponse = z.infer<typeof commandExecuteResponseSchema>;
|
|
230
|
+
|
|
231
|
+
declare const commandExecuteResponseSchema: z.ZodObject<{
|
|
232
|
+
commandId: z.ZodString;
|
|
233
|
+
extensionId: z.ZodString;
|
|
234
|
+
eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
235
|
+
outcome: z.ZodObject<{
|
|
236
|
+
ok: z.ZodBoolean;
|
|
237
|
+
status: z.ZodEnum<{
|
|
238
|
+
success: "success";
|
|
239
|
+
error: "error";
|
|
240
|
+
rejected: "rejected";
|
|
241
|
+
}>;
|
|
242
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
243
|
+
code: z.ZodOptional<z.ZodString>;
|
|
244
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
245
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
246
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
name: z.ZodOptional<z.ZodString>;
|
|
248
|
+
message: z.ZodString;
|
|
249
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
|
+
type: z.ZodEnum<{
|
|
253
|
+
success: "success";
|
|
254
|
+
error: "error";
|
|
255
|
+
info: "info";
|
|
256
|
+
warning: "warning";
|
|
257
|
+
}>;
|
|
258
|
+
title: z.ZodOptional<z.ZodString>;
|
|
259
|
+
message: z.ZodString;
|
|
260
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
261
|
+
}, z.core.$strip>>>;
|
|
262
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
263
|
+
code: z.ZodString;
|
|
264
|
+
message: z.ZodString;
|
|
265
|
+
severity: z.ZodEnum<{
|
|
266
|
+
error: "error";
|
|
267
|
+
info: "info";
|
|
268
|
+
warning: "warning";
|
|
269
|
+
}>;
|
|
270
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
271
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
272
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
|
|
277
|
+
declare interface CommandRef<TParams extends Struct = Struct, TResult = unknown> extends ContributionRef<"command"> {
|
|
278
|
+
params?: TParams;
|
|
279
|
+
result?: TResult;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
declare type CommandSource = "cli" | "dashboard" | "api" | "schedule" | "event" | "automation" | "command-panel";
|
|
283
|
+
|
|
284
|
+
declare interface CommandTarget<TParams extends Struct = Struct> {
|
|
285
|
+
command: CommandRef<TParams, unknown>;
|
|
286
|
+
params?: TParams;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare type CommitContext = {
|
|
290
|
+
repoPath: string;
|
|
291
|
+
worktreePath: string;
|
|
292
|
+
commitMessage: string;
|
|
293
|
+
stagePolicy: string;
|
|
294
|
+
commitSha?: string;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
declare type ConfigureExtensionConnectionInput = z.infer<typeof configureExtensionConnectionSchema>;
|
|
298
|
+
|
|
299
|
+
declare const configureExtensionConnectionSchema: z.ZodObject<{
|
|
300
|
+
baseUrl: z.ZodURL;
|
|
301
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
|
|
304
|
+
export declare type ConflictContext = {
|
|
305
|
+
repoPath: string;
|
|
306
|
+
branch: string;
|
|
307
|
+
target: string;
|
|
308
|
+
operation: "rebase" | "merge";
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
declare type ContributionKind = "activity-item" | "artifact-mount" | "command" | "command-palette-resource" | "connection" | "file-icon-theme" | "harness" | "hook" | "keybinding" | "middleware" | "mode" | "navigation-item" | "navigation-tree" | "page" | "placement" | "resource-hierarchy-provider" | "resource-kind" | "schedule" | "settings-panel" | "settings-section" | "skill" | "status" | "status-bar-item" | "template" | "template-type" | "theme" | "view" | "view-menu" | "workspace-type";
|
|
312
|
+
|
|
313
|
+
declare interface ContributionRef<Kind extends ContributionKind> {
|
|
314
|
+
readonly extensionId?: string;
|
|
315
|
+
readonly kind: Kind;
|
|
316
|
+
readonly id: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
declare type CreateAutomationRunInput = z.infer<typeof createAutomationRunInputSchema>;
|
|
320
|
+
|
|
321
|
+
declare const createAutomationRunInputSchema: z.ZodObject<{
|
|
322
|
+
commandId: z.ZodString;
|
|
323
|
+
input: z.ZodObject<{
|
|
324
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
325
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
326
|
+
resource: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
type: z.ZodString;
|
|
328
|
+
id: z.ZodString;
|
|
329
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
330
|
+
label: z.ZodOptional<z.ZodString>;
|
|
331
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
332
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
333
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
336
|
+
}, z.core.$strict>;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
|
|
339
|
+
declare interface CreateNotificationInput {
|
|
340
|
+
projectId: string;
|
|
341
|
+
title: string;
|
|
342
|
+
body?: string;
|
|
343
|
+
kind: NotificationKind;
|
|
344
|
+
priority?: NotificationPriority;
|
|
345
|
+
target?: ResourceRef;
|
|
346
|
+
related?: ResourceRef[];
|
|
347
|
+
actions?: NotificationAction[];
|
|
348
|
+
dedupeKey?: string;
|
|
349
|
+
expiresAt?: string;
|
|
350
|
+
snoozedUntil?: string;
|
|
351
|
+
metadata?: JsonObject;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
declare type CreateProjectInput = z.infer<typeof createProjectInputSchema>;
|
|
355
|
+
|
|
356
|
+
declare const createProjectInputSchema: z.ZodObject<{
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
|
+
|
|
361
|
+
declare type CreateSessionInput = z.infer<typeof createSessionInputSchema>;
|
|
362
|
+
|
|
363
|
+
declare const createSessionInputSchema: z.ZodObject<{
|
|
364
|
+
project_id: z.ZodString;
|
|
365
|
+
title: z.ZodString;
|
|
366
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
367
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
368
|
+
workspace_id: z.ZodOptional<z.ZodString>;
|
|
369
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
370
|
+
type: z.ZodString;
|
|
371
|
+
id: z.ZodString;
|
|
372
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
label: z.ZodOptional<z.ZodString>;
|
|
374
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
375
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
376
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
377
|
+
}, z.core.$strip>>>;
|
|
378
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
379
|
+
file_id: z.ZodString;
|
|
380
|
+
}, z.core.$strip>>>;
|
|
381
|
+
model: z.ZodOptional<z.ZodString>;
|
|
382
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
383
|
+
original_session_id: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
|
|
386
|
+
declare type CreateWorkspaceInput = z.infer<typeof createWorkspaceInputSchema>;
|
|
387
|
+
|
|
388
|
+
declare const createWorkspaceInputSchema: z.ZodObject<{
|
|
389
|
+
project_id: z.ZodString;
|
|
390
|
+
provider_id: z.ZodOptional<z.ZodString>;
|
|
391
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
392
|
+
repo_id: z.ZodOptional<z.ZodString>;
|
|
393
|
+
base: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
|
|
396
|
+
declare type DispatchExtensionEventInput = {
|
|
397
|
+
eventId: string;
|
|
398
|
+
payload: Struct;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
declare type EnableInstalledExtensionRequest = z.infer<typeof enableInstalledExtensionRequestSchema>;
|
|
402
|
+
|
|
403
|
+
declare const enableInstalledExtensionRequestSchema: z.ZodObject<{
|
|
404
|
+
displayName: z.ZodString;
|
|
405
|
+
extensionId: z.ZodString;
|
|
406
|
+
manifest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
sourceHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
409
|
+
sourceKind: z.ZodEnum<{
|
|
410
|
+
local_path: "local_path";
|
|
411
|
+
git: "git";
|
|
412
|
+
registry: "registry";
|
|
413
|
+
}>;
|
|
414
|
+
sourcePath: z.ZodString;
|
|
415
|
+
sourceRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
|
|
419
|
+
declare type EnableInstalledExtensionResponse = z.infer<typeof enableInstalledExtensionResponseSchema>;
|
|
420
|
+
|
|
421
|
+
declare const enableInstalledExtensionResponseSchema: z.ZodObject<{
|
|
422
|
+
enabled: z.ZodLiteral<true>;
|
|
423
|
+
installName: z.ZodString;
|
|
424
|
+
installedExtensionId: z.ZodString;
|
|
425
|
+
instanceId: z.ZodString;
|
|
426
|
+
name: z.ZodString;
|
|
427
|
+
projectId: z.ZodString;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
|
|
430
|
+
declare type ExtensionClient = {
|
|
431
|
+
enableInstalled(projectId: string, installName: string, request: EnableInstalledExtensionRequest): Promise<EnableInstalledExtensionResponse>;
|
|
432
|
+
listAppearance(projectId: string): Promise<ListExtensionAppearanceResponse>;
|
|
433
|
+
listCommands(projectId: string): Promise<ListExtensionCommandsResponse>;
|
|
434
|
+
listProject(projectId: string): Promise<ListProjectExtensionsResponse>;
|
|
435
|
+
upgradeProject(projectId: string, instanceId: string): Promise<UpgradeProjectExtensionResponse>;
|
|
436
|
+
listConnections(projectId: string): Promise<ListExtensionConnectionsResponse>;
|
|
437
|
+
configureConnection(projectId: string, extensionId: string, connectionId: string, input: ConfigureExtensionConnectionInput): Promise<ExtensionConnectionRecord>;
|
|
438
|
+
checkConnection(projectId: string, extensionId: string, connectionId: string): Promise<ExtensionConnectionRecord>;
|
|
439
|
+
deleteConnection(projectId: string, extensionId: string, connectionId: string): Promise<void>;
|
|
440
|
+
execute(commandId: string, request: CommandExecuteRequest): Promise<CommandExecuteResponse>;
|
|
441
|
+
dispatchEvent(projectId: string, input: DispatchExtensionEventInput): Promise<void>;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
declare type ExtensionConnectionRecord = z.infer<typeof extensionConnectionRecordSchema>;
|
|
445
|
+
|
|
446
|
+
declare const extensionConnectionRecordSchema: z.ZodObject<{
|
|
447
|
+
id: z.ZodString;
|
|
448
|
+
extensionId: z.ZodString;
|
|
449
|
+
connectionId: z.ZodString;
|
|
450
|
+
baseUrl: z.ZodString;
|
|
451
|
+
authType: z.ZodEnum<{
|
|
452
|
+
header: "header";
|
|
453
|
+
bearer: "bearer";
|
|
454
|
+
}>;
|
|
455
|
+
configured: z.ZodBoolean;
|
|
456
|
+
lastCheck: z.ZodNullable<z.ZodObject<{
|
|
457
|
+
ok: z.ZodBoolean;
|
|
458
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
459
|
+
error: z.ZodNullable<z.ZodString>;
|
|
460
|
+
checkedAt: z.ZodString;
|
|
461
|
+
}, z.core.$strip>>;
|
|
462
|
+
updatedAt: z.ZodString;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
|
|
465
|
+
declare interface FileRendererSectionAnchor {
|
|
466
|
+
/** Stable extension-owned tree node id. */
|
|
467
|
+
id: string;
|
|
468
|
+
/** Plain heading text as it appears in the Markdown document. */
|
|
469
|
+
heading: string;
|
|
470
|
+
/** Zero-based occurrence when the document repeats the same heading text. */
|
|
471
|
+
occurrence?: number;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
declare interface FileRendererSectionTarget {
|
|
475
|
+
/** The document outline used for deep-linking and active-heading sync. */
|
|
476
|
+
anchors: FileRendererSectionAnchor[];
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
declare type FollowUpInput = z.infer<typeof followUpInputSchema>;
|
|
480
|
+
|
|
481
|
+
declare const followUpInputSchema: z.ZodObject<{
|
|
482
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
483
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
484
|
+
model: z.ZodOptional<z.ZodString>;
|
|
485
|
+
question_response: z.ZodOptional<z.ZodObject<{
|
|
486
|
+
answers: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
487
|
+
}, z.core.$strip>>;
|
|
488
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
489
|
+
summary_from_session_id: z.ZodOptional<z.ZodString>;
|
|
490
|
+
summary_format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
491
|
+
brief: "brief";
|
|
492
|
+
detailed: "detailed";
|
|
493
|
+
}>>>;
|
|
494
|
+
summary_role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
495
|
+
assistant: "assistant";
|
|
496
|
+
all: "all";
|
|
497
|
+
}>>>;
|
|
498
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
499
|
+
file_id: z.ZodString;
|
|
500
|
+
}, z.core.$strip>>>;
|
|
501
|
+
}, z.core.$strip>;
|
|
502
|
+
|
|
503
|
+
declare type FollowUpResponse = z.infer<typeof followUpResponseSchema>;
|
|
504
|
+
|
|
505
|
+
declare const followUpResponseSchema: z.ZodObject<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
508
|
+
title: z.ZodString;
|
|
509
|
+
status: z.ZodEnum<{
|
|
510
|
+
completed: "completed";
|
|
511
|
+
failed: "failed";
|
|
512
|
+
in_progress: "in_progress";
|
|
513
|
+
awaiting_input: "awaiting_input";
|
|
514
|
+
queued: "queued";
|
|
515
|
+
cancelled: "cancelled";
|
|
516
|
+
disconnected: "disconnected";
|
|
517
|
+
}>;
|
|
518
|
+
archived: z.ZodBoolean;
|
|
519
|
+
last_request_started: z.ZodNullable<z.ZodString>;
|
|
520
|
+
last_request_ended: z.ZodNullable<z.ZodString>;
|
|
521
|
+
agent: z.ZodNullable<z.ZodString>;
|
|
522
|
+
last_selected_model: z.ZodNullable<z.ZodString>;
|
|
523
|
+
agent_session_id: z.ZodNullable<z.ZodString>;
|
|
524
|
+
session_file_id: z.ZodNullable<z.ZodString>;
|
|
525
|
+
original_session_id: z.ZodNullable<z.ZodString>;
|
|
526
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
527
|
+
params_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
528
|
+
anchors_json: z.ZodArray<z.ZodObject<{
|
|
529
|
+
type: z.ZodString;
|
|
530
|
+
id: z.ZodString;
|
|
531
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
532
|
+
label: z.ZodOptional<z.ZodString>;
|
|
533
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
534
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
535
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
created_at: z.ZodString;
|
|
538
|
+
updated_at: z.ZodString;
|
|
539
|
+
follow_up: z.ZodUnion<readonly [z.ZodObject<{
|
|
540
|
+
status: z.ZodLiteral<"dispatched">;
|
|
541
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
542
|
+
status: z.ZodLiteral<"queued">;
|
|
543
|
+
queue_position: z.ZodNumber;
|
|
544
|
+
}, z.core.$strip>]>;
|
|
545
|
+
}, z.core.$strip>;
|
|
546
|
+
|
|
547
|
+
export declare type HookClient = PstdioClient & {
|
|
548
|
+
session: HookSessionClient;
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
export declare type HookPayload = Record<string, unknown>;
|
|
552
|
+
|
|
553
|
+
declare type HookResourceAnchor = {
|
|
554
|
+
type: string;
|
|
555
|
+
id: string;
|
|
556
|
+
label?: string;
|
|
557
|
+
metadata?: Record<string, unknown>;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
declare type HookSessionClient = {
|
|
561
|
+
followup(input: SessionFollowupInput): Promise<Session>;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
declare type HookWorkspace = Workspace;
|
|
565
|
+
|
|
566
|
+
declare type IssueAutomationTokenInput = z.infer<typeof issueAutomationTokenInputSchema>;
|
|
567
|
+
|
|
568
|
+
declare const issueAutomationTokenInputSchema: z.ZodObject<{
|
|
569
|
+
name: z.ZodString;
|
|
570
|
+
projectId: z.ZodString;
|
|
571
|
+
principalId: z.ZodOptional<z.ZodString>;
|
|
572
|
+
commandScopes: z.ZodArray<z.ZodString>;
|
|
573
|
+
expiresInSeconds: z.ZodNumber;
|
|
574
|
+
}, z.core.$strict>;
|
|
575
|
+
|
|
576
|
+
declare type IssueAutomationTokenResponse = z.infer<typeof issueAutomationTokenResponseSchema>;
|
|
577
|
+
|
|
578
|
+
declare const issueAutomationTokenResponseSchema: z.ZodObject<{
|
|
579
|
+
id: z.ZodString;
|
|
580
|
+
principalId: z.ZodString;
|
|
581
|
+
name: z.ZodString;
|
|
582
|
+
tokenPrefix: z.ZodString;
|
|
583
|
+
projectId: z.ZodString;
|
|
584
|
+
commandScopes: z.ZodArray<z.ZodString>;
|
|
585
|
+
expiresAt: z.ZodString;
|
|
586
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
587
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
588
|
+
createdAt: z.ZodString;
|
|
589
|
+
token: z.ZodString;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
|
|
592
|
+
declare type JsonObject = {
|
|
593
|
+
[key: string]: JsonValue;
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
declare type JsonPrimitive = string | number | boolean | null;
|
|
597
|
+
|
|
598
|
+
declare type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;
|
|
599
|
+
|
|
600
|
+
declare type ListActivityResponse = z.infer<typeof listActivityResponseSchema>;
|
|
601
|
+
|
|
602
|
+
declare const listActivityResponseSchema: z.ZodObject<{
|
|
603
|
+
events: z.ZodArray<z.ZodObject<{
|
|
604
|
+
id: z.ZodString;
|
|
605
|
+
project_id: z.ZodString;
|
|
606
|
+
resource_type: z.ZodString;
|
|
607
|
+
resource_id: z.ZodString;
|
|
608
|
+
source_extension_id: z.ZodNullable<z.ZodString>;
|
|
609
|
+
event_type: z.ZodString;
|
|
610
|
+
actor_type: z.ZodEnum<{
|
|
611
|
+
user: "user";
|
|
612
|
+
agent: "agent";
|
|
613
|
+
system: "system";
|
|
614
|
+
}>;
|
|
615
|
+
actor_id: z.ZodNullable<z.ZodString>;
|
|
616
|
+
source: z.ZodEnum<{
|
|
617
|
+
agent: "agent";
|
|
618
|
+
system: "system";
|
|
619
|
+
ui: "ui";
|
|
620
|
+
api: "api";
|
|
621
|
+
hook: "hook";
|
|
622
|
+
}>;
|
|
623
|
+
summary: z.ZodString;
|
|
624
|
+
payload_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
625
|
+
created_at: z.ZodString;
|
|
626
|
+
}, z.core.$strip>>;
|
|
627
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
|
|
630
|
+
declare type ListAutomationRunEventsResponse = z.infer<typeof listAutomationRunEventsResponseSchema>;
|
|
631
|
+
|
|
632
|
+
declare const listAutomationRunEventsResponseSchema: z.ZodObject<{
|
|
633
|
+
events: z.ZodArray<z.ZodObject<{
|
|
634
|
+
cursor: z.ZodNumber;
|
|
635
|
+
runId: z.ZodString;
|
|
636
|
+
type: z.ZodString;
|
|
637
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
638
|
+
createdAt: z.ZodString;
|
|
639
|
+
}, z.core.$strip>>;
|
|
640
|
+
}, z.core.$strip>;
|
|
641
|
+
|
|
642
|
+
declare type ListAutomationTokensResponse = z.infer<typeof listAutomationTokensResponseSchema>;
|
|
643
|
+
|
|
644
|
+
declare const listAutomationTokensResponseSchema: z.ZodObject<{
|
|
645
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
646
|
+
id: z.ZodString;
|
|
647
|
+
principalId: z.ZodString;
|
|
648
|
+
name: z.ZodString;
|
|
649
|
+
tokenPrefix: z.ZodString;
|
|
650
|
+
projectId: z.ZodString;
|
|
651
|
+
commandScopes: z.ZodArray<z.ZodString>;
|
|
652
|
+
expiresAt: z.ZodString;
|
|
653
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
654
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
655
|
+
createdAt: z.ZodString;
|
|
656
|
+
}, z.core.$strip>>;
|
|
657
|
+
}, z.core.$strip>;
|
|
658
|
+
|
|
659
|
+
declare type ListExtensionAppearanceResponse = z.infer<typeof listExtensionAppearanceResponseSchema>;
|
|
660
|
+
|
|
661
|
+
declare const listExtensionAppearanceResponseSchema: z.ZodObject<{
|
|
662
|
+
themes: z.ZodArray<z.ZodObject<{
|
|
663
|
+
id: z.ZodString;
|
|
664
|
+
extensionId: z.ZodString;
|
|
665
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
666
|
+
$l10n: z.ZodString;
|
|
667
|
+
default: z.ZodOptional<z.ZodString>;
|
|
668
|
+
}, z.core.$strip>]>;
|
|
669
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
670
|
+
$l10n: z.ZodString;
|
|
671
|
+
default: z.ZodOptional<z.ZodString>;
|
|
672
|
+
}, z.core.$strip>]>>;
|
|
673
|
+
format: z.ZodLiteral<"vscode-color-theme">;
|
|
674
|
+
mode: z.ZodEnum<{
|
|
675
|
+
light: "light";
|
|
676
|
+
dark: "dark";
|
|
677
|
+
}>;
|
|
678
|
+
source: z.ZodObject<{
|
|
679
|
+
kind: z.ZodLiteral<"package-asset">;
|
|
680
|
+
path: z.ZodString;
|
|
681
|
+
baseUrl: z.ZodString;
|
|
682
|
+
}, z.core.$strip>;
|
|
683
|
+
tokens: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
684
|
+
monacoTheme: z.ZodObject<{
|
|
685
|
+
base: z.ZodEnum<{
|
|
686
|
+
vs: "vs";
|
|
687
|
+
"vs-dark": "vs-dark";
|
|
688
|
+
}>;
|
|
689
|
+
inherit: z.ZodLiteral<true>;
|
|
690
|
+
rules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
691
|
+
colors: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
692
|
+
}, z.core.$strip>;
|
|
693
|
+
}, z.core.$strip>>;
|
|
694
|
+
fileIconThemes: z.ZodArray<z.ZodObject<{
|
|
695
|
+
id: z.ZodString;
|
|
696
|
+
extensionId: z.ZodString;
|
|
697
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
698
|
+
$l10n: z.ZodString;
|
|
699
|
+
default: z.ZodOptional<z.ZodString>;
|
|
700
|
+
}, z.core.$strip>]>;
|
|
701
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
702
|
+
$l10n: z.ZodString;
|
|
703
|
+
default: z.ZodOptional<z.ZodString>;
|
|
704
|
+
}, z.core.$strip>]>>;
|
|
705
|
+
format: z.ZodLiteral<"vscode-file-icon-theme">;
|
|
706
|
+
source: z.ZodObject<{
|
|
707
|
+
kind: z.ZodLiteral<"package-asset">;
|
|
708
|
+
path: z.ZodString;
|
|
709
|
+
baseUrl: z.ZodString;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
definitions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
712
|
+
fileExtensions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
713
|
+
fileNames: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
714
|
+
defaults: z.ZodDefault<z.ZodObject<{
|
|
715
|
+
file: z.ZodOptional<z.ZodString>;
|
|
716
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
717
|
+
}, z.core.$strip>>;
|
|
718
|
+
fonts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
719
|
+
fontFamily: z.ZodString;
|
|
720
|
+
src: z.ZodArray<z.ZodObject<{
|
|
721
|
+
url: z.ZodString;
|
|
722
|
+
format: z.ZodOptional<z.ZodString>;
|
|
723
|
+
}, z.core.$strip>>;
|
|
724
|
+
weight: z.ZodOptional<z.ZodString>;
|
|
725
|
+
style: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.core.$strip>>>;
|
|
727
|
+
}, z.core.$strip>>;
|
|
728
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
729
|
+
extensionId: z.ZodString;
|
|
730
|
+
defaultLocale: z.ZodString;
|
|
731
|
+
bundles: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
732
|
+
}, z.core.$strip>>;
|
|
733
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
734
|
+
code: z.ZodString;
|
|
735
|
+
severity: z.ZodEnum<{
|
|
736
|
+
error: "error";
|
|
737
|
+
info: "info";
|
|
738
|
+
warning: "warning";
|
|
739
|
+
}>;
|
|
740
|
+
message: z.ZodString;
|
|
741
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
742
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
743
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
744
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
745
|
+
}, z.core.$strip>>;
|
|
746
|
+
}, z.core.$strip>;
|
|
747
|
+
|
|
748
|
+
declare type ListExtensionCommandsResponse = z.infer<typeof listExtensionCommandsResponseSchema>;
|
|
749
|
+
|
|
750
|
+
declare const listExtensionCommandsResponseSchema: z.ZodObject<{
|
|
751
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
752
|
+
id: z.ZodString;
|
|
753
|
+
extensionId: z.ZodString;
|
|
754
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
755
|
+
$l10n: z.ZodString;
|
|
756
|
+
default: z.ZodOptional<z.ZodString>;
|
|
757
|
+
}, z.core.$strip>]>;
|
|
758
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
759
|
+
$l10n: z.ZodString;
|
|
760
|
+
default: z.ZodOptional<z.ZodString>;
|
|
761
|
+
}, z.core.$strip>]>>;
|
|
762
|
+
cliPath: z.ZodOptional<z.ZodString>;
|
|
763
|
+
cliAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
764
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
765
|
+
automation: z.ZodOptional<z.ZodBoolean>;
|
|
766
|
+
mutating: z.ZodOptional<z.ZodBoolean>;
|
|
767
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
768
|
+
type: z.ZodString;
|
|
769
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
770
|
+
}, z.core.$strip>>;
|
|
771
|
+
translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
772
|
+
extensionId: z.ZodString;
|
|
773
|
+
defaultLocale: z.ZodString;
|
|
774
|
+
bundles: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
775
|
+
}, z.core.$strip>>>;
|
|
776
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
777
|
+
code: z.ZodString;
|
|
778
|
+
severity: z.ZodEnum<{
|
|
779
|
+
error: "error";
|
|
780
|
+
info: "info";
|
|
781
|
+
warning: "warning";
|
|
782
|
+
}>;
|
|
783
|
+
message: z.ZodString;
|
|
784
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
785
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
786
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
787
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
788
|
+
}, z.core.$strip>>;
|
|
789
|
+
}, z.core.$strip>;
|
|
790
|
+
|
|
791
|
+
declare type ListExtensionConnectionsResponse = z.infer<typeof listExtensionConnectionsResponseSchema>;
|
|
792
|
+
|
|
793
|
+
declare const listExtensionConnectionsResponseSchema: z.ZodObject<{
|
|
794
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
795
|
+
id: z.ZodString;
|
|
796
|
+
extensionId: z.ZodString;
|
|
797
|
+
connectionId: z.ZodString;
|
|
798
|
+
baseUrl: z.ZodString;
|
|
799
|
+
authType: z.ZodEnum<{
|
|
800
|
+
header: "header";
|
|
801
|
+
bearer: "bearer";
|
|
802
|
+
}>;
|
|
803
|
+
configured: z.ZodBoolean;
|
|
804
|
+
lastCheck: z.ZodNullable<z.ZodObject<{
|
|
805
|
+
ok: z.ZodBoolean;
|
|
806
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
807
|
+
error: z.ZodNullable<z.ZodString>;
|
|
808
|
+
checkedAt: z.ZodString;
|
|
809
|
+
}, z.core.$strip>>;
|
|
810
|
+
updatedAt: z.ZodString;
|
|
811
|
+
}, z.core.$strip>>;
|
|
812
|
+
}, z.core.$strip>;
|
|
813
|
+
|
|
814
|
+
declare interface ListNotificationsQuery {
|
|
815
|
+
status?: NotificationStatus | NotificationStatus[];
|
|
816
|
+
priority?: NotificationPriority | NotificationPriority[];
|
|
817
|
+
sourceExtensionId?: string;
|
|
818
|
+
resourceType?: string;
|
|
819
|
+
resourceId?: string;
|
|
820
|
+
cursor?: string;
|
|
821
|
+
limit?: number;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
declare interface ListNotificationsResponse {
|
|
825
|
+
items: Notification_2[];
|
|
826
|
+
nextCursor?: string | null;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
declare type ListProjectActivityInput = z.infer<typeof listProjectActivityInputSchema>;
|
|
830
|
+
|
|
831
|
+
declare const listProjectActivityInputSchema: z.ZodObject<{
|
|
832
|
+
event_type: z.ZodOptional<z.ZodString>;
|
|
833
|
+
from: z.ZodOptional<z.ZodString>;
|
|
834
|
+
to: z.ZodOptional<z.ZodString>;
|
|
835
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
836
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
837
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
838
|
+
}, z.core.$strip>;
|
|
839
|
+
|
|
840
|
+
declare type ListProjectExtensionsResponse = z.infer<typeof listProjectExtensionsResponseSchema>;
|
|
841
|
+
|
|
842
|
+
declare const listProjectExtensionsResponseSchema: z.ZodObject<{
|
|
843
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
844
|
+
id: z.ZodString;
|
|
845
|
+
projectId: z.ZodString;
|
|
846
|
+
extensionId: z.ZodString;
|
|
847
|
+
installedExtensionId: z.ZodString;
|
|
848
|
+
installName: z.ZodString;
|
|
849
|
+
name: z.ZodString;
|
|
850
|
+
displayName: z.ZodString;
|
|
851
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
852
|
+
description: z.ZodOptional<z.ZodString>;
|
|
853
|
+
sourcePath: z.ZodString;
|
|
854
|
+
scope: z.ZodEnum<{
|
|
855
|
+
global: "global";
|
|
856
|
+
repo: "repo";
|
|
857
|
+
}>;
|
|
858
|
+
status: z.ZodEnum<{
|
|
859
|
+
error: "error";
|
|
860
|
+
pending: "pending";
|
|
861
|
+
disabled: "disabled";
|
|
862
|
+
loaded: "loaded";
|
|
863
|
+
missing: "missing";
|
|
864
|
+
}>;
|
|
865
|
+
lastLoadedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
866
|
+
lastError: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
867
|
+
enabled: z.ZodBoolean;
|
|
868
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
869
|
+
canUpgrade: z.ZodBoolean;
|
|
870
|
+
updateAvailable: z.ZodBoolean;
|
|
871
|
+
}, z.core.$strip>>;
|
|
872
|
+
marketplace: z.ZodArray<z.ZodObject<{
|
|
873
|
+
installName: z.ZodString;
|
|
874
|
+
displayName: z.ZodString;
|
|
875
|
+
description: z.ZodString;
|
|
876
|
+
installed: z.ZodBoolean;
|
|
877
|
+
origin: z.ZodObject<{
|
|
878
|
+
kind: z.ZodLiteral<"git">;
|
|
879
|
+
url: z.ZodString;
|
|
880
|
+
path: z.ZodString;
|
|
881
|
+
ref: z.ZodString;
|
|
882
|
+
}, z.core.$strip>;
|
|
883
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
884
|
+
}, z.core.$strip>>;
|
|
885
|
+
}, z.core.$strip>;
|
|
886
|
+
|
|
887
|
+
declare type ListSessionActivityInput = z.infer<typeof listSessionActivityInputSchema>;
|
|
888
|
+
|
|
889
|
+
declare const listSessionActivityInputSchema: z.ZodObject<{
|
|
890
|
+
event_type: z.ZodOptional<z.ZodString>;
|
|
891
|
+
from: z.ZodOptional<z.ZodString>;
|
|
892
|
+
to: z.ZodOptional<z.ZodString>;
|
|
893
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
894
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
895
|
+
}, z.core.$strip>;
|
|
896
|
+
|
|
897
|
+
declare type ListSessionActivityResponse = z.infer<typeof listSessionActivityResponseSchema>;
|
|
898
|
+
|
|
899
|
+
declare const listSessionActivityResponseSchema: z.ZodObject<{
|
|
900
|
+
events: z.ZodArray<z.ZodObject<{
|
|
901
|
+
id: z.ZodString;
|
|
902
|
+
project_id: z.ZodString;
|
|
903
|
+
resource_type: z.ZodString;
|
|
904
|
+
resource_id: z.ZodString;
|
|
905
|
+
source_extension_id: z.ZodNullable<z.ZodString>;
|
|
906
|
+
event_type: z.ZodString;
|
|
907
|
+
actor_type: z.ZodEnum<{
|
|
908
|
+
user: "user";
|
|
909
|
+
agent: "agent";
|
|
910
|
+
system: "system";
|
|
911
|
+
}>;
|
|
912
|
+
actor_id: z.ZodNullable<z.ZodString>;
|
|
913
|
+
source: z.ZodEnum<{
|
|
914
|
+
agent: "agent";
|
|
915
|
+
system: "system";
|
|
916
|
+
ui: "ui";
|
|
917
|
+
api: "api";
|
|
918
|
+
hook: "hook";
|
|
919
|
+
}>;
|
|
920
|
+
summary: z.ZodString;
|
|
921
|
+
payload_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
922
|
+
created_at: z.ZodString;
|
|
923
|
+
}, z.core.$strip>>;
|
|
924
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
925
|
+
}, z.core.$strip>;
|
|
926
|
+
|
|
927
|
+
declare type ListSessionsInput = {
|
|
928
|
+
status?: string;
|
|
929
|
+
agent?: string;
|
|
930
|
+
workspaceId?: string;
|
|
931
|
+
archived?: boolean;
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
declare type ListWorkspaceActivityInput = z.infer<typeof listWorkspaceActivityInputSchema>;
|
|
935
|
+
|
|
936
|
+
declare const listWorkspaceActivityInputSchema: z.ZodObject<{
|
|
937
|
+
event_type: z.ZodOptional<z.ZodString>;
|
|
938
|
+
from: z.ZodOptional<z.ZodString>;
|
|
939
|
+
to: z.ZodOptional<z.ZodString>;
|
|
940
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
941
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
942
|
+
}, z.core.$strip>;
|
|
943
|
+
|
|
944
|
+
declare type ListWorkspaceActivityResponse = z.infer<typeof listWorkspaceActivityResponseSchema>;
|
|
945
|
+
|
|
946
|
+
declare const listWorkspaceActivityResponseSchema: z.ZodObject<{
|
|
947
|
+
events: z.ZodArray<z.ZodObject<{
|
|
948
|
+
id: z.ZodString;
|
|
949
|
+
project_id: z.ZodString;
|
|
950
|
+
resource_type: z.ZodString;
|
|
951
|
+
resource_id: z.ZodString;
|
|
952
|
+
source_extension_id: z.ZodNullable<z.ZodString>;
|
|
953
|
+
event_type: z.ZodString;
|
|
954
|
+
actor_type: z.ZodEnum<{
|
|
955
|
+
user: "user";
|
|
956
|
+
agent: "agent";
|
|
957
|
+
system: "system";
|
|
958
|
+
}>;
|
|
959
|
+
actor_id: z.ZodNullable<z.ZodString>;
|
|
960
|
+
source: z.ZodEnum<{
|
|
961
|
+
agent: "agent";
|
|
962
|
+
system: "system";
|
|
963
|
+
ui: "ui";
|
|
964
|
+
api: "api";
|
|
965
|
+
hook: "hook";
|
|
966
|
+
}>;
|
|
967
|
+
summary: z.ZodString;
|
|
968
|
+
payload_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
969
|
+
created_at: z.ZodString;
|
|
970
|
+
}, z.core.$strip>>;
|
|
971
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
972
|
+
}, z.core.$strip>;
|
|
973
|
+
|
|
974
|
+
declare type ListWorkspaceFilesInput = z.infer<typeof listWorkspaceFilesInputSchema>;
|
|
975
|
+
|
|
976
|
+
declare const listWorkspaceFilesInputSchema: z.ZodObject<{
|
|
977
|
+
path: z.ZodOptional<z.ZodString>;
|
|
978
|
+
query: z.ZodOptional<z.ZodString>;
|
|
979
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
980
|
+
}, z.core.$strip>;
|
|
981
|
+
|
|
982
|
+
export declare type MergeContext = {
|
|
983
|
+
repoPath: string;
|
|
984
|
+
branch: string;
|
|
985
|
+
target: string;
|
|
986
|
+
squash: boolean;
|
|
987
|
+
commitMessage: string | null;
|
|
988
|
+
commitSha?: string;
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
declare type NavigationTarget = NavigationTargetItem | NavigationTargetCompound;
|
|
992
|
+
|
|
993
|
+
declare interface NavigationTargetCommand {
|
|
994
|
+
kind: "command";
|
|
995
|
+
target: CommandTarget<JsonObject>;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
declare interface NavigationTargetCompound {
|
|
999
|
+
kind: "compound";
|
|
1000
|
+
targets: readonly (NavigationTargetPage | NavigationTargetPanel)[];
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
declare interface NavigationTargetHref {
|
|
1004
|
+
kind: "href";
|
|
1005
|
+
href: string;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
declare type NavigationTargetItem = NavigationTargetPage | NavigationTargetPanel | NavigationTargetCommand | NavigationTargetHref;
|
|
1009
|
+
|
|
1010
|
+
declare interface NavigationTargetPage {
|
|
1011
|
+
kind: "page";
|
|
1012
|
+
page: PageRef;
|
|
1013
|
+
resource?: ResourceRef;
|
|
1014
|
+
section?: FileRendererSectionTarget;
|
|
1015
|
+
open?: PageOpenIntent;
|
|
1016
|
+
parent?: NavigationTargetPage;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
declare interface NavigationTargetPanel {
|
|
1020
|
+
kind: "panel";
|
|
1021
|
+
panel: PanelRef;
|
|
1022
|
+
resource?: ResourceRef;
|
|
1023
|
+
open?: PageOpenIntent;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
declare interface Notification_2 {
|
|
1027
|
+
id: string;
|
|
1028
|
+
projectId: string;
|
|
1029
|
+
title: string;
|
|
1030
|
+
body?: string | null;
|
|
1031
|
+
kind: NotificationKind;
|
|
1032
|
+
status: NotificationStatus;
|
|
1033
|
+
priority: NotificationPriority;
|
|
1034
|
+
source: CommandSource;
|
|
1035
|
+
origin: NotificationOrigin;
|
|
1036
|
+
sourceExtensionId?: string | null;
|
|
1037
|
+
actorType?: NotificationActorType | null;
|
|
1038
|
+
actorId?: string | null;
|
|
1039
|
+
target?: ResourceRef | null;
|
|
1040
|
+
related: ResourceRef[];
|
|
1041
|
+
actions: NotificationAction[];
|
|
1042
|
+
dedupeKey?: string | null;
|
|
1043
|
+
metadata?: JsonObject | null;
|
|
1044
|
+
createdAt: string;
|
|
1045
|
+
updatedAt: string;
|
|
1046
|
+
readAt?: string | null;
|
|
1047
|
+
resolvedAt?: string | null;
|
|
1048
|
+
snoozedUntil?: string | null;
|
|
1049
|
+
expiresAt?: string | null;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
declare type NotificationAction = {
|
|
1053
|
+
id: string;
|
|
1054
|
+
label: string;
|
|
1055
|
+
kind: "navigate";
|
|
1056
|
+
target: NavigationTarget;
|
|
1057
|
+
primary?: boolean;
|
|
1058
|
+
} | {
|
|
1059
|
+
id: string;
|
|
1060
|
+
label: string;
|
|
1061
|
+
kind: "command";
|
|
1062
|
+
command: string;
|
|
1063
|
+
params?: JsonObject;
|
|
1064
|
+
primary?: boolean;
|
|
1065
|
+
destructive?: boolean;
|
|
1066
|
+
} | {
|
|
1067
|
+
id: string;
|
|
1068
|
+
label: string;
|
|
1069
|
+
kind: "url";
|
|
1070
|
+
href: string;
|
|
1071
|
+
primary?: boolean;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
declare type NotificationActorType = "user" | "agent" | "system";
|
|
1075
|
+
|
|
1076
|
+
declare type NotificationKind = "needs_review" | "ready_to_merge" | "blocked" | "approval_required" | "failed" | "info";
|
|
1077
|
+
|
|
1078
|
+
declare type NotificationOrigin = "core" | "extension" | "agent";
|
|
1079
|
+
|
|
1080
|
+
declare type NotificationPriority = "low" | "normal" | "high" | "urgent";
|
|
1081
|
+
|
|
1082
|
+
declare type NotificationsClient = {
|
|
1083
|
+
list(projectId: string, query?: ListNotificationsQuery): Promise<ListNotificationsResponse>;
|
|
1084
|
+
count(projectId: string, query?: Pick<ListNotificationsQuery, "status" | "priority" | "sourceExtensionId">): Promise<{
|
|
1085
|
+
count: number;
|
|
1086
|
+
}>;
|
|
1087
|
+
get(projectId: string, id: string): Promise<Notification_2>;
|
|
1088
|
+
create(input: CreateNotificationInput): Promise<Notification_2>;
|
|
1089
|
+
update(projectId: string, id: string, input: UpdateNotificationInput): Promise<Notification_2>;
|
|
1090
|
+
markRead(projectId: string, id: string): Promise<Notification_2>;
|
|
1091
|
+
dismiss(projectId: string, id: string): Promise<Notification_2>;
|
|
1092
|
+
markDone(projectId: string, id: string): Promise<Notification_2>;
|
|
1093
|
+
snooze(projectId: string, id: string, until: string): Promise<Notification_2>;
|
|
1094
|
+
resolveByDedupeKey(projectId: string, input: {
|
|
1095
|
+
dedupeKey: string;
|
|
1096
|
+
status?: Extract<NotificationStatus, "done" | "dismissed" | "expired">;
|
|
1097
|
+
}): Promise<{
|
|
1098
|
+
resolved: number;
|
|
1099
|
+
notifications: Notification_2[];
|
|
1100
|
+
}>;
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
declare type NotificationStatus = "open" | "read" | "snoozed" | "done" | "dismissed" | "expired";
|
|
1104
|
+
|
|
1105
|
+
declare type PageOpenIntent = "preview" | "pin";
|
|
1106
|
+
|
|
1107
|
+
declare type PageRef = ContributionRef<"page">;
|
|
1108
|
+
|
|
1109
|
+
declare interface PageSlotRef {
|
|
1110
|
+
readonly kind: "page-slot";
|
|
1111
|
+
readonly page: PageRef;
|
|
1112
|
+
readonly id: string;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
declare type PanelRef = PlacementRef | PageSlotRef;
|
|
1116
|
+
|
|
1117
|
+
declare type PlacementRef = ContributionRef<"placement">;
|
|
1118
|
+
|
|
1119
|
+
declare type Project = z.infer<typeof projectSchema>;
|
|
1120
|
+
|
|
1121
|
+
declare type ProjectClient = {
|
|
1122
|
+
list(): Promise<Project[]>;
|
|
1123
|
+
get(projectId: string): Promise<Project>;
|
|
1124
|
+
create(input: CreateProjectInput): Promise<Project>;
|
|
1125
|
+
delete(projectId: string): Promise<void>;
|
|
1126
|
+
listActivity(projectId: string, input?: ListProjectActivityInput): Promise<ListActivityResponse>;
|
|
1127
|
+
listRepos(projectId: string): Promise<Repo[]>;
|
|
1128
|
+
registerRepo(projectId: string, input: RegisterRepoInput): Promise<Repo>;
|
|
1129
|
+
removeRepo(projectId: string, repoId: string): Promise<void>;
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
declare const projectSchema: z.ZodObject<{
|
|
1133
|
+
id: z.ZodString;
|
|
1134
|
+
name: z.ZodString;
|
|
1135
|
+
shorthand: z.ZodString;
|
|
1136
|
+
default_agent_id: z.ZodNullable<z.ZodString>;
|
|
1137
|
+
default_agent_model: z.ZodNullable<z.ZodString>;
|
|
1138
|
+
startup_script: z.ZodNullable<z.ZodString>;
|
|
1139
|
+
created_at: z.ZodString;
|
|
1140
|
+
updated_at: z.ZodString;
|
|
1141
|
+
deleted_at: z.ZodNullable<z.ZodString>;
|
|
1142
|
+
extension_warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1143
|
+
code: z.ZodLiteral<"extension_setup_failed">;
|
|
1144
|
+
extension: z.ZodString;
|
|
1145
|
+
message: z.ZodString;
|
|
1146
|
+
}, z.core.$strip>>>;
|
|
1147
|
+
}, z.core.$strip>;
|
|
1148
|
+
|
|
1149
|
+
declare type PstdioClient = {
|
|
1150
|
+
projects: ProjectClient;
|
|
1151
|
+
workspaces: WorkspaceClient;
|
|
1152
|
+
sessions: SessionClient;
|
|
1153
|
+
skills: SkillClient;
|
|
1154
|
+
agents: AgentClient;
|
|
1155
|
+
automation: AutomationClient;
|
|
1156
|
+
notifications: NotificationsClient;
|
|
1157
|
+
extensions: ExtensionClient;
|
|
1158
|
+
settings: SettingsClient;
|
|
1159
|
+
sync: SyncClient;
|
|
1160
|
+
runtime: RuntimeClient;
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
export declare type RebaseContext = {
|
|
1164
|
+
repoPath: string;
|
|
1165
|
+
branch: string;
|
|
1166
|
+
target: string;
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
declare type RegisterRepoInput = z.infer<typeof registerRepoInputSchema>;
|
|
1170
|
+
|
|
1171
|
+
declare const registerRepoInputSchema: z.ZodObject<{
|
|
1172
|
+
name: z.ZodString;
|
|
1173
|
+
path: z.ZodString;
|
|
1174
|
+
}, z.core.$strip>;
|
|
1175
|
+
|
|
1176
|
+
declare type RemoveWorktreeResponse = z.infer<typeof removeWorktreeResponseSchema>;
|
|
1177
|
+
|
|
1178
|
+
declare const removeWorktreeResponseSchema: z.ZodObject<{
|
|
1179
|
+
removed: z.ZodBoolean;
|
|
1180
|
+
}, z.core.$strip>;
|
|
1181
|
+
|
|
1182
|
+
declare type RenameWorkspaceInput = z.infer<typeof renameWorkspaceInputSchema>;
|
|
1183
|
+
|
|
1184
|
+
declare const renameWorkspaceInputSchema: z.ZodObject<{
|
|
1185
|
+
name: z.ZodString;
|
|
1186
|
+
}, z.core.$strip>;
|
|
1187
|
+
|
|
1188
|
+
declare type Repo = z.infer<typeof repoSchema>;
|
|
1189
|
+
|
|
1190
|
+
declare const repoSchema: z.ZodObject<{
|
|
1191
|
+
id: z.ZodString;
|
|
1192
|
+
name: z.ZodString;
|
|
1193
|
+
path: z.ZodString;
|
|
1194
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
1195
|
+
created_at: z.ZodString;
|
|
1196
|
+
updated_at: z.ZodString;
|
|
1197
|
+
}, z.core.$strip>;
|
|
1198
|
+
|
|
1199
|
+
declare type ResolveSessionIdInput = z.infer<typeof resolveSessionIdInputSchema>;
|
|
1200
|
+
|
|
1201
|
+
declare const resolveSessionIdInputSchema: z.ZodObject<{
|
|
1202
|
+
agent: z.ZodString;
|
|
1203
|
+
agent_session_id: z.ZodString;
|
|
1204
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
}, z.core.$strip>;
|
|
1206
|
+
|
|
1207
|
+
declare type ResolveSessionIdResponse = z.infer<typeof resolveSessionIdResponseSchema>;
|
|
1208
|
+
|
|
1209
|
+
declare const resolveSessionIdResponseSchema: z.ZodObject<{
|
|
1210
|
+
session_id: z.ZodNullable<z.ZodString>;
|
|
1211
|
+
}, z.core.$strip>;
|
|
1212
|
+
|
|
1213
|
+
declare interface ResourceRef {
|
|
1214
|
+
type: string;
|
|
1215
|
+
id: string;
|
|
1216
|
+
projectId?: string;
|
|
1217
|
+
label?: string;
|
|
1218
|
+
icon?: string;
|
|
1219
|
+
extensionId?: string;
|
|
1220
|
+
metadata?: JsonObject;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
declare type RuntimeClient = {
|
|
1224
|
+
provisionBrowserSession: () => Promise<void>;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
declare type Session = z.infer<typeof sessionSchema>;
|
|
1228
|
+
|
|
1229
|
+
declare type SessionAttachment = z.infer<typeof sessionAttachmentSchema>;
|
|
1230
|
+
|
|
1231
|
+
declare const sessionAttachmentSchema: z.ZodObject<{
|
|
1232
|
+
file_id: z.ZodString;
|
|
1233
|
+
name: z.ZodString;
|
|
1234
|
+
mime_type: z.ZodNullable<z.ZodString>;
|
|
1235
|
+
size_bytes: z.ZodNumber;
|
|
1236
|
+
hash: z.ZodNullable<z.ZodString>;
|
|
1237
|
+
url: z.ZodString;
|
|
1238
|
+
created_at: z.ZodString;
|
|
1239
|
+
updated_at: z.ZodString;
|
|
1240
|
+
}, z.core.$strip>;
|
|
1241
|
+
|
|
1242
|
+
declare type SessionClient = {
|
|
1243
|
+
list(projectId: string, input?: ListSessionsInput): Promise<Session[]>;
|
|
1244
|
+
get(sessionId: string): Promise<Session>;
|
|
1245
|
+
uploadAttachment(projectId: string, input: {
|
|
1246
|
+
name: string;
|
|
1247
|
+
data: Uint8Array | ArrayBuffer;
|
|
1248
|
+
mimeType?: string | null;
|
|
1249
|
+
}): Promise<SessionAttachment>;
|
|
1250
|
+
deleteAttachment(projectId: string, fileId: string): Promise<void>;
|
|
1251
|
+
create(input: CreateSessionInput): Promise<Session>;
|
|
1252
|
+
archive(sessionId: string): Promise<void>;
|
|
1253
|
+
followUp(sessionId: string, input: FollowUpInput): Promise<FollowUpResponse>;
|
|
1254
|
+
approve(sessionId: string, input: ApprovalInput): Promise<void>;
|
|
1255
|
+
getConversation(sessionId: string): Promise<SessionConversationResponse>;
|
|
1256
|
+
resolveSessionId(input: ResolveSessionIdInput): Promise<ResolveSessionIdResponse>;
|
|
1257
|
+
updateStatus(sessionId: string, status: string): Promise<Session>;
|
|
1258
|
+
listActivity(sessionId: string, input?: ListSessionActivityInput): Promise<ListSessionActivityResponse>;
|
|
1259
|
+
stream(sessionId: string, onEvent: (event: SseEvent) => void, options?: {
|
|
1260
|
+
signal?: AbortSignal;
|
|
1261
|
+
}): Promise<void>;
|
|
1262
|
+
connectStream(sessionId: string, handlers: SessionStreamHandlers, options?: {
|
|
1263
|
+
attempt?: number;
|
|
1264
|
+
}): SessionStreamConnection;
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
declare type SessionConversationResponse = z.infer<typeof sessionConversationResponseSchema>;
|
|
1268
|
+
|
|
1269
|
+
declare const sessionConversationResponseSchema: z.ZodObject<{
|
|
1270
|
+
session: z.ZodObject<{
|
|
1271
|
+
id: z.ZodString;
|
|
1272
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
1273
|
+
title: z.ZodString;
|
|
1274
|
+
status: z.ZodEnum<{
|
|
1275
|
+
completed: "completed";
|
|
1276
|
+
failed: "failed";
|
|
1277
|
+
in_progress: "in_progress";
|
|
1278
|
+
awaiting_input: "awaiting_input";
|
|
1279
|
+
queued: "queued";
|
|
1280
|
+
cancelled: "cancelled";
|
|
1281
|
+
disconnected: "disconnected";
|
|
1282
|
+
}>;
|
|
1283
|
+
archived: z.ZodBoolean;
|
|
1284
|
+
last_request_started: z.ZodNullable<z.ZodString>;
|
|
1285
|
+
last_request_ended: z.ZodNullable<z.ZodString>;
|
|
1286
|
+
agent: z.ZodNullable<z.ZodString>;
|
|
1287
|
+
last_selected_model: z.ZodNullable<z.ZodString>;
|
|
1288
|
+
agent_session_id: z.ZodNullable<z.ZodString>;
|
|
1289
|
+
session_file_id: z.ZodNullable<z.ZodString>;
|
|
1290
|
+
original_session_id: z.ZodNullable<z.ZodString>;
|
|
1291
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1292
|
+
params_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
1293
|
+
anchors_json: z.ZodArray<z.ZodObject<{
|
|
1294
|
+
type: z.ZodString;
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1301
|
+
}, z.core.$strip>>;
|
|
1302
|
+
created_at: z.ZodString;
|
|
1303
|
+
updated_at: z.ZodString;
|
|
1304
|
+
}, z.core.$strip>;
|
|
1305
|
+
messages: z.ZodArray<z.ZodUnknown>;
|
|
1306
|
+
}, z.core.$strip>;
|
|
1307
|
+
|
|
1308
|
+
export declare type SessionFollowupInput = Omit<FollowUpInput, "template" | "vars">;
|
|
1309
|
+
|
|
1310
|
+
export declare type SessionHookContext = BaseHookContext & {
|
|
1311
|
+
sessionId: string;
|
|
1312
|
+
sessionStatus: "in_progress" | "awaiting_input" | "queued" | "completed" | "failed" | "cancelled" | "disconnected";
|
|
1313
|
+
originalSessionId?: string;
|
|
1314
|
+
workspace?: HookWorkspace;
|
|
1315
|
+
workspaceId?: string;
|
|
1316
|
+
worktreePath?: string;
|
|
1317
|
+
branch?: string;
|
|
1318
|
+
anchors?: HookResourceAnchor[];
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
declare const sessionSchema: z.ZodObject<{
|
|
1322
|
+
id: z.ZodString;
|
|
1323
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
1324
|
+
title: z.ZodString;
|
|
1325
|
+
status: z.ZodEnum<{
|
|
1326
|
+
completed: "completed";
|
|
1327
|
+
failed: "failed";
|
|
1328
|
+
in_progress: "in_progress";
|
|
1329
|
+
awaiting_input: "awaiting_input";
|
|
1330
|
+
queued: "queued";
|
|
1331
|
+
cancelled: "cancelled";
|
|
1332
|
+
disconnected: "disconnected";
|
|
1333
|
+
}>;
|
|
1334
|
+
archived: z.ZodBoolean;
|
|
1335
|
+
last_request_started: z.ZodNullable<z.ZodString>;
|
|
1336
|
+
last_request_ended: z.ZodNullable<z.ZodString>;
|
|
1337
|
+
agent: z.ZodNullable<z.ZodString>;
|
|
1338
|
+
last_selected_model: z.ZodNullable<z.ZodString>;
|
|
1339
|
+
agent_session_id: z.ZodNullable<z.ZodString>;
|
|
1340
|
+
session_file_id: z.ZodNullable<z.ZodString>;
|
|
1341
|
+
original_session_id: z.ZodNullable<z.ZodString>;
|
|
1342
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1343
|
+
params_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
1344
|
+
anchors_json: z.ZodArray<z.ZodObject<{
|
|
1345
|
+
type: z.ZodString;
|
|
1346
|
+
id: z.ZodString;
|
|
1347
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1348
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1349
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1352
|
+
}, z.core.$strip>>;
|
|
1353
|
+
created_at: z.ZodString;
|
|
1354
|
+
updated_at: z.ZodString;
|
|
1355
|
+
}, z.core.$strip>;
|
|
1356
|
+
|
|
1357
|
+
declare type SessionStreamConnection = {
|
|
1358
|
+
close: () => void;
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
declare type SessionStreamHandlers = {
|
|
1362
|
+
onReady?: (data: unknown) => void;
|
|
1363
|
+
onPatch?: (data: unknown) => void;
|
|
1364
|
+
onApprovalRequest?: (data: unknown) => void;
|
|
1365
|
+
onEnd?: (data: unknown) => void;
|
|
1366
|
+
onError?: (error: unknown) => void;
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
declare type Settings = z.infer<typeof settingsSchema>;
|
|
1370
|
+
|
|
1371
|
+
declare type SettingsClient = {
|
|
1372
|
+
get(): Promise<Settings>;
|
|
1373
|
+
update(input: UpdateSettingsInput): Promise<Settings>;
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
declare const settingsSchema: z.ZodObject<{
|
|
1377
|
+
max_concurrent_sessions: z.ZodNullable<z.ZodNumber>;
|
|
1378
|
+
}, z.core.$strip>;
|
|
1379
|
+
|
|
1380
|
+
declare type Skill = z.infer<typeof skillSchema>;
|
|
1381
|
+
|
|
1382
|
+
declare type SkillClient = {
|
|
1383
|
+
list(projectId: string): Promise<Skill[]>;
|
|
1384
|
+
get(projectId: string, skillId: string): Promise<SkillWithContent>;
|
|
1385
|
+
updatePreferences(projectId: string, skillName: string, input: UpdateSkillInput): Promise<Skill>;
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
declare const skillSchema: z.ZodObject<{
|
|
1389
|
+
id: z.ZodString;
|
|
1390
|
+
project_id: z.ZodString;
|
|
1391
|
+
name: z.ZodString;
|
|
1392
|
+
title: z.ZodString;
|
|
1393
|
+
description: z.ZodString;
|
|
1394
|
+
source_kind: z.ZodEnum<{
|
|
1395
|
+
project: "project";
|
|
1396
|
+
extension: "extension";
|
|
1397
|
+
}>;
|
|
1398
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1399
|
+
path: z.ZodString;
|
|
1400
|
+
content: z.ZodString;
|
|
1401
|
+
encoding: z.ZodLiteral<"utf8">;
|
|
1402
|
+
}, z.core.$strip>>;
|
|
1403
|
+
editable: z.ZodBoolean;
|
|
1404
|
+
extension_instance_id: z.ZodOptional<z.ZodString>;
|
|
1405
|
+
extension_id: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
installed_extension_id: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
install_name: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1410
|
+
kind: z.ZodLiteral<"package-asset">;
|
|
1411
|
+
path: z.ZodString;
|
|
1412
|
+
baseUrl: z.ZodString;
|
|
1413
|
+
}, z.core.$strip>>;
|
|
1414
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1415
|
+
created_at: z.ZodString;
|
|
1416
|
+
updated_at: z.ZodString;
|
|
1417
|
+
deleted_at: z.ZodNullable<z.ZodString>;
|
|
1418
|
+
}, z.core.$strip>;
|
|
1419
|
+
|
|
1420
|
+
declare type SkillWithContent = z.infer<typeof skillWithContentSchema>;
|
|
1421
|
+
|
|
1422
|
+
declare const skillWithContentSchema: z.ZodObject<{
|
|
1423
|
+
id: z.ZodString;
|
|
1424
|
+
project_id: z.ZodString;
|
|
1425
|
+
name: z.ZodString;
|
|
1426
|
+
title: z.ZodString;
|
|
1427
|
+
description: z.ZodString;
|
|
1428
|
+
source_kind: z.ZodEnum<{
|
|
1429
|
+
project: "project";
|
|
1430
|
+
extension: "extension";
|
|
1431
|
+
}>;
|
|
1432
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1433
|
+
path: z.ZodString;
|
|
1434
|
+
content: z.ZodString;
|
|
1435
|
+
encoding: z.ZodLiteral<"utf8">;
|
|
1436
|
+
}, z.core.$strip>>;
|
|
1437
|
+
editable: z.ZodBoolean;
|
|
1438
|
+
extension_instance_id: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
extension_id: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
installed_extension_id: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
install_name: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1443
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1444
|
+
kind: z.ZodLiteral<"package-asset">;
|
|
1445
|
+
path: z.ZodString;
|
|
1446
|
+
baseUrl: z.ZodString;
|
|
1447
|
+
}, z.core.$strip>>;
|
|
1448
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1449
|
+
created_at: z.ZodString;
|
|
1450
|
+
updated_at: z.ZodString;
|
|
1451
|
+
deleted_at: z.ZodNullable<z.ZodString>;
|
|
1452
|
+
installed_agents: z.ZodArray<z.ZodString>;
|
|
1453
|
+
outdated_agents: z.ZodArray<z.ZodString>;
|
|
1454
|
+
agent_installations: z.ZodArray<z.ZodObject<{
|
|
1455
|
+
agent_id: z.ZodString;
|
|
1456
|
+
agent_name: z.ZodString;
|
|
1457
|
+
installed_version: z.ZodNullable<z.ZodString>;
|
|
1458
|
+
outdated: z.ZodBoolean;
|
|
1459
|
+
}, z.core.$strip>>;
|
|
1460
|
+
}, z.core.$strip>;
|
|
1461
|
+
|
|
1462
|
+
declare type SseEvent = {
|
|
1463
|
+
event: string;
|
|
1464
|
+
data: string;
|
|
1465
|
+
};
|
|
1466
|
+
|
|
1467
|
+
declare type StartSyncInput = SyncWriterProvider & {
|
|
1468
|
+
onConnected?: () => void;
|
|
1469
|
+
onDisconnected?: () => void;
|
|
1470
|
+
onConnectionLost?: () => void;
|
|
1471
|
+
heartbeatIntervalMs?: number;
|
|
1472
|
+
heartbeatThreshold?: number;
|
|
1473
|
+
reconnectDelayMs?: number;
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1476
|
+
declare type Struct = object;
|
|
1477
|
+
|
|
1478
|
+
declare type SyncClient = {
|
|
1479
|
+
start: (input: StartSyncInput) => SyncConnection;
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
declare type SyncConnection = {
|
|
1483
|
+
close: () => void;
|
|
1484
|
+
connected: boolean;
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
declare type SyncRow = {
|
|
1488
|
+
id: string;
|
|
1489
|
+
[key: string]: unknown;
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1492
|
+
declare type SyncWriter = {
|
|
1493
|
+
truncateAndWrite: (rows: SyncRow[]) => void;
|
|
1494
|
+
upsert: (row: SyncRow) => void;
|
|
1495
|
+
remove: (id: string) => void;
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
declare type SyncWriterProvider = {
|
|
1499
|
+
getWriter: (table: string) => SyncWriter | undefined;
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
declare interface UpdateNotificationInput {
|
|
1503
|
+
priority?: NotificationPriority;
|
|
1504
|
+
snoozedUntil?: string | null;
|
|
1505
|
+
metadata?: JsonObject;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
declare type UpdateSettingsInput = z.infer<typeof updateSettingsInputSchema>;
|
|
1509
|
+
|
|
1510
|
+
declare const updateSettingsInputSchema: z.ZodObject<{
|
|
1511
|
+
max_concurrent_sessions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1512
|
+
}, z.core.$strict>;
|
|
1513
|
+
|
|
1514
|
+
declare type UpdateSkillInput = z.infer<typeof updateSkillInputSchema>;
|
|
1515
|
+
|
|
1516
|
+
declare const updateSkillInputSchema: z.ZodObject<{
|
|
1517
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1518
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1519
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1520
|
+
}, z.core.$strip>;
|
|
1521
|
+
|
|
1522
|
+
declare type UpgradeProjectExtensionResponse = z.infer<typeof upgradeProjectExtensionResponseSchema>;
|
|
1523
|
+
|
|
1524
|
+
declare const upgradeProjectExtensionResponseSchema: z.ZodObject<{
|
|
1525
|
+
changed: z.ZodBoolean;
|
|
1526
|
+
extension: z.ZodObject<{
|
|
1527
|
+
id: z.ZodString;
|
|
1528
|
+
projectId: z.ZodString;
|
|
1529
|
+
extensionId: z.ZodString;
|
|
1530
|
+
installedExtensionId: z.ZodString;
|
|
1531
|
+
installName: z.ZodString;
|
|
1532
|
+
name: z.ZodString;
|
|
1533
|
+
displayName: z.ZodString;
|
|
1534
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1535
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
sourcePath: z.ZodString;
|
|
1537
|
+
scope: z.ZodEnum<{
|
|
1538
|
+
global: "global";
|
|
1539
|
+
repo: "repo";
|
|
1540
|
+
}>;
|
|
1541
|
+
status: z.ZodEnum<{
|
|
1542
|
+
error: "error";
|
|
1543
|
+
pending: "pending";
|
|
1544
|
+
disabled: "disabled";
|
|
1545
|
+
loaded: "loaded";
|
|
1546
|
+
missing: "missing";
|
|
1547
|
+
}>;
|
|
1548
|
+
lastLoadedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1549
|
+
lastError: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1550
|
+
enabled: z.ZodBoolean;
|
|
1551
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1552
|
+
canUpgrade: z.ZodBoolean;
|
|
1553
|
+
updateAvailable: z.ZodBoolean;
|
|
1554
|
+
}, z.core.$strip>;
|
|
1555
|
+
}, z.core.$strip>;
|
|
1556
|
+
|
|
1557
|
+
declare type Workspace = Workspace_2;
|
|
1558
|
+
|
|
1559
|
+
declare type Workspace_2 = z.infer<typeof workspaceSchema>;
|
|
1560
|
+
|
|
1561
|
+
declare interface WorkspaceCapabilities {
|
|
1562
|
+
files: "none" | "read" | "write";
|
|
1563
|
+
diff: boolean;
|
|
1564
|
+
merge: boolean;
|
|
1565
|
+
rebase: boolean;
|
|
1566
|
+
archive: boolean;
|
|
1567
|
+
delete: boolean;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
declare type WorkspaceClient = {
|
|
1571
|
+
list(projectId: string): Promise<WorkspaceListItem[]>;
|
|
1572
|
+
getByShorthand(projectId: string, shorthand: string): Promise<Workspace>;
|
|
1573
|
+
create(input: CreateWorkspaceInput): Promise<Workspace>;
|
|
1574
|
+
rename(workspaceId: string, input: RenameWorkspaceInput): Promise<Workspace>;
|
|
1575
|
+
listActivity(workspaceId: string, input?: ListWorkspaceActivityInput): Promise<ListWorkspaceActivityResponse>;
|
|
1576
|
+
listFiles(workspaceId: string, input?: ListWorkspaceFilesInput): Promise<WorkspaceFilesResponse>;
|
|
1577
|
+
createDirectory(workspaceId: string, path: string): Promise<WorkspaceFileEntry>;
|
|
1578
|
+
createFile(workspaceId: string, path: string, input: WriteWorkspaceFileInput): Promise<WorkspaceFileContent>;
|
|
1579
|
+
readFile(workspaceId: string, path: string): Promise<WorkspaceFileContent>;
|
|
1580
|
+
writeFile(workspaceId: string, path: string, input: WriteWorkspaceFileInput): Promise<WorkspaceFileContent>;
|
|
1581
|
+
moveEntry(workspaceId: string, path: string, destinationPath: string): Promise<void>;
|
|
1582
|
+
deleteEntry(workspaceId: string, path: string): Promise<void>;
|
|
1583
|
+
removeWorktree(workspaceId: string): Promise<RemoveWorktreeResponse>;
|
|
1584
|
+
delete(workspaceId: string): Promise<void>;
|
|
1585
|
+
};
|
|
1586
|
+
|
|
1587
|
+
declare type WorkspaceFileContent = z.infer<typeof workspaceFileContentSchema>;
|
|
1588
|
+
|
|
1589
|
+
declare const workspaceFileContentSchema: z.ZodObject<{
|
|
1590
|
+
workspace_id: z.ZodString;
|
|
1591
|
+
path: z.ZodString;
|
|
1592
|
+
file_name: z.ZodString;
|
|
1593
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
size: z.ZodNumber;
|
|
1595
|
+
encoding: z.ZodEnum<{
|
|
1596
|
+
utf8: "utf8";
|
|
1597
|
+
base64: "base64";
|
|
1598
|
+
}>;
|
|
1599
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1600
|
+
data_url: z.ZodOptional<z.ZodString>;
|
|
1601
|
+
editable: z.ZodBoolean;
|
|
1602
|
+
}, z.core.$strip>;
|
|
1603
|
+
|
|
1604
|
+
declare type WorkspaceFileEntry = z.infer<typeof workspaceFileEntrySchema>;
|
|
1605
|
+
|
|
1606
|
+
declare const workspaceFileEntrySchema: z.ZodObject<{
|
|
1607
|
+
path: z.ZodString;
|
|
1608
|
+
name: z.ZodString;
|
|
1609
|
+
type: z.ZodEnum<{
|
|
1610
|
+
file: "file";
|
|
1611
|
+
directory: "directory";
|
|
1612
|
+
}>;
|
|
1613
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1614
|
+
modified_at: z.ZodOptional<z.ZodString>;
|
|
1615
|
+
}, z.core.$strip>;
|
|
1616
|
+
|
|
1617
|
+
declare type WorkspaceFilesResponse = z.infer<typeof workspaceFilesResponseSchema>;
|
|
1618
|
+
|
|
1619
|
+
declare const workspaceFilesResponseSchema: z.ZodObject<{
|
|
1620
|
+
workspace_id: z.ZodString;
|
|
1621
|
+
path: z.ZodString;
|
|
1622
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1623
|
+
path: z.ZodString;
|
|
1624
|
+
name: z.ZodString;
|
|
1625
|
+
type: z.ZodEnum<{
|
|
1626
|
+
file: "file";
|
|
1627
|
+
directory: "directory";
|
|
1628
|
+
}>;
|
|
1629
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1630
|
+
modified_at: z.ZodOptional<z.ZodString>;
|
|
1631
|
+
}, z.core.$strip>>;
|
|
1632
|
+
truncated: z.ZodBoolean;
|
|
1633
|
+
}, z.core.$strip>;
|
|
1634
|
+
|
|
1635
|
+
declare type WorkspaceListItem = WorkspaceListItem_2;
|
|
1636
|
+
|
|
1637
|
+
declare type WorkspaceListItem_2 = z.infer<typeof workspaceListItemSchema>;
|
|
1638
|
+
|
|
1639
|
+
declare const workspaceListItemSchema: z.ZodObject<{
|
|
1640
|
+
id: z.ZodString;
|
|
1641
|
+
project_id: z.ZodString;
|
|
1642
|
+
name: z.ZodString;
|
|
1643
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1644
|
+
worktree_path: z.ZodNullable<z.ZodString>;
|
|
1645
|
+
provider_id: z.ZodString;
|
|
1646
|
+
provider_params_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1647
|
+
provider_ref_json: z.ZodNullable<z.ZodObject<{
|
|
1648
|
+
version: z.ZodNumber;
|
|
1649
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1650
|
+
}, z.core.$strip>>;
|
|
1651
|
+
provider_state: z.ZodType<WorkspaceProviderState, unknown, z.core.$ZodTypeInternals<WorkspaceProviderState, unknown>>;
|
|
1652
|
+
execution_kind: z.ZodEnum<{
|
|
1653
|
+
local: "local";
|
|
1654
|
+
remote: "remote";
|
|
1655
|
+
}>;
|
|
1656
|
+
provider_operation_id: z.ZodNullable<z.ZodString>;
|
|
1657
|
+
provider_operation_kind: z.ZodNullable<z.ZodEnum<{
|
|
1658
|
+
delete: "delete";
|
|
1659
|
+
cancel: "cancel";
|
|
1660
|
+
archive: "archive";
|
|
1661
|
+
create: "create";
|
|
1662
|
+
}>>;
|
|
1663
|
+
provider_error_json: z.ZodNullable<z.ZodObject<{
|
|
1664
|
+
code: z.ZodString;
|
|
1665
|
+
message: z.ZodString;
|
|
1666
|
+
retryable: z.ZodBoolean;
|
|
1667
|
+
occurred_at: z.ZodString;
|
|
1668
|
+
}, z.core.$strip>>;
|
|
1669
|
+
provider_capabilities_json: z.ZodType<WorkspaceCapabilities, unknown, z.core.$ZodTypeInternals<WorkspaceCapabilities, unknown>>;
|
|
1670
|
+
display_path: z.ZodNullable<z.ZodString>;
|
|
1671
|
+
is_default: z.ZodBoolean;
|
|
1672
|
+
archived: z.ZodBoolean;
|
|
1673
|
+
workspace_shorthand: z.ZodString;
|
|
1674
|
+
startup_log_file_id: z.ZodNullable<z.ZodString>;
|
|
1675
|
+
anchors_json: z.ZodArray<z.ZodObject<{
|
|
1676
|
+
type: z.ZodString;
|
|
1677
|
+
id: z.ZodString;
|
|
1678
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1683
|
+
}, z.core.$strip>>;
|
|
1684
|
+
created_at: z.ZodString;
|
|
1685
|
+
updated_at: z.ZodString;
|
|
1686
|
+
deleted_at: z.ZodNullable<z.ZodString>;
|
|
1687
|
+
}, z.core.$strip>;
|
|
1688
|
+
|
|
1689
|
+
declare type WorkspaceProviderState = "provisioning" | "ready" | "failed" | "cancelled" | "archiving" | "archived" | "deleting" | "provider_missing";
|
|
1690
|
+
|
|
1691
|
+
declare const workspaceSchema: z.ZodObject<{
|
|
1692
|
+
id: z.ZodString;
|
|
1693
|
+
project_id: z.ZodString;
|
|
1694
|
+
name: z.ZodString;
|
|
1695
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1696
|
+
worktree_path: z.ZodNullable<z.ZodString>;
|
|
1697
|
+
provider_id: z.ZodString;
|
|
1698
|
+
provider_params_json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1699
|
+
provider_ref_json: z.ZodNullable<z.ZodObject<{
|
|
1700
|
+
version: z.ZodNumber;
|
|
1701
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1702
|
+
}, z.core.$strip>>;
|
|
1703
|
+
provider_state: z.ZodType<WorkspaceProviderState, unknown, z.core.$ZodTypeInternals<WorkspaceProviderState, unknown>>;
|
|
1704
|
+
execution_kind: z.ZodEnum<{
|
|
1705
|
+
local: "local";
|
|
1706
|
+
remote: "remote";
|
|
1707
|
+
}>;
|
|
1708
|
+
provider_operation_id: z.ZodNullable<z.ZodString>;
|
|
1709
|
+
provider_operation_kind: z.ZodNullable<z.ZodEnum<{
|
|
1710
|
+
delete: "delete";
|
|
1711
|
+
cancel: "cancel";
|
|
1712
|
+
archive: "archive";
|
|
1713
|
+
create: "create";
|
|
1714
|
+
}>>;
|
|
1715
|
+
provider_error_json: z.ZodNullable<z.ZodObject<{
|
|
1716
|
+
code: z.ZodString;
|
|
1717
|
+
message: z.ZodString;
|
|
1718
|
+
retryable: z.ZodBoolean;
|
|
1719
|
+
occurred_at: z.ZodString;
|
|
1720
|
+
}, z.core.$strip>>;
|
|
1721
|
+
provider_capabilities_json: z.ZodType<WorkspaceCapabilities, unknown, z.core.$ZodTypeInternals<WorkspaceCapabilities, unknown>>;
|
|
1722
|
+
display_path: z.ZodNullable<z.ZodString>;
|
|
1723
|
+
is_default: z.ZodBoolean;
|
|
1724
|
+
archived: z.ZodBoolean;
|
|
1725
|
+
workspace_shorthand: z.ZodString;
|
|
1726
|
+
startup_log_file_id: z.ZodNullable<z.ZodString>;
|
|
1727
|
+
anchors_json: z.ZodArray<z.ZodObject<{
|
|
1728
|
+
type: z.ZodString;
|
|
1729
|
+
id: z.ZodString;
|
|
1730
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1733
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1735
|
+
}, z.core.$strip>>;
|
|
1736
|
+
created_at: z.ZodString;
|
|
1737
|
+
updated_at: z.ZodString;
|
|
1738
|
+
deleted_at: z.ZodNullable<z.ZodString>;
|
|
1739
|
+
}, z.core.$strip>;
|
|
1740
|
+
|
|
1741
|
+
export declare type WorktreeContext = BaseHookContext & {
|
|
1742
|
+
repoPath: string;
|
|
1743
|
+
worktreePath: string;
|
|
1744
|
+
branch: string;
|
|
1745
|
+
workspace: string;
|
|
1746
|
+
workspaceId: string;
|
|
1747
|
+
anchors?: HookResourceAnchor[];
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
export declare type WorktreeCreateContext = BaseHookContext & {
|
|
1751
|
+
repoPath: string;
|
|
1752
|
+
worktreePath: string;
|
|
1753
|
+
branch: string;
|
|
1754
|
+
workspace: string;
|
|
1755
|
+
base: string;
|
|
1756
|
+
anchors?: HookResourceAnchor[];
|
|
1757
|
+
};
|
|
1758
|
+
|
|
1759
|
+
export declare type WorktreeRemoveContext = {
|
|
1760
|
+
repoPath: string;
|
|
1761
|
+
worktreePath: string | null;
|
|
1762
|
+
branch: string;
|
|
1763
|
+
workspace: string;
|
|
1764
|
+
workspaceId: string;
|
|
1765
|
+
anchors?: HookResourceAnchor[];
|
|
1766
|
+
projectId: string;
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
declare type WriteWorkspaceFileInput = z.infer<typeof writeWorkspaceFileInputSchema>;
|
|
1770
|
+
|
|
1771
|
+
declare const writeWorkspaceFileInputSchema: z.ZodObject<{
|
|
1772
|
+
content: z.ZodString;
|
|
1773
|
+
}, z.core.$strip>;
|
|
1774
|
+
|
|
1775
|
+
export { }
|