@vibes.diy/api-types 14.3.342 → 14.3.343
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.d.ts +459 -455
- package/app.js +1 -0
- package/invite.d.ts +117 -117
- package/package.json +4 -4
- package/prompt.d.ts +120 -120
- package/settings.d.ts +234 -234
package/app.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
17
17
|
ownerHandle: string;
|
|
18
18
|
appSlug: string;
|
|
19
19
|
} | undefined;
|
|
20
|
+
title?: string | undefined;
|
|
20
21
|
fileSystem: ({
|
|
21
22
|
filename: string;
|
|
22
23
|
entryPoint?: boolean | undefined;
|
|
@@ -82,6 +83,7 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
82
83
|
ownerHandle: string;
|
|
83
84
|
appSlug: string;
|
|
84
85
|
} | undefined;
|
|
86
|
+
title?: string | undefined;
|
|
85
87
|
fileSystem: ({
|
|
86
88
|
filename: string;
|
|
87
89
|
entryPoint?: boolean | undefined;
|
|
@@ -147,6 +149,7 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
147
149
|
ownerHandle: string;
|
|
148
150
|
appSlug: string;
|
|
149
151
|
} | undefined;
|
|
152
|
+
title?: string | undefined;
|
|
150
153
|
fileSystem: ({
|
|
151
154
|
filename: string;
|
|
152
155
|
entryPoint?: boolean | undefined;
|
|
@@ -212,6 +215,7 @@ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.
|
|
|
212
215
|
ownerHandle: string;
|
|
213
216
|
appSlug: string;
|
|
214
217
|
} | undefined;
|
|
218
|
+
title?: string | undefined;
|
|
215
219
|
fileSystem: ({
|
|
216
220
|
filename: string;
|
|
217
221
|
entryPoint?: boolean | undefined;
|
|
@@ -572,185 +576,290 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
572
576
|
appSlug?: string | undefined;
|
|
573
577
|
ownerHandle?: string | undefined;
|
|
574
578
|
blocks: ({
|
|
579
|
+
blockId: string;
|
|
575
580
|
streamId: string;
|
|
576
|
-
chatId: string;
|
|
577
581
|
seq: number;
|
|
582
|
+
blockNr: number;
|
|
578
583
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
579
|
-
type: "
|
|
584
|
+
type: "block.begin";
|
|
580
585
|
} | {
|
|
586
|
+
blockId: string;
|
|
581
587
|
streamId: string;
|
|
582
|
-
chatId: string;
|
|
583
588
|
seq: number;
|
|
589
|
+
blockNr: number;
|
|
584
590
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
585
|
-
type: "
|
|
591
|
+
type: "block.end";
|
|
592
|
+
stats: {
|
|
593
|
+
toplevel: {
|
|
594
|
+
lines: number;
|
|
595
|
+
bytes: number;
|
|
596
|
+
cnt?: number | undefined;
|
|
597
|
+
};
|
|
598
|
+
code: {
|
|
599
|
+
lines: number;
|
|
600
|
+
bytes: number;
|
|
601
|
+
cnt?: number | undefined;
|
|
602
|
+
};
|
|
603
|
+
image: {
|
|
604
|
+
lines: number;
|
|
605
|
+
bytes: number;
|
|
606
|
+
cnt?: number | undefined;
|
|
607
|
+
};
|
|
608
|
+
total: {
|
|
609
|
+
lines: number;
|
|
610
|
+
bytes: number;
|
|
611
|
+
cnt?: number | undefined;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
usage: {
|
|
615
|
+
given: {
|
|
616
|
+
prompt_tokens: number;
|
|
617
|
+
completion_tokens: number;
|
|
618
|
+
total_tokens: number;
|
|
619
|
+
model?: string | undefined;
|
|
620
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
621
|
+
reasoningEffort?: string | undefined;
|
|
622
|
+
}[];
|
|
623
|
+
calculated: {
|
|
624
|
+
prompt_tokens: number;
|
|
625
|
+
completion_tokens: number;
|
|
626
|
+
total_tokens: number;
|
|
627
|
+
model?: string | undefined;
|
|
628
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
629
|
+
reasoningEffort?: string | undefined;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
fsRef?: ((In: {
|
|
633
|
+
appSlug: string;
|
|
634
|
+
ownerHandle?: string | undefined;
|
|
635
|
+
userSlug?: string | undefined;
|
|
636
|
+
mode: "dev" | "production";
|
|
637
|
+
fsId: string;
|
|
638
|
+
}) => import("arktype").Out<{
|
|
639
|
+
appSlug: string;
|
|
640
|
+
mode: "dev" | "production";
|
|
641
|
+
fsId: string;
|
|
642
|
+
ownerHandle: string;
|
|
643
|
+
}>) | undefined;
|
|
644
|
+
touchedPaths?: string[] | undefined;
|
|
645
|
+
settled?: {
|
|
646
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
647
|
+
entryTouched: boolean;
|
|
648
|
+
touchedCount: number;
|
|
649
|
+
applied: boolean;
|
|
650
|
+
} | undefined;
|
|
651
|
+
saveRepair?: {
|
|
652
|
+
repaired: string[];
|
|
653
|
+
attempts: number;
|
|
654
|
+
} | undefined;
|
|
655
|
+
seedRepair?: {
|
|
656
|
+
repaired: string[];
|
|
657
|
+
attempts: number;
|
|
658
|
+
} | undefined;
|
|
659
|
+
publishHold?: {
|
|
660
|
+
findings: {
|
|
661
|
+
file: string;
|
|
662
|
+
line: number;
|
|
663
|
+
message: string;
|
|
664
|
+
}[];
|
|
665
|
+
} | undefined;
|
|
666
|
+
savedBy?: "agent" | "person" | undefined;
|
|
586
667
|
} | {
|
|
668
|
+
blockId: string;
|
|
587
669
|
streamId: string;
|
|
588
|
-
chatId: string;
|
|
589
670
|
seq: number;
|
|
671
|
+
blockNr: number;
|
|
590
672
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
591
|
-
type: "
|
|
592
|
-
|
|
673
|
+
type: "block.stats";
|
|
674
|
+
stats: {
|
|
675
|
+
toplevel: {
|
|
676
|
+
lines: number;
|
|
677
|
+
bytes: number;
|
|
678
|
+
cnt?: number | undefined;
|
|
679
|
+
};
|
|
680
|
+
code: {
|
|
681
|
+
lines: number;
|
|
682
|
+
bytes: number;
|
|
683
|
+
cnt?: number | undefined;
|
|
684
|
+
};
|
|
685
|
+
image: {
|
|
686
|
+
lines: number;
|
|
687
|
+
bytes: number;
|
|
688
|
+
cnt?: number | undefined;
|
|
689
|
+
};
|
|
690
|
+
total: {
|
|
691
|
+
lines: number;
|
|
692
|
+
bytes: number;
|
|
693
|
+
cnt?: number | undefined;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
usage: {
|
|
697
|
+
prompt_tokens: number;
|
|
698
|
+
completion_tokens: number;
|
|
699
|
+
total_tokens: number;
|
|
593
700
|
model?: string | undefined;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
content: ({
|
|
597
|
-
type: "text";
|
|
598
|
-
text: string;
|
|
599
|
-
cache_control?: {
|
|
600
|
-
type: "ephemeral";
|
|
601
|
-
ttl?: "1h" | "5m" | undefined;
|
|
602
|
-
} | undefined;
|
|
603
|
-
} | {
|
|
604
|
-
type: "image_url";
|
|
605
|
-
image_url: {
|
|
606
|
-
url: string;
|
|
607
|
-
};
|
|
608
|
-
cache_control?: {
|
|
609
|
-
type: "ephemeral";
|
|
610
|
-
ttl?: "1h" | "5m" | undefined;
|
|
611
|
-
} | undefined;
|
|
612
|
-
} | {
|
|
613
|
-
type: "vibes_file";
|
|
614
|
-
uploadId: string;
|
|
615
|
-
name: string;
|
|
616
|
-
mimeType: string;
|
|
617
|
-
kind: "image" | "text";
|
|
618
|
-
originalUploadId?: string | undefined;
|
|
619
|
-
size?: number | undefined;
|
|
620
|
-
})[];
|
|
621
|
-
} | {
|
|
622
|
-
role: "assistant";
|
|
623
|
-
content: string | null;
|
|
624
|
-
tool_calls: {
|
|
625
|
-
id: string;
|
|
626
|
-
type: "function";
|
|
627
|
-
function: {
|
|
628
|
-
name: string;
|
|
629
|
-
arguments: string;
|
|
630
|
-
};
|
|
631
|
-
}[];
|
|
632
|
-
} | {
|
|
633
|
-
role: "tool";
|
|
634
|
-
content: string;
|
|
635
|
-
tool_call_id: string;
|
|
636
|
-
})[];
|
|
637
|
-
stream?: boolean | undefined;
|
|
638
|
-
temperature?: number | undefined;
|
|
639
|
-
max_tokens?: number | undefined;
|
|
640
|
-
top_p?: number | undefined;
|
|
641
|
-
logprobs?: boolean | undefined;
|
|
642
|
-
top_logsprobs?: number | undefined;
|
|
643
|
-
frequency_penalty?: number | undefined;
|
|
644
|
-
presence_penalty?: number | undefined;
|
|
645
|
-
stop?: string | string[] | undefined;
|
|
646
|
-
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
647
|
-
modalities?: string[] | undefined;
|
|
648
|
-
tools?: {
|
|
649
|
-
type: "function";
|
|
650
|
-
function: {
|
|
651
|
-
name: string;
|
|
652
|
-
description?: string | undefined;
|
|
653
|
-
parameters: unknown;
|
|
654
|
-
};
|
|
655
|
-
}[] | undefined;
|
|
656
|
-
tool_choice?: "auto" | "none" | "required" | {
|
|
657
|
-
type: "function";
|
|
658
|
-
function: {
|
|
659
|
-
name: string;
|
|
660
|
-
};
|
|
661
|
-
} | undefined;
|
|
662
|
-
cache_control?: {
|
|
663
|
-
type: "ephemeral";
|
|
664
|
-
ttl?: "1h" | "5m" | undefined;
|
|
665
|
-
} | undefined;
|
|
666
|
-
response_format?: unknown;
|
|
667
|
-
image_config?: unknown;
|
|
668
|
-
reasoning?: {
|
|
669
|
-
effort?: "high" | "low" | "medium" | "minimal" | "none" | "xhigh" | undefined;
|
|
670
|
-
max_tokens?: number | undefined;
|
|
671
|
-
exclude?: boolean | undefined;
|
|
672
|
-
enabled?: boolean | undefined;
|
|
673
|
-
} | undefined;
|
|
674
|
-
plugins?: unknown[] | undefined;
|
|
701
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
702
|
+
reasoningEffort?: string | undefined;
|
|
675
703
|
};
|
|
676
|
-
conversation?: true | undefined;
|
|
677
|
-
source?: "gold" | "suggestion" | undefined;
|
|
678
|
-
agentDispatched?: true | undefined;
|
|
679
|
-
platformInitiated?: true | undefined;
|
|
680
|
-
firstDraft?: true | undefined;
|
|
681
|
-
clientMessageId?: string | undefined;
|
|
682
|
-
origin?: "design-repair" | undefined;
|
|
683
|
-
agentCommit?: true | undefined;
|
|
684
|
-
agentSkills?: string[] | undefined;
|
|
685
|
-
alternativeReady?: string | undefined;
|
|
686
704
|
} | {
|
|
705
|
+
blockId: string;
|
|
687
706
|
streamId: string;
|
|
688
|
-
chatId: string;
|
|
689
707
|
seq: number;
|
|
708
|
+
blockNr: number;
|
|
690
709
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
710
|
+
stats: {
|
|
711
|
+
lines: number;
|
|
712
|
+
bytes: number;
|
|
713
|
+
cnt?: number | undefined;
|
|
714
|
+
};
|
|
715
|
+
type: "block.image";
|
|
716
|
+
sectionId: string;
|
|
717
|
+
url?: string | undefined;
|
|
718
|
+
uploadId?: string | undefined;
|
|
719
|
+
cid?: string | undefined;
|
|
720
|
+
mimeType?: string | undefined;
|
|
721
|
+
size?: number | undefined;
|
|
722
|
+
docWritten?: boolean | undefined;
|
|
696
723
|
} | {
|
|
724
|
+
blockId: string;
|
|
697
725
|
streamId: string;
|
|
698
|
-
chatId: string;
|
|
699
726
|
seq: number;
|
|
727
|
+
blockNr: number;
|
|
700
728
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
701
|
-
type: "
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
729
|
+
type: "block.code.begin";
|
|
730
|
+
sectionId: string;
|
|
731
|
+
lang: string;
|
|
732
|
+
path?: string | undefined;
|
|
733
|
+
} | {
|
|
734
|
+
blockId: string;
|
|
735
|
+
streamId: string;
|
|
736
|
+
seq: number;
|
|
737
|
+
blockNr: number;
|
|
738
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
739
|
+
lineNr: number;
|
|
740
|
+
line: string;
|
|
741
|
+
type: "block.code.line";
|
|
742
|
+
sectionId: string;
|
|
743
|
+
lang: string;
|
|
744
|
+
path?: string | undefined;
|
|
745
|
+
} | {
|
|
746
|
+
blockId: string;
|
|
747
|
+
streamId: string;
|
|
748
|
+
seq: number;
|
|
749
|
+
blockNr: number;
|
|
750
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
751
|
+
stats: {
|
|
752
|
+
lines: number;
|
|
753
|
+
bytes: number;
|
|
754
|
+
cnt?: number | undefined;
|
|
755
|
+
};
|
|
756
|
+
type: "block.code.end";
|
|
757
|
+
sectionId: string;
|
|
758
|
+
lang: string;
|
|
759
|
+
path?: string | undefined;
|
|
760
|
+
unclosed?: boolean | undefined;
|
|
761
|
+
} | {
|
|
762
|
+
blockId: string;
|
|
763
|
+
streamId: string;
|
|
764
|
+
seq: number;
|
|
765
|
+
blockNr: number;
|
|
766
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
767
|
+
type: "block.code.truncated";
|
|
768
|
+
sectionId: string;
|
|
769
|
+
lang: string;
|
|
770
|
+
path?: string | undefined;
|
|
771
|
+
reason: string;
|
|
772
|
+
kind: string;
|
|
773
|
+
truncatedAtLine: number;
|
|
774
|
+
errorCount: number;
|
|
775
|
+
} | {
|
|
776
|
+
blockId: string;
|
|
777
|
+
streamId: string;
|
|
778
|
+
seq: number;
|
|
779
|
+
blockNr: number;
|
|
780
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
781
|
+
type: "block.toplevel.begin";
|
|
782
|
+
sectionId: string;
|
|
783
|
+
} | {
|
|
784
|
+
blockId: string;
|
|
785
|
+
streamId: string;
|
|
786
|
+
seq: number;
|
|
787
|
+
blockNr: number;
|
|
788
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
789
|
+
lineNr: number;
|
|
790
|
+
line: string;
|
|
791
|
+
type: "block.toplevel.line";
|
|
792
|
+
sectionId: string;
|
|
793
|
+
} | {
|
|
794
|
+
blockId: string;
|
|
795
|
+
streamId: string;
|
|
796
|
+
seq: number;
|
|
797
|
+
blockNr: number;
|
|
798
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
799
|
+
stats: {
|
|
800
|
+
lines: number;
|
|
801
|
+
bytes: number;
|
|
802
|
+
cnt?: number | undefined;
|
|
803
|
+
};
|
|
804
|
+
type: "block.toplevel.end";
|
|
805
|
+
sectionId: string;
|
|
806
|
+
messageEnd?: true | undefined;
|
|
748
807
|
} | {
|
|
808
|
+
type: "prompt.research";
|
|
809
|
+
version: 1;
|
|
749
810
|
streamId: string;
|
|
750
811
|
chatId: string;
|
|
751
812
|
seq: number;
|
|
752
813
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
753
|
-
|
|
814
|
+
researchId: string;
|
|
815
|
+
status: "complete" | "failed" | "partial";
|
|
816
|
+
brief: string;
|
|
817
|
+
sources: {
|
|
818
|
+
url: string;
|
|
819
|
+
finalUrl: string | null;
|
|
820
|
+
contentType: string | null;
|
|
821
|
+
httpStatus: number | null;
|
|
822
|
+
backendFetchable: boolean;
|
|
823
|
+
fetched: boolean;
|
|
824
|
+
errorCode?: string | undefined;
|
|
825
|
+
}[];
|
|
826
|
+
api: {
|
|
827
|
+
method: string;
|
|
828
|
+
path: string;
|
|
829
|
+
description: string;
|
|
830
|
+
fields: string[];
|
|
831
|
+
}[];
|
|
832
|
+
excerpts: {
|
|
833
|
+
sourceUrl: string;
|
|
834
|
+
text: string;
|
|
835
|
+
locator?: string | undefined;
|
|
836
|
+
}[];
|
|
837
|
+
seedRows: {
|
|
838
|
+
sourceUrl: string;
|
|
839
|
+
dbName: string;
|
|
840
|
+
key: string;
|
|
841
|
+
item: unknown;
|
|
842
|
+
}[];
|
|
843
|
+
completedAt: string;
|
|
844
|
+
errorCode?: string | undefined;
|
|
845
|
+
} | {
|
|
846
|
+
streamId: string;
|
|
847
|
+
chatId: string;
|
|
848
|
+
seq: number;
|
|
849
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
850
|
+
type: "prompt.block-begin";
|
|
851
|
+
} | {
|
|
852
|
+
streamId: string;
|
|
853
|
+
chatId: string;
|
|
854
|
+
seq: number;
|
|
855
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
856
|
+
type: "prompt.block-end";
|
|
857
|
+
} | {
|
|
858
|
+
streamId: string;
|
|
859
|
+
chatId: string;
|
|
860
|
+
seq: number;
|
|
861
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
862
|
+
type: "prompt.req";
|
|
754
863
|
request: {
|
|
755
864
|
model?: string | undefined;
|
|
756
865
|
messages: ({
|
|
@@ -835,56 +944,218 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
835
944
|
} | undefined;
|
|
836
945
|
plugins?: unknown[] | undefined;
|
|
837
946
|
};
|
|
947
|
+
conversation?: true | undefined;
|
|
948
|
+
source?: "gold" | "suggestion" | undefined;
|
|
949
|
+
agentDispatched?: true | undefined;
|
|
950
|
+
platformInitiated?: true | undefined;
|
|
951
|
+
firstDraft?: true | undefined;
|
|
952
|
+
clientMessageId?: string | undefined;
|
|
953
|
+
origin?: "design-repair" | undefined;
|
|
954
|
+
agentCommit?: true | undefined;
|
|
955
|
+
agentSkills?: string[] | undefined;
|
|
956
|
+
alternativeReady?: string | undefined;
|
|
838
957
|
} | {
|
|
839
958
|
streamId: string;
|
|
840
959
|
chatId: string;
|
|
841
960
|
seq: number;
|
|
842
961
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
843
|
-
type: "prompt.
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
seq: number;
|
|
849
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
850
|
-
type: "prompt.raw";
|
|
851
|
-
text: string;
|
|
852
|
-
} | {
|
|
853
|
-
streamId: string;
|
|
854
|
-
chatId: string;
|
|
855
|
-
seq: number;
|
|
856
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
857
|
-
type: "prompt.fs-persisted";
|
|
858
|
-
fsRef: (In: {
|
|
859
|
-
appSlug: string;
|
|
860
|
-
ownerHandle?: string | undefined;
|
|
861
|
-
userSlug?: string | undefined;
|
|
862
|
-
mode: "dev" | "production";
|
|
863
|
-
fsId: string;
|
|
864
|
-
}) => import("arktype").Out<{
|
|
865
|
-
appSlug: string;
|
|
866
|
-
mode: "dev" | "production";
|
|
867
|
-
fsId: string;
|
|
868
|
-
ownerHandle: string;
|
|
869
|
-
}>;
|
|
962
|
+
type: "prompt.error";
|
|
963
|
+
error: string;
|
|
964
|
+
code?: "turn-lost" | undefined;
|
|
965
|
+
lostBuildPromptIds?: string[] | undefined;
|
|
966
|
+
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
870
967
|
} | {
|
|
871
968
|
streamId: string;
|
|
872
969
|
chatId: string;
|
|
873
970
|
seq: number;
|
|
874
971
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
875
|
-
type: "prompt.
|
|
876
|
-
|
|
972
|
+
type: "prompt.fs";
|
|
973
|
+
fileSystem: ({
|
|
974
|
+
filename: string;
|
|
975
|
+
entryPoint?: boolean | undefined;
|
|
976
|
+
mimetype?: string | undefined;
|
|
977
|
+
type: "code-block";
|
|
978
|
+
lang: string;
|
|
979
|
+
content: string;
|
|
980
|
+
} | {
|
|
981
|
+
filename: string;
|
|
982
|
+
entryPoint?: boolean | undefined;
|
|
983
|
+
mimetype?: string | undefined;
|
|
984
|
+
type: "code-ref";
|
|
985
|
+
refId: string;
|
|
986
|
+
} | {
|
|
987
|
+
filename: string;
|
|
988
|
+
entryPoint?: boolean | undefined;
|
|
989
|
+
mimetype?: string | undefined;
|
|
990
|
+
type: "str-asset-block";
|
|
991
|
+
content: string;
|
|
992
|
+
} | {
|
|
993
|
+
filename: string;
|
|
994
|
+
entryPoint?: boolean | undefined;
|
|
995
|
+
mimetype?: string | undefined;
|
|
996
|
+
type: "str-asset-ref";
|
|
997
|
+
refId: string;
|
|
998
|
+
} | {
|
|
999
|
+
filename: string;
|
|
1000
|
+
entryPoint?: boolean | undefined;
|
|
1001
|
+
mimetype?: string | undefined;
|
|
1002
|
+
type: "uint8-asset-block";
|
|
1003
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1004
|
+
} | {
|
|
1005
|
+
filename: string;
|
|
1006
|
+
entryPoint?: boolean | undefined;
|
|
1007
|
+
mimetype?: string | undefined;
|
|
1008
|
+
type: "uint8-asset-ref";
|
|
1009
|
+
refId: string;
|
|
1010
|
+
} | {
|
|
1011
|
+
filename: string;
|
|
1012
|
+
entryPoint?: boolean | undefined;
|
|
1013
|
+
mimetype?: string | undefined;
|
|
1014
|
+
type: "cid-ref";
|
|
1015
|
+
cid: string;
|
|
1016
|
+
size: number;
|
|
1017
|
+
uploadId?: string | undefined;
|
|
1018
|
+
})[];
|
|
877
1019
|
} | {
|
|
878
1020
|
streamId: string;
|
|
879
1021
|
chatId: string;
|
|
880
1022
|
seq: number;
|
|
881
1023
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
882
|
-
type: "prompt.
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
1024
|
+
type: "prompt.dry-run-payload";
|
|
1025
|
+
request: {
|
|
1026
|
+
model?: string | undefined;
|
|
1027
|
+
messages: ({
|
|
1028
|
+
role: "assistant" | "system" | "user";
|
|
1029
|
+
content: ({
|
|
1030
|
+
type: "text";
|
|
1031
|
+
text: string;
|
|
1032
|
+
cache_control?: {
|
|
1033
|
+
type: "ephemeral";
|
|
1034
|
+
ttl?: "1h" | "5m" | undefined;
|
|
1035
|
+
} | undefined;
|
|
1036
|
+
} | {
|
|
1037
|
+
type: "image_url";
|
|
1038
|
+
image_url: {
|
|
1039
|
+
url: string;
|
|
1040
|
+
};
|
|
1041
|
+
cache_control?: {
|
|
1042
|
+
type: "ephemeral";
|
|
1043
|
+
ttl?: "1h" | "5m" | undefined;
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
} | {
|
|
1046
|
+
type: "vibes_file";
|
|
1047
|
+
uploadId: string;
|
|
1048
|
+
name: string;
|
|
1049
|
+
mimeType: string;
|
|
1050
|
+
kind: "image" | "text";
|
|
1051
|
+
originalUploadId?: string | undefined;
|
|
1052
|
+
size?: number | undefined;
|
|
1053
|
+
})[];
|
|
1054
|
+
} | {
|
|
1055
|
+
role: "assistant";
|
|
1056
|
+
content: string | null;
|
|
1057
|
+
tool_calls: {
|
|
1058
|
+
id: string;
|
|
1059
|
+
type: "function";
|
|
1060
|
+
function: {
|
|
1061
|
+
name: string;
|
|
1062
|
+
arguments: string;
|
|
1063
|
+
};
|
|
1064
|
+
}[];
|
|
1065
|
+
} | {
|
|
1066
|
+
role: "tool";
|
|
1067
|
+
content: string;
|
|
1068
|
+
tool_call_id: string;
|
|
1069
|
+
})[];
|
|
1070
|
+
stream?: boolean | undefined;
|
|
1071
|
+
temperature?: number | undefined;
|
|
1072
|
+
max_tokens?: number | undefined;
|
|
1073
|
+
top_p?: number | undefined;
|
|
1074
|
+
logprobs?: boolean | undefined;
|
|
1075
|
+
top_logsprobs?: number | undefined;
|
|
1076
|
+
frequency_penalty?: number | undefined;
|
|
1077
|
+
presence_penalty?: number | undefined;
|
|
1078
|
+
stop?: string | string[] | undefined;
|
|
1079
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1080
|
+
modalities?: string[] | undefined;
|
|
1081
|
+
tools?: {
|
|
1082
|
+
type: "function";
|
|
1083
|
+
function: {
|
|
1084
|
+
name: string;
|
|
1085
|
+
description?: string | undefined;
|
|
1086
|
+
parameters: unknown;
|
|
1087
|
+
};
|
|
1088
|
+
}[] | undefined;
|
|
1089
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1090
|
+
type: "function";
|
|
1091
|
+
function: {
|
|
1092
|
+
name: string;
|
|
1093
|
+
};
|
|
1094
|
+
} | undefined;
|
|
1095
|
+
cache_control?: {
|
|
1096
|
+
type: "ephemeral";
|
|
1097
|
+
ttl?: "1h" | "5m" | undefined;
|
|
1098
|
+
} | undefined;
|
|
1099
|
+
response_format?: unknown;
|
|
1100
|
+
image_config?: unknown;
|
|
1101
|
+
reasoning?: {
|
|
1102
|
+
effort?: "high" | "low" | "medium" | "minimal" | "none" | "xhigh" | undefined;
|
|
1103
|
+
max_tokens?: number | undefined;
|
|
1104
|
+
exclude?: boolean | undefined;
|
|
1105
|
+
enabled?: boolean | undefined;
|
|
1106
|
+
} | undefined;
|
|
1107
|
+
plugins?: unknown[] | undefined;
|
|
1108
|
+
};
|
|
1109
|
+
} | {
|
|
1110
|
+
streamId: string;
|
|
1111
|
+
chatId: string;
|
|
1112
|
+
seq: number;
|
|
1113
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1114
|
+
type: "prompt.model-resolved";
|
|
1115
|
+
model: string;
|
|
1116
|
+
} | {
|
|
1117
|
+
streamId: string;
|
|
1118
|
+
chatId: string;
|
|
1119
|
+
seq: number;
|
|
1120
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1121
|
+
type: "prompt.raw";
|
|
1122
|
+
text: string;
|
|
1123
|
+
} | {
|
|
1124
|
+
streamId: string;
|
|
1125
|
+
chatId: string;
|
|
1126
|
+
seq: number;
|
|
1127
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1128
|
+
type: "prompt.fs-persisted";
|
|
1129
|
+
fsRef: (In: {
|
|
1130
|
+
appSlug: string;
|
|
1131
|
+
ownerHandle?: string | undefined;
|
|
1132
|
+
userSlug?: string | undefined;
|
|
1133
|
+
mode: "dev" | "production";
|
|
1134
|
+
fsId: string;
|
|
1135
|
+
}) => import("arktype").Out<{
|
|
1136
|
+
appSlug: string;
|
|
1137
|
+
mode: "dev" | "production";
|
|
1138
|
+
fsId: string;
|
|
1139
|
+
ownerHandle: string;
|
|
1140
|
+
}>;
|
|
1141
|
+
} | {
|
|
1142
|
+
streamId: string;
|
|
1143
|
+
chatId: string;
|
|
1144
|
+
seq: number;
|
|
1145
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1146
|
+
type: "prompt.system-prompt";
|
|
1147
|
+
text: string;
|
|
1148
|
+
} | {
|
|
1149
|
+
streamId: string;
|
|
1150
|
+
chatId: string;
|
|
1151
|
+
seq: number;
|
|
1152
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1153
|
+
type: "prompt.restyle";
|
|
1154
|
+
style: {
|
|
1155
|
+
palette?: {
|
|
1156
|
+
hues: [number, ({
|
|
1157
|
+
mode: "derived";
|
|
1158
|
+
} | {
|
|
888
1159
|
mode: "pinned";
|
|
889
1160
|
h: number;
|
|
890
1161
|
} | undefined)?, ({
|
|
@@ -1041,273 +1312,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
1041
1312
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1042
1313
|
type: "prompt.discussion-title";
|
|
1043
1314
|
text: string;
|
|
1044
|
-
} | {
|
|
1045
|
-
type: "prompt.research";
|
|
1046
|
-
version: 1;
|
|
1047
|
-
streamId: string;
|
|
1048
|
-
chatId: string;
|
|
1049
|
-
seq: number;
|
|
1050
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1051
|
-
researchId: string;
|
|
1052
|
-
status: "complete" | "failed" | "partial";
|
|
1053
|
-
brief: string;
|
|
1054
|
-
sources: {
|
|
1055
|
-
url: string;
|
|
1056
|
-
finalUrl: string | null;
|
|
1057
|
-
contentType: string | null;
|
|
1058
|
-
httpStatus: number | null;
|
|
1059
|
-
backendFetchable: boolean;
|
|
1060
|
-
fetched: boolean;
|
|
1061
|
-
errorCode?: string | undefined;
|
|
1062
|
-
}[];
|
|
1063
|
-
api: {
|
|
1064
|
-
method: string;
|
|
1065
|
-
path: string;
|
|
1066
|
-
description: string;
|
|
1067
|
-
fields: string[];
|
|
1068
|
-
}[];
|
|
1069
|
-
excerpts: {
|
|
1070
|
-
sourceUrl: string;
|
|
1071
|
-
text: string;
|
|
1072
|
-
locator?: string | undefined;
|
|
1073
|
-
}[];
|
|
1074
|
-
seedRows: {
|
|
1075
|
-
sourceUrl: string;
|
|
1076
|
-
dbName: string;
|
|
1077
|
-
key: string;
|
|
1078
|
-
item: unknown;
|
|
1079
|
-
}[];
|
|
1080
|
-
completedAt: string;
|
|
1081
|
-
errorCode?: string | undefined;
|
|
1082
|
-
} | {
|
|
1083
|
-
blockId: string;
|
|
1084
|
-
streamId: string;
|
|
1085
|
-
seq: number;
|
|
1086
|
-
blockNr: number;
|
|
1087
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1088
|
-
type: "block.begin";
|
|
1089
|
-
} | {
|
|
1090
|
-
blockId: string;
|
|
1091
|
-
streamId: string;
|
|
1092
|
-
seq: number;
|
|
1093
|
-
blockNr: number;
|
|
1094
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1095
|
-
type: "block.end";
|
|
1096
|
-
stats: {
|
|
1097
|
-
toplevel: {
|
|
1098
|
-
lines: number;
|
|
1099
|
-
bytes: number;
|
|
1100
|
-
cnt?: number | undefined;
|
|
1101
|
-
};
|
|
1102
|
-
code: {
|
|
1103
|
-
lines: number;
|
|
1104
|
-
bytes: number;
|
|
1105
|
-
cnt?: number | undefined;
|
|
1106
|
-
};
|
|
1107
|
-
image: {
|
|
1108
|
-
lines: number;
|
|
1109
|
-
bytes: number;
|
|
1110
|
-
cnt?: number | undefined;
|
|
1111
|
-
};
|
|
1112
|
-
total: {
|
|
1113
|
-
lines: number;
|
|
1114
|
-
bytes: number;
|
|
1115
|
-
cnt?: number | undefined;
|
|
1116
|
-
};
|
|
1117
|
-
};
|
|
1118
|
-
usage: {
|
|
1119
|
-
given: {
|
|
1120
|
-
prompt_tokens: number;
|
|
1121
|
-
completion_tokens: number;
|
|
1122
|
-
total_tokens: number;
|
|
1123
|
-
model?: string | undefined;
|
|
1124
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
1125
|
-
reasoningEffort?: string | undefined;
|
|
1126
|
-
}[];
|
|
1127
|
-
calculated: {
|
|
1128
|
-
prompt_tokens: number;
|
|
1129
|
-
completion_tokens: number;
|
|
1130
|
-
total_tokens: number;
|
|
1131
|
-
model?: string | undefined;
|
|
1132
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
1133
|
-
reasoningEffort?: string | undefined;
|
|
1134
|
-
};
|
|
1135
|
-
};
|
|
1136
|
-
fsRef?: ((In: {
|
|
1137
|
-
appSlug: string;
|
|
1138
|
-
ownerHandle?: string | undefined;
|
|
1139
|
-
userSlug?: string | undefined;
|
|
1140
|
-
mode: "dev" | "production";
|
|
1141
|
-
fsId: string;
|
|
1142
|
-
}) => import("arktype").Out<{
|
|
1143
|
-
appSlug: string;
|
|
1144
|
-
mode: "dev" | "production";
|
|
1145
|
-
fsId: string;
|
|
1146
|
-
ownerHandle: string;
|
|
1147
|
-
}>) | undefined;
|
|
1148
|
-
touchedPaths?: string[] | undefined;
|
|
1149
|
-
settled?: {
|
|
1150
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
1151
|
-
entryTouched: boolean;
|
|
1152
|
-
touchedCount: number;
|
|
1153
|
-
applied: boolean;
|
|
1154
|
-
} | undefined;
|
|
1155
|
-
saveRepair?: {
|
|
1156
|
-
repaired: string[];
|
|
1157
|
-
attempts: number;
|
|
1158
|
-
} | undefined;
|
|
1159
|
-
seedRepair?: {
|
|
1160
|
-
repaired: string[];
|
|
1161
|
-
attempts: number;
|
|
1162
|
-
} | undefined;
|
|
1163
|
-
publishHold?: {
|
|
1164
|
-
findings: {
|
|
1165
|
-
file: string;
|
|
1166
|
-
line: number;
|
|
1167
|
-
message: string;
|
|
1168
|
-
}[];
|
|
1169
|
-
} | undefined;
|
|
1170
|
-
savedBy?: "agent" | "person" | undefined;
|
|
1171
|
-
} | {
|
|
1172
|
-
blockId: string;
|
|
1173
|
-
streamId: string;
|
|
1174
|
-
seq: number;
|
|
1175
|
-
blockNr: number;
|
|
1176
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1177
|
-
type: "block.stats";
|
|
1178
|
-
stats: {
|
|
1179
|
-
toplevel: {
|
|
1180
|
-
lines: number;
|
|
1181
|
-
bytes: number;
|
|
1182
|
-
cnt?: number | undefined;
|
|
1183
|
-
};
|
|
1184
|
-
code: {
|
|
1185
|
-
lines: number;
|
|
1186
|
-
bytes: number;
|
|
1187
|
-
cnt?: number | undefined;
|
|
1188
|
-
};
|
|
1189
|
-
image: {
|
|
1190
|
-
lines: number;
|
|
1191
|
-
bytes: number;
|
|
1192
|
-
cnt?: number | undefined;
|
|
1193
|
-
};
|
|
1194
|
-
total: {
|
|
1195
|
-
lines: number;
|
|
1196
|
-
bytes: number;
|
|
1197
|
-
cnt?: number | undefined;
|
|
1198
|
-
};
|
|
1199
|
-
};
|
|
1200
|
-
usage: {
|
|
1201
|
-
prompt_tokens: number;
|
|
1202
|
-
completion_tokens: number;
|
|
1203
|
-
total_tokens: number;
|
|
1204
|
-
model?: string | undefined;
|
|
1205
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
1206
|
-
reasoningEffort?: string | undefined;
|
|
1207
|
-
};
|
|
1208
|
-
} | {
|
|
1209
|
-
blockId: string;
|
|
1210
|
-
streamId: string;
|
|
1211
|
-
seq: number;
|
|
1212
|
-
blockNr: number;
|
|
1213
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1214
|
-
stats: {
|
|
1215
|
-
lines: number;
|
|
1216
|
-
bytes: number;
|
|
1217
|
-
cnt?: number | undefined;
|
|
1218
|
-
};
|
|
1219
|
-
type: "block.image";
|
|
1220
|
-
sectionId: string;
|
|
1221
|
-
url?: string | undefined;
|
|
1222
|
-
uploadId?: string | undefined;
|
|
1223
|
-
cid?: string | undefined;
|
|
1224
|
-
mimeType?: string | undefined;
|
|
1225
|
-
size?: number | undefined;
|
|
1226
|
-
docWritten?: boolean | undefined;
|
|
1227
|
-
} | {
|
|
1228
|
-
blockId: string;
|
|
1229
|
-
streamId: string;
|
|
1230
|
-
seq: number;
|
|
1231
|
-
blockNr: number;
|
|
1232
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1233
|
-
type: "block.code.begin";
|
|
1234
|
-
sectionId: string;
|
|
1235
|
-
lang: string;
|
|
1236
|
-
path?: string | undefined;
|
|
1237
|
-
} | {
|
|
1238
|
-
blockId: string;
|
|
1239
|
-
streamId: string;
|
|
1240
|
-
seq: number;
|
|
1241
|
-
blockNr: number;
|
|
1242
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1243
|
-
lineNr: number;
|
|
1244
|
-
line: string;
|
|
1245
|
-
type: "block.code.line";
|
|
1246
|
-
sectionId: string;
|
|
1247
|
-
lang: string;
|
|
1248
|
-
path?: string | undefined;
|
|
1249
|
-
} | {
|
|
1250
|
-
blockId: string;
|
|
1251
|
-
streamId: string;
|
|
1252
|
-
seq: number;
|
|
1253
|
-
blockNr: number;
|
|
1254
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1255
|
-
stats: {
|
|
1256
|
-
lines: number;
|
|
1257
|
-
bytes: number;
|
|
1258
|
-
cnt?: number | undefined;
|
|
1259
|
-
};
|
|
1260
|
-
type: "block.code.end";
|
|
1261
|
-
sectionId: string;
|
|
1262
|
-
lang: string;
|
|
1263
|
-
path?: string | undefined;
|
|
1264
|
-
unclosed?: boolean | undefined;
|
|
1265
|
-
} | {
|
|
1266
|
-
blockId: string;
|
|
1267
|
-
streamId: string;
|
|
1268
|
-
seq: number;
|
|
1269
|
-
blockNr: number;
|
|
1270
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1271
|
-
type: "block.code.truncated";
|
|
1272
|
-
sectionId: string;
|
|
1273
|
-
lang: string;
|
|
1274
|
-
path?: string | undefined;
|
|
1275
|
-
reason: string;
|
|
1276
|
-
kind: string;
|
|
1277
|
-
truncatedAtLine: number;
|
|
1278
|
-
errorCount: number;
|
|
1279
|
-
} | {
|
|
1280
|
-
blockId: string;
|
|
1281
|
-
streamId: string;
|
|
1282
|
-
seq: number;
|
|
1283
|
-
blockNr: number;
|
|
1284
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1285
|
-
type: "block.toplevel.begin";
|
|
1286
|
-
sectionId: string;
|
|
1287
|
-
} | {
|
|
1288
|
-
blockId: string;
|
|
1289
|
-
streamId: string;
|
|
1290
|
-
seq: number;
|
|
1291
|
-
blockNr: number;
|
|
1292
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1293
|
-
lineNr: number;
|
|
1294
|
-
line: string;
|
|
1295
|
-
type: "block.toplevel.line";
|
|
1296
|
-
sectionId: string;
|
|
1297
|
-
} | {
|
|
1298
|
-
blockId: string;
|
|
1299
|
-
streamId: string;
|
|
1300
|
-
seq: number;
|
|
1301
|
-
blockNr: number;
|
|
1302
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1303
|
-
stats: {
|
|
1304
|
-
lines: number;
|
|
1305
|
-
bytes: number;
|
|
1306
|
-
cnt?: number | undefined;
|
|
1307
|
-
};
|
|
1308
|
-
type: "block.toplevel.end";
|
|
1309
|
-
sectionId: string;
|
|
1310
|
-
messageEnd?: true | undefined;
|
|
1311
1315
|
})[];
|
|
1312
1316
|
}, {}>;
|
|
1313
1317
|
export type ResGetApplicationChat = typeof resGetApplicationChat.infer;
|