kitstore-cli 1.0.90 → 1.0.91

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.
@@ -7,18 +7,17 @@ async function createApi(options) {
7
7
  // If server is explicitly provided in options, use it (highest priority)
8
8
  // Otherwise, get config and use its server (which should have default-config loaded)
9
9
  // Only fall back to localhost if all else fails
10
+ const cfg = await (0, config_1.getConfig)();
10
11
  let basePath;
11
12
  if (options?.server) {
12
13
  // Explicit server option takes highest priority
13
14
  basePath = options.server;
14
15
  }
15
16
  else {
16
- // Get config to resolve server (will use default-config if available)
17
- const cfg = await (0, config_1.getConfig)();
17
+ // Use server from config (will use default-config if available)
18
18
  basePath = cfg.server || 'http://localhost:3000';
19
19
  }
20
20
  // Get token from options or config
21
- const cfg = await (0, config_1.getConfig)();
22
21
  const token = options?.token || cfg.token;
23
22
  const configuration = new generated_1.Configuration({
24
23
  basePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitstore-cli",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "CLI tool for Cursor Kit",
5
5
  "main": "dist/index.js",
6
6
  "bin": {