@alva-ai/toolkit 0.16.0 → 0.16.1-beta.1
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 +53 -10
- package/dist/cli.js +202 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +16 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -10
- package/dist/index.d.ts +53 -10
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -276,7 +276,10 @@ var DeployResource = class {
|
|
|
276
276
|
args: params.args,
|
|
277
277
|
push_notify: params.push_notify,
|
|
278
278
|
max_heap_size_mb: params.max_heap_size_mb,
|
|
279
|
-
run_as_user_id: params.run_as_user_id
|
|
279
|
+
run_as_user_id: params.run_as_user_id,
|
|
280
|
+
start_at: params.start_at,
|
|
281
|
+
end_at: params.end_at,
|
|
282
|
+
max_runs: params.max_runs
|
|
280
283
|
}
|
|
281
284
|
});
|
|
282
285
|
}
|
|
@@ -321,9 +324,10 @@ var DeployResource = class {
|
|
|
321
324
|
/**
|
|
322
325
|
* Fire the cronjob workflow once, immediately, bypassing the schedule.
|
|
323
326
|
* Async — returns the Hatchet workflow run id at enqueue. The
|
|
324
|
-
* `cronjob_runs` row
|
|
325
|
-
* callers verify completion by polling
|
|
326
|
-
*
|
|
327
|
+
* `cronjob_runs` row can appear as DISPATCHED/RUNNING before it reaches a
|
|
328
|
+
* terminal status; callers verify completion by polling
|
|
329
|
+
* `getRunStatus({cronjob_id, workflow_run_id})` with their own
|
|
330
|
+
* timeout/deadline.
|
|
327
331
|
*
|
|
328
332
|
* Surfaces backend status as HTTP errors (handled by AlvaClient):
|
|
329
333
|
* - 404 not found / cross-user
|
|
@@ -347,6 +351,13 @@ var DeployResource = class {
|
|
|
347
351
|
}
|
|
348
352
|
);
|
|
349
353
|
}
|
|
354
|
+
async getRunStatus(params) {
|
|
355
|
+
this.client._requireAuth();
|
|
356
|
+
return this.client._request(
|
|
357
|
+
"GET",
|
|
358
|
+
`/api/v1/deploy/cronjob/${params.cronjob_id}/runs/by-workflow/${encodeURIComponent(params.workflow_run_id)}`
|
|
359
|
+
);
|
|
360
|
+
}
|
|
350
361
|
async getRunLogs(params) {
|
|
351
362
|
this.client._requireAuth();
|
|
352
363
|
return this.client._request(
|
|
@@ -3761,7 +3772,7 @@ var installPlaybookRuntime = (targetWindow) => {
|
|
|
3761
3772
|
};
|
|
3762
3773
|
|
|
3763
3774
|
// src/index.ts
|
|
3764
|
-
var VERSION = true ? "0.16.
|
|
3775
|
+
var VERSION = true ? "0.16.1-beta.1" : "dev";
|
|
3765
3776
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3766
3777
|
0 && (module.exports = {
|
|
3767
3778
|
AlertsResource,
|