@engini/sdk 0.33.0 → 0.34.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/README.md CHANGED
@@ -213,6 +213,11 @@ const run = await client.executions.get(4567);
213
213
  const steps = await client.executions.log(4567); // throws EnginiAPIError on 410 (retention passed)
214
214
  const failedSteps = steps.filter((s) => s.status === "ranWithError").map((s) => [s.stepNo, s.errorMessage]);
215
215
  const payloads = await client.executions.data(4567, 3, { type: "response" }); // drains, 10 per page
216
+ // Per-iteration timing: `duration` (active seconds) is on `status` entries only, once that
217
+ // iteration's / retry attempt's status is final; absent on other entries and while running.
218
+ const slowest = (await client.executions.data(4567, 3, { type: "status" }))
219
+ .filter((e) => e.duration != null)
220
+ .sort((a, b) => b.duration! - a.duration!)[0];
216
221
  ```
217
222
 
218
223
  Sorting by `closedAt` (or several keys) has no cursor on the server, so `list` drains those
package/dist/version.d.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  * Regenerated on every build/typecheck/test (see the "pre*" scripts in
4
4
  * package.json). Un-stamped local builds yield "0.0.0".
5
5
  */
6
- export declare const VERSION = "0.33.0";
6
+ export declare const VERSION = "0.34.0";
package/dist/version.js CHANGED
@@ -3,4 +3,4 @@
3
3
  * Regenerated on every build/typecheck/test (see the "pre*" scripts in
4
4
  * package.json). Un-stamped local builds yield "0.0.0".
5
5
  */
6
- export const VERSION = "0.33.0";
6
+ export const VERSION = "0.34.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engini/sdk",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "Engini SDK — agent-first ergonomic layer over the Engini Public API",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "test": "vitest run"
28
28
  },
29
29
  "dependencies": {
30
- "@engini/client": "0.20.0",
30
+ "@engini/client": "0.21.0",
31
31
  "undici": "^6.0.0"
32
32
  },
33
33
  "devDependencies": {