- Updated all 23 skill org files to use absolute path - Tangle now outputs directly to ~/.local/share/opencortex/skills/ - Removed env var (org-babel doesn't expand it)
865 B
865 B
SKILL: CLI Gateway (org-skill-cli-gateway.org)
Overview
The CLI Gateway provides a command-line interface for interacting with the OpenCortex daemon.
Implementation
CLI Command Handling
(defun cli-process-input (text)
"Processes raw text from the command line."
(inject-stimulus (list :type :EVENT
:payload (list :sensor :user-input :text text)
:meta (list :source :CLI))))
Skill Registration
(defskill :skill-cli-gateway
:priority 100
:trigger (lambda (ctx) (eq (getf (getf ctx :meta) :source) :CLI))
:deterministic (lambda (action ctx) (declare (ignore ctx)) action))