morpheus-cli 0.9.30 → 0.9.31
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/README.md +97 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,8 @@ It runs as a daemon and orchestrates LLMs, MCP tools, DevKit tools, memory, and
|
|
|
14
14
|
- Chronos temporal scheduler for recurring and one-time Oracle executions.
|
|
15
15
|
- Smith remote agent system for DevKit execution on isolated machines via WebSocket.
|
|
16
16
|
- Multi-channel output via ChannelRegistry (Telegram, Discord) with per-job routing.
|
|
17
|
-
-
|
|
17
|
+
- Google Workspace automation via 102 built-in skills (Gmail, Drive, Sheets, Calendar, Docs, Tasks).
|
|
18
|
+
- Rich operational visibility in UI (chat traces, tasks, usage, logs, real-time activity visualization).
|
|
18
19
|
|
|
19
20
|
## Multi-Agent Roles
|
|
20
21
|
- `Oracle`: orchestration and routing. Decides direct answer vs async delegation.
|
|
@@ -325,6 +326,7 @@ Adding a new channel requires only implementing `IChannelAdapter` (`channel`, `s
|
|
|
325
326
|
## Web UI
|
|
326
327
|
|
|
327
328
|
The dashboard includes:
|
|
329
|
+
- **Dashboard** with real-time 3D agent visualization and Matrix-style activity feed (live agent events via SSE)
|
|
328
330
|
- Chat with session management and browser notifications
|
|
329
331
|
- Tasks page (stats, filters, details, retry, pagination)
|
|
330
332
|
- Agent settings (Oracle/Sati/Neo/Apoc/Trinity/Smiths)
|
|
@@ -335,7 +337,7 @@ The dashboard includes:
|
|
|
335
337
|
- Chronos scheduler (create/edit/delete jobs, execution history)
|
|
336
338
|
- Smiths management (add/edit/delete, real-time status, ping)
|
|
337
339
|
- Audit dashboard (session audit, tool call tracking, cost breakdowns with currency conversion)
|
|
338
|
-
- Webhooks and notification inbox
|
|
340
|
+
- Webhooks and notification inbox (with per-webhook API key toggle for public/secured webhooks)
|
|
339
341
|
- Logs viewer
|
|
340
342
|
- Danger Zone (Settings → reset sessions, tasks, jobs, audit, or factory reset)
|
|
341
343
|
- Display currency setting (Settings → Interface): converts USD costs to BRL, EUR, CAD, JPY, GBP, AUD, CHF, ARS, or any custom currency
|
|
@@ -430,6 +432,10 @@ audio:
|
|
|
430
432
|
voice: Kore # voice name (provider-specific)
|
|
431
433
|
style_prompt: "" # optional tone/style prefix (Gemini only)
|
|
432
434
|
|
|
435
|
+
gws: # Google Workspace integration
|
|
436
|
+
enabled: true # sync and use GWS skills (default: true)
|
|
437
|
+
service_account_json: "" # path to Google Service Account JSON key
|
|
438
|
+
|
|
433
439
|
currency: # display currency for cost dashboards
|
|
434
440
|
code: USD # ISO 4217 code (e.g. BRL, EUR)
|
|
435
441
|
symbol: $ # symbol shown in UI
|
|
@@ -519,6 +525,8 @@ Generic Morpheus overrides (selected):
|
|
|
519
525
|
| `MORPHEUS_DISCORD_ALLOWED_USERS` | `channels.discord.allowedUsers` |
|
|
520
526
|
| `MORPHEUS_UI_ENABLED` | `ui.enabled` |
|
|
521
527
|
| `MORPHEUS_UI_PORT` | `ui.port` |
|
|
528
|
+
| `MORPHEUS_GWS_ENABLED` | `gws.enabled` |
|
|
529
|
+
| `MORPHEUS_GWS_SERVICE_ACCOUNT_JSON` | `gws.service_account_json` |
|
|
522
530
|
| `MORPHEUS_LOGGING_ENABLED` | `logging.enabled` |
|
|
523
531
|
| `MORPHEUS_LOGGING_LEVEL` | `logging.level` |
|
|
524
532
|
| `MORPHEUS_LOGGING_RETENTION` | `logging.retention` |
|
|
@@ -619,6 +627,87 @@ Copy them to your skills directory:
|
|
|
619
627
|
cp -r examples/skills/* ~/.morpheus/skills/
|
|
620
628
|
```
|
|
621
629
|
|
|
630
|
+
## Google Workspace (GWS) Integration
|
|
631
|
+
|
|
632
|
+
Morpheus integrates with Google Workspace via the `gws` CLI tool. 102 built-in skills provide structured instructions for automating Gmail, Drive, Sheets, Calendar, Docs, Tasks, and more.
|
|
633
|
+
|
|
634
|
+
### Prerequisites
|
|
635
|
+
|
|
636
|
+
1. **Install the `gws` CLI:**
|
|
637
|
+
```bash
|
|
638
|
+
npm install -g @nicholasgriffintn/google-workspace-cli
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
2. **Create a Google Service Account:**
|
|
642
|
+
- Go to [Google Cloud Console](https://console.cloud.google.com/)
|
|
643
|
+
- Create or select a project
|
|
644
|
+
- Enable desired APIs (Gmail, Drive, Sheets, Calendar, Docs, etc.)
|
|
645
|
+
- IAM & Admin → Service Accounts → Create Service Account
|
|
646
|
+
- Grant the service account [Domain-Wide Delegation](https://developers.google.com/workspace/guides/create-credentials#service-account) if needed
|
|
647
|
+
- Create a JSON key and download it
|
|
648
|
+
|
|
649
|
+
3. **Configure Morpheus:**
|
|
650
|
+
|
|
651
|
+
Add to `~/.morpheus/zaion.yaml`:
|
|
652
|
+
```yaml
|
|
653
|
+
gws:
|
|
654
|
+
enabled: true
|
|
655
|
+
service_account_json: /path/to/your-service-account-key.json
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
Or via environment variable:
|
|
659
|
+
```bash
|
|
660
|
+
MORPHEUS_GWS_SERVICE_ACCOUNT_JSON=/path/to/your-service-account-key.json
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
### How It Works
|
|
664
|
+
|
|
665
|
+
GWS skills are synced automatically at startup from the built-in `gws-skills/skills/` directory to `~/.morpheus/skills/`. Skills are organized in four categories:
|
|
666
|
+
|
|
667
|
+
| Category | Count | Description |
|
|
668
|
+
|---|---|---|
|
|
669
|
+
| **Services** | 17 | Core API skills (`gws-gmail`, `gws-drive`, `gws-sheets`, `gws-calendar`, `gws-docs`, `gws-tasks`, etc.) |
|
|
670
|
+
| **Helpers** | 22 | Shortcut skills for common operations (`gws-gmail-send`, `gws-drive-upload`, `gws-sheets-append`, `gws-calendar-insert`) |
|
|
671
|
+
| **Personas** | 10 | Role-based skill bundles (`persona-exec-assistant`, `persona-project-manager`, `persona-hr-coordinator`) |
|
|
672
|
+
| **Recipes** | 42+ | Multi-step task sequences (`recipe-create-doc-from-template`, `recipe-send-team-announcement`, `recipe-plan-weekly-schedule`) |
|
|
673
|
+
|
|
674
|
+
### Usage Examples
|
|
675
|
+
|
|
676
|
+
Just ask Morpheus naturally — Apoc auto-detects GWS tasks and loads the right skills:
|
|
677
|
+
|
|
678
|
+
```
|
|
679
|
+
"Send an email to alice@example.com with the weekly report"
|
|
680
|
+
"Create a Google Sheet named 'Q2 Budget' with columns for category, amount, and notes"
|
|
681
|
+
"List my unread Gmail messages"
|
|
682
|
+
"Add an event to my calendar tomorrow at 10 AM: Team standup"
|
|
683
|
+
"Upload specs/spec.md to my Google Drive"
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
Oracle can also explicitly load skills via `load_skill` when needed.
|
|
687
|
+
|
|
688
|
+
### Skill Customization
|
|
689
|
+
|
|
690
|
+
GWS skills use smart sync with MD5 hashing:
|
|
691
|
+
- **New skills**: Automatically copied on startup
|
|
692
|
+
- **Unmodified skills**: Updated to latest version
|
|
693
|
+
- **User-customized skills**: Preserved (your edits are never overwritten)
|
|
694
|
+
|
|
695
|
+
To customize a skill, edit the `SKILL.md` file in `~/.morpheus/skills/<skill-name>/`. Your changes will be preserved across updates.
|
|
696
|
+
|
|
697
|
+
### Docker
|
|
698
|
+
|
|
699
|
+
Add the service account JSON as a volume mount:
|
|
700
|
+
|
|
701
|
+
```bash
|
|
702
|
+
docker run -d \
|
|
703
|
+
--name morpheus-agent \
|
|
704
|
+
-p 3333:3333 \
|
|
705
|
+
-e MORPHEUS_GWS_SERVICE_ACCOUNT_JSON=/root/.morpheus/gws/credentials.json \
|
|
706
|
+
-v /path/to/your-key.json:/root/.morpheus/gws/credentials.json:ro \
|
|
707
|
+
-v morpheus_data:/root/.morpheus \
|
|
708
|
+
morpheus
|
|
709
|
+
```
|
|
710
|
+
|
|
622
711
|
## Link — Document RAG
|
|
623
712
|
|
|
624
713
|
Link is a documentation specialist subagent that provides RAG (Retrieval-Augmented Generation) over user documents.
|
|
@@ -810,8 +899,14 @@ src/
|
|
|
810
899
|
runtime/
|
|
811
900
|
container.ts # ServiceContainer — DI composition root
|
|
812
901
|
oracle.ts # Orchestration brain
|
|
902
|
+
gws-sync.ts # Smart sync of built-in GWS skills
|
|
903
|
+
display.ts # Activity event emission for real-time visualization
|
|
813
904
|
ports/ # Port interfaces (INotifier, ITaskEnqueuer, IChatHistory, ILLMProviderFactory, IAuditEmitter)
|
|
814
905
|
adapters/ # Concrete adapter implementations for ports
|
|
906
|
+
skills/
|
|
907
|
+
registry.ts # SkillRegistry singleton — manages loaded skills
|
|
908
|
+
loader.ts # Discovers and parses SKILL.md files
|
|
909
|
+
tool.ts # load_skill tool for Oracle
|
|
815
910
|
providers/
|
|
816
911
|
factory.ts # ProviderFactory — strategy-based LLM creation
|
|
817
912
|
strategies.ts # IProviderStrategy + per-provider implementations
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "morpheus-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.31",
|
|
4
4
|
"description": "Morpheus is a local AI agent for developers, running as a CLI daemon that connects to LLMs, local tools, and MCPs, enabling interaction via Terminal, Telegram, and Discord. Inspired by the character Morpheus from *The Matrix*, the project acts as an intelligent orchestrator, bridging the gap between the developer and complex systems.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"morpheus": "./bin/morpheus.js"
|