@lunora/react 1.0.0-alpha.121 → 1.0.0-alpha.123

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/index.d.mts CHANGED
@@ -384,8 +384,12 @@ type AgentThreadStatus = "awaiting_input" | "cancelled" | "error" | "idle" | "ru
384
384
  */
385
385
  interface AgentThreadRecord {
386
386
  createdAt?: number;
387
- /** The failure message when `status === "error"`. */
388
- error?: string;
387
+ /**
388
+ * The failure message when `status === "error"`, `null` once a later run
389
+ * cleared it, absent on a thread that has never failed. Read it for
390
+ * truthiness — `null` and absent both mean "no error".
391
+ */
392
+ error?: null | string;
389
393
  /** The workflow instance id of the in-flight run — the handle `cancel` targets. */
390
394
  instanceId?: string;
391
395
  messageCount?: number;
package/dist/index.d.ts CHANGED
@@ -384,8 +384,12 @@ type AgentThreadStatus = "awaiting_input" | "cancelled" | "error" | "idle" | "ru
384
384
  */
385
385
  interface AgentThreadRecord {
386
386
  createdAt?: number;
387
- /** The failure message when `status === "error"`. */
388
- error?: string;
387
+ /**
388
+ * The failure message when `status === "error"`, `null` once a later run
389
+ * cleared it, absent on a thread that has never failed. Read it for
390
+ * truthiness — `null` and absent both mean "no error".
391
+ */
392
+ error?: null | string;
389
393
  /** The workflow instance id of the in-flight run — the handle `cancel` targets. */
390
394
  instanceId?: string;
391
395
  messageCount?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/react",
3
- "version": "1.0.0-alpha.121",
3
+ "version": "1.0.0-alpha.123",
4
4
  "description": "React hooks for Lunora: useQuery, useMutation, useSubscription, and useAuth",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -57,9 +57,9 @@
57
57
  "access": "public"
58
58
  },
59
59
  "dependencies": {
60
- "@lunora/client": "1.0.0-alpha.116",
60
+ "@lunora/client": "1.0.0-alpha.117",
61
61
  "@lunora/errors": "1.0.0-alpha.39",
62
- "@lunora/ratelimit": "1.0.0-alpha.66",
62
+ "@lunora/ratelimit": "1.0.0-alpha.67",
63
63
  "@visulima/storage-client": "1.0.3"
64
64
  },
65
65
  "peerDependencies": {