Scan your whole stack
From OX Research Newsroom
Are you using @parcha/agentrun-jev?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0-beta.56
@parcha/agentrun-jev was last scanned on 24 Nov 2026 at version 0.1.0-beta.56. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0-beta.56 LATEST | 24 Nov 2026 | No rules fired |
| 0.1.0-beta.55 | 23 Nov 2026 | No rules fired |
| 0.1.0-beta.54 | 23 Nov 2026 | No rules fired |
| 0.1.0-beta.53 | 22 Nov 2026 | Not shown |
| 0.1.0-beta.52 | 22 Nov 2026 | Not shown |
Findings for v0.1.0-beta.56. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.0-beta.56; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Optional TypeSafe Jev support for AgentRun DSL. Jev answers focused questions with typed values and probability distributions. The workflow decides how to use them.
Beta, on npm under the latest dist-tag (npm view @parcha/agentrun-jev dist-tags). Requires Node.js 24.22.3 or later.
npm install @parcha/agentrun-dsl@latest @parcha/agentrun-jev@latest
To exercise the real adapter with no key and no network request, inject a client. After installing the packages, save this as offline-jev.mjs and run node offline-jev.mjs:
import assert from 'node:assert/strict';
import { createJevRunner } from '@parcha/agentrun-jev';
const runJudge = createJevRunner({
maxAttempts: 1,
client: {
async systemOne(request, options) {
options.signal?.throwIfAborted();
assert.deepEqual(Object.keys(request.questions), ['answersQuestion']);
return {
answers: { answersQuestion: { type: 'noul', noul: 0.95 } },
};
},
},
});
const result = await runJudge({
label: 'screen-evidence',
kind: 'judge',
state: {
question: 'Can emergency documentation fixes bypass prior approval?',
passage: 'During an incident, the on-call engineer may merge a fix immediately; a second person reviews it the next working day.',
},
questions: {
answersQuestion: {
type: 'noul',
instructions: 'Does the passage contain a specific rule or exception answering the question? Retain conditional and contrary evidence; reject topic mentions and promotional claims.',
},
},
});
assert.equal(result.answers.answersQuestion.noul, 0.95);
console.log(result.answers.answersQuestion);
This prints { type: 'noul', noul: 0.95 }. The answer is scripted; it does not evaluate the passage or adapt to prompt changes. Answer IDs must match the requested question IDs. Noul returns a probability, not a boolean. Reported model and token usage may be omitted; the adapter preserves missing usage/cost as unknown instead of inventing measurements.
A live call needs a key. Set it, then run the sample below as live-jev.mjs (node live-jev.mjs). The samples that follow are written in TypeScript; run them with a TypeScript runner such as npx tsx, or drop the type imports and annotations to run them as .mjs.
export TYPESAFE_API_KEY="your-key"
import { createJevRunner } from '@parcha/agentrun-jev';
const runJudge = createJevRunner();
// Supply runJudge alongside your other runWorkflow dependencies.
const result = await runJudge({
label: 'triage',
kind: 'judge',
state: { ticket: 'I was charged twice.' },
questions: {
team: {
type: 'choice',
instructions: 'Which team should handle this ticket?',
criteria: { billing: 'Invoices, payments, or refunds', other: 'Everything else' },
},
},
});
console.log(result.answers.team);
Without a key, or with an apiKey that is blank, createJevRunner() throws JevError (code configuration: "Could not configure Jev. Supply apiKey or set TYPESAFE_API_KEY, and check transport options.") on that line, before any request is made. The same holds for provider: "openrouter" without OPENROUTER_API_KEY.
judge, pick, sift, route, semantic predicates, and judgment verification use the same runJudge adapter. Choice, Noul, and Score answers retain their raw probabilities. The core validates answer IDs, probability keys and normalization, score rubrics, and value ranges before consuming a result. A typed answer records the model's decision. It does not prove that a real-world claim is true.
System One is TypeSafe's typed-question interface, exposed by the SDK as systemOne. A Noul answer is a truth probability from 0 to 1; the DSL converts probabilities of at least 0.5 to true and retains the probability beside that value. Choice and Score confidence comes from the response. Jev does not return a separate confidence for Noul; the DSL derives its own gate-strength value from the distance from 0.5, scaled to the range 0 to 1. These numbers are useful gate inputs, not calibrated guarantees.
The public adapter API is createJevRunner, jevProviderFromEnv, JevError, isJevResponseReason, jevImageTokens, the constants JEV_CONTEXT_TOKENS and JEV_CUT_MARK, and the types JevOptions, JevClient, JevProvider, JevErrorCode, JevResponseReason, JevResponseDiagnostic, JevRequestDiagnostic, JevProviderDiagnostic, JevImage, JevJudge, JevJudgeParams and JevJudgeResult. The shared question, answer and distribution helpers live in @parcha/agentrun-dsl.
const controller = new AbortController();
const runJudge = createJevRunner({
timeoutMs: 30_000, // Total budget, including retry waits.
maxAttempts: 3, // Includes the first attempt; maximum 10.
retryBaseMs: 500,
retryMaxMs: 5_000,
signal: controller.signal,
});
Jev is also served by OpenRouter's System One path, on the same request shape. Choose it with provider:
import { createJevRunner, jevProviderFromEnv } from "@parcha/agentrun-jev";
const runJudge = createJevRunner({ provider: "openrouter" }); // key: apiKey, else OPENROUTER_API_KEY
const byEnv = createJevRunner({ provider: jevProviderFromEnv(process.env) }); // OpenRouter only when only OPENROUTER_API_KEY is set
provider: "openrouter" sends to https://openrouter.ai/api/v1/systemone (an explicit baseURL wins) and defaults the model to ~typesafe/jev-latest; pin typesafe/jev-1.14 when a result must be reproducible. It never falls back to TYPESAFE_API_KEY: with no OpenRouter key it is a configuration error. The default provider is typesafe and nothing changes for it. provider cannot be combined with client.
Cost: when the response reports usage.cost (USD) it is cost_usd; otherwise a configured pricing estimate is used; otherwise cost_usd is null, never 0. A usage with a cost and no token counts is accepted and returns usage: null.
The official @typesafe-ai/sdk resolves TYPESAFE_API_KEY and TYPESAFE_BASE_URL. Explicit apiKey and baseURL options take precedence. An API root ends before /v1/systemone. Set fetch for a custom transport, or supply a client with a systemOne(request, options) method. A custom client must honor the request signal and disable its own retries; it owns its credentials and cannot be combined with transport options.
A Jev request is paid once it is sent, so the adapter never sends it again unasked. It retries, with bounded exponential delays, only a request that provably never reached Jev (no DNS answer, no connection, no TLS handshake) and a 429 with a Retry-After (seconds or an HTTP date). It waits the larger of that and its own delay, and gives up at once, with attempts left, when that wait would not end before the timeout. A 429 without Retry-After is an http error at once. A 408, a 5xx or a connection lost after sending is sent once and fails with code outcome_unknown (and the HTTP status when there is one): it may have been answered and billed, and its cost is unknown.
retryAfterSend: true restores the retries of earlier versions, which can re-send a paid request. With it, the adapter also retries a 408, any 429, a 5xx and a lost connection; on a 503 with Retry-After it waits as above. When the attempts end on a 429 after an earlier 408, 5xx or lost connection, the error reports the first of those failures (its HTTP status, or code connection), since that attempt may have been billed; an http error with status 429 means every attempt was refused. SDK retries are disabled. Validation failures and other HTTP errors do not retry. The deadline and either the runner or per-call signal interrupt both requests and backoff. A call the deadline ends is timeout, whether the runner's timer or the SDK's per-attempt timer fired first, and is not retried. Cancellation bounds when the adapter returns; an uncooperative custom client can still continue its own work.
Request state has no local byte cap by default. Set maxStateBytes to a positive safe integer to reject serialized UTF-8 JSON state exceeding that host-owned limit before transport; omission or null disables this guard. This is a byte guard, not a token estimate.
Jev's context is 32k tokens for the state plus any one question and 64k for the state plus all of them (JEV_CONTEXT_TOKENS); with the TypeSafe-Danger-Zone-Long-Context: true header both are 262k, at the same price, slower and less accurate. Past it Jev refuses the whole request (HTTP 400 max_tokens_exceeded). The runner never sends a request over it, measured by its UTF-8 JSON bytes, which bound its tokens from above (a token is at least one byte):
jevImageTokens(width, height): one token per 14x14-pixel patch, 12,544 for a full-size 1568x1568 image, about four times what common vision encoders spend at that size. Every use of every image is held that room before the text is measured.longContext, on by default there). Its request_sha256 covers that it was long.longContext: false or on OpenRouter, which documents no long context) has its longest state string values cut to one common length, each ending [cut] (JEV_CUT_MARK), so Jev reads that it saw only the start and short values (a name, a URL) stay whole. A string holding an image reference is never cut. To keep every word, partition the evidence in the workflow (a map with a judge body) instead.state_sent holds the state as sent and cut, each value cut by its JSON Pointer path, its bytes as asked and its sent_bytes. A cut request that fails carries the same as the JevError's stateSent. jevProvider passes both on, and the DSL's decision receipt records that state (state, state_cut), never the one asked.invalid_request with reason over_context.The core allows up to 240 options per choice and 2–10 levels per score rubric. Adapter timeouts are positive integer milliseconds up to 2,147,483,647; retry delays may also be zero. maxAttempts is 1–10, with a default of 3.
JevError provides a stable code, attempts, and optional HTTP status. A JSON HTTP error body's machine-readable type, code and detail.error_type values appear as providerType, providerCode and providerErrorType when they are at most 64 identifier characters, contain no URL separators or runner API key, and otherwise fit bounded token syntax; type and code are also read from the body's error object. If a broker wraps the vendor's JSON object in message, only its typed fields are read from that bounded object; message text is never exposed. A request the runner refuses before sending it has code invalid_request, attempts 0 and a requestDiagnostic (JevRequestDiagnostic): a reason (invalid_state, state_too_large, invalid_questions, invalid_assets, unsupported_model, unsupported_provider or over_context), the call's label (at most 200 characters) when it has one, and for a state over maxStateBytes its stateBytes and maxStateBytes. Errors deliberately omit raw service bodies, headers, input state, and causes. SDK logging is disabled. Custom clients and transports own their own logging. Do not expose credentials in browser code.
Optional responseDiagnostic.reason identifies a fixed response invariant, such
as answer_keys, probability_mass, or token_usage. An explicitly structured
capacity rejection can report max_tokens_exceeded; arbitrary provider messages
are never parsed for a reason. These details do not change validation, retry
policy, or the submitted evidence. Unknown causes remain unspecified.
Successful results retain answers, reported model, reported token usage, and a SHA-256 of the submitted request. cost_usd is the response's reported usage.cost when it has one, else an estimate from the counted tokens and an explicit pricing: { inputUsdPerMillionTokens, outputUsdPerMillionTokens }, else null. Configured prices produce an estimate for the successful response; costs from unsuccessful or interrupted attempts are unknown.
Jev 1.13 and 1.14 read still images, and Jev 1.14 can answer a Box question: where in an image something is. TypeSafe leaves both off unless a request says it carries one, and the runner says so for you: it sends TypeSafe-Danger-Zone-Images: true on every request that carries an image or a Box question and on no other.
import { createJevRunner, type JevJudge } from '@parcha/agentrun-jev';
const judge: JevJudge = createJevRunner({ model: 'jev-1.14.0' });
const { answers, usage, cost_usd } = await judge({
label: 'door', kind: 'judge',
state: 'The camera shows <photo>.',
questions: {
open: { type: 'noul', instructions: 'Is the door in <photo> open?' },
door: { type: 'box', instructions: 'the door in <photo>' },
},
assets: { '<photo>': { bytes: pngOrJpegFileBytes, mime: 'image/png' } }, // PNG or JPEG file bytes
});
// answers.door = { type: 'box', box: { top, bottom, left, right }, confidence } — edges are fractions of the image's height and width
assets maps each reference, a string that appears literally in state or in a question's instructions or criteria, to the image. The runner builds the SDK's image from the bytes and sends it as a multipart file part. Each reference must appear inside a string value of the state, an instruction or a criterion (a question id or an option name does not count), or the request is refused.model: 'jev-1.14.0', a later version, or 'jev-preview'. The runner checks the name, so it refuses a Box on jev-latest whatever version that alias points at. A Box on any other model, or a Box with no image, is refused with JevError code invalid_request before any request. model can also be named per call.mime), an empty file, a file over 16 MiB, a reference nothing uses. It does not check pixel dimensions (each side 280 to 1568, total 78,400 to 2,458,624 pixels) or the 32 MiB request limit; Jev rejects those with a 400 or 413, which surfaces as a typed http error.usage.input_tokens counts them. cost_usd is as for text: the provider's reported cost, else your pricing applied to the counted tokens, else null. request_sha256 names each image by its own SHA-256, so the same request hashes the same and a different image does not.top <= bottom, left <= right); a confidence the provider omits is null.JevJudge, JevJudgeParams, JevJudgeResult and JevImage are the types of this call. A package that asks Jev about images takes a JevJudge from its host and never imports the SDK.provider: "openrouter".Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.