replicas-cli 0.2.633 → 0.2.635

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 +14 -11
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -7808,7 +7808,8 @@ var CREDENTIAL_TYPE = {
7808
7808
  ASTER_API_KEY: "aster_api_key",
7809
7809
  OPENROUTER_API_KEY: "openrouter_api_key",
7810
7810
  AI_GATEWAY_API_KEY: "ai_gateway_api_key",
7811
- MUSE_OAUTH: "muse_oauth"
7811
+ MUSE_OAUTH: "muse_oauth",
7812
+ MUSE_API_KEY: "muse_api_key"
7812
7813
  };
7813
7814
  var INFERENCE_PROVIDER_LABELS = {
7814
7815
  [CREDENTIAL_METHOD.OPENCODE_GO]: "OpenCode Go",
@@ -7841,7 +7842,8 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
7841
7842
  { method: CREDENTIAL_METHOD.AI_GATEWAY, credentialType: CREDENTIAL_TYPE.AI_GATEWAY_API_KEY }
7842
7843
  ],
7843
7844
  [AGENT.MUSE]: [
7844
- { method: CREDENTIAL_METHOD.MUSE_OAUTH, credentialType: CREDENTIAL_TYPE.MUSE_OAUTH }
7845
+ { method: CREDENTIAL_METHOD.MUSE_OAUTH, credentialType: CREDENTIAL_TYPE.MUSE_OAUTH },
7846
+ { method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.MUSE_API_KEY }
7845
7847
  ],
7846
7848
  [AGENT.OPENCODE]: [
7847
7849
  { method: CREDENTIAL_METHOD.OPENCODE_GO, credentialType: CREDENTIAL_TYPE.OPENCODE_GO_API_KEY },
@@ -27248,7 +27250,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27248
27250
  });
27249
27251
 
27250
27252
  // ../shared/src/cli-version.ts
27251
- var CLI_VERSION = "0.2.633";
27253
+ var CLI_VERSION = "0.2.635";
27252
27254
 
27253
27255
  // ../shared/src/version.ts
27254
27256
  function compareVersions(v1, v2) {
@@ -31420,15 +31422,16 @@ async function mothershipRelayCommand(options) {
31420
31422
  if (!channel || !thread || !message) {
31421
31423
  throw new Error("--channel, --thread, and --message are all required.");
31422
31424
  }
31425
+ const body = {
31426
+ channel_id: channel,
31427
+ thread_ts: thread,
31428
+ message,
31429
+ ...user ? { user_id: user } : {},
31430
+ ...options.queue ? { queue: true } : {}
31431
+ };
31423
31432
  const result = await agentFetch("/v1/agent/mothership/relay", {
31424
31433
  method: "POST",
31425
- body: {
31426
- channel_id: channel,
31427
- thread_ts: thread,
31428
- message,
31429
- ...user ? { user_id: user } : {},
31430
- ...options.interrupt ? { interrupt: true } : {}
31431
- }
31434
+ body
31432
31435
  });
31433
31436
  const folded = result.folded_in ? ` Folded in ${result.folded_in} earlier relay${result.folded_in === 1 ? "" : "s"} that had not started yet.` : "";
31434
31437
  console.log(
@@ -32760,7 +32763,7 @@ if (isAgentMode()) {
32760
32763
  process.exit(1);
32761
32764
  }
32762
32765
  });
32763
- 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) => {
32766
+ 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("--queue", "Let active work finish before delivering this message").action(async (options) => {
32764
32767
  try {
32765
32768
  await mothershipRelayCommand(options);
32766
32769
  } catch (error51) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.633",
3
+ "version": "0.2.635",
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": {