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