talon-agent 5.6.0 → 5.7.0

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/README.md CHANGED
@@ -249,6 +249,7 @@ The `native` frontend turns the daemon into a **client bridge** — a versioned
249
249
  - **Local (desktop):** the app connects to a Talon on the same machine and launches one if needed (`TALON_FRONTEND_OVERRIDE=desktop`).
250
250
  - **Remote (mobile/LAN):** point the app at `host:port` + token; the bridge requires `Authorization: Bearer …` (or `?token=` on the SSE stream) whenever a token is set.
251
251
  - **Encryption:** off-loopback binds serve **HTTPS by default** with a persistent self-signed certificate (`~/.talon/keys/`); the companion pins its SHA-256 fingerprint on first connect and refuses any change afterwards. The daemon logs the fingerprint at startup and `/health` advertises it. Opt out (or in, on loopback) with `"tls": false` / `true` in the `native` section.
252
+ - **From anywhere, certificate-only (Immich-style):** put your reverse proxy (Caddy, nginx, Traefik, Cloudflare Tunnel) in front with client-certificate auth; import the `.p12` in the companion, which also switches to your home-network address whenever it answers. Talon still authenticates with its token — see [docs/mtls.md](docs/mtls.md).
252
253
 
253
254
  The app **keeps itself up to date** — it watches this repo's releases and installs the next one itself (silently on a rooted/Shizuku phone, swap-and-relaunch on desktop; see [docs/companion-updates.md](docs/companion-updates.md)). It provides multi-chat history, live streaming with reasoning + tool-call visibility, per-chat model/effort/reset, and **settings sync** — read and change the daemon's own config (default model, display name, timezone, pulse/heartbeat/dream) and restart it. See [apps/companion/README.md](apps/companion/README.md).
254
255
 
@@ -529,7 +530,7 @@ Commands: `/model`, `/effort`, `/context`, `/status`, `/reset`, `/rename`, `/res
529
530
 
530
531
  ## Production
531
532
 
532
- **Docker:** the image runs the daemon on Bun (`bun src/index.ts`); `~/.talon` and `~/.claude` are bind-mounted from the host into the container's `HOME=/home/bun`.
533
+ **Docker:** the image runs the daemon on Bun (`bun src/index.ts`); `~/.talon` and `~/.claude` are bind-mounted from the host into the container's `HOME=/home/bun`. Prebuilt images are on GHCR (`ghcr.io/dylanneve1/talon:latest`), and a first boot can be configured entirely from `TALON_*` environment variables — see **[docs/docker.md](docs/docker.md)** for the quick install, and **[docs/truenas.md](docs/truenas.md)** for a step-by-step TrueNAS SCALE install.
533
534
 
534
535
  ```bash
535
536
  docker compose up -d
@@ -537,6 +538,8 @@ docker compose up -d
537
538
 
538
539
  A Node 24 + tsx image is kept as a fallback for one release cycle: `docker build --build-arg RUNTIME=node -t talon .` (or set `build.args.RUNTIME` in `docker-compose.yml`). Mount paths are the same for both. See [`packaging/README.md`](packaging/README.md#docker-image) for the build's details.
539
540
 
541
+ The image is also ready for the **Antigravity (`agy`) backend**: add `-f docker-compose.agy.yml` to mount `~/.gemini` and the `agy` binary (or bake the binary in with `AGY_DOWNLOAD_URL` + `AGY_SHA256`). See [docs/docker.md](docs/docker.md#antigravity-agy-backend).
542
+
540
543
  **Systemd:** unit file at `packaging/systemd/talon.service` — copy to `/etc/systemd/system/`, set `User=` and `WorkingDirectory=`, then `systemctl enable --now talon`.
541
544
 
542
545
  **Health endpoint:** `GET http://localhost:19876/health` returns JSON with uptime, memory, queue depth, active sessions, and last activity timestamp.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "talon-agent",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Multi-frontend AI agent with full tool access, streaming, cron jobs, and plugin system",
5
5
  "author": "Dylan Neve",
6
6
  "license": "MIT",
@@ -192,6 +192,16 @@ const nativeConfigSchema = z
192
192
  * working zero-config).
193
193
  */
194
194
  tls: z.boolean().optional(),
195
+ /**
196
+ * The URL other devices should dial, when it isn't the bind address —
197
+ * a container (Docker, TrueNAS) or anything behind NAT or a proxy,
198
+ * where the bridge only sees its internal IP. Used for pairing links,
199
+ * node installers and `/mesh`. e.g. "https://truenas.lan:19880".
200
+ */
201
+ publicUrl: z
202
+ .string()
203
+ .regex(/^https?:\/\/\S+$/, "native.publicUrl must be an http(s) URL")
204
+ .optional(),
195
205
  })
196
206
  .strict();
197
207
 
@@ -40,6 +40,11 @@ export type MeshBridgeInfo = {
40
40
  token?: string;
41
41
  /** TLS certificate SHA-256 (absent over plain HTTP). */
42
42
  fingerprint?: string;
43
+ /**
44
+ * The operator's `native.publicUrl`: what devices dial when the bind
45
+ * address isn't reachable as-is (containers, NAT, proxies).
46
+ */
47
+ publicUrl?: string;
43
48
  };
44
49
 
45
50
  export class BridgeLinks {
@@ -261,9 +266,10 @@ export class BridgeLinks {
261
266
  }
262
267
 
263
268
  /**
264
- * The bridge base URL a NEW host should dial: an explicit override wins;
265
- * otherwise derive from the bridge's bind. A wildcard bind maps to this
266
- * host's first external IPv4; a loopback bind is unreachable from other
269
+ * The bridge base URL a NEW host should dial: an explicit override wins,
270
+ * then the configured `native.publicUrl`; otherwise derive from the
271
+ * bridge's bind. A wildcard bind maps to this host's first external IPv4;
272
+ * a loopback bind is unreachable from other
267
273
  * machines, so it's an error rather than a link that can't work.
268
274
  */
269
275
  private bridgeBaseUrl(
@@ -277,6 +283,10 @@ export class BridgeLinks {
277
283
  }
278
284
  return url;
279
285
  }
286
+ // Inside a container the "first external IPv4" is the container's own
287
+ // bridge-network address, which no phone can reach — the operator's
288
+ // public URL is the only right answer there.
289
+ if (info.publicUrl) return info.publicUrl.trim().replace(/\/+$/, "");
280
290
  let host = info.host;
281
291
  if (host === "0.0.0.0" || host === "::") {
282
292
  const external = firstExternalIPv4();
@@ -185,6 +185,9 @@ export function createNativeFrontend(
185
185
  port: server.getPort(),
186
186
  ...(listen.token ? { token: listen.token } : {}),
187
187
  ...(fingerprint ? { fingerprint } : {}),
188
+ ...(config.native?.publicUrl
189
+ ? { publicUrl: config.native.publicUrl }
190
+ : {}),
188
191
  });
189
192
  await writeBridgeDiscovery({
190
193
  port: server.getPort(),