@leemour/cli-messaging 0.42.0 → 0.43.0

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.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/index.d.ts +1 -1
  3. package/dist/cli/index.d.ts.map +1 -1
  4. package/dist/cli/index.js +1 -1
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/cli/messenger/messages-command.d.ts +3 -1
  7. package/dist/cli/messenger/messages-command.d.ts.map +1 -1
  8. package/dist/cli/messenger/messages-command.js +21 -5
  9. package/dist/cli/messenger/messages-command.js.map +1 -1
  10. package/dist/cli/messenger/port.d.ts +3 -0
  11. package/dist/cli/messenger/port.d.ts.map +1 -1
  12. package/dist/cli/messenger/port.js.map +1 -1
  13. package/dist/cli/messenger/serve-command.d.ts +4 -0
  14. package/dist/cli/messenger/serve-command.d.ts.map +1 -1
  15. package/dist/cli/messenger/serve-command.js +18 -4
  16. package/dist/cli/messenger/serve-command.js.map +1 -1
  17. package/dist/cli/messenger/server-command.d.ts.map +1 -1
  18. package/dist/cli/messenger/server-command.js +8 -0
  19. package/dist/cli/messenger/server-command.js.map +1 -1
  20. package/dist/mcp/tools/messages-send.d.ts.map +1 -1
  21. package/dist/mcp/tools/messages-send.js +20 -4
  22. package/dist/mcp/tools/messages-send.js.map +1 -1
  23. package/dist/sends/index.d.ts +1 -0
  24. package/dist/sends/index.d.ts.map +1 -1
  25. package/dist/sends/index.js +1 -0
  26. package/dist/sends/index.js.map +1 -1
  27. package/dist/sends/upload.d.ts +14 -0
  28. package/dist/sends/upload.d.ts.map +1 -0
  29. package/dist/sends/upload.js +47 -0
  30. package/dist/sends/upload.js.map +1 -0
  31. package/dist/store/drivers/bun-sqlite.d.ts +15 -1
  32. package/dist/store/drivers/bun-sqlite.d.ts.map +1 -1
  33. package/dist/store/drivers/bun-sqlite.js +3 -1
  34. package/dist/store/drivers/bun-sqlite.js.map +1 -1
  35. package/dist/store/drivers/node-sqlite.d.ts +2 -0
  36. package/dist/store/drivers/node-sqlite.d.ts.map +1 -1
  37. package/dist/store/drivers/node-sqlite.js +2 -2
  38. package/dist/store/drivers/node-sqlite.js.map +1 -1
  39. package/dist/store/sqlite/open.d.ts +16 -0
  40. package/dist/store/sqlite/open.d.ts.map +1 -0
  41. package/dist/store/sqlite/open.js +30 -0
  42. package/dist/store/sqlite/open.js.map +1 -0
  43. package/dist/store/sqlite/schema.d.ts +1491 -0
  44. package/dist/store/sqlite/schema.d.ts.map +1 -0
  45. package/dist/store/sqlite/schema.js +150 -0
  46. package/dist/store/sqlite/schema.js.map +1 -0
  47. package/package.json +4 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/schema.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAA;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAezB,CAAA;AAED,eAAO,MAAM,kBAAk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;;;;;;;;;EAqBvB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7B,CAAA"}
@@ -0,0 +1,150 @@
1
+ import { desc } from "drizzle-orm";
2
+ import { index, integer, primaryKey, real, sqliteTable, text, unique } from "drizzle-orm/sqlite-core";
3
+ /**
4
+ * The store's base tables as migrations 1–5 left them — what `drizzle-kit generate` diffs against.
5
+ * A change here becomes a migration, so it follows the rules at the top of `../migrations.ts`. The
6
+ * FTS5 tables and their triggers are not modelled by Drizzle and live in hand-written SQL.
7
+ */
8
+ export const accounts = sqliteTable("accounts", {
9
+ pk: integer("pk").primaryKey(),
10
+ provider: text("provider").notNull(),
11
+ nativeId: text("native_id").notNull(),
12
+ name: text("name"),
13
+ createdAt: integer("created_at").notNull(),
14
+ }, (table) => [unique().on(table.provider, table.nativeId)]);
15
+ export const persons = sqliteTable("persons", {
16
+ pk: integer("pk").primaryKey(),
17
+ uid: text("uid").notNull().unique(),
18
+ name: text("name"),
19
+ isSelf: integer("is_self").notNull().default(0),
20
+ createdAt: integer("created_at").notNull(),
21
+ updatedAt: integer("updated_at").notNull(),
22
+ });
23
+ export const identities = sqliteTable("identities", {
24
+ pk: integer("pk").primaryKey(),
25
+ provider: text("provider").notNull(),
26
+ nativeId: text("native_id").notNull(),
27
+ username: text("username"),
28
+ name: text("name"),
29
+ isBot: integer("is_bot"),
30
+ phoneHmac: text("phone_hmac"),
31
+ providerMetadata: text("provider_metadata"),
32
+ firstSeenAt: integer("first_seen_at").notNull(),
33
+ updatedAt: integer("updated_at").notNull(),
34
+ }, (table) => [unique().on(table.provider, table.nativeId)]);
35
+ export const identityLinks = sqliteTable("identity_links", {
36
+ identityPk: integer("identity_pk")
37
+ .primaryKey()
38
+ .references(() => identities.pk),
39
+ personPk: integer("person_pk")
40
+ .notNull()
41
+ .references(() => persons.pk),
42
+ method: text("method").notNull(),
43
+ confidence: real("confidence").notNull(),
44
+ linkedAt: integer("linked_at").notNull(),
45
+ linkedBy: text("linked_by").notNull(),
46
+ }, (table) => [index("identity_links_by_person").on(table.personPk)]);
47
+ export const identityLinkEvents = sqliteTable("identity_link_events", {
48
+ pk: integer("pk").primaryKey(),
49
+ identityPk: integer("identity_pk")
50
+ .notNull()
51
+ .references(() => identities.pk),
52
+ fromPersonPk: integer("from_person_pk").references(() => persons.pk),
53
+ toPersonPk: integer("to_person_pk")
54
+ .notNull()
55
+ .references(() => persons.pk),
56
+ method: text("method").notNull(),
57
+ at: integer("at").notNull(),
58
+ by: text("by").notNull(),
59
+ });
60
+ export const chats = sqliteTable("chats", {
61
+ pk: integer("pk").primaryKey(),
62
+ accountPk: integer("account_pk")
63
+ .notNull()
64
+ .references(() => accounts.pk),
65
+ nativeId: text("native_id").notNull(),
66
+ kind: text("kind").notNull(),
67
+ title: text("title"),
68
+ unreadCount: integer("unread_count"),
69
+ lastMessageAt: integer("last_message_at"),
70
+ participantsCount: integer("participants_count"),
71
+ providerMetadata: text("provider_metadata"),
72
+ updatedAt: integer("updated_at").notNull(),
73
+ }, (table) => [
74
+ unique().on(table.accountPk, table.nativeId),
75
+ index("chats_by_recency").on(table.accountPk, desc(table.lastMessageAt)),
76
+ ]);
77
+ export const messages = sqliteTable("messages", {
78
+ pk: integer("pk").primaryKey(),
79
+ chatPk: integer("chat_pk")
80
+ .notNull()
81
+ .references(() => chats.pk),
82
+ accountPk: integer("account_pk")
83
+ .notNull()
84
+ .references(() => accounts.pk),
85
+ nativeId: text("native_id").notNull(),
86
+ threadNativeId: text("thread_native_id"),
87
+ senderIdentityPk: integer("sender_identity_pk").references(() => identities.pk),
88
+ senderChatNativeId: text("sender_chat_native_id"),
89
+ senderName: text("sender_name"),
90
+ sentAt: integer("sent_at").notNull(),
91
+ editedAt: integer("edited_at"),
92
+ deletedAt: integer("deleted_at"),
93
+ text: text("text").notNull(),
94
+ replyToNativeId: text("reply_to_native_id"),
95
+ replyTo: text("reply_to"),
96
+ forward: text("forward"),
97
+ outgoing: integer("outgoing"),
98
+ reactions: text("reactions"),
99
+ providerMetadata: text("provider_metadata"),
100
+ ingestedAt: integer("ingested_at").notNull(),
101
+ ingestedVia: text("ingested_via").notNull(),
102
+ }, (table) => [
103
+ unique().on(table.chatPk, table.nativeId),
104
+ index("messages_by_time").on(table.chatPk, desc(table.sentAt)),
105
+ index("messages_by_account").on(table.accountPk, table.nativeId),
106
+ index("messages_by_sender").on(table.senderIdentityPk),
107
+ ]);
108
+ export const messageRevisions = sqliteTable("message_revisions", {
109
+ messagePk: integer("message_pk")
110
+ .notNull()
111
+ .references(() => messages.pk),
112
+ text: text("text").notNull(),
113
+ editedAt: integer("edited_at"),
114
+ capturedAt: integer("captured_at").notNull(),
115
+ }, (table) => [index("revisions_by_message").on(table.messagePk)]);
116
+ export const attachments = sqliteTable("attachments", {
117
+ pk: integer("pk").primaryKey(),
118
+ messagePk: integer("message_pk")
119
+ .notNull()
120
+ .references(() => messages.pk),
121
+ position: integer("position").notNull(),
122
+ kind: text("kind").notNull(),
123
+ mime: text("mime"),
124
+ name: text("name"),
125
+ title: text("title"),
126
+ url: text("url"),
127
+ size: integer("size"),
128
+ width: integer("width"),
129
+ height: integer("height"),
130
+ duration: real("duration"),
131
+ providerRef: text("provider_ref"),
132
+ localPath: text("local_path"),
133
+ }, (table) => [unique().on(table.messagePk, table.position)]);
134
+ export const syncRanges = sqliteTable("sync_ranges", {
135
+ chatPk: integer("chat_pk")
136
+ .notNull()
137
+ .references(() => chats.pk),
138
+ fromKey: integer("from_key").notNull(),
139
+ toKey: integer("to_key").notNull(),
140
+ }, (table) => [primaryKey({ columns: [table.chatPk, table.fromKey] })]);
141
+ export const accountIdentities = sqliteTable("account_identities", {
142
+ accountPk: integer("account_pk")
143
+ .notNull()
144
+ .references(() => accounts.pk),
145
+ identityPk: integer("identity_pk")
146
+ .notNull()
147
+ .references(() => identities.pk),
148
+ firstSeenAt: integer("first_seen_at").notNull(),
149
+ }, (table) => [primaryKey({ columns: [table.accountPk, table.identityPk] })]);
150
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/store/sqlite/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAErG;;;;GAIG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CACjC,UAAU,EACV;IACE,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC9B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE;IACpC,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE;IACrC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE;CAC3C,EACD,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CACzD,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,SAAS,EAAE;IAC5C,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAC9B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IACnC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,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messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
5
5
  "license": "MIT",
6
6
  "author": "Viacheslav Ptsarev",
@@ -41,6 +41,7 @@
41
41
  "typecheck": "tsc --build --force --emitDeclarationOnly && tsc -p tsconfig.test.json && tsc -p tsconfig.scripts.json",
42
42
  "lint": "biome check .",
43
43
  "lint:fix": "biome check --write .",
44
+ "db:generate": "drizzle-kit generate",
44
45
  "docs:check": "node --experimental-strip-types scripts/docs-check.ts",
45
46
  "test": "vitest run",
46
47
  "test:watch": "vitest",
@@ -56,6 +57,7 @@
56
57
  "@leemour/cli-core": "0.8.0",
57
58
  "@modelcontextprotocol/server": "2.1.0",
58
59
  "@valibot/to-json-schema": "1.8.0",
60
+ "drizzle-orm": "1.0.0-rc.4",
59
61
  "ogg-opus-decoder": "1.7.5",
60
62
  "qrcode-generator": "2.0.4",
61
63
  "sherpa-onnx": "1.13.8",
@@ -70,6 +72,7 @@
70
72
  "@types/pngjs": "6.0.5",
71
73
  "@vitest/coverage-v8": "^5.0.2",
72
74
  "commander": "15.0.0",
75
+ "drizzle-kit": "1.0.0-rc.4",
73
76
  "jsqr": "1.4.0",
74
77
  "lefthook": "^2.1.8",
75
78
  "pngjs": "7.0.0",