@wirecat/cli-core 0.411.0 → 0.413.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.
- package/CHANGELOG.md +32 -0
- package/dist/cli/bot/command.js +3 -3
- package/dist/cli/bot/messages-sync.d.ts +7 -0
- package/dist/cli/bot/{store.js → messages-sync.js} +4 -5
- package/dist/cli/bot/port.d.ts +3 -3
- package/dist/cli/config-command.js +1 -0
- package/dist/cli/entry.d.ts +59 -0
- package/dist/cli/entry.js +136 -0
- package/dist/cli/first-run.d.ts +1 -1
- package/dist/cli/first-run.js +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +1 -0
- package/dist/cli/messenger/store-maintenance-command.d.ts +1 -1
- package/dist/cli/messenger/tasks-command.js +2 -2
- package/dist/cli/moved.js +1 -0
- package/dist/cli/settings.d.ts +2 -0
- package/dist/cli/settings.js +5 -1
- package/dist/domain/providers.d.ts +25 -3
- package/dist/domain/providers.js +89 -5
- package/dist/entities/index.d.ts +29 -1
- package/dist/entities/index.js +5 -1
- package/dist/entities/knowledge-lists.d.ts +28 -0
- package/dist/entities/knowledge-lists.js +29 -0
- package/dist/errors/reasons.js +16 -1
- package/dist/files/native-writer-lease.js +17 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/oauth/authorize.d.ts +21 -0
- package/dist/oauth/authorize.js +130 -0
- package/dist/oauth/index.d.ts +5 -0
- package/dist/oauth/index.js +4 -0
- package/dist/oauth/keeper.d.ts +41 -0
- package/dist/oauth/keeper.js +136 -0
- package/dist/oauth/provider.d.ts +54 -0
- package/dist/oauth/provider.js +1 -0
- package/dist/oauth/requests.d.ts +11 -0
- package/dist/oauth/requests.js +129 -0
- package/dist/oauth/storage.d.ts +48 -0
- package/dist/oauth/storage.js +197 -0
- package/dist/search/account-list.d.ts +5 -2
- package/dist/search/account-list.js +27 -11
- package/dist/search/query.js +3 -1
- package/dist/sends/permission-aliases.js +1 -0
- package/dist/services/documents/knowledge.d.ts +5 -3
- package/dist/services/documents/knowledge.js +4 -4
- package/dist/services/meeting-links.d.ts +3 -1
- package/dist/services/meeting-links.js +2 -2
- package/dist/services/messages-search.js +15 -3
- package/dist/services/project-gathering.d.ts +2 -0
- package/dist/services/project-gathering.js +18 -2
- package/dist/services/search-all.js +5 -2
- package/dist/store/accounts.d.ts +3 -0
- package/dist/store/accounts.js +2 -0
- package/dist/store/exports.d.ts +1 -0
- package/dist/store/exports.js +1 -0
- package/dist/store/index.d.ts +3 -1
- package/dist/store/index.js +2 -0
- package/dist/store/knowledge-query.d.ts +6 -0
- package/dist/store/knowledge-query.js +34 -0
- package/dist/store/providers.d.ts +7 -0
- package/dist/store/providers.js +5 -0
- package/dist/store/sqlite/knowledge.d.ts +5 -4
- package/dist/store/sqlite/knowledge.js +50 -17
- package/dist/store/sqlite/mail-rules.d.ts +2 -1
- package/dist/store/sqlite/mail-rules.js +12 -2
- package/dist/store/sqlite/notes.d.ts +11 -5
- package/dist/store/sqlite/notes.js +9 -2
- package/dist/store/sqlite/open-store.js +2 -0
- package/dist/store/sqlite/providers.d.ts +12 -0
- package/dist/store/sqlite/providers.js +45 -0
- package/dist/store/sqlite/tags.d.ts +1 -1
- package/dist/store/sqlite/tags.js +3 -3
- package/package.json +5 -1
- package/parity.json +31 -35
- package/dist/cli/bot/store.d.ts +0 -7
package/parity.json
CHANGED
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
"--until-id": {
|
|
1066
1066
|
"value": "<id>",
|
|
1067
1067
|
"meaning": "only up to this message id, inclusive; the newest by default",
|
|
1068
|
-
"note": "tg's `bot
|
|
1068
|
+
"note": "tg's `bot messages sync` takes a message link here, the message the sync starts at, inclusive"
|
|
1069
1069
|
},
|
|
1070
1070
|
"--until-time": {
|
|
1071
1071
|
"value": "<time>",
|
|
@@ -1917,6 +1917,36 @@
|
|
|
1917
1917
|
"wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
|
|
1918
1918
|
}
|
|
1919
1919
|
},
|
|
1920
|
+
"bot messages sync": {
|
|
1921
|
+
"in": ["max", "tg"],
|
|
1922
|
+
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account",
|
|
1923
|
+
"options": {
|
|
1924
|
+
"--last": {
|
|
1925
|
+
"in": ["max", "tg"],
|
|
1926
|
+
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
1927
|
+
},
|
|
1928
|
+
"--limit": {
|
|
1929
|
+
"in": ["max", "tg"],
|
|
1930
|
+
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
1931
|
+
},
|
|
1932
|
+
"--page-size": {
|
|
1933
|
+
"in": ["max", "tg"],
|
|
1934
|
+
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
1935
|
+
},
|
|
1936
|
+
"--pause": {
|
|
1937
|
+
"in": ["max", "tg"],
|
|
1938
|
+
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
1939
|
+
},
|
|
1940
|
+
"--since-time": {
|
|
1941
|
+
"in": ["max", "tg"],
|
|
1942
|
+
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
1943
|
+
},
|
|
1944
|
+
"--until-id": {
|
|
1945
|
+
"in": ["tg"],
|
|
1946
|
+
"reason": "Telegram bots read message numbers and need a starting link when none is known; MAX pages chat history directly; WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1920
1950
|
"bot messages unpin": {
|
|
1921
1951
|
"in": ["max", "tg"],
|
|
1922
1952
|
"planned": {
|
|
@@ -2015,40 +2045,6 @@
|
|
|
2015
2045
|
"wa": "whatsapp-cli: wa bot API, plans/2026-10-22-wa-bot-api"
|
|
2016
2046
|
}
|
|
2017
2047
|
},
|
|
2018
|
-
"bot store": {
|
|
2019
|
-
"in": ["max", "tg"],
|
|
2020
|
-
"reason": "Meta's Cloud API keeps no history a bot can fetch; WhatsApp bots get only what arrives by webhook"
|
|
2021
|
-
},
|
|
2022
|
-
"bot store fetch": {
|
|
2023
|
-
"in": ["max", "tg"],
|
|
2024
|
-
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account",
|
|
2025
|
-
"options": {
|
|
2026
|
-
"--last": {
|
|
2027
|
-
"in": ["max", "tg"],
|
|
2028
|
-
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
2029
|
-
},
|
|
2030
|
-
"--limit": {
|
|
2031
|
-
"in": ["max", "tg"],
|
|
2032
|
-
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
2033
|
-
},
|
|
2034
|
-
"--page-size": {
|
|
2035
|
-
"in": ["max", "tg"],
|
|
2036
|
-
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
2037
|
-
},
|
|
2038
|
-
"--pause": {
|
|
2039
|
-
"in": ["max", "tg"],
|
|
2040
|
-
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
2041
|
-
},
|
|
2042
|
-
"--since-time": {
|
|
2043
|
-
"in": ["max", "tg"],
|
|
2044
|
-
"reason": "WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
2045
|
-
},
|
|
2046
|
-
"--until-id": {
|
|
2047
|
-
"in": ["tg"],
|
|
2048
|
-
"reason": "Telegram bots read message numbers and need a starting link when none is known; MAX pages chat history directly; WhatsApp's bots are the Business Platform's, on a business number; wa links a personal account"
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
},
|
|
2052
2048
|
"bot templates": {
|
|
2053
2049
|
"in": [],
|
|
2054
2050
|
"reason": "message templates are WhatsApp Business's; MAX and Telegram bots write freely",
|
package/dist/cli/bot/store.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import type { BotMessenger } from "./port.js";
|
|
3
|
-
/**
|
|
4
|
-
* `bot store fetch`: a chat's history into the bot's local copy, newest to oldest and resumable, as the
|
|
5
|
-
* personal `messages sync` does. Mounted for a messenger whose Bot API pages back through a chat.
|
|
6
|
-
*/
|
|
7
|
-
export declare const botStoreCommand: (bot: BotMessenger, fetching: NonNullable<BotMessenger["fetching"]>) => Command;
|