Files
openclaw/src/gateway/server-node-events.runtime.ts
Omar Shahine b6c4b2d55b feat(gateway): advertise chat attachment limits on hello-ok
Clients had no way to learn the gateway attachment ceilings, so external
clients hardcoded guesses that drifted from server enforcement. Publish the
two unconditional decoded-size ceilings on hello-ok policy.attachments from
one shared resolver so advertised values cannot drift from the parser.

MIME acceptance and per-message counts stay server-side: they depend on the
entrypoint, the resolved model, and payload sniffing, so they cannot be stated
once per connection.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 17d6c355-8948-4b48-a936-e08b1c8806ef
2026-08-01 16:35:48 +00:00

35 lines
1.7 KiB
TypeScript

// Runtime import barrel for node event handlers. Keeping these dependencies in
// one lazy boundary prevents gateway startup paths from loading every node-event
// helper before node traffic is actually handled.
export { resolveSessionAgentId } from "../agents/agent-scope.js";
export { normalizeChannelId } from "../channels/plugins/index.js";
export { sendDurableMessageBatch } from "../channels/message/runtime.js";
export { createOutboundSendDeps } from "../cli/outbound-send-deps.js";
export { agentCommandFromIngress } from "../commands/agent.js";
export { getRuntimeConfig } from "../config/io.js";
export { upsertSessionEntry } from "../config/sessions/session-accessor.js";
export { loadOrCreateProcessDeviceIdentity } from "../infra/device-identity.js";
export { requestHeartbeat } from "../infra/heartbeat-wake.js";
export { buildOutboundSessionContext } from "../infra/outbound/session-context.js";
export { resolveOutboundTarget } from "../infra/outbound/targets.js";
export {
ApnsRegistrationPairingChangedError,
registerApnsRegistration,
} from "../infra/push-apns.js";
export { enqueueSystemEvent } from "../infra/system-events.js";
export { deleteMediaBuffer } from "../media/store.js";
export { normalizeMainKey } from "../routing/session-key.js";
export { defaultRuntime } from "../runtime.js";
export { resolveChatAttachmentMaxBytes } from "./chat-attachment-policy.js";
export {
parseMessageWithAttachments,
persistInboundImagesForTranscript,
} from "./chat-attachments.js";
export { normalizeRpcAttachmentsToChatAttachments } from "./server-methods/attachment-normalize.js";
export {
loadSessionEntry,
resolveGatewayModelSupportsImages,
resolveSessionModelRef,
} from "./session-utils.js";
export { formatForLog } from "./ws-log.js";