@standardagents/builder 0.45.8 → 0.45.9
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/README.md +1 -0
- package/dist/built-in-routes.js +1 -1
- package/dist/client/{ApiKeysView-BcqUvH1N.js → ApiKeysView-BwDYd2nU.js} +1 -1
- package/dist/client/{CodeEditor-C9bQ4Z3b.js → CodeEditor-xwWkV1-c.js} +3 -3
- package/dist/client/CompositionView-D1bxg5aS.js +72 -0
- package/dist/client/{CopyButton.vue_vue_type_script_setup_true_lang-DX9-shOV.js → CopyButton.vue_vue_type_script_setup_true_lang-CLj4kYi5.js} +1 -1
- package/dist/client/{DataTable.vue_vue_type_script_setup_true_lang-B85c2lO4.js → DataTable.vue_vue_type_script_setup_true_lang-CkugFRtR.js} +1 -1
- package/dist/client/{DefinitionSource-Bpge2u90.js → DefinitionSource-BbqSJUnU.js} +3 -3
- package/dist/client/{DefinitionUsedBy.vue_vue_type_script_setup_true_lang-BVz1zKTE.js → DefinitionUsedBy.vue_vue_type_script_setup_true_lang-BMGuiEk7.js} +1 -1
- package/dist/client/{LoginView-rym24zTR.js → LoginView-0OVTMU2S.js} +1 -1
- package/dist/client/{MarketplaceView-iAUImVOg.js → MarketplaceView-BuQxQaUp.js} +1 -1
- package/dist/client/{Modal.vue_vue_type_script_setup_true_lang-DOTIR3w5.js → Modal.vue_vue_type_script_setup_true_lang-UlrwSOT8.js} +1 -1
- package/dist/client/{ModelsView-D-GX47Hw.js → ModelsView-B9nRyP5Y.js} +1 -1
- package/dist/client/{PromptView-C_KoH5Mj.js → PromptView-3MXx3DhS.js} +1 -1
- package/dist/client/{PromptsView-CDiHQ75x.js → PromptsView-CaS5lNVN.js} +1 -1
- package/dist/client/{ProvidersView-COIzWC9J.js → ProvidersView-jwLDm5PC.js} +1 -1
- package/dist/client/{ToolsView-DgQIHbKB.js → ToolsView-DfaKB3DJ.js} +1 -1
- package/dist/client/{UiButton.vue_vue_type_script_setup_true_lang-BezveAaR.js → UiButton.vue_vue_type_script_setup_true_lang-CVyrFcWg.js} +1 -1
- package/dist/client/{UiEmptyState.vue_vue_type_script_setup_true_lang-n9hcWKvI.js → UiEmptyState.vue_vue_type_script_setup_true_lang-BD_dt9VV.js} +1 -1
- package/dist/client/{UiFilterMenu.vue_vue_type_script_setup_true_lang-CcYZv4bj.js → UiFilterMenu.vue_vue_type_script_setup_true_lang-BE1kHACC.js} +1 -1
- package/dist/client/{UiPageFrame-CeuT1rer.js → UiPageFrame-CP9KRIIM.js} +1 -1
- package/dist/client/{UsersView-C0283pU_.js → UsersView-SCr3Ls5P.js} +1 -1
- package/dist/client/{VariablesView-DljSo_RS.js → VariablesView-DGyxj9Ow.js} +1 -1
- package/dist/client/assets/{index-BBzCGX26.css → index-D0bcj_gk.css} +1 -1
- package/dist/client/{form-errors-cxIParHK.js → form-errors-D9RXsjd2.js} +1 -1
- package/dist/client/{index-CgCqkjVa.js → index-BkfWiMo-.js} +1 -1
- package/dist/client/index-BwlCQIem.js +5 -0
- package/dist/client/{index-er6dD-sT.js → index-C4-LP0pJ.js} +1 -1
- package/dist/client/{index-BEnYvzGi.js → index-CDCQWHe2.js} +1 -1
- package/dist/client/{index-CzsbmDuv.js → index-ChLk4ONU.js} +1 -1
- package/dist/client/{index-BFKj1V0c.js → index-CmfTs1yz.js} +1 -1
- package/dist/client/{index-C7gIQnkU.js → index-CwBC9sTn.js} +1 -1
- package/dist/client/{index-Dj5tjGFV.js → index-D4_R8FnR.js} +1 -1
- package/dist/client/{index-DfVgpfCm.js → index-DcCqDioc.js} +1 -1
- package/dist/client/{index-BcQ5zdWM.js → index-b4VUAUvJ.js} +1 -1
- package/dist/client/{index-DvSYq8lz.js → index-jI_N1y04.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/{schemaArguments-B2ppewpv.js → schemaArguments-DnkXBmpq.js} +1 -1
- package/dist/client/{toolReference-B96xiDXn.js → toolReference-Dnhl8D6k.js} +1 -1
- package/dist/client/{useDefinitionUsage-BxmZT4nk.js → useDefinitionUsage-CkISuMRg.js} +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin.d.ts +10 -0
- package/dist/plugin.js +20 -0
- package/dist/plugin.js.map +1 -1
- package/package.json +7 -6
- package/dist/client/CompositionView-GlnAWxhl.js +0 -72
- package/dist/client/index-DnlG7hIl.js +0 -5
package/README.md
CHANGED
|
@@ -44,4 +44,5 @@ Guides, reference, and examples are at [standardagents.ai](https://standardagent
|
|
|
44
44
|
|
|
45
45
|
You may use this package for local development, and in production on Standard Agents hosting.
|
|
46
46
|
The agents you build are yours and are portable to any runtime that conforms to the [Standard Agent Specification](https://standardagentspec.com).
|
|
47
|
+
Deploying a project that uses this package to your own Cloudflare account or to any other host is outside the license. The `builder()` plugin stops a production build (`vite build`) outside the Standard Agents platform. To deploy, push to the project's Standard Agents repository (`git push`) or run `npx @standardagents/cli@latest deploy`.
|
|
47
48
|
See [LICENSE](./LICENSE) for the terms.
|
package/dist/built-in-routes.js
CHANGED
|
@@ -109325,7 +109325,7 @@ var definition_sources_get_default = defineController2(async (context) => {
|
|
|
109325
109325
|
});
|
|
109326
109326
|
|
|
109327
109327
|
// src/version.ts
|
|
109328
|
-
var BUILDER_VERSION = "0.45.
|
|
109328
|
+
var BUILDER_VERSION = "0.45.9".length > 0 ? "0.45.9" : "dev";
|
|
109329
109329
|
|
|
109330
109330
|
// src/api/diagnostics.get.ts
|
|
109331
109331
|
init_LLMRequest();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as K,n as B}from"./settingsData-DPy9F9nQ.js";import{e as h,E as D,b as p}from"./index-
|
|
1
|
+
import{f as K,n as B}from"./settingsData-DPy9F9nQ.js";import{e as h,E as D,b as p}from"./index-BwlCQIem.js";import{d as N,k as F,e as V,l as s,g as z,n as U,x as j,r as n,o as J,b as O,D as t,E as Y,A as o,y as f,z as E,ab as L,ae as R,f as l}from"./vue-CnrejLtC.js";import{r as G}from"./formkit-B1fIUqP-.js";import{c as I,a as H}from"./form-errors-D9RXsjd2.js";import{_ as Q}from"./DataTable.vue_vue_type_script_setup_true_lang-CkugFRtR.js";import{_ as $}from"./Modal.vue_vue_type_script_setup_true_lang-UlrwSOT8.js";import{_ as W}from"./CopyButton.vue_vue_type_script_setup_true_lang-CLj4kYi5.js";import{_ as C}from"./UiButton.vue_vue_type_script_setup_true_lang-CVyrFcWg.js";import{_ as P}from"./useClipboardCopy-DURjq7gM.js";import{u as X}from"./useActionFeedback-BrPTIt_1.js";import"./vendor-L6I0G397.js";import"./syntax-XeetdF8c.js";import"./UiFilterMenu.vue_vue_type_script_setup_true_lang-BE1kHACC.js";import"./UiEmptyState.vue_vue_type_script_setup_true_lang-BD_dt9VV.js";import"./UiPageFrame-CP9KRIIM.js";const Z=N({__name:"UiCodeBlock",props:{inline:{type:Boolean,default:!0}},setup(v){return(i,d)=>(V(),F(j(v.inline?"code":"pre"),{class:U(["font-mono text-xs bg-neutral-100 dark:bg-neutral-800 rounded",v.inline?"px-1.5 py-0.5":"px-3 py-2 overflow-x-auto"])},{default:s(()=>[z(i.$slots,"default")]),_:3},8,["class"]))}}),ee={class:"flex h-full min-h-0 flex-col"},ae={class:"flex justify-end gap-2"},te={class:"space-y-4"},oe={class:"flex gap-2"},se=["value"],le={class:"flex justify-end mt-4"},ge=N({__name:"ApiKeysView",setup(v){const i=n(!1),d=n(!1),k=n(!1),y=n(""),u=n(!1),m=n(null),{feedback:b,setFeedback:A,clearFeedback:_}=X(),w=n([]),T=[{key:"name",label:"Name",width:"w-1/3"},{key:"keyPreview",label:"API key",width:"w-1/3",html:!0,formatter:a=>`<code class="bg-neutral-100 dark:bg-neutral-800 px-2 py-1 rounded text-sm">${a}</code>`},{key:"createdAt",label:"Created",width:"w-1/6",formatter:a=>K(a)},{key:"lastUsedAt",label:"Last used",width:"w-1/6",formatter:a=>a?K(a):"Never"}],q=[{icon:"delete",label:"Delete",confirm:!0,confirmMessage:"Are you sure you want to delete this API key? This action cannot be undone.",handler:async a=>{await S(a.id)}}],g=async()=>{k.value=!0,_();try{const a=await p.request("/api/api-keys"),e=await p.readJson(a);w.value=B(e.keys)}catch(a){A("error",h(a)),w.value=[]}finally{k.value=!1}},M=async a=>{u.value=!0,_(),I(m);try{const e=await p.request("/api/api-keys",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(a)}),c=await p.readJson(e);y.value=c.key||"",x(),d.value=!0,await g()}catch(e){H(e,m)}finally{u.value=!1}},x=()=>{I(m),G("add-api-key-form"),i.value=!1},S=async a=>{_();try{await p.request(`/api/api-keys/${a}`,{method:"DELETE"}),await g(),A("success","API key deleted.")}catch(e){A("error",h(e))}};return J(()=>{g()}),(a,e)=>{const c=L("FormKit");return V(),O("div",ee,[t(Q,{title:"API keys",description:"Manage API keys for programmatic access","primary-action":{label:"Create API key",handler:()=>i.value=!0},columns:T,data:w.value,actions:q,loading:k.value,"empty-message":o(D).tables.apiKeys},Y({_:2},[o(b)?{name:"notices",fn:s(()=>[t(o(P),{variant:o(b).variant},{default:s(()=>[f(E(o(h)(o(b).message)),1)]),_:1},8,["variant"])]),key:"0"}:void 0]),1032,["primary-action","data","loading","empty-message"]),t($,{modelValue:i.value,"onUpdate:modelValue":e[1]||(e[1]=r=>i.value=r),title:"Create API key",onClose:x},{footer:s(()=>[l("div",ae,[t(o(C),{variant:"secondary",disabled:u.value,onClick:x},{default:s(()=>[...e[5]||(e[5]=[f(" Cancel ",-1)])]),_:1},8,["disabled"]),t(o(C),{type:"submit",form:"add-api-key-form",loading:u.value},{default:s(()=>[...e[6]||(e[6]=[f(" Create key ",-1)])]),_:1},8,["loading"])])]),default:s(()=>[t(c,{id:"add-api-key-form",type:"form",actions:!1,disabled:u.value,onSubmit:M,onNode:e[0]||(e[0]=r=>m.value=r)},{default:s(()=>[t(o(R),{node:m.value||void 0},null,8,["node"]),t(c,{type:"text",name:"name",label:"Name",placeholder:"e.g., Production API Key",help:"A descriptive name to help you identify this key",validation:"required","validation-messages":{required:"Name is required"}})]),_:1},8,["disabled"])]),_:1},8,["modelValue"]),t($,{modelValue:d.value,"onUpdate:modelValue":e[3]||(e[3]=r=>d.value=r),title:"API key created",onClose:e[4]||(e[4]=r=>d.value=!1)},{default:s(()=>[l("div",te,[t(o(P),{variant:"warning"},{default:s(()=>[...e[7]||(e[7]=[l("p",{class:"font-medium"},"Copy this key now.",-1),l("p",{class:"text-sm mt-1"}," This dialog is the only place the key is shown. A lost key needs a replacement key. ",-1)])]),_:1}),l("div",null,[e[8]||(e[8]=l("label",{class:"block text-sm font-medium mb-2"},"Your new API key:",-1)),l("div",oe,[l("input",{value:y.value,type:"text",readonly:"",class:"flex-1 px-3 py-2 border border-neutral-300 dark:border-neutral-600 rounded-md dark:bg-neutral-700 font-mono text-sm"},null,8,se),t(W,{content:y.value,variant:"ghost"},null,8,["content"])])]),t(o(P),{variant:"info"},{default:s(()=>[e[9]||(e[9]=l("p",{class:"text-sm"}," Use this key in the Authorization header of your API requests: ",-1)),t(o(Z),{inline:!1,class:"mt-2"},{default:s(()=>[f(" Authorization: Bearer "+E(y.value),1)]),_:1})]),_:1}),l("div",le,[t(o(C),{onClick:e[2]||(e[2]=r=>d.value=!1)},{default:s(()=>[...e[10]||(e[10]=[f(" Done ",-1)])]),_:1})])])]),_:1},8,["modelValue"])])}}});export{ge as default};
|