@letterstory/cli 0.177.67 → 0.177.68

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.67";
93
+ export const VERSION = "0.177.68";
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;
package/lib/client.mjs CHANGED
@@ -34,6 +34,9 @@ export const PAYMENT_REQUIRED_CODES = ["CARD_REQUIRED", "PAYMENT_FAILED", "OUT_O
34
34
  export const REQUEST_TIMEOUT_MS = 30_000;
35
35
  export const TOOL_TIMEOUT_MS = 120_000;
36
36
  export const LONG_TOOL_TIMEOUT_MS = 300_000;
37
+ // A call to a sleeping writing model is held while it boots (up to seven minutes, voice.ts WAKE_WAIT_MS).
38
+ export const WAKE_TOOL_TIMEOUT_MS = 600_000;
39
+ export const WAKE_TOOLS = new Set(["rewrite_with_writing_model"]);
37
40
  export const LONG_TOOLS = new Set([
38
41
  "start_build",
39
42
  "send_build_message",
@@ -45,6 +48,7 @@ function timeoutFor(kind, toolName) {
45
48
  const env = Number(process.env.LETTERSTORY_TIMEOUT_MS);
46
49
  if (Number.isFinite(env) && env > 0) return env;
47
50
  if (kind !== "tool") return REQUEST_TIMEOUT_MS;
51
+ if (WAKE_TOOLS.has(toolName)) return WAKE_TOOL_TIMEOUT_MS;
48
52
  return LONG_TOOLS.has(toolName) ? LONG_TOOL_TIMEOUT_MS : TOOL_TIMEOUT_MS;
49
53
  }
50
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.67",
3
+ "version": "0.177.68",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",