@wafflebase/cli 0.6.5 → 0.6.6

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.
Files changed (3) hide show
  1. package/README.md +9 -5
  2. package/dist/bin.js +20119 -19385
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -139,7 +139,9 @@ wafflebase schema cell.get # → sheets.cells.get
139
139
  - **Binary results** (pdf/docx): positional `<file>`; `-` writes to stdout.
140
140
  `--force` is required to overwrite an existing target.
141
141
  - **Errors**: a single JSON line on stderr —
142
- `{"error":{"code":"…","message":"…"}}`. Typed errors (e.g.,
142
+ `{"error":{"code":"…","message":"…","command":"docs.content"}}`. `command`
143
+ is the dotted command name (the same string `schema` indexes on), so a
144
+ caller running several commands can tell which one failed. Typed errors (e.g.,
143
145
  `INVALID_DOCX`, `TYPE_MISMATCH`, `CONFIRMATION_REQ`) carry a
144
146
  command-specific `code` agents can branch on; argument-parsing
145
147
  failures (missing argument, unknown option, unknown command) report
@@ -158,10 +160,12 @@ wafflebase schema cell.get # → sheets.cells.get
158
160
  because it is upstream-controlled content going straight into an
159
161
  agent's stderr: `code` is truncated at 80 characters, `message` at 500
160
162
  (with a trailing `…`), a `message` that is an HTML document is replaced
161
- by `"HTTP <status>"`, and any extra fields the backend attached
162
- (`command`, a request id) are dropped once the whole body exceeds
163
- 4,000 bytes, leaving `{code, message}`. Treat `message` as a display string,
164
- not a parseable payload.
163
+ by `"HTTP <status>"`, and any extra field the backend attached (a
164
+ request id) is dropped once the whole body exceeds 4,000 bytes, leaving
165
+ `{code, message}`. Treat `message` as a display string, not a parseable
166
+ payload. `command` is the one field never forwarded: attribution is the
167
+ CLI's statement about which command *it* ran, so a server cannot
168
+ relabel which call failed.
165
169
  - **Exit codes**: `0` success, `1` user error (bad input, 404, type
166
170
  mismatch), `2` system error — an unreachable server
167
171
  (`NETWORK_ERROR`), rejected credentials (`AUTH_ERROR`, HTTP 401/403),