.lmd — Command Dispatch | LMX

LMX // .LMD

.lmdCommand Dispatch

Discovers namespaced commands and spawns them (experimental).

  • Operator only
  • a .lmd file
  • free to run
WHAT IT IS

Why .lmd exists.

Scans the working tree for command manifests and dispatches namespace.command calls by spawning child processes. Experimental; admin-only, requires LMX_ENABLE_SHELL=1.

Operator only

This one touches the host machine, so it needs an operator: an admin role AND an explicit environment flag, both off by default. That is a security control, not a paywall.

Enabled with LMX_ENABLE_SHELL=1 on the API, by an operator, on purpose.


A WORKED EXAMPLE

demo.lmd

The same script the engine test suite runs, so it cannot quietly stop working.

#
# This script demonstrates the LMD interpreter.
# It uses commands from the 'leumas-fs' and 'leumas-git' SDKs.
#

# Use the fs SDK to create and then delete a file
fs.create "my-temp-file.txt" "Hello from LMD!"
fs.delete "my-temp-file.txt"

# Use the git SDK
git.clone "https://github.com/user/repo.git"
git.status

SYNTAX

The shape of it.

Straight from the interpreter catalogue — the same summary the editor shows as a placeholder.

fs.list .
git.status

NEXT

Where to take it.