@wirecat/cli-base 0.80.1 → 0.80.2

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.80.2 — 06.11.2026
12
+
13
+ ### Added
14
+
15
+ - **CRM flags in the vocabulary** (role `value`): `--pipeline <pipeline>`, `--stage <stage>`, `--amount <decimal>`,
16
+ `--currency <code>`, `--close-date <date>` and `--owner <user>`. cli-core's shared `deals` and `leads` write commands
17
+ (`create`, `update`) take them, so a CRM CLI that mounts them needs no lint override. `--owner` is the CRM user a
18
+ record is assigned to, not `--assignee`, which names people by their stored UID.
19
+
11
20
  ## 0.80.1 — 06.11.2026
12
21
 
13
22
  ### Added
@@ -0,0 +1,2 @@
1
+ import type { VocabularyFlag } from "./vocabulary.js";
2
+ export declare const CRM_FLAGS: VocabularyFlag[];
@@ -0,0 +1,38 @@
1
+ export const CRM_FLAGS = [
2
+ {
3
+ name: "--pipeline",
4
+ value: "<pipeline>",
5
+ role: "value",
6
+ type: "string",
7
+ meaning: "a CRM pipeline: pipeline:<id>, or a name only one pipeline has",
8
+ },
9
+ {
10
+ name: "--stage",
11
+ value: "<stage>",
12
+ role: "value",
13
+ type: "string",
14
+ meaning: "a stage of the record's pipeline, by the CRM's id or its name",
15
+ },
16
+ {
17
+ name: "--amount",
18
+ value: "<decimal>",
19
+ role: "value",
20
+ type: "string",
21
+ meaning: "a sum of money as a decimal, such as 1500.50, in --currency",
22
+ },
23
+ { name: "--currency", value: "<code>", role: "value", type: "string", meaning: "an ISO 4217 code, such as EUR" },
24
+ {
25
+ name: "--close-date",
26
+ value: "<date>",
27
+ role: "value",
28
+ type: "time",
29
+ meaning: "the day a deal or lead is expected to close, YYYY-MM-DD",
30
+ },
31
+ {
32
+ name: "--owner",
33
+ value: "<user>",
34
+ role: "value",
35
+ type: "id",
36
+ meaning: "the CRM user a record is assigned to, by the CRM's id",
37
+ },
38
+ ];
@@ -1,5 +1,6 @@
1
1
  import * as v from "valibot";
2
2
  import { CALENDAR_FLAGS } from "./flags-calendar.js";
3
+ import { CRM_FLAGS } from "./flags-crm.js";
3
4
  import { HOW_FLAGS } from "./flags-how.js";
4
5
  import { MAIL_FLAGS } from "./flags-mail.js";
5
6
  import { PRIVACY_FLAGS } from "./flags-privacy.js";
@@ -395,5 +396,5 @@ export const VOCABULARY = defineVocabulary({
395
396
  ],
396
397
  views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
397
398
  roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
398
- flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...PRIVACY_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS],
399
+ flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...PRIVACY_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS, ...CRM_FLAGS],
399
400
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-base",
3
- "version": "0.80.1",
3
+ "version": "0.80.2",
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",