promptopskit 0.3.0 → 0.3.3

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 (58) hide show
  1. package/README.md +49 -0
  2. package/SKILL.md +134 -71
  3. package/dist/{chunk-VYVEVJC3.js → chunk-R5PKK6Y7.js} +28 -24
  4. package/dist/chunk-R5PKK6Y7.js.map +1 -0
  5. package/dist/chunk-S5YHGHK5.js +311 -0
  6. package/dist/chunk-S5YHGHK5.js.map +1 -0
  7. package/dist/{chunk-PU3UPUND.js → chunk-U7IDX2P7.js} +9 -6
  8. package/dist/chunk-U7IDX2P7.js.map +1 -0
  9. package/dist/{chunk-5BI5FP5L.js → chunk-UJA7XBQZ.js} +24 -20
  10. package/dist/chunk-UJA7XBQZ.js.map +1 -0
  11. package/dist/chunk-VU3WKLFI.js +87 -0
  12. package/dist/chunk-VU3WKLFI.js.map +1 -0
  13. package/dist/cli/index.js +44 -20
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/index.cjs +325 -245
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +7 -4
  18. package/dist/index.d.ts +7 -4
  19. package/dist/index.js +29 -195
  20. package/dist/index.js.map +1 -1
  21. package/dist/providers/anthropic.cjs +534 -21
  22. package/dist/providers/anthropic.cjs.map +1 -1
  23. package/dist/providers/anthropic.d.cts +2 -2
  24. package/dist/providers/anthropic.d.ts +2 -2
  25. package/dist/providers/anthropic.js +3 -2
  26. package/dist/providers/gemini.cjs +530 -17
  27. package/dist/providers/gemini.cjs.map +1 -1
  28. package/dist/providers/gemini.d.cts +2 -2
  29. package/dist/providers/gemini.d.ts +2 -2
  30. package/dist/providers/gemini.js +3 -2
  31. package/dist/providers/openai.cjs +535 -22
  32. package/dist/providers/openai.cjs.map +1 -1
  33. package/dist/providers/openai.d.cts +2 -2
  34. package/dist/providers/openai.d.ts +2 -2
  35. package/dist/providers/openai.js +3 -2
  36. package/dist/providers/openrouter.cjs +539 -26
  37. package/dist/providers/openrouter.cjs.map +1 -1
  38. package/dist/providers/openrouter.d.cts +2 -2
  39. package/dist/providers/openrouter.d.ts +2 -2
  40. package/dist/providers/openrouter.js +4 -3
  41. package/dist/testing.d.cts +1 -1
  42. package/dist/testing.d.ts +1 -1
  43. package/dist/types-CgA7_wNI.d.cts +68 -0
  44. package/dist/types-D_-336jx.d.ts +68 -0
  45. package/dist/usagetap/index.d.cts +2 -2
  46. package/dist/usagetap/index.d.ts +2 -2
  47. package/package.json +1 -1
  48. package/dist/chunk-5BI5FP5L.js.map +0 -1
  49. package/dist/chunk-6KGBPHSY.js +0 -56
  50. package/dist/chunk-6KGBPHSY.js.map +0 -1
  51. package/dist/chunk-PU3UPUND.js.map +0 -1
  52. package/dist/chunk-UYTUGV7Z.js +0 -83
  53. package/dist/chunk-UYTUGV7Z.js.map +0 -1
  54. package/dist/chunk-VYVEVJC3.js.map +0 -1
  55. package/dist/types-1zDDD-Ij.d.cts +0 -40
  56. package/dist/types-CQhlfAnR.d.ts +0 -40
  57. package/dist/{schema-DIOA4OiO.d.cts → schema-Dq0jKest.d.cts} +42 -42
  58. package/dist/{schema-DIOA4OiO.d.ts → schema-Dq0jKest.d.ts} +42 -42
@@ -211,21 +211,21 @@ declare const PromptAssetSchema: z.ZodObject<{
211
211
  max_items?: number | undefined;
212
212
  }>>;
213
213
  }, "strip", z.ZodTypeAny, {
214
+ history?: {
215
+ max_items?: number | undefined;
216
+ } | undefined;
214
217
  inputs?: (string | {
215
218
  name: string;
216
219
  max_size?: number | undefined;
217
220
  })[] | undefined;
221
+ }, {
218
222
  history?: {
219
223
  max_items?: number | undefined;
220
224
  } | undefined;
221
- }, {
222
225
  inputs?: (string | {
223
226
  name: string;
224
227
  max_size?: number | undefined;
225
228
  })[] | undefined;
226
- history?: {
227
- max_items?: number | undefined;
228
- } | undefined;
229
229
  }>>;
230
230
  includes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
231
  environments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -484,9 +484,8 @@ declare const PromptAssetSchema: z.ZodObject<{
484
484
  }, "strip", z.ZodTypeAny, {
485
485
  id: string;
486
486
  schema_version: number;
487
- description?: string | undefined;
488
- includes?: string[] | undefined;
489
487
  model?: string | undefined;
488
+ includes?: string[] | undefined;
490
489
  fallback_models?: string[] | undefined;
491
490
  reasoning?: {
492
491
  effort?: "low" | "medium" | "high" | undefined;
@@ -504,23 +503,17 @@ declare const PromptAssetSchema: z.ZodObject<{
504
503
  format?: "text" | "json" | "markdown" | undefined;
505
504
  stream?: boolean | undefined;
506
505
  } | undefined;
506
+ description?: string | undefined;
507
507
  tools?: (string | {
508
508
  name: string;
509
509
  description?: string | undefined;
510
510
  input_schema?: Record<string, unknown> | undefined;
511
511
  })[] | undefined;
512
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
513
- metadata?: {
514
- owner?: string | undefined;
515
- tags?: string[] | undefined;
516
- review_required?: boolean | undefined;
517
- stable?: boolean | undefined;
518
- } | undefined;
519
- sections?: {
520
- system_instructions?: string | undefined;
521
- prompt_template?: string | undefined;
522
- notes?: string | undefined;
512
+ source?: {
513
+ file_path?: string | undefined;
514
+ checksum?: string | undefined;
523
515
  } | undefined;
516
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
524
517
  mcp?: {
525
518
  servers?: (string | {
526
519
  name: string;
@@ -528,13 +521,13 @@ declare const PromptAssetSchema: z.ZodObject<{
528
521
  })[] | undefined;
529
522
  } | undefined;
530
523
  context?: {
524
+ history?: {
525
+ max_items?: number | undefined;
526
+ } | undefined;
531
527
  inputs?: (string | {
532
528
  name: string;
533
529
  max_size?: number | undefined;
534
530
  })[] | undefined;
535
- history?: {
536
- max_items?: number | undefined;
537
- } | undefined;
538
531
  } | undefined;
539
532
  environments?: Record<string, {
540
533
  model?: string | undefined;
@@ -586,15 +579,21 @@ declare const PromptAssetSchema: z.ZodObject<{
586
579
  input_schema?: Record<string, unknown> | undefined;
587
580
  })[] | undefined;
588
581
  }> | undefined;
589
- source?: {
590
- file_path?: string | undefined;
591
- checksum?: string | undefined;
582
+ metadata?: {
583
+ owner?: string | undefined;
584
+ tags?: string[] | undefined;
585
+ review_required?: boolean | undefined;
586
+ stable?: boolean | undefined;
587
+ } | undefined;
588
+ sections?: {
589
+ system_instructions?: string | undefined;
590
+ prompt_template?: string | undefined;
591
+ notes?: string | undefined;
592
592
  } | undefined;
593
593
  }, {
594
594
  id: string;
595
- description?: string | undefined;
596
- includes?: string[] | undefined;
597
595
  model?: string | undefined;
596
+ includes?: string[] | undefined;
598
597
  fallback_models?: string[] | undefined;
599
598
  reasoning?: {
600
599
  effort?: "low" | "medium" | "high" | undefined;
@@ -612,23 +611,17 @@ declare const PromptAssetSchema: z.ZodObject<{
612
611
  format?: "text" | "json" | "markdown" | undefined;
613
612
  stream?: boolean | undefined;
614
613
  } | undefined;
614
+ description?: string | undefined;
615
615
  tools?: (string | {
616
616
  name: string;
617
617
  description?: string | undefined;
618
618
  input_schema?: Record<string, unknown> | undefined;
619
619
  })[] | undefined;
620
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
621
- metadata?: {
622
- owner?: string | undefined;
623
- tags?: string[] | undefined;
624
- review_required?: boolean | undefined;
625
- stable?: boolean | undefined;
626
- } | undefined;
627
- sections?: {
628
- system_instructions?: string | undefined;
629
- prompt_template?: string | undefined;
630
- notes?: string | undefined;
620
+ source?: {
621
+ file_path?: string | undefined;
622
+ checksum?: string | undefined;
631
623
  } | undefined;
624
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
632
625
  schema_version?: number | undefined;
633
626
  mcp?: {
634
627
  servers?: (string | {
@@ -637,13 +630,13 @@ declare const PromptAssetSchema: z.ZodObject<{
637
630
  })[] | undefined;
638
631
  } | undefined;
639
632
  context?: {
633
+ history?: {
634
+ max_items?: number | undefined;
635
+ } | undefined;
640
636
  inputs?: (string | {
641
637
  name: string;
642
638
  max_size?: number | undefined;
643
639
  })[] | undefined;
644
- history?: {
645
- max_items?: number | undefined;
646
- } | undefined;
647
640
  } | undefined;
648
641
  environments?: Record<string, {
649
642
  model?: string | undefined;
@@ -695,9 +688,16 @@ declare const PromptAssetSchema: z.ZodObject<{
695
688
  input_schema?: Record<string, unknown> | undefined;
696
689
  })[] | undefined;
697
690
  }> | undefined;
698
- source?: {
699
- file_path?: string | undefined;
700
- checksum?: string | undefined;
691
+ metadata?: {
692
+ owner?: string | undefined;
693
+ tags?: string[] | undefined;
694
+ review_required?: boolean | undefined;
695
+ stable?: boolean | undefined;
696
+ } | undefined;
697
+ sections?: {
698
+ system_instructions?: string | undefined;
699
+ prompt_template?: string | undefined;
700
+ notes?: string | undefined;
701
701
  } | undefined;
702
702
  }>;
703
703
  type PromptAsset = z.infer<typeof PromptAssetSchema>;
@@ -211,21 +211,21 @@ declare const PromptAssetSchema: z.ZodObject<{
211
211
  max_items?: number | undefined;
212
212
  }>>;
213
213
  }, "strip", z.ZodTypeAny, {
214
+ history?: {
215
+ max_items?: number | undefined;
216
+ } | undefined;
214
217
  inputs?: (string | {
215
218
  name: string;
216
219
  max_size?: number | undefined;
217
220
  })[] | undefined;
221
+ }, {
218
222
  history?: {
219
223
  max_items?: number | undefined;
220
224
  } | undefined;
221
- }, {
222
225
  inputs?: (string | {
223
226
  name: string;
224
227
  max_size?: number | undefined;
225
228
  })[] | undefined;
226
- history?: {
227
- max_items?: number | undefined;
228
- } | undefined;
229
229
  }>>;
230
230
  includes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
231
  environments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -484,9 +484,8 @@ declare const PromptAssetSchema: z.ZodObject<{
484
484
  }, "strip", z.ZodTypeAny, {
485
485
  id: string;
486
486
  schema_version: number;
487
- description?: string | undefined;
488
- includes?: string[] | undefined;
489
487
  model?: string | undefined;
488
+ includes?: string[] | undefined;
490
489
  fallback_models?: string[] | undefined;
491
490
  reasoning?: {
492
491
  effort?: "low" | "medium" | "high" | undefined;
@@ -504,23 +503,17 @@ declare const PromptAssetSchema: z.ZodObject<{
504
503
  format?: "text" | "json" | "markdown" | undefined;
505
504
  stream?: boolean | undefined;
506
505
  } | undefined;
506
+ description?: string | undefined;
507
507
  tools?: (string | {
508
508
  name: string;
509
509
  description?: string | undefined;
510
510
  input_schema?: Record<string, unknown> | undefined;
511
511
  })[] | undefined;
512
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
513
- metadata?: {
514
- owner?: string | undefined;
515
- tags?: string[] | undefined;
516
- review_required?: boolean | undefined;
517
- stable?: boolean | undefined;
518
- } | undefined;
519
- sections?: {
520
- system_instructions?: string | undefined;
521
- prompt_template?: string | undefined;
522
- notes?: string | undefined;
512
+ source?: {
513
+ file_path?: string | undefined;
514
+ checksum?: string | undefined;
523
515
  } | undefined;
516
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
524
517
  mcp?: {
525
518
  servers?: (string | {
526
519
  name: string;
@@ -528,13 +521,13 @@ declare const PromptAssetSchema: z.ZodObject<{
528
521
  })[] | undefined;
529
522
  } | undefined;
530
523
  context?: {
524
+ history?: {
525
+ max_items?: number | undefined;
526
+ } | undefined;
531
527
  inputs?: (string | {
532
528
  name: string;
533
529
  max_size?: number | undefined;
534
530
  })[] | undefined;
535
- history?: {
536
- max_items?: number | undefined;
537
- } | undefined;
538
531
  } | undefined;
539
532
  environments?: Record<string, {
540
533
  model?: string | undefined;
@@ -586,15 +579,21 @@ declare const PromptAssetSchema: z.ZodObject<{
586
579
  input_schema?: Record<string, unknown> | undefined;
587
580
  })[] | undefined;
588
581
  }> | undefined;
589
- source?: {
590
- file_path?: string | undefined;
591
- checksum?: string | undefined;
582
+ metadata?: {
583
+ owner?: string | undefined;
584
+ tags?: string[] | undefined;
585
+ review_required?: boolean | undefined;
586
+ stable?: boolean | undefined;
587
+ } | undefined;
588
+ sections?: {
589
+ system_instructions?: string | undefined;
590
+ prompt_template?: string | undefined;
591
+ notes?: string | undefined;
592
592
  } | undefined;
593
593
  }, {
594
594
  id: string;
595
- description?: string | undefined;
596
- includes?: string[] | undefined;
597
595
  model?: string | undefined;
596
+ includes?: string[] | undefined;
598
597
  fallback_models?: string[] | undefined;
599
598
  reasoning?: {
600
599
  effort?: "low" | "medium" | "high" | undefined;
@@ -612,23 +611,17 @@ declare const PromptAssetSchema: z.ZodObject<{
612
611
  format?: "text" | "json" | "markdown" | undefined;
613
612
  stream?: boolean | undefined;
614
613
  } | undefined;
614
+ description?: string | undefined;
615
615
  tools?: (string | {
616
616
  name: string;
617
617
  description?: string | undefined;
618
618
  input_schema?: Record<string, unknown> | undefined;
619
619
  })[] | undefined;
620
- provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
621
- metadata?: {
622
- owner?: string | undefined;
623
- tags?: string[] | undefined;
624
- review_required?: boolean | undefined;
625
- stable?: boolean | undefined;
626
- } | undefined;
627
- sections?: {
628
- system_instructions?: string | undefined;
629
- prompt_template?: string | undefined;
630
- notes?: string | undefined;
620
+ source?: {
621
+ file_path?: string | undefined;
622
+ checksum?: string | undefined;
631
623
  } | undefined;
624
+ provider?: "openai" | "anthropic" | "google" | "gemini" | "openrouter" | "any" | undefined;
632
625
  schema_version?: number | undefined;
633
626
  mcp?: {
634
627
  servers?: (string | {
@@ -637,13 +630,13 @@ declare const PromptAssetSchema: z.ZodObject<{
637
630
  })[] | undefined;
638
631
  } | undefined;
639
632
  context?: {
633
+ history?: {
634
+ max_items?: number | undefined;
635
+ } | undefined;
640
636
  inputs?: (string | {
641
637
  name: string;
642
638
  max_size?: number | undefined;
643
639
  })[] | undefined;
644
- history?: {
645
- max_items?: number | undefined;
646
- } | undefined;
647
640
  } | undefined;
648
641
  environments?: Record<string, {
649
642
  model?: string | undefined;
@@ -695,9 +688,16 @@ declare const PromptAssetSchema: z.ZodObject<{
695
688
  input_schema?: Record<string, unknown> | undefined;
696
689
  })[] | undefined;
697
690
  }> | undefined;
698
- source?: {
699
- file_path?: string | undefined;
700
- checksum?: string | undefined;
691
+ metadata?: {
692
+ owner?: string | undefined;
693
+ tags?: string[] | undefined;
694
+ review_required?: boolean | undefined;
695
+ stable?: boolean | undefined;
696
+ } | undefined;
697
+ sections?: {
698
+ system_instructions?: string | undefined;
699
+ prompt_template?: string | undefined;
700
+ notes?: string | undefined;
701
701
  } | undefined;
702
702
  }>;
703
703
  type PromptAsset = z.infer<typeof PromptAssetSchema>;