myceliumail 1.0.12 β 1.1.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.
- package/ANNOUNCEMENT.md +179 -0
- package/CHANGELOG.md +42 -0
- package/PR_DESCRIPTION.md +127 -0
- package/PUBLISHING_CHECKLIST.md +171 -0
- package/README.md +66 -0
- package/READY_TO_SHIP.md +229 -0
- package/RELEASE_NOTES_v1.1.0.md +113 -0
- package/dist/bin/myceliumail.js +0 -0
- package/dist/commands/watch.d.ts +1 -0
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js +21 -0
- package/dist/commands/watch.js.map +1 -1
- package/dist/dashboard/routes.d.ts.map +1 -1
- package/dist/dashboard/routes.js +20 -0
- package/dist/dashboard/routes.js.map +1 -1
- package/dist/lib/action-dispatcher.d.ts +53 -0
- package/dist/lib/action-dispatcher.d.ts.map +1 -0
- package/dist/lib/action-dispatcher.js +179 -0
- package/dist/lib/action-dispatcher.js.map +1 -0
- package/dist/lib/webhook-handler.d.ts +45 -0
- package/dist/lib/webhook-handler.d.ts.map +1 -0
- package/dist/lib/webhook-handler.js +110 -0
- package/dist/lib/webhook-handler.js.map +1 -0
- package/docs/ACTION_DISPATCHER.md +277 -0
- package/docs/AGENT_WAKE_FLOW.md +233 -0
- package/docs/CHANGELOG_DRAFT.md +382 -0
- package/docs/TESTING_WAKE_SYSTEM.md +549 -0
- package/docs/TEST_RESULTS.md +183 -0
- package/docs/WEBHOOK_SETUP.md +190 -0
- package/package.json +1 -1
- package/publish.sh +50 -0
- package/src/commands/watch.ts +22 -0
- package/src/dashboard/routes.ts +30 -0
- package/src/lib/action-dispatcher.ts +223 -0
- package/src/lib/webhook-handler.ts +137 -0
- package/supabase/migrations/002_fix_security_advisor.sql +50 -0
- package/vscode-extension/LICENSE +21 -0
- package/vscode-extension/src/extension.ts +1 -1
- package/vscode-extension/src/handlers.ts +118 -23
package/ANNOUNCEMENT.md
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Myceliumail v1.1.0 Announcement
|
|
2
|
+
|
|
3
|
+
## π Myceliumail v1.1.0 Released - Agent Wake System & Action Dispatcher
|
|
4
|
+
|
|
5
|
+
I'm excited to announce **Myceliumail v1.1.0**, featuring a powerful new **Agent Wake System** and **Action Dispatcher** for AI agents!
|
|
6
|
+
|
|
7
|
+
### π What's New
|
|
8
|
+
|
|
9
|
+
**Agent Wake System**
|
|
10
|
+
Agents can now automatically "wake up" and respond when messages arrive:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
mycmail watch --wake # Agent listens and responds automatically
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Action Dispatcher**
|
|
17
|
+
Execute actions directly from message subjects using `[action: name]` syntax:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
mycmail send agent "[action: log] deployment complete" -m "Details..."
|
|
21
|
+
# β Agent wakes β executes action β logs to collaborative file
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Built-in Actions:**
|
|
25
|
+
- `log` - Log to collaborative files
|
|
26
|
+
- `echo` - Echo test
|
|
27
|
+
- `status` - Status check
|
|
28
|
+
- More coming soon!
|
|
29
|
+
|
|
30
|
+
**Webhook Support**
|
|
31
|
+
Production-ready webhooks for always-on agents with Supabase integration.
|
|
32
|
+
|
|
33
|
+
**VS Code Extension**
|
|
34
|
+
Enhanced with auto-executing actions and non-blocking notifications.
|
|
35
|
+
|
|
36
|
+
### π Documentation
|
|
37
|
+
|
|
38
|
+
Comprehensive new guides:
|
|
39
|
+
- Agent Wake Flow (with diagrams)
|
|
40
|
+
- Action Dispatcher Guide
|
|
41
|
+
- Webhook Setup Instructions
|
|
42
|
+
- Testing Guide
|
|
43
|
+
|
|
44
|
+
### π Get Started
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install -g myceliumail
|
|
48
|
+
mycmail watch --wake
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### π Links
|
|
52
|
+
|
|
53
|
+
- **GitHub:** https://github.com/treebird7/Myceliumail
|
|
54
|
+
- **npm:** https://www.npmjs.com/package/myceliumail
|
|
55
|
+
- **Docs:** https://github.com/treebird7/Myceliumail/tree/main/docs
|
|
56
|
+
|
|
57
|
+
### π‘ Use Cases
|
|
58
|
+
|
|
59
|
+
Perfect for:
|
|
60
|
+
- Automated deployment notifications
|
|
61
|
+
- Team coordination between AI agents
|
|
62
|
+
- System health monitoring
|
|
63
|
+
- Cross-agent workflows
|
|
64
|
+
- Real-time collaboration
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
**Myceliumail** - End-to-End Encrypted Messaging for AI Agents
|
|
69
|
+
|
|
70
|
+
#ai #agents #messaging #automation #opensource
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Twitter/X Version (280 chars)
|
|
75
|
+
|
|
76
|
+
π Myceliumail v1.1.0 is out!
|
|
77
|
+
|
|
78
|
+
New Agent Wake System lets AI agents auto-respond to messages with actions:
|
|
79
|
+
|
|
80
|
+
mycmail watch --wake
|
|
81
|
+
mycmail send agent "[action: log] deployed"
|
|
82
|
+
|
|
83
|
+
β Agent wakes, executes, logs to collab files
|
|
84
|
+
|
|
85
|
+
npm install -g myceliumail
|
|
86
|
+
|
|
87
|
+
https://github.com/treebird7/Myceliumail
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Reddit r/LocalLLaMA Version
|
|
92
|
+
|
|
93
|
+
**Title:** Myceliumail v1.1.0 - Agent Wake System for AI Agents
|
|
94
|
+
|
|
95
|
+
**Body:**
|
|
96
|
+
|
|
97
|
+
Hey r/LocalLLaMA! I just released v1.1.0 of Myceliumail, an end-to-end encrypted messaging system for AI agents.
|
|
98
|
+
|
|
99
|
+
**New in v1.1.0:**
|
|
100
|
+
|
|
101
|
+
**Agent Wake System** - Agents can now automatically respond when messages arrive:
|
|
102
|
+
```bash
|
|
103
|
+
mycmail watch --wake
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Action Dispatcher** - Execute actions from message subjects:
|
|
107
|
+
```bash
|
|
108
|
+
mycmail send agent "[action: log] deployment complete"
|
|
109
|
+
# Agent wakes β executes β logs to collaborative file
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Built-in Actions:**
|
|
113
|
+
- `log` - Log to markdown files
|
|
114
|
+
- `echo` - Echo test
|
|
115
|
+
- `status` - Status check
|
|
116
|
+
- Extensible for custom actions
|
|
117
|
+
|
|
118
|
+
**Webhook Support** - Production-ready with Supabase integration
|
|
119
|
+
|
|
120
|
+
**VS Code Extension** - Auto-executing actions, non-blocking notifications
|
|
121
|
+
|
|
122
|
+
**Use Cases:**
|
|
123
|
+
- Automated deployment notifications
|
|
124
|
+
- Team coordination between agents
|
|
125
|
+
- System health monitoring
|
|
126
|
+
- Cross-agent workflows
|
|
127
|
+
|
|
128
|
+
**Installation:**
|
|
129
|
+
```bash
|
|
130
|
+
npm install -g myceliumail
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Links:**
|
|
134
|
+
- GitHub: https://github.com/treebird7/Myceliumail
|
|
135
|
+
- npm: https://www.npmjs.com/package/myceliumail
|
|
136
|
+
- Docs: Comprehensive guides in /docs
|
|
137
|
+
|
|
138
|
+
Feedback welcome! Let me know if you have questions or feature requests.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Hacker News Version
|
|
143
|
+
|
|
144
|
+
**Title:** Myceliumail v1.1.0 β Agent Wake System for AI Agents
|
|
145
|
+
|
|
146
|
+
**URL:** https://github.com/treebird7/Myceliumail
|
|
147
|
+
|
|
148
|
+
**Comment (optional):**
|
|
149
|
+
|
|
150
|
+
Author here. v1.1.0 adds an "Agent Wake System" that lets AI agents automatically respond to messages with actions.
|
|
151
|
+
|
|
152
|
+
Key feature: `[action: name]` syntax in message subjects triggers specific behaviors. For example, `[action: log] deployment complete` makes the receiving agent wake up, execute the log action, and write to a collaborative markdown file.
|
|
153
|
+
|
|
154
|
+
Built for multi-agent workflows where agents need to coordinate asynchronously. E2E encrypted by default using NaCl.
|
|
155
|
+
|
|
156
|
+
Happy to answer questions!
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## LinkedIn Version
|
|
161
|
+
|
|
162
|
+
π Excited to announce Myceliumail v1.1.0!
|
|
163
|
+
|
|
164
|
+
New Agent Wake System enables AI agents to automatically respond to messages with programmable actions.
|
|
165
|
+
|
|
166
|
+
Key features:
|
|
167
|
+
β
Auto-wake on message arrival
|
|
168
|
+
β
Action dispatcher with extensible commands
|
|
169
|
+
β
Production webhooks (Supabase)
|
|
170
|
+
β
VS Code integration
|
|
171
|
+
β
Comprehensive documentation
|
|
172
|
+
|
|
173
|
+
Perfect for multi-agent AI systems that need secure, asynchronous coordination.
|
|
174
|
+
|
|
175
|
+
Try it: npm install -g myceliumail
|
|
176
|
+
|
|
177
|
+
GitHub: https://github.com/treebird7/Myceliumail
|
|
178
|
+
|
|
179
|
+
#AI #Agents #Automation #OpenSource #DevTools
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,48 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.1.0] - 2025-12-25
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Agent Wake System** - Automated agent response to incoming messages
|
|
14
|
+
- `mycmail watch --wake` - Trigger wake sequence on new messages
|
|
15
|
+
- Wake sequence logs to collaborative files for team visibility
|
|
16
|
+
- Automatic comment timestamping in markdown files
|
|
17
|
+
- Real-time message detection and processing
|
|
18
|
+
- **Action Dispatcher** - Execute actions based on message subjects
|
|
19
|
+
- Parse `[action: name] args` format from message subjects
|
|
20
|
+
- Built-in actions: `log`, `inbox`, `broadcast`, `collab`, `status`, `echo`
|
|
21
|
+
- Extensible action handler system for custom actions
|
|
22
|
+
- Action results logged to collaborative files
|
|
23
|
+
- **Webhook Handler** - Production-ready webhook support
|
|
24
|
+
- `POST /api/webhook/agent-message` endpoint in dashboard
|
|
25
|
+
- Supabase webhook integration for always-on agents
|
|
26
|
+
- Safe concurrent file operations using append mode
|
|
27
|
+
- Comprehensive error handling and logging
|
|
28
|
+
- **VS Code Extension Actions** - Action dispatcher in VS Code
|
|
29
|
+
- Auto-execute actions from incoming messages
|
|
30
|
+
- Built-in actions: `log`, `open-file`, `show-message`, `open-terminal`, `status`, `echo`
|
|
31
|
+
- Non-blocking notifications (auto-dismiss)
|
|
32
|
+
- **Documentation** - Comprehensive guides for new features
|
|
33
|
+
- `docs/AGENT_WAKE_FLOW.md` - Complete wake flow documentation
|
|
34
|
+
- `docs/ACTION_DISPATCHER.md` - Action dispatcher guide with examples
|
|
35
|
+
- `docs/WEBHOOK_SETUP.md` - Production webhook setup guide
|
|
36
|
+
- `docs/TESTING_WAKE_SYSTEM.md` - Step-by-step testing instructions
|
|
37
|
+
- `docs/TEST_RESULTS.md` - Verified test results (100% pass rate)
|
|
38
|
+
- **Database Migration** - Security improvements
|
|
39
|
+
- `supabase/migrations/002_fix_security_advisor.sql`
|
|
40
|
+
- Convert views to SECURITY INVOKER (safer permissions)
|
|
41
|
+
- Enable RLS on agent_aliases table
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
- VS Code extension notifications now auto-dismiss (non-blocking)
|
|
45
|
+
- Watch command enhanced with wake sequence integration
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
- Security advisor warnings for Supabase views
|
|
49
|
+
- VS Code extension removed unused imports
|
|
50
|
+
|
|
51
|
+
|
|
10
52
|
## [1.0.9] - 2025-12-23
|
|
11
53
|
|
|
12
54
|
### Added
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Agent Wake System & Action Dispatcher (v1.1.0)
|
|
2
|
+
|
|
3
|
+
## π― Overview
|
|
4
|
+
|
|
5
|
+
This PR introduces a comprehensive **Agent Wake System** and **Action Dispatcher** that enables automated agent responses to incoming messages. Agents can now "wake up" when messages arrive and execute specific actions based on message content.
|
|
6
|
+
|
|
7
|
+
## β¨ Key Features
|
|
8
|
+
|
|
9
|
+
### 1. Agent Wake System
|
|
10
|
+
- **`mycmail watch --wake`** - Trigger wake sequence on new messages
|
|
11
|
+
- Automatic logging to collaborative markdown files
|
|
12
|
+
- Timestamped comments for team visibility
|
|
13
|
+
- Real-time message detection and processing
|
|
14
|
+
|
|
15
|
+
### 2. Action Dispatcher
|
|
16
|
+
- Parse `[action: name] args` format from message subjects
|
|
17
|
+
- **Built-in actions:**
|
|
18
|
+
- `log` - Log to collaborative file
|
|
19
|
+
- `inbox` - Check inbox (placeholder)
|
|
20
|
+
- `broadcast` - Broadcast messages (placeholder)
|
|
21
|
+
- `collab` - Start/join collaborations (placeholder)
|
|
22
|
+
- `status` - Status check
|
|
23
|
+
- `echo` - Echo test
|
|
24
|
+
- Extensible system for custom actions
|
|
25
|
+
- Results logged to collaborative files
|
|
26
|
+
|
|
27
|
+
### 3. Webhook Handler
|
|
28
|
+
- **`POST /api/webhook/agent-message`** endpoint in dashboard
|
|
29
|
+
- Supabase webhook integration for always-on agents
|
|
30
|
+
- Safe concurrent file operations using append mode
|
|
31
|
+
- Comprehensive error handling and logging
|
|
32
|
+
|
|
33
|
+
### 4. VS Code Extension Integration
|
|
34
|
+
- Auto-execute actions from incoming messages
|
|
35
|
+
- Built-in actions: `log`, `open-file`, `show-message`, `open-terminal`, `status`, `echo`
|
|
36
|
+
- Non-blocking notifications (auto-dismiss)
|
|
37
|
+
|
|
38
|
+
### 5. Database Security Improvements
|
|
39
|
+
- Migration: `supabase/migrations/002_fix_security_advisor.sql`
|
|
40
|
+
- Convert views to `SECURITY INVOKER` (safer permissions)
|
|
41
|
+
- Enable RLS on `agent_aliases` table
|
|
42
|
+
|
|
43
|
+
## π Documentation
|
|
44
|
+
|
|
45
|
+
Comprehensive documentation added:
|
|
46
|
+
- **`docs/AGENT_WAKE_FLOW.md`** - Complete wake flow guide with diagrams
|
|
47
|
+
- **`docs/ACTION_DISPATCHER.md`** - Action system documentation with examples
|
|
48
|
+
- **`docs/WEBHOOK_SETUP.md`** - Production webhook setup guide
|
|
49
|
+
- **`docs/TESTING_WAKE_SYSTEM.md`** - Step-by-step testing instructions
|
|
50
|
+
- **`docs/TEST_RESULTS.md`** - Verified test results (100% pass rate)
|
|
51
|
+
- **`docs/CHANGELOG_DRAFT.md`** - Detailed changelog draft
|
|
52
|
+
|
|
53
|
+
## π§ͺ Testing
|
|
54
|
+
|
|
55
|
+
All features have been thoroughly tested:
|
|
56
|
+
- β
Basic wake functionality
|
|
57
|
+
- β
Action parsing and execution
|
|
58
|
+
- β
Collaborative file logging
|
|
59
|
+
- β
Webhook endpoint
|
|
60
|
+
- β
VS Code extension actions
|
|
61
|
+
- β
Error handling
|
|
62
|
+
|
|
63
|
+
**Test Results:** 100% pass rate (see `docs/TEST_RESULTS.md`)
|
|
64
|
+
|
|
65
|
+
## π¦ Files Changed
|
|
66
|
+
|
|
67
|
+
### New Files (10)
|
|
68
|
+
- `src/lib/action-dispatcher.ts` - Core action dispatch system
|
|
69
|
+
- `src/lib/webhook-handler.ts` - Webhook processing
|
|
70
|
+
- `docs/ACTION_DISPATCHER.md` - Action guide
|
|
71
|
+
- `docs/AGENT_WAKE_FLOW.md` - Wake flow guide
|
|
72
|
+
- `docs/WEBHOOK_SETUP.md` - Webhook setup
|
|
73
|
+
- `docs/TESTING_WAKE_SYSTEM.md` - Testing guide
|
|
74
|
+
- `docs/TEST_RESULTS.md` - Test results
|
|
75
|
+
- `docs/CHANGELOG_DRAFT.md` - Changelog draft
|
|
76
|
+
- `supabase/migrations/002_fix_security_advisor.sql` - Security fixes
|
|
77
|
+
- `vscode-extension/LICENSE` - Extension license
|
|
78
|
+
|
|
79
|
+
### Modified Files (7)
|
|
80
|
+
- `package.json` - Version bump to 1.1.0
|
|
81
|
+
- `CHANGELOG.md` - Added v1.1.0 entry
|
|
82
|
+
- `src/commands/watch.ts` - Added `--wake` flag
|
|
83
|
+
- `src/dashboard/routes.ts` - Added webhook endpoint
|
|
84
|
+
- `vscode-extension/src/extension.ts` - Cleanup
|
|
85
|
+
- `vscode-extension/src/handlers.ts` - Action integration
|
|
86
|
+
|
|
87
|
+
## π Usage Example
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Terminal 1: Start watching with wake enabled
|
|
91
|
+
node dist/bin/myceliumail.js watch --wake
|
|
92
|
+
|
|
93
|
+
# Terminal 2: Send message with action
|
|
94
|
+
mycmail send mycm "[action: log] deployment v2.5.0" -m "Deployed successfully"
|
|
95
|
+
|
|
96
|
+
# Result: Agent wakes β action executes β logged to collab file
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## π Breaking Changes
|
|
100
|
+
|
|
101
|
+
**None!** This is a fully backward-compatible feature addition.
|
|
102
|
+
|
|
103
|
+
## π Impact
|
|
104
|
+
|
|
105
|
+
- **Lines Added:** ~2,461
|
|
106
|
+
- **Lines Removed:** ~27
|
|
107
|
+
- **Net Change:** +2,434 lines
|
|
108
|
+
- **Files Changed:** 17
|
|
109
|
+
|
|
110
|
+
## β
Checklist
|
|
111
|
+
|
|
112
|
+
- [x] Code builds successfully
|
|
113
|
+
- [x] All tests pass
|
|
114
|
+
- [x] Documentation complete
|
|
115
|
+
- [x] CHANGELOG updated
|
|
116
|
+
- [x] Version bumped (1.0.13 β 1.1.0)
|
|
117
|
+
- [x] No breaking changes
|
|
118
|
+
- [x] Security improvements included
|
|
119
|
+
|
|
120
|
+
## π Ready to Merge
|
|
121
|
+
|
|
122
|
+
This PR is ready for review and merge. All features have been tested and verified working.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
**Related Issues:** None (new feature)
|
|
127
|
+
**Reviewers:** @treebird7
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# Publishing Checklist for v1.1.0
|
|
2
|
+
|
|
3
|
+
## β
Completed Steps
|
|
4
|
+
|
|
5
|
+
- [x] Created feature branch: `feature/agent-wake-system`
|
|
6
|
+
- [x] Updated version: 1.0.13 β 1.1.0
|
|
7
|
+
- [x] Updated CHANGELOG.md with v1.1.0 entry
|
|
8
|
+
- [x] Built project successfully
|
|
9
|
+
- [x] Committed all changes
|
|
10
|
+
- [x] Pushed branch to GitHub
|
|
11
|
+
- [x] All tests passing (100% pass rate)
|
|
12
|
+
|
|
13
|
+
## π Next Steps
|
|
14
|
+
|
|
15
|
+
### 1. Create Pull Request on GitHub
|
|
16
|
+
|
|
17
|
+
Visit: https://github.com/treebird7/Myceliumail/pull/new/feature/agent-wake-system
|
|
18
|
+
|
|
19
|
+
**PR Title:**
|
|
20
|
+
```
|
|
21
|
+
feat: Agent Wake System & Action Dispatcher (v1.1.0)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**PR Description:**
|
|
25
|
+
Copy from `PR_DESCRIPTION.md` (already created)
|
|
26
|
+
|
|
27
|
+
### 2. Review and Merge PR
|
|
28
|
+
|
|
29
|
+
1. Review the changes on GitHub
|
|
30
|
+
2. Ensure CI/CD passes (if configured)
|
|
31
|
+
3. Merge the PR to `main`
|
|
32
|
+
|
|
33
|
+
### 3. Checkout Main and Pull
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
git checkout main
|
|
37
|
+
git pull origin main
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 4. Create Git Tag
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
git tag -a v1.1.0 -m "Release v1.1.0 - Agent Wake System & Action Dispatcher"
|
|
44
|
+
git push origin v1.1.0
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 5. Publish to npm
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Ensure you're on main branch with latest changes
|
|
51
|
+
git checkout main
|
|
52
|
+
git pull
|
|
53
|
+
|
|
54
|
+
# Build one more time to be sure
|
|
55
|
+
npm run build
|
|
56
|
+
|
|
57
|
+
# Publish to npm
|
|
58
|
+
npm publish
|
|
59
|
+
|
|
60
|
+
# Expected output:
|
|
61
|
+
# + myceliumail@1.1.0
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### 6. Verify Publication
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Check npm
|
|
68
|
+
npm view myceliumail version
|
|
69
|
+
# Should show: 1.1.0
|
|
70
|
+
|
|
71
|
+
# Test global install
|
|
72
|
+
npm install -g myceliumail
|
|
73
|
+
|
|
74
|
+
# Verify --wake flag is available
|
|
75
|
+
mycmail watch --help
|
|
76
|
+
# Should show: --wake option
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 7. Create GitHub Release
|
|
80
|
+
|
|
81
|
+
1. Go to: https://github.com/treebird7/Myceliumail/releases/new
|
|
82
|
+
2. **Tag:** v1.1.0
|
|
83
|
+
3. **Title:** v1.1.0 - Agent Wake System & Action Dispatcher
|
|
84
|
+
4. **Description:** Copy from CHANGELOG.md v1.1.0 section
|
|
85
|
+
5. Click "Publish release"
|
|
86
|
+
|
|
87
|
+
### 8. Notify Agents (Optional)
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Send announcement to all agents
|
|
91
|
+
mycmail broadcast "π Myceliumail v1.1.0 released!" \
|
|
92
|
+
-m "New features: Agent Wake System, Action Dispatcher, and more.
|
|
93
|
+
|
|
94
|
+
Key updates:
|
|
95
|
+
- mycmail watch --wake for automated responses
|
|
96
|
+
- Action dispatcher with [action: name] syntax
|
|
97
|
+
- Webhook support for production
|
|
98
|
+
- VS Code extension improvements
|
|
99
|
+
|
|
100
|
+
See CHANGELOG: https://github.com/treebird7/Myceliumail/blob/main/CHANGELOG.md
|
|
101
|
+
|
|
102
|
+
Update now: npm install -g myceliumail"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## π Post-Publish Verification
|
|
106
|
+
|
|
107
|
+
### Test the Published Package
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# In a different directory (not the repo)
|
|
111
|
+
cd ~
|
|
112
|
+
mkdir test-mycmail-v1.1.0
|
|
113
|
+
cd test-mycmail-v1.1.0
|
|
114
|
+
|
|
115
|
+
# Install from npm
|
|
116
|
+
npm install -g myceliumail
|
|
117
|
+
|
|
118
|
+
# Verify version
|
|
119
|
+
mycmail --version
|
|
120
|
+
# Should show: 1.1.0
|
|
121
|
+
|
|
122
|
+
# Test --wake flag
|
|
123
|
+
mycmail watch --help | grep wake
|
|
124
|
+
# Should show: --wake option
|
|
125
|
+
|
|
126
|
+
# Clean up
|
|
127
|
+
cd ~
|
|
128
|
+
rm -rf test-mycmail-v1.1.0
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## π Success Metrics
|
|
132
|
+
|
|
133
|
+
After publishing, verify:
|
|
134
|
+
- [ ] npm shows version 1.1.0
|
|
135
|
+
- [ ] GitHub release created
|
|
136
|
+
- [ ] `--wake` flag available in global install
|
|
137
|
+
- [ ] Documentation accessible on GitHub
|
|
138
|
+
- [ ] No critical issues reported
|
|
139
|
+
|
|
140
|
+
## π Rollback Plan (If Needed)
|
|
141
|
+
|
|
142
|
+
If critical issues are found:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Unpublish the version (within 72 hours)
|
|
146
|
+
npm unpublish myceliumail@1.1.0
|
|
147
|
+
|
|
148
|
+
# Or deprecate it
|
|
149
|
+
npm deprecate myceliumail@1.1.0 "Critical bug found, use 1.0.13 instead"
|
|
150
|
+
|
|
151
|
+
# Revert the tag
|
|
152
|
+
git tag -d v1.1.0
|
|
153
|
+
git push origin :refs/tags/v1.1.0
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## π Notes
|
|
157
|
+
|
|
158
|
+
- **Current Branch:** feature/agent-wake-system
|
|
159
|
+
- **Target Branch:** main
|
|
160
|
+
- **Version:** 1.1.0
|
|
161
|
+
- **Commit:** 7b76622
|
|
162
|
+
- **Files Changed:** 17 files, +2,461 lines
|
|
163
|
+
|
|
164
|
+
## π Ready to Publish!
|
|
165
|
+
|
|
166
|
+
All preparation is complete. Follow the steps above to publish v1.1.0.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
**Last Updated:** 2025-12-25
|
|
171
|
+
**Status:** Ready for PR and Publish
|
package/README.md
CHANGED
|
@@ -29,11 +29,73 @@ Myceliumail is named after myceliumβthe underground fungal network that lets t
|
|
|
29
29
|
| Web dashboard | β
Live updates at localhost:3737 |
|
|
30
30
|
| Real-time notifications | β
Desktop alerts via watch command |
|
|
31
31
|
| Agent status notifications | β
File-based status for agent polling |
|
|
32
|
+
| **Agent Wake System** | β
**NEW in v1.1.0** - Auto-respond to messages |
|
|
33
|
+
| **Action Dispatcher** | β
**NEW in v1.1.0** - Execute commands from messages |
|
|
34
|
+
| **Webhook Handler** | β
**NEW in v1.1.0** - Production webhooks |
|
|
32
35
|
| Channels | π Schema exists, CLI not yet implemented |
|
|
33
36
|
| Agent discovery | π Planned |
|
|
34
37
|
|
|
35
38
|
---
|
|
36
39
|
|
|
40
|
+
## π
Agent Wake System (NEW in v1.1.0)
|
|
41
|
+
|
|
42
|
+
Agents can now automatically "wake up" and respond when messages arrive!
|
|
43
|
+
|
|
44
|
+
### Quick Example
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Terminal 1: Agent listens and auto-responds
|
|
48
|
+
mycmail watch --wake
|
|
49
|
+
|
|
50
|
+
# Terminal 2: Send a message with an action
|
|
51
|
+
mycmail send agent-id "[action: log] deployment complete" -m "v2.5.0 deployed"
|
|
52
|
+
|
|
53
|
+
# β Agent wakes β executes action β logs to collaborative file
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Built-in Actions
|
|
57
|
+
|
|
58
|
+
Execute actions directly from message subjects using `[action: name]` syntax:
|
|
59
|
+
|
|
60
|
+
| Action | Example | What It Does |
|
|
61
|
+
|--------|---------|--------------|
|
|
62
|
+
| `log` | `[action: log] deployed v2.5.0` | Logs to collaborative markdown file |
|
|
63
|
+
| `echo` | `[action: echo] ping` | Echo test for verification |
|
|
64
|
+
| `status` | `[action: status]` | Check agent status |
|
|
65
|
+
| `inbox` | `[action: inbox] limit=20` | Check inbox (coming soon) |
|
|
66
|
+
| `broadcast` | `[action: broadcast] alert` | Broadcast message (coming soon) |
|
|
67
|
+
| `collab` | `[action: collab] project-x` | Start collaboration (coming soon) |
|
|
68
|
+
|
|
69
|
+
### Webhook Support
|
|
70
|
+
|
|
71
|
+
Production-ready webhooks for always-on agents:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Start dashboard with webhook endpoint
|
|
75
|
+
mycmail dashboard
|
|
76
|
+
|
|
77
|
+
# Configure Supabase webhook to POST to:
|
|
78
|
+
# https://your-domain/api/webhook/agent-message
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
See [`docs/WEBHOOK_SETUP.md`](docs/WEBHOOK_SETUP.md) for complete setup instructions.
|
|
82
|
+
|
|
83
|
+
### Use Cases
|
|
84
|
+
|
|
85
|
+
- **Deployment Notifications:** `[action: log] production deployed`
|
|
86
|
+
- **Team Coordination:** `[action: collab] sprint-planning`
|
|
87
|
+
- **System Monitoring:** `[action: status]` for health checks
|
|
88
|
+
- **Cross-Agent Workflows:** Agents trigger actions on each other
|
|
89
|
+
|
|
90
|
+
### Documentation
|
|
91
|
+
|
|
92
|
+
- **[Agent Wake Flow](docs/AGENT_WAKE_FLOW.md)** - Complete guide with diagrams
|
|
93
|
+
- **[Action Dispatcher](docs/ACTION_DISPATCHER.md)** - Action system documentation
|
|
94
|
+
- **[Webhook Setup](docs/WEBHOOK_SETUP.md)** - Production webhook guide
|
|
95
|
+
- **[Testing Guide](docs/TESTING_WAKE_SYSTEM.md)** - Step-by-step testing
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
37
99
|
## β
Tested Environments
|
|
38
100
|
|
|
39
101
|
Myceliumail has been tested with these AI agents and platforms:
|
|
@@ -210,6 +272,10 @@ mycmail broadcast "API schema changed" -b "Check the new endpoints"
|
|
|
210
272
|
# Watch for new messages (real-time)
|
|
211
273
|
mycmail watch
|
|
212
274
|
|
|
275
|
+
# Watch with wake system (auto-respond to actions)
|
|
276
|
+
mycmail watch --wake
|
|
277
|
+
# Agent will execute actions from message subjects: [action: name]
|
|
278
|
+
|
|
213
279
|
# Watch with status file for agent notifications
|
|
214
280
|
mycmail watch --status-file
|
|
215
281
|
π Status file: ~/.mycmail/inbox_status.json
|