@hasna/conversations 0.0.3 → 0.0.4
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 +37 -37
- package/bin/index.js +2 -2
- package/bin/mcp.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/mcp/index.d.ts +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -31,10 +31,10 @@ npx @hasna/conversations
|
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
# Basic message
|
|
34
|
-
|
|
34
|
+
conversations send --to claude-code "Hello from codex"
|
|
35
35
|
|
|
36
36
|
# With context
|
|
37
|
-
|
|
37
|
+
conversations send --to claude-code "Check this branch" \
|
|
38
38
|
--from codex \
|
|
39
39
|
--priority high \
|
|
40
40
|
--working-dir /path/to/project \
|
|
@@ -42,40 +42,40 @@ convo send --to claude-code "Check this branch" \
|
|
|
42
42
|
--branch feature/auth
|
|
43
43
|
|
|
44
44
|
# With metadata
|
|
45
|
-
|
|
45
|
+
conversations send --to gemini "Deploy ready" --metadata '{"env":"staging"}'
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
### Read Messages
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
51
|
# Read all messages for an agent
|
|
52
|
-
|
|
52
|
+
conversations read --to codex
|
|
53
53
|
|
|
54
54
|
# Unread only, as JSON
|
|
55
|
-
|
|
55
|
+
conversations read --to codex --unread --json
|
|
56
56
|
|
|
57
57
|
# Filter by session
|
|
58
|
-
|
|
58
|
+
conversations read --session alice-bob-abc123
|
|
59
59
|
|
|
60
60
|
# Read and mark as read
|
|
61
|
-
|
|
61
|
+
conversations read --to codex --unread --mark-read
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
### Sessions
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
67
|
# List all sessions
|
|
68
|
-
|
|
68
|
+
conversations sessions
|
|
69
69
|
|
|
70
70
|
# Sessions for a specific agent
|
|
71
|
-
|
|
71
|
+
conversations sessions --agent claude-code --json
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
### Reply
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
# Reply to a message (auto-resolves session and recipient)
|
|
78
|
-
|
|
78
|
+
conversations reply --to 42 "Got it, working on it now"
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
### Channels
|
|
@@ -84,44 +84,44 @@ Channels are broadcast spaces — any agent can post, all members can read.
|
|
|
84
84
|
|
|
85
85
|
```bash
|
|
86
86
|
# Create a channel
|
|
87
|
-
|
|
87
|
+
conversations channel create deployments --description "Deployment notifications"
|
|
88
88
|
|
|
89
89
|
# List channels
|
|
90
|
-
|
|
90
|
+
conversations channel list
|
|
91
91
|
|
|
92
92
|
# Join a channel
|
|
93
|
-
|
|
93
|
+
conversations channel join deployments --from codex
|
|
94
94
|
|
|
95
95
|
# Send to a channel
|
|
96
|
-
|
|
96
|
+
conversations channel send deployments "v1.2 deployed to staging" --from ops
|
|
97
97
|
|
|
98
98
|
# Read channel messages
|
|
99
|
-
|
|
99
|
+
conversations channel read deployments
|
|
100
100
|
|
|
101
101
|
# Leave a channel
|
|
102
|
-
|
|
102
|
+
conversations channel leave deployments --from codex
|
|
103
103
|
|
|
104
104
|
# List members
|
|
105
|
-
|
|
105
|
+
conversations channel members deployments
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
### Mark Read
|
|
109
109
|
|
|
110
110
|
```bash
|
|
111
111
|
# Mark specific messages
|
|
112
|
-
|
|
112
|
+
conversations mark-read 1 2 3 --agent codex
|
|
113
113
|
|
|
114
114
|
# Mark entire session
|
|
115
|
-
|
|
115
|
+
conversations mark-read --session abc123 --agent codex
|
|
116
116
|
|
|
117
117
|
# Mark entire channel
|
|
118
|
-
|
|
118
|
+
conversations mark-read --channel deployments --agent codex
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
### Status
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
|
-
|
|
124
|
+
conversations status
|
|
125
125
|
# Conversations Status
|
|
126
126
|
# DB Path: ~/.conversations/messages.db
|
|
127
127
|
# Messages: 47
|
|
@@ -132,7 +132,7 @@ convo status
|
|
|
132
132
|
### Interactive TUI
|
|
133
133
|
|
|
134
134
|
```bash
|
|
135
|
-
|
|
135
|
+
conversations
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
Arrow keys to navigate sessions, Enter to open, `n` for new conversation, `q` to quit, Esc to go back.
|
|
@@ -142,7 +142,7 @@ Arrow keys to navigate sessions, Enter to open, `n` for new conversation, `q` to
|
|
|
142
142
|
For native AI agent integration via the Model Context Protocol:
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
|
-
|
|
145
|
+
conversations mcp
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
### Agent Configuration
|
|
@@ -222,20 +222,20 @@ const channelMsgs = readMessages({ channel: "deploys" });
|
|
|
222
222
|
## Architecture
|
|
223
223
|
|
|
224
224
|
```
|
|
225
|
-
|
|
226
|
-
│
|
|
227
|
-
│
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
225
|
+
┌──────────────────┐ ┌─────────────────────┐ ┌──────────────────────┐
|
|
226
|
+
│ Ink TUI │ │ Headless │ │ MCP Server │
|
|
227
|
+
│ `conversations` │ │ `conversations send`│ │ `conversations mcp` │
|
|
228
|
+
└────────┬─────────┘ └──────────┬──────────┘ └──────────┬───────────┘
|
|
229
|
+
│ │ │
|
|
230
|
+
└───────────┬───────────┴────────────────────────┘
|
|
231
|
+
│
|
|
232
|
+
┌───────▼────────┐
|
|
233
|
+
│ Core Library │
|
|
234
|
+
│ SQLite WAL │
|
|
235
|
+
│ 200ms polling │
|
|
236
|
+
└────────────────┘
|
|
237
|
+
│
|
|
238
|
+
~/.conversations/messages.db
|
|
239
239
|
```
|
|
240
240
|
|
|
241
241
|
- **SQLite WAL mode** for concurrent read/write across processes
|
package/bin/index.js
CHANGED
|
@@ -31003,7 +31003,7 @@ var init_mcp2 = __esm(() => {
|
|
|
31003
31003
|
init_channels();
|
|
31004
31004
|
server = new McpServer({
|
|
31005
31005
|
name: "conversations",
|
|
31006
|
-
version: "0.0.
|
|
31006
|
+
version: "0.0.4"
|
|
31007
31007
|
});
|
|
31008
31008
|
server.registerTool("send_message", {
|
|
31009
31009
|
title: "Send Message",
|
|
@@ -32106,7 +32106,7 @@ function App({ agent }) {
|
|
|
32106
32106
|
|
|
32107
32107
|
// src/cli/index.tsx
|
|
32108
32108
|
var program2 = new Command;
|
|
32109
|
-
program2.name("
|
|
32109
|
+
program2.name("conversations").description("Real-time CLI messaging for AI agents").version("0.0.4");
|
|
32110
32110
|
program2.command("send").description("Send a message to an agent").argument("<message>", "Message content").requiredOption("--to <agent>", "Recipient agent ID").option("--from <agent>", "Sender agent ID").option("--session <id>", "Session ID (auto-generated if omitted)").option("--priority <level>", "Priority: low, normal, high, urgent", "normal").option("--working-dir <path>", "Working directory context").option("--repository <repo>", "Repository context").option("--branch <branch>", "Branch context").option("--metadata <json>", "JSON metadata string").option("--json", "Output as JSON").action((message, opts) => {
|
|
32111
32111
|
const from = resolveIdentity(opts.from);
|
|
32112
32112
|
const metadata = opts.metadata ? JSON.parse(opts.metadata) : undefined;
|
package/bin/mcp.js
CHANGED
|
@@ -28537,7 +28537,7 @@ function resolveIdentity(explicit) {
|
|
|
28537
28537
|
// src/mcp/index.ts
|
|
28538
28538
|
var server = new McpServer({
|
|
28539
28539
|
name: "conversations",
|
|
28540
|
-
version: "0.0.
|
|
28540
|
+
version: "0.0.4"
|
|
28541
28541
|
});
|
|
28542
28542
|
server.registerTool("send_message", {
|
|
28543
28543
|
title: "Send Message",
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @hasna/conversations - Real-time CLI messaging for AI agents
|
|
3
3
|
*
|
|
4
4
|
* Send and receive messages between AI agents on the same machine:
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* conversations send --to claude-code "hello from codex"
|
|
6
|
+
* conversations read --to codex --json
|
|
7
|
+
* conversations channel send deployments "v1.2 deployed"
|
|
8
8
|
*
|
|
9
9
|
* Or use the interactive TUI:
|
|
10
|
-
*
|
|
10
|
+
* conversations
|
|
11
11
|
*/
|
|
12
12
|
export { sendMessage, readMessages, markRead, markSessionRead, markChannelRead, getMessageById, } from "./lib/messages.js";
|
|
13
13
|
export { listSessions, getSession, } from "./lib/sessions.js";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Exposes tools for sending, reading, and managing messages and channels between agents.
|
|
5
5
|
*
|
|
6
6
|
* Usage:
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* conversations mcp # Start MCP server on stdio
|
|
8
|
+
* conversations-mcp # Direct binary
|
|
9
9
|
*/
|
|
10
10
|
export declare function startMcpServer(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/conversations",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Real-time CLI messaging for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
7
|
+
"conversations": "bin/index.js",
|
|
8
|
+
"conversations-mcp": "bin/mcp.js"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|