@superatomai/sdk-node 0.0.53 → 0.0.54
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/README.md +942 -942
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -131,7 +131,22 @@ ${"#".repeat(80)}
|
|
|
131
131
|
${"#".repeat(80)}
|
|
132
132
|
`;
|
|
133
133
|
LOGSTREAM.write(header);
|
|
134
|
-
|
|
134
|
+
let contentStr;
|
|
135
|
+
if (typeof content === "string") {
|
|
136
|
+
contentStr = content;
|
|
137
|
+
} else if (Array.isArray(content)) {
|
|
138
|
+
contentStr = content.map((item) => {
|
|
139
|
+
if (typeof item === "string") return item;
|
|
140
|
+
if (item.text) return item.text;
|
|
141
|
+
if (item.content) return typeof item.content === "string" ? item.content : JSON.stringify(item.content, null, 2);
|
|
142
|
+
return JSON.stringify(item, null, 2);
|
|
143
|
+
}).join("\n\n");
|
|
144
|
+
} else if (typeof content === "object") {
|
|
145
|
+
contentStr = JSON.stringify(content, null, 2);
|
|
146
|
+
} else {
|
|
147
|
+
contentStr = String(content);
|
|
148
|
+
}
|
|
149
|
+
LOGSTREAM.write(contentStr);
|
|
135
150
|
LOGSTREAM.write(`
|
|
136
151
|
${"#".repeat(80)}
|
|
137
152
|
|
|
@@ -6975,6 +6990,8 @@ ${errorMsg}
|
|
|
6975
6990
|
executionReason: t.executionReason || "",
|
|
6976
6991
|
requiredFields: t.requiredFields || [],
|
|
6977
6992
|
userProvidedData: t.userProvidedData || null,
|
|
6993
|
+
// CRITICAL: Include outputSchema from real tool for component config generation
|
|
6994
|
+
outputSchema: realTool?.outputSchema,
|
|
6978
6995
|
fn: (() => {
|
|
6979
6996
|
if (realTool) {
|
|
6980
6997
|
logger.info(`[${this.getProviderName()}] Using real tool implementation for ${t.type}`);
|