/** * Crewly Constants - Centralized Export * * This file provides a single import point for all Crewly constants across domains. * * Usage examples: * ```typescript * // Cross-domain constants * import { CREWLY_CONSTANTS, WEB_CONSTANTS } from '../config'; * * // Backend-specific constants * import { BACKEND_CONSTANTS } from '../config'; * * // All constants * import * as CONFIG from '../config'; * ``` */ // ========================= CROSS-DOMAIN CONSTANTS ========================= // NOTE: no comment may precede the first specifier in the import/export lists // below. TypeScript's CommonJS emit (used by ts-jest) attaches such a comment // after `return` in the re-export getter, and ASI turns it into `return;`, so // CREWLY_CONSTANTS read as undefined under jest (fine under the ESM build). import { CREWLY_CONSTANTS, WEB_CONSTANTS, TIMING_CONSTANTS, MESSAGE_CONSTANTS, ENV_CONSTANTS, BACKEND_CONSTANTS, AGENT_IDENTITY_CONSTANTS, MEMORY_CONSTANTS, CONTINUATION_CONSTANTS, VERSION_CHECK_CONSTANTS, AUTO_UPDATE_CONSTANTS, MARKETPLACE_CONSTANTS, TEMPLATE_MARKETPLACE_CONSTANTS, PROCESS_EXIT_CODES, SAFE_RESTART_CONSTANTS, SERVER_CONSTANTS, API_SECURITY_CONSTANTS, EVENT_DEBOUNCE_MS, CLOUD_DEVICE_PAIRING_CONSTANTS, OSS_BOUNDARY_CONSTANTS, RULE_METADATA_CONSTANTS, // Type helpers type AgentStatus, type WorkingStatus, type AgentRole, type AgentId, type MessageType, type OrchestratorCommand, type HTTPStatusCode, } from './constants.js'; export { CREWLY_CONSTANTS, WEB_CONSTANTS, TIMING_CONSTANTS, MESSAGE_CONSTANTS, ENV_CONSTANTS, BACKEND_CONSTANTS, AGENT_IDENTITY_CONSTANTS, MEMORY_CONSTANTS, CONTINUATION_CONSTANTS, VERSION_CHECK_CONSTANTS, AUTO_UPDATE_CONSTANTS, MARKETPLACE_CONSTANTS, TEMPLATE_MARKETPLACE_CONSTANTS, PROCESS_EXIT_CODES, SAFE_RESTART_CONSTANTS, SERVER_CONSTANTS, API_SECURITY_CONSTANTS, EVENT_DEBOUNCE_MS, CLOUD_DEVICE_PAIRING_CONSTANTS, OSS_BOUNDARY_CONSTANTS, RULE_METADATA_CONSTANTS, // Type helpers type AgentStatus, type WorkingStatus, type AgentRole, type AgentId, type MessageType, type OrchestratorCommand, type HTTPStatusCode, }; // All backend constants have been consolidated into the main constants.ts file // Use BACKEND_CONSTANTS from the main export above // ========================= DOMAIN-SPECIFIC CONVENIENCE EXPORTS ========================= /** * All cross-domain constants grouped for easy access */ export const CROSS_DOMAIN_CONSTANTS = { CREWLY: CREWLY_CONSTANTS, WEB: WEB_CONSTANTS, TIMING: TIMING_CONSTANTS, MESSAGES: MESSAGE_CONSTANTS, ENV: ENV_CONSTANTS, BACKEND: BACKEND_CONSTANTS, AGENT_IDENTITY: AGENT_IDENTITY_CONSTANTS, MEMORY: MEMORY_CONSTANTS, CONTINUATION: CONTINUATION_CONSTANTS, } as const;