@moxxy/plugin-oauth 0.45.0 → 0.47.0
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.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/profile.d.ts +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -2
- package/src/profile.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export interface BuildOauthPluginOpts {
|
|
|
23
23
|
* Model-callable; suits ad-hoc usage and MCP server wiring.
|
|
24
24
|
* 2. **Provider framework** — declare an `OAuthProviderProfile`, plug in
|
|
25
25
|
* (or write) a `DeviceFlowAdapter`, drive with `runOauthLogin(profile, ctx)`
|
|
26
|
-
* and `ensureFreshTokens(profile, vault)`. Suits LLM providers
|
|
27
|
-
*
|
|
26
|
+
* and `ensureFreshTokens(profile, vault)`. Suits LLM providers that own
|
|
27
|
+
* their auth lifecycle.
|
|
28
28
|
*
|
|
29
29
|
* Tokens persist in the vault under `oauth/<provider>/*`. Bundled device
|
|
30
30
|
* adapters: `rfc8628DeviceFlow` (standards-compliant), `openaiDeviceFlow`
|
package/dist/index.js
CHANGED
|
@@ -25,8 +25,8 @@ export { buildOauthAuthorizeTool, buildOauthClearTool, buildOauthGetTokenTool, }
|
|
|
25
25
|
* Model-callable; suits ad-hoc usage and MCP server wiring.
|
|
26
26
|
* 2. **Provider framework** — declare an `OAuthProviderProfile`, plug in
|
|
27
27
|
* (or write) a `DeviceFlowAdapter`, drive with `runOauthLogin(profile, ctx)`
|
|
28
|
-
* and `ensureFreshTokens(profile, vault)`. Suits LLM providers
|
|
29
|
-
*
|
|
28
|
+
* and `ensureFreshTokens(profile, vault)`. Suits LLM providers that own
|
|
29
|
+
* their auth lifecycle.
|
|
30
30
|
*
|
|
31
31
|
* Tokens persist in the vault under `oauth/<provider>/*`. Bundled device
|
|
32
32
|
* adapters: `rfc8628DeviceFlow` (standards-compliant), `openaiDeviceFlow`
|
package/dist/profile.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface OAuthProviderProfile {
|
|
|
18
18
|
/**
|
|
19
19
|
* Stable namespace under `oauth/<id>/*` in the vault. Lowercase,
|
|
20
20
|
* digits, dot/dash/underscore only — same rules as `validateProvider`.
|
|
21
|
-
* Example: `'
|
|
21
|
+
* Example: `'google'`, `'github'`.
|
|
22
22
|
*/
|
|
23
23
|
readonly id: string;
|
|
24
24
|
/** Authorization endpoint, e.g. https://accounts.google.com/o/oauth2/v2/auth */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/plugin-oauth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "Generic OAuth 2.0 + PKCE client. Loopback callback server, vault-backed token storage, refresh helpers. Bundled skills for Google Workspace + arbitrary providers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moxxy",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"zod": "^4.6.6",
|
|
57
|
-
"@moxxy/sdk": "0.
|
|
58
|
-
"@moxxy/plugin-vault": "0.
|
|
57
|
+
"@moxxy/sdk": "0.47.0",
|
|
58
|
+
"@moxxy/plugin-vault": "0.47.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^22.20.5",
|
package/src/index.ts
CHANGED
|
@@ -93,8 +93,8 @@ export interface BuildOauthPluginOpts {
|
|
|
93
93
|
* Model-callable; suits ad-hoc usage and MCP server wiring.
|
|
94
94
|
* 2. **Provider framework** — declare an `OAuthProviderProfile`, plug in
|
|
95
95
|
* (or write) a `DeviceFlowAdapter`, drive with `runOauthLogin(profile, ctx)`
|
|
96
|
-
* and `ensureFreshTokens(profile, vault)`. Suits LLM providers
|
|
97
|
-
*
|
|
96
|
+
* and `ensureFreshTokens(profile, vault)`. Suits LLM providers that own
|
|
97
|
+
* their auth lifecycle.
|
|
98
98
|
*
|
|
99
99
|
* Tokens persist in the vault under `oauth/<provider>/*`. Bundled device
|
|
100
100
|
* adapters: `rfc8628DeviceFlow` (standards-compliant), `openaiDeviceFlow`
|
package/src/profile.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface OAuthProviderProfile {
|
|
|
20
20
|
/**
|
|
21
21
|
* Stable namespace under `oauth/<id>/*` in the vault. Lowercase,
|
|
22
22
|
* digits, dot/dash/underscore only — same rules as `validateProvider`.
|
|
23
|
-
* Example: `'
|
|
23
|
+
* Example: `'google'`, `'github'`.
|
|
24
24
|
*/
|
|
25
25
|
readonly id: string;
|
|
26
26
|
/** Authorization endpoint, e.g. https://accounts.google.com/o/oauth2/v2/auth */
|