@iloveagents/foundry-web-shell 0.1.2 → 0.1.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.
- package/CHANGELOG.md +9 -0
- package/package.json +4 -4
- package/src/service-fetch-default.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @iloveagents/foundry-web-shell
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [d9b0460]
|
|
8
|
+
- @iloveagents/foundry-agent@0.1.3
|
|
9
|
+
- @iloveagents/foundry-web-ui@0.1.3
|
|
10
|
+
- @iloveagents/foundry-web-primitives@0.1.3
|
|
11
|
+
|
|
3
12
|
## 0.1.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iloveagents/foundry-web-shell",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@assistant-ui/react": "^0.12.25",
|
|
18
18
|
"lucide-react": ">=0.400.0",
|
|
19
19
|
"zustand": "^5.0.0",
|
|
20
|
-
"@iloveagents/foundry-agent": "0.1.
|
|
21
|
-
"@iloveagents/foundry-web-primitives": "0.1.
|
|
22
|
-
"@iloveagents/foundry-web-ui": "0.1.
|
|
20
|
+
"@iloveagents/foundry-agent": "0.1.3",
|
|
21
|
+
"@iloveagents/foundry-web-primitives": "0.1.3",
|
|
22
|
+
"@iloveagents/foundry-web-ui": "0.1.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"typescript": "~5.9.3",
|
|
@@ -10,8 +10,16 @@ import { authStore } from "@iloveagents/foundry-agent/msal";
|
|
|
10
10
|
* interceptor passes on the 401 retry path. Without it, the retry would
|
|
11
11
|
* still ask MSAL for a cached token and the long-lived-tab 401 loop never
|
|
12
12
|
* recovers.
|
|
13
|
+
*
|
|
14
|
+
* ``recoverFromHardAuthFailure`` kicks in when even the force-refresh
|
|
15
|
+
* retry comes back with 401 — at that point the silent path is
|
|
16
|
+
* exhausted and only a fresh ``loginRedirect`` will produce a token
|
|
17
|
+
* the resource server accepts (server-side policy / audience / claims
|
|
18
|
+
* have drifted under the cached identity).
|
|
13
19
|
*/
|
|
14
20
|
export const defaultAgentFetch: typeof fetch = createServiceFetch({
|
|
15
21
|
acquireToken: (options) => authStore.getState().getAccessToken("api", options),
|
|
22
|
+
recoverFromHardAuthFailure: (reason) =>
|
|
23
|
+
authStore.getState().recoverFromHardAuthFailure(reason),
|
|
16
24
|
baseUrl: import.meta.env.VITE_API_BASE_URL,
|
|
17
25
|
});
|