#!/usr/bin/env node
import{a as r}from"./chunk-FKNRDXJH.js";import{a as o}from"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";var s={name:"about",summary:"show ag-bash features, architecture, and quick-start guide",usage:"about [OPTIONS]",options:["--version        print version only","--features       list all features with status","--architecture   show architecture diagram"]},i=["113+ Commands (Core I/O, Text, Data, Search, Agentic, Network)","Multi-Runtime (Bash + Python3 WASM + JavaScript QuickJS)","Agent RunLoop (autonomous LLM execution with budget control)","Tagged Template API (createShell with injection-safe escaping)","Self-Healing (typo correction with exponential backoff retry)","MCP Server (40+ tools exposed via Model Context Protocol)","OpenTelemetry (optional zero-overhead distributed tracing)","Trap Handlers (EXIT/ERR/DEBUG/RETURN fire correctly)","Streaming Execution (AsyncGenerator output chunks)","Copy-on-Write Filesystem (multi-agent isolation)","Observation Summarizer (structured turn context for LLMs)","Multi-Framework AI Adapters (Vercel/OpenAI/Anthropic/LangChain)","Defense-in-Depth Security (sandboxed, no real OS access)","Tiered Exports (slim, advanced, browser-core, testing, ai, agent-runtime)"],u=`  Input Script
    |
    v
  Parser (Tree-sitter + Recursive Descent)
    |
    v
  AST (Abstract Syntax Tree with ASTCache)
    |
    v
  Interpreter (Expansion -> Resolution -> Execution)
    |
    v
  ExecResult { stdout, stderr, exitCode }

  Filesystem: Pluggable VFS (InMemory | Overlay | ReadWrite | CowFs)
  Security:   Defense-in-Depth + AsyncLocalStorage scoping
  Runtimes:   Bash + CPython (WASM) + QuickJS (WASM)`,p={name:"about",execute:async(n,c)=>{if(n.includes("--help")||n.includes("-h"))return o(s);if(n.includes("--version")||n.includes("-v"))return{stdout:`${r}
`,stderr:"",exitCode:0};if(n.includes("--features")){let t=`ag-bash v${r} \u2014 Features:

`;for(let a of i)t+=`  * ${a}
`;return{stdout:t,stderr:"",exitCode:0}}if(n.includes("--architecture")){let t=`ag-bash v${r} \u2014 Architecture:

`;return t+=`${u}
`,{stdout:t,stderr:"",exitCode:0}}let e="";e+=`ag-bash v${r} \u2014 AI-Native Sandboxed Bash Runtime
`,e+=`${"=".repeat(52)}

`,e+=`ARCHITECTURE
`,e+=`  Input -> Parser (Tree-sitter) -> AST -> Interpreter -> ExecResult
`,e+=`  Filesystem: Pluggable VFS (InMemory | Overlay | ReadWrite)
`,e+=`  Security: Defense-in-Depth + Sandboxed Execution

`,e+=`FEATURES
`;for(let t of i)e+=`  * ${t}
`;return e+=`
`,e+=`QUICK START
`,e+=`  Run: commands              - Browse all available commands
`,e+=`  Run: doctor                - Verify your environment
`,e+=`  Run: help <builtin>        - Shell builtin help
`,e+=`  Run: <command> --help      - Command-specific help

`,e+=`LINKS
`,e+=`  GitHub: https://github.com/sairam0424/ag-bash
`,e+=`  Docs:   See docs/user-guide.md
`,{stdout:e,stderr:"",exitCode:0}}};export{p as aboutCommand};
