openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
21 lines (20 loc) • 550 B
JavaScript
//#region packages/gateway-protocol/src/chat-work-context.ts
/** Bounded, untrusted send-time reference data; never routing or authorization. */
const CHAT_WORK_CONTEXT_LIMITS = {
page: 64,
title: 96,
sessionKey: 192,
sessionId: 64,
agentId: 64,
workspace: 224,
file: 224,
selection: 640
};
/** Keep plugin reference fields small even when their JSON needs escaping. */
const CHAT_WORK_CONTEXT_DETAIL_LIMITS = {
fields: 4,
key: 32,
value: 128
};
//#endregion
export { CHAT_WORK_CONTEXT_LIMITS as n, CHAT_WORK_CONTEXT_DETAIL_LIMITS as t };