@wirecat/cli-base 0.102.0 → 0.102.1

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/CHANGELOG.md CHANGED
@@ -8,6 +8,15 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b
8
8
  Every entry says what changed as a caller sees it, why, and what to watch for — the rules are
9
9
  [`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog).
10
10
 
11
+ ## 0.102.1 — 15.11.2026
12
+
13
+ ### Fixed
14
+
15
+ - **`projectFields` keeps each object's `untrusted` list.** `--json id,title` dropped it, so a CLI that projects an
16
+ answer before cli-core's `renderAnswer` (zoom-cli does) printed other people's text unmarked in a scheduled agent's
17
+ run, and a JSON caller lost the list of fields that came from outside. The list is kept whole, also when some of
18
+ the fields it names were not selected.
19
+
11
20
  ## 0.102.0 — 14.11.2026
12
21
 
13
22
  ### Added
@@ -14,7 +14,8 @@ export const fieldsOf = (value) => {
14
14
  return [...new Set(paths)];
15
15
  };
16
16
  const object = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
17
- const retained = new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
17
+ // `untrusted` stays so a selected field from other people is still marked when the answer is rendered (WC-SECR-11).
18
+ const retained = new Set(["operation_id", "page", "next", "missing", "meta", "coverage", "untrusted"]);
18
19
  const itemPaths = (paths) => paths.map((path) => (path.startsWith("items.") ? path.slice(6) : path));
19
20
  const onePaths = (paths) => paths.map((path) => (path.startsWith("item.") ? path.slice(5) : path));
20
21
  const select = (value, paths) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-base",
3
- "version": "0.102.0",
3
+ "version": "0.102.1",
4
4
  "description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",