@hasna/conversations 0.0.6 → 0.0.8
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 +6 -4
- package/bin/mcp.js +5 -3
- package/dist/index.js +4 -2
- package/dist/lib/channels.test.d.ts +1 -0
- package/dist/lib/db.test.d.ts +1 -0
- package/dist/lib/identity.test.d.ts +1 -0
- package/dist/lib/messages.test.d.ts +1 -0
- package/dist/lib/poll.test.d.ts +1 -0
- package/dist/lib/sessions.test.d.ts +1 -0
- package/dist/server/serve.test.d.ts +1 -0
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -1871,16 +1871,18 @@ var require_commander = __commonJS((exports) => {
|
|
|
1871
1871
|
// src/lib/db.ts
|
|
1872
1872
|
import { Database } from "bun:sqlite";
|
|
1873
1873
|
import { mkdirSync } from "fs";
|
|
1874
|
-
import { join } from "path";
|
|
1874
|
+
import { join, dirname } from "path";
|
|
1875
1875
|
import { homedir } from "os";
|
|
1876
1876
|
function getDbPath() {
|
|
1877
|
+
if (process.env.CONVERSATIONS_DB_PATH)
|
|
1878
|
+
return process.env.CONVERSATIONS_DB_PATH;
|
|
1877
1879
|
return join(homedir(), ".conversations", "messages.db");
|
|
1878
1880
|
}
|
|
1879
1881
|
function getDb() {
|
|
1880
1882
|
if (db)
|
|
1881
1883
|
return db;
|
|
1882
1884
|
const dbPath = getDbPath();
|
|
1883
|
-
mkdirSync(
|
|
1885
|
+
mkdirSync(dirname(dbPath), { recursive: true });
|
|
1884
1886
|
db = new Database(dbPath, { create: true });
|
|
1885
1887
|
db.exec("PRAGMA journal_mode = WAL");
|
|
1886
1888
|
db.exec("PRAGMA busy_timeout = 5000");
|
|
@@ -31003,7 +31005,7 @@ var init_mcp2 = __esm(() => {
|
|
|
31003
31005
|
init_channels();
|
|
31004
31006
|
server = new McpServer({
|
|
31005
31007
|
name: "conversations",
|
|
31006
|
-
version: "0.0.
|
|
31008
|
+
version: "0.0.8"
|
|
31007
31009
|
});
|
|
31008
31010
|
server.registerTool("send_message", {
|
|
31009
31011
|
title: "Send Message",
|
|
@@ -32275,7 +32277,7 @@ function App({ agent }) {
|
|
|
32275
32277
|
|
|
32276
32278
|
// src/cli/index.tsx
|
|
32277
32279
|
var program2 = new Command;
|
|
32278
|
-
program2.name("conversations").description("Real-time CLI messaging for AI agents").version("0.0.
|
|
32280
|
+
program2.name("conversations").description("Real-time CLI messaging for AI agents").version("0.0.8");
|
|
32279
32281
|
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) => {
|
|
32280
32282
|
const from = resolveIdentity(opts.from);
|
|
32281
32283
|
const metadata = opts.metadata ? JSON.parse(opts.metadata) : undefined;
|
package/bin/mcp.js
CHANGED
|
@@ -28319,17 +28319,19 @@ class StdioServerTransport {
|
|
|
28319
28319
|
// src/lib/db.ts
|
|
28320
28320
|
import { Database } from "bun:sqlite";
|
|
28321
28321
|
import { mkdirSync } from "fs";
|
|
28322
|
-
import { join } from "path";
|
|
28322
|
+
import { join, dirname } from "path";
|
|
28323
28323
|
import { homedir } from "os";
|
|
28324
28324
|
var db = null;
|
|
28325
28325
|
function getDbPath() {
|
|
28326
|
+
if (process.env.CONVERSATIONS_DB_PATH)
|
|
28327
|
+
return process.env.CONVERSATIONS_DB_PATH;
|
|
28326
28328
|
return join(homedir(), ".conversations", "messages.db");
|
|
28327
28329
|
}
|
|
28328
28330
|
function getDb() {
|
|
28329
28331
|
if (db)
|
|
28330
28332
|
return db;
|
|
28331
28333
|
const dbPath = getDbPath();
|
|
28332
|
-
mkdirSync(
|
|
28334
|
+
mkdirSync(dirname(dbPath), { recursive: true });
|
|
28333
28335
|
db = new Database(dbPath, { create: true });
|
|
28334
28336
|
db.exec("PRAGMA journal_mode = WAL");
|
|
28335
28337
|
db.exec("PRAGMA busy_timeout = 5000");
|
|
@@ -28537,7 +28539,7 @@ function resolveIdentity(explicit) {
|
|
|
28537
28539
|
// src/mcp/index.ts
|
|
28538
28540
|
var server = new McpServer({
|
|
28539
28541
|
name: "conversations",
|
|
28540
|
-
version: "0.0.
|
|
28542
|
+
version: "0.0.8"
|
|
28541
28543
|
});
|
|
28542
28544
|
server.registerTool("send_message", {
|
|
28543
28545
|
title: "Send Message",
|
package/dist/index.js
CHANGED
|
@@ -1831,17 +1831,19 @@ var require_react = __commonJS((exports, module) => {
|
|
|
1831
1831
|
// src/lib/db.ts
|
|
1832
1832
|
import { Database } from "bun:sqlite";
|
|
1833
1833
|
import { mkdirSync } from "fs";
|
|
1834
|
-
import { join } from "path";
|
|
1834
|
+
import { join, dirname } from "path";
|
|
1835
1835
|
import { homedir } from "os";
|
|
1836
1836
|
var db = null;
|
|
1837
1837
|
function getDbPath() {
|
|
1838
|
+
if (process.env.CONVERSATIONS_DB_PATH)
|
|
1839
|
+
return process.env.CONVERSATIONS_DB_PATH;
|
|
1838
1840
|
return join(homedir(), ".conversations", "messages.db");
|
|
1839
1841
|
}
|
|
1840
1842
|
function getDb() {
|
|
1841
1843
|
if (db)
|
|
1842
1844
|
return db;
|
|
1843
1845
|
const dbPath = getDbPath();
|
|
1844
|
-
mkdirSync(
|
|
1846
|
+
mkdirSync(dirname(dbPath), { recursive: true });
|
|
1845
1847
|
db = new Database(dbPath, { create: true });
|
|
1846
1848
|
db.exec("PRAGMA journal_mode = WAL");
|
|
1847
1849
|
db.exec("PRAGMA busy_timeout = 5000");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|