replicas-cli 0.2.587 → 0.2.589

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 +25 -8
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22409,11 +22409,13 @@ var ASTER_MODEL_LABELS = {
22409
22409
  // ../shared/src/engine/types.ts
22410
22410
  var CLAUDE_OPUS_1M_MODEL = "opus[1m]";
22411
22411
  var LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
22412
+ var CLAUDE_FABLE_5_1_MODEL = "claude-fable-5-1";
22412
22413
  var CLAUDE_FABLE_5_MODEL = "claude-fable-5";
22413
22414
  var CLAUDE_OPUS_5_MODEL = "claude-opus-5";
22414
22415
  var CLAUDE_OPUS_4_8_MODEL = "claude-opus-4-8";
22415
22416
  var CLAUDE_SONNET_5_MODEL = "claude-sonnet-5";
22416
22417
  var CLAUDE_HAIKU_4_5_MODEL = "claude-haiku-4-5";
22418
+ var CLAUDE_FABLE_5_1_BEDROCK_MODEL = "anthropic.claude-fable-5-1";
22417
22419
  var CLAUDE_FABLE_5_BEDROCK_MODEL = "anthropic.claude-fable-5";
22418
22420
  var CLAUDE_OPUS_5_BEDROCK_MODEL = "anthropic.claude-opus-5";
22419
22421
  var CLAUDE_OPUS_4_8_BEDROCK_MODEL = "us.anthropic.claude-opus-4-8";
@@ -22452,7 +22454,7 @@ function normalizeClaudeModel(model) {
22452
22454
  return DEFAULT_CLAUDE_MODEL;
22453
22455
  }
22454
22456
  if (model === "fable") {
22455
- return CLAUDE_FABLE_5_MODEL;
22457
+ return CLAUDE_FABLE_5_1_MODEL;
22456
22458
  }
22457
22459
  if (model === "sonnet") {
22458
22460
  return CLAUDE_SONNET_5_MODEL;
@@ -22463,11 +22465,13 @@ function normalizeClaudeModel(model) {
22463
22465
  return model;
22464
22466
  }
22465
22467
  var CLAUDE_MODEL_CONTEXT_WINDOWS = {
22468
+ [CLAUDE_FABLE_5_1_MODEL]: 1e6,
22466
22469
  [CLAUDE_FABLE_5_MODEL]: 1e6,
22467
22470
  [CLAUDE_OPUS_5_MODEL]: 1e6,
22468
22471
  [CLAUDE_OPUS_4_8_MODEL]: 1e6,
22469
22472
  [CLAUDE_SONNET_5_MODEL]: 1e6,
22470
22473
  [CLAUDE_HAIKU_4_5_MODEL]: 2e5,
22474
+ [CLAUDE_FABLE_5_1_BEDROCK_MODEL]: 1e6,
22471
22475
  [CLAUDE_FABLE_5_BEDROCK_MODEL]: 1e6,
22472
22476
  [CLAUDE_OPUS_5_BEDROCK_MODEL]: 1e6,
22473
22477
  [CLAUDE_OPUS_4_8_BEDROCK_MODEL]: 1e6,
@@ -22481,6 +22485,7 @@ var CLAUDE_MODEL_CONTEXT_WINDOWS = {
22481
22485
  };
22482
22486
  var AGENT_MODELS = {
22483
22487
  claude: [
22488
+ CLAUDE_FABLE_5_1_MODEL,
22484
22489
  CLAUDE_FABLE_5_MODEL,
22485
22490
  CLAUDE_OPUS_5_MODEL,
22486
22491
  CLAUDE_OPUS_4_8_MODEL,
@@ -22489,6 +22494,7 @@ var AGENT_MODELS = {
22489
22494
  ],
22490
22495
  codex: [DEFAULT_CODEX_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.2"],
22491
22496
  cursor: [
22497
+ CLAUDE_FABLE_5_1_MODEL,
22492
22498
  CLAUDE_FABLE_5_MODEL,
22493
22499
  CLAUDE_OPUS_5_MODEL,
22494
22500
  CLAUDE_OPUS_4_8_MODEL,
@@ -22522,7 +22528,7 @@ var AGENT_MODELS = {
22522
22528
  kimi: [DEFAULT_KIMI_MODEL],
22523
22529
  opencode: [...OPENROUTER_MODELS, ...ASTER_MODELS],
22524
22530
  pi: [...OPENROUTER_MODELS, ...ASTER_MODELS],
22525
- relay: [CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_MODEL]
22531
+ relay: [CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_MODEL]
22526
22532
  };
22527
22533
  function getAgentModelOptions(provider, overrides) {
22528
22534
  const override = overrides?.[provider];
@@ -22532,7 +22538,8 @@ function isAgentModelAllowed(provider, model, overrides) {
22532
22538
  return overrides?.[provider] === null || getAgentModelOptions(provider, overrides).includes(model);
22533
22539
  }
22534
22540
  var MODEL_LABELS = {
22535
- fable: "Fable 5",
22541
+ fable: "Fable 5.1",
22542
+ [CLAUDE_FABLE_5_1_MODEL]: "Fable 5.1",
22536
22543
  [CLAUDE_FABLE_5_MODEL]: "Fable 5",
22537
22544
  sonnet: "Sonnet 5",
22538
22545
  "claude-sonnet-5": "Sonnet 5",
@@ -24483,7 +24490,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
24483
24490
  });
24484
24491
 
24485
24492
  // ../shared/src/cli-version.ts
24486
- var CLI_VERSION = "0.2.587";
24493
+ var CLI_VERSION = "0.2.589";
24487
24494
 
24488
24495
  // ../shared/src/version.ts
24489
24496
  function compareVersions(v1, v2) {
@@ -30812,14 +30819,24 @@ async function serviceLogsCommand(name, options) {
30812
30819
  async function mothershipSpawnCommand(options) {
30813
30820
  const channel = options.channel?.trim();
30814
30821
  const thread = options.thread?.trim();
30822
+ const messageTs = options.messageTs?.trim();
30815
30823
  const prompt = options.prompt?.trim();
30824
+ const user = options.user?.trim();
30816
30825
  const environment2 = options.environment?.trim();
30817
- if (!channel || !thread || !prompt) {
30818
- throw new Error("--channel, --thread, and --prompt are all required.");
30826
+ if (!channel || !thread || !messageTs || !prompt || !user) {
30827
+ throw new Error("--channel, --thread, --message-ts, --prompt, and --user are all required.");
30819
30828
  }
30829
+ const body = {
30830
+ channel_id: channel,
30831
+ thread_ts: thread,
30832
+ message_ts: messageTs,
30833
+ prompt,
30834
+ user_id: user,
30835
+ ...environment2 ? { environment_id: environment2 } : {}
30836
+ };
30820
30837
  await agentFetch("/v1/agent/mothership/spawn", {
30821
30838
  method: "POST",
30822
- body: { channel_id: channel, thread_ts: thread, prompt, ...environment2 ? { environment_id: environment2 } : {} }
30839
+ body
30823
30840
  });
30824
30841
  console.log("Workspace spawn requested. The new workspace will take over this Slack thread.");
30825
30842
  }
@@ -32148,7 +32165,7 @@ if (isAgentMode()) {
32148
32165
  }
32149
32166
  });
32150
32167
  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) => {
32168
+ 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
32169
  try {
32153
32170
  await mothershipSpawnCommand(options);
32154
32171
  } 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.589",
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": {