1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[52851],{1205:(e,t,r)=>{r.d(t,{D:()=>l});var i=r(32957);let a={cloud:"Cloud",host:"Remote",marketplace:"Marketplace",human:"Human",pending:"Pending",vscode:"VS Code"},n={background:"var(--surface-coral-soft)",color:"var(--accent)"},s={background:"var(--bg-elevated)",color:"var(--text-strong)"},o={cloud:n,marketplace:n,host:s,human:s,pending:{background:"rgba(245,158,11,0.15)",color:"var(--warning-text)"},vscode:s};function l(e){let{kind:t,label:r}=e,n=o[t];return(0,i.jsx)("span",{style:{fontSize:10,fontWeight:700,letterSpacing:.4,textTransform:"uppercase",padding:"2px 7px",borderRadius:"var(--radius-sm)",background:n.background,color:n.color,border:"1px solid var(--border)"},children:null!=r?r:a[t]})}},23350:(e,t,r)=>{r.d(t,{z:()=>a});let i=["B","KB","MB","GB","TB"];function a(e){let t=Number.isFinite(e)&&e>0?e:0,r=Math.min(i.length-1,Math.max(0,Math.floor(Math.log(Math.max(t,1))/Math.log(1024)))),a=t/1024**r;return"".concat(0!==r&&a<10?a.toFixed(1):String(Math.round(a))," ").concat(i[r])}},28482:(e,t,r)=>{r.d(t,{c:()=>d});var i=r(32957),a=r(3625),n=r(75438),s=r(84411),o=r(30515),l=r(38613);function d(e){let{scope:t,scopeId:r,className:d,style:c}=e,u=(0,l.b)(),g=(0,o.t)(),[p,x]=(0,a.useState)([]),[v,h]=(0,a.useState)(!0),[f,m]=(0,a.useState)(null),[y,b]=(0,a.useState)(!1),[j,S]=(0,a.useState)(""),k=(0,a.useCallback)(async()=>{h(!0),m(null);try{let e=await n.z8.list(t,r,"persona").catch(()=>[]);x(e)}catch(e){m(u(e))}finally{h(!1)}},[t,r,u]);(0,a.useEffect)(()=>{k()},[k]);let w=new Set(p.map(e=>e.artifactSlug)),C=async e=>{m(null);try{await n.z8.assign("persona",e,t,r),await k()}catch(e){m(u(e))}},z=async e=>{m(null);try{await n.z8.unassign("persona",e,t,r),x(t=>t.filter(t=>t.artifactSlug!==e))}catch(e){m(u(e))}},R=s.yi.filter(e=>!w.has(e.name)&&(!j||e.name.toLowerCase().includes(j.toLowerCase())||e.description.toLowerCase().includes(j.toLowerCase())));return(0,i.jsxs)("div",{className:d,style:{display:"flex",flexDirection:"column",gap:12,...c},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[(0,i.jsxs)("div",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:["Personas (",p.length,")"]}),(0,i.jsx)("button",{type:"button",onClick:()=>b(e=>!e),style:{padding:"5px 12px",fontSize:12,fontWeight:600,background:"var(--coral-bright)",color:"var(--text-on-accent)",border:"none",borderRadius:"var(--radius-md)",cursor:"pointer"},children:y?"Done":"+ Assign Persona"})]}),f&&(0,i.jsx)("div",{style:{padding:"8px 12px",fontSize:12,background:"rgba(239,68,68,0.15)",color:"var(--error-text)",borderRadius:"var(--radius-md)"},children:f}),v?(0,i.jsx)("div",{style:{color:"var(--text-muted)",fontSize:13},children:"Loadingâ¦"}):y?(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,i.jsx)("input",{type:"text",placeholder:"Search personasâ¦",value:j,onChange:e=>S(e.target.value),style:{padding:"8px 10px",fontSize:13,border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",background:"var(--bg-deep)",color:"var(--text-primary)"}}),0===R.length?(0,i.jsx)("div",{style:{fontSize:12,color:"var(--text-muted)",padding:12},children:"No additional personas to assign"}):R.slice(0,20).map(e=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 12px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:[(0,i.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,i.jsx)("div",{style:{fontWeight:600,fontSize:13,color:"var(--text-primary)"},children:e.name}),(0,i.jsx)("div",{style:{fontSize:11,color:"var(--text-muted)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.description})]}),(0,i.jsx)("button",{type:"button",onClick:()=>C(e.name),style:{padding:"4px 10px",fontSize:11,fontWeight:600,background:"var(--coral-bright)",color:"var(--text-on-accent)",border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",flexShrink:0},children:"Assign"})]},e.name))]}):0===p.length?(0,i.jsx)("div",{style:{fontSize:13,color:"var(--text-muted)",padding:16,textAlign:"center"},children:'No personas assigned. Click "+ Assign Persona" to add personas.'}):(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:p.map(e=>{var t;let r=s.yi.find(t=>t.name===e.artifactSlug);return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 12px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:[(0,i.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,i.jsx)("div",{style:{fontWeight:600,fontSize:13,color:"var(--text-primary)"},children:null!=(t=null==r?void 0:r.name)?t:e.artifactSlug}),(null==r?void 0:r.description)&&(0,i.jsx)("div",{style:{fontSize:11,color:"var(--text-muted)"},children:r.description}),(0,i.jsxs)("div",{style:{fontSize:11,color:"var(--text-muted)"},children:["Assigned ",g.date(e.assignedAt)]})]}),(0,i.jsx)("button",{type:"button",onClick:()=>z(e.artifactSlug),style:{padding:"4px 10px",fontSize:11,fontWeight:600,background:"rgba(239,68,68,0.1)",color:"var(--error-text)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:"var(--radius-sm)",cursor:"pointer",flexShrink:0},children:"Remove"})]},e.artifactSlug)})})]})}},34748:(e,t,r)=>{r.d(t,{o:()=>l});var i=r(32957),a=r(70307),n=r(97849),s=r(6924),o=r(15944);function l(e){let{value:t,onChange:r,variant:l="all",includeDefault:d=!0,defaultLabel:c="builderforce.ai (default)",preserveValue:u,style:g,title:p,disabled:x}=e,v=(0,a.c)("modelSelect"),{models:h,codingModels:f,tenantModels:m,byoModels:y,canUsePremiumModels:b,premiumModels:j}=(0,s.Pd)(),S="coding"===l&&f.length>0?f:h,k="coding"===l?j.filter(e=>{var t;return null==(t=e.supportedParameters)?void 0:t.includes("tools")}):j,w=b&&k.length>0,C=u&&!S.includes(u)&&!y.includes(u)&&!j.some(e=>e.id===u)&&!m.some(e=>e.ref===u);return(0,i.jsxs)(n.l,{value:t,onChange:e=>r(e.target.value),style:g,title:p,disabled:x,children:[d&&(0,i.jsx)("option",{value:"",children:c}),m.length>0&&(0,i.jsx)("optgroup",{label:v("yourLlms"),children:m.map(e=>(0,i.jsx)("option",{value:e.ref,children:e.name},e.id))}),y.length>0&&(0,i.jsx)("optgroup",{label:v("connectedProviders"),children:y.map(e=>(0,i.jsx)("option",{value:e,children:e},e))}),S.length>0&&(0,i.jsx)("optgroup",{label:v("models"),children:S.map(e=>(0,i.jsx)("option",{value:e,children:e},e))}),w&&(0,i.jsx)("optgroup",{label:v("premiumModels"),children:k.map(e=>(0,i.jsx)("option",{value:e.id,children:v("premiumOption",{name:e.name,price:(0,o.y1)(e.pricing.prompt)})},e.id))}),C&&u&&(0,i.jsx)("option",{value:u,children:v("current",{model:u})})]})}},59537:(e,t,r)=>{r.d(t,{CV:()=>l,kB:()=>c,qc:()=>d});var i=r(3625),a=r(75438),n=r(79432),s=r(41602);function o(e){return"gh-actions-readiness:".concat(e)}function l(e){var t;let r=(0,n.H8)(),l=null!=(t=null!=e?e:null==r?void 0:r.currentProjectId)?t:null,[d,c]=(0,i.useState)(null),[u,g]=(0,i.useState)(!1),[p,x]=(0,i.useState)(0),v=(0,i.useCallback)(()=>{null!=l&&(0,s.nc)(o(l)),x(e=>e+1)},[l]);return(0,i.useEffect)(()=>
1{if(null==l)return void c(null);let e=!1;return g(!0),(0,s.z)(o(l),()=>a.EA.githubActionsStatus(l),{ttlMs:3e4}).then(t=>{e||c(t)}).catch(()=>{e||c(null)}).finally(()=>{e||g(!1)}),()=>{e=!0}},[l,p]),{status:d,loading:u,refresh:v}}function d(e){let{status:t}=l(e);return t?t.ready:null}function c(e){return!!e&&e.repositories.some(e=>e.supported)}},64480:(e,t,r)=>{r.d(t,{j:()=>s,s:()=>o});var i=r(32957),a=r(1205);let n={padding:16,display:"flex",flexDirection:"column",gap:12,position:"relative",overflow:"hidden"};function s(e){let{avatar:t,name:r,subtitle:s,pill:o,badges:l,body:d,footer:c,onClick:u}=e,g=!!u;return(0,i.jsxs)("div",{className:"card",style:{...n,...g?{cursor:"pointer"}:null},...g?{role:"button",tabIndex:0,onClick:u,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),u())}}:null,children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[t,(0,i.jsxs)("div",{style:{minWidth:0},children:[(0,i.jsx)("div",{style:{fontSize:"var(--font-size-body)",fontWeight:700,color:"var(--text-strong)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r}),s&&(0,i.jsx)("div",{style:{fontSize:"var(--font-size-eyebrow)",color:"var(--muted)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s})]})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,flexShrink:0},children:[(0,i.jsx)(a.D,{kind:o.kind,label:o.label}),l]})]}),d,c&&(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,borderTop:"1px solid var(--border)",paddingTop:10},children:c})]})}function o(e){let{label:t}=e;return(0,i.jsx)("div",{"aria-hidden":!0,style:{width:36,height:36,borderRadius:"var(--radius-lg)",background:"var(--bg-base)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"var(--font-size-small)",fontWeight:700,color:"var(--coral-bright)",flexShrink:0},children:t.slice(0,1).toUpperCase()})}},67674:(e,t,r)=>{r.d(t,{a:()=>l});var i=r(32957),a=r(70307);let n=["board","card","table","calendar","gantt"],s={width:15,height:15,stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",flexShrink:0},o={board:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",style:s,"aria-hidden":"true",children:[(0,i.jsx)("rect",{x:"3",y:"4",width:"5",height:"16",rx:"1"}),(0,i.jsx)("rect",{x:"9.5",y:"4",width:"5",height:"11",rx:"1"}),(0,i.jsx)("rect",{x:"16",y:"4",width:"5",height:"14",rx:"1"})]}),card:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",style:s,"aria-hidden":"true",children:[(0,i.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),(0,i.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),(0,i.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),(0,i.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),table:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",style:s,"aria-hidden":"true",children:[(0,i.jsx)("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),(0,i.jsx)("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),(0,i.jsx)("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),(0,i.jsx)("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),(0,i.jsx)("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),(0,i.jsx)("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]}),calendar:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",style:s,"aria-hidden":"true",children:[(0,i.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),(0,i.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,i.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,i.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),gantt:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",style:s,"aria-hidden":"true",children:[(0,i.jsx)("line",{x1:"4",y1:"6",x2:"14",y2:"6"}),(0,i.jsx)("line",{x1:"8",y1:"12",x2:"19",y2:"12"}),(0,i.jsx)("line",{x1:"5",y1:"18",x2:"12",y2:"18"})]})};function l(e){let{value:t,onChange:r,options:s,board:l,card:d,table:c,calendar:u,gantt:g,cardLabel:p,tableLabel:x,className:v}=e,h=(0,a.c)("common.viewMode"),f={board:!!l,card:!!d,table:!!c,calendar:!!u,gantt:!!g};n.some(e=>f[e])||(f.card=!0,f.table=!0);let m=null!=s?s:n.filter(e=>f[e]).map(e=>({value:e,label:"card"===e&&p?p:"table"===e&&x?x:h(e),icon:o[e]}));return(0,i.jsx)("div",{className:v,role:"group","aria-label":h("groupLabel"),style:{display:"flex",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",padding:2},children:m.map(e=>{let a;return(0,i.jsxs)("button",{type:"button","data-view-mode":e.value,onClick:()=>r(e.value),"aria-pressed":t===e.value,style:{...{padding:"6px 12px",fontSize:"0.8rem",fontWeight:600,border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",background:(a=t===e.value)?"var(--coral-bright)":"transparent",color:a?"var(--text-on-accent)":"var(--text-secondary)"},display:"inline-flex",alignItems:"center",gap:6},children:[e.icon,e.label]},e.value)})})}},76859:(e,t,r)=>{r.d(t,{W:()=>g});var i=r(32957),a=r(3625),n=r(96145),s=r(28482),o=r(6808),l=r(75438),d=r(38613);function c(e){var t;let{projectId:r,agentAssignment:n,className:s,style:c}=e,u=(0,d.b)(),[g,p]=(0,a.useState)(""),[x,v]=(0,a.useState)(!0),[h,f]=(0,a.useState)(!1),[m,y]=(0,a.useState)(""),[b,j]=(0,a.useState)(!1),[S,k]=(0,a.useState)(null),w=null!=(t=null==n?void 0:n.id)?t:null;(0,a.useEffect)(()=>{let e=!1;return(async()=>{v(!0),k(null),f(!1);try{var t,i;if(n)e||p(null!=(t=n.governance)?t:"");else{let t=await (0,o.Sw)(r);e||p(null!=(i=null==t?void 0:t.governance)?i:"")}}catch(t){e||k(u(t))}finally{e||v(!1)}})(),()=>{e=!0}},[r,w,u]);let C=async()=>{j(!0),k(null);try{n?await l.Af.updateGovernance(n.id,m):await (0,o.vr)(r,{governance:m}),p(m),f(!1)}catch(e){k(u(e))}finally{j(!1)}};return(0,i.jsxs)("div",{className:s,style:{display:"flex",flexDirection:"column",gap:12,...c},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[(0,i.jsx)("div",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:"Governance Rules"}),!h&&!x&&(0,i.jsx)("button",{type:"button",onClick:()=>{y(g),f(!0)},style:{padding:"5px 12px",fontSize:12,fontWeight:600,background:"var(--surface-interactive)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer"},children:"Edit"})]}),S&&(0,i.jsx)("div",{style:{padding:"8px 12px",fontSize:12,background:"rgba(239,68,68,0.15)",color:"var(--error-text)",borderRadius:"var(--radius-md)"},children:S}),x?(0,i.jsx)("div",{style:{color:"var(--text-muted)",fontSize:13},children:"Loadingâ¦"}):h?(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,i.jsx)("textarea",{value:m,onChange:e=>y(e.target.value),placeholder:"Define governance rules (markdown)â¦",autoFocus:!0,style:{minHeight:200,padding:"10px 12px",fontSize:13,fontFamily:"var(--font-mono)",lineHeight:1.6,border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",background:"var(--bg-deep)",color:"var(--text-primary)",resize:"vertical",whiteSpace:"pre-wrap"}}),(0,i.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,i.jsx)("button",{type:"button",onClick:C,disabled:b,style:{padding:"6px 14px",fontSize:13,fontWeight:600,background:"var(--coral-bright)",color:"var(--text-on-accent)",border:"none",borderRadius:"var(--radius-md)",cursor:b?"wait":"pointer"},children:b?"Savingâ¦":"Save"}),(0,i.jsx)("button",{type:"button",onClick:()=>f(!1),style:{padding:"6px 14px",fontSize:13,fontWeight:600,background:"var(--surface-interactive)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer"},children:"Cancel"})]})]}):g.trim()?(0,i.jsx)("div",{style:{padding:"12px 14px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontSize:13,lineHeight:1.6,whiteSpace:"pre-wrap",color:"var(--text-primary)",fontFamily:"var(--font-mono)"},children:g}):(0,i.jsxs)("div",{style:{fontSize:13,color:"var(--text-muted)",padding:16,textAlign:"center"},children:["No governance rules defined for this ",n?"agent":"project",'. Click "Edit" to add rules.']})]})}let u=[{id:"skills",label:"Skills"},{id:"personas",label:"Personas"},{id:"governance",label:"Governance"}];function g(e){var t,r;let{scope:o,scopeId:l,projectId:d,agentAssignment:g,hideSections:p,className:x,style:v}=e,h=u.filter(e=>!(null==p?void 0:p.includes(e.id))),[f,m]=(0,a.useState)(null!=(r=null==(t=h[0])?void 0:t.id)?r:"skills");return(0,i.jsxs)("div",{className:x,style:{display:"flex",flexDirection:"column",gap:14,...v},children:[(0,i.jsx)("div",{style:{display:"flex",gap:4,flexWrap:"wrap",borderBottom:"1px solid var(--border-subtle)",paddingBottom:6},children:h.map(e=>(0,i.jsx)("button",{type:"button",onClick:()=>m(e.id),style:{padding:"6px 14px",fontSize:"var(--font-size-small)",fontWeight:f===e.id?700:500,color:f===e.id?"var(--coral-bright)":"var(--text-muted)",background:f===e.id?"rgba(255,107,53,0.08)":"transparent",border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",transition:"all 0.15s"},children:e.label},e.id))}),"skills"===f&&(0,i.jsx)(n.F,{scope:o,scopeId:l}),"personas"===f&&(0,i.jsx)(s.c,{scope:o,scopeId:l}),"governance"===f&&("agent"===o&&g?(0,i.jsx)(c,{projectId:null!=d?d:0,agentAssignment:g}):null!=d?(0,i.jsx)(c,{projectId:d}):(0,i.jsx)("div",{style:{fontSize:"var(--font-size-small)",color:"var(--text-muted)",padding:16,textAlign:"center"},children:"Governance rules are defined at the project level. Select or associate a project to manage governance."}))]})}},84411:(e,t,r)=>{r.d(t,{DG:()=>n,d7:()=>a,yi:()=>i});let i=[{name:"code-creator",description:"Implements features and writes production-quality code. Handles file creation, refactoring, and code generation tasks.",voice:"pragmatic and quality-driven",perspective:"views every task through the lens of shipping clean, maintainable code",decisionStyle:"ship it, but ship it right",outputPrefix:"CODE:",capabilities:["Feature implementation","Code generation","File creation","Refactoring"],source:"builtin",tags:["core","coding","implementation"],author:"Builderforce",likes:42,downloads:128},{name:"code-reviewer",description:"Provides thorough code reviews focusing on correctness, performance, security, and maintainability.",voice:"critical yet constructive",perspective:"all code is a future maintenance burden",decisionStyle:"thorough: surface all issues, ranked by severity",outputPrefix:"REVIEW:",capabilities:["Code review","Security analysis","Performance audit","Standards enforcement"],source:"builtin",tags:["core","review","quality"],author:"Builderforce",likes:38,downloads:97},{name:"test-generator",description:"Creates comprehensive test suites covering unit, integration, and edge case scenarios.",voice:"systematic and exhaustive",perspective:"untested code is broken code waiting to be discovered",decisionStyle:"coverage-first: edge cases before happy paths",outputPrefix:"TESTS:",capabilities:["Unit testing","Integration testing","Edge case coverage","Test fixtures"],source:"builtin",tags:["core","testing","quality"],author:"Builderforce",likes:31,downloads:85},{name:"bug-analyzer",description:"Investigates bugs using structured hypothesis-driven debugging. Traces root causes and proposes targeted fixes.",voice:"investigative and precise",perspective:"every bug has a root cause â find the cause, not a workaround",decisionStyle:"evidence-driven: hypothesis â test â verify",outputPrefix:"BUG-FIX:",capabilities:["Root cause analysis","Debugging","Log analysis","Regression identification"],source:"builtin",tags:["core","debugging","analysis"],author:"Builderforce",likes:27,downloads:74},{name:"refactor-agent",description:"Performs safe, incremental refactoring. Improves structure while keeping tests green and behaviour unchanged.",voice:"disciplined and incremental",perspective:"good architecture emerges from disciplined, small improvements",decisionStyle:"safe: one refactor at a time, tests green first",outputPrefix:"REFACTOR:",capabilities:["Code restructuring","Pattern extraction","Dead code removal","Depen
1dency cleanup"],source:"builtin",tags:["core","refactoring","architecture"],author:"Builderforce",likes:19,downloads:52},{name:"documentation-agent",description:"Writes clear, audience-aware documentation. Generates READMEs, API docs, guides, and inline comments.",voice:"clear, concise, audience-aware",perspective:"documentation is the first UI of any project",decisionStyle:"reader-first: if a newcomer can't understand it, rewrite it",outputPrefix:"DOCS:",capabilities:["README generation","API documentation","Code comments","User guides"],source:"builtin",tags:["core","documentation","communication"],author:"Builderforce",likes:22,downloads:63},{name:"architecture-advisor",description:"Provides strategic architectural guidance. Evaluates trade-offs and recommends patterns suited to project scale.",voice:"strategic and pragmatic",perspective:"every architectural choice is a trade-off with downstream consequences",decisionStyle:"trade-off oriented: always show the cost of each option",outputPrefix:"ARCH:",capabilities:["System design","Pattern selection","Scalability planning","Tech debt assessment"],source:"builtin",tags:["core","architecture","strategy"],author:"Builderforce",likes:35,downloads:91}],a=[{name:"GitHub",slug:"github",description:"GitHub operations via gh CLI: issues, PRs, CI runs, code review, API queries.",emoji:"\uD83D\uDC19",category:"Development",tags:["git","ci","code-review","issues"],author:"Builderforce",version:"1.0.0",likes:456,downloads:2100},{name:"Coding Agent",slug:"coding-agent",description:"Delegate coding tasks to Codex, Claude Code, or Pi agents via background process for building features, reviewing PRs, and refactoring.",emoji:"\uD83E\uDDE9",category:"Development",tags:["coding","agents","automation"],author:"Builderforce",version:"1.0.0",likes:389,downloads:1800},{name:"Skill Creator",slug:"skill-creator",description:"Create or update AgentSkills. Design, structure, and package skills with scripts, references, and assets.",emoji:"\uD83D\uDCE6",category:"Development",tags:["skills","packaging","authoring"],author:"Builderforce",version:"1.0.0",likes:198,downloads:760},{name:"Slack",slug:"slack",description:"Control Slack from BuilderForce Agents including reacting to messages and pinning/unpinning items in channels or DMs.",emoji:"\uD83D\uDCAC",category:"Communication",tags:["slack","messaging","chat"],author:"Builderforce",version:"1.0.0",likes:267,downloads:1100},{name:"Notion",slug:"notion",description:"Notion API for creating and managing pages, databases, and blocks.",emoji:"\uD83D\uDCDD",category:"Productivity",tags:["notion","notes","databases"],author:"Notion",version:"1.0.0",likes:289,downloads:1300},{name:"Gemini",slug:"gemini",description:"Gemini CLI for one-shot Q&A, summaries, and generation.",emoji:"âï¸",category:"AI & ML",tags:["gemini","ai","generation"],author:"Google",version:"1.0.0",likes:278,downloads:1200},{name:"Weather",slug:"weather",description:"Get current weather and forecasts via wttr.in or Open-Meteo. No API key needed.",emoji:"\uD83C\uDF24ï¸",category:"Utilities",tags:["weather","forecasts"],author:"wttr.in",version:"1.0.0",likes:234,downloads:1200},{name:"1Password",slug:"1password",description:"1Password CLI integration for secure credential access and management.",emoji:"\uD83D\uDD10",category:"Security",tags:["passwords","secrets","1password"],author:"1Password",version:"1.0.0",likes:312,downloads:1450}];function n(e){return"bf-user-skills-".concat(e||"default")}},96145:(e,t,r)=>{r.d(t,{F:()=>c});var i=r(32957),a=r(3625),n=r(75438),s=r(84411),o=r(5337),l=r(30515),d=r(38613);function c(e){let{scope:t,scopeId:r,className:c,style:u}=e,g=(0,d.b)(),p=(0,l.t)(),[x,v]=(0,a.useState)([]),[h,f]=(0,a.useState)([]),[m,y]=(0,a.useState)(!0),[b,j]=(0,a.useState)(null),[S,k]=(0,a.useState)(!1),[w,C]=(0,a.useState)(""),z=(0,a.useCallback)(async()=>{y(!0),j(null);try{var e;let[i,a]=await Promise.all([n.z8.list(t,r,"skill").catch(()=>[]),(0,n.y3)({limit:100}).catch(()=>({skills:[]}))]);v(i);let o=(null!=(e=a.skills)?e:[]).map(e=>{var t,r;return{slug:e.slug,name:e.name,description:null!=(t=e.description)?t:"",category:null!=(r=e.category)?r:void 0}}),l=new Set(o.map(e=>e.slug)),d=s.d7.filter(e=>!l.has(e.slug)).map(e=>({slug:e.slug,name:e.name,description:e.description,category:e.category,emoji:e.emoji}));f([...o,...d])}catch(e){j(g(e))}finally{y(!1)}},[t,r,g]);(0,a.useEffect)(()=>{z()},[z]);let R=new Set(x.map(e=>e.artifactSlug)),I=async e=>{j(null);try{await n.z8.assign("skill",e,t,r),await z()}catch(e){j(g(e))}},W=async e=>{j(null);try{await n.z8.unassign("skill",e,t,r),v(t=>t.filter(t=>t.artifactSlug!==e))}catch(e){j(g(e))}},P=h.filter(e=>!R.has(e.slug)&&(!w||e.name.toLowerCase().includes(w.toLowerCase())||e.description.toLowerCase().includes(w.toLowerCase())));return(0,i.jsxs)("div",{className:c,style:{display:"flex",flexDirection:"column",gap:12,...u},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[(0,i.jsxs)("div",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:["Skills (",x.length,")"]}),(0,i.jsx)("button",{type:"button",onClick:()=>k(e=>!e),style:{padding:"5px 12px",fontSize:12,fontWeight:600,background:"var(--coral-bright)",color:"var(--text-on-accent)",border:"none",borderRadius:"var(--radius-md)",cursor:"pointer"},children:S?"Done":"+ Assign Skill"})]}),b&&(0,i.jsx)("div",{style:{padding:"8px 12px",fontSize:12,background:"rgba(239,68,68,0.15)",color:"var(--error-text)",borderRadius:"var(--radius-md)"},children:b}),m?(0,i.jsx)("div",{style:{color:"var(--text-muted)",fontSize:13},children:"Loadingâ¦"}):S?(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,i.jsx)("input",{type:"text",placeholder:"Search skillsâ¦",value:w,onChange:e=>C(e.target.value),style:{padding:"8px 10px",fontSize:13,border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",background:"var(--bg-deep)",color:"var(--text-primary)"}}),0===P.length?(0,i.jsx)("div",{style:{fontSize:12,color:"var(--text-muted)",padding:12},children:"No additional skills to assign"}):P.slice(0,20).map(e=>{var t;return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 12px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:[(0,i.jsx)("span",{style:{flexShrink:0},children:(0,i.jsx)(o.I,{source:null!=(t=e.emoji)?t:"sparkles",size:16})}),(0,i.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,i.jsx)("div",{style:{fontWeight:600,fontSize:13,color:"var(--text-primary)"},children:e.name}),(0,i.jsx)("div",{style:{fontSize:11,color:"var(--text-muted)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.description})]}),(0,i.jsx)("button",{type:"button",onClick:()=>I(e.slug),style:{padding:"4px 10px",fontSize:11,fontWeight:600,background:"var(--coral-bright)",color:"var(--text-on-accent)",border:"none",borderRadius:"var(--radius-sm)",cursor:"pointer",flexShrink:0},children:"Assign"})]},e.slug)})]}):0===x.length?(0,i.jsx)("div",{style:{fontSize:13,color:"var(--text-muted)",padding:16,textAlign:"center"},children:'No skills assigned. Click "+ Assign Skill" to add skills.'}):(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:x.map(e=>{var t,r,a;let n=null!=(t=h.find(t=>t.slug===e.artifactSlug))?t:s.d7.find(t=>t.slug===e.artifactSlug),l=null!=(r=null==n?void 0:n.name)?r:e.artifactSlug,d=null!=(a=null==n?void 0:n.emoji)?a:"â¨";return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 12px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:[(0,i.jsx)("span",{style:{flexShrink:0},children:(0,i.jsx)(o.I,{source:d,size:16})}),(0,i.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,i.jsx)("div",{style:{fontWeight:600,fontSize:13,color:"var(--text-primary)"},children:l}),(0,i.jsxs)("div",{style:{fontSize:11,color:"var(--text-muted)"},children:["Assigned ",p.date(e.assignedAt)]})]}),(0,i.jsx)("button",{type:"button",onClick:()=>W(e.artifactSlug),style:{padding:"4px 10px",fontSize:11,fontWeight:600,background:"rgba(239,68,68,0.1)",color:"var(--error-text)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:"var(--radius-sm)",cursor:"pointer",flexShrink:0},children:"Remove"})]},e.artifactSlug)})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.