@standardagents/builder 0.25.2 → 0.25.3
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 +43 -1
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/{ApiKeysView-C_QyBNy2.js → ApiKeysView-B9XLopSb.js} +1 -1
- package/dist/client/{CenteredContentView-c7OLhxvd.js → CenteredContentView-Bwv4MVSC.js} +1 -1
- package/dist/client/CompositionView-DJOtNN7f.js +32 -0
- package/dist/client/{ConfirmDialog.vue_vue_type_script_setup_true_lang-DQIo2wlE.js → ConfirmDialog.vue_vue_type_script_setup_true_lang-55dXt19T.js} +1 -1
- package/dist/client/{CopyButton.vue_vue_type_script_setup_true_lang-q-A7DQTq.js → CopyButton.vue_vue_type_script_setup_true_lang-B6NqQmW9.js} +1 -1
- package/dist/client/{DataTable.vue_vue_type_script_setup_true_lang-B0UNyBiO.js → DataTable.vue_vue_type_script_setup_true_lang-0cbPVIIz.js} +1 -1
- package/dist/client/{JsonViewer-DrA7M9_g.js → JsonViewer-B7yHhxqP.js} +1 -1
- package/dist/client/{LoginView-BxbNgfzz.js → LoginView-mY9OytK6.js} +1 -1
- package/dist/client/{MarketplaceView-DXrtN6-0.js → MarketplaceView-B9Z9YMuB.js} +1 -1
- package/dist/client/{Modal.vue_vue_type_script_setup_true_lang-CLZzFYMW.js → Modal.vue_vue_type_script_setup_true_lang-DEVCRbXl.js} +1 -1
- package/dist/client/{ModelModal.vue_vue_type_script_setup_true_lang-BaLZApRs.js → ModelModal.vue_vue_type_script_setup_true_lang-FxEBZ3A8.js} +1 -1
- package/dist/client/{ModelsView-CVtPgAVZ.js → ModelsView-DTU8pk-T.js} +1 -1
- package/dist/client/{PromptEditView-Dhc0rBHD.js → PromptEditView-BAKoULxX.js} +1 -1
- package/dist/client/PromptModal-CoinSKIM.js +1 -0
- package/dist/client/{PromptsView-y3yvzkjM.js → PromptsView-DIkj3q-o.js} +1 -1
- package/dist/client/{ProvidersView-DN-SmDPF.js → ProvidersView-B8A6ezDR.js} +2 -2
- package/dist/client/ThreadInspectorPane.vue_vue_type_script_setup_true_lang-CvssvzLz.js +22 -0
- package/dist/client/{ThreadsView-B1Xo2bP0.js → ThreadsView-DGCVdDej.js} +1 -1
- package/dist/client/{ToolsView-DYj_Mk9L.js → ToolsView-CC-WsZet.js} +1 -1
- package/dist/client/{UsersView-BLNNFDUM.js → UsersView-U3Stwxui.js} +1 -1
- package/dist/client/{VariablesView-D4-5tNwt.js → VariablesView-0-a1F4cn.js} +1 -1
- package/dist/client/assets/{ThreadInspectorPane-CGrBd6US.css → ThreadInspectorPane-ouC_RyKA.css} +1 -1
- package/dist/client/assets/{index-B38KmIlM.css → index-Ca3he3fq.css} +1 -1
- package/dist/client/index-4Zwz6zXD.js +6 -0
- package/dist/client/index.html +2 -2
- package/package.json +5 -5
- package/dist/client/CompositionView-DqKI6dJ9.js +0 -32
- package/dist/client/PromptModal-DXt6M359.js +0 -1
- package/dist/client/ThreadInspectorPane.vue_vue_type_script_setup_true_lang-lIW3rtYB.js +0 -22
- package/dist/client/index-0OxNDXyK.js +0 -6
package/dist/built-in-routes.js
CHANGED
|
@@ -66011,7 +66011,26 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
|
|
|
66011
66011
|
});
|
|
66012
66012
|
|
|
66013
66013
|
// src/api/diagnostics.get.ts
|
|
66014
|
-
|
|
66014
|
+
function isFetcher(value) {
|
|
66015
|
+
return !!value && typeof value.fetch === "function";
|
|
66016
|
+
}
|
|
66017
|
+
async function iconAssetExists(icon, requestUrl2, env2) {
|
|
66018
|
+
const assetUrl = new URL(icon, requestUrl2);
|
|
66019
|
+
const assets = env2.ASSETS;
|
|
66020
|
+
if (isFetcher(assets)) {
|
|
66021
|
+
try {
|
|
66022
|
+
const res = await assets.fetch(new Request(assetUrl.toString()));
|
|
66023
|
+
if (res.ok) return true;
|
|
66024
|
+
} catch {
|
|
66025
|
+
}
|
|
66026
|
+
}
|
|
66027
|
+
try {
|
|
66028
|
+
return (await fetch(assetUrl.toString())).ok;
|
|
66029
|
+
} catch {
|
|
66030
|
+
return true;
|
|
66031
|
+
}
|
|
66032
|
+
}
|
|
66033
|
+
var diagnostics_get_default = defineController2(async ({ req, env: env2, tools, prompts, promptNames, agents, agentNames }) => {
|
|
66015
66034
|
const warnings = [];
|
|
66016
66035
|
const toolNameSources = /* @__PURE__ */ new Map();
|
|
66017
66036
|
if (tools) {
|
|
@@ -66045,6 +66064,29 @@ var diagnostics_get_default = defineController2(async ({ tools, prompts, promptN
|
|
|
66045
66064
|
}
|
|
66046
66065
|
}
|
|
66047
66066
|
}
|
|
66067
|
+
if (agents && agentNames) {
|
|
66068
|
+
for (const name15 of agentNames) {
|
|
66069
|
+
try {
|
|
66070
|
+
const definition = await agents[name15]?.();
|
|
66071
|
+
const icon = definition?.icon;
|
|
66072
|
+
if (!icon || !icon.startsWith("/")) continue;
|
|
66073
|
+
if (!await iconAssetExists(icon, req.url, env2)) {
|
|
66074
|
+
warnings.push({
|
|
66075
|
+
type: "agent_icon_missing",
|
|
66076
|
+
message: `Agent "${name15}" icon "${icon}" does not resolve to a file`,
|
|
66077
|
+
details: {
|
|
66078
|
+
// `name` keys the banner's dismissal/render key per agent.
|
|
66079
|
+
name: name15,
|
|
66080
|
+
agent: name15,
|
|
66081
|
+
icon,
|
|
66082
|
+
hint: `Add the file to your project's public directory (public${icon}) or use a full URL or data URI.`
|
|
66083
|
+
}
|
|
66084
|
+
});
|
|
66085
|
+
}
|
|
66086
|
+
} catch {
|
|
66087
|
+
}
|
|
66088
|
+
}
|
|
66089
|
+
}
|
|
66048
66090
|
for (const [name15, sources] of toolNameSources) {
|
|
66049
66091
|
if (sources.size > 1) {
|
|
66050
66092
|
warnings.push({
|