ente-cli 0.4.107 → 0.4.109

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
@@ -192,7 +192,7 @@ Every command supports `--json`. Run `ente --help` or `ente <group> --help`.
192
192
  | `recording` | `list`, `show`, `inspect`, `rerun`, `orphans`, `backups` (platform key) |
193
193
  | `admin` | `tables`, `get`, `page` — read-only inspector over any table (platform key) |
194
194
  | `canvas` | `boards`, `html list`, `html get`, `html create`, `html update`, `html delete` |
195
- | `files` | `list`, `search` (by name, all subfolders), `read` (text of a PDF, DOCX or plain-text file up to 10 MiB, in windows of 50,000 characters), `upload` (local file at most 10 MiB, or an activity attachment), `link`, `create-folder` — the entity's Nextcloud folder via your own connection; personal agent key only (MCP: `entity_files_list`, `entity_files_search`, `entity_file_read`, `entity_file_upload`, `entity_folder_link`, `entity_folder_create`) |
195
+ | `files` | `list`, `search` (by name, all subfolders), `read` (text of a PDF, DOCX or plain-text file up to 10 MiB, in windows of 50,000 characters), `cite` (verbatim PDF quotes → checked Markdown citation links), `upload` (local file at most 10 MiB, or an activity attachment), `link`, `create-folder` — the entity's Nextcloud folder via your own connection; personal agent key only (MCP: `entity_files_list`, `entity_files_search`, `entity_file_read`, `entity_file_cite`, `entity_file_upload`, `entity_folder_link`, `entity_folder_create`) |
196
196
  | `notification` | `send` (emails only your own Ente account address; optional HTML, file attachments, and CID inline images) |
197
197
  | `agent` | `permissions`, `list`, `threads`, `show`, `new`, `send`, `config show`, `config set-prompt`, `schedules configure` |
198
198
  | `agent mail` | `address`, `threads`, `show`, `send`, `reply`, `mark` |
package/dist/SKILL.md CHANGED
@@ -254,10 +254,11 @@ ente canvas html delete <boardId> <elementId> [--json]
254
254
 
255
255
  # Entity files: the entity's linked Nextcloud folder, through YOUR own Nextcloud
256
256
  # connection. Works only with your personal agent's key; shared agents are refused.
257
- # MCP/REST: entity_files_list, entity_files_search, entity_file_read, entity_file_upload, entity_folder_link, entity_folder_create.
257
+ # MCP/REST: entity_files_list, entity_files_search, entity_file_read, entity_file_cite, entity_file_upload, entity_folder_link, entity_folder_create.
258
258
  ente files list <entityId> [--path "03 Unterlagen"] [--json] # --json: linkedFolderPath = the linked folder's path from your Nextcloud root; join it with an item path for the exact file
259
259
  ente files search <entityId> "Mietvertrag" [--json] # name search in all subfolders of the linked folder
260
260
  ente files read <entityId> "03 Unterlagen/Mietvertrag.pdf" [--offset N] [--max-characters N] [--json] # text of a PDF (text layer), DOCX or plain-text file up to 100 MiB, 50,000 characters per call; a scan without text layer returns notice no_text_layer
261
+ ente files cite <entityId> "03 Unterlagen/Mietvertrag.pdf" --quote "4.200 EUR netto monatlich" [--range START-END] [--candidate N] [--json] # citation links: ok = ready Markdown link to paste unchanged; mismatch = re-quote documentText verbatim; ambiguous = same wording at several places, no link: quote more or pick one with --candidate N (one --quote) or its --range; never build links yourself
261
262
  ente files upload <entityId> <local-file> [--folder "03 Unterlagen"] [--name "Vertrag.pdf"] [--mime-type application/pdf] [--json] # at most 10 MiB
262
263
  ente files upload <entityId> --activity <activityId> --storage-id <storageId> --name "Vertrag.pdf" [--folder …] [--json] # copy an activity attachment
263
264
  ente files link <entityId> "Mandate/2026-017 Zebrafink" [--space <spaceId>] [--json]
@@ -867,7 +868,7 @@ User and shared inbox sends require an explicit send grant; own mail retains its
867
868
  exact correspondent allowlist. No draft operation sends mail.
868
869
 
869
870
  - `{"operation":"listMailboxes"}` lists addresses and grants.
870
- - `{"operation":"search","mailboxId":"...","query":"from:sender@example.com before:2026/07/01"}` searches the provider for connected mail, including unsynced history. Inspect coverage and continue cursors. Gmail uses native q; IMAP supports from/to/subject/after/before and plain text, with server-specific TEXT semantics and bounded UID windows.
871
+ - `{"operation":"search","mailboxId":"...","query":"from:sender@example.com before:2026/07/01"}` searches the provider for connected mail, including unsynced history. Inspect coverage and continue cursors. Both providers take the same Gmail-style query: words are ANDed, `"exact phrase"`, `-word`, `a OR b`, `{a b}`, parentheses, `from:` `to:` `cc:` `bcc:` `subject:` `after:`/`before:` (YYYY/MM/DD) `older_than:`/`newer_than:` (7d, 3m, 1y) `larger:`/`smaller:` `is:unread|read|starred|unstarred` `has:attachment` and one `in:`/`label:` folder. Unquoted German words also match their spelling variants (Müller/Mueller/Muller, ß/ss). Gmail evaluates the query natively; IMAP compiles it to native SEARCH over bounded UID windows (Inbox, Sent and Archive first) and rejects Gmail-only operators such as `category:` instead of searching less precisely.
871
872
  - `{"operation":"readThread","mailboxId":"...","threadId":"provider-thread-id"}` reads bounded content. A provider `messageId` is also accepted. Continue text cursors. IMAP reads the selected message first and discovers its RFC reference conversation; it states bounds and coverage explicitly.
872
873
  - `{"operation":"createDraft","mailboxId":"...","messageId":"provider-message-id","body":"Reply text","requestId":"unique-request-1"}` resolves reply recipients, subject and threading headers itself. Search→createDraft takes two calls; search→readThread→createDraft takes three. `to`, `cc`, `bcc`, `subject`, `body` and `html` are top-level fields. `patch.draft.body` belongs only to `editVisible`.
873
874
  - `{"operation":"loadDraft","mailboxId":"...","draftId":"..."}` returns its reviewed `draftVersion`.
@@ -911,3 +912,41 @@ revision with compare-and-swap protection. These commands require the separate
911
912
  existing platform credential; an agent profile supplies no admin access. If it
912
913
  is unavailable, preserve the private JSON for an existing human admin session.
913
914
  Never provision access or copy provider secrets to complete delivery.
915
+
916
+ ### Reopen a task
917
+
918
+ `ente task reopen <activity-id> --profile ente-operator --json` explicitly sets
919
+ completion to false. Use the full activity ID: the installed short-number resolver
920
+ only finds open tasks. This command preserves assignments and deadline.
921
+
922
+ ### Narrow task synchronization
923
+
924
+ A signed-in human owner can create a task sync key in a personal agent's Settings
925
+ → Connections. Store the once-shown secret privately in the Builder environment;
926
+ never print it, commit it, or replace an existing operator credential. The key has
927
+ only `tasks:read`, `tasks:write`, and `cli`, pinned to Personal. Generic entity,
928
+ space, mail and agent-management commands remain unavailable.
929
+
930
+ Use exact IDs with canonical JSON; these commands avoid broad name resolution:
931
+
932
+ ```text
933
+ ente task sync createActivity '{"type":"task","spaceId":"<personal-id>","entityIds":["<entity-id>"],"title":"Example","content":"[T3 thread](<thread-link>)","externalKey":"t3_thread_id:<thread-id>","agentAssigneeIds":["<operator-agent-id>","<sync-agent-id>"],"assigneeIds":["<human-user-id>"],"deadline":{"date":"2026-11-19","time":"20:30","timezone":"Europe/Berlin"},"attributes":{"t3_thread_id":"<thread-id>"}}' --profile ente-operator --json
934
+ ente task sync getActivity '{"spaceId":"<personal-id>","externalKey":"t3_thread_id:<thread-id>","includeDeleted":true}' --profile ente-operator --json
935
+ ente task sync updateActivity '{"activityId":"<activity-id>","completed":false,"deadline":null}' --profile ente-operator --json
936
+ ente task sync updateActivityAssignees '{"activityId":"<activity-id>","action":"remove","assigneeIds":["<human-user-id>"]}' --profile ente-operator --json
937
+ ente task reopen <activity-id> --profile ente-operator --json
938
+ ente agent tasks list --view attention --profile ente-operator --json
939
+ ```
940
+
941
+ Create is idempotent when externalKey is supplied. It reserves the key for that
942
+ agent and space and returns the first ID even if retry fields changed. Use update
943
+ to change fields. Completion/deletion retains the reservation; includeDeleted
944
+ returns a content-free tombstone for deleted tasks. Key rotation for the same
945
+ agent preserves lookup; another agent has its own namespace. Restore is explicit.
946
+
947
+ Self-authored writes, including enrollment, do not raise own attention. Inspect
948
+ still includes those events and never acknowledges older input. Discover work
949
+ from attention; acknowledge the exact issued observation only after processing it.
950
+ Task-only read can inspect but cannot acknowledge. Do not assign real operators
951
+ for testing; use fictional local identities or the explicitly approved dedicated
952
+ production test agent and its one task.