@wirecat/cli-base 0.102.0 → 0.103.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/CHANGELOG.md CHANGED
@@ -8,6 +8,29 @@ 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.103.0 — 15.11.2026
12
+
13
+ ### Added
14
+
15
+ - **The command vocabulary has the nouns `activities` and `changes`** (collections): a CRM's calls, e-mails,
16
+ meetings, to-dos and comments on its records, and what changed in a copied source over a time: records added, moved,
17
+ closed or reassigned. cli-core's shared CRM commands `activities list` and `changes list` use them; without the
18
+ words, every CLI that mounts them (bitrix24-cli `b24`, amoCRM `amo`, memo) fails `cli-dev lint`.
19
+ - **The flag vocabulary has `--email <address>` and `--phone <phone>`** (role `value`, string, each repeated for
20
+ more): an e-mail address and a phone number, in international form starting with `+`, to give a person or an
21
+ organization. CRM CLIs offer them on `people create|update` and `organizations create|update`; without the words,
22
+ such a command fails its `option-role` lint. To watch for: a command that declares either with another placeholder,
23
+ such as `--phone <number>`, fails `flag-two-meanings`; rename it to the vocabulary's.
24
+
25
+ ## 0.102.1 — 15.11.2026
26
+
27
+ ### Fixed
28
+
29
+ - **`projectFields` keeps each object's `untrusted` list.** `--json id,title` dropped it, so a CLI that projects an
30
+ answer before cli-core's `renderAnswer` (zoom-cli does) printed other people's text unmarked in a scheduled agent's
31
+ run, and a JSON caller lost the list of fields that came from outside. The list is kept whole, also when some of
32
+ the fields it names were not selected.
33
+
11
34
  ## 0.102.0 — 14.11.2026
12
35
 
13
36
  ### 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) => {
@@ -1,4 +1,18 @@
1
1
  export const CRM_FLAGS = [
2
+ {
3
+ name: "--email",
4
+ value: "<address>",
5
+ role: "value",
6
+ type: "string",
7
+ meaning: "an e-mail address to give it; repeat it for more",
8
+ },
9
+ {
10
+ name: "--phone",
11
+ value: "<phone>",
12
+ role: "value",
13
+ type: "string",
14
+ meaning: "a phone number to give it, in international form starting with +; repeat it for more",
15
+ },
2
16
  {
3
17
  name: "--pipeline",
4
18
  value: "<pipeline>",
@@ -286,6 +286,8 @@ const collections = [
286
286
  ["splits", "parts of one transaction, each with its own amount and category"],
287
287
  ["users", "people who work in the owner's account at a service, such as a CRM's employees"],
288
288
  ["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
289
+ ["activities", "a CRM's calls, e-mails, meetings, to-dos and comments on its records"],
290
+ ["changes", "what changed in a copied source over a time: records added, moved, closed or reassigned"],
289
291
  [
290
292
  "identities",
291
293
  "ways to reach a person or an organization: an account in one messenger or mailbox, an e-mail address, a phone",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-base",
3
- "version": "0.102.0",
3
+ "version": "0.103.0",
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",