@intentic/sandbox-contract 1.366.0 → 1.367.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.
Files changed (104) hide show
  1. package/dist/contracts/agent.contract.d.ts +9 -0
  2. package/dist/contracts/agent.contract.d.ts.map +1 -1
  3. package/dist/contracts/agents.contract.d.ts +2 -0
  4. package/dist/contracts/agents.contract.d.ts.map +1 -1
  5. package/dist/contracts/device.contract.d.ts +43 -0
  6. package/dist/contracts/device.contract.d.ts.map +1 -1
  7. package/dist/contracts/needs.contract.d.ts +237 -0
  8. package/dist/contracts/needs.contract.d.ts.map +1 -1
  9. package/dist/contracts/needs.contract.js +10 -1
  10. package/dist/contracts/needs.contract.js.map +1 -1
  11. package/dist/contracts/ports.contract.d.ts +25 -0
  12. package/dist/contracts/ports.contract.d.ts.map +1 -1
  13. package/dist/contracts/ports.contract.js +29 -1
  14. package/dist/contracts/ports.contract.js.map +1 -1
  15. package/dist/contracts/runner.contract.d.ts +6 -0
  16. package/dist/contracts/runner.contract.d.ts.map +1 -1
  17. package/dist/contracts/sessions.contract.d.ts +1 -0
  18. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  19. package/dist/contracts/system.contract.d.ts +1498 -231
  20. package/dist/contracts/system.contract.d.ts.map +1 -1
  21. package/dist/contracts/system.contract.js +15 -3
  22. package/dist/contracts/system.contract.js.map +1 -1
  23. package/dist/events/agent-events.d.ts +5 -0
  24. package/dist/events/agent-events.d.ts.map +1 -1
  25. package/dist/events/agent-events.js +1 -0
  26. package/dist/events/agent-events.js.map +1 -1
  27. package/dist/events/agent-transcript.d.ts +1 -0
  28. package/dist/events/agent-transcript.d.ts.map +1 -1
  29. package/dist/events/system-events.d.ts +1077 -142
  30. package/dist/events/system-events.d.ts.map +1 -1
  31. package/dist/events/system-events.js +8 -0
  32. package/dist/events/system-events.js.map +1 -1
  33. package/dist/events/transcript.d.ts +6 -0
  34. package/dist/events/transcript.d.ts.map +1 -1
  35. package/dist/events/transcript.js +4 -0
  36. package/dist/events/transcript.js.map +1 -1
  37. package/dist/index.d.ts +1772 -231
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/netd/generated/wire.d.ts +8 -0
  40. package/dist/netd/generated/wire.d.ts.map +1 -1
  41. package/dist/protocol/raw/raw-json-routes.d.ts +3 -0
  42. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  43. package/dist/schemas/dev-rebuild-log.d.ts +2 -0
  44. package/dist/schemas/dev-rebuild-log.d.ts.map +1 -1
  45. package/dist/schemas/dev-rebuild-log.js +7 -1
  46. package/dist/schemas/dev-rebuild-log.js.map +1 -1
  47. package/dist/schemas/device-commands.d.ts +1 -1
  48. package/dist/schemas/device-commands.d.ts.map +1 -1
  49. package/dist/schemas/device-commands.js +1 -1
  50. package/dist/schemas/device-commands.js.map +1 -1
  51. package/dist/schemas/devices.d.ts +249 -0
  52. package/dist/schemas/devices.d.ts.map +1 -1
  53. package/dist/schemas/devices.js +6 -0
  54. package/dist/schemas/devices.js.map +1 -1
  55. package/dist/schemas/egress.d.ts +238 -0
  56. package/dist/schemas/egress.d.ts.map +1 -0
  57. package/dist/schemas/egress.js +192 -0
  58. package/dist/schemas/egress.js.map +1 -0
  59. package/dist/schemas/hosts.d.ts +2 -0
  60. package/dist/schemas/hosts.d.ts.map +1 -1
  61. package/dist/schemas/hosts.js +2 -0
  62. package/dist/schemas/hosts.js.map +1 -1
  63. package/dist/schemas/members.d.ts +4 -0
  64. package/dist/schemas/members.d.ts.map +1 -1
  65. package/dist/schemas/members.js +1 -1
  66. package/dist/schemas/members.js.map +1 -1
  67. package/dist/schemas/needs.d.ts +8 -0
  68. package/dist/schemas/needs.d.ts.map +1 -1
  69. package/dist/schemas/needs.js +8 -1
  70. package/dist/schemas/needs.js.map +1 -1
  71. package/dist/schemas/ports.d.ts +21 -0
  72. package/dist/schemas/ports.d.ts.map +1 -1
  73. package/dist/schemas/ports.js +12 -0
  74. package/dist/schemas/ports.js.map +1 -1
  75. package/dist/state/auth-state.d.ts.map +1 -1
  76. package/dist/state/auth-state.js +1 -0
  77. package/dist/state/auth-state.js.map +1 -1
  78. package/dist/text/transcript-fold.d.ts.map +1 -1
  79. package/dist/text/transcript-fold.js +1 -0
  80. package/dist/text/transcript-fold.js.map +1 -1
  81. package/package.json +5 -5
  82. package/src/contracts/needs.contract.ts +11 -0
  83. package/src/contracts/ports.contract.ts +42 -1
  84. package/src/contracts/system.contract.ts +24 -3
  85. package/src/events/agent-events.ts +2 -0
  86. package/src/events/system-events.ts +22 -1
  87. package/src/events/transcript.ts +5 -0
  88. package/src/netd/generated/netd-wire.json +44 -0
  89. package/src/netd/generated/wire.ts +36 -1
  90. package/src/schemas/dev-rebuild-log.test.ts +10 -1
  91. package/src/schemas/dev-rebuild-log.ts +14 -1
  92. package/src/schemas/device-commands.ts +1 -0
  93. package/src/schemas/devices.ts +14 -0
  94. package/src/schemas/egress-private.test.ts +17 -0
  95. package/src/schemas/egress.test.ts +109 -0
  96. package/src/schemas/egress.ts +331 -0
  97. package/src/schemas/hosts.ts +3 -0
  98. package/src/schemas/members.ts +3 -1
  99. package/src/schemas/needs.ts +9 -1
  100. package/src/schemas/ports.ts +25 -0
  101. package/src/state/auth-state.ts +3 -0
  102. package/src/state/daemon-floor.test.ts +1 -0
  103. package/src/text/transcript-fold.test.ts +7 -0
  104. package/src/text/transcript-fold.ts +1 -0
package/dist/index.d.ts CHANGED
@@ -921,6 +921,7 @@ export declare const sandboxContract: {
921
921
  createdAt: number;
922
922
  updatedAt: number;
923
923
  answeredBy?: string | undefined;
924
+ byAgent?: boolean | undefined;
924
925
  outcome?: string | undefined;
925
926
  told?: "call" | "queued" | "turn" | undefined;
926
927
  unattended?: boolean | undefined;
@@ -1375,6 +1376,7 @@ export declare const sandboxContract: {
1375
1376
  createdAt: number;
1376
1377
  updatedAt: number;
1377
1378
  answeredBy?: string | undefined;
1379
+ byAgent?: boolean | undefined;
1378
1380
  outcome?: string | undefined;
1379
1381
  told?: "call" | "queued" | "turn" | undefined;
1380
1382
  unattended?: boolean | undefined;
@@ -1828,6 +1830,7 @@ export declare const sandboxContract: {
1828
1830
  createdAt: number;
1829
1831
  updatedAt: number;
1830
1832
  answeredBy?: string | undefined;
1833
+ byAgent?: boolean | undefined;
1831
1834
  outcome?: string | undefined;
1832
1835
  told?: "call" | "queued" | "turn" | undefined;
1833
1836
  unattended?: boolean | undefined;
@@ -2317,6 +2320,7 @@ export declare const sandboxContract: {
2317
2320
  createdAt: number;
2318
2321
  updatedAt: number;
2319
2322
  answeredBy?: string | undefined;
2323
+ byAgent?: boolean | undefined;
2320
2324
  outcome?: string | undefined;
2321
2325
  told?: "call" | "queued" | "turn" | undefined;
2322
2326
  unattended?: boolean | undefined;
@@ -2773,6 +2777,7 @@ export declare const sandboxContract: {
2773
2777
  createdAt: number;
2774
2778
  updatedAt: number;
2775
2779
  answeredBy?: string | undefined;
2780
+ byAgent?: boolean | undefined;
2776
2781
  outcome?: string | undefined;
2777
2782
  told?: "call" | "queued" | "turn" | undefined;
2778
2783
  unattended?: boolean | undefined;
@@ -3228,6 +3233,7 @@ export declare const sandboxContract: {
3228
3233
  createdAt: number;
3229
3234
  updatedAt: number;
3230
3235
  answeredBy?: string | undefined;
3236
+ byAgent?: boolean | undefined;
3231
3237
  outcome?: string | undefined;
3232
3238
  told?: "call" | "queued" | "turn" | undefined;
3233
3239
  unattended?: boolean | undefined;
@@ -3875,6 +3881,7 @@ export declare const sandboxContract: {
3875
3881
  createdAt: z.ZodNumber;
3876
3882
  updatedAt: z.ZodNumber;
3877
3883
  answeredBy: z.ZodOptional<z.ZodString>;
3884
+ byAgent: z.ZodOptional<z.ZodBoolean>;
3878
3885
  outcome: z.ZodOptional<z.ZodString>;
3879
3886
  told: z.ZodOptional<z.ZodEnum<{
3880
3887
  call: "call";
@@ -4542,6 +4549,7 @@ export declare const sandboxContract: {
4542
4549
  createdAt: z.ZodNumber;
4543
4550
  updatedAt: z.ZodNumber;
4544
4551
  answeredBy: z.ZodOptional<z.ZodString>;
4552
+ byAgent: z.ZodOptional<z.ZodBoolean>;
4545
4553
  outcome: z.ZodOptional<z.ZodString>;
4546
4554
  told: z.ZodOptional<z.ZodEnum<{
4547
4555
  call: "call";
@@ -5208,6 +5216,7 @@ export declare const sandboxContract: {
5208
5216
  createdAt: z.ZodNumber;
5209
5217
  updatedAt: z.ZodNumber;
5210
5218
  answeredBy: z.ZodOptional<z.ZodString>;
5219
+ byAgent: z.ZodOptional<z.ZodBoolean>;
5211
5220
  outcome: z.ZodOptional<z.ZodString>;
5212
5221
  told: z.ZodOptional<z.ZodEnum<{
5213
5222
  call: "call";
@@ -8443,6 +8452,7 @@ export declare const sandboxContract: {
8443
8452
  createdAt: z.ZodNumber;
8444
8453
  updatedAt: z.ZodNumber;
8445
8454
  answeredBy: z.ZodOptional<z.ZodString>;
8455
+ byAgent: z.ZodOptional<z.ZodBoolean>;
8446
8456
  outcome: z.ZodOptional<z.ZodString>;
8447
8457
  told: z.ZodOptional<z.ZodEnum<{
8448
8458
  call: "call";
@@ -9215,6 +9225,7 @@ export declare const sandboxContract: {
9215
9225
  createdAt: z.ZodNumber;
9216
9226
  updatedAt: z.ZodNumber;
9217
9227
  answeredBy: z.ZodOptional<z.ZodString>;
9228
+ byAgent: z.ZodOptional<z.ZodBoolean>;
9218
9229
  outcome: z.ZodOptional<z.ZodString>;
9219
9230
  told: z.ZodOptional<z.ZodEnum<{
9220
9231
  call: "call";
@@ -22635,6 +22646,7 @@ export declare const sandboxContract: {
22635
22646
  createdAt: z.ZodNumber;
22636
22647
  updatedAt: z.ZodNumber;
22637
22648
  answeredBy: z.ZodOptional<z.ZodString>;
22649
+ byAgent: z.ZodOptional<z.ZodBoolean>;
22638
22650
  outcome: z.ZodOptional<z.ZodString>;
22639
22651
  told: z.ZodOptional<z.ZodEnum<{
22640
22652
  call: "call";
@@ -22864,6 +22876,7 @@ export declare const sandboxContract: {
22864
22876
  createdAt: z.ZodNumber;
22865
22877
  updatedAt: z.ZodNumber;
22866
22878
  answeredBy: z.ZodOptional<z.ZodString>;
22879
+ byAgent: z.ZodOptional<z.ZodBoolean>;
22867
22880
  outcome: z.ZodOptional<z.ZodString>;
22868
22881
  told: z.ZodOptional<z.ZodEnum<{
22869
22882
  call: "call";
@@ -23093,6 +23106,237 @@ export declare const sandboxContract: {
23093
23106
  createdAt: z.ZodNumber;
23094
23107
  updatedAt: z.ZodNumber;
23095
23108
  answeredBy: z.ZodOptional<z.ZodString>;
23109
+ byAgent: z.ZodOptional<z.ZodBoolean>;
23110
+ outcome: z.ZodOptional<z.ZodString>;
23111
+ told: z.ZodOptional<z.ZodEnum<{
23112
+ call: "call";
23113
+ queued: "queued";
23114
+ turn: "turn";
23115
+ }>>;
23116
+ unattended: z.ZodOptional<z.ZodBoolean>;
23117
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
23118
+ done: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
23119
+ id: z.ZodString;
23120
+ how: z.ZodString;
23121
+ }, z.core.$strip>, z.ZodObject<{
23122
+ id: z.ZodString;
23123
+ conversationId: z.ZodString;
23124
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
23125
+ kind: z.ZodLiteral<"capability">;
23126
+ entry: z.ZodString;
23127
+ name: z.ZodString;
23128
+ mode: z.ZodEnum<{
23129
+ change: "change";
23130
+ connect: "connect";
23131
+ reconnect: "reconnect";
23132
+ remove: "remove";
23133
+ }>;
23134
+ instance: z.ZodOptional<z.ZodString>;
23135
+ target: z.ZodOptional<z.ZodString>;
23136
+ prefill: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23137
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23138
+ reason: z.ZodOptional<z.ZodString>;
23139
+ reported: z.ZodOptional<z.ZodBoolean>;
23140
+ }, z.core.$strip>, z.ZodObject<{
23141
+ kind: z.ZodLiteral<"secret">;
23142
+ name: z.ZodString;
23143
+ where: z.ZodOptional<z.ZodString>;
23144
+ link: z.ZodOptional<z.ZodString>;
23145
+ hint: z.ZodOptional<z.ZodString>;
23146
+ replace: z.ZodOptional<z.ZodBoolean>;
23147
+ }, z.core.$strip>, z.ZodObject<{
23148
+ kind: z.ZodLiteral<"grant">;
23149
+ subject: z.ZodEnum<{
23150
+ capability: "capability";
23151
+ folder: "folder";
23152
+ shelf: "shelf";
23153
+ site: "site";
23154
+ }>;
23155
+ what: z.ZodString;
23156
+ label: z.ZodString;
23157
+ persona: z.ZodOptional<z.ZodString>;
23158
+ scope: z.ZodOptional<z.ZodEnum<{
23159
+ conversation: "conversation";
23160
+ persona: "persona";
23161
+ }>>;
23162
+ }, z.core.$strip>, z.ZodObject<{
23163
+ kind: z.ZodLiteral<"release">;
23164
+ subject: z.ZodString;
23165
+ approvers: z.ZodArray<z.ZodString>;
23166
+ }, z.core.$strip>, z.ZodObject<{
23167
+ kind: z.ZodLiteral<"environment">;
23168
+ tool: z.ZodString;
23169
+ steps: z.ZodString;
23170
+ approvedHash: z.ZodOptional<z.ZodString>;
23171
+ }, z.core.$strip>, z.ZodObject<{
23172
+ kind: z.ZodLiteral<"automation">;
23173
+ automation: z.ZodObject<{
23174
+ id: z.ZodString;
23175
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
23176
+ kind: z.ZodLiteral<"schedule">;
23177
+ cron: z.ZodString;
23178
+ tz: z.ZodOptional<z.ZodString & z.ZodType<import("./time/zone.js").Zone, string, z.core.$ZodTypeInternals<import("./time/zone.js").Zone, string>>>;
23179
+ afterSessions: z.ZodOptional<z.ZodNumber>;
23180
+ }, z.core.$strip>, z.ZodObject<{
23181
+ kind: z.ZodLiteral<"once">;
23182
+ at: z.ZodNumber;
23183
+ }, z.core.$strip>, z.ZodObject<{
23184
+ kind: z.ZodLiteral<"event">;
23185
+ dailyMax: z.ZodOptional<z.ZodNumber>;
23186
+ }, z.core.$strip>, z.ZodObject<{
23187
+ kind: z.ZodLiteral<"listener">;
23188
+ provider: z.ZodString;
23189
+ channelId: z.ZodOptional<z.ZodString>;
23190
+ eventType: z.ZodOptional<z.ZodString>;
23191
+ mentioned: z.ZodOptional<z.ZodBoolean>;
23192
+ branch: z.ZodOptional<z.ZodString>;
23193
+ allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
23194
+ }, z.core.$strip>, z.ZodObject<{
23195
+ kind: z.ZodLiteral<"workspace">;
23196
+ event: z.ZodEnum<{
23197
+ "agent.landed": "agent.landed";
23198
+ "deps.broken": "deps.broken";
23199
+ "deps.fixed": "deps.fixed";
23200
+ "turn.settled": "turn.settled";
23201
+ }>;
23202
+ repo: z.ZodOptional<z.ZodString>;
23203
+ }, z.core.$strip>], "kind">;
23204
+ guard: z.ZodOptional<z.ZodString>;
23205
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
23206
+ kind: z.ZodLiteral<"npm">;
23207
+ package: z.ZodString;
23208
+ range: z.ZodOptional<z.ZodString>;
23209
+ tag: z.ZodOptional<z.ZodString>;
23210
+ }, z.core.$strip>, z.ZodObject<{
23211
+ kind: z.ZodLiteral<"github-release">;
23212
+ repo: z.ZodString;
23213
+ prereleases: z.ZodOptional<z.ZodBoolean>;
23214
+ }, z.core.$strip>, z.ZodObject<{
23215
+ kind: z.ZodLiteral<"url">;
23216
+ url: z.ZodString;
23217
+ select: z.ZodOptional<z.ZodString>;
23218
+ }, z.core.$strip>], "kind">>;
23219
+ fireOn: z.ZodOptional<z.ZodEnum<{
23220
+ change: "change";
23221
+ pass: "pass";
23222
+ }>>;
23223
+ until: z.ZodOptional<z.ZodEnum<{
23224
+ "first-fire": "first-fire";
23225
+ }>>;
23226
+ expiresAt: z.ZodOptional<z.ZodNumber>;
23227
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
23228
+ kind: z.ZodLiteral<"agent">;
23229
+ }, z.core.$strip>, z.ZodObject<{
23230
+ kind: z.ZodLiteral<"conversation">;
23231
+ conversationId: z.ZodString;
23232
+ }, z.core.$strip>, z.ZodObject<{
23233
+ kind: z.ZodLiteral<"notify">;
23234
+ }, z.core.$strip>], "kind">>;
23235
+ note: z.ZodOptional<z.ZodString>;
23236
+ prompt: z.ZodString;
23237
+ webchat: z.ZodOptional<z.ZodObject<{
23238
+ access: z.ZodOptional<z.ZodEnum<{
23239
+ google: "google";
23240
+ public: "public";
23241
+ }>>;
23242
+ requireName: z.ZodOptional<z.ZodBoolean>;
23243
+ antiBot: z.ZodOptional<z.ZodEnum<{
23244
+ pow: "pow";
23245
+ turnstile: "turnstile";
23246
+ }>>;
23247
+ turnstileSiteKey: z.ZodOptional<z.ZodString>;
23248
+ turnstileSecret: z.ZodOptional<z.ZodString>;
23249
+ googleClientId: z.ZodOptional<z.ZodString>;
23250
+ title: z.ZodOptional<z.ZodString>;
23251
+ greeting: z.ZodOptional<z.ZodString>;
23252
+ accent: z.ZodOptional<z.ZodString>;
23253
+ position: z.ZodOptional<z.ZodEnum<{
23254
+ "bottom-left": "bottom-left";
23255
+ "bottom-right": "bottom-right";
23256
+ "top-left": "top-left";
23257
+ "top-right": "top-right";
23258
+ }>>;
23259
+ dailyMessageMax: z.ZodOptional<z.ZodNumber>;
23260
+ conversationMessageMax: z.ZodOptional<z.ZodNumber>;
23261
+ sessionTtlMinutes: z.ZodOptional<z.ZodNumber>;
23262
+ aiDisclosure: z.ZodOptional<z.ZodBoolean>;
23263
+ aiDisclosureText: z.ZodOptional<z.ZodString>;
23264
+ }, z.core.$strip>>;
23265
+ issues: z.ZodOptional<z.ZodObject<{
23266
+ keyFromBrowsers: z.ZodOptional<z.ZodBoolean>;
23267
+ dailyReportMax: z.ZodOptional<z.ZodNumber>;
23268
+ escalateAfter: z.ZodOptional<z.ZodNumber>;
23269
+ antiBot: z.ZodOptional<z.ZodEnum<{
23270
+ pow: "pow";
23271
+ }>>;
23272
+ title: z.ZodOptional<z.ZodString>;
23273
+ prompt: z.ZodOptional<z.ZodString>;
23274
+ thanks: z.ZodOptional<z.ZodString>;
23275
+ askEmail: z.ZodOptional<z.ZodBoolean>;
23276
+ accent: z.ZodOptional<z.ZodString>;
23277
+ captureCrashes: z.ZodOptional<z.ZodBoolean>;
23278
+ }, z.core.$strip>>;
23279
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
23280
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
23281
+ provider: z.ZodString;
23282
+ model: z.ZodString;
23283
+ effort: z.ZodOptional<z.ZodString>;
23284
+ thinking: z.ZodOptional<z.ZodBoolean>;
23285
+ fast: z.ZodOptional<z.ZodBoolean>;
23286
+ harness: z.ZodOptional<z.ZodEnum<{
23287
+ "claude-code": "claude-code";
23288
+ codex: "codex";
23289
+ muse: "muse";
23290
+ native: "native";
23291
+ opencode: "opencode";
23292
+ pi: "pi";
23293
+ vendor: "vendor";
23294
+ }>>;
23295
+ }, z.core.$strip>>>;
23296
+ account: z.ZodOptional<z.ZodString>;
23297
+ actsAs: z.ZodOptional<z.ZodString>;
23298
+ runAs: z.ZodOptional<z.ZodString>;
23299
+ senders: z.ZodOptional<z.ZodObject<{
23300
+ rules: z.ZodArray<z.ZodObject<{
23301
+ label: z.ZodOptional<z.ZodString>;
23302
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
23303
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
23304
+ actsAs: z.ZodOptional<z.ZodString>;
23305
+ runAs: z.ZodOptional<z.ZodString>;
23306
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
23307
+ }, z.core.$strip>>;
23308
+ others: z.ZodEnum<{
23309
+ allow: "allow";
23310
+ hold: "hold";
23311
+ ignore: "ignore";
23312
+ }>;
23313
+ }, z.core.$strip>>;
23314
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
23315
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
23316
+ chore: z.ZodOptional<z.ZodBoolean>;
23317
+ group: z.ZodOptional<z.ZodString>;
23318
+ enabled: z.ZodBoolean;
23319
+ }, z.core.$strip>;
23320
+ replaces: z.ZodOptional<z.ZodBoolean>;
23321
+ firstCheck: z.ZodOptional<z.ZodObject<{
23322
+ pass: z.ZodBoolean;
23323
+ saw: z.ZodString;
23324
+ at: z.ZodNumber;
23325
+ }, z.core.$strip>>;
23326
+ }, z.core.$strip>], "kind">;
23327
+ title: z.ZodString;
23328
+ why: z.ZodOptional<z.ZodString>;
23329
+ status: z.ZodEnum<{
23330
+ cancelled: "cancelled";
23331
+ declined: "declined";
23332
+ met: "met";
23333
+ open: "open";
23334
+ working: "working";
23335
+ }>;
23336
+ createdAt: z.ZodNumber;
23337
+ updatedAt: z.ZodNumber;
23338
+ answeredBy: z.ZodOptional<z.ZodString>;
23339
+ byAgent: z.ZodOptional<z.ZodBoolean>;
23096
23340
  outcome: z.ZodOptional<z.ZodString>;
23097
23341
  told: z.ZodOptional<z.ZodEnum<{
23098
23342
  call: "call";
@@ -23323,6 +23567,7 @@ export declare const sandboxContract: {
23323
23567
  createdAt: z.ZodNumber;
23324
23568
  updatedAt: z.ZodNumber;
23325
23569
  answeredBy: z.ZodOptional<z.ZodString>;
23570
+ byAgent: z.ZodOptional<z.ZodBoolean>;
23326
23571
  outcome: z.ZodOptional<z.ZodString>;
23327
23572
  told: z.ZodOptional<z.ZodEnum<{
23328
23573
  call: "call";
@@ -23570,6 +23815,7 @@ export declare const sandboxContract: {
23570
23815
  createdAt: z.ZodNumber;
23571
23816
  updatedAt: z.ZodNumber;
23572
23817
  answeredBy: z.ZodOptional<z.ZodString>;
23818
+ byAgent: z.ZodOptional<z.ZodBoolean>;
23573
23819
  outcome: z.ZodOptional<z.ZodString>;
23574
23820
  told: z.ZodOptional<z.ZodEnum<{
23575
23821
  call: "call";
@@ -23802,6 +24048,7 @@ export declare const sandboxContract: {
23802
24048
  createdAt: z.ZodNumber;
23803
24049
  updatedAt: z.ZodNumber;
23804
24050
  answeredBy: z.ZodOptional<z.ZodString>;
24051
+ byAgent: z.ZodOptional<z.ZodBoolean>;
23805
24052
  outcome: z.ZodOptional<z.ZodString>;
23806
24053
  told: z.ZodOptional<z.ZodEnum<{
23807
24054
  call: "call";
@@ -24039,6 +24286,7 @@ export declare const sandboxContract: {
24039
24286
  createdAt: z.ZodNumber;
24040
24287
  updatedAt: z.ZodNumber;
24041
24288
  answeredBy: z.ZodOptional<z.ZodString>;
24289
+ byAgent: z.ZodOptional<z.ZodBoolean>;
24042
24290
  outcome: z.ZodOptional<z.ZodString>;
24043
24291
  told: z.ZodOptional<z.ZodEnum<{
24044
24292
  call: "call";
@@ -24717,6 +24965,31 @@ export declare const sandboxContract: {
24717
24965
  }, z.core.$strip>, z.ZodObject<{
24718
24966
  ok: z.ZodLiteral<true>;
24719
24967
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
24968
+ previewGuard: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
24969
+ scope: z.ZodDefault<z.ZodEnum<{
24970
+ all: "all";
24971
+ off: "off";
24972
+ panels: "panels";
24973
+ }>>;
24974
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
24975
+ setPreviewGuard: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
24976
+ scope: z.ZodDefault<z.ZodEnum<{
24977
+ all: "all";
24978
+ off: "off";
24979
+ panels: "panels";
24980
+ }>>;
24981
+ }, z.core.$strip>, z.ZodObject<{
24982
+ scope: z.ZodDefault<z.ZodEnum<{
24983
+ all: "all";
24984
+ off: "off";
24985
+ panels: "panels";
24986
+ }>>;
24987
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
24988
+ previewPass: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
24989
+ url: z.ZodString;
24990
+ }, z.core.$strip>, z.ZodObject<{
24991
+ url: z.ZodString;
24992
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
24720
24993
  };
24721
24994
  privacy: {
24722
24995
  status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
@@ -26305,6 +26578,7 @@ export declare const sandboxContract: {
26305
26578
  createdAt: z.ZodNumber;
26306
26579
  updatedAt: z.ZodNumber;
26307
26580
  answeredBy: z.ZodOptional<z.ZodString>;
26581
+ byAgent: z.ZodOptional<z.ZodBoolean>;
26308
26582
  outcome: z.ZodOptional<z.ZodString>;
26309
26583
  told: z.ZodOptional<z.ZodEnum<{
26310
26584
  call: "call";
@@ -27915,7 +28189,24 @@ export declare const sandboxContract: {
27915
28189
  }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
27916
28190
  events: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
27917
28191
  clientId: z.ZodOptional<z.ZodString>;
28192
+ roster: z.ZodOptional<z.ZodEnum<{
28193
+ changes: "changes";
28194
+ snapshots: "snapshots";
28195
+ }>>;
27918
28196
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
28197
+ kind: "heartbeat";
28198
+ rev: number;
28199
+ } | {
28200
+ ready: boolean;
28201
+ startedAt: number;
28202
+ steps: {
28203
+ key: string;
28204
+ label: string;
28205
+ state: "done" | "failed" | "pending" | "running";
28206
+ ms?: number | undefined;
28207
+ }[];
28208
+ kind: "boot";
28209
+ } | {
27919
28210
  kind: "hello";
27920
28211
  workspaceId: string;
27921
28212
  routes?: string[] | undefined;
@@ -27938,27 +28229,14 @@ export declare const sandboxContract: {
27938
28229
  projectDir?: string | undefined;
27939
28230
  surface?: "folder" | "sandbox" | undefined;
27940
28231
  } | {
27941
- kind: "heartbeat";
27942
- rev: number;
27943
- } | {
27944
- ready: boolean;
27945
- startedAt: number;
27946
- steps: {
27947
- key: string;
27948
- label: string;
27949
- state: "done" | "failed" | "pending" | "running";
27950
- ms?: number | undefined;
27951
- }[];
27952
- kind: "boot";
28232
+ kind: "reposChanged";
28233
+ repos: string[];
27953
28234
  } | {
27954
28235
  kind: "workspaceChanged";
27955
28236
  paths: string[];
27956
28237
  } | {
27957
28238
  kind: "derivedChanged";
27958
28239
  paths: string[];
27959
- } | {
27960
- kind: "reposChanged";
27961
- repos: string[];
27962
28240
  } | {
27963
28241
  kind: "refsChanged";
27964
28242
  repos: string[];
@@ -28316,133 +28594,7 @@ export declare const sandboxContract: {
28316
28594
  }[];
28317
28595
  rev: number;
28318
28596
  } | {
28319
- kind: "accountUsage";
28320
- provider: string;
28321
- account: string;
28322
- usage?: {
28323
- windows: {
28324
- kind: string;
28325
- label?: string | undefined;
28326
- utilization: number;
28327
- resetsAt?: number | undefined;
28328
- gates: "all" | "none" | {
28329
- models: string[];
28330
- };
28331
- rounded?: boolean | undefined;
28332
- lapsedAt?: number | undefined;
28333
- missingSince?: number | undefined;
28334
- }[];
28335
- measuredAt: number;
28336
- unread?: {
28337
- since: number;
28338
- reason: string;
28339
- } | undefined;
28340
- uncovered?: string[] | undefined;
28341
- contradicted?: {
28342
- at: number;
28343
- model: string;
28344
- } | undefined;
28345
- } | undefined;
28346
- } | {
28347
- kind: "providerRefusal";
28348
- provider: string;
28349
- refusals?: {
28350
- at: number;
28351
- kind: "auth" | "entitlement" | "limit";
28352
- message: string;
28353
- account?: string | undefined;
28354
- model?: string | undefined;
28355
- resetsAt?: number | undefined;
28356
- poolResetsAt?: number | undefined;
28357
- unmetered?: true | undefined;
28358
- byHand?: true | undefined;
28359
- }[] | undefined;
28360
- refusal?: {
28361
- at: number;
28362
- kind: "auth" | "entitlement" | "limit";
28363
- message: string;
28364
- account?: string | undefined;
28365
- model?: string | undefined;
28366
- resetsAt?: number | undefined;
28367
- poolResetsAt?: number | undefined;
28368
- unmetered?: true | undefined;
28369
- byHand?: true | undefined;
28370
- } | undefined;
28371
- } | {
28372
- from: number;
28373
- generation: number;
28374
- dirs: {
28375
- path: string;
28376
- entries: unknown[];
28377
- }[];
28378
- barren?: string[] | undefined;
28379
- kind: "treeChanged";
28380
- }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
28381
- kind: "hello";
28382
- workspaceId: string;
28383
- routes?: string[] | undefined;
28384
- shapes?: Record<string, string> | undefined;
28385
- rawRoutes?: string[] | undefined;
28386
- rawFingerprints?: Record<string, string> | undefined;
28387
- uploadEncodings?: string[] | undefined;
28388
- voiceCodecs?: string[] | undefined;
28389
- build?: string | undefined;
28390
- boot?: {
28391
- ready: boolean;
28392
- startedAt: number;
28393
- steps: {
28394
- key: string;
28395
- label: string;
28396
- state: "done" | "failed" | "pending" | "running";
28397
- ms?: number | undefined;
28398
- }[];
28399
- } | undefined;
28400
- projectDir?: string | undefined;
28401
- surface?: "folder" | "sandbox" | undefined;
28402
- } | {
28403
- kind: "heartbeat";
28404
- rev: number;
28405
- } | {
28406
- ready: boolean;
28407
- startedAt: number;
28408
- steps: {
28409
- key: string;
28410
- label: string;
28411
- state: "done" | "failed" | "pending" | "running";
28412
- ms?: number | undefined;
28413
- }[];
28414
- kind: "boot";
28415
- } | {
28416
- kind: "workspaceChanged";
28417
- paths: string[];
28418
- } | {
28419
- kind: "derivedChanged";
28420
- paths: string[];
28421
- } | {
28422
- kind: "reposChanged";
28423
- repos: string[];
28424
- } | {
28425
- kind: "refsChanged";
28426
- repos: string[];
28427
- } | {
28428
- kind: "runtimeChanged";
28429
- domains: string[];
28430
- } | {
28431
- kind: "presence";
28432
- users: {
28433
- clientId: string;
28434
- email: string;
28435
- name?: string | undefined;
28436
- picture?: string | undefined;
28437
- role: "collaborator" | "guest" | "maintainer" | "owner" | "viewer" | "writer";
28438
- idle: boolean;
28439
- away?: boolean | undefined;
28440
- view?: string | undefined;
28441
- sessionId?: string | undefined;
28442
- path?: string | undefined;
28443
- }[];
28444
- } | {
28445
- kind: "agents";
28597
+ kind: "agentsChanged";
28446
28598
  agents: {
28447
28599
  id: string;
28448
28600
  sessionId?: string | undefined;
@@ -28777,6 +28929,7 @@ export declare const sandboxContract: {
28777
28929
  archivedAt?: number | undefined;
28778
28930
  }[];
28779
28931
  rev: number;
28932
+ since: number;
28780
28933
  } | {
28781
28934
  kind: "accountUsage";
28782
28935
  provider: string;
@@ -28835,106 +28988,1368 @@ export declare const sandboxContract: {
28835
28988
  generation: number;
28836
28989
  dirs: {
28837
28990
  path: string;
28838
- entries: import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry[];
28991
+ entries: unknown[];
28839
28992
  }[];
28840
28993
  barren?: string[] | undefined;
28841
28994
  kind: "treeChanged";
28842
- }, unknown, void>> & {
28843
- [x: symbol]: z.ZodDiscriminatedUnion<[z.ZodObject<{
28844
- kind: z.ZodLiteral<"hello">;
28845
- workspaceId: z.ZodString;
28846
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
28847
- shapes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
28848
- rawRoutes: z.ZodOptional<z.ZodArray<z.ZodString>>;
28849
- rawFingerprints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
28850
- uploadEncodings: z.ZodOptional<z.ZodArray<z.ZodString>>;
28851
- voiceCodecs: z.ZodOptional<z.ZodArray<z.ZodString>>;
28852
- build: z.ZodOptional<z.ZodString>;
28853
- boot: z.ZodOptional<z.ZodObject<{
28854
- ready: z.ZodBoolean;
28855
- startedAt: z.ZodNumber;
28856
- steps: z.ZodArray<z.ZodObject<{
28857
- key: z.ZodString;
28858
- label: z.ZodString;
28995
+ }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
28996
+ kind: "heartbeat";
28997
+ rev: number;
28998
+ } | {
28999
+ ready: boolean;
29000
+ startedAt: number;
29001
+ steps: {
29002
+ key: string;
29003
+ label: string;
29004
+ state: "done" | "failed" | "pending" | "running";
29005
+ ms?: number | undefined;
29006
+ }[];
29007
+ kind: "boot";
29008
+ } | {
29009
+ kind: "hello";
29010
+ workspaceId: string;
29011
+ routes?: string[] | undefined;
29012
+ shapes?: Record<string, string> | undefined;
29013
+ rawRoutes?: string[] | undefined;
29014
+ rawFingerprints?: Record<string, string> | undefined;
29015
+ uploadEncodings?: string[] | undefined;
29016
+ voiceCodecs?: string[] | undefined;
29017
+ build?: string | undefined;
29018
+ boot?: {
29019
+ ready: boolean;
29020
+ startedAt: number;
29021
+ steps: {
29022
+ key: string;
29023
+ label: string;
29024
+ state: "done" | "failed" | "pending" | "running";
29025
+ ms?: number | undefined;
29026
+ }[];
29027
+ } | undefined;
29028
+ projectDir?: string | undefined;
29029
+ surface?: "folder" | "sandbox" | undefined;
29030
+ } | {
29031
+ kind: "reposChanged";
29032
+ repos: string[];
29033
+ } | {
29034
+ kind: "workspaceChanged";
29035
+ paths: string[];
29036
+ } | {
29037
+ kind: "derivedChanged";
29038
+ paths: string[];
29039
+ } | {
29040
+ kind: "refsChanged";
29041
+ repos: string[];
29042
+ } | {
29043
+ kind: "runtimeChanged";
29044
+ domains: string[];
29045
+ } | {
29046
+ kind: "presence";
29047
+ users: {
29048
+ clientId: string;
29049
+ email: string;
29050
+ name?: string | undefined;
29051
+ picture?: string | undefined;
29052
+ role: "collaborator" | "guest" | "maintainer" | "owner" | "viewer" | "writer";
29053
+ idle: boolean;
29054
+ away?: boolean | undefined;
29055
+ view?: string | undefined;
29056
+ sessionId?: string | undefined;
29057
+ path?: string | undefined;
29058
+ }[];
29059
+ } | {
29060
+ kind: "agents";
29061
+ agents: {
29062
+ id: string;
29063
+ sessionId?: string | undefined;
29064
+ title?: string | undefined;
29065
+ titleAction?: string | undefined;
29066
+ status: "awaiting" | "conflict" | "dismissing" | "error" | "idle" | "interrupted" | "landed" | "landing" | "ready" | "resuming" | "running" | "stopped" | "stopping";
29067
+ failure?: string | undefined;
29068
+ failureCode?: string | undefined;
29069
+ failureOwn?: boolean | undefined;
29070
+ limitResetsAt?: number | undefined;
29071
+ limitHeld?: boolean | undefined;
29072
+ limitScheduled?: boolean | undefined;
29073
+ limitMoving?: string | undefined;
29074
+ limitNextAt?: number | undefined;
29075
+ next?: {
29076
+ kind: "rerun";
29077
+ at: number;
29078
+ onto?: string | undefined;
29079
+ } | {
29080
+ kind: "room";
29081
+ } | {
29082
+ kind: "send";
29083
+ at: number;
29084
+ count: number;
29085
+ } | {
29086
+ kind: "land";
29087
+ after: string;
29088
+ count: number;
29089
+ } | undefined;
29090
+ provider: string;
29091
+ harness: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor";
29092
+ runner?: string | undefined;
29093
+ startIn?: string | undefined;
29094
+ actsAs?: string | undefined;
29095
+ lastActsAs?: string | undefined;
29096
+ model?: string | undefined;
29097
+ effort?: string | undefined;
29098
+ thinking?: boolean | undefined;
29099
+ fast?: boolean | undefined;
29100
+ account?: string | undefined;
29101
+ branch?: string | undefined;
29102
+ autoLand?: boolean | undefined;
29103
+ limitPolicy?: "move" | "resend" | "wait" | undefined;
29104
+ outagePolicy?: "retry" | "wait" | undefined;
29105
+ stopPolicy?: "retry" | "wait" | undefined;
29106
+ memoryPolicy?: "resend" | "wait" | undefined;
29107
+ landRequested?: {
29108
+ email: string;
29109
+ name?: string | undefined;
29110
+ at: number;
29111
+ } | undefined;
29112
+ reactions?: {
29113
+ emoji: string;
29114
+ by: {
29115
+ email: string;
29116
+ name?: string | undefined;
29117
+ at: number;
29118
+ }[];
29119
+ }[] | undefined;
29120
+ origin?: {
29121
+ automationId: string;
29122
+ provider: string;
29123
+ channelId?: string | undefined;
29124
+ threadId?: string | undefined;
29125
+ author?: string | undefined;
29126
+ } | undefined;
29127
+ startedBy?: string | undefined;
29128
+ areas?: string[] | undefined;
29129
+ owner?: {
29130
+ email: string;
29131
+ name?: string | undefined;
29132
+ since: number;
29133
+ } | undefined;
29134
+ forkedFrom?: {
29135
+ conversationId: string;
29136
+ index: number;
29137
+ files: "now" | "then";
29138
+ } | undefined;
29139
+ fresh?: {
29140
+ of: string;
29141
+ kind: "ask" | "review" | "test";
29142
+ at: number;
29143
+ by?: string | undefined;
29144
+ } | undefined;
29145
+ home?: true | undefined;
29146
+ commits?: {
29147
+ land: string;
29148
+ at: number;
29149
+ subject: string;
29150
+ commits: {
29151
+ repo: string;
29152
+ sha: string;
29153
+ }[];
29154
+ }[] | undefined;
29155
+ freshPending?: "asked" | "cleared" | undefined;
29156
+ base?: string | undefined;
29157
+ costUsd?: number | undefined;
29158
+ inputTokens?: number | undefined;
29159
+ outputTokens?: number | undefined;
29160
+ contextTokens?: number | undefined;
29161
+ contextWindow?: number | undefined;
29162
+ promptCache?: {
29163
+ at: number;
29164
+ ttlMs: number;
29165
+ rollsAt?: number | undefined;
29166
+ keepableUntil?: number | undefined;
29167
+ } | undefined;
29168
+ keepWarm?: {
29169
+ since: number;
29170
+ until: number;
29171
+ refreshes: number;
29172
+ readTokens?: number | undefined;
29173
+ ended?: {
29174
+ at: number;
29175
+ reason: "allowance" | "changed" | "cold" | "elapsed" | "failed";
29176
+ detail?: string | undefined;
29177
+ } | undefined;
29178
+ } | undefined;
29179
+ activity?: {
29180
+ tool?: string | undefined;
29181
+ target?: string | undefined;
29182
+ todo?: string | undefined;
29183
+ } | undefined;
29184
+ checklist?: {
29185
+ done: number;
29186
+ total: number;
29187
+ } | undefined;
29188
+ landedMessageDraft?: {
29189
+ startedAt: number;
29190
+ steps: {
29191
+ provider: string;
29192
+ model: string;
29193
+ status: "answered" | "asking" | "refused" | "skipped";
29194
+ at?: number | undefined;
29195
+ ms?: number | undefined;
29196
+ reason?: string | undefined;
29197
+ }[];
29198
+ outcome?: "failed" | "written" | undefined;
29199
+ reason?: string | undefined;
29200
+ finishedAt?: number | undefined;
29201
+ } | undefined;
29202
+ landedMessage?: {
29203
+ subject: string;
29204
+ note?: string | undefined;
29205
+ breaking?: string | undefined;
29206
+ testNote?: string | undefined;
29207
+ allows?: string[] | undefined;
29208
+ } | undefined;
29209
+ startedAt?: number | undefined;
29210
+ run?: string | undefined;
29211
+ queue?: {
29212
+ items: {
29213
+ id: string;
29214
+ text: string;
29215
+ attachments?: string[] | undefined;
29216
+ voice: "agent" | "person" | "sandbox";
29217
+ queuedAt: number;
29218
+ revision: number;
29219
+ until?: number | undefined;
29220
+ after?: string | undefined;
29221
+ reopenOf?: {
29222
+ agent: string;
29223
+ account?: string | undefined;
29224
+ } | undefined;
29225
+ serves?: {
29226
+ agent: string;
29227
+ harness: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor";
29228
+ model?: string | undefined;
29229
+ effort?: string | undefined;
29230
+ account?: string | undefined;
29231
+ } | undefined;
29232
+ continues?: true | undefined;
29233
+ }[];
29234
+ revision: number;
29235
+ paused?: "refused" | "scheduled" | "stopped" | undefined;
29236
+ until?: number | undefined;
29237
+ after?: string | undefined;
29238
+ } | undefined;
29239
+ updatedAt: number;
29240
+ seenAt?: number | undefined;
29241
+ unsentAt?: number | undefined;
29242
+ attention: {
29243
+ plan: boolean;
29244
+ question: boolean;
29245
+ permission: boolean;
29246
+ capability: boolean;
29247
+ credential: boolean;
29248
+ conflict: boolean;
29249
+ need?: boolean | undefined;
29250
+ };
29251
+ permissionAsk?: {
29252
+ requestId: string;
29253
+ ask: string;
29254
+ program?: {
29255
+ text: string;
29256
+ language: "bash" | "javascript";
29257
+ truncated: boolean;
29258
+ spans: {
29259
+ start: number;
29260
+ end: number;
29261
+ }[];
29262
+ } | undefined;
29263
+ } | undefined;
29264
+ landFailure?: {
29265
+ reason: string;
29266
+ code?: string | undefined;
29267
+ at: number;
29268
+ } | undefined;
29269
+ delivery?: {
29270
+ state: "delivered" | "failed" | "partial" | "too-large" | "waiting";
29271
+ at: number;
29272
+ project: string;
29273
+ folder?: string | undefined;
29274
+ applied: number;
29275
+ conflicts: {
29276
+ path: string;
29277
+ reason: "edited" | "link" | "missing-git" | "outside";
29278
+ }[];
29279
+ point?: string | undefined;
29280
+ reason?: string | undefined;
29281
+ } | undefined;
29282
+ conflictCauses?: ("binary" | "diverged" | "workspace")[] | undefined;
29283
+ unfinished?: {
29284
+ at: number;
29285
+ steps?: {
29286
+ open: number;
29287
+ total: number;
29288
+ next?: string | undefined;
29289
+ } | undefined;
29290
+ check?: string | undefined;
29291
+ } | undefined;
29292
+ proof?: {
29293
+ at: number;
29294
+ verification: "failing" | "no-code" | "unproven" | "verified";
29295
+ check?: string | undefined;
29296
+ unviewed?: number | undefined;
29297
+ } | undefined;
29298
+ review?: {
29299
+ at: number;
29300
+ source: "claude" | "codex";
29301
+ findings: number;
29302
+ open: number;
29303
+ } | undefined;
29304
+ reach?: {
29305
+ at: number;
29306
+ live?: {
29307
+ path: string;
29308
+ extension?: string | undefined;
29309
+ }[] | undefined;
29310
+ liveMore?: number | undefined;
29311
+ stranded?: {
29312
+ dir: string;
29313
+ uncommitted: number;
29314
+ unpushed: number;
29315
+ }[] | undefined;
29316
+ strandedMore?: number | undefined;
29317
+ published?: {
29318
+ dir?: string | undefined;
29319
+ remote?: string | undefined;
29320
+ branch?: string | undefined;
29321
+ command: string;
29322
+ }[] | undefined;
29323
+ publishedMore?: number | undefined;
29324
+ } | undefined;
29325
+ turns?: number | undefined;
29326
+ toolUses?: number | undefined;
29327
+ subagents?: {
29328
+ running: number;
29329
+ total: number;
29330
+ } | undefined;
29331
+ diff?: {
29332
+ files: number;
29333
+ insertions: number;
29334
+ deletions: number;
29335
+ } | undefined;
29336
+ modules?: string[] | undefined;
29337
+ landedPresence?: {
29338
+ landed: number;
29339
+ present: number;
29340
+ removedBy?: {
29341
+ kind: "agent";
29342
+ id: string;
29343
+ title?: string | undefined;
29344
+ } | {
29345
+ kind: "person";
29346
+ email?: string | undefined;
29347
+ name?: string | undefined;
29348
+ } | undefined;
29349
+ } | undefined;
29350
+ loop?: {
29351
+ state: "done" | "error" | "exhausted" | "overspent" | "running" | "stalled" | "stopped" | "unpriced";
29352
+ iteration: number;
29353
+ maxIterations: number;
29354
+ goal: string;
29355
+ } | undefined;
29356
+ workflow?: {
29357
+ runId: string;
29358
+ name: string;
29359
+ step: string;
29360
+ index: number;
29361
+ total: number;
29362
+ } | undefined;
29363
+ awaitingWake?: boolean | undefined;
29364
+ watches?: {
29365
+ id: string;
29366
+ note: string;
29367
+ intervalSeconds: number;
29368
+ deadlineAt: number;
29369
+ }[] | undefined;
29370
+ needs?: {
29371
+ id: string;
29372
+ kind: "automation" | "capability" | "environment" | "grant" | "release" | "secret";
29373
+ title: string;
29374
+ status: "cancelled" | "declined" | "met" | "open" | "working";
29375
+ }[] | undefined;
29376
+ jobs?: {
29377
+ id: string;
29378
+ label: string;
29379
+ session: string;
29380
+ startedAt: number;
29381
+ endedAt?: number | undefined;
29382
+ exitCode?: number | undefined;
29383
+ watch?: string | undefined;
29384
+ handed?: boolean | undefined;
29385
+ ports?: number[] | undefined;
29386
+ stoppedBy?: "agent" | "person" | "turn" | undefined;
29387
+ inputWait?: {
29388
+ since: number;
29389
+ program: string;
29390
+ } | undefined;
29391
+ }[] | undefined;
29392
+ archivedAt?: number | undefined;
29393
+ }[];
29394
+ rev: number;
29395
+ } | {
29396
+ kind: "agentsChanged";
29397
+ agents: {
29398
+ id: string;
29399
+ sessionId?: string | undefined;
29400
+ title?: string | undefined;
29401
+ titleAction?: string | undefined;
29402
+ status: "awaiting" | "conflict" | "dismissing" | "error" | "idle" | "interrupted" | "landed" | "landing" | "ready" | "resuming" | "running" | "stopped" | "stopping";
29403
+ failure?: string | undefined;
29404
+ failureCode?: string | undefined;
29405
+ failureOwn?: boolean | undefined;
29406
+ limitResetsAt?: number | undefined;
29407
+ limitHeld?: boolean | undefined;
29408
+ limitScheduled?: boolean | undefined;
29409
+ limitMoving?: string | undefined;
29410
+ limitNextAt?: number | undefined;
29411
+ next?: {
29412
+ kind: "rerun";
29413
+ at: number;
29414
+ onto?: string | undefined;
29415
+ } | {
29416
+ kind: "room";
29417
+ } | {
29418
+ kind: "send";
29419
+ at: number;
29420
+ count: number;
29421
+ } | {
29422
+ kind: "land";
29423
+ after: string;
29424
+ count: number;
29425
+ } | undefined;
29426
+ provider: string;
29427
+ harness: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor";
29428
+ runner?: string | undefined;
29429
+ startIn?: string | undefined;
29430
+ actsAs?: string | undefined;
29431
+ lastActsAs?: string | undefined;
29432
+ model?: string | undefined;
29433
+ effort?: string | undefined;
29434
+ thinking?: boolean | undefined;
29435
+ fast?: boolean | undefined;
29436
+ account?: string | undefined;
29437
+ branch?: string | undefined;
29438
+ autoLand?: boolean | undefined;
29439
+ limitPolicy?: "move" | "resend" | "wait" | undefined;
29440
+ outagePolicy?: "retry" | "wait" | undefined;
29441
+ stopPolicy?: "retry" | "wait" | undefined;
29442
+ memoryPolicy?: "resend" | "wait" | undefined;
29443
+ landRequested?: {
29444
+ email: string;
29445
+ name?: string | undefined;
29446
+ at: number;
29447
+ } | undefined;
29448
+ reactions?: {
29449
+ emoji: string;
29450
+ by: {
29451
+ email: string;
29452
+ name?: string | undefined;
29453
+ at: number;
29454
+ }[];
29455
+ }[] | undefined;
29456
+ origin?: {
29457
+ automationId: string;
29458
+ provider: string;
29459
+ channelId?: string | undefined;
29460
+ threadId?: string | undefined;
29461
+ author?: string | undefined;
29462
+ } | undefined;
29463
+ startedBy?: string | undefined;
29464
+ areas?: string[] | undefined;
29465
+ owner?: {
29466
+ email: string;
29467
+ name?: string | undefined;
29468
+ since: number;
29469
+ } | undefined;
29470
+ forkedFrom?: {
29471
+ conversationId: string;
29472
+ index: number;
29473
+ files: "now" | "then";
29474
+ } | undefined;
29475
+ fresh?: {
29476
+ of: string;
29477
+ kind: "ask" | "review" | "test";
29478
+ at: number;
29479
+ by?: string | undefined;
29480
+ } | undefined;
29481
+ home?: true | undefined;
29482
+ commits?: {
29483
+ land: string;
29484
+ at: number;
29485
+ subject: string;
29486
+ commits: {
29487
+ repo: string;
29488
+ sha: string;
29489
+ }[];
29490
+ }[] | undefined;
29491
+ freshPending?: "asked" | "cleared" | undefined;
29492
+ base?: string | undefined;
29493
+ costUsd?: number | undefined;
29494
+ inputTokens?: number | undefined;
29495
+ outputTokens?: number | undefined;
29496
+ contextTokens?: number | undefined;
29497
+ contextWindow?: number | undefined;
29498
+ promptCache?: {
29499
+ at: number;
29500
+ ttlMs: number;
29501
+ rollsAt?: number | undefined;
29502
+ keepableUntil?: number | undefined;
29503
+ } | undefined;
29504
+ keepWarm?: {
29505
+ since: number;
29506
+ until: number;
29507
+ refreshes: number;
29508
+ readTokens?: number | undefined;
29509
+ ended?: {
29510
+ at: number;
29511
+ reason: "allowance" | "changed" | "cold" | "elapsed" | "failed";
29512
+ detail?: string | undefined;
29513
+ } | undefined;
29514
+ } | undefined;
29515
+ activity?: {
29516
+ tool?: string | undefined;
29517
+ target?: string | undefined;
29518
+ todo?: string | undefined;
29519
+ } | undefined;
29520
+ checklist?: {
29521
+ done: number;
29522
+ total: number;
29523
+ } | undefined;
29524
+ landedMessageDraft?: {
29525
+ startedAt: number;
29526
+ steps: {
29527
+ provider: string;
29528
+ model: string;
29529
+ status: "answered" | "asking" | "refused" | "skipped";
29530
+ at?: number | undefined;
29531
+ ms?: number | undefined;
29532
+ reason?: string | undefined;
29533
+ }[];
29534
+ outcome?: "failed" | "written" | undefined;
29535
+ reason?: string | undefined;
29536
+ finishedAt?: number | undefined;
29537
+ } | undefined;
29538
+ landedMessage?: {
29539
+ subject: string;
29540
+ note?: string | undefined;
29541
+ breaking?: string | undefined;
29542
+ testNote?: string | undefined;
29543
+ allows?: string[] | undefined;
29544
+ } | undefined;
29545
+ startedAt?: number | undefined;
29546
+ run?: string | undefined;
29547
+ queue?: {
29548
+ items: {
29549
+ id: string;
29550
+ text: string;
29551
+ attachments?: string[] | undefined;
29552
+ voice: "agent" | "person" | "sandbox";
29553
+ queuedAt: number;
29554
+ revision: number;
29555
+ until?: number | undefined;
29556
+ after?: string | undefined;
29557
+ reopenOf?: {
29558
+ agent: string;
29559
+ account?: string | undefined;
29560
+ } | undefined;
29561
+ serves?: {
29562
+ agent: string;
29563
+ harness: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor";
29564
+ model?: string | undefined;
29565
+ effort?: string | undefined;
29566
+ account?: string | undefined;
29567
+ } | undefined;
29568
+ continues?: true | undefined;
29569
+ }[];
29570
+ revision: number;
29571
+ paused?: "refused" | "scheduled" | "stopped" | undefined;
29572
+ until?: number | undefined;
29573
+ after?: string | undefined;
29574
+ } | undefined;
29575
+ updatedAt: number;
29576
+ seenAt?: number | undefined;
29577
+ unsentAt?: number | undefined;
29578
+ attention: {
29579
+ plan: boolean;
29580
+ question: boolean;
29581
+ permission: boolean;
29582
+ capability: boolean;
29583
+ credential: boolean;
29584
+ conflict: boolean;
29585
+ need?: boolean | undefined;
29586
+ };
29587
+ permissionAsk?: {
29588
+ requestId: string;
29589
+ ask: string;
29590
+ program?: {
29591
+ text: string;
29592
+ language: "bash" | "javascript";
29593
+ truncated: boolean;
29594
+ spans: {
29595
+ start: number;
29596
+ end: number;
29597
+ }[];
29598
+ } | undefined;
29599
+ } | undefined;
29600
+ landFailure?: {
29601
+ reason: string;
29602
+ code?: string | undefined;
29603
+ at: number;
29604
+ } | undefined;
29605
+ delivery?: {
29606
+ state: "delivered" | "failed" | "partial" | "too-large" | "waiting";
29607
+ at: number;
29608
+ project: string;
29609
+ folder?: string | undefined;
29610
+ applied: number;
29611
+ conflicts: {
29612
+ path: string;
29613
+ reason: "edited" | "link" | "missing-git" | "outside";
29614
+ }[];
29615
+ point?: string | undefined;
29616
+ reason?: string | undefined;
29617
+ } | undefined;
29618
+ conflictCauses?: ("binary" | "diverged" | "workspace")[] | undefined;
29619
+ unfinished?: {
29620
+ at: number;
29621
+ steps?: {
29622
+ open: number;
29623
+ total: number;
29624
+ next?: string | undefined;
29625
+ } | undefined;
29626
+ check?: string | undefined;
29627
+ } | undefined;
29628
+ proof?: {
29629
+ at: number;
29630
+ verification: "failing" | "no-code" | "unproven" | "verified";
29631
+ check?: string | undefined;
29632
+ unviewed?: number | undefined;
29633
+ } | undefined;
29634
+ review?: {
29635
+ at: number;
29636
+ source: "claude" | "codex";
29637
+ findings: number;
29638
+ open: number;
29639
+ } | undefined;
29640
+ reach?: {
29641
+ at: number;
29642
+ live?: {
29643
+ path: string;
29644
+ extension?: string | undefined;
29645
+ }[] | undefined;
29646
+ liveMore?: number | undefined;
29647
+ stranded?: {
29648
+ dir: string;
29649
+ uncommitted: number;
29650
+ unpushed: number;
29651
+ }[] | undefined;
29652
+ strandedMore?: number | undefined;
29653
+ published?: {
29654
+ dir?: string | undefined;
29655
+ remote?: string | undefined;
29656
+ branch?: string | undefined;
29657
+ command: string;
29658
+ }[] | undefined;
29659
+ publishedMore?: number | undefined;
29660
+ } | undefined;
29661
+ turns?: number | undefined;
29662
+ toolUses?: number | undefined;
29663
+ subagents?: {
29664
+ running: number;
29665
+ total: number;
29666
+ } | undefined;
29667
+ diff?: {
29668
+ files: number;
29669
+ insertions: number;
29670
+ deletions: number;
29671
+ } | undefined;
29672
+ modules?: string[] | undefined;
29673
+ landedPresence?: {
29674
+ landed: number;
29675
+ present: number;
29676
+ removedBy?: {
29677
+ kind: "agent";
29678
+ id: string;
29679
+ title?: string | undefined;
29680
+ } | {
29681
+ kind: "person";
29682
+ email?: string | undefined;
29683
+ name?: string | undefined;
29684
+ } | undefined;
29685
+ } | undefined;
29686
+ loop?: {
29687
+ state: "done" | "error" | "exhausted" | "overspent" | "running" | "stalled" | "stopped" | "unpriced";
29688
+ iteration: number;
29689
+ maxIterations: number;
29690
+ goal: string;
29691
+ } | undefined;
29692
+ workflow?: {
29693
+ runId: string;
29694
+ name: string;
29695
+ step: string;
29696
+ index: number;
29697
+ total: number;
29698
+ } | undefined;
29699
+ awaitingWake?: boolean | undefined;
29700
+ watches?: {
29701
+ id: string;
29702
+ note: string;
29703
+ intervalSeconds: number;
29704
+ deadlineAt: number;
29705
+ }[] | undefined;
29706
+ needs?: {
29707
+ id: string;
29708
+ kind: "automation" | "capability" | "environment" | "grant" | "release" | "secret";
29709
+ title: string;
29710
+ status: "cancelled" | "declined" | "met" | "open" | "working";
29711
+ }[] | undefined;
29712
+ jobs?: {
29713
+ id: string;
29714
+ label: string;
29715
+ session: string;
29716
+ startedAt: number;
29717
+ endedAt?: number | undefined;
29718
+ exitCode?: number | undefined;
29719
+ watch?: string | undefined;
29720
+ handed?: boolean | undefined;
29721
+ ports?: number[] | undefined;
29722
+ stoppedBy?: "agent" | "person" | "turn" | undefined;
29723
+ inputWait?: {
29724
+ since: number;
29725
+ program: string;
29726
+ } | undefined;
29727
+ }[] | undefined;
29728
+ archivedAt?: number | undefined;
29729
+ }[];
29730
+ rev: number;
29731
+ since: number;
29732
+ } | {
29733
+ kind: "accountUsage";
29734
+ provider: string;
29735
+ account: string;
29736
+ usage?: {
29737
+ windows: {
29738
+ kind: string;
29739
+ label?: string | undefined;
29740
+ utilization: number;
29741
+ resetsAt?: number | undefined;
29742
+ gates: "all" | "none" | {
29743
+ models: string[];
29744
+ };
29745
+ rounded?: boolean | undefined;
29746
+ lapsedAt?: number | undefined;
29747
+ missingSince?: number | undefined;
29748
+ }[];
29749
+ measuredAt: number;
29750
+ unread?: {
29751
+ since: number;
29752
+ reason: string;
29753
+ } | undefined;
29754
+ uncovered?: string[] | undefined;
29755
+ contradicted?: {
29756
+ at: number;
29757
+ model: string;
29758
+ } | undefined;
29759
+ } | undefined;
29760
+ } | {
29761
+ kind: "providerRefusal";
29762
+ provider: string;
29763
+ refusals?: {
29764
+ at: number;
29765
+ kind: "auth" | "entitlement" | "limit";
29766
+ message: string;
29767
+ account?: string | undefined;
29768
+ model?: string | undefined;
29769
+ resetsAt?: number | undefined;
29770
+ poolResetsAt?: number | undefined;
29771
+ unmetered?: true | undefined;
29772
+ byHand?: true | undefined;
29773
+ }[] | undefined;
29774
+ refusal?: {
29775
+ at: number;
29776
+ kind: "auth" | "entitlement" | "limit";
29777
+ message: string;
29778
+ account?: string | undefined;
29779
+ model?: string | undefined;
29780
+ resetsAt?: number | undefined;
29781
+ poolResetsAt?: number | undefined;
29782
+ unmetered?: true | undefined;
29783
+ byHand?: true | undefined;
29784
+ } | undefined;
29785
+ } | {
29786
+ from: number;
29787
+ generation: number;
29788
+ dirs: {
29789
+ path: string;
29790
+ entries: import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry[];
29791
+ }[];
29792
+ barren?: string[] | undefined;
29793
+ kind: "treeChanged";
29794
+ }, unknown, void>> & {
29795
+ [x: symbol]: z.ZodDiscriminatedUnion<[z.ZodObject<{
29796
+ kind: z.ZodLiteral<"hello">;
29797
+ workspaceId: z.ZodString;
29798
+ routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
29799
+ shapes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
29800
+ rawRoutes: z.ZodOptional<z.ZodArray<z.ZodString>>;
29801
+ rawFingerprints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
29802
+ uploadEncodings: z.ZodOptional<z.ZodArray<z.ZodString>>;
29803
+ voiceCodecs: z.ZodOptional<z.ZodArray<z.ZodString>>;
29804
+ build: z.ZodOptional<z.ZodString>;
29805
+ boot: z.ZodOptional<z.ZodObject<{
29806
+ ready: z.ZodBoolean;
29807
+ startedAt: z.ZodNumber;
29808
+ steps: z.ZodArray<z.ZodObject<{
29809
+ key: z.ZodString;
29810
+ label: z.ZodString;
29811
+ state: z.ZodEnum<{
29812
+ done: "done";
29813
+ failed: "failed";
29814
+ pending: "pending";
29815
+ running: "running";
29816
+ }>;
29817
+ ms: z.ZodOptional<z.ZodNumber>;
29818
+ }, z.core.$strip>>;
29819
+ }, z.core.$strip>>;
29820
+ projectDir: z.ZodOptional<z.ZodString>;
29821
+ surface: z.ZodOptional<z.ZodEnum<{
29822
+ folder: "folder";
29823
+ sandbox: "sandbox";
29824
+ }>>;
29825
+ }, z.core.$strip>, z.ZodObject<{
29826
+ kind: z.ZodLiteral<"heartbeat">;
29827
+ rev: z.ZodNumber;
29828
+ }, z.core.$strip>, z.ZodObject<{
29829
+ ready: z.ZodBoolean;
29830
+ startedAt: z.ZodNumber;
29831
+ steps: z.ZodArray<z.ZodObject<{
29832
+ key: z.ZodString;
29833
+ label: z.ZodString;
29834
+ state: z.ZodEnum<{
29835
+ done: "done";
29836
+ failed: "failed";
29837
+ pending: "pending";
29838
+ running: "running";
29839
+ }>;
29840
+ ms: z.ZodOptional<z.ZodNumber>;
29841
+ }, z.core.$strip>>;
29842
+ kind: z.ZodLiteral<"boot">;
29843
+ }, z.core.$strip>, z.ZodObject<{
29844
+ kind: z.ZodLiteral<"workspaceChanged">;
29845
+ paths: z.ZodArray<z.ZodString>;
29846
+ }, z.core.$strip>, z.ZodObject<{
29847
+ from: z.ZodNumber;
29848
+ generation: z.ZodNumber;
29849
+ dirs: z.ZodArray<z.ZodObject<{
29850
+ path: z.ZodString;
29851
+ entries: z.ZodArray<z.ZodType<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown, z.core.$ZodTypeInternals<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown>>>;
29852
+ }, z.core.$strip>>;
29853
+ barren: z.ZodOptional<z.ZodArray<z.ZodString>>;
29854
+ kind: z.ZodLiteral<"treeChanged">;
29855
+ }, z.core.$strip>, z.ZodObject<{
29856
+ kind: z.ZodLiteral<"derivedChanged">;
29857
+ paths: z.ZodArray<z.ZodString>;
29858
+ }, z.core.$strip>, z.ZodObject<{
29859
+ kind: z.ZodLiteral<"reposChanged">;
29860
+ repos: z.ZodArray<z.ZodString>;
29861
+ }, z.core.$strip>, z.ZodObject<{
29862
+ kind: z.ZodLiteral<"refsChanged">;
29863
+ repos: z.ZodArray<z.ZodString>;
29864
+ }, z.core.$strip>, z.ZodObject<{
29865
+ kind: z.ZodLiteral<"runtimeChanged">;
29866
+ domains: z.ZodArray<z.ZodString>;
29867
+ }, z.core.$strip>, z.ZodObject<{
29868
+ kind: z.ZodLiteral<"presence">;
29869
+ users: z.ZodArray<z.ZodObject<{
29870
+ clientId: z.ZodString;
29871
+ email: z.ZodString;
29872
+ name: z.ZodOptional<z.ZodString>;
29873
+ picture: z.ZodOptional<z.ZodString>;
29874
+ role: z.ZodEnum<{
29875
+ collaborator: "collaborator";
29876
+ guest: "guest";
29877
+ maintainer: "maintainer";
29878
+ owner: "owner";
29879
+ viewer: "viewer";
29880
+ writer: "writer";
29881
+ }>;
29882
+ idle: z.ZodBoolean;
29883
+ away: z.ZodOptional<z.ZodBoolean>;
29884
+ view: z.ZodOptional<z.ZodString>;
29885
+ sessionId: z.ZodOptional<z.ZodString>;
29886
+ path: z.ZodOptional<z.ZodString>;
29887
+ }, z.core.$strip>>;
29888
+ }, z.core.$strip>, z.ZodObject<{
29889
+ kind: z.ZodLiteral<"agents">;
29890
+ agents: z.ZodArray<z.ZodObject<{
29891
+ id: z.ZodString;
29892
+ sessionId: z.ZodOptional<z.ZodString>;
29893
+ title: z.ZodOptional<z.ZodString>;
29894
+ titleAction: z.ZodOptional<z.ZodString>;
29895
+ status: z.ZodEnum<{
29896
+ awaiting: "awaiting";
29897
+ conflict: "conflict";
29898
+ dismissing: "dismissing";
29899
+ error: "error";
29900
+ idle: "idle";
29901
+ interrupted: "interrupted";
29902
+ landed: "landed";
29903
+ landing: "landing";
29904
+ ready: "ready";
29905
+ resuming: "resuming";
29906
+ running: "running";
29907
+ stopped: "stopped";
29908
+ stopping: "stopping";
29909
+ }>;
29910
+ failure: z.ZodOptional<z.ZodString>;
29911
+ failureCode: z.ZodOptional<z.ZodString>;
29912
+ failureOwn: z.ZodOptional<z.ZodBoolean>;
29913
+ limitResetsAt: z.ZodOptional<z.ZodNumber>;
29914
+ limitHeld: z.ZodOptional<z.ZodBoolean>;
29915
+ limitScheduled: z.ZodOptional<z.ZodBoolean>;
29916
+ limitMoving: z.ZodOptional<z.ZodString>;
29917
+ limitNextAt: z.ZodOptional<z.ZodNumber>;
29918
+ next: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
29919
+ kind: z.ZodLiteral<"rerun">;
29920
+ at: z.ZodNumber;
29921
+ onto: z.ZodOptional<z.ZodString>;
29922
+ }, z.core.$strip>, z.ZodObject<{
29923
+ kind: z.ZodLiteral<"room">;
29924
+ }, z.core.$strip>, z.ZodObject<{
29925
+ kind: z.ZodLiteral<"send">;
29926
+ at: z.ZodNumber;
29927
+ count: z.ZodNumber;
29928
+ }, z.core.$strip>, z.ZodObject<{
29929
+ kind: z.ZodLiteral<"land">;
29930
+ after: z.ZodString;
29931
+ count: z.ZodNumber;
29932
+ }, z.core.$strip>], "kind">>;
29933
+ provider: z.ZodString;
29934
+ harness: z.ZodEnum<{
29935
+ "claude-code": "claude-code";
29936
+ codex: "codex";
29937
+ muse: "muse";
29938
+ native: "native";
29939
+ opencode: "opencode";
29940
+ pi: "pi";
29941
+ vendor: "vendor";
29942
+ }>;
29943
+ runner: z.ZodOptional<z.ZodString>;
29944
+ startIn: z.ZodOptional<z.ZodString>;
29945
+ actsAs: z.ZodOptional<z.ZodString>;
29946
+ lastActsAs: z.ZodOptional<z.ZodString>;
29947
+ model: z.ZodOptional<z.ZodString>;
29948
+ effort: z.ZodOptional<z.ZodString>;
29949
+ thinking: z.ZodOptional<z.ZodBoolean>;
29950
+ fast: z.ZodOptional<z.ZodBoolean>;
29951
+ account: z.ZodOptional<z.ZodString>;
29952
+ branch: z.ZodOptional<z.ZodString>;
29953
+ autoLand: z.ZodOptional<z.ZodBoolean>;
29954
+ limitPolicy: z.ZodOptional<z.ZodEnum<{
29955
+ move: "move";
29956
+ resend: "resend";
29957
+ wait: "wait";
29958
+ }>>;
29959
+ outagePolicy: z.ZodOptional<z.ZodEnum<{
29960
+ retry: "retry";
29961
+ wait: "wait";
29962
+ }>>;
29963
+ stopPolicy: z.ZodOptional<z.ZodEnum<{
29964
+ retry: "retry";
29965
+ wait: "wait";
29966
+ }>>;
29967
+ memoryPolicy: z.ZodOptional<z.ZodEnum<{
29968
+ resend: "resend";
29969
+ wait: "wait";
29970
+ }>>;
29971
+ landRequested: z.ZodOptional<z.ZodObject<{
29972
+ email: z.ZodString;
29973
+ name: z.ZodOptional<z.ZodString>;
29974
+ at: z.ZodNumber;
29975
+ }, z.core.$strip>>;
29976
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
29977
+ emoji: z.ZodString;
29978
+ by: z.ZodArray<z.ZodObject<{
29979
+ email: z.ZodString;
29980
+ name: z.ZodOptional<z.ZodString>;
29981
+ at: z.ZodNumber;
29982
+ }, z.core.$strip>>;
29983
+ }, z.core.$strip>>>;
29984
+ origin: z.ZodOptional<z.ZodObject<{
29985
+ automationId: z.ZodString;
29986
+ provider: z.ZodString;
29987
+ channelId: z.ZodOptional<z.ZodString>;
29988
+ threadId: z.ZodOptional<z.ZodString>;
29989
+ author: z.ZodOptional<z.ZodString>;
29990
+ }, z.core.$strip>>;
29991
+ startedBy: z.ZodOptional<z.ZodString>;
29992
+ areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
29993
+ owner: z.ZodOptional<z.ZodObject<{
29994
+ email: z.ZodString;
29995
+ name: z.ZodOptional<z.ZodString>;
29996
+ since: z.ZodNumber;
29997
+ }, z.core.$strip>>;
29998
+ forkedFrom: z.ZodOptional<z.ZodObject<{
29999
+ conversationId: z.ZodString;
30000
+ index: z.ZodNumber;
30001
+ files: z.ZodEnum<{
30002
+ now: "now";
30003
+ then: "then";
30004
+ }>;
30005
+ }, z.core.$strip>>;
30006
+ fresh: z.ZodOptional<z.ZodObject<{
30007
+ of: z.ZodString;
30008
+ kind: z.ZodEnum<{
30009
+ ask: "ask";
30010
+ review: "review";
30011
+ test: "test";
30012
+ }>;
30013
+ at: z.ZodNumber;
30014
+ by: z.ZodOptional<z.ZodString>;
30015
+ }, z.core.$strip>>;
30016
+ home: z.ZodOptional<z.ZodLiteral<true>>;
30017
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
30018
+ land: z.ZodString;
30019
+ at: z.ZodNumber;
30020
+ subject: z.ZodString;
30021
+ commits: z.ZodArray<z.ZodObject<{
30022
+ repo: z.ZodString;
30023
+ sha: z.ZodString;
30024
+ }, z.core.$strip>>;
30025
+ }, z.core.$strip>>>;
30026
+ freshPending: z.ZodOptional<z.ZodEnum<{
30027
+ asked: "asked";
30028
+ cleared: "cleared";
30029
+ }>>;
30030
+ base: z.ZodOptional<z.ZodString>;
30031
+ costUsd: z.ZodOptional<z.ZodNumber>;
30032
+ inputTokens: z.ZodOptional<z.ZodNumber>;
30033
+ outputTokens: z.ZodOptional<z.ZodNumber>;
30034
+ contextTokens: z.ZodOptional<z.ZodNumber>;
30035
+ contextWindow: z.ZodOptional<z.ZodNumber>;
30036
+ promptCache: z.ZodOptional<z.ZodObject<{
30037
+ at: z.ZodNumber;
30038
+ ttlMs: z.ZodNumber;
30039
+ rollsAt: z.ZodOptional<z.ZodNumber>;
30040
+ keepableUntil: z.ZodOptional<z.ZodNumber>;
30041
+ }, z.core.$strip>>;
30042
+ keepWarm: z.ZodOptional<z.ZodObject<{
30043
+ since: z.ZodNumber;
30044
+ until: z.ZodNumber;
30045
+ refreshes: z.ZodNumber;
30046
+ readTokens: z.ZodOptional<z.ZodNumber>;
30047
+ ended: z.ZodOptional<z.ZodObject<{
30048
+ at: z.ZodNumber;
30049
+ reason: z.ZodEnum<{
30050
+ allowance: "allowance";
30051
+ changed: "changed";
30052
+ cold: "cold";
30053
+ elapsed: "elapsed";
30054
+ failed: "failed";
30055
+ }>;
30056
+ detail: z.ZodOptional<z.ZodString>;
30057
+ }, z.core.$strip>>;
30058
+ }, z.core.$strip>>;
30059
+ activity: z.ZodOptional<z.ZodObject<{
30060
+ tool: z.ZodOptional<z.ZodString>;
30061
+ target: z.ZodOptional<z.ZodString>;
30062
+ todo: z.ZodOptional<z.ZodString>;
30063
+ }, z.core.$strip>>;
30064
+ checklist: z.ZodOptional<z.ZodObject<{
30065
+ done: z.ZodNumber;
30066
+ total: z.ZodNumber;
30067
+ }, z.core.$strip>>;
30068
+ landedMessageDraft: z.ZodOptional<z.ZodObject<{
30069
+ startedAt: z.ZodNumber;
30070
+ steps: z.ZodArray<z.ZodObject<{
30071
+ provider: z.ZodString;
30072
+ model: z.ZodString;
30073
+ status: z.ZodEnum<{
30074
+ answered: "answered";
30075
+ asking: "asking";
30076
+ refused: "refused";
30077
+ skipped: "skipped";
30078
+ }>;
30079
+ at: z.ZodOptional<z.ZodNumber>;
30080
+ ms: z.ZodOptional<z.ZodNumber>;
30081
+ reason: z.ZodOptional<z.ZodString>;
30082
+ }, z.core.$strip>>;
30083
+ outcome: z.ZodOptional<z.ZodEnum<{
30084
+ failed: "failed";
30085
+ written: "written";
30086
+ }>>;
30087
+ reason: z.ZodOptional<z.ZodString>;
30088
+ finishedAt: z.ZodOptional<z.ZodNumber>;
30089
+ }, z.core.$strip>>;
30090
+ landedMessage: z.ZodOptional<z.ZodObject<{
30091
+ subject: z.ZodString;
30092
+ note: z.ZodOptional<z.ZodString>;
30093
+ breaking: z.ZodOptional<z.ZodString>;
30094
+ testNote: z.ZodOptional<z.ZodString>;
30095
+ allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
30096
+ }, z.core.$strip>>;
30097
+ startedAt: z.ZodOptional<z.ZodNumber>;
30098
+ run: z.ZodOptional<z.ZodString>;
30099
+ queue: z.ZodOptional<z.ZodObject<{
30100
+ items: z.ZodArray<z.ZodObject<{
30101
+ id: z.ZodString;
30102
+ text: z.ZodString;
30103
+ attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
30104
+ voice: z.ZodEnum<{
30105
+ agent: "agent";
30106
+ person: "person";
30107
+ sandbox: "sandbox";
30108
+ }>;
30109
+ queuedAt: z.ZodNumber;
30110
+ revision: z.ZodNumber;
30111
+ until: z.ZodOptional<z.ZodNumber>;
30112
+ after: z.ZodOptional<z.ZodString>;
30113
+ reopenOf: z.ZodOptional<z.ZodObject<{
30114
+ agent: z.ZodString;
30115
+ account: z.ZodOptional<z.ZodString>;
30116
+ }, z.core.$strip>>;
30117
+ serves: z.ZodOptional<z.ZodObject<{
30118
+ agent: z.ZodString;
30119
+ harness: z.ZodEnum<{
30120
+ "claude-code": "claude-code";
30121
+ codex: "codex";
30122
+ muse: "muse";
30123
+ native: "native";
30124
+ opencode: "opencode";
30125
+ pi: "pi";
30126
+ vendor: "vendor";
30127
+ }>;
30128
+ model: z.ZodOptional<z.ZodString>;
30129
+ effort: z.ZodOptional<z.ZodString>;
30130
+ account: z.ZodOptional<z.ZodString>;
30131
+ }, z.core.$strip>>;
30132
+ continues: z.ZodOptional<z.ZodLiteral<true>>;
30133
+ }, z.core.$strip>>;
30134
+ revision: z.ZodNumber;
30135
+ paused: z.ZodOptional<z.ZodEnum<{
30136
+ refused: "refused";
30137
+ scheduled: "scheduled";
30138
+ stopped: "stopped";
30139
+ }>>;
30140
+ until: z.ZodOptional<z.ZodNumber>;
30141
+ after: z.ZodOptional<z.ZodString>;
30142
+ }, z.core.$strip>>;
30143
+ updatedAt: z.ZodNumber;
30144
+ seenAt: z.ZodOptional<z.ZodNumber>;
30145
+ unsentAt: z.ZodOptional<z.ZodNumber>;
30146
+ attention: z.ZodObject<{
30147
+ plan: z.ZodBoolean;
30148
+ question: z.ZodBoolean;
30149
+ permission: z.ZodBoolean;
30150
+ capability: z.ZodBoolean;
30151
+ credential: z.ZodBoolean;
30152
+ conflict: z.ZodBoolean;
30153
+ need: z.ZodOptional<z.ZodBoolean>;
30154
+ }, z.core.$strip>;
30155
+ permissionAsk: z.ZodOptional<z.ZodObject<{
30156
+ requestId: z.ZodString;
30157
+ ask: z.ZodString;
30158
+ program: z.ZodOptional<z.ZodObject<{
30159
+ text: z.ZodString;
30160
+ language: z.ZodEnum<{
30161
+ bash: "bash";
30162
+ javascript: "javascript";
30163
+ }>;
30164
+ truncated: z.ZodBoolean;
30165
+ spans: z.ZodArray<z.ZodObject<{
30166
+ start: z.ZodNumber;
30167
+ end: z.ZodNumber;
30168
+ }, z.core.$strip>>;
30169
+ }, z.core.$strip>>;
30170
+ }, z.core.$strip>>;
30171
+ landFailure: z.ZodOptional<z.ZodObject<{
30172
+ reason: z.ZodString;
30173
+ code: z.ZodOptional<z.ZodString>;
30174
+ at: z.ZodNumber;
30175
+ }, z.core.$strip>>;
30176
+ delivery: z.ZodOptional<z.ZodObject<{
30177
+ state: z.ZodEnum<{
30178
+ delivered: "delivered";
30179
+ failed: "failed";
30180
+ partial: "partial";
30181
+ "too-large": "too-large";
30182
+ waiting: "waiting";
30183
+ }>;
30184
+ at: z.ZodNumber;
30185
+ project: z.ZodString;
30186
+ folder: z.ZodOptional<z.ZodString>;
30187
+ applied: z.ZodNumber;
30188
+ conflicts: z.ZodArray<z.ZodObject<{
30189
+ path: z.ZodString;
30190
+ reason: z.ZodEnum<{
30191
+ edited: "edited";
30192
+ link: "link";
30193
+ "missing-git": "missing-git";
30194
+ outside: "outside";
30195
+ }>;
30196
+ }, z.core.$strip>>;
30197
+ point: z.ZodOptional<z.ZodString>;
30198
+ reason: z.ZodOptional<z.ZodString>;
30199
+ }, z.core.$strip>>;
30200
+ conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
30201
+ binary: "binary";
30202
+ diverged: "diverged";
30203
+ workspace: "workspace";
30204
+ }>>>;
30205
+ unfinished: z.ZodOptional<z.ZodObject<{
30206
+ at: z.ZodNumber;
30207
+ steps: z.ZodOptional<z.ZodObject<{
30208
+ open: z.ZodNumber;
30209
+ total: z.ZodNumber;
30210
+ next: z.ZodOptional<z.ZodString>;
30211
+ }, z.core.$strip>>;
30212
+ check: z.ZodOptional<z.ZodString>;
30213
+ }, z.core.$strip>>;
30214
+ proof: z.ZodOptional<z.ZodObject<{
30215
+ at: z.ZodNumber;
30216
+ verification: z.ZodEnum<{
30217
+ failing: "failing";
30218
+ "no-code": "no-code";
30219
+ unproven: "unproven";
30220
+ verified: "verified";
30221
+ }>;
30222
+ check: z.ZodOptional<z.ZodString>;
30223
+ unviewed: z.ZodOptional<z.ZodNumber>;
30224
+ }, z.core.$strip>>;
30225
+ review: z.ZodOptional<z.ZodObject<{
30226
+ at: z.ZodNumber;
30227
+ source: z.ZodEnum<{
30228
+ claude: "claude";
30229
+ codex: "codex";
30230
+ }>;
30231
+ findings: z.ZodNumber;
30232
+ open: z.ZodNumber;
30233
+ }, z.core.$strip>>;
30234
+ reach: z.ZodOptional<z.ZodObject<{
30235
+ at: z.ZodNumber;
30236
+ live: z.ZodOptional<z.ZodArray<z.ZodObject<{
30237
+ path: z.ZodString;
30238
+ extension: z.ZodOptional<z.ZodString>;
30239
+ }, z.core.$strip>>>;
30240
+ liveMore: z.ZodOptional<z.ZodNumber>;
30241
+ stranded: z.ZodOptional<z.ZodArray<z.ZodObject<{
30242
+ dir: z.ZodString;
30243
+ uncommitted: z.ZodNumber;
30244
+ unpushed: z.ZodNumber;
30245
+ }, z.core.$strip>>>;
30246
+ strandedMore: z.ZodOptional<z.ZodNumber>;
30247
+ published: z.ZodOptional<z.ZodArray<z.ZodObject<{
30248
+ dir: z.ZodOptional<z.ZodString>;
30249
+ remote: z.ZodOptional<z.ZodString>;
30250
+ branch: z.ZodOptional<z.ZodString>;
30251
+ command: z.ZodString;
30252
+ }, z.core.$strip>>>;
30253
+ publishedMore: z.ZodOptional<z.ZodNumber>;
30254
+ }, z.core.$strip>>;
30255
+ turns: z.ZodOptional<z.ZodNumber>;
30256
+ toolUses: z.ZodOptional<z.ZodNumber>;
30257
+ subagents: z.ZodOptional<z.ZodObject<{
30258
+ running: z.ZodNumber;
30259
+ total: z.ZodNumber;
30260
+ }, z.core.$strip>>;
30261
+ diff: z.ZodOptional<z.ZodObject<{
30262
+ files: z.ZodNumber;
30263
+ insertions: z.ZodNumber;
30264
+ deletions: z.ZodNumber;
30265
+ }, z.core.$strip>>;
30266
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
30267
+ landedPresence: z.ZodOptional<z.ZodObject<{
30268
+ landed: z.ZodNumber;
30269
+ present: z.ZodNumber;
30270
+ removedBy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
30271
+ kind: z.ZodLiteral<"agent">;
30272
+ id: z.ZodString;
30273
+ title: z.ZodOptional<z.ZodString>;
30274
+ }, z.core.$strip>, z.ZodObject<{
30275
+ kind: z.ZodLiteral<"person">;
30276
+ email: z.ZodOptional<z.ZodString>;
30277
+ name: z.ZodOptional<z.ZodString>;
30278
+ }, z.core.$strip>], "kind">>;
30279
+ }, z.core.$strip>>;
30280
+ loop: z.ZodOptional<z.ZodObject<{
28859
30281
  state: z.ZodEnum<{
28860
30282
  done: "done";
28861
- failed: "failed";
28862
- pending: "pending";
30283
+ error: "error";
30284
+ exhausted: "exhausted";
30285
+ overspent: "overspent";
28863
30286
  running: "running";
30287
+ stalled: "stalled";
30288
+ stopped: "stopped";
30289
+ unpriced: "unpriced";
28864
30290
  }>;
28865
- ms: z.ZodOptional<z.ZodNumber>;
30291
+ iteration: z.ZodNumber;
30292
+ maxIterations: z.ZodNumber;
30293
+ goal: z.ZodString;
28866
30294
  }, z.core.$strip>>;
30295
+ workflow: z.ZodOptional<z.ZodObject<{
30296
+ runId: z.ZodString;
30297
+ name: z.ZodString;
30298
+ step: z.ZodString;
30299
+ index: z.ZodNumber;
30300
+ total: z.ZodNumber;
30301
+ }, z.core.$strip>>;
30302
+ awaitingWake: z.ZodOptional<z.ZodBoolean>;
30303
+ watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
30304
+ id: z.ZodString;
30305
+ note: z.ZodString;
30306
+ intervalSeconds: z.ZodNumber;
30307
+ deadlineAt: z.ZodNumber;
30308
+ }, z.core.$strip>>>;
30309
+ needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
30310
+ id: z.ZodString;
30311
+ kind: z.ZodEnum<{
30312
+ automation: "automation";
30313
+ capability: "capability";
30314
+ environment: "environment";
30315
+ grant: "grant";
30316
+ release: "release";
30317
+ secret: "secret";
30318
+ }>;
30319
+ title: z.ZodString;
30320
+ status: z.ZodEnum<{
30321
+ cancelled: "cancelled";
30322
+ declined: "declined";
30323
+ met: "met";
30324
+ open: "open";
30325
+ working: "working";
30326
+ }>;
30327
+ }, z.core.$strip>>>;
30328
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
30329
+ id: z.ZodString;
30330
+ label: z.ZodString;
30331
+ session: z.ZodString;
30332
+ startedAt: z.ZodNumber;
30333
+ endedAt: z.ZodOptional<z.ZodNumber>;
30334
+ exitCode: z.ZodOptional<z.ZodNumber>;
30335
+ watch: z.ZodOptional<z.ZodString>;
30336
+ handed: z.ZodOptional<z.ZodBoolean>;
30337
+ ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
30338
+ stoppedBy: z.ZodOptional<z.ZodEnum<{
30339
+ agent: "agent";
30340
+ person: "person";
30341
+ turn: "turn";
30342
+ }>>;
30343
+ inputWait: z.ZodOptional<z.ZodObject<{
30344
+ since: z.ZodNumber;
30345
+ program: z.ZodString;
30346
+ }, z.core.$strip>>;
30347
+ }, z.core.$strip>>>;
30348
+ archivedAt: z.ZodOptional<z.ZodNumber>;
28867
30349
  }, z.core.$strip>>;
28868
- projectDir: z.ZodOptional<z.ZodString>;
28869
- surface: z.ZodOptional<z.ZodEnum<{
28870
- folder: "folder";
28871
- sandbox: "sandbox";
28872
- }>>;
28873
- }, z.core.$strip>, z.ZodObject<{
28874
- kind: z.ZodLiteral<"heartbeat">;
28875
30350
  rev: z.ZodNumber;
28876
30351
  }, z.core.$strip>, z.ZodObject<{
28877
- ready: z.ZodBoolean;
28878
- startedAt: z.ZodNumber;
28879
- steps: z.ZodArray<z.ZodObject<{
28880
- key: z.ZodString;
28881
- label: z.ZodString;
28882
- state: z.ZodEnum<{
28883
- done: "done";
28884
- failed: "failed";
28885
- pending: "pending";
28886
- running: "running";
28887
- }>;
28888
- ms: z.ZodOptional<z.ZodNumber>;
28889
- }, z.core.$strip>>;
28890
- kind: z.ZodLiteral<"boot">;
28891
- }, z.core.$strip>, z.ZodObject<{
28892
- kind: z.ZodLiteral<"workspaceChanged">;
28893
- paths: z.ZodArray<z.ZodString>;
28894
- }, z.core.$strip>, z.ZodObject<{
28895
- from: z.ZodNumber;
28896
- generation: z.ZodNumber;
28897
- dirs: z.ZodArray<z.ZodObject<{
28898
- path: z.ZodString;
28899
- entries: z.ZodArray<z.ZodType<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown, z.core.$ZodTypeInternals<import("./schemas/workspace/workspace-tree.js").WorkspaceTreeEntry, unknown>>>;
28900
- }, z.core.$strip>>;
28901
- barren: z.ZodOptional<z.ZodArray<z.ZodString>>;
28902
- kind: z.ZodLiteral<"treeChanged">;
28903
- }, z.core.$strip>, z.ZodObject<{
28904
- kind: z.ZodLiteral<"derivedChanged">;
28905
- paths: z.ZodArray<z.ZodString>;
28906
- }, z.core.$strip>, z.ZodObject<{
28907
- kind: z.ZodLiteral<"reposChanged">;
28908
- repos: z.ZodArray<z.ZodString>;
28909
- }, z.core.$strip>, z.ZodObject<{
28910
- kind: z.ZodLiteral<"refsChanged">;
28911
- repos: z.ZodArray<z.ZodString>;
28912
- }, z.core.$strip>, z.ZodObject<{
28913
- kind: z.ZodLiteral<"runtimeChanged">;
28914
- domains: z.ZodArray<z.ZodString>;
28915
- }, z.core.$strip>, z.ZodObject<{
28916
- kind: z.ZodLiteral<"presence">;
28917
- users: z.ZodArray<z.ZodObject<{
28918
- clientId: z.ZodString;
28919
- email: z.ZodString;
28920
- name: z.ZodOptional<z.ZodString>;
28921
- picture: z.ZodOptional<z.ZodString>;
28922
- role: z.ZodEnum<{
28923
- collaborator: "collaborator";
28924
- guest: "guest";
28925
- maintainer: "maintainer";
28926
- owner: "owner";
28927
- viewer: "viewer";
28928
- writer: "writer";
28929
- }>;
28930
- idle: z.ZodBoolean;
28931
- away: z.ZodOptional<z.ZodBoolean>;
28932
- view: z.ZodOptional<z.ZodString>;
28933
- sessionId: z.ZodOptional<z.ZodString>;
28934
- path: z.ZodOptional<z.ZodString>;
28935
- }, z.core.$strip>>;
28936
- }, z.core.$strip>, z.ZodObject<{
28937
- kind: z.ZodLiteral<"agents">;
30352
+ kind: z.ZodLiteral<"agentsChanged">;
28938
30353
  agents: z.ZodArray<z.ZodObject<{
28939
30354
  id: z.ZodString;
28940
30355
  sessionId: z.ZodOptional<z.ZodString>;
@@ -29396,6 +30811,7 @@ export declare const sandboxContract: {
29396
30811
  archivedAt: z.ZodOptional<z.ZodNumber>;
29397
30812
  }, z.core.$strip>>;
29398
30813
  rev: z.ZodNumber;
30814
+ since: z.ZodNumber;
29399
30815
  }, z.core.$strip>, z.ZodObject<{
29400
30816
  kind: z.ZodLiteral<"accountUsage">;
29401
30817
  provider: z.ZodString;
@@ -30104,6 +31520,60 @@ export declare const sandboxContract: {
30104
31520
  version: z.ZodOptional<z.ZodString>;
30105
31521
  channel: z.ZodOptional<z.ZodString>;
30106
31522
  }, z.core.$strip>>;
31523
+ egress: z.ZodOptional<z.ZodObject<{
31524
+ policy: z.ZodObject<{
31525
+ profile: z.ZodEnum<{
31526
+ "internet-only": "internet-only";
31527
+ open: "open";
31528
+ }>;
31529
+ allow: z.ZodArray<z.ZodObject<{
31530
+ to: z.ZodString;
31531
+ ports: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodInt, z.ZodString]>>>;
31532
+ protocol: z.ZodOptional<z.ZodEnum<{
31533
+ tcp: "tcp";
31534
+ udp: "udp";
31535
+ }>>;
31536
+ note: z.ZodOptional<z.ZodString>;
31537
+ from: z.ZodOptional<z.ZodString>;
31538
+ }, z.core.$strict>>;
31539
+ }, z.core.$strict>;
31540
+ revision: z.ZodString;
31541
+ effectiveProfile: z.ZodEnum<{
31542
+ "internet-only": "internet-only";
31543
+ open: "open";
31544
+ }>;
31545
+ neverAllow: z.ZodArray<z.ZodString>;
31546
+ state: z.ZodEnum<{
31547
+ enforced: "enforced";
31548
+ failed: "failed";
31549
+ off: "off";
31550
+ pending: "pending";
31551
+ unsupported: "unsupported";
31552
+ }>;
31553
+ reason: z.ZodOptional<z.ZodString>;
31554
+ match: z.ZodOptional<z.ZodEnum<{
31555
+ address: "address";
31556
+ network: "network";
31557
+ }>>;
31558
+ advisory: z.ZodOptional<z.ZodBoolean>;
31559
+ hostShell: z.ZodOptional<z.ZodBoolean>;
31560
+ appliedAt: z.ZodOptional<z.ZodNumber>;
31561
+ resolved: z.ZodOptional<z.ZodArray<z.ZodObject<{
31562
+ to: z.ZodString;
31563
+ addresses: z.ZodArray<z.ZodString>;
31564
+ }, z.core.$strip>>>;
31565
+ blocked: z.ZodArray<z.ZodObject<{
31566
+ to: z.ZodString;
31567
+ port: z.ZodOptional<z.ZodNumber>;
31568
+ protocol: z.ZodEnum<{
31569
+ other: "other";
31570
+ tcp: "tcp";
31571
+ udp: "udp";
31572
+ }>;
31573
+ packets: z.ZodNumber;
31574
+ lastSeenAt: z.ZodOptional<z.ZodNumber>;
31575
+ }, z.core.$strip>>;
31576
+ }, z.core.$strip>>;
30107
31577
  version: z.ZodOptional<z.ZodString>;
30108
31578
  parked: z.ZodOptional<z.ZodBoolean>;
30109
31579
  probationUntil: z.ZodOptional<z.ZodNumber>;
@@ -30160,6 +31630,7 @@ export declare const sandboxContract: {
30160
31630
  rollback: "rollback";
30161
31631
  "runner-remove": "runner-remove";
30162
31632
  "runner-up": "runner-up";
31633
+ "set-egress": "set-egress";
30163
31634
  "set-shape": "set-shape";
30164
31635
  sleep: "sleep";
30165
31636
  start: "start";
@@ -30179,6 +31650,48 @@ export declare const sandboxContract: {
30179
31650
  nextRestart: "nextRestart";
30180
31651
  now: "now";
30181
31652
  }>>;
31653
+ egress: z.ZodOptional<z.ZodObject<{
31654
+ profile: z.ZodEnum<{
31655
+ "internet-only": "internet-only";
31656
+ open: "open";
31657
+ }>;
31658
+ allow: z.ZodArray<z.ZodObject<{
31659
+ to: z.ZodString;
31660
+ ports: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodInt, z.ZodString]>>>;
31661
+ protocol: z.ZodOptional<z.ZodEnum<{
31662
+ tcp: "tcp";
31663
+ udp: "udp";
31664
+ }>>;
31665
+ note: z.ZodOptional<z.ZodString>;
31666
+ from: z.ZodOptional<z.ZodString>;
31667
+ }, z.core.$strict>>;
31668
+ }, z.core.$strict>>;
31669
+ egressProof: z.ZodOptional<z.ZodObject<{
31670
+ document: z.ZodString;
31671
+ assertion: z.ZodObject<{
31672
+ id: z.ZodString;
31673
+ rawId: z.ZodString;
31674
+ type: z.ZodLiteral<"public-key">;
31675
+ response: z.ZodObject<{
31676
+ clientDataJSON: z.ZodString;
31677
+ authenticatorData: z.ZodString;
31678
+ signature: z.ZodString;
31679
+ userHandle: z.ZodOptional<z.ZodString>;
31680
+ }, z.core.$strip>;
31681
+ authenticatorAttachment: z.ZodOptional<z.ZodString>;
31682
+ clientExtensionResults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31683
+ }, z.core.$strip>;
31684
+ }, z.core.$strict>>;
31685
+ egressOwnerKeys: z.ZodOptional<z.ZodObject<{
31686
+ rpId: z.ZodString;
31687
+ origins: z.ZodArray<z.ZodString>;
31688
+ keys: z.ZodArray<z.ZodObject<{
31689
+ id: z.ZodString;
31690
+ alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>, z.ZodLiteral<-8>]>;
31691
+ jwk: z.ZodRecord<z.ZodString, z.ZodString>;
31692
+ name: z.ZodOptional<z.ZodString>;
31693
+ }, z.core.$strict>>;
31694
+ }, z.core.$strict>>;
30182
31695
  resources: z.ZodOptional<z.ZodObject<{
30183
31696
  memoryGib: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
30184
31697
  cpus: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -30225,6 +31738,34 @@ export declare const sandboxContract: {
30225
31738
  message: z.ZodString;
30226
31739
  }, z.core.$strip>], "kind">;
30227
31740
  }, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
31741
+ egressOwnerKeys: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
31742
+ ownerKeys: z.ZodOptional<z.ZodObject<{
31743
+ rpId: z.ZodString;
31744
+ origins: z.ZodArray<z.ZodString>;
31745
+ keys: z.ZodArray<z.ZodObject<{
31746
+ id: z.ZodString;
31747
+ alg: z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>, z.ZodLiteral<-8>]>;
31748
+ jwk: z.ZodRecord<z.ZodString, z.ZodString>;
31749
+ name: z.ZodOptional<z.ZodString>;
31750
+ }, z.core.$strict>>;
31751
+ }, z.core.$strict>>;
31752
+ credentials: z.ZodArray<z.ZodObject<{
31753
+ id: z.ZodString;
31754
+ transports: z.ZodArray<z.ZodString>;
31755
+ }, z.core.$strip>>;
31756
+ owner: z.ZodBoolean;
31757
+ slug: z.ZodString;
31758
+ suggestions: z.ZodArray<z.ZodObject<{
31759
+ to: z.ZodString;
31760
+ ports: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodInt, z.ZodString]>>>;
31761
+ protocol: z.ZodOptional<z.ZodEnum<{
31762
+ tcp: "tcp";
31763
+ udp: "udp";
31764
+ }>>;
31765
+ note: z.ZodOptional<z.ZodString>;
31766
+ from: z.ZodOptional<z.ZodString>;
31767
+ }, z.core.$strict>>;
31768
+ }, z.core.$strip>, Record<never, never>, import("./protocol/route-meta.js").RouteMeta & Record<never, never>>;
30228
31769
  runDeviceCommand: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
30229
31770
  id: z.ZodString;
30230
31771
  command: z.ZodEnum<{