@reminix/cli 1.0.0-rc.11 → 1.0.0-rc.12
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 +19 -0
- package/dist/reminix.mjs +46 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in the Reminix CLI (`@reminix/cli`). Generated from the source on each release; newest first.
|
|
4
4
|
|
|
5
|
+
## 1.0.0-rc.12 (2026-11-14)
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- The workspace's audit log (`GET /v1/workspace/audit-events`) records
|
|
10
|
+
`billing.cancellation_undone` when a plan set to cancel is kept after all.
|
|
11
|
+
- The workspace's audit log (`GET /v1/workspace/audit-events`) records more
|
|
12
|
+
events. It now includes the workspace's creation and deletion, a declined
|
|
13
|
+
invitation, and plan changes: `workspace.created`, `workspace.deleted`,
|
|
14
|
+
`workspace.invitation_rejected` and `billing.subscribed`,
|
|
15
|
+
`billing.plan_changed`, `billing.cancellation_scheduled` and
|
|
16
|
+
`billing.subscription_ended`.
|
|
17
|
+
- `GET /v1/workspace/usage` now says where each count stands. Each count
|
|
18
|
+
gains `label`, `state` and `stopsAt`, and `unit` when the plan names
|
|
19
|
+
one. The response gains a `state` for the whole workspace.
|
|
20
|
+
`client.workspace.usage.get()` and the Python client return them. The
|
|
21
|
+
CLI's `workspace usage` prints each count as a sentence that says where
|
|
22
|
+
it stands. Use `--json` for the response as it is.
|
|
23
|
+
|
|
5
24
|
## 1.0.0-rc.11 (2026-11-13)
|
|
6
25
|
|
|
7
26
|
### Changed
|
package/dist/reminix.mjs
CHANGED
|
@@ -1034,8 +1034,12 @@ function resources(client) {
|
|
|
1034
1034
|
)
|
|
1035
1035
|
},
|
|
1036
1036
|
triggers: {
|
|
1037
|
+
calls: (
|
|
1038
|
+
/** List a webhook trigger's calls */
|
|
1039
|
+
(slug, triggerId, options) => call(client, { "method": "get", "path": "/scripts/{slug}/triggers/{triggerId}/calls", "query": [], "hasBody": false }, { "slug": slug, "triggerId": triggerId }, void 0, options)
|
|
1040
|
+
),
|
|
1037
1041
|
create: (
|
|
1038
|
-
/** Run a script
|
|
1042
|
+
/** Run a script when something happens */
|
|
1039
1043
|
(slug, input, options) => call(client, { "method": "post", "path": "/scripts/{slug}/triggers", "query": [], "hasBody": true }, { "slug": slug }, input, options)
|
|
1040
1044
|
),
|
|
1041
1045
|
delete: (
|
|
@@ -1046,6 +1050,10 @@ function resources(client) {
|
|
|
1046
1050
|
/** List a script's triggers */
|
|
1047
1051
|
(slug, options) => call(client, { "method": "get", "path": "/scripts/{slug}/triggers", "query": [], "hasBody": false }, { "slug": slug }, void 0, options)
|
|
1048
1052
|
),
|
|
1053
|
+
rotateSecret: (
|
|
1054
|
+
/** Rotate a webhook trigger's secret */
|
|
1055
|
+
(slug, triggerId, options) => call(client, { "method": "post", "path": "/scripts/{slug}/triggers/{triggerId}/rotate-secret", "query": [], "hasBody": false }, { "slug": slug, "triggerId": triggerId }, void 0, options)
|
|
1056
|
+
),
|
|
1049
1057
|
update: (
|
|
1050
1058
|
/** Change a trigger */
|
|
1051
1059
|
(slug, triggerId, input, options) => call(client, { "method": "patch", "path": "/scripts/{slug}/triggers/{triggerId}", "query": [], "hasBody": true }, { "slug": slug, "triggerId": triggerId }, input, options)
|
|
@@ -5054,6 +5062,39 @@ var approvals = (program3, ctx) => {
|
|
|
5054
5062
|
);
|
|
5055
5063
|
};
|
|
5056
5064
|
|
|
5065
|
+
// src/usage.ts
|
|
5066
|
+
var usage = (program3, ctx) => {
|
|
5067
|
+
const workspace2 = program3.commands.find((c) => c.name() === "workspace") ?? program3.command("workspace");
|
|
5068
|
+
workspace2.command("usage").description("Show your plan's usage this period").option("--workspace <slug>", "act in this workspace for one call").option("--json", "machine-readable output").action(async (options) => {
|
|
5069
|
+
const result = unwrap(
|
|
5070
|
+
await ctx.client({ workspace: options.workspace }).GET("/workspace/usage")
|
|
5071
|
+
);
|
|
5072
|
+
if (options.json) {
|
|
5073
|
+
ctx.io.stdout(json(result));
|
|
5074
|
+
return;
|
|
5075
|
+
}
|
|
5076
|
+
for (const line of usageLines(result)) ctx.io.stdout(line);
|
|
5077
|
+
});
|
|
5078
|
+
};
|
|
5079
|
+
var number = (n) => n.toLocaleString("en-US");
|
|
5080
|
+
function usageLines(usage2) {
|
|
5081
|
+
const resets = new Date(usage2.periodEnd).toLocaleDateString("en-US", {
|
|
5082
|
+
month: "short",
|
|
5083
|
+
day: "numeric",
|
|
5084
|
+
year: "numeric",
|
|
5085
|
+
timeZone: "UTC"
|
|
5086
|
+
});
|
|
5087
|
+
const lines = [`Usage this period. Counters reset on ${resets}.`];
|
|
5088
|
+
if (usage2.counts.length === 0) lines.push("Your plan counts nothing.");
|
|
5089
|
+
for (const count of usage2.counts) {
|
|
5090
|
+
const figures = count.limit === null ? `${number(count.used)} (no limit)` : `${number(count.used)} of ${number(count.limit)}`;
|
|
5091
|
+
const state = count.state === "grace" ? count.stopsAt === null ? " Over your plan." : ` Over your plan. Past ${number(count.stopsAt)}, ${brand.productName} refuses new use.` : count.state === "stopped" ? ` ${brand.productName} refuses new use until ${resets}.` : count.state === "over" ? " Over your plan." : count.limit === 0 ? " Not in your plan." : "";
|
|
5092
|
+
lines.push(`${count.label}: ${figures}.${state}`);
|
|
5093
|
+
}
|
|
5094
|
+
for (const notice of usage2.notices ?? []) lines.push(notice);
|
|
5095
|
+
return lines;
|
|
5096
|
+
}
|
|
5097
|
+
|
|
5057
5098
|
// src/commands.ts
|
|
5058
5099
|
async function me(ctx) {
|
|
5059
5100
|
return unwrap(await ctx.client({ workspace: false }).GET("/user/me"));
|
|
@@ -5277,7 +5318,8 @@ var platformCommands = [
|
|
|
5277
5318
|
environment,
|
|
5278
5319
|
api,
|
|
5279
5320
|
config,
|
|
5280
|
-
approvals
|
|
5321
|
+
approvals,
|
|
5322
|
+
usage
|
|
5281
5323
|
];
|
|
5282
5324
|
|
|
5283
5325
|
// src/generated.ts
|
|
@@ -8651,7 +8693,7 @@ var OPERATIONS = [
|
|
|
8651
8693
|
"idempotentHint": true
|
|
8652
8694
|
}
|
|
8653
8695
|
},
|
|
8654
|
-
"description": "Returns what the workspace used this period, with one entry for each thing its plan counts. Each entry has the plan's limit, or null when there is no limit. A period is one month from the workspace's billing date. That date comes from its subscription or, without one, from the day you created the workspace. On an annual plan, the counts still reset every month from the subscription's start.",
|
|
8696
|
+
"description": "Returns what the workspace used this period, with one entry for each thing its plan counts. Each entry has the plan's limit, or null when there is no limit. Each entry also says where it stands and where we start refusing new use. A period is one month from the workspace's billing date. That date comes from its subscription or, without one, from the day you created the workspace. On an annual plan, the counts still reset every month from the subscription's start.",
|
|
8655
8697
|
"fields": [],
|
|
8656
8698
|
"hasBody": false,
|
|
8657
8699
|
"workspace": true,
|
|
@@ -11098,7 +11140,7 @@ function tokenEnvVar() {
|
|
|
11098
11140
|
function build(io) {
|
|
11099
11141
|
let actedIn = null;
|
|
11100
11142
|
let sending;
|
|
11101
|
-
const program3 = new Command().name(brand.name).description(`The ${brand.productName} CLI`).version("1.0.0-rc.
|
|
11143
|
+
const program3 = new Command().name(brand.name).description(`The ${brand.productName} CLI`).version("1.0.0-rc.12").addHelpText(
|
|
11102
11144
|
"after",
|
|
11103
11145
|
`
|
|
11104
11146
|
Token: \`${brand.name} login\` stores it in ~/.config/${brand.name}/; ${tokenEnvVar()} overrides.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reminix/cli",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.12",
|
|
4
4
|
"description": "Reminix command line",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"scripts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@reminix/sdk": "1.0.0-rc.
|
|
29
|
+
"@reminix/sdk": "1.0.0-rc.11",
|
|
30
30
|
"@types/node": "26.6.6",
|
|
31
31
|
"commander": "15.1.0",
|
|
32
32
|
"smol-toml": "1.9.1",
|