id: openclaw_ping
namespace: studio.agent_poc

description: |
  POC draft: call OpenClaw/OpenCloud execution layer and expect OPENCLAW_OK.
  The exact command/API must be validated against the currently installed OpenClaw CLI/gateway.

tasks:
  - id: openclaw_status_probe
    type: io.kestra.plugin.scripts.shell.Commands
    commands:
      - |
        set -euo pipefail
        HOME=/Users/bot1 openclaw --help >/dev/null
        echo OPENCLAW_CLI_AVAILABLE

  - id: openclaw_worker_ping
    type: io.kestra.plugin.scripts.shell.Commands
    commands:
      - |
        set -euo pipefail
        echo 'TODO: replace with approved loopback OpenClaw worker call returning OPENCLAW_OK'
