Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(#6308): type the ended turn's capability as an internal capability
milind-soni2fbc58a6a231
diff --git a/server/index.ts b/server/index.tsindex e1318c4b74..99746405e6 100644--- a/server/index.ts+++ b/server/index.ts@@ -12829,7 +12829,7 @@ const handleRequest = async (req: IncomingMessage, res: ServerResponse) => {return json(res, 201, { token });}if (path.startsWith("/api/internal/")) {- const internalCapability = authorizedInternalCapability(req.headers.authorization) ?? lateToolResults.endedTurnCapability(req.headers.authorization);+ const internalCapability: InternalCapability | null = authorizedInternalCapability(req.headers.authorization) ?? lateToolResults.endedTurnCapability(req.headers.authorization);if (!internalCapability) {return json(res, 401, { error: "unauthorized" });}