Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

Stay on 2.x until the first public release

leepokaidfea2aa0c31b
diff --git a/Codync.xcodeproj/project.pbxproj b/Codync.xcodeproj/project.pbxproj
index 4e88f3c4..a88f92bd 100644
--- a/Codync.xcodeproj/project.pbxproj
+++ b/Codync.xcodeproj/project.pbxproj
@@ -823,7 +823,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
MACOSX_DEPLOYMENT_TARGET = 14.0;
- MARKETING_VERSION = 3.0.0;
+ MARKETING_VERSION = 2.2.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -999,7 +999,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
MACOSX_DEPLOYMENT_TARGET = 14.0;
- MARKETING_VERSION = 3.0.0;
+ MARKETING_VERSION = 2.2.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
diff --git a/cloud/package.json b/cloud/package.json
index 7d35d113..95d972fa 100644
--- a/cloud/package.json
+++ b/cloud/package.json
@@ -1,6 +1,6 @@
{
"name": "codync-cloud",
- "version": "3.0.0",
+ "version": "2.2.0",
"description": "Codync cloud: accounts, computers and the end-to-end encrypted relay (Cloudflare Worker + Durable Object)",
"private": true,
"license": "MIT",
diff --git a/cloud/src/api.ts b/cloud/src/api.ts
index e2dec2b6..64eb6a57 100644
--- a/cloud/src/api.ts
+++ b/cloud/src/api.ts
@@ -15,7 +15,7 @@ import {
} from "./auth";
import type { Env } from "./index";
-export const VERSION = "3.0.0";
+export const VERSION = "2.2.0";
const CLAIM_TTL_MS = 5 * 60_000;
const REQUEST_TTL_MS = 10 * 60_000;
diff --git a/cloud/test/api.test.ts b/cloud/test/api.test.ts
index 254bb8d1..211c504c 100644
--- a/cloud/test/api.test.ts
+++ b/cloud/test/api.test.ts
@@ -50,7 +50,7 @@ function claimBody(c: Json, userId: string, host: TestHost) {
name: "Studio",
platform: "macos",
device: "macmini",
- version: "3.0.0",
+ version: "2.2.0",
sig: ref.b64url(ref.sign(host.sign, ref.enc.encode(canonical))),
};
}
@@ -84,7 +84,7 @@ async function grantAccess(user: User, host: TestHost) {
describe("basics", () => {
it("health", async () => {
- expect(await call("GET", "/v1/health")).toEqual({ status: 200, body: { ok: true, version: "3.0.0" } });
+ expect(await call("GET", "/v1/health")).toEqual({ status: 200, body: { ok: true, version: "2.2.0" } });
});
it("errors carry a code and a requestId", async () => {
@@ -121,7 +121,7 @@ describe("Codync-Sig over HTTP", () => {
call("POST", "/v1/host/register", {
key,
...o,
- body: { boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "3.0.0" },
+ body: { boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "2.2.0" },
});
it("rejects a replayed nonce", async () => {
@@ -148,7 +148,7 @@ describe("Codync-Sig over HTTP", () => {
const r = await call("POST", "/v1/host/register", {
key: ref.signKey(),
headers: ip,
- body: { boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "3.0.0" },
+ body: { boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "2.2.0" },
});
statuses.push(r.status);
}
@@ -158,7 +158,7 @@ describe("Codync-Sig over HTTP", () => {
it("binds the body", async () => {
const key = ref.signKey();
- const body = ref.enc.encode(JSON.stringify({ boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "3.0.0" }));
+ const body = ref.enc.encode(JSON.stringify({ boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "2.2.0" }));
const sig = ref.signRequest(key, { method: "POST", authority: AUTHORITY, pathAndQuery: "/v1/host/register", body });
const res = await worker.fetch(
new Request(`https://${AUTHORITY}/v1/host/register`, {
diff --git a/cloud/test/helpers.ts b/cloud/test/helpers.ts
index c3d64319..d1ce8d72 100644
--- a/cloud/test/helpers.ts
+++ b/cloud/test/helpers.ts
@@ -186,7 +186,7 @@ export interface TestHost {
export async function newHost(sign = signKey(), box = boxKey()): Promise<TestHost> {
const r = await call("POST", "/v1/host/register", {
key: sign,
- body: { boxKey: b64url(box.pub), name: "Mac", platform: "macos", device: "laptop", version: "3.0.0" },
+ body: { boxKey: b64url(box.pub), name: "Mac", platform: "macos", device: "laptop", version: "2.2.0" },
});
if (r.status !== 200) throw new Error(`register failed: ${JSON.stringify(r.body)}`);
return { sign, box, cid: computerId(sign.pub), ver: 0 };
diff --git a/cloud/test/relay.test.ts b/cloud/test/relay.test.ts
index 167aad9a..923f2357 100644
--- a/cloud/test/relay.test.ts
+++ b/cloud/test/relay.test.ts
@@ -346,7 +346,7 @@ describe("host health check via the API", () => {
const key = ref.signKey();
const r = await call("POST", "/v1/host/register", {
key,
- body: { boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "3.0.0" },
+ body: { boxKey: ref.b64url(ref.boxKey().pub), name: "Mac", platform: "macos", version: "2.2.0" },
});
expect(r.body).toEqual({ computerId: ref.computerId(key.pub), owned: false });
});
diff --git a/docs/remote-relay-spec.md b/docs/remote-relay-spec.md
index 82cce136..2c0e65a0 100644
--- a/docs/remote-relay-spec.md
+++ b/docs/remote-relay-spec.md
@@ -20,7 +20,7 @@
| D6 | 帳號 → Computers → Bots:新增 `AccountStore`(`[ComputerID: BotStore]`),`BotReference = accountId + computerId + botId`。 | 產品決策 5。 |
| D7 | 共用 bearer token(`~/.codync/token`)**只接受 loopback 連線**(Mac App 本機、SSH tunnel、statusline、MCP、TUI、Linux App)。手機與其他遠端 client 一律走 E2E channel。 | 移除「一個 token 開所有手機」的舊模型;不留相容路徑。 |
| D8 | SSH:macOS App 以系統 OpenSSH `-L` 轉發到遠端 host 的 loopback API;遠端側看到的是 loopback 呼叫者,所以 SSH 帳號等同本機使用者權限(能讀 `~/.codync/token` 的人本來就有這權限)。 | 產品決策 6;重用 loopback API,不需要額外授權層。 |
-| D9 | 版本升為 **3.0.0**(`MARKETING_VERSION`、`host/Cargo.toml`):手機↔host 協定不相容(無 token 直連),依 CLAUDE.md 規則升 major。 | 2.x App 不會誤連 3.x host。 |
+| D9 | 正式發布前維持 **2.x**(目前 `2.2.0`,`MARKETING_VERSION`、`host/Cargo.toml`):尚無公開使用者,不必為協定變更升 major。 | 正式發布後才依 CLAUDE.md 規則管理 major 相容性。 |
| D10 | **推播內容也加密**:host 以裝置註冊的 X25519 push key 封裝通知標題/內文(§6.7),APNs 只帶通用文字 + `mutable-content`,iOS Notification Service Extension 解開。Live Activity 只推狀態 enum,不推自由文字。 | 決策 2:Cloudflare(`relay/`)只看得到密文。 |
**審查後的取捨(rev 2)**:
@@ -69,7 +69,7 @@
- `apps/linux/**`、`apps/screen*/**`:不動(它們只用 loopback token / unix socket)。
- 共用唯讀檔:`docs/remote-relay-spec.md`、`docs/remote-relay-vectors.json`。任何 track 要改它們 → 回報 orchestrator,不自行修改。
- `CLAUDE.md`、`docs/cloudflare-account-device-plan.md`、`docs/bot-computer-ssh-plan.md`:由本規格作者更新;各 track 不改。
-- 版本:HOST 把 `host/Cargo.toml` 的 `version` 設為 `3.0.0`;APPLE-APPS 把 `project.yml` 的 `MARKETING_VERSION` 設為 `3.0.0`(`CURRENT_PROJECT_VERSION` 只在上傳時遞增)。
+- 版本:HOST 把 `host/Cargo.toml` 的 `version` 設為 `2.2.0`;APPLE-APPS 把 `project.yml` 的 `MARKETING_VERSION` 設為 `2.2.0`(`CURRENT_PROJECT_VERSION` 只在上傳時遞增)。
**順序**:四條 track 同時開始,各自以 `remote-relay-vectors.json` 做單元測試,互不等待。APPLE-APPS 依賴 APPLE-KIT 的公開 API(§10.1 已定死簽章),可先以本文件寫 UI,kit 完成後接上。跨 track 整合測試(§12.1)由 CLOUD 擁有,在 HOST 合併後執行。
@@ -632,7 +632,7 @@ code 清單:`badRequest`(400) `unauthenticated`(401) `badSignature`(401) `forb
所有 body 為 JSON;時間為 ms。「Clerk」= 需要 Bearer;「Sig(dev)」= 需要該 device key 的 `Codync-Sig`;「Sig(host)」= host key 的 `Codync-Sig`。
**公開**
-- `GET /v1/health` → `{"ok":true,"version":"3.0.0"}`
+- `GET /v1/health` → `{"ok":true,"version":"2.2.0"}`
**Clerk(使用者)**
- `GET /v1/me` → `{"userId","email","createdAt"}`
@@ -1000,7 +1000,7 @@ public struct RosterItem: Identifiable, Sendable { public var ref: BotReference;
- `apps/shared/AccountSession.swift`:新增 `func sessionToken() async throws -> String`(ClerkKit 1.5.6 的 session token API,以實際 SDK 名稱為準)。
- 設定檔:`ClerkConfig.plist` 改名為 `AccountConfig.plist`,keys `clerkPublishableKey`、`cloudURL`(目前填 dev URL);env `CODYNC_CLOUD_URL` 可覆寫。兩個 App 都要。
-- `project.yml`:`MARKETING_VERSION: 3.0.0`;iOS、Widgets、NotificationService 加 `keychain-access-groups: [$(AppIdentifierPrefix)com.pokai.Codync]`,Info.plist 加 `CodyncKeychainGroup`;新增 `NotificationService` app-extension target(`apps/ios/NotificationService/`,bundle id `com.pokai.Codync.ios.NotificationService`,依賴 CodyncKit,embed 進 iOS App);macOS **不加** entitlements(§3.2);改完執行 `xcodegen generate`。
+- `project.yml`:`MARKETING_VERSION: 2.2.0`;iOS、Widgets、NotificationService 加 `keychain-access-groups: [$(AppIdentifierPrefix)com.pokai.Codync]`,Info.plist 加 `CodyncKeychainGroup`;新增 `NotificationService` app-extension target(`apps/ios/NotificationService/`,bundle id `com.pokai.Codync.ios.NotificationService`,依賴 CodyncKit,embed 進 iOS App);macOS **不加** entitlements(§3.2);改完執行 `xcodegen generate`。
- `.github/workflows/release-macos.yml`:配合 `AccountConfig.plist` 改名。
### 11.2 iOS
diff --git a/host/Cargo.lock b/host/Cargo.lock
index 42728fb4..b4925b37 100644
--- a/host/Cargo.lock
+++ b/host/Cargo.lock
@@ -361,7 +361,7 @@ checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
[[package]]
name = "codync-host"
-version = "3.0.0"
+version = "2.2.0"
dependencies = [
"anyhow",
"axum",
diff --git a/host/Cargo.toml b/host/Cargo.toml
index b1608493..466e99a8 100644
--- a/host/Cargo.toml
+++ b/host/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "codync-host"
-version = "3.0.0"
+version = "2.2.0"
edition = "2024"
# let-chains (`if let … && let …`) need 1.88.
rust-version = "1.88"
diff --git a/project.yml b/project.yml
index fd047481..5fe5db38 100644
--- a/project.yml
+++ b/project.yml
@@ -17,7 +17,7 @@ packages:
exactVersion: 153.0.0
settings:
base:
- MARKETING_VERSION: 3.0.0
+ MARKETING_VERSION: 2.2.0
CURRENT_PROJECT_VERSION: 17
SWIFT_VERSION: "6.0"
SWIFT_STRICT_CONCURRENCY: complete