opencode-puter-auth 1.0.43 → 1.0.44
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.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ export { createPuter, puter } from './ai-provider/index.js';
|
|
|
16
16
|
export type { PuterProvider, PuterChatSettings, PuterProviderConfig, PuterChatConfig } from './ai-provider/index.js';
|
|
17
17
|
export { nullLogger, LogLevel } from './logger.js';
|
|
18
18
|
export type { Logger, LoggerOptions } from './logger.js';
|
|
19
|
-
export {
|
|
19
|
+
export { getGlobalFallbackManager, resetGlobalFallbackManager, isRateLimitError, DEFAULT_FALLBACK_MODELS, DEFAULT_COOLDOWN_MS, } from './fallback.js';
|
|
20
20
|
export type { FallbackOptions, FallbackResult, FallbackAttempt, } from './fallback.js';
|
|
21
|
-
export {
|
|
21
|
+
export { getGlobalAccountRotationManager, resetGlobalAccountRotationManager, DEFAULT_ACCOUNT_COOLDOWN_MS, } from './account-rotation.js';
|
|
22
22
|
export type { AccountRotationOptions, AccountRotationResult, AccountStatus, IAuthManager, } from './account-rotation.js';
|
|
23
23
|
export type { PuterConfig, PuterAccount, PuterChatOptions, PuterChatResponse, PuterChatMessage, PuterChatStreamChunk, PuterModelInfo } from './types.js';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,wBAAwB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ter, puter } from './ai-provider/index.js';
|
|
|
29
29
|
// Users needing direct logger access can import from the logger module directly.
|
|
30
30
|
export { nullLogger, LogLevel } from './logger.js';
|
|
31
31
|
// Fallback Manager exports for automatic model fallback
|
|
32
|
-
|
|
32
|
+
// NOTE: FallbackManager and FallbackExhaustedError classes are NOT exported from main entry point
|
|
33
|
+
// because OpenCode's plugin loader calls all exports as functions, causing
|
|
34
|
+
// "cannot call class constructor without new" errors.
|
|
35
|
+
// Users needing direct class access can import from the fallback module directly.
|
|
36
|
+
export { getGlobalFallbackManager, resetGlobalFallbackManager, isRateLimitError, DEFAULT_FALLBACK_MODELS, DEFAULT_COOLDOWN_MS, } from './fallback.js';
|
|
33
37
|
// Account Rotation Manager exports for multi-account support
|
|
34
|
-
|
|
38
|
+
// NOTE: AccountRotationManager and AllAccountsOnCooldownError classes are NOT exported
|
|
39
|
+
// from main entry point for the same reason as above.
|
|
40
|
+
export { getGlobalAccountRotationManager, resetGlobalAccountRotationManager, DEFAULT_ACCOUNT_COOLDOWN_MS, } from './account-rotation.js';
|
|
35
41
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,kDAAkD;AAClD,2DAA2D;AAC3D,wEAAwE;AACxE,yFAAyF;AACzF,gFAAgF;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,gEAAgE;AAChE,mEAAmE;AACnE,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,0BAA0B;AAC1B,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAG5D,gCAAgC;AAChC,uFAAuF;AACvF,0FAA0F;AAC1F,gFAAgF;AAChF,iFAAiF;AACjF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGnD,wDAAwD;AACxD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,kDAAkD;AAClD,2DAA2D;AAC3D,wEAAwE;AACxE,yFAAyF;AACzF,gFAAgF;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,gEAAgE;AAChE,mEAAmE;AACnE,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,0BAA0B;AAC1B,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAG5D,gCAAgC;AAChC,uFAAuF;AACvF,0FAA0F;AAC1F,gFAAgF;AAChF,iFAAiF;AACjF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGnD,wDAAwD;AACxD,kGAAkG;AAClG,2EAA2E;AAC3E,sDAAsD;AACtD,kFAAkF;AAClF,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,eAAe,CAAC;AAOvB,6DAA6D;AAC7D,uFAAuF;AACvF,sDAAsD;AACtD,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-puter-auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44",
|
|
4
4
|
"description": "Puter.com OAuth plugin for OpenCode - Easy access to Claude, GPT, Gemini & 500+ AI models. No API keys needed, credit-based usage.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"puter-auth": "dist/cli.js"
|