@velven/cli 0.5.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1
4
+
5
+ - `velven create credits` names the free allowance as this week's: Velven's builder now refills it weekly, from Monday
6
+ 00:00 UTC, instead of daily. The refusal and the low-credit line say "this week" for the same reason. Works with the
7
+ Velven of 0.5.0 and later.
8
+
3
9
  ## 0.5.0
4
10
 
5
11
  Needs the Velven of the same release, which speaks only this version: update to 0.5.0. 0.3.0 and 0.4.0 can no longer
package/README.md CHANGED
@@ -177,7 +177,7 @@ velven create send "a cozy game where you grow a garden on a floating island"
177
177
  | `velven create show --timeline` | The newest turn's timeline as a waterfall (see below). `--turn <id>` picks another turn, `--all` lists every tool call |
178
178
  | `velven create refs` | The project's reference pictures: each id, when it was added, its size and how many messages carried it. `--project <id>` picks another project |
179
179
  | `velven create refs rm <ref-n>` | Delete a reference picture, sent or not. The messages that carried it keep its number, and the number is never given to another picture |
180
- | `velven create credits` | Your credits: today's allowance, your balance, what open turns hold, and the latest entries |
180
+ | `velven create credits` | Your credits: this week's allowance, your balance, what open turns hold, and the latest entries |
181
181
  | `velven create usage` | What each of your turns held and used, newest first. `--project <id>` keeps one project's, `--before <turn>` reads the page before (the last line names it), `--json` prints the page |
182
182
  | `velven create stats` | For Velven's admins: p50 and p90 over recent turns. `--days <n>` (1 to 90, 7 by default), `--origin <origin>` |
183
183
 
@@ -248,10 +248,10 @@ turn could not take included: "Could not be taken this turn; queued, but the que
248
248
  with the first: nothing is started or held twice, and the CLI prints "(already sent)" before its line.
249
249
 
250
250
  The CLI says what the turn does as it goes. What the agents write goes to standard output, and their progress goes to
251
- standard error. When Velven picked the work, it says so in words first ("I'll make the change."; when the day's
251
+ standard error. When Velven picked the work, it says so in words first ("I'll make the change."; when this week's
252
252
  credits kept it from a fuller turn, "I'll make the change. I kept this one quick to save credits."), with the work it
253
253
  picked and why on standard error. On a build it prints the plain step it is at ("Designing your game", "Painting the art", "Building the world", "Trying it out", "Polishing", "Finishing up"; a later small change says "Making the change" for its work), and on a first build the design as it is settled ("Designing Petal Drift: ..." with its style and palette) and each picture once it lands ("Painted sky (1024 by 512)" with a link to look at it). You see what each step changed, the live link while the game is being built, each playtest's preview
254
- link (the first playable one, before the turn ends), its screenshots and its clip. When the turn ends, it prints the reply (when the turn asked a question, which it already printed with its choices, only what follows it), then, after a turn that ended with a playable game, "Where it could go next:" with two to four short suggestions for this game and the command that sends the first (`velven create send "Add a boss at the end"`; each is an ordinary message), then the preview link and the credits used. A reply may end with one sentence on what the turn took from your pictures, and with "You're running low on credits for today." when what is left would not cover another small change. A turn that stops at
254
+ link (the first playable one, before the turn ends), its screenshots and its clip. When the turn ends, it prints the reply (when the turn asked a question, which it already printed with its choices, only what follows it), then, after a turn that ended with a playable game, "Where it could go next:" with two to four short suggestions for this game and the command that sends the first (`velven create send "Add a boss at the end"`; each is an ordinary message), then the preview link and the credits used. A reply may end with one sentence on what the turn took from your pictures, and with "You're running low on credits for this week." when what is left would not cover another small change. A turn that stops at
255
255
  its credit cap or time limit saves what it finished and ends with exit 0. A failed turn costs nothing. When a new game's
256
256
  first build stops before it made the game (it saved nothing, or only its design), the reply ends "Press Build it to try
257
257
  again." and the CLI prints `Try again: velven create send --build "Build it"`; "try again" typed after it builds too.
package/dist/velven.js CHANGED
@@ -23,7 +23,7 @@ class CliError extends Error {
23
23
  }
24
24
  }
25
25
  // package.json
26
- var version = "0.5.0";
26
+ var version = "0.5.1";
27
27
 
28
28
  // src/version.ts
29
29
  var VERSION = version;
@@ -2490,7 +2490,7 @@ async function credits(ctx, api, json) {
2490
2490
  ctx.out(JSON.stringify({ ok: true, credits: view }));
2491
2491
  return EXIT.ok;
2492
2492
  }
2493
- ctx.out(`${plural(view.available, "credit")} available: ${view.daily_left} left of today's allowance, ${view.balance} in your balance, ${view.held} held by open turns.`);
2493
+ ctx.out(`${plural(view.available, "credit")} available: ${view.daily_left} left of this week's allowance, ${view.balance} in your balance, ${view.held} held by open turns.`);
2494
2494
  for (const row of view.ledger.slice(0, 10)) {
2495
2495
  const amount = row.amount > 0 ? `+${row.amount}` : String(row.amount);
2496
2496
  ctx.out(` ${when(row.created_at).padEnd(20)} ${amount.padStart(6)} ${row.kind}${row.turn_id !== null ? ` (turn ${row.turn_id})` : ""}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velven/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Publish a folder to Velven, the community marketplace for spaces built with AI: a private preview first, then hosted and live on its own page in seconds.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://velven.ai/docs",