agent-slack-0.10.2
checks.x86_64-linux.pkgs-agent-slack
· build #6224
· raw
1Using versionCheckHook
unpackPhase
2unpacking source archive /nix/store/cgqwcm1zgrhk5gmlmpjpi0rc8f2zg5kh-source3source root is sourcebunSetInstallCacheDirPhase
4Using bun root: "/build/source"bunPatchPhase
5patching script interpreter paths in .6./scripts/install-skill.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/bash"7./scripts/release.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/sh"8./scripts/update-nix-sources.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/bash"configurePhase
9no configure script, doing nothingbunNodeModulesInstallPhase
10/build/source /build/source11bun install flags: --linker=isolated --ignore-scripts12bun install v1.4.2 (744846f84)1314+ @types/node@22.19.815+ @types/semver@7.7.116+ @types/turndown@5.0.617+ bun-types@1.3.918+ oxfmt@0.31.019+ oxlint@1.49.020+ semver@7.7.421+ simple-git-hooks@2.13.122+ typescript@5.9.323+ @slack/web-api@7.13.024+ commander@14.0.325+ hysnappy@1.1.026+ node-emoji@2.2.027+ turndown@7.2.228+ turndown-plugin-gfm@1.0.229+ zod@4.3.6303168 packages installed [112.00ms]32/build/sourcebuildPhase
33Bundled 360 modules in 29ms3435 agent-slack.js 1.98 MB (entry point)36checkPhase
37bun test v1.4.2 (744846f84)3839test/targets.test.ts:40✓ parseMsgTarget > parses slack message URLs [2.55ms]41✓ parseMsgTarget > accepts #channel [0.82ms]42✓ parseMsgTarget > accepts bare channel names [0.09ms]43✓ parseMsgTarget > accepts channel IDs [0.04ms]44✓ parseMsgTarget > accepts user IDs as DM targets [0.02ms]45✓ parseMsgTarget > accepts W-prefixed user IDs as DM targets [0.02ms]46✓ parseMsgTarget > accepts user IDs with leading/trailing whitespace [0.02ms]47✓ parseMsgTarget > does not treat short U-prefixed strings as user IDs [0.02ms]48✓ parseMsgTarget > does not treat short W-prefixed strings as user IDs [0.01ms]4950test/workspace-selector.test.ts:51✓ resolveWorkspaceSelector > matches exact URL [0.41ms]52✓ resolveWorkspaceSelector > matches unique substring by host/team [0.71ms]53✓ resolveWorkspaceSelector > matches unique substring by workspace name [0.06ms]54✓ resolveWorkspaceSelector > returns ambiguity when selector matches multiple workspaces [0.85ms]55✓ resolveWorkspaceSelector > returns no match when selector does not match [0.17ms]5657test/emoji.test.ts:58✓ normalizeSlackReactionName > accepts :shortcode: [0.18ms]59✓ normalizeSlackReactionName > accepts raw names [0.04ms]60✓ normalizeSlackReactionName > accepts unicode emoji [0.45ms]6162test/user-id.test.ts:63✓ isUserId > accepts U-prefixed and W-prefixed Slack user IDs [0.02ms]64✓ isUserId > preserves the existing length and character restrictions [0.03ms]6566test/parse-limit.test.ts:67✓ parseLimit > returns undefined when no value given [0.06ms]68✓ parseLimit > parses valid positive integers [0.07ms]69✓ parseLimit > rejects non-numeric strings [0.25ms]70✓ parseLimit > rejects zero [0.02ms]71✓ parseLimit > rejects negative numbers [0.01ms]72✓ parseLimit > rejects floats (uses integer part)73✓ requireMessageTs > returns trimmed ts when present [0.03ms]74✓ requireMessageTs > throws when missing [0.01ms]75✓ requireMessageTs > throws when blank [0.01ms]7677test/compact-json.test.ts:78✓ pruneEmpty > drops null/undefined/empty containers [0.23ms]7980test/format-outbound.test.ts:81✓ formatOutboundSlackText > promotes bare user IDs to Slack mention tokens [0.99ms]82✓ formatOutboundSlackText > leaves already-formatted mention tokens alone [0.07ms]83✓ formatOutboundSlackText > leaves already-formatted usergroup mention tokens alone [0.02ms]84✓ formatOutboundSlackText > promotes broadcast mentions [0.02ms]85✓ formatOutboundSlackText > escapes bare < > & in literal text [0.01ms]86✓ formatOutboundSlackText > does not escape inside already-formatted Slack tokens [0.02ms]87✓ formatOutboundSlackText > does not promote email-like or mid-word @88✓ formatOutboundSlackText > handles empty input89✓ formatOutboundSlackText > real-world CI dump stays readable with mention + URL [0.02ms]9091test/html-to-md.test.ts:92✓ htmlToMarkdown > converts basic HTML to markdown [5.64ms]9394test/later.test.ts:95✓ fetchLaterItems > returns counts only when countsOnly is true [0.50ms]96✓ fetchLaterItems > filters to message items only [1.34ms]97✓ fetchLaterItems > filters by state [0.23ms]98✓ fetchLaterItems > state 'all' returns all items [0.12ms]99✓ fetchLaterItems > respects limit [0.10ms]100✓ fetchLaterItems > hydrates message content [0.16ms]101✓ fetchLaterItems > resolves DM user display names [0.10ms]102✓ fetchLaterItems > truncates long message content [0.14ms]103✓ updateLaterMark > sends mark=completed via multipart [0.19ms]104✓ updateLaterMark > sends mark=archived via multipart [0.06ms]105✓ updateLaterMark > sends mark=uncompleted via multipart [0.06ms]106✓ updateLaterMark > sends mark=unarchived via multipart [0.03ms]107✓ saveLater > calls saved.add with correct params [0.09ms]108✓ removeLater > calls saved.delete with correct params [0.07ms]109✓ setLaterReminder > calls saved.update via multipart with date_due [0.09ms]110✓ parseReminderDuration > parses minutes [0.20ms]111✓ parseReminderDuration > parses hours [0.02ms]112✓ parseReminderDuration > parses fractional hours [0.02ms]113✓ parseReminderDuration > parses days [0.01ms]114✓ parseReminderDuration > parses 'tomorrow' as next day 9 AM [6.32ms]115✓ parseReminderDuration > parses day names [0.08ms]116✓ parseReminderDuration > passes through unix timestamps [0.03ms]117✓ parseReminderDuration > supports verbose unit names [0.04ms]118✓ parseReminderDuration > throws on invalid input [0.07ms]119120test/user-cache.test.ts:121✓ user-cache helpers > collectReferencedUserIds excludes reaction users by default [0.44ms]122✓ user-cache helpers > collectReferencedUserIds includes reaction users when enabled [0.05ms]123✓ user-cache helpers > toReferencedUsers returns only resolved users keyed by id [0.11ms]124125test/channels.test.ts:126✓ conversations list helpers > listUserConversations calls users.conversations with defaults [0.27ms]127✓ conversations list helpers > listUserConversations forwards user/limit/cursor [0.07ms]128✓ conversations list helpers > listAllConversations calls conversations.list with defaults [0.11ms]129✓ conversations list helpers > listAllConversations forwards limit/cursor [0.05ms]130✓ conversations list helpers > listUserConversations passes through small limits [0.04ms]131✓ conversations list helpers > listUserConversations clamps high limits to 1000 [0.04ms]132✓ conversations list helpers > normalizeConversationsPage extracts channels and next cursor [0.04ms]133✓ conversations list helpers > normalizeConversationsPage handles missing response_metadata [0.01ms]134✓ conversations list helpers > normalizeConversationsPage handles empty next_cursor [0.03ms]135✓ conversations list helpers > listConversationsViaCounts enumerates channels/mpims/ims and enriches via conversations.info [0.37ms]136✓ conversations list helpers > listConversationsViaCounts keeps the id when conversations.info fails [0.15ms]137✓ conversations list helpers > listConversationsViaCounts slices to limit and skips entries without an id [0.12ms]138139test/rich-text.test.ts:140✓ parseInlineElements > plain text returns single text element [0.63ms]141✓ parseInlineElements > *bold* is parsed with bold style [0.05ms]142✓ parseInlineElements > _italic_ is parsed with italic style [0.03ms]143✓ parseInlineElements > ~strike~ is parsed with strike style [0.02ms]144✓ parseInlineElements > `code` is parsed with code style [0.03ms]145✓ parseInlineElements > :emoji: shortcode is parsed as an emoji element [0.02ms]146✓ parseInlineElements > emoji names with underscores are not parsed as italic text [0.02ms]147✓ parseInlineElements > time-like colon text is not parsed as an emoji element [0.01ms]148✓ parseInlineElements > <url|label> is parsed as link with text [0.08ms]149✓ parseInlineElements > <url> is parsed as link without text [0.02ms]150✓ parseInlineElements > <mailto|label> is parsed as link with text [0.02ms]151✓ parseInlineElements > non-url angle bracket text is preserved as text [0.02ms]152✓ parseInlineElements > non-url labeled angle bracket text is preserved as text [0.02ms]153✓ parseInlineElements > channel mention tokens are parsed as channel elements [0.02ms]154✓ parseInlineElements > bare channel mention tokens are parsed as channel elements [0.02ms]155✓ parseInlineElements > usergroup mention tokens are parsed as usergroup elements [0.02ms]156✓ textToRichTextBlocks > plain text returns null [0.31ms]157✓ textToRichTextBlocks > inline-only formatting returns null by default [0.03ms]158✓ textToRichTextBlocks > non-url angle bracket text does not trigger rich text blocks [0.04ms]159✓ textToRichTextBlocks > mixed non-url angle bracket text and formatting preserves brackets [0.05ms]160✓ textToRichTextBlocks > inline-only formatting can produce rich text blocks [0.05ms]161✓ textToRichTextBlocks > mailto links can produce rich text blocks when inline formatting is included [0.05ms]162✓ textToRichTextBlocks > channel mentions can produce rich text blocks when inline formatting is included [0.03ms]163✓ textToRichTextBlocks > bullet list with - prefix [0.17ms]164✓ textToRichTextBlocks > bullet list with bullet character [0.26ms]165✓ textToRichTextBlocks > sub-bullets with indentation [0.08ms]166✓ textToRichTextBlocks > white bullet sub-bullets under bullet [0.05ms]167✓ textToRichTextBlocks > mixed text and bullets [0.05ms]168✓ textToRichTextBlocks > numbered list [0.06ms]169✓ textToRichTextBlocks > bold text in list items is parsed [0.06ms]170✓ textToRichTextBlocks > emoji and channel references in list items are parsed [0.14ms]171✓ textToRichTextBlocks > Slack manual links and CommonMark links remain distinct in list items [0.05ms]172✓ textToRichTextBlocks > code block is preserved [0.04ms]173✓ textToRichTextBlocks > blockquote is preserved [0.02ms]174175test/search-command.test.ts:176✓ search referenced users > searchSlack returns shared referenced_users while preserving canonical ids [6.58ms]177✓ search referenced users > search command forwards --refresh-users and bypasses cached user lookups [5.18ms]178179test/url.test.ts:180✓ parseSlackMessageUrl > parses archives URL with p<digits> [0.05ms]181✓ parseSlackMessageUrl > captures thread_ts from query when present [0.07ms]182✓ buildSlackMessageUrl > builds a permalink for a root message [0.08ms]183✓ buildSlackMessageUrl > includes thread metadata for replies [0.13ms]184185test/reactions.test.ts:186✓ reactions compaction > includes reactions only when enabled [0.19ms]187✓ reactions compaction > preserves W-prefixed user IDs while compacting reactions [0.05ms]188✓ reactions compaction > adds forwarded thread metadata for shared messages with thread_ts [0.22ms]189190test/client.test.ts:191✓ SlackApiClient browser multipart transport > retries HTTP 429 responses using Retry-After [1.58ms]192193test/leveldb-reader.test.ts:194✓ leveldb-reader > readChromiumLevelDB > returns empty array for non-existent directory [0.38ms]195✓ leveldb-reader > readChromiumLevelDB > returns empty array for empty directory [0.23ms]196✓ leveldb-reader > readChromiumLevelDB > reads entries from SSTable files [1.36ms]197✓ leveldb-reader > readChromiumLevelDB > reads entries from log files [0.75ms]198✓ leveldb-reader > readChromiumLevelDB > reads from both SSTable and log files [0.51ms]199✓ leveldb-reader > readChromiumLevelDB > handles .sst file extension [0.34ms]200✓ leveldb-reader > findKeysContaining > filters entries by key substring [0.46ms]201✓ leveldb-reader > findKeysContaining > returns empty array when no matches [0.33ms]202✓ leveldb-reader > edge cases > handles invalid SSTable (wrong magic) [0.24ms]203✓ leveldb-reader > edge cases > handles empty SSTable file [0.28ms]204✓ leveldb-reader > edge cases > handles SSTable smaller than footer size [0.42ms]205206test/channel-command.test.ts:207✓ channel list command > defaults to users.conversations for current user [1.28ms]208✓ channel list command > with --user id uses users.conversations and sets user directly [0.60ms]209✓ channel list command > with --user handle resolves via users.list before users.conversations [0.53ms]210✓ channel list command > with --user unknown handle is a hard error [0.39ms]211✓ channel list command > with --all uses conversations.list [0.41ms]212✓ channel list command > forwards --limit and --cursor [0.44ms]213✓ channel list command > --all and --user is a hard error [0.32ms]214✓ channel list command > invalid --limit is a hard error [0.27ms]215✓ channel list command > help text documents single-page pagination model [0.18ms]216✓ channel mark command > URL target extracts workspace from URL [0.65ms]217✓ channel mark command > URL target rejects --workspace flag [0.55ms]218✓ channel mark command > channel target requires --ts [0.32ms]219✓ channel mark command > URL target allows --ts override [0.30ms]220✓ channel mark command > channel target with --ts calls conversations.mark [0.26ms]221222test/message-compact.test.ts:223✓ toCompactMessage > includes file with path on successful download [0.41ms]224✓ toCompactMessage > includes file with error on failed download [0.07ms]225✓ toCompactMessage > excludes files with no downloadedPaths entry [0.03ms]226✓ toCompactMessage > mixes successful and failed downloads [0.05ms]227✓ toCompactMessage > failed download preserves file metadata for content-type filtering [0.03ms]228✓ passesContentTypeFilter with failed downloads > image message with failed download still passes image filter [0.06ms]229✓ passesContentTypeFilter with failed downloads > snippet message with failed download still passes snippet filter [0.05ms]230✓ passesContentTypeFilter with failed downloads > message without download entry has no files and passes text filter [0.03ms]231✓ toCompactMessage filename preservation > does not fall back to title when name is missing [0.03ms]232233test/messages.test.ts:234✓ fetchThread > returns the thread root and replies in chronological order [0.48ms]235236test/desktop-auth-paths.test.ts:237✓ Windows Store Slack package detection > matches known Microsoft Store package identifiers [0.05ms]238✓ Windows Store Slack package detection > does not match unrelated packages [0.02ms]239240test/mrkdwn.test.ts:241✓ slackMrkdwnToMarkdown > converts Slack-style links [0.07ms]242✓ slackMrkdwnToMarkdown > converts user and channel mentions [0.04ms]243✓ slackMrkdwnToMarkdown > converts :emoji: shortcodes to unicode [0.17ms]244245test/safe-mode.test.ts:246✓ isSafeModeEnabled > enabled via CLI flag [0.05ms]247✓ isSafeModeEnabled > enabled for env value "1" [0.02ms]248✓ isSafeModeEnabled > enabled for env value "true"249✓ isSafeModeEnabled > enabled for env value "TRUE"250✓ isSafeModeEnabled > enabled for env value "yes"251✓ isSafeModeEnabled > enabled for env value "on"252✓ isSafeModeEnabled > enabled for env value " 1 "253✓ isSafeModeEnabled > disabled for env value "0"254✓ isSafeModeEnabled > disabled for env value "false"255✓ isSafeModeEnabled > disabled for env value "off"256✓ isSafeModeEnabled > disabled for env value "no"257✓ isSafeModeEnabled > disabled for env value ""258✓ isSafeModeEnabled > disabled when env var is unset and flag is absent [0.02ms]259✓ safeModeBlockedError > names the blocked action [0.03ms]260✓ redirectSendToDraft > rejects unsupported send option {261 attach: [ "./report.md" ],262} [0.21ms]263✓ redirectSendToDraft > rejects unsupported send option {264 blocks: "/tmp/blocks.json",265} [0.02ms]266✓ redirectSendToDraft > rejects unsupported send option {267 schedule: "2030-01-01T00:00:00Z",268}269✓ redirectSendToDraft > rejects unsupported send option {270 scheduleIn: "3h",271}272✓ redirectSendToDraft > rejects unsupported send option {273 replyBroadcast: true,274}275✓ redirectSendToDraft > lists all unsupported flags at once [0.06ms]276✓ redirectSendToDraft > rejects in CI where no interactive editor is available [0.28ms]277⚠ Safe mode active: redirecting "message send" → draft editor. Nothing posts until a human sends it from the editor.278✓ redirectSendToDraft > opens a draft with the send text and thread context [0.18ms]279280test/files.test.ts:281✓ downloadSlackFile > downloads file and writes to disk [1.11ms]282✓ downloadSlackFile > returns cached path when file already exists [0.37ms]283✓ downloadSlackFile > throws SlackDownloadError on HTTP 404 [0.43ms]284✓ downloadSlackFile > throws SlackDownloadError with httpStatus on HTTP error [0.25ms]285✓ downloadSlackFile > throws SlackDownloadError on HTML auth page [0.24ms]286✓ downloadSlackFile > throws SlackDownloadError on network error [0.46ms]287✓ downloadSlackFile > throws SlackDownloadError when reading html body fails [0.31ms]288✓ downloadSlackFile > throws SlackDownloadError when reading binary body fails [0.33ms]289✓ tryDownloadSlackFile > returns ok result on success [0.58ms]290✓ tryDownloadSlackFile > returns failure result on HTTP 404 [0.25ms]291✓ tryDownloadSlackFile > returns failure result on network error [0.35ms]292✓ tryDownloadSlackFile > propagates disk/write errors [0.48ms]293Warning: skipping file F1: Downloaded auth/login page instead of canvas content (token may be expired)294✓ downloadMessageFiles > records canvas auth failures as structured errors [2.28ms]295Warning: skipping file F2: Failed to download file (404)296✓ downloadMessageFiles > records non-canvas download failures with a local error path [1.05ms]297298test/users.test.ts:299✓ resolveUserId > returns user ids unchanged [0.09ms]300✓ resolveUserId > returns W-prefixed user ids unchanged [0.03ms]301✓ resolveUserId > resolves @handle via users.list [0.08ms]302✓ resolveUserId > resolves email via users.lookupByEmail [0.06ms]303✓ resolveUserId > resolves @handle case-insensitively [0.05ms]304✓ resolveUserId > falls back to users.list when lookupByEmail is unavailable [0.12ms]305306test/search-files.test.ts:307Warning: skipping file F1: Failed to download file (404)308✓ searchFilesViaSearchApi > skips failed downloads and keeps later successful matches [1.17ms]309Warning: skipping file F1: Failed to download file (404)310✓ searchFilesInChannelsFallback > continues after a failed download in files.list results [1.42ms]311✓ SlackApiClient browser API guards > fails fast on rate-limit retry windows by default [0.62ms]312✓ SlackApiClient browser API guards > surfaces request timeouts with the Slack method name [0.20ms]313314test/message-reaction-filters.test.ts:315✓ parseReactionFilters > normalizes shortcodes, names, and unicode [0.11ms]316✓ parseReactionFilters > returns empty array when unset [0.02ms]317✓ passesReactionNameFilters > matches when required reaction is present [0.14ms]318✓ passesReactionNameFilters > does not match when required reaction is missing [0.02ms]319✓ passesReactionNameFilters > does not match when excluded reaction is present [0.02ms]320✓ passesReactionNameFilters > matches when excluded reaction is absent [0.01ms]321✓ passesReactionNameFilters > supports with + without together [0.02ms]322✓ requireOldestWhenReactionFiltersUsed > returns oldest when no reaction filters are used [0.03ms]323✓ requireOldestWhenReactionFiltersUsed > returns trimmed oldest when reaction filters are used [0.01ms]324✓ requireOldestWhenReactionFiltersUsed > throws when reaction filters are used without oldest [0.02ms]325326test/drafts.test.ts:327✓ padDraftTs > pads short fractional parts to 7 digits [0.07ms]328✓ padDraftTs > leaves 7-digit fractional parts unchanged [0.01ms]329✓ padDraftTs > leaves timestamps without a fractional part unchanged330✓ draftTextToBlocks > wraps plain text in a rich_text section [0.07ms]331✓ draftTextToBlocks > converts bullet lists to rich_text lists [0.04ms]332✓ parseDraftRecord > parses a raw draft into a compact shape [0.45ms]333✓ parseDraftRecord > returns null for records without an id [0.02ms]334✓ listDrafts > requests active drafts and parses the result [0.25ms]335✓ listDrafts > omits is_active when activeOnly is false [0.06ms]336✓ createDraft > sends blocks, destination, and composer flag [0.31ms]337✓ createDraft > omits thread fields for channel drafts [0.08ms]338✓ createDraft > includes file_ids on the wire when fileIds is supplied [0.07ms]339✓ updateDraft > sends draft_id and a padded last-updated ts [0.15ms]340✓ deleteDraft > deletes with an explicit last-updated ts [0.11ms]341✓ deleteDraft > fetches the last-updated ts from drafts.list when omitted [0.15ms]342✓ deleteDraft > throws when the draft does not exist [0.06ms]343✓ findDraft > lists all drafts (including inactive) and finds by id [0.07ms]344✓ findDraft > prefers a matching record that has last_updated_ts over a malformed duplicate [0.06ms]345346test/upload.test.ts:347✓ uploadFilesForDraft > never shifts ids between files when the completion response omits one [2.58ms]348✓ uploadFilesForDraft > falls back to staged ids when the completion response length disagrees [1.70ms]349✓ uploadFilesForDraft > stages every file, then completes them in one call with no channel binding [0.87ms]350✓ uploadFilesForDraft > a later staging failure leaves nothing completed (no orphaned files) [0.79ms]351✓ uploadFilesForDraft > throws and completes nothing when a path does not exist [0.26ms]352✓ uploadFilesForDraft > throws and completes nothing when a byte POST fails [0.42ms]353✓ uploadFilesForDraft > throws when files.completeUploadExternal fails [0.72ms]354✓ uploadFilesForDraft > throws when the path is a directory [0.36ms]355✓ uploadLocalFileToSlack (shared-helper regression) > still binds the completed file to a channel with an initial comment [0.55ms]356357test/update.test.ts:358✓ compareSemver > equal versions return 0 [0.08ms]359✓ compareSemver > strips v prefix [0.02ms]360✓ compareSemver > newer major [0.01ms]361✓ compareSemver > newer minor [0.01ms]362✓ compareSemver > newer patch363✓ compareSemver > older version returns negative [0.01ms]364✓ compareSemver > handles 0.x versions [0.02ms]365366test/render.test.ts:367✓ renderSlackMessageContent > prefers blocks [0.10ms]368✓ renderSlackMessageContent > preserves usergroup and broadcast elements from rich text [0.15ms]369✓ renderSlackMessageContent > omits malformed usergroup and broadcast elements [0.06ms]370✓ renderSlackMessageContent > falls back to attachments when text is empty [0.08ms]371✓ renderSlackMessageContent > includes section fields and button URLs [0.07ms]372✓ renderSlackMessageContent > includes attachment fields [0.05ms]373✓ renderSlackMessageContent > renders forwarded message with author and source link [0.18ms]374✓ renderSlackMessageContent > renders forwarded message with author name only [0.04ms]375✓ renderSlackMessageContent > renders forwarded message with no author [0.05ms]376✓ renderSlackMessageContent > includes forwarded file links in quoted forwarded body [0.08ms]377✓ renderSlackMessageContent > renders nested forwarded attachments similarly to normal attachments [0.09ms]378✓ renderSlackMessageContent > deduplicates repeated forwarded body content [0.08ms]379✓ renderSlackMessageContent > handles cyclic forwarded attachments without infinite recursion [0.05ms]380✓ renderSlackMessageContent > does not treat link unfurl as forwarded message [0.06ms]381✓ renderSlackMessageContent > combines blocks and non-shared attachments [0.05ms]382383test/channel-admin.test.ts:384✓ parseInviteUsersCsv > splits comma-separated values, trims whitespace, and deduplicates [0.07ms]385✓ parseInviteUsersCsv > returns empty array when input has no values [0.01ms]386✓ splitEmailsFromInviteTargets > separates email targets from non-email targets [0.08ms]387✓ splitEmailsFromInviteTargets > deduplicates emails [0.01ms]388389test/help-contracts.test.ts:390✓ agent-facing help contracts > message send documents non-obvious formatting and scheduling behavior [1.40ms]391✓ agent-facing help contracts > message compose identifies its CI send behavior [0.54ms]392✓ agent-facing help contracts > Slack-native drafts document DM targeting and inherited-broadcast controls [0.68ms]393✓ agent-facing help contracts > scheduled cancellation identifies its required channel [0.33ms]394✓ agent-facing help contracts > Later reminders identify named-day timezone behavior [0.32ms]395✓ agent-facing help contracts > canvas creation identifies source and credential constraints [0.32ms]396✓ agent-facing help contracts > canvas editing identifies operations, targeting, and content constraints [0.38ms]397✓ agent-facing help contracts > channel mark distinguishes URL and non-URL workspace handling [0.44ms]398✓ agent-facing help contracts > DM help states Slack's group size limit [0.27ms]399400test/message-send.test.ts:401✓ sendMessage > posts a normal message when no attachments are passed [1.00ms]402✓ sendMessage > --no-unfurl disables link and media previews for immediate sends [0.11ms]403✓ sendMessage > opens and sends to a DM for a W-prefixed user target [0.23ms]404✓ sendMessage > returns a permalink when the workspace was resolved implicitly [0.09ms]405✓ sendMessage > threaded reply returns thread_ts distinct from ts [0.11ms]406✓ sendMessage > --reply-broadcast with --thread-ts sends reply_broadcast: true [0.09ms]407✓ sendMessage > --reply-broadcast omits the field from chat.postMessage when flag is absent [0.08ms]408✓ sendMessage > --reply-broadcast without --thread-ts throws [0.13ms]409✓ sendMessage > --reply-broadcast on a URL target broadcasts using the message's derived thread_ts [0.61ms]410✓ sendMessage > --reply-broadcast on a DM target throws (broadcasting is not meaningful for DMs) [0.15ms]411✓ sendMessage > --reply-broadcast works alongside --blocks payload [0.96ms]412✓ sendMessage > uploads attachment and uses message text as initial comment [0.83ms]413✓ sendMessage > --no-unfurl cannot be combined with file attachments [0.19ms]414✓ sendMessage > sends initial comment only for the first attachment [0.79ms]415✓ sendMessage > uploads attachment without text when text is empty [0.52ms]416✓ sendMessage > --blocks: reads Block Kit JSON from file and passes through unchanged [0.54ms]417✓ sendMessage > --blocks: errors when JSON is not an array [0.42ms]418✓ sendMessage > --blocks: errors on malformed JSON [0.39ms]419✓ sendMessage > --blocks: overrides markdown-to-rich-text conversion when text is also provided [0.42ms]420✓ sendMessage > sends Slack manual links in lists as rich-text link blocks [0.19ms]421✓ sendMessage > --blocks: errors when an array element is not an object [0.37ms]422✓ sendMessage > --schedule sends through chat.scheduleMessage and returns scheduled metadata [0.43ms]423✓ sendMessage > --schedule-in computes a relative post_at [0.25ms]424✓ sendMessage > --no-unfurl disables link and media previews for scheduled sends [0.14ms]425✓ sendMessage > --schedule composes with blocks, thread replies, and reply broadcast [0.46ms]426✓ sendMessage > --schedule cannot be combined with file attachments [0.13ms]427✓ composeMessage > --no-unfurl disables link and media previews when CI sends immediately [0.50ms]428✓ composeMessage > keeps Slack's default preview behavior for a standard CI send [0.11ms]429✓ composeMessage > --no-unfurl disables previews for a URL target when CI sends immediately [0.43ms]430✓ scheduled message management > lists scheduled messages and forwards channel filters [0.43ms]431✓ scheduled message management > cancels scheduled messages with the required channel id [0.28ms]432✓ scheduled message time parsing > parses absolute ISO timestamps with explicit timezones [0.07ms]433✓ scheduled message time parsing > parses named relative times like monday 9am [0.31ms]434✓ scheduled message time parsing > rejects schedule times beyond Slack's 120 day limit [0.06ms]435✓ editMessage > edits a normal text message without blocks [0.33ms]436✓ editMessage > edits literal angle bracket text without blocks [0.10ms]437✓ editMessage > edits a message URL with a link label without blocks [0.12ms]438✓ editMessage > edits an inline mailto link without escaping it [0.11ms]439✓ editMessage > edits an inline usergroup mention without escaping it [0.09ms]440✓ editMessage > edits a channel target with inline formatting without blocks [0.08ms]441✓ editMessage > edits a channel target with rich text blocks when text contains a list [0.14ms]442✓ editMessage > edits a normal message without blocks when no --blocks file is passed [0.09ms]443✓ editMessage > edits a message URL with Block Kit JSON from file [0.49ms]444✓ editMessage > edits a channel target with --ts and Block Kit JSON from file [0.45ms]445446test/search-query.test.ts:447✓ W-prefixed user IDs in search > resolves a W-prefixed user ID to a from filter [0.24ms]448✓ W-prefixed user IDs in search > returns a W-prefixed user ID without scanning users [0.16ms]449450test/error-message.test.ts:451✓ errorMessage > returns the message for a plain error [0.10ms]452✓ errorMessage > stringifies non-Error values [0.02ms]453✓ errorMessage > appends a single Error cause [0.03ms]454✓ errorMessage > appends AggregateError causes from a failed fetch through a dead proxy [0.07ms]455✓ errorMessage > walks multi-level cause chains [0.02ms]456✓ errorMessage > terminates on a self-referential cause instead of looping forever [0.01ms]457✓ errorMessage > terminates on a longer cause cycle [0.01ms]458✓ errorMessage > does not crash on a cause that cannot be stringified [0.04ms]459✓ errorMessage > does not crash on a non-Error thrown value that cannot be stringified [0.01ms]460✓ errorMessage > caps how far a long cause chain is walked [0.14ms]461✓ errorMessage > collapses a cause that merely restates its parent [0.02ms]462463test/canvas-create.test.ts:464✓ createCanvasFromMarkdown > sends Markdown content, title, and channel to canvases.create [0.31ms]465✓ createCanvasFromMarkdown > rejects empty Markdown before calling Slack [0.08ms]466✓ createCanvasFromMarkdown > rejects a success response without a canvas id [0.05ms]467✓ createCanvasFromMarkdown > uses Slack's Markdown canvas method with imported browser credentials [0.07ms]468✓ createCanvasFromMarkdown > rejects channel tabs with browser credentials before calling Slack [0.05ms]469✓ editCanvas > sends the documented replace change [0.32ms]470✓ editCanvas > sends the documented replace section change [0.02ms]471✓ editCanvas > sends the documented insert before change [0.01ms]472✓ editCanvas > sends the documented insert after change473✓ editCanvas > sends the documented insert at start change474✓ editCanvas > sends the documented insert at end change475✓ editCanvas > sends the documented delete section change476✓ editCanvas > sends the documented rename change477✓ editCanvas > rejects invalid combinations before calling Slack [0.21ms]478✓ editCanvas > rejects empty Markdown and canvas ids before calling Slack [0.08ms]479✓ editCanvas > rejects Markdown over Slack's per-change limit before calling Slack [8.85ms]480✓ readCanvasMarkdownInput > reads a Markdown file without changing its contents [0.79ms]481✓ readCanvasMarkdownInput > accepts a Markdown blob [0.05ms]482✓ readCanvasMarkdownInput > requires exactly one source [0.07ms]483✓ readCanvasMarkdownInput > rejects an empty source [0.04ms]484✓ canvas create command > creates from an inline blob in the selected workspace [0.97ms]485✓ canvas create command > creates from a file and resolves a channel tab [0.93ms]486✓ canvas create command > rejects browser-auth channel tabs before resolving the channel [0.39ms]487✓ canvas create command > rejects missing or conflicting sources before authenticating [0.29ms]488✓ canvas edit command > replaces a canvas from a Markdown URL target [0.81ms]489✓ canvas edit command > inserts content from a file and passes a section id [0.91ms]490✓ canvas edit command > renames without a Markdown source [0.29ms]491✓ canvas edit command > rejects delete content and malformed inputs before authenticating [0.42ms]492✓ canvas edit command > rejects browser credentials before calling canvases.edit [0.24ms]493494test/message-draft-actions.test.ts:495✓ createDraftAction > creates a draft addressed to a channel id [0.82ms]496✓ createDraftAction > rejects --broadcast without a thread [0.17ms]497✓ createDraftAction > rejects --broadcast for a DM (user) target [0.18ms]498✓ createDraftAction > rejects --broadcast for a D... channel-id (DM) target [0.12ms]499✓ createDraftAction > rejects --broadcast on a channel name with no thread before any network call [0.07ms]500✓ createDraftAction > rejects --broadcast on a DM message URL before fetching the message [0.07ms]501✓ createDraftAction > uploads --attach files and wires their file ids into the draft [1.16ms]502✓ createDraftAction > aborts before any upload or drafts.create when an --attach path is missing [0.28ms]503✓ updateDraftAction > text-only edit preserves destination, thread, broadcast, and file ids [0.57ms]504✓ updateDraftAction > re-addressing a broadcast thread draft to a non-thread channel clears broadcast instead of erroring [0.12ms]505✓ updateDraftAction > explicit --broadcast on a non-thread draft still errors [0.13ms]506✓ updateDraftAction > refuses to update a scheduled draft rather than clearing its schedule [0.11ms]507✓ updateDraftAction > refuses a text-only update on a multi-destination draft, but allows re-addressing [0.17ms]508✓ updateDraftAction > re-addressing to a different thread does not inherit the old broadcast flag [0.12ms]509✓ updateDraftAction > --no-broadcast clears an inherited broadcast flag on a same-thread edit [0.08ms]510✓ updateDraftAction > rejects --broadcast when re-addressing to a DM (user) target [0.07ms]511✓ updateDraftAction > changing only --thread-ts (no --channel) does not inherit the old broadcast flag [0.08ms]512✓ updateDraftAction > rejects --broadcast on an existing DM-destination draft [0.10ms]513✓ updateDraftAction > rejects --broadcast when re-addressing to a channel name with no thread, before resolving it [0.07ms]514✓ updateDraftAction > merges --attach file ids into the draft's existing file_ids [0.80ms]515✓ updateDraftAction > merges --attach while de-duplicating ids already on the draft [0.94ms]516✓ deleteDraftAction > auto-fetches and pads last_updated_ts when omitted [0.37ms]517✓ listDraftsAction > hydrates channel display names [0.53ms]518{519 "ok": true,520 "draft": {521 "id": "Dr123",522 "destinations": [523 {524 "channel_id": "C11111111",525 "thread_ts": "1700000000.100000"526 }527 ]528 }529}530✓ message draft update (commander --broadcast wiring) > omitting broadcast flags does not force broadcast on (no Commander default-true gotcha) [0.67ms]531{532 "ok": true,533 "draft": {534 "id": "Dr123",535 "destinations": [536 {537 "channel_id": "C11111111",538 "thread_ts": "1700000000.100000",539 "broadcast": true540 }541 ]542 }543}544✓ message draft update (commander --broadcast wiring) > --broadcast sets broadcast true [0.29ms]545{546 "ok": true,547 "draft": {548 "id": "Dr123",549 "destinations": [550 {551 "channel_id": "C11111111",552 "thread_ts": "1700000000.100000"553 }554 ]555 }556}557✓ message draft update (commander --broadcast wiring) > --no-broadcast clears an inherited broadcast flag [0.25ms]558{559 "ok": true,560 "draft": {561 "id": "DrNew",562 "destinations": [563 {564 "channel_id": "C11111111"565 }566 ]567 }568}569✓ message draft create (commander --attach wiring) > collects repeatable --attach flags into an array [1.44ms]570✓ message draft unknown subcommand > old `message draft <target>` usage points to `message compose` [0.52ms]571✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 create: a drafts.create auth failure retries work WITHOUT re-uploading files [0.98ms]572✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 update: a drafts.update auth failure retries work WITHOUT re-uploading files [0.84ms]573✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 create: a non-auth drafts.create failure deletes the uploaded file [0.85ms]574✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 update: a stale drafts.update failure deletes the newly uploaded file only [0.73ms]575✓ draft attachments: orphan prevention across auth-retry and failed drafts > a failed draft with no attachments does not attempt files.delete [0.18ms]576577 399 pass578 0 fail579 817 expect() calls580Ran 399 tests across 38 files. [374.00ms]fixupPhase
581shrinking RPATHs of ELF executables and libraries in /nix/store/njmimss8y6mzkvmd4sfm1c2szxwq66j8-agent-slack-0.10.2582checking for references to /build/ in /nix/store/njmimss8y6mzkvmd4sfm1c2szxwq66j8-agent-slack-0.10.2...583patching script interpreter paths in /nix/store/njmimss8y6mzkvmd4sfm1c2szxwq66j8-agent-slack-0.10.2installCheckPhase
584Executing versionCheckPhase585Successfully managed to find version 0.10.2 in the output of the command /nix/store/njmimss8y6mzkvmd4sfm1c2szxwq66j8-agent-slack-0.10.2/bin/agent-slack --version5860.10.2587Finished versionCheckPhase588no Makefile or custom installCheckPhase, doing nothing