All contracts

Command capabilities / JSON Schema

Workspai Command Capabilities

Defines the versioned command capabilities v1 boundary used by Workspai and its consumers.

Schema version
rapidkit-command-capabilities-v1
Contract path
contracts/command-capabilities.v1.json
Publication
synced-supporting-contract
Defined fields
40
Artifact bindings
0

Why this contract exists

Architecture role

Publishes the supported CLI capability surface for documentation and external consumers.

Consumption boundary

  • Workspai CLI
  • Documentation portal
  • Extensions and adapters

Related commands

Commands are linked only when the runtime contract identifies a direct production relationship. Supporting contracts may be consumed without having a single producer command.

workspai createworkspai frameworksworkspai infoworkspai licenseworkspai listworkspai buildworkspai devworkspai formatworkspai helpworkspai initworkspai lintworkspai startworkspai testworkspai addworkspai checkpointworkspai diffworkspai mergeworkspai modulesworkspai optimizeworkspai reconcileworkspai rollbackworkspai snapshotworkspai uninstallworkspai upgradeworkspai adoptworkspai aiworkspai autopilotworkspai autopilot releaseworkspai bootstrapworkspai cacheworkspai configworkspai doctor projectworkspai importworkspai infraworkspai mirrorworkspai pipelineworkspai productworkspai setupworkspai shellworkspai workspaceworkspai ai generate-embeddingsworkspai ai infoworkspai ai recommendworkspai ai update-embeddingsworkspai config aiworkspai config remove-api-keyworkspai config set-api-keyworkspai config showworkspai docsworkspai infra downworkspai infra planworkspai infra statusworkspai infra upworkspai product manifestworkspai product manifest createworkspai product planworkspai project archiveworkspai project archivesworkspai project commandsworkspai project deleteworkspai project restoreworkspai snapshot createworkspai snapshot inspectworkspai snapshot listworkspai snapshot restoreworkspai commandsworkspai projectworkspai versionworkspai analyzeworkspai doctorworkspai doctor workspaceworkspai readinessworkspai workspace agent-syncworkspai workspace contextworkspai workspace contractworkspai workspace diffworkspai workspace explainworkspai workspace feedbackworkspai workspace graphworkspai workspace impactworkspai workspace mcpworkspai workspace modelworkspai workspace remediation-planworkspai workspace snapshotworkspai workspace traceworkspai workspace verifyworkspai workspace watchworkspai workspace whyworkspai workspace archiveworkspai workspace exportworkspai workspace foundationworkspai workspace hydrateworkspai workspace importworkspai workspace initworkspai workspace listworkspai workspace policyworkspai workspace registryworkspai workspace runworkspai workspace shareworkspai workspace sync

Produced artifacts

These durable files are emitted by registered commands and validated against this contract.

No canonical file artifact is registered for this contract. It may describe capabilities, embedded data, runtime exchange, or supporting state instead of a standalone report.

Field reference

Every declared schema property or published capability path is listed here. Required means the contract declares or publishes that field at the shown boundary.

Field pathTypeRequiredMeaningConstraints
clistringYesDefines the cli value at this contract boundary.const: "workspai"
commandMapobjectYesDefines the commandmap value at this contract boundary.
commandsobjectYesDefines the commands value at this contract boundary.additionalProperties: false
commands.coreBackedarrayYesDefines the corebacked value at this contract boundary.
commands.npmOwnedarrayYesDefines the npmowned value at this contract boundary.
commands.projectScopedarrayYesDefines the projectscoped value at this contract boundary.
contractCatalogobjectYesDefines the contractcatalog value at this contract boundary.additionalProperties: true
contractsobjectYesDefines the contracts value at this contract boundary.additionalProperties: true
cwdstringYesDefines the cwd value at this contract boundary.minLength: 1
runtimeInventoryobjectYesDefines the runtimeinventory value at this contract boundary.additionalProperties: false
runtimeInventory.commandsarrayYesDefines the commands value at this contract boundary.
runtimeInventory.commands[].aliasesarrayYesDefines the aliases value at this contract boundary.
runtimeInventory.commands[].argumentsarrayYesDefines the arguments value at this contract boundary.
runtimeInventory.commands[].arguments[].namestringYesDefines the name value at this contract boundary.minLength: 1
runtimeInventory.commands[].arguments[].requiredbooleanYesDefines the required value at this contract boundary.
runtimeInventory.commands[].arguments[].variadicbooleanYesDefines the variadic value at this contract boundary.
runtimeInventory.commands[].commandstringYesDefines the command value at this contract boundary.minLength: 1
runtimeInventory.commands[].descriptionstringYesDefines the description value at this contract boundary.
runtimeInventory.commands[].hiddenbooleanYesDefines the hidden value at this contract boundary.
runtimeInventory.commands[].optionsarrayYesDefines the options value at this contract boundary.
runtimeInventory.commands[].options[].attributeNamestring | nullYesDefines the attributename value at this contract boundary.
runtimeInventory.commands[].options[].flagsstringYesDefines the flags value at this contract boundary.minLength: 1
runtimeInventory.commands[].parentstring | nullYesDefines the parent value at this contract boundary.
runtimeInventory.commands[].patharrayYesDefines the path value at this contract boundary.minItems: 1
runtimeInventory.commands[].registrationKindenumYesDefines the registrationkind value at this contract boundary.enum: commander, manual-handler
runtimeInventory.integrityobjectYesDefines the integrity value at this contract boundary.additionalProperties: false
runtimeInventory.integrity.declaredButUnregisteredarrayYesDefines the declaredbutunregistered value at this contract boundary.
runtimeInventory.integrity.declaredScopedButUnregisteredarrayYesDefines the declaredscopedbutunregistered value at this contract boundary.
runtimeInventory.integrity.okbooleanYesDefines the ok value at this contract boundary.
runtimeInventory.integrity.registeredButUndeclaredarrayYesDefines the registeredbutundeclared value at this contract boundary.
runtimeInventory.integrity.registeredScopedButUndeclaredarrayYesDefines the registeredscopedbutundeclared value at this contract boundary.
runtimeInventory.schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspai-cli-runtime-command-inventory-v1"
runtimeInventory.topLevelCommandsarrayYesDefines the toplevelcommands value at this contract boundary.
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "rapidkit-command-capabilities-v1"
scopestringYesDefines the scope value at this contract boundary.const: "global"
versionstringYesDefines the version value at this contract boundary.minLength: 1
workspaceobjectYesDefines the workspace value at this contract boundary.additionalProperties: false
workspace.commandstringYesDefines the command value at this contract boundary.const: "workspace"
workspace.intelligenceSubcommandsarrayYesDefines the intelligencesubcommands value at this contract boundary.
workspace.subcommandsarrayYesDefines the subcommands value at this contract boundary.

Canonical machine-readable definition

The raw synchronized contract remains authoritative. The educational sections above are projections of this definition.

Show raw JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://workspai.dev/schemas/command-capabilities.v1.json",
  "title": "Workspai Command Capabilities",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "scope",
    "cli",
    "version",
    "cwd",
    "contracts",
    "contractCatalog",
    "commands",
    "workspace",
    "commandMap",
    "runtimeInventory"
  ],
  "properties": {
    "schemaVersion": {
      "const": "rapidkit-command-capabilities-v1"
    },
    "scope": {
      "const": "global"
    },
    "cli": {
      "const": "workspai"
    },
    "version": {
      "type": "string",
      "minLength": 1
    },
    "cwd": {
      "type": "string",
      "minLength": 1
    },
    "contracts": {
      "type": "object",
      "additionalProperties": true
    },
    "contractCatalog": {
      "type": "object",
      "additionalProperties": true
    },
    "commands": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "npmOwned",
        "coreBacked",
        "projectScoped"
      ],
      "properties": {
        "npmOwned": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "coreBacked": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "projectScoped": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "workspace": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "command",
        "subcommands",
        "intelligenceSubcommands"
      ],
      "properties": {
        "command": {
          "const": "workspace"
        },
        "subcommands": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "intelligenceSubcommands": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "commandMap": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "command",
          "owner",
          "status",
          "scope"
        ],
        "properties": {
          "command": {
            "type": "string",
            "minLength": 1
          },
          "owner": {
            "enum": [
              "npm-wrapper",
              "python-core",
              "runtime-adapter"
            ]
          },
          "status": {
            "enum": [
              "supported",
              "delegated",
              "runtime-dependent"
            ]
          },
          "scope": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "runtimeInventory": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "schemaVersion",
        "commands",
        "topLevelCommands",
        "integrity"
      ],
      "properties": {
        "schemaVersion": {
          "const": "workspai-cli-runtime-command-inventory-v1"
        },
        "commands": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "path",
              "command",
              "parent",
              "registrationKind",
              "aliases",
              "description",
              "hidden",
              "arguments",
              "options"
            ],
            "properties": {
              "path": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "command": {
                "type": "string",
                "minLength": 1
              },
              "parent": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "registrationKind": {
                "enum": [
                  "commander",
                  "manual-handler"
                ]
              },
              "aliases": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "description": {
                "type": "string"
              },
              "hidden": {
                "type": "boolean"
              },
              "arguments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "required",
                    "variadic"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "variadic": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "options": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "flags",
                    "attributeName"
                  ],
                  "properties": {
                    "flags": {
                      "type": "string",
                      "minLength": 1
                    },
                    "attributeName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "topLevelCommands": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "integrity": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "ok",
            "registeredButUndeclared",
            "declaredButUnregistered",
            "registeredScopedButUndeclared",
            "declaredScopedButUnregistered"
          ],
          "properties": {
            "ok": {
              "type": "boolean"
            },
            "registeredButUndeclared": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "declaredButUnregistered": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "registeredScopedButUndeclared": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "declaredScopedButUnregistered": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}