agent-slack-0.10.2
checks.aarch64-linux.pkgs-agent-slack
· build #10775
· raw
1elastic-arm-d6f26d5b: building mdb53vxjj1irakm7iwxyimvs78i6fiyj-agent-slack-0.10.2.drv2Using versionCheckHook
unpackPhase
3unpacking source archive /nix/store/cgqwcm1zgrhk5gmlmpjpi0rc8f2zg5kh-source4source root is sourcebunSetInstallCacheDirPhase
5Using bun root: "/build/source"bunPatchPhase
6patching script interpreter paths in .7./scripts/install-skill.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xl3n26zm1kv1zhj3mma2x929f4sx3dlh-bash-5.3p20/bin/bash"8./scripts/update-nix-sources.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/xl3n26zm1kv1zhj3mma2x929f4sx3dlh-bash-5.3p20/bin/bash"9./scripts/release.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/xl3n26zm1kv1zhj3mma2x929f4sx3dlh-bash-5.3p20/bin/sh"configurePhase
10no configure script, doing nothingbunNodeModulesInstallPhase
11/build/source /build/source12bun install flags: --linker=isolated --ignore-scripts13bun install v1.4.4 (38afee6c8)1415+ @types/node@22.19.816+ @types/semver@7.7.117+ @types/turndown@5.0.618+ bun-types@1.3.919+ oxfmt@0.31.020+ oxlint@1.49.021+ semver@7.7.422+ simple-git-hooks@2.13.123+ typescript@5.9.324+ @slack/web-api@7.13.025+ commander@14.0.326+ hysnappy@1.1.027+ node-emoji@2.2.028+ turndown@7.2.229+ turndown-plugin-gfm@1.0.230+ zod@4.3.6313268 packages installed [523.00ms]33/build/sourcebuildPhase
34Bundled 360 modules in 102ms3536 agent-slack.js 1.98 MB (entry point)37checkPhase
38bun test v1.4.4 (38afee6c8)3940test/user-cache.test.ts:41✓ user-cache helpers > collectReferencedUserIds excludes reaction users by default [4.48ms]42✓ user-cache helpers > collectReferencedUserIds includes reaction users when enabled [0.49ms]43✓ user-cache helpers > toReferencedUsers returns only resolved users keyed by id [1.14ms]4445test/html-to-md.test.ts:46✓ htmlToMarkdown > converts basic HTML to markdown [10.76ms]4748test/rich-text.test.ts:49✓ parseInlineElements > plain text returns single text element [1.25ms]50✓ parseInlineElements > *bold* is parsed with bold style [0.06ms]51✓ parseInlineElements > _italic_ is parsed with italic style [0.04ms]52✓ parseInlineElements > ~strike~ is parsed with strike style [0.03ms]53✓ parseInlineElements > `code` is parsed with code style [0.04ms]54✓ parseInlineElements > :emoji: shortcode is parsed as an emoji element [0.04ms]55✓ parseInlineElements > emoji names with underscores are not parsed as italic text [0.04ms]56✓ parseInlineElements > time-like colon text is not parsed as an emoji element [0.02ms]57✓ parseInlineElements > <url|label> is parsed as link with text [0.08ms]58✓ parseInlineElements > <url> is parsed as link without text [0.08ms]59✓ parseInlineElements > <mailto|label> is parsed as link with text [0.04ms]60✓ parseInlineElements > non-url angle bracket text is preserved as text [0.04ms]61✓ parseInlineElements > non-url labeled angle bracket text is preserved as text [0.03ms]62✓ parseInlineElements > channel mention tokens are parsed as channel elements [0.03ms]63✓ parseInlineElements > bare channel mention tokens are parsed as channel elements [0.03ms]64✓ parseInlineElements > usergroup mention tokens are parsed as usergroup elements [0.04ms]65✓ textToRichTextBlocks > plain text returns null [0.36ms]66✓ textToRichTextBlocks > inline-only formatting returns null by default [0.05ms]67✓ textToRichTextBlocks > non-url angle bracket text does not trigger rich text blocks [0.11ms]68✓ textToRichTextBlocks > mixed non-url angle bracket text and formatting preserves brackets [0.09ms]69✓ textToRichTextBlocks > inline-only formatting can produce rich text blocks [0.09ms]70✓ textToRichTextBlocks > mailto links can produce rich text blocks when inline formatting is included [0.08ms]71✓ textToRichTextBlocks > channel mentions can produce rich text blocks when inline formatting is included [0.08ms]72✓ textToRichTextBlocks > bullet list with - prefix [0.53ms]73✓ textToRichTextBlocks > bullet list with bullet character [0.46ms]74✓ textToRichTextBlocks > sub-bullets with indentation [0.90ms]75✓ textToRichTextBlocks > white bullet sub-bullets under bullet [0.14ms]76✓ textToRichTextBlocks > mixed text and bullets [0.08ms]77✓ textToRichTextBlocks > numbered list [0.22ms]78✓ textToRichTextBlocks > bold text in list items is parsed [0.12ms]79✓ textToRichTextBlocks > emoji and channel references in list items are parsed [0.15ms]80✓ textToRichTextBlocks > Slack manual links and CommonMark links remain distinct in list items [0.10ms]81✓ textToRichTextBlocks > code block is preserved [0.07ms]82✓ textToRichTextBlocks > blockquote is preserved [0.05ms]8384test/error-message.test.ts:85✓ errorMessage > returns the message for a plain error [0.19ms]86✓ errorMessage > stringifies non-Error values [0.05ms]87✓ errorMessage > appends a single Error cause [0.06ms]88✓ errorMessage > appends AggregateError causes from a failed fetch through a dead proxy [0.07ms]89✓ errorMessage > walks multi-level cause chains [0.04ms]90✓ errorMessage > terminates on a self-referential cause instead of looping forever [0.03ms]91✓ errorMessage > terminates on a longer cause cycle [0.03ms]92✓ errorMessage > does not crash on a cause that cannot be stringified [0.04ms]93✓ errorMessage > does not crash on a non-Error thrown value that cannot be stringified [0.02ms]94✓ errorMessage > caps how far a long cause chain is walked [0.22ms]95✓ errorMessage > collapses a cause that merely restates its parent [0.05ms]9697test/update.test.ts:98✓ compareSemver > equal versions return 0 [0.11ms]99✓ compareSemver > strips v prefix [0.05ms]100✓ compareSemver > newer major [0.54ms]101✓ compareSemver > newer minor [0.03ms]102✓ compareSemver > newer patch [0.02ms]103✓ compareSemver > older version returns negative [0.02ms]104✓ compareSemver > handles 0.x versions [0.04ms]105106test/users.test.ts:107✓ resolveUserId > returns user ids unchanged [0.34ms]108✓ resolveUserId > returns W-prefixed user ids unchanged [0.08ms]109✓ resolveUserId > resolves @handle via users.list [0.22ms]110✓ resolveUserId > resolves email via users.lookupByEmail [0.12ms]111✓ resolveUserId > resolves @handle case-insensitively [0.12ms]112✓ resolveUserId > falls back to users.list when lookupByEmail is unavailable [0.18ms]113114test/format-outbound.test.ts:115✓ formatOutboundSlackText > promotes bare user IDs to Slack mention tokens [0.35ms]116✓ formatOutboundSlackText > leaves already-formatted mention tokens alone [0.07ms]117✓ formatOutboundSlackText > leaves already-formatted usergroup mention tokens alone [0.03ms]118✓ formatOutboundSlackText > promotes broadcast mentions [0.05ms]119✓ formatOutboundSlackText > escapes bare < > & in literal text [0.02ms]120✓ formatOutboundSlackText > does not escape inside already-formatted Slack tokens [0.03ms]121✓ formatOutboundSlackText > does not promote email-like or mid-word @ [0.02ms]122✓ formatOutboundSlackText > handles empty input [0.01ms]123✓ formatOutboundSlackText > real-world CI dump stays readable with mention + URL [0.02ms]124125test/search-command.test.ts:126✓ search referenced users > searchSlack returns shared referenced_users while preserving canonical ids [9.97ms]127✓ search referenced users > search command forwards --refresh-users and bypasses cached user lookups [8.25ms]128129test/parse-limit.test.ts:130✓ parseLimit > returns undefined when no value given [0.06ms]131✓ parseLimit > parses valid positive integers [0.04ms]132✓ parseLimit > rejects non-numeric strings [0.76ms]133✓ parseLimit > rejects zero [0.07ms]134✓ parseLimit > rejects negative numbers [0.03ms]135✓ parseLimit > rejects floats (uses integer part) [0.01ms]136✓ requireMessageTs > returns trimmed ts when present [0.04ms]137✓ requireMessageTs > throws when missing [0.04ms]138✓ requireMessageTs > throws when blank [0.04ms]139140test/desktop-auth-paths.test.ts:141✓ Windows Store Slack package detection > matches known Microsoft Store package identifiers [0.08ms]142✓ Windows Store Slack package detection > does not match unrelated packages [0.05ms]143144test/client.test.ts:145✓ SlackApiClient browser multipart transport > retries HTTP 429 responses using Retry-After [3.49ms]146147test/messages.test.ts:148✓ fetchThread > returns the thread root and replies in chronological order [0.57ms]149150test/message-compact.test.ts:151✓ toCompactMessage > includes file with path on successful download [0.65ms]152✓ toCompactMessage > includes file with error on failed download [0.13ms]153✓ toCompactMessage > excludes files with no downloadedPaths entry [0.05ms]154✓ toCompactMessage > mixes successful and failed downloads [0.09ms]155✓ toCompactMessage > failed download preserves file metadata for content-type filtering [0.10ms]156✓ passesContentTypeFilter with failed downloads > image message with failed download still passes image filter [0.10ms]157✓ passesContentTypeFilter with failed downloads > snippet message with failed download still passes snippet filter [0.06ms]158✓ passesContentTypeFilter with failed downloads > message without download entry has no files and passes text filter [0.04ms]159✓ toCompactMessage filename preservation > does not fall back to title when name is missing [0.06ms]160161test/targets.test.ts:162✓ parseMsgTarget > parses slack message URLs [0.83ms]163✓ parseMsgTarget > accepts #channel [0.10ms]164✓ parseMsgTarget > accepts bare channel names [0.05ms]165✓ parseMsgTarget > accepts channel IDs [0.03ms]166✓ parseMsgTarget > accepts user IDs as DM targets [0.03ms]167✓ parseMsgTarget > accepts W-prefixed user IDs as DM targets [0.02ms]168✓ parseMsgTarget > accepts user IDs with leading/trailing whitespace [0.05ms]169✓ parseMsgTarget > does not treat short U-prefixed strings as user IDs [0.02ms]170✓ parseMsgTarget > does not treat short W-prefixed strings as user IDs [0.03ms]171172test/safe-mode.test.ts:173✓ isSafeModeEnabled > enabled via CLI flag [0.07ms]174✓ isSafeModeEnabled > enabled for env value "1" [0.03ms]175✓ isSafeModeEnabled > enabled for env value "true"176✓ isSafeModeEnabled > enabled for env value "TRUE"177✓ isSafeModeEnabled > enabled for env value "yes"178✓ isSafeModeEnabled > enabled for env value "on"179✓ isSafeModeEnabled > enabled for env value " 1 "180✓ isSafeModeEnabled > disabled for env value "0" [0.02ms]181✓ isSafeModeEnabled > disabled for env value "false"182✓ isSafeModeEnabled > disabled for env value "off"183✓ isSafeModeEnabled > disabled for env value "no"184✓ isSafeModeEnabled > disabled for env value ""185✓ isSafeModeEnabled > disabled when env var is unset and flag is absent [0.02ms]186✓ safeModeBlockedError > names the blocked action [0.05ms]187✓ redirectSendToDraft > rejects unsupported send option {188 attach: [ "./report.md" ],189} [0.74ms]190✓ redirectSendToDraft > rejects unsupported send option {191 blocks: "/tmp/blocks.json",192} [0.03ms]193✓ redirectSendToDraft > rejects unsupported send option {194 schedule: "2030-01-01T00:00:00Z",195} [0.01ms]196✓ redirectSendToDraft > rejects unsupported send option {197 scheduleIn: "3h",198}199✓ redirectSendToDraft > rejects unsupported send option {200 replyBroadcast: true,201} [0.02ms]202✓ redirectSendToDraft > lists all unsupported flags at once [0.11ms]203✓ redirectSendToDraft > rejects in CI where no interactive editor is available [0.39ms]204⚠ Safe mode active: redirecting "message send" → draft editor. Nothing posts until a human sends it from the editor.205✓ redirectSendToDraft > opens a draft with the send text and thread context [0.64ms]206207test/later.test.ts:208✓ fetchLaterItems > returns counts only when countsOnly is true [0.53ms]209✓ fetchLaterItems > filters to message items only [0.71ms]210✓ fetchLaterItems > filters by state [0.24ms]211✓ fetchLaterItems > state 'all' returns all items [0.20ms]212✓ fetchLaterItems > respects limit [0.24ms]213✓ fetchLaterItems > hydrates message content [0.46ms]214✓ fetchLaterItems > resolves DM user display names [0.22ms]215✓ fetchLaterItems > truncates long message content [0.27ms]216✓ updateLaterMark > sends mark=completed via multipart [0.22ms]217✓ updateLaterMark > sends mark=archived via multipart [0.10ms]218✓ updateLaterMark > sends mark=uncompleted via multipart [0.07ms]219✓ updateLaterMark > sends mark=unarchived via multipart [0.08ms]220✓ saveLater > calls saved.add with correct params [0.14ms]221✓ removeLater > calls saved.delete with correct params [0.16ms]222✓ setLaterReminder > calls saved.update via multipart with date_due [0.16ms]223✓ parseReminderDuration > parses minutes [0.22ms]224✓ parseReminderDuration > parses hours [0.04ms]225✓ parseReminderDuration > parses fractional hours [0.04ms]226✓ parseReminderDuration > parses days [0.03ms]227✓ parseReminderDuration > parses 'tomorrow' as next day 9 AM [10.19ms]228✓ parseReminderDuration > parses day names [0.13ms]229✓ parseReminderDuration > passes through unix timestamps [0.04ms]230✓ parseReminderDuration > supports verbose unit names [0.05ms]231✓ parseReminderDuration > throws on invalid input [0.21ms]232233test/help-contracts.test.ts:234✓ agent-facing help contracts > message send documents non-obvious formatting and scheduling behavior [16.70ms]235✓ agent-facing help contracts > message compose identifies its CI send behavior [4.50ms]236✓ agent-facing help contracts > Slack-native drafts document DM targeting and inherited-broadcast controls [2.31ms]237✓ agent-facing help contracts > scheduled cancellation identifies its required channel [2.06ms]238✓ agent-facing help contracts > Later reminders identify named-day timezone behavior [1.10ms]239✓ agent-facing help contracts > canvas creation identifies source and credential constraints [2.63ms]240✓ agent-facing help contracts > canvas editing identifies operations, targeting, and content constraints [0.72ms]241✓ agent-facing help contracts > channel mark distinguishes URL and non-URL workspace handling [0.55ms]242✓ agent-facing help contracts > DM help states Slack's group size limit [0.54ms]243244test/reactions.test.ts:245✓ reactions compaction > includes reactions only when enabled [0.28ms]246✓ reactions compaction > preserves W-prefixed user IDs while compacting reactions [0.10ms]247✓ reactions compaction > adds forwarded thread metadata for shared messages with thread_ts [0.50ms]248249test/channel-command.test.ts:250✓ channel list command > defaults to users.conversations for current user [1.43ms]251✓ channel list command > with --user id uses users.conversations and sets user directly [0.52ms]252✓ channel list command > with --user handle resolves via users.list before users.conversations [1.43ms]253✓ channel list command > with --user unknown handle is a hard error [0.51ms]254✓ channel list command > with --all uses conversations.list [0.55ms]255✓ channel list command > forwards --limit and --cursor [0.43ms]256✓ channel list command > --all and --user is a hard error [0.39ms]257✓ channel list command > invalid --limit is a hard error [0.42ms]258✓ channel list command > help text documents single-page pagination model [0.24ms]259✓ channel mark command > URL target extracts workspace from URL [0.99ms]260✓ channel mark command > URL target rejects --workspace flag [0.44ms]261✓ channel mark command > channel target requires --ts [0.47ms]262✓ channel mark command > URL target allows --ts override [0.50ms]263✓ channel mark command > channel target with --ts calls conversations.mark [0.37ms]264265test/search-query.test.ts:266✓ W-prefixed user IDs in search > resolves a W-prefixed user ID to a from filter [0.30ms]267✓ W-prefixed user IDs in search > returns a W-prefixed user ID without scanning users [0.27ms]268269test/leveldb-reader.test.ts:270✓ leveldb-reader > readChromiumLevelDB > returns empty array for non-existent directory [0.48ms]271✓ leveldb-reader > readChromiumLevelDB > returns empty array for empty directory [0.27ms]272✓ leveldb-reader > readChromiumLevelDB > reads entries from SSTable files [2.79ms]273✓ leveldb-reader > readChromiumLevelDB > reads entries from log files [1.21ms]274✓ leveldb-reader > readChromiumLevelDB > reads from both SSTable and log files [0.73ms]275✓ leveldb-reader > readChromiumLevelDB > handles .sst file extension [0.51ms]276✓ leveldb-reader > findKeysContaining > filters entries by key substring [0.82ms]277✓ leveldb-reader > findKeysContaining > returns empty array when no matches [0.57ms]278✓ leveldb-reader > edge cases > handles invalid SSTable (wrong magic) [0.37ms]279✓ leveldb-reader > edge cases > handles empty SSTable file [0.43ms]280✓ leveldb-reader > edge cases > handles SSTable smaller than footer size [0.39ms]281282test/files.test.ts:283✓ downloadSlackFile > downloads file and writes to disk [1.56ms]284✓ downloadSlackFile > returns cached path when file already exists [0.83ms]285✓ downloadSlackFile > throws SlackDownloadError on HTTP 404 [0.51ms]286✓ downloadSlackFile > throws SlackDownloadError with httpStatus on HTTP error [0.43ms]287✓ downloadSlackFile > throws SlackDownloadError on HTML auth page [0.43ms]288✓ downloadSlackFile > throws SlackDownloadError on network error [0.64ms]289✓ downloadSlackFile > throws SlackDownloadError when reading html body fails [0.53ms]290✓ downloadSlackFile > throws SlackDownloadError when reading binary body fails [0.49ms]291✓ tryDownloadSlackFile > returns ok result on success [0.80ms]292✓ tryDownloadSlackFile > returns failure result on HTTP 404 [0.47ms]293✓ tryDownloadSlackFile > returns failure result on network error [0.43ms]294✓ tryDownloadSlackFile > propagates disk/write errors [0.51ms]295Warning: skipping file F1: Downloaded auth/login page instead of canvas content (token may be expired)296✓ downloadMessageFiles > records canvas auth failures as structured errors [2.24ms]297Warning: skipping file F2: Failed to download file (404)298✓ downloadMessageFiles > records non-canvas download failures with a local error path [1.10ms]299300test/emoji.test.ts:301✓ normalizeSlackReactionName > accepts :shortcode: [0.15ms]302✓ normalizeSlackReactionName > accepts raw names [0.05ms]303✓ normalizeSlackReactionName > accepts unicode emoji [0.23ms]304305test/channel-admin.test.ts:306✓ parseInviteUsersCsv > splits comma-separated values, trims whitespace, and deduplicates [0.12ms]307✓ parseInviteUsersCsv > returns empty array when input has no values [0.04ms]308✓ splitEmailsFromInviteTargets > separates email targets from non-email targets [0.13ms]309✓ splitEmailsFromInviteTargets > deduplicates emails [0.03ms]310311test/search-files.test.ts:312Warning: skipping file F1: Failed to download file (404)313✓ searchFilesViaSearchApi > skips failed downloads and keeps later successful matches [1.76ms]314Warning: skipping file F1: Failed to download file (404)315✓ searchFilesInChannelsFallback > continues after a failed download in files.list results [1.96ms]316✓ SlackApiClient browser API guards > fails fast on rate-limit retry windows by default [0.78ms]317✓ SlackApiClient browser API guards > surfaces request timeouts with the Slack method name [0.22ms]318319test/channels.test.ts:320✓ conversations list helpers > listUserConversations calls users.conversations with defaults [0.28ms]321✓ conversations list helpers > listUserConversations forwards user/limit/cursor [0.10ms]322✓ conversations list helpers > listAllConversations calls conversations.list with defaults [0.13ms]323✓ conversations list helpers > listAllConversations forwards limit/cursor [0.09ms]324✓ conversations list helpers > listUserConversations passes through small limits [0.08ms]325✓ conversations list helpers > listUserConversations clamps high limits to 1000 [0.11ms]326✓ conversations list helpers > normalizeConversationsPage extracts channels and next cursor [0.05ms]327✓ conversations list helpers > normalizeConversationsPage handles missing response_metadata [0.02ms]328✓ conversations list helpers > normalizeConversationsPage handles empty next_cursor [0.03ms]329✓ conversations list helpers > listConversationsViaCounts enumerates channels/mpims/ims and enriches via conversations.info [0.54ms]330✓ conversations list helpers > listConversationsViaCounts keeps the id when conversations.info fails [0.16ms]331✓ conversations list helpers > listConversationsViaCounts slices to limit and skips entries without an id [0.24ms]332333test/message-send.test.ts:334✓ sendMessage > posts a normal message when no attachments are passed [1.43ms]335✓ sendMessage > --no-unfurl disables link and media previews for immediate sends [0.23ms]336✓ sendMessage > opens and sends to a DM for a W-prefixed user target [0.35ms]337✓ sendMessage > returns a permalink when the workspace was resolved implicitly [0.32ms]338✓ sendMessage > threaded reply returns thread_ts distinct from ts [0.24ms]339✓ sendMessage > --reply-broadcast with --thread-ts sends reply_broadcast: true [0.18ms]340✓ sendMessage > --reply-broadcast omits the field from chat.postMessage when flag is absent [0.15ms]341✓ sendMessage > --reply-broadcast without --thread-ts throws [0.21ms]342✓ sendMessage > --reply-broadcast on a URL target broadcasts using the message's derived thread_ts [0.80ms]343✓ sendMessage > --reply-broadcast on a DM target throws (broadcasting is not meaningful for DMs) [0.22ms]344✓ sendMessage > --reply-broadcast works alongside --blocks payload [0.88ms]345✓ sendMessage > uploads attachment and uses message text as initial comment [1.96ms]346✓ sendMessage > --no-unfurl cannot be combined with file attachments [0.23ms]347✓ sendMessage > sends initial comment only for the first attachment [1.21ms]348✓ sendMessage > uploads attachment without text when text is empty [0.88ms]349✓ sendMessage > --blocks: reads Block Kit JSON from file and passes through unchanged [0.65ms]350✓ sendMessage > --blocks: errors when JSON is not an array [0.63ms]351✓ sendMessage > --blocks: errors on malformed JSON [1.01ms]352✓ sendMessage > --blocks: overrides markdown-to-rich-text conversion when text is also provided [0.69ms]353✓ sendMessage > sends Slack manual links in lists as rich-text link blocks [0.30ms]354✓ sendMessage > --blocks: errors when an array element is not an object [0.62ms]355✓ sendMessage > --schedule sends through chat.scheduleMessage and returns scheduled metadata [1.18ms]356✓ sendMessage > --schedule-in computes a relative post_at [0.52ms]357✓ sendMessage > --no-unfurl disables link and media previews for scheduled sends [0.29ms]358✓ sendMessage > --schedule composes with blocks, thread replies, and reply broadcast [1.24ms]359✓ sendMessage > --schedule cannot be combined with file attachments [0.28ms]360✓ composeMessage > --no-unfurl disables link and media previews when CI sends immediately [0.79ms]361✓ composeMessage > keeps Slack's default preview behavior for a standard CI send [0.23ms]362✓ composeMessage > --no-unfurl disables previews for a URL target when CI sends immediately [0.66ms]363✓ scheduled message management > lists scheduled messages and forwards channel filters [0.85ms]364✓ scheduled message management > cancels scheduled messages with the required channel id [0.36ms]365✓ scheduled message time parsing > parses absolute ISO timestamps with explicit timezones [0.15ms]366✓ scheduled message time parsing > parses named relative times like monday 9am [0.40ms]367✓ scheduled message time parsing > rejects schedule times beyond Slack's 120 day limit [0.11ms]368✓ editMessage > edits a normal text message without blocks [0.58ms]369✓ editMessage > edits literal angle bracket text without blocks [0.18ms]370✓ editMessage > edits a message URL with a link label without blocks [0.20ms]371✓ editMessage > edits an inline mailto link without escaping it [0.17ms]372✓ editMessage > edits an inline usergroup mention without escaping it [0.22ms]373✓ editMessage > edits a channel target with inline formatting without blocks [0.16ms]374✓ editMessage > edits a channel target with rich text blocks when text contains a list [0.23ms]375✓ editMessage > edits a normal message without blocks when no --blocks file is passed [0.17ms]376✓ editMessage > edits a message URL with Block Kit JSON from file [0.76ms]377✓ editMessage > edits a channel target with --ts and Block Kit JSON from file [0.65ms]378379test/workspace-selector.test.ts:380✓ resolveWorkspaceSelector > matches exact URL [0.13ms]381✓ resolveWorkspaceSelector > matches unique substring by host/team [0.18ms]382✓ resolveWorkspaceSelector > matches unique substring by workspace name [0.05ms]383✓ resolveWorkspaceSelector > returns ambiguity when selector matches multiple workspaces [0.08ms]384✓ resolveWorkspaceSelector > returns no match when selector does not match [0.08ms]385386test/drafts.test.ts:387✓ padDraftTs > pads short fractional parts to 7 digits [0.05ms]388✓ padDraftTs > leaves 7-digit fractional parts unchanged [0.02ms]389✓ padDraftTs > leaves timestamps without a fractional part unchanged [0.02ms]390✓ draftTextToBlocks > wraps plain text in a rich_text section [0.08ms]391✓ draftTextToBlocks > converts bullet lists to rich_text lists [0.06ms]392✓ parseDraftRecord > parses a raw draft into a compact shape [0.63ms]393✓ parseDraftRecord > returns null for records without an id [0.03ms]394✓ listDrafts > requests active drafts and parses the result [0.31ms]395✓ listDrafts > omits is_active when activeOnly is false [0.11ms]396✓ createDraft > sends blocks, destination, and composer flag [1.47ms]397✓ createDraft > omits thread fields for channel drafts [0.13ms]398✓ createDraft > includes file_ids on the wire when fileIds is supplied [0.18ms]399✓ updateDraft > sends draft_id and a padded last-updated ts [0.29ms]400✓ deleteDraft > deletes with an explicit last-updated ts [0.19ms]401✓ deleteDraft > fetches the last-updated ts from drafts.list when omitted [0.28ms]402✓ deleteDraft > throws when the draft does not exist [0.11ms]403✓ findDraft > lists all drafts (including inactive) and finds by id [0.11ms]404✓ findDraft > prefers a matching record that has last_updated_ts over a malformed duplicate [0.16ms]405406test/message-reaction-filters.test.ts:407✓ parseReactionFilters > normalizes shortcodes, names, and unicode [0.16ms]408✓ parseReactionFilters > returns empty array when unset [0.02ms]409✓ passesReactionNameFilters > matches when required reaction is present [0.16ms]410✓ passesReactionNameFilters > does not match when required reaction is missing [0.05ms]411✓ passesReactionNameFilters > does not match when excluded reaction is present [0.04ms]412✓ passesReactionNameFilters > matches when excluded reaction is absent [0.02ms]413✓ passesReactionNameFilters > supports with + without together [0.03ms]414✓ requireOldestWhenReactionFiltersUsed > returns oldest when no reaction filters are used [0.05ms]415✓ requireOldestWhenReactionFiltersUsed > returns trimmed oldest when reaction filters are used [0.02ms]416✓ requireOldestWhenReactionFiltersUsed > throws when reaction filters are used without oldest [0.04ms]417418test/canvas-create.test.ts:419✓ createCanvasFromMarkdown > sends Markdown content, title, and channel to canvases.create [0.38ms]420✓ createCanvasFromMarkdown > rejects empty Markdown before calling Slack [0.11ms]421✓ createCanvasFromMarkdown > rejects a success response without a canvas id [0.09ms]422✓ createCanvasFromMarkdown > uses Slack's Markdown canvas method with imported browser credentials [0.11ms]423✓ createCanvasFromMarkdown > rejects channel tabs with browser credentials before calling Slack [0.09ms]424✓ editCanvas > sends the documented replace change [0.43ms]425✓ editCanvas > sends the documented replace section change [0.03ms]426✓ editCanvas > sends the documented insert before change [0.02ms]427✓ editCanvas > sends the documented insert after change [0.01ms]428✓ editCanvas > sends the documented insert at start change [0.01ms]429✓ editCanvas > sends the documented insert at end change [0.01ms]430✓ editCanvas > sends the documented delete section change [0.02ms]431✓ editCanvas > sends the documented rename change [0.02ms]432✓ editCanvas > rejects invalid combinations before calling Slack [0.34ms]433✓ editCanvas > rejects empty Markdown and canvas ids before calling Slack [0.13ms]434✓ editCanvas > rejects Markdown over Slack's per-change limit before calling Slack [7.34ms]435✓ readCanvasMarkdownInput > reads a Markdown file without changing its contents [1.39ms]436✓ readCanvasMarkdownInput > accepts a Markdown blob [0.08ms]437✓ readCanvasMarkdownInput > requires exactly one source [0.10ms]438✓ readCanvasMarkdownInput > rejects an empty source [0.08ms]439✓ canvas create command > creates from an inline blob in the selected workspace [1.34ms]440✓ canvas create command > creates from a file and resolves a channel tab [1.29ms]441✓ canvas create command > rejects browser-auth channel tabs before resolving the channel [0.58ms]442✓ canvas create command > rejects missing or conflicting sources before authenticating [0.47ms]443✓ canvas edit command > replaces a canvas from a Markdown URL target [1.27ms]444✓ canvas edit command > inserts content from a file and passes a section id [1.17ms]445✓ canvas edit command > renames without a Markdown source [0.42ms]446✓ canvas edit command > rejects delete content and malformed inputs before authenticating [0.66ms]447✓ canvas edit command > rejects browser credentials before calling canvases.edit [0.41ms]448449test/mrkdwn.test.ts:450✓ slackMrkdwnToMarkdown > converts Slack-style links [0.08ms]451✓ slackMrkdwnToMarkdown > converts user and channel mentions [0.11ms]452✓ slackMrkdwnToMarkdown > converts :emoji: shortcodes to unicode [0.19ms]453454test/render.test.ts:455✓ renderSlackMessageContent > prefers blocks [0.11ms]456✓ renderSlackMessageContent > preserves usergroup and broadcast elements from rich text [0.24ms]457✓ renderSlackMessageContent > omits malformed usergroup and broadcast elements [0.10ms]458✓ renderSlackMessageContent > falls back to attachments when text is empty [0.11ms]459✓ renderSlackMessageContent > includes section fields and button URLs [0.08ms]460✓ renderSlackMessageContent > includes attachment fields [0.10ms]461✓ renderSlackMessageContent > renders forwarded message with author and source link [0.23ms]462✓ renderSlackMessageContent > renders forwarded message with author name only [0.08ms]463✓ renderSlackMessageContent > renders forwarded message with no author [0.05ms]464✓ renderSlackMessageContent > includes forwarded file links in quoted forwarded body [0.16ms]465✓ renderSlackMessageContent > renders nested forwarded attachments similarly to normal attachments [0.12ms]466✓ renderSlackMessageContent > deduplicates repeated forwarded body content [0.07ms]467✓ renderSlackMessageContent > handles cyclic forwarded attachments without infinite recursion [0.06ms]468✓ renderSlackMessageContent > does not treat link unfurl as forwarded message [0.07ms]469✓ renderSlackMessageContent > combines blocks and non-shared attachments [0.12ms]470471test/user-id.test.ts:472✓ isUserId > accepts U-prefixed and W-prefixed Slack user IDs [0.03ms]473✓ isUserId > preserves the existing length and character restrictions [0.03ms]474475test/url.test.ts:476✓ parseSlackMessageUrl > parses archives URL with p<digits> [0.05ms]477✓ parseSlackMessageUrl > captures thread_ts from query when present [0.04ms]478✓ buildSlackMessageUrl > builds a permalink for a root message [0.04ms]479✓ buildSlackMessageUrl > includes thread metadata for replies [0.03ms]480481test/upload.test.ts:482✓ uploadFilesForDraft > never shifts ids between files when the completion response omits one [1.66ms]483✓ uploadFilesForDraft > falls back to staged ids when the completion response length disagrees [1.20ms]484✓ uploadFilesForDraft > stages every file, then completes them in one call with no channel binding [1.46ms]485✓ uploadFilesForDraft > a later staging failure leaves nothing completed (no orphaned files) [1.09ms]486✓ uploadFilesForDraft > throws and completes nothing when a path does not exist [0.47ms]487✓ uploadFilesForDraft > throws and completes nothing when a byte POST fails [0.70ms]488✓ uploadFilesForDraft > throws when files.completeUploadExternal fails [1.03ms]489✓ uploadFilesForDraft > throws when the path is a directory [1.04ms]490✓ uploadLocalFileToSlack (shared-helper regression) > still binds the completed file to a channel with an initial comment [1.19ms]491492test/message-draft-actions.test.ts:493✓ createDraftAction > creates a draft addressed to a channel id [1.12ms]494✓ createDraftAction > rejects --broadcast without a thread [0.32ms]495✓ createDraftAction > rejects --broadcast for a DM (user) target [0.19ms]496✓ createDraftAction > rejects --broadcast for a D... channel-id (DM) target [0.13ms]497✓ createDraftAction > rejects --broadcast on a channel name with no thread before any network call [0.13ms]498✓ createDraftAction > rejects --broadcast on a DM message URL before fetching the message [0.12ms]499✓ createDraftAction > uploads --attach files and wires their file ids into the draft [1.38ms]500✓ createDraftAction > aborts before any upload or drafts.create when an --attach path is missing [0.43ms]501✓ updateDraftAction > text-only edit preserves destination, thread, broadcast, and file ids [0.76ms]502✓ updateDraftAction > re-addressing a broadcast thread draft to a non-thread channel clears broadcast instead of erroring [0.21ms]503✓ updateDraftAction > explicit --broadcast on a non-thread draft still errors [0.19ms]504✓ updateDraftAction > refuses to update a scheduled draft rather than clearing its schedule [0.22ms]505✓ updateDraftAction > refuses a text-only update on a multi-destination draft, but allows re-addressing [0.35ms]506✓ updateDraftAction > re-addressing to a different thread does not inherit the old broadcast flag [0.19ms]507✓ updateDraftAction > --no-broadcast clears an inherited broadcast flag on a same-thread edit [0.15ms]508✓ updateDraftAction > rejects --broadcast when re-addressing to a DM (user) target [0.13ms]509✓ updateDraftAction > changing only --thread-ts (no --channel) does not inherit the old broadcast flag [0.18ms]510✓ updateDraftAction > rejects --broadcast on an existing DM-destination draft [0.18ms]511✓ updateDraftAction > rejects --broadcast when re-addressing to a channel name with no thread, before resolving it [0.15ms]512✓ updateDraftAction > merges --attach file ids into the draft's existing file_ids [0.98ms]513✓ updateDraftAction > merges --attach while de-duplicating ids already on the draft [1.07ms]514✓ deleteDraftAction > auto-fetches and pads last_updated_ts when omitted [0.46ms]515✓ listDraftsAction > hydrates channel display names [0.72ms]516{517 "ok": true,518 "draft": {519 "id": "Dr123",520 "destinations": [521 {522 "channel_id": "C11111111",523 "thread_ts": "1700000000.100000"524 }525 ]526 }527}528✓ message draft update (commander --broadcast wiring) > omitting broadcast flags does not force broadcast on (no Commander default-true gotcha) [0.97ms]529{530 "ok": true,531 "draft": {532 "id": "Dr123",533 "destinations": [534 {535 "channel_id": "C11111111",536 "thread_ts": "1700000000.100000",537 "broadcast": true538 }539 ]540 }541}542✓ message draft update (commander --broadcast wiring) > --broadcast sets broadcast true [0.50ms]543{544 "ok": true,545 "draft": {546 "id": "Dr123",547 "destinations": [548 {549 "channel_id": "C11111111",550 "thread_ts": "1700000000.100000"551 }552 ]553 }554}555✓ message draft update (commander --broadcast wiring) > --no-broadcast clears an inherited broadcast flag [0.45ms]556{557 "ok": true,558 "draft": {559 "id": "DrNew",560 "destinations": [561 {562 "channel_id": "C11111111"563 }564 ]565 }566}567✓ message draft create (commander --attach wiring) > collects repeatable --attach flags into an array [2.27ms]568✓ message draft unknown subcommand > old `message draft <target>` usage points to `message compose` [0.74ms]569✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 create: a drafts.create auth failure retries work WITHOUT re-uploading files [1.17ms]570✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 update: a drafts.update auth failure retries work WITHOUT re-uploading files [1.09ms]571✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 create: a non-auth drafts.create failure deletes the uploaded file [1.02ms]572✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 update: a stale drafts.update failure deletes the newly uploaded file only [1.00ms]573✓ draft attachments: orphan prevention across auth-retry and failed drafts > a failed draft with no attachments does not attempt files.delete [0.31ms]574575test/compact-json.test.ts:576✓ pruneEmpty > drops null/undefined/empty containers [0.09ms]577578 399 pass579 0 fail580 817 expect() calls581Ran 399 tests across 38 files. [583.00ms]fixupPhase
582shrinking RPATHs of ELF executables and libraries in /nix/store/1pbc9dn0c2dv8zgb5f670716kfdwiwrf-agent-slack-0.10.2583checking for references to /build/ in /nix/store/1pbc9dn0c2dv8zgb5f670716kfdwiwrf-agent-slack-0.10.2...584patching script interpreter paths in /nix/store/1pbc9dn0c2dv8zgb5f670716kfdwiwrf-agent-slack-0.10.2installCheckPhase
585Executing versionCheckPhase586Successfully managed to find version 0.10.2 in the output of the command /nix/store/1pbc9dn0c2dv8zgb5f670716kfdwiwrf-agent-slack-0.10.2/bin/agent-slack --version5870.10.2588Finished versionCheckPhase589no Makefile or custom installCheckPhase, doing nothing