mirror of
https://github.com/stablyai/agent-slack.git
synced 2026-09-19 01:06:54 +08:00
8c44393f41
- 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
16 lines
1.0 KiB
JavaScript
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);
|