replicas-cli 0.2.581 → 0.2.583

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 +15 -5
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -24472,7 +24472,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
24472
24472
  });
24473
24473
 
24474
24474
  // ../shared/src/cli-version.ts
24475
- var CLI_VERSION = "0.2.581";
24475
+ var CLI_VERSION = "0.2.583";
24476
24476
 
24477
24477
  // ../shared/src/version.ts
24478
24478
  function compareVersions(v1, v2) {
@@ -24510,6 +24510,7 @@ var sendChatMessageRequestSchema = external_exports.object({
24510
24510
  external_exports.object({ type: external_exports.literal("url"), url: external_exports.string().url() })
24511
24511
  ])
24512
24512
  })).optional(),
24513
+ canvasUploadIds: external_exports.array(external_exports.string().min(1)).optional(),
24513
24514
  thinkingLevel: external_exports.enum(VALID_THINKING_LEVELS).optional(),
24514
24515
  goalMode: external_exports.boolean().optional(),
24515
24516
  fastMode: external_exports.boolean().optional(),
@@ -30788,11 +30789,20 @@ async function mothershipRelayCommand(options) {
30788
30789
  if (!channel || !thread || !message) {
30789
30790
  throw new Error("--channel, --thread, and --message are all required.");
30790
30791
  }
30791
- await agentFetch("/v1/agent/mothership/relay", {
30792
+ const result = await agentFetch("/v1/agent/mothership/relay", {
30792
30793
  method: "POST",
30793
- body: { channel_id: channel, thread_ts: thread, message, ...user ? { user_id: user } : {} }
30794
+ body: {
30795
+ channel_id: channel,
30796
+ thread_ts: thread,
30797
+ message,
30798
+ ...user ? { user_id: user } : {},
30799
+ ...options.interrupt ? { interrupt: true } : {}
30800
+ }
30794
30801
  });
30795
- console.log("Relayed to the thread's dedicated workspace.");
30802
+ const folded = result.folded_in ? ` Folded in ${result.folded_in} earlier relay${result.folded_in === 1 ? "" : "s"} that had not started yet.` : "";
30803
+ console.log(
30804
+ result.interrupted ? `Interrupted the thread's dedicated workspace and relayed the message.${folded}` : "Relayed to the thread's dedicated workspace."
30805
+ );
30796
30806
  }
30797
30807
 
30798
30808
  // src/commands/environment.ts
@@ -32099,7 +32109,7 @@ if (isAgentMode()) {
32099
32109
  process.exit(1);
32100
32110
  }
32101
32111
  });
32102
- mothership.command("relay").description("Relay a follow-up message into the workspace already bound to a Slack thread").requiredOption("--channel <id>", "Slack channel id of the thread").requiredOption("--thread <ts>", "Slack thread timestamp").requiredOption("--message <text>", "The follow-up message to deliver to the workspace").option("--user <id>", "Slack id of the follow-up's author (from the incoming message), for correct attribution").action(async (options) => {
32112
+ mothership.command("relay").description("Relay a follow-up message into the workspace already bound to a Slack thread").requiredOption("--channel <id>", "Slack channel id of the thread").requiredOption("--thread <ts>", "Slack thread timestamp").requiredOption("--message <text>", "The follow-up message to deliver to the workspace").option("--user <id>", "Slack id of the follow-up's author (from the incoming message), for correct attribution").option("--interrupt", "Stop the workspace mid-turn so it picks this message up now instead of after the current turn").action(async (options) => {
32103
32113
  try {
32104
32114
  await mothershipRelayCommand(options);
32105
32115
  } catch (error51) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.581",
3
+ "version": "0.2.583",
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": {