@nextclaw/server 0.5.16 → 0.5.17

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.d.ts CHANGED
@@ -70,10 +70,12 @@ type SessionsListView = {
70
70
  };
71
71
  type SessionMessageView = {
72
72
  role: string;
73
- content: string;
73
+ content: unknown;
74
74
  timestamp: string;
75
75
  name?: string;
76
76
  tool_call_id?: string;
77
+ tool_calls?: Array<Record<string, unknown>>;
78
+ reasoning_content?: string;
77
79
  };
78
80
  type SessionHistoryView = {
79
81
  key: string;
package/dist/index.js CHANGED
@@ -485,6 +485,12 @@ function getSessionHistory(configPath, key, limit) {
485
485
  if (typeof message.tool_call_id === "string") {
486
486
  entry.tool_call_id = message.tool_call_id;
487
487
  }
488
+ if (Array.isArray(message.tool_calls)) {
489
+ entry.tool_calls = message.tool_calls;
490
+ }
491
+ if (typeof message.reasoning_content === "string") {
492
+ entry.reasoning_content = message.reasoning_content;
493
+ }
488
494
  return entry;
489
495
  })
490
496
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/server",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "private": false,
5
5
  "description": "Nextclaw UI/API server.",
6
6
  "type": "module",