@vibes.diy/api-svc 2.6.6 → 2.6.9

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.
@@ -2429,254 +2429,24 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2429
2429
  error?: unknown;
2430
2430
  };
2431
2431
  }, import("@vibes.diy/api-types").MsgBase<{
2432
- appSlug: string;
2433
- ownerHandle: string;
2434
- type: "vibes.diy.req-ensure-app-slug";
2432
+ type: "vibes.diy.req-get-chat-details";
2435
2433
  auth: {
2436
2434
  type: "clerk" | "device-id" | "ucan";
2437
2435
  token: string;
2438
2436
  };
2439
- mode: "dev" | "production";
2440
- env?: Record<string, string> | undefined;
2441
- runId?: string | undefined;
2442
- fileSystem: ({
2443
- filename: string;
2444
- entryPoint?: boolean | undefined;
2445
- mimetype?: string | undefined;
2446
- type: "code-block";
2447
- lang: string;
2448
- content: string;
2449
- } | {
2450
- filename: string;
2451
- entryPoint?: boolean | undefined;
2452
- mimetype?: string | undefined;
2453
- type: "code-ref";
2454
- refId: string;
2455
- } | {
2456
- filename: string;
2457
- entryPoint?: boolean | undefined;
2458
- mimetype?: string | undefined;
2459
- type: "str-asset-block";
2460
- content: string;
2461
- } | {
2462
- filename: string;
2463
- entryPoint?: boolean | undefined;
2464
- mimetype?: string | undefined;
2465
- type: "str-asset-ref";
2466
- refId: string;
2467
- } | {
2468
- filename: string;
2469
- entryPoint?: boolean | undefined;
2470
- mimetype?: string | undefined;
2471
- type: "uint8-asset-block";
2472
- content: Uint8Array<ArrayBuffer>;
2473
- } | {
2474
- filename: string;
2475
- entryPoint?: boolean | undefined;
2476
- mimetype?: string | undefined;
2477
- type: "uint8-asset-ref";
2478
- refId: string;
2479
- })[];
2480
- } | {
2481
- appSlug?: string | undefined;
2482
2437
  ownerHandle: string;
2483
- type: "vibes.diy.req-ensure-app-slug";
2484
- auth: {
2485
- type: "clerk" | "device-id" | "ucan";
2486
- token: string;
2487
- };
2488
- mode: "dev" | "production";
2489
- env?: Record<string, string> | undefined;
2490
- runId?: string | undefined;
2491
- fileSystem: ({
2492
- filename: string;
2493
- entryPoint?: boolean | undefined;
2494
- mimetype?: string | undefined;
2495
- type: "code-block";
2496
- lang: string;
2497
- content: string;
2498
- } | {
2499
- filename: string;
2500
- entryPoint?: boolean | undefined;
2501
- mimetype?: string | undefined;
2502
- type: "code-ref";
2503
- refId: string;
2504
- } | {
2505
- filename: string;
2506
- entryPoint?: boolean | undefined;
2507
- mimetype?: string | undefined;
2508
- type: "str-asset-block";
2509
- content: string;
2510
- } | {
2511
- filename: string;
2512
- entryPoint?: boolean | undefined;
2513
- mimetype?: string | undefined;
2514
- type: "str-asset-ref";
2515
- refId: string;
2516
- } | {
2517
- filename: string;
2518
- entryPoint?: boolean | undefined;
2519
- mimetype?: string | undefined;
2520
- type: "uint8-asset-block";
2521
- content: Uint8Array<ArrayBuffer>;
2522
- } | {
2523
- filename: string;
2524
- entryPoint?: boolean | undefined;
2525
- mimetype?: string | undefined;
2526
- type: "uint8-asset-ref";
2527
- refId: string;
2528
- })[];
2529
- } | {
2530
2438
  appSlug: string;
2531
- ownerHandle?: string | undefined;
2532
- type: "vibes.diy.req-ensure-app-slug";
2533
- auth: {
2534
- type: "clerk" | "device-id" | "ucan";
2535
- token: string;
2536
- };
2537
- mode: "dev" | "production";
2538
- env?: Record<string, string> | undefined;
2539
- runId?: string | undefined;
2540
- fileSystem: ({
2541
- filename: string;
2542
- entryPoint?: boolean | undefined;
2543
- mimetype?: string | undefined;
2544
- type: "code-block";
2545
- lang: string;
2546
- content: string;
2547
- } | {
2548
- filename: string;
2549
- entryPoint?: boolean | undefined;
2550
- mimetype?: string | undefined;
2551
- type: "code-ref";
2552
- refId: string;
2553
- } | {
2554
- filename: string;
2555
- entryPoint?: boolean | undefined;
2556
- mimetype?: string | undefined;
2557
- type: "str-asset-block";
2558
- content: string;
2559
- } | {
2560
- filename: string;
2561
- entryPoint?: boolean | undefined;
2562
- mimetype?: string | undefined;
2563
- type: "str-asset-ref";
2564
- refId: string;
2565
- } | {
2566
- filename: string;
2567
- entryPoint?: boolean | undefined;
2568
- mimetype?: string | undefined;
2569
- type: "uint8-asset-block";
2570
- content: Uint8Array<ArrayBuffer>;
2571
- } | {
2572
- filename: string;
2573
- entryPoint?: boolean | undefined;
2574
- mimetype?: string | undefined;
2575
- type: "uint8-asset-ref";
2576
- refId: string;
2577
- })[];
2578
- } | {
2579
- appSlug?: string | undefined;
2580
- ownerHandle?: string | undefined;
2581
- type: "vibes.diy.req-ensure-app-slug";
2582
- auth: {
2583
- type: "clerk" | "device-id" | "ucan";
2584
- token: string;
2585
- };
2586
- mode: "dev" | "production";
2587
- env?: Record<string, string> | undefined;
2588
- runId?: string | undefined;
2589
- fileSystem: ({
2590
- filename: string;
2591
- entryPoint?: boolean | undefined;
2592
- mimetype?: string | undefined;
2593
- type: "code-block";
2594
- lang: string;
2595
- content: string;
2596
- } | {
2597
- filename: string;
2598
- entryPoint?: boolean | undefined;
2599
- mimetype?: string | undefined;
2600
- type: "code-ref";
2601
- refId: string;
2602
- } | {
2603
- filename: string;
2604
- entryPoint?: boolean | undefined;
2605
- mimetype?: string | undefined;
2606
- type: "str-asset-block";
2607
- content: string;
2608
- } | {
2609
- filename: string;
2610
- entryPoint?: boolean | undefined;
2611
- mimetype?: string | undefined;
2612
- type: "str-asset-ref";
2613
- refId: string;
2614
- } | {
2615
- filename: string;
2616
- entryPoint?: boolean | undefined;
2617
- mimetype?: string | undefined;
2618
- type: "uint8-asset-block";
2619
- content: Uint8Array<ArrayBuffer>;
2620
- } | {
2621
- filename: string;
2622
- entryPoint?: boolean | undefined;
2623
- mimetype?: string | undefined;
2624
- type: "uint8-asset-ref";
2625
- refId: string;
2626
- })[];
2439
+ chatId?: string | undefined;
2627
2440
  }>, {
2628
- appSlug: string;
2441
+ type: "vibes.diy.res-get-chat-details";
2442
+ chatId?: string | undefined;
2629
2443
  ownerHandle: string;
2630
- mode: "dev" | "production";
2631
- fsId: string;
2632
- type: "vibes.diy.res-ensure-app-slug";
2633
- env: Record<string, string>;
2634
- fileSystem: {
2635
- fileName: string;
2636
- mimeType: string;
2637
- assetId: string;
2638
- assetURI: string;
2639
- transform?: {
2640
- type: "jsx-to-js";
2641
- transformedAssetId: string;
2642
- } | {
2643
- type: "imports";
2644
- importMapAssetId: string;
2645
- } | {
2646
- type: "import-map";
2647
- fromAssetIds: string[];
2648
- } | {
2649
- type: "transformed";
2650
- action: "jsx-to-js";
2651
- transformedAssetId: string;
2652
- } | undefined;
2653
- entryPoint?: boolean | undefined;
2654
- size: number;
2444
+ appSlug: string;
2445
+ prompts: {
2446
+ prompt: string;
2447
+ fsId: string;
2448
+ created: string;
2655
2449
  }[];
2656
- } | {
2657
- type: "vibes.diy.res-error";
2658
- error: {
2659
- message: string;
2660
- code: "require-login";
2661
- };
2662
- } | {
2663
- type: "vibes.diy.res-error";
2664
- error: {
2665
- message: string;
2666
- code: "user-slug-invalid";
2667
- };
2668
- } | {
2669
- type: "vibes.diy.res-error";
2670
- error: {
2671
- message: string;
2672
- code: "app-slug-invalid";
2673
- };
2674
- } | {
2675
- type: "vibes.diy.res-error";
2676
- error: {
2677
- message: string;
2678
- code: "max-app-slugs-reached";
2679
- };
2680
2450
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2681
2451
  type: "MessageEvent";
2682
2452
  event: {
@@ -2703,455 +2473,81 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2703
2473
  error?: unknown;
2704
2474
  };
2705
2475
  }, import("@vibes.diy/api-types").MsgBase<{
2706
- type: "vibes.diy.req-open-chat";
2476
+ type: "vibes.diy.req-get-chat-response";
2707
2477
  auth: {
2708
2478
  type: "clerk" | "device-id" | "ucan";
2709
2479
  token: string;
2710
2480
  };
2711
- appSlug?: string | undefined;
2712
- ownerHandle?: string | undefined;
2481
+ ownerHandle: string;
2482
+ appSlug: string;
2713
2483
  chatId?: string | undefined;
2714
- prompt?: string | undefined;
2715
- dryRun?: boolean | undefined;
2716
- mode: "app" | "chat" | "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
2484
+ promptId?: string | undefined;
2717
2485
  }>, {
2718
- type: "vibes.diy.res-open-chat";
2719
- appSlug: string;
2486
+ type: "vibes.diy.res-get-chat-response";
2487
+ chatId?: string | undefined;
2720
2488
  ownerHandle: string;
2721
- chatId: string;
2722
- mode: "app" | "chat" | "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
2723
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2724
- type: "MessageEvent";
2725
- event: {
2726
- data?: unknown;
2727
- origin?: string | null | undefined;
2728
- lastEventId?: string | undefined;
2729
- source?: unknown;
2730
- ports?: unknown;
2731
- };
2732
- } | {
2733
- type: "CloseEvent";
2734
- event: {
2735
- wasClean: boolean;
2736
- code: number;
2737
- reason: string;
2738
- };
2739
- } | {
2740
- type: "ErrorEvent";
2741
- event: {
2742
- message?: string | undefined;
2743
- filename?: string | undefined;
2744
- lineno?: number | undefined;
2745
- colno?: number | undefined;
2746
- error?: unknown;
2747
- };
2748
- }, import("@vibes.diy/api-types").MsgBase<{
2749
- type: "vibes.diy.req-prompt-chat-section";
2750
- mode: "chat" | "codegen";
2751
- auth: {
2752
- type: "clerk" | "device-id" | "ucan";
2753
- token: string;
2754
- };
2755
- chatId: string;
2756
- outerTid: string;
2757
- prompt: {
2758
- model?: string | undefined;
2759
- messages: {
2760
- role: "assistant" | "system" | "user";
2761
- content: ({
2762
- type: "text";
2763
- text: string;
2489
+ appSlug: string;
2490
+ turns: {
2491
+ chatId: string;
2492
+ promptId: string;
2493
+ created: string;
2494
+ fsId?: string | undefined;
2495
+ sections: {
2496
+ blockSeq: number;
2497
+ blocks: ({
2498
+ blockId: string;
2499
+ streamId: string;
2500
+ seq: number;
2501
+ blockNr: number;
2502
+ timestamp: Date;
2503
+ type: "block.begin";
2764
2504
  } | {
2765
- type: "image_url";
2766
- image_url: {
2767
- url: string;
2505
+ blockId: string;
2506
+ streamId: string;
2507
+ seq: number;
2508
+ blockNr: number;
2509
+ timestamp: Date;
2510
+ type: "block.end";
2511
+ stats: {
2512
+ toplevel: {
2513
+ lines: number;
2514
+ bytes: number;
2515
+ cnt?: number | undefined;
2516
+ };
2517
+ code: {
2518
+ lines: number;
2519
+ bytes: number;
2520
+ cnt?: number | undefined;
2521
+ };
2522
+ image: {
2523
+ lines: number;
2524
+ bytes: number;
2525
+ cnt?: number | undefined;
2526
+ };
2527
+ total: {
2528
+ lines: number;
2529
+ bytes: number;
2530
+ cnt?: number | undefined;
2531
+ };
2768
2532
  };
2769
- })[];
2770
- }[];
2771
- stream?: boolean | undefined;
2772
- temperature?: number | undefined;
2773
- max_tokens?: number | undefined;
2774
- top_p?: number | undefined;
2775
- logprobs?: boolean | undefined;
2776
- top_logsprobs?: number | undefined;
2777
- frequency_penalty?: number | undefined;
2778
- presence_penalty?: number | undefined;
2779
- stop?: string | string[] | undefined;
2780
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2781
- modalities?: string[] | undefined;
2782
- };
2783
- dryRun?: boolean | undefined;
2784
- dryRunPreAllocate?: boolean | undefined;
2785
- ownerHandle?: string | undefined;
2786
- appSlug?: string | undefined;
2787
- selected?: {
2788
- kind: "version";
2789
- fsId: string;
2790
- } | {
2791
- kind: "draft";
2792
- files: ({
2793
- filename: string;
2794
- entryPoint?: boolean | undefined;
2795
- mimetype?: string | undefined;
2796
- type: "code-block";
2797
- lang: string;
2798
- content: string;
2799
- } | {
2800
- filename: string;
2801
- entryPoint?: boolean | undefined;
2802
- mimetype?: string | undefined;
2803
- type: "code-ref";
2804
- refId: string;
2805
- } | {
2806
- filename: string;
2807
- entryPoint?: boolean | undefined;
2808
- mimetype?: string | undefined;
2809
- type: "str-asset-block";
2810
- content: string;
2811
- } | {
2812
- filename: string;
2813
- entryPoint?: boolean | undefined;
2814
- mimetype?: string | undefined;
2815
- type: "str-asset-ref";
2816
- refId: string;
2817
- } | {
2818
- filename: string;
2819
- entryPoint?: boolean | undefined;
2820
- mimetype?: string | undefined;
2821
- type: "uint8-asset-block";
2822
- content: Uint8Array<ArrayBuffer>;
2823
- } | {
2824
- filename: string;
2825
- entryPoint?: boolean | undefined;
2826
- mimetype?: string | undefined;
2827
- type: "uint8-asset-ref";
2828
- refId: string;
2829
- })[];
2830
- } | undefined;
2831
- slots?: {
2832
- original?: "off" | "on" | undefined;
2833
- selected?: "off" | "on" | undefined;
2834
- last_edit?: "off" | "on" | undefined;
2835
- previous?: "off" | "on" | undefined;
2836
- compaction?: "off" | "on" | undefined;
2837
- } | undefined;
2838
- focusPath?: string | undefined;
2839
- } | {
2840
- type: "vibes.diy.req-prompt-chat-section";
2841
- mode: "app" | "runtime";
2842
- auth: {
2843
- type: "clerk" | "device-id" | "ucan";
2844
- token: string;
2845
- };
2846
- chatId: string;
2847
- outerTid: string;
2848
- prompt: {
2849
- model?: string | undefined;
2850
- messages: {
2851
- role: "assistant" | "system" | "user";
2852
- content: ({
2853
- type: "text";
2854
- text: string;
2855
- } | {
2856
- type: "image_url";
2857
- image_url: {
2858
- url: string;
2533
+ usage: {
2534
+ given: {
2535
+ prompt_tokens: number;
2536
+ completion_tokens: number;
2537
+ total_tokens: number;
2538
+ }[];
2539
+ calculated: {
2540
+ prompt_tokens: number;
2541
+ completion_tokens: number;
2542
+ total_tokens: number;
2543
+ };
2859
2544
  };
2860
- })[];
2861
- }[];
2862
- stream?: boolean | undefined;
2863
- temperature?: number | undefined;
2864
- max_tokens?: number | undefined;
2865
- top_p?: number | undefined;
2866
- logprobs?: boolean | undefined;
2867
- top_logsprobs?: number | undefined;
2868
- frequency_penalty?: number | undefined;
2869
- presence_penalty?: number | undefined;
2870
- stop?: string | string[] | undefined;
2871
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2872
- modalities?: string[] | undefined;
2873
- };
2874
- } | {
2875
- type: "vibes.diy.req-prompt-chat-section";
2876
- mode: "img";
2877
- auth: {
2878
- type: "clerk" | "device-id" | "ucan";
2879
- token: string;
2880
- };
2881
- chatId: string;
2882
- outerTid: string;
2883
- prompt: {
2884
- model?: string | undefined;
2885
- messages: {
2886
- role: "assistant" | "system" | "user";
2887
- content: ({
2888
- type: "text";
2889
- text: string;
2890
- } | {
2891
- type: "image_url";
2892
- image_url: {
2893
- url: string;
2894
- };
2895
- })[];
2896
- }[];
2897
- stream?: boolean | undefined;
2898
- temperature?: number | undefined;
2899
- max_tokens?: number | undefined;
2900
- top_p?: number | undefined;
2901
- logprobs?: boolean | undefined;
2902
- top_logsprobs?: number | undefined;
2903
- frequency_penalty?: number | undefined;
2904
- presence_penalty?: number | undefined;
2905
- stop?: string | string[] | undefined;
2906
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2907
- modalities?: string[] | undefined;
2908
- };
2909
- inputImageBase64?: string | undefined;
2910
- } | {
2911
- type: "vibes.diy.req-prompt-chat-section";
2912
- mode: "fs-update";
2913
- auth: {
2914
- type: "clerk" | "device-id" | "ucan";
2915
- token: string;
2916
- };
2917
- chatId: string;
2918
- outerTid: string;
2919
- refFsId?: string | undefined;
2920
- fsUpdate: {
2921
- update: ({
2922
- filename: string;
2923
- entryPoint?: boolean | undefined;
2924
- mimetype?: string | undefined;
2925
- type: "code-block";
2926
- lang: string;
2927
- content: string;
2928
- } | {
2929
- filename: string;
2930
- entryPoint?: boolean | undefined;
2931
- mimetype?: string | undefined;
2932
- type: "code-ref";
2933
- refId: string;
2934
- } | {
2935
- filename: string;
2936
- entryPoint?: boolean | undefined;
2937
- mimetype?: string | undefined;
2938
- type: "str-asset-block";
2939
- content: string;
2940
- } | {
2941
- filename: string;
2942
- entryPoint?: boolean | undefined;
2943
- mimetype?: string | undefined;
2944
- type: "str-asset-ref";
2945
- refId: string;
2946
- } | {
2947
- filename: string;
2948
- entryPoint?: boolean | undefined;
2949
- mimetype?: string | undefined;
2950
- type: "uint8-asset-block";
2951
- content: Uint8Array<ArrayBuffer>;
2952
- } | {
2953
- filename: string;
2954
- entryPoint?: boolean | undefined;
2955
- mimetype?: string | undefined;
2956
- type: "uint8-asset-ref";
2957
- refId: string;
2958
- })[];
2959
- remove: {
2960
- filename: string;
2961
- }[];
2962
- };
2963
- } | {
2964
- type: "vibes.diy.req-prompt-chat-section";
2965
- mode: "fs-set";
2966
- auth: {
2967
- type: "clerk" | "device-id" | "ucan";
2968
- token: string;
2969
- };
2970
- chatId: string;
2971
- outerTid: string;
2972
- fsSet: ({
2973
- filename: string;
2974
- entryPoint?: boolean | undefined;
2975
- mimetype?: string | undefined;
2976
- type: "code-block";
2977
- lang: string;
2978
- content: string;
2979
- } | {
2980
- filename: string;
2981
- entryPoint?: boolean | undefined;
2982
- mimetype?: string | undefined;
2983
- type: "code-ref";
2984
- refId: string;
2985
- } | {
2986
- filename: string;
2987
- entryPoint?: boolean | undefined;
2988
- mimetype?: string | undefined;
2989
- type: "str-asset-block";
2990
- content: string;
2991
- } | {
2992
- filename: string;
2993
- entryPoint?: boolean | undefined;
2994
- mimetype?: string | undefined;
2995
- type: "str-asset-ref";
2996
- refId: string;
2997
- } | {
2998
- filename: string;
2999
- entryPoint?: boolean | undefined;
3000
- mimetype?: string | undefined;
3001
- type: "uint8-asset-block";
3002
- content: Uint8Array<ArrayBuffer>;
3003
- } | {
3004
- filename: string;
3005
- entryPoint?: boolean | undefined;
3006
- mimetype?: string | undefined;
3007
- type: "uint8-asset-ref";
3008
- refId: string;
3009
- })[];
3010
- }>, import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3011
- type: "MessageEvent";
3012
- event: {
3013
- data?: unknown;
3014
- origin?: string | null | undefined;
3015
- lastEventId?: string | undefined;
3016
- source?: unknown;
3017
- ports?: unknown;
3018
- };
3019
- } | {
3020
- type: "CloseEvent";
3021
- event: {
3022
- wasClean: boolean;
3023
- code: number;
3024
- reason: string;
3025
- };
3026
- } | {
3027
- type: "ErrorEvent";
3028
- event: {
3029
- message?: string | undefined;
3030
- filename?: string | undefined;
3031
- lineno?: number | undefined;
3032
- colno?: number | undefined;
3033
- error?: unknown;
3034
- };
3035
- }, import("@vibes.diy/api-types").MsgBase<{
3036
- type: "vibes.diy.req-get-chat-details";
3037
- auth: {
3038
- type: "clerk" | "device-id" | "ucan";
3039
- token: string;
3040
- };
3041
- ownerHandle: string;
3042
- appSlug: string;
3043
- chatId?: string | undefined;
3044
- }>, {
3045
- type: "vibes.diy.res-get-chat-details";
3046
- chatId?: string | undefined;
3047
- ownerHandle: string;
3048
- appSlug: string;
3049
- prompts: {
3050
- prompt: string;
3051
- fsId: string;
3052
- created: string;
3053
- }[];
3054
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3055
- type: "MessageEvent";
3056
- event: {
3057
- data?: unknown;
3058
- origin?: string | null | undefined;
3059
- lastEventId?: string | undefined;
3060
- source?: unknown;
3061
- ports?: unknown;
3062
- };
3063
- } | {
3064
- type: "CloseEvent";
3065
- event: {
3066
- wasClean: boolean;
3067
- code: number;
3068
- reason: string;
3069
- };
3070
- } | {
3071
- type: "ErrorEvent";
3072
- event: {
3073
- message?: string | undefined;
3074
- filename?: string | undefined;
3075
- lineno?: number | undefined;
3076
- colno?: number | undefined;
3077
- error?: unknown;
3078
- };
3079
- }, import("@vibes.diy/api-types").MsgBase<{
3080
- type: "vibes.diy.req-get-chat-response";
3081
- auth: {
3082
- type: "clerk" | "device-id" | "ucan";
3083
- token: string;
3084
- };
3085
- ownerHandle: string;
3086
- appSlug: string;
3087
- chatId?: string | undefined;
3088
- promptId?: string | undefined;
3089
- }>, {
3090
- type: "vibes.diy.res-get-chat-response";
3091
- chatId?: string | undefined;
3092
- ownerHandle: string;
3093
- appSlug: string;
3094
- turns: {
3095
- chatId: string;
3096
- promptId: string;
3097
- created: string;
3098
- fsId?: string | undefined;
3099
- sections: {
3100
- blockSeq: number;
3101
- blocks: ({
3102
- blockId: string;
3103
- streamId: string;
3104
- seq: number;
3105
- blockNr: number;
3106
- timestamp: Date;
3107
- type: "block.begin";
3108
- } | {
3109
- blockId: string;
3110
- streamId: string;
3111
- seq: number;
3112
- blockNr: number;
3113
- timestamp: Date;
3114
- type: "block.end";
3115
- stats: {
3116
- toplevel: {
3117
- lines: number;
3118
- bytes: number;
3119
- cnt?: number | undefined;
3120
- };
3121
- code: {
3122
- lines: number;
3123
- bytes: number;
3124
- cnt?: number | undefined;
3125
- };
3126
- image: {
3127
- lines: number;
3128
- bytes: number;
3129
- cnt?: number | undefined;
3130
- };
3131
- total: {
3132
- lines: number;
3133
- bytes: number;
3134
- cnt?: number | undefined;
3135
- };
3136
- };
3137
- usage: {
3138
- given: {
3139
- prompt_tokens: number;
3140
- completion_tokens: number;
3141
- total_tokens: number;
3142
- }[];
3143
- calculated: {
3144
- prompt_tokens: number;
3145
- completion_tokens: number;
3146
- total_tokens: number;
3147
- };
3148
- };
3149
- fsRef?: {
3150
- appSlug: string;
3151
- mode: "dev" | "production";
3152
- fsId: string;
3153
- ownerHandle: string;
3154
- } | undefined;
2545
+ fsRef?: {
2546
+ appSlug: string;
2547
+ mode: "dev" | "production";
2548
+ fsId: string;
2549
+ ownerHandle: string;
2550
+ } | undefined;
3155
2551
  } | {
3156
2552
  blockId: string;
3157
2553
  streamId: string;
@@ -3437,99 +2833,703 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
3437
2833
  refId: string;
3438
2834
  })[];
3439
2835
  } | {
3440
- streamId: string;
3441
- chatId: string;
3442
- seq: number;
3443
- timestamp: Date;
3444
- type: "prompt.dry-run-payload";
3445
- request: {
3446
- model?: string | undefined;
3447
- messages: {
3448
- role: "assistant" | "system" | "user";
3449
- content: ({
3450
- type: "text";
3451
- text: string;
3452
- } | {
3453
- type: "image_url";
3454
- image_url: {
3455
- url: string;
3456
- };
3457
- })[];
3458
- }[];
3459
- stream?: boolean | undefined;
3460
- temperature?: number | undefined;
3461
- max_tokens?: number | undefined;
3462
- top_p?: number | undefined;
3463
- logprobs?: boolean | undefined;
3464
- top_logsprobs?: number | undefined;
3465
- frequency_penalty?: number | undefined;
3466
- presence_penalty?: number | undefined;
3467
- stop?: string | string[] | undefined;
3468
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
3469
- modalities?: string[] | undefined;
2836
+ streamId: string;
2837
+ chatId: string;
2838
+ seq: number;
2839
+ timestamp: Date;
2840
+ type: "prompt.dry-run-payload";
2841
+ request: {
2842
+ model?: string | undefined;
2843
+ messages: {
2844
+ role: "assistant" | "system" | "user";
2845
+ content: ({
2846
+ type: "text";
2847
+ text: string;
2848
+ } | {
2849
+ type: "image_url";
2850
+ image_url: {
2851
+ url: string;
2852
+ };
2853
+ })[];
2854
+ }[];
2855
+ stream?: boolean | undefined;
2856
+ temperature?: number | undefined;
2857
+ max_tokens?: number | undefined;
2858
+ top_p?: number | undefined;
2859
+ logprobs?: boolean | undefined;
2860
+ top_logsprobs?: number | undefined;
2861
+ frequency_penalty?: number | undefined;
2862
+ presence_penalty?: number | undefined;
2863
+ stop?: string | string[] | undefined;
2864
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2865
+ modalities?: string[] | undefined;
2866
+ };
2867
+ } | {
2868
+ streamId: string;
2869
+ chatId: string;
2870
+ seq: number;
2871
+ timestamp: Date;
2872
+ type: "prompt.model-resolved";
2873
+ model: string;
2874
+ } | {
2875
+ streamId: string;
2876
+ chatId: string;
2877
+ seq: number;
2878
+ timestamp: Date;
2879
+ type: "prompt.raw";
2880
+ text: string;
2881
+ })[];
2882
+ }[];
2883
+ }[];
2884
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2885
+ type: "MessageEvent";
2886
+ event: {
2887
+ data?: unknown;
2888
+ origin?: string | null | undefined;
2889
+ lastEventId?: string | undefined;
2890
+ source?: unknown;
2891
+ ports?: unknown;
2892
+ };
2893
+ } | {
2894
+ type: "CloseEvent";
2895
+ event: {
2896
+ wasClean: boolean;
2897
+ code: number;
2898
+ reason: string;
2899
+ };
2900
+ } | {
2901
+ type: "ErrorEvent";
2902
+ event: {
2903
+ message?: string | undefined;
2904
+ filename?: string | undefined;
2905
+ lineno?: number | undefined;
2906
+ colno?: number | undefined;
2907
+ error?: unknown;
2908
+ };
2909
+ }, import("@vibes.diy/api-types").MsgBase<{
2910
+ type: "vibes.diy.req-list-application-chats";
2911
+ auth: {
2912
+ type: "clerk" | "device-id" | "ucan";
2913
+ token: string;
2914
+ };
2915
+ appSlug?: string | undefined;
2916
+ ownerHandle?: string | undefined;
2917
+ limit?: number | undefined;
2918
+ cursor?: string | undefined;
2919
+ }>, {
2920
+ type: "vibes.diy.res-list-application-chats";
2921
+ items: {
2922
+ chatId: string;
2923
+ appSlug: string;
2924
+ ownerHandle: string;
2925
+ created: string;
2926
+ }[];
2927
+ nextCursor?: string | undefined;
2928
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2929
+ type: "MessageEvent";
2930
+ event: {
2931
+ data?: unknown;
2932
+ origin?: string | null | undefined;
2933
+ lastEventId?: string | undefined;
2934
+ source?: unknown;
2935
+ ports?: unknown;
2936
+ };
2937
+ } | {
2938
+ type: "CloseEvent";
2939
+ event: {
2940
+ wasClean: boolean;
2941
+ code: number;
2942
+ reason: string;
2943
+ };
2944
+ } | {
2945
+ type: "ErrorEvent";
2946
+ event: {
2947
+ message?: string | undefined;
2948
+ filename?: string | undefined;
2949
+ lineno?: number | undefined;
2950
+ colno?: number | undefined;
2951
+ error?: unknown;
2952
+ };
2953
+ }, import("@vibes.diy/api-types").MsgBase<{
2954
+ appSlug: string;
2955
+ ownerHandle: string;
2956
+ type: "vibes.diy.req-ensure-app-slug";
2957
+ auth: {
2958
+ type: "clerk" | "device-id" | "ucan";
2959
+ token: string;
2960
+ };
2961
+ mode: "dev" | "production";
2962
+ env?: Record<string, string> | undefined;
2963
+ runId?: string | undefined;
2964
+ fileSystem: ({
2965
+ filename: string;
2966
+ entryPoint?: boolean | undefined;
2967
+ mimetype?: string | undefined;
2968
+ type: "code-block";
2969
+ lang: string;
2970
+ content: string;
2971
+ } | {
2972
+ filename: string;
2973
+ entryPoint?: boolean | undefined;
2974
+ mimetype?: string | undefined;
2975
+ type: "code-ref";
2976
+ refId: string;
2977
+ } | {
2978
+ filename: string;
2979
+ entryPoint?: boolean | undefined;
2980
+ mimetype?: string | undefined;
2981
+ type: "str-asset-block";
2982
+ content: string;
2983
+ } | {
2984
+ filename: string;
2985
+ entryPoint?: boolean | undefined;
2986
+ mimetype?: string | undefined;
2987
+ type: "str-asset-ref";
2988
+ refId: string;
2989
+ } | {
2990
+ filename: string;
2991
+ entryPoint?: boolean | undefined;
2992
+ mimetype?: string | undefined;
2993
+ type: "uint8-asset-block";
2994
+ content: Uint8Array<ArrayBuffer>;
2995
+ } | {
2996
+ filename: string;
2997
+ entryPoint?: boolean | undefined;
2998
+ mimetype?: string | undefined;
2999
+ type: "uint8-asset-ref";
3000
+ refId: string;
3001
+ })[];
3002
+ } | {
3003
+ appSlug?: string | undefined;
3004
+ ownerHandle: string;
3005
+ type: "vibes.diy.req-ensure-app-slug";
3006
+ auth: {
3007
+ type: "clerk" | "device-id" | "ucan";
3008
+ token: string;
3009
+ };
3010
+ mode: "dev" | "production";
3011
+ env?: Record<string, string> | undefined;
3012
+ runId?: string | undefined;
3013
+ fileSystem: ({
3014
+ filename: string;
3015
+ entryPoint?: boolean | undefined;
3016
+ mimetype?: string | undefined;
3017
+ type: "code-block";
3018
+ lang: string;
3019
+ content: string;
3020
+ } | {
3021
+ filename: string;
3022
+ entryPoint?: boolean | undefined;
3023
+ mimetype?: string | undefined;
3024
+ type: "code-ref";
3025
+ refId: string;
3026
+ } | {
3027
+ filename: string;
3028
+ entryPoint?: boolean | undefined;
3029
+ mimetype?: string | undefined;
3030
+ type: "str-asset-block";
3031
+ content: string;
3032
+ } | {
3033
+ filename: string;
3034
+ entryPoint?: boolean | undefined;
3035
+ mimetype?: string | undefined;
3036
+ type: "str-asset-ref";
3037
+ refId: string;
3038
+ } | {
3039
+ filename: string;
3040
+ entryPoint?: boolean | undefined;
3041
+ mimetype?: string | undefined;
3042
+ type: "uint8-asset-block";
3043
+ content: Uint8Array<ArrayBuffer>;
3044
+ } | {
3045
+ filename: string;
3046
+ entryPoint?: boolean | undefined;
3047
+ mimetype?: string | undefined;
3048
+ type: "uint8-asset-ref";
3049
+ refId: string;
3050
+ })[];
3051
+ } | {
3052
+ appSlug: string;
3053
+ ownerHandle?: string | undefined;
3054
+ type: "vibes.diy.req-ensure-app-slug";
3055
+ auth: {
3056
+ type: "clerk" | "device-id" | "ucan";
3057
+ token: string;
3058
+ };
3059
+ mode: "dev" | "production";
3060
+ env?: Record<string, string> | undefined;
3061
+ runId?: string | undefined;
3062
+ fileSystem: ({
3063
+ filename: string;
3064
+ entryPoint?: boolean | undefined;
3065
+ mimetype?: string | undefined;
3066
+ type: "code-block";
3067
+ lang: string;
3068
+ content: string;
3069
+ } | {
3070
+ filename: string;
3071
+ entryPoint?: boolean | undefined;
3072
+ mimetype?: string | undefined;
3073
+ type: "code-ref";
3074
+ refId: string;
3075
+ } | {
3076
+ filename: string;
3077
+ entryPoint?: boolean | undefined;
3078
+ mimetype?: string | undefined;
3079
+ type: "str-asset-block";
3080
+ content: string;
3081
+ } | {
3082
+ filename: string;
3083
+ entryPoint?: boolean | undefined;
3084
+ mimetype?: string | undefined;
3085
+ type: "str-asset-ref";
3086
+ refId: string;
3087
+ } | {
3088
+ filename: string;
3089
+ entryPoint?: boolean | undefined;
3090
+ mimetype?: string | undefined;
3091
+ type: "uint8-asset-block";
3092
+ content: Uint8Array<ArrayBuffer>;
3093
+ } | {
3094
+ filename: string;
3095
+ entryPoint?: boolean | undefined;
3096
+ mimetype?: string | undefined;
3097
+ type: "uint8-asset-ref";
3098
+ refId: string;
3099
+ })[];
3100
+ } | {
3101
+ appSlug?: string | undefined;
3102
+ ownerHandle?: string | undefined;
3103
+ type: "vibes.diy.req-ensure-app-slug";
3104
+ auth: {
3105
+ type: "clerk" | "device-id" | "ucan";
3106
+ token: string;
3107
+ };
3108
+ mode: "dev" | "production";
3109
+ env?: Record<string, string> | undefined;
3110
+ runId?: string | undefined;
3111
+ fileSystem: ({
3112
+ filename: string;
3113
+ entryPoint?: boolean | undefined;
3114
+ mimetype?: string | undefined;
3115
+ type: "code-block";
3116
+ lang: string;
3117
+ content: string;
3118
+ } | {
3119
+ filename: string;
3120
+ entryPoint?: boolean | undefined;
3121
+ mimetype?: string | undefined;
3122
+ type: "code-ref";
3123
+ refId: string;
3124
+ } | {
3125
+ filename: string;
3126
+ entryPoint?: boolean | undefined;
3127
+ mimetype?: string | undefined;
3128
+ type: "str-asset-block";
3129
+ content: string;
3130
+ } | {
3131
+ filename: string;
3132
+ entryPoint?: boolean | undefined;
3133
+ mimetype?: string | undefined;
3134
+ type: "str-asset-ref";
3135
+ refId: string;
3136
+ } | {
3137
+ filename: string;
3138
+ entryPoint?: boolean | undefined;
3139
+ mimetype?: string | undefined;
3140
+ type: "uint8-asset-block";
3141
+ content: Uint8Array<ArrayBuffer>;
3142
+ } | {
3143
+ filename: string;
3144
+ entryPoint?: boolean | undefined;
3145
+ mimetype?: string | undefined;
3146
+ type: "uint8-asset-ref";
3147
+ refId: string;
3148
+ })[];
3149
+ }>, {
3150
+ appSlug: string;
3151
+ ownerHandle: string;
3152
+ mode: "dev" | "production";
3153
+ fsId: string;
3154
+ type: "vibes.diy.res-ensure-app-slug";
3155
+ env: Record<string, string>;
3156
+ fileSystem: {
3157
+ fileName: string;
3158
+ mimeType: string;
3159
+ assetId: string;
3160
+ assetURI: string;
3161
+ transform?: {
3162
+ type: "jsx-to-js";
3163
+ transformedAssetId: string;
3164
+ } | {
3165
+ type: "imports";
3166
+ importMapAssetId: string;
3167
+ } | {
3168
+ type: "import-map";
3169
+ fromAssetIds: string[];
3170
+ } | {
3171
+ type: "transformed";
3172
+ action: "jsx-to-js";
3173
+ transformedAssetId: string;
3174
+ } | undefined;
3175
+ entryPoint?: boolean | undefined;
3176
+ size: number;
3177
+ }[];
3178
+ } | {
3179
+ type: "vibes.diy.res-error";
3180
+ error: {
3181
+ message: string;
3182
+ code: "require-login";
3183
+ };
3184
+ } | {
3185
+ type: "vibes.diy.res-error";
3186
+ error: {
3187
+ message: string;
3188
+ code: "user-slug-invalid";
3189
+ };
3190
+ } | {
3191
+ type: "vibes.diy.res-error";
3192
+ error: {
3193
+ message: string;
3194
+ code: "app-slug-invalid";
3195
+ };
3196
+ } | {
3197
+ type: "vibes.diy.res-error";
3198
+ error: {
3199
+ message: string;
3200
+ code: "max-app-slugs-reached";
3201
+ };
3202
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3203
+ type: "MessageEvent";
3204
+ event: {
3205
+ data?: unknown;
3206
+ origin?: string | null | undefined;
3207
+ lastEventId?: string | undefined;
3208
+ source?: unknown;
3209
+ ports?: unknown;
3210
+ };
3211
+ } | {
3212
+ type: "CloseEvent";
3213
+ event: {
3214
+ wasClean: boolean;
3215
+ code: number;
3216
+ reason: string;
3217
+ };
3218
+ } | {
3219
+ type: "ErrorEvent";
3220
+ event: {
3221
+ message?: string | undefined;
3222
+ filename?: string | undefined;
3223
+ lineno?: number | undefined;
3224
+ colno?: number | undefined;
3225
+ error?: unknown;
3226
+ };
3227
+ }, import("@vibes.diy/api-types").MsgBase<{
3228
+ type: "vibes.diy.req-open-chat";
3229
+ auth: {
3230
+ type: "clerk" | "device-id" | "ucan";
3231
+ token: string;
3232
+ };
3233
+ appSlug?: string | undefined;
3234
+ ownerHandle?: string | undefined;
3235
+ chatId?: string | undefined;
3236
+ prompt?: string | undefined;
3237
+ dryRun?: boolean | undefined;
3238
+ mode: "app" | "chat" | "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
3239
+ }>, {
3240
+ type: "vibes.diy.res-open-chat";
3241
+ appSlug: string;
3242
+ ownerHandle: string;
3243
+ chatId: string;
3244
+ mode: "app" | "chat" | "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
3245
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3246
+ type: "MessageEvent";
3247
+ event: {
3248
+ data?: unknown;
3249
+ origin?: string | null | undefined;
3250
+ lastEventId?: string | undefined;
3251
+ source?: unknown;
3252
+ ports?: unknown;
3253
+ };
3254
+ } | {
3255
+ type: "CloseEvent";
3256
+ event: {
3257
+ wasClean: boolean;
3258
+ code: number;
3259
+ reason: string;
3260
+ };
3261
+ } | {
3262
+ type: "ErrorEvent";
3263
+ event: {
3264
+ message?: string | undefined;
3265
+ filename?: string | undefined;
3266
+ lineno?: number | undefined;
3267
+ colno?: number | undefined;
3268
+ error?: unknown;
3269
+ };
3270
+ }, import("@vibes.diy/api-types").MsgBase<{
3271
+ type: "vibes.diy.req-prompt-chat-section";
3272
+ mode: "chat" | "codegen";
3273
+ auth: {
3274
+ type: "clerk" | "device-id" | "ucan";
3275
+ token: string;
3276
+ };
3277
+ chatId: string;
3278
+ outerTid: string;
3279
+ prompt: {
3280
+ model?: string | undefined;
3281
+ messages: {
3282
+ role: "assistant" | "system" | "user";
3283
+ content: ({
3284
+ type: "text";
3285
+ text: string;
3286
+ } | {
3287
+ type: "image_url";
3288
+ image_url: {
3289
+ url: string;
3290
+ };
3291
+ })[];
3292
+ }[];
3293
+ stream?: boolean | undefined;
3294
+ temperature?: number | undefined;
3295
+ max_tokens?: number | undefined;
3296
+ top_p?: number | undefined;
3297
+ logprobs?: boolean | undefined;
3298
+ top_logsprobs?: number | undefined;
3299
+ frequency_penalty?: number | undefined;
3300
+ presence_penalty?: number | undefined;
3301
+ stop?: string | string[] | undefined;
3302
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
3303
+ modalities?: string[] | undefined;
3304
+ };
3305
+ dryRun?: boolean | undefined;
3306
+ dryRunPreAllocate?: boolean | undefined;
3307
+ ownerHandle?: string | undefined;
3308
+ appSlug?: string | undefined;
3309
+ selected?: {
3310
+ kind: "version";
3311
+ fsId: string;
3312
+ } | {
3313
+ kind: "draft";
3314
+ files: ({
3315
+ filename: string;
3316
+ entryPoint?: boolean | undefined;
3317
+ mimetype?: string | undefined;
3318
+ type: "code-block";
3319
+ lang: string;
3320
+ content: string;
3321
+ } | {
3322
+ filename: string;
3323
+ entryPoint?: boolean | undefined;
3324
+ mimetype?: string | undefined;
3325
+ type: "code-ref";
3326
+ refId: string;
3327
+ } | {
3328
+ filename: string;
3329
+ entryPoint?: boolean | undefined;
3330
+ mimetype?: string | undefined;
3331
+ type: "str-asset-block";
3332
+ content: string;
3333
+ } | {
3334
+ filename: string;
3335
+ entryPoint?: boolean | undefined;
3336
+ mimetype?: string | undefined;
3337
+ type: "str-asset-ref";
3338
+ refId: string;
3339
+ } | {
3340
+ filename: string;
3341
+ entryPoint?: boolean | undefined;
3342
+ mimetype?: string | undefined;
3343
+ type: "uint8-asset-block";
3344
+ content: Uint8Array<ArrayBuffer>;
3345
+ } | {
3346
+ filename: string;
3347
+ entryPoint?: boolean | undefined;
3348
+ mimetype?: string | undefined;
3349
+ type: "uint8-asset-ref";
3350
+ refId: string;
3351
+ })[];
3352
+ } | undefined;
3353
+ slots?: {
3354
+ original?: "off" | "on" | undefined;
3355
+ selected?: "off" | "on" | undefined;
3356
+ last_edit?: "off" | "on" | undefined;
3357
+ previous?: "off" | "on" | undefined;
3358
+ compaction?: "off" | "on" | undefined;
3359
+ } | undefined;
3360
+ focusPath?: string | undefined;
3361
+ } | {
3362
+ type: "vibes.diy.req-prompt-chat-section";
3363
+ mode: "app" | "runtime";
3364
+ auth: {
3365
+ type: "clerk" | "device-id" | "ucan";
3366
+ token: string;
3367
+ };
3368
+ chatId: string;
3369
+ outerTid: string;
3370
+ prompt: {
3371
+ model?: string | undefined;
3372
+ messages: {
3373
+ role: "assistant" | "system" | "user";
3374
+ content: ({
3375
+ type: "text";
3376
+ text: string;
3377
+ } | {
3378
+ type: "image_url";
3379
+ image_url: {
3380
+ url: string;
3470
3381
  };
3471
- } | {
3472
- streamId: string;
3473
- chatId: string;
3474
- seq: number;
3475
- timestamp: Date;
3476
- type: "prompt.model-resolved";
3477
- model: string;
3478
- } | {
3479
- streamId: string;
3480
- chatId: string;
3481
- seq: number;
3482
- timestamp: Date;
3483
- type: "prompt.raw";
3484
- text: string;
3485
3382
  })[];
3486
3383
  }[];
3487
- }[];
3488
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3489
- type: "MessageEvent";
3490
- event: {
3491
- data?: unknown;
3492
- origin?: string | null | undefined;
3493
- lastEventId?: string | undefined;
3494
- source?: unknown;
3495
- ports?: unknown;
3384
+ stream?: boolean | undefined;
3385
+ temperature?: number | undefined;
3386
+ max_tokens?: number | undefined;
3387
+ top_p?: number | undefined;
3388
+ logprobs?: boolean | undefined;
3389
+ top_logsprobs?: number | undefined;
3390
+ frequency_penalty?: number | undefined;
3391
+ presence_penalty?: number | undefined;
3392
+ stop?: string | string[] | undefined;
3393
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
3394
+ modalities?: string[] | undefined;
3496
3395
  };
3497
3396
  } | {
3498
- type: "CloseEvent";
3499
- event: {
3500
- wasClean: boolean;
3501
- code: number;
3502
- reason: string;
3397
+ type: "vibes.diy.req-prompt-chat-section";
3398
+ mode: "img";
3399
+ auth: {
3400
+ type: "clerk" | "device-id" | "ucan";
3401
+ token: string;
3402
+ };
3403
+ chatId: string;
3404
+ outerTid: string;
3405
+ prompt: {
3406
+ model?: string | undefined;
3407
+ messages: {
3408
+ role: "assistant" | "system" | "user";
3409
+ content: ({
3410
+ type: "text";
3411
+ text: string;
3412
+ } | {
3413
+ type: "image_url";
3414
+ image_url: {
3415
+ url: string;
3416
+ };
3417
+ })[];
3418
+ }[];
3419
+ stream?: boolean | undefined;
3420
+ temperature?: number | undefined;
3421
+ max_tokens?: number | undefined;
3422
+ top_p?: number | undefined;
3423
+ logprobs?: boolean | undefined;
3424
+ top_logsprobs?: number | undefined;
3425
+ frequency_penalty?: number | undefined;
3426
+ presence_penalty?: number | undefined;
3427
+ stop?: string | string[] | undefined;
3428
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
3429
+ modalities?: string[] | undefined;
3503
3430
  };
3431
+ inputImageBase64?: string | undefined;
3504
3432
  } | {
3505
- type: "ErrorEvent";
3506
- event: {
3507
- message?: string | undefined;
3508
- filename?: string | undefined;
3509
- lineno?: number | undefined;
3510
- colno?: number | undefined;
3511
- error?: unknown;
3433
+ type: "vibes.diy.req-prompt-chat-section";
3434
+ mode: "fs-update";
3435
+ auth: {
3436
+ type: "clerk" | "device-id" | "ucan";
3437
+ token: string;
3512
3438
  };
3513
- }, import("@vibes.diy/api-types").MsgBase<{
3514
- type: "vibes.diy.req-list-application-chats";
3439
+ chatId: string;
3440
+ outerTid: string;
3441
+ refFsId?: string | undefined;
3442
+ fsUpdate: {
3443
+ update: ({
3444
+ filename: string;
3445
+ entryPoint?: boolean | undefined;
3446
+ mimetype?: string | undefined;
3447
+ type: "code-block";
3448
+ lang: string;
3449
+ content: string;
3450
+ } | {
3451
+ filename: string;
3452
+ entryPoint?: boolean | undefined;
3453
+ mimetype?: string | undefined;
3454
+ type: "code-ref";
3455
+ refId: string;
3456
+ } | {
3457
+ filename: string;
3458
+ entryPoint?: boolean | undefined;
3459
+ mimetype?: string | undefined;
3460
+ type: "str-asset-block";
3461
+ content: string;
3462
+ } | {
3463
+ filename: string;
3464
+ entryPoint?: boolean | undefined;
3465
+ mimetype?: string | undefined;
3466
+ type: "str-asset-ref";
3467
+ refId: string;
3468
+ } | {
3469
+ filename: string;
3470
+ entryPoint?: boolean | undefined;
3471
+ mimetype?: string | undefined;
3472
+ type: "uint8-asset-block";
3473
+ content: Uint8Array<ArrayBuffer>;
3474
+ } | {
3475
+ filename: string;
3476
+ entryPoint?: boolean | undefined;
3477
+ mimetype?: string | undefined;
3478
+ type: "uint8-asset-ref";
3479
+ refId: string;
3480
+ })[];
3481
+ remove: {
3482
+ filename: string;
3483
+ }[];
3484
+ };
3485
+ } | {
3486
+ type: "vibes.diy.req-prompt-chat-section";
3487
+ mode: "fs-set";
3515
3488
  auth: {
3516
3489
  type: "clerk" | "device-id" | "ucan";
3517
3490
  token: string;
3518
3491
  };
3519
- appSlug?: string | undefined;
3520
- ownerHandle?: string | undefined;
3521
- limit?: number | undefined;
3522
- cursor?: string | undefined;
3523
- }>, {
3524
- type: "vibes.diy.res-list-application-chats";
3525
- items: {
3526
- chatId: string;
3527
- appSlug: string;
3528
- ownerHandle: string;
3529
- created: string;
3530
- }[];
3531
- nextCursor?: string | undefined;
3532
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3492
+ chatId: string;
3493
+ outerTid: string;
3494
+ fsSet: ({
3495
+ filename: string;
3496
+ entryPoint?: boolean | undefined;
3497
+ mimetype?: string | undefined;
3498
+ type: "code-block";
3499
+ lang: string;
3500
+ content: string;
3501
+ } | {
3502
+ filename: string;
3503
+ entryPoint?: boolean | undefined;
3504
+ mimetype?: string | undefined;
3505
+ type: "code-ref";
3506
+ refId: string;
3507
+ } | {
3508
+ filename: string;
3509
+ entryPoint?: boolean | undefined;
3510
+ mimetype?: string | undefined;
3511
+ type: "str-asset-block";
3512
+ content: string;
3513
+ } | {
3514
+ filename: string;
3515
+ entryPoint?: boolean | undefined;
3516
+ mimetype?: string | undefined;
3517
+ type: "str-asset-ref";
3518
+ refId: string;
3519
+ } | {
3520
+ filename: string;
3521
+ entryPoint?: boolean | undefined;
3522
+ mimetype?: string | undefined;
3523
+ type: "uint8-asset-block";
3524
+ content: Uint8Array<ArrayBuffer>;
3525
+ } | {
3526
+ filename: string;
3527
+ entryPoint?: boolean | undefined;
3528
+ mimetype?: string | undefined;
3529
+ type: "uint8-asset-ref";
3530
+ refId: string;
3531
+ })[];
3532
+ }>, import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3533
3533
  type: "MessageEvent";
3534
3534
  event: {
3535
3535
  data?: unknown;