replicas-cli 0.2.353 → 0.2.355

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.mjs +32 -11
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -7799,19 +7799,18 @@ function classifyCanvasFilename(filename) {
7799
7799
 
7800
7800
  // ../shared/src/pricing.ts
7801
7801
  var INTEGRATION_SOURCES = ["slack", "linear", "github", "gitlab"];
7802
- var SYSTEMIC_SOURCES = ["api", "automation"];
7802
+ var AUTOMATED_SOURCES = ["api", "automation"];
7803
7803
  var INTEGRATION_SOURCES_SQL = INTEGRATION_SOURCES.map((s) => `'${s}'`).join(", ");
7804
- var SYSTEMIC_SOURCES_SQL = SYSTEMIC_SOURCES.map((s) => `'${s}'`).join(", ");
7804
+ var AUTOMATED_SOURCES_SQL = AUTOMATED_SOURCES.map((s) => `'${s}'`).join(", ");
7805
7805
  var PLANS = {
7806
7806
  hobby: {
7807
7807
  id: "hobby",
7808
7808
  name: "Hobby",
7809
7809
  monthlyPrice: 0,
7810
7810
  seatPriceCents: 0,
7811
- creditsIncluded: 1200,
7812
7811
  features: [
7813
- "1,200 minutes of human-initiated workspace usage (one-time)",
7814
- "1,200 minutes of API + automation usage (one-time)",
7812
+ "2,400 minutes of workspace usage per month",
7813
+ "Use them however you want, manual or automated",
7815
7814
  "Automations (limited to 2)",
7816
7815
  "Warm pools and warm hooks",
7817
7816
  "Up to 3 repositories",
@@ -7823,9 +7822,8 @@ var PLANS = {
7823
7822
  name: "Developer",
7824
7823
  monthlyPrice: 120,
7825
7824
  seatPriceCents: 12e3,
7826
- creditsIncluded: 0,
7827
7825
  features: [
7828
- "Unlimited human-initiated workspaces",
7826
+ "Unlimited manual workspaces",
7829
7827
  "5,000 included automation/API minutes per month",
7830
7828
  "Up to 10 repositories",
7831
7829
  "Up to 15 environments",
@@ -7839,9 +7837,8 @@ var PLANS = {
7839
7837
  name: "Team",
7840
7838
  monthlyPrice: 300,
7841
7839
  seatPriceCents: 3e4,
7842
- creditsIncluded: 0,
7843
7840
  features: [
7844
- "Unlimited human-initiated workspaces",
7841
+ "Unlimited manual workspaces",
7845
7842
  "15,000 included automation/API minutes per month",
7846
7843
  "Unlimited repositories",
7847
7844
  "Unlimited automations",
@@ -7856,7 +7853,6 @@ var PLANS = {
7856
7853
  name: "Enterprise",
7857
7854
  monthlyPrice: 0,
7858
7855
  seatPriceCents: 0,
7859
- creditsIncluded: 0,
7860
7856
  features: [
7861
7857
  "Unlimited usage",
7862
7858
  "Unlimited automations",
@@ -9287,6 +9283,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
9287
9283
  | \`replicas automation ...\` | Manage automations (cron + GitHub/GitLab event triggers) |
9288
9284
  | \`replicas preview ...\` | Register / list preview URLs (covered in \`PREVIEWS.md\`) |
9289
9285
  | \`replicas media ...\` | Upload screenshots, videos, audio (covered in \`MEDIA.md\`) |
9286
+ | \`replicas slack thread ...\` | Attach or switch Slack thread routing (covered in \`SLACK.md\`) |
9290
9287
 
9291
9288
  \`replicas <command> --help\` is always the source of truth for flags.
9292
9289
 
@@ -9520,6 +9517,30 @@ curl -s -X POST "https://slack.com/api/chat.postMessage" \\
9520
9517
 
9521
9518
  Omit \`thread_ts\` to post a new message to the channel. Include it to reply in a thread.
9522
9519
 
9520
+ #### Attach every new conversation
9521
+
9522
+ Whenever you send a Slack message outside the thread that already routes to the current workspace, immediately attach the destination thread so future replies are delivered to this workspace:
9523
+
9524
+ \`\`\`bash
9525
+ replicas slack thread attach --channel <channel-id> --thread-ts <thread-root-ts>
9526
+ \`\`\`
9527
+
9528
+ - For a new top-level message or DM, use the \`channel\` and \`ts\` from the successful \`chat.postMessage\` response. That message's \`ts\` is the new thread root.
9529
+ - For a reply in another existing thread, use its root \`thread_ts\`, not the reply's \`ts\`.
9530
+ - Do not attach the originating thread again when it already routes to the current workspace.
9531
+ - Treat sending and attaching as one operation: check that both API calls succeed, and report an attachment failure instead of implying future replies will reach you.
9532
+
9533
+ #### Switch a thread to an existing workspace
9534
+
9535
+ When the user wants a Slack thread to continue in a particular existing workspace, resolve the target and switch the thread:
9536
+
9537
+ \`\`\`bash
9538
+ replicas list
9539
+ replicas slack thread switch <workspace-id-or-name> --channel <channel-id> --thread-ts <thread-root-ts>
9540
+ \`\`\`
9541
+
9542
+ The channel and thread flags default to \`SLACK_CHANNEL_ID\` and \`SLACK_THREAD_TS\` for a Slack-triggered workspace. Workspace-authenticated agents may target only their current workspace; switching to a different workspace requires running the command with user authentication outside agent mode. If that restriction applies, give the user the exact command to run rather than claiming the switch succeeded.
9543
+
9523
9544
  ### Searching Messages
9524
9545
 
9525
9546
  \`\`\`bash
@@ -9658,7 +9679,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
9658
9679
  var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
9659
9680
 
9660
9681
  // ../shared/src/cli-version.ts
9661
- var CLI_VERSION = "0.2.353";
9682
+ var CLI_VERSION = "0.2.355";
9662
9683
 
9663
9684
  // ../shared/src/version.ts
9664
9685
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.353",
3
+ "version": "0.2.355",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {