Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

1.7 KB
Raw Blame
{
  "$id": "hiroute://contracts/cli/worker-status-request.v1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "anyOf": [
          {
            "required": [
              "submission_key"
            ]
          },
          {
            "required": [
              "submission_operation"
            ]
          }
        ]
      },
      "required": [
        "task_id"
      ]
    },
    {
      "not": {
        "anyOf": [
          {
            "required": [
              "task_id"
            ]
          },
          {
            "required": [
              "submission_key"
            ]
          },
          {
            "required": [
              "submission_operation"
            ]
          }
        ]
      },
      "required": [
        "run_id"
      ]
    },
    {
      "not": {
        "anyOf": [
          {
            "required": [
              "task_id"
            ]
          },
          {
            "required": [
              "run_id"
            ]
          }
        ]
      },
      "required": [
        "submission_key",
        "submission_operation"
      ]
    }
  ],
  "properties": {
    "run_id": {
      "maxLength": 256,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9_./:-]+$",
      "type": "string"
    },
    "submission_key": {
      "maxLength": 256,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9_./:-]+$",
      "type": "string"
    },
    "submission_operation": {
      "enum": [
        "start",
        "continue"
      ]
    },
    "task_id": {
      "maxLength": 256,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9_./:-]+$",
      "type": "string"
    }
  },
  "type": "object"
}