@madewithremy/admin 0.1.26 → 0.1.28

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/dist/prod.js CHANGED
@@ -2236,7 +2236,7 @@ function liftFromLive(ctx, params = {}) {
2236
2236
  // src/commands/data.ts
2237
2237
  var dataSpecs = {
2238
2238
  "data lift-from-dev": {
2239
- usage: "Usage: remy-admin data lift-from-dev <appId> --confirm [--release-id <id>]\nRefusing to run without the exact appId and --confirm: this destructively replaces the live release's databases with a snapshot of dev. Wipes any rows live had \u2014 including signed-up users. Intended for first-publish / pre-launch data sync only.\n--release-id names which of your dev workspaces to lift from, and is required only when you have more than one open (a box and a laptop CLI). The ambiguity error lists the ids.",
2239
+ usage: "Usage: remy-admin data lift-from-dev <appId> --confirm [--release-id <id>]\nRefusing to run without the exact appId and --confirm: this destructively replaces the live release's databases with a snapshot of dev. Wipes any rows live had \u2014 including signed-up users. Intended for first-publish / pre-launch data sync only.\n--release-id names the dev release to lift from; without it, your dev workspace in this app.",
2240
2240
  positionals: [{ name: "appId", required: true }],
2241
2241
  flags: { confirm: { type: "boolean" }, "release-id": { type: "string" } },
2242
2242
  requireAnyOf: {
@@ -2245,7 +2245,7 @@ var dataSpecs = {
2245
2245
  }
2246
2246
  },
2247
2247
  "data lift-from-live": {
2248
- usage: "Usage: remy-admin data lift-from-live [--truncate] --confirm [--release-id <id>]\nRefusing to run without --confirm: this destructively replaces the dev release's databases with a snapshot of live (wiping local dev data). Live/prod data is never touched. With --truncate it instead empties the dev databases (keeps schema, no data pulled from live).\n--release-id names which of your dev workspaces to overwrite, and is required only when you have more than one open.",
2248
+ usage: "Usage: remy-admin data lift-from-live [--truncate] --confirm [--release-id <id>]\nRefusing to run without --confirm: this destructively replaces the dev release's databases with a snapshot of live (wiping local dev data). Live/prod data is never touched. With --truncate it instead empties the dev databases (keeps schema, no data pulled from live).\n--release-id names the dev release to overwrite; without it, your dev workspace in this app.",
2249
2249
  flags: {
2250
2250
  truncate: { type: "boolean" },
2251
2251
  confirm: { type: "boolean" },
@@ -3084,9 +3084,11 @@ Notes:
3084
3084
  re-uploading the same file is idempotent and its URL is safe to bake into
3085
3085
  source. Pass --key for a stable, overwritable name (e.g. a config JSON the
3086
3086
  frontend fetches).
3087
- - CDN caching follows the object's Cache-Control: content-hash keys default to
3088
- immutable (cache-forever); --key'd objects default to public, max-age=300 so
3089
- an overwrite propagates within ~5 minutes. Pass --cache-control to override.
3087
+ - The CDN drops a public object when it is overwritten or deleted. Its
3088
+ Cache-Control is how long a browser may keep a copy, at most an hour:
3089
+ content-hash keys get the hour; --key'd objects default to public,
3090
+ max-age=300, so an overwrite reaches every browser within ~5 minutes. Pass
3091
+ --cache-control to override.
3090
3092
  - Public image URLs accept transform params, e.g. ?w=400&fit=cover.`;
3091
3093
 
3092
3094
  // src/commands/dataSources.ts
@@ -6481,7 +6483,7 @@ var eventsSpecs = {
6481
6483
  }
6482
6484
  },
6483
6485
  "events publish": {
6484
- usage: "Usage: remy-admin events publish <channel> <json> [--scope live]\nPublishes exactly as the app's own events.publish would \u2014 same validation, delivery, and metering.",
6486
+ usage: "Usage: remy-admin events publish <channel> <json> [--scope live]\nPublishes exactly as the app's own events.publish would \u2014 same validation, delivery, and metering. Goes to your own dev session unless --scope says otherwise; --scope live reaches real users.",
6485
6487
  positionals: [
6486
6488
  { name: "channel", required: true },
6487
6489
  { name: "json", required: true }
@@ -6568,18 +6570,21 @@ Notes:
6568
6570
  run from a script.
6569
6571
 
6570
6572
  publish lets a frontend subscriber be verified before the backend trigger
6571
- exists. The response's 'delivered' counts live subscriber connections per
6572
- published channel \u2014 0 means nobody is listening right now, which is normal,
6573
- not an error.
6573
+ exists. It goes to YOUR dev session by default (the preview you're building
6574
+ in); pass --scope live to reach real users' browsers. The response's
6575
+ 'scope' says where it went, and 'delivered' counts live subscriber
6576
+ connections per published channel \u2014 0 means nobody is listening right now,
6577
+ which is normal, not an error.
6574
6578
 
6575
6579
  channels list is the mismatch-finder: a channel with subscribers but no
6576
6580
  recent publish (or the reverse) usually means the frontend and backend spell
6577
6581
  the channel differently. Window is 24h; channels are exact strings \u2014 there
6578
6582
  are no wildcards anywhere in app events.
6579
6583
 
6580
- Scopes: events never cross execution environments. --scope defaults to
6581
- 'live'; use 'dev:<devSessionId>' to inspect a tunnel session's world or
6582
- 'preview:<releaseId>' for a branch preview.`;
6584
+ Scopes: events never cross execution environments. tail and channels list
6585
+ default to 'live', publish to your own dev session; use
6586
+ 'dev:<devSessionId>' for a dev session's world (a publish prints its own)
6587
+ or 'preview:<releaseId>' for a branch preview.`;
6583
6588
 
6584
6589
  // src/ops/jewels.ts
6585
6590
  var JEWEL_RUN_TIMEOUT_MS = 6e5;
@@ -8181,11 +8186,13 @@ Today the one kind is dedicated retrieval: the app's own vector-store capacity
8181
8186
  for data sources, isolated from the shared pool. Sizes and prices come from the
8182
8187
  platform catalog (\`infra list\` prints them); nothing is priced client-side.
8183
8188
 
8184
- A resource bills by the hour from activation, at the retained-storage rate while
8185
- hibernated, and not at all once destroyed. Provisioning (and growing) needs a
8186
- month's worth of credits available in the workspace, checked before the request
8187
- is accepted; nothing is charged until activation. The provision output prints
8188
- the price it committed to. Every action below is audited.
8189
+ A resource bills by the clock hour at the active rate for every hour it is
8190
+ active in, including the hour a resume lands in, and costs nothing while
8191
+ hibernated or once destroyed. Provisioning, growing and resuming need a month's
8192
+ worth of credits available in the workspace, checked before the request is
8193
+ accepted (insufficient_credits); nothing is charged until activation. The
8194
+ provision output prints the price it committed to. Every action below is
8195
+ audited.
8189
8196
 
8190
8197
  Subcommands:
8191
8198
  list Resources on this app, plus the offerings you can provision
@@ -8193,7 +8200,7 @@ Subcommands:
8193
8200
  logs The platform's log for a resource (--follow to keep reading)
8194
8201
  provision Lease a new resource (needs a month's credits; prints the price)
8195
8202
  hibernate Park it: data kept, searches paused, compute charge stops
8196
- resume Bring a hibernated resource back
8203
+ resume Bring a hibernated resource back (needs a month's credits)
8197
8204
  resize Change its size, data intact (passes through hibernated)
8198
8205
  destroy Delete it (refused while data sources are placed on it)
8199
8206
  rename Change the display name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madewithremy/admin",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "Admin SDK + CLI for managing production Remy apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,6 @@
22
22
  "build": "tsup",
23
23
  "dev": "tsup --watch",
24
24
  "typecheck": "npm run tsc -- --noEmit",
25
- "lint:fix": "prettier --write ./src",
26
25
  "prepublishOnly": "npm run build",
27
26
  "tsc": "node node_modules/@typescript/native/bin/tsc",
28
27
  "//tsc": "The native TypeScript 7 compiler by explicit path. It (typescript@7 under the @typescript/native alias) and the JS compiler API behind the `typescript` alias — which tsup's dts step needs — both declare a `tsc` bin, so node_modules/.bin/tsc is whichever npm linked last."
@@ -54,11 +53,9 @@
54
53
  "json5": "^2.2.3"
55
54
  },
56
55
  "devDependencies": {
57
- "@types/node": "^25.3.2",
56
+ "@types/node": "^25.9.8",
58
57
  "@typescript/native": "npm:typescript@^7.0.2",
59
- "prettier": "^3.8.1",
60
58
  "tsup": "^8",
61
- "tsx": "^4",
62
59
  "typescript": "npm:@typescript/typescript6@^6.0.2"
63
60
  }
64
61
  }