jev-recipes 0.8.1 → 0.8.2

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 (34) hide show
  1. package/README.md +5 -3
  2. package/dist/catalog/evidence.d.ts +21 -0
  3. package/dist/catalog/evidence.js +1 -0
  4. package/dist/catalog/generated/details/paragraph-boundary.json +42 -0
  5. package/dist/catalog/generated/details/text-block-role.json +77 -0
  6. package/dist/catalog/generated/loaders.js +2 -0
  7. package/dist/catalog/generated/metadata.js +1207 -0
  8. package/dist/catalog/generated/names.d.ts +1 -1
  9. package/dist/catalog/generated/names.js +2 -0
  10. package/dist/catalog/index.d.ts +3 -0
  11. package/dist/catalog/schema.d.ts +2 -0
  12. package/dist/cli/schema.d.ts +6 -0
  13. package/dist/evaluation/archive.d.ts +8 -8
  14. package/dist/evaluation/decisions.js +1 -1
  15. package/dist/evaluation/schema.d.ts +6 -6
  16. package/dist/recipes/action-effects/index.js +5 -5
  17. package/dist/recipes/causal-attribution/schema.d.ts +3 -3
  18. package/dist/recipes/completion-gate/index.js +2 -2
  19. package/dist/recipes/context-prune/index.js +3 -3
  20. package/dist/recipes/motivation-source/schema.d.ts +3 -3
  21. package/dist/recipes/paragraph-boundary/demo.json +19 -0
  22. package/dist/recipes/paragraph-boundary/index.d.ts +5 -0
  23. package/dist/recipes/paragraph-boundary/index.js +15 -0
  24. package/dist/recipes/paragraph-boundary/schema.d.ts +39 -0
  25. package/dist/recipes/paragraph-boundary/schema.js +17 -0
  26. package/dist/recipes/response-refusal/schema.d.ts +3 -3
  27. package/dist/recipes/text-block-role/demo.json +29 -0
  28. package/dist/recipes/text-block-role/index.d.ts +5 -0
  29. package/dist/recipes/text-block-role/index.js +21 -0
  30. package/dist/recipes/text-block-role/schema.d.ts +56 -0
  31. package/dist/recipes/text-block-role/schema.js +26 -0
  32. package/dist/src/index.d.ts +4 -0
  33. package/dist/src/index.js +2 -0
  34. package/package.json +9 -1
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ export declare const textBlockRoleVerdictSchema: z.ZodEnum<{
3
+ code: "code";
4
+ unclear: "unclear";
5
+ heading: "heading";
6
+ other: "other";
7
+ body: "body";
8
+ list_item: "list_item";
9
+ table: "table";
10
+ caption: "caption";
11
+ formula: "formula";
12
+ }>;
13
+ export declare const textBlockRoleInputSchema: z.ZodObject<{
14
+ text: z.ZodString;
15
+ before: z.ZodOptional<z.ZodString>;
16
+ after: z.ZodOptional<z.ZodString>;
17
+ context: z.ZodOptional<z.ZodString>;
18
+ minConfidence: z.ZodOptional<z.ZodNumber>;
19
+ }, z.core.$strip>;
20
+ export declare const textBlockRoleResultSchema: z.ZodObject<{
21
+ model: z.ZodString;
22
+ usage: z.ZodObject<{
23
+ input_tokens: z.ZodNumber;
24
+ output_tokens: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ status: z.ZodEnum<{
27
+ ready: "ready";
28
+ review: "review";
29
+ }>;
30
+ verdict: z.ZodEnum<{
31
+ code: "code";
32
+ unclear: "unclear";
33
+ heading: "heading";
34
+ other: "other";
35
+ body: "body";
36
+ list_item: "list_item";
37
+ table: "table";
38
+ caption: "caption";
39
+ formula: "formula";
40
+ }>;
41
+ confidence: z.ZodNumber;
42
+ probabilities: z.ZodRecord<z.ZodEnum<{
43
+ code: "code";
44
+ unclear: "unclear";
45
+ heading: "heading";
46
+ other: "other";
47
+ body: "body";
48
+ list_item: "list_item";
49
+ table: "table";
50
+ caption: "caption";
51
+ formula: "formula";
52
+ }>, z.ZodNumber>;
53
+ }, z.core.$strip>;
54
+ export type TextBlockRoleVerdict = z.infer<typeof textBlockRoleVerdictSchema>;
55
+ export type TextBlockRoleInput = z.infer<typeof textBlockRoleInputSchema>;
56
+ export type TextBlockRoleResult = z.infer<typeof textBlockRoleResultSchema>;
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { decisionStatusSchema, nonEmptyText, probability, resultMetadataSchema, } from '../../src/schema.js';
3
+ export const textBlockRoleVerdictSchema = z.enum([
4
+ 'heading',
5
+ 'body',
6
+ 'list_item',
7
+ 'code',
8
+ 'table',
9
+ 'caption',
10
+ 'formula',
11
+ 'other',
12
+ 'unclear',
13
+ ]);
14
+ export const textBlockRoleInputSchema = z.object({
15
+ text: nonEmptyText,
16
+ before: nonEmptyText.optional(),
17
+ after: nonEmptyText.optional(),
18
+ context: nonEmptyText.optional(),
19
+ minConfidence: probability.optional(),
20
+ });
21
+ export const textBlockRoleResultSchema = resultMetadataSchema.extend({
22
+ status: decisionStatusSchema,
23
+ verdict: textBlockRoleVerdictSchema,
24
+ confidence: probability,
25
+ probabilities: z.record(textBlockRoleVerdictSchema, probability),
26
+ });
@@ -314,6 +314,8 @@ export { offerTermsFacets, offerTermsFacetsInputSchema, offerTermsFacetsLabelSch
314
314
  export type { OfferTermsFacetsInput, OfferTermsFacetsLabel, OfferTermsFacetsResult, } from '../recipes/offer-terms-facets/index.js';
315
315
  export { outcomeFraming, outcomeFramingInputSchema, outcomeFramingResultSchema, outcomeFramingVerdictSchema, } from '../recipes/outcome-framing/index.js';
316
316
  export type { OutcomeFramingInput, OutcomeFramingResult, OutcomeFramingVerdict, } from '../recipes/outcome-framing/index.js';
317
+ export { paragraphBoundary, paragraphBoundaryInputSchema, paragraphBoundaryResultSchema, paragraphBoundaryVerdictSchema, } from '../recipes/paragraph-boundary/index.js';
318
+ export type { ParagraphBoundaryInput, ParagraphBoundaryResult, ParagraphBoundaryVerdict, } from '../recipes/paragraph-boundary/index.js';
317
319
  export { passageCompare, passageCompareInputSchema, passageCompareResultSchema, passageCompareVerdictSchema, } from '../recipes/passage-compare/index.js';
318
320
  export type { PassageCompareInput, PassageCompareResult, PassageCompareVerdict, } from '../recipes/passage-compare/index.js';
319
321
  export { passageDifficulty, passageDifficultyInputSchema, passageDifficultyResultSchema, passageDifficultyVerdictSchema, } from '../recipes/passage-difficulty/index.js';
@@ -466,6 +468,8 @@ export { tempoChange, tempoChangeInputSchema, tempoChangeResultSchema, tempoChan
466
468
  export type { TempoChangeInput, TempoChangeResult, TempoChangeVerdict, } from '../recipes/tempo-change/index.js';
467
469
  export { tensionLevel, tensionLevelInputSchema, tensionLevelResultSchema, tensionLevelVerdictSchema, } from '../recipes/tension-level/index.js';
468
470
  export type { TensionLevelInput, TensionLevelResult, TensionLevelVerdict, } from '../recipes/tension-level/index.js';
471
+ export { textBlockRole, textBlockRoleInputSchema, textBlockRoleResultSchema, textBlockRoleVerdictSchema, } from '../recipes/text-block-role/index.js';
472
+ export type { TextBlockRoleInput, TextBlockRoleResult, TextBlockRoleVerdict, } from '../recipes/text-block-role/index.js';
469
473
  export { ticketMatch, ticketMatchInputSchema, ticketMatchResultSchema, ticketMatchVerdictSchema, } from '../recipes/ticket-match/index.js';
470
474
  export type { TicketMatchInput, TicketMatchResult, TicketMatchVerdict, } from '../recipes/ticket-match/index.js';
471
475
  export { toneCheck, toneCheckInputSchema, toneCheckResultSchema, toneCheckVerdictSchema, } from '../recipes/tone-check/index.js';
package/dist/src/index.js CHANGED
@@ -157,6 +157,7 @@ export { objectionKind, objectionKindInputSchema, objectionKindResultSchema, obj
157
157
  export { objectiveFit, objectiveFitInputSchema, objectiveFitResultSchema, objectiveFitVerdictSchema, } from '../recipes/objective-fit/index.js';
158
158
  export { offerTermsFacets, offerTermsFacetsInputSchema, offerTermsFacetsLabelSchema, offerTermsFacetsResultSchema, } from '../recipes/offer-terms-facets/index.js';
159
159
  export { outcomeFraming, outcomeFramingInputSchema, outcomeFramingResultSchema, outcomeFramingVerdictSchema, } from '../recipes/outcome-framing/index.js';
160
+ export { paragraphBoundary, paragraphBoundaryInputSchema, paragraphBoundaryResultSchema, paragraphBoundaryVerdictSchema, } from '../recipes/paragraph-boundary/index.js';
160
161
  export { passageCompare, passageCompareInputSchema, passageCompareResultSchema, passageCompareVerdictSchema, } from '../recipes/passage-compare/index.js';
161
162
  export { passageDifficulty, passageDifficultyInputSchema, passageDifficultyResultSchema, passageDifficultyVerdictSchema, } from '../recipes/passage-difficulty/index.js';
162
163
  export { passageDuplicate, passageDuplicateInputSchema, passageDuplicateResultSchema, passageDuplicateVerdictSchema, } from '../recipes/passage-duplicate/index.js';
@@ -233,6 +234,7 @@ export { taskDuplicate, taskDuplicateInputSchema, taskDuplicateResultSchema, tas
233
234
  export { taskOverlap, taskOverlapInputSchema, taskOverlapResultSchema, taskOverlapVerdictSchema, } from '../recipes/task-overlap/index.js';
234
235
  export { tempoChange, tempoChangeInputSchema, tempoChangeResultSchema, tempoChangeVerdictSchema, } from '../recipes/tempo-change/index.js';
235
236
  export { tensionLevel, tensionLevelInputSchema, tensionLevelResultSchema, tensionLevelVerdictSchema, } from '../recipes/tension-level/index.js';
237
+ export { textBlockRole, textBlockRoleInputSchema, textBlockRoleResultSchema, textBlockRoleVerdictSchema, } from '../recipes/text-block-role/index.js';
236
238
  export { ticketMatch, ticketMatchInputSchema, ticketMatchResultSchema, ticketMatchVerdictSchema, } from '../recipes/ticket-match/index.js';
237
239
  export { toneCheck, toneCheckInputSchema, toneCheckResultSchema, toneCheckVerdictSchema, } from '../recipes/tone-check/index.js';
238
240
  export { toolCallGate, toolCallGateActionSchema, toolCallGateInputSchema, toolCallGateResultSchema, toolCallGateRiskSchema, toolCallGateVerdictSchema, } from '../recipes/tool-call-gate/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jev-recipes",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Small, composable Jev decisions for retrieval, conversations, and agent workflows.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -652,6 +652,10 @@
652
652
  "types": "./dist/recipes/outcome-framing/index.d.ts",
653
653
  "import": "./dist/recipes/outcome-framing/index.js"
654
654
  },
655
+ "./paragraph-boundary": {
656
+ "types": "./dist/recipes/paragraph-boundary/index.d.ts",
657
+ "import": "./dist/recipes/paragraph-boundary/index.js"
658
+ },
655
659
  "./passage-compare": {
656
660
  "types": "./dist/recipes/passage-compare/index.d.ts",
657
661
  "import": "./dist/recipes/passage-compare/index.js"
@@ -956,6 +960,10 @@
956
960
  "types": "./dist/recipes/tension-level/index.d.ts",
957
961
  "import": "./dist/recipes/tension-level/index.js"
958
962
  },
963
+ "./text-block-role": {
964
+ "types": "./dist/recipes/text-block-role/index.d.ts",
965
+ "import": "./dist/recipes/text-block-role/index.js"
966
+ },
959
967
  "./ticket-match": {
960
968
  "types": "./dist/recipes/ticket-match/index.d.ts",
961
969
  "import": "./dist/recipes/ticket-match/index.js"