ente-cli 0.4.130 → 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 +10 -4
- package/dist/SKILL.md +13 -29
- package/dist/cli.mjs +606 -666
- package/dist/cli.mjs.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -584,12 +584,12 @@ Time filters apply to activity evidence. Resolve entity identity globally first.
|
|
|
584
584
|
history page. Follow `nextCursor` with `--cursor` and the same entity/time
|
|
585
585
|
filters until `hasMore` is false. Compact pages retain the space/member envelope,
|
|
586
586
|
record IDs, time/assignment metadata and continuation. Long bodies become
|
|
587
|
-
240-character excerpts;
|
|
587
|
+
240-character excerpts; field values, derived data, attachments and content hashes
|
|
588
588
|
are omitted. The `projection.fullDetail` references point to `activity get <id>`
|
|
589
589
|
(CLI), `activities_get` (MCP), and `getActivity` (internal tools). Defaults stay
|
|
590
590
|
unchanged. REST uses `compact=true`; MCP `activities_forEntity` and internal
|
|
591
591
|
`listRecentActivities` use `compact: true`. These options apply to active
|
|
592
|
-
entity-scoped pages, without client-side type/
|
|
592
|
+
entity-scoped pages, without client-side type/field/open/deadline filters.
|
|
593
593
|
|
|
594
594
|
JSON failures use stdout `{ "error": { "message": "..." } }` with a nonzero
|
|
595
595
|
exit. REST status and structured error fields survive. Check the exit before
|
|
@@ -656,8 +656,8 @@ ente entity field remove <valueId>
|
|
|
656
656
|
|
|
657
657
|
`--field` repeats JSON objects. Omitted labels stay unchanged; a supplied label
|
|
658
658
|
replaces that field's values; `"value":null` removes them. Entity `--attr` is
|
|
659
|
-
retained only to report the moved-to-fields error. Activity/task/list
|
|
660
|
-
|
|
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.
|
|
661
661
|
|
|
662
662
|
### Experimental Ask availability
|
|
663
663
|
|
|
@@ -712,3 +712,9 @@ The principal is attributed as actor; the delegate remains the external-key
|
|
|
712
712
|
namespace and appears as provenance. Owner grant management rejects agent JWTs.
|
|
713
713
|
|
|
714
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
|
|
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","
|
|
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.
|
|
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)
|
|
@@ -861,9 +861,9 @@ Entity values use typed `fields`; entity `--attr` and attribute payloads are leg
|
|
|
861
861
|
`entity update --field` merges only supplied labels. Repeat JSON objects to store
|
|
862
862
|
several values under one label; use `"value":null` to remove that label's values.
|
|
863
863
|
A field ID selects an existing definition; a new label is owned by the acting
|
|
864
|
-
space. Activity/task
|
|
865
|
-
|
|
866
|
-
|
|
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.
|
|
867
867
|
|
|
868
868
|
Entity parent settings: each child can have one regular parent plus additional
|
|
869
869
|
parents with `allowNonExclusiveChildren: true`. Missing means false. Create or
|
|
@@ -1018,7 +1018,7 @@ Entity exact-value lookup: `ente entity list --field "External ID=Case=ID"`. The
|
|
|
1018
1018
|
|
|
1019
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.
|
|
1020
1020
|
|
|
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, JSON uses serialized JSON strings. Existing types cannot be changed by a value write
|
|
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.
|
|
1022
1022
|
|
|
1023
1023
|
```sh
|
|
1024
1024
|
ente activity update <id> --field '{"label":"estimate","type":"number","value":3}' --profile ente-operator --json
|
|
@@ -1026,30 +1026,14 @@ ente task update <id> --field '{"fieldId":"<field-id>","value":null}' --profile
|
|
|
1026
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
|
|
1027
1027
|
```
|
|
1028
1028
|
|
|
1029
|
-
Write `--field` takes repeatable JSON objects
|
|
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.
|
|
1030
1030
|
|
|
1031
|
-
Activity definitions are shared across a space. Writers create
|
|
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`.
|
|
1032
1032
|
|
|
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
|
|
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.
|
|
1034
1034
|
|
|
1035
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.
|
|
1036
1036
|
|
|
1037
|
-
CLI list upsert planning reads canonical field IDs through the list's bindings,
|
|
1038
|
-
|
|
1039
|
-
`
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
Activity `attributes` is a permanent compatibility alias; the retirement flag stays
|
|
1043
|
-
off. After verified storage cutover, task `--attr`, task-sync `attributes`, REST,
|
|
1044
|
-
MCP and native legacy inputs write canonical fields only and do not recreate the
|
|
1045
|
-
raw column. Compatibility reads preserve original key spelling through a
|
|
1046
|
-
canonical carrier. Typed `--field` and task-sync `fields` remain available.
|
|
1047
|
-
Exact lookup `--attr` remains an alias for `--field label=value`. Database list
|
|
1048
|
-
cell shorthand writes canonical fields. Source clearing is a separate verified
|
|
1049
|
-
operation, not an API retirement.
|
|
1050
|
-
|
|
1051
|
-
Recovery of a cleared raw column requires a separate explicit coordinator GO.
|
|
1052
|
-
See `docs/activity-fields-storage-cutover.md`, “Targeted snapshot restore”, for
|
|
1053
|
-
`activityAttributeRestore:restoreBatch`: it restores only absent raw columns on
|
|
1054
|
-
existing activities and never changes canonical values. Normal legacy writes
|
|
1055
|
-
continue to use the canonical-only alias, including after a targeted restore.
|
|
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.
|
|
1038
|
+
|
|
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`.
|