@hasna/conversations 0.1.16 → 0.1.17
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 +18 -3
- package/bin/mcp.js +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -3231,7 +3231,7 @@ var init_poll = __esm(() => {
|
|
|
3231
3231
|
var require_package = __commonJS((exports, module) => {
|
|
3232
3232
|
module.exports = {
|
|
3233
3233
|
name: "@hasna/conversations",
|
|
3234
|
-
version: "0.1.
|
|
3234
|
+
version: "0.1.17",
|
|
3235
3235
|
description: "Real-time CLI messaging for AI agents",
|
|
3236
3236
|
type: "module",
|
|
3237
3237
|
bin: {
|
|
@@ -35310,8 +35310,8 @@ program2.command("watch").description("Watch for new messages with desktop notif
|
|
|
35310
35310
|
if (process.platform === "darwin") {
|
|
35311
35311
|
try {
|
|
35312
35312
|
const { execSync } = __require("child_process");
|
|
35313
|
-
const t = title.replace(/"/g, "
|
|
35314
|
-
const b = body.replace(/"/g, "
|
|
35313
|
+
const t = title.replace(/['"\\]/g, " ");
|
|
35314
|
+
const b = body.replace(/['"\\]/g, " ").replace(/\n/g, " ").slice(0, 200);
|
|
35315
35315
|
execSync(`osascript -e 'display notification "${b}" with title "${t}"'`, { timeout: 3000 });
|
|
35316
35316
|
} catch {}
|
|
35317
35317
|
}
|
|
@@ -35331,6 +35331,21 @@ program2.command("watch").description("Watch for new messages with desktop notif
|
|
|
35331
35331
|
console.log(chalk2.dim(" " + "\xB7".repeat(Math.min(cols - 8, 60))));
|
|
35332
35332
|
console.log("");
|
|
35333
35333
|
};
|
|
35334
|
+
const recent = readMessages({
|
|
35335
|
+
to: opts.space ? undefined : agent,
|
|
35336
|
+
space: opts.space,
|
|
35337
|
+
limit: 20,
|
|
35338
|
+
order: "asc"
|
|
35339
|
+
});
|
|
35340
|
+
if (recent.length > 0) {
|
|
35341
|
+
console.log(chalk2.dim(` \u2500\u2500 Recent messages (${recent.length}) \u2500\u2500
|
|
35342
|
+
`));
|
|
35343
|
+
for (const msg of recent) {
|
|
35344
|
+
renderMessage(msg);
|
|
35345
|
+
}
|
|
35346
|
+
console.log(chalk2.dim(` \u2500\u2500 Live \u2500\u2500
|
|
35347
|
+
`));
|
|
35348
|
+
}
|
|
35334
35349
|
startPolling2({
|
|
35335
35350
|
to_agent: opts.space ? undefined : agent,
|
|
35336
35351
|
space: opts.space,
|
package/bin/mcp.js
CHANGED
|
@@ -29554,7 +29554,7 @@ function renameAgent(oldName, newName) {
|
|
|
29554
29554
|
// package.json
|
|
29555
29555
|
var package_default = {
|
|
29556
29556
|
name: "@hasna/conversations",
|
|
29557
|
-
version: "0.1.
|
|
29557
|
+
version: "0.1.17",
|
|
29558
29558
|
description: "Real-time CLI messaging for AI agents",
|
|
29559
29559
|
type: "module",
|
|
29560
29560
|
bin: {
|