promptopskit 0.7.1 → 0.8.1
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/README.md +39 -4
- package/SKILL.md +152 -2
- package/dist/{chunk-OWMP5NMV.js → chunk-5XH2GROP.js} +2 -2
- package/dist/{chunk-FICB2ZSK.js → chunk-DI7Q4T7A.js} +3 -3
- package/dist/{chunk-ULVY473P.js → chunk-E4GEKWVP.js} +31 -3
- package/dist/chunk-E4GEKWVP.js.map +1 -0
- package/dist/{chunk-3G3EAV7H.js → chunk-PDVUVZAU.js} +2 -2
- package/dist/chunk-RVAFVWR2.js +1760 -0
- package/dist/chunk-RVAFVWR2.js.map +1 -0
- package/dist/{chunk-35NN5F6O.js → chunk-UQLAWU67.js} +2 -2
- package/dist/{chunk-6NOUETAC.js → chunk-Z3DPPJNU.js} +2 -2
- package/dist/{chunk-R65RAHAG.js → chunk-ZVCKP4EM.js} +3 -3
- package/dist/cli/index.js +86 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +964 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -5
- package/dist/index.d.ts +45 -5
- package/dist/index.js +18 -10
- package/dist/index.js.map +1 -1
- package/dist/providers/anthropic.cjs +954 -42
- package/dist/providers/anthropic.cjs.map +1 -1
- package/dist/providers/anthropic.d.cts +2 -2
- package/dist/providers/anthropic.d.ts +2 -2
- package/dist/providers/anthropic.js +3 -3
- package/dist/providers/gemini.cjs +954 -42
- package/dist/providers/gemini.cjs.map +1 -1
- package/dist/providers/gemini.d.cts +2 -2
- package/dist/providers/gemini.d.ts +2 -2
- package/dist/providers/gemini.js +3 -3
- package/dist/providers/llmasaservice.cjs +954 -42
- package/dist/providers/llmasaservice.cjs.map +1 -1
- package/dist/providers/llmasaservice.d.cts +2 -2
- package/dist/providers/llmasaservice.d.ts +2 -2
- package/dist/providers/llmasaservice.js +4 -4
- package/dist/providers/openai-responses.cjs +954 -42
- package/dist/providers/openai-responses.cjs.map +1 -1
- package/dist/providers/openai-responses.d.cts +2 -2
- package/dist/providers/openai-responses.d.ts +2 -2
- package/dist/providers/openai-responses.js +3 -3
- package/dist/providers/openai.cjs +954 -42
- package/dist/providers/openai.cjs.map +1 -1
- package/dist/providers/openai.d.cts +2 -2
- package/dist/providers/openai.d.ts +2 -2
- package/dist/providers/openai.js +3 -3
- package/dist/providers/openrouter.cjs +954 -42
- package/dist/providers/openrouter.cjs.map +1 -1
- package/dist/providers/openrouter.d.cts +2 -2
- package/dist/providers/openrouter.d.ts +2 -2
- package/dist/providers/openrouter.js +4 -4
- package/dist/{schema-DBcSns_b.d.cts → schema-BgVLZ2u5.d.cts} +641 -0
- package/dist/{schema-DBcSns_b.d.ts → schema-BgVLZ2u5.d.ts} +641 -0
- package/dist/testing.cjs +27 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/{types-BlLXT5Qb.d.ts → types-2hnZmCkH.d.cts} +16 -3
- package/dist/{types-8T2D5KB5.d.cts → types-DgAT4jSR.d.ts} +16 -3
- package/dist/usagetap/index.d.cts +2 -2
- package/dist/usagetap/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-F552OBUV.js +0 -875
- package/dist/chunk-F552OBUV.js.map +0 -1
- package/dist/chunk-ULVY473P.js.map +0 -1
- /package/dist/{chunk-OWMP5NMV.js.map → chunk-5XH2GROP.js.map} +0 -0
- /package/dist/{chunk-FICB2ZSK.js.map → chunk-DI7Q4T7A.js.map} +0 -0
- /package/dist/{chunk-3G3EAV7H.js.map → chunk-PDVUVZAU.js.map} +0 -0
- /package/dist/{chunk-35NN5F6O.js.map → chunk-UQLAWU67.js.map} +0 -0
- /package/dist/{chunk-6NOUETAC.js.map → chunk-Z3DPPJNU.js.map} +0 -0
- /package/dist/{chunk-R65RAHAG.js.map → chunk-ZVCKP4EM.js.map} +0 -0
|
@@ -130,18 +130,89 @@ declare const PromptAssetOverridesSchema: z.ZodObject<{
|
|
|
130
130
|
enabled?: boolean | undefined;
|
|
131
131
|
aggressiveness?: number | undefined;
|
|
132
132
|
}>>;
|
|
133
|
+
heuristic: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
min_tokens: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
max_sentences: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
target_reduction: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
query: z.ZodOptional<z.ZodString>;
|
|
139
|
+
query_variable: z.ZodOptional<z.ZodString>;
|
|
140
|
+
json_to_toon: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
enabled?: boolean | undefined;
|
|
143
|
+
min_tokens?: number | undefined;
|
|
144
|
+
max_sentences?: number | undefined;
|
|
145
|
+
target_reduction?: number | undefined;
|
|
146
|
+
query?: string | undefined;
|
|
147
|
+
query_variable?: string | undefined;
|
|
148
|
+
json_to_toon?: boolean | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
enabled?: boolean | undefined;
|
|
151
|
+
min_tokens?: number | undefined;
|
|
152
|
+
max_sentences?: number | undefined;
|
|
153
|
+
target_reduction?: number | undefined;
|
|
154
|
+
query?: string | undefined;
|
|
155
|
+
query_variable?: string | undefined;
|
|
156
|
+
json_to_toon?: boolean | undefined;
|
|
157
|
+
}>>;
|
|
158
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
remove_comments: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
trim_indentation: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
collapse_blank_lines: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
enabled?: boolean | undefined;
|
|
165
|
+
remove_comments?: boolean | undefined;
|
|
166
|
+
trim_indentation?: boolean | undefined;
|
|
167
|
+
collapse_blank_lines?: boolean | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
enabled?: boolean | undefined;
|
|
170
|
+
remove_comments?: boolean | undefined;
|
|
171
|
+
trim_indentation?: boolean | undefined;
|
|
172
|
+
collapse_blank_lines?: boolean | undefined;
|
|
173
|
+
}>>;
|
|
133
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
code?: {
|
|
176
|
+
enabled?: boolean | undefined;
|
|
177
|
+
remove_comments?: boolean | undefined;
|
|
178
|
+
trim_indentation?: boolean | undefined;
|
|
179
|
+
collapse_blank_lines?: boolean | undefined;
|
|
180
|
+
} | undefined;
|
|
134
181
|
thetokencompany?: {
|
|
135
182
|
model?: string | undefined;
|
|
136
183
|
enabled?: boolean | undefined;
|
|
137
184
|
aggressiveness?: number | undefined;
|
|
138
185
|
} | undefined;
|
|
186
|
+
heuristic?: {
|
|
187
|
+
enabled?: boolean | undefined;
|
|
188
|
+
min_tokens?: number | undefined;
|
|
189
|
+
max_sentences?: number | undefined;
|
|
190
|
+
target_reduction?: number | undefined;
|
|
191
|
+
query?: string | undefined;
|
|
192
|
+
query_variable?: string | undefined;
|
|
193
|
+
json_to_toon?: boolean | undefined;
|
|
194
|
+
} | undefined;
|
|
139
195
|
}, {
|
|
196
|
+
code?: {
|
|
197
|
+
enabled?: boolean | undefined;
|
|
198
|
+
remove_comments?: boolean | undefined;
|
|
199
|
+
trim_indentation?: boolean | undefined;
|
|
200
|
+
collapse_blank_lines?: boolean | undefined;
|
|
201
|
+
} | undefined;
|
|
140
202
|
thetokencompany?: {
|
|
141
203
|
model?: string | undefined;
|
|
142
204
|
enabled?: boolean | undefined;
|
|
143
205
|
aggressiveness?: number | undefined;
|
|
144
206
|
} | undefined;
|
|
207
|
+
heuristic?: {
|
|
208
|
+
enabled?: boolean | undefined;
|
|
209
|
+
min_tokens?: number | undefined;
|
|
210
|
+
max_sentences?: number | undefined;
|
|
211
|
+
target_reduction?: number | undefined;
|
|
212
|
+
query?: string | undefined;
|
|
213
|
+
query_variable?: string | undefined;
|
|
214
|
+
json_to_toon?: boolean | undefined;
|
|
215
|
+
} | undefined;
|
|
145
216
|
}>>;
|
|
146
217
|
cache: z.ZodOptional<z.ZodObject<{
|
|
147
218
|
openai: z.ZodOptional<z.ZodObject<{
|
|
@@ -479,11 +550,26 @@ declare const PromptAssetOverridesSchema: z.ZodObject<{
|
|
|
479
550
|
schema_strict?: boolean | undefined;
|
|
480
551
|
} | undefined;
|
|
481
552
|
compression?: {
|
|
553
|
+
code?: {
|
|
554
|
+
enabled?: boolean | undefined;
|
|
555
|
+
remove_comments?: boolean | undefined;
|
|
556
|
+
trim_indentation?: boolean | undefined;
|
|
557
|
+
collapse_blank_lines?: boolean | undefined;
|
|
558
|
+
} | undefined;
|
|
482
559
|
thetokencompany?: {
|
|
483
560
|
model?: string | undefined;
|
|
484
561
|
enabled?: boolean | undefined;
|
|
485
562
|
aggressiveness?: number | undefined;
|
|
486
563
|
} | undefined;
|
|
564
|
+
heuristic?: {
|
|
565
|
+
enabled?: boolean | undefined;
|
|
566
|
+
min_tokens?: number | undefined;
|
|
567
|
+
max_sentences?: number | undefined;
|
|
568
|
+
target_reduction?: number | undefined;
|
|
569
|
+
query?: string | undefined;
|
|
570
|
+
query_variable?: string | undefined;
|
|
571
|
+
json_to_toon?: boolean | undefined;
|
|
572
|
+
} | undefined;
|
|
487
573
|
} | undefined;
|
|
488
574
|
cache?: {
|
|
489
575
|
openai?: {
|
|
@@ -587,11 +673,26 @@ declare const PromptAssetOverridesSchema: z.ZodObject<{
|
|
|
587
673
|
schema_strict?: boolean | undefined;
|
|
588
674
|
} | undefined;
|
|
589
675
|
compression?: {
|
|
676
|
+
code?: {
|
|
677
|
+
enabled?: boolean | undefined;
|
|
678
|
+
remove_comments?: boolean | undefined;
|
|
679
|
+
trim_indentation?: boolean | undefined;
|
|
680
|
+
collapse_blank_lines?: boolean | undefined;
|
|
681
|
+
} | undefined;
|
|
590
682
|
thetokencompany?: {
|
|
591
683
|
model?: string | undefined;
|
|
592
684
|
enabled?: boolean | undefined;
|
|
593
685
|
aggressiveness?: number | undefined;
|
|
594
686
|
} | undefined;
|
|
687
|
+
heuristic?: {
|
|
688
|
+
enabled?: boolean | undefined;
|
|
689
|
+
min_tokens?: number | undefined;
|
|
690
|
+
max_sentences?: number | undefined;
|
|
691
|
+
target_reduction?: number | undefined;
|
|
692
|
+
query?: string | undefined;
|
|
693
|
+
query_variable?: string | undefined;
|
|
694
|
+
json_to_toon?: boolean | undefined;
|
|
695
|
+
} | undefined;
|
|
595
696
|
} | undefined;
|
|
596
697
|
cache?: {
|
|
597
698
|
openai?: {
|
|
@@ -800,18 +901,89 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
800
901
|
enabled?: boolean | undefined;
|
|
801
902
|
aggressiveness?: number | undefined;
|
|
802
903
|
}>>;
|
|
904
|
+
heuristic: z.ZodOptional<z.ZodObject<{
|
|
905
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
906
|
+
min_tokens: z.ZodOptional<z.ZodNumber>;
|
|
907
|
+
max_sentences: z.ZodOptional<z.ZodNumber>;
|
|
908
|
+
target_reduction: z.ZodOptional<z.ZodNumber>;
|
|
909
|
+
query: z.ZodOptional<z.ZodString>;
|
|
910
|
+
query_variable: z.ZodOptional<z.ZodString>;
|
|
911
|
+
json_to_toon: z.ZodOptional<z.ZodBoolean>;
|
|
912
|
+
}, "strip", z.ZodTypeAny, {
|
|
913
|
+
enabled?: boolean | undefined;
|
|
914
|
+
min_tokens?: number | undefined;
|
|
915
|
+
max_sentences?: number | undefined;
|
|
916
|
+
target_reduction?: number | undefined;
|
|
917
|
+
query?: string | undefined;
|
|
918
|
+
query_variable?: string | undefined;
|
|
919
|
+
json_to_toon?: boolean | undefined;
|
|
920
|
+
}, {
|
|
921
|
+
enabled?: boolean | undefined;
|
|
922
|
+
min_tokens?: number | undefined;
|
|
923
|
+
max_sentences?: number | undefined;
|
|
924
|
+
target_reduction?: number | undefined;
|
|
925
|
+
query?: string | undefined;
|
|
926
|
+
query_variable?: string | undefined;
|
|
927
|
+
json_to_toon?: boolean | undefined;
|
|
928
|
+
}>>;
|
|
929
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
930
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
931
|
+
remove_comments: z.ZodOptional<z.ZodBoolean>;
|
|
932
|
+
trim_indentation: z.ZodOptional<z.ZodBoolean>;
|
|
933
|
+
collapse_blank_lines: z.ZodOptional<z.ZodBoolean>;
|
|
934
|
+
}, "strip", z.ZodTypeAny, {
|
|
935
|
+
enabled?: boolean | undefined;
|
|
936
|
+
remove_comments?: boolean | undefined;
|
|
937
|
+
trim_indentation?: boolean | undefined;
|
|
938
|
+
collapse_blank_lines?: boolean | undefined;
|
|
939
|
+
}, {
|
|
940
|
+
enabled?: boolean | undefined;
|
|
941
|
+
remove_comments?: boolean | undefined;
|
|
942
|
+
trim_indentation?: boolean | undefined;
|
|
943
|
+
collapse_blank_lines?: boolean | undefined;
|
|
944
|
+
}>>;
|
|
803
945
|
}, "strip", z.ZodTypeAny, {
|
|
946
|
+
code?: {
|
|
947
|
+
enabled?: boolean | undefined;
|
|
948
|
+
remove_comments?: boolean | undefined;
|
|
949
|
+
trim_indentation?: boolean | undefined;
|
|
950
|
+
collapse_blank_lines?: boolean | undefined;
|
|
951
|
+
} | undefined;
|
|
804
952
|
thetokencompany?: {
|
|
805
953
|
model?: string | undefined;
|
|
806
954
|
enabled?: boolean | undefined;
|
|
807
955
|
aggressiveness?: number | undefined;
|
|
808
956
|
} | undefined;
|
|
957
|
+
heuristic?: {
|
|
958
|
+
enabled?: boolean | undefined;
|
|
959
|
+
min_tokens?: number | undefined;
|
|
960
|
+
max_sentences?: number | undefined;
|
|
961
|
+
target_reduction?: number | undefined;
|
|
962
|
+
query?: string | undefined;
|
|
963
|
+
query_variable?: string | undefined;
|
|
964
|
+
json_to_toon?: boolean | undefined;
|
|
965
|
+
} | undefined;
|
|
809
966
|
}, {
|
|
967
|
+
code?: {
|
|
968
|
+
enabled?: boolean | undefined;
|
|
969
|
+
remove_comments?: boolean | undefined;
|
|
970
|
+
trim_indentation?: boolean | undefined;
|
|
971
|
+
collapse_blank_lines?: boolean | undefined;
|
|
972
|
+
} | undefined;
|
|
810
973
|
thetokencompany?: {
|
|
811
974
|
model?: string | undefined;
|
|
812
975
|
enabled?: boolean | undefined;
|
|
813
976
|
aggressiveness?: number | undefined;
|
|
814
977
|
} | undefined;
|
|
978
|
+
heuristic?: {
|
|
979
|
+
enabled?: boolean | undefined;
|
|
980
|
+
min_tokens?: number | undefined;
|
|
981
|
+
max_sentences?: number | undefined;
|
|
982
|
+
target_reduction?: number | undefined;
|
|
983
|
+
query?: string | undefined;
|
|
984
|
+
query_variable?: string | undefined;
|
|
985
|
+
json_to_toon?: boolean | undefined;
|
|
986
|
+
} | undefined;
|
|
815
987
|
}>>;
|
|
816
988
|
cache: z.ZodOptional<z.ZodObject<{
|
|
817
989
|
openai: z.ZodOptional<z.ZodObject<{
|
|
@@ -1147,6 +1319,81 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1147
1319
|
warnings: z.ZodOptional<z.ZodBoolean>;
|
|
1148
1320
|
max_size: z.ZodOptional<z.ZodNumber>;
|
|
1149
1321
|
trim: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["start", "end", "both"]>]>>;
|
|
1322
|
+
compression: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"heuristic">, z.ZodLiteral<"code">, z.ZodObject<{
|
|
1323
|
+
heuristic: z.ZodOptional<z.ZodObject<{
|
|
1324
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1325
|
+
min_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1326
|
+
max_sentences: z.ZodOptional<z.ZodNumber>;
|
|
1327
|
+
target_reduction: z.ZodOptional<z.ZodNumber>;
|
|
1328
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1329
|
+
query_variable: z.ZodOptional<z.ZodString>;
|
|
1330
|
+
json_to_toon: z.ZodOptional<z.ZodBoolean>;
|
|
1331
|
+
}, "strip", z.ZodTypeAny, {
|
|
1332
|
+
enabled?: boolean | undefined;
|
|
1333
|
+
min_tokens?: number | undefined;
|
|
1334
|
+
max_sentences?: number | undefined;
|
|
1335
|
+
target_reduction?: number | undefined;
|
|
1336
|
+
query?: string | undefined;
|
|
1337
|
+
query_variable?: string | undefined;
|
|
1338
|
+
json_to_toon?: boolean | undefined;
|
|
1339
|
+
}, {
|
|
1340
|
+
enabled?: boolean | undefined;
|
|
1341
|
+
min_tokens?: number | undefined;
|
|
1342
|
+
max_sentences?: number | undefined;
|
|
1343
|
+
target_reduction?: number | undefined;
|
|
1344
|
+
query?: string | undefined;
|
|
1345
|
+
query_variable?: string | undefined;
|
|
1346
|
+
json_to_toon?: boolean | undefined;
|
|
1347
|
+
}>>;
|
|
1348
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
1349
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1350
|
+
remove_comments: z.ZodOptional<z.ZodBoolean>;
|
|
1351
|
+
trim_indentation: z.ZodOptional<z.ZodBoolean>;
|
|
1352
|
+
collapse_blank_lines: z.ZodOptional<z.ZodBoolean>;
|
|
1353
|
+
}, "strip", z.ZodTypeAny, {
|
|
1354
|
+
enabled?: boolean | undefined;
|
|
1355
|
+
remove_comments?: boolean | undefined;
|
|
1356
|
+
trim_indentation?: boolean | undefined;
|
|
1357
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1358
|
+
}, {
|
|
1359
|
+
enabled?: boolean | undefined;
|
|
1360
|
+
remove_comments?: boolean | undefined;
|
|
1361
|
+
trim_indentation?: boolean | undefined;
|
|
1362
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1363
|
+
}>>;
|
|
1364
|
+
}, "strip", z.ZodTypeAny, {
|
|
1365
|
+
code?: {
|
|
1366
|
+
enabled?: boolean | undefined;
|
|
1367
|
+
remove_comments?: boolean | undefined;
|
|
1368
|
+
trim_indentation?: boolean | undefined;
|
|
1369
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1370
|
+
} | undefined;
|
|
1371
|
+
heuristic?: {
|
|
1372
|
+
enabled?: boolean | undefined;
|
|
1373
|
+
min_tokens?: number | undefined;
|
|
1374
|
+
max_sentences?: number | undefined;
|
|
1375
|
+
target_reduction?: number | undefined;
|
|
1376
|
+
query?: string | undefined;
|
|
1377
|
+
query_variable?: string | undefined;
|
|
1378
|
+
json_to_toon?: boolean | undefined;
|
|
1379
|
+
} | undefined;
|
|
1380
|
+
}, {
|
|
1381
|
+
code?: {
|
|
1382
|
+
enabled?: boolean | undefined;
|
|
1383
|
+
remove_comments?: boolean | undefined;
|
|
1384
|
+
trim_indentation?: boolean | undefined;
|
|
1385
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1386
|
+
} | undefined;
|
|
1387
|
+
heuristic?: {
|
|
1388
|
+
enabled?: boolean | undefined;
|
|
1389
|
+
min_tokens?: number | undefined;
|
|
1390
|
+
max_sentences?: number | undefined;
|
|
1391
|
+
target_reduction?: number | undefined;
|
|
1392
|
+
query?: string | undefined;
|
|
1393
|
+
query_variable?: string | undefined;
|
|
1394
|
+
json_to_toon?: boolean | undefined;
|
|
1395
|
+
} | undefined;
|
|
1396
|
+
}>]>>;
|
|
1150
1397
|
allow_regex: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1151
1398
|
pattern: z.ZodString;
|
|
1152
1399
|
flags: z.ZodOptional<z.ZodString>;
|
|
@@ -1189,6 +1436,23 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1189
1436
|
}>]>>;
|
|
1190
1437
|
}, "strip", z.ZodTypeAny, {
|
|
1191
1438
|
name: string;
|
|
1439
|
+
compression?: "code" | "heuristic" | {
|
|
1440
|
+
code?: {
|
|
1441
|
+
enabled?: boolean | undefined;
|
|
1442
|
+
remove_comments?: boolean | undefined;
|
|
1443
|
+
trim_indentation?: boolean | undefined;
|
|
1444
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1445
|
+
} | undefined;
|
|
1446
|
+
heuristic?: {
|
|
1447
|
+
enabled?: boolean | undefined;
|
|
1448
|
+
min_tokens?: number | undefined;
|
|
1449
|
+
max_sentences?: number | undefined;
|
|
1450
|
+
target_reduction?: number | undefined;
|
|
1451
|
+
query?: string | undefined;
|
|
1452
|
+
query_variable?: string | undefined;
|
|
1453
|
+
json_to_toon?: boolean | undefined;
|
|
1454
|
+
} | undefined;
|
|
1455
|
+
} | undefined;
|
|
1192
1456
|
warnings?: boolean | undefined;
|
|
1193
1457
|
optional?: boolean | undefined;
|
|
1194
1458
|
max_size?: number | undefined;
|
|
@@ -1211,6 +1475,23 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1211
1475
|
} | undefined;
|
|
1212
1476
|
}, {
|
|
1213
1477
|
name: string;
|
|
1478
|
+
compression?: "code" | "heuristic" | {
|
|
1479
|
+
code?: {
|
|
1480
|
+
enabled?: boolean | undefined;
|
|
1481
|
+
remove_comments?: boolean | undefined;
|
|
1482
|
+
trim_indentation?: boolean | undefined;
|
|
1483
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1484
|
+
} | undefined;
|
|
1485
|
+
heuristic?: {
|
|
1486
|
+
enabled?: boolean | undefined;
|
|
1487
|
+
min_tokens?: number | undefined;
|
|
1488
|
+
max_sentences?: number | undefined;
|
|
1489
|
+
target_reduction?: number | undefined;
|
|
1490
|
+
query?: string | undefined;
|
|
1491
|
+
query_variable?: string | undefined;
|
|
1492
|
+
json_to_toon?: boolean | undefined;
|
|
1493
|
+
} | undefined;
|
|
1494
|
+
} | undefined;
|
|
1214
1495
|
warnings?: boolean | undefined;
|
|
1215
1496
|
optional?: boolean | undefined;
|
|
1216
1497
|
max_size?: number | undefined;
|
|
@@ -1245,6 +1526,23 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1245
1526
|
} | undefined;
|
|
1246
1527
|
inputs?: (string | {
|
|
1247
1528
|
name: string;
|
|
1529
|
+
compression?: "code" | "heuristic" | {
|
|
1530
|
+
code?: {
|
|
1531
|
+
enabled?: boolean | undefined;
|
|
1532
|
+
remove_comments?: boolean | undefined;
|
|
1533
|
+
trim_indentation?: boolean | undefined;
|
|
1534
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1535
|
+
} | undefined;
|
|
1536
|
+
heuristic?: {
|
|
1537
|
+
enabled?: boolean | undefined;
|
|
1538
|
+
min_tokens?: number | undefined;
|
|
1539
|
+
max_sentences?: number | undefined;
|
|
1540
|
+
target_reduction?: number | undefined;
|
|
1541
|
+
query?: string | undefined;
|
|
1542
|
+
query_variable?: string | undefined;
|
|
1543
|
+
json_to_toon?: boolean | undefined;
|
|
1544
|
+
} | undefined;
|
|
1545
|
+
} | undefined;
|
|
1248
1546
|
warnings?: boolean | undefined;
|
|
1249
1547
|
optional?: boolean | undefined;
|
|
1250
1548
|
max_size?: number | undefined;
|
|
@@ -1272,6 +1570,23 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1272
1570
|
} | undefined;
|
|
1273
1571
|
inputs?: (string | {
|
|
1274
1572
|
name: string;
|
|
1573
|
+
compression?: "code" | "heuristic" | {
|
|
1574
|
+
code?: {
|
|
1575
|
+
enabled?: boolean | undefined;
|
|
1576
|
+
remove_comments?: boolean | undefined;
|
|
1577
|
+
trim_indentation?: boolean | undefined;
|
|
1578
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
heuristic?: {
|
|
1581
|
+
enabled?: boolean | undefined;
|
|
1582
|
+
min_tokens?: number | undefined;
|
|
1583
|
+
max_sentences?: number | undefined;
|
|
1584
|
+
target_reduction?: number | undefined;
|
|
1585
|
+
query?: string | undefined;
|
|
1586
|
+
query_variable?: string | undefined;
|
|
1587
|
+
json_to_toon?: boolean | undefined;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
} | undefined;
|
|
1275
1590
|
warnings?: boolean | undefined;
|
|
1276
1591
|
optional?: boolean | undefined;
|
|
1277
1592
|
max_size?: number | undefined;
|
|
@@ -1425,18 +1740,89 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1425
1740
|
enabled?: boolean | undefined;
|
|
1426
1741
|
aggressiveness?: number | undefined;
|
|
1427
1742
|
}>>;
|
|
1743
|
+
heuristic: z.ZodOptional<z.ZodObject<{
|
|
1744
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1745
|
+
min_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1746
|
+
max_sentences: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
target_reduction: z.ZodOptional<z.ZodNumber>;
|
|
1748
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
query_variable: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
json_to_toon: z.ZodOptional<z.ZodBoolean>;
|
|
1751
|
+
}, "strip", z.ZodTypeAny, {
|
|
1752
|
+
enabled?: boolean | undefined;
|
|
1753
|
+
min_tokens?: number | undefined;
|
|
1754
|
+
max_sentences?: number | undefined;
|
|
1755
|
+
target_reduction?: number | undefined;
|
|
1756
|
+
query?: string | undefined;
|
|
1757
|
+
query_variable?: string | undefined;
|
|
1758
|
+
json_to_toon?: boolean | undefined;
|
|
1759
|
+
}, {
|
|
1760
|
+
enabled?: boolean | undefined;
|
|
1761
|
+
min_tokens?: number | undefined;
|
|
1762
|
+
max_sentences?: number | undefined;
|
|
1763
|
+
target_reduction?: number | undefined;
|
|
1764
|
+
query?: string | undefined;
|
|
1765
|
+
query_variable?: string | undefined;
|
|
1766
|
+
json_to_toon?: boolean | undefined;
|
|
1767
|
+
}>>;
|
|
1768
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
1769
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1770
|
+
remove_comments: z.ZodOptional<z.ZodBoolean>;
|
|
1771
|
+
trim_indentation: z.ZodOptional<z.ZodBoolean>;
|
|
1772
|
+
collapse_blank_lines: z.ZodOptional<z.ZodBoolean>;
|
|
1773
|
+
}, "strip", z.ZodTypeAny, {
|
|
1774
|
+
enabled?: boolean | undefined;
|
|
1775
|
+
remove_comments?: boolean | undefined;
|
|
1776
|
+
trim_indentation?: boolean | undefined;
|
|
1777
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1778
|
+
}, {
|
|
1779
|
+
enabled?: boolean | undefined;
|
|
1780
|
+
remove_comments?: boolean | undefined;
|
|
1781
|
+
trim_indentation?: boolean | undefined;
|
|
1782
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1783
|
+
}>>;
|
|
1428
1784
|
}, "strip", z.ZodTypeAny, {
|
|
1785
|
+
code?: {
|
|
1786
|
+
enabled?: boolean | undefined;
|
|
1787
|
+
remove_comments?: boolean | undefined;
|
|
1788
|
+
trim_indentation?: boolean | undefined;
|
|
1789
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1790
|
+
} | undefined;
|
|
1429
1791
|
thetokencompany?: {
|
|
1430
1792
|
model?: string | undefined;
|
|
1431
1793
|
enabled?: boolean | undefined;
|
|
1432
1794
|
aggressiveness?: number | undefined;
|
|
1433
1795
|
} | undefined;
|
|
1796
|
+
heuristic?: {
|
|
1797
|
+
enabled?: boolean | undefined;
|
|
1798
|
+
min_tokens?: number | undefined;
|
|
1799
|
+
max_sentences?: number | undefined;
|
|
1800
|
+
target_reduction?: number | undefined;
|
|
1801
|
+
query?: string | undefined;
|
|
1802
|
+
query_variable?: string | undefined;
|
|
1803
|
+
json_to_toon?: boolean | undefined;
|
|
1804
|
+
} | undefined;
|
|
1434
1805
|
}, {
|
|
1806
|
+
code?: {
|
|
1807
|
+
enabled?: boolean | undefined;
|
|
1808
|
+
remove_comments?: boolean | undefined;
|
|
1809
|
+
trim_indentation?: boolean | undefined;
|
|
1810
|
+
collapse_blank_lines?: boolean | undefined;
|
|
1811
|
+
} | undefined;
|
|
1435
1812
|
thetokencompany?: {
|
|
1436
1813
|
model?: string | undefined;
|
|
1437
1814
|
enabled?: boolean | undefined;
|
|
1438
1815
|
aggressiveness?: number | undefined;
|
|
1439
1816
|
} | undefined;
|
|
1817
|
+
heuristic?: {
|
|
1818
|
+
enabled?: boolean | undefined;
|
|
1819
|
+
min_tokens?: number | undefined;
|
|
1820
|
+
max_sentences?: number | undefined;
|
|
1821
|
+
target_reduction?: number | undefined;
|
|
1822
|
+
query?: string | undefined;
|
|
1823
|
+
query_variable?: string | undefined;
|
|
1824
|
+
json_to_toon?: boolean | undefined;
|
|
1825
|
+
} | undefined;
|
|
1440
1826
|
}>>;
|
|
1441
1827
|
cache: z.ZodOptional<z.ZodObject<{
|
|
1442
1828
|
openai: z.ZodOptional<z.ZodObject<{
|
|
@@ -1774,11 +2160,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1774
2160
|
schema_strict?: boolean | undefined;
|
|
1775
2161
|
} | undefined;
|
|
1776
2162
|
compression?: {
|
|
2163
|
+
code?: {
|
|
2164
|
+
enabled?: boolean | undefined;
|
|
2165
|
+
remove_comments?: boolean | undefined;
|
|
2166
|
+
trim_indentation?: boolean | undefined;
|
|
2167
|
+
collapse_blank_lines?: boolean | undefined;
|
|
2168
|
+
} | undefined;
|
|
1777
2169
|
thetokencompany?: {
|
|
1778
2170
|
model?: string | undefined;
|
|
1779
2171
|
enabled?: boolean | undefined;
|
|
1780
2172
|
aggressiveness?: number | undefined;
|
|
1781
2173
|
} | undefined;
|
|
2174
|
+
heuristic?: {
|
|
2175
|
+
enabled?: boolean | undefined;
|
|
2176
|
+
min_tokens?: number | undefined;
|
|
2177
|
+
max_sentences?: number | undefined;
|
|
2178
|
+
target_reduction?: number | undefined;
|
|
2179
|
+
query?: string | undefined;
|
|
2180
|
+
query_variable?: string | undefined;
|
|
2181
|
+
json_to_toon?: boolean | undefined;
|
|
2182
|
+
} | undefined;
|
|
1782
2183
|
} | undefined;
|
|
1783
2184
|
cache?: {
|
|
1784
2185
|
openai?: {
|
|
@@ -1882,11 +2283,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
1882
2283
|
schema_strict?: boolean | undefined;
|
|
1883
2284
|
} | undefined;
|
|
1884
2285
|
compression?: {
|
|
2286
|
+
code?: {
|
|
2287
|
+
enabled?: boolean | undefined;
|
|
2288
|
+
remove_comments?: boolean | undefined;
|
|
2289
|
+
trim_indentation?: boolean | undefined;
|
|
2290
|
+
collapse_blank_lines?: boolean | undefined;
|
|
2291
|
+
} | undefined;
|
|
1885
2292
|
thetokencompany?: {
|
|
1886
2293
|
model?: string | undefined;
|
|
1887
2294
|
enabled?: boolean | undefined;
|
|
1888
2295
|
aggressiveness?: number | undefined;
|
|
1889
2296
|
} | undefined;
|
|
2297
|
+
heuristic?: {
|
|
2298
|
+
enabled?: boolean | undefined;
|
|
2299
|
+
min_tokens?: number | undefined;
|
|
2300
|
+
max_sentences?: number | undefined;
|
|
2301
|
+
target_reduction?: number | undefined;
|
|
2302
|
+
query?: string | undefined;
|
|
2303
|
+
query_variable?: string | undefined;
|
|
2304
|
+
json_to_toon?: boolean | undefined;
|
|
2305
|
+
} | undefined;
|
|
1890
2306
|
} | undefined;
|
|
1891
2307
|
cache?: {
|
|
1892
2308
|
openai?: {
|
|
@@ -2090,18 +2506,89 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
2090
2506
|
enabled?: boolean | undefined;
|
|
2091
2507
|
aggressiveness?: number | undefined;
|
|
2092
2508
|
}>>;
|
|
2509
|
+
heuristic: z.ZodOptional<z.ZodObject<{
|
|
2510
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2511
|
+
min_tokens: z.ZodOptional<z.ZodNumber>;
|
|
2512
|
+
max_sentences: z.ZodOptional<z.ZodNumber>;
|
|
2513
|
+
target_reduction: z.ZodOptional<z.ZodNumber>;
|
|
2514
|
+
query: z.ZodOptional<z.ZodString>;
|
|
2515
|
+
query_variable: z.ZodOptional<z.ZodString>;
|
|
2516
|
+
json_to_toon: z.ZodOptional<z.ZodBoolean>;
|
|
2517
|
+
}, "strip", z.ZodTypeAny, {
|
|
2518
|
+
enabled?: boolean | undefined;
|
|
2519
|
+
min_tokens?: number | undefined;
|
|
2520
|
+
max_sentences?: number | undefined;
|
|
2521
|
+
target_reduction?: number | undefined;
|
|
2522
|
+
query?: string | undefined;
|
|
2523
|
+
query_variable?: string | undefined;
|
|
2524
|
+
json_to_toon?: boolean | undefined;
|
|
2525
|
+
}, {
|
|
2526
|
+
enabled?: boolean | undefined;
|
|
2527
|
+
min_tokens?: number | undefined;
|
|
2528
|
+
max_sentences?: number | undefined;
|
|
2529
|
+
target_reduction?: number | undefined;
|
|
2530
|
+
query?: string | undefined;
|
|
2531
|
+
query_variable?: string | undefined;
|
|
2532
|
+
json_to_toon?: boolean | undefined;
|
|
2533
|
+
}>>;
|
|
2534
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
2535
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2536
|
+
remove_comments: z.ZodOptional<z.ZodBoolean>;
|
|
2537
|
+
trim_indentation: z.ZodOptional<z.ZodBoolean>;
|
|
2538
|
+
collapse_blank_lines: z.ZodOptional<z.ZodBoolean>;
|
|
2539
|
+
}, "strip", z.ZodTypeAny, {
|
|
2540
|
+
enabled?: boolean | undefined;
|
|
2541
|
+
remove_comments?: boolean | undefined;
|
|
2542
|
+
trim_indentation?: boolean | undefined;
|
|
2543
|
+
collapse_blank_lines?: boolean | undefined;
|
|
2544
|
+
}, {
|
|
2545
|
+
enabled?: boolean | undefined;
|
|
2546
|
+
remove_comments?: boolean | undefined;
|
|
2547
|
+
trim_indentation?: boolean | undefined;
|
|
2548
|
+
collapse_blank_lines?: boolean | undefined;
|
|
2549
|
+
}>>;
|
|
2093
2550
|
}, "strip", z.ZodTypeAny, {
|
|
2551
|
+
code?: {
|
|
2552
|
+
enabled?: boolean | undefined;
|
|
2553
|
+
remove_comments?: boolean | undefined;
|
|
2554
|
+
trim_indentation?: boolean | undefined;
|
|
2555
|
+
collapse_blank_lines?: boolean | undefined;
|
|
2556
|
+
} | undefined;
|
|
2094
2557
|
thetokencompany?: {
|
|
2095
2558
|
model?: string | undefined;
|
|
2096
2559
|
enabled?: boolean | undefined;
|
|
2097
2560
|
aggressiveness?: number | undefined;
|
|
2098
2561
|
} | undefined;
|
|
2562
|
+
heuristic?: {
|
|
2563
|
+
enabled?: boolean | undefined;
|
|
2564
|
+
min_tokens?: number | undefined;
|
|
2565
|
+
max_sentences?: number | undefined;
|
|
2566
|
+
target_reduction?: number | undefined;
|
|
2567
|
+
query?: string | undefined;
|
|
2568
|
+
query_variable?: string | undefined;
|
|
2569
|
+
json_to_toon?: boolean | undefined;
|
|
2570
|
+
} | undefined;
|
|
2099
2571
|
}, {
|
|
2572
|
+
code?: {
|
|
2573
|
+
enabled?: boolean | undefined;
|
|
2574
|
+
remove_comments?: boolean | undefined;
|
|
2575
|
+
trim_indentation?: boolean | undefined;
|
|
2576
|
+
collapse_blank_lines?: boolean | undefined;
|
|
2577
|
+
} | undefined;
|
|
2100
2578
|
thetokencompany?: {
|
|
2101
2579
|
model?: string | undefined;
|
|
2102
2580
|
enabled?: boolean | undefined;
|
|
2103
2581
|
aggressiveness?: number | undefined;
|
|
2104
2582
|
} | undefined;
|
|
2583
|
+
heuristic?: {
|
|
2584
|
+
enabled?: boolean | undefined;
|
|
2585
|
+
min_tokens?: number | undefined;
|
|
2586
|
+
max_sentences?: number | undefined;
|
|
2587
|
+
target_reduction?: number | undefined;
|
|
2588
|
+
query?: string | undefined;
|
|
2589
|
+
query_variable?: string | undefined;
|
|
2590
|
+
json_to_toon?: boolean | undefined;
|
|
2591
|
+
} | undefined;
|
|
2105
2592
|
}>>;
|
|
2106
2593
|
cache: z.ZodOptional<z.ZodObject<{
|
|
2107
2594
|
openai: z.ZodOptional<z.ZodObject<{
|
|
@@ -2439,11 +2926,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
2439
2926
|
schema_strict?: boolean | undefined;
|
|
2440
2927
|
} | undefined;
|
|
2441
2928
|
compression?: {
|
|
2929
|
+
code?: {
|
|
2930
|
+
enabled?: boolean | undefined;
|
|
2931
|
+
remove_comments?: boolean | undefined;
|
|
2932
|
+
trim_indentation?: boolean | undefined;
|
|
2933
|
+
collapse_blank_lines?: boolean | undefined;
|
|
2934
|
+
} | undefined;
|
|
2442
2935
|
thetokencompany?: {
|
|
2443
2936
|
model?: string | undefined;
|
|
2444
2937
|
enabled?: boolean | undefined;
|
|
2445
2938
|
aggressiveness?: number | undefined;
|
|
2446
2939
|
} | undefined;
|
|
2940
|
+
heuristic?: {
|
|
2941
|
+
enabled?: boolean | undefined;
|
|
2942
|
+
min_tokens?: number | undefined;
|
|
2943
|
+
max_sentences?: number | undefined;
|
|
2944
|
+
target_reduction?: number | undefined;
|
|
2945
|
+
query?: string | undefined;
|
|
2946
|
+
query_variable?: string | undefined;
|
|
2947
|
+
json_to_toon?: boolean | undefined;
|
|
2948
|
+
} | undefined;
|
|
2447
2949
|
} | undefined;
|
|
2448
2950
|
cache?: {
|
|
2449
2951
|
openai?: {
|
|
@@ -2547,11 +3049,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
2547
3049
|
schema_strict?: boolean | undefined;
|
|
2548
3050
|
} | undefined;
|
|
2549
3051
|
compression?: {
|
|
3052
|
+
code?: {
|
|
3053
|
+
enabled?: boolean | undefined;
|
|
3054
|
+
remove_comments?: boolean | undefined;
|
|
3055
|
+
trim_indentation?: boolean | undefined;
|
|
3056
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3057
|
+
} | undefined;
|
|
2550
3058
|
thetokencompany?: {
|
|
2551
3059
|
model?: string | undefined;
|
|
2552
3060
|
enabled?: boolean | undefined;
|
|
2553
3061
|
aggressiveness?: number | undefined;
|
|
2554
3062
|
} | undefined;
|
|
3063
|
+
heuristic?: {
|
|
3064
|
+
enabled?: boolean | undefined;
|
|
3065
|
+
min_tokens?: number | undefined;
|
|
3066
|
+
max_sentences?: number | undefined;
|
|
3067
|
+
target_reduction?: number | undefined;
|
|
3068
|
+
query?: string | undefined;
|
|
3069
|
+
query_variable?: string | undefined;
|
|
3070
|
+
json_to_toon?: boolean | undefined;
|
|
3071
|
+
} | undefined;
|
|
2555
3072
|
} | undefined;
|
|
2556
3073
|
cache?: {
|
|
2557
3074
|
openai?: {
|
|
@@ -2698,11 +3215,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
2698
3215
|
schema_strict?: boolean | undefined;
|
|
2699
3216
|
} | undefined;
|
|
2700
3217
|
compression?: {
|
|
3218
|
+
code?: {
|
|
3219
|
+
enabled?: boolean | undefined;
|
|
3220
|
+
remove_comments?: boolean | undefined;
|
|
3221
|
+
trim_indentation?: boolean | undefined;
|
|
3222
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3223
|
+
} | undefined;
|
|
2701
3224
|
thetokencompany?: {
|
|
2702
3225
|
model?: string | undefined;
|
|
2703
3226
|
enabled?: boolean | undefined;
|
|
2704
3227
|
aggressiveness?: number | undefined;
|
|
2705
3228
|
} | undefined;
|
|
3229
|
+
heuristic?: {
|
|
3230
|
+
enabled?: boolean | undefined;
|
|
3231
|
+
min_tokens?: number | undefined;
|
|
3232
|
+
max_sentences?: number | undefined;
|
|
3233
|
+
target_reduction?: number | undefined;
|
|
3234
|
+
query?: string | undefined;
|
|
3235
|
+
query_variable?: string | undefined;
|
|
3236
|
+
json_to_toon?: boolean | undefined;
|
|
3237
|
+
} | undefined;
|
|
2706
3238
|
} | undefined;
|
|
2707
3239
|
cache?: {
|
|
2708
3240
|
openai?: {
|
|
@@ -2793,6 +3325,23 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
2793
3325
|
} | undefined;
|
|
2794
3326
|
inputs?: (string | {
|
|
2795
3327
|
name: string;
|
|
3328
|
+
compression?: "code" | "heuristic" | {
|
|
3329
|
+
code?: {
|
|
3330
|
+
enabled?: boolean | undefined;
|
|
3331
|
+
remove_comments?: boolean | undefined;
|
|
3332
|
+
trim_indentation?: boolean | undefined;
|
|
3333
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3334
|
+
} | undefined;
|
|
3335
|
+
heuristic?: {
|
|
3336
|
+
enabled?: boolean | undefined;
|
|
3337
|
+
min_tokens?: number | undefined;
|
|
3338
|
+
max_sentences?: number | undefined;
|
|
3339
|
+
target_reduction?: number | undefined;
|
|
3340
|
+
query?: string | undefined;
|
|
3341
|
+
query_variable?: string | undefined;
|
|
3342
|
+
json_to_toon?: boolean | undefined;
|
|
3343
|
+
} | undefined;
|
|
3344
|
+
} | undefined;
|
|
2796
3345
|
warnings?: boolean | undefined;
|
|
2797
3346
|
optional?: boolean | undefined;
|
|
2798
3347
|
max_size?: number | undefined;
|
|
@@ -2846,11 +3395,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
2846
3395
|
schema_strict?: boolean | undefined;
|
|
2847
3396
|
} | undefined;
|
|
2848
3397
|
compression?: {
|
|
3398
|
+
code?: {
|
|
3399
|
+
enabled?: boolean | undefined;
|
|
3400
|
+
remove_comments?: boolean | undefined;
|
|
3401
|
+
trim_indentation?: boolean | undefined;
|
|
3402
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3403
|
+
} | undefined;
|
|
2849
3404
|
thetokencompany?: {
|
|
2850
3405
|
model?: string | undefined;
|
|
2851
3406
|
enabled?: boolean | undefined;
|
|
2852
3407
|
aggressiveness?: number | undefined;
|
|
2853
3408
|
} | undefined;
|
|
3409
|
+
heuristic?: {
|
|
3410
|
+
enabled?: boolean | undefined;
|
|
3411
|
+
min_tokens?: number | undefined;
|
|
3412
|
+
max_sentences?: number | undefined;
|
|
3413
|
+
target_reduction?: number | undefined;
|
|
3414
|
+
query?: string | undefined;
|
|
3415
|
+
query_variable?: string | undefined;
|
|
3416
|
+
json_to_toon?: boolean | undefined;
|
|
3417
|
+
} | undefined;
|
|
2854
3418
|
} | undefined;
|
|
2855
3419
|
cache?: {
|
|
2856
3420
|
openai?: {
|
|
@@ -2955,11 +3519,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
2955
3519
|
schema_strict?: boolean | undefined;
|
|
2956
3520
|
} | undefined;
|
|
2957
3521
|
compression?: {
|
|
3522
|
+
code?: {
|
|
3523
|
+
enabled?: boolean | undefined;
|
|
3524
|
+
remove_comments?: boolean | undefined;
|
|
3525
|
+
trim_indentation?: boolean | undefined;
|
|
3526
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3527
|
+
} | undefined;
|
|
2958
3528
|
thetokencompany?: {
|
|
2959
3529
|
model?: string | undefined;
|
|
2960
3530
|
enabled?: boolean | undefined;
|
|
2961
3531
|
aggressiveness?: number | undefined;
|
|
2962
3532
|
} | undefined;
|
|
3533
|
+
heuristic?: {
|
|
3534
|
+
enabled?: boolean | undefined;
|
|
3535
|
+
min_tokens?: number | undefined;
|
|
3536
|
+
max_sentences?: number | undefined;
|
|
3537
|
+
target_reduction?: number | undefined;
|
|
3538
|
+
query?: string | undefined;
|
|
3539
|
+
query_variable?: string | undefined;
|
|
3540
|
+
json_to_toon?: boolean | undefined;
|
|
3541
|
+
} | undefined;
|
|
2963
3542
|
} | undefined;
|
|
2964
3543
|
cache?: {
|
|
2965
3544
|
openai?: {
|
|
@@ -3077,11 +3656,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
3077
3656
|
schema_strict?: boolean | undefined;
|
|
3078
3657
|
} | undefined;
|
|
3079
3658
|
compression?: {
|
|
3659
|
+
code?: {
|
|
3660
|
+
enabled?: boolean | undefined;
|
|
3661
|
+
remove_comments?: boolean | undefined;
|
|
3662
|
+
trim_indentation?: boolean | undefined;
|
|
3663
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3664
|
+
} | undefined;
|
|
3080
3665
|
thetokencompany?: {
|
|
3081
3666
|
model?: string | undefined;
|
|
3082
3667
|
enabled?: boolean | undefined;
|
|
3083
3668
|
aggressiveness?: number | undefined;
|
|
3084
3669
|
} | undefined;
|
|
3670
|
+
heuristic?: {
|
|
3671
|
+
enabled?: boolean | undefined;
|
|
3672
|
+
min_tokens?: number | undefined;
|
|
3673
|
+
max_sentences?: number | undefined;
|
|
3674
|
+
target_reduction?: number | undefined;
|
|
3675
|
+
query?: string | undefined;
|
|
3676
|
+
query_variable?: string | undefined;
|
|
3677
|
+
json_to_toon?: boolean | undefined;
|
|
3678
|
+
} | undefined;
|
|
3085
3679
|
} | undefined;
|
|
3086
3680
|
cache?: {
|
|
3087
3681
|
openai?: {
|
|
@@ -3173,6 +3767,23 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
3173
3767
|
} | undefined;
|
|
3174
3768
|
inputs?: (string | {
|
|
3175
3769
|
name: string;
|
|
3770
|
+
compression?: "code" | "heuristic" | {
|
|
3771
|
+
code?: {
|
|
3772
|
+
enabled?: boolean | undefined;
|
|
3773
|
+
remove_comments?: boolean | undefined;
|
|
3774
|
+
trim_indentation?: boolean | undefined;
|
|
3775
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3776
|
+
} | undefined;
|
|
3777
|
+
heuristic?: {
|
|
3778
|
+
enabled?: boolean | undefined;
|
|
3779
|
+
min_tokens?: number | undefined;
|
|
3780
|
+
max_sentences?: number | undefined;
|
|
3781
|
+
target_reduction?: number | undefined;
|
|
3782
|
+
query?: string | undefined;
|
|
3783
|
+
query_variable?: string | undefined;
|
|
3784
|
+
json_to_toon?: boolean | undefined;
|
|
3785
|
+
} | undefined;
|
|
3786
|
+
} | undefined;
|
|
3176
3787
|
warnings?: boolean | undefined;
|
|
3177
3788
|
optional?: boolean | undefined;
|
|
3178
3789
|
max_size?: number | undefined;
|
|
@@ -3226,11 +3837,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
3226
3837
|
schema_strict?: boolean | undefined;
|
|
3227
3838
|
} | undefined;
|
|
3228
3839
|
compression?: {
|
|
3840
|
+
code?: {
|
|
3841
|
+
enabled?: boolean | undefined;
|
|
3842
|
+
remove_comments?: boolean | undefined;
|
|
3843
|
+
trim_indentation?: boolean | undefined;
|
|
3844
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3845
|
+
} | undefined;
|
|
3229
3846
|
thetokencompany?: {
|
|
3230
3847
|
model?: string | undefined;
|
|
3231
3848
|
enabled?: boolean | undefined;
|
|
3232
3849
|
aggressiveness?: number | undefined;
|
|
3233
3850
|
} | undefined;
|
|
3851
|
+
heuristic?: {
|
|
3852
|
+
enabled?: boolean | undefined;
|
|
3853
|
+
min_tokens?: number | undefined;
|
|
3854
|
+
max_sentences?: number | undefined;
|
|
3855
|
+
target_reduction?: number | undefined;
|
|
3856
|
+
query?: string | undefined;
|
|
3857
|
+
query_variable?: string | undefined;
|
|
3858
|
+
json_to_toon?: boolean | undefined;
|
|
3859
|
+
} | undefined;
|
|
3234
3860
|
} | undefined;
|
|
3235
3861
|
cache?: {
|
|
3236
3862
|
openai?: {
|
|
@@ -3335,11 +3961,26 @@ declare const PromptAssetSchema: z.ZodObject<{
|
|
|
3335
3961
|
schema_strict?: boolean | undefined;
|
|
3336
3962
|
} | undefined;
|
|
3337
3963
|
compression?: {
|
|
3964
|
+
code?: {
|
|
3965
|
+
enabled?: boolean | undefined;
|
|
3966
|
+
remove_comments?: boolean | undefined;
|
|
3967
|
+
trim_indentation?: boolean | undefined;
|
|
3968
|
+
collapse_blank_lines?: boolean | undefined;
|
|
3969
|
+
} | undefined;
|
|
3338
3970
|
thetokencompany?: {
|
|
3339
3971
|
model?: string | undefined;
|
|
3340
3972
|
enabled?: boolean | undefined;
|
|
3341
3973
|
aggressiveness?: number | undefined;
|
|
3342
3974
|
} | undefined;
|
|
3975
|
+
heuristic?: {
|
|
3976
|
+
enabled?: boolean | undefined;
|
|
3977
|
+
min_tokens?: number | undefined;
|
|
3978
|
+
max_sentences?: number | undefined;
|
|
3979
|
+
target_reduction?: number | undefined;
|
|
3980
|
+
query?: string | undefined;
|
|
3981
|
+
query_variable?: string | undefined;
|
|
3982
|
+
json_to_toon?: boolean | undefined;
|
|
3983
|
+
} | undefined;
|
|
3343
3984
|
} | undefined;
|
|
3344
3985
|
cache?: {
|
|
3345
3986
|
openai?: {
|