replicas-cli 0.3.689 → 0.3.690

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 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -38920,6 +38920,8 @@ function parseAnnotationsNote(body2) {
38920
38920
  if (file2) lines.shift();
38921
38921
  const source = lines[0]?.match(ANNOTATION_SOURCE_REGEX);
38922
38922
  if (source) lines.shift();
38923
+ const image = lines[0]?.match(ANNOTATION_IMAGE_REGEX);
38924
+ if (image) lines.shift();
38923
38925
  const occurrence = lines[0]?.match(ANNOTATION_OCCURRENCE_REGEX);
38924
38926
  if (occurrence) lines.shift();
38925
38927
  const quoteLength = lines.findIndex((line) => !line.startsWith(">"));
@@ -38930,7 +38932,8 @@ function parseAnnotationsNote(body2) {
38930
38932
  ...comment ? { comment } : {},
38931
38933
  ...file2 ? { lines: { path: file2[1], start: Number(file2[2]), end: Number(file2[3] ?? file2[2]) } } : {},
38932
38934
  ...occurrence ? { occurrence: Number(occurrence[1]) - 1 } : {},
38933
- ...source ? { messageId: source[1], ...source[2] ? { endMessageId: source[2] } : {} } : {}
38935
+ ...source ? { messageId: source[1], ...source[2] ? { endMessageId: source[2] } : {} } : {},
38936
+ ...image ? { image: Number(image[1]) } : {}
38934
38937
  };
38935
38938
  });
38936
38939
  }
@@ -38971,7 +38974,7 @@ function stripAttachmentNote(text5) {
38971
38974
  annotations: annotationsNote ? parseAnnotationsNote(annotationsNote.body) : []
38972
38975
  };
38973
38976
  }
38974
- var ATTACHMENT_PLACEHOLDER_REGEX, withoutAttachmentPlaceholder, annotationLinesSchema, messageAnnotationSchema, ANNOTATIONS_NOTE_OPENING, ANNOTATIONS_NOTE_REGEX, ANNOTATION_HEADER_REGEX, ANNOTATION_FILE_REGEX, ANNOTATION_OCCURRENCE_REGEX, ANNOTATION_SOURCE_REGEX, APPSHOT_NOTE_REGEX, TRUNCATED_APPSHOT_NOTE_REGEX, XML_UNESCAPES, unescapeXml, WALKTHROUGH_NOTE_REGEX, TRUNCATED_WALKTHROUGH_NOTE_REGEX, VIDEO_SIZES_REGEX, parseVideoSizes;
38977
+ var ATTACHMENT_PLACEHOLDER_REGEX, withoutAttachmentPlaceholder, annotationLinesSchema, messageAnnotationSchema, ANNOTATIONS_NOTE_OPENING, ANNOTATIONS_NOTE_REGEX, ANNOTATION_HEADER_REGEX, ANNOTATION_FILE_REGEX, ANNOTATION_OCCURRENCE_REGEX, ANNOTATION_SOURCE_REGEX, ANNOTATION_IMAGE_REGEX, APPSHOT_NOTE_REGEX, TRUNCATED_APPSHOT_NOTE_REGEX, XML_UNESCAPES, unescapeXml, WALKTHROUGH_NOTE_REGEX, TRUNCATED_WALKTHROUGH_NOTE_REGEX, VIDEO_SIZES_REGEX, parseVideoSizes;
38975
38978
  var init_user_message_attachments = __esm({
38976
38979
  "../shared/src/user-message-attachments.ts"() {
38977
38980
  "use strict";
@@ -38989,7 +38992,8 @@ var init_user_message_attachments = __esm({
38989
38992
  occurrence: external_exports.number().int().nonnegative().optional(),
38990
38993
  /** The rendered message the quote was selected in, and its last one when it spans several, so clients find it without searching. */
38991
38994
  messageId: external_exports.string().optional(),
38992
- endMessageId: external_exports.string().optional()
38995
+ endMessageId: external_exports.string().optional(),
38996
+ image: external_exports.number().int().positive().optional()
38993
38997
  });
38994
38998
  ANNOTATIONS_NOTE_OPENING = '<replicas_annotations>\nThe user quoted these passages, some with a comment. Address each annotation, and when you do, refer to it as "Annotation N".';
38995
38999
  ANNOTATIONS_NOTE_REGEX = /(?:^|\n\n)<replicas_annotations>\n([\s\S]*?)\n<\/replicas_annotations>$/;
@@ -38997,6 +39001,7 @@ var init_user_message_attachments = __esm({
38997
39001
  ANNOTATION_FILE_REGEX = /^File: (.+):(\d+)(?:-(\d+))?$/;
38998
39002
  ANNOTATION_OCCURRENCE_REGEX = /^Occurrence: (\d+) /;
38999
39003
  ANNOTATION_SOURCE_REGEX = /^Source: (\S+)(?: to (\S+))?$/;
39004
+ ANNOTATION_IMAGE_REGEX = /^Image: (\d+)$/;
39000
39005
  APPSHOT_NOTE_REGEX = /(?:^|\n\n)<replicas_appshot app="([^"\n]*)" window="([^"\n]*)" image="(\d+)">\n([^\n<]*)(?:\n\n([^<]*))?\n<\/replicas_appshot>$/;
39001
39006
  TRUNCATED_APPSHOT_NOTE_REGEX = /(?:^|\n\n)<replicas_appshot app="([^"\n]*)(?:" window="([^"\n]*)(?:" image="(\d*))?)?[^<]*(?:<\/?[a-z_]*)?$/;
39002
39007
  XML_UNESCAPES = { "&amp;": "&", "&lt;": "<", "&gt;": ">", "&quot;": '"', "&#39;": "'" };
@@ -43583,7 +43588,7 @@ var CLI_VERSION;
43583
43588
  var init_cli_version = __esm({
43584
43589
  "../shared/src/cli-version.ts"() {
43585
43590
  "use strict";
43586
- CLI_VERSION = "0.3.689";
43591
+ CLI_VERSION = "0.3.690";
43587
43592
  }
43588
43593
  });
43589
43594
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.689",
3
+ "version": "0.3.690",
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": {