kiku-agent 1.0.10 → 1.0.11

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/README.md CHANGED
@@ -87,7 +87,7 @@ Automatic installation is available for global npm installs. Source checkouts, l
87
87
 
88
88
  After an update or rollback, restart `kiku-agent` and any application hosting `kiku-mcp`. Update settings and rollback history are stored in the normal Kiku user data directory as `update-state.json`; sessions, memory, `.env`, and YouTube cookies are not modified.
89
89
 
90
- For a local checkout before the package is published, use `npm pack` followed by `npm install -g ./kiku-agent-1.0.10.tgz`.
90
+ For a local checkout before the package is published, use `npm pack` followed by `npm install -g ./kiku-agent-1.0.11.tgz`.
91
91
 
92
92
  ### ✨ Features
93
93
  - **LM Studio Integration**: Connects seamlessly to LM Studio's OpenAI-compatible server at `http://127.0.0.1:1234/v1` (default model `google/gemma-4-e4b`, with auto-detection of loaded models).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiku-agent",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Kiku AI terminal agent and MCP server for Ju Jingyi knowledge, media, and career data.",
5
5
  "license": "GPL-3.0",
6
6
  "type": "module",
@@ -181,13 +181,7 @@ export class KikuAgent {
181
181
  }
182
182
 
183
183
  clearMemory() {
184
- if (this.session.messages.length > 0) {
185
- this.memory.archiveSession(this.session.toSnapshot()).catch(() => { });
186
- this.memory.consolidateSession(this.session.toSnapshot()).catch(() => { });
187
- }
188
- this.initHistory();
189
- this.session.reset();
190
- this.session.clearDisk().catch(() => { });
184
+ return this.endSession();
191
185
  }
192
186
 
193
187
  async loadSession() {
@@ -560,7 +554,10 @@ ${toolsSummary}
560
554
 
561
555
  this.applySlidingWindow();
562
556
 
563
- const currentAssistantSessionMsg = this.session.createAssistantMessage();
557
+ const currentAssistantSessionMsg = this.session.createAssistantMessage({
558
+ model: this.client?.model || null,
559
+ provider: this.client?.providerName || this.client?.provider || null,
560
+ });
564
561
 
565
562
  let currentIteration = 0;
566
563
  const toolResultCache = new Map();
@@ -19,3 +19,5 @@ export function getKikuDataDir(env = process.env, platform = process.platform) {
19
19
  export const KIKU_DATA_DIR = getKikuDataDir();
20
20
  export const SESSION_DIR = path.join(KIKU_DATA_DIR, 'sessions');
21
21
  export const EXPORT_DIR = path.join(KIKU_DATA_DIR, 'exports');
22
+ export const PROVIDER_KEYS_FILE = path.join(KIKU_DATA_DIR, 'provider_keys.json');
23
+ export const SETTINGS_FILE = path.join(KIKU_DATA_DIR, 'settings.json');