@gobi-ai/cli 0.3.0 → 0.3.1

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.
@@ -35,13 +35,21 @@ export function getVaultSlug() {
35
35
  }
36
36
  export function printContext() {
37
37
  const settings = readSettings();
38
- const slug = settings?.selectedSpaceSlug;
39
- if (!slug) {
40
- console.log("Not initialized. Run 'gobi init' to set up.");
38
+ const vault = settings?.vaultSlug;
39
+ const space = settings?.selectedSpaceSlug;
40
+ if (!vault && !space) {
41
+ console.log("Run 'gobi init' to set up, then 'gobi astra warp' to select a space.");
42
+ return;
43
+ }
44
+ if (!vault) {
45
+ console.log("Vault not set. Run 'gobi init' to set up.");
46
+ return;
47
+ }
48
+ if (!space) {
49
+ console.log(`Vault: ${vault} | Space not set. Run 'gobi astra warp' to select a space.`);
41
50
  return;
42
51
  }
43
- const vaultId = settings?.vaultSlug || "?";
44
- console.log(`Space: ${slug} | Vault: ${vaultId}`);
52
+ console.log(`Space: ${space} | Vault: ${vault}`);
45
53
  }
46
54
  function ensureSettingsDir() {
47
55
  const dir = join(process.cwd(), SETTINGS_DIR);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",