MrPunchLeonardo/accurlex-dsh-legal0

@accurlex/dsh-legal

DeepSeek Harness plugin for accurLex Open Platform legal tools

包名
@accurlex/dsh-legal
版本
0.1.1
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MrPunchLeonardo/accurlex-dsh-legal

配置 API Key

在启动 DSH 的进程环境中设置 API Key:

$env:ACCURLEX_API_KEY = 'ak_live_***'

可选地覆盖 API origin(本地 mock 或隔离代理):

$env:ACCURLEX_API_BASE_URL = 'https://accurlex.com'

正常使用时不需要设置 ACCURLEX_API_BASE_URL,默认会直连 https://accurlex.com;只有本地测试或明确使用代理时才覆盖它。修改环境变量后需要重启 DSH,使新进程能够读取配置。

安装与 profile 使用

本包遵循 DSH bundle manifest:package.json 声明 dsh.bundle.patchcordis.patch.yml 插入 @accurlex/dsh-legal plugin。DSH 官方支持两种安装场景:发布后按 npm 包名安装,开发/验收时按本地 checkout 安装。两种场景不能混用。

demo profile 只适合验证插件注册和配置合并;它是裸 profile,直接启动 Agent 任务可能没有 web/headless 所需的运行时层,不能作为实际使用示例。

发布后安装(面向最终用户)

@accurlex/dsh-legal 已发布到 npm 后,最终用户不需要知道源码仓库位置,直接按包名安装:

先安装到 demo 并只做注册检查:

dsh plugin --profile demo add @accurlex/dsh-legal
dsh --profile demo --dump-config

实际 Agent 使用请按目标 profile 单独安装 bundle。Web profile:

dsh plugin --profile web add @accurlex/dsh-legal
dsh web

Headless profile:

dsh plugin --profile headless add @accurlex/dsh-legal
dsh --profile headless "请调用 accurlex_account_usage 检查当前 Key"

安装或更新 bundle 后需要重启对应 profile;demowebheadless 相互独立,安装到 demo 不会自动安装到另外两个 profile。

本地 checkout 安装(面向开发/验收)

本地验证时直接使用本插件仓库 checkout,不要把某台机器的绝对路径写入文档:

$repoRoot = (git rev-parse --show-toplevel).Trim()
$pluginDir = $repoRoot

dsh plugin --profile demo add $pluginDir
dsh --profile demo --dump-config

需要验证实际 Agent 时,将同一个 $pluginDir 安装到 webheadless profile。该命令要求当前 PowerShell 位于仓库 checkout 内;用户也可以把 $pluginDir 替换为自己机器上的 checkout 路径。DSH 官方将相对路径/本地 checkout 视为开发安装方式,发布包则使用上面的 npm 包名。

本仓库包含 bundle、源码和本地契约测试;真实 profile 安装和生产部署仍需由使用者按目标环境执行。DSH 仍是 Developer Preview,具体 CLI 参数以当前版本官方文档为准。

许可证范围

@accurlex/dsh-legal 这个 npm 插件包按 MIT License 发布,LICENSE 会随 bundle 分发。该许可证只适用于本插件包,不改变 accurLex 平台、开放平台 API、服务端或前端的许可证口径。