@fancyboi999/open-tag-daemon 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +5 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -6037,8 +6037,11 @@ conn = new Connection(serverUrl, apiKey, (msg) => {
6037
6037
  case "ready:ack":
6038
6038
  if (typeof msg.machineId === "string" && msg.machineId) saveMachineId(msg.machineId);
6039
6039
  break;
6040
+ // Agent dials the same server URL this daemon connected with (proven reachable), overriding the
6041
+ // server-reported config.serverUrl (SELF_URL = localhost:PORT on the server box — wrong whenever the
6042
+ // daemon runs on a different host than the server, e.g. local daemon ↔ getopentag.com).
6040
6043
  case "agent:start":
6041
- void mgr.start(msg.agentId, { ...msg.config });
6044
+ void mgr.start(msg.agentId, { ...msg.config, serverUrl });
6042
6045
  break;
6043
6046
  case "agent:deliver":
6044
6047
  mgr.deliver(msg.agentId, msg.from ?? "someone", msg.target ?? "", !!msg.mentioned, { targetName: msg.targetName, msgShort: msg.msgShort, isTask: msg.isTask });
@@ -6082,7 +6085,7 @@ conn = new Connection(serverUrl, apiKey, (msg) => {
6082
6085
  runningAgents: mgr.running(),
6083
6086
  hostname: os4.hostname(),
6084
6087
  os: `${os4.platform()} ${os4.arch()}`,
6085
- daemonVersion: "0.5.0",
6088
+ daemonVersion: "0.5.1",
6086
6089
  machineId: readMachineId()
6087
6090
  // Stable identity: empty on first connection; server sends it back via ready:ack for persistence.
6088
6091
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fancyboi999/open-tag-daemon",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "open-tag compute-plane daemon — connect any machine to an open-tag server so its agents run there. No repo clone needed.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",