agent-slack-0.10.2
checks.x86_64-linux.home-manager-psi
· build #520
· raw
1Using versionCheckHook
unpackPhase
2unpacking source archive /nix/store/cgqwcm1zgrhk5gmlmpjpi0rc8f2zg5kh-source3source root is sourcebunSetInstallCacheDirPhase
4Using bun root: "/build/source"bunPatchPhase
5patching script interpreter paths in .6./scripts/install-skill.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/svx59425zxp552p2b8gm11qj5r09b56i-bash-5.3p15/bin/bash"7./scripts/release.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/svx59425zxp552p2b8gm11qj5r09b56i-bash-5.3p15/bin/sh"8./scripts/update-nix-sources.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/svx59425zxp552p2b8gm11qj5r09b56i-bash-5.3p15/bin/bash"configurePhase
9no configure script, doing nothingbunNodeModulesInstallPhase
10/build/source /build/source11bun install flags: --linker=isolated --ignore-scripts12bun install v1.4.2 (744846f84)13 📦 Installing [69/69] 14+ @types/node@22.19.815+ @types/semver@7.7.116+ @types/turndown@5.0.617+ bun-types@1.3.918+ oxfmt@0.31.019+ oxlint@1.49.020+ semver@7.7.421+ simple-git-hooks@2.13.122+ typescript@5.9.323+ @slack/web-api@7.13.024+ commander@14.0.325+ hysnappy@1.1.026+ node-emoji@2.2.027+ turndown@7.2.228+ turndown-plugin-gfm@1.0.229+ zod@4.3.6303168 packages installed [555.00ms]32/build/sourcebuildPhase
33Bundled 360 modules in 140ms3435 agent-slack.js 1.98 MB (entry point)36checkPhase
37bun test v1.4.2 (744846f84)3839test/canvas-create.test.ts:40✓ createCanvasFromMarkdown > sends Markdown content, title, and channel to canvases.create [14.31ms]41✓ createCanvasFromMarkdown > rejects empty Markdown before calling Slack [18.97ms]42✓ createCanvasFromMarkdown > rejects a success response without a canvas id [1.97ms]43✓ createCanvasFromMarkdown > uses Slack's Markdown canvas method with imported browser credentials [0.22ms]44✓ createCanvasFromMarkdown > rejects channel tabs with browser credentials before calling Slack [0.13ms]45✓ editCanvas > sends the documented replace change [2.41ms]46✓ editCanvas > sends the documented replace section change [0.03ms]47✓ editCanvas > sends the documented insert before change [0.02ms]48✓ editCanvas > sends the documented insert after change [0.02ms]49✓ editCanvas > sends the documented insert at start change [0.02ms]50✓ editCanvas > sends the documented insert at end change [0.02ms]51✓ editCanvas > sends the documented delete section change [0.01ms]52✓ editCanvas > sends the documented rename change [0.02ms]53✓ editCanvas > rejects invalid combinations before calling Slack [0.56ms]54✓ editCanvas > rejects empty Markdown and canvas ids before calling Slack [0.14ms]55✓ editCanvas > rejects Markdown over Slack's per-change limit before calling Slack [28.94ms]56✓ readCanvasMarkdownInput > reads a Markdown file without changing its contents [6.50ms]57✓ readCanvasMarkdownInput > accepts a Markdown blob [0.08ms]58✓ readCanvasMarkdownInput > requires exactly one source [0.11ms]59✓ readCanvasMarkdownInput > rejects an empty source [0.06ms]60✓ canvas create command > creates from an inline blob in the selected workspace [8.21ms]61✓ canvas create command > creates from a file and resolves a channel tab [18.10ms]62✓ canvas create command > rejects browser-auth channel tabs before resolving the channel [1.49ms]63✓ canvas create command > rejects missing or conflicting sources before authenticating [1.00ms]64✓ canvas edit command > replaces a canvas from a Markdown URL target [1.95ms]65✓ canvas edit command > inserts content from a file and passes a section id [1.41ms]66✓ canvas edit command > renames without a Markdown source [0.56ms]67✓ canvas edit command > rejects delete content and malformed inputs before authenticating [0.97ms]68✓ canvas edit command > rejects browser credentials before calling canvases.edit [9.73ms]6970test/channel-admin.test.ts:71✓ parseInviteUsersCsv > splits comma-separated values, trims whitespace, and deduplicates [2.84ms]72✓ parseInviteUsersCsv > returns empty array when input has no values [0.06ms]73✓ splitEmailsFromInviteTargets > separates email targets from non-email targets [0.20ms]74✓ splitEmailsFromInviteTargets > deduplicates emails [0.04ms]7576test/channel-command.test.ts:77✓ channel list command > defaults to users.conversations for current user [2.71ms]78✓ channel list command > with --user id uses users.conversations and sets user directly [1.10ms]79✓ channel list command > with --user handle resolves via users.list before users.conversations [0.71ms]80✓ channel list command > with --user unknown handle is a hard error [0.51ms]81✓ channel list command > with --all uses conversations.list [0.74ms]82✓ channel list command > forwards --limit and --cursor [0.52ms]83✓ channel list command > --all and --user is a hard error [0.61ms]84✓ channel list command > invalid --limit is a hard error [9.34ms]85✓ channel list command > help text documents single-page pagination model [0.58ms]86✓ channel mark command > URL target extracts workspace from URL [14.85ms]87✓ channel mark command > URL target rejects --workspace flag [1.72ms]88✓ channel mark command > channel target requires --ts [0.90ms]89✓ channel mark command > URL target allows --ts override [1.15ms]90✓ channel mark command > channel target with --ts calls conversations.mark [1.01ms]9192test/channels.test.ts:93✓ conversations list helpers > listUserConversations calls users.conversations with defaults [0.17ms]94✓ conversations list helpers > listUserConversations forwards user/limit/cursor [0.08ms]95✓ conversations list helpers > listAllConversations calls conversations.list with defaults [0.10ms]96✓ conversations list helpers > listAllConversations forwards limit/cursor [0.07ms]97✓ conversations list helpers > listUserConversations passes through small limits [0.05ms]98✓ conversations list helpers > listUserConversations clamps high limits to 1000 [0.06ms]99✓ conversations list helpers > normalizeConversationsPage extracts channels and next cursor [0.04ms]100✓ conversations list helpers > normalizeConversationsPage handles missing response_metadata [0.11ms]101✓ conversations list helpers > normalizeConversationsPage handles empty next_cursor [0.13ms]102✓ conversations list helpers > listConversationsViaCounts enumerates channels/mpims/ims and enriches via conversations.info [0.55ms]103✓ conversations list helpers > listConversationsViaCounts keeps the id when conversations.info fails [0.19ms]104✓ conversations list helpers > listConversationsViaCounts slices to limit and skips entries without an id [0.21ms]105106test/client.test.ts:107✓ SlackApiClient browser multipart transport > retries HTTP 429 responses using Retry-After [2.28ms]108109test/compact-json.test.ts:110✓ pruneEmpty > drops null/undefined/empty containers [0.13ms]111112test/desktop-auth-paths.test.ts:113✓ Windows Store Slack package detection > matches known Microsoft Store package identifiers [0.08ms]114✓ Windows Store Slack package detection > does not match unrelated packages [0.03ms]115116test/drafts.test.ts:117✓ padDraftTs > pads short fractional parts to 7 digits [0.10ms]118✓ padDraftTs > leaves 7-digit fractional parts unchanged [0.04ms]119✓ padDraftTs > leaves timestamps without a fractional part unchanged [0.03ms]120✓ draftTextToBlocks > wraps plain text in a rich_text section [1.39ms]121✓ draftTextToBlocks > converts bullet lists to rich_text lists [0.22ms]122✓ parseDraftRecord > parses a raw draft into a compact shape [0.77ms]123✓ parseDraftRecord > returns null for records without an id [0.04ms]124✓ listDrafts > requests active drafts and parses the result [0.44ms]125✓ listDrafts > omits is_active when activeOnly is false [0.11ms]126✓ createDraft > sends blocks, destination, and composer flag [0.67ms]127✓ createDraft > omits thread fields for channel drafts [0.12ms]128✓ createDraft > includes file_ids on the wire when fileIds is supplied [0.14ms]129✓ updateDraft > sends draft_id and a padded last-updated ts [0.25ms]130✓ deleteDraft > deletes with an explicit last-updated ts [0.19ms]131✓ deleteDraft > fetches the last-updated ts from drafts.list when omitted [0.24ms]132✓ deleteDraft > throws when the draft does not exist [0.08ms]133✓ findDraft > lists all drafts (including inactive) and finds by id [0.11ms]134✓ findDraft > prefers a matching record that has last_updated_ts over a malformed duplicate [0.14ms]135136test/emoji.test.ts:137✓ normalizeSlackReactionName > accepts :shortcode: [0.15ms]138✓ normalizeSlackReactionName > accepts raw names [0.05ms]139✓ normalizeSlackReactionName > accepts unicode emoji [0.30ms]140141test/error-message.test.ts:142✓ errorMessage > returns the message for a plain error [0.14ms]143✓ errorMessage > stringifies non-Error values [0.04ms]144✓ errorMessage > appends a single Error cause [19.51ms]145✓ errorMessage > appends AggregateError causes from a failed fetch through a dead proxy [0.23ms]146✓ errorMessage > walks multi-level cause chains [0.04ms]147✓ errorMessage > terminates on a self-referential cause instead of looping forever [0.03ms]148✓ errorMessage > terminates on a longer cause cycle [0.03ms]149✓ errorMessage > does not crash on a cause that cannot be stringified [0.07ms]150✓ errorMessage > does not crash on a non-Error thrown value that cannot be stringified [0.02ms]151✓ errorMessage > caps how far a long cause chain is walked [0.29ms]152✓ errorMessage > collapses a cause that merely restates its parent [0.04ms]153154test/files.test.ts:155✓ downloadSlackFile > downloads file and writes to disk [18.32ms]156✓ downloadSlackFile > returns cached path when file already exists [4.38ms]157✓ downloadSlackFile > throws SlackDownloadError on HTTP 404 [0.50ms]158✓ downloadSlackFile > throws SlackDownloadError with httpStatus on HTTP error [3.17ms]159✓ downloadSlackFile > throws SlackDownloadError on HTML auth page [5.37ms]160✓ downloadSlackFile > throws SlackDownloadError on network error [4.44ms]161✓ downloadSlackFile > throws SlackDownloadError when reading html body fails [4.99ms]162✓ downloadSlackFile > throws SlackDownloadError when reading binary body fails [3.20ms]163✓ tryDownloadSlackFile > returns ok result on success [7.11ms]164✓ tryDownloadSlackFile > returns failure result on HTTP 404 [2.77ms]165✓ tryDownloadSlackFile > returns failure result on network error [2.90ms]166✓ tryDownloadSlackFile > propagates disk/write errors [10.03ms]167Warning: skipping file F1: Downloaded auth/login page instead of canvas content (token may be expired)168✓ downloadMessageFiles > records canvas auth failures as structured errors [16.23ms]169Warning: skipping file F2: Failed to download file (404)170✓ downloadMessageFiles > records non-canvas download failures with a local error path [7.74ms]171172test/format-outbound.test.ts:173✓ formatOutboundSlackText > promotes bare user IDs to Slack mention tokens [0.30ms]174✓ formatOutboundSlackText > leaves already-formatted mention tokens alone [0.07ms]175✓ formatOutboundSlackText > leaves already-formatted usergroup mention tokens alone [0.03ms]176✓ formatOutboundSlackText > promotes broadcast mentions [0.04ms]177✓ formatOutboundSlackText > escapes bare < > & in literal text [0.02ms]178✓ formatOutboundSlackText > does not escape inside already-formatted Slack tokens [0.03ms]179✓ formatOutboundSlackText > does not promote email-like or mid-word @ [0.02ms]180✓ formatOutboundSlackText > handles empty input [0.01ms]181✓ formatOutboundSlackText > real-world CI dump stays readable with mention + URL [0.03ms]182183test/help-contracts.test.ts:184✓ agent-facing help contracts > message send documents non-obvious formatting and scheduling behavior [2.30ms]185✓ agent-facing help contracts > message compose identifies its CI send behavior [1.17ms]186✓ agent-facing help contracts > Slack-native drafts document DM targeting and inherited-broadcast controls [2.33ms]187✓ agent-facing help contracts > scheduled cancellation identifies its required channel [1.36ms]188✓ agent-facing help contracts > Later reminders identify named-day timezone behavior [0.49ms]189✓ agent-facing help contracts > canvas creation identifies source and credential constraints [0.64ms]190✓ agent-facing help contracts > canvas editing identifies operations, targeting, and content constraints [0.49ms]191✓ agent-facing help contracts > channel mark distinguishes URL and non-URL workspace handling [0.52ms]192✓ agent-facing help contracts > DM help states Slack's group size limit [0.47ms]193194test/html-to-md.test.ts:195✓ htmlToMarkdown > converts basic HTML to markdown [9.69ms]196197test/later.test.ts:198✓ fetchLaterItems > returns counts only when countsOnly is true [0.55ms]199✓ fetchLaterItems > filters to message items only [1.31ms]200✓ fetchLaterItems > filters by state [0.21ms]201✓ fetchLaterItems > state 'all' returns all items [0.12ms]202✓ fetchLaterItems > respects limit [0.12ms]203✓ fetchLaterItems > hydrates message content [0.19ms]204✓ fetchLaterItems > resolves DM user display names [0.14ms]205✓ fetchLaterItems > truncates long message content [0.15ms]206✓ updateLaterMark > sends mark=completed via multipart [0.18ms]207✓ updateLaterMark > sends mark=archived via multipart [0.09ms]208✓ updateLaterMark > sends mark=uncompleted via multipart [0.07ms]209✓ updateLaterMark > sends mark=unarchived via multipart [0.17ms]210✓ saveLater > calls saved.add with correct params [0.18ms]211✓ removeLater > calls saved.delete with correct params [0.17ms]212✓ setLaterReminder > calls saved.update via multipart with date_due [0.17ms]213✓ parseReminderDuration > parses minutes [0.27ms]214✓ parseReminderDuration > parses hours [0.05ms]215✓ parseReminderDuration > parses fractional hours [0.04ms]216✓ parseReminderDuration > parses days [0.04ms]217✓ parseReminderDuration > parses 'tomorrow' as next day 9 AM [39.90ms]218✓ parseReminderDuration > parses day names [0.15ms]219✓ parseReminderDuration > passes through unix timestamps [0.04ms]220✓ parseReminderDuration > supports verbose unit names [0.06ms]221✓ parseReminderDuration > throws on invalid input [0.11ms]222223test/leveldb-reader.test.ts:224✓ leveldb-reader > readChromiumLevelDB > returns empty array for non-existent directory [4.10ms]225✓ leveldb-reader > readChromiumLevelDB > returns empty array for empty directory [4.55ms]226✓ leveldb-reader > readChromiumLevelDB > reads entries from SSTable files [12.37ms]227✓ leveldb-reader > readChromiumLevelDB > reads entries from log files [12.76ms]228✓ leveldb-reader > readChromiumLevelDB > reads from both SSTable and log files [14.85ms]229✓ leveldb-reader > readChromiumLevelDB > handles .sst file extension [11.80ms]230✓ leveldb-reader > findKeysContaining > filters entries by key substring [12.62ms]231✓ leveldb-reader > findKeysContaining > returns empty array when no matches [2.03ms]232✓ leveldb-reader > edge cases > handles invalid SSTable (wrong magic) [1.31ms]233✓ leveldb-reader > edge cases > handles empty SSTable file [3.96ms]234✓ leveldb-reader > edge cases > handles SSTable smaller than footer size [1.83ms]235236test/message-compact.test.ts:237✓ toCompactMessage > includes file with path on successful download [0.37ms]238✓ toCompactMessage > includes file with error on failed download [0.10ms]239✓ toCompactMessage > excludes files with no downloadedPaths entry [0.05ms]240✓ toCompactMessage > mixes successful and failed downloads [0.08ms]241✓ toCompactMessage > failed download preserves file metadata for content-type filtering [0.06ms]242✓ passesContentTypeFilter with failed downloads > image message with failed download still passes image filter [0.14ms]243✓ passesContentTypeFilter with failed downloads > snippet message with failed download still passes snippet filter [0.07ms]244✓ passesContentTypeFilter with failed downloads > message without download entry has no files and passes text filter [0.04ms]245✓ toCompactMessage filename preservation > does not fall back to title when name is missing [0.05ms]246247test/message-draft-actions.test.ts:248✓ createDraftAction > creates a draft addressed to a channel id [0.92ms]249✓ createDraftAction > rejects --broadcast without a thread [0.19ms]250✓ createDraftAction > rejects --broadcast for a DM (user) target [0.13ms]251✓ createDraftAction > rejects --broadcast for a D... channel-id (DM) target [0.11ms]252✓ createDraftAction > rejects --broadcast on a channel name with no thread before any network call [0.09ms]253✓ createDraftAction > rejects --broadcast on a DM message URL before fetching the message [0.10ms]254✓ createDraftAction > uploads --attach files and wires their file ids into the draft [17.39ms]255✓ createDraftAction > aborts before any upload or drafts.create when an --attach path is missing [3.51ms]256✓ updateDraftAction > text-only edit preserves destination, thread, broadcast, and file ids [0.70ms]257✓ updateDraftAction > re-addressing a broadcast thread draft to a non-thread channel clears broadcast instead of erroring [0.18ms]258✓ updateDraftAction > explicit --broadcast on a non-thread draft still errors [0.19ms]259✓ updateDraftAction > refuses to update a scheduled draft rather than clearing its schedule [0.21ms]260✓ updateDraftAction > refuses a text-only update on a multi-destination draft, but allows re-addressing [0.25ms]261✓ updateDraftAction > re-addressing to a different thread does not inherit the old broadcast flag [0.15ms]262✓ updateDraftAction > --no-broadcast clears an inherited broadcast flag on a same-thread edit [0.10ms]263✓ updateDraftAction > rejects --broadcast when re-addressing to a DM (user) target [0.09ms]264✓ updateDraftAction > changing only --thread-ts (no --channel) does not inherit the old broadcast flag [0.12ms]265✓ updateDraftAction > rejects --broadcast on an existing DM-destination draft [0.15ms]266✓ updateDraftAction > rejects --broadcast when re-addressing to a channel name with no thread, before resolving it [0.13ms]267✓ updateDraftAction > merges --attach file ids into the draft's existing file_ids [7.90ms]268✓ updateDraftAction > merges --attach while de-duplicating ids already on the draft [13.82ms]269✓ deleteDraftAction > auto-fetches and pads last_updated_ts when omitted [0.61ms]270✓ listDraftsAction > hydrates channel display names [0.75ms]271{272 "ok": true,273 "draft": {274 "id": "Dr123",275 "destinations": [276 {277 "channel_id": "C11111111",278 "thread_ts": "1700000000.100000"279 }280 ]281 }282}283✓ message draft update (commander --broadcast wiring) > omitting broadcast flags does not force broadcast on (no Commander default-true gotcha) [0.98ms]284{285 "ok": true,286 "draft": {287 "id": "Dr123",288 "destinations": [289 {290 "channel_id": "C11111111",291 "thread_ts": "1700000000.100000",292 "broadcast": true293 }294 ]295 }296}297✓ message draft update (commander --broadcast wiring) > --broadcast sets broadcast true [0.44ms]298{299 "ok": true,300 "draft": {301 "id": "Dr123",302 "destinations": [303 {304 "channel_id": "C11111111",305 "thread_ts": "1700000000.100000"306 }307 ]308 }309}310✓ message draft update (commander --broadcast wiring) > --no-broadcast clears an inherited broadcast flag [0.34ms]311{312 "ok": true,313 "draft": {314 "id": "DrNew",315 "destinations": [316 {317 "channel_id": "C11111111"318 }319 ]320 }321}322✓ message draft create (commander --attach wiring) > collects repeatable --attach flags into an array [11.21ms]323✓ message draft unknown subcommand > old `message draft <target>` usage points to `message compose` [0.78ms]324✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 create: a drafts.create auth failure retries work WITHOUT re-uploading files [14.49ms]325✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 update: a drafts.update auth failure retries work WITHOUT re-uploading files [4.66ms]326✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 create: a non-auth drafts.create failure deletes the uploaded file [1.37ms]327✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 update: a stale drafts.update failure deletes the newly uploaded file only [4.28ms]328✓ draft attachments: orphan prevention across auth-retry and failed drafts > a failed draft with no attachments does not attempt files.delete [0.26ms]329330test/message-reaction-filters.test.ts:331✓ parseReactionFilters > normalizes shortcodes, names, and unicode [0.18ms]332✓ parseReactionFilters > returns empty array when unset [0.03ms]333✓ passesReactionNameFilters > matches when required reaction is present [0.16ms]334✓ passesReactionNameFilters > does not match when required reaction is missing [0.04ms]335✓ passesReactionNameFilters > does not match when excluded reaction is present [0.05ms]336✓ passesReactionNameFilters > matches when excluded reaction is absent [0.03ms]337✓ passesReactionNameFilters > supports with + without together [0.04ms]338✓ requireOldestWhenReactionFiltersUsed > returns oldest when no reaction filters are used [0.06ms]339✓ requireOldestWhenReactionFiltersUsed > returns trimmed oldest when reaction filters are used [0.03ms]340✓ requireOldestWhenReactionFiltersUsed > throws when reaction filters are used without oldest [0.04ms]341342test/message-send.test.ts:343✓ sendMessage > posts a normal message when no attachments are passed [1.03ms]344✓ sendMessage > --no-unfurl disables link and media previews for immediate sends [0.18ms]345✓ sendMessage > opens and sends to a DM for a W-prefixed user target [0.31ms]346✓ sendMessage > returns a permalink when the workspace was resolved implicitly [0.13ms]347✓ sendMessage > threaded reply returns thread_ts distinct from ts [0.16ms]348✓ sendMessage > --reply-broadcast with --thread-ts sends reply_broadcast: true [0.13ms]349✓ sendMessage > --reply-broadcast omits the field from chat.postMessage when flag is absent [0.11ms]350✓ sendMessage > --reply-broadcast without --thread-ts throws [0.15ms]351✓ sendMessage > --reply-broadcast on a URL target broadcasts using the message's derived thread_ts [0.52ms]352✓ sendMessage > --reply-broadcast on a DM target throws (broadcasting is not meaningful for DMs) [0.13ms]353✓ sendMessage > --reply-broadcast works alongside --blocks payload [11.29ms]354✓ sendMessage > uploads attachment and uses message text as initial comment [26.91ms]355✓ sendMessage > --no-unfurl cannot be combined with file attachments [0.35ms]356✓ sendMessage > sends initial comment only for the first attachment [37.08ms]357✓ sendMessage > uploads attachment without text when text is empty [19.71ms]358✓ sendMessage > --blocks: reads Block Kit JSON from file and passes through unchanged [10.49ms]359✓ sendMessage > --blocks: errors when JSON is not an array [10.56ms]360✓ sendMessage > --blocks: errors on malformed JSON [10.60ms]361✓ sendMessage > --blocks: overrides markdown-to-rich-text conversion when text is also provided [10.64ms]362✓ sendMessage > sends Slack manual links in lists as rich-text link blocks [0.50ms]363✓ sendMessage > --blocks: errors when an array element is not an object [10.94ms]364✓ sendMessage > --schedule sends through chat.scheduleMessage and returns scheduled metadata [0.78ms]365✓ sendMessage > --schedule-in computes a relative post_at [0.35ms]366✓ sendMessage > --no-unfurl disables link and media previews for scheduled sends [0.18ms]367✓ sendMessage > --schedule composes with blocks, thread replies, and reply broadcast [6.26ms]368✓ sendMessage > --schedule cannot be combined with file attachments [0.29ms]369✓ composeMessage > --no-unfurl disables link and media previews when CI sends immediately [1.00ms]370✓ composeMessage > keeps Slack's default preview behavior for a standard CI send [0.22ms]371✓ composeMessage > --no-unfurl disables previews for a URL target when CI sends immediately [0.67ms]372✓ scheduled message management > lists scheduled messages and forwards channel filters [0.63ms]373✓ scheduled message management > cancels scheduled messages with the required channel id [0.37ms]374✓ scheduled message time parsing > parses absolute ISO timestamps with explicit timezones [0.11ms]375✓ scheduled message time parsing > parses named relative times like monday 9am [0.40ms]376✓ scheduled message time parsing > rejects schedule times beyond Slack's 120 day limit [0.10ms]377✓ editMessage > edits a normal text message without blocks [0.50ms]378✓ editMessage > edits literal angle bracket text without blocks [0.17ms]379✓ editMessage > edits a message URL with a link label without blocks [0.19ms]380✓ editMessage > edits an inline mailto link without escaping it [0.15ms]381✓ editMessage > edits an inline usergroup mention without escaping it [0.14ms]382✓ editMessage > edits a channel target with inline formatting without blocks [0.13ms]383✓ editMessage > edits a channel target with rich text blocks when text contains a list [0.18ms]384✓ editMessage > edits a normal message without blocks when no --blocks file is passed [0.13ms]385✓ editMessage > edits a message URL with Block Kit JSON from file [5.51ms]386✓ editMessage > edits a channel target with --ts and Block Kit JSON from file [3.88ms]387388test/messages.test.ts:389✓ fetchThread > returns the thread root and replies in chronological order [1.64ms]390391test/mrkdwn.test.ts:392✓ slackMrkdwnToMarkdown > converts Slack-style links [2.26ms]393✓ slackMrkdwnToMarkdown > converts user and channel mentions [0.08ms]394✓ slackMrkdwnToMarkdown > converts :emoji: shortcodes to unicode [0.22ms]395396test/parse-limit.test.ts:397✓ parseLimit > returns undefined when no value given [0.07ms]398✓ parseLimit > parses valid positive integers [0.04ms]399✓ parseLimit > rejects non-numeric strings [0.06ms]400✓ parseLimit > rejects zero [0.04ms]401✓ parseLimit > rejects negative numbers [0.04ms]402✓ parseLimit > rejects floats (uses integer part) [0.03ms]403✓ requireMessageTs > returns trimmed ts when present [0.03ms]404✓ requireMessageTs > throws when missing [0.04ms]405✓ requireMessageTs > throws when blank [0.04ms]406407test/reactions.test.ts:408✓ reactions compaction > includes reactions only when enabled [0.30ms]409✓ reactions compaction > preserves W-prefixed user IDs while compacting reactions [0.09ms]410✓ reactions compaction > adds forwarded thread metadata for shared messages with thread_ts [0.57ms]411412test/render.test.ts:413✓ renderSlackMessageContent > prefers blocks [0.07ms]414✓ renderSlackMessageContent > preserves usergroup and broadcast elements from rich text [0.18ms]415✓ renderSlackMessageContent > omits malformed usergroup and broadcast elements [0.11ms]416✓ renderSlackMessageContent > falls back to attachments when text is empty [0.10ms]417✓ renderSlackMessageContent > includes section fields and button URLs [0.12ms]418✓ renderSlackMessageContent > includes attachment fields [0.08ms]419✓ renderSlackMessageContent > renders forwarded message with author and source link [0.24ms]420✓ renderSlackMessageContent > renders forwarded message with author name only [0.10ms]421✓ renderSlackMessageContent > renders forwarded message with no author [0.13ms]422✓ renderSlackMessageContent > includes forwarded file links in quoted forwarded body [0.11ms]423✓ renderSlackMessageContent > renders nested forwarded attachments similarly to normal attachments [0.15ms]424✓ renderSlackMessageContent > deduplicates repeated forwarded body content [0.13ms]425✓ renderSlackMessageContent > handles cyclic forwarded attachments without infinite recursion [0.10ms]426✓ renderSlackMessageContent > does not treat link unfurl as forwarded message [0.10ms]427✓ renderSlackMessageContent > combines blocks and non-shared attachments [0.11ms]428429test/rich-text.test.ts:430✓ parseInlineElements > plain text returns single text element [0.05ms]431✓ parseInlineElements > *bold* is parsed with bold style [0.11ms]432✓ parseInlineElements > _italic_ is parsed with italic style [0.05ms]433✓ parseInlineElements > ~strike~ is parsed with strike style [0.03ms]434✓ parseInlineElements > `code` is parsed with code style [0.03ms]435✓ parseInlineElements > :emoji: shortcode is parsed as an emoji element [0.03ms]436✓ parseInlineElements > emoji names with underscores are not parsed as italic text [0.05ms]437✓ parseInlineElements > time-like colon text is not parsed as an emoji element [0.03ms]438✓ parseInlineElements > <url|label> is parsed as link with text [0.03ms]439✓ parseInlineElements > <url> is parsed as link without text [0.03ms]440✓ parseInlineElements > <mailto|label> is parsed as link with text [0.03ms]441✓ parseInlineElements > non-url angle bracket text is preserved as text [0.04ms]442✓ parseInlineElements > non-url labeled angle bracket text is preserved as text [0.03ms]443✓ parseInlineElements > channel mention tokens are parsed as channel elements [0.04ms]444✓ parseInlineElements > bare channel mention tokens are parsed as channel elements [0.03ms]445✓ parseInlineElements > usergroup mention tokens are parsed as usergroup elements [0.06ms]446✓ textToRichTextBlocks > plain text returns null [0.05ms]447✓ textToRichTextBlocks > inline-only formatting returns null by default [0.03ms]448✓ textToRichTextBlocks > non-url angle bracket text does not trigger rich text blocks [0.05ms]449✓ textToRichTextBlocks > mixed non-url angle bracket text and formatting preserves brackets [0.07ms]450✓ textToRichTextBlocks > inline-only formatting can produce rich text blocks [0.05ms]451✓ textToRichTextBlocks > mailto links can produce rich text blocks when inline formatting is included [0.05ms]452✓ textToRichTextBlocks > channel mentions can produce rich text blocks when inline formatting is included [0.05ms]453✓ textToRichTextBlocks > bullet list with - prefix [0.12ms]454✓ textToRichTextBlocks > bullet list with bullet character [0.41ms]455✓ textToRichTextBlocks > sub-bullets with indentation [0.08ms]456✓ textToRichTextBlocks > white bullet sub-bullets under bullet [6.13ms]457✓ textToRichTextBlocks > mixed text and bullets [0.08ms]458✓ textToRichTextBlocks > numbered list [0.09ms]459✓ textToRichTextBlocks > bold text in list items is parsed [0.07ms]460✓ textToRichTextBlocks > emoji and channel references in list items are parsed [0.10ms]461✓ textToRichTextBlocks > Slack manual links and CommonMark links remain distinct in list items [0.07ms]462✓ textToRichTextBlocks > code block is preserved [0.06ms]463✓ textToRichTextBlocks > blockquote is preserved [0.06ms]464465test/safe-mode.test.ts:466✓ isSafeModeEnabled > enabled via CLI flag [0.11ms]467✓ isSafeModeEnabled > enabled for env value "1" [0.04ms]468✓ isSafeModeEnabled > enabled for env value "true"469✓ isSafeModeEnabled > enabled for env value "TRUE"470✓ isSafeModeEnabled > enabled for env value "yes"471✓ isSafeModeEnabled > enabled for env value "on"472✓ isSafeModeEnabled > enabled for env value " 1 "473✓ isSafeModeEnabled > disabled for env value "0" [0.02ms]474✓ isSafeModeEnabled > disabled for env value "false"475✓ isSafeModeEnabled > disabled for env value "off"476✓ isSafeModeEnabled > disabled for env value "no"477✓ isSafeModeEnabled > disabled for env value ""478✓ isSafeModeEnabled > disabled when env var is unset and flag is absent [0.02ms]479✓ safeModeBlockedError > names the blocked action [0.05ms]480✓ redirectSendToDraft > rejects unsupported send option {481 attach: [ "./report.md" ],482} [0.34ms]483✓ redirectSendToDraft > rejects unsupported send option {484 blocks: "/tmp/blocks.json",485} [0.02ms]486✓ redirectSendToDraft > rejects unsupported send option {487 schedule: "2030-01-01T00:00:00Z",488} [0.01ms]489✓ redirectSendToDraft > rejects unsupported send option {490 scheduleIn: "3h",491}492✓ redirectSendToDraft > rejects unsupported send option {493 replyBroadcast: true,494}495✓ redirectSendToDraft > lists all unsupported flags at once [0.09ms]496✓ redirectSendToDraft > rejects in CI where no interactive editor is available [0.17ms]497⚠ Safe mode active: redirecting "message send" → draft editor. Nothing posts until a human sends it from the editor.498✓ redirectSendToDraft > opens a draft with the send text and thread context [0.25ms]499500test/search-command.test.ts:501✓ search referenced users > searchSlack returns shared referenced_users while preserving canonical ids [21.45ms]502✓ search referenced users > search command forwards --refresh-users and bypasses cached user lookups [6.23ms]503504test/search-files.test.ts:505Warning: skipping file F1: Failed to download file (404)506✓ searchFilesViaSearchApi > skips failed downloads and keeps later successful matches [2.51ms]507Warning: skipping file F1: Failed to download file (404)508✓ searchFilesInChannelsFallback > continues after a failed download in files.list results [4.23ms]509✓ SlackApiClient browser API guards > fails fast on rate-limit retry windows by default [0.78ms]510✓ SlackApiClient browser API guards > surfaces request timeouts with the Slack method name [0.26ms]511512test/search-query.test.ts:513✓ W-prefixed user IDs in search > resolves a W-prefixed user ID to a from filter [0.29ms]514✓ W-prefixed user IDs in search > returns a W-prefixed user ID without scanning users [0.23ms]515516test/targets.test.ts:517✓ parseMsgTarget > parses slack message URLs [0.06ms]518✓ parseMsgTarget > accepts #channel [0.03ms]519✓ parseMsgTarget > accepts bare channel names [0.04ms]520✓ parseMsgTarget > accepts channel IDs [0.05ms]521✓ parseMsgTarget > accepts user IDs as DM targets [0.04ms]522✓ parseMsgTarget > accepts W-prefixed user IDs as DM targets [0.04ms]523✓ parseMsgTarget > accepts user IDs with leading/trailing whitespace [0.04ms]524✓ parseMsgTarget > does not treat short U-prefixed strings as user IDs [0.02ms]525✓ parseMsgTarget > does not treat short W-prefixed strings as user IDs [0.02ms]526527test/update.test.ts:528✓ compareSemver > equal versions return 0 [0.11ms]529✓ compareSemver > strips v prefix [0.04ms]530✓ compareSemver > newer major [0.02ms]531✓ compareSemver > newer minor [0.03ms]532✓ compareSemver > newer patch [0.02ms]533✓ compareSemver > older version returns negative [0.02ms]534✓ compareSemver > handles 0.x versions [0.03ms]535536test/upload.test.ts:537✓ uploadFilesForDraft > never shifts ids between files when the completion response omits one [13.02ms]538✓ uploadFilesForDraft > falls back to staged ids when the completion response length disagrees [5.17ms]539✓ uploadFilesForDraft > stages every file, then completes them in one call with no channel binding [3.42ms]540✓ uploadFilesForDraft > a later staging failure leaves nothing completed (no orphaned files) [10.82ms]541✓ uploadFilesForDraft > throws and completes nothing when a path does not exist [0.42ms]542✓ uploadFilesForDraft > throws and completes nothing when a byte POST fails [1.70ms]543✓ uploadFilesForDraft > throws when files.completeUploadExternal fails [0.79ms]544✓ uploadFilesForDraft > throws when the path is a directory [0.65ms]545✓ uploadLocalFileToSlack (shared-helper regression) > still binds the completed file to a channel with an initial comment [5.23ms]546547test/url.test.ts:548✓ parseSlackMessageUrl > parses archives URL with p<digits> [0.10ms]549✓ parseSlackMessageUrl > captures thread_ts from query when present [0.03ms]550✓ buildSlackMessageUrl > builds a permalink for a root message [0.04ms]551✓ buildSlackMessageUrl > includes thread metadata for replies [0.02ms]552553test/user-cache.test.ts:554✓ user-cache helpers > collectReferencedUserIds excludes reaction users by default [0.11ms]555✓ user-cache helpers > collectReferencedUserIds includes reaction users when enabled [0.08ms]556✓ user-cache helpers > toReferencedUsers returns only resolved users keyed by id [0.09ms]557558test/user-id.test.ts:559✓ isUserId > accepts U-prefixed and W-prefixed Slack user IDs [0.06ms]560✓ isUserId > preserves the existing length and character restrictions [0.03ms]561562test/users.test.ts:563✓ resolveUserId > returns user ids unchanged [0.08ms]564✓ resolveUserId > returns W-prefixed user ids unchanged [0.08ms]565✓ resolveUserId > resolves @handle via users.list [0.12ms]566✓ resolveUserId > resolves email via users.lookupByEmail [0.12ms]567✓ resolveUserId > resolves @handle case-insensitively [0.10ms]568✓ resolveUserId > falls back to users.list when lookupByEmail is unavailable [0.18ms]569570test/workspace-selector.test.ts:571✓ resolveWorkspaceSelector > matches exact URL [0.36ms]572✓ resolveWorkspaceSelector > matches unique substring by host/team [3.55ms]573✓ resolveWorkspaceSelector > matches unique substring by workspace name [0.09ms]574✓ resolveWorkspaceSelector > returns ambiguity when selector matches multiple workspaces [0.13ms]575✓ resolveWorkspaceSelector > returns no match when selector does not match [0.07ms]576577 399 pass578 0 fail579 817 expect() calls580Ran 399 tests across 38 files. [1.82s]fixupPhase
581shrinking RPATHs of ELF executables and libraries in /nix/store/navaa412vkinx7d50fbmbnz4g09in3cg-agent-slack-0.10.2582checking for references to /build/ in /nix/store/navaa412vkinx7d50fbmbnz4g09in3cg-agent-slack-0.10.2...583patching script interpreter paths in /nix/store/navaa412vkinx7d50fbmbnz4g09in3cg-agent-slack-0.10.2installCheckPhase
584Executing versionCheckPhase585Successfully managed to find version 0.10.2 in the output of the command /nix/store/navaa412vkinx7d50fbmbnz4g09in3cg-agent-slack-0.10.2/bin/agent-slack --version5860.10.2587Finished versionCheckPhase588no Makefile or custom installCheckPhase, doing nothing