From 002cf81b1ed6cd903d1ced38c4f9b349b0f05c17 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 18 Apr 2026 04:02:02 +0200 Subject: [PATCH] chore: version packages Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 8 ++++++++ CLAUDE.md | 2 +- package.json | 2 +- src/web/public/session-ui.js | 20 +++++++++++++++++--- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0959755d..cd1a9391 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # aicodeman +## 0.5.13 + +### Patch Changes + +- Fix "Case path not found" error in Quick Start when `~/codeman-cases/` does not exist (issue #64). Two bugs in `session-ui.js`: + - `runClaude()` auto-create read `createCaseData.case`, but `POST /api/cases` returns `{ success, data: { case } }` — corrected to `createCaseData.data.case`. + - `runShell()` had no auto-create logic and would immediately throw on a missing case directory — now mirrors `runClaude()`'s create-on-demand flow. + ## 0.5.12 ### Patch Changes diff --git a/CLAUDE.md b/CLAUDE.md index e3b53e2a..7f873c99 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -52,7 +52,7 @@ When user says "COM": 4. **Sync CLAUDE.md version**: Update the `**Version**` line below to match the new version from `package.json` 5. **Commit and deploy**: `git add -A && git commit -m "chore: version packages" && git push && npm run build && systemctl --user restart codeman-web` -**Version**: 0.5.12 (must match `package.json`) +**Version**: 0.5.13 (must match `package.json`) ## Project Overview diff --git a/package.json b/package.json index a0345d3d..33cfd409 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aicodeman", - "version": "0.5.12", + "version": "0.5.13", "description": "The missing control plane for AI coding agents - run 20 autonomous agents with real-time monitoring and session persistence", "type": "module", "main": "dist/index.js", diff --git a/src/web/public/session-ui.js b/src/web/public/session-ui.js index 87d1f7e0..86fccf80 100644 --- a/src/web/public/session-ui.js +++ b/src/web/public/session-ui.js @@ -287,8 +287,8 @@ Object.assign(CodemanApp.prototype, { }); const createCaseData = await createCaseRes.json(); if (!createCaseData.success) throw new Error(createCaseData.error || 'Failed to create case'); - // Use the newly created case data (API returns { success, case: { name, path } }) - caseData = createCaseData.case; + // API returns { success, data: { case: { name, path } } } + caseData = createCaseData.data.case; } const workingDir = caseData.path; @@ -425,7 +425,21 @@ Object.assign(CodemanApp.prototype, { try { // Get the case path const caseRes = await fetch(`/api/cases/${caseName}`); - const caseData = await caseRes.json(); + let caseData = await caseRes.json(); + + // Create the case if it doesn't exist + if (!caseData.path) { + const createCaseRes = await fetch('/api/cases', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ name: caseName, description: '' }) + }); + const createCaseData = await createCaseRes.json(); + if (!createCaseData.success) throw new Error(createCaseData.error || 'Failed to create case'); + // API returns { success, data: { case: { name, path } } } + caseData = createCaseData.data.case; + } + const workingDir = caseData.path; if (!workingDir) throw new Error('Case path not found');