@mcpjam/inspector 3.27.0 → 3.27.2

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.
Files changed (44) hide show
  1. package/dist/client/assets/{CaniuseCapabilityPage-CXmikV_v.js → CaniuseCapabilityPage-BGCx_CV1.js} +4 -4
  2. package/dist/client/assets/{CaniuseLoadingScreen-CISUL_K4.js → CaniuseLoadingScreen-CnLJTk-6.js} +2 -2
  3. package/dist/client/assets/{PosthogUtils-E_cG1Twh.js → PosthogUtils-BnkWsJl1.js} +1 -1
  4. package/dist/client/assets/{PosthogUtils-DE_PkwDN.js → PosthogUtils-CreNC30F.js} +2 -2
  5. package/dist/client/assets/{access-link-C0MWhbv8.js → access-link-CiqZlBT_.js} +2 -2
  6. package/dist/client/assets/{app-bootstrap-DfSpCiag.js → app-bootstrap-Dihy9pBm.js} +328 -328
  7. package/dist/client/assets/{app-navigation-BQGUR9cb.js → app-navigation-BzZWduTQ.js} +2 -2
  8. package/dist/client/assets/{bundle-mjs-DKP7sq7T.js → bundle-mjs-C4gHyVze.js} +2 -2
  9. package/dist/client/assets/{caniuse-bootstrap-D6d1Susz.js → caniuse-bootstrap-DClGA--s.js} +3 -3
  10. package/dist/client/assets/{chunk-D32TOXHM-D2CUPCH8.js → chunk-D32TOXHM-BM6p8aoA.js} +5 -5
  11. package/dist/client/assets/{dead-clicks-autocapture-DvbdThCp.js → dead-clicks-autocapture-DMIvXYDI.js} +2 -2
  12. package/dist/client/assets/{error-reporting-B_hxqtsN.js → error-reporting-BufzMdax.js} +1 -1
  13. package/dist/client/assets/{error-reporting-CJClTLWK.js → error-reporting-C3V1rL02.js} +2 -2
  14. package/dist/client/assets/{exception-autocapture-CkcPU7XW.js → exception-autocapture-D42Ql1CZ.js} +2 -2
  15. package/dist/client/assets/{feature-flags-BUIQpHKT.js → feature-flags-9Kzm95Iy.js} +3 -3
  16. package/dist/client/assets/{first-run-oauth-return-l9GCZrqg.js → first-run-oauth-return-DBF8M446.js} +2 -2
  17. package/dist/client/assets/{highlighted-body-KQOG7T2V-uT92T9zL.js → highlighted-body-KQOG7T2V-BDDk3j-o.js} +2 -2
  18. package/dist/client/assets/{index-ByP2kceG.js → index-CB2B0gyI.js} +3 -3
  19. package/dist/client/assets/{jszip.min-C5LLiUXa.js → jszip.min-D0H-wysy.js} +2 -2
  20. package/dist/client/assets/{mcp-init-BIoRq6yl.js → mcp-init-D384t3us.js} +3 -3
  21. package/dist/client/assets/{mermaid-MCJ5UELQ-BCP5Oj92.js → mermaid-MCJ5UELQ-DXZIWzsB.js} +1 -1
  22. package/dist/client/assets/{module-Wq_OenZL.js → module-BHBrpZ4U.js} +2 -2
  23. package/dist/client/assets/{module-D3s7YCoh.js → module-CmXaunIz.js} +1 -1
  24. package/dist/client/assets/posthog-bundled-extensions-CrY82kI1.js +3 -0
  25. package/dist/client/assets/{posthog-bundled-extensions-BIjySVP-.js → posthog-bundled-extensions-DUscOFM-.js} +1 -1
  26. package/dist/client/assets/{posthog-recorder-DTh3r-Ko.js → posthog-recorder-PnXQoK1P.js} +2 -2
  27. package/dist/client/assets/{preload-helper-BN6vHXe1.js → preload-helper-Dk-R02bM.js} +1 -1
  28. package/dist/client/assets/{project-route-CjZmQY5n.js → project-route-CwOywjoT.js} +2 -2
  29. package/dist/client/assets/{react-dom-DtL8G3gn.js → react-dom-s4nupq_N.js} +2 -2
  30. package/dist/client/assets/{rolldown-runtime-KtSMB9jY.js → rolldown-runtime-Df2-koJ7.js} +1 -1
  31. package/dist/client/assets/{server-feature-flags-wgvQSqd5.js → server-feature-flags-ByZjY7fi.js} +2 -2
  32. package/dist/client/assets/{server-feature-flags-BBH-SYjw.js → server-feature-flags-CqB4sk67.js} +1 -1
  33. package/dist/client/assets/{session-revoked-HpzxsCkX.js → session-revoked-B_iZLaTD.js} +2 -2
  34. package/dist/client/assets/{surveys-BYfLymeD.js → surveys-B4xlE-Cz.js} +2 -2
  35. package/dist/client/assets/telemetry-files-620cc3a6060f3829.js +1 -0
  36. package/dist/client/assets/{trace-timeline-BFtz0cI8.js → trace-timeline-BEzP_FzL.js} +1 -1
  37. package/dist/client/assets/{trace-timeline-CRxEZYCU.js → trace-timeline-BWWuYM0j.js} +2 -2
  38. package/dist/client/assets/{web-vitals-C1IvwuFq.js → web-vitals-jdhe8VpD.js} +2 -2
  39. package/dist/client/index.html +12 -12
  40. package/dist/server/harness-install-cli.js +3 -3
  41. package/dist/server/index.js +2 -2
  42. package/package.json +2 -2
  43. package/dist/client/assets/posthog-bundled-extensions-CQjB_Dfr.js +0 -3
  44. package/dist/client/assets/telemetry-files-5758eea65e761de9.js +0 -1
@@ -1,4 +1,4 @@
1
- import{o as qS}from"./rolldown-runtime-KtSMB9jY.js";import{Dt as zS,M as jS,N as wf}from"./PosthogUtils-DE_PkwDN.js";import{n as FS}from"./react-dom-DtL8G3gn.js";import{$ as B,Ct as HS,D as ks,Dt as BS,Et as kf,F as VS,G as GS,J as ze,K as Ef,L as KS,M as Kr,N as JS,O as Na,P as qd,Q as WS,R as ls,U as Hi,X as Tf,_t as f,at as Af,bt as Ke,c as YS,ct as De,dt as j,f as XS,ft as Je,h as bo,ht as xe,i as QS,it as ZS,k as ew,kt as tw,l as rw,m as sw,mt as Rf,n as nw,o as iw,ot as ow,p as aw,pt as If,q as cw,r as lw,rt as Cf,s as dw,st as te,tt as me,u as zd,ut as ye,w as Pf,xt as Of,yt as $e}from"./mcp-init-BIoRq6yl.js";import{p as uw}from"./module-Wq_OenZL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.27.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="de19f4bf-7f40-4d12-8c76-1c78a86184d4",e._sentryDebugIdIdentifier="sentry-dbid-de19f4bf-7f40-4d12-8c76-1c78a86184d4")}catch{}})();var pw={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"},Dp;Dp||(Dp={});function hw(e){return BS(cw,e)}var So=qS(FS(),1);function Cl(e){return Array.isArray(e)?e.map(Cl):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>[t,Cl(r)])):e}function cr(e){return JSON.stringify(Cl(e))}function m$(e,t){if(t==="openai-apps"){const s=e;return typeof s?.type=="string"?s.type.replace("openai:",""):"unknown"}const r=e;return typeof r?.method=="string"?r.method:r?.result!==void 0?"result":r?.error!==void 0?"error":"unknown"}var mw=e=>e;function fw(e,t=mw){const r=So.useSyncExternalStore(e.subscribe,So.useCallback(()=>t(e.getState()),[e,t]),So.useCallback(()=>t(e.getInitialState()),[e,t]));return So.useDebugValue(r),r}var Up=e=>{const t=zS(e),r=s=>fw(t,s);return Object.assign(r,t),r},gw=(e=>e?Up(e):Up),f$=Object.freeze({maxObservations:24,maxSummaryChars:400,maxEvidenceRefs:8,maxEvidenceRefChars:200,maxModelIdChars:128,maxVersionChars:64}),g$=Object.freeze({status:"not-requested",reason:"not_requested",detail:"this run did not request model-backed observations, so nothing was charged"}),vw="missingInputMessage";function $p(e){if(!(!e||typeof e!="object"||!("missingInput"in e)))switch(e.missingInput){case"tasksProbe":case"logProbe":case"inputRequiredProbe":case"toolCallProbe":case"login":case"protocolVersion":return e.missingInput;default:return}}function jd(e){if(e.status!=="skipped"||e.skipReason!=="could-not-run")return;const t=e.details,r=$p(t)??$p(t&&typeof t=="object"&&"details"in t?t.details:void 0);if(r)return r;const s=typeof e.id=="string"?e.id:"",n=xf(e.error);if(s.startsWith("tasks-")&&(n.startsWith("no probe tool could be selected automatically:")||n.startsWith("no listed tool advertises `execution.taskSupport`")))return"tasksProbe";if(s==="modern-logs-require-log-level"&&n.startsWith("No logProbe configured"))return"logProbe";if(s==="modern-undeclared-capability-error"&&n.startsWith("No inputRequiredProbe configured"))return"inputRequiredProbe";if(s==="modern-tool-output-schema-conformant"&&/^\d+ tool\(s\) declare an outputSchema, but no tools\/call fixture was configured:/.test(n))return"toolCallProbe"}function Mf(e){return jd(e)!==void 0}function yw(e){return e==="login"||e==="protocolVersion"}var _w={tasksProbe:"Select a tool that creates a task in setup, then run again.",logProbe:"Select a tool that emits logs in setup, then run again.",inputRequiredProbe:"Select a tool that asks for input in setup, then run again.",toolCallProbe:"Select a tool to check output in setup, then run again.",login:"This server needs a login. Log in, then run again.",protocolVersion:"This server doesn't support the protocol version this run uses. Run it on a version the server supports."};function qp(e){if(!e||typeof e!="object")return;const t=e[vw];return typeof t=="string"&&t.trim()?t:void 0}function v$(e){const t=jd(e);if(!t)return;const r=e.details;return qp(r)??qp(r&&typeof r=="object"&&"details"in r?r.details:void 0)??_w[t]}var bw=/^(?:the probed tool )?("(?:[^"\\]|\\.)*") returned a normal result/;function y$(e){if(e.status!=="skipped"||e.skipReason!=="could-not-run"||typeof e.id!="string"||!e.id.startsWith("tasks-"))return;const t=bw.exec(xf(e.error));if(!t)return;let r;try{r=JSON.parse(t[1])}catch{return}if(typeof r=="string")return Sw(r)}function Sw(e){return`"${e}" did not create a task, so there was nothing to check. Select a tool that creates a task in setup, or change its arguments so it does, then run again.`}function xf(e){return typeof e=="string"?e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:""}function La(e){return e.status==="skipped"&&e.skipReason==="could-not-run"}function Nf(e){return e.status==="skipped"&&e.skipReason!=="could-not-run"}function Lf(e){if(e.some(s=>s.status==="failed"))return{outcome:"failed"};const t=e.filter(s=>{if(!La(s))return!1;const n=jd(s);return n===void 0||yw(n)});if(t.length===0)return e.length===0?{outcome:"incomplete",incompleteReason:"no checks were selected, so this run establishes nothing"}:e.every(Mf)?{outcome:"incomplete",incompleteReason:"every selected check needs input from setup, so this run establishes nothing"}:{outcome:"passed"};const r=Array.from(new Set(t.map(s=>s.error?.message??"reason unavailable")));return{outcome:"incomplete",incompleteReason:`${t.length} of ${e.length} selected check(s) could not run, so this run does not establish conformance (${t.map(s=>s.id).join(", ")}): ${r.join(" ")}`}}function Df(e){const t=e.filter(i=>i.status==="passed").length,r=e.filter(i=>i.status==="failed").length,s=e.filter(La).length,n=e.filter(Nf).length;return`${t}/${e.length} checks passed, ${r} failed, ${s} could not run, ${n} not applicable`}var _$=Object.freeze({toolNameMaxChars:128,maxFeatureClaims:10,maxToolCalls:2}),ww=/^[A-Za-z]:[\\/]/,kw=/[\u0000-\u001f\u007f]/,Ew=new TextEncoder;function Tw(e){return Ew.encode(e).length}function Aw(e){let t=e.length;for(;t>0;){const r=e[t-1];if(r!=="."&&r!==" ")break;t-=1}return e.slice(0,t)}function Uf(e){if(typeof e!="string"||e.length===0)return{ok:!1,code:"PATH_EMPTY",message:"path is empty"};if(e.includes("\0"))return{ok:!1,code:"PATH_NUL_BYTE",message:"path contains a NUL byte"};if(kw.test(e))return{ok:!1,code:"PATH_INVALID_CHARACTER",message:"path contains control characters"};if(e.startsWith("/")||e.startsWith("\\")||ww.test(e))return{ok:!1,code:"PATH_ABSOLUTE",message:`absolute paths are not allowed: "${e}"`};const t=e.replace(/\\/g,"/").split("/").filter(r=>r!==""&&r!==".");for(const r of t){if(r==="..")return{ok:!1,code:"PATH_TRAVERSAL",message:`path traversal ("..") is not allowed: "${e}"`};if(r.includes(":"))return{ok:!1,code:"PATH_INVALID_CHARACTER",message:`path segments must not contain ":" (drive prefix / alternate data stream): "${e}"`};const s=Aw(r);if(s===""||s==="."||s==="..")return{ok:!1,code:"PATH_INVALID_CHARACTER",message:`path segment "${r}" is not portable (empty or dot name after trailing dot/space stripping)`}}return t.length===0?{ok:!1,code:"PATH_EMPTY",message:"path is empty"}:{ok:!0,path:t.join("/").normalize("NFC")}}function Rw(e){return e.normalize("NFKC").toLowerCase()}function wo(e,t){return t===e||t.startsWith(`${e}/`)}function on(e,t){const r=Uf(t);return r.ok?{ok:!0,path:e===""?r.path:`${e}/${r.path}`}:r.code==="PATH_ABSOLUTE"||r.code==="PATH_TRAVERSAL"?{ok:!1,code:"PATH_ESCAPES_ROOT",message:`referenced path escapes the bundle root: "${t}"`}:r}function Iw(e,t,r){e.length>t.maxEntries&&r.error("BUNDLE_TOO_MANY_ENTRIES",`bundle has ${e.length} entries; the limit is ${t.maxEntries}`);const s=new Set,n=new Map,i=[];let o=0,a=!1;for(const c of e){if(c.kind==="symlink"||c.kind==="hardlink"){r.error("PATH_LINK_ENTRY",`${c.kind} entries are not allowed`,{path:c.path});continue}const l=Uf(c.path);if(!l.ok){r.error(l.code,l.message,{path:c.path});continue}const u=l.path;if(Tw(u)>t.maxPathBytes){r.error("PATH_TOO_LONG",`path exceeds ${t.maxPathBytes} bytes`,{path:u});continue}if(u.split("/").length>t.maxPathDepth){r.error("PATH_TOO_DEEP",`path exceeds nesting depth ${t.maxPathDepth}`,{path:u});continue}if(s.has(u)){r.error("PATH_DUPLICATE",`duplicate normalized path: "${u}"`,{path:c.path});continue}s.add(u);const d=Rw(u),h=n.get(d);if(h!==void 0){r.error("PATH_CASE_COLLISION",`"${u}" collides with "${h}" on case-insensitive filesystems`,{path:u});continue}if(n.set(d,u),c.kind!=="directory"){if(!Number.isFinite(c.size)||c.size<0){r.error("FILE_SIZE_MISMATCH","entry declares an invalid size",{path:u});continue}if(c.size>t.maxFileBytes){r.error("FILE_TOO_LARGE",`file exceeds the per-file limit of ${t.maxFileBytes} bytes`,{path:u});continue}o+=c.size,!a&&o>t.maxTotalBytes&&(a=!0,r.error("BUNDLE_TOO_LARGE",`total uncompressed content exceeds ${t.maxTotalBytes} bytes`)),i.push({sourcePath:c.path,path:u,size:c.size,executable:((c.mode??0)&73)!==0})}}return i.sort((c,l)=>c.path<l.path?-1:c.path>l.path?1:0),i}var Pl=class extends Error{code;issues;constructor(e){const t=e.find(s=>s.severity==="error"),r=t?.code??"MANIFEST_INVALID_FIELD";super(t?`plugin bundle validation failed: ${t.code}: ${t.message}`:"plugin bundle validation failed"),this.name="PluginBundleError",this.code=r,this.issues=e}},qs=class{all=[];error(e,t,r){this.all.push({code:e,severity:"error",message:t,...r})}warn(e,t,r){this.all.push({code:e,severity:"warning",message:t,...r})}hasErrors(){return this.all.some(e=>e.severity==="error")}issues(){return[...this.all]}warnings(){return this.all.filter(e=>e.severity==="warning")}throwIfErrors(){if(this.hasErrors())throw new Pl(this.issues())}absorbDemoted(e){for(const t of e.issues())this.all.push(t.severity==="error"?{...t,severity:"warning"}:t)}firstErrorMessage(){return this.all.find(e=>e.severity==="error")?.message}};var Bi=/(secret|token|password|passwd|api[-_]?key|private[-_]?key|credential)/i,$f=/(bearer\s+\S|-----BEGIN|\b(?:sk|pk|rk|xox[a-z])-[A-Za-z0-9]|[a-z][a-z0-9+.-]*:\/\/[^/\s:@]*:[^/\s@]+@|[A-Za-z0-9+/_-]{40,})/i;function Da(e){return $f.test(e)}var pi=Symbol("drop");function Ol(e,t,r,s,n){if(r>32)return n.reportedTooDeep||(n.reportedTooDeep=!0,s.issues.error("VALUE_TOO_DEEP",`${s.label}: field "${t}" nests deeper than 32 levels`,s.context)),pi;if(typeof e=="string")return $f.test(e)?(s.issues.warn(s.secretCode,`${s.label}: value of "${t}" looks secret-bearing and is not stored`,s.context),pi):e;if(typeof e=="number"||typeof e=="boolean"||e===null)return e;if(Array.isArray(e)){const i=[];for(let o=0;o<e.length;o++){const a=Ol(e[o],`${t}[${o}]`,r+1,s,n);a!==pi&&i.push(a)}return i}if(typeof e=="object"){const i={};for(const[o,a]of Object.entries(e)){const c=t===""?o:`${t}.${o}`;if(Bi.test(o)){s.issues.warn(s.secretCode,`${s.label}: field "${c}" looks secret-bearing and is not stored`,s.context);continue}const l=Ol(a,c,r+1,s,n);l!==pi&&(i[o]=l)}return i}return pi}function Ua(e,t){return Ol(e,"",0,t,{reportedTooDeep:!1})}function qf(e){return["localhost","[::1]","::1"].includes(e)||/^127(?:\.\d{1,3}){3}$/.test(e)}var Fd=(e,t)=>!/^[^:/?#]+:\/\/[^\\/?#]/.test(e)||/^[^:]*:[\\/]*[^\\/?#]*@|[\\\s]/.test(e)||t?.allowFragment!==!0&&e.includes("#")||[...e].some(r=>r<" "||r===""),Cw=/^[a-z]+(?:[-_][a-z]+)+$/i,Pw=e=>e.replace(/%(?!2f)([0-7][0-9a-f])/gi,(t,r)=>String.fromCharCode(Number.parseInt(r,16)));function Dc(e){return[e,Pw(e)].some(t=>Da(t)&&!Cw.test(t))}function Hd(e){if(e.pathname.split("/").some(Dc))return!0;const t=e.hash.slice(1);if(Dc(t))return!0;for(const r of[e.searchParams,new URLSearchParams(t)])for(const[s,n]of r)if(Dc(n)||n!==""&&Bi.test(s))return!0;return!1}function Ow(e){let t;try{t=new URL(e)}catch{return{ok:!1,code:"MCP_INVALID_SERVER",message:'"url" is not a valid URL'}}return Fd(e)?{ok:!1,code:"MCP_INVALID_SERVER",message:'"url" must be an absolute https:// URL (or a loopback http:// one) without credentials, a fragment, whitespace or backslashes'}:Hd(t)?{ok:!1,code:"MCP_INVALID_SERVER",message:'"url" looks like it carries a credential, which a plugin must not ship'}:t.protocol==="https:"?{ok:!0,loopbackHttp:!1}:t.protocol==="http:"&&qf(t.hostname)?{ok:!0,loopbackHttp:!0}:{ok:!1,code:"MCP_INSECURE_URL",message:"remote MCP servers must use HTTPS"}}function Mw(e){if(typeof e!="string")return{ok:!1,code:"MCP_INVALID_SERVER",message:'"cwd" must be a string'};const t=/^(\.|\$\{PLUGIN_ROOT\}|\$\{PLUGIN_DATA\})(?:\/(.*))?$/s.exec(e);if(t===null||t[1]==="."&&t[2]===void 0)return{ok:!1,code:"MCP_INVALID_WORKING_DIRECTORY",message:'"cwd" must start with "./", "${PLUGIN_ROOT}", or "${PLUGIN_DATA}"'};const r=t[1]==="."?"${PLUGIN_ROOT}":t[1],s=t[2]??"";if(s.replace(/[/.]/g,"")===""&&!s.includes(".."))return{ok:!0,value:r};const n=on("",s);return n.ok?{ok:!0,value:`${r}/${n.path}`}:{ok:!1,code:n.code,message:n.message}}var zf=/^\$\{[A-Za-z_][A-Za-z0-9_]*\}$/,zp=/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g,xw=/^\$\{(?:PLUGIN_ROOT|PLUGIN_DATA)\}[A-Za-z0-9._/-]*$/,jp=new Set(["PLUGIN_ROOT","PLUGIN_DATA"]),Nw=/^[A-Za-z0-9.:/@,+_-]*$/,Lw=/[A-Za-z0-9_-]{16,}/,Dw=/(authorization|token|secret|api[-_]?key|cookie|password|credential)/i;function jf(e,t){return e.name<t.name?-1:e.name>t.name?1:0}function Uw(e,t,r,s){if(r===void 0)return[];if(r===null||typeof r!="object"||Array.isArray(r))return s.error("MCP_INVALID_ENV",`server "${e}": "env" must be an object`,{componentKey:t}),null;const n=new Map,i=new Set;for(const[o,a]of Object.entries(r)){if(jp.has(o))return s.error("MCP_RESERVED_ENV_KEY",`server "${e}": env may not define "${o}" — it is client-controlled`,{componentKey:t}),null;if(typeof a!="string"){s.error("MCP_INVALID_ENV",`server "${e}": env "${o}" must be a string`,{componentKey:t});continue}if(xw.test(a)){n.set(o,{name:o,required:!1,valueTemplate:a});continue}if(a===""||zf.test(a)){n.set(o,{name:o,required:!0});continue}const c=[...a.matchAll(zp)].map(l=>l[1]).filter(l=>!jp.has(l));if(c.length>0){const l=a.replace(zp,"");if(Nw.test(l)&&!Lw.test(l)&&!Bi.test(o)){n.set(o,{name:o,required:!1,valueTemplate:a});for(const u of c)i.add(u);continue}}else if(!Bi.test(o)&&!Da(a)){n.set(o,{name:o,required:!1,value:a});continue}n.set(o,{name:o,required:!0}),s.warn("MCP_ENV_VALUE_OMITTED",`server "${e}": literal value of env "${o}" is not stored; configure it during setup`,{componentKey:t})}for(const o of i)n.has(o)||n.set(o,{name:o,required:!0});return[...n.values()].sort(jf)}function $w(e,t,r,s){if(r===void 0)return[];if(r===null||typeof r!="object"||Array.isArray(r))return s.error("MCP_INVALID_HEADERS",`server "${e}": "headers" must be an object`,{componentKey:t}),null;const n=[],i=new Set;for(const[o,a]of Object.entries(r)){if(i.has(o.toLowerCase()))return s.error("MCP_INVALID_HEADERS",`server "${e}": header "${o}" is declared more than once`,{componentKey:t}),null;if(i.add(o.toLowerCase()),typeof a!="string"){s.error("MCP_INVALID_HEADERS",`server "${e}": header "${o}" must be a string`,{componentKey:t});continue}const c=Dw.test(o);if(a===""||zf.test(a)){n.push({name:o,secret:c});continue}const l=Da(a);if(!c&&!l){n.push({name:o,secret:!1,value:a});continue}s.warn("MCP_HEADER_VALUE_OMITTED",`server "${e}": literal value of header "${o}" is not stored; configure it during setup`,{componentKey:t}),n.push({name:o,secret:c||l})}return n.sort(jf)}function qw(e,t,r,s){const n={},i=r.authentication;if(typeof i=="string"){const a=i.toLowerCase();a==="on_install"?n.timing="on_install":a==="on_use"&&(n.timing="on_use")}const o=r.oauth??(typeof i=="object"?i:void 0);if(o&&typeof o=="object"&&!Array.isArray(o)){const a=o,c=a.scopes;Array.isArray(c)&&c.every(d=>typeof d=="string")&&(n.scopes=c);const l={};for(const[d,h]of Object.entries(a))d!=="scopes"&&(l[d]=h);const u=Ua(l,{issues:s,secretCode:"MCP_SECRET_FIELD_OMITTED",label:`server "${e}": oauth`,context:{componentKey:t}});Object.keys(u).length>0&&(n.metadata=u)}return n}var zw={url:"https://developers.openai.com/plugins/deploy/submission-errors",capturedOn:"2026-11-13"},wr={plugin_manifest_missing:{table:"Plugin manifest errors",message:"ZIP must contain root `plugin.json` with a supported Agent Plugins schema, `.codex-plugin/plugin.json`, `.agent-plugin/plugin.json`, or `.claude-plugin/plugin.json` at the root or in its single top-level directory."},plugin_root_ambiguous:{table:"Plugin root errors",message:"ZIP must contain exactly one plugin root, either at the archive root or in one top-level directory."},plugin_root_has_siblings:{table:"Plugin root errors",message:"A ZIP with a top-level plugin directory must not contain sibling files."},plugin_name_missing:{table:"Plugin manifest errors",message:"`name` is required."},plugin_name_wrong_type:{table:"Plugin manifest errors",message:"`name` must be a string."},plugin_name_empty:{table:"Plugin manifest errors",message:"`name` must be non-empty."},plugin_name_too_long:{table:"Plugin manifest errors",message:"`name` must be 64 characters or fewer."},plugin_name_format:{table:"Plugin manifest errors",message:"`name` must start with an ASCII letter or digit and contain only ASCII letters, digits, `_`, or `-`."}},jw=/^(?!.*(?:--|\.\.))[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/;var Ff=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;function Fw(e){if(e===void 0)return["plugin_name_missing"];if(typeof e!="string")return["plugin_name_wrong_type"];if(e.trim()==="")return["plugin_name_empty"];const t=[];return e.length>64&&t.push("plugin_name_too_long"),Ff.test(e)||t.push("plugin_name_format"),t}var Hw='manifest "name" must be 1-64 lowercase [a-z0-9.-] chars with single separators (no "--" or "..")';function Bw(e,t){const[r]=Fw(e),s=t==="openai-compatible";return typeof e=="string"&&(e.length<=64&&jw.test(e)||s&&r===void 0)?{ok:!0,name:e}:{ok:!1,message:s&&r!==void 0?wr[r].message:Hw}}var vs="plugin.json",Ml=Object.freeze({"1.0.0":"https://agent-plugins.org/schemas/1.0.0/plugin.schema.json"}),Us="com.mcpjam",Bd=/\[TODO:/i,Hf=["description","license"],Bf=["homepage","repository"],Vw=new Set(["command","entrypoint","exec","install","install_script","postinstall","preinstall","run","script","scripts"]),Gw=new Set(["$schema","name","version","author","keywords","extensions","interface",...Hf,...Bf]);function xl(e,t,r,s=0,n={reportedTooDeep:!1}){if(typeof e=="string"){Bd.test(e)&&r.error("MANIFEST_PLACEHOLDER",`manifest field "${t}" contains an unresolved placeholder`);return}if(s>32){n.reportedTooDeep||(n.reportedTooDeep=!0,r.error("VALUE_TOO_DEEP",`manifest field "${t}" nests deeper than 32 levels`));return}if(Array.isArray(e)){e.forEach((i,o)=>xl(i,`${t}[${o}]`,r,s+1,n));return}if(e&&typeof e=="object")for(const[i,o]of Object.entries(e))xl(o,t===""?i:`${t}.${i}`,r,s+1,n)}function Fp(e,t,r){if(typeof t!="string"){r.error("MANIFEST_INVALID_FIELD",`manifest field "${e}" must be a string URL`);return}let s;try{s=new URL(t)}catch{r.warn("MANIFEST_INVALID_FIELD",`manifest field "${e}" is not a valid URL; ignored`);return}if(s.username!==""||s.password!==""||Hd(s)){r.warn("MANIFEST_SECRET_FIELD_OMITTED",`manifest field "${e}" carries a credential; ignored`);return}if(Fd(t,{allowFragment:!0})){r.warn("MANIFEST_INVALID_FIELD",`manifest field "${e}" is not a URL as written; ignored`);return}if(s.protocol!=="https:"){r.warn("MANIFEST_INSECURE_URL",`manifest field "${e}" must use HTTPS; ignored`);return}return t}function Kw(e,t,r,s){const n=t[Us];if(n===void 0)return;if(n===null||typeof n!="object"||Array.isArray(n)){s.warn("MANIFEST_INVALID_FIELD",`extension namespace "${Us}" must be an object; ignored`);return}const i=n,o=i.displayName??i.display_name;o!==void 0&&(typeof o!="string"?s.warn("MANIFEST_INVALID_FIELD",`"${Us}.displayName" must be a string; ignored`):e.displayName=o);for(const a of["icon","logo"]){const c=i[a];if(c===void 0)continue;if(typeof c!="string"){s.warn("MANIFEST_INVALID_FIELD",`"${Us}.${a}" must be a bundle-relative path; ignored`);continue}const l=on("",c);if(!l.ok){s.warn(l.code,`"${Us}.${a}": ${l.message}`);continue}if(!r.has(l.path)){s.warn("MANIFEST_MISSING_FILE",`"${Us}.${a}" references a file that is not in the bundle: "${l.path}"`,{path:l.path});continue}e[a]=l.path}}var ur="com.openai",Vf=["logo","logoDark","composerIcon"];function Ks(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Jw(e,t,r,s){for(const{label:n,value:i}of t)if(i!==void 0){if(!Ks(i)){s.warn("MANIFEST_INVALID_FIELD",`"${n}" must be an object; ignored`);continue}i.displayName!==void 0&&typeof i.displayName!="string"?s.warn("MANIFEST_INVALID_FIELD",`"${n}.displayName" must be a string; ignored`):i.displayName?.trim()&&(Bd.test(i.displayName)?s.warn("MANIFEST_INVALID_FIELD",`"${n}.displayName" is an unresolved placeholder; ignored`):e.displayName=i.displayName);for(const o of Vf){const a=i[o];if(a===void 0)continue;if(typeof a!="string"){s.warn("MANIFEST_INVALID_FIELD",`"${n}.${o}" must be a bundle-relative path; ignored`);continue}const c=on("",a);if(!c.ok){s.warn(c.code,`"${n}.${o}": ${c.message}`);continue}if(!r.has(c.path)){s.warn("MANIFEST_MISSING_FILE",`"${n}.${o}" references a file that is not in the bundle: "${c.path}"`,{path:c.path});continue}e[o]=c.path}}}function Ww(e,t){if(e.logo===void 0&&e.logoDark===void 0){t.warn("MANIFEST_DIRECTORY_ICON_MISSING",'plugin has no directory icon: OpenAI requires "interface.logo" (light) and "interface.logoDark" (dark), PNG');return}if(e.logo===void 0||e.logoDark===void 0){const r=e.logo===void 0?"logo":"logoDark";t.warn("MANIFEST_DIRECTORY_ICON_VARIANT_MISSING",`plugin directory icon has no ${r==="logo"?"light":"dark"} variant: add "interface.${r}"`)}}function Yw(e,t){const{filePaths:r,issues:s}=t;if(e===null||typeof e!="object"||Array.isArray(e))return s.error("MANIFEST_INVALID_JSON","plugin.json must contain a JSON object"),{manifest:null};const n=e,i=n.$schema,o=typeof i=="string"?Object.keys(Ml).find(y=>Ml[y]===i):void 0;if(o===void 0)return s.error("MANIFEST_UNSUPPORTED_SCHEMA",i===void 0?'manifest is missing the required "$schema" field':`manifest "$schema" is not a supported Agent Plugins schema: ${String(i)}`),{manifest:null};const a=Bw(n.name,t.profile??"strict");if(!a.ok)return s.error("MANIFEST_INVALID_NAME",a.message),{manifest:null};const c={schemaVersion:o,name:a.name,extensions:{}};n.version!==void 0&&(typeof n.version!="string"||n.version.length===0?s.error("MANIFEST_INVALID_VERSION",'manifest "version" must be a non-empty string when present'):c.version=n.version);for(const y of Hf){const m=n[y];if(m!==void 0){if(typeof m!="string"){s.error("MANIFEST_INVALID_FIELD",`manifest field "${y}" must be a string`);continue}c[y]=m}}for(const y of Bf){if(n[y]===void 0)continue;const m=Fp(y,n[y],s);m!==void 0&&(c[y]=m)}const l=n.author;if(l!==void 0)if(l&&typeof l=="object"&&!Array.isArray(l)){const y=l,m={};for(const k of Object.keys(y)){if(k==="name"||k==="email"||k==="url"){k!=="url"&&typeof y[k]!="string"&&s.error("MANIFEST_INVALID_FIELD",`manifest field "author.${k}" must be a string`);continue}s.warn("MANIFEST_UNKNOWN_FIELD",`manifest field "author.${k}" is not part of Agent Plugins ${o}; ignored`)}if(typeof y.name=="string"&&(m.name=y.name),typeof y.email=="string"&&(m.email=y.email),y.url!==void 0){const k=Fp("author.url",y.url,s);k!==void 0&&(m.url=k)}c.author=m}else s.error("MANIFEST_INVALID_FIELD",'manifest field "author" must be an object');const u=n.keywords;u!==void 0&&(!Array.isArray(u)||u.some(y=>typeof y!="string")?s.error("MANIFEST_INVALID_FIELD",'manifest field "keywords" must be an array of strings'):c.keywords=u);const d=Ks(n.extensions)?n.extensions[ur]:void 0,h=n.interface!==void 0||d!==void 0;Jw(c,[{label:"interface",value:n.interface},{label:`extensions.${ur}.interface`,value:Ks(d)?d.interface:void 0}],r,s);const g=n.extensions;g!==void 0&&(g===null||typeof g!="object"||Array.isArray(g)?s.warn("MANIFEST_INVALID_FIELD",'manifest field "extensions" must be an object; ignored'):(c.extensions=Ua(Qw(g),{issues:s,secretCode:"MANIFEST_SECRET_FIELD_OMITTED",label:"manifest extensions"}),Kw(c,g,r,s))),h&&Ww(c,s);for(const y of Object.keys(n))if(!Gw.has(y)){if(Vw.has(y)){s.error("MANIFEST_AMBIGUOUS_FIELD",`manifest field "${y}" is not supported and is execution-ambiguous; remove it`);continue}s.warn("MANIFEST_UNKNOWN_FIELD",`manifest field "${y}" is not part of Agent Plugins ${o}; ignored`)}return xl(c,"",s),{manifest:c,onboardingSkill:Ks(d)?d.onboardingSkill:void 0}}var Xw=new Set(["displayName",...Vf]);function Qw(e){const t=e[ur];if(!Ks(t))return e;const{onboardingSkill:r,...s}=t;return Ks(s.interface)&&(s.interface=Object.fromEntries(Object.entries(s.interface).filter(([n,i])=>!Xw.has(n)||typeof i!="string"||!Bd.test(i)))),{...e,[ur]:s}}function Zw(e,t,r,s){const n=e.extensions[ur],i=Ks(n)?{...n}:void 0;if(i!==void 0&&(delete i.onboardingSkill,e.extensions[ur]=i),t===void 0)return;const o=typeof t=="string"?on("",t):null,a=o?.ok?r.find(c=>c.skillFilePath===o.path):void 0;if(a===void 0||i===void 0){s.warn("MANIFEST_MISSING_FILE","the onboarding skill this plugin names is not one of its loaded skills; onboarding is unavailable");return}e.onboarding={skillPath:a.skillFilePath,componentKey:a.componentKey},i.onboardingSkill=t}var ek={maxEntries:1e3,maxTotalBytes:104857600,maxFileBytes:10485760,maxPathBytes:512,maxPathDepth:20,maxSkills:20,maxMcpServers:20},Gf=Object.freeze({strict:2,"openai-compatible":1}),Sr=".codex-plugin/plugin.json",Kf=".agent-plugin/plugin.json",Jf=".claude-plugin/plugin.json",tk=".mcp.json",Wf=[{path:Sr,layout:"codex"},{path:Kf,layout:"agent-legacy"},{path:Jf,layout:"claude"}],rk=new Set(["skills","mcpServers","apps","interface","onboardingSkill","extensions"]),Yf={hooks:"lifecycle hooks",commands:"slash commands",agents:"agents",outputStyles:"output styles",lspServers:"language servers"};function Jr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Xf(e,t){if(typeof e!="string")return!1;const r=on("",e);return r.ok&&r.path===t}function Qf(e,t,r){const s=e.extensions,n=Jr(s)?s[ur]:void 0,i=Jr(n)?{...n}:{};for(const a of["interface","apps"])e[a]!==void 0&&i[a]===void 0&&(i[a]=e[a]);const o=e.onboardingSkill;return o!==void 0&&i.onboardingSkill===void 0?i.onboardingSkill=o:o!==void 0&&i.onboardingSkill!==o&&(r.warn("MANIFEST_INVALID_FIELD",`${t} declares two different onboarding skills; neither is used`,{path:t}),delete i.onboardingSkill),i}function Zf(e,t){const{[ur]:r,...s}=e??{};return Object.keys(t).length>0?{...s,[ur]:t}:s}function eg(e,t,r){for(const[s,n]of Object.entries(Yf))e[s]!==void 0&&r.warn("UNSUPPORTED_COMPONENT",`"${s}" in ${t} declares ${n}, which MCPJam does not run; ignored`,{path:t})}function sk(e,t,{filePaths:r,issues:s}){if(e===void 0)return r.has(".mcp.json")?{legacyMcp:{kind:"file",path:tk}}:{};if(Jr(e))return{legacyMcp:{kind:"inline",path:t,document:e}};const n=typeof e=="string"?on("",e):null;if(n===null||!n.ok){const i=`"mcpServers" in ${t}: ${n===null?"must be a path or an object":n.message}`;return s.warn(n?.code??"MCP_INVALID_CONFIG",i,{path:t}),{skipped:{kind:"mcp-config",key:t,reason:i}}}return r.has(n.path)?{legacyMcp:{kind:"file",path:n.path}}:(s.warn("MANIFEST_MISSING_FILE",`"mcpServers" in ${t} names "${n.path}", which is not in the bundle`,{path:n.path}),{})}function nk(e,t,r){const{issues:s}=r,n=t.manifestPath,i={};for(const[c,l]of Object.entries(e))!rk.has(c)&&!(c in Yf)&&(i[c]=l);const o=i.$schema;String(o).startsWith("https://agent-plugins.org/schemas/")||(i.$schema=Ml["1.0.0"]);const a=e.extensions;if(a!==void 0&&!Jr(a))i.extensions=a;else{const c=Zf(a,Qf(e,n,s));Object.keys(c).length>0&&(i.extensions=c)}if(e.skills!==void 0&&!Xf(e.skills,"skills")){const c=typeof e.skills=="string"?`"${e.skills}"`:"a non-path value";s.warn("UNSUPPORTED_COMPONENT",`"skills" in ${n} names ${c}; skills are read only from "skills/"`,{path:n})}return eg(e,n,s),{interpretation:t,record:i,...sk(e.mcpServers,n,r)}}function ik(e,t,{readJson:r,issues:s}){const n=l=>(s.warn("MANIFEST_OVERLAY_IGNORED",`"${Sr}" is ignored: ${l}`,{path:Sr}),{interpretation:t,record:e}),i=e.extensions;if(i!==void 0&&!Jr(i))return n(`"${vs}" has no usable "extensions"`);if(Jr(i?.["com.openai"]))return n(`"${vs}" declares extensions["${ur}"], which replaces it`);const o=new qs,a=r(Sr,o);if(!Jr(a))return n(o.firstErrorMessage()??"it must be a JSON object");for(const[l,u]of[["skills","skills"],["mcpServers","mcp.json"]])a[l]===void 0||Xf(a[l],u)||s.warn("MANIFEST_OVERLAY_IGNORED",`"${l}" in ${Sr} is ignored: with a root plugin.json it is always "${u}"`,{path:Sr});eg(a,Sr,s);const c=Qf(a,Sr,s);return{interpretation:{...t,overlayPath:Sr},record:{...e,extensions:Zf(i,c)}}}function tg(e,{filePaths:t,issues:r}){for(const{path:s}of Wf)s===e||e==="plugin.json"&&s===".codex-plugin/plugin.json"||!t.has(s)||r.warn("MANIFEST_OVERLAY_IGNORED",`"${s}" is ignored: "${e}" is the manifest`,{path:s})}function ok(e){const{profile:t,filePaths:r,readJson:s,issues:n}=e,i={profile:t,revision:Gf[t],layout:"agent-plugins",manifestPath:vs},o=s(vs,n);return t==="strict"||!Jr(o)?{interpretation:i,record:o}:(tg(vs,e),r.has(".codex-plugin/plugin.json")?ik(o,i,e):{interpretation:i,record:o})}function ak(e){const{profile:t,location:r,readJson:s,issues:n}=e;if(r.layout==="agent-plugins")return ok(e);tg(r.path,e);const i={profile:t,revision:Gf[t],layout:r.layout,manifestPath:r.path},o=s(r.path,n);return Jr(o)?nk(o,i,e):{interpretation:i,record:o}}var Hp="2026-08-19",Bp="https://developers.openai.com/plugins",rg=["quickstart","plugin-guidelines","reference","changelog","plan/use-case","plan/tools","concepts/plugins","concepts/skills","concepts/ui-guidelines","build/plugins","build/skills","build/mcp-server","build/chatgpt-ui","build/auth","build/monetization","build/examples","deploy/connect-chatgpt","deploy/submission","deploy/submission-errors","deploy/troubleshooting","guides/optimize-metadata","guides/submit-claude-plugin","guides/product-checkout-conversion-spec"],sg=[{page:"help/plugins-in-chatgpt-and-codex",url:"https://help.openai.com/en/articles/20001256-plugins-in-chatgpt-and-codex"},{page:"help/submitting-apps-to-the-chatgpt-app-directory",url:"https://help.openai.com/en/articles/20001040-submitting-apps-to-the-chatgpt-app-directory"}],ng={"app-guidelines":"plugin-guidelines"};function ck(e){return Object.hasOwn(ng,e)}var b$=[...rg,...sg.map(e=>e.page)],Vp={},lk=[...rg.map(e=>({page:e,url:`${Bp}/${e}`,revisionUrl:`${Bp}/${e}.md`,format:"markdown",revision:Vp[e]??null,snapshotDate:Hp})),...sg.map(e=>({page:e.page,url:e.url,revisionUrl:e.url,format:"html",revision:Vp[e.page]??null,snapshotDate:Hp}))],dk=Object.freeze(Object.fromEntries(lk.map(e=>[e.page,e])));function ir(e,t){const r=dk[ck(e)?ng[e]:e];return{page:r.page,section:t,url:r.url,revision:r.revision,snapshotDate:r.snapshotDate}}var ea={maxCompressedBytes:104857600,maxUncompressedBytes:536870912,maxEntries:5e3},uk={portable:vs,canonical:Sr,accepted:[Kf,Jf]},xt={nameMaxLength:100,pluginNameMaxLength:64,displayNameMaxLength:100,shortDescriptionMaxLength:255,descriptionMaxLength:2e3,defaultPromptMaxLength:255,toolNameMaxLength:64,skillNameMaxLength:64},ig=["productivity","education","developer-tools","design","writing","research","data-analysis","marketing","sales","finance","health","travel","entertainment"],ta={minEdgePx:48,maxEdgePx:4096,mustBeSquare:!0,maxBytes:5242880,acceptedMimeTypes:["image/png","image/jpeg","image/webp","image/svg+xml"]},pk={lightBackground:"#FFFFFF",darkBackground:"#212121",minRatio:2},$s={maxSkillMarkdownBytes:262144,maxPageBytes:1048576,maxSkillTotalBytes:5242880,maxImportedTotalBytes:8388608,maxSkills:5,maxPagesPerSkill:10},hk="/.well-known/openai-apps-challenge",mk="text/html;profile=mcp-app",fk="/mcp",gk=["readOnlyHint","destructiveHint","openWorldHint"],Vr={successCount:5,failureCount:3},vk={originChangeRequiresNewPlugin:!0,uiContentChangesStayLive:!0,uiContentCacheSeconds:3600},S$={archiveLimits:ea,manifestLocations:uk,fieldLimits:xt,listingCategories:ig,imageConstraints:ta,brandColorContrast:pk,mcpSkillLimits:$s,domainVerificationPath:hk,appHtmlMime:mk,expectedMcpPath:fk,requiredToolAnnotations:gk,submissionTestCases:Vr,releaseRules:vk,source:ir("deploy/submission","Host profile constants")},og={columns:["Resource","Lookup"],keys:["fixture","lookup"],placeholders:[["Sample Project",'get_project {"name": "Sample Project"}']],maxRows:20,grow:!0},yk="Upload new or existing plugin",_k={upload:{title:"Upload your plugin ZIP",intro:"Compress your plugin folder into a .zip file before uploading",layout:{blocks:[{widget:"upload",text:{drop:"Upload new or existing plugin",button:"Upload plugin",checked:"Errors block the upload; warnings require confirmation."}}]}},listing:{title:"Metadata & Skills",intro:"Package details are read-only here; edit them in your source package.",layout:{blocks:[{widget:"plugin-header",fields:["listing.displayName","listing.shortDescription"]},{heading:"Metadata",fields:["listing.description","listing.developer","listing.name","listing.category","listing.capabilities","listing.website","listing.support","listing.privacyPolicy","listing.terms","listing.starterPrompts"],text:{upload:"Upload new version"}},{heading:"Skills",widget:"skills",text:{passed:"Checks passed",attention:"Needs attention"}},{widget:"findings",text:{title:"Findings",all:"All",blocking:"Blocking",copy:"Copy findings"}}]}},mcp:{title:"MCPs",intro:"Your package can declare multiple MCP servers, but only one MCP server can be connected per plugin.",layout:{blocks:[{heading:"Connect MCP server",widget:"connect",fields:["mcp.serverUrl","mcp.verificationToken"],text:{authentication:"Authentication",authorize:"Your MCP server needs OAuth access before we can scan its tools.",settings:"You can define advanced settings in your mcp.json",domain:"Domain verification",verified:"Domain verified",reconnect:"Reconnect",rescan:"Rescan"}},{heading:"Tools",widget:"tools"}]}},reviewer:{title:"Review information",intro:"Read-only fields are managed by your plugin ZIP. To change read-only information, update your plugin ZIP and upload it again.",layout:{blocks:[{heading:"Countries and translations",note:"Its fields were not captured."},{heading:"Reviewer credentials",note:"Test credentials must work immediately with no additional setup required. Logging in must provide immediate access to a demo account.",fields:["reviewer.loginUrl","reviewer.tenant","reviewer.username","reviewer.passwordSecret","reviewer.signInSteps"]},{fields:["reviewer.identityTool","reviewer.identityArgs","reviewer.expectedIdentityPath","reviewer.expectedIdentity","reviewer.expectedOrganizationPath","reviewer.expectedOrganization","reviewer.fixtures"]},{heading:"Test cases",fields:["reviewer.testCases"]},{heading:"Negative test cases",fields:["reviewer.negativeTestCases"]},{heading:"Supporting content",fields:["reviewer.demoRecordingUrl","reviewer.releaseNotes"]},{widget:"drawer-actions",text:{back:"Back",next:"Next",save:"Save details"}}]}},submit:{title:"Submit for review",intro:"Complete the required policy attestations.",layout:{blocks:[{fields:["submit.developerIdentity"]},{fields:["submit.attestations"]},{widget:"non-blocking-findings",text:{title:"Non-blocking findings",body:"These findings do not block submission, but unresolved findings may lead to rejection during review."}},{fields:["submit.additionalContext"]},{widget:"submit",text:{cancel:"Cancel",submit:"Submit"}}]}},publish:{title:"Publish your approved plugin",intro:"Open the approved package version and select Publish plugin.",layout:{blocks:[{widget:"publish",text:{button:"Publish plugin"}}]}}},bk={"listing.displayName":{label:"Display name",packagePath:"plugin.json#/extensions/com.openai/interface/displayName",errors:{required:"Display name is required, non-empty, and single-line.",tooLong:"Display name must be 30 characters or fewer."}},"listing.shortDescription":{label:"Short description",packagePath:"plugin.json#/extensions/com.openai/interface/shortDescription",errors:{required:"Short description is required, non-empty, and single-line.",tooLong:"Short description must be 30 characters or fewer."}},"listing.description":{label:"About",packagePath:"plugin.json#/extensions/com.openai/interface/longDescription",errors:{required:"Long description is required and must be non-empty. Line breaks are allowed.",tooLong:"Long description must be 4,000 characters or fewer."}},"listing.developer":{label:"Developer",packagePath:"plugin.json#/extensions/com.openai/interface/developerName",errors:{required:"Developer name is required.",tooLong:"Developer name must be 80 characters or fewer."}},"listing.name":{label:"Package name",packagePath:"plugin.json#/name"},"listing.category":{label:"Category",packagePath:"plugin.json#/extensions/com.openai/interface/category",options:[{value:"Productivity",label:"Productivity"},{value:"Creativity",label:"Creativity"},{value:"Developer Tools",label:"Developer Tools"},{value:"Business & Operations",label:"Business & Operations"},{value:"Data & Analytics",label:"Data & Analytics"},{value:"Communication",label:"Communication"},{value:"Education & Research",label:"Education & Research"},{value:"Security",label:"Security"},{value:"Finance",label:"Finance"},{value:"Healthcare",label:"Healthcare"},{value:"Travel",label:"Travel"},{value:"Entertainment",label:"Entertainment"},{value:"Other",label:"Other"}]},"listing.capabilities":{label:"Capabilities",packagePath:"plugin.json#/extensions/com.openai/interface/capabilities"},"listing.website":{label:"Website",packagePath:"plugin.json#/extensions/com.openai/interface/websiteURL",errors:{required:"Website URL is required."}},"listing.support":{label:"Support",packagePath:"plugin.json#/extensions/com.openai/interface/supportURL"},"listing.privacyPolicy":{label:"Privacy policy",packagePath:"plugin.json#/extensions/com.openai/interface/privacyPolicyURL"},"listing.terms":{label:"Terms of service",packagePath:"plugin.json#/extensions/com.openai/interface/termsOfServiceURL"},"listing.starterPrompts":{label:"Starter prompts",packagePath:"plugin.json#/extensions/com.openai/interface/defaultPrompt"},"mcp.serverUrl":{label:"MCP Server URL",packagePath:"mcp.json#/mcpServers/*/url"},"mcp.verificationToken":{label:"Domain verification token",helper:"The portal issues this token in its MCP step."},"reviewer.loginUrl":{label:"Login URL"},"reviewer.tenant":{label:"Tenant",placeholder:"Choose an organization"},"reviewer.username":{label:"Username"},"reviewer.passwordSecret":{label:"Password",placeholder:"Demo account password"},"reviewer.signInSteps":{label:"Sign-in steps",placeholder:"Steps for this account"},"reviewer.identityTool":{label:"Identity tool",placeholder:"whoami",helper:"MCPJam's own check, not part of the portal: a read-only tool on your server that returns the signed-in account. MCPJam calls it as the reviewer."},"reviewer.identityArgs":{label:"Identity tool arguments",placeholder:"{}",helper:"Fixed JSON arguments, if the identity tool takes any."},"reviewer.expectedIdentityPath":{label:"Identity path",placeholder:"$.user.email",helper:"Where the tool's result names the account, as a JSON path."},"reviewer.expectedIdentity":{label:"Expected reviewer",placeholder:"review@example.com",helper:"The account reviewers sign in as."},"reviewer.expectedOrganizationPath":{label:"Organization path",placeholder:"$.organization.name",helper:"Where the tool's result names the organization or project, as a JSON path."},"reviewer.expectedOrganization":{label:"Expected organization",placeholder:"Sample Org",helper:"The organization or project reviewers should land in."},"reviewer.fixtures":{label:"Fixtures",helper:"MCPJam's own check: resources your test cases name, each with a read-only tool call that finds it in the reviewer's account."},"reviewer.testCases":{label:"Test cases",packagePath:"plugin.json#/extensions/com.openai/review/test_cases/positive"},"reviewer.negativeTestCases":{label:"Negative test cases",packagePath:"plugin.json#/extensions/com.openai/review/test_cases/negative"},"reviewer.demoRecordingUrl":{label:"Video walkthrough URL",packagePath:"plugin.json#/extensions/com.openai/review/demo_recording_url"},"reviewer.releaseNotes":{label:"Release notes",packagePath:"plugin.json#/extensions/com.openai/publication/release_notes"},"submit.developerIdentity":{label:"Developer identity"},"submit.attestations":{label:"Policy attestations",options:[{value:"terms-and-guidelines",label:"I have reviewed and agree to OpenAI's Terms and Plugin Guidelines. I confirm that my plugin is in compliance with those Terms and Guidelines."},{value:"applicable-laws",label:"I confirm that my plugin complies with all laws and regulations applicable to the industry it operates in. I understand that I am responsible for that compliance."},{value:"no-money-movement",label:"I confirm that my plugin does not initiate or execute money transfers, crypto transfers, or investment trades on behalf of users."},{value:"third-party-rights",label:"I confirm that I have all necessary rights to any third-party content or API endpoints accessed, displayed, or used by my plugin."},{value:"suitable-under-18",label:"I confirm that my plugin is suitable for individuals under 18 and does not include mature or adult content."},{value:"not-targeting-children",label:"I confirm that my plugin does not target children under 13 or share their personal information with OpenAI."}]},"submit.additionalContext":{label:"Additional Submission Context",helper:"Add any additional information that might be useful for the review team, including justification for any findings. This optional note is private to the review."}},Sk=[{step:"upload",needs:["package"],reads:[],checks:["openai.package.archive","openai.package.manifest","openai.package.skills","openai.package.assets","openai.package.exclusions","openai.package.manifest-location","openai.package.observation.*","openai.migration.unsupported-surfaces","openai.migration.user-config","openai.migration.stdio-transport","openai.migration.host-language"]},{step:"listing",needs:["package"],reads:["listing.displayName","listing.shortDescription","listing.description"],checks:["openai.policy.non-promotional-package"]},{step:"listing",needs:[],reads:["listing.displayName","listing.shortDescription","listing.description"],checks:["openai.policy.non-promotional-listing"]},{step:"listing",needs:[],reads:["listing.displayName","listing.shortDescription","listing.description","listing.category"],checks:["openai.submission.listing-fields"]},{step:"listing",field:"listing.privacyPolicy",needs:[],reads:["listing.privacyPolicy","listing.support"],checks:["openai.submission.urls"]},{step:"listing",field:"listing.privacyPolicy",needs:[],reads:["listing.privacyPolicy"],checks:["openai.submission.privacy-disclosure","openai.policy.privacy-consistency"]},{step:"listing",needs:[],reads:[],checks:["openai.policy.originality","openai.policy.no-advertising","openai.policy.commerce","openai.feature.checkout"]},{step:"listing",needs:["server"],reads:["mcp.serverUrl"],checks:["openai.skills.extension","openai.skills.listing-complete","openai.skills.caps","openai.skills.digests","openai.skills.frontmatter","openai.skills.snapshot","openai.feature.imported-skills","openai.ui.screenshots"]},{step:"listing",needs:["server","model"],reads:["mcp.serverUrl"],checks:["openai.experience.listing-copy-placeholder","openai.experience.listing-copy-overpromises","openai.experience.skill-overlap"]},{step:"mcp",field:"mcp.serverUrl",needs:[],reads:["mcp.serverUrl"],checks:["openai.endpoint.https","openai.endpoint.path"]},{step:"mcp",field:"mcp.serverUrl",needs:["server"],reads:["mcp.serverUrl"],checks:["openai.endpoint.redirects-stay-https","openai.endpoint.redirects-terminate"]},{step:"mcp",field:"mcp.verificationToken",needs:["server"],reads:["mcp.serverUrl","mcp.verificationToken"],checks:["openai.domain.challenge-served","openai.domain.challenge-matches"]},{step:"mcp",field:"mcp.verificationToken",needs:[],reads:["mcp.verificationToken"],checks:["openai.submission.domain-token"]},{step:"mcp",needs:["server"],reads:["mcp.serverUrl"],checks:["openai.auth.challenge","openai.auth.prm-discoverable","openai.auth.prm-pointer","openai.auth.issuers-resolve","openai.auth.pkce-s256","openai.auth.rfc9207-iss","openai.auth.client-acquisition","openai.auth.runtime-challenge","openai.auth.unsupported-flows","openai.tools.annotations","openai.tools.descriptions","openai.tools.name-length","openai.tools.schemas","openai.tools.annotation-honesty","openai.tools.security-schemes","openai.profile.declared","openai.profile.input-empty","openai.profile.output-schema","openai.profile.read-only","openai.profile.description-honesty","openai.ui.mime","openai.ui.domain-present","openai.ui.domain-unique","openai.ui.csp-exact","openai.ui.output-schema","openai.ui.useful-without-ui","openai.submission.annotation-justifications","openai.submission.frame-domain-explanations","openai.release.origin","openai.release.contract","openai.release.schema-compatibility","openai.release.live-changes","openai.feature.profile-identification","openai.feature.ui-templates","openai.feature.cimd","openai.feature.lazy-authentication"]},{step:"mcp",needs:[],reads:[],checks:["openai.submission.scan-currency","openai.policy.predictable-side-effects","openai.policy.response-minimization"]},{step:"mcp",needs:["server","model"],reads:["mcp.serverUrl"],checks:["openai.experience.tool-descriptions-uninformative","openai.experience.tool-overlap","openai.experience.naming-inconsistent","openai.experience.destructive-tool-underexplained","openai.experience.auth-story-unclear","both.decision.annotation-matches-behaviour"]},{step:"mcp",needs:["model"],reads:["mcp.serverUrl","listing.displayName","listing.shortDescription","listing.description"],checks:["openai.decision.fair-play","openai.decision.secret-seeking"]},{step:"reviewer",needs:[],reads:["reviewer.demoRecordingUrl","reviewer.loginUrl","reviewer.username","reviewer.passwordSecret"],checks:["openai.submission.demo-access"]},{step:"reviewer",field:"reviewer.identityTool",needs:["server","reviewer"],reads:["mcp.serverUrl","reviewer.identityTool","reviewer.identityArgs","reviewer.expectedIdentityPath","reviewer.expectedIdentity","reviewer.expectedOrganizationPath","reviewer.expectedOrganization"],checks:["both.reviewer.identity"]},{step:"reviewer",field:"reviewer.fixtures",needs:["server","reviewer"],reads:["mcp.serverUrl","reviewer.fixtures","reviewer.testCases","reviewer.negativeTestCases","reviewer.signInSteps","reviewer.identityTool","reviewer.identityArgs","reviewer.expectedIdentityPath","reviewer.expectedIdentity","reviewer.expectedOrganizationPath","reviewer.expectedOrganization"],checks:["both.reviewer.fixtures"]},{step:"mcp",needs:["server"],reads:["mcp.serverUrl"],checks:["both.auth.client-signatures"]},{step:"reviewer",field:"reviewer.testCases",needs:[],reads:["reviewer.testCases","reviewer.negativeTestCases"],checks:["openai.submission.test-cases"]},{step:"reviewer",field:"reviewer.negativeTestCases",needs:[],reads:["reviewer.negativeTestCases"],checks:["openai.submission.test-case-quality"]},{step:"reviewer",field:"reviewer.releaseNotes",needs:[],reads:["reviewer.releaseNotes"],checks:["openai.submission.release-notes"]},{step:"reviewer",needs:[],reads:[],checks:["openai.submission.geography"]},{step:"submit",field:"submit.attestations",needs:[],reads:["submit.attestations"],checks:["openai.submission.attestations","openai.submission.attestation-truth"]},{step:"submit",field:"submit.developerIdentity",needs:[],reads:["submit.developerIdentity"],checks:["openai.submission.account"]},{step:"submit",needs:[],reads:[],checks:["openai.submission.profile-valid"]}],wk={"runtime-compatibility":"mcp","directory-policy":"mcp","plugin-package":"upload","release-contract":"mcp","optional-features":"mcp","submission-artifacts":"reviewer","experience-insights":"mcp"},Nn={title:yk,steps:_k,fields:bk,placements:Sk,laneSteps:wk},kk=["server","reviewer","model","package"];function ag(e,t,r){return Object.keys(t).filter(s=>s.startsWith(`${e}.`)).map(s=>({key:s,...r[s],...t[s],errors:r[s].errors??{}}))}function cg(e,t){return t.flatMap(({checks:r,needs:s,...n})=>r.map(i=>({checkId:i,...n,needs:s.map(o=>{const a=kk.find(c=>c===o);if(!a)throw new Error(`${e} names an unknown need: ${o}`);return a})})))}var Ek=Nn.fields,Gp=Nn.steps,dn={format:"https-url"},ut={managedBy:"package"};function tt(e,t={}){return{control:e,required:!0,...t}}function Et(e,t={}){return{control:e,...t}}var Tk={"listing.displayName":tt("text",{...ut,maxLength:30}),"listing.shortDescription":tt("text",{...ut,maxLength:30}),"listing.description":tt("textarea",{...ut,maxLength:4e3}),"listing.developer":tt("text",{...ut,maxLength:80}),"listing.name":tt("text",{...ut,maxLength:xt.pluginNameMaxLength}),"listing.category":Et("select",ut),"listing.capabilities":Et("multi-select",{...ut,freeEntry:!0,maxItems:20}),"listing.website":tt("text",{...ut,...dn}),"listing.support":tt("text",{...ut,...dn}),"listing.privacyPolicy":tt("text",{...ut,...dn}),"listing.terms":tt("text",{...ut,...dn}),"listing.starterPrompts":Et("multi-select",{...ut,freeEntry:!0,maxItems:3}),"mcp.serverUrl":tt("server",{...ut,...dn}),"mcp.verificationToken":Et("text"),"reviewer.loginUrl":tt("text",dn),"reviewer.tenant":Et("text"),"reviewer.username":tt("text"),"reviewer.passwordSecret":tt("secret"),"reviewer.signInSteps":Et("textarea",{requiredWith:["reviewer.tenant"]}),"reviewer.identityTool":Et("text",{requiredWith:["reviewer.expectedIdentity","reviewer.expectedOrganization"]}),"reviewer.identityArgs":Et("text"),"reviewer.expectedIdentityPath":Et("text",{requiredWith:["reviewer.expectedIdentity"]}),"reviewer.expectedIdentity":Et("text",{requiredWith:["reviewer.expectedIdentityPath"]}),"reviewer.expectedOrganizationPath":Et("text",{requiredWith:["reviewer.expectedOrganization"]}),"reviewer.expectedOrganization":Et("text",{requiredWith:["reviewer.expectedOrganizationPath"]}),"reviewer.fixtures":Et("pairs",{pairs:og}),"reviewer.testCases":tt("rows",{...ut,minItems:Vr.successCount,maxItems:Vr.successCount}),"reviewer.negativeTestCases":tt("rows",{...ut,minItems:Vr.failureCount,maxItems:Vr.failureCount}),"reviewer.demoRecordingUrl":tt("text",{...ut,format:"url"}),"reviewer.releaseNotes":tt("textarea",ut),"submit.developerIdentity":tt("text"),"submit.attestations":tt("checkbox-group",{declaration:!0,minItems:Nn.fields["submit.attestations"].options.length}),"submit.additionalContext":Et("textarea")},w$={id:"chatgpt-plugin",directory:"openai",title:Nn.title,version:"2026-11-13",source:{label:"OpenAI plugin submission docs and the ChatGPT plugin portal",url:"https://developers.openai.com/plugins/deploy/submission",capturedAt:"2026-11-13"},submissionUrl:"https://platform.openai.com/plugins",steps:Object.keys(Gp).map(e=>({id:e,...Gp[e],fields:ag(e,Tk,Ek)})),placements:cg("chatgpt-plugin.json",Nn.placements),laneSteps:Nn.laneSteps},Ak="2026-11-13",Rk="2026-08-19";var Ik=["directory","verification","submission","review-criteria","authentication","lazy-authentication","enterprise-managed-auth","troubleshooting","mcp-apps/cross-compatibility","mcp-apps/external-links","mcp-apps/troubleshooting","mcp-apps/design-guidelines"],Ck=[{page:"directory",url:"https://claude.com/docs/directory/publish"},{page:"verification",url:"https://claude.com/docs/connectors/verification"}],Pk=["directory","verification","submission","review-criteria","authentication"],Ok={},Mk=Ik.map(e=>{const t=Ck.find(s=>s.page===e),r=Pk.includes(e)?Ak:void 0;return{page:e,url:t?.url??`https://claude.com/docs/connectors/building/${e}`,revision:Ok[e]??r??null,snapshotDate:r??Rk}}),xk=Object.freeze(Object.fromEntries(Mk.map(e=>[e.page,e])));function os(e,t){const r=xk[e];return{page:r.page,section:t,url:r.url,revision:r.revision,snapshotDate:r.snapshotDate}}var Nk=["https://claude.ai/api/mcp/auth_callback","https://claude.com/api/mcp/auth_callback"];var Lk=".claudemcpcontent.com";var Dk="text/html;profile=mcp-app",Uk={toolListingMs:5e3,handshakeMs:3e3,widgetFirstPaintMs:3e3},$k={minViewportWidthPx:320,minTouchTargetPx:44},Kp=200,Tt={nameMaxLength:100,oneLinerMaxLength:Kp,taglineMaxLength:Kp,descriptionMaxLength:2e3,categoriesMin:1,categoriesMax:5,useCasesMax:3,screenshotsMin:3,screenshotsMax:5,screenshotMinWidthPx:1e3,toolNameMaxLength:64},k$={callbackUrls:Nk,loopbackRedirectIgnoresPort:!0,appContentDomainSuffix:Lk,appContentDomainHashLength:32,appHtmlMime:Dk,latencyBudgets:Uk,appDesignBudgets:$k,submissionLimits:Tt,source:os("directory","Host profile constants")},qk="Submit an MCP connector",zk={connection:{title:"Connection",intro:"Connect the server you want listed. We read its tools, resources, and auth from the live connection.",layout:{blocks:[{widget:"connector-picker",fields:["connection.serverUrl"],text:{notice:"This form is for remote MCP servers only.",noticeDetail:"Local MCP servers can be distributed inside plugins, but may not be supported in every Claude product.",add:"Add custom connector",addHelper:"A connector you add here stays in Settings → Connectors until you remove it.",choose:"Or choose a connector you’ve already added:",notConnected:"Not connected"}},{heading:"URL configuration",note:"Optional",fields:["connection.differentUrls"]}]}},tools:{title:"Tools",intro:"Review the tools we found and their annotations. Fix anything flagged on your server, then reconnect.",layout:{blocks:[{widget:"tool-list",text:{empty:"No server selected. Go back to the Connection step and pick a server."}}]}},listing:{title:"Listing",intro:"How your MCP server appears in the directory. You can edit this after you submit.",layout:{blocks:[{fields:["listing.name","listing.slug"]},{fields:["listing.oneLiner"]},{fields:["listing.description"]},{fields:["listing.categories"]},{fields:["listing.authorName","listing.authorUrl"]},{widget:"icon",fields:["listing.iconUrl"],text:{add:"Add custom icon URL"}},{widget:"listing-preview",text:{title:"How it reads in the directory",name:"Your server’s name",oneLiner:"One-liner appears here"}},{heading:"Links",note:"Help users learn more and get support.",fields:["listing.documentationUrl","listing.enterpriseAuthDocsUrl"]},{fields:["listing.support","listing.privacyPolicyUrl"]}]}},useCases:{title:"Use cases",intro:"Up to three things people can do with your MCP server, what they need before connecting, and whether it reads or writes. Shown to reviewers, not on your listing."},company:{title:"Company",intro:"Tell us about the company or organization behind this MCP server.",layout:{blocks:[{fields:["company.name"]},{fields:["company.website"]},{heading:"Primary contact",note:"We’ll use this contact for any questions about your submission.",fields:["company.contactName"]},{fields:["company.contactEmail"]},{fields:["company.role"]},{fields:["company.anthropicContact"]}]}},authentication:{title:"Authentication",intro:"Configure how users authenticate with your server. What you set here is applied to connections exactly as entered.",layout:{blocks:[{fields:["authentication.requirement"]},{heading:"Authentication methods",widget:"oauth-sign-in",fields:["authentication.oauthClient"],text:{title:"OAuth sign-in",headers:"Additional request headers",addHeader:"Add header",headersHelper:"Sent on every MCP request alongside the OAuth bearer token. Installers provide the values when they connect, unless you mark a header as held by Anthropic.",addStaticHeaders:"Add static headers"}}]}},dataHandling:{title:"Data handling",intro:"Tell reviewers what the MCP server reads, writes, and sends off-platform."},testLaunch:{title:"Test & launch",intro:"Give reviewers a way in, and confirm you’ve tested every tool.",layout:{blocks:[{fields:["testLaunch.instructions"]},{heading:"Self-tested",fields:["testLaunch.selfTested"]},{heading:"Reviewer check",note:"MCPJam's own, not part of Claude's form: who the reviewer is signed in as, and whether the resources your instructions name exist for them.",fields:["testLaunch.identityTool","testLaunch.identityArgs"]},{fields:["testLaunch.expectedIdentityPath","testLaunch.expectedIdentity"]},{fields:["testLaunch.expectedOrganizationPath","testLaunch.expectedOrganization"]},{fields:["testLaunch.fixtures"]}]}},compliance:{title:"Compliance",intro:"Confirm that your MCP server meets Anthropic’s directory policies. All items are required."},review:{title:"Review and submit",intro:"Confirm the details, then submit. Review can take a few weeks, and approval isn’t guaranteed.",layout:{blocks:[{widget:"submit",text:{submit:"Submit for review",missing:"Some steps are missing required fields — submit to highlight them."}}],review:[{id:"connection",title:"Connection",edit:"connection",rows:["connection.serverUrl",{label:"Captured tool list",error:"A captured tool list is required to submit. Connect your server on the Connection step, or reconnect it in Settings → Connectors, to capture it.",blank:"connection.serverUrl"}]},{id:"connection-auth",title:"Connection & authentication",edit:"authentication",rows:["authentication.requirement","authentication.oauthClient"]},{id:"listing",title:"Listing",edit:"listing",rows:["listing.name","listing.slug","listing.oneLiner","listing.description","listing.authorName","listing.categories","listing.documentationUrl","listing.support","listing.privacyPolicyUrl"]},{id:"useCases",title:"Use cases",edit:"useCases",rows:["useCases.pairs","useCases.prerequisites","useCases.access"]},{id:"company",title:"Company",edit:"company",rows:["company.name","company.website","company.contactName","company.contactEmail"]},{id:"authentication",title:"Authentication",edit:"authentication",rows:[],flat:!0},{id:"dataHandling",title:"Data handling",edit:"dataHandling",rows:["dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored"]},{id:"testLaunch",title:"Test & launch",edit:"testLaunch",rows:["testLaunch.instructions","testLaunch.selfTested"]},{id:"compliance",title:"Compliance",edit:"compliance",rows:["compliance.acknowledgments","compliance.additionalNotes"]}]}}},jk=JSON.parse(`{"connection.serverUrl":{"label":"Server URL","helper":"Servers already in the directory aren’t shown.","errors":{"required":"This field is required"}},"connection.differentUrls":{"label":"Users connect to different URLs","helper":"Leave this unchecked if every user connects to the same server URL."},"listing.name":{"label":"Name","placeholder":"My MCP server","errors":{"required":"This field is required"}},"listing.slug":{"label":"Slug","placeholder":"my-mcp-server","helper":"Permanent after submission. Lowercase letters, numbers, and hyphens.","errors":{"required":"Slug is required"}},"listing.oneLiner":{"label":"One-liner","placeholder":"A short tagline for your MCP server","errors":{"required":"This field is required"}},"listing.description":{"label":"Description","placeholder":"Describe what your MCP server does and its key features…","errors":{"required":"This field is required"}},"listing.categories":{"label":"Categories","placeholder":"Select categories","helper":"Categories are used to filter MCP servers in the directory. Select up to 5.","errors":{"required":"Select at least one category"}},"listing.authorName":{"label":"Author name","reviewLabel":"Author","placeholder":"Acme Inc.","helper":"Shown as “by …” on the listing.","errors":{"required":"An author is required to submit — add one on the Listing step, or fill in your company name and an https:// website to use those"}},"listing.authorUrl":{"label":"Author URL","placeholder":"https://example.com","helper":"If left blank, these default to your company name and website."},"listing.iconUrl":{"label":"Icon","helper":"The directory and Claude show the favicon from your server’s URL; we recommend leaving it at that. A custom icon replaces it in the directory listing only."},"listing.documentationUrl":{"label":"Documentation","placeholder":"https://docs.example.com","helper":"Public-facing docs shown to users. IT admins often review these when deciding whether to approve an MCP server.","errors":{"required":"This field is required"}},"listing.enterpriseAuthDocsUrl":{"label":"Enterprise managed auth documentation","placeholder":"https://docs.example.com/setup","helper":"Setup instructions for admins configuring enterprise managed auth for this connector. Linked from the admin setup flow."},"listing.support":{"label":"Support","reviewLabel":"Support URL","placeholder":"support@example.com or https://support.example.com","helper":"A support URL or email address.","errors":{"required":"This field is required"}},"listing.privacyPolicyUrl":{"label":"Privacy policy","placeholder":"https://example.com/privacy","errors":{"required":"This field is required"}},"useCases.pairs":{"label":"Use cases","helper":"Shown to reviewers, not on your public listing.","errors":{"required":"Add at least one use case with an example prompt"}},"useCases.prerequisites":{"label":"Prerequisites","placeholder":"A paid Acme account with admin permissions","helper":"The accounts, permissions or setup a user needs before connecting. Shown to reviewers.","errors":{"required":"This field is required"}},"useCases.access":{"label":"Read/write capabilities","helper":"Based on what your tools do; we check it against their annotations.","options":[{"value":"read-only","label":"Read only","help":"Retrieves data but never modifies it"},{"value":"write-only","label":"Write only","help":"Creates or modifies data but does not read it"},{"value":"read-write","label":"Read and write","help":"Both retrieves and modifies data"}],"errors":{"required":"This field is required"}},"company.name":{"label":"Company name","errors":{"required":"This field is required"}},"company.website":{"label":"Company website","placeholder":"https://example.com","errors":{"required":"This field is required"}},"company.contactName":{"label":"Full name","reviewLabel":"Primary contact","errors":{"required":"This field is required"}},"company.contactEmail":{"label":"Email","reviewLabel":"Contact email","helper":"Prefilled from your Claude account.","errors":{"required":"This field is required"}},"company.role":{"label":"Role","placeholder":"Software Engineer"},"company.anthropicContact":{"label":"Anthropic contact","placeholder":"Name or email (optional)","helper":"If you’ve been working with someone at Anthropic, let us know who."},"authentication.requirement":{"label":"Authentication requirement","options":[{"value":"always","label":"Always required","help":"Users connect and sign in before any tools or resources are available."},{"value":"when-asked","label":"Required when the server asks","help":"Claude connects without credentials first, then prompts to sign in if the server requires it."},{"value":"none","label":"None","help":"Anyone can use this server without signing in or providing credentials."}],"errors":{"required":"This field is required"}},"authentication.oauthClient":{"label":"OAuth client","options":[{"value":"dcr","label":"Dynamic Client Registration","help":"Clients register themselves with the server (RFC 7591)"},{"value":"cimd","label":"Client ID Metadata Document","help":"The server accepts a published client metadata URL"},{"value":"anthropic-held","label":"Anthropic-held client credentials","help":"Anthropic stores one client ID used for every connection"},{"value":"bring-your-own","label":"Installers bring their own OAuth client","help":"Each organization supplies a client ID it registered with the server"}],"errors":{"required":"This field is required"}},"dataHandling.apiOwnership":{"label":"API ownership","options":[{"value":"own","label":"We own the API","help":"The MCP server calls our own production APIs"},{"value":"partner-proxy","label":"We proxy a partner’s API with permission","help":"Calls go to a third-party API we’re authorized to integrate (e.g. Zapier-style)"},{"value":"third-party","label":"Calls a third-party API we don’t control","help":"Typically blocks listing — explain in Additional notes"}],"errors":{"required":"This field is required"}},"dataHandling.healthData":{"label":"Personal health data","helper":"Does this MCP server access, process, or store personal health information?","options":[{"value":"no","label":"No"},{"value":"yes","label":"Yes"},{"value":"depends","label":"Other / depends on configuration"}],"errors":{"required":"This field is required"}},"dataHandling.sponsored":{"label":"Sponsored or promoted content","reviewLabel":"Sponsored content","helper":"Sponsored, promoted, and advertising content is prohibited in the directory. Does this MCP server surface any?","options":[{"value":"no","label":"No"},{"value":"yes","label":"Yes"},{"value":"other","label":"Other"}],"errors":{"required":"This field is required"}},"testLaunch.instructions":{"label":"Test setup instructions","placeholder":"Sign up at example.com/signup with email reviewer@anthropic.com, then connect via OAuth using client_id=...","helper":"We reserve the right to manually review all servers. Provide clear test-account setup and access instructions. We’re working to automate this process to reduce the time it takes to get your server into the directory — write these instructions so they contain every link, credential, and step needed to autonomously access the MCP server. For enterprise accounts or servers that require a fully populated account, provide test credentials that grant access to a fully populated account for review."},"testLaunch.selfTested":{"label":"I have run every tool via MCP Inspector or as a custom connector in Claude","reviewLabel":"Self-tested"},"testLaunch.identityTool":{"label":"Identity tool","placeholder":"whoami","helper":"A read-only tool on your server that returns the signed-in account. MCPJam calls it as the reviewer."},"testLaunch.identityArgs":{"label":"Identity tool arguments","placeholder":"{}","helper":"Fixed JSON arguments, if the identity tool takes any."},"testLaunch.expectedIdentityPath":{"label":"Identity path","placeholder":"$.user.email","helper":"Where the tool's result names the account, as a JSON path."},"testLaunch.expectedIdentity":{"label":"Expected reviewer","placeholder":"review@example.com","helper":"The account reviewers sign in as."},"testLaunch.expectedOrganizationPath":{"label":"Organization path","placeholder":"$.organization.name","helper":"Where the tool's result names the organization or project, as a JSON path."},"testLaunch.expectedOrganization":{"label":"Expected organization","placeholder":"Sample Org","helper":"The organization or project reviewers should land in."},"testLaunch.fixtures":{"label":"Fixtures","helper":"Resources your instructions name, each with a read-only tool call that finds it in the reviewer's account."},"compliance.acknowledgments":{"label":"Policy acknowledgements","reviewLabel":"Policies acknowledged","options":[{"value":"developer-guidelines","label":"I have read and understand the MCP Directory developer guidelines."},{"value":"first-party-apis","label":"My server calls our own first-party APIs (or APIs we legitimately proxy with permission)."},{"value":"no-financial-transfers","label":"My MCP server does not transfer money, cryptocurrency, or other financial assets on a user’s behalf."},{"value":"no-generated-media","label":"My MCP server does not use AI models to generate images, video, or audio."},{"value":"clean-tool-descriptions","label":"Tool descriptions contain no instructions about model behavior, other tools, or external instruction sources, and no hidden or encoded text."},{"value":"minimal-conversation-data","label":"My MCP server does not collect conversation data beyond what is needed for its function."},{"value":"public-docs-by-launch","label":"Public documentation for this MCP server will be live by the publish date."}],"errors":{"required":"All policy items must be acknowledged","tooFew":"All policy items must be acknowledged"}},"compliance.additionalNotes":{"label":"Additional notes","reviewLabel":"Additional information","helper":"Optional. Anything else the review team should know about your MCP server."}}`),Fk=[{step:"connection",field:"connection.serverUrl",needs:[],reads:["connection.serverUrl"],checks:["claude.endpoint.https"]},{step:"connection",field:"connection.serverUrl",needs:["server"],reads:["connection.serverUrl"],checks:["claude.endpoint.redirects-stay-https","claude.endpoint.redirects-terminate"]},{step:"tools",needs:["server"],reads:["connection.serverUrl"],checks:["claude.tools.name-length","claude.tools.title-present","claude.tools.behavior-hints-present","claude.tools.behavior-hints-consistent","claude.tools.no-catch-all-read-write","claude.tools.free-string-operation-parameter","claude.apps.resource-uri-modern","claude.apps.html-mime-profile","claude.apps.openai-only-widget","claude.apps.ui-domain-derivation","claude.apps.ui-domain-recommended-for-app-oauth","claude.apps.csp-shape","claude.apps.result-size-budget","claude.apps.instance-supersession","claude.apps.design.doctype","claude.apps.design.responsive-320","claude.apps.design.touch-targets","claude.apps.design.safe-area","claude.apps.design.theming","claude.apps.design.transparent-background","claude.apps.design.nested-scrolling","claude.apps.design.accessibility","claude.apps.design.display-mode"]},{step:"tools",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.experience.tool-descriptions-uninformative","claude.experience.tool-overlap","claude.experience.connector-purpose-unclear","claude.experience.destructive-tool-underexplained","claude.experience.app-copy-mismatched","both.decision.annotation-matches-behaviour"]},{step:"listing",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.experience.listing-copy-placeholder"]},{step:"listing",needs:[],reads:["listing.name","listing.slug","listing.oneLiner","listing.description","listing.categories","listing.authorName","company.name","company.website"],checks:["claude.submission.listing-fields"]},{step:"listing",needs:[],reads:["listing.documentationUrl","listing.privacyPolicyUrl","listing.support","listing.authorUrl","listing.iconUrl","listing.enterpriseAuthDocsUrl"],checks:["claude.submission.urls"]},{step:"listing",needs:[],reads:[],checks:["claude.submission.screenshots","claude.submission.screenshot-prompts"]},{step:"useCases",field:"useCases.access",needs:["server"],reads:["useCases.access","connection.serverUrl"],checks:["claude.submission.access-matches-annotations"]},{step:"useCases",field:"useCases.pairs",needs:[],reads:["useCases.pairs","useCases.prerequisites"],checks:["claude.submission.use-cases"]},{step:"company",needs:[],reads:["company.name","company.website","company.contactName","company.contactEmail"],checks:["claude.submission.company"]},{step:"authentication",field:"authentication.requirement",needs:[],reads:["authentication.requirement","authentication.oauthClient"],checks:["claude.submission.authentication"]},{step:"authentication",field:"authentication.requirement",needs:["server"],reads:["connection.serverUrl"],checks:["claude.auth.unauthenticated-challenge","claude.features.lazy-authentication"]},{step:"authentication",needs:["server"],reads:["connection.serverUrl"],checks:["claude.auth.challenge-names-resource-metadata","claude.auth.no-challenge-on-successful-operation","claude.auth.prm-discoverable","claude.auth.prm-resource-matches-entered-url","claude.auth.first-authorization-server-usable","claude.auth.pkce-s256-advertised","claude.auth.cimd-flag-consistent","claude.features.enterprise-managed-auth"]},{step:"authentication",field:"authentication.oauthClient",needs:["server"],reads:["connection.serverUrl","authentication.requirement","authentication.oauthClient"],checks:["claude.auth.client-acquisition-path","claude.submission.declared-auth-mode"]},{step:"authentication",needs:["server","reviewer"],reads:["connection.serverUrl"],checks:["claude.auth.rfc8707-resource-canonical","claude.auth.insufficient-scope-challenge-shape","claude.auth.access-token-audience","claude.intrusive.dynamic-registration","claude.intrusive.refresh-rotation","claude.intrusive.step-up-challenge"]},{step:"authentication",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.experience.consent-scope-unclear"]},{step:"dataHandling",needs:[],reads:["dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored"],readsConfirmation:!0,checks:["claude.submission.data-handling"]},{step:"testLaunch",field:"testLaunch.instructions",needs:[],reads:["testLaunch.instructions","authentication.requirement"],checks:["claude.submission.test-instructions"]},{step:"testLaunch",field:"testLaunch.identityTool",needs:["server","reviewer"],reads:["connection.serverUrl","testLaunch.identityTool","testLaunch.identityArgs","testLaunch.expectedIdentityPath","testLaunch.expectedIdentity","testLaunch.expectedOrganizationPath","testLaunch.expectedOrganization"],checks:["both.reviewer.identity"]},{step:"testLaunch",field:"testLaunch.fixtures",needs:["server","reviewer"],reads:["connection.serverUrl","testLaunch.fixtures","testLaunch.instructions","useCases.pairs","testLaunch.identityTool","testLaunch.identityArgs","testLaunch.expectedIdentityPath","testLaunch.expectedIdentity","testLaunch.expectedOrganizationPath","testLaunch.expectedOrganization"],checks:["both.reviewer.fixtures"]},{step:"authentication",needs:["server"],reads:["connection.serverUrl"],checks:["both.auth.client-signatures"]},{step:"compliance",field:"compliance.acknowledgments",needs:[],reads:["compliance.acknowledgments"],readsConfirmation:!0,checks:["claude.submission.attestations"]},{step:"compliance",field:"compliance.acknowledgments",needs:["server"],reads:["connection.serverUrl"],checks:["claude.scan.cross-tool-direction-candidates"]},{step:"compliance",field:"compliance.acknowledgments",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.decision.cross-tool-direction"]},{step:"review",needs:[],reads:["dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored"],checks:["claude.submission.artifact-quality"]},{step:"review",needs:[],reads:["useCases.access","dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored","testLaunch.selfTested","compliance.acknowledgments"],readsConfirmation:!0,checks:["claude.submission.declarations-confirmed"]},{step:"review",needs:[],reads:["connection.serverUrl","connection.differentUrls","useCases.access","company.role","company.anthropicContact","testLaunch.instructions","testLaunch.selfTested","compliance.additionalNotes"],readsConfirmation:!0,checks:["claude.submission.other-answers"]}],Hk={"runtime-compatibility":"connection","directory-policy":"tools","optional-features":"authentication","submission-artifacts":"listing","experience-insights":"tools"},Ln={title:qk,steps:zk,fields:jk,placements:Fk,laneSteps:Hk},Bk=Ln.fields,Jp=Ln.steps,un={declaration:!0},hi={format:"https-url"};function je(e,t={}){return{control:e,required:!0,...t}}function mt(e,t={}){return{control:e,...t}}var Vk={"connection.serverUrl":je("server",{format:"url"}),"connection.differentUrls":mt("checkbox"),"listing.name":je("text",{maxLength:Tt.nameMaxLength}),"listing.slug":je("text",{format:"slug"}),"listing.oneLiner":je("text",{maxLength:Tt.oneLinerMaxLength}),"listing.description":je("textarea",{maxLength:Tt.descriptionMaxLength}),"listing.categories":je("multi-select",{freeEntry:!0,minItems:Tt.categoriesMin,maxItems:Tt.categoriesMax}),"listing.authorName":je("text",{requiredOn:"review",satisfiedBy:[{key:"company.name"},{key:"company.website",format:"https-url"}]}),"listing.authorUrl":mt("text",hi),"listing.iconUrl":mt("text",hi),"listing.documentationUrl":je("text",hi),"listing.enterpriseAuthDocsUrl":mt("text",hi),"listing.support":je("text",{format:"url-or-email"}),"listing.privacyPolicyUrl":je("text",hi),"useCases.pairs":je("pairs",{pairs:{columns:["Use case","Example prompt"],keys:["useCase","examplePrompt"],placeholders:[["Look up a product","What sizes are in stock at the Portland store?"],["Compare prices","Which fall items are marked down more than 30%?"],["Draft a product listing","Create a draft listing for the canvas tote."]],maxRows:Tt.useCasesMax}}),"useCases.prerequisites":je("textarea"),"useCases.access":je("radio",{...un,default:"read-only"}),"company.name":je("text",{prefill:"organization-name"}),"company.website":je("text",{format:"url"}),"company.contactName":je("text",{prefill:"account-name"}),"company.contactEmail":je("text",{format:"email",prefill:"account-email"}),"company.role":mt("text"),"company.anthropicContact":mt("text"),"authentication.requirement":je("radio",{default:"always"}),"authentication.oauthClient":je("radio",{default:"dcr"}),"dataHandling.apiOwnership":je("radio-cards",{...un,default:"own"}),"dataHandling.healthData":je("radio",{...un,default:"no"}),"dataHandling.sponsored":je("radio",un),"testLaunch.instructions":mt("textarea"),"testLaunch.selfTested":mt("checkbox",un),"testLaunch.identityTool":mt("text",{requiredWith:["testLaunch.expectedIdentity","testLaunch.expectedOrganization"]}),"testLaunch.identityArgs":mt("text"),"testLaunch.expectedIdentityPath":mt("text",{requiredWith:["testLaunch.expectedIdentity"]}),"testLaunch.expectedIdentity":mt("text",{requiredWith:["testLaunch.expectedIdentityPath"]}),"testLaunch.expectedOrganizationPath":mt("text",{requiredWith:["testLaunch.expectedOrganization"]}),"testLaunch.expectedOrganization":mt("text",{requiredWith:["testLaunch.expectedOrganizationPath"]}),"testLaunch.fixtures":mt("pairs",{pairs:og}),"compliance.acknowledgments":je("checkbox-group",{...un,minItems:Ln.fields["compliance.acknowledgments"].options.length}),"compliance.additionalNotes":mt("textarea")},E$={id:"claude-connector",directory:"claude",title:Ln.title,version:"2026-11-13",source:{label:"Claude directory portal: Submit an MCP connector",url:"https://claude.ai/directory/manage",capturedAt:"2026-11-13"},submissionUrl:"https://claude.ai/directory/manage",steps:Object.keys(Jp).map(e=>({id:e,...Jp[e],fields:ag(e,Vk,Bk)})),placements:cg("claude-connector.json",Ln.placements),laneSteps:Ln.laneSteps};function $a(e,t){for(const r of e.steps){const s=r.fields.find(n=>n.key===t);if(s)return s}}function Gk(e){return e.steps.flatMap(t=>t.fields.flatMap(r=>r.default===void 0?[]:[{key:r.key,value:r.default}]))}function Kk(e,t){const r=new Set(t.map(s=>s.key));return[...t,...Gk(e).filter(s=>!r.has(s.key)).map(s=>({...s,origin:"default"}))]}function Jk(e,t){const r=$a(e,t);return r&&(r.wordingRevision??e.version)}function lg(e,t){if(t==null||t===!1)return!0;if(typeof t=="string")return t.trim()==="";if(!Array.isArray(t))return!1;const r=e.pairs?.keys;return r?!t.some(s=>typeof s=="object"&&r.every(n=>(s[n]??"").trim()!=="")):t.length===0}var Wk=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Yk=/^[a-z0-9-]+$/,Xk=/^[A-Z_][A-Z0-9_]{0,63}$/,Qk="Package details are read-only here; edit them in your source package.",Zk={"https-url":"Enter a full https:// URL.",url:"Enter a full URL, such as https://example.com.",email:"Enter an email address.","url-or-email":"Enter a URL or an email address.",slug:"Use only lowercase letters, numbers, and hyphens."},e0={text:"text",textarea:"text",select:"one option value","multi-select":"a list of option values",radio:"one option value","radio-cards":"one option value",checkbox:"true or false","checkbox-group":"a list of option values",pairs:"a list of rows",rows:"a list of records",server:"a server URL",secret:"the name of a project secret, such as REVIEWER_PASSWORD, never the secret itself"};function T$(e,t,r={}){const s=Kk(e,t),n=new Map(s.map(o=>[o.key,o])),i=[];for(const o of e.steps)for(const a of o.fields){const c=n.get(a.key),l=t0(e,a,c,n,r);l&&i.push(i0(e,a,l,c?.value))}for(const o of n.keys())$a(e,o)||i.push(a0(o));return i}function t0(e,t,r,s,{on:n="form",savedSecrets:i}){const o=r?.value??null,a=r0(t,o);if(a)return a;if(lg(t,o))return(t.required&&(n==="review"||t.requiredOn!=="review")||s0(e,t.requiredWith,s))&&!n0(t,s)?"required":void 0;if(typeof o=="string"){if(t.format&&!Vi(t.format,o))return"format";if(t.maxLength!==void 0&&o.length>t.maxLength)return"tooLong";if(t.control==="secret"&&i?.includes(o)===!1)return"secretUnset"}if(Array.isArray(o)){const c=dg(o)?new Set(o).size:o.length;if(c<(t.minItems??0))return"tooFew";if(t.control==="rows"&&c>(t.maxItems??1/0))return"tooMany"}if(t.declaration&&r?.origin==="confirmed"&&r.wordingRevision!==Jk(e,t.key))return"wordingChanged"}function r0(e,t){if(!(t===null||t===""))switch(e.control){case"checkbox":return typeof t=="boolean"?void 0:"wrongKind";case"multi-select":case"checkbox-group":return dg(t)?t.some(r=>!Wp(e,r))?"unknownOption":new Set(t).size>(e.maxItems??1/0)?"tooMany":void 0:"wrongKind";case"pairs":return Xp(t,e.pairs?.keys??[])?t.length>(e.pairs?.maxRows??1/0)?"tooMany":void 0:"wrongKind";case"rows":return Xp(t)?void 0:"wrongKind";case"secret":return typeof t=="string"&&Xk.test(t)?void 0:"wrongKind";case"select":case"radio":case"radio-cards":return typeof t!="string"?"wrongKind":Wp(e,t)?void 0:"unknownOption";default:return typeof t=="string"?void 0:"wrongKind"}}function Wp(e,t){return e.freeEntry===!0||(e.options??[]).some(r=>r.value===t)}function s0(e,t,r){return(t??[]).some(s=>{const n=$a(e,s);return!!(n&&!lg(n,r.get(s)?.value))})}function n0(e,t){return!!(e.satisfiedBy?.length&&e.satisfiedBy.every(({key:r,format:s})=>{const n=t.get(r)?.value;return typeof n=="string"&&n.trim()!==""&&(!s||Vi(s,n))}))}function Vi(e,t){switch(e){case"https-url":return Yp(t)==="https:";case"url":return["https:","http:"].includes(Yp(t)??"");case"email":return Wk.test(t.trim());case"url-or-email":return Vi("email",t)||Vi("url",t);case"slug":return Yk.test(t)}}function Yp(e){try{const t=new URL(e.trim());return t.hostname?t.protocol:void 0}catch{return}}function dg(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function Xp(e,t){return Array.isArray(e)&&e.every(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)&&Object.entries(r).every(([s,n])=>(!t||t.includes(s))&&typeof n=="string"))}function i0(e,t,r,s){const n=e.steps.find(i=>i.fields.includes(t));return{key:t.key,step:n?.id??"",code:r==="wrongKind"?"format":r,message:o0(e,t,r,s)}}function o0(e,t,r,s){const n=t.label.toLowerCase();switch(r){case"wrongKind":return`${t.label} takes ${e0[t.control]}.`;case"unknownOption":return`Choose one of: ${(t.options??[]).map(l=>l.value).join(", ")}.`;case"wordingChanged":return"The wording changed after this was confirmed. Read it again and confirm it.";case"managedByPackage":return Qk;case"secretUnset":return`No value is saved for the project secret ${String(s)}. Save the ${n} under that name.`}const i=t.errors[r];if(i)return i;const o=Array.isArray(s)?s.length:0,a=t.control==="checkbox-group"&&t.minItems===t.options?.length,c=t.required?void 0:t.requiredWith?.map(l=>$a(e,l)?.label)[0];switch(r){case"required":return a?`Tick all ${t.minItems} ${n} to submit.`:t.control==="rows"&&t.minItems?`Supply ${t.minItems} ${n}.`:c?`Add ${n} for the ${c.toLowerCase()} you entered.`:`${t.label} is required.`;case"format":return Zk[t.format??"url"];case"tooLong":return`Use ${t.maxLength} characters or fewer. This has ${String(s).length}.`;case"tooMany":return t.control==="rows"?`Supply at most ${t.maxItems} ${n}. There are ${o}.`:`Choose up to ${t.maxItems??t.pairs?.maxRows}.`;case"tooFew":return a?`Tick all ${t.minItems} ${n} to submit.`:t.control==="rows"?`Supply at least ${t.minItems} ${n}. There are ${o}.`:`Choose at least ${t.minItems}.`}}function a0(e){return{key:e,step:e.split(".")[0]??"",code:"unknownField",message:`This flow has no field ${e}. Read the flow for its field keys.`}}function Vd(e){return e.class==="required"||e.class==="runtime-blocker"}var A$=Object.freeze({maxQuestionsPerRun:24,maxKeyChars:200,maxNameChars:200,maxFieldChars:300,maxTextChars:2e3,maxReferences:10,maxQuoteChars:400}),c0=String.raw`(?:call|invoke|run|use|execute|trigger|poll|retry|re-?run|chain|pair|combine)`,R$=String.raw`(?:calling|using|running|invoking|executing|polling)`,l0=String.raw`(?:get|obtain|fetch|retrieve|look\s+up|find|read|take|copy|resolve|discover|check|verify|confirm|inspect|track|monitor|pass|provide|supply|send|feed|forward|hand|give|submit|${c0})`,d0=String.raw`(?:^|[,;:(\u2013\u2014]\s*|\s-\s+|\b(?:and|or|then|so|to|first|next|finally|afterwards|always|also|instead|otherwise|please|only|now|immediately)\s+)`,u0=String.raw`\b(?:must|should|shall|can|may|need\s+to|needs\s+to|have\s+to|has\s+to|be\s+sure\s+to|make\s+sure\s+to|remember\s+to|(?:do\s+not|don't)\s+forget\s+to|want\s+to)\s+(?:not\s+|also\s+|first\s+|always\s+|then\s+|still\s+)?`,I$=String.raw`(?:(?:the|a|an|this|that|it|its|tool|tools|first|also|again|only|then|always|now|before|after|with|together|alongside|along|instead|of|to|right|immediately|once|back)\s+){0,4}`,C$=String.raw`[^.;:!?,]{0,30}?`,P$=String.raw`(?:from|with|using|via|through|to|into|by\s+calling|by\s+running|returned\s+by|produced\s+by|output\s+(?:of|from)|result\s+of|response\s+(?:of|from))`,O$=String.raw`(?:before|after|once|until|prior\s+to|together\s+with|alongside|instead\s+of|in\s+place\s+of|rather\s+than)`,M$=new RegExp(`${d0}(?:${l0}|confirm|ask|wait|stop|ensure|tell|show|list|try|avoid|save|create|delete|update|refresh|compare)\\b|${u0}\\w`,"i"),qa=e=>new RegExp(`\\b(?:${e})(?:e|es|ed|ing|s)?\\b`,"i"),x$=qa("creat|add|insert|updat|edit|modif(?:y|ies|ied|ying)|chang|sav|writ|written|send|sent|post|publish|submit|submitt|upload|delet|remov|archiv|mov|renam|cancel|cancell|schedul|purchas|pay|paid|transfer|transferr|deploy|install|trigger|overwrit|overwritten"),N$=qa("get|list|read|fetch|retriev|search|find|view|show|return|quer(?:y|ies|ied|ying)|inspect|describ|count|lookup"),L$=qa("delet|remov|overwrit|overwritten|drop|dropp|destroy|eras|purg|wip|truncat|revok|replac|permanently|irreversibl"),D$=qa("creat|add|insert|append|increment|generat|send|sent|post|submit|submitt"),U$=Object.freeze({maxTools:500,maxCases:1500,maxFixtures:50,maxCleanupSteps:50,maxIdLength:200,maxPlanLength:524288,maxCalls:3e3,maxConcurrency:4,minCallTimeoutMs:1e3,maxCallTimeoutMs:12e4});function p0(e){const t=[];return Nl(e,r=>{t.push(r)}),t}function h0(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const{$fixture:t,value:r}=e;if(typeof t=="string")return{fixture:t,value:typeof r=="string"?r:""}}function Nl(e,t){const r=h0(e);return r?t(r):Array.isArray(e)?e.map(s=>Nl(s,t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([s,n])=>[s,Nl(n,t)])):e}function $$(e){const t=new Map(e.tools.map(a=>[a.tool,a])),r=a=>{const c=t.get(a.tool),l=c?.effect??"destructive";return(l==="destructive"?3:a.creates?.length?0:l==="read"?1:2)*2+(c?.openWorld===!1?0:1)},s=new Set(e.cases.flatMap(a=>a.creates??[])),n=e.cases.map((a,c)=>({testCase:a,index:c,rank:r(a),needs:p0(a.arguments).map(l=>l.fixture).filter(l=>s.has(l)&&!a.creates?.includes(l))})).sort((a,c)=>a.rank-c.rank||a.index-c.index),i=new Set,o=[];for(;n.length>0;){const a=n.findIndex(({needs:l})=>l.every(u=>i.has(u))),[c]=n.splice(Math.max(a,0),1);o.push(c.testCase);for(const l of c.testCase.creates??[])i.add(l)}return o}var m0=e=>e/2**32|0,f0=e=>e>>>0;function g0(e,t,r,s){const n=m0(r),i=f0(r);e.setUint32(t,s?i:n,s),e.setUint32(t+4,s?n:i,s)}function Qp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}var Ll=e=>e?`"${e}" `:"";function v0(e,t=""){if(typeof e!="number")throw new TypeError(Ll(t)+"expected number, got "+typeof e);if(!Number.isSafeInteger(e)||e<0)throw new RangeError(Ll(t)+"expected integer >= 0, got "+e);return e}function Gd(e,t,r=""){if(Qp(e)&&(t===void 0||e.length===t))return e;t!==void 0&&v0(t,"length");const s=Qp(e),n=t!==void 0?` of length ${t}`:"",i=s?`length=${e.length}`:`type=${typeof e}`,o=Ll(r)+"expected Uint8Array"+n+", got "+i;throw s?new RangeError(o):new TypeError(o)}var y0=(e,t)=>{if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError((t==="object"?"":`"${t}" `)+"expected object, got type="+typeof e)},Zp=(e,t)=>{y0(e,t);const r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)throw new TypeError(`"${t}" expected plain object`);if(Object.hasOwn(e,"__proto__"))throw new TypeError(`"${t}.__proto__" is not allowed`)};function eh(e,t=!0){if(e.destroyed)throw new Error("hash was destroyed");if(t&&e.finished)throw new Error("digest() was already called")}function _0(e,t){Gd(e,void 0,"output");const r=t.outputLen;if(!(e.length>=r))throw new RangeError('"output" expected length >= '+r)}function Dl(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Uc(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function hr(e,t){return e<<32-t|e>>>t}var b0=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",S0=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function w0(e){if(Gd(e),b0)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=S0[e[r]];return t}function k0(e){if(typeof e!="string")throw new TypeError("string expected");const t=new TextEncoder().encode(e);try{return new Uint8Array(t)}finally{Dl(t)}}function E0(e,t,r="opts"){return Zp(e,"defaults"),t!==void 0&&Zp(t,r),Object.assign(Object.create(null),e,t)}function T0(e,t={}){if(typeof e!="function")throw new TypeError('"hashCons" expected function, got type='+typeof e);t=E0({},t,"info");const r=(n,i)=>e(i).update(n).digest(),s=e(void 0);return r.outputLen=s.outputLen,r.blockLen=s.blockLen,r.canXOF=s.canXOF,r.create=n=>e(n),Object.assign(r,t),Object.freeze(r)}var A0=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function R0(e,t,r){return e&t^~e&r}function I0(e,t,r){return e&t^e&r^t&r}var C0=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,r,s){this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=s,this.buffer=new Uint8Array(e),this.view=Uc(this.buffer)}update(e){eh(this),Gd(e);const{view:t,buffer:r,blockLen:s}=this,n=e.length;let i=!1;for(let o=0;o<n;){const a=Math.min(s-this.pos,n-o);if(a===s){const c=Uc(e);for(;s<=n-o;o+=s)this.process(c,o);i=!0;continue}r.set(o===0&&a===n?e:e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===s&&(this.process(t,0),this.pos=0,i=!0)}return this.length+=e.length,i&&this.roundClean(),this}digestInto(e){eh(this),_0(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:s,isLE:n}=this;let{pos:i}=this;t[i++]=128,t.fill(0,i),this.padOffset>s-i&&(this.process(r,0),t.fill(0)),g0(r,s-8,this.length*8,n),this.process(r,0),this.roundClean();const o=e===t?r:Uc(e),a=this.outputLen,c=a/4,l=this.get();if(a%4||c>l.length)throw new Error("invalid outputLen");for(let u=0;u<c;u++)o.setUint32(4*u,l[u],n)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneIntoMeta(e){const{buffer:t,length:r,finished:s,destroyed:n,pos:i}=this;return e.destroyed=n,e.finished=s,e.length=r,e.pos=i,i&&e.buffer.set(t),e}clone(){return this._cloneInto()}},P0=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),O0=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),es=new Uint32Array(64),M0=class extends C0{A=0;B=0;C=0;D=0;E=0;F=0;G=0;H=0;constructor(e,t){super(64,e,8,!1),this.A=t[0]|0,this.B=t[1]|0,this.C=t[2]|0,this.D=t[3]|0,this.E=t[4]|0,this.F=t[5]|0,this.G=t[6]|0,this.H=t[7]|0}get(){const{A:e,B:t,C:r,D:s,E:n,F:i,G:o,H:a}=this;return[e,t,r,s,n,i,o,a]}set(e,t,r,s,n,i,o,a){this.A=e|0,this.B=t|0,this.C=r|0,this.D=s|0,this.E=n|0,this.F=i|0,this.G=o|0,this.H=a|0}_cloneInto(e){return(e||=new this.constructor).set(...this.get()),this._cloneIntoMeta(e)}process(e,t){for(let u=0;u<16;u++,t+=4)es[u]=e.getUint32(t,!1);for(let u=16;u<64;u++){const d=es[u-15],h=es[u-2],g=hr(d,7)^hr(d,18)^d>>>3,y=hr(h,17)^hr(h,19)^h>>>10;es[u]=y+es[u-7]+g+es[u-16]|0}let{A:r,B:s,C:n,D:i,E:o,F:a,G:c,H:l}=this;for(let u=0;u<64;u++){const d=hr(o,6)^hr(o,11)^hr(o,25),h=l+d+R0(o,a,c)+O0[u]+es[u]|0,g=(hr(r,2)^hr(r,13)^hr(r,22))+I0(r,s,n)|0;l=c,c=a,a=o,o=i+h|0,i=n,n=s,s=r,r=h+g|0}r=r+this.A|0,s=s+this.B|0,n=n+this.C|0,i=i+this.D|0,o=o+this.E|0,a=a+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(r,s,n,i,o,a,c,l)}roundClean(){Dl(es)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Dl(this.buffer)}},x0=class extends M0{constructor(){super(32,P0)}},N0=T0(()=>new x0,A0(1));function $c(e,t,r){const s=new Map(e.map(i=>[r(i),i])),n=new Map(t.map(i=>[r(i),i]));return{added:[...n.keys()].filter(i=>!s.has(i)).sort(),removed:[...s.keys()].filter(i=>!n.has(i)).sort(),changed:[...s.keys()].filter(i=>n.has(i)&&cr(s.get(i))!==cr(n.get(i))).sort()}}function ug(e,t,r=""){if(Object.is(e,t))return[];const s=n=>typeof n=="object"&&n!==null&&!Array.isArray(n);return s(e)&&s(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].sort().flatMap(n=>ug(e[n],t[n],r?`${r}.${n}`:n)):cr(e)===cr(t)?[]:[r]}function L0(e,t){if(e.directory!==t.directory)throw new Error("Choose revisions from the same directory.");const r=$c(e.server.tools,t.server.tools,I=>I.name),s=new Map(e.server.tools.map(I=>[I.name,I])),n=new Map(t.server.tools.map(I=>[I.name,I])),i=r.changed.map(I=>({name:I,paths:ug(s.get(I),n.get(I))})),o=$c(e.cases,t.cases,I=>I.id),a=[...o.added,...o.changed,...o.removed],c=new Set([...r.added,...r.removed,...r.changed]),l=e.server.url!==t.server.url,u=e.server.authentication!==t.server.authentication||e.server.connectionFingerprint!==t.server.connectionFingerprint,d={...e.plugin?.files,...e.icon&&{[e.icon.path]:e.icon.digest}},h={...t.plugin?.files,...t.icon&&{[t.icon.path]:t.icon.digest}},g=[...new Set([...Object.keys(d),...Object.keys(h)])].filter(I=>d[I]!==h[I]).sort(),y=Object.keys(t.listing).filter(I=>cr(e.listing[I])!==cr(t.listing[I])),m=$c(e.directoryAnswers??[],t.directoryAnswers??[],I=>I.key),k=t.cases.filter(I=>l||u||a.includes(I.id)||I.tools.some(z=>c.has(z))).map(I=>I.id),M=e.evidence.reviewer?.toolName;return{tools:r,toolFields:i,authenticationChanged:u,endpointChanged:l,listingFields:[...y,...m.added,...m.changed,...m.removed],changedCases:a,rerunCases:k,skills:g.filter(I=>I.startsWith("skills/")),assets:g.filter(I=>I.startsWith("assets/")),rerunReviewer:u||l||!!(M&&c.has(M)),packageChanged:t.directory==="openai"&&(l||e.server.authentication!==t.server.authentication||g.length>0||y.some(I=>I!=="reviewerInstructions")||a.length>0)}}function qc(e){try{const t=new URL(e);return t.protocol==="https:"&&!t.username&&!t.password&&!t.hash&&![...t.searchParams.keys()].some(r=>/token|password|secret|api.?key|signature|^sig$|authorization|^code$/i.test(r))}catch{return!1}}function D0(e){const t=/^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(e);if(!(!t||!Number.isSafeInteger(Number(t[3])+1)))return`${t[1]}.${t[2]}.${Number(t[3])+1}`}function U0(e,t,r=new Set){const s=L0(e,t),n={...t.evidence},i={...e.staleRuns};if(s.rerunReviewer&&e.evidence.reviewer&&(i.reviewer=e.evidence.reviewer.runId),n.reviewer&&i.reviewer===n.reviewer.runId&&delete n.reviewer,n.video&&n.video.url!==t.listing.demoUrl&&delete n.video,n.caseResults){for(const c of e.evidence.caseResults??[])s.rerunCases.includes(c.caseId)&&(i[`case:${c.caseId}`]=c.runId);n.caseResults=n.caseResults.filter(c=>i[`case:${c.caseId}`]!==c.runId)}const o=new Set(Object.entries(i).filter(([c])=>c==="reviewer"||c.startsWith("case:")).map(([,c])=>c));n.media=n.media.filter(c=>!c.runId||!o.has(c.runId));const a=new Set([...s.tools.changed,...s.tools.removed,...s.tools.added]);return n.checks=n.checks.map(c=>{const l=e.evidence.checks.find(h=>h.id===c.id),u=s.endpointChanged||s.authenticationChanged||c.toolNames?.some(h=>a.has(h))||c.id==="directory.requirements"&&(s.packageChanged||s.listingFields.length>0||a.size>0),d=`check:${c.id}`;return!c.runId&&r.has(c.id)?(delete i[d],c):(u&&l&&(i[d]=l.runId??""),Object.hasOwn(i,d)&&i[d]===(c.runId??"")?{...c,status:"unverified",observation:"The inputs changed since this check ran.",nextAction:"Rerun this check for the current draft."}:c)}),{...t,evidence:n,staleRuns:Object.keys(i).length?i:void 0}}function q$(e,t){const r=new Set(e.editedFields),s={...e.listing};for(const i of Object.keys(e.listing)){const o=t.listing?.[i];o!==void 0&&(cr(o)!==cr(s[i])||i==="countries"&&!r.has(i)&&!e.plugin?.listing.countries)&&(Object.assign(s,{[i]:o}),r.add(i))}t.cases&&cr(t.cases)!==cr(e.cases)&&r.add("cases");const n=[...r].some(i=>i!=="reviewerInstructions");if(e.plugin&&n&&!r.has("version")&&s.version===e.plugin.version){const i=D0(e.plugin.version);i&&(s.version=i,r.add("version"))}return U0(e,{...e,listing:s,cases:t.cases??e.cases,editedFields:[...r].sort()})}function z$(e){const{listing:t,cases:r,evidence:s,server:n}=e,i=[];function o(d,h,g){i.push({id:d,status:"unverified",observation:h,nextAction:g})}for(const d of["displayName","description","publisher"])t[d].trim()||o(`listing.${d}`,`Missing ${d}.`,"Fill in the listing details.");for(const d of["websiteUrl","supportUrl","privacyUrl",...e.directory==="openai"?["termsUrl"]:[]]){if(e.directory==="claude"&&(d==="supportUrl"||d==="websiteUrl")){const h=t[d].trim();!(d==="supportUrl"&&!h.includes("/")&&Vi("email",h))&&!qc(h.replace(/^http:/i,"https:"))&&o(`listing.${d}`,d==="supportUrl"?"Missing a support URL or email address.":"Missing a public company website.",d==="supportUrl"?"Enter the publisher's support URL or email address.":"Enter the publisher's website URL.");continue}qc(t[d])||o(`listing.${d}`,`Missing a public HTTPS ${d}.`,"Add the publisher's own link.")}if(e.plugin&&Object.keys(e.plugin.servers).length>0&&!Object.values(e.plugin.servers).includes(n.url)&&i.push({id:"server.package-match",status:"failed",observation:"The selected server does not match this plugin version.",nextAction:"Choose the MCP endpoint declared in the imported package."}),n.tools.length===0&&o("server.tools","No tools were discovered with this connection.","Connect the server and repeat tool discovery."),e.directory==="openai"){t.iconPath||o("listing.icon","No plugin icon selected.","Choose the icon to include in the plugin ZIP."),!t.countries.length&&!e.editedFields.includes("countries")&&!e.plugin?.listing.countries&&o("publication.countries","Country availability has not been confirmed.","Choose the countries or explicitly confirm worldwide availability.");for(const[h,g]of[["positive",Vr.successCount],["negative",Vr.failureCount]]){if(e.submissionMode==="update")continue;const y=r.filter(m=>m.kind===h&&m.prompt.trim()&&m.description.trim()&&(h==="negative"||m.expected.trim()&&m.tools.length>0&&m.tools.every(k=>n.tools.some(M=>M.name===k)))).length;y!==g&&o(`cases.${h}`,`${y} of ${g} complete ${h} cases for initial review.`,"Edit the reviewer cases and their expected results.")}const d=s.video;(!qc(t.demoUrl)||d?.url!==t.demoUrl||d.status!=="passed")&&i.push({id:"demo.playback",status:d?.url===t.demoUrl&&d.status==="failed"?"failed":"unverified",observation:d?.url===t.demoUrl?d.observation:"Signed-out playback has not been verified.",nextAction:"Host the approved recording, enter its review URL and verify signed-out playback."})}else r.some(d=>d.prompt.trim()&&d.expected.trim())||o("cases.positive","No reviewer case has an expected result.","Describe an observable result from the review workspace.");const a=n.authentication.toLowerCase();(!a||a==="unknown")&&o("server.authentication","The connection's authentication mode is unknown.","Verify the server's sign-in configuration.");const c=s.reviewer,l=["none","anonymous","public","no-auth"].includes(a),u=c&&(l?c.scope==="anonymous":c.scope==="organization"||c.scope==="account");(!c?.runId||c.status!=="passed"||!u||!n.tools.some(d=>d.name===c.toolName&&d.annotations?.readOnlyHint===!0))&&i.push({id:"reviewer.access",status:c?.status==="failed"?"failed":"unverified",observation:c?.observation||"The reviewer workflow has no current proof.",nextAction:"Rehearse from a signed-out emulator with a read-only tool and a recognizable result."}),s.checks.some(d=>d.id==="directory.requirements")||o("directory.requirements","Required directory fields and checks have not been assessed.","Run directory checks on this draft.");for(const d of s.checks)d.status!=="passed"&&d.required!==!1&&i.push({id:d.id,status:d.status,observation:d.observation,nextAction:d.nextAction});return i}function $0(e){return Vd(e)}var q0=["experience"];var z0=["claude.experience.tool-descriptions-uninformative","claude.experience.tool-overlap","claude.experience.connector-purpose-unclear","claude.experience.consent-scope-unclear","claude.experience.listing-copy-placeholder","claude.experience.destructive-tool-underexplained","claude.experience.app-copy-mismatched"],j$=Object.freeze({readinessKind:"claude-directory-readiness",observationKinds:q0,knownIds:z0,schemaVersion:"1"}),j0=[{id:"claude.experience.tool-descriptions-uninformative",title:"Tool descriptions may not tell Claude when to use the tool",lane:"experience-insights",class:"heuristic",source:os("review-criteria","§Tool quality"),remediation:"Describe when a tool should be reached for, not only what it does; Claude picks tools from these sentences."},{id:"claude.experience.tool-overlap",title:"Two or more tools may cover the same job",lane:"experience-insights",class:"heuristic",source:os("review-criteria","§Tool quality"),remediation:"Overlapping tools make selection ambiguous; consider merging them or sharpening what separates them."},{id:"claude.experience.connector-purpose-unclear",title:"What this connector is for may not be clear from its surface",lane:"experience-insights",class:"manual-review",source:os("review-criteria","§Usefulness"),remediation:"A reviewer should be able to say what the connector is for from the listing and the tool names alone."},{id:"claude.experience.consent-scope-unclear",title:"It may not be clear to a user what they are authorizing",lane:"experience-insights",class:"manual-review",source:os("authentication","§Consent"),remediation:"State which account is connected and what scope it grants, in the copy the user sees at consent time."},{id:"claude.experience.listing-copy-placeholder",title:"Listing copy may still contain placeholder text",lane:"experience-insights",class:"manual-review",source:os("submission","§Listing"),remediation:"Review the listing fields for template text before submitting; reviewers reject placeholder copy."},{id:"claude.experience.destructive-tool-underexplained",title:"A destructive tool may not explain its consequences",lane:"experience-insights",class:"manual-review",source:os("review-criteria","§Safety"),remediation:"Say plainly in the description what a destructive tool changes and whether it can be undone."},{id:"claude.experience.app-copy-mismatched",title:"An app's rendered copy may not match what its tool returns",lane:"experience-insights",class:"heuristic",source:os("mcp-apps/design-guidelines","§Content"),remediation:"A widget that says something different from the tool's text response leaves the model and the user disagreeing."}],F$=Object.freeze({experienceLane:"experience-insights",engineVersion:"1",mappings:j0}),pn={serverUrl:"serverUrl",pluginBundle:"pluginBundle",submissionProfile:"submissionProfile",draftSnapshot:"draftSnapshot",publishedSnapshot:"publishedSnapshot",toolListing:"toolListing",importedSkills:"importedSkills"},H$=Object.freeze({"skills-only":{hasMcpServer:!1,hasUploadedPackage:!0,hasImportedSkills:!1,requiredInputs:[pn.pluginBundle],summary:"a skills package with no MCP server"},"mcp-only":{hasMcpServer:!0,hasUploadedPackage:!1,hasImportedSkills:!1,requiredInputs:[pn.serverUrl],summary:"an MCP endpoint with no uploaded package"},"mcp-imported-skills":{hasMcpServer:!0,hasUploadedPackage:!1,hasImportedSkills:!0,requiredInputs:[pn.serverUrl,pn.importedSkills],summary:"an MCP endpoint whose skills are imported at scan time"},"mcp-uploaded-skills":{hasMcpServer:!0,hasUploadedPackage:!0,hasImportedSkills:!1,requiredInputs:[pn.serverUrl,pn.pluginBundle],summary:"an MCP endpoint plus an uploaded skills package"}}),B$=Object.freeze({"technical-preflight":["runtime-compatibility","directory-policy","plugin-package"],"submission-ready":["runtime-compatibility","directory-policy","plugin-package","submission-artifacts","release-contract"]});function F0(e){return typeof e=="object"&&e!==null&&e.readinessKind==="openai-directory-readiness"}var H0=["experience"];var B0=["openai.experience.tool-descriptions-uninformative","openai.experience.tool-overlap","openai.experience.naming-inconsistent","openai.experience.listing-copy-placeholder","openai.experience.listing-copy-overpromises","openai.experience.skill-overlap","openai.experience.destructive-tool-underexplained","openai.experience.auth-story-unclear"],V$=Object.freeze({readinessKind:"openai-directory-readiness",observationKinds:H0,knownIds:B0,schemaVersion:"1"}),V0=[{id:"openai.experience.tool-descriptions-uninformative",title:"Tool descriptions may not tell the model when to use the tool",lane:"experience-insights",class:"heuristic",source:ir("guides/optimize-metadata","§Tool descriptions"),remediation:"Describe when a tool should be reached for, not only what it does; the model picks tools from these sentences."},{id:"openai.experience.tool-overlap",title:"Two or more tools may cover the same job",lane:"experience-insights",class:"heuristic",source:ir("plan/tools","§Naming"),remediation:"Overlapping tools make selection ambiguous; consider merging them or sharpening the descriptions that separate them."},{id:"openai.experience.naming-inconsistent",title:"Tool names may not follow one convention",lane:"experience-insights",class:"heuristic",source:ir("plan/tools","§Naming"),remediation:"Pick one naming convention across the whole surface; mixed conventions read as two servers merged."},{id:"openai.experience.listing-copy-placeholder",title:"Listing copy may still contain placeholder text",lane:"experience-insights",class:"manual-review",source:ir("plugin-guidelines","§Listing quality"),remediation:"Review the listing fields for template text before submitting; reviewers reject placeholder copy."},{id:"openai.experience.listing-copy-overpromises",title:"Listing copy may claim capabilities the tools do not implement",lane:"experience-insights",class:"manual-review",source:ir("plugin-guidelines","§Listing quality"),remediation:"Check that every capability the listing advertises is reachable through a tool this server actually exposes."},{id:"openai.experience.skill-overlap",title:"Two or more skills may describe the same task",lane:"experience-insights",class:"heuristic",source:ir("plugin-guidelines","§Listing quality"),remediation:"Skills that overlap compete for the same trigger; separate their scopes or fold them together."},{id:"openai.experience.destructive-tool-underexplained",title:"A destructive tool may not explain its consequences",lane:"experience-insights",class:"manual-review",source:ir("plugin-guidelines","§Predictable side effects"),remediation:"Say plainly in the description what a destructive tool changes and whether it can be undone."},{id:"openai.experience.auth-story-unclear",title:"It may not be clear to a user what they are authorizing",lane:"experience-insights",class:"manual-review",source:ir("build/auth","§Consent"),remediation:"State which account is connected and what scope it grants, in the copy the user sees at consent time."}],G$=Object.freeze({experienceLane:"experience-insights",engineVersion:"2",mappings:V0}),G0=["oauth-dcr","oauth-cimd","oauth-preregistered","static-header","authless","custom-connection"],K0=["no-user-data","processes-user-data","stores-user-data","shares-with-third-parties"],J0=["ownsOrIsAuthorizedForService","accurateDataHandlingDisclosure","compliesWithUsagePolicies","noProhibitedContent","maintainsSecurityPractices","respondsToSecurityReports","keepsListingAccurate"],ko=f().url().refine(e=>e.startsWith("https://"),{message:"must be an https:// URL"}),W0=j({url:f().min(1),mimeType:f().min(1),widthPx:ye().int().positive(),heightPx:ye().int().positive(),prompt:f().min(1)}),K$=j({name:f().min(1).max(Tt.nameMaxLength),tagline:f().min(1).max(Tt.oneLinerMaxLength),description:f().min(1).max(Tt.descriptionMaxLength),categories:B(f().min(1)).min(Tt.categoriesMin).max(Tt.categoriesMax),slug:f().min(1).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"must be a lowercase kebab-case slug"),documentationUrl:ko,privacyPolicyUrl:ko,supportUrl:ko,iconUrl:ko,declaredAuthMode:ze(G0),dataHandling:B(ze(K0)).min(1),screenshots:B(W0).min(Tt.screenshotsMin).max(Tt.screenshotsMax),attestations:xe(ze(J0),me())}),Y0=zw;function kt(e){return e.rows.map(t=>{const r=t.indexOf(": "),s=t.slice(0,r),n=e.targets?.[s];return{code:s,table:e.table,stage:e.stage,severity:e.severity??(e.warnings?.includes(s)?"warning":"error"),message:t.slice(r+2),...n?.field===void 0?{}:{document:e.document},...n,source:Y0}})}var Lt={kind:"present"},Pe={kind:"nonEmpty"},zs={kind:"nonEmpty",required:!0},Gt={kind:"text"},In={kind:"text",singleLine:!0},Gi=(...e)=>({kind:"type",types:e}),Re=Gi("string"),Wr=Gi("object"),Ul=Gi("boolean"),Xe=(e,t)=>t===void 0?{kind:"length",max:e}:{kind:"length",max:e,submissionMax:t},bt=e=>({kind:"pattern",pattern:e}),pg=e=>({kind:"pattern",pattern:e,forbidden:!0}),X0=e=>({kind:"enum",values:e}),th=e=>({kind:"count",max:e}),A=(e,...t)=>t.length>0?{field:e,rules:t}:{field:e},Ae=e=>({path:e}),js="interface.displayName",ms="interface.shortDescription",Fs="interface.longDescription",gs="interface.developerName",Oi="interface.capabilities[]",$l="interface.defaultPrompt",Mi="interface.defaultPrompt[]",ra="(?:0|[1-9]\\d*)",rh=`(?:${ra}|\\d*[A-Za-z-][0-9A-Za-z-]*)`,Q0=new RegExp(`^${ra}\\.${ra}\\.${ra}(?:-${rh}(?:\\.${rh})*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$`),ql=/^#[0-9A-Fa-f]{6}$/,mi=/^https:\/\/(?!:)[^\s/?#@]+(?:[/?#]\S*)?$/i,Z0=kt({table:"ZIP upload errors and warnings",stage:"upload",document:"plugin-manifest",warnings:["plugin_version_unchanged","mcp_configuration_excluded","claude_format_normalized","manifest_normalized","developer_name_defaulted"],rows:["plugin_name_mismatch: The package name in an update must match the existing plugin name.","plugin_version_unchanged: A new release must use a different manifest `version`; reusing the published version requires confirmation.","mcp_configuration_excluded: MCP configuration is excluded unless your organization is approved for local MCP submissions. For a local MCP plugin, ask your OpenAI representative to confirm the submitting organization is allowlisted. Submit remote MCP servers through **With MCP**.","app_configuration_excluded: ZIP uploads must not include `apps` or `.app.json`. Submit remote MCP servers through **With MCP**; for local MCP servers, follow the desktop-only submission instructions.","claude_format_normalized: `.claude-plugin/plugin.json` is converted to `.codex-plugin/plugin.json`, with missing interface defaults and normalized text fields added by the portal.","manifest_normalized: The portal saves the normalized manifest as `.codex-plugin/plugin.json`; changed fields require confirmation.","developer_name_defaulted: The listing’s developer name is set automatically from your selected verified developer identity, regardless of the name in your ZIP."],targets:{plugin_name_mismatch:A("name"),plugin_version_unchanged:A("version"),claude_format_normalized:Ae(".claude-plugin/plugin.json"),manifest_normalized:Ae(".codex-plugin/plugin.json"),developer_name_defaulted:A(gs)}}),eE=kt({table:"ZIP structure and limit errors",stage:"upload",rows:["archive_empty: Archive must not be empty.","archive_too_large: Compressed ZIP must be 100 MB or less.","archive_format_not_zip: Archive must be a valid, uncorrupted ZIP file.","archive_member_path_empty: Archive entry path must not be empty.","archive_member_path_has_outer_whitespace: Archive entry path must not begin or end with whitespace.","archive_member_path_has_backslash: Archive entry path must use `/`, not backslashes.","archive_member_path_absolute: Archive entry path must be relative to the archive root.","archive_member_path_has_empty_segment: Archive entry path must not contain empty segments.","archive_member_path_has_parent_segment: Archive entry path must not contain `..` segments.","archive_member_path_too_deep: Archive entry path must contain at most 20 segments, including the filename.","archive_member_path_too_long: Archive entry path must be within the supported path-length limit.","archive_member_path_normalization_collision: Archive entry paths must remain unique after case and Unicode normalization.","archive_member_type_unsupported: Archive entries must be regular files or directories.","archive_member_too_large: Archive entry must not exceed 100 MiB.","archive_member_path_duplicate: Archive entry path must be unique.","archive_member_path_type_conflict: A file path cannot also be a directory or contain another archive entry.","archive_too_many_entries: Archive must not contain more than 5,000 entries.","archive_uncompressed_too_large: Extracted archive must not exceed 512 MiB.","archive_member_unreadable: Every archive entry must be readable, must not be encrypted, and must use supported compression."]}),tE=kt({table:"Plugin root errors",stage:"upload",rows:["plugin_root_missing: The selected path must exist and be a directory containing a plugin.","archive_plugin_files_missing: A ZIP must contain a supported plugin manifest and at least one valid skill (or an approved local MCP server).",`plugin_root_ambiguous: ${wr.plugin_root_ambiguous.message}`,`plugin_root_has_siblings: ${wr.plugin_root_has_siblings.message}`]}),zr="skills/<skill>/SKILL.md",fi="skills/<skill>/agents/openai.yaml",zc="interface.display_name",jc="interface.short_description",sh="interface.icon_small",nh="interface.icon_large",Fc="interface.brand_color",ih="interface.default_prompt",rE="policy.allow_implicit_invocation",sE=kt({table:"Skill errors",stage:"upload",document:"skill-frontmatter",rows:["skill_manifest_missing: Skill must contain a `SKILL.md` file.","skill_bundle_too_large: Each compressed skill bundle must be within the MiB limit reported in the error.","skill_directory_hidden: Skill directory names must not begin with `.`.","skill_manifest_nested: Each skill directory must be an immediate child of `skills/`.","skill_manifest_not_regular_file: `SKILL.md` must be a regular file.","skill_manifest_unreadable: `SKILL.md` must be readable.","skill_manifest_invalid_utf8: `SKILL.md` must contain valid UTF-8.","skill_frontmatter_missing: `SKILL.md` must start with YAML front matter between `---` lines.","skill_frontmatter_unclosed: `SKILL.md` YAML front matter must end with `---`.","skill_frontmatter_yaml_malformed: `SKILL.md` front matter must contain valid YAML.","skill_frontmatter_wrong_type: `SKILL.md` front matter must contain a YAML mapping.","skill_name_missing: `name` is required and must not be empty.","skill_name_wrong_type: `name` must be a string.","skill_name_empty: `name` must be non-empty.","skill_name_character_unsupported: Skill front matter `name` must use supported text.","skill_description_missing: `description` is required and must not be empty.","skill_description_wrong_type: `description` must be a string.","skill_description_empty: `description` must be non-empty.","skill_description_too_long: `description` must be 1,024 characters or fewer.","skill_description_character_unsupported: Skill front matter `description` must use supported text.","skill_body_empty: Skill instructions must not be empty.","skill_identity_too_long: The combined plugin and skill name (`plugin-name:skill-name`) must be 64 characters or fewer.","skill_identity_duplicate: Each skill `name` must be unique within the plugin."],targets:{skill_manifest_missing:Ae(zr),skill_manifest_not_regular_file:Ae(zr),skill_manifest_unreadable:Ae(zr),skill_manifest_invalid_utf8:Ae(zr),skill_frontmatter_missing:Ae(zr),skill_frontmatter_unclosed:Ae(zr),skill_frontmatter_yaml_malformed:Ae(zr),skill_frontmatter_wrong_type:Ae(zr),skill_name_missing:A("name",Lt),skill_name_wrong_type:A("name",Re),skill_name_empty:A("name",Pe),skill_name_character_unsupported:A("name",Gt),skill_description_missing:A("description",Lt),skill_description_wrong_type:A("description",Re),skill_description_empty:A("description",Pe),skill_description_too_long:A("description",Xe(1024)),skill_description_character_unsupported:A("description",Gt),skill_identity_duplicate:A("name")}}),nE=kt({table:"Skill agent metadata errors",stage:"upload",document:"skill-agent",rows:["skill_agent_not_regular_file: `agents/openai.yaml` must be a regular file.","skill_agent_unreadable: `agents/openai.yaml` must be readable.","skill_agent_invalid_utf8: `agents/openai.yaml` must contain valid UTF-8.","skill_agent_yaml_malformed: `agents/openai.yaml` must contain valid YAML.","skill_agent_top_level_wrong_type: `agents/openai.yaml` must contain a YAML mapping at the top level.","skill_agent_interface_missing: `interface` is required in `agents/openai.yaml` when that file is included.","skill_agent_interface_wrong_type: `interface` in `agents/openai.yaml` must be a YAML mapping.","skill_agent_display_name_missing: `interface.display_name` is required and must not be empty.","skill_agent_display_name_wrong_type: `interface.display_name` must be a string.","skill_agent_display_name_empty: `interface.display_name` must not be empty.","skill_agent_short_description_missing: `interface.short_description` is required and must not be empty.","skill_agent_short_description_wrong_type: `interface.short_description` must be a string.","skill_agent_short_description_empty: `interface.short_description` must not be empty.","skill_agent_icon_small_wrong_type: `interface.icon_small` must be a non-empty relative file path when provided.","skill_agent_icon_small_empty: `interface.icon_small` must be a non-empty relative file path when provided, such as `assets/icon.png`.","skill_agent_icon_large_wrong_type: `interface.icon_large` must be a non-empty relative file path when provided.","skill_agent_icon_large_empty: `interface.icon_large` must be a non-empty relative file path when provided, such as `assets/icon.png`.","skill_agent_brand_color_wrong_type: `interface.brand_color` must be a string when provided.","skill_agent_brand_color_empty: `interface.brand_color` must be a non-empty six-digit hex color when provided, such as `#1ABCFE`.","skill_agent_brand_color_format: `interface.brand_color` must be a six-digit hex color, such as `#1ABCFE`.","skill_agent_default_prompt_wrong_type: `interface.default_prompt` must be a string when provided.","skill_agent_default_prompt_empty: `interface.default_prompt` must be non-empty when provided.","skill_agent_policy_wrong_type: `policy` must be a YAML mapping when provided.","skill_agent_allow_implicit_invocation_wrong_type: `policy` may contain only `products` and `allow_implicit_invocation`. `products` must contain `CHAT`, `CODEX`, or both, and `allow_implicit_invocation` must be `true` or `false`.","skill_agent_dependencies_wrong_type: `dependencies` must be a YAML mapping; only `tools` is supported.","skill_agent_dependency_unsupported: Only `dependencies.tools` is supported in `agents/openai.yaml`."],targets:{skill_agent_not_regular_file:Ae(fi),skill_agent_unreadable:Ae(fi),skill_agent_invalid_utf8:Ae(fi),skill_agent_yaml_malformed:Ae(fi),skill_agent_top_level_wrong_type:Ae(fi),skill_agent_interface_missing:A("interface",Lt),skill_agent_interface_wrong_type:A("interface",Wr),skill_agent_display_name_missing:A(zc,Lt),skill_agent_display_name_wrong_type:A(zc,Re),skill_agent_display_name_empty:A(zc,Pe),skill_agent_short_description_missing:A(jc,Lt),skill_agent_short_description_wrong_type:A(jc,Re),skill_agent_short_description_empty:A(jc,Pe),skill_agent_icon_small_wrong_type:A(sh,Re),skill_agent_icon_small_empty:A(sh,Pe),skill_agent_icon_large_wrong_type:A(nh,Re),skill_agent_icon_large_empty:A(nh,Pe),skill_agent_brand_color_wrong_type:A(Fc,Re),skill_agent_brand_color_empty:A(Fc,Pe),skill_agent_brand_color_format:A(Fc,bt(ql)),skill_agent_default_prompt_wrong_type:A(ih,Re),skill_agent_default_prompt_empty:A(ih,Pe),skill_agent_policy_wrong_type:A("policy",Wr),skill_agent_allow_implicit_invocation_wrong_type:A(rE,Ul),skill_agent_dependencies_wrong_type:A("dependencies",Wr),skill_agent_dependency_unsupported:A("dependencies")}}),iE=kt({table:"Asset path errors",stage:"upload",rows:["declared_asset_path_wrong_type: The named asset field must be a file path string.","declared_asset_path_empty: The named asset field must not be empty.","declared_asset_path_has_outer_whitespace: The named asset field must not begin or end with whitespace.","declared_asset_path_has_control_character: The named asset field must not contain characters U+0000–U+001F or U+007F.","branding_asset_path_missing_root_prefix: The named asset field must start with `./`.","declared_asset_path_unsafe: The named asset field must be a relative path inside the plugin and must not contain an absolute path, drive prefix, or `..` traversal segment.","declared_asset_path_outside_package: The named asset field must reference a file inside the plugin.","declared_asset_file_missing: The named asset field references a file that does not exist.","declared_asset_not_regular_file: The named asset field must reference a file, not a directory or special file."]}),oE=kt({table:"Image errors",stage:"upload",document:"plugin-manifest",rows:["plugin_logo_path_missing: `interface.logo` is required and must reference a square image.","plugin_composer_icon_path_missing: `interface.composerIcon` is required and must reference a square image.","image_file_unreadable: Image file must be readable.","image_file_too_large: Image must not exceed 5 MiB.","image_file_format_unsupported: Image filename must end in `.png`, `.jpg`, `.jpeg`, `.webp`, or `.svg`.","raster_image_decode_failed: Raster image must be a PNG, JPEG, or WebP file that can be decoded safely.","raster_image_extension_content_mismatch: Image filename extension must match the detected image format.","raster_image_not_square: Image must be square.","raster_image_dimensions_too_small: Image dimensions must be at least 48×48 pixels.","raster_image_dimensions_too_large: Image dimensions must not exceed 4,096×4,096 pixels.","svg_xml_malformed: SVG must contain valid UTF-8 XML.","svg_root_element_invalid: SVG root element must be `<svg>`.","svg_dimensions_missing: SVG must define a numeric `viewBox` or numeric `width` and `height`.","svg_dimensions_not_numeric: SVG dimensions must be numeric and omit units and percentages.","svg_dimensions_not_positive: SVG width and height must be positive finite numbers.","svg_dimensions_not_square: SVG dimensions must be square.","svg_dimensions_too_small: SVG dimensions must be at least 48×48 pixels."],targets:{plugin_logo_path_missing:A("interface.logo"),plugin_composer_icon_path_missing:A("interface.composerIcon")}}),aE=kt({table:"Package warnings",stage:"upload",severity:"warning",rows:["duplicate_app_reference: Each server ID in `.app.json` must be referenced once; duplicate references are treated as one server.","undeclared_app_manifest_ignored: A root `.app.json` is imported only when the plugin-manifest `apps` field is set to `./.app.json`.","undeclared_mcp_manifest_ignored: A root `.mcp.json` is imported only when the plugin-manifest `mcpServers` field is set to `./.mcp.json`.","skill_file_ignored: Files directly under `skills/` aren't imported as skills; each skill must be in a directory containing `SKILL.md`.","skill_symlink_ignored: Symbolic links directly under `skills/` aren't imported as skills; each skill must be a real directory containing `SKILL.md`.","skill_frontmatter_adjusted: Skill `name` and `description` are normalized during import by trimming outer whitespace and collapsing internal whitespace.","skill_metadata_ignored: Skill interface settings must use the `interface` mapping in `agents/openai.yaml`; `metadata` in `SKILL.md` doesn't configure the interface."],targets:{duplicate_app_reference:Ae(".app.json"),undeclared_app_manifest_ignored:Ae(".app.json"),undeclared_mcp_manifest_ignored:Ae(".mcp.json"),skill_file_ignored:Ae("skills/"),skill_symlink_ignored:Ae("skills/"),skill_metadata_ignored:Ae(zr)}}),cE=["Productivity","Creativity","Developer Tools","Business & Operations","Data & Analytics","Communication","Education & Research","Security","Finance","Healthcare","Travel","Entertainment","Other"],Eo="interface.category",lE=X0(cE),oh="interface.capabilities",To="interface.websiteURL",Ao="interface.privacyPolicyURL",Ro="interface.termsOfServiceURL",Io="interface.supportURL",Co="interface.brandColor",Po="interface.brandColorDark",Oo=Xe(2048,1024),dE=kt({table:"Listing and interface errors",stage:"upload",document:"plugin-manifest",rows:["plugin_interface_wrong_type: The plugin manifest's `interface` field must be a JSON object.","plugin_display_name_wrong_type: `interface.displayName` must be a string.","plugin_display_name_empty: `interface.displayName` is required and must be non-empty.","plugin_display_name_too_long: `interface.displayName` must be 80 characters or fewer for package validation and 30 characters or fewer for final directory submission.","plugin_display_name_character_unsupported: `interface.displayName` must use supported text.","plugin_short_description_missing: `interface.shortDescription` is required, must fit on one line, and must be 240 characters or fewer for package validation and 30 characters or fewer for final directory submission.","plugin_short_description_wrong_type: `interface.shortDescription` must be a string.","plugin_short_description_empty: `interface.shortDescription` must be non-empty.","plugin_short_description_too_long: `interface.shortDescription` must be 240 characters or fewer for package validation and 30 characters or fewer for final directory submission.","plugin_short_description_character_unsupported: `interface.shortDescription` must use supported text.","plugin_long_description_wrong_type: `interface.longDescription` must be a string.","plugin_long_description_empty: `interface.longDescription` is required and must be non-empty.","plugin_long_description_too_long: `interface.longDescription` must be 4,000 characters or fewer.","plugin_long_description_character_unsupported: `interface.longDescription` must use supported text. Line breaks are allowed.","plugin_developer_name_wrong_type: `interface.developerName` must be a string.","plugin_developer_name_empty: `interface.developerName` is required and must be non-empty.","plugin_developer_name_too_long: `interface.developerName` must be 120 characters or fewer for package validation and 80 characters or fewer for final directory submission.","plugin_developer_name_character_unsupported: `interface.developerName` must use supported text.","plugin_category_wrong_type: `interface.category` must be a string.","plugin_category_empty: `interface.category` must be non-empty when provided; omit it to use `Other`.","plugin_category_unknown: `interface.category` must be `Productivity`, `Creativity`, `Developer Tools`, `Business & Operations`, `Data & Analytics`, `Communication`, `Education & Research`, `Security`, `Finance`, `Healthcare`, `Travel`, `Entertainment`, or `Other`.","plugin_category_character_unsupported: `interface.category` must use supported text.","plugin_capabilities_wrong_type: `interface.capabilities` must be a list of strings.","plugin_capabilities_too_many: `interface.capabilities` must contain 20 entries or fewer.","plugin_capability_wrong_type: Each `interface.capabilities` entry must be a string.","plugin_capability_empty: Each `interface.capabilities` entry must be non-empty when provided.","plugin_capability_too_long: Each `interface.capabilities` entry must be 120 characters or fewer.","plugin_capability_character_unsupported: Each `interface.capabilities` entry must use supported text.","plugin_website_url_wrong_type: `interface.websiteURL` must be a string when provided.","plugin_website_url_empty: `interface.websiteURL` must be non-empty when provided.","plugin_website_url_format: `interface.websiteURL` must be an HTTPS URL.","plugin_website_url_too_long: `interface.websiteURL` must meet the listing URL length limits.","plugin_privacy_policy_url_wrong_type: `interface.privacyPolicyURL` must be a string when provided.","plugin_privacy_policy_url_empty: `interface.privacyPolicyURL` must be non-empty when provided.","plugin_privacy_policy_url_format: `interface.privacyPolicyURL` must be an HTTPS URL.","plugin_privacy_policy_url_too_long: `interface.privacyPolicyURL` must meet the listing URL length limits.","plugin_terms_of_service_url_wrong_type: `interface.termsOfServiceURL` must be a string when provided.","plugin_terms_of_service_url_empty: `interface.termsOfServiceURL` must be non-empty when provided.","plugin_terms_of_service_url_format: `interface.termsOfServiceURL` must be an HTTPS URL.","plugin_terms_of_service_url_too_long: `interface.termsOfServiceURL` must meet the listing URL length limits.","plugin_support_url_wrong_type: `interface.supportURL` must be a string when provided.","plugin_support_url_empty: `interface.supportURL` must be non-empty when provided.","plugin_support_url_format: `interface.supportURL` must be an HTTPS URL.","plugin_support_url_too_long: `interface.supportURL` must meet the listing URL length limits.","plugin_homepage_wrong_type: `homepage` must be a string when provided.","plugin_homepage_empty: `homepage` must be non-empty when provided.","plugin_homepage_format: `homepage` must be an HTTPS URL.","plugin_homepage_too_long: `homepage` must be 2,048 characters or fewer.","plugin_brand_color_wrong_type: `interface.brandColor` must be a string when provided.","plugin_brand_color_empty: `interface.brandColor` must be non-empty when provided.","plugin_brand_color_format: `interface.brandColor` must be a six-digit hex color, such as `#1ABCFE`.","plugin_brand_color_dark_wrong_type: `interface.brandColorDark` must be a string when provided.","plugin_brand_color_dark_empty: `interface.brandColorDark` must be non-empty when provided.","plugin_brand_color_dark_format: `interface.brandColorDark` must be a six-digit hex color, such as `#1ABCFE`.","plugin_brand_color_contrast: `interface.brandColor` must have at least 2:1 contrast against white.","plugin_brand_color_dark_contrast: `interface.brandColorDark` must have at least 2:1 contrast against `#212121`.","plugin_default_prompt_wrong_type: `interface.defaultPrompt` must be a string or list of strings.","plugin_default_prompt_too_many: `interface.defaultPrompt` must contain at most three prompts.","plugin_default_prompt_entry_wrong_type: Each `interface.defaultPrompt` entry must be a string.","plugin_default_prompt_empty: Each `interface.defaultPrompt` entry must be non-empty when provided.","plugin_default_prompt_too_long: Each `interface.defaultPrompt` entry must be 512 characters or fewer for package validation and 128 characters or fewer for final directory submission.","plugin_default_prompt_character_unsupported: Each `interface.defaultPrompt` entry must use supported text and fit on one line."],targets:{plugin_interface_wrong_type:A("interface",Wr),plugin_display_name_wrong_type:A(js,Re),plugin_display_name_empty:A(js,zs),plugin_display_name_too_long:A(js,Xe(80)),plugin_display_name_character_unsupported:A(js,Gt),plugin_short_description_missing:A(ms,Lt),plugin_short_description_wrong_type:A(ms,Re),plugin_short_description_empty:A(ms,Pe),plugin_short_description_too_long:A(ms,Xe(240)),plugin_short_description_character_unsupported:A(ms,In),plugin_long_description_wrong_type:A(Fs,Re),plugin_long_description_empty:A(Fs,zs),plugin_long_description_too_long:A(Fs,Xe(4e3)),plugin_long_description_character_unsupported:A(Fs,Gt),plugin_developer_name_wrong_type:A(gs,Re),plugin_developer_name_empty:A(gs,zs),plugin_developer_name_too_long:A(gs,Xe(120)),plugin_developer_name_character_unsupported:A(gs,Gt),plugin_category_wrong_type:A(Eo,Re),plugin_category_empty:A(Eo,Pe),plugin_category_unknown:A(Eo,lE),plugin_category_character_unsupported:A(Eo,Gt),plugin_capabilities_wrong_type:A(oh,Gi("array")),plugin_capabilities_too_many:A(oh,th(20)),plugin_capability_wrong_type:A(Oi,Re),plugin_capability_empty:A(Oi,Pe),plugin_capability_too_long:A(Oi,Xe(120)),plugin_capability_character_unsupported:A(Oi,Gt),plugin_website_url_wrong_type:A(To,Re),plugin_website_url_empty:A(To,Pe),plugin_website_url_format:A(To,bt(mi)),plugin_website_url_too_long:A(To,Oo),plugin_privacy_policy_url_wrong_type:A(Ao,Re),plugin_privacy_policy_url_empty:A(Ao,Pe),plugin_privacy_policy_url_format:A(Ao,bt(mi)),plugin_privacy_policy_url_too_long:A(Ao,Oo),plugin_terms_of_service_url_wrong_type:A(Ro,Re),plugin_terms_of_service_url_empty:A(Ro,Pe),plugin_terms_of_service_url_format:A(Ro,bt(mi)),plugin_terms_of_service_url_too_long:A(Ro,Oo),plugin_support_url_wrong_type:A(Io,Re),plugin_support_url_empty:A(Io,Pe),plugin_support_url_format:A(Io,bt(mi)),plugin_support_url_too_long:A(Io,Oo),plugin_homepage_wrong_type:A("homepage",Re),plugin_homepage_empty:A("homepage",Pe),plugin_homepage_format:A("homepage",bt(mi)),plugin_homepage_too_long:A("homepage",Xe(2048)),plugin_brand_color_wrong_type:A(Co,Re),plugin_brand_color_empty:A(Co,Pe),plugin_brand_color_format:A(Co,bt(ql)),plugin_brand_color_dark_wrong_type:A(Po,Re),plugin_brand_color_dark_empty:A(Po,Pe),plugin_brand_color_dark_format:A(Po,bt(ql)),plugin_brand_color_contrast:A(Co),plugin_brand_color_dark_contrast:A(Po),plugin_default_prompt_wrong_type:A($l,Gi("string","array")),plugin_default_prompt_too_many:A($l,th(3)),plugin_default_prompt_entry_wrong_type:A(Mi,Re),plugin_default_prompt_empty:A(Mi,Pe),plugin_default_prompt_too_long:A(Mi,Xe(512,128)),plugin_default_prompt_character_unsupported:A(Mi,In)}}),uE=/^https:\/\/[^\s/?#]+(?:[/?#]\S*)?$/i,pE=pg(/^[a-z][a-z\d+.-]*:\/\/[^\s/?#]*@/i),hE=/^(?:\.\/)?skills\/?$/,mE=/^(?:\.\/)?\.app\.json$/,fE=/^(?:\.\/)?\.mcp\.json$/,gE=/^(?:asdk_app_|connector_|templated_apps_)[A-Za-z0-9][\w-]*$/,vE=kt({table:"Plugin manifest errors",stage:"upload",document:"plugin-manifest",rows:[`plugin_manifest_missing: ${wr.plugin_manifest_missing.message}`,"plugin_manifest_not_file: Plugin manifest must be a regular JSON file.","plugin_manifest_unreadable: Plugin manifest must be readable UTF-8 text.","plugin_manifest_json_malformed: Plugin manifest must contain valid JSON; malformed syntax is reported with a line number.","plugin_manifest_root_not_object: Plugin manifest must contain a JSON object at the top level.","codex_manifest_parent_not_directory: `.codex-plugin` must be a directory.","codex_manifest_path_not_file: `.codex-plugin/plugin.json` must be a regular JSON file.","plugin_id_wrong_type: `id` must be a string when provided.","plugin_id_empty: `id` must be non-empty when provided.",`plugin_name_missing: ${wr.plugin_name_missing.message}`,`plugin_name_wrong_type: ${wr.plugin_name_wrong_type.message}`,`plugin_name_empty: ${wr.plugin_name_empty.message}`,`plugin_name_too_long: ${wr.plugin_name_too_long.message}`,`plugin_name_format: ${wr.plugin_name_format.message}`,"plugin_version_missing: `version` is required.","plugin_version_wrong_type: `version` must be a string.","plugin_version_empty: `version` must be a non-empty semantic-version string, such as `1.0.0`.","plugin_version_not_semver: `version` must use semantic versioning, such as `1.0.0`.","plugin_version_too_long: `version` must be 64 characters or fewer.","plugin_description_missing: `description` is required.","plugin_description_wrong_type: `description` must be a string.","plugin_description_empty: `description` must be non-empty.","plugin_description_too_long: `description` must be 1,024 characters or fewer.","plugin_description_character_unsupported: `description` must use supported text. Line breaks are allowed.","plugin_developer_missing: `author.name` is required. `interface.developerName` is also required and is reported separately.","plugin_author_wrong_type: `author` must be an object.","plugin_author_name_wrong_type: `author.name` must be a string.","plugin_author_name_empty: `author.name` must be non-empty.","plugin_author_name_too_long: `author.name` must be 120 characters or fewer.","plugin_author_name_character_unsupported: `author.name` must use supported text.","plugin_author_email_wrong_type: `author.email` must be a string when provided.","plugin_author_email_empty: `author.email` must be non-empty when provided.","plugin_author_email_too_long: `author.email` must be 320 characters or fewer.","plugin_author_email_character_unsupported: `author.email` must use supported text.","plugin_author_url_wrong_type: `author.url` must be a string when provided.","plugin_author_url_empty: `author.url` must be non-empty when provided.","plugin_author_url_not_https: `author.url` must be an HTTPS URL.","plugin_author_url_has_credentials: `author.url` must not contain credentials.","plugin_author_url_too_long: `author.url` must be 2,048 characters or fewer.","plugin_author_url_character_unsupported: `author.url` must use supported text."],targets:{codex_manifest_parent_not_directory:Ae(".codex-plugin"),codex_manifest_path_not_file:Ae(".codex-plugin/plugin.json"),plugin_id_wrong_type:A("id",Re),plugin_id_empty:A("id",Pe),plugin_name_missing:A("name",Lt),plugin_name_wrong_type:A("name",Re),plugin_name_empty:A("name",Pe),plugin_name_too_long:A("name",Xe(64)),plugin_name_format:A("name",bt(Ff)),plugin_version_missing:A("version",Lt),plugin_version_wrong_type:A("version",Re),plugin_version_empty:A("version",Pe),plugin_version_not_semver:A("version",bt(Q0)),plugin_version_too_long:A("version",Xe(64)),plugin_description_missing:A("description",Lt),plugin_description_wrong_type:A("description",Re),plugin_description_empty:A("description",Pe),plugin_description_too_long:A("description",Xe(1024)),plugin_description_character_unsupported:A("description",Gt),plugin_developer_missing:A("author.name",Lt),plugin_author_wrong_type:A("author",Wr),plugin_author_name_wrong_type:A("author.name",Re),plugin_author_name_empty:A("author.name",Pe),plugin_author_name_too_long:A("author.name",Xe(120)),plugin_author_name_character_unsupported:A("author.name",Gt),plugin_author_email_wrong_type:A("author.email",Re),plugin_author_email_empty:A("author.email",Pe),plugin_author_email_too_long:A("author.email",Xe(320)),plugin_author_email_character_unsupported:A("author.email",Gt),plugin_author_url_wrong_type:A("author.url",Re),plugin_author_url_empty:A("author.url",Pe),plugin_author_url_not_https:A("author.url",bt(uE)),plugin_author_url_has_credentials:A("author.url",pE),plugin_author_url_too_long:A("author.url",Xe(2048)),plugin_author_url_character_unsupported:A("author.url",Gt)}}),yE=kt({table:"Plugin content errors",stage:"upload",document:"plugin-manifest",rows:["plugin_skills_path_wrong_type: `skills` must be a string path for the root `skills/` directory.","plugin_skills_path_empty: `skills` must be a non-empty path to the root `skills/` directory when provided.","plugin_skills_path_unsupported: `skills` must resolve to the root `skills/` directory.","plugin_skills_directory_missing: A declared root `skills/` directory must exist.","plugin_skills_path_not_directory: Root `skills/` must be a directory when declared.","plugin_apps_path_wrong_type: `apps` must be a string path for the root `.app.json`.","plugin_apps_path_empty: `apps` must be a non-empty path to the root `.app.json` when provided.","plugin_apps_path_unsupported: `apps` must resolve to the root `.app.json`.","plugin_apps_file_missing: A declared root `.app.json` file must exist.","plugin_apps_path_not_file: Root `.app.json` must be a regular file when declared.","plugin_mcp_path_wrong_type: `mcpServers` must be a string path for the root `.mcp.json`.","plugin_mcp_path_empty: `mcpServers` must be a nonempty path. Set it to `./.mcp.json` or remove the field.","plugin_mcp_path_unsupported: `mcpServers` must resolve to the root `.mcp.json`.","plugin_mcp_file_missing: `mcpServers` declares the root `.mcp.json`, but that file doesn't exist.","plugin_mcp_path_not_file: Root `.mcp.json` must be a regular file.","plugin_runtime_surface_missing: A public submission ZIP must contain at least one valid skill (or an approved local MCP server). Local and workspace packages can also reference an eligible MCP server."],targets:{plugin_skills_path_wrong_type:A("skills",Re),plugin_skills_path_empty:A("skills",Pe),plugin_skills_path_unsupported:A("skills",bt(hE)),plugin_skills_directory_missing:Ae("skills/"),plugin_skills_path_not_directory:Ae("skills/"),plugin_apps_path_wrong_type:A("apps",Re),plugin_apps_path_empty:A("apps",Pe),plugin_apps_path_unsupported:A("apps",bt(mE)),plugin_apps_file_missing:Ae(".app.json"),plugin_apps_path_not_file:Ae(".app.json"),plugin_mcp_path_wrong_type:A("mcpServers",Re),plugin_mcp_path_empty:A("mcpServers",Pe),plugin_mcp_path_unsupported:A("mcpServers",bt(fE)),plugin_mcp_file_missing:Ae(".mcp.json"),plugin_mcp_path_not_file:Ae(".mcp.json")}}),_E=kt({table:"MCP manifest errors",stage:"upload",document:"mcp-config",rows:["mcp_manifest_unreadable: `.mcp.json` must be readable UTF-8 text.","mcp_manifest_json_malformed: `.mcp.json` must contain valid JSON; malformed syntax is reported with a line number.","mcp_manifest_wrong_type: `.mcp.json` must contain a JSON object at the top level.","mcp_servers_missing: `.mcp.json` must contain the top-level `mcpServers` field.","mcp_servers_wrong_type: `mcpServers` must be an object.","mcp_server_name_empty: Every MCP server name must contain at least one non-whitespace character.","mcp_server_wrong_type: Each `mcpServers.<server-name>` value must be an object containing that server's declaration."],targets:{mcp_manifest_unreadable:Ae(".mcp.json"),mcp_manifest_json_malformed:Ae(".mcp.json"),mcp_manifest_wrong_type:Ae(".mcp.json"),mcp_servers_missing:A("mcpServers",Lt),mcp_servers_wrong_type:A("mcpServers",Wr),mcp_server_name_empty:A("mcpServers"),mcp_server_wrong_type:A("mcpServers.*",Wr)}}),bE=kt({table:"MCP server reference errors",stage:"upload",document:"app-config",rows:["app_manifest_unreadable: `.app.json` must be readable UTF-8 text.","app_manifest_json_malformed: `.app.json` contains malformed JSON near the reported line.","app_manifest_wrong_type: `.app.json` must contain a JSON object at the top level.","app_entries_missing: `apps` is required.","app_entries_wrong_type: `apps` must be an object.","app_entry_wrong_type: Each server entry must be an object.","app_id_missing: Each server entry's `id` is required.","app_id_wrong_type: Each server entry's `id` must be a string.","app_id_format: Each server entry's `id` must begin with `asdk_app_`, `connector_`, or `templated_apps_`, followed by a letter or digit and then only letters, digits, `_`, or `-`.","app_entry_optional_wrong_type: Each server entry's `optional` value must be `true` or `false` when provided.","app_entry_required_wrong_type: Each server entry's `required` value must be `true` or `false` when provided.","app_not_eligible: A local or workspace package must reference an eligible, available MCP server. Directory submissions must use **With MCP** and submit the MCP server directly."],targets:{app_manifest_unreadable:Ae(".app.json"),app_manifest_json_malformed:Ae(".app.json"),app_manifest_wrong_type:Ae(".app.json"),app_entries_missing:A("apps",Lt),app_entries_wrong_type:A("apps",Wr),app_entry_wrong_type:A("apps.*",Wr),app_id_missing:A("apps.*.id",Lt),app_id_wrong_type:A("apps.*.id",Re),app_id_format:A("apps.*.id",bt(gE)),app_entry_optional_wrong_type:A("apps.*.optional",Ul),app_entry_required_wrong_type:A("apps.*.required",Ul)}}),SE=pg(/(?:^|\s)@\S/),wE=kt({table:"Final metadata errors",stage:"submission",document:"plugin-manifest",rows:["submission_display_name_required: Display name is required, non-empty, and single-line.","submission_display_name_too_long: Display name must be 30 characters or fewer.","submission_display_name_character_unsupported: Display name must use supported text and fit on one line.","submission_subtitle_required: Short description is required, non-empty, and single-line.","submission_subtitle_too_long: Short description must be 30 characters or fewer.","submission_subtitle_character_unsupported: Short description must use supported text and fit on one line.","submission_description_required: Long description is required and must be non-empty. Line breaks are allowed.","submission_description_too_long: Long description must be 4,000 characters or fewer.","submission_description_character_unsupported: Long description must use supported text. Line breaks are allowed.","submission_developer_name_required: Developer name is required, non-empty, and single-line.","submission_developer_name_too_long: Developer name must be 80 characters or fewer.","submission_developer_name_character_unsupported: Developer name must use supported text and fit on one line.","plugin_capability_invalid: Each capability must be non-empty, use supported text, fit on one line, and be 120 characters or fewer.","plugin_default_prompt_mention: Starter prompts must not contain MCP server `@mentions`.","plugin_default_prompt_duplicate: Starter prompts must be unique after Unicode and whitespace normalization."],targets:{submission_display_name_required:A(js,zs),submission_display_name_too_long:A(js,Xe(30)),submission_display_name_character_unsupported:A(js,In),submission_subtitle_required:A(ms,zs),submission_subtitle_too_long:A(ms,Xe(30)),submission_subtitle_character_unsupported:A(ms,In),submission_description_required:A(Fs,zs),submission_description_too_long:A(Fs,Xe(4e3)),submission_description_character_unsupported:A(Fs,Gt),submission_developer_name_required:A(gs,zs),submission_developer_name_too_long:A(gs,Xe(80)),submission_developer_name_character_unsupported:A(gs,In),plugin_capability_invalid:A(Oi,Pe,In,Xe(120)),plugin_default_prompt_mention:A(Mi,SE),plugin_default_prompt_duplicate:A($l)}}),kE=kt({table:"MCP and review errors",stage:"submission",rows:["annotations_required: Every MCP tool must set `readOnlyHint`, `openWorldHint`, and `destructiveHint` accurately.","justification_required: Every MCP tool annotation must include a justification for its read-only, open-world, or destructive behavior.","scan_required: MCP tools must have a successful, current scan of the production MCP server.","domain_verification_required: The exact verification token must be hosted at the generated `/.well-known/openai-apps-challenge` URL on the MCP host or an allowed parent host, and **Verify Domain** must pass.","frame_domain_explanation_required: Every external frame domain reported by the MCP tool scan must have an explanation of why the UI needs it and what content it provides."]}),hg=[...wE,...kE,...Z0,...eE,...tE,...vE,...dE,...yE,..._E,...sE,...nE,...iE,...oE,...bE,...aE],EE=hg,J$=Object.freeze(Object.fromEntries(hg.map(e=>[e.code,e]))),TE={"Final metadata errors":"listing-fields","MCP and review errors":"mcp-server","ZIP upload errors and warnings":"package-archive","ZIP structure and limit errors":"package-archive","Plugin root errors":"package-archive","Plugin manifest errors":"package-manifest","Listing and interface errors":"package-manifest","Plugin content errors":"package-manifest","MCP manifest errors":"package-manifest","Skill errors":"package-skills","Skill agent metadata errors":"package-skills","Asset path errors":"package-assets","Image errors":"package-assets","MCP server reference errors":"package-manifest","Package warnings":"package-manifest"},AE={mcp_configuration_excluded:"exclusions",app_configuration_excluded:"exclusions",skill_file_ignored:"package-skills",skill_symlink_ignored:"package-skills",skill_frontmatter_adjusted:"package-skills",skill_metadata_ignored:"package-skills"},RE=EE.map(e=>({id:e.code,category:AE[e.code]??TE[e.table],severity:e.severity==="warning"?"advisory":"blocking",message:e.message,...e.code==="plugin_name_too_long"?{limit:{name:"fieldLimits.pluginNameMaxLength",value:xt.pluginNameMaxLength}}:{},source:{...ir("deploy/submission-errors",`§${e.table}`),snapshotDate:e.source.capturedOn}})),Y=e=>ir("deploy/submission-errors",e),IE=[{id:"archive-too-large",category:"package-archive",severity:"blocking",message:"The uploaded archive exceeds the maximum compressed size.",limit:{name:"archiveLimits.maxCompressedBytes",value:ea.maxCompressedBytes},source:Y("§Shared package checks → Archive size")},{id:"archive-expands-too-large",category:"package-archive",severity:"blocking",message:"The archive's contents exceed the maximum uncompressed size when expanded.",limit:{name:"archiveLimits.maxUncompressedBytes",value:ea.maxUncompressedBytes},source:Y("§Shared package checks → Archive size")},{id:"archive-too-many-entries",category:"package-archive",severity:"blocking",message:"The archive contains more entries than the maximum allowed.",limit:{name:"archiveLimits.maxEntries",value:ea.maxEntries},source:Y("§Shared package checks → Entry count")},{id:"archive-encrypted-entry",category:"package-archive",severity:"blocking",message:"The archive contains an encrypted entry, which cannot be scanned.",source:Y("§Shared package checks → Archive integrity")},{id:"archive-path-traversal",category:"package-archive",severity:"blocking",message:"An entry path escapes the package root via a `..` segment.",source:Y("§Shared package checks → Entry paths")},{id:"archive-absolute-path",category:"package-archive",severity:"blocking",message:"An entry path is absolute rather than package-relative.",source:Y("§Shared package checks → Entry paths")},{id:"archive-backslash-path",category:"package-archive",severity:"blocking",message:"An entry path uses a backslash separator.",source:Y("§Shared package checks → Entry paths")},{id:"archive-empty-path-segment",category:"package-archive",severity:"blocking",message:"An entry path contains an empty or `.` segment.",source:Y("§Shared package checks → Entry paths")},{id:"archive-path-whitespace",category:"package-archive",severity:"blocking",message:"An entry path has leading or trailing whitespace.",source:Y("§Shared package checks → Entry paths")},{id:"archive-path-control-character",category:"package-archive",severity:"blocking",message:"An entry path contains a control character or NUL byte.",source:Y("§Shared package checks → Entry paths")},{id:"archive-duplicate-path",category:"package-archive",severity:"blocking",message:"Two entries normalize to the same path, including case-insensitive collisions.",source:Y("§Shared package checks → Entry paths")},{id:"archive-symlink-entry",category:"package-archive",severity:"blocking",message:"The archive contains a symlink or hardlink entry.",source:Y("§Shared package checks → Archive integrity")},{id:"manifest-missing",category:"package-manifest",severity:"blocking",message:"The package contains no plugin manifest.",source:Y("§Shared package checks → Manifest")},{id:"manifest-invalid-json",category:"package-manifest",severity:"blocking",message:"The plugin manifest is not valid JSON.",source:Y("§Shared package checks → Manifest")},{id:"manifest-name-missing",category:"package-manifest",severity:"blocking",message:"The manifest declares no plugin name.",source:Y("§Shared package checks → Manifest")},{id:"manifest-name-too-long",category:"package-manifest",severity:"blocking",message:"The manifest's plugin name exceeds the maximum length.",limit:{name:"fieldLimits.nameMaxLength",value:xt.nameMaxLength},source:Y("§Shared package checks → Manifest")},{id:"manifest-version-invalid",category:"package-manifest",severity:"blocking",message:"The manifest's version is not a valid semantic version.",source:Y("§Shared package checks → Manifest")},{id:"interface-display-name-missing",category:"package-manifest",severity:"blocking",message:"The OpenAI interface document declares no display name.",source:Y("§Listing fields → Interface")},{id:"interface-display-name-too-long",category:"package-manifest",severity:"blocking",message:"The interface display name exceeds the maximum length.",limit:{name:"fieldLimits.displayNameMaxLength",value:xt.displayNameMaxLength},source:Y("§Listing fields → Interface")},{id:"interface-short-description-too-long",category:"package-manifest",severity:"blocking",message:"The interface short description exceeds the maximum length.",limit:{name:"fieldLimits.shortDescriptionMaxLength",value:xt.shortDescriptionMaxLength},source:Y("§Listing fields → Interface")},{id:"interface-default-prompt-too-long",category:"package-manifest",severity:"blocking",message:"The interface default prompt exceeds the maximum length.",limit:{name:"fieldLimits.defaultPromptMaxLength",value:xt.defaultPromptMaxLength},source:Y("§Listing fields → Interface")},{id:"interface-brand-color-invalid",category:"package-manifest",severity:"blocking",message:"The brand color is not a six-digit hex value.",source:Y("§Listing fields → Interface")},{id:"interface-brand-color-low-contrast",category:"package-manifest",severity:"blocking",message:"The brand color does not meet the minimum contrast ratio against both the light and dark backgrounds.",source:Y("§Listing fields → Interface")},{id:"interface-yaml-invalid",category:"package-manifest",severity:"blocking",message:"The OpenAI interface document is not valid YAML.",source:Y("§Listing fields → Interface")},{id:"interface-unsupported-text",category:"package-manifest",severity:"blocking",message:"A text field contains control characters or Unicode line/paragraph separators.",source:Y("§Listing fields → Text")},{id:"skill-metadata-missing",category:"package-skills",severity:"blocking",message:"A skill directory contains no SKILL.md.",source:Y("§Skills → Structure")},{id:"skill-frontmatter-invalid",category:"package-skills",severity:"blocking",message:"A skill's SKILL.md frontmatter is missing or malformed.",source:Y("§Skills → Frontmatter")},{id:"skill-name-missing",category:"package-skills",severity:"blocking",message:"A skill's frontmatter declares no name.",source:Y("§Skills → Frontmatter")},{id:"skill-name-too-long",category:"package-skills",severity:"blocking",message:"A skill name exceeds the maximum length.",limit:{name:"fieldLimits.skillNameMaxLength",value:xt.skillNameMaxLength},source:Y("§Skills → Frontmatter")},{id:"skill-description-missing",category:"package-skills",severity:"blocking",message:"A skill's frontmatter declares no description.",source:Y("§Skills → Frontmatter")},{id:"skill-name-collision",category:"package-skills",severity:"blocking",message:"Two skills in the package declare the same name.",source:Y("§Skills → Structure")},{id:"asset-unsupported-type",category:"package-assets",severity:"blocking",message:"An image is not one of the accepted formats.",source:Y("§Images → Format")},{id:"asset-too-large",category:"package-assets",severity:"blocking",message:"An image exceeds the maximum file size.",limit:{name:"imageConstraints.maxBytes",value:ta.maxBytes},source:Y("§Images → Size")},{id:"asset-too-small",category:"package-assets",severity:"blocking",message:"An image is smaller than the minimum edge length.",limit:{name:"imageConstraints.minEdgePx",value:ta.minEdgePx},source:Y("§Images → Dimensions")},{id:"asset-too-big-dimensions",category:"package-assets",severity:"blocking",message:"An image exceeds the maximum edge length.",limit:{name:"imageConstraints.maxEdgePx",value:ta.maxEdgePx},source:Y("§Images → Dimensions")},{id:"asset-not-square",category:"package-assets",severity:"blocking",message:"An image is not square.",source:Y("§Images → Dimensions")},{id:"asset-undecodable",category:"package-assets",severity:"blocking",message:"An image's dimensions could not be read from its bytes.",source:Y("§Images → Format")},{id:"asset-svg-malformed",category:"package-assets",severity:"blocking",message:"An SVG is not well-formed XML or has no `svg` root element.",source:Y("§Images → SVG")},{id:"asset-svg-no-dimensions",category:"package-assets",severity:"blocking",message:"An SVG declares neither a numeric width/height pair nor a numeric viewBox.",source:Y("§Images → SVG")},{id:"asset-missing",category:"package-assets",severity:"blocking",message:"An asset referenced by the manifest is absent from the package.",source:Y("§Images → Format")},{id:"listing-category-unknown",category:"listing-fields",severity:"blocking",message:"The listing names a category outside the supported set.",source:Y("§Listing fields → Categories")},{id:"listing-description-too-long",category:"listing-fields",severity:"blocking",message:"The listing description exceeds the maximum length.",limit:{name:"fieldLimits.descriptionMaxLength",value:xt.descriptionMaxLength},source:Y("§Listing fields → Description")},{id:"listing-promotional-metadata",category:"listing-fields",severity:"blocking",message:"Listing metadata contains promotional language, pricing claims, or ranking claims.",source:Y("§Listing fields → Description")},{id:"listing-privacy-policy-missing",category:"listing-fields",severity:"blocking",message:"The listing declares no privacy policy URL.",source:Y("§Listing fields → Links")},{id:"listing-support-url-missing",category:"listing-fields",severity:"blocking",message:"The listing declares no support URL.",source:Y("§Listing fields → Links")},{id:"mcp-endpoint-not-https",category:"mcp-server",severity:"blocking",message:"The MCP endpoint is not served over HTTPS.",source:Y("§MCP tools → Endpoint")},{id:"mcp-endpoint-unreachable",category:"mcp-server",severity:"blocking",message:"The MCP endpoint could not be reached during the scan.",source:Y("§MCP tools → Endpoint")},{id:"mcp-tool-name-too-long",category:"mcp-server",severity:"blocking",message:"A tool name exceeds the maximum length.",limit:{name:"fieldLimits.toolNameMaxLength",value:xt.toolNameMaxLength},source:Y("§MCP tools → Metadata")},{id:"mcp-tool-description-missing",category:"mcp-server",severity:"blocking",message:"A tool declares no description.",source:Y("§MCP tools → Metadata")},{id:"mcp-tool-annotations-missing",category:"mcp-server",severity:"blocking",message:"A tool is missing one or more of the required annotation hints.",source:Y("§MCP tools → Annotations")},{id:"mcp-tool-schema-invalid",category:"mcp-server",severity:"blocking",message:"A tool's input or output schema is not a valid JSON Schema object.",source:Y("§MCP tools → Schemas")},{id:"mcp-domain-not-verified",category:"mcp-server",severity:"blocking",message:"The MCP server's domain has not completed domain verification.",source:Y("§MCP tools → Domain verification")},{id:"mcp-csp-domain-missing",category:"mcp-server",severity:"blocking",message:"A UI resource loads from a domain absent from the declared content security policy.",source:Y("§MCP tools → Content security policy")},{id:"mcp-ui-domain-missing",category:"mcp-server",severity:"blocking",message:"A UI resource declares no `_meta.ui.domain`.",source:Y("§MCP tools → UI resources")},{id:"mcp-ui-domain-duplicate",category:"mcp-server",severity:"blocking",message:"Two UI resources declare the same `_meta.ui.domain`.",source:Y("§MCP tools → UI resources")},{id:"mcp-ui-mime-invalid",category:"mcp-server",severity:"blocking",message:"A UI resource does not declare the plugin UI MIME profile.",source:Y("§MCP tools → UI resources")},{id:"mcp-skill-too-many",category:"mcp-skills",severity:"blocking",message:"The server advertises more importable skills than the maximum.",limit:{name:"mcpSkillLimits.maxSkills",value:$s.maxSkills},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-markdown-too-large",category:"mcp-skills",severity:"blocking",message:"An imported skill's markdown exceeds the maximum size.",limit:{name:"mcpSkillLimits.maxSkillMarkdownBytes",value:$s.maxSkillMarkdownBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-page-too-large",category:"mcp-skills",severity:"blocking",message:"An imported skill's supporting page exceeds the maximum size.",limit:{name:"mcpSkillLimits.maxPageBytes",value:$s.maxPageBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-too-many-pages",category:"mcp-skills",severity:"blocking",message:"An imported skill has more supporting pages than the maximum.",limit:{name:"mcpSkillLimits.maxPagesPerSkill",value:$s.maxPagesPerSkill},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-total-too-large",category:"mcp-skills",severity:"blocking",message:"An imported skill's total footprint exceeds the maximum.",limit:{name:"mcpSkillLimits.maxSkillTotalBytes",value:$s.maxSkillTotalBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skills-total-too-large",category:"mcp-skills",severity:"blocking",message:"The imported skills exceed the maximum combined size.",limit:{name:"mcpSkillLimits.maxImportedTotalBytes",value:$s.maxImportedTotalBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-digest-mismatch",category:"mcp-skills",severity:"blocking",message:"An imported skill's declared digest does not match the resource served for it.",source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-frontmatter-mismatch",category:"mcp-skills",severity:"blocking",message:"An imported skill's listing metadata disagrees with its SKILL.md frontmatter.",source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-scan-failed",category:"mcp-skills",severity:"blocking",message:"The skill scan failed, so the draft's imported skills were not updated.",source:Y("§Skills → Imported from MCP")},{id:"review-success-tests-missing",category:"review-materials",severity:"blocking",message:"Fewer successful test cases were supplied than required.",limit:{name:"submissionTestCases.successCount",value:Vr.successCount},source:Y("§Review materials → Test cases")},{id:"review-failure-tests-missing",category:"review-materials",severity:"blocking",message:"Fewer graceful-failure test cases were supplied than required.",limit:{name:"submissionTestCases.failureCount",value:Vr.failureCount},source:Y("§Review materials → Test cases")},{id:"review-demo-credentials-missing",category:"review-materials",severity:"blocking",message:"The submission authenticates users but supplies no reviewer demo credentials.",source:Y("§Review materials → Demo access")},{id:"review-demo-recording-missing",category:"review-materials",severity:"blocking",message:"No demo recording was supplied.",source:Y("§Review materials → Demo access")},{id:"review-release-notes-missing",category:"review-materials",severity:"blocking",message:"An updated submission supplies no release notes.",source:Y("§Review materials → Release notes")},{id:"review-attestation-missing",category:"review-materials",severity:"blocking",message:"A required policy attestation was not affirmed.",source:Y("§Review materials → Attestations")},{id:"review-identity-not-verified",category:"review-materials",severity:"blocking",message:"The submitting account has not completed identity verification.",source:Y("§Review materials → Account")},{id:"review-write-permission-missing",category:"review-materials",severity:"blocking",message:"The submitting account lacks the app-write permission.",source:Y("§Review materials → Account")},{id:"review-geography-missing",category:"review-materials",severity:"blocking",message:"The submission declares no country availability.",source:Y("§Review materials → Availability")},{id:"review-annotation-justification-missing",category:"review-materials",severity:"advisory",message:"A tool annotated as destructive or open-world carries no justification for review.",source:Y("§Review materials → Test cases")},{id:"review-scan-stale",category:"review-materials",severity:"blocking",message:"The draft's scan predates the current server contract; re-run Scan Tools.",source:Y("§MCP tools → Scan")},{id:"exclusion-mcp-servers-in-skills-only",category:"exclusions",severity:"blocking",message:"A skills-only submission declares MCP servers, which that shape excludes.",source:Y("§Shared package checks → Excluded content")},{id:"exclusion-app-config-in-public-package",category:"exclusions",severity:"blocking",message:"The package contains an `.app.json`, which maps registered connections for local or workspace use and is excluded from a public submission.",source:Y("§Shared package checks → Excluded content")},{id:"exclusion-screenshots-without-ui",category:"exclusions",severity:"blocking",message:"Screenshots were supplied for a submission that renders no UI template.",source:Y("§Images → Screenshots")},{id:"exclusion-bundle-in-mcp-only",category:"exclusions",severity:"blocking",message:"An MCP-only submission supplies a package archive.",source:Y("§Shared package checks → Excluded content")},{id:"exclusion-unsupported-surface",category:"exclusions",severity:"blocking",message:"The package contains a surface the plugin directory does not support.",source:Y("§Shared package checks → Excluded content")},...RE],W$=Object.freeze(Object.fromEntries(IE.map(e=>[e.id,e]))),CE=["ownsOrIsAuthorizedForService","accurateDataDisclosure","compliesWithUsagePolicies","noProhibitedContent","maintainsSecurityPractices","respondsToSecurityReports","keepsListingAccurate"],PE=["none","account-identifiers","user-content","usage-analytics","payment-information","location","health","shared-with-third-parties"],OE=["in-submission-form","shared-out-of-band","not-required-authless"],Hc=f().url().refine(e=>e.startsWith("https://"),{message:"must be an https:// URL"}),ah=j({prompt:f().min(1),expectation:f().min(1)}),ME=j({reference:f().min(1),mimeType:f().min(1),widthPx:ye().int().positive(),heightPx:ye().int().positive(),prompt:f().min(1)}),Y$=j({name:f().min(1).max(xt.nameMaxLength),shortDescription:f().min(1).max(xt.shortDescriptionMaxLength),description:f().min(1).max(xt.descriptionMaxLength),categories:B(ze(ig)).min(1),privacyPolicyUrl:Hc,supportUrl:Hc,documentationUrl:Hc.optional(),testCases:j({successful:B(ah),gracefulFailure:B(ah)}),demoCredentials:j({provided:me(),delivery:ze(OE)}),demoRecordingProvided:me(),screenshots:B(ME).default([]),releaseNotes:f().min(1).optional(),identityVerified:me(),accountPermissions:B(f().min(1)).default([]),availableCountries:B(f().length(2)).default([]),dataResidencyEligible:me().optional(),privacyPolicyDataTypes:B(ze(PE)).default([]),annotationJustifications:xe(f(),f().min(1)).default({}),frameDomainExplanations:xe(f(),f().min(1)).default({}),domainVerificationToken:f().min(1).optional(),lastScanAt:f().datetime().optional(),hasPublishedVersion:me().optional(),attestations:If(ze(CE),me())}),X$=new TextDecoder("utf-8",{fatal:!1}),Kd=Symbol.for("yaml.alias"),zl=Symbol.for("yaml.document"),ys=Symbol.for("yaml.map"),mg=Symbol.for("yaml.pair"),Pr=Symbol.for("yaml.scalar"),Yn=Symbol.for("yaml.seq"),Qt=Symbol.for("yaml.node.type"),Xn=e=>!!e&&typeof e=="object"&&e[Qt]===Kd,to=e=>!!e&&typeof e=="object"&&e[Qt]===zl,ro=e=>!!e&&typeof e=="object"&&e[Qt]===ys,Fe=e=>!!e&&typeof e=="object"&&e[Qt]===mg,Ue=e=>!!e&&typeof e=="object"&&e[Qt]===Pr,so=e=>!!e&&typeof e=="object"&&e[Qt]===Yn;function Ve(e){if(e&&typeof e=="object")switch(e[Qt]){case ys:case Yn:return!0}return!1}function Ge(e){if(e&&typeof e=="object")switch(e[Qt]){case Kd:case ys:case Pr:case Yn:return!0}return!1}var fg=e=>(Ue(e)||Ve(e))&&!!e.anchor,Rt=Symbol("break visit"),gg=Symbol("skip children"),Ar=Symbol("remove node");function Qn(e,t){const r=vg(t);to(e)?Cn(null,e.contents,r,Object.freeze([e]))===Ar&&(e.contents=null):Cn(null,e,r,Object.freeze([]))}Qn.BREAK=Rt;Qn.SKIP=gg;Qn.REMOVE=Ar;function Cn(e,t,r,s){const n=yg(e,t,r,s);if(Ge(n)||Fe(n))return _g(e,s,n),Cn(e,n,r,s);if(typeof n!="symbol"){if(Ve(t)){s=Object.freeze(s.concat(t));for(let i=0;i<t.items.length;++i){const o=Cn(i,t.items[i],r,s);if(typeof o=="number")i=o-1;else{if(o===Rt)return Rt;o===Ar&&(t.items.splice(i,1),i-=1)}}}else if(Fe(t)){s=Object.freeze(s.concat(t));const i=Cn("key",t.key,r,s);if(i===Rt)return Rt;i===Ar&&(t.key=null);const o=Cn("value",t.value,r,s);if(o===Rt)return Rt;o===Ar&&(t.value=null)}}return n}async function Jd(e,t){const r=vg(t);to(e)?await Pn(null,e.contents,r,Object.freeze([e]))===Ar&&(e.contents=null):await Pn(null,e,r,Object.freeze([]))}Jd.BREAK=Rt;Jd.SKIP=gg;Jd.REMOVE=Ar;async function Pn(e,t,r,s){const n=await yg(e,t,r,s);if(Ge(n)||Fe(n))return _g(e,s,n),Pn(e,n,r,s);if(typeof n!="symbol"){if(Ve(t)){s=Object.freeze(s.concat(t));for(let i=0;i<t.items.length;++i){const o=await Pn(i,t.items[i],r,s);if(typeof o=="number")i=o-1;else{if(o===Rt)return Rt;o===Ar&&(t.items.splice(i,1),i-=1)}}}else if(Fe(t)){s=Object.freeze(s.concat(t));const i=await Pn("key",t.key,r,s);if(i===Rt)return Rt;i===Ar&&(t.key=null);const o=await Pn("value",t.value,r,s);if(o===Rt)return Rt;o===Ar&&(t.value=null)}}return n}function vg(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function yg(e,t,r,s){if(typeof r=="function")return r(e,t,s);if(ro(t))return r.Map?.(e,t,s);if(so(t))return r.Seq?.(e,t,s);if(Fe(t))return r.Pair?.(e,t,s);if(Ue(t))return r.Scalar?.(e,t,s);if(Xn(t))return r.Alias?.(e,t,s)}function _g(e,t,r){const s=t[t.length-1];if(Ve(s))s.items[e]=r;else if(Fe(s))e==="key"?s.key=r:s.value=r;else if(to(s))s.contents=r;else{const n=Xn(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}var xE={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},NE=e=>e.replace(/[!,[\]{}]/g,t=>xE[t]),Dn=class jr{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},jr.defaultYaml,t),this.tags=Object.assign({},jr.defaultTags,r)}clone(){const t=new jr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new jr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:jr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},jr.defaultTags)}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:jr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},jr.defaultTags),this.atNextDocument=!1);const s=t.trim().split(/[ \t]+/),n=s.shift();switch(n){case"%TAG":{if(s.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[i,o]=s;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=s;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,o),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,s,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);const i=this.tags[s];if(i)try{return i+decodeURIComponent(n)}catch(o){return r(String(o)),null}return s==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,s]of Object.entries(this.tags))if(t.startsWith(s))return r+NE(t.substring(s.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let n;if(t&&s.length>0&&Ge(t.contents)){const i={};Qn(t.contents,(o,a)=>{Ge(a)&&a.tag&&(i[a.tag]=!0)}),n=Object.keys(i)}else n=[];for(const[i,o]of s)i==="!!"&&o==="tag:yaml.org,2002:"||(!t||n.some(a=>a.startsWith(o)))&&r.push(`%TAG ${i} ${o}`);return r.join(`
1
+ import{o as qS}from"./rolldown-runtime-Df2-koJ7.js";import{Dt as zS,M as jS,N as wf}from"./PosthogUtils-CreNC30F.js";import{n as FS}from"./react-dom-s4nupq_N.js";import{$ as B,Ct as HS,D as ks,Dt as BS,Et as kf,F as VS,G as GS,J as ze,K as Ef,L as KS,M as Kr,N as JS,O as Na,P as qd,Q as WS,R as ls,U as Hi,X as Tf,_t as f,at as Af,bt as Ke,c as YS,ct as De,dt as j,f as XS,ft as Je,h as bo,ht as xe,i as QS,it as ZS,k as ew,kt as tw,l as rw,m as sw,mt as Rf,n as nw,o as iw,ot as ow,p as aw,pt as If,q as cw,r as lw,rt as Cf,s as dw,st as te,tt as me,u as zd,ut as ye,w as Pf,xt as Of,yt as $e}from"./mcp-init-D384t3us.js";import{p as uw}from"./module-BHBrpZ4U.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.27.2"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="de19f4bf-7f40-4d12-8c76-1c78a86184d4",e._sentryDebugIdIdentifier="sentry-dbid-de19f4bf-7f40-4d12-8c76-1c78a86184d4")}catch{}})();var pw={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"},Dp;Dp||(Dp={});function hw(e){return BS(cw,e)}var So=qS(FS(),1);function Cl(e){return Array.isArray(e)?e.map(Cl):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>[t,Cl(r)])):e}function cr(e){return JSON.stringify(Cl(e))}function m$(e,t){if(t==="openai-apps"){const s=e;return typeof s?.type=="string"?s.type.replace("openai:",""):"unknown"}const r=e;return typeof r?.method=="string"?r.method:r?.result!==void 0?"result":r?.error!==void 0?"error":"unknown"}var mw=e=>e;function fw(e,t=mw){const r=So.useSyncExternalStore(e.subscribe,So.useCallback(()=>t(e.getState()),[e,t]),So.useCallback(()=>t(e.getInitialState()),[e,t]));return So.useDebugValue(r),r}var Up=e=>{const t=zS(e),r=s=>fw(t,s);return Object.assign(r,t),r},gw=(e=>e?Up(e):Up),f$=Object.freeze({maxObservations:24,maxSummaryChars:400,maxEvidenceRefs:8,maxEvidenceRefChars:200,maxModelIdChars:128,maxVersionChars:64}),g$=Object.freeze({status:"not-requested",reason:"not_requested",detail:"this run did not request model-backed observations, so nothing was charged"}),vw="missingInputMessage";function $p(e){if(!(!e||typeof e!="object"||!("missingInput"in e)))switch(e.missingInput){case"tasksProbe":case"logProbe":case"inputRequiredProbe":case"toolCallProbe":case"login":case"protocolVersion":return e.missingInput;default:return}}function jd(e){if(e.status!=="skipped"||e.skipReason!=="could-not-run")return;const t=e.details,r=$p(t)??$p(t&&typeof t=="object"&&"details"in t?t.details:void 0);if(r)return r;const s=typeof e.id=="string"?e.id:"",n=xf(e.error);if(s.startsWith("tasks-")&&(n.startsWith("no probe tool could be selected automatically:")||n.startsWith("no listed tool advertises `execution.taskSupport`")))return"tasksProbe";if(s==="modern-logs-require-log-level"&&n.startsWith("No logProbe configured"))return"logProbe";if(s==="modern-undeclared-capability-error"&&n.startsWith("No inputRequiredProbe configured"))return"inputRequiredProbe";if(s==="modern-tool-output-schema-conformant"&&/^\d+ tool\(s\) declare an outputSchema, but no tools\/call fixture was configured:/.test(n))return"toolCallProbe"}function Mf(e){return jd(e)!==void 0}function yw(e){return e==="login"||e==="protocolVersion"}var _w={tasksProbe:"Select a tool that creates a task in setup, then run again.",logProbe:"Select a tool that emits logs in setup, then run again.",inputRequiredProbe:"Select a tool that asks for input in setup, then run again.",toolCallProbe:"Select a tool to check output in setup, then run again.",login:"This server needs a login. Log in, then run again.",protocolVersion:"This server doesn't support the protocol version this run uses. Run it on a version the server supports."};function qp(e){if(!e||typeof e!="object")return;const t=e[vw];return typeof t=="string"&&t.trim()?t:void 0}function v$(e){const t=jd(e);if(!t)return;const r=e.details;return qp(r)??qp(r&&typeof r=="object"&&"details"in r?r.details:void 0)??_w[t]}var bw=/^(?:the probed tool )?("(?:[^"\\]|\\.)*") returned a normal result/;function y$(e){if(e.status!=="skipped"||e.skipReason!=="could-not-run"||typeof e.id!="string"||!e.id.startsWith("tasks-"))return;const t=bw.exec(xf(e.error));if(!t)return;let r;try{r=JSON.parse(t[1])}catch{return}if(typeof r=="string")return Sw(r)}function Sw(e){return`"${e}" did not create a task, so there was nothing to check. Select a tool that creates a task in setup, or change its arguments so it does, then run again.`}function xf(e){return typeof e=="string"?e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:""}function La(e){return e.status==="skipped"&&e.skipReason==="could-not-run"}function Nf(e){return e.status==="skipped"&&e.skipReason!=="could-not-run"}function Lf(e){if(e.some(s=>s.status==="failed"))return{outcome:"failed"};const t=e.filter(s=>{if(!La(s))return!1;const n=jd(s);return n===void 0||yw(n)});if(t.length===0)return e.length===0?{outcome:"incomplete",incompleteReason:"no checks were selected, so this run establishes nothing"}:e.every(Mf)?{outcome:"incomplete",incompleteReason:"every selected check needs input from setup, so this run establishes nothing"}:{outcome:"passed"};const r=Array.from(new Set(t.map(s=>s.error?.message??"reason unavailable")));return{outcome:"incomplete",incompleteReason:`${t.length} of ${e.length} selected check(s) could not run, so this run does not establish conformance (${t.map(s=>s.id).join(", ")}): ${r.join(" ")}`}}function Df(e){const t=e.filter(i=>i.status==="passed").length,r=e.filter(i=>i.status==="failed").length,s=e.filter(La).length,n=e.filter(Nf).length;return`${t}/${e.length} checks passed, ${r} failed, ${s} could not run, ${n} not applicable`}var _$=Object.freeze({toolNameMaxChars:128,maxFeatureClaims:10,maxToolCalls:2}),ww=/^[A-Za-z]:[\\/]/,kw=/[\u0000-\u001f\u007f]/,Ew=new TextEncoder;function Tw(e){return Ew.encode(e).length}function Aw(e){let t=e.length;for(;t>0;){const r=e[t-1];if(r!=="."&&r!==" ")break;t-=1}return e.slice(0,t)}function Uf(e){if(typeof e!="string"||e.length===0)return{ok:!1,code:"PATH_EMPTY",message:"path is empty"};if(e.includes("\0"))return{ok:!1,code:"PATH_NUL_BYTE",message:"path contains a NUL byte"};if(kw.test(e))return{ok:!1,code:"PATH_INVALID_CHARACTER",message:"path contains control characters"};if(e.startsWith("/")||e.startsWith("\\")||ww.test(e))return{ok:!1,code:"PATH_ABSOLUTE",message:`absolute paths are not allowed: "${e}"`};const t=e.replace(/\\/g,"/").split("/").filter(r=>r!==""&&r!==".");for(const r of t){if(r==="..")return{ok:!1,code:"PATH_TRAVERSAL",message:`path traversal ("..") is not allowed: "${e}"`};if(r.includes(":"))return{ok:!1,code:"PATH_INVALID_CHARACTER",message:`path segments must not contain ":" (drive prefix / alternate data stream): "${e}"`};const s=Aw(r);if(s===""||s==="."||s==="..")return{ok:!1,code:"PATH_INVALID_CHARACTER",message:`path segment "${r}" is not portable (empty or dot name after trailing dot/space stripping)`}}return t.length===0?{ok:!1,code:"PATH_EMPTY",message:"path is empty"}:{ok:!0,path:t.join("/").normalize("NFC")}}function Rw(e){return e.normalize("NFKC").toLowerCase()}function wo(e,t){return t===e||t.startsWith(`${e}/`)}function on(e,t){const r=Uf(t);return r.ok?{ok:!0,path:e===""?r.path:`${e}/${r.path}`}:r.code==="PATH_ABSOLUTE"||r.code==="PATH_TRAVERSAL"?{ok:!1,code:"PATH_ESCAPES_ROOT",message:`referenced path escapes the bundle root: "${t}"`}:r}function Iw(e,t,r){e.length>t.maxEntries&&r.error("BUNDLE_TOO_MANY_ENTRIES",`bundle has ${e.length} entries; the limit is ${t.maxEntries}`);const s=new Set,n=new Map,i=[];let o=0,a=!1;for(const c of e){if(c.kind==="symlink"||c.kind==="hardlink"){r.error("PATH_LINK_ENTRY",`${c.kind} entries are not allowed`,{path:c.path});continue}const l=Uf(c.path);if(!l.ok){r.error(l.code,l.message,{path:c.path});continue}const u=l.path;if(Tw(u)>t.maxPathBytes){r.error("PATH_TOO_LONG",`path exceeds ${t.maxPathBytes} bytes`,{path:u});continue}if(u.split("/").length>t.maxPathDepth){r.error("PATH_TOO_DEEP",`path exceeds nesting depth ${t.maxPathDepth}`,{path:u});continue}if(s.has(u)){r.error("PATH_DUPLICATE",`duplicate normalized path: "${u}"`,{path:c.path});continue}s.add(u);const d=Rw(u),h=n.get(d);if(h!==void 0){r.error("PATH_CASE_COLLISION",`"${u}" collides with "${h}" on case-insensitive filesystems`,{path:u});continue}if(n.set(d,u),c.kind!=="directory"){if(!Number.isFinite(c.size)||c.size<0){r.error("FILE_SIZE_MISMATCH","entry declares an invalid size",{path:u});continue}if(c.size>t.maxFileBytes){r.error("FILE_TOO_LARGE",`file exceeds the per-file limit of ${t.maxFileBytes} bytes`,{path:u});continue}o+=c.size,!a&&o>t.maxTotalBytes&&(a=!0,r.error("BUNDLE_TOO_LARGE",`total uncompressed content exceeds ${t.maxTotalBytes} bytes`)),i.push({sourcePath:c.path,path:u,size:c.size,executable:((c.mode??0)&73)!==0})}}return i.sort((c,l)=>c.path<l.path?-1:c.path>l.path?1:0),i}var Pl=class extends Error{code;issues;constructor(e){const t=e.find(s=>s.severity==="error"),r=t?.code??"MANIFEST_INVALID_FIELD";super(t?`plugin bundle validation failed: ${t.code}: ${t.message}`:"plugin bundle validation failed"),this.name="PluginBundleError",this.code=r,this.issues=e}},qs=class{all=[];error(e,t,r){this.all.push({code:e,severity:"error",message:t,...r})}warn(e,t,r){this.all.push({code:e,severity:"warning",message:t,...r})}hasErrors(){return this.all.some(e=>e.severity==="error")}issues(){return[...this.all]}warnings(){return this.all.filter(e=>e.severity==="warning")}throwIfErrors(){if(this.hasErrors())throw new Pl(this.issues())}absorbDemoted(e){for(const t of e.issues())this.all.push(t.severity==="error"?{...t,severity:"warning"}:t)}firstErrorMessage(){return this.all.find(e=>e.severity==="error")?.message}};var Bi=/(secret|token|password|passwd|api[-_]?key|private[-_]?key|credential)/i,$f=/(bearer\s+\S|-----BEGIN|\b(?:sk|pk|rk|xox[a-z])-[A-Za-z0-9]|[a-z][a-z0-9+.-]*:\/\/[^/\s:@]*:[^/\s@]+@|[A-Za-z0-9+/_-]{40,})/i;function Da(e){return $f.test(e)}var pi=Symbol("drop");function Ol(e,t,r,s,n){if(r>32)return n.reportedTooDeep||(n.reportedTooDeep=!0,s.issues.error("VALUE_TOO_DEEP",`${s.label}: field "${t}" nests deeper than 32 levels`,s.context)),pi;if(typeof e=="string")return $f.test(e)?(s.issues.warn(s.secretCode,`${s.label}: value of "${t}" looks secret-bearing and is not stored`,s.context),pi):e;if(typeof e=="number"||typeof e=="boolean"||e===null)return e;if(Array.isArray(e)){const i=[];for(let o=0;o<e.length;o++){const a=Ol(e[o],`${t}[${o}]`,r+1,s,n);a!==pi&&i.push(a)}return i}if(typeof e=="object"){const i={};for(const[o,a]of Object.entries(e)){const c=t===""?o:`${t}.${o}`;if(Bi.test(o)){s.issues.warn(s.secretCode,`${s.label}: field "${c}" looks secret-bearing and is not stored`,s.context);continue}const l=Ol(a,c,r+1,s,n);l!==pi&&(i[o]=l)}return i}return pi}function Ua(e,t){return Ol(e,"",0,t,{reportedTooDeep:!1})}function qf(e){return["localhost","[::1]","::1"].includes(e)||/^127(?:\.\d{1,3}){3}$/.test(e)}var Fd=(e,t)=>!/^[^:/?#]+:\/\/[^\\/?#]/.test(e)||/^[^:]*:[\\/]*[^\\/?#]*@|[\\\s]/.test(e)||t?.allowFragment!==!0&&e.includes("#")||[...e].some(r=>r<" "||r===""),Cw=/^[a-z]+(?:[-_][a-z]+)+$/i,Pw=e=>e.replace(/%(?!2f)([0-7][0-9a-f])/gi,(t,r)=>String.fromCharCode(Number.parseInt(r,16)));function Dc(e){return[e,Pw(e)].some(t=>Da(t)&&!Cw.test(t))}function Hd(e){if(e.pathname.split("/").some(Dc))return!0;const t=e.hash.slice(1);if(Dc(t))return!0;for(const r of[e.searchParams,new URLSearchParams(t)])for(const[s,n]of r)if(Dc(n)||n!==""&&Bi.test(s))return!0;return!1}function Ow(e){let t;try{t=new URL(e)}catch{return{ok:!1,code:"MCP_INVALID_SERVER",message:'"url" is not a valid URL'}}return Fd(e)?{ok:!1,code:"MCP_INVALID_SERVER",message:'"url" must be an absolute https:// URL (or a loopback http:// one) without credentials, a fragment, whitespace or backslashes'}:Hd(t)?{ok:!1,code:"MCP_INVALID_SERVER",message:'"url" looks like it carries a credential, which a plugin must not ship'}:t.protocol==="https:"?{ok:!0,loopbackHttp:!1}:t.protocol==="http:"&&qf(t.hostname)?{ok:!0,loopbackHttp:!0}:{ok:!1,code:"MCP_INSECURE_URL",message:"remote MCP servers must use HTTPS"}}function Mw(e){if(typeof e!="string")return{ok:!1,code:"MCP_INVALID_SERVER",message:'"cwd" must be a string'};const t=/^(\.|\$\{PLUGIN_ROOT\}|\$\{PLUGIN_DATA\})(?:\/(.*))?$/s.exec(e);if(t===null||t[1]==="."&&t[2]===void 0)return{ok:!1,code:"MCP_INVALID_WORKING_DIRECTORY",message:'"cwd" must start with "./", "${PLUGIN_ROOT}", or "${PLUGIN_DATA}"'};const r=t[1]==="."?"${PLUGIN_ROOT}":t[1],s=t[2]??"";if(s.replace(/[/.]/g,"")===""&&!s.includes(".."))return{ok:!0,value:r};const n=on("",s);return n.ok?{ok:!0,value:`${r}/${n.path}`}:{ok:!1,code:n.code,message:n.message}}var zf=/^\$\{[A-Za-z_][A-Za-z0-9_]*\}$/,zp=/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g,xw=/^\$\{(?:PLUGIN_ROOT|PLUGIN_DATA)\}[A-Za-z0-9._/-]*$/,jp=new Set(["PLUGIN_ROOT","PLUGIN_DATA"]),Nw=/^[A-Za-z0-9.:/@,+_-]*$/,Lw=/[A-Za-z0-9_-]{16,}/,Dw=/(authorization|token|secret|api[-_]?key|cookie|password|credential)/i;function jf(e,t){return e.name<t.name?-1:e.name>t.name?1:0}function Uw(e,t,r,s){if(r===void 0)return[];if(r===null||typeof r!="object"||Array.isArray(r))return s.error("MCP_INVALID_ENV",`server "${e}": "env" must be an object`,{componentKey:t}),null;const n=new Map,i=new Set;for(const[o,a]of Object.entries(r)){if(jp.has(o))return s.error("MCP_RESERVED_ENV_KEY",`server "${e}": env may not define "${o}" — it is client-controlled`,{componentKey:t}),null;if(typeof a!="string"){s.error("MCP_INVALID_ENV",`server "${e}": env "${o}" must be a string`,{componentKey:t});continue}if(xw.test(a)){n.set(o,{name:o,required:!1,valueTemplate:a});continue}if(a===""||zf.test(a)){n.set(o,{name:o,required:!0});continue}const c=[...a.matchAll(zp)].map(l=>l[1]).filter(l=>!jp.has(l));if(c.length>0){const l=a.replace(zp,"");if(Nw.test(l)&&!Lw.test(l)&&!Bi.test(o)){n.set(o,{name:o,required:!1,valueTemplate:a});for(const u of c)i.add(u);continue}}else if(!Bi.test(o)&&!Da(a)){n.set(o,{name:o,required:!1,value:a});continue}n.set(o,{name:o,required:!0}),s.warn("MCP_ENV_VALUE_OMITTED",`server "${e}": literal value of env "${o}" is not stored; configure it during setup`,{componentKey:t})}for(const o of i)n.has(o)||n.set(o,{name:o,required:!0});return[...n.values()].sort(jf)}function $w(e,t,r,s){if(r===void 0)return[];if(r===null||typeof r!="object"||Array.isArray(r))return s.error("MCP_INVALID_HEADERS",`server "${e}": "headers" must be an object`,{componentKey:t}),null;const n=[],i=new Set;for(const[o,a]of Object.entries(r)){if(i.has(o.toLowerCase()))return s.error("MCP_INVALID_HEADERS",`server "${e}": header "${o}" is declared more than once`,{componentKey:t}),null;if(i.add(o.toLowerCase()),typeof a!="string"){s.error("MCP_INVALID_HEADERS",`server "${e}": header "${o}" must be a string`,{componentKey:t});continue}const c=Dw.test(o);if(a===""||zf.test(a)){n.push({name:o,secret:c});continue}const l=Da(a);if(!c&&!l){n.push({name:o,secret:!1,value:a});continue}s.warn("MCP_HEADER_VALUE_OMITTED",`server "${e}": literal value of header "${o}" is not stored; configure it during setup`,{componentKey:t}),n.push({name:o,secret:c||l})}return n.sort(jf)}function qw(e,t,r,s){const n={},i=r.authentication;if(typeof i=="string"){const a=i.toLowerCase();a==="on_install"?n.timing="on_install":a==="on_use"&&(n.timing="on_use")}const o=r.oauth??(typeof i=="object"?i:void 0);if(o&&typeof o=="object"&&!Array.isArray(o)){const a=o,c=a.scopes;Array.isArray(c)&&c.every(d=>typeof d=="string")&&(n.scopes=c);const l={};for(const[d,h]of Object.entries(a))d!=="scopes"&&(l[d]=h);const u=Ua(l,{issues:s,secretCode:"MCP_SECRET_FIELD_OMITTED",label:`server "${e}": oauth`,context:{componentKey:t}});Object.keys(u).length>0&&(n.metadata=u)}return n}var zw={url:"https://developers.openai.com/plugins/deploy/submission-errors",capturedOn:"2026-11-13"},wr={plugin_manifest_missing:{table:"Plugin manifest errors",message:"ZIP must contain root `plugin.json` with a supported Agent Plugins schema, `.codex-plugin/plugin.json`, `.agent-plugin/plugin.json`, or `.claude-plugin/plugin.json` at the root or in its single top-level directory."},plugin_root_ambiguous:{table:"Plugin root errors",message:"ZIP must contain exactly one plugin root, either at the archive root or in one top-level directory."},plugin_root_has_siblings:{table:"Plugin root errors",message:"A ZIP with a top-level plugin directory must not contain sibling files."},plugin_name_missing:{table:"Plugin manifest errors",message:"`name` is required."},plugin_name_wrong_type:{table:"Plugin manifest errors",message:"`name` must be a string."},plugin_name_empty:{table:"Plugin manifest errors",message:"`name` must be non-empty."},plugin_name_too_long:{table:"Plugin manifest errors",message:"`name` must be 64 characters or fewer."},plugin_name_format:{table:"Plugin manifest errors",message:"`name` must start with an ASCII letter or digit and contain only ASCII letters, digits, `_`, or `-`."}},jw=/^(?!.*(?:--|\.\.))[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/;var Ff=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;function Fw(e){if(e===void 0)return["plugin_name_missing"];if(typeof e!="string")return["plugin_name_wrong_type"];if(e.trim()==="")return["plugin_name_empty"];const t=[];return e.length>64&&t.push("plugin_name_too_long"),Ff.test(e)||t.push("plugin_name_format"),t}var Hw='manifest "name" must be 1-64 lowercase [a-z0-9.-] chars with single separators (no "--" or "..")';function Bw(e,t){const[r]=Fw(e),s=t==="openai-compatible";return typeof e=="string"&&(e.length<=64&&jw.test(e)||s&&r===void 0)?{ok:!0,name:e}:{ok:!1,message:s&&r!==void 0?wr[r].message:Hw}}var vs="plugin.json",Ml=Object.freeze({"1.0.0":"https://agent-plugins.org/schemas/1.0.0/plugin.schema.json"}),Us="com.mcpjam",Bd=/\[TODO:/i,Hf=["description","license"],Bf=["homepage","repository"],Vw=new Set(["command","entrypoint","exec","install","install_script","postinstall","preinstall","run","script","scripts"]),Gw=new Set(["$schema","name","version","author","keywords","extensions","interface",...Hf,...Bf]);function xl(e,t,r,s=0,n={reportedTooDeep:!1}){if(typeof e=="string"){Bd.test(e)&&r.error("MANIFEST_PLACEHOLDER",`manifest field "${t}" contains an unresolved placeholder`);return}if(s>32){n.reportedTooDeep||(n.reportedTooDeep=!0,r.error("VALUE_TOO_DEEP",`manifest field "${t}" nests deeper than 32 levels`));return}if(Array.isArray(e)){e.forEach((i,o)=>xl(i,`${t}[${o}]`,r,s+1,n));return}if(e&&typeof e=="object")for(const[i,o]of Object.entries(e))xl(o,t===""?i:`${t}.${i}`,r,s+1,n)}function Fp(e,t,r){if(typeof t!="string"){r.error("MANIFEST_INVALID_FIELD",`manifest field "${e}" must be a string URL`);return}let s;try{s=new URL(t)}catch{r.warn("MANIFEST_INVALID_FIELD",`manifest field "${e}" is not a valid URL; ignored`);return}if(s.username!==""||s.password!==""||Hd(s)){r.warn("MANIFEST_SECRET_FIELD_OMITTED",`manifest field "${e}" carries a credential; ignored`);return}if(Fd(t,{allowFragment:!0})){r.warn("MANIFEST_INVALID_FIELD",`manifest field "${e}" is not a URL as written; ignored`);return}if(s.protocol!=="https:"){r.warn("MANIFEST_INSECURE_URL",`manifest field "${e}" must use HTTPS; ignored`);return}return t}function Kw(e,t,r,s){const n=t[Us];if(n===void 0)return;if(n===null||typeof n!="object"||Array.isArray(n)){s.warn("MANIFEST_INVALID_FIELD",`extension namespace "${Us}" must be an object; ignored`);return}const i=n,o=i.displayName??i.display_name;o!==void 0&&(typeof o!="string"?s.warn("MANIFEST_INVALID_FIELD",`"${Us}.displayName" must be a string; ignored`):e.displayName=o);for(const a of["icon","logo"]){const c=i[a];if(c===void 0)continue;if(typeof c!="string"){s.warn("MANIFEST_INVALID_FIELD",`"${Us}.${a}" must be a bundle-relative path; ignored`);continue}const l=on("",c);if(!l.ok){s.warn(l.code,`"${Us}.${a}": ${l.message}`);continue}if(!r.has(l.path)){s.warn("MANIFEST_MISSING_FILE",`"${Us}.${a}" references a file that is not in the bundle: "${l.path}"`,{path:l.path});continue}e[a]=l.path}}var ur="com.openai",Vf=["logo","logoDark","composerIcon"];function Ks(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Jw(e,t,r,s){for(const{label:n,value:i}of t)if(i!==void 0){if(!Ks(i)){s.warn("MANIFEST_INVALID_FIELD",`"${n}" must be an object; ignored`);continue}i.displayName!==void 0&&typeof i.displayName!="string"?s.warn("MANIFEST_INVALID_FIELD",`"${n}.displayName" must be a string; ignored`):i.displayName?.trim()&&(Bd.test(i.displayName)?s.warn("MANIFEST_INVALID_FIELD",`"${n}.displayName" is an unresolved placeholder; ignored`):e.displayName=i.displayName);for(const o of Vf){const a=i[o];if(a===void 0)continue;if(typeof a!="string"){s.warn("MANIFEST_INVALID_FIELD",`"${n}.${o}" must be a bundle-relative path; ignored`);continue}const c=on("",a);if(!c.ok){s.warn(c.code,`"${n}.${o}": ${c.message}`);continue}if(!r.has(c.path)){s.warn("MANIFEST_MISSING_FILE",`"${n}.${o}" references a file that is not in the bundle: "${c.path}"`,{path:c.path});continue}e[o]=c.path}}}function Ww(e,t){if(e.logo===void 0&&e.logoDark===void 0){t.warn("MANIFEST_DIRECTORY_ICON_MISSING",'plugin has no directory icon: OpenAI requires "interface.logo" (light) and "interface.logoDark" (dark), PNG');return}if(e.logo===void 0||e.logoDark===void 0){const r=e.logo===void 0?"logo":"logoDark";t.warn("MANIFEST_DIRECTORY_ICON_VARIANT_MISSING",`plugin directory icon has no ${r==="logo"?"light":"dark"} variant: add "interface.${r}"`)}}function Yw(e,t){const{filePaths:r,issues:s}=t;if(e===null||typeof e!="object"||Array.isArray(e))return s.error("MANIFEST_INVALID_JSON","plugin.json must contain a JSON object"),{manifest:null};const n=e,i=n.$schema,o=typeof i=="string"?Object.keys(Ml).find(y=>Ml[y]===i):void 0;if(o===void 0)return s.error("MANIFEST_UNSUPPORTED_SCHEMA",i===void 0?'manifest is missing the required "$schema" field':`manifest "$schema" is not a supported Agent Plugins schema: ${String(i)}`),{manifest:null};const a=Bw(n.name,t.profile??"strict");if(!a.ok)return s.error("MANIFEST_INVALID_NAME",a.message),{manifest:null};const c={schemaVersion:o,name:a.name,extensions:{}};n.version!==void 0&&(typeof n.version!="string"||n.version.length===0?s.error("MANIFEST_INVALID_VERSION",'manifest "version" must be a non-empty string when present'):c.version=n.version);for(const y of Hf){const m=n[y];if(m!==void 0){if(typeof m!="string"){s.error("MANIFEST_INVALID_FIELD",`manifest field "${y}" must be a string`);continue}c[y]=m}}for(const y of Bf){if(n[y]===void 0)continue;const m=Fp(y,n[y],s);m!==void 0&&(c[y]=m)}const l=n.author;if(l!==void 0)if(l&&typeof l=="object"&&!Array.isArray(l)){const y=l,m={};for(const k of Object.keys(y)){if(k==="name"||k==="email"||k==="url"){k!=="url"&&typeof y[k]!="string"&&s.error("MANIFEST_INVALID_FIELD",`manifest field "author.${k}" must be a string`);continue}s.warn("MANIFEST_UNKNOWN_FIELD",`manifest field "author.${k}" is not part of Agent Plugins ${o}; ignored`)}if(typeof y.name=="string"&&(m.name=y.name),typeof y.email=="string"&&(m.email=y.email),y.url!==void 0){const k=Fp("author.url",y.url,s);k!==void 0&&(m.url=k)}c.author=m}else s.error("MANIFEST_INVALID_FIELD",'manifest field "author" must be an object');const u=n.keywords;u!==void 0&&(!Array.isArray(u)||u.some(y=>typeof y!="string")?s.error("MANIFEST_INVALID_FIELD",'manifest field "keywords" must be an array of strings'):c.keywords=u);const d=Ks(n.extensions)?n.extensions[ur]:void 0,h=n.interface!==void 0||d!==void 0;Jw(c,[{label:"interface",value:n.interface},{label:`extensions.${ur}.interface`,value:Ks(d)?d.interface:void 0}],r,s);const g=n.extensions;g!==void 0&&(g===null||typeof g!="object"||Array.isArray(g)?s.warn("MANIFEST_INVALID_FIELD",'manifest field "extensions" must be an object; ignored'):(c.extensions=Ua(Qw(g),{issues:s,secretCode:"MANIFEST_SECRET_FIELD_OMITTED",label:"manifest extensions"}),Kw(c,g,r,s))),h&&Ww(c,s);for(const y of Object.keys(n))if(!Gw.has(y)){if(Vw.has(y)){s.error("MANIFEST_AMBIGUOUS_FIELD",`manifest field "${y}" is not supported and is execution-ambiguous; remove it`);continue}s.warn("MANIFEST_UNKNOWN_FIELD",`manifest field "${y}" is not part of Agent Plugins ${o}; ignored`)}return xl(c,"",s),{manifest:c,onboardingSkill:Ks(d)?d.onboardingSkill:void 0}}var Xw=new Set(["displayName",...Vf]);function Qw(e){const t=e[ur];if(!Ks(t))return e;const{onboardingSkill:r,...s}=t;return Ks(s.interface)&&(s.interface=Object.fromEntries(Object.entries(s.interface).filter(([n,i])=>!Xw.has(n)||typeof i!="string"||!Bd.test(i)))),{...e,[ur]:s}}function Zw(e,t,r,s){const n=e.extensions[ur],i=Ks(n)?{...n}:void 0;if(i!==void 0&&(delete i.onboardingSkill,e.extensions[ur]=i),t===void 0)return;const o=typeof t=="string"?on("",t):null,a=o?.ok?r.find(c=>c.skillFilePath===o.path):void 0;if(a===void 0||i===void 0){s.warn("MANIFEST_MISSING_FILE","the onboarding skill this plugin names is not one of its loaded skills; onboarding is unavailable");return}e.onboarding={skillPath:a.skillFilePath,componentKey:a.componentKey},i.onboardingSkill=t}var ek={maxEntries:1e3,maxTotalBytes:104857600,maxFileBytes:10485760,maxPathBytes:512,maxPathDepth:20,maxSkills:20,maxMcpServers:20},Gf=Object.freeze({strict:2,"openai-compatible":1}),Sr=".codex-plugin/plugin.json",Kf=".agent-plugin/plugin.json",Jf=".claude-plugin/plugin.json",tk=".mcp.json",Wf=[{path:Sr,layout:"codex"},{path:Kf,layout:"agent-legacy"},{path:Jf,layout:"claude"}],rk=new Set(["skills","mcpServers","apps","interface","onboardingSkill","extensions"]),Yf={hooks:"lifecycle hooks",commands:"slash commands",agents:"agents",outputStyles:"output styles",lspServers:"language servers"};function Jr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Xf(e,t){if(typeof e!="string")return!1;const r=on("",e);return r.ok&&r.path===t}function Qf(e,t,r){const s=e.extensions,n=Jr(s)?s[ur]:void 0,i=Jr(n)?{...n}:{};for(const a of["interface","apps"])e[a]!==void 0&&i[a]===void 0&&(i[a]=e[a]);const o=e.onboardingSkill;return o!==void 0&&i.onboardingSkill===void 0?i.onboardingSkill=o:o!==void 0&&i.onboardingSkill!==o&&(r.warn("MANIFEST_INVALID_FIELD",`${t} declares two different onboarding skills; neither is used`,{path:t}),delete i.onboardingSkill),i}function Zf(e,t){const{[ur]:r,...s}=e??{};return Object.keys(t).length>0?{...s,[ur]:t}:s}function eg(e,t,r){for(const[s,n]of Object.entries(Yf))e[s]!==void 0&&r.warn("UNSUPPORTED_COMPONENT",`"${s}" in ${t} declares ${n}, which MCPJam does not run; ignored`,{path:t})}function sk(e,t,{filePaths:r,issues:s}){if(e===void 0)return r.has(".mcp.json")?{legacyMcp:{kind:"file",path:tk}}:{};if(Jr(e))return{legacyMcp:{kind:"inline",path:t,document:e}};const n=typeof e=="string"?on("",e):null;if(n===null||!n.ok){const i=`"mcpServers" in ${t}: ${n===null?"must be a path or an object":n.message}`;return s.warn(n?.code??"MCP_INVALID_CONFIG",i,{path:t}),{skipped:{kind:"mcp-config",key:t,reason:i}}}return r.has(n.path)?{legacyMcp:{kind:"file",path:n.path}}:(s.warn("MANIFEST_MISSING_FILE",`"mcpServers" in ${t} names "${n.path}", which is not in the bundle`,{path:n.path}),{})}function nk(e,t,r){const{issues:s}=r,n=t.manifestPath,i={};for(const[c,l]of Object.entries(e))!rk.has(c)&&!(c in Yf)&&(i[c]=l);const o=i.$schema;String(o).startsWith("https://agent-plugins.org/schemas/")||(i.$schema=Ml["1.0.0"]);const a=e.extensions;if(a!==void 0&&!Jr(a))i.extensions=a;else{const c=Zf(a,Qf(e,n,s));Object.keys(c).length>0&&(i.extensions=c)}if(e.skills!==void 0&&!Xf(e.skills,"skills")){const c=typeof e.skills=="string"?`"${e.skills}"`:"a non-path value";s.warn("UNSUPPORTED_COMPONENT",`"skills" in ${n} names ${c}; skills are read only from "skills/"`,{path:n})}return eg(e,n,s),{interpretation:t,record:i,...sk(e.mcpServers,n,r)}}function ik(e,t,{readJson:r,issues:s}){const n=l=>(s.warn("MANIFEST_OVERLAY_IGNORED",`"${Sr}" is ignored: ${l}`,{path:Sr}),{interpretation:t,record:e}),i=e.extensions;if(i!==void 0&&!Jr(i))return n(`"${vs}" has no usable "extensions"`);if(Jr(i?.["com.openai"]))return n(`"${vs}" declares extensions["${ur}"], which replaces it`);const o=new qs,a=r(Sr,o);if(!Jr(a))return n(o.firstErrorMessage()??"it must be a JSON object");for(const[l,u]of[["skills","skills"],["mcpServers","mcp.json"]])a[l]===void 0||Xf(a[l],u)||s.warn("MANIFEST_OVERLAY_IGNORED",`"${l}" in ${Sr} is ignored: with a root plugin.json it is always "${u}"`,{path:Sr});eg(a,Sr,s);const c=Qf(a,Sr,s);return{interpretation:{...t,overlayPath:Sr},record:{...e,extensions:Zf(i,c)}}}function tg(e,{filePaths:t,issues:r}){for(const{path:s}of Wf)s===e||e==="plugin.json"&&s===".codex-plugin/plugin.json"||!t.has(s)||r.warn("MANIFEST_OVERLAY_IGNORED",`"${s}" is ignored: "${e}" is the manifest`,{path:s})}function ok(e){const{profile:t,filePaths:r,readJson:s,issues:n}=e,i={profile:t,revision:Gf[t],layout:"agent-plugins",manifestPath:vs},o=s(vs,n);return t==="strict"||!Jr(o)?{interpretation:i,record:o}:(tg(vs,e),r.has(".codex-plugin/plugin.json")?ik(o,i,e):{interpretation:i,record:o})}function ak(e){const{profile:t,location:r,readJson:s,issues:n}=e;if(r.layout==="agent-plugins")return ok(e);tg(r.path,e);const i={profile:t,revision:Gf[t],layout:r.layout,manifestPath:r.path},o=s(r.path,n);return Jr(o)?nk(o,i,e):{interpretation:i,record:o}}var Hp="2026-08-19",Bp="https://developers.openai.com/plugins",rg=["quickstart","plugin-guidelines","reference","changelog","plan/use-case","plan/tools","concepts/plugins","concepts/skills","concepts/ui-guidelines","build/plugins","build/skills","build/mcp-server","build/chatgpt-ui","build/auth","build/monetization","build/examples","deploy/connect-chatgpt","deploy/submission","deploy/submission-errors","deploy/troubleshooting","guides/optimize-metadata","guides/submit-claude-plugin","guides/product-checkout-conversion-spec"],sg=[{page:"help/plugins-in-chatgpt-and-codex",url:"https://help.openai.com/en/articles/20001256-plugins-in-chatgpt-and-codex"},{page:"help/submitting-apps-to-the-chatgpt-app-directory",url:"https://help.openai.com/en/articles/20001040-submitting-apps-to-the-chatgpt-app-directory"}],ng={"app-guidelines":"plugin-guidelines"};function ck(e){return Object.hasOwn(ng,e)}var b$=[...rg,...sg.map(e=>e.page)],Vp={},lk=[...rg.map(e=>({page:e,url:`${Bp}/${e}`,revisionUrl:`${Bp}/${e}.md`,format:"markdown",revision:Vp[e]??null,snapshotDate:Hp})),...sg.map(e=>({page:e.page,url:e.url,revisionUrl:e.url,format:"html",revision:Vp[e.page]??null,snapshotDate:Hp}))],dk=Object.freeze(Object.fromEntries(lk.map(e=>[e.page,e])));function ir(e,t){const r=dk[ck(e)?ng[e]:e];return{page:r.page,section:t,url:r.url,revision:r.revision,snapshotDate:r.snapshotDate}}var ea={maxCompressedBytes:104857600,maxUncompressedBytes:536870912,maxEntries:5e3},uk={portable:vs,canonical:Sr,accepted:[Kf,Jf]},xt={nameMaxLength:100,pluginNameMaxLength:64,displayNameMaxLength:100,shortDescriptionMaxLength:255,descriptionMaxLength:2e3,defaultPromptMaxLength:255,toolNameMaxLength:64,skillNameMaxLength:64},ig=["productivity","education","developer-tools","design","writing","research","data-analysis","marketing","sales","finance","health","travel","entertainment"],ta={minEdgePx:48,maxEdgePx:4096,mustBeSquare:!0,maxBytes:5242880,acceptedMimeTypes:["image/png","image/jpeg","image/webp","image/svg+xml"]},pk={lightBackground:"#FFFFFF",darkBackground:"#212121",minRatio:2},$s={maxSkillMarkdownBytes:262144,maxPageBytes:1048576,maxSkillTotalBytes:5242880,maxImportedTotalBytes:8388608,maxSkills:5,maxPagesPerSkill:10},hk="/.well-known/openai-apps-challenge",mk="text/html;profile=mcp-app",fk="/mcp",gk=["readOnlyHint","destructiveHint","openWorldHint"],Vr={successCount:5,failureCount:3},vk={originChangeRequiresNewPlugin:!0,uiContentChangesStayLive:!0,uiContentCacheSeconds:3600},S$={archiveLimits:ea,manifestLocations:uk,fieldLimits:xt,listingCategories:ig,imageConstraints:ta,brandColorContrast:pk,mcpSkillLimits:$s,domainVerificationPath:hk,appHtmlMime:mk,expectedMcpPath:fk,requiredToolAnnotations:gk,submissionTestCases:Vr,releaseRules:vk,source:ir("deploy/submission","Host profile constants")},og={columns:["Resource","Lookup"],keys:["fixture","lookup"],placeholders:[["Sample Project",'get_project {"name": "Sample Project"}']],maxRows:20,grow:!0},yk="Upload new or existing plugin",_k={upload:{title:"Upload your plugin ZIP",intro:"Compress your plugin folder into a .zip file before uploading",layout:{blocks:[{widget:"upload",text:{drop:"Upload new or existing plugin",button:"Upload plugin",checked:"Errors block the upload; warnings require confirmation."}}]}},listing:{title:"Metadata & Skills",intro:"Package details are read-only here; edit them in your source package.",layout:{blocks:[{widget:"plugin-header",fields:["listing.displayName","listing.shortDescription"]},{heading:"Metadata",fields:["listing.description","listing.developer","listing.name","listing.category","listing.capabilities","listing.website","listing.support","listing.privacyPolicy","listing.terms","listing.starterPrompts"],text:{upload:"Upload new version"}},{heading:"Skills",widget:"skills",text:{passed:"Checks passed",attention:"Needs attention"}},{widget:"findings",text:{title:"Findings",all:"All",blocking:"Blocking",copy:"Copy findings"}}]}},mcp:{title:"MCPs",intro:"Your package can declare multiple MCP servers, but only one MCP server can be connected per plugin.",layout:{blocks:[{heading:"Connect MCP server",widget:"connect",fields:["mcp.serverUrl","mcp.verificationToken"],text:{authentication:"Authentication",authorize:"Your MCP server needs OAuth access before we can scan its tools.",settings:"You can define advanced settings in your mcp.json",domain:"Domain verification",verified:"Domain verified",reconnect:"Reconnect",rescan:"Rescan"}},{heading:"Tools",widget:"tools"}]}},reviewer:{title:"Review information",intro:"Read-only fields are managed by your plugin ZIP. To change read-only information, update your plugin ZIP and upload it again.",layout:{blocks:[{heading:"Countries and translations",note:"Its fields were not captured."},{heading:"Reviewer credentials",note:"Test credentials must work immediately with no additional setup required. Logging in must provide immediate access to a demo account.",fields:["reviewer.loginUrl","reviewer.tenant","reviewer.username","reviewer.passwordSecret","reviewer.signInSteps"]},{fields:["reviewer.identityTool","reviewer.identityArgs","reviewer.expectedIdentityPath","reviewer.expectedIdentity","reviewer.expectedOrganizationPath","reviewer.expectedOrganization","reviewer.fixtures"]},{heading:"Test cases",fields:["reviewer.testCases"]},{heading:"Negative test cases",fields:["reviewer.negativeTestCases"]},{heading:"Supporting content",fields:["reviewer.demoRecordingUrl","reviewer.releaseNotes"]},{widget:"drawer-actions",text:{back:"Back",next:"Next",save:"Save details"}}]}},submit:{title:"Submit for review",intro:"Complete the required policy attestations.",layout:{blocks:[{fields:["submit.developerIdentity"]},{fields:["submit.attestations"]},{widget:"non-blocking-findings",text:{title:"Non-blocking findings",body:"These findings do not block submission, but unresolved findings may lead to rejection during review."}},{fields:["submit.additionalContext"]},{widget:"submit",text:{cancel:"Cancel",submit:"Submit"}}]}},publish:{title:"Publish your approved plugin",intro:"Open the approved package version and select Publish plugin.",layout:{blocks:[{widget:"publish",text:{button:"Publish plugin"}}]}}},bk={"listing.displayName":{label:"Display name",packagePath:"plugin.json#/extensions/com.openai/interface/displayName",errors:{required:"Display name is required, non-empty, and single-line.",tooLong:"Display name must be 30 characters or fewer."}},"listing.shortDescription":{label:"Short description",packagePath:"plugin.json#/extensions/com.openai/interface/shortDescription",errors:{required:"Short description is required, non-empty, and single-line.",tooLong:"Short description must be 30 characters or fewer."}},"listing.description":{label:"About",packagePath:"plugin.json#/extensions/com.openai/interface/longDescription",errors:{required:"Long description is required and must be non-empty. Line breaks are allowed.",tooLong:"Long description must be 4,000 characters or fewer."}},"listing.developer":{label:"Developer",packagePath:"plugin.json#/extensions/com.openai/interface/developerName",errors:{required:"Developer name is required.",tooLong:"Developer name must be 80 characters or fewer."}},"listing.name":{label:"Package name",packagePath:"plugin.json#/name"},"listing.category":{label:"Category",packagePath:"plugin.json#/extensions/com.openai/interface/category",options:[{value:"Productivity",label:"Productivity"},{value:"Creativity",label:"Creativity"},{value:"Developer Tools",label:"Developer Tools"},{value:"Business & Operations",label:"Business & Operations"},{value:"Data & Analytics",label:"Data & Analytics"},{value:"Communication",label:"Communication"},{value:"Education & Research",label:"Education & Research"},{value:"Security",label:"Security"},{value:"Finance",label:"Finance"},{value:"Healthcare",label:"Healthcare"},{value:"Travel",label:"Travel"},{value:"Entertainment",label:"Entertainment"},{value:"Other",label:"Other"}]},"listing.capabilities":{label:"Capabilities",packagePath:"plugin.json#/extensions/com.openai/interface/capabilities"},"listing.website":{label:"Website",packagePath:"plugin.json#/extensions/com.openai/interface/websiteURL",errors:{required:"Website URL is required."}},"listing.support":{label:"Support",packagePath:"plugin.json#/extensions/com.openai/interface/supportURL"},"listing.privacyPolicy":{label:"Privacy policy",packagePath:"plugin.json#/extensions/com.openai/interface/privacyPolicyURL"},"listing.terms":{label:"Terms of service",packagePath:"plugin.json#/extensions/com.openai/interface/termsOfServiceURL"},"listing.starterPrompts":{label:"Starter prompts",packagePath:"plugin.json#/extensions/com.openai/interface/defaultPrompt"},"mcp.serverUrl":{label:"MCP Server URL",packagePath:"mcp.json#/mcpServers/*/url"},"mcp.verificationToken":{label:"Domain verification token",helper:"The portal issues this token in its MCP step."},"reviewer.loginUrl":{label:"Login URL"},"reviewer.tenant":{label:"Tenant",placeholder:"Choose an organization"},"reviewer.username":{label:"Username"},"reviewer.passwordSecret":{label:"Password",placeholder:"Demo account password"},"reviewer.signInSteps":{label:"Sign-in steps",placeholder:"Steps for this account"},"reviewer.identityTool":{label:"Identity tool",placeholder:"whoami",helper:"MCPJam's own check, not part of the portal: a read-only tool on your server that returns the signed-in account. MCPJam calls it as the reviewer."},"reviewer.identityArgs":{label:"Identity tool arguments",placeholder:"{}",helper:"Fixed JSON arguments, if the identity tool takes any."},"reviewer.expectedIdentityPath":{label:"Identity path",placeholder:"$.user.email",helper:"Where the tool's result names the account, as a JSON path."},"reviewer.expectedIdentity":{label:"Expected reviewer",placeholder:"review@example.com",helper:"The account reviewers sign in as."},"reviewer.expectedOrganizationPath":{label:"Organization path",placeholder:"$.organization.name",helper:"Where the tool's result names the organization or project, as a JSON path."},"reviewer.expectedOrganization":{label:"Expected organization",placeholder:"Sample Org",helper:"The organization or project reviewers should land in."},"reviewer.fixtures":{label:"Fixtures",helper:"MCPJam's own check: resources your test cases name, each with a read-only tool call that finds it in the reviewer's account."},"reviewer.testCases":{label:"Test cases",packagePath:"plugin.json#/extensions/com.openai/review/test_cases/positive"},"reviewer.negativeTestCases":{label:"Negative test cases",packagePath:"plugin.json#/extensions/com.openai/review/test_cases/negative"},"reviewer.demoRecordingUrl":{label:"Video walkthrough URL",packagePath:"plugin.json#/extensions/com.openai/review/demo_recording_url"},"reviewer.releaseNotes":{label:"Release notes",packagePath:"plugin.json#/extensions/com.openai/publication/release_notes"},"submit.developerIdentity":{label:"Developer identity"},"submit.attestations":{label:"Policy attestations",options:[{value:"terms-and-guidelines",label:"I have reviewed and agree to OpenAI's Terms and Plugin Guidelines. I confirm that my plugin is in compliance with those Terms and Guidelines."},{value:"applicable-laws",label:"I confirm that my plugin complies with all laws and regulations applicable to the industry it operates in. I understand that I am responsible for that compliance."},{value:"no-money-movement",label:"I confirm that my plugin does not initiate or execute money transfers, crypto transfers, or investment trades on behalf of users."},{value:"third-party-rights",label:"I confirm that I have all necessary rights to any third-party content or API endpoints accessed, displayed, or used by my plugin."},{value:"suitable-under-18",label:"I confirm that my plugin is suitable for individuals under 18 and does not include mature or adult content."},{value:"not-targeting-children",label:"I confirm that my plugin does not target children under 13 or share their personal information with OpenAI."}]},"submit.additionalContext":{label:"Additional Submission Context",helper:"Add any additional information that might be useful for the review team, including justification for any findings. This optional note is private to the review."}},Sk=[{step:"upload",needs:["package"],reads:[],checks:["openai.package.archive","openai.package.manifest","openai.package.skills","openai.package.assets","openai.package.exclusions","openai.package.manifest-location","openai.package.observation.*","openai.migration.unsupported-surfaces","openai.migration.user-config","openai.migration.stdio-transport","openai.migration.host-language"]},{step:"listing",needs:["package"],reads:["listing.displayName","listing.shortDescription","listing.description"],checks:["openai.policy.non-promotional-package"]},{step:"listing",needs:[],reads:["listing.displayName","listing.shortDescription","listing.description"],checks:["openai.policy.non-promotional-listing"]},{step:"listing",needs:[],reads:["listing.displayName","listing.shortDescription","listing.description","listing.category"],checks:["openai.submission.listing-fields"]},{step:"listing",field:"listing.privacyPolicy",needs:[],reads:["listing.privacyPolicy","listing.support"],checks:["openai.submission.urls"]},{step:"listing",field:"listing.privacyPolicy",needs:[],reads:["listing.privacyPolicy"],checks:["openai.submission.privacy-disclosure","openai.policy.privacy-consistency"]},{step:"listing",needs:[],reads:[],checks:["openai.policy.originality","openai.policy.no-advertising","openai.policy.commerce","openai.feature.checkout"]},{step:"listing",needs:["server"],reads:["mcp.serverUrl"],checks:["openai.skills.extension","openai.skills.listing-complete","openai.skills.caps","openai.skills.digests","openai.skills.frontmatter","openai.skills.snapshot","openai.feature.imported-skills","openai.ui.screenshots"]},{step:"listing",needs:["server","model"],reads:["mcp.serverUrl"],checks:["openai.experience.listing-copy-placeholder","openai.experience.listing-copy-overpromises","openai.experience.skill-overlap"]},{step:"mcp",field:"mcp.serverUrl",needs:[],reads:["mcp.serverUrl"],checks:["openai.endpoint.https","openai.endpoint.path"]},{step:"mcp",field:"mcp.serverUrl",needs:["server"],reads:["mcp.serverUrl"],checks:["openai.endpoint.redirects-stay-https","openai.endpoint.redirects-terminate"]},{step:"mcp",field:"mcp.verificationToken",needs:["server"],reads:["mcp.serverUrl","mcp.verificationToken"],checks:["openai.domain.challenge-served","openai.domain.challenge-matches"]},{step:"mcp",field:"mcp.verificationToken",needs:[],reads:["mcp.verificationToken"],checks:["openai.submission.domain-token"]},{step:"mcp",needs:["server"],reads:["mcp.serverUrl"],checks:["openai.auth.challenge","openai.auth.prm-discoverable","openai.auth.prm-pointer","openai.auth.issuers-resolve","openai.auth.pkce-s256","openai.auth.rfc9207-iss","openai.auth.client-acquisition","openai.auth.runtime-challenge","openai.auth.unsupported-flows","openai.tools.annotations","openai.tools.descriptions","openai.tools.name-length","openai.tools.schemas","openai.tools.annotation-honesty","openai.tools.security-schemes","openai.profile.declared","openai.profile.input-empty","openai.profile.output-schema","openai.profile.read-only","openai.profile.description-honesty","openai.ui.mime","openai.ui.domain-present","openai.ui.domain-unique","openai.ui.csp-exact","openai.ui.output-schema","openai.ui.useful-without-ui","openai.submission.annotation-justifications","openai.submission.frame-domain-explanations","openai.release.origin","openai.release.contract","openai.release.schema-compatibility","openai.release.live-changes","openai.feature.profile-identification","openai.feature.ui-templates","openai.feature.cimd","openai.feature.lazy-authentication"]},{step:"mcp",needs:[],reads:[],checks:["openai.submission.scan-currency","openai.policy.predictable-side-effects","openai.policy.response-minimization"]},{step:"mcp",needs:["server","model"],reads:["mcp.serverUrl"],checks:["openai.experience.tool-descriptions-uninformative","openai.experience.tool-overlap","openai.experience.naming-inconsistent","openai.experience.destructive-tool-underexplained","openai.experience.auth-story-unclear","both.decision.annotation-matches-behaviour"]},{step:"mcp",needs:["model"],reads:["mcp.serverUrl","listing.displayName","listing.shortDescription","listing.description"],checks:["openai.decision.fair-play","openai.decision.secret-seeking"]},{step:"reviewer",needs:[],reads:["reviewer.demoRecordingUrl","reviewer.loginUrl","reviewer.username","reviewer.passwordSecret"],checks:["openai.submission.demo-access"]},{step:"reviewer",field:"reviewer.identityTool",needs:["server","reviewer"],reads:["mcp.serverUrl","reviewer.identityTool","reviewer.identityArgs","reviewer.expectedIdentityPath","reviewer.expectedIdentity","reviewer.expectedOrganizationPath","reviewer.expectedOrganization"],checks:["both.reviewer.identity"]},{step:"reviewer",field:"reviewer.fixtures",needs:["server","reviewer"],reads:["mcp.serverUrl","reviewer.fixtures","reviewer.testCases","reviewer.negativeTestCases","reviewer.signInSteps","reviewer.identityTool","reviewer.identityArgs","reviewer.expectedIdentityPath","reviewer.expectedIdentity","reviewer.expectedOrganizationPath","reviewer.expectedOrganization"],checks:["both.reviewer.fixtures"]},{step:"mcp",needs:["server"],reads:["mcp.serverUrl"],checks:["both.auth.client-signatures"]},{step:"reviewer",field:"reviewer.testCases",needs:[],reads:["reviewer.testCases","reviewer.negativeTestCases"],checks:["openai.submission.test-cases"]},{step:"reviewer",field:"reviewer.negativeTestCases",needs:[],reads:["reviewer.negativeTestCases"],checks:["openai.submission.test-case-quality"]},{step:"reviewer",field:"reviewer.releaseNotes",needs:[],reads:["reviewer.releaseNotes"],checks:["openai.submission.release-notes"]},{step:"reviewer",needs:[],reads:[],checks:["openai.submission.geography"]},{step:"submit",field:"submit.attestations",needs:[],reads:["submit.attestations"],checks:["openai.submission.attestations","openai.submission.attestation-truth"]},{step:"submit",field:"submit.developerIdentity",needs:[],reads:["submit.developerIdentity"],checks:["openai.submission.account"]},{step:"submit",needs:[],reads:[],checks:["openai.submission.profile-valid"]}],wk={"runtime-compatibility":"mcp","directory-policy":"mcp","plugin-package":"upload","release-contract":"mcp","optional-features":"mcp","submission-artifacts":"reviewer","experience-insights":"mcp"},Nn={title:yk,steps:_k,fields:bk,placements:Sk,laneSteps:wk},kk=["server","reviewer","model","package"];function ag(e,t,r){return Object.keys(t).filter(s=>s.startsWith(`${e}.`)).map(s=>({key:s,...r[s],...t[s],errors:r[s].errors??{}}))}function cg(e,t){return t.flatMap(({checks:r,needs:s,...n})=>r.map(i=>({checkId:i,...n,needs:s.map(o=>{const a=kk.find(c=>c===o);if(!a)throw new Error(`${e} names an unknown need: ${o}`);return a})})))}var Ek=Nn.fields,Gp=Nn.steps,dn={format:"https-url"},ut={managedBy:"package"};function tt(e,t={}){return{control:e,required:!0,...t}}function Et(e,t={}){return{control:e,...t}}var Tk={"listing.displayName":tt("text",{...ut,maxLength:30}),"listing.shortDescription":tt("text",{...ut,maxLength:30}),"listing.description":tt("textarea",{...ut,maxLength:4e3}),"listing.developer":tt("text",{...ut,maxLength:80}),"listing.name":tt("text",{...ut,maxLength:xt.pluginNameMaxLength}),"listing.category":Et("select",ut),"listing.capabilities":Et("multi-select",{...ut,freeEntry:!0,maxItems:20}),"listing.website":tt("text",{...ut,...dn}),"listing.support":tt("text",{...ut,...dn}),"listing.privacyPolicy":tt("text",{...ut,...dn}),"listing.terms":tt("text",{...ut,...dn}),"listing.starterPrompts":Et("multi-select",{...ut,freeEntry:!0,maxItems:3}),"mcp.serverUrl":tt("server",{...ut,...dn}),"mcp.verificationToken":Et("text"),"reviewer.loginUrl":tt("text",dn),"reviewer.tenant":Et("text"),"reviewer.username":tt("text"),"reviewer.passwordSecret":tt("secret"),"reviewer.signInSteps":Et("textarea",{requiredWith:["reviewer.tenant"]}),"reviewer.identityTool":Et("text",{requiredWith:["reviewer.expectedIdentity","reviewer.expectedOrganization"]}),"reviewer.identityArgs":Et("text"),"reviewer.expectedIdentityPath":Et("text",{requiredWith:["reviewer.expectedIdentity"]}),"reviewer.expectedIdentity":Et("text",{requiredWith:["reviewer.expectedIdentityPath"]}),"reviewer.expectedOrganizationPath":Et("text",{requiredWith:["reviewer.expectedOrganization"]}),"reviewer.expectedOrganization":Et("text",{requiredWith:["reviewer.expectedOrganizationPath"]}),"reviewer.fixtures":Et("pairs",{pairs:og}),"reviewer.testCases":tt("rows",{...ut,minItems:Vr.successCount,maxItems:Vr.successCount}),"reviewer.negativeTestCases":tt("rows",{...ut,minItems:Vr.failureCount,maxItems:Vr.failureCount}),"reviewer.demoRecordingUrl":tt("text",{...ut,format:"url"}),"reviewer.releaseNotes":tt("textarea",ut),"submit.developerIdentity":tt("text"),"submit.attestations":tt("checkbox-group",{declaration:!0,minItems:Nn.fields["submit.attestations"].options.length}),"submit.additionalContext":Et("textarea")},w$={id:"chatgpt-plugin",directory:"openai",title:Nn.title,version:"2026-11-13",source:{label:"OpenAI plugin submission docs and the ChatGPT plugin portal",url:"https://developers.openai.com/plugins/deploy/submission",capturedAt:"2026-11-13"},submissionUrl:"https://platform.openai.com/plugins",steps:Object.keys(Gp).map(e=>({id:e,...Gp[e],fields:ag(e,Tk,Ek)})),placements:cg("chatgpt-plugin.json",Nn.placements),laneSteps:Nn.laneSteps},Ak="2026-11-13",Rk="2026-08-19";var Ik=["directory","verification","submission","review-criteria","authentication","lazy-authentication","enterprise-managed-auth","troubleshooting","mcp-apps/cross-compatibility","mcp-apps/external-links","mcp-apps/troubleshooting","mcp-apps/design-guidelines"],Ck=[{page:"directory",url:"https://claude.com/docs/directory/publish"},{page:"verification",url:"https://claude.com/docs/connectors/verification"}],Pk=["directory","verification","submission","review-criteria","authentication"],Ok={},Mk=Ik.map(e=>{const t=Ck.find(s=>s.page===e),r=Pk.includes(e)?Ak:void 0;return{page:e,url:t?.url??`https://claude.com/docs/connectors/building/${e}`,revision:Ok[e]??r??null,snapshotDate:r??Rk}}),xk=Object.freeze(Object.fromEntries(Mk.map(e=>[e.page,e])));function os(e,t){const r=xk[e];return{page:r.page,section:t,url:r.url,revision:r.revision,snapshotDate:r.snapshotDate}}var Nk=["https://claude.ai/api/mcp/auth_callback","https://claude.com/api/mcp/auth_callback"];var Lk=".claudemcpcontent.com";var Dk="text/html;profile=mcp-app",Uk={toolListingMs:5e3,handshakeMs:3e3,widgetFirstPaintMs:3e3},$k={minViewportWidthPx:320,minTouchTargetPx:44},Kp=200,Tt={nameMaxLength:100,oneLinerMaxLength:Kp,taglineMaxLength:Kp,descriptionMaxLength:2e3,categoriesMin:1,categoriesMax:5,useCasesMax:3,screenshotsMin:3,screenshotsMax:5,screenshotMinWidthPx:1e3,toolNameMaxLength:64},k$={callbackUrls:Nk,loopbackRedirectIgnoresPort:!0,appContentDomainSuffix:Lk,appContentDomainHashLength:32,appHtmlMime:Dk,latencyBudgets:Uk,appDesignBudgets:$k,submissionLimits:Tt,source:os("directory","Host profile constants")},qk="Submit an MCP connector",zk={connection:{title:"Connection",intro:"Connect the server you want listed. We read its tools, resources, and auth from the live connection.",layout:{blocks:[{widget:"connector-picker",fields:["connection.serverUrl"],text:{notice:"This form is for remote MCP servers only.",noticeDetail:"Local MCP servers can be distributed inside plugins, but may not be supported in every Claude product.",add:"Add custom connector",addHelper:"A connector you add here stays in Settings → Connectors until you remove it.",choose:"Or choose a connector you’ve already added:",notConnected:"Not connected"}},{heading:"URL configuration",note:"Optional",fields:["connection.differentUrls"]}]}},tools:{title:"Tools",intro:"Review the tools we found and their annotations. Fix anything flagged on your server, then reconnect.",layout:{blocks:[{widget:"tool-list",text:{empty:"No server selected. Go back to the Connection step and pick a server."}}]}},listing:{title:"Listing",intro:"How your MCP server appears in the directory. You can edit this after you submit.",layout:{blocks:[{fields:["listing.name","listing.slug"]},{fields:["listing.oneLiner"]},{fields:["listing.description"]},{fields:["listing.categories"]},{fields:["listing.authorName","listing.authorUrl"]},{widget:"icon",fields:["listing.iconUrl"],text:{add:"Add custom icon URL"}},{widget:"listing-preview",text:{title:"How it reads in the directory",name:"Your server’s name",oneLiner:"One-liner appears here"}},{heading:"Links",note:"Help users learn more and get support.",fields:["listing.documentationUrl","listing.enterpriseAuthDocsUrl"]},{fields:["listing.support","listing.privacyPolicyUrl"]}]}},useCases:{title:"Use cases",intro:"Up to three things people can do with your MCP server, what they need before connecting, and whether it reads or writes. Shown to reviewers, not on your listing."},company:{title:"Company",intro:"Tell us about the company or organization behind this MCP server.",layout:{blocks:[{fields:["company.name"]},{fields:["company.website"]},{heading:"Primary contact",note:"We’ll use this contact for any questions about your submission.",fields:["company.contactName"]},{fields:["company.contactEmail"]},{fields:["company.role"]},{fields:["company.anthropicContact"]}]}},authentication:{title:"Authentication",intro:"Configure how users authenticate with your server. What you set here is applied to connections exactly as entered.",layout:{blocks:[{fields:["authentication.requirement"]},{heading:"Authentication methods",widget:"oauth-sign-in",fields:["authentication.oauthClient"],text:{title:"OAuth sign-in",headers:"Additional request headers",addHeader:"Add header",headersHelper:"Sent on every MCP request alongside the OAuth bearer token. Installers provide the values when they connect, unless you mark a header as held by Anthropic.",addStaticHeaders:"Add static headers"}}]}},dataHandling:{title:"Data handling",intro:"Tell reviewers what the MCP server reads, writes, and sends off-platform."},testLaunch:{title:"Test & launch",intro:"Give reviewers a way in, and confirm you’ve tested every tool.",layout:{blocks:[{fields:["testLaunch.instructions"]},{heading:"Self-tested",fields:["testLaunch.selfTested"]},{heading:"Reviewer check",note:"MCPJam's own, not part of Claude's form: who the reviewer is signed in as, and whether the resources your instructions name exist for them.",fields:["testLaunch.identityTool","testLaunch.identityArgs"]},{fields:["testLaunch.expectedIdentityPath","testLaunch.expectedIdentity"]},{fields:["testLaunch.expectedOrganizationPath","testLaunch.expectedOrganization"]},{fields:["testLaunch.fixtures"]}]}},compliance:{title:"Compliance",intro:"Confirm that your MCP server meets Anthropic’s directory policies. All items are required."},review:{title:"Review and submit",intro:"Confirm the details, then submit. Review can take a few weeks, and approval isn’t guaranteed.",layout:{blocks:[{widget:"submit",text:{submit:"Submit for review",missing:"Some steps are missing required fields — submit to highlight them."}}],review:[{id:"connection",title:"Connection",edit:"connection",rows:["connection.serverUrl",{label:"Captured tool list",error:"A captured tool list is required to submit. Connect your server on the Connection step, or reconnect it in Settings → Connectors, to capture it.",blank:"connection.serverUrl"}]},{id:"connection-auth",title:"Connection & authentication",edit:"authentication",rows:["authentication.requirement","authentication.oauthClient"]},{id:"listing",title:"Listing",edit:"listing",rows:["listing.name","listing.slug","listing.oneLiner","listing.description","listing.authorName","listing.categories","listing.documentationUrl","listing.support","listing.privacyPolicyUrl"]},{id:"useCases",title:"Use cases",edit:"useCases",rows:["useCases.pairs","useCases.prerequisites","useCases.access"]},{id:"company",title:"Company",edit:"company",rows:["company.name","company.website","company.contactName","company.contactEmail"]},{id:"authentication",title:"Authentication",edit:"authentication",rows:[],flat:!0},{id:"dataHandling",title:"Data handling",edit:"dataHandling",rows:["dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored"]},{id:"testLaunch",title:"Test & launch",edit:"testLaunch",rows:["testLaunch.instructions","testLaunch.selfTested"]},{id:"compliance",title:"Compliance",edit:"compliance",rows:["compliance.acknowledgments","compliance.additionalNotes"]}]}}},jk=JSON.parse(`{"connection.serverUrl":{"label":"Server URL","helper":"Servers already in the directory aren’t shown.","errors":{"required":"This field is required"}},"connection.differentUrls":{"label":"Users connect to different URLs","helper":"Leave this unchecked if every user connects to the same server URL."},"listing.name":{"label":"Name","placeholder":"My MCP server","errors":{"required":"This field is required"}},"listing.slug":{"label":"Slug","placeholder":"my-mcp-server","helper":"Permanent after submission. Lowercase letters, numbers, and hyphens.","errors":{"required":"Slug is required"}},"listing.oneLiner":{"label":"One-liner","placeholder":"A short tagline for your MCP server","errors":{"required":"This field is required"}},"listing.description":{"label":"Description","placeholder":"Describe what your MCP server does and its key features…","errors":{"required":"This field is required"}},"listing.categories":{"label":"Categories","placeholder":"Select categories","helper":"Categories are used to filter MCP servers in the directory. Select up to 5.","errors":{"required":"Select at least one category"}},"listing.authorName":{"label":"Author name","reviewLabel":"Author","placeholder":"Acme Inc.","helper":"Shown as “by …” on the listing.","errors":{"required":"An author is required to submit — add one on the Listing step, or fill in your company name and an https:// website to use those"}},"listing.authorUrl":{"label":"Author URL","placeholder":"https://example.com","helper":"If left blank, these default to your company name and website."},"listing.iconUrl":{"label":"Icon","helper":"The directory and Claude show the favicon from your server’s URL; we recommend leaving it at that. A custom icon replaces it in the directory listing only."},"listing.documentationUrl":{"label":"Documentation","placeholder":"https://docs.example.com","helper":"Public-facing docs shown to users. IT admins often review these when deciding whether to approve an MCP server.","errors":{"required":"This field is required"}},"listing.enterpriseAuthDocsUrl":{"label":"Enterprise managed auth documentation","placeholder":"https://docs.example.com/setup","helper":"Setup instructions for admins configuring enterprise managed auth for this connector. Linked from the admin setup flow."},"listing.support":{"label":"Support","reviewLabel":"Support URL","placeholder":"support@example.com or https://support.example.com","helper":"A support URL or email address.","errors":{"required":"This field is required"}},"listing.privacyPolicyUrl":{"label":"Privacy policy","placeholder":"https://example.com/privacy","errors":{"required":"This field is required"}},"useCases.pairs":{"label":"Use cases","helper":"Shown to reviewers, not on your public listing.","errors":{"required":"Add at least one use case with an example prompt"}},"useCases.prerequisites":{"label":"Prerequisites","placeholder":"A paid Acme account with admin permissions","helper":"The accounts, permissions or setup a user needs before connecting. Shown to reviewers.","errors":{"required":"This field is required"}},"useCases.access":{"label":"Read/write capabilities","helper":"Based on what your tools do; we check it against their annotations.","options":[{"value":"read-only","label":"Read only","help":"Retrieves data but never modifies it"},{"value":"write-only","label":"Write only","help":"Creates or modifies data but does not read it"},{"value":"read-write","label":"Read and write","help":"Both retrieves and modifies data"}],"errors":{"required":"This field is required"}},"company.name":{"label":"Company name","errors":{"required":"This field is required"}},"company.website":{"label":"Company website","placeholder":"https://example.com","errors":{"required":"This field is required"}},"company.contactName":{"label":"Full name","reviewLabel":"Primary contact","errors":{"required":"This field is required"}},"company.contactEmail":{"label":"Email","reviewLabel":"Contact email","helper":"Prefilled from your Claude account.","errors":{"required":"This field is required"}},"company.role":{"label":"Role","placeholder":"Software Engineer"},"company.anthropicContact":{"label":"Anthropic contact","placeholder":"Name or email (optional)","helper":"If you’ve been working with someone at Anthropic, let us know who."},"authentication.requirement":{"label":"Authentication requirement","options":[{"value":"always","label":"Always required","help":"Users connect and sign in before any tools or resources are available."},{"value":"when-asked","label":"Required when the server asks","help":"Claude connects without credentials first, then prompts to sign in if the server requires it."},{"value":"none","label":"None","help":"Anyone can use this server without signing in or providing credentials."}],"errors":{"required":"This field is required"}},"authentication.oauthClient":{"label":"OAuth client","options":[{"value":"dcr","label":"Dynamic Client Registration","help":"Clients register themselves with the server (RFC 7591)"},{"value":"cimd","label":"Client ID Metadata Document","help":"The server accepts a published client metadata URL"},{"value":"anthropic-held","label":"Anthropic-held client credentials","help":"Anthropic stores one client ID used for every connection"},{"value":"bring-your-own","label":"Installers bring their own OAuth client","help":"Each organization supplies a client ID it registered with the server"}],"errors":{"required":"This field is required"}},"dataHandling.apiOwnership":{"label":"API ownership","options":[{"value":"own","label":"We own the API","help":"The MCP server calls our own production APIs"},{"value":"partner-proxy","label":"We proxy a partner’s API with permission","help":"Calls go to a third-party API we’re authorized to integrate (e.g. Zapier-style)"},{"value":"third-party","label":"Calls a third-party API we don’t control","help":"Typically blocks listing — explain in Additional notes"}],"errors":{"required":"This field is required"}},"dataHandling.healthData":{"label":"Personal health data","helper":"Does this MCP server access, process, or store personal health information?","options":[{"value":"no","label":"No"},{"value":"yes","label":"Yes"},{"value":"depends","label":"Other / depends on configuration"}],"errors":{"required":"This field is required"}},"dataHandling.sponsored":{"label":"Sponsored or promoted content","reviewLabel":"Sponsored content","helper":"Sponsored, promoted, and advertising content is prohibited in the directory. Does this MCP server surface any?","options":[{"value":"no","label":"No"},{"value":"yes","label":"Yes"},{"value":"other","label":"Other"}],"errors":{"required":"This field is required"}},"testLaunch.instructions":{"label":"Test setup instructions","placeholder":"Sign up at example.com/signup with email reviewer@anthropic.com, then connect via OAuth using client_id=...","helper":"We reserve the right to manually review all servers. Provide clear test-account setup and access instructions. We’re working to automate this process to reduce the time it takes to get your server into the directory — write these instructions so they contain every link, credential, and step needed to autonomously access the MCP server. For enterprise accounts or servers that require a fully populated account, provide test credentials that grant access to a fully populated account for review."},"testLaunch.selfTested":{"label":"I have run every tool via MCP Inspector or as a custom connector in Claude","reviewLabel":"Self-tested"},"testLaunch.identityTool":{"label":"Identity tool","placeholder":"whoami","helper":"A read-only tool on your server that returns the signed-in account. MCPJam calls it as the reviewer."},"testLaunch.identityArgs":{"label":"Identity tool arguments","placeholder":"{}","helper":"Fixed JSON arguments, if the identity tool takes any."},"testLaunch.expectedIdentityPath":{"label":"Identity path","placeholder":"$.user.email","helper":"Where the tool's result names the account, as a JSON path."},"testLaunch.expectedIdentity":{"label":"Expected reviewer","placeholder":"review@example.com","helper":"The account reviewers sign in as."},"testLaunch.expectedOrganizationPath":{"label":"Organization path","placeholder":"$.organization.name","helper":"Where the tool's result names the organization or project, as a JSON path."},"testLaunch.expectedOrganization":{"label":"Expected organization","placeholder":"Sample Org","helper":"The organization or project reviewers should land in."},"testLaunch.fixtures":{"label":"Fixtures","helper":"Resources your instructions name, each with a read-only tool call that finds it in the reviewer's account."},"compliance.acknowledgments":{"label":"Policy acknowledgements","reviewLabel":"Policies acknowledged","options":[{"value":"developer-guidelines","label":"I have read and understand the MCP Directory developer guidelines."},{"value":"first-party-apis","label":"My server calls our own first-party APIs (or APIs we legitimately proxy with permission)."},{"value":"no-financial-transfers","label":"My MCP server does not transfer money, cryptocurrency, or other financial assets on a user’s behalf."},{"value":"no-generated-media","label":"My MCP server does not use AI models to generate images, video, or audio."},{"value":"clean-tool-descriptions","label":"Tool descriptions contain no instructions about model behavior, other tools, or external instruction sources, and no hidden or encoded text."},{"value":"minimal-conversation-data","label":"My MCP server does not collect conversation data beyond what is needed for its function."},{"value":"public-docs-by-launch","label":"Public documentation for this MCP server will be live by the publish date."}],"errors":{"required":"All policy items must be acknowledged","tooFew":"All policy items must be acknowledged"}},"compliance.additionalNotes":{"label":"Additional notes","reviewLabel":"Additional information","helper":"Optional. Anything else the review team should know about your MCP server."}}`),Fk=[{step:"connection",field:"connection.serverUrl",needs:[],reads:["connection.serverUrl"],checks:["claude.endpoint.https"]},{step:"connection",field:"connection.serverUrl",needs:["server"],reads:["connection.serverUrl"],checks:["claude.endpoint.redirects-stay-https","claude.endpoint.redirects-terminate"]},{step:"tools",needs:["server"],reads:["connection.serverUrl"],checks:["claude.tools.name-length","claude.tools.title-present","claude.tools.behavior-hints-present","claude.tools.behavior-hints-consistent","claude.tools.no-catch-all-read-write","claude.tools.free-string-operation-parameter","claude.apps.resource-uri-modern","claude.apps.html-mime-profile","claude.apps.openai-only-widget","claude.apps.ui-domain-derivation","claude.apps.ui-domain-recommended-for-app-oauth","claude.apps.csp-shape","claude.apps.result-size-budget","claude.apps.instance-supersession","claude.apps.design.doctype","claude.apps.design.responsive-320","claude.apps.design.touch-targets","claude.apps.design.safe-area","claude.apps.design.theming","claude.apps.design.transparent-background","claude.apps.design.nested-scrolling","claude.apps.design.accessibility","claude.apps.design.display-mode"]},{step:"tools",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.experience.tool-descriptions-uninformative","claude.experience.tool-overlap","claude.experience.connector-purpose-unclear","claude.experience.destructive-tool-underexplained","claude.experience.app-copy-mismatched","both.decision.annotation-matches-behaviour"]},{step:"listing",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.experience.listing-copy-placeholder"]},{step:"listing",needs:[],reads:["listing.name","listing.slug","listing.oneLiner","listing.description","listing.categories","listing.authorName","company.name","company.website"],checks:["claude.submission.listing-fields"]},{step:"listing",needs:[],reads:["listing.documentationUrl","listing.privacyPolicyUrl","listing.support","listing.authorUrl","listing.iconUrl","listing.enterpriseAuthDocsUrl"],checks:["claude.submission.urls"]},{step:"listing",needs:[],reads:[],checks:["claude.submission.screenshots","claude.submission.screenshot-prompts"]},{step:"useCases",field:"useCases.access",needs:["server"],reads:["useCases.access","connection.serverUrl"],checks:["claude.submission.access-matches-annotations"]},{step:"useCases",field:"useCases.pairs",needs:[],reads:["useCases.pairs","useCases.prerequisites"],checks:["claude.submission.use-cases"]},{step:"company",needs:[],reads:["company.name","company.website","company.contactName","company.contactEmail"],checks:["claude.submission.company"]},{step:"authentication",field:"authentication.requirement",needs:[],reads:["authentication.requirement","authentication.oauthClient"],checks:["claude.submission.authentication"]},{step:"authentication",field:"authentication.requirement",needs:["server"],reads:["connection.serverUrl"],checks:["claude.auth.unauthenticated-challenge","claude.features.lazy-authentication"]},{step:"authentication",needs:["server"],reads:["connection.serverUrl"],checks:["claude.auth.challenge-names-resource-metadata","claude.auth.no-challenge-on-successful-operation","claude.auth.prm-discoverable","claude.auth.prm-resource-matches-entered-url","claude.auth.first-authorization-server-usable","claude.auth.pkce-s256-advertised","claude.auth.cimd-flag-consistent","claude.features.enterprise-managed-auth"]},{step:"authentication",field:"authentication.oauthClient",needs:["server"],reads:["connection.serverUrl","authentication.requirement","authentication.oauthClient"],checks:["claude.auth.client-acquisition-path","claude.submission.declared-auth-mode"]},{step:"authentication",needs:["server","reviewer"],reads:["connection.serverUrl"],checks:["claude.auth.rfc8707-resource-canonical","claude.auth.insufficient-scope-challenge-shape","claude.auth.access-token-audience","claude.intrusive.dynamic-registration","claude.intrusive.refresh-rotation","claude.intrusive.step-up-challenge"]},{step:"authentication",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.experience.consent-scope-unclear"]},{step:"dataHandling",needs:[],reads:["dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored"],readsConfirmation:!0,checks:["claude.submission.data-handling"]},{step:"testLaunch",field:"testLaunch.instructions",needs:[],reads:["testLaunch.instructions","authentication.requirement"],checks:["claude.submission.test-instructions"]},{step:"testLaunch",field:"testLaunch.identityTool",needs:["server","reviewer"],reads:["connection.serverUrl","testLaunch.identityTool","testLaunch.identityArgs","testLaunch.expectedIdentityPath","testLaunch.expectedIdentity","testLaunch.expectedOrganizationPath","testLaunch.expectedOrganization"],checks:["both.reviewer.identity"]},{step:"testLaunch",field:"testLaunch.fixtures",needs:["server","reviewer"],reads:["connection.serverUrl","testLaunch.fixtures","testLaunch.instructions","useCases.pairs","testLaunch.identityTool","testLaunch.identityArgs","testLaunch.expectedIdentityPath","testLaunch.expectedIdentity","testLaunch.expectedOrganizationPath","testLaunch.expectedOrganization"],checks:["both.reviewer.fixtures"]},{step:"authentication",needs:["server"],reads:["connection.serverUrl"],checks:["both.auth.client-signatures"]},{step:"compliance",field:"compliance.acknowledgments",needs:[],reads:["compliance.acknowledgments"],readsConfirmation:!0,checks:["claude.submission.attestations"]},{step:"compliance",field:"compliance.acknowledgments",needs:["server"],reads:["connection.serverUrl"],checks:["claude.scan.cross-tool-direction-candidates"]},{step:"compliance",field:"compliance.acknowledgments",needs:["server","model"],reads:["connection.serverUrl"],checks:["claude.decision.cross-tool-direction"]},{step:"review",needs:[],reads:["dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored"],checks:["claude.submission.artifact-quality"]},{step:"review",needs:[],reads:["useCases.access","dataHandling.apiOwnership","dataHandling.healthData","dataHandling.sponsored","testLaunch.selfTested","compliance.acknowledgments"],readsConfirmation:!0,checks:["claude.submission.declarations-confirmed"]},{step:"review",needs:[],reads:["connection.serverUrl","connection.differentUrls","useCases.access","company.role","company.anthropicContact","testLaunch.instructions","testLaunch.selfTested","compliance.additionalNotes"],readsConfirmation:!0,checks:["claude.submission.other-answers"]}],Hk={"runtime-compatibility":"connection","directory-policy":"tools","optional-features":"authentication","submission-artifacts":"listing","experience-insights":"tools"},Ln={title:qk,steps:zk,fields:jk,placements:Fk,laneSteps:Hk},Bk=Ln.fields,Jp=Ln.steps,un={declaration:!0},hi={format:"https-url"};function je(e,t={}){return{control:e,required:!0,...t}}function mt(e,t={}){return{control:e,...t}}var Vk={"connection.serverUrl":je("server",{format:"url"}),"connection.differentUrls":mt("checkbox"),"listing.name":je("text",{maxLength:Tt.nameMaxLength}),"listing.slug":je("text",{format:"slug"}),"listing.oneLiner":je("text",{maxLength:Tt.oneLinerMaxLength}),"listing.description":je("textarea",{maxLength:Tt.descriptionMaxLength}),"listing.categories":je("multi-select",{freeEntry:!0,minItems:Tt.categoriesMin,maxItems:Tt.categoriesMax}),"listing.authorName":je("text",{requiredOn:"review",satisfiedBy:[{key:"company.name"},{key:"company.website",format:"https-url"}]}),"listing.authorUrl":mt("text",hi),"listing.iconUrl":mt("text",hi),"listing.documentationUrl":je("text",hi),"listing.enterpriseAuthDocsUrl":mt("text",hi),"listing.support":je("text",{format:"url-or-email"}),"listing.privacyPolicyUrl":je("text",hi),"useCases.pairs":je("pairs",{pairs:{columns:["Use case","Example prompt"],keys:["useCase","examplePrompt"],placeholders:[["Look up a product","What sizes are in stock at the Portland store?"],["Compare prices","Which fall items are marked down more than 30%?"],["Draft a product listing","Create a draft listing for the canvas tote."]],maxRows:Tt.useCasesMax}}),"useCases.prerequisites":je("textarea"),"useCases.access":je("radio",{...un,default:"read-only"}),"company.name":je("text",{prefill:"organization-name"}),"company.website":je("text",{format:"url"}),"company.contactName":je("text",{prefill:"account-name"}),"company.contactEmail":je("text",{format:"email",prefill:"account-email"}),"company.role":mt("text"),"company.anthropicContact":mt("text"),"authentication.requirement":je("radio",{default:"always"}),"authentication.oauthClient":je("radio",{default:"dcr"}),"dataHandling.apiOwnership":je("radio-cards",{...un,default:"own"}),"dataHandling.healthData":je("radio",{...un,default:"no"}),"dataHandling.sponsored":je("radio",un),"testLaunch.instructions":mt("textarea"),"testLaunch.selfTested":mt("checkbox",un),"testLaunch.identityTool":mt("text",{requiredWith:["testLaunch.expectedIdentity","testLaunch.expectedOrganization"]}),"testLaunch.identityArgs":mt("text"),"testLaunch.expectedIdentityPath":mt("text",{requiredWith:["testLaunch.expectedIdentity"]}),"testLaunch.expectedIdentity":mt("text",{requiredWith:["testLaunch.expectedIdentityPath"]}),"testLaunch.expectedOrganizationPath":mt("text",{requiredWith:["testLaunch.expectedOrganization"]}),"testLaunch.expectedOrganization":mt("text",{requiredWith:["testLaunch.expectedOrganizationPath"]}),"testLaunch.fixtures":mt("pairs",{pairs:og}),"compliance.acknowledgments":je("checkbox-group",{...un,minItems:Ln.fields["compliance.acknowledgments"].options.length}),"compliance.additionalNotes":mt("textarea")},E$={id:"claude-connector",directory:"claude",title:Ln.title,version:"2026-11-13",source:{label:"Claude directory portal: Submit an MCP connector",url:"https://claude.ai/directory/manage",capturedAt:"2026-11-13"},submissionUrl:"https://claude.ai/directory/manage",steps:Object.keys(Jp).map(e=>({id:e,...Jp[e],fields:ag(e,Vk,Bk)})),placements:cg("claude-connector.json",Ln.placements),laneSteps:Ln.laneSteps};function $a(e,t){for(const r of e.steps){const s=r.fields.find(n=>n.key===t);if(s)return s}}function Gk(e){return e.steps.flatMap(t=>t.fields.flatMap(r=>r.default===void 0?[]:[{key:r.key,value:r.default}]))}function Kk(e,t){const r=new Set(t.map(s=>s.key));return[...t,...Gk(e).filter(s=>!r.has(s.key)).map(s=>({...s,origin:"default"}))]}function Jk(e,t){const r=$a(e,t);return r&&(r.wordingRevision??e.version)}function lg(e,t){if(t==null||t===!1)return!0;if(typeof t=="string")return t.trim()==="";if(!Array.isArray(t))return!1;const r=e.pairs?.keys;return r?!t.some(s=>typeof s=="object"&&r.every(n=>(s[n]??"").trim()!=="")):t.length===0}var Wk=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Yk=/^[a-z0-9-]+$/,Xk=/^[A-Z_][A-Z0-9_]{0,63}$/,Qk="Package details are read-only here; edit them in your source package.",Zk={"https-url":"Enter a full https:// URL.",url:"Enter a full URL, such as https://example.com.",email:"Enter an email address.","url-or-email":"Enter a URL or an email address.",slug:"Use only lowercase letters, numbers, and hyphens."},e0={text:"text",textarea:"text",select:"one option value","multi-select":"a list of option values",radio:"one option value","radio-cards":"one option value",checkbox:"true or false","checkbox-group":"a list of option values",pairs:"a list of rows",rows:"a list of records",server:"a server URL",secret:"the name of a project secret, such as REVIEWER_PASSWORD, never the secret itself"};function T$(e,t,r={}){const s=Kk(e,t),n=new Map(s.map(o=>[o.key,o])),i=[];for(const o of e.steps)for(const a of o.fields){const c=n.get(a.key),l=t0(e,a,c,n,r);l&&i.push(i0(e,a,l,c?.value))}for(const o of n.keys())$a(e,o)||i.push(a0(o));return i}function t0(e,t,r,s,{on:n="form",savedSecrets:i}){const o=r?.value??null,a=r0(t,o);if(a)return a;if(lg(t,o))return(t.required&&(n==="review"||t.requiredOn!=="review")||s0(e,t.requiredWith,s))&&!n0(t,s)?"required":void 0;if(typeof o=="string"){if(t.format&&!Vi(t.format,o))return"format";if(t.maxLength!==void 0&&o.length>t.maxLength)return"tooLong";if(t.control==="secret"&&i?.includes(o)===!1)return"secretUnset"}if(Array.isArray(o)){const c=dg(o)?new Set(o).size:o.length;if(c<(t.minItems??0))return"tooFew";if(t.control==="rows"&&c>(t.maxItems??1/0))return"tooMany"}if(t.declaration&&r?.origin==="confirmed"&&r.wordingRevision!==Jk(e,t.key))return"wordingChanged"}function r0(e,t){if(!(t===null||t===""))switch(e.control){case"checkbox":return typeof t=="boolean"?void 0:"wrongKind";case"multi-select":case"checkbox-group":return dg(t)?t.some(r=>!Wp(e,r))?"unknownOption":new Set(t).size>(e.maxItems??1/0)?"tooMany":void 0:"wrongKind";case"pairs":return Xp(t,e.pairs?.keys??[])?t.length>(e.pairs?.maxRows??1/0)?"tooMany":void 0:"wrongKind";case"rows":return Xp(t)?void 0:"wrongKind";case"secret":return typeof t=="string"&&Xk.test(t)?void 0:"wrongKind";case"select":case"radio":case"radio-cards":return typeof t!="string"?"wrongKind":Wp(e,t)?void 0:"unknownOption";default:return typeof t=="string"?void 0:"wrongKind"}}function Wp(e,t){return e.freeEntry===!0||(e.options??[]).some(r=>r.value===t)}function s0(e,t,r){return(t??[]).some(s=>{const n=$a(e,s);return!!(n&&!lg(n,r.get(s)?.value))})}function n0(e,t){return!!(e.satisfiedBy?.length&&e.satisfiedBy.every(({key:r,format:s})=>{const n=t.get(r)?.value;return typeof n=="string"&&n.trim()!==""&&(!s||Vi(s,n))}))}function Vi(e,t){switch(e){case"https-url":return Yp(t)==="https:";case"url":return["https:","http:"].includes(Yp(t)??"");case"email":return Wk.test(t.trim());case"url-or-email":return Vi("email",t)||Vi("url",t);case"slug":return Yk.test(t)}}function Yp(e){try{const t=new URL(e.trim());return t.hostname?t.protocol:void 0}catch{return}}function dg(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function Xp(e,t){return Array.isArray(e)&&e.every(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)&&Object.entries(r).every(([s,n])=>(!t||t.includes(s))&&typeof n=="string"))}function i0(e,t,r,s){const n=e.steps.find(i=>i.fields.includes(t));return{key:t.key,step:n?.id??"",code:r==="wrongKind"?"format":r,message:o0(e,t,r,s)}}function o0(e,t,r,s){const n=t.label.toLowerCase();switch(r){case"wrongKind":return`${t.label} takes ${e0[t.control]}.`;case"unknownOption":return`Choose one of: ${(t.options??[]).map(l=>l.value).join(", ")}.`;case"wordingChanged":return"The wording changed after this was confirmed. Read it again and confirm it.";case"managedByPackage":return Qk;case"secretUnset":return`No value is saved for the project secret ${String(s)}. Save the ${n} under that name.`}const i=t.errors[r];if(i)return i;const o=Array.isArray(s)?s.length:0,a=t.control==="checkbox-group"&&t.minItems===t.options?.length,c=t.required?void 0:t.requiredWith?.map(l=>$a(e,l)?.label)[0];switch(r){case"required":return a?`Tick all ${t.minItems} ${n} to submit.`:t.control==="rows"&&t.minItems?`Supply ${t.minItems} ${n}.`:c?`Add ${n} for the ${c.toLowerCase()} you entered.`:`${t.label} is required.`;case"format":return Zk[t.format??"url"];case"tooLong":return`Use ${t.maxLength} characters or fewer. This has ${String(s).length}.`;case"tooMany":return t.control==="rows"?`Supply at most ${t.maxItems} ${n}. There are ${o}.`:`Choose up to ${t.maxItems??t.pairs?.maxRows}.`;case"tooFew":return a?`Tick all ${t.minItems} ${n} to submit.`:t.control==="rows"?`Supply at least ${t.minItems} ${n}. There are ${o}.`:`Choose at least ${t.minItems}.`}}function a0(e){return{key:e,step:e.split(".")[0]??"",code:"unknownField",message:`This flow has no field ${e}. Read the flow for its field keys.`}}function Vd(e){return e.class==="required"||e.class==="runtime-blocker"}var A$=Object.freeze({maxQuestionsPerRun:24,maxKeyChars:200,maxNameChars:200,maxFieldChars:300,maxTextChars:2e3,maxReferences:10,maxQuoteChars:400}),c0=String.raw`(?:call|invoke|run|use|execute|trigger|poll|retry|re-?run|chain|pair|combine)`,R$=String.raw`(?:calling|using|running|invoking|executing|polling)`,l0=String.raw`(?:get|obtain|fetch|retrieve|look\s+up|find|read|take|copy|resolve|discover|check|verify|confirm|inspect|track|monitor|pass|provide|supply|send|feed|forward|hand|give|submit|${c0})`,d0=String.raw`(?:^|[,;:(\u2013\u2014]\s*|\s-\s+|\b(?:and|or|then|so|to|first|next|finally|afterwards|always|also|instead|otherwise|please|only|now|immediately)\s+)`,u0=String.raw`\b(?:must|should|shall|can|may|need\s+to|needs\s+to|have\s+to|has\s+to|be\s+sure\s+to|make\s+sure\s+to|remember\s+to|(?:do\s+not|don't)\s+forget\s+to|want\s+to)\s+(?:not\s+|also\s+|first\s+|always\s+|then\s+|still\s+)?`,I$=String.raw`(?:(?:the|a|an|this|that|it|its|tool|tools|first|also|again|only|then|always|now|before|after|with|together|alongside|along|instead|of|to|right|immediately|once|back)\s+){0,4}`,C$=String.raw`[^.;:!?,]{0,30}?`,P$=String.raw`(?:from|with|using|via|through|to|into|by\s+calling|by\s+running|returned\s+by|produced\s+by|output\s+(?:of|from)|result\s+of|response\s+(?:of|from))`,O$=String.raw`(?:before|after|once|until|prior\s+to|together\s+with|alongside|instead\s+of|in\s+place\s+of|rather\s+than)`,M$=new RegExp(`${d0}(?:${l0}|confirm|ask|wait|stop|ensure|tell|show|list|try|avoid|save|create|delete|update|refresh|compare)\\b|${u0}\\w`,"i"),qa=e=>new RegExp(`\\b(?:${e})(?:e|es|ed|ing|s)?\\b`,"i"),x$=qa("creat|add|insert|updat|edit|modif(?:y|ies|ied|ying)|chang|sav|writ|written|send|sent|post|publish|submit|submitt|upload|delet|remov|archiv|mov|renam|cancel|cancell|schedul|purchas|pay|paid|transfer|transferr|deploy|install|trigger|overwrit|overwritten"),N$=qa("get|list|read|fetch|retriev|search|find|view|show|return|quer(?:y|ies|ied|ying)|inspect|describ|count|lookup"),L$=qa("delet|remov|overwrit|overwritten|drop|dropp|destroy|eras|purg|wip|truncat|revok|replac|permanently|irreversibl"),D$=qa("creat|add|insert|append|increment|generat|send|sent|post|submit|submitt"),U$=Object.freeze({maxTools:500,maxCases:1500,maxFixtures:50,maxCleanupSteps:50,maxIdLength:200,maxPlanLength:524288,maxCalls:3e3,maxConcurrency:4,minCallTimeoutMs:1e3,maxCallTimeoutMs:12e4});function p0(e){const t=[];return Nl(e,r=>{t.push(r)}),t}function h0(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const{$fixture:t,value:r}=e;if(typeof t=="string")return{fixture:t,value:typeof r=="string"?r:""}}function Nl(e,t){const r=h0(e);return r?t(r):Array.isArray(e)?e.map(s=>Nl(s,t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([s,n])=>[s,Nl(n,t)])):e}function $$(e){const t=new Map(e.tools.map(a=>[a.tool,a])),r=a=>{const c=t.get(a.tool),l=c?.effect??"destructive";return(l==="destructive"?3:a.creates?.length?0:l==="read"?1:2)*2+(c?.openWorld===!1?0:1)},s=new Set(e.cases.flatMap(a=>a.creates??[])),n=e.cases.map((a,c)=>({testCase:a,index:c,rank:r(a),needs:p0(a.arguments).map(l=>l.fixture).filter(l=>s.has(l)&&!a.creates?.includes(l))})).sort((a,c)=>a.rank-c.rank||a.index-c.index),i=new Set,o=[];for(;n.length>0;){const a=n.findIndex(({needs:l})=>l.every(u=>i.has(u))),[c]=n.splice(Math.max(a,0),1);o.push(c.testCase);for(const l of c.testCase.creates??[])i.add(l)}return o}var m0=e=>e/2**32|0,f0=e=>e>>>0;function g0(e,t,r,s){const n=m0(r),i=f0(r);e.setUint32(t,s?i:n,s),e.setUint32(t+4,s?n:i,s)}function Qp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}var Ll=e=>e?`"${e}" `:"";function v0(e,t=""){if(typeof e!="number")throw new TypeError(Ll(t)+"expected number, got "+typeof e);if(!Number.isSafeInteger(e)||e<0)throw new RangeError(Ll(t)+"expected integer >= 0, got "+e);return e}function Gd(e,t,r=""){if(Qp(e)&&(t===void 0||e.length===t))return e;t!==void 0&&v0(t,"length");const s=Qp(e),n=t!==void 0?` of length ${t}`:"",i=s?`length=${e.length}`:`type=${typeof e}`,o=Ll(r)+"expected Uint8Array"+n+", got "+i;throw s?new RangeError(o):new TypeError(o)}var y0=(e,t)=>{if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError((t==="object"?"":`"${t}" `)+"expected object, got type="+typeof e)},Zp=(e,t)=>{y0(e,t);const r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)throw new TypeError(`"${t}" expected plain object`);if(Object.hasOwn(e,"__proto__"))throw new TypeError(`"${t}.__proto__" is not allowed`)};function eh(e,t=!0){if(e.destroyed)throw new Error("hash was destroyed");if(t&&e.finished)throw new Error("digest() was already called")}function _0(e,t){Gd(e,void 0,"output");const r=t.outputLen;if(!(e.length>=r))throw new RangeError('"output" expected length >= '+r)}function Dl(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Uc(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function hr(e,t){return e<<32-t|e>>>t}var b0=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",S0=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function w0(e){if(Gd(e),b0)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=S0[e[r]];return t}function k0(e){if(typeof e!="string")throw new TypeError("string expected");const t=new TextEncoder().encode(e);try{return new Uint8Array(t)}finally{Dl(t)}}function E0(e,t,r="opts"){return Zp(e,"defaults"),t!==void 0&&Zp(t,r),Object.assign(Object.create(null),e,t)}function T0(e,t={}){if(typeof e!="function")throw new TypeError('"hashCons" expected function, got type='+typeof e);t=E0({},t,"info");const r=(n,i)=>e(i).update(n).digest(),s=e(void 0);return r.outputLen=s.outputLen,r.blockLen=s.blockLen,r.canXOF=s.canXOF,r.create=n=>e(n),Object.assign(r,t),Object.freeze(r)}var A0=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function R0(e,t,r){return e&t^~e&r}function I0(e,t,r){return e&t^e&r^t&r}var C0=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,r,s){this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=s,this.buffer=new Uint8Array(e),this.view=Uc(this.buffer)}update(e){eh(this),Gd(e);const{view:t,buffer:r,blockLen:s}=this,n=e.length;let i=!1;for(let o=0;o<n;){const a=Math.min(s-this.pos,n-o);if(a===s){const c=Uc(e);for(;s<=n-o;o+=s)this.process(c,o);i=!0;continue}r.set(o===0&&a===n?e:e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===s&&(this.process(t,0),this.pos=0,i=!0)}return this.length+=e.length,i&&this.roundClean(),this}digestInto(e){eh(this),_0(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:s,isLE:n}=this;let{pos:i}=this;t[i++]=128,t.fill(0,i),this.padOffset>s-i&&(this.process(r,0),t.fill(0)),g0(r,s-8,this.length*8,n),this.process(r,0),this.roundClean();const o=e===t?r:Uc(e),a=this.outputLen,c=a/4,l=this.get();if(a%4||c>l.length)throw new Error("invalid outputLen");for(let u=0;u<c;u++)o.setUint32(4*u,l[u],n)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneIntoMeta(e){const{buffer:t,length:r,finished:s,destroyed:n,pos:i}=this;return e.destroyed=n,e.finished=s,e.length=r,e.pos=i,i&&e.buffer.set(t),e}clone(){return this._cloneInto()}},P0=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),O0=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),es=new Uint32Array(64),M0=class extends C0{A=0;B=0;C=0;D=0;E=0;F=0;G=0;H=0;constructor(e,t){super(64,e,8,!1),this.A=t[0]|0,this.B=t[1]|0,this.C=t[2]|0,this.D=t[3]|0,this.E=t[4]|0,this.F=t[5]|0,this.G=t[6]|0,this.H=t[7]|0}get(){const{A:e,B:t,C:r,D:s,E:n,F:i,G:o,H:a}=this;return[e,t,r,s,n,i,o,a]}set(e,t,r,s,n,i,o,a){this.A=e|0,this.B=t|0,this.C=r|0,this.D=s|0,this.E=n|0,this.F=i|0,this.G=o|0,this.H=a|0}_cloneInto(e){return(e||=new this.constructor).set(...this.get()),this._cloneIntoMeta(e)}process(e,t){for(let u=0;u<16;u++,t+=4)es[u]=e.getUint32(t,!1);for(let u=16;u<64;u++){const d=es[u-15],h=es[u-2],g=hr(d,7)^hr(d,18)^d>>>3,y=hr(h,17)^hr(h,19)^h>>>10;es[u]=y+es[u-7]+g+es[u-16]|0}let{A:r,B:s,C:n,D:i,E:o,F:a,G:c,H:l}=this;for(let u=0;u<64;u++){const d=hr(o,6)^hr(o,11)^hr(o,25),h=l+d+R0(o,a,c)+O0[u]+es[u]|0,g=(hr(r,2)^hr(r,13)^hr(r,22))+I0(r,s,n)|0;l=c,c=a,a=o,o=i+h|0,i=n,n=s,s=r,r=h+g|0}r=r+this.A|0,s=s+this.B|0,n=n+this.C|0,i=i+this.D|0,o=o+this.E|0,a=a+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(r,s,n,i,o,a,c,l)}roundClean(){Dl(es)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Dl(this.buffer)}},x0=class extends M0{constructor(){super(32,P0)}},N0=T0(()=>new x0,A0(1));function $c(e,t,r){const s=new Map(e.map(i=>[r(i),i])),n=new Map(t.map(i=>[r(i),i]));return{added:[...n.keys()].filter(i=>!s.has(i)).sort(),removed:[...s.keys()].filter(i=>!n.has(i)).sort(),changed:[...s.keys()].filter(i=>n.has(i)&&cr(s.get(i))!==cr(n.get(i))).sort()}}function ug(e,t,r=""){if(Object.is(e,t))return[];const s=n=>typeof n=="object"&&n!==null&&!Array.isArray(n);return s(e)&&s(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].sort().flatMap(n=>ug(e[n],t[n],r?`${r}.${n}`:n)):cr(e)===cr(t)?[]:[r]}function L0(e,t){if(e.directory!==t.directory)throw new Error("Choose revisions from the same directory.");const r=$c(e.server.tools,t.server.tools,I=>I.name),s=new Map(e.server.tools.map(I=>[I.name,I])),n=new Map(t.server.tools.map(I=>[I.name,I])),i=r.changed.map(I=>({name:I,paths:ug(s.get(I),n.get(I))})),o=$c(e.cases,t.cases,I=>I.id),a=[...o.added,...o.changed,...o.removed],c=new Set([...r.added,...r.removed,...r.changed]),l=e.server.url!==t.server.url,u=e.server.authentication!==t.server.authentication||e.server.connectionFingerprint!==t.server.connectionFingerprint,d={...e.plugin?.files,...e.icon&&{[e.icon.path]:e.icon.digest}},h={...t.plugin?.files,...t.icon&&{[t.icon.path]:t.icon.digest}},g=[...new Set([...Object.keys(d),...Object.keys(h)])].filter(I=>d[I]!==h[I]).sort(),y=Object.keys(t.listing).filter(I=>cr(e.listing[I])!==cr(t.listing[I])),m=$c(e.directoryAnswers??[],t.directoryAnswers??[],I=>I.key),k=t.cases.filter(I=>l||u||a.includes(I.id)||I.tools.some(z=>c.has(z))).map(I=>I.id),M=e.evidence.reviewer?.toolName;return{tools:r,toolFields:i,authenticationChanged:u,endpointChanged:l,listingFields:[...y,...m.added,...m.changed,...m.removed],changedCases:a,rerunCases:k,skills:g.filter(I=>I.startsWith("skills/")),assets:g.filter(I=>I.startsWith("assets/")),rerunReviewer:u||l||!!(M&&c.has(M)),packageChanged:t.directory==="openai"&&(l||e.server.authentication!==t.server.authentication||g.length>0||y.some(I=>I!=="reviewerInstructions")||a.length>0)}}function qc(e){try{const t=new URL(e);return t.protocol==="https:"&&!t.username&&!t.password&&!t.hash&&![...t.searchParams.keys()].some(r=>/token|password|secret|api.?key|signature|^sig$|authorization|^code$/i.test(r))}catch{return!1}}function D0(e){const t=/^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(e);if(!(!t||!Number.isSafeInteger(Number(t[3])+1)))return`${t[1]}.${t[2]}.${Number(t[3])+1}`}function U0(e,t,r=new Set){const s=L0(e,t),n={...t.evidence},i={...e.staleRuns};if(s.rerunReviewer&&e.evidence.reviewer&&(i.reviewer=e.evidence.reviewer.runId),n.reviewer&&i.reviewer===n.reviewer.runId&&delete n.reviewer,n.video&&n.video.url!==t.listing.demoUrl&&delete n.video,n.caseResults){for(const c of e.evidence.caseResults??[])s.rerunCases.includes(c.caseId)&&(i[`case:${c.caseId}`]=c.runId);n.caseResults=n.caseResults.filter(c=>i[`case:${c.caseId}`]!==c.runId)}const o=new Set(Object.entries(i).filter(([c])=>c==="reviewer"||c.startsWith("case:")).map(([,c])=>c));n.media=n.media.filter(c=>!c.runId||!o.has(c.runId));const a=new Set([...s.tools.changed,...s.tools.removed,...s.tools.added]);return n.checks=n.checks.map(c=>{const l=e.evidence.checks.find(h=>h.id===c.id),u=s.endpointChanged||s.authenticationChanged||c.toolNames?.some(h=>a.has(h))||c.id==="directory.requirements"&&(s.packageChanged||s.listingFields.length>0||a.size>0),d=`check:${c.id}`;return!c.runId&&r.has(c.id)?(delete i[d],c):(u&&l&&(i[d]=l.runId??""),Object.hasOwn(i,d)&&i[d]===(c.runId??"")?{...c,status:"unverified",observation:"The inputs changed since this check ran.",nextAction:"Rerun this check for the current draft."}:c)}),{...t,evidence:n,staleRuns:Object.keys(i).length?i:void 0}}function q$(e,t){const r=new Set(e.editedFields),s={...e.listing};for(const i of Object.keys(e.listing)){const o=t.listing?.[i];o!==void 0&&(cr(o)!==cr(s[i])||i==="countries"&&!r.has(i)&&!e.plugin?.listing.countries)&&(Object.assign(s,{[i]:o}),r.add(i))}t.cases&&cr(t.cases)!==cr(e.cases)&&r.add("cases");const n=[...r].some(i=>i!=="reviewerInstructions");if(e.plugin&&n&&!r.has("version")&&s.version===e.plugin.version){const i=D0(e.plugin.version);i&&(s.version=i,r.add("version"))}return U0(e,{...e,listing:s,cases:t.cases??e.cases,editedFields:[...r].sort()})}function z$(e){const{listing:t,cases:r,evidence:s,server:n}=e,i=[];function o(d,h,g){i.push({id:d,status:"unverified",observation:h,nextAction:g})}for(const d of["displayName","description","publisher"])t[d].trim()||o(`listing.${d}`,`Missing ${d}.`,"Fill in the listing details.");for(const d of["websiteUrl","supportUrl","privacyUrl",...e.directory==="openai"?["termsUrl"]:[]]){if(e.directory==="claude"&&(d==="supportUrl"||d==="websiteUrl")){const h=t[d].trim();!(d==="supportUrl"&&!h.includes("/")&&Vi("email",h))&&!qc(h.replace(/^http:/i,"https:"))&&o(`listing.${d}`,d==="supportUrl"?"Missing a support URL or email address.":"Missing a public company website.",d==="supportUrl"?"Enter the publisher's support URL or email address.":"Enter the publisher's website URL.");continue}qc(t[d])||o(`listing.${d}`,`Missing a public HTTPS ${d}.`,"Add the publisher's own link.")}if(e.plugin&&Object.keys(e.plugin.servers).length>0&&!Object.values(e.plugin.servers).includes(n.url)&&i.push({id:"server.package-match",status:"failed",observation:"The selected server does not match this plugin version.",nextAction:"Choose the MCP endpoint declared in the imported package."}),n.tools.length===0&&o("server.tools","No tools were discovered with this connection.","Connect the server and repeat tool discovery."),e.directory==="openai"){t.iconPath||o("listing.icon","No plugin icon selected.","Choose the icon to include in the plugin ZIP."),!t.countries.length&&!e.editedFields.includes("countries")&&!e.plugin?.listing.countries&&o("publication.countries","Country availability has not been confirmed.","Choose the countries or explicitly confirm worldwide availability.");for(const[h,g]of[["positive",Vr.successCount],["negative",Vr.failureCount]]){if(e.submissionMode==="update")continue;const y=r.filter(m=>m.kind===h&&m.prompt.trim()&&m.description.trim()&&(h==="negative"||m.expected.trim()&&m.tools.length>0&&m.tools.every(k=>n.tools.some(M=>M.name===k)))).length;y!==g&&o(`cases.${h}`,`${y} of ${g} complete ${h} cases for initial review.`,"Edit the reviewer cases and their expected results.")}const d=s.video;(!qc(t.demoUrl)||d?.url!==t.demoUrl||d.status!=="passed")&&i.push({id:"demo.playback",status:d?.url===t.demoUrl&&d.status==="failed"?"failed":"unverified",observation:d?.url===t.demoUrl?d.observation:"Signed-out playback has not been verified.",nextAction:"Host the approved recording, enter its review URL and verify signed-out playback."})}else r.some(d=>d.prompt.trim()&&d.expected.trim())||o("cases.positive","No reviewer case has an expected result.","Describe an observable result from the review workspace.");const a=n.authentication.toLowerCase();(!a||a==="unknown")&&o("server.authentication","The connection's authentication mode is unknown.","Verify the server's sign-in configuration.");const c=s.reviewer,l=["none","anonymous","public","no-auth"].includes(a),u=c&&(l?c.scope==="anonymous":c.scope==="organization"||c.scope==="account");(!c?.runId||c.status!=="passed"||!u||!n.tools.some(d=>d.name===c.toolName&&d.annotations?.readOnlyHint===!0))&&i.push({id:"reviewer.access",status:c?.status==="failed"?"failed":"unverified",observation:c?.observation||"The reviewer workflow has no current proof.",nextAction:"Rehearse from a signed-out emulator with a read-only tool and a recognizable result."}),s.checks.some(d=>d.id==="directory.requirements")||o("directory.requirements","Required directory fields and checks have not been assessed.","Run directory checks on this draft.");for(const d of s.checks)d.status!=="passed"&&d.required!==!1&&i.push({id:d.id,status:d.status,observation:d.observation,nextAction:d.nextAction});return i}function $0(e){return Vd(e)}var q0=["experience"];var z0=["claude.experience.tool-descriptions-uninformative","claude.experience.tool-overlap","claude.experience.connector-purpose-unclear","claude.experience.consent-scope-unclear","claude.experience.listing-copy-placeholder","claude.experience.destructive-tool-underexplained","claude.experience.app-copy-mismatched"],j$=Object.freeze({readinessKind:"claude-directory-readiness",observationKinds:q0,knownIds:z0,schemaVersion:"1"}),j0=[{id:"claude.experience.tool-descriptions-uninformative",title:"Tool descriptions may not tell Claude when to use the tool",lane:"experience-insights",class:"heuristic",source:os("review-criteria","§Tool quality"),remediation:"Describe when a tool should be reached for, not only what it does; Claude picks tools from these sentences."},{id:"claude.experience.tool-overlap",title:"Two or more tools may cover the same job",lane:"experience-insights",class:"heuristic",source:os("review-criteria","§Tool quality"),remediation:"Overlapping tools make selection ambiguous; consider merging them or sharpening what separates them."},{id:"claude.experience.connector-purpose-unclear",title:"What this connector is for may not be clear from its surface",lane:"experience-insights",class:"manual-review",source:os("review-criteria","§Usefulness"),remediation:"A reviewer should be able to say what the connector is for from the listing and the tool names alone."},{id:"claude.experience.consent-scope-unclear",title:"It may not be clear to a user what they are authorizing",lane:"experience-insights",class:"manual-review",source:os("authentication","§Consent"),remediation:"State which account is connected and what scope it grants, in the copy the user sees at consent time."},{id:"claude.experience.listing-copy-placeholder",title:"Listing copy may still contain placeholder text",lane:"experience-insights",class:"manual-review",source:os("submission","§Listing"),remediation:"Review the listing fields for template text before submitting; reviewers reject placeholder copy."},{id:"claude.experience.destructive-tool-underexplained",title:"A destructive tool may not explain its consequences",lane:"experience-insights",class:"manual-review",source:os("review-criteria","§Safety"),remediation:"Say plainly in the description what a destructive tool changes and whether it can be undone."},{id:"claude.experience.app-copy-mismatched",title:"An app's rendered copy may not match what its tool returns",lane:"experience-insights",class:"heuristic",source:os("mcp-apps/design-guidelines","§Content"),remediation:"A widget that says something different from the tool's text response leaves the model and the user disagreeing."}],F$=Object.freeze({experienceLane:"experience-insights",engineVersion:"1",mappings:j0}),pn={serverUrl:"serverUrl",pluginBundle:"pluginBundle",submissionProfile:"submissionProfile",draftSnapshot:"draftSnapshot",publishedSnapshot:"publishedSnapshot",toolListing:"toolListing",importedSkills:"importedSkills"},H$=Object.freeze({"skills-only":{hasMcpServer:!1,hasUploadedPackage:!0,hasImportedSkills:!1,requiredInputs:[pn.pluginBundle],summary:"a skills package with no MCP server"},"mcp-only":{hasMcpServer:!0,hasUploadedPackage:!1,hasImportedSkills:!1,requiredInputs:[pn.serverUrl],summary:"an MCP endpoint with no uploaded package"},"mcp-imported-skills":{hasMcpServer:!0,hasUploadedPackage:!1,hasImportedSkills:!0,requiredInputs:[pn.serverUrl,pn.importedSkills],summary:"an MCP endpoint whose skills are imported at scan time"},"mcp-uploaded-skills":{hasMcpServer:!0,hasUploadedPackage:!0,hasImportedSkills:!1,requiredInputs:[pn.serverUrl,pn.pluginBundle],summary:"an MCP endpoint plus an uploaded skills package"}}),B$=Object.freeze({"technical-preflight":["runtime-compatibility","directory-policy","plugin-package"],"submission-ready":["runtime-compatibility","directory-policy","plugin-package","submission-artifacts","release-contract"]});function F0(e){return typeof e=="object"&&e!==null&&e.readinessKind==="openai-directory-readiness"}var H0=["experience"];var B0=["openai.experience.tool-descriptions-uninformative","openai.experience.tool-overlap","openai.experience.naming-inconsistent","openai.experience.listing-copy-placeholder","openai.experience.listing-copy-overpromises","openai.experience.skill-overlap","openai.experience.destructive-tool-underexplained","openai.experience.auth-story-unclear"],V$=Object.freeze({readinessKind:"openai-directory-readiness",observationKinds:H0,knownIds:B0,schemaVersion:"1"}),V0=[{id:"openai.experience.tool-descriptions-uninformative",title:"Tool descriptions may not tell the model when to use the tool",lane:"experience-insights",class:"heuristic",source:ir("guides/optimize-metadata","§Tool descriptions"),remediation:"Describe when a tool should be reached for, not only what it does; the model picks tools from these sentences."},{id:"openai.experience.tool-overlap",title:"Two or more tools may cover the same job",lane:"experience-insights",class:"heuristic",source:ir("plan/tools","§Naming"),remediation:"Overlapping tools make selection ambiguous; consider merging them or sharpening the descriptions that separate them."},{id:"openai.experience.naming-inconsistent",title:"Tool names may not follow one convention",lane:"experience-insights",class:"heuristic",source:ir("plan/tools","§Naming"),remediation:"Pick one naming convention across the whole surface; mixed conventions read as two servers merged."},{id:"openai.experience.listing-copy-placeholder",title:"Listing copy may still contain placeholder text",lane:"experience-insights",class:"manual-review",source:ir("plugin-guidelines","§Listing quality"),remediation:"Review the listing fields for template text before submitting; reviewers reject placeholder copy."},{id:"openai.experience.listing-copy-overpromises",title:"Listing copy may claim capabilities the tools do not implement",lane:"experience-insights",class:"manual-review",source:ir("plugin-guidelines","§Listing quality"),remediation:"Check that every capability the listing advertises is reachable through a tool this server actually exposes."},{id:"openai.experience.skill-overlap",title:"Two or more skills may describe the same task",lane:"experience-insights",class:"heuristic",source:ir("plugin-guidelines","§Listing quality"),remediation:"Skills that overlap compete for the same trigger; separate their scopes or fold them together."},{id:"openai.experience.destructive-tool-underexplained",title:"A destructive tool may not explain its consequences",lane:"experience-insights",class:"manual-review",source:ir("plugin-guidelines","§Predictable side effects"),remediation:"Say plainly in the description what a destructive tool changes and whether it can be undone."},{id:"openai.experience.auth-story-unclear",title:"It may not be clear to a user what they are authorizing",lane:"experience-insights",class:"manual-review",source:ir("build/auth","§Consent"),remediation:"State which account is connected and what scope it grants, in the copy the user sees at consent time."}],G$=Object.freeze({experienceLane:"experience-insights",engineVersion:"2",mappings:V0}),G0=["oauth-dcr","oauth-cimd","oauth-preregistered","static-header","authless","custom-connection"],K0=["no-user-data","processes-user-data","stores-user-data","shares-with-third-parties"],J0=["ownsOrIsAuthorizedForService","accurateDataHandlingDisclosure","compliesWithUsagePolicies","noProhibitedContent","maintainsSecurityPractices","respondsToSecurityReports","keepsListingAccurate"],ko=f().url().refine(e=>e.startsWith("https://"),{message:"must be an https:// URL"}),W0=j({url:f().min(1),mimeType:f().min(1),widthPx:ye().int().positive(),heightPx:ye().int().positive(),prompt:f().min(1)}),K$=j({name:f().min(1).max(Tt.nameMaxLength),tagline:f().min(1).max(Tt.oneLinerMaxLength),description:f().min(1).max(Tt.descriptionMaxLength),categories:B(f().min(1)).min(Tt.categoriesMin).max(Tt.categoriesMax),slug:f().min(1).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"must be a lowercase kebab-case slug"),documentationUrl:ko,privacyPolicyUrl:ko,supportUrl:ko,iconUrl:ko,declaredAuthMode:ze(G0),dataHandling:B(ze(K0)).min(1),screenshots:B(W0).min(Tt.screenshotsMin).max(Tt.screenshotsMax),attestations:xe(ze(J0),me())}),Y0=zw;function kt(e){return e.rows.map(t=>{const r=t.indexOf(": "),s=t.slice(0,r),n=e.targets?.[s];return{code:s,table:e.table,stage:e.stage,severity:e.severity??(e.warnings?.includes(s)?"warning":"error"),message:t.slice(r+2),...n?.field===void 0?{}:{document:e.document},...n,source:Y0}})}var Lt={kind:"present"},Pe={kind:"nonEmpty"},zs={kind:"nonEmpty",required:!0},Gt={kind:"text"},In={kind:"text",singleLine:!0},Gi=(...e)=>({kind:"type",types:e}),Re=Gi("string"),Wr=Gi("object"),Ul=Gi("boolean"),Xe=(e,t)=>t===void 0?{kind:"length",max:e}:{kind:"length",max:e,submissionMax:t},bt=e=>({kind:"pattern",pattern:e}),pg=e=>({kind:"pattern",pattern:e,forbidden:!0}),X0=e=>({kind:"enum",values:e}),th=e=>({kind:"count",max:e}),A=(e,...t)=>t.length>0?{field:e,rules:t}:{field:e},Ae=e=>({path:e}),js="interface.displayName",ms="interface.shortDescription",Fs="interface.longDescription",gs="interface.developerName",Oi="interface.capabilities[]",$l="interface.defaultPrompt",Mi="interface.defaultPrompt[]",ra="(?:0|[1-9]\\d*)",rh=`(?:${ra}|\\d*[A-Za-z-][0-9A-Za-z-]*)`,Q0=new RegExp(`^${ra}\\.${ra}\\.${ra}(?:-${rh}(?:\\.${rh})*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$`),ql=/^#[0-9A-Fa-f]{6}$/,mi=/^https:\/\/(?!:)[^\s/?#@]+(?:[/?#]\S*)?$/i,Z0=kt({table:"ZIP upload errors and warnings",stage:"upload",document:"plugin-manifest",warnings:["plugin_version_unchanged","mcp_configuration_excluded","claude_format_normalized","manifest_normalized","developer_name_defaulted"],rows:["plugin_name_mismatch: The package name in an update must match the existing plugin name.","plugin_version_unchanged: A new release must use a different manifest `version`; reusing the published version requires confirmation.","mcp_configuration_excluded: MCP configuration is excluded unless your organization is approved for local MCP submissions. For a local MCP plugin, ask your OpenAI representative to confirm the submitting organization is allowlisted. Submit remote MCP servers through **With MCP**.","app_configuration_excluded: ZIP uploads must not include `apps` or `.app.json`. Submit remote MCP servers through **With MCP**; for local MCP servers, follow the desktop-only submission instructions.","claude_format_normalized: `.claude-plugin/plugin.json` is converted to `.codex-plugin/plugin.json`, with missing interface defaults and normalized text fields added by the portal.","manifest_normalized: The portal saves the normalized manifest as `.codex-plugin/plugin.json`; changed fields require confirmation.","developer_name_defaulted: The listing’s developer name is set automatically from your selected verified developer identity, regardless of the name in your ZIP."],targets:{plugin_name_mismatch:A("name"),plugin_version_unchanged:A("version"),claude_format_normalized:Ae(".claude-plugin/plugin.json"),manifest_normalized:Ae(".codex-plugin/plugin.json"),developer_name_defaulted:A(gs)}}),eE=kt({table:"ZIP structure and limit errors",stage:"upload",rows:["archive_empty: Archive must not be empty.","archive_too_large: Compressed ZIP must be 100 MB or less.","archive_format_not_zip: Archive must be a valid, uncorrupted ZIP file.","archive_member_path_empty: Archive entry path must not be empty.","archive_member_path_has_outer_whitespace: Archive entry path must not begin or end with whitespace.","archive_member_path_has_backslash: Archive entry path must use `/`, not backslashes.","archive_member_path_absolute: Archive entry path must be relative to the archive root.","archive_member_path_has_empty_segment: Archive entry path must not contain empty segments.","archive_member_path_has_parent_segment: Archive entry path must not contain `..` segments.","archive_member_path_too_deep: Archive entry path must contain at most 20 segments, including the filename.","archive_member_path_too_long: Archive entry path must be within the supported path-length limit.","archive_member_path_normalization_collision: Archive entry paths must remain unique after case and Unicode normalization.","archive_member_type_unsupported: Archive entries must be regular files or directories.","archive_member_too_large: Archive entry must not exceed 100 MiB.","archive_member_path_duplicate: Archive entry path must be unique.","archive_member_path_type_conflict: A file path cannot also be a directory or contain another archive entry.","archive_too_many_entries: Archive must not contain more than 5,000 entries.","archive_uncompressed_too_large: Extracted archive must not exceed 512 MiB.","archive_member_unreadable: Every archive entry must be readable, must not be encrypted, and must use supported compression."]}),tE=kt({table:"Plugin root errors",stage:"upload",rows:["plugin_root_missing: The selected path must exist and be a directory containing a plugin.","archive_plugin_files_missing: A ZIP must contain a supported plugin manifest and at least one valid skill (or an approved local MCP server).",`plugin_root_ambiguous: ${wr.plugin_root_ambiguous.message}`,`plugin_root_has_siblings: ${wr.plugin_root_has_siblings.message}`]}),zr="skills/<skill>/SKILL.md",fi="skills/<skill>/agents/openai.yaml",zc="interface.display_name",jc="interface.short_description",sh="interface.icon_small",nh="interface.icon_large",Fc="interface.brand_color",ih="interface.default_prompt",rE="policy.allow_implicit_invocation",sE=kt({table:"Skill errors",stage:"upload",document:"skill-frontmatter",rows:["skill_manifest_missing: Skill must contain a `SKILL.md` file.","skill_bundle_too_large: Each compressed skill bundle must be within the MiB limit reported in the error.","skill_directory_hidden: Skill directory names must not begin with `.`.","skill_manifest_nested: Each skill directory must be an immediate child of `skills/`.","skill_manifest_not_regular_file: `SKILL.md` must be a regular file.","skill_manifest_unreadable: `SKILL.md` must be readable.","skill_manifest_invalid_utf8: `SKILL.md` must contain valid UTF-8.","skill_frontmatter_missing: `SKILL.md` must start with YAML front matter between `---` lines.","skill_frontmatter_unclosed: `SKILL.md` YAML front matter must end with `---`.","skill_frontmatter_yaml_malformed: `SKILL.md` front matter must contain valid YAML.","skill_frontmatter_wrong_type: `SKILL.md` front matter must contain a YAML mapping.","skill_name_missing: `name` is required and must not be empty.","skill_name_wrong_type: `name` must be a string.","skill_name_empty: `name` must be non-empty.","skill_name_character_unsupported: Skill front matter `name` must use supported text.","skill_description_missing: `description` is required and must not be empty.","skill_description_wrong_type: `description` must be a string.","skill_description_empty: `description` must be non-empty.","skill_description_too_long: `description` must be 1,024 characters or fewer.","skill_description_character_unsupported: Skill front matter `description` must use supported text.","skill_body_empty: Skill instructions must not be empty.","skill_identity_too_long: The combined plugin and skill name (`plugin-name:skill-name`) must be 64 characters or fewer.","skill_identity_duplicate: Each skill `name` must be unique within the plugin."],targets:{skill_manifest_missing:Ae(zr),skill_manifest_not_regular_file:Ae(zr),skill_manifest_unreadable:Ae(zr),skill_manifest_invalid_utf8:Ae(zr),skill_frontmatter_missing:Ae(zr),skill_frontmatter_unclosed:Ae(zr),skill_frontmatter_yaml_malformed:Ae(zr),skill_frontmatter_wrong_type:Ae(zr),skill_name_missing:A("name",Lt),skill_name_wrong_type:A("name",Re),skill_name_empty:A("name",Pe),skill_name_character_unsupported:A("name",Gt),skill_description_missing:A("description",Lt),skill_description_wrong_type:A("description",Re),skill_description_empty:A("description",Pe),skill_description_too_long:A("description",Xe(1024)),skill_description_character_unsupported:A("description",Gt),skill_identity_duplicate:A("name")}}),nE=kt({table:"Skill agent metadata errors",stage:"upload",document:"skill-agent",rows:["skill_agent_not_regular_file: `agents/openai.yaml` must be a regular file.","skill_agent_unreadable: `agents/openai.yaml` must be readable.","skill_agent_invalid_utf8: `agents/openai.yaml` must contain valid UTF-8.","skill_agent_yaml_malformed: `agents/openai.yaml` must contain valid YAML.","skill_agent_top_level_wrong_type: `agents/openai.yaml` must contain a YAML mapping at the top level.","skill_agent_interface_missing: `interface` is required in `agents/openai.yaml` when that file is included.","skill_agent_interface_wrong_type: `interface` in `agents/openai.yaml` must be a YAML mapping.","skill_agent_display_name_missing: `interface.display_name` is required and must not be empty.","skill_agent_display_name_wrong_type: `interface.display_name` must be a string.","skill_agent_display_name_empty: `interface.display_name` must not be empty.","skill_agent_short_description_missing: `interface.short_description` is required and must not be empty.","skill_agent_short_description_wrong_type: `interface.short_description` must be a string.","skill_agent_short_description_empty: `interface.short_description` must not be empty.","skill_agent_icon_small_wrong_type: `interface.icon_small` must be a non-empty relative file path when provided.","skill_agent_icon_small_empty: `interface.icon_small` must be a non-empty relative file path when provided, such as `assets/icon.png`.","skill_agent_icon_large_wrong_type: `interface.icon_large` must be a non-empty relative file path when provided.","skill_agent_icon_large_empty: `interface.icon_large` must be a non-empty relative file path when provided, such as `assets/icon.png`.","skill_agent_brand_color_wrong_type: `interface.brand_color` must be a string when provided.","skill_agent_brand_color_empty: `interface.brand_color` must be a non-empty six-digit hex color when provided, such as `#1ABCFE`.","skill_agent_brand_color_format: `interface.brand_color` must be a six-digit hex color, such as `#1ABCFE`.","skill_agent_default_prompt_wrong_type: `interface.default_prompt` must be a string when provided.","skill_agent_default_prompt_empty: `interface.default_prompt` must be non-empty when provided.","skill_agent_policy_wrong_type: `policy` must be a YAML mapping when provided.","skill_agent_allow_implicit_invocation_wrong_type: `policy` may contain only `products` and `allow_implicit_invocation`. `products` must contain `CHAT`, `CODEX`, or both, and `allow_implicit_invocation` must be `true` or `false`.","skill_agent_dependencies_wrong_type: `dependencies` must be a YAML mapping; only `tools` is supported.","skill_agent_dependency_unsupported: Only `dependencies.tools` is supported in `agents/openai.yaml`."],targets:{skill_agent_not_regular_file:Ae(fi),skill_agent_unreadable:Ae(fi),skill_agent_invalid_utf8:Ae(fi),skill_agent_yaml_malformed:Ae(fi),skill_agent_top_level_wrong_type:Ae(fi),skill_agent_interface_missing:A("interface",Lt),skill_agent_interface_wrong_type:A("interface",Wr),skill_agent_display_name_missing:A(zc,Lt),skill_agent_display_name_wrong_type:A(zc,Re),skill_agent_display_name_empty:A(zc,Pe),skill_agent_short_description_missing:A(jc,Lt),skill_agent_short_description_wrong_type:A(jc,Re),skill_agent_short_description_empty:A(jc,Pe),skill_agent_icon_small_wrong_type:A(sh,Re),skill_agent_icon_small_empty:A(sh,Pe),skill_agent_icon_large_wrong_type:A(nh,Re),skill_agent_icon_large_empty:A(nh,Pe),skill_agent_brand_color_wrong_type:A(Fc,Re),skill_agent_brand_color_empty:A(Fc,Pe),skill_agent_brand_color_format:A(Fc,bt(ql)),skill_agent_default_prompt_wrong_type:A(ih,Re),skill_agent_default_prompt_empty:A(ih,Pe),skill_agent_policy_wrong_type:A("policy",Wr),skill_agent_allow_implicit_invocation_wrong_type:A(rE,Ul),skill_agent_dependencies_wrong_type:A("dependencies",Wr),skill_agent_dependency_unsupported:A("dependencies")}}),iE=kt({table:"Asset path errors",stage:"upload",rows:["declared_asset_path_wrong_type: The named asset field must be a file path string.","declared_asset_path_empty: The named asset field must not be empty.","declared_asset_path_has_outer_whitespace: The named asset field must not begin or end with whitespace.","declared_asset_path_has_control_character: The named asset field must not contain characters U+0000–U+001F or U+007F.","branding_asset_path_missing_root_prefix: The named asset field must start with `./`.","declared_asset_path_unsafe: The named asset field must be a relative path inside the plugin and must not contain an absolute path, drive prefix, or `..` traversal segment.","declared_asset_path_outside_package: The named asset field must reference a file inside the plugin.","declared_asset_file_missing: The named asset field references a file that does not exist.","declared_asset_not_regular_file: The named asset field must reference a file, not a directory or special file."]}),oE=kt({table:"Image errors",stage:"upload",document:"plugin-manifest",rows:["plugin_logo_path_missing: `interface.logo` is required and must reference a square image.","plugin_composer_icon_path_missing: `interface.composerIcon` is required and must reference a square image.","image_file_unreadable: Image file must be readable.","image_file_too_large: Image must not exceed 5 MiB.","image_file_format_unsupported: Image filename must end in `.png`, `.jpg`, `.jpeg`, `.webp`, or `.svg`.","raster_image_decode_failed: Raster image must be a PNG, JPEG, or WebP file that can be decoded safely.","raster_image_extension_content_mismatch: Image filename extension must match the detected image format.","raster_image_not_square: Image must be square.","raster_image_dimensions_too_small: Image dimensions must be at least 48×48 pixels.","raster_image_dimensions_too_large: Image dimensions must not exceed 4,096×4,096 pixels.","svg_xml_malformed: SVG must contain valid UTF-8 XML.","svg_root_element_invalid: SVG root element must be `<svg>`.","svg_dimensions_missing: SVG must define a numeric `viewBox` or numeric `width` and `height`.","svg_dimensions_not_numeric: SVG dimensions must be numeric and omit units and percentages.","svg_dimensions_not_positive: SVG width and height must be positive finite numbers.","svg_dimensions_not_square: SVG dimensions must be square.","svg_dimensions_too_small: SVG dimensions must be at least 48×48 pixels."],targets:{plugin_logo_path_missing:A("interface.logo"),plugin_composer_icon_path_missing:A("interface.composerIcon")}}),aE=kt({table:"Package warnings",stage:"upload",severity:"warning",rows:["duplicate_app_reference: Each server ID in `.app.json` must be referenced once; duplicate references are treated as one server.","undeclared_app_manifest_ignored: A root `.app.json` is imported only when the plugin-manifest `apps` field is set to `./.app.json`.","undeclared_mcp_manifest_ignored: A root `.mcp.json` is imported only when the plugin-manifest `mcpServers` field is set to `./.mcp.json`.","skill_file_ignored: Files directly under `skills/` aren't imported as skills; each skill must be in a directory containing `SKILL.md`.","skill_symlink_ignored: Symbolic links directly under `skills/` aren't imported as skills; each skill must be a real directory containing `SKILL.md`.","skill_frontmatter_adjusted: Skill `name` and `description` are normalized during import by trimming outer whitespace and collapsing internal whitespace.","skill_metadata_ignored: Skill interface settings must use the `interface` mapping in `agents/openai.yaml`; `metadata` in `SKILL.md` doesn't configure the interface."],targets:{duplicate_app_reference:Ae(".app.json"),undeclared_app_manifest_ignored:Ae(".app.json"),undeclared_mcp_manifest_ignored:Ae(".mcp.json"),skill_file_ignored:Ae("skills/"),skill_symlink_ignored:Ae("skills/"),skill_metadata_ignored:Ae(zr)}}),cE=["Productivity","Creativity","Developer Tools","Business & Operations","Data & Analytics","Communication","Education & Research","Security","Finance","Healthcare","Travel","Entertainment","Other"],Eo="interface.category",lE=X0(cE),oh="interface.capabilities",To="interface.websiteURL",Ao="interface.privacyPolicyURL",Ro="interface.termsOfServiceURL",Io="interface.supportURL",Co="interface.brandColor",Po="interface.brandColorDark",Oo=Xe(2048,1024),dE=kt({table:"Listing and interface errors",stage:"upload",document:"plugin-manifest",rows:["plugin_interface_wrong_type: The plugin manifest's `interface` field must be a JSON object.","plugin_display_name_wrong_type: `interface.displayName` must be a string.","plugin_display_name_empty: `interface.displayName` is required and must be non-empty.","plugin_display_name_too_long: `interface.displayName` must be 80 characters or fewer for package validation and 30 characters or fewer for final directory submission.","plugin_display_name_character_unsupported: `interface.displayName` must use supported text.","plugin_short_description_missing: `interface.shortDescription` is required, must fit on one line, and must be 240 characters or fewer for package validation and 30 characters or fewer for final directory submission.","plugin_short_description_wrong_type: `interface.shortDescription` must be a string.","plugin_short_description_empty: `interface.shortDescription` must be non-empty.","plugin_short_description_too_long: `interface.shortDescription` must be 240 characters or fewer for package validation and 30 characters or fewer for final directory submission.","plugin_short_description_character_unsupported: `interface.shortDescription` must use supported text.","plugin_long_description_wrong_type: `interface.longDescription` must be a string.","plugin_long_description_empty: `interface.longDescription` is required and must be non-empty.","plugin_long_description_too_long: `interface.longDescription` must be 4,000 characters or fewer.","plugin_long_description_character_unsupported: `interface.longDescription` must use supported text. Line breaks are allowed.","plugin_developer_name_wrong_type: `interface.developerName` must be a string.","plugin_developer_name_empty: `interface.developerName` is required and must be non-empty.","plugin_developer_name_too_long: `interface.developerName` must be 120 characters or fewer for package validation and 80 characters or fewer for final directory submission.","plugin_developer_name_character_unsupported: `interface.developerName` must use supported text.","plugin_category_wrong_type: `interface.category` must be a string.","plugin_category_empty: `interface.category` must be non-empty when provided; omit it to use `Other`.","plugin_category_unknown: `interface.category` must be `Productivity`, `Creativity`, `Developer Tools`, `Business & Operations`, `Data & Analytics`, `Communication`, `Education & Research`, `Security`, `Finance`, `Healthcare`, `Travel`, `Entertainment`, or `Other`.","plugin_category_character_unsupported: `interface.category` must use supported text.","plugin_capabilities_wrong_type: `interface.capabilities` must be a list of strings.","plugin_capabilities_too_many: `interface.capabilities` must contain 20 entries or fewer.","plugin_capability_wrong_type: Each `interface.capabilities` entry must be a string.","plugin_capability_empty: Each `interface.capabilities` entry must be non-empty when provided.","plugin_capability_too_long: Each `interface.capabilities` entry must be 120 characters or fewer.","plugin_capability_character_unsupported: Each `interface.capabilities` entry must use supported text.","plugin_website_url_wrong_type: `interface.websiteURL` must be a string when provided.","plugin_website_url_empty: `interface.websiteURL` must be non-empty when provided.","plugin_website_url_format: `interface.websiteURL` must be an HTTPS URL.","plugin_website_url_too_long: `interface.websiteURL` must meet the listing URL length limits.","plugin_privacy_policy_url_wrong_type: `interface.privacyPolicyURL` must be a string when provided.","plugin_privacy_policy_url_empty: `interface.privacyPolicyURL` must be non-empty when provided.","plugin_privacy_policy_url_format: `interface.privacyPolicyURL` must be an HTTPS URL.","plugin_privacy_policy_url_too_long: `interface.privacyPolicyURL` must meet the listing URL length limits.","plugin_terms_of_service_url_wrong_type: `interface.termsOfServiceURL` must be a string when provided.","plugin_terms_of_service_url_empty: `interface.termsOfServiceURL` must be non-empty when provided.","plugin_terms_of_service_url_format: `interface.termsOfServiceURL` must be an HTTPS URL.","plugin_terms_of_service_url_too_long: `interface.termsOfServiceURL` must meet the listing URL length limits.","plugin_support_url_wrong_type: `interface.supportURL` must be a string when provided.","plugin_support_url_empty: `interface.supportURL` must be non-empty when provided.","plugin_support_url_format: `interface.supportURL` must be an HTTPS URL.","plugin_support_url_too_long: `interface.supportURL` must meet the listing URL length limits.","plugin_homepage_wrong_type: `homepage` must be a string when provided.","plugin_homepage_empty: `homepage` must be non-empty when provided.","plugin_homepage_format: `homepage` must be an HTTPS URL.","plugin_homepage_too_long: `homepage` must be 2,048 characters or fewer.","plugin_brand_color_wrong_type: `interface.brandColor` must be a string when provided.","plugin_brand_color_empty: `interface.brandColor` must be non-empty when provided.","plugin_brand_color_format: `interface.brandColor` must be a six-digit hex color, such as `#1ABCFE`.","plugin_brand_color_dark_wrong_type: `interface.brandColorDark` must be a string when provided.","plugin_brand_color_dark_empty: `interface.brandColorDark` must be non-empty when provided.","plugin_brand_color_dark_format: `interface.brandColorDark` must be a six-digit hex color, such as `#1ABCFE`.","plugin_brand_color_contrast: `interface.brandColor` must have at least 2:1 contrast against white.","plugin_brand_color_dark_contrast: `interface.brandColorDark` must have at least 2:1 contrast against `#212121`.","plugin_default_prompt_wrong_type: `interface.defaultPrompt` must be a string or list of strings.","plugin_default_prompt_too_many: `interface.defaultPrompt` must contain at most three prompts.","plugin_default_prompt_entry_wrong_type: Each `interface.defaultPrompt` entry must be a string.","plugin_default_prompt_empty: Each `interface.defaultPrompt` entry must be non-empty when provided.","plugin_default_prompt_too_long: Each `interface.defaultPrompt` entry must be 512 characters or fewer for package validation and 128 characters or fewer for final directory submission.","plugin_default_prompt_character_unsupported: Each `interface.defaultPrompt` entry must use supported text and fit on one line."],targets:{plugin_interface_wrong_type:A("interface",Wr),plugin_display_name_wrong_type:A(js,Re),plugin_display_name_empty:A(js,zs),plugin_display_name_too_long:A(js,Xe(80)),plugin_display_name_character_unsupported:A(js,Gt),plugin_short_description_missing:A(ms,Lt),plugin_short_description_wrong_type:A(ms,Re),plugin_short_description_empty:A(ms,Pe),plugin_short_description_too_long:A(ms,Xe(240)),plugin_short_description_character_unsupported:A(ms,In),plugin_long_description_wrong_type:A(Fs,Re),plugin_long_description_empty:A(Fs,zs),plugin_long_description_too_long:A(Fs,Xe(4e3)),plugin_long_description_character_unsupported:A(Fs,Gt),plugin_developer_name_wrong_type:A(gs,Re),plugin_developer_name_empty:A(gs,zs),plugin_developer_name_too_long:A(gs,Xe(120)),plugin_developer_name_character_unsupported:A(gs,Gt),plugin_category_wrong_type:A(Eo,Re),plugin_category_empty:A(Eo,Pe),plugin_category_unknown:A(Eo,lE),plugin_category_character_unsupported:A(Eo,Gt),plugin_capabilities_wrong_type:A(oh,Gi("array")),plugin_capabilities_too_many:A(oh,th(20)),plugin_capability_wrong_type:A(Oi,Re),plugin_capability_empty:A(Oi,Pe),plugin_capability_too_long:A(Oi,Xe(120)),plugin_capability_character_unsupported:A(Oi,Gt),plugin_website_url_wrong_type:A(To,Re),plugin_website_url_empty:A(To,Pe),plugin_website_url_format:A(To,bt(mi)),plugin_website_url_too_long:A(To,Oo),plugin_privacy_policy_url_wrong_type:A(Ao,Re),plugin_privacy_policy_url_empty:A(Ao,Pe),plugin_privacy_policy_url_format:A(Ao,bt(mi)),plugin_privacy_policy_url_too_long:A(Ao,Oo),plugin_terms_of_service_url_wrong_type:A(Ro,Re),plugin_terms_of_service_url_empty:A(Ro,Pe),plugin_terms_of_service_url_format:A(Ro,bt(mi)),plugin_terms_of_service_url_too_long:A(Ro,Oo),plugin_support_url_wrong_type:A(Io,Re),plugin_support_url_empty:A(Io,Pe),plugin_support_url_format:A(Io,bt(mi)),plugin_support_url_too_long:A(Io,Oo),plugin_homepage_wrong_type:A("homepage",Re),plugin_homepage_empty:A("homepage",Pe),plugin_homepage_format:A("homepage",bt(mi)),plugin_homepage_too_long:A("homepage",Xe(2048)),plugin_brand_color_wrong_type:A(Co,Re),plugin_brand_color_empty:A(Co,Pe),plugin_brand_color_format:A(Co,bt(ql)),plugin_brand_color_dark_wrong_type:A(Po,Re),plugin_brand_color_dark_empty:A(Po,Pe),plugin_brand_color_dark_format:A(Po,bt(ql)),plugin_brand_color_contrast:A(Co),plugin_brand_color_dark_contrast:A(Po),plugin_default_prompt_wrong_type:A($l,Gi("string","array")),plugin_default_prompt_too_many:A($l,th(3)),plugin_default_prompt_entry_wrong_type:A(Mi,Re),plugin_default_prompt_empty:A(Mi,Pe),plugin_default_prompt_too_long:A(Mi,Xe(512,128)),plugin_default_prompt_character_unsupported:A(Mi,In)}}),uE=/^https:\/\/[^\s/?#]+(?:[/?#]\S*)?$/i,pE=pg(/^[a-z][a-z\d+.-]*:\/\/[^\s/?#]*@/i),hE=/^(?:\.\/)?skills\/?$/,mE=/^(?:\.\/)?\.app\.json$/,fE=/^(?:\.\/)?\.mcp\.json$/,gE=/^(?:asdk_app_|connector_|templated_apps_)[A-Za-z0-9][\w-]*$/,vE=kt({table:"Plugin manifest errors",stage:"upload",document:"plugin-manifest",rows:[`plugin_manifest_missing: ${wr.plugin_manifest_missing.message}`,"plugin_manifest_not_file: Plugin manifest must be a regular JSON file.","plugin_manifest_unreadable: Plugin manifest must be readable UTF-8 text.","plugin_manifest_json_malformed: Plugin manifest must contain valid JSON; malformed syntax is reported with a line number.","plugin_manifest_root_not_object: Plugin manifest must contain a JSON object at the top level.","codex_manifest_parent_not_directory: `.codex-plugin` must be a directory.","codex_manifest_path_not_file: `.codex-plugin/plugin.json` must be a regular JSON file.","plugin_id_wrong_type: `id` must be a string when provided.","plugin_id_empty: `id` must be non-empty when provided.",`plugin_name_missing: ${wr.plugin_name_missing.message}`,`plugin_name_wrong_type: ${wr.plugin_name_wrong_type.message}`,`plugin_name_empty: ${wr.plugin_name_empty.message}`,`plugin_name_too_long: ${wr.plugin_name_too_long.message}`,`plugin_name_format: ${wr.plugin_name_format.message}`,"plugin_version_missing: `version` is required.","plugin_version_wrong_type: `version` must be a string.","plugin_version_empty: `version` must be a non-empty semantic-version string, such as `1.0.0`.","plugin_version_not_semver: `version` must use semantic versioning, such as `1.0.0`.","plugin_version_too_long: `version` must be 64 characters or fewer.","plugin_description_missing: `description` is required.","plugin_description_wrong_type: `description` must be a string.","plugin_description_empty: `description` must be non-empty.","plugin_description_too_long: `description` must be 1,024 characters or fewer.","plugin_description_character_unsupported: `description` must use supported text. Line breaks are allowed.","plugin_developer_missing: `author.name` is required. `interface.developerName` is also required and is reported separately.","plugin_author_wrong_type: `author` must be an object.","plugin_author_name_wrong_type: `author.name` must be a string.","plugin_author_name_empty: `author.name` must be non-empty.","plugin_author_name_too_long: `author.name` must be 120 characters or fewer.","plugin_author_name_character_unsupported: `author.name` must use supported text.","plugin_author_email_wrong_type: `author.email` must be a string when provided.","plugin_author_email_empty: `author.email` must be non-empty when provided.","plugin_author_email_too_long: `author.email` must be 320 characters or fewer.","plugin_author_email_character_unsupported: `author.email` must use supported text.","plugin_author_url_wrong_type: `author.url` must be a string when provided.","plugin_author_url_empty: `author.url` must be non-empty when provided.","plugin_author_url_not_https: `author.url` must be an HTTPS URL.","plugin_author_url_has_credentials: `author.url` must not contain credentials.","plugin_author_url_too_long: `author.url` must be 2,048 characters or fewer.","plugin_author_url_character_unsupported: `author.url` must use supported text."],targets:{codex_manifest_parent_not_directory:Ae(".codex-plugin"),codex_manifest_path_not_file:Ae(".codex-plugin/plugin.json"),plugin_id_wrong_type:A("id",Re),plugin_id_empty:A("id",Pe),plugin_name_missing:A("name",Lt),plugin_name_wrong_type:A("name",Re),plugin_name_empty:A("name",Pe),plugin_name_too_long:A("name",Xe(64)),plugin_name_format:A("name",bt(Ff)),plugin_version_missing:A("version",Lt),plugin_version_wrong_type:A("version",Re),plugin_version_empty:A("version",Pe),plugin_version_not_semver:A("version",bt(Q0)),plugin_version_too_long:A("version",Xe(64)),plugin_description_missing:A("description",Lt),plugin_description_wrong_type:A("description",Re),plugin_description_empty:A("description",Pe),plugin_description_too_long:A("description",Xe(1024)),plugin_description_character_unsupported:A("description",Gt),plugin_developer_missing:A("author.name",Lt),plugin_author_wrong_type:A("author",Wr),plugin_author_name_wrong_type:A("author.name",Re),plugin_author_name_empty:A("author.name",Pe),plugin_author_name_too_long:A("author.name",Xe(120)),plugin_author_name_character_unsupported:A("author.name",Gt),plugin_author_email_wrong_type:A("author.email",Re),plugin_author_email_empty:A("author.email",Pe),plugin_author_email_too_long:A("author.email",Xe(320)),plugin_author_email_character_unsupported:A("author.email",Gt),plugin_author_url_wrong_type:A("author.url",Re),plugin_author_url_empty:A("author.url",Pe),plugin_author_url_not_https:A("author.url",bt(uE)),plugin_author_url_has_credentials:A("author.url",pE),plugin_author_url_too_long:A("author.url",Xe(2048)),plugin_author_url_character_unsupported:A("author.url",Gt)}}),yE=kt({table:"Plugin content errors",stage:"upload",document:"plugin-manifest",rows:["plugin_skills_path_wrong_type: `skills` must be a string path for the root `skills/` directory.","plugin_skills_path_empty: `skills` must be a non-empty path to the root `skills/` directory when provided.","plugin_skills_path_unsupported: `skills` must resolve to the root `skills/` directory.","plugin_skills_directory_missing: A declared root `skills/` directory must exist.","plugin_skills_path_not_directory: Root `skills/` must be a directory when declared.","plugin_apps_path_wrong_type: `apps` must be a string path for the root `.app.json`.","plugin_apps_path_empty: `apps` must be a non-empty path to the root `.app.json` when provided.","plugin_apps_path_unsupported: `apps` must resolve to the root `.app.json`.","plugin_apps_file_missing: A declared root `.app.json` file must exist.","plugin_apps_path_not_file: Root `.app.json` must be a regular file when declared.","plugin_mcp_path_wrong_type: `mcpServers` must be a string path for the root `.mcp.json`.","plugin_mcp_path_empty: `mcpServers` must be a nonempty path. Set it to `./.mcp.json` or remove the field.","plugin_mcp_path_unsupported: `mcpServers` must resolve to the root `.mcp.json`.","plugin_mcp_file_missing: `mcpServers` declares the root `.mcp.json`, but that file doesn't exist.","plugin_mcp_path_not_file: Root `.mcp.json` must be a regular file.","plugin_runtime_surface_missing: A public submission ZIP must contain at least one valid skill (or an approved local MCP server). Local and workspace packages can also reference an eligible MCP server."],targets:{plugin_skills_path_wrong_type:A("skills",Re),plugin_skills_path_empty:A("skills",Pe),plugin_skills_path_unsupported:A("skills",bt(hE)),plugin_skills_directory_missing:Ae("skills/"),plugin_skills_path_not_directory:Ae("skills/"),plugin_apps_path_wrong_type:A("apps",Re),plugin_apps_path_empty:A("apps",Pe),plugin_apps_path_unsupported:A("apps",bt(mE)),plugin_apps_file_missing:Ae(".app.json"),plugin_apps_path_not_file:Ae(".app.json"),plugin_mcp_path_wrong_type:A("mcpServers",Re),plugin_mcp_path_empty:A("mcpServers",Pe),plugin_mcp_path_unsupported:A("mcpServers",bt(fE)),plugin_mcp_file_missing:Ae(".mcp.json"),plugin_mcp_path_not_file:Ae(".mcp.json")}}),_E=kt({table:"MCP manifest errors",stage:"upload",document:"mcp-config",rows:["mcp_manifest_unreadable: `.mcp.json` must be readable UTF-8 text.","mcp_manifest_json_malformed: `.mcp.json` must contain valid JSON; malformed syntax is reported with a line number.","mcp_manifest_wrong_type: `.mcp.json` must contain a JSON object at the top level.","mcp_servers_missing: `.mcp.json` must contain the top-level `mcpServers` field.","mcp_servers_wrong_type: `mcpServers` must be an object.","mcp_server_name_empty: Every MCP server name must contain at least one non-whitespace character.","mcp_server_wrong_type: Each `mcpServers.<server-name>` value must be an object containing that server's declaration."],targets:{mcp_manifest_unreadable:Ae(".mcp.json"),mcp_manifest_json_malformed:Ae(".mcp.json"),mcp_manifest_wrong_type:Ae(".mcp.json"),mcp_servers_missing:A("mcpServers",Lt),mcp_servers_wrong_type:A("mcpServers",Wr),mcp_server_name_empty:A("mcpServers"),mcp_server_wrong_type:A("mcpServers.*",Wr)}}),bE=kt({table:"MCP server reference errors",stage:"upload",document:"app-config",rows:["app_manifest_unreadable: `.app.json` must be readable UTF-8 text.","app_manifest_json_malformed: `.app.json` contains malformed JSON near the reported line.","app_manifest_wrong_type: `.app.json` must contain a JSON object at the top level.","app_entries_missing: `apps` is required.","app_entries_wrong_type: `apps` must be an object.","app_entry_wrong_type: Each server entry must be an object.","app_id_missing: Each server entry's `id` is required.","app_id_wrong_type: Each server entry's `id` must be a string.","app_id_format: Each server entry's `id` must begin with `asdk_app_`, `connector_`, or `templated_apps_`, followed by a letter or digit and then only letters, digits, `_`, or `-`.","app_entry_optional_wrong_type: Each server entry's `optional` value must be `true` or `false` when provided.","app_entry_required_wrong_type: Each server entry's `required` value must be `true` or `false` when provided.","app_not_eligible: A local or workspace package must reference an eligible, available MCP server. Directory submissions must use **With MCP** and submit the MCP server directly."],targets:{app_manifest_unreadable:Ae(".app.json"),app_manifest_json_malformed:Ae(".app.json"),app_manifest_wrong_type:Ae(".app.json"),app_entries_missing:A("apps",Lt),app_entries_wrong_type:A("apps",Wr),app_entry_wrong_type:A("apps.*",Wr),app_id_missing:A("apps.*.id",Lt),app_id_wrong_type:A("apps.*.id",Re),app_id_format:A("apps.*.id",bt(gE)),app_entry_optional_wrong_type:A("apps.*.optional",Ul),app_entry_required_wrong_type:A("apps.*.required",Ul)}}),SE=pg(/(?:^|\s)@\S/),wE=kt({table:"Final metadata errors",stage:"submission",document:"plugin-manifest",rows:["submission_display_name_required: Display name is required, non-empty, and single-line.","submission_display_name_too_long: Display name must be 30 characters or fewer.","submission_display_name_character_unsupported: Display name must use supported text and fit on one line.","submission_subtitle_required: Short description is required, non-empty, and single-line.","submission_subtitle_too_long: Short description must be 30 characters or fewer.","submission_subtitle_character_unsupported: Short description must use supported text and fit on one line.","submission_description_required: Long description is required and must be non-empty. Line breaks are allowed.","submission_description_too_long: Long description must be 4,000 characters or fewer.","submission_description_character_unsupported: Long description must use supported text. Line breaks are allowed.","submission_developer_name_required: Developer name is required, non-empty, and single-line.","submission_developer_name_too_long: Developer name must be 80 characters or fewer.","submission_developer_name_character_unsupported: Developer name must use supported text and fit on one line.","plugin_capability_invalid: Each capability must be non-empty, use supported text, fit on one line, and be 120 characters or fewer.","plugin_default_prompt_mention: Starter prompts must not contain MCP server `@mentions`.","plugin_default_prompt_duplicate: Starter prompts must be unique after Unicode and whitespace normalization."],targets:{submission_display_name_required:A(js,zs),submission_display_name_too_long:A(js,Xe(30)),submission_display_name_character_unsupported:A(js,In),submission_subtitle_required:A(ms,zs),submission_subtitle_too_long:A(ms,Xe(30)),submission_subtitle_character_unsupported:A(ms,In),submission_description_required:A(Fs,zs),submission_description_too_long:A(Fs,Xe(4e3)),submission_description_character_unsupported:A(Fs,Gt),submission_developer_name_required:A(gs,zs),submission_developer_name_too_long:A(gs,Xe(80)),submission_developer_name_character_unsupported:A(gs,In),plugin_capability_invalid:A(Oi,Pe,In,Xe(120)),plugin_default_prompt_mention:A(Mi,SE),plugin_default_prompt_duplicate:A($l)}}),kE=kt({table:"MCP and review errors",stage:"submission",rows:["annotations_required: Every MCP tool must set `readOnlyHint`, `openWorldHint`, and `destructiveHint` accurately.","justification_required: Every MCP tool annotation must include a justification for its read-only, open-world, or destructive behavior.","scan_required: MCP tools must have a successful, current scan of the production MCP server.","domain_verification_required: The exact verification token must be hosted at the generated `/.well-known/openai-apps-challenge` URL on the MCP host or an allowed parent host, and **Verify Domain** must pass.","frame_domain_explanation_required: Every external frame domain reported by the MCP tool scan must have an explanation of why the UI needs it and what content it provides."]}),hg=[...wE,...kE,...Z0,...eE,...tE,...vE,...dE,...yE,..._E,...sE,...nE,...iE,...oE,...bE,...aE],EE=hg,J$=Object.freeze(Object.fromEntries(hg.map(e=>[e.code,e]))),TE={"Final metadata errors":"listing-fields","MCP and review errors":"mcp-server","ZIP upload errors and warnings":"package-archive","ZIP structure and limit errors":"package-archive","Plugin root errors":"package-archive","Plugin manifest errors":"package-manifest","Listing and interface errors":"package-manifest","Plugin content errors":"package-manifest","MCP manifest errors":"package-manifest","Skill errors":"package-skills","Skill agent metadata errors":"package-skills","Asset path errors":"package-assets","Image errors":"package-assets","MCP server reference errors":"package-manifest","Package warnings":"package-manifest"},AE={mcp_configuration_excluded:"exclusions",app_configuration_excluded:"exclusions",skill_file_ignored:"package-skills",skill_symlink_ignored:"package-skills",skill_frontmatter_adjusted:"package-skills",skill_metadata_ignored:"package-skills"},RE=EE.map(e=>({id:e.code,category:AE[e.code]??TE[e.table],severity:e.severity==="warning"?"advisory":"blocking",message:e.message,...e.code==="plugin_name_too_long"?{limit:{name:"fieldLimits.pluginNameMaxLength",value:xt.pluginNameMaxLength}}:{},source:{...ir("deploy/submission-errors",`§${e.table}`),snapshotDate:e.source.capturedOn}})),Y=e=>ir("deploy/submission-errors",e),IE=[{id:"archive-too-large",category:"package-archive",severity:"blocking",message:"The uploaded archive exceeds the maximum compressed size.",limit:{name:"archiveLimits.maxCompressedBytes",value:ea.maxCompressedBytes},source:Y("§Shared package checks → Archive size")},{id:"archive-expands-too-large",category:"package-archive",severity:"blocking",message:"The archive's contents exceed the maximum uncompressed size when expanded.",limit:{name:"archiveLimits.maxUncompressedBytes",value:ea.maxUncompressedBytes},source:Y("§Shared package checks → Archive size")},{id:"archive-too-many-entries",category:"package-archive",severity:"blocking",message:"The archive contains more entries than the maximum allowed.",limit:{name:"archiveLimits.maxEntries",value:ea.maxEntries},source:Y("§Shared package checks → Entry count")},{id:"archive-encrypted-entry",category:"package-archive",severity:"blocking",message:"The archive contains an encrypted entry, which cannot be scanned.",source:Y("§Shared package checks → Archive integrity")},{id:"archive-path-traversal",category:"package-archive",severity:"blocking",message:"An entry path escapes the package root via a `..` segment.",source:Y("§Shared package checks → Entry paths")},{id:"archive-absolute-path",category:"package-archive",severity:"blocking",message:"An entry path is absolute rather than package-relative.",source:Y("§Shared package checks → Entry paths")},{id:"archive-backslash-path",category:"package-archive",severity:"blocking",message:"An entry path uses a backslash separator.",source:Y("§Shared package checks → Entry paths")},{id:"archive-empty-path-segment",category:"package-archive",severity:"blocking",message:"An entry path contains an empty or `.` segment.",source:Y("§Shared package checks → Entry paths")},{id:"archive-path-whitespace",category:"package-archive",severity:"blocking",message:"An entry path has leading or trailing whitespace.",source:Y("§Shared package checks → Entry paths")},{id:"archive-path-control-character",category:"package-archive",severity:"blocking",message:"An entry path contains a control character or NUL byte.",source:Y("§Shared package checks → Entry paths")},{id:"archive-duplicate-path",category:"package-archive",severity:"blocking",message:"Two entries normalize to the same path, including case-insensitive collisions.",source:Y("§Shared package checks → Entry paths")},{id:"archive-symlink-entry",category:"package-archive",severity:"blocking",message:"The archive contains a symlink or hardlink entry.",source:Y("§Shared package checks → Archive integrity")},{id:"manifest-missing",category:"package-manifest",severity:"blocking",message:"The package contains no plugin manifest.",source:Y("§Shared package checks → Manifest")},{id:"manifest-invalid-json",category:"package-manifest",severity:"blocking",message:"The plugin manifest is not valid JSON.",source:Y("§Shared package checks → Manifest")},{id:"manifest-name-missing",category:"package-manifest",severity:"blocking",message:"The manifest declares no plugin name.",source:Y("§Shared package checks → Manifest")},{id:"manifest-name-too-long",category:"package-manifest",severity:"blocking",message:"The manifest's plugin name exceeds the maximum length.",limit:{name:"fieldLimits.nameMaxLength",value:xt.nameMaxLength},source:Y("§Shared package checks → Manifest")},{id:"manifest-version-invalid",category:"package-manifest",severity:"blocking",message:"The manifest's version is not a valid semantic version.",source:Y("§Shared package checks → Manifest")},{id:"interface-display-name-missing",category:"package-manifest",severity:"blocking",message:"The OpenAI interface document declares no display name.",source:Y("§Listing fields → Interface")},{id:"interface-display-name-too-long",category:"package-manifest",severity:"blocking",message:"The interface display name exceeds the maximum length.",limit:{name:"fieldLimits.displayNameMaxLength",value:xt.displayNameMaxLength},source:Y("§Listing fields → Interface")},{id:"interface-short-description-too-long",category:"package-manifest",severity:"blocking",message:"The interface short description exceeds the maximum length.",limit:{name:"fieldLimits.shortDescriptionMaxLength",value:xt.shortDescriptionMaxLength},source:Y("§Listing fields → Interface")},{id:"interface-default-prompt-too-long",category:"package-manifest",severity:"blocking",message:"The interface default prompt exceeds the maximum length.",limit:{name:"fieldLimits.defaultPromptMaxLength",value:xt.defaultPromptMaxLength},source:Y("§Listing fields → Interface")},{id:"interface-brand-color-invalid",category:"package-manifest",severity:"blocking",message:"The brand color is not a six-digit hex value.",source:Y("§Listing fields → Interface")},{id:"interface-brand-color-low-contrast",category:"package-manifest",severity:"blocking",message:"The brand color does not meet the minimum contrast ratio against both the light and dark backgrounds.",source:Y("§Listing fields → Interface")},{id:"interface-yaml-invalid",category:"package-manifest",severity:"blocking",message:"The OpenAI interface document is not valid YAML.",source:Y("§Listing fields → Interface")},{id:"interface-unsupported-text",category:"package-manifest",severity:"blocking",message:"A text field contains control characters or Unicode line/paragraph separators.",source:Y("§Listing fields → Text")},{id:"skill-metadata-missing",category:"package-skills",severity:"blocking",message:"A skill directory contains no SKILL.md.",source:Y("§Skills → Structure")},{id:"skill-frontmatter-invalid",category:"package-skills",severity:"blocking",message:"A skill's SKILL.md frontmatter is missing or malformed.",source:Y("§Skills → Frontmatter")},{id:"skill-name-missing",category:"package-skills",severity:"blocking",message:"A skill's frontmatter declares no name.",source:Y("§Skills → Frontmatter")},{id:"skill-name-too-long",category:"package-skills",severity:"blocking",message:"A skill name exceeds the maximum length.",limit:{name:"fieldLimits.skillNameMaxLength",value:xt.skillNameMaxLength},source:Y("§Skills → Frontmatter")},{id:"skill-description-missing",category:"package-skills",severity:"blocking",message:"A skill's frontmatter declares no description.",source:Y("§Skills → Frontmatter")},{id:"skill-name-collision",category:"package-skills",severity:"blocking",message:"Two skills in the package declare the same name.",source:Y("§Skills → Structure")},{id:"asset-unsupported-type",category:"package-assets",severity:"blocking",message:"An image is not one of the accepted formats.",source:Y("§Images → Format")},{id:"asset-too-large",category:"package-assets",severity:"blocking",message:"An image exceeds the maximum file size.",limit:{name:"imageConstraints.maxBytes",value:ta.maxBytes},source:Y("§Images → Size")},{id:"asset-too-small",category:"package-assets",severity:"blocking",message:"An image is smaller than the minimum edge length.",limit:{name:"imageConstraints.minEdgePx",value:ta.minEdgePx},source:Y("§Images → Dimensions")},{id:"asset-too-big-dimensions",category:"package-assets",severity:"blocking",message:"An image exceeds the maximum edge length.",limit:{name:"imageConstraints.maxEdgePx",value:ta.maxEdgePx},source:Y("§Images → Dimensions")},{id:"asset-not-square",category:"package-assets",severity:"blocking",message:"An image is not square.",source:Y("§Images → Dimensions")},{id:"asset-undecodable",category:"package-assets",severity:"blocking",message:"An image's dimensions could not be read from its bytes.",source:Y("§Images → Format")},{id:"asset-svg-malformed",category:"package-assets",severity:"blocking",message:"An SVG is not well-formed XML or has no `svg` root element.",source:Y("§Images → SVG")},{id:"asset-svg-no-dimensions",category:"package-assets",severity:"blocking",message:"An SVG declares neither a numeric width/height pair nor a numeric viewBox.",source:Y("§Images → SVG")},{id:"asset-missing",category:"package-assets",severity:"blocking",message:"An asset referenced by the manifest is absent from the package.",source:Y("§Images → Format")},{id:"listing-category-unknown",category:"listing-fields",severity:"blocking",message:"The listing names a category outside the supported set.",source:Y("§Listing fields → Categories")},{id:"listing-description-too-long",category:"listing-fields",severity:"blocking",message:"The listing description exceeds the maximum length.",limit:{name:"fieldLimits.descriptionMaxLength",value:xt.descriptionMaxLength},source:Y("§Listing fields → Description")},{id:"listing-promotional-metadata",category:"listing-fields",severity:"blocking",message:"Listing metadata contains promotional language, pricing claims, or ranking claims.",source:Y("§Listing fields → Description")},{id:"listing-privacy-policy-missing",category:"listing-fields",severity:"blocking",message:"The listing declares no privacy policy URL.",source:Y("§Listing fields → Links")},{id:"listing-support-url-missing",category:"listing-fields",severity:"blocking",message:"The listing declares no support URL.",source:Y("§Listing fields → Links")},{id:"mcp-endpoint-not-https",category:"mcp-server",severity:"blocking",message:"The MCP endpoint is not served over HTTPS.",source:Y("§MCP tools → Endpoint")},{id:"mcp-endpoint-unreachable",category:"mcp-server",severity:"blocking",message:"The MCP endpoint could not be reached during the scan.",source:Y("§MCP tools → Endpoint")},{id:"mcp-tool-name-too-long",category:"mcp-server",severity:"blocking",message:"A tool name exceeds the maximum length.",limit:{name:"fieldLimits.toolNameMaxLength",value:xt.toolNameMaxLength},source:Y("§MCP tools → Metadata")},{id:"mcp-tool-description-missing",category:"mcp-server",severity:"blocking",message:"A tool declares no description.",source:Y("§MCP tools → Metadata")},{id:"mcp-tool-annotations-missing",category:"mcp-server",severity:"blocking",message:"A tool is missing one or more of the required annotation hints.",source:Y("§MCP tools → Annotations")},{id:"mcp-tool-schema-invalid",category:"mcp-server",severity:"blocking",message:"A tool's input or output schema is not a valid JSON Schema object.",source:Y("§MCP tools → Schemas")},{id:"mcp-domain-not-verified",category:"mcp-server",severity:"blocking",message:"The MCP server's domain has not completed domain verification.",source:Y("§MCP tools → Domain verification")},{id:"mcp-csp-domain-missing",category:"mcp-server",severity:"blocking",message:"A UI resource loads from a domain absent from the declared content security policy.",source:Y("§MCP tools → Content security policy")},{id:"mcp-ui-domain-missing",category:"mcp-server",severity:"blocking",message:"A UI resource declares no `_meta.ui.domain`.",source:Y("§MCP tools → UI resources")},{id:"mcp-ui-domain-duplicate",category:"mcp-server",severity:"blocking",message:"Two UI resources declare the same `_meta.ui.domain`.",source:Y("§MCP tools → UI resources")},{id:"mcp-ui-mime-invalid",category:"mcp-server",severity:"blocking",message:"A UI resource does not declare the plugin UI MIME profile.",source:Y("§MCP tools → UI resources")},{id:"mcp-skill-too-many",category:"mcp-skills",severity:"blocking",message:"The server advertises more importable skills than the maximum.",limit:{name:"mcpSkillLimits.maxSkills",value:$s.maxSkills},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-markdown-too-large",category:"mcp-skills",severity:"blocking",message:"An imported skill's markdown exceeds the maximum size.",limit:{name:"mcpSkillLimits.maxSkillMarkdownBytes",value:$s.maxSkillMarkdownBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-page-too-large",category:"mcp-skills",severity:"blocking",message:"An imported skill's supporting page exceeds the maximum size.",limit:{name:"mcpSkillLimits.maxPageBytes",value:$s.maxPageBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-too-many-pages",category:"mcp-skills",severity:"blocking",message:"An imported skill has more supporting pages than the maximum.",limit:{name:"mcpSkillLimits.maxPagesPerSkill",value:$s.maxPagesPerSkill},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-total-too-large",category:"mcp-skills",severity:"blocking",message:"An imported skill's total footprint exceeds the maximum.",limit:{name:"mcpSkillLimits.maxSkillTotalBytes",value:$s.maxSkillTotalBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skills-total-too-large",category:"mcp-skills",severity:"blocking",message:"The imported skills exceed the maximum combined size.",limit:{name:"mcpSkillLimits.maxImportedTotalBytes",value:$s.maxImportedTotalBytes},source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-digest-mismatch",category:"mcp-skills",severity:"blocking",message:"An imported skill's declared digest does not match the resource served for it.",source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-frontmatter-mismatch",category:"mcp-skills",severity:"blocking",message:"An imported skill's listing metadata disagrees with its SKILL.md frontmatter.",source:Y("§Skills → Imported from MCP")},{id:"mcp-skill-scan-failed",category:"mcp-skills",severity:"blocking",message:"The skill scan failed, so the draft's imported skills were not updated.",source:Y("§Skills → Imported from MCP")},{id:"review-success-tests-missing",category:"review-materials",severity:"blocking",message:"Fewer successful test cases were supplied than required.",limit:{name:"submissionTestCases.successCount",value:Vr.successCount},source:Y("§Review materials → Test cases")},{id:"review-failure-tests-missing",category:"review-materials",severity:"blocking",message:"Fewer graceful-failure test cases were supplied than required.",limit:{name:"submissionTestCases.failureCount",value:Vr.failureCount},source:Y("§Review materials → Test cases")},{id:"review-demo-credentials-missing",category:"review-materials",severity:"blocking",message:"The submission authenticates users but supplies no reviewer demo credentials.",source:Y("§Review materials → Demo access")},{id:"review-demo-recording-missing",category:"review-materials",severity:"blocking",message:"No demo recording was supplied.",source:Y("§Review materials → Demo access")},{id:"review-release-notes-missing",category:"review-materials",severity:"blocking",message:"An updated submission supplies no release notes.",source:Y("§Review materials → Release notes")},{id:"review-attestation-missing",category:"review-materials",severity:"blocking",message:"A required policy attestation was not affirmed.",source:Y("§Review materials → Attestations")},{id:"review-identity-not-verified",category:"review-materials",severity:"blocking",message:"The submitting account has not completed identity verification.",source:Y("§Review materials → Account")},{id:"review-write-permission-missing",category:"review-materials",severity:"blocking",message:"The submitting account lacks the app-write permission.",source:Y("§Review materials → Account")},{id:"review-geography-missing",category:"review-materials",severity:"blocking",message:"The submission declares no country availability.",source:Y("§Review materials → Availability")},{id:"review-annotation-justification-missing",category:"review-materials",severity:"advisory",message:"A tool annotated as destructive or open-world carries no justification for review.",source:Y("§Review materials → Test cases")},{id:"review-scan-stale",category:"review-materials",severity:"blocking",message:"The draft's scan predates the current server contract; re-run Scan Tools.",source:Y("§MCP tools → Scan")},{id:"exclusion-mcp-servers-in-skills-only",category:"exclusions",severity:"blocking",message:"A skills-only submission declares MCP servers, which that shape excludes.",source:Y("§Shared package checks → Excluded content")},{id:"exclusion-app-config-in-public-package",category:"exclusions",severity:"blocking",message:"The package contains an `.app.json`, which maps registered connections for local or workspace use and is excluded from a public submission.",source:Y("§Shared package checks → Excluded content")},{id:"exclusion-screenshots-without-ui",category:"exclusions",severity:"blocking",message:"Screenshots were supplied for a submission that renders no UI template.",source:Y("§Images → Screenshots")},{id:"exclusion-bundle-in-mcp-only",category:"exclusions",severity:"blocking",message:"An MCP-only submission supplies a package archive.",source:Y("§Shared package checks → Excluded content")},{id:"exclusion-unsupported-surface",category:"exclusions",severity:"blocking",message:"The package contains a surface the plugin directory does not support.",source:Y("§Shared package checks → Excluded content")},...RE],W$=Object.freeze(Object.fromEntries(IE.map(e=>[e.id,e]))),CE=["ownsOrIsAuthorizedForService","accurateDataDisclosure","compliesWithUsagePolicies","noProhibitedContent","maintainsSecurityPractices","respondsToSecurityReports","keepsListingAccurate"],PE=["none","account-identifiers","user-content","usage-analytics","payment-information","location","health","shared-with-third-parties"],OE=["in-submission-form","shared-out-of-band","not-required-authless"],Hc=f().url().refine(e=>e.startsWith("https://"),{message:"must be an https:// URL"}),ah=j({prompt:f().min(1),expectation:f().min(1)}),ME=j({reference:f().min(1),mimeType:f().min(1),widthPx:ye().int().positive(),heightPx:ye().int().positive(),prompt:f().min(1)}),Y$=j({name:f().min(1).max(xt.nameMaxLength),shortDescription:f().min(1).max(xt.shortDescriptionMaxLength),description:f().min(1).max(xt.descriptionMaxLength),categories:B(ze(ig)).min(1),privacyPolicyUrl:Hc,supportUrl:Hc,documentationUrl:Hc.optional(),testCases:j({successful:B(ah),gracefulFailure:B(ah)}),demoCredentials:j({provided:me(),delivery:ze(OE)}),demoRecordingProvided:me(),screenshots:B(ME).default([]),releaseNotes:f().min(1).optional(),identityVerified:me(),accountPermissions:B(f().min(1)).default([]),availableCountries:B(f().length(2)).default([]),dataResidencyEligible:me().optional(),privacyPolicyDataTypes:B(ze(PE)).default([]),annotationJustifications:xe(f(),f().min(1)).default({}),frameDomainExplanations:xe(f(),f().min(1)).default({}),domainVerificationToken:f().min(1).optional(),lastScanAt:f().datetime().optional(),hasPublishedVersion:me().optional(),attestations:If(ze(CE),me())}),X$=new TextDecoder("utf-8",{fatal:!1}),Kd=Symbol.for("yaml.alias"),zl=Symbol.for("yaml.document"),ys=Symbol.for("yaml.map"),mg=Symbol.for("yaml.pair"),Pr=Symbol.for("yaml.scalar"),Yn=Symbol.for("yaml.seq"),Qt=Symbol.for("yaml.node.type"),Xn=e=>!!e&&typeof e=="object"&&e[Qt]===Kd,to=e=>!!e&&typeof e=="object"&&e[Qt]===zl,ro=e=>!!e&&typeof e=="object"&&e[Qt]===ys,Fe=e=>!!e&&typeof e=="object"&&e[Qt]===mg,Ue=e=>!!e&&typeof e=="object"&&e[Qt]===Pr,so=e=>!!e&&typeof e=="object"&&e[Qt]===Yn;function Ve(e){if(e&&typeof e=="object")switch(e[Qt]){case ys:case Yn:return!0}return!1}function Ge(e){if(e&&typeof e=="object")switch(e[Qt]){case Kd:case ys:case Pr:case Yn:return!0}return!1}var fg=e=>(Ue(e)||Ve(e))&&!!e.anchor,Rt=Symbol("break visit"),gg=Symbol("skip children"),Ar=Symbol("remove node");function Qn(e,t){const r=vg(t);to(e)?Cn(null,e.contents,r,Object.freeze([e]))===Ar&&(e.contents=null):Cn(null,e,r,Object.freeze([]))}Qn.BREAK=Rt;Qn.SKIP=gg;Qn.REMOVE=Ar;function Cn(e,t,r,s){const n=yg(e,t,r,s);if(Ge(n)||Fe(n))return _g(e,s,n),Cn(e,n,r,s);if(typeof n!="symbol"){if(Ve(t)){s=Object.freeze(s.concat(t));for(let i=0;i<t.items.length;++i){const o=Cn(i,t.items[i],r,s);if(typeof o=="number")i=o-1;else{if(o===Rt)return Rt;o===Ar&&(t.items.splice(i,1),i-=1)}}}else if(Fe(t)){s=Object.freeze(s.concat(t));const i=Cn("key",t.key,r,s);if(i===Rt)return Rt;i===Ar&&(t.key=null);const o=Cn("value",t.value,r,s);if(o===Rt)return Rt;o===Ar&&(t.value=null)}}return n}async function Jd(e,t){const r=vg(t);to(e)?await Pn(null,e.contents,r,Object.freeze([e]))===Ar&&(e.contents=null):await Pn(null,e,r,Object.freeze([]))}Jd.BREAK=Rt;Jd.SKIP=gg;Jd.REMOVE=Ar;async function Pn(e,t,r,s){const n=await yg(e,t,r,s);if(Ge(n)||Fe(n))return _g(e,s,n),Pn(e,n,r,s);if(typeof n!="symbol"){if(Ve(t)){s=Object.freeze(s.concat(t));for(let i=0;i<t.items.length;++i){const o=await Pn(i,t.items[i],r,s);if(typeof o=="number")i=o-1;else{if(o===Rt)return Rt;o===Ar&&(t.items.splice(i,1),i-=1)}}}else if(Fe(t)){s=Object.freeze(s.concat(t));const i=await Pn("key",t.key,r,s);if(i===Rt)return Rt;i===Ar&&(t.key=null);const o=await Pn("value",t.value,r,s);if(o===Rt)return Rt;o===Ar&&(t.value=null)}}return n}function vg(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function yg(e,t,r,s){if(typeof r=="function")return r(e,t,s);if(ro(t))return r.Map?.(e,t,s);if(so(t))return r.Seq?.(e,t,s);if(Fe(t))return r.Pair?.(e,t,s);if(Ue(t))return r.Scalar?.(e,t,s);if(Xn(t))return r.Alias?.(e,t,s)}function _g(e,t,r){const s=t[t.length-1];if(Ve(s))s.items[e]=r;else if(Fe(s))e==="key"?s.key=r:s.value=r;else if(to(s))s.contents=r;else{const n=Xn(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}var xE={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},NE=e=>e.replace(/[!,[\]{}]/g,t=>xE[t]),Dn=class jr{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},jr.defaultYaml,t),this.tags=Object.assign({},jr.defaultTags,r)}clone(){const t=new jr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new jr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:jr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},jr.defaultTags)}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:jr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},jr.defaultTags),this.atNextDocument=!1);const s=t.trim().split(/[ \t]+/),n=s.shift();switch(n){case"%TAG":{if(s.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[i,o]=s;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=s;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,o),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,s,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);const i=this.tags[s];if(i)try{return i+decodeURIComponent(n)}catch(o){return r(String(o)),null}return s==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,s]of Object.entries(this.tags))if(t.startsWith(s))return r+NE(t.substring(s.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let n;if(t&&s.length>0&&Ge(t.contents)){const i={};Qn(t.contents,(o,a)=>{Ge(a)&&a.tag&&(i[a.tag]=!0)}),n=Object.keys(i)}else n=[];for(const[i,o]of s)i==="!!"&&o==="tag:yaml.org,2002:"||(!t||n.some(a=>a.startsWith(o)))&&r.push(`%TAG ${i} ${o}`);return r.join(`
2
2
  `)}};Dn.defaultYaml={explicit:!1,version:"1.2"};Dn.defaultTags={"!!":"tag:yaml.org,2002:"};function bg(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(t)}return!0}function Sg(e){const t=new Set;return Qn(e,{Value(r,s){s.anchor&&t.add(s.anchor)}}),t}function wg(e,t){for(let r=1;;++r){const s=`${e}${r}`;if(!t.has(s))return s}}function LE(e,t){const r=[],s=new Map;let n=null;return{onAnchor:i=>{r.push(i),n??(n=Sg(e));const o=wg(t,n);return n.add(o),o},setAnchors:()=>{for(const i of r){const o=s.get(i);if(typeof o=="object"&&o.anchor&&(Ue(o.node)||Ve(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:s}}function On(e,t,r,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let n=0,i=s.length;n<i;++n){const o=s[n],a=On(e,s,String(n),o);a===void 0?delete s[n]:a!==o&&(s[n]=a)}else if(s instanceof Map)for(const n of Array.from(s.keys())){const i=s.get(n),o=On(e,s,n,i);o===void 0?s.delete(n):o!==i&&s.set(n,o)}else if(s instanceof Set)for(const n of Array.from(s)){const i=On(e,s,n,n);i===void 0?s.delete(n):i!==n&&(s.delete(n),s.add(i))}else for(const[n,i]of Object.entries(s)){const o=On(e,s,n,i);o===void 0?delete s[n]:o!==i&&(s[n]=o)}return e.call(t,r,s)}function Yt(e,t,r){if(Array.isArray(e))return e.map((s,n)=>Yt(s,String(n),r));if(e&&typeof e.toJSON=="function"){if(!r||!fg(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:void 0};r.anchors.set(e,s),r.onCreate=i=>{s.res=i,delete r.onCreate};const n=e.toJSON(t,r);return r.onCreate&&r.onCreate(n),n}return typeof e=="bigint"&&!r?.keep?Number(e):e}var Wd=class{constructor(e){Object.defineProperty(this,Qt,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:s,reviver:n}={}){if(!to(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},o=Yt(this,"",i);if(typeof s=="function")for(const{count:a,res:c}of i.anchors.values())s(c,a);return typeof n=="function"?On(n,{"":o},"",o):o}},Yd=class extends Wd{constructor(e){super(Kd),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let r;t?.aliasResolveCache?r=t.aliasResolveCache:(r=[],Qn(e,{Node:(n,i)=>{(Xn(i)||fg(i))&&r.push(i)}}),t&&(t.aliasResolveCache=r));let s;for(const n of r){if(n===this)break;n.anchor===this.source&&(s=n)}if(s&&t){const{anchors:n,doc:i,maxAliasCount:o}=t;let a=n.get(s);if(a||(Yt(s,null,t),a=n.get(s)),a?.res===void 0)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=sa(i,s,n)),a.count*a.aliasCount>o))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return s}toJSON(e,t){if(!t)return{source:this.source};const r=this.resolve(t.doc,t);if(!r){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}return t.anchors.get(r).res}toString(e,t,r){const s=`*${this.source}`;if(e){if(bg(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const n=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(n)}if(e.implicitKey)return`${s} `}return s}};function sa(e,t,r){if(Xn(t)){const s=t.resolve(e),n=r&&s&&r.get(s);return n?n.count*n.aliasCount:0}else if(Ve(t)){let s=0;for(const n of t.items){const i=sa(e,n,r);i>s&&(s=i)}return s}else if(Fe(t)){const s=sa(e,t.key,r),n=sa(e,t.value,r);return Math.max(s,n)}return 1}var kg=e=>!e||typeof e!="function"&&typeof e!="object",ve=class extends Wd{constructor(e){super(Pr),this.value=e}toJSON(e,t){return t?.keep?this.value:Yt(this.value,e,t)}toString(){return String(this.value)}};ve.BLOCK_FOLDED="BLOCK_FOLDED";ve.BLOCK_LITERAL="BLOCK_LITERAL";ve.PLAIN="PLAIN";ve.QUOTE_DOUBLE="QUOTE_DOUBLE";ve.QUOTE_SINGLE="QUOTE_SINGLE";var DE="tag:yaml.org,2002:";function UE(e,t,r){if(t){const s=r.filter(i=>i.tag===t),n=s.find(i=>!i.format)??s[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find(s=>s.identify?.(e)&&!s.format)}function Ki(e,t,r){if(to(e)&&(e=e.contents),Ge(e))return e;if(Fe(e)){const d=r.schema[ys].createNode?.(r.schema,null,r);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:s,onAnchor:n,onTagObj:i,schema:o,sourceObjects:a}=r;let c;if(s&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor??(c.anchor=n(e)),new Yd(c.anchor);c={anchor:null,node:null},a.set(e,c)}t?.startsWith("!!")&&(t=DE+t.slice(2));let l=UE(e,t,o.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const d=new ve(e);return c&&(c.node=d),d}l=e instanceof Map?o[ys]:Symbol.iterator in Object(e)?o[Yn]:o[ys]}i&&(i(l),delete r.onTagObj);const u=l?.createNode?l.createNode(r.schema,e,r):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(r.schema,e,r):new ve(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function ga(e,t,r){let s=r;for(let n=t.length-1;n>=0;--n){const i=t[n];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=s,s=o}else s=new Map([[i,s]])}return Ki(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var xi=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,Eg=class extends Wd{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(r=>Ge(r)||Fe(r)?r.clone(e):r),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(xi(e))this.add(t);else{const[r,...s]=e,n=this.get(r,!0);if(Ve(n))n.addIn(s,t);else if(n===void 0&&this.schema)this.set(r,ga(this.schema,s,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const s=this.get(t,!0);if(Ve(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...s]=e,n=this.get(r,!0);return s.length===0?!t&&Ue(n)?n.value:n:Ve(n)?n.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Fe(t))return!1;const r=t.value;return r==null||e&&Ue(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const s=this.get(t,!0);return Ve(s)?s.hasIn(r):!1}setIn(e,t){const[r,...s]=e;if(s.length===0)this.set(r,t);else{const n=this.get(r,!0);if(Ve(n))n.setIn(s,t);else if(n===void 0&&this.schema)this.set(r,ga(this.schema,s,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}},$E=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Gr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Hs=(e,t,r)=>e.endsWith(`
3
3
  `)?Gr(r,t):r.includes(`
4
4
  `)?`
@@ -138,4 +138,4 @@ ${s.join(`
138
138
  `)}`}return r}function NS(e=500){const t=new Set;return(r,s)=>{if(!r||!s)return!1;const n=`${r}:${s}`;return t.has(n)?!0:(t.add(n),t.size>e&&t.delete(t.values().next().value),!1)}}function TF(e=500){const t=NS(e);return(r,s={})=>{try{if(r.tags?.source==="convex_auth_refusal")return{type:r.type,event_id:r.event_id,timestamp:r.timestamp,platform:r.platform,release:r.release,dist:r.dist,environment:r.environment,message:"Convex auth refusal diagnostic",level:"info",tags:{source:"convex_auth_refusal",auth_refusal_id:r.tags.auth_refusal_id,request_id:r.tags.request_id,convex_backend:r.tags.convex_backend},contexts:{auth_refusal:r.contexts?.auth_refusal}};const n=r.exception?.values,i=n?.find(u=>Fi(u.value??"")),o=Fi(i?.value??"");if(!o)return r;if(Pp(s.originalException)||Op(s.originalException)||Mp(s.originalException))return null;const a=xS(i.value),c=typeof r.tags?.convex_backend=="string"?r.tags.convex_backend:a.convex_backend;if(t(c,o.requestId))return null;i.value=o.safeMessage,r.message&&(r.message=o.safeMessage),r.tags={...r.tags,...a,...c?{convex_backend:c}:{}};const l=$d((typeof r.extra?.page_location=="string"?r.extra.page_location:void 0)??r.request?.url??(typeof window<"u"?window.location.href:""));r.request=l?{url:l}:void 0,r.breadcrumbs=void 0,r.extra={...typeof r.extra?.boundary=="string"?{boundary:r.extra.boundary}:{},...typeof r.extra?.componentStack=="string"?{componentStack:r.extra.componentStack}:{},...l?{page_location:l}:{}};for(const u of n??[])if(u!==i&&u.value&&(u.value=Fi(u.value)?.safeMessage??"Query failure cause"),u.stacktrace)for(const d of u.stacktrace.frames??[])delete d.vars;return r.transaction?.includes("/")&&(r.transaction=$d(`https://route.invalid${r.transaction}`)?.replace("https://route.invalid","")),r}catch{return null}}}var AF=5e3,fa=null;function RF(e=Date.now()){fa=e}function JU(e=Date.now()){if(fa===null)return!1;const t=e-fa;return t<0||t>1e4?(fa=null,!1):!0}var WU=gw((e,t)=>({status:"idle",kind:null,retryNonce:0,queriesPaused:!1,authConfirmed:!1,authEpoch:0,recoveryId:null,recoveryAt:0,pauseQueries:()=>e({queriesPaused:!0}),resumeQueries:()=>{t().authConfirmed&&e({queriesPaused:!1})},notifyFailure:r=>{if(JU()){e({status:"idle",kind:null});return}if(t().kind==="signed_out"){e({status:"failed"});return}e({status:"failed",kind:r})},retry:()=>e(r=>({status:"retrying",retryNonce:r.retryNonce+1})),clear:()=>e({status:"idle",kind:null})})),YU=/\(ref ([0-9a-f]{16})\)\s*$/,XU=/^(?:\[CONVEX [A-Z]+\([^)]*\)\]\s*)?\[Request ID: ([0-9a-f]+)\]\s*([\s\S]*)$/,QU=/\[Request ID: ([0-9a-f]+)\]/,ZU=/^\[[^\]]*\]\s*/,LS="Server Error",e$="Something went wrong",xa=400;function DS(e){if(typeof e=="string")return e;try{if(e instanceof Error)return typeof e.message=="string"?e.message:null}catch{return null}return null}function Sf(e){for(const t of e.split(`
139
139
  `)){const r=t.trim();if(r!==""){if(/^at\s/.test(r)||r==="Called by client")break;return r}}return""}function t$(e){try{if(!e||typeof e!="object"||!("data"in e))return null;const t=e.data;if(typeof t=="string"&&t.trim())return t.slice(0,xa);if(t&&typeof t=="object"&&"message"in t){const r=t.message;if(typeof r=="string"&&r.trim())return r.slice(0,xa)}}catch{return null}return null}function US(e){const t=DS(e);return t?QU.exec(t)?.[1]??null:null}function r$(e){return`(ref ${e})`}function IF(e){const t=YU.exec(e);return t?{text:e.slice(0,t.index).trim(),requestId:t[1]}:{text:e,requestId:null}}function s$(e,t){const r=US(e),s=t$(e);if(s)return{message:s,requestId:r,redacted:!1,refusal:!0};const n=DS(e);if(!n||!n.trim())return{message:t,requestId:r,redacted:!1,refusal:!1};const i=XU.exec(n);if(i){const o=i[2],a=Sf(o.startsWith(LS)?o.slice(12):o);return a?{message:a.slice(0,xa),requestId:r,redacted:!1,refusal:!1}:{message:e$,requestId:r,redacted:!0,refusal:!1}}return{message:Sf(n.replace(ZU,"")).slice(0,xa)||t,requestId:r,redacted:!1,refusal:!1}}function CF(e,t){const{message:r,requestId:s,refusal:n}=s$(e,t);return!s||n?r:`${r} ${r$(s)}`}function PF(e){if(typeof e!="object"||e===null||!("data"in e))return null;const{data:t}=e;return typeof t=="object"&&t!==null&&"code"in t&&typeof t.code=="string"?t.code:null}function n$(e){const t=typeof e?.message=="string"?e.message:"";return t.includes("Could not find public function")||t.includes("Could not find Convex client")}function OF(e,t){const r=typeof e?.message=="string"?e.message:"";return r.includes(`Q(${t})`)?n$(e)||r.includes(LS):!1}function i$(e){try{if(typeof e!="object"||e===null)return;const t=e.normalized;return SI(t)?t:void 0}catch{return}}function MF(e,t){try{if(!wf()||Pp(e)||Op(e)||Mp(e))return!1;const r=i$(e)??KI(e),s=VI(r);return s!=="mcpjam"?!1:($S(e,{...t,extra:{...t.extra??{},slug:r.slug,origin:s}}),!0)}catch{return!1}}var o$=NS();function a$(e){if(e instanceof Error)return e;try{return new Error(typeof e=="string"?e:JSON.stringify(e))}catch{return new Error(String(e))}}function $S(e,t){if(Pp(e)||Op(e)||Mp(e))return;const r=KU(a$(e)),s=xS(r.message);if(s&&t.queryBackend&&(s.convex_backend=t.queryBackend),s&&o$(s.convex_backend,s.request_id))return;const n=s&&typeof window<"u"?$d(window.location.href):void 0,i=US(e),o=i?{convex_request_id:i}:{},a=WU.getState(),c=a.recoveryId&&Date.now()-a.recoveryAt<3e5?{auth_recovery_id:a.recoveryId}:{};try{TU(r,{level:t.level??"error",tags:{...t.tags??{},source:t.source,...o,...s,...c},...t.fingerprint?{fingerprint:t.fingerprint}:{},...s?{extra:{boundary:t.extra?.boundary,componentStack:t.extra?.componentStack,page_location:n}}:t.extra?{extra:t.extra}:{}})}catch{}try{wf()&&!jS()&&uw.captureException(r,{source:t.source,level:t.level??"error",...o,...s?{...s,page_location:n}:t.extra??{}})}catch{}}function xF(e,t,r){$S(e,{source:r?`react_boundary:${r}`:"react_boundary",extra:{componentStack:t?.componentStack??void 0,boundary:r??"unnamed"}})}export{rU as $,v$ as $a,Pq as $i,lj as $n,nz as $r,rf as $t,Pa as A,rq as Aa,qq as Ai,Ap as An,E2 as Ar,Vj as At,gF as B,z$ as Ba,Nq as Bi,HD as Bn,g2 as Br,M1 as Bt,Op as C,bs as Ca,VP as Ci,bj as Cn,lp as Cr,Yj as Ct,yf as D,lu as Da,Bq as Di,BD as Dn,_z as Dr,Gj as Dt,kF as E,QA as Ea,Hq as Ei,vj as En,nM as Er,Od as Et,pF as F,Q$ as Fa,Dq as Fi,yj as Fn,gm as Fr,$j as Ft,dF as G,$$ as Ga,xq as Gi,Xm as Gn,az as Gr,Nc as Gt,uF as H,N0 as Ha,YC as Hi,pj as Hn,cz as Hr,xj as Ht,bF as I,nA as Ia,Uq as Ii,Ed as In,pz as Ir,Lj as It,lF as J,T$ as Ja,Ts as Ji,wp as Jn,ny as Jr,Oj as Jt,nU as K,U$ as Ka,ic as Ki,Cc as Kn,iz as Kr,cn as Kt,vF as L,Z$ as La,Lq as Li,Pc as Ln,hz as Lr,Dj as Lt,yF as M,iA as Ma,us as Mi,VD as Mn,yz as Mr,Fj as Mt,hF as N,Ja as Na,Zh as Ni,KD as Nn,gz as Nr,zj as Nt,SF as O,ov as Oa,Fq as Oi,fj as On,K2 as Or,Bj as Ot,TU as P,eq as Pa,wP as Pi,GD as Pn,ay as Pr,qj as Pt,sF as Q,Mf as Qa,vC as Qi,uj as Qn,PO as Qr,Cd as Qt,mF as R,sA as Ra,fP as Ri,jD as Rn,mz as Rr,Uj as Rt,Pp as S,fu as Sa,KP as Si,_j as Sn,ap as Sr,Wj as St,GU as T,WA as Ta,GP as Ti,gj as Tn,Nz as Tr,Jj as Tt,pU as U,w0 as Ua,oc as Ui,kp as Un,c2 as Ur,Mj as Ut,_F as V,q$ as Va,aP as Vi,hj as Vn,dz as Vr,Nj as Vt,TS as W,k0 as Wa,ac as Wi,dr as Wn,lz as Wr,jj as Wt,sU as X,ek as Xa,Xa as Xi,It as Xn,um as Xr,Pj as Xt,cF as Y,$a as Ya,Oq as Yi,Zb as Yn,dm as Yr,Cj as Yt,uf as Z,Pl as Za,Cq as Zi,Cr as Zn,lm as Zr,xc as Zt,TF as _,bq as _a,QP as _i,wj as _n,ka as _r,K1 as _t,PF as a,KI as aa,tz as ai,Rp as an,pw as ao,dN as ar,tU as at,xS as b,Ah as ba,rm as bi,xr as bn,Sc as br,Xj as bt,US as c,VI as ca,vO as ci,Aj as cn,tj as cr,aF as ct,IF as d,kq as da,Yq as di,ws as dn,Zz as dr,Lc as dt,Iq as ea,wO as ei,vo as en,y$ as eo,cj as er,Z1 as et,WU as f,lI as fa,Xq as fi,a1 as fn,Xz as fr,tF as ft,EF as g,wv as ga,Gq as gi,r1 as gn,cp as gr,rF as gt,RF as h,Sq as ha,Wq as hi,cs as hn,Ry as hr,Qj as ht,CF as i,Aq as ia,bO as ii,Ij as in,cr as io,nj as ir,iF as it,Ca as j,tq as ja,xP as ji,JD as jn,vz as jr,Hj as jt,wF as k,sq as ka,zq as ki,WD as kn,my as kr,Kj as kt,OF as l,Tq as la,fO as li,Rj as ln,rj as lr,yo as lt,JU as m,nI as ma,Qq as mi,Ej as mn,ip as mr,eF as mt,$S as n,ed as na,_O as ni,Mc as nn,fw as no,Bb as nr,bS as nt,s$ as o,SI as oa,SO as oi,Ip as on,uN as or,eU as ot,AF as p,wq as pa,ba as pi,kj as pn,$z as pr,Zj as pt,iU as q,Vd as qa,Mq as qi,fo as qn,$u as qr,ln as qt,MF as r,Rq as ra,rz as ri,Oc as rn,m$ as ro,ij as rr,_S as rt,r$ as s,WI as sa,ez as si,d1 as sn,sj as sr,nF as st,xF as t,ZI as ta,sz as ti,Kn as tn,gw as to,yD as tr,oF as tt,n$ as u,vu as ua,Kq as ui,Tj as un,ej as ur,Ia as ut,NS as v,bv as va,sm as vi,nS as vn,f_ as vr,W1 as vt,Mp as w,mq as wa,jq as wi,XD as wn,Lz as wr,U1 as wt,KU as x,Rr as xa,Vq as xi,Sj as xn,dp as xr,cf as xt,Fi as y,LR as ya,il as yi,Ys as yn,tp as yr,Y1 as yt,fF as z,F0 as za,uP as zi,mj as zn,fz as zr,O1 as zt};
140
140
 
141
- //# sourceMappingURL=error-reporting-CJClTLWK.js.map
141
+ //# sourceMappingURL=error-reporting-C3V1rL02.js.map