@standardagents/builder 0.33.1 → 0.34.0
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/built-in-routes.js +20 -11
- package/dist/built-in-routes.js.map +1 -1
- package/dist/{index-CqhPhqAI.d.ts → index-NmFt-OEl.d.ts} +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -10
- package/dist/index.js.map +1 -1
- package/dist/packing.js +2 -2
- package/dist/packing.js.map +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +17 -8
- package/dist/runtime.js.map +1 -1
- package/dist/test.d.ts +1 -1
- package/package.json +5 -5
package/dist/built-in-routes.js
CHANGED
|
@@ -8261,22 +8261,29 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
|
|
|
8261
8261
|
messageToAdd.attachments = providerAttachments;
|
|
8262
8262
|
}
|
|
8263
8263
|
}
|
|
8264
|
-
|
|
8264
|
+
const reasoningAuthoredByCurrentPrompt = !msg.prompt || msg.prompt === promptName;
|
|
8265
|
+
if (includeReasoning && reasoningAuthoredByCurrentPrompt) {
|
|
8265
8266
|
const reasoningDetailsArray = [];
|
|
8266
|
-
|
|
8267
|
-
reasoningDetailsArray.push({
|
|
8268
|
-
type: "reasoning.text",
|
|
8269
|
-
text: msg.reasoning_content
|
|
8270
|
-
});
|
|
8271
|
-
}
|
|
8267
|
+
const seenDetailTexts = /* @__PURE__ */ new Set();
|
|
8272
8268
|
if (msg.reasoning_details) {
|
|
8273
8269
|
try {
|
|
8274
8270
|
const parsedDetails = JSON.parse(msg.reasoning_details);
|
|
8275
|
-
|
|
8271
|
+
for (const detail of parsedDetails) {
|
|
8272
|
+
reasoningDetailsArray.push(detail);
|
|
8273
|
+
if (typeof detail?.text === "string") {
|
|
8274
|
+
seenDetailTexts.add(detail.text);
|
|
8275
|
+
}
|
|
8276
|
+
}
|
|
8276
8277
|
} catch (e) {
|
|
8277
8278
|
console.error(`[FlowEngine] Failed to parse reasoning_details for message ${msg.id}:`, e);
|
|
8278
8279
|
}
|
|
8279
8280
|
}
|
|
8281
|
+
if (msg.reasoning_content && !seenDetailTexts.has(msg.reasoning_content)) {
|
|
8282
|
+
reasoningDetailsArray.push({
|
|
8283
|
+
type: "reasoning.text",
|
|
8284
|
+
text: msg.reasoning_content
|
|
8285
|
+
});
|
|
8286
|
+
}
|
|
8280
8287
|
if (reasoningDetailsArray.length > 0) {
|
|
8281
8288
|
messageToAdd.reasoning_details = reasoningDetailsArray;
|
|
8282
8289
|
}
|
|
@@ -10321,6 +10328,7 @@ ${lines.join("\n\n")}`
|
|
|
10321
10328
|
"silent",
|
|
10322
10329
|
"parent_id",
|
|
10323
10330
|
"depth",
|
|
10331
|
+
"prompt",
|
|
10324
10332
|
"reasoning_content",
|
|
10325
10333
|
"reasoning_details"
|
|
10326
10334
|
];
|
|
@@ -10355,6 +10363,7 @@ ${lines.join("\n\n")}`
|
|
|
10355
10363
|
tool_status: row.tool_status,
|
|
10356
10364
|
parent_id: row.parent_id,
|
|
10357
10365
|
depth: row.depth,
|
|
10366
|
+
prompt: row.prompt,
|
|
10358
10367
|
reasoning_content: row.reasoning_content,
|
|
10359
10368
|
reasoning_details: row.reasoning_details
|
|
10360
10369
|
}));
|
|
@@ -14147,10 +14156,10 @@ async function extractPromptIncludes(sourceCode) {
|
|
|
14147
14156
|
let includeName = null;
|
|
14148
14157
|
for (const prop of element.properties) {
|
|
14149
14158
|
if (ts.isPropertyAssignment(prop) && ts.isIdentifier(prop.name)) {
|
|
14150
|
-
if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && prop.initializer.text === "include") {
|
|
14159
|
+
if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && (prop.initializer.text === "include" || prop.initializer.text === "prompt")) {
|
|
14151
14160
|
hasIncludeType = true;
|
|
14152
14161
|
}
|
|
14153
|
-
if (prop.name.text === "name" && ts.isStringLiteral(prop.initializer)) {
|
|
14162
|
+
if ((prop.name.text === "prompt" || prop.name.text === "name" || prop.name.text === "id") && ts.isStringLiteral(prop.initializer)) {
|
|
14154
14163
|
includeName = prop.initializer.text;
|
|
14155
14164
|
}
|
|
14156
14165
|
}
|
|
@@ -66647,7 +66656,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
|
|
|
66647
66656
|
});
|
|
66648
66657
|
|
|
66649
66658
|
// src/version.ts
|
|
66650
|
-
var BUILDER_VERSION = "0.
|
|
66659
|
+
var BUILDER_VERSION = "0.34.0".length > 0 ? "0.34.0" : "dev";
|
|
66651
66660
|
|
|
66652
66661
|
// src/api/diagnostics.get.ts
|
|
66653
66662
|
init_LLMRequest();
|