@unbrained/pm-cli 2026.10.3 → 2026.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +17 -2
  3. package/dist/cli/error-guidance.js +1 -1
  4. package/dist/cli/runtime/invocation-options.js +1 -1
  5. package/dist/cli/runtime/selection.js +1 -1
  6. package/dist/cli/runtime-compatibility-boundary.d.ts +1 -1
  7. package/dist/cli/runtime-compatibility-boundary.js +3 -3
  8. package/dist/cli-bundle/bundle-manifest.json +154 -154
  9. package/dist/cli-bundle/chunks/{chunk-YCBGZF3T.js → chunk-7CE2DJMA.js} +2 -2
  10. package/dist/cli-bundle/chunks/{chunk-6ST3SCQ6.js → chunk-7UVXKI7K.js} +2 -2
  11. package/dist/cli-bundle/chunks/{chunk-H2DZW6I6.js → chunk-D7Z2ZMJL.js} +2 -2
  12. package/dist/cli-bundle/chunks/{chunk-44UGMMQ6.js → chunk-GZMWISWW.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-KP7NBQK3.js → chunk-J52QIRRZ.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-3AF2R3Y6.js → chunk-JDKD3WGG.js} +6 -6
  15. package/dist/cli-bundle/chunks/chunk-JQ7DW663.js +2 -0
  16. package/dist/cli-bundle/chunks/{chunk-MKXBCBAN.js → chunk-QXIDOOWT.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-5XKF5SQV.js → chunk-SMKHR6BM.js} +49 -49
  18. package/dist/cli-bundle/chunks/{chunk-FW5LJXQY.js → chunk-V3U77H3V.js} +28 -28
  19. package/dist/cli-bundle/chunks/{chunk-YDWKGUQU.js → chunk-XZDWAYJC.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-QPKQKSQU.js → chunk-Y6VRBTP3.js} +71 -71
  21. package/dist/cli-bundle/chunks/{chunk-6Z4IV2MC.js → chunk-YAAFYFS4.js} +2 -2
  22. package/dist/cli-bundle/chunks/{register-list-query-DYCGUQEW.js → register-list-query-QBGXO5JJ.js} +2 -2
  23. package/dist/cli-bundle/chunks/{register-mutation-5PT3NW3A.js → register-mutation-53ZLT4RX.js} +2 -2
  24. package/dist/cli-bundle/chunks/{register-operations-QDDQOAAV.js → register-operations-OBK2FXUU.js} +2 -2
  25. package/dist/cli-bundle/chunks/{register-setup-BBX67YMA.js → register-setup-HM3OCBH2.js} +2 -2
  26. package/dist/cli-bundle/focused-chunks/{chunk-FKK2HI3S.js → chunk-2JFYR56O.js} +2 -2
  27. package/dist/cli-bundle/focused-chunks/{chunk-UTRSM3ZK.js → chunk-32EVUSS4.js} +2 -2
  28. package/dist/cli-bundle/focused-chunks/{chunk-DBD4W4QP.js → chunk-467EW5RL.js} +2 -2
  29. package/dist/cli-bundle/focused-chunks/{chunk-WAJNX4RN.js → chunk-5GUSO2P4.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/{chunk-GMYUNHST.js → chunk-6XBRADQQ.js} +2 -2
  31. package/dist/cli-bundle/focused-chunks/{chunk-EJN7DY3B.js → chunk-7O4NUJVO.js} +2 -2
  32. package/dist/cli-bundle/focused-chunks/{chunk-E754JDLY.js → chunk-CURTIIQT.js} +2 -2
  33. package/dist/cli-bundle/focused-chunks/{chunk-4FFPGNCJ.js → chunk-IJUWEEEB.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/{chunk-XRSCIYHR.js → chunk-JCVMOSWQ.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/{chunk-ZIXFMIUL.js → chunk-JMJK2L4Z.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-WCY6HRZO.js → chunk-KG3H4UZZ.js} +14 -14
  37. package/dist/cli-bundle/focused-chunks/{chunk-VVWYI2X7.js → chunk-MHQ2XICU.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/{chunk-3BIYG72P.js → chunk-Q6DJ5DFQ.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/{chunk-73DA7ISY.js → chunk-RJV6QVJE.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{chunk-HIA2ZF64.js → chunk-ZE2JZ7R6.js} +11 -11
  41. package/dist/cli-bundle/focused-chunks/chunk-ZLEN4HZD.js +165 -0
  42. package/dist/cli-bundle/main.js +22 -22
  43. package/dist/cli-bundle/sdk-authoring.js +1 -1
  44. package/dist/cli-bundle/sdk-contracts.js +1 -1
  45. package/dist/cli-bundle/sdk-core.js +22 -22
  46. package/dist/cli-bundle/sdk-governance.js +1 -1
  47. package/dist/cli-bundle/sdk-graph.js +1 -1
  48. package/dist/cli-bundle/sdk-merge.js +11 -11
  49. package/dist/cli-bundle/sdk-query.js +1 -1
  50. package/dist/cli-bundle/sdk-runtime.js +1 -1
  51. package/dist/cli-bundle/sdk-testing.js +1 -1
  52. package/dist/cli-bundle/sdk.js +1 -1
  53. package/dist/core/extensions/extension-types.d.ts +8 -1
  54. package/dist/core/extensions/extension-types.js +1 -1
  55. package/dist/core/shared/time.js +1 -1
  56. package/dist/core/store/settings.d.ts +11 -2
  57. package/dist/core/store/settings.js +2 -2
  58. package/dist/sdk/agent/subcommand-recovery.js +1 -1
  59. package/dist/sdk/cli-bootstrap.js +1 -1
  60. package/dist/sdk/context-intent-contracts.js +1 -1
  61. package/dist/sdk/extension-command-context.js +1 -1
  62. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  63. package/dist/sdk/item-transaction.js +1 -1
  64. package/dist/sdk/lifecycle/recurrence-parsers.js +1 -1
  65. package/dist/sdk/lifecycle/task-composition.js +1 -1
  66. package/dist/sdk/output-projection.js +1 -1
  67. package/dist/sdk/public-surface.json +1 -1
  68. package/dist/sdk/query/get.js +1 -1
  69. package/dist/sdk/query/search-pagination.d.ts +1 -1
  70. package/dist/sdk/query/search-pagination.js +1 -1
  71. package/dist/sdk/test/workspace-snapshot.js +1 -1
  72. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +25 -0
  73. package/docs/OUTPUT_PROJECTION_CONTRACTS.md +23 -0
  74. package/docs/SDK_AUDITED_MUTATIONS.md +35 -0
  75. package/docs/TESTING.md +8 -0
  76. package/docs/ecosystem-review-2026-09-28.json +2864 -3157
  77. package/marketplace.json +2 -2
  78. package/package.json +1 -1
  79. package/packages/pm-beads/package.json +1 -1
  80. package/packages/pm-calendar/package.json +1 -1
  81. package/packages/pm-command-kit/package.json +1 -1
  82. package/packages/pm-digital-twin/package.json +1 -1
  83. package/packages/pm-governance-audit/package.json +1 -1
  84. package/packages/pm-guide-shell/package.json +1 -1
  85. package/packages/pm-kanban/package.json +1 -1
  86. package/packages/pm-lifecycle-hooks/package.json +1 -1
  87. package/packages/pm-linked-test-adapters/package.json +1 -1
  88. package/packages/pm-search-advanced/package.json +1 -1
  89. package/packages/pm-templates/package.json +1 -1
  90. package/packages/pm-todos/package.json +1 -1
  91. package/packages/pm-vcs/package.json +1 -1
  92. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  93. package/plugins/pm-claude/package.json +2 -2
  94. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  95. package/plugins/pm-codex/package.json +2 -2
  96. package/plugins/pm-codex/plugin.json +1 -1
  97. package/dist/cli-bundle/chunks/chunk-H7CXQBGQ.js +0 -2
  98. package/dist/cli-bundle/focused-chunks/chunk-YC32ZSLS.js +0 -165
@@ -1,2 +1,2 @@
1
- import{$ as m,A as Je,Aa as Mo,B as Ke,Ba as Ro,C as Qe,Ca as Ao,D as Ye,Da as Po,E as Ze,Ea as Bo,F as $e,Fa as Oo,G as eo,Ga as Uo,H as oo,Ha as Wo,I as to,Ia as jo,J as ro,Ja as Lo,K as no,Ka as No,L as fo,La as Vo,M as po,Ma as zo,N as ao,Na as Xo,O as mo,Oa as qo,P as so,Pa as Go,Q as io,Qa as Ho,R as xo,Ra as Jo,S as lo,Sa as Ko,T as uo,Ta as k,U as co,Ua as E,V as yo,Va as D,W as go,X as bo,Y as Co,Z as Io,_ as a,a as Be,aa as d,b as Oe,ba as s,c as Ue,ca as i,d as We,da as x,e as je,ea as l,f as Le,fa as u,g as Ne,ga as c,ha as y,ia as g,ja as b,ka as C,la as I,ma as w,na as T,o as Ve,oa as h,p as ze,pa as _,q as Xe,qa as wo,r as qe,ra as To,sa as ho,ta as _o,ua as ko,va as Eo,wa as Do,x as p,xa as vo,y as Ge,ya as Fo,z as He,za as So}from"./focused-chunks/chunk-HIA2ZF64.js";import{Q as te,Qa as Ce,Ra as Ie,Sa as we,Ta as Te,Ua as he,Va as _e,Wa as ke,da as n,db as Ee,eb as De,fb as ve,gb as Fe,hb as Se,ib as Me,jb as Re,kb as Ae,lb as Pe,tb as f}from"./focused-chunks/chunk-WAJNX4RN.js";import"./focused-chunks/chunk-ZIXFMIUL.js";import{a as J,b as K,c as Q,d as Y,e as Z,f as $}from"./focused-chunks/chunk-FKK2HI3S.js";import"./focused-chunks/chunk-XRSCIYHR.js";import{Ea as oe,Kb as se,Lb as ie,Mb as xe,Nb as le,Ob as ue,Pb as ce,Qb as ye,Rb as ge,Sb as be,aa as ee,nb as r,ob as re,pb as ne,qb as fe,rb as pe,tb as ae,ub as me,vb as de}from"./focused-chunks/chunk-YC32ZSLS.js";import"./focused-chunks/chunk-GMYUNHST.js";import"./focused-chunks/chunk-HFAW3FJQ.js";import{cd as v,dd as F,ed as S,ee as U,fd as M,fe as W,gd as R,ge as j,hd as A,he as L,id as P,ie as N,jd as B,je as V,kd as O,ke as z,le as X,me as q,ne as G,oe as H}from"./focused-chunks/chunk-WCY6HRZO.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]="d007edcb-46f0-5546-b804-27d86afe23e7")}catch{}})();export{ie as ACTIONABILITY_ORDERING_KINDS,K as BRIEF_LIST_FIELDS,Ze as CONTEXT_EVALUATION_METRIC_NAMES,a as CONTEXT_OUTPUT_VALUES,ro as CONTEXT_PACKING_PROFILES,Je as CONTEXT_RELEVANCE_SERVICE,Ge as CONTEXT_RELEVANCE_SIGNAL_NAMES,po as CONTEXT_SIGNAL_SET_VERSION,fo as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,ao as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,U as CONTEXT_USAGE_LIMITS,xo as ContextSignalStore,W as ContextUsageValidationError,So as DEFAULT_CHILD_SAMPLE_LIMIT,J as DEFAULT_COMPACT_LIST_FIELDS,pe as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,uo as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,k as EVAL_METRIC_NAMES,Z as GET_DEPTH_VALUES,io as JsonFileContextSignalStoreAdapter,Q as LIST_COMMAND_DEFAULT_PROJECTIONS,ve as LIST_SORT_FIELDS,Fe as LIST_SORT_ORDER_VALUES,Fo as MAX_CHILD_PROJECTION_ITEMS,wo as NEXT_OUTPUT_VALUES,Be as PM_COMPLETE_LIST_FINDING_CODES,Oe as PmCompleteListValidationError,O as QUERY_CURSOR_CONTRACT,Pe as _testOnly,vo as _testOnlyAggregateCommand,Ao as _testOnlyGetCommand,ho as _testOnlyNextCommand,Jo as _testOnlySearchCommand,ae as acquireItemMetadataDerivedIndexLock,f as analyzeDuplicateItems,h as applyContextTagProjection,Se as applyFilterValueEcho,Le as assertCompleteListResult,j as attachContextUsageServingReceipt,C as buildChildrenByParent,Vo as buildCompactSearchFilterSummary,Me as buildContentFilterEcho,so as buildContextSignalSnapshot,Re as buildGovernanceMissingFilterEcho,Mo as buildItemChildrenRollup,He as buildItemContextRelevanceCandidates,zo as buildVerboseSearchFilters,co as buildWorkspaceMemorySnapshot,je as certifyCompleteListResult,qo as classifyImplicitSemanticFallbackReason,xe as collectBlockedByIds,ue as collectBlockedByIdsFromCorpus,N as collectContextUsageDeliveredItemIds,ye as collectDependencyBlockedIds,Xo as collectErrorCauseCodes,u as collectSubtreeIds,c as compareCriticalItems,be as computeActionabilityReport,Ue as createCompleteListOptions,F as createQueryFingerprint,Lo as createSearchCursorFingerprint,A as decodeQueryCursor,M as decodeQueryCursorEnvelope,R as decodeQueryCursorState,Ke as defaultScoreContextCandidates,S as encodeQueryCursor,$e as evaluateContextRanking,D as evaluateMetricFloors,n as executeEmbeddingBatchesWithRetry,V as finalizeContextUsageDelivery,Ho as formatVectorIndexRecoveryWarnings,le as indexBlockedByIds,We as inspectCompleteListResult,$ as listGetProjectionFields,Y as listListProjectionFields,r as measureItemMetadataReadWork,w as mergeSortedWarnings,no as packContextCandidates,y as packRankedContextItems,B as paginateQueryRows,x as parseContextDepth,m as parseContextFocusFields,l as parseContextSections,mo as parseContextSignalSnapshot,E as parseEvalMetricFloors,Ce as parseIntegerLimit,te as parseLimit,Te as parseMultiValueFilter,Ie as parsePriority,ke as parsePriorityFilterSet,he as parseStringFilterSet,we as parseType,_e as parseTypeFilterSet,_o as partitionDecisionEntries,d as projectContextFocusRows,L as propagateContextUsageServingReceipt,re as queryItemMetadataIndex,ne as queryLinkedFileMetadataIndex,fe as querySimilarItemMetadataIndex,H as readContextUsageAffinity,ee as readHistoryEntries,me as readItemMetadataDerivedIndexState,lo as readWorkspaceContextSignals,yo as readWorkspaceMemory,X as recordContextUsageDelivery,z as recordContextUsageServing,q as recordContextUsageTouch,G as recordContextUsageTouches,de as refreshItemMetadataDerivedIndex,ze as renderCalendarMarkdown,Xe as renderCalendarToon,T as renderContextMarkdown,Eo as renderNextMarkdown,Ve as resolveCalendarOutputFormat,De as resolveContentFieldFilters,s as resolveContextOutputFormat,i as resolveContextTokenBudget,Oo as resolveEffectiveSearchMode,Wo as resolveHybridSemanticWeight,ce as resolveItemBlockers,se as resolveItemExecutionRole,Ee as resolveMissingMetadataFilters,To as resolveNextOutputFormat,P as resolveQueryCursorStart,Bo as resolveSearchMaxResults,No as resolveSearchPage,Uo as resolveSearchScoreThreshold,jo as resolveSearchTuning,Go as resolveVectorIndexRecovery,p as runActivity,Do as runAggregate,qe as runCalendar,_ as runContext,to as runContextEvaluationCorpus,eo as runContextEvaluationScenario,Ne as runDuplicates,Ro as runGet,Po as runHistory,Ae as runList,ko as runNext,Ko as runSearch,Qe as scoreContextCandidates,Ye as scoreContextCandidatesWithActiveExtensions,Co as searchWorkspaceMemory,Io as searchWorkspaceMemoryReadResult,ge as selectActionableEntries,v as selectCursorSemanticOptions,bo as selectWorkspaceMemory,go as selectWorkspaceMemoryRollups,oo as summarizeContextEvaluationReports,I as toContextFocusItem,g as toContextPackingSummary,b as toContextRankingSummary,oe as verifyHistoryChain};
1
+ import{$ as m,A as Je,Aa as Mo,B as Ke,Ba as Ro,C as Qe,Ca as Ao,D as Ye,Da as Po,E as Ze,Ea as Bo,F as $e,Fa as Oo,G as eo,Ga as Uo,H as oo,Ha as Wo,I as to,Ia as jo,J as ro,Ja as Lo,K as no,Ka as No,L as fo,La as Vo,M as po,Ma as zo,N as ao,Na as Xo,O as mo,Oa as qo,P as so,Pa as Go,Q as io,Qa as Ho,R as xo,Ra as Jo,S as lo,Sa as Ko,T as uo,Ta as k,U as co,Ua as E,V as yo,Va as D,W as go,X as bo,Y as Co,Z as Io,_ as a,a as Be,aa as d,b as Oe,ba as s,c as Ue,ca as i,d as We,da as x,e as je,ea as l,f as Le,fa as u,g as Ne,ga as c,ha as y,ia as g,ja as b,ka as C,la as I,ma as w,na as T,o as Ve,oa as h,p as ze,pa as _,q as Xe,qa as wo,r as qe,ra as To,sa as ho,ta as _o,ua as ko,va as Eo,wa as Do,x as p,xa as vo,y as Ge,ya as Fo,z as He,za as So}from"./focused-chunks/chunk-ZE2JZ7R6.js";import{Q as te,Qa as Ce,Ra as Ie,Sa as we,Ta as Te,Ua as he,Va as _e,Wa as ke,da as n,db as Ee,eb as De,fb as ve,gb as Fe,hb as Se,ib as Me,jb as Re,kb as Ae,lb as Pe,tb as f}from"./focused-chunks/chunk-5GUSO2P4.js";import"./focused-chunks/chunk-JMJK2L4Z.js";import{a as J,b as K,c as Q,d as Y,e as Z,f as $}from"./focused-chunks/chunk-2JFYR56O.js";import"./focused-chunks/chunk-JCVMOSWQ.js";import{Ea as oe,Mb as se,Nb as ie,Ob as xe,Pb as le,Qb as ue,Rb as ce,Sb as ye,Tb as ge,Ub as be,aa as ee,pb as r,qb as re,rb as ne,sb as fe,tb as pe,vb as ae,wb as me,xb as de}from"./focused-chunks/chunk-ZLEN4HZD.js";import"./focused-chunks/chunk-6XBRADQQ.js";import"./focused-chunks/chunk-HFAW3FJQ.js";import{cd as v,dd as F,ed as S,ee as U,fd as M,fe as W,gd as R,ge as j,hd as A,he as L,id as P,ie as N,jd as B,je as V,kd as O,ke as z,le as X,me as q,ne as G,oe as H}from"./focused-chunks/chunk-KG3H4UZZ.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]="d007edcb-46f0-5546-b804-27d86afe23e7")}catch{}})();export{ie as ACTIONABILITY_ORDERING_KINDS,K as BRIEF_LIST_FIELDS,Ze as CONTEXT_EVALUATION_METRIC_NAMES,a as CONTEXT_OUTPUT_VALUES,ro as CONTEXT_PACKING_PROFILES,Je as CONTEXT_RELEVANCE_SERVICE,Ge as CONTEXT_RELEVANCE_SIGNAL_NAMES,po as CONTEXT_SIGNAL_SET_VERSION,fo as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,ao as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,U as CONTEXT_USAGE_LIMITS,xo as ContextSignalStore,W as ContextUsageValidationError,So as DEFAULT_CHILD_SAMPLE_LIMIT,J as DEFAULT_COMPACT_LIST_FIELDS,pe as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,uo as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,k as EVAL_METRIC_NAMES,Z as GET_DEPTH_VALUES,io as JsonFileContextSignalStoreAdapter,Q as LIST_COMMAND_DEFAULT_PROJECTIONS,ve as LIST_SORT_FIELDS,Fe as LIST_SORT_ORDER_VALUES,Fo as MAX_CHILD_PROJECTION_ITEMS,wo as NEXT_OUTPUT_VALUES,Be as PM_COMPLETE_LIST_FINDING_CODES,Oe as PmCompleteListValidationError,O as QUERY_CURSOR_CONTRACT,Pe as _testOnly,vo as _testOnlyAggregateCommand,Ao as _testOnlyGetCommand,ho as _testOnlyNextCommand,Jo as _testOnlySearchCommand,ae as acquireItemMetadataDerivedIndexLock,f as analyzeDuplicateItems,h as applyContextTagProjection,Se as applyFilterValueEcho,Le as assertCompleteListResult,j as attachContextUsageServingReceipt,C as buildChildrenByParent,Vo as buildCompactSearchFilterSummary,Me as buildContentFilterEcho,so as buildContextSignalSnapshot,Re as buildGovernanceMissingFilterEcho,Mo as buildItemChildrenRollup,He as buildItemContextRelevanceCandidates,zo as buildVerboseSearchFilters,co as buildWorkspaceMemorySnapshot,je as certifyCompleteListResult,qo as classifyImplicitSemanticFallbackReason,xe as collectBlockedByIds,ue as collectBlockedByIdsFromCorpus,N as collectContextUsageDeliveredItemIds,ye as collectDependencyBlockedIds,Xo as collectErrorCauseCodes,u as collectSubtreeIds,c as compareCriticalItems,be as computeActionabilityReport,Ue as createCompleteListOptions,F as createQueryFingerprint,Lo as createSearchCursorFingerprint,A as decodeQueryCursor,M as decodeQueryCursorEnvelope,R as decodeQueryCursorState,Ke as defaultScoreContextCandidates,S as encodeQueryCursor,$e as evaluateContextRanking,D as evaluateMetricFloors,n as executeEmbeddingBatchesWithRetry,V as finalizeContextUsageDelivery,Ho as formatVectorIndexRecoveryWarnings,le as indexBlockedByIds,We as inspectCompleteListResult,$ as listGetProjectionFields,Y as listListProjectionFields,r as measureItemMetadataReadWork,w as mergeSortedWarnings,no as packContextCandidates,y as packRankedContextItems,B as paginateQueryRows,x as parseContextDepth,m as parseContextFocusFields,l as parseContextSections,mo as parseContextSignalSnapshot,E as parseEvalMetricFloors,Ce as parseIntegerLimit,te as parseLimit,Te as parseMultiValueFilter,Ie as parsePriority,ke as parsePriorityFilterSet,he as parseStringFilterSet,we as parseType,_e as parseTypeFilterSet,_o as partitionDecisionEntries,d as projectContextFocusRows,L as propagateContextUsageServingReceipt,re as queryItemMetadataIndex,ne as queryLinkedFileMetadataIndex,fe as querySimilarItemMetadataIndex,H as readContextUsageAffinity,ee as readHistoryEntries,me as readItemMetadataDerivedIndexState,lo as readWorkspaceContextSignals,yo as readWorkspaceMemory,X as recordContextUsageDelivery,z as recordContextUsageServing,q as recordContextUsageTouch,G as recordContextUsageTouches,de as refreshItemMetadataDerivedIndex,ze as renderCalendarMarkdown,Xe as renderCalendarToon,T as renderContextMarkdown,Eo as renderNextMarkdown,Ve as resolveCalendarOutputFormat,De as resolveContentFieldFilters,s as resolveContextOutputFormat,i as resolveContextTokenBudget,Oo as resolveEffectiveSearchMode,Wo as resolveHybridSemanticWeight,ce as resolveItemBlockers,se as resolveItemExecutionRole,Ee as resolveMissingMetadataFilters,To as resolveNextOutputFormat,P as resolveQueryCursorStart,Bo as resolveSearchMaxResults,No as resolveSearchPage,Uo as resolveSearchScoreThreshold,jo as resolveSearchTuning,Go as resolveVectorIndexRecovery,p as runActivity,Do as runAggregate,qe as runCalendar,_ as runContext,to as runContextEvaluationCorpus,eo as runContextEvaluationScenario,Ne as runDuplicates,Ro as runGet,Po as runHistory,Ae as runList,ko as runNext,Ko as runSearch,Qe as scoreContextCandidates,Ye as scoreContextCandidatesWithActiveExtensions,Co as searchWorkspaceMemory,Io as searchWorkspaceMemoryReadResult,ge as selectActionableEntries,v as selectCursorSemanticOptions,bo as selectWorkspaceMemory,go as selectWorkspaceMemoryRollups,oo as summarizeContextEvaluationReports,I as toContextFocusItem,g as toContextPackingSummary,b as toContextRankingSummary,oe 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 ra,gb as vc,gc as vd,h as sa,hb as wc,hc as wd,i as ta,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-5XKF5SQV.js";import"./chunks/chunk-YDWKGUQU.js";import{L as yb,m as bb,n as wb,u as xb}from"./chunks/chunk-3AF2R3Y6.js";import{$c as pb,Gd as zb,Td as ec,Uc as fb,Ud as fc,Vd as gc,Wd as hc,Xd as ic,ad as qb,bd as rb,pc as Xa,qc as Ya,rc as Za,tb as Wa,tc as _a,uc as $a,vc as ab}from"./chunks/chunk-FW5LJXQY.js";import{U as Ma,V as Na,X as Oa,Y as Pa,Z as Qa,j as Ia,k as Ja,m as Ka,n as La}from"./chunks/chunk-KP7NBQK3.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-MKXBCBAN.js";import{$i as Ba,A as b,Aa as m,Ae as R,Ai as wa,Be as S,Bg as ga,C as c,Ce as T,Cg as ha,D as d,Dc as t,De as U,Di as xa,Dl as Ca,Eg as ia,Fg as ja,Kh as oa,Ld as w,Lh as pa,Mc as u,Md as x,Nd as y,Oc as v,Od as z,Pd as A,Qd as B,Rd as C,Sd as D,Td as E,Ua as n,Ud as F,Vd as G,Xi as ya,Yi as za,_a as o,_i as Aa,ab as p,db as q,eb as r,ff as V,gb as s,gf as W,kg as Y,lh as ka,mf as X,mg as Z,mh as la,na as e,nh as ma,oh as na,pa as f,pi as qa,qa as g,qe as H,ra as h,re as I,rg as _,sa as i,se as J,sg as $,te as K,tg as aa,ue as L,ug as ba,ve as M,vg as ca,vn as Da,wa as j,we as N,wg as da,wn as Ea,x as a,xe as O,xg as ea,xn as Fa,ya as k,ye as P,yi as ua,za as l,ze as Q,zg as fa,zi as va,zn as Ga}from"./chunks/chunk-QPKQKSQU.js";export{_ as BASELINE_ITEM_FORMAT_VERSION,g as BUILTIN_ITEM_TYPE_VALUES,m as CONFIDENCE_TEXT_VALUES,lb as CONTEXT_OUTPUT_VALUES,$ as CURRENT_ITEM_FORMAT_VERSION,Xa as DEFAULT_TERMINAL_TRANSITION_POLICY,j as DEPENDENCY_KIND_VALUES,e as EXIT_CODE,ka as HISTORY_EVENT_CLASSIFICATION_VERSION,l as ISSUE_SEVERITY_VALUES,h as ITEM_TYPE_VALUES,la as MAINTENANCE_HISTORY_OPERATIONS,x as MAX_WORKFLOW_POLICIES,y as MAX_WORKFLOW_POLICY_TERMS,nb as NEXT_OUTPUT_VALUES,ra 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,ma 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,pa as appendHistoryEntry,_a as applyTerminalOrderingPolicy,Va as assertCompleteListResult,Oa as buildWorkflowCompletenessCheck,ja as canonicalDocument,Ua as certifyCompleteListResult,ld as claim,md as claimNext,na as classifyHistoryEvent,ca 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,oa as createHistoryEntry,Pa as createLifecycleCompletenessPolicies,sa as createPmCliExpectedError,N as createPmCommandOutputBudget,G as createWorkflowPolicyEvaluator,O as definePmCommandOutputBudget,pd as deleteItem,Ac as deps,zc as docs,sc as duplicates,aa 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,ta as isPmCliExpectedError,fa 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,ba as normalizeItemFormatVersion,va as normalizeItemId,ga as normalizeItemMetadata,ua as normalizeRawItemId,Ea as normalizeSimilarityText,ea 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,qa 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,Z as resolveRuntimeFieldRegistry,Y 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,da 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,ia as serializeItemDocument,ha 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};
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 ra,gb as vc,gc as vd,h as sa,hb as wc,hc as wd,i as ta,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-SMKHR6BM.js";import"./chunks/chunk-XZDWAYJC.js";import{L as yb,m as bb,n as wb,u as xb}from"./chunks/chunk-JDKD3WGG.js";import{$c as pb,Gd as zb,Td as ec,Uc as fb,Ud as fc,Vd as gc,Wd as hc,Xd as ic,ad as qb,bd as rb,pc as Xa,qc as Ya,rc as Za,tb as Wa,tc as _a,uc as $a,vc as ab}from"./chunks/chunk-V3U77H3V.js";import{U as Ma,V as Na,X as Oa,Y as Pa,Z as Qa,j as Ia,k as Ja,m as Ka,n as La}from"./chunks/chunk-J52QIRRZ.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-QXIDOOWT.js";import{$i as Aa,A as b,Aa as m,Ae as R,Ai as va,An as Ga,Be as S,Bg as ga,Bi as wa,C as c,Ce as T,Cg as ha,D as d,Dc as t,De as U,Eg as ia,Ei as xa,El as Ca,Fg as ja,Kh as oa,Ld as w,Lh as pa,Mc as u,Md as x,Nd as y,Oc as v,Od as z,Pd as A,Qd as B,Rd as C,Sd as D,Td as E,Ua as n,Ud as F,Vd as G,Yi as ya,Zi as za,_a as o,ab as p,aj as Ba,db as q,eb as r,ff as V,gb as s,gf as W,kg as Y,lh as ka,mf as X,mg as Z,mh as la,na as e,nh as ma,oh as na,pa as f,qa as g,qe as H,qi as qa,ra as h,re as I,rg as _,sa as i,se as J,sg as $,te as K,tg as aa,ue as L,ug as ba,ve as M,vg as ca,wa as j,we as N,wg as da,wn as Da,x as a,xe as O,xg as ea,xn as Ea,ya as k,ye as P,yn as Fa,za as l,ze as Q,zg as fa,zi as ua}from"./chunks/chunk-Y6VRBTP3.js";export{_ as BASELINE_ITEM_FORMAT_VERSION,g as BUILTIN_ITEM_TYPE_VALUES,m as CONFIDENCE_TEXT_VALUES,lb as CONTEXT_OUTPUT_VALUES,$ as CURRENT_ITEM_FORMAT_VERSION,Xa as DEFAULT_TERMINAL_TRANSITION_POLICY,j as DEPENDENCY_KIND_VALUES,e as EXIT_CODE,ka as HISTORY_EVENT_CLASSIFICATION_VERSION,l as ISSUE_SEVERITY_VALUES,h as ITEM_TYPE_VALUES,la as MAINTENANCE_HISTORY_OPERATIONS,x as MAX_WORKFLOW_POLICIES,y as MAX_WORKFLOW_POLICY_TERMS,nb as NEXT_OUTPUT_VALUES,ra 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,ma 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,pa as appendHistoryEntry,_a as applyTerminalOrderingPolicy,Va as assertCompleteListResult,Oa as buildWorkflowCompletenessCheck,ja as canonicalDocument,Ua as certifyCompleteListResult,ld as claim,md as claimNext,na as classifyHistoryEvent,ca 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,oa as createHistoryEntry,Pa as createLifecycleCompletenessPolicies,sa as createPmCliExpectedError,N as createPmCommandOutputBudget,G as createWorkflowPolicyEvaluator,O as definePmCommandOutputBudget,pd as deleteItem,Ac as deps,zc as docs,sc as duplicates,aa 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,ta as isPmCliExpectedError,fa 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,ba as normalizeItemFormatVersion,va as normalizeItemId,ga as normalizeItemMetadata,ua as normalizeRawItemId,Ea as normalizeSimilarityText,ea 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,qa 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,Z as resolveRuntimeFieldRegistry,Y 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,da 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,ia as serializeItemDocument,ha 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-6Z4IV2MC.js";import"./chunks/chunk-5XKF5SQV.js";import"./chunks/chunk-YDWKGUQU.js";import"./chunks/chunk-3AF2R3Y6.js";import"./chunks/chunk-FW5LJXQY.js";import{Qa as b,o as a}from"./chunks/chunk-KP7NBQK3.js";import"./chunks/chunk-MKXBCBAN.js";import"./chunks/chunk-QPKQKSQU.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};
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-YAAFYFS4.js";import"./chunks/chunk-SMKHR6BM.js";import"./chunks/chunk-XZDWAYJC.js";import"./chunks/chunk-JDKD3WGG.js";import"./chunks/chunk-V3U77H3V.js";import{Qa as b,o as a}from"./chunks/chunk-J52QIRRZ.js";import"./chunks/chunk-QXIDOOWT.js";import"./chunks/chunk-Y6VRBTP3.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
@@ -1,4 +1,4 @@
1
- import{A as LM,B as DM,C as $M,D as FM,E as GM,a as Vn,b as US,c as jS,d as BS,e as qS,f as zS,g as Ww,h as Xw,i as ka,j as xa,k as Na,m as La,n as Da,o as $a,p as Fa,q as Ga,r as Ua,s as ja,t as Ba,u as Za,v as Qa,w as ec,x as tc,y as rc,z as NM}from"./chunks/chunk-H7CXQBGQ.js";import{A as vk,B as Ok,C as Rk,D as Ik,E as Pk,F as Mk,G as kk,H as xk,I as Nk,J as Lk,K as Dk,L as $k,M as Fk,N as Gk,O as Uk,P as jk,Q as Bk,R as qk,S as zk,T as Vk,U as Hk,V as Kk,W as Wk,X as Xk,Y as Yk,a as ek,b as tk,c as rk,d as ok,e as nk,f as ik,g as sk,h as ak,i as ck,j as dk,k as lk,l as uk,m as pk,n as mk,o as fk,p as _k,q as hk,r as gk,s as yk,t as bk,u as Ck,v as Tk,w as Sk,x as Ek,y as wk,z as Ak}from"./chunks/chunk-6Z4IV2MC.js";import{a as Mh}from"./chunks/chunk-6ST3SCQ6.js";import{a as UM,b as jM,c as BM,d as qM}from"./chunks/chunk-44UGMMQ6.js";import{a as zM,b as VM,c as HM,d as KM,e as WM,f as XM,g as YM,h as JM,i as ZM,j as QM}from"./chunks/chunk-YCBGZF3T.js";import{$ as mm,$a as n_,$b as nh,A as Ve,Aa as vf,Ab as M_,B as Qp,Ba as Of,Bb as k_,C as em,Ca as Rf,Cb as x_,D as tm,Da as If,Db as N_,E as rm,Ea as Pf,Eb as L_,F as om,Fa as Mf,Fb as D_,G as Bt,Ga as kf,Gb as $_,H as qt,Ha as xf,Hb as F_,I as zt,Ia as Nf,Ib as G_,J as Vt,Ja as Lf,Jb as U_,K as Ht,Ka as Df,Kb as j_,L as Kt,La as $f,Lb as B_,M as Wt,Ma as Ff,Mb as q_,N as Xt,Na as Gf,Nb as z_,O as Yt,Oa as Uf,Ob as V_,P as Jt,Pa as jf,Pb as H_,Q as Zt,Qa as Bf,Qb as K_,R as nm,Ra as qf,Rb as W_,S as im,Sa as zf,Sb as X_,T as sm,Ta as Vf,Tb as Y_,U as am,Ua as Hf,Ub as J_,V as cm,Va as Qt,Vb as Z_,W as He,Wa as me,Wb as Q_,X as dm,Xa as e_,Xb as eh,Y as lm,Ya as t_,Yb as th,Z as um,Za as r_,Zb as rh,_ as pm,_a as o_,_b as oh,a as NS,aa as fm,ab as i_,ac as ih,b as LS,ba as _m,bb as s_,bc as sh,c as DS,ca as hm,cb as a_,cc as ah,d as $S,da as _M,db as c_,dc as ch,e as FS,ea as hM,eb as d_,ec as dh,f as GS,fa as gM,fb as l_,fc as lh,g as Ni,ga as Im,gb as u_,gc as uh,h as Li,ha as Pm,hb as p_,hc as ph,i as Di,ia as Mm,ib as m_,ic as mh,j as Ow,ja as gf,jb as f_,jc as fh,k as Rw,ka as yf,kb as __,kc as _h,l as zi,la as vM,lb as h_,lc as hh,m as RR,ma as OM,mb as g_,mc as gh,n as IR,na as RM,nb as y_,nc as yh,o as PR,oa as IM,ob as b_,oc as bh,p as MR,pa as PM,pb as C_,pc as Ch,q as kR,qa as MM,qb as T_,qc as Th,r as xR,ra as kM,rb as S_,rc as Sh,s as pl,sa as xM,sb as E_,sc as Eh,t as Bu,ta as bf,tb as w_,tc as wh,u as qu,ua as Cf,ub as A_,uc as Ah,v as Ku,va as Tf,vb as v_,vc as vh,w as Wu,wa as Sf,wb as O_,wc as Oh,x as pp,xa as Ef,xb as R_,xc as Rh,y as bp,ya as wf,yb as I_,yc as Ih,z as oP,za as Af,zb as P_,zc as Ph}from"./chunks/chunk-5XKF5SQV.js";import{e as DR,f as $R,g as ml,h as fl,i as Gt}from"./chunks/chunk-YDWKGUQU.js";import{A as nM,B as iM,C as sM,D as aM,E as cM,F as dM,G as lM,H as uM,I as pM,J as mM,K as fM,L as bm,M as Cm,N as Tm,O as Sm,P as Em,Q as wm,R as Am,S as vm,T as Om,U as Rm,a as UI,b as jI,c as BI,d as qI,e as zI,f as ju,g as VI,h as HI,i as KI,j as WI,k as XI,m as Hu,n as gm,o as KP,p as WP,q as XP,r as YP,s as JP,t as ZP,u as ym,v as QP,w as eM,x as tM,y as rM,z as oM}from"./chunks/chunk-3AF2R3Y6.js";import{$ as eR,$a as El,$b as xu,$c as Yp,A as IO,Ab as BR,Ac as Qu,Ad as Qm,B as PO,Bb as qR,Bc as ep,Bd as ef,C as MO,Cb as zR,Cc as tp,Cd as tf,D as kO,Db as VR,Dc as rp,Dd as rf,E as xO,Eb as HR,Ec as op,Ed as of,F as ze,Fa as Yd,Fb as KR,Fc as np,Fd as nf,G as NO,Ga as Jd,Gb as mI,Gc as ip,Gd as sf,H as xt,Ha as Zd,Hb as fI,Hc as sp,Hd as af,I as LO,Ia as Qd,Ib as _I,Ic as ap,J as DO,Ja as el,Jb as hI,Jc as cp,Jd as cf,K as $O,Kb as gI,Kc as dp,Kd as df,L as FO,La as tl,Lb as yI,Lc as lp,Ld as lf,M as GO,Ma as rl,Mb as bI,Md as uf,N as UO,Na as ol,Nb as AI,Nc as tP,Nd as pf,O as jO,Oa as nl,Ob as vI,Oc as rP,Od as mf,P as BO,Pa as NR,Pb as vu,Pc as up,Pd as ff,Q as qO,Qa as LR,Qb as Ou,Qc as Cp,Qd as _f,R as zO,Ra as il,Rb as OI,Rd as hf,S as VO,Sa as sl,Sb as RI,Sd as Kf,T as HO,Ta as al,Tb as II,Td as Wf,U as KO,Ua as cl,Ub as PI,Uc as Tp,Ud as Xf,V as WO,Va as dl,Vb as MI,Vd as Yf,W as XO,Wa as ll,Wb as Ru,Wc as Sp,Wd as Jf,X as YO,Xa as ul,Xb as Iu,Xc as Hp,Xd as Zf,Y as JO,Ya as Cl,Yb as Pu,Yc as Kp,Yd as Qf,Z as ZO,Za as Tl,Zb as Mu,Zc as Wp,_ as QO,_a as Sl,_b as ku,_c as Xp,a as CO,aa as tR,ab as wl,ac as Nu,ad as Jp,b as Pt,ba as rR,bb as Al,bc as Lu,bd as Zp,c as TO,ca as oR,cb as vl,cc as Du,cd as km,d as Be,da as nR,db as Ol,dc as $u,dd as xm,e as ee,ea as iR,eb as Rl,ec as Fu,ed as Nm,f as pd,fa as sR,fb as Il,fc as Gu,fd as Lm,gb as Pl,gc as kI,gd as Dm,hb as Ml,hc as xI,hd as $m,i as qe,ib as kl,ic as NI,id as Fm,j as md,jb as xl,jc as LI,jd as Gm,k as fd,kb as Nl,kc as DI,kd as Um,lb as Ll,lc as $I,ld as EM,m as pe,ma as Xd,mb as Dl,mc as FI,md as wM,n as _d,nb as $l,nc as GI,nd as AM,o as hd,ob as GR,oc as Uu,od as jm,p as gd,pb as Fl,pc as YI,pd as Bm,q as yd,qb as Gl,qc as JI,qd as qm,r as SO,rb as Ul,rc as ZI,rd as zm,s as EO,sb as jl,sc as QI,sd as Vm,t as wO,tb as UR,tc as eP,td as Hm,u as AO,ub as Bl,uc as zu,ud as Km,v as vO,vb as ql,vc as Vu,vd as Wm,w as Mt,wb as zl,wc as Xu,wd as Xm,x as OO,xb as Vl,xc as Yu,xd as Ym,y as RO,yb as Hl,yc as Ju,yd as Jm,z as kt,zb as jR,zc as Zu,zd as Zm}from"./chunks/chunk-FW5LJXQY.js";import{$ as kd,$a as Bd,A as bR,B as CR,C as TR,D as Ed,E as wd,F as Ad,G as vd,H as Od,I as SR,J as Rd,K as Id,Ka as Lt,L as Pd,La as Dt,Ma as $t,Na as Ft,Oa as Ld,Qa as Dd,Ra as $d,Sa as Fd,U as ER,V as wR,X as AR,Xa as Gd,Y as vR,Ya as Ud,Z as OR,_ as Md,_a as jd,a as xw,aa as xd,ab as qd,b as Nw,ba as Nd,bb as zd,c as Lw,ca as Nt,cb as Vd,d as Vi,e as Hi,eb as Hd,f as Ki,fb as Kd,g as Wi,gb as Wd,h as Xi,j as bd,k as Cd,m as Td,n as Sd,o as aR,p as cR,q as dR,r as lR,s as uR,t as pR,u as mR,v as fR,w as _R,x as hR,y as gR,z as yR}from"./chunks/chunk-KP7NBQK3.js";import{$ as cO,$a as Au,$b as mP,$c as yM,Aa as Zl,Ac as UP,Ba as Ql,Bb as CI,Bc as jP,Ca as eu,Cb as TI,Cc as BP,Da as tu,Db as SI,Dc as Ut,Ea as ru,Eb as EI,Ec as Rp,Fa as ou,Fb as wI,Fc as Ip,G as Qv,Ga as nu,Gb as mp,Gc as Pp,H as eO,Ha as iu,Hb as fp,Hc as Mp,I as tO,Ia as su,Ib as _p,Ic as kp,J as rO,Ja as au,Jb as hp,Jc as xp,K as oO,Ka as cu,Kb as gp,Kc as Np,L as nO,La as du,Lb as yp,Lc as Lp,M as iO,Ma as lu,Mb as Ep,Mc as Dp,N as sO,Na as uu,Nb as wp,Nc as $p,O as ed,Oa as pu,Ob as Ap,Oc as Fp,P as td,Pa as mu,Pb as vp,Pc as Gp,Q as rd,Qa as fu,Qb as nP,Qc as Up,R as od,Ra as _u,Rb as iP,Rc as jp,S as nd,Sa as hu,Sb as sP,Sc as Bp,T as id,Ta as gu,Tb as aP,Tc as qp,U as sd,Ua as yu,Ub as cP,Uc as jt,V as ad,Va as bu,Vb as dP,Vc as zp,W as cd,Wa as Cu,Wb as lP,Wc as qP,X as dd,Xa as Tu,Xc as zP,Y as ld,Ya as Su,Yb as Op,Yc as VP,Z as je,Za as Eu,Zb as uP,Zc as Vp,_ as aO,_a as wu,_b as pP,_c as HP,aa as dO,ac as fP,ad as bM,b as ww,ba as lO,bc as _P,bd as CM,c as Aw,ca as uO,cb as WR,cc as hP,cd as TM,d as vw,da as pO,db as XR,dc as gP,dd as SM,e as Iw,eb as YR,ec as yP,f as Pw,fb as JR,fc as bP,g as Mw,ga as mO,gb as ZR,gc as CP,h as kw,ha as fO,hb as QR,hc as TP,i as $v,ia as _O,ib as eI,ic as SP,j as Fv,ja as hO,jb as tI,jc as EP,k as Gv,ka as gO,kb as rI,kc as wP,l as Uv,la as yO,lb as oI,lc as AP,m as jv,ma as bO,mb as nI,mc as vP,n as Bv,na as ud,nb as iI,nc as OP,o as qv,oa as _l,ob as sI,oc as RP,p as zv,pa as hl,pc as IP,q as Vv,qa as gl,qc as PP,r as Hv,ra as yl,rc as MP,s as Kv,sa as FR,sb as aI,sc as kP,t as Wv,tc as xP,u as Xv,ua as bl,ub as cI,uc as NP,v as Yv,va as Kl,vb as dI,vc as LP,w as Jv,wa as Wl,wc as DP,x as Zv,xa as Xl,xb as lI,xc as $P,ya as Yl,yb as uI,yc as FP,za as Jl,zb as pI,zc as GP}from"./chunks/chunk-MKXBCBAN.js";import{$a as Ko,$c as Ct,$d as fn,$e as oS,$f as tE,$g as yi,$h as BE,$i as bw,$j as vs,$k as va,$l as AA,$m as iv,$n as Rc,A as Do,Aa as zo,Ac as IC,Ad as fT,Ae as Gn,Af as TS,Ah as wE,Ai as Gi,Aj as es,Ak as Qs,Al as nA,Am as UA,An as hc,Ao as qc,Bc as PC,Bd as _T,Be as Un,Bf as SS,Bg as ni,Bh as AE,Bj as ts,Bk as ea,Bm as jA,Bn as gc,Bo as zc,C as xe,Cc as MC,Cd as hT,Ce as jn,Cf as ES,Cg as ii,Ch as vE,Cj as rs,Ck as ta,Cm as BA,Cn as yc,Co as Vc,D as $o,Dc as rn,Dd as gT,De as Bn,Df as wS,Dg as uE,Dh as OE,Di as iw,Dj as os,Dk as ra,Dl as oc,Dm as qA,Dn as gv,Do as Hc,Ec as kC,Ed as yT,Ee as LT,Ef as AS,Eg as si,Eh as RE,Ej as ns,Ek as oa,El as iA,Em as zA,En as yv,Eo as Kc,F as Nb,Fc as xC,Fd as bT,Fe as DT,Ff as vS,Fg as ai,Fh as IE,Fj as is,Fk as na,Fl as sA,Fm as VA,Fn as bv,Fo as Wc,G as Lb,Gb as cC,Gc as NC,Gd as CT,Ge as $T,Gf as OS,Gg as pE,Gh as PE,Gj as ss,Gk as ia,Gl as aA,Gm as vt,Gn as Cv,Go as Xc,H as Db,Hc as LC,Hd as TT,He as FT,Hf as RS,Hg as ci,Hh as ME,Hi as Ui,Hj as as,Hk as sa,Hl as cA,Hn as Tv,Ho as Yc,I as $b,Ib as dC,Ic as DC,Id as ST,Ie as GT,If as IS,Ig as di,Ii as wt,Ij as cs,Ik as aa,Il as dA,Im as HA,In as Sv,Io as Jc,J as Fb,Jb as lC,Jc as $C,Jd as ET,Je as UT,Jf as PS,Jg as L,Jh as kE,Ji as sw,Jj as ds,Jk as ca,Jl as lA,Jn as Ev,Jo as Zc,K as Gb,Kb as uC,Kc as FC,Ke as jT,Kf as MS,Kg as li,Kh as Mi,Ki as aw,Kj as ls,Kk as da,Km as KA,Kn as wv,Ko as Qc,Lb as pC,Lc as GC,Ld as wT,Le as BT,Lh as ki,Li as cw,Lj as us,Lk as la,Ll as uA,Lo as It,M as Ub,Mb as mC,Mc as on,Md as AT,Me as qT,Mf as kS,Mh as xE,Mi as dw,Mj as ps,Mk as ua,Ml as pA,N as jb,Nc as UC,Nd as vT,Ne as zT,Nf as xS,Ni as lw,Nk as pa,Nl as mA,Oc as nn,Od as OT,Of as Hn,Oi as uw,Oj as ms,Ok as ma,Ol as fA,Om as WA,On as Rt,Pa as Zb,Pb as fC,Pd as RT,Pe as VT,Pf as Kn,Pi as pw,Pj as fs,Pk as fa,Pm as XA,Pn as Av,Q as Bb,Qa as Qb,Qb as _C,Qc as jC,Qd as IT,Qe as HT,Qf as Wn,Qi as mw,Qj as _s,Qk as _a,Ql as _A,Qm as YA,Qn as vv,Ra as eC,Rc as BC,Rd as PT,Re as KT,Rf as VS,Rg as mE,Rh as NE,Ri as fw,Rj as hs,Rk as ha,Rl as hA,Rm as nc,Rn as Ov,Sc as qC,Sd as MT,Se as WT,Sf as HS,Sg as fE,Sh as LE,Sj as gs,Sk as ga,Sm as JA,Sn as bc,T as qb,Tb as I,Tc as zC,Td as kT,Te as XT,Tf as KS,Tg as _E,Th as DE,Ti as _w,Tj as ys,Tk as ya,Tl as gA,Tn as Cc,Ua as Vo,Ub as hC,Uc as VC,Ud as xT,Ue as YT,Uf as WS,Ug as ui,Uh as $E,Ui as hw,Uj as bs,Uk as ba,Ul as yA,Um as ZA,Un as Tc,V as zb,Va as tC,Vb as yt,Vd as NT,Ve as JT,Vf as XS,Vg as pi,Vh as FE,Vi as gw,Vj as Cs,Vk as Ca,Vl as bA,Vm as QA,Vn as Sc,W as Vb,Wa as rC,Wb as gC,Wd as dn,We as ZT,Wf as YS,Wg as mi,Wh as GE,Wi as yw,Wj as Ts,Wk as Ta,Wl as CA,Wm as ev,Wn as Ec,X as Hb,Xa as oC,Xd as ln,Xe as QT,Xf as JS,Xg as fi,Xi as ji,Xj as Ss,Xk as Sa,Xl as TA,Xm as tv,Xn as wc,Ya as nC,Yb as yC,Yd as un,Ye as eS,Yf as ZS,Yg as _i,Yh as UE,Yi as Bi,Yj as Es,Yk as Ea,Yl as SA,Ym as rv,Yn as Ac,Zd as pn,Ze as tS,Zf as QS,Zg as hi,Zj as ws,Zk as wa,Zl as EA,Zm as ov,Zn as vc,_a as Ho,_c as bt,_d as mn,_e as rS,_f as eE,_g as gi,_h as jE,_i as qi,_j as As,_k as Aa,_l as wA,_m as nv,_n as Oc,ab as Ne,ad as sn,ae as _n,af as nS,ag as rE,ah as bi,ai as qE,ak as Os,al as Oa,an as sv,ao as Ic,b as vo,bb as iC,bd as an,be as Le,bf as iS,bg as oE,bh as Ci,bi as zE,bj as Cw,bk as Rs,bl as Ra,bm as vA,bn as av,bo as Pc,c as Oo,ca as Kb,cb as sC,cd as cn,ce as De,cf as Tt,ch as Ti,ci as VE,cj as Tw,ck as Is,cl as Ia,cm as OA,cn as Ot,co as Mc,d as Ro,db as Wo,de as hn,dh as Si,di as HE,dj as Sw,dk as Ps,dl as Pa,dm as RA,dn as cv,do as kc,e as Io,eb as Xo,ed as HC,ee as gn,ef as St,eh as Ei,ei as KE,ek as Ms,em as IA,eo as xc,f as Pe,fa as Wb,fd as KC,fe as yn,ff as qn,fh as wi,fi as WE,fj as Ew,fk as ks,fl as Ue,fm as PA,fo as Nc,g as Po,gb as Yo,gd as WC,ge as bn,gf as zn,gh as Ai,gi as XE,gk as xs,gl as Q,gn as dv,go as Lc,h as N,hd as XC,he as Cn,hf as Et,hg as nE,hh as hE,hj as Dw,hk as Ns,hl as Ma,hm as MA,hn as lv,ho as Dc,i as Me,ia as Xb,ic as bC,id as YC,ie as Tn,ih as gE,ij as $w,ik as Ls,il as qa,in as uv,j as Mo,jc as CC,jd as JC,je as Sn,jf as sS,jh as vi,jj as Fw,jk as Ds,jl as za,jm as kA,jn as pv,jo as Rv,k as ko,kc as TC,kd as ZC,ke as En,kg as Xn,kh as yE,ki as YE,kj as Fe,kk as $s,kl as Va,km as xA,kn as mv,ko as Iv,l as xo,ld as QC,le as wn,lf as aS,lg as iE,lh as Oi,lj as Gw,lk as Fs,ll as Ha,lm as NA,ln as fv,m as No,ma as Yb,mc as SC,md as eT,me as An,mf as $e,mg as Yn,mh as Ri,mi as JE,mj as Uw,mk as Gs,ml as Ka,mm as LA,mn as _v,n as Rb,na as ue,nc as EC,nd as tT,ne as vn,nf as cS,nh as Ii,nj as jw,nk as Us,nl as Wa,nm as DA,nn as hv,no as Pv,o as ke,oa as Jb,od as rT,oe as On,of as dS,og as sE,oh as Pi,oi as ZE,oj as At,ok as js,ol as Xa,on as ic,oo as Mv,p as ht,pa as b,pc as wC,pd as oT,pe as Rn,pf as lS,pg as aE,pi as xi,pj as Ge,pk as Bs,pl as Ya,pn as sc,po as kv,q as Ib,qa as Fo,qc as Qo,qd as nT,qe as In,qf as uS,qg as cE,qi as QE,qj as Bw,qk as qs,ql as Ja,qn as ac,qo as xv,r as Pb,ra as Go,rd as iT,re as Pn,rf as pS,rg as Jn,rj as qw,rk as zs,rl as Yw,rn as cc,ro as Nv,s as Mb,sa as Uo,sc as en,sd as sT,se as Mn,sf as mS,sg as Zn,si as ew,sj as zw,sk as Vs,sl as Jw,sn as dc,so as Lv,t as kb,tb as Jo,tc as tn,td as aT,te as kn,tf as fS,tg as Qn,ti as tw,tj as Vw,tk as Hs,tl as Zw,tn as lc,to as Dv,u as q,ub as Zo,ud as cT,ue as xn,uf as _S,ug as ei,ui as rw,uj as Hw,uk as Ks,ul as Qw,uo as $c,v as xb,vb as aC,vd as dT,ve as Nn,vf as hS,vg as ti,vh as bE,vi as ow,vj as Kw,vk as Ws,vl as eA,vn as uc,vo as Fc,wa as jo,wc as AC,wd as lT,we as Ln,wf as gS,wg as ri,wh as CE,wi as nw,wj as Yi,wk as Xs,wl as tA,wn as pc,wo as Gc,x as Lo,xc as vC,xd as uT,xe as Dn,xf as yS,xg as oi,xh as TE,xj as Ji,xk as Ys,xl as rA,xm as $A,xn as mc,xo as Uc,y as gt,ya as Bo,yc as OC,yd as pT,ye as $n,yf as bS,yg as dE,yh as SE,yi as $i,yj as Zi,yk as Js,ym as FA,yn as fc,yo as jc,z as le,za as qo,zc as RC,zd as mT,ze as Fn,zf as CS,zg as lE,zh as EE,zi as Fi,zj as Qi,zk as Zs,zl as oA,zm as GA,zn as _c,zo as Bc}from"./chunks/chunk-QPKQKSQU.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 z="2026-07-28",Jk=["2025-11-25","2025-06-18"],Ke=[z],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},w={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},er=["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 kh(e){if(e===void 0)return;if(!_(e))throw new p("Invalid MCP clientInfo metadata",m.invalidParams,{field:w.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:w.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 xh(e){if(e!==void 0){if(typeof e!="string"||!er.includes(e))throw new p("Invalid MCP logLevel metadata",m.invalidParams,{field:w.logLevel,allowed:[...er]});return e}}function We(e){let t=_(e)?e._meta:void 0;if(!_(t))throw new p("Missing required MCP request metadata",m.invalidParams,{required:[w.protocolVersion,w.clientCapabilities]});let r=t[w.protocolVersion];if(typeof r!="string"||!Ke.includes(r))throw new p("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...Ke],requested:typeof r=="string"?r:null});let o=t[w.clientCapabilities];if(!_(o))throw new p("Invalid MCP client capabilities metadata",m.invalidParams,{field:w.clientCapabilities,expected:"object"});let n=kh(t[w.clientInfo]),i=xh(t[w.logLevel]);return{protocolVersion:z,clientCapabilities:o,...n?{clientInfo:n}:{},...i?{logLevel:i}:{}}}function Zk(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 Qk(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 ex(e,t){let r=e.clientCapabilities.extensions;return _(r)&&_(r[t])}function Xe(e,t){let r=_(e._meta)?e._meta:{};return{...e,_meta:{...r,[w.serverInfo]:{...t}}}}function Nh(e,t){return Xe({...e,resultType:"complete"},t)}function tx(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 Nh({supportedVersions:[...Ke],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function rx(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 or,createHmac as nr,timingSafeEqual as Lh}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 Dh=["elicitation/create","roots/list","sampling/createMessage"],tr=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},ir=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,fe=32,Je=64*1024,_e=16*1024,Ye={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function $h(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function he(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 Ze(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>fe)throw new p("Invalid MCP inputRequests count",m.invalidParams,{minimum:1,maximum:fe,observed:r.length});let o={};for(let[n,i]of r){if(!ir.test(n)||!_(i))throw new p("Invalid MCP input request entry",m.invalidParams,{field:`inputRequests.${n}`});let s=i.method;if(typeof s!="string"||!Dh.includes(s))throw new p("Unsupported MCP input request method",m.invalidParams,{field:`inputRequests.${n}.method`,method:s??null});let a=$h(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 he(o,Je,"inputRequests"),o}function sr(e){if(!_(e))throw new p("Invalid MCP inputResponses",m.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>fe)throw new p("Invalid MCP inputResponses count",m.invalidParams,{maximum:fe,observed:t.length});let r={};for(let[o,n]of t){if(!ir.test(o)||!_(n))throw new p("Invalid MCP input response entry",m.invalidParams,{field:`inputResponses.${o}`});r[o]=structuredClone(n)}return he(r,Je,"inputResponses"),r}function sx(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>_e)throw new p("Invalid MCP requestState: payload exceeds the protocol bound",m.invalidParams,{field:"requestState",maximumBytes:_e});let r=e.inputRequests===void 0?void 0:Ze(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:{[w.serverInfo]:{...e.serverInfo}}}}function ar(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 ax(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>_e/2)throw new p("MCP requestState payload exceeds the protocol bound",m.invalidParams,{maximumBytes:_e/2});let o=r.toString("base64url"),n=nr("sha256",ar(t)).update(o).digest("base64url");return`${o}.${n}`}function Fh(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 cx(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=nr("sha256",ar(t)).update(o).digest();if(s.byteLength!==a.byteLength||!Lh(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=Fh(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 dx(e){return he(e,Je,"request parameters"),or("sha256").update(JSON.stringify(e)).digest("hex")}var rr=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=or("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 Gh(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 lx(e,t){return{...e,...Gh(t)}}function Uh(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function jh(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let o of t.slice(2).split("/").map(Uh)){if(!_(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}function Bh(e){let t=e.maxBytes??Ye.maxBytes,r=e.maxDepth??Ye.maxDepth,o=e.maxNodes??Ye.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 qh(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("#")&&jh(e,r)===void 0)throw new p("MCP JSON Schema contains an unresolved local reference",m.invalidParams,{reference:r})}function ux(e,t={}){let{maximumBytes:r,maximumDepth:o,maximumNodes:n}=Bh(t);if(typeof e!="boolean"&&!_(e))throw new p("Invalid MCP JSON Schema root",m.invalidParams,{expected:"object or boolean"});he(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),qh(a,i)}return structuredClone(e)}import{randomUUID as Vh}from"node:crypto";import{readFile as Hh}from"node:fs/promises";import cr 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 bx="io.modelcontextprotocol/tasks",Kh=["working","input_required","completed","failed","cancelled"],Wh=/^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,Xh=3600*1e3,Yh=1e3,ye=1024,Jh=30,Zh=2e3;function Qe(e){return new p(e,m.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function ge(e){let t=e.trim();if(!Wh.test(t))throw Qe("Unknown MCP task");return t}function dr(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 lr(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,ye),..._(e.data)?{data:structuredClone(e.data)}:{}}}function Qh(e){if(!Kh.includes(e))throw new p("Corrupt MCP task record",m.invalidParams);return e}function eg(e){if(typeof e!="string"||e.length===0)throw new p("Corrupt MCP task record",m.invalidParams);return e}function tg(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new p("Corrupt MCP task record",m.invalidParams);return e}function rg(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new p("Corrupt MCP task record",m.invalidParams);return e}function og(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 ng(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new p("Corrupt MCP task record",m.invalidParams);return[...e]}function ig(e){if(!_(e)||e.version!==1)throw new p("Corrupt MCP task record",m.invalidParams);let t=typeof e.taskId=="string"?ge(e.taskId):"",r=Qh(e.status),o=eg(e.principal),n=tg(e.workerPid),i=rg(e.ttlMs),s=og(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:o,workerPid:n,createdAt:dr(e.createdAt,"createdAt"),lastUpdatedAt:dr(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:i,consumedInputKeys:ng(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,ye)}:{},...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=lr(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 V(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 te(e){return e==="completed"||e==="failed"||e==="cancelled"}function sg(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var et=class{#e;#t;#r;#o;#i;constructor(t){this.#e=cr.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${Vh()}`),this.#i=t.workerPid??process.pid}#s(t){return cr.join(this.#e,"runtime","mcp-tasks","records",`${ge(t)}.json`)}async#c(t){try{return ig(JSON.parse(await Hh(this.#s(t),"utf8")))}catch(r){throw le(r)||r instanceof SyntaxError?Qe("Unknown MCP task"):r}}async#a(t){await xe(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
1
+ import{A as LM,B as DM,C as $M,D as FM,E as GM,a as Vn,b as US,c as jS,d as BS,e as qS,f as zS,g as Ww,h as Xw,i as ka,j as xa,k as Na,m as La,n as Da,o as $a,p as Fa,q as Ga,r as Ua,s as ja,t as Ba,u as Za,v as Qa,w as ec,x as tc,y as rc,z as NM}from"./chunks/chunk-JQ7DW663.js";import{A as vk,B as Ok,C as Rk,D as Ik,E as Pk,F as Mk,G as kk,H as xk,I as Nk,J as Lk,K as Dk,L as $k,M as Fk,N as Gk,O as Uk,P as jk,Q as Bk,R as qk,S as zk,T as Vk,U as Hk,V as Kk,W as Wk,X as Xk,Y as Yk,a as ek,b as tk,c as rk,d as ok,e as nk,f as ik,g as sk,h as ak,i as ck,j as dk,k as lk,l as uk,m as pk,n as mk,o as fk,p as _k,q as hk,r as gk,s as yk,t as bk,u as Ck,v as Tk,w as Sk,x as Ek,y as wk,z as Ak}from"./chunks/chunk-YAAFYFS4.js";import{a as Mh}from"./chunks/chunk-7UVXKI7K.js";import{a as UM,b as jM,c as BM,d as qM}from"./chunks/chunk-GZMWISWW.js";import{a as zM,b as VM,c as HM,d as KM,e as WM,f as XM,g as YM,h as JM,i as ZM,j as QM}from"./chunks/chunk-7CE2DJMA.js";import{$ as mm,$a as n_,$b as nh,A as Ve,Aa as vf,Ab as M_,B as Qp,Ba as Of,Bb as k_,C as em,Ca as Rf,Cb as x_,D as tm,Da as If,Db as N_,E as rm,Ea as Pf,Eb as L_,F as om,Fa as Mf,Fb as D_,G as Bt,Ga as kf,Gb as $_,H as qt,Ha as xf,Hb as F_,I as zt,Ia as Nf,Ib as G_,J as Vt,Ja as Lf,Jb as U_,K as Ht,Ka as Df,Kb as j_,L as Kt,La as $f,Lb as B_,M as Wt,Ma as Ff,Mb as q_,N as Xt,Na as Gf,Nb as z_,O as Yt,Oa as Uf,Ob as V_,P as Jt,Pa as jf,Pb as H_,Q as Zt,Qa as Bf,Qb as K_,R as nm,Ra as qf,Rb as W_,S as im,Sa as zf,Sb as X_,T as sm,Ta as Vf,Tb as Y_,U as am,Ua as Hf,Ub as J_,V as cm,Va as Qt,Vb as Z_,W as He,Wa as me,Wb as Q_,X as dm,Xa as e_,Xb as eh,Y as lm,Ya as t_,Yb as th,Z as um,Za as r_,Zb as rh,_ as pm,_a as o_,_b as oh,a as NS,aa as fm,ab as i_,ac as ih,b as LS,ba as _m,bb as s_,bc as sh,c as DS,ca as hm,cb as a_,cc as ah,d as $S,da as _M,db as c_,dc as ch,e as FS,ea as hM,eb as d_,ec as dh,f as GS,fa as gM,fb as l_,fc as lh,g as Ni,ga as Im,gb as u_,gc as uh,h as Li,ha as Pm,hb as p_,hc as ph,i as Di,ia as Mm,ib as m_,ic as mh,j as Ow,ja as gf,jb as f_,jc as fh,k as Rw,ka as yf,kb as __,kc as _h,l as zi,la as vM,lb as h_,lc as hh,m as RR,ma as OM,mb as g_,mc as gh,n as IR,na as RM,nb as y_,nc as yh,o as PR,oa as IM,ob as b_,oc as bh,p as MR,pa as PM,pb as C_,pc as Ch,q as kR,qa as MM,qb as T_,qc as Th,r as xR,ra as kM,rb as S_,rc as Sh,s as pl,sa as xM,sb as E_,sc as Eh,t as Bu,ta as bf,tb as w_,tc as wh,u as qu,ua as Cf,ub as A_,uc as Ah,v as Ku,va as Tf,vb as v_,vc as vh,w as Wu,wa as Sf,wb as O_,wc as Oh,x as pp,xa as Ef,xb as R_,xc as Rh,y as bp,ya as wf,yb as I_,yc as Ih,z as oP,za as Af,zb as P_,zc as Ph}from"./chunks/chunk-SMKHR6BM.js";import{e as DR,f as $R,g as ml,h as fl,i as Gt}from"./chunks/chunk-XZDWAYJC.js";import{A as nM,B as iM,C as sM,D as aM,E as cM,F as dM,G as lM,H as uM,I as pM,J as mM,K as fM,L as bm,M as Cm,N as Tm,O as Sm,P as Em,Q as wm,R as Am,S as vm,T as Om,U as Rm,a as UI,b as jI,c as BI,d as qI,e as zI,f as ju,g as VI,h as HI,i as KI,j as WI,k as XI,m as Hu,n as gm,o as KP,p as WP,q as XP,r as YP,s as JP,t as ZP,u as ym,v as QP,w as eM,x as tM,y as rM,z as oM}from"./chunks/chunk-JDKD3WGG.js";import{$ as eR,$a as El,$b as xu,$c as Yp,A as IO,Ab as BR,Ac as Qu,Ad as Qm,B as PO,Bb as qR,Bc as ep,Bd as ef,C as MO,Cb as zR,Cc as tp,Cd as tf,D as kO,Db as VR,Dc as rp,Dd as rf,E as xO,Eb as HR,Ec as op,Ed as of,F as ze,Fa as Yd,Fb as KR,Fc as np,Fd as nf,G as NO,Ga as Jd,Gb as mI,Gc as ip,Gd as sf,H as xt,Ha as Zd,Hb as fI,Hc as sp,Hd as af,I as LO,Ia as Qd,Ib as _I,Ic as ap,J as DO,Ja as el,Jb as hI,Jc as cp,Jd as cf,K as $O,Kb as gI,Kc as dp,Kd as df,L as FO,La as tl,Lb as yI,Lc as lp,Ld as lf,M as GO,Ma as rl,Mb as bI,Md as uf,N as UO,Na as ol,Nb as AI,Nc as tP,Nd as pf,O as jO,Oa as nl,Ob as vI,Oc as rP,Od as mf,P as BO,Pa as NR,Pb as vu,Pc as up,Pd as ff,Q as qO,Qa as LR,Qb as Ou,Qc as Cp,Qd as _f,R as zO,Ra as il,Rb as OI,Rd as hf,S as VO,Sa as sl,Sb as RI,Sd as Kf,T as HO,Ta as al,Tb as II,Td as Wf,U as KO,Ua as cl,Ub as PI,Uc as Tp,Ud as Xf,V as WO,Va as dl,Vb as MI,Vd as Yf,W as XO,Wa as ll,Wb as Ru,Wc as Sp,Wd as Jf,X as YO,Xa as ul,Xb as Iu,Xc as Hp,Xd as Zf,Y as JO,Ya as Cl,Yb as Pu,Yc as Kp,Yd as Qf,Z as ZO,Za as Tl,Zb as Mu,Zc as Wp,_ as QO,_a as Sl,_b as ku,_c as Xp,a as CO,aa as tR,ab as wl,ac as Nu,ad as Jp,b as Pt,ba as rR,bb as Al,bc as Lu,bd as Zp,c as TO,ca as oR,cb as vl,cc as Du,cd as km,d as Be,da as nR,db as Ol,dc as $u,dd as xm,e as ee,ea as iR,eb as Rl,ec as Fu,ed as Nm,f as pd,fa as sR,fb as Il,fc as Gu,fd as Lm,gb as Pl,gc as kI,gd as Dm,hb as Ml,hc as xI,hd as $m,i as qe,ib as kl,ic as NI,id as Fm,j as md,jb as xl,jc as LI,jd as Gm,k as fd,kb as Nl,kc as DI,kd as Um,lb as Ll,lc as $I,ld as EM,m as pe,ma as Xd,mb as Dl,mc as FI,md as wM,n as _d,nb as $l,nc as GI,nd as AM,o as hd,ob as GR,oc as Uu,od as jm,p as gd,pb as Fl,pc as YI,pd as Bm,q as yd,qb as Gl,qc as JI,qd as qm,r as SO,rb as Ul,rc as ZI,rd as zm,s as EO,sb as jl,sc as QI,sd as Vm,t as wO,tb as UR,tc as eP,td as Hm,u as AO,ub as Bl,uc as zu,ud as Km,v as vO,vb as ql,vc as Vu,vd as Wm,w as Mt,wb as zl,wc as Xu,wd as Xm,x as OO,xb as Vl,xc as Yu,xd as Ym,y as RO,yb as Hl,yc as Ju,yd as Jm,z as kt,zb as jR,zc as Zu,zd as Zm}from"./chunks/chunk-V3U77H3V.js";import{$ as kd,$a as Bd,A as bR,B as CR,C as TR,D as Ed,E as wd,F as Ad,G as vd,H as Od,I as SR,J as Rd,K as Id,Ka as Lt,L as Pd,La as Dt,Ma as $t,Na as Ft,Oa as Ld,Qa as Dd,Ra as $d,Sa as Fd,U as ER,V as wR,X as AR,Xa as Gd,Y as vR,Ya as Ud,Z as OR,_ as Md,_a as jd,a as xw,aa as xd,ab as qd,b as Nw,ba as Nd,bb as zd,c as Lw,ca as Nt,cb as Vd,d as Vi,e as Hi,eb as Hd,f as Ki,fb as Kd,g as Wi,gb as Wd,h as Xi,j as bd,k as Cd,m as Td,n as Sd,o as aR,p as cR,q as dR,r as lR,s as uR,t as pR,u as mR,v as fR,w as _R,x as hR,y as gR,z as yR}from"./chunks/chunk-J52QIRRZ.js";import{$ as cO,$a as Au,$b as mP,$c as yM,Aa as Zl,Ac as UP,Ba as Ql,Bb as CI,Bc as jP,Ca as eu,Cb as TI,Cc as BP,Da as tu,Db as SI,Dc as Ut,Ea as ru,Eb as EI,Ec as Rp,Fa as ou,Fb as wI,Fc as Ip,G as Qv,Ga as nu,Gb as mp,Gc as Pp,H as eO,Ha as iu,Hb as fp,Hc as Mp,I as tO,Ia as su,Ib as _p,Ic as kp,J as rO,Ja as au,Jb as hp,Jc as xp,K as oO,Ka as cu,Kb as gp,Kc as Np,L as nO,La as du,Lb as yp,Lc as Lp,M as iO,Ma as lu,Mb as Ep,Mc as Dp,N as sO,Na as uu,Nb as wp,Nc as $p,O as ed,Oa as pu,Ob as Ap,Oc as Fp,P as td,Pa as mu,Pb as vp,Pc as Gp,Q as rd,Qa as fu,Qb as nP,Qc as Up,R as od,Ra as _u,Rb as iP,Rc as jp,S as nd,Sa as hu,Sb as sP,Sc as Bp,T as id,Ta as gu,Tb as aP,Tc as qp,U as sd,Ua as yu,Ub as cP,Uc as jt,V as ad,Va as bu,Vb as dP,Vc as zp,W as cd,Wa as Cu,Wb as lP,Wc as qP,X as dd,Xa as Tu,Xc as zP,Y as ld,Ya as Su,Yb as Op,Yc as VP,Z as je,Za as Eu,Zb as uP,Zc as Vp,_ as aO,_a as wu,_b as pP,_c as HP,aa as dO,ac as fP,ad as bM,b as ww,ba as lO,bc as _P,bd as CM,c as Aw,ca as uO,cb as WR,cc as hP,cd as TM,d as vw,da as pO,db as XR,dc as gP,dd as SM,e as Iw,eb as YR,ec as yP,f as Pw,fb as JR,fc as bP,g as Mw,ga as mO,gb as ZR,gc as CP,h as kw,ha as fO,hb as QR,hc as TP,i as $v,ia as _O,ib as eI,ic as SP,j as Fv,ja as hO,jb as tI,jc as EP,k as Gv,ka as gO,kb as rI,kc as wP,l as Uv,la as yO,lb as oI,lc as AP,m as jv,ma as bO,mb as nI,mc as vP,n as Bv,na as ud,nb as iI,nc as OP,o as qv,oa as _l,ob as sI,oc as RP,p as zv,pa as hl,pc as IP,q as Vv,qa as gl,qc as PP,r as Hv,ra as yl,rc as MP,s as Kv,sa as FR,sb as aI,sc as kP,t as Wv,tc as xP,u as Xv,ua as bl,ub as cI,uc as NP,v as Yv,va as Kl,vb as dI,vc as LP,w as Jv,wa as Wl,wc as DP,x as Zv,xa as Xl,xb as lI,xc as $P,ya as Yl,yb as uI,yc as FP,za as Jl,zb as pI,zc as GP}from"./chunks/chunk-QXIDOOWT.js";import{$a as Ko,$c as Ct,$d as fn,$e as oS,$f as tE,$g as yi,$h as BE,$i as qi,$j as As,$k as Aa,$l as wA,$m as nv,$n as Oc,A as Do,Aa as zo,Ac as IC,Ad as fT,Ae as Gn,Af as TS,Ah as wE,Ai as Fi,Aj as Qi,Ak as Zs,Al as oA,Am as GA,An as _c,Ao as Bc,Bc as PC,Bd as _T,Be as Un,Bf as SS,Bg as ni,Bh as AE,Bi as Gi,Bj as es,Bk as Qs,Bl as nA,Bm as UA,Bn as hc,Bo as qc,C as xe,Cc as MC,Cd as hT,Ce as jn,Cf as ES,Cg as ii,Ch as vE,Cj as ts,Ck as ea,Cm as jA,Cn as gc,Co as zc,D as $o,Dc as rn,Dd as gT,De as Bn,Df as wS,Dg as uE,Dh as OE,Dj as rs,Dk as ta,Dm as BA,Dn as yc,Do as Vc,Ec as kC,Ed as yT,Ee as LT,Ef as AS,Eg as si,Eh as RE,Ei as iw,Ej as os,Ek as ra,El as oc,Em as qA,En as gv,Eo as Hc,F as Nb,Fc as xC,Fd as bT,Fe as DT,Ff as vS,Fg as ai,Fh as IE,Fj as ns,Fk as oa,Fl as iA,Fm as zA,Fn as yv,Fo as Kc,G as Lb,Gb as cC,Gc as NC,Gd as CT,Ge as $T,Gf as OS,Gg as pE,Gh as PE,Gj as is,Gk as na,Gl as sA,Gm as VA,Gn as bv,Go as Wc,H as Db,Hc as LC,Hd as TT,He as FT,Hf as RS,Hg as ci,Hh as ME,Hj as ss,Hk as ia,Hl as aA,Hm as vt,Hn as Cv,Ho as Xc,I as $b,Ib as dC,Ic as DC,Id as ST,Ie as GT,If as IS,Ig as di,Ii as Ui,Ij as as,Ik as sa,Il as cA,In as Tv,Io as Yc,J as Fb,Jb as lC,Jc as $C,Jd as ET,Je as UT,Jf as PS,Jg as L,Jh as kE,Ji as wt,Jj as cs,Jk as aa,Jl as dA,Jm as HA,Jn as Sv,Jo as Jc,K as Gb,Kb as uC,Kc as FC,Ke as jT,Kf as MS,Kg as li,Kh as Mi,Ki as sw,Kj as ds,Kk as ca,Kl as lA,Kn as Ev,Ko as Zc,Lb as pC,Lc as GC,Ld as wT,Le as BT,Lh as ki,Li as aw,Lj as ls,Lk as da,Lm as KA,Ln as wv,Lo as Qc,M as Ub,Mb as mC,Mc as on,Md as AT,Me as qT,Mf as kS,Mh as xE,Mi as cw,Mj as us,Mk as la,Ml as uA,Mo as It,N as jb,Nc as UC,Nd as vT,Ne as zT,Nf as xS,Ni as dw,Nj as ps,Nk as ua,Nl as pA,Oc as nn,Od as OT,Of as Hn,Oi as lw,Ok as pa,Ol as mA,Pa as Zb,Pb as fC,Pd as RT,Pe as VT,Pf as Kn,Pi as uw,Pj as ms,Pk as ma,Pl as fA,Pm as WA,Pn as Rt,Q as Bb,Qa as Qb,Qb as _C,Qc as jC,Qd as IT,Qe as HT,Qf as Wn,Qi as pw,Qj as fs,Qk as fa,Qm as XA,Qn as Av,Ra as eC,Rc as BC,Rd as PT,Re as KT,Rf as VS,Rg as mE,Rh as NE,Ri as mw,Rj as _s,Rk as _a,Rl as _A,Rm as YA,Rn as vv,Sc as qC,Sd as MT,Se as WT,Sf as HS,Sg as fE,Sh as LE,Si as fw,Sj as hs,Sk as ha,Sl as hA,Sm as nc,Sn as Ov,T as qb,Tb as I,Tc as zC,Td as kT,Te as XT,Tf as KS,Tg as _E,Th as DE,Tj as gs,Tk as ga,Tm as JA,Tn as bc,Ua as Vo,Ub as hC,Uc as VC,Ud as xT,Ue as YT,Uf as WS,Ug as ui,Uh as $E,Ui as _w,Uj as ys,Uk as ya,Ul as gA,Un as Cc,V as zb,Va as tC,Vb as yt,Vd as NT,Ve as JT,Vf as XS,Vg as pi,Vh as FE,Vi as hw,Vj as bs,Vk as ba,Vl as yA,Vm as ZA,Vn as Tc,W as Vb,Wa as rC,Wb as gC,Wd as dn,We as ZT,Wf as YS,Wg as mi,Wh as GE,Wi as gw,Wj as Cs,Wk as Ca,Wl as bA,Wm as QA,Wn as Sc,X as Hb,Xa as oC,Xd as ln,Xe as QT,Xf as JS,Xg as fi,Xi as yw,Xj as Ts,Xk as Ta,Xl as CA,Xm as ev,Xn as Ec,Ya as nC,Yb as yC,Yd as un,Ye as eS,Yf as ZS,Yg as _i,Yh as UE,Yi as ji,Yj as Ss,Yk as Sa,Yl as TA,Ym as tv,Yn as wc,Zd as pn,Ze as tS,Zf as QS,Zg as hi,Zi as Bi,Zj as Es,Zk as Ea,Zl as SA,Zm as rv,Zn as Ac,_a as Ho,_c as bt,_d as mn,_e as rS,_f as eE,_g as gi,_h as jE,_j as ws,_k as wa,_l as EA,_m as ov,_n as vc,ab as Ne,ad as sn,ae as _n,af as nS,ag as rE,ah as bi,ai as qE,aj as bw,ak as vs,al as va,am as AA,an as iv,ao as Rc,b as vo,bb as iC,bd as an,be as Le,bf as iS,bg as oE,bh as Ci,bi as zE,bk as Os,bl as Oa,bn as sv,bo as Ic,c as Oo,ca as Kb,cb as sC,cd as cn,ce as De,cf as Tt,ch as Ti,ci as VE,cj as Cw,ck as Rs,cl as Ra,cm as vA,cn as av,co as Pc,d as Ro,db as Wo,de as hn,dh as Si,di as HE,dj as Tw,dk as Is,dl as Ia,dm as OA,dn as Ot,do as Mc,e as Io,eb as Xo,ed as HC,ee as gn,ef as St,eh as Ei,ei as KE,ej as Sw,ek as Ps,el as Pa,em as RA,en as cv,eo as kc,f as Pe,fa as Wb,fd as KC,fe as yn,ff as qn,fh as wi,fi as WE,fk as Ms,fm as IA,fo as xc,g as Po,gb as Yo,gd as WC,ge as bn,gf as zn,gh as Ai,gi as XE,gj as Ew,gk as ks,gl as Ue,gm as PA,go as Nc,h as N,hd as XC,he as Cn,hf as Et,hg as nE,hh as hE,hk as xs,hl as Q,hn as dv,ho as Lc,i as Me,ia as Xb,ic as bC,id as YC,ie as Tn,ih as gE,ij as Dw,ik as Ns,il as Ma,im as MA,in as lv,io as Dc,j as Mo,jc as CC,jd as JC,je as Sn,jf as sS,jh as vi,jj as $w,jk as Ls,jl as qa,jn as uv,k as ko,kc as TC,kd as ZC,ke as En,kg as Xn,kh as yE,ki as YE,kj as Fw,kk as Ds,kl as za,km as kA,kn as pv,ko as Rv,l as xo,ld as QC,le as wn,lf as aS,lg as iE,lh as Oi,lj as Fe,lk as $s,ll as Va,lm as xA,ln as mv,lo as Iv,m as No,ma as Yb,mc as SC,md as eT,me as An,mf as $e,mg as Yn,mh as Ri,mi as JE,mj as Gw,mk as Fs,ml as Ha,mm as NA,mn as fv,n as Rb,na as ue,nc as EC,nd as tT,ne as vn,nf as cS,nh as Ii,nj as Uw,nk as Gs,nl as Ka,nm as LA,nn as _v,o as ke,oa as Jb,od as rT,oe as On,of as dS,og as sE,oh as Pi,oj as jw,ok as Us,ol as Wa,om as DA,on as hv,oo as Pv,p as ht,pa as b,pc as wC,pd as oT,pe as Rn,pf as lS,pg as aE,pi as ZE,pj as At,pk as js,pl as Xa,pn as ic,po as Mv,q as Ib,qa as Fo,qc as Qo,qd as nT,qe as In,qf as uS,qg as cE,qi as xi,qj as Ge,qk as Bs,ql as Ya,qn as sc,qo as kv,r as Pb,ra as Go,rd as iT,re as Pn,rf as pS,rg as Jn,ri as QE,rj as Bw,rk as qs,rl as Ja,rn as ac,ro as xv,s as Mb,sa as Uo,sc as en,sd as sT,se as Mn,sf as mS,sg as Zn,sj as qw,sk as zs,sl as Yw,sn as cc,so as Nv,t as kb,tb as Jo,tc as tn,td as aT,te as kn,tf as fS,tg as Qn,ti as ew,tj as zw,tk as Vs,tl as Jw,tn as dc,to as Lv,u as q,ub as Zo,ud as cT,ue as xn,uf as _S,ug as ei,ui as tw,uj as Vw,uk as Hs,ul as Zw,un as lc,uo as Dv,v as xb,vb as aC,vd as dT,ve as Nn,vf as hS,vg as ti,vh as bE,vi as rw,vj as Hw,vk as Ks,vl as Qw,vo as $c,wa as jo,wc as AC,wd as lT,we as Ln,wf as gS,wg as ri,wh as CE,wi as ow,wj as Kw,wk as Ws,wl as eA,wn as uc,wo as Fc,x as Lo,xc as vC,xd as uT,xe as Dn,xf as yS,xg as oi,xh as TE,xi as nw,xj as Yi,xk as Xs,xl as tA,xn as pc,xo as Gc,y as gt,ya as Bo,yc as OC,yd as pT,ye as $n,yf as bS,yg as dE,yh as SE,yj as Ji,yk as Ys,yl as rA,ym as $A,yn as mc,yo as Uc,z as le,za as qo,zc as RC,zd as mT,ze as Fn,zf as CS,zg as lE,zh as EE,zi as $i,zj as Zi,zk as Js,zm as FA,zn as fc,zo as jc}from"./chunks/chunk-Y6VRBTP3.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 z="2026-07-28",Jk=["2025-11-25","2025-06-18"],Ke=[z],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},w={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},er=["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 kh(e){if(e===void 0)return;if(!_(e))throw new p("Invalid MCP clientInfo metadata",m.invalidParams,{field:w.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:w.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 xh(e){if(e!==void 0){if(typeof e!="string"||!er.includes(e))throw new p("Invalid MCP logLevel metadata",m.invalidParams,{field:w.logLevel,allowed:[...er]});return e}}function We(e){let t=_(e)?e._meta:void 0;if(!_(t))throw new p("Missing required MCP request metadata",m.invalidParams,{required:[w.protocolVersion,w.clientCapabilities]});let r=t[w.protocolVersion];if(typeof r!="string"||!Ke.includes(r))throw new p("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...Ke],requested:typeof r=="string"?r:null});let o=t[w.clientCapabilities];if(!_(o))throw new p("Invalid MCP client capabilities metadata",m.invalidParams,{field:w.clientCapabilities,expected:"object"});let n=kh(t[w.clientInfo]),i=xh(t[w.logLevel]);return{protocolVersion:z,clientCapabilities:o,...n?{clientInfo:n}:{},...i?{logLevel:i}:{}}}function Zk(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 Qk(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 ex(e,t){let r=e.clientCapabilities.extensions;return _(r)&&_(r[t])}function Xe(e,t){let r=_(e._meta)?e._meta:{};return{...e,_meta:{...r,[w.serverInfo]:{...t}}}}function Nh(e,t){return Xe({...e,resultType:"complete"},t)}function tx(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 Nh({supportedVersions:[...Ke],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function rx(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 or,createHmac as nr,timingSafeEqual as Lh}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 Dh=["elicitation/create","roots/list","sampling/createMessage"],tr=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},ir=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,fe=32,Je=64*1024,_e=16*1024,Ye={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function $h(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function he(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 Ze(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>fe)throw new p("Invalid MCP inputRequests count",m.invalidParams,{minimum:1,maximum:fe,observed:r.length});let o={};for(let[n,i]of r){if(!ir.test(n)||!_(i))throw new p("Invalid MCP input request entry",m.invalidParams,{field:`inputRequests.${n}`});let s=i.method;if(typeof s!="string"||!Dh.includes(s))throw new p("Unsupported MCP input request method",m.invalidParams,{field:`inputRequests.${n}.method`,method:s??null});let a=$h(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 he(o,Je,"inputRequests"),o}function sr(e){if(!_(e))throw new p("Invalid MCP inputResponses",m.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>fe)throw new p("Invalid MCP inputResponses count",m.invalidParams,{maximum:fe,observed:t.length});let r={};for(let[o,n]of t){if(!ir.test(o)||!_(n))throw new p("Invalid MCP input response entry",m.invalidParams,{field:`inputResponses.${o}`});r[o]=structuredClone(n)}return he(r,Je,"inputResponses"),r}function sx(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>_e)throw new p("Invalid MCP requestState: payload exceeds the protocol bound",m.invalidParams,{field:"requestState",maximumBytes:_e});let r=e.inputRequests===void 0?void 0:Ze(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:{[w.serverInfo]:{...e.serverInfo}}}}function ar(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 ax(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>_e/2)throw new p("MCP requestState payload exceeds the protocol bound",m.invalidParams,{maximumBytes:_e/2});let o=r.toString("base64url"),n=nr("sha256",ar(t)).update(o).digest("base64url");return`${o}.${n}`}function Fh(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 cx(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=nr("sha256",ar(t)).update(o).digest();if(s.byteLength!==a.byteLength||!Lh(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=Fh(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 dx(e){return he(e,Je,"request parameters"),or("sha256").update(JSON.stringify(e)).digest("hex")}var rr=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=or("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 Gh(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 lx(e,t){return{...e,...Gh(t)}}function Uh(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function jh(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let o of t.slice(2).split("/").map(Uh)){if(!_(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}function Bh(e){let t=e.maxBytes??Ye.maxBytes,r=e.maxDepth??Ye.maxDepth,o=e.maxNodes??Ye.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 qh(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("#")&&jh(e,r)===void 0)throw new p("MCP JSON Schema contains an unresolved local reference",m.invalidParams,{reference:r})}function ux(e,t={}){let{maximumBytes:r,maximumDepth:o,maximumNodes:n}=Bh(t);if(typeof e!="boolean"&&!_(e))throw new p("Invalid MCP JSON Schema root",m.invalidParams,{expected:"object or boolean"});he(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),qh(a,i)}return structuredClone(e)}import{randomUUID as Vh}from"node:crypto";import{readFile as Hh}from"node:fs/promises";import cr 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 bx="io.modelcontextprotocol/tasks",Kh=["working","input_required","completed","failed","cancelled"],Wh=/^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,Xh=3600*1e3,Yh=1e3,ye=1024,Jh=30,Zh=2e3;function Qe(e){return new p(e,m.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function ge(e){let t=e.trim();if(!Wh.test(t))throw Qe("Unknown MCP task");return t}function dr(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 lr(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,ye),..._(e.data)?{data:structuredClone(e.data)}:{}}}function Qh(e){if(!Kh.includes(e))throw new p("Corrupt MCP task record",m.invalidParams);return e}function eg(e){if(typeof e!="string"||e.length===0)throw new p("Corrupt MCP task record",m.invalidParams);return e}function tg(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new p("Corrupt MCP task record",m.invalidParams);return e}function rg(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new p("Corrupt MCP task record",m.invalidParams);return e}function og(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 ng(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new p("Corrupt MCP task record",m.invalidParams);return[...e]}function ig(e){if(!_(e)||e.version!==1)throw new p("Corrupt MCP task record",m.invalidParams);let t=typeof e.taskId=="string"?ge(e.taskId):"",r=Qh(e.status),o=eg(e.principal),n=tg(e.workerPid),i=rg(e.ttlMs),s=og(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:o,workerPid:n,createdAt:dr(e.createdAt,"createdAt"),lastUpdatedAt:dr(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:i,consumedInputKeys:ng(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,ye)}:{},...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=lr(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 V(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 te(e){return e==="completed"||e==="failed"||e==="cancelled"}function sg(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var et=class{#e;#t;#r;#o;#i;constructor(t){this.#e=cr.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${Vh()}`),this.#i=t.workerPid??process.pid}#s(t){return cr.join(this.#e,"runtime","mcp-tasks","records",`${ge(t)}.json`)}async#c(t){try{return ig(JSON.parse(await Hh(this.#s(t),"utf8")))}catch(r){throw le(r)||r instanceof SyntaxError?Qe("Unknown MCP task"):r}}async#a(t){await xe(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
2
2
  `)}async#n(t,r,o){let n=ge(t),i=await $e(this.#e,n,Jh,this.#t,!1,!1,Zh);try{let s=await this.#c(n);if(s.principal!==r)throw Qe("Unknown MCP task");let a=o(s);return await this.#a(a),a}finally{await i()}}async create(t){let r=ge(this.#o()),o=t.principal.trim(),n=t.ttlMs===void 0?Xh:t.ttlMs,i=t.pollIntervalMs??Yh;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,ye)}:{}};return await this.#a(a),{...V(a),resultType:"task"}}async get(t,r){return V(await this.#n(t,r,o=>{if(te(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&&!sg(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=Ze(t.inputRequests,t.requestContext);return V(await this.#n(t.taskId,t.principal,o=>{if(te(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,ye),lastUpdatedAt:this.#r().toISOString(),inputRequests:r}}))}async update(t,r,o){let n=sr(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 V(await this.#n(t,r,n=>te(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=lr(o);return V(await this.#n(t,r,i=>te(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 V(await this.#n(t,r,o=>te(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 Cx(e){return new et(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 be="io.modelcontextprotocol/subscriptionId",ur=256,pr=2048,ag=5e3;function cg(e,t){return new Promise((r,o)=>{let n=setTimeout(()=>o(new Error("MCP subscription sink write timed out")),ag);n.unref(),Promise.resolve().then(()=>e(t)).then(()=>{clearTimeout(n),r()},i=>{clearTimeout(n),o(i instanceof Error?i:new Error(String(i)))})})}function tt(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 dg(e){if(!_(e))throw new p("Invalid MCP subscription filter",m.invalidParams,{field:"notifications",expected:"object"});let t=tt(e.toolsListChanged,"toolsListChanged"),r=tt(e.promptsListChanged,"promptsListChanged"),o=tt(e.resourcesListChanged,"resourcesListChanged"),n;if(e.resourceSubscriptions!==void 0){if(!Array.isArray(e.resourceSubscriptions)||e.resourceSubscriptions.length>ur)throw new p("Invalid MCP resource subscriptions",m.invalidParams,{field:"notifications.resourceSubscriptions",maximum:ur});let i=new Set;for(let s of e.resourceSubscriptions){if(typeof s!="string"||s.trim().length===0||Buffer.byteLength(s,"utf8")>pr)throw new p("Invalid MCP resource subscription URI",m.invalidParams,{field:"notifications.resourceSubscriptions",maximumBytes:pr});i.add(s)}i.size>0&&(n=[...i].sort())}return{...t?{toolsListChanged:t}:{},...r?{promptsListChanged:r}:{},...o?{resourcesListChanged:o}:{},...n?{resourceSubscriptions:n}:{}}}function lg(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 mr=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=lg(dg(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:{[be]: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:{[be]: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:{[be]: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 cg(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{...Xe({resultType:"complete",_meta:{[be]: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 fr=/^=\?base64\?([A-Za-z0-9+/]*={0,2})\?=$/u,ug=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u,_r=/^[\t\x20-\x7E]*$/u,hr=new Set(["prompts/get","resources/read","tools/call"]);function pg(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 A(e,t){throw new p(e,m.headerMismatch,{header:t})}function gr(e){let t=typeof e=="boolean"?String(e).toLowerCase():String(e);return t.length>0&&t.trim()===t&&_r.test(t)&&!fr.test(t)?t:`=?base64?${Buffer.from(t,"utf8").toString("base64")}?=`}function yr(e,t){let r=fr.exec(e);if(r){let o=r[1],n=Buffer.from(o,"base64");return n.toString("base64")!==o||n.length===0?A("Malformed MCP Base64 header value",t):n.toString("utf8")}return e.length===0||e.trim()!==e||!_r.test(e)?A("Malformed MCP header value",t):e}function Ce(e){return Array.isArray(e)?e.some(Ce):_(e)?Object.prototype.hasOwnProperty.call(e,"x-mcp-header")||Object.values(e).some(Ce):!1}function mg(e,t,r){let o=e["x-mcp-header"];if(o===void 0)return;let n=e.type;if(typeof o!="string"||!ug.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 br(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=mg(c,d,r);l&&t.push(l);for(let[u,f]of Object.entries(c))if(u!=="properties"&&u!=="x-mcp-header"&&Ce(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"&&Ce(i))throw new p("MCP x-mcp-header is not statically reachable",m.invalidParams,{field:"inputSchema",keyword:n});return o(e,[]),t}function Cr(e,t){let r=e;for(let o of t){if(!_(r))return;r=r[o]}return r}function Tr(e,t){let r=e==="resources/read"?t.uri:t.name;return typeof r=="string"?r:void 0}function fg(e,t){let r=_(e.arguments)?e.arguments:{},o={};for(let n of br(t)){let i=Cr(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}`]=gr(i)}return o}function Ax(e){let t=_(e.request.params)?e.request.params:void 0,r=We(t),o=e.request.method;if(typeof o!="string"||o.length===0)return A("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=Tr(o,t);if(hr.has(o)){if(i===void 0)return A("Missing MCP request name","Mcp-Name");n["Mcp-Name"]=gr(i)}return o==="tools/call"&&e.toolSchema!==void 0&&Object.assign(n,fg(t,e.toolSchema)),n}function _g(e,t){let r=t.method;(typeof r!="string"||r.length===0)&&A("Missing MCP request method","Mcp-Method");let o=_(t.params)?t.params:void 0,n=We(o).protocolVersion;if(e.get("mcp-protocol-version")!==n&&A("MCP protocol header does not match request metadata","MCP-Protocol-Version"),e.get("mcp-method")!==r&&A("MCP method header does not match request body","Mcp-Method"),hr.has(r)){let i=e.get("mcp-name"),s=Tr(r,o);(i===void 0||s===void 0||yr(i,"Mcp-Name")!==s)&&A("MCP name header does not match request body","Mcp-Name")}e.has("last-event-id")&&A("MCP SSE resumability is not supported","Last-Event-ID")}function hg(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 gg(e){let t=_(e.params.arguments)?e.params.arguments:{};for(let r of br(e.toolSchema)){let o=Cr(t,r.path),n=`Mcp-Param-${r.name}`,i=e.headers.get(n.toLowerCase());if(o==null){i!==void 0&&A("Unexpected MCP parameter header",n);continue}i===void 0&&A("Missing MCP parameter header",n),hg(r,o,yr(i,n))||A("MCP parameter header does not match request body",n)}}function vx(e){let t=pg(e.headers),r=typeof e.request.method=="string"?e.request.method:"";_g(t,e.request),!(r!=="tools/call"||e.toolSchema===void 0)&&gg({headers:t,params:e.request.params,toolSchema:e.toolSchema})}var Ox=z;import{AsyncLocalStorage as yg}from"node:async_hooks";import{createHash as Sr,timingSafeEqual as bg}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}},Cg=/^00-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})$/u,Tg=/^[a-z][a-z0-9_*/-]{0,255}$/u,Sg=/^(?:[a-z0-9][a-z0-9_*/-]{0,240})@[a-z][a-z0-9_*/-]{0,13}$/u,Eg=/^[\x20-\x2B\x2D-\x3C\x3E-\x7E]{0,255}[\x21-\x2B\x2D-\x3C\x3E-\x7E]$/u,wr=/^[\x21\x23-\x5B\x5D-\x7E]+$/u,Ar=/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/u,wg=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]*$/u,Ag=/%(?![0-9A-Fa-f]{2})/u,vg=512,Og=32,Rg=180,Ig=8192,Pg=8192,vr=new yg;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 Mg(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 kx(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=>!wr.test(n)))throw new y("Invalid authorization scope",401);return{resource:t,authorization_servers:r,...o.length>0?{scopes_supported:o.sort()}:{}}}function xx(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 Nx(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 Lx(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 Dx(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 $x(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 Fx(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 Er=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 kg(e){let t=e.traceparent,r=e.tracestate;if(t!==void 0){let o=typeof t=="string"?Cg.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"||!Ng(r)))throw new y("Invalid MCP tracestate",403);return{...typeof t=="string"?{traceparent:t}:{},...typeof r=="string"?{tracestate:r}:{}}}function D(e){return e.replace(/^[ \t]*|[ \t]*$/gu,"")}function xg(e){return Tg.test(e)||Sg.test(e)}function Ng(e){if(Buffer.byteLength(e,"utf8")>vg)return!1;let t=e.split(",");if(t.length>Og)return!1;let r=new Set;for(let o of t){let n=D(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(!xg(s)||!Eg.test(a)||r.has(s))return!1;r.add(s)}return!0}function Or(e){return wg.test(e)&&!Ag.test(e)}function Lg(e){let t=D(e),r=t.indexOf("="),o=D(r>=0?t.slice(0,r):t),n=r>=0?D(t.slice(r+1)):void 0;return Ar.test(o)&&(n===void 0||Or(n))}function Dg(e){let t=D(e),r=t.split(";"),o=r[0],n=r.slice(1),i=o.indexOf("="),s=D(i>0?o.slice(0,i):""),a=i>0?D(o.slice(i+1)):"";if(!(!Ar.test(s)||!Or(a)||!n.every(Lg)))return{key:s,serialized:t}}function $g(e,t){if(e===void 0)return;if(typeof e!="string"||Buffer.byteLength(e,"utf8")>Ig)throw new y("Invalid MCP baggage",403);let r=new Set(t),o=e.split(",");if(o.length>Rg)throw new y("Invalid MCP baggage",403);let n=[];for(let i of o){let s=Dg(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 Gx(e,t={}){let r=_(e)&&_(e._meta)?e._meta:{},o=$g(r.baggage,t.baggageAllowlist??[]);return{...kg(r),...o?{baggage:o}:{}}}function Ux(e,t){return vr.run(structuredClone(e),t)}function jx(){let e=vr.getStore();return e?{...e}:void 0}async function Bx(e){let t=E(e.policy.resourceMetadataUrl,"protected resource metadata URL",!0).href,r=[...new Set(e.policy.requiredScopes??[])];if(r.some(u=>!wr.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=Mg(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")>Pg)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 qx(e){let t=Sr("sha256").update(e.token).digest();return r=>{let o=Sr("sha256").update(r).digest();if(!bg(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 rt="io.modelcontextprotocol/ui",Te="2026-01-26",Pr="text/html;profile=mcp-app",Rr=Object.freeze({specVersion:Te,mimeTypes:[Pr]});function Hx(e){let t=e.clientCapabilities.extensions;if(!_(t))return!1;let r=t[rt];if(r===void 0)return!1;if(!_(r))throw new p("Invalid MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[rt]:Rr}}});let o=r.mimeTypes,n=r.specVersion;if(!Array.isArray(o)||!o.includes(Pr)||n!==void 0&&n!==Te)throw new p("Unsupported MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[rt]:Rr}}});return!0}var Fg={csp:{connectDomains:[],resourceDomains:[],frameDomains:[]},permissions:{},prefersBorder:!0},Mr=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:Fg})));function Kx(e){return Mr.find(t=>t.uri===e)}function Wx(e){let t=new Map(Mr.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 Ir(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function Xx(e){let t=Ir(e.name),r=Ir(e.description),o=JSON.stringify({name:`pm-${e.id}-view`,version:Te}),n=JSON.stringify(Te);return`<!doctype html>
3
3
  <html lang="en">
4
4
  <head>
@@ -606,12 +606,19 @@ export interface ExtensionCommandSdk {
606
606
  operationId: string;
607
607
  /** Compute a preview without changing settings or workspace history. */
608
608
  dryRun?: boolean;
609
- /** Derive the complete next settings tree from the locked current tree. */
609
+ /** Include the canonical inline settings tree; omit by default to bound receipts. */
610
+ includePreview?: boolean;
611
+ /** Derive the complete next settings tree from normalized inline settings at lock time. */
610
612
  mutate: (current: PmSettings) => PmSettings | Promise<PmSettings>;
611
613
  }): Promise<{
614
+ /** Whether the locked settings bytes would change, or did change on apply. */
612
615
  changed: boolean;
616
+ /** Whether persistence was suppressed for this invocation. */
613
617
  dry_run: boolean;
618
+ /** Whether the operation was already committed and the callback was skipped. */
614
619
  replayed: boolean;
620
+ /** Settings resolved from the exact persisted bytes, before optional file-backed schema overlays. Absent on replay. */
621
+ preview?: PmSettings;
615
622
  }>;
616
623
  }
617
624
  /** Documents the parser override context payload exchanged by command, SDK, and package integrations. */
@@ -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]="e88ce29f-3547-5b51-856f-bb4618ae53b1")}catch(e2){}})();const KNOWN_EXTENSION_CAPABILITIES=["commands","renderers","hooks","schema","importers","search","parser","preflight","services"];const EXTENSION_CAPABILITY_CONTRACT_VERSION=2;const EXTENSION_CAPABILITY_LEGACY_ALIASES=Object.freeze({migration:"schema",validation:"schema"});const EXTENSION_CAPABILITY_CONTRACT=Object.freeze({version:EXTENSION_CAPABILITY_CONTRACT_VERSION,capabilities:[...KNOWN_EXTENSION_CAPABILITIES],legacy_aliases:{...EXTENSION_CAPABILITY_LEGACY_ALIASES}});const KNOWN_EXTENSION_POLICY_MODES=["off","warn","enforce"];const KNOWN_EXTENSION_TRUST_MODES=["off","warn","enforce"];const KNOWN_EXTENSION_SANDBOX_PROFILES=["none","restricted","strict"];const KNOWN_PM_MAX_VERSION_EXCEEDED_MODES=["block","warn"];const KNOWN_EXTENSION_POLICY_SURFACES=["commands.override","commands.handler","hooks.beforecommand","hooks.beforemutation","hooks.aftercommand","hooks.onwrite","hooks.onread","hooks.onindex","schema.flags","schema.itemfields","schema.itemtypes","schema.relationshipkinds","schema.migrations","schema.profiles","parser.override","preflight.override","services.override","renderers.override","importers.importer","importers.exporter","search.provider","search.vectorstore","services.assuranceprovider"];const KNOWN_EXTENSION_SERVICE_NAMES=["output_format","error_format","help_format","lock_acquire","lock_release","history_append","item_store_write","item_store_delete","context_relevance","command_result"];function createDefaultExtensionGovernancePolicy(){return{mode:"off",trust_mode:"off",require_provenance:false,trusted_extensions:[],default_sandbox_profile:"none",allowed_extensions:[],blocked_extensions:[],allowed_capabilities:[],blocked_capabilities:[],allowed_surfaces:[],blocked_surfaces:[],allowed_commands:[],blocked_commands:[],allowed_actions:[],blocked_actions:[],allowed_services:[],blocked_services:[],extension_overrides:[]}}export{EXTENSION_CAPABILITY_CONTRACT,EXTENSION_CAPABILITY_CONTRACT_VERSION,EXTENSION_CAPABILITY_LEGACY_ALIASES,KNOWN_EXTENSION_CAPABILITIES,KNOWN_EXTENSION_POLICY_MODES,KNOWN_EXTENSION_POLICY_SURFACES,KNOWN_EXTENSION_SANDBOX_PROFILES,KNOWN_EXTENSION_SERVICE_NAMES,KNOWN_EXTENSION_TRUST_MODES,KNOWN_PM_MAX_VERSION_EXCEEDED_MODES,createDefaultExtensionGovernancePolicy};
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]="dfa7c914-c0f4-5ce5-ae6e-2078a0c08701")}catch(e2){}})();const KNOWN_EXTENSION_CAPABILITIES=["commands","renderers","hooks","schema","importers","search","parser","preflight","services"];const EXTENSION_CAPABILITY_CONTRACT_VERSION=2;const EXTENSION_CAPABILITY_LEGACY_ALIASES=Object.freeze({migration:"schema",validation:"schema"});const EXTENSION_CAPABILITY_CONTRACT=Object.freeze({version:EXTENSION_CAPABILITY_CONTRACT_VERSION,capabilities:[...KNOWN_EXTENSION_CAPABILITIES],legacy_aliases:{...EXTENSION_CAPABILITY_LEGACY_ALIASES}});const KNOWN_EXTENSION_POLICY_MODES=["off","warn","enforce"];const KNOWN_EXTENSION_TRUST_MODES=["off","warn","enforce"];const KNOWN_EXTENSION_SANDBOX_PROFILES=["none","restricted","strict"];const KNOWN_PM_MAX_VERSION_EXCEEDED_MODES=["block","warn"];const KNOWN_EXTENSION_POLICY_SURFACES=["commands.override","commands.handler","hooks.beforecommand","hooks.beforemutation","hooks.aftercommand","hooks.onwrite","hooks.onread","hooks.onindex","schema.flags","schema.itemfields","schema.itemtypes","schema.relationshipkinds","schema.migrations","schema.profiles","parser.override","preflight.override","services.override","renderers.override","importers.importer","importers.exporter","search.provider","search.vectorstore","services.assuranceprovider"];const KNOWN_EXTENSION_SERVICE_NAMES=["output_format","error_format","help_format","lock_acquire","lock_release","history_append","item_store_write","item_store_delete","context_relevance","command_result"];function createDefaultExtensionGovernancePolicy(){return{mode:"off",trust_mode:"off",require_provenance:false,trusted_extensions:[],default_sandbox_profile:"none",allowed_extensions:[],blocked_extensions:[],allowed_capabilities:[],blocked_capabilities:[],allowed_surfaces:[],blocked_surfaces:[],allowed_commands:[],blocked_commands:[],allowed_actions:[],blocked_actions:[],allowed_services:[],blocked_services:[],extension_overrides:[]}}export{EXTENSION_CAPABILITY_CONTRACT,EXTENSION_CAPABILITY_CONTRACT_VERSION,EXTENSION_CAPABILITY_LEGACY_ALIASES,KNOWN_EXTENSION_CAPABILITIES,KNOWN_EXTENSION_POLICY_MODES,KNOWN_EXTENSION_POLICY_SURFACES,KNOWN_EXTENSION_SANDBOX_PROFILES,KNOWN_EXTENSION_SERVICE_NAMES,KNOWN_EXTENSION_TRUST_MODES,KNOWN_PM_MAX_VERSION_EXCEEDED_MODES,createDefaultExtensionGovernancePolicy};
2
2
  //# sourceMappingURL=extension-types.js.map
@@ -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]="a5bd8db9-cd23-5529-ad78-b7e87bd43b59")}catch(e2){}})();import{PmCliError}from"./errors.js";import{evictOldestMemoEntries}from"./memo.js";import{EXIT_CODE}from"./constants.js";import{nextReproducibleTimestamp}from"../reproducibility/context.js";const RELATIVE_DEADLINE=/^([+-]?)(\d+)([hdwm])$/i;const COMPOUND_RELATIVE_DEADLINE=/^[+-]?\d+[hdwm](?:[+-]\d+[hdwm])+$/i;const COMPACT_DATE=/^(\d{4})(\d{2})(\d{2})$/;const COMPACT_DATETIME=/^(\d{4})(\d{2})(\d{2})(?:[T\s]?)(\d{2})(\d{2})(\d{2})?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i;const HYPHEN_TIME=/^(\d{4}-\d{2}-\d{2})[T\s](\d{2})-(\d{2})(?:-(\d{2}))?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i;const COMPACT_TIME=/^(\d{4}-\d{2}-\d{2})[T\s](\d{2})(\d{2})(\d{2})?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i;const RFC_3339_DATE_TIME=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:Z|[+-](\d{2}):(\d{2}))$/i;function nowIso(){return nextReproducibleTimestamp()??new Date().toISOString()}function isTimestampLiteral(input){return Number.isFinite(Date.parse(input))}function isRfc3339DateTime(input){const match=RFC_3339_DATE_TIME.exec(input);if(!match||!Number.isFinite(Date.parse(input)))return false;const[,yearRaw,monthRaw,dayRaw,hourRaw,minuteRaw,secondRaw,offsetHourRaw,offsetMinuteRaw]=match;const[year,month,day,hour,minute,second]=[yearRaw,monthRaw,dayRaw,hourRaw,minuteRaw,secondRaw].map(Number);return month>=1&&month<=12&&day>=1&&day<=daysInUtcMonth(year,month-1)&&hour<=23&&minute<=59&&second<=59&&(offsetHourRaw===void 0||Number(offsetHourRaw)<=23)&&(offsetMinuteRaw===void 0||Number(offsetMinuteRaw)<=59)}function isMillisecondPrecisionRfc3339DateTime(input){const fraction=/\.(\d+)(?:Z|[+-]\d{2}:\d{2})$/iu.exec(input)?.[1];return isRfc3339DateTime(input)&&(fraction===void 0||/^\d{0,3}0*$/u.test(fraction))}const TIMESTAMP_PARSE_MEMO_MAX_ENTRIES=1e4;const timestampParseMemo=new Map;function parseTimestampMsMemoized(value){const memoized=timestampParseMemo.get(value);if(memoized!==void 0){return memoized}const parsed=Date.parse(value);if(timestampParseMemo.size>=TIMESTAMP_PARSE_MEMO_MAX_ENTRIES){evictOldestMemoEntries(timestampParseMemo)}timestampParseMemo.set(value,parsed);return parsed}function compareTimestampStrings(left,right){const leftMs=parseTimestampMsMemoized(left);const rightMs=parseTimestampMsMemoized(right);if(Number.isFinite(leftMs)&&Number.isFinite(rightMs)&&leftMs!==rightMs){return leftMs-rightMs}return left.localeCompare(right)}function matchesTimestampFilters(item,filters){return!(filters.deadlineBefore&&(!item.deadline||compareTimestampStrings(item.deadline,filters.deadlineBefore)>0)||filters.deadlineAfter&&(!item.deadline||compareTimestampStrings(item.deadline,filters.deadlineAfter)<0)||filters.updatedAfter&&compareTimestampStrings(item.updated_at,filters.updatedAfter)<0||filters.updatedBefore&&compareTimestampStrings(item.updated_at,filters.updatedBefore)>0||filters.createdAfter&&compareTimestampStrings(item.created_at,filters.createdAfter)<0||filters.createdBefore&&compareTimestampStrings(item.created_at,filters.createdBefore)>0)}function normalizeFraction(raw){if(!raw)return"";const digits=raw.slice(1);return`.${digits.padEnd(3,"0").slice(0,3)}`}function normalizeOffset(raw){if(!raw)return"";if(raw.toUpperCase()==="Z")return"Z";const compact=/^([+-]\d{2})(\d{2})$/.exec(raw);if(compact)return`${compact[1]}:${compact[2]}`;return raw}function pushTimestampCandidate(candidates,input,value){if(!value)return;if(value===input)return;if(candidates.includes(value))return;candidates.push(value)}function normalizeTimestampCandidates(input){const candidates=[];const push=value=>pushTimestampCandidate(candidates,input,value);const compactDate=COMPACT_DATE.exec(input);if(compactDate){const[,year,month,day]=compactDate;push(`${year}-${month}-${day}`)}const compactDateTime=COMPACT_DATETIME.exec(input);if(compactDateTime){const[,year,month,day,hour,minute,secondRaw,fractionRaw,offsetRaw]=compactDateTime;const second=secondRaw?`:${secondRaw}`:"";push(`${year}-${month}-${day}T${hour}:${minute}${second}${normalizeFraction(fractionRaw)}${normalizeOffset(offsetRaw)}`)}const hyphenTime=HYPHEN_TIME.exec(input);if(hyphenTime){const[,datePart,hour,minute,secondRaw,fractionRaw,offsetRaw]=hyphenTime;const second=secondRaw?`:${secondRaw}`:"";push(`${datePart}T${hour}:${minute}${second}${normalizeFraction(fractionRaw)}${normalizeOffset(offsetRaw)}`)}const compactTime=COMPACT_TIME.exec(input);if(compactTime){const[,datePart,hour,minute,secondRaw,fractionRaw,offsetRaw]=compactTime;const second=secondRaw?`:${secondRaw}`:"";push(`${datePart}T${hour}:${minute}${second}${normalizeFraction(fractionRaw)}${normalizeOffset(offsetRaw)}`)}const datePrefixLength=10;const datePrefix=input.slice(0,datePrefixLength);if(isHyphenDatePrefix(datePrefix)){let index=datePrefixLength;while(index<input.length&&isWhitespaceCharacter(input[index])){index+=1}if(index<input.length){push(`${datePrefix}T${input.slice(index)}`)}}return candidates}function parseTimestampWithFallbacks(input){const direct=Date.parse(input);if(Number.isFinite(direct))return direct;for(const candidate of normalizeTimestampCandidates(input)){const parsed=Date.parse(candidate);if(Number.isFinite(parsed))return parsed}return Number.NaN}function isHyphenDatePrefix(value){if(value.length!==10){return false}for(let index=0;index<value.length;index+=1){const character=value[index];if(index===4||index===7){if(character!=="-"){return false}continue}const code=character.charCodeAt(0);if(code<48||code>57){return false}}return true}function isWhitespaceCharacter(character){if(!character){return false}return character===" "||character===" "||character==="\n"||character==="\r"||character==="\f"||character==="\v"}function daysInUtcMonth(year,monthIndex){return new Date(Date.UTC(year,monthIndex+1,0)).getUTCDate()}const MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"];const LEADING_HYPHEN_DATE=/^(\d{4})-(\d{2})-(\d{2})/;const LEADING_COMPACT_DATE=/^(\d{4})(\d{2})(\d{2})(?:[T ]?\d{2}|$)/;function assertRealCalendarDate(originalInput,trimmed,fieldLabel){const match=LEADING_HYPHEN_DATE.exec(trimmed)??LEADING_COMPACT_DATE.exec(trimmed);if(!match){return}const year=Number.parseInt(match[1],10);const month=Number.parseInt(match[2],10);const day=Number.parseInt(match[3],10);const label=fieldLabel?.trim()||"deadline";if(month<1||month>12){throw new PmCliError(`Invalid ${label} value "${originalInput}". Month "${match[2]}" is out of range \u2014 use a month between 01 and 12.`,EXIT_CODE.USAGE)}const maxDay=daysInUtcMonth(year,month-1);if(day<1||day>maxDay){throw new PmCliError(`Invalid ${label} value "${originalInput}". ${MONTH_NAMES[month-1]} ${year} has ${maxDay} days, so day "${match[3]}" does not exist. Use a real YYYY-MM-DD calendar date.`,EXIT_CODE.USAGE)}}function addUtcMonths(now,amount){const result=new Date(now.getTime());const startDay=result.getUTCDate();const targetMonthIndex=result.getUTCMonth()+amount;const targetYear=result.getUTCFullYear()+Math.floor(targetMonthIndex/12);const targetMonth=(targetMonthIndex%12+12)%12;const day=Math.min(startDay,daysInUtcMonth(targetYear,targetMonth));result.setUTCFullYear(targetYear,targetMonth,day);return result}function resolveIsoOrRelative(input,now=new Date,fieldLabel="deadline"){const trimmed=input.trim();if(trimmed.toLowerCase()==="now"){return now.toISOString()}const relative=RELATIVE_DEADLINE.exec(trimmed);if(relative){const sign=relative[1]==="-"?-1:1;const amount=Number.parseInt(relative[2],10)*sign;const unit=relative[3].toLowerCase();if(unit==="m"){return addUtcMonths(now,amount).toISOString()}const msPerUnit=unit==="h"?60*60*1e3:unit==="d"?24*60*60*1e3:7*24*60*60*1e3;return new Date(now.getTime()+amount*msPerUnit).toISOString()}assertRealCalendarDate(input,trimmed,fieldLabel);const timestamp=parseTimestampWithFallbacks(trimmed);if(!Number.isFinite(timestamp)){const normalizedLabel=fieldLabel.trim().length>0?fieldLabel.trim():"deadline";const guidance=COMPOUND_RELATIVE_DEADLINE.test(trimmed)?"Compound relative expressions like +3d+1h are not supported; use a single relative token (for example +3d) or an ISO/date string.":'Use ISO/date string input, "now", or relative +6h/-6h/+1d/-1d/+2w/-2w/+6m/-6m.';throw new PmCliError(`Invalid ${normalizedLabel} value "${input}". ${guidance}`,EXIT_CODE.USAGE)}return new Date(timestamp).toISOString()}const _testOnly={normalizeOffset,pushTimestampCandidate,normalizeTimestampCandidates,parseTimestampWithFallbacks,isWhitespaceCharacter};export{_testOnly,compareTimestampStrings,isMillisecondPrecisionRfc3339DateTime,isRfc3339DateTime,isTimestampLiteral,matchesTimestampFilters,nowIso,resolveIsoOrRelative};
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]="9f856b31-35f8-50e9-b780-f65fc43a60d9")}catch(e2){}})();import{PmCliError}from"./errors.js";import{evictOldestMemoEntries}from"./memo.js";import{EXIT_CODE}from"./constants.js";import{nextReproducibleTimestamp}from"../reproducibility/context.js";const RELATIVE_DEADLINE=/^([+-]?)(\d+)([hdwm])$/i;const COMPOUND_RELATIVE_DEADLINE=/^[+-]?\d+[hdwm](?:[+-]\d+[hdwm])+$/i;const COMPACT_DATE=/^(\d{4})(\d{2})(\d{2})$/;const COMPACT_DATETIME=/^(\d{4})(\d{2})(\d{2})(?:[T\s]?)(\d{2})(\d{2})(\d{2})?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i;const HYPHEN_TIME=/^(\d{4}-\d{2}-\d{2})[T\s](\d{2})-(\d{2})(?:-(\d{2}))?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i;const COMPACT_TIME=/^(\d{4}-\d{2}-\d{2})[T\s](\d{2})(\d{2})(\d{2})?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i;const RFC_3339_DATE_TIME=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:Z|[+-](\d{2}):(\d{2}))$/i;function nowIso(){return nextReproducibleTimestamp()??new Date().toISOString()}function isTimestampLiteral(input){return Number.isFinite(Date.parse(input))}function isRfc3339DateTime(input){const match=RFC_3339_DATE_TIME.exec(input);if(!match||!Number.isFinite(Date.parse(input)))return false;const[,yearRaw,monthRaw,dayRaw,hourRaw,minuteRaw,secondRaw,offsetHourRaw,offsetMinuteRaw]=match;const[year,month,day,hour,minute,second]=[yearRaw,monthRaw,dayRaw,hourRaw,minuteRaw,secondRaw].map(Number);return month>=1&&month<=12&&day>=1&&day<=daysInUtcMonth(year,month-1)&&hour<=23&&minute<=59&&second<=59&&(offsetHourRaw===void 0||Number(offsetHourRaw)<=23)&&(offsetMinuteRaw===void 0||Number(offsetMinuteRaw)<=59)}function isMillisecondPrecisionRfc3339DateTime(input){const fraction=/\.(\d+)(?:Z|[+-]\d{2}:\d{2})$/iu.exec(input)?.[1];return isRfc3339DateTime(input)&&(fraction===void 0||/^\d{0,3}0*$/u.test(fraction))}const TIMESTAMP_PARSE_MEMO_MAX_ENTRIES=1e4;const timestampParseMemo=new Map;function parseTimestampMsMemoized(value){const memoized=timestampParseMemo.get(value);if(memoized!==void 0){return memoized}const parsed=Date.parse(value);if(timestampParseMemo.size>=TIMESTAMP_PARSE_MEMO_MAX_ENTRIES){evictOldestMemoEntries(timestampParseMemo)}timestampParseMemo.set(value,parsed);return parsed}function compareTimestampStrings(left,right){const leftMs=parseTimestampMsMemoized(left);const rightMs=parseTimestampMsMemoized(right);if(Number.isFinite(leftMs)&&Number.isFinite(rightMs)&&leftMs!==rightMs){return leftMs-rightMs}return left.localeCompare(right)}function matchesTimestampFilters(item,filters){return!(filters.deadlineBefore&&(!item.deadline||compareTimestampStrings(item.deadline,filters.deadlineBefore)>0)||filters.deadlineAfter&&(!item.deadline||compareTimestampStrings(item.deadline,filters.deadlineAfter)<0)||filters.updatedAfter&&compareTimestampStrings(item.updated_at,filters.updatedAfter)<0||filters.updatedBefore&&compareTimestampStrings(item.updated_at,filters.updatedBefore)>0||filters.createdAfter&&compareTimestampStrings(item.created_at,filters.createdAfter)<0||filters.createdBefore&&compareTimestampStrings(item.created_at,filters.createdBefore)>0)}function normalizeFraction(raw){if(!raw)return"";const digits=raw.slice(1);return`.${digits.padEnd(3,"0").slice(0,3)}`}function normalizeOffset(raw){if(!raw)return"";if(raw.toUpperCase()==="Z")return"Z";const compact=/^([+-]\d{2})(\d{2})$/.exec(raw);if(compact)return`${compact[1]}:${compact[2]}`;return raw}function pushTimestampCandidate(candidates,input,value){if(!value)return;if(value===input)return;if(candidates.includes(value))return;candidates.push(value)}function normalizeTimestampCandidates(input){const candidates=[];const push=value=>pushTimestampCandidate(candidates,input,value);const compactDate=COMPACT_DATE.exec(input);if(compactDate){const[,year,month,day]=compactDate;push(`${year}-${month}-${day}`)}const compactDateTime=COMPACT_DATETIME.exec(input);if(compactDateTime){const[,year,month,day,hour,minute,secondRaw,fractionRaw,offsetRaw]=compactDateTime;const second=secondRaw?`:${secondRaw}`:"";push(`${year}-${month}-${day}T${hour}:${minute}${second}${normalizeFraction(fractionRaw)}${normalizeOffset(offsetRaw)}`)}const hyphenTime=HYPHEN_TIME.exec(input);if(hyphenTime){const[,datePart,hour,minute,secondRaw,fractionRaw,offsetRaw]=hyphenTime;const second=secondRaw?`:${secondRaw}`:"";push(`${datePart}T${hour}:${minute}${second}${normalizeFraction(fractionRaw)}${normalizeOffset(offsetRaw)}`)}const compactTime=COMPACT_TIME.exec(input);if(compactTime){const[,datePart,hour,minute,secondRaw,fractionRaw,offsetRaw]=compactTime;const second=secondRaw?`:${secondRaw}`:"";push(`${datePart}T${hour}:${minute}${second}${normalizeFraction(fractionRaw)}${normalizeOffset(offsetRaw)}`)}const datePrefixLength=10;const datePrefix=input.slice(0,datePrefixLength);if(isHyphenDatePrefix(datePrefix)){let index=datePrefixLength;while(index<input.length&&isWhitespaceCharacter(input[index])){index+=1}if(index<input.length){push(`${datePrefix}T${input.slice(index)}`)}}return candidates}function parseTimestampWithFallbacks(input){const direct=Date.parse(input);if(Number.isFinite(direct))return direct;for(const candidate of normalizeTimestampCandidates(input)){const parsed=Date.parse(candidate);if(Number.isFinite(parsed))return parsed}return Number.NaN}function isHyphenDatePrefix(value){if(value.length!==10){return false}for(let index=0;index<value.length;index+=1){const character=value[index];if(index===4||index===7){if(character!=="-"){return false}continue}const code=character.charCodeAt(0);if(code<48||code>57){return false}}return true}function isWhitespaceCharacter(character){if(!character){return false}return character===" "||character===" "||character==="\n"||character==="\r"||character==="\f"||character==="\v"}function daysInUtcMonth(year,monthIndex){return new Date(Date.UTC(year,monthIndex+1,0)).getUTCDate()}const MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"];const LEADING_HYPHEN_DATE=/^(\d{4})-(\d{2})-(\d{2})/;const LEADING_COMPACT_DATE=/^(\d{4})(\d{2})(\d{2})(?:[T ]?\d{2}|$)/;function assertRealCalendarDate(originalInput,trimmed,fieldLabel){const match=LEADING_HYPHEN_DATE.exec(trimmed)??LEADING_COMPACT_DATE.exec(trimmed);if(!match){return}const year=Number.parseInt(match[1],10);const month=Number.parseInt(match[2],10);const day=Number.parseInt(match[3],10);const label=fieldLabel?.trim()||"deadline";if(month<1||month>12){throw new PmCliError(`Invalid ${label} value "${originalInput}". Month "${match[2]}" is out of range \u2014 use a month between 01 and 12.`,EXIT_CODE.USAGE,{field:label,value:originalInput})}const maxDay=daysInUtcMonth(year,month-1);if(day<1||day>maxDay){throw new PmCliError(`Invalid ${label} value "${originalInput}". ${MONTH_NAMES[month-1]} ${year} has ${maxDay} days, so day "${match[3]}" does not exist. Use a real YYYY-MM-DD calendar date.`,EXIT_CODE.USAGE,{field:label,value:originalInput})}}function addUtcMonths(now,amount){const result=new Date(now.getTime());const startDay=result.getUTCDate();const targetMonthIndex=result.getUTCMonth()+amount;const targetYear=result.getUTCFullYear()+Math.floor(targetMonthIndex/12);const targetMonth=(targetMonthIndex%12+12)%12;const day=Math.min(startDay,daysInUtcMonth(targetYear,targetMonth));result.setUTCFullYear(targetYear,targetMonth,day);return result}function resolveIsoOrRelative(input,now=new Date,fieldLabel="deadline"){const trimmed=input.trim();if(trimmed.toLowerCase()==="now"){return now.toISOString()}const relative=RELATIVE_DEADLINE.exec(trimmed);if(relative){const sign=relative[1]==="-"?-1:1;const amount=Number.parseInt(relative[2],10)*sign;const unit=relative[3].toLowerCase();if(unit==="m"){return addUtcMonths(now,amount).toISOString()}const msPerUnit=unit==="h"?60*60*1e3:unit==="d"?24*60*60*1e3:7*24*60*60*1e3;return new Date(now.getTime()+amount*msPerUnit).toISOString()}assertRealCalendarDate(input,trimmed,fieldLabel);const timestamp=parseTimestampWithFallbacks(trimmed);if(!Number.isFinite(timestamp)){const normalizedLabel=fieldLabel.trim().length>0?fieldLabel.trim():"deadline";const guidance=COMPOUND_RELATIVE_DEADLINE.test(trimmed)?"Compound relative expressions like +3d+1h are not supported; use a single relative token (for example +3d) or an ISO/date string.":'Use ISO/date string input, "now", or relative +6h/-6h/+1d/-1d/+2w/-2w/+6m/-6m.';throw new PmCliError(`Invalid ${normalizedLabel} value "${input}". ${guidance}`,EXIT_CODE.USAGE,{field:normalizedLabel,value:input})}return new Date(timestamp).toISOString()}const _testOnly={normalizeOffset,pushTimestampCandidate,normalizeTimestampCandidates,parseTimestampWithFallbacks,isWhitespaceCharacter};export{_testOnly,compareTimestampStrings,isMillisecondPrecisionRfc3339DateTime,isRfc3339DateTime,isTimestampLiteral,matchesTimestampFilters,nowIso,resolveIsoOrRelative};
2
2
  //# sourceMappingURL=time.js.map
@@ -35,7 +35,15 @@ interface SettingsPersistSourceSnapshot {
35
35
  runtime_schema_type_workflows: NonNullable<PmSettings["schema"]["type_workflows"]>;
36
36
  }
37
37
  interface SerializeSettingsOptions {
38
+ /** Ordinary writer snapshot, including file-backed schema boundaries. */
38
39
  persist_source?: SettingsPersistSourceSnapshot;
40
+ /** Paired views of one locked inline source, without schema hydration. */
41
+ source?: {
42
+ /** Parsed original JSON whose sparse omissions and future fields survive known-value edits. */
43
+ raw: unknown;
44
+ /** Validated projection of the same original JSON, used for the canonical delta baseline. */
45
+ validated: ParsedSettings;
46
+ };
39
47
  }
40
48
  /** Documents the settings read metadata payload exchanged by command, SDK, and package integrations. */
41
49
  export interface SettingsReadMetadata {
@@ -89,9 +97,10 @@ declare function valueOrDefault<T>(value: T | undefined, fallback: T): T;
89
97
  declare function arrayOrEmpty<T>(value: unknown): T[];
90
98
  /** Implements normalize item type definitions for the public runtime surface of this module. */
91
99
  export declare function normalizeItemTypeDefinitions(definitions: ItemTypeDefinition[] | undefined): ItemTypeDefinition[];
92
- declare function mergeSettings(settings: ParsedSettings): PmSettings;
100
+ /** Resolve validated inline settings using the shared defaults and preset rules, without filesystem reads or schema hydration. */
101
+ export declare function mergeSettings(settings: ParsedSettings): PmSettings;
93
102
  declare function applySettingsDelta(target: Record<string, unknown>, baseline: Record<string, unknown>, current: Record<string, unknown>): void;
94
- /** Implements serialize settings for the public runtime surface of this module. */
103
+ /** Canonicalize settings, optionally applying only known-value changes to a captured sparse source. */
95
104
  export declare function serializeSettings(settings: PmSettings, options?: SerializeSettingsOptions): string;
96
105
  /** Implements read settings with metadata for the public runtime surface of this module. */
97
106
  export declare function readSettingsWithMetadata(pmRoot: string): Promise<SettingsReadResult>;