@reminix/cli 1.0.0-rc.11 → 1.0.0-rc.13

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
@@ -2,6 +2,29 @@
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.13 (2026-11-18)
6
+
7
+ No user-facing changes.
8
+
9
+ ## 1.0.0-rc.12 (2026-11-14)
10
+
11
+ ### Added
12
+
13
+ - The workspace's audit log (`GET /v1/workspace/audit-events`) records
14
+ `billing.cancellation_undone` when a plan set to cancel is kept after all.
15
+ - The workspace's audit log (`GET /v1/workspace/audit-events`) records more
16
+ events. It now includes the workspace's creation and deletion, a declined
17
+ invitation, and plan changes: `workspace.created`, `workspace.deleted`,
18
+ `workspace.invitation_rejected` and `billing.subscribed`,
19
+ `billing.plan_changed`, `billing.cancellation_scheduled` and
20
+ `billing.subscription_ended`.
21
+ - `GET /v1/workspace/usage` now says where each count stands. Each count
22
+ gains `label`, `state` and `stopsAt`, and `unit` when the plan names
23
+ one. The response gains a `state` for the whole workspace.
24
+ `client.workspace.usage.get()` and the Python client return them. The
25
+ CLI's `workspace usage` prints each count as a sentence that says where
26
+ it stands. Use `--json` for the response as it is.
27
+
5
28
  ## 1.0.0-rc.11 (2026-11-13)
6
29
 
7
30
  ### Changed
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  The Reminix CLI turns a script in a folder into a Reminix script, publishes it for your team and runs it, from a terminal, CI or another script.
4
4
 
5
+ [![A script published with reminix publish becomes a tool: Jordan asks Claude for a refund, Sam approves it in Reminix, and the refund goes out.](https://media.reminix.com/launch/readme-20261117-1555.gif)](https://reminix.com/#demo)
6
+
7
+ [▶ Watch the 1-minute demo](https://reminix.com/#demo)
8
+
5
9
  Reminix turns your scripts into internal tools. Upload a Python, shell or Node script, and Reminix runs it from a form, the API, the CLI or your AI agents, on a schedule or from a webhook. Keys stay out of the code, and every run is on record.
6
10
 
7
11
  ## Install
package/dist/reminix.mjs CHANGED
@@ -21,6 +21,7 @@ var brand_default = {
21
21
  domain: "reminix.com",
22
22
  devDomain: "reminix.dev",
23
23
  labs: ["lab"],
24
+ statusPage: true,
24
25
  discordInvite: "https://discord.gg/UU9NbEcNQj",
25
26
  profiles: { x: "reminixhq", github: "reminixhq" },
26
27
  summary: "Reminix turns your scripts into internal tools. Upload a Python, shell or Node script, and Reminix runs it from a form, the API, the CLI or your AI agents, on a schedule or from a webhook. Keys stay out of the code, and every run is on record.",
@@ -143,8 +144,10 @@ var brand = {
143
144
  summary: optional.summary ?? `${brand_default.productName} documentation and API.`,
144
145
  /** Where vulnerability reports go — /.well-known/security.txt and /security publish it. Defaults to security@<domain>. */
145
146
  securityContact: optional.securityContact ?? `security@${brand_default.domain}`,
146
- /** The support address the /contact page shows. Defaults to support@<domain>. */
147
+ /** Where the Contact form's help topics go (Question, Bug, Billing). Never shown on a page. Defaults to support@<domain>. */
147
148
  supportContact: optional.supportContact ?? `support@${brand_default.domain}`,
149
+ /** Where the Contact form's other topics go (Sales and enterprise, Something else; owner, 2026-11-15). Never shown on a page. Defaults to contact@<domain>. */
150
+ contactContact: optional.contactContact ?? `contact@${brand_default.domain}`,
148
151
  /**
149
152
  * Where operational alerts go (dead letters, failed crons, unhandled
150
153
  * API errors, failed uptime probes — the worker's `sendOpsAlert`).
@@ -160,6 +163,10 @@ var brand = {
160
163
  * (docs/deployment.md "Resetting product data"). False when absent.
161
164
  */
162
165
  launched: optional.launched === true,
166
+ /** The launch date (brand.json `launchedAt`, YYYY-MM-DD): the public changelog starts here. */
167
+ launchedAt: optional.launchedAt ?? null,
168
+ /** The public status page's address, once brand.json `statusPage` says it is live; else null. */
169
+ statusPageUrl: optional.statusPage === true ? `https://status.${brand_default.domain}` : null,
163
170
  /** True once the product has its own brand (brand.json `status: "ready"`), not the platform's placeholders. */
164
171
  ready: brand_default.status === "ready"
165
172
  };
@@ -1034,8 +1041,12 @@ function resources(client) {
1034
1041
  )
1035
1042
  },
1036
1043
  triggers: {
1044
+ calls: (
1045
+ /** List a webhook trigger's calls */
1046
+ (slug, triggerId, options) => call(client, { "method": "get", "path": "/scripts/{slug}/triggers/{triggerId}/calls", "query": [], "hasBody": false }, { "slug": slug, "triggerId": triggerId }, void 0, options)
1047
+ ),
1037
1048
  create: (
1038
- /** Run a script on an event */
1049
+ /** Run a script when something happens */
1039
1050
  (slug, input, options) => call(client, { "method": "post", "path": "/scripts/{slug}/triggers", "query": [], "hasBody": true }, { "slug": slug }, input, options)
1040
1051
  ),
1041
1052
  delete: (
@@ -1046,6 +1057,10 @@ function resources(client) {
1046
1057
  /** List a script's triggers */
1047
1058
  (slug, options) => call(client, { "method": "get", "path": "/scripts/{slug}/triggers", "query": [], "hasBody": false }, { "slug": slug }, void 0, options)
1048
1059
  ),
1060
+ rotateSecret: (
1061
+ /** Rotate a webhook trigger's secret */
1062
+ (slug, triggerId, options) => call(client, { "method": "post", "path": "/scripts/{slug}/triggers/{triggerId}/rotate-secret", "query": [], "hasBody": false }, { "slug": slug, "triggerId": triggerId }, void 0, options)
1063
+ ),
1049
1064
  update: (
1050
1065
  /** Change a trigger */
1051
1066
  (slug, triggerId, input, options) => call(client, { "method": "patch", "path": "/scripts/{slug}/triggers/{triggerId}", "query": [], "hasBody": true }, { "slug": slug, "triggerId": triggerId }, input, options)
@@ -5054,6 +5069,39 @@ var approvals = (program3, ctx) => {
5054
5069
  );
5055
5070
  };
5056
5071
 
5072
+ // src/usage.ts
5073
+ var usage = (program3, ctx) => {
5074
+ const workspace2 = program3.commands.find((c) => c.name() === "workspace") ?? program3.command("workspace");
5075
+ 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) => {
5076
+ const result = unwrap(
5077
+ await ctx.client({ workspace: options.workspace }).GET("/workspace/usage")
5078
+ );
5079
+ if (options.json) {
5080
+ ctx.io.stdout(json(result));
5081
+ return;
5082
+ }
5083
+ for (const line of usageLines(result)) ctx.io.stdout(line);
5084
+ });
5085
+ };
5086
+ var number = (n) => n.toLocaleString("en-US");
5087
+ function usageLines(usage2) {
5088
+ const resets = new Date(usage2.periodEnd).toLocaleDateString("en-US", {
5089
+ month: "short",
5090
+ day: "numeric",
5091
+ year: "numeric",
5092
+ timeZone: "UTC"
5093
+ });
5094
+ const lines = [`Usage this period. Counters reset on ${resets}.`];
5095
+ if (usage2.counts.length === 0) lines.push("Your plan counts nothing.");
5096
+ for (const count of usage2.counts) {
5097
+ const figures = count.limit === null ? `${number(count.used)} (no limit)` : `${number(count.used)} of ${number(count.limit)}`;
5098
+ 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." : "";
5099
+ lines.push(`${count.label}: ${figures}.${state}`);
5100
+ }
5101
+ for (const notice of usage2.notices ?? []) lines.push(notice);
5102
+ return lines;
5103
+ }
5104
+
5057
5105
  // src/commands.ts
5058
5106
  async function me(ctx) {
5059
5107
  return unwrap(await ctx.client({ workspace: false }).GET("/user/me"));
@@ -5277,7 +5325,8 @@ var platformCommands = [
5277
5325
  environment,
5278
5326
  api,
5279
5327
  config,
5280
- approvals
5328
+ approvals,
5329
+ usage
5281
5330
  ];
5282
5331
 
5283
5332
  // src/generated.ts
@@ -8651,7 +8700,7 @@ var OPERATIONS = [
8651
8700
  "idempotentHint": true
8652
8701
  }
8653
8702
  },
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.",
8703
+ "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
8704
  "fields": [],
8656
8705
  "hasBody": false,
8657
8706
  "workspace": true,
@@ -11098,7 +11147,7 @@ function tokenEnvVar() {
11098
11147
  function build(io) {
11099
11148
  let actedIn = null;
11100
11149
  let sending;
11101
- const program3 = new Command().name(brand.name).description(`The ${brand.productName} CLI`).version("1.0.0-rc.11").addHelpText(
11150
+ const program3 = new Command().name(brand.name).description(`The ${brand.productName} CLI`).version("1.0.0-rc.13").addHelpText(
11102
11151
  "after",
11103
11152
  `
11104
11153
  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.11",
3
+ "version": "1.0.0-rc.13",
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.9",
29
+ "@reminix/sdk": "1.0.0-rc.12",
30
30
  "@types/node": "26.6.6",
31
31
  "commander": "15.1.0",
32
32
  "smol-toml": "1.9.1",