@letterstory/cli 0.177.60 → 0.177.61

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/lib/cli.mjs CHANGED
@@ -90,7 +90,7 @@ import {
90
90
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
91
91
 
92
92
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
93
- export const VERSION = "0.177.60";
93
+ export const VERSION = "0.177.61";
94
94
 
95
95
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
96
96
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -99,6 +99,8 @@ export const EXIT_PAYMENT_REQUIRED = 3;
99
99
  // can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
100
100
  // `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
101
101
  export const BOOLEAN_FLAGS = new Set([
102
+ // models list: say whether each trained model's server is up now.
103
+ "serving",
102
104
  // Models material: retain a request for attachments before preparing it.
103
105
  "stage-only",
104
106
  // visits export: only the people or companies who fit the ICP, or only those who don't.
@@ -41,7 +41,7 @@ export const ARGS = {
41
41
  budget_usd: { flag: "budget", type: "num" },
42
42
  base_model: "base",
43
43
  },
44
- list_writing_models: { archived: { flag: "archived", type: "bool" } },
44
+ list_writing_models: { archived: { flag: "archived", type: "bool" }, serving: { flag: "serving", type: "bool" } },
45
45
  get_writing_model: { model_id: modelId },
46
46
  update_writing_model: {
47
47
  model_id: modelId,
@@ -172,7 +172,7 @@ export async function cmdModels(ctx) {
172
172
  return r.models
173
173
  .map(
174
174
  (m) =>
175
- `${m.id} ${m.name.slice(0, 28).padEnd(28)} ${(STATE[m.state] ?? m.state).padEnd(17)} ${m.links.confirmed} links${m.version ? ` v${m.version.n}` : ""}${m.handle ? ` letter/${m.handle}` : ""}${m.on ? " on" : ""}`
175
+ `${m.id} ${m.name.slice(0, 28).padEnd(28)} ${(STATE[m.state] ?? m.state).padEnd(17)} ${m.links.confirmed} links${m.version ? ` v${m.version.n}` : ""}${m.handle ? ` letter/${m.handle}` : ""}${m.on ? " on" : ""}${m.serving ? ` ${m.serving}` : ""}`
176
176
  )
177
177
  .join("\n");
178
178
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.60",
3
+ "version": "0.177.61",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",