ente-cli 0.4.106 → 0.4.108
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 +14 -0
- package/dist/SKILL.md +56 -1
- package/dist/cli.mjs +7771 -7491
- package/dist/cli.mjs.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -643,3 +643,17 @@ the run budget, with a credential/mailbox 60-minute window floor across fresh ID
|
|
|
643
643
|
Every result names `from` and the exact `permissionUsed` level. Old command names,
|
|
644
644
|
connection IDs and workflow payloads remain supported. Run `--schema <operation>`
|
|
645
645
|
or `--help` for per-operation JSON schemas.
|
|
646
|
+
|
|
647
|
+
Admin user email search: `ente --profile ente-operator users list --email <substring>` matches email case-insensitively, including partial addresses. It retains the existing global-admin/platform-key boundary and traverses bounded pages.
|
|
648
|
+
Account setup: a live `accountSetup` capability exposes `ente admin guide` and `ente admin settings describe|get|apply`. Apply previews by default; commit binds fingerprint, expected version and idempotency key. Passwords, access, billing, connections and deletion are excluded.
|
|
649
|
+
|
|
650
|
+
Gmail organize permission allows archive/unarchive (INBOX), read/unread and Ente workflow labels without sending. Use `modifyLabels` with one of `archive`, `unarchive`, `read`, `unread`, `handled`, `needs-reply` (empty labels clears workflow state), an explicit mailboxId, provider threadId or messageId, and requestId. No Ente source archive is needed. The server adds `Ente/Operators/<acting agent display name>`; callers cannot choose operator labels. dryRun performs no provider writes or reservations. Completed retries return the saved actual post-change message label IDs; uncertain outcomes fail closed. Default limits are 20 per execution and credential/mailbox 60-minute window, and 100 reserved changes per agent/user grant per UTC day, shared across that agent’s credentials and mailboxes. Six agents have separate daily limits (up to 600 combined). A new executionId does not reset the window or daily budget.
|
|
651
|
+
|
|
652
|
+
Large organize readbacks return a bounded prefix of actual per-message label IDs with `readbackTruncated: true` and the total observed `messageCount`. The complete result stays within the 4,000-character receipt budget, so retries return the same saved snapshot without another provider write. Use `readThread` pagination for additional current provider state; that later read is not the original write-time snapshot.
|
|
653
|
+
|
|
654
|
+
Admin cost delivery uses `ente costs preview --profile ente-operator --file <json> --json`
|
|
655
|
+
and `ente costs import --profile ente-operator --file <json> --expected-current-id <id-or-none> --json`.
|
|
656
|
+
Both use the existing separate platform credential, never the agent key. Preview
|
|
657
|
+
first; imports preserve server validation, idempotency and revision comparison.
|
|
658
|
+
V1 and v2 formats and the human admin-session fallback are documented in
|
|
659
|
+
`docs/admin-costs.md`. Keep provider credentials and real financial files outside Git.
|
package/dist/SKILL.md
CHANGED
|
@@ -890,7 +890,62 @@ MCP/OpenAPI descriptions and the shared `mailboxOperationSchemas` declaration.
|
|
|
890
890
|
Canonical request JSON schemas (generated from `mailboxOperationSchemas`):
|
|
891
891
|
|
|
892
892
|
```json
|
|
893
|
-
{"listMailboxes":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"listMailboxes"}},"additionalProperties":false,"required":["operation"]},"search":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"search"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"query":{"type":"string","minLength":1,"maxLength":300},"cursor":{"type":"string","minLength":1,"maxLength":4000},"limit":{"type":"integer","minimum":1,"maximum":50}},"required":["operation","mailboxId","query"],"additionalProperties":false},"readThread":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"readThread"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"messageId":{"type":"string","minLength":1,"maxLength":4000},"threadId":{"type":"string","minLength":1,"maxLength":4000},"providerThreadId":{"type":"string","minLength":1,"maxLength":4000},"cursor":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId"],"additionalProperties":false,"anyOf":[{"required":["messageId"]},{"required":["threadId"]},{"required":["providerThreadId"]}]},"createDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"createDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"messageId":{"type":"string","minLength":1,"maxLength":4000},"threadId":{"type":"string","minLength":1,"maxLength":4000},"providerThreadId":{"type":"string","minLength":1,"maxLength":4000},"from":{"type":"string"},"to":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":320}},"cc":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":320}},"bcc":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":320}},"subject":{"type":"string","maxLength":2000},"body":{"type":"string","maxLength":32000},"html":{"type":"string","maxLength":64000},"draftId":{"type":"string","minLength":1,"maxLength":4000},"replyAll":{"type":"boolean"}},"required":["operation","mailboxId","requestId"],"additionalProperties":false},"loadDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"loadDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"draftId":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId","draftId"],"additionalProperties":false},"discardDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"discardDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"draftId":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId","requestId","draftId"],"additionalProperties":false},"sendDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"sendDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"draftId":{"type":"string","minLength":1,"maxLength":4000},"draftVersion":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId","requestId","draftId","draftVersion"],"additionalProperties":false},"modifyLabels":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"modifyLabels"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"messageId":{"type":"string","minLength":1,"maxLength":4000},"threadId":{"type":"string","minLength":1,"maxLength":4000},"providerThreadId":{"type":"string","minLength":1,"maxLength":4000},"labels":{"maxItems":1,"type":"array","items":{"type":"string","enum":["handled","needs-reply"]}},"stateVersion":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["operation","mailboxId","requestId","labels"],"additionalProperties":false,"anyOf":[{"required":["messageId"]},{"required":["threadId"]},{"required":["providerThreadId"]}]}}
|
|
893
|
+
{"listMailboxes":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"listMailboxes"}},"additionalProperties":false,"required":["operation"]},"search":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"search"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"query":{"type":"string","minLength":1,"maxLength":300},"cursor":{"type":"string","minLength":1,"maxLength":4000},"limit":{"type":"integer","minimum":1,"maximum":50}},"required":["operation","mailboxId","query"],"additionalProperties":false},"readThread":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"readThread"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"messageId":{"type":"string","minLength":1,"maxLength":4000},"threadId":{"type":"string","minLength":1,"maxLength":4000},"providerThreadId":{"type":"string","minLength":1,"maxLength":4000},"cursor":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId"],"additionalProperties":false,"anyOf":[{"required":["messageId"]},{"required":["threadId"]},{"required":["providerThreadId"]}]},"createDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"createDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"messageId":{"type":"string","minLength":1,"maxLength":4000},"threadId":{"type":"string","minLength":1,"maxLength":4000},"providerThreadId":{"type":"string","minLength":1,"maxLength":4000},"from":{"type":"string"},"to":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":320}},"cc":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":320}},"bcc":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":320}},"subject":{"type":"string","maxLength":2000},"body":{"type":"string","maxLength":32000},"html":{"type":"string","maxLength":64000},"draftId":{"type":"string","minLength":1,"maxLength":4000},"replyAll":{"type":"boolean"}},"required":["operation","mailboxId","requestId"],"additionalProperties":false},"loadDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"loadDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"draftId":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId","draftId"],"additionalProperties":false},"discardDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"discardDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"draftId":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId","requestId","draftId"],"additionalProperties":false},"sendDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"sendDraft"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"draftId":{"type":"string","minLength":1,"maxLength":4000},"draftVersion":{"type":"string","minLength":1,"maxLength":4000}},"required":["operation","mailboxId","requestId","draftId","draftVersion"],"additionalProperties":false},"modifyLabels":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"const":"modifyLabels"},"mailboxId":{"type":"string","minLength":1,"maxLength":4000},"requestId":{"type":"string","pattern":"^[a-zA-Z0-9-]{8,100}$"},"executionId":{"type":"string","minLength":1,"maxLength":100},"dryRun":{"type":"boolean"},"messageId":{"type":"string","minLength":1,"maxLength":4000},"threadId":{"type":"string","minLength":1,"maxLength":4000},"providerThreadId":{"type":"string","minLength":1,"maxLength":4000},"labels":{"maxItems":1,"type":"array","items":{"type":"string","enum":["handled","needs-reply","archive","unarchive","read","unread"]}},"stateVersion":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["operation","mailboxId","requestId","labels"],"additionalProperties":false,"anyOf":[{"required":["messageId"]},{"required":["threadId"]},{"required":["providerThreadId"]}]}}
|
|
894
894
|
```
|
|
895
895
|
|
|
896
896
|
<!-- mailbox-operation-schemas:end -->
|
|
897
|
+
|
|
898
|
+
Admin user email search: `ente --profile ente-operator users list --email <substring>` matches email case-insensitively, including partial addresses. It retains the existing global-admin/platform-key boundary and traverses bounded pages.
|
|
899
|
+
When auth-context reports active `accountSetup`, load its on-demand playbook with `ente admin guide`. The guide includes exact-email account settings and declarative company setup with transactional, verified-email invitations and catalog presets. Mail preparation uses the non-secret mailSetup catalog entry and a target-only, single-use finish link; passwords and OAuth tokens never belong in agent calls.
|
|
900
|
+
|
|
901
|
+
Gmail organize permission allows archive/unarchive (INBOX), read/unread and Ente workflow labels without sending. Use `modifyLabels` with one of `archive`, `unarchive`, `read`, `unread`, `handled`, `needs-reply` (empty labels clears workflow state), an explicit mailboxId, provider threadId or messageId, and requestId. No Ente source archive is needed. The server adds `Ente/Operators/<acting agent display name>`; callers cannot choose operator labels. dryRun performs no provider writes or reservations. Completed retries return the saved actual post-change message label IDs; uncertain outcomes fail closed. Default limits are 20 per execution and credential/mailbox 60-minute window, and 100 reserved changes per agent/user grant per UTC day, shared across that agent’s credentials and mailboxes. Six agents have separate daily limits (up to 600 combined). A new executionId does not reset the window or daily budget.
|
|
902
|
+
|
|
903
|
+
Large organize readbacks return a bounded prefix of actual per-message label IDs with `readbackTruncated: true` and the total observed `messageCount`. The complete result stays within the 4,000-character receipt budget, so retries return the same saved snapshot without another provider write. Use `readThread` pagination for additional current provider state; that later read is not the original write-time snapshot.
|
|
904
|
+
|
|
905
|
+
### Admin cost snapshots
|
|
906
|
+
|
|
907
|
+
`ente costs preview --profile ente-operator --file <json> --json` validates through
|
|
908
|
+
the existing global-admin importer. `ente costs import --profile ente-operator
|
|
909
|
+
--file <json> --expected-current-id <preview-id-or-none> --json` imports one
|
|
910
|
+
revision with compare-and-swap protection. These commands require the separate
|
|
911
|
+
existing platform credential; an agent profile supplies no admin access. If it
|
|
912
|
+
is unavailable, preserve the private JSON for an existing human admin session.
|
|
913
|
+
Never provision access or copy provider secrets to complete delivery.
|
|
914
|
+
|
|
915
|
+
### Reopen a task
|
|
916
|
+
|
|
917
|
+
`ente task reopen <activity-id> --profile ente-operator --json` explicitly sets
|
|
918
|
+
completion to false. Use the full activity ID: the installed short-number resolver
|
|
919
|
+
only finds open tasks. This command preserves assignments and deadline.
|
|
920
|
+
|
|
921
|
+
### Narrow task synchronization
|
|
922
|
+
|
|
923
|
+
A signed-in human owner can create a task sync key in a personal agent's Settings
|
|
924
|
+
→ Connections. Store the once-shown secret privately in the Builder environment;
|
|
925
|
+
never print it, commit it, or replace an existing operator credential. The key has
|
|
926
|
+
only `tasks:read`, `tasks:write`, and `cli`, pinned to Personal. Generic entity,
|
|
927
|
+
space, mail and agent-management commands remain unavailable.
|
|
928
|
+
|
|
929
|
+
Use exact IDs with canonical JSON; these commands avoid broad name resolution:
|
|
930
|
+
|
|
931
|
+
```text
|
|
932
|
+
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
|
|
933
|
+
ente task sync getActivity '{"spaceId":"<personal-id>","externalKey":"t3_thread_id:<thread-id>","includeDeleted":true}' --profile ente-operator --json
|
|
934
|
+
ente task sync updateActivity '{"activityId":"<activity-id>","completed":false,"deadline":null}' --profile ente-operator --json
|
|
935
|
+
ente task sync updateActivityAssignees '{"activityId":"<activity-id>","action":"remove","assigneeIds":["<human-user-id>"]}' --profile ente-operator --json
|
|
936
|
+
ente task reopen <activity-id> --profile ente-operator --json
|
|
937
|
+
ente agent tasks list --view attention --profile ente-operator --json
|
|
938
|
+
```
|
|
939
|
+
|
|
940
|
+
Create is idempotent when externalKey is supplied. It reserves the key for that
|
|
941
|
+
agent and space and returns the first ID even if retry fields changed. Use update
|
|
942
|
+
to change fields. Completion/deletion retains the reservation; includeDeleted
|
|
943
|
+
returns a content-free tombstone for deleted tasks. Key rotation for the same
|
|
944
|
+
agent preserves lookup; another agent has its own namespace. Restore is explicit.
|
|
945
|
+
|
|
946
|
+
Self-authored writes, including enrollment, do not raise own attention. Inspect
|
|
947
|
+
still includes those events and never acknowledges older input. Discover work
|
|
948
|
+
from attention; acknowledge the exact issued observation only after processing it.
|
|
949
|
+
Task-only read can inspect but cannot acknowledge. Do not assign real operators
|
|
950
|
+
for testing; use fictional local identities or the explicitly approved dedicated
|
|
951
|
+
production test agent and its one task.
|