veryfront 0.1.538 → 0.1.539

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/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.538",
3
+ "version": "0.1.539",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -83,6 +83,8 @@ async function callRemoteTool(baseUrl, token, toolName, args, endUserId) {
83
83
  // If MCP CallToolResult format, extract content
84
84
  if (result?.content && Array.isArray(result.content)) {
85
85
  const text = joinCallToolText(result.content);
86
+ if (result.structuredContent)
87
+ return result.structuredContent;
86
88
  if (result.isError) {
87
89
  // Try to preserve structured error data (e.g., authentication_required with connectUrl)
88
90
  const parsed = parseJsonText(text);
@@ -90,8 +92,6 @@ async function callRemoteTool(baseUrl, token, toolName, args, endUserId) {
90
92
  return parsed;
91
93
  return { error: "tool_error", message: text };
92
94
  }
93
- if (result.structuredContent)
94
- return result.structuredContent;
95
95
  return parseJsonText(text) ?? text;
96
96
  }
97
97
  return result;
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.538";
1
+ export declare const VERSION = "0.1.539";
2
2
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.538";
3
+ export const VERSION = "0.1.539";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.538",
3
+ "version": "0.1.539",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.538",
3
+ "version": "0.1.539",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -124,6 +124,8 @@ async function callRemoteTool(
124
124
  if (result?.content && Array.isArray(result.content)) {
125
125
  const text = joinCallToolText(result.content as CallToolTextContent[]);
126
126
 
127
+ if (result.structuredContent) return result.structuredContent;
128
+
127
129
  if (result.isError) {
128
130
  // Try to preserve structured error data (e.g., authentication_required with connectUrl)
129
131
  const parsed = parseJsonText(text);
@@ -131,8 +133,6 @@ async function callRemoteTool(
131
133
  return { error: "tool_error", message: text };
132
134
  }
133
135
 
134
- if (result.structuredContent) return result.structuredContent;
135
-
136
136
  return parseJsonText(text) ?? text;
137
137
  }
138
138
 
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.538";
3
+ export const VERSION = "0.1.539";