@zoowork-ai/sdk 0.5.1 → 0.5.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to `@zoowork-ai/sdk` (formerly `@zooclaw-agents/sdk`). Dates are the
4
4
  day the behaviour was verified, not the day it was written.
5
5
 
6
+ ## 0.5.2 — 2026-09-04
7
+
8
+ ### Documentation
9
+
10
+ - **`SessionRecord` now describes the response fields the API actually returns.**
11
+ `createSession()` returns the legacy `status: "running"` field without `run_status`;
12
+ later reads expose the latest run state through `run_status`, while `status` is nullable
13
+ and is not the run outcome. This changes the JSDoc emitted in the published declaration
14
+ files; runtime code and TypeScript signatures are unchanged.
15
+
6
16
  ## 0.5.1 — 2026-08-31
7
17
 
8
18
  ### Added
package/dist/client.d.ts CHANGED
@@ -568,12 +568,15 @@ export interface SessionRecord {
568
568
  /** `api` for sessions you create, `cron` for ones a schedule fired. */
569
569
  channel?: string;
570
570
  /**
571
- * `listSessions` is the surface that carries the run outcome (`succeeded`, …) — and it spells
572
- * it `run_status`, not `status`. Staging-verified 2026-08-07: `getSession` returns a `status`
573
- * of `null` for the very same session, so reading `status` off a list row gets you nothing.
571
+ * `getSession` and `listSessions` carry the latest run state (`running`, `succeeded`, …) here.
572
+ * The `createSession` receipt does not include this field.
574
573
  */
575
574
  run_status?: string;
576
- /** Observed `null` on `getSession`. Prefer {@link SessionRecord.run_status} from `listSessions`. */
575
+ /**
576
+ * `running` on a `createSession` receipt, nullable on `getSession`, and absent from
577
+ * `listSessions` rows. This is not the run outcome; read {@link SessionRecord.run_status}
578
+ * from a later read instead.
579
+ */
577
580
  status?: string | null;
578
581
  metadata?: Record<string, unknown>;
579
582
  archived?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoowork-ai/sdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "TypeScript SDK for the ZooWork Managed Agents API (Developer Preview)",
5
5
  "keywords": [
6
6
  "zoowork",