@standardagents/builder 0.41.18 → 0.41.20
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 -5
- package/dist/built-in-routes.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +5 -2
- package/dist/runtime.js.map +1 -1
- package/package.json +5 -5
package/dist/built-in-routes.js
CHANGED
|
@@ -21785,7 +21785,10 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
|
|
|
21785
21785
|
const visibleSideSubagents = sideSubagentDescriptors.filter(
|
|
21786
21786
|
(entry) => !entry.hidden
|
|
21787
21787
|
);
|
|
21788
|
-
const childrenRegistry =
|
|
21788
|
+
const childrenRegistry = _FlowEngine.filterModelVisibleSubagents(
|
|
21789
|
+
await this.getSubagentRegistry(state),
|
|
21790
|
+
state.agentConfig
|
|
21791
|
+
);
|
|
21789
21792
|
if (toolNames.length > 0) {
|
|
21790
21793
|
const providerToolNames = [];
|
|
21791
21794
|
const regularToolNames = [];
|
|
@@ -21927,7 +21930,7 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
|
|
|
21927
21930
|
if (visibleSideSubagents.length > 0 && !tools.some((tool3) => tool3.function.name === "subagent_create")) {
|
|
21928
21931
|
tools.push(this.buildSubagentCreateTool(visibleSideSubagents));
|
|
21929
21932
|
}
|
|
21930
|
-
if ((
|
|
21933
|
+
if ((visibleSideSubagents.length > 0 || childrenRegistry.length > 0) && !tools.some((tool3) => tool3.function.name === "subagents")) {
|
|
21931
21934
|
tools.push({
|
|
21932
21935
|
type: "function",
|
|
21933
21936
|
function: {
|
|
@@ -80054,7 +80057,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
|
|
|
80054
80057
|
});
|
|
80055
80058
|
|
|
80056
80059
|
// src/version.ts
|
|
80057
|
-
var BUILDER_VERSION = "0.41.
|
|
80060
|
+
var BUILDER_VERSION = "0.41.20".length > 0 ? "0.41.20" : "dev";
|
|
80058
80061
|
|
|
80059
80062
|
// src/api/diagnostics.get.ts
|
|
80060
80063
|
init_LLMRequest();
|
|
@@ -87087,9 +87090,9 @@ function confirmationPage(req, confirmationToken, handoff, brand, identity, env2
|
|
|
87087
87090
|
const logo = brand.logoUrl ? `<img class="logo" src="${escapeHtml(brand.logoUrl)}" alt="">` : `<span class="logo-fallback" aria-hidden="true">${escapeHtml(brand.name.slice(0, 1).toUpperCase())}</span>`;
|
|
87088
87091
|
const description = brand.description ? `<p class="description">${escapeHtml(brand.description)}</p>` : "";
|
|
87089
87092
|
const secondaryIdentity = identity.displayEmail && identity.displayEmail !== identity.displayName ? `<span>${escapeHtml(identity.displayEmail)}</span>` : "";
|
|
87090
|
-
const html = `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="referrer" content="no-referrer"><title>
|
|
87093
|
+
const html = `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="referrer" content="no-referrer"><title>Allow connection \xB7 ${escapeHtml(brand.name)}</title><style>
|
|
87091
87094
|
:root{color-scheme:light dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f6f7f9;color:#15171a}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 50% 0,rgba(71,194,174,.12),transparent 38%),linear-gradient(#fbfcfd,#f2f4f6)}main{width:min(100%,480px)}.card{background:rgba(255,255,255,.92);border:1px solid #dfe3e8;border-radius:20px;padding:34px;box-shadow:0 24px 70px rgba(20,27,38,.12),0 2px 8px rgba(20,27,38,.06)}.brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.logo,.logo-fallback{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;object-fit:contain}.logo-fallback{background:#171b21;color:#fff;font-weight:750}.brand strong{font-size:17px;letter-spacing:-.01em}h1{font-size:29px;line-height:1.18;letter-spacing:-.035em;margin:0 0 12px}p{margin:0;color:#5b6470;line-height:1.58}.description{margin-bottom:20px}.request{margin-top:18px}.identity{display:flex;align-items:center;gap:12px;margin-top:24px;padding:14px;border-radius:12px;background:#f2f4f6;border:1px solid #e3e6ea}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dfe4e8;color:#313841;font-weight:700}.identity-text{min-width:0;display:flex;flex-direction:column}.identity-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#737d89}.identity strong,.identity span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity span{font-size:13px;color:#68727e}form{display:grid;gap:10px;margin-top:26px}button{appearance:none;border-radius:11px;padding:12px 16px;font:inherit;font-weight:700;cursor:pointer}.connect{border:1px solid #15191d;background:#15191d;color:#fff}.deny{border:1px solid transparent;background:transparent;color:#68727e}.deny:hover{background:#f1f3f5;color:#252a30}.disclosure{text-align:center;font-size:12px;color:#8a939d;margin:16px 0 0}@media(prefers-color-scheme:dark){:root{background:#090b0e;color:#f2f5f7}body{background:radial-gradient(circle at 50% 0,rgba(68,198,177,.12),transparent 38%),#090b0e}.card{background:rgba(17,20,25,.94);border-color:#292e36;box-shadow:0 28px 80px rgba(0,0,0,.42)}p{color:#a9b1bc}.identity{background:#191d23;border-color:#292f38}.avatar{background:#2b323b;color:#eef2f5}.identity-label,.identity span{color:#929ca8}.connect{background:#62d4c2;border-color:#62d4c2;color:#07110f}.deny{color:#9aa4af}.deny:hover{background:#1d2229;color:#e4e8ec}.disclosure{color:#747e8a}}
|
|
87092
|
-
</style></head><body><main><section class="card"><div class="brand">${logo}<strong>${escapeHtml(brand.name)}</strong></div><h1>Connect ${escapeHtml(brand.name)}?</h1>${description}<p class="request">A new device wants to connect to your account. Only continue if you started this sign-in.</p><div class="identity"><div class="avatar" aria-hidden="true">${escapeHtml(identity.displayName.slice(0, 1).toUpperCase())}</div><div class="identity-text"><span class="identity-label">Signed in as</span><strong>${escapeHtml(identity.displayName)}</strong>${secondaryIdentity}</div></div><form method="post" action=""><input type="hidden" name="confirmation_token" value="${escapeHtml(confirmationToken)}">${handoffInput}<button class="connect" type="submit" name="decision" value="approve">
|
|
87095
|
+
</style></head><body><main><section class="card"><div class="brand">${logo}<strong>${escapeHtml(brand.name)}</strong></div><h1>Connect ${escapeHtml(brand.name)}?</h1>${description}<p class="request">A new device wants to connect to your account. Only continue if you started this sign-in.</p><div class="identity"><div class="avatar" aria-hidden="true">${escapeHtml(identity.displayName.slice(0, 1).toUpperCase())}</div><div class="identity-text"><span class="identity-label">Signed in as</span><strong>${escapeHtml(identity.displayName)}</strong>${secondaryIdentity}</div></div><form method="post" action=""><input type="hidden" name="confirmation_token" value="${escapeHtml(confirmationToken)}">${handoffInput}<button class="connect" type="submit" name="decision" value="approve">Allow connection</button><button class="deny" type="submit" name="decision" value="deny">Not me</button></form></section><p class="disclosure">Authentication secured by Standard Agents</p></main></body></html>`;
|
|
87093
87096
|
return new Response(html, {
|
|
87094
87097
|
headers: {
|
|
87095
87098
|
"Content-Type": "text/html; charset=utf-8",
|