ente-cli 0.4.105 → 0.4.107
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 +18 -1
- package/dist/cli.mjs +4734 -3393
- 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,24 @@ 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.
|