naiad-cli 0.2.29 → 0.2.30

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.
@@ -8,6 +8,7 @@ import {
8
8
  type SimpleStreamOptions,
9
9
  type ToolCall,
10
10
  createAssistantMessageEventStream,
11
+ calculateCost,
11
12
  } from "@mariozechner/pi-ai";
12
13
  import { execSync, execFileSync, spawn } from "child_process";
13
14
  import * as readline from "readline";
@@ -475,6 +476,7 @@ export default function (pi: ExtensionAPI) {
475
476
  }
476
477
 
477
478
  finishCurrentBlock(currentBlock);
479
+ calculateCost(mdl, output.usage);
478
480
  stream.push({ type: "done", reason: output.stopReason as "stop" | "length" | "toolUse", message: output });
479
481
  stream.end();
480
482
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naiad-cli",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "naiad": "./dist/index.js"