daedalus-cli 1.63.0 → 1.64.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.64.0](https://github.com/bgill55/daedalus/compare/v1.63.0...v1.64.0) (2026-07-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * **issue-4:** [Daedalus Spec] Add /stats REPL command to display session analytics, token usage, codebase index count, and model router status ([d2a0c50](https://github.com/bgill55/daedalus/commit/d2a0c504e2738ee2a21f6ab33c0d7790fb030613))
7
+
1
8
  # [1.63.0](https://github.com/bgill55/daedalus/compare/v1.62.0...v1.63.0) (2026-07-25)
2
9
 
3
10
 
@@ -4,13 +4,13 @@ export function handleStatsCommand() {
4
4
  const report = globalSessionStats.getReport();
5
5
  const lines = [
6
6
  pc.bold(pc.cyan('┌─ Session & System Statistics ─────────────────────────────┐')),
7
- `│ ${pc.bold('Uptime:')} ${report.uptime.padEnd(41)} │`,
8
- `│ ${pc.bold('Interactions:')} ${report.totalInteractions.toString().padEnd(41)} │`,
9
- `│ ${pc.bold('Total Tokens:')} ${report.totalTokens.toLocaleString().padEnd(41)} │`,
10
- `│ ${pc.bold('Prompt Tokens:')} ${report.promptTokens.toLocaleString().padEnd(41)} │`,
11
- `│ ${pc.bold('Completion:')} ${report.completionTokens.toLocaleString().padEnd(41)} │`,
12
- `│ ${pc.bold('Error Count:')} ${report.totalErrors.toString().padEnd(41)} │`,
13
- pc.bold(pc.cyan('└───────────────────────────────────────────────────────────┘')),
7
+ `│ ${pc.bold('Uptime:')} ${report.uptime} │`,
8
+ `│ ${pc.bold('Interactions:')} ${report.totalInteractions} │`,
9
+ `│ ${pc.bold('Total Tokens:')} ${report.totalTokens} │`,
10
+ `│ ${pc.bold('Prompt Tokens:')} ${report.promptTokens} │`,
11
+ `│ ${pc.bold('Completion Tokens:')} ${report.completionTokens} │`,
12
+ `│ ${pc.bold('Error Count:')} ${report.totalErrors} │`,
13
+ pc.bold(pc.cyan('└─────────────────────────────────────────────────────────┘')),
14
14
  ];
15
15
  return lines.join('\n');
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stats.js","sourceRoot":"","sources":["../../src/commands/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,UAAU,kBAAkB;IAChC,MAAM,MAAM,GAAG,kBAAkB,CAAC,SAAS,EAAE,CAAC;IAE9C,MAAM,KAAK,GAAG;QACZ,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;QACjF,KAAK,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI;QAChE,KAAK,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,MAAM,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI;QACtF,KAAK,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI;QACtF,KAAK,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI;QACvF,KAAK,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI;QAC3F,KAAK,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI;QAChF,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;KAClF,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"stats.js","sourceRoot":"","sources":["../../src/commands/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,UAAU,kBAAkB;IAChC,MAAM,MAAM,GAAG,kBAAkB,CAAC,SAAS,EAAE,CAAC;IAE9C,MAAM,KAAK,GAAG;QACZ,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;QACjF,KAAK,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,MAAM,CAAC,MAAM,IAAI;QACrD,KAAK,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,MAAM,CAAC,iBAAiB,IAAI;QAChE,KAAK,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,MAAM,CAAC,WAAW,IAAI;QAC1D,KAAK,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,MAAM,CAAC,YAAY,IAAI;QAC3D,KAAK,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,MAAM,CAAC,gBAAgB,IAAI;QACjE,KAAK,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,MAAM,CAAC,WAAW,IAAI;QAC1D,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC;KAChF,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -5,6 +5,10 @@ export interface AnalyticsReport {
5
5
  promptTokens: number;
6
6
  completionTokens: number;
7
7
  totalTokens: number;
8
+ indexedFiles?: number;
9
+ indexedChunks?: number;
10
+ routerProvider?: string;
11
+ routerStatus?: string;
8
12
  }
9
13
  export declare class SessionStats {
10
14
  private startTime;
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/session/analytics.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,iBAAiB,CAAa;IACtC,OAAO,CAAC,qBAAqB,CAAa;IAEnC,iBAAiB,CAAC,YAAY,GAAE,MAAU,EAAE,gBAAgB,GAAE,MAAU,EAAE,OAAO,GAAE,OAAe,GAAG,IAAI;IASzG,gBAAgB,IAAI,MAAM;IAI1B,kBAAkB,IAAI,MAAM;IAQ5B,SAAS,IAAI,eAAe;CAUpC;AAED,eAAO,MAAM,kBAAkB,cAAqB,CAAC"}
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/session/analytics.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,Y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AM,CAAC,MAAM,kBAAkB,GAAG,IAAI,YAAY,EAAE,CAAC"}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"daedalus-cli","version":"1.63.0","description":"Local-first AI coding CLI with embedded model router, multi-agent orchestration, and codebase indexing","type":"module","bin":{"daedalus":"dist/index.js"},"files":["dist/","Daedalus.bat","README.md","CHANGELOG.md","CONTRIBUTING.md","CODE_OF_CONDUCT.md","SECURITY.md","AGENTS.md","scripts/postinstall.js"],"scripts":{"start":"tsx src/index.ts","bot":"tsx src/bot.ts","dev":"tsx watch src/index.ts","build":"tsc","prepublishOnly":"npm run build","test":"vitest run","lint":"eslint src --ext .ts","sync-docs":"tsx scripts/sync-docs.ts","postinstall":"node scripts/postinstall.js"},"engines":{"node":">=20.0.0"},"repository":{"type":"git","url":"git+https://github.com/bgill55/daedalus.git"},"homepage":"https://github.com/bgill55/daedalus#readme","bugs":{"url":"https://github.com/bgill55/daedalus/issues"},"keywords":["cli","ai","coding","assistant","local","llm","lm-studio","ollama","mcp","developer-tools"],"license":"MIT","dependencies":{"better-sqlite3":"^12.10.0","cli-highlight":"^2.1.11","diff":"^7.0.0","neo-blessed":"^0.2.0","openai":"^4.85.4","pdf-parse":"^2.4.5","picocolors":"^1.1.1","puppeteer-core":"^25.1.0","zod":"^3.23.8"},"devDependencies":{"@eslint/js":"^10.0.1","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^11.0.6","@semantic-release/npm":"^12.0.2","@types/better-sqlite3":"^7.6.13","@types/blessed":"^0.1.27","@types/diff":"^6.0.0","@types/node":"^22.15.3","conventional-changelog-conventionalcommits":"^8.0.0","esbuild":"^0.24.0","eslint":"^10.5.0","globals":"^16.5.0","semantic-release":"^25.0.5","tsx":"^4.19.4","typescript":"^5.8.3","typescript-eslint":"^8.61.1","vitest":"^2.1.8"}}
1
+ {"name":"daedalus-cli","version":"1.64.0","description":"Local-first AI coding CLI with embedded model router, multi-agent orchestration, and codebase indexing","type":"module","bin":{"daedalus":"dist/index.js"},"files":["dist/","Daedalus.bat","README.md","CHANGELOG.md","CONTRIBUTING.md","CODE_OF_CONDUCT.md","SECURITY.md","AGENTS.md","scripts/postinstall.js"],"scripts":{"start":"tsx src/index.ts","bot":"tsx src/bot.ts","dev":"tsx watch src/index.ts","build":"tsc","prepublishOnly":"npm run build","test":"vitest run","lint":"eslint src --ext .ts","sync-docs":"tsx scripts/sync-docs.ts","postinstall":"node scripts/postinstall.js"},"engines":{"node":">=20.0.0"},"repository":{"type":"git","url":"git+https://github.com/bgill55/daedalus.git"},"homepage":"https://github.com/bgill55/daedalus#readme","bugs":{"url":"https://github.com/bgill55/daedalus/issues"},"keywords":["cli","ai","coding","assistant","local","llm","lm-studio","ollama","mcp","developer-tools"],"license":"MIT","dependencies":{"better-sqlite3":"^12.10.0","cli-highlight":"^2.1.11","diff":"^7.0.0","neo-blessed":"^0.2.0","openai":"^4.85.4","pdf-parse":"^2.4.5","picocolors":"^1.1.1","puppeteer-core":"^25.1.0","zod":"^3.23.8"},"devDependencies":{"@eslint/js":"^10.0.1","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^11.0.6","@semantic-release/npm":"^12.0.2","@types/better-sqlite3":"^7.6.13","@types/blessed":"^0.1.27","@types/diff":"^6.0.0","@types/node":"^22.15.3","conventional-changelog-conventionalcommits":"^8.0.0","esbuild":"^0.24.0","eslint":"^10.5.0","globals":"^16.5.0","semantic-release":"^25.0.5","tsx":"^4.19.4","typescript":"^5.8.3","typescript-eslint":"^8.61.1","vitest":"^2.1.8"}}