@unbrained/pm-cli 2026.8.15 → 2026.8.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +26 -9
- package/dist/cli/error-guidance.d.ts +5 -0
- package/dist/cli/error-guidance.js +15 -2
- package/dist/cli/register-history-author.js +16 -11
- package/dist/cli-bundle/bundle-manifest.json +142 -142
- package/dist/cli-bundle/chunks/{chunk-KIEGUBYQ.js → chunk-47OQEOQB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WLPDLNEZ.js → chunk-73UGEBRS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QHPCJWEJ.js → chunk-HCIYWD6M.js} +34 -34
- package/dist/cli-bundle/chunks/{chunk-J42EGKDK.js → chunk-I2LUWWR5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KLKYLSDX.js → chunk-IC5W2T34.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AIM6VT2N.js → chunk-PANOOBIS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MEM2ZS3O.js → chunk-RIS565OA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-24GAV7XL.js → chunk-TK6N7HGM.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-TOFG2URD.js +197 -0
- package/dist/cli-bundle/chunks/{chunk-LJHOAVGI.js → chunk-URW4QRMI.js} +47 -41
- package/dist/cli-bundle/chunks/{register-list-query-CT3LFDDN.js → register-list-query-EYCXHZAG.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-NWEVA5YS.js → register-mutation-7YVIG54J.js} +4 -4
- package/dist/cli-bundle/chunks/{register-operations-AHIAG5KM.js → register-operations-KGDNRMCL.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-ZJZFVAKE.js → register-setup-NVXBOD5I.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KTKH4IMG.js → chunk-4JPEBFFC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-5NMFSX26.js +155 -0
- package/dist/cli-bundle/focused-chunks/{chunk-ZMFXQ7VF.js → chunk-6ROKKT4X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-OKA6ELTL.js → chunk-725JSCMP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6XKF3PGV.js → chunk-C7JUBRFP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KLVUMNXJ.js → chunk-CODV5LUT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-DQ6SMTBF.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-HAACPSUW.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-EXZA4257.js → chunk-J4UFYHOD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7NJ4QYQ2.js → chunk-JX5Z344Q.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-PUISBOPP.js → chunk-L4RDYBIQ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-NSPYTG6G.js → chunk-NJ5RLEFD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KT5XMYSX.js → chunk-QYZERYR5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-M67F5AIN.js → chunk-SSNDYZTM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ITAUHSO6.js → chunk-T46KLOIB.js} +45 -45
- package/dist/cli-bundle/focused-chunks/{chunk-WTSER4WJ.js → chunk-TZATVC4G.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-WY3WRPVN.js +2 -0
- package/dist/cli-bundle/main.js +10 -10
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +27 -27
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +32 -32
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +2 -2
- package/dist/core/history/workspace-history.js +32 -10
- package/dist/core/output/output.js +6 -3
- package/dist/core/shared/errors.d.ts +2 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/store/item-store.js +28 -2
- package/dist/sdk/agent/refusal-reachability.d.ts +10 -2
- package/dist/sdk/agent/refusal-reachability.js +71 -3
- package/dist/sdk/author-attribution.d.ts +56 -11
- package/dist/sdk/author-attribution.js +174 -50
- package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +9 -2
- package/dist/sdk/cli-contracts/tool-schema.js +12 -4
- package/dist/sdk/completion.js +11 -4
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +38 -14
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +38 -2
- package/dist/sdk/governance/coverage-assurance.d.ts +24 -0
- package/dist/sdk/governance/coverage-assurance.js +61 -0
- package/dist/sdk/governance/extension-host-version.js +20 -9
- package/dist/sdk/index.d.ts +2 -1
- package/dist/sdk/index.js +4 -3
- package/dist/sdk/read-output-contracts.js +5 -3
- package/dist/sdk/runtime.d.ts +2 -5
- package/dist/sdk/runtime.js +3 -2
- package/docs/READ_OUTPUT_CONTRACTS.md +7 -1
- package/docs/RELEASING.md +13 -7
- package/docs/SDK_CONTEXT_INTEGRITY.md +33 -5
- package/docs/SDK_CONTEXT_TRUTH_CONTRACTS.md +13 -5
- package/marketplace.json +2 -2
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/sdk/public-surface.json +131 -16
- package/dist/cli-bundle/chunks/chunk-DSWDLTDR.js +0 -197
- package/dist/cli-bundle/focused-chunks/chunk-4X57RE4U.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-QLNMCESQ.js +0 -155
- package/dist/cli-bundle/focused-chunks/chunk-SLKC6QLJ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-U65UC4G3.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as we,b as Pe,c as Oe,d as Se,e as Ae,f as Fe,g as Re,h as Te,i as D,j as N,k as L,l as $,m as j,p as K,q as H,w as U,x as q,y as V,z}from"./focused-chunks/chunk-NSPYTG6G.js";import{a as R,b as T,c as M,d as B,u as X}from"./focused-chunks/chunk-KLVUMNXJ.js";import"./focused-chunks/chunk-4X57RE4U.js";import"./focused-chunks/chunk-KTKH4IMG.js";import"./focused-chunks/chunk-U65UC4G3.js";import{Wa as W,Ya as G,Za as Y,b as x,c as y,f as m,g,k as E,l as k,m as C,n as I,ra as A,sa as F}from"./focused-chunks/chunk-KT5XMYSX.js";import{b as Ce,c as Ie,d as be}from"./focused-chunks/chunk-OKA6ELTL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="fb438c6a-1927-54c3-98dd-dd7423df6722")}catch{}})();function $e(e){return e}function je(e){return e}function J(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,t]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,t);for(let[r,t]of Object.entries(o.flags??{}))e.registerFlags(r,t);for(let[r,t]of Object.entries(o.parsers??{}))e.registerParser(r,t);for(let[r,t]of Object.entries(o.renderers??{}))if(typeof t=="function")e.registerRenderer(r,t);else{let{run:n,...s}=t;e.registerRenderer(r,n,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function Q(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let t=o.itemFields??[];t.length>0&&e.registerItemFields(t);let n=o.relationshipKinds??[];n.length>0&&e.registerRelationshipKinds(n);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function Z(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function ee(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function re(e){let r={activate:async t=>{J(t,e),Q(t,e),Z(t,e),ee(t,e.hooks??{}),await e.activate?.(t)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function oe(e){let o={};for(let r of e)for(let[t,n]of Object.entries(r??{}))o[t]=[...o[t]??[],...n];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ne(e,o,r){let t=o.map(s=>s?.[r]),n=f(t);if(n!==void 0){let s=e;s[r]=n}}function ie(e){let o={};for(let r of te)ne(o,e,r);return Object.keys(o).length>0?o:void 0}function Ke(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",p(e.map(i=>i.commandOverrides))),r("flags",oe(e.map(i=>i.flags))),r("parsers",p(e.map(i=>i.parsers))),r("renderers",p(e.map(i=>i.renderers))),r("services",p(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("assuranceProviders",f(e.map(i=>i.assuranceProviders))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",ie(e.map(i=>i.hooks)));let t;for(let i of e)i.manifest&&(t=i.manifest);r("manifest",t);let n=e.some(i=>i.activate);r("activate",n?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(d){i.push(d)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var se=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[n,s]of se)u(e[n])&&o.add(s);(e.commands??[]).filter(l).some(n=>n.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(n=>n?.options?.flags!==void 0)&&o.add("schema"),r.some(n=>typeof n=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((n,s)=>n.localeCompare(s))}var ae=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function l(e){return e!=null}function v(e){return m(`${e.name} import`)}function _(e){return m(`${e.name} export`)}function ce(e,o,r){return[...e.map(t=>m(t.name)),...o.filter(t=>t.options!==void 0).map(v),...r.filter(t=>t.options!==void 0).map(_)]}function de(e,o,r,t){return[...Object.keys(e.flags??{}).map(n=>m(n)),...o.filter(n=>n.flags!==void 0).map(n=>m(n.name)),...r.filter(n=>n.options?.flags!==void 0).map(v),...t.filter(n=>n.options?.flags!==void 0).map(_)]}function me(e){return ae.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function fe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let n=t;return{format:r,commands:a((n.commands??[]).map(s=>m(s))),result_discriminator:n.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function le(e){return!e||e.length===0?{}:{assurance_providers:a(e.map(o=>o.id))}}function pe(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),...le(e.assuranceProviders),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...fe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(t=>({commands:[...t.commands??[]]}))}}function He(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(v),s=t.map(_),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},O=pe(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(S=>m(S))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...O}}var ue=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function ge(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function he(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let t=E(r.long,r.short);if(t===null)return[];let{token:n,failure:s}=t;return[{code:s,severity:"error",message:`Flag "${n}" ${k(n,s)}.`,field:n}]})}function w(e){let o=new Set;for(let r of e){let t=y(r)??x(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function ve(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let t=new Set(o),n=new Set(e);for(let s of e)t.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)n.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function _e(e){let o=[],r=new Map;for(let n of e.commands??[]){let s=m(n.name);r.set(s,(r.get(s)??0)+1)}for(let[n,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${n}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:n});let t=new Set(Object.keys(e.commandOverrides??{}).map(n=>m(n)));for(let n of r.keys())t.has(n)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${n}" is declared both as a new command definition and as a command override; register one or the other.`,command:n});return o}function xe(e){let o=[];for(let r of ue)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ye(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,n=Array.isArray(t)?w(t):null,s=[...ve(r,n),..._e(e),...he(e),...ge(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function P(e,o){let{additionalCapabilities:r,...t}=o,n=Array.isArray(r)?w(r):[],s=[...new Set([...h(e),...n])].sort((i,c)=>i.localeCompare(c));return{...t,capabilities:s}}function Ue(e,o){let r=P(e,o);return{module:re({...e,manifest:r}),manifest:r}}function b(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,t;switch(r){case"pm_min_version_invalid":t=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":t=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":t=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":t=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":t=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":t=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":t=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:t}}function Ee(e,o){let r=C(e.pm_min_version,o.pmVersion),t=I(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=b(r,o.pmVersion);s!==null&&n.push(s);let i=b(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var ke=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function qe(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?P(e,o.identity):null,n=o.target?Ee(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!ke.has(d.code)):r.findings).map(d=>({source:"blueprint",severity:d.severity,code:d.code,message:d.message})),...(n?.findings??[]).map(d=>({source:"compatibility",severity:d.severity,code:d.code,message:d.message}))];return{ok:c.every(d=>d.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:n,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function ze(e){return e}function We(e){return e}function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function tr(e){return e}function nr(e){return e}function ir(e){return{handled:!0,result:e}}function sr(){return{handled:!1}}function ar(e){return e}function cr(e){return e}function dr(e){return e}function mr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(e){return e}function gr(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();export{N as BUILTIN_PROFILES,we as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,Ce as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ie as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Pe as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Ae as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,R as PM_PACKAGE_RESOURCE_KINDS,q as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,D as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Te as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ee as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,Ue as composeExtensionPackage,F as createExtensionContributionInventory,sr as declineServiceOverride,lr as defineAfterCommandHook,mr as defineBeforeCommandHook,fr as defineBeforeMutationHook,Ge as defineCommand,rr as defineCommandOverride,dr as defineExporter,$e as defineExtension,je as defineExtensionBlueprint,ze as defineExtensionManifest,Ye as defineFlag,cr as defineImporter,Je as defineItemField,Xe as defineItemType,Qe as defineMigration,gr as defineOnIndexHook,ur as defineOnReadHook,pr as defineOnWriteHook,or as defineParserOverride,tr as definePreflightOverride,We as defineProjectProfile,ar as defineRendererOverride,Ze as defineSearchProvider,nr as defineServiceOverride,er as defineVectorStoreAdapter,h as deriveExtensionCapabilities,He as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,ir as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,Ke as mergeExtensionBlueprints,A as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,qe as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,P as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
|
|
1
|
+
import{a as we,b as Pe,c as Oe,d as Se,e as Ae,f as Fe,g as Re,h as Te,i as D,j as N,k as L,l as $,m as j,p as K,q as H,w as U,x as q,y as V,z}from"./focused-chunks/chunk-NJ5RLEFD.js";import{a as R,b as T,c as M,d as B,u as X}from"./focused-chunks/chunk-CODV5LUT.js";import"./focused-chunks/chunk-DQ6SMTBF.js";import"./focused-chunks/chunk-4JPEBFFC.js";import"./focused-chunks/chunk-HAACPSUW.js";import{Wa as W,Ya as G,Za as Y,b as x,c as y,f as m,g,k as E,l as k,m as C,n as I,ra as A,sa as F}from"./focused-chunks/chunk-QYZERYR5.js";import{b as Ce,c as Ie,d as be}from"./focused-chunks/chunk-725JSCMP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="fb438c6a-1927-54c3-98dd-dd7423df6722")}catch{}})();function $e(e){return e}function je(e){return e}function J(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,t]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,t);for(let[r,t]of Object.entries(o.flags??{}))e.registerFlags(r,t);for(let[r,t]of Object.entries(o.parsers??{}))e.registerParser(r,t);for(let[r,t]of Object.entries(o.renderers??{}))if(typeof t=="function")e.registerRenderer(r,t);else{let{run:n,...s}=t;e.registerRenderer(r,n,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function Q(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let t=o.itemFields??[];t.length>0&&e.registerItemFields(t);let n=o.relationshipKinds??[];n.length>0&&e.registerRelationshipKinds(n);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function Z(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function ee(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function re(e){let r={activate:async t=>{J(t,e),Q(t,e),Z(t,e),ee(t,e.hooks??{}),await e.activate?.(t)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function oe(e){let o={};for(let r of e)for(let[t,n]of Object.entries(r??{}))o[t]=[...o[t]??[],...n];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ne(e,o,r){let t=o.map(s=>s?.[r]),n=f(t);if(n!==void 0){let s=e;s[r]=n}}function ie(e){let o={};for(let r of te)ne(o,e,r);return Object.keys(o).length>0?o:void 0}function Ke(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",p(e.map(i=>i.commandOverrides))),r("flags",oe(e.map(i=>i.flags))),r("parsers",p(e.map(i=>i.parsers))),r("renderers",p(e.map(i=>i.renderers))),r("services",p(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("assuranceProviders",f(e.map(i=>i.assuranceProviders))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",ie(e.map(i=>i.hooks)));let t;for(let i of e)i.manifest&&(t=i.manifest);r("manifest",t);let n=e.some(i=>i.activate);r("activate",n?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(d){i.push(d)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var se=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[n,s]of se)u(e[n])&&o.add(s);(e.commands??[]).filter(l).some(n=>n.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(n=>n?.options?.flags!==void 0)&&o.add("schema"),r.some(n=>typeof n=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((n,s)=>n.localeCompare(s))}var ae=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function l(e){return e!=null}function v(e){return m(`${e.name} import`)}function _(e){return m(`${e.name} export`)}function ce(e,o,r){return[...e.map(t=>m(t.name)),...o.filter(t=>t.options!==void 0).map(v),...r.filter(t=>t.options!==void 0).map(_)]}function de(e,o,r,t){return[...Object.keys(e.flags??{}).map(n=>m(n)),...o.filter(n=>n.flags!==void 0).map(n=>m(n.name)),...r.filter(n=>n.options?.flags!==void 0).map(v),...t.filter(n=>n.options?.flags!==void 0).map(_)]}function me(e){return ae.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function fe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let n=t;return{format:r,commands:a((n.commands??[]).map(s=>m(s))),result_discriminator:n.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function le(e){return!e||e.length===0?{}:{assurance_providers:a(e.map(o=>o.id))}}function pe(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),...le(e.assuranceProviders),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...fe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(t=>({commands:[...t.commands??[]]}))}}function He(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(v),s=t.map(_),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},O=pe(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(S=>m(S))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...O}}var ue=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function ge(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function he(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let t=E(r.long,r.short);if(t===null)return[];let{token:n,failure:s}=t;return[{code:s,severity:"error",message:`Flag "${n}" ${k(n,s)}.`,field:n}]})}function w(e){let o=new Set;for(let r of e){let t=y(r)??x(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function ve(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let t=new Set(o),n=new Set(e);for(let s of e)t.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)n.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function _e(e){let o=[],r=new Map;for(let n of e.commands??[]){let s=m(n.name);r.set(s,(r.get(s)??0)+1)}for(let[n,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${n}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:n});let t=new Set(Object.keys(e.commandOverrides??{}).map(n=>m(n)));for(let n of r.keys())t.has(n)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${n}" is declared both as a new command definition and as a command override; register one or the other.`,command:n});return o}function xe(e){let o=[];for(let r of ue)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ye(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,n=Array.isArray(t)?w(t):null,s=[...ve(r,n),..._e(e),...he(e),...ge(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function P(e,o){let{additionalCapabilities:r,...t}=o,n=Array.isArray(r)?w(r):[],s=[...new Set([...h(e),...n])].sort((i,c)=>i.localeCompare(c));return{...t,capabilities:s}}function Ue(e,o){let r=P(e,o);return{module:re({...e,manifest:r}),manifest:r}}function b(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,t;switch(r){case"pm_min_version_invalid":t=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":t=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":t=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":t=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":t=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":t=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":t=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:t}}function Ee(e,o){let r=C(e.pm_min_version,o.pmVersion),t=I(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=b(r,o.pmVersion);s!==null&&n.push(s);let i=b(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var ke=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function qe(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?P(e,o.identity):null,n=o.target?Ee(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!ke.has(d.code)):r.findings).map(d=>({source:"blueprint",severity:d.severity,code:d.code,message:d.message})),...(n?.findings??[]).map(d=>({source:"compatibility",severity:d.severity,code:d.code,message:d.message}))];return{ok:c.every(d=>d.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:n,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function ze(e){return e}function We(e){return e}function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function tr(e){return e}function nr(e){return e}function ir(e){return{handled:!0,result:e}}function sr(){return{handled:!1}}function ar(e){return e}function cr(e){return e}function dr(e){return e}function mr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(e){return e}function gr(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();export{N as BUILTIN_PROFILES,we as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,Ce as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ie as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Pe as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Ae as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,R as PM_PACKAGE_RESOURCE_KINDS,q as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,D as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Te as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ee as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,Ue as composeExtensionPackage,F as createExtensionContributionInventory,sr as declineServiceOverride,lr as defineAfterCommandHook,mr as defineBeforeCommandHook,fr as defineBeforeMutationHook,Ge as defineCommand,rr as defineCommandOverride,dr as defineExporter,$e as defineExtension,je as defineExtensionBlueprint,ze as defineExtensionManifest,Ye as defineFlag,cr as defineImporter,Je as defineItemField,Xe as defineItemType,Qe as defineMigration,gr as defineOnIndexHook,ur as defineOnReadHook,pr as defineOnWriteHook,or as defineParserOverride,tr as definePreflightOverride,We as defineProjectProfile,ar as defineRendererOverride,Ze as defineSearchProvider,nr as defineServiceOverride,er as defineVectorStoreAdapter,h as deriveExtensionCapabilities,He as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,ir as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,Ke as mergeExtensionBlueprints,A as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,qe as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,P as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
|
|
2
2
|
//# sourceMappingURL=sdk-authoring.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as wr,b as hr,c as Dr,d as Ir,e as _r,f as Tr,g as kr,h as vr,i as Jr,j as Kr,k as Lr,l as Mr,m as Nr,n as Or,o as Pr,p as Rr,q as Sr,r as Ur,s as Vr,t as Wr,u as Xr}from"./focused-chunks/chunk-
|
|
1
|
+
import{a as wr,b as hr,c as Dr,d as Ir,e as _r,f as Tr,g as kr,h as vr,i as Jr,j as Kr,k as Lr,l as Mr,m as Nr,n as Or,o as Pr,p as Rr,q as Sr,r as Ur,s as Vr,t as Wr,u as Xr}from"./focused-chunks/chunk-WY3WRPVN.js";import{a as ir,b as mr,c as xr,d as ar,e as ur,f as yr,g as gr,h as cr}from"./focused-chunks/chunk-J4UFYHOD.js";import{A as $e,B as or,C as er,D as rr,E as fr,G as tr,H as dr,I as nr,J as pr,K as sr,L as lr,M as br,a as f,b as t,c as d,d as n,e as p,f as s,g as l,h as b,i,j as ie,k as me,l as xe,m as ae,n as ue,o as ye,p as ge,q as ce,r as we,s as he,t as De,u as Ie,v as _e,w as Te,x as ke,y as ve,z as Ee}from"./focused-chunks/chunk-DQ6SMTBF.js";import{$ as io,A as J,Aa as Ko,B as K,Ba as Lo,C as L,Ca as Mo,D as M,Da as No,E as N,Ea as Oo,F as O,Fa as Po,G as P,Ga as Qo,H as Q,Ha as Ro,I as R,J as S,Ja as So,K as U,Ka as Uo,L as V,La as Vo,M as W,N as X,O as Y,P as Z,Q as $,R as oo,S as eo,T as ro,U as fo,V as to,W as no,X as po,Y as so,Z as lo,_ as bo,aa as mo,b as m,ba as xo,c as x,ca as ao,d as a,da as uo,e as u,ea as yo,f as y,fa as go,g,ga as co,h as c,ha as wo,i as w,ia as ho,j as h,ja as Do,k as D,ka as Io,l as I,la as _o,m as _,ma as To,n as T,na as ko,o as k,oa as vo,p as v,pa as Eo,q as E,qa as jo,r as j,ra as qo,s as q,sa as zo,t as z,ta as Ao,u as A,ua as Bo,v as B,va as Co,w as C,wa as Fo,x as F,xa as Go,y as G,ya as Ho,z as H,za as Jo}from"./focused-chunks/chunk-HAACPSUW.js";import{e as Er,f as jr,g as qr,h as zr,i as Ar,j as Br,k as Cr,l as Fr,m as Gr,n as Hr,o as Qr}from"./focused-chunks/chunk-L4RDYBIQ.js";import{$a as Se,Aa as je,Ba as qe,Ca as ze,Da as Ae,Ea as Be,Fa as Ce,Ga as Fe,Ha as Ge,Ia as He,Ja as Je,Ta as Ke,Ua as Le,Va as Me,Wa as Ne,Xa as Oe,Ya as Pe,Za as Qe,_a as Re,ab as Ue,bb as Ve,cb as We,db as Xe,ea as Wo,eb as Ye,fa as Xo,fb as Ze,ga as Yo,ha as Zo,ia as $o,ja as oe,ka as ee,ma as re,na as fe,oa as te,pa as de,qa as ne,ra as pe,sa as se,ta as le,ua as be}from"./focused-chunks/chunk-725JSCMP.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="65e53d90-6fff-59df-bdfc-0d2387b5a28d")}catch{}})();export{s as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Co as ACTIVITY_FLAG_CONTRACTS,g as AGGREGATE_FLAG_CONTRACTS,fo as APPEND_FLAG_CONTRACTS,To as ASSURANCE_FLAG_CONTRACTS,d as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Bo as CALENDAR_FLAG_CONTRACTS,to as CLAIM_FLAG_CONTRACTS,rr as CLOSE_ACTION_OPTION_KEYS,eo as CLOSE_FLAG_CONTRACTS,ro as CLOSE_MANY_FLAG_CONTRACTS,io as CLOSE_TASK_FLAG_CONTRACTS,c as COMMENTS_FLAG_CONTRACTS,Ro as COMPLETION_FLAG_CONTRACTS,C as CONFIG_FLAG_CONTRACTS,n as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Go as CONTEXT_FLAG_CONTRACTS,Qo as CONTRACTS_FLAG_CONTRACTS,jo as COPY_FLAG_CONTRACTS,mr as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ar as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,xr as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,ko as CREATE_FLAG_CONTRACTS,po as DELETE_FLAG_CONTRACTS,Ko as DEPS_FLAG_CONTRACTS,I as DOCS_FLAG_CONTRACTS,Do as DUPLICATES_FLAG_CONTRACTS,Mo as EVAL_FLAG_CONTRACTS,Fo as EVENTS_FLAG_CONTRACTS,xo as EVENT_FLAG_CONTRACTS,ir as EXECUTABLE_COMMAND_ALIASES,Q as EXTENSION_ACTIVATE_FLAG_CONTRACTS,P as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Y as EXTENSION_ADOPT_FLAG_CONTRACTS,X as EXTENSION_CATALOG_FLAG_CONTRACTS,R as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,O as EXTENSION_DESCRIBE_FLAG_CONTRACTS,W as EXTENSION_DOCTOR_FLAG_CONTRACTS,N as EXTENSION_EXPLORE_FLAG_CONTRACTS,F as EXTENSION_FLAG_CONTRACTS,H as EXTENSION_INIT_FLAG_CONTRACTS,L as EXTENSION_INSTALL_FLAG_CONTRACTS,U as EXTENSION_MANAGE_FLAG_CONTRACTS,S as EXTENSION_MIGRATE_FLAG_CONTRACTS,V as EXTENSION_RELOAD_FLAG_CONTRACTS,G as EXTENSION_SCOPE_FLAG_CONTRACTS,M as EXTENSION_UNINSTALL_FLAG_CONTRACTS,D as FILES_FLAG_CONTRACTS,qo as FOCUS_FLAG_CONTRACTS,wo as GC_FLAG_CONTRACTS,Ho as GET_FLAG_CONTRACTS,u as GLOBAL_FLAG_CONTRACTS,Lo as GRAPH_FLAG_CONTRACTS,Jo as GUIDE_FLAG_CONTRACTS,Io as HEALTH_FLAG_CONTRACTS,E as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,j as HISTORY_COMPACT_FLAG_CONTRACTS,_ as HISTORY_FLAG_CONTRACTS,k as HISTORY_REDACT_FLAG_CONTRACTS,v as HISTORY_REPAIR_FLAG_CONTRACTS,B as INIT_FLAG_CONTRACTS,Z as INSTALL_FLAG_CONTRACTS,Eo as ITEM_COMPLETE_FLAG_CONTRACTS,vo as ITEM_MUTATE_FLAG_CONTRACTS,h as LEARNINGS_FLAG_CONTRACTS,f as LIST_COMMANDER_STRING_OPTION_CONTRACTS,y as LIST_FILTER_FLAG_CONTRACTS,mo as MEET_FLAG_CONTRACTS,T as MERGE_FLAG_CONTRACTS,p as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Oo as NEXT_FLAG_CONTRACTS,w as NOTES_FLAG_CONTRACTS,J as PACKAGE_FLAG_CONTRACTS,K as PACKAGE_INIT_FLAG_CONTRACTS,bo as PAUSE_TASK_FLAG_CONTRACTS,er as PLAN_CREATE_METADATA_PARAMETER_KEYS,A as PLAN_FLAG_CONTRACTS,fe as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,hr as PM_COMMAND_EXIT_CONTRACTS,wr as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Ce as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Ur as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Er as PM_CONTEXT_INTENT_CONTRACTS,ee as PM_CORE_COMMAND_NAMES,Nr as PM_ERROR_CODE_CATALOG,Jr as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Wo as PM_EXTENSION_CAPABILITY_CONTRACTS,re as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Yo as PM_EXTENSION_POLICY_MODE_CONTRACTS,oe as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,$o as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Xo as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Zo as PM_EXTENSION_TRUST_MODE_CONTRACTS,qe as PM_OUTPUT_BUDGET_CLASSES,je as PM_OUTPUT_DEGRADATION_STEPS,Rr as PM_OUTPUT_ENVELOPE_KINDS,lr as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,pr as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Ne as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Ke as PM_READ_OUTPUT_DIMENSIONS,Me as PM_READ_OUTPUT_OPTION_FLAGS,Le as PM_READ_OUTPUT_SURFACES,Oe as PM_READ_OUTPUT_SURFACE_CONTRACTS,Dr as PM_SUCCESS_EXIT_CODES,te as PM_TOOL_ACTIONS,fr as PM_TOOL_ACTION_PARAMETER_CONTRACTS,sr as PM_TOOL_PARAMETERS_SCHEMA,nr as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,dr as PM_TOOL_PARAMETERS_SCHEMA_VERSION,$e as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,z as PROFILE_FLAG_CONTRACTS,oo as REINDEX_FLAG_CONTRACTS,so as RELEASE_FLAG_CONTRACTS,ao as REMIND_FLAG_CONTRACTS,no as RESTORE_FLAG_CONTRACTS,q as SCHEMA_FLAG_CONTRACTS,t as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Po as SEARCH_FLAG_CONTRACTS,lo as START_TASK_FLAG_CONTRACTS,ho as STATS_FLAG_CONTRACTS,a as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,go as TELEMETRY_FLAG_CONTRACTS,yo as TEST_ALL_FLAG_CONTRACTS,uo as TEST_FLAG_CONTRACTS,co as TEST_RUNS_FLAG_CONTRACTS,Te as TOOL_ACTIVITY_OPTION_CONTRACTS,me as TOOL_AGGREGATE_OPTION_CONTRACTS,he as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,_e as TOOL_CALENDAR_OPTION_CONTRACTS,Ie as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,ke as TOOL_CONTEXT_OPTION_CONTRACTS,ge as TOOL_CREATE_OPTION_CONTRACTS,ye as TOOL_CREATE_OPTION_CONTRACT_SOURCE,ve as TOOL_DEPS_OPTION_CONTRACTS,Ee as TOOL_GRAPH_OPTION_CONTRACTS,ie as TOOL_LIST_FILTER_OPTION_CONTRACTS,xe as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,ue as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,ae as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,De as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,we as TOOL_UPDATE_OPTION_CONTRACTS,ce as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,ur as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,gr as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,yr as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,zo as UPDATE_FLAG_CONTRACTS,Ao as UPDATE_MANY_FLAG_CONTRACTS,$ as UPGRADE_FLAG_CONTRACTS,_o as VALIDATE_FLAG_CONTRACTS,No as WORKSPACE_FLAG_CONTRACTS,br as _testOnlyCliContracts,kr as analyzePmCommandExitConformance,de as analyzePmToolActionParity,cr as analyzeSdkCliParameterCompleteness,Br as applyContextIntentProjection,Xe as applyReadOutputDimensions,Se as applyReadOutputIncludeModes,Gr as attachContextIntentReceipt,Qr as attachOutputTokenAccounting,Hr as attachReadOutputContracts,tr as buildPmActionToolInputSchema,x as compactFlagAliasContracts,zr as composeContextIntentContracts,Fr as contextIntentRowId,Ae as createPmCommandOutputBudget,Cr as decodeContextIntentCursor,Je as decodeReadOutputContinuationCursor,Be as definePmCommandOutputBudget,Sr as definePmCommandOutputEnvelope,Kr as definePmErrorCodeCatalog,vr as derivePmBulkMutationEffect,He as encodeReadOutputContinuationCursor,Or as enrichCliFlagInvocationContract,Pr as enrichCliFlagInvocationContracts,Ge as estimatePmOutputTokens,jr as getActiveContextIntentContracts,So as hasSubcommandFlagContractsForCommand,ze as inferPmOutputBudgetClass,pe as isPmExtensionCapabilityContract,le as isPmExtensionPolicyModeContract,be as isPmExtensionPolicySurfaceContract,se as isPmExtensionServiceNameContract,_r as isPmKnownExitCode,Wr as isPmMutationReceipt,Ir as isPmSuccessfulExitCode,ne as isPmToolAction,Ye as isReadOutputBudgetExceeded,Ue as normalizeReadOutputIncludeModeOptions,Xr as parseMutationReceipt,l as readFirstStringFromCommanderOptions,b as readFirstValueFromCommanderOptions,Re as readOutputIncludeModeOptions,i as readStringArrayFromCommanderOptions,Lr as resolveCanonicalPmErrorCodeContract,Ar as resolveContextIntentContract,Tr as resolvePmCommandExitContract,Fe as resolvePmCommandOutputBudget,Vr as resolvePmCommandOutputEnvelope,Mr as resolvePmErrorCodeContract,or as resolvePmToolCustomFieldCollision,Ve as resolveReadOutputDimensions,Ze as resolveReadOutputEncoding,Pe as resolveReadOutputSurface,Uo as resolveSubcommandFlagContractsForCommand,qr as runWithContextIntentContracts,We as stabilizeReadOutputReceiptEstimates,Vo as toCompletionFlagString,Qe as validateReadOutputOptions,m as withFlagAliasMetadata};
|
|
2
2
|
//# sourceMappingURL=sdk-contracts.js.map
|