@ainecto/cli 0.6.0 → 0.7.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/README.md CHANGED
@@ -159,6 +159,26 @@ ainecto attachments upload --document-uuid <documentUuid> ./diagram.png ./notes.
159
159
  The generated `request_upload_token` and `upload_attachments` paths remain raw MCP argument-contract
160
160
  commands and do not read local files.
161
161
 
162
+ Inbox polling — for a scheduler (cron, launchd) that wakes an agent only when something is new. Exit
163
+ codes: `0` new items, `3` nothing new, `1` error, `2` usage error. `notifications poll` saves the batch
164
+ to the cursor file before printing it and prints the same batch again until `notifications ack` (run
165
+ it only after the agent handled the batch). `agent-todos poll --only-new` exits 0 only for to-dos it
166
+ has not seen before (kept in the seen file). Both take `--workspace <uuid>` and `--project <uuid>`,
167
+ each repeatable: any of the given workspaces AND any of the given projects. Each filter is its
168
+ own notification stream, so use one cursor file per filter.
169
+
170
+ ```bash
171
+ ainecto notifications poll --direct-only --cursor-file ~/.ainecto/inbox.cursor --json > /tmp/inbox.json \
172
+ && claude -p "Summarize these AiNecto notifications: $(cat /tmp/inbox.json)" \
173
+ && ainecto notifications ack --cursor-file ~/.ainecto/inbox.cursor
174
+ ainecto agent-todos poll --only-new --seen-file ~/.ainecto/todos.seen --json > /tmp/todos.json \
175
+ && claude -p "Review these AiNecto to-dos and only summarize them: $(cat /tmp/todos.json)"
176
+ ```
177
+
178
+ The server tools behind them (`list_notifications`, `list_agent_todos`, `update_agent_todos`,
179
+ `list_history`) are generated commands too (`ainecto notifications list`, `ainecto agent-todos list`,
180
+ `ainecto agent-todos update -f …`, `ainecto history list`) once the server exposes them.
181
+
162
182
  ## Connector Mode
163
183
 
164
184
  ```bash