@alva-ai/toolkit 0.18.0-beta.0 → 0.19.0
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/dist/browser.global.js +2 -2
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +12 -0
- package/dist/cli.js +17 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.d.ts
CHANGED
|
@@ -199,6 +199,11 @@ interface CronjobCreateRequest {
|
|
|
199
199
|
push_notify?: boolean;
|
|
200
200
|
/** Override per-cronjob V8 heap limit (MB). Valid range 1–2046. */
|
|
201
201
|
max_heap_size_mb?: number;
|
|
202
|
+
/**
|
|
203
|
+
* Maximum wall-clock execution time in seconds. Valid range 1–3600.
|
|
204
|
+
* Omitted means the server uses its default (1800 seconds).
|
|
205
|
+
*/
|
|
206
|
+
execution_timeout_seconds?: number;
|
|
202
207
|
/**
|
|
203
208
|
* Run the cronjob under a restricted service-account identity (an SA id
|
|
204
209
|
* owned by the caller) instead of the owner (#602). Omitted ⇒ runs as owner.
|
|
@@ -224,6 +229,8 @@ interface Cronjob {
|
|
|
224
229
|
push_notify: boolean;
|
|
225
230
|
/** Per-cronjob V8 heap cap (MB). null when using the server default. */
|
|
226
231
|
max_heap_size_mb: number | null;
|
|
232
|
+
/** Effective wall-clock execution timeout in seconds. */
|
|
233
|
+
execution_timeout_seconds: number;
|
|
227
234
|
/**
|
|
228
235
|
* SA id the cronjob runs as, or "0" when it runs as the owner (#602).
|
|
229
236
|
* A string: snowflake int64 ids overflow JS number precision.
|
|
@@ -259,6 +266,11 @@ interface CronjobUpdateRequest {
|
|
|
259
266
|
push_notify?: boolean;
|
|
260
267
|
/** Override per-cronjob V8 heap limit (MB). Valid range 1–2046. */
|
|
261
268
|
max_heap_size_mb?: number;
|
|
269
|
+
/**
|
|
270
|
+
* Maximum wall-clock execution time in seconds. Valid range 1–3600.
|
|
271
|
+
* Omitted means the existing value is preserved.
|
|
272
|
+
*/
|
|
273
|
+
execution_timeout_seconds?: number;
|
|
262
274
|
/**
|
|
263
275
|
* Re-point the cronjob at a service-account identity, or "0" to clear it back
|
|
264
276
|
* to the owner (#602). Omitted ⇒ run_as unchanged.
|
package/dist/cli.js
CHANGED
|
@@ -9707,6 +9707,7 @@ var DeployResource = class {
|
|
|
9707
9707
|
args: params.args,
|
|
9708
9708
|
push_notify: params.push_notify,
|
|
9709
9709
|
max_heap_size_mb: params.max_heap_size_mb,
|
|
9710
|
+
execution_timeout_seconds: params.execution_timeout_seconds,
|
|
9710
9711
|
run_as_user_id: params.run_as_user_id,
|
|
9711
9712
|
start_at: params.start_at,
|
|
9712
9713
|
end_at: params.end_at,
|
|
@@ -13671,7 +13672,7 @@ import * as fs2 from "fs";
|
|
|
13671
13672
|
import * as os2 from "os";
|
|
13672
13673
|
import * as fsPromises2 from "fs/promises";
|
|
13673
13674
|
import { Agent, setGlobalDispatcher } from "undici";
|
|
13674
|
-
var CLI_VERSION = true ? "0.
|
|
13675
|
+
var CLI_VERSION = true ? "0.19.0" : "dev";
|
|
13675
13676
|
var DEFAULT_RUN_TIMEOUT_MS = 6e5;
|
|
13676
13677
|
var RUN_TIMEOUT_ENV = "ALVA_RUN_TIMEOUT_MS";
|
|
13677
13678
|
var configuredRunFetchTimeoutMs;
|
|
@@ -13996,6 +13997,7 @@ Create/Update flags:
|
|
|
13996
13997
|
--push-notify Enable Telegram push notifications on completion
|
|
13997
13998
|
--no-push-notify Disable push notifications
|
|
13998
13999
|
--max-heap-size-mb <mb> Override per-cronjob V8 heap limit (1-2046, default uses server config)
|
|
14000
|
+
--execution-timeout-seconds <seconds> Wall-clock timeout (1-3600; create default: 1800; update omitted: unchanged)
|
|
13999
14001
|
--run-as-service-account <id> Run the cronjob under a service-account identity
|
|
14000
14002
|
(id from "alva service-account create"); restricts file
|
|
14001
14003
|
access to the SA's grants. Omit on update \u21D2 unchanged (#602)
|
|
@@ -15712,6 +15714,13 @@ async function dispatch(client, args, meta, deps) {
|
|
|
15712
15714
|
1,
|
|
15713
15715
|
2046
|
|
15714
15716
|
),
|
|
15717
|
+
execution_timeout_seconds: optionalBoundedIntegerFlag(
|
|
15718
|
+
flags,
|
|
15719
|
+
"execution-timeout-seconds",
|
|
15720
|
+
"deploy create",
|
|
15721
|
+
1,
|
|
15722
|
+
3600
|
|
15723
|
+
),
|
|
15715
15724
|
run_as_user_id: optionalServiceAccountIdFlag(
|
|
15716
15725
|
flags,
|
|
15717
15726
|
"deploy create"
|
|
@@ -15740,6 +15749,13 @@ async function dispatch(client, args, meta, deps) {
|
|
|
15740
15749
|
1,
|
|
15741
15750
|
2046
|
|
15742
15751
|
),
|
|
15752
|
+
execution_timeout_seconds: optionalBoundedIntegerFlag(
|
|
15753
|
+
flags,
|
|
15754
|
+
"execution-timeout-seconds",
|
|
15755
|
+
"deploy update",
|
|
15756
|
+
1,
|
|
15757
|
+
3600
|
|
15758
|
+
),
|
|
15743
15759
|
run_as_user_id: resolveRunAsFlag(flags, "deploy update")
|
|
15744
15760
|
});
|
|
15745
15761
|
case "delete":
|