mercury-agent 0.4.27 → 0.5.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.
@@ -1,84 +1,99 @@
1
- # Copy to mercury.yaml in your project root (optional).
2
- # Precedence: MERCURY_* env vars override this file when the env key is set.
3
- # Secrets (API keys, tokens, MERCURY_API_SECRET, etc.) belong in .env only — not here.
4
-
5
- # server:
6
- # port: 8787
7
- # bot_username: mercury
8
-
9
- # model:
10
- # chain:
11
- # - provider: anthropic
12
- # model: claude-sonnet-4-20250514
13
- # # Legacy single primary + optional fallback (when chain is omitted):
14
- # # provider: anthropic
15
- # # model: claude-sonnet-4-20250514
16
- # # fallback_provider: openai
17
- # # fallback: gpt-4o-mini
18
- # # max_retries_per_leg: 2
19
- # # chain_budget_ms: 120000
20
- # # capabilities: { tools: false }
21
-
22
- # Top-level alias for model.chain (optional; model.chain wins if both are set):
23
- # model_chain:
24
- # - provider: google
25
- # model: gemini-2.5-flash
26
-
27
- # ingress:
28
- # discord: false
29
- # slack: false
30
- # teams: false
31
- # whatsapp: false
32
- # telegram: false
33
-
34
- # runtime:
35
- # data_dir: .mercury
36
- # # auth_path: ...
37
- # # whatsapp_auth_dir: .mercury/whatsapp-auth
38
- # max_concurrency: 2
39
- # log_level: info
40
- # log_format: text
41
- # rate_limit_per_user: 10
42
- # rate_limit_window_ms: 60000
43
- # rate_limit_daily_member: 0 # 0 = unlimited; global daily message cap for members
44
- # rate_limit_daily_admin: 0 # 0 = unlimited; global daily message cap for admins
45
-
46
- # trigger:
47
- # patterns: "@Mercury,Mercury"
48
- # match: mention
49
-
50
- # conditional_context:
51
- # enabled: true
52
- # classifier: heuristic
53
- # # classifier_provider: groq
54
- # # classifier_model: llama-3.3-70b-versatile
55
-
56
- # compaction:
57
- # keep_recent_tokens: 20000
58
- # # After each full-session run, auto-compact if the pi session has more than this many entries (10–10000). Omit to disable.
59
- # # auto_compact_threshold: 50
60
-
61
- # agent:
62
- # image: ghcr.io/avishai-tsabari/mercury-agent:latest
63
- # container_timeout_ms: 300000
64
- # container_bwrap_docker_compat: false
65
-
66
- # discord:
67
- # gateway_duration_ms: 600000
68
-
69
- # telegram:
70
- # format_enabled: true
71
-
72
- # media:
73
- # enabled: true
74
- # max_size_mb: 10
75
-
76
- # permissions:
77
- # admins: ""
78
-
79
- # dm_auto_space:
80
- # enabled: false
81
- # admin_ids: # auto-link to "main" space
82
- # - "972501234567"
83
- # default_system_prompt: "" # seeded into auto-created customer spaces
84
- # default_member_permissions: "prompt,prefs.get" # restrict customers to chat only
1
+ # Copy to mercury.yaml in your project root (optional).
2
+ # Precedence: MERCURY_* env vars override this file when the env key is set.
3
+ # Secrets (API keys, tokens, MERCURY_API_SECRET, etc.) belong in .env only — not here.
4
+
5
+ # server:
6
+ # port: 8787
7
+ # bot_username: mercury
8
+
9
+ # model:
10
+ # chain:
11
+ # - provider: anthropic
12
+ # model: claude-sonnet-4-20250514
13
+ # # Legacy single primary + optional fallback (when chain is omitted):
14
+ # # provider: anthropic
15
+ # # model: claude-sonnet-4-20250514
16
+ # # fallback_provider: openai
17
+ # # fallback: gpt-4o-mini
18
+ # # max_retries_per_leg: 2
19
+ # # chain_budget_ms: 120000
20
+ # # capabilities: { tools: false }
21
+
22
+ # Top-level alias for model.chain (optional; model.chain wins if both are set):
23
+ # model_chain:
24
+ # - provider: google
25
+ # model: gemini-2.5-flash
26
+
27
+ # ingress:
28
+ # discord: false
29
+ # slack: false
30
+ # teams: false
31
+ # whatsapp: false
32
+ # telegram: false
33
+
34
+ # runtime:
35
+ # data_dir: .mercury
36
+ # # auth_path: ...
37
+ # # whatsapp_auth_dir: .mercury/whatsapp-auth
38
+ # max_concurrency: 2
39
+ # log_level: info
40
+ # log_format: text
41
+ # rate_limit_per_user: 10
42
+ # rate_limit_window_ms: 60000
43
+ # rate_limit_daily_member: 0 # 0 = unlimited; global daily message cap for members
44
+ # rate_limit_daily_admin: 0 # 0 = unlimited; global daily message cap for admins
45
+
46
+ # trigger:
47
+ # patterns: "@Mercury,Mercury"
48
+ # match: mention
49
+
50
+ # conditional_context:
51
+ # enabled: true
52
+ # classifier: heuristic
53
+ # # classifier_provider: groq
54
+ # # classifier_model: llama-3.3-70b-versatile
55
+
56
+ # compaction:
57
+ # keep_recent_tokens: 20000
58
+ # # After each full-session run, auto-compact if the pi session has more than this many entries (10–10000). Omit to disable.
59
+ # # auto_compact_threshold: 50
60
+
61
+ # agent:
62
+ # image: ghcr.io/avishai-tsabari/mercury-agent:latest
63
+ # container_timeout_ms: 300000
64
+ # container_bwrap_docker_compat: false
65
+
66
+ # discord:
67
+ # gateway_duration_ms: 600000
68
+
69
+ # telegram:
70
+ # format_enabled: true
71
+
72
+ # media:
73
+ # enabled: true
74
+ # max_size_mb: 10
75
+
76
+ # permissions:
77
+ # admins: ""
78
+
79
+ # dm_auto_space:
80
+ # enabled: false
81
+ # admin_ids: # auto-link to "main" space
82
+ # - "972501234567"
83
+ # default_system_prompt: "" # seeded into auto-created customer spaces
84
+ # default_member_permissions: "prompt,prefs.get" # restrict customers to chat only
85
+
86
+ # ─── Applicative profile ────────────────────────────────────────────────────
87
+ # A profile wraps raw capabilities with deterministic business logic and scopes
88
+ # what members may do. Apply one with `mercury profile apply <name|path|git-url>`
89
+ # (it persists to .mercury/active-profile.json and is loaded at startup).
90
+ # The active profile's member_permissions become the EXHAUSTIVE member set, and
91
+ # its capabilities run host-side via `mrctl capability <name> <action>` so
92
+ # credentials never enter the agent container.
93
+ #
94
+ # Env-only override of the active profile name (informational):
95
+ # MERCURY_PROFILE=barber-appointments
96
+ #
97
+ # Host-only signing key for per-turn caller tokens (auto-generated if unset;
98
+ # only set when the API and container-runner run in separate processes):
99
+ # MERCURY_CALLER_TOKEN_KEY=<random-secret>