UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

91 lines • 2.69 kB
// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. ========= // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ========= Copyright 2026 @ Strukto.AI All Rights Reserved. ========= export const StateKey = Object.freeze({ VERSION: 'version', MIRAGE_VERSION: 'mirage_version', MOUNTS: 'mounts', SESSIONS: 'sessions', ENV: 'env', DEFAULT_SESSION_ID: 'default_session_id', IO: 'io', CACHE: 'cache', HISTORY: 'history', JOBS: 'jobs', FINGERPRINTS: 'fingerprints', LIVE_ONLY_MOUNTS: 'live_only_mounts', NODES: 'nodes', CLIS: 'clis', WRITE: 'write', PROFILES: 'profiles', PROFILE: 'profile', COMMAND_LIMITS: 'command_limits', MAX_MEMORY: 'max_memory', NETWORK: 'network', SYSTEM_TIME: 'system_time', }); export const MountKey = Object.freeze({ INDEX: 'index', PREFIX: 'prefix', MODE: 'mode', READ: 'read', TTL: 'ttl', WRITE: 'write', VFS_CLASS: 'vfs_class', VFS_REF: 'vfs_ref', INDEX_CONFIG: 'index_config', VFS_STATE: 'vfs_state', ANCHOR: 'anchor', COMMAND_LIMITS: 'command_limits', }); export const CacheKey = Object.freeze({ LIMIT: 'limit', MAX_DRAIN_BYTES: 'max_drain_bytes', ENTRIES: 'entries', KEY: 'key', DATA: 'data', FINGERPRINT: 'fingerprint', TTL: 'ttl', CACHED_AT: 'cached_at', SIZE: 'size', }); export const JobKey = Object.freeze({ EXECUTION_ID: 'execution_id', ID: 'id', COMMAND: 'command', CWD: 'cwd', STATUS: 'status', STDOUT: 'stdout', STDERR: 'stderr', EXIT_CODE: 'exit_code', CREATED_AT: 'created_at', SESSION_ID: 'session_id', }); /** An MCP CLI's tool list as a snapshot carries it, spelled as Python's and as MCP spells it. */ export const MCPKey = Object.freeze({ TITLE: 'title', TOOLS: 'tools', NAME: 'name', DESCRIPTION: 'description', INPUT_SCHEMA: 'input_schema', ANNOTATIONS: 'annotations', }); export const VFSStateKey = Object.freeze({ TYPE: 'type', CONFIG: 'config', NEEDS_OVERRIDE: 'needs_override', FILES: 'files', DIRS: 'dirs', MODIFIED: 'modified', }); //# sourceMappingURL=keys.js.map