@loicngr/kobo 1.11.17 → 1.11.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/server/routes/workspaces.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to Kōbō are documented here. The format is based on
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/). Each release is an `## <version>`
|
|
5
5
|
section — the in-app "What's new" dialog reads this file.
|
|
6
6
|
|
|
7
|
+
## 1.11.18
|
|
8
|
+
|
|
9
|
+
- fix(workspaces): reject an option-shaped branch name at creation
|
|
10
|
+
|
|
7
11
|
## 1.11.17
|
|
8
12
|
|
|
9
13
|
- feat(client): render in the design system's own type, palette and tokens (#34)
|
|
@@ -308,6 +308,14 @@ app.post('/', migrationGuard, async (c) => {
|
|
|
308
308
|
if (!body.worktreePath && !body.workingBranch) {
|
|
309
309
|
return c.json({ error: 'Missing required field: workingBranch' }, 400);
|
|
310
310
|
}
|
|
311
|
+
// Only when the caller actually supplies it: when worktreePath is given
|
|
312
|
+
// instead, workingBranch is derived from git itself further down, not
|
|
313
|
+
// user input. A name starting with `-` would otherwise read as a git
|
|
314
|
+
// option (`--upload-pack=…`) rather than a branch name — see
|
|
315
|
+
// isValidBranchName's own doc comment for why this specific shape matters.
|
|
316
|
+
if (body.workingBranch && !gitOps.isValidBranchName(body.workingBranch)) {
|
|
317
|
+
return c.json({ error: `Invalid working branch name: ${body.workingBranch}` }, 400);
|
|
318
|
+
}
|
|
311
319
|
creationId = typeof body.creationId === 'string' && body.creationId.length > 0 ? body.creationId : undefined;
|
|
312
320
|
currentStep = 'validate';
|
|
313
321
|
emitCreateProgress(creationId, currentStep);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loicngr/kobo",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.18",
|
|
4
4
|
"description": "Kōbō — multi-workspace agent manager for Claude Code. Orchestrates isolated git worktrees with dev servers, Notion integration, and MCP tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|