jev-recipes 0.9.2 → 0.9.5
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 +21 -7
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](https://github.com/agencyenterprise/jev-recipes/blob/main/LICENSE)
|
|
9
9
|
|
|
10
|
-
[Quickstart](#use-a-recipe) | [Live music app](https://jev-ai-music.com/) | [Coding assistants](https://
|
|
10
|
+
[Recipe guides at jev-recipes.com](https://jev-recipes.com/) | [Quickstart](#use-a-recipe) | [Live music app](https://jev-ai-music.com/) | [Coding assistants](https://jev-recipes.com/docs/coding-assistants/) | [Recipe catalog](https://jev-recipes.com/recipes/) | [API vs. SDK vs. recipes](https://github.com/agencyenterprise/jev-recipes/blob/main/docs/api-sdk-recipes.md) | [Agent frameworks](https://github.com/agencyenterprise/jev-recipes/blob/main/docs/framework-adapters.md) | [Contributing](https://github.com/agencyenterprise/jev-recipes/blob/main/CONTRIBUTING.md)
|
|
11
11
|
|
|
12
12
|
<!-- BEGIN GENERATED: summary -->
|
|
13
13
|
|
|
@@ -15,21 +15,35 @@
|
|
|
15
15
|
|
|
16
16
|
<!-- END GENERATED: summary -->
|
|
17
17
|
|
|
18
|
+
## Documentation versions
|
|
19
|
+
|
|
20
|
+
Run `npm ls jev-recipes` in your project to check the version you installed, then choose its `v<version>` tag from [all release tags](https://github.com/agencyenterprise/jev-recipes/tags) to browse matching documentation.
|
|
21
|
+
|
|
22
|
+
The hosted catalog and links to `main` can include unreleased changes. See [release notes](https://github.com/agencyenterprise/jev-recipes/releases) for compatibility and migration changes.
|
|
23
|
+
|
|
24
|
+
## Help and contributions
|
|
25
|
+
|
|
26
|
+
[Ask a usage question](https://github.com/agencyenterprise/jev-recipes/issues/new?template=usage-question.yml), [report a software bug](https://github.com/agencyenterprise/jev-recipes/issues/new?template=bug-report.yml), [share an unexpected model decision](https://github.com/agencyenterprise/jev-recipes/issues/new?template=model-decision.yml), or [request a recipe](https://github.com/agencyenterprise/jev-recipes/issues/new?template=recipe-request.yml).
|
|
27
|
+
|
|
28
|
+
For a reproducible software problem, start with the [standalone reproduction example](https://github.com/agencyenterprise/jev-recipes/tree/main/examples/reproduction). Share sanitized inputs and logs, never credentials or private data. To help improve the project, see [your first contribution](https://github.com/agencyenterprise/jev-recipes/blob/main/CONTRIBUTING.md#your-first-contribution).
|
|
29
|
+
|
|
30
|
+
## How it works
|
|
31
|
+
|
|
18
32
|
Each recipe accepts your data, calls [Jev through TypeSafe's System One API](https://docs.typesafe.ai/introduction) or an injected compatible client, and returns a structured decision. Use it in a Node.js backend, a script, or a research evaluation. Your application decides what happens next.
|
|
19
33
|
|
|
20
34
|
## Start with one decision
|
|
21
35
|
|
|
22
|
-
| Your task | Try without a key | Build the workflow |
|
|
23
|
-
| --------------------------------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
-
| Route work to the right team | `npx jev-recipes demo route` | [Route work](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/getting-started/README.md#route-work) |
|
|
25
|
-
| Select useful evidence | `npx jev-recipes demo rerank` | [Select evidence](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/getting-started/README.md#select-evidence) |
|
|
26
|
-
| Review an agent's proposed action | `npx jev-recipes demo tool-call-gate` | [Review an action](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/getting-started/README.md#review-an-action) |
|
|
36
|
+
| Your task | Recipe guide | Try without a key | Build the workflow |
|
|
37
|
+
| --------------------------------- | ------------------------------------------------------------------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
38
|
+
| Route work to the right team | [`route`](https://jev-recipes.com/recipes/route/) | `npx jev-recipes demo route` | [Route work](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/getting-started/README.md#route-work) |
|
|
39
|
+
| Select useful evidence | [`rerank`](https://jev-recipes.com/recipes/rerank/) | `npx jev-recipes demo rerank` | [Select evidence](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/getting-started/README.md#select-evidence) |
|
|
40
|
+
| Review an agent's proposed action | [`tool-call-gate`](https://jev-recipes.com/recipes/tool-call-gate/) | `npx jev-recipes demo tool-call-gate` | [Review an action](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/getting-started/README.md#review-an-action) |
|
|
27
41
|
|
|
28
42
|
These demos use saved responses. The [runnable workflow examples](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/getting-started/README.md) show ready decisions, uncertainty, and provider failures. Use [TypeSafe directly or Vercel Gateway](https://github.com/agencyenterprise/jev-recipes/blob/main/docs/integrations.md) for live calls.
|
|
29
43
|
|
|
30
44
|
For example, give `route` a support message and descriptions of your teams. It returns a team such as `billing`, or a review outcome when the choice is uncertain.
|
|
31
45
|
|
|
32
|
-
Evaluate your own cases with the [installed evaluator](https://
|
|
46
|
+
Evaluate your own cases with the [installed evaluator](https://jev-recipes.com/docs/evaluation/), retain model responses, and replay confidence policies offline. The [agent workflow](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/agent-loop/README.md) and [customer queue](https://github.com/agencyenterprise/jev-recipes/blob/main/examples/customer-queue/README.md) show how decisions fit into application code. [Direct and Gateway integrations](https://github.com/agencyenterprise/jev-recipes/blob/main/docs/integrations.md) use the same recipe interface.
|
|
33
47
|
|
|
34
48
|
## Watch Jev play checkers against Jev using the checkers-move recipe
|
|
35
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jev-recipes",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "248 small Jev decisions for JavaScript and TypeScript: route, rerank, gate, grade, compare, and label text for agents, RAG, support, code review, and music. Each returns a typed result with explicit uncertainty. Plug into Vercel AI SDK or LangChain agents, import one recipe, or run the CLI with JSON from any language.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1068,6 +1068,8 @@
|
|
|
1068
1068
|
"jev-recipes": "node --env-file-if-exists=.env dist/cli/index.js",
|
|
1069
1069
|
"ci": "node scripts/ci.mjs",
|
|
1070
1070
|
"pack:check": "node scripts/pack-check.mjs",
|
|
1071
|
+
"check:consumer": "node scripts/check-consumer.mjs",
|
|
1072
|
+
"check:reproduction": "node scripts/check-reproduction.mjs",
|
|
1071
1073
|
"prepack": "npm run generate:check && npm run build",
|
|
1072
1074
|
"prepublishOnly": "npm run ci",
|
|
1073
1075
|
"test": "npm run test:recipes && npm run test:tooling",
|
|
@@ -1084,8 +1086,8 @@
|
|
|
1084
1086
|
"zod": "^4.6.5"
|
|
1085
1087
|
},
|
|
1086
1088
|
"peerDependencies": {
|
|
1087
|
-
"
|
|
1088
|
-
"
|
|
1089
|
+
"@langchain/core": ">=1.0.0",
|
|
1090
|
+
"ai": ">=7.0.0"
|
|
1089
1091
|
},
|
|
1090
1092
|
"peerDependenciesMeta": {
|
|
1091
1093
|
"ai": {
|
|
@@ -1100,6 +1102,7 @@
|
|
|
1100
1102
|
"@types/node": "^22.0.0",
|
|
1101
1103
|
"@vitest/coverage-v8": "4.1.11",
|
|
1102
1104
|
"ai": "^7.0.122",
|
|
1105
|
+
"marked": "^18.0.14",
|
|
1103
1106
|
"prettier": "3.9.8",
|
|
1104
1107
|
"rimraf": "6.1.3",
|
|
1105
1108
|
"typescript": "~5.9.3",
|