feat: add ws chat attachments
This commit is contained in:
@@ -13,7 +13,9 @@ describe("formatAgentEnvelope", () => {
|
||||
timestamp: ts,
|
||||
body: "hello",
|
||||
});
|
||||
expect(body).toBe("[WebChat user1 mac-mini 10.0.0.5 2025-01-02 03:04] hello");
|
||||
expect(body).toBe(
|
||||
"[WebChat user1 mac-mini 10.0.0.5 2025-01-02 03:04] hello",
|
||||
);
|
||||
});
|
||||
|
||||
it("handles missing optional fields", () => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import crypto from "node:crypto";
|
||||
import { lookupContextTokens } from "../agents/context.js";
|
||||
import { DEFAULT_CONTEXT_TOKENS, DEFAULT_MODEL } from "../agents/defaults.js";
|
||||
import { resolveBundledPiBinary } from "../agents/pi-path.js";
|
||||
import { loadConfig, type ClawdisConfig } from "../config/config.js";
|
||||
import { type ClawdisConfig, loadConfig } from "../config/config.js";
|
||||
import {
|
||||
DEFAULT_IDLE_MINUTES,
|
||||
DEFAULT_RESET_TRIGGER,
|
||||
|
||||
Reference in New Issue
Block a user