@vibes.diy/api-types 14.3.58 → 14.3.64

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
@@ -7,6 +7,7 @@ export declare const createVibeToolInput: import("arktype/internal/variants/obje
7
7
  }[] | undefined;
8
8
  iconDescription?: string | undefined;
9
9
  theme?: string | undefined;
10
+ rooms?: unknown;
10
11
  enrichedPrompt?: string | undefined;
11
12
  textureNote?: string | undefined;
12
13
  privacySensitive?: boolean | undefined;
@@ -63,8 +64,6 @@ export declare const QUEUED_BUILD_NEXT = "it starts when the current build lands
63
64
  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";
64
65
  export declare const QUEUED_EDIT_STARTED_NEXT = "Its [build result] arrives here by itself; no lookup is needed.";
65
66
  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";
66
- export declare const DRAFT_ADOPTED_NEXT = "the app already holds a draft built from the person's sentence, saved as its current version, and no new build is coming; read its files, then finish it with edit_vibe \u2014 work through the draft's note and fold each opens finding under draft into that same edit";
67
- export declare const DRAFT_ADOPTED_FOLD_NEXT = "the app already holds a draft built from the person's sentence, saved as its current version, and no new build is coming; read its files, then finish it with ONE edit_vibe that is also the access pass: send the skills and instruction under `adoptFold` in that same edit, working through the draft's note and folding each opens finding under draft together with them \u2014 the platform runs a pass of its own only when your edit lands without the rules, so everything the app still needs ships in this one edit. When `adoptFold` names `backendWhy`, that server work ships in this same edit too.";
68
67
  export declare const agentBuildDispatched: import("arktype/internal/variants/object.ts").ObjectType<{
69
68
  state: "building" | "created" | "queued";
70
69
  next?: string | undefined;
@@ -95,18 +94,7 @@ export declare const agentBuildDispatched: import("arktype/internal/variants/obj
95
94
  } | undefined;
96
95
  } | undefined;
97
96
  theme?: string | undefined;
98
- draft?: {
99
- note: string;
100
- opensVerdict?: {
101
- opens: boolean;
102
- findings: string[];
103
- } | undefined;
104
- } | undefined;
105
- adoptFold?: {
106
- skills: string[];
107
- instruction: string;
108
- backendWhy?: string | undefined;
109
- } | undefined;
97
+ roomShortlist?: string[] | undefined;
110
98
  }, {}>;
111
99
  export type AgentBuildDispatched = typeof agentBuildDispatched.infer;
112
100
  export declare function isAgentBuildDispatched(obj: unknown): obj is AgentBuildDispatched;
package/agent-tools.js CHANGED
@@ -8,6 +8,7 @@ export const createVibeToolInput = lazyType(() => type({
8
8
  "pairs?": type({ title: "string", slug: "string" }).array(),
9
9
  "iconDescription?": "string",
10
10
  "theme?": "string",
11
+ "rooms?": "unknown",
11
12
  "enrichedPrompt?": "string",
12
13
  "textureNote?": "string",
13
14
  "privacySensitive?": "boolean",
@@ -56,8 +57,6 @@ export const QUEUED_BUILD_NEXT = "it starts when the current build lands — you
56
57
  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";
57
58
  export const QUEUED_EDIT_STARTED_NEXT = "Its [build result] arrives here by itself; no lookup is needed.";
58
59
  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";
59
- export const DRAFT_ADOPTED_NEXT = "the app already holds a draft built from the person's sentence, saved as its current version, and no new build is coming; read its files, then finish it with edit_vibe — work through the draft's note and fold each opens finding under draft into that same edit";
60
- export const DRAFT_ADOPTED_FOLD_NEXT = "the app already holds a draft built from the person's sentence, saved as its current version, and no new build is coming; read its files, then finish it with ONE edit_vibe that is also the access pass: send the skills and instruction under `adoptFold` in that same edit, working through the draft's note and folding each opens finding under draft together with them — the platform runs a pass of its own only when your edit lands without the rules, so everything the app still needs ships in this one edit. When `adoptFold` names `backendWhy`, that server work ships in this same edit too.";
61
60
  export const agentBuildDispatched = lazyType(() => type({
62
61
  state: "'building' | 'queued' | 'created'",
63
62
  "next?": "string",
@@ -79,15 +78,7 @@ export const agentBuildDispatched = lazyType(() => type({
79
78
  "backend?": { recommended: "true", why: "string" },
80
79
  },
81
80
  "theme?": "string",
82
- "draft?": {
83
- note: "string",
84
- "opensVerdict?": { opens: "boolean", findings: "string[]" },
85
- },
86
- "adoptFold?": {
87
- skills: "string[]",
88
- instruction: "string",
89
- "backendWhy?": "string",
90
- },
81
+ "roomShortlist?": "string[]",
91
82
  }));
92
83
  export function isAgentBuildDispatched(obj) {
93
84
  return !(agentBuildDispatched(obj) instanceof type.errors);
@@ -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;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA4BxC,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;IAClB,iBAAiB,EAAE,QAAQ;IAC3B,cAAc,EAAE,QAAQ;IACxB,mBAAm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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
@@ -544,6 +544,221 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
544
544
  appSlug?: string | undefined;
545
545
  ownerHandle?: string | undefined;
546
546
  blocks: ({
547
+ blockId: string;
548
+ streamId: string;
549
+ seq: number;
550
+ blockNr: number;
551
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
552
+ type: "block.begin";
553
+ } | {
554
+ blockId: string;
555
+ streamId: string;
556
+ seq: number;
557
+ blockNr: number;
558
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
559
+ type: "block.end";
560
+ stats: {
561
+ toplevel: {
562
+ lines: number;
563
+ bytes: number;
564
+ cnt?: number | undefined;
565
+ };
566
+ code: {
567
+ lines: number;
568
+ bytes: number;
569
+ cnt?: number | undefined;
570
+ };
571
+ image: {
572
+ lines: number;
573
+ bytes: number;
574
+ cnt?: number | undefined;
575
+ };
576
+ total: {
577
+ lines: number;
578
+ bytes: number;
579
+ cnt?: number | undefined;
580
+ };
581
+ };
582
+ usage: {
583
+ given: {
584
+ prompt_tokens: number;
585
+ completion_tokens: number;
586
+ total_tokens: number;
587
+ model?: string | undefined;
588
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
589
+ reasoningEffort?: string | undefined;
590
+ }[];
591
+ calculated: {
592
+ prompt_tokens: number;
593
+ completion_tokens: number;
594
+ total_tokens: number;
595
+ model?: string | undefined;
596
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
597
+ reasoningEffort?: string | undefined;
598
+ };
599
+ };
600
+ fsRef?: ((In: {
601
+ appSlug: string;
602
+ ownerHandle?: string | undefined;
603
+ userSlug?: string | undefined;
604
+ mode: "dev" | "production";
605
+ fsId: string;
606
+ }) => import("arktype").Out<{
607
+ appSlug: string;
608
+ mode: "dev" | "production";
609
+ fsId: string;
610
+ ownerHandle: string;
611
+ }>) | undefined;
612
+ touchedPaths?: string[] | undefined;
613
+ settled?: {
614
+ reach: "companion-only" | "entry" | "none" | "server-only";
615
+ entryTouched: boolean;
616
+ touchedCount: number;
617
+ applied: boolean;
618
+ } | undefined;
619
+ saveRepair?: {
620
+ repaired: string[];
621
+ attempts: number;
622
+ } | undefined;
623
+ } | {
624
+ blockId: string;
625
+ streamId: string;
626
+ seq: number;
627
+ blockNr: number;
628
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
629
+ type: "block.stats";
630
+ stats: {
631
+ toplevel: {
632
+ lines: number;
633
+ bytes: number;
634
+ cnt?: number | undefined;
635
+ };
636
+ code: {
637
+ lines: number;
638
+ bytes: number;
639
+ cnt?: number | undefined;
640
+ };
641
+ image: {
642
+ lines: number;
643
+ bytes: number;
644
+ cnt?: number | undefined;
645
+ };
646
+ total: {
647
+ lines: number;
648
+ bytes: number;
649
+ cnt?: number | undefined;
650
+ };
651
+ };
652
+ usage: {
653
+ prompt_tokens: number;
654
+ completion_tokens: number;
655
+ total_tokens: number;
656
+ model?: string | undefined;
657
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
658
+ reasoningEffort?: string | undefined;
659
+ };
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.image";
672
+ sectionId: string;
673
+ url?: string | undefined;
674
+ uploadId?: string | undefined;
675
+ cid?: string | undefined;
676
+ mimeType?: string | undefined;
677
+ size?: number | undefined;
678
+ docWritten?: boolean | undefined;
679
+ } | {
680
+ blockId: string;
681
+ streamId: string;
682
+ seq: number;
683
+ blockNr: number;
684
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
685
+ type: "block.code.begin";
686
+ sectionId: string;
687
+ lang: string;
688
+ path?: string | undefined;
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
+ lineNr: number;
696
+ line: string;
697
+ type: "block.code.line";
698
+ sectionId: string;
699
+ lang: string;
700
+ path?: string | undefined;
701
+ } | {
702
+ blockId: string;
703
+ streamId: string;
704
+ seq: number;
705
+ blockNr: number;
706
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
707
+ stats: {
708
+ lines: number;
709
+ bytes: number;
710
+ cnt?: number | undefined;
711
+ };
712
+ type: "block.code.end";
713
+ sectionId: string;
714
+ lang: string;
715
+ path?: string | undefined;
716
+ } | {
717
+ blockId: string;
718
+ streamId: string;
719
+ seq: number;
720
+ blockNr: number;
721
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
722
+ type: "block.code.truncated";
723
+ sectionId: string;
724
+ lang: string;
725
+ path?: string | undefined;
726
+ reason: string;
727
+ kind: string;
728
+ truncatedAtLine: number;
729
+ errorCount: number;
730
+ } | {
731
+ blockId: string;
732
+ streamId: string;
733
+ seq: number;
734
+ blockNr: number;
735
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
736
+ type: "block.toplevel.begin";
737
+ sectionId: string;
738
+ } | {
739
+ blockId: string;
740
+ streamId: string;
741
+ seq: number;
742
+ blockNr: number;
743
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
744
+ lineNr: number;
745
+ line: string;
746
+ type: "block.toplevel.line";
747
+ sectionId: string;
748
+ } | {
749
+ blockId: string;
750
+ streamId: string;
751
+ seq: number;
752
+ blockNr: number;
753
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
754
+ stats: {
755
+ lines: number;
756
+ bytes: number;
757
+ cnt?: number | undefined;
758
+ };
759
+ type: "block.toplevel.end";
760
+ sectionId: string;
761
+ } | {
547
762
  streamId: string;
548
763
  chatId: string;
549
764
  seq: number;
@@ -859,6 +1074,13 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
859
1074
  paper?: number | undefined;
860
1075
  fillLift?: number | undefined;
861
1076
  };
1077
+ pouf?: {
1078
+ lead: number;
1079
+ up?: number | undefined;
1080
+ down?: number | undefined;
1081
+ gap?: number | undefined;
1082
+ locked?: "home" | undefined;
1083
+ } | undefined;
862
1084
  } | undefined;
863
1085
  font?: string | undefined;
864
1086
  ornament?: {
@@ -967,221 +1189,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
967
1189
  }[];
968
1190
  completedAt: string;
969
1191
  errorCode?: string | undefined;
970
- } | {
971
- blockId: string;
972
- streamId: string;
973
- seq: number;
974
- blockNr: number;
975
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
976
- type: "block.begin";
977
- } | {
978
- blockId: string;
979
- streamId: string;
980
- seq: number;
981
- blockNr: number;
982
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
983
- type: "block.end";
984
- stats: {
985
- toplevel: {
986
- lines: number;
987
- bytes: number;
988
- cnt?: number | undefined;
989
- };
990
- code: {
991
- lines: number;
992
- bytes: number;
993
- cnt?: number | undefined;
994
- };
995
- image: {
996
- lines: number;
997
- bytes: number;
998
- cnt?: number | undefined;
999
- };
1000
- total: {
1001
- lines: number;
1002
- bytes: number;
1003
- cnt?: number | undefined;
1004
- };
1005
- };
1006
- usage: {
1007
- given: {
1008
- prompt_tokens: number;
1009
- completion_tokens: number;
1010
- total_tokens: number;
1011
- model?: string | undefined;
1012
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
1013
- reasoningEffort?: string | undefined;
1014
- }[];
1015
- calculated: {
1016
- prompt_tokens: number;
1017
- completion_tokens: number;
1018
- total_tokens: number;
1019
- model?: string | undefined;
1020
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
1021
- reasoningEffort?: string | undefined;
1022
- };
1023
- };
1024
- fsRef?: ((In: {
1025
- appSlug: string;
1026
- ownerHandle?: string | undefined;
1027
- userSlug?: string | undefined;
1028
- mode: "dev" | "production";
1029
- fsId: string;
1030
- }) => import("arktype").Out<{
1031
- appSlug: string;
1032
- mode: "dev" | "production";
1033
- fsId: string;
1034
- ownerHandle: string;
1035
- }>) | undefined;
1036
- touchedPaths?: string[] | undefined;
1037
- settled?: {
1038
- reach: "companion-only" | "entry" | "none" | "server-only";
1039
- entryTouched: boolean;
1040
- touchedCount: number;
1041
- applied: boolean;
1042
- } | undefined;
1043
- saveRepair?: {
1044
- repaired: string[];
1045
- attempts: number;
1046
- } | undefined;
1047
- } | {
1048
- blockId: string;
1049
- streamId: string;
1050
- seq: number;
1051
- blockNr: number;
1052
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1053
- type: "block.stats";
1054
- stats: {
1055
- toplevel: {
1056
- lines: number;
1057
- bytes: number;
1058
- cnt?: number | undefined;
1059
- };
1060
- code: {
1061
- lines: number;
1062
- bytes: number;
1063
- cnt?: number | undefined;
1064
- };
1065
- image: {
1066
- lines: number;
1067
- bytes: number;
1068
- cnt?: number | undefined;
1069
- };
1070
- total: {
1071
- lines: number;
1072
- bytes: number;
1073
- cnt?: number | undefined;
1074
- };
1075
- };
1076
- usage: {
1077
- prompt_tokens: number;
1078
- completion_tokens: number;
1079
- total_tokens: number;
1080
- model?: string | undefined;
1081
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
1082
- reasoningEffort?: string | undefined;
1083
- };
1084
- } | {
1085
- blockId: string;
1086
- streamId: string;
1087
- seq: number;
1088
- blockNr: number;
1089
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1090
- stats: {
1091
- lines: number;
1092
- bytes: number;
1093
- cnt?: number | undefined;
1094
- };
1095
- type: "block.image";
1096
- sectionId: string;
1097
- url?: string | undefined;
1098
- uploadId?: string | undefined;
1099
- cid?: string | undefined;
1100
- mimeType?: string | undefined;
1101
- size?: number | undefined;
1102
- docWritten?: boolean | undefined;
1103
- } | {
1104
- blockId: string;
1105
- streamId: string;
1106
- seq: number;
1107
- blockNr: number;
1108
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1109
- type: "block.code.begin";
1110
- sectionId: string;
1111
- lang: string;
1112
- path?: string | undefined;
1113
- } | {
1114
- blockId: string;
1115
- streamId: string;
1116
- seq: number;
1117
- blockNr: number;
1118
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1119
- lineNr: number;
1120
- line: string;
1121
- type: "block.code.line";
1122
- sectionId: string;
1123
- lang: string;
1124
- path?: string | undefined;
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.code.end";
1137
- sectionId: string;
1138
- lang: string;
1139
- path?: string | undefined;
1140
- } | {
1141
- blockId: string;
1142
- streamId: string;
1143
- seq: number;
1144
- blockNr: number;
1145
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1146
- type: "block.code.truncated";
1147
- sectionId: string;
1148
- lang: string;
1149
- path?: string | undefined;
1150
- reason: string;
1151
- kind: string;
1152
- truncatedAtLine: number;
1153
- errorCount: number;
1154
- } | {
1155
- blockId: string;
1156
- streamId: string;
1157
- seq: number;
1158
- blockNr: number;
1159
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1160
- type: "block.toplevel.begin";
1161
- sectionId: string;
1162
- } | {
1163
- blockId: string;
1164
- streamId: string;
1165
- seq: number;
1166
- blockNr: number;
1167
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1168
- lineNr: number;
1169
- line: string;
1170
- type: "block.toplevel.line";
1171
- sectionId: string;
1172
- } | {
1173
- blockId: string;
1174
- streamId: string;
1175
- seq: number;
1176
- blockNr: number;
1177
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1178
- stats: {
1179
- lines: number;
1180
- bytes: number;
1181
- cnt?: number | undefined;
1182
- };
1183
- type: "block.toplevel.end";
1184
- sectionId: string;
1185
1192
  })[];
1186
1193
  }, {}>;
1187
1194
  export type ResGetApplicationChat = typeof resGetApplicationChat.infer;
package/cf-env.d.ts CHANGED
@@ -43,6 +43,12 @@ export interface CFEnv {
43
43
  SESSIONS: DurableObjectNamespace;
44
44
  CODEGEN_SESSIONS: DurableObjectNamespace;
45
45
  USER_NOTIFY: DurableObjectNamespace;
46
+ CODEGEN_LANE?: string;
47
+ CODEGEN_ACTIVE_LANE?: string;
48
+ CODEGEN_LANE_A?: DurableObjectNamespace;
49
+ CODEGEN_LANE_B?: DurableObjectNamespace;
50
+ CODEGEN_LANE_C?: DurableObjectNamespace;
51
+ CODEGEN_LANE_D?: DurableObjectNamespace;
46
52
  BACKEND_DO: DurableObjectNamespace;
47
53
  BACKEND_ALARM_OWNER?: string;
48
54
  BACKEND_JS?: string;
@@ -52,14 +58,6 @@ export interface CFEnv {
52
58
  SAVE_IMPORT_SYNTH?: string;
53
59
  VIBES_DO_PROBES?: string;
54
60
  BACKEND_INTERNAL_SECRET?: string;
55
- DRAFT_LANE?: string;
56
- DRAFT_LANE_GUEST?: string;
57
- DRAFT_CLASSIFIER_MODEL?: string;
58
- DRAFT_BUILDER_MODEL?: string;
59
- DRAFT_LEASE_MS?: string;
60
- DRAFT_CLASSIFIER_TIMEOUT_MS?: string;
61
- DRAFT_VARIATION?: string;
62
- DRAFT_VARIATION_TIMEOUT_MS?: string;
63
61
  EMAIL_UNSUBSCRIBE_SECRET?: string;
64
62
  VIBES_ROOT_SWR?: string;
65
63
  VIBES_SERVICE: Queue;