@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.
Files changed (124) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/dist/botcheck/reasons.d.ts +1 -1
  3. package/dist/cli/analysis-choice.js +1 -1
  4. package/dist/cli/answer-entity.d.ts +5 -0
  5. package/dist/cli/answer-entity.js +25 -0
  6. package/dist/cli/command-contract.js +2 -5
  7. package/dist/cli/commands-command.js +4 -1
  8. package/dist/cli/effects.js +1 -1
  9. package/dist/cli/embedding-choice.d.ts +1 -1
  10. package/dist/cli/embedding-choice.js +2 -2
  11. package/dist/cli/first-run.js +3 -3
  12. package/dist/cli/help/command-help.js +2 -2
  13. package/dist/cli/index.d.ts +1 -0
  14. package/dist/cli/index.js +1 -0
  15. package/dist/cli/json-fields.js +2 -2
  16. package/dist/cli/meeting-project-candidates-command.js +0 -1
  17. package/dist/cli/meeting-series-inventory-command.js +0 -1
  18. package/dist/cli/messenger/admin-commands.js +14 -14
  19. package/dist/cli/messenger/archive-commands.js +2 -2
  20. package/dist/cli/messenger/attachments-command.js +7 -8
  21. package/dist/cli/messenger/backfill-command.js +1 -1
  22. package/dist/cli/messenger/chat-answers.js +3 -3
  23. package/dist/cli/messenger/chat-lists.js +3 -3
  24. package/dist/cli/messenger/chats-command.js +8 -8
  25. package/dist/cli/messenger/chats-members-command.js +1 -1
  26. package/dist/cli/messenger/contacts-command.js +10 -7
  27. package/dist/cli/messenger/context.d.ts +11 -4
  28. package/dist/cli/messenger/context.js +6 -0
  29. package/dist/cli/messenger/conversation-examples.js +7 -6
  30. package/dist/cli/messenger/conversations-command.d.ts +0 -4
  31. package/dist/cli/messenger/conversations-command.js +130 -135
  32. package/dist/cli/messenger/counters-command.js +4 -2
  33. package/dist/cli/messenger/doctor-command.js +8 -4
  34. package/dist/cli/messenger/gaps-command.js +2 -2
  35. package/dist/cli/messenger/hearing-command.d.ts +1 -1
  36. package/dist/cli/messenger/hearing-command.js +1 -1
  37. package/dist/cli/messenger/images-command.js +1 -1
  38. package/dist/cli/messenger/inbox.js +1 -3
  39. package/dist/cli/messenger/lacks.d.ts +1 -0
  40. package/dist/cli/messenger/lacks.js +1 -1
  41. package/dist/cli/messenger/mcp-command.js +4 -4
  42. package/dist/cli/messenger/messages-comments-command.js +10 -5
  43. package/dist/cli/messenger/messages-send-command.js +44 -3
  44. package/dist/cli/messenger/metadata-command.js +5 -5
  45. package/dist/cli/messenger/models-command.js +101 -90
  46. package/dist/cli/messenger/private-people-command.js +5 -6
  47. package/dist/cli/messenger/replies-edit-command.js +0 -1
  48. package/dist/cli/messenger/review.js +1 -3
  49. package/dist/cli/messenger/serve-relay.d.ts +2 -0
  50. package/dist/cli/messenger/stats-command.js +1 -1
  51. package/dist/cli/messenger/store-maintenance-command.d.ts +2 -2
  52. package/dist/cli/messenger/store-maintenance-command.js +4 -4
  53. package/dist/cli/messenger/stored.js +5 -0
  54. package/dist/cli/messenger/tags-command.js +4 -10
  55. package/dist/cli/messenger/tasks-command.js +3 -3
  56. package/dist/cli/messenger/transcribe-command.js +1 -1
  57. package/dist/cli/moved.d.ts +2 -0
  58. package/dist/cli/moved.js +39 -1
  59. package/dist/cli/permission-keys.js +2 -0
  60. package/dist/cli/settings.js +1 -1
  61. package/dist/cli/setup-answers.d.ts +2 -2
  62. package/dist/cli/setup-answers.js +2 -2
  63. package/dist/cli/steps.js +4 -4
  64. package/dist/cli/store-settings.js +1 -1
  65. package/dist/cli/upgrade-command.js +0 -1
  66. package/dist/domain/models.d.ts +3 -3
  67. package/dist/domain/task-categories.js +1 -1
  68. package/dist/embeddings/remote.js +1 -1
  69. package/dist/entities/index.d.ts +380 -0
  70. package/dist/entities/index.js +2 -1
  71. package/dist/entities/member.d.ts +2 -2
  72. package/dist/entities/member.js +2 -2
  73. package/dist/entities/message-write.d.ts +386 -0
  74. package/dist/entities/message-write.js +6 -0
  75. package/dist/mcp/agent.d.ts +1 -0
  76. package/dist/mcp/agent.js +1 -1
  77. package/dist/mcp/tools/attachments.js +1 -1
  78. package/dist/meetings/mcp/index.d.ts +15 -15
  79. package/dist/ports/app.d.ts +1 -1
  80. package/dist/ports/messenger.d.ts +8 -1
  81. package/dist/ports/traits.d.ts +2 -0
  82. package/dist/search/task-similarity.js +1 -1
  83. package/dist/sends/guard.js +2 -2
  84. package/dist/sends/permission-aliases.d.ts +5 -0
  85. package/dist/sends/permission-aliases.js +49 -0
  86. package/dist/sends/permissions.d.ts +1 -1
  87. package/dist/sends/permissions.js +35 -25
  88. package/dist/services/admin.js +7 -7
  89. package/dist/services/chats.js +1 -1
  90. package/dist/services/conversations.d.ts +1 -1
  91. package/dist/services/conversations.js +1 -1
  92. package/dist/services/counters.js +1 -1
  93. package/dist/services/embeddings-maintenance.js +2 -2
  94. package/dist/services/embeddings-search.js +1 -1
  95. package/dist/services/embeddings.d.ts +4 -4
  96. package/dist/services/messages-search.d.ts +1 -1
  97. package/dist/services/messages-search.js +2 -2
  98. package/dist/services/messages.d.ts +5 -0
  99. package/dist/services/messages.js +23 -0
  100. package/dist/services/metadata.js +2 -2
  101. package/dist/services/notes-search.js +3 -3
  102. package/dist/services/search-catchup.js +1 -1
  103. package/dist/speech/install.d.ts +4 -2
  104. package/dist/speech/install.js +16 -4
  105. package/dist/speech/local.js +1 -1
  106. package/dist/speech/transcribe.js +1 -1
  107. package/dist/store/search-index.d.ts +1 -1
  108. package/dist/store/sqlite/attachment-texts.d.ts +1 -1
  109. package/dist/store/sqlite/attachment-texts.js +1 -1
  110. package/dist/store/sqlite/batches.js +1 -1
  111. package/dist/store/sqlite/involvements.d.ts +1 -1
  112. package/dist/store/sqlite/note-index.d.ts +2 -2
  113. package/dist/store/sqlite/note-index.js +2 -2
  114. package/dist/store/sqlite/search-index.d.ts +1 -1
  115. package/dist/store/sqlite/search-index.js +1 -1
  116. package/dist/store/sqlite/stems-fill.d.ts +3 -3
  117. package/dist/store/sqlite/stems-fill.js +3 -3
  118. package/dist/store/sqlite/stems.d.ts +1 -1
  119. package/dist/store/sqlite/task-pairs.d.ts +1 -1
  120. package/dist/store/sqlite/task-pairs.js +1 -1
  121. package/package.json +1 -1
  122. package/parity.json +186 -179
  123. package/skills/follow-ups/SKILL.md +5 -5
  124. 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 plan` that one |
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 plan <key> --remind-time <when>` — 1d if hot, 3d–7d if not |
76
- | A task with the wrong category | `tasks plan <key> --category <name>` |
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 plan <key> --title "<action and its object>" --due <when> --remind-time <when> \
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 build --analyze`; that path asks for consent and validates the same answers.
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 build --chat "<chat>" # the rules' links, as candidates for you
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 next --chat "<chat>" --json # one batch, or null when done
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 next` until it answers `null`. Then rebuild once, so your answers shape the
57
- conversations: `{{command}} conversations build --chat "<chat>"`. On a long chat, rebuild every 20
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 next`,
84
- `conversations show`) or `{{command}}_write` (`conversations build`, `conversations links add`,
85
- `conversations links clear`), as `{ "command": "conversations build", "arguments": { … } }`.
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).