replicas-cli 0.2.641 → 0.2.642
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.cjs +11 -21
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24617,6 +24617,11 @@ var SENTRY_ABILITY = {
|
|
|
24617
24617
|
referenceFile: { name: "SENTRY.md", content: REFERENCE11 }
|
|
24618
24618
|
};
|
|
24619
24619
|
|
|
24620
|
+
// ../shared/src/slack-response-style.ts
|
|
24621
|
+
var SLACK_CONCISE_REPLY_SHAPE = "one to three plain sentences on what you did and what it means, with no headers, bullet lists, command logs, or step-by-step narration";
|
|
24622
|
+
var SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would make the message faster to scan or use. You have broad leeway to combine supported display elements: `section` and `fields` for compact updates; `context` for secondary metadata; `header` and `divider` for genuinely distinct sections; images for useful previews; and `actions` with URL buttons for pull requests, dashboards, downloads, or next steps. Consult the [Slack Block Kit reference](https://docs.slack.dev/reference/block-kit/blocks) for exact schemas before using an unfamiliar block. Do not add selects, date pickers, approval buttons, or other controls that require an interaction callback. Keep simple replies as plain text, do not add decorative UI or repeat content across blocks, and always keep `text` as a concise, complete fallback for notifications and accessibility.";
|
|
24623
|
+
var SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread \u2014 the message announcing you opened it \u2014 attach a button for it: send `blocks` alongside `text` \u2014 a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. Later messages about a pull request you already linked in this thread keep the link in the sentence and get no button, and never re-post a button for a link someone already has. Label it "View MR" for GitLab, and if there are several give each button a unique `action_id` and name its repository in the label ("View PR \xB7 web"). Always keep `text` populated with the same message \u2014 Slack uses it for notifications and fallback \u2014 and keep the link in the sentence too.';
|
|
24624
|
+
|
|
24620
24625
|
// ../shared/src/default-skills/replicas-agent/abilities/slack.ts
|
|
24621
24626
|
var SECTION12 = `### Slack
|
|
24622
24627
|
Send messages, read threads, search conversations, and transfer files through the workspace-scoped TypeScript SDK.
|
|
@@ -24664,6 +24669,10 @@ await Bun.write('/tmp/recording.mov', response);
|
|
|
24664
24669
|
|
|
24665
24670
|
## Send and attach a message
|
|
24666
24671
|
|
|
24672
|
+
Write like a teammate, not a report. Lead with the outcome, remove repetition and filler, and preserve the facts needed to understand the result, blocker, or next action. A routine update is ${SLACK_CONCISE_REPLY_SHAPE}.
|
|
24673
|
+
|
|
24674
|
+
${SLACK_BLOCK_KIT_GUIDANCE}
|
|
24675
|
+
|
|
24667
24676
|
\`\`\`ts
|
|
24668
24677
|
const message = await replicas.slack.call<{ channel: string; ts: string }>('chat.postMessage', {
|
|
24669
24678
|
channel: 'C0123ABC',
|
|
@@ -24672,26 +24681,7 @@ const message = await replicas.slack.call<{ channel: string; ts: string }>('chat
|
|
|
24672
24681
|
await replicas.slack.attachThread({ channel: message.channel, threadTs: message.ts });
|
|
24673
24682
|
\`\`\`
|
|
24674
24683
|
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
\`\`\`ts
|
|
24678
|
-
await replicas.slack.call('chat.postMessage', {
|
|
24679
|
-
channel: 'C0123ABC',
|
|
24680
|
-
thread_ts: '1234567890.123456',
|
|
24681
|
-
text: summary,
|
|
24682
|
-
blocks: [
|
|
24683
|
-
{ type: 'section', text: { type: 'mrkdwn', text: summary } },
|
|
24684
|
-
{
|
|
24685
|
-
type: 'actions',
|
|
24686
|
-
elements: [
|
|
24687
|
-
{ type: 'button', style: 'primary', text: { type: 'plain_text', text: 'View PR' }, url: prUrl, action_id: 'view_pr' },
|
|
24688
|
-
],
|
|
24689
|
-
},
|
|
24690
|
-
],
|
|
24691
|
-
});
|
|
24692
|
-
\`\`\`
|
|
24693
|
-
|
|
24694
|
-
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").
|
|
24684
|
+
${SLACK_PR_BUTTON_GUIDANCE}
|
|
24695
24685
|
|
|
24696
24686
|
For screenshots, recordings, diagrams, or other media, read \`references/MEDIA.md\` before posting. It is the single source of truth for uploading the Replicas copy and the raw file to Slack; a dashboard link in \`text\` is not an inline attachment.
|
|
24697
24687
|
|
|
@@ -27252,7 +27242,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
27252
27242
|
});
|
|
27253
27243
|
|
|
27254
27244
|
// ../shared/src/cli-version.ts
|
|
27255
|
-
var CLI_VERSION = "0.2.
|
|
27245
|
+
var CLI_VERSION = "0.2.642";
|
|
27256
27246
|
|
|
27257
27247
|
// ../shared/src/version.ts
|
|
27258
27248
|
function compareVersions(v1, v2) {
|