Core Primitives Documentation
The 15 Core Layer primitives provide fundamental operations for command execution, networking, data processing, and system management.
Foundation Primitives (Priority 1-3)
exec_primitive
Purpose: Command execution with streaming support Key Features: - Cross-platform command execution - Real-time streaming output - Process management and termination - Environment variable handling
http_primitive
Purpose: HTTP client operations and WebSocket support Key Features: - REST API interactions - WebSocket client connections - Request/response streaming - Authentication handling
tcp_primitive
Purpose: TCP client/server networking Key Features: - TCP client and server creation - Connection management - Data streaming - Connection pooling
Data Processing Primitives (Priority 4-6)
parse_primitive
Purpose: Multi-format data parsing Supported Formats: JSON, YAML, XML, CSV, TOML Features: Schema validation, error handling, streaming parsing
format_primitive
Purpose: Data formatting and presentation Features: Pretty printing, table generation, template rendering
validate_primitive
Purpose: Data validation and schema checking Features: JSON Schema, custom validators, error reporting
System Operations (Priority 7-15)
env_primitive
Environment variable management and configuration
path_primitive
File system path operations and manipulation
hash_primitive
Cryptographic hashing and data integrity
compress_primitive
Data compression and archival operations
watch_primitive
File system monitoring and change detection
lock_primitive
Process synchronization and resource locking
queue_primitive
Message queuing and task management
cache_primitive
Data caching and performance optimization
log_primitive
Logging and audit trail management