ikie-cli 0.1.20 → 0.1.21

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/dist/config.d.ts CHANGED
@@ -34,8 +34,9 @@ export declare function loadConfig(): IkieConfig;
34
34
  export declare function saveConfig(patch: Partial<IkieConfig>): void;
35
35
  export declare function getApiKey(cfg: IkieConfig): string | undefined;
36
36
  /**
37
- * True if the user has explicitly set a model in their config file
38
- * (as opposed to falling back to the hardcoded DEFAULT_MODEL).
37
+ * True if the user has explicitly chosen a model (via /model or --model),
38
+ * as opposed to the default that gets saved during first login.
39
+ * Only counts if the model differs from DEFAULT_MODEL.
39
40
  */
40
41
  export declare function hasExplicitModel(): boolean;
41
42
  /** True when signed into a hosted ikie account. */
package/dist/config.js CHANGED
@@ -50,14 +50,15 @@ export function getApiKey(cfg) {
50
50
  return cfg.account?.apiKey;
51
51
  }
52
52
  /**
53
- * True if the user has explicitly set a model in their config file
54
- * (as opposed to falling back to the hardcoded DEFAULT_MODEL).
53
+ * True if the user has explicitly chosen a model (via /model or --model),
54
+ * as opposed to the default that gets saved during first login.
55
+ * Only counts if the model differs from DEFAULT_MODEL.
55
56
  */
56
57
  export function hasExplicitModel() {
57
58
  try {
58
59
  if (existsSync(CONFIG_FILE)) {
59
60
  const raw = JSON.parse(readFileSync(CONFIG_FILE, 'utf-8'));
60
- return typeof raw.model === 'string';
61
+ return typeof raw.model === 'string' && raw.model !== DEFAULT_MODEL;
61
62
  }
62
63
  }
63
64
  catch { }
package/dist/theme.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "0.1.20";
1
+ export declare const VERSION = "0.1.21";
2
2
  export interface Theme {
3
3
  name: string;
4
4
  description: string;
package/dist/theme.js CHANGED
@@ -3,7 +3,7 @@ import os from 'os';
3
3
  import { join as pathJoin, basename } from 'path';
4
4
  import { existsSync, readFileSync } from 'fs';
5
5
  import { loadConfig, saveConfig } from './config.js';
6
- export const VERSION = '0.1.20';
6
+ export const VERSION = '0.1.21';
7
7
  const IKIE_BANNER = [
8
8
  ' ██╗██╗ ██╗██╗███████╗',
9
9
  ' ██║██║ ██╔╝██║██╔════╝',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikie-cli",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Agentic coding CLI — your terminal AI pair programmer",
5
5
  "type": "module",
6
6
  "bin": {