@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 +1 -1
- package/src/producer/antigravity.ts +17 -6
- package/src/producer/index.ts +5 -1
package/package.json
CHANGED
|
@@ -9,13 +9,24 @@ import { estimateTokens, type LlmUsage } from "./usage";
|
|
|
9
9
|
import { extractJsonObject } from "./claude-cli";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
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 = "
|
|
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
|
package/src/producer/index.ts
CHANGED
|
@@ -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
|
-
|
|
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";
|