@neta-art/cohub 8.17.0 → 8.19.0

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.
@@ -203,6 +203,452 @@ type SpaceCompletionStreamEvent = {
203
203
  completionId?: string | null;
204
204
  };
205
205
  //#endregion
206
+ //#region ../protocol/dist/runtime/archive.d.ts
207
+ declare const RUNTIME_ARCHIVE_SEGMENT_BYTES: number;
208
+ declare const runtimeArchiveSegmentSchema: z.ZodObject<{
209
+ offset: z.ZodNumber;
210
+ sizeBytes: z.ZodNumber;
211
+ sha256: z.ZodString;
212
+ md5: z.ZodString;
213
+ }, z.core.$strict>;
214
+ declare const harnessArchiveSchema: z.ZodObject<{
215
+ sessionId: z.ZodString;
216
+ turnId: z.ZodString;
217
+ harness: z.ZodEnum<{
218
+ codex: "codex";
219
+ pi: "pi";
220
+ }>;
221
+ }, z.core.$strict>;
222
+ declare const harnessArchiveIndexSchema: z.ZodObject<{
223
+ sessionId: z.ZodString;
224
+ turnId: z.ZodString;
225
+ harness: z.ZodEnum<{
226
+ codex: "codex";
227
+ pi: "pi";
228
+ }>;
229
+ version: z.ZodLiteral<1>;
230
+ nativeFormat: z.ZodEnum<{
231
+ "codex.rollout": "codex.rollout";
232
+ "pi.jsonl": "pi.jsonl";
233
+ }>;
234
+ nativeSessionId: z.ZodString;
235
+ parentTurnId: z.ZodNullable<z.ZodString>;
236
+ sizeBytes: z.ZodNumber;
237
+ sha256: z.ZodString;
238
+ segments: z.ZodArray<z.ZodObject<{
239
+ offset: z.ZodNumber;
240
+ sizeBytes: z.ZodNumber;
241
+ sha256: z.ZodString;
242
+ md5: z.ZodString;
243
+ }, z.core.$strict>>;
244
+ }, z.core.$strict>;
245
+ type HarnessArchive = z.infer<typeof harnessArchiveSchema>;
246
+ type HarnessArchiveIndex = z.infer<typeof harnessArchiveIndexSchema>;
247
+ type RuntimeArchiveSegment = z.infer<typeof runtimeArchiveSegmentSchema>;
248
+ type RuntimeArchiveUpload = {
249
+ segment: RuntimeArchiveSegment;
250
+ uploadUrl: string;
251
+ headers?: Record<string, string>;
252
+ };
253
+ type RuntimeArchivePage = {
254
+ index: HarnessArchiveIndex;
255
+ segments: Array<{
256
+ segment: RuntimeArchiveSegment;
257
+ downloadUrl: string;
258
+ }>;
259
+ };
260
+ declare function validateArchiveBoundary(index: HarnessArchiveIndex, parent: HarnessArchiveIndex | null): void;
261
+ //#endregion
262
+ //#region ../protocol/dist/runtime/context.d.ts
263
+ type ContextProjectionOptions = {
264
+ /** Provider recorded on projected assistant messages whose row has none. */
265
+ fallbackProvider?: string | null;
266
+ /** Resolve the wire api of a historical row from its own provider/model. */
267
+ resolveApi?: (input: {
268
+ provider: string | null;
269
+ model: string | null;
270
+ }) => string | null;
271
+ };
272
+ declare function selectRuntimeContextMessages(messages: RuntimeContextMessage[]): RuntimeContextMessage[];
273
+ /**
274
+ * Compile durable, normalized messages into Pi-compatible context without replaying tools.
275
+ * Representable blocks and tool pairing are preserved verbatim; anything without a native
276
+ * representation is dropped rather than described in prompt text.
277
+ */
278
+ declare function contextToPiMessages(messages: RuntimeContextMessage[], options?: ContextProjectionOptions): Record<string, unknown>[];
279
+ //#endregion
280
+ //#region ../protocol/dist/runtime/index.d.ts
281
+ declare const RUNTIME_PROTOCOL_VERSION: 1;
282
+ declare const RUNTIME_MAX_FRAME_BYTES: number;
283
+ declare const RUNTIME_RECOVERY_BATCH_SIZE = 64;
284
+ declare const harnessSchema: z.ZodEnum<{
285
+ codex: "codex";
286
+ cohub: "cohub";
287
+ pi: "pi";
288
+ }>;
289
+ type HarnessKind = z.infer<typeof harnessSchema>;
290
+ type LocalHarness = Exclude<HarnessKind, "cohub">;
291
+ declare const isLocalHarness: (value: unknown) => value is LocalHarness;
292
+ declare const resolveHarness: (meta: unknown) => HarnessKind;
293
+ type RuntimeContextMessage = {
294
+ id: string;
295
+ turnId: string;
296
+ role: "user" | "assistant" | "system";
297
+ content: ContentBlock[];
298
+ provider?: string | null;
299
+ model?: string | null;
300
+ usage?: Usage | null;
301
+ stopReason?: string | null;
302
+ errorMessage?: string | null;
303
+ meta?: Record<string, unknown> | null;
304
+ };
305
+ type RuntimeContext = {
306
+ complete?: boolean;
307
+ revision: string;
308
+ throughTurnId: string | null;
309
+ messages: RuntimeContextMessage[];
310
+ archive?: HarnessArchive | null;
311
+ resolvedTurnIds?: string[];
312
+ settledTurnIds?: string[];
313
+ };
314
+ declare const runtimeCapabilitiesSchema: z.ZodObject<{
315
+ harnesses: z.ZodArray<z.ZodEnum<{
316
+ codex: "codex";
317
+ pi: "pi";
318
+ }>>;
319
+ models: z.ZodArray<z.ZodObject<{
320
+ harness: z.ZodEnum<{
321
+ codex: "codex";
322
+ pi: "pi";
323
+ }>;
324
+ provider: z.ZodString;
325
+ id: z.ZodString;
326
+ name: z.ZodString;
327
+ }, z.core.$strip>>;
328
+ }, z.core.$strip>;
329
+ type RuntimeCapabilities = z.infer<typeof runtimeCapabilitiesSchema>;
330
+ declare const runtimePendingExecutionSchema: z.ZodObject<{
331
+ sessionId: z.ZodString;
332
+ turnId: z.ZodString;
333
+ harness: z.ZodEnum<{
334
+ codex: "codex";
335
+ pi: "pi";
336
+ }>;
337
+ }, z.core.$strict>;
338
+ type RuntimePendingExecution = z.infer<typeof runtimePendingExecutionSchema>;
339
+ declare const runtimeReadySchema: z.ZodObject<{
340
+ type: z.ZodLiteral<"runtime.ready">;
341
+ connectionId: z.ZodString;
342
+ }, z.core.$strip>;
343
+ type RuntimeStatus = {
344
+ kind: "cloud" | "local";
345
+ online: boolean;
346
+ capabilities: RuntimeCapabilities | null;
347
+ };
348
+ type RuntimeSessionRecoveryStatus = {
349
+ pending: boolean;
350
+ revision: string;
351
+ turnId: string | null;
352
+ harness: LocalHarness | null;
353
+ canManage: boolean;
354
+ };
355
+ declare const runtimeStopConfirmationSchema: z.ZodObject<{
356
+ expectedTurnId: z.ZodString;
357
+ revision: z.ZodString;
358
+ confirmed: z.ZodLiteral<true>;
359
+ }, z.core.$strict>;
360
+ type RuntimeStopConfirmation = z.infer<typeof runtimeStopConfirmationSchema>;
361
+ type RuntimeTurnUserMessage = {
362
+ turnId: string;
363
+ userMessageId: string;
364
+ userId: string | null;
365
+ content: ContentBlock[];
366
+ };
367
+ type RuntimeTurnInput = {
368
+ spaceId: string;
369
+ sessionId: string;
370
+ turnId: string;
371
+ userMessageId: string;
372
+ harness: LocalHarness;
373
+ /** Ordered claim inputs. The final message owns execution, streaming and archival. */
374
+ messages: RuntimeTurnUserMessage[];
375
+ context: RuntimeContext;
376
+ provider?: string | null;
377
+ model?: string | null;
378
+ thinkingLevel?: string | null;
379
+ accessMode: "read_only" | "full_access";
380
+ };
381
+ type RuntimeMessage = {
382
+ ordinal: number;
383
+ content: ContentBlock[];
384
+ provider?: string | null;
385
+ model?: string | null;
386
+ usage?: Usage | null;
387
+ stopReason?: string | null;
388
+ errorMessage?: string | null;
389
+ };
390
+ type RuntimeExecutionEvent = {
391
+ type: "message.start";
392
+ ordinal: number;
393
+ } | {
394
+ type: "text.delta";
395
+ ordinal: number;
396
+ index: number;
397
+ kind: "text" | "thinking";
398
+ delta: string;
399
+ } | {
400
+ type: "content.replace";
401
+ ordinal: number;
402
+ content: ContentBlock[];
403
+ } | {
404
+ type: "message.commit";
405
+ message: RuntimeMessage;
406
+ } | {
407
+ type: "turn.end";
408
+ message: RuntimeMessage;
409
+ archive?: HarnessArchive | null;
410
+ resume: "native" | "restored" | "handoff" | "new";
411
+ } | {
412
+ type: "context.required";
413
+ pendingTurnIds?: string[];
414
+ historyOnly?: boolean;
415
+ } | {
416
+ type: "turn.acknowledged";
417
+ } | {
418
+ type: "turn.error";
419
+ message: string;
420
+ uncertain?: boolean;
421
+ };
422
+ declare const runtimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
+ type: z.ZodLiteral<"message.start">;
424
+ ordinal: z.ZodNumber;
425
+ }, z.core.$strip>, z.ZodObject<{
426
+ type: z.ZodLiteral<"text.delta">;
427
+ ordinal: z.ZodNumber;
428
+ index: z.ZodNumber;
429
+ kind: z.ZodEnum<{
430
+ text: "text";
431
+ thinking: "thinking";
432
+ }>;
433
+ delta: z.ZodString;
434
+ }, z.core.$strip>, z.ZodObject<{
435
+ type: z.ZodLiteral<"content.replace">;
436
+ ordinal: z.ZodNumber;
437
+ content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
438
+ }, z.core.$strip>, z.ZodObject<{
439
+ type: z.ZodLiteral<"message.commit">;
440
+ message: z.ZodObject<{
441
+ ordinal: z.ZodNumber;
442
+ content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
443
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
446
+ input: z.ZodOptional<z.ZodNumber>;
447
+ output: z.ZodOptional<z.ZodNumber>;
448
+ cacheRead: z.ZodOptional<z.ZodNumber>;
449
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
450
+ totalTokens: z.ZodOptional<z.ZodNumber>;
451
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
452
+ input: z.ZodOptional<z.ZodNumber>;
453
+ output: z.ZodOptional<z.ZodNumber>;
454
+ cacheRead: z.ZodOptional<z.ZodNumber>;
455
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
456
+ total: z.ZodOptional<z.ZodNumber>;
457
+ }, z.core.$strip>>>;
458
+ }, z.core.$strip>>>;
459
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ }, z.core.$strip>;
462
+ }, z.core.$strip>, z.ZodObject<{
463
+ type: z.ZodLiteral<"turn.end">;
464
+ message: z.ZodObject<{
465
+ ordinal: z.ZodNumber;
466
+ content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
467
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
470
+ input: z.ZodOptional<z.ZodNumber>;
471
+ output: z.ZodOptional<z.ZodNumber>;
472
+ cacheRead: z.ZodOptional<z.ZodNumber>;
473
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
474
+ totalTokens: z.ZodOptional<z.ZodNumber>;
475
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
476
+ input: z.ZodOptional<z.ZodNumber>;
477
+ output: z.ZodOptional<z.ZodNumber>;
478
+ cacheRead: z.ZodOptional<z.ZodNumber>;
479
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
480
+ total: z.ZodOptional<z.ZodNumber>;
481
+ }, z.core.$strip>>>;
482
+ }, z.core.$strip>>>;
483
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
+ }, z.core.$strip>;
486
+ archive: z.ZodOptional<z.ZodNullable<z.ZodObject<{
487
+ sessionId: z.ZodString;
488
+ turnId: z.ZodString;
489
+ harness: z.ZodEnum<{
490
+ codex: "codex";
491
+ pi: "pi";
492
+ }>;
493
+ }, z.core.$strict>>>;
494
+ resume: z.ZodEnum<{
495
+ handoff: "handoff";
496
+ native: "native";
497
+ new: "new";
498
+ restored: "restored";
499
+ }>;
500
+ }, z.core.$strip>, z.ZodObject<{
501
+ type: z.ZodLiteral<"context.required">;
502
+ pendingTurnIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
503
+ historyOnly: z.ZodOptional<z.ZodBoolean>;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ type: z.ZodLiteral<"turn.acknowledged">;
506
+ }, z.core.$strip>, z.ZodObject<{
507
+ type: z.ZodLiteral<"turn.error">;
508
+ message: z.ZodString;
509
+ uncertain: z.ZodOptional<z.ZodBoolean>;
510
+ }, z.core.$strip>], "type">;
511
+ declare const runtimeCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
512
+ type: z.ZodLiteral<"turn.recover">;
513
+ requestId: z.ZodString;
514
+ execution: z.ZodObject<{
515
+ spaceId: z.ZodString;
516
+ sessionId: z.ZodString;
517
+ turnId: z.ZodString;
518
+ harness: z.ZodEnum<{
519
+ codex: "codex";
520
+ pi: "pi";
521
+ }>;
522
+ }, z.core.$strip>;
523
+ }, z.core.$strip>, z.ZodObject<{
524
+ type: z.ZodLiteral<"turn.start">;
525
+ requestId: z.ZodString;
526
+ resumeOnly: z.ZodOptional<z.ZodBoolean>;
527
+ input: z.ZodObject<{
528
+ spaceId: z.ZodString;
529
+ sessionId: z.ZodString;
530
+ turnId: z.ZodString;
531
+ userMessageId: z.ZodString;
532
+ harness: z.ZodEnum<{
533
+ codex: "codex";
534
+ pi: "pi";
535
+ }>;
536
+ messages: z.ZodArray<z.ZodObject<{
537
+ turnId: z.ZodString;
538
+ userMessageId: z.ZodString;
539
+ userId: z.ZodNullable<z.ZodString>;
540
+ content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
541
+ }, z.core.$strip>>;
542
+ context: z.ZodObject<{
543
+ complete: z.ZodOptional<z.ZodBoolean>;
544
+ revision: z.ZodString;
545
+ throughTurnId: z.ZodNullable<z.ZodString>;
546
+ messages: z.ZodArray<z.ZodObject<{
547
+ id: z.ZodString;
548
+ turnId: z.ZodString;
549
+ role: z.ZodEnum<{
550
+ assistant: "assistant";
551
+ system: "system";
552
+ user: "user";
553
+ }>;
554
+ content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
555
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
558
+ input: z.ZodOptional<z.ZodNumber>;
559
+ output: z.ZodOptional<z.ZodNumber>;
560
+ cacheRead: z.ZodOptional<z.ZodNumber>;
561
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
562
+ totalTokens: z.ZodOptional<z.ZodNumber>;
563
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
564
+ input: z.ZodOptional<z.ZodNumber>;
565
+ output: z.ZodOptional<z.ZodNumber>;
566
+ cacheRead: z.ZodOptional<z.ZodNumber>;
567
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
568
+ total: z.ZodOptional<z.ZodNumber>;
569
+ }, z.core.$strip>>>;
570
+ }, z.core.$strip>>>;
571
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
573
+ meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
574
+ }, z.core.$strip>>;
575
+ archive: z.ZodOptional<z.ZodNullable<z.ZodObject<{
576
+ sessionId: z.ZodString;
577
+ turnId: z.ZodString;
578
+ harness: z.ZodEnum<{
579
+ codex: "codex";
580
+ pi: "pi";
581
+ }>;
582
+ }, z.core.$strict>>>;
583
+ resolvedTurnIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
584
+ settledTurnIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
585
+ }, z.core.$strip>;
586
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
587
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
+ thinkingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
+ accessMode: z.ZodEnum<{
590
+ full_access: "full_access";
591
+ read_only: "read_only";
592
+ }>;
593
+ }, z.core.$strip>;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ type: z.ZodLiteral<"session.context">;
596
+ requestId: z.ZodString;
597
+ context: z.ZodObject<{
598
+ complete: z.ZodOptional<z.ZodBoolean>;
599
+ revision: z.ZodString;
600
+ throughTurnId: z.ZodNullable<z.ZodString>;
601
+ messages: z.ZodArray<z.ZodObject<{
602
+ id: z.ZodString;
603
+ turnId: z.ZodString;
604
+ role: z.ZodEnum<{
605
+ assistant: "assistant";
606
+ system: "system";
607
+ user: "user";
608
+ }>;
609
+ content: z.ZodArray<z.ZodType<ContentBlock, unknown, z.core.$ZodTypeInternals<ContentBlock, unknown>>>;
610
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
613
+ input: z.ZodOptional<z.ZodNumber>;
614
+ output: z.ZodOptional<z.ZodNumber>;
615
+ cacheRead: z.ZodOptional<z.ZodNumber>;
616
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
617
+ totalTokens: z.ZodOptional<z.ZodNumber>;
618
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
619
+ input: z.ZodOptional<z.ZodNumber>;
620
+ output: z.ZodOptional<z.ZodNumber>;
621
+ cacheRead: z.ZodOptional<z.ZodNumber>;
622
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
623
+ total: z.ZodOptional<z.ZodNumber>;
624
+ }, z.core.$strip>>>;
625
+ }, z.core.$strip>>>;
626
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
628
+ meta: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
629
+ }, z.core.$strip>>;
630
+ archive: z.ZodOptional<z.ZodNullable<z.ZodObject<{
631
+ sessionId: z.ZodString;
632
+ turnId: z.ZodString;
633
+ harness: z.ZodEnum<{
634
+ codex: "codex";
635
+ pi: "pi";
636
+ }>;
637
+ }, z.core.$strict>>>;
638
+ resolvedTurnIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
639
+ settledTurnIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
+ }, z.core.$strip>;
641
+ }, z.core.$strip>, z.ZodObject<{
642
+ type: z.ZodLiteral<"turn.abort">;
643
+ requestId: z.ZodString;
644
+ }, z.core.$strip>, z.ZodObject<{
645
+ type: z.ZodLiteral<"turn.ack">;
646
+ requestId: z.ZodString;
647
+ revision: z.ZodString;
648
+ turnId: z.ZodString;
649
+ }, z.core.$strip>], "type">;
650
+ type RuntimeCommand = z.infer<typeof runtimeCommandSchema>;
651
+ //#endregion
206
652
  //#region ../protocol/dist/model/turn.d.ts
207
653
  type SessionTurnStatus = "queued" | "running" | "abort_requested" | "completed" | "failed" | "interrupted" | "merged" | "cancelled";
208
654
  type SessionTurnIntent = "steer" | "followup" | "compact";
@@ -366,6 +812,7 @@ type SessionTurnRecord = {
366
812
  summary: SessionTurnSummary | null;
367
813
  intermediateIndex: SessionTurnIntermediateIndex | null;
368
814
  intermediateSummary: SessionTurnIntermediateSummary | null;
815
+ harnessIndex?: HarnessArchiveIndex | null;
369
816
  meta: Record<string, unknown> | null;
370
817
  /** Effective thinking level used for this turn (derived from meta.effectiveThinkingLevel). */
371
818
  thinkingLevel?: ModelThinkingLevel | null;
@@ -536,7 +983,7 @@ type ChannelHealth = {
536
983
  meta?: Record<string, string> | null;
537
984
  };
538
985
  //#endregion
539
- //#region ../../node_modules/.pnpm/@neta-art+generation@0.1.28/node_modules/@neta-art/generation/dist/builtins-jIE_k69Z.d.ts
986
+ //#region ../../node_modules/.pnpm/@neta-art+generation@0.1.30/node_modules/@neta-art/generation/dist/builtins-jIE_k69Z.d.ts
540
987
  //#region src/types.d.ts
541
988
  declare const MODEL_SCHEMA: "neta.generation.model.v1";
542
989
  declare const GENERATION_MODEL_CATEGORIES: readonly ["image", "video", "audio"];
@@ -761,6 +1208,77 @@ declare function assertGenerationRequestAllowedByPolicy(input: {
761
1208
  }): void;
762
1209
  declare function filterGenerationDeclarationsByPolicy<T extends PublicDeclaration>(declarations: T[], policy: GenerationPolicy | null): T[];
763
1210
  //#endregion
1211
+ //#region ../protocol/dist/app-authorization.d.ts
1212
+ declare const appAuthorizationTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1213
+ kind: z.ZodLiteral<"account">;
1214
+ }, z.core.$strip>, z.ZodObject<{
1215
+ kind: z.ZodLiteral<"space">;
1216
+ spaceId: z.ZodString;
1217
+ }, z.core.$strip>, z.ZodObject<{
1218
+ kind: z.ZodLiteral<"pick-space">;
1219
+ }, z.core.$strip>], "kind">;
1220
+ declare const appAuthorizationRequestSchema: z.ZodObject<{
1221
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1222
+ kind: z.ZodLiteral<"account">;
1223
+ }, z.core.$strip>, z.ZodObject<{
1224
+ kind: z.ZodLiteral<"space">;
1225
+ spaceId: z.ZodString;
1226
+ }, z.core.$strip>, z.ZodObject<{
1227
+ kind: z.ZodLiteral<"pick-space">;
1228
+ }, z.core.$strip>], "kind">;
1229
+ scopes: z.ZodArray<z.ZodString>;
1230
+ reason: z.ZodOptional<z.ZodString>;
1231
+ alwaysAsk: z.ZodOptional<z.ZodBoolean>;
1232
+ fallback: z.ZodDefault<z.ZodEnum<{
1233
+ allow: "allow";
1234
+ none: "none";
1235
+ }>>;
1236
+ }, z.core.$strip>;
1237
+ declare const appAuthorizationGrantSchema: z.ZodObject<{
1238
+ id: z.ZodString;
1239
+ spaceId: z.ZodString;
1240
+ scopes: z.ZodArray<z.ZodString>;
1241
+ expiresAt: z.ZodNullable<z.ZodString>;
1242
+ }, z.core.$strip>;
1243
+ declare const appAuthorizationResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1244
+ status: z.ZodLiteral<"granted">;
1245
+ requestedTarget: z.ZodDiscriminatedUnion<[z.ZodObject<{
1246
+ kind: z.ZodLiteral<"account">;
1247
+ }, z.core.$strip>, z.ZodObject<{
1248
+ kind: z.ZodLiteral<"space">;
1249
+ spaceId: z.ZodString;
1250
+ }, z.core.$strip>, z.ZodObject<{
1251
+ kind: z.ZodLiteral<"pick-space">;
1252
+ }, z.core.$strip>], "kind">;
1253
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1254
+ kind: z.ZodLiteral<"account">;
1255
+ }, z.core.$strip>, z.ZodObject<{
1256
+ kind: z.ZodLiteral<"space">;
1257
+ spaceId: z.ZodString;
1258
+ name: z.ZodNullable<z.ZodString>;
1259
+ }, z.core.$strip>], "kind">;
1260
+ resolution: z.ZodEnum<{
1261
+ fallback: "fallback";
1262
+ requested: "requested";
1263
+ selected: "selected";
1264
+ }>;
1265
+ grant: z.ZodObject<{
1266
+ id: z.ZodString;
1267
+ spaceId: z.ZodString;
1268
+ scopes: z.ZodArray<z.ZodString>;
1269
+ expiresAt: z.ZodNullable<z.ZodString>;
1270
+ }, z.core.$strip>;
1271
+ }, z.core.$strip>, z.ZodObject<{
1272
+ status: z.ZodLiteral<"cancelled">;
1273
+ }, z.core.$strip>, z.ZodObject<{
1274
+ status: z.ZodLiteral<"denied">;
1275
+ code: z.ZodString;
1276
+ }, z.core.$strip>], "status">;
1277
+ type AppAuthorizationTarget = z.infer<typeof appAuthorizationTargetSchema>;
1278
+ type AppAuthorizationGrant = z.infer<typeof appAuthorizationGrantSchema>;
1279
+ type AppAuthorizationResult = z.infer<typeof appAuthorizationResultSchema>;
1280
+ type AppAuthorizationRequest = z.input<typeof appAuthorizationRequestSchema>;
1281
+ //#endregion
764
1282
  //#region ../protocol/dist/board-constants.d.ts
765
1283
  type BoardCoordinateSpace = "world" | "frame-local" | "world-offset" | "screen" | "screen-offset" | "normalized";
766
1284
  type BoardRenderCost = {
@@ -5740,7 +6258,7 @@ type SessionTurnLifecycleEvent = {
5740
6258
  at: string;
5741
6259
  };
5742
6260
  };
5743
- type RealtimeTurnRecord = Partial<Pick<SessionTurnRecord, "id" | "sessionId" | "sequence" | "executionKind" | "status" | "intent" | "userUuid" | "authorProfile" | "userContent" | "userText" | "assistantContent" | "assistantText" | "provider" | "model" | "stopReason" | "errorMessage" | "finalUsage" | "totalUsage" | "summary" | "intermediateIndex" | "intermediateSummary" | "meta" | "thinkingLevel" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | "updatedAt">>;
6261
+ type RealtimeTurnRecord = Partial<Pick<SessionTurnRecord, "id" | "sessionId" | "sequence" | "executionKind" | "status" | "intent" | "userUuid" | "authorProfile" | "userContent" | "userText" | "assistantContent" | "assistantText" | "provider" | "model" | "stopReason" | "errorMessage" | "finalUsage" | "totalUsage" | "summary" | "intermediateIndex" | "intermediateSummary" | "harnessIndex" | "meta" | "thinkingLevel" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | "updatedAt">>;
5744
6262
  type RealtimeMessageRecord = Pick<MessageRecord, "id" | "sessionId" | "role" | "content" | "text" | "sequence" | "provider" | "model" | "stopReason" | "errorMessage" | "usage" | "meta" | "startedAt" | "completedAt" | "durationMs" | "createdAt">;
5745
6263
  type SessionTurnCreatedEvent = {
5746
6264
  id: string;
@@ -7059,6 +7577,8 @@ type CreateSpacePromptInput = {
7059
7577
  content?: ContentBlock[];
7060
7578
  model?: string | null;
7061
7579
  provider?: string | null;
7580
+ /** Harness selected for this turn. */
7581
+ harness?: "cohub" | "pi" | "codex" | null;
7062
7582
  /** Optional thinking level override for this turn. Omit to inherit session default. */
7063
7583
  thinkingLevel?: ModelThinkingLevel | null;
7064
7584
  clientMessageId?: string | null;
@@ -7349,14 +7869,14 @@ type SpaceModListItem = {
7349
7869
  * Kept as a runtime constant so hosts can validate untrusted scopes from
7350
7870
  * app iframes — TypeScript unions cannot constrain cross-window messages.
7351
7871
  */
7352
- declare const PERMISSIONS: readonly ["space.view", "space.edit", "space.create", "space.label.view", "space.label.manage", "space.label.assign", "session.view", "session.edit", "session.prompt.readonly", "session.prompt.fullaccess", "session.access.manage", "generation.create", "file.view", "file.view.filtered", "file.edit", "checkpoint.view", "checkpoint.edit", "member.view", "member.manage", "references.view", "channel.view", "channel.manage", "cronjob.view", "cronjob.manage", "taskrun.view", "command.execute", "sandbox.view", "sandbox.manage", "mod.view", "mod.manage", "space.commerce.view", "space.commerce.manage", "user.space.list", "user.session.list", "user.taskrun.list", "user.usage.read"];
7872
+ declare const PERMISSIONS: readonly ["space.view", "space.edit", "space.create", "space.label.view", "space.label.manage", "space.label.assign", "session.view", "session.edit", "session.prompt.readonly", "session.prompt.fullaccess", "session.access.manage", "generation.create", "file.view", "file.view.filtered", "file.edit", "checkpoint.view", "checkpoint.edit", "member.view", "member.manage", "references.view", "channel.view", "channel.manage", "cronjob.view", "cronjob.manage", "taskrun.view", "command.execute", "sandbox.view", "sandbox.manage", "mod.view", "mod.manage", "space.commerce.view", "space.commerce.manage", "app.manage", "user.space.list", "user.session.list", "user.taskrun.list", "user.usage.read"];
7353
7873
  type Permission = (typeof PERMISSIONS)[number];
7354
7874
  /**
7355
7875
  * Account-level permissions, not bound to a specific Space. Mirrored from
7356
7876
  * `@cohub/core` alongside {@link PERMISSIONS}. A request whose scopes are all
7357
7877
  * account-level needs no target Space and must not open a Space picker.
7358
7878
  */
7359
- declare const USER_LEVEL_PERMISSIONS: Set<"channel.manage" | "channel.view" | "checkpoint.edit" | "checkpoint.view" | "command.execute" | "cronjob.manage" | "cronjob.view" | "file.edit" | "file.view" | "file.view.filtered" | "generation.create" | "member.manage" | "member.view" | "mod.manage" | "mod.view" | "references.view" | "sandbox.manage" | "sandbox.view" | "session.access.manage" | "session.edit" | "session.prompt.fullaccess" | "session.prompt.readonly" | "session.view" | "space.commerce.manage" | "space.commerce.view" | "space.create" | "space.edit" | "space.label.assign" | "space.label.manage" | "space.label.view" | "space.view" | "taskrun.view" | "user.session.list" | "user.space.list" | "user.taskrun.list" | "user.usage.read">;
7879
+ declare const USER_LEVEL_PERMISSIONS: Set<"app.manage" | "channel.manage" | "channel.view" | "checkpoint.edit" | "checkpoint.view" | "command.execute" | "cronjob.manage" | "cronjob.view" | "file.edit" | "file.view" | "file.view.filtered" | "generation.create" | "member.manage" | "member.view" | "mod.manage" | "mod.view" | "references.view" | "sandbox.manage" | "sandbox.view" | "session.access.manage" | "session.edit" | "session.prompt.fullaccess" | "session.prompt.readonly" | "session.view" | "space.commerce.manage" | "space.commerce.view" | "space.create" | "space.edit" | "space.label.assign" | "space.label.manage" | "space.label.view" | "space.view" | "taskrun.view" | "user.session.list" | "user.space.list" | "user.taskrun.list" | "user.usage.read">;
7360
7880
  declare const isUserLevelPermission: (permission: Permission) => boolean;
7361
7881
  /** Implication-aware membership check, mirroring `@cohub/core`. */
7362
7882
  declare function scopeListHasPermission(scopes: readonly Permission[], permission: Permission): boolean;
@@ -7667,4 +8187,4 @@ declare const resolveVoiceInputWebsocketUrl: (options?: {
7667
8187
  env?: CohubEnvironment;
7668
8188
  }) => string;
7669
8189
  //#endregion
7670
- export { CheckpointDiffFile as $, BoardEffectInput as $a, DesktopFileTarget as $i, SpaceCommerceProductCreditBenefit as $n, CompletionMessageRole as $o, SpaceUsageResponse as $r, PublicReferral as $t, BillingCreditGrantStatus as A, BoardPlaybackCommand as Aa, SessionTurnPatchEvent as Ai, SessionTurnWindowResponse as An, parseGenerationPolicyFromEnv as Ao, SpaceFsWriteFileInput as Ar, LabelAssignmentListItem as At, BillingProductCreditBenefit as B, BoardValidationResult as Ba, DESKTOP_COMMAND_MAX_TIMEOUT_MS as Bi, SpaceBootstrapMeta as Bn, FeishuChannelConfig as Bo, SpacePresenceSnapshot as Br, MeResponse as Bt, BillingCatalog as C, BoardCameraFocusParams as Ca, RealtimeAppVersionRecord as Ci, SessionMessagesPaginatedResponse as Cn, assertGenerationRequestAllowedByPolicy as Co, SpaceFsUploadDestination as Cr, GlobalSearchResult as Ct, BillingCheckoutResult as D, BoardDiagnostic as Da, RealtimeRoomEvent as Di, SessionTurnResponse as Dn, findGenerationModelPolicy as Do, SpaceFsUploadPlanEntryInput as Dr, JsonObject as Dt, BillingCheckoutConfirmation as E, BoardCreateInput as Ea, RealtimeRoomDescriptor as Ei, SessionTurnIndexResponse as En, filterGenerationDeclarationsByPolicy as Eo, SpaceFsUploadPlanEntry as Er, InvitationDetail as Et, BillingDiscountPricing as F, BoardSummary as Fa, AppBoardArtifactManifest as Fi, SpaceAccess as Fn, ChannelConfig as Fo, SpaceMember as Fr, LabelListItem as Ft, BillingPromotionCodePreview as G, BoardAuthoringSnapshot as Ga, DESKTOP_COMMAND_VERSION as Gi, SpaceCheckpointDetailResponse as Gn, SessionTurnIndexItem as Go, SpaceSandboxAutoDestroyPolicy as Gr, PaletteOverviewSpace as Gt, BillingProductKind as H, BoardAuthoringItem as Ha, DESKTOP_COMMAND_PENDING_TTL_SECONDS as Hi, SpaceBootstrapStage as Hn, SessionForkRecord as Ho, SpacePublicProfile as Hr, PERMISSIONS as Ht, BillingHistoryPagination as I, BoardTransactionOperation as Ia, AppBoardAsset as Ii, SpaceAccessPolicy as In, ChannelHealth as Io, SpaceMeta as Ir, LabelRecord as It, BillingSubscriptionHistoryList as J, BoardSemanticCommand as Ja, DesktopCommand as Ji, SpaceCommerceCreditsBenefit as Jn, StoredIntermediateMessage as Jo, SpaceSessionsResponse as Jr, PatchResourceLabelsResponse as Jt, BillingRedemptionResult as K, BoardItemPatch as Ka, DesktopAppTarget as Ki, SpaceCommerceBenefit as Kn, SessionTurnRecord as Ko, SpaceSandboxConfig as Kr, PaletteOverviewSpaceRelation as Kt, BillingPaymentStatus as L, BoardTransactionRecord as La, AppContentKind as Li, SpaceActivityAppRanking as Ln, ChannelHealthReasonCode as Lo, SpaceModListItem as Lr, LabelResourceType as Lt, BillingCreditUnit as M, BoardPlaybackPolicySchema as Ma, AppArtifactDownloadDescriptor as Mi, SkillCatalogEntry as Mn, GenerationContentBlock as Mo, SpaceInvitationListResponse as Mr, LabelAssignmentRecord as Mt, BillingDiscountOffer as N, BoardPlaybackSnapshot as Na, AppArtifactManifest as Ni, SkillCatalogResponse as Nn, GenerationModelDeclaration as No, SpaceInvitationLocation as Nr, LabelItemsResponse as Nt, BillingConversionIntent as O, BoardManifest as Oa, RealtimeRoomMember as Oi, SessionTurnSignedUrlsResponse as On, getAllowedGenerationModelIds as Oo, SpaceFsUploadProgress as Or, JsonPrimitive as Ot, BillingDiscountOfferRef as P, BoardRecord as Pa, AppArtifactManifestFile as Pi, SkillCatalogSource as Pn, GenerationResult as Po, SpaceListItem as Pr, LabelItemsSessionFork as Pt, CheckpointDiffDelivery as Q, BoardEffect as Qa, DesktopCommandStatus as Qi, SpaceCommerceProductBenefitBinding as Qn, CompletionMessage as Qo, SpaceUsageHourlyStat as Qr, PromptTemplateCatalogResponse as Qt, BillingPluginStatus as R, BoardTransactionsPage as Ra, AppVersionSource as Ri, SpaceActivityContributor as Rn, ChannelRuntimeState as Ro, SpacePendingDiffFileResponse as Rr, LabelScopeType as Rt, BillingBalanceActivityStatus as S, BoardCameraFocus as Sa, RealtimeAppRecord as Si, SessionMessageResponse as Sn, GenerationPolicyError as So, SpaceFsTreeResponse as Sr, resolveRequestSourceChannel as Ss, GlobalSearchResponse as St, BillingCheckoutActionState as T, BoardCapabilities as Ta, RealtimeRoom as Ti, SessionRecord as Tn, encodeGenerationPolicy as To, SpaceFsUploadError as Tr, GlobalSearchViewerRelation as Tt, BillingProductPricing as U, BoardAuthoringItemSchema as Ua, DESKTOP_COMMAND_SETTLEMENT_GRACE_SECONDS as Ui, SpaceBootstrapStatus as Un, SessionTurnSegmentRecord as Uo, SpaceRecord as Ur, PaletteOverviewResponse as Ut, BillingProductDisplay as V, parseBoardPlaybackPolicy as Va, DESKTOP_COMMAND_PAYLOAD_MAX_BYTES as Vi, SpaceBootstrapSource as Vn, MessageRecord as Vo, SpacePresenceUser as Vr, ModelCatalogEntry as Vt, BillingProductPromotion as W, BoardAuthoringReadInput as Wa, DESKTOP_COMMAND_TERMINAL_TTL_SECONDS as Wi, SpaceChannelBindingInput as Wn, MessageToolCallsFile as Wo, SpaceRole as Wr, PaletteOverviewSession as Wt, BillingSubscriptionSummary as X, BoardSemanticMutation as Xa, DesktopCommandError as Xi, SpaceCommerceOrder as Xn, TurnIntermediateMessagesFile as Xo, SpaceTurnListItem as Xr, PromptAccessMode as Xt, BillingSubscriptionHistoryStatus as Y, BoardSemanticCommandSchema as Ya, DesktopCommandDispatchedPayload as Yi, SpaceCommerceFeatureBenefit as Yn, StoredToolCall as Yo, SpaceTurnAuthorFilter as Yr, Permission as Yt, Channel as Z, BoardAssetRef as Za, DesktopCommandRecord as Zi, SpaceCommerceProduct as Zn, CompletionAssistantMessage as Zo, SpaceTurnsResponse as Zr, PromptTemplateCatalogEntry as Zt, ApiError as _, BoardGeoKind as _a, BoardAwarenessUpdatedEvent as _i, ReferralStatus as _n, BoardCoordinateSpace as _o, SpaceFsMoveInput as _r, mergeRequestSourceIntoMeta as _s, CronJobUpdatePatch as _t, CohubRuntimeKind as a, parseDesktopCommand as aa, UserActivityRange as ai, ReferenceAggregateGroup as an, BoardComposition as ao, SpaceDefaultResponse as ar, SpaceCompletionStreamEvent as as, CheckpointDiffSummary as at, BillingBalanceActivityKind as b, BoardDealParams as ba, ChannelEnvelope as bi, SendMessageCronJobPayload as bn, GenerationParameterConstraint as bo, SpaceFsReadFilesInput as br, readRequestSourceFromEnv as bs, GenerationUsageHourlyStat as bt, normalizeVoiceInputWebsocketUrl as c, NavigationLaunch as ca, UserProfile as ci, ReferenceDirection as cn, BoardCompositionSchema as co, SpaceFsCompleteUploadResponse as cr, COHUB_SOURCE_HEADER as cs, CreateInvitationInput as ct, resolveCohubEnvironment as d, BoardAwarenessNodePreview as da, UserSessionSourceKey as di, ReferenceQueryableType as dn, BoardTimeline as do, SpaceFsCreateUploadResponse as dr, RequestSource as ds, CreateSpaceModInput as dt, DesktopOpenCommand as ea, SpaceUsageSummary as ei, PublicUserAppItem as en, BoardEffectInputSchema as eo, SpaceConfig as er, CompletionThinkingLevel as es, CheckpointDiffFileResponse as et, resolveExecutionAppId as f, BoardAwarenessStateUpdate as fa, UserSessionSpaceSummary as fi, ReferenceRecord as fn, BoardTimelineMarker as fo, SpaceFsDeleteNodeInput as fr, RequestSourceVia as fs, CreateSpacePromptInput as ft, AcceptInvitationResponse as g, BoardColorId as ga, AppVersionPublishedEvent as gi, ReferralReward as gn, BoardCapability as go, SpaceFsFileResponse as gr, isRequestSourceUuid as gs, CronJobRecord as gt, resolveWebsocketUrl as h, BOARD_GEO_KINDS as ha, scopeListHasPermission as hi, ReferralListItem as hn, parseBoardCompositionInput as ho, SpaceFsFileKind as hr, isRequestSourceEmpty as hs, CronJobPayload as ht, CohubExecutionContext as i, isTerminalDesktopCommandStatus as ia, UserActivityQuery as ii, PublicUserWorkItem as in, BoardAnimationTarget as io, SpaceCreateResponse as ir, SpaceCompletionResult as is, CheckpointDiffStatus as it, BillingCreditStatus as j, BoardPlaybackPolicy as ja, AppArtifactDescriptor as ji, SessionTurnsPaginatedResponse as jn, BillingPayload as jo, SpaceInvitation as jr, LabelAssignmentPageInfo as jt, BillingCreditExpiryGroup as k, BoardMutationReceipt as ka, RealtimeServerEvent as ki, SessionTurnStreamSnapshotResponse as kn, normalizeGenerationPolicy as ko, SpaceFsUploadResponse as kr, JsonValue as kt, normalizeWebsocketUrl as l, SpacePublicEndpoints as la, UserRulesResponse as li, ReferenceKind as ln, BoardEasing as lo, SpaceFsCreateDirectoryInput as lr, COHUB_SOURCE_HEADER_NAMES as ls, CreateInvitationResponse as lt, resolveVoiceInputWebsocketUrl as m, BOARD_COLOR_IDS as ma, isUserLevelPermission as mi, ReferralDashboard as mn, BoardTrackInterpolation as mo, SpaceFsEntry as mr, isRequestSourceClientId as ms, CreateSpaceSessionInput as mt, CohubContext as n, DesktopTarget as na, TaskRunRecord as ni, PublicUserProfile as nn, parseBoardEffectInput as no, SpaceConfigResponse as nr, CreateSpaceCompletionInput as ns, CheckpointDiffPatchLine as nt, getCohubContext as o, resolveOpenSurface as oa, UserActivityRankings as oi, ReferenceAggregateGroupBy as on, BoardCompositionInputSchema as oo, SpaceEnvInput as or, Usage as os, CheckpointRecord as ot, resolveExecutionToken as p, BoardAwarenessUpdate as pa, UserSessionsResponse as pi, ReferenceResourceType as pn, BoardTrack as po, SpaceFsEncoding as pr, hasRequestSourceIdentity as ps, CreateSpacePromptResponse as pt, BillingResponsePayload as q, BoardItemPatchSchema as qa, DesktopCall as qi, SpaceCommerceBuyerProfile as qn, SpaceTurnsResponse$1 as qo, SpaceSandboxProvider as qr, PatchResourceLabelsInput as qt, CohubEnvironment as r, isDesktopCallMethod as ra, USER_LEVEL_PERMISSIONS as ri, PublicUserSpaceItem as rn, BOARD_ANIMATION_CHANNEL_CAPABILITIES as ro, SpaceConfigUpdateResponse as rr, ModelThinkingLevel as rs, CheckpointDiffStats as rt, normalizeBaseUrl as s, NavigationCall as sa, UserActivityResponse as si, ReferenceAggregateResponse as sn, BoardCompositionPlayback as so, SpaceFsCompleteUploadInput as sr, ContentBlock as ss, ClaimReferralResponse as st, COHUB_ENVIRONMENTS as t, DesktopSurface as ta, TaskRunDetailResponse as ti, PublicUserPageResponse as tn, BoardEffectSchema as to, SpaceConfigInput as tr, CompletionUsage as ts, CheckpointDiffPatchKind as tt, resolveApiBaseUrl as u, BoardAwarenessGesture as ua, UserSessionListItem as ui, ReferenceQueryResponse as un, BoardProceduralClip as uo, SpaceFsCreateUploadInput as ur, REQUEST_SOURCE_VIA_MAX_LENGTH as us, CreateSpaceInput as ut, BatchUserProfilesResponse as v, BoardAnimationSpec as va, BoardChangedEvent as vi, ResourceLabelsResponse as vn, BoardRenderCost as vo, SpaceFsPreparingFile as vr, normalizeRequestSource as vs, CursorPageInfo as vt, BillingCatalogProduct as w, BoardCameraState as wa, RealtimePatchOperation as wi, SessionMessagesResponse as wn, decodeGenerationPolicy as wo, SpaceFsUploadEntry as wr, GlobalSearchType as wt, BillingBalanceActivityList as x, BoardDealParamsSchema as xa, LabelAssignmentsUpdatedEvent as xi, SessionBindingRecord as xn, GenerationPolicy as xo, SpaceFsReadFilesResponse as xr, requestSourceToHeaders as xs, GenerationUsageSummary as xt, BillingBalanceActivity as y, BoardAnimationSpecSchema as ya, BoardPlaybackChangedEvent as yi, SandboxSpecId as yn, GenerationModelPolicy as yo, SpaceFsReadFilesError as yr, parseRequestSourceFromHeaders as ys, GenerationUsageBlock as yt, BillingProductBillingInterval as z, BoardTransactionsReadInput as za, DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS as zi, SpaceActivityResponse as zn, DiscordChannelConfig as zo, SpacePendingDiffSummary as zr, LabelSource as zt };
8190
+ export { CheckpointDiffFile as $, BoardEffectInput as $a, DesktopFileTarget as $i, SpaceCommerceProductCreditBenefit as $n, StoredToolCall as $o, SpaceUsageResponse as $r, mergeRequestSourceIntoMeta as $s, PublicReferral as $t, BillingCreditGrantStatus as A, BoardPlaybackCommand as Aa, SessionTurnPatchEvent as Ai, SessionTurnWindowResponse as An, filterGenerationDeclarationsByPolicy as Ao, SpaceFsWriteFileInput as Ar, RuntimeArchiveUpload as As, LabelAssignmentListItem as At, BillingProductCreditBenefit as B, BoardValidationResult as Ba, DESKTOP_COMMAND_MAX_TIMEOUT_MS as Bi, SpaceBootstrapMeta as Bn, ChannelHealth as Bo, SpacePresenceSnapshot as Br, SpaceCompletionResult as Bs, MeResponse as Bt, BillingCatalog as C, BoardCameraFocusParams as Ca, RealtimeAppVersionRecord as Ci, SessionMessagesPaginatedResponse as Cn, GenerationModelPolicy as Co, SpaceFsUploadDestination as Cr, contextToPiMessages as Cs, GlobalSearchResult as Ct, BillingCheckoutResult as D, BoardDiagnostic as Da, RealtimeRoomEvent as Di, SessionTurnResponse as Dn, assertGenerationRequestAllowedByPolicy as Do, SpaceFsUploadPlanEntryInput as Dr, RUNTIME_ARCHIVE_SEGMENT_BYTES as Ds, JsonObject as Dt, BillingCheckoutConfirmation as E, BoardCreateInput as Ea, RealtimeRoomDescriptor as Ei, SessionTurnIndexResponse as En, GenerationPolicyError as Eo, SpaceFsUploadPlanEntry as Er, HarnessArchiveIndex as Es, InvitationDetail as Et, BillingDiscountPricing as F, BoardSummary as Fa, AppBoardArtifactManifest as Fi, SpaceAccess as Fn, BillingPayload as Fo, SpaceMember as Fr, CompletionMessageRole as Fs, LabelListItem as Ft, BillingPromotionCodePreview as G, BoardAuthoringSnapshot as Ga, DESKTOP_COMMAND_VERSION as Gi, SpaceCheckpointDetailResponse as Gn, MessageRecord as Go, SpaceSandboxAutoDestroyPolicy as Gr, COHUB_SOURCE_HEADER_NAMES as Gs, PaletteOverviewSpace as Gt, BillingProductKind as H, BoardAuthoringItem as Ha, DESKTOP_COMMAND_PENDING_TTL_SECONDS as Hi, SpaceBootstrapStage as Hn, ChannelRuntimeState as Ho, SpacePublicProfile as Hr, Usage as Hs, PERMISSIONS as Ht, BillingHistoryPagination as I, BoardTransactionOperation as Ia, AppBoardAsset as Ii, SpaceAccessPolicy as In, GenerationContentBlock as Io, SpaceMeta as Ir, CompletionThinkingLevel as Is, LabelRecord as It, BillingSubscriptionHistoryList as J, BoardSemanticCommand as Ja, DesktopCommand as Ji, SpaceCommerceCreditsBenefit as Jn, MessageToolCallsFile as Jo, SpaceSessionsResponse as Jr, RequestSourceVia as Js, PatchResourceLabelsResponse as Jt, BillingRedemptionResult as K, BoardItemPatch as Ka, DesktopAppTarget as Ki, SpaceCommerceBenefit as Kn, SessionForkRecord as Ko, SpaceSandboxConfig as Kr, REQUEST_SOURCE_VIA_MAX_LENGTH as Ks, PaletteOverviewSpaceRelation as Kt, BillingPaymentStatus as L, BoardTransactionRecord as La, AppContentKind as Li, SpaceActivityAppRanking as Ln, GenerationModelDeclaration as Lo, SpaceModListItem as Lr, CompletionUsage as Ls, LabelResourceType as Lt, BillingCreditUnit as M, BoardPlaybackPolicySchema as Ma, AppArtifactDownloadDescriptor as Mi, SkillCatalogEntry as Mn, getAllowedGenerationModelIds as Mo, SpaceInvitationListResponse as Mr, validateArchiveBoundary as Ms, LabelAssignmentRecord as Mt, BillingDiscountOffer as N, BoardPlaybackSnapshot as Na, AppArtifactManifest as Ni, SkillCatalogResponse as Nn, normalizeGenerationPolicy as No, SpaceInvitationLocation as Nr, CompletionAssistantMessage as Ns, LabelItemsResponse as Nt, BillingConversionIntent as O, BoardManifest as Oa, RealtimeRoomMember as Oi, SessionTurnSignedUrlsResponse as On, decodeGenerationPolicy as Oo, SpaceFsUploadProgress as Or, RuntimeArchivePage as Os, JsonPrimitive as Ot, BillingDiscountOfferRef as P, BoardRecord as Pa, AppArtifactManifestFile as Pi, SkillCatalogSource as Pn, parseGenerationPolicyFromEnv as Po, SpaceListItem as Pr, CompletionMessage as Ps, LabelItemsSessionFork as Pt, CheckpointDiffDelivery as Q, BoardEffect as Qa, DesktopCommandStatus as Qi, SpaceCommerceProductBenefitBinding as Qn, StoredIntermediateMessage as Qo, SpaceUsageHourlyStat as Qr, isRequestSourceUuid as Qs, PromptTemplateCatalogResponse as Qt, BillingPluginStatus as R, BoardTransactionsPage as Ra, AppVersionSource as Ri, SpaceActivityContributor as Rn, GenerationResult as Ro, SpacePendingDiffFileResponse as Rr, CreateSpaceCompletionInput as Rs, LabelScopeType as Rt, BillingBalanceActivityStatus as S, BoardCameraFocus as Sa, RealtimeAppRecord as Si, SessionMessageResponse as Sn, AppAuthorizationTarget as So, SpaceFsTreeResponse as Sr, runtimeReadySchema as Ss, GlobalSearchResponse as St, BillingCheckoutActionState as T, BoardCapabilities as Ta, RealtimeRoom as Ti, SessionRecord as Tn, GenerationPolicy as To, SpaceFsUploadError as Tr, HarnessArchive as Ts, GlobalSearchViewerRelation as Tt, BillingProductPricing as U, BoardAuthoringItemSchema as Ua, DESKTOP_COMMAND_SETTLEMENT_GRACE_SECONDS as Ui, SpaceBootstrapStatus as Un, DiscordChannelConfig as Uo, SpaceRecord as Ur, ContentBlock as Us, PaletteOverviewResponse as Ut, BillingProductDisplay as V, parseBoardPlaybackPolicy as Va, DESKTOP_COMMAND_PAYLOAD_MAX_BYTES as Vi, SpaceBootstrapSource as Vn, ChannelHealthReasonCode as Vo, SpacePresenceUser as Vr, SpaceCompletionStreamEvent as Vs, ModelCatalogEntry as Vt, BillingProductPromotion as W, BoardAuthoringReadInput as Wa, DESKTOP_COMMAND_TERMINAL_TTL_SECONDS as Wi, SpaceChannelBindingInput as Wn, FeishuChannelConfig as Wo, SpaceRole as Wr, COHUB_SOURCE_HEADER as Ws, PaletteOverviewSession as Wt, BillingSubscriptionSummary as X, BoardSemanticMutation as Xa, DesktopCommandError as Xi, SpaceCommerceOrder as Xn, SessionTurnRecord as Xo, SpaceTurnListItem as Xr, isRequestSourceClientId as Xs, PromptAccessMode as Xt, BillingSubscriptionHistoryStatus as Y, BoardSemanticCommandSchema as Ya, DesktopCommandDispatchedPayload as Yi, SpaceCommerceFeatureBenefit as Yn, SessionTurnIndexItem as Yo, SpaceTurnAuthorFilter as Yr, hasRequestSourceIdentity as Ys, Permission as Yt, Channel as Z, BoardAssetRef as Za, DesktopCommandRecord as Zi, SpaceCommerceProduct as Zn, SpaceTurnsResponse$1 as Zo, SpaceTurnsResponse as Zr, isRequestSourceEmpty as Zs, PromptTemplateCatalogEntry as Zt, ApiError as _, BoardGeoKind as _a, BoardAwarenessUpdatedEvent as _i, ReferralStatus as _n, BoardCoordinateSpace as _o, SpaceFsMoveInput as _r, RuntimeTurnUserMessage as _s, CronJobUpdatePatch as _t, CohubRuntimeKind as a, parseDesktopCommand as aa, UserActivityRange as ai, ReferenceAggregateGroup as an, BoardComposition as ao, SpaceDefaultResponse as ar, RUNTIME_RECOVERY_BATCH_SIZE as as, CheckpointDiffSummary as at, BillingBalanceActivityKind as b, BoardDealParams as ba, ChannelEnvelope as bi, SendMessageCronJobPayload as bn, AppAuthorizationRequest as bo, SpaceFsReadFilesInput as br, runtimeCommandSchema as bs, GenerationUsageHourlyStat as bt, normalizeVoiceInputWebsocketUrl as c, NavigationLaunch as ca, UserProfile as ci, ReferenceDirection as cn, BoardCompositionSchema as co, SpaceFsCompleteUploadResponse as cr, RuntimeContext as cs, CreateInvitationInput as ct, resolveCohubEnvironment as d, BoardAwarenessNodePreview as da, UserSessionSourceKey as di, ReferenceQueryableType as dn, BoardTimeline as do, SpaceFsCreateUploadResponse as dr, RuntimeMessage as ds, CreateSpaceModInput as dt, DesktopOpenCommand as ea, normalizeRequestSource as ec, SpaceUsageSummary as ei, PublicUserAppItem as en, BoardEffectInputSchema as eo, SpaceConfig as er, TurnIntermediateMessagesFile as es, CheckpointDiffFileResponse as et, resolveExecutionAppId as f, BoardAwarenessStateUpdate as fa, UserSessionSpaceSummary as fi, ReferenceRecord as fn, BoardTimelineMarker as fo, SpaceFsDeleteNodeInput as fr, RuntimePendingExecution as fs, CreateSpacePromptInput as ft, AcceptInvitationResponse as g, BoardColorId as ga, AppVersionPublishedEvent as gi, ReferralReward as gn, BoardCapability as go, SpaceFsFileResponse as gr, RuntimeTurnInput as gs, CronJobRecord as gt, resolveWebsocketUrl as h, BOARD_GEO_KINDS as ha, scopeListHasPermission as hi, ReferralListItem as hn, parseBoardCompositionInput as ho, SpaceFsFileKind as hr, RuntimeStopConfirmation as hs, CronJobPayload as ht, CohubExecutionContext as i, isTerminalDesktopCommandStatus as ia, resolveRequestSourceChannel as ic, UserActivityQuery as ii, PublicUserWorkItem as in, BoardAnimationTarget as io, SpaceCreateResponse as ir, RUNTIME_PROTOCOL_VERSION as is, CheckpointDiffStatus as it, BillingCreditStatus as j, BoardPlaybackPolicy as ja, AppArtifactDescriptor as ji, SessionTurnsPaginatedResponse as jn, findGenerationModelPolicy as jo, SpaceInvitation as jr, harnessArchiveIndexSchema as js, LabelAssignmentPageInfo as jt, BillingCreditExpiryGroup as k, BoardMutationReceipt as ka, RealtimeServerEvent as ki, SessionTurnStreamSnapshotResponse as kn, encodeGenerationPolicy as ko, SpaceFsUploadResponse as kr, RuntimeArchiveSegment as ks, JsonValue as kt, normalizeWebsocketUrl as l, SpacePublicEndpoints as la, UserRulesResponse as li, ReferenceKind as ln, BoardEasing as lo, SpaceFsCreateDirectoryInput as lr, RuntimeContextMessage as ls, CreateInvitationResponse as lt, resolveVoiceInputWebsocketUrl as m, BOARD_COLOR_IDS as ma, isUserLevelPermission as mi, ReferralDashboard as mn, BoardTrackInterpolation as mo, SpaceFsEntry as mr, RuntimeStatus as ms, CreateSpaceSessionInput as mt, CohubContext as n, DesktopTarget as na, readRequestSourceFromEnv as nc, TaskRunRecord as ni, PublicUserProfile as nn, parseBoardEffectInput as no, SpaceConfigResponse as nr, LocalHarness as ns, CheckpointDiffPatchLine as nt, getCohubContext as o, resolveOpenSurface as oa, UserActivityRankings as oi, ReferenceAggregateGroupBy as on, BoardCompositionInputSchema as oo, SpaceEnvInput as or, RuntimeCapabilities as os, CheckpointRecord as ot, resolveExecutionToken as p, BoardAwarenessUpdate as pa, UserSessionsResponse as pi, ReferenceResourceType as pn, BoardTrack as po, SpaceFsEncoding as pr, RuntimeSessionRecoveryStatus as ps, CreateSpacePromptResponse as pt, BillingResponsePayload as q, BoardItemPatchSchema as qa, DesktopCall as qi, SpaceCommerceBuyerProfile as qn, SessionTurnSegmentRecord as qo, SpaceSandboxProvider as qr, RequestSource as qs, PatchResourceLabelsInput as qt, CohubEnvironment as r, isDesktopCallMethod as ra, requestSourceToHeaders as rc, USER_LEVEL_PERMISSIONS as ri, PublicUserSpaceItem as rn, BOARD_ANIMATION_CHANNEL_CAPABILITIES as ro, SpaceConfigUpdateResponse as rr, RUNTIME_MAX_FRAME_BYTES as rs, CheckpointDiffStats as rt, normalizeBaseUrl as s, NavigationCall as sa, UserActivityResponse as si, ReferenceAggregateResponse as sn, BoardCompositionPlayback as so, SpaceFsCompleteUploadInput as sr, RuntimeCommand as ss, ClaimReferralResponse as st, COHUB_ENVIRONMENTS as t, DesktopSurface as ta, parseRequestSourceFromHeaders as tc, TaskRunDetailResponse as ti, PublicUserPageResponse as tn, BoardEffectSchema as to, SpaceConfigInput as tr, HarnessKind as ts, CheckpointDiffPatchKind as tt, resolveApiBaseUrl as u, BoardAwarenessGesture as ua, UserSessionListItem as ui, ReferenceQueryResponse as un, BoardProceduralClip as uo, SpaceFsCreateUploadInput as ur, RuntimeExecutionEvent as us, CreateSpaceInput as ut, BatchUserProfilesResponse as v, BoardAnimationSpec as va, BoardChangedEvent as vi, ResourceLabelsResponse as vn, BoardRenderCost as vo, SpaceFsPreparingFile as vr, isLocalHarness as vs, CursorPageInfo as vt, BillingCatalogProduct as w, BoardCameraState as wa, RealtimePatchOperation as wi, SessionMessagesResponse as wn, GenerationParameterConstraint as wo, SpaceFsUploadEntry as wr, selectRuntimeContextMessages as ws, GlobalSearchType as wt, BillingBalanceActivityList as x, BoardDealParamsSchema as xa, LabelAssignmentsUpdatedEvent as xi, SessionBindingRecord as xn, AppAuthorizationResult as xo, SpaceFsReadFilesResponse as xr, runtimeEventSchema as xs, GenerationUsageSummary as xt, BillingBalanceActivity as y, BoardAnimationSpecSchema as ya, BoardPlaybackChangedEvent as yi, SandboxSpecId as yn, AppAuthorizationGrant as yo, SpaceFsReadFilesError as yr, resolveHarness as ys, GenerationUsageBlock as yt, BillingProductBillingInterval as z, BoardTransactionsReadInput as za, DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS as zi, SpaceActivityResponse as zn, ChannelConfig as zo, SpacePendingDiffSummary as zr, ModelThinkingLevel as zs, LabelSource as zt };
@@ -37,6 +37,7 @@ const PERMISSIONS = [
37
37
  "mod.manage",
38
38
  "space.commerce.view",
39
39
  "space.commerce.manage",
40
+ "app.manage",
40
41
  "user.space.list",
41
42
  "user.session.list",
42
43
  "user.taskrun.list",