@alva-ai/toolkit 0.16.1-beta.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 +45 -14
- package/dist/cli.js +137 -43
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +15 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -14
- package/dist/index.d.ts +45 -14
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -277,7 +277,9 @@ var DeployResource = class {
|
|
|
277
277
|
push_notify: params.push_notify,
|
|
278
278
|
max_heap_size_mb: params.max_heap_size_mb,
|
|
279
279
|
run_as_user_id: params.run_as_user_id,
|
|
280
|
-
|
|
280
|
+
start_at: params.start_at,
|
|
281
|
+
end_at: params.end_at,
|
|
282
|
+
max_runs: params.max_runs
|
|
281
283
|
}
|
|
282
284
|
});
|
|
283
285
|
}
|
|
@@ -322,9 +324,10 @@ var DeployResource = class {
|
|
|
322
324
|
/**
|
|
323
325
|
* Fire the cronjob workflow once, immediately, bypassing the schedule.
|
|
324
326
|
* Async — returns the Hatchet workflow run id at enqueue. The
|
|
325
|
-
* `cronjob_runs` row
|
|
326
|
-
* callers verify completion by polling
|
|
327
|
-
*
|
|
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.
|
|
328
331
|
*
|
|
329
332
|
* Surfaces backend status as HTTP errors (handled by AlvaClient):
|
|
330
333
|
* - 404 not found / cross-user
|
|
@@ -348,6 +351,13 @@ var DeployResource = class {
|
|
|
348
351
|
}
|
|
349
352
|
);
|
|
350
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
|
+
}
|
|
351
361
|
async getRunLogs(params) {
|
|
352
362
|
this.client._requireAuth();
|
|
353
363
|
return this.client._request(
|
|
@@ -3762,7 +3772,7 @@ var installPlaybookRuntime = (targetWindow) => {
|
|
|
3762
3772
|
};
|
|
3763
3773
|
|
|
3764
3774
|
// src/index.ts
|
|
3765
|
-
var VERSION = true ? "0.16.1-beta.
|
|
3775
|
+
var VERSION = true ? "0.16.1-beta.1" : "dev";
|
|
3766
3776
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3767
3777
|
0 && (module.exports = {
|
|
3768
3778
|
AlertsResource,
|