@lota-sdk/core 0.1.28 → 0.1.29

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.28",
3
+ "version": "0.1.29",
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.28",
35
+ "@lota-sdk/shared": "0.1.29",
36
36
  "@mendable/firecrawl-js": "^4.18.0",
37
37
  "@surrealdb/node": "^3.0.3",
38
38
  "ai": "^6.0.141",
@@ -154,7 +154,7 @@ async function generateSubstantiveDelegatedAgentResult(params: {
154
154
  }
155
155
 
156
156
  // Try a follow-up: feed the agent's tool results back as context and ask for synthesis
157
- const toolContext = extractToolResultText(result.messages)
157
+ const toolContext = extractToolResultText(result.messages ?? [])
158
158
  if (toolContext.length > 100) {
159
159
  const followUpPrompt = [
160
160
  params.task,