@standardagents/builder 0.33.0 → 0.33.1
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 +8 -7
- 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.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +3 -0
- package/dist/runtime.js.map +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
|
@@ -66647,7 +66647,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
|
|
|
66647
66647
|
});
|
|
66648
66648
|
|
|
66649
66649
|
// src/version.ts
|
|
66650
|
-
var BUILDER_VERSION = "0.33.
|
|
66650
|
+
var BUILDER_VERSION = "0.33.1".length > 0 ? "0.33.1" : "dev";
|
|
66651
66651
|
|
|
66652
66652
|
// src/api/diagnostics.get.ts
|
|
66653
66653
|
init_LLMRequest();
|
|
@@ -72528,13 +72528,13 @@ function safeReturnTo2(value) {
|
|
|
72528
72528
|
if (!value || !value.startsWith("/") || value.startsWith("//")) return "/";
|
|
72529
72529
|
return value;
|
|
72530
72530
|
}
|
|
72531
|
-
function failRedirect(req, env2, reason) {
|
|
72531
|
+
function failRedirect(req, env2, reason, returnTo) {
|
|
72532
72532
|
const origin = new URL(req.url).origin;
|
|
72533
72533
|
if (isPlatformHosted(env2)) {
|
|
72534
|
-
const target = new URL(platformLoginUrl(req, env2, "/"));
|
|
72534
|
+
const target = new URL(platformLoginUrl(req, env2, returnTo ?? "/"));
|
|
72535
72535
|
target.searchParams.set(
|
|
72536
72536
|
"error",
|
|
72537
|
-
reason === "
|
|
72537
|
+
reason === "api_only_account" ? "api_only_account" : "instance_login_failed"
|
|
72538
72538
|
);
|
|
72539
72539
|
return new Response(null, {
|
|
72540
72540
|
status: 302,
|
|
@@ -72551,9 +72551,10 @@ var callback_get_default = defineController2(async ({ req, env: env2 }) => {
|
|
|
72551
72551
|
return failRedirect(req, env2, "not_hosted");
|
|
72552
72552
|
}
|
|
72553
72553
|
const url = new URL(req.url);
|
|
72554
|
+
const failReturnTo = safeReturnTo2(url.searchParams.get("return_to"));
|
|
72554
72555
|
const handoff = url.searchParams.get("handoff") || url.searchParams.get("token");
|
|
72555
72556
|
if (!handoff) {
|
|
72556
|
-
return failRedirect(req, env2, "invalid_response");
|
|
72557
|
+
return failRedirect(req, env2, "invalid_response", failReturnTo);
|
|
72557
72558
|
}
|
|
72558
72559
|
const configuredProjectId = typeof env2.STANDARD_AGENTS_PROJECT_ID === "string" ? env2.STANDARD_AGENTS_PROJECT_ID : void 0;
|
|
72559
72560
|
const payload = await verifyPlatformSignedPayload(
|
|
@@ -72565,10 +72566,10 @@ var callback_get_default = defineController2(async ({ req, env: env2 }) => {
|
|
|
72565
72566
|
}
|
|
72566
72567
|
);
|
|
72567
72568
|
if (!payload || !payload.platform_user_id || !payload.role) {
|
|
72568
|
-
return failRedirect(req, env2, "
|
|
72569
|
+
return failRedirect(req, env2, "invalid_handoff", failReturnTo);
|
|
72569
72570
|
}
|
|
72570
72571
|
if (!configuredProjectId && payload.project_id !== hostedInstanceRedirectId(req, env2)) {
|
|
72571
|
-
return failRedirect(req, env2, "
|
|
72572
|
+
return failRedirect(req, env2, "invalid_handoff", failReturnTo);
|
|
72572
72573
|
}
|
|
72573
72574
|
if (payload.role === "api") {
|
|
72574
72575
|
const apiReturnTo = safeReturnTo2(url.searchParams.get("return_to"));
|