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 +1 -1
- package/package.json +1 -1
- package/server/agent/agentCore.js +5 -8
- package/server/agent/appPaths.js +2 -0
- package/server/agent/cli.js +457 -248
- package/server/agent/commandRegistry.js +367 -40
- package/server/agent/commands.js +145 -41
- package/server/agent/config.js +367 -216
- package/server/agent/doctor.js +1 -1
- package/server/agent/errors.js +205 -0
- package/server/agent/llmClient.js +369 -351
- package/server/agent/queryDetails.js +234 -182
- package/server/agent/session.js +410 -258
- package/server/agent/terminalImage.js +108 -2
- package/server/agent/ui.js +17 -11
- package/src/assets/images/0040jbadgy1igaiagw3ezj61s02ebu0x02.jpg +0 -0
- package/src/assets/images/0040jbadgy1igaiaivng3j61rv2ebx6p02.jpg +0 -0
- package/src/assets/images/0040jbadgy1igaiajuixvj62bw340qv502.jpg +0 -0
- package/src/assets/images/0040jbadgy1igdxrcipx4j61k422wtpp02.jpg +0 -0
- package/src/assets/images/0040jbadgy1igdxrg3cq5j62bw340u0x02.jpg +0 -0
- package/src/assets/images/0040jbadgy1igdy9hpg8aj62c0340hdt02.jpg +0 -0
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.
|
|
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
|
@@ -181,13 +181,7 @@ export class KikuAgent {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
clearMemory() {
|
|
184
|
-
|
|
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();
|
package/server/agent/appPaths.js
CHANGED
|
@@ -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');
|