replicas-cli 0.2.168 → 0.2.169

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.mjs +19 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -8152,6 +8152,9 @@ var MODEL_LABELS = {
8152
8152
  "gpt-5": "GPT-5"
8153
8153
  };
8154
8154
 
8155
+ // ../shared/src/engine/v1.ts
8156
+ var MERGED_MESSAGE_SEPARATOR = "\n\n<!-- replicas:merged -->\n\n";
8157
+
8155
8158
  // ../shared/src/routes/workspaces.ts
8156
8159
  var WORKSPACE_FILE_UPLOAD_MAX_SIZE_BYTES = 20 * 1024 * 1024;
8157
8160
  var WORKSPACE_FILE_CONTENT_MAX_SIZE_BYTES = 1 * 1024 * 1024;
@@ -9158,9 +9161,21 @@ function parseAutomationTriggered(content) {
9158
9161
  userPrompt: promptMatch?.[1]?.trim() ?? ""
9159
9162
  };
9160
9163
  }
9164
+ function parseSingleMessage(content) {
9165
+ return parseCIFailure(content) ?? parseGitHubIssueNew(content) ?? parseGitHubIssueExisting(content) ?? parseGitHubPRNew(content) ?? parseGitHubPRExistingPRReview(content) ?? parseGitHubPRExistingReview(content) ?? parseGitHubPRExistingGeneral(content) ?? parseSlackTask(content) ?? parseLinearIssue(content) ?? parseAutomationTriggered(content) ?? parseInlineDiffComments(content) ?? parsePlanQuote(content) ?? { source: "raw", content };
9166
+ }
9167
+ function parseMerged(content) {
9168
+ if (!content.includes(MERGED_MESSAGE_SEPARATOR)) return null;
9169
+ const chunks = content.split(MERGED_MESSAGE_SEPARATOR).map((chunk) => chunk.trim()).filter((chunk) => chunk.length > 0);
9170
+ if (chunks.length < 2) return null;
9171
+ return {
9172
+ source: "merged",
9173
+ messages: chunks.map((chunk) => parseSingleMessage(chunk))
9174
+ };
9175
+ }
9161
9176
  function parseUserMessage(rawContent) {
9162
9177
  const content = removeReplicasInstructions(rawContent).trim();
9163
- return parseCIFailure(content) ?? parseGitHubIssueNew(content) ?? parseGitHubIssueExisting(content) ?? parseGitHubPRNew(content) ?? parseGitHubPRExistingPRReview(content) ?? parseGitHubPRExistingReview(content) ?? parseGitHubPRExistingGeneral(content) ?? parseSlackTask(content) ?? parseLinearIssue(content) ?? parseAutomationTriggered(content) ?? parseInlineDiffComments(content) ?? parsePlanQuote(content) ?? { source: "raw", content };
9178
+ return parseMerged(content) ?? parseSingleMessage(content);
9164
9179
  }
9165
9180
 
9166
9181
  // ../shared/src/user-message-parser/source-config.ts
@@ -9176,7 +9191,8 @@ var SOURCE_CONFIG = {
9176
9191
  slack_task: { label: "Slack", color: "#BF6CC2" },
9177
9192
  automation_triggered: { label: "Automation", color: "#f59e0b" },
9178
9193
  plan_quote: { label: "Plan", color: "#66bb6a" },
9179
- inline_diff_comments: { label: "Diff Comments", color: "#66bb6a" }
9194
+ inline_diff_comments: { label: "Diff Comments", color: "#66bb6a" },
9195
+ merged: { label: "Merged", color: "#a78bfa" }
9180
9196
  };
9181
9197
 
9182
9198
  // ../shared/src/placeholder-names.ts
@@ -14868,7 +14884,7 @@ Deleted file ${pathOrId}.
14868
14884
  }
14869
14885
 
14870
14886
  // src/index.ts
14871
- var CLI_VERSION = "0.2.168";
14887
+ var CLI_VERSION = "0.2.169";
14872
14888
  var program = new Command();
14873
14889
  program.name("replicas").description("CLI for managing Replicas workspaces").version(CLI_VERSION);
14874
14890
  program.command("login").description("Authenticate with your Replicas account").action(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.168",
3
+ "version": "0.2.169",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {