rpi-cli 0.32.0

Terminal coding-agent CLI (the `rpi` binary) built on the rpi-* library crates
Documentation
{
  "hello": {
    "protocol": "rpi-shared-host",
    "version": { "major": 1, "minor": 0 },
    "host_id": "11111111-1111-4111-8111-111111111111",
    "token": "fixture-only-auth-token-0123456789"
  },
  "welcome": {
    "protocol": "rpi-shared-host",
    "version": { "major": 1, "minor": 6 },
    "host_id": "11111111-1111-4111-8111-111111111111",
    "epoch": "22222222-2222-4222-8222-222222222222",
    "capabilities": ["mini", "status", "list", "inspect", "receipts", "results", "profiles", "administrative_receipts", "administrative_create", "administrative_restore", "administrative_close", "administrative_cancel", "administrative_stop", "cancel", "close"],
    "limits": { "max_frame_bytes": 1048576, "max_in_flight": 64, "max_page_size": 128 }
  },
  "requests": [
    {
      "call_id": "33333333-3333-4333-8333-333333333333",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": { "op": "status" }
    },
    {
      "call_id": "60606060-6060-4060-8060-606060606060",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "result",
        "agent_id": "66666666-6666-4666-8666-666666666666",
        "request_id": "99999999-9999-4999-8999-999999999999",
        "run_id": null,
        "offset": 0,
        "max_bytes": 4096
      }
    },
    {
      "call_id": "88888888-8888-4888-8888-888888888888",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "receipt",
        "agent_id": "66666666-6666-4666-8666-666666666666",
        "request_id": "99999999-9999-4999-8999-999999999999"
      }
    },
    {
      "call_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "submit",
        "agent_id": "66666666-6666-4666-8666-666666666666",
        "request_id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
        "prompt": "fixture prompt"
      }
    },
    {
      "call_id": "44444444-4444-4444-8444-444444444444",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "cancel",
        "mutation": {
          "request_id": "55555555-5555-4555-8555-555555555555",
          "agent_id": "66666666-6666-4666-8666-666666666666",
          "revision": 7
        },
        "ticket_id": "77777777-7777-4777-8777-777777777777"
      }
    },
    {
      "call_id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": { "op": "profiles", "after": null, "limit": 2 }
    },
    {
      "call_id": "10101010-1010-4010-8010-101010101010",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": { "op": "administrative_create", "request": {
        "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
        "request_id": "10101010-1010-4010-8010-101010101010",
        "epoch": "22222222-2222-4222-8222-222222222222",
        "action": { "op": "create_profile", "profile": { "agent_id": "66666666-6666-4666-8666-666666666666", "version": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa" } }
      } }
    },
    {
      "call_id": "20202020-2020-4020-8020-202020202020",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": { "op": "administrative_restore", "request": {
        "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
        "request_id": "20202020-2020-4020-8020-202020202020",
        "epoch": "22222222-2222-4222-8222-222222222222",
        "action": { "op": "restore_profile", "profile": { "agent_id": "66666666-6666-4666-8666-666666666666", "version": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa" }, "revision": 7 }
      } }
    },
    {
      "call_id": "30303030-3030-4030-8030-303030303030",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": { "op": "administrative_close", "request": {
        "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
        "request_id": "30303030-3030-4030-8030-303030303030",
        "epoch": "22222222-2222-4222-8222-222222222222",
        "action": { "op": "close", "agent_id": "66666666-6666-4666-8666-666666666666", "revision": 7 }
      } }
    },
    {
      "call_id": "40404040-4040-4040-8040-404040404040",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": { "op": "administrative_cancel", "request": {
        "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
        "request_id": "40404040-4040-4040-8040-404040404040",
        "epoch": "22222222-2222-4222-8222-222222222222",
        "action": { "op": "cancel_submitted", "agent_id": "66666666-6666-4666-8666-666666666666", "revision": 7, "submitted_request_id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb" }
      } }
    },
    {
      "call_id": "50505050-5050-4050-8050-505050505050",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": { "op": "administrative_stop", "request": {
        "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
        "request_id": "50505050-5050-4050-8050-505050505050",
        "epoch": "22222222-2222-4222-8222-222222222222",
        "action": { "op": "stop" }
      } }
    },
    {
      "call_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "administrative_receipt",
        "request": {
          "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
          "request_id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
          "epoch": "ffffffff-ffff-4fff-8fff-ffffffffffff",
          "action": {
            "op": "restore_profile",
            "profile": {
              "agent_id": "66666666-6666-4666-8666-666666666666",
              "version": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"
            },
            "revision": 7
          }
        }
      }
    },
    {
      "call_id": "81818181-8181-4181-8181-000000000001",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "mini_execute",
        "request": {
          "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
          "epoch": "22222222-2222-4222-8222-222222222222",
          "request_id": "71717171-7171-4171-8171-717171717171",
          "action": {
            "op": "submit",
            "agent_id": "66666666-6666-4666-8666-666666666666",
            "prompt": "literal {{mini}}"
          }
        }
      }
    },
    {
      "call_id": "81818181-8181-4181-8181-000000000002",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "mini_receipt",
        "request": {
          "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
          "epoch": "22222222-2222-4222-8222-222222222222",
          "request_id": "71717171-7171-4171-8171-717171717171",
          "action": {
            "op": "submit",
            "agent_id": "66666666-6666-4666-8666-666666666666",
            "prompt": "literal {{mini}}"
          }
        }
      }
    },
    {
      "call_id": "81818181-8181-4181-8181-000000000003",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "mini_execute",
        "request": {
          "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
          "epoch": "22222222-2222-4222-8222-222222222222",
          "request_id": "72727272-7272-4272-8272-727272727272",
          "action": {
            "op": "cancel",
            "agent_id": "66666666-6666-4666-8666-666666666666",
            "submitted_request_id": "71717171-7171-4171-8171-717171717171",
            "run_id": "73737373-7373-4373-8373-737373737373"
          }
        }
      }
    },
    {
      "call_id": "81818181-8181-4181-8181-000000000004",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "mini_execute",
        "request": {
          "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
          "epoch": "22222222-2222-4222-8222-222222222222",
          "request_id": "74747474-7474-4474-8474-747474747474",
          "action": {
            "op": "close",
            "agent_id": "66666666-6666-4666-8666-666666666666"
          }
        }
      }
    },
    {
      "call_id": "81818181-8181-4181-8181-000000000005",
      "epoch": "22222222-2222-4222-8222-222222222222",
      "command": {
        "op": "mini_result",
        "scope": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
        "epoch": "22222222-2222-4222-8222-222222222222",
        "agent_id": "66666666-6666-4666-8666-666666666666",
        "request_id": "71717171-7171-4171-8171-717171717171",
        "run_id": null,
        "offset": 0,
        "max_bytes": 4096
      }
    }
  ],
  "response": {
    "call_id": "33333333-3333-4333-8333-333333333333",
    "epoch": "22222222-2222-4222-8222-222222222222",
    "reply": { "kind": "data", "data": { "registered": 0, "resident": 0, "executing": 0 } }
  }
}