Skip to content

Commit 002cf81

Browse files
Ark0Nclaude
andcommitted
chore: version packages
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7b8b175 commit 002cf81

4 files changed

Lines changed: 27 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# aicodeman
22

3+
## 0.5.13
4+
5+
### Patch Changes
6+
7+
- Fix "Case path not found" error in Quick Start when `~/codeman-cases/` does not exist (issue #64). Two bugs in `session-ui.js`:
8+
- `runClaude()` auto-create read `createCaseData.case`, but `POST /api/cases` returns `{ success, data: { case } }` — corrected to `createCaseData.data.case`.
9+
- `runShell()` had no auto-create logic and would immediately throw on a missing case directory — now mirrors `runClaude()`'s create-on-demand flow.
10+
311
## 0.5.12
412

513
### Patch Changes

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ When user says "COM":
5252
4. **Sync CLAUDE.md version**: Update the `**Version**` line below to match the new version from `package.json`
5353
5. **Commit and deploy**: `git add -A && git commit -m "chore: version packages" && git push && npm run build && systemctl --user restart codeman-web`
5454
55-
**Version**: 0.5.12 (must match `package.json`)
55+
**Version**: 0.5.13 (must match `package.json`)
5656
5757
## Project Overview
5858

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aicodeman",
3-
"version": "0.5.12",
3+
"version": "0.5.13",
44
"description": "The missing control plane for AI coding agents - run 20 autonomous agents with real-time monitoring and session persistence",
55
"type": "module",
66
"main": "dist/index.js",

src/web/public/session-ui.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ Object.assign(CodemanApp.prototype, {
287287
});
288288
const createCaseData = await createCaseRes.json();
289289
if (!createCaseData.success) throw new Error(createCaseData.error || 'Failed to create case');
290-
// Use the newly created case data (API returns { success, case: { name, path } })
291-
caseData = createCaseData.case;
290+
// API returns { success, data: { case: { name, path } } }
291+
caseData = createCaseData.data.case;
292292
}
293293

294294
const workingDir = caseData.path;
@@ -425,7 +425,21 @@ Object.assign(CodemanApp.prototype, {
425425
try {
426426
// Get the case path
427427
const caseRes = await fetch(`/api/cases/${caseName}`);
428-
const caseData = await caseRes.json();
428+
let caseData = await caseRes.json();
429+
430+
// Create the case if it doesn't exist
431+
if (!caseData.path) {
432+
const createCaseRes = await fetch('/api/cases', {
433+
method: 'POST',
434+
headers: { 'Content-Type': 'application/json' },
435+
body: JSON.stringify({ name: caseName, description: '' })
436+
});
437+
const createCaseData = await createCaseRes.json();
438+
if (!createCaseData.success) throw new Error(createCaseData.error || 'Failed to create case');
439+
// API returns { success, data: { case: { name, path } } }
440+
caseData = createCaseData.data.case;
441+
}
442+
429443
const workingDir = caseData.path;
430444
if (!workingDir) throw new Error('Case path not found');
431445

0 commit comments

Comments
 (0)