@unbrained/pm-cli 2026.9.22 → 2026.9.23
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 +6 -0
- package/dist/cli-bundle/bundle-manifest.json +147 -147
- package/dist/cli-bundle/chunks/{chunk-AVWHZUNC.js → chunk-6WBR6GMW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CM57QHVK.js → chunk-7IABMUB6.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UDNYAMCM.js → chunk-E6ZES2X7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BJBBOUYQ.js → chunk-KOUT5SAA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-D2OV2UBV.js → chunk-NBGSRFZE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZSPZJOMK.js → chunk-OBTHQ6UX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3OFFMS2N.js → chunk-PFWCAI4X.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JSW33Q6R.js → chunk-SXRMM72R.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SBTT42A4.js → chunk-VO7DHENB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4XOV7Q5R.js → chunk-WBB5B7G5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ML42DLI3.js → chunk-ZSVINTXT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GFTN5OS4.js → chunk-ZWSWR2GX.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-VOS5CBX4.js → register-list-query-IFPQ4YRD.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-LWZH6UFJ.js → register-mutation-C3O7OSXW.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-YJK4DNFZ.js → register-operations-LGO7DBZ7.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-Q3CYF67Q.js → register-setup-4EW2PPZD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QYN77MQP.js → chunk-3JAEZ7WI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-LH24XUPJ.js → chunk-6CWR2QFM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-V2NARGRH.js → chunk-BKXYQQDT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-JCD5YESL.js → chunk-BQSKFRL2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UAU4DJSR.js → chunk-BULUJEOL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-AO5FR7PN.js → chunk-E5AOEXF5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-PRMQTT7X.js → chunk-FIQYVDLL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-FKYUTTFL.js → chunk-HJA6OHWT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IOL25GKH.js → chunk-KMNH4G6Y.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-URH727T5.js → chunk-L554BKFH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QFEDRPPI.js → chunk-LZOEUNHR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UT7VS4X2.js → chunk-N2JYYEHM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TSI73EEM.js → chunk-PIHQNL32.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MXESHALQ.js → chunk-QREDJ77O.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XR5EBU3B.js → chunk-S5JYIFFS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-CASXNCNQ.js → chunk-YE6F5HGF.js} +2 -2
- package/dist/cli-bundle/main.js +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/sdk/cli-contracts/commander-types.d.ts +11 -11
- package/dist/sdk/cli-contracts/commander-types.js +1 -1
- package/dist/sdk/pagination.js +1 -1
- package/docs/QUALITY_EVIDENCE.md +70 -0
- package/docs/TESTING.md +8 -0
- package/marketplace.json +2 -2
- package/package.json +8 -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/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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as a,A as Xe,Aa as So,B as qe,Ba as vo,C as Ge,Ca as Fo,D as He,Da as Eo,E as Je,Ea as Po,F as Ke,Fa as Ro,G as Qe,Ga as Oo,H as Ye,Ha as Uo,I as Ze,Ia as jo,J as $e,Ja as Ao,K as eo,Ka as Bo,L as oo,La as Mo,M as to,Ma as Wo,N as ro,Na as zo,O as no,Oa as Lo,P as fo,Pa as No,Q as po,Qa as Vo,R as ao,Ra as Xo,S as mo,Sa as qo,T as so,U as xo,V as io,W as lo,X as uo,Y as co,Z as yo,_ as p,a as Pe,aa as m,b as Re,ba as d,c as Oe,ca as s,d as Ue,da as x,e as je,ea as i,f as Ae,fa as l,g as Be,ga as u,ha as c,ia as y,ja as b,ka as g,la as C,ma as w,na as I,o as Me,oa as T,p as We,pa as k,q as ze,qa as bo,r as Le,ra as go,sa as Co,ta as wo,ua as Io,va as To,wa as ko,x as f,xa as ho,y as Ne,ya as Do,z as Ve,za as _o}from"./focused-chunks/chunk-
|
|
1
|
+
import{$ as a,A as Xe,Aa as So,B as qe,Ba as vo,C as Ge,Ca as Fo,D as He,Da as Eo,E as Je,Ea as Po,F as Ke,Fa as Ro,G as Qe,Ga as Oo,H as Ye,Ha as Uo,I as Ze,Ia as jo,J as $e,Ja as Ao,K as eo,Ka as Bo,L as oo,La as Mo,M as to,Ma as Wo,N as ro,Na as zo,O as no,Oa as Lo,P as fo,Pa as No,Q as po,Qa as Vo,R as ao,Ra as Xo,S as mo,Sa as qo,T as so,U as xo,V as io,W as lo,X as uo,Y as co,Z as yo,_ as p,a as Pe,aa as m,b as Re,ba as d,c as Oe,ca as s,d as Ue,da as x,e as je,ea as i,f as Ae,fa as l,g as Be,ga as u,ha as c,ia as y,ja as b,ka as g,la as C,ma as w,na as I,o as Me,oa as T,p as We,pa as k,q as ze,qa as bo,r as Le,ra as go,sa as Co,ta as wo,ua as Io,va as To,wa as ko,x as f,xa as ho,y as Ne,ya as Do,z as Ve,za as _o}from"./focused-chunks/chunk-FIQYVDLL.js";import{P as Z,Pa as ce,Qa as ye,Ra as be,Sa as ge,Ta as Ce,Ua as we,Va as Ie,cb as Te,db as ke,eb as he,fb as De,gb as _e,hb as Se,ib as ve,jb as Fe,kb as Ee,sb as n}from"./focused-chunks/chunk-BULUJEOL.js";import"./focused-chunks/chunk-PIHQNL32.js";import{a as X,b as q,c as G,d as H,e as J,f as K}from"./focused-chunks/chunk-QREDJ77O.js";import"./focused-chunks/chunk-S5JYIFFS.js";import{$ as Q,Da as Y,Hb as pe,Ib as ae,Jb as me,Kb as de,Lb as se,Mb as xe,Nb as ie,Ob as le,Pb as ue,kb as r,lb as $,mb as ee,nb as oe,ob as te,qb as re,rb as ne,sb as fe}from"./focused-chunks/chunk-HJA6OHWT.js";import"./focused-chunks/chunk-BQSKFRL2.js";import"./focused-chunks/chunk-HFAW3FJQ.js";import{ae as O,bd as h,be as U,cd as D,ce as j,dd as _,de as A,ed as S,ee as B,fd as v,fe as M,gd as F,ge as W,hd as E,he as z,id as P,ie as L,jd as R,je as N,ke as V}from"./focused-chunks/chunk-L554BKFH.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]="d45a8203-4501-5797-a6cc-a2e7844adec9")}catch{}})();(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]="87fb8085-4f16-58a9-9de7-c871fb90be5b")}catch{}})();export{ae as ACTIONABILITY_ORDERING_KINDS,q as BRIEF_LIST_FIELDS,Je as CONTEXT_EVALUATION_METRIC_NAMES,p as CONTEXT_OUTPUT_VALUES,$e as CONTEXT_PACKING_PROFILES,Xe as CONTEXT_RELEVANCE_SERVICE,Ne as CONTEXT_RELEVANCE_SIGNAL_NAMES,to as CONTEXT_SIGNAL_SET_VERSION,oo as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,ro as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,O as CONTEXT_USAGE_LIMITS,ao as ContextSignalStore,U as ContextUsageValidationError,_o as DEFAULT_CHILD_SAMPLE_LIMIT,X as DEFAULT_COMPACT_LIST_FIELDS,te as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,so as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,J as GET_DEPTH_VALUES,po as JsonFileContextSignalStoreAdapter,G as LIST_COMMAND_DEFAULT_PROJECTIONS,he as LIST_SORT_FIELDS,De as LIST_SORT_ORDER_VALUES,Do as MAX_CHILD_PROJECTION_ITEMS,bo as NEXT_OUTPUT_VALUES,Pe as PM_COMPLETE_LIST_FINDING_CODES,Re as PmCompleteListValidationError,R as QUERY_CURSOR_CONTRACT,Ee as _testOnly,ho as _testOnlyAggregateCommand,Fo as _testOnlyGetCommand,Co as _testOnlyNextCommand,Xo as _testOnlySearchCommand,re as acquireItemMetadataDerivedIndexLock,n as analyzeDuplicateItems,T as applyContextTagProjection,_e as applyFilterValueEcho,Ae as assertCompleteListResult,j as attachContextUsageServingReceipt,g as buildChildrenByParent,Mo as buildCompactSearchFilterSummary,Se as buildContentFilterEcho,fo as buildContextSignalSnapshot,ve as buildGovernanceMissingFilterEcho,So as buildItemChildrenRollup,Ve as buildItemContextRelevanceCandidates,Wo as buildVerboseSearchFilters,xo as buildWorkspaceMemorySnapshot,je as certifyCompleteListResult,Lo as classifyImplicitSemanticFallbackReason,me as collectBlockedByIds,se as collectBlockedByIdsFromCorpus,B as collectContextUsageDeliveredItemIds,ie as collectDependencyBlockedIds,zo as collectErrorCauseCodes,l as collectSubtreeIds,u as compareCriticalItems,ue as computeActionabilityReport,Oe as createCompleteListOptions,D as createQueryFingerprint,Ao as createSearchCursorFingerprint,F as decodeQueryCursor,S as decodeQueryCursorEnvelope,v as decodeQueryCursorState,qe as defaultScoreContextCandidates,_ as encodeQueryCursor,Ke as evaluateContextRanking,M as finalizeContextUsageDelivery,Vo as formatVectorIndexRecoveryWarnings,de as indexBlockedByIds,Ue as inspectCompleteListResult,K as listGetProjectionFields,H as listListProjectionFields,r as measureItemMetadataReadWork,w as mergeSortedWarnings,eo as packContextCandidates,c as packRankedContextItems,P as paginateQueryRows,x as parseContextDepth,a as parseContextFocusFields,i as parseContextSections,no as parseContextSignalSnapshot,ce as parseIntegerLimit,Z as parseLimit,ge as parseMultiValueFilter,ye as parsePriority,Ie as parsePriorityFilterSet,Ce as parseStringFilterSet,be as parseType,we as parseTypeFilterSet,wo as partitionDecisionEntries,m as projectContextFocusRows,A as propagateContextUsageServingReceipt,$ as queryItemMetadataIndex,ee as queryLinkedFileMetadataIndex,oe as querySimilarItemMetadataIndex,V as readContextUsageAffinity,Q as readHistoryEntries,ne as readItemMetadataDerivedIndexState,mo as readWorkspaceContextSignals,io as readWorkspaceMemory,z as recordContextUsageDelivery,W as recordContextUsageServing,L as recordContextUsageTouch,N as recordContextUsageTouches,fe as refreshItemMetadataDerivedIndex,We as renderCalendarMarkdown,ze as renderCalendarToon,I as renderContextMarkdown,To as renderNextMarkdown,Me as resolveCalendarOutputFormat,ke as resolveContentFieldFilters,d as resolveContextOutputFormat,s as resolveContextTokenBudget,Ro as resolveEffectiveSearchMode,Uo as resolveHybridSemanticWeight,xe as resolveItemBlockers,pe as resolveItemExecutionRole,Te as resolveMissingMetadataFilters,go as resolveNextOutputFormat,E as resolveQueryCursorStart,Po as resolveSearchMaxResults,Bo as resolveSearchPage,Oo as resolveSearchScoreThreshold,jo as resolveSearchTuning,No as resolveVectorIndexRecovery,f as runActivity,ko as runAggregate,Le as runCalendar,k as runContext,Ze as runContextEvaluationCorpus,Qe as runContextEvaluationScenario,Be as runDuplicates,vo as runGet,Eo as runHistory,Fe as runList,Io as runNext,qo as runSearch,Ge as scoreContextCandidates,He as scoreContextCandidatesWithActiveExtensions,co as searchWorkspaceMemory,yo as searchWorkspaceMemoryReadResult,le as selectActionableEntries,h as selectCursorSemanticOptions,uo as selectWorkspaceMemory,lo as selectWorkspaceMemoryRollups,Ye as summarizeContextEvaluationReports,C as toContextFocusItem,y as toContextPackingSummary,b as toContextRankingSummary,Y as verifyHistoryChain};
|
|
2
2
|
//# sourceMappingURL=sdk-query.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$a as oc,$b as od,Aa as Kb,Ab as Pc,Ba as Lb,Bb as Qc,Ca as Mb,Cb as Rc,Da as Nb,Db as Sc,Ea as Ob,Eb as Tc,Fa as Pb,Fb as Uc,Ga as Qb,Gb as Vc,Ha as Rb,Hb as Wc,Ia as Sb,Ib as Xc,Ja as Tb,Jb as Yc,Ka as Ub,Kb as Zc,La as Vb,Lb as _c,Ma as Wb,Mb as $c,Na as Xb,Nb as ad,Oa as Yb,Ob as bd,Pa as Zb,Pb as cd,Qa as _b,Qb as dd,Ra as $b,Rb as ed,S as sb,Sa as ac,Sb as fd,T as tb,Ta as bc,Tb as gd,U as ub,Ua as cc,Ub as hd,V as vb,Va as dc,Vb as id,Wa as jc,Wb as jd,Xa as kc,Xb as kd,Ya as lc,Yb as ld,Za as mc,Zb as md,_a as nc,_b as nd,ab as pc,ac as pd,bb as qc,bc as qd,cb as rc,cc as rd,db as sc,dc as sd,eb as tc,ec as td,fb as uc,fc as ud,g as Y,gb as vc,gc as vd,h as Z,hb as wc,hc as wd,i as _,ib as xc,ic as xd,ja as Ab,jb as yc,jc as yd,ka as Bb,kb as zc,kc as zd,lb as Ac,lc as Ad,mb as Bc,mc as Bd,n as Ra,nb as Cc,nc as Cd,o as Sa,ob as Dc,oc as Dd,p as Ta,pb as Ec,pc as Ed,q as Ua,qb as Fc,qc as Fd,r as Va,rb as Gc,rc as Gd,sa as Cb,sb as Hc,sc as Hd,ta as Db,tb as Ic,tc as Id,ua as Eb,ub as Jc,uc as Jd,va as Fb,vb as Kc,vc as Kd,w as cb,wa as Gb,wb as Lc,wc as Ld,x as db,xa as Hb,xb as Mc,xc as Md,y as eb,ya as Ib,yb as Nc,yc as Nd,z as gb,za as Jb,zb as Oc,zc as Od}from"./chunks/chunk-
|
|
1
|
+
import{$a as oc,$b as od,Aa as Kb,Ab as Pc,Ba as Lb,Bb as Qc,Ca as Mb,Cb as Rc,Da as Nb,Db as Sc,Ea as Ob,Eb as Tc,Fa as Pb,Fb as Uc,Ga as Qb,Gb as Vc,Ha as Rb,Hb as Wc,Ia as Sb,Ib as Xc,Ja as Tb,Jb as Yc,Ka as Ub,Kb as Zc,La as Vb,Lb as _c,Ma as Wb,Mb as $c,Na as Xb,Nb as ad,Oa as Yb,Ob as bd,Pa as Zb,Pb as cd,Qa as _b,Qb as dd,Ra as $b,Rb as ed,S as sb,Sa as ac,Sb as fd,T as tb,Ta as bc,Tb as gd,U as ub,Ua as cc,Ub as hd,V as vb,Va as dc,Vb as id,Wa as jc,Wb as jd,Xa as kc,Xb as kd,Ya as lc,Yb as ld,Za as mc,Zb as md,_a as nc,_b as nd,ab as pc,ac as pd,bb as qc,bc as qd,cb as rc,cc as rd,db as sc,dc as sd,eb as tc,ec as td,fb as uc,fc as ud,g as Y,gb as vc,gc as vd,h as Z,hb as wc,hc as wd,i as _,ib as xc,ic as xd,ja as Ab,jb as yc,jc as yd,ka as Bb,kb as zc,kc as zd,lb as Ac,lc as Ad,mb as Bc,mc as Bd,n as Ra,nb as Cc,nc as Cd,o as Sa,ob as Dc,oc as Dd,p as Ta,pb as Ec,pc as Ed,q as Ua,qb as Fc,qc as Fd,r as Va,rb as Gc,rc as Gd,sa as Cb,sb as Hc,sc as Hd,ta as Db,tb as Ic,tc as Id,ua as Eb,ub as Jc,uc as Jd,va as Fb,vb as Kc,vc as Kd,w as cb,wa as Gb,wb as Lc,wc as Ld,x as db,xa as Hb,xb as Mc,xc as Md,y as eb,ya as Ib,yb as Nc,yc as Nd,z as gb,za as Jb,zb as Oc,zc as Od}from"./chunks/chunk-VO7DHENB.js";import"./chunks/chunk-SXRMM72R.js";import{L as yb,m as bb,n as wb,u as xb}from"./chunks/chunk-E6ZES2X7.js";import{$c as qb,Fd as zb,Rd as ec,Sd as fc,Tc as fb,Td as gc,Ud as hc,Vd as ic,_c as pb,ad as rb,oc as Xa,pc as Ya,qc as Za,sb as Wa,sc as _a,tc as $a,uc as ab}from"./chunks/chunk-OBTHQ6UX.js";import{M as Ma,N as Na,P as Oa,Q as Pa,R as Qa,i as Ia,j as Ja,l as Ka,m as La}from"./chunks/chunk-6WBR6GMW.js";import{Dc as lb,Mb as hb,Nb as ib,Ob as jb,Pb as kb,Uc as mb,Vc as nb,Zc as ob,na as Ha}from"./chunks/chunk-PFWCAI4X.js";import{$k as Da,A as b,B as c,Bc as t,C as d,Fh as ra,Gh as sa,Hd as w,Id as x,Jd as y,Kc as u,Kd as z,Ld as A,Mc as v,Md as B,Mi as ya,Nd as C,Ni as za,Od as D,Pd as E,Pi as Aa,Qd as F,Qi as Ba,Rd as G,Sa as n,Ya as o,_a as p,_f as $,af as V,ag as aa,al as Ea,bb as q,bf as W,bl as Fa,cb as r,dl as Ga,eb as s,fg as ba,gg as ca,gh as na,hf as X,hg as da,hh as oa,hj as Ca,ig as ea,ih as pa,jg as fa,jh as qa,kg as ga,ki as ta,la as e,lg as ha,me as H,na as f,ne as I,ng as ia,ni as ua,oa as g,oe as J,oi as va,pa as h,pe as K,pg as ja,pi as wa,qa as i,qe as L,qg as ka,re as M,se as N,sg as la,si as xa,te as O,tg as ma,ua as j,ue as P,ve as Q,wa as k,we as R,x as a,xa as l,xe as S,ya as m,ye as T,ze as U}from"./chunks/chunk-7IABMUB6.js";export{ba as BASELINE_ITEM_FORMAT_VERSION,g as BUILTIN_ITEM_TYPE_VALUES,m as CONFIDENCE_TEXT_VALUES,lb as CONTEXT_OUTPUT_VALUES,ca as CURRENT_ITEM_FORMAT_VERSION,Xa as DEFAULT_TERMINAL_TRANSITION_POLICY,j as DEPENDENCY_KIND_VALUES,e as EXIT_CODE,na as HISTORY_EVENT_CLASSIFICATION_VERSION,l as ISSUE_SEVERITY_VALUES,h as ITEM_TYPE_VALUES,oa as MAINTENANCE_HISTORY_OPERATIONS,x as MAX_WORKFLOW_POLICIES,y as MAX_WORKFLOW_POLICY_TERMS,nb as NEXT_OUTPUT_VALUES,Y as PM_CLI_EXPECTED_ERROR_NAME,P as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,K as PM_DIAGNOSTIC_DEGRADATION_STEPS,L as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,J as PM_DIAGNOSTIC_OUTPUT_CLASSES,Ja as PM_GITIGNORE_END,Ia as PM_GITIGNORE_START,I as PM_OUTPUT_BUDGET_CLASSES,H as PM_OUTPUT_DEGRADATION_STEPS,f as PmCliError,jc as PmClient,Ra as PmCompleteListValidationError,k as RISK_VALUES,Cb as SEARCH_EXTENSION_FLAG_DEFINITIONS,i as STATUS_VALUES,pa as SUBSTANTIVE_HISTORY_OPERATIONS,w as WORKFLOW_POLICY_ACTIONS,Na as WORKFLOW_POLICY_DOCUMENT_SCHEMA,Ma as WORKFLOW_POLICY_SCHEMA,X as acquireLock,qc as aggregate,Od as analyzeSdkActionCoverage,Cc as append,sa as appendHistoryEntry,_a as applyTerminalOrderingPolicy,Va as assertCompleteListResult,Oa as buildWorkflowCompletenessCheck,ma as canonicalDocument,Ua as certifyCompleteListResult,ld as claim,md as claimNext,qa as classifyHistoryEvent,fa as classifyItemFormatVersion,Bb as clearWorkspaceContractsCache,kd as close,$a as closeItem,ud as closeTask,tc as comments,_b as commitImportedItem,Ec as config,kc as context,od as copy,hd as create,Sa as createCompleteListOptions,ra as createHistoryEntry,Pa as createLifecycleCompletenessPolicies,Z as createPmCliExpectedError,N as createPmCommandOutputBudget,G as createWorkflowPolicyEvaluator,O as definePmCommandOutputBudget,pd as deleteItem,Ac as deps,zc as docs,sc as duplicates,da as effectiveItemFormatVersion,Zb as emptyImportedDocument,La as ensurePmGitignore,Yb as ensureTrackerInitialized,R as estimatePmOutputTokens,F as evaluateWorkflowPolicies,vd as extension,xd as extensionActivate,yd as extensionDeactivate,wd as extensionList,wc as files,xc as filesDiscover,yc as filesLookup,rd as focus,bd as gc,wa as generateItemId,oc as get,t as getActiveExtensionRegistrations,Ld as getContracts,s as getHistoryPath,r as getItemPath,Ka as getPmGitignoreBlock,q as getSettingsPath,Db as getWorkspaceContracts,Bc as graph,ad as health,fd as historyCompact,gd as historyCompactBulk,cd as historyRedact,dd as historyRepair,ed as historyRepairAll,M as inferPmOutputBudgetClass,Dc as init,Ta as inspectCompleteListResult,_ as isPmCliExpectedError,ia as isTerminalStatus,W as isTimestampLiteral,Da as jaccardSimilarity,vc as learnings,lc as list,mc as listAllComplete,Aa as listAllItemMetadata,Ba as listAllItemMetadataLight,sb as loadCreateTemplateOptions,ya as locateItem,pc as next,ea as normalizeItemFormatVersion,va as normalizeItemId,ja as normalizeItemMetadata,ua as normalizeRawItemId,Ea as normalizeSimilarityText,ha as normalizeStatusInput,uc as notes,V as nowIso,Id as packageActivate,Hd as packageCatalog,Jd as packageDeactivate,Fd as packageDescribe,Dd as packageDoctor,Bd as packageInstall,zd as packageLifecycle,Ad as packageList,Ed as packageManage,Gd as packageReload,Cd as packageUninstall,Ca as parseTags,z as parseWorkflowPolicy,A as parseWorkflowPolicyDocument,a as pathExists,td as pauseTask,Wc as profile,Zc as profileApply,_c as profileLint,Xc as profileList,Yc as profileShow,T as projectPmDiagnosticOutput,U as projectPmDiagnosticText,Fb as readBooleanOption,Gb as readCsvListOption,b as readFileIfExists,za as readLocatedItem,Ab as readRequiredString,ta as readSettings,Eb as readStringOption,xa as readWorkflowPolicies,B as readWorkflowPolicyField,nd as release,d as removeFileIfExists,ib as renderCalendarMarkdown,jb as renderCalendarToon,bc as renderGuideMarkdown,jd as reopen,Za as requireTerminalReason,hb as resolveCalendarOutputFormat,$b as resolveGuideOutputFormat,o as resolveImplicitPmRoot,n as resolveItemTypeRegistry,Q as resolvePmCommandOutputBudget,S as resolvePmDiagnosticOutputBudget,p as resolvePmRoot,aa as resolveRuntimeFieldRegistry,$ as resolveRuntimeStatusRegistry,Ya as resolveTerminalReason,qd as restore,Nd as runAction,v as runActiveOnReadHooks,u as runActiveOnWriteHooks,wb as runAggregate,kb as runCalendar,ab as runClose,rb as runCloseTask,cc as runCompletion,mb as runContext,cb as runCopy,db as runDelete,Wa as runDuplicates,eb as runFocus,xb as runGet,ac as runGuide,Ha as runList,ob as runNext,qb as runPauseTask,dc as runReindex,gb as runReopen,bb as runRestore,yb as runSearch,pb as runStartTask,zb as runStats,ub as runTemplatesList,tb as runTemplatesSave,vb as runTemplatesShow,ec as runTestRunsList,gc as runTestRunsLogs,ic as runTestRunsResume,fc as runTestRunsStatus,hc as runTestRunsStop,fb as runUpdate,Md as runWithActiveExtensions,Qa as runWorkflowPolicyAction,ga as scanItemFormatVersions,Fc as schema,Mc as schemaAddField,Kc as schemaAddStatus,Ic as schemaAddType,Qc as schemaApplyPreset,Rc as schemaInferTypes,Gc as schemaList,Oc as schemaListFields,Uc as schemaRemapStatus,Nc as schemaRemoveField,Lc as schemaRemoveStatus,Jc as schemaRemoveType,Tc as schemaRenameField,Sc as schemaRenameType,Hc as schemaShow,Pc as schemaShowField,Vc as schemaShowStatus,Ga as scoreItemSimilarity,nc as search,Xb as selectImportAuthor,la as serializeItemDocument,ka as splitFrontMatter,sd as startTask,rc as stats,Ib as toEstimatedMinutesValue,Nb as toImportBoolean,Rb as toImportConfidence,Mb as toImportInteger,Vb as toImportLinkedDocs,Ub as toImportLinkedFiles,Wb as toImportLinkedTests,Tb as toImportLogEntries,Sb as toImportNormalizedEnum,Qb as toImportNumberMap,Jb as toImportPriority,Lb as toImportStatus,Ob as toImportStringList,Pb as toImportStringMap,Kb as toImportTags,Hb as toNonEmptyImportString,Fa as tokenizeSimilarityText,id as update,Kd as upgrade,$c as validate,D as workflowApprovalFingerprint,E as workflowPolicyApplies,C as workflowPolicyFingerprint,c as writeFileAtomic};
|
|
2
2
|
//# sourceMappingURL=sdk-runtime.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as t,B as u,C as v,D as w,E as x,F as y,G as z,H as A,I as B,J as C,K as D,L as E,M as F,N as G,O as H,P as I,Q as J,R as K,S as L,T as M,U as N,V as O,W as P,X as Q,Y as R,f as c,g as d,l as e,m as f,n as g,o as h,p as i,q as j,r as k,s as l,t as m,u as n,v as o,w as p,x as q,y as r,z as s}from"./chunks/chunk-
|
|
1
|
+
import{A as t,B as u,C as v,D as w,E as x,F as y,G as z,H as A,I as B,J as C,K as D,L as E,M as F,N as G,O as H,P as I,Q as J,R as K,S as L,T as M,U as N,V as O,W as P,X as Q,Y as R,f as c,g as d,l as e,m as f,n as g,o as h,p as i,q as j,r as k,s as l,t as m,u as n,v as o,w as p,x as q,y as r,z as s}from"./chunks/chunk-ZWSWR2GX.js";import"./chunks/chunk-VO7DHENB.js";import"./chunks/chunk-SXRMM72R.js";import"./chunks/chunk-E6ZES2X7.js";import"./chunks/chunk-OBTHQ6UX.js";import{Fa as b,n as a}from"./chunks/chunk-6WBR6GMW.js";import"./chunks/chunk-PFWCAI4X.js";import"./chunks/chunk-7IABMUB6.js";export{e as activateExtensionForTest,M as assertExtensionBlueprint,L as assertExtensionCapabilityUsage,t as assertExtensionDeactivated,P as assertExtensionManifestCompatible,O as assertExtensionManifestMatchesBlueprint,Q as assertExtensionPreflight,u as assertPackageManifest,N as assertProjectProfile,v as assertRegisteredCommandContract,F as assertRegisteredCommandOverride,B as assertRegisteredExporter,w as assertRegisteredFlags,x as assertRegisteredHook,A as assertRegisteredImporter,C as assertRegisteredItemField,D as assertRegisteredItemType,K as assertRegisteredMigration,G as assertRegisteredParserOverride,H as assertRegisteredPreflightOverride,E as assertRegisteredProfile,I as assertRegisteredRendererOverride,y as assertRegisteredSearchProvider,J as assertRegisteredServiceOverride,z as assertRegisteredVectorStoreAdapter,R as createExtensionTestHarness,f as deactivateExtensionForTest,a as describeExtensionActivation,c as describeExtensionBlueprint,d as lintExtensionBlueprint,b as renderExtensionSurfaceMarkdown,g as runRegisteredCommandForTest,l as runRegisteredCommandOverrideForTest,s as runRegisteredExporterForTest,i as runRegisteredHookForTest,r as runRegisteredImporterForTest,q as runRegisteredMigrationForTest,h as runRegisteredMutationGuardForTest,j as runRegisteredParserOverrideForTest,k as runRegisteredPreflightOverrideForTest,m as runRegisteredRendererOverrideForTest,o as runRegisteredSearchProviderForTest,n as runRegisteredServiceOverrideForTest,p as runRegisteredVectorStoreAdapterForTest};
|
|
2
2
|
//# sourceMappingURL=sdk-testing.js.map
|
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as BM,B as qM,C as zM,D as VM,E as HM,a as ni,b as rw,c as ow,d as nw,e as iw,f as sw,g as ds,h as ls,i as us,j as ps,k as ms,l as jM,m as GM,n as Rh,o as Ph,p as Mh,r as kh,s as xh,t as Nh,u as Lh,v as Dh,w as $h,x as Fh,y as jh,z as UM}from"./chunks/chunk-BJBBOUYQ.js";import{A as kk,B as xk,C as Nk,D as Lk,E as Dk,F as $k,G as Fk,H as jk,I as Gk,J as Uk,K as Bk,L as qk,M as zk,N as Vk,O as Hk,P as Kk,Q as Wk,R as Xk,S as Yk,T as Jk,U as Zk,V as Qk,W as e0,X as t0,Y as r0,a as sk,b as ak,c as ck,d as dk,e as lk,f as uk,g as pk,h as mk,i as fk,j as _k,k as hk,l as gk,m as yk,n as bk,o as Ck,p as Tk,q as Sk,r as wk,s as Ek,t as Ak,u as vk,v as Ok,w as Ik,x as Rk,y as Pk,z as Mk}from"./chunks/chunk-GFTN5OS4.js";import{a as KM,b as WM,c as XM,d as YM}from"./chunks/chunk-4XOV7Q5R.js";import{a as JM,b as ZM,c as QM,d as ek,e as tk,f as rk,g as ok,h as nk,i as ik}from"./chunks/chunk-D2OV2UBV.js";import{$ as fm,$a as r_,$b as rh,A as Ze,Aa as Ef,Ab as R_,B as em,Ba as Af,Bb as P_,C as tm,Ca as vf,Cb as M_,D as rm,Da as Of,Db as k_,E as om,Ea as If,Eb as x_,F as nm,Fa as Rf,Fb as N_,G as Zt,Ga as Pf,Gb as L_,H as Qt,Ha as Mf,Hb as D_,I as er,Ia as kf,Ib as $_,J as tr,Ja as xf,Jb as F_,K as rr,Ka as Nf,Kb as j_,L as or,La as Lf,Lb as G_,M as nr,Ma as Df,Mb as U_,N as ir,Na as $f,Nb as B_,O as sr,Oa as Ff,Ob as q_,P as ar,Pa as jf,Pb as z_,Q as cr,Qa as Gf,Qb as V_,R as im,Ra as Uf,Rb as H_,S as sm,Sa as Bf,Sb as K_,T as am,Ta as qf,Tb as W_,U as cm,Ua as zf,Ub as X_,V as dm,Va as dr,Vb as Y_,W as Qe,Wa as he,Wb as J_,X as lm,Xa as Zf,Xb as Z_,Y as um,Ya as Qf,Yb as Q_,Z as pm,Za as e_,Zb as eh,_ as mm,_a as t_,_b as th,a as YS,aa as _m,ab as o_,ac as oh,b as JS,ba as hm,bb as n_,bc as nh,c as ZS,ca as gm,cb as i_,cc as ih,d as QS,da as CM,db as s_,dc as sh,e as ew,ea as TM,eb as a_,ec as ah,f as tw,fa as SM,fb as c_,fc as ch,g as ci,ga as Om,gb as d_,gc as dh,h as di,ha as Im,hb as l_,hc as lh,i as li,ia as Rm,ib as u_,ic as uh,j as BE,ja as _f,jb as p_,jc as ph,k as qE,ka as hf,kb as m_,kc as mh,l as os,la as MM,lb as f_,lc as fh,m as xI,ma as kM,mb as __,mc as _h,n as NI,na as xM,nb as h_,nc as hh,o as LI,oa as NM,ob as g_,oc as gh,p as DI,pa as LM,pb as y_,pc as yh,q as $I,qa as DM,qb as b_,qc as bh,r as FI,ra as $M,rb as C_,rc as Ch,s as ml,sa as FM,sb as T_,sc as Th,t as qu,ta as gf,tb as S_,tc as Sh,u as zu,ua as yf,ub as w_,uc as wh,v as Wu,va as bf,vb as E_,vc as Eh,w as Xu,wa as Cf,wb as A_,wc as Ah,x as mp,xa as Tf,xb as v_,xc as vh,y as Cp,ya as Sf,yb as O_,yc as Oh,z as cP,za as wf,zb as I_,zc as Ih}from"./chunks/chunk-SBTT42A4.js";import{e as UI,f as BI,g as fl,h as _l,i as Xt}from"./chunks/chunk-JSW33Q6R.js";import{A as dM,B as lM,C as uM,D as pM,E as mM,F as fM,G as _M,H as hM,I as gM,J as yM,K as bM,L as Cm,M as Tm,N as Sm,O as wm,P as Em,Q as Am,R as vm,a as VR,b as HR,c as KR,d as WR,e as XR,f as Bu,g as YR,h as JR,i as ZR,j as QR,k as eP,m as Ku,n as ym,o as ZP,p as QP,q as eM,r as tM,s as rM,t as oM,u as bm,v as nM,w as iM,x as sM,y as aM,z as cM}from"./chunks/chunk-UDNYAMCM.js";import{$ as pI,$a as Al,$b as Lu,$c as Zp,A as UO,Ab as WI,Ac as tp,Ad as Zm,B as BO,Bb as XI,Bc as rp,Bd as Qm,C as qO,Cb as YI,Cc as op,Cd as ef,D as zO,Db as JI,Dc as np,Dd as tf,E as VO,Ea as Jd,Eb as ZI,Ec as ip,Ed as rf,F as Je,Fa as Zd,Fb as yR,Fc as sp,Fd as of,G as HO,Ga as Qd,Gb as bR,Gc as ap,Gd as nf,H as qt,Ha as el,Hb as CR,Hc as cp,Hd as sf,I as KO,Ia as tl,Ib as TR,Ic as dp,Id as af,J as WO,Jb as SR,Jc as lp,Jd as cf,K as XO,Ka as rl,Kb as wR,Kc as up,Kd as df,L as YO,La as ol,Lb as ER,Ld as lf,M as JO,Ma as nl,Mb as PR,Mc as sP,Md as uf,N as ZO,Na as il,Nb as MR,Nc as aP,Nd as pf,O as QO,Oa as jI,Ob as Ou,Oc as pp,Od as mf,P as eI,Pa as GI,Pb as Iu,Pc as Tp,Pd as ff,Q as tI,Qa as sl,Qb as kR,Qd as Vf,R as rI,Ra as al,Rb as xR,Rd as Hf,S as oI,Sa as cl,Sb as NR,Sd as Kf,T as nI,Ta as dl,Tb as LR,Tc as Sp,Td as Wf,U as iI,Ua as ll,Ub as DR,Ud as Xf,V as sI,Va as ul,Vb as Ru,Vc as wp,Vd as Yf,W as aI,Wa as pl,Wb as Pu,Wc as Kp,Wd as Jf,X as cI,Xa as Tl,Xb as Mu,Xc as Wp,Y as dI,Ya as Sl,Yb as ku,Yc as Xp,Z as lI,Za as wl,Zb as xu,Zc as Yp,_ as uI,_a as El,_b as Nu,_c as Jp,a as kO,aa as mI,ab as vl,ac as Du,ad as Qp,b as Gt,ba as fI,bb as Ol,bc as $u,bd as Pm,c as xO,ca as _I,cb as Il,cc as Fu,cd as Mm,d as Xe,da as hI,db as Rl,dc as ju,dd as km,e as oe,ea as gI,eb as Pl,ec as Gu,ed as xm,f as md,fa as yI,fb as Ml,fc as $R,fd as Nm,gb as kl,gc as FR,gd as Lm,hb as xl,hc as jR,hd as Dm,i as Ye,ib as Nl,ic as GR,id as $m,j as fd,jb as Ll,jc as UR,jd as Fm,k as _d,kb as Dl,kc as BR,kd as IM,la as Yd,lb as $l,lc as qR,ld as RM,m as _e,mb as Fl,mc as zR,md as PM,n as hd,nb as zI,nc as Uu,nd as jm,o as gd,ob as jl,oc as tP,od as Gm,p as yd,pb as Gl,pc as rP,pd as Um,q as bd,qb as Ul,qc as oP,qd as Bm,r as NO,rb as Bl,rc as nP,rd as qm,s as LO,sb as VI,sc as iP,sd as zm,t as DO,tb as ql,tc as Vu,td as Vm,u as $O,ub as zl,uc as Hu,ud as Hm,v as FO,vb as Vl,vc as Yu,vd as Km,w as Ut,wb as Hl,wc as Ju,wd as Wm,x as jO,xb as Kl,xc as Zu,xd as Xm,y as GO,yb as HI,yc as Qu,yd as Ym,z as Bt,zb as KI,zc as ep,zd as Jm}from"./chunks/chunk-ZSPZJOMK.js";import{A as OI,Aa as Ht,B as Rd,Ba as Kt,C as Pd,Ca as Wt,D as Md,Da as Dd,Fa as $d,Ga as Fd,Ha as jd,M as II,Ma as Gd,N as RI,Na as Ud,P as PI,Pa as Bd,Q as MI,Qa as qd,R as kI,Ra as zd,S as kd,Sa as Vd,T as xd,Ta as Hd,U as Nd,V as Ld,Va as Kd,W as zt,Wa as Wd,Xa as Xd,a as WE,b as XE,c as ns,d as is,e as ss,f as as,g as cs,i as Cd,j as Td,l as Sd,m as wd,n as bI,o as CI,p as TI,q as SI,r as wI,s as EI,t as AI,u as vI,v as Ed,w as Ad,x as vd,y as Od,z as Id,za as Vt}from"./chunks/chunk-AVWHZUNC.js";import{$ as CO,$a as vu,$b as yP,$c as wM,Aa as Ql,Ac as VP,Ba as eu,Bb as AR,Bc as HP,Ca as tu,Cb as vR,Cc as KP,Da as ru,Db as OR,Dc as Yt,Ea as ou,Eb as IR,Ec as Rp,Fa as nu,Fb as RR,Fc as Pp,G as uO,Ga as iu,Gb as fp,Gc as Mp,H as pO,Ha as su,Hb as _p,Hc as kp,I as mO,Ia as au,Ib as hp,Ic as xp,J as fO,Ja as cu,Jb as gp,Jc as Np,K as _O,Ka as du,Kb as yp,Kc as Lp,L as hO,La as lu,Lb as bp,Lc as Dp,M as gO,Ma as uu,Mb as Ep,Mc as $p,N as yO,Na as pu,Nb as Ap,Nc as Fp,O as td,Oa as mu,Ob as vp,Oc as jp,P as rd,Pa as fu,Pb as Op,Pc as Gp,Q as od,Qa as _u,Qb as dP,Qc as Up,R as nd,Ra as hu,Rb as lP,Rc as Bp,S as id,Sa as gu,Sb as uP,Sc as qp,T as sd,Ta as yu,Tb as pP,Tc as zp,U as ad,Ua as bu,Ub as mP,Uc as Jt,V as cd,Va as Cu,Vb as fP,Vc as Vp,W as dd,Wa as Tu,Wb as _P,Wc as WP,X as ld,Xa as Su,Xc as XP,Y as ud,Ya as wu,Yb as Ip,Yc as YP,Z as We,Za as Eu,Zb as hP,Zc as Hp,_ as bO,_a as Au,_b as gP,_c as JP,aa as TO,ac as bP,ad as EM,b as jE,ba as SO,bc as CP,bd as AM,c as GE,ca as wO,cb as QI,cc as TP,cd as vM,d as UE,da as EO,db as eR,dc as SP,dd as OM,e as zE,eb as tR,ec as wP,f as VE,fb as rR,fc as EP,g as HE,ga as AO,gb as oR,gc as AP,h as KE,ha as vO,hb as nR,hc as vP,i as Xv,ia as OO,ib as iR,ic as OP,j as Yv,ja as IO,jb as sR,jc as IP,k as Jv,ka as RO,kb as aR,kc as RP,l as Zv,la as PO,lb as cR,lc as PP,m as Qv,ma as MO,mb as dR,mc as MP,n as eO,na as pd,nb as lR,nc as kP,o as tO,oa as hl,ob as uR,oc as xP,p as rO,pa as gl,pc as NP,q as oO,qa as yl,qc as LP,r as nO,ra as bl,rc as DP,s as iO,sa as qI,sb as pR,sc as $P,t as sO,tc as FP,u as aO,ua as Cl,ub as mR,uc as jP,v as cO,va as Wl,vb as fR,vc as GP,w as dO,wa as Xl,wc as UP,x as lO,xa as Yl,xb as _R,xc as BP,ya as Jl,yb as hR,yc as qP,za as Zl,zb as gR,zc as zP}from"./chunks/chunk-3OFFMS2N.js";import{$a as EC,$c as Cn,$d as Rn,$e as kt,$f as fw,$g as ji,$h as lE,$i as QE,$k as Ts,$l as Fv,$m as ka,$n as Rc,A as Xo,Ac as XC,Ad as NT,Ae as JT,Af as BS,Ag as Ow,Ah as Hw,Ai as wE,Aj as bA,Ak as ev,Al as xs,Am as sa,An as ic,B as Ge,Bc as hn,Bd as LT,Be as ZT,Bf as qS,Bg as Iw,Bh as Kw,Bi as EE,Bj as CA,Bk as tv,Bl as Ns,Bm as aa,Bn as sc,C as Yo,Cc as YC,Cd as DT,Ce as QT,Cf as zS,Cg as Rw,Ch as Ww,Ci as AE,Cj as TA,Ck as rv,Cl as Ls,Cm as ca,Cn as ac,Dc as JC,Dd as $T,De as eS,Df as VS,Dg as Ei,Di as vE,Dj as SA,Dk as ov,Dl as Ds,Dm as da,Dn as cc,E as Qb,Eb as vC,Ec as ZC,Ed as FT,Ee as tS,Ef as HS,Eg as Ai,Eh as Xw,Ei as OE,Ej as wA,Ek as nv,El as $s,En as dc,F as eC,Fc as QC,Fd as jT,Fe as rS,Ff as KS,Fg as $,Fh as Ki,Fi as IE,Fj as EA,Fk as iv,Fl as Fs,Fm as la,Fn as lc,G as tC,Gb as OC,Gc as eT,Ge as oS,Gg as vi,Gh as Wi,Gi as RE,Gk as sv,Gl as js,Gm as ua,Gn as uc,H as rC,Hb as IC,Hc as tT,Hd as GT,He as nS,Hf as WS,Hj as AA,Hk as av,Hl as Gs,Hm as pa,Hn as pc,I as oC,Ib as RC,Ic as rT,Id as UT,Ie as iS,If as XS,Ii as PE,Ij as vA,Ik as Dt,Il as Us,Im as ma,In as mc,J as nC,Jb as PC,Jc as oT,Jd as BT,Je as sS,Jf as ii,Ji as ME,Jj as OA,Jk as cv,Jl as Bs,Jm as fa,Jn as fc,Kb as MC,Kc as gn,Kd as qT,Ke as aS,Kf as si,Ki as kE,Kj as IA,Kl as qs,Km as _a,Kn as _c,L as iC,Lc as nT,Ld as zT,Le as cS,Lf as ai,Lh as Yw,Li as xE,Lj as RA,Ll as zs,Lm as ha,Ln as hc,M as sC,Mc as yn,Md as VT,Me as dS,Mf as aw,Mg as Pw,Mh as Jw,Mi as es,Mk as dv,Ml as Vs,Mm as ga,Mn as gc,Na as gC,Nb as kC,Nd as HT,Ne as lS,Nf as cw,Ng as Mw,Nh as Zw,Ni as ts,Nj as PA,Nk as lv,Nl as Hs,Nm as ya,Nn as yc,Oa as yC,Ob as xC,Oc as iT,Od as KT,Oe as uS,Of as dw,Og as kw,Oh as Qw,Ok as uv,Om as ba,On as bc,P as aC,Pa as bC,Pc as sT,Pd as WT,Pe as pS,Pf as lw,Pg as Oi,Ph as eE,Pi as rs,Pj as MA,Pk as pv,Pl as Iv,Pm as Ca,Pn as Cc,Qc as aT,Qd as XT,Qe as mS,Qf as uw,Qg as Ii,Qh as tE,Qi as NE,Qj as kA,Qk as mv,Ql as Rv,Qm as Ta,Qn as Tc,Rb as P,Rc as cT,Rd as YT,Re as fS,Rg as Ri,Rj as xA,Rk as fv,Rm as Sa,Rn as Sc,S as cC,Sa as nn,Sb as NC,Sc as dT,Sd as Sn,Se as _S,Sf as pw,Sg as Pi,Sh as rE,Si as LE,Sj as NA,Sk as _v,Sm as wa,Sn as wc,Ta as CC,Tb as It,Td as wn,Te as hS,Tg as Mi,Ti as DE,Tj as LA,Tk as hv,Tl as Pv,Tm as Ea,Tn as Ec,U as dC,Ua as TC,Ub as LC,Ud as En,Ue as gS,Ug as ki,Uh as oE,Ui as $E,Uk as _s,Ul as Mv,Um as Aa,Un as Ac,V as lC,Va as SC,Vd as An,Ve as yS,Vg as xi,Vh as nE,Vk as hs,Vl as kv,Vm as va,Vn as vc,W as uC,Wa as wC,Wb as DC,Wd as vn,We as bS,Wg as Ni,Wh as iE,Wi as FE,Wk as gs,Wl as xv,Wm as Oa,Wn as Oc,Xd as On,Xe as CS,Xg as Li,Xh as sE,Xk as ys,Xl as Nv,Xm as Ia,Ya as sn,Yc as Rt,Yd as In,Ye as TS,Yf as mw,Yg as Di,Yh as aE,Yi as YE,Yk as bs,Yl as Lv,Ym as Ra,Yn as Ke,Za as an,Zc as Pt,Zd as Be,Ze as Mt,Zg as $i,Zh as cE,Zi as JE,Zk as Cs,Zl as Dv,Zm as Pa,Zn as re,_a as Ue,_c as bn,_d as qe,_f as ui,_g as Fi,_h as dE,_i as ZE,_l as $v,_m as Ma,_n as Ic,ad as Tn,ae as Pn,af as ri,ag as pi,ah as Gi,ai as uE,aj as eA,al as Ss,am as jv,an as xa,ao as Pc,b as jo,ba as pC,bb as cn,be as Mn,bf as oi,bh as Ui,bi as pE,bj as tA,bk as DA,bl as ws,bm as Ve,bn as Na,bo as Mc,c as Go,cb as dn,cd as lT,ce as kn,cf as xt,cg as _w,ch as xw,ci as mE,ck as $A,cl as Es,cm as Gv,cn as La,co as kc,d as Uo,da as mC,dd as uT,de as xn,dg as hw,dh as Nw,di as fE,dj as rA,dk as FA,dl as As,dm as Uv,dn as Da,do as xc,e as Bo,eb as ln,ed as pT,ee as Nn,ef as SS,eg as gw,eh as Bi,ei as _E,ej as oA,ek as jA,el as vs,em as Bv,en as $a,eo as Nc,f as $e,fd as mT,fe as Ln,fg as mi,fh as Lw,fi as hE,fk as GA,fl as Os,fm as Ft,fn as Fa,fo as Lc,g as qo,ga as fC,gc as $C,gd as fT,ge as Dn,gf as wS,gg as fi,gh as qi,gk as UA,gl as Is,gm as He,gn as ja,go as Dc,h as L,hc as FC,hd as _T,he as $n,hf as ze,hg as _i,hh as zi,hj as fs,hk as BA,hl as gv,hm as qv,hn as Ga,ho as $c,i as Fe,ic as jC,id as hT,ie as Fn,if as ES,ig as hi,ih as Vi,ii as gE,ij as nA,ik as qA,il as yv,im as zv,in as Ua,io as Fc,j as zo,jd as gT,je as jn,jf as AS,jg as gi,jh as Hi,ji as yE,jj as iA,jk as zA,jl as bv,jm as Vv,jn as Ba,jo as jc,k as Vo,ka as _C,kc as GC,kd as yT,ke as Gn,kf as vS,kg as yi,ki as Xi,kj as sA,kk as Lt,kl as Cv,km as Hv,kn as qa,ko as Gc,l as Ho,la as D,lc as UC,ld as bT,le as Un,lf as OS,lg as bi,li as bE,lj as aA,ll as Tv,lm as Kv,ln as za,lo as Uc,m as Ko,ma as hC,md as CT,me as Bn,mf as IS,mg as yw,mj as cA,mk as VA,ml as Sv,mm as Wv,mn as Va,mo as Bc,n as Kb,na as b,nc as BC,nd as TT,ne as qn,nf as RS,ng as bw,ni as Yi,nj as dA,nl as wv,nm as Ks,nn as Ha,no as qc,o as je,oa as Jo,oc as mn,od as ST,oe as zn,of as PS,oi as Ji,ok as HA,ol as Ev,om as Ws,on as Ka,oo as zc,p as vt,pa as Zo,pd as wT,pe as Vn,pf as MS,pg as Ci,pi as Zi,pj as lA,pm as Xs,pn as Wa,po as Vc,q as Wb,qa as Qo,qc as fn,qd as ET,qe as Hn,qf as kS,qg as Ti,qh as Dw,qj as uA,qm as Ys,qn as Xa,qo as Hc,r as Xb,rb as un,rc as _n,rd as AT,re as Kn,rf as xS,rg as Cw,rh as $w,rj as pA,rm as Js,rn as Ya,ro as Kc,s as Yb,sb as pn,sd as vT,se as Wn,sf as NS,sg as Si,sh as Fw,si as CE,sj as mA,sk as KA,sl as $t,sm as Zs,sn as Ja,so as Wc,t as Jb,tb as AC,td as OT,te as Xn,tf as LS,tg as wi,th as jw,tk as WA,tl as Av,tm as Qs,tn as Za,to as Xc,u as H,ua as en,uc as qC,ud as IT,ue as Yn,uf as DS,ug as Tw,uh as Gw,uj as fA,uk as XA,ul as vv,um as ea,un as Qa,uo as Yc,v as Zb,vc as zC,vd as RT,ve as Jn,vf as $S,vg as Sw,vh as Uw,vj as _A,vk as YA,vl as Ov,vm as ta,vn as ec,vo as Jc,wa as tn,wc as VC,wd as PT,we as Zn,wf as FS,wg as ww,wh as Bw,wi as Qi,wk as JA,wl as Rs,wm as ra,wn as tc,wo as Zc,x as Wo,xa as rn,xc as HC,xd as MT,xe as Qn,xf as jS,xg as Ew,xh as qw,xi as Nt,xj as hA,xl as Ps,xm as oa,xn as rc,xo as Qc,y as Ot,ya as on,yc as KC,yd as kT,ye as ei,yf as GS,yg as Aw,yh as zw,yi as TE,yj as gA,yk as ZA,yl as Ms,ym as na,yn as oc,yo as ed,z as fe,zc as WC,zd as xT,ze as ti,zf as US,zg as vw,zh as Vw,zi as SE,zj as yA,zk as QA,zl as ks,zm as ia,zn as nc,zo as jt}from"./chunks/chunk-CM57QHVK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="08485124-a2f1-5bb5-9316-533a3f7888bc")}catch{}})();var K="2026-07-28",o0=["2025-11-25","2025-06-18"],et=[K],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},A={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},lr=["debug","info","notice","warning","error","critical","alert","emergency"],p=class extends Error{code;data;constructor(t,r,o={}){super(t),this.name="PmMcpProtocolError",this.code=r,this.data=o}};function _(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Gh(e){if(e===void 0)return;if(!_(e))throw new p("Invalid MCP clientInfo metadata",m.invalidParams,{field:A.clientInfo,expected:"object"});let t=typeof e.name=="string"?e.name.trim():"",r=typeof e.version=="string"?e.version.trim():"";if(t.length===0||r.length===0)throw new p("Invalid MCP clientInfo metadata",m.invalidParams,{field:A.clientInfo,required:["name","version"]});let o={name:t.slice(0,128),version:r.slice(0,128)};return typeof e.description=="string"&&e.description.trim()&&(o.description=e.description.trim().slice(0,1024)),typeof e.websiteUrl=="string"&&e.websiteUrl.trim()&&(o.websiteUrl=e.websiteUrl.trim().slice(0,2048)),o}function Uh(e){if(e!==void 0){if(typeof e!="string"||!lr.includes(e))throw new p("Invalid MCP logLevel metadata",m.invalidParams,{field:A.logLevel,allowed:[...lr]});return e}}function tt(e){let t=_(e)?e._meta:void 0;if(!_(t))throw new p("Missing required MCP request metadata",m.invalidParams,{required:[A.protocolVersion,A.clientCapabilities]});let r=t[A.protocolVersion];if(typeof r!="string"||!et.includes(r))throw new p("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...et],requested:typeof r=="string"?r:null});let o=t[A.clientCapabilities];if(!_(o))throw new p("Invalid MCP client capabilities metadata",m.invalidParams,{field:A.clientCapabilities,expected:"object"});let n=Gh(t[A.clientInfo]),i=Uh(t[A.logLevel]);return{protocolVersion:K,clientCapabilities:o,...n?{clientInfo:n}:{},...i?{logLevel:i}:{}}}function n0(e,t){if(t!==e.protocolVersion)throw new p("MCP protocol header does not match request metadata",m.headerMismatch,{header:t??null,metadata:e.protocolVersion})}function i0(e,t){let r=t.filter(o=>!Object.prototype.hasOwnProperty.call(e.clientCapabilities,o));if(r.length>0)throw new p("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:Object.fromEntries(r.map(o=>[o,{}]))})}function s0(e,t){let r=e.clientCapabilities.extensions;return _(r)&&_(r[t])}function rt(e,t){let r=_(e._meta)?e._meta:{};return{...e,_meta:{...r,[A.serverInfo]:{...t}}}}function Bh(e,t){return rt({...e,resultType:"complete"},t)}function a0(e){let t=e.ttlMs??6e4;if(!Number.isFinite(t)||t<0)throw new p("Invalid MCP discovery cache TTL",m.invalidParams,{ttlMs:t});return Bh({supportedVersions:[...et],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function c0(e,t){if(_(e)&&typeof e.resultType=="string")return e.resultType;if(t==="legacy")return"complete";throw new p("Modern MCP result is missing resultType",m.invalidParams,{required:"resultType"})}import{createHash as mr,createHmac as fr,timingSafeEqual as qh}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6505e714-d1f3-5794-88c8-51c1644acec9")}catch{}})();var zh=["elicitation/create","roots/list","sampling/createMessage"],ur=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},_r=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,ge=32,nt=64*1024,ye=16*1024,ot={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function Vh(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function be(e,t,r){let o;try{o=JSON.stringify(e)}catch{throw new p(`Invalid ${r}: value is not JSON serializable`,m.invalidParams,{field:r})}if(Buffer.byteLength(o,"utf8")>t)throw new p(`Invalid ${r}: payload exceeds the protocol bound`,m.invalidParams,{field:r,maximumBytes:t})}function it(e,t){if(!_(e))throw new p("Invalid MCP inputRequests",m.invalidParams,{field:"inputRequests",expected:"object"});let r=Object.entries(e);if(r.length===0||r.length>ge)throw new p("Invalid MCP inputRequests count",m.invalidParams,{minimum:1,maximum:ge,observed:r.length});let o={};for(let[n,i]of r){if(!_r.test(n)||!_(i))throw new p("Invalid MCP input request entry",m.invalidParams,{field:`inputRequests.${n}`});let s=i.method;if(typeof s!="string"||!zh.includes(s))throw new p("Unsupported MCP input request method",m.invalidParams,{field:`inputRequests.${n}.method`,method:s??null});let a=Vh(s);if(!Object.prototype.hasOwnProperty.call(t.clientCapabilities,a))throw new p("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:{[a]:{}}});if(!_(i.params))throw new p("Invalid MCP input request parameters",m.invalidParams,{field:`inputRequests.${n}.params`,expected:"object"});o[n]={method:s,params:structuredClone(i.params)}}return be(o,nt,"inputRequests"),o}function hr(e){if(!_(e))throw new p("Invalid MCP inputResponses",m.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>ge)throw new p("Invalid MCP inputResponses count",m.invalidParams,{maximum:ge,observed:t.length});let r={};for(let[o,n]of t){if(!_r.test(o)||!_(n))throw new p("Invalid MCP input response entry",m.invalidParams,{field:`inputResponses.${o}`});r[o]=structuredClone(n)}return be(r,nt,"inputResponses"),r}function p0(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>ye)throw new p("Invalid MCP requestState: payload exceeds the protocol bound",m.invalidParams,{field:"requestState",maximumBytes:ye});let r=e.inputRequests===void 0?void 0:it(e.inputRequests,e.requestContext);if(r===void 0&&!t)throw new p("InputRequiredResult requires inputRequests or requestState",m.invalidParams,{requiredAnyOf:["inputRequests","requestState"]});return{resultType:"input_required",...r?{inputRequests:r}:{},...t?{requestState:t}:{},_meta:{[A.serverInfo]:{...e.serverInfo}}}}function gr(e){let t=Buffer.from(e);if(t.byteLength<32)throw new p("MCP requestState signing key must contain at least 32 bytes",m.invalidParams,{minimumBytes:32});return t}function m0(e,t){if(!Number.isSafeInteger(e.expiresAt)||e.expiresAt<=0||e.method.trim().length===0||e.parameterDigest.trim().length===0||e.principal.trim().length===0)throw new p("Invalid MCP requestState payload",m.invalidParams);let r=Buffer.from(JSON.stringify({version:1,...e}),"utf8");if(r.byteLength>ye/2)throw new p("MCP requestState payload exceeds the protocol bound",m.invalidParams,{maximumBytes:ye/2});let o=r.toString("base64url"),n=fr("sha256",gr(t)).update(o).digest("base64url");return`${o}.${n}`}function Hh(e){if(!_(e)||e.version!==1)throw new p("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});let{expiresAt:t,method:r,parameterDigest:o,principal:n,state:i}=e;if(typeof t!="number"||!Number.isSafeInteger(t))throw new p("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});if(typeof r!="string"||typeof o!="string"||typeof n!="string")throw new p("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});return{expiresAt:t,method:r,parameterDigest:o,principal:n,state:i}}function f0(e,t,r){let[o,n,i]=e.split(".");if(!o||!n||i!==void 0)throw new p("Invalid MCP requestState encoding",m.invalidParams,{field:"requestState"});let s=Buffer.from(n,"base64url"),a=fr("sha256",gr(t)).update(o).digest();if(s.byteLength!==a.byteLength||!qh(s,a))throw new p("Invalid MCP requestState signature",m.invalidParams,{field:"requestState"});let c;try{c=JSON.parse(Buffer.from(o,"base64url").toString("utf8"))}catch{c=null}let d=Hh(c),{expiresAt:l,method:u,parameterDigest:f,principal:g}=d;if(l<(r.nowMs??Date.now()))throw new p("Expired MCP requestState",m.invalidParams,{field:"requestState",expiredAt:l});if(u!==r.method||f!==r.parameterDigest||g!==r.principal)throw new p("MCP requestState binding mismatch",m.invalidParams,{field:"requestState"});return d}function _0(e){return be(e,nt,"request parameters"),mr("sha256").update(JSON.stringify(e)).digest("hex")}var pr=class{#e=new Set;#t;constructor(t=4096){if(!Number.isSafeInteger(t)||t<1)throw new p("Invalid MCP replay guard capacity",m.invalidParams,{maximumEntries:t});this.#t=t}consume(t){let r=mr("sha256").update(t).digest("hex");if(this.#e.has(r))throw new p("MCP requestState replay detected",m.invalidParams,{field:"requestState"});if(this.#e.size>=this.#t){let o=this.#e.values().next().value;this.#e.delete(o)}this.#e.add(r)}};function Kh(e){if(!Number.isSafeInteger(e.ttlMs)||e.ttlMs<0||e.cacheScope!=="public"&&e.cacheScope!=="private")throw new p("Invalid MCP cache policy",m.invalidParams,{ttlMs:e.ttlMs,cacheScope:e.cacheScope});return{ttlMs:e.ttlMs,cacheScope:e.cacheScope}}function h0(e,t){return{...e,...Kh(t)}}function Wh(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function Xh(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let o of t.slice(2).split("/").map(Wh)){if(!_(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}function Yh(e){let t=e.maxBytes??ot.maxBytes,r=e.maxDepth??ot.maxDepth,o=e.maxNodes??ot.maxNodes;if(!Number.isSafeInteger(t)||t<2)throw new p("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(r)||r<1)throw new p("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(o)||o<1)throw new p("Invalid MCP JSON Schema work bounds",m.invalidParams);return{maximumBytes:t,maximumDepth:r,maximumNodes:o}}function Jh(e,t){let r=Array.isArray(e.value)?e.value:_(e.value)?Object.values(e.value):[];for(let o of r)t.push({value:o,depth:e.depth+1})}function Zh(e,t){if(!_(t)||typeof t.$ref!="string")return;let r=t.$ref;if(r.startsWith("#")&&Xh(e,r)===void 0)throw new p("MCP JSON Schema contains an unresolved local reference",m.invalidParams,{reference:r})}function g0(e,t={}){let{maximumBytes:r,maximumDepth:o,maximumNodes:n}=Yh(t);if(typeof e!="boolean"&&!_(e))throw new p("Invalid MCP JSON Schema root",m.invalidParams,{expected:"object or boolean"});be(e,r,"JSON Schema");let i=[{value:e,depth:0}],s=0;for(;i.length>0;){let a=i.pop();if(s+=1,s>n||a.depth>o)throw new p("MCP JSON Schema exceeds validation work bounds",m.invalidParams,{maximumDepth:o,maximumNodes:n});Zh(e,a.value),Jh(a,i)}return structuredClone(e)}import{randomUUID as Qh}from"node:crypto";import{readFile as eg}from"node:fs/promises";import yr from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7f5b3ba6-07cf-5317-8f62-63e84f561232")}catch{}})();var A0="io.modelcontextprotocol/tasks",tg=["working","input_required","completed","failed","cancelled"],rg=/^mcp-task-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,og=3600*1e3,ng=1e3,Te=1024,ig=30,sg=2e3;function st(e){return new p(e,m.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function Ce(e){let t=e.trim();if(!rg.test(t))throw st("Unknown MCP task");return t}function br(e,t){if(typeof e!="string"||!Number.isFinite(Date.parse(e)))throw new p("Corrupt MCP task record",m.invalidParams,{field:t});return e}function Cr(e){if(!_(e)||typeof e.code!="number"||!Number.isFinite(e.code)||typeof e.message!="string")throw new p("Corrupt MCP task error",m.invalidParams);return{code:e.code,message:e.message.slice(0,Te),..._(e.data)?{data:structuredClone(e.data)}:{}}}function ag(e){if(!tg.includes(e))throw new p("Corrupt MCP task record",m.invalidParams);return e}function cg(e){if(typeof e!="string"||e.length===0)throw new p("Corrupt MCP task record",m.invalidParams);return e}function dg(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new p("Corrupt MCP task record",m.invalidParams);return e}function lg(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new p("Corrupt MCP task record",m.invalidParams);return e}function ug(e){if(e!==void 0){if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new p("Corrupt MCP task record",m.invalidParams);return e}}function pg(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new p("Corrupt MCP task record",m.invalidParams);return[...e]}function mg(e){if(!_(e)||e.version!==1)throw new p("Corrupt MCP task record",m.invalidParams);let t=typeof e.taskId=="string"?Ce(e.taskId):"",r=ag(e.status),o=cg(e.principal),n=dg(e.workerPid),i=lg(e.ttlMs),s=ug(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:o,workerPid:n,createdAt:br(e.createdAt,"createdAt"),lastUpdatedAt:br(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:i,consumedInputKeys:pg(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,Te)}:{},...typeof s=="number"?{pollIntervalMs:s}:{}};if(_(e.inputRequests)&&(a.inputRequests=structuredClone(e.inputRequests)),_(e.inputResponses)&&(a.inputResponses=structuredClone(e.inputResponses)),_(e.result)&&(a.result=structuredClone(e.result)),e.error!==void 0&&(a.error=Cr(e.error)),a.status==="input_required"&&!a.inputRequests||a.status==="completed"&&!a.result||a.status==="failed"&&!a.error)throw new p("Corrupt MCP task status payload",m.invalidParams,{status:a.status});return a}function W(e){let t={taskId:e.taskId,status:e.status,createdAt:e.createdAt,lastUpdatedAt:e.lastUpdatedAt,ttlMs:e.ttlMs,...e.statusMessage?{statusMessage:e.statusMessage}:{},...e.pollIntervalMs===void 0?{}:{pollIntervalMs:e.pollIntervalMs}};return e.status==="input_required"?{...t,status:"input_required",inputRequests:structuredClone(e.inputRequests)}:e.status==="completed"?{...t,status:"completed",result:structuredClone(e.result)}:e.status==="failed"?{...t,status:"failed",error:structuredClone(e.error)}:e.status==="cancelled"?{...t,status:"cancelled"}:{...t,status:"working"}}function ne(e){return e==="completed"||e==="failed"||e==="cancelled"}function fg(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var at=class{#e;#t;#r;#o;#i;constructor(t){this.#e=yr.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${Qh()}`),this.#i=t.workerPid??process.pid}#s(t){return yr.join(this.#e,"runtime","mcp-tasks","records",`${Ce(t)}.json`)}async#c(t){try{return mg(JSON.parse(await eg(this.#s(t),"utf8")))}catch(r){throw fe(r)||r instanceof SyntaxError?st("Unknown MCP task"):r}}async#a(t){await Ge(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
|
|
1
|
+
import{A as BM,B as qM,C as zM,D as VM,E as HM,a as ni,b as rw,c as ow,d as nw,e as iw,f as sw,g as ds,h as ls,i as us,j as ps,k as ms,l as jM,m as GM,n as Rh,o as Ph,p as Mh,r as kh,s as xh,t as Nh,u as Lh,v as Dh,w as $h,x as Fh,y as jh,z as UM}from"./chunks/chunk-KOUT5SAA.js";import{A as kk,B as xk,C as Nk,D as Lk,E as Dk,F as $k,G as Fk,H as jk,I as Gk,J as Uk,K as Bk,L as qk,M as zk,N as Vk,O as Hk,P as Kk,Q as Wk,R as Xk,S as Yk,T as Jk,U as Zk,V as Qk,W as e0,X as t0,Y as r0,a as sk,b as ak,c as ck,d as dk,e as lk,f as uk,g as pk,h as mk,i as fk,j as _k,k as hk,l as gk,m as yk,n as bk,o as Ck,p as Tk,q as Sk,r as wk,s as Ek,t as Ak,u as vk,v as Ok,w as Ik,x as Rk,y as Pk,z as Mk}from"./chunks/chunk-ZWSWR2GX.js";import{a as KM,b as WM,c as XM,d as YM}from"./chunks/chunk-WBB5B7G5.js";import{a as JM,b as ZM,c as QM,d as ek,e as tk,f as rk,g as ok,h as nk,i as ik}from"./chunks/chunk-NBGSRFZE.js";import{$ as fm,$a as r_,$b as rh,A as Ze,Aa as Ef,Ab as R_,B as em,Ba as Af,Bb as P_,C as tm,Ca as vf,Cb as M_,D as rm,Da as Of,Db as k_,E as om,Ea as If,Eb as x_,F as nm,Fa as Rf,Fb as N_,G as Zt,Ga as Pf,Gb as L_,H as Qt,Ha as Mf,Hb as D_,I as er,Ia as kf,Ib as $_,J as tr,Ja as xf,Jb as F_,K as rr,Ka as Nf,Kb as j_,L as or,La as Lf,Lb as G_,M as nr,Ma as Df,Mb as U_,N as ir,Na as $f,Nb as B_,O as sr,Oa as Ff,Ob as q_,P as ar,Pa as jf,Pb as z_,Q as cr,Qa as Gf,Qb as V_,R as im,Ra as Uf,Rb as H_,S as sm,Sa as Bf,Sb as K_,T as am,Ta as qf,Tb as W_,U as cm,Ua as zf,Ub as X_,V as dm,Va as dr,Vb as Y_,W as Qe,Wa as he,Wb as J_,X as lm,Xa as Zf,Xb as Z_,Y as um,Ya as Qf,Yb as Q_,Z as pm,Za as e_,Zb as eh,_ as mm,_a as t_,_b as th,a as YS,aa as _m,ab as o_,ac as oh,b as JS,ba as hm,bb as n_,bc as nh,c as ZS,ca as gm,cb as i_,cc as ih,d as QS,da as CM,db as s_,dc as sh,e as ew,ea as TM,eb as a_,ec as ah,f as tw,fa as SM,fb as c_,fc as ch,g as ci,ga as Om,gb as d_,gc as dh,h as di,ha as Im,hb as l_,hc as lh,i as li,ia as Rm,ib as u_,ic as uh,j as BE,ja as _f,jb as p_,jc as ph,k as qE,ka as hf,kb as m_,kc as mh,l as os,la as MM,lb as f_,lc as fh,m as xI,ma as kM,mb as __,mc as _h,n as NI,na as xM,nb as h_,nc as hh,o as LI,oa as NM,ob as g_,oc as gh,p as DI,pa as LM,pb as y_,pc as yh,q as $I,qa as DM,qb as b_,qc as bh,r as FI,ra as $M,rb as C_,rc as Ch,s as ml,sa as FM,sb as T_,sc as Th,t as qu,ta as gf,tb as S_,tc as Sh,u as zu,ua as yf,ub as w_,uc as wh,v as Wu,va as bf,vb as E_,vc as Eh,w as Xu,wa as Cf,wb as A_,wc as Ah,x as mp,xa as Tf,xb as v_,xc as vh,y as Cp,ya as Sf,yb as O_,yc as Oh,z as cP,za as wf,zb as I_,zc as Ih}from"./chunks/chunk-VO7DHENB.js";import{e as UI,f as BI,g as fl,h as _l,i as Xt}from"./chunks/chunk-SXRMM72R.js";import{A as dM,B as lM,C as uM,D as pM,E as mM,F as fM,G as _M,H as hM,I as gM,J as yM,K as bM,L as Cm,M as Tm,N as Sm,O as wm,P as Em,Q as Am,R as vm,a as VR,b as HR,c as KR,d as WR,e as XR,f as Bu,g as YR,h as JR,i as ZR,j as QR,k as eP,m as Ku,n as ym,o as ZP,p as QP,q as eM,r as tM,s as rM,t as oM,u as bm,v as nM,w as iM,x as sM,y as aM,z as cM}from"./chunks/chunk-E6ZES2X7.js";import{$ as pI,$a as Al,$b as Lu,$c as Zp,A as UO,Ab as WI,Ac as tp,Ad as Zm,B as BO,Bb as XI,Bc as rp,Bd as Qm,C as qO,Cb as YI,Cc as op,Cd as ef,D as zO,Db as JI,Dc as np,Dd as tf,E as VO,Ea as Jd,Eb as ZI,Ec as ip,Ed as rf,F as Je,Fa as Zd,Fb as yR,Fc as sp,Fd as of,G as HO,Ga as Qd,Gb as bR,Gc as ap,Gd as nf,H as qt,Ha as el,Hb as CR,Hc as cp,Hd as sf,I as KO,Ia as tl,Ib as TR,Ic as dp,Id as af,J as WO,Jb as SR,Jc as lp,Jd as cf,K as XO,Ka as rl,Kb as wR,Kc as up,Kd as df,L as YO,La as ol,Lb as ER,Ld as lf,M as JO,Ma as nl,Mb as PR,Mc as sP,Md as uf,N as ZO,Na as il,Nb as MR,Nc as aP,Nd as pf,O as QO,Oa as jI,Ob as Ou,Oc as pp,Od as mf,P as eI,Pa as GI,Pb as Iu,Pc as Tp,Pd as ff,Q as tI,Qa as sl,Qb as kR,Qd as Vf,R as rI,Ra as al,Rb as xR,Rd as Hf,S as oI,Sa as cl,Sb as NR,Sd as Kf,T as nI,Ta as dl,Tb as LR,Tc as Sp,Td as Wf,U as iI,Ua as ll,Ub as DR,Ud as Xf,V as sI,Va as ul,Vb as Ru,Vc as wp,Vd as Yf,W as aI,Wa as pl,Wb as Pu,Wc as Kp,Wd as Jf,X as cI,Xa as Tl,Xb as Mu,Xc as Wp,Y as dI,Ya as Sl,Yb as ku,Yc as Xp,Z as lI,Za as wl,Zb as xu,Zc as Yp,_ as uI,_a as El,_b as Nu,_c as Jp,a as kO,aa as mI,ab as vl,ac as Du,ad as Qp,b as Gt,ba as fI,bb as Ol,bc as $u,bd as Pm,c as xO,ca as _I,cb as Il,cc as Fu,cd as Mm,d as Xe,da as hI,db as Rl,dc as ju,dd as km,e as oe,ea as gI,eb as Pl,ec as Gu,ed as xm,f as md,fa as yI,fb as Ml,fc as $R,fd as Nm,gb as kl,gc as FR,gd as Lm,hb as xl,hc as jR,hd as Dm,i as Ye,ib as Nl,ic as GR,id as $m,j as fd,jb as Ll,jc as UR,jd as Fm,k as _d,kb as Dl,kc as BR,kd as IM,la as Yd,lb as $l,lc as qR,ld as RM,m as _e,mb as Fl,mc as zR,md as PM,n as hd,nb as zI,nc as Uu,nd as jm,o as gd,ob as jl,oc as tP,od as Gm,p as yd,pb as Gl,pc as rP,pd as Um,q as bd,qb as Ul,qc as oP,qd as Bm,r as NO,rb as Bl,rc as nP,rd as qm,s as LO,sb as VI,sc as iP,sd as zm,t as DO,tb as ql,tc as Vu,td as Vm,u as $O,ub as zl,uc as Hu,ud as Hm,v as FO,vb as Vl,vc as Yu,vd as Km,w as Ut,wb as Hl,wc as Ju,wd as Wm,x as jO,xb as Kl,xc as Zu,xd as Xm,y as GO,yb as HI,yc as Qu,yd as Ym,z as Bt,zb as KI,zc as ep,zd as Jm}from"./chunks/chunk-OBTHQ6UX.js";import{A as OI,Aa as Ht,B as Rd,Ba as Kt,C as Pd,Ca as Wt,D as Md,Da as Dd,Fa as $d,Ga as Fd,Ha as jd,M as II,Ma as Gd,N as RI,Na as Ud,P as PI,Pa as Bd,Q as MI,Qa as qd,R as kI,Ra as zd,S as kd,Sa as Vd,T as xd,Ta as Hd,U as Nd,V as Ld,Va as Kd,W as zt,Wa as Wd,Xa as Xd,a as WE,b as XE,c as ns,d as is,e as ss,f as as,g as cs,i as Cd,j as Td,l as Sd,m as wd,n as bI,o as CI,p as TI,q as SI,r as wI,s as EI,t as AI,u as vI,v as Ed,w as Ad,x as vd,y as Od,z as Id,za as Vt}from"./chunks/chunk-6WBR6GMW.js";import{$ as CO,$a as vu,$b as yP,$c as wM,Aa as Ql,Ac as VP,Ba as eu,Bb as AR,Bc as HP,Ca as tu,Cb as vR,Cc as KP,Da as ru,Db as OR,Dc as Yt,Ea as ou,Eb as IR,Ec as Rp,Fa as nu,Fb as RR,Fc as Pp,G as uO,Ga as iu,Gb as fp,Gc as Mp,H as pO,Ha as su,Hb as _p,Hc as kp,I as mO,Ia as au,Ib as hp,Ic as xp,J as fO,Ja as cu,Jb as gp,Jc as Np,K as _O,Ka as du,Kb as yp,Kc as Lp,L as hO,La as lu,Lb as bp,Lc as Dp,M as gO,Ma as uu,Mb as Ep,Mc as $p,N as yO,Na as pu,Nb as Ap,Nc as Fp,O as td,Oa as mu,Ob as vp,Oc as jp,P as rd,Pa as fu,Pb as Op,Pc as Gp,Q as od,Qa as _u,Qb as dP,Qc as Up,R as nd,Ra as hu,Rb as lP,Rc as Bp,S as id,Sa as gu,Sb as uP,Sc as qp,T as sd,Ta as yu,Tb as pP,Tc as zp,U as ad,Ua as bu,Ub as mP,Uc as Jt,V as cd,Va as Cu,Vb as fP,Vc as Vp,W as dd,Wa as Tu,Wb as _P,Wc as WP,X as ld,Xa as Su,Xc as XP,Y as ud,Ya as wu,Yb as Ip,Yc as YP,Z as We,Za as Eu,Zb as hP,Zc as Hp,_ as bO,_a as Au,_b as gP,_c as JP,aa as TO,ac as bP,ad as EM,b as jE,ba as SO,bc as CP,bd as AM,c as GE,ca as wO,cb as QI,cc as TP,cd as vM,d as UE,da as EO,db as eR,dc as SP,dd as OM,e as zE,eb as tR,ec as wP,f as VE,fb as rR,fc as EP,g as HE,ga as AO,gb as oR,gc as AP,h as KE,ha as vO,hb as nR,hc as vP,i as Xv,ia as OO,ib as iR,ic as OP,j as Yv,ja as IO,jb as sR,jc as IP,k as Jv,ka as RO,kb as aR,kc as RP,l as Zv,la as PO,lb as cR,lc as PP,m as Qv,ma as MO,mb as dR,mc as MP,n as eO,na as pd,nb as lR,nc as kP,o as tO,oa as hl,ob as uR,oc as xP,p as rO,pa as gl,pc as NP,q as oO,qa as yl,qc as LP,r as nO,ra as bl,rc as DP,s as iO,sa as qI,sb as pR,sc as $P,t as sO,tc as FP,u as aO,ua as Cl,ub as mR,uc as jP,v as cO,va as Wl,vb as fR,vc as GP,w as dO,wa as Xl,wc as UP,x as lO,xa as Yl,xb as _R,xc as BP,ya as Jl,yb as hR,yc as qP,za as Zl,zb as gR,zc as zP}from"./chunks/chunk-PFWCAI4X.js";import{$a as EC,$c as Cn,$d as Rn,$e as kt,$f as fw,$g as ji,$h as lE,$i as QE,$k as Ts,$l as Fv,$m as ka,$n as Rc,A as Xo,Ac as XC,Ad as NT,Ae as JT,Af as BS,Ag as Ow,Ah as Hw,Ai as wE,Aj as bA,Ak as ev,Al as xs,Am as sa,An as ic,B as Ge,Bc as hn,Bd as LT,Be as ZT,Bf as qS,Bg as Iw,Bh as Kw,Bi as EE,Bj as CA,Bk as tv,Bl as Ns,Bm as aa,Bn as sc,C as Yo,Cc as YC,Cd as DT,Ce as QT,Cf as zS,Cg as Rw,Ch as Ww,Ci as AE,Cj as TA,Ck as rv,Cl as Ls,Cm as ca,Cn as ac,Dc as JC,Dd as $T,De as eS,Df as VS,Dg as Ei,Di as vE,Dj as SA,Dk as ov,Dl as Ds,Dm as da,Dn as cc,E as Qb,Eb as vC,Ec as ZC,Ed as FT,Ee as tS,Ef as HS,Eg as Ai,Eh as Xw,Ei as OE,Ej as wA,Ek as nv,El as $s,En as dc,F as eC,Fc as QC,Fd as jT,Fe as rS,Ff as KS,Fg as $,Fh as Ki,Fi as IE,Fj as EA,Fk as iv,Fl as Fs,Fm as la,Fn as lc,G as tC,Gb as OC,Gc as eT,Ge as oS,Gg as vi,Gh as Wi,Gi as RE,Gk as sv,Gl as js,Gm as ua,Gn as uc,H as rC,Hb as IC,Hc as tT,Hd as GT,He as nS,Hf as WS,Hj as AA,Hk as av,Hl as Gs,Hm as pa,Hn as pc,I as oC,Ib as RC,Ic as rT,Id as UT,Ie as iS,If as XS,Ii as PE,Ij as vA,Ik as Dt,Il as Us,Im as ma,In as mc,J as nC,Jb as PC,Jc as oT,Jd as BT,Je as sS,Jf as ii,Ji as ME,Jj as OA,Jk as cv,Jl as Bs,Jm as fa,Jn as fc,Kb as MC,Kc as gn,Kd as qT,Ke as aS,Kf as si,Ki as kE,Kj as IA,Kl as qs,Km as _a,Kn as _c,L as iC,Lc as nT,Ld as zT,Le as cS,Lf as ai,Lh as Yw,Li as xE,Lj as RA,Ll as zs,Lm as ha,Ln as hc,M as sC,Mc as yn,Md as VT,Me as dS,Mf as aw,Mg as Pw,Mh as Jw,Mi as es,Mk as dv,Ml as Vs,Mm as ga,Mn as gc,Na as gC,Nb as kC,Nd as HT,Ne as lS,Nf as cw,Ng as Mw,Nh as Zw,Ni as ts,Nj as PA,Nk as lv,Nl as Hs,Nm as ya,Nn as yc,Oa as yC,Ob as xC,Oc as iT,Od as KT,Oe as uS,Of as dw,Og as kw,Oh as Qw,Ok as uv,Om as ba,On as bc,P as aC,Pa as bC,Pc as sT,Pd as WT,Pe as pS,Pf as lw,Pg as Oi,Ph as eE,Pi as rs,Pj as MA,Pk as pv,Pl as Iv,Pm as Ca,Pn as Cc,Qc as aT,Qd as XT,Qe as mS,Qf as uw,Qg as Ii,Qh as tE,Qi as NE,Qj as kA,Qk as mv,Ql as Rv,Qm as Ta,Qn as Tc,Rb as P,Rc as cT,Rd as YT,Re as fS,Rg as Ri,Rj as xA,Rk as fv,Rm as Sa,Rn as Sc,S as cC,Sa as nn,Sb as NC,Sc as dT,Sd as Sn,Se as _S,Sf as pw,Sg as Pi,Sh as rE,Si as LE,Sj as NA,Sk as _v,Sm as wa,Sn as wc,Ta as CC,Tb as It,Td as wn,Te as hS,Tg as Mi,Ti as DE,Tj as LA,Tk as hv,Tl as Pv,Tm as Ea,Tn as Ec,U as dC,Ua as TC,Ub as LC,Ud as En,Ue as gS,Ug as ki,Uh as oE,Ui as $E,Uk as _s,Ul as Mv,Um as Aa,Un as Ac,V as lC,Va as SC,Vd as An,Ve as yS,Vg as xi,Vh as nE,Vk as hs,Vl as kv,Vm as va,Vn as vc,W as uC,Wa as wC,Wb as DC,Wd as vn,We as bS,Wg as Ni,Wh as iE,Wi as FE,Wk as gs,Wl as xv,Wm as Oa,Wn as Oc,Xd as On,Xe as CS,Xg as Li,Xh as sE,Xk as ys,Xl as Nv,Xm as Ia,Ya as sn,Yc as Rt,Yd as In,Ye as TS,Yf as mw,Yg as Di,Yh as aE,Yi as YE,Yk as bs,Yl as Lv,Ym as Ra,Yn as Ke,Za as an,Zc as Pt,Zd as Be,Ze as Mt,Zg as $i,Zh as cE,Zi as JE,Zk as Cs,Zl as Dv,Zm as Pa,Zn as re,_a as Ue,_c as bn,_d as qe,_f as ui,_g as Fi,_h as dE,_i as ZE,_l as $v,_m as Ma,_n as Ic,ad as Tn,ae as Pn,af as ri,ag as pi,ah as Gi,ai as uE,aj as eA,al as Ss,am as jv,an as xa,ao as Pc,b as jo,ba as pC,bb as cn,be as Mn,bf as oi,bh as Ui,bi as pE,bj as tA,bk as DA,bl as ws,bm as Ve,bn as Na,bo as Mc,c as Go,cb as dn,cd as lT,ce as kn,cf as xt,cg as _w,ch as xw,ci as mE,ck as $A,cl as Es,cm as Gv,cn as La,co as kc,d as Uo,da as mC,dd as uT,de as xn,dg as hw,dh as Nw,di as fE,dj as rA,dk as FA,dl as As,dm as Uv,dn as Da,do as xc,e as Bo,eb as ln,ed as pT,ee as Nn,ef as SS,eg as gw,eh as Bi,ei as _E,ej as oA,ek as jA,el as vs,em as Bv,en as $a,eo as Nc,f as $e,fd as mT,fe as Ln,fg as mi,fh as Lw,fi as hE,fk as GA,fl as Os,fm as Ft,fn as Fa,fo as Lc,g as qo,ga as fC,gc as $C,gd as fT,ge as Dn,gf as wS,gg as fi,gh as qi,gk as UA,gl as Is,gm as He,gn as ja,go as Dc,h as L,hc as FC,hd as _T,he as $n,hf as ze,hg as _i,hh as zi,hj as fs,hk as BA,hl as gv,hm as qv,hn as Ga,ho as $c,i as Fe,ic as jC,id as hT,ie as Fn,if as ES,ig as hi,ih as Vi,ii as gE,ij as nA,ik as qA,il as yv,im as zv,in as Ua,io as Fc,j as zo,jd as gT,je as jn,jf as AS,jg as gi,jh as Hi,ji as yE,jj as iA,jk as zA,jl as bv,jm as Vv,jn as Ba,jo as jc,k as Vo,ka as _C,kc as GC,kd as yT,ke as Gn,kf as vS,kg as yi,ki as Xi,kj as sA,kk as Lt,kl as Cv,km as Hv,kn as qa,ko as Gc,l as Ho,la as D,lc as UC,ld as bT,le as Un,lf as OS,lg as bi,li as bE,lj as aA,ll as Tv,lm as Kv,ln as za,lo as Uc,m as Ko,ma as hC,md as CT,me as Bn,mf as IS,mg as yw,mj as cA,mk as VA,ml as Sv,mm as Wv,mn as Va,mo as Bc,n as Kb,na as b,nc as BC,nd as TT,ne as qn,nf as RS,ng as bw,ni as Yi,nj as dA,nl as wv,nm as Ks,nn as Ha,no as qc,o as je,oa as Jo,oc as mn,od as ST,oe as zn,of as PS,oi as Ji,ok as HA,ol as Ev,om as Ws,on as Ka,oo as zc,p as vt,pa as Zo,pd as wT,pe as Vn,pf as MS,pg as Ci,pi as Zi,pj as lA,pm as Xs,pn as Wa,po as Vc,q as Wb,qa as Qo,qc as fn,qd as ET,qe as Hn,qf as kS,qg as Ti,qh as Dw,qj as uA,qm as Ys,qn as Xa,qo as Hc,r as Xb,rb as un,rc as _n,rd as AT,re as Kn,rf as xS,rg as Cw,rh as $w,rj as pA,rm as Js,rn as Ya,ro as Kc,s as Yb,sb as pn,sd as vT,se as Wn,sf as NS,sg as Si,sh as Fw,si as CE,sj as mA,sk as KA,sl as $t,sm as Zs,sn as Ja,so as Wc,t as Jb,tb as AC,td as OT,te as Xn,tf as LS,tg as wi,th as jw,tk as WA,tl as Av,tm as Qs,tn as Za,to as Xc,u as H,ua as en,uc as qC,ud as IT,ue as Yn,uf as DS,ug as Tw,uh as Gw,uj as fA,uk as XA,ul as vv,um as ea,un as Qa,uo as Yc,v as Zb,vc as zC,vd as RT,ve as Jn,vf as $S,vg as Sw,vh as Uw,vj as _A,vk as YA,vl as Ov,vm as ta,vn as ec,vo as Jc,wa as tn,wc as VC,wd as PT,we as Zn,wf as FS,wg as ww,wh as Bw,wi as Qi,wk as JA,wl as Rs,wm as ra,wn as tc,wo as Zc,x as Wo,xa as rn,xc as HC,xd as MT,xe as Qn,xf as jS,xg as Ew,xh as qw,xi as Nt,xj as hA,xl as Ps,xm as oa,xn as rc,xo as Qc,y as Ot,ya as on,yc as KC,yd as kT,ye as ei,yf as GS,yg as Aw,yh as zw,yi as TE,yj as gA,yk as ZA,yl as Ms,ym as na,yn as oc,yo as ed,z as fe,zc as WC,zd as xT,ze as ti,zf as US,zg as vw,zh as Vw,zi as SE,zj as yA,zk as QA,zl as ks,zm as ia,zn as nc,zo as jt}from"./chunks/chunk-7IABMUB6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="08485124-a2f1-5bb5-9316-533a3f7888bc")}catch{}})();var K="2026-07-28",o0=["2025-11-25","2025-06-18"],et=[K],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},A={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},lr=["debug","info","notice","warning","error","critical","alert","emergency"],p=class extends Error{code;data;constructor(t,r,o={}){super(t),this.name="PmMcpProtocolError",this.code=r,this.data=o}};function _(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Gh(e){if(e===void 0)return;if(!_(e))throw new p("Invalid MCP clientInfo metadata",m.invalidParams,{field:A.clientInfo,expected:"object"});let t=typeof e.name=="string"?e.name.trim():"",r=typeof e.version=="string"?e.version.trim():"";if(t.length===0||r.length===0)throw new p("Invalid MCP clientInfo metadata",m.invalidParams,{field:A.clientInfo,required:["name","version"]});let o={name:t.slice(0,128),version:r.slice(0,128)};return typeof e.description=="string"&&e.description.trim()&&(o.description=e.description.trim().slice(0,1024)),typeof e.websiteUrl=="string"&&e.websiteUrl.trim()&&(o.websiteUrl=e.websiteUrl.trim().slice(0,2048)),o}function Uh(e){if(e!==void 0){if(typeof e!="string"||!lr.includes(e))throw new p("Invalid MCP logLevel metadata",m.invalidParams,{field:A.logLevel,allowed:[...lr]});return e}}function tt(e){let t=_(e)?e._meta:void 0;if(!_(t))throw new p("Missing required MCP request metadata",m.invalidParams,{required:[A.protocolVersion,A.clientCapabilities]});let r=t[A.protocolVersion];if(typeof r!="string"||!et.includes(r))throw new p("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...et],requested:typeof r=="string"?r:null});let o=t[A.clientCapabilities];if(!_(o))throw new p("Invalid MCP client capabilities metadata",m.invalidParams,{field:A.clientCapabilities,expected:"object"});let n=Gh(t[A.clientInfo]),i=Uh(t[A.logLevel]);return{protocolVersion:K,clientCapabilities:o,...n?{clientInfo:n}:{},...i?{logLevel:i}:{}}}function n0(e,t){if(t!==e.protocolVersion)throw new p("MCP protocol header does not match request metadata",m.headerMismatch,{header:t??null,metadata:e.protocolVersion})}function i0(e,t){let r=t.filter(o=>!Object.prototype.hasOwnProperty.call(e.clientCapabilities,o));if(r.length>0)throw new p("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:Object.fromEntries(r.map(o=>[o,{}]))})}function s0(e,t){let r=e.clientCapabilities.extensions;return _(r)&&_(r[t])}function rt(e,t){let r=_(e._meta)?e._meta:{};return{...e,_meta:{...r,[A.serverInfo]:{...t}}}}function Bh(e,t){return rt({...e,resultType:"complete"},t)}function a0(e){let t=e.ttlMs??6e4;if(!Number.isFinite(t)||t<0)throw new p("Invalid MCP discovery cache TTL",m.invalidParams,{ttlMs:t});return Bh({supportedVersions:[...et],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function c0(e,t){if(_(e)&&typeof e.resultType=="string")return e.resultType;if(t==="legacy")return"complete";throw new p("Modern MCP result is missing resultType",m.invalidParams,{required:"resultType"})}import{createHash as mr,createHmac as fr,timingSafeEqual as qh}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6505e714-d1f3-5794-88c8-51c1644acec9")}catch{}})();var zh=["elicitation/create","roots/list","sampling/createMessage"],ur=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},_r=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,ge=32,nt=64*1024,ye=16*1024,ot={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function Vh(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function be(e,t,r){let o;try{o=JSON.stringify(e)}catch{throw new p(`Invalid ${r}: value is not JSON serializable`,m.invalidParams,{field:r})}if(Buffer.byteLength(o,"utf8")>t)throw new p(`Invalid ${r}: payload exceeds the protocol bound`,m.invalidParams,{field:r,maximumBytes:t})}function it(e,t){if(!_(e))throw new p("Invalid MCP inputRequests",m.invalidParams,{field:"inputRequests",expected:"object"});let r=Object.entries(e);if(r.length===0||r.length>ge)throw new p("Invalid MCP inputRequests count",m.invalidParams,{minimum:1,maximum:ge,observed:r.length});let o={};for(let[n,i]of r){if(!_r.test(n)||!_(i))throw new p("Invalid MCP input request entry",m.invalidParams,{field:`inputRequests.${n}`});let s=i.method;if(typeof s!="string"||!zh.includes(s))throw new p("Unsupported MCP input request method",m.invalidParams,{field:`inputRequests.${n}.method`,method:s??null});let a=Vh(s);if(!Object.prototype.hasOwnProperty.call(t.clientCapabilities,a))throw new p("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:{[a]:{}}});if(!_(i.params))throw new p("Invalid MCP input request parameters",m.invalidParams,{field:`inputRequests.${n}.params`,expected:"object"});o[n]={method:s,params:structuredClone(i.params)}}return be(o,nt,"inputRequests"),o}function hr(e){if(!_(e))throw new p("Invalid MCP inputResponses",m.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>ge)throw new p("Invalid MCP inputResponses count",m.invalidParams,{maximum:ge,observed:t.length});let r={};for(let[o,n]of t){if(!_r.test(o)||!_(n))throw new p("Invalid MCP input response entry",m.invalidParams,{field:`inputResponses.${o}`});r[o]=structuredClone(n)}return be(r,nt,"inputResponses"),r}function p0(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>ye)throw new p("Invalid MCP requestState: payload exceeds the protocol bound",m.invalidParams,{field:"requestState",maximumBytes:ye});let r=e.inputRequests===void 0?void 0:it(e.inputRequests,e.requestContext);if(r===void 0&&!t)throw new p("InputRequiredResult requires inputRequests or requestState",m.invalidParams,{requiredAnyOf:["inputRequests","requestState"]});return{resultType:"input_required",...r?{inputRequests:r}:{},...t?{requestState:t}:{},_meta:{[A.serverInfo]:{...e.serverInfo}}}}function gr(e){let t=Buffer.from(e);if(t.byteLength<32)throw new p("MCP requestState signing key must contain at least 32 bytes",m.invalidParams,{minimumBytes:32});return t}function m0(e,t){if(!Number.isSafeInteger(e.expiresAt)||e.expiresAt<=0||e.method.trim().length===0||e.parameterDigest.trim().length===0||e.principal.trim().length===0)throw new p("Invalid MCP requestState payload",m.invalidParams);let r=Buffer.from(JSON.stringify({version:1,...e}),"utf8");if(r.byteLength>ye/2)throw new p("MCP requestState payload exceeds the protocol bound",m.invalidParams,{maximumBytes:ye/2});let o=r.toString("base64url"),n=fr("sha256",gr(t)).update(o).digest("base64url");return`${o}.${n}`}function Hh(e){if(!_(e)||e.version!==1)throw new p("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});let{expiresAt:t,method:r,parameterDigest:o,principal:n,state:i}=e;if(typeof t!="number"||!Number.isSafeInteger(t))throw new p("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});if(typeof r!="string"||typeof o!="string"||typeof n!="string")throw new p("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});return{expiresAt:t,method:r,parameterDigest:o,principal:n,state:i}}function f0(e,t,r){let[o,n,i]=e.split(".");if(!o||!n||i!==void 0)throw new p("Invalid MCP requestState encoding",m.invalidParams,{field:"requestState"});let s=Buffer.from(n,"base64url"),a=fr("sha256",gr(t)).update(o).digest();if(s.byteLength!==a.byteLength||!qh(s,a))throw new p("Invalid MCP requestState signature",m.invalidParams,{field:"requestState"});let c;try{c=JSON.parse(Buffer.from(o,"base64url").toString("utf8"))}catch{c=null}let d=Hh(c),{expiresAt:l,method:u,parameterDigest:f,principal:g}=d;if(l<(r.nowMs??Date.now()))throw new p("Expired MCP requestState",m.invalidParams,{field:"requestState",expiredAt:l});if(u!==r.method||f!==r.parameterDigest||g!==r.principal)throw new p("MCP requestState binding mismatch",m.invalidParams,{field:"requestState"});return d}function _0(e){return be(e,nt,"request parameters"),mr("sha256").update(JSON.stringify(e)).digest("hex")}var pr=class{#e=new Set;#t;constructor(t=4096){if(!Number.isSafeInteger(t)||t<1)throw new p("Invalid MCP replay guard capacity",m.invalidParams,{maximumEntries:t});this.#t=t}consume(t){let r=mr("sha256").update(t).digest("hex");if(this.#e.has(r))throw new p("MCP requestState replay detected",m.invalidParams,{field:"requestState"});if(this.#e.size>=this.#t){let o=this.#e.values().next().value;this.#e.delete(o)}this.#e.add(r)}};function Kh(e){if(!Number.isSafeInteger(e.ttlMs)||e.ttlMs<0||e.cacheScope!=="public"&&e.cacheScope!=="private")throw new p("Invalid MCP cache policy",m.invalidParams,{ttlMs:e.ttlMs,cacheScope:e.cacheScope});return{ttlMs:e.ttlMs,cacheScope:e.cacheScope}}function h0(e,t){return{...e,...Kh(t)}}function Wh(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function Xh(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let o of t.slice(2).split("/").map(Wh)){if(!_(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}function Yh(e){let t=e.maxBytes??ot.maxBytes,r=e.maxDepth??ot.maxDepth,o=e.maxNodes??ot.maxNodes;if(!Number.isSafeInteger(t)||t<2)throw new p("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(r)||r<1)throw new p("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(o)||o<1)throw new p("Invalid MCP JSON Schema work bounds",m.invalidParams);return{maximumBytes:t,maximumDepth:r,maximumNodes:o}}function Jh(e,t){let r=Array.isArray(e.value)?e.value:_(e.value)?Object.values(e.value):[];for(let o of r)t.push({value:o,depth:e.depth+1})}function Zh(e,t){if(!_(t)||typeof t.$ref!="string")return;let r=t.$ref;if(r.startsWith("#")&&Xh(e,r)===void 0)throw new p("MCP JSON Schema contains an unresolved local reference",m.invalidParams,{reference:r})}function g0(e,t={}){let{maximumBytes:r,maximumDepth:o,maximumNodes:n}=Yh(t);if(typeof e!="boolean"&&!_(e))throw new p("Invalid MCP JSON Schema root",m.invalidParams,{expected:"object or boolean"});be(e,r,"JSON Schema");let i=[{value:e,depth:0}],s=0;for(;i.length>0;){let a=i.pop();if(s+=1,s>n||a.depth>o)throw new p("MCP JSON Schema exceeds validation work bounds",m.invalidParams,{maximumDepth:o,maximumNodes:n});Zh(e,a.value),Jh(a,i)}return structuredClone(e)}import{randomUUID as Qh}from"node:crypto";import{readFile as eg}from"node:fs/promises";import yr from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7f5b3ba6-07cf-5317-8f62-63e84f561232")}catch{}})();var A0="io.modelcontextprotocol/tasks",tg=["working","input_required","completed","failed","cancelled"],rg=/^mcp-task-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,og=3600*1e3,ng=1e3,Te=1024,ig=30,sg=2e3;function st(e){return new p(e,m.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function Ce(e){let t=e.trim();if(!rg.test(t))throw st("Unknown MCP task");return t}function br(e,t){if(typeof e!="string"||!Number.isFinite(Date.parse(e)))throw new p("Corrupt MCP task record",m.invalidParams,{field:t});return e}function Cr(e){if(!_(e)||typeof e.code!="number"||!Number.isFinite(e.code)||typeof e.message!="string")throw new p("Corrupt MCP task error",m.invalidParams);return{code:e.code,message:e.message.slice(0,Te),..._(e.data)?{data:structuredClone(e.data)}:{}}}function ag(e){if(!tg.includes(e))throw new p("Corrupt MCP task record",m.invalidParams);return e}function cg(e){if(typeof e!="string"||e.length===0)throw new p("Corrupt MCP task record",m.invalidParams);return e}function dg(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new p("Corrupt MCP task record",m.invalidParams);return e}function lg(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new p("Corrupt MCP task record",m.invalidParams);return e}function ug(e){if(e!==void 0){if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new p("Corrupt MCP task record",m.invalidParams);return e}}function pg(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new p("Corrupt MCP task record",m.invalidParams);return[...e]}function mg(e){if(!_(e)||e.version!==1)throw new p("Corrupt MCP task record",m.invalidParams);let t=typeof e.taskId=="string"?Ce(e.taskId):"",r=ag(e.status),o=cg(e.principal),n=dg(e.workerPid),i=lg(e.ttlMs),s=ug(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:o,workerPid:n,createdAt:br(e.createdAt,"createdAt"),lastUpdatedAt:br(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:i,consumedInputKeys:pg(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,Te)}:{},...typeof s=="number"?{pollIntervalMs:s}:{}};if(_(e.inputRequests)&&(a.inputRequests=structuredClone(e.inputRequests)),_(e.inputResponses)&&(a.inputResponses=structuredClone(e.inputResponses)),_(e.result)&&(a.result=structuredClone(e.result)),e.error!==void 0&&(a.error=Cr(e.error)),a.status==="input_required"&&!a.inputRequests||a.status==="completed"&&!a.result||a.status==="failed"&&!a.error)throw new p("Corrupt MCP task status payload",m.invalidParams,{status:a.status});return a}function W(e){let t={taskId:e.taskId,status:e.status,createdAt:e.createdAt,lastUpdatedAt:e.lastUpdatedAt,ttlMs:e.ttlMs,...e.statusMessage?{statusMessage:e.statusMessage}:{},...e.pollIntervalMs===void 0?{}:{pollIntervalMs:e.pollIntervalMs}};return e.status==="input_required"?{...t,status:"input_required",inputRequests:structuredClone(e.inputRequests)}:e.status==="completed"?{...t,status:"completed",result:structuredClone(e.result)}:e.status==="failed"?{...t,status:"failed",error:structuredClone(e.error)}:e.status==="cancelled"?{...t,status:"cancelled"}:{...t,status:"working"}}function ne(e){return e==="completed"||e==="failed"||e==="cancelled"}function fg(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var at=class{#e;#t;#r;#o;#i;constructor(t){this.#e=yr.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${Qh()}`),this.#i=t.workerPid??process.pid}#s(t){return yr.join(this.#e,"runtime","mcp-tasks","records",`${Ce(t)}.json`)}async#c(t){try{return mg(JSON.parse(await eg(this.#s(t),"utf8")))}catch(r){throw fe(r)||r instanceof SyntaxError?st("Unknown MCP task"):r}}async#a(t){await Ge(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
|
|
2
2
|
`)}async#n(t,r,o){let n=Ce(t),i=await ze(this.#e,n,ig,this.#t,!1,!1,sg);try{let s=await this.#c(n);if(s.principal!==r)throw st("Unknown MCP task");let a=o(s);return await this.#a(a),a}finally{await i()}}async create(t){let r=Ce(this.#o()),o=t.principal.trim(),n=t.ttlMs===void 0?og:t.ttlMs,i=t.pollIntervalMs??ng;if(o.length===0||n!==null&&(!Number.isSafeInteger(n)||n<0)||!Number.isSafeInteger(i)||i<0)throw new p("Invalid MCP task creation options",m.invalidParams);let s=this.#r().toISOString(),a={version:1,taskId:r,status:"working",createdAt:s,lastUpdatedAt:s,ttlMs:n,pollIntervalMs:i,principal:o,workerPid:this.#i,consumedInputKeys:[],...t.statusMessage?.trim()?{statusMessage:t.statusMessage.trim().slice(0,Te)}:{}};return await this.#a(a),{...W(a),resultType:"task"}}async get(t,r){return W(await this.#n(t,r,o=>{if(ne(o.status))return o;let n=this.#r().getTime(),i=o.ttlMs!==null&&Date.parse(o.createdAt)+o.ttlMs<=n,s=o.workerPid!==this.#i&&!fg(o.workerPid);return!i&&!s?o:{...o,status:"failed",statusMessage:i?"Task retention expired before completion.":"Task worker ended before recording a terminal result.",lastUpdatedAt:this.#r().toISOString(),error:{code:-32603,message:i?"MCP task expired":"MCP task worker unavailable after restart",data:{recoverable:!1,createNewTask:!0}},inputRequests:void 0}}))}async requireInput(t){let r=it(t.inputRequests,t.requestContext);return W(await this.#n(t.taskId,t.principal,o=>{if(ne(o.status))return o;let n=Object.keys(r).filter(i=>o.consumedInputKeys.includes(i));if(n.length>0)throw new p("MCP task input request keys must be unique for the task lifetime",m.invalidParams,{reused:n});return{...o,status:"input_required",statusMessage:t.statusMessage?.trim().slice(0,Te),lastUpdatedAt:this.#r().toISOString(),inputRequests:r}}))}async update(t,r,o){let n=hr(o),i=[],s=[];return await this.#n(t,r,a=>{if(a.status!=="input_required"||!a.inputRequests)return a;let c={...a.inputRequests},d=a.inputResponses?{...a.inputResponses}:{};for(let[l,u]of Object.entries(n))Object.prototype.hasOwnProperty.call(c,l)&&(d[l]=u,delete c[l],i.push(l));return s=Object.keys(c).sort(),i.length===0?a:{...a,status:s.length===0?"working":"input_required",lastUpdatedAt:this.#r().toISOString(),inputRequests:s.length===0?void 0:c,inputResponses:d,consumedInputKeys:[...new Set([...a.consumedInputKeys,...i])].sort()}}),{acceptedKeys:i.sort(),remainingKeys:s}}async takeInputResponses(t,r){let o={};return await this.#n(t,r,n=>(o=structuredClone(n.inputResponses??{}),Object.keys(o).length===0?n:{...n,inputResponses:void 0})),o}async complete(t,r,o){return W(await this.#n(t,r,n=>ne(n.status)?n:{...n,status:"completed",statusMessage:"Task completed.",lastUpdatedAt:this.#r().toISOString(),result:structuredClone(o),inputRequests:void 0,error:void 0}))}async fail(t,r,o){let n=Cr(o);return W(await this.#n(t,r,i=>ne(i.status)?i:{...i,status:"failed",statusMessage:n.message,lastUpdatedAt:this.#r().toISOString(),error:n,inputRequests:void 0,result:void 0}))}async cancel(t,r){return W(await this.#n(t,r,o=>ne(o.status)?o:{...o,status:"cancelled",statusMessage:"Task cancelled by the client.",lastUpdatedAt:this.#r().toISOString(),inputRequests:void 0,result:void 0,error:void 0}))}};function v0(e){return new at(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f87864d3-e499-57f7-b1e3-4ea3f30b7725")}catch{}})();var Se="io.modelcontextprotocol/subscriptionId",Tr=256,Sr=2048,_g=5e3;function hg(e,t){return new Promise((r,o)=>{let n=setTimeout(()=>o(new Error("MCP subscription sink write timed out")),_g);n.unref(),Promise.resolve().then(()=>e(t)).then(()=>{clearTimeout(n),r()},i=>{clearTimeout(n),o(i instanceof Error?i:new Error(String(i)))})})}function ct(e,t){if(e!==void 0){if(typeof e!="boolean")throw new p("Invalid MCP subscription filter",m.invalidParams,{field:`notifications.${t}`,expected:"boolean"});return e||void 0}}function gg(e){if(!_(e))throw new p("Invalid MCP subscription filter",m.invalidParams,{field:"notifications",expected:"object"});let t=ct(e.toolsListChanged,"toolsListChanged"),r=ct(e.promptsListChanged,"promptsListChanged"),o=ct(e.resourcesListChanged,"resourcesListChanged"),n;if(e.resourceSubscriptions!==void 0){if(!Array.isArray(e.resourceSubscriptions)||e.resourceSubscriptions.length>Tr)throw new p("Invalid MCP resource subscriptions",m.invalidParams,{field:"notifications.resourceSubscriptions",maximum:Tr});let i=new Set;for(let s of e.resourceSubscriptions){if(typeof s!="string"||s.trim().length===0||Buffer.byteLength(s,"utf8")>Sr)throw new p("Invalid MCP resource subscription URI",m.invalidParams,{field:"notifications.resourceSubscriptions",maximumBytes:Sr});i.add(s)}i.size>0&&(n=[...i].sort())}return{...t?{toolsListChanged:t}:{},...r?{promptsListChanged:r}:{},...o?{resourcesListChanged:o}:{},...n?{resourceSubscriptions:n}:{}}}function yg(e,t){return{...e.toolsListChanged&&t.tools?.listChanged?{toolsListChanged:!0}:{},...e.promptsListChanged&&t.prompts?.listChanged?{promptsListChanged:!0}:{},...e.resourcesListChanged&&t.resources?.listChanged?{resourcesListChanged:!0}:{},...e.resourceSubscriptions&&t.resources?.subscribe?{resourceSubscriptions:[...e.resourceSubscriptions]}:{}}}var wr=class{#e;#t=new Map;#r;constructor(t){this.#e=structuredClone(t.capabilities),this.#r={...t.serverInfo}}get size(){return this.#t.size}async open(t){if(this.#t.has(t.id))throw new p("MCP subscription id is already active",m.invalidParams,{subscriptionId:t.id});let r=yg(gg(t.notifications),this.#e),o={filter:r,sink:t.sink,writeQueue:Promise.resolve()};this.#t.set(t.id,o);try{await this.#o(t.id,o,{jsonrpc:"2.0",method:"notifications/subscriptions/acknowledged",params:{_meta:{[Se]:t.id},notifications:structuredClone(r)}},!0)}catch(n){throw this.#t.delete(t.id),n}return structuredClone(r)}async emitListChanged(t){let r=`${t}ListChanged`,o=`notifications/${t}/list_changed`,n=[];for(let[i,s]of this.#t)s.filter[r]===!0&&n.push(this.#o(i,s,{jsonrpc:"2.0",method:o,params:{_meta:{[Se]:i}}}));return(await Promise.all(n)).filter(Boolean).length}async emitResourceUpdated(t){let r=[];for(let[o,n]of this.#t)n.filter.resourceSubscriptions?.includes(t)&&r.push(this.#o(o,n,{jsonrpc:"2.0",method:"notifications/resources/updated",params:{_meta:{[Se]:o},uri:t}}));return(await Promise.all(r)).filter(Boolean).length}async#o(t,r,o,n=!1){let i=r.writeQueue.then(async()=>{if(this.#t.get(t)!==r)return!1;try{return await hg(r.sink,o),!0}catch(s){if(this.#t.get(t)===r&&this.#t.delete(t),n)throw s;return!1}});return r.writeQueue=i.then(()=>{},()=>{}),i}close(t){if(this.#t.delete(t))return{...rt({resultType:"complete",_meta:{[Se]:t}},this.#r)}}closeAll(){let t=[];for(let r of this.#t.keys()){let o=this.close(r);t.push({id:r,result:o})}return t}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7d591d0b-f009-519c-8024-c6fa18effb8e")}catch{}})();var Er=/^=\?base64\?([A-Za-z0-9+/]*={0,2})\?=$/u,bg=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u,Ar=/^[\t\x20-\x7E]*$/u,vr=new Set(["prompts/get","resources/read","tools/call"]);function Cg(e){let t=new Map;for(let[r,o]of Object.entries(e)){if(o===void 0)continue;let n=typeof o=="string"?o:o.join(", ");t.set(r.toLowerCase(),n)}return t}function v(e,t){throw new p(e,m.headerMismatch,{header:t})}function Or(e){let t=typeof e=="boolean"?String(e).toLowerCase():String(e);return t.length>0&&t.trim()===t&&Ar.test(t)&&!Er.test(t)?t:`=?base64?${Buffer.from(t,"utf8").toString("base64")}?=`}function Ir(e,t){let r=Er.exec(e);if(r){let o=r[1],n=Buffer.from(o,"base64");return n.toString("base64")!==o||n.length===0?v("Malformed MCP Base64 header value",t):n.toString("utf8")}return e.length===0||e.trim()!==e||!Ar.test(e)?v("Malformed MCP header value",t):e}function we(e){return Array.isArray(e)?e.some(we):_(e)?Object.prototype.hasOwnProperty.call(e,"x-mcp-header")||Object.values(e).some(we):!1}function Tg(e,t,r){let o=e["x-mcp-header"];if(o===void 0)return;let n=e.type;if(typeof o!="string"||!bg.test(o)||!["boolean","integer","string"].includes(String(n))||r.has(o.toLowerCase()))throw new p("Invalid MCP x-mcp-header annotation",m.invalidParams,{field:t.join("."),annotation:o});return r.add(o.toLowerCase()),{name:o,path:t,type:n}}function Rr(e){if(!_(e))throw new p("Invalid MCP tool schema",m.invalidParams,{field:"inputSchema",expected:"object"});let t=[],r=new Set,o=(n,i)=>{let s=n.properties;if(s!==void 0){if(!_(s))throw new p("Invalid MCP tool schema properties",m.invalidParams,{field:"inputSchema.properties"});for(let[a,c]of Object.entries(s)){if(!_(c))continue;let d=[...i,a],l=Tg(c,d,r);l&&t.push(l);for(let[u,f]of Object.entries(c))if(u!=="properties"&&u!=="x-mcp-header"&&we(f))throw new p("MCP x-mcp-header is not statically reachable",m.invalidParams,{field:d.join("."),keyword:u});o(c,d)}}};for(let[n,i]of Object.entries(e))if(n!=="properties"&&we(i))throw new p("MCP x-mcp-header is not statically reachable",m.invalidParams,{field:"inputSchema",keyword:n});return o(e,[]),t}function Pr(e,t){let r=e;for(let o of t){if(!_(r))return;r=r[o]}return r}function Mr(e,t){let r=e==="resources/read"?t.uri:t.name;return typeof r=="string"?r:void 0}function Sg(e,t){let r=_(e.arguments)?e.arguments:{},o={};for(let n of Rr(t)){let i=Pr(r,n.path);if(i==null)continue;if(!(n.type==="integer"&&typeof i=="number"&&Number.isSafeInteger(i)||n.type==="boolean"&&typeof i=="boolean"||n.type==="string"&&typeof i=="string"))throw new p("Invalid MCP custom header argument",m.invalidParams,{field:n.path.join("."),expected:n.type});o[`Mcp-Param-${n.name}`]=Or(i)}return o}function M0(e){let t=_(e.request.params)?e.request.params:void 0,r=tt(t),o=e.request.method;if(typeof o!="string"||o.length===0)return v("Missing MCP request method","Mcp-Method");let n={Accept:"application/json, text/event-stream","Content-Type":"application/json","MCP-Protocol-Version":r.protocolVersion,"Mcp-Method":o},i=Mr(o,t);if(vr.has(o)){if(i===void 0)return v("Missing MCP request name","Mcp-Name");n["Mcp-Name"]=Or(i)}return o==="tools/call"&&e.toolSchema!==void 0&&Object.assign(n,Sg(t,e.toolSchema)),n}function wg(e,t){let r=t.method;(typeof r!="string"||r.length===0)&&v("Missing MCP request method","Mcp-Method");let o=_(t.params)?t.params:void 0,n=tt(o).protocolVersion;if(e.get("mcp-protocol-version")!==n&&v("MCP protocol header does not match request metadata","MCP-Protocol-Version"),e.get("mcp-method")!==r&&v("MCP method header does not match request body","Mcp-Method"),vr.has(r)){let i=e.get("mcp-name"),s=Mr(r,o);(i===void 0||s===void 0||Ir(i,"Mcp-Name")!==s)&&v("MCP name header does not match request body","Mcp-Name")}e.has("last-event-id")&&v("MCP SSE resumability is not supported","Last-Event-ID")}function Eg(e,t,r){return e.type==="integer"?typeof t=="number"&&Number.isSafeInteger(t)&&Number(r)===t:e.type==="boolean"?typeof t=="boolean"&&r===String(t):typeof t=="string"&&r===t}function Ag(e){let t=_(e.params.arguments)?e.params.arguments:{};for(let r of Rr(e.toolSchema)){let o=Pr(t,r.path),n=`Mcp-Param-${r.name}`,i=e.headers.get(n.toLowerCase());if(o==null){i!==void 0&&v("Unexpected MCP parameter header",n);continue}i===void 0&&v("Missing MCP parameter header",n),Eg(r,o,Ir(i,n))||v("MCP parameter header does not match request body",n)}}function k0(e){let t=Cg(e.headers),r=typeof e.request.method=="string"?e.request.method:"";wg(t,e.request),!(r!=="tools/call"||e.toolSchema===void 0)&&Ag({headers:t,params:e.request.params,toolSchema:e.toolSchema})}var x0=K;import{AsyncLocalStorage as vg}from"node:async_hooks";import{createHash as kr,timingSafeEqual as Og}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a5310f6-3add-5108-b39f-61607918dc9f")}catch{}})();var y=class extends Error{httpStatus;challenge;constructor(t,r,o){super(t),this.name="PmMcpAuthorizationError",this.httpStatus=r,this.challenge=o}},Ig=/^00-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})$/u,Rg=/^[a-z][a-z0-9_*/-]{0,255}$/u,Pg=/^(?:[a-z0-9][a-z0-9_*/-]{0,240})@[a-z][a-z0-9_*/-]{0,13}$/u,Mg=/^[\x20-\x2B\x2D-\x3C\x3E-\x7E]{0,255}[\x21-\x2B\x2D-\x3C\x3E-\x7E]$/u,Nr=/^[\x21\x23-\x5B\x5D-\x7E]+$/u,Lr=/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/u,kg=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]*$/u,xg=/%(?![0-9A-Fa-f]{2})/u,Ng=512,Lg=32,Dg=180,$g=8192,Fg=8192,Dr=new vg;function E(e,t,r=!1){if(new RegExp("\\p{Cc}","u").test(e))throw new y(`Invalid ${t}`,401);let o;try{o=new URL(e)}catch{throw new y(`Invalid ${t}`,401)}let n=o.hostname==="127.0.0.1"||o.hostname==="localhost";if(o.hash.length>0||o.protocol!=="https:"&&!(r&&n&&o.protocol==="http:"))throw new y(`Invalid ${t}`,401);return o}function jg(e,t){let r=t.toLowerCase();for(let[o,n]of Object.entries(e))if(!(o.toLowerCase()!==r||n===void 0))return typeof n=="string"?n:n.join(", ")}function F0(e){let t=E(e.resource,"protected resource URI",!0).href.replace(/\/$/u,"");if(e.authorizationServers.length===0)throw new y("Protected resource metadata requires an authorization server",401);let r=e.authorizationServers.map(n=>E(n,"authorization server issuer").href.replace(/\/$/u,"")),o=[...new Set(e.scopes??[])];if(o.some(n=>!Nr.test(n)))throw new y("Invalid authorization scope",401);return{resource:t,authorization_servers:r,...o.length>0?{scopes_supported:o.sort()}:{}}}function j0(e){let t=E(e,"authorization server issuer"),r=t.pathname.replace(/^\/+|\/+$/gu,""),o=t.origin;return r?[`${o}/.well-known/oauth-authorization-server/${r}`,`${o}/.well-known/openid-configuration/${r}`,`${o}/${r}/.well-known/openid-configuration`]:[`${o}/.well-known/oauth-authorization-server`,`${o}/.well-known/openid-configuration`]}function G0(e,t){if(!_(e)||typeof e.issuer!="string")throw new y("Invalid authorization server metadata",401);let r=E(t,"expected issuer").href.replace(/\/$/u,"");if(E(e.issuer,"metadata issuer").href.replace(/\/$/u,"")!==r)throw new y("Authorization server issuer mismatch",401);if(!Array.isArray(e.code_challenge_methods_supported)||!e.code_challenge_methods_supported.includes("S256"))throw new y("Authorization server does not support required S256 PKCE",401);let n=d=>{let l=e[d];if(typeof l!="string")throw new y(`Authorization server metadata requires ${d}`,401);return E(l,d).href},i=d=>{let l=e[d];return typeof l=="string"?E(l,d).href:void 0},s=n("authorization_endpoint"),a=n("token_endpoint"),c=i("registration_endpoint");return{issuer:r,authorization_endpoint:s,token_endpoint:a,code_challenge_methods_supported:[...new Set(e.code_challenge_methods_supported.filter(d=>typeof d=="string"))],...e.client_id_metadata_document_supported===!0?{client_id_metadata_document_supported:!0}:{},...c?{registration_endpoint:c}:{}}}function U0(e){return e.hasPreRegisteredClient?"pre_registered":e.metadata.client_id_metadata_document_supported?"client_id_metadata_document":e.metadata.registration_endpoint?"dynamic":"user_supplied"}function B0(e){if(e.responseIssuer===void 0){if(e.issuerParameterSupported)throw new y("Authorization response omitted the advertised issuer",401);return}if(e.responseIssuer!==e.expectedIssuer)throw new y("Authorization response issuer mismatch",401)}function q0(e,t){let r=E(t,"client metadata document URL");if(r.pathname==="/"||!_(e)||e.client_id!==r.href||typeof e.client_name!="string"||e.client_name.trim().length===0||!Array.isArray(e.redirect_uris)||e.redirect_uris.length===0)throw new y("Invalid Client ID Metadata Document",401);for(let o of e.redirect_uris){if(typeof o!="string")throw new y("Invalid client redirect URI",401);E(o,"client redirect URI",!0)}return structuredClone(e)}function z0(e){if(e.redirectUris.length===0||e.clientName.trim().length===0)throw new y("Invalid dynamic client registration metadata",401);let t=e.redirectUris.map(r=>E(r,"redirect URI",!0).href);return{application_type:e.applicationType,client_name:e.clientName.trim().slice(0,128),redirect_uris:t,grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none"}}var xr=class{#e=new Map;set(t,r){let o=E(t,"credential issuer").href;this.#e.set(o,structuredClone(r))}get(t){let r=E(t,"credential issuer").href,o=this.#e.get(r);return o?structuredClone(o):void 0}delete(t){let r=E(t,"credential issuer").href;return this.#e.delete(r)}};function Gg(e){let t=e.traceparent,r=e.tracestate;if(t!==void 0){let o=typeof t=="string"?Ig.exec(t):null;if(!o)throw new y("Invalid MCP traceparent",403);let n=o[1],i=o[2];if(/^0+$/u.test(n)||/^0+$/u.test(i))throw new y("Invalid MCP traceparent",403)}if(r!==void 0&&(typeof r!="string"||!Bg(r)))throw new y("Invalid MCP tracestate",403);return{...typeof t=="string"?{traceparent:t}:{},...typeof r=="string"?{tracestate:r}:{}}}function F(e){return e.replace(/^[ \t]*|[ \t]*$/gu,"")}function Ug(e){return Rg.test(e)||Pg.test(e)}function Bg(e){if(Buffer.byteLength(e,"utf8")>Ng)return!1;let t=e.split(",");if(t.length>Lg)return!1;let r=new Set;for(let o of t){let n=F(o);if(n.length===0)continue;let i=n.indexOf("="),s=i>0?n.slice(0,i):"",a=i>0?n.slice(i+1):"";if(!Ug(s)||!Mg.test(a)||r.has(s))return!1;r.add(s)}return!0}function $r(e){return kg.test(e)&&!xg.test(e)}function qg(e){let t=F(e),r=t.indexOf("="),o=F(r>=0?t.slice(0,r):t),n=r>=0?F(t.slice(r+1)):void 0;return Lr.test(o)&&(n===void 0||$r(n))}function zg(e){let t=F(e),r=t.split(";"),o=r[0],n=r.slice(1),i=o.indexOf("="),s=F(i>0?o.slice(0,i):""),a=i>0?F(o.slice(i+1)):"";if(!(!Lr.test(s)||!$r(a)||!n.every(qg)))return{key:s,serialized:t}}function Vg(e,t){if(e===void 0)return;if(typeof e!="string"||Buffer.byteLength(e,"utf8")>$g)throw new y("Invalid MCP baggage",403);let r=new Set(t),o=e.split(",");if(o.length>Dg)throw new y("Invalid MCP baggage",403);let n=[];for(let i of o){let s=zg(i);if(!s)throw new y("Invalid MCP baggage",403);r.has(s.key)&&n.push(s.serialized)}return n.length>0?n.join(","):void 0}function V0(e,t={}){let r=_(e)&&_(e._meta)?e._meta:{},o=Vg(r.baggage,t.baggageAllowlist??[]);return{...Gg(r),...o?{baggage:o}:{}}}function H0(e,t){return Dr.run(structuredClone(e),t)}function K0(){let e=Dr.getStore();return e?{...e}:void 0}async function W0(e){let t=E(e.policy.resourceMetadataUrl,"protected resource metadata URL",!0).href,r=[...new Set(e.policy.requiredScopes??[])];if(r.some(u=>!Nr.test(u)))throw new y("Invalid authorization scope",401);let o=`Bearer resource_metadata="${t}"`;if(new URL(e.requestUrl,e.policy.resource).searchParams.has("access_token"))throw new y("Access tokens must not appear in URI query parameters",401,o);let s=jg(e.headers,"authorization")?.match(/^Bearer ([^\s]+)$/iu);if(!s)throw new y("Missing or malformed bearer token",401,o);let a=s[1];if(Buffer.byteLength(a,"utf8")>Fg)throw new y("Missing or malformed bearer token",401,o);let c;try{c=await e.policy.verifyAccessToken(a)}catch{throw new y("Invalid bearer token",401,o)}let d=Array.isArray(c.audience)?c.audience:[c.audience];if(c.issuer!==e.policy.issuer||!d.includes(e.policy.resource))throw new y("Bearer token issuer or audience mismatch",401,o);let l=r.filter(u=>!c.scopes.includes(u));if(l.length>0)throw new y("Bearer token has insufficient scope",403,`${o}, scope="${l.join(" ")}"`);return{...c,audience:[...d],scopes:[...c.scopes]}}function X0(e){let t=kr("sha256").update(e.token).digest();return r=>{let o=kr("sha256").update(r).digest();if(!Og(t,o))throw new y("Invalid bearer token",401);return structuredClone(e.claims)}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4f17095e-2dba-530c-935c-1803ed359510")}catch{}})();var dt="io.modelcontextprotocol/ui",Ee="2026-01-26",Gr="text/html;profile=mcp-app",Fr=Object.freeze({specVersion:Ee,mimeTypes:[Gr]});function Z0(e){let t=e.clientCapabilities.extensions;if(!_(t))return!1;let r=t[dt];if(r===void 0)return!1;if(!_(r))throw new p("Invalid MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[dt]:Fr}}});let o=r.mimeTypes,n=r.specVersion;if(!Array.isArray(o)||!o.includes(Gr)||n!==void 0&&n!==Ee)throw new p("Unsupported MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[dt]:Fr}}});return!0}var Hg={csp:{connectDomains:[],resourceDomains:[],frameDomains:[]},permissions:{},prefersBorder:!0},Ur=Object.freeze([{id:"context",name:"Context explorer",description:"Inspect bounded project context, provenance, omissions, and token accounting.",toolName:"pm_context",uri:"ui://pm/context.html"},{id:"graph",name:"Relationship graph",description:"Explore typed relationships, explaining paths, and graph-governance evidence.",toolName:"pm_graph",uri:"ui://pm/graph.html"},{id:"plan",name:"Plan and milestone view",description:"Review durable plan steps, dependencies, decisions, discoveries, and validation state.",toolName:"pm_plan",uri:"ui://pm/plan.html"},{id:"assurance",name:"Assurance dashboard",description:"Inspect validation verdicts, evidence, omissions, and actionable recovery paths.",toolName:"pm_validate",uri:"ui://pm/assurance.html"},{id:"operations",name:"Long-operation view",description:"Inspect durable test and operation results without creating a second task store.",toolName:"pm_test",uri:"ui://pm/operations.html"}].map(e=>({...e,toolMeta:{resourceUri:e.uri,visibility:["model","app"]},resourceMeta:Hg})));function Q0(e){return Ur.find(t=>t.uri===e)}function ex(e){let t=new Map(Ur.map(r=>[r.toolName,r]));return e.map(r=>{let o=t.get(r.name);return o?{...r,_meta:{...r._meta,ui:o.toolMeta}}:{...r}})}function jr(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function tx(e){let t=jr(e.name),r=jr(e.description),o=JSON.stringify({name:`pm-${e.id}-view`,version:Ee}),n=JSON.stringify(Ee);return`<!doctype html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module sdk/cli-contracts/commander-types
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Maps Commander option aliases to SDK fields and preserves precedence when normalizing CLI input.
|
|
5
5
|
*/
|
|
6
6
|
/** Describes aliases accepted by Commander option registration contracts. */
|
|
7
7
|
export interface CommanderOptionAliasContract {
|
|
8
|
-
/**
|
|
8
|
+
/** Canonical SDK option key receiving the selected alias value. */
|
|
9
9
|
target: string;
|
|
10
|
-
/**
|
|
10
|
+
/** Commander option keys in precedence order; the first matching value wins. */
|
|
11
11
|
keys: readonly string[];
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
13
|
+
/** Declares Commander registration syntax and how its parsed values map to SDK options. */
|
|
14
14
|
export interface CommanderOptionRegistrationContract extends CommanderOptionAliasContract {
|
|
15
|
-
/**
|
|
15
|
+
/** Commander flag syntax, including short aliases and argument placeholders. */
|
|
16
16
|
option: string;
|
|
17
|
-
/**
|
|
17
|
+
/** Human-readable flag help displayed by Commander. */
|
|
18
18
|
description: string;
|
|
19
|
-
/**
|
|
19
|
+
/** Whether Commander requires this option to be supplied. */
|
|
20
20
|
required?: boolean;
|
|
21
|
-
/**
|
|
21
|
+
/** Whether repeated occurrences accumulate values instead of replacing the previous value. */
|
|
22
22
|
repeatable?: boolean;
|
|
23
23
|
/** Inputs that customize the alias operation. */
|
|
24
24
|
aliasOptions?: Array<{
|
|
@@ -38,9 +38,9 @@ export declare const CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS: CommanderOptionA
|
|
|
38
38
|
export declare const NEXT_COMMANDER_STRING_OPTION_CONTRACTS: CommanderOptionAliasContract[];
|
|
39
39
|
/** Public contract for activity commander string option contracts, shared by SDK and presentation-layer consumers. */
|
|
40
40
|
export declare const ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS: CommanderOptionAliasContract[];
|
|
41
|
-
/**
|
|
41
|
+
/** Return the first string-valued alias in declared precedence order, including an explicitly empty string. */
|
|
42
42
|
export declare function readFirstStringFromCommanderOptions(options: Record<string, unknown>, contract: CommanderOptionAliasContract): string | undefined;
|
|
43
|
-
/**
|
|
43
|
+
/** Return the first own alias property, preserving explicitly undefined values and ignoring inherited properties. */
|
|
44
44
|
export declare function readFirstValueFromCommanderOptions(options: Record<string, unknown>, contract: CommanderOptionAliasContract): unknown;
|
|
45
|
-
/**
|
|
45
|
+
/** Concatenate string entries from all array-valued aliases in declaration order; return undefined when none remain. */
|
|
46
46
|
export declare function readStringArrayFromCommanderOptions(options: Record<string, unknown>, contract: CommanderOptionAliasContract): string[] | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
!(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="497e2b9b-39e8-57c6-a040-3bf8cbac0324")}catch(e2){}})();const LIST_COMMANDER_STRING_OPTION_CONTRACTS=[{target:"status",keys:["status"]},{target:"type",keys:["type"]},{target:"tag",keys:["tag","tags"]},{target:"priority",keys:["priority"]},{target:"deadlineBefore",keys:["deadlineBefore"]},{target:"deadlineAfter",keys:["deadlineAfter"]},{target:"updatedAfter",keys:["updatedAfter"]},{target:"updatedBefore",keys:["updatedBefore"]},{target:"createdAfter",keys:["createdAfter"]},{target:"createdBefore",keys:["createdBefore"]},{target:"ids",keys:["ids"]},{target:"assignee",keys:["assignee"]},{target:"assigneeFilter",keys:["assigneeFilter","assignee_filter"]},{target:"parent",keys:["parent"]},{target:"sprint",keys:["sprint"]},{target:"release",keys:["release"]},{target:"limit",keys:["limit"]},{target:"offset",keys:["offset"]},{target:"after",keys:["after"]},{target:"fields",keys:["fields"]},{target:"sort",keys:["sort"]},{target:"order",keys:["order"]},{target:"treeDepth",keys:["treeDepth","tree_depth"]}];const SEARCH_COMMANDER_STRING_OPTION_CONTRACTS=[{target:"mode",keys:["mode"]},{target:"matchMode",keys:["matchMode","match_mode"]},{target:"minScore",keys:["minScore","min_score"]},{target:"semanticWeight",keys:["semanticWeight","semantic_weight"]},{target:"status",keys:["status"]},{target:"type",keys:["type"]},{target:"tag",keys:["tag","tags"]},{target:"priority",keys:["priority"]},{target:"deadlineBefore",keys:["deadlineBefore"]},{target:"deadlineAfter",keys:["deadlineAfter"]},{target:"updatedAfter",keys:["updatedAfter"]},{target:"updatedBefore",keys:["updatedBefore"]},{target:"createdAfter",keys:["createdAfter"]},{target:"createdBefore",keys:["createdBefore"]},{target:"assignee",keys:["assignee"]},{target:"sprint",keys:["sprint"]},{target:"release",keys:["release"]},{target:"parent",keys:["parent"]},{target:"fields",keys:["fields"]},{target:"limit",keys:["limit"]},{target:"after",keys:["after"]}];const CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS=[{target:"view",keys:["view"]},{target:"date",keys:["date"]},{target:"from",keys:["from"]},{target:"to",keys:["to"]},{target:"limit",keys:["limit"]},{target:"type",keys:["type"]},{target:"tag",keys:["tag"]},{target:"priority",keys:["priority"]},{target:"status",keys:["status"]},{target:"assignee",keys:["assignee"]},{target:"assigneeFilter",keys:["assigneeFilter","assignee_filter"]},{target:"sprint",keys:["sprint"]},{target:"release",keys:["release"]},{target:"include",keys:["include"]},{target:"recurrenceLookaheadDays",keys:["recurrenceLookaheadDays","recurrence_lookahead_days"]},{target:"recurrenceLookbackDays",keys:["recurrenceLookbackDays","recurrence_lookback_days"]},{target:"occurrenceLimit",keys:["occurrenceLimit","occurrence_limit"]},{target:"format",keys:["format"]}];const CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS=[{target:"date",keys:["date"]},{target:"from",keys:["from"]},{target:"to",keys:["to"]},{target:"type",keys:["type"]},{target:"tag",keys:["tag"]},{target:"priority",keys:["priority"]},{target:"assignee",keys:["assignee"]},{target:"assigneeFilter",keys:["assigneeFilter","assignee_filter"]},{target:"sprint",keys:["sprint"]},{target:"release",keys:["release"]},{target:"parent",keys:["parent"]},{target:"limit",keys:["limit","maxItems","max_items"]},{target:"after",keys:["after"]},{target:"format",keys:["format"]},{target:"depth",keys:["depth"]},{target:"fields",keys:["fields"]},{target:"activityLimit",keys:["activityLimit","activity_limit"]},{target:"staleThreshold",keys:["staleThreshold","stale_threshold"]},{target:"tokenBudget",keys:["tokenBudget","token_budget"]}];const NEXT_COMMANDER_STRING_OPTION_CONTRACTS=[{target:"type",keys:["type"]},{target:"tag",keys:["tag"]},{target:"priority",keys:["priority"]},{target:"assignee",keys:["assignee"]},{target:"assigneeFilter",keys:["assigneeFilter","assignee_filter"]},{target:"sprint",keys:["sprint"]},{target:"release",keys:["release"]},{target:"parent",keys:["parent"]},{target:"limit",keys:["limit"]},{target:"blockedLimit",keys:["blockedLimit","blocked_limit"]},{target:"format",keys:["format"]},{target:"tokenBudget",keys:["tokenBudget","token_budget"]}];const ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS=[{target:"id",keys:["id"]},{target:"op",keys:["op"]},{target:"author",keys:["author"]},{target:"from",keys:["from"]},{target:"to",keys:["to"]},{target:"limit",keys:["limit"]}];function readFirstStringFromCommanderOptions(options,contract){for(const key of contract.keys){const candidate=options[key];if(typeof candidate==="string"){return candidate}}return void 0}function readFirstValueFromCommanderOptions(options,contract){for(const key of contract.keys){if(Object.hasOwn(options,key)){return options[key]}}return void 0}function readStringArrayFromCommanderOptions(options,contract){const values=[];for(const key of contract.keys){const candidate=options[key];if(Array.isArray(candidate)){values.push(...candidate.filter(value=>typeof value==="string"))}}return values.length>0?values:void 0}export{ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,LIST_COMMANDER_STRING_OPTION_CONTRACTS,NEXT_COMMANDER_STRING_OPTION_CONTRACTS,SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,readFirstStringFromCommanderOptions,readFirstValueFromCommanderOptions,readStringArrayFromCommanderOptions};
|
|
2
2
|
//# sourceMappingURL=commander-types.js.map
|
package/dist/sdk/pagination.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
!(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4b085328-0791-58f5-872a-f796f9087ab4")}catch(e2){}})();import{createHash}from"node:crypto";import{PmCliError}from"../core/shared/errors.js";import{EXIT_CODE}from"../core/shared/constants.js";import{stableStringify}from"../core/shared/serialization.js";const QUERY_CURSOR_VERSION=1;const MAX_CURSOR_LENGTH=4096;const BASE64URL_PATTERN=/^[A-Za-z0-9_-]+$/;function optionKeyForFlag(flag){return flag.replace(/^--/u,"").replace(/[-_]([a-z0-9])/gu,(_,character)=>character.toUpperCase())}function selectCursorSemanticOptions(options,contracts){const presentationKeys=new Set;for(const contract of contracts){if(contract.cursor_semantics==="presentation"){presentationKeys.add(optionKeyForFlag(contract.flag));for(const alias of contract.aliases??[]){presentationKeys.add(optionKeyForFlag(alias))}}}return Object.fromEntries(Object.entries(options).filter(([key])=>!presentationKeys.has(key)))}function createQueryFingerprint(command,contract){return createHash("sha256").update(command).update("\0").update(stableStringify(contract)).digest("hex").slice(0,24)}function encodeQueryCursor(fingerprint,afterId,afterIndex,snapshot){return Buffer.from(JSON.stringify({version:QUERY_CURSOR_VERSION,fingerprint,after_id:afterId,...afterIndex===void 0?{}:{after_index:afterIndex},...snapshot===void 0?{}:{snapshot}})).toString("base64url")}function invalidCursor(message){return new PmCliError(message,EXIT_CODE.USAGE,{code:"invalid_query_cursor",nextSteps:["Repeat the original query without --after to obtain a fresh cursor."]})}function isQueryCursorEnvelope(value){if(typeof value!=="object"||value===null||Array.isArray(value)){return false}const envelope=value;return envelope.version===QUERY_CURSOR_VERSION&&typeof envelope.fingerprint==="string"&&typeof envelope.after_id==="string"&&envelope.after_id.length>0&&(envelope.after_index===void 0||Number.isSafeInteger(envelope.after_index)&&envelope.after_index>=0)&&(envelope.snapshot===void 0||typeof envelope.snapshot==="string"&&envelope.snapshot.length>0)}function decodeQueryCursorEnvelope(cursor){if(typeof cursor!=="string"){throw invalidCursor("Query cursor is malformed.")}const normalized=cursor.trim();if(normalized.length===0||normalized.length>MAX_CURSOR_LENGTH||!BASE64URL_PATTERN.test(normalized)){throw invalidCursor("Query cursor is malformed.")}let parsed;try{parsed=JSON.parse(Buffer.from(normalized,"base64url").toString("utf8"))}catch{throw invalidCursor("Query cursor is malformed.")}if(!isQueryCursorEnvelope(parsed)){throw invalidCursor("Query cursor version or payload is unsupported.")}return parsed}function decodeQueryCursorState(cursor,expectedFingerprint){const envelope=decodeQueryCursorEnvelope(cursor);if(envelope.fingerprint!==expectedFingerprint){throw invalidCursor(`Query cursor does not match the current filters, sort, or query (${envelope.fingerprint} != ${expectedFingerprint}).`)}return{after_id:envelope.after_id,...envelope.after_index===void 0?{}:{after_index:envelope.after_index},...envelope.snapshot===void 0?{}:{snapshot:envelope.snapshot}}}function decodeQueryCursor(cursor,expectedFingerprint){return decodeQueryCursorState(cursor,expectedFingerprint).after_id}function resolveQueryCursorStart(rows,cursor,fingerprint,readId){if(cursor===void 0){return 0}const state=decodeQueryCursorState(cursor,fingerprint);const index=rows.findIndex(row=>readId(row)===state.after_id);if(index<0){if(state.after_index!==void 0){return Math.min(state.after_index,rows.length)}throw invalidCursor(`Query cursor item ${state.after_id} is no longer present in this result set.`)}return index+1}function paginateQueryRows(rows,options){if(options.cursor!==void 0&&decodeQueryCursorState(options.cursor,options.fingerprint).snapshot!==options.snapshot)throw invalidCursor("Query cursor does not match the requested snapshot.");const pageStart=resolveQueryCursorStart(rows,options.cursor,options.fingerprint,options.readId);const pageRows=rows.slice(pageStart,pageStart+options.limit);const hasMore=pageRows.length>0&&pageStart+pageRows.length<rows.length;const lastRow=pageRows.at(-1);return{rows:pageRows,has_more:hasMore,...hasMore&&lastRow!==void 0?{next_cursor:encodeQueryCursor(options.fingerprint,options.readId(lastRow),pageStart+pageRows.length-1,options.snapshot)}:{}}}const QUERY_CURSOR_CONTRACT=Object.freeze({version:QUERY_CURSOR_VERSION,max_length:MAX_CURSOR_LENGTH});export{QUERY_CURSOR_CONTRACT,createQueryFingerprint,decodeQueryCursor,decodeQueryCursorEnvelope,decodeQueryCursorState,encodeQueryCursor,paginateQueryRows,resolveQueryCursorStart,selectCursorSemanticOptions};
|
|
2
2
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Test strength and documentation content
|
|
2
|
+
|
|
3
|
+
Tracked by [pm-zclzll](../.agents/pm/tasks/pm-zclzll.toon) and
|
|
4
|
+
[pm-dvwm](../.agents/pm/chores/pm-dvwm.toon).
|
|
5
|
+
|
|
6
|
+
## SDK mutation testing
|
|
7
|
+
|
|
8
|
+
`pnpm quality:mutation` uses Stryker's Vitest runner to mutate the SDK cursor and
|
|
9
|
+
external-dependency primitives. The declared partition in
|
|
10
|
+
`scripts/release/sdk-mutation.json` is deliberately bounded. It does not claim
|
|
11
|
+
a mutation score for the entire SDK. The existing behavioral tests run without
|
|
12
|
+
retries; no production functions are mocked in this partition. All-source
|
|
13
|
+
coverage remains a separate mandatory 100/100/100/100 gate.
|
|
14
|
+
|
|
15
|
+
The sandboxed runner creates external temporary project/global trackers,
|
|
16
|
+
disables external telemetry, removes ambient source-workspace references, and
|
|
17
|
+
copies mutation sources without the real tracker. It holds the build lease
|
|
18
|
+
until the engine exits and removes the owned temporary directory afterward.
|
|
19
|
+
The normal source tree is never mutated. Every run executes all mutants;
|
|
20
|
+
incremental results cannot supply stale evidence. Four workers and per-mutant
|
|
21
|
+
timeouts bound this partition inside the existing 20-minute static job.
|
|
22
|
+
The runner fixes sandboxing, fresh execution and the complete mutator set after
|
|
23
|
+
loading configuration, so configuration overrides cannot disable those controls.
|
|
24
|
+
|
|
25
|
+
The gate verifies source bytes, exact module scope, nonempty mutant populations,
|
|
26
|
+
and unique mutation identities. Only assertion-killed mutants contribute to the
|
|
27
|
+
raw score. Timeouts, compiler errors, uncovered mutants and ignored mutants fail.
|
|
28
|
+
A survivor requires an exact identity, a behavioral equivalence explanation,
|
|
29
|
+
and an owning pm item in `sdk-mutation-baseline.json`. The initial seven waivers
|
|
30
|
+
cover redundant guards and JavaScript serialization and absent-date equivalences;
|
|
31
|
+
there are no blanket mutator exclusions or source-ignore directives.
|
|
32
|
+
|
|
33
|
+
Inspect `.cache/mutation/report.json` for individual mutations and
|
|
34
|
+
`.cache/mutation/receipt.json` for the gate verdict. On a new survivor, first add
|
|
35
|
+
a behavioral assertion to the existing test that owns the contract. If the
|
|
36
|
+
mutation is observably equivalent, record its exact identity and justification
|
|
37
|
+
for review. Remove waivers that disappear or become killed. Improvements require
|
|
38
|
+
raising `minimumScore`; CI compares the floor and module scope with the PR base
|
|
39
|
+
and refuses regression. Do not round the score when updating the baseline.
|
|
40
|
+
|
|
41
|
+
Both `pnpm quality:static` and the existing required hosted static job run the
|
|
42
|
+
partition, as do nightly and release static validation. The runner rejects
|
|
43
|
+
command-line mutation policy overrides. The static chain uses `--prebuilt` to
|
|
44
|
+
reuse its completed build while still acquiring the build lease and rejecting
|
|
45
|
+
an incomplete generation; standalone mutation runs retain their default build.
|
|
46
|
+
Extending the partition requires adding the
|
|
47
|
+
module and its behavioral tests together, measuring runtime, and reviewing every
|
|
48
|
+
survivor. Gate unit tests inject report/engine boundaries to prove failure paths;
|
|
49
|
+
the actual Stryker execution is an additional required gate.
|
|
50
|
+
|
|
51
|
+
## Documentation content ratchet
|
|
52
|
+
|
|
53
|
+
`pnpm quality:docstrings` parses documentation comments across runtime sources,
|
|
54
|
+
packages, scripts, plugins and executable examples. It detects four known filler
|
|
55
|
+
templates, including wrapped comments, without matching quoted strings or
|
|
56
|
+
ordinary comments. Module, exported-declaration and member documentation coverage
|
|
57
|
+
remain independently enforced by the existing static gate.
|
|
58
|
+
|
|
59
|
+
The initial census found 4,192 filler comments. This delivery removes ten from
|
|
60
|
+
the Commander alias contract and records the remaining per-file counts. The
|
|
61
|
+
remaining debt is visible; an enforced inventory is not a claim that every
|
|
62
|
+
existing comment is now informative.
|
|
63
|
+
|
|
64
|
+
When editing a declaration, replace its filler with the actual behavior,
|
|
65
|
+
precedence, units or invariants. Do not merely restate the identifier. After
|
|
66
|
+
reducing a file's count, run `pnpm quality:docstrings:update` and commit the
|
|
67
|
+
smaller baseline. The update refuses growth, including in new files. Counts
|
|
68
|
+
cannot be traded between files, and CI refuses baseline increases against the
|
|
69
|
+
PR base via `PM_QUALITY_BASE_REF`. Removed filler cannot silently return by
|
|
70
|
+
leaving a stale larger ceiling.
|
package/docs/TESTING.md
CHANGED
|
@@ -177,6 +177,14 @@ quality:static`: every `src/**/*.ts` source file needs a module TSDoc block,
|
|
|
177
177
|
every exported declaration needs a non-module TSDoc block, and known generated
|
|
178
178
|
boilerplate summaries are rejected.
|
|
179
179
|
|
|
180
|
+
## Test Strength and Documentation Content
|
|
181
|
+
|
|
182
|
+
The required static gate also runs [SDK mutation testing and the documentation
|
|
183
|
+
content ratchet](QUALITY_EVIDENCE.md), tracked by
|
|
184
|
+
[pm-zclzll](../.agents/pm/tasks/pm-zclzll.toon) and
|
|
185
|
+
[pm-dvwm](../.agents/pm/chores/pm-dvwm.toon). These add behavioral and content
|
|
186
|
+
checks while retaining exact 100/100/100/100 coverage and all docstring floors.
|
|
187
|
+
|
|
180
188
|
## TOON Storage Round-Trip Gate
|
|
181
189
|
|
|
182
190
|
History-only lifecycle reconstruction and recovery contracts are described in
|
package/marketplace.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.",
|
|
9
|
-
"version": "2026.9.
|
|
9
|
+
"version": "2026.9.23"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "pm-claude",
|
|
14
14
|
"source": "./plugins/pm-claude",
|
|
15
15
|
"description": "Native pm CLI integration for Claude Code — 28 MCP tools, 5 workflow skills, 14 slash commands, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.",
|
|
16
|
-
"version": "2026.9.
|
|
16
|
+
"version": "2026.9.23",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "unbrained",
|
|
19
19
|
"url": "https://github.com/unbraind/pm-cli"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unbrained/pm-cli",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.23",
|
|
4
4
|
"description": "Git-native project management CLI for humans and agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.10.0",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"lint:complexity:baseline": "eslint . --suppress-rule complexity --suppress-rule sonarjs/cognitive-complexity",
|
|
124
124
|
"lint:duplicates": "jscpd --config .jscpd.json && jscpd --config .jscpd.source.json && jscpd --config .jscpd.tables.json",
|
|
125
125
|
"lint:codefactor": "pnpm quality:static",
|
|
126
|
-
"quality:static": "pnpm quality:exports && pnpm lint:eslint && pnpm lint:duplicates && pnpm build && node scripts/contracts-snapshot.mjs --check && node scripts/generate-agent-capability-surfaces.mjs --check && node scripts/generate-error-code-catalog.mjs --check && node scripts/release/repository-assurance.mjs repository-static-quality --trigger ci --json && node scripts/release/audit-package-boundary.mjs && node scripts/release/package-sdk-contract-parity.mjs && node scripts/release/surface-replication-gate.mjs && node scripts/release/command-grammar-gate.mjs && node scripts/release/flag-invocation-parity.mjs && node scripts/release/flag-lexicon-gate.mjs && node scripts/release/refusal-closure-gate.mjs && node scripts/release/agent-task-token-gate.mjs && pnpm quality:mcp-deprecations && node dist/cli.js assurance run tracker-context-quality --trigger ci --dry-run --json --output-budget unbounded && node scripts/release/gate-registry.mjs && node scripts/sdk-surface-snapshot.mjs --check && node scripts/bench/sdk-entrypoint-costs.mjs --check && node scripts/bench/cli-transport-floor.mjs --check && node dist/cli.js assurance run graph-composition --trigger ci --dry-run --json --output-budget unbounded && node dist/cli.js assurance run record-integrity --trigger ci --dry-run --json --output-budget unbounded",
|
|
126
|
+
"quality:static": "pnpm quality:docstrings && pnpm quality:exports && pnpm lint:eslint && pnpm lint:duplicates && pnpm build && node scripts/contracts-snapshot.mjs --check && node scripts/generate-agent-capability-surfaces.mjs --check && node scripts/generate-error-code-catalog.mjs --check && node scripts/release/repository-assurance.mjs repository-static-quality --trigger ci --json && node scripts/release/audit-package-boundary.mjs && node scripts/release/package-sdk-contract-parity.mjs && node scripts/release/surface-replication-gate.mjs && node scripts/release/command-grammar-gate.mjs && node scripts/release/flag-invocation-parity.mjs && node scripts/release/flag-lexicon-gate.mjs && node scripts/release/refusal-closure-gate.mjs && node scripts/release/agent-task-token-gate.mjs && pnpm quality:mcp-deprecations && node dist/cli.js assurance run tracker-context-quality --trigger ci --dry-run --json --output-budget unbounded && node scripts/release/gate-registry.mjs && node scripts/sdk-surface-snapshot.mjs --check && node scripts/bench/sdk-entrypoint-costs.mjs --check && node scripts/bench/cli-transport-floor.mjs --check && node dist/cli.js assurance run graph-composition --trigger ci --dry-run --json --output-budget unbounded && node dist/cli.js assurance run record-integrity --trigger ci --dry-run --json --output-budget unbounded && pnpm quality:mutation -- --prebuilt",
|
|
127
127
|
"quality:exports": "knip --no-config-hints && node scripts/run-tests.mjs test -- tests/unit/scripts/release/dead-exports.spec.ts",
|
|
128
128
|
"quality:command-grammar": "pnpm build && node scripts/release/command-grammar-gate.mjs && node scripts/release/flag-invocation-parity.mjs && node scripts/release/flag-lexicon-gate.mjs",
|
|
129
129
|
"quality:recovery-closure": "pnpm build && node scripts/release/refusal-closure-gate.mjs",
|
|
@@ -188,7 +188,10 @@
|
|
|
188
188
|
"sentry:inject": "sentry-cli sourcemaps inject dist/",
|
|
189
189
|
"sentry:upload": "sentry-cli sourcemaps upload --org unbrained --project pm-cli --release \"pm-cli@$npm_package_version\" --validate dist/",
|
|
190
190
|
"build:sentry": "pnpm build && pnpm sentry:inject && pnpm sentry:upload",
|
|
191
|
-
"prepublishOnly": "pnpm build"
|
|
191
|
+
"prepublishOnly": "pnpm build",
|
|
192
|
+
"quality:docstrings": "node --input-type=module --eval \"import { main } from './scripts/release/docstring-quality.mjs'; console.log(JSON.stringify(main()));\"",
|
|
193
|
+
"quality:docstrings:update": "node --input-type=module --eval \"import { main } from './scripts/release/docstring-quality.mjs'; console.log(JSON.stringify(main(['--update'])));\"",
|
|
194
|
+
"quality:mutation": "node scripts/run-tests.mjs mutation"
|
|
192
195
|
},
|
|
193
196
|
"keywords": [
|
|
194
197
|
"cli",
|
|
@@ -223,6 +226,8 @@
|
|
|
223
226
|
"@eslint/js": "^10.0.1",
|
|
224
227
|
"@modelcontextprotocol/ext-apps": "2.0.0",
|
|
225
228
|
"@sentry/cli": "^3.8.0",
|
|
229
|
+
"@stryker-mutator/core": "10.0.0",
|
|
230
|
+
"@stryker-mutator/vitest-runner": "10.0.0",
|
|
226
231
|
"@types/node": "^26.6.2",
|
|
227
232
|
"@types/npm-package-arg": "^6.1.4",
|
|
228
233
|
"@vitest/coverage-v8": "^4.1.11",
|