nairon-bench 0.0.32 → 0.0.33
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/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14959,13 +14959,18 @@ function collectOpenCodeSessions2(openCodeDir, since, until) {
|
|
|
14959
14959
|
} catch {}
|
|
14960
14960
|
}
|
|
14961
14961
|
}
|
|
14962
|
+
const estimatedMsgTokens = Math.ceil(messageText.length / 4);
|
|
14962
14963
|
if (msgData.role === "user" && messageText.trim()) {
|
|
14963
14964
|
const prompt2 = analyzePrompt(messageText, sessionId, prompts.length, msgTime);
|
|
14964
14965
|
prompts.push(prompt2);
|
|
14966
|
+
inputTokens += estimatedMsgTokens;
|
|
14967
|
+
totalTokens += estimatedMsgTokens;
|
|
14965
14968
|
}
|
|
14966
14969
|
if (msgData.role === "assistant" && messageText.trim()) {
|
|
14967
14970
|
const response = analyzeResponse(messageText, sessionId, responses.length, prompts[prompts.length - 1]?.id ?? "", msgTime);
|
|
14968
14971
|
responses.push(response);
|
|
14972
|
+
outputTokens += estimatedMsgTokens;
|
|
14973
|
+
totalTokens += estimatedMsgTokens;
|
|
14969
14974
|
if (messageText.includes("Write ") || messageText.includes("Created ")) {
|
|
14970
14975
|
const fileMatches = messageText.match(/(?:Write|Created|Updated)\s+(\S+\.\w+)/g);
|
|
14971
14976
|
if (fileMatches) {
|
|
@@ -23049,7 +23054,7 @@ var setupCommand = defineCommand2({
|
|
|
23049
23054
|
// package.json
|
|
23050
23055
|
var package_default = {
|
|
23051
23056
|
name: "nairon-bench",
|
|
23052
|
-
version: "0.0.
|
|
23057
|
+
version: "0.0.33",
|
|
23053
23058
|
description: "AI workflow benchmarking CLI",
|
|
23054
23059
|
type: "module",
|
|
23055
23060
|
bin: {
|