@agentxm/registry-auth 0.29.4 → 0.30.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/dist/src/auth-client.js +2 -2
- package/package.json +11 -14
package/dist/src/auth-client.js
CHANGED
|
@@ -26,7 +26,7 @@ import { normalizeHandle } from "@agentxm/extension-model/unstable/extensions/ha
|
|
|
26
26
|
import { PublishVisibilitySchema, } from "@agentxm/registry-protocol/unstable/publish";
|
|
27
27
|
import { PreviewPublicationSetResponseSchema, } from "@agentxm/registry-protocol/unstable/registry/publication-set";
|
|
28
28
|
import {} from "./oauth-contract.js";
|
|
29
|
-
import { GeneratedRegistryClient, executeRegistryRequest, RegistryUrl, captureRegistryErrorResponseBodies, getString, isHttpClientError, isRegistryClientError, isRegistryClientFailure,
|
|
29
|
+
import { GeneratedRegistryClient, executeRegistryRequest, RegistryUrl, captureRegistryErrorResponseBodies, getString, isHttpClientError, isRegistryClientError, isRegistryClientFailure, isTransientRegistryError, mapRegistryFailure, } from "@agentxm/registry-client";
|
|
30
30
|
import { AuthExchangeFailed, DeviceLoginCodeExpired, DeviceLoginDenied, RegistryAuthFailed, StepUpRequired, } from "./errors.js";
|
|
31
31
|
// -----------------------------------------------------------------------------
|
|
32
32
|
// Constants
|
|
@@ -229,7 +229,7 @@ const postTokenForm = (httpClient, registryUrl, body) => {
|
|
|
229
229
|
return Effect.fail(new OAuthTokenResponseError({
|
|
230
230
|
...(oauthCode === undefined ? {} : { oauthCode }),
|
|
231
231
|
cause: error,
|
|
232
|
-
retryable:
|
|
232
|
+
retryable: isTransientRegistryError(error),
|
|
233
233
|
}));
|
|
234
234
|
}), Effect.flatMap((response) => Schema.is(SessionTokenResponseSchema)(response)
|
|
235
235
|
? Effect.succeed(response)
|
package/package.json
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
"url": "https://github.com/agentxm/axm/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@agentxm/extension-model": "^0.
|
|
8
|
-
"@agentxm/registry-client": "^0.
|
|
9
|
-
"@agentxm/registry-protocol": "^0.
|
|
7
|
+
"@agentxm/extension-model": "^0.30.2",
|
|
8
|
+
"@agentxm/registry-client": "^0.30.2",
|
|
9
|
+
"@agentxm/registry-protocol": "^0.30.2",
|
|
10
10
|
"@napi-rs/keyring": "^1.3.0",
|
|
11
11
|
"effect": "4.0.0-rc.115",
|
|
12
12
|
"proper-lockfile": "^4.1.2"
|
|
13
13
|
},
|
|
14
14
|
"description": "AXM registry-auth feature: login, logout, token, identity inspection, device and loopback flows, and credential lifecycle for the axm CLI. Unstable and unsupported — use the axm.sh CLI.",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@agentxm/specification-metadata": "^0.
|
|
16
|
+
"@agentxm/specification-metadata": "^0.30.2",
|
|
17
17
|
"@effect/platform-node": "4.0.0-rc.115",
|
|
18
18
|
"@effect/vitest": "4.0.0-rc.115",
|
|
19
19
|
"@types/bun": "^1.3.14",
|
|
@@ -27,19 +27,16 @@
|
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
-
"
|
|
31
|
-
"default": "./dist/src/index.js"
|
|
32
|
-
"types": "./dist/src/index.d.ts"
|
|
30
|
+
"types": "./dist/src/index.d.ts",
|
|
31
|
+
"default": "./dist/src/index.js"
|
|
33
32
|
},
|
|
34
33
|
"./live": {
|
|
35
|
-
"
|
|
36
|
-
"default": "./dist/src/live.js"
|
|
37
|
-
"types": "./dist/src/live.d.ts"
|
|
34
|
+
"types": "./dist/src/live.d.ts",
|
|
35
|
+
"default": "./dist/src/live.js"
|
|
38
36
|
},
|
|
39
37
|
"./testing": {
|
|
40
|
-
"
|
|
41
|
-
"default": "./dist/src/testing.js"
|
|
42
|
-
"types": "./dist/src/testing.d.ts"
|
|
38
|
+
"types": "./dist/src/testing.d.ts",
|
|
39
|
+
"default": "./dist/src/testing.js"
|
|
43
40
|
}
|
|
44
41
|
},
|
|
45
42
|
"files": [
|
|
@@ -62,5 +59,5 @@
|
|
|
62
59
|
},
|
|
63
60
|
"sideEffects": false,
|
|
64
61
|
"type": "module",
|
|
65
|
-
"version": "0.
|
|
62
|
+
"version": "0.30.2"
|
|
66
63
|
}
|