mercury-agent 0.7.0-beta.0 → 0.7.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercury-agent",
3
- "version": "0.7.0-beta.0",
3
+ "version": "0.7.0-beta.1",
4
4
  "description": "Personal AI assistant for chat platforms (WhatsApp, Slack, Discord, Telegram)",
5
5
  "license": "MIT",
6
6
  "author": "Avishai Tsabari",
@@ -244,7 +244,9 @@ async function runSingleAgent(
244
244
  };
245
245
  }
246
246
 
247
- const args: string[] = ["--mode", "json", "-p", "--no-session"];
247
+ // --no-approve: the trust store dir (~/.pi/agent) is mounted read-only in
248
+ // containers and any trust-store access acquires a lock there (EROFS crash).
249
+ const args: string[] = ["--mode", "json", "-p", "--no-session", "--no-approve"];
248
250
  if (agent.model) args.push("--model", agent.model);
249
251
  if (agent.tools && agent.tools.length > 0) args.push("--tools", agent.tools.join(","));
250
252
 
@@ -835,6 +835,13 @@ function invokePiOnce(
835
835
  "--print",
836
836
  "--mode",
837
837
  "json",
838
+ // Skip pi's project-trust store entirely. The store lives in
839
+ // /home/mercury/.pi/agent (mounted :ro) and even a read locks it via
840
+ // proper-lockfile (mkdir trust.json.lock → EROFS). Workspaces with
841
+ // trust-requiring resources already resolved to "untrusted" in
842
+ // non-interactive mode, and without such resources nothing trust-gated
843
+ // loads — so --no-approve preserves behavior either way.
844
+ "--no-approve",
838
845
  ...sessionArgs,
839
846
  "--provider",
840
847
  provider,