@hermenics/deepseek-code 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,8 +53,16 @@ For automation, use headless pipe mode:
53
53
  ```bash
54
54
  echo "explain this project" | deepseek --pipe
55
55
  cat src/index.tsx | deepseek --pipe --json "summarize"
56
+ echo "summarize this project" | deepseek --pipe --jsonl
57
+ cat src/index.tsx | deepseek --pipe --jsonl --output-schema ./summary.schema.json
56
58
  ```
57
59
 
60
+ `--json` preserves the legacy one-shot JSON protocol: stdout receives only `{ "ok": true, "output": "...", "tools": [...] }` on success or `{ "ok": false, "error": "..." }` on failure. `--json` and `--jsonl` cannot be used together.
61
+
62
+ `--jsonl` emits JSON Lines v1: one JSON object per line, each with `version: 1` and a `type`. A successful run emits `start`, zero or more streamed `token` events (`text`) and `tool_call` events (`name`), then `done` (`ok`, `output`, `tools`, and `usage`). An `error` event has `ok: false`, `error`, `partialOutput`, and `usage`; it also has `issues` when `--output-schema` rejects the final output. `usage` contains nullable `tokens` and `costUsd`, their `tokenStatus` and `costStatus` (`measured`, `partial`, or `unavailable`), and `costEstimated`. Each validation issue contains `instancePath` and `keyword`. Argument or schema preflight failures can emit `error` before `start`.
63
+
64
+ `--output-schema <path>` accepts one local JSON Schema file (up to 1,000,000 bytes). The complete schema JSON, including annotations, must serialize to no more than 32 KiB; larger schemas are rejected rather than truncated. `$ref` references must be local, and remote references are not resolved; `$dynamicRef` and `$recursiveRef` are rejected. Schema annotation keywords such as `title`, `description`, `examples`, and `$comment` are omitted from the model-facing schema. The prompt requires exactly one JSON value, with no prose, Markdown, or code fences; Ajv's configured draft-07 validator checks the final response locally and rejects unsupported keywords or unregistered formats during preflight. Failures use the selected output format and exit with status 1. In text mode, output is streamed before final validation and a validation error is reported on stderr; in JSONL, a failed final-output check includes `issues` (up to 20 entries, with `instancePath` and `keyword`).
65
+
58
66
  ### DeepSeek Pods on your own server
59
67
 
60
68
  Pods can keep running after your desktop disconnects by installing the supervisor on a Linux server you control. Create a Debian 12+ or Ubuntu 24.04+ VM with your cloud provider, make sure SSH access works, then run: