nixbot

builds

succeeded agent-slack-0.10.2 checks.aarch64-linux.pkgs-agent-slack · build #12427 · raw

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