@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.
- package/index.mjs +7 -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
|
-
|
|
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
|