@collective-intelligence/external-apps-client-sdk-react 0.1.36 → 0.1.37

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.
Files changed (2) hide show
  1. package/README.md +7 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -55,6 +55,13 @@ revisions. Form unmount does not cancel a dispatched write. Source transitions c
55
55
  and reject stale queued actions before dispatch. Queries and mutations never automatically retry;
56
56
  there is no persistence, reload recovery, or automatic revision rebasing.
57
57
 
58
+ Entity reads and writes run on the Effect Core of the client SDK, through the entity clients that
59
+ the entity source binds. Their errors stay `ResourceResult` values: a read that fails gives
60
+ `error`, a `ResourceQueryError` with the resource error; a write that fails in flight is
61
+ `uncertain`. Other client SDK calls follow the client SDK error model: a `CiResult` operation
62
+ resolves `{ ok: false, error }` with a `CiError`, and rejects with `CiTransportError` when the
63
+ request does not reach CI. `useAgentInvocation` shows such a rejection as its `error` state.
64
+
58
65
  The old public TanStack option factories and native-result resource hooks are no longer exported.
59
66
  Use the deliberate entity hooks above. Existing generic slotted `Resource*` presentation remains
60
67
  separate from common entity CRUD.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collective-intelligence/external-apps-client-sdk-react",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "React bindings for Collective Intelligence external applications.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -44,7 +44,7 @@
44
44
  "type-check": "bun check"
45
45
  },
46
46
  "dependencies": {
47
- "@collective-intelligence/external-apps-client-sdk": "0.1.36",
47
+ "@collective-intelligence/external-apps-client-sdk": "0.1.37",
48
48
  "nuqs": "2.10.1"
49
49
  },
50
50
  "peerDependencies": {
@@ -83,5 +83,5 @@
83
83
  "vitest": "4.1.10",
84
84
  "xstate": "5.33.3"
85
85
  },
86
- "gitHead": "24d1d077eeb604df774f04db008630b8c10d130c"
86
+ "gitHead": "b46c00d8ce76db49b810e7a3f25933ace4f2252f"
87
87
  }