@magpie-community/opencode-factory-auth 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -681,7 +681,8 @@ export const FactoryAuthPlugin = async ({ client }) => {
681
681
  text = await res.text()
682
682
  }
683
683
  const why = explain(res.status, text)
684
- const msg = `${apiError(text, "Forbidden")}: ${why}`
684
+ // the refusal, then what to do about it, as provider.Explain joins them
685
+ const msg = `${apiError(text, "403 Forbidden")} — ${why}`
685
686
  return errorReply(url, res.status, "permission_error", msg, new Headers(res.headers))
686
687
  },
687
688
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magpie-community/opencode-factory-auth",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",