Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.57 KB

File metadata and controls

29 lines (20 loc) · 1.57 KB

LocalScript Documentation

Welcome to the LocalScript documentation. This directory contains detailed reference material for the LocalScript service that generates validated Lua code from natural-language descriptions.

Getting Started

  • Architecture — System components, the session state machine, the generation pipeline, the validation pipeline, and the optional RAG flow.

Reference

  • API Reference — Complete HTTP API specification for both llm-service (port 8080) and sandbox-service (port 6778), including request/response schemas and JSON examples.
  • Configuration — Every environment variable and Docker Compose option needed to tune the system.
  • Sandbox Security — The Lua security model in depth: static AST checks, forbidden calls, runtime limits, and the error taxonomy.

Guides

  • Development — How to run and build each service locally without Docker, plus how to verify your changes.
  • TUI Client — Using the Ratatui-based terminal client, its key bindings, and the code export feature.

Index

Document Read it for
architecture.md How the pieces fit together and the end-to-end flow
api-reference.md Exact request/response JSON contracts
configuration.md Environment variables and defaults
sandbox-security.md How untrusted Lua is kept safe
development.md Setting up a local development environment
tui.md Operating the terminal client