Skip to content

ARCHIT3CT3/vibe-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ARCHIT3CT3

Modular TypeScript infrastructure with sandboxed execution and extensible hook system.

Installation

npm install
npm run build

Architecture

src/
β”œβ”€β”€ core/           # Command dispatcher with promise queue
β”œβ”€β”€ lib/            # Sandboxed execution modules
β”œβ”€β”€ api/            # CLI entry point
β”œβ”€β”€ security/       # Filtering middleware (The Shield)
└── types/          # Core type definitions

Core (/core)

CommandDispatcher manages a promise queue and maps action types to registered modules. Supports async execution with configurable concurrency limits.

Lib (/lib)

SandboxedExecutor wraps child_process.spawn with:

  • 5-second execution timeout
  • Sandbox-restricted working directory
  • Output buffer limits
  • Allowed command whitelist

Security (/security)

Shield middleware implements:

  • Blocklist patterns for dangerous commands (rm, chmod, mv to /, etc.)
  • Path traversal prevention
  • Sandbox boundary enforcement
  • Violation audit logging

API (/api)

TerminalAPI provides CLI interface:

  • JSON input via stdin
  • Structured JSON output: { status, data, logs, executionTime }
  • Debug and pretty-print modes

Extensibility

Third-party extensions via the hook system:

import type { Hook, HookContext, HookPhase } from 'archit3ct3';

const myHook: Hook = {
  name: 'my-plugin',
  phase: 'pre-execute',
  priority: 50,
  execute: async (context: HookContext) => {
    // Transform payload or add metadata
    return context;
  }
};

dispatcher.registerHook(myHook);

Hook phases: pre-shield β†’ post-shield β†’ pre-execute β†’ post-execute

Usage

echo '{"action":"sh.exec","params":{"command":"ls","args":["-la"]}}' | npm start

Output:

{
  "status": "success",
  "data": { "stdout": "...", "stderr": "" },
  "logs": ["[EXEC] ls -la", "[EXIT] code=0"],
  "executionTime": 45
}

About

🌌 VibeOS: The secure, modular, and headless operating layer for autonomous AI agents. Built for the future of agentic workflows. πŸš€

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors