@open-mercato/cezar 0.15.0 → 0.15.1
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/automations/github-poller.d.ts +8 -1
- package/dist/automations/github-poller.js +78 -13
- package/dist/automations/github-poller.js.map +1 -1
- package/dist/automations/pr-head.js +15 -1
- package/dist/automations/pr-head.js.map +1 -1
- package/dist/automations/prompts.js +2 -2
- package/dist/automations/types.d.ts +10 -0
- package/dist/automations/types.js +12 -1
- package/dist/automations/types.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +6 -0
- package/dist/config.js.map +1 -1
- package/dist/contract/automations.d.ts +31 -1
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +161 -17
- package/dist/contract/projects.d.ts +46 -0
- package/dist/contract/runs.d.ts +15 -0
- package/dist/contract/skills.d.ts +1 -0
- package/dist/contract/telemetry.d.ts +124 -0
- package/dist/contract/workspace.d.ts +3 -0
- package/dist/core/cursor-agent-runner.d.ts +11 -0
- package/dist/core/cursor-agent-runner.js +48 -4
- package/dist/core/cursor-agent-runner.js.map +1 -1
- package/dist/core/disclaim-spawn.d.ts +10 -0
- package/dist/core/disclaim-spawn.js +105 -8
- package/dist/core/disclaim-spawn.js.map +1 -1
- package/dist/git-diff-base.js +26 -19
- package/dist/git-diff-base.js.map +1 -1
- package/dist/git-remotes.d.ts +43 -0
- package/dist/git-remotes.js +127 -0
- package/dist/git-remotes.js.map +1 -0
- package/dist/git-worktree.d.ts +43 -19
- package/dist/git-worktree.js +138 -54
- package/dist/git-worktree.js.map +1 -1
- package/dist/index.js +46 -6
- package/dist/index.js.map +1 -1
- package/dist/runs/auto-name.d.ts +17 -0
- package/dist/runs/auto-name.js +47 -2
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/runs/event-history.d.ts +10 -2
- package/dist/runs/event-history.js +290 -120
- package/dist/runs/event-history.js.map +1 -1
- package/dist/runs/retention.js +1 -1
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/store.d.ts +16 -3
- package/dist/runs/store.js +89 -10
- package/dist/runs/store.js.map +1 -1
- package/dist/server/checkout.d.ts +4 -0
- package/dist/server/checkout.js +9 -5
- package/dist/server/checkout.js.map +1 -1
- package/dist/server/create-project.d.ts +77 -0
- package/dist/server/create-project.js +342 -0
- package/dist/server/create-project.js.map +1 -0
- package/dist/server/forge/github.d.ts +2 -0
- package/dist/server/forge/github.js +32 -10
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/forge/index.d.ts +1 -12
- package/dist/server/forge/index.js +7 -29
- package/dist/server/forge/index.js.map +1 -1
- package/dist/server/forge/types.d.ts +2 -0
- package/dist/server/git-changes.d.ts +15 -0
- package/dist/server/git-changes.js +51 -1
- package/dist/server/git-changes.js.map +1 -1
- package/dist/server/git.d.ts +3 -2
- package/dist/server/git.js +4 -3
- package/dist/server/git.js.map +1 -1
- package/dist/server/project-context.js +1 -1
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/server.d.ts +609 -302
- package/dist/server/server.js +191 -12
- package/dist/server/server.js.map +1 -1
- package/dist/server/star-count.d.ts +27 -11
- package/dist/server/star-count.js +57 -28
- package/dist/server/star-count.js.map +1 -1
- package/dist/telemetry-cli.d.ts +10 -0
- package/dist/telemetry-cli.js +54 -0
- package/dist/telemetry-cli.js.map +1 -0
- package/dist/telemetry-service.json +1 -0
- package/dist/telemetry.d.ts +79 -0
- package/dist/telemetry.js +453 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/workflows/run.d.ts +28 -0
- package/dist/workflows/run.js +111 -16
- package/dist/workflows/run.js.map +1 -1
- package/dist/workspace/config.d.ts +10 -0
- package/dist/workspace/config.js +16 -0
- package/dist/workspace/config.js.map +1 -1
- package/dist/workspace/projects-cli.js +3 -0
- package/dist/workspace/projects-cli.js.map +1 -1
- package/package.json +3 -3
- package/scripts/mock-claude.mjs +32 -17
- package/scripts/stamp-telemetry-service.mjs +20 -0
- package/web/dist/assets/agent-task-pickers-mJzYn0UB.js +1 -0
- package/web/dist/assets/{alert-dialog-CF_-dmQ1.js → alert-dialog-Dd1WPOaz.js} +1 -1
- package/web/dist/assets/arrow-left-fsST4JqT.js +1 -0
- package/web/dist/assets/{automation-format-D1nqk0ID.js → automation-format-BTIFWfjt.js} +1 -1
- package/web/dist/assets/automations-route-DJjhwqug.js +1 -0
- package/web/dist/assets/button-BNnH7COh.js +100 -0
- package/web/dist/assets/{centered-state-T0J7VmBb.js → centered-state-sEYB3bgq.js} +1 -1
- package/web/dist/assets/check-DA37PQLT.js +1 -0
- package/web/dist/assets/chevron-left-zbXV2Qbu.js +1 -0
- package/web/dist/assets/chevron-right-Beu1pd6H.js +1 -0
- package/web/dist/assets/{collapsible-RD4hkew7.js → collapsible-MuXfYnM8.js} +1 -1
- package/web/dist/assets/commit-list-Bps23fvP.js +1 -0
- package/web/dist/assets/compare-variants-CQskdfDW.js +1 -0
- package/web/dist/assets/composer-DKWLJeo9.js +18 -0
- package/web/dist/assets/dashboard-BCNe_6p7.js +44 -0
- package/web/dist/assets/diff-CrLUECGW.js +3 -0
- package/web/dist/assets/{diff-stat-CFoeFye2.js → diff-stat-SpfygteL.js} +1 -1
- package/web/dist/assets/diff-view-DP4Gw3QJ.js +13 -0
- package/web/dist/assets/{download-BFQEsJRY.js → download-CBwSbmy_.js} +1 -1
- package/web/dist/assets/dropdown-menu-CxPGHgWX.js +1 -0
- package/web/dist/assets/ellipsis-BmusVE8U.js +1 -0
- package/web/dist/assets/{file-Df5WtpM_.js → file-DkvcUwxT.js} +1 -1
- package/web/dist/assets/file-preview-DxFusXAO.js +2 -0
- package/web/dist/assets/file-text-DBeC0yKb.js +1 -0
- package/web/dist/assets/file-tree-BTJZXRkM.js +1 -0
- package/web/dist/assets/{git-commit-horizontal-DawNm4qg.js → git-commit-horizontal-BM9_nEW7.js} +1 -1
- package/web/dist/assets/git-toolbar-DXyPCDkQ.js +1 -0
- package/web/dist/assets/github-G5fU4gJd.js +1 -0
- package/web/dist/assets/index-BN3w52uE.js +21 -0
- package/web/dist/assets/index-CAvSSpvF.css +2 -0
- package/web/dist/assets/{markdown-Bmfy_1Ll.js → markdown-BpZ4p95p.js} +1 -1
- package/web/dist/assets/{markdown-B_O1ys3h.js → markdown-C5F95Rt-.js} +1 -1
- package/web/dist/assets/{message-square-BOO9s3qX.js → message-square-BFQln9c4.js} +1 -1
- package/web/dist/assets/{pill-bO5OcHuK.js → pill-BcIQGDbn.js} +1 -1
- package/web/dist/assets/project-router-CWMOKp_H.js +3 -0
- package/web/dist/assets/reference-chip-B7lU_Pyh.js +1 -0
- package/web/dist/assets/reference-overflow-ClRRXWez.js +1 -0
- package/web/dist/assets/{refresh-cw-BaFyjVUz.js → refresh-cw-BBEYC6z2.js} +1 -1
- package/web/dist/assets/repo-git-CgxxZ7cO.js +1 -0
- package/web/dist/assets/{run-diff-GZbNs8fA.js → run-diff-BTB7nBeD.js} +1 -1
- package/web/dist/assets/run-header-BPNBEaOy.js +1 -0
- package/web/dist/assets/{image-preview-4SVDrBvn.js → scroll-within-DRt7mAnQ.js} +1 -1
- package/web/dist/assets/{search-x-bpAfQtVY.js → search-x-6BavY3mg.js} +1 -1
- package/web/dist/assets/sheet-D9PeyyRZ.js +1 -0
- package/web/dist/assets/skills-SIMzpL0l.js +1 -0
- package/web/dist/assets/square-DsFAQaY9.js +1 -0
- package/web/dist/assets/tab-link-DEUSZU49.js +1 -0
- package/web/dist/assets/{tag-DLwUkUsN.js → tag-DvCVnA6I.js} +1 -1
- package/web/dist/assets/task-changes-D-aajoMU.js +1 -0
- package/web/dist/assets/task-commits-BYD1GVkS.js +1 -0
- package/web/dist/assets/task-composer-7bdNNMP_.js +12 -0
- package/web/dist/assets/task-files-BfIOz-eN.js +1 -0
- package/web/dist/assets/task-graph-B5-5_IPh.js +1 -0
- package/web/dist/assets/task-notes-CfkTBgo8.js +1 -0
- package/web/dist/assets/task-thread-eEkjTDxr.js +10 -0
- package/web/dist/assets/{terminal-CwrL1hAi.js → terminal-xRHwWarr.js} +1 -1
- package/web/dist/assets/textarea-rKUFh5lI.js +1 -0
- package/web/dist/assets/thread-loading-DLlbK51g.js +1 -0
- package/web/dist/assets/{token-metrics-C149OWmd.js → token-metrics-BcPjL36-.js} +1 -1
- package/web/dist/assets/tooltip-BVqBAGNb.js +1 -0
- package/web/dist/assets/tracker-2DfMzsIE.js +4 -0
- package/web/dist/assets/triangle-alert-CP3Xp0FU.js +1 -0
- package/web/dist/assets/upload-bwO_2kok.js +1 -0
- package/web/dist/assets/use-automations-PceYR6ss.js +5 -0
- package/web/dist/assets/use-now-BAKdIYLG.js +1 -0
- package/web/dist/assets/use-submit-shortcut-BA4NVpJl.js +1 -0
- package/web/dist/assets/workflow-graph-HopaWPea.js +13 -0
- package/web/dist/assets/x-HaVPcg_B.js +1 -0
- package/web/dist/index.html +28 -31
- package/web/dist/assets/agent-task-pickers-C3ydGatB.js +0 -1
- package/web/dist/assets/arrow-left-BxBdc5DC.js +0 -1
- package/web/dist/assets/automations-route-BsflncpV.js +0 -1
- package/web/dist/assets/button-CjSjKnkd.js +0 -100
- package/web/dist/assets/check-DAAMuI4o.js +0 -1
- package/web/dist/assets/chevron-left-CvcqxpQZ.js +0 -1
- package/web/dist/assets/chevron-right-DKiL3NWw.js +0 -1
- package/web/dist/assets/commit-list-BJac2uO6.js +0 -1
- package/web/dist/assets/compare-variants-CfqICvRy.js +0 -1
- package/web/dist/assets/composer-DZx3cwQW.js +0 -18
- package/web/dist/assets/dashboard-CpCDiZdE.js +0 -44
- package/web/dist/assets/diff-LG2cl0PE.js +0 -3
- package/web/dist/assets/diff-controls-QgdH-r3F.js +0 -1
- package/web/dist/assets/diff-view-BVwSaBb2.js +0 -13
- package/web/dist/assets/dropdown-menu-DkEK7m00.js +0 -1
- package/web/dist/assets/editable-title-CJSWyCcL.js +0 -1
- package/web/dist/assets/ellipsis-vertical-CB0adfr7.js +0 -1
- package/web/dist/assets/external-link-DPKRidDg.js +0 -1
- package/web/dist/assets/eye-CEHQ0c-s.js +0 -1
- package/web/dist/assets/file-preview-kYsqZiLU.js +0 -2
- package/web/dist/assets/file-text-m0tZu8sU.js +0 -1
- package/web/dist/assets/git-merge-B7oVXcKc.js +0 -1
- package/web/dist/assets/git-toolbar-B0K4Q5Zv.js +0 -1
- package/web/dist/assets/github-C4WaHPni.js +0 -1
- package/web/dist/assets/index-CiQrbvAq.js +0 -21
- package/web/dist/assets/index-WWaEax-B.css +0 -2
- package/web/dist/assets/pencil-CCR9uUZ1.js +0 -1
- package/web/dist/assets/reference-chip-Bx_mG9QG.js +0 -1
- package/web/dist/assets/repo-git-Mn3_jrGP.js +0 -1
- package/web/dist/assets/run-header-i1D5Lvfs.js +0 -1
- package/web/dist/assets/sheet-DCdZVHFk.js +0 -1
- package/web/dist/assets/skills-Dea5ynJK.js +0 -1
- package/web/dist/assets/tab-link-BVItTl_Y.js +0 -1
- package/web/dist/assets/task-changes-xNbBM7FO.js +0 -1
- package/web/dist/assets/task-commits-BYozE_X3.js +0 -1
- package/web/dist/assets/task-composer-Brx0sa7_.js +0 -12
- package/web/dist/assets/task-files-MAPO-efK.js +0 -1
- package/web/dist/assets/task-graph-BSLCUr1E.js +0 -1
- package/web/dist/assets/task-thread-CRVmwchQ.js +0 -9
- package/web/dist/assets/textarea-Bb0_Hz53.js +0 -1
- package/web/dist/assets/thread-loading-Bo6IOu3Y.js +0 -1
- package/web/dist/assets/toaster-Hj_czp_o.js +0 -3
- package/web/dist/assets/tooltip--PYfu68E.js +0 -1
- package/web/dist/assets/tracker-DM5WtYD0.js +0 -4
- package/web/dist/assets/trash-2-EdjdGvEo.js +0 -1
- package/web/dist/assets/triangle-alert-DpH3QFz6.js +0 -1
- package/web/dist/assets/use-automations-XKvBTPM-.js +0 -5
- package/web/dist/assets/use-now-CrM50BFB.js +0 -1
- package/web/dist/assets/use-submit-shortcut-BJ10ZshV.js +0 -1
- package/web/dist/assets/workflow-graph-Y2Pr7ubb.js +0 -13
- package/web/dist/assets/x-BkwTUDpG.js +0 -1
|
@@ -17,11 +17,13 @@ import { z } from 'zod';
|
|
|
17
17
|
* through the storage schemas' catchall cannot, since the route's own type admits any key. That is
|
|
18
18
|
* the same limit `contract-parity.workspace.test.ts` documents for the open GUI-pref bags.
|
|
19
19
|
*/
|
|
20
|
-
/** The GitHub activity an automation reacts to.
|
|
20
|
+
/** The GitHub activity an automation reacts to. Nine events, all bounded polls — never a webhook. */
|
|
21
21
|
export declare const automationEventSchema: z.ZodEnum<{
|
|
22
22
|
"issue.labeled": "issue.labeled";
|
|
23
23
|
"issue.opened": "issue.opened";
|
|
24
24
|
"issue.unlabeled": "issue.unlabeled";
|
|
25
|
+
"pull_request.closed": "pull_request.closed";
|
|
26
|
+
"pull_request.merged": "pull_request.merged";
|
|
25
27
|
"pull_request.opened": "pull_request.opened";
|
|
26
28
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
27
29
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -235,6 +237,8 @@ export declare const automationDefinitionSchema: z.ZodObject<{
|
|
|
235
237
|
"issue.labeled": "issue.labeled";
|
|
236
238
|
"issue.opened": "issue.opened";
|
|
237
239
|
"issue.unlabeled": "issue.unlabeled";
|
|
240
|
+
"pull_request.closed": "pull_request.closed";
|
|
241
|
+
"pull_request.merged": "pull_request.merged";
|
|
238
242
|
"pull_request.opened": "pull_request.opened";
|
|
239
243
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
240
244
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -415,6 +419,8 @@ export declare const automationLogRecordSchema: z.ZodObject<{
|
|
|
415
419
|
"issue.labeled": "issue.labeled";
|
|
416
420
|
"issue.opened": "issue.opened";
|
|
417
421
|
"issue.unlabeled": "issue.unlabeled";
|
|
422
|
+
"pull_request.closed": "pull_request.closed";
|
|
423
|
+
"pull_request.merged": "pull_request.merged";
|
|
418
424
|
"pull_request.opened": "pull_request.opened";
|
|
419
425
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
420
426
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -498,6 +504,8 @@ export declare const automationListEntrySchema: z.ZodObject<{
|
|
|
498
504
|
"issue.labeled": "issue.labeled";
|
|
499
505
|
"issue.opened": "issue.opened";
|
|
500
506
|
"issue.unlabeled": "issue.unlabeled";
|
|
507
|
+
"pull_request.closed": "pull_request.closed";
|
|
508
|
+
"pull_request.merged": "pull_request.merged";
|
|
501
509
|
"pull_request.opened": "pull_request.opened";
|
|
502
510
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
503
511
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -648,6 +656,8 @@ export declare const automationListEntrySchema: z.ZodObject<{
|
|
|
648
656
|
"issue.labeled": "issue.labeled";
|
|
649
657
|
"issue.opened": "issue.opened";
|
|
650
658
|
"issue.unlabeled": "issue.unlabeled";
|
|
659
|
+
"pull_request.closed": "pull_request.closed";
|
|
660
|
+
"pull_request.merged": "pull_request.merged";
|
|
651
661
|
"pull_request.opened": "pull_request.opened";
|
|
652
662
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
653
663
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -763,6 +773,8 @@ export declare const automationsResponseSchema: z.ZodObject<{
|
|
|
763
773
|
"issue.labeled": "issue.labeled";
|
|
764
774
|
"issue.opened": "issue.opened";
|
|
765
775
|
"issue.unlabeled": "issue.unlabeled";
|
|
776
|
+
"pull_request.closed": "pull_request.closed";
|
|
777
|
+
"pull_request.merged": "pull_request.merged";
|
|
766
778
|
"pull_request.opened": "pull_request.opened";
|
|
767
779
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
768
780
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -913,6 +925,8 @@ export declare const automationsResponseSchema: z.ZodObject<{
|
|
|
913
925
|
"issue.labeled": "issue.labeled";
|
|
914
926
|
"issue.opened": "issue.opened";
|
|
915
927
|
"issue.unlabeled": "issue.unlabeled";
|
|
928
|
+
"pull_request.closed": "pull_request.closed";
|
|
929
|
+
"pull_request.merged": "pull_request.merged";
|
|
916
930
|
"pull_request.opened": "pull_request.opened";
|
|
917
931
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
918
932
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -998,6 +1012,8 @@ export declare const automationResponseSchema: z.ZodObject<{
|
|
|
998
1012
|
"issue.labeled": "issue.labeled";
|
|
999
1013
|
"issue.opened": "issue.opened";
|
|
1000
1014
|
"issue.unlabeled": "issue.unlabeled";
|
|
1015
|
+
"pull_request.closed": "pull_request.closed";
|
|
1016
|
+
"pull_request.merged": "pull_request.merged";
|
|
1001
1017
|
"pull_request.opened": "pull_request.opened";
|
|
1002
1018
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1003
1019
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -1131,6 +1147,8 @@ export declare const automationDetailResponseSchema: z.ZodObject<{
|
|
|
1131
1147
|
"issue.labeled": "issue.labeled";
|
|
1132
1148
|
"issue.opened": "issue.opened";
|
|
1133
1149
|
"issue.unlabeled": "issue.unlabeled";
|
|
1150
|
+
"pull_request.closed": "pull_request.closed";
|
|
1151
|
+
"pull_request.merged": "pull_request.merged";
|
|
1134
1152
|
"pull_request.opened": "pull_request.opened";
|
|
1135
1153
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1136
1154
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -1282,6 +1300,8 @@ export declare const automationDetailResponseSchema: z.ZodObject<{
|
|
|
1282
1300
|
"issue.labeled": "issue.labeled";
|
|
1283
1301
|
"issue.opened": "issue.opened";
|
|
1284
1302
|
"issue.unlabeled": "issue.unlabeled";
|
|
1303
|
+
"pull_request.closed": "pull_request.closed";
|
|
1304
|
+
"pull_request.merged": "pull_request.merged";
|
|
1285
1305
|
"pull_request.opened": "pull_request.opened";
|
|
1286
1306
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1287
1307
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -1403,6 +1423,8 @@ export declare const automationLogResponseSchema: z.ZodObject<{
|
|
|
1403
1423
|
"issue.labeled": "issue.labeled";
|
|
1404
1424
|
"issue.opened": "issue.opened";
|
|
1405
1425
|
"issue.unlabeled": "issue.unlabeled";
|
|
1426
|
+
"pull_request.closed": "pull_request.closed";
|
|
1427
|
+
"pull_request.merged": "pull_request.merged";
|
|
1406
1428
|
"pull_request.opened": "pull_request.opened";
|
|
1407
1429
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1408
1430
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -1544,6 +1566,8 @@ export declare const automationTemplateSchema: z.ZodObject<{
|
|
|
1544
1566
|
"issue.labeled": "issue.labeled";
|
|
1545
1567
|
"issue.opened": "issue.opened";
|
|
1546
1568
|
"issue.unlabeled": "issue.unlabeled";
|
|
1569
|
+
"pull_request.closed": "pull_request.closed";
|
|
1570
|
+
"pull_request.merged": "pull_request.merged";
|
|
1547
1571
|
"pull_request.opened": "pull_request.opened";
|
|
1548
1572
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1549
1573
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -1615,6 +1639,8 @@ export declare const automationTemplatesResponseSchema: z.ZodObject<{
|
|
|
1615
1639
|
"issue.labeled": "issue.labeled";
|
|
1616
1640
|
"issue.opened": "issue.opened";
|
|
1617
1641
|
"issue.unlabeled": "issue.unlabeled";
|
|
1642
|
+
"pull_request.closed": "pull_request.closed";
|
|
1643
|
+
"pull_request.merged": "pull_request.merged";
|
|
1618
1644
|
"pull_request.opened": "pull_request.opened";
|
|
1619
1645
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1620
1646
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -1647,6 +1673,8 @@ export declare const createAutomationInputSchema: z.ZodObject<{
|
|
|
1647
1673
|
"issue.labeled": "issue.labeled";
|
|
1648
1674
|
"issue.opened": "issue.opened";
|
|
1649
1675
|
"issue.unlabeled": "issue.unlabeled";
|
|
1676
|
+
"pull_request.closed": "pull_request.closed";
|
|
1677
|
+
"pull_request.merged": "pull_request.merged";
|
|
1650
1678
|
"pull_request.opened": "pull_request.opened";
|
|
1651
1679
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1652
1680
|
"pull_request.review_requested": "pull_request.review_requested";
|
|
@@ -1778,6 +1806,8 @@ export declare const updateAutomationInputSchema: z.ZodObject<{
|
|
|
1778
1806
|
"issue.labeled": "issue.labeled";
|
|
1779
1807
|
"issue.opened": "issue.opened";
|
|
1780
1808
|
"issue.unlabeled": "issue.unlabeled";
|
|
1809
|
+
"pull_request.closed": "pull_request.closed";
|
|
1810
|
+
"pull_request.merged": "pull_request.merged";
|
|
1781
1811
|
"pull_request.opened": "pull_request.opened";
|
|
1782
1812
|
"pull_request.rereview_requested": "pull_request.rereview_requested";
|
|
1783
1813
|
"pull_request.review_requested": "pull_request.review_requested";
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './dashboard-insights.ts';
|
|
|
25
25
|
export * from './host.ts';
|
|
26
26
|
export * from './tracker.ts';
|
|
27
27
|
export * from './self-update.ts';
|
|
28
|
+
export * from './telemetry.ts';
|
|
28
29
|
export * from './star-count.ts';
|
|
29
30
|
export * from './secrets.ts';
|
|
30
31
|
export * from './e2e.ts';
|
package/dist/contract/index.js
CHANGED
|
@@ -1276,6 +1276,8 @@ var runRecordSchema = z8.object({
|
|
|
1276
1276
|
* runs, on any run not yet opened, and on one deliberately put back to unread via
|
|
1277
1277
|
* `POST /runs/:id/unread` (#775) — all three count as unread. */
|
|
1278
1278
|
seenAt: z8.string().optional(),
|
|
1279
|
+
/** Highest event `seq` handed out for this run (ephemeral frames included). Absent on older runs. */
|
|
1280
|
+
lastSeq: z8.number().int().nonnegative().optional(),
|
|
1279
1281
|
currentStepId: z8.string().optional(),
|
|
1280
1282
|
error: z8.string().optional(),
|
|
1281
1283
|
steps: z8.array(stepStateSchema),
|
|
@@ -1444,6 +1446,13 @@ var gitPushResponseSchema = z8.object({
|
|
|
1444
1446
|
remote: z8.string(),
|
|
1445
1447
|
upstreamSet: z8.boolean()
|
|
1446
1448
|
});
|
|
1449
|
+
var gitStatusResponseSchema = z8.object({
|
|
1450
|
+
uncommitted: z8.number(),
|
|
1451
|
+
unpushed: z8.number().nullable(),
|
|
1452
|
+
/** Commits on the task's base branch (as last fetched) the branch does not have; null when the
|
|
1453
|
+
* base cannot be resolved (none recorded, a raw sha, or a ref the repo lacks). */
|
|
1454
|
+
behind: z8.number().nullable()
|
|
1455
|
+
});
|
|
1447
1456
|
var runCommitSchema = z8.object({
|
|
1448
1457
|
sha: z8.string(),
|
|
1449
1458
|
subject: z8.string(),
|
|
@@ -1846,6 +1855,25 @@ var checkoutProjectInputSchema = z11.object({
|
|
|
1846
1855
|
name: z11.string().trim().max(128).optional(),
|
|
1847
1856
|
checkoutId: z11.string().trim().max(128).optional()
|
|
1848
1857
|
});
|
|
1858
|
+
var GITHUB_REPO_NAME_PATTERN = /^(?!\.{1,2}$)[A-Za-z0-9._-]{1,100}$/;
|
|
1859
|
+
var createProjectInputSchema = z11.object({
|
|
1860
|
+
name: z11.string().trim().regex(GITHUB_REPO_NAME_PATTERN),
|
|
1861
|
+
github: z11.object({
|
|
1862
|
+
owner: z11.string().trim().min(1).max(64),
|
|
1863
|
+
template: z11.string().trim().max(512).optional()
|
|
1864
|
+
}).optional(),
|
|
1865
|
+
checkoutId: z11.string().trim().max(128).optional()
|
|
1866
|
+
});
|
|
1867
|
+
var githubOwnerSchema = z11.object({
|
|
1868
|
+
login: z11.string(),
|
|
1869
|
+
personal: z11.boolean(),
|
|
1870
|
+
avatarUrl: z11.string().optional(),
|
|
1871
|
+
description: z11.string().optional()
|
|
1872
|
+
});
|
|
1873
|
+
var githubOwnersResponseSchema = z11.discriminatedUnion("available", [
|
|
1874
|
+
z11.object({ available: z11.literal(true), owners: z11.array(githubOwnerSchema) }),
|
|
1875
|
+
z11.object({ available: z11.literal(false), reason: z11.string() })
|
|
1876
|
+
]);
|
|
1849
1877
|
var fsBrowseDirSchema = z11.object({
|
|
1850
1878
|
name: z11.string(),
|
|
1851
1879
|
path: z11.string(),
|
|
@@ -2128,6 +2156,9 @@ var configResponseSchema = z12.object({
|
|
|
2128
2156
|
baseBranch: z12.string().nullable(),
|
|
2129
2157
|
defaultRunner: runnerSchema,
|
|
2130
2158
|
systemPrompt: z12.string().nullable(),
|
|
2159
|
+
/** Free-text branch naming instructions (spec 2026-10-11-branch-naming-instructions); null =
|
|
2160
|
+
* task branches stay `cez/<id8>`. */
|
|
2161
|
+
branchNaming: z12.string().nullable(),
|
|
2131
2162
|
defaultModels: runnerModelsSchema,
|
|
2132
2163
|
/** True when native coding-agent settings are authoritative and model picks are read-only. */
|
|
2133
2164
|
modelsLocked: z12.boolean(),
|
|
@@ -2149,6 +2180,8 @@ var setConfigInputSchema = z12.object({
|
|
|
2149
2180
|
baseBranch: z12.string().trim().min(1).max(200).nullable().optional(),
|
|
2150
2181
|
defaultRunner: runnerSchema.optional(),
|
|
2151
2182
|
systemPrompt: z12.string().trim().max(2e4).nullable().optional(),
|
|
2183
|
+
/** Clears on `null` or `''` like `systemPrompt`. */
|
|
2184
|
+
branchNaming: z12.string().trim().max(4e3).nullable().optional(),
|
|
2152
2185
|
defaultModels: z12.object({
|
|
2153
2186
|
claude: z12.string().trim().max(200).nullable().optional(),
|
|
2154
2187
|
codex: z12.string().trim().max(200).nullable().optional(),
|
|
@@ -2711,7 +2744,9 @@ var automationEventSchema = z17.enum([
|
|
|
2711
2744
|
"issue.unlabeled",
|
|
2712
2745
|
"pull_request.reviewed",
|
|
2713
2746
|
"pull_request.review_requested",
|
|
2714
|
-
"pull_request.rereview_requested"
|
|
2747
|
+
"pull_request.rereview_requested",
|
|
2748
|
+
"pull_request.closed",
|
|
2749
|
+
"pull_request.merged"
|
|
2715
2750
|
]);
|
|
2716
2751
|
var trackerTriggerSchema = z17.object({
|
|
2717
2752
|
events: z17.array(trackerAutomationEventSchema).min(1).max(4),
|
|
@@ -3451,35 +3486,128 @@ var selfUpdateDevelopmentSchema = z23.object({
|
|
|
3451
3486
|
})
|
|
3452
3487
|
});
|
|
3453
3488
|
|
|
3454
|
-
// ../contract/src/
|
|
3489
|
+
// ../contract/src/telemetry.ts
|
|
3455
3490
|
import { z as z24 } from "zod";
|
|
3456
|
-
var
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3491
|
+
var telemetryConsentSchema = z24.object({
|
|
3492
|
+
consent: z24.enum(["unknown", "granted", "denied"]),
|
|
3493
|
+
policyVersion: z24.number().int(),
|
|
3494
|
+
blockedBy: z24.enum(["env", "automation"]).nullable(),
|
|
3495
|
+
endpoint: z24.string()
|
|
3496
|
+
});
|
|
3497
|
+
var setTelemetryConsentInputSchema = z24.object({ consent: z24.enum(["granted", "denied"]) });
|
|
3498
|
+
var TELEMETRY_ROUTE_SEGMENTS = [
|
|
3499
|
+
"p",
|
|
3500
|
+
"new",
|
|
3501
|
+
"tasks",
|
|
3502
|
+
"changes",
|
|
3503
|
+
"files",
|
|
3504
|
+
"commits",
|
|
3505
|
+
"compare",
|
|
3506
|
+
"git",
|
|
3507
|
+
"branches",
|
|
3508
|
+
"log",
|
|
3509
|
+
"github",
|
|
3510
|
+
"prs",
|
|
3511
|
+
"issues",
|
|
3512
|
+
"tracker",
|
|
3513
|
+
"skills",
|
|
3514
|
+
"inbox",
|
|
3515
|
+
"workflows",
|
|
3516
|
+
"automations",
|
|
3517
|
+
"dashboard",
|
|
3518
|
+
"settings",
|
|
3519
|
+
"global",
|
|
3520
|
+
"agents",
|
|
3521
|
+
"agent-config",
|
|
3522
|
+
"worktrees",
|
|
3523
|
+
"bookmarklets",
|
|
3524
|
+
"prompt-templates",
|
|
3525
|
+
"appearance",
|
|
3526
|
+
"notifications",
|
|
3527
|
+
"resources",
|
|
3528
|
+
"accounts",
|
|
3529
|
+
"projects",
|
|
3530
|
+
"keyboard",
|
|
3531
|
+
"graph",
|
|
3532
|
+
"integrations",
|
|
3533
|
+
"secrets",
|
|
3534
|
+
"workflows-new",
|
|
3535
|
+
"workspace-secrets",
|
|
3536
|
+
"privacy"
|
|
3537
|
+
];
|
|
3538
|
+
var telemetryRouteSchema = z24.string().max(64).refine(
|
|
3539
|
+
(route) => route.startsWith("/") && route.split("/").slice(1).every(
|
|
3540
|
+
(segment, i, all) => segment === "" ? all.length === 1 : segment === ":param" || TELEMETRY_ROUTE_SEGMENTS.includes(segment)
|
|
3541
|
+
),
|
|
3542
|
+
{ message: "a route shape: known segments and :param only" }
|
|
3543
|
+
);
|
|
3544
|
+
var telemetryPageInputSchema = z24.object({ route: telemetryRouteSchema });
|
|
3545
|
+
var telemetryContextValueSchema = z24.union([z24.string().max(1024), z24.number(), z24.boolean(), z24.null()]);
|
|
3546
|
+
var telemetryErrorInputSchema = z24.object({
|
|
3547
|
+
type: z24.string().max(128),
|
|
3548
|
+
message: z24.string().max(2048),
|
|
3549
|
+
stack: z24.string().max(16384).optional(),
|
|
3550
|
+
handler: z24.string().max(64).optional(),
|
|
3551
|
+
/** Stable machine-readable code, e.g. `chunk_load_failed`. */
|
|
3552
|
+
code: z24.string().max(128).optional(),
|
|
3553
|
+
/** Custom grouping key, for errors whose stack/message differ per engine. */
|
|
3554
|
+
fingerprint: z24.string().max(128).optional(),
|
|
3555
|
+
context: z24.record(z24.string().max(64), telemetryContextValueSchema).refine((ctx) => Object.keys(ctx).length <= 32, { message: "at most 32 context keys" }).optional()
|
|
3556
|
+
});
|
|
3557
|
+
var MESSAGE_SURFACES = [
|
|
3558
|
+
"new_task",
|
|
3559
|
+
"bookmarklet",
|
|
3560
|
+
"existing_session",
|
|
3561
|
+
"ask_answer",
|
|
3562
|
+
"review",
|
|
3563
|
+
"github",
|
|
3564
|
+
"tracker",
|
|
3565
|
+
"inbox",
|
|
3566
|
+
"skills_import",
|
|
3567
|
+
"cli"
|
|
3568
|
+
];
|
|
3569
|
+
var messageSurfaceSchema = z24.enum(MESSAGE_SURFACES);
|
|
3570
|
+
var ADD_PROJECT_DIALOGS = ["new", "clone", "folder"];
|
|
3571
|
+
var addProjectDialogSchema = z24.enum(ADD_PROJECT_DIALOGS);
|
|
3572
|
+
var telemetryEventInputSchema = z24.discriminatedUnion("event", [
|
|
3573
|
+
z24.object({ event: z24.literal("message_sent"), label: messageSurfaceSchema.exclude(["cli"]) }),
|
|
3574
|
+
/** A review comment left on the Changes tab's diff: on one line, or on a selected range. */
|
|
3575
|
+
z24.object({ event: z24.literal("diff_comment_added"), label: z24.enum(["single_line", "multi_line"]) }),
|
|
3576
|
+
/** One of the sidebar's "Add project" dialogs was opened: New project, Clone from GitHub, or
|
|
3577
|
+
* Open local folder. With `project_added`, the funnel of each add flow. */
|
|
3578
|
+
z24.object({ event: z24.literal("add_project_opened"), label: addProjectDialogSchema })
|
|
3579
|
+
]);
|
|
3580
|
+
|
|
3581
|
+
// ../contract/src/star-count.ts
|
|
3582
|
+
import { z as z25 } from "zod";
|
|
3583
|
+
var starCountSchema = z25.object({
|
|
3584
|
+
available: z25.boolean(),
|
|
3585
|
+
count: z25.number().int().nonnegative().optional(),
|
|
3586
|
+
url: z25.string()
|
|
3460
3587
|
});
|
|
3461
3588
|
|
|
3462
3589
|
// ../contract/src/e2e.ts
|
|
3463
|
-
import { z as
|
|
3590
|
+
import { z as z26 } from "zod";
|
|
3464
3591
|
var E2E_SETUP_WORKFLOW_NAME = "e2e-setup";
|
|
3465
3592
|
var E2E_CREDENTIAL_NAMES = ["AI_GATEWAY_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY", "OPENROUTER_API_KEY"];
|
|
3466
|
-
var e2eCredentialNameSchema =
|
|
3467
|
-
var e2eStatusSchema =
|
|
3593
|
+
var e2eCredentialNameSchema = z26.enum(E2E_CREDENTIAL_NAMES);
|
|
3594
|
+
var e2eStatusSchema = z26.object({
|
|
3468
3595
|
/** The `e2e.config.*` file at the repository root, or `null`. */
|
|
3469
|
-
configFile:
|
|
3596
|
+
configFile: z26.string().nullable(),
|
|
3470
3597
|
/** `.ai/cezar/workflows/implement-and-e2e.yaml` exists. */
|
|
3471
|
-
workflow:
|
|
3598
|
+
workflow: z26.boolean(),
|
|
3472
3599
|
/** Which of `E2E_CREDENTIAL_NAMES` the project's check steps can read (project or workspace secrets). */
|
|
3473
|
-
credentials:
|
|
3600
|
+
credentials: z26.array(e2eCredentialNameSchema),
|
|
3474
3601
|
/** The most recent setup run, or `null` when none was started. */
|
|
3475
|
-
setup:
|
|
3602
|
+
setup: z26.object({ runId: z26.string(), status: runStatusSchema }).nullable()
|
|
3476
3603
|
});
|
|
3477
|
-
var e2eSetupInputSchema =
|
|
3478
|
-
credential:
|
|
3604
|
+
var e2eSetupInputSchema = z26.object({
|
|
3605
|
+
credential: z26.object({ name: e2eCredentialNameSchema, value: z26.string().min(1) }).strict().optional()
|
|
3479
3606
|
});
|
|
3480
|
-
var e2eSetupResponseSchema =
|
|
3481
|
-
var e2eErrorSchema =
|
|
3607
|
+
var e2eSetupResponseSchema = z26.object({ runId: z26.string() });
|
|
3608
|
+
var e2eErrorSchema = z26.object({ error: z26.string() }).strict();
|
|
3482
3609
|
export {
|
|
3610
|
+
ADD_PROJECT_DIALOGS,
|
|
3483
3611
|
DEFAULT_AGENT_ACCOUNT_ID,
|
|
3484
3612
|
DISPATCH_KINDS,
|
|
3485
3613
|
DISPATCH_MAX_IN_FLIGHT,
|
|
@@ -3492,6 +3620,8 @@ export {
|
|
|
3492
3620
|
E2E_CREDENTIAL_NAMES,
|
|
3493
3621
|
E2E_SETUP_WORKFLOW_NAME,
|
|
3494
3622
|
FILE_ATTACHMENT_MEDIA_TYPES,
|
|
3623
|
+
GITHUB_REPO_NAME_PATTERN,
|
|
3624
|
+
MESSAGE_SURFACES,
|
|
3495
3625
|
MODEL_DISCOVERY_RUNNERS,
|
|
3496
3626
|
PENDING_ASK_MAX_QUESTIONS,
|
|
3497
3627
|
PROJECT_TAGS_MAX,
|
|
@@ -3504,7 +3634,9 @@ export {
|
|
|
3504
3634
|
SECRET_AUDIENCES,
|
|
3505
3635
|
SECRET_SCOPES,
|
|
3506
3636
|
SECRET_VALUE_MAX_BYTES,
|
|
3637
|
+
TELEMETRY_ROUTE_SEGMENTS,
|
|
3507
3638
|
WEEKDAY_NAMES,
|
|
3639
|
+
addProjectDialogSchema,
|
|
3508
3640
|
agentAccountDetailsResponseSchema,
|
|
3509
3641
|
agentAccountFileSchema,
|
|
3510
3642
|
agentAccountRouteId,
|
|
@@ -3568,6 +3700,7 @@ export {
|
|
|
3568
3700
|
createAgentProfileInputSchema,
|
|
3569
3701
|
createAutomationInputSchema,
|
|
3570
3702
|
createPrResponseSchema,
|
|
3703
|
+
createProjectInputSchema,
|
|
3571
3704
|
createRunInputBaseSchema,
|
|
3572
3705
|
createRunInputSchema,
|
|
3573
3706
|
createRunResponseSchema,
|
|
@@ -3649,6 +3782,7 @@ export {
|
|
|
3649
3782
|
fsBrowseResponseSchema,
|
|
3650
3783
|
gitCommitResponseSchema,
|
|
3651
3784
|
gitPushResponseSchema,
|
|
3785
|
+
gitStatusResponseSchema,
|
|
3652
3786
|
githubChecksDataSchema,
|
|
3653
3787
|
githubCommentSchema,
|
|
3654
3788
|
githubCommentsDataSchema,
|
|
@@ -3657,6 +3791,8 @@ export {
|
|
|
3657
3791
|
githubListQuerySchema,
|
|
3658
3792
|
githubMergeMethodSchema,
|
|
3659
3793
|
githubMergeResponseSchema,
|
|
3794
|
+
githubOwnerSchema,
|
|
3795
|
+
githubOwnersResponseSchema,
|
|
3660
3796
|
githubPrChangeSchema,
|
|
3661
3797
|
githubPrChangesDataSchema,
|
|
3662
3798
|
githubPrCheckSchema,
|
|
@@ -3687,6 +3823,7 @@ export {
|
|
|
3687
3823
|
markAllReadResponseSchema,
|
|
3688
3824
|
messageInputSchema,
|
|
3689
3825
|
messageResponseSchema,
|
|
3826
|
+
messageSurfaceSchema,
|
|
3690
3827
|
modelDiscoveryRunnerSchema,
|
|
3691
3828
|
nextOccurrence,
|
|
3692
3829
|
normalizeSchedule,
|
|
@@ -3778,6 +3915,7 @@ export {
|
|
|
3778
3915
|
setConfigInputSchema,
|
|
3779
3916
|
setConfigResponseSchema,
|
|
3780
3917
|
setRunDraftInputSchema,
|
|
3918
|
+
setTelemetryConsentInputSchema,
|
|
3781
3919
|
setWorkspaceConfigInputSchema,
|
|
3782
3920
|
setWorkspaceUiStateInputSchema,
|
|
3783
3921
|
skillSchema,
|
|
@@ -3791,6 +3929,12 @@ export {
|
|
|
3791
3929
|
stepSecretsSchema,
|
|
3792
3930
|
stepStateSchema,
|
|
3793
3931
|
stepStatusSchema,
|
|
3932
|
+
telemetryConsentSchema,
|
|
3933
|
+
telemetryContextValueSchema,
|
|
3934
|
+
telemetryErrorInputSchema,
|
|
3935
|
+
telemetryEventInputSchema,
|
|
3936
|
+
telemetryPageInputSchema,
|
|
3937
|
+
telemetryRouteSchema,
|
|
3794
3938
|
timeZoneOffsetMs,
|
|
3795
3939
|
todoItemSchema,
|
|
3796
3940
|
trackerAssociationInputSchema,
|
|
@@ -199,6 +199,52 @@ export declare const checkoutProjectInputSchema: z.ZodObject<{
|
|
|
199
199
|
checkoutId: z.ZodOptional<z.ZodString>;
|
|
200
200
|
}, z.core.$strip>;
|
|
201
201
|
export type CheckoutProjectInput = z.infer<typeof checkoutProjectInputSchema>;
|
|
202
|
+
/**
|
|
203
|
+
* A GitHub repository name, as GitHub itself accepts it: letters, digits, `.`, `-` and `_`, at
|
|
204
|
+
* most 100 characters, and never `.` or `..`. The new-project name must be one — it is both the
|
|
205
|
+
* folder name and (with `github`) the repository name, so a name GitHub would rewrite is refused.
|
|
206
|
+
*/
|
|
207
|
+
export declare const GITHUB_REPO_NAME_PATTERN: RegExp;
|
|
208
|
+
/**
|
|
209
|
+
* `POST /api/v1/projects/create` (spec 2026-09-29-create-new-project) — a fresh git repo at
|
|
210
|
+
* `<projectsDir>/<name>`. `github` present ⇒ also a new GitHub repository under `owner`, which is
|
|
211
|
+
* ALWAYS private: there is deliberately no visibility field, and one must never be added.
|
|
212
|
+
* `template` (`owner/repo` or a GitHub URL) generates the repo from a template instead of starting
|
|
213
|
+
* empty. Progress arrives as `checkout-progress`, keyed by `checkoutId`, like the clone flow.
|
|
214
|
+
*/
|
|
215
|
+
export declare const createProjectInputSchema: z.ZodObject<{
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
owner: z.ZodString;
|
|
219
|
+
template: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
checkoutId: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
export type CreateProjectInput = z.infer<typeof createProjectInputSchema>;
|
|
224
|
+
/** One account a new repository may belong to: the signed-in user first (`personal: true`), then
|
|
225
|
+
* their organisations. `avatarUrl`/`description` are absent when GitHub gives none. */
|
|
226
|
+
export declare const githubOwnerSchema: z.ZodObject<{
|
|
227
|
+
login: z.ZodString;
|
|
228
|
+
personal: z.ZodBoolean;
|
|
229
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
230
|
+
description: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
export type GithubOwner = z.infer<typeof githubOwnerSchema>;
|
|
233
|
+
/** `GET /api/v1/projects/github-owners` — the accounts a new repo may belong to. Never an error:
|
|
234
|
+
* no `gh`, or an unauthenticated one, answers `available: false` with the reason. */
|
|
235
|
+
export declare const githubOwnersResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
236
|
+
available: z.ZodLiteral<true>;
|
|
237
|
+
owners: z.ZodArray<z.ZodObject<{
|
|
238
|
+
login: z.ZodString;
|
|
239
|
+
personal: z.ZodBoolean;
|
|
240
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
241
|
+
description: z.ZodOptional<z.ZodString>;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
244
|
+
available: z.ZodLiteral<false>;
|
|
245
|
+
reason: z.ZodString;
|
|
246
|
+
}, z.core.$strip>], "available">;
|
|
247
|
+
export type GithubOwnersResponse = z.infer<typeof githubOwnersResponseSchema>;
|
|
202
248
|
/** One directory in a `GET /api/v1/fs/browse` listing (multi-project spec, step 4.1). `path` is
|
|
203
249
|
* absolute — same-origin route, like `ProjectListEntry.root`. */
|
|
204
250
|
export declare const fsBrowseDirSchema: z.ZodObject<{
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -379,6 +379,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
379
379
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
380
380
|
pinnedAt: z.ZodOptional<z.ZodString>;
|
|
381
381
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
382
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
382
383
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
383
384
|
error: z.ZodOptional<z.ZodString>;
|
|
384
385
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -934,6 +935,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
934
935
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
935
936
|
pinnedAt: z.ZodOptional<z.ZodString>;
|
|
936
937
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
938
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
937
939
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
938
940
|
error: z.ZodOptional<z.ZodString>;
|
|
939
941
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -1729,6 +1731,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1729
1731
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
1730
1732
|
pinnedAt: z.ZodOptional<z.ZodString>;
|
|
1731
1733
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
1732
1735
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
1733
1736
|
error: z.ZodOptional<z.ZodString>;
|
|
1734
1737
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -2278,6 +2281,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2278
2281
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
2279
2282
|
pinnedAt: z.ZodOptional<z.ZodString>;
|
|
2280
2283
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
2284
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
2281
2285
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
2282
2286
|
error: z.ZodOptional<z.ZodString>;
|
|
2283
2287
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -2707,6 +2711,16 @@ export declare const gitPushResponseSchema: z.ZodObject<{
|
|
|
2707
2711
|
upstreamSet: z.ZodBoolean;
|
|
2708
2712
|
}, z.core.$strip>;
|
|
2709
2713
|
export type GitPushResponse = z.infer<typeof gitPushResponseSchema>;
|
|
2714
|
+
/** `GET /runs/:id/git/status` — what the run's worktree holds that has not left it yet: files
|
|
2715
|
+
* `git add -A` would commit, and commits its upstream has not seen. `unpushed` is null while the
|
|
2716
|
+
* branch has no upstream (never pushed) — "not pushed at all" is a different answer from "0".
|
|
2717
|
+
* `behind` counts the other direction: what the base has that the branch lacks. */
|
|
2718
|
+
export declare const gitStatusResponseSchema: z.ZodObject<{
|
|
2719
|
+
uncommitted: z.ZodNumber;
|
|
2720
|
+
unpushed: z.ZodNullable<z.ZodNumber>;
|
|
2721
|
+
behind: z.ZodNullable<z.ZodNumber>;
|
|
2722
|
+
}, z.core.$strip>;
|
|
2723
|
+
export type GitStatusResponse = z.infer<typeof gitStatusResponseSchema>;
|
|
2710
2724
|
/** A commit a run made on its worktree branch. */
|
|
2711
2725
|
export declare const runCommitSchema: z.ZodObject<{
|
|
2712
2726
|
sha: z.ZodString;
|
|
@@ -3034,6 +3048,7 @@ export declare const pickVariantResponseSchema: z.ZodObject<{
|
|
|
3034
3048
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
3035
3049
|
pinnedAt: z.ZodOptional<z.ZodString>;
|
|
3036
3050
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
3051
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
3037
3052
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
3038
3053
|
error: z.ZodOptional<z.ZodString>;
|
|
3039
3054
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -324,6 +324,7 @@ export declare const startTodoResponseSchema: z.ZodObject<{
|
|
|
324
324
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
325
325
|
pinnedAt: z.ZodOptional<z.ZodString>;
|
|
326
326
|
seenAt: z.ZodOptional<z.ZodString>;
|
|
327
|
+
lastSeq: z.ZodOptional<z.ZodNumber>;
|
|
327
328
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
328
329
|
error: z.ZodOptional<z.ZodString>;
|
|
329
330
|
steps: z.ZodArray<z.ZodObject<{
|