@wirecat/cli-core 0.521.0 → 0.522.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 +8 -0
- package/dist/sends/journal.d.ts +1 -1
- package/dist/sends/permissions.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ shape of this file.
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 0.522.0 — 01.11.2026
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Mail actions in the send journal.** `AccountAction` takes `message-flag`, `message-move`, `message-copy`,
|
|
15
|
+
`message-delete` and `message-restore`, so a mail CLI journals its changes to a mailbox under its own words. Like
|
|
16
|
+
the other `account` actions they count toward no hourly limit: organising mail reaches nobody.
|
|
17
|
+
|
|
10
18
|
## 0.521.0 — 01.11.2026
|
|
11
19
|
|
|
12
20
|
### Fixed
|
package/dist/sends/journal.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type SendKind = "message" | "reaction" | "edit" | "forward" | "pin" | "re
|
|
|
8
8
|
/** What a `chat` entry did. Never a title, a description or a link — only which action. */
|
|
9
9
|
export type ChatAction = "create" | "join" | "leave" | "delete" | "clear" | "members.add" | "members.remove" | "admins.add" | "admins.remove" | "update" | "settings" | "requests.accept" | "requests.decline" | "link.reset" | "link.create" | "link.revoke" | "link.update" | "forum-upgrade" | "forum-enable" | "topic-create" | "topic-edit" | "topic-delete" | "topic-close" | "topic-reopen" | "topic-pin" | "topic-unpin" | "topic-order" | "topic-hide" | "topic-unhide";
|
|
10
10
|
/** What an `account` entry changed. Never the value it changed it to — no name, number or title. */
|
|
11
|
-
export type AccountAction = "contact-add" | "contact-remove" | "contact-import" | "contact-rename" | "contact-block" | "contact-unblock" | "profile" | "folder-create" | "folder-update" | "folder-delete" | "folder-order" | "folder-join" | "sessions-end" | "chat-mute" | "chat-unmute" | "chat-archive" | "chat-unarchive" | "chat-pin" | "chat-unpin" | "chat-mark-unread" | "message-star" | "message-unstar" | "privacy";
|
|
11
|
+
export type AccountAction = "contact-add" | "contact-remove" | "contact-import" | "contact-rename" | "contact-block" | "contact-unblock" | "profile" | "folder-create" | "folder-update" | "folder-delete" | "folder-order" | "folder-join" | "sessions-end" | "chat-mute" | "chat-unmute" | "chat-archive" | "chat-unarchive" | "chat-pin" | "chat-unpin" | "chat-mark-unread" | "message-star" | "message-unstar" | "message-flag" | "message-move" | "message-copy" | "message-delete" | "message-restore" | "privacy";
|
|
12
12
|
/** One attempt to send. **Never the text** — only its length. */
|
|
13
13
|
export interface SendEntry {
|
|
14
14
|
at: string;
|
|
@@ -173,6 +173,12 @@ const ACCOUNT_KEYS = {
|
|
|
173
173
|
"chat-mark-unread": "chats.mark-unread",
|
|
174
174
|
"message-star": "messages.star",
|
|
175
175
|
"message-unstar": "messages.unstar",
|
|
176
|
+
// A mail CLI names its own key on every write; these only answer `keyForWrite` when one is left out.
|
|
177
|
+
"message-flag": "messages.update",
|
|
178
|
+
"message-move": "messages.move",
|
|
179
|
+
"message-copy": "messages.copy",
|
|
180
|
+
"message-delete": "messages.trash",
|
|
181
|
+
"message-restore": "messages.restore",
|
|
176
182
|
privacy: "account.privacy.set",
|
|
177
183
|
};
|
|
178
184
|
const KIND_KEYS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.522.0",
|
|
4
4
|
"description": "The 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": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|