@hasna/conversations 0.1.2 → 0.1.3
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/bin/index.js +12 -10
- package/bin/mcp.js +75 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -2685,7 +2685,7 @@ var init_presence = __esm(() => {
|
|
|
2685
2685
|
var require_package = __commonJS((exports, module) => {
|
|
2686
2686
|
module.exports = {
|
|
2687
2687
|
name: "@hasna/conversations",
|
|
2688
|
-
version: "0.1.
|
|
2688
|
+
version: "0.1.3",
|
|
2689
2689
|
description: "Real-time CLI messaging for AI agents",
|
|
2690
2690
|
type: "module",
|
|
2691
2691
|
bin: {
|
|
@@ -31634,7 +31634,7 @@ async function startMcpServer() {
|
|
|
31634
31634
|
const transport = new StdioServerTransport;
|
|
31635
31635
|
await server.connect(transport);
|
|
31636
31636
|
}
|
|
31637
|
-
var server, isDirectRun;
|
|
31637
|
+
var import__package, server, isDirectRun;
|
|
31638
31638
|
var init_mcp2 = __esm(() => {
|
|
31639
31639
|
init_mcp();
|
|
31640
31640
|
init_stdio2();
|
|
@@ -31644,9 +31644,10 @@ var init_mcp2 = __esm(() => {
|
|
|
31644
31644
|
init_spaces();
|
|
31645
31645
|
init_projects();
|
|
31646
31646
|
init_presence();
|
|
31647
|
+
import__package = __toESM(require_package(), 1);
|
|
31647
31648
|
server = new McpServer({
|
|
31648
31649
|
name: "conversations",
|
|
31649
|
-
version:
|
|
31650
|
+
version: import__package.default.version
|
|
31650
31651
|
});
|
|
31651
31652
|
server.registerTool("send_message", {
|
|
31652
31653
|
title: "Send Message",
|
|
@@ -32743,8 +32744,8 @@ function startDashboardServer(port = 3456, host) {
|
|
|
32743
32744
|
}
|
|
32744
32745
|
if (path === "/api/version" && req.method === "GET") {
|
|
32745
32746
|
try {
|
|
32746
|
-
const
|
|
32747
|
-
const current =
|
|
32747
|
+
const pkg2 = await Promise.resolve().then(() => __toESM(require_package(), 1));
|
|
32748
|
+
const current = pkg2.version;
|
|
32748
32749
|
const res = await fetch("https://registry.npmjs.org/@hasna/conversations/latest");
|
|
32749
32750
|
const data = await res.json();
|
|
32750
32751
|
const latest = data.version;
|
|
@@ -32758,8 +32759,8 @@ function startDashboardServer(port = 3456, host) {
|
|
|
32758
32759
|
return jsonResponse({ error: "Invalid origin" }, 403);
|
|
32759
32760
|
}
|
|
32760
32761
|
try {
|
|
32761
|
-
const
|
|
32762
|
-
const current =
|
|
32762
|
+
const pkg2 = await Promise.resolve().then(() => __toESM(require_package(), 1));
|
|
32763
|
+
const current = pkg2.version;
|
|
32763
32764
|
const res = await fetch("https://registry.npmjs.org/@hasna/conversations/latest");
|
|
32764
32765
|
const data = await res.json();
|
|
32765
32766
|
const latest = data.version;
|
|
@@ -33842,8 +33843,9 @@ function App({ agent }) {
|
|
|
33842
33843
|
}
|
|
33843
33844
|
|
|
33844
33845
|
// src/cli/index.tsx
|
|
33846
|
+
var import__package2 = __toESM(require_package(), 1);
|
|
33845
33847
|
var program2 = new Command;
|
|
33846
|
-
program2.name("conversations").description("Real-time CLI messaging for AI agents").version(
|
|
33848
|
+
program2.name("conversations").description("Real-time CLI messaging for AI agents").version(import__package2.default.version);
|
|
33847
33849
|
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) => {
|
|
33848
33850
|
const from = resolveIdentity(opts.from).trim();
|
|
33849
33851
|
const to = typeof opts.to === "string" ? opts.to.trim() : "";
|
|
@@ -34076,8 +34078,8 @@ program2.command("status").description("Show database stats").option("--json", "
|
|
|
34076
34078
|
closeDb();
|
|
34077
34079
|
});
|
|
34078
34080
|
program2.command("update").description("Check for and install updates").option("--check", "Only check for updates, don't install").option("--json", "Output as JSON").action(async (opts) => {
|
|
34079
|
-
const
|
|
34080
|
-
const current =
|
|
34081
|
+
const pkg3 = await Promise.resolve().then(() => __toESM(require_package(), 1));
|
|
34082
|
+
const current = pkg3.version;
|
|
34081
34083
|
let latest;
|
|
34082
34084
|
try {
|
|
34083
34085
|
const res = await fetch("https://registry.npmjs.org/@hasna/conversations/latest");
|
package/bin/mcp.js
CHANGED
|
@@ -29090,11 +29090,85 @@ function listAgents(opts) {
|
|
|
29090
29090
|
const rows = db2.prepare(query).all(...params);
|
|
29091
29091
|
return rows.map(parsePresence);
|
|
29092
29092
|
}
|
|
29093
|
+
// package.json
|
|
29094
|
+
var package_default = {
|
|
29095
|
+
name: "@hasna/conversations",
|
|
29096
|
+
version: "0.1.3",
|
|
29097
|
+
description: "Real-time CLI messaging for AI agents",
|
|
29098
|
+
type: "module",
|
|
29099
|
+
bin: {
|
|
29100
|
+
conversations: "bin/index.js",
|
|
29101
|
+
"conversations-mcp": "bin/mcp.js"
|
|
29102
|
+
},
|
|
29103
|
+
exports: {
|
|
29104
|
+
".": {
|
|
29105
|
+
import: "./dist/index.js",
|
|
29106
|
+
types: "./dist/index.d.ts"
|
|
29107
|
+
}
|
|
29108
|
+
},
|
|
29109
|
+
files: [
|
|
29110
|
+
"dist/",
|
|
29111
|
+
"bin/",
|
|
29112
|
+
"dashboard/dist/",
|
|
29113
|
+
"LICENSE",
|
|
29114
|
+
"README.md"
|
|
29115
|
+
],
|
|
29116
|
+
main: "./dist/index.js",
|
|
29117
|
+
types: "./dist/index.d.ts",
|
|
29118
|
+
scripts: {
|
|
29119
|
+
build: "bun build ./src/cli/index.tsx --outdir ./bin --target bun --external ink --external react --external chalk && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun build ./src/index.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
29120
|
+
"build:dashboard": "cd dashboard && bun install && bun run build",
|
|
29121
|
+
test: "bun test",
|
|
29122
|
+
dev: "bun run ./src/cli/index.tsx",
|
|
29123
|
+
typecheck: "tsc --noEmit",
|
|
29124
|
+
prepublishOnly: "bun run build"
|
|
29125
|
+
},
|
|
29126
|
+
keywords: [
|
|
29127
|
+
"conversations",
|
|
29128
|
+
"messaging",
|
|
29129
|
+
"ai",
|
|
29130
|
+
"agent",
|
|
29131
|
+
"cli",
|
|
29132
|
+
"typescript",
|
|
29133
|
+
"bun",
|
|
29134
|
+
"claude",
|
|
29135
|
+
"mcp"
|
|
29136
|
+
],
|
|
29137
|
+
author: "Hasna",
|
|
29138
|
+
license: "Apache-2.0",
|
|
29139
|
+
devDependencies: {
|
|
29140
|
+
"@types/bun": "latest",
|
|
29141
|
+
"@types/react": "^18.2.0",
|
|
29142
|
+
typescript: "^5"
|
|
29143
|
+
},
|
|
29144
|
+
dependencies: {
|
|
29145
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
29146
|
+
chalk: "^5.3.0",
|
|
29147
|
+
commander: "^12.1.0",
|
|
29148
|
+
ink: "^5.0.1",
|
|
29149
|
+
"ink-select-input": "^6.0.0",
|
|
29150
|
+
"ink-spinner": "^5.0.0",
|
|
29151
|
+
"ink-text-input": "^6.0.0",
|
|
29152
|
+
react: "^18.2.0",
|
|
29153
|
+
zod: "^4.3.6"
|
|
29154
|
+
},
|
|
29155
|
+
engines: {
|
|
29156
|
+
bun: ">=1.0.0"
|
|
29157
|
+
},
|
|
29158
|
+
publishConfig: {
|
|
29159
|
+
registry: "https://registry.npmjs.org",
|
|
29160
|
+
access: "public"
|
|
29161
|
+
},
|
|
29162
|
+
repository: {
|
|
29163
|
+
type: "git",
|
|
29164
|
+
url: "git+https://github.com/hasna/conversations.git"
|
|
29165
|
+
}
|
|
29166
|
+
};
|
|
29093
29167
|
|
|
29094
29168
|
// src/mcp/index.ts
|
|
29095
29169
|
var server = new McpServer({
|
|
29096
29170
|
name: "conversations",
|
|
29097
|
-
version:
|
|
29171
|
+
version: package_default.version
|
|
29098
29172
|
});
|
|
29099
29173
|
server.registerTool("send_message", {
|
|
29100
29174
|
title: "Send Message",
|