fan56/dsh-jev-core ↗★ 0

@aiwayds/dsh-jev-core

Shared TypeSafe Jev decision-model client for the dsh ecosystem: strict response validation, keychain-first key resolution, typed fail-open errors. Jev-optional by design. 作为 DSH 生态的底层依赖,为其他插件提供严格的决策模型调用与验证。

Package
@aiwayds/dsh-jev-core
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Sep 28, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

key 解析顺序(keychain-first,配置零明文)

  1. 调用参数 apiKey
  2. env TYPESAFE_API_KEY
  3. env JEV_API_KEY
  4. macOS 钥匙串:JEV_KEYCHAIN='[:]' 规格(默认服务 typesafe.ai),security find-generic-password 取值,按 spec 记忆化(改 key 重启生效)

钥匙串之外的任何取值失败都归为"无 key"(返回 null / isConfigured() === false),绝不抛错——缺 key 是配置状态不是错误。畸形 JEV_KEYCHAIN 规格在启动期用 parseKeychainSpec() 显式校验。