@open-mercato/cezar 0.20.0-pr1895.4821 → 0.20.0-pr1906.4820
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/contract/health.d.ts +2 -0
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +145 -0
- package/dist/contract/phones.d.ts +312 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/managers/engine.d.ts +7 -0
- package/dist/managers/engine.js +29 -8
- package/dist/managers/engine.js.map +1 -1
- package/dist/push/relay-sink.d.ts +71 -0
- package/dist/push/relay-sink.js +126 -0
- package/dist/push/relay-sink.js.map +1 -0
- package/dist/relay/connection.d.ts +89 -0
- package/dist/relay/connection.js +385 -0
- package/dist/relay/connection.js.map +1 -0
- package/dist/relay/devices.d.ts +62 -0
- package/dist/relay/devices.js +175 -0
- package/dist/relay/devices.js.map +1 -0
- package/dist/relay/dispatcher.d.ts +68 -0
- package/dist/relay/dispatcher.js +332 -0
- package/dist/relay/dispatcher.js.map +1 -0
- package/dist/relay/identity.d.ts +24 -0
- package/dist/relay/identity.js +102 -0
- package/dist/relay/identity.js.map +1 -0
- package/dist/relay/noise.d.ts +59 -0
- package/dist/relay/noise.js +234 -0
- package/dist/relay/noise.js.map +1 -0
- package/dist/relay/pairing.d.ts +73 -0
- package/dist/relay/pairing.js +260 -0
- package/dist/relay/pairing.js.map +1 -0
- package/dist/relay/probe.d.ts +8 -0
- package/dist/relay/probe.js +71 -0
- package/dist/relay/probe.js.map +1 -0
- package/dist/relay/rendezvous.d.ts +87 -0
- package/dist/relay/rendezvous.js +240 -0
- package/dist/relay/rendezvous.js.map +1 -0
- package/dist/relay/scope.d.ts +16 -0
- package/dist/relay/scope.js +22 -0
- package/dist/relay/scope.js.map +1 -0
- package/dist/relay/service.d.ts +149 -0
- package/dist/relay/service.js +706 -0
- package/dist/relay/service.js.map +1 -0
- package/dist/relay/session.d.ts +65 -0
- package/dist/relay/session.js +228 -0
- package/dist/relay/session.js.map +1 -0
- package/dist/relay/socket.d.ts +21 -0
- package/dist/relay/socket.js +66 -0
- package/dist/relay/socket.js.map +1 -0
- package/dist/relay/wire.d.ts +134 -0
- package/dist/relay/wire.js +289 -0
- package/dist/relay/wire.js.map +1 -0
- package/dist/runs/task-refs.js +17 -8
- package/dist/runs/task-refs.js.map +1 -1
- package/dist/self-update/service.d.ts +3 -1
- package/dist/self-update/service.js +8 -5
- package/dist/self-update/service.js.map +1 -1
- package/dist/server/capabilities.js +3 -0
- package/dist/server/capabilities.js.map +1 -1
- package/dist/server/project-context.js +4 -2
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/server.d.ts +3321 -2787
- package/dist/server/server.js +202 -33
- package/dist/server/server.js.map +1 -1
- package/dist/server/webhooks.js +4 -0
- package/dist/server/webhooks.js.map +1 -1
- package/dist/server/ws.js +3 -2
- package/dist/server/ws.js.map +1 -1
- package/dist/transfer/config-bundle.js +1 -0
- package/dist/transfer/config-bundle.js.map +1 -1
- package/dist/workflows/run.js +4 -3
- package/dist/workflows/run.js.map +1 -1
- package/dist/workspace/config.d.ts +4 -0
- package/dist/workspace/config.js +14 -2
- package/dist/workspace/config.js.map +1 -1
- package/package.json +3 -3
- package/web/dist/assets/{active-forge-lNRqIMU-.js → active-forge-DaLQo88X.js} +1 -1
- package/web/dist/assets/{agent-task-pickers-D_xhthT_.js → agent-task-pickers-DZHUUPZ8.js} +1 -1
- package/web/dist/assets/{alert-dialog-BBUQdG3G.js → alert-dialog-0TTCRnoQ.js} +1 -1
- package/web/dist/assets/arrow-down-DA8lNZDb.js +1 -0
- package/web/dist/assets/arrow-up-BZoXb5kQ.js +1 -0
- package/web/dist/assets/{ask-answer-CnohnhCr.js → ask-answer-CIQQIkkC.js} +1 -1
- package/web/dist/assets/{ask-card-monspkOA.js → ask-card-PBQbNiSU.js} +1 -1
- package/web/dist/assets/{assets-view-C3DMAEs3.js → assets-view-DDGlCzTs.js} +1 -1
- package/web/dist/assets/{automation-format-DMfYWmRW.js → automation-format-B2PsadZ3.js} +1 -1
- package/web/dist/assets/{automations-route-DLyqk28c.js → automations-route-DMEniib2.js} +1 -1
- package/web/dist/assets/{bot-CP5WoYXU.js → bot-MVMmZ-iu.js} +1 -1
- package/web/dist/assets/{button-DlATnGEr.js → button-Cfv8MVHk.js} +1 -1
- package/web/dist/assets/{centered-state-DX6Gs7Sn.js → centered-state-BQPIk7j9.js} +1 -1
- package/web/dist/assets/check-p8i97eZ7.js +1 -0
- package/web/dist/assets/chevron-left-DVemc2HT.js +1 -0
- package/web/dist/assets/chevron-right-BvkHzw7x.js +1 -0
- package/web/dist/assets/{circle-alert-BhNqgE1r.js → circle-alert-CzxAZRs5.js} +1 -1
- package/web/dist/assets/circle-check-BKXmC7Ae.js +1 -0
- package/web/dist/assets/{collapsible-CEW-Uz0B.js → collapsible-C9Iq9qi9.js} +1 -1
- package/web/dist/assets/{command-Bqs3AoVg.js → command-DS5zW1pp.js} +1 -1
- package/web/dist/assets/{commit-list-BBb9JurT.js → commit-list-aF7NTbzh.js} +1 -1
- package/web/dist/assets/{compare-variants-fCkKFg8A.js → compare-variants-Cmb84fIw.js} +1 -1
- package/web/dist/assets/{composer-BECpe2ga.js → composer-CtvX9kfz.js} +1 -1
- package/web/dist/assets/{composer-attachments-C-UmKTDa.js → composer-attachments-CTf_ppnZ.js} +1 -1
- package/web/dist/assets/{dashboard-D05_GNIm.js → dashboard-DB8v5iA1.js} +1 -1
- package/web/dist/assets/{diff--GJKTkDV.js → diff-BV7vyijH.js} +2 -2
- package/web/dist/assets/{diff-stat-DfqGxbvS.js → diff-stat-DQI1rgG4.js} +1 -1
- package/web/dist/assets/{diff-view-DCiCekp8.js → diff-view-BmXEEtBz.js} +1 -1
- package/web/dist/assets/{directional-usage-CL3yheoj.js → directional-usage-BTJzt4Uk.js} +1 -1
- package/web/dist/assets/{dist-DuIPAwrM.js → dist-C2N5Vg8e.js} +1 -1
- package/web/dist/assets/{download-fhhT22Gv.js → download-NdLLymNx.js} +1 -1
- package/web/dist/assets/{dropdown-menu-EpgT0bci.js → dropdown-menu-Dh81o-N3.js} +1 -1
- package/web/dist/assets/{external-link-65uYp9hQ.js → external-link-DPuAF5c_.js} +1 -1
- package/web/dist/assets/{file-cgpPGziJ.js → file-BM5SfuWi.js} +1 -1
- package/web/dist/assets/{file-preview-CGzA3pnM.js → file-preview-A_bzIHhq.js} +1 -1
- package/web/dist/assets/{file-tree-B7Di527Y.js → file-tree-_GkwgBk4.js} +1 -1
- package/web/dist/assets/{folder-Oj7mqw45.js → folder-BzD0bu9d.js} +1 -1
- package/web/dist/assets/{follow-up-engine-Csx5YQhI.js → follow-up-engine-Cy08feVB.js} +1 -1
- package/web/dist/assets/{git-pull-request-B-A1V7u9.js → git-pull-request-HkPGzWlp.js} +1 -1
- package/web/dist/assets/{git-pull-request-draft-BcHZ9nYH.js → git-pull-request-draft-B3W13TKz.js} +1 -1
- package/web/dist/assets/{git-tab-loading-PXPbFcF2.js → git-tab-loading-DvH4NGx-.js} +1 -1
- package/web/dist/assets/{github-CD8STRPa.js → github-CnM8fakc.js} +1 -1
- package/web/dist/assets/{host-usage-BhjhPlVm.js → host-usage-BBR74Ope.js} +1 -1
- package/web/dist/assets/{icon-tooltip-044Va52V.js → icon-tooltip-C2tvVLxL.js} +1 -1
- package/web/dist/assets/{impact-control-DukZpVR-.js → impact-control-D3db1zQQ.js} +1 -1
- package/web/dist/assets/{impact-model-Cmjyomel.js → impact-model-CLlPxEMS.js} +1 -1
- package/web/dist/assets/index-D05up0lG.js +33 -0
- package/web/dist/assets/index-G0CNLzcJ.css +2 -0
- package/web/dist/assets/{input-BGiDXfqJ.js → input-BrCKB4aI.js} +1 -1
- package/web/dist/assets/{layers-lugEOu8L.js → layers-DibqQ8Dl.js} +1 -1
- package/web/dist/assets/{layout-cards-DFA893X7.js → layout-cards-Cs71laUT.js} +1 -1
- package/web/dist/assets/layout-dashboard-CZiib7-8.js +1 -0
- package/web/dist/assets/{layout-grid-BgrD_4ta.js → layout-grid-Dk6tZHze.js} +1 -1
- package/web/dist/assets/loader-circle-CBWrs0om.js +1 -0
- package/web/dist/assets/{loading-state-DZpzCB6C.js → loading-state-DcYNHT1S.js} +1 -1
- package/web/dist/assets/{manager-chat-BL6hWaci.js → manager-chat-BdBDEXu0.js} +1 -1
- package/web/dist/assets/{manager-index-B0NkMEw_.js → manager-index-DBM-aaRa.js} +1 -1
- package/web/dist/assets/{manager-new-CSq9Uzyj.js → manager-new-DHznNzN-.js} +1 -1
- package/web/dist/assets/{managers-BD-TUe6i.js → managers-CtbbXrpT.js} +1 -1
- package/web/dist/assets/{markdown-CYvWVhhe.js → markdown-BeLv80r3.js} +1 -1
- package/web/dist/assets/{markdown-BtpIXTjY.js → markdown-CMC9h40h.js} +1 -1
- package/web/dist/assets/{mascot-picker-BLkJPQ1Q.js → mascot-picker-DC3Gsw-v.js} +1 -1
- package/web/dist/assets/{message-square-BhijlG2m.js → message-square-gi2ZpUEq.js} +1 -1
- package/web/dist/assets/{new-task-form-BCXuKuFJ.js → new-task-form-CKKx9wx3.js} +1 -1
- package/web/dist/assets/{pencil-D4jTRF-B.js → pencil-CKi6xfPD.js} +1 -1
- package/web/dist/assets/{picker-pill-MlQIn-EU.js → picker-pill-C2kHWZEf.js} +1 -1
- package/web/dist/assets/play-x3MeBVUm.js +1 -0
- package/web/dist/assets/plus-BeSDal3U.js +1 -0
- package/web/dist/assets/{project-router-BENNbi0L.js → project-router-CEY4oDhT.js} +1 -1
- package/web/dist/assets/{queries-ulWjkQ8y.js → queries-C8RmAf21.js} +1 -1
- package/web/dist/assets/{reasoning-effort-pill-IDEQPgZo.js → reasoning-effort-pill-DGQyHZIg.js} +1 -1
- package/web/dist/assets/{reference-chip-MMqurE_J.js → reference-chip-B0CyEu9D.js} +1 -1
- package/web/dist/assets/{reference-conflict-action-CLJszSoO.js → reference-conflict-action-BwfwBZwC.js} +1 -1
- package/web/dist/assets/{refresh-cw-BlvxtiJO.js → refresh-cw-BPx8KT_Y.js} +1 -1
- package/web/dist/assets/{repo-git--9KIo-C9.js → repo-git-BWMUtjSh.js} +1 -1
- package/web/dist/assets/run-actions-BKlYLz1C.js +1 -0
- package/web/dist/assets/{run-diff-GKrT-u7L.js → run-diff-DBUfEwbs.js} +1 -1
- package/web/dist/assets/{save-D_0DQRj_.js → save-C-yz48XT.js} +1 -1
- package/web/dist/assets/{scroll-within-DaBMyn29.js → scroll-within-DMXnJ2pL.js} +1 -1
- package/web/dist/assets/search-CETcq4x7.js +1 -0
- package/web/dist/assets/{search-x-DrM2PJIu.js → search-x-BFA5khFe.js} +1 -1
- package/web/dist/assets/{settings-2-DgNkToRW.js → settings-2-DhghGQx1.js} +1 -1
- package/web/dist/assets/{sheet-CXUWMN4I.js → sheet-CO-qu0rO.js} +1 -1
- package/web/dist/assets/{skills-CoeoHDp5.js → skills-pZauvAoO.js} +1 -1
- package/web/dist/assets/square-CSH9dsCm.js +1 -0
- package/web/dist/assets/{status-dot-CmDRPrRk.js → status-dot-DrtqKUGl.js} +1 -1
- package/web/dist/assets/{tabs-BHJ1LfTe.js → tabs-CJwsY3hn.js} +1 -1
- package/web/dist/assets/{tag-C6yhwCTk.js → tag-CpLKQ87d.js} +1 -1
- package/web/dist/assets/{task-commits-BTlJSw8a.js → task-commits-COOOAjZR.js} +1 -1
- package/web/dist/assets/{task-graph-BKcLm5TG.js → task-graph-DSIMH9FI.js} +1 -1
- package/web/dist/assets/{task-notes-D_-5tlNI.js → task-notes-D1Pm7Al3.js} +1 -1
- package/web/dist/assets/{task-workspace-D8LN5gJD.js → task-workspace-CTF6wgdO.js} +7 -7
- package/web/dist/assets/terminal-Bf7HXr4V.js +1 -0
- package/web/dist/assets/{terminal-drawer-TJiic-E6.js → terminal-drawer-DIfLT3TV.js} +1 -1
- package/web/dist/assets/{terminal-pane-C7x7n2zf.js → terminal-pane-D_kj0k01.js} +1 -1
- package/web/dist/assets/{textarea-BNQRG4f5.js → textarea-BTHEw3VK.js} +1 -1
- package/web/dist/assets/{toaster-A8untK-A.js → toaster-CERP3LIq.js} +1 -1
- package/web/dist/assets/{tooltip-AGincstC.js → tooltip-D_5npE8z.js} +1 -1
- package/web/dist/assets/{tracker-BpfyQ8MA.js → tracker-RBsRfQm1.js} +1 -1
- package/web/dist/assets/{triangle-alert-CwLmF9Ne.js → triangle-alert-muDyPDB8.js} +1 -1
- package/web/dist/assets/{upload-CdqRt3DQ.js → upload-CT2stdKZ.js} +1 -1
- package/web/dist/assets/{use-now-C0gy0Kbc.js → use-now-Bo5RybUO.js} +1 -1
- package/web/dist/assets/{use-submit-shortcut-bb569eFR.js → use-submit-shortcut-BtJxSL9M.js} +1 -1
- package/web/dist/assets/user-round-Dg3PslwB.js +1 -0
- package/web/dist/assets/utils-D4K3pc6-.js +60 -0
- package/web/dist/assets/{workflow-D-yaQOTP.js → workflow-Bzm3mafF.js} +1 -1
- package/web/dist/assets/{workflow-graph-Cclf8xeE.js → workflow-graph-Crufdos6.js} +1 -1
- package/web/dist/assets/{worktree-lifecycle-BVaL0wyr.js → worktree-lifecycle-BJ9EaN4Q.js} +1 -1
- package/web/dist/assets/{worktree-lifecycle-operation-DJN0BRM0.js → worktree-lifecycle-operation-DcqE935k.js} +1 -1
- package/web/dist/assets/x-C8nGDjK0.js +1 -0
- package/web/dist/assets/{zoomable-image-H7jwMoQD.js → zoomable-image-ZjaB01sj.js} +1 -1
- package/web/dist/index.html +70 -70
- package/web/dist/assets/arrow-down-BuSUmYBT.js +0 -1
- package/web/dist/assets/arrow-up-BM6qa7mp.js +0 -1
- package/web/dist/assets/check-a8DW-5xT.js +0 -1
- package/web/dist/assets/chevron-left-Dsww_mcA.js +0 -1
- package/web/dist/assets/chevron-right-YfQ2ztvv.js +0 -1
- package/web/dist/assets/circle-check-BS2rkEZn.js +0 -1
- package/web/dist/assets/index-BvB76A30.js +0 -31
- package/web/dist/assets/index-BzpKxMEc.css +0 -2
- package/web/dist/assets/layout-dashboard-CV6dslyu.js +0 -1
- package/web/dist/assets/loader-circle-BHoeiDvX.js +0 -1
- package/web/dist/assets/play-Dl4mz-cU.js +0 -1
- package/web/dist/assets/plus-saHjNQH1.js +0 -1
- package/web/dist/assets/run-actions-DH4E0sVZ.js +0 -1
- package/web/dist/assets/search-Cd04XKAA.js +0 -1
- package/web/dist/assets/square-ClPBBgJ7.js +0 -1
- package/web/dist/assets/terminal-BONkvjbg.js +0 -1
- package/web/dist/assets/user-round-D5JBLt4S.js +0 -1
- package/web/dist/assets/utils-BdZWtrih.js +0 -60
- package/web/dist/assets/x-2UhdkEEP.js +0 -1
|
@@ -55,6 +55,7 @@ export declare const capabilitiesSchema: z.ZodObject<{
|
|
|
55
55
|
terminal: z.ZodBoolean;
|
|
56
56
|
designMode: z.ZodBoolean;
|
|
57
57
|
followups: z.ZodBoolean;
|
|
58
|
+
phonePairing: z.ZodBoolean;
|
|
58
59
|
singleProject: z.ZodBoolean;
|
|
59
60
|
automations: z.ZodBoolean;
|
|
60
61
|
managers: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -141,6 +142,7 @@ export declare const healthResponseSchema: z.ZodObject<{
|
|
|
141
142
|
terminal: z.ZodBoolean;
|
|
142
143
|
designMode: z.ZodBoolean;
|
|
143
144
|
followups: z.ZodBoolean;
|
|
145
|
+
phonePairing: z.ZodBoolean;
|
|
144
146
|
singleProject: z.ZodBoolean;
|
|
145
147
|
automations: z.ZodBoolean;
|
|
146
148
|
managers: z.ZodOptional<z.ZodBoolean>;
|
package/dist/contract/index.d.ts
CHANGED
package/dist/contract/index.js
CHANGED
|
@@ -88,6 +88,12 @@ var capabilitiesSchema = z2.object({
|
|
|
88
88
|
*/
|
|
89
89
|
designMode: z2.boolean(),
|
|
90
90
|
followups: z2.boolean(),
|
|
91
|
+
/**
|
|
92
|
+
* `true` means Settings offers Connect a phone: `CEZ_RELAY=0` is not set. The relay address is a
|
|
93
|
+
* setting, reported by `GET /workspace/phones` (spec `.ai/specs/2026-11-01-relay-qr-pairing.md`).
|
|
94
|
+
* Always false in a relay scope, so a phone cannot pair another phone.
|
|
95
|
+
*/
|
|
96
|
+
phonePairing: z2.boolean(),
|
|
91
97
|
singleProject: z2.boolean(),
|
|
92
98
|
/**
|
|
93
99
|
* `true` means `CEZ_AUTOMATIONS=1` opted this server into GitHub automations (#801). Off — the
|
|
@@ -5667,6 +5673,123 @@ var configBundlePreviewSchema = z44.object({
|
|
|
5667
5673
|
planDigest: z44.string()
|
|
5668
5674
|
});
|
|
5669
5675
|
var configBundleImportResultSchema = z44.object({ applied: z44.array(z44.string()) });
|
|
5676
|
+
|
|
5677
|
+
// ../contract/src/phones.ts
|
|
5678
|
+
import { z as z45 } from "zod";
|
|
5679
|
+
var phonePlatformSchema = z45.enum(["android", "ios"]);
|
|
5680
|
+
var phoneDeviceParamSchema = z45.object({ deviceId: z45.string().regex(/^[A-Za-z0-9_-]{22}$/) });
|
|
5681
|
+
var phonePairingParamSchema = z45.object({ id: z45.uuid() });
|
|
5682
|
+
var relayStatusSchema = z45.enum([
|
|
5683
|
+
"off",
|
|
5684
|
+
"connecting",
|
|
5685
|
+
"connected",
|
|
5686
|
+
"unreachable",
|
|
5687
|
+
"replaced",
|
|
5688
|
+
"rate-limited",
|
|
5689
|
+
"quota",
|
|
5690
|
+
"disabled",
|
|
5691
|
+
"update-required",
|
|
5692
|
+
"locked",
|
|
5693
|
+
"error"
|
|
5694
|
+
]);
|
|
5695
|
+
var phonePairingStatusSchema = z45.enum([
|
|
5696
|
+
"waiting",
|
|
5697
|
+
"handshaking",
|
|
5698
|
+
"confirm",
|
|
5699
|
+
"approving",
|
|
5700
|
+
"approved",
|
|
5701
|
+
"denied",
|
|
5702
|
+
"expired",
|
|
5703
|
+
"cancelled",
|
|
5704
|
+
"failed"
|
|
5705
|
+
]);
|
|
5706
|
+
var phonePairingFailureSchema = z45.enum([
|
|
5707
|
+
"device-limit",
|
|
5708
|
+
"relay-error",
|
|
5709
|
+
"timeout",
|
|
5710
|
+
"cancelled",
|
|
5711
|
+
"contested",
|
|
5712
|
+
"bad-payload",
|
|
5713
|
+
"tunnel-unsupported",
|
|
5714
|
+
"phone-left"
|
|
5715
|
+
]);
|
|
5716
|
+
var phonePairingSchema = z45.object({
|
|
5717
|
+
id: z45.string(),
|
|
5718
|
+
status: phonePairingStatusSchema,
|
|
5719
|
+
expiresAt: z45.string(),
|
|
5720
|
+
method: z45.enum(["qr", "code"]).optional(),
|
|
5721
|
+
phone: z45.object({ name: z45.string(), platform: phonePlatformSchema }).optional(),
|
|
5722
|
+
digits: z45.string().optional(),
|
|
5723
|
+
failure: phonePairingFailureSchema.optional()
|
|
5724
|
+
});
|
|
5725
|
+
var phoneSchema = z45.object({
|
|
5726
|
+
deviceId: z45.string(),
|
|
5727
|
+
label: z45.string(),
|
|
5728
|
+
platform: phonePlatformSchema,
|
|
5729
|
+
addedAt: z45.string(),
|
|
5730
|
+
lastSeenAt: z45.string().optional(),
|
|
5731
|
+
connected: z45.boolean(),
|
|
5732
|
+
/** The phone handed over a push grant (spec R5). Absent when it has none. */
|
|
5733
|
+
push: z45.literal(true).optional()
|
|
5734
|
+
});
|
|
5735
|
+
var phonePushStateSchema = z45.object({
|
|
5736
|
+
/** False under `CEZ_PUSH=0`: the phone keeps no grant for this server. */
|
|
5737
|
+
available: z45.boolean(),
|
|
5738
|
+
/** cezar's Ed25519 relay key, base64url: `cezarKey` in `POST /v1/push-grants`. Present when available. */
|
|
5739
|
+
cezarKey: z45.string().optional(),
|
|
5740
|
+
/** The grant cezar holds for this phone, if any. */
|
|
5741
|
+
grantId: z45.string().optional(),
|
|
5742
|
+
/** Unix seconds; the phone renews once under 30 days remain. */
|
|
5743
|
+
grantExpiresAt: z45.number().int().optional(),
|
|
5744
|
+
/** The manager the latest push was about, so a tap opens it. An opaque id, never in the push. */
|
|
5745
|
+
managerId: z45.string().optional()
|
|
5746
|
+
});
|
|
5747
|
+
var setPhonePushGrantInputSchema = z45.object({
|
|
5748
|
+
grant: z45.string().min(1).max(4096),
|
|
5749
|
+
grantId: z45.string().regex(/^[A-Za-z0-9_-]{22}$/),
|
|
5750
|
+
expiresAt: z45.number().int().positive()
|
|
5751
|
+
}).strict();
|
|
5752
|
+
var phoneSignalEventSchema = z45.object({ managerId: z45.string().optional() });
|
|
5753
|
+
var relayAddressSourceSchema = z45.enum(["env", "env-invalid", "settings", "default", "none"]);
|
|
5754
|
+
var phonesResponseSchema = z45.object({
|
|
5755
|
+
/** Empty only for an invalid `CEZ_RELAY_URL`, which `relaySource` says. */
|
|
5756
|
+
relayOrigin: z45.string(),
|
|
5757
|
+
relaySource: relayAddressSourceSchema,
|
|
5758
|
+
relay: z45.object({ status: relayStatusSchema, detail: z45.string().optional() }),
|
|
5759
|
+
phones: z45.array(phoneSchema),
|
|
5760
|
+
pairing: phonePairingSchema.nullable(),
|
|
5761
|
+
/** Grants a `too-many-grants` answer left alive, kept for R5 and shown as a warning. */
|
|
5762
|
+
undeniedGrants: z45.number().optional()
|
|
5763
|
+
});
|
|
5764
|
+
var startPhonePairingResponseSchema = z45.object({
|
|
5765
|
+
id: z45.string(),
|
|
5766
|
+
qr: z45.string(),
|
|
5767
|
+
relayOrigin: z45.string(),
|
|
5768
|
+
expiresAt: z45.string()
|
|
5769
|
+
});
|
|
5770
|
+
var phonePairingCodeResponseSchema = z45.object({ code: z45.string(), relayOrigin: z45.string() });
|
|
5771
|
+
var renamePhoneInputSchema = z45.object({ label: z45.string().trim().min(1).max(64) }).strict();
|
|
5772
|
+
var relayAddressSchema = z45.string().trim().min(1).max(300);
|
|
5773
|
+
var setRelayAddressInputSchema = z45.object({
|
|
5774
|
+
address: relayAddressSchema.nullable(),
|
|
5775
|
+
dropPhones: z45.boolean().optional()
|
|
5776
|
+
}).strict();
|
|
5777
|
+
var testRelayAddressInputSchema = z45.object({ address: relayAddressSchema }).strict();
|
|
5778
|
+
var relayTestFailureSchema = z45.enum([
|
|
5779
|
+
"invalid-address",
|
|
5780
|
+
"unreachable",
|
|
5781
|
+
"not-a-relay",
|
|
5782
|
+
"incompatible",
|
|
5783
|
+
"rate-limited",
|
|
5784
|
+
"disabled",
|
|
5785
|
+
"refused"
|
|
5786
|
+
]);
|
|
5787
|
+
var testRelayAddressResponseSchema = z45.discriminatedUnion("ok", [
|
|
5788
|
+
z45.object({ ok: z45.literal(true), origin: z45.string(), protocol: z45.number() }),
|
|
5789
|
+
z45.object({ ok: z45.literal(false), reason: relayTestFailureSchema })
|
|
5790
|
+
]);
|
|
5791
|
+
var phoneOkResponseSchema = z45.object({ ok: z45.literal(true) });
|
|
5792
|
+
var phonePairingEventSchema = z45.object({ pairing: phonePairingSchema.nullable() });
|
|
5670
5793
|
export {
|
|
5671
5794
|
ADD_PROJECT_DIALOGS,
|
|
5672
5795
|
ARTIFACT_NAME_RE,
|
|
@@ -6100,6 +6223,19 @@ export {
|
|
|
6100
6223
|
parsedWorkflowSchema,
|
|
6101
6224
|
patchRunInputSchema,
|
|
6102
6225
|
perRunner,
|
|
6226
|
+
phoneDeviceParamSchema,
|
|
6227
|
+
phoneOkResponseSchema,
|
|
6228
|
+
phonePairingCodeResponseSchema,
|
|
6229
|
+
phonePairingEventSchema,
|
|
6230
|
+
phonePairingFailureSchema,
|
|
6231
|
+
phonePairingParamSchema,
|
|
6232
|
+
phonePairingSchema,
|
|
6233
|
+
phonePairingStatusSchema,
|
|
6234
|
+
phonePlatformSchema,
|
|
6235
|
+
phonePushStateSchema,
|
|
6236
|
+
phoneSchema,
|
|
6237
|
+
phoneSignalEventSchema,
|
|
6238
|
+
phonesResponseSchema,
|
|
6103
6239
|
pickVariantResponseSchema,
|
|
6104
6240
|
planResponseSchema,
|
|
6105
6241
|
portableAutomationSchema,
|
|
@@ -6127,11 +6263,15 @@ export {
|
|
|
6127
6263
|
referenceStatusesByProjectSchema,
|
|
6128
6264
|
registerProjectInputSchema,
|
|
6129
6265
|
registerProjectResponseSchema,
|
|
6266
|
+
relayAddressSourceSchema,
|
|
6267
|
+
relayStatusSchema,
|
|
6268
|
+
relayTestFailureSchema,
|
|
6130
6269
|
removeAgentProfileResponseSchema,
|
|
6131
6270
|
removeProjectResponseSchema,
|
|
6132
6271
|
removeQueuedMessageResponseSchema,
|
|
6133
6272
|
removeTodoResponseSchema,
|
|
6134
6273
|
removeWorktreeResponseSchema,
|
|
6274
|
+
renamePhoneInputSchema,
|
|
6135
6275
|
repoBranchResponseSchema,
|
|
6136
6276
|
repoCommitPayloadSchema,
|
|
6137
6277
|
repoFileQuerySchema,
|
|
@@ -6209,6 +6349,8 @@ export {
|
|
|
6209
6349
|
setAgentConfigInputSchema,
|
|
6210
6350
|
setConfigInputSchema,
|
|
6211
6351
|
setConfigResponseSchema,
|
|
6352
|
+
setPhonePushGrantInputSchema,
|
|
6353
|
+
setRelayAddressInputSchema,
|
|
6212
6354
|
setRunDraftInputSchema,
|
|
6213
6355
|
setTelemetryConsentInputSchema,
|
|
6214
6356
|
setWorkspaceConfigInputSchema,
|
|
@@ -6229,6 +6371,7 @@ export {
|
|
|
6229
6371
|
startImpactSchema,
|
|
6230
6372
|
startLifecycleRemovalInputSchema,
|
|
6231
6373
|
startNowResponseSchema,
|
|
6374
|
+
startPhonePairingResponseSchema,
|
|
6232
6375
|
startTodoInputSchema,
|
|
6233
6376
|
startTodoResponseSchema,
|
|
6234
6377
|
statusEntrySchema,
|
|
@@ -6255,6 +6398,8 @@ export {
|
|
|
6255
6398
|
terminalSessionParamsSchema,
|
|
6256
6399
|
terminalSessionSchema,
|
|
6257
6400
|
terminalStateSchema,
|
|
6401
|
+
testRelayAddressInputSchema,
|
|
6402
|
+
testRelayAddressResponseSchema,
|
|
6258
6403
|
timeZoneOffsetMs,
|
|
6259
6404
|
todoItemSchema,
|
|
6260
6405
|
trackerAccessSchema,
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Settings > Connect a phone (spec `.ai/specs/2026-11-01-relay-qr-pairing.md`). */
|
|
3
|
+
export declare const phonePlatformSchema: z.ZodEnum<{
|
|
4
|
+
android: "android";
|
|
5
|
+
ios: "ios";
|
|
6
|
+
}>;
|
|
7
|
+
export type PhonePlatform = z.infer<typeof phonePlatformSchema>;
|
|
8
|
+
export declare const phoneDeviceParamSchema: z.ZodObject<{
|
|
9
|
+
deviceId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const phonePairingParamSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodUUID;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
/** `off` means no socket, which is the normal state with no phone paired. */
|
|
15
|
+
export declare const relayStatusSchema: z.ZodEnum<{
|
|
16
|
+
connected: "connected";
|
|
17
|
+
connecting: "connecting";
|
|
18
|
+
disabled: "disabled";
|
|
19
|
+
error: "error";
|
|
20
|
+
locked: "locked";
|
|
21
|
+
off: "off";
|
|
22
|
+
quota: "quota";
|
|
23
|
+
"rate-limited": "rate-limited";
|
|
24
|
+
replaced: "replaced";
|
|
25
|
+
unreachable: "unreachable";
|
|
26
|
+
"update-required": "update-required";
|
|
27
|
+
}>;
|
|
28
|
+
export type RelayStatus = z.infer<typeof relayStatusSchema>;
|
|
29
|
+
export declare const phonePairingStatusSchema: z.ZodEnum<{
|
|
30
|
+
approved: "approved";
|
|
31
|
+
approving: "approving";
|
|
32
|
+
cancelled: "cancelled";
|
|
33
|
+
confirm: "confirm";
|
|
34
|
+
denied: "denied";
|
|
35
|
+
expired: "expired";
|
|
36
|
+
failed: "failed";
|
|
37
|
+
handshaking: "handshaking";
|
|
38
|
+
waiting: "waiting";
|
|
39
|
+
}>;
|
|
40
|
+
export type PhonePairingStatus = z.infer<typeof phonePairingStatusSchema>;
|
|
41
|
+
export declare const phonePairingFailureSchema: z.ZodEnum<{
|
|
42
|
+
"bad-payload": "bad-payload";
|
|
43
|
+
cancelled: "cancelled";
|
|
44
|
+
contested: "contested";
|
|
45
|
+
"device-limit": "device-limit";
|
|
46
|
+
"phone-left": "phone-left";
|
|
47
|
+
"relay-error": "relay-error";
|
|
48
|
+
timeout: "timeout";
|
|
49
|
+
"tunnel-unsupported": "tunnel-unsupported";
|
|
50
|
+
}>;
|
|
51
|
+
export type PhonePairingFailure = z.infer<typeof phonePairingFailureSchema>;
|
|
52
|
+
/** Never the secret, the code or the QR string: this shape rides SSE and `GET /workspace/phones`. */
|
|
53
|
+
export declare const phonePairingSchema: z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
status: z.ZodEnum<{
|
|
56
|
+
approved: "approved";
|
|
57
|
+
approving: "approving";
|
|
58
|
+
cancelled: "cancelled";
|
|
59
|
+
confirm: "confirm";
|
|
60
|
+
denied: "denied";
|
|
61
|
+
expired: "expired";
|
|
62
|
+
failed: "failed";
|
|
63
|
+
handshaking: "handshaking";
|
|
64
|
+
waiting: "waiting";
|
|
65
|
+
}>;
|
|
66
|
+
expiresAt: z.ZodString;
|
|
67
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
code: "code";
|
|
69
|
+
qr: "qr";
|
|
70
|
+
}>>;
|
|
71
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
platform: z.ZodEnum<{
|
|
74
|
+
android: "android";
|
|
75
|
+
ios: "ios";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
digits: z.ZodOptional<z.ZodString>;
|
|
79
|
+
failure: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
"bad-payload": "bad-payload";
|
|
81
|
+
cancelled: "cancelled";
|
|
82
|
+
contested: "contested";
|
|
83
|
+
"device-limit": "device-limit";
|
|
84
|
+
"phone-left": "phone-left";
|
|
85
|
+
"relay-error": "relay-error";
|
|
86
|
+
timeout: "timeout";
|
|
87
|
+
"tunnel-unsupported": "tunnel-unsupported";
|
|
88
|
+
}>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type PhonePairing = z.infer<typeof phonePairingSchema>;
|
|
91
|
+
export declare const phoneSchema: z.ZodObject<{
|
|
92
|
+
deviceId: z.ZodString;
|
|
93
|
+
label: z.ZodString;
|
|
94
|
+
platform: z.ZodEnum<{
|
|
95
|
+
android: "android";
|
|
96
|
+
ios: "ios";
|
|
97
|
+
}>;
|
|
98
|
+
addedAt: z.ZodString;
|
|
99
|
+
lastSeenAt: z.ZodOptional<z.ZodString>;
|
|
100
|
+
connected: z.ZodBoolean;
|
|
101
|
+
push: z.ZodOptional<z.ZodLiteral<true>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type Phone = z.infer<typeof phoneSchema>;
|
|
104
|
+
/**
|
|
105
|
+
* `GET`, `PUT` and `DELETE /workspace/phone/push`: the calling phone's own push grant, reachable
|
|
106
|
+
* only from inside its relay session (spec 2026-11-01-relay-qr-pairing, R5).
|
|
107
|
+
*/
|
|
108
|
+
export declare const phonePushStateSchema: z.ZodObject<{
|
|
109
|
+
available: z.ZodBoolean;
|
|
110
|
+
cezarKey: z.ZodOptional<z.ZodString>;
|
|
111
|
+
grantId: z.ZodOptional<z.ZodString>;
|
|
112
|
+
grantExpiresAt: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
managerId: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type PhonePushState = z.infer<typeof phonePushStateSchema>;
|
|
116
|
+
export declare const setPhonePushGrantInputSchema: z.ZodObject<{
|
|
117
|
+
grant: z.ZodString;
|
|
118
|
+
grantId: z.ZodString;
|
|
119
|
+
expiresAt: z.ZodNumber;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
/** `event: signal` on `GET /workspace/phone/signals`: sent instead of a push while that stream is open. */
|
|
122
|
+
export declare const phoneSignalEventSchema: z.ZodObject<{
|
|
123
|
+
managerId: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export type PhoneSignalEvent = z.infer<typeof phoneSignalEventSchema>;
|
|
126
|
+
export type SetPhonePushGrantInput = z.infer<typeof setPhonePushGrantInputSchema>;
|
|
127
|
+
/** Where `relayOrigin` came from. `env-invalid` is a set `CEZ_RELAY_URL` that § 9.1 refuses; `none` is `CEZ_RELAY=0`. */
|
|
128
|
+
export declare const relayAddressSourceSchema: z.ZodEnum<{
|
|
129
|
+
default: "default";
|
|
130
|
+
env: "env";
|
|
131
|
+
"env-invalid": "env-invalid";
|
|
132
|
+
none: "none";
|
|
133
|
+
settings: "settings";
|
|
134
|
+
}>;
|
|
135
|
+
export type RelayAddressSource = z.infer<typeof relayAddressSourceSchema>;
|
|
136
|
+
export declare const phonesResponseSchema: z.ZodObject<{
|
|
137
|
+
relayOrigin: z.ZodString;
|
|
138
|
+
relaySource: z.ZodEnum<{
|
|
139
|
+
default: "default";
|
|
140
|
+
env: "env";
|
|
141
|
+
"env-invalid": "env-invalid";
|
|
142
|
+
none: "none";
|
|
143
|
+
settings: "settings";
|
|
144
|
+
}>;
|
|
145
|
+
relay: z.ZodObject<{
|
|
146
|
+
status: z.ZodEnum<{
|
|
147
|
+
connected: "connected";
|
|
148
|
+
connecting: "connecting";
|
|
149
|
+
disabled: "disabled";
|
|
150
|
+
error: "error";
|
|
151
|
+
locked: "locked";
|
|
152
|
+
off: "off";
|
|
153
|
+
quota: "quota";
|
|
154
|
+
"rate-limited": "rate-limited";
|
|
155
|
+
replaced: "replaced";
|
|
156
|
+
unreachable: "unreachable";
|
|
157
|
+
"update-required": "update-required";
|
|
158
|
+
}>;
|
|
159
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
phones: z.ZodArray<z.ZodObject<{
|
|
162
|
+
deviceId: z.ZodString;
|
|
163
|
+
label: z.ZodString;
|
|
164
|
+
platform: z.ZodEnum<{
|
|
165
|
+
android: "android";
|
|
166
|
+
ios: "ios";
|
|
167
|
+
}>;
|
|
168
|
+
addedAt: z.ZodString;
|
|
169
|
+
lastSeenAt: z.ZodOptional<z.ZodString>;
|
|
170
|
+
connected: z.ZodBoolean;
|
|
171
|
+
push: z.ZodOptional<z.ZodLiteral<true>>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
pairing: z.ZodNullable<z.ZodObject<{
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
status: z.ZodEnum<{
|
|
176
|
+
approved: "approved";
|
|
177
|
+
approving: "approving";
|
|
178
|
+
cancelled: "cancelled";
|
|
179
|
+
confirm: "confirm";
|
|
180
|
+
denied: "denied";
|
|
181
|
+
expired: "expired";
|
|
182
|
+
failed: "failed";
|
|
183
|
+
handshaking: "handshaking";
|
|
184
|
+
waiting: "waiting";
|
|
185
|
+
}>;
|
|
186
|
+
expiresAt: z.ZodString;
|
|
187
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
code: "code";
|
|
189
|
+
qr: "qr";
|
|
190
|
+
}>>;
|
|
191
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
platform: z.ZodEnum<{
|
|
194
|
+
android: "android";
|
|
195
|
+
ios: "ios";
|
|
196
|
+
}>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
digits: z.ZodOptional<z.ZodString>;
|
|
199
|
+
failure: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
"bad-payload": "bad-payload";
|
|
201
|
+
cancelled: "cancelled";
|
|
202
|
+
contested: "contested";
|
|
203
|
+
"device-limit": "device-limit";
|
|
204
|
+
"phone-left": "phone-left";
|
|
205
|
+
"relay-error": "relay-error";
|
|
206
|
+
timeout: "timeout";
|
|
207
|
+
"tunnel-unsupported": "tunnel-unsupported";
|
|
208
|
+
}>>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
undeniedGrants: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type PhonesResponse = z.infer<typeof phonesResponseSchema>;
|
|
213
|
+
/** Carries a credential, like the code below. Sent once, `no-store`, and never logged. */
|
|
214
|
+
export declare const startPhonePairingResponseSchema: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
qr: z.ZodString;
|
|
217
|
+
relayOrigin: z.ZodString;
|
|
218
|
+
expiresAt: z.ZodString;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
export type StartPhonePairingResponse = z.infer<typeof startPhonePairingResponseSchema>;
|
|
221
|
+
/** The typed code, opened only on request so an unused one costs the relay nothing (§ 9.2). */
|
|
222
|
+
export declare const phonePairingCodeResponseSchema: z.ZodObject<{
|
|
223
|
+
code: z.ZodString;
|
|
224
|
+
relayOrigin: z.ZodString;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
export type PhonePairingCodeResponse = z.infer<typeof phonePairingCodeResponseSchema>;
|
|
227
|
+
export declare const renamePhoneInputSchema: z.ZodObject<{
|
|
228
|
+
label: z.ZodString;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
export type RenamePhoneInput = z.infer<typeof renamePhoneInputSchema>;
|
|
231
|
+
/** `null` goes back to the default. `dropPhones` is the user's answer to the warning: without it, paired phones refuse the change. */
|
|
232
|
+
export declare const setRelayAddressInputSchema: z.ZodObject<{
|
|
233
|
+
address: z.ZodNullable<z.ZodString>;
|
|
234
|
+
dropPhones: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
export type SetRelayAddressInput = z.infer<typeof setRelayAddressInputSchema>;
|
|
237
|
+
export declare const testRelayAddressInputSchema: z.ZodObject<{
|
|
238
|
+
address: z.ZodString;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
export type TestRelayAddressInput = z.infer<typeof testRelayAddressInputSchema>;
|
|
241
|
+
export declare const relayTestFailureSchema: z.ZodEnum<{
|
|
242
|
+
disabled: "disabled";
|
|
243
|
+
incompatible: "incompatible";
|
|
244
|
+
"invalid-address": "invalid-address";
|
|
245
|
+
"not-a-relay": "not-a-relay";
|
|
246
|
+
"rate-limited": "rate-limited";
|
|
247
|
+
refused: "refused";
|
|
248
|
+
unreachable: "unreachable";
|
|
249
|
+
}>;
|
|
250
|
+
export type RelayTestFailure = z.infer<typeof relayTestFailureSchema>;
|
|
251
|
+
export declare const testRelayAddressResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
252
|
+
ok: z.ZodLiteral<true>;
|
|
253
|
+
origin: z.ZodString;
|
|
254
|
+
protocol: z.ZodNumber;
|
|
255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
256
|
+
ok: z.ZodLiteral<false>;
|
|
257
|
+
reason: z.ZodEnum<{
|
|
258
|
+
disabled: "disabled";
|
|
259
|
+
incompatible: "incompatible";
|
|
260
|
+
"invalid-address": "invalid-address";
|
|
261
|
+
"not-a-relay": "not-a-relay";
|
|
262
|
+
"rate-limited": "rate-limited";
|
|
263
|
+
refused: "refused";
|
|
264
|
+
unreachable: "unreachable";
|
|
265
|
+
}>;
|
|
266
|
+
}, z.core.$strip>], "ok">;
|
|
267
|
+
export type TestRelayAddressResponse = z.infer<typeof testRelayAddressResponseSchema>;
|
|
268
|
+
export declare const phoneOkResponseSchema: z.ZodObject<{
|
|
269
|
+
ok: z.ZodLiteral<true>;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
export type PhoneOkResponse = z.infer<typeof phoneOkResponseSchema>;
|
|
272
|
+
/** `phone-pairing` on `/workspace/events`: something on the screen changed. Withheld from a relay scope. */
|
|
273
|
+
export declare const phonePairingEventSchema: z.ZodObject<{
|
|
274
|
+
pairing: z.ZodNullable<z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
status: z.ZodEnum<{
|
|
277
|
+
approved: "approved";
|
|
278
|
+
approving: "approving";
|
|
279
|
+
cancelled: "cancelled";
|
|
280
|
+
confirm: "confirm";
|
|
281
|
+
denied: "denied";
|
|
282
|
+
expired: "expired";
|
|
283
|
+
failed: "failed";
|
|
284
|
+
handshaking: "handshaking";
|
|
285
|
+
waiting: "waiting";
|
|
286
|
+
}>;
|
|
287
|
+
expiresAt: z.ZodString;
|
|
288
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
code: "code";
|
|
290
|
+
qr: "qr";
|
|
291
|
+
}>>;
|
|
292
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
name: z.ZodString;
|
|
294
|
+
platform: z.ZodEnum<{
|
|
295
|
+
android: "android";
|
|
296
|
+
ios: "ios";
|
|
297
|
+
}>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
digits: z.ZodOptional<z.ZodString>;
|
|
300
|
+
failure: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
"bad-payload": "bad-payload";
|
|
302
|
+
cancelled: "cancelled";
|
|
303
|
+
contested: "contested";
|
|
304
|
+
"device-limit": "device-limit";
|
|
305
|
+
"phone-left": "phone-left";
|
|
306
|
+
"relay-error": "relay-error";
|
|
307
|
+
timeout: "timeout";
|
|
308
|
+
"tunnel-unsupported": "tunnel-unsupported";
|
|
309
|
+
}>>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
export type PhonePairingEvent = z.infer<typeof phonePairingEventSchema>;
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import { RunStore } from './runs/store.js';
|
|
|
21
21
|
import { RunManager } from './workflows/run.js';
|
|
22
22
|
import { loadWorkflows } from './workflows/load.js';
|
|
23
23
|
import { resolveCapabilities } from './server/capabilities.js';
|
|
24
|
+
import { narrowForRelay } from './relay/scope.js';
|
|
24
25
|
import { startServer, WorkspaceEventBus } from './server/server.js';
|
|
25
26
|
import { registerRunningInstance } from './worktree-in-use.js';
|
|
26
27
|
import { ProviderRuntimeAuthObserver, recoverWithProviderRuntimeAuthObservation, } from './server/provider-auth-runtime.js';
|
|
@@ -440,7 +441,7 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost) {
|
|
|
440
441
|
runs: semaphore,
|
|
441
442
|
// The server's own predicate, not a second spelling of it: the `/apply` guard decides hosted
|
|
442
443
|
// mode through `resolveCapabilities`, and the two must never disagree (they did, on 127.0.0.2).
|
|
443
|
-
trimPaths: () => !resolveCapabilities(process.env, bindHost).localHandoff,
|
|
444
|
+
trimPaths: () => !narrowForRelay(resolveCapabilities(process.env, bindHost)).localHandoff,
|
|
444
445
|
restart: () => {
|
|
445
446
|
void (httpServer?.shutdownLifecycle() ?? manager.lifecycle.shutdown()).then(() => {
|
|
446
447
|
store.flush({ pretty: true });
|