mercury-agent 0.4.23 → 0.4.24

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 (59) hide show
  1. package/docs/ARCHITECTURE.md +30 -0
  2. package/docs/DESIGN.md +42 -0
  3. package/docs/ROADMAP.md +41 -0
  4. package/docs/VISION.md +32 -0
  5. package/docs/archive/.gitkeep +0 -0
  6. package/docs/backlog/.gitkeep +0 -0
  7. package/docs/bugs/.gitkeep +0 -0
  8. package/docs/bugs/bwrap-privileged-linux-docker.md +140 -0
  9. package/docs/debug/major/.gitkeep +0 -0
  10. package/docs/debug/minor/.gitkeep +0 -0
  11. package/docs/debug/moderate/.gitkeep +0 -0
  12. package/docs/html-slides/.gitkeep +0 -0
  13. package/docs/ideas/.gitkeep +0 -0
  14. package/docs/in-progress/.gitkeep +0 -0
  15. package/docs/notes/.gitkeep +0 -0
  16. package/docs/pending-updates/.gitkeep +0 -0
  17. package/docs/runbooks/publish-checklist.md +8 -0
  18. package/docs/templates/TEMPLATE-AUTOPILOT-CONFIG.yaml +35 -0
  19. package/docs/templates/TEMPLATE-BUG.md +71 -0
  20. package/docs/templates/TEMPLATE-CI.yml +25 -0
  21. package/docs/templates/TEMPLATE-DECISIONS.md +11 -0
  22. package/docs/templates/TEMPLATE-FEATURE.md +127 -0
  23. package/docs/templates/TEMPLATE-GOAL.md +31 -0
  24. package/docs/templates/TEMPLATE-IDEA.md +31 -0
  25. package/docs/templates/TEMPLATE-NOTE.md +27 -0
  26. package/docs/templates/TEMPLATE-ROADMAP.md +21 -0
  27. package/examples/extensions/pinchtab/index.ts +1 -1
  28. package/package.json +1 -1
  29. package/src/adapters/whatsapp.ts +635 -635
  30. package/src/agent/container-entry.ts +1021 -1021
  31. package/src/agent/container-runner.ts +18 -12
  32. package/src/agent/model-capabilities.ts +231 -231
  33. package/src/bridges/discord.ts +178 -178
  34. package/src/bridges/slack.ts +179 -179
  35. package/src/bridges/teams.ts +162 -162
  36. package/src/bridges/telegram.ts +579 -579
  37. package/src/cli/mercury.ts +2587 -2585
  38. package/src/cli/whatsapp-auth.ts +263 -263
  39. package/src/config.ts +316 -316
  40. package/src/core/commands.ts +110 -110
  41. package/src/core/permissions.ts +196 -196
  42. package/src/core/router.ts +204 -204
  43. package/src/core/routes/chat.ts +175 -175
  44. package/src/core/routes/dashboard.ts +2493 -2493
  45. package/src/core/routes/messages.ts +37 -37
  46. package/src/core/routes/mutes.ts +95 -95
  47. package/src/core/routes/roles.ts +135 -135
  48. package/src/core/runtime.ts +1508 -1508
  49. package/src/core/task-scheduler.ts +139 -139
  50. package/src/extensions/catalog.ts +117 -117
  51. package/src/extensions/hooks.ts +161 -161
  52. package/src/extensions/installer.ts +306 -306
  53. package/src/extensions/loader.ts +271 -271
  54. package/src/extensions/permission-guard.ts +52 -52
  55. package/src/server.ts +391 -391
  56. package/src/storage/db.ts +1684 -1687
  57. package/src/storage/pi-auth.ts +95 -95
  58. package/src/tts/azure.ts +52 -52
  59. package/src/tts/synthesize.ts +133 -133
@@ -0,0 +1,21 @@
1
+ # Roadmap: {Goal Title}
2
+
3
+ **Goal**: [{goal-slug}](goal.md)
4
+ **Last updated**: {YYYY-MM-DD}
5
+
6
+ ## Milestones
7
+
8
+ ### Milestone 1: {name}
9
+ > {One-line description of what's testable after this milestone}
10
+
11
+ | ID | Story | Slug | Depends on | Status |
12
+ |----|-------|------|------------|--------|
13
+ | M1.1 | {story title} | {feature-slug} | — | backlog |
14
+ | M1.2 | {story title} | {feature-slug} | M1.1 | blocked |
15
+
16
+ **Checkpoint:** {What the human should test after this milestone completes}
17
+
18
+ ## Dependency Graph
19
+
20
+ {ASCII or text description of which stories block which. Can be as simple as
21
+ "1 → 2 → 3, 1 → 4" for linear + parallel branches.}
@@ -8,7 +8,7 @@ export default function (mercury: {
8
8
  mercury.cli({
9
9
  name: "pinchtab",
10
10
  install:
11
- 'npm install -g pinchtab playwright && npx playwright install --with-deps chromium && CHROMIUM=$(NODE_PATH="$(npm root -g)" node -e "try{process.stdout.write(require(\'playwright\').chromium.executablePath())}catch(e){}" 2>/dev/null) && { test -x "$CHROMIUM" || CHROMIUM=$(find /home/mercury/.cache/ms-playwright -type f -path \'*/chrome-linux/chrome\' ! -path \'*headless_shell*\' 2>/dev/null | head -1); } && test -n "$CHROMIUM" && test -x "$CHROMIUM" && ln -sf "$CHROMIUM" /usr/local/bin/chromium && ln -sf "$CHROMIUM" /usr/bin/chromium && rm -rf /var/lib/apt/lists/*',
11
+ 'npm install -g pinchtab@0.13.2 playwright && npx playwright install --with-deps chromium && CHROMIUM=$(NODE_PATH="$(npm root -g)" node -e "try{process.stdout.write(require(\'playwright\').chromium.executablePath())}catch(e){}" 2>/dev/null) && { test -x "$CHROMIUM" || CHROMIUM=$(find /home/mercury/.cache/ms-playwright -type f -path \'*/chrome-linux/chrome\' ! -path \'*headless_shell*\' 2>/dev/null | head -1); } && test -n "$CHROMIUM" && test -x "$CHROMIUM" && ln -sf "$CHROMIUM" /usr/local/bin/chromium && ln -sf "$CHROMIUM" /usr/bin/chromium && rm -rf /var/lib/apt/lists/*',
12
12
  });
13
13
  mercury.permission({ defaultRoles: ["admin", "member"] });
14
14
  mercury.skill("./skill");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercury-agent",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "Personal AI assistant for chat platforms (WhatsApp, Slack, Discord, Telegram)",
5
5
  "license": "MIT",
6
6
  "author": "Avishai Tsabari",