Repository navigation
Releases
Releases · cndn/dsh-d1
dsh-d1 0.1.0
Added
- Six Cordis tools for the DeepSeek Harness:
d1_list,d1_query,d1_exec,
d1_schema,d1_stats,d1_health, speaking the Cloudflare D1/rawHTTP API. - Read-only-first posture: a SQLite-accurate lexical guard on
d1_query
(single statement;SELECT/VALUES/WITH … SELECT/ introspection
PRAGMA/EXPLAIN; balanced parentheses; no unterminated constructs) and a
tools/pre-executegate that deniesd1_execunderreadOnly(the default)
and asks for interactive approval otherwise. SELECTresults are row-capped with aLIMITwrapper before transfer.- Every tool forwards the harness cancellation signal to the D1 request;
cancelled calls settle as dsh's canonical ABORTED outcome. - Batched
COUNT(*)ind1_stats(one round trip per 25 tables). - Env-only API token (
CLOUDFLARE_API_TOKEN/DSH_D1_TOKEN_<NAME>), never
stored, logged, rendered or included in errors; upstream error bodies are
token- and path-scrubbed. - CSV output neutralises spreadsheet formula prefixes.
- Zero runtime dependencies; MIT license.
npm: https://www.npmjs.com/package/dsh-d1 (signed provenance from GitHub Actions)