replicas-cli 0.2.508 → 0.2.509
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 +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9658,7 +9658,7 @@ const message = await replicas.slack.call<{ channel: string; ts: string }>('chat
|
|
|
9658
9658
|
await replicas.slack.attachThread({ channel: message.channel, threadTs: message.ts });
|
|
9659
9659
|
\`\`\`
|
|
9660
9660
|
|
|
9661
|
-
A link in the message text stays plain text, so
|
|
9661
|
+
A link in the message text stays plain text, so the message that first shares a pull request or merge request link passes \`blocks\` alongside \`text\` to render a button for it. Keep \`text\` set to the same message \u2014 Slack uses it for notifications and fallback.
|
|
9662
9662
|
|
|
9663
9663
|
\`\`\`ts
|
|
9664
9664
|
await replicas.slack.call('chat.postMessage', {
|
|
@@ -9670,14 +9670,14 @@ await replicas.slack.call('chat.postMessage', {
|
|
|
9670
9670
|
{
|
|
9671
9671
|
type: 'actions',
|
|
9672
9672
|
elements: [
|
|
9673
|
-
{ type: 'button', text: { type: 'plain_text', text: 'View PR' }, url: prUrl, action_id: 'view_pr' },
|
|
9673
|
+
{ type: 'button', style: 'primary', text: { type: 'plain_text', text: 'View PR' }, url: prUrl, action_id: 'view_pr' },
|
|
9674
9674
|
],
|
|
9675
9675
|
},
|
|
9676
9676
|
],
|
|
9677
9677
|
});
|
|
9678
9678
|
\`\`\`
|
|
9679
9679
|
|
|
9680
|
-
Use "View MR" for GitLab. With several links, give each button a unique \`action_id\` and name its repository in the label ("View PR \xB7 web").
|
|
9680
|
+
Only the announcing message gets the button \u2014 follow-ups about a pull request already linked in the thread keep the link in the text and drop the \`blocks\`. Use "View MR" for GitLab. With several links, give each button a unique \`action_id\` and name its repository in the label ("View PR \xB7 web").
|
|
9681
9681
|
|
|
9682
9682
|
Attach every new top-level conversation so future replies route to this workspace. For a reply in another thread, attach its root \`thread_ts\`, not the reply timestamp. Do not attach the originating thread again.
|
|
9683
9683
|
|
|
@@ -9813,7 +9813,7 @@ function formatTurnElapsed(ms) {
|
|
|
9813
9813
|
}
|
|
9814
9814
|
|
|
9815
9815
|
// ../shared/src/cli-version.ts
|
|
9816
|
-
var CLI_VERSION = "0.2.
|
|
9816
|
+
var CLI_VERSION = "0.2.509";
|
|
9817
9817
|
|
|
9818
9818
|
// ../shared/src/version.ts
|
|
9819
9819
|
function compareVersions(v1, v2) {
|