1tube 0.1.39 → 0.1.40

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": "1tube",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "private": false,
5
5
  "description": "Self-hosted Supabase Edge Functions gateway for Deno, plus an ESLint plugin for consumers",
6
6
  "license": "MIT",
@@ -47,8 +47,12 @@ import { resolveDenoConfigPath } from "./deno-config.ts";
47
47
  const DEFAULT_RUNTIME = "nodejs24.x";
48
48
  /** Default route prefix; matches sciobot's `/functions/v1/<name>` calls. */
49
49
  const DEFAULT_PATH_PREFIX = "functions/v1";
50
- /** Default function timeout (seconds) when no `1tube.json` timeoutMs is set. */
51
- const DEFAULT_MAX_DURATION = 300;
50
+ /**
51
+ * Default function timeout (seconds) when no `1tube.json` timeoutMs is set.
52
+ * Defaults to the cap so long-running AI pipelines aren't silently truncated
53
+ * unless a function opts into a shorter timeout via its manifest.
54
+ */
55
+ const DEFAULT_MAX_DURATION = 800;
52
56
  /** Upper bound for maxDuration (seconds). Fluid/Pro allows long durations. */
53
57
  const DEFAULT_MAX_DURATION_CAP = 800;
54
58
 
@@ -325,7 +329,7 @@ export async function buildVercel(
325
329
  * --minify minify bundles
326
330
  * --path-prefix <p> route prefix under functions/ (default functions/v1)
327
331
  * --runtime <id> Vercel runtime (default nodejs24.x)
328
- * --max-duration <s> fallback maxDuration seconds (default 300)
332
+ * --max-duration <s> fallback maxDuration seconds (default 800)
329
333
  * --max-duration-cap <s> hard cap for maxDuration (default 800)
330
334
  * --config <path> explicit deno.json path
331
335
  * --no-config skip the import map
@@ -501,7 +505,7 @@ Options:
501
505
  --path-prefix <p> Route prefix under functions/ (default: functions/v1)
502
506
  --runtime <id> Vercel runtime (default: nodejs24.x)
503
507
  --max-duration <s> Fallback maxDuration seconds when no 1tube.json
504
- timeoutMs is set (default: 300)
508
+ timeoutMs is set (default: 800)
505
509
  --max-duration-cap <s> Hard cap for maxDuration seconds (default: 800)
506
510
  --config <path> Explicit deno.json path for the import map.
507
511
  Default: auto-detect cwd/deno.json[c] then