opencode-puter-auth 1.0.6 → 1.0.9

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 CHANGED
@@ -7,8 +7,6 @@
7
7
  * @author chindris-mihai-alexandru
8
8
  * @license MIT
9
9
  */
10
- export { PuterAuthPlugin } from './plugin.js';
11
- export { createPuter } from './ai-provider/index.js';
12
- export type { PuterProvider, PuterChatSettings, PuterProviderConfig, PuterChatConfig } from './ai-provider/index.js';
10
+ export { PuterAuthPlugin } from './plugin-minimal.js';
13
11
  export type { PuterConfig, PuterAccount, PuterChatOptions, PuterChatResponse, PuterChatMessage, PuterChatStreamChunk, PuterModelInfo } from './types.js';
14
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGrH,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAOtD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -11,7 +11,5 @@
11
11
  // IMPORTANT: Only export the plugin function, not classes!
12
12
  // OpenCode's plugin loader calls all exports as functions, so exporting
13
13
  // classes (PuterClient, PuterAuthManager) causes "cannot call class without new" errors.
14
- export { PuterAuthPlugin } from './plugin.js';
15
- // AI SDK Provider exports - factory functions only (no classes or default instances)
16
- export { createPuter } from './ai-provider/index.js';
14
+ export { PuterAuthPlugin } from './plugin-minimal.js';
17
15
  //# 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;;;;;;;;GAQG;AAEH,kDAAkD;AAClD,2DAA2D;AAC3D,wEAAwE;AACxE,yFAAyF;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qFAAqF;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,kDAAkD;AAClD,2DAA2D;AAC3D,wEAAwE;AACxE,yFAAyF;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * OpenCode plugin implementation following the standard pattern
3
+ * Based on OpenCode plugin documentation - no external dependencies needed
4
+ */
5
+ export declare const PuterAuthPlugin: (_ctx: any) => Promise<{}>;
6
+ //# sourceMappingURL=plugin-minimal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-minimal.d.ts","sourceRoot":"","sources":["../src/plugin-minimal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,eAAe,GAAU,MAAM,GAAG,gBAO9C,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * OpenCode plugin implementation following the standard pattern
3
+ * Based on OpenCode plugin documentation - no external dependencies needed
4
+ */
5
+ // OpenCode plugin function - async with context parameter
6
+ export const PuterAuthPlugin = async (_ctx) => {
7
+ console.log("Puter Auth Plugin initialized!");
8
+ return {
9
+ // Plugin hooks go here
10
+ // For now, just return empty to test loading
11
+ };
12
+ };
13
+ //# sourceMappingURL=plugin-minimal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-minimal.js","sourceRoot":"","sources":["../src/plugin-minimal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0DAA0D;AAC1D,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,IAAS,EAAE,EAAE;IACjD,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAE9C,OAAO;IACL,uBAAuB;IACvB,6CAA6C;KAC9C,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-puter-auth",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "description": "Puter.com OAuth auth plugin for OpenCode - FREE UNLIMITED access to Claude Opus 4.5, Sonnet 4.5, GPT-5, Gemini, and 500+ AI models",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",