@hasna/conversations 0.1.27 → 0.1.28
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/hook.js +2 -1
- package/bin/index.js +3 -2
- package/bin/mcp.js +3 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/bin/hook.js
CHANGED
|
@@ -216,7 +216,8 @@ function getDb() {
|
|
|
216
216
|
db.exec("ALTER TABLE agent_presence ADD COLUMN role TEXT NOT NULL DEFAULT 'agent'");
|
|
217
217
|
}
|
|
218
218
|
if (!presenceColNames.includes("created_at")) {
|
|
219
|
-
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT
|
|
219
|
+
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT ''");
|
|
220
|
+
db.exec("UPDATE agent_presence SET created_at = last_seen_at WHERE created_at = ''");
|
|
220
221
|
}
|
|
221
222
|
const ftsExists = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='messages_fts'").get();
|
|
222
223
|
if (!ftsExists) {
|
package/bin/index.js
CHANGED
|
@@ -2070,7 +2070,8 @@ function getDb() {
|
|
|
2070
2070
|
db.exec("ALTER TABLE agent_presence ADD COLUMN role TEXT NOT NULL DEFAULT 'agent'");
|
|
2071
2071
|
}
|
|
2072
2072
|
if (!presenceColNames.includes("created_at")) {
|
|
2073
|
-
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT
|
|
2073
|
+
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT ''");
|
|
2074
|
+
db.exec("UPDATE agent_presence SET created_at = last_seen_at WHERE created_at = ''");
|
|
2074
2075
|
}
|
|
2075
2076
|
const ftsExists = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='messages_fts'").get();
|
|
2076
2077
|
if (!ftsExists) {
|
|
@@ -3590,7 +3591,7 @@ var init_poll = __esm(() => {
|
|
|
3590
3591
|
var require_package = __commonJS((exports, module) => {
|
|
3591
3592
|
module.exports = {
|
|
3592
3593
|
name: "@hasna/conversations",
|
|
3593
|
-
version: "0.1.
|
|
3594
|
+
version: "0.1.28",
|
|
3594
3595
|
description: "Real-time CLI messaging for AI agents",
|
|
3595
3596
|
type: "module",
|
|
3596
3597
|
bin: {
|
package/bin/mcp.js
CHANGED
|
@@ -6702,7 +6702,8 @@ function getDb() {
|
|
|
6702
6702
|
db.exec("ALTER TABLE agent_presence ADD COLUMN role TEXT NOT NULL DEFAULT 'agent'");
|
|
6703
6703
|
}
|
|
6704
6704
|
if (!presenceColNames.includes("created_at")) {
|
|
6705
|
-
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT
|
|
6705
|
+
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT ''");
|
|
6706
|
+
db.exec("UPDATE agent_presence SET created_at = last_seen_at WHERE created_at = ''");
|
|
6706
6707
|
}
|
|
6707
6708
|
const ftsExists = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='messages_fts'").get();
|
|
6708
6709
|
if (!ftsExists) {
|
|
@@ -29863,7 +29864,7 @@ function renameAgent(oldName, newName) {
|
|
|
29863
29864
|
// package.json
|
|
29864
29865
|
var package_default = {
|
|
29865
29866
|
name: "@hasna/conversations",
|
|
29866
|
-
version: "0.1.
|
|
29867
|
+
version: "0.1.28",
|
|
29867
29868
|
description: "Real-time CLI messaging for AI agents",
|
|
29868
29869
|
type: "module",
|
|
29869
29870
|
bin: {
|
package/dist/index.js
CHANGED
|
@@ -229,7 +229,8 @@ function getDb() {
|
|
|
229
229
|
db.exec("ALTER TABLE agent_presence ADD COLUMN role TEXT NOT NULL DEFAULT 'agent'");
|
|
230
230
|
}
|
|
231
231
|
if (!presenceColNames.includes("created_at")) {
|
|
232
|
-
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT
|
|
232
|
+
db.exec("ALTER TABLE agent_presence ADD COLUMN created_at TEXT NOT NULL DEFAULT ''");
|
|
233
|
+
db.exec("UPDATE agent_presence SET created_at = last_seen_at WHERE created_at = ''");
|
|
233
234
|
}
|
|
234
235
|
const ftsExists = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='messages_fts'").get();
|
|
235
236
|
if (!ftsExists) {
|