replicas-cli 0.2.686 → 0.2.688

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 +12 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -27328,6 +27328,12 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
27328
27328
  // ../shared/src/replicas-config.ts
27329
27329
  var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
27330
27330
 
27331
+ // ../shared/src/terminal.ts
27332
+ var CONTROL_CHARACTERS = /[\u0000-\u001F\u007F-\u009F]/g;
27333
+ function sanitizeTerminalLine(value) {
27334
+ return value.replace(CONTROL_CHARACTERS, " ").trim();
27335
+ }
27336
+
27331
27337
  // ../shared/src/headless-agent.ts
27332
27338
  var headlessAgentRequestBaseSchema = external_exports.object({
27333
27339
  agent: external_exports.custom(
@@ -27371,7 +27377,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27371
27377
  });
27372
27378
 
27373
27379
  // ../shared/src/cli-version.ts
27374
- var CLI_VERSION = "0.2.686";
27380
+ var CLI_VERSION = "0.2.688";
27375
27381
 
27376
27382
  // ../shared/src/version.ts
27377
27383
  function compareVersions(v1, v2) {
@@ -31536,6 +31542,9 @@ async function serviceLogsCommand(name, options) {
31536
31542
  }
31537
31543
 
31538
31544
  // src/commands/mothership.ts
31545
+ function workspaceNameForOutput(name) {
31546
+ return sanitizeTerminalLine(name ?? "") || "Workspace";
31547
+ }
31539
31548
  async function mothershipMonitorChannelCommand(options) {
31540
31549
  const channel = options.channel?.trim();
31541
31550
  const approvalChannel = options.approvalChannel?.trim();
@@ -31587,7 +31596,7 @@ async function mothershipSpawnCommand(options) {
31587
31596
  );
31588
31597
  if (result.workspace_id) {
31589
31598
  console.log(`Spawned workspace.
31590
- Workspace: ${getWorkspaceDashboardUrl(result.workspace_id)}`);
31599
+ Workspace: ${workspaceNameForOutput(result.workspace_name)} (${getWorkspaceDashboardUrl(result.workspace_id, { webAppUrl: process.env.REPLICAS_WEB_URL })})`);
31591
31600
  return;
31592
31601
  }
31593
31602
  await new Promise((resolve2) => setTimeout(resolve2, 1e3));
@@ -31615,7 +31624,7 @@ async function mothershipRelayCommand(options) {
31615
31624
  });
31616
31625
  const folded = result.folded_in ? ` Folded in ${result.folded_in} earlier relay${result.folded_in === 1 ? "" : "s"} that had not started yet.` : "";
31617
31626
  console.log(`${result.interrupted ? `Interrupted the thread's dedicated workspace and relayed the message.${folded}` : "Relayed to the thread's dedicated workspace."}
31618
- Workspace: ${getWorkspaceDashboardUrl(result.workspace_id)}`);
31627
+ Workspace: ${workspaceNameForOutput(result.workspace_name)} (${getWorkspaceDashboardUrl(result.workspace_id, { webAppUrl: process.env.REPLICAS_WEB_URL })})`);
31619
31628
  }
31620
31629
 
31621
31630
  // src/commands/environment.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.686",
3
+ "version": "0.2.688",
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": {