henryZhouLikeStudy/dsh-lattice-adapter-command

henryZhouLikeStudy★ 1TypeScript最后同步: 2026-08-14

在 GitHub 打开

DSH Lattice command adapter: safe shell:false subprocess execution with JSONL/JSON-RPC sessions

README 摘要

@dsh-lattice/adapter-command DSH Lattice V1 command adapter: safe shell: false execution with persistent or one-shot JSON-lines / JSON-RPC sessions, cancellation, timeouts and output limits. This package is an independent community adapter, part of the DSH Lattice facade project. It is not affiliated with, endorsed by, or sponsored by DeepSeek AI. Why it exists The command adapter turns any executable into a Lattice provider with strict, auditable boundaries. It is the transport seam used by the aggregator's local provider and by the transports' demo engine, and it is safe to point at untrusted tools because: - No shell, ever. Execution is spawn(executable, args) with an explicit argument vector. shell: true or a command string is rejected at config validation; shell metacharacters in arguments are inert data. - Deterministic limits. Every run has a timeout (default 120s), per-stream output caps (default 1 MiB) with an explicit truncation marker, and a per-frame cap for persistent protocols. - Cancellation. Abort signals and per-call timeouts terminate the process tree (process group on POSIX, taskkill /T /F on Windows). Results are never claimed to be exactly-once. - Environment p…

在 GitHub 查看完整 README →
工具/开发dsh-plugin

分类