fix: unblock build and slack monitor

This commit is contained in:
Peter Steinberger
2026-01-18 16:32:56 +00:00
parent 1db0384090
commit be6a3d4caf
2 changed files with 4 additions and 2 deletions

View File

@@ -97,6 +97,9 @@ describe("buildAgentSystemPrompt", () => {
"Use `Read` to load the SKILL.md at the location listed for that skill.",
);
expect(prompt).toContain("Clawdbot docs: /tmp/clawd/docs");
expect(prompt).toContain(
"For Clawdbot behavior, commands, config, or architecture: consult local docs first.",
);
});
it("includes docs guidance when docsPath is provided", () => {

View File

@@ -26,8 +26,7 @@ import { normalizeAllowList } from "./allow-list.js";
import type { MonitorSlackOpts } from "./types.js";
const { App, HTTPReceiver } = SlackBolt;
const { App, HTTPReceiver } = SlackBolt as typeof import("@slack/bolt");
function parseApiAppIdFromAppToken(raw?: string) {
const token = raw?.trim();
if (!token) return undefined;