neatlogs 1.1.22 → 1.1.23
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/ai-sdk.cjs +2 -11
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.d.ts +17 -2
- package/dist/ai-sdk.mjs +2 -1
- package/dist/ai-sdk.mjs.map +1 -1
- package/dist/cli.cjs +14 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +14 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +1 -1
- package/dist/opencode-plugin.cjs +1 -1
- package/dist/opencode-plugin.cjs.map +1 -1
- package/dist/opencode-plugin.mjs +1 -1
- package/dist/opencode-plugin.mjs.map +1 -1
- package/package.json +4 -2
package/dist/cli.cjs
CHANGED
|
@@ -7104,7 +7104,7 @@ var TELEMETRY_CONFLICT_PRECEDENCE = Object.freeze(
|
|
|
7104
7104
|
);
|
|
7105
7105
|
|
|
7106
7106
|
// src/version.ts
|
|
7107
|
-
var __version__ = "1.1.
|
|
7107
|
+
var __version__ = "1.1.23";
|
|
7108
7108
|
|
|
7109
7109
|
// src/init.ts
|
|
7110
7110
|
var path2 = __toESM(require("path"));
|
|
@@ -8585,6 +8585,19 @@ var UnifiedAttributeProcessor = class {
|
|
|
8585
8585
|
attrs["llm.output_messages.0.message.role"] = "assistant";
|
|
8586
8586
|
attrs["llm.output_messages.0.message.content"] = typeof obj === "string" ? obj : JSON.stringify(obj);
|
|
8587
8587
|
}
|
|
8588
|
+
const responseReasoning = attrs["ai.response.reasoning"];
|
|
8589
|
+
if (typeof responseReasoning === "string" && responseReasoning.length > 0 && !("neatlogs.llm.output_messages.0.thinking" in attrs)) {
|
|
8590
|
+
attrs["neatlogs.llm.output_messages.0.thinking"] = responseReasoning;
|
|
8591
|
+
}
|
|
8592
|
+
const thinking = attrs["neatlogs.llm.output_messages.0.thinking"];
|
|
8593
|
+
if (typeof thinking === "string" && thinking.length > 0) {
|
|
8594
|
+
if (!("neatlogs.llm.thinking" in attrs)) {
|
|
8595
|
+
attrs["neatlogs.llm.thinking"] = thinking;
|
|
8596
|
+
}
|
|
8597
|
+
if (!("neatlogs.llm.has_thinking" in attrs)) {
|
|
8598
|
+
attrs["neatlogs.llm.has_thinking"] = "true";
|
|
8599
|
+
}
|
|
8600
|
+
}
|
|
8588
8601
|
if ("ai.response.finishReason" in attrs && !("llm.response.finish_reason" in attrs)) {
|
|
8589
8602
|
attrs["llm.response.finish_reason"] = attrs["ai.response.finishReason"];
|
|
8590
8603
|
}
|