replicas-cli 0.2.646 → 0.2.648

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 +37 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -27249,7 +27249,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27249
27249
  });
27250
27250
 
27251
27251
  // ../shared/src/cli-version.ts
27252
- var CLI_VERSION = "0.2.646";
27252
+ var CLI_VERSION = "0.2.648";
27253
27253
 
27254
27254
  // ../shared/src/version.ts
27255
27255
  function compareVersions(v1, v2) {
@@ -27475,6 +27475,7 @@ var HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
27475
27475
  ["onedrive", "one_drive", "OAUTH2", true, "productivity", "OneDrive"],
27476
27476
  ["googleslides", "googleslides", "OAUTH2", true, "productivity", "Google Slides"],
27477
27477
  ["googlemeet", "googlemeet", "OAUTH2", true, "productivity", "Google Meet"],
27478
+ ["granola", "granola_mcp", "DCR_OAUTH", false, "productivity", "Granola"],
27478
27479
  ["googletasks", "googletasks", "OAUTH2", true, "productivity", "Google Tasks"],
27479
27480
  ["dropbox", "dropbox", "OAUTH2", true, "productivity", "Dropbox"],
27480
27481
  ["box", "box", "OAUTH2", true, "productivity", "Box"],
@@ -31403,6 +31404,29 @@ async function serviceLogsCommand(name, options) {
31403
31404
  }
31404
31405
 
31405
31406
  // src/commands/mothership.ts
31407
+ async function mothershipMonitorChannelCommand(options) {
31408
+ const channel = options.channel?.trim();
31409
+ const approvalChannel = options.approvalChannel?.trim();
31410
+ const approvalThread = options.approvalThread?.trim();
31411
+ const approvalMessageTs = options.approvalMessageTs?.trim();
31412
+ const approvalUser = options.approvalUser?.trim();
31413
+ if (!channel || !approvalChannel || !approvalThread || !approvalMessageTs || !approvalUser) {
31414
+ throw new Error("--channel and every --approval-* option are required.");
31415
+ }
31416
+ const body = {
31417
+ channel_id: channel,
31418
+ approval_channel_id: approvalChannel,
31419
+ approval_thread_ts: approvalThread,
31420
+ approval_message_ts: approvalMessageTs,
31421
+ approval_user_id: approvalUser,
31422
+ ...options.instructions?.trim() ? { instructions: options.instructions.trim() } : {}
31423
+ };
31424
+ await agentFetch("/v1/agent/mothership/monitor-channel", {
31425
+ method: "POST",
31426
+ body
31427
+ });
31428
+ console.log(`Channel ${channel} is now monitored by Mothership.`);
31429
+ }
31406
31430
  async function mothershipSpawnCommand(options) {
31407
31431
  const channel = options.channel?.trim();
31408
31432
  const thread = options.thread?.trim();
@@ -32764,6 +32788,18 @@ if (isAgentMode()) {
32764
32788
  }
32765
32789
  });
32766
32790
  const mothership = program.command("mothership").description("Mothership triage operations");
32791
+ mothership.command("monitor-channel").description("Add a Slack channel to Mothership monitoring after an admin confirms").requiredOption("--channel <id>", "Slack channel id to monitor").option("--instructions <text>", "Editable channel-specific instructions").requiredOption("--approval-channel <id>", "Slack channel containing the admin confirmation").requiredOption("--approval-thread <ts>", "Slack thread containing the admin confirmation").requiredOption("--approval-message-ts <ts>", "Slack timestamp of the admin confirmation").requiredOption("--approval-user <id>", "Slack id of the confirming admin").action(async (options) => {
32792
+ try {
32793
+ await mothershipMonitorChannelCommand(options);
32794
+ } catch (error51) {
32795
+ if (error51 instanceof Error) {
32796
+ console.error(import_chalk23.default.red(`
32797
+ \u2717 ${error51.message}
32798
+ `));
32799
+ }
32800
+ process.exit(1);
32801
+ }
32802
+ });
32767
32803
  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) => {
32768
32804
  try {
32769
32805
  await mothershipSpawnCommand(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.646",
3
+ "version": "0.2.648",
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": {