@magpie-community/opencode-factory-auth 0.1.29 → 0.1.30

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 +7 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -13,8 +13,13 @@ const API = "https://api.factory.ai"
13
13
  const API_EU = "https://api.eu.factory.ai"
14
14
  // droid's WorkOS client, production
15
15
  const CLIENT_ID = "client_01HNM792M5G5G1A2THWPXKFMXB"
16
- // the droid release the requests say they are
17
- const VERSION = "0.233.0"
16
+ // the droid release the requests say they are: the current one (droid
17
+ // 0.242.0's X-Client-Version and User-Agent). Its binary reads a
18
+ // server-side min_cli_version, and both reports of every model answered a
19
+ // bare 403 "Forbidden" (0.1.16, 0.1.30) came with this release behind
20
+ // droid's while every other header matched; whether Factory refuses an old
21
+ // release so is not confirmed
22
+ const VERSION = "0.242.0"
18
23
  // how long before an access token lapses it is renewed (droid: a minute)
19
24
  const REFRESH_LEAD = 2 * 60 * 1000
20
25
  // and how long before, magpie renews it ahead of time (auth.refresh): a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magpie-community/opencode-factory-auth",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",