@wirecat/cli-core 0.607.0 → 0.608.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 +11 -0
- package/dist/errors/reasons.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
|
|
|
5
5
|
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
|
|
6
6
|
shape of this file.
|
|
7
7
|
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
## 0.608.0 — 08.11.2026
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Two pairs of reasons no longer share one message**, so the command audit (`same-error-reason`) passes in a CLI
|
|
15
|
+
that lists cli-core's reasons, such as b24 and beeline. `oauth.missing` says the profile is not signed in to the
|
|
16
|
+
provider and `session.missing` that it has no API token saved; `finance.line-amount` names an invoice line and
|
|
17
|
+
`order.line-amount` an order line. The reason ids and codes are unchanged.
|
|
18
|
+
|
|
8
19
|
## 0.607.0 — 08.11.2026
|
|
9
20
|
|
|
10
21
|
### Added
|
package/dist/errors/reasons.js
CHANGED
|
@@ -19,8 +19,8 @@ const SIGN_IN = [
|
|
|
19
19
|
["oauth.declined", "authentication_error", "the provider's consent was declined"],
|
|
20
20
|
["oauth.timeout", "timeout", "the sign-in was not finished in time"],
|
|
21
21
|
["oauth.mismatch", "authentication_error", "the pasted sign-in result belongs to another sign-in"],
|
|
22
|
-
["oauth.missing", "authentication_error", "this profile is not signed in"],
|
|
23
|
-
["session.missing", "authentication_error", "this profile
|
|
22
|
+
["oauth.missing", "authentication_error", "this profile is not signed in to the provider"],
|
|
23
|
+
["session.missing", "authentication_error", "this profile has no API token saved"],
|
|
24
24
|
["oauth.locked", "provider_unavailable", "another process holds this sign-in's lock"],
|
|
25
25
|
["oauth.no-response", "outcome_unknown", "the token request did not finish"],
|
|
26
26
|
["oauth.unavailable", "provider_unavailable", "the provider's token endpoint is unavailable"],
|
|
@@ -221,7 +221,7 @@ const OTHERS = [
|
|
|
221
221
|
validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
|
|
222
222
|
validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
|
|
223
223
|
validation("finance.field", "a field of the invoice or payment is not valid"),
|
|
224
|
-
validation("finance.line-amount", "
|
|
224
|
+
validation("finance.line-amount", "an invoice line's amount is not its quantity times its unit price"),
|
|
225
225
|
validation("finance.lines", "the invoice's lines are not valid"),
|
|
226
226
|
["finance.not-allocated", "not_found", "the payment is not allocated to that invoice"],
|
|
227
227
|
validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
|
|
@@ -288,7 +288,7 @@ const OTHERS = [
|
|
|
288
288
|
validation("contract.ref", "the reference names no contract, or no deal for it"),
|
|
289
289
|
validation("order.currency", "the product is priced in another currency than the order"),
|
|
290
290
|
validation("order.line", "an order keeps at least one line: reject or cancel it instead"),
|
|
291
|
-
validation("order.line-amount", "
|
|
291
|
+
validation("order.line-amount", "an order line's amount is not its quantity times its unit price"),
|
|
292
292
|
validation("order.lines", "the order's lines are not valid"),
|
|
293
293
|
["order.no-line", "not_found", "the order has no line at that position"],
|
|
294
294
|
["order.owner-only", "permission_error", "only the owner changes a confirmed order's lines"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.608.0",
|
|
4
4
|
"description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|