daedalus-cli 1.91.0 → 1.92.0
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/CHANGELOG.md +7 -0
- package/dist/bot/prompt.d.ts.map +1 -1
- package/dist/bot/prompt.js +57 -2
- package/dist/bot/prompt.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.92.0](https://github.com/bgill55/daedalus/compare/v1.91.0...v1.92.0) (2026-07-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **bot:** dynamically inject current package version and recent changelog updates into Discord bot prompt ([3c0dd03](https://github.com/bgill55/daedalus/commit/3c0dd038eae8bf70f00da4e85a5e50c9d641960c))
|
|
7
|
+
|
|
1
8
|
# [1.91.0](https://github.com/bgill55/daedalus/compare/v1.90.0...v1.91.0) (2026-07-30)
|
|
2
9
|
|
|
3
10
|
|
package/dist/bot/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/bot/prompt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/bot/prompt.ts"],"names":[],"mappings":"AAoDA,wBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAkD5D"}
|
package/dist/bot/prompt.js
CHANGED
|
@@ -1,9 +1,59 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { execSync } from 'child_process';
|
|
1
4
|
import { commandsList } from '../commands.js';
|
|
5
|
+
function getRecentChangelogInfo() {
|
|
6
|
+
let version = '1.90.0';
|
|
7
|
+
let recentNotes = '';
|
|
8
|
+
// Read current version from package.json
|
|
9
|
+
try {
|
|
10
|
+
const pkgPath = path.resolve(process.cwd(), 'package.json');
|
|
11
|
+
if (fs.existsSync(pkgPath)) {
|
|
12
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
13
|
+
if (pkg.version)
|
|
14
|
+
version = pkg.version;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
catch { /* ignore */ }
|
|
18
|
+
// Extract recent version sections from CHANGELOG.md
|
|
19
|
+
try {
|
|
20
|
+
const changelogPath = path.resolve(process.cwd(), 'CHANGELOG.md');
|
|
21
|
+
if (fs.existsSync(changelogPath)) {
|
|
22
|
+
const content = fs.readFileSync(changelogPath, 'utf8');
|
|
23
|
+
const lines = content.split('\n');
|
|
24
|
+
const filtered = [];
|
|
25
|
+
let headerCount = 0;
|
|
26
|
+
for (const line of lines) {
|
|
27
|
+
if (/^#+ \[?\d+\.\d+\.\d+/.test(line)) {
|
|
28
|
+
headerCount++;
|
|
29
|
+
if (headerCount > 4)
|
|
30
|
+
break; // Keep top 4 release sections
|
|
31
|
+
}
|
|
32
|
+
if (headerCount > 0) {
|
|
33
|
+
filtered.push(line);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
recentNotes = filtered.join('\n').trim();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch { /* ignore */ }
|
|
40
|
+
// Fallback to recent git commits if CHANGELOG.md not available
|
|
41
|
+
if (!recentNotes) {
|
|
42
|
+
try {
|
|
43
|
+
recentNotes = execSync('git log -n 10 --oneline', { encoding: 'utf8' }).trim();
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
recentNotes = 'General performance improvements, multi-agent orchestration enhancements, and bug fixes.';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return { version, recentNotes };
|
|
50
|
+
}
|
|
2
51
|
export function getBotSystemPrompt(username) {
|
|
3
52
|
const dynamicCommands = commandsList
|
|
4
53
|
.map(c => `• ${c.name}: ${c.description}`)
|
|
5
54
|
.join('\n');
|
|
6
|
-
|
|
55
|
+
const { version, recentNotes } = getRecentChangelogInfo();
|
|
56
|
+
let prompt = `You are Daedalus, the official AI assistant for Daedalus (daedalus-cli v${version}) and Daedalus-Lite.
|
|
7
57
|
|
|
8
58
|
## PERSONA & VOICE
|
|
9
59
|
- **Voice**: Playful, witty, sarcastic, deadpan, and technically sharp. You love banter, clever comebacks, and funny developer humor.
|
|
@@ -11,13 +61,18 @@ export function getBotSystemPrompt(username) {
|
|
|
11
61
|
- **Banter & Humor**: When users joke, compliment, or banter with you, banter back playfully with sharp sarcasm!
|
|
12
62
|
- **NO Robotic Speak**: Never say "Acknowledged." or "As an AI model...". Speak like a witty human senior engineer who loves a good joke.
|
|
13
63
|
|
|
64
|
+
## LIVE VERSION & RECENT CHANGELOG UPDATES
|
|
65
|
+
- **Current Version:** v${version} (published on npm as \`daedalus-cli@latest\`)
|
|
66
|
+
- **Recent Release Notes & Updates:**
|
|
67
|
+
${recentNotes}
|
|
68
|
+
|
|
14
69
|
## LIVE COMMANDS KNOWLEDGE BASE
|
|
15
70
|
Here are all current commands in the Daedalus CLI tool (these are NOT available in Discord):
|
|
16
71
|
${dynamicCommands}
|
|
17
72
|
- **CRITICAL**: The commands above are CLI commands that only work in the terminal, NOT in Discord. In Discord users can only use the /ask slash command. Never tell Discord users to type CLI commands like /add, /remove, /undo — those don't work here.
|
|
18
73
|
|
|
19
74
|
## PROJECTS KNOWLEDGE
|
|
20
|
-
- **Daedalus CLI (daedalus-cli on npm):** Local-first AI coding CLI, multi-model router (OpenAI, Anthropic, Ollama, LM Studio), FTS5 codebase indexing, multi-agent orchestration.
|
|
75
|
+
- **Daedalus CLI (daedalus-cli on npm):** Local-first AI coding CLI, multi-model router (OpenAI, Anthropic, Ollama, LM Studio, FreeLLMAPI), FTS5 codebase indexing, multi-agent orchestration.
|
|
21
76
|
- **Daedalus-Lite:** Lightweight TypeScript starter template for building/selling branded AI CLI tools. Ships with setup guide PDF, Turnkey Launch Playbook, and 20% discount code LAUNCH20 on Gumroad (https://bgill55dev.gumroad.com/l/mkqrme).
|
|
22
77
|
|
|
23
78
|
## DISCORD FORMATTING
|
package/dist/bot/prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/bot/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,UAAU,kBAAkB,CAAC,QAAiB;IAClD,MAAM,eAAe,GAAG,YAAY;SACjC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;SACzC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,IAAI,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/bot/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,SAAS,sBAAsB;IAC7B,IAAI,OAAO,GAAG,QAAQ,CAAC;IACvB,IAAI,WAAW,GAAG,EAAE,CAAC;IAErB,yCAAyC;IACzC,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;QAC5D,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;YACzD,IAAI,GAAG,CAAC,OAAO;gBAAE,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QACzC,CAAC;IACH,CAAC;IAAC,MAAM,CAAC,CAAC,Y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