@koda-sl/baker-cli 0.343.0 → 0.344.0-dev.1f4f1c4b7
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
|
@@ -118,12 +118,14 @@ Use `--output` to change format:
|
|
|
118
118
|
|
|
119
119
|
| Format | Description | Best for | Available on |
|
|
120
120
|
|---------|------------------------------------|--------------------|--------------|
|
|
121
|
-
| `json` | Structured JSON envelope (default) | AI agents | every command |
|
|
122
|
-
| `files` | Tab-separated, one row per result | Piping / shell |
|
|
123
|
-
| `md` | Markdown table | Human reading |
|
|
121
|
+
| `json` | Structured JSON envelope (default) | AI agents | every command that prints the envelope |
|
|
122
|
+
| `files` | Tab-separated, one row per result | Piping / shell | commands whose `baker schema` lists `output` |
|
|
123
|
+
| `md` | Markdown table | Human reading | commands whose `baker schema` lists `output` |
|
|
124
124
|
| `csv` | RFC 4180 comma-separated values | Analysis tools | `baker research …` only |
|
|
125
125
|
| `jsonl` | One JSON object per line | Streaming/appending | `baker research …` only |
|
|
126
126
|
|
|
127
|
+
`--output json` is accepted even by a command that declares no `--output`: the envelope is already what it prints, and on a command whose default is a readable view (`baker tags list`, the `draft` commands) it becomes that command's `--json`. The few commands that print only text — `baker analytics sending-events`, `baker canvas run` and `rerun` — refuse it, as a command without its own `--output` refuses `md` and `files`.
|
|
128
|
+
|
|
127
129
|
`csv` and `jsonl` are implemented by the research family alone. Asking any other command for them — or for a format that does not exist — falls back to the JSON envelope and says so on stderr, rather than printing nothing and exiting 0.
|
|
128
130
|
|
|
129
131
|
`files` and `md` print rows and nothing else, so any `hints` or data-quality note the envelope carries is written to **stderr** instead. Reading stdout alone still gives you clean, parseable rows.
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
shouldEscalate
|
|
20
20
|
} from "./chunk-4VP5WWPR.js";
|
|
21
21
|
|
|
22
|
-
//
|
|
22
|
+
// ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/index.js
|
|
23
23
|
var require_safe_stable_stringify = __commonJS({
|
|
24
|
-
"
|
|
24
|
+
"../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/index.js"(exports, module) {
|
|
25
25
|
"use strict";
|
|
26
26
|
var { hasOwnProperty } = Object.prototype;
|
|
27
27
|
var stringify = configure2();
|
|
@@ -1113,7 +1113,7 @@ function resolveAdaptFormats(params) {
|
|
|
1113
1113
|
return params.formats ?? [];
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
|
-
//
|
|
1116
|
+
// ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/esm/wrapper.js
|
|
1117
1117
|
var import__ = __toESM(require_safe_stable_stringify(), 1);
|
|
1118
1118
|
var configure = import__.default.configure;
|
|
1119
1119
|
var wrapper_default = import__.default;
|
|
@@ -9804,4 +9804,4 @@ export {
|
|
|
9804
9804
|
defaultRegistry,
|
|
9805
9805
|
createEngineFromEnv
|
|
9806
9806
|
};
|
|
9807
|
-
//# sourceMappingURL=chunk-
|
|
9807
|
+
//# sourceMappingURL=chunk-D5P4COPD.js.map
|