@unbrained/pm-cli 2026.8.10 → 2026.8.11
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 +102 -80
- package/dist/cli/commander-usage.js +79 -7
- package/dist/cli/error-guidance.d.ts +10 -0
- package/dist/cli/error-guidance.js +76 -25
- package/dist/cli/main.js +6 -2
- package/dist/cli/register-assurance.d.ts +8 -0
- package/dist/cli/register-assurance.js +52 -0
- package/dist/cli/register-files-lookup.js +14 -3
- package/dist/cli/register-mutation.js +30 -9
- package/dist/cli/register-operations.js +16 -11
- package/dist/cli-bundle/bundle-manifest.json +159 -159
- package/dist/cli-bundle/chunks/{chunk-TRWXF476.js → chunk-2OOU2AFH.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-2RA2YTHJ.js +33 -0
- package/dist/cli-bundle/chunks/chunk-A2SJGHSI.js +3 -0
- package/dist/cli-bundle/chunks/chunk-DSKYD4LG.js +13 -0
- package/dist/cli-bundle/chunks/chunk-HC3GM6YY.js +194 -0
- package/dist/cli-bundle/chunks/chunk-IUNRVDAI.js +2 -0
- package/dist/cli-bundle/chunks/chunk-W7CPZGSB.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-EBO7OUUE.js → chunk-WMEZHCFI.js} +59 -53
- package/dist/cli-bundle/chunks/{chunk-ETML5C6H.js → chunk-ZU34C3LH.js} +47 -47
- package/dist/cli-bundle/chunks/chunk-ZXOC6HG5.js +5 -0
- package/dist/cli-bundle/chunks/{register-list-query-OJ6ZXKV4.js → register-list-query-HAUXVUPY.js} +8 -8
- package/dist/cli-bundle/chunks/register-mutation-7Y5U7ABT.js +20 -0
- package/dist/cli-bundle/chunks/register-operations-EQX3DLAZ.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-S3KT2LTH.js → register-setup-NOCOOWQY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-34SX654S.js → chunk-23FTGO3W.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-2COZ67XT.js → chunk-2DL3MRTD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3AYKXMYX.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-4AHEC74N.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-7UN6BHHO.js → chunk-4H5IA6AV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4SV3ZKG3.js +16 -0
- package/dist/cli-bundle/focused-chunks/chunk-55BIB6DV.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-6JW6Z2P5.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-IW43E4XL.js → chunk-BKPIY34S.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-D4PIWE6D.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-KR5RVXLQ.js → chunk-DPO7TEFX.js} +29 -29
- package/dist/cli-bundle/focused-chunks/{chunk-JMVA4HKR.js → chunk-E3KCL7AY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-ERAAFLPS.js +153 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RIIN5V4N.js → chunk-F6E4JZKG.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-FPSYO5ZG.js +18 -0
- package/dist/cli-bundle/focused-chunks/{chunk-M6RPIXKC.js → chunk-J5EKAIVD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-2EXI2DKR.js → chunk-KDH5OX3D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-OJ3LVVIS.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-DZGAHZZV.js → chunk-TL5M2PAY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-75774JWP.js → chunk-UDAZWT25.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-VABB4L5Y.js +17 -0
- package/dist/cli-bundle/main.js +13 -13
- 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 +41 -39
- 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 +1 -1
- 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/session/session-state.d.ts +47 -0
- package/dist/core/session/session-state.js +207 -6
- package/dist/core/shared/author.d.ts +7 -1
- package/dist/core/shared/author.js +66 -46
- package/dist/core/shared/errors.d.ts +8 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/sdk/agent/refusal-reachability.d.ts +40 -0
- package/dist/sdk/agent/refusal-reachability.js +72 -0
- package/dist/sdk/agent/subcommand-recovery.d.ts +40 -0
- package/dist/sdk/agent/subcommand-recovery.js +84 -0
- package/dist/sdk/cli-bootstrap.d.ts +8 -0
- package/dist/sdk/cli-bootstrap.js +7 -7
- package/dist/sdk/cli-contracts/completeness.js +13 -3
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.js +3 -2
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +17 -2
- package/dist/sdk/cli-contracts/runtime-contracts.js +4 -3
- package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +513 -0
- package/dist/sdk/cli-contracts/schemas/assurance-definition.js +251 -0
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +79 -2
- package/dist/sdk/cli-contracts/tool-schema.d.ts +2 -2
- package/dist/sdk/cli-contracts/tool-schema.js +34 -4
- package/dist/sdk/cli-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts.js +3 -3
- package/dist/sdk/completion.js +9 -3
- package/dist/sdk/config.js +9 -3
- package/dist/sdk/context/semantic-session-attribution.d.ts +32 -0
- package/dist/sdk/context/semantic-session-attribution.js +83 -0
- package/dist/sdk/core-governance.d.ts +3 -1
- package/dist/sdk/core-governance.js +5 -3
- package/dist/sdk/core.d.ts +1 -1
- package/dist/sdk/core.js +2 -2
- package/dist/sdk/error-code-catalog.d.ts +13 -0
- package/dist/sdk/error-code-catalog.js +35 -2
- package/dist/sdk/extension.js +18 -17
- package/dist/sdk/files.d.ts +11 -0
- package/dist/sdk/files.js +82 -24
- package/dist/sdk/generated-error-code-catalog.js +32 -13
- package/dist/sdk/governance/assurance-action-contracts.d.ts +7 -0
- package/dist/sdk/governance/assurance-action-contracts.js +5 -0
- package/dist/sdk/governance/assurance-action.d.ts +70 -0
- package/dist/sdk/governance/assurance-action.js +198 -0
- package/dist/sdk/governance/assurance-limits.d.ts +7 -0
- package/dist/sdk/governance/assurance-limits.js +11 -0
- package/dist/sdk/governance/assurance-runtime.d.ts +20 -0
- package/dist/sdk/governance/assurance-runtime.js +131 -0
- package/dist/sdk/governance/assurance.d.ts +432 -0
- package/dist/sdk/governance/assurance.js +689 -0
- package/dist/sdk/graph/run.js +8 -3
- package/dist/sdk/index.d.ts +6 -1
- package/dist/sdk/index.js +8 -3
- package/dist/sdk/lifecycle/claim.js +18 -3
- package/dist/sdk/lifecycle/focus.js +13 -3
- package/dist/sdk/lifecycle/plan.js +8 -3
- package/dist/sdk/provenance.d.ts +38 -0
- package/dist/sdk/provenance.js +64 -2
- package/dist/sdk/query/context.js +19 -8
- package/dist/sdk/runtime-extended-actions.js +22 -5
- package/dist/sdk/runtime-primitives.d.ts +2 -0
- package/dist/sdk/runtime-primitives.js +4 -2
- package/dist/sdk/runtime.d.ts +4 -0
- package/dist/sdk/runtime.js +31 -27
- package/dist/sdk/telemetry.js +7 -4
- package/dist/sdk/traceability/runtime-files-lookup.d.ts +8 -0
- package/dist/sdk/traceability/runtime-files-lookup.js +33 -0
- package/dist/sdk/traceability/source-traceability.d.ts +102 -0
- package/dist/sdk/traceability/source-traceability.js +293 -0
- package/dist/types.d.ts +8 -2
- package/dist/types.js +2 -2
- package/docs/ASSURANCE.md +132 -0
- package/docs/README.md +1 -0
- package/docs/RELEASING.md +9 -5
- package/docs/SDK.md +12 -1
- package/docs/SDK_AGENT_SESSION_CONTEXT.md +40 -4
- package/docs/SDK_EVIDENCE_TRACEABILITY.md +39 -1
- package/docs/SDK_RUNTIME_BOUNDARIES.md +36 -1
- package/docs/TESTING.md +12 -9
- package/docs/generated/AGENT_COMMAND_SURFACE.md +1 -0
- package/marketplace.json +2 -2
- package/package.json +3 -3
- 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/extensions/templates/index.ts +9 -3
- 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 +840 -28
- package/dist/cli-bundle/chunks/chunk-2QYH4QMI.js +0 -30
- package/dist/cli-bundle/chunks/chunk-JUDU4RO4.js +0 -194
- package/dist/cli-bundle/chunks/chunk-JZSNADRR.js +0 -5
- package/dist/cli-bundle/chunks/chunk-MENWVGJW.js +0 -2
- package/dist/cli-bundle/chunks/chunk-S4EITGLA.js +0 -3
- package/dist/cli-bundle/chunks/chunk-TIGKWVLA.js +0 -13
- package/dist/cli-bundle/chunks/chunk-TSLDTJLQ.js +0 -2
- package/dist/cli-bundle/chunks/register-mutation-DKI7QC7O.js +0 -20
- package/dist/cli-bundle/chunks/register-operations-P5OGMT6I.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-36FTZ2NT.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-3CQECMKR.js +0 -16
- package/dist/cli-bundle/focused-chunks/chunk-CHIBMEZR.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-FF4MNAYB.js +0 -153
- package/dist/cli-bundle/focused-chunks/chunk-GHTN2ILR.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-I4YM2I7S.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-IMDTEN7K.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-KSNJG4KI.js +0 -16
- package/dist/cli-bundle/focused-chunks/chunk-MXYSIQ56.js +0 -18
- package/dist/cli-bundle/focused-chunks/chunk-RKWSCYYN.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Ie,b as we,c as Oe,d as Se,e as Pe,f as Fe,g as Re,h as Ae,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-2COZ67XT.js";import{a as A,b as T,c as M,d as B,u as X}from"./focused-chunks/chunk-75774JWP.js";import"./focused-chunks/chunk-I4YM2I7S.js";import"./focused-chunks/chunk-DZGAHZZV.js";import"./focused-chunks/chunk-36FTZ2NT.js";import{Va as W,Xa as G,Ya as Y,b as y,c as v,f as m,g,k as E,l as k,m as C,n as b,qa as F,ra as R}from"./focused-chunks/chunk-2EXI2DKR.js";import{b as ke,c as Ce,d as be}from"./focused-chunks/chunk-GHTN2ILR.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]="142a413a-35a6-5861-9063-0c196a176eaa")}catch{}})();function Le(e){return e}function $e(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.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 je(...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("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"],["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 _(e){return m(`${e.name} import`)}function x(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(_),...r.filter(t=>t.options!==void 0).map(x)]}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(_),...t.filter(n=>n.options?.flags!==void 0).map(x)]}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,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)),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 Ke(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(_),s=t.map(x),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},S=le(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(P=>m(P))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...S}}var pe=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","importers","exporters"];function ue(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 ge(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=v(r)??y(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function he(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 pe)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=[...he(r,n),..._e(e),...ge(e),...ue(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function O(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 He(e,o){let r=O(e,o);return{module:re({...e,manifest:r}),manifest:r}}function I(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 ve(e,o){let r=C(e.pm_min_version,o.pmVersion),t=b(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=I(r,o.pmVersion);s!==null&&n.push(s);let i=I(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var Ee=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function Ue(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?O(e,o.identity):null,n=o.target?ve(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!Ee.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 Ve(e){return e}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{handled:!0,result:e}}function ir(){return{handled:!1}}function sr(e){return e}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(){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,Ie as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,ke as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ce as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,we as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Pe as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,A 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,Ae as SEARCH_EXTENSION_FLAG_DEFINITIONS,ve as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,He as composeExtensionPackage,R as createExtensionContributionInventory,ir as declineServiceOverride,fr as defineAfterCommandHook,dr as defineBeforeCommandHook,mr as defineBeforeMutationHook,We as defineCommand,er as defineCommandOverride,cr as defineExporter,Le as defineExtension,$e as defineExtensionBlueprint,Ve as defineExtensionManifest,Ge as defineFlag,ar as defineImporter,Xe as defineItemField,Ye as defineItemType,Je as defineMigration,ur as defineOnIndexHook,pr as defineOnReadHook,lr as defineOnWriteHook,rr as defineParserOverride,or as definePreflightOverride,ze as defineProjectProfile,sr as defineRendererOverride,Qe as defineSearchProvider,tr as defineServiceOverride,Ze as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ke as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,nr as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,je as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,Ue as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,O as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
|
|
1
|
+
import{a as Ie,b as we,c as Oe,d as Se,e as Pe,f as Fe,g as Re,h as Ae,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-2DL3MRTD.js";import{a as A,b as T,c as M,d as B,u as X}from"./focused-chunks/chunk-UDAZWT25.js";import"./focused-chunks/chunk-OJ3LVVIS.js";import"./focused-chunks/chunk-TL5M2PAY.js";import"./focused-chunks/chunk-4AHEC74N.js";import{Va as W,Xa as G,Ya as Y,b as y,c as v,f as m,g,k as E,l as k,m as C,n as b,qa as F,ra as R}from"./focused-chunks/chunk-KDH5OX3D.js";import{b as ke,c as Ce,d as be}from"./focused-chunks/chunk-D4PIWE6D.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]="142a413a-35a6-5861-9063-0c196a176eaa")}catch{}})();function Le(e){return e}function $e(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.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 je(...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("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"],["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 _(e){return m(`${e.name} import`)}function x(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(_),...r.filter(t=>t.options!==void 0).map(x)]}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(_),...t.filter(n=>n.options?.flags!==void 0).map(x)]}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,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)),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 Ke(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(_),s=t.map(x),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},S=le(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(P=>m(P))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...S}}var pe=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","importers","exporters"];function ue(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 ge(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=v(r)??y(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function he(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 pe)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=[...he(r,n),..._e(e),...ge(e),...ue(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function O(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 He(e,o){let r=O(e,o);return{module:re({...e,manifest:r}),manifest:r}}function I(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 ve(e,o){let r=C(e.pm_min_version,o.pmVersion),t=b(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=I(r,o.pmVersion);s!==null&&n.push(s);let i=I(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var Ee=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function Ue(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?O(e,o.identity):null,n=o.target?ve(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!Ee.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 Ve(e){return e}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{handled:!0,result:e}}function ir(){return{handled:!1}}function sr(e){return e}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(){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,Ie as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,ke as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ce as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,we as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Pe as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,A 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,Ae as SEARCH_EXTENSION_FLAG_DEFINITIONS,ve as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,He as composeExtensionPackage,R as createExtensionContributionInventory,ir as declineServiceOverride,fr as defineAfterCommandHook,dr as defineBeforeCommandHook,mr as defineBeforeMutationHook,We as defineCommand,er as defineCommandOverride,cr as defineExporter,Le as defineExtension,$e as defineExtensionBlueprint,Ve as defineExtensionManifest,Ge as defineFlag,ar as defineImporter,Xe as defineItemField,Ye as defineItemType,Je as defineMigration,ur as defineOnIndexHook,pr as defineOnReadHook,lr as defineOnWriteHook,rr as defineParserOverride,or as definePreflightOverride,ze as defineProjectProfile,sr as defineRendererOverride,Qe as defineSearchProvider,tr as defineServiceOverride,Ze as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ke as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,nr as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,je as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,Ue as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,O as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
|
|
2
2
|
//# sourceMappingURL=sdk-authoring.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as xr,b as ar,c as ur,d as yr,e as gr,f as cr,g as wr,h as hr,i as Ar,j as Br,k as Cr,l as Fr,m as Gr,n as Hr,o as Jr,p as Lr,q as Mr,r as Nr,s as Or,t as Pr,u as Qr}from"./focused-chunks/chunk-3AYKXMYX.js";import{a as Ye,b as Ze,c as $e,d as or,e as er,f as rr,g as fr,h as tr}from"./focused-chunks/chunk-BKPIY34S.js";import{A as Le,B as Me,C as Ne,D as Oe,E as Pe,G as Qe,H as Re,I as Se,J as Ue,K as Ve,L as We,M as Xe,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-OJ3LVVIS.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-4AHEC74N.js";import{A as jr,B as qr,C as zr,D as Kr,a as dr,b as nr,c as pr,d as sr,e as lr,f as br,g as ir,h as mr,t as Dr,u as Ir,v as _r,w as Tr,x as kr,y as vr,z as Er}from"./focused-chunks/chunk-F6E4JZKG.js";import{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,Ka as Ke,ea as Wo,fa as Xo,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-D4PIWE6D.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,Oe 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,Ze as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,or as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,$e 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,Ye 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,Ne as PLAN_CREATE_METADATA_PARAMETER_KEYS,A as PLAN_FLAG_CONTRACTS,fe as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,ar as PM_COMMAND_EXIT_CONTRACTS,xr as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,br as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Nr as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Dr as PM_CONTEXT_INTENT_CONTRACTS,ee as PM_CORE_COMMAND_NAMES,Gr as PM_ERROR_CODE_CATALOG,Ar 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,nr as PM_OUTPUT_BUDGET_CLASSES,dr as PM_OUTPUT_DEGRADATION_STEPS,Lr as PM_OUTPUT_ENVELOPE_KINDS,We as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Ue as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Ae as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,je as PM_READ_OUTPUT_DIMENSIONS,ze as PM_READ_OUTPUT_OPTION_FLAGS,qe as PM_READ_OUTPUT_SURFACES,Be as PM_READ_OUTPUT_SURFACE_CONTRACTS,ur as PM_SUCCESS_EXIT_CODES,te as PM_TOOL_ACTIONS,Pe as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Ve as PM_TOOL_PARAMETERS_SCHEMA,Se as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Re as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Le 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,er as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,fr as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,rr 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,Xe as _testOnlyCliContracts,wr as analyzePmCommandExitConformance,de as analyzePmToolActionParity,tr as analyzeSdkCliParameterCompleteness,vr as applyContextIntentProjection,He as applyReadOutputDimensions,qr as attachContextIntentReceipt,Kr as attachOutputTokenAccounting,zr as attachReadOutputContracts,Qe as buildPmActionToolInputSchema,x as compactFlagAliasContracts,Tr as composeContextIntentContracts,jr as contextIntentRowId,sr as createPmCommandOutputBudget,Er as decodeContextIntentCursor,lr as definePmCommandOutputBudget,Mr as definePmCommandOutputEnvelope,Br as definePmErrorCodeCatalog,hr as derivePmBulkMutationEffect,Hr as enrichCliFlagInvocationContract,Jr as enrichCliFlagInvocationContracts,mr as estimatePmOutputTokens,Ir as getActiveContextIntentContracts,So as hasSubcommandFlagContractsForCommand,pr as inferPmOutputBudgetClass,pe as isPmExtensionCapabilityContract,le as isPmExtensionPolicyModeContract,be as isPmExtensionPolicySurfaceContract,se as isPmExtensionServiceNameContract,gr as isPmKnownExitCode,Pr as isPmMutationReceipt,yr as isPmSuccessfulExitCode,ne as isPmToolAction,Je as isReadOutputBudgetExceeded,Qr as parseMutationReceipt,l as readFirstStringFromCommanderOptions,b as readFirstValueFromCommanderOptions,i as readStringArrayFromCommanderOptions,Cr as resolveCanonicalPmErrorCodeContract,kr as resolveContextIntentContract,cr as resolvePmCommandExitContract,ir as resolvePmCommandOutputBudget,Or as resolvePmCommandOutputEnvelope,Fr as resolvePmErrorCodeContract,Me as resolvePmToolCustomFieldCollision,Ge as resolveReadOutputDimensions,Ke as resolveReadOutputEncoding,Ce as resolveReadOutputSurface,Uo as resolveSubcommandFlagContractsForCommand,_r as runWithContextIntentContracts,Vo as toCompletionFlagString,Fe as validateReadOutputOptions,m as withFlagAliasMetadata};
|
|
2
2
|
//# sourceMappingURL=sdk-contracts.js.map
|