replicas-cli 0.3.397 → 0.3.398
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/dist/index.cjs +5 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34874,7 +34874,7 @@ function stripAttachmentNote(text4) {
|
|
|
34874
34874
|
annotations: annotationsNote ? parseAnnotationsNote(annotationsNote.body) : []
|
|
34875
34875
|
};
|
|
34876
34876
|
}
|
|
34877
|
-
var ATTACHMENT_PLACEHOLDER_REGEX, withoutAttachmentPlaceholder, annotationLinesSchema, ANNOTATIONS_NOTE_OPENING, ANNOTATIONS_NOTE_REGEX, ANNOTATION_HEADER_REGEX, ANNOTATION_FILE_REGEX, APPSHOT_NOTE_REGEX, TRUNCATED_APPSHOT_NOTE_REGEX, XML_UNESCAPES, unescapeXml, WALKTHROUGH_NOTE_REGEX, TRUNCATED_WALKTHROUGH_NOTE_REGEX;
|
|
34877
|
+
var ATTACHMENT_PLACEHOLDER_REGEX, withoutAttachmentPlaceholder, annotationLinesSchema, ANNOTATIONS_NOTE_OPENING, ANNOTATIONS_NOTE_REGEX, ANNOTATION_HEADER_REGEX, ANNOTATION_FILE_REGEX, APPSHOT_NOTE_REGEX, TRUNCATED_APPSHOT_NOTE_REGEX, XML_UNESCAPES, unescapeXml, WALKTHROUGH_NOTE_REGEX, TRUNCATED_WALKTHROUGH_NOTE_REGEX, VIDEO_SIZES_REGEX, parseVideoSizes;
|
|
34878
34878
|
var init_user_message_attachments = __esm({
|
|
34879
34879
|
"../shared/src/user-message-attachments.ts"() {
|
|
34880
34880
|
"use strict";
|
|
@@ -34894,6 +34894,8 @@ var init_user_message_attachments = __esm({
|
|
|
34894
34894
|
unescapeXml = (text4) => text4.replace(/&(?:amp|lt|gt|quot|#39);/g, (entity) => XML_UNESCAPES[entity]);
|
|
34895
34895
|
WALKTHROUGH_NOTE_REGEX = /(?:^|\n\n)<replicas_walkthrough path="([^"\n]+)" duration_seconds="(\d+)" audio="(true|false)">\n[^<]*\n<\/replicas_walkthrough>$/;
|
|
34896
34896
|
TRUNCATED_WALKTHROUGH_NOTE_REGEX = /(?:^|\n\n)<replicas_walkthrough path="([^"\n]*)(?:" duration_seconds="(\d*))?(?:" audio="(true)?)?[^<]*(?:<\/?[a-z_]*)?$/;
|
|
34897
|
+
VIDEO_SIZES_REGEX = /<replicas_instructions>\nThe attached videos' frame sizes, in pixels:((?:\n- .+: \d+x\d+)+)(?:\nFor display only; ignore\.)?\n<\/replicas_instructions>/;
|
|
34898
|
+
parseVideoSizes = (raw) => Object.fromEntries([...(raw.match(VIDEO_SIZES_REGEX)?.[1] ?? "").matchAll(/^- (.+): (\d+)x(\d+)$/gm)].map(([, path11, width, height]) => [path11, { width: Number(width), height: Number(height) }]));
|
|
34897
34899
|
}
|
|
34898
34900
|
});
|
|
34899
34901
|
|
|
@@ -37065,7 +37067,7 @@ function filterDisplayMessages(messages, provider2) {
|
|
|
37065
37067
|
...msg,
|
|
37066
37068
|
content: cleaned,
|
|
37067
37069
|
...origin ? { origin } : {},
|
|
37068
|
-
...files.length > 0 ? { files } : {},
|
|
37070
|
+
...files.length > 0 ? { files, videoSizes: parseVideoSizes(msg.content) } : {},
|
|
37069
37071
|
...walkthroughs.length > 0 ? { walkthroughs } : {},
|
|
37070
37072
|
...annotations.length > 0 ? { annotations } : {},
|
|
37071
37073
|
...appshots.length > 0 ? { appshots } : {}
|
|
@@ -37755,7 +37757,7 @@ var CLI_VERSION;
|
|
|
37755
37757
|
var init_cli_version = __esm({
|
|
37756
37758
|
"../shared/src/cli-version.ts"() {
|
|
37757
37759
|
"use strict";
|
|
37758
|
-
CLI_VERSION = "0.3.
|
|
37760
|
+
CLI_VERSION = "0.3.398";
|
|
37759
37761
|
}
|
|
37760
37762
|
});
|
|
37761
37763
|
|