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