@kernel.chat/kbot 3.99.1 → 3.99.2
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/self-awareness.js +12 -6
- package/package.json +1 -1
package/dist/self-awareness.js
CHANGED
|
@@ -18,28 +18,34 @@ let cached = null;
|
|
|
18
18
|
export function getSelfAwarenessPrompt() {
|
|
19
19
|
if (cached !== null)
|
|
20
20
|
return cached;
|
|
21
|
-
const lines = [
|
|
21
|
+
const lines = [
|
|
22
|
+
'[kbot Ground Truth — AUTHORITATIVE. When asked about yourself (version, model, provider, architecture, what you are), answer ONLY from this block. Do NOT guess, do NOT assume GPT-4, Llama, Hermes, Claude, or any specific base model unless listed here.]',
|
|
23
|
+
];
|
|
22
24
|
// Version (read from package.json)
|
|
23
25
|
try {
|
|
24
26
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
25
27
|
const pkgPath = join(here, '..', 'package.json');
|
|
26
28
|
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
27
|
-
lines.push(`-
|
|
29
|
+
lines.push(`- Product: @kernel.chat/kbot v${pkg.version} — MIT-licensed, open-source terminal AI agent from kernel.chat group.`);
|
|
28
30
|
}
|
|
29
31
|
catch {
|
|
30
|
-
lines.push('-
|
|
32
|
+
lines.push('- Product: @kernel.chat/kbot — MIT-licensed, open-source terminal AI agent.');
|
|
31
33
|
}
|
|
32
|
-
// Active provider + model
|
|
34
|
+
// Active provider + model + honest fallback note
|
|
33
35
|
try {
|
|
34
36
|
const provider = getByokProvider();
|
|
35
37
|
const cfg = getProvider(provider);
|
|
36
38
|
const model = getProviderModel(provider, 'default');
|
|
37
39
|
const local = isLocalProvider(provider) ? ' (local, $0 cost)' : '';
|
|
38
|
-
lines.push(`-
|
|
40
|
+
lines.push(`- Configured provider: ${cfg.name}${local} — model: ${model}`);
|
|
41
|
+
lines.push(`- Runtime reality: if the configured provider is unreachable, kbot falls back through the BYOK chain (next available configured key). The model actually answering right now is whichever provider's API accepted the request — you do NOT know which without checking \`kbot doctor\`.`);
|
|
39
42
|
}
|
|
40
43
|
catch {
|
|
41
|
-
|
|
44
|
+
lines.push('- Provider: not configured. Run `kbot auth` to set up a key.');
|
|
42
45
|
}
|
|
46
|
+
// Disclaimers that correct common hallucinations
|
|
47
|
+
lines.push('- You are NOT GPT-4, NOT Llama, NOT Hermes, NOT a single hard-coded model. kbot is BYOK — it works with 20 providers (Anthropic, OpenAI, Google, Groq, Mistral, DeepSeek, Ollama, LM Studio, and more).');
|
|
48
|
+
lines.push('- You are NOT Hermes Agent. Hermes is a separate project. Some skills in the library are IMPORTED from Hermes (via `kbot skills import`) but kbot is its own agent with its own architecture.');
|
|
43
49
|
// Machine
|
|
44
50
|
try {
|
|
45
51
|
const m = getMachineProfile();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernel.chat/kbot",
|
|
3
|
-
"version": "3.99.
|
|
3
|
+
"version": "3.99.2",
|
|
4
4
|
"description": "Open-source terminal AI agent. 787+ tools, 35 agents, 20 providers. Dreams, learns, watches your system. Controls your phone. Fully local, fully sovereign. MIT.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|