replicas-cli 0.2.587 → 0.2.588

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
@@ -24483,7 +24483,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
24483
24483
  });
24484
24484
 
24485
24485
  // ../shared/src/cli-version.ts
24486
- var CLI_VERSION = "0.2.587";
24486
+ var CLI_VERSION = "0.2.588";
24487
24487
 
24488
24488
  // ../shared/src/version.ts
24489
24489
  function compareVersions(v1, v2) {
@@ -30812,14 +30812,24 @@ async function serviceLogsCommand(name, options) {
30812
30812
  async function mothershipSpawnCommand(options) {
30813
30813
  const channel = options.channel?.trim();
30814
30814
  const thread = options.thread?.trim();
30815
+ const messageTs = options.messageTs?.trim();
30815
30816
  const prompt = options.prompt?.trim();
30817
+ const user = options.user?.trim();
30816
30818
  const environment2 = options.environment?.trim();
30817
- if (!channel || !thread || !prompt) {
30818
- throw new Error("--channel, --thread, and --prompt are all required.");
30819
+ if (!channel || !thread || !messageTs || !prompt || !user) {
30820
+ throw new Error("--channel, --thread, --message-ts, --prompt, and --user are all required.");
30819
30821
  }
30822
+ const body = {
30823
+ channel_id: channel,
30824
+ thread_ts: thread,
30825
+ message_ts: messageTs,
30826
+ prompt,
30827
+ user_id: user,
30828
+ ...environment2 ? { environment_id: environment2 } : {}
30829
+ };
30820
30830
  await agentFetch("/v1/agent/mothership/spawn", {
30821
30831
  method: "POST",
30822
- body: { channel_id: channel, thread_ts: thread, prompt, ...environment2 ? { environment_id: environment2 } : {} }
30832
+ body
30823
30833
  });
30824
30834
  console.log("Workspace spawn requested. The new workspace will take over this Slack thread.");
30825
30835
  }
@@ -32148,7 +32158,7 @@ if (isAgentMode()) {
32148
32158
  }
32149
32159
  });
32150
32160
  const mothership = program.command("mothership").description("Mothership triage operations");
32151
- mothership.command("spawn").description("Spawn a dedicated workspace for a Slack thread and hand off to it").requiredOption("--channel <id>", "Slack channel id of the thread").requiredOption("--thread <ts>", "Slack thread timestamp").requiredOption("--prompt <text>", "Task prompt for the new workspace").option("--environment <id>", "Environment to spawn into (from `replicas environment list`); omit if unsure to let the user pick").action(async (options) => {
32161
+ mothership.command("spawn").description("Spawn a dedicated workspace for a Slack thread and hand off to it").requiredOption("--channel <id>", "Slack channel id of the thread").requiredOption("--thread <ts>", "Slack thread timestamp").requiredOption("--message-ts <ts>", "Slack timestamp of the triggering message").requiredOption("--prompt <text>", "Task prompt for the new workspace").requiredOption("--user <id>", "Slack id of the triggering message's author").option("--environment <id>", "Environment to spawn into (from `replicas environment list`); omit if unsure to let the user pick").action(async (options) => {
32152
32162
  try {
32153
32163
  await mothershipSpawnCommand(options);
32154
32164
  } catch (error51) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.587",
3
+ "version": "0.2.588",
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": {