agent-slack-0.10.2
checks.aarch64-linux.pkgs-agent-slack
· build #6224
· raw
1elastic-arm-65b16fd6: building k0f6r66dmkzksvvhsbcbysjsxdjyvyic-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/update-nix-sources.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/mwhkh9l5j5z6mkk83k22rjhx6lxgqh85-bash-5.3p15/bin/bash"8./scripts/install-skill.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/mwhkh9l5j5z6mkk83k22rjhx6lxgqh85-bash-5.3p15/bin/bash"9./scripts/release.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/mwhkh9l5j5z6mkk83k22rjhx6lxgqh85-bash-5.3p15/bin/sh"configurePhase
10no configure script, doing nothingbunNodeModulesInstallPhase
11/build/source /build/source12bun install flags: --linker=isolated --ignore-scripts13bun install v1.4.2 (744846f84)1415+ @types/node@22.19.816+ @types/semver@7.7.117+ @types/turndown@5.0.618+ bun-types@1.3.919+ oxfmt@0.31.020+ oxlint@1.49.021+ semver@7.7.422+ simple-git-hooks@2.13.123+ typescript@5.9.324+ @slack/web-api@7.13.025+ commander@14.0.326+ hysnappy@1.1.027+ node-emoji@2.2.028+ turndown@7.2.229+ turndown-plugin-gfm@1.0.230+ zod@4.3.6313268 packages installed [415.00ms]33/build/sourcebuildPhase
34Bundled 360 modules in 78ms3536 agent-slack.js 1.98 MB (entry point)37checkPhase
38bun test v1.4.2 (744846f84)3940test/user-cache.test.ts:41✓ user-cache helpers > collectReferencedUserIds excludes reaction users by default [7.99ms]42✓ user-cache helpers > collectReferencedUserIds includes reaction users when enabled [0.81ms]43✓ user-cache helpers > toReferencedUsers returns only resolved users keyed by id [0.93ms]4445test/drafts.test.ts:46✓ padDraftTs > pads short fractional parts to 7 digits [0.52ms]47✓ padDraftTs > leaves 7-digit fractional parts unchanged [0.05ms]48✓ padDraftTs > leaves timestamps without a fractional part unchanged [0.03ms]49✓ draftTextToBlocks > wraps plain text in a rich_text section [3.92ms]50✓ draftTextToBlocks > converts bullet lists to rich_text lists [0.50ms]51✓ parseDraftRecord > parses a raw draft into a compact shape [0.68ms]52✓ parseDraftRecord > returns null for records without an id [0.03ms]53✓ listDrafts > requests active drafts and parses the result [1.01ms]54✓ listDrafts > omits is_active when activeOnly is false [0.19ms]55✓ createDraft > sends blocks, destination, and composer flag [2.00ms]56✓ createDraft > omits thread fields for channel drafts [0.48ms]57✓ createDraft > includes file_ids on the wire when fileIds is supplied [0.22ms]58✓ updateDraft > sends draft_id and a padded last-updated ts [0.23ms]59✓ deleteDraft > deletes with an explicit last-updated ts [0.19ms]60✓ deleteDraft > fetches the last-updated ts from drafts.list when omitted [0.28ms]61✓ deleteDraft > throws when the draft does not exist [1.76ms]62✓ findDraft > lists all drafts (including inactive) and finds by id [0.15ms]63✓ findDraft > prefers a matching record that has last_updated_ts over a malformed duplicate [0.66ms]6465test/message-compact.test.ts:66✓ toCompactMessage > includes file with path on successful download [2.28ms]67✓ toCompactMessage > includes file with error on failed download [0.13ms]68✓ toCompactMessage > excludes files with no downloadedPaths entry [0.05ms]69✓ toCompactMessage > mixes successful and failed downloads [0.08ms]70✓ toCompactMessage > failed download preserves file metadata for content-type filtering [0.05ms]71✓ passesContentTypeFilter with failed downloads > image message with failed download still passes image filter [0.13ms]72✓ passesContentTypeFilter with failed downloads > snippet message with failed download still passes snippet filter [0.11ms]73✓ passesContentTypeFilter with failed downloads > message without download entry has no files and passes text filter [0.06ms]74✓ toCompactMessage filename preservation > does not fall back to title when name is missing [0.07ms]7576test/user-id.test.ts:77✓ isUserId > accepts U-prefixed and W-prefixed Slack user IDs [0.03ms]78✓ isUserId > preserves the existing length and character restrictions [0.03ms]7980test/compact-json.test.ts:81✓ pruneEmpty > drops null/undefined/empty containers [1.83ms]8283test/desktop-auth-paths.test.ts:84✓ Windows Store Slack package detection > matches known Microsoft Store package identifiers [0.10ms]85✓ Windows Store Slack package detection > does not match unrelated packages [0.03ms]8687test/search-command.test.ts:88✓ search referenced users > searchSlack returns shared referenced_users while preserving canonical ids [15.42ms]89✓ search referenced users > search command forwards --refresh-users and bypasses cached user lookups [9.76ms]9091test/url.test.ts:92✓ parseSlackMessageUrl > parses archives URL with p<digits> [1.47ms]93✓ parseSlackMessageUrl > captures thread_ts from query when present [0.21ms]94✓ buildSlackMessageUrl > builds a permalink for a root message [0.84ms]95✓ buildSlackMessageUrl > includes thread metadata for replies [0.06ms]9697test/error-message.test.ts:98✓ errorMessage > returns the message for a plain error [0.14ms]99✓ errorMessage > stringifies non-Error values [0.04ms]100✓ errorMessage > appends a single Error cause [0.04ms]101✓ errorMessage > appends AggregateError causes from a failed fetch through a dead proxy [0.06ms]102✓ errorMessage > walks multi-level cause chains [0.04ms]103✓ errorMessage > terminates on a self-referential cause instead of looping forever [0.02ms]104✓ errorMessage > terminates on a longer cause cycle [0.04ms]105✓ errorMessage > does not crash on a cause that cannot be stringified [0.05ms]106✓ errorMessage > does not crash on a non-Error thrown value that cannot be stringified [0.02ms]107✓ errorMessage > caps how far a long cause chain is walked [0.18ms]108✓ errorMessage > collapses a cause that merely restates its parent [0.03ms]109110test/messages.test.ts:111✓ fetchThread > returns the thread root and replies in chronological order [0.69ms]112113test/help-contracts.test.ts:114✓ agent-facing help contracts > message send documents non-obvious formatting and scheduling behavior [10.26ms]115✓ agent-facing help contracts > message compose identifies its CI send behavior [1.49ms]116✓ agent-facing help contracts > Slack-native drafts document DM targeting and inherited-broadcast controls [2.50ms]117✓ agent-facing help contracts > scheduled cancellation identifies its required channel [1.69ms]118✓ agent-facing help contracts > Later reminders identify named-day timezone behavior [0.73ms]119✓ agent-facing help contracts > canvas creation identifies source and credential constraints [0.79ms]120✓ agent-facing help contracts > canvas editing identifies operations, targeting, and content constraints [0.70ms]121✓ agent-facing help contracts > channel mark distinguishes URL and non-URL workspace handling [0.66ms]122✓ agent-facing help contracts > DM help states Slack's group size limit [0.76ms]123124test/emoji.test.ts:125✓ normalizeSlackReactionName > accepts :shortcode: [0.19ms]126✓ normalizeSlackReactionName > accepts raw names [0.06ms]127✓ normalizeSlackReactionName > accepts unicode emoji [0.29ms]128129test/workspace-selector.test.ts:130✓ resolveWorkspaceSelector > matches exact URL [0.15ms]131✓ resolveWorkspaceSelector > matches unique substring by host/team [0.27ms]132✓ resolveWorkspaceSelector > matches unique substring by workspace name [0.05ms]133✓ resolveWorkspaceSelector > returns ambiguity when selector matches multiple workspaces [0.11ms]134✓ resolveWorkspaceSelector > returns no match when selector does not match [0.07ms]135136test/rich-text.test.ts:137✓ parseInlineElements > plain text returns single text element [0.04ms]138✓ parseInlineElements > *bold* is parsed with bold style [0.06ms]139✓ parseInlineElements > _italic_ is parsed with italic style [0.03ms]140✓ parseInlineElements > ~strike~ is parsed with strike style [0.02ms]141✓ parseInlineElements > `code` is parsed with code style [0.03ms]142✓ parseInlineElements > :emoji: shortcode is parsed as an emoji element [0.03ms]143✓ parseInlineElements > emoji names with underscores are not parsed as italic text [0.03ms]144✓ parseInlineElements > time-like colon text is not parsed as an emoji element [0.02ms]145✓ parseInlineElements > <url|label> is parsed as link with text [0.09ms]146✓ parseInlineElements > <url> is parsed as link without text [0.03ms]147✓ parseInlineElements > <mailto|label> is parsed as link with text [0.05ms]148✓ parseInlineElements > non-url angle bracket text is preserved as text [0.03ms]149✓ parseInlineElements > non-url labeled angle bracket text is preserved as text [0.02ms]150✓ parseInlineElements > channel mention tokens are parsed as channel elements [0.03ms]151✓ parseInlineElements > bare channel mention tokens are parsed as channel elements [0.02ms]152✓ parseInlineElements > usergroup mention tokens are parsed as usergroup elements [0.02ms]153✓ textToRichTextBlocks > plain text returns null [0.04ms]154✓ textToRichTextBlocks > inline-only formatting returns null by default [0.02ms]155✓ textToRichTextBlocks > non-url angle bracket text does not trigger rich text blocks [0.06ms]156✓ textToRichTextBlocks > mixed non-url angle bracket text and formatting preserves brackets [0.09ms]157✓ textToRichTextBlocks > inline-only formatting can produce rich text blocks [0.05ms]158✓ textToRichTextBlocks > mailto links can produce rich text blocks when inline formatting is included [0.04ms]159✓ textToRichTextBlocks > channel mentions can produce rich text blocks when inline formatting is included [0.05ms]160✓ textToRichTextBlocks > bullet list with - prefix [0.11ms]161✓ textToRichTextBlocks > bullet list with bullet character [0.48ms]162✓ textToRichTextBlocks > sub-bullets with indentation [0.13ms]163✓ textToRichTextBlocks > white bullet sub-bullets under bullet [0.07ms]164✓ textToRichTextBlocks > mixed text and bullets [0.04ms]165✓ textToRichTextBlocks > numbered list [0.09ms]166✓ textToRichTextBlocks > bold text in list items is parsed [0.07ms]167✓ textToRichTextBlocks > emoji and channel references in list items are parsed [0.12ms]168✓ textToRichTextBlocks > Slack manual links and CommonMark links remain distinct in list items [0.07ms]169✓ textToRichTextBlocks > code block is preserved [0.05ms]170✓ textToRichTextBlocks > blockquote is preserved [0.04ms]171172test/format-outbound.test.ts:173✓ formatOutboundSlackText > promotes bare user IDs to Slack mention tokens [0.37ms]174✓ formatOutboundSlackText > leaves already-formatted mention tokens alone [0.12ms]175✓ formatOutboundSlackText > leaves already-formatted usergroup mention tokens alone [0.03ms]176✓ formatOutboundSlackText > promotes broadcast mentions [0.03ms]177✓ formatOutboundSlackText > escapes bare < > & in literal text [0.03ms]178✓ formatOutboundSlackText > does not escape inside already-formatted Slack tokens [0.03ms]179✓ formatOutboundSlackText > does not promote email-like or mid-word @ [0.01ms]180✓ formatOutboundSlackText > handles empty input181✓ formatOutboundSlackText > real-world CI dump stays readable with mention + URL [0.02ms]182183test/channels.test.ts:184✓ conversations list helpers > listUserConversations calls users.conversations with defaults [0.34ms]185✓ conversations list helpers > listUserConversations forwards user/limit/cursor [0.10ms]186✓ conversations list helpers > listAllConversations calls conversations.list with defaults [0.16ms]187✓ conversations list helpers > listAllConversations forwards limit/cursor [0.09ms]188✓ conversations list helpers > listUserConversations passes through small limits [0.07ms]189✓ conversations list helpers > listUserConversations clamps high limits to 1000 [0.07ms]190✓ conversations list helpers > normalizeConversationsPage extracts channels and next cursor [0.05ms]191✓ conversations list helpers > normalizeConversationsPage handles missing response_metadata [0.02ms]192✓ conversations list helpers > normalizeConversationsPage handles empty next_cursor [0.02ms]193✓ conversations list helpers > listConversationsViaCounts enumerates channels/mpims/ims and enriches via conversations.info [0.49ms]194✓ conversations list helpers > listConversationsViaCounts keeps the id when conversations.info fails [0.21ms]195✓ conversations list helpers > listConversationsViaCounts slices to limit and skips entries without an id [0.23ms]196197test/search-query.test.ts:198✓ W-prefixed user IDs in search > resolves a W-prefixed user ID to a from filter [0.24ms]199✓ W-prefixed user IDs in search > returns a W-prefixed user ID without scanning users [0.26ms]200201test/upload.test.ts:202✓ uploadFilesForDraft > never shifts ids between files when the completion response omits one [3.88ms]203✓ uploadFilesForDraft > falls back to staged ids when the completion response length disagrees [1.63ms]204✓ uploadFilesForDraft > stages every file, then completes them in one call with no channel binding [2.61ms]205✓ uploadFilesForDraft > a later staging failure leaves nothing completed (no orphaned files) [1.44ms]206✓ uploadFilesForDraft > throws and completes nothing when a path does not exist [0.48ms]207✓ uploadFilesForDraft > throws and completes nothing when a byte POST fails [0.87ms]208✓ uploadFilesForDraft > throws when files.completeUploadExternal fails [0.70ms]209✓ uploadFilesForDraft > throws when the path is a directory [0.63ms]210✓ uploadLocalFileToSlack (shared-helper regression) > still binds the completed file to a channel with an initial comment [1.06ms]211212test/safe-mode.test.ts:213✓ isSafeModeEnabled > enabled via CLI flag [0.10ms]214✓ isSafeModeEnabled > enabled for env value "1" [0.04ms]215✓ isSafeModeEnabled > enabled for env value "true" [0.01ms]216✓ isSafeModeEnabled > enabled for env value "TRUE"217✓ isSafeModeEnabled > enabled for env value "yes"218✓ isSafeModeEnabled > enabled for env value "on"219✓ isSafeModeEnabled > enabled for env value " 1 "220✓ isSafeModeEnabled > disabled for env value "0" [0.04ms]221✓ isSafeModeEnabled > disabled for env value "false"222✓ isSafeModeEnabled > disabled for env value "off"223✓ isSafeModeEnabled > disabled for env value "no"224✓ isSafeModeEnabled > disabled for env value ""225✓ isSafeModeEnabled > disabled when env var is unset and flag is absent [0.04ms]226✓ safeModeBlockedError > names the blocked action [0.06ms]227✓ redirectSendToDraft > rejects unsupported send option {228 attach: [ "./report.md" ],229} [0.43ms]230✓ redirectSendToDraft > rejects unsupported send option {231 blocks: "/tmp/blocks.json",232} [0.02ms]233✓ redirectSendToDraft > rejects unsupported send option {234 schedule: "2030-01-01T00:00:00Z",235} [0.01ms]236✓ redirectSendToDraft > rejects unsupported send option {237 scheduleIn: "3h",238}239✓ redirectSendToDraft > rejects unsupported send option {240 replyBroadcast: true,241} [0.01ms]242✓ redirectSendToDraft > lists all unsupported flags at once [0.12ms]243✓ redirectSendToDraft > rejects in CI where no interactive editor is available [0.54ms]244⚠ Safe mode active: redirecting "message send" → draft editor. Nothing posts until a human sends it from the editor.245✓ redirectSendToDraft > opens a draft with the send text and thread context [0.33ms]246247test/mrkdwn.test.ts:248✓ slackMrkdwnToMarkdown > converts Slack-style links [0.11ms]249✓ slackMrkdwnToMarkdown > converts user and channel mentions [0.06ms]250✓ slackMrkdwnToMarkdown > converts :emoji: shortcodes to unicode [0.21ms]251252test/render.test.ts:253✓ renderSlackMessageContent > prefers blocks [0.13ms]254✓ renderSlackMessageContent > preserves usergroup and broadcast elements from rich text [0.23ms]255✓ renderSlackMessageContent > omits malformed usergroup and broadcast elements [0.12ms]256✓ renderSlackMessageContent > falls back to attachments when text is empty [0.28ms]257✓ renderSlackMessageContent > includes section fields and button URLs [0.17ms]258✓ renderSlackMessageContent > includes attachment fields [0.17ms]259✓ renderSlackMessageContent > renders forwarded message with author and source link [0.59ms]260✓ renderSlackMessageContent > renders forwarded message with author name only [0.09ms]261✓ renderSlackMessageContent > renders forwarded message with no author [0.09ms]262✓ renderSlackMessageContent > includes forwarded file links in quoted forwarded body [0.12ms]263✓ renderSlackMessageContent > renders nested forwarded attachments similarly to normal attachments [0.16ms]264✓ renderSlackMessageContent > deduplicates repeated forwarded body content [0.14ms]265✓ renderSlackMessageContent > handles cyclic forwarded attachments without infinite recursion [0.12ms]266✓ renderSlackMessageContent > does not treat link unfurl as forwarded message [0.08ms]267✓ renderSlackMessageContent > combines blocks and non-shared attachments [0.08ms]268269test/update.test.ts:270✓ compareSemver > equal versions return 0 [0.10ms]271✓ compareSemver > strips v prefix [0.04ms]272✓ compareSemver > newer major [0.03ms]273✓ compareSemver > newer minor [0.02ms]274✓ compareSemver > newer patch [0.02ms]275✓ compareSemver > older version returns negative [0.02ms]276✓ compareSemver > handles 0.x versions [0.03ms]277278test/search-files.test.ts:279Warning: skipping file F1: Failed to download file (404)280✓ searchFilesViaSearchApi > skips failed downloads and keeps later successful matches [4.32ms]281Warning: skipping file F1: Failed to download file (404)282✓ searchFilesInChannelsFallback > continues after a failed download in files.list results [2.41ms]283✓ SlackApiClient browser API guards > fails fast on rate-limit retry windows by default [1.68ms]284✓ SlackApiClient browser API guards > surfaces request timeouts with the Slack method name [0.33ms]285286test/channel-command.test.ts:287✓ channel list command > defaults to users.conversations for current user [1.92ms]288✓ channel list command > with --user id uses users.conversations and sets user directly [0.76ms]289✓ channel list command > with --user handle resolves via users.list before users.conversations [0.70ms]290✓ channel list command > with --user unknown handle is a hard error [0.87ms]291✓ channel list command > with --all uses conversations.list [0.56ms]292✓ channel list command > forwards --limit and --cursor [0.45ms]293✓ channel list command > --all and --user is a hard error [0.46ms]294✓ channel list command > invalid --limit is a hard error [0.40ms]295✓ channel list command > help text documents single-page pagination model [0.26ms]296✓ channel mark command > URL target extracts workspace from URL [1.07ms]297✓ channel mark command > URL target rejects --workspace flag [0.55ms]298✓ channel mark command > channel target requires --ts [0.45ms]299✓ channel mark command > URL target allows --ts override [0.46ms]300✓ channel mark command > channel target with --ts calls conversations.mark [0.51ms]301302test/client.test.ts:303✓ SlackApiClient browser multipart transport > retries HTTP 429 responses using Retry-After [1.00ms]304305test/targets.test.ts:306✓ parseMsgTarget > parses slack message URLs [0.07ms]307✓ parseMsgTarget > accepts #channel [0.04ms]308✓ parseMsgTarget > accepts bare channel names [0.03ms]309✓ parseMsgTarget > accepts channel IDs [0.03ms]310✓ parseMsgTarget > accepts user IDs as DM targets [0.05ms]311✓ parseMsgTarget > accepts W-prefixed user IDs as DM targets [0.03ms]312✓ parseMsgTarget > accepts user IDs with leading/trailing whitespace [0.04ms]313✓ parseMsgTarget > does not treat short U-prefixed strings as user IDs [0.03ms]314✓ parseMsgTarget > does not treat short W-prefixed strings as user IDs [0.02ms]315316test/later.test.ts:317✓ fetchLaterItems > returns counts only when countsOnly is true [0.48ms]318✓ fetchLaterItems > filters to message items only [0.69ms]319✓ fetchLaterItems > filters by state [0.23ms]320✓ fetchLaterItems > state 'all' returns all items [0.15ms]321✓ fetchLaterItems > respects limit [0.17ms]322✓ fetchLaterItems > hydrates message content [0.23ms]323✓ fetchLaterItems > resolves DM user display names [0.18ms]324✓ fetchLaterItems > truncates long message content [0.21ms]325✓ updateLaterMark > sends mark=completed via multipart [0.20ms]326✓ updateLaterMark > sends mark=archived via multipart [0.11ms]327✓ updateLaterMark > sends mark=uncompleted via multipart [0.09ms]328✓ updateLaterMark > sends mark=unarchived via multipart [0.07ms]329✓ saveLater > calls saved.add with correct params [0.31ms]330✓ removeLater > calls saved.delete with correct params [0.17ms]331✓ setLaterReminder > calls saved.update via multipart with date_due [0.17ms]332✓ parseReminderDuration > parses minutes [0.27ms]333✓ parseReminderDuration > parses hours [0.05ms]334✓ parseReminderDuration > parses fractional hours [0.03ms]335✓ parseReminderDuration > parses days [0.06ms]336✓ parseReminderDuration > parses 'tomorrow' as next day 9 AM [12.11ms]337✓ parseReminderDuration > parses day names [0.10ms]338✓ parseReminderDuration > passes through unix timestamps [0.03ms]339✓ parseReminderDuration > supports verbose unit names [0.06ms]340✓ parseReminderDuration > throws on invalid input [0.10ms]341342test/channel-admin.test.ts:343✓ parseInviteUsersCsv > splits comma-separated values, trims whitespace, and deduplicates [0.11ms]344✓ parseInviteUsersCsv > returns empty array when input has no values [0.03ms]345✓ splitEmailsFromInviteTargets > separates email targets from non-email targets [0.13ms]346✓ splitEmailsFromInviteTargets > deduplicates emails [0.03ms]347348test/files.test.ts:349✓ downloadSlackFile > downloads file and writes to disk [1.27ms]350✓ downloadSlackFile > returns cached path when file already exists [0.70ms]351✓ downloadSlackFile > throws SlackDownloadError on HTTP 404 [0.59ms]352✓ downloadSlackFile > throws SlackDownloadError with httpStatus on HTTP error [0.89ms]353✓ downloadSlackFile > throws SlackDownloadError on HTML auth page [0.44ms]354✓ downloadSlackFile > throws SlackDownloadError on network error [0.65ms]355✓ downloadSlackFile > throws SlackDownloadError when reading html body fails [0.59ms]356✓ downloadSlackFile > throws SlackDownloadError when reading binary body fails [0.45ms]357✓ tryDownloadSlackFile > returns ok result on success [1.78ms]358✓ tryDownloadSlackFile > returns failure result on HTTP 404 [0.48ms]359✓ tryDownloadSlackFile > returns failure result on network error [0.51ms]360✓ tryDownloadSlackFile > propagates disk/write errors [0.59ms]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.95ms]363Warning: skipping file F2: Failed to download file (404)364✓ downloadMessageFiles > records non-canvas download failures with a local error path [1.22ms]365366test/users.test.ts:367✓ resolveUserId > returns user ids unchanged [0.10ms]368✓ resolveUserId > returns W-prefixed user ids unchanged [0.07ms]369✓ resolveUserId > resolves @handle via users.list [0.14ms]370✓ resolveUserId > resolves email via users.lookupByEmail [0.12ms]371✓ resolveUserId > resolves @handle case-insensitively [0.11ms]372✓ resolveUserId > falls back to users.list when lookupByEmail is unavailable [0.21ms]373374test/message-draft-actions.test.ts:375✓ createDraftAction > creates a draft addressed to a channel id [0.99ms]376✓ createDraftAction > rejects --broadcast without a thread [0.27ms]377✓ createDraftAction > rejects --broadcast for a DM (user) target [0.19ms]378✓ createDraftAction > rejects --broadcast for a D... channel-id (DM) target [0.12ms]379✓ createDraftAction > rejects --broadcast on a channel name with no thread before any network call [0.12ms]380✓ createDraftAction > rejects --broadcast on a DM message URL before fetching the message [0.13ms]381✓ createDraftAction > uploads --attach files and wires their file ids into the draft [1.95ms]382✓ createDraftAction > aborts before any upload or drafts.create when an --attach path is missing [2.08ms]383✓ updateDraftAction > text-only edit preserves destination, thread, broadcast, and file ids [0.72ms]384✓ updateDraftAction > re-addressing a broadcast thread draft to a non-thread channel clears broadcast instead of erroring [0.24ms]385✓ updateDraftAction > explicit --broadcast on a non-thread draft still errors [0.24ms]386✓ updateDraftAction > refuses to update a scheduled draft rather than clearing its schedule [0.25ms]387✓ updateDraftAction > refuses a text-only update on a multi-destination draft, but allows re-addressing [2.42ms]388✓ updateDraftAction > re-addressing to a different thread does not inherit the old broadcast flag [0.20ms]389✓ updateDraftAction > --no-broadcast clears an inherited broadcast flag on a same-thread edit [0.15ms]390✓ updateDraftAction > rejects --broadcast when re-addressing to a DM (user) target [0.13ms]391✓ updateDraftAction > changing only --thread-ts (no --channel) does not inherit the old broadcast flag [0.18ms]392✓ updateDraftAction > rejects --broadcast on an existing DM-destination draft [3.31ms]393✓ updateDraftAction > rejects --broadcast when re-addressing to a channel name with no thread, before resolving it [0.15ms]394✓ updateDraftAction > merges --attach file ids into the draft's existing file_ids [1.45ms]395✓ updateDraftAction > merges --attach while de-duplicating ids already on the draft [1.16ms]396✓ deleteDraftAction > auto-fetches and pads last_updated_ts when omitted [0.41ms]397✓ listDraftsAction > hydrates channel display names [0.72ms]398{399 "ok": true,400 "draft": {401 "id": "Dr123",402 "destinations": [403 {404 "channel_id": "C11111111",405 "thread_ts": "1700000000.100000"406 }407 ]408 }409}410✓ message draft update (commander --broadcast wiring) > omitting broadcast flags does not force broadcast on (no Commander default-true gotcha) [0.88ms]411{412 "ok": true,413 "draft": {414 "id": "Dr123",415 "destinations": [416 {417 "channel_id": "C11111111",418 "thread_ts": "1700000000.100000",419 "broadcast": true420 }421 ]422 }423}424✓ message draft update (commander --broadcast wiring) > --broadcast sets broadcast true [0.51ms]425{426 "ok": true,427 "draft": {428 "id": "Dr123",429 "destinations": [430 {431 "channel_id": "C11111111",432 "thread_ts": "1700000000.100000"433 }434 ]435 }436}437✓ message draft update (commander --broadcast wiring) > --no-broadcast clears an inherited broadcast flag [0.51ms]438{439 "ok": true,440 "draft": {441 "id": "DrNew",442 "destinations": [443 {444 "channel_id": "C11111111"445 }446 ]447 }448}449✓ message draft create (commander --attach wiring) > collects repeatable --attach flags into an array [2.29ms]450✓ message draft unknown subcommand > old `message draft <target>` usage points to `message compose` [0.68ms]451✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 create: a drafts.create auth failure retries work WITHOUT re-uploading files [1.40ms]452✓ draft attachments: orphan prevention across auth-retry and failed drafts > #2 update: a drafts.update auth failure retries work WITHOUT re-uploading files [0.96ms]453✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 create: a non-auth drafts.create failure deletes the uploaded file [1.04ms]454✓ draft attachments: orphan prevention across auth-retry and failed drafts > #3 update: a stale drafts.update failure deletes the newly uploaded file only [1.20ms]455✓ draft attachments: orphan prevention across auth-retry and failed drafts > a failed draft with no attachments does not attempt files.delete [0.29ms]456457test/leveldb-reader.test.ts:458✓ leveldb-reader > readChromiumLevelDB > returns empty array for non-existent directory [0.42ms]459✓ leveldb-reader > readChromiumLevelDB > returns empty array for empty directory [0.76ms]460✓ leveldb-reader > readChromiumLevelDB > reads entries from SSTable files [1.85ms]461✓ leveldb-reader > readChromiumLevelDB > reads entries from log files [1.11ms]462✓ leveldb-reader > readChromiumLevelDB > reads from both SSTable and log files [0.85ms]463✓ leveldb-reader > readChromiumLevelDB > handles .sst file extension [0.52ms]464✓ leveldb-reader > findKeysContaining > filters entries by key substring [0.83ms]465✓ leveldb-reader > findKeysContaining > returns empty array when no matches [0.52ms]466✓ leveldb-reader > edge cases > handles invalid SSTable (wrong magic) [0.45ms]467✓ leveldb-reader > edge cases > handles empty SSTable file [0.35ms]468✓ leveldb-reader > edge cases > handles SSTable smaller than footer size [0.42ms]469470test/message-reaction-filters.test.ts:471✓ parseReactionFilters > normalizes shortcodes, names, and unicode [0.13ms]472✓ parseReactionFilters > returns empty array when unset [0.02ms]473✓ passesReactionNameFilters > matches when required reaction is present [0.14ms]474✓ passesReactionNameFilters > does not match when required reaction is missing [0.03ms]475✓ passesReactionNameFilters > does not match when excluded reaction is present [0.04ms]476✓ passesReactionNameFilters > matches when excluded reaction is absent [0.02ms]477✓ passesReactionNameFilters > supports with + without together [0.02ms]478✓ requireOldestWhenReactionFiltersUsed > returns oldest when no reaction filters are used [0.05ms]479✓ requireOldestWhenReactionFiltersUsed > returns trimmed oldest when reaction filters are used [0.05ms]480✓ requireOldestWhenReactionFiltersUsed > throws when reaction filters are used without oldest [0.06ms]481482test/canvas-create.test.ts:483✓ createCanvasFromMarkdown > sends Markdown content, title, and channel to canvases.create [0.33ms]484✓ createCanvasFromMarkdown > rejects empty Markdown before calling Slack [0.15ms]485✓ createCanvasFromMarkdown > rejects a success response without a canvas id [0.12ms]486✓ createCanvasFromMarkdown > uses Slack's Markdown canvas method with imported browser credentials [0.12ms]487✓ createCanvasFromMarkdown > rejects channel tabs with browser credentials before calling Slack [0.14ms]488✓ editCanvas > sends the documented replace change [0.44ms]489✓ editCanvas > sends the documented replace section change [0.04ms]490✓ editCanvas > sends the documented insert before change [0.02ms]491✓ editCanvas > sends the documented insert after change [0.01ms]492✓ editCanvas > sends the documented insert at start change [0.01ms]493✓ editCanvas > sends the documented insert at end change [0.02ms]494✓ editCanvas > sends the documented delete section change [0.01ms]495✓ editCanvas > sends the documented rename change [0.01ms]496✓ editCanvas > rejects invalid combinations before calling Slack [0.31ms]497✓ editCanvas > rejects empty Markdown and canvas ids before calling Slack [0.13ms]498✓ editCanvas > rejects Markdown over Slack's per-change limit before calling Slack [7.61ms]499✓ readCanvasMarkdownInput > reads a Markdown file without changing its contents [1.27ms]500✓ readCanvasMarkdownInput > accepts a Markdown blob [0.08ms]501✓ readCanvasMarkdownInput > requires exactly one source [0.10ms]502✓ readCanvasMarkdownInput > rejects an empty source [0.06ms]503✓ canvas create command > creates from an inline blob in the selected workspace [1.14ms]504✓ canvas create command > creates from a file and resolves a channel tab [1.20ms]505✓ canvas create command > rejects browser-auth channel tabs before resolving the channel [0.50ms]506✓ canvas create command > rejects missing or conflicting sources before authenticating [0.43ms]507✓ canvas edit command > replaces a canvas from a Markdown URL target [1.07ms]508✓ canvas edit command > inserts content from a file and passes a section id [1.10ms]509✓ canvas edit command > renames without a Markdown source [0.41ms]510✓ canvas edit command > rejects delete content and malformed inputs before authenticating [0.56ms]511✓ canvas edit command > rejects browser credentials before calling canvases.edit [0.41ms]512513test/parse-limit.test.ts:514✓ parseLimit > returns undefined when no value given [0.05ms]515✓ parseLimit > parses valid positive integers [0.03ms]516✓ parseLimit > rejects non-numeric strings [0.03ms]517✓ parseLimit > rejects zero [0.02ms]518✓ parseLimit > rejects negative numbers [0.02ms]519✓ parseLimit > rejects floats (uses integer part) [0.02ms]520✓ requireMessageTs > returns trimmed ts when present [0.03ms]521✓ requireMessageTs > throws when missing [0.03ms]522✓ requireMessageTs > throws when blank [0.02ms]523524test/html-to-md.test.ts:525✓ htmlToMarkdown > converts basic HTML to markdown [14.85ms]526527test/message-send.test.ts:528✓ sendMessage > posts a normal message when no attachments are passed [1.37ms]529✓ sendMessage > --no-unfurl disables link and media previews for immediate sends [0.23ms]530✓ sendMessage > opens and sends to a DM for a W-prefixed user target [0.36ms]531✓ sendMessage > returns a permalink when the workspace was resolved implicitly [0.17ms]532✓ sendMessage > threaded reply returns thread_ts distinct from ts [0.17ms]533✓ sendMessage > --reply-broadcast with --thread-ts sends reply_broadcast: true [0.16ms]534✓ sendMessage > --reply-broadcast omits the field from chat.postMessage when flag is absent [0.18ms]535✓ sendMessage > --reply-broadcast without --thread-ts throws [0.21ms]536✓ sendMessage > --reply-broadcast on a URL target broadcasts using the message's derived thread_ts [0.79ms]537✓ sendMessage > --reply-broadcast on a DM target throws (broadcasting is not meaningful for DMs) [0.20ms]538✓ sendMessage > --reply-broadcast works alongside --blocks payload [1.06ms]539✓ sendMessage > uploads attachment and uses message text as initial comment [1.08ms]540✓ sendMessage > --no-unfurl cannot be combined with file attachments [0.18ms]541✓ sendMessage > sends initial comment only for the first attachment [1.12ms]542✓ sendMessage > uploads attachment without text when text is empty [0.80ms]543✓ sendMessage > --blocks: reads Block Kit JSON from file and passes through unchanged [0.63ms]544✓ sendMessage > --blocks: errors when JSON is not an array [0.60ms]545✓ sendMessage > --blocks: errors on malformed JSON [0.47ms]546✓ sendMessage > --blocks: overrides markdown-to-rich-text conversion when text is also provided [0.55ms]547✓ sendMessage > sends Slack manual links in lists as rich-text link blocks [0.28ms]548✓ sendMessage > --blocks: errors when an array element is not an object [0.52ms]549✓ sendMessage > --schedule sends through chat.scheduleMessage and returns scheduled metadata [0.65ms]550✓ sendMessage > --schedule-in computes a relative post_at [0.41ms]551✓ sendMessage > --no-unfurl disables link and media previews for scheduled sends [0.25ms]552✓ sendMessage > --schedule composes with blocks, thread replies, and reply broadcast [0.66ms]553✓ sendMessage > --schedule cannot be combined with file attachments [0.22ms]554✓ composeMessage > --no-unfurl disables link and media previews when CI sends immediately [0.75ms]555✓ composeMessage > keeps Slack's default preview behavior for a standard CI send [0.26ms]556✓ composeMessage > --no-unfurl disables previews for a URL target when CI sends immediately [0.64ms]557✓ scheduled message management > lists scheduled messages and forwards channel filters [0.72ms]558✓ scheduled message management > cancels scheduled messages with the required channel id [0.39ms]559✓ scheduled message time parsing > parses absolute ISO timestamps with explicit timezones [0.11ms]560✓ scheduled message time parsing > parses named relative times like monday 9am [0.48ms]561✓ scheduled message time parsing > rejects schedule times beyond Slack's 120 day limit [0.13ms]562✓ editMessage > edits a normal text message without blocks [0.48ms]563✓ editMessage > edits literal angle bracket text without blocks [0.15ms]564✓ editMessage > edits a message URL with a link label without blocks [0.20ms]565✓ editMessage > edits an inline mailto link without escaping it [0.16ms]566✓ editMessage > edits an inline usergroup mention without escaping it [0.18ms]567✓ editMessage > edits a channel target with inline formatting without blocks [0.16ms]568✓ editMessage > edits a channel target with rich text blocks when text contains a list [0.21ms]569✓ editMessage > edits a normal message without blocks when no --blocks file is passed [0.17ms]570✓ editMessage > edits a message URL with Block Kit JSON from file [0.76ms]571✓ editMessage > edits a channel target with --ts and Block Kit JSON from file [0.66ms]572573test/reactions.test.ts:574✓ reactions compaction > includes reactions only when enabled [0.29ms]575✓ reactions compaction > preserves W-prefixed user IDs while compacting reactions [0.08ms]576✓ reactions compaction > adds forwarded thread metadata for shared messages with thread_ts [0.17ms]577578 399 pass579 0 fail580 817 expect() calls581Ran 399 tests across 38 files. [569.00ms]fixupPhase
582shrinking RPATHs of ELF executables and libraries in /nix/store/wjp0x8gak81fq19cbwxl8fsn8kv15h6s-agent-slack-0.10.2583checking for references to /build/ in /nix/store/wjp0x8gak81fq19cbwxl8fsn8kv15h6s-agent-slack-0.10.2...584patching script interpreter paths in /nix/store/wjp0x8gak81fq19cbwxl8fsn8kv15h6s-agent-slack-0.10.2installCheckPhase
585Executing versionCheckPhase586Successfully managed to find version 0.10.2 in the output of the command /nix/store/wjp0x8gak81fq19cbwxl8fsn8kv15h6s-agent-slack-0.10.2/bin/agent-slack --version5870.10.2588Finished versionCheckPhase589no Makefile or custom installCheckPhase, doing nothing