Files
stablyai__agent-slack/resolve3.cjs
Jinjing 8c44393f41 refactor: optimize fetchUnreads API usage and filtering
- Concurrently fetch conversations.info and conversations.history instead of sequentially
- Utilize client.counts' unread_count and unread_count_display to prevent history fetches for --counts-only
- Change filtering to use a system subtype denylist instead of a broad allowlist to prevent missing custom messages or file shares
- Fix mangled ellipsis character in truncated messages
2026-04-07 17:19:57 -07:00

16 lines
1.0 KiB
JavaScript

const fs = require("fs");
let content = fs.readFileSync("src/index.ts", "utf-8");
content = content.replace(
/<<<<<<< HEAD\nimport { registerLaterCommand } from "\.\/cli\/later-command\.ts";\n\|\|\|\|\|\|\| parent of e123d29 \(feat: add unreads command for inbox-style unread message view\)\n=======\nimport { registerUnreadsCommand } from "\.\/cli\/unreads-command\.ts";\n>>>>>>> e123d29 \(feat: add unreads command for inbox-style unread message view\)/,
'import { registerLaterCommand } from "./cli/later-command.ts";\nimport { registerUnreadsCommand } from "./cli/unreads-command.ts";',
);
content = content.replace(
/<<<<<<< HEAD\nregisterLaterCommand\(\{ program, ctx \}\);\n\|\|\|\|\|\|\| parent of e123d29 \(feat: add unreads command for inbox-style unread message view\)\n=======\nregisterUnreadsCommand\(\{ program, ctx \}\);\n>>>>>>> e123d29 \(feat: add unreads command for inbox-style unread message view\)/,
"registerLaterCommand({ program, ctx });\nregisterUnreadsCommand({ program, ctx });",
);
fs.writeFileSync("src/index.ts", content);