@unbrained/pm-cli 2026.8.19 → 2026.8.20

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 (146) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +19 -0
  3. package/dist/cli/register-list-query.js +12 -10
  4. package/dist/cli/register-structured-mutation.d.ts +2 -0
  5. package/dist/cli/register-structured-mutation.js +29 -6
  6. package/dist/cli-bundle/bundle-manifest.json +151 -143
  7. package/dist/cli-bundle/chunks/{chunk-4THEB6PD.js → chunk-2RDVGYWE.js} +12 -12
  8. package/dist/cli-bundle/chunks/{chunk-BHYMXLAE.js → chunk-4GB2LTOQ.js} +2 -2
  9. package/dist/cli-bundle/chunks/{chunk-TOXJM4WA.js → chunk-7BRF2BX2.js} +2 -2
  10. package/dist/cli-bundle/chunks/chunk-BLVQHFSY.js +35 -0
  11. package/dist/cli-bundle/chunks/chunk-CU25EQVV.js +5 -0
  12. package/dist/cli-bundle/chunks/{chunk-4NRRH7AM.js → chunk-K3EN3LK2.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-OIOKV6NO.js → chunk-L4LGPBJU.js} +49 -49
  14. package/dist/cli-bundle/chunks/chunk-RS3IV2R6.js +197 -0
  15. package/dist/cli-bundle/chunks/chunk-TSMWLCHS.js +3 -0
  16. package/dist/cli-bundle/chunks/chunk-US2ZQW2M.js +77 -0
  17. package/dist/cli-bundle/chunks/{chunk-QXSH7BLM.js → chunk-XYDDWBZN.js} +2 -2
  18. package/dist/cli-bundle/chunks/register-list-query-JSAQCVOC.js +11 -0
  19. package/dist/cli-bundle/chunks/{register-mutation-AUWVCW4M.js → register-mutation-XJPAW63D.js} +20 -20
  20. package/dist/cli-bundle/chunks/{register-operations-PZQPHXW5.js → register-operations-DSOSB2XQ.js} +2 -2
  21. package/dist/cli-bundle/chunks/{register-setup-I4LUHGVW.js → register-setup-QUR6QL2C.js} +2 -2
  22. package/dist/cli-bundle/focused-chunks/{chunk-DKPLYW3L.js → chunk-325UXIO7.js} +2 -2
  23. package/dist/cli-bundle/focused-chunks/chunk-5L7M4AI7.js +2 -0
  24. package/dist/cli-bundle/focused-chunks/{chunk-EF6ZS5GH.js → chunk-6AHG2YW7.js} +2 -2
  25. package/dist/cli-bundle/focused-chunks/{chunk-MCZXYZAF.js → chunk-AZBACT5T.js} +2 -2
  26. package/dist/cli-bundle/focused-chunks/{chunk-VXDSU5MC.js → chunk-BLJCGGID.js} +2 -2
  27. package/dist/cli-bundle/focused-chunks/chunk-FUREQLQN.js +18 -0
  28. package/dist/cli-bundle/focused-chunks/{chunk-US7VEYZG.js → chunk-G3C5ERXG.js} +2 -2
  29. package/dist/cli-bundle/focused-chunks/{chunk-ZBIQQYMI.js → chunk-GXWQBE3T.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/{chunk-JDOMQ7VQ.js → chunk-JWKEDZJI.js} +3 -3
  31. package/dist/cli-bundle/focused-chunks/chunk-KYZ6JGPL.js +155 -0
  32. package/dist/cli-bundle/focused-chunks/{chunk-ESISGDAY.js → chunk-M32HFIQB.js} +2 -2
  33. package/dist/cli-bundle/focused-chunks/{chunk-EXBCLIBU.js → chunk-OM65KHGF.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/chunk-Q47EX4DI.js +2 -0
  35. package/dist/cli-bundle/focused-chunks/{chunk-BJRYFVSH.js → chunk-RIHDMCUM.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/chunk-T4ZFY7ZJ.js +16 -0
  37. package/dist/cli-bundle/focused-chunks/chunk-TDR5OGG3.js +2 -0
  38. package/dist/cli-bundle/focused-chunks/{chunk-ODHQEECS.js → chunk-UGSS4F5X.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/chunk-Z3PLWSGM.js +2 -0
  40. package/dist/cli-bundle/main.js +2 -2
  41. package/dist/cli-bundle/sdk-authoring.js +1 -1
  42. package/dist/cli-bundle/sdk-contracts.js +2 -2
  43. package/dist/cli-bundle/sdk-core.js +41 -41
  44. package/dist/cli-bundle/sdk-governance.js +1 -1
  45. package/dist/cli-bundle/sdk-graph.js +1 -1
  46. package/dist/cli-bundle/sdk-merge.js +31 -31
  47. package/dist/cli-bundle/sdk-query.js +1 -1
  48. package/dist/cli-bundle/sdk-runtime.js +1 -1
  49. package/dist/cli-bundle/sdk-testing.js +1 -1
  50. package/dist/cli-bundle/sdk.js +5 -5
  51. package/dist/core/output/mutation-projection.js +26 -2
  52. package/dist/core/shared/constants.d.ts +1 -5
  53. package/dist/core/shared/constants.js +3 -81
  54. package/dist/core/shared/item-metadata-contract.d.ts +14 -0
  55. package/dist/core/shared/item-metadata-contract.js +90 -0
  56. package/dist/core/store/item-store.d.ts +60 -0
  57. package/dist/core/store/item-store.js +22 -5
  58. package/dist/sdk/agent/closed-domain-contracts.d.ts +25 -0
  59. package/dist/sdk/agent/closed-domain-contracts.js +140 -0
  60. package/dist/sdk/agent/refusal-closure.d.ts +13 -1
  61. package/dist/sdk/agent/refusal-closure.js +45 -3
  62. package/dist/sdk/agent/refusal-reachability.d.ts +26 -0
  63. package/dist/sdk/agent/refusal-reachability.js +26 -2
  64. package/dist/sdk/agent-capability-contracts.js +6 -11
  65. package/dist/sdk/cli-contracts/completeness.js +8 -2
  66. package/dist/sdk/cli-contracts/enum-contracts.d.ts +4 -2
  67. package/dist/sdk/cli-contracts/enum-contracts.js +16 -6
  68. package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
  69. package/dist/sdk/cli-contracts/flag-contracts.js +11 -2
  70. package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +19 -2
  71. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +105 -5
  72. package/dist/sdk/cli-contracts/grammar-contracts.d.ts +2 -2
  73. package/dist/sdk/cli-contracts/grammar-contracts.js +5 -2
  74. package/dist/sdk/cli-contracts/runtime-contracts.js +7 -3
  75. package/dist/sdk/cli-contracts/tool-schema.js +7 -2
  76. package/dist/sdk/cli-contracts.d.ts +2 -2
  77. package/dist/sdk/cli-contracts.js +4 -4
  78. package/dist/sdk/contracts.d.ts +1 -0
  79. package/dist/sdk/contracts.js +3 -2
  80. package/dist/sdk/core.d.ts +1 -1
  81. package/dist/sdk/core.js +3 -3
  82. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +74 -2
  83. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +112 -40
  84. package/dist/sdk/index.d.ts +5 -3
  85. package/dist/sdk/index.js +6 -4
  86. package/dist/sdk/init-agent-guidance.d.ts +5 -3
  87. package/dist/sdk/init-agent-guidance.js +69 -9
  88. package/dist/sdk/lifecycle/mcp-actions.d.ts +18 -0
  89. package/dist/sdk/lifecycle/mcp-actions.js +52 -0
  90. package/dist/sdk/lifecycle/reopen.d.ts +44 -0
  91. package/dist/sdk/lifecycle/reopen.js +69 -0
  92. package/dist/sdk/lifecycle/update.d.ts +31 -0
  93. package/dist/sdk/lifecycle/update.js +95 -13
  94. package/dist/sdk/query/get.d.ts +1 -1
  95. package/dist/sdk/query/get.js +18 -52
  96. package/dist/sdk/query/list.d.ts +7 -21
  97. package/dist/sdk/query/list.js +35 -49
  98. package/dist/sdk/query/projection-contracts.d.ts +33 -0
  99. package/dist/sdk/query/projection-contracts.js +185 -0
  100. package/dist/sdk/query/search-contracts.d.ts +2 -1
  101. package/dist/sdk/query/search-contracts.js +18 -87
  102. package/dist/sdk/query/search.d.ts +15 -0
  103. package/dist/sdk/query/search.js +31 -5
  104. package/dist/sdk/runtime-primitives.d.ts +1 -1
  105. package/dist/sdk/runtime-primitives.js +3 -3
  106. package/dist/sdk/runtime.d.ts +6 -0
  107. package/dist/sdk/runtime.js +18 -14
  108. package/dist/sdk/similarity.d.ts +13 -0
  109. package/dist/sdk/similarity.js +32 -6
  110. package/docs/COMMANDS.md +13 -1
  111. package/docs/README.md +1 -0
  112. package/docs/RECURRENCE_RECOVERY_CONTRACTS.md +114 -0
  113. package/docs/SDK.md +10 -2
  114. package/docs/SDK_CONTEXT_INTEGRITY.md +45 -0
  115. package/docs/generated/AGENT_COMMAND_SURFACE.md +1 -1
  116. package/docs/performance/sdk-entrypoint-import-costs.md +14 -21
  117. package/marketplace.json +2 -2
  118. package/package.json +5 -5
  119. package/packages/pm-beads/package.json +1 -1
  120. package/packages/pm-calendar/package.json +1 -1
  121. package/packages/pm-command-kit/package.json +1 -1
  122. package/packages/pm-digital-twin/package.json +1 -1
  123. package/packages/pm-governance-audit/package.json +1 -1
  124. package/packages/pm-guide-shell/package.json +1 -1
  125. package/packages/pm-kanban/package.json +1 -1
  126. package/packages/pm-lifecycle-hooks/package.json +1 -1
  127. package/packages/pm-linked-test-adapters/package.json +1 -1
  128. package/packages/pm-search-advanced/package.json +1 -1
  129. package/packages/pm-templates/package.json +1 -1
  130. package/packages/pm-todos/package.json +1 -1
  131. package/packages/pm-vcs/package.json +1 -1
  132. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  133. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  134. package/sdk/public-surface.json +387 -25
  135. package/dist/cli-bundle/chunks/chunk-GWMXAQOD.js +0 -197
  136. package/dist/cli-bundle/chunks/chunk-HVFQTLYM.js +0 -35
  137. package/dist/cli-bundle/chunks/chunk-OI4XI562.js +0 -5
  138. package/dist/cli-bundle/chunks/chunk-SARFF5H5.js +0 -3
  139. package/dist/cli-bundle/chunks/chunk-YBMRWW4E.js +0 -77
  140. package/dist/cli-bundle/chunks/register-list-query-Y56KINDU.js +0 -11
  141. package/dist/cli-bundle/focused-chunks/chunk-34QBIYZI.js +0 -155
  142. package/dist/cli-bundle/focused-chunks/chunk-L623ZPNK.js +0 -2
  143. package/dist/cli-bundle/focused-chunks/chunk-PRHY2IMX.js +0 -18
  144. package/dist/cli-bundle/focused-chunks/chunk-RZU5U6Q7.js +0 -2
  145. package/dist/cli-bundle/focused-chunks/chunk-YBMGXBFV.js +0 -16
  146. package/dist/cli-bundle/focused-chunks/chunk-YLVBJ6GF.js +0 -2
@@ -1,3 +1,3 @@
1
- import{a as tn,b as nn,c as an,d as cn,e as dn,f as sn,g as ln,h as rn,i as xn,j as Cn,k as $n,l as kn,m as Mn,n as Fn,o as p,p as vn,q as g,t as In,u as On,v as jn,w as Dn,x as An,y as Pn}from"./focused-chunks/chunk-YLVBJ6GF.js";import{a as Jt,b as Qt,c as Vt,d as Wt,e as Zt,f as en,g as on}from"./focused-chunks/chunk-DKPLYW3L.js";import{A as ft,B as St,C as Bt,D as Lt,E as Gt,F as Nt,H as Ut,I as Kt,J as Rt,K as Xt,L as qt,M as Yt,N as Ht,a as x,b as C,c as $,d as k,e as M,f as F,g as v,h as T,i as I,j as Ho,k as Jo,l as Qo,m as Vo,n as Wo,o as Zo,p as et,q as ot,r as tt,s as nt,t as at,u as ct,v as dt,w as st,x as it,y as lt,z as rt}from"./focused-chunks/chunk-MCZXYZAF.js";import{$ as Te,$a as Mo,A as oe,Aa as oo,B as te,Ba as to,C as ne,Ca as no,D as ae,Da as ao,E as ce,Ea as co,F as de,Fa as so,G as se,Ga as io,H as ie,Ha as lo,I as le,Ia as ro,J as re,Ja as fo,K as fe,Ka as mo,L as me,La as uo,M as ue,Ma as po,N as pe,Na as go,O as ge,Oa as _o,P as _e,Pa as bo,Q as be,Qa as yo,R as ye,Ra as ho,S as he,Sa as wo,T as we,Ta as xo,U as xe,Ua as Co,V as Ce,Va as $o,W as $e,X as ke,Xa as ko,Y as Me,Z as Fe,Za as m,_ as ve,_a as u,aa as Ie,b as O,ba as Oe,c as j,ca as je,d as D,da as De,e as A,ea as Ae,f as P,fa as Pe,g as z,ga as ze,h as E,ha as Ee,i as S,ia as Se,j as B,ja as Be,k as L,ka as Le,l as G,la as Ge,m as N,ma as Ne,n as U,na as Ue,o as K,oa as Ke,p as R,pa as Re,q as X,qa as Xe,r as q,ra as qe,s as Y,sa as Ye,t as H,ta as He,u as J,ua as Je,v as Q,va as Qe,w as V,wa as Ve,x as W,xa as We,y as Z,ya as Ze,z as ee,za as eo}from"./focused-chunks/chunk-L623ZPNK.js";import{g as fn,h as mn,i as un,j as pn,k as gn,l as _n,m as bn,n as yn,o as hn,p as wn,q as Tn}from"./focused-chunks/chunk-ODHQEECS.js";import{$a as kt,Aa as Yo,Ga as mt,Ha as ut,Ia as pt,Ja as gt,Ka as _t,La as bt,Ma as yt,Na as ht,Oa as wt,Pa as xt,Y as r,Za as Ct,_a as $t,ab as Mt,bb as Ft,cb as vt,db as Tt,ea as Fo,eb as It,fa as vo,fb as Ot,ga as To,gb as jt,ha as Io,hb as Dt,ia as Oo,ib as At,ja as jo,jb as Pt,ka as Do,kb as zt,la as Ao,lb as Et,ma as Po,na as zo,oa as Eo,qa as So,ra as Bo,sa as Lo,ta as Go,ua as No,va as Uo,wa as Ko,xa as Ro,ya as Xo,za as qo}from"./focused-chunks/chunk-RZU5U6Q7.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]="19215662-5a8c-5b91-bc97-8dbdc1daff02")}catch{}})();var i;function f(){if(i!==void 0)return i;let t=g.filter(({command:o})=>m(o)).flatMap(({command:o,family:a})=>p(o,u(o)).map(s=>({command:o,family:a,concept:s.flag.slice(2),flag:s.flag,aliases:Object.freeze([...s.aliases??[]]),value_kind:s.repeatable?"list":s.value_type}))),c=new Set(t.flatMap(o=>o.aliases.map(a=>`${o.command}:${a}`))),d=t.filter(o=>!c.has(`${o.command}:${o.flag}`)),n=new Map;for(let o of d){let a=n.get(o.concept)??new Set;a.add(o.value_kind),n.set(o.concept,a)}return i=Object.freeze(d.map(o=>Object.freeze({...o,concept:n.get(o.concept)?.size===1?o.concept:`${o.concept}@${o.command}`}))),i}var _=Object.freeze({init:30,config:35,extension:53,package:54,packages:54,install:26,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":85,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:37,context:45,ctx:45,get:30,graph:34,search:78,duplicates:24,eval:25,next:35,history:35,events:33,"history-redact":27,"history-repair":26,"history-compact":30,"history-author-acknowledge":28,merge:24,schema:40,profile:22,activity:35,restore:23,update:105,"update-many":140,close:31,"close-many":72,delete:24,append:24,comments:30,notes:34,learnings:26,files:39,docs:30,deps:32,plan:109,test:48,"test-all":37,telemetry:21,stats:29,health:36,validate:45,assurance:30,gc:22,workspace:23,contracts:29,claim:36,release:23,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":25});function b(){let e=new Map(Object.keys(_).map(t=>[t,0]));for(let{command:t}of f())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(_).map(([t,c])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:c})))}function y(e,t,c){for(let d of e)for(let n of d.aliases){let o=t.get(`${d.command}:${n}`);o===void 0||o.flag===d.flag||c.push({code:"alias_collision",command:d.command,detail:`${n} aliases ${d.flag} but is canonical for ${o.flag}.`})}}function h(e,t,c){let d=new Set(t.map(({command:n})=>n));for(let n of e.keys())d.has(n)||c.push({code:"missing_budget",command:n,detail:`${n} has canonical flags but no persisted budget.`});for(let n of t){let o=e.get(n.command)??0;o===0&&c.push({code:"stale_budget",command:n.command,detail:`${n.command} has a persisted budget but no canonical flags.`}),!(o<=n.maximum)&&c.push({code:"budget_exceeded",command:n.command,detail:`${o} canonical flags exceed the ratcheted maximum ${n.maximum}.`})}}function Bn(e=f(),t=b()){let c=[],d=new Map,n=new Map,o=new Map;for(let a of e){let s=`${a.command}:${a.flag}`;d.has(s)?c.push({code:"duplicate_canonical_flag",command:a.command,detail:`${a.flag} has more than one canonical row.`}):d.set(s,a),o.set(a.command,(o.get(a.command)??0)+1);let l=n.get(a.concept);l!==void 0&&l!==a.value_kind?c.push({code:"inconsistent_concept_kind",command:a.command,detail:`${a.concept} uses both ${l} and ${a.value_kind}.`}):n.set(a.concept,a.value_kind)}return y(e,d,c),h(o,t,c),c.sort((a,s)=>a.command.localeCompare(s.command)||a.code.localeCompare(s.code)||a.detail.localeCompare(s.detail)),{ok:c.length===0,entry_count:e.length,budget_count:t.length,findings:c}}function Ln(){let e=f(),t=b(),c=new Map(t.map(({command:n})=>[n,"unknown"]));for(let{command:n,family:o}of e)c.set(n,o);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...t.map(({command:n,current:o,maximum:a})=>{let s=c.get(n);return`| \`${n}\` | ${s} | ${o} | ${a} |`}),""].join(`
2
- `)}(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]="65cfaa41-6f53-5339-8b55-c1a4d3660c5d")}catch{}})();function w(e){return[e.exit_code!==r.USAGE?{code:"non_refusal_exit",probe_id:e.probe_id,detail:`${e.entrypoint} returned exit code ${e.exit_code}; a structured usage refusal must return ${r.USAGE}.`}:void 0,e.allowed_values.length===0?{code:"missing_allowed_values",probe_id:e.probe_id,detail:"The refusal omitted its complete accepted value domain."}:void 0,e.allowed_values.includes(e.rejected_value)?{code:"accepted_rejected_value",probe_id:e.probe_id,detail:`${e.rejected_value} is both rejected and advertised as allowed.`}:void 0,e.suggested_retry.trim().length===0?{code:"missing_suggested_retry",probe_id:e.probe_id,detail:"The refusal omitted an executable suggested retry."}:void 0,e.retry_succeeded?void 0:{code:"retry_failed",probe_id:e.probe_id,detail:"The advertised suggested retry did not succeed."}]}function Un(e){let t=[],c=new Set,d=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let n of e){if(c.has(n.probe_id)){t.push({code:"duplicate_probe",probe_id:n.probe_id,detail:`${n.probe_id} was supplied more than once.`});continue}c.add(n.probe_id);let o=t.length;for(let a of w(n))a!==void 0&&t.push(a);t.length===o&&(d+=1)}return t.sort((n,o)=>n.probe_id!==o.probe_id?n.probe_id.localeCompare(o.probe_id):n.code.localeCompare(o.code)),{ok:t.length===0,probe_count:c.size,closed_probe_count:d,closure_fraction:c.size===0?0:d/c.size,findings: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]="c3e3b1f2-1898-5773-8b3f-55fa39f6c4e7")}catch{}})();export{F as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,fo as ACTIVITY_FLAG_CONTRACTS,J as AGGREGATE_FLAG_CONTRACTS,ze as APPEND_FLAG_CONTRACTS,oo as ASSURANCE_FLAG_CONTRACTS,$ as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,ro as CALENDAR_FLAG_CONTRACTS,Ee as CLAIM_FLAG_CONTRACTS,Gt as CLOSE_ACTION_OPTION_KEYS,Ae as CLOSE_FLAG_CONTRACTS,Pe as CLOSE_MANY_FLAG_CONTRACTS,Ue as CLOSE_TASK_FLAG_CONTRACTS,Q as COMMENTS_FLAG_CONTRACTS,$o as COMPLETION_FLAG_CONTRACTS,fe as CONFIG_FLAG_CONTRACTS,k as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,uo as CONTEXT_FLAG_CONTRACTS,Co as CONTRACTS_FLAG_CONTRACTS,co as COPY_FLAG_CONTRACTS,Jt as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Vt as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Qt as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,to as CREATE_FLAG_CONTRACTS,Be as DELETE_FLAG_CONTRACTS,_o as DEPS_FLAG_CONTRACTS,ee as DOCS_FLAG_CONTRACTS,We as DUPLICATES_FLAG_CONTRACTS,yo as EVAL_FLAG_CONTRACTS,mo as EVENTS_FLAG_CONTRACTS,Re as EVENT_FLAG_CONTRACTS,vo as EXECUTABLE_COMMAND_ALIASES,Ce as EXTENSION_ACTIVATE_FLAG_CONTRACTS,xe as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Ie as EXTENSION_ADOPT_FLAG_CONTRACTS,Te as EXTENSION_CATALOG_FLAG_CONTRACTS,$e as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,we as EXTENSION_DESCRIBE_FLAG_CONTRACTS,ve as EXTENSION_DOCTOR_FLAG_CONTRACTS,he as EXTENSION_EXPLORE_FLAG_CONTRACTS,me as EXTENSION_FLAG_CONTRACTS,pe as EXTENSION_INIT_FLAG_CONTRACTS,be as EXTENSION_INSTALL_FLAG_CONTRACTS,Me as EXTENSION_MANAGE_FLAG_CONTRACTS,ke as EXTENSION_MIGRATE_FLAG_CONTRACTS,Fe as EXTENSION_RELOAD_FLAG_CONTRACTS,ue as EXTENSION_SCOPE_FLAG_CONTRACTS,ye as EXTENSION_UNINSTALL_FLAG_CONTRACTS,Z as FILES_FLAG_CONTRACTS,so as FOCUS_FLAG_CONTRACTS,Qe as GC_FLAG_CONTRACTS,po as GET_FLAG_CONTRACTS,Y as GLOBAL_FLAG_CONTRACTS,bo as GRAPH_FLAG_CONTRACTS,go as GUIDE_FLAG_CONTRACTS,Ze as HEALTH_FLAG_CONTRACTS,ce as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,de as HISTORY_COMPACT_FLAG_CONTRACTS,oe as HISTORY_FLAG_CONTRACTS,ne as HISTORY_REDACT_FLAG_CONTRACTS,ae as HISTORY_REPAIR_FLAG_CONTRACTS,re as INIT_FLAG_CONTRACTS,Oe as INSTALL_FLAG_CONTRACTS,ao as ITEM_COMPLETE_FLAG_CONTRACTS,no as ITEM_MUTATE_FLAG_CONTRACTS,W as LEARNINGS_FLAG_CONTRACTS,x as LIST_COMMANDER_STRING_OPTION_CONTRACTS,H as LIST_FILTER_FLAG_CONTRACTS,Ke as MEET_FLAG_CONTRACTS,te as MERGE_FLAG_CONTRACTS,M as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,wo as NEXT_FLAG_CONTRACTS,V as NOTES_FLAG_CONTRACTS,ge as PACKAGE_FLAG_CONTRACTS,_e as PACKAGE_INIT_FLAG_CONTRACTS,Ne as PAUSE_TASK_FLAG_CONTRACTS,Lt as PLAN_CREATE_METADATA_PARAMETER_KEYS,le as PLAN_FLAG_CONTRACTS,B as PM_CLI_GRAMMAR_CONTRACT,O as PM_CLI_GRAMMAR_NOUNS,Bo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,j as PM_CLI_SHARED_VERBS,Fo as PM_COMMAND_ALIAS_CONTRACTS,E as PM_COMMAND_DESTINATION_CONTRACTS,nn as PM_COMMAND_EXIT_CONTRACTS,tn as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,bt as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,jn as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,S as PM_COMMAND_POSITIONAL_CONTRACTS,fn as PM_CONTEXT_INTENT_CONTRACTS,Eo as PM_CORE_COMMAND_NAMES,Go as PM_DEPRECATED_TOOL_ACTIONS,No as PM_DISCOVERABLE_TOOL_ACTIONS,Mn as PM_ERROR_CODE_CATALOG,xn as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Oo as PM_EXTENSION_CAPABILITY_CONTRACTS,So as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Do as PM_EXTENSION_POLICY_MODE_CONTRACTS,zo as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Po as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,jo as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Ao as PM_EXTENSION_TRUST_MODE_CONTRACTS,ut as PM_OUTPUT_BUDGET_CLASSES,mt as PM_OUTPUT_DEGRADATION_STEPS,In as PM_OUTPUT_ENVELOPE_KINDS,D as PM_POSITIONAL_ACTION_CONTRACTS,Yt as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Xt as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Mt as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Ct as PM_READ_OUTPUT_DIMENSIONS,kt as PM_READ_OUTPUT_OPTION_FLAGS,$t as PM_READ_OUTPUT_SURFACES,Ft as PM_READ_OUTPUT_SURFACE_CONTRACTS,an as PM_SUCCESS_EXIT_CODES,Lo as PM_TOOL_ACTIONS,Nt as PM_TOOL_ACTION_PARAMETER_CONTRACTS,qt as PM_TOOL_PARAMETERS_SCHEMA,Rt as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Kt as PM_TOOL_PARAMETERS_SCHEMA_VERSION,St as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,ie as PROFILE_FLAG_CONTRACTS,De as REINDEX_FLAG_CONTRACTS,Le as RELEASE_FLAG_CONTRACTS,Xe as REMIND_FLAG_CONTRACTS,Se as RESTORE_FLAG_CONTRACTS,se as SCHEMA_FLAG_CONTRACTS,C as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,xo as SEARCH_FLAG_CONTRACTS,Ge as START_TASK_FLAG_CONTRACTS,Ve as STATS_FLAG_CONTRACTS,q as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,He as TELEMETRY_FLAG_CONTRACTS,Ye as TEST_ALL_FLAG_CONTRACTS,qe as TEST_FLAG_CONTRACTS,Je as TEST_RUNS_FLAG_CONTRACTS,it as TOOL_ACTIVITY_OPTION_CONTRACTS,Qo as TOOL_AGGREGATE_OPTION_CONTRACTS,at as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,st as TOOL_CALENDAR_OPTION_CONTRACTS,dt as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,lt as TOOL_CONTEXT_OPTION_CONTRACTS,ot as TOOL_CREATE_OPTION_CONTRACTS,et as TOOL_CREATE_OPTION_CONTRACT_SOURCE,rt as TOOL_DEPS_OPTION_CONTRACTS,ft as TOOL_GRAPH_OPTION_CONTRACTS,Jo as TOOL_LIST_FILTER_OPTION_CONTRACTS,Vo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,Zo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,Wo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,ct as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,nt as TOOL_UPDATE_OPTION_CONTRACTS,tt as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Wt as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,en as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Zt as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,io as UPDATE_FLAG_CONTRACTS,lo as UPDATE_MANY_FLAG_CONTRACTS,je as UPGRADE_FLAG_CONTRACTS,eo as VALIDATE_FLAG_CONTRACTS,ho as WORKSPACE_FLAG_CONTRACTS,Ht as _testOnlyCliContracts,ln as analyzePmCommandExitConformance,Uo as analyzePmToolActionParity,on as analyzeSdkCliParameterCompleteness,_n as applyContextIntentProjection,Pt as applyReadOutputDimensions,Ot as applyReadOutputIncludeModes,hn as attachContextIntentReceipt,Tn as attachOutputTokenAccounting,wn as attachReadOutputContracts,Ut as buildPmActionToolInputSchema,X as compactFlagAliasContracts,pn as composeContextIntentContracts,yn as contextIntentRowId,gt as createPmCommandOutputBudget,bn as decodeContextIntentCursor,xt as decodeReadOutputContinuationCursor,_t as definePmCommandOutputBudget,On as definePmCommandOutputEnvelope,Cn as definePmErrorCodeCatalog,rn as derivePmBulkMutationEffect,wt as encodeReadOutputContinuationCursor,Fn as enrichCliFlagInvocationContract,p as enrichCliFlagInvocationContracts,ht as estimatePmOutputTokens,z as formatPmPositionalActionFlagTip,mn as getActiveContextIntentContracts,m as hasSubcommandFlagContractsForCommand,pt as inferPmOutputBudgetClass,Ro as isPmExtensionCapabilityContract,qo as isPmExtensionPolicyModeContract,Yo as isPmExtensionPolicySurfaceContract,Xo as isPmExtensionServiceNameContract,dn as isPmKnownExitCode,An as isPmMutationReceipt,cn as isPmSuccessfulExitCode,Ko as isPmToolAction,zt as isReadOutputBudgetExceeded,b as listPmCommandFlagBudgets,f as listPmFlagLexicon,jt as normalizeReadOutputIncludeModeOptions,Pn as parseMutationReceipt,G as positionalShapeKey,N as positionalSignatureKey,v as readFirstStringFromCommanderOptions,T as readFirstValueFromCommanderOptions,It as readOutputIncludeModeOptions,I as readStringArrayFromCommanderOptions,Io as renderPmCommandAliasMigrationHint,Ln as renderPmFlagLexiconMarkdown,$n as resolveCanonicalPmErrorCodeContract,gn as resolveContextIntentContract,To as resolvePmCommandAlias,sn as resolvePmCommandExitContract,yt as resolvePmCommandOutputBudget,Dn as resolvePmCommandOutputEnvelope,A as resolvePmCommandPositionalContract,kn as resolvePmErrorCodeContract,P as resolvePmPositionalActionContract,ko as resolvePmPositionalActionFlagContracts,Bt as resolvePmToolCustomFieldCollision,Dt as resolveReadOutputDimensions,Et as resolveReadOutputEncoding,vt as resolveReadOutputSurface,u as resolveSubcommandFlagContractsForCommand,un as runWithContextIntentContracts,Un as scorePmRefusalClosure,At as stabilizeReadOutputReceiptEstimates,Mo as toCompletionFlagString,Tt as validateReadOutputOptions,vn as verifyCliFlagInvocationParity,L as verifyExplicitPositionalSlotCensus,K as verifyPmCliGrammar,U as verifyPmCommandPositionalContracts,Bn as verifyPmFlagLexicon,Ho as verifyToolOptionCliParity,R as withFlagAliasMetadata};
1
+ import{a as wn,b as xn,c as jn,d as Cn,e as vn,f as $n,g as kn,h as Tn,i as An,j as zn,k as Ln,l as qn,m as Bn,n as Jn,o as h,p as Rn,q as w,t as Un,u as Kn,v as Xn,w as Yn,x as Hn,y as Vn}from"./focused-chunks/chunk-Z3PLWSGM.js";import{a as pn,b as mn,c as gn,d as _n,e as yn,f as bn,g as hn}from"./focused-chunks/chunk-325UXIO7.js";import{A as Oo,B as en,C as tn,D as on,E as nn,F as an,H as rn,I as sn,J as dn,K as ln,L as cn,M as un,N as fn,a as P,b as A,c as z,d as L,e as q,f as B,g as J,h as R,i as G,j as uo,k as fo,l as po,m as mo,n as go,o as _o,p as yo,q as bo,r as ho,s as wo,t as xo,u as jo,v as Co,w as vo,x as $o,y as ko,z as To}from"./focused-chunks/chunk-AZBACT5T.js";import{c as x,d as j,f as C,h as v}from"./focused-chunks/chunk-5L7M4AI7.js";import{$ as Re,$a as b,A as _e,Aa as _t,B as ye,Ba as yt,C as be,Ca as bt,D as he,Da as ht,E as we,Ea as wt,F as xe,Fa as xt,G as je,Ga as jt,H as Ce,Ha as Ct,I as ve,Ia as vt,J as $e,Ja as $t,K as ke,Ka as kt,L as Te,La as Tt,M as Oe,Ma as Ot,N as De,Na as Dt,O as Se,Oa as St,P as Fe,Pa as Ft,Q as Ee,Qa as Et,R as Me,Ra as Mt,S as Ie,Sa as It,T as Ne,Ta as Nt,U as Pe,Ua as Pt,V as Ae,Va as At,W as ze,Wa as zt,X as Le,Y as qe,Ya as Lt,Z as Be,_ as Je,_a as y,aa as Ge,ab as qt,b as U,ba as Ue,c as K,ca as Ke,d as X,da as Xe,e as Y,ea as Ye,f as H,fa as He,g as V,ga as Ve,h as W,ha as We,i as Q,ia as Qe,j as Z,ja as Ze,k as ee,ka as et,l as te,la as tt,m as oe,ma as ot,n as ne,na as nt,o as ie,oa as it,p as ae,pa as at,q as re,qa as rt,r as se,ra as st,s as de,sa as dt,t as le,ta as lt,u as ce,ua as ct,v as ue,va as ut,w as fe,wa as ft,x as pe,xa as pt,y as me,ya as mt,z as ge,za as gt}from"./focused-chunks/chunk-TDR5OGG3.js";import{g as _,h as On,i as Dn,j as Sn,k as Fn,l as En,m as Mn,n as In,o as Nn,p as Pn,q as Gn}from"./focused-chunks/chunk-UGSS4F5X.js";import{$a as qo,Aa as lo,Ba as co,Ha as Do,Ia as So,Ja as Fo,Ka as Eo,La as Mo,Ma as Io,Na as No,Oa as Po,Pa as Ao,Qa as zo,Y as g,_a as Lo,ab as Bo,bb as Jo,cb as Ro,db as Go,ea as Bt,eb as Uo,fa as Jt,fb as Ko,ga as Rt,gb as Xo,ha as Gt,hb as Yo,ia as Ut,ib as Ho,ja as Kt,jb as Vo,ka as Xt,kb as Wo,la as Yt,lb as Qo,ma as Ht,mb as Zo,na as Vt,oa as Wt,qa as Qt,ra as Zt,sa as eo,ta as to,ua as oo,va as no,wa as io,xa as ao,ya as ro,za as so}from"./focused-chunks/chunk-Q47EX4DI.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]="6ba3d756-dcd6-59b7-92fe-ec33d294d72b")}catch{}})();var u,O=Object.freeze({list:"list-item-projection","list-all":"list-item-projection","list-draft":"list-item-projection","list-open":"list-item-projection","list-in-progress":"list-item-projection","list-blocked":"list-item-projection","list-closed":"list-item-projection","list-canceled":"list-item-projection",get:"get-item-projection",graph:"graph-detail-projection",search:"search-result-projection",history:"history-entry-projection",events:"mutation-event-projection",activity:"activity-entry-projection",deps:"dependency-graph-projection",health:"health-diagnostic-projection",validate:"validation-diagnostic-projection",contracts:"contract-catalog-projection"});function D(e,o){if(o==="--limit")return"result-row-limit";if(o==="--node-limit")return"graph-node-limit";if(o==="--edge-limit")return"graph-edge-limit";if(o==="--output-limit")return"rendered-output-row-limit";if(o==="--output-budget")return"rendered-output-byte-budget";if(o==="--token-budget")return"context-intent-token-budget";if(o==="--full"){let i=O[e];if(i===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return i}return o!=="--file"?o.slice(2):["create","update","update-many"].includes(e)?"linked-file-path":["comments","notes","learnings"].includes(e)?"entry-file-input":"plan-definition-file"}function f(){if(u!==void 0)return u;let o=w.filter(({command:t})=>y(t)).flatMap(({command:t,family:s})=>h(t,b(t)).map(d=>({command:t,family:s,concept:D(t,d.flag),flag:d.flag,aliases:Object.freeze([...d.aliases??[]]),value_kind:d.repeatable?"list":d.flag==="--limit"?"number":d.value_type}))),i=new Set(o.flatMap(t=>t.aliases.map(s=>`${t.command}:${s}`))),r=o.filter(t=>!i.has(`${t.command}:${t.flag}`)),n=new Map;for(let t of r){let s=n.get(t.concept)??new Set;s.add(t.value_kind),n.set(t.concept,s)}return u=Object.freeze(r.map(t=>Object.freeze({...t,concept:n.get(t.concept)?.size===1?t.concept:`${t.concept}@${t.command}`}))),u}function ei(){return Object.freeze(f().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var $=Object.freeze({init:30,config:35,extension:53,package:54,packages:54,install:26,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":85,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:37,context:45,ctx:45,get:30,graph:34,search:78,duplicates:24,eval:25,next:35,history:35,events:33,"history-redact":27,"history-repair":26,"history-compact":30,"history-author-acknowledge":28,merge:24,schema:40,profile:22,activity:35,restore:23,update:105,"update-many":140,close:31,"close-many":72,delete:24,append:24,comments:30,notes:34,learnings:26,files:39,docs:30,deps:32,plan:109,test:48,"test-all":37,telemetry:21,stats:29,health:36,validate:45,assurance:30,gc:22,workspace:23,contracts:29,claim:36,release:23,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":25});function k(){let e=new Map(Object.keys($).map(o=>[o,0]));for(let{command:o}of f())e.set(o,Number(e.get(o))+1);return Object.freeze(Object.entries($).map(([o,i])=>Object.freeze({command:o,current:Number(e.get(o)),maximum:i})))}function S(e,o,i){for(let r of e)for(let n of r.aliases){let t=o.get(`${r.command}:${n}`);t===void 0||t.flag===r.flag||i.push({code:"alias_collision",command:r.command,detail:`${n} aliases ${r.flag} but is canonical for ${t.flag}.`})}}function F(e,o,i){let r=new Set(o.map(({command:n})=>n));for(let n of e.keys())r.has(n)||i.push({code:"missing_budget",command:n,detail:`${n} has canonical flags but no persisted budget.`});for(let n of o){let t=e.get(n.command)??0;t===0&&i.push({code:"stale_budget",command:n.command,detail:`${n.command} has a persisted budget but no canonical flags.`}),!(t<=n.maximum)&&i.push({code:"budget_exceeded",command:n.command,detail:`${t} canonical flags exceed the ratcheted maximum ${n.maximum}.`})}}function E(e,o,i){let r=new Map(e.map(n=>[`${n.command}:${n.flag}`,n]));for(let n of o){let t=`${n.command}:${n.canonical_flag}`,s=r.get(t);if(!s){i.push({code:"removed_canonical_spelling",command:n.command,detail:`${n.canonical_flag} disappeared from the executable spelling inventory.`});continue}let d=new Set([s.flag,...s.aliases]);for(let a of n.accepted_spellings)d.has(a)||i.push({code:"removed_compatibility_spelling",command:n.command,detail:`${a} no longer resolves to ${n.canonical_flag}.`})}}function ti(e=f(),o=k(),i=[]){let r=[],n=new Map,t=new Map,s=new Map,d=new Map;for(let a of e){let l=`${a.command}:${a.flag}`;n.has(l)?r.push({code:"duplicate_canonical_flag",command:a.command,detail:`${a.flag} has more than one canonical row.`}):n.set(l,a),d.set(a.command,(d.get(a.command)??0)+1);let p=t.get(a.concept);p!==void 0&&p!==a.value_kind?r.push({code:"inconsistent_concept_kind",command:a.command,detail:`${a.concept} uses both ${p} and ${a.value_kind}.`}):t.set(a.concept,a.value_kind);let m=s.get(a.concept);m!==void 0&&m!==a.flag?r.push({code:"semantic_spelling_collision",command:a.command,detail:`${a.concept} is canonicalized by both ${m} and ${a.flag}.`}):s.set(a.concept,a.flag)}return S(e,n,r),F(d,o,r),E(e,i,r),r.sort((a,l)=>a.command.localeCompare(l.command)||a.code.localeCompare(l.code)||a.detail.localeCompare(l.detail)),{ok:r.length===0,entry_count:e.length,budget_count:o.length,concept_count:new Set(e.map(({concept:a})=>a)).size,baseline_entry_count:i.length,findings:r}}function oi(){let e=f(),o=k(),i=new Map(o.map(({command:n})=>[n,"unknown"]));for(let{command:n,family:t}of e)i.set(n,t);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...o.map(({command:n,current:t,maximum:s})=>{let d=i.get(n);return`| \`${n}\` | ${d} | ${t} | ${s} |`}),""].join(`
2
+ `)}(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]="0ec8c375-e58e-5ce4-b0aa-8a8a4dfa0778")}catch{}})();function M(e){return[e.expected_error_code!==void 0&&e.error_code!==e.expected_error_code?{code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected error code ${e.expected_error_code}, received ${e.error_code??"<missing>"}.`}:void 0,e.expected_allowed_values!==void 0&&JSON.stringify([...e.allowed_values].sort())!==JSON.stringify([...e.expected_allowed_values].sort())?{code:"incomplete_allowed_values",probe_id:e.probe_id,detail:"The refusal's accepted domain differs from the SDK-owned domain contract."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)===0?{code:"missing_suggested_retry_args",probe_id:e.probe_id,detail:"The refusal omitted shell-free suggested retry arguments."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)>0&&JSON.stringify(e.suggested_retry_args)!==JSON.stringify(e.expected_suggested_retry_args)?{code:"suggested_retry_args_mismatch",probe_id:e.probe_id,detail:"The refusal's suggested retry arguments differ from the SDK-owned contract."}:void 0]}function I(e){return[e.exit_code!==g.USAGE?{code:"non_refusal_exit",probe_id:e.probe_id,detail:`${e.entrypoint} returned exit code ${e.exit_code}; a structured usage refusal must return ${g.USAGE}.`}:void 0,e.allowed_values_required!==!1&&e.allowed_values.length===0?{code:"missing_allowed_values",probe_id:e.probe_id,detail:"The refusal omitted its complete accepted value domain."}:void 0,e.allowed_values.includes(e.rejected_value)?{code:"accepted_rejected_value",probe_id:e.probe_id,detail:`${e.rejected_value} is both rejected and advertised as allowed.`}:void 0,e.suggested_retry.trim().length===0?{code:"missing_suggested_retry",probe_id:e.probe_id,detail:"The refusal omitted an executable suggested retry."}:void 0,e.retry_succeeded?void 0:{code:"retry_failed",probe_id:e.probe_id,detail:"The advertised suggested retry did not succeed."},...M(e)]}function ai(e){let o=[],i=new Set,r=0;e.length===0&&o.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let n of e){if(i.has(n.probe_id)){o.push({code:"duplicate_probe",probe_id:n.probe_id,detail:`${n.probe_id} was supplied more than once.`});continue}i.add(n.probe_id);let t=o.length;for(let s of I(n))s!==void 0&&o.push(s);o.length===t&&(r+=1)}return o.sort((n,t)=>n.probe_id!==t.probe_id?n.probe_id.localeCompare(t.probe_id):n.code.localeCompare(t.code)),{ok:o.length===0,probe_count:i.size,closed_probe_count:r,closure_fraction:i.size===0?0:r/i.size,findings:o}}(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]="35d4f3d7-7ec2-5a8b-bd96-f7e73c658737")}catch{}})();var T="not-a-declared-intent",c="not-a-declared-field";function N(){let e={get:["pm-domain"],search:["Domain query"]},o=[...new Set(_.map(({command:t})=>t))].map(t=>{let s=_.filter(l=>l.command===t),d=s[0],a=e[d.command]??[];return{probe_id:`${d.command}-invalid-intent`,command:d.command,flag:"--for",rejected_value:T,refusal_args:[d.command,...a,"--for",T],allowed_values:s.map(({intent:l})=>l).sort(),suggested_retry_args:[d.command,...a,"--for",d.intent],error_code:"unknown_context_intent"}}),i=j(),r=Object.keys(x).map(t=>({probe_id:`${t}-invalid-field`,command:t,flag:"--fields",rejected_value:c,refusal_args:[t,"--fields",c],allowed_values:i,suggested_retry_args:[t,"--fields","id,title,status","--limit","10"],error_code:"unknown_field_projection"}));return[...o,...r,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:c,refusal_args:["get","pm-domain","--fields",c],allowed_values:C(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:c,refusal_args:["search","Domain query","--fields",c],allowed_values:v(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((t,s)=>t.probe_id.localeCompare(s.probe_id))}function li(e,o){let i=N().find(t=>t.command===e&&t.flag===o);if(!i)return"No stable core values are declared.";let r=i.allowed_values.filter(t=>!t.startsWith("item.")),n=o==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${r.join("|")}.${n}`}(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]="8e9dc315-4c5a-5cb0-befc-e0dbbf7e8571")}catch{}})();export{B as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,kt as ACTIVITY_FLAG_CONTRACTS,ce as AGGREGATE_FLAG_CONTRACTS,Ve as APPEND_FLAG_CONTRACTS,_t as ASSURANCE_FLAG_CONTRACTS,z as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,$t as CALENDAR_FLAG_CONTRACTS,We as CLAIM_FLAG_CONTRACTS,nn as CLOSE_ACTION_OPTION_KEYS,Ye as CLOSE_FLAG_CONTRACTS,He as CLOSE_MANY_FLAG_CONTRACTS,nt as CLOSE_TASK_FLAG_CONTRACTS,ue as COMMENTS_FLAG_CONTRACTS,zt as COMPLETION_FLAG_CONTRACTS,ke as CONFIG_FLAG_CONTRACTS,L as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ot as CONTEXT_FLAG_CONTRACTS,At as CONTRACTS_FLAG_CONTRACTS,xt as COPY_FLAG_CONTRACTS,pn as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,gn as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,mn as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,yt as CREATE_FLAG_CONTRACTS,Ze as DELETE_FLAG_CONTRACTS,Ft as DEPS_FLAG_CONTRACTS,ge as DOCS_FLAG_CONTRACTS,pt as DUPLICATES_FLAG_CONTRACTS,Mt as EVAL_FLAG_CONTRACTS,Tt as EVENTS_FLAG_CONTRACTS,at as EVENT_FLAG_CONTRACTS,Jt as EXECUTABLE_COMMAND_ALIASES,Ae as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Pe as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Ge as EXTENSION_ADOPT_FLAG_CONTRACTS,Re as EXTENSION_CATALOG_FLAG_CONTRACTS,ze as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Ne as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Je as EXTENSION_DOCTOR_FLAG_CONTRACTS,Ie as EXTENSION_EXPLORE_FLAG_CONTRACTS,Te as EXTENSION_FLAG_CONTRACTS,De as EXTENSION_INIT_FLAG_CONTRACTS,Ee as EXTENSION_INSTALL_FLAG_CONTRACTS,qe as EXTENSION_MANAGE_FLAG_CONTRACTS,Le as EXTENSION_MIGRATE_FLAG_CONTRACTS,Be as EXTENSION_RELOAD_FLAG_CONTRACTS,Oe as EXTENSION_SCOPE_FLAG_CONTRACTS,Me as EXTENSION_UNINSTALL_FLAG_CONTRACTS,me as FILES_FLAG_CONTRACTS,jt as FOCUS_FLAG_CONTRACTS,ut as GC_FLAG_CONTRACTS,Dt as GET_FLAG_CONTRACTS,de as GLOBAL_FLAG_CONTRACTS,Et as GRAPH_FLAG_CONTRACTS,St as GUIDE_FLAG_CONTRACTS,mt as HEALTH_FLAG_CONTRACTS,we as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,xe as HISTORY_COMPACT_FLAG_CONTRACTS,_e as HISTORY_FLAG_CONTRACTS,be as HISTORY_REDACT_FLAG_CONTRACTS,he as HISTORY_REPAIR_FLAG_CONTRACTS,$e as INIT_FLAG_CONTRACTS,Ue as INSTALL_FLAG_CONTRACTS,ht as ITEM_COMPLETE_FLAG_CONTRACTS,bt as ITEM_MUTATE_FLAG_CONTRACTS,wt as ITEM_REOPEN_FLAG_CONTRACTS,pe as LEARNINGS_FLAG_CONTRACTS,P as LIST_COMMANDER_STRING_OPTION_CONTRACTS,le as LIST_FILTER_FLAG_CONTRACTS,it as MEET_FLAG_CONTRACTS,ye as MERGE_FLAG_CONTRACTS,q as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Nt as NEXT_FLAG_CONTRACTS,fe as NOTES_FLAG_CONTRACTS,Se as PACKAGE_FLAG_CONTRACTS,Fe as PACKAGE_INIT_FLAG_CONTRACTS,ot as PAUSE_TASK_FLAG_CONTRACTS,on as PLAN_CREATE_METADATA_PARAMETER_KEYS,ve as PLAN_FLAG_CONTRACTS,Z as PM_CLI_GRAMMAR_CONTRACT,U as PM_CLI_GRAMMAR_NOUNS,eo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,K as PM_CLI_SHARED_VERBS,Bt as PM_COMMAND_ALIAS_CONTRACTS,W as PM_COMMAND_DESTINATION_CONTRACTS,xn as PM_COMMAND_EXIT_CONTRACTS,wn as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Io as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Xn as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Q as PM_COMMAND_POSITIONAL_CONTRACTS,_ as PM_CONTEXT_INTENT_CONTRACTS,Wt as PM_CORE_COMMAND_NAMES,oo as PM_DEPRECATED_TOOL_ACTIONS,no as PM_DISCOVERABLE_TOOL_ACTIONS,Bn as PM_ERROR_CODE_CATALOG,An as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Ut as PM_EXTENSION_CAPABILITY_CONTRACTS,Qt as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Xt as PM_EXTENSION_POLICY_MODE_CONTRACTS,Vt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Ht as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Kt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Yt as PM_EXTENSION_TRUST_MODE_CONTRACTS,Zt as PM_ITEM_ACTION_SUBCOMMANDS,So as PM_OUTPUT_BUDGET_CLASSES,Do as PM_OUTPUT_DEGRADATION_STEPS,Un as PM_OUTPUT_ENVELOPE_KINDS,X as PM_POSITIONAL_ACTION_CONTRACTS,un as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ln as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Jo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Lo as PM_READ_OUTPUT_DIMENSIONS,Bo as PM_READ_OUTPUT_OPTION_FLAGS,qo as PM_READ_OUTPUT_SURFACES,Ro as PM_READ_OUTPUT_SURFACE_CONTRACTS,jn as PM_SUCCESS_EXIT_CODES,to as PM_TOOL_ACTIONS,an as PM_TOOL_ACTION_PARAMETER_CONTRACTS,cn as PM_TOOL_PARAMETERS_SCHEMA,dn as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,sn as PM_TOOL_PARAMETERS_SCHEMA_VERSION,en as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Ce as PROFILE_FLAG_CONTRACTS,Xe as REINDEX_FLAG_CONTRACTS,et as RELEASE_FLAG_CONTRACTS,rt as REMIND_FLAG_CONTRACTS,Qe as RESTORE_FLAG_CONTRACTS,je as SCHEMA_FLAG_CONTRACTS,A as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Pt as SEARCH_FLAG_CONTRACTS,tt as START_TASK_FLAG_CONTRACTS,ft as STATS_FLAG_CONTRACTS,se as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,lt as TELEMETRY_FLAG_CONTRACTS,dt as TEST_ALL_FLAG_CONTRACTS,st as TEST_FLAG_CONTRACTS,ct as TEST_RUNS_FLAG_CONTRACTS,$o as TOOL_ACTIVITY_OPTION_CONTRACTS,po as TOOL_AGGREGATE_OPTION_CONTRACTS,xo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,vo as TOOL_CALENDAR_OPTION_CONTRACTS,Co as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,ko as TOOL_CONTEXT_OPTION_CONTRACTS,bo as TOOL_CREATE_OPTION_CONTRACTS,yo as TOOL_CREATE_OPTION_CONTRACT_SOURCE,To as TOOL_DEPS_OPTION_CONTRACTS,Oo as TOOL_GRAPH_OPTION_CONTRACTS,fo as TOOL_LIST_FILTER_OPTION_CONTRACTS,mo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,_o as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,go as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,jo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,wo as TOOL_UPDATE_OPTION_CONTRACTS,ho as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,_n as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,bn as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,yn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Ct as UPDATE_FLAG_CONTRACTS,vt as UPDATE_MANY_FLAG_CONTRACTS,Ke as UPGRADE_FLAG_CONTRACTS,gt as VALIDATE_FLAG_CONTRACTS,It as WORKSPACE_FLAG_CONTRACTS,fn as _testOnlyCliContracts,kn as analyzePmCommandExitConformance,io as analyzePmToolActionParity,hn as analyzeSdkCliParameterCompleteness,En as applyContextIntentProjection,Wo as applyReadOutputDimensions,Xo as applyReadOutputIncludeModes,Nn as attachContextIntentReceipt,Gn as attachOutputTokenAccounting,Pn as attachReadOutputContracts,rn as buildPmActionToolInputSchema,re as compactFlagAliasContracts,Sn as composeContextIntentContracts,In as contextIntentRowId,Eo as createPmCommandOutputBudget,Mn as decodeContextIntentCursor,zo as decodeReadOutputContinuationCursor,Mo as definePmCommandOutputBudget,Kn as definePmCommandOutputEnvelope,zn as definePmErrorCodeCatalog,Tn as derivePmBulkMutationEffect,Ao as encodeReadOutputContinuationCursor,Jn as enrichCliFlagInvocationContract,h as enrichCliFlagInvocationContracts,Po as estimatePmOutputTokens,V as formatPmPositionalActionFlagTip,On as getActiveContextIntentContracts,y as hasSubcommandFlagContractsForCommand,Fo as inferPmOutputBudgetClass,ro as isPmExtensionCapabilityContract,lo as isPmExtensionPolicyModeContract,co as isPmExtensionPolicySurfaceContract,so as isPmExtensionServiceNameContract,vn as isPmKnownExitCode,Hn as isPmMutationReceipt,Cn as isPmSuccessfulExitCode,ao as isPmToolAction,Qo as isReadOutputBudgetExceeded,N as listCoreClosedDomainContracts,k as listPmCommandFlagBudgets,f as listPmFlagLexicon,ei as listPmFlagSpellingInventory,Yo as normalizeReadOutputIncludeModeOptions,Vn as parseMutationReceipt,te as positionalShapeKey,oe as positionalSignatureKey,J as readFirstStringFromCommanderOptions,R as readFirstValueFromCommanderOptions,Ko as readOutputIncludeModeOptions,G as readStringArrayFromCommanderOptions,li as renderPmClosedDomainHelp,Gt as renderPmCommandAliasMigrationHint,oi as renderPmFlagLexiconMarkdown,Ln as resolveCanonicalPmErrorCodeContract,Fn as resolveContextIntentContract,Rt as resolvePmCommandAlias,$n as resolvePmCommandExitContract,No as resolvePmCommandOutputBudget,Yn as resolvePmCommandOutputEnvelope,Y as resolvePmCommandPositionalContract,qn as resolvePmErrorCodeContract,D as resolvePmFlagSemanticConcept,H as resolvePmPositionalActionContract,Lt as resolvePmPositionalActionFlagContracts,tn as resolvePmToolCustomFieldCollision,Ho as resolveReadOutputDimensions,Zo as resolveReadOutputEncoding,Go as resolveReadOutputSurface,b as resolveSubcommandFlagContractsForCommand,Dn as runWithContextIntentContracts,ai as scorePmRefusalClosure,Vo as stabilizeReadOutputReceiptEstimates,qt as toCompletionFlagString,Uo as validateReadOutputOptions,Rn as verifyCliFlagInvocationParity,ee as verifyExplicitPositionalSlotCensus,ie as verifyPmCliGrammar,ne as verifyPmCommandPositionalContracts,ti as verifyPmFlagLexicon,uo as verifyToolOptionCliParity,ae as withFlagAliasMetadata};
3
3
  //# sourceMappingURL=sdk-contracts.js.map