yourtion/dsh-decision--packages-decision-jev ↗★ 0

@techs/dsh-decision-jev

为DSH决策层提供Jev概率判断适配器 适合需要将Jev安全系统接入DSH决策流的专业用户。

套件
@techs/dsh-decision-jev
相容性
待驗證
Cordis 依賴範圍
^4.0.4
版本
0.2.0
授權
MIT
最近更新
2026年9月29日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yourtion/dsh-decision#31c62fc91e9a4695a263dd66fd566263c6392ee5&path:packages/decision-jev

@techs/dsh-decision-jev

English | 简体中文

A Jev (TypeSafe System One wire) judgment provider for @techs/dsh-decision. It registers with ctx.decision and supplies probability judgments to the guardrail, routing, result judge, and approval integration points. The HTTP client is small; a missing key fails when the plugin loads.

Jev is one implementation of the core's JudgmentProvider contract. Other structured probability models can use their own adapters; they do not need to implement this package's wire format.

SettingDefaultPurpose
baseUrlhttps://api.typesafe.aiRequests go to {baseUrl}/v1/systemone
apiKeyNoneLiteral key; alternative to apiKeyEnv
apiKeyEnvNoneEnvironment variable containing the key
modeljev-latestModel for direct Jev access
timeoutMs30000Per-request timeout

For Vercel AI Gateway, use baseUrl: https://ai-gateway.vercel.sh/typesafe, model: typesafe-ai/jev, and AI_GATEWAY_API_KEY. The ./provider and ./spec exports do not depend on Cordis and can be used by hosts such as Pi. This adapter has no qualification for automatic approval, so machine approval will not automatically return allowed-once.

Install both dsh bundles:

export AI_GATEWAY_API_KEY=your_gateway_key
dsh plugin --profile web add @techs/dsh-decision @techs/dsh-decision-jev
dsh web

This bundle's patch configures the Gateway URL, model, and environment variable; the decision layer's bundle sets shadow. To use direct Jev access, override the decision-jev configuration in the profile's cordis.patch.yml.