feat(exec): add low-friction shell execution endpoint #6

Merged
luna merged 2 commits from feat/exec-endpoint into main 2026-04-05 20:23:48 +02:00
Collaborator

Summary

Add to execute commands through PowerShell/Bash/CMD with structured output.

What changed

  • Added model and route
  • Added shell selection (, , )
  • Added timeout handling and truncated stdout/stderr safeguards
  • Added env configuration ()
  • Exposed exec capability flags in
  • Updated docs and

Validation

Notes

Backlog issues for non-exec enhancements:

  • #1 OCR endpoint
  • #2 Find/template detection
  • #3 Window management
  • #4 Advanced input primitives
  • #5 Session state
## Summary Add to execute commands through PowerShell/Bash/CMD with structured output. ## What changed - Added model and route - Added shell selection (, , ) - Added timeout handling and truncated stdout/stderr safeguards - Added env configuration () - Exposed exec capability flags in - Updated docs and ## Validation - - ## Notes Backlog issues for non-exec enhancements: - #1 OCR endpoint - #2 Find/template detection - #3 Window management - #4 Advanced input primitives - #5 Session state
luna added 1 commit 2026-04-05 20:18:18 +02:00
feat(exec): add shell command execution endpoint
All checks were successful
python-syntax / syntax-check (push) Successful in 8s
python-syntax / syntax-check (pull_request) Successful in 4s
930cdd2887
Author
Collaborator

Correction: this PR adds POST /exec with ExecRequest payload; supports shells powershell/bash/cmd; adds CLICKTHROUGH_EXEC_* env config; surfaces exec config in /health; docs and .env.example updated. Validation run: py_compile and compileall passed.

Correction: this PR adds POST /exec with ExecRequest payload; supports shells powershell/bash/cmd; adds CLICKTHROUGH_EXEC_* env config; surfaces exec config in /health; docs and .env.example updated. Validation run: py_compile and compileall passed.
luna added 1 commit 2026-04-05 20:22:19 +02:00
feat(exec): require configured secret and header auth for /exec
All checks were successful
python-syntax / syntax-check (push) Successful in 4s
python-syntax / syntax-check (pull_request) Successful in 5s
38c1127347
Author
Collaborator

Update pushed: /exec now hard-requires CLICKTHROUGH_EXEC_SECRET to be configured, and each /exec request must include x-clickthrough-exec-secret header matching that value. If missing: 403 (not configured). If wrong/missing header: 401.

Update pushed: /exec now hard-requires CLICKTHROUGH_EXEC_SECRET to be configured, and each /exec request must include x-clickthrough-exec-secret header matching that value. If missing: 403 (not configured). If wrong/missing header: 401.
luna merged commit 1efe999331 into main 2026-04-05 20:23:48 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: space/clickthrough#6