agent-slack-0.10.2
checks.aarch64-linux.pkgs-agent-slack
· build #6692
· raw
1elastic-arm-b36af897: building cfjqwdc06y5n52k4xwrpxis4f61bsyaf-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/release.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/idnyqaaix26szkvhs1mjgi7990jajz9a-bash-5.3p15/bin/sh"8./scripts/update-nix-sources.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/idnyqaaix26szkvhs1mjgi7990jajz9a-bash-5.3p15/bin/bash"9./scripts/install-skill.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/idnyqaaix26szkvhs1mjgi7990jajz9a-bash-5.3p15/bin/bash"configurePhase
10no configure script, doing nothingbunNodeModulesInstallPhase
11/build/source /build/source12bun install flags: --linker=isolated --ignore-scripts13bun install v1.4.2 (744846f84)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 [116.00ms]33/build/sourcebuildPhase
34Bundled 360 modules in 46ms3536 agent-slack.js 1.98 MB (entry point)37checkPhase
38bun test v1.4.2 (744846f84)3940test/workspace-selector.test.ts:41✓ resolveWorkspaceSelector > matches exact URL [1.83ms]42✓ resolveWorkspaceSelector > matches unique substring by host/team [1.86ms]43✓ resolveWorkspaceSelector > matches unique substring by workspace name [0.08ms]44✓ resolveWorkspaceSelector > returns ambiguity when selector matches multiple workspaces [0.63ms]45✓ resolveWorkspaceSelector > returns no match when selector does not match [0.24ms]4647test/update.test.ts:48✓ compareSemver > equal versions return 0 [0.45ms]49✓ compareSemver > strips v prefix [0.04ms]50✓ compareSemver > newer major [0.03ms]51✓ compareSemver > newer minor [0.02ms]52✓ compareSemver > newer patch [0.02ms]53✓ compareSemver > older version returns negative [0.02ms]54✓ compareSemver > handles 0.x versions [0.09ms]5556test/parse-limit.test.ts:57✓ parseLimit > returns undefined when no value given [0.06ms]58✓ parseLimit > parses valid positive integers [0.05ms]59✓ parseLimit > rejects non-numeric strings [0.34ms]60✓ parseLimit > rejects zero [0.04ms]61✓ parseLimit > rejects negative numbers [0.04ms]62✓ parseLimit > rejects floats (uses integer part) [0.02ms]63✓ requireMessageTs > returns trimmed ts when present [0.04ms]64✓ requireMessageTs > throws when missing [0.04ms]65✓ requireMessageTs > throws when blank [0.03ms]6667test/help-contracts.test.ts:68✓ agent-facing help contracts > message send documents non-obvious formatting and scheduling behavior [5.61ms]69✓ agent-facing help contracts > message compose identifies its CI send behavior [1.69ms]70✓ agent-facing help contracts > Slack-native drafts document DM targeting and inherited-broadcast controls [1.97ms]71✓ agent-facing help contracts > scheduled cancellation identifies its required channel [0.92ms]72✓ agent-facing help contracts > Later reminders identify named-day timezone behavior [0.63ms]73✓ agent-facing help contracts > canvas creation identifies source and credential constraints [0.74ms]74✓ agent-facing help contracts > canvas editing identifies operations, targeting, and content constraints [0.72ms]75✓ agent-facing help contracts > channel mark distinguishes URL and non-URL workspace handling [0.72ms]76✓ agent-facing help contracts > DM help states Slack's group size limit [0.64ms]7778test/message-reaction-filters.test.ts:79✓ parseReactionFilters > normalizes shortcodes, names, and unicode [1.04ms]80✓ parseReactionFilters > returns empty array when unset [0.02ms]81✓ passesReactionNameFilters > matches when required reaction is present [0.17ms]82✓ passesReactionNameFilters > does not match when required reaction is missing [0.03ms]83✓ passesReactionNameFilters > does not match when excluded reaction is present [0.03ms]84✓ passesReactionNameFilters > matches when excluded reaction is absent [0.02ms]85✓ passesReactionNameFilters > supports with + without together [0.02ms]86✓ requireOldestWhenReactionFiltersUsed > returns oldest when no reaction filters are used [0.04ms]87✓ requireOldestWhenReactionFiltersUsed > returns trimmed oldest when reaction filters are used [0.02ms]88✓ requireOldestWhenReactionFiltersUsed > throws when reaction filters are used without oldest [0.04ms]8990test/client.test.ts:91✓ SlackApiClient browser multipart transport > retries HTTP 429 responses using Retry-After [2.74ms]9293test/message-send.test.ts:94✓ sendMessage > posts a normal message when no attachments are passed [2.94ms]95✓ sendMessage > --no-unfurl disables link and media previews for immediate sends [0.23ms]96✓ sendMessage > opens and sends to a DM for a W-prefixed user target [0.32ms]97✓ sendMessage > returns a permalink when the workspace was resolved implicitly [0.14ms]98✓ sendMessage > threaded reply returns thread_ts distinct from ts [0.19ms]99✓ sendMessage > --reply-broadcast with --thread-ts sends reply_broadcast: true [0.17ms]100✓ sendMessage > --reply-broadcast omits the field from chat.postMessage when flag is absent [0.14ms]101✓ sendMessage > --reply-broadcast without --thread-ts throws [0.19ms]102✓ sendMessage > --reply-broadcast on a URL target broadcasts using the message's derived thread_ts [1.27ms]103✓ sendMessage > --reply-broadcast on a DM target throws (broadcasting is not meaningful for DMs) [0.21ms]104✓ sendMessage > --reply-broadcast works alongside --blocks payload [1.53ms]105✓ sendMessage > uploads attachment and uses message text as initial comment [1.77ms]106✓ sendMessage > --no-unfurl cannot be combined with file attachments [0.23ms]107✓ sendMessage > sends initial comment only for the first attachment [1.58ms]108✓ sendMessage > uploads attachment without text when text is empty [1.03ms]109✓ sendMessage > --blocks: reads Block Kit JSON from file and passes through unchanged [0.81ms]110✓ sendMessage > --blocks: errors when JSON is not an array [0.65ms]111✓ sendMessage > --blocks: errors on malformed JSON [0.71ms]112✓ sendMessage > --blocks: overrides markdown-to-rich-text conversion when text is also provided [0.68ms]113✓ sendMessage > sends Slack manual links in lists as rich-text link blocks [0.49ms]114✓ sendMessage > --blocks: errors when an array element is not an object [0.72ms]115✓ sendMessage > --schedule sends through chat.scheduleMessage and returns scheduled metadata [0.60ms]116✓ sendMessage > --schedule-in computes a relative post_at [0.48ms]117✓ sendMessage > --no-unfurl disables link and media previews for scheduled sends [0.23ms]118✓ sendMessage > --schedule composes with blocks, thread replies, and reply broadcast [0.76ms]119✓ sendMessage > --schedule cannot be combined with file attachments [0.21ms]120✓ composeMessage > --no-unfurl disables link and media previews when CI sends immediately [1.02ms]121✓ composeMessage > keeps Slack's default preview behavior for a standard CI send [0.21ms]122✓ composeMessage > --no-unfurl disables previews for a URL target when CI sends immediately [0.63ms]123✓ scheduled message management > lists scheduled messages and forwards channel filters [0.68ms]124✓ scheduled message management > cancels scheduled messages with the required channel id [0.37ms]125✓ scheduled message time parsing > parses absolute ISO timestamps with explicit timezones [0.12ms]126✓ scheduled message time parsing > parses named relative times like monday 9am [7.66ms]127✓ scheduled message time parsing > rejects schedule times beyond Slack's 120 day limit [0.14ms]128✓ editMessage > edits a normal text message without blocks [0.54ms]129✓ editMessage > edits literal angle bracket text without blocks [0.17ms]130✓ editMessage > edits a message URL with a link label without blocks [0.22ms]131✓ editMessage > edits an inline mailto link without escaping it [0.16ms]132✓ editMessage > edits an inline usergroup mention without escaping it [0.20ms]133✓ editMessage > edits a channel target with inline formatting without blocks [0.19ms]134✓ editMessage > edits a channel target with rich text blocks when text contains a list [0.22ms]135✓ editMessage > edits a normal message without blocks when no --blocks file is passed [0.18ms]136✓ editMessage > edits a message URL with Block Kit JSON from file [0.87ms]137✓ editMessage > edits a channel target with --ts and Block Kit JSON from file [0.86ms]138139test/search-command.test.ts:140✓ search referenced users > searchSlack returns shared referenced_users while preserving canonical ids [6.11ms]141✓ search referenced users > search command forwards --refresh-users and bypasses cached user lookups [5.83ms]142143test/upload.test.ts:144✓ uploadFilesForDraft > never shifts ids between files when the completion response omits one [2.21ms]145✓ uploadFilesForDraft > falls back to staged ids when the completion response length disagrees [1.81ms]146✓ uploadFilesForDraft > stages every file, then completes them in one call with no channel binding [1.48ms]147✓ uploadFilesForDraft > a later staging failure leaves nothing completed (no orphaned files) [1.37ms]148✓ uploadFilesForDraft > throws and completes nothing when a path does not exist [0.45ms]149✓ uploadFilesForDraft > throws and completes nothing when a byte POST fails [0.75ms]150✓ uploadFilesForDraft > throws when files.completeUploadExternal fails [0.75ms]151✓ uploadFilesForDraft > throws when the path is a directory [0.72ms]152✓ uploadLocalFileToSlack (shared-helper regression) > still binds the completed file to a channel with an initial comment [0.76ms]153154test/channel-admin.test.ts:155✓ parseInviteUsersCsv > splits comma-separated values, trims whitespace, and deduplicates [0.12ms]156✓ parseInviteUsersCsv > returns empty array when input has no values [0.03ms]157✓ splitEmailsFromInviteTargets > separates email targets from non-email targets [0.15ms]158✓ splitEmailsFromInviteTargets > deduplicates emails [0.03ms]159160test/search-query.test.ts:161✓ W-prefixed user IDs in search > resolves a W-prefixed user ID to a from filter [0.28ms]162✓ W-prefixed user IDs in search > returns a W-prefixed user ID without scanning users [0.21ms]163164test/format-outbound.test.ts:165✓ formatOutboundSlackText > promotes bare user IDs to Slack mention tokens [0.08ms]166✓ formatOutboundSlackText > leaves already-formatted mention tokens alone [0.03ms]167✓ formatOutboundSlackText > leaves already-formatted usergroup mention tokens alone [0.02ms]168✓ formatOutboundSlackText > promotes broadcast mentions [0.03ms]169✓ formatOutboundSlackText > escapes bare < > & in literal text [0.02ms]170✓ formatOutboundSlackText > does not escape inside already-formatted Slack tokens [0.03ms]171✓ formatOutboundSlackText > does not promote email-like or mid-word @ [0.01ms]172✓ formatOutboundSlackText > handles empty input173✓ formatOutboundSlackText > real-world CI dump stays readable with mention + URL [0.03ms]174175test/channel-command.test.ts:176✓ channel list command > defaults to users.conversations for current user [1.48ms]177✓ channel list command > with --user id uses users.conversations and sets user directly [0.86ms]178✓ channel list command > with --user handle resolves via users.list before users.conversations [0.70ms]179✓ channel list command > with --user unknown handle is a hard error [0.54ms]180✓ channel list command > with --all uses conversations.list [0.56ms]181✓ channel list command > forwards --limit and --cursor [0.41ms]182✓ channel list command > --all and --user is a hard error [0.51ms]183✓ channel list command > invalid --limit is a hard error [0.44ms]184✓ channel list command > help text documents single-page pagination model [0.23ms]185✓ channel mark command > URL target extracts workspace from URL [1.07ms]186✓ channel mark command > URL target rejects --workspace flag [0.51ms]187✓ channel mark command > channel target requires --ts [0.47ms]188✓ channel mark command > URL target allows --ts override [0.46ms]189✓ channel mark command > channel target with --ts calls conversations.mark [0.44ms]190191test/safe-mode.test.ts:192✓ isSafeModeEnabled > enabled via CLI flag [0.06ms]193✓ isSafeModeEnabled > enabled for env value "1" [0.04ms]194✓ isSafeModeEnabled > enabled for env value "true"195✓ isSafeModeEnabled > enabled for env value "TRUE"196✓ isSafeModeEnabled > enabled for env value "yes"197✓ isSafeModeEnabled > enabled for env value "on"198✓ isSafeModeEnabled > enabled for env value " 1 "199✓ isSafeModeEnabled > disabled for env value "0" [0.02ms]200✓ isSafeModeEnabled > disabled for env value "false"201✓ isSafeModeEnabled > disabled for env value "off"202✓ isSafeModeEnabled > disabled for env value "no"203✓ isSafeModeEnabled > disabled for env value ""204✓ isSafeModeEnabled > disabled when env var is unset and flag is absent [0.02ms]205✓ safeModeBlockedError > names the blocked action [0.04ms]206✓ redirectSendToDraft > rejects unsupported send option {207 attach: [ "./report.md" ],208} [0.27ms]209✓ redirectSendToDraft > rejects unsupported send option {210 blocks: "/tmp/blocks.json",211} [0.01ms]212✓ redirectSendToDraft > rejects unsupported send option {213 schedule: "2030-01-01T00:00:00Z",214} [0.01ms]215✓ redirectSendToDraft > rejects unsupported send option {216 scheduleIn: "3h",217}218✓ redirectSendToDraft > rejects unsupported send option {219 replyBroadcast: true,220} [0.01ms]221✓ redirectSendToDraft > lists all unsupported flags at once [0.09ms]222✓ redirectSendToDraft > rejects in CI where no interactive editor is available [0.17ms]223⚠ Safe mode active: redirecting "message send" → draft editor. Nothing posts until a human sends it from the editor.224✓ redirectSendToDraft > opens a draft with the send text and thread context [0.24ms]225226test/rich-text.test.ts:227✓ parseInlineElements > plain text returns single text element [0.04ms]228✓ parseInlineElements > *bold* is parsed with bold style [0.04ms]229✓ parseInlineElements > _italic_ is parsed with italic style [0.08ms]230✓ parseInlineElements > ~strike~ is parsed with strike style [0.03ms]231✓ parseInlineElements > `code` is parsed with code style [0.04ms]232✓ parseInlineElements > :emoji: shortcode is parsed as an emoji element [0.05ms]233✓ parseInlineElements > emoji names with underscores are not parsed as italic text [0.04ms]234✓ parseInlineElements > time-like colon text is not parsed as an emoji element [0.03ms]235✓ parseInlineElements > <url|label> is parsed as link with text [0.04ms]236✓ parseInlineElements > <url> is parsed as link without text [0.07ms]237✓ parseInlineElements > <mailto|label> is parsed as link with text [0.04ms]238✓ parseInlineElements > non-url angle bracket text is preserved as text [0.03ms]239✓ parseInlineElements > non-url labeled angle bracket text is preserved as text [0.03ms]240✓ parseInlineElements > channel mention tokens are parsed as channel elements [0.02ms]241✓ parseInlineElements > bare channel mention tokens are parsed as channel elements [0.02ms]242✓ parseInlineElements > usergroup mention tokens are parsed as usergroup elements [0.02ms]243✓ textToRichTextBlocks > plain text returns null [0.04ms]244✓ textToRichTextBlocks > inline-only formatting returns null by default [0.02ms]245✓ textToRichTextBlocks > non-url angle bracket text does not trigger rich text blocks [0.06ms]246✓ textToRichTextBlocks > mixed non-url angle bracket text and formatting preserves brackets [0.06ms]247✓ textToRichTextBlocks > inline-only formatting can produce rich text blocks [0.06ms]248✓ textToRichTextBlocks > mailto links can produce rich text blocks when inline formatting is included [0.05ms]249✓ textToRichTextBlocks > channel mentions can produce rich text blocks when inline formatting is included [0.05ms]250✓ textToRichTextBlocks > bullet list with - prefix [0.08ms]251✓ textToRichTextBlocks > bullet list with bullet character [0.52ms]252✓ textToRichTextBlocks > sub-bullets with indentation [0.12ms]253✓ textToRichTextBlocks > white bullet sub-bullets under bullet [0.08ms]254✓ textToRichTextBlocks > mixed text and bullets [0.05ms]255✓ textToRichTextBlocks > numbered list [0.10ms]256✓ textToRichTextBlocks > bold text in list items is parsed [0.07ms]257✓ textToRichTextBlocks > emoji and channel references in list items are parsed [0.12ms]258✓ textToRichTextBlocks > Slack manual links and CommonMark links remain distinct in list items [0.07ms]259✓ textToRichTextBlocks > code block is preserved [0.05ms]260✓ textToRichTextBlocks > blockquote is preserved [0.04ms]261262test/files.test.ts:263✓ downloadSlackFile > downloads file and writes to disk [1.69ms]264✓ downloadSlackFile > returns cached path when file already exists [0.57ms]265✓ downloadSlackFile > throws SlackDownloadError on HTTP 404 [0.53ms]266✓ downloadSlackFile > throws SlackDownloadError with httpStatus on HTTP error [0.46ms]267✓ downloadSlackFile > throws SlackDownloadError on HTML auth page [0.76ms]268✓ downloadSlackFile > throws SlackDownloadError on network error [0.85ms]269✓ downloadSlackFile > throws SlackDownloadError when reading html body fails [0.75ms]270✓ downloadSlackFile > throws SlackDownloadError when reading binary body fails [0.74ms]271✓ tryDownloadSlackFile > returns ok result on success [1.16ms]272✓ tryDownloadSlackFile > returns failure result on HTTP 404 [0.52ms]273✓ tryDownloadSlackFile > returns failure result on network error [0.80ms]274✓ tryDownloadSlackFile > propagates disk/write errors [0.84ms]275Warning: skipping file F1: Downloaded auth/login page instead of canvas content (token may be expired)276✓ downloadMessageFiles > records canvas auth failures as structured errors [3.66ms]277Warning: skipping file F2: Failed to download file (404)278✓ downloadMessageFiles > records non-canvas download failures with a local error path [2.32ms]279280test/channels.test.ts:281✓ conversations list helpers > listUserConversations calls users.conversations with defaults [0.24ms]282✓ conversations list helpers > listUserConversations forwards user/limit/cursor [0.13ms]283✓ conversations list helpers > listAllConversations calls conversations.list with defaults [0.13ms]284✓ conversations list helpers > listAllConversations forwards limit/cursor [0.10ms]285✓ conversations list helpers > listUserConversations passes through small limits [0.08ms]286✓ conversations list helpers > listUserConversations clamps high limits to 1000 [0.09ms]287✓ conversations list helpers > normalizeConversationsPage extracts channels and next cursor [0.04ms]288✓ conversations list helpers > normalizeConversationsPage handles missing response_metadata [0.03ms]289✓ conversations list helpers > normalizeConversationsPage handles empty next_cursor [0.02ms]290✓ conversations list helpers > listConversationsViaCounts enumerates channels/mpims/ims and enriches via conversations.info [0.61ms]291✓ conversations list helpers > listConversationsViaCounts keeps the id when conversations.info fails [0.22ms]292✓ conversations list helpers > listConversationsViaCounts slices to limit and skips entries without an id [0.22ms]293294test/render.test.ts:295✓ renderSlackMessageContent > prefers blocks [0.12ms]296✓ renderSlackMessageContent > preserves usergroup and broadcast elements from rich text [0.49ms]297✓ renderSlackMessageContent > omits malformed usergroup and broadcast elements [0.10ms]298✓ renderSlackMessageContent > falls back to attachments when text is empty [0.14ms]299✓ renderSlackMessageContent > includes section fields and button URLs [0.11ms]300✓ renderSlackMessageContent > includes attachment fields [0.09ms]301✓ renderSlackMessageContent > renders forwarded message with author and source link [0.54ms]302✓ renderSlackMessageContent > renders forwarded message with author name only [0.08ms]303✓ renderSlackMessageContent > renders forwarded message with no author [0.06ms]304✓ renderSlackMessageContent > includes forwarded file links in quoted forwarded body [0.15ms]305✓ renderSlackMessageContent > renders nested forwarded attachments similarly to normal attachments [0.11ms]306✓ renderSlackMessageContent > deduplicates repeated forwarded body content [0.07ms]307✓ renderSlackMessageContent > handles cyclic forwarded attachments without infinite recursion [0.09ms]308✓ renderSlackMessageContent > does not treat link unfurl as forwarded message [0.08ms]309✓ renderSlackMessageContent > combines blocks and non-shared attachments [0.08ms]310311test/users.test.ts:312✓ resolveUserId > returns user ids unchanged [0.09ms]313✓ resolveUserId > returns W-prefixed user ids unchanged [0.05ms]314✓ resolveUserId > resolves @handle via users.list [0.13ms]315✓ resolveUserId > resolves email via users.lookupByEmail [0.10ms]316✓ resolveUserId > resolves @handle case-insensitively [0.08ms]317✓ resolveUserId > falls back to users.list when lookupByEmail is unavailable [0.18ms]318319test/url.test.ts:320✓ parseSlackMessageUrl > parses archives URL with p<digits> [0.06ms]321✓ parseSlackMessageUrl > captures thread_ts from query when present [0.10ms]322✓ buildSlackMessageUrl > builds a permalink for a root message [0.04ms]323✓ buildSlackMessageUrl > includes thread metadata for replies [0.03ms]324325test/compact-json.test.ts:326✓ pruneEmpty > drops null/undefined/empty containers [0.12ms]327328test/html-to-md.test.ts:329✓ htmlToMarkdown > converts basic HTML to markdown [7.49ms]330331test/mrkdwn.test.ts:332✓ slackMrkdwnToMarkdown > converts Slack-style links [0.07ms]333✓ slackMrkdwnToMarkdown > converts user and channel mentions [0.03ms]334✓ slackMrkdwnToMarkdown > converts :emoji: shortcodes to unicode [0.05ms]335336test/leveldb-reader.test.ts:337✓ leveldb-reader > readChromiumLevelDB > returns empty array for non-existent directory [0.63ms]338✓ leveldb-reader > readChromiumLevelDB > returns empty array for empty directory [0.50ms]339✓ leveldb-reader > readChromiumLevelDB > reads entries from SSTable files [2.68ms]340✓ leveldb-reader > readChromiumLevelDB > reads entries from log files [1.48ms]341✓ leveldb-reader > readChromiumLevelDB > reads from both SSTable and log files [1.12ms]342✓ leveldb-reader > readChromiumLevelDB > handles .sst file extension [0.78ms]343✓ leveldb-reader > findKeysContaining > filters entries by key substring [1.08ms]344✓ leveldb-reader > findKeysContaining > returns empty array when no matches [0.62ms]345✓ leveldb-reader > edge cases > handles invalid SSTable (wrong magic) [0.53ms]346✓ leveldb-reader > edge cases > handles empty SSTable file [0.44ms]347✓ leveldb-reader > edge cases > handles SSTable smaller than footer size [0.44ms]348349test/desktop-auth-paths.test.ts:350✓ Windows Store Slack package detection > matches known Microsoft Store package identifiers [0.13ms]351✓ Windows Store Slack package detection > does not match unrelated packages [0.03ms]352353test/message-compact.test.ts:354✓ toCompactMessage > includes file with path on successful download [0.23ms]355✓ toCompactMessage > includes file with error on failed download [0.12ms]356✓ toCompactMessage > excludes files with no downloadedPaths entry [0.08ms]357✓ toCompactMessage > mixes successful and failed downloads [0.08ms]358✓ toCompactMessage > failed download preserves file metadata for content-type filtering [0.08ms]359✓ passesContentTypeFilter with failed downloads > image message with failed download still passes image filter [0.13ms]360✓ passesContentTypeFilter with failed downloads > snippet message with failed download still passes snippet filter [0.13ms]361✓ passesContentTypeFilter with failed downloads > message without download entry has no files and passes text filter [0.08ms]362✓ toCompactMessage filename preservation > does not fall back to title when name is missing [0.09ms]363364test/targets.test.ts:365✓ parseMsgTarget > parses slack message URLs [0.09ms]366✓ parseMsgTarget > accepts #channel [0.10ms]367✓ parseMsgTarget > accepts bare channel names [0.04ms]368✓ parseMsgTarget > accepts channel IDs [0.03ms]369✓ parseMsgTarget > accepts user IDs as DM targets [0.03ms]370✓ parseMsgTarget > accepts W-prefixed user IDs as DM targets [0.04ms]371✓ parseMsgTarget > accepts user IDs with leading/trailing whitespace [0.03ms]372✓ parseMsgTarget > does not treat short U-prefixed strings as user IDs [0.02ms]373✓ parseMsgTarget > does not treat short W-prefixed strings as user IDs [0.02ms]374375test/message-draft-actions.test.ts:376✓ createDraftAction > creates a draft addressed to a channel id [1.57ms]377✓ createDraftAction > rejects --broadcast without a thread [0.32ms]378✓ createDraftAction > rejects --broadcast for a DM (user) target [0.22ms]379✓ createDraftAction > rejects --broadcast for a D... channel-id (DM) target [0.14ms]380✓ createDraftAction > rejects --broadcast on a channel name with no thread before any network call [0.11ms]381✓ createDraftAction > rejects --broadcast on a DM message URL before fetching the message [0.12ms]382✓ createDraftAction > uploads --attach files and wires their file ids into the draft [2.96ms]383✓ createDraftAction > aborts before any upload or drafts.create when an --attach path is missing [0.60ms]384✓ updateDraftAction > text-only edit preserves destination, thread, broadcast, and file ids [1.08ms]385✓ updateDraftAction > re-addressing a broadcast thread draft to a non-thread channel clears broadcast instead of erroring [0.21ms]386✓ updateDraftAction > explicit --broadcast on a non-thread draft still errors [0.24ms]387✓ updateDraftAction > refuses to update a scheduled draft rather than clearing its schedule [0.23ms]388✓ updateDraftAction > refuses a text-only update on a multi-destination draft, but allows re-addressing [0.31ms]389✓ updateDraftAction > re-addressing to a different thread does not inherit the old broadcast flag [0.21ms]390✓ updateDraftAction > --no-broadcast clears an inherited broadcast flag on a same-thread edit [0.16ms]391✓ updateDraftAction > rejects --broadcast when re-addressing to a DM (user) target [0.18ms]392✓ updateDraftAction > changing only --thread-ts (no --channel) does not inherit the old broadcast flag [0.22ms]393✓ updateDraftAction > rejects --broadcast on an existing DM-destination draft [0.18ms]394✓ updateDraftAction > rejects --broadcast when re-addressing to a channel name with no thread, before resolving it [0.13ms]395✓ updateDraftAction > merges --attach file ids into the draft's existing file_ids [1.20ms]396✓ updateDraftAction > merges --attach while de-duplicating ids already on the draft [1.57ms]397✓ deleteDraftAction > auto-fetches and pads last_updated_ts when omitted [0.49ms]398✓ listDraftsAction > hydrates channel display names [0.69ms]399{400 "ok": true,401 "draft": {402 "id": "Dr123",403 "destinations": [404 {405 "channel_id": "C11111111",406 "thread_ts": "1700000000.100000"407 }408 ]409 }410}411✓ message draft update (commander --broadcast wiring) > omitting broadcast flags does not force broadcast on (no Commander default-true gotcha) [1.01ms]412{413 "ok": true,414 "draft": {415 "id": "Dr123",416 "destinations": [417 {418 "channel_id": "C11111111",419 "thread_ts": "1700000000.100000",420 "broadcast": true421 }422 ]423 }424}425✓ message draft update (commander --broadcast wiring) > --broadcast sets broadcast true [0.57ms]426{427 "ok": true,428 "draft": {429 "id": "Dr123",430 "destinations": [431 {432 "channel_id": "C11111111",433 "thread_ts": "1700000000.100000"434 }435 ]436 }437}438✓ message draft update (commander --broadcast wiring) > --no-broadcast clears an inherited broadcast flag [0.53ms]439{440 "ok": true,441 "draft": {442 "id": "DrNew",443 "destinations": [444 {445 "channel_id": "C11111111"446 }447 ]448 }449}450✓ message draft create (commander --attach wiring) > collects repeatable --attach flags into an array [2.86ms]451✓ message draft unknown subcommand > old `message draft <target>` usage points to `message compose` [0.75ms]452✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 create: a drafts.create auth failure retries work WITHOUT re-uploading files [1.56ms]453✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 update: a drafts.update auth failure retries work WITHOUT re-uploading files [1.20ms]454✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 create: a non-auth drafts.create failure deletes the uploaded file [1.26ms]455✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 update: a stale drafts.update failure deletes the newly uploaded file only [1.13ms]456✓ draft attachments: orphan prevention across auth-retry and failed drafts > a failed draft with no attachments does not attempt files.delete [0.28ms]457458test/reactions.test.ts:459✓ reactions compaction > includes reactions only when enabled [0.25ms]460✓ reactions compaction > preserves W-prefixed user IDs while compacting reactions [0.10ms]461✓ reactions compaction > adds forwarded thread metadata for shared messages with thread_ts [0.14ms]462463test/canvas-create.test.ts:464✓ createCanvasFromMarkdown > sends Markdown content, title, and channel to canvases.create [0.36ms]465✓ createCanvasFromMarkdown > rejects empty Markdown before calling Slack [0.13ms]466✓ createCanvasFromMarkdown > rejects a success response without a canvas id [0.09ms]467✓ createCanvasFromMarkdown > uses Slack's Markdown canvas method with imported browser credentials [0.13ms]468✓ createCanvasFromMarkdown > rejects channel tabs with browser credentials before calling Slack [0.09ms]469✓ editCanvas > sends the documented replace change [0.43ms]470✓ editCanvas > sends the documented replace section change [0.02ms]471✓ editCanvas > sends the documented insert before change [0.02ms]472✓ editCanvas > sends the documented insert after change [0.02ms]473✓ editCanvas > sends the documented insert at start change [0.01ms]474✓ editCanvas > sends the documented insert at end change [0.01ms]475✓ editCanvas > sends the documented delete section change [0.01ms]476✓ editCanvas > sends the documented rename change [0.01ms]477✓ editCanvas > rejects invalid combinations before calling Slack [0.37ms]478✓ editCanvas > rejects empty Markdown and canvas ids before calling Slack [0.16ms]479✓ editCanvas > rejects Markdown over Slack's per-change limit before calling Slack [3.73ms]480✓ readCanvasMarkdownInput > reads a Markdown file without changing its contents [1.06ms]481✓ readCanvasMarkdownInput > accepts a Markdown blob [0.08ms]482✓ readCanvasMarkdownInput > requires exactly one source [0.10ms]483✓ readCanvasMarkdownInput > rejects an empty source [0.05ms]484✓ canvas create command > creates from an inline blob in the selected workspace [1.14ms]485✓ canvas create command > creates from a file and resolves a channel tab [1.28ms]486✓ canvas create command > rejects browser-auth channel tabs before resolving the channel [0.60ms]487✓ canvas create command > rejects missing or conflicting sources before authenticating [0.49ms]488✓ canvas edit command > replaces a canvas from a Markdown URL target [1.16ms]489✓ canvas edit command > inserts content from a file and passes a section id [1.28ms]490✓ canvas edit command > renames without a Markdown source [0.45ms]491✓ canvas edit command > rejects delete content and malformed inputs before authenticating [0.65ms]492✓ canvas edit command > rejects browser credentials before calling canvases.edit [0.37ms]493494test/user-cache.test.ts:495✓ user-cache helpers > collectReferencedUserIds excludes reaction users by default [0.08ms]496✓ user-cache helpers > collectReferencedUserIds includes reaction users when enabled [0.07ms]497✓ user-cache helpers > toReferencedUsers returns only resolved users keyed by id [0.07ms]498499test/emoji.test.ts:500✓ normalizeSlackReactionName > accepts :shortcode: [0.03ms]501✓ normalizeSlackReactionName > accepts raw names [0.02ms]502✓ normalizeSlackReactionName > accepts unicode emoji [0.05ms]503504test/search-files.test.ts:505Warning: skipping file F1: Failed to download file (404)506✓ searchFilesViaSearchApi > skips failed downloads and keeps later successful matches [2.33ms]507Warning: skipping file F1: Failed to download file (404)508✓ searchFilesInChannelsFallback > continues after a failed download in files.list results [2.28ms]509✓ SlackApiClient browser API guards > fails fast on rate-limit retry windows by default [0.80ms]510✓ SlackApiClient browser API guards > surfaces request timeouts with the Slack method name [0.31ms]511512test/messages.test.ts:513✓ fetchThread > returns the thread root and replies in chronological order [0.58ms]514515test/error-message.test.ts:516✓ errorMessage > returns the message for a plain error [0.34ms]517✓ errorMessage > stringifies non-Error values [0.05ms]518✓ errorMessage > appends a single Error cause [0.04ms]519✓ errorMessage > appends AggregateError causes from a failed fetch through a dead proxy [0.06ms]520✓ errorMessage > walks multi-level cause chains [0.04ms]521✓ errorMessage > terminates on a self-referential cause instead of looping forever [0.02ms]522✓ errorMessage > terminates on a longer cause cycle [0.03ms]523✓ errorMessage > does not crash on a cause that cannot be stringified [0.08ms]524✓ errorMessage > does not crash on a non-Error thrown value that cannot be stringified [0.02ms]525✓ errorMessage > caps how far a long cause chain is walked [0.19ms]526✓ errorMessage > collapses a cause that merely restates its parent [0.03ms]527528test/later.test.ts:529✓ fetchLaterItems > returns counts only when countsOnly is true [0.64ms]530✓ fetchLaterItems > filters to message items only [0.77ms]531✓ fetchLaterItems > filters by state [0.31ms]532✓ fetchLaterItems > state 'all' returns all items [0.17ms]533✓ fetchLaterItems > respects limit [0.14ms]534✓ fetchLaterItems > hydrates message content [0.22ms]535✓ fetchLaterItems > resolves DM user display names [0.17ms]536✓ fetchLaterItems > truncates long message content [0.20ms]537✓ updateLaterMark > sends mark=completed via multipart [0.29ms]538✓ updateLaterMark > sends mark=archived via multipart [0.08ms]539✓ updateLaterMark > sends mark=uncompleted via multipart [0.07ms]540✓ updateLaterMark > sends mark=unarchived via multipart [0.07ms]541✓ saveLater > calls saved.add with correct params [0.13ms]542✓ removeLater > calls saved.delete with correct params [0.11ms]543✓ setLaterReminder > calls saved.update via multipart with date_due [0.18ms]544✓ parseReminderDuration > parses minutes [0.26ms]545✓ parseReminderDuration > parses hours [0.04ms]546✓ parseReminderDuration > parses fractional hours [0.03ms]547✓ parseReminderDuration > parses days [0.02ms]548✓ parseReminderDuration > parses 'tomorrow' as next day 9 AM [0.09ms]549✓ parseReminderDuration > parses day names [0.04ms]550✓ parseReminderDuration > passes through unix timestamps [0.02ms]551✓ parseReminderDuration > supports verbose unit names [0.04ms]552✓ parseReminderDuration > throws on invalid input [0.09ms]553554test/user-id.test.ts:555✓ isUserId > accepts U-prefixed and W-prefixed Slack user IDs [0.03ms]556✓ isUserId > preserves the existing length and character restrictions [0.04ms]557558test/drafts.test.ts:559✓ padDraftTs > pads short fractional parts to 7 digits [0.03ms]560✓ padDraftTs > leaves 7-digit fractional parts unchanged [0.02ms]561✓ padDraftTs > leaves timestamps without a fractional part unchanged [0.01ms]562✓ draftTextToBlocks > wraps plain text in a rich_text section [0.07ms]563✓ draftTextToBlocks > converts bullet lists to rich_text lists [0.13ms]564✓ parseDraftRecord > parses a raw draft into a compact shape [0.18ms]565✓ parseDraftRecord > returns null for records without an id [0.03ms]566✓ listDrafts > requests active drafts and parses the result [0.27ms]567✓ listDrafts > omits is_active when activeOnly is false [0.10ms]568✓ createDraft > sends blocks, destination, and composer flag [0.21ms]569✓ createDraft > omits thread fields for channel drafts [0.11ms]570✓ createDraft > includes file_ids on the wire when fileIds is supplied [0.16ms]571✓ updateDraft > sends draft_id and a padded last-updated ts [0.19ms]572✓ deleteDraft > deletes with an explicit last-updated ts [0.11ms]573✓ deleteDraft > fetches the last-updated ts from drafts.list when omitted [0.15ms]574✓ deleteDraft > throws when the draft does not exist [0.08ms]575✓ findDraft > lists all drafts (including inactive) and finds by id [0.10ms]576✓ findDraft > prefers a matching record that has last_updated_ts over a malformed duplicate [0.13ms]577578 399 pass579 0 fail580 817 expect() calls581Ran 399 tests across 38 files. [487.00ms]fixupPhase
582shrinking RPATHs of ELF executables and libraries in /nix/store/irkpv0wr0v7n11xqlx1im5vxr836jhsy-agent-slack-0.10.2583checking for references to /build/ in /nix/store/irkpv0wr0v7n11xqlx1im5vxr836jhsy-agent-slack-0.10.2...584patching script interpreter paths in /nix/store/irkpv0wr0v7n11xqlx1im5vxr836jhsy-agent-slack-0.10.2installCheckPhase
585Executing versionCheckPhase586Successfully managed to find version 0.10.2 in the output of the command /nix/store/irkpv0wr0v7n11xqlx1im5vxr836jhsy-agent-slack-0.10.2/bin/agent-slack --version5870.10.2588Finished versionCheckPhase589no Makefile or custom installCheckPhase, doing nothing