@open-mercato/cezar 0.19.0-pr2004.4583 → 0.19.0-pr2004.4584
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.
|
@@ -65,6 +65,20 @@ export declare function agentSetupRoutes(deps: AgentSetupDeps): import("hono/hon
|
|
|
65
65
|
} & {
|
|
66
66
|
"/providers/setup/sessions": {
|
|
67
67
|
$post: {
|
|
68
|
+
output: {
|
|
69
|
+
error: string;
|
|
70
|
+
};
|
|
71
|
+
outputFormat: "json";
|
|
72
|
+
status: 409;
|
|
73
|
+
input: {
|
|
74
|
+
json: {
|
|
75
|
+
provider: "claude" | "codex" | "copilot" | "cursor" | "opencode";
|
|
76
|
+
action: "install" | "login";
|
|
77
|
+
cols?: number | undefined;
|
|
78
|
+
rows?: number | undefined;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
68
82
|
output: {
|
|
69
83
|
id: string;
|
|
70
84
|
runId: string;
|
|
@@ -118,20 +132,6 @@ export declare function agentSetupRoutes(deps: AgentSetupDeps): import("hono/hon
|
|
|
118
132
|
rows?: number | undefined;
|
|
119
133
|
};
|
|
120
134
|
};
|
|
121
|
-
} | {
|
|
122
|
-
output: {
|
|
123
|
-
error: string;
|
|
124
|
-
};
|
|
125
|
-
outputFormat: "json";
|
|
126
|
-
status: 409;
|
|
127
|
-
input: {
|
|
128
|
-
json: {
|
|
129
|
-
provider: "claude" | "codex" | "copilot" | "cursor" | "opencode";
|
|
130
|
-
action: "install" | "login";
|
|
131
|
-
cols?: number | undefined;
|
|
132
|
-
rows?: number | undefined;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
135
|
} | {
|
|
136
136
|
output: {
|
|
137
137
|
error: string;
|
|
@@ -8,7 +8,7 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
8
8
|
error: string;
|
|
9
9
|
};
|
|
10
10
|
outputFormat: "json";
|
|
11
|
-
status:
|
|
11
|
+
status: 409;
|
|
12
12
|
input: {
|
|
13
13
|
query: {
|
|
14
14
|
projectId: string;
|
|
@@ -16,10 +16,21 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
output: {
|
|
19
|
-
|
|
19
|
+
timeZone: string;
|
|
20
|
+
automations: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
kind: "github" | "schedule" | "tracker";
|
|
25
|
+
nextRunAt?: string | undefined;
|
|
26
|
+
state?: {
|
|
27
|
+
backoffUntil?: string | undefined;
|
|
28
|
+
consecutiveFailures?: number | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
}[];
|
|
20
31
|
};
|
|
21
32
|
outputFormat: "json";
|
|
22
|
-
status:
|
|
33
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
23
34
|
input: {
|
|
24
35
|
query: {
|
|
25
36
|
projectId: string;
|
|
@@ -30,7 +41,7 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
30
41
|
error: string;
|
|
31
42
|
};
|
|
32
43
|
outputFormat: "json";
|
|
33
|
-
status:
|
|
44
|
+
status: 404;
|
|
34
45
|
input: {
|
|
35
46
|
query: {
|
|
36
47
|
projectId: string;
|
|
@@ -38,21 +49,10 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
38
49
|
};
|
|
39
50
|
} | {
|
|
40
51
|
output: {
|
|
41
|
-
|
|
42
|
-
automations: {
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
enabled: boolean;
|
|
46
|
-
kind: "github" | "schedule" | "tracker";
|
|
47
|
-
nextRunAt?: string | undefined;
|
|
48
|
-
state?: {
|
|
49
|
-
backoffUntil?: string | undefined;
|
|
50
|
-
consecutiveFailures?: number | undefined;
|
|
51
|
-
} | undefined;
|
|
52
|
-
}[];
|
|
52
|
+
error: string;
|
|
53
53
|
};
|
|
54
54
|
outputFormat: "json";
|
|
55
|
-
status:
|
|
55
|
+
status: 503;
|
|
56
56
|
input: {
|
|
57
57
|
query: {
|
|
58
58
|
projectId: string;
|
|
@@ -208,24 +208,6 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
208
208
|
} & {
|
|
209
209
|
"/workspace/dashboard/overview": {
|
|
210
210
|
$get: {
|
|
211
|
-
output: {
|
|
212
|
-
error: 'Dashboard changed; refresh the list';
|
|
213
|
-
code: 'snapshot-expired';
|
|
214
|
-
};
|
|
215
|
-
outputFormat: "json";
|
|
216
|
-
status: 409;
|
|
217
|
-
input: {
|
|
218
|
-
query: {
|
|
219
|
-
period?: "30d" | "7d" | undefined;
|
|
220
|
-
tzOffsetMinutes?: unknown;
|
|
221
|
-
snapshotId?: string | undefined;
|
|
222
|
-
projectId?: string | undefined;
|
|
223
|
-
group?: "completed" | "failed" | "needs-you" | "running" | undefined;
|
|
224
|
-
offset?: unknown;
|
|
225
|
-
limit?: unknown;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
} | {
|
|
229
211
|
output: {
|
|
230
212
|
snapshotId: string;
|
|
231
213
|
asOf: string;
|
|
@@ -285,11 +267,7 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
285
267
|
limit?: unknown;
|
|
286
268
|
};
|
|
287
269
|
};
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
} & {
|
|
291
|
-
"/workspace/dashboard/tasks": {
|
|
292
|
-
$get: {
|
|
270
|
+
} | {
|
|
293
271
|
output: {
|
|
294
272
|
error: 'Dashboard changed; refresh the list';
|
|
295
273
|
code: 'snapshot-expired';
|
|
@@ -298,13 +276,20 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
298
276
|
status: 409;
|
|
299
277
|
input: {
|
|
300
278
|
query: {
|
|
301
|
-
|
|
302
|
-
|
|
279
|
+
period?: "30d" | "7d" | undefined;
|
|
280
|
+
tzOffsetMinutes?: unknown;
|
|
281
|
+
snapshotId?: string | undefined;
|
|
282
|
+
projectId?: string | undefined;
|
|
283
|
+
group?: "completed" | "failed" | "needs-you" | "running" | undefined;
|
|
303
284
|
offset?: unknown;
|
|
304
285
|
limit?: unknown;
|
|
305
286
|
};
|
|
306
287
|
};
|
|
307
|
-
}
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
} & {
|
|
291
|
+
"/workspace/dashboard/tasks": {
|
|
292
|
+
$get: {
|
|
308
293
|
output: {
|
|
309
294
|
snapshotId: string;
|
|
310
295
|
asOf: string;
|
|
@@ -385,11 +370,7 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
385
370
|
limit?: unknown;
|
|
386
371
|
};
|
|
387
372
|
};
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
} & {
|
|
391
|
-
"/workspace/dashboard/costs": {
|
|
392
|
-
$get: {
|
|
373
|
+
} | {
|
|
393
374
|
output: {
|
|
394
375
|
error: 'Dashboard changed; refresh the list';
|
|
395
376
|
code: 'snapshot-expired';
|
|
@@ -398,16 +379,17 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
398
379
|
status: 409;
|
|
399
380
|
input: {
|
|
400
381
|
query: {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
projectId?: string | undefined;
|
|
404
|
-
snapshotId?: string | undefined;
|
|
405
|
-
tzOffsetMinutes?: unknown;
|
|
382
|
+
snapshotId: string;
|
|
383
|
+
group: "needs-you" | "questions" | "queued" | "reviews" | "running" | "scheduled";
|
|
406
384
|
offset?: unknown;
|
|
407
385
|
limit?: unknown;
|
|
408
386
|
};
|
|
409
387
|
};
|
|
410
|
-
}
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
} & {
|
|
391
|
+
"/workspace/dashboard/costs": {
|
|
392
|
+
$get: {
|
|
411
393
|
output: {
|
|
412
394
|
snapshotId: string;
|
|
413
395
|
asOf: string;
|
|
@@ -515,6 +497,24 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
515
497
|
limit?: unknown;
|
|
516
498
|
};
|
|
517
499
|
};
|
|
500
|
+
} | {
|
|
501
|
+
output: {
|
|
502
|
+
error: 'Dashboard changed; refresh the list';
|
|
503
|
+
code: 'snapshot-expired';
|
|
504
|
+
};
|
|
505
|
+
outputFormat: "json";
|
|
506
|
+
status: 409;
|
|
507
|
+
input: {
|
|
508
|
+
query: {
|
|
509
|
+
period?: "30d" | "7d" | "all" | undefined;
|
|
510
|
+
sort?: "cost" | "input" | "output" | undefined;
|
|
511
|
+
projectId?: string | undefined;
|
|
512
|
+
snapshotId?: string | undefined;
|
|
513
|
+
tzOffsetMinutes?: unknown;
|
|
514
|
+
offset?: unknown;
|
|
515
|
+
limit?: unknown;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
518
|
};
|
|
519
519
|
};
|
|
520
520
|
} & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { closeSync, constants, fchmodSync, fstatSync, ftruncateSync, lstatSync, mkdirSync, openSync, readFileSync, writeSync } from 'node:fs';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
/**
|
|
@@ -9,25 +9,56 @@ import { join } from 'node:path';
|
|
|
9
9
|
*/
|
|
10
10
|
export function ensureLaunchKey(dataDir) {
|
|
11
11
|
const path = join(dataDir, 'launch-key');
|
|
12
|
+
const key = randomUUID();
|
|
13
|
+
let fd;
|
|
12
14
|
try {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
mkdirSync(dataDir, { recursive: true });
|
|
16
|
+
try {
|
|
17
|
+
fd = openSync(path, constants.O_CREAT | constants.O_EXCL | constants.O_RDWR, 0o600);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
if (!(error instanceof Error) || !('code' in error) || error.code !== 'EEXIST')
|
|
21
|
+
throw error;
|
|
22
|
+
const flags = (constants.O_NOFOLLOW ?? 0) | (constants.O_NONBLOCK ?? 0);
|
|
23
|
+
try {
|
|
24
|
+
fd = openSync(path, constants.O_RDWR | flags);
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
// A readable, read-only persisted key must remain reusable.
|
|
28
|
+
fd = openSync(path, constants.O_RDONLY | flags);
|
|
29
|
+
}
|
|
30
|
+
const opened = fstatSync(fd);
|
|
31
|
+
const entry = lstatSync(path);
|
|
32
|
+
// Also binds the open on platforms without O_NOFOLLOW (spec 011).
|
|
33
|
+
if (!opened.isFile() || !entry.isFile() || opened.dev !== entry.dev || opened.ino !== entry.ino)
|
|
34
|
+
return key;
|
|
35
|
+
const existing = readFileSync(fd, 'utf8').trim();
|
|
15
36
|
if (existing)
|
|
16
37
|
return existing;
|
|
17
38
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
// Pin permissions and writes to the opened file, never a replaced pathname.
|
|
40
|
+
fchmodSync(fd, 0o600);
|
|
41
|
+
const contents = `${key}\n`;
|
|
42
|
+
let written = 0;
|
|
43
|
+
while (written < contents.length) {
|
|
44
|
+
const count = writeSync(fd, contents.slice(written), written, 'utf8');
|
|
45
|
+
if (count === 0)
|
|
46
|
+
throw new Error('launch-key write made no progress');
|
|
47
|
+
written += count;
|
|
48
|
+
}
|
|
49
|
+
ftruncateSync(fd, key.length + 1);
|
|
27
50
|
}
|
|
28
51
|
catch {
|
|
29
52
|
// non-fatal: the key still protects auto-start for this process lifetime
|
|
30
53
|
}
|
|
54
|
+
finally {
|
|
55
|
+
if (fd !== undefined) {
|
|
56
|
+
try {
|
|
57
|
+
closeSync(fd);
|
|
58
|
+
}
|
|
59
|
+
catch { /* best-effort cleanup */ }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
31
62
|
return key;
|
|
32
63
|
}
|
|
33
64
|
//# sourceMappingURL=launch-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch-key.js","sourceRoot":"","sources":["../../src/server/launch-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"launch-key.js","sourceRoot":"","sources":["../../src/server/launch-key.ts"],"names":[],"mappings":"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"}
|
|
@@ -15,6 +15,19 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
15
15
|
}): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
16
16
|
"/worktree-lifecycle": {
|
|
17
17
|
$get: {
|
|
18
|
+
output: {
|
|
19
|
+
error: string;
|
|
20
|
+
};
|
|
21
|
+
outputFormat: "json";
|
|
22
|
+
status: 400 | 404 | 409;
|
|
23
|
+
input: {
|
|
24
|
+
query: {
|
|
25
|
+
attentionOnly?: "false" | "true" | undefined;
|
|
26
|
+
cursor?: string | undefined;
|
|
27
|
+
limit?: unknown;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
} | {
|
|
18
31
|
output: {
|
|
19
32
|
worktrees: {
|
|
20
33
|
worktreeId: string;
|
|
@@ -90,24 +103,23 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
90
103
|
limit?: unknown;
|
|
91
104
|
};
|
|
92
105
|
};
|
|
93
|
-
}
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
} & {
|
|
109
|
+
"/worktree-lifecycle/preview": {
|
|
110
|
+
$post: {
|
|
94
111
|
output: {
|
|
95
112
|
error: string;
|
|
96
113
|
};
|
|
97
114
|
outputFormat: "json";
|
|
98
115
|
status: 400 | 404 | 409;
|
|
99
116
|
input: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
limit?: unknown;
|
|
117
|
+
json: {
|
|
118
|
+
command: string;
|
|
119
|
+
worktreeId?: string | undefined;
|
|
104
120
|
};
|
|
105
121
|
};
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
} & {
|
|
109
|
-
"/worktree-lifecycle/preview": {
|
|
110
|
-
$post: {
|
|
122
|
+
} | {
|
|
111
123
|
output: {
|
|
112
124
|
renderedCommand: string;
|
|
113
125
|
variables: {
|
|
@@ -127,7 +139,11 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
127
139
|
worktreeId?: string | undefined;
|
|
128
140
|
};
|
|
129
141
|
};
|
|
130
|
-
}
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
} & {
|
|
145
|
+
"/worktree-lifecycle/operations": {
|
|
146
|
+
$post: {
|
|
131
147
|
output: {
|
|
132
148
|
error: string;
|
|
133
149
|
};
|
|
@@ -135,15 +151,16 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
135
151
|
status: 400 | 404 | 409;
|
|
136
152
|
input: {
|
|
137
153
|
json: {
|
|
138
|
-
|
|
139
|
-
|
|
154
|
+
requestId: string;
|
|
155
|
+
runId: string;
|
|
156
|
+
intent: "delete-task" | "reclaim" | "remove-worktree";
|
|
157
|
+
} | {
|
|
158
|
+
requestId: string;
|
|
159
|
+
worktreeId: string;
|
|
160
|
+
intent: "orphan";
|
|
140
161
|
};
|
|
141
162
|
};
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
} & {
|
|
145
|
-
"/worktree-lifecycle/operations": {
|
|
146
|
-
$post: {
|
|
163
|
+
} | {
|
|
147
164
|
output: {
|
|
148
165
|
operation: {
|
|
149
166
|
id: string;
|
|
@@ -207,33 +224,27 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
207
224
|
intent: "orphan";
|
|
208
225
|
};
|
|
209
226
|
};
|
|
210
|
-
}
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
} & {
|
|
230
|
+
"/worktree-lifecycle/operations/:operationId": {
|
|
231
|
+
$get: {
|
|
211
232
|
output: {
|
|
212
233
|
error: string;
|
|
213
234
|
};
|
|
214
235
|
outputFormat: "json";
|
|
215
|
-
status: 400
|
|
236
|
+
status: 400;
|
|
216
237
|
input: {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
runId: string;
|
|
220
|
-
intent: "delete-task" | "reclaim" | "remove-worktree";
|
|
221
|
-
} | {
|
|
222
|
-
requestId: string;
|
|
223
|
-
worktreeId: string;
|
|
224
|
-
intent: "orphan";
|
|
238
|
+
param: {
|
|
239
|
+
operationId: string;
|
|
225
240
|
};
|
|
226
241
|
};
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
} & {
|
|
230
|
-
"/worktree-lifecycle/operations/:operationId": {
|
|
231
|
-
$get: {
|
|
242
|
+
} | {
|
|
232
243
|
output: {
|
|
233
244
|
error: string;
|
|
234
245
|
};
|
|
235
246
|
outputFormat: "json";
|
|
236
|
-
status: 400;
|
|
247
|
+
status: 400 | 404 | 409;
|
|
237
248
|
input: {
|
|
238
249
|
param: {
|
|
239
250
|
operationId: string;
|
|
@@ -297,6 +308,27 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
297
308
|
operationId: string;
|
|
298
309
|
};
|
|
299
310
|
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
} & {
|
|
314
|
+
"/worktree-lifecycle/operations/:operationId/actions": {
|
|
315
|
+
$post: {
|
|
316
|
+
output: {
|
|
317
|
+
error: string;
|
|
318
|
+
};
|
|
319
|
+
outputFormat: "json";
|
|
320
|
+
status: 400;
|
|
321
|
+
input: {
|
|
322
|
+
param: {
|
|
323
|
+
operationId: string;
|
|
324
|
+
};
|
|
325
|
+
} & {
|
|
326
|
+
json: {
|
|
327
|
+
requestId: string;
|
|
328
|
+
expectedRevision: number;
|
|
329
|
+
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
300
332
|
} | {
|
|
301
333
|
output: {
|
|
302
334
|
error: string;
|
|
@@ -307,12 +339,14 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
307
339
|
param: {
|
|
308
340
|
operationId: string;
|
|
309
341
|
};
|
|
342
|
+
} & {
|
|
343
|
+
json: {
|
|
344
|
+
requestId: string;
|
|
345
|
+
expectedRevision: number;
|
|
346
|
+
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
347
|
+
};
|
|
310
348
|
};
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
} & {
|
|
314
|
-
"/worktree-lifecycle/operations/:operationId/actions": {
|
|
315
|
-
$post: {
|
|
349
|
+
} | {
|
|
316
350
|
output: {
|
|
317
351
|
operation: {
|
|
318
352
|
id: string;
|
|
@@ -376,7 +410,11 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
376
410
|
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
377
411
|
};
|
|
378
412
|
};
|
|
379
|
-
}
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
} & {
|
|
416
|
+
"/worktree-lifecycle/operations/:operationId/output": {
|
|
417
|
+
$get: {
|
|
380
418
|
output: {
|
|
381
419
|
error: string;
|
|
382
420
|
};
|
|
@@ -387,10 +425,9 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
387
425
|
operationId: string;
|
|
388
426
|
};
|
|
389
427
|
} & {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
428
|
+
query: {
|
|
429
|
+
afterSeq?: unknown;
|
|
430
|
+
limit?: unknown;
|
|
394
431
|
};
|
|
395
432
|
};
|
|
396
433
|
} | {
|
|
@@ -399,27 +436,6 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
399
436
|
};
|
|
400
437
|
outputFormat: "json";
|
|
401
438
|
status: 400 | 404 | 409;
|
|
402
|
-
input: {
|
|
403
|
-
param: {
|
|
404
|
-
operationId: string;
|
|
405
|
-
};
|
|
406
|
-
} & {
|
|
407
|
-
json: {
|
|
408
|
-
requestId: string;
|
|
409
|
-
expectedRevision: number;
|
|
410
|
-
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
};
|
|
415
|
-
} & {
|
|
416
|
-
"/worktree-lifecycle/operations/:operationId/output": {
|
|
417
|
-
$get: {
|
|
418
|
-
output: {
|
|
419
|
-
error: string;
|
|
420
|
-
};
|
|
421
|
-
outputFormat: "json";
|
|
422
|
-
status: 400;
|
|
423
439
|
input: {
|
|
424
440
|
param: {
|
|
425
441
|
operationId: string;
|
|
@@ -454,32 +470,27 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
454
470
|
limit?: unknown;
|
|
455
471
|
};
|
|
456
472
|
};
|
|
457
|
-
}
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
} & {
|
|
476
|
+
"/worktree-lifecycle/:worktreeId": {
|
|
477
|
+
$get: {
|
|
458
478
|
output: {
|
|
459
479
|
error: string;
|
|
460
480
|
};
|
|
461
481
|
outputFormat: "json";
|
|
462
|
-
status: 400
|
|
482
|
+
status: 400;
|
|
463
483
|
input: {
|
|
464
484
|
param: {
|
|
465
|
-
|
|
466
|
-
};
|
|
467
|
-
} & {
|
|
468
|
-
query: {
|
|
469
|
-
afterSeq?: unknown;
|
|
470
|
-
limit?: unknown;
|
|
485
|
+
worktreeId: string;
|
|
471
486
|
};
|
|
472
487
|
};
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
} & {
|
|
476
|
-
"/worktree-lifecycle/:worktreeId": {
|
|
477
|
-
$get: {
|
|
488
|
+
} | {
|
|
478
489
|
output: {
|
|
479
490
|
error: string;
|
|
480
491
|
};
|
|
481
492
|
outputFormat: "json";
|
|
482
|
-
status: 400;
|
|
493
|
+
status: 400 | 404 | 409;
|
|
483
494
|
input: {
|
|
484
495
|
param: {
|
|
485
496
|
worktreeId: string;
|
|
@@ -606,17 +617,6 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
606
617
|
worktreeId: string;
|
|
607
618
|
};
|
|
608
619
|
};
|
|
609
|
-
} | {
|
|
610
|
-
output: {
|
|
611
|
-
error: string;
|
|
612
|
-
};
|
|
613
|
-
outputFormat: "json";
|
|
614
|
-
status: 400 | 404 | 409;
|
|
615
|
-
input: {
|
|
616
|
-
param: {
|
|
617
|
-
worktreeId: string;
|
|
618
|
-
};
|
|
619
|
-
};
|
|
620
620
|
};
|
|
621
621
|
};
|
|
622
622
|
}, "/", "/worktree-lifecycle/:worktreeId">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/cezar",
|
|
3
|
-
"version": "0.19.0-pr2004.
|
|
3
|
+
"version": "0.19.0-pr2004.4584",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"zod": "^4.4.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@open-mercato/cezar-api-client": "0.19.0-pr2004.
|
|
60
|
-
"@open-mercato/cezar-contract": "0.19.0-pr2004.
|
|
59
|
+
"@open-mercato/cezar-api-client": "0.19.0-pr2004.4584",
|
|
60
|
+
"@open-mercato/cezar-contract": "0.19.0-pr2004.4584",
|
|
61
61
|
"@types/node": "^20.14.0",
|
|
62
62
|
"@types/proper-lockfile": "4.1.4",
|
|
63
63
|
"@types/ws": "^8.18.1",
|