From 23aeb4db79f80c5460e2be5683a95134d7817c06 Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Sat, 4 Apr 2026 15:41:38 +0200 Subject: [PATCH] feat(cli): add optional model field to Workspace schema Add an optional model field to the Workspace schema to allow specifying which model is used for the workspace agent. Closes #25 Signed-off-by: Philippe Martin Co-Authored-By: Claude Code (Claude Sonnet 4.5) --- cli/README.md | 3 +++ cli/openapi.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/cli/README.md b/cli/README.md index ae1a9e4..425ed04 100644 --- a/cli/README.md +++ b/cli/README.md @@ -53,6 +53,7 @@ $ kortex-cli init --agent claude -v -o json "name": "workspace1", "project": "https://github.com/user/repo/", "agent": "claude", + "model": "model1", "paths": { "source": "/home/user/workspace1", "configuration": "/home/user/workspace1/.kortex" @@ -69,6 +70,7 @@ $ kortex-cli init --agent claude --project my-project -v -o json "name": "workspace1", "project": "my-project", "agent": "claude", + "model": "model1", "paths": { "source": "/home/user/workspace1", "configuration": "/home/user/workspace1/.kortex" @@ -87,6 +89,7 @@ $ kortex-cli workspace list -o json "name": "workspace1", "project": "https://github.com/user/repo/", "agent": "claude", + "model": "model1", "paths": { "source": "/home/user/workspace1", "configuration": "/home/user/workspace1/.kortex" diff --git a/cli/openapi.yaml b/cli/openapi.yaml index 7eee7e1..d02dfad 100644 --- a/cli/openapi.yaml +++ b/cli/openapi.yaml @@ -38,6 +38,7 @@ paths: name: workspace1 project: project1 agent: claude + model: model1 state: stopped paths: source: /home/user/workspace1 @@ -66,6 +67,7 @@ paths: name: workspace1 project: project1 agent: claude + model: model1 state: running paths: source: /home/user/workspace1 @@ -211,6 +213,8 @@ components: type: string agent: type: string + model: + type: string state: $ref: '#/components/schemas/WorkspaceState' paths: