agent-slack-0.10.2
checks.x86_64-linux.home-manager-coder
· build #814
· raw
1tribuchet: building on jamie2Using 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/update-nix-sources.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/bash"8./scripts/release.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/sh"9./scripts/install-skill.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-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 [173.00ms]33/build/sourcebuildPhase
34Bundled 360 modules in 30ms3536 agent-slack.js 1.98 MB (entry point)37checkPhase
38bun test v1.4.2 (744846f84)3940test/desktop-auth-paths.test.ts:41(pass) Windows Store Slack package detection > matches known Microsoft Store package identifiers [0.49ms]42(pass) Windows Store Slack package detection > does not match unrelated packages [0.03ms]4344test/messages.test.ts:45(pass) fetchThread > returns the thread root and replies in chronological order [3.74ms]4647test/parse-limit.test.ts:48(pass) parseLimit > returns undefined when no value given [0.04ms]49(pass) parseLimit > parses valid positive integers [0.06ms]50(pass) parseLimit > rejects non-numeric strings [0.15ms]51(pass) parseLimit > rejects zero [0.01ms]52(pass) parseLimit > rejects negative numbers [0.01ms]53(pass) parseLimit > rejects floats (uses integer part)54(pass) requireMessageTs > returns trimmed ts when present [0.03ms]55(pass) requireMessageTs > throws when missing [0.01ms]56(pass) requireMessageTs > throws when blank [0.01ms]5758test/rich-text.test.ts:59(pass) parseInlineElements > plain text returns single text element [0.91ms]60(pass) parseInlineElements > *bold* is parsed with bold style [0.03ms]61(pass) parseInlineElements > _italic_ is parsed with italic style [0.02ms]62(pass) parseInlineElements > ~strike~ is parsed with strike style [0.01ms]63(pass) parseInlineElements > `code` is parsed with code style [0.01ms]64(pass) parseInlineElements > :emoji: shortcode is parsed as an emoji element [0.01ms]65(pass) parseInlineElements > emoji names with underscores are not parsed as italic text [0.01ms]66(pass) parseInlineElements > time-like colon text is not parsed as an emoji element67(pass) parseInlineElements > <url|label> is parsed as link with text [0.09ms]68(pass) parseInlineElements > <url> is parsed as link without text [0.02ms]69(pass) parseInlineElements > <mailto|label> is parsed as link with text [0.01ms]70(pass) parseInlineElements > non-url angle bracket text is preserved as text [0.01ms]71(pass) parseInlineElements > non-url labeled angle bracket text is preserved as text72(pass) parseInlineElements > channel mention tokens are parsed as channel elements [0.01ms]73(pass) parseInlineElements > bare channel mention tokens are parsed as channel elements [0.01ms]74(pass) parseInlineElements > usergroup mention tokens are parsed as usergroup elements75(pass) textToRichTextBlocks > plain text returns null [0.62ms]76(pass) textToRichTextBlocks > inline-only formatting returns null by default [0.03ms]77(pass) textToRichTextBlocks > non-url angle bracket text does not trigger rich text blocks [0.03ms]78(pass) textToRichTextBlocks > mixed non-url angle bracket text and formatting preserves brackets [0.03ms]79(pass) textToRichTextBlocks > inline-only formatting can produce rich text blocks [0.04ms]80(pass) textToRichTextBlocks > mailto links can produce rich text blocks when inline formatting is included [0.02ms]81(pass) textToRichTextBlocks > channel mentions can produce rich text blocks when inline formatting is included [0.02ms]82(pass) textToRichTextBlocks > bullet list with - prefix [0.13ms]83(pass) textToRichTextBlocks > bullet list with bullet character [0.15ms]84(pass) textToRichTextBlocks > sub-bullets with indentation [0.05ms]85(pass) textToRichTextBlocks > white bullet sub-bullets under bullet [0.03ms]86(pass) textToRichTextBlocks > mixed text and bullets [0.03ms]87(pass) textToRichTextBlocks > numbered list [0.07ms]88(pass) textToRichTextBlocks > bold text in list items is parsed [0.03ms]89(pass) textToRichTextBlocks > emoji and channel references in list items are parsed [0.05ms]90(pass) textToRichTextBlocks > Slack manual links and CommonMark links remain distinct in list items [0.03ms]91(pass) textToRichTextBlocks > code block is preserved [0.04ms]92(pass) textToRichTextBlocks > blockquote is preserved [0.03ms]9394test/client.test.ts:95(pass) SlackApiClient browser multipart transport > retries HTTP 429 responses using Retry-After [2.46ms]9697test/user-cache.test.ts:98(pass) user-cache helpers > collectReferencedUserIds excludes reaction users by default [0.70ms]99(pass) user-cache helpers > collectReferencedUserIds includes reaction users when enabled [0.05ms]100(pass) user-cache helpers > toReferencedUsers returns only resolved users keyed by id [0.08ms]101102test/html-to-md.test.ts:103(pass) htmlToMarkdown > converts basic HTML to markdown [4.19ms]104105test/files.test.ts:106(pass) downloadSlackFile > downloads file and writes to disk [4.47ms]107(pass) downloadSlackFile > returns cached path when file already exists [1.09ms]108(pass) downloadSlackFile > throws SlackDownloadError on HTTP 404 [0.86ms]109(pass) downloadSlackFile > throws SlackDownloadError with httpStatus on HTTP error [0.61ms]110(pass) downloadSlackFile > throws SlackDownloadError on HTML auth page [0.85ms]111(pass) downloadSlackFile > throws SlackDownloadError on network error [0.78ms]112(pass) downloadSlackFile > throws SlackDownloadError when reading html body fails [0.73ms]113(pass) downloadSlackFile > throws SlackDownloadError when reading binary body fails [0.62ms]114(pass) tryDownloadSlackFile > returns ok result on success [1.05ms]115(pass) tryDownloadSlackFile > returns failure result on HTTP 404 [0.52ms]116(pass) tryDownloadSlackFile > returns failure result on network error [0.55ms]117(pass) tryDownloadSlackFile > propagates disk/write errors [0.90ms]118Warning: skipping file F1: Downloaded auth/login page instead of canvas content (token may be expired)119(pass) downloadMessageFiles > records canvas auth failures as structured errors [7.54ms]120Warning: skipping file F2: Failed to download file (404)121(pass) downloadMessageFiles > records non-canvas download failures with a local error path [2.29ms]122123test/users.test.ts:124(pass) resolveUserId > returns user ids unchanged [0.25ms]125(pass) resolveUserId > returns W-prefixed user ids unchanged [0.12ms]126(pass) resolveUserId > resolves @handle via users.list [0.14ms]127(pass) resolveUserId > resolves email via users.lookupByEmail [0.06ms]128(pass) resolveUserId > resolves @handle case-insensitively [0.12ms]129(pass) resolveUserId > falls back to users.list when lookupByEmail is unavailable [0.12ms]130131test/search-command.test.ts:132(pass) search referenced users > searchSlack returns shared referenced_users while preserving canonical ids [6.07ms]133(pass) search referenced users > search command forwards --refresh-users and bypasses cached user lookups [5.10ms]134135test/leveldb-reader.test.ts:136(pass) leveldb-reader > readChromiumLevelDB > returns empty array for non-existent directory [0.48ms]137(pass) leveldb-reader > readChromiumLevelDB > returns empty array for empty directory [0.30ms]138(pass) leveldb-reader > readChromiumLevelDB > reads entries from SSTable files [1.55ms]139(pass) leveldb-reader > readChromiumLevelDB > reads entries from log files [0.99ms]140(pass) leveldb-reader > readChromiumLevelDB > reads from both SSTable and log files [0.93ms]141(pass) leveldb-reader > readChromiumLevelDB > handles .sst file extension [0.50ms]142(pass) leveldb-reader > findKeysContaining > filters entries by key substring [0.66ms]143(pass) leveldb-reader > findKeysContaining > returns empty array when no matches [0.67ms]144(pass) leveldb-reader > edge cases > handles invalid SSTable (wrong magic) [0.44ms]145(pass) leveldb-reader > edge cases > handles empty SSTable file [0.37ms]146(pass) leveldb-reader > edge cases > handles SSTable smaller than footer size [0.50ms]147148test/reactions.test.ts:149(pass) reactions compaction > includes reactions only when enabled [0.18ms]150(pass) reactions compaction > preserves W-prefixed user IDs while compacting reactions [0.05ms]151(pass) reactions compaction > adds forwarded thread metadata for shared messages with thread_ts [0.28ms]152153test/user-id.test.ts:154(pass) isUserId > accepts U-prefixed and W-prefixed Slack user IDs [0.01ms]155(pass) isUserId > preserves the existing length and character restrictions [0.02ms]156157test/targets.test.ts:158(pass) parseMsgTarget > parses slack message URLs [0.26ms]159(pass) parseMsgTarget > accepts #channel [0.07ms]160(pass) parseMsgTarget > accepts bare channel names [0.02ms]161(pass) parseMsgTarget > accepts channel IDs [0.04ms]162(pass) parseMsgTarget > accepts user IDs as DM targets [0.02ms]163(pass) parseMsgTarget > accepts W-prefixed user IDs as DM targets [0.01ms]164(pass) parseMsgTarget > accepts user IDs with leading/trailing whitespace [0.02ms]165(pass) parseMsgTarget > does not treat short U-prefixed strings as user IDs166(pass) parseMsgTarget > does not treat short W-prefixed strings as user IDs [0.01ms]167168test/message-draft-actions.test.ts:169(pass) createDraftAction > creates a draft addressed to a channel id [1.00ms]170(pass) createDraftAction > rejects --broadcast without a thread [0.18ms]171(pass) createDraftAction > rejects --broadcast for a DM (user) target [0.09ms]172(pass) createDraftAction > rejects --broadcast for a D... channel-id (DM) target [0.07ms]173(pass) createDraftAction > rejects --broadcast on a channel name with no thread before any network call [0.07ms]174(pass) createDraftAction > rejects --broadcast on a DM message URL before fetching the message [0.07ms]175(pass) createDraftAction > uploads --attach files and wires their file ids into the draft [2.66ms]176(pass) createDraftAction > aborts before any upload or drafts.create when an --attach path is missing [0.30ms]177(pass) updateDraftAction > text-only edit preserves destination, thread, broadcast, and file ids [0.76ms]178(pass) updateDraftAction > re-addressing a broadcast thread draft to a non-thread channel clears broadcast instead of erroring [0.12ms]179(pass) updateDraftAction > explicit --broadcast on a non-thread draft still errors [0.16ms]180(pass) updateDraftAction > refuses to update a scheduled draft rather than clearing its schedule [0.14ms]181(pass) updateDraftAction > refuses a text-only update on a multi-destination draft, but allows re-addressing [0.21ms]182(pass) updateDraftAction > re-addressing to a different thread does not inherit the old broadcast flag [0.10ms]183(pass) updateDraftAction > --no-broadcast clears an inherited broadcast flag on a same-thread edit [0.08ms]184(pass) updateDraftAction > rejects --broadcast when re-addressing to a DM (user) target [0.08ms]185(pass) updateDraftAction > changing only --thread-ts (no --channel) does not inherit the old broadcast flag [0.09ms]186(pass) updateDraftAction > rejects --broadcast on an existing DM-destination draft [0.13ms]187(pass) updateDraftAction > rejects --broadcast when re-addressing to a channel name with no thread, before resolving it [0.08ms]188(pass) updateDraftAction > merges --attach file ids into the draft's existing file_ids [1.13ms]189(pass) updateDraftAction > merges --attach while de-duplicating ids already on the draft [0.88ms]190(pass) deleteDraftAction > auto-fetches and pads last_updated_ts when omitted [0.24ms]191(pass) listDraftsAction > hydrates channel display names [0.48ms]192{193 "ok": true,194 "draft": {195 "id": "Dr123",196 "destinations": [197 {198 "channel_id": "C11111111",199 "thread_ts": "1700000000.100000"200 }201 ]202 }203}204(pass) message draft update (commander --broadcast wiring) > omitting broadcast flags does not force broadcast on (no Commander default-true gotcha) [1.10ms]205{206 "ok": true,207 "draft": {208 "id": "Dr123",209 "destinations": [210 {211 "channel_id": "C11111111",212 "thread_ts": "1700000000.100000",213 "broadcast": true214 }215 ]216 }217}218(pass) message draft update (commander --broadcast wiring) > --broadcast sets broadcast true [0.47ms]219{220 "ok": true,221 "draft": {222 "id": "Dr123",223 "destinations": [224 {225 "channel_id": "C11111111",226 "thread_ts": "1700000000.100000"227 }228 ]229 }230}231(pass) message draft update (commander --broadcast wiring) > --no-broadcast clears an inherited broadcast flag [0.50ms]232{233 "ok": true,234 "draft": {235 "id": "DrNew",236 "destinations": [237 {238 "channel_id": "C11111111"239 }240 ]241 }242}243(pass) message draft create (commander --attach wiring) > collects repeatable --attach flags into an array [2.02ms]244(pass) message draft unknown subcommand > old `message draft <target>` usage points to `message compose` [0.71ms]245(pass) draft attachments: orphan prevention across auth-retry and failed drafts > #2 create: a drafts.create auth failure retries work WITHOUT re-uploading files [1.12ms]246(pass) draft attachments: orphan prevention across auth-retry and failed drafts > #2 update: a drafts.update auth failure retries work WITHOUT re-uploading files [1.28ms]247(pass) draft attachments: orphan prevention across auth-retry and failed drafts > #3 create: a non-auth drafts.create failure deletes the uploaded file [0.93ms]248(pass) draft attachments: orphan prevention across auth-retry and failed drafts > #3 update: a stale drafts.update failure deletes the newly uploaded file only [1.07ms]249(pass) draft attachments: orphan prevention across auth-retry and failed drafts > a failed draft with no attachments does not attempt files.delete [0.15ms]250251test/compact-json.test.ts:252(pass) pruneEmpty > drops null/undefined/empty containers [0.08ms]253254test/safe-mode.test.ts:255(pass) isSafeModeEnabled > enabled via CLI flag [0.04ms]256(pass) isSafeModeEnabled > enabled for env value "1" [0.01ms]257(pass) isSafeModeEnabled > enabled for env value "true"258(pass) isSafeModeEnabled > enabled for env value "TRUE"259(pass) isSafeModeEnabled > enabled for env value "yes"260(pass) isSafeModeEnabled > enabled for env value "on"261(pass) isSafeModeEnabled > enabled for env value " 1 "262(pass) isSafeModeEnabled > disabled for env value "0"263(pass) isSafeModeEnabled > disabled for env value "false"264(pass) isSafeModeEnabled > disabled for env value "off"265(pass) isSafeModeEnabled > disabled for env value "no"266(pass) isSafeModeEnabled > disabled for env value ""267(pass) isSafeModeEnabled > disabled when env var is unset and flag is absent [0.01ms]268(pass) safeModeBlockedError > names the blocked action [0.02ms]269(pass) redirectSendToDraft > rejects unsupported send option {270 attach: [ "./report.md" ],271} [0.16ms]272(pass) redirectSendToDraft > rejects unsupported send option {273 blocks: "/tmp/blocks.json",274}275(pass) redirectSendToDraft > rejects unsupported send option {276 schedule: "2030-01-01T00:00:00Z",277}278(pass) redirectSendToDraft > rejects unsupported send option {279 scheduleIn: "3h",280}281(pass) redirectSendToDraft > rejects unsupported send option {282 replyBroadcast: true,283}284(pass) redirectSendToDraft > lists all unsupported flags at once [0.05ms]285(pass) redirectSendToDraft > rejects in CI where no interactive editor is available [0.25ms]286⚠ Safe mode active: redirecting "message send" → draft editor. Nothing posts until a human sends it from the editor.287(pass) redirectSendToDraft > opens a draft with the send text and thread context [0.18ms]288289test/channel-admin.test.ts:290(pass) parseInviteUsersCsv > splits comma-separated values, trims whitespace, and deduplicates [0.05ms]291(pass) parseInviteUsersCsv > returns empty array when input has no values [0.01ms]292(pass) splitEmailsFromInviteTargets > separates email targets from non-email targets [0.06ms]293(pass) splitEmailsFromInviteTargets > deduplicates emails [0.01ms]294295test/canvas-create.test.ts:296(pass) createCanvasFromMarkdown > sends Markdown content, title, and channel to canvases.create [0.21ms]297(pass) createCanvasFromMarkdown > rejects empty Markdown before calling Slack [0.07ms]298(pass) createCanvasFromMarkdown > rejects a success response without a canvas id [0.06ms]299(pass) createCanvasFromMarkdown > uses Slack's Markdown canvas method with imported browser credentials [0.07ms]300(pass) createCanvasFromMarkdown > rejects channel tabs with browser credentials before calling Slack [0.08ms]301(pass) editCanvas > sends the documented replace change [0.27ms]302(pass) editCanvas > sends the documented replace section change [0.01ms]303(pass) editCanvas > sends the documented insert before change304(pass) editCanvas > sends the documented insert after change305(pass) editCanvas > sends the documented insert at start change [0.01ms]306(pass) editCanvas > sends the documented insert at end change307(pass) editCanvas > sends the documented delete section change308(pass) editCanvas > sends the documented rename change309(pass) editCanvas > rejects invalid combinations before calling Slack [0.19ms]310(pass) editCanvas > rejects empty Markdown and canvas ids before calling Slack [0.08ms]311(pass) editCanvas > rejects Markdown over Slack's per-change limit before calling Slack [7.69ms]312(pass) readCanvasMarkdownInput > reads a Markdown file without changing its contents [1.13ms]313(pass) readCanvasMarkdownInput > accepts a Markdown blob [0.05ms]314(pass) readCanvasMarkdownInput > requires exactly one source [0.07ms]315(pass) readCanvasMarkdownInput > rejects an empty source [0.03ms]316(pass) canvas create command > creates from an inline blob in the selected workspace [0.86ms]317(pass) canvas create command > creates from a file and resolves a channel tab [1.20ms]318(pass) canvas create command > rejects browser-auth channel tabs before resolving the channel [0.41ms]319(pass) canvas create command > rejects missing or conflicting sources before authenticating [0.44ms]320(pass) canvas edit command > replaces a canvas from a Markdown URL target [0.69ms]321(pass) canvas edit command > inserts content from a file and passes a section id [1.14ms]322(pass) canvas edit command > renames without a Markdown source [0.30ms]323(pass) canvas edit command > rejects delete content and malformed inputs before authenticating [0.41ms]324(pass) canvas edit command > rejects browser credentials before calling canvases.edit [0.26ms]325326test/message-compact.test.ts:327(pass) toCompactMessage > includes file with path on successful download [0.14ms]328(pass) toCompactMessage > includes file with error on failed download [0.05ms]329(pass) toCompactMessage > excludes files with no downloadedPaths entry [0.02ms]330(pass) toCompactMessage > mixes successful and failed downloads [0.06ms]331(pass) toCompactMessage > failed download preserves file metadata for content-type filtering [0.03ms]332(pass) passesContentTypeFilter with failed downloads > image message with failed download still passes image filter [0.08ms]333(pass) passesContentTypeFilter with failed downloads > snippet message with failed download still passes snippet filter [0.03ms]334(pass) passesContentTypeFilter with failed downloads > message without download entry has no files and passes text filter [0.02ms]335(pass) toCompactMessage filename preservation > does not fall back to title when name is missing [0.04ms]336337test/message-reaction-filters.test.ts:338(pass) parseReactionFilters > normalizes shortcodes, names, and unicode [0.39ms]339(pass) parseReactionFilters > returns empty array when unset [0.01ms]340(pass) passesReactionNameFilters > matches when required reaction is present [0.09ms]341(pass) passesReactionNameFilters > does not match when required reaction is missing [0.02ms]342(pass) passesReactionNameFilters > does not match when excluded reaction is present [0.02ms]343(pass) passesReactionNameFilters > matches when excluded reaction is absent344(pass) passesReactionNameFilters > supports with + without together [0.01ms]345(pass) requireOldestWhenReactionFiltersUsed > returns oldest when no reaction filters are used [0.02ms]346(pass) requireOldestWhenReactionFiltersUsed > returns trimmed oldest when reaction filters are used [0.01ms]347(pass) requireOldestWhenReactionFiltersUsed > throws when reaction filters are used without oldest [0.03ms]348349test/render.test.ts:350(pass) renderSlackMessageContent > prefers blocks [0.06ms]351(pass) renderSlackMessageContent > preserves usergroup and broadcast elements from rich text [0.23ms]352(pass) renderSlackMessageContent > omits malformed usergroup and broadcast elements [0.06ms]353(pass) renderSlackMessageContent > falls back to attachments when text is empty [0.05ms]354(pass) renderSlackMessageContent > includes section fields and button URLs [0.06ms]355(pass) renderSlackMessageContent > includes attachment fields [0.04ms]356(pass) renderSlackMessageContent > renders forwarded message with author and source link [0.16ms]357(pass) renderSlackMessageContent > renders forwarded message with author name only [0.04ms]358(pass) renderSlackMessageContent > renders forwarded message with no author [0.04ms]359(pass) renderSlackMessageContent > includes forwarded file links in quoted forwarded body [0.07ms]360(pass) renderSlackMessageContent > renders nested forwarded attachments similarly to normal attachments [0.12ms]361(pass) renderSlackMessageContent > deduplicates repeated forwarded body content [0.11ms]362(pass) renderSlackMessageContent > handles cyclic forwarded attachments without infinite recursion [0.06ms]363(pass) renderSlackMessageContent > does not treat link unfurl as forwarded message [0.06ms]364(pass) renderSlackMessageContent > combines blocks and non-shared attachments [0.06ms]365366test/update.test.ts:367(pass) compareSemver > equal versions return 0 [0.05ms]368(pass) compareSemver > strips v prefix [0.01ms]369(pass) compareSemver > newer major [0.03ms]370(pass) compareSemver > newer minor [0.01ms]371(pass) compareSemver > newer patch372(pass) compareSemver > older version returns negative373(pass) compareSemver > handles 0.x versions [0.02ms]374375test/workspace-selector.test.ts:376(pass) resolveWorkspaceSelector > matches exact URL [0.07ms]377(pass) resolveWorkspaceSelector > matches unique substring by host/team [0.12ms]378(pass) resolveWorkspaceSelector > matches unique substring by workspace name [0.02ms]379(pass) resolveWorkspaceSelector > returns ambiguity when selector matches multiple workspaces [0.03ms]380(pass) resolveWorkspaceSelector > returns no match when selector does not match [0.03ms]381382test/message-send.test.ts:383(pass) sendMessage > posts a normal message when no attachments are passed [0.99ms]384(pass) sendMessage > --no-unfurl disables link and media previews for immediate sends [0.10ms]385(pass) sendMessage > opens and sends to a DM for a W-prefixed user target [0.22ms]386(pass) sendMessage > returns a permalink when the workspace was resolved implicitly [0.09ms]387(pass) sendMessage > threaded reply returns thread_ts distinct from ts [0.13ms]388(pass) sendMessage > --reply-broadcast with --thread-ts sends reply_broadcast: true [0.10ms]389(pass) sendMessage > --reply-broadcast omits the field from chat.postMessage when flag is absent [0.08ms]390(pass) sendMessage > --reply-broadcast without --thread-ts throws [0.11ms]391(pass) sendMessage > --reply-broadcast on a URL target broadcasts using the message's derived thread_ts [0.43ms]392(pass) sendMessage > --reply-broadcast on a DM target throws (broadcasting is not meaningful for DMs) [0.11ms]393(pass) sendMessage > --reply-broadcast works alongside --blocks payload [1.72ms]394(pass) sendMessage > uploads attachment and uses message text as initial comment [1.25ms]395(pass) sendMessage > --no-unfurl cannot be combined with file attachments [0.10ms]396(pass) sendMessage > sends initial comment only for the first attachment [1.50ms]397(pass) sendMessage > uploads attachment without text when text is empty [1.11ms]398(pass) sendMessage > --blocks: reads Block Kit JSON from file and passes through unchanged [0.84ms]399(pass) sendMessage > --blocks: errors when JSON is not an array [0.94ms]400(pass) sendMessage > --blocks: errors on malformed JSON [0.91ms]401(pass) sendMessage > --blocks: overrides markdown-to-rich-text conversion when text is also provided [0.80ms]402(pass) sendMessage > sends Slack manual links in lists as rich-text link blocks [0.19ms]403(pass) sendMessage > --blocks: errors when an array element is not an object [0.66ms]404(pass) sendMessage > --schedule sends through chat.scheduleMessage and returns scheduled metadata [0.38ms]405(pass) sendMessage > --schedule-in computes a relative post_at [0.23ms]406(pass) sendMessage > --no-unfurl disables link and media previews for scheduled sends [0.11ms]407(pass) sendMessage > --schedule composes with blocks, thread replies, and reply broadcast [0.98ms]408(pass) sendMessage > --schedule cannot be combined with file attachments [0.12ms]409(pass) composeMessage > --no-unfurl disables link and media previews when CI sends immediately [0.41ms]410(pass) composeMessage > keeps Slack's default preview behavior for a standard CI send [0.12ms]411(pass) composeMessage > --no-unfurl disables previews for a URL target when CI sends immediately [0.36ms]412(pass) scheduled message management > lists scheduled messages and forwards channel filters [0.34ms]413(pass) scheduled message management > cancels scheduled messages with the required channel id [0.19ms]414(pass) scheduled message time parsing > parses absolute ISO timestamps with explicit timezones [0.05ms]415(pass) scheduled message time parsing > parses named relative times like monday 9am [5.45ms]416(pass) scheduled message time parsing > rejects schedule times beyond Slack's 120 day limit [0.07ms]417(pass) editMessage > edits a normal text message without blocks [0.30ms]418(pass) editMessage > edits literal angle bracket text without blocks [0.11ms]419(pass) editMessage > edits a message URL with a link label without blocks [0.12ms]420(pass) editMessage > edits an inline mailto link without escaping it [0.10ms]421(pass) editMessage > edits an inline usergroup mention without escaping it [0.10ms]422(pass) editMessage > edits a channel target with inline formatting without blocks [0.10ms]423(pass) editMessage > edits a channel target with rich text blocks when text contains a list [0.13ms]424(pass) editMessage > edits a normal message without blocks when no --blocks file is passed [0.09ms]425(pass) editMessage > edits a message URL with Block Kit JSON from file [0.96ms]426(pass) editMessage > edits a channel target with --ts and Block Kit JSON from file [0.92ms]427428test/channels.test.ts:429(pass) conversations list helpers > listUserConversations calls users.conversations with defaults [0.18ms]430(pass) conversations list helpers > listUserConversations forwards user/limit/cursor [0.06ms]431(pass) conversations list helpers > listAllConversations calls conversations.list with defaults [0.09ms]432(pass) conversations list helpers > listAllConversations forwards limit/cursor [0.04ms]433(pass) conversations list helpers > listUserConversations passes through small limits [0.04ms]434(pass) conversations list helpers > listUserConversations clamps high limits to 1000 [0.03ms]435(pass) conversations list helpers > normalizeConversationsPage extracts channels and next cursor [0.03ms]436(pass) conversations list helpers > normalizeConversationsPage handles missing response_metadata [0.01ms]437(pass) conversations list helpers > normalizeConversationsPage handles empty next_cursor [0.03ms]438(pass) conversations list helpers > listConversationsViaCounts enumerates channels/mpims/ims and enriches via conversations.info [0.30ms]439(pass) conversations list helpers > listConversationsViaCounts keeps the id when conversations.info fails [0.11ms]440(pass) conversations list helpers > listConversationsViaCounts slices to limit and skips entries without an id [0.10ms]441442test/search-query.test.ts:443(pass) W-prefixed user IDs in search > resolves a W-prefixed user ID to a from filter [0.16ms]444(pass) W-prefixed user IDs in search > returns a W-prefixed user ID without scanning users [0.13ms]445446test/error-message.test.ts:447(pass) errorMessage > returns the message for a plain error [0.07ms]448(pass) errorMessage > stringifies non-Error values [0.03ms]449(pass) errorMessage > appends a single Error cause [0.03ms]450(pass) errorMessage > appends AggregateError causes from a failed fetch through a dead proxy [0.07ms]451(pass) errorMessage > walks multi-level cause chains [0.02ms]452(pass) errorMessage > terminates on a self-referential cause instead of looping forever [0.02ms]453(pass) errorMessage > terminates on a longer cause cycle [0.01ms]454(pass) errorMessage > does not crash on a cause that cannot be stringified [0.05ms]455(pass) errorMessage > does not crash on a non-Error thrown value that cannot be stringified [0.01ms]456(pass) errorMessage > caps how far a long cause chain is walked [0.13ms]457(pass) errorMessage > collapses a cause that merely restates its parent [0.02ms]458459test/channel-command.test.ts:460(pass) channel list command > defaults to users.conversations for current user [0.85ms]461(pass) channel list command > with --user id uses users.conversations and sets user directly [0.26ms]462(pass) channel list command > with --user handle resolves via users.list before users.conversations [0.32ms]463(pass) channel list command > with --user unknown handle is a hard error [0.25ms]464(pass) channel list command > with --all uses conversations.list [0.23ms]465(pass) channel list command > forwards --limit and --cursor [0.21ms]466(pass) channel list command > --all and --user is a hard error [0.27ms]467(pass) channel list command > invalid --limit is a hard error [0.23ms]468(pass) channel list command > help text documents single-page pagination model [0.13ms]469(pass) channel mark command > URL target extracts workspace from URL [0.50ms]470(pass) channel mark command > URL target rejects --workspace flag [0.94ms]471(pass) channel mark command > channel target requires --ts [0.39ms]472(pass) channel mark command > URL target allows --ts override [0.30ms]473(pass) channel mark command > channel target with --ts calls conversations.mark [0.30ms]474475test/later.test.ts:476(pass) fetchLaterItems > returns counts only when countsOnly is true [0.42ms]477(pass) fetchLaterItems > filters to message items only [0.48ms]478(pass) fetchLaterItems > filters by state [0.17ms]479(pass) fetchLaterItems > state 'all' returns all items [0.10ms]480(pass) fetchLaterItems > respects limit [0.10ms]481(pass) fetchLaterItems > hydrates message content [0.12ms]482(pass) fetchLaterItems > resolves DM user display names [0.11ms]483(pass) fetchLaterItems > truncates long message content [0.14ms]484(pass) updateLaterMark > sends mark=completed via multipart [0.13ms]485(pass) updateLaterMark > sends mark=archived via multipart [0.05ms]486(pass) updateLaterMark > sends mark=uncompleted via multipart [0.04ms]487(pass) updateLaterMark > sends mark=unarchived via multipart [0.04ms]488(pass) saveLater > calls saved.add with correct params [0.07ms]489(pass) removeLater > calls saved.delete with correct params [0.13ms]490(pass) setLaterReminder > calls saved.update via multipart with date_due [0.08ms]491(pass) parseReminderDuration > parses minutes [0.13ms]492(pass) parseReminderDuration > parses hours [0.02ms]493(pass) parseReminderDuration > parses fractional hours [0.01ms]494(pass) parseReminderDuration > parses days [0.01ms]495(pass) parseReminderDuration > parses 'tomorrow' as next day 9 AM [0.07ms]496(pass) parseReminderDuration > parses day names [0.02ms]497(pass) parseReminderDuration > passes through unix timestamps [0.01ms]498(pass) parseReminderDuration > supports verbose unit names [0.04ms]499(pass) parseReminderDuration > throws on invalid input [0.11ms]500501test/mrkdwn.test.ts:502(pass) slackMrkdwnToMarkdown > converts Slack-style links [0.07ms]503(pass) slackMrkdwnToMarkdown > converts user and channel mentions [0.02ms]504(pass) slackMrkdwnToMarkdown > converts :emoji: shortcodes to unicode [0.03ms]505506test/drafts.test.ts:507(pass) padDraftTs > pads short fractional parts to 7 digits [0.02ms]508(pass) padDraftTs > leaves 7-digit fractional parts unchanged509(pass) padDraftTs > leaves timestamps without a fractional part unchanged510(pass) draftTextToBlocks > wraps plain text in a rich_text section [0.04ms]511(pass) draftTextToBlocks > converts bullet lists to rich_text lists [0.04ms]512(pass) parseDraftRecord > parses a raw draft into a compact shape [0.12ms]513(pass) parseDraftRecord > returns null for records without an id [0.02ms]514(pass) listDrafts > requests active drafts and parses the result [0.14ms]515(pass) listDrafts > omits is_active when activeOnly is false [0.09ms]516(pass) createDraft > sends blocks, destination, and composer flag [0.15ms]517(pass) createDraft > omits thread fields for channel drafts [0.09ms]518(pass) createDraft > includes file_ids on the wire when fileIds is supplied [0.10ms]519(pass) updateDraft > sends draft_id and a padded last-updated ts [0.12ms]520(pass) deleteDraft > deletes with an explicit last-updated ts [0.08ms]521(pass) deleteDraft > fetches the last-updated ts from drafts.list when omitted [0.13ms]522(pass) deleteDraft > throws when the draft does not exist [0.05ms]523(pass) findDraft > lists all drafts (including inactive) and finds by id [0.09ms]524(pass) findDraft > prefers a matching record that has last_updated_ts over a malformed duplicate [0.08ms]525526test/upload.test.ts:527(pass) uploadFilesForDraft > never shifts ids between files when the completion response omits one [2.10ms]528(pass) uploadFilesForDraft > falls back to staged ids when the completion response length disagrees [1.54ms]529(pass) uploadFilesForDraft > stages every file, then completes them in one call with no channel binding [1.71ms]530(pass) uploadFilesForDraft > a later staging failure leaves nothing completed (no orphaned files) [1.51ms]531(pass) uploadFilesForDraft > throws and completes nothing when a path does not exist [0.57ms]532(pass) uploadFilesForDraft > throws and completes nothing when a byte POST fails [0.95ms]533(pass) uploadFilesForDraft > throws when files.completeUploadExternal fails [0.86ms]534(pass) uploadFilesForDraft > throws when the path is a directory [0.73ms]535(pass) uploadLocalFileToSlack (shared-helper regression) > still binds the completed file to a channel with an initial comment [0.79ms]536537test/help-contracts.test.ts:538(pass) agent-facing help contracts > message send documents non-obvious formatting and scheduling behavior [1.18ms]539(pass) agent-facing help contracts > message compose identifies its CI send behavior [0.47ms]540(pass) agent-facing help contracts > Slack-native drafts document DM targeting and inherited-broadcast controls [0.78ms]541(pass) agent-facing help contracts > scheduled cancellation identifies its required channel [0.43ms]542(pass) agent-facing help contracts > Later reminders identify named-day timezone behavior [0.38ms]543(pass) agent-facing help contracts > canvas creation identifies source and credential constraints [0.30ms]544(pass) agent-facing help contracts > canvas editing identifies operations, targeting, and content constraints [0.41ms]545(pass) agent-facing help contracts > channel mark distinguishes URL and non-URL workspace handling [0.31ms]546(pass) agent-facing help contracts > DM help states Slack's group size limit [0.26ms]547548test/url.test.ts:549(pass) parseSlackMessageUrl > parses archives URL with p<digits> [0.05ms]550(pass) parseSlackMessageUrl > captures thread_ts from query when present [0.02ms]551(pass) buildSlackMessageUrl > builds a permalink for a root message [0.02ms]552(pass) buildSlackMessageUrl > includes thread metadata for replies [0.02ms]553554test/format-outbound.test.ts:555(pass) formatOutboundSlackText > promotes bare user IDs to Slack mention tokens [0.04ms]556(pass) formatOutboundSlackText > leaves already-formatted mention tokens alone [0.02ms]557(pass) formatOutboundSlackText > leaves already-formatted usergroup mention tokens alone558(pass) formatOutboundSlackText > promotes broadcast mentions [0.02ms]559(pass) formatOutboundSlackText > escapes bare < > & in literal text560(pass) formatOutboundSlackText > does not escape inside already-formatted Slack tokens [0.01ms]561(pass) formatOutboundSlackText > does not promote email-like or mid-word @ [0.01ms]562(pass) formatOutboundSlackText > handles empty input563(pass) formatOutboundSlackText > real-world CI dump stays readable with mention + URL564565test/emoji.test.ts:566(pass) normalizeSlackReactionName > accepts :shortcode: [0.02ms]567(pass) normalizeSlackReactionName > accepts raw names [0.02ms]568(pass) normalizeSlackReactionName > accepts unicode emoji [0.05ms]569570test/search-files.test.ts:571Warning: skipping file F1: Failed to download file (404)572(pass) searchFilesViaSearchApi > skips failed downloads and keeps later successful matches [1.99ms]573Warning: skipping file F1: Failed to download file (404)574(pass) searchFilesInChannelsFallback > continues after a failed download in files.list results [2.61ms]575(pass) SlackApiClient browser API guards > fails fast on rate-limit retry windows by default [0.55ms]576(pass) SlackApiClient browser API guards > surfaces request timeouts with the Slack method name [0.22ms]577578 399 pass579 0 fail580 817 expect() calls581Ran 399 tests across 38 files. [378.00ms]fixupPhase
582shrinking RPATHs of ELF executables and libraries in /nix/store/l1ygnai8sy1j0vhpips5gjs723h9n182-agent-slack-0.10.2583checking for references to /build/ in /nix/store/l1ygnai8sy1j0vhpips5gjs723h9n182-agent-slack-0.10.2...584patching script interpreter paths in /nix/store/l1ygnai8sy1j0vhpips5gjs723h9n182-agent-slack-0.10.2installCheckPhase
585Executing versionCheckPhase586Successfully managed to find version 0.10.2 in the output of the command /nix/store/l1ygnai8sy1j0vhpips5gjs723h9n182-agent-slack-0.10.2/bin/agent-slack --version5870.10.2588Finished versionCheckPhase589no Makefile or custom installCheckPhase, doing nothing