From 9fefe75f1504e7b780c471d6ec20a16268a5a1d3 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 4 Oct 2026 18:26:33 +0800 Subject: [PATCH] =?UTF-8?q?factory=200.1.16:=20requests=20say=20droid=200.?= =?UTF-8?q?233.0,=20the=20current=20release=20(Discord,=20JL=20on=20magpie?= =?UTF-8?q?=200.1.824=20with=20plugin=200.1.15:=20every=20model=20403=20"F?= =?UTF-8?q?actory:=20Forbidden"=20from=20pi=20and=20Claude=20Code,=20while?= =?UTF-8?q?=20droid=20itself=20works)=20=E2=80=94=20droid=200.233.0's=20mo?= =?UTF-8?q?del=20requests=20carry=20the=20same=20headers,=20paths=20and=20?= =?UTF-8?q?body=20shape=20as=200.231.0's=20apart=20from=20its=20version=20?= =?UTF-8?q?(X-Client-Version,=20User-Agent=20factory-cli/),=20and=20i?= =?UTF-8?q?ts=20binary=20reads=20a=20server-side=20min=5Fcli=5Fversion;=20?= =?UTF-8?q?the=20plugin=20said=200.231.0,=20two=20releases=20behind.=20Whe?= =?UTF-8?q?ther=20Factory=20refuses=20an=20old=20version=20with=20a=20403?= =?UTF-8?q?=20is=20not=20confirmed=20(no=20Factory=20account=20to=20try=20?= =?UTF-8?q?with);=20this=20is=20the=20one=20difference=20found.=20bun=20te?= =?UTF-8?q?st=20(79=20pass)=20and=20bun=20scripts/check.mjs=20factory=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/factory/droid.test.mjs | 4 ++-- packages/factory/index.mjs | 2 +- packages/factory/package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/factory/droid.test.mjs b/packages/factory/droid.test.mjs index 179ab99..ba0a2dd 100644 --- a/packages/factory/droid.test.mjs +++ b/packages/factory/droid.test.mjs @@ -62,8 +62,8 @@ test("another agent's request to /api/llm/o opens with droid's line", async () = // the length was the old body's: it isn't sent on expect(s.headers.get("content-length")).toBe(null) expect(s.headers.get("x-api-provider")).toBe("fireworks") - expect(s.headers.get("x-client-version")).toBe("0.231.0") - expect(s.headers.get("user-agent")).toBe("factory-cli/0.231.0") + expect(s.headers.get("x-client-version")).toBe("0.233.0") + expect(s.headers.get("user-agent")).toBe("factory-cli/0.233.0") expect(s.headers.get("x-factory-org-id")).toBe("fac_D") // Claude Code's system blocks, made chat completions as parts: joined b = JSON.parse((await send(chat, `{"model":"kimi-k3","messages":[{"role":"system","content":[{"type":"text","text":"You are Claude Code."},{"type":"text","text":"Be brief."}]},{"role":"user","content":"hi"}]}`)).body) diff --git a/packages/factory/index.mjs b/packages/factory/index.mjs index be541d0..70e1482 100644 --- a/packages/factory/index.mjs +++ b/packages/factory/index.mjs @@ -14,7 +14,7 @@ const API_EU = "https://api.eu.factory.ai" // droid's WorkOS client, production const CLIENT_ID = "client_01HNM792M5G5G1A2THWPXKFMXB" // the droid release the requests say they are -const VERSION = "0.231.0" +const VERSION = "0.233.0" // how long before an access token lapses it is renewed (droid: a minute) const REFRESH_LEAD = 2 * 60 * 1000 // and how long before, magpie renews it ahead of time (auth.refresh): a diff --git a/packages/factory/package.json b/packages/factory/package.json index 8740067..f39eaaf 100644 --- a/packages/factory/package.json +++ b/packages/factory/package.json @@ -1,6 +1,6 @@ { "name": "@magpie-community/opencode-factory-auth", - "version": "0.1.15", + "version": "0.1.16", "description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie", "type": "module", "main": "./index.mjs",