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