@technomoron/agent-run 0.99.33 → 0.99.34

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/CHANGES CHANGED
@@ -1,6 +1,13 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
+ Version 0.99.34 (2026-09-07)
5
+ ----------------------------
6
+ * Keep the agent-brain socket under the configured root so the service and
7
+ MCP clients connect regardless of their environment. Restart the service
8
+ and agent sessions after upgrading.
9
+ * Remove the runtime-directory environment variable from the service helper.
10
+
4
11
  Version 0.99.33 (2026-09-06)
5
12
  ----------------------------
6
13
  * Run the agent-brain MCP server as `agent-brain` from `PATH` and choose its
package/README.md CHANGED
@@ -865,8 +865,9 @@ agent-brain serve
865
865
  ```
866
866
 
867
867
  The service hosts SDK Streamable HTTP at `/mcp` using apicore's Fastify instance.
868
- It listens on `$XDG_RUNTIME_DIR/agent-brain.sock`, or
869
- `~/.agent-run/runtime/agent-brain.sock` when that variable is absent. The socket
868
+ It listens on `<config-root>/runtime/agent-brain.sock`, which defaults to
869
+ `~/.agent-run/runtime/agent-brain.sock`. Both the service and clients use the
870
+ configured root regardless of their environment. The socket
870
871
  directory must belong to the current user and have mode `0700`; the socket has
871
872
  mode `0600`. No TCP listener or application user database is created.
872
873
 
@@ -874,7 +875,9 @@ Generated native-agent configurations run `agent-brain mcp` through `PATH`, so
874
875
  `agent-brain` must be installed and available there. The bridge selects the socket
875
876
  when it starts; generated files do not depend on the installation or runtime
876
877
  directory used to render them. Re-render existing profiles with `agent-run update`
877
- to replace older commands that contain absolute installation paths.
878
+ to replace older commands that contain absolute installation paths. After
879
+ upgrading from a version that used a different socket location, restart the service and
880
+ agent sessions so they use the socket under the configuration root.
878
881
 
879
882
  `agent-run mcp` also bridges native-agent stdio to this socket. Use `--socket PATH`
880
883
  for a particular service. The bridge verifies the socket's ownership and private
@@ -888,8 +891,9 @@ stopped. Starting a second service on an existing socket fails without replacing
888
891
  the first service's socket.
889
892
 
890
893
  For a user service, copy `ops/systemd/agent-brain.service` to
891
- `~/.config/systemd/user/`, adjust `ExecStart` if your executable is elsewhere, and
892
- run `systemctl --user daemon-reload` followed by
894
+ `~/.config/systemd/user/` and adjust `ExecStart` if your executable is elsewhere.
895
+ Add `--configdir PATH` to `ExecStart` if you use a custom configuration root.
896
+ Run `systemctl --user daemon-reload` followed by
893
897
  `systemctl --user enable --now agent-brain`. Installation is explicit.
894
898
 
895
899
  The supplied service uses `serve --pull`. On startup this pulls the configuration
@@ -14,7 +14,7 @@ const yaml_1 = require("yaml");
14
14
  const zod_1 = require("zod");
15
15
  const utils_1 = require("../utils");
16
16
  function defaultSocketPath(configRoot) {
17
- return path.join(process.env.XDG_RUNTIME_DIR ?? path.join(configRoot, 'runtime'), 'agent-brain.sock');
17
+ return path.join(configRoot, 'runtime', 'agent-brain.sock');
18
18
  }
19
19
  exports.brainConfigSchema = zod_1.z.object({
20
20
  enabled: zod_1.z.boolean().default(true),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technomoron/agent-run",
3
- "version": "0.99.33",
3
+ "version": "0.99.34",
4
4
  "packageManager": "pnpm@10.34.5",
5
5
  "bin": {
6
6
  "agent-run": "dist/agent-run.js",
@@ -17,7 +17,7 @@ for account in "$@"; do
17
17
  loginctl enable-linger "$username"
18
18
  systemctl start "user@$uid.service"
19
19
  user_systemctl() {
20
- runuser -u "$username" -- env "XDG_RUNTIME_DIR=/run/user/$uid" "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus" systemctl --user "$@"
20
+ runuser -u "$username" -- env "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus" systemctl --user "$@"
21
21
  }
22
22
  user_systemctl daemon-reload
23
23
  user_systemctl enable agent-brain.service