nairon-bench 0.0.31 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. 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) {
@@ -19238,6 +19243,7 @@ async function publishReport(report) {
19238
19243
  const markdownContent = formatReportAsMarkdown(report);
19239
19244
  const basePayload = {
19240
19245
  projectName: report.projectName,
19246
+ primaryAgent: report.primaryAgent,
19241
19247
  timeRange: {
19242
19248
  start: report.timeRange.start.toISOString(),
19243
19249
  end: report.timeRange.end.toISOString(),
@@ -23048,7 +23054,7 @@ var setupCommand = defineCommand2({
23048
23054
  // package.json
23049
23055
  var package_default = {
23050
23056
  name: "nairon-bench",
23051
- version: "0.0.31",
23057
+ version: "0.0.33",
23052
23058
  description: "AI workflow benchmarking CLI",
23053
23059
  type: "module",
23054
23060
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nairon-bench",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "AI workflow benchmarking CLI",
5
5
  "type": "module",
6
6
  "bin": {