@gobi-ai/cli 0.3.6 → 0.3.7

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.
@@ -30,9 +30,18 @@ export function registerSpaceCommand(program) {
30
30
  });
31
31
  // ── Warp (space selection) ──
32
32
  space
33
- .command("warp")
34
- .description("Select the active space.")
35
- .action(async () => {
33
+ .command("warp [spaceSlug]")
34
+ .description("Select the active space. Pass a slug to warp directly, or omit for interactive selection.")
35
+ .action(async (spaceSlug) => {
36
+ if (spaceSlug) {
37
+ writeSpaceSetting(spaceSlug);
38
+ if (isJsonMode(space)) {
39
+ jsonOut({ spaceSlug });
40
+ return;
41
+ }
42
+ console.log(`Warped to space "${spaceSlug}"`);
43
+ return;
44
+ }
36
45
  const result = await selectSpace();
37
46
  if (result === null) {
38
47
  console.log("No space selected.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",