@remits/remits-cli 0.1.110 → 0.1.112

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/README.md CHANGED
@@ -112,33 +112,30 @@ remits-cli install --skills --overwrite true
112
112
  - If the machine sleeps, the network drops, or auth sessions change while the daemon is already running, the service now attempts to reconnect and resubscribe automatically once connectivity returns.
113
113
  - Incoming websocket messages of type `remits-cli` are dispatched into dedicated tmux windows so the selected agent can continue working interactively with a full terminal view.
114
114
  - The listener creates a shared tmux session named `remits-listener`.
115
- - Support tickets are the primary unit of dispatched work. Each ticket gets its own tmux window/workstream.
116
- - The listener enables tmux mouse support, increases scrollback history, and keeps exited panes visible for inspection.
117
- - Follow-up messages with the same `ticketId` are routed back to the existing pane when it is still alive.
118
- - Legacy payloads that only include `taskId` are still supported as a fallback routing key.
119
- - If a pane for a tracked ticket has exited or is dead, the listener removes that mapping and creates a replacement pane.
120
- - Pane commands are launched through the user's login shell so the pane inherits the normal interactive `PATH`.
121
- - The preferred agent comes from `remits-cli config set --agent claude|codex|gemini`. The default is `claude`.
115
+ - Support tickets are the primary unit of dispatched work. A serving agent launches one fresh worker process per routed ticket.
116
+ - Agent sessions register themselves with `remits-cli agent register` or `remits-cli agent serve`; `serve` also starts the local supervisor.
117
+ - Tickets are delivered by durable routing on the ticket record, then the agent asks for routed work with `remits-cli agent work`.
118
+ - The preferred worker comes from `remits-cli config set --agent claude|codex|gemini`. The default is `claude`.
122
119
 
123
120
  ## Support Tickets
124
121
 
125
122
  - Support tickets are stored as documents in the `support_tickets` collection.
126
- - New tickets and ticket updates are delivered over the `remits-cli` websocket channel and appear as local tmux workstreams.
127
- - Think of this as a lightweight local support queue: the platform creates and updates tickets centrally, and local agents receive those tickets to investigate and resolve.
123
+ - New tickets and ticket updates are recorded centrally; local agents receive work by polling for tickets routed to their registered session.
124
+ - Think of this as a lightweight local support queue: the platform owns the record and lifecycle verbs, while account components can layer their own helpdesk workflow on top.
128
125
  - `accountId` / `accountName` identify the account that owns the ticket.
129
126
  - If present, `implementationAccountId` / `implementationAccountName` identify the platform or product context that owns the shared implementation.
130
- - Listener repo dispatch prefers `implementationAccountId` when present, then falls back to `accountId`. If one of those repos is indexed locally in `~/.remits-cli/account-repos.json`, it will be preferred as the tmux working directory.
127
+ - Worker repo resolution prefers `implementationAccountId` when present, then falls back to `accountId`. If one of those repos is indexed locally in `~/.remits-cli/account-repos.json`, it is used as the worker's directory.
131
128
  - Agents must resolve account `type` (`PLATFORM`, `PRODUCT`, `CLIENT`) before deciding which local repo to use. A `CLIENT` ticket may still require code changes in a parent `PLATFORM` or `PRODUCT` repo.
132
- - Use `mcp_support_ticket` to manage ticket state:
129
+ - Use `remits-cli ticket` to manage the generic platform ticket lifecycle:
133
130
 
134
131
  ```bash
135
- remits-cli tool --name "mcp_support_ticket" --input '{"action":"read","ticketId":"123"}' --data-mode prod
136
- remits-cli tool --name "mcp_support_ticket" --input '{"action":"accept","ticketId":"123","assignee":"codex"}' --data-mode prod
137
- remits-cli tool --name "mcp_support_ticket" --input '{"action":"update_status","ticketId":"123","status":"in_progress","notes":"Investigating logs"}' --data-mode prod
138
- remits-cli tool --name "mcp_support_ticket" --input '{"action":"complete","ticketId":"123","resolution":"Fixed and verified"}' --data-mode prod
132
+ remits-cli ticket read --ticket 123 --data-mode prod
133
+ remits-cli ticket accept --ticket 123 --data-mode prod
134
+ remits-cli ticket status --ticket 123 --status in_progress --notes "Investigating logs" --data-mode prod
135
+ remits-cli ticket complete --ticket 123 --resolution "Fixed and verified" --data-mode prod
139
136
  ```
140
137
 
141
- - Recommended ticket flow: `read` first, then `accept`, then `update_status` as work progresses, then `complete` or `release`.
138
+ - Recommended ticket flow: `read` first, then `accept`, then `status` as work progresses, then `complete`, `ask`, or `release`.
142
139
 
143
140
  ## Logging and State Files
144
141