contentrain 0.1.3 → 0.2.0
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/index.mjs +2 -2
- package/dist/{init-D5L_7bKE.mjs → init-BbtT9_sl.mjs} +152 -38
- package/dist/serve-ui/assets/{AgentPromptGroup.vue_vue_type_script_setup_true_lang-BMp7LstJ.js → AgentPromptGroup.vue_vue_type_script_setup_true_lang-Ulb-9Tr3.js} +1 -1
- package/dist/serve-ui/assets/AppLayout-C91DN08z.js +21 -0
- package/dist/serve-ui/assets/{BranchDetailPage-0mjYT8hQ.js → BranchDetailPage-BokOnhE7.js} +1 -1
- package/dist/serve-ui/assets/{BranchesPage-CD87MWWL.js → BranchesPage-CSwikNkd.js} +1 -1
- package/dist/serve-ui/assets/{CollapsibleTrigger.vue_vue_type_script_setup_true_lang-J5CJUyNC.js → CollapsibleTrigger.vue_vue_type_script_setup_true_lang-BRzXVXDG.js} +1 -1
- package/dist/serve-ui/assets/{Collection-Ba6qM261.js → Collection-DTB4xCCE.js} +1 -1
- package/dist/serve-ui/assets/ConfigProvider-Dvd7YoEV.js +1 -0
- package/dist/serve-ui/assets/{ContentListPage-BOo6tllk.js → ContentListPage-DF-LjAaS.js} +1 -1
- package/dist/serve-ui/assets/{ContentPage-s5AH95JG.js → ContentPage-BABg8pgn.js} +1 -1
- package/dist/serve-ui/assets/{DashboardPage-RZb06SoC.js → DashboardPage-BFLFEJNZ.js} +1 -1
- package/dist/serve-ui/assets/{DialogTitle.vue_vue_type_script_setup_true_lang-CmziXzbX.js → DialogTitle.vue_vue_type_script_setup_true_lang-2sQAJn_Y.js} +1 -1
- package/dist/serve-ui/assets/{Input.vue_vue_type_script_setup_true_lang-BM6hi7u6.js → Input.vue_vue_type_script_setup_true_lang-BveqfZsR.js} +1 -1
- package/dist/serve-ui/assets/{ModelDetailPage-BKq0bvlh.js → ModelDetailPage-_TIV9itx.js} +1 -1
- package/dist/serve-ui/assets/{ModelsPage-B6o55zfN.js → ModelsPage-DrQemHQ-.js} +1 -1
- package/dist/serve-ui/assets/{NormalizePage-BNbCNf4k.js → NormalizePage-Cde8vdk2.js} +1 -1
- package/dist/serve-ui/assets/{PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js → PageHeader.vue_vue_type_script_setup_true_lang-CEnjONvd.js} +1 -1
- package/dist/serve-ui/assets/{Presence-DnRF6qHR.js → Presence-BXKCIfUk.js} +1 -1
- package/dist/serve-ui/assets/{Separator.vue_vue_type_script_setup_true_lang-KWrsPkDE.js → Separator.vue_vue_type_script_setup_true_lang-1pFZ2PR2.js} +1 -1
- package/dist/serve-ui/assets/{StudioHint.vue_vue_type_script_setup_true_lang-C0ksRF07.js → StudioHint.vue_vue_type_script_setup_true_lang-C6JN5tPq.js} +1 -1
- package/dist/serve-ui/assets/{TrustBadge.vue_vue_type_script_setup_true_lang-CPVK2uFu.js → TrustBadge.vue_vue_type_script_setup_true_lang-KRiTnLVk.js} +1 -1
- package/dist/serve-ui/assets/{ValidatePage-Dk5IdJ1E.js → ValidatePage-DRFAySNR.js} +1 -1
- package/dist/serve-ui/assets/{arrow-down-Cil3QmGC.js → arrow-down-BAJwpryD.js} +1 -1
- package/dist/serve-ui/assets/{arrow-left-BgRAFAbm.js → arrow-left-DANf_wrK.js} +1 -1
- package/dist/serve-ui/assets/{book-marked-D_7zWMoS.js → book-marked-DS8FXgjz.js} +1 -1
- package/dist/serve-ui/assets/{book-open-BMIAduGI.js → book-open-DnH5T78M.js} +1 -1
- package/dist/serve-ui/assets/{box-DTosQIFW.js → box-UJk5SvJJ.js} +1 -1
- package/dist/serve-ui/assets/{chevron-down-BU7Oh9xS.js → chevron-down-C1nYx5Eu.js} +1 -1
- package/dist/serve-ui/assets/{chevron-right-BrS8cLgS.js → chevron-right-XnJVrezx.js} +1 -1
- package/dist/serve-ui/assets/{content-9wt2LBkC.js → content-Ctqretwl.js} +1 -1
- package/dist/serve-ui/assets/{database-wAPnOXAq.js → database-Wd_i2bM1.js} +1 -1
- package/dist/serve-ui/assets/{file-code-DbO-oPNK.js → file-code-ScWZN40B.js} +1 -1
- package/dist/serve-ui/assets/{file-text-B83xaNeI.js → file-text-J3Wzwieh.js} +1 -1
- package/dist/serve-ui/assets/{git-branch-D_wEQy04.js → git-branch-DqEFTZDt.js} +1 -1
- package/dist/serve-ui/assets/{git-merge-CK4R9if8.js → git-merge-Bmz-MVBm.js} +1 -1
- package/dist/serve-ui/assets/{hash-DOFJZrkk.js → hash-pCwLSzjB.js} +1 -1
- package/dist/serve-ui/assets/{index-cUml-HE9.js → index-De_z0714.js} +1 -1
- package/dist/serve-ui/assets/{index-BL1I-H3q.js → index-RDdffBTh.js} +2 -2
- package/dist/serve-ui/assets/{languages-CXKcy1-I.js → languages-CQqNMim-.js} +1 -1
- package/dist/serve-ui/assets/{plus-yXR6ZCCF.js → plus-Cw1OnTR2.js} +1 -1
- package/dist/serve-ui/assets/{project-Cr3_1TVE.js → project-BlZcHJw6.js} +1 -1
- package/dist/serve-ui/assets/{scan-search-DHnQpSxc.js → scan-search-UJ-_oiOR.js} +1 -1
- package/dist/serve-ui/assets/{settings-DQbK7D0N.js → settings-Dnm4yTIj.js} +1 -1
- package/dist/serve-ui/assets/{shield-check-WNk6I8NY.js → shield-check-B67ELGUT.js} +1 -1
- package/dist/serve-ui/assets/{trash-2-B7ngAUqJ.js → trash-2-B1QgZW1G.js} +1 -1
- package/dist/serve-ui/assets/useDirection-B4S5kPsI.js +1 -0
- package/dist/serve-ui/assets/{useId-Bc2_q_4f.js → useId-CPFWZ4Bo.js} +1 -1
- package/dist/serve-ui/assets/{useNonce-BJjEh3mR.js → useNonce-BffIzuhE.js} +1 -1
- package/dist/serve-ui/assets/{useWatch-CEXwnJFx.js → useWatch-B2FLRWr8.js} +1 -1
- package/dist/serve-ui/index.html +1 -1
- package/package.json +5 -5
- package/dist/serve-ui/assets/AppLayout-DVU3pVVx.js +0 -16
- package/dist/serve-ui/assets/ConfigProvider-RwBwhpvF.js +0 -1
- package/dist/serve-ui/assets/useDirection-JtiaofuP.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as E}from"./model-empty-state-B6AM4bil.js";import{a as I,p as a,j as i,e as f,u as e,q as t,X as M,g as u,B as s,s as p,F as g,x as w,r as D,h as k,o as l,y as x,z as _,b as N,A as q,C as Q}from"./index-
|
|
1
|
+
import{_ as E}from"./model-empty-state-B6AM4bil.js";import{a as I,p as a,j as i,e as f,u as e,q as t,X as M,g as u,B as s,s as p,F as g,x as w,r as D,h as k,o as l,y as x,z as _,b as N,A as q,C as Q}from"./index-RDdffBTh.js";import{u as R}from"./project-BlZcHJw6.js";import{_ as U}from"./PageHeader.vue_vue_type_script_setup_true_lang-CEnjONvd.js";import{_ as X}from"./StudioHint.vue_vue_type_script_setup_true_lang-C6JN5tPq.js";import{_ as O,a as y}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Ulb-9Tr3.js";import{_ as $}from"./index-De_z0714.js";import{S as B,_ as G}from"./Input.vue_vue_type_script_setup_true_lang-BveqfZsR.js";import{d as J}from"./useWatch-B2FLRWr8.js";import{B as K}from"./book-open-DnH5T78M.js";import{F as W}from"./file-code-ScWZN40B.js";import{F as Y}from"./file-text-J3Wzwieh.js";import{B as Z}from"./box-UJk5SvJJ.js";import{H}from"./hash-pCwLSzjB.js";import{L as P}from"./languages-CQqNMim-.js";const ee={class:"hidden sm:inline"},te={class:"px-6 py-6 space-y-6"},se={key:0,class:"flex items-center gap-2"},oe={class:"relative flex-1"},re={key:1,class:"flex items-center justify-center py-20"},ne={key:2,class:"flex flex-col items-center py-16 text-center"},le={class:"text-lg font-semibold text-foreground"},ae={class:"mt-2 max-w-sm text-sm text-muted-foreground"},ie={key:3,class:"flex flex-col items-center py-16 text-center"},de={class:"text-lg font-semibold text-foreground"},me={class:"mt-2 text-sm text-muted-foreground"},ce={class:"font-medium"},ue={key:0,class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3"},pe=["onClick"],fe={class:"min-w-0 flex-1"},ge={class:"flex items-center gap-2"},xe={class:"font-medium text-foreground group-hover:text-primary transition-colors truncate"},_e={class:"mt-1.5 flex items-center gap-3 text-xs text-muted-foreground"},ve={class:"inline-flex items-center gap-1 text-sky-600"},he={class:"mb-3 flex items-center gap-2"},ye={class:"text-sm font-medium text-muted-foreground"},be={class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3 mb-6"},ke=["onClick"],Ce={class:"min-w-0 flex-1"},ze={class:"flex items-center gap-2"},we={class:"font-medium text-foreground group-hover:text-primary transition-colors truncate"},$e={class:"mt-1.5 flex items-center gap-3 text-xs text-muted-foreground"},Be={class:"inline-flex items-center gap-1 text-sky-600"},je={class:"flex items-center gap-4 text-xs text-muted-foreground"},Le={key:0,class:"size-0.5 rounded-full bg-muted-foreground/40"},Ve={key:1},Ge=I({__name:"ModelsPage",setup(Fe){const o=J("serve-ui-texts").locale("en").get(),C=R(),j=Q(),m=D(""),b=D(!1),v=k(()=>{var d;return((d=C.status)==null?void 0:d.models)??[]}),h=k(()=>{const d=m.value.toLowerCase().trim();return d?v.value.filter(r=>r.id.toLowerCase().includes(d)||r.domain.toLowerCase().includes(d)||r.kind.toLowerCase().includes(d)):v.value}),L=k(()=>{const d={};for(const r of h.value){const n=r.domain||"default";d[n]||(d[n]=[]),d[n].push(r)}return d}),T=k(()=>Object.keys(L.value).length>1),V={collection:Z,singleton:Y,document:W,dictionary:K},F={collection:"bg-primary/10 text-primary",singleton:"bg-sky-500/10 text-sky-600",document:"bg-emerald-500/10 text-emerald-600",dictionary:"bg-amber-500/10 text-amber-600"},S={collection:"bg-primary/10 text-primary border-primary/20",singleton:"bg-sky-500/10 text-sky-600 border-sky-500/20",document:"bg-emerald-500/10 text-emerald-600 border-emerald-500/20",dictionary:"bg-amber-500/10 text-amber-600 border-amber-500/20"};function A(){m.value="",b.value=!1}return(d,r)=>(l(),a("div",null,[i(U,{title:e(o)["models.models"],description:e(o)["models.content-model-definitions"]},{actions:f(()=>[v.value.length>0?(l(),a("button",{key:0,class:"flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",onClick:r[0]||(r[0]=n=>b.value=!b.value)},[i(e(B),{class:"size-3.5"}),t("span",ee,s(e(o)["models.search"]),1)])):u("",!0)]),_:1},8,["title","description"]),t("div",te,[b.value?(l(),a("div",se,[t("div",oe,[i(e(B),{class:"absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),i(e(G),{modelValue:m.value,"onUpdate:modelValue":r[1]||(r[1]=n=>m.value=n),placeholder:e(o)["models.search-models-by-name"],class:"pl-9 pr-9",autofocus:""},null,8,["modelValue","placeholder"]),m.value?(l(),a("button",{key:0,class:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",onClick:r[2]||(r[2]=n=>m.value="")},[i(e(M),{class:"size-3.5"})])):u("",!0)]),t("button",{class:"shrink-0 rounded-md px-2.5 py-2 text-xs text-muted-foreground hover:bg-accent",onClick:A},s(e(o)["models.close"]),1)])):u("",!0),e(C).loading&&!e(C).status?(l(),a("div",re,[...r[4]||(r[4]=[t("div",{class:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"},null,-1)])])):v.value.length===0?(l(),a("div",ne,[r[5]||(r[5]=t("img",{src:E,alt:"",class:"empty-illustration mb-6"},null,-1)),t("h2",le,s(e(o)["models.no-models-yet"]),1),t("p",ae,s(e(o)["models.create-content-models-using"]),1),i(O,{title:e(o)["models.ask-your-agent"],class:"mt-6 w-full max-w-md"},{default:f(()=>[i(y,{prompt:e(o)["models.create-a-blog-model"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.create-a-faq-model"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.scaffold-my-project-with"]},null,8,["prompt"])]),_:1},8,["title"])])):h.value.length===0&&m.value?(l(),a("div",ie,[i(e(B),{class:"mb-4 size-10 text-muted-foreground/40"}),t("h2",de,s(e(o)["models.no-models-found"]),1),t("p",me,[p(s(e(o)["models.no-models-match"]),1),t("span",ce,s(m.value),1),p(s(e(o)["models.try-a-different-search"]),1)]),t("button",{class:"mt-4 text-sm font-medium text-primary hover:underline",onClick:r[3]||(r[3]=n=>m.value="")},s(e(o)["models.clear-search"]),1)])):(l(),a(g,{key:4},[T.value?(l(!0),a(g,{key:1},w(L.value,(n,z)=>(l(),a("section",{key:z},[t("div",he,[t("h2",ye,s(z),1),i(e($),{variant:"secondary",class:"text-[10px]"},{default:f(()=>[p(s(n.length),1)]),_:2},1024)]),t("div",be,[(l(!0),a(g,null,w(n,c=>(l(),a("button",{key:c.id,class:x(e(_)("group flex items-start gap-4 rounded-xl border bg-card p-4 text-left transition-all hover:shadow-sm","border-border hover:border-primary/30")),onClick:Se=>e(j).push(`/models/${c.id}`)},[t("div",{class:x(e(_)("flex size-10 shrink-0 items-center justify-center rounded-lg",F[c.kind]??"bg-muted text-muted-foreground"))},[(l(),N(q(V[c.kind]??e(H)),{class:"size-5"}))],2),t("div",Ce,[t("div",ze,[t("span",we,s(c.id),1),i(e($),{variant:"outline",class:x(e(_)("shrink-0 text-[10px] font-medium",S[c.kind]??""))},{default:f(()=>[p(s(c.kind),1)]),_:2},1032,["class"])]),t("div",$e,[t("span",null,s(c.fields)+" "+s(e(o)["models.fields"]),1),c.i18n?(l(),a(g,{key:0},[r[8]||(r[8]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",Be,[i(e(P),{class:"size-3"}),p(" "+s(e(o)["models.i18n"]),1)])],64)):u("",!0)])])],10,ke))),128))])]))),128)):(l(),a("div",ue,[(l(!0),a(g,null,w(h.value,n=>(l(),a("button",{key:n.id,class:x(e(_)("group flex items-start gap-4 rounded-xl border bg-card p-4 text-left transition-all hover:shadow-sm","border-border hover:border-primary/30")),onClick:z=>e(j).push(`/models/${n.id}`)},[t("div",{class:x(e(_)("flex size-10 shrink-0 items-center justify-center rounded-lg",F[n.kind]??"bg-muted text-muted-foreground"))},[(l(),N(q(V[n.kind]??e(H)),{class:"size-5"}))],2),t("div",fe,[t("div",ge,[t("span",xe,s(n.id),1),i(e($),{variant:"outline",class:x(e(_)("shrink-0 text-[10px] font-medium",S[n.kind]??""))},{default:f(()=>[p(s(n.kind),1)]),_:2},1032,["class"])]),t("div",_e,[t("span",null,s(n.fields)+" "+s(e(o)["models.fields"]),1),r[7]||(r[7]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",null,s(n.domain),1),n.i18n?(l(),a(g,{key:0},[r[6]||(r[6]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",ve,[i(e(P),{class:"size-3"}),p(" "+s(e(o)["models.i18n"]),1)])],64)):u("",!0)])])],10,pe))),128))])),t("div",je,[t("span",null,s(h.value.length)+" "+s(e(o)["models.model"])+s(h.value.length===1?"":"s"),1),m.value?(l(),a("span",Le)):u("",!0),m.value?(l(),a("span",Ve,s(e(o)["models.filtered-from"])+" "+s(v.value.length)+" "+s(e(o)["models.total"]),1)):u("",!0)])],64)),i(O,{title:e(o)["models.ask-your-agent"]},{default:f(()=>[i(y,{prompt:e(o)["models.create-a-new-content"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.add-a-testimonials-collection"]},null,8,["prompt"])]),_:1},8,["title"]),i(X,{message:e(o)["models.create-and-manage-models"],class:"mt-4"},null,8,["message"])])]))}});export{Ge as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Z,a as T,o as l,p as m,y as E,u as e,z as N,f as I,F as S,x as L,h as U,b as h,e as r,j as s,q as t,A as ie,B as n,s as u,g as C,w as ce,X as de,L as F,r as P,i as ue,E as B,a8 as J}from"./index-
|
|
1
|
+
import{c as Z,a as T,o as l,p as m,y as E,u as e,z as N,f as I,F as S,x as L,h as U,b as h,e as r,j as s,q as t,A as ie,B as n,s as u,g as C,w as ce,X as de,L as F,r as P,i as ue,E as B,a8 as J}from"./index-RDdffBTh.js";import{j as me,d as fe,u as pe}from"./useWatch-B2FLRWr8.js";import{u as xe}from"./content-Ctqretwl.js";import{_ as _e,S as ge,a as G}from"./PageHeader.vue_vue_type_script_setup_true_lang-CEnjONvd.js";import{A as ee,_ as he}from"./StudioHint.vue_vue_type_script_setup_true_lang-C6JN5tPq.js";import{_ as H,a as j}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Ulb-9Tr3.js";import{_ as w}from"./index-De_z0714.js";import{b as te,c as se,_ as A,d as ne,a as q}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-BRzXVXDG.js";import{_ as W}from"./Separator.vue_vue_type_script_setup_true_lang-1pFZ2PR2.js";import{C as ae}from"./chevron-down-C1nYx5Eu.js";import{B as ve}from"./book-marked-DS8FXgjz.js";import{B as ye}from"./book-open-DnH5T78M.js";import{F as X}from"./file-code-ScWZN40B.js";import{L as ze,T as Q}from"./trash-2-B1QgZW1G.js";import{A as Y}from"./arrow-down-BAJwpryD.js";import{D as be}from"./database-Wd_i2bM1.js";import{M as ke,P as we}from"./plus-Cw1OnTR2.js";import{G as K}from"./git-merge-Bmz-MVBm.js";import"./useId-CPFWZ4Bo.js";import"./Presence-BXKCIfUk.js";/**
|
|
2
2
|
* @license lucide-vue-next v0.474.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as m,k as b,d as f,u as x}from"./useWatch-
|
|
1
|
+
import{P as m,k as b,d as f,u as x}from"./useWatch-B2FLRWr8.js";import{c as u,a as h,b as y,e as v,y as g,u as t,z as k,o,f as p,p as c,q as a,B as r,g as z,s as l,j as n}from"./index-RDdffBTh.js";/**
|
|
2
2
|
* @license lucide-vue-next v0.474.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Z as B,a0 as V,a5 as W,U as D,G as p,ad as z,w as g,k as G,ae as J,a3 as q,a4 as H,M as Y,af as F,S as T,W as N,a1 as R,u as k,h as A,t as _,r as O,i as Z,K,ag as Q,ah as X,l as ee,a as te,_ as ne}from"./index-
|
|
1
|
+
import{Z as B,a0 as V,a5 as W,U as D,G as p,ad as z,w as g,k as G,ae as J,a3 as q,a4 as H,M as Y,af as F,S as T,W as N,a1 as R,u as k,h as A,t as _,r as O,i as Z,K,ag as Q,ah as X,l as ee,a as te,_ as ne}from"./index-RDdffBTh.js";import{l as re}from"./useWatch-B2FLRWr8.js";function Se(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[a=>{const u=B(r,a);if(u||u===null)return u;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(V(r,a),a)]}function Pe(e,t){var n;const r=D();return G(()=>{r.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!==null&&n!==void 0?n:"sync"}),J(r)}function x(e,t){return q()?(H(e,t),!0):!1}function Te(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const a=()=>t(i);return x(a),{off:a}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(a=>a(...i))),clear:()=>{e.clear()}}}function xe(e){let t=!1,n;const r=F(!0);return((...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n))}const M=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ie=e=>typeof e<"u",oe=Object.prototype.toString,ae=e=>oe.call(e)==="[object Object]",L=()=>{},Me=ue();function ue(){var e,t,n;return M&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function se(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function le(e,t={}){let n,r,o=L;const i=f=>{clearTimeout(f),o(),o=L};let a;return f=>{const d=p(e),s=p(t.maxWait);return n&&i(n),d<=0||s!==void 0&&s<=0?(r&&(i(r),r=void 0),Promise.resolve(f())):new Promise((l,v)=>{o=t.rejectOnCancel?v:l,a=f,s&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,l(a())},s)),n=setTimeout(()=>{r&&i(r),r=void 0,l(f())},d)})}}function U(e){return Array.isArray(e)?e:[e]}function ce(e){return T()}function Ce(e){if(!M)return e;let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...i)=>(t+=1,r||(r=F(!0),n=r.run(()=>e(...i))),x(o),n))}function fe(e){return N(e)?R(new Proxy({},{get(t,n,r){return k(Reflect.get(e.value,n,r))},set(t,n,r){return N(e.value[n])&&!N(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):R(e)}function de(e){return fe(A(e))}function je(e,...t){const n=t.flat(),r=n[0];return de(()=>Object.fromEntries(typeof r=="function"?Object.entries(_(e)).filter(([o,i])=>!r(p(i),o)):Object.entries(_(e)).filter(o=>!n.includes(o[0]))))}function $e(e,t=1e4){return z((n,r)=>{let o=p(e),i;const a=()=>setTimeout(()=>{o=p(e),r()},p(t));return x(()=>{clearTimeout(i)}),{get(){return n(),o},set(u){o=u,r(),clearTimeout(i),i=a()}}})}function Ie(e,t=200,n={}){return se(le(t,n),e)}function Ne(e,t){ce()&&Y(e,t)}function Ue(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=D(!1);let a;function u(){a&&(clearTimeout(a),a=void 0)}function f(){i.value=!1,u()}function d(...s){o&&e(),u(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...s)},p(t))}return r&&(i.value=!0,M&&d()),x(f),{isPending:W(i),start:d,stop:f}}function me(e,t,n){return g(e,t,{...n,immediate:!0})}function _e(e,t,n){return g(e,t,{...n,once:!0})}const j=M?window:void 0;function P(e){var t;const n=p(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function ve(...e){const t=(r,o,i,a)=>(r.addEventListener(o,i,a),()=>r.removeEventListener(o,i,a)),n=A(()=>{const r=U(p(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return me(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>P(i)))!==null&&r!==void 0?r:[j].filter(i=>i!=null),U(p(n.value?e[1]:e[0])),U(k(n.value?e[2]:e[1])),p(n.value?e[3]:e[2])]},([r,o,i,a],u,f)=>{if(!(r!=null&&r.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const d=ae(a)?{...a}:a,s=r.flatMap(l=>o.flatMap(v=>i.map(w=>t(l,v,w,d))));f(()=>{s.forEach(l=>l())})},{flush:"post"})}function pe(){const e=D(!1),t=T();return t&&Z(()=>{e.value=!0},t),e}function ye(e){const t=pe();return A(()=>(t.value,!!e()))}function he(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function De(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=j,eventName:i="keydown",passive:a=!1,dedupe:u=!1}=r,f=he(t);return ve(o,i,s=>{s.repeat&&p(u)||f(s)&&n(s)},a)}function ge(e){return JSON.parse(JSON.stringify(e))}function Re(e,t,n={}){const{window:r=j,...o}=n;let i;const a=ye(()=>r&&"ResizeObserver"in r),u=()=>{i&&(i.disconnect(),i=void 0)},f=g(A(()=>{const s=p(e);return Array.isArray(s)?s.map(l=>P(l)):[P(s)]}),s=>{if(u(),a.value&&r){i=new ResizeObserver(t);for(const l of s)l&&i.observe(l,o)}},{immediate:!0,flush:"post"}),d=()=>{u(),f()};return x(d),{isSupported:a,stop:d}}function Le(e,t,n,r={}){var o,i;const{clone:a=!1,passive:u=!1,eventName:f,deep:d=!1,defaultValue:s,shouldEmit:l}=r,v=T(),w=n||(v==null?void 0:v.emit)||(v==null||(o=v.$emit)===null||o===void 0?void 0:o.bind(v))||(v==null||(i=v.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(v==null?void 0:v.proxy));let E=f;t||(t="modelValue"),E=E||`update:${t.toString()}`;const $=c=>a?typeof a=="function"?a(c):ge(c):c,S=()=>ie(e[t])?$(e[t]):s,m=c=>{l?l(c)&&w(E,c):w(E,c)};if(u){const c=O(S());let y=!1;return g(()=>e[t],h=>{y||(y=!0,c.value=$(h),K(()=>y=!1))}),g(c,h=>{!y&&(h!==e[t]||d)&&m(h)},{deep:d}),c}else return A({get(){return S()},set(c){m(c)}})}function Fe(){const e=T(),t=O(),n=A(()=>r());Q(()=>{n.value!==r()&&X(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:P(t)}const o=Object.assign({},e.exposed),i={};for(const u in e.props)Object.defineProperty(i,u,{enumerable:!0,configurable:!0,get:()=>e.props[u]});if(Object.keys(o).length>0)for(const u in o)Object.defineProperty(i,u,{enumerable:!0,configurable:!0,get:()=>o[u]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function a(u){if(t.value=u,!!u&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>u instanceof Element?u:u.$el}),!(u instanceof Element)&&!Object.prototype.hasOwnProperty.call(u,"$el"))){const f=u.$.exposed,d=Object.assign({},i);for(const s in f)Object.defineProperty(d,s,{enumerable:!0,configurable:!0,get:()=>f[s]});e.exposed=d}}return{forwardRef:a,currentRef:t,currentElement:n}}function be(e,t){const n=O(e);function r(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=r(i)}}}function Oe(e,t){var S;const n=O({}),r=O("none"),o=O(e),i=e.value?"mounted":"unmounted";let a;const u=((S=t.value)==null?void 0:S.ownerDocument.defaultView)??j,{state:f,dispatch:d}=be(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),s=m=>{var c;if(M){const y=new CustomEvent(m,{bubbles:!1,cancelable:!1});(c=t.value)==null||c.dispatchEvent(y)}};g(e,async(m,c)=>{var h;const y=c!==m;if(await K(),y){const I=r.value,b=C(t.value);m?(d("MOUNT"),s("enter"),b==="none"&&s("after-enter")):b==="none"||b==="undefined"||((h=n.value)==null?void 0:h.display)==="none"?(d("UNMOUNT"),s("leave"),s("after-leave")):c&&I!==b?(d("ANIMATION_OUT"),s("leave")):(d("UNMOUNT"),s("after-leave"))}},{immediate:!0});const l=m=>{const c=C(t.value),y=c.includes(CSS.escape(m.animationName)),h=f.value==="mounted"?"enter":"leave";if(m.target===t.value&&y&&(s(`after-${h}`),d("ANIMATION_END"),!o.value)){const I=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=u==null?void 0:u.setTimeout(()=>{var b;((b=t.value)==null?void 0:b.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=I)})}m.target===t.value&&c==="none"&&d("ANIMATION_END")},v=m=>{m.target===t.value&&(r.value=C(t.value))},w=g(t,(m,c)=>{m?(n.value=getComputedStyle(m),m.addEventListener("animationstart",v),m.addEventListener("animationcancel",l),m.addEventListener("animationend",l)):(d("ANIMATION_END"),a!==void 0&&(u==null||u.clearTimeout(a)),c==null||c.removeEventListener("animationstart",v),c==null||c.removeEventListener("animationcancel",l),c==null||c.removeEventListener("animationend",l))},{immediate:!0}),E=g(f,()=>{const m=C(t.value);r.value=f.value==="mounted"?m:"none"});return ee(()=>{w(),E()}),{isPresent:A(()=>["mounted","unmountSuspended"].includes(f.value))}}function C(e){return e&&getComputedStyle(e).animationName||"none"}var ke=te({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var d;const{present:r,forceMount:o}=_(e),i=O(),{isPresent:a}=Oe(r,i);n({present:a});let u=t.default({present:a.value});u=re(u||[]);const f=T();if(u&&(u==null?void 0:u.length)>1){const s=(d=f==null?void 0:f.parent)!=null&&d.type.name?`<${f.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${s}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(l=>` - ${l}`).join(`
|
|
2
2
|
`)].join(`
|
|
3
3
|
`))}return()=>o.value||r.value||a.value?ne(t.default({present:a.value})[0],{ref:s=>{const l=P(s);return typeof(l==null?void 0:l.hasAttribute)>"u"||(l!=null&&l.hasAttribute("data-reka-popper-content-wrapper")?i.value=l.firstElementChild:i.value=l),l}}):null}});export{ke as P,Re as a,Ie as b,Se as c,be as d,P as e,Le as f,je as g,Ce as h,M as i,Me as j,ve as k,xe as l,x as m,Te as n,De as o,pe as p,Pe as q,$e as r,Ue as s,Ne as t,Fe as u,_e as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as h,r as m}from"./useWatch-
|
|
1
|
+
import{P as h,r as m}from"./useWatch-B2FLRWr8.js";import{a as l,o as u,b as p,e as d,f as c,m as _,u as o,h as s,I as y,J as B,z as S}from"./index-RDdffBTh.js";var g=l({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,t=["horizontal","vertical"];function n(r){return t.includes(r)}const i=s(()=>n(e.orientation)?e.orientation:"horizontal"),f=s(()=>i.value==="vertical"?e.orientation:void 0),v=s(()=>e.decorative?{role:"none"}:{"aria-orientation":f.value,role:"separator"});return(r,P)=>(u(),p(o(h),_({as:r.as,"as-child":r.asChild,"data-orientation":i.value},v.value),{default:d(()=>[c(r.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),z=g,q=l({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;return(t,n)=>(u(),p(z,y(B(e)),{default:d(()=>[c(t.$slots,"default")]),_:3},16))}}),O=q;const k=l({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,t=m(e,"class");return(n,i)=>(u(),p(o(O),_({"data-slot":"separator"},o(t),{class:o(S)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e.class)}),null,16,["class"]))}});export{k as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as n}from"./PageHeader.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{a as n}from"./PageHeader.vue_vue_type_script_setup_true_lang-CEnjONvd.js";import{d as l}from"./useWatch-B2FLRWr8.js";import{c,a as d,p,q as t,B as o,j as r,u as s,e as m,o as u,s as f}from"./index-RDdffBTh.js";/**
|
|
2
2
|
* @license lucide-vue-next v0.474.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ft,a as Ye,b as Mt}from"./useId-
|
|
1
|
+
import{u as Ft,a as Ye,b as Mt}from"./useId-CPFWZ4Bo.js";import{r as Ht,m as Wt,n as zt,e as It,i as mt,u as j,o as Vt,p as jt,c as Ae,q as Kt,s as wt,f as Xt,k as rt,P as Yt}from"./Presence-BXKCIfUk.js";import{c as bt,k as le,r as B,i as Ue,h as _,G as ve,K as Fe,a as S,o as T,b as R,e as D,f as k,u as y,n as Ge,a1 as Ut,T as Gt,g as Me,a2 as xt,p as ae,m as Q,w as xe,a3 as Jt,a4 as Qt,a5 as de,U as Zt,j as G,a6 as en,I as Te,J as De,t as tn,s as nn,B as _e,H as on,A as He,a7 as rn,z as We,y as it,q as st,Y as sn,Q as an}from"./index-RDdffBTh.js";import{P as ge,r as ln}from"./useWatch-B2FLRWr8.js";import{S as un}from"./shield-check-B67ELGUT.js";/**
|
|
2
2
|
* @license lucide-vue-next v0.474.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as S,a as ce,i as ue,p as u,j as t,e as n,u as e,q as a,L as J,g as f,s as m,B as l,F as k,y as g,z as w,x as L,h as y,r as h,E as ve,o,Q as T,Y as A,b as _,A as U,C as me}from"./index-
|
|
1
|
+
import{c as S,a as ce,i as ue,p as u,j as t,e as n,u as e,q as a,L as J,g as f,s as m,B as l,F as k,y as g,z as w,x as L,h as y,r as h,E as ve,o,Q as T,Y as A,b as _,A as U,C as me}from"./index-RDdffBTh.js";import{d as fe,u as _e}from"./useWatch-B2FLRWr8.js";import{u as xe}from"./content-Ctqretwl.js";import{_ as pe,a as C}from"./PageHeader.vue_vue_type_script_setup_true_lang-CEnjONvd.js";import{_ as ye}from"./StudioHint.vue_vue_type_script_setup_true_lang-C6JN5tPq.js";import{_ as K,a as D}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Ulb-9Tr3.js";import{_ as b}from"./index-De_z0714.js";import{_ as ge}from"./TrustBadge.vue_vue_type_script_setup_true_lang-KRiTnLVk.js";import{_ as z,a as M,b as X,c as ee,d as te}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-BRzXVXDG.js";import{_ as se}from"./Separator.vue_vue_type_script_setup_true_lang-1pFZ2PR2.js";import{S as he}from"./shield-check-B67ELGUT.js";import{D as ae}from"./database-Wd_i2bM1.js";import{C as le}from"./chevron-down-C1nYx5Eu.js";import"./useId-CPFWZ4Bo.js";import"./Presence-BXKCIfUk.js";/**
|
|
2
2
|
* @license lucide-vue-next v0.474.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as C,r as n}from"./index-
|
|
1
|
+
import{d as C,r as n}from"./index-RDdffBTh.js";import{j as L}from"./useWatch-B2FLRWr8.js";const V=C("content",()=>{const e=L(),o=n(null),u=n(null),c=n(null),f=n([]),v=n(null),a=n(!1),i=n(null);async function d(t,l,h,p){a.value=!0;try{const r=new URLSearchParams;l&&r.set("locale",l),h!==void 0&&r.set("limit",String(h)),p!==void 0&&r.set("offset",String(p));const m=r.toString();o.value=await e.get(`/content/${t}${m?`?${m}`:""}`)}finally{a.value=!1}}async function g(t){a.value=!0;try{u.value=await e.get(`/describe/${t}`)}finally{a.value=!1}}async function b(t){a.value=!0;try{c.value=await e.get(`/validate${t?`?model=${t}`:""}`)}finally{a.value=!1}}async function w(){a.value=!0;try{c.value=await e.get("/validate?fix=true")}finally{a.value=!1}}async function z(){a.value=!0;try{const t=await e.get("/branches");f.value=t.branches}finally{a.value=!1}}async function $(t){a.value=!0;try{v.value=await e.get(`/branches/diff?name=${encodeURIComponent(t)}`)}finally{a.value=!1}}const y=n([]);async function S(t=50){a.value=!0;try{const l=await e.get(`/history?limit=${t}`);y.value=l.entries}finally{a.value=!1}}async function j(t){return e.post("/branches/approve",{branch:t})}async function P(t){return e.post("/branches/reject",{branch:t})}const s=n(null);async function B(){try{const t=await e.get("/normalize/plan");s.value=t.plan}catch{s.value=null}}async function D(){try{i.value=await e.get("/normalize/results")}catch{i.value=null}}async function R(t){return e.post("/normalize/plan/approve",t?{models:t}:{})}async function x(){return e.post("/normalize/plan/reject",{})}return{contentList:o,modelDescription:u,validation:c,branches:f,branchDiff:v,history:y,normalizePlan:s,loading:a,normalizeResults:i,fetchContent:d,fetchModelDescription:g,fetchValidation:b,fetchValidationWithFix:w,fetchBranches:z,fetchBranchDiff:$,fetchHistory:S,approveBranch:j,rejectBranch:P,fetchNormalizePlan:B,fetchNormalizeResults:D,approvePlan:R,rejectPlan:x}});export{V as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,P as n,k as o}from"./useWatch-
|
|
1
|
+
import{r as i,P as n,k as o}from"./useWatch-B2FLRWr8.js";import{a as d,b as c,u as e,m as l,z as v,e as u,o as g,f}from"./index-RDdffBTh.js";const x=d({__name:"Badge",props:{asChild:{type:Boolean},as:{},variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(r){const a=r,t=i(a,"class");return(s,b)=>(g(),c(e(n),l({"data-slot":"badge",class:e(v)(e(p)({variant:r.variant}),a.class)},e(t)),{default:u(()=>[f(s.$slots,"default")]),_:3},16,["class"]))}}),p=o("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});export{x as _};
|