agor-live 0.11.3 → 0.11.5
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.
|
@@ -11,7 +11,12 @@ import { z } from 'zod';
|
|
|
11
11
|
/**
|
|
12
12
|
* Tool types supported by the prompt command
|
|
13
13
|
*/
|
|
14
|
-
export declare const ToolTypeSchema: z.ZodEnum<
|
|
14
|
+
export declare const ToolTypeSchema: z.ZodEnum<{
|
|
15
|
+
"claude-code": "claude-code";
|
|
16
|
+
gemini: "gemini";
|
|
17
|
+
codex: "codex";
|
|
18
|
+
opencode: "opencode";
|
|
19
|
+
}>;
|
|
15
20
|
export type ToolType = z.infer<typeof ToolTypeSchema>;
|
|
16
21
|
/**
|
|
17
22
|
* Permission modes for agent execution
|
|
@@ -23,7 +28,19 @@ export type ToolType = z.infer<typeof ToolTypeSchema>;
|
|
|
23
28
|
* Gemini: default, autoEdit, yolo
|
|
24
29
|
* Codex: ask, auto, on-failure, allow-all
|
|
25
30
|
*/
|
|
26
|
-
export declare const PermissionModeSchema: z.ZodEnum<
|
|
31
|
+
export declare const PermissionModeSchema: z.ZodEnum<{
|
|
32
|
+
default: "default";
|
|
33
|
+
acceptEdits: "acceptEdits";
|
|
34
|
+
bypassPermissions: "bypassPermissions";
|
|
35
|
+
plan: "plan";
|
|
36
|
+
dontAsk: "dontAsk";
|
|
37
|
+
autoEdit: "autoEdit";
|
|
38
|
+
yolo: "yolo";
|
|
39
|
+
ask: "ask";
|
|
40
|
+
auto: "auto";
|
|
41
|
+
"on-failure": "on-failure";
|
|
42
|
+
"allow-all": "allow-all";
|
|
43
|
+
}>;
|
|
27
44
|
export type PermissionMode = z.infer<typeof PermissionModeSchema>;
|
|
28
45
|
/**
|
|
29
46
|
* Base payload - common fields for all commands
|
|
@@ -32,25 +49,11 @@ export type PermissionMode = z.infer<typeof PermissionModeSchema>;
|
|
|
32
49
|
* by the daemon using buildSpawnArgs(). The executor runs directly as the target user.
|
|
33
50
|
*/
|
|
34
51
|
export declare const BasePayloadSchema: z.ZodObject<{
|
|
35
|
-
/** Executor command identifier */
|
|
36
52
|
command: z.ZodString;
|
|
37
|
-
/** Daemon URL for Feathers connection */
|
|
38
53
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
39
|
-
/** Environment variables to inject */
|
|
40
54
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
41
|
-
/** Data home directory override */
|
|
42
55
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
43
|
-
},
|
|
44
|
-
command: string;
|
|
45
|
-
daemonUrl?: string | undefined;
|
|
46
|
-
env?: Record<string, string> | undefined;
|
|
47
|
-
dataHome?: string | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
command: string;
|
|
50
|
-
daemonUrl?: string | undefined;
|
|
51
|
-
env?: Record<string, string> | undefined;
|
|
52
|
-
dataHome?: string | undefined;
|
|
53
|
-
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
54
57
|
/**
|
|
55
58
|
* Prompt execution payload - execute agent SDK
|
|
56
59
|
*/
|
|
@@ -58,60 +61,34 @@ export declare const PromptPayloadSchema: z.ZodObject<{
|
|
|
58
61
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
59
62
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
60
63
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
61
|
-
} & {
|
|
62
64
|
command: z.ZodLiteral<"prompt">;
|
|
63
65
|
sessionToken: z.ZodString;
|
|
64
66
|
params: z.ZodObject<{
|
|
65
67
|
sessionId: z.ZodString;
|
|
66
68
|
taskId: z.ZodString;
|
|
67
69
|
prompt: z.ZodString;
|
|
68
|
-
tool: z.ZodEnum<
|
|
69
|
-
|
|
70
|
+
tool: z.ZodEnum<{
|
|
71
|
+
"claude-code": "claude-code";
|
|
72
|
+
gemini: "gemini";
|
|
73
|
+
codex: "codex";
|
|
74
|
+
opencode: "opencode";
|
|
75
|
+
}>;
|
|
76
|
+
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
default: "default";
|
|
78
|
+
acceptEdits: "acceptEdits";
|
|
79
|
+
bypassPermissions: "bypassPermissions";
|
|
80
|
+
plan: "plan";
|
|
81
|
+
dontAsk: "dontAsk";
|
|
82
|
+
autoEdit: "autoEdit";
|
|
83
|
+
yolo: "yolo";
|
|
84
|
+
ask: "ask";
|
|
85
|
+
auto: "auto";
|
|
86
|
+
"on-failure": "on-failure";
|
|
87
|
+
"allow-all": "allow-all";
|
|
88
|
+
}>>;
|
|
70
89
|
cwd: z.ZodString;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
sessionId: string;
|
|
74
|
-
taskId: string;
|
|
75
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
76
|
-
cwd: string;
|
|
77
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
prompt: string;
|
|
80
|
-
sessionId: string;
|
|
81
|
-
taskId: string;
|
|
82
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
83
|
-
cwd: string;
|
|
84
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
85
|
-
}>;
|
|
86
|
-
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
params: {
|
|
88
|
-
prompt: string;
|
|
89
|
-
sessionId: string;
|
|
90
|
-
taskId: string;
|
|
91
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
92
|
-
cwd: string;
|
|
93
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
94
|
-
};
|
|
95
|
-
command: "prompt";
|
|
96
|
-
sessionToken: string;
|
|
97
|
-
daemonUrl?: string | undefined;
|
|
98
|
-
env?: Record<string, string> | undefined;
|
|
99
|
-
dataHome?: string | undefined;
|
|
100
|
-
}, {
|
|
101
|
-
params: {
|
|
102
|
-
prompt: string;
|
|
103
|
-
sessionId: string;
|
|
104
|
-
taskId: string;
|
|
105
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
106
|
-
cwd: string;
|
|
107
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
108
|
-
};
|
|
109
|
-
command: "prompt";
|
|
110
|
-
sessionToken: string;
|
|
111
|
-
daemonUrl?: string | undefined;
|
|
112
|
-
env?: Record<string, string> | undefined;
|
|
113
|
-
dataHome?: string | undefined;
|
|
114
|
-
}>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
}, z.core.$strip>;
|
|
115
92
|
export type PromptPayload = z.infer<typeof PromptPayloadSchema>;
|
|
116
93
|
/**
|
|
117
94
|
* Git clone payload - clone repository with full Unix setup
|
|
@@ -125,84 +102,20 @@ export declare const GitClonePayloadSchema: z.ZodObject<{
|
|
|
125
102
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
126
103
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
127
104
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
128
|
-
} & {
|
|
129
105
|
command: z.ZodLiteral<"git.clone">;
|
|
130
106
|
sessionToken: z.ZodString;
|
|
131
107
|
params: z.ZodObject<{
|
|
132
|
-
|
|
133
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
134
|
-
/** Output path for the repository (optional, defaults to AGOR_DATA_HOME/repos/) */
|
|
108
|
+
url: z.ZodString;
|
|
135
109
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
136
|
-
/** Branch to checkout (optional) */
|
|
137
110
|
branch: z.ZodOptional<z.ZodString>;
|
|
138
|
-
/** Clone as bare repository */
|
|
139
111
|
bare: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
/** Slug for the repo (computed from URL if not provided) */
|
|
141
112
|
slug: z.ZodOptional<z.ZodString>;
|
|
142
|
-
/** Create DB record after clone (default: true) */
|
|
143
113
|
createDbRecord: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
144
|
-
/** Initialize Unix group for repo isolation (default: false, requires RBAC enabled) */
|
|
145
114
|
initUnixGroup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
146
|
-
/** Daemon Unix user to add to the repo group (for daemon access) */
|
|
147
115
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
148
|
-
/** Creator's Unix username to add to the repo group (for owner access) */
|
|
149
116
|
creatorUnixUsername: z.ZodOptional<z.ZodString>;
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
createDbRecord: boolean;
|
|
153
|
-
initUnixGroup: boolean;
|
|
154
|
-
outputPath?: string | undefined;
|
|
155
|
-
branch?: string | undefined;
|
|
156
|
-
bare?: boolean | undefined;
|
|
157
|
-
slug?: string | undefined;
|
|
158
|
-
daemonUser?: string | undefined;
|
|
159
|
-
creatorUnixUsername?: string | undefined;
|
|
160
|
-
}, {
|
|
161
|
-
url: string;
|
|
162
|
-
outputPath?: string | undefined;
|
|
163
|
-
branch?: string | undefined;
|
|
164
|
-
bare?: boolean | undefined;
|
|
165
|
-
slug?: string | undefined;
|
|
166
|
-
createDbRecord?: boolean | undefined;
|
|
167
|
-
initUnixGroup?: boolean | undefined;
|
|
168
|
-
daemonUser?: string | undefined;
|
|
169
|
-
creatorUnixUsername?: string | undefined;
|
|
170
|
-
}>;
|
|
171
|
-
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
params: {
|
|
173
|
-
url: string;
|
|
174
|
-
createDbRecord: boolean;
|
|
175
|
-
initUnixGroup: boolean;
|
|
176
|
-
outputPath?: string | undefined;
|
|
177
|
-
branch?: string | undefined;
|
|
178
|
-
bare?: boolean | undefined;
|
|
179
|
-
slug?: string | undefined;
|
|
180
|
-
daemonUser?: string | undefined;
|
|
181
|
-
creatorUnixUsername?: string | undefined;
|
|
182
|
-
};
|
|
183
|
-
command: "git.clone";
|
|
184
|
-
sessionToken: string;
|
|
185
|
-
daemonUrl?: string | undefined;
|
|
186
|
-
env?: Record<string, string> | undefined;
|
|
187
|
-
dataHome?: string | undefined;
|
|
188
|
-
}, {
|
|
189
|
-
params: {
|
|
190
|
-
url: string;
|
|
191
|
-
outputPath?: string | undefined;
|
|
192
|
-
branch?: string | undefined;
|
|
193
|
-
bare?: boolean | undefined;
|
|
194
|
-
slug?: string | undefined;
|
|
195
|
-
createDbRecord?: boolean | undefined;
|
|
196
|
-
initUnixGroup?: boolean | undefined;
|
|
197
|
-
daemonUser?: string | undefined;
|
|
198
|
-
creatorUnixUsername?: string | undefined;
|
|
199
|
-
};
|
|
200
|
-
command: "git.clone";
|
|
201
|
-
sessionToken: string;
|
|
202
|
-
daemonUrl?: string | undefined;
|
|
203
|
-
env?: Record<string, string> | undefined;
|
|
204
|
-
dataHome?: string | undefined;
|
|
205
|
-
}>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>;
|
|
206
119
|
export type GitClonePayload = z.infer<typeof GitClonePayloadSchema>;
|
|
207
120
|
/**
|
|
208
121
|
* Git worktree add payload - create worktree filesystem
|
|
@@ -217,108 +130,28 @@ export declare const GitWorktreeAddPayloadSchema: z.ZodObject<{
|
|
|
217
130
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
218
131
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
219
132
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
220
|
-
} & {
|
|
221
133
|
command: z.ZodLiteral<"git.worktree.add">;
|
|
222
134
|
sessionToken: z.ZodString;
|
|
223
135
|
params: z.ZodObject<{
|
|
224
|
-
/** Worktree ID (UUID) - DB record already exists with filesystem_status: 'creating' */
|
|
225
136
|
worktreeId: z.ZodString;
|
|
226
|
-
/** Repo ID (UUID) */
|
|
227
137
|
repoId: z.ZodString;
|
|
228
|
-
/** Path to the repository */
|
|
229
138
|
repoPath: z.ZodString;
|
|
230
|
-
/** Name for the worktree */
|
|
231
139
|
worktreeName: z.ZodString;
|
|
232
|
-
/** Path where worktree will be created */
|
|
233
140
|
worktreePath: z.ZodString;
|
|
234
|
-
/** Branch to checkout or create */
|
|
235
141
|
branch: z.ZodOptional<z.ZodString>;
|
|
236
|
-
/** Source branch when creating new branch */
|
|
237
142
|
sourceBranch: z.ZodOptional<z.ZodString>;
|
|
238
|
-
/** Create new branch */
|
|
239
143
|
createBranch: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
-
/** Initialize Unix group for worktree isolation (default: false, requires RBAC enabled) */
|
|
241
144
|
initUnixGroup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
145
|
+
othersAccess: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
none: "none";
|
|
147
|
+
read: "read";
|
|
148
|
+
write: "write";
|
|
149
|
+
}>>>;
|
|
245
150
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
246
|
-
/** Repo Unix group name (for fixing .git/worktrees permissions) */
|
|
247
151
|
repoUnixGroup: z.ZodOptional<z.ZodString>;
|
|
248
|
-
/** Creator's Unix username to add to the worktree group (initial owner) */
|
|
249
152
|
creatorUnixUsername: z.ZodOptional<z.ZodString>;
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
worktreeId: string;
|
|
253
|
-
repoId: string;
|
|
254
|
-
repoPath: string;
|
|
255
|
-
worktreeName: string;
|
|
256
|
-
worktreePath: string;
|
|
257
|
-
othersAccess: "none" | "read" | "write";
|
|
258
|
-
branch?: string | undefined;
|
|
259
|
-
daemonUser?: string | undefined;
|
|
260
|
-
creatorUnixUsername?: string | undefined;
|
|
261
|
-
sourceBranch?: string | undefined;
|
|
262
|
-
createBranch?: boolean | undefined;
|
|
263
|
-
repoUnixGroup?: string | undefined;
|
|
264
|
-
}, {
|
|
265
|
-
worktreeId: string;
|
|
266
|
-
repoId: string;
|
|
267
|
-
repoPath: string;
|
|
268
|
-
worktreeName: string;
|
|
269
|
-
worktreePath: string;
|
|
270
|
-
branch?: string | undefined;
|
|
271
|
-
initUnixGroup?: boolean | undefined;
|
|
272
|
-
daemonUser?: string | undefined;
|
|
273
|
-
creatorUnixUsername?: string | undefined;
|
|
274
|
-
sourceBranch?: string | undefined;
|
|
275
|
-
createBranch?: boolean | undefined;
|
|
276
|
-
othersAccess?: "none" | "read" | "write" | undefined;
|
|
277
|
-
repoUnixGroup?: string | undefined;
|
|
278
|
-
}>;
|
|
279
|
-
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
params: {
|
|
281
|
-
initUnixGroup: boolean;
|
|
282
|
-
worktreeId: string;
|
|
283
|
-
repoId: string;
|
|
284
|
-
repoPath: string;
|
|
285
|
-
worktreeName: string;
|
|
286
|
-
worktreePath: string;
|
|
287
|
-
othersAccess: "none" | "read" | "write";
|
|
288
|
-
branch?: string | undefined;
|
|
289
|
-
daemonUser?: string | undefined;
|
|
290
|
-
creatorUnixUsername?: string | undefined;
|
|
291
|
-
sourceBranch?: string | undefined;
|
|
292
|
-
createBranch?: boolean | undefined;
|
|
293
|
-
repoUnixGroup?: string | undefined;
|
|
294
|
-
};
|
|
295
|
-
command: "git.worktree.add";
|
|
296
|
-
sessionToken: string;
|
|
297
|
-
daemonUrl?: string | undefined;
|
|
298
|
-
env?: Record<string, string> | undefined;
|
|
299
|
-
dataHome?: string | undefined;
|
|
300
|
-
}, {
|
|
301
|
-
params: {
|
|
302
|
-
worktreeId: string;
|
|
303
|
-
repoId: string;
|
|
304
|
-
repoPath: string;
|
|
305
|
-
worktreeName: string;
|
|
306
|
-
worktreePath: string;
|
|
307
|
-
branch?: string | undefined;
|
|
308
|
-
initUnixGroup?: boolean | undefined;
|
|
309
|
-
daemonUser?: string | undefined;
|
|
310
|
-
creatorUnixUsername?: string | undefined;
|
|
311
|
-
sourceBranch?: string | undefined;
|
|
312
|
-
createBranch?: boolean | undefined;
|
|
313
|
-
othersAccess?: "none" | "read" | "write" | undefined;
|
|
314
|
-
repoUnixGroup?: string | undefined;
|
|
315
|
-
};
|
|
316
|
-
command: "git.worktree.add";
|
|
317
|
-
sessionToken: string;
|
|
318
|
-
daemonUrl?: string | undefined;
|
|
319
|
-
env?: Record<string, string> | undefined;
|
|
320
|
-
dataHome?: string | undefined;
|
|
321
|
-
}>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
}, z.core.$strip>;
|
|
322
155
|
export type GitWorktreeAddPayload = z.infer<typeof GitWorktreeAddPayloadSchema>;
|
|
323
156
|
/**
|
|
324
157
|
* Git worktree remove payload - remove worktree and cleanup Unix resources
|
|
@@ -332,54 +165,15 @@ export declare const GitWorktreeRemovePayloadSchema: z.ZodObject<{
|
|
|
332
165
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
333
166
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
334
167
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
335
|
-
} & {
|
|
336
168
|
command: z.ZodLiteral<"git.worktree.remove">;
|
|
337
169
|
sessionToken: z.ZodString;
|
|
338
170
|
params: z.ZodObject<{
|
|
339
|
-
/** Worktree ID (UUID) - required for DB record deletion */
|
|
340
171
|
worktreeId: z.ZodString;
|
|
341
|
-
/** Path to the worktree to remove */
|
|
342
172
|
worktreePath: z.ZodString;
|
|
343
|
-
/** Force removal even if dirty */
|
|
344
173
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
-
/** Delete DB record after removal (default: true) */
|
|
346
174
|
deleteDbRecord: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
347
|
-
},
|
|
348
|
-
|
|
349
|
-
worktreePath: string;
|
|
350
|
-
deleteDbRecord: boolean;
|
|
351
|
-
force?: boolean | undefined;
|
|
352
|
-
}, {
|
|
353
|
-
worktreeId: string;
|
|
354
|
-
worktreePath: string;
|
|
355
|
-
force?: boolean | undefined;
|
|
356
|
-
deleteDbRecord?: boolean | undefined;
|
|
357
|
-
}>;
|
|
358
|
-
}, "strip", z.ZodTypeAny, {
|
|
359
|
-
params: {
|
|
360
|
-
worktreeId: string;
|
|
361
|
-
worktreePath: string;
|
|
362
|
-
deleteDbRecord: boolean;
|
|
363
|
-
force?: boolean | undefined;
|
|
364
|
-
};
|
|
365
|
-
command: "git.worktree.remove";
|
|
366
|
-
sessionToken: string;
|
|
367
|
-
daemonUrl?: string | undefined;
|
|
368
|
-
env?: Record<string, string> | undefined;
|
|
369
|
-
dataHome?: string | undefined;
|
|
370
|
-
}, {
|
|
371
|
-
params: {
|
|
372
|
-
worktreeId: string;
|
|
373
|
-
worktreePath: string;
|
|
374
|
-
force?: boolean | undefined;
|
|
375
|
-
deleteDbRecord?: boolean | undefined;
|
|
376
|
-
};
|
|
377
|
-
command: "git.worktree.remove";
|
|
378
|
-
sessionToken: string;
|
|
379
|
-
daemonUrl?: string | undefined;
|
|
380
|
-
env?: Record<string, string> | undefined;
|
|
381
|
-
dataHome?: string | undefined;
|
|
382
|
-
}>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
}, z.core.$strip>;
|
|
383
177
|
export type GitWorktreeRemovePayload = z.infer<typeof GitWorktreeRemovePayloadSchema>;
|
|
384
178
|
/**
|
|
385
179
|
* Git worktree clean payload - remove untracked files and build artifacts
|
|
@@ -397,36 +191,12 @@ export declare const GitWorktreeCleanPayloadSchema: z.ZodObject<{
|
|
|
397
191
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
398
192
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
399
193
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
400
|
-
} & {
|
|
401
194
|
command: z.ZodLiteral<"git.worktree.clean">;
|
|
402
195
|
sessionToken: z.ZodString;
|
|
403
196
|
params: z.ZodObject<{
|
|
404
|
-
/** Path to the worktree to clean */
|
|
405
197
|
worktreePath: z.ZodString;
|
|
406
|
-
},
|
|
407
|
-
|
|
408
|
-
}, {
|
|
409
|
-
worktreePath: string;
|
|
410
|
-
}>;
|
|
411
|
-
}, "strip", z.ZodTypeAny, {
|
|
412
|
-
params: {
|
|
413
|
-
worktreePath: string;
|
|
414
|
-
};
|
|
415
|
-
command: "git.worktree.clean";
|
|
416
|
-
sessionToken: string;
|
|
417
|
-
daemonUrl?: string | undefined;
|
|
418
|
-
env?: Record<string, string> | undefined;
|
|
419
|
-
dataHome?: string | undefined;
|
|
420
|
-
}, {
|
|
421
|
-
params: {
|
|
422
|
-
worktreePath: string;
|
|
423
|
-
};
|
|
424
|
-
command: "git.worktree.clean";
|
|
425
|
-
sessionToken: string;
|
|
426
|
-
daemonUrl?: string | undefined;
|
|
427
|
-
env?: Record<string, string> | undefined;
|
|
428
|
-
dataHome?: string | undefined;
|
|
429
|
-
}>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
}, z.core.$strip>;
|
|
430
200
|
export type GitWorktreeCleanPayload = z.infer<typeof GitWorktreeCleanPayloadSchema>;
|
|
431
201
|
/**
|
|
432
202
|
* Unix sync-worktree payload - Sync all Unix state for a worktree
|
|
@@ -446,48 +216,14 @@ export declare const UnixSyncWorktreePayloadSchema: z.ZodObject<{
|
|
|
446
216
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
447
217
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
448
218
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
449
|
-
} & {
|
|
450
219
|
command: z.ZodLiteral<"unix.sync-worktree">;
|
|
451
220
|
sessionToken: z.ZodString;
|
|
452
221
|
params: z.ZodObject<{
|
|
453
|
-
/** Worktree ID to sync */
|
|
454
222
|
worktreeId: z.ZodString;
|
|
455
|
-
/** Daemon Unix user (added to all groups for daemon access) */
|
|
456
223
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
457
|
-
/** If true, delete the group instead of syncing (for worktree removal) */
|
|
458
224
|
delete: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
daemonUser?: string | undefined;
|
|
462
|
-
delete?: boolean | undefined;
|
|
463
|
-
}, {
|
|
464
|
-
worktreeId: string;
|
|
465
|
-
daemonUser?: string | undefined;
|
|
466
|
-
delete?: boolean | undefined;
|
|
467
|
-
}>;
|
|
468
|
-
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
params: {
|
|
470
|
-
worktreeId: string;
|
|
471
|
-
daemonUser?: string | undefined;
|
|
472
|
-
delete?: boolean | undefined;
|
|
473
|
-
};
|
|
474
|
-
command: "unix.sync-worktree";
|
|
475
|
-
sessionToken: string;
|
|
476
|
-
daemonUrl?: string | undefined;
|
|
477
|
-
env?: Record<string, string> | undefined;
|
|
478
|
-
dataHome?: string | undefined;
|
|
479
|
-
}, {
|
|
480
|
-
params: {
|
|
481
|
-
worktreeId: string;
|
|
482
|
-
daemonUser?: string | undefined;
|
|
483
|
-
delete?: boolean | undefined;
|
|
484
|
-
};
|
|
485
|
-
command: "unix.sync-worktree";
|
|
486
|
-
sessionToken: string;
|
|
487
|
-
daemonUrl?: string | undefined;
|
|
488
|
-
env?: Record<string, string> | undefined;
|
|
489
|
-
dataHome?: string | undefined;
|
|
490
|
-
}>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}, z.core.$strip>;
|
|
491
227
|
export type UnixSyncWorktreePayload = z.infer<typeof UnixSyncWorktreePayloadSchema>;
|
|
492
228
|
/**
|
|
493
229
|
* Unix sync-repo payload - Sync all Unix state for a repo
|
|
@@ -503,48 +239,14 @@ export declare const UnixSyncRepoPayloadSchema: z.ZodObject<{
|
|
|
503
239
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
504
240
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
505
241
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
506
|
-
} & {
|
|
507
242
|
command: z.ZodLiteral<"unix.sync-repo">;
|
|
508
243
|
sessionToken: z.ZodString;
|
|
509
244
|
params: z.ZodObject<{
|
|
510
|
-
/** Repo ID to sync */
|
|
511
245
|
repoId: z.ZodString;
|
|
512
|
-
/** Daemon Unix user (added to repo group for daemon access) */
|
|
513
246
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
514
|
-
/** If true, delete the group instead of syncing (for repo removal) */
|
|
515
247
|
delete: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
daemonUser?: string | undefined;
|
|
519
|
-
delete?: boolean | undefined;
|
|
520
|
-
}, {
|
|
521
|
-
repoId: string;
|
|
522
|
-
daemonUser?: string | undefined;
|
|
523
|
-
delete?: boolean | undefined;
|
|
524
|
-
}>;
|
|
525
|
-
}, "strip", z.ZodTypeAny, {
|
|
526
|
-
params: {
|
|
527
|
-
repoId: string;
|
|
528
|
-
daemonUser?: string | undefined;
|
|
529
|
-
delete?: boolean | undefined;
|
|
530
|
-
};
|
|
531
|
-
command: "unix.sync-repo";
|
|
532
|
-
sessionToken: string;
|
|
533
|
-
daemonUrl?: string | undefined;
|
|
534
|
-
env?: Record<string, string> | undefined;
|
|
535
|
-
dataHome?: string | undefined;
|
|
536
|
-
}, {
|
|
537
|
-
params: {
|
|
538
|
-
repoId: string;
|
|
539
|
-
daemonUser?: string | undefined;
|
|
540
|
-
delete?: boolean | undefined;
|
|
541
|
-
};
|
|
542
|
-
command: "unix.sync-repo";
|
|
543
|
-
sessionToken: string;
|
|
544
|
-
daemonUrl?: string | undefined;
|
|
545
|
-
env?: Record<string, string> | undefined;
|
|
546
|
-
dataHome?: string | undefined;
|
|
547
|
-
}>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
}, z.core.$strip>;
|
|
548
250
|
export type UnixSyncRepoPayload = z.infer<typeof UnixSyncRepoPayloadSchema>;
|
|
549
251
|
/**
|
|
550
252
|
* Unix sync-user payload - Sync all Unix state for a user
|
|
@@ -560,60 +262,16 @@ export declare const UnixSyncUserPayloadSchema: z.ZodObject<{
|
|
|
560
262
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
561
263
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
562
264
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
563
|
-
} & {
|
|
564
265
|
command: z.ZodLiteral<"unix.sync-user">;
|
|
565
266
|
sessionToken: z.ZodString;
|
|
566
267
|
params: z.ZodObject<{
|
|
567
|
-
/** User ID to sync */
|
|
568
268
|
userId: z.ZodString;
|
|
569
|
-
/** Password to sync (optional, passed securely via stdin) */
|
|
570
269
|
password: z.ZodOptional<z.ZodString>;
|
|
571
|
-
/** If true, delete the Unix user (for user removal) */
|
|
572
270
|
delete: z.ZodOptional<z.ZodBoolean>;
|
|
573
|
-
/** Also delete home directory when deleting user */
|
|
574
271
|
deleteHome: z.ZodOptional<z.ZodBoolean>;
|
|
575
|
-
/** If true, configure git safe.directory for this user (needed when unix impersonation is enabled) */
|
|
576
272
|
configureGitSafeDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
delete?: boolean | undefined;
|
|
580
|
-
password?: string | undefined;
|
|
581
|
-
deleteHome?: boolean | undefined;
|
|
582
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
583
|
-
}, {
|
|
584
|
-
userId: string;
|
|
585
|
-
delete?: boolean | undefined;
|
|
586
|
-
password?: string | undefined;
|
|
587
|
-
deleteHome?: boolean | undefined;
|
|
588
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
589
|
-
}>;
|
|
590
|
-
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
params: {
|
|
592
|
-
userId: string;
|
|
593
|
-
delete?: boolean | undefined;
|
|
594
|
-
password?: string | undefined;
|
|
595
|
-
deleteHome?: boolean | undefined;
|
|
596
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
597
|
-
};
|
|
598
|
-
command: "unix.sync-user";
|
|
599
|
-
sessionToken: string;
|
|
600
|
-
daemonUrl?: string | undefined;
|
|
601
|
-
env?: Record<string, string> | undefined;
|
|
602
|
-
dataHome?: string | undefined;
|
|
603
|
-
}, {
|
|
604
|
-
params: {
|
|
605
|
-
userId: string;
|
|
606
|
-
delete?: boolean | undefined;
|
|
607
|
-
password?: string | undefined;
|
|
608
|
-
deleteHome?: boolean | undefined;
|
|
609
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
610
|
-
};
|
|
611
|
-
command: "unix.sync-user";
|
|
612
|
-
sessionToken: string;
|
|
613
|
-
daemonUrl?: string | undefined;
|
|
614
|
-
env?: Record<string, string> | undefined;
|
|
615
|
-
dataHome?: string | undefined;
|
|
616
|
-
}>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
}, z.core.$strip>;
|
|
617
275
|
export type UnixSyncUserPayload = z.infer<typeof UnixSyncUserPayloadSchema>;
|
|
618
276
|
/**
|
|
619
277
|
* Zellij attach payload - attach to or create Zellij session
|
|
@@ -625,71 +283,18 @@ export declare const ZellijAttachPayloadSchema: z.ZodObject<{
|
|
|
625
283
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
626
284
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
627
285
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
628
|
-
} & {
|
|
629
286
|
command: z.ZodLiteral<"zellij.attach">;
|
|
630
287
|
sessionToken: z.ZodString;
|
|
631
288
|
params: z.ZodObject<{
|
|
632
|
-
/** User ID (for channel: user/${userId}/terminal) */
|
|
633
289
|
userId: z.ZodString;
|
|
634
|
-
/** Zellij session name (e.g., "agor-max") */
|
|
635
290
|
sessionName: z.ZodString;
|
|
636
|
-
/** Initial working directory */
|
|
637
291
|
cwd: z.ZodString;
|
|
638
|
-
/** Initial tab name (worktree name) */
|
|
639
292
|
tabName: z.ZodOptional<z.ZodString>;
|
|
640
|
-
/** Terminal dimensions */
|
|
641
293
|
cols: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
642
294
|
rows: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
643
|
-
/** Path to env file for shell to source (user env vars like API keys) */
|
|
644
295
|
envFile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
645
|
-
},
|
|
646
|
-
|
|
647
|
-
userId: string;
|
|
648
|
-
sessionName: string;
|
|
649
|
-
cols: number;
|
|
650
|
-
rows: number;
|
|
651
|
-
tabName?: string | undefined;
|
|
652
|
-
envFile?: string | null | undefined;
|
|
653
|
-
}, {
|
|
654
|
-
cwd: string;
|
|
655
|
-
userId: string;
|
|
656
|
-
sessionName: string;
|
|
657
|
-
tabName?: string | undefined;
|
|
658
|
-
cols?: number | undefined;
|
|
659
|
-
rows?: number | undefined;
|
|
660
|
-
envFile?: string | null | undefined;
|
|
661
|
-
}>;
|
|
662
|
-
}, "strip", z.ZodTypeAny, {
|
|
663
|
-
params: {
|
|
664
|
-
cwd: string;
|
|
665
|
-
userId: string;
|
|
666
|
-
sessionName: string;
|
|
667
|
-
cols: number;
|
|
668
|
-
rows: number;
|
|
669
|
-
tabName?: string | undefined;
|
|
670
|
-
envFile?: string | null | undefined;
|
|
671
|
-
};
|
|
672
|
-
command: "zellij.attach";
|
|
673
|
-
sessionToken: string;
|
|
674
|
-
daemonUrl?: string | undefined;
|
|
675
|
-
env?: Record<string, string> | undefined;
|
|
676
|
-
dataHome?: string | undefined;
|
|
677
|
-
}, {
|
|
678
|
-
params: {
|
|
679
|
-
cwd: string;
|
|
680
|
-
userId: string;
|
|
681
|
-
sessionName: string;
|
|
682
|
-
tabName?: string | undefined;
|
|
683
|
-
cols?: number | undefined;
|
|
684
|
-
rows?: number | undefined;
|
|
685
|
-
envFile?: string | null | undefined;
|
|
686
|
-
};
|
|
687
|
-
command: "zellij.attach";
|
|
688
|
-
sessionToken: string;
|
|
689
|
-
daemonUrl?: string | undefined;
|
|
690
|
-
env?: Record<string, string> | undefined;
|
|
691
|
-
dataHome?: string | undefined;
|
|
692
|
-
}>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
}, z.core.$strip>;
|
|
693
298
|
export type ZellijAttachPayload = z.infer<typeof ZellijAttachPayloadSchema>;
|
|
694
299
|
/**
|
|
695
300
|
* Zellij tab payload - create or focus a tab in existing Zellij session
|
|
@@ -700,679 +305,193 @@ export declare const ZellijTabPayloadSchema: z.ZodObject<{
|
|
|
700
305
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
701
306
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
702
307
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
703
|
-
} & {
|
|
704
308
|
command: z.ZodLiteral<"zellij.tab">;
|
|
705
309
|
sessionToken: z.ZodString;
|
|
706
310
|
params: z.ZodObject<{
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
311
|
+
action: z.ZodEnum<{
|
|
312
|
+
create: "create";
|
|
313
|
+
focus: "focus";
|
|
314
|
+
}>;
|
|
710
315
|
tabName: z.ZodString;
|
|
711
|
-
/** Working directory (for 'create' action) */
|
|
712
316
|
cwd: z.ZodOptional<z.ZodString>;
|
|
713
|
-
},
|
|
714
|
-
|
|
715
|
-
action: "create" | "focus";
|
|
716
|
-
cwd?: string | undefined;
|
|
717
|
-
}, {
|
|
718
|
-
tabName: string;
|
|
719
|
-
action: "create" | "focus";
|
|
720
|
-
cwd?: string | undefined;
|
|
721
|
-
}>;
|
|
722
|
-
}, "strip", z.ZodTypeAny, {
|
|
723
|
-
params: {
|
|
724
|
-
tabName: string;
|
|
725
|
-
action: "create" | "focus";
|
|
726
|
-
cwd?: string | undefined;
|
|
727
|
-
};
|
|
728
|
-
command: "zellij.tab";
|
|
729
|
-
sessionToken: string;
|
|
730
|
-
daemonUrl?: string | undefined;
|
|
731
|
-
env?: Record<string, string> | undefined;
|
|
732
|
-
dataHome?: string | undefined;
|
|
733
|
-
}, {
|
|
734
|
-
params: {
|
|
735
|
-
tabName: string;
|
|
736
|
-
action: "create" | "focus";
|
|
737
|
-
cwd?: string | undefined;
|
|
738
|
-
};
|
|
739
|
-
command: "zellij.tab";
|
|
740
|
-
sessionToken: string;
|
|
741
|
-
daemonUrl?: string | undefined;
|
|
742
|
-
env?: Record<string, string> | undefined;
|
|
743
|
-
dataHome?: string | undefined;
|
|
744
|
-
}>;
|
|
317
|
+
}, z.core.$strip>;
|
|
318
|
+
}, z.core.$strip>;
|
|
745
319
|
export type ZellijTabPayload = z.infer<typeof ZellijTabPayloadSchema>;
|
|
746
320
|
/**
|
|
747
321
|
* All supported executor payloads
|
|
748
322
|
*/
|
|
749
|
-
export declare const ExecutorPayloadSchema: z.ZodDiscriminatedUnion<
|
|
323
|
+
export declare const ExecutorPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
750
324
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
751
325
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
752
326
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
753
|
-
} & {
|
|
754
327
|
command: z.ZodLiteral<"prompt">;
|
|
755
328
|
sessionToken: z.ZodString;
|
|
756
329
|
params: z.ZodObject<{
|
|
757
330
|
sessionId: z.ZodString;
|
|
758
331
|
taskId: z.ZodString;
|
|
759
332
|
prompt: z.ZodString;
|
|
760
|
-
tool: z.ZodEnum<
|
|
761
|
-
|
|
333
|
+
tool: z.ZodEnum<{
|
|
334
|
+
"claude-code": "claude-code";
|
|
335
|
+
gemini: "gemini";
|
|
336
|
+
codex: "codex";
|
|
337
|
+
opencode: "opencode";
|
|
338
|
+
}>;
|
|
339
|
+
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
340
|
+
default: "default";
|
|
341
|
+
acceptEdits: "acceptEdits";
|
|
342
|
+
bypassPermissions: "bypassPermissions";
|
|
343
|
+
plan: "plan";
|
|
344
|
+
dontAsk: "dontAsk";
|
|
345
|
+
autoEdit: "autoEdit";
|
|
346
|
+
yolo: "yolo";
|
|
347
|
+
ask: "ask";
|
|
348
|
+
auto: "auto";
|
|
349
|
+
"on-failure": "on-failure";
|
|
350
|
+
"allow-all": "allow-all";
|
|
351
|
+
}>>;
|
|
762
352
|
cwd: z.ZodString;
|
|
763
|
-
},
|
|
764
|
-
|
|
765
|
-
sessionId: string;
|
|
766
|
-
taskId: string;
|
|
767
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
768
|
-
cwd: string;
|
|
769
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
770
|
-
}, {
|
|
771
|
-
prompt: string;
|
|
772
|
-
sessionId: string;
|
|
773
|
-
taskId: string;
|
|
774
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
775
|
-
cwd: string;
|
|
776
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
777
|
-
}>;
|
|
778
|
-
}, "strip", z.ZodTypeAny, {
|
|
779
|
-
params: {
|
|
780
|
-
prompt: string;
|
|
781
|
-
sessionId: string;
|
|
782
|
-
taskId: string;
|
|
783
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
784
|
-
cwd: string;
|
|
785
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
786
|
-
};
|
|
787
|
-
command: "prompt";
|
|
788
|
-
sessionToken: string;
|
|
789
|
-
daemonUrl?: string | undefined;
|
|
790
|
-
env?: Record<string, string> | undefined;
|
|
791
|
-
dataHome?: string | undefined;
|
|
792
|
-
}, {
|
|
793
|
-
params: {
|
|
794
|
-
prompt: string;
|
|
795
|
-
sessionId: string;
|
|
796
|
-
taskId: string;
|
|
797
|
-
tool: "claude-code" | "gemini" | "codex" | "opencode";
|
|
798
|
-
cwd: string;
|
|
799
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "autoEdit" | "yolo" | "ask" | "auto" | "on-failure" | "allow-all" | undefined;
|
|
800
|
-
};
|
|
801
|
-
command: "prompt";
|
|
802
|
-
sessionToken: string;
|
|
803
|
-
daemonUrl?: string | undefined;
|
|
804
|
-
env?: Record<string, string> | undefined;
|
|
805
|
-
dataHome?: string | undefined;
|
|
806
|
-
}>, z.ZodObject<{
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
807
355
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
808
356
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
809
357
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
810
|
-
} & {
|
|
811
358
|
command: z.ZodLiteral<"git.clone">;
|
|
812
359
|
sessionToken: z.ZodString;
|
|
813
360
|
params: z.ZodObject<{
|
|
814
|
-
|
|
815
|
-
url: z.ZodEffects<z.ZodString, string, string>;
|
|
816
|
-
/** Output path for the repository (optional, defaults to AGOR_DATA_HOME/repos/) */
|
|
361
|
+
url: z.ZodString;
|
|
817
362
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
818
|
-
/** Branch to checkout (optional) */
|
|
819
363
|
branch: z.ZodOptional<z.ZodString>;
|
|
820
|
-
/** Clone as bare repository */
|
|
821
364
|
bare: z.ZodOptional<z.ZodBoolean>;
|
|
822
|
-
/** Slug for the repo (computed from URL if not provided) */
|
|
823
365
|
slug: z.ZodOptional<z.ZodString>;
|
|
824
|
-
/** Create DB record after clone (default: true) */
|
|
825
366
|
createDbRecord: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
826
|
-
/** Initialize Unix group for repo isolation (default: false, requires RBAC enabled) */
|
|
827
367
|
initUnixGroup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
828
|
-
/** Daemon Unix user to add to the repo group (for daemon access) */
|
|
829
368
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
830
|
-
/** Creator's Unix username to add to the repo group (for owner access) */
|
|
831
369
|
creatorUnixUsername: z.ZodOptional<z.ZodString>;
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
createDbRecord: boolean;
|
|
835
|
-
initUnixGroup: boolean;
|
|
836
|
-
outputPath?: string | undefined;
|
|
837
|
-
branch?: string | undefined;
|
|
838
|
-
bare?: boolean | undefined;
|
|
839
|
-
slug?: string | undefined;
|
|
840
|
-
daemonUser?: string | undefined;
|
|
841
|
-
creatorUnixUsername?: string | undefined;
|
|
842
|
-
}, {
|
|
843
|
-
url: string;
|
|
844
|
-
outputPath?: string | undefined;
|
|
845
|
-
branch?: string | undefined;
|
|
846
|
-
bare?: boolean | undefined;
|
|
847
|
-
slug?: string | undefined;
|
|
848
|
-
createDbRecord?: boolean | undefined;
|
|
849
|
-
initUnixGroup?: boolean | undefined;
|
|
850
|
-
daemonUser?: string | undefined;
|
|
851
|
-
creatorUnixUsername?: string | undefined;
|
|
852
|
-
}>;
|
|
853
|
-
}, "strip", z.ZodTypeAny, {
|
|
854
|
-
params: {
|
|
855
|
-
url: string;
|
|
856
|
-
createDbRecord: boolean;
|
|
857
|
-
initUnixGroup: boolean;
|
|
858
|
-
outputPath?: string | undefined;
|
|
859
|
-
branch?: string | undefined;
|
|
860
|
-
bare?: boolean | undefined;
|
|
861
|
-
slug?: string | undefined;
|
|
862
|
-
daemonUser?: string | undefined;
|
|
863
|
-
creatorUnixUsername?: string | undefined;
|
|
864
|
-
};
|
|
865
|
-
command: "git.clone";
|
|
866
|
-
sessionToken: string;
|
|
867
|
-
daemonUrl?: string | undefined;
|
|
868
|
-
env?: Record<string, string> | undefined;
|
|
869
|
-
dataHome?: string | undefined;
|
|
870
|
-
}, {
|
|
871
|
-
params: {
|
|
872
|
-
url: string;
|
|
873
|
-
outputPath?: string | undefined;
|
|
874
|
-
branch?: string | undefined;
|
|
875
|
-
bare?: boolean | undefined;
|
|
876
|
-
slug?: string | undefined;
|
|
877
|
-
createDbRecord?: boolean | undefined;
|
|
878
|
-
initUnixGroup?: boolean | undefined;
|
|
879
|
-
daemonUser?: string | undefined;
|
|
880
|
-
creatorUnixUsername?: string | undefined;
|
|
881
|
-
};
|
|
882
|
-
command: "git.clone";
|
|
883
|
-
sessionToken: string;
|
|
884
|
-
daemonUrl?: string | undefined;
|
|
885
|
-
env?: Record<string, string> | undefined;
|
|
886
|
-
dataHome?: string | undefined;
|
|
887
|
-
}>, z.ZodObject<{
|
|
370
|
+
}, z.core.$strip>;
|
|
371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
888
372
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
889
373
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
890
374
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
891
|
-
} & {
|
|
892
375
|
command: z.ZodLiteral<"git.worktree.add">;
|
|
893
376
|
sessionToken: z.ZodString;
|
|
894
377
|
params: z.ZodObject<{
|
|
895
|
-
/** Worktree ID (UUID) - DB record already exists with filesystem_status: 'creating' */
|
|
896
378
|
worktreeId: z.ZodString;
|
|
897
|
-
/** Repo ID (UUID) */
|
|
898
379
|
repoId: z.ZodString;
|
|
899
|
-
/** Path to the repository */
|
|
900
380
|
repoPath: z.ZodString;
|
|
901
|
-
/** Name for the worktree */
|
|
902
381
|
worktreeName: z.ZodString;
|
|
903
|
-
/** Path where worktree will be created */
|
|
904
382
|
worktreePath: z.ZodString;
|
|
905
|
-
/** Branch to checkout or create */
|
|
906
383
|
branch: z.ZodOptional<z.ZodString>;
|
|
907
|
-
/** Source branch when creating new branch */
|
|
908
384
|
sourceBranch: z.ZodOptional<z.ZodString>;
|
|
909
|
-
/** Create new branch */
|
|
910
385
|
createBranch: z.ZodOptional<z.ZodBoolean>;
|
|
911
|
-
/** Initialize Unix group for worktree isolation (default: false, requires RBAC enabled) */
|
|
912
386
|
initUnixGroup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
387
|
+
othersAccess: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
388
|
+
none: "none";
|
|
389
|
+
read: "read";
|
|
390
|
+
write: "write";
|
|
391
|
+
}>>>;
|
|
916
392
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
917
|
-
/** Repo Unix group name (for fixing .git/worktrees permissions) */
|
|
918
393
|
repoUnixGroup: z.ZodOptional<z.ZodString>;
|
|
919
|
-
/** Creator's Unix username to add to the worktree group (initial owner) */
|
|
920
394
|
creatorUnixUsername: z.ZodOptional<z.ZodString>;
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
worktreeId: string;
|
|
924
|
-
repoId: string;
|
|
925
|
-
repoPath: string;
|
|
926
|
-
worktreeName: string;
|
|
927
|
-
worktreePath: string;
|
|
928
|
-
othersAccess: "none" | "read" | "write";
|
|
929
|
-
branch?: string | undefined;
|
|
930
|
-
daemonUser?: string | undefined;
|
|
931
|
-
creatorUnixUsername?: string | undefined;
|
|
932
|
-
sourceBranch?: string | undefined;
|
|
933
|
-
createBranch?: boolean | undefined;
|
|
934
|
-
repoUnixGroup?: string | undefined;
|
|
935
|
-
}, {
|
|
936
|
-
worktreeId: string;
|
|
937
|
-
repoId: string;
|
|
938
|
-
repoPath: string;
|
|
939
|
-
worktreeName: string;
|
|
940
|
-
worktreePath: string;
|
|
941
|
-
branch?: string | undefined;
|
|
942
|
-
initUnixGroup?: boolean | undefined;
|
|
943
|
-
daemonUser?: string | undefined;
|
|
944
|
-
creatorUnixUsername?: string | undefined;
|
|
945
|
-
sourceBranch?: string | undefined;
|
|
946
|
-
createBranch?: boolean | undefined;
|
|
947
|
-
othersAccess?: "none" | "read" | "write" | undefined;
|
|
948
|
-
repoUnixGroup?: string | undefined;
|
|
949
|
-
}>;
|
|
950
|
-
}, "strip", z.ZodTypeAny, {
|
|
951
|
-
params: {
|
|
952
|
-
initUnixGroup: boolean;
|
|
953
|
-
worktreeId: string;
|
|
954
|
-
repoId: string;
|
|
955
|
-
repoPath: string;
|
|
956
|
-
worktreeName: string;
|
|
957
|
-
worktreePath: string;
|
|
958
|
-
othersAccess: "none" | "read" | "write";
|
|
959
|
-
branch?: string | undefined;
|
|
960
|
-
daemonUser?: string | undefined;
|
|
961
|
-
creatorUnixUsername?: string | undefined;
|
|
962
|
-
sourceBranch?: string | undefined;
|
|
963
|
-
createBranch?: boolean | undefined;
|
|
964
|
-
repoUnixGroup?: string | undefined;
|
|
965
|
-
};
|
|
966
|
-
command: "git.worktree.add";
|
|
967
|
-
sessionToken: string;
|
|
968
|
-
daemonUrl?: string | undefined;
|
|
969
|
-
env?: Record<string, string> | undefined;
|
|
970
|
-
dataHome?: string | undefined;
|
|
971
|
-
}, {
|
|
972
|
-
params: {
|
|
973
|
-
worktreeId: string;
|
|
974
|
-
repoId: string;
|
|
975
|
-
repoPath: string;
|
|
976
|
-
worktreeName: string;
|
|
977
|
-
worktreePath: string;
|
|
978
|
-
branch?: string | undefined;
|
|
979
|
-
initUnixGroup?: boolean | undefined;
|
|
980
|
-
daemonUser?: string | undefined;
|
|
981
|
-
creatorUnixUsername?: string | undefined;
|
|
982
|
-
sourceBranch?: string | undefined;
|
|
983
|
-
createBranch?: boolean | undefined;
|
|
984
|
-
othersAccess?: "none" | "read" | "write" | undefined;
|
|
985
|
-
repoUnixGroup?: string | undefined;
|
|
986
|
-
};
|
|
987
|
-
command: "git.worktree.add";
|
|
988
|
-
sessionToken: string;
|
|
989
|
-
daemonUrl?: string | undefined;
|
|
990
|
-
env?: Record<string, string> | undefined;
|
|
991
|
-
dataHome?: string | undefined;
|
|
992
|
-
}>, z.ZodObject<{
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
993
397
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
994
398
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
995
399
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
996
|
-
} & {
|
|
997
400
|
command: z.ZodLiteral<"git.worktree.remove">;
|
|
998
401
|
sessionToken: z.ZodString;
|
|
999
402
|
params: z.ZodObject<{
|
|
1000
|
-
/** Worktree ID (UUID) - required for DB record deletion */
|
|
1001
403
|
worktreeId: z.ZodString;
|
|
1002
|
-
/** Path to the worktree to remove */
|
|
1003
404
|
worktreePath: z.ZodString;
|
|
1004
|
-
/** Force removal even if dirty */
|
|
1005
405
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1006
|
-
/** Delete DB record after removal (default: true) */
|
|
1007
406
|
deleteDbRecord: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1008
|
-
},
|
|
1009
|
-
|
|
1010
|
-
worktreePath: string;
|
|
1011
|
-
deleteDbRecord: boolean;
|
|
1012
|
-
force?: boolean | undefined;
|
|
1013
|
-
}, {
|
|
1014
|
-
worktreeId: string;
|
|
1015
|
-
worktreePath: string;
|
|
1016
|
-
force?: boolean | undefined;
|
|
1017
|
-
deleteDbRecord?: boolean | undefined;
|
|
1018
|
-
}>;
|
|
1019
|
-
}, "strip", z.ZodTypeAny, {
|
|
1020
|
-
params: {
|
|
1021
|
-
worktreeId: string;
|
|
1022
|
-
worktreePath: string;
|
|
1023
|
-
deleteDbRecord: boolean;
|
|
1024
|
-
force?: boolean | undefined;
|
|
1025
|
-
};
|
|
1026
|
-
command: "git.worktree.remove";
|
|
1027
|
-
sessionToken: string;
|
|
1028
|
-
daemonUrl?: string | undefined;
|
|
1029
|
-
env?: Record<string, string> | undefined;
|
|
1030
|
-
dataHome?: string | undefined;
|
|
1031
|
-
}, {
|
|
1032
|
-
params: {
|
|
1033
|
-
worktreeId: string;
|
|
1034
|
-
worktreePath: string;
|
|
1035
|
-
force?: boolean | undefined;
|
|
1036
|
-
deleteDbRecord?: boolean | undefined;
|
|
1037
|
-
};
|
|
1038
|
-
command: "git.worktree.remove";
|
|
1039
|
-
sessionToken: string;
|
|
1040
|
-
daemonUrl?: string | undefined;
|
|
1041
|
-
env?: Record<string, string> | undefined;
|
|
1042
|
-
dataHome?: string | undefined;
|
|
1043
|
-
}>, z.ZodObject<{
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1044
409
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
1045
410
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1046
411
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
1047
|
-
} & {
|
|
1048
412
|
command: z.ZodLiteral<"git.worktree.clean">;
|
|
1049
413
|
sessionToken: z.ZodString;
|
|
1050
414
|
params: z.ZodObject<{
|
|
1051
|
-
/** Path to the worktree to clean */
|
|
1052
415
|
worktreePath: z.ZodString;
|
|
1053
|
-
},
|
|
1054
|
-
|
|
1055
|
-
}, {
|
|
1056
|
-
worktreePath: string;
|
|
1057
|
-
}>;
|
|
1058
|
-
}, "strip", z.ZodTypeAny, {
|
|
1059
|
-
params: {
|
|
1060
|
-
worktreePath: string;
|
|
1061
|
-
};
|
|
1062
|
-
command: "git.worktree.clean";
|
|
1063
|
-
sessionToken: string;
|
|
1064
|
-
daemonUrl?: string | undefined;
|
|
1065
|
-
env?: Record<string, string> | undefined;
|
|
1066
|
-
dataHome?: string | undefined;
|
|
1067
|
-
}, {
|
|
1068
|
-
params: {
|
|
1069
|
-
worktreePath: string;
|
|
1070
|
-
};
|
|
1071
|
-
command: "git.worktree.clean";
|
|
1072
|
-
sessionToken: string;
|
|
1073
|
-
daemonUrl?: string | undefined;
|
|
1074
|
-
env?: Record<string, string> | undefined;
|
|
1075
|
-
dataHome?: string | undefined;
|
|
1076
|
-
}>, z.ZodObject<{
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1077
418
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
1078
419
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1079
420
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
1080
|
-
} & {
|
|
1081
421
|
command: z.ZodLiteral<"unix.sync-worktree">;
|
|
1082
422
|
sessionToken: z.ZodString;
|
|
1083
423
|
params: z.ZodObject<{
|
|
1084
|
-
/** Worktree ID to sync */
|
|
1085
424
|
worktreeId: z.ZodString;
|
|
1086
|
-
/** Daemon Unix user (added to all groups for daemon access) */
|
|
1087
425
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
1088
|
-
/** If true, delete the group instead of syncing (for worktree removal) */
|
|
1089
426
|
delete: z.ZodOptional<z.ZodBoolean>;
|
|
1090
|
-
},
|
|
1091
|
-
|
|
1092
|
-
daemonUser?: string | undefined;
|
|
1093
|
-
delete?: boolean | undefined;
|
|
1094
|
-
}, {
|
|
1095
|
-
worktreeId: string;
|
|
1096
|
-
daemonUser?: string | undefined;
|
|
1097
|
-
delete?: boolean | undefined;
|
|
1098
|
-
}>;
|
|
1099
|
-
}, "strip", z.ZodTypeAny, {
|
|
1100
|
-
params: {
|
|
1101
|
-
worktreeId: string;
|
|
1102
|
-
daemonUser?: string | undefined;
|
|
1103
|
-
delete?: boolean | undefined;
|
|
1104
|
-
};
|
|
1105
|
-
command: "unix.sync-worktree";
|
|
1106
|
-
sessionToken: string;
|
|
1107
|
-
daemonUrl?: string | undefined;
|
|
1108
|
-
env?: Record<string, string> | undefined;
|
|
1109
|
-
dataHome?: string | undefined;
|
|
1110
|
-
}, {
|
|
1111
|
-
params: {
|
|
1112
|
-
worktreeId: string;
|
|
1113
|
-
daemonUser?: string | undefined;
|
|
1114
|
-
delete?: boolean | undefined;
|
|
1115
|
-
};
|
|
1116
|
-
command: "unix.sync-worktree";
|
|
1117
|
-
sessionToken: string;
|
|
1118
|
-
daemonUrl?: string | undefined;
|
|
1119
|
-
env?: Record<string, string> | undefined;
|
|
1120
|
-
dataHome?: string | undefined;
|
|
1121
|
-
}>, z.ZodObject<{
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1122
429
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
1123
430
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1124
431
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
1125
|
-
} & {
|
|
1126
432
|
command: z.ZodLiteral<"unix.sync-repo">;
|
|
1127
433
|
sessionToken: z.ZodString;
|
|
1128
434
|
params: z.ZodObject<{
|
|
1129
|
-
/** Repo ID to sync */
|
|
1130
435
|
repoId: z.ZodString;
|
|
1131
|
-
/** Daemon Unix user (added to repo group for daemon access) */
|
|
1132
436
|
daemonUser: z.ZodOptional<z.ZodString>;
|
|
1133
|
-
/** If true, delete the group instead of syncing (for repo removal) */
|
|
1134
437
|
delete: z.ZodOptional<z.ZodBoolean>;
|
|
1135
|
-
},
|
|
1136
|
-
|
|
1137
|
-
daemonUser?: string | undefined;
|
|
1138
|
-
delete?: boolean | undefined;
|
|
1139
|
-
}, {
|
|
1140
|
-
repoId: string;
|
|
1141
|
-
daemonUser?: string | undefined;
|
|
1142
|
-
delete?: boolean | undefined;
|
|
1143
|
-
}>;
|
|
1144
|
-
}, "strip", z.ZodTypeAny, {
|
|
1145
|
-
params: {
|
|
1146
|
-
repoId: string;
|
|
1147
|
-
daemonUser?: string | undefined;
|
|
1148
|
-
delete?: boolean | undefined;
|
|
1149
|
-
};
|
|
1150
|
-
command: "unix.sync-repo";
|
|
1151
|
-
sessionToken: string;
|
|
1152
|
-
daemonUrl?: string | undefined;
|
|
1153
|
-
env?: Record<string, string> | undefined;
|
|
1154
|
-
dataHome?: string | undefined;
|
|
1155
|
-
}, {
|
|
1156
|
-
params: {
|
|
1157
|
-
repoId: string;
|
|
1158
|
-
daemonUser?: string | undefined;
|
|
1159
|
-
delete?: boolean | undefined;
|
|
1160
|
-
};
|
|
1161
|
-
command: "unix.sync-repo";
|
|
1162
|
-
sessionToken: string;
|
|
1163
|
-
daemonUrl?: string | undefined;
|
|
1164
|
-
env?: Record<string, string> | undefined;
|
|
1165
|
-
dataHome?: string | undefined;
|
|
1166
|
-
}>, z.ZodObject<{
|
|
438
|
+
}, z.core.$strip>;
|
|
439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1167
440
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
1168
441
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1169
442
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
1170
|
-
} & {
|
|
1171
443
|
command: z.ZodLiteral<"unix.sync-user">;
|
|
1172
444
|
sessionToken: z.ZodString;
|
|
1173
445
|
params: z.ZodObject<{
|
|
1174
|
-
/** User ID to sync */
|
|
1175
446
|
userId: z.ZodString;
|
|
1176
|
-
/** Password to sync (optional, passed securely via stdin) */
|
|
1177
447
|
password: z.ZodOptional<z.ZodString>;
|
|
1178
|
-
/** If true, delete the Unix user (for user removal) */
|
|
1179
448
|
delete: z.ZodOptional<z.ZodBoolean>;
|
|
1180
|
-
/** Also delete home directory when deleting user */
|
|
1181
449
|
deleteHome: z.ZodOptional<z.ZodBoolean>;
|
|
1182
|
-
/** If true, configure git safe.directory for this user (needed when unix impersonation is enabled) */
|
|
1183
450
|
configureGitSafeDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
1184
|
-
},
|
|
1185
|
-
|
|
1186
|
-
delete?: boolean | undefined;
|
|
1187
|
-
password?: string | undefined;
|
|
1188
|
-
deleteHome?: boolean | undefined;
|
|
1189
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
1190
|
-
}, {
|
|
1191
|
-
userId: string;
|
|
1192
|
-
delete?: boolean | undefined;
|
|
1193
|
-
password?: string | undefined;
|
|
1194
|
-
deleteHome?: boolean | undefined;
|
|
1195
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
1196
|
-
}>;
|
|
1197
|
-
}, "strip", z.ZodTypeAny, {
|
|
1198
|
-
params: {
|
|
1199
|
-
userId: string;
|
|
1200
|
-
delete?: boolean | undefined;
|
|
1201
|
-
password?: string | undefined;
|
|
1202
|
-
deleteHome?: boolean | undefined;
|
|
1203
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
1204
|
-
};
|
|
1205
|
-
command: "unix.sync-user";
|
|
1206
|
-
sessionToken: string;
|
|
1207
|
-
daemonUrl?: string | undefined;
|
|
1208
|
-
env?: Record<string, string> | undefined;
|
|
1209
|
-
dataHome?: string | undefined;
|
|
1210
|
-
}, {
|
|
1211
|
-
params: {
|
|
1212
|
-
userId: string;
|
|
1213
|
-
delete?: boolean | undefined;
|
|
1214
|
-
password?: string | undefined;
|
|
1215
|
-
deleteHome?: boolean | undefined;
|
|
1216
|
-
configureGitSafeDirectory?: boolean | undefined;
|
|
1217
|
-
};
|
|
1218
|
-
command: "unix.sync-user";
|
|
1219
|
-
sessionToken: string;
|
|
1220
|
-
daemonUrl?: string | undefined;
|
|
1221
|
-
env?: Record<string, string> | undefined;
|
|
1222
|
-
dataHome?: string | undefined;
|
|
1223
|
-
}>, z.ZodObject<{
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1224
453
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
1225
454
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1226
455
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
1227
|
-
} & {
|
|
1228
456
|
command: z.ZodLiteral<"zellij.attach">;
|
|
1229
457
|
sessionToken: z.ZodString;
|
|
1230
458
|
params: z.ZodObject<{
|
|
1231
|
-
/** User ID (for channel: user/${userId}/terminal) */
|
|
1232
459
|
userId: z.ZodString;
|
|
1233
|
-
/** Zellij session name (e.g., "agor-max") */
|
|
1234
460
|
sessionName: z.ZodString;
|
|
1235
|
-
/** Initial working directory */
|
|
1236
461
|
cwd: z.ZodString;
|
|
1237
|
-
/** Initial tab name (worktree name) */
|
|
1238
462
|
tabName: z.ZodOptional<z.ZodString>;
|
|
1239
|
-
/** Terminal dimensions */
|
|
1240
463
|
cols: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1241
464
|
rows: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1242
|
-
/** Path to env file for shell to source (user env vars like API keys) */
|
|
1243
465
|
envFile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1244
|
-
},
|
|
1245
|
-
|
|
1246
|
-
userId: string;
|
|
1247
|
-
sessionName: string;
|
|
1248
|
-
cols: number;
|
|
1249
|
-
rows: number;
|
|
1250
|
-
tabName?: string | undefined;
|
|
1251
|
-
envFile?: string | null | undefined;
|
|
1252
|
-
}, {
|
|
1253
|
-
cwd: string;
|
|
1254
|
-
userId: string;
|
|
1255
|
-
sessionName: string;
|
|
1256
|
-
tabName?: string | undefined;
|
|
1257
|
-
cols?: number | undefined;
|
|
1258
|
-
rows?: number | undefined;
|
|
1259
|
-
envFile?: string | null | undefined;
|
|
1260
|
-
}>;
|
|
1261
|
-
}, "strip", z.ZodTypeAny, {
|
|
1262
|
-
params: {
|
|
1263
|
-
cwd: string;
|
|
1264
|
-
userId: string;
|
|
1265
|
-
sessionName: string;
|
|
1266
|
-
cols: number;
|
|
1267
|
-
rows: number;
|
|
1268
|
-
tabName?: string | undefined;
|
|
1269
|
-
envFile?: string | null | undefined;
|
|
1270
|
-
};
|
|
1271
|
-
command: "zellij.attach";
|
|
1272
|
-
sessionToken: string;
|
|
1273
|
-
daemonUrl?: string | undefined;
|
|
1274
|
-
env?: Record<string, string> | undefined;
|
|
1275
|
-
dataHome?: string | undefined;
|
|
1276
|
-
}, {
|
|
1277
|
-
params: {
|
|
1278
|
-
cwd: string;
|
|
1279
|
-
userId: string;
|
|
1280
|
-
sessionName: string;
|
|
1281
|
-
tabName?: string | undefined;
|
|
1282
|
-
cols?: number | undefined;
|
|
1283
|
-
rows?: number | undefined;
|
|
1284
|
-
envFile?: string | null | undefined;
|
|
1285
|
-
};
|
|
1286
|
-
command: "zellij.attach";
|
|
1287
|
-
sessionToken: string;
|
|
1288
|
-
daemonUrl?: string | undefined;
|
|
1289
|
-
env?: Record<string, string> | undefined;
|
|
1290
|
-
dataHome?: string | undefined;
|
|
1291
|
-
}>, z.ZodObject<{
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1292
468
|
daemonUrl: z.ZodOptional<z.ZodString>;
|
|
1293
469
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1294
470
|
dataHome: z.ZodOptional<z.ZodString>;
|
|
1295
|
-
} & {
|
|
1296
471
|
command: z.ZodLiteral<"zellij.tab">;
|
|
1297
472
|
sessionToken: z.ZodString;
|
|
1298
473
|
params: z.ZodObject<{
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
474
|
+
action: z.ZodEnum<{
|
|
475
|
+
create: "create";
|
|
476
|
+
focus: "focus";
|
|
477
|
+
}>;
|
|
1302
478
|
tabName: z.ZodString;
|
|
1303
|
-
/** Working directory (for 'create' action) */
|
|
1304
479
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1305
|
-
},
|
|
1306
|
-
|
|
1307
|
-
action: "create" | "focus";
|
|
1308
|
-
cwd?: string | undefined;
|
|
1309
|
-
}, {
|
|
1310
|
-
tabName: string;
|
|
1311
|
-
action: "create" | "focus";
|
|
1312
|
-
cwd?: string | undefined;
|
|
1313
|
-
}>;
|
|
1314
|
-
}, "strip", z.ZodTypeAny, {
|
|
1315
|
-
params: {
|
|
1316
|
-
tabName: string;
|
|
1317
|
-
action: "create" | "focus";
|
|
1318
|
-
cwd?: string | undefined;
|
|
1319
|
-
};
|
|
1320
|
-
command: "zellij.tab";
|
|
1321
|
-
sessionToken: string;
|
|
1322
|
-
daemonUrl?: string | undefined;
|
|
1323
|
-
env?: Record<string, string> | undefined;
|
|
1324
|
-
dataHome?: string | undefined;
|
|
1325
|
-
}, {
|
|
1326
|
-
params: {
|
|
1327
|
-
tabName: string;
|
|
1328
|
-
action: "create" | "focus";
|
|
1329
|
-
cwd?: string | undefined;
|
|
1330
|
-
};
|
|
1331
|
-
command: "zellij.tab";
|
|
1332
|
-
sessionToken: string;
|
|
1333
|
-
daemonUrl?: string | undefined;
|
|
1334
|
-
env?: Record<string, string> | undefined;
|
|
1335
|
-
dataHome?: string | undefined;
|
|
1336
|
-
}>]>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
}, z.core.$strip>], "command">;
|
|
1337
482
|
export type ExecutorPayload = z.infer<typeof ExecutorPayloadSchema>;
|
|
1338
483
|
/**
|
|
1339
484
|
* Executor result - returned via stdout or Feathers
|
|
1340
485
|
*/
|
|
1341
486
|
export declare const ExecutorResultSchema: z.ZodObject<{
|
|
1342
487
|
success: z.ZodBoolean;
|
|
1343
|
-
/** Command-specific result data */
|
|
1344
488
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
1345
|
-
/** Error information if success=false */
|
|
1346
489
|
error: z.ZodOptional<z.ZodObject<{
|
|
1347
490
|
code: z.ZodString;
|
|
1348
491
|
message: z.ZodString;
|
|
1349
492
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
1350
|
-
},
|
|
1351
|
-
|
|
1352
|
-
message: string;
|
|
1353
|
-
details?: unknown;
|
|
1354
|
-
}, {
|
|
1355
|
-
code: string;
|
|
1356
|
-
message: string;
|
|
1357
|
-
details?: unknown;
|
|
1358
|
-
}>>;
|
|
1359
|
-
}, "strip", z.ZodTypeAny, {
|
|
1360
|
-
success: boolean;
|
|
1361
|
-
data?: unknown;
|
|
1362
|
-
error?: {
|
|
1363
|
-
code: string;
|
|
1364
|
-
message: string;
|
|
1365
|
-
details?: unknown;
|
|
1366
|
-
} | undefined;
|
|
1367
|
-
}, {
|
|
1368
|
-
success: boolean;
|
|
1369
|
-
data?: unknown;
|
|
1370
|
-
error?: {
|
|
1371
|
-
code: string;
|
|
1372
|
-
message: string;
|
|
1373
|
-
details?: unknown;
|
|
1374
|
-
} | undefined;
|
|
1375
|
-
}>;
|
|
493
|
+
}, z.core.$strip>>;
|
|
494
|
+
}, z.core.$strip>;
|
|
1376
495
|
export type ExecutorResult = z.infer<typeof ExecutorResultSchema>;
|
|
1377
496
|
/**
|
|
1378
497
|
* Parse and validate an ExecutorPayload from JSON string
|