@wafflebase/cli 0.6.5 → 0.6.7
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 +9 -5
- package/dist/bin.js +21695 -20747
- 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":"…"}}`.
|
|
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
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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),
|