replicas-cli 0.3.396 → 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.
Files changed (2) hide show
  1. package/dist/index.cjs +9 -5
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -23216,7 +23216,7 @@ var init_workspace_attention = __esm({
23216
23216
  });
23217
23217
 
23218
23218
  // ../shared/src/routes/push.ts
23219
- var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, pushQuestionSchema, pushNotificationDataSchema, workspaceSharedPushDataSchema, registerLiveActivityRequestSchema, setLiveActivityStartTokenRequestSchema;
23219
+ var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, PUSH_OPTION_LABEL_MAX, PUSH_OPTIONS_MAX, pushQuestionSchema, pushNotificationDataSchema, workspaceSharedPushDataSchema, registerLiveActivityRequestSchema, setLiveActivityStartTokenRequestSchema;
23220
23220
  var init_push = __esm({
23221
23221
  "../shared/src/routes/push.ts"() {
23222
23222
  "use strict";
@@ -23244,7 +23244,9 @@ var init_push = __esm({
23244
23244
  seenChats: external_exports.array(external_exports.object({ workspaceId: external_exports.string().uuid(), chatId: external_exports.string().min(1).max(100) })).max(20).optional()
23245
23245
  });
23246
23246
  PUSH_NOTIFICATION_KINDS = [...WORKSPACE_ATTENTION_REASONS, "finished"];
23247
- pushQuestionSchema = external_exports.object({ id: external_exports.string().max(64), options: external_exports.array(external_exports.object({ id: external_exports.string().max(64), label: external_exports.string().min(1).max(60) })).min(1).max(4) });
23247
+ PUSH_OPTION_LABEL_MAX = 60;
23248
+ PUSH_OPTIONS_MAX = 4;
23249
+ pushQuestionSchema = external_exports.object({ id: external_exports.string().max(64), allowCustom: external_exports.boolean().optional(), options: external_exports.array(external_exports.object({ id: external_exports.string().max(64), label: external_exports.string().min(1).max(PUSH_OPTION_LABEL_MAX) })).min(1).max(PUSH_OPTIONS_MAX) });
23248
23250
  pushNotificationDataSchema = external_exports.object({
23249
23251
  organizationId: external_exports.string(),
23250
23252
  workspaceId: external_exports.string(),
@@ -34872,7 +34874,7 @@ function stripAttachmentNote(text4) {
34872
34874
  annotations: annotationsNote ? parseAnnotationsNote(annotationsNote.body) : []
34873
34875
  };
34874
34876
  }
34875
- 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;
34876
34878
  var init_user_message_attachments = __esm({
34877
34879
  "../shared/src/user-message-attachments.ts"() {
34878
34880
  "use strict";
@@ -34892,6 +34894,8 @@ var init_user_message_attachments = __esm({
34892
34894
  unescapeXml = (text4) => text4.replace(/&(?:amp|lt|gt|quot|#39);/g, (entity) => XML_UNESCAPES[entity]);
34893
34895
  WALKTHROUGH_NOTE_REGEX = /(?:^|\n\n)<replicas_walkthrough path="([^"\n]+)" duration_seconds="(\d+)" audio="(true|false)">\n[^<]*\n<\/replicas_walkthrough>$/;
34894
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) }]));
34895
34899
  }
34896
34900
  });
34897
34901
 
@@ -37063,7 +37067,7 @@ function filterDisplayMessages(messages, provider2) {
37063
37067
  ...msg,
37064
37068
  content: cleaned,
37065
37069
  ...origin ? { origin } : {},
37066
- ...files.length > 0 ? { files } : {},
37070
+ ...files.length > 0 ? { files, videoSizes: parseVideoSizes(msg.content) } : {},
37067
37071
  ...walkthroughs.length > 0 ? { walkthroughs } : {},
37068
37072
  ...annotations.length > 0 ? { annotations } : {},
37069
37073
  ...appshots.length > 0 ? { appshots } : {}
@@ -37753,7 +37757,7 @@ var CLI_VERSION;
37753
37757
  var init_cli_version = __esm({
37754
37758
  "../shared/src/cli-version.ts"() {
37755
37759
  "use strict";
37756
- CLI_VERSION = "0.3.396";
37760
+ CLI_VERSION = "0.3.398";
37757
37761
  }
37758
37762
  });
37759
37763
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.396",
3
+ "version": "0.3.398",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {