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