@wirecat/cli-core 0.404.0 → 0.406.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 +45 -1
- package/dist/botcheck/reasons.d.ts +1 -1
- package/dist/cli/analysis-choice.js +1 -1
- package/dist/cli/answer-entity.d.ts +5 -0
- package/dist/cli/answer-entity.js +25 -0
- package/dist/cli/command-contract.js +2 -5
- package/dist/cli/commands-command.js +4 -1
- package/dist/cli/effects.js +1 -1
- package/dist/cli/embedding-choice.d.ts +1 -1
- package/dist/cli/embedding-choice.js +2 -2
- package/dist/cli/first-run.js +3 -3
- package/dist/cli/help/command-help.js +2 -2
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +1 -0
- package/dist/cli/json-fields.js +2 -2
- package/dist/cli/meeting-project-candidates-command.js +0 -1
- package/dist/cli/meeting-series-inventory-command.js +0 -1
- package/dist/cli/messenger/admin-commands.js +14 -14
- package/dist/cli/messenger/archive-commands.js +2 -2
- package/dist/cli/messenger/attachments-command.js +7 -8
- package/dist/cli/messenger/backfill-command.js +1 -1
- package/dist/cli/messenger/chat-answers.js +3 -3
- package/dist/cli/messenger/chat-lists.js +3 -3
- package/dist/cli/messenger/chats-command.js +8 -8
- package/dist/cli/messenger/chats-members-command.js +1 -1
- package/dist/cli/messenger/contacts-command.js +10 -7
- package/dist/cli/messenger/context.d.ts +11 -4
- package/dist/cli/messenger/context.js +6 -0
- package/dist/cli/messenger/conversation-examples.js +7 -6
- package/dist/cli/messenger/conversations-command.d.ts +0 -4
- package/dist/cli/messenger/conversations-command.js +130 -135
- package/dist/cli/messenger/counters-command.js +4 -2
- package/dist/cli/messenger/doctor-command.js +8 -4
- package/dist/cli/messenger/gaps-command.js +2 -2
- package/dist/cli/messenger/hearing-command.d.ts +1 -1
- package/dist/cli/messenger/hearing-command.js +1 -1
- package/dist/cli/messenger/images-command.js +1 -1
- package/dist/cli/messenger/inbox.js +1 -3
- package/dist/cli/messenger/lacks.d.ts +1 -0
- package/dist/cli/messenger/lacks.js +1 -1
- package/dist/cli/messenger/mcp-command.js +4 -4
- package/dist/cli/messenger/messages-comments-command.js +10 -5
- package/dist/cli/messenger/messages-send-command.js +44 -3
- package/dist/cli/messenger/metadata-command.js +5 -5
- package/dist/cli/messenger/models-command.js +101 -90
- package/dist/cli/messenger/private-people-command.js +5 -6
- package/dist/cli/messenger/replies-edit-command.js +0 -1
- package/dist/cli/messenger/review.js +1 -3
- package/dist/cli/messenger/serve-relay.d.ts +2 -0
- package/dist/cli/messenger/stats-command.js +1 -1
- package/dist/cli/messenger/store-maintenance-command.d.ts +2 -2
- package/dist/cli/messenger/store-maintenance-command.js +4 -4
- package/dist/cli/messenger/stored.js +5 -0
- package/dist/cli/messenger/tags-command.js +4 -10
- package/dist/cli/messenger/tasks-command.js +3 -3
- package/dist/cli/messenger/transcribe-command.js +1 -1
- package/dist/cli/moved.d.ts +2 -0
- package/dist/cli/moved.js +39 -1
- package/dist/cli/permission-keys.js +2 -0
- package/dist/cli/settings.js +1 -1
- package/dist/cli/setup-answers.d.ts +2 -2
- package/dist/cli/setup-answers.js +2 -2
- package/dist/cli/steps.js +4 -4
- package/dist/cli/store-settings.js +1 -1
- package/dist/cli/upgrade-command.js +0 -1
- package/dist/domain/models.d.ts +3 -3
- package/dist/domain/task-categories.js +1 -1
- package/dist/embeddings/remote.js +1 -1
- package/dist/entities/index.d.ts +380 -0
- package/dist/entities/index.js +2 -1
- package/dist/entities/member.d.ts +2 -2
- package/dist/entities/member.js +2 -2
- package/dist/entities/message-write.d.ts +386 -0
- package/dist/entities/message-write.js +6 -0
- package/dist/mcp/agent.d.ts +1 -0
- package/dist/mcp/agent.js +1 -1
- package/dist/mcp/tools/attachments.js +1 -1
- package/dist/meetings/mcp/index.d.ts +15 -15
- package/dist/ports/app.d.ts +1 -1
- package/dist/ports/messenger.d.ts +8 -1
- package/dist/ports/traits.d.ts +2 -0
- package/dist/search/task-similarity.js +1 -1
- package/dist/sends/guard.js +2 -2
- package/dist/sends/permission-aliases.d.ts +5 -0
- package/dist/sends/permission-aliases.js +49 -0
- package/dist/sends/permissions.d.ts +1 -1
- package/dist/sends/permissions.js +35 -25
- package/dist/services/admin.js +7 -7
- package/dist/services/chats.js +1 -1
- package/dist/services/conversations.d.ts +1 -1
- package/dist/services/conversations.js +1 -1
- package/dist/services/counters.js +1 -1
- package/dist/services/embeddings-maintenance.js +2 -2
- package/dist/services/embeddings-search.js +1 -1
- package/dist/services/embeddings.d.ts +4 -4
- package/dist/services/messages-search.d.ts +1 -1
- package/dist/services/messages-search.js +2 -2
- package/dist/services/messages.d.ts +5 -0
- package/dist/services/messages.js +23 -0
- package/dist/services/metadata.js +2 -2
- package/dist/services/notes-search.js +3 -3
- package/dist/services/search-catchup.js +1 -1
- package/dist/speech/install.d.ts +4 -2
- package/dist/speech/install.js +16 -4
- package/dist/speech/local.js +1 -1
- package/dist/speech/transcribe.js +1 -1
- package/dist/store/search-index.d.ts +1 -1
- package/dist/store/sqlite/attachment-texts.d.ts +1 -1
- package/dist/store/sqlite/attachment-texts.js +1 -1
- package/dist/store/sqlite/batches.js +1 -1
- package/dist/store/sqlite/involvements.d.ts +1 -1
- package/dist/store/sqlite/note-index.d.ts +2 -2
- package/dist/store/sqlite/note-index.js +2 -2
- package/dist/store/sqlite/search-index.d.ts +1 -1
- package/dist/store/sqlite/search-index.js +1 -1
- package/dist/store/sqlite/stems-fill.d.ts +3 -3
- package/dist/store/sqlite/stems-fill.js +3 -3
- package/dist/store/sqlite/stems.d.ts +1 -1
- package/dist/store/sqlite/task-pairs.d.ts +1 -1
- package/dist/store/sqlite/task-pairs.js +1 -1
- package/package.json +1 -1
- package/parity.json +186 -179
- package/skills/follow-ups/SKILL.md +5 -5
- package/skills/link-conversations/SKILL.md +8 -8
|
@@ -67,13 +67,13 @@ For a chat in `owed` or `waiting`: read around its `lastMessage` the same way.
|
|
|
67
67
|
| What you see | Do |
|
|
68
68
|
|---|---|
|
|
69
69
|
| A promise, a request, a question someone waits on | `tasks add <msg> --type promise\|request\|question --category <name>` with a plan; `tasks categories` lists the names |
|
|
70
|
-
| `tasks add` answers `created: false` | the message already has that task (a rule made it): `tasks
|
|
70
|
+
| `tasks add` answers `created: false` | the message already has that task (a rule made it): `tasks update` that one |
|
|
71
71
|
| `tasks add` refuses with `task.duplicate-candidates` | read the listed tasks: the same job → repeat with `--into <key>`; a different one → repeat with `--new` |
|
|
72
72
|
| `tasks add` answers `follow_up_of` | the message is about a task closed lately: a new task was opened and linked to it, the closed one stays closed — plan the new one |
|
|
73
|
-
| `tasks duplicates` lists pairs a rule opened | one job → `tasks merge <task> --into <other>`; two jobs → `tasks duplicates reject <task> <other>`; the meaning cannot tell (mum's gift or dad's) → `tasks duplicates defer <task> <other>` for the owner. A wrong merge: `tasks unmerge <task>` |
|
|
73
|
+
| `tasks duplicates list` lists pairs a rule opened | one job → `tasks merge <task> --into <other>`; two jobs → `tasks duplicates reject <task> <other>`; the meaning cannot tell (mum's gift or dad's) → `tasks duplicates defer <task> <other>` for the owner. A wrong merge: `tasks unmerge <task>` |
|
|
74
74
|
| A task that is done (the reply came, the file was sent) | `tasks close <key> --as done --certainty <0..1> --reason "<one line>"` — say honestly how sure you are; below the owner's threshold the task stays open with `close_suggestion` and the owner decides, so do not close it again |
|
|
75
|
-
| A task still open, nothing new | `tasks
|
|
76
|
-
| A task with the wrong category | `tasks
|
|
75
|
+
| A task still open, nothing new | `tasks update <key> --remind-time <when>` — 1d if hot, 3d–7d if not |
|
|
76
|
+
| A task with the wrong category | `tasks update <key> --category <name>` |
|
|
77
77
|
| A task you are about to work on with other agents around | `tasks claim <key>`, and `tasks release <key>` when you stop |
|
|
78
78
|
| An `owed` chat that needs no answer (thanks, a sticker) | nothing; it leaves the agenda on the next message |
|
|
79
79
|
| A `waiting` chat with an open question of the owner's | a task for it, and a follow-up draft |
|
|
@@ -81,7 +81,7 @@ For a chat in `owed` or `waiting`: read around its `lastMessage` the same way.
|
|
|
81
81
|
Every task gets a plan, so the next run needs no rereading:
|
|
82
82
|
|
|
83
83
|
```sh
|
|
84
|
-
{{command}} tasks
|
|
84
|
+
{{command}} tasks update <key> --title "<action and its object>" --due <when> --remind-time <when> \
|
|
85
85
|
--description "Owes: <me → them | them → me>
|
|
86
86
|
Counterpart: <name>
|
|
87
87
|
Done when: <one observable line>
|
|
@@ -10,14 +10,14 @@ metadata:
|
|
|
10
10
|
A busy group mixes several conversations at once. `{{command}}` already links what it can without
|
|
11
11
|
you: the messenger's own replies, mentions, and one person's messages in a row. You decide the rest:
|
|
12
12
|
for each message, **which earlier message it answers**, or that it starts a new conversation. You
|
|
13
|
-
read the messages; `{{command}}` checks and stores your answers. By default it leaves analysis to your agent. An explicit configured analysis provider can also process these batches through `conversations
|
|
13
|
+
read the messages; `{{command}}` checks and stores your answers. By default it leaves analysis to your agent. An explicit configured analysis provider can also process these batches through `conversations links rebuild --analyze`; that path asks for consent and validates the same answers.
|
|
14
14
|
|
|
15
15
|
## Before the first batch: say what it costs, and wait
|
|
16
16
|
|
|
17
17
|
The messages you read go into your own context, and through it to your model's provider. So first:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
{{command}} conversations
|
|
20
|
+
{{command}} conversations links rebuild --chat "<chat>" # the rules' links, as candidates for you
|
|
21
21
|
{{command}} conversations batches status --chat "<chat>" --json
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ quarter as many tokens). **Wait for a yes.** A yes for one chat is not a yes for
|
|
|
27
27
|
## The loop
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
|
-
{{command}} conversations batches
|
|
30
|
+
{{command}} conversations batches show --chat "<chat>" --json # one batch, or null when done
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
A batch is `{ "batch": "<id>", "messages": [...], "remaining": {...} }`. Each message has `id`, `at`,
|
|
@@ -53,8 +53,8 @@ Then store the answer, as JSON on stdin:
|
|
|
53
53
|
ANSWER
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Repeat `batches
|
|
57
|
-
conversations: `{{command}} conversations
|
|
56
|
+
Repeat `batches show` until it answers `null`. Then rebuild once, so your answers shape the
|
|
57
|
+
conversations: `{{command}} conversations links rebuild --chat "<chat>"`. On a long chat, rebuild every 20
|
|
58
58
|
batches too, so the owner sees progress.
|
|
59
59
|
|
|
60
60
|
## When an answer is refused
|
|
@@ -80,9 +80,9 @@ was added or deleted inside it: ask for the next batch instead.
|
|
|
80
80
|
## Through MCP
|
|
81
81
|
|
|
82
82
|
Follow the same cost gate and loop through MCP: each step is the same command, run with
|
|
83
|
-
`{{command}}_read` (`conversations batches status`, `conversations batches
|
|
84
|
-
`conversations show`) or `{{command}}_write` (`conversations
|
|
85
|
-
`conversations links clear`), as `{ "command": "conversations
|
|
83
|
+
`{{command}}_read` (`conversations batches status`, `conversations batches show`,
|
|
84
|
+
`conversations show`) or `{{command}}_write` (`conversations links rebuild`, `conversations links add`,
|
|
85
|
+
`conversations links clear`), as `{ "command": "conversations links rebuild", "arguments": { … } }`.
|
|
86
86
|
`{{command}}_tools_search` shows each one's arguments.
|
|
87
87
|
|
|
88
88
|
Use `chat` for the chat reference, and `size` for the batch size (10–200, default 50).
|