@volter/supercode-orchestrator 0.4.115 → 0.4.116
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/board/workspace.mjs +1 -0
- package/package.json +1 -1
package/board/workspace.mjs
CHANGED
|
@@ -24,6 +24,7 @@ export function declareWorkspace(kind, value, machine, branch = null) {
|
|
|
24
24
|
// A legacy path supplied explicitly is checked and registered on its machine, never copied into the card.
|
|
25
25
|
const info = workspaceDoor(machine, 'inspect', value);
|
|
26
26
|
if (kind === 'worktree' && info.linked) throw new Error('worktree workspace already names a linked worktree; name its repository for a solo worktree');
|
|
27
|
+
if (kind === 'dir' && !info.branch && !branch) throw new Error('a detached checkout has no portable branch identity; name the repository and a solo worktree branch');
|
|
27
28
|
const row = workspaceDoor(machine, 'register', value);
|
|
28
29
|
return { repository: row.repository, branch: branch ?? (kind === 'dir' ? row.branch : null), path: kind === 'dir' ? row.path : null };
|
|
29
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-orchestrator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.116",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The orchestrator runtime over the Volter Harness ontology: one typed operational model whose folder is its serialization, read and written through the harness orchestration doors (docs/ORCHESTRATOR-IR.md)",
|
|
6
6
|
"exports": {
|