promptopskit 0.3.6 → 0.3.8

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.
Files changed (55) hide show
  1. package/README.md +41 -12
  2. package/SKILL.md +31 -4
  3. package/dist/{chunk-6FLNJVE7.js → chunk-5OYWNRNC.js} +19 -3
  4. package/dist/{chunk-6FLNJVE7.js.map → chunk-5OYWNRNC.js.map} +1 -1
  5. package/dist/{chunk-MYXDJMWV.js → chunk-BBVVA27J.js} +2 -2
  6. package/dist/{chunk-SOY2CEJM.js → chunk-E2NXJLS6.js} +3 -3
  7. package/dist/{chunk-J32I6DSG.js → chunk-E6NPZOJL.js} +2 -2
  8. package/dist/{chunk-MN3RQ7DZ.js → chunk-UJU5XERR.js} +2 -2
  9. package/dist/{chunk-SHYKSLVR.js → chunk-X73VG645.js} +182 -9
  10. package/dist/chunk-X73VG645.js.map +1 -0
  11. package/dist/cli/index.js +252 -100
  12. package/dist/cli/index.js.map +1 -1
  13. package/dist/index.cjs +216 -17
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +6 -5
  16. package/dist/index.d.ts +6 -5
  17. package/dist/index.js +26 -14
  18. package/dist/index.js.map +1 -1
  19. package/dist/providers/anthropic.cjs +197 -9
  20. package/dist/providers/anthropic.cjs.map +1 -1
  21. package/dist/providers/anthropic.d.cts +2 -2
  22. package/dist/providers/anthropic.d.ts +2 -2
  23. package/dist/providers/anthropic.js +3 -3
  24. package/dist/providers/gemini.cjs +197 -9
  25. package/dist/providers/gemini.cjs.map +1 -1
  26. package/dist/providers/gemini.d.cts +2 -2
  27. package/dist/providers/gemini.d.ts +2 -2
  28. package/dist/providers/gemini.js +3 -3
  29. package/dist/providers/openai.cjs +197 -9
  30. package/dist/providers/openai.cjs.map +1 -1
  31. package/dist/providers/openai.d.cts +2 -2
  32. package/dist/providers/openai.d.ts +2 -2
  33. package/dist/providers/openai.js +3 -3
  34. package/dist/providers/openrouter.cjs +197 -9
  35. package/dist/providers/openrouter.cjs.map +1 -1
  36. package/dist/providers/openrouter.d.cts +2 -2
  37. package/dist/providers/openrouter.d.ts +2 -2
  38. package/dist/providers/openrouter.js +4 -4
  39. package/dist/{schema-D145q3Dw.d.cts → schema-DwzYbZba.d.cts} +178 -56
  40. package/dist/{schema-D145q3Dw.d.ts → schema-DwzYbZba.d.ts} +178 -56
  41. package/dist/testing.cjs +18 -2
  42. package/dist/testing.cjs.map +1 -1
  43. package/dist/testing.d.cts +1 -1
  44. package/dist/testing.d.ts +1 -1
  45. package/dist/testing.js +1 -1
  46. package/dist/{types-B3sWHzIo.d.cts → types-C6RG0Si0.d.cts} +12 -5
  47. package/dist/{types-CXlVWckk.d.ts → types-fBvo_d4k.d.ts} +12 -5
  48. package/dist/usagetap/index.d.cts +2 -2
  49. package/dist/usagetap/index.d.ts +2 -2
  50. package/package.json +1 -1
  51. package/dist/chunk-SHYKSLVR.js.map +0 -1
  52. /package/dist/{chunk-MYXDJMWV.js.map → chunk-BBVVA27J.js.map} +0 -0
  53. /package/dist/{chunk-SOY2CEJM.js.map → chunk-E2NXJLS6.js.map} +0 -0
  54. /package/dist/{chunk-J32I6DSG.js.map → chunk-E6NPZOJL.js.map} +0 -0
  55. /package/dist/{chunk-MN3RQ7DZ.js.map → chunk-UJU5XERR.js.map} +0 -0
@@ -197,20 +197,86 @@ declare const PromptAssetSchema: z.ZodObject<{
197
197
  name: z.ZodString;
198
198
  max_size: z.ZodOptional<z.ZodNumber>;
199
199
  trim: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["start", "end", "both"]>]>>;
200
- allow_regex: z.ZodOptional<z.ZodString>;
201
- deny_regex: z.ZodOptional<z.ZodString>;
200
+ allow_regex: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
201
+ pattern: z.ZodString;
202
+ flags: z.ZodOptional<z.ZodString>;
203
+ return_message: z.ZodOptional<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ pattern: string;
206
+ flags?: string | undefined;
207
+ return_message?: string | undefined;
208
+ }, {
209
+ pattern: string;
210
+ flags?: string | undefined;
211
+ return_message?: string | undefined;
212
+ }>]>>;
213
+ deny_regex: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
214
+ pattern: z.ZodString;
215
+ flags: z.ZodOptional<z.ZodString>;
216
+ return_message: z.ZodOptional<z.ZodString>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ pattern: string;
219
+ flags?: string | undefined;
220
+ return_message?: string | undefined;
221
+ }, {
222
+ pattern: string;
223
+ flags?: string | undefined;
224
+ return_message?: string | undefined;
225
+ }>]>>;
226
+ non_empty: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
227
+ return_message: z.ZodOptional<z.ZodString>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ return_message?: string | undefined;
230
+ }, {
231
+ return_message?: string | undefined;
232
+ }>]>>;
233
+ reject_secrets: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
234
+ return_message: z.ZodOptional<z.ZodString>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ return_message?: string | undefined;
237
+ }, {
238
+ return_message?: string | undefined;
239
+ }>]>>;
202
240
  }, "strip", z.ZodTypeAny, {
203
241
  name: string;
204
242
  max_size?: number | undefined;
205
243
  trim?: boolean | "start" | "end" | "both" | undefined;
206
- allow_regex?: string | undefined;
207
- deny_regex?: string | undefined;
244
+ allow_regex?: string | {
245
+ pattern: string;
246
+ flags?: string | undefined;
247
+ return_message?: string | undefined;
248
+ } | undefined;
249
+ deny_regex?: string | {
250
+ pattern: string;
251
+ flags?: string | undefined;
252
+ return_message?: string | undefined;
253
+ } | undefined;
254
+ non_empty?: boolean | {
255
+ return_message?: string | undefined;
256
+ } | undefined;
257
+ reject_secrets?: boolean | {
258
+ return_message?: string | undefined;
259
+ } | undefined;
208
260
  }, {
209
261
  name: string;
210
262
  max_size?: number | undefined;
211
263
  trim?: boolean | "start" | "end" | "both" | undefined;
212
- allow_regex?: string | undefined;
213
- deny_regex?: string | undefined;
264
+ allow_regex?: string | {
265
+ pattern: string;
266
+ flags?: string | undefined;
267
+ return_message?: string | undefined;
268
+ } | undefined;
269
+ deny_regex?: string | {
270
+ pattern: string;
271
+ flags?: string | undefined;
272
+ return_message?: string | undefined;
273
+ } | undefined;
274
+ non_empty?: boolean | {
275
+ return_message?: string | undefined;
276
+ } | undefined;
277
+ reject_secrets?: boolean | {
278
+ return_message?: string | undefined;
279
+ } | undefined;
214
280
  }>]>, "many">>;
215
281
  history: z.ZodOptional<z.ZodObject<{
216
282
  max_items: z.ZodOptional<z.ZodNumber>;
@@ -220,27 +286,55 @@ declare const PromptAssetSchema: z.ZodObject<{
220
286
  max_items?: number | undefined;
221
287
  }>>;
222
288
  }, "strip", z.ZodTypeAny, {
289
+ history?: {
290
+ max_items?: number | undefined;
291
+ } | undefined;
223
292
  inputs?: (string | {
224
293
  name: string;
225
294
  max_size?: number | undefined;
226
295
  trim?: boolean | "start" | "end" | "both" | undefined;
227
- allow_regex?: string | undefined;
228
- deny_regex?: string | undefined;
296
+ allow_regex?: string | {
297
+ pattern: string;
298
+ flags?: string | undefined;
299
+ return_message?: string | undefined;
300
+ } | undefined;
301
+ deny_regex?: string | {
302
+ pattern: string;
303
+ flags?: string | undefined;
304
+ return_message?: string | undefined;
305
+ } | undefined;
306
+ non_empty?: boolean | {
307
+ return_message?: string | undefined;
308
+ } | undefined;
309
+ reject_secrets?: boolean | {
310
+ return_message?: string | undefined;
311
+ } | undefined;
229
312
  })[] | undefined;
313
+ }, {
230
314
  history?: {
231
315
  max_items?: number | undefined;
232
316
  } | undefined;
233
- }, {
234
317
  inputs?: (string | {
235
318
  name: string;
236
319
  max_size?: number | undefined;
237
320
  trim?: boolean | "start" | "end" | "both" | undefined;
238
- allow_regex?: string | undefined;
239
- deny_regex?: string | undefined;
321
+ allow_regex?: string | {
322
+ pattern: string;
323
+ flags?: string | undefined;
324
+ return_message?: string | undefined;
325
+ } | undefined;
326
+ deny_regex?: string | {
327
+ pattern: string;
328
+ flags?: string | undefined;
329
+ return_message?: string | undefined;
330
+ } | undefined;
331
+ non_empty?: boolean | {
332
+ return_message?: string | undefined;
333
+ } | undefined;
334
+ reject_secrets?: boolean | {
335
+ return_message?: string | undefined;
336
+ } | undefined;
240
337
  })[] | undefined;
241
- history?: {
242
- max_items?: number | undefined;
243
- } | undefined;
244
338
  }>>;
245
339
  includes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
340
  environments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -499,9 +593,8 @@ declare const PromptAssetSchema: z.ZodObject<{
499
593
  }, "strip", z.ZodTypeAny, {
500
594
  id: string;
501
595
  schema_version: number;
502
- description?: string | undefined;
503
- includes?: string[] | undefined;
504
596
  model?: string | undefined;
597
+ includes?: string[] | undefined;
505
598
  fallback_models?: string[] | undefined;
506
599
  reasoning?: {
507
600
  effort?: "low" | "medium" | "high" | undefined;
@@ -519,23 +612,17 @@ declare const PromptAssetSchema: z.ZodObject<{
519
612
  format?: "text" | "json" | "markdown" | undefined;
520
613
  stream?: boolean | undefined;
521
614
  } | undefined;
615
+ description?: string | undefined;
522
616
  tools?: (string | {
523
617
  name: string;
524
618
  description?: string | undefined;
525
619
  input_schema?: Record<string, unknown> | undefined;
526
620
  })[] | undefined;
527
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
528
- metadata?: {
529
- owner?: string | undefined;
530
- tags?: string[] | undefined;
531
- review_required?: boolean | undefined;
532
- stable?: boolean | undefined;
533
- } | undefined;
534
- sections?: {
535
- system_instructions?: string | undefined;
536
- prompt_template?: string | undefined;
537
- notes?: string | undefined;
621
+ source?: {
622
+ file_path?: string | undefined;
623
+ checksum?: string | undefined;
538
624
  } | undefined;
625
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
539
626
  mcp?: {
540
627
  servers?: (string | {
541
628
  name: string;
@@ -543,16 +630,30 @@ declare const PromptAssetSchema: z.ZodObject<{
543
630
  })[] | undefined;
544
631
  } | undefined;
545
632
  context?: {
633
+ history?: {
634
+ max_items?: number | undefined;
635
+ } | undefined;
546
636
  inputs?: (string | {
547
637
  name: string;
548
638
  max_size?: number | undefined;
549
639
  trim?: boolean | "start" | "end" | "both" | undefined;
550
- allow_regex?: string | undefined;
551
- deny_regex?: string | undefined;
640
+ allow_regex?: string | {
641
+ pattern: string;
642
+ flags?: string | undefined;
643
+ return_message?: string | undefined;
644
+ } | undefined;
645
+ deny_regex?: string | {
646
+ pattern: string;
647
+ flags?: string | undefined;
648
+ return_message?: string | undefined;
649
+ } | undefined;
650
+ non_empty?: boolean | {
651
+ return_message?: string | undefined;
652
+ } | undefined;
653
+ reject_secrets?: boolean | {
654
+ return_message?: string | undefined;
655
+ } | undefined;
552
656
  })[] | undefined;
553
- history?: {
554
- max_items?: number | undefined;
555
- } | undefined;
556
657
  } | undefined;
557
658
  environments?: Record<string, {
558
659
  model?: string | undefined;
@@ -604,15 +705,21 @@ declare const PromptAssetSchema: z.ZodObject<{
604
705
  input_schema?: Record<string, unknown> | undefined;
605
706
  })[] | undefined;
606
707
  }> | undefined;
607
- source?: {
608
- file_path?: string | undefined;
609
- checksum?: string | undefined;
708
+ metadata?: {
709
+ owner?: string | undefined;
710
+ tags?: string[] | undefined;
711
+ review_required?: boolean | undefined;
712
+ stable?: boolean | undefined;
713
+ } | undefined;
714
+ sections?: {
715
+ system_instructions?: string | undefined;
716
+ prompt_template?: string | undefined;
717
+ notes?: string | undefined;
610
718
  } | undefined;
611
719
  }, {
612
720
  id: string;
613
- description?: string | undefined;
614
- includes?: string[] | undefined;
615
721
  model?: string | undefined;
722
+ includes?: string[] | undefined;
616
723
  fallback_models?: string[] | undefined;
617
724
  reasoning?: {
618
725
  effort?: "low" | "medium" | "high" | undefined;
@@ -630,23 +737,17 @@ declare const PromptAssetSchema: z.ZodObject<{
630
737
  format?: "text" | "json" | "markdown" | undefined;
631
738
  stream?: boolean | undefined;
632
739
  } | undefined;
740
+ description?: string | undefined;
633
741
  tools?: (string | {
634
742
  name: string;
635
743
  description?: string | undefined;
636
744
  input_schema?: Record<string, unknown> | undefined;
637
745
  })[] | undefined;
638
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
639
- metadata?: {
640
- owner?: string | undefined;
641
- tags?: string[] | undefined;
642
- review_required?: boolean | undefined;
643
- stable?: boolean | undefined;
644
- } | undefined;
645
- sections?: {
646
- system_instructions?: string | undefined;
647
- prompt_template?: string | undefined;
648
- notes?: string | undefined;
746
+ source?: {
747
+ file_path?: string | undefined;
748
+ checksum?: string | undefined;
649
749
  } | undefined;
750
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
650
751
  schema_version?: number | undefined;
651
752
  mcp?: {
652
753
  servers?: (string | {
@@ -655,16 +756,30 @@ declare const PromptAssetSchema: z.ZodObject<{
655
756
  })[] | undefined;
656
757
  } | undefined;
657
758
  context?: {
759
+ history?: {
760
+ max_items?: number | undefined;
761
+ } | undefined;
658
762
  inputs?: (string | {
659
763
  name: string;
660
764
  max_size?: number | undefined;
661
765
  trim?: boolean | "start" | "end" | "both" | undefined;
662
- allow_regex?: string | undefined;
663
- deny_regex?: string | undefined;
766
+ allow_regex?: string | {
767
+ pattern: string;
768
+ flags?: string | undefined;
769
+ return_message?: string | undefined;
770
+ } | undefined;
771
+ deny_regex?: string | {
772
+ pattern: string;
773
+ flags?: string | undefined;
774
+ return_message?: string | undefined;
775
+ } | undefined;
776
+ non_empty?: boolean | {
777
+ return_message?: string | undefined;
778
+ } | undefined;
779
+ reject_secrets?: boolean | {
780
+ return_message?: string | undefined;
781
+ } | undefined;
664
782
  })[] | undefined;
665
- history?: {
666
- max_items?: number | undefined;
667
- } | undefined;
668
783
  } | undefined;
669
784
  environments?: Record<string, {
670
785
  model?: string | undefined;
@@ -716,9 +831,16 @@ declare const PromptAssetSchema: z.ZodObject<{
716
831
  input_schema?: Record<string, unknown> | undefined;
717
832
  })[] | undefined;
718
833
  }> | undefined;
719
- source?: {
720
- file_path?: string | undefined;
721
- checksum?: string | undefined;
834
+ metadata?: {
835
+ owner?: string | undefined;
836
+ tags?: string[] | undefined;
837
+ review_required?: boolean | undefined;
838
+ stable?: boolean | undefined;
839
+ } | undefined;
840
+ sections?: {
841
+ system_instructions?: string | undefined;
842
+ prompt_template?: string | undefined;
843
+ notes?: string | undefined;
722
844
  } | undefined;
723
845
  }>;
724
846
  type PromptAsset = z.infer<typeof PromptAssetSchema>;
@@ -197,20 +197,86 @@ declare const PromptAssetSchema: z.ZodObject<{
197
197
  name: z.ZodString;
198
198
  max_size: z.ZodOptional<z.ZodNumber>;
199
199
  trim: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["start", "end", "both"]>]>>;
200
- allow_regex: z.ZodOptional<z.ZodString>;
201
- deny_regex: z.ZodOptional<z.ZodString>;
200
+ allow_regex: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
201
+ pattern: z.ZodString;
202
+ flags: z.ZodOptional<z.ZodString>;
203
+ return_message: z.ZodOptional<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ pattern: string;
206
+ flags?: string | undefined;
207
+ return_message?: string | undefined;
208
+ }, {
209
+ pattern: string;
210
+ flags?: string | undefined;
211
+ return_message?: string | undefined;
212
+ }>]>>;
213
+ deny_regex: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
214
+ pattern: z.ZodString;
215
+ flags: z.ZodOptional<z.ZodString>;
216
+ return_message: z.ZodOptional<z.ZodString>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ pattern: string;
219
+ flags?: string | undefined;
220
+ return_message?: string | undefined;
221
+ }, {
222
+ pattern: string;
223
+ flags?: string | undefined;
224
+ return_message?: string | undefined;
225
+ }>]>>;
226
+ non_empty: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
227
+ return_message: z.ZodOptional<z.ZodString>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ return_message?: string | undefined;
230
+ }, {
231
+ return_message?: string | undefined;
232
+ }>]>>;
233
+ reject_secrets: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
234
+ return_message: z.ZodOptional<z.ZodString>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ return_message?: string | undefined;
237
+ }, {
238
+ return_message?: string | undefined;
239
+ }>]>>;
202
240
  }, "strip", z.ZodTypeAny, {
203
241
  name: string;
204
242
  max_size?: number | undefined;
205
243
  trim?: boolean | "start" | "end" | "both" | undefined;
206
- allow_regex?: string | undefined;
207
- deny_regex?: string | undefined;
244
+ allow_regex?: string | {
245
+ pattern: string;
246
+ flags?: string | undefined;
247
+ return_message?: string | undefined;
248
+ } | undefined;
249
+ deny_regex?: string | {
250
+ pattern: string;
251
+ flags?: string | undefined;
252
+ return_message?: string | undefined;
253
+ } | undefined;
254
+ non_empty?: boolean | {
255
+ return_message?: string | undefined;
256
+ } | undefined;
257
+ reject_secrets?: boolean | {
258
+ return_message?: string | undefined;
259
+ } | undefined;
208
260
  }, {
209
261
  name: string;
210
262
  max_size?: number | undefined;
211
263
  trim?: boolean | "start" | "end" | "both" | undefined;
212
- allow_regex?: string | undefined;
213
- deny_regex?: string | undefined;
264
+ allow_regex?: string | {
265
+ pattern: string;
266
+ flags?: string | undefined;
267
+ return_message?: string | undefined;
268
+ } | undefined;
269
+ deny_regex?: string | {
270
+ pattern: string;
271
+ flags?: string | undefined;
272
+ return_message?: string | undefined;
273
+ } | undefined;
274
+ non_empty?: boolean | {
275
+ return_message?: string | undefined;
276
+ } | undefined;
277
+ reject_secrets?: boolean | {
278
+ return_message?: string | undefined;
279
+ } | undefined;
214
280
  }>]>, "many">>;
215
281
  history: z.ZodOptional<z.ZodObject<{
216
282
  max_items: z.ZodOptional<z.ZodNumber>;
@@ -220,27 +286,55 @@ declare const PromptAssetSchema: z.ZodObject<{
220
286
  max_items?: number | undefined;
221
287
  }>>;
222
288
  }, "strip", z.ZodTypeAny, {
289
+ history?: {
290
+ max_items?: number | undefined;
291
+ } | undefined;
223
292
  inputs?: (string | {
224
293
  name: string;
225
294
  max_size?: number | undefined;
226
295
  trim?: boolean | "start" | "end" | "both" | undefined;
227
- allow_regex?: string | undefined;
228
- deny_regex?: string | undefined;
296
+ allow_regex?: string | {
297
+ pattern: string;
298
+ flags?: string | undefined;
299
+ return_message?: string | undefined;
300
+ } | undefined;
301
+ deny_regex?: string | {
302
+ pattern: string;
303
+ flags?: string | undefined;
304
+ return_message?: string | undefined;
305
+ } | undefined;
306
+ non_empty?: boolean | {
307
+ return_message?: string | undefined;
308
+ } | undefined;
309
+ reject_secrets?: boolean | {
310
+ return_message?: string | undefined;
311
+ } | undefined;
229
312
  })[] | undefined;
313
+ }, {
230
314
  history?: {
231
315
  max_items?: number | undefined;
232
316
  } | undefined;
233
- }, {
234
317
  inputs?: (string | {
235
318
  name: string;
236
319
  max_size?: number | undefined;
237
320
  trim?: boolean | "start" | "end" | "both" | undefined;
238
- allow_regex?: string | undefined;
239
- deny_regex?: string | undefined;
321
+ allow_regex?: string | {
322
+ pattern: string;
323
+ flags?: string | undefined;
324
+ return_message?: string | undefined;
325
+ } | undefined;
326
+ deny_regex?: string | {
327
+ pattern: string;
328
+ flags?: string | undefined;
329
+ return_message?: string | undefined;
330
+ } | undefined;
331
+ non_empty?: boolean | {
332
+ return_message?: string | undefined;
333
+ } | undefined;
334
+ reject_secrets?: boolean | {
335
+ return_message?: string | undefined;
336
+ } | undefined;
240
337
  })[] | undefined;
241
- history?: {
242
- max_items?: number | undefined;
243
- } | undefined;
244
338
  }>>;
245
339
  includes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
340
  environments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -499,9 +593,8 @@ declare const PromptAssetSchema: z.ZodObject<{
499
593
  }, "strip", z.ZodTypeAny, {
500
594
  id: string;
501
595
  schema_version: number;
502
- description?: string | undefined;
503
- includes?: string[] | undefined;
504
596
  model?: string | undefined;
597
+ includes?: string[] | undefined;
505
598
  fallback_models?: string[] | undefined;
506
599
  reasoning?: {
507
600
  effort?: "low" | "medium" | "high" | undefined;
@@ -519,23 +612,17 @@ declare const PromptAssetSchema: z.ZodObject<{
519
612
  format?: "text" | "json" | "markdown" | undefined;
520
613
  stream?: boolean | undefined;
521
614
  } | undefined;
615
+ description?: string | undefined;
522
616
  tools?: (string | {
523
617
  name: string;
524
618
  description?: string | undefined;
525
619
  input_schema?: Record<string, unknown> | undefined;
526
620
  })[] | undefined;
527
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
528
- metadata?: {
529
- owner?: string | undefined;
530
- tags?: string[] | undefined;
531
- review_required?: boolean | undefined;
532
- stable?: boolean | undefined;
533
- } | undefined;
534
- sections?: {
535
- system_instructions?: string | undefined;
536
- prompt_template?: string | undefined;
537
- notes?: string | undefined;
621
+ source?: {
622
+ file_path?: string | undefined;
623
+ checksum?: string | undefined;
538
624
  } | undefined;
625
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
539
626
  mcp?: {
540
627
  servers?: (string | {
541
628
  name: string;
@@ -543,16 +630,30 @@ declare const PromptAssetSchema: z.ZodObject<{
543
630
  })[] | undefined;
544
631
  } | undefined;
545
632
  context?: {
633
+ history?: {
634
+ max_items?: number | undefined;
635
+ } | undefined;
546
636
  inputs?: (string | {
547
637
  name: string;
548
638
  max_size?: number | undefined;
549
639
  trim?: boolean | "start" | "end" | "both" | undefined;
550
- allow_regex?: string | undefined;
551
- deny_regex?: string | undefined;
640
+ allow_regex?: string | {
641
+ pattern: string;
642
+ flags?: string | undefined;
643
+ return_message?: string | undefined;
644
+ } | undefined;
645
+ deny_regex?: string | {
646
+ pattern: string;
647
+ flags?: string | undefined;
648
+ return_message?: string | undefined;
649
+ } | undefined;
650
+ non_empty?: boolean | {
651
+ return_message?: string | undefined;
652
+ } | undefined;
653
+ reject_secrets?: boolean | {
654
+ return_message?: string | undefined;
655
+ } | undefined;
552
656
  })[] | undefined;
553
- history?: {
554
- max_items?: number | undefined;
555
- } | undefined;
556
657
  } | undefined;
557
658
  environments?: Record<string, {
558
659
  model?: string | undefined;
@@ -604,15 +705,21 @@ declare const PromptAssetSchema: z.ZodObject<{
604
705
  input_schema?: Record<string, unknown> | undefined;
605
706
  })[] | undefined;
606
707
  }> | undefined;
607
- source?: {
608
- file_path?: string | undefined;
609
- checksum?: string | undefined;
708
+ metadata?: {
709
+ owner?: string | undefined;
710
+ tags?: string[] | undefined;
711
+ review_required?: boolean | undefined;
712
+ stable?: boolean | undefined;
713
+ } | undefined;
714
+ sections?: {
715
+ system_instructions?: string | undefined;
716
+ prompt_template?: string | undefined;
717
+ notes?: string | undefined;
610
718
  } | undefined;
611
719
  }, {
612
720
  id: string;
613
- description?: string | undefined;
614
- includes?: string[] | undefined;
615
721
  model?: string | undefined;
722
+ includes?: string[] | undefined;
616
723
  fallback_models?: string[] | undefined;
617
724
  reasoning?: {
618
725
  effort?: "low" | "medium" | "high" | undefined;
@@ -630,23 +737,17 @@ declare const PromptAssetSchema: z.ZodObject<{
630
737
  format?: "text" | "json" | "markdown" | undefined;
631
738
  stream?: boolean | undefined;
632
739
  } | undefined;
740
+ description?: string | undefined;
633
741
  tools?: (string | {
634
742
  name: string;
635
743
  description?: string | undefined;
636
744
  input_schema?: Record<string, unknown> | undefined;
637
745
  })[] | undefined;
638
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
639
- metadata?: {
640
- owner?: string | undefined;
641
- tags?: string[] | undefined;
642
- review_required?: boolean | undefined;
643
- stable?: boolean | undefined;
644
- } | undefined;
645
- sections?: {
646
- system_instructions?: string | undefined;
647
- prompt_template?: string | undefined;
648
- notes?: string | undefined;
746
+ source?: {
747
+ file_path?: string | undefined;
748
+ checksum?: string | undefined;
649
749
  } | undefined;
750
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
650
751
  schema_version?: number | undefined;
651
752
  mcp?: {
652
753
  servers?: (string | {
@@ -655,16 +756,30 @@ declare const PromptAssetSchema: z.ZodObject<{
655
756
  })[] | undefined;
656
757
  } | undefined;
657
758
  context?: {
759
+ history?: {
760
+ max_items?: number | undefined;
761
+ } | undefined;
658
762
  inputs?: (string | {
659
763
  name: string;
660
764
  max_size?: number | undefined;
661
765
  trim?: boolean | "start" | "end" | "both" | undefined;
662
- allow_regex?: string | undefined;
663
- deny_regex?: string | undefined;
766
+ allow_regex?: string | {
767
+ pattern: string;
768
+ flags?: string | undefined;
769
+ return_message?: string | undefined;
770
+ } | undefined;
771
+ deny_regex?: string | {
772
+ pattern: string;
773
+ flags?: string | undefined;
774
+ return_message?: string | undefined;
775
+ } | undefined;
776
+ non_empty?: boolean | {
777
+ return_message?: string | undefined;
778
+ } | undefined;
779
+ reject_secrets?: boolean | {
780
+ return_message?: string | undefined;
781
+ } | undefined;
664
782
  })[] | undefined;
665
- history?: {
666
- max_items?: number | undefined;
667
- } | undefined;
668
783
  } | undefined;
669
784
  environments?: Record<string, {
670
785
  model?: string | undefined;
@@ -716,9 +831,16 @@ declare const PromptAssetSchema: z.ZodObject<{
716
831
  input_schema?: Record<string, unknown> | undefined;
717
832
  })[] | undefined;
718
833
  }> | undefined;
719
- source?: {
720
- file_path?: string | undefined;
721
- checksum?: string | undefined;
834
+ metadata?: {
835
+ owner?: string | undefined;
836
+ tags?: string[] | undefined;
837
+ review_required?: boolean | undefined;
838
+ stable?: boolean | undefined;
839
+ } | undefined;
840
+ sections?: {
841
+ system_instructions?: string | undefined;
842
+ prompt_template?: string | undefined;
843
+ notes?: string | undefined;
722
844
  } | undefined;
723
845
  }>;
724
846
  type PromptAsset = z.infer<typeof PromptAssetSchema>;