@stewardhq/cli 0.15.0 → 0.16.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/README.md +3 -1
- package/dist/bin.js +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -151,6 +151,8 @@ Release: bump the version in `cli/package.json` and push the `cli-v<version>` ta
|
|
|
151
151
|
be published on npm. The notes of 0.4.0 to 0.10.0 are in
|
|
152
152
|
[this file at `cli-v0.10.0`](https://github.com/z9cloud/steward/blob/cli-v0.10.0/cli/README.md#versions).
|
|
153
153
|
|
|
154
|
+
- **0.16.0** (`@stewardhq/sdk` 0.16): `steward catalog push` shows a change of a credit's rollover carries (`rollover carries 1 → 2`,
|
|
155
|
+
the SDK's `meterCredit(…, { rollover: { capUnits, carries } })`). Needs steward 0.16.0 for the catalog to keep it.
|
|
154
156
|
- **0.15.0** (`@stewardhq/sdk` 0.15): `steward discounts create|update --benefit <code>` (repeatable; `--benefit none` clears on
|
|
155
157
|
update): catalog benefits granted while a subscription runs with the discount; `list` shows them. Needs steward
|
|
156
158
|
0.15.0.
|
|
@@ -178,7 +180,7 @@ be published on npm. The notes of 0.4.0 to 0.10.0 are in
|
|
|
178
180
|
the provider's webhook, automatic renewal and the legal settings.
|
|
179
181
|
|
|
180
182
|
When packed, the `@stewardhq/sdk` dependency turns from `workspace:^` into the range of the
|
|
181
|
-
SDK version current at that time (0.
|
|
183
|
+
SDK version current at that time (0.16.0 → `^0.16.0`).
|
|
182
184
|
|
|
183
185
|
## License
|
|
184
186
|
|
package/dist/bin.js
CHANGED
|
@@ -175,6 +175,8 @@ function describeCreditChange({ code, from, to }) {
|
|
|
175
175
|
const cap = (units) => units === null ? "no rollover" : `rollover cap ${unitsText(units)}`;
|
|
176
176
|
parts.push(`${cap(from.rolloverCapUnits)} → ${cap(to.rolloverCapUnits)}`);
|
|
177
177
|
}
|
|
178
|
+
const carries = (terms) => terms.rolloverCarries ?? (terms.rolloverCapUnits === null ? null : 1);
|
|
179
|
+
if (from.rolloverCapUnits !== null && to.rolloverCapUnits !== null && carries(from) !== carries(to)) parts.push(`rollover carries ${carries(from)} → ${carries(to)}`);
|
|
178
180
|
return `${code} (${to.meter}): ${parts.join(", ")}`;
|
|
179
181
|
}
|
|
180
182
|
const list$1 = (items) => items.join(", ");
|
|
@@ -3676,7 +3678,7 @@ function help(out) {
|
|
|
3676
3678
|
return 0;
|
|
3677
3679
|
}
|
|
3678
3680
|
// src/main.ts
|
|
3679
|
-
const CLI_VERSION = "0.
|
|
3681
|
+
const CLI_VERSION = "0.16.0";
|
|
3680
3682
|
const USAGE = `steward — Steward CLI (@stewardhq/cli ${CLI_VERSION})
|
|
3681
3683
|
|
|
3682
3684
|
Usage: steward <command> [options]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stewardhq/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Steward CLI: doctor, catalog push, settings and webhook endpoint management.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/z9cloud/steward/tree/main/cli#readme",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"registry": "https://registry.npmjs.org"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@stewardhq/sdk": "^0.
|
|
31
|
+
"@stewardhq/sdk": "^0.16.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^26.6.6",
|