const PROMPT_KINDS=["system","template","per_step","fewshot_example","output_schema","guardrail"];function PromptLibraryView({kind:t}){const o=t.prompts||[],[i,n]=React.useState("all"),[a,c]=React.useState("all"),[d,p]=React.useState(o[0]?.id),m=o.filter(e=>(i==="all"||e.kind===i)&&(a==="all"||(e.tags||[]).includes(a))),s=o.find(e=>e.id===d)||m[0];return React.createElement("div",{className:"view view-promptLibrary"},React.createElement("header",{className:"pll-head"},React.createElement("div",null,React.createElement("h2",{className:"pll-title"},"Prompt Library"),React.createElement("p",{className:"pll-tag mono"},o.length," prompts \xB7 ",o.filter(e=>e.abTest).length," A/B tests active \xB7 last run 2h ago")),React.createElement("div",{className:"pll-head-r"},React.createElement("button",{className:"pll-act"},React.createElement(MIcon,{name:"upload_file",size:14}),"Import"),React.createElement("button",{className:"pll-act pll-act-primary"},React.createElement(MIcon,{name:"add",size:14}),"New prompt"))),React.createElement("div",{className:"pll-filters"},React.createElement("div",{className:"pll-filter-group"},React.createElement("span",{className:"pll-filter-label mono"},"KIND"),["all",...PROMPT_KINDS].map(e=>React.createElement("button",{key:e,className:`pll-chip ${i===e?"on":""}`,onClick:()=>n(e)},e.replace("_"," ")))),React.createElement("div",{className:"pll-filter-group"},React.createElement("span",{className:"pll-filter-label mono"},"TAG"),["all","brand","voice","legal","safety","experimental"].map(e=>React.createElement("button",{key:e,className:`pll-chip ${a===e?"on":""}`,onClick:()=>c(e)},e)))),React.createElement("div",{className:"pll-grid"},React.createElement("aside",{className:"pll-list"},m.map(e=>React.createElement("button",{key:e.id,className:`pll-list-item ${d===e.id?"on":""}`,onClick:()=>p(e.id)},React.createElement("div",{className:"pll-list-name mono"},e.slug),React.createElement("div",{className:"pll-list-meta"},React.createElement("span",{className:`pll-kind pll-kind-${e.kind}`},e.kind),(e.tags||[]).map(l=>React.createElement("span",{key:l,className:`pll-tag pll-tag-${l}`},l)),e.abTest&&React.createElement("span",{className:"pll-abtest"},"\u26A1 A/B")),React.createElement("div",{className:"pll-list-stats mono"},e.usedBy.length," agents \xB7 ",e.runs30d," runs/30d \xB7 ",e.tokens,"t")))),s&&React.createElement("div",{className:"pll-detail"},React.createElement("div",{className:"pll-detail-head"},React.createElement("div",null,React.createElement("div",{className:"pll-detail-slug mono"},s.slug),React.createElement("div",{className:"pll-detail-meta mono"},React.createElement("span",{className:`pll-kind pll-kind-${s.kind}`},s.kind),(s.tags||[]).map(e=>React.createElement("span",{key:e,className:`pll-tag pll-tag-${e}`},e)),React.createElement("span",null,"\xB7 lang ",s.language))),React.createElement("div",{className:"pll-detail-actions"},React.createElement("button",{className:"pll-act"},React.createElement(MIcon,{name:"science",size:12}),"Sandbox"),React.createElement("button",{className:"pll-act"},React.createElement(MIcon,{name:"difference",size:12}),"Diff"),React.createElement("button",{className:"pll-act pll-act-primary"},React.createElement(MIcon,{name:"edit",size:12}),"Edit"))),React.createElement("div",{className:"pll-body-head mono"},"BODY \xB7 ",s.activeVersion," active \xB7 ",s.tokens," tokens"),React.createElement("pre",{className:"pll-body mono"},s.body),React.createElement("div",{className:"pll-body-meta mono"},"Variables: ",(s.variables||[]).map(e=>`{{${e}}}`).join("  "),React.createElement("br",null),"Models: ",(s.models||[]).join(", ")),s.abTest&&React.createElement("div",{className:"pll-ab"},React.createElement("div",{className:"pll-ab-head mono"},"A/B TEST \xB7 ACTIVE"),React.createElement("div",{className:"pll-ab-row"},React.createElement("div",{className:"pll-ab-arm"},React.createElement("div",{className:"pll-ab-arm-label mono"},s.abTest.control," \xB7 ",s.abTest.controlSplit,"%"),React.createElement("div",{className:"pll-ab-arm-score"},s.abTest.controlScore.toFixed(2))),React.createElement("div",{className:"pll-ab-vs mono"},"\u21C4"),React.createElement("div",{className:"pll-ab-arm"},React.createElement("div",{className:"pll-ab-arm-label mono"},s.abTest.experimental," \xB7 ",s.abTest.experimentalSplit,"%"),React.createElement("div",{className:"pll-ab-arm-score pll-ab-arm-winner"},s.abTest.experimentalScore.toFixed(2)))),React.createElement("div",{className:"pll-ab-foot mono"},React.createElement("span",null,"n = ",s.abTest.n),React.createElement("span",{className:"pll-ab-delta"},"\u0394 +",((s.abTest.experimentalScore-s.abTest.controlScore)*100).toFixed(1),"%"),React.createElement("span",{className:"pll-ab-sig"},"significant \u2713"),React.createElement("button",{className:"pll-act pll-act-primary"},"Promote winner"))),React.createElement("div",{className:"pll-versions"},React.createElement("div",{className:"pll-versions-head mono"},"VERSIONS \xB7 ",s.versions.length),s.versions.map(e=>React.createElement("div",{key:e.v,className:`pll-version ${e.v===s.activeVersion?"on":""}`},React.createElement("span",{className:`pll-version-mark ${e.v===s.activeVersion?"on":""}`},e.v===s.activeVersion?"\u25CF":"\u25CB"),React.createElement("span",{className:"mono pll-version-v"},e.v),e.v===s.activeVersion&&React.createElement("span",{className:"pll-version-active mono"},"ACTIVE"),React.createElement("span",{className:"pll-version-meta mono"},e.ago," \xB7 ",e.author),React.createElement("span",{className:"pll-version-note"},'"',e.note,'"')))),React.createElement("div",{className:"pll-usedby"},React.createElement("div",{className:"pll-usedby-head mono"},"USED BY \xB7 ",s.usedBy.length," agent",s.usedBy.length===1?"":"s"),React.createElement("div",{className:"pll-usedby-list"},s.usedBy.map(e=>React.createElement("a",{key:e,className:"pll-usedby-chip"},React.createElement(MIcon,{name:"memory",size:12}),React.createElement("span",null,e))))))))}function AgentCatalogView({kind:t}){const o=t.agentsFull||[],i=["Intake","Strategy","Intelligence","Execution","Infrastructure","Content","Sales"],[n,a]=React.useState("all"),[c,d]=React.useState(null),p=n==="all"?o:o.filter(e=>e.department===n),m=i.reduce((e,l)=>(e[l]=p.filter(r=>r.department===l),e),{}),s=o.find(e=>e.id===c);return React.createElement("div",{className:"view view-agentCatalog"},React.createElement("header",{className:"ac-head"},React.createElement("div",null,React.createElement("h2",{className:"ac-title"},"Agent Catalog"),React.createElement("p",{className:"ac-tag mono"},o.length," agents \xB7 3 favourited \xB7 7 departments")),React.createElement("div",{className:"ac-head-r"},React.createElement("input",{className:"ac-search mono",placeholder:"Search agents\u2026"}),React.createElement("select",{className:"ac-select mono",defaultValue:"all"},React.createElement("option",{value:"all"},"All tiers"),React.createElement("option",null,"Free"),React.createElement("option",null,"Pro"),React.createElement("option",null,"Team")))),React.createElement("div",{className:"ac-dept-tabs"},["all",...i].map(e=>React.createElement("button",{key:e,className:`ac-dept-tab ${n===e?"on":""}`,onClick:()=>a(e)},React.createElement("span",null,e),React.createElement("span",{className:"ac-dept-count mono"},e==="all"?o.length:o.filter(l=>l.department===e).length)))),React.createElement("div",{className:"ac-grid-wrap"},(n==="all"?i:[n]).map(e=>{const l=m[e];return!l||l.length===0?null:React.createElement("section",{key:e,className:"ac-dept-section"},React.createElement("div",{className:"ac-dept-head mono"},e," \xB7 ",l.length),React.createElement("div",{className:"ac-cards"},l.map(r=>React.createElement("article",{key:r.id,className:`ac-card ac-tier-${r.tier}`,onClick:()=>d(r.id)},React.createElement("div",{className:"ac-card-head"},React.createElement("span",{className:"ac-card-code mono"},r.code),React.createElement("span",{className:`ac-card-tier mono ac-tier-tag-${r.tier}`},r.tier)),React.createElement("div",{className:"ac-card-name"},r.name),React.createElement("div",{className:"ac-card-role mono"},r.role),React.createElement("div",{className:"ac-card-stars"},Array.from({length:5}).map((u,v)=>React.createElement("span",{key:v,className:v<Math.round(r.rating)?"ac-star on":"ac-star"},"\u2605")),React.createElement("span",{className:"ac-card-rating mono"},r.rating.toFixed(1))),React.createElement("div",{className:"ac-card-foot mono"},React.createElement("span",null,r.credits," cr/run"),React.createElement("span",null,"\xB7 ",r.runs30d.toLocaleString("en-US")," runs/30d")),React.createElement("button",{className:"ac-card-run",onClick:u=>{u.stopPropagation(),d(r.id)}},React.createElement(MIcon,{name:"play_arrow",size:12}),"Run")))))})),s&&React.createElement(AgentDetailModal,{agent:s,onClose:()=>d(null)}))}function AgentDetailModal({agent:t,onClose:o}){const[i,n]=React.useState("overview");return React.createElement("div",{className:"ac-modal-backdrop",onClick:o},React.createElement("div",{className:"ac-modal",onClick:a=>a.stopPropagation()},React.createElement("header",{className:"ac-modal-head"},React.createElement("div",null,React.createElement("div",{className:"ac-modal-eyebrow mono"},t.department," \xB7 ",t.code),React.createElement("h3",{className:"ac-modal-title"},t.name),React.createElement("div",{className:"ac-modal-meta mono"},"\u2605 ",t.rating.toFixed(1)," (",t.ratings," ratings) \xB7 ",t.runs30d.toLocaleString("en-US")," runs/30d \xB7 ",t.successRate,"% success \xB7 p95 ",t.p95)),React.createElement("div",{className:"ac-modal-actions"},React.createElement("button",{className:"pll-act"},React.createElement(MIcon,{name:"favorite_border",size:14})),React.createElement("button",{className:"pll-act pll-act-primary"},React.createElement(MIcon,{name:"play_arrow",size:14}),"Run now"),React.createElement("button",{className:"ac-modal-close",onClick:o},React.createElement(MIcon,{name:"close",size:14})))),React.createElement("div",{className:"ac-modal-tabs"},["overview","prompts","skills","context","history","ops"].map(a=>React.createElement("button",{key:a,className:`ac-modal-tab ${i===a?"on":""}`,onClick:()=>n(a)},a))),React.createElement("div",{className:"ac-modal-body"},i==="overview"&&React.createElement("div",{className:"ac-mb-overview"},React.createElement("p",{className:"ac-mb-desc"},t.description),React.createElement("div",{className:"ac-mb-row"},React.createElement("div",{className:"mono ink-faint"},"Outputs"),React.createElement("div",null,t.outputs.join(" \xB7 "))),React.createElement("div",{className:"ac-mb-row"},React.createElement("div",{className:"mono ink-faint"},"Model"),React.createElement("div",{className:"mono"},t.model)),React.createElement("div",{className:"ac-mb-row"},React.createElement("div",{className:"mono ink-faint"},"Max tokens"),React.createElement("div",{className:"mono"},t.maxTokens.toLocaleString("en-US"))),React.createElement("div",{className:"ac-mb-row"},React.createElement("div",{className:"mono ink-faint"},"Temperature"),React.createElement("div",{className:"mono"},t.temp)),React.createElement("div",{className:"ac-mb-row"},React.createElement("div",{className:"mono ink-faint"},"Cost / run"),React.createElement("div",{className:"mono"},t.credits," credits \xB7 \u2248 \u20AC ",t.costEur))),i==="prompts"&&React.createElement("div",{className:"ac-mb-prompts"},t.prompts.map(a=>React.createElement("div",{key:a.id,className:"ac-mb-prompt-row"},React.createElement("span",{className:`pll-kind pll-kind-${a.kind}`},a.kind),React.createElement("span",{className:"mono ac-mb-prompt-slug"},a.slug),React.createElement("span",{className:"mono ac-mb-prompt-v"},a.activeVersion),React.createElement("button",{className:"pll-act"},"Open \u2192")))),i==="skills"&&React.createElement("div",{className:"ac-mb-skills"},t.skills.map(a=>React.createElement("div",{key:a,className:"ac-mb-skill mono"},a)),React.createElement("div",{className:"ac-mb-skills-foot mono"},"All ",t.skills.length," skills from Vault \u2192")),i==="context"&&React.createElement("div",{className:"ac-mb-context"},React.createElement("div",{className:"ac-mb-context-block"},React.createElement("div",{className:"mono ink-faint"},"Personal context used"),(t.contextPersonal||[]).map(a=>React.createElement("div",{key:a,className:"mono"},a))),React.createElement("div",{className:"ac-mb-context-block"},React.createElement("div",{className:"mono ink-faint"},"Workspace context used"),(t.contextCompany||[]).map(a=>React.createElement("div",{key:a,className:"mono"},a)))),i==="history"&&React.createElement("div",{className:"ac-mb-history"},t.recentRuns.map(a=>React.createElement("div",{key:a.id,className:"ac-mb-run-row"},React.createElement("span",{className:`ac-mb-run-dot ac-mb-run-${a.status}`}),React.createElement("span",{className:"mono"},a.id),React.createElement("span",{className:"ac-mb-run-text"},a.note),React.createElement("span",{className:"mono ink-faint"},a.ago)))),i==="ops"&&React.createElement("div",{className:"ac-mb-ops"},React.createElement("div",{className:"ac-mb-ops-grid"},React.createElement("div",{className:"ac-mb-ops-cell"},React.createElement("div",{className:"mono ink-faint"},"Health"),React.createElement("div",{className:"ac-mb-ops-v ac-mb-ops-healthy"},"\u25CF healthy")),React.createElement("div",{className:"ac-mb-ops-cell"},React.createElement("div",{className:"mono ink-faint"},"Active runs"),React.createElement("div",{className:"ac-mb-ops-v"},t.activeRuns)),React.createElement("div",{className:"ac-mb-ops-cell"},React.createElement("div",{className:"mono ink-faint"},"Queue depth"),React.createElement("div",{className:"ac-mb-ops-v"},t.queueDepth)),React.createElement("div",{className:"ac-mb-ops-cell"},React.createElement("div",{className:"mono ink-faint"},"P95 latency"),React.createElement("div",{className:"ac-mb-ops-v mono"},t.p95)),React.createElement("div",{className:"ac-mb-ops-cell"},React.createElement("div",{className:"mono ink-faint"},"Last failure"),React.createElement("div",{className:"ac-mb-ops-v mono"},t.lastFailure)),React.createElement("div",{className:"ac-mb-ops-cell"},React.createElement("div",{className:"mono ink-faint"},"Success 30d"),React.createElement("div",{className:"ac-mb-ops-v"},t.successRate,"%")))))))}Object.assign(window.VIEWS,{promptLibrary:PromptLibraryView,agentCatalog:AgentCatalogView}),window.VIEW_OPTIONS.push({value:"promptLibrary",label:"Prompts",icon:"edit_note"},{value:"agentCatalog",label:"Catalog",icon:"memory"}),(function(){const o=window.KIND_REGISTRY||{},i=[{id:"p-co-system",slug:"agent-co-system-v3",kind:"system",tags:["brand","voice"],language:"de",activeVersion:"v3.2",tokens:487,runs30d:4832,body:`You are Client Orchestrator (CO). Run a structured 4-tier interview with {{client_name}} from the {{industry}} industry.

Keep the tone calm, structured, and competence-signaling. Never close-end on tier 1.

Tier 1 \u2014 discovery (3 questions max):
  \xB7 What outcome would make the next 90 days a win?
  \xB7 Where do agents fit on the priority list today?
  \xB7 Who else should be in the room?

Tier 2..4 follow the same shape but go deeper per branch detected.

Output: GOAL_BRIEF.md + CLIENT_ACCOUNTS.md.`,variables:["client_name","industry","goal_focus"],models:["gemini-2.5-flash","claude-opus-4-7"],versions:[{v:"v3.2",ago:"2d ago",author:"Alex",note:"Shorter + industry dynamic"},{v:"v3.1",ago:"12d ago",author:"Tobias",note:"Spelling + tonality"},{v:"v3.0",ago:"1mo ago",author:"Alex",note:"Structured 4-tier question shape"},{v:"v2.4",ago:"3mo ago",author:"Alex",note:"Archive \xB7 pre-restructure"}],abTest:{control:"v3.2",experimental:"v3.3-exp",controlSplit:60,experimentalSplit:40,controlScore:.78,experimentalScore:.81,n:287},usedBy:["Client Orchestrator"]},{id:"p-brand-voice",slug:"brand-voice-formal-de",kind:"template",tags:["brand","voice"],language:"de",activeVersion:"v1.5",tokens:142,runs30d:12480,body:`Voice: technical \xB7 confident \xB7 terse.

Use: agents \xB7 builders \xB7 platform \xB7 context \xB7 deploy.
Don't use: chatbots \xB7 users \xB7 solution \xB7 knowledge base \xB7 launch.

Headlines short. Imperative when possible. Body sentence-case + direct.`,variables:[],models:["gemini-2.5-flash","claude-opus-4-7"],versions:[{v:"v1.5",ago:"5d ago",author:"Tobias",note:"Sharpened do/don't pairs"},{v:"v1.4",ago:"3w ago",author:"Tobias",note:"Initial public draft"}],usedBy:["Client Orchestrator","Cold-Email Personalizer","Prospect Intel","Brand Canvas","Blog Writer","Podcast Brief","Social Content","Action Pack Gen"]},{id:"p-cold-email-cta",slug:"cold-email-cta-v4",kind:"per_step",tags:["experimental"],language:"en",activeVersion:"v4",tokens:86,runs30d:1820,body:`CTA shape:

1. One sentence that names the recipient's outcome (not your product).
2. One sentence that proves you've done the homework (one specific fact).
3. One sentence that offers a 15-min walkthrough next Tuesday or Thursday.

No "circling back". No "quick chat". No "synergies".`,variables:["recipient_name","recipient_signal"],models:["gemini-2.5-flash"],versions:[{v:"v4",ago:"1d ago",author:"Alex",note:"Reply rate 14 \u2192 22 % in pilot"},{v:"v3",ago:"8d ago",author:"Alex",note:"Tightened the homework sentence"}],abTest:{control:"v4",experimental:"v5-exp",controlSplit:50,experimentalSplit:50,controlScore:.22,experimentalScore:.26,n:412},usedBy:["Cold-Email Personalizer"]},{id:"p-pics-style",slug:"pics-style-axes-prompt",kind:"template",tags:["experimental"],language:"en",activeVersion:"v1.2",tokens:218,runs30d:8820,body:`A {{composition}} on {{background}}, shot with a {{camera}}, lit by {{lighting}}.

Keep the subject's face the focal point. No surreal artifacts. No extra limbs. Skin natural, no over-smoothing.`,variables:["composition","background","camera","lighting"],models:["flux-1.5-pro"],versions:[{v:"v1.2",ago:"4d ago",author:"Alex",note:"Skin guardrail added"},{v:"v1.1",ago:"12d ago",author:"Alex",note:"4 axes"}],usedBy:[".pics Studio"]},{id:"p-safety-base",slug:"safety-guardrail-base",kind:"guardrail",tags:["safety"],language:"multi",activeVersion:"v2.1",tokens:312,runs30d:24180,body:`Refuse: sexual content involving minors \xB7 weapons synthesis \xB7 self-harm instructions.

Flag for review: claims of medical / legal / financial advice without disclaimer.

Log: every refusal with category + run_id.`,variables:[],models:["gemini-2.5-flash","claude-opus-4-7","flux-1.5-pro"],versions:[{v:"v2.1",ago:"14d ago",author:"alex (admin-only)",note:"Added flag-not-refuse for medical disclaimers"},{v:"v2.0",ago:"2mo ago",author:"alex (admin-only)",note:"Multi-language reference table"}],usedBy:["Client Orchestrator","Cold-Email Personalizer","Prospect Intel","Action Pack Gen",".pics Studio","Blog Writer"]},{id:"p-ri-system",slug:"agent-ri-system-v2",kind:"system",tags:[],language:"de",activeVersion:"v2.0",tokens:612,runs30d:1840,body:"You are Research Initiator (RI). Take a goal brief and produce 5 evidence-backed hypotheses worth testing this quarter\u2026",variables:["goal_brief"],models:["claude-opus-4-7"],versions:[{v:"v2.0",ago:"3w ago",author:"Tobias",note:"Initial"}],usedBy:["Research Initiator"]},{id:"p-output-goalbrief",slug:"output-schema-goal-brief",kind:"output_schema",tags:[],language:"multi",activeVersion:"v1",tokens:142,runs30d:4820,body:'{ "client": { "name": str, "industry": str }, "outcome_focus": str, "tier_questions": [ \u2026 ], "next_steps": [str] }',variables:[],models:["gemini-2.5-flash","claude-opus-4-7"],versions:[{v:"v1",ago:"1mo ago",author:"Alex",note:"Initial schema"}],usedBy:["Client Orchestrator"]},{id:"p-fewshot-co",slug:"fewshot-co-interview-examples",kind:"fewshot_example",tags:[],language:"de",activeVersion:"v1.1",tokens:1420,runs30d:4820,body:`[Example 1]
client: ACME GmbH
industry: SaaS
output: { \u2026 }

[Example 2] \u2026`,variables:[],models:["gemini-2.5-flash"],versions:[{v:"v1.1",ago:"8d ago",author:"Alex",note:"Added Mittelstand example"},{v:"v1.0",ago:"1mo ago",author:"Alex",note:"Initial 3 examples"}],usedBy:["Client Orchestrator"]}];o.intelPrompts={id:"intelPrompts",label:"Prompts",workspaceLabel:"Prompt Library",workspaceIcon:"edit_note",description:"Versioned registry of every prompt every agent uses. Diff / A/B / rollback / RBAC-gated.",defaultView:"promptLibrary",defaultDetail:"none",agentTreatment:"provenance",primaryAction:{label:"New prompt",kind:"primary",icon:"add"},secondaryActions:[{label:"Import",icon:"upload_file"},{label:"Audit log",icon:"history"}],heroKpis:[{label:"Prompts",value:String(i.length),trend:"flat"},{label:"Active A/B",value:String(i.filter(a=>a.abTest).length),trend:"flat"},{label:"Runs \xB7 30 d",value:i.reduce((a,c)=>a+c.runs30d,0).toLocaleString("en-US"),delta:"+8 %",trend:"up"},{label:"Languages",value:"de \xB7 en \xB7 multi",trend:"flat"},{label:"Tokens \xB7 total",value:i.reduce((a,c)=>a+c.tokens,0).toLocaleString("en-US")+"t",trend:"flat"}],schema:[],mockItems:[],prompts:i};const n=(window.STREAMS||{}).intelligence;if(n&&n.subPages&&!n.subPages.find(a=>a.id==="prompts")){const a=n.subPages.findIndex(c=>c.id==="vault");n.subPages.splice(a+1,0,{id:"prompts",label:"Prompts",kind:"intelPrompts"})}o.selectAgents&&(o.selectAgents.defaultView="agentCatalog",o.selectAgents.defaultDetail="none",o.selectAgents.description="47 agents \xB7 7 departments \xB7 tier-gated \xB7 click any card for the 6-tab detail.")})();var AGENTS=[{id:"ag-co",code:"CO",name:"Client Orchestrator",role:"Step 1 \xB7 Goal definition",department:"Intake",tier:"free",rating:4.2,ratings:287,credits:2,runs30d:4832,costEur:"0,04",successRate:98,p95:"12,4 s",activeRuns:2,queueDepth:0,lastFailure:"2d ago",description:"Runs a structured 4-tier interview to surface goal, branch, and stakeholders. Produces GOAL_BRIEF and CLIENT_ACCOUNTS.",outputs:["GOAL_BRIEF.md","CLIENT_ACCOUNTS.md"],model:"gemini-2.5-flash",maxTokens:4096,temp:.2,prompts:[{id:"p-co-system",kind:"system",slug:"agent-co-system-v3",activeVersion:"v3.2"},{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"},{id:"p-output-goalbrief",kind:"output_schema",slug:"output-schema-goal-brief",activeVersion:"v1"},{id:"p-fewshot-co",kind:"fewshot_example",slug:"fewshot-co-interview-examples",activeVersion:"v1.1"},{id:"p-safety-base",kind:"guardrail",slug:"safety-guardrail-base",activeVersion:"v2.1"}],skills:["structured-interview-extractor","client-name-parser","industry-classifier","goal-rewriter","tier-router","question-debrancher","stakeholder-mapper","consent-checker","timezone-resolver","followup-suggester","goal-deduper","closing-summary"],contextPersonal:["user.role","user.industry","user.timezone"],contextCompany:["org.brand_voice","org.products[]"],recentRuns:[{id:"run-4827",status:"ok",note:"12 interviews \xB7 4 hot leads",ago:"2 h"},{id:"run-4826",status:"warn",note:"1 retry on tier 3",ago:"4 h"},{id:"run-4818",status:"ok",note:"standard run",ago:"yesterday"}]},{id:"ag-gr",code:"GR",name:"Goal Refiner",role:"Step 2 \xB7 Goal sharpening",department:"Intake",tier:"pro",rating:4.6,ratings:142,credits:4,runs30d:1812,costEur:"0,08",successRate:97,p95:"8,2 s",activeRuns:0,queueDepth:1,lastFailure:"5d ago",description:"Takes a GOAL_BRIEF and sharpens it into 3 outcome-focused statements with measurable signals.",outputs:["GOAL_SHARPENED.md"],model:"claude-opus-4-7",maxTokens:4096,temp:.3,prompts:[{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"}],skills:["outcome-statement-writer","measurable-signal-finder","priority-ranker"],contextPersonal:["user.role"],contextCompany:["org.kpis[]"],recentRuns:[{id:"run-4820",status:"ok",note:"sharpened 3 of 3",ago:"8 h"}]},{id:"ag-ri",code:"RI",name:"Research Initiator",role:"Step 1 \xB7 Hypotheses",department:"Strategy",tier:"pro",rating:4.8,ratings:184,credits:6,runs30d:1840,costEur:"0,12",successRate:96,p95:"18,4 s",activeRuns:1,queueDepth:0,lastFailure:"7d ago",description:"Generates 5 evidence-backed hypotheses worth testing this quarter, with sourced citations.",outputs:["HYPOTHESES.md","SOURCES.md"],model:"claude-opus-4-7",maxTokens:8192,temp:.4,prompts:[{id:"p-ri-system",kind:"system",slug:"agent-ri-system-v2",activeVersion:"v2.0"},{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"}],skills:["hypothesis-generator","source-citer","priority-ranker","evidence-validator"],contextPersonal:["user.industry"],contextCompany:["org.products[]","org.competitors[]"],recentRuns:[{id:"run-4811",status:"ok",note:"5 hypotheses \xB7 18 sources",ago:"1d"}]},{id:"ag-ap",code:"AP",name:"AP-Reconciliation",role:"Belege auto-match",department:"Intelligence",tier:"pro",rating:4.8,ratings:412,credits:1,runs30d:4180,costEur:"0,001",successRate:99,p95:"12,4 s",activeRuns:1,queueDepth:0,lastFailure:"12d ago",description:"Match incoming Stripe invoices to your AP ledger using fuzzy / exact / embedding strategies. Auto-decides per confidence.",outputs:["MATCH_REPORT.md","MATCHED.csv"],model:"gemini-2.5-flash",maxTokens:4096,temp:.2,prompts:[{id:"p-safety-base",kind:"guardrail",slug:"safety-guardrail-base",activeVersion:"v2.1"}],skills:["fuzzy-match","embedding-rerank","stripe-invoice-fetch","decision-branch-logger","email-summarizer","csv-emitter"],contextPersonal:["user.timezone","user.email"],contextCompany:["org.iban","org.vat_id"],recentRuns:[{id:"run-4827",status:"ok",note:"12 matches \xB7 \u20AC24.840",ago:"2 h"}]},{id:"ag-mp",code:"MP",name:"Meeting-Prep",role:"Briefing pre-meeting",department:"Intelligence",tier:"free",rating:4.6,ratings:318,credits:1,runs30d:3140,costEur:"0,002",successRate:98,p95:"6,8 s",activeRuns:0,queueDepth:0,lastFailure:"4d ago",description:"Generate a meeting briefing with attendee context, agenda, and follow-up prompts.",outputs:["BRIEFING.md"],model:"gemini-2.5-flash",maxTokens:2048,temp:.3,prompts:[],skills:["calendar-fetch","attendee-enrich","agenda-extract"],contextPersonal:["user.calendar","user.role"],contextCompany:["org.crm"],recentRuns:[{id:"run-4824",status:"ok",note:"1 briefing \xB7 4 attendees",ago:"1 h"}]},{id:"ag-ce",code:"CE",name:"Cold-Email Personalizer",role:"Per-recipient CTA",department:"Execution",tier:"pro",rating:4.1,ratings:218,credits:1,runs30d:1820,costEur:"0,003",successRate:94,p95:"4,2 s",activeRuns:3,queueDepth:2,lastFailure:"1d ago",description:"Generate per-recipient cold-email CTAs based on signals scraped from LinkedIn + company blog.",outputs:["EMAILS.csv"],model:"gemini-2.5-flash",maxTokens:1024,temp:.5,prompts:[{id:"p-cold-email-cta",kind:"per_step",slug:"cold-email-cta-v4",activeVersion:"v4"},{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"}],skills:["signal-extractor","linkedin-scraper","homework-sentence-writer","tuesday-thursday-suggester"],contextPersonal:["user.email","user.role"],contextCompany:["org.products[]","org.icp"],recentRuns:[{id:"run-4822",status:"warn",note:"142 sent \xB7 4 bounced",ago:"6 h"}]},{id:"ag-pi",code:"PI",name:"Prospect Intel",role:"Account research brief",department:"Sales",tier:"pro",rating:4.4,ratings:92,credits:3,runs30d:612,costEur:"0,06",successRate:95,p95:"14,8 s",activeRuns:0,queueDepth:0,lastFailure:"14d ago",description:"Build a 1-pager on a prospect account: news, hires, product launches, funding, key contacts.",outputs:["PROSPECT_BRIEF.md"],model:"claude-opus-4-7",maxTokens:4096,temp:.3,prompts:[{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"}],skills:["news-fetcher","funding-tracker","contact-finder"],contextPersonal:[],contextCompany:["org.icp","org.crm"],recentRuns:[{id:"run-4801",status:"ok",note:"Acme Dynamics brief \xB7 12 contacts",ago:"3d"}]},{id:"ag-sx",code:"SX",name:"Schema-X Validator",role:"Validate output schemas",department:"Infrastructure",tier:"team",rating:4.9,ratings:38,credits:0,runs30d:24180,costEur:"0,000",successRate:100,p95:"0,2 s",activeRuns:12,queueDepth:0,lastFailure:"38d ago",description:"Validate every agent's output against its declared schema. Fail-loud on drift.",outputs:["VALIDATION_REPORT.json"],model:"gemini-2.5-flash",maxTokens:1024,temp:0,prompts:[],skills:["schema-diff","typescript-zod-validator"],contextPersonal:[],contextCompany:[],recentRuns:[{id:"run-4827",status:"ok",note:"pass",ago:"2 h"}]},{id:"ag-bw",code:"BW",name:"Blog Draft Writer",role:"Long-form essays",department:"Content",tier:"pro",rating:4.3,ratings:88,credits:4,runs30d:38,costEur:"0,08",successRate:92,p95:"24 s",activeRuns:1,queueDepth:0,lastFailure:"2d ago",description:"Take a source (article + notes + transcript) and produce a 1.500-word blog draft in our voice.",outputs:["DRAFT.md"],model:"claude-opus-4-7",maxTokens:8192,temp:.6,prompts:[{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"}],skills:["outline-generator","transition-writer","headline-finalizer"],contextPersonal:["user.role"],contextCompany:["org.brand_voice"],recentRuns:[{id:"run-4814",status:"warn",note:"draft 2.180 words \xB7 needs trim",ago:"12 h"}]},{id:"ag-pb",code:"PB",name:"Podcast Brief",role:"Daily 5-min show",department:"Content",tier:"free",rating:4.7,ratings:184,credits:2,runs30d:184,costEur:"0,04",successRate:96,p95:"18,4 s",activeRuns:0,queueDepth:0,lastFailure:"8d ago",description:"Daily 5-minute AI brief from the 24h news stream. Outputs script + show notes.",outputs:["SCRIPT.md","SHOW_NOTES.md"],model:"gemini-2.5-flash",maxTokens:2048,temp:.5,prompts:[{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"}],skills:["news-ranker","script-formatter","chapter-marker"],contextPersonal:[],contextCompany:["org.editorial_calendar"],recentRuns:[{id:"run-4823",status:"ok",note:"Episode 184 \xB7 5:24",ago:"8 h"}]},{id:"ag-sc",code:"SC",name:"Social Content",role:"LinkedIn / X / Mastodon",department:"Content",tier:"pro",rating:4.2,ratings:64,credits:1,runs30d:412,costEur:"0,02",successRate:97,p95:"6,8 s",activeRuns:1,queueDepth:0,lastFailure:"3d ago",description:"Take a source and emit per-platform variants with character counts + hashtag suggestions.",outputs:["LINKEDIN.md","X.md","MASTODON.md"],model:"gemini-2.5-flash",maxTokens:1024,temp:.5,prompts:[{id:"p-brand-voice",kind:"template",slug:"brand-voice-formal-de",activeVersion:"v1.5"}],skills:["platform-formatter","hashtag-suggester","character-counter"],contextPersonal:[],contextCompany:["org.brand_voice"],recentRuns:[{id:"run-4819",status:"ok",note:"3 variants \xB7 scheduled",ago:"6 h"}]},{id:"ag-pics",code:"PX",name:".pics Studio",role:"LoRA prompt engine",department:"Execution",tier:"pro",rating:4.5,ratings:1240,credits:4,runs30d:8820,costEur:"0,18",successRate:94,p95:"24 s",activeRuns:4,queueDepth:8,lastFailure:"1d ago",description:"Compose LoRA prompts from 4 axes (background \xD7 composition \xD7 camera \xD7 lighting) and emit 4 candidate images.",outputs:["IMAGES.zip","MANIFEST.json"],model:"flux-1.5-pro",maxTokens:256,temp:.7,prompts:[{id:"p-pics-style",kind:"template",slug:"pics-style-axes-prompt",activeVersion:"v1.2"},{id:"p-safety-base",kind:"guardrail",slug:"safety-guardrail-base",activeVersion:"v2.1"}],skills:["lora-prompt-composer","axis-multiplier","candidate-ranker","skin-guardrail"],contextPersonal:["user.face_lora"],contextCompany:[],recentRuns:[{id:"run-4825",status:"ok",note:"12 images \xB7 0.91 avg score",ago:"4 h"}]}];typeof K<"u"&&K.selectAgents&&(K.selectAgents.agentsFull=AGENTS);
