opencode-muse-auth 0.1.2 → 0.2.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 CHANGED
@@ -1,2 +1,7 @@
1
1
  import type { Plugin } from "@opencode-ai/plugin";
2
- export declare const MuseCodeAuth: Plugin;
2
+ declare const _default: {
3
+ id: string;
4
+ server: Plugin;
5
+ setup(): void;
6
+ };
7
+ export default _default;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { readCache, writeCache, deviceAuthorize, pollToken, mintKey } from "./auth.js";
2
- export const MuseCodeAuth = async () => {
2
+ const MuseCodeAuth = async () => {
3
3
  return {
4
4
  auth: {
5
5
  provider: "meta",
@@ -36,3 +36,8 @@ export const MuseCodeAuth = async () => {
36
36
  },
37
37
  };
38
38
  };
39
+ export default {
40
+ id: "muse-code-auth",
41
+ server: MuseCodeAuth,
42
+ setup() { },
43
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-muse-auth",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Muse Spark in opencode billed to the Muse Code monthly subscription (Meta device login, no API key)",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "prepublishOnly": "npm run build"
40
40
  },
41
41
  "devDependencies": {
42
- "@opencode-ai/plugin": "^1.18.31",
42
+ "@opencode-ai/plugin": "^1.19.0",
43
43
  "@types/node": "^22.20.3",
44
44
  "typescript": "^7.0.2"
45
45
  }