@standardagents/builder 0.12.2 → 0.12.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 +14 -14
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/index.js +6 -6
- package/dist/index.js +16 -19
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +0 -3
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
package/dist/built-in-routes.js
CHANGED
|
@@ -23265,8 +23265,8 @@ var index_post_default4 = defineController(async ({ req, env: env2 }) => {
|
|
|
23265
23265
|
|
|
23266
23266
|
// src/api/agents/[name].get.ts
|
|
23267
23267
|
var name_get_default = defineController(async ({ params, agents, prompts, promptNames }) => {
|
|
23268
|
-
const
|
|
23269
|
-
if (!agents || !agents[name]) {
|
|
23268
|
+
const name = params.name ? decodeURIComponent(params.name) : void 0;
|
|
23269
|
+
if (!name || !agents || !agents[name]) {
|
|
23270
23270
|
return Response.json({ error: "Agent not found" }, { status: 404 });
|
|
23271
23271
|
}
|
|
23272
23272
|
try {
|
|
@@ -23366,7 +23366,7 @@ var id_delete_default = defineController(async ({ req, env: env2, params }) => {
|
|
|
23366
23366
|
|
|
23367
23367
|
// src/api/models/[name].get.ts
|
|
23368
23368
|
var name_get_default2 = defineController(async ({ params, models }) => {
|
|
23369
|
-
const
|
|
23369
|
+
const name = params.name ? decodeURIComponent(params.name) : void 0;
|
|
23370
23370
|
if (!name) {
|
|
23371
23371
|
return Response.json({ error: "Model name is required" }, { status: 400 });
|
|
23372
23372
|
}
|
|
@@ -25048,8 +25048,8 @@ function normalizePromptContent2(prompt) {
|
|
|
25048
25048
|
return prompt;
|
|
25049
25049
|
}
|
|
25050
25050
|
var name_get_default3 = defineController(async ({ params, prompts, models, modelNames }) => {
|
|
25051
|
-
const
|
|
25052
|
-
if (!prompts || !prompts[name]) {
|
|
25051
|
+
const name = params.name ? decodeURIComponent(params.name) : void 0;
|
|
25052
|
+
if (!name || !prompts || !prompts[name]) {
|
|
25053
25053
|
return Response.json({ error: "Prompt not found" }, { status: 404 });
|
|
25054
25054
|
}
|
|
25055
25055
|
try {
|
|
@@ -25351,8 +25351,8 @@ function toJSONSchema5(schema) {
|
|
|
25351
25351
|
}
|
|
25352
25352
|
}
|
|
25353
25353
|
var name_get_default4 = defineController(async ({ params, tools }) => {
|
|
25354
|
-
const
|
|
25355
|
-
if (!tools || !tools[name]) {
|
|
25354
|
+
const name = params.name ? decodeURIComponent(params.name) : void 0;
|
|
25355
|
+
if (!name || !tools || !tools[name]) {
|
|
25356
25356
|
return Response.json({ error: "Tool not found" }, { status: 404 });
|
|
25357
25357
|
}
|
|
25358
25358
|
try {
|
|
@@ -26470,8 +26470,8 @@ function extractTenvsFromSchema(tenvSchema) {
|
|
|
26470
26470
|
return tenvs;
|
|
26471
26471
|
}
|
|
26472
26472
|
var tenvs_get_default = defineController(async ({ params, agents, prompts, promptNames, models, modelNames }) => {
|
|
26473
|
-
const
|
|
26474
|
-
if (!agents || !agents[agentName]) {
|
|
26473
|
+
const agentName = params.name ? decodeURIComponent(params.name) : void 0;
|
|
26474
|
+
if (!agentName || !agents || !agents[agentName]) {
|
|
26475
26475
|
return Response.json({ error: "Agent not found" }, { status: 404 });
|
|
26476
26476
|
}
|
|
26477
26477
|
const discoveredTenvs = [];
|
|
@@ -26602,7 +26602,7 @@ var API_KEY_ENV_VARS = {
|
|
|
26602
26602
|
google: "GOOGLE_API_KEY"
|
|
26603
26603
|
};
|
|
26604
26604
|
var curl_data_get_default = defineController(async ({ params, models, env: env2 }) => {
|
|
26605
|
-
const
|
|
26605
|
+
const name = params.name ? decodeURIComponent(params.name) : void 0;
|
|
26606
26606
|
if (!name) {
|
|
26607
26607
|
return Response.json({ error: "Model name is required" }, { status: 400 });
|
|
26608
26608
|
}
|
|
@@ -27028,8 +27028,8 @@ function extractTenvsFromSchema2(tenvSchema) {
|
|
|
27028
27028
|
return tenvs;
|
|
27029
27029
|
}
|
|
27030
27030
|
var tenvs_get_default2 = defineController(async ({ params, prompts, models, modelNames }) => {
|
|
27031
|
-
const
|
|
27032
|
-
if (!prompts || !prompts[promptName]) {
|
|
27031
|
+
const promptName = params.name ? decodeURIComponent(params.name) : void 0;
|
|
27032
|
+
if (!promptName || !prompts || !prompts[promptName]) {
|
|
27033
27033
|
return Response.json({ error: "Prompt not found" }, { status: 404 });
|
|
27034
27034
|
}
|
|
27035
27035
|
const allTenvs = [];
|
|
@@ -27134,7 +27134,7 @@ function placeholderSvg(name) {
|
|
|
27134
27134
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><circle cx="12" cy="12" r="10" fill="#e5e7eb"/><text x="12" y="16" text-anchor="middle" font-size="12" font-family="system-ui" fill="#6b7280">${letter}</text></svg>`;
|
|
27135
27135
|
}
|
|
27136
27136
|
var icon_get_default = defineController(async ({ params, url }) => {
|
|
27137
|
-
const
|
|
27137
|
+
const providerName = params.name ? decodeURIComponent(params.name) : void 0;
|
|
27138
27138
|
const modelId = url.searchParams.get("model") || void 0;
|
|
27139
27139
|
if (!providerName) {
|
|
27140
27140
|
return Response.json({ error: "Provider name is required" }, { status: 400 });
|
|
@@ -27213,7 +27213,7 @@ function extractTenvsFromSchema3(tenvSchema) {
|
|
|
27213
27213
|
return tenvs;
|
|
27214
27214
|
}
|
|
27215
27215
|
var tools_get_default2 = defineController(async ({ params, url, env: env2 }) => {
|
|
27216
|
-
const
|
|
27216
|
+
const providerName = params.name ? decodeURIComponent(params.name) : void 0;
|
|
27217
27217
|
const modelId = url.searchParams.get("model") || void 0;
|
|
27218
27218
|
if (!providerName) {
|
|
27219
27219
|
return Response.json({ error: "Provider name is required" }, { status: 400 });
|