~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/atlibs-socialweb-computer-requester

socialweb.computer market requester and policy modules for atlibs, with its web pages and lexicons

0
0
62 lines · 1.5 KB Raw History
{
  "lexicon": 1,
  "id": "computer.socialweb.cicd.process.exec",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Run a command on the machine (/bin/sh -c, root) and wait.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "url",
            "command"
          ],
          "properties": {
            "url": {
              "type": "string",
              "description": "Where the machine is reached: iroh:///<ref>/shell/... or webrtc:///<ref>/shell/..."
            },
            "command": {
              "type": "string"
            },
            "stdin": {
              "type": "string"
            },
            "cwd": {
              "type": "string"
            },
            "timeoutMs": {
              "type": "integer",
              "description": "Default 60000, at most 600000."
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "exitCode": {
              "type": "integer"
            },
            "stdout": {
              "type": "string"
            },
            "stderr": {
              "type": "string"
            },
            "truncated": {
              "type": "boolean"
            },
            "timedOut": {
              "type": "boolean"
            }
          }
        }
      }
    }
  }
}