ente-cli 0.4.56 → 0.4.58
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 +4 -4
- package/dist/SKILL.md +7 -6
- package/dist/cli.mjs +26 -6
- package/dist/cli.mjs.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -203,10 +203,10 @@ Every inline image must have a matching HTML CID reference, and every CID
|
|
|
203
203
|
reference must have an image. Keep the complete report in the required plain-text
|
|
204
204
|
fallback; HTML and images do not replace it.
|
|
205
205
|
|
|
206
|
-
The combined limit is **
|
|
207
|
-
images, **750,000 bytes per file**
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
The combined limit is **24 files** across ordinary attachments and inline
|
|
207
|
+
images, **750,000 bytes per file**, and **3,000,000 decoded bytes total**.
|
|
208
|
+
For 24 images, the average image must be at most 125,000 bytes, with less room
|
|
209
|
+
when ordinary attachments are also included. Inline images share the byte budget.
|
|
210
210
|
For example:
|
|
211
211
|
|
|
212
212
|
```bash
|
package/dist/SKILL.md
CHANGED
|
@@ -211,10 +211,10 @@ Every inline image must have a matching HTML CID reference, and every CID
|
|
|
211
211
|
reference must have an image. Keep the complete report in the required plain-text
|
|
212
212
|
fallback; HTML and images do not replace it.
|
|
213
213
|
|
|
214
|
-
The combined limit is **
|
|
215
|
-
images, **750,000 bytes per file**
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
The combined limit is **24 files** across ordinary attachments and inline
|
|
215
|
+
images, **750,000 bytes per file**, and **3,000,000 decoded bytes total**.
|
|
216
|
+
For 24 images, the average image must be at most 125,000 bytes, with less room
|
|
217
|
+
when ordinary attachments are also included. Inline images share the byte budget.
|
|
218
218
|
For example:
|
|
219
219
|
|
|
220
220
|
```bash
|
|
@@ -393,7 +393,8 @@ Use `status --operation ID` until review is ready. Use `items --operation ID
|
|
|
393
393
|
whole activity, audience, exact access grants, removed assignees and blockers.
|
|
394
394
|
Use `setAction --item ID --action ACTION` for activity exceptions. Read the new
|
|
395
395
|
version afterwards. Ask for approval of the exact effects; never auto-confirm.
|
|
396
|
-
Use `confirm --operation ID --version REVIEWED_VERSION`.
|
|
397
|
-
|
|
396
|
+
Use `confirm --operation ID --version REVIEWED_VERSION`. Single-activity reviews
|
|
397
|
+
are ready immediately and confirmation completes the move atomically. Bulk jobs
|
|
398
|
+
continue server-side; track with status. A stale plan fails closed; completed batches remain applied.
|
|
398
399
|
Prepare a new review for remaining contents. Cancel only before execution.
|
|
399
400
|
`restore --source SPACE_ID` restores an archived space for an owner/admin.
|
package/dist/cli.mjs
CHANGED
|
@@ -3711,7 +3711,7 @@ function warn(opts, latest) {
|
|
|
3711
3711
|
}
|
|
3712
3712
|
|
|
3713
3713
|
// ente/version.ts
|
|
3714
|
-
var VERSION = "0.4.
|
|
3714
|
+
var VERSION = "0.4.58";
|
|
3715
3715
|
|
|
3716
3716
|
// ente/branding.ts
|
|
3717
3717
|
var NPM_REGISTRY = "https://registry.npmjs.org";
|
|
@@ -12183,6 +12183,15 @@ var MIME_TYPES = {
|
|
|
12183
12183
|
function mimeTypeForPath(filePath) {
|
|
12184
12184
|
return MIME_TYPES[extname(filePath).toLowerCase()] ?? "application/octet-stream";
|
|
12185
12185
|
}
|
|
12186
|
+
function assertOutgoingEmailAttachmentTotalBytes(attachments, options) {
|
|
12187
|
+
const totalBytes = attachments.reduce((total, file) => {
|
|
12188
|
+
const padding = file.data.endsWith("==") ? 2 : file.data.endsWith("=") ? 1 : 0;
|
|
12189
|
+
return total + file.data.length / 4 * 3 - padding;
|
|
12190
|
+
}, 0);
|
|
12191
|
+
if (totalBytes > options.maxTotalBytes) {
|
|
12192
|
+
throw new Error(`${options.commandLabel}: attachments must decode to at most ${options.maxTotalBytes} bytes in total.`);
|
|
12193
|
+
}
|
|
12194
|
+
}
|
|
12186
12195
|
function startsWith(bytes, signature, offset = 0) {
|
|
12187
12196
|
return signature.every((byte, index) => bytes[offset + index] === byte);
|
|
12188
12197
|
}
|
|
@@ -16034,7 +16043,8 @@ var NOTIFICATION_EMAIL_CLI_SURFACE = {
|
|
|
16034
16043
|
contentId: { source: "--inline-image CONTENT_ID=PATH" }
|
|
16035
16044
|
},
|
|
16036
16045
|
limits: {
|
|
16037
|
-
maxAttachments:
|
|
16046
|
+
maxAttachments: 24,
|
|
16047
|
+
maxAttachmentTotalBytes: 3e6,
|
|
16038
16048
|
maxAttachmentBytes: 75e4,
|
|
16039
16049
|
maxBase64Length: 1e6,
|
|
16040
16050
|
maxFilenameLength: 200,
|
|
@@ -16067,7 +16077,7 @@ function readNotificationEmailAttachments(imagePaths = [], inlineImageSpecs = []
|
|
|
16067
16077
|
maxContentIdLength: CLI_LIMITS.maxContentIdLength,
|
|
16068
16078
|
commandLabel: "notification send"
|
|
16069
16079
|
});
|
|
16070
|
-
|
|
16080
|
+
const attachments = [
|
|
16071
16081
|
...imagePaths.map((path6) => readOutgoingEmailAttachment(path6, {
|
|
16072
16082
|
maxBytes: CLI_LIMITS.maxAttachmentBytes,
|
|
16073
16083
|
maxFilenameLength: CLI_LIMITS.maxFilenameLength,
|
|
@@ -16087,6 +16097,11 @@ function readNotificationEmailAttachments(imagePaths = [], inlineImageSpecs = []
|
|
|
16087
16097
|
commandLabel: "notification send"
|
|
16088
16098
|
}))
|
|
16089
16099
|
];
|
|
16100
|
+
assertOutgoingEmailAttachmentTotalBytes(attachments, {
|
|
16101
|
+
maxTotalBytes: CLI_LIMITS.maxAttachmentTotalBytes,
|
|
16102
|
+
commandLabel: "notification send"
|
|
16103
|
+
});
|
|
16104
|
+
return attachments;
|
|
16090
16105
|
}
|
|
16091
16106
|
var NotificationSendCommand = class extends ClientCommand {
|
|
16092
16107
|
static paths = [["notification", "send"]];
|
|
@@ -16289,7 +16304,8 @@ var AGENT_MAIL_CLI_SURFACE = {
|
|
|
16289
16304
|
},
|
|
16290
16305
|
imageMimeTypes: ["image/png", "image/jpeg", "image/gif", "image/webp"],
|
|
16291
16306
|
limits: {
|
|
16292
|
-
maxAttachments:
|
|
16307
|
+
maxAttachments: 24,
|
|
16308
|
+
maxAttachmentTotalBytes: 3e6,
|
|
16293
16309
|
maxAttachmentBytes: 75e4,
|
|
16294
16310
|
maxFilenameLength: 200,
|
|
16295
16311
|
maxBase64Length: 1e6,
|
|
@@ -16385,6 +16401,10 @@ function readAgentMailBodies(options) {
|
|
|
16385
16401
|
commandLabel: "agent mail"
|
|
16386
16402
|
}))
|
|
16387
16403
|
];
|
|
16404
|
+
assertOutgoingEmailAttachmentTotalBytes(attachments, {
|
|
16405
|
+
maxTotalBytes: AGENT_MAIL_CLI_SURFACE.limits.maxAttachmentTotalBytes,
|
|
16406
|
+
commandLabel: "agent mail"
|
|
16407
|
+
});
|
|
16388
16408
|
const referenceError = agentMailInlineReferenceError(html, attachments);
|
|
16389
16409
|
if (referenceError) throw new Error(`agent mail: ${referenceError}`);
|
|
16390
16410
|
return {
|
|
@@ -16489,10 +16509,10 @@ var AgentMailBodyCommand = class extends ClientCommand {
|
|
|
16489
16509
|
html = options_exports.String("--html", { description: "Inline HTML body" });
|
|
16490
16510
|
htmlFile = options_exports.String("--html-file", { description: "Read HTML from a UTF-8 file" });
|
|
16491
16511
|
attachment = options_exports.Array("--attachment", {
|
|
16492
|
-
description: "Attach any bounded file (repeatable; maximum
|
|
16512
|
+
description: "Attach any bounded file (repeatable; maximum 24 including inline images; 3000000 bytes combined)"
|
|
16493
16513
|
});
|
|
16494
16514
|
inlineImage = options_exports.Array("--inline-image", {
|
|
16495
|
-
description: "Embed PNG, JPEG, GIF, or WebP as CONTENT_ID=PATH; reference cid:CONTENT_ID in HTML (750000 bytes per file; maximum
|
|
16515
|
+
description: "Embed PNG, JPEG, GIF, or WebP as CONTENT_ID=PATH; reference cid:CONTENT_ID in HTML (750000 bytes per file; maximum 24 files and 3000000 bytes combined)"
|
|
16496
16516
|
});
|
|
16497
16517
|
key = options_exports.String("--idempotency-key", {
|
|
16498
16518
|
description: "Reuse this key only when retrying the same operation"
|