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