@lota-sdk/core 0.1.42 → 0.1.43
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lota-sdk/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@chat-adapter/slack": "^4.23.0",
|
|
33
33
|
"@chat-adapter/state-ioredis": "^4.23.0",
|
|
34
34
|
"@logtape/logtape": "^2.0.5",
|
|
35
|
-
"@lota-sdk/shared": "0.1.
|
|
35
|
+
"@lota-sdk/shared": "0.1.43",
|
|
36
36
|
"@mendable/firecrawl-js": "^4.18.0",
|
|
37
37
|
"@surrealdb/node": "^3.0.3",
|
|
38
38
|
"ai": "^6.0.141",
|
|
@@ -115,8 +115,12 @@ export async function triageWorkstreamMessage(params: {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
const rawText = typeof result.text === 'string' ? result.text : ''
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
const reasoning = (result as { reasoning?: string }).reasoning ?? ''
|
|
119
|
+
console.log('[workstream-router] triage raw text:', rawText.slice(0, 300))
|
|
120
|
+
console.log('[workstream-router] triage reasoning:', reasoning.slice(0, 300))
|
|
121
|
+
// Use reasoning as fallback if text is empty (reasoning-only models like gpt-oss-120b)
|
|
122
|
+
const effectiveText = rawText || reasoning
|
|
123
|
+
const json = extractJson(effectiveText)
|
|
120
124
|
const parsed = TriageResultSchema.safeParse(json)
|
|
121
125
|
if (!parsed.success) {
|
|
122
126
|
console.log('[workstream-router] triage parse failed:', JSON.stringify(parsed.error.issues))
|