@vibes.diy/api-types 14.1.25 → 14.1.27
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 +319 -311
- package/cf-env.d.ts +4 -0
- package/chat.d.ts +40 -0
- package/embed-param.d.ts +1 -0
- package/embed-param.js +1 -0
- package/embed-param.js.map +1 -1
- package/iframe-src-params.d.ts +1 -0
- package/iframe-src-params.js +2 -0
- package/iframe-src-params.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/invite.d.ts +90 -90
- package/package.json +4 -4
- package/prompt.d.ts +19 -0
- package/prompt.js +17 -0
- package/prompt.js.map +1 -1
- package/retention-steps.d.ts +2 -0
- package/retention-steps.js +2 -0
- package/retention-steps.js.map +1 -1
- package/screen-shotter.d.ts +1 -0
- package/screen-shotter.js +1 -0
- package/screen-shotter.js.map +1 -1
- package/settings.d.ts +285 -285
- package/vibes-diy-serv-ctx.d.ts +2 -3
- package/vibes-diy-serv-ctx.js +1 -3
- package/vibes-diy-serv-ctx.js.map +1 -1
package/app.d.ts
CHANGED
|
@@ -534,220 +534,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
534
534
|
appSlug?: string | undefined;
|
|
535
535
|
ownerHandle?: string | undefined;
|
|
536
536
|
blocks: ({
|
|
537
|
-
blockId: string;
|
|
538
|
-
streamId: string;
|
|
539
|
-
seq: number;
|
|
540
|
-
blockNr: number;
|
|
541
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
542
|
-
type: "block.begin";
|
|
543
|
-
} | {
|
|
544
|
-
blockId: string;
|
|
545
|
-
streamId: string;
|
|
546
|
-
seq: number;
|
|
547
|
-
blockNr: number;
|
|
548
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
549
|
-
type: "block.end";
|
|
550
|
-
stats: {
|
|
551
|
-
toplevel: {
|
|
552
|
-
lines: number;
|
|
553
|
-
bytes: number;
|
|
554
|
-
cnt?: number | undefined;
|
|
555
|
-
};
|
|
556
|
-
code: {
|
|
557
|
-
lines: number;
|
|
558
|
-
bytes: number;
|
|
559
|
-
cnt?: number | undefined;
|
|
560
|
-
};
|
|
561
|
-
image: {
|
|
562
|
-
lines: number;
|
|
563
|
-
bytes: number;
|
|
564
|
-
cnt?: number | undefined;
|
|
565
|
-
};
|
|
566
|
-
total: {
|
|
567
|
-
lines: number;
|
|
568
|
-
bytes: number;
|
|
569
|
-
cnt?: number | undefined;
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
usage: {
|
|
573
|
-
given: {
|
|
574
|
-
prompt_tokens: number;
|
|
575
|
-
completion_tokens: number;
|
|
576
|
-
total_tokens: number;
|
|
577
|
-
}[];
|
|
578
|
-
calculated: {
|
|
579
|
-
prompt_tokens: number;
|
|
580
|
-
completion_tokens: number;
|
|
581
|
-
total_tokens: number;
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
fsRef?: ((In: {
|
|
585
|
-
appSlug: string;
|
|
586
|
-
ownerHandle?: string | undefined;
|
|
587
|
-
userSlug?: string | undefined;
|
|
588
|
-
mode: "dev" | "production";
|
|
589
|
-
fsId: string;
|
|
590
|
-
}) => import("arktype").Out<{
|
|
591
|
-
appSlug: string;
|
|
592
|
-
mode: "dev" | "production";
|
|
593
|
-
fsId: string;
|
|
594
|
-
ownerHandle: string;
|
|
595
|
-
}>) | undefined;
|
|
596
|
-
touchedPaths?: string[] | undefined;
|
|
597
|
-
settled?: {
|
|
598
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
599
|
-
entryTouched: boolean;
|
|
600
|
-
touchedCount: number;
|
|
601
|
-
applied: boolean;
|
|
602
|
-
} | undefined;
|
|
603
|
-
} | {
|
|
604
|
-
blockId: string;
|
|
605
|
-
streamId: string;
|
|
606
|
-
seq: number;
|
|
607
|
-
blockNr: number;
|
|
608
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
609
|
-
type: "block.toplevel.begin";
|
|
610
|
-
sectionId: string;
|
|
611
|
-
} | {
|
|
612
|
-
blockId: string;
|
|
613
|
-
streamId: string;
|
|
614
|
-
seq: number;
|
|
615
|
-
blockNr: number;
|
|
616
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
617
|
-
lineNr: number;
|
|
618
|
-
line: string;
|
|
619
|
-
type: "block.toplevel.line";
|
|
620
|
-
sectionId: string;
|
|
621
|
-
} | {
|
|
622
|
-
blockId: string;
|
|
623
|
-
streamId: string;
|
|
624
|
-
seq: number;
|
|
625
|
-
blockNr: number;
|
|
626
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
627
|
-
stats: {
|
|
628
|
-
lines: number;
|
|
629
|
-
bytes: number;
|
|
630
|
-
cnt?: number | undefined;
|
|
631
|
-
};
|
|
632
|
-
type: "block.toplevel.end";
|
|
633
|
-
sectionId: string;
|
|
634
|
-
} | {
|
|
635
|
-
blockId: string;
|
|
636
|
-
streamId: string;
|
|
637
|
-
seq: number;
|
|
638
|
-
blockNr: number;
|
|
639
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
640
|
-
type: "block.code.begin";
|
|
641
|
-
sectionId: string;
|
|
642
|
-
lang: string;
|
|
643
|
-
path?: string | undefined;
|
|
644
|
-
} | {
|
|
645
|
-
blockId: string;
|
|
646
|
-
streamId: string;
|
|
647
|
-
seq: number;
|
|
648
|
-
blockNr: number;
|
|
649
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
650
|
-
lineNr: number;
|
|
651
|
-
line: string;
|
|
652
|
-
type: "block.code.line";
|
|
653
|
-
sectionId: string;
|
|
654
|
-
lang: string;
|
|
655
|
-
path?: string | undefined;
|
|
656
|
-
} | {
|
|
657
|
-
blockId: string;
|
|
658
|
-
streamId: string;
|
|
659
|
-
seq: number;
|
|
660
|
-
blockNr: number;
|
|
661
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
662
|
-
stats: {
|
|
663
|
-
lines: number;
|
|
664
|
-
bytes: number;
|
|
665
|
-
cnt?: number | undefined;
|
|
666
|
-
};
|
|
667
|
-
type: "block.code.end";
|
|
668
|
-
sectionId: string;
|
|
669
|
-
lang: string;
|
|
670
|
-
path?: string | undefined;
|
|
671
|
-
} | {
|
|
672
|
-
blockId: string;
|
|
673
|
-
streamId: string;
|
|
674
|
-
seq: number;
|
|
675
|
-
blockNr: number;
|
|
676
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
677
|
-
type: "block.code.truncated";
|
|
678
|
-
sectionId: string;
|
|
679
|
-
lang: string;
|
|
680
|
-
path?: string | undefined;
|
|
681
|
-
reason: string;
|
|
682
|
-
kind: string;
|
|
683
|
-
truncatedAtLine: number;
|
|
684
|
-
errorCount: number;
|
|
685
|
-
} | {
|
|
686
|
-
blockId: string;
|
|
687
|
-
streamId: string;
|
|
688
|
-
seq: number;
|
|
689
|
-
blockNr: number;
|
|
690
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
691
|
-
stats: {
|
|
692
|
-
lines: number;
|
|
693
|
-
bytes: number;
|
|
694
|
-
cnt?: number | undefined;
|
|
695
|
-
};
|
|
696
|
-
type: "block.image";
|
|
697
|
-
sectionId: string;
|
|
698
|
-
url?: string | undefined;
|
|
699
|
-
uploadId?: string | undefined;
|
|
700
|
-
cid?: string | undefined;
|
|
701
|
-
mimeType?: string | undefined;
|
|
702
|
-
size?: number | undefined;
|
|
703
|
-
docWritten?: boolean | undefined;
|
|
704
|
-
} | {
|
|
705
|
-
blockId: string;
|
|
706
|
-
streamId: string;
|
|
707
|
-
seq: number;
|
|
708
|
-
blockNr: number;
|
|
709
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
710
|
-
type: "block.stats";
|
|
711
|
-
stats: {
|
|
712
|
-
toplevel: {
|
|
713
|
-
lines: number;
|
|
714
|
-
bytes: number;
|
|
715
|
-
cnt?: number | undefined;
|
|
716
|
-
};
|
|
717
|
-
code: {
|
|
718
|
-
lines: number;
|
|
719
|
-
bytes: number;
|
|
720
|
-
cnt?: number | undefined;
|
|
721
|
-
};
|
|
722
|
-
image: {
|
|
723
|
-
lines: number;
|
|
724
|
-
bytes: number;
|
|
725
|
-
cnt?: number | undefined;
|
|
726
|
-
};
|
|
727
|
-
total: {
|
|
728
|
-
lines: number;
|
|
729
|
-
bytes: number;
|
|
730
|
-
cnt?: number | undefined;
|
|
731
|
-
};
|
|
732
|
-
};
|
|
733
|
-
usage: {
|
|
734
|
-
prompt_tokens: number;
|
|
735
|
-
completion_tokens: number;
|
|
736
|
-
total_tokens: number;
|
|
737
|
-
};
|
|
738
|
-
} | {
|
|
739
|
-
streamId: string;
|
|
740
|
-
chatId: string;
|
|
741
|
-
seq: number;
|
|
742
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
743
|
-
type: "prompt.block-begin";
|
|
744
|
-
} | {
|
|
745
|
-
streamId: string;
|
|
746
|
-
chatId: string;
|
|
747
|
-
seq: number;
|
|
748
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
749
|
-
type: "prompt.block-end";
|
|
750
|
-
} | {
|
|
751
537
|
streamId: string;
|
|
752
538
|
chatId: string;
|
|
753
539
|
seq: number;
|
|
@@ -827,15 +613,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
827
613
|
};
|
|
828
614
|
agentDispatched?: true | undefined;
|
|
829
615
|
platformInitiated?: true | undefined;
|
|
830
|
-
} | {
|
|
831
|
-
streamId: string;
|
|
832
|
-
chatId: string;
|
|
833
|
-
seq: number;
|
|
834
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
835
|
-
type: "prompt.error";
|
|
836
|
-
error: string;
|
|
837
|
-
code?: "turn-lost" | undefined;
|
|
838
|
-
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
839
616
|
} | {
|
|
840
617
|
streamId: string;
|
|
841
618
|
chatId: string;
|
|
@@ -892,39 +669,99 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
892
669
|
chatId: string;
|
|
893
670
|
seq: number;
|
|
894
671
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
895
|
-
type: "prompt.
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
672
|
+
type: "prompt.block-begin";
|
|
673
|
+
} | {
|
|
674
|
+
streamId: string;
|
|
675
|
+
chatId: string;
|
|
676
|
+
seq: number;
|
|
677
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
678
|
+
type: "prompt.error";
|
|
679
|
+
error: string;
|
|
680
|
+
code?: "turn-lost" | undefined;
|
|
681
|
+
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
streamId: string;
|
|
684
|
+
chatId: string;
|
|
685
|
+
seq: number;
|
|
686
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
687
|
+
type: "prompt.block-end";
|
|
688
|
+
} | {
|
|
689
|
+
streamId: string;
|
|
690
|
+
chatId: string;
|
|
691
|
+
seq: number;
|
|
692
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
693
|
+
type: "prompt.model-resolved";
|
|
694
|
+
model: string;
|
|
695
|
+
} | {
|
|
696
|
+
streamId: string;
|
|
697
|
+
chatId: string;
|
|
698
|
+
seq: number;
|
|
699
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
700
|
+
type: "prompt.fs-persisted";
|
|
701
|
+
fsRef: (In: {
|
|
702
|
+
appSlug: string;
|
|
703
|
+
ownerHandle?: string | undefined;
|
|
704
|
+
userSlug?: string | undefined;
|
|
705
|
+
mode: "dev" | "production";
|
|
706
|
+
fsId: string;
|
|
707
|
+
}) => import("arktype").Out<{
|
|
708
|
+
appSlug: string;
|
|
709
|
+
mode: "dev" | "production";
|
|
710
|
+
fsId: string;
|
|
711
|
+
ownerHandle: string;
|
|
712
|
+
}>;
|
|
713
|
+
} | {
|
|
714
|
+
streamId: string;
|
|
715
|
+
chatId: string;
|
|
716
|
+
seq: number;
|
|
717
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
718
|
+
type: "prompt.system-prompt";
|
|
719
|
+
text: string;
|
|
720
|
+
} | {
|
|
721
|
+
streamId: string;
|
|
722
|
+
chatId: string;
|
|
723
|
+
seq: number;
|
|
724
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
725
|
+
type: "prompt.raw";
|
|
726
|
+
text: string;
|
|
727
|
+
} | {
|
|
728
|
+
streamId: string;
|
|
729
|
+
chatId: string;
|
|
730
|
+
seq: number;
|
|
731
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
732
|
+
type: "prompt.dry-run-payload";
|
|
733
|
+
request: {
|
|
734
|
+
model?: string | undefined;
|
|
735
|
+
messages: ({
|
|
736
|
+
role: "assistant" | "system" | "user";
|
|
737
|
+
content: ({
|
|
738
|
+
type: "text";
|
|
739
|
+
text: string;
|
|
740
|
+
cache_control?: {
|
|
741
|
+
type: "ephemeral";
|
|
742
|
+
ttl?: "1h" | "5m" | undefined;
|
|
743
|
+
} | undefined;
|
|
744
|
+
} | {
|
|
745
|
+
type: "image_url";
|
|
746
|
+
image_url: {
|
|
747
|
+
url: string;
|
|
748
|
+
};
|
|
749
|
+
cache_control?: {
|
|
750
|
+
type: "ephemeral";
|
|
751
|
+
ttl?: "1h" | "5m" | undefined;
|
|
752
|
+
} | undefined;
|
|
753
|
+
} | {
|
|
754
|
+
type: "vibes_file";
|
|
755
|
+
uploadId: string;
|
|
756
|
+
name: string;
|
|
757
|
+
mimeType: string;
|
|
758
|
+
kind: "image" | "text";
|
|
759
|
+
originalUploadId?: string | undefined;
|
|
760
|
+
size?: number | undefined;
|
|
761
|
+
})[];
|
|
762
|
+
} | {
|
|
763
|
+
role: "assistant";
|
|
764
|
+
content: string | null;
|
|
928
765
|
tool_calls: {
|
|
929
766
|
id: string;
|
|
930
767
|
type: "function";
|
|
@@ -970,40 +807,22 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
970
807
|
chatId: string;
|
|
971
808
|
seq: number;
|
|
972
809
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
973
|
-
type: "prompt.
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
appSlug: string;
|
|
990
|
-
ownerHandle?: string | undefined;
|
|
991
|
-
userSlug?: string | undefined;
|
|
992
|
-
mode: "dev" | "production";
|
|
993
|
-
fsId: string;
|
|
994
|
-
}) => import("arktype").Out<{
|
|
995
|
-
appSlug: string;
|
|
996
|
-
mode: "dev" | "production";
|
|
997
|
-
fsId: string;
|
|
998
|
-
ownerHandle: string;
|
|
999
|
-
}>;
|
|
1000
|
-
} | {
|
|
1001
|
-
streamId: string;
|
|
1002
|
-
chatId: string;
|
|
1003
|
-
seq: number;
|
|
1004
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1005
|
-
type: "prompt.system-prompt";
|
|
1006
|
-
text: string;
|
|
810
|
+
type: "prompt.agent-evidence";
|
|
811
|
+
evidence: {
|
|
812
|
+
kind: "active" | "call" | "dispatch" | "idle" | "receipt" | "result";
|
|
813
|
+
sessionId?: string | undefined;
|
|
814
|
+
callId?: string | undefined;
|
|
815
|
+
handleId?: string | undefined;
|
|
816
|
+
buildHandleId?: string | undefined;
|
|
817
|
+
supersedes?: string | undefined;
|
|
818
|
+
queued?: boolean | undefined;
|
|
819
|
+
saved?: boolean | undefined;
|
|
820
|
+
ok?: boolean | undefined;
|
|
821
|
+
fsId?: string | undefined;
|
|
822
|
+
name?: string | undefined;
|
|
823
|
+
text?: string | undefined;
|
|
824
|
+
truncated?: boolean | undefined;
|
|
825
|
+
};
|
|
1007
826
|
} | {
|
|
1008
827
|
streamId: string;
|
|
1009
828
|
chatId: string;
|
|
@@ -1056,27 +875,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
1056
875
|
} | undefined;
|
|
1057
876
|
};
|
|
1058
877
|
description: string;
|
|
1059
|
-
} | {
|
|
1060
|
-
streamId: string;
|
|
1061
|
-
chatId: string;
|
|
1062
|
-
seq: number;
|
|
1063
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1064
|
-
type: "prompt.agent-evidence";
|
|
1065
|
-
evidence: {
|
|
1066
|
-
kind: "active" | "call" | "dispatch" | "idle" | "receipt" | "result";
|
|
1067
|
-
sessionId?: string | undefined;
|
|
1068
|
-
callId?: string | undefined;
|
|
1069
|
-
handleId?: string | undefined;
|
|
1070
|
-
buildHandleId?: string | undefined;
|
|
1071
|
-
supersedes?: string | undefined;
|
|
1072
|
-
queued?: boolean | undefined;
|
|
1073
|
-
saved?: boolean | undefined;
|
|
1074
|
-
ok?: boolean | undefined;
|
|
1075
|
-
fsId?: string | undefined;
|
|
1076
|
-
name?: string | undefined;
|
|
1077
|
-
text?: string | undefined;
|
|
1078
|
-
truncated?: boolean | undefined;
|
|
1079
|
-
};
|
|
1080
878
|
} | {
|
|
1081
879
|
type: "prompt.status";
|
|
1082
880
|
streamId: string;
|
|
@@ -1089,6 +887,14 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
1089
887
|
name: string;
|
|
1090
888
|
path?: string | undefined;
|
|
1091
889
|
}[];
|
|
890
|
+
} | {
|
|
891
|
+
streamId: string;
|
|
892
|
+
chatId: string;
|
|
893
|
+
seq: number;
|
|
894
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
895
|
+
type: "prompt.notice";
|
|
896
|
+
kind: "edits-incomplete";
|
|
897
|
+
path?: string | undefined;
|
|
1092
898
|
} | {
|
|
1093
899
|
type: "prompt.research";
|
|
1094
900
|
version: 1;
|
|
@@ -1127,6 +933,208 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
1127
933
|
}[];
|
|
1128
934
|
completedAt: string;
|
|
1129
935
|
errorCode?: string | undefined;
|
|
936
|
+
} | {
|
|
937
|
+
blockId: string;
|
|
938
|
+
streamId: string;
|
|
939
|
+
seq: number;
|
|
940
|
+
blockNr: number;
|
|
941
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
942
|
+
type: "block.begin";
|
|
943
|
+
} | {
|
|
944
|
+
blockId: string;
|
|
945
|
+
streamId: string;
|
|
946
|
+
seq: number;
|
|
947
|
+
blockNr: number;
|
|
948
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
949
|
+
type: "block.end";
|
|
950
|
+
stats: {
|
|
951
|
+
toplevel: {
|
|
952
|
+
lines: number;
|
|
953
|
+
bytes: number;
|
|
954
|
+
cnt?: number | undefined;
|
|
955
|
+
};
|
|
956
|
+
code: {
|
|
957
|
+
lines: number;
|
|
958
|
+
bytes: number;
|
|
959
|
+
cnt?: number | undefined;
|
|
960
|
+
};
|
|
961
|
+
image: {
|
|
962
|
+
lines: number;
|
|
963
|
+
bytes: number;
|
|
964
|
+
cnt?: number | undefined;
|
|
965
|
+
};
|
|
966
|
+
total: {
|
|
967
|
+
lines: number;
|
|
968
|
+
bytes: number;
|
|
969
|
+
cnt?: number | undefined;
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
usage: {
|
|
973
|
+
given: {
|
|
974
|
+
prompt_tokens: number;
|
|
975
|
+
completion_tokens: number;
|
|
976
|
+
total_tokens: number;
|
|
977
|
+
}[];
|
|
978
|
+
calculated: {
|
|
979
|
+
prompt_tokens: number;
|
|
980
|
+
completion_tokens: number;
|
|
981
|
+
total_tokens: number;
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
fsRef?: ((In: {
|
|
985
|
+
appSlug: string;
|
|
986
|
+
ownerHandle?: string | undefined;
|
|
987
|
+
userSlug?: string | undefined;
|
|
988
|
+
mode: "dev" | "production";
|
|
989
|
+
fsId: string;
|
|
990
|
+
}) => import("arktype").Out<{
|
|
991
|
+
appSlug: string;
|
|
992
|
+
mode: "dev" | "production";
|
|
993
|
+
fsId: string;
|
|
994
|
+
ownerHandle: string;
|
|
995
|
+
}>) | undefined;
|
|
996
|
+
touchedPaths?: string[] | undefined;
|
|
997
|
+
settled?: {
|
|
998
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
999
|
+
entryTouched: boolean;
|
|
1000
|
+
touchedCount: number;
|
|
1001
|
+
applied: boolean;
|
|
1002
|
+
} | undefined;
|
|
1003
|
+
} | {
|
|
1004
|
+
blockId: string;
|
|
1005
|
+
streamId: string;
|
|
1006
|
+
seq: number;
|
|
1007
|
+
blockNr: number;
|
|
1008
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1009
|
+
type: "block.stats";
|
|
1010
|
+
stats: {
|
|
1011
|
+
toplevel: {
|
|
1012
|
+
lines: number;
|
|
1013
|
+
bytes: number;
|
|
1014
|
+
cnt?: number | undefined;
|
|
1015
|
+
};
|
|
1016
|
+
code: {
|
|
1017
|
+
lines: number;
|
|
1018
|
+
bytes: number;
|
|
1019
|
+
cnt?: number | undefined;
|
|
1020
|
+
};
|
|
1021
|
+
image: {
|
|
1022
|
+
lines: number;
|
|
1023
|
+
bytes: number;
|
|
1024
|
+
cnt?: number | undefined;
|
|
1025
|
+
};
|
|
1026
|
+
total: {
|
|
1027
|
+
lines: number;
|
|
1028
|
+
bytes: number;
|
|
1029
|
+
cnt?: number | undefined;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
usage: {
|
|
1033
|
+
prompt_tokens: number;
|
|
1034
|
+
completion_tokens: number;
|
|
1035
|
+
total_tokens: number;
|
|
1036
|
+
};
|
|
1037
|
+
} | {
|
|
1038
|
+
blockId: string;
|
|
1039
|
+
streamId: string;
|
|
1040
|
+
seq: number;
|
|
1041
|
+
blockNr: number;
|
|
1042
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1043
|
+
stats: {
|
|
1044
|
+
lines: number;
|
|
1045
|
+
bytes: number;
|
|
1046
|
+
cnt?: number | undefined;
|
|
1047
|
+
};
|
|
1048
|
+
type: "block.image";
|
|
1049
|
+
sectionId: string;
|
|
1050
|
+
url?: string | undefined;
|
|
1051
|
+
uploadId?: string | undefined;
|
|
1052
|
+
cid?: string | undefined;
|
|
1053
|
+
mimeType?: string | undefined;
|
|
1054
|
+
size?: number | undefined;
|
|
1055
|
+
docWritten?: boolean | undefined;
|
|
1056
|
+
} | {
|
|
1057
|
+
blockId: string;
|
|
1058
|
+
streamId: string;
|
|
1059
|
+
seq: number;
|
|
1060
|
+
blockNr: number;
|
|
1061
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1062
|
+
type: "block.code.begin";
|
|
1063
|
+
sectionId: string;
|
|
1064
|
+
lang: string;
|
|
1065
|
+
path?: string | undefined;
|
|
1066
|
+
} | {
|
|
1067
|
+
blockId: string;
|
|
1068
|
+
streamId: string;
|
|
1069
|
+
seq: number;
|
|
1070
|
+
blockNr: number;
|
|
1071
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1072
|
+
lineNr: number;
|
|
1073
|
+
line: string;
|
|
1074
|
+
type: "block.code.line";
|
|
1075
|
+
sectionId: string;
|
|
1076
|
+
lang: string;
|
|
1077
|
+
path?: string | undefined;
|
|
1078
|
+
} | {
|
|
1079
|
+
blockId: string;
|
|
1080
|
+
streamId: string;
|
|
1081
|
+
seq: number;
|
|
1082
|
+
blockNr: number;
|
|
1083
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1084
|
+
stats: {
|
|
1085
|
+
lines: number;
|
|
1086
|
+
bytes: number;
|
|
1087
|
+
cnt?: number | undefined;
|
|
1088
|
+
};
|
|
1089
|
+
type: "block.code.end";
|
|
1090
|
+
sectionId: string;
|
|
1091
|
+
lang: string;
|
|
1092
|
+
path?: string | undefined;
|
|
1093
|
+
} | {
|
|
1094
|
+
blockId: string;
|
|
1095
|
+
streamId: string;
|
|
1096
|
+
seq: number;
|
|
1097
|
+
blockNr: number;
|
|
1098
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1099
|
+
type: "block.code.truncated";
|
|
1100
|
+
sectionId: string;
|
|
1101
|
+
lang: string;
|
|
1102
|
+
path?: string | undefined;
|
|
1103
|
+
reason: string;
|
|
1104
|
+
kind: string;
|
|
1105
|
+
truncatedAtLine: number;
|
|
1106
|
+
errorCount: number;
|
|
1107
|
+
} | {
|
|
1108
|
+
blockId: string;
|
|
1109
|
+
streamId: string;
|
|
1110
|
+
seq: number;
|
|
1111
|
+
blockNr: number;
|
|
1112
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1113
|
+
type: "block.toplevel.begin";
|
|
1114
|
+
sectionId: string;
|
|
1115
|
+
} | {
|
|
1116
|
+
blockId: string;
|
|
1117
|
+
streamId: string;
|
|
1118
|
+
seq: number;
|
|
1119
|
+
blockNr: number;
|
|
1120
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1121
|
+
lineNr: number;
|
|
1122
|
+
line: string;
|
|
1123
|
+
type: "block.toplevel.line";
|
|
1124
|
+
sectionId: string;
|
|
1125
|
+
} | {
|
|
1126
|
+
blockId: string;
|
|
1127
|
+
streamId: string;
|
|
1128
|
+
seq: number;
|
|
1129
|
+
blockNr: number;
|
|
1130
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1131
|
+
stats: {
|
|
1132
|
+
lines: number;
|
|
1133
|
+
bytes: number;
|
|
1134
|
+
cnt?: number | undefined;
|
|
1135
|
+
};
|
|
1136
|
+
type: "block.toplevel.end";
|
|
1137
|
+
sectionId: string;
|
|
1130
1138
|
})[];
|
|
1131
1139
|
}, {}>;
|
|
1132
1140
|
export type ResGetApplicationChat = typeof resGetApplicationChat.infer;
|
package/cf-env.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ export interface CFEnv {
|
|
|
72
72
|
VIBES_THREADS_APP_CLIENT_SECRET?: string;
|
|
73
73
|
VIBES_INSTAGRAM_APP_CLIENT_ID?: string;
|
|
74
74
|
VIBES_INSTAGRAM_APP_CLIENT_SECRET?: string;
|
|
75
|
+
VIBES_TIKTOK_APP_CLIENT_ID?: string;
|
|
76
|
+
VIBES_TIKTOK_APP_CLIENT_SECRET?: string;
|
|
77
|
+
VIBES_LINKEDIN_APP_CLIENT_ID?: string;
|
|
78
|
+
VIBES_LINKEDIN_APP_CLIENT_SECRET?: string;
|
|
75
79
|
APNS_TEAM_ID?: string;
|
|
76
80
|
APNS_KEY_ID?: string;
|
|
77
81
|
APNS_PRIVATE_KEY?: string;
|