replicas-cli 0.2.354 → 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.
- package/dist/index.mjs +26 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9283,6 +9283,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
|
|
|
9283
9283
|
| \`replicas automation ...\` | Manage automations (cron + GitHub/GitLab event triggers) |
|
|
9284
9284
|
| \`replicas preview ...\` | Register / list preview URLs (covered in \`PREVIEWS.md\`) |
|
|
9285
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\`) |
|
|
9286
9287
|
|
|
9287
9288
|
\`replicas <command> --help\` is always the source of truth for flags.
|
|
9288
9289
|
|
|
@@ -9516,6 +9517,30 @@ curl -s -X POST "https://slack.com/api/chat.postMessage" \\
|
|
|
9516
9517
|
|
|
9517
9518
|
Omit \`thread_ts\` to post a new message to the channel. Include it to reply in a thread.
|
|
9518
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
|
+
|
|
9519
9544
|
### Searching Messages
|
|
9520
9545
|
|
|
9521
9546
|
\`\`\`bash
|
|
@@ -9654,7 +9679,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
9654
9679
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
9655
9680
|
|
|
9656
9681
|
// ../shared/src/cli-version.ts
|
|
9657
|
-
var CLI_VERSION = "0.2.
|
|
9682
|
+
var CLI_VERSION = "0.2.355";
|
|
9658
9683
|
|
|
9659
9684
|
// ../shared/src/version.ts
|
|
9660
9685
|
function compareVersions(v1, v2) {
|