ente-cli 0.4.129 → 0.4.131

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
@@ -230,6 +230,7 @@ Every command supports `--json`. Run `ente --help` or `ente <group> --help`.
230
230
  | `admin` | `tables`, `get`, `page` — read-only inspector over any table (platform key) |
231
231
  | `canvas` | `boards`, `html list`, `html get`, `html create`, `html update`, `html delete` |
232
232
  | `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`) |
233
+ | `calendar` | `connections` (accounts, calendars, default target), `list` (`--from/--to/--days`, `--query`, `--space`/`--entity` adds ente events), `get`, `create` (`--start/--end/--duration/--all-day/--tz`, `--location`, `--description`, `--attendee`, `--send-invites`, `--meet`, `--recurrence`, `--color`, target `--account/--calendar`, `--caldav` or `--local --space`, `--meeting --space --entity`), `update`, `delete`, `link` — external calendars need your personal agent's key; guests are mailed only with `--send-invites` |
233
234
  | `notification` | `send` (emails only your own Ente account address; optional HTML, file attachments, and CID inline images) |
234
235
  | `agent` | `permissions`, `list`, `threads`, `show`, `new`, `send`, `config show`, `config set-prompt`, `schedules configure` |
235
236
  | `agent mail` | `address`, `threads`, `show`, `send`, `reply`, `mark` |
@@ -583,12 +584,12 @@ Time filters apply to activity evidence. Resolve entity identity globally first.
583
584
  history page. Follow `nextCursor` with `--cursor` and the same entity/time
584
585
  filters until `hasMore` is false. Compact pages retain the space/member envelope,
585
586
  record IDs, time/assignment metadata and continuation. Long bodies become
586
- 240-character excerpts; attributes, derived data, attachments and content hashes
587
+ 240-character excerpts; field values, derived data, attachments and content hashes
587
588
  are omitted. The `projection.fullDetail` references point to `activity get <id>`
588
589
  (CLI), `activities_get` (MCP), and `getActivity` (internal tools). Defaults stay
589
590
  unchanged. REST uses `compact=true`; MCP `activities_forEntity` and internal
590
591
  `listRecentActivities` use `compact: true`. These options apply to active
591
- entity-scoped pages, without client-side type/attribute/open/deadline filters.
592
+ entity-scoped pages, without client-side type/field/open/deadline filters.
592
593
 
593
594
  JSON failures use stdout `{ "error": { "message": "..." } }` with a nonzero
594
595
  exit. REST status and structured error fields survive. Check the exit before
@@ -655,8 +656,8 @@ ente entity field remove <valueId>
655
656
 
656
657
  `--field` repeats JSON objects. Omitted labels stay unchanged; a supplied label
657
658
  replaces that field's values; `"value":null` removes them. Entity `--attr` is
658
- retained only to report the moved-to-fields error. Activity/task/list attributes
659
- are unchanged. Entity reads expose field/value IDs, labels, types and text.
659
+ retained only to report the moved-to-fields error. Activity/task/list values also
660
+ use canonical typed fields. Reads expose field/value IDs, labels, types and values.
660
661
 
661
662
  ### Experimental Ask availability
662
663
 
@@ -711,3 +712,9 @@ The principal is attributed as actor; the delegate remains the external-key
711
712
  namespace and appears as provenance. Owner grant management rejects agent JWTs.
712
713
 
713
714
  Canvas HTML panel commands negotiate `spaceOwned: true` for boards without entity associations. Older clients require an entity-linked board and receive a precondition error before any write.
715
+
716
+ ### Activity fields
717
+
718
+ Use `--field key=value` or repeat typed JSON inputs such as `--field '{"label":"Estimate","type":"number","value":3}'`. Task and list `--attr` is a shorthand for canonical field writes. API writes accept `fields: [{label | fieldId, type?, value}]`; `value: null` removes a value. Activity `attributes` inputs fail with `ACTIVITY_ATTRIBUTES_RETIRED`, which explains the replacement. Read results expose `fields` only.
719
+
720
+ Database import JSONL rows use `{"title":"Fictional row","fields":[{"label":"repo","value":"stable-key"}],"content":"Optional markdown"}`. Imports validate every row before writing and keep fields omitted from a row unchanged. See `docs/activity-fields.md`.
package/dist/SKILL.md CHANGED
@@ -161,7 +161,7 @@ ente activity get <activity-id> --json
161
161
 
162
162
  `--compact` currently applies to active entity-scoped activity pages only. It
163
163
  keeps space names, scopes, member emails, record IDs and `hasMore`/`nextCursor`.
164
- It replaces long bodies with 240-character excerpts and omits attributes,
164
+ It replaces long bodies with 240-character excerpts and omits field values,
165
165
  derived payloads, attachments and content hashes. `projection.fullDetail` names
166
166
  the complete read on each interface. Omit `--compact` for the existing output.
167
167
  Do not combine compact/cursor pages with client-side `--type`, `--attr`,
@@ -244,11 +244,11 @@ ente activity restore <activityId> [--json]
244
244
  ente list create "<name>" --space "<space>" [--icon <topic-icon>] [--column "key[=Label]:text|number|boolean|single-select|multi-select[:opt,opt]"] [--pin "<parent>" [--share-parents --parent-space-grant-fingerprint <token>]] [--json]
245
245
  ente list add "<list>" [--space "<space>"] --title "…" [--attr k=v ...] [--key <textColumn>] [--content-file ./row.md] [--json] # --key = upsert by that cell
246
246
  ente list update "<list>" <rowId> [--attr k=v ...] [--title "…"] [--json] # empty value clears a cell
247
- ente list import "<list>" [--space "<space>"] --file rows.jsonl --key <textColumn> [--dry-run] [--concurrency 4] [--json] # {"title","attrs","content"} per line → created/updated/unchanged
247
+ ente list import "<list>" [--space "<space>"] --file rows.jsonl --key <textColumn> [--dry-run] [--concurrency 4] [--json] # {"title","fields":[{"label":"repo","value":"…"}],"content"} per line → created/updated/unchanged
248
248
  ente list show "<list>" [--all | --cursor <nextCursor>] [--limit 100] [--where k=v ...] [--view] [--json] # all rows by default; --view = table's saved filters
249
249
  # --where and --key run on the server; key imports probe submitted keys, independent of saved filters.
250
250
  # Columns bind space-wide field IDs/types/options. Text and JSON match exactly; typed values match normalized.
251
- # Refresh pagination after ACTIVITY_FIELD_CURSOR_INVALID. Ordered consumers fall back until their metadata migration is ready.
251
+ # Refresh pagination after ACTIVITY_FIELD_CURSOR_INVALID. Value columns use the field index.
252
252
  # Rows are activities: trash with `ente activity delete <rowId>`, promote with `ente activity update <rowId> --entity-add "<entity>"`. Guide: playbooks/database-list-sync.md
253
253
 
254
254
  # Activity agendas (all activity types)
@@ -276,6 +276,21 @@ ente files upload <entityId> --activity <activityId> --storage-id <storageId> --
276
276
  ente files link <entityId> "Mandate/2026-017 Zebrafink" [--space <spaceId>] [--json]
277
277
  ente files create-folder <entityId> "2026-017 Zebrafink" [--parent Mandate] [--space <spaceId>] [--json]
278
278
 
279
+ # Calendar: your connected Google/CalDAV calendars (personal agent key only) and
280
+ # local ente events (space scope). Bare times are --tz (default Europe/Berlin).
281
+ # Guests are NEVER mailed unless --send-invites. No reminder flag: calendar defaults apply.
282
+ ente calendar connections [--json] # accounts + calendars; * = default target of create
283
+ ente calendar list [--from 2026-11-16] [--to 2026-11-22 | --days 7] [--query Steuer] [--space S | --entity E [--tasks]] [--json] # each event prints its ref
284
+ ente calendar get <ref> [--json] # attendees, Meet link, recurrence
285
+ ente calendar create --title "Jour fixe" --start "2026-11-20 14:00" [--end … | --duration 45] [--all-day] [--tz Europe/Berlin] \
286
+ [--location …] [--description …] [--attendee a@x.org …] [--send-invites] [--meet] [--recurrence "RRULE:FREQ=WEEKLY;COUNT=4"] [--color 5] \
287
+ [--account me@x.org [--calendar <id|name>] | --caldav <url|name> | --local --space S [--entity E] [--activity A] [--meeting-link URL]] \
288
+ [--meeting --space S --entity E …] [--json] # --meeting: creates/links the ente meeting activity
289
+ ente calendar update <ref> [any create field] [--attendee … | --clear-attendees] [--send-invites] [--move-to-calendar <id> [--move-to-account <connectionId>]] [--json] # --attendee replaces the guest list
290
+ ente calendar delete <ref> [--send-invites] # --send-invites: guests get a cancellation
291
+ ente calendar link <ref> --space S --entity E … # meeting activity for an existing external event
292
+ # Playbook: playbooks/schedule-calendar-event.md
293
+
279
294
  # Tasks (activities with type=task; short-ids #N, deadlines, assignees)
280
295
  # Entity task lists inherit up to 100 enabled direct children. Hierarchy scan
281
296
  # limits, more than 1,000 child task-link rows, or more than 400 child/space/type
@@ -846,9 +861,9 @@ Entity values use typed `fields`; entity `--attr` and attribute payloads are leg
846
861
  `entity update --field` merges only supplied labels. Repeat JSON objects to store
847
862
  several values under one label; use `"value":null` to remove that label's values.
848
863
  A field ID selects an existing definition; a new label is owned by the acting
849
- space. Activity/task write `--attr` remains a legacy compatibility input. Prefer
850
- typed `--field` writes. List `--attr` names a configured cell and writes canonical
851
- fields; its spelling stays unchanged. Lookup `--attr` remains an indexed alias.
864
+ space. Activity/task/list `--attr` is a CLI shorthand that writes canonical
865
+ fields. Prefer `--field` for typed JSON values. Lookup `--attr` is an indexed
866
+ shorthand for the same field filter.
852
867
 
853
868
  Entity parent settings: each child can have one regular parent plus additional
854
869
  parents with `allowNonExclusiveChildren: true`. Missing means false. Create or
@@ -1003,7 +1018,7 @@ Entity exact-value lookup: `ente entity list --field "External ID=Case=ID"`. The
1003
1018
 
1004
1019
  Activity field lookup uses the server index: `ente activity list --type task --field "t3_thread=t3code://threads/<env>/<id>" --profile ente-operator`. For the credential's own agent queue, use `ente agent tasks list --field "t3_thread=t3code://threads/<env>/<id>" --profile ente-operator`. `--attr` is an alias for `--field` on these two commands. Repeat the option for AND matching (at most ten filters). The first `=` separates label and value, preserving subsequent equals signs. Activity list also accepts `--space` and `--entity` to narrow the indexed result. History cursors and `--min-count` cannot be combined with a field lookup.
1005
1020
 
1006
- Activity writes and each `batchUpdateTasks` item accept `fields: [{label | fieldId, type?, value}]` through REST/MCP and `task sync createActivity|updateActivity`. Exactly one selector is required. `value: null` removes; number/boolean use typed JSON values, multi-select accepts string arrays, JSON uses serialized JSON strings. Existing types cannot be changed by a value write; unknown labels and select options follow writer rules. Do not address one field in both `attributes` and `fields`, or repeat selectors. Writes preserve original legacy key spelling and existing delegation/idempotency rules. Typed writes require first verified readiness; later re-verification only closes indexed reads. Invalid typed fields use `ACTIVITY_FIELD_VALUE_INVALID` (`INVALID_INPUT`), caps use `ACTIVITY_FIELD_LIMIT_EXCEEDED`. Serialized JSON `null` and blank JSON strings reject explicitly because compatibility storage cannot retain them; transport `null` clears.
1021
+ Activity writes and each `batchUpdateTasks` item accept `fields: [{label | fieldId, type?, value}]` through REST/MCP and `task sync createActivity|updateActivity`. Exactly one selector is required. `value: null` removes; number/boolean use typed JSON values, multi-select accepts string arrays, and JSON uses serialized JSON strings. Existing types cannot be changed by a value write. Repeated selectors fail before writing. Invalid typed values use `ACTIVITY_FIELD_VALUE_INVALID`; vocabulary and byte caps use `ACTIVITY_FIELD_LIMIT_EXCEEDED`. Delegation and idempotency follow the ordinary activity write rules.
1007
1022
 
1008
1023
  ```sh
1009
1024
  ente activity update <id> --field '{"label":"estimate","type":"number","value":3}' --profile ente-operator --json
@@ -1011,24 +1026,14 @@ ente task update <id> --field '{"fieldId":"<field-id>","value":null}' --profile
1011
1026
  ente task sync createActivity '{"spaceId":"<space-id>","entityIds":["<entity-id>"],"type":"task","externalKey":"fictional-1","fields":[{"label":"t3_thread","value":"t3code://threads/fictional/id"}]}' --profile ente-operator --json
1012
1027
  ```
1013
1028
 
1014
- Write `--field` takes repeatable JSON objects; list `--field` still takes `label=value`. Field-enabled `activity create`/`task create` reject `--auto-link` and `--entity-space-grant-fingerprint`; owners must already belong to the destination. Complete sharing separately. REST POST/PATCH `/api/external/activities` and MCP create/update take the same `fields` array. See `docs/activity-fields-migration.md` for caps and examples.
1029
+ Write `--field` takes repeatable `label=value` pairs or typed JSON objects. List `--field` and `--attr` take `label=value` pairs. Field-enabled `activity create`/`task create` reject `--auto-link` and `--entity-space-grant-fingerprint`; owners must already belong to the destination. Complete sharing separately. REST POST/PATCH `/api/external/activities` and MCP create/update take the same `fields` array. See `docs/activity-fields.md` for caps and examples.
1015
1030
 
1016
- Activity definitions are shared across a space. Writers create definitions implicitly through the compatibility `attributes` write. Before first verified readiness, legacy attributes retain their existing write behavior; incompatible provisional projections defer and keep lookup closed. After first readiness, existing definitions validate subsequent values, including during later re-verification. Invalid typed writes reject atomically with `ACTIVITY_FIELD_VALUE_INVALID` (`FAILED_PRECONDITION`); vocabulary/byte caps use `ACTIVITY_FIELD_LIMIT_EXCEEDED` (`LIMIT_EXCEEDED`). Empty or whitespace-only strings clear a canonical value while preserving the legacy cell. A string in a multi-select field is one literal selection, never delimiter-split, and adds its option implicitly within existing limits. Unknown single-select values also add an option implicitly for every writer within the same limits. This does not create a Kanban column. Renaming, merging and removing options remain manager-only. Case/separator aliases share a definition; the compatibility attributes view retains the original stored key spelling. Historical select options remain valid even if the current board omits them. See `docs/activity-fields-migration.md` for the bounds and bridge procedure. Types include text, JSON, email, phone, URL, date, postal-address, salutation, job-title, number, boolean, single-select and multi-select. Text and JSON match the stored string exactly, including case and whitespace. All other types match their normalized value; `Foo@X.com` finds `foo@x.com`. JSON lookup values use serialized JSON, so a JSON string is written as `"value"`.
1031
+ Activity definitions are shared across a space. Writers create an unmatched definition implicitly through `fields`; existing definitions validate subsequent values. Unknown single-select and multi-select values add options within the same limits. A scalar multi-select string is one literal selection, never delimiter-split. This does not create a Kanban column. Rename, merge, retype and option removal remain manager-only. Empty strings clear a field. Types include text, JSON, email, phone, URL, date, postal-address, salutation, job-title, number, boolean, single-select and multi-select. Text and JSON lookups compare stored strings exactly. Other types match normalized values; `Foo@X.com` finds `foo@x.com`.
1017
1032
 
1018
- REST `GET /api/external/activities` and `/api/external/tasks` accept URL-encoded JSON `field={"label":"t3_thread","value":"Case=ID"}`, or an array for AND. MCP `listActivities`/`activities_list`, `listTasks`/`tasks_list`, and `agent_tasks` (`operation: "list"`) use the same field shape. List/get results include `fields` (value ID, definition ID, label, type and stored string) once verification completes. `fieldIndexReady: false` withholds this array before verification. Indexed lookups fail with `ACTIVITY_FIELD_INDEX_NOT_READY` until the deployment's backfill is verified; do not replace this failure with a client scan. Candidate and output budgets fail explicitly instead of returning an incomplete field result. Legacy `attributes` remains the read/write compatibility view through phase 4.
1033
+ REST `GET /api/external/activities` and `/api/external/tasks` accept URL-encoded JSON `field={"label":"t3_thread","value":"Case=ID"}`, or an array for AND. MCP activity/task list tools and `agent_tasks` use the same shape. Read results contain canonical `fields` with value ID, definition ID, label, type and stored string. Candidate and output budgets fail explicitly rather than return partial field results.
1019
1034
 
1020
1035
  Canvas HTML panel commands negotiate `spaceOwned: true` for boards without entity associations. Older clients require an entity-linked board and receive a precondition error before any write.
1021
1036
 
1022
- CLI list upsert planning reads canonical field IDs through the list's bindings,
1023
- including after a display-label change. Canonical list JSON output contains
1024
- `fields`; it does not reconstruct `attributes` from retained source cells.
1025
-
1037
+ CLI list upsert planning reads canonical field IDs through the list's bindings, including after a display-label change. List JSON output contains `fields` only. JSONL import rows use `{"title":"…","fields":[{"label":"repo","value":"stable-key"}],"content":"…markdown…"}`; `fieldId` may replace `label`. Columns coerce values and the full file is validated before writing. Fields omitted from a row stay unchanged.
1026
1038
 
1027
- Activity `attributes` remains a compatibility alias; the retirement flag stays
1028
- off. After verified storage cutover, task `--attr`, task-sync `attributes`, REST,
1029
- MCP and native legacy inputs write canonical fields only and do not recreate the
1030
- raw column. Compatibility reads preserve original key spelling through a
1031
- canonical carrier. Typed `--field` and task-sync `fields` remain available.
1032
- Exact lookup `--attr` remains an alias for `--field label=value`. Database list
1033
- cell shorthand writes canonical fields. Source clearing is a separate verified
1034
- operation, not an API retirement.
1039
+ Activity `attributes` input is rejected unconditionally with `ACTIVITY_ATTRIBUTES_RETIRED`. Run `ente update`, then use `--field Priority=high`. Current task/list `--attr` remains a CLI shorthand that sends canonical fields. REST/MCP: replace `"attributes": {"Priority":"high"}` with `"fields": [{"label":"Priority","value":"high"}]`. Native writers use `activityFields.setValues` or `activityFields.setCell`; `value: null` removes a value. There is no compatibility read view or retirement policy. Compatibility level 2 blocks old CLIs before imports can create rows. See `docs/activity-fields.md`.