jev-recipes 0.5.2 → 0.6.0
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 +7 -5
- package/dist/catalog/generated/details/action-compare.json +44 -0
- package/dist/catalog/generated/details/action-effects.json +99 -0
- package/dist/catalog/generated/details/action-reversibility.json +52 -0
- package/dist/catalog/generated/details/age-appropriateness.json +49 -0
- package/dist/catalog/generated/details/alert-actionability.json +52 -0
- package/dist/catalog/generated/details/answer-disclosures.json +88 -0
- package/dist/catalog/generated/details/answer-grade.json +50 -0
- package/dist/catalog/generated/details/appeal-grounds-kind.json +68 -0
- package/dist/catalog/generated/details/appointment-request-kind.json +44 -0
- package/dist/catalog/generated/details/breaking-change-signal.json +34 -0
- package/dist/catalog/generated/details/budget-fit.json +34 -0
- package/dist/catalog/generated/details/budget-narrative-fit.json +34 -0
- package/dist/catalog/generated/details/bug-report-completeness.json +51 -0
- package/dist/catalog/generated/details/buying-intent.json +52 -0
- package/dist/catalog/generated/details/care-urgency-wording.json +48 -0
- package/dist/catalog/generated/details/category-fit.json +34 -0
- package/dist/catalog/generated/details/causal-language-strength.json +51 -0
- package/dist/catalog/generated/details/change-risk.json +49 -0
- package/dist/catalog/generated/details/change-window-fit.json +34 -0
- package/dist/catalog/generated/details/checkers-move.json +1 -2
- package/dist/catalog/generated/details/choose-action.json +1 -2
- package/dist/catalog/generated/details/claim-facets.json +99 -0
- package/dist/catalog/generated/details/clause-conflict.json +34 -0
- package/dist/catalog/generated/details/clause-kind.json +45 -0
- package/dist/catalog/generated/details/clickbait-level.json +48 -0
- package/dist/catalog/generated/details/commit-message-fit.json +34 -0
- package/dist/catalog/generated/details/commitment-strength.json +52 -0
- package/dist/catalog/generated/details/comparable-fit.json +34 -0
- package/dist/catalog/generated/details/consent-request.json +33 -0
- package/dist/catalog/generated/details/consent-scope-fit.json +34 -0
- package/dist/catalog/generated/details/content-facets.json +111 -0
- package/dist/catalog/generated/details/content-freshness-signal.json +33 -0
- package/dist/catalog/generated/details/continuation-compare.json +44 -0
- package/dist/catalog/generated/details/corrective-action-fit.json +34 -0
- package/dist/catalog/generated/details/daw-request-kind.json +44 -0
- package/dist/catalog/generated/details/deadline-risk.json +49 -0
- package/dist/catalog/generated/details/defect-report-facets.json +111 -0
- package/dist/catalog/generated/details/delegation-fit.json +34 -0
- package/dist/catalog/generated/details/disclosure-facets.json +111 -0
- package/dist/catalog/generated/details/dispute-kind.json +68 -0
- package/dist/catalog/generated/details/dynamic-change.json +39 -0
- package/dist/catalog/generated/details/eligibility-facets.json +111 -0
- package/dist/catalog/generated/details/emotion-kind.json +45 -0
- package/dist/catalog/generated/details/entity-match.json +35 -0
- package/dist/catalog/generated/details/error-acknowledgment.json +34 -0
- package/dist/catalog/generated/details/escalation-wording.json +33 -0
- package/dist/catalog/generated/details/evidence-strength.json +49 -0
- package/dist/catalog/generated/details/exercise-select.json +68 -0
- package/dist/catalog/generated/details/expense-category.json +39 -0
- package/dist/catalog/generated/details/explanation-level.json +52 -0
- package/dist/catalog/generated/details/extraction-fidelity.json +49 -0
- package/dist/catalog/generated/details/fair-housing-wording.json +33 -0
- package/dist/catalog/generated/details/feedback-actionability.json +51 -0
- package/dist/catalog/generated/details/financial-advice-signal.json +33 -0
- package/dist/catalog/generated/details/forecast-confidence-wording.json +51 -0
- package/dist/catalog/generated/details/format-fit.json +34 -0
- package/dist/catalog/generated/details/funder-fit.json +43 -0
- package/dist/catalog/generated/details/game-action.json +161 -0
- package/dist/catalog/generated/details/game-phase.json +45 -0
- package/dist/catalog/generated/details/goal-drift.json +35 -0
- package/dist/catalog/generated/details/grounding-level.json +49 -0
- package/dist/catalog/generated/details/guest-request-facets.json +111 -0
- package/dist/catalog/generated/details/handoff-completeness.json +51 -0
- package/dist/catalog/generated/details/headline-fit.json +34 -0
- package/dist/catalog/generated/details/incident-severity-wording.json +48 -0
- package/dist/catalog/generated/details/injection-signal.json +33 -0
- package/dist/catalog/generated/details/instruction-clarity.json +52 -0
- package/dist/catalog/generated/details/instruction-priority.json +43 -0
- package/dist/catalog/generated/details/instruction-readability.json +49 -0
- package/dist/catalog/generated/details/instrument-issue-kind.json +68 -0
- package/dist/catalog/generated/details/instrument-report-facets.json +111 -0
- package/dist/catalog/generated/details/intake-question-fit.json +34 -0
- package/dist/catalog/generated/details/invoice-facets.json +111 -0
- package/dist/catalog/generated/details/itinerary-feasibility.json +33 -0
- package/dist/catalog/generated/details/job-post-facets.json +111 -0
- package/dist/catalog/generated/details/length-fit.json +39 -0
- package/dist/catalog/generated/details/listener-request-kind.json +45 -0
- package/dist/catalog/generated/details/listing-compare.json +43 -0
- package/dist/catalog/generated/details/listing-fact-consistency.json +34 -0
- package/dist/catalog/generated/details/log-line-kind.json +44 -0
- package/dist/catalog/generated/details/loss-cause-kind.json +74 -0
- package/dist/catalog/generated/details/lyric-mood-fit.json +34 -0
- package/dist/catalog/generated/details/maintenance-hazard-wording.json +33 -0
- package/dist/catalog/generated/details/medication-mention.json +33 -0
- package/dist/catalog/generated/details/message-facets.json +112 -0
- package/dist/catalog/generated/details/methods-facets.json +111 -0
- package/dist/catalog/generated/details/modulation-moment.json +34 -0
- package/dist/catalog/generated/details/mood-match.json +34 -0
- package/dist/catalog/generated/details/mood-request.json +44 -0
- package/dist/catalog/generated/details/move-explanation-fit.json +35 -0
- package/dist/catalog/generated/details/narrative-consistency.json +33 -0
- package/dist/catalog/generated/details/next-chord.json +69 -0
- package/dist/catalog/generated/details/next-duration.json +69 -0
- package/dist/catalog/generated/details/next-note.json +69 -0
- package/dist/catalog/generated/details/notice-facets.json +111 -0
- package/dist/catalog/generated/details/novelty-claim-level.json +51 -0
- package/dist/catalog/generated/details/objection-kind.json +54 -0
- package/dist/catalog/generated/details/objective-fit.json +34 -0
- package/dist/catalog/generated/details/offer-terms-facets.json +111 -0
- package/dist/catalog/generated/details/passage-compare.json +43 -0
- package/dist/catalog/generated/details/passage-difficulty.json +52 -0
- package/dist/catalog/generated/details/passage-mood.json +44 -0
- package/dist/catalog/generated/details/passage-standalone.json +33 -0
- package/dist/catalog/generated/details/performance-feedback-facets.json +111 -0
- package/dist/catalog/generated/details/persuasion-technique.json +69 -0
- package/dist/catalog/generated/details/phrase-complete.json +34 -0
- package/dist/catalog/generated/details/pii-presence.json +33 -0
- package/dist/catalog/generated/details/plan-completeness.json +52 -0
- package/dist/catalog/generated/details/policy-compliance.json +34 -0
- package/dist/catalog/generated/details/policy-severity.json +49 -0
- package/dist/catalog/generated/details/politeness-level.json +52 -0
- package/dist/catalog/generated/details/postmortem-facets.json +111 -0
- package/dist/catalog/generated/details/priority-compare.json +43 -0
- package/dist/catalog/generated/details/privacy-notice-facets.json +111 -0
- package/dist/catalog/generated/details/product-match.json +34 -0
- package/dist/catalog/generated/details/progress-stall.json +34 -0
- package/dist/catalog/generated/details/proposal-facets.json +111 -0
- package/dist/catalog/generated/details/qualification-evidence.json +34 -0
- package/dist/catalog/generated/details/question-relevance.json +34 -0
- package/dist/catalog/generated/details/reconciliation-match.json +34 -0
- package/dist/catalog/generated/details/repetition-level.json +51 -0
- package/dist/catalog/generated/details/report-facets.json +111 -0
- package/dist/catalog/generated/details/result-plausibility.json +34 -0
- package/dist/catalog/generated/details/retry-worthwhile.json +34 -0
- package/dist/catalog/generated/details/review-comment-kind.json +45 -0
- package/dist/catalog/generated/details/review-facets.json +111 -0
- package/dist/catalog/generated/details/review-recommendation-kind.json +44 -0
- package/dist/catalog/generated/details/review-response-fit.json +34 -0
- package/dist/catalog/generated/details/rollback-signal.json +34 -0
- package/dist/catalog/generated/details/root-cause-depth.json +51 -0
- package/dist/catalog/generated/details/rule-compliance.json +34 -0
- package/dist/catalog/generated/details/runbook-fit.json +34 -0
- package/dist/catalog/generated/details/safety-incident-kind.json +68 -0
- package/dist/catalog/generated/details/satisfaction-signal.json +52 -0
- package/dist/catalog/generated/details/search-intent-kind.json +58 -0
- package/dist/catalog/generated/details/sentiment-shift.json +42 -0
- package/dist/catalog/generated/details/settlement-offer-facets.json +111 -0
- package/dist/catalog/generated/details/shipment-issue-kind.json +45 -0
- package/dist/catalog/generated/details/slot-fit.json +34 -0
- package/dist/catalog/generated/details/sound-match.json +34 -0
- package/dist/catalog/generated/details/spam-signal.json +34 -0
- package/dist/catalog/generated/details/stage-evidence.json +34 -0
- package/dist/catalog/generated/details/style-kind.json +44 -0
- package/dist/catalog/generated/details/symptom-facets.json +111 -0
- package/dist/catalog/generated/details/task-complexity.json +52 -0
- package/dist/catalog/generated/details/task-overlap.json +34 -0
- package/dist/catalog/generated/details/tempo-change.json +39 -0
- package/dist/catalog/generated/details/tension-level.json +49 -0
- package/dist/catalog/generated/details/tool-compare.json +43 -0
- package/dist/catalog/generated/details/trip-purpose-kind.json +61 -0
- package/dist/catalog/generated/loaders.js +148 -0
- package/dist/catalog/generated/metadata.js +3934 -582
- package/dist/catalog/generated/names.d.ts +1 -1
- package/dist/catalog/generated/names.js +148 -0
- package/dist/catalog/schema.d.ts +148 -0
- package/dist/cli/schema.d.ts +444 -0
- package/dist/recipes/action-compare/demo.json +27 -0
- package/dist/recipes/action-compare/index.d.ts +5 -0
- package/dist/recipes/action-compare/index.js +16 -0
- package/dist/recipes/action-compare/schema.d.ts +44 -0
- package/dist/recipes/action-compare/schema.js +11 -0
- package/dist/recipes/action-effects/demo.json +17 -0
- package/dist/recipes/action-effects/index.d.ts +5 -0
- package/dist/recipes/action-effects/index.js +48 -0
- package/dist/recipes/action-effects/schema.d.ts +95 -0
- package/dist/recipes/action-effects/schema.js +23 -0
- package/dist/recipes/action-reversibility/demo.json +19 -0
- package/dist/recipes/action-reversibility/index.d.ts +5 -0
- package/dist/recipes/action-reversibility/index.js +18 -0
- package/dist/recipes/action-reversibility/schema.d.ts +38 -0
- package/dist/recipes/action-reversibility/schema.js +17 -0
- package/dist/recipes/action-scope/schema.d.ts +3 -3
- package/dist/recipes/age-appropriateness/demo.json +19 -0
- package/dist/recipes/age-appropriateness/index.d.ts +5 -0
- package/dist/recipes/age-appropriateness/index.js +18 -0
- package/dist/recipes/age-appropriateness/schema.d.ts +38 -0
- package/dist/recipes/age-appropriateness/schema.js +17 -0
- package/dist/recipes/alert-actionability/demo.json +19 -0
- package/dist/recipes/alert-actionability/index.d.ts +5 -0
- package/dist/recipes/alert-actionability/index.js +18 -0
- package/dist/recipes/alert-actionability/schema.d.ts +38 -0
- package/dist/recipes/alert-actionability/schema.js +17 -0
- package/dist/recipes/answer-coverage/schema.d.ts +3 -3
- package/dist/recipes/answer-disclosures/demo.json +16 -0
- package/dist/recipes/answer-disclosures/index.d.ts +5 -0
- package/dist/recipes/answer-disclosures/index.js +41 -0
- package/dist/recipes/answer-disclosures/schema.d.ts +81 -0
- package/dist/recipes/answer-disclosures/schema.js +21 -0
- package/dist/recipes/answer-grade/demo.json +20 -0
- package/dist/recipes/answer-grade/index.d.ts +5 -0
- package/dist/recipes/answer-grade/index.js +18 -0
- package/dist/recipes/answer-grade/schema.d.ts +39 -0
- package/dist/recipes/answer-grade/schema.js +12 -0
- package/dist/recipes/answerability/schema.d.ts +3 -3
- package/dist/recipes/appeal-grounds-kind/demo.json +26 -0
- package/dist/recipes/appeal-grounds-kind/index.d.ts +5 -0
- package/dist/recipes/appeal-grounds-kind/index.js +19 -0
- package/dist/recipes/appeal-grounds-kind/schema.d.ts +47 -0
- package/dist/recipes/appeal-grounds-kind/schema.js +21 -0
- package/dist/recipes/appointment-request-kind/demo.json +26 -0
- package/dist/recipes/appointment-request-kind/index.d.ts +5 -0
- package/dist/recipes/appointment-request-kind/index.js +19 -0
- package/dist/recipes/appointment-request-kind/schema.d.ts +47 -0
- package/dist/recipes/appointment-request-kind/schema.js +21 -0
- package/dist/recipes/breaking-change-signal/demo.json +12 -0
- package/dist/recipes/breaking-change-signal/index.d.ts +5 -0
- package/dist/recipes/breaking-change-signal/index.js +15 -0
- package/dist/recipes/breaking-change-signal/schema.d.ts +30 -0
- package/dist/recipes/breaking-change-signal/schema.js +11 -0
- package/dist/recipes/budget-fit/demo.json +12 -0
- package/dist/recipes/budget-fit/index.d.ts +5 -0
- package/dist/recipes/budget-fit/index.js +15 -0
- package/dist/recipes/budget-fit/schema.d.ts +30 -0
- package/dist/recipes/budget-fit/schema.js +11 -0
- package/dist/recipes/budget-narrative-fit/demo.json +12 -0
- package/dist/recipes/budget-narrative-fit/index.d.ts +5 -0
- package/dist/recipes/budget-narrative-fit/index.js +15 -0
- package/dist/recipes/budget-narrative-fit/schema.d.ts +30 -0
- package/dist/recipes/budget-narrative-fit/schema.js +11 -0
- package/dist/recipes/bug-report-completeness/demo.json +18 -0
- package/dist/recipes/bug-report-completeness/index.d.ts +5 -0
- package/dist/recipes/bug-report-completeness/index.js +18 -0
- package/dist/recipes/bug-report-completeness/schema.d.ts +37 -0
- package/dist/recipes/bug-report-completeness/schema.js +16 -0
- package/dist/recipes/buying-intent/demo.json +19 -0
- package/dist/recipes/buying-intent/index.d.ts +5 -0
- package/dist/recipes/buying-intent/index.js +18 -0
- package/dist/recipes/buying-intent/schema.d.ts +38 -0
- package/dist/recipes/buying-intent/schema.js +17 -0
- package/dist/recipes/care-urgency-wording/demo.json +18 -0
- package/dist/recipes/care-urgency-wording/index.d.ts +5 -0
- package/dist/recipes/care-urgency-wording/index.js +18 -0
- package/dist/recipes/care-urgency-wording/schema.d.ts +37 -0
- package/dist/recipes/care-urgency-wording/schema.js +16 -0
- package/dist/recipes/category-fit/demo.json +12 -0
- package/dist/recipes/category-fit/index.d.ts +5 -0
- package/dist/recipes/category-fit/index.js +15 -0
- package/dist/recipes/category-fit/schema.d.ts +30 -0
- package/dist/recipes/category-fit/schema.js +11 -0
- package/dist/recipes/causal-language-strength/demo.json +18 -0
- package/dist/recipes/causal-language-strength/index.d.ts +5 -0
- package/dist/recipes/causal-language-strength/index.js +18 -0
- package/dist/recipes/causal-language-strength/schema.d.ts +37 -0
- package/dist/recipes/causal-language-strength/schema.js +16 -0
- package/dist/recipes/change-risk/demo.json +19 -0
- package/dist/recipes/change-risk/index.d.ts +5 -0
- package/dist/recipes/change-risk/index.js +18 -0
- package/dist/recipes/change-risk/schema.d.ts +38 -0
- package/dist/recipes/change-risk/schema.js +17 -0
- package/dist/recipes/change-window-fit/demo.json +12 -0
- package/dist/recipes/change-window-fit/index.d.ts +5 -0
- package/dist/recipes/change-window-fit/index.js +15 -0
- package/dist/recipes/change-window-fit/schema.d.ts +30 -0
- package/dist/recipes/change-window-fit/schema.js +11 -0
- package/dist/recipes/checkers-move/schema.js +1 -2
- package/dist/recipes/choose-action/schema.js +6 -2
- package/dist/recipes/citation-needed/schema.d.ts +3 -3
- package/dist/recipes/claim-facets/demo.json +17 -0
- package/dist/recipes/claim-facets/index.d.ts +5 -0
- package/dist/recipes/claim-facets/index.js +48 -0
- package/dist/recipes/claim-facets/schema.d.ts +95 -0
- package/dist/recipes/claim-facets/schema.js +23 -0
- package/dist/recipes/clarify/schema.d.ts +3 -3
- package/dist/recipes/clause-conflict/demo.json +12 -0
- package/dist/recipes/clause-conflict/index.d.ts +5 -0
- package/dist/recipes/clause-conflict/index.js +15 -0
- package/dist/recipes/clause-conflict/schema.d.ts +30 -0
- package/dist/recipes/clause-conflict/schema.js +11 -0
- package/dist/recipes/clause-kind/demo.json +26 -0
- package/dist/recipes/clause-kind/index.d.ts +5 -0
- package/dist/recipes/clause-kind/index.js +18 -0
- package/dist/recipes/clause-kind/schema.d.ts +45 -0
- package/dist/recipes/clause-kind/schema.js +21 -0
- package/dist/recipes/clickbait-level/demo.json +18 -0
- package/dist/recipes/clickbait-level/index.d.ts +5 -0
- package/dist/recipes/clickbait-level/index.js +18 -0
- package/dist/recipes/clickbait-level/schema.d.ts +37 -0
- package/dist/recipes/clickbait-level/schema.js +10 -0
- package/dist/recipes/commit-message-fit/demo.json +12 -0
- package/dist/recipes/commit-message-fit/index.d.ts +5 -0
- package/dist/recipes/commit-message-fit/index.js +15 -0
- package/dist/recipes/commit-message-fit/schema.d.ts +30 -0
- package/dist/recipes/commit-message-fit/schema.js +11 -0
- package/dist/recipes/commitment-strength/demo.json +18 -0
- package/dist/recipes/commitment-strength/index.d.ts +5 -0
- package/dist/recipes/commitment-strength/index.js +18 -0
- package/dist/recipes/commitment-strength/schema.d.ts +38 -0
- package/dist/recipes/commitment-strength/schema.js +17 -0
- package/dist/recipes/comparable-fit/demo.json +12 -0
- package/dist/recipes/comparable-fit/index.d.ts +5 -0
- package/dist/recipes/comparable-fit/index.js +15 -0
- package/dist/recipes/comparable-fit/schema.d.ts +30 -0
- package/dist/recipes/comparable-fit/schema.js +11 -0
- package/dist/recipes/consent-request/demo.json +11 -0
- package/dist/recipes/consent-request/index.d.ts +5 -0
- package/dist/recipes/consent-request/index.js +15 -0
- package/dist/recipes/consent-request/schema.d.ts +29 -0
- package/dist/recipes/consent-request/schema.js +10 -0
- package/dist/recipes/consent-scope-fit/demo.json +12 -0
- package/dist/recipes/consent-scope-fit/index.d.ts +5 -0
- package/dist/recipes/consent-scope-fit/index.js +15 -0
- package/dist/recipes/consent-scope-fit/schema.d.ts +30 -0
- package/dist/recipes/consent-scope-fit/schema.js +11 -0
- package/dist/recipes/content-facets/demo.json +17 -0
- package/dist/recipes/content-facets/index.d.ts +5 -0
- package/dist/recipes/content-facets/index.js +48 -0
- package/dist/recipes/content-facets/schema.d.ts +95 -0
- package/dist/recipes/content-facets/schema.js +23 -0
- package/dist/recipes/content-freshness-signal/demo.json +11 -0
- package/dist/recipes/content-freshness-signal/index.d.ts +5 -0
- package/dist/recipes/content-freshness-signal/index.js +15 -0
- package/dist/recipes/content-freshness-signal/schema.d.ts +29 -0
- package/dist/recipes/content-freshness-signal/schema.js +10 -0
- package/dist/recipes/continuation-compare/demo.json +27 -0
- package/dist/recipes/continuation-compare/index.d.ts +5 -0
- package/dist/recipes/continuation-compare/index.js +16 -0
- package/dist/recipes/continuation-compare/schema.d.ts +44 -0
- package/dist/recipes/continuation-compare/schema.js +11 -0
- package/dist/recipes/corrective-action-fit/demo.json +12 -0
- package/dist/recipes/corrective-action-fit/index.d.ts +5 -0
- package/dist/recipes/corrective-action-fit/index.js +15 -0
- package/dist/recipes/corrective-action-fit/schema.d.ts +30 -0
- package/dist/recipes/corrective-action-fit/schema.js +11 -0
- package/dist/recipes/daw-request-kind/demo.json +26 -0
- package/dist/recipes/daw-request-kind/index.d.ts +5 -0
- package/dist/recipes/daw-request-kind/index.js +19 -0
- package/dist/recipes/daw-request-kind/schema.d.ts +47 -0
- package/dist/recipes/daw-request-kind/schema.js +21 -0
- package/dist/recipes/deadline-risk/demo.json +19 -0
- package/dist/recipes/deadline-risk/index.d.ts +5 -0
- package/dist/recipes/deadline-risk/index.js +18 -0
- package/dist/recipes/deadline-risk/schema.d.ts +38 -0
- package/dist/recipes/deadline-risk/schema.js +11 -0
- package/dist/recipes/defect-report-facets/demo.json +17 -0
- package/dist/recipes/defect-report-facets/index.d.ts +5 -0
- package/dist/recipes/defect-report-facets/index.js +48 -0
- package/dist/recipes/defect-report-facets/schema.d.ts +95 -0
- package/dist/recipes/defect-report-facets/schema.js +23 -0
- package/dist/recipes/delegation-fit/demo.json +12 -0
- package/dist/recipes/delegation-fit/index.d.ts +5 -0
- package/dist/recipes/delegation-fit/index.js +15 -0
- package/dist/recipes/delegation-fit/schema.d.ts +30 -0
- package/dist/recipes/delegation-fit/schema.js +11 -0
- package/dist/recipes/disclosure-facets/demo.json +17 -0
- package/dist/recipes/disclosure-facets/index.d.ts +5 -0
- package/dist/recipes/disclosure-facets/index.js +48 -0
- package/dist/recipes/disclosure-facets/schema.d.ts +95 -0
- package/dist/recipes/disclosure-facets/schema.js +23 -0
- package/dist/recipes/dispute-kind/demo.json +26 -0
- package/dist/recipes/dispute-kind/index.d.ts +5 -0
- package/dist/recipes/dispute-kind/index.js +19 -0
- package/dist/recipes/dispute-kind/schema.d.ts +47 -0
- package/dist/recipes/dispute-kind/schema.js +21 -0
- package/dist/recipes/document-role/schema.d.ts +9 -9
- package/dist/recipes/draft-compare/index.js +2 -3
- package/dist/recipes/draft-compare/schema.d.ts +3 -3
- package/dist/recipes/draft-compare/schema.js +3 -8
- package/dist/recipes/dynamic-change/demo.json +19 -0
- package/dist/recipes/dynamic-change/index.d.ts +5 -0
- package/dist/recipes/dynamic-change/index.js +16 -0
- package/dist/recipes/dynamic-change/schema.d.ts +39 -0
- package/dist/recipes/dynamic-change/schema.js +14 -0
- package/dist/recipes/eligibility-facets/demo.json +17 -0
- package/dist/recipes/eligibility-facets/index.d.ts +5 -0
- package/dist/recipes/eligibility-facets/index.js +48 -0
- package/dist/recipes/eligibility-facets/schema.d.ts +95 -0
- package/dist/recipes/eligibility-facets/schema.js +23 -0
- package/dist/recipes/emotion-kind/demo.json +28 -0
- package/dist/recipes/emotion-kind/index.d.ts +5 -0
- package/dist/recipes/emotion-kind/index.js +19 -0
- package/dist/recipes/emotion-kind/schema.d.ts +48 -0
- package/dist/recipes/emotion-kind/schema.js +22 -0
- package/dist/recipes/entity-match/demo.json +13 -0
- package/dist/recipes/entity-match/index.d.ts +5 -0
- package/dist/recipes/entity-match/index.js +15 -0
- package/dist/recipes/entity-match/schema.d.ts +31 -0
- package/dist/recipes/entity-match/schema.js +12 -0
- package/dist/recipes/error-acknowledgment/demo.json +12 -0
- package/dist/recipes/error-acknowledgment/index.d.ts +5 -0
- package/dist/recipes/error-acknowledgment/index.js +15 -0
- package/dist/recipes/error-acknowledgment/schema.d.ts +30 -0
- package/dist/recipes/error-acknowledgment/schema.js +11 -0
- package/dist/recipes/escalation-wording/demo.json +11 -0
- package/dist/recipes/escalation-wording/index.d.ts +5 -0
- package/dist/recipes/escalation-wording/index.js +15 -0
- package/dist/recipes/escalation-wording/schema.d.ts +29 -0
- package/dist/recipes/escalation-wording/schema.js +10 -0
- package/dist/recipes/evidence-conflict/schema.d.ts +3 -3
- package/dist/recipes/evidence-strength/demo.json +19 -0
- package/dist/recipes/evidence-strength/index.d.ts +5 -0
- package/dist/recipes/evidence-strength/index.js +18 -0
- package/dist/recipes/evidence-strength/schema.d.ts +38 -0
- package/dist/recipes/evidence-strength/schema.js +17 -0
- package/dist/recipes/exercise-select/demo.json +34 -0
- package/dist/recipes/exercise-select/index.d.ts +5 -0
- package/dist/recipes/exercise-select/index.js +7 -0
- package/dist/recipes/exercise-select/schema.d.ts +36 -0
- package/dist/recipes/exercise-select/schema.js +9 -0
- package/dist/recipes/expense-category/demo.json +19 -0
- package/dist/recipes/expense-category/index.d.ts +5 -0
- package/dist/recipes/expense-category/index.js +16 -0
- package/dist/recipes/expense-category/schema.d.ts +39 -0
- package/dist/recipes/expense-category/schema.js +14 -0
- package/dist/recipes/explanation-level/demo.json +19 -0
- package/dist/recipes/explanation-level/index.d.ts +5 -0
- package/dist/recipes/explanation-level/index.js +18 -0
- package/dist/recipes/explanation-level/schema.d.ts +38 -0
- package/dist/recipes/explanation-level/schema.js +17 -0
- package/dist/recipes/extraction-fidelity/demo.json +19 -0
- package/dist/recipes/extraction-fidelity/index.d.ts +5 -0
- package/dist/recipes/extraction-fidelity/index.js +18 -0
- package/dist/recipes/extraction-fidelity/schema.d.ts +38 -0
- package/dist/recipes/extraction-fidelity/schema.js +11 -0
- package/dist/recipes/fair-housing-wording/demo.json +11 -0
- package/dist/recipes/fair-housing-wording/index.d.ts +5 -0
- package/dist/recipes/fair-housing-wording/index.js +15 -0
- package/dist/recipes/fair-housing-wording/schema.d.ts +29 -0
- package/dist/recipes/fair-housing-wording/schema.js +10 -0
- package/dist/recipes/feedback-actionability/demo.json +18 -0
- package/dist/recipes/feedback-actionability/index.d.ts +5 -0
- package/dist/recipes/feedback-actionability/index.js +18 -0
- package/dist/recipes/feedback-actionability/schema.d.ts +37 -0
- package/dist/recipes/feedback-actionability/schema.js +16 -0
- package/dist/recipes/financial-advice-signal/demo.json +11 -0
- package/dist/recipes/financial-advice-signal/index.d.ts +5 -0
- package/dist/recipes/financial-advice-signal/index.js +15 -0
- package/dist/recipes/financial-advice-signal/schema.d.ts +29 -0
- package/dist/recipes/financial-advice-signal/schema.js +10 -0
- package/dist/recipes/forecast-confidence-wording/demo.json +18 -0
- package/dist/recipes/forecast-confidence-wording/index.d.ts +5 -0
- package/dist/recipes/forecast-confidence-wording/index.js +18 -0
- package/dist/recipes/forecast-confidence-wording/schema.d.ts +37 -0
- package/dist/recipes/forecast-confidence-wording/schema.js +16 -0
- package/dist/recipes/format-fit/demo.json +12 -0
- package/dist/recipes/format-fit/index.d.ts +5 -0
- package/dist/recipes/format-fit/index.js +15 -0
- package/dist/recipes/format-fit/schema.d.ts +30 -0
- package/dist/recipes/format-fit/schema.js +11 -0
- package/dist/recipes/funder-fit/demo.json +26 -0
- package/dist/recipes/funder-fit/index.d.ts +5 -0
- package/dist/recipes/funder-fit/index.js +16 -0
- package/dist/recipes/funder-fit/schema.d.ts +43 -0
- package/dist/recipes/funder-fit/schema.js +10 -0
- package/dist/recipes/game-action/demo.json +24 -0
- package/dist/recipes/game-action/index.d.ts +5 -0
- package/dist/recipes/game-action/index.js +30 -0
- package/dist/recipes/game-action/schema.d.ts +21 -0
- package/dist/recipes/game-action/schema.js +21 -0
- package/dist/recipes/game-phase/demo.json +25 -0
- package/dist/recipes/game-phase/index.d.ts +5 -0
- package/dist/recipes/game-phase/index.js +17 -0
- package/dist/recipes/game-phase/schema.d.ts +42 -0
- package/dist/recipes/game-phase/schema.js +20 -0
- package/dist/recipes/goal-drift/demo.json +13 -0
- package/dist/recipes/goal-drift/index.d.ts +5 -0
- package/dist/recipes/goal-drift/index.js +15 -0
- package/dist/recipes/goal-drift/schema.d.ts +31 -0
- package/dist/recipes/goal-drift/schema.js +12 -0
- package/dist/recipes/grounding-level/demo.json +19 -0
- package/dist/recipes/grounding-level/index.d.ts +5 -0
- package/dist/recipes/grounding-level/index.js +18 -0
- package/dist/recipes/grounding-level/schema.d.ts +38 -0
- package/dist/recipes/grounding-level/schema.js +11 -0
- package/dist/recipes/guest-request-facets/demo.json +17 -0
- package/dist/recipes/guest-request-facets/index.d.ts +5 -0
- package/dist/recipes/guest-request-facets/index.js +48 -0
- package/dist/recipes/guest-request-facets/schema.d.ts +95 -0
- package/dist/recipes/guest-request-facets/schema.js +23 -0
- package/dist/recipes/handoff-completeness/demo.json +18 -0
- package/dist/recipes/handoff-completeness/index.d.ts +5 -0
- package/dist/recipes/handoff-completeness/index.js +18 -0
- package/dist/recipes/handoff-completeness/schema.d.ts +37 -0
- package/dist/recipes/handoff-completeness/schema.js +16 -0
- package/dist/recipes/headline-fit/demo.json +12 -0
- package/dist/recipes/headline-fit/index.d.ts +5 -0
- package/dist/recipes/headline-fit/index.js +15 -0
- package/dist/recipes/headline-fit/schema.d.ts +30 -0
- package/dist/recipes/headline-fit/schema.js +11 -0
- package/dist/recipes/incident-severity-wording/demo.json +18 -0
- package/dist/recipes/incident-severity-wording/index.d.ts +5 -0
- package/dist/recipes/incident-severity-wording/index.js +18 -0
- package/dist/recipes/incident-severity-wording/schema.d.ts +37 -0
- package/dist/recipes/incident-severity-wording/schema.js +16 -0
- package/dist/recipes/injection-signal/demo.json +11 -0
- package/dist/recipes/injection-signal/index.d.ts +5 -0
- package/dist/recipes/injection-signal/index.js +15 -0
- package/dist/recipes/injection-signal/schema.d.ts +29 -0
- package/dist/recipes/injection-signal/schema.js +10 -0
- package/dist/recipes/instruction-clarity/demo.json +19 -0
- package/dist/recipes/instruction-clarity/index.d.ts +5 -0
- package/dist/recipes/instruction-clarity/index.js +18 -0
- package/dist/recipes/instruction-clarity/schema.d.ts +38 -0
- package/dist/recipes/instruction-clarity/schema.js +17 -0
- package/dist/recipes/instruction-conflict/schema.d.ts +3 -3
- package/dist/recipes/instruction-priority/demo.json +26 -0
- package/dist/recipes/instruction-priority/index.d.ts +5 -0
- package/dist/recipes/instruction-priority/index.js +16 -0
- package/dist/recipes/instruction-priority/schema.d.ts +43 -0
- package/dist/recipes/instruction-priority/schema.js +10 -0
- package/dist/recipes/instruction-readability/demo.json +19 -0
- package/dist/recipes/instruction-readability/index.d.ts +5 -0
- package/dist/recipes/instruction-readability/index.js +18 -0
- package/dist/recipes/instruction-readability/schema.d.ts +38 -0
- package/dist/recipes/instruction-readability/schema.js +17 -0
- package/dist/recipes/instrument-issue-kind/demo.json +26 -0
- package/dist/recipes/instrument-issue-kind/index.d.ts +5 -0
- package/dist/recipes/instrument-issue-kind/index.js +19 -0
- package/dist/recipes/instrument-issue-kind/schema.d.ts +47 -0
- package/dist/recipes/instrument-issue-kind/schema.js +21 -0
- package/dist/recipes/instrument-report-facets/demo.json +17 -0
- package/dist/recipes/instrument-report-facets/index.d.ts +5 -0
- package/dist/recipes/instrument-report-facets/index.js +48 -0
- package/dist/recipes/instrument-report-facets/schema.d.ts +95 -0
- package/dist/recipes/instrument-report-facets/schema.js +23 -0
- package/dist/recipes/intake-question-fit/demo.json +12 -0
- package/dist/recipes/intake-question-fit/index.d.ts +5 -0
- package/dist/recipes/intake-question-fit/index.js +15 -0
- package/dist/recipes/intake-question-fit/schema.d.ts +30 -0
- package/dist/recipes/intake-question-fit/schema.js +11 -0
- package/dist/recipes/invoice-facets/demo.json +17 -0
- package/dist/recipes/invoice-facets/index.d.ts +5 -0
- package/dist/recipes/invoice-facets/index.js +48 -0
- package/dist/recipes/invoice-facets/schema.d.ts +95 -0
- package/dist/recipes/invoice-facets/schema.js +23 -0
- package/dist/recipes/issue-impact/schema.d.ts +3 -3
- package/dist/recipes/itinerary-feasibility/demo.json +11 -0
- package/dist/recipes/itinerary-feasibility/index.d.ts +5 -0
- package/dist/recipes/itinerary-feasibility/index.js +15 -0
- package/dist/recipes/itinerary-feasibility/schema.d.ts +29 -0
- package/dist/recipes/itinerary-feasibility/schema.js +10 -0
- package/dist/recipes/job-post-facets/demo.json +17 -0
- package/dist/recipes/job-post-facets/index.d.ts +5 -0
- package/dist/recipes/job-post-facets/index.js +48 -0
- package/dist/recipes/job-post-facets/schema.d.ts +95 -0
- package/dist/recipes/job-post-facets/schema.js +23 -0
- package/dist/recipes/length-fit/demo.json +19 -0
- package/dist/recipes/length-fit/index.d.ts +5 -0
- package/dist/recipes/length-fit/index.js +16 -0
- package/dist/recipes/length-fit/schema.d.ts +39 -0
- package/dist/recipes/length-fit/schema.js +14 -0
- package/dist/recipes/listener-request-kind/demo.json +27 -0
- package/dist/recipes/listener-request-kind/index.d.ts +5 -0
- package/dist/recipes/listener-request-kind/index.js +19 -0
- package/dist/recipes/listener-request-kind/schema.d.ts +48 -0
- package/dist/recipes/listener-request-kind/schema.js +22 -0
- package/dist/recipes/listing-compare/demo.json +26 -0
- package/dist/recipes/listing-compare/index.d.ts +5 -0
- package/dist/recipes/listing-compare/index.js +16 -0
- package/dist/recipes/listing-compare/schema.d.ts +43 -0
- package/dist/recipes/listing-compare/schema.js +10 -0
- package/dist/recipes/listing-fact-consistency/demo.json +12 -0
- package/dist/recipes/listing-fact-consistency/index.d.ts +5 -0
- package/dist/recipes/listing-fact-consistency/index.js +15 -0
- package/dist/recipes/listing-fact-consistency/schema.d.ts +30 -0
- package/dist/recipes/listing-fact-consistency/schema.js +11 -0
- package/dist/recipes/log-line-kind/demo.json +26 -0
- package/dist/recipes/log-line-kind/index.d.ts +5 -0
- package/dist/recipes/log-line-kind/index.js +19 -0
- package/dist/recipes/log-line-kind/schema.d.ts +47 -0
- package/dist/recipes/log-line-kind/schema.js +21 -0
- package/dist/recipes/loss-cause-kind/demo.json +28 -0
- package/dist/recipes/loss-cause-kind/index.d.ts +5 -0
- package/dist/recipes/loss-cause-kind/index.js +21 -0
- package/dist/recipes/loss-cause-kind/schema.d.ts +53 -0
- package/dist/recipes/loss-cause-kind/schema.js +23 -0
- package/dist/recipes/lyric-mood-fit/demo.json +12 -0
- package/dist/recipes/lyric-mood-fit/index.d.ts +5 -0
- package/dist/recipes/lyric-mood-fit/index.js +15 -0
- package/dist/recipes/lyric-mood-fit/schema.d.ts +30 -0
- package/dist/recipes/lyric-mood-fit/schema.js +11 -0
- package/dist/recipes/maintenance-hazard-wording/demo.json +11 -0
- package/dist/recipes/maintenance-hazard-wording/index.d.ts +5 -0
- package/dist/recipes/maintenance-hazard-wording/index.js +15 -0
- package/dist/recipes/maintenance-hazard-wording/schema.d.ts +29 -0
- package/dist/recipes/maintenance-hazard-wording/schema.js +10 -0
- package/dist/recipes/medication-mention/demo.json +11 -0
- package/dist/recipes/medication-mention/index.d.ts +5 -0
- package/dist/recipes/medication-mention/index.js +15 -0
- package/dist/recipes/medication-mention/schema.d.ts +29 -0
- package/dist/recipes/medication-mention/schema.js +10 -0
- package/dist/recipes/message-facets/demo.json +17 -0
- package/dist/recipes/message-facets/index.d.ts +5 -0
- package/dist/recipes/message-facets/index.js +48 -0
- package/dist/recipes/message-facets/schema.d.ts +96 -0
- package/dist/recipes/message-facets/schema.js +24 -0
- package/dist/recipes/methods-facets/demo.json +17 -0
- package/dist/recipes/methods-facets/index.d.ts +5 -0
- package/dist/recipes/methods-facets/index.js +48 -0
- package/dist/recipes/methods-facets/schema.d.ts +95 -0
- package/dist/recipes/methods-facets/schema.js +23 -0
- package/dist/recipes/modulation-moment/demo.json +12 -0
- package/dist/recipes/modulation-moment/index.d.ts +5 -0
- package/dist/recipes/modulation-moment/index.js +15 -0
- package/dist/recipes/modulation-moment/schema.d.ts +30 -0
- package/dist/recipes/modulation-moment/schema.js +11 -0
- package/dist/recipes/mood-match/demo.json +12 -0
- package/dist/recipes/mood-match/index.d.ts +5 -0
- package/dist/recipes/mood-match/index.js +15 -0
- package/dist/recipes/mood-match/schema.d.ts +30 -0
- package/dist/recipes/mood-match/schema.js +9 -0
- package/dist/recipes/mood-request/demo.json +26 -0
- package/dist/recipes/mood-request/index.d.ts +5 -0
- package/dist/recipes/mood-request/index.js +19 -0
- package/dist/recipes/mood-request/schema.d.ts +47 -0
- package/dist/recipes/mood-request/schema.js +21 -0
- package/dist/recipes/motivation-source/schema.d.ts +3 -3
- package/dist/recipes/move-explanation-fit/demo.json +13 -0
- package/dist/recipes/move-explanation-fit/index.d.ts +5 -0
- package/dist/recipes/move-explanation-fit/index.js +15 -0
- package/dist/recipes/move-explanation-fit/schema.d.ts +31 -0
- package/dist/recipes/move-explanation-fit/schema.js +12 -0
- package/dist/recipes/narrative-consistency/demo.json +11 -0
- package/dist/recipes/narrative-consistency/index.d.ts +5 -0
- package/dist/recipes/narrative-consistency/index.js +15 -0
- package/dist/recipes/narrative-consistency/schema.d.ts +29 -0
- package/dist/recipes/narrative-consistency/schema.js +10 -0
- package/dist/recipes/next-chord/demo.json +29 -0
- package/dist/recipes/next-chord/index.d.ts +5 -0
- package/dist/recipes/next-chord/index.js +7 -0
- package/dist/recipes/next-chord/schema.d.ts +37 -0
- package/dist/recipes/next-chord/schema.js +10 -0
- package/dist/recipes/next-duration/demo.json +29 -0
- package/dist/recipes/next-duration/index.d.ts +5 -0
- package/dist/recipes/next-duration/index.js +7 -0
- package/dist/recipes/next-duration/schema.d.ts +37 -0
- package/dist/recipes/next-duration/schema.js +10 -0
- package/dist/recipes/next-note/demo.json +29 -0
- package/dist/recipes/next-note/index.d.ts +5 -0
- package/dist/recipes/next-note/index.js +7 -0
- package/dist/recipes/next-note/schema.d.ts +37 -0
- package/dist/recipes/next-note/schema.js +10 -0
- package/dist/recipes/notice-facets/demo.json +17 -0
- package/dist/recipes/notice-facets/index.d.ts +5 -0
- package/dist/recipes/notice-facets/index.js +48 -0
- package/dist/recipes/notice-facets/schema.d.ts +95 -0
- package/dist/recipes/notice-facets/schema.js +23 -0
- package/dist/recipes/novelty-claim-level/demo.json +18 -0
- package/dist/recipes/novelty-claim-level/index.d.ts +5 -0
- package/dist/recipes/novelty-claim-level/index.js +18 -0
- package/dist/recipes/novelty-claim-level/schema.d.ts +37 -0
- package/dist/recipes/novelty-claim-level/schema.js +16 -0
- package/dist/recipes/objection-kind/demo.json +30 -0
- package/dist/recipes/objection-kind/index.d.ts +5 -0
- package/dist/recipes/objection-kind/index.js +20 -0
- package/dist/recipes/objection-kind/schema.d.ts +51 -0
- package/dist/recipes/objection-kind/schema.js +23 -0
- package/dist/recipes/objective-fit/demo.json +12 -0
- package/dist/recipes/objective-fit/index.d.ts +5 -0
- package/dist/recipes/objective-fit/index.js +15 -0
- package/dist/recipes/objective-fit/schema.d.ts +30 -0
- package/dist/recipes/objective-fit/schema.js +11 -0
- package/dist/recipes/offer-terms-facets/demo.json +17 -0
- package/dist/recipes/offer-terms-facets/index.d.ts +5 -0
- package/dist/recipes/offer-terms-facets/index.js +48 -0
- package/dist/recipes/offer-terms-facets/schema.d.ts +95 -0
- package/dist/recipes/offer-terms-facets/schema.js +23 -0
- package/dist/recipes/outcome-framing/schema.d.ts +3 -3
- package/dist/recipes/passage-compare/demo.json +26 -0
- package/dist/recipes/passage-compare/index.d.ts +5 -0
- package/dist/recipes/passage-compare/index.js +16 -0
- package/dist/recipes/passage-compare/schema.d.ts +43 -0
- package/dist/recipes/passage-compare/schema.js +10 -0
- package/dist/recipes/passage-difficulty/demo.json +19 -0
- package/dist/recipes/passage-difficulty/index.d.ts +5 -0
- package/dist/recipes/passage-difficulty/index.js +18 -0
- package/dist/recipes/passage-difficulty/schema.d.ts +38 -0
- package/dist/recipes/passage-difficulty/schema.js +17 -0
- package/dist/recipes/passage-duplicate/schema.d.ts +3 -3
- package/dist/recipes/passage-mood/demo.json +26 -0
- package/dist/recipes/passage-mood/index.d.ts +5 -0
- package/dist/recipes/passage-mood/index.js +19 -0
- package/dist/recipes/passage-mood/schema.d.ts +47 -0
- package/dist/recipes/passage-mood/schema.js +21 -0
- package/dist/recipes/passage-standalone/demo.json +11 -0
- package/dist/recipes/passage-standalone/index.d.ts +5 -0
- package/dist/recipes/passage-standalone/index.js +15 -0
- package/dist/recipes/passage-standalone/schema.d.ts +29 -0
- package/dist/recipes/passage-standalone/schema.js +10 -0
- package/dist/recipes/performance-feedback-facets/demo.json +17 -0
- package/dist/recipes/performance-feedback-facets/index.d.ts +5 -0
- package/dist/recipes/performance-feedback-facets/index.js +48 -0
- package/dist/recipes/performance-feedback-facets/schema.d.ts +95 -0
- package/dist/recipes/performance-feedback-facets/schema.js +23 -0
- package/dist/recipes/persuasion-technique/demo.json +28 -0
- package/dist/recipes/persuasion-technique/index.d.ts +5 -0
- package/dist/recipes/persuasion-technique/index.js +19 -0
- package/dist/recipes/persuasion-technique/schema.d.ts +48 -0
- package/dist/recipes/persuasion-technique/schema.js +22 -0
- package/dist/recipes/phrase-complete/demo.json +12 -0
- package/dist/recipes/phrase-complete/index.d.ts +5 -0
- package/dist/recipes/phrase-complete/index.js +15 -0
- package/dist/recipes/phrase-complete/schema.d.ts +30 -0
- package/dist/recipes/phrase-complete/schema.js +11 -0
- package/dist/recipes/pii-presence/demo.json +11 -0
- package/dist/recipes/pii-presence/index.d.ts +5 -0
- package/dist/recipes/pii-presence/index.js +15 -0
- package/dist/recipes/pii-presence/schema.d.ts +29 -0
- package/dist/recipes/pii-presence/schema.js +10 -0
- package/dist/recipes/plan-completeness/demo.json +19 -0
- package/dist/recipes/plan-completeness/index.d.ts +5 -0
- package/dist/recipes/plan-completeness/index.js +18 -0
- package/dist/recipes/plan-completeness/schema.d.ts +38 -0
- package/dist/recipes/plan-completeness/schema.js +17 -0
- package/dist/recipes/policy-compliance/demo.json +12 -0
- package/dist/recipes/policy-compliance/index.d.ts +5 -0
- package/dist/recipes/policy-compliance/index.js +15 -0
- package/dist/recipes/policy-compliance/schema.d.ts +30 -0
- package/dist/recipes/policy-compliance/schema.js +11 -0
- package/dist/recipes/policy-severity/demo.json +19 -0
- package/dist/recipes/policy-severity/index.d.ts +5 -0
- package/dist/recipes/policy-severity/index.js +18 -0
- package/dist/recipes/policy-severity/schema.d.ts +38 -0
- package/dist/recipes/policy-severity/schema.js +17 -0
- package/dist/recipes/politeness-level/demo.json +18 -0
- package/dist/recipes/politeness-level/index.d.ts +5 -0
- package/dist/recipes/politeness-level/index.js +18 -0
- package/dist/recipes/politeness-level/schema.d.ts +38 -0
- package/dist/recipes/politeness-level/schema.js +17 -0
- package/dist/recipes/postmortem-facets/demo.json +17 -0
- package/dist/recipes/postmortem-facets/index.d.ts +5 -0
- package/dist/recipes/postmortem-facets/index.js +48 -0
- package/dist/recipes/postmortem-facets/schema.d.ts +95 -0
- package/dist/recipes/postmortem-facets/schema.js +23 -0
- package/dist/recipes/preference-kind/schema.d.ts +3 -3
- package/dist/recipes/priority-compare/demo.json +26 -0
- package/dist/recipes/priority-compare/index.d.ts +5 -0
- package/dist/recipes/priority-compare/index.js +16 -0
- package/dist/recipes/priority-compare/schema.d.ts +43 -0
- package/dist/recipes/priority-compare/schema.js +10 -0
- package/dist/recipes/privacy-notice-facets/demo.json +17 -0
- package/dist/recipes/privacy-notice-facets/index.d.ts +5 -0
- package/dist/recipes/privacy-notice-facets/index.js +48 -0
- package/dist/recipes/privacy-notice-facets/schema.d.ts +95 -0
- package/dist/recipes/privacy-notice-facets/schema.js +23 -0
- package/dist/recipes/product-match/demo.json +12 -0
- package/dist/recipes/product-match/index.d.ts +5 -0
- package/dist/recipes/product-match/index.js +15 -0
- package/dist/recipes/product-match/schema.d.ts +30 -0
- package/dist/recipes/product-match/schema.js +11 -0
- package/dist/recipes/progress-stall/demo.json +12 -0
- package/dist/recipes/progress-stall/index.d.ts +5 -0
- package/dist/recipes/progress-stall/index.js +15 -0
- package/dist/recipes/progress-stall/schema.d.ts +30 -0
- package/dist/recipes/progress-stall/schema.js +11 -0
- package/dist/recipes/proposal-facets/demo.json +17 -0
- package/dist/recipes/proposal-facets/index.d.ts +5 -0
- package/dist/recipes/proposal-facets/index.js +48 -0
- package/dist/recipes/proposal-facets/schema.d.ts +95 -0
- package/dist/recipes/proposal-facets/schema.js +23 -0
- package/dist/recipes/qualification-evidence/demo.json +12 -0
- package/dist/recipes/qualification-evidence/index.d.ts +5 -0
- package/dist/recipes/qualification-evidence/index.js +15 -0
- package/dist/recipes/qualification-evidence/schema.d.ts +30 -0
- package/dist/recipes/qualification-evidence/schema.js +11 -0
- package/dist/recipes/query-equivalence/schema.d.ts +3 -3
- package/dist/recipes/question-relevance/demo.json +12 -0
- package/dist/recipes/question-relevance/index.d.ts +5 -0
- package/dist/recipes/question-relevance/index.js +15 -0
- package/dist/recipes/question-relevance/schema.d.ts +30 -0
- package/dist/recipes/question-relevance/schema.js +11 -0
- package/dist/recipes/reconciliation-match/demo.json +12 -0
- package/dist/recipes/reconciliation-match/index.d.ts +5 -0
- package/dist/recipes/reconciliation-match/index.js +15 -0
- package/dist/recipes/reconciliation-match/schema.d.ts +30 -0
- package/dist/recipes/reconciliation-match/schema.js +11 -0
- package/dist/recipes/repetition-level/demo.json +18 -0
- package/dist/recipes/repetition-level/index.d.ts +5 -0
- package/dist/recipes/repetition-level/index.js +18 -0
- package/dist/recipes/repetition-level/schema.d.ts +37 -0
- package/dist/recipes/repetition-level/schema.js +16 -0
- package/dist/recipes/report-facets/demo.json +17 -0
- package/dist/recipes/report-facets/index.d.ts +5 -0
- package/dist/recipes/report-facets/index.js +48 -0
- package/dist/recipes/report-facets/schema.d.ts +95 -0
- package/dist/recipes/report-facets/schema.js +23 -0
- package/dist/recipes/requirement-testability/schema.d.ts +3 -3
- package/dist/recipes/response-refusal/schema.d.ts +3 -3
- package/dist/recipes/result-outcome/schema.d.ts +3 -3
- package/dist/recipes/result-plausibility/demo.json +12 -0
- package/dist/recipes/result-plausibility/index.d.ts +5 -0
- package/dist/recipes/result-plausibility/index.js +15 -0
- package/dist/recipes/result-plausibility/schema.d.ts +30 -0
- package/dist/recipes/result-plausibility/schema.js +11 -0
- package/dist/recipes/retrieval-needed/schema.d.ts +3 -3
- package/dist/recipes/retry-worthwhile/demo.json +12 -0
- package/dist/recipes/retry-worthwhile/index.d.ts +5 -0
- package/dist/recipes/retry-worthwhile/index.js +15 -0
- package/dist/recipes/retry-worthwhile/schema.d.ts +30 -0
- package/dist/recipes/retry-worthwhile/schema.js +11 -0
- package/dist/recipes/review-comment-kind/demo.json +29 -0
- package/dist/recipes/review-comment-kind/index.d.ts +5 -0
- package/dist/recipes/review-comment-kind/index.js +19 -0
- package/dist/recipes/review-comment-kind/schema.d.ts +48 -0
- package/dist/recipes/review-comment-kind/schema.js +22 -0
- package/dist/recipes/review-facets/demo.json +17 -0
- package/dist/recipes/review-facets/index.d.ts +5 -0
- package/dist/recipes/review-facets/index.js +48 -0
- package/dist/recipes/review-facets/schema.d.ts +95 -0
- package/dist/recipes/review-facets/schema.js +23 -0
- package/dist/recipes/review-recommendation-kind/demo.json +24 -0
- package/dist/recipes/review-recommendation-kind/index.d.ts +5 -0
- package/dist/recipes/review-recommendation-kind/index.js +17 -0
- package/dist/recipes/review-recommendation-kind/schema.d.ts +41 -0
- package/dist/recipes/review-recommendation-kind/schema.js +19 -0
- package/dist/recipes/review-response-fit/demo.json +12 -0
- package/dist/recipes/review-response-fit/index.d.ts +5 -0
- package/dist/recipes/review-response-fit/index.js +15 -0
- package/dist/recipes/review-response-fit/schema.d.ts +30 -0
- package/dist/recipes/review-response-fit/schema.js +11 -0
- package/dist/recipes/rollback-signal/demo.json +12 -0
- package/dist/recipes/rollback-signal/index.d.ts +5 -0
- package/dist/recipes/rollback-signal/index.js +15 -0
- package/dist/recipes/rollback-signal/schema.d.ts +30 -0
- package/dist/recipes/rollback-signal/schema.js +11 -0
- package/dist/recipes/root-cause-depth/demo.json +18 -0
- package/dist/recipes/root-cause-depth/index.d.ts +5 -0
- package/dist/recipes/root-cause-depth/index.js +18 -0
- package/dist/recipes/root-cause-depth/schema.d.ts +37 -0
- package/dist/recipes/root-cause-depth/schema.js +16 -0
- package/dist/recipes/rule-compliance/demo.json +12 -0
- package/dist/recipes/rule-compliance/index.d.ts +5 -0
- package/dist/recipes/rule-compliance/index.js +15 -0
- package/dist/recipes/rule-compliance/schema.d.ts +30 -0
- package/dist/recipes/rule-compliance/schema.js +11 -0
- package/dist/recipes/runbook-fit/demo.json +12 -0
- package/dist/recipes/runbook-fit/index.d.ts +5 -0
- package/dist/recipes/runbook-fit/index.js +15 -0
- package/dist/recipes/runbook-fit/schema.d.ts +30 -0
- package/dist/recipes/runbook-fit/schema.js +9 -0
- package/dist/recipes/safety-incident-kind/demo.json +26 -0
- package/dist/recipes/safety-incident-kind/index.d.ts +5 -0
- package/dist/recipes/safety-incident-kind/index.js +19 -0
- package/dist/recipes/safety-incident-kind/schema.d.ts +47 -0
- package/dist/recipes/safety-incident-kind/schema.js +21 -0
- package/dist/recipes/satisfaction-signal/demo.json +19 -0
- package/dist/recipes/satisfaction-signal/index.d.ts +5 -0
- package/dist/recipes/satisfaction-signal/index.js +18 -0
- package/dist/recipes/satisfaction-signal/schema.d.ts +38 -0
- package/dist/recipes/satisfaction-signal/schema.js +17 -0
- package/dist/recipes/search-intent-kind/demo.json +25 -0
- package/dist/recipes/search-intent-kind/index.d.ts +5 -0
- package/dist/recipes/search-intent-kind/index.js +18 -0
- package/dist/recipes/search-intent-kind/schema.d.ts +44 -0
- package/dist/recipes/search-intent-kind/schema.js +20 -0
- package/dist/recipes/sentiment-shift/demo.json +26 -0
- package/dist/recipes/sentiment-shift/index.d.ts +5 -0
- package/dist/recipes/sentiment-shift/index.js +16 -0
- package/dist/recipes/sentiment-shift/schema.d.ts +39 -0
- package/dist/recipes/sentiment-shift/schema.js +14 -0
- package/dist/recipes/settlement-offer-facets/demo.json +17 -0
- package/dist/recipes/settlement-offer-facets/index.d.ts +5 -0
- package/dist/recipes/settlement-offer-facets/index.js +48 -0
- package/dist/recipes/settlement-offer-facets/schema.d.ts +95 -0
- package/dist/recipes/settlement-offer-facets/schema.js +23 -0
- package/dist/recipes/shipment-issue-kind/demo.json +27 -0
- package/dist/recipes/shipment-issue-kind/index.d.ts +5 -0
- package/dist/recipes/shipment-issue-kind/index.js +19 -0
- package/dist/recipes/shipment-issue-kind/schema.d.ts +48 -0
- package/dist/recipes/shipment-issue-kind/schema.js +22 -0
- package/dist/recipes/slot-fit/demo.json +12 -0
- package/dist/recipes/slot-fit/index.d.ts +5 -0
- package/dist/recipes/slot-fit/index.js +15 -0
- package/dist/recipes/slot-fit/schema.d.ts +30 -0
- package/dist/recipes/slot-fit/schema.js +11 -0
- package/dist/recipes/sound-match/demo.json +12 -0
- package/dist/recipes/sound-match/index.d.ts +5 -0
- package/dist/recipes/sound-match/index.js +15 -0
- package/dist/recipes/sound-match/schema.d.ts +30 -0
- package/dist/recipes/sound-match/schema.js +9 -0
- package/dist/recipes/spam-signal/demo.json +12 -0
- package/dist/recipes/spam-signal/index.d.ts +5 -0
- package/dist/recipes/spam-signal/index.js +15 -0
- package/dist/recipes/spam-signal/schema.d.ts +30 -0
- package/dist/recipes/spam-signal/schema.js +11 -0
- package/dist/recipes/stage-evidence/demo.json +12 -0
- package/dist/recipes/stage-evidence/index.d.ts +5 -0
- package/dist/recipes/stage-evidence/index.js +15 -0
- package/dist/recipes/stage-evidence/schema.d.ts +30 -0
- package/dist/recipes/stage-evidence/schema.js +11 -0
- package/dist/recipes/step-progress/schema.d.ts +3 -3
- package/dist/recipes/style-kind/demo.json +26 -0
- package/dist/recipes/style-kind/index.d.ts +5 -0
- package/dist/recipes/style-kind/index.js +19 -0
- package/dist/recipes/style-kind/schema.d.ts +47 -0
- package/dist/recipes/style-kind/schema.js +21 -0
- package/dist/recipes/symptom-facets/demo.json +17 -0
- package/dist/recipes/symptom-facets/index.d.ts +5 -0
- package/dist/recipes/symptom-facets/index.js +48 -0
- package/dist/recipes/symptom-facets/schema.d.ts +95 -0
- package/dist/recipes/symptom-facets/schema.js +23 -0
- package/dist/recipes/take-turn/schema.d.ts +3 -3
- package/dist/recipes/task-complexity/demo.json +19 -0
- package/dist/recipes/task-complexity/index.d.ts +5 -0
- package/dist/recipes/task-complexity/index.js +18 -0
- package/dist/recipes/task-complexity/schema.d.ts +38 -0
- package/dist/recipes/task-complexity/schema.js +17 -0
- package/dist/recipes/task-duplicate/schema.d.ts +3 -3
- package/dist/recipes/task-overlap/demo.json +12 -0
- package/dist/recipes/task-overlap/index.d.ts +5 -0
- package/dist/recipes/task-overlap/index.js +15 -0
- package/dist/recipes/task-overlap/schema.d.ts +30 -0
- package/dist/recipes/task-overlap/schema.js +11 -0
- package/dist/recipes/tempo-change/demo.json +19 -0
- package/dist/recipes/tempo-change/index.d.ts +5 -0
- package/dist/recipes/tempo-change/index.js +16 -0
- package/dist/recipes/tempo-change/schema.d.ts +39 -0
- package/dist/recipes/tempo-change/schema.js +14 -0
- package/dist/recipes/tension-level/demo.json +19 -0
- package/dist/recipes/tension-level/index.d.ts +5 -0
- package/dist/recipes/tension-level/index.js +18 -0
- package/dist/recipes/tension-level/schema.d.ts +38 -0
- package/dist/recipes/tension-level/schema.js +11 -0
- package/dist/recipes/tool-compare/demo.json +26 -0
- package/dist/recipes/tool-compare/index.d.ts +5 -0
- package/dist/recipes/tool-compare/index.js +16 -0
- package/dist/recipes/tool-compare/schema.d.ts +43 -0
- package/dist/recipes/tool-compare/schema.js +10 -0
- package/dist/recipes/trip-purpose-kind/demo.json +27 -0
- package/dist/recipes/trip-purpose-kind/index.d.ts +5 -0
- package/dist/recipes/trip-purpose-kind/index.js +19 -0
- package/dist/recipes/trip-purpose-kind/schema.d.ts +48 -0
- package/dist/recipes/trip-purpose-kind/schema.js +22 -0
- package/dist/recipes/turn-intent/schema.d.ts +3 -3
- package/dist/src/answers.d.ts +6 -0
- package/dist/src/answers.js +23 -0
- package/dist/src/comparisons.d.ts +11 -0
- package/dist/src/comparisons.js +9 -0
- package/dist/src/gates.d.ts +10 -0
- package/dist/src/gates.js +20 -0
- package/dist/src/index.d.ts +296 -0
- package/dist/src/index.js +148 -0
- package/dist/src/labels.d.ts +25 -0
- package/dist/src/labels.js +40 -0
- package/dist/src/schema.d.ts +126 -0
- package/dist/src/schema.js +45 -0
- package/dist/src/scores.d.ts +13 -0
- package/dist/src/scores.js +24 -0
- package/package.json +593 -2
- package/CHANGELOG.md +0 -50
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { decisionStatusSchema, nonEmptyText, probability, resultMetadataSchema, } from '../../src/schema.js';
|
|
3
|
+
export const reviewCommentKindVerdictSchema = z.enum([
|
|
4
|
+
'bug',
|
|
5
|
+
'design',
|
|
6
|
+
'style',
|
|
7
|
+
'question',
|
|
8
|
+
'nit',
|
|
9
|
+
'praise',
|
|
10
|
+
'unclear',
|
|
11
|
+
]);
|
|
12
|
+
export const reviewCommentKindInputSchema = z.object({
|
|
13
|
+
comment: nonEmptyText,
|
|
14
|
+
context: nonEmptyText.optional(),
|
|
15
|
+
minConfidence: probability.optional(),
|
|
16
|
+
});
|
|
17
|
+
export const reviewCommentKindResultSchema = resultMetadataSchema.extend({
|
|
18
|
+
status: decisionStatusSchema,
|
|
19
|
+
verdict: reviewCommentKindVerdictSchema,
|
|
20
|
+
confidence: probability,
|
|
21
|
+
probabilities: z.record(reviewCommentKindVerdictSchema, probability),
|
|
22
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"review": "The blender itself is solid and crushes ice with no trouble, and for the sale price it was a steal. Unfortunately the box arrived dented and the lid gasket was torn, so it leaks. Support sent a replacement gasket within two days, which I appreciated.",
|
|
4
|
+
"minConfidence": 0.8
|
|
5
|
+
},
|
|
6
|
+
"response": {
|
|
7
|
+
"model": "demo-fixture",
|
|
8
|
+
"answers": {
|
|
9
|
+
"mentionsQuality": { "type": "noul", "noul": 0.95 },
|
|
10
|
+
"mentionsPrice": { "type": "noul", "noul": 0.93 },
|
|
11
|
+
"mentionsShipping": { "type": "noul", "noul": 0.88 },
|
|
12
|
+
"mentionsService": { "type": "noul", "noul": 0.96 },
|
|
13
|
+
"reportsDefect": { "type": "noul", "noul": 0.94 }
|
|
14
|
+
},
|
|
15
|
+
"usage": { "input_tokens": 0, "output_tokens": 0 }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { ReviewFacetsInput, ReviewFacetsResult } from './schema.js';
|
|
3
|
+
export declare function reviewFacets(input: ReviewFacetsInput, options?: RecipeOptions): Promise<ReviewFacetsResult>;
|
|
4
|
+
export { reviewFacetsInputSchema, reviewFacetsResultSchema, reviewFacetsLabelSchema, } from './schema.js';
|
|
5
|
+
export type { ReviewFacetsInput, ReviewFacetsResult, ReviewFacetsLabel } from './schema.js';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { evaluateLabels, resolveLabels } from '../../src/labels.js';
|
|
2
|
+
import { reviewFacetsInputSchema, reviewFacetsResultSchema } from './schema.js';
|
|
3
|
+
export async function reviewFacets(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = reviewFacetsInputSchema.parse(input);
|
|
5
|
+
const evaluation = await evaluateLabels(state, {
|
|
6
|
+
mentionsQuality: {
|
|
7
|
+
instruction: 'Does review comment on the quality of the product itself, such as materials, build, durability, performance, taste, or how well it works?',
|
|
8
|
+
criteria: {
|
|
9
|
+
true: 'The review comments on the quality or performance of the product.',
|
|
10
|
+
false: 'The review says nothing about product quality or performance.',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
mentionsPrice: {
|
|
14
|
+
instruction: 'Does review comment on the price, cost, value for money, or a discount or deal?',
|
|
15
|
+
criteria: {
|
|
16
|
+
true: 'The review comments on price or value for money.',
|
|
17
|
+
false: 'The review says nothing about price or value.',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
mentionsShipping: {
|
|
21
|
+
instruction: 'Does review comment on shipping, delivery speed, packaging, or the condition the parcel arrived in?',
|
|
22
|
+
criteria: {
|
|
23
|
+
true: 'The review comments on shipping, delivery, or packaging.',
|
|
24
|
+
false: 'The review says nothing about shipping, delivery, or packaging.',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
mentionsService: {
|
|
28
|
+
instruction: 'Does review comment on customer service, support, returns handling, or interaction with the seller or staff?',
|
|
29
|
+
criteria: {
|
|
30
|
+
true: 'The review comments on customer service or the seller interaction.',
|
|
31
|
+
false: 'The review says nothing about customer service or the seller.',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
reportsDefect: {
|
|
35
|
+
instruction: 'Does review report that the product was broken, damaged, missing parts, malfunctioning, or otherwise not working as intended?',
|
|
36
|
+
criteria: {
|
|
37
|
+
true: 'The review reports a specific defect or malfunction in the product received.',
|
|
38
|
+
false: 'The review reports no defect; general dissatisfaction alone does not count.',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
}, options);
|
|
42
|
+
return reviewFacetsResultSchema.parse({
|
|
43
|
+
...resolveLabels(evaluation.labels, minConfidence),
|
|
44
|
+
model: evaluation.model,
|
|
45
|
+
usage: evaluation.usage,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
export { reviewFacetsInputSchema, reviewFacetsResultSchema, reviewFacetsLabelSchema, } from './schema.js';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewFacetsLabelSchema: z.ZodEnum<{
|
|
3
|
+
mentionsQuality: "mentionsQuality";
|
|
4
|
+
mentionsPrice: "mentionsPrice";
|
|
5
|
+
mentionsShipping: "mentionsShipping";
|
|
6
|
+
mentionsService: "mentionsService";
|
|
7
|
+
reportsDefect: "reportsDefect";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const reviewFacetsInputSchema: z.ZodObject<{
|
|
10
|
+
review: z.ZodString;
|
|
11
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const reviewFacetsResultSchema: z.ZodObject<{
|
|
14
|
+
model: z.ZodString;
|
|
15
|
+
usage: z.ZodObject<{
|
|
16
|
+
input_tokens: z.ZodNumber;
|
|
17
|
+
output_tokens: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
status: z.ZodEnum<{
|
|
20
|
+
ready: "ready";
|
|
21
|
+
review: "review";
|
|
22
|
+
}>;
|
|
23
|
+
detected: z.ZodArray<z.ZodEnum<{
|
|
24
|
+
mentionsQuality: "mentionsQuality";
|
|
25
|
+
mentionsPrice: "mentionsPrice";
|
|
26
|
+
mentionsShipping: "mentionsShipping";
|
|
27
|
+
mentionsService: "mentionsService";
|
|
28
|
+
reportsDefect: "reportsDefect";
|
|
29
|
+
}>>;
|
|
30
|
+
labels: z.ZodObject<{
|
|
31
|
+
mentionsQuality: z.ZodObject<{
|
|
32
|
+
status: z.ZodEnum<{
|
|
33
|
+
ready: "ready";
|
|
34
|
+
review: "review";
|
|
35
|
+
}>;
|
|
36
|
+
verdict: z.ZodEnum<{
|
|
37
|
+
present: "present";
|
|
38
|
+
absent: "absent";
|
|
39
|
+
}>;
|
|
40
|
+
probability: z.ZodNumber;
|
|
41
|
+
confidence: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
mentionsPrice: z.ZodObject<{
|
|
44
|
+
status: z.ZodEnum<{
|
|
45
|
+
ready: "ready";
|
|
46
|
+
review: "review";
|
|
47
|
+
}>;
|
|
48
|
+
verdict: z.ZodEnum<{
|
|
49
|
+
present: "present";
|
|
50
|
+
absent: "absent";
|
|
51
|
+
}>;
|
|
52
|
+
probability: z.ZodNumber;
|
|
53
|
+
confidence: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
mentionsShipping: z.ZodObject<{
|
|
56
|
+
status: z.ZodEnum<{
|
|
57
|
+
ready: "ready";
|
|
58
|
+
review: "review";
|
|
59
|
+
}>;
|
|
60
|
+
verdict: z.ZodEnum<{
|
|
61
|
+
present: "present";
|
|
62
|
+
absent: "absent";
|
|
63
|
+
}>;
|
|
64
|
+
probability: z.ZodNumber;
|
|
65
|
+
confidence: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
mentionsService: z.ZodObject<{
|
|
68
|
+
status: z.ZodEnum<{
|
|
69
|
+
ready: "ready";
|
|
70
|
+
review: "review";
|
|
71
|
+
}>;
|
|
72
|
+
verdict: z.ZodEnum<{
|
|
73
|
+
present: "present";
|
|
74
|
+
absent: "absent";
|
|
75
|
+
}>;
|
|
76
|
+
probability: z.ZodNumber;
|
|
77
|
+
confidence: z.ZodNumber;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
reportsDefect: z.ZodObject<{
|
|
80
|
+
status: z.ZodEnum<{
|
|
81
|
+
ready: "ready";
|
|
82
|
+
review: "review";
|
|
83
|
+
}>;
|
|
84
|
+
verdict: z.ZodEnum<{
|
|
85
|
+
present: "present";
|
|
86
|
+
absent: "absent";
|
|
87
|
+
}>;
|
|
88
|
+
probability: z.ZodNumber;
|
|
89
|
+
confidence: z.ZodNumber;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type ReviewFacetsLabel = z.infer<typeof reviewFacetsLabelSchema>;
|
|
94
|
+
export type ReviewFacetsInput = z.infer<typeof reviewFacetsInputSchema>;
|
|
95
|
+
export type ReviewFacetsResult = z.infer<typeof reviewFacetsResultSchema>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { labelCheckSchema, labelsResultSchema, nonEmptyText, probability, } from '../../src/schema.js';
|
|
3
|
+
export const reviewFacetsLabelSchema = z.enum([
|
|
4
|
+
'mentionsQuality',
|
|
5
|
+
'mentionsPrice',
|
|
6
|
+
'mentionsShipping',
|
|
7
|
+
'mentionsService',
|
|
8
|
+
'reportsDefect',
|
|
9
|
+
]);
|
|
10
|
+
export const reviewFacetsInputSchema = z.object({
|
|
11
|
+
review: nonEmptyText,
|
|
12
|
+
minConfidence: probability.optional(),
|
|
13
|
+
});
|
|
14
|
+
export const reviewFacetsResultSchema = labelsResultSchema.extend({
|
|
15
|
+
detected: z.array(reviewFacetsLabelSchema),
|
|
16
|
+
labels: z.object({
|
|
17
|
+
mentionsQuality: labelCheckSchema,
|
|
18
|
+
mentionsPrice: labelCheckSchema,
|
|
19
|
+
mentionsShipping: labelCheckSchema,
|
|
20
|
+
mentionsService: labelCheckSchema,
|
|
21
|
+
reportsDefect: labelCheckSchema,
|
|
22
|
+
}),
|
|
23
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"review": "The paper addresses an important question and the experimental setup is generally careful. However, the central claim in Section 5 rests on the independence assumption introduced in Section 3, which the authors never test, and the baseline comparison omits the two strongest recent methods. I would need to see the assumption validated and the comparison extended before I could support publication. The writing issues I noted in the margins are secondary and easy to fix.",
|
|
4
|
+
"minConfidence": 0.8
|
|
5
|
+
},
|
|
6
|
+
"response": {
|
|
7
|
+
"model": "demo-fixture",
|
|
8
|
+
"answers": {
|
|
9
|
+
"decision": {
|
|
10
|
+
"type": "choice",
|
|
11
|
+
"choice": "major_revision",
|
|
12
|
+
"confidence": 0.86,
|
|
13
|
+
"probabilities": {
|
|
14
|
+
"accept": 0.01,
|
|
15
|
+
"minor_revision": 0.04,
|
|
16
|
+
"major_revision": 0.86,
|
|
17
|
+
"reject": 0.07,
|
|
18
|
+
"unclear": 0.02
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"usage": { "input_tokens": 0, "output_tokens": 0 }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { ReviewRecommendationKindInput, ReviewRecommendationKindResult } from './schema.js';
|
|
3
|
+
export declare function reviewRecommendationKind(input: ReviewRecommendationKindInput, options?: RecipeOptions): Promise<ReviewRecommendationKindResult>;
|
|
4
|
+
export { reviewRecommendationKindInputSchema, reviewRecommendationKindResultSchema, reviewRecommendationKindVerdictSchema, } from './schema.js';
|
|
5
|
+
export type { ReviewRecommendationKindInput, ReviewRecommendationKindResult, ReviewRecommendationKindVerdict, } from './schema.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { evaluateChoice } from '../../src/decisions.js';
|
|
2
|
+
import { reviewRecommendationKindInputSchema, reviewRecommendationKindResultSchema, } from './schema.js';
|
|
3
|
+
export async function reviewRecommendationKind(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = reviewRecommendationKindInputSchema.parse(input);
|
|
5
|
+
const decision = await evaluateChoice(state, "Read review and decide which recommendation its wording expresses about the manuscript. Judge by what the reviewer says must happen before publication: nothing, small fixes, substantial new work or rewriting, or that it should not be published. Weigh the reviewer's stated conditions over the amount of praise or criticism. Use unclear when the text lists observations without committing to any disposition.", {
|
|
6
|
+
accept: 'The reviewer says the manuscript can be published as is or with only optional or cosmetic changes.',
|
|
7
|
+
minor_revision: 'The reviewer supports publication once specific small fixes are made, such as clarifications, typos, missing references, or presentation changes, without new experiments or analysis.',
|
|
8
|
+
major_revision: 'The reviewer withholds support until substantial new work is done, such as new experiments, reanalysis, addressing a flawed assumption, or significant restructuring, but does not rule out eventual publication.',
|
|
9
|
+
reject: 'The reviewer says the manuscript should not be published, or describes flaws it says cannot be fixed by revision.',
|
|
10
|
+
unclear: 'The review lists observations, questions, or mixed remarks without committing to what should happen to the manuscript.',
|
|
11
|
+
}, options);
|
|
12
|
+
return reviewRecommendationKindResultSchema.parse({
|
|
13
|
+
...decision,
|
|
14
|
+
status: decision.confidence < minConfidence || decision.verdict === 'unclear' ? 'review' : 'ready',
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export { reviewRecommendationKindInputSchema, reviewRecommendationKindResultSchema, reviewRecommendationKindVerdictSchema, } from './schema.js';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewRecommendationKindVerdictSchema: z.ZodEnum<{
|
|
3
|
+
unclear: "unclear";
|
|
4
|
+
accept: "accept";
|
|
5
|
+
minor_revision: "minor_revision";
|
|
6
|
+
major_revision: "major_revision";
|
|
7
|
+
reject: "reject";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const reviewRecommendationKindInputSchema: z.ZodObject<{
|
|
10
|
+
review: z.ZodString;
|
|
11
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const reviewRecommendationKindResultSchema: z.ZodObject<{
|
|
14
|
+
model: z.ZodString;
|
|
15
|
+
usage: z.ZodObject<{
|
|
16
|
+
input_tokens: z.ZodNumber;
|
|
17
|
+
output_tokens: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
status: z.ZodEnum<{
|
|
20
|
+
ready: "ready";
|
|
21
|
+
review: "review";
|
|
22
|
+
}>;
|
|
23
|
+
verdict: z.ZodEnum<{
|
|
24
|
+
unclear: "unclear";
|
|
25
|
+
accept: "accept";
|
|
26
|
+
minor_revision: "minor_revision";
|
|
27
|
+
major_revision: "major_revision";
|
|
28
|
+
reject: "reject";
|
|
29
|
+
}>;
|
|
30
|
+
confidence: z.ZodNumber;
|
|
31
|
+
probabilities: z.ZodRecord<z.ZodEnum<{
|
|
32
|
+
unclear: "unclear";
|
|
33
|
+
accept: "accept";
|
|
34
|
+
minor_revision: "minor_revision";
|
|
35
|
+
major_revision: "major_revision";
|
|
36
|
+
reject: "reject";
|
|
37
|
+
}>, z.ZodNumber>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type ReviewRecommendationKindVerdict = z.infer<typeof reviewRecommendationKindVerdictSchema>;
|
|
40
|
+
export type ReviewRecommendationKindInput = z.infer<typeof reviewRecommendationKindInputSchema>;
|
|
41
|
+
export type ReviewRecommendationKindResult = z.infer<typeof reviewRecommendationKindResultSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { decisionStatusSchema, nonEmptyText, probability, resultMetadataSchema, } from '../../src/schema.js';
|
|
3
|
+
export const reviewRecommendationKindVerdictSchema = z.enum([
|
|
4
|
+
'accept',
|
|
5
|
+
'minor_revision',
|
|
6
|
+
'major_revision',
|
|
7
|
+
'reject',
|
|
8
|
+
'unclear',
|
|
9
|
+
]);
|
|
10
|
+
export const reviewRecommendationKindInputSchema = z.object({
|
|
11
|
+
review: nonEmptyText,
|
|
12
|
+
minConfidence: probability.optional(),
|
|
13
|
+
});
|
|
14
|
+
export const reviewRecommendationKindResultSchema = resultMetadataSchema.extend({
|
|
15
|
+
status: decisionStatusSchema,
|
|
16
|
+
verdict: reviewRecommendationKindVerdictSchema,
|
|
17
|
+
confidence: probability,
|
|
18
|
+
probabilities: z.record(reviewRecommendationKindVerdictSchema, probability),
|
|
19
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"review": "Three stars. The rooftop pool and the breakfast were genuinely excellent, and the front desk upgraded us without asking. But the air conditioning in room 412 rattled all night and maintenance never showed up after we called twice. We also waited 40 minutes for the airport shuttle that was supposed to run every 15.",
|
|
4
|
+
"response": "Thank you for staying with us and for the kind words about the rooftop pool and breakfast; I have passed your compliment to the front desk team. I am sorry about the noisy air conditioning unit in 412 and that maintenance did not respond after two calls; that unit has now been replaced and we are reviewing how after-hours requests are dispatched. The shuttle delay is not the service we promise, and we have added a second vehicle during peak hours. I hope you will give us another chance.",
|
|
5
|
+
"minConfidence": 0.8
|
|
6
|
+
},
|
|
7
|
+
"response": {
|
|
8
|
+
"model": "demo-fixture",
|
|
9
|
+
"answers": { "gate": { "type": "noul", "noul": 0.94 } },
|
|
10
|
+
"usage": { "input_tokens": 0, "output_tokens": 0 }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { ReviewResponseFitInput, ReviewResponseFitResult } from './schema.js';
|
|
3
|
+
export declare function reviewResponseFit(input: ReviewResponseFitInput, options?: RecipeOptions): Promise<ReviewResponseFitResult>;
|
|
4
|
+
export { reviewResponseFitInputSchema, reviewResponseFitResultSchema, reviewResponseFitVerdictSchema, } from './schema.js';
|
|
5
|
+
export type { ReviewResponseFitInput, ReviewResponseFitResult, ReviewResponseFitVerdict, } from './schema.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { evaluateGate } from '../../src/gates.js';
|
|
2
|
+
import { reviewResponseFitInputSchema, reviewResponseFitResultSchema } from './schema.js';
|
|
3
|
+
export async function reviewResponseFit(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = reviewResponseFitInputSchema.parse(input);
|
|
5
|
+
const decision = await evaluateGate(state, 'Judge whether response addresses the specific complaints and praise raised in review. A response addresses the review when it refers to the particular issues or compliments the reviewer raised, even briefly. A response is generic when it could be posted under any review: a thank-you, a general apology, or an invitation to return with no reference to what this reviewer said. Ignore tone, length, and whether the response offers compensation.', {
|
|
6
|
+
true: 'The response refers to the specific complaints or praise in the review, such as naming the problem the reviewer described or the thing they liked.',
|
|
7
|
+
false: 'The response contains only general thanks, apology, or marketing language that does not refer to anything particular in the review.',
|
|
8
|
+
}, options);
|
|
9
|
+
return reviewResponseFitResultSchema.parse({
|
|
10
|
+
...decision,
|
|
11
|
+
verdict: decision.probability >= 0.5 ? 'addresses' : 'generic',
|
|
12
|
+
status: decision.confidence < minConfidence ? 'review' : 'ready',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export { reviewResponseFitInputSchema, reviewResponseFitResultSchema, reviewResponseFitVerdictSchema, } from './schema.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewResponseFitVerdictSchema: z.ZodEnum<{
|
|
3
|
+
addresses: "addresses";
|
|
4
|
+
generic: "generic";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const reviewResponseFitInputSchema: z.ZodObject<{
|
|
7
|
+
review: z.ZodString;
|
|
8
|
+
response: z.ZodString;
|
|
9
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const reviewResponseFitResultSchema: z.ZodObject<{
|
|
12
|
+
model: z.ZodString;
|
|
13
|
+
usage: z.ZodObject<{
|
|
14
|
+
input_tokens: z.ZodNumber;
|
|
15
|
+
output_tokens: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
status: z.ZodEnum<{
|
|
18
|
+
ready: "ready";
|
|
19
|
+
review: "review";
|
|
20
|
+
}>;
|
|
21
|
+
probability: z.ZodNumber;
|
|
22
|
+
confidence: z.ZodNumber;
|
|
23
|
+
verdict: z.ZodEnum<{
|
|
24
|
+
addresses: "addresses";
|
|
25
|
+
generic: "generic";
|
|
26
|
+
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type ReviewResponseFitVerdict = z.infer<typeof reviewResponseFitVerdictSchema>;
|
|
29
|
+
export type ReviewResponseFitInput = z.infer<typeof reviewResponseFitInputSchema>;
|
|
30
|
+
export type ReviewResponseFitResult = z.infer<typeof reviewResponseFitResultSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { gateResultSchema, nonEmptyText, probability } from '../../src/schema.js';
|
|
3
|
+
export const reviewResponseFitVerdictSchema = z.enum(['addresses', 'generic']);
|
|
4
|
+
export const reviewResponseFitInputSchema = z.object({
|
|
5
|
+
review: nonEmptyText,
|
|
6
|
+
response: nonEmptyText,
|
|
7
|
+
minConfidence: probability.optional(),
|
|
8
|
+
});
|
|
9
|
+
export const reviewResponseFitResultSchema = gateResultSchema.extend({
|
|
10
|
+
verdict: reviewResponseFitVerdictSchema,
|
|
11
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"symptoms": "Starting at 09:42 UTC the error rate on POST /orders jumped from 0.2% to 8%. Every failure is a null reference in PricingService.applyDiscount. GET endpoints and the cart service are unaffected.",
|
|
4
|
+
"change": "Deployed at 09:40 UTC: PricingService now loads discount rules lazily from the new promotions table instead of the in-memory cache. Only the pricing module was touched; no schema or infrastructure changes.",
|
|
5
|
+
"minConfidence": 0.8
|
|
6
|
+
},
|
|
7
|
+
"response": {
|
|
8
|
+
"model": "demo-fixture",
|
|
9
|
+
"answers": { "gate": { "type": "noul", "noul": 0.94 } },
|
|
10
|
+
"usage": { "input_tokens": 0, "output_tokens": 0 }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { RollbackSignalInput, RollbackSignalResult } from './schema.js';
|
|
3
|
+
export declare function rollbackSignal(input: RollbackSignalInput, options?: RecipeOptions): Promise<RollbackSignalResult>;
|
|
4
|
+
export { rollbackSignalInputSchema, rollbackSignalResultSchema, rollbackSignalVerdictSchema, } from './schema.js';
|
|
5
|
+
export type { RollbackSignalInput, RollbackSignalResult, RollbackSignalVerdict } from './schema.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { evaluateGate } from '../../src/gates.js';
|
|
2
|
+
import { rollbackSignalInputSchema, rollbackSignalResultSchema } from './schema.js';
|
|
3
|
+
export async function rollbackSignal(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = rollbackSignalInputSchema.parse(input);
|
|
5
|
+
const decision = await evaluateGate(state, 'Do symptoms plausibly point at change as the cause? Answer yes only when the onset described in symptoms follows the deploy described in change and the affected functionality overlaps the code, service, or configuration the change touched. Judge only the timing and scope stated in the two texts. Ignore how risky the change sounds in general, and do not assume a cause the texts do not describe.', {
|
|
6
|
+
true: 'The onset in symptoms follows the deploy in change, and the failing functionality overlaps the area the change touched.',
|
|
7
|
+
false: 'The symptoms began before the change, affect an area the change did not touch, or describe a failure mode the change could not plausibly produce.',
|
|
8
|
+
}, options);
|
|
9
|
+
return rollbackSignalResultSchema.parse({
|
|
10
|
+
...decision,
|
|
11
|
+
verdict: decision.probability >= 0.5 ? 'implicated' : 'unrelated',
|
|
12
|
+
status: decision.confidence < minConfidence ? 'review' : 'ready',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export { rollbackSignalInputSchema, rollbackSignalResultSchema, rollbackSignalVerdictSchema, } from './schema.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rollbackSignalVerdictSchema: z.ZodEnum<{
|
|
3
|
+
unrelated: "unrelated";
|
|
4
|
+
implicated: "implicated";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const rollbackSignalInputSchema: z.ZodObject<{
|
|
7
|
+
symptoms: z.ZodString;
|
|
8
|
+
change: z.ZodString;
|
|
9
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const rollbackSignalResultSchema: z.ZodObject<{
|
|
12
|
+
model: z.ZodString;
|
|
13
|
+
usage: z.ZodObject<{
|
|
14
|
+
input_tokens: z.ZodNumber;
|
|
15
|
+
output_tokens: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
status: z.ZodEnum<{
|
|
18
|
+
ready: "ready";
|
|
19
|
+
review: "review";
|
|
20
|
+
}>;
|
|
21
|
+
probability: z.ZodNumber;
|
|
22
|
+
confidence: z.ZodNumber;
|
|
23
|
+
verdict: z.ZodEnum<{
|
|
24
|
+
unrelated: "unrelated";
|
|
25
|
+
implicated: "implicated";
|
|
26
|
+
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type RollbackSignalVerdict = z.infer<typeof rollbackSignalVerdictSchema>;
|
|
29
|
+
export type RollbackSignalInput = z.infer<typeof rollbackSignalInputSchema>;
|
|
30
|
+
export type RollbackSignalResult = z.infer<typeof rollbackSignalResultSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { gateResultSchema, nonEmptyText, probability } from '../../src/schema.js';
|
|
3
|
+
export const rollbackSignalVerdictSchema = z.enum(['implicated', 'unrelated']);
|
|
4
|
+
export const rollbackSignalInputSchema = z.object({
|
|
5
|
+
symptoms: nonEmptyText,
|
|
6
|
+
change: nonEmptyText,
|
|
7
|
+
minConfidence: probability.optional(),
|
|
8
|
+
});
|
|
9
|
+
export const rollbackSignalResultSchema = gateResultSchema.extend({
|
|
10
|
+
verdict: rollbackSignalVerdictSchema,
|
|
11
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"analysis": "Line 3 stopped twice this week because the conveyor drive motor tripped on overtemperature. The motor overheated because the cooling fan intake was packed with cardboard dust. The intake was clogged because the weekly intake cleaning task was not performed for about eleven weeks. That task was dropped when the preventive maintenance schedule was migrated to the new CMMS in June: the migration checklist had no step to reconcile task counts between the old and new systems, and no one was assigned to own the migration, so the missing task was never noticed.",
|
|
4
|
+
"minConfidence": 0.8
|
|
5
|
+
},
|
|
6
|
+
"response": {
|
|
7
|
+
"model": "demo-fixture",
|
|
8
|
+
"answers": {
|
|
9
|
+
"score": {
|
|
10
|
+
"type": "score",
|
|
11
|
+
"score": 2.88,
|
|
12
|
+
"confidence": 0.82,
|
|
13
|
+
"probabilities": { "0": 0.01, "1": 0.02, "2": 0.1, "3": 0.82, "4": 0.05 }
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"usage": { "input_tokens": 0, "output_tokens": 0 }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { RootCauseDepthInput, RootCauseDepthResult } from './schema.js';
|
|
3
|
+
export declare function rootCauseDepth(input: RootCauseDepthInput, options?: RecipeOptions): Promise<RootCauseDepthResult>;
|
|
4
|
+
export { rootCauseDepthInputSchema, rootCauseDepthResultSchema, rootCauseDepthVerdictSchema, } from './schema.js';
|
|
5
|
+
export type { RootCauseDepthInput, RootCauseDepthResult, RootCauseDepthVerdict } from './schema.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { evaluateScore } from '../../src/scores.js';
|
|
2
|
+
import { rootCauseDepthInputSchema, rootCauseDepthResultSchema, rootCauseDepthVerdictSchema, } from './schema.js';
|
|
3
|
+
export async function rootCauseDepth(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = rootCauseDepthInputSchema.parse(input);
|
|
5
|
+
const decision = await evaluateScore(state, 'How deep does analysis go in explaining the failure it describes? Judge only the chain of causes that analysis states. A symptom is what was observed. An immediate cause is the direct mechanism that produced it. A contributing cause is a condition that allowed the immediate cause to occur. A systemic cause is a process, design, or organizational condition that would produce the failure again if unchanged. Verification is a stated check that confirmed the cause, such as a test, a data review, or a reproduction. Ignore length, formatting, whether a named method like 5 Whys is mentioned, and whether the causes named are actually correct.', [
|
|
6
|
+
'The analysis restates what went wrong or where it was observed without naming any cause.',
|
|
7
|
+
'The analysis names the direct mechanism that produced the failure, such as a worn tool or a wrong setting, and stops there.',
|
|
8
|
+
'The analysis names the immediate cause and at least one condition that allowed it, such as a skipped check or an unclear instruction, without reaching a process or design condition.',
|
|
9
|
+
'The analysis traces the chain to a process, design, or organizational condition that would produce the failure again if left unchanged.',
|
|
10
|
+
'The analysis names a systemic cause and states how that cause was confirmed, such as a test, a data review, or reproducing the failure.',
|
|
11
|
+
], options);
|
|
12
|
+
return rootCauseDepthResultSchema.parse({
|
|
13
|
+
...decision,
|
|
14
|
+
depth: rootCauseDepthVerdictSchema.options[decision.level],
|
|
15
|
+
status: decision.confidence < minConfidence ? 'review' : 'ready',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export { rootCauseDepthInputSchema, rootCauseDepthResultSchema, rootCauseDepthVerdictSchema, } from './schema.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rootCauseDepthVerdictSchema: z.ZodEnum<{
|
|
3
|
+
symptom: "symptom";
|
|
4
|
+
immediate: "immediate";
|
|
5
|
+
contributing: "contributing";
|
|
6
|
+
systemic: "systemic";
|
|
7
|
+
verified: "verified";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const rootCauseDepthInputSchema: z.ZodObject<{
|
|
10
|
+
analysis: z.ZodString;
|
|
11
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const rootCauseDepthResultSchema: z.ZodObject<{
|
|
14
|
+
model: z.ZodString;
|
|
15
|
+
usage: z.ZodObject<{
|
|
16
|
+
input_tokens: z.ZodNumber;
|
|
17
|
+
output_tokens: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
status: z.ZodEnum<{
|
|
20
|
+
ready: "ready";
|
|
21
|
+
review: "review";
|
|
22
|
+
}>;
|
|
23
|
+
score: z.ZodNumber;
|
|
24
|
+
level: z.ZodNumber;
|
|
25
|
+
confidence: z.ZodNumber;
|
|
26
|
+
probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
27
|
+
depth: z.ZodEnum<{
|
|
28
|
+
symptom: "symptom";
|
|
29
|
+
immediate: "immediate";
|
|
30
|
+
contributing: "contributing";
|
|
31
|
+
systemic: "systemic";
|
|
32
|
+
verified: "verified";
|
|
33
|
+
}>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type RootCauseDepthVerdict = z.infer<typeof rootCauseDepthVerdictSchema>;
|
|
36
|
+
export type RootCauseDepthInput = z.infer<typeof rootCauseDepthInputSchema>;
|
|
37
|
+
export type RootCauseDepthResult = z.infer<typeof rootCauseDepthResultSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { nonEmptyText, probability, scoreResultSchema } from '../../src/schema.js';
|
|
3
|
+
export const rootCauseDepthVerdictSchema = z.enum([
|
|
4
|
+
'symptom',
|
|
5
|
+
'immediate',
|
|
6
|
+
'contributing',
|
|
7
|
+
'systemic',
|
|
8
|
+
'verified',
|
|
9
|
+
]);
|
|
10
|
+
export const rootCauseDepthInputSchema = z.object({
|
|
11
|
+
analysis: nonEmptyText,
|
|
12
|
+
minConfidence: probability.optional(),
|
|
13
|
+
});
|
|
14
|
+
export const rootCauseDepthResultSchema = scoreResultSchema.extend({
|
|
15
|
+
depth: rootCauseDepthVerdictSchema,
|
|
16
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"action": "On my turn I play a Draw Two card on top of a red 7 that is showing on the discard pile. My Draw Two is blue.",
|
|
4
|
+
"rules": "UNO. On your turn you must play a card that matches the top discard by color, number, or symbol. Draw Two, Reverse, and Skip cards may be played on a top card of the same color or on another card of the same symbol. Wild cards may be played on anything. If you cannot play, draw one card; if it is playable you may play it immediately.",
|
|
5
|
+
"minConfidence": 0.8
|
|
6
|
+
},
|
|
7
|
+
"response": {
|
|
8
|
+
"model": "demo-fixture",
|
|
9
|
+
"answers": { "gate": { "type": "noul", "noul": 0.05 } },
|
|
10
|
+
"usage": { "input_tokens": 0, "output_tokens": 0 }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecipeOptions } from '../../src/schema.js';
|
|
2
|
+
import type { RuleComplianceInput, RuleComplianceResult } from './schema.js';
|
|
3
|
+
export declare function ruleCompliance(input: RuleComplianceInput, options?: RecipeOptions): Promise<RuleComplianceResult>;
|
|
4
|
+
export { ruleComplianceInputSchema, ruleComplianceResultSchema, ruleComplianceVerdictSchema, } from './schema.js';
|
|
5
|
+
export type { RuleComplianceInput, RuleComplianceResult, RuleComplianceVerdict } from './schema.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { evaluateGate } from '../../src/gates.js';
|
|
2
|
+
import { ruleComplianceInputSchema, ruleComplianceResultSchema } from './schema.js';
|
|
3
|
+
export async function ruleCompliance(input, options = {}) {
|
|
4
|
+
const { minConfidence = 0.8, ...state } = ruleComplianceInputSchema.parse(input);
|
|
5
|
+
const decision = await evaluateGate(state, 'Is action permitted by rules? Read rules as the complete authority. Treat the action as legal when nothing in rules forbids it and any conditions rules place on that kind of action are met by the details given in action. Treat it as illegal when rules forbid it outright, require a condition that action states is not met, or describe the action as available only in a situation action does not match. Do not apply rules that are not written in rules, and do not judge whether the action is wise.', {
|
|
6
|
+
true: 'Nothing in the written rules forbids the action, and every condition the rules attach to that kind of action is satisfied by the details given.',
|
|
7
|
+
false: 'The written rules forbid the action, or attach a condition to it that the described situation does not satisfy.',
|
|
8
|
+
}, options);
|
|
9
|
+
return ruleComplianceResultSchema.parse({
|
|
10
|
+
...decision,
|
|
11
|
+
verdict: decision.probability >= 0.5 ? 'legal' : 'illegal',
|
|
12
|
+
status: decision.confidence < minConfidence ? 'review' : 'ready',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export { ruleComplianceInputSchema, ruleComplianceResultSchema, ruleComplianceVerdictSchema, } from './schema.js';
|