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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
build(desktop): package Codync Dev in under a minute
leepokai80b5acd1bab4
diff --git a/apps/desktop/electron-builder.dev.yml b/apps/desktop/electron-builder.dev.ymlindex 68fd7234..3cf98a20 100644--- a/apps/desktop/electron-builder.dev.yml+++ b/apps/desktop/electron-builder.dev.yml@@ -11,6 +11,11 @@ protocols:schemes: [codync-dev, com.pokai.Codync.dev]publish: nullmac:+ # Codync Dev only runs on the Mac that built it: an app folder for its architecture, signed+ # without Apple's timestamp server (one round trip per file, about 5 minutes a build; only+ # notarized builds need it).+ target: [dir]+ timestamp: nonesignIgnore:- CodyncDevScreen\.app/Contents/Helpers/cua-driver$artifactName: codync-dev-macos.${ext}diff --git a/apps/desktop/tools/native-host.mjs b/apps/desktop/tools/native-host.mjsindex aa5600bb..07ff3e0c 100644--- a/apps/desktop/tools/native-host.mjs+++ b/apps/desktop/tools/native-host.mjs@@ -1,6 +1,7 @@// Builds the host the app bundles for the same environment as the app: node tools/native-host.mjs// dev|main compiles it in as CODYNC_ENV. Built on every package so a host made for another-// environment is never shipped. macOS: build/native/codync-host (universal). Windows:+// environment is never shipped. macOS: build/native/codync-host (universal; Codync Dev: this Mac's+// architecture only, since it never leaves the Mac that built it). Windows:// build/native/codync-host.exe and codync-hostw.exe (runs it at sign-in), plus the computer-use// driver the host starts from beside itself. Linux apps use the installed host, so there's// nothing to do there.@@ -20,16 +21,20 @@ const out = join(root, 'build/native')const tool = (name) => execFileSync('rustup', ['which', name], { cwd: host, encoding: 'utf8' }).trim()const [cargo, rustc] = [tool('cargo'), tool('rustc')]const run = (cmd, args) => execFileSync(cmd, args, { stdio: 'inherit', env: { ...process.env, CODYNC_ENV: env, RUSTC: rustc } })-const build = (target) => run(cargo, ['build', '--release', '--manifest-path', join(host, 'Cargo.toml'), '--target', target])+// Codync Dev builds in the host's `dev-app` profile: seconds to rebuild instead of minutes.+const profile = env === 'dev' ? 'dev-app' : 'release'+const build = (target) => run(cargo, ['build', '--profile', profile, '--manifest-path', join(host, 'Cargo.toml'), '--target', target])+const built = (target, name) => join(host, 'target', target, profile, name)mkdirSync(out, { recursive: true })if (process.platform === 'win32') {const target = 'x86_64-pc-windows-msvc'build(target)- for (const exe of ['codync-host.exe', 'codync-hostw.exe']) copyFileSync(join(host, 'target', target, 'release', exe), join(out, env === 'dev' && exe === 'codync-hostw.exe' ? 'codync-dev-hostw.exe' : exe))+ for (const exe of ['codync-host.exe', 'codync-hostw.exe']) copyFileSync(built(target, exe), join(out, env === 'dev' && exe === 'codync-hostw.exe' ? 'codync-dev-hostw.exe' : exe))run(process.execPath, [join(root, '../../packaging/cua-driver/fetch.mjs'), 'windows-x86_64', out])} else {- const targets = ['aarch64-apple-darwin', 'x86_64-apple-darwin']+ const native = process.arch === 'arm64' ? 'aarch64-apple-darwin' : 'x86_64-apple-darwin'+ const targets = env === 'dev' ? [native] : ['aarch64-apple-darwin', 'x86_64-apple-darwin']for (const target of targets) build(target)- run('lipo', ['-create', '-output', join(out, 'codync-host'), ...targets.map((t) => join(host, 'target', t, 'release/codync-host'))])+ run('lipo', ['-create', '-output', join(out, 'codync-host'), ...targets.map((t) => built(t, 'codync-host'))])}console.log(`host: ${env}`)diff --git a/docs/architecture/desktop-app.md b/docs/architecture/desktop-app.mdindex ec0d3092..fd71d07e 100644--- a/docs/architecture/desktop-app.md+++ b/docs/architecture/desktop-app.md@@ -138,7 +138,10 @@ npm run dist:win:dev # / dist:win:main, on Windows (builds the bundled hostThey write `resources/account-config.json` for that environment, and the Mac ones build thebundled host (`tools/native-host.mjs`, universal, through rustup's pinned toolchain) for the sameone, so app and host always match, plus the Codync Screen helper (`tools/native-screen.mjs`).-Extra electron-builder flags go after `--` (`npm run dist:mac:dev -- --dir --arm64`). The speech+`dist:mac:dev` builds only what this Mac runs: the app folder for its architecture+(`dist/mac-arm64/Codync Dev.app` on Apple silicon), the host for that architecture in the faster+`dev-app` profile, and signatures without Apple's timestamp server (only notarized builds need it;+asking it for every file adds about 5 minutes). Extra electron-builder flags go after `--`. The speechhelper at the top of `electron-builder.yml` doesn't depend on the environment; place it first(the release workflow, `.github/workflows/release-desktop.yml`, shows how).`dist:mac:dev` signs with the team 7FUM8A8H72 development certificate (`CSC_NAME` indiff --git a/host/Cargo.toml b/host/Cargo.tomlindex 8aaaeb07..79fea47b 100644--- a/host/Cargo.toml+++ b/host/Cargo.toml@@ -90,6 +90,14 @@ lto = "thin"codegen-units = 1strip = true+# The host Codync Dev bundles (apps/desktop/tools/native-host.mjs): optimized like a release, but+# a host change rebuilds in about 25 s instead of 80 s per architecture.+[profile.dev-app]+inherits = "release"+lto = false+codegen-units = 16+incremental = true+[target.'cfg(unix)'.dependencies]libc = "0.2"