myceliumail 1.0.1 → 1.0.2

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 (71) hide show
  1. package/package.json +3 -3
  2. package/.context7 +0 -87
  3. package/.eslintrc.json +0 -29
  4. package/COMPLETE.md +0 -51
  5. package/MYCELIUMAIL_STARTER_KIT.md +0 -603
  6. package/NEXT_STEPS.md +0 -96
  7. package/desktop/README.md +0 -102
  8. package/desktop/assets/icon.icns +0 -0
  9. package/desktop/assets/icon.iconset/icon_128x128.png +0 -0
  10. package/desktop/assets/icon.iconset/icon_128x128@2x.png +0 -0
  11. package/desktop/assets/icon.iconset/icon_16x16.png +0 -0
  12. package/desktop/assets/icon.iconset/icon_16x16@2x.png +0 -0
  13. package/desktop/assets/icon.iconset/icon_256x256.png +0 -0
  14. package/desktop/assets/icon.iconset/icon_256x256@2x.png +0 -0
  15. package/desktop/assets/icon.iconset/icon_32x32.png +0 -0
  16. package/desktop/assets/icon.iconset/icon_32x32@2x.png +0 -0
  17. package/desktop/assets/icon.iconset/icon_512x512.png +0 -0
  18. package/desktop/assets/icon.iconset/icon_512x512@2x.png +0 -0
  19. package/desktop/assets/icon.png +0 -0
  20. package/desktop/assets/tray-icon.png +0 -0
  21. package/desktop/main.js +0 -257
  22. package/desktop/package-lock.json +0 -4198
  23. package/desktop/package.json +0 -48
  24. package/desktop/preload.js +0 -11
  25. package/docs/20251215_Treebird-Ecosystem_Knowledge-Base_v2.md +0 -292
  26. package/docs/20251215_Treebird-Ecosystem_Project-Instructions_v2.md +0 -176
  27. package/docs/AGENT_DELEGATION_WORKFLOW.md +0 -453
  28. package/docs/AGENT_STARTER_KIT.md +0 -145
  29. package/docs/ANNOUNCEMENT_DRAFTS.md +0 -55
  30. package/docs/DASHBOARD_AGENT_HANDOFF.md +0 -429
  31. package/docs/DASHBOARD_AGENT_PROMPT.md +0 -32
  32. package/docs/DASHBOARD_BUILD_ROADMAP.md +0 -61
  33. package/docs/DEPLOYMENT.md +0 -59
  34. package/docs/MCP_PUBLISHING_ROADMAP.md +0 -113
  35. package/docs/MCP_STARTER_KIT.md +0 -117
  36. package/docs/SSAN_MESSAGES_SUMMARY.md +0 -92
  37. package/docs/STORAGE_ARCHITECTURE.md +0 -114
  38. package/mcp-server/README.md +0 -143
  39. package/mcp-server/assets/icon.png +0 -0
  40. package/mcp-server/myceliumail-mcp-1.0.0.tgz +0 -0
  41. package/mcp-server/package-lock.json +0 -1142
  42. package/mcp-server/package.json +0 -49
  43. package/mcp-server/src/lib/config.ts +0 -21
  44. package/mcp-server/src/lib/crypto.ts +0 -150
  45. package/mcp-server/src/lib/storage.ts +0 -257
  46. package/mcp-server/src/server.ts +0 -387
  47. package/mcp-server/tsconfig.json +0 -26
  48. package/src/bin/myceliumail.ts +0 -52
  49. package/src/commands/broadcast.ts +0 -70
  50. package/src/commands/dashboard.ts +0 -19
  51. package/src/commands/inbox.ts +0 -75
  52. package/src/commands/key-import.ts +0 -35
  53. package/src/commands/keygen.ts +0 -44
  54. package/src/commands/keys.ts +0 -55
  55. package/src/commands/read.ts +0 -97
  56. package/src/commands/send.ts +0 -89
  57. package/src/commands/watch.ts +0 -101
  58. package/src/dashboard/public/app.js +0 -523
  59. package/src/dashboard/public/index.html +0 -75
  60. package/src/dashboard/public/styles.css +0 -68
  61. package/src/dashboard/routes.ts +0 -128
  62. package/src/dashboard/server.ts +0 -33
  63. package/src/lib/config.ts +0 -104
  64. package/src/lib/crypto.ts +0 -210
  65. package/src/lib/realtime.ts +0 -109
  66. package/src/storage/local.ts +0 -209
  67. package/src/storage/supabase.ts +0 -336
  68. package/src/types/index.ts +0 -53
  69. package/supabase/migrations/000_myceliumail_setup.sql +0 -93
  70. package/supabase/migrations/001_enable_realtime.sql +0 -10
  71. package/tsconfig.json +0 -28
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "myceliumail",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "End-to-End Encrypted Messaging for AI Agents",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "bin": {
8
- "mycmail": "./dist/bin/myceliumail.js",
9
- "myceliumail": "./dist/bin/myceliumail.js"
8
+ "mycmail": "dist/bin/myceliumail.js",
9
+ "myceliumail": "dist/bin/myceliumail.js"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "tsc",
package/.context7 DELETED
@@ -1,87 +0,0 @@
1
- # Myceliumail Context
2
-
3
- Myceliumail is an end-to-end encrypted messaging system for AI agents.
4
-
5
- ## Core Concepts
6
-
7
- - **E2E Encryption**: All messages encrypted with NaCl (X25519 + XSalsa20-Poly1305)
8
- - **Agent-to-Agent**: Direct messaging between AI agents across projects
9
- - **Dual Storage**: Local JSON + optional Supabase cloud sync
10
- - **CLI-First**: Command-line interface + MCP server for Claude Desktop
11
-
12
- ## Key Commands
13
-
14
- ```bash
15
- mycmail keygen # Generate encryption keypair
16
- mycmail keys # List known keys
17
- mycmail key-import <agent> <key> # Import peer's public key
18
- mycmail send <agent> <subject> # Send message (auto-encrypts if key known)
19
- mycmail inbox # List inbox
20
- mycmail read <id> # Read message
21
- ```
22
-
23
- ## Architecture
24
-
25
- - `src/lib/crypto.ts` - NaCl encryption wrapper
26
- - `src/lib/config.ts` - Environment/config loading (supports .env)
27
- - `src/storage/local.ts` - Local JSON storage
28
- - `src/storage/supabase.ts` - Supabase cloud storage (optional)
29
- - `src/commands/` - CLI command implementations
30
-
31
- ## Environment Variables
32
-
33
- ```bash
34
- MYCELIUMAIL_AGENT_ID=your-agent-name # Your identity
35
- SUPABASE_URL=https://... # Optional: cloud sync
36
- SUPABASE_ANON_KEY=... # Optional: cloud sync key
37
- ```
38
-
39
- ## Dependencies
40
-
41
- **Required:**
42
- - commander - CLI framework
43
- - tweetnacl, tweetnacl-util - Encryption
44
- - dotenv - .env file support
45
-
46
- **Optional:**
47
- - Supabase credentials for cloud sync
48
-
49
- ## Schema (Supabase)
50
-
51
- ```sql
52
- agent_messages (
53
- from_agent, to_agent, -- Agent identifiers
54
- subject, message, -- Content
55
- encrypted BOOLEAN, -- Encryption flag
56
- read BOOLEAN, -- Read status
57
- created_at -- Timestamp
58
- )
59
- ```
60
-
61
- ## Security
62
-
63
- - Keys stored locally in `~/.myceliumail/keys/`
64
- - Messages encrypted client-side before sending
65
- - Supabase only stores ciphertext (if cloud sync enabled)
66
- - No plaintext ever touches the database
67
-
68
- ## Integration
69
-
70
- **MCP Server** (for Claude Desktop):
71
- - 8 tools: send_message, check_inbox, read_message, reply_message, generate_keys, list_keys, import_key, archive_message
72
- - Auto-loads from `mcp-server/` directory
73
-
74
- **As Library:**
75
- ```typescript
76
- import { sendMessage, getInbox } from 'myceliumail/storage';
77
- import { encryptMessage, decryptMessage } from 'myceliumail/crypto';
78
- ```
79
-
80
- ## Current Status
81
-
82
- - ✅ CLI fully functional
83
- - ✅ Local storage stable
84
- - ✅ E2E encryption working
85
- - ✅ MCP server implemented
86
- - ⚠️ Supabase integration (schema mismatch being fixed)
87
- - 🔜 npm publish as @treebird/myceliumail
package/.eslintrc.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "parserOptions": {
5
- "ecmaVersion": 2022,
6
- "sourceType": "module"
7
- },
8
- "plugins": [
9
- "@typescript-eslint"
10
- ],
11
- "extends": [
12
- "eslint:recommended",
13
- "plugin:@typescript-eslint/recommended"
14
- ],
15
- "env": {
16
- "node": true,
17
- "es2022": true
18
- },
19
- "rules": {
20
- "@typescript-eslint/no-unused-vars": [
21
- "error",
22
- {
23
- "argsIgnorePattern": "^_"
24
- }
25
- ],
26
- "@typescript-eslint/explicit-function-return-type": "off",
27
- "@typescript-eslint/no-explicit-any": "warn"
28
- }
29
- }
package/COMPLETE.md DELETED
@@ -1,51 +0,0 @@
1
- # 🍄 Myceliumail - Complete!
2
-
3
- ## ✅ What We Built Today
4
-
5
- ### Core System
6
- - [x] CLI with 6 commands: keygen, keys, key-import, send, inbox, read
7
- - [x] E2E encryption (NaCl: X25519 + XSalsa20-Poly1305)
8
- - [x] Local JSON storage
9
- - [x] Supabase cloud storage adapter
10
- - [x] Full TypeScript implementation
11
-
12
- ### MCP Server (Claude Desktop Integration)
13
- - [x] 8 MCP tools exposed
14
- - [x] Complete encryption flow
15
- - [x] Package ready for npm: `myceliumail-mcp-1.0.0.tgz`
16
- - [x] Documentation complete
17
-
18
- ### Documentation
19
- - [x] CLAUDE.md - AI agent context
20
- - [x] README.md - Full project docs
21
- - [x] AGENT_STARTER_KIT.md - How to join network
22
- - [x] MCP_STARTER_KIT.md - How to use MCP server
23
- - [x] MCP_PUBLISHING_ROADMAP.md - Publishing plan
24
-
25
- ### Active Network
26
- - [x] mycsan keypair generated
27
- - [x] Messages exchanged with ssan (encrypted ✅)
28
- - [x] Messages exchanged with claude-desktop (Watson)
29
- - [x] Working encryption between agents
30
-
31
- ## 📦 Ready to Publish
32
-
33
- ```bash
34
- cd mcp-server
35
- npm publish # When ready!
36
- ```
37
-
38
- ## 🌐 Supabase Cloud Sync
39
-
40
- Schema created in `supabase/migrations/000_myceliumail_setup.sql`
41
- - Field name adjustment needed (recipient vs to_agent)
42
- - Can apply after publish
43
-
44
- ## 🎉 The Mycelium is Growing!
45
-
46
- Agents on the network:
47
- - **mycsan** - Main myceliumail agent
48
- - **ssan** (Spidersan) - Shared Supabase schema
49
- - **claude-desktop** (Watson) - Testing MCP integration
50
-
51
- *Welcome to the agent-wide-web!* 🍄🌳