@letterstory/cli 0.59.0 → 0.60.1

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 CHANGED
@@ -362,7 +362,7 @@ letterstory admin tuning reading-list <id> --n 10 # your next blind pairs a
362
362
  letterstory admin tuning pair <id> --cell <key> # one pair named: live and candidate, both texts, the measures per arm (a key reads every pair)
363
363
  letterstory admin tuning side-by-side <id>,<id>,<id> [--cell <key>] # several writers as one board: each one's measures against live; with --cell, every writer's text on that input
364
364
  letterstory admin tuning candidates --kernels all --patch '{"writer":"echo/echo"}' --note "Echo" # the same change as a candidate of each kernel
365
- letterstory admin tuning session-new --title "Echo round 1" --kernel Hazel --input-file brief.md --kind outline [--version 22]
365
+ letterstory admin tuning session-new --title "Echo round 1" --kernel Hazel --input-file brief.md --kind outline [--version 22] [--versions 23,29] # --versions: saved candidates, a trial each
366
366
  letterstory admin tuning propose <session> --text "Echo with rarity on; live with the shred after" --create # trials from words, over the dials
367
367
  letterstory admin tuning trial-run <trial> --repeats 2 # runs advance on the server; poll `admin tuning session <id> --texts`
368
368
  letterstory admin tuning trial-save <trial> --note "…" # a trial as a candidate version (never live); then `admin tuning compare`
package/lib/cli.mjs CHANGED
@@ -55,7 +55,7 @@ import {
55
55
  } from "./commands.mjs";
56
56
 
57
57
  // Keep in sync with cli/package.json.
58
- export const VERSION = "0.59.0";
58
+ export const VERSION = "0.60.1";
59
59
 
60
60
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
61
61
  // can't accidentally swallow the id as --json's value.
@@ -759,7 +759,7 @@ async function cmdAdminTuning(ctx) {
759
759
  }
760
760
  if (!title || !kernel || !input)
761
761
  throw new CliError(
762
- 'Usage: admin tuning session-new --title "…" --kernel <id|name> (--input-file f.md | --input "…") [--kind article|outline|brief] [--version N] [--writers a,b] [--trials-from <session-id>]'
762
+ 'Usage: admin tuning session-new --title "…" --kernel <id|name> (--input-file f.md | --input "…") [--kind article|outline|brief] [--version N] [--writers a,b] [--versions 23,29] [--trials-from <session-id>]'
763
763
  );
764
764
  let kernelId = kernel;
765
765
  if (!/^[0-9a-f-]{36}$/i.test(kernel)) {
@@ -781,6 +781,11 @@ async function cmdAdminTuning(ctx) {
781
781
  base_version: flagNum(flags.version),
782
782
  trials_from_session_id: flagStr(flags["trials-from"]),
783
783
  writers: (flagList(flags.writers) ?? []).map((model) => ({ model })),
784
+ // Candidates to compare: other versions of the base kernel, a trial each.
785
+ versions: (flagList(flags.versions) ?? [])
786
+ .flatMap((v) => v.split(","))
787
+ .map((v) => Number(v.trim()))
788
+ .filter((v) => Number.isInteger(v) && v > 0),
784
789
  })
785
790
  );
786
791
  if (json) return printResult(io, flags, { session });
@@ -119,7 +119,9 @@ export const ARGS = {
119
119
  sequence_id: { positional: 0, label: "sequence-id", required: true },
120
120
  enrollment_id: { positional: 1, label: "enrollment-id", required: true },
121
121
  },
122
- list_review_items: {},
122
+ list_review_items: {
123
+ dispatch_id: "dispatch",
124
+ },
123
125
  update_review_item: {
124
126
  item_id: { positional: 0, label: "item-id", required: true },
125
127
  subject: "subject",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.59.0",
3
+ "version": "0.60.1",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",