@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/dist/core/buddy/buddy-manager.d.ts.map +1 -1
- package/dist/core/buddy/buddy-manager.js +1 -1
- package/dist/core/buddy/buddy-manager.js.map +1 -1
- package/dist/core/daily-cost-tracker.d.ts +34 -0
- package/dist/core/daily-cost-tracker.d.ts.map +1 -0
- package/dist/core/daily-cost-tracker.js +156 -0
- package/dist/core/daily-cost-tracker.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +6 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +12 -0
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/modes/interactive/components/buddy-component.d.ts.map +1 -1
- package/dist/modes/interactive/components/buddy-component.js +46 -39
- package/dist/modes/interactive/components/buddy-component.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +21 -10
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +3 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/tui.md +1 -0
- package/examples/extensions/custom-footer.ts +1 -0
- package/package.json +5 -5
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
|
|
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": "^
|
|
56
|
-
"@dreb/ai": "^
|
|
57
|
-
"@dreb/semantic-search": "^
|
|
58
|
-
"@dreb/tui": "^
|
|
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",
|