@vibes.diy/api-types 14.3.5 → 14.3.7

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/agent-tools.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare const createVibeToolInput: import("arktype/internal/variants/obje
10
10
  enrichedPrompt?: string | undefined;
11
11
  textureNote?: string | undefined;
12
12
  privacySensitive?: boolean | undefined;
13
+ codegen?: boolean | undefined;
13
14
  deferred?: {
14
15
  access?: {
15
16
  needed: boolean;
@@ -60,8 +61,9 @@ export declare const BUILD_RESULT_NEXT = "its [build result] arrives in this con
60
61
  export declare const QUEUED_BUILD_NEXT = "it starts when the current build lands \u2014 you will see [queued edit], then its [build result], which names the files it changed, whether the entry file was among them, and the version it saved; no lookup is needed, and a read after it is only for a question the report does not answer";
61
62
  export declare const COMMIT_RESULT_NEXT = "its [commit result] arrives in this conversation by itself and names the version it saved and the files in it; no lookup is needed, and a read after it is only for a question the report does not answer";
62
63
  export declare const QUEUED_EDIT_STARTED_NEXT = "Its [build result] arrives here by itself; no lookup is needed.";
64
+ export declare const DIRECT_WRITE_NEXT = "the app exists at its address with no files, and no build is coming; write App.jsx (and access.js or backend.js if the app needs them) with write_file, run validate, then commit_version \u2014 its [commit result] arrives in this conversation by itself and names the version it saved";
63
65
  export declare const agentBuildDispatched: import("arktype/internal/variants/object.ts").ObjectType<{
64
- state: "building" | "queued";
66
+ state: "building" | "created" | "queued";
65
67
  next?: string | undefined;
66
68
  chatId: string;
67
69
  ownerHandle: string;
package/agent-tools.js CHANGED
@@ -10,6 +10,7 @@ export const createVibeToolInput = lazyType(() => type({
10
10
  "enrichedPrompt?": "string",
11
11
  "textureNote?": "string",
12
12
  "privacySensitive?": "boolean",
13
+ "codegen?": "boolean",
13
14
  "deferred?": {
14
15
  "access?": { needed: "boolean", why: "string" },
15
16
  "backend?": { recommended: "boolean", why: "string" },
@@ -52,8 +53,9 @@ export const BUILD_RESULT_NEXT = "its [build result] arrives in this conversatio
52
53
  export const QUEUED_BUILD_NEXT = "it starts when the current build lands — you will see [queued edit], then its [build result], which names the files it changed, whether the entry file was among them, and the version it saved; no lookup is needed, and a read after it is only for a question the report does not answer";
53
54
  export const COMMIT_RESULT_NEXT = "its [commit result] arrives in this conversation by itself and names the version it saved and the files in it; no lookup is needed, and a read after it is only for a question the report does not answer";
54
55
  export const QUEUED_EDIT_STARTED_NEXT = "Its [build result] arrives here by itself; no lookup is needed.";
56
+ export const DIRECT_WRITE_NEXT = "the app exists at its address with no files, and no build is coming; write App.jsx (and access.js or backend.js if the app needs them) with write_file, run validate, then commit_version — its [commit result] arrives in this conversation by itself and names the version it saved";
55
57
  export const agentBuildDispatched = lazyType(() => type({
56
- state: "'building' | 'queued'",
58
+ state: "'building' | 'queued' | 'created'",
57
59
  "next?": "string",
58
60
  chatId: "string",
59
61
  ownerHandle: "string",
@@ -1 +1 @@
1
- {"version":3,"file":"agent-tools.js","sourceRoot":"","sources":["../jsr/agent-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA4B1C,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC/C,IAAI,CAAC;IAEH,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE;IAC3D,kBAAkB,EAAE,QAAQ;IAC5B,QAAQ,EAAE,QAAQ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,QAAQ;IAChB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IASjB,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,QAAQ;IAcrB,eAAe,EAAE,UAAU;IAC3B,SAAS,EAAE,UAAU;IAKrB,YAAY,EAAE,SAAS;IAOvB,UAAU,EAAE;QACV,UAAU,EAAE,UAAU;QACtB,eAAe,EAAE,UAAU;QAM3B,QAAQ,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;KAC/C;IAID,WAAW,EAAE;QACX,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE;QAC5C,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE;KACnD;IAGD,QAAQ,EAAE,QAAQ;CACnB,CAAC,CACH,CAAC;AAIF,MAAM,UAAU,sBAAsB,CAAC,GAAY;IACjD,OAAO,CAAC,CAAC,oBAAoB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC;AAUD,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC7C,IAAI,CAAC;IACH,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IAEjB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;CAClB,CAAC,CACH,CAAC;AAIF,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC9C,OAAO,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
package/app.d.ts CHANGED
@@ -538,208 +538,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
538
538
  appSlug?: string | undefined;
539
539
  ownerHandle?: string | undefined;
540
540
  blocks: ({
541
- blockId: string;
542
- streamId: string;
543
- seq: number;
544
- blockNr: number;
545
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
546
- type: "block.begin";
547
- } | {
548
- blockId: string;
549
- streamId: string;
550
- seq: number;
551
- blockNr: number;
552
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
553
- type: "block.end";
554
- stats: {
555
- toplevel: {
556
- lines: number;
557
- bytes: number;
558
- cnt?: number | undefined;
559
- };
560
- code: {
561
- lines: number;
562
- bytes: number;
563
- cnt?: number | undefined;
564
- };
565
- image: {
566
- lines: number;
567
- bytes: number;
568
- cnt?: number | undefined;
569
- };
570
- total: {
571
- lines: number;
572
- bytes: number;
573
- cnt?: number | undefined;
574
- };
575
- };
576
- usage: {
577
- given: {
578
- prompt_tokens: number;
579
- completion_tokens: number;
580
- total_tokens: number;
581
- }[];
582
- calculated: {
583
- prompt_tokens: number;
584
- completion_tokens: number;
585
- total_tokens: number;
586
- };
587
- };
588
- fsRef?: ((In: {
589
- appSlug: string;
590
- ownerHandle?: string | undefined;
591
- userSlug?: string | undefined;
592
- mode: "dev" | "production";
593
- fsId: string;
594
- }) => import("arktype").Out<{
595
- appSlug: string;
596
- mode: "dev" | "production";
597
- fsId: string;
598
- ownerHandle: string;
599
- }>) | undefined;
600
- touchedPaths?: string[] | undefined;
601
- settled?: {
602
- reach: "companion-only" | "entry" | "none" | "server-only";
603
- entryTouched: boolean;
604
- touchedCount: number;
605
- applied: boolean;
606
- } | undefined;
607
- } | {
608
- blockId: string;
609
- streamId: string;
610
- seq: number;
611
- blockNr: number;
612
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
613
- type: "block.toplevel.begin";
614
- sectionId: string;
615
- } | {
616
- blockId: string;
617
- streamId: string;
618
- seq: number;
619
- blockNr: number;
620
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
621
- lineNr: number;
622
- line: string;
623
- type: "block.toplevel.line";
624
- sectionId: string;
625
- } | {
626
- blockId: string;
627
- streamId: string;
628
- seq: number;
629
- blockNr: number;
630
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
631
- stats: {
632
- lines: number;
633
- bytes: number;
634
- cnt?: number | undefined;
635
- };
636
- type: "block.toplevel.end";
637
- sectionId: string;
638
- } | {
639
- blockId: string;
640
- streamId: string;
641
- seq: number;
642
- blockNr: number;
643
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
644
- type: "block.code.begin";
645
- sectionId: string;
646
- lang: string;
647
- path?: string | undefined;
648
- } | {
649
- blockId: string;
650
- streamId: string;
651
- seq: number;
652
- blockNr: number;
653
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
654
- lineNr: number;
655
- line: string;
656
- type: "block.code.line";
657
- sectionId: string;
658
- lang: string;
659
- path?: string | undefined;
660
- } | {
661
- blockId: string;
662
- streamId: string;
663
- seq: number;
664
- blockNr: number;
665
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
666
- stats: {
667
- lines: number;
668
- bytes: number;
669
- cnt?: number | undefined;
670
- };
671
- type: "block.code.end";
672
- sectionId: string;
673
- lang: string;
674
- path?: string | undefined;
675
- } | {
676
- blockId: string;
677
- streamId: string;
678
- seq: number;
679
- blockNr: number;
680
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
681
- type: "block.code.truncated";
682
- sectionId: string;
683
- lang: string;
684
- path?: string | undefined;
685
- reason: string;
686
- kind: string;
687
- truncatedAtLine: number;
688
- errorCount: number;
689
- } | {
690
- blockId: string;
691
- streamId: string;
692
- seq: number;
693
- blockNr: number;
694
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
695
- stats: {
696
- lines: number;
697
- bytes: number;
698
- cnt?: number | undefined;
699
- };
700
- type: "block.image";
701
- sectionId: string;
702
- url?: string | undefined;
703
- uploadId?: string | undefined;
704
- cid?: string | undefined;
705
- mimeType?: string | undefined;
706
- size?: number | undefined;
707
- docWritten?: boolean | undefined;
708
- } | {
709
- blockId: string;
710
- streamId: string;
711
- seq: number;
712
- blockNr: number;
713
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
714
- type: "block.stats";
715
- stats: {
716
- toplevel: {
717
- lines: number;
718
- bytes: number;
719
- cnt?: number | undefined;
720
- };
721
- code: {
722
- lines: number;
723
- bytes: number;
724
- cnt?: number | undefined;
725
- };
726
- image: {
727
- lines: number;
728
- bytes: number;
729
- cnt?: number | undefined;
730
- };
731
- total: {
732
- lines: number;
733
- bytes: number;
734
- cnt?: number | undefined;
735
- };
736
- };
737
- usage: {
738
- prompt_tokens: number;
739
- completion_tokens: number;
740
- total_tokens: number;
741
- };
742
- } | {
743
541
  streamId: string;
744
542
  chatId: string;
745
543
  seq: number;
@@ -1147,6 +945,208 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
1147
945
  }[];
1148
946
  completedAt: string;
1149
947
  errorCode?: string | undefined;
948
+ } | {
949
+ blockId: string;
950
+ streamId: string;
951
+ seq: number;
952
+ blockNr: number;
953
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
954
+ type: "block.begin";
955
+ } | {
956
+ blockId: string;
957
+ streamId: string;
958
+ seq: number;
959
+ blockNr: number;
960
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
961
+ type: "block.end";
962
+ stats: {
963
+ toplevel: {
964
+ lines: number;
965
+ bytes: number;
966
+ cnt?: number | undefined;
967
+ };
968
+ code: {
969
+ lines: number;
970
+ bytes: number;
971
+ cnt?: number | undefined;
972
+ };
973
+ image: {
974
+ lines: number;
975
+ bytes: number;
976
+ cnt?: number | undefined;
977
+ };
978
+ total: {
979
+ lines: number;
980
+ bytes: number;
981
+ cnt?: number | undefined;
982
+ };
983
+ };
984
+ usage: {
985
+ given: {
986
+ prompt_tokens: number;
987
+ completion_tokens: number;
988
+ total_tokens: number;
989
+ }[];
990
+ calculated: {
991
+ prompt_tokens: number;
992
+ completion_tokens: number;
993
+ total_tokens: number;
994
+ };
995
+ };
996
+ fsRef?: ((In: {
997
+ appSlug: string;
998
+ ownerHandle?: string | undefined;
999
+ userSlug?: string | undefined;
1000
+ mode: "dev" | "production";
1001
+ fsId: string;
1002
+ }) => import("arktype").Out<{
1003
+ appSlug: string;
1004
+ mode: "dev" | "production";
1005
+ fsId: string;
1006
+ ownerHandle: string;
1007
+ }>) | undefined;
1008
+ touchedPaths?: string[] | undefined;
1009
+ settled?: {
1010
+ reach: "companion-only" | "entry" | "none" | "server-only";
1011
+ entryTouched: boolean;
1012
+ touchedCount: number;
1013
+ applied: boolean;
1014
+ } | undefined;
1015
+ } | {
1016
+ blockId: string;
1017
+ streamId: string;
1018
+ seq: number;
1019
+ blockNr: number;
1020
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1021
+ type: "block.stats";
1022
+ stats: {
1023
+ toplevel: {
1024
+ lines: number;
1025
+ bytes: number;
1026
+ cnt?: number | undefined;
1027
+ };
1028
+ code: {
1029
+ lines: number;
1030
+ bytes: number;
1031
+ cnt?: number | undefined;
1032
+ };
1033
+ image: {
1034
+ lines: number;
1035
+ bytes: number;
1036
+ cnt?: number | undefined;
1037
+ };
1038
+ total: {
1039
+ lines: number;
1040
+ bytes: number;
1041
+ cnt?: number | undefined;
1042
+ };
1043
+ };
1044
+ usage: {
1045
+ prompt_tokens: number;
1046
+ completion_tokens: number;
1047
+ total_tokens: number;
1048
+ };
1049
+ } | {
1050
+ blockId: string;
1051
+ streamId: string;
1052
+ seq: number;
1053
+ blockNr: number;
1054
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1055
+ stats: {
1056
+ lines: number;
1057
+ bytes: number;
1058
+ cnt?: number | undefined;
1059
+ };
1060
+ type: "block.image";
1061
+ sectionId: string;
1062
+ url?: string | undefined;
1063
+ uploadId?: string | undefined;
1064
+ cid?: string | undefined;
1065
+ mimeType?: string | undefined;
1066
+ size?: number | undefined;
1067
+ docWritten?: boolean | undefined;
1068
+ } | {
1069
+ blockId: string;
1070
+ streamId: string;
1071
+ seq: number;
1072
+ blockNr: number;
1073
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1074
+ type: "block.code.begin";
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
+ lineNr: number;
1085
+ line: string;
1086
+ type: "block.code.line";
1087
+ sectionId: string;
1088
+ lang: string;
1089
+ path?: string | undefined;
1090
+ } | {
1091
+ blockId: string;
1092
+ streamId: string;
1093
+ seq: number;
1094
+ blockNr: number;
1095
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1096
+ stats: {
1097
+ lines: number;
1098
+ bytes: number;
1099
+ cnt?: number | undefined;
1100
+ };
1101
+ type: "block.code.end";
1102
+ sectionId: string;
1103
+ lang: string;
1104
+ path?: string | undefined;
1105
+ } | {
1106
+ blockId: string;
1107
+ streamId: string;
1108
+ seq: number;
1109
+ blockNr: number;
1110
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1111
+ type: "block.code.truncated";
1112
+ sectionId: string;
1113
+ lang: string;
1114
+ path?: string | undefined;
1115
+ reason: string;
1116
+ kind: string;
1117
+ truncatedAtLine: number;
1118
+ errorCount: number;
1119
+ } | {
1120
+ blockId: string;
1121
+ streamId: string;
1122
+ seq: number;
1123
+ blockNr: number;
1124
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1125
+ type: "block.toplevel.begin";
1126
+ sectionId: string;
1127
+ } | {
1128
+ blockId: string;
1129
+ streamId: string;
1130
+ seq: number;
1131
+ blockNr: number;
1132
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1133
+ lineNr: number;
1134
+ line: string;
1135
+ type: "block.toplevel.line";
1136
+ sectionId: string;
1137
+ } | {
1138
+ blockId: string;
1139
+ streamId: string;
1140
+ seq: number;
1141
+ blockNr: number;
1142
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1143
+ stats: {
1144
+ lines: number;
1145
+ bytes: number;
1146
+ cnt?: number | undefined;
1147
+ };
1148
+ type: "block.toplevel.end";
1149
+ sectionId: string;
1150
1150
  })[];
1151
1151
  }, {}>;
1152
1152
  export type ResGetApplicationChat = typeof resGetApplicationChat.infer;