@standardagents/builder 0.33.0 → 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 +27 -17
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/{ApiKeysView-CxNw8yvZ.js → ApiKeysView-Bv8qoGeD.js} +1 -1
- package/dist/client/{CenteredContentView-D4G91Thq.js → CenteredContentView-BVJCN57C.js} +1 -1
- package/dist/client/{CompositionView-BaWfyUW6.js → CompositionView-XRs1hJPR.js} +1 -1
- package/dist/client/{ConfirmDialog.vue_vue_type_script_setup_true_lang-CVzMoEOi.js → ConfirmDialog.vue_vue_type_script_setup_true_lang-nQMuZPnp.js} +1 -1
- package/dist/client/{CopyButton.vue_vue_type_script_setup_true_lang-Cz_ZrOAS.js → CopyButton.vue_vue_type_script_setup_true_lang-DK7RbS4C.js} +1 -1
- package/dist/client/{DataTable.vue_vue_type_script_setup_true_lang-CQwcIXyb.js → DataTable.vue_vue_type_script_setup_true_lang-Bxbhd23r.js} +1 -1
- package/dist/client/{JsonViewer-Dsl-e2IH.js → JsonViewer-UqksKmyo.js} +1 -1
- package/dist/client/{LoginView-CX0lmKUS.js → LoginView-D2kAR5Tu.js} +1 -1
- package/dist/client/{MarketplaceView-BJAG7kej.js → MarketplaceView-SIE1hoDP.js} +1 -1
- package/dist/client/{Modal.vue_vue_type_script_setup_true_lang-B2Yd_pvh.js → Modal.vue_vue_type_script_setup_true_lang-jYwcc2L_.js} +1 -1
- package/dist/client/{ModelModal.vue_vue_type_script_setup_true_lang-CCH8VxwI.js → ModelModal.vue_vue_type_script_setup_true_lang-C3ZjIJtP.js} +1 -1
- package/dist/client/{ModelsView-CGgNBkY-.js → ModelsView-BpR8UKW2.js} +1 -1
- package/dist/client/{PromptEditView-CL2LEH80.js → PromptEditView-DIavw2J0.js} +1 -1
- package/dist/client/{PromptModal-DHHy53-v.js → PromptModal-Dg39Yq2j.js} +1 -1
- package/dist/client/{PromptsView-BcTfvJdH.js → PromptsView-Ba1UL0TN.js} +1 -1
- package/dist/client/{ProvidersView-B2yy_Kbe.js → ProvidersView-cMELUEfj.js} +1 -1
- package/dist/client/ThreadInspectorPane.vue_vue_type_script_setup_true_lang-DANY3J0L.js +22 -0
- package/dist/client/{ThreadsView-BKSAJipV.js → ThreadsView-BldKUFh8.js} +1 -1
- package/dist/client/{ToolsView-DBkare-6.js → ToolsView-ug4WlvVe.js} +1 -1
- package/dist/client/{UsersView-yBnliXIU.js → UsersView-Dcs0DUTh.js} +1 -1
- package/dist/client/{VariablesView-N-VgGqPg.js → VariablesView-DyIy7q3P.js} +1 -1
- package/dist/client/assets/{ThreadInspectorPane-DSQsKyG6.css → ThreadInspectorPane-B2xKm6jM.css} +1 -1
- package/dist/client/assets/index-DBe2myN2.css +1 -0
- package/dist/client/{index-DANZMMwO.js → index-C8NBza63.js} +2 -2
- package/dist/client/index.html +2 -2
- package/dist/{index-CqhPhqAI.d.ts → index-NmFt-OEl.d.ts} +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -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 +20 -8
- package/dist/runtime.js.map +1 -1
- package/dist/test.d.ts +1 -1
- package/package.json +5 -5
- package/dist/client/ThreadInspectorPane.vue_vue_type_script_setup_true_lang-BCiZyZu-.js +0 -22
- package/dist/client/assets/index-C4KCxdCv.css +0 -1
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();
|
|
@@ -72528,13 +72537,13 @@ function safeReturnTo2(value) {
|
|
|
72528
72537
|
if (!value || !value.startsWith("/") || value.startsWith("//")) return "/";
|
|
72529
72538
|
return value;
|
|
72530
72539
|
}
|
|
72531
|
-
function failRedirect(req, env2, reason) {
|
|
72540
|
+
function failRedirect(req, env2, reason, returnTo) {
|
|
72532
72541
|
const origin = new URL(req.url).origin;
|
|
72533
72542
|
if (isPlatformHosted(env2)) {
|
|
72534
|
-
const target = new URL(platformLoginUrl(req, env2, "/"));
|
|
72543
|
+
const target = new URL(platformLoginUrl(req, env2, returnTo ?? "/"));
|
|
72535
72544
|
target.searchParams.set(
|
|
72536
72545
|
"error",
|
|
72537
|
-
reason === "
|
|
72546
|
+
reason === "api_only_account" ? "api_only_account" : "instance_login_failed"
|
|
72538
72547
|
);
|
|
72539
72548
|
return new Response(null, {
|
|
72540
72549
|
status: 302,
|
|
@@ -72551,9 +72560,10 @@ var callback_get_default = defineController2(async ({ req, env: env2 }) => {
|
|
|
72551
72560
|
return failRedirect(req, env2, "not_hosted");
|
|
72552
72561
|
}
|
|
72553
72562
|
const url = new URL(req.url);
|
|
72563
|
+
const failReturnTo = safeReturnTo2(url.searchParams.get("return_to"));
|
|
72554
72564
|
const handoff = url.searchParams.get("handoff") || url.searchParams.get("token");
|
|
72555
72565
|
if (!handoff) {
|
|
72556
|
-
return failRedirect(req, env2, "invalid_response");
|
|
72566
|
+
return failRedirect(req, env2, "invalid_response", failReturnTo);
|
|
72557
72567
|
}
|
|
72558
72568
|
const configuredProjectId = typeof env2.STANDARD_AGENTS_PROJECT_ID === "string" ? env2.STANDARD_AGENTS_PROJECT_ID : void 0;
|
|
72559
72569
|
const payload = await verifyPlatformSignedPayload(
|
|
@@ -72565,10 +72575,10 @@ var callback_get_default = defineController2(async ({ req, env: env2 }) => {
|
|
|
72565
72575
|
}
|
|
72566
72576
|
);
|
|
72567
72577
|
if (!payload || !payload.platform_user_id || !payload.role) {
|
|
72568
|
-
return failRedirect(req, env2, "
|
|
72578
|
+
return failRedirect(req, env2, "invalid_handoff", failReturnTo);
|
|
72569
72579
|
}
|
|
72570
72580
|
if (!configuredProjectId && payload.project_id !== hostedInstanceRedirectId(req, env2)) {
|
|
72571
|
-
return failRedirect(req, env2, "
|
|
72581
|
+
return failRedirect(req, env2, "invalid_handoff", failReturnTo);
|
|
72572
72582
|
}
|
|
72573
72583
|
if (payload.role === "api") {
|
|
72574
72584
|
const apiReturnTo = safeReturnTo2(url.searchParams.get("return_to"));
|