Generated from services/crossfire/packages/contracts/src/policy.ts at
41af2124Definitions#
All code blocks below are TypeScript declarations copied from the server. They document validation, not JSON to send or code to paste into a chat. Clients can use any HTTP library without importing these declarations. check.object rejects unknown fields. Custom functions and refinements specify additional checks.
Imported definitions#
This module has no local contract dependencies.
DEFAULT_AGENT_INSTRUCTIONS#
DEFAULT_AGENT_INSTRUCTIONS = ''AGENT_INSTRUCTIONS_MAX_BYTES#
AGENT_INSTRUCTIONS_MAX_BYTES = 8192POLICY_LIMITS#
POLICY_LIMITS = {
maxOwnerAgents: { min: 1, max: 100 }, maxAgents: { min: 1, max: 1000 }, maxPending: { min: 1, max: 1000 },
enrollmentSeconds: { min: 60, max: 3600 }, reconcileSeconds: { min: 30, max: 3600 },
maxMessageBytes: { min: 4096, max: 4194304 },
fleetIdleTimeoutSeconds: { min: 0, max: 604800 },
} as constHUMAN_SIGNUP#
HUMAN_SIGNUP = { usernameMax: 100, usernamePattern: '[a-z0-9][a-z0-9._=\\-]*', passwordMin: 12, passwordMax: 1024, labelMax: 100 } as const