@dreb/coding-agent 2.0.7 → 2.2.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/docs/tui.md CHANGED
@@ -775,6 +775,7 @@ ctx.ui.setFooter((tui, theme, footerData) => ({
775
775
  render(width: number): string[] {
776
776
  // footerData.getGitBranch(): string | null
777
777
  // footerData.getExtensionStatuses(): ReadonlyMap<string, string>
778
+ // footerData.getDailyCost(): number — aggregate cost across all sessions today
778
779
  return [`${ctx.model?.id} (${footerData.getGitBranch() || "no git"})`];
779
780
  },
780
781
  dispose: footerData.onBranchChange(() => tui.requestRender()), // reactive
@@ -4,6 +4,7 @@
4
4
  * footerData exposes data not otherwise accessible:
5
5
  * - getGitBranch(): current git branch
6
6
  * - getExtensionStatuses(): texts from ctx.ui.setStatus()
7
+ * - getDailyCost(): aggregate cost across all sessions today
7
8
  *
8
9
  * Token stats come from ctx.sessionManager/ctx.model (already accessible).
9
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreb/coding-agent",
3
- "version": "2.0.7",
3
+ "version": "2.2.0",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "drebConfig": {
@@ -52,10 +52,10 @@
52
52
  "prepublishOnly": "npm run clean && npm run build"
53
53
  },
54
54
  "dependencies": {
55
- "@dreb/agent-core": "^1.0.0",
56
- "@dreb/ai": "^1.0.0",
57
- "@dreb/semantic-search": "^1.0.0",
58
- "@dreb/tui": "^1.0.0",
55
+ "@dreb/agent-core": "^2.0.0",
56
+ "@dreb/ai": "^2.0.0",
57
+ "@dreb/semantic-search": "^2.0.0",
58
+ "@dreb/tui": "^2.0.0",
59
59
  "@huggingface/transformers": "^4.0.1",
60
60
  "@mariozechner/jiti": "^2.6.2",
61
61
  "@silvia-odwyer/photon-node": "^0.3.4",