@open-mercato/cezar 0.19.0-pr1999.4580 → 0.19.0-pr2004.4583
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/handoff.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { dirname, join } from 'node:path';
|
|
3
3
|
/**
|
|
4
4
|
* Per-task handoff journal (spec 007): `.ai/cezar/runs/<runId>.handoff.md`,
|
|
@@ -98,6 +98,8 @@ function boundProgressLog(text) {
|
|
|
98
98
|
* continuation) is never overwritten. Returns the file path. */
|
|
99
99
|
export function seedHandoffFile(dataDir, run) {
|
|
100
100
|
const file = handoffPath(dataDir, run.id);
|
|
101
|
+
if (existsSync(file))
|
|
102
|
+
return file;
|
|
101
103
|
const header = `# Handoff — ${run.title}\n\n` +
|
|
102
104
|
`**Task id:** ${run.id}\n` +
|
|
103
105
|
`**Workflow:** ${run.workflow}\n` +
|
|
@@ -108,9 +110,7 @@ export function seedHandoffFile(dataDir, run) {
|
|
|
108
110
|
`## Resume notes\n`;
|
|
109
111
|
try {
|
|
110
112
|
mkdirSync(dirname(file), { recursive: true });
|
|
111
|
-
|
|
112
|
-
// and refuses existing symlinks (including dangling ones) without following them.
|
|
113
|
-
writeFileSync(file, header, { encoding: 'utf8', flag: 'wx' });
|
|
113
|
+
writeFileSync(file, header, 'utf8');
|
|
114
114
|
}
|
|
115
115
|
catch {
|
|
116
116
|
// best effort — a read-only data dir must not break the run
|
package/dist/handoff.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handoff.js","sourceRoot":"","sources":["../src/handoff.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"handoff.js","sourceRoot":"","sources":["../src/handoff.ts"],"names":[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C,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/D,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,MAAM;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,OAAO;YAAE,SAAS;QACvB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpB,IAAI,KAAK,CAAC,MAAM,IAAI,QAAQ;YAAE,MAAM;IACtC,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,KAAa;IAC1D,IAAI,CAAC;QACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC;QACP,cAAc;IAChB,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IACnE,OAAO,GAAG,CAAC,aAAa,KAAK,GAAG,CAAC;AACnC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;stBAsB6qB,CAAC;AAEvtB,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;uDAKkB,CAAC;AAExD,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,yBAAyB,OAAO,qBAAqB,EAAE,CAAC"}
|
|
@@ -65,20 +65,6 @@ 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
|
-
} | {
|
|
82
68
|
output: {
|
|
83
69
|
id: string;
|
|
84
70
|
runId: string;
|
|
@@ -132,6 +118,20 @@ export declare function agentSetupRoutes(deps: AgentSetupDeps): import("hono/hon
|
|
|
132
118
|
rows?: number | undefined;
|
|
133
119
|
};
|
|
134
120
|
};
|
|
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: 404;
|
|
12
12
|
input: {
|
|
13
13
|
query: {
|
|
14
14
|
projectId: string;
|
|
@@ -16,21 +16,10 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
output: {
|
|
19
|
-
|
|
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
|
-
}[];
|
|
19
|
+
error: string;
|
|
31
20
|
};
|
|
32
21
|
outputFormat: "json";
|
|
33
|
-
status:
|
|
22
|
+
status: 409;
|
|
34
23
|
input: {
|
|
35
24
|
query: {
|
|
36
25
|
projectId: string;
|
|
@@ -41,7 +30,7 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
41
30
|
error: string;
|
|
42
31
|
};
|
|
43
32
|
outputFormat: "json";
|
|
44
|
-
status:
|
|
33
|
+
status: 503;
|
|
45
34
|
input: {
|
|
46
35
|
query: {
|
|
47
36
|
projectId: string;
|
|
@@ -49,10 +38,21 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
49
38
|
};
|
|
50
39
|
} | {
|
|
51
40
|
output: {
|
|
52
|
-
|
|
41
|
+
timeZone: string;
|
|
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
|
+
}[];
|
|
53
53
|
};
|
|
54
54
|
outputFormat: "json";
|
|
55
|
-
status:
|
|
55
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
56
56
|
input: {
|
|
57
57
|
query: {
|
|
58
58
|
projectId: string;
|
|
@@ -208,6 +208,24 @@ 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
|
+
} | {
|
|
211
229
|
output: {
|
|
212
230
|
snapshotId: string;
|
|
213
231
|
asOf: string;
|
|
@@ -267,7 +285,11 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
267
285
|
limit?: unknown;
|
|
268
286
|
};
|
|
269
287
|
};
|
|
270
|
-
}
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
} & {
|
|
291
|
+
"/workspace/dashboard/tasks": {
|
|
292
|
+
$get: {
|
|
271
293
|
output: {
|
|
272
294
|
error: 'Dashboard changed; refresh the list';
|
|
273
295
|
code: 'snapshot-expired';
|
|
@@ -276,20 +298,13 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
276
298
|
status: 409;
|
|
277
299
|
input: {
|
|
278
300
|
query: {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
snapshotId?: string | undefined;
|
|
282
|
-
projectId?: string | undefined;
|
|
283
|
-
group?: "completed" | "failed" | "needs-you" | "running" | undefined;
|
|
301
|
+
snapshotId: string;
|
|
302
|
+
group: "needs-you" | "questions" | "queued" | "reviews" | "running" | "scheduled";
|
|
284
303
|
offset?: unknown;
|
|
285
304
|
limit?: unknown;
|
|
286
305
|
};
|
|
287
306
|
};
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
} & {
|
|
291
|
-
"/workspace/dashboard/tasks": {
|
|
292
|
-
$get: {
|
|
307
|
+
} | {
|
|
293
308
|
output: {
|
|
294
309
|
snapshotId: string;
|
|
295
310
|
asOf: string;
|
|
@@ -370,7 +385,11 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
370
385
|
limit?: unknown;
|
|
371
386
|
};
|
|
372
387
|
};
|
|
373
|
-
}
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
} & {
|
|
391
|
+
"/workspace/dashboard/costs": {
|
|
392
|
+
$get: {
|
|
374
393
|
output: {
|
|
375
394
|
error: 'Dashboard changed; refresh the list';
|
|
376
395
|
code: 'snapshot-expired';
|
|
@@ -379,17 +398,16 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
379
398
|
status: 409;
|
|
380
399
|
input: {
|
|
381
400
|
query: {
|
|
382
|
-
|
|
383
|
-
|
|
401
|
+
period?: "30d" | "7d" | "all" | undefined;
|
|
402
|
+
sort?: "cost" | "input" | "output" | undefined;
|
|
403
|
+
projectId?: string | undefined;
|
|
404
|
+
snapshotId?: string | undefined;
|
|
405
|
+
tzOffsetMinutes?: unknown;
|
|
384
406
|
offset?: unknown;
|
|
385
407
|
limit?: unknown;
|
|
386
408
|
};
|
|
387
409
|
};
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
} & {
|
|
391
|
-
"/workspace/dashboard/costs": {
|
|
392
|
-
$get: {
|
|
410
|
+
} | {
|
|
393
411
|
output: {
|
|
394
412
|
snapshotId: string;
|
|
395
413
|
asOf: string;
|
|
@@ -497,24 +515,6 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
|
|
|
497
515
|
limit?: unknown;
|
|
498
516
|
};
|
|
499
517
|
};
|
|
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
|
} & {
|
|
@@ -15,19 +15,6 @@ 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
|
-
} | {
|
|
31
18
|
output: {
|
|
32
19
|
worktrees: {
|
|
33
20
|
worktreeId: string;
|
|
@@ -103,23 +90,24 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
103
90
|
limit?: unknown;
|
|
104
91
|
};
|
|
105
92
|
};
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
} & {
|
|
109
|
-
"/worktree-lifecycle/preview": {
|
|
110
|
-
$post: {
|
|
93
|
+
} | {
|
|
111
94
|
output: {
|
|
112
95
|
error: string;
|
|
113
96
|
};
|
|
114
97
|
outputFormat: "json";
|
|
115
98
|
status: 400 | 404 | 409;
|
|
116
99
|
input: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
100
|
+
query: {
|
|
101
|
+
attentionOnly?: "false" | "true" | undefined;
|
|
102
|
+
cursor?: string | undefined;
|
|
103
|
+
limit?: unknown;
|
|
120
104
|
};
|
|
121
105
|
};
|
|
122
|
-
}
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
} & {
|
|
109
|
+
"/worktree-lifecycle/preview": {
|
|
110
|
+
$post: {
|
|
123
111
|
output: {
|
|
124
112
|
renderedCommand: string;
|
|
125
113
|
variables: {
|
|
@@ -139,11 +127,7 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
139
127
|
worktreeId?: string | undefined;
|
|
140
128
|
};
|
|
141
129
|
};
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
} & {
|
|
145
|
-
"/worktree-lifecycle/operations": {
|
|
146
|
-
$post: {
|
|
130
|
+
} | {
|
|
147
131
|
output: {
|
|
148
132
|
error: string;
|
|
149
133
|
};
|
|
@@ -151,16 +135,15 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
151
135
|
status: 400 | 404 | 409;
|
|
152
136
|
input: {
|
|
153
137
|
json: {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
intent: "delete-task" | "reclaim" | "remove-worktree";
|
|
157
|
-
} | {
|
|
158
|
-
requestId: string;
|
|
159
|
-
worktreeId: string;
|
|
160
|
-
intent: "orphan";
|
|
138
|
+
command: string;
|
|
139
|
+
worktreeId?: string | undefined;
|
|
161
140
|
};
|
|
162
141
|
};
|
|
163
|
-
}
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
} & {
|
|
145
|
+
"/worktree-lifecycle/operations": {
|
|
146
|
+
$post: {
|
|
164
147
|
output: {
|
|
165
148
|
operation: {
|
|
166
149
|
id: string;
|
|
@@ -224,27 +207,33 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
224
207
|
intent: "orphan";
|
|
225
208
|
};
|
|
226
209
|
};
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
} & {
|
|
230
|
-
"/worktree-lifecycle/operations/:operationId": {
|
|
231
|
-
$get: {
|
|
210
|
+
} | {
|
|
232
211
|
output: {
|
|
233
212
|
error: string;
|
|
234
213
|
};
|
|
235
214
|
outputFormat: "json";
|
|
236
|
-
status: 400;
|
|
215
|
+
status: 400 | 404 | 409;
|
|
237
216
|
input: {
|
|
238
|
-
|
|
239
|
-
|
|
217
|
+
json: {
|
|
218
|
+
requestId: string;
|
|
219
|
+
runId: string;
|
|
220
|
+
intent: "delete-task" | "reclaim" | "remove-worktree";
|
|
221
|
+
} | {
|
|
222
|
+
requestId: string;
|
|
223
|
+
worktreeId: string;
|
|
224
|
+
intent: "orphan";
|
|
240
225
|
};
|
|
241
226
|
};
|
|
242
|
-
}
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
} & {
|
|
230
|
+
"/worktree-lifecycle/operations/:operationId": {
|
|
231
|
+
$get: {
|
|
243
232
|
output: {
|
|
244
233
|
error: string;
|
|
245
234
|
};
|
|
246
235
|
outputFormat: "json";
|
|
247
|
-
status: 400
|
|
236
|
+
status: 400;
|
|
248
237
|
input: {
|
|
249
238
|
param: {
|
|
250
239
|
operationId: string;
|
|
@@ -308,27 +297,6 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
308
297
|
operationId: string;
|
|
309
298
|
};
|
|
310
299
|
};
|
|
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
|
-
};
|
|
332
300
|
} | {
|
|
333
301
|
output: {
|
|
334
302
|
error: string;
|
|
@@ -339,14 +307,12 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
339
307
|
param: {
|
|
340
308
|
operationId: string;
|
|
341
309
|
};
|
|
342
|
-
} & {
|
|
343
|
-
json: {
|
|
344
|
-
requestId: string;
|
|
345
|
-
expectedRevision: number;
|
|
346
|
-
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
347
|
-
};
|
|
348
310
|
};
|
|
349
|
-
}
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
} & {
|
|
314
|
+
"/worktree-lifecycle/operations/:operationId/actions": {
|
|
315
|
+
$post: {
|
|
350
316
|
output: {
|
|
351
317
|
operation: {
|
|
352
318
|
id: string;
|
|
@@ -410,11 +376,7 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
410
376
|
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
411
377
|
};
|
|
412
378
|
};
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
} & {
|
|
416
|
-
"/worktree-lifecycle/operations/:operationId/output": {
|
|
417
|
-
$get: {
|
|
379
|
+
} | {
|
|
418
380
|
output: {
|
|
419
381
|
error: string;
|
|
420
382
|
};
|
|
@@ -425,9 +387,10 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
425
387
|
operationId: string;
|
|
426
388
|
};
|
|
427
389
|
} & {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
390
|
+
json: {
|
|
391
|
+
requestId: string;
|
|
392
|
+
expectedRevision: number;
|
|
393
|
+
action: "cancel-task" | "force-delete" | "keep-worktree" | "retry" | "start-anyway" | "stop";
|
|
431
394
|
};
|
|
432
395
|
};
|
|
433
396
|
} | {
|
|
@@ -436,6 +399,27 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
436
399
|
};
|
|
437
400
|
outputFormat: "json";
|
|
438
401
|
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;
|
|
439
423
|
input: {
|
|
440
424
|
param: {
|
|
441
425
|
operationId: string;
|
|
@@ -470,27 +454,32 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
470
454
|
limit?: unknown;
|
|
471
455
|
};
|
|
472
456
|
};
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
} & {
|
|
476
|
-
"/worktree-lifecycle/:worktreeId": {
|
|
477
|
-
$get: {
|
|
457
|
+
} | {
|
|
478
458
|
output: {
|
|
479
459
|
error: string;
|
|
480
460
|
};
|
|
481
461
|
outputFormat: "json";
|
|
482
|
-
status: 400;
|
|
462
|
+
status: 400 | 404 | 409;
|
|
483
463
|
input: {
|
|
484
464
|
param: {
|
|
485
|
-
|
|
465
|
+
operationId: string;
|
|
466
|
+
};
|
|
467
|
+
} & {
|
|
468
|
+
query: {
|
|
469
|
+
afterSeq?: unknown;
|
|
470
|
+
limit?: unknown;
|
|
486
471
|
};
|
|
487
472
|
};
|
|
488
|
-
}
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
} & {
|
|
476
|
+
"/worktree-lifecycle/:worktreeId": {
|
|
477
|
+
$get: {
|
|
489
478
|
output: {
|
|
490
479
|
error: string;
|
|
491
480
|
};
|
|
492
481
|
outputFormat: "json";
|
|
493
|
-
status: 400
|
|
482
|
+
status: 400;
|
|
494
483
|
input: {
|
|
495
484
|
param: {
|
|
496
485
|
worktreeId: string;
|
|
@@ -617,6 +606,17 @@ export declare function worktreeLifecycleRoutes(opts?: {
|
|
|
617
606
|
worktreeId: string;
|
|
618
607
|
};
|
|
619
608
|
};
|
|
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-
|
|
3
|
+
"version": "0.19.0-pr2004.4583",
|
|
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-
|
|
60
|
-
"@open-mercato/cezar-contract": "0.19.0-
|
|
59
|
+
"@open-mercato/cezar-api-client": "0.19.0-pr2004.4583",
|
|
60
|
+
"@open-mercato/cezar-contract": "0.19.0-pr2004.4583",
|
|
61
61
|
"@types/node": "^20.14.0",
|
|
62
62
|
"@types/proper-lockfile": "4.1.4",
|
|
63
63
|
"@types/ws": "^8.18.1",
|