@co0ontty/wand 4.53.0 → 4.54.0

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.
@@ -33,7 +33,8 @@ export function findWorkspaceByCwd(storage, cwd) {
33
33
  const normalized = normalizeProjectCwd(cwd);
34
34
  if (!normalized)
35
35
  return null;
36
- return storage.listWorkspaces().find((workspace) => normalizeProjectCwd(workspace.cwd) === normalized) ?? null;
36
+ const matches = storage.listWorkspaces().filter((workspace) => normalizeProjectCwd(workspace.cwd) === normalized);
37
+ return matches.find((workspace) => workspace.kind !== "global") ?? matches[0] ?? null;
37
38
  }
38
39
  function defaultWorkspaceNameForCwd(storage, cwd) {
39
40
  const normalized = normalizeProjectCwd(cwd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@co0ontty/wand",
3
- "version": "4.53.0",
3
+ "version": "4.54.0",
4
4
  "description": "A web console for Claude Code, Codex, OpenCode, and other local CLI tools.",
5
5
  "type": "module",
6
6
  "bin": {