@open-mercato/cezar 0.20.0 → 0.21.0-pr1879.5291

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: 404;
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
- error: string;
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: 409;
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: 503;
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
- 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
- }[];
52
+ error: string;
53
53
  };
54
54
  outputFormat: "json";
55
- status: import("hono/utils/http-status").ContentfulStatusCode;
55
+ status: 503;
56
56
  input: {
57
57
  query: {
58
58
  projectId: string;
@@ -222,24 +222,6 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
222
222
  } & {
223
223
  "/workspace/dashboard/overview": {
224
224
  $get: {
225
- output: {
226
- error: 'Dashboard changed; refresh the list';
227
- code: 'snapshot-expired';
228
- };
229
- outputFormat: "json";
230
- status: 409;
231
- input: {
232
- query: {
233
- period?: "30d" | "7d" | undefined;
234
- tzOffsetMinutes?: unknown;
235
- snapshotId?: string | undefined;
236
- projectId?: string | undefined;
237
- group?: "completed" | "failed" | "needs-you" | "running" | undefined;
238
- offset?: unknown;
239
- limit?: unknown;
240
- };
241
- };
242
- } | {
243
225
  output: {
244
226
  snapshotId: string;
245
227
  asOf: string;
@@ -299,11 +281,7 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
299
281
  limit?: unknown;
300
282
  };
301
283
  };
302
- };
303
- };
304
- } & {
305
- "/workspace/dashboard/tasks": {
306
- $get: {
284
+ } | {
307
285
  output: {
308
286
  error: 'Dashboard changed; refresh the list';
309
287
  code: 'snapshot-expired';
@@ -312,13 +290,20 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
312
290
  status: 409;
313
291
  input: {
314
292
  query: {
315
- snapshotId: string;
316
- group: "needs-you" | "questions" | "queued" | "reviews" | "running" | "scheduled";
293
+ period?: "30d" | "7d" | undefined;
294
+ tzOffsetMinutes?: unknown;
295
+ snapshotId?: string | undefined;
296
+ projectId?: string | undefined;
297
+ group?: "completed" | "failed" | "needs-you" | "running" | undefined;
317
298
  offset?: unknown;
318
299
  limit?: unknown;
319
300
  };
320
301
  };
321
- } | {
302
+ };
303
+ };
304
+ } & {
305
+ "/workspace/dashboard/tasks": {
306
+ $get: {
322
307
  output: {
323
308
  snapshotId: string;
324
309
  asOf: string;
@@ -406,11 +391,7 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
406
391
  limit?: unknown;
407
392
  };
408
393
  };
409
- };
410
- };
411
- } & {
412
- "/workspace/dashboard/costs": {
413
- $get: {
394
+ } | {
414
395
  output: {
415
396
  error: 'Dashboard changed; refresh the list';
416
397
  code: 'snapshot-expired';
@@ -419,16 +400,17 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
419
400
  status: 409;
420
401
  input: {
421
402
  query: {
422
- period?: "30d" | "7d" | "all" | undefined;
423
- sort?: "cost" | "input" | "output" | undefined;
424
- projectId?: string | undefined;
425
- snapshotId?: string | undefined;
426
- tzOffsetMinutes?: unknown;
403
+ snapshotId: string;
404
+ group: "needs-you" | "questions" | "queued" | "reviews" | "running" | "scheduled";
427
405
  offset?: unknown;
428
406
  limit?: unknown;
429
407
  };
430
408
  };
431
- } | {
409
+ };
410
+ };
411
+ } & {
412
+ "/workspace/dashboard/costs": {
413
+ $get: {
432
414
  output: {
433
415
  snapshotId: string;
434
416
  asOf: string;
@@ -536,6 +518,24 @@ export declare function dashboardRoutes(reader: DashboardReader, visibility?: ()
536
518
  limit?: unknown;
537
519
  };
538
520
  };
521
+ } | {
522
+ output: {
523
+ error: 'Dashboard changed; refresh the list';
524
+ code: 'snapshot-expired';
525
+ };
526
+ outputFormat: "json";
527
+ status: 409;
528
+ input: {
529
+ query: {
530
+ period?: "30d" | "7d" | "all" | undefined;
531
+ sort?: "cost" | "input" | "output" | undefined;
532
+ projectId?: string | undefined;
533
+ snapshotId?: string | undefined;
534
+ tzOffsetMinutes?: unknown;
535
+ offset?: unknown;
536
+ limit?: unknown;
537
+ };
538
+ };
539
539
  };
540
540
  };
541
541
  } & {
@@ -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
- query: {
101
- attentionOnly?: "false" | "true" | undefined;
102
- cursor?: string | undefined;
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
- command: string;
139
- worktreeId?: string | undefined;
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 | 404 | 409;
236
+ status: 400;
216
237
  input: {
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";
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
- json: {
391
- requestId: string;
392
- expectedRevision: number;
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 | 404 | 409;
482
+ status: 400;
463
483
  input: {
464
484
  param: {
465
- operationId: string;
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.20.0",
3
+ "version": "0.21.0-pr1879.5291",
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.6.7"
57
57
  },
58
58
  "devDependencies": {
59
- "@open-mercato/cezar-api-client": "^0.20.0",
60
- "@open-mercato/cezar-contract": "^0.20.0",
59
+ "@open-mercato/cezar-api-client": "0.21.0-pr1879.5291",
60
+ "@open-mercato/cezar-contract": "0.21.0-pr1879.5291",
61
61
  "@types/node": "^20.14.0",
62
62
  "@types/proper-lockfile": "4.1.4",
63
63
  "@types/ws": "^8.18.1",
@@ -1 +0,0 @@
1
- {"service":"01a12be6-6bfe-7d2e-b6b7-0514cce83f21"}