@ossclip/core 0.1.28 → 0.1.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossclip/core",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "ossclip's framework-free pipeline: schema, transcription, analysis, cutlist, captions, framing, and the LLM producer",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -9,13 +9,24 @@ import { estimateTokens, type LlmUsage } from "./usage";
9
9
  import { extractJsonObject } from "./claude-cli";
10
10
 
11
11
  /**
12
- * agy's own print timeout defaults to 5m, which a beat-sheet call on a long
13
- * transcript can exceed. Core's `run()` has no timeout of its own, so this
14
- * flag is the ONLY clock on the spawn — without it a stuck call is a hang,
15
- * with it a timeout surfaces as retry-then-throw (FINDINGS §132, antigravity
16
- * provider).
12
+ * Core's `run()` has no timeout of its own, so this flag is the ONLY clock on
13
+ * the spawn — without it a stuck call is a hang, with it a timeout surfaces as
14
+ * a fall back to the next provider (FINDINGS §132, §143).
15
+ *
16
+ * This is a RECOVERY DEADLINE, not a patience allowance (§149). It was 10m on
17
+ * the theory that a big beat sheet might legitimately need it; the theory was
18
+ * wrong twice over. agy's hang is intermittent and service-side — §143 probed
19
+ * a 95,030-token call that answered in 17.6s — so a call that has said nothing
20
+ * for 90s is not working slowly, it is hung. And what rescues it is the
21
+ * fallback, which costs seconds. Waiting 10m to start a 5s recovery cost one
22
+ * field run 605.9s of dead air on a 96-second video (2026-08-23: 692s total
23
+ * for ~86s of real work).
24
+ *
25
+ * 90s is 2x the slowest healthy call ever measured (46s) and below agy's own
26
+ * 5m default. Go duration format, verified against `agy --help` ("default
27
+ * 5m0s"). Raise it only for a call measured to SUCCEED slower than this.
17
28
  */
18
- export const AGY_PRINT_TIMEOUT = "10m";
29
+ export const AGY_PRINT_TIMEOUT = "90s";
19
30
 
20
31
  /**
21
32
  * agy takes the prompt as an argv argument only — no stdin — and macOS caps
@@ -30,7 +30,11 @@ export * from "./youtube";
30
30
  export * from "./scene-props";
31
31
  export * from "./repair";
32
32
  export { AnthropicProvider, DEFAULT_CLAUDE_MODEL } from "./anthropic";
33
- export { AntigravityProvider, type LlmEffort } from "./antigravity";
33
+ // AGY_PRINT_TIMEOUT is public because the CLI SAYS it: a slow agy call looks
34
+ // identical to a working one on screen, so the spinner names the budget it is
35
+ // waiting out rather than letting the wait read as a freeze (§149). Exported
36
+ // rather than restated in the CLI so the number cannot drift from the flag.
37
+ export { AntigravityProvider, AGY_PRINT_TIMEOUT, type LlmEffort } from "./antigravity";
34
38
  export { ClaudeCliProvider } from "./claude-cli";
35
39
  export { GeminiProvider, DEFAULT_GEMINI_MODEL } from "./gemini";
36
40
  export { MockProvider } from "./mock";