Files
passepartout/skills/org-skill-cli-gateway.org

895 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

Package Context

(in-package :opencortex)

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))