@collective-intelligence/extensions-sdk-frontend-react 0.9.1 → 0.9.3
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.
|
@@ -116,6 +116,8 @@ Access tokens always live 300 seconds. A confidential client that passes its `cl
|
|
|
116
116
|
> public client gets no renewal credential, so the session ends when the first
|
|
117
117
|
> access token expires, whatever `sessionTtlSeconds` says.
|
|
118
118
|
|
|
119
|
+
After each start, the first signed-in request also reads CI's token key set. Call `auth.warm?.()` at boot, for example in Next.js `instrumentation.ts` `register`, without waiting for it before the server starts. It reads the key set into the SDK's cache, never rejects, and resolves `{ ok: false, error }` when CI does not answer; the first request then reads the key set itself, as without a warm-up.
|
|
120
|
+
|
|
119
121
|
A revoked grant reaches the app at the next renewal, so within 300 seconds. It reaches the app at once when a forwarded CI answer is a `401` or carries a changed `x-access-version`, which `auth.observeCiResponse` watches for. A user who signs in without a grant that holds the app gate does not bounce straight back with `access_denied`. CI first shows its own access-denied page with "Switch account" and "Back to the application".
|
|
120
122
|
|
|
121
123
|
> **Note:** Consent follows the app's `applicationConsent` (`inherit`, `ask` or `skip`),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@collective-intelligence/extensions-sdk-frontend-react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Public hosted React contribution contracts for Collective Intelligence extensions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"type-check": "bun check --no-script -p tsconfig.json && bun check --no-script -p tsconfig.type-tests.json"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@collective-intelligence/effect-xstate": "0.9.
|
|
84
|
-
"@collective-intelligence/extensions-sdk": "0.9.
|
|
85
|
-
"@collective-intelligence/extensions-sdk-frontend": "0.9.
|
|
83
|
+
"@collective-intelligence/effect-xstate": "0.9.3",
|
|
84
|
+
"@collective-intelligence/extensions-sdk": "0.9.3",
|
|
85
|
+
"@collective-intelligence/extensions-sdk-frontend": "0.9.3"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@collective-intelligence/ui-react": "0.9.
|
|
88
|
+
"@collective-intelligence/ui-react": "0.9.3",
|
|
89
89
|
"@tanstack/react-query": ">=5 <6",
|
|
90
90
|
"@xyflow/react": ">=12 <13",
|
|
91
91
|
"effect": "^4.1.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@collective-intelligence/ui-react": "0.9.
|
|
105
|
+
"@collective-intelligence/ui-react": "0.9.3",
|
|
106
106
|
"@effect/eslint-plugin": "0.3.2",
|
|
107
107
|
"@effect/vitest": "4.1.4",
|
|
108
108
|
"@hey-api/openapi-ts": "^0.96.0",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"vitest": "5.0.2",
|
|
131
131
|
"xstate": "5.33.3"
|
|
132
132
|
},
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "5a6e5e667ce6bd14ad1d149062388531fef7b436"
|
|
134
134
|
}
|