@unbrained/pm-cli 2026.10.7 → 2026.10.9

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 (129) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +32 -0
  3. package/dist/cli/register-list-query.js +2 -2
  4. package/dist/cli-bundle/bundle-manifest.json +154 -154
  5. package/dist/cli-bundle/chunks/{chunk-DWH555SN.js → chunk-55MK3QQM.js} +30 -30
  6. package/dist/cli-bundle/chunks/chunk-5MOFELIF.js +3 -0
  7. package/dist/cli-bundle/chunks/{chunk-TON7H63A.js → chunk-5NR6TDYB.js} +53 -52
  8. package/dist/cli-bundle/chunks/chunk-5TCQ5J3V.js +234 -0
  9. package/dist/cli-bundle/chunks/{chunk-TG3IOQUG.js → chunk-CPZOW6L2.js} +2 -2
  10. package/dist/cli-bundle/chunks/chunk-E4XR5LKU.js +8 -0
  11. package/dist/cli-bundle/chunks/{chunk-MOXX7D3F.js → chunk-KOGF6O6W.js} +3 -3
  12. package/dist/cli-bundle/chunks/chunk-N7GKWO4G.js +2 -0
  13. package/dist/cli-bundle/chunks/{chunk-VU77O6HC.js → chunk-NIF7JOPW.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-N2PFAWVV.js → chunk-P5NS7EFC.js} +3 -3
  15. package/dist/cli-bundle/chunks/{chunk-A4QWRU7D.js → chunk-QQHNXCO3.js} +5 -5
  16. package/dist/cli-bundle/chunks/chunk-XW3BLWFF.js +20 -0
  17. package/dist/cli-bundle/chunks/chunk-ZNXRGATT.js +2 -0
  18. package/dist/cli-bundle/chunks/register-list-query-2YOWMNWY.js +11 -0
  19. package/dist/cli-bundle/chunks/{register-mutation-JRH6EGSE.js → register-mutation-ILOWFMTV.js} +2 -2
  20. package/dist/cli-bundle/chunks/register-operations-BMK65YM3.js +2 -0
  21. package/dist/cli-bundle/chunks/register-setup-24TFFK6N.js +2 -0
  22. package/dist/cli-bundle/focused-chunks/{chunk-7X3QD5V4.js → chunk-2ATAD56F.js} +2 -2
  23. package/dist/cli-bundle/focused-chunks/{chunk-PBNQZV33.js → chunk-2CJWTLQG.js} +2 -2
  24. package/dist/cli-bundle/focused-chunks/{chunk-XIGFEA3W.js → chunk-362645PL.js} +2 -2
  25. package/dist/cli-bundle/focused-chunks/{chunk-4FKCHJGV.js → chunk-AU6VJGTY.js} +2 -2
  26. package/dist/cli-bundle/focused-chunks/{chunk-QY4Z23QC.js → chunk-B3YW6H2I.js} +17 -21
  27. package/dist/cli-bundle/focused-chunks/{chunk-3NSZ5C4A.js → chunk-DMSADMEU.js} +2 -2
  28. package/dist/cli-bundle/focused-chunks/chunk-DSLNUL2Q.js +20 -0
  29. package/dist/cli-bundle/focused-chunks/{chunk-EPOCI7ZX.js → chunk-EZ4367G4.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/{chunk-FWWFCLDM.js → chunk-IARAEFMA.js} +60 -59
  31. package/dist/cli-bundle/focused-chunks/{chunk-SIR5RFJX.js → chunk-MCVWZUGK.js} +27 -27
  32. package/dist/cli-bundle/focused-chunks/chunk-PBCYGO7X.js +3 -0
  33. package/dist/cli-bundle/focused-chunks/{chunk-NRSA5ZB2.js → chunk-PLTTMQAW.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/{chunk-HMG5F5EC.js → chunk-SAN3KPX4.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/{chunk-3BKRCR57.js → chunk-W5AE7GKZ.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-QEYEDXRI.js → chunk-WAOXID5J.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/{chunk-2YICTWWA.js → chunk-WOEZJUA2.js} +2 -2
  38. package/dist/cli-bundle/main.js +2 -2
  39. package/dist/cli-bundle/sdk-authoring.js +1 -1
  40. package/dist/cli-bundle/sdk-contracts.js +1 -1
  41. package/dist/cli-bundle/sdk-core.js +22 -22
  42. package/dist/cli-bundle/sdk-governance.js +1 -1
  43. package/dist/cli-bundle/sdk-graph.js +1 -1
  44. package/dist/cli-bundle/sdk-merge.js +51 -50
  45. package/dist/cli-bundle/sdk-query.js +1 -1
  46. package/dist/cli-bundle/sdk-runtime.js +1 -1
  47. package/dist/cli-bundle/sdk-testing.js +1 -1
  48. package/dist/cli-bundle/sdk.js +7 -7
  49. package/dist/core/extensions/item-fields.d.ts +6 -1
  50. package/dist/core/extensions/item-fields.js +1 -1
  51. package/dist/core/fs/fs-utils.d.ts +19 -4
  52. package/dist/core/fs/fs-utils.js +2 -2
  53. package/dist/core/history/event-index.d.ts +1 -2
  54. package/dist/core/history/event-index.js +2 -2
  55. package/dist/core/lock/lock.d.ts +9 -2
  56. package/dist/core/lock/lock.js +2 -2
  57. package/dist/core/output/output.d.ts +16 -14
  58. package/dist/core/output/output.js +6 -10
  59. package/dist/core/store/item-metadata-query-index.d.ts +1 -2
  60. package/dist/core/store/item-metadata-query-index.js +1 -1
  61. package/dist/core/store/settings.js +2 -2
  62. package/dist/core/store/sqlite-runtime.d.ts +15 -0
  63. package/dist/core/store/sqlite-runtime.js +2 -0
  64. package/dist/core/telemetry/runtime.d.ts +1 -1
  65. package/dist/core/telemetry/runtime.js +4 -4
  66. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  67. package/dist/sdk/governance/health.js +2 -2
  68. package/dist/sdk/history-repair.js +1 -1
  69. package/dist/sdk/item-transaction.js +1 -1
  70. package/dist/sdk/merge/abandoned-receipts.js +1 -1
  71. package/dist/sdk/merge/driver.js +1 -1
  72. package/dist/sdk/merge/install.js +3 -2
  73. package/dist/sdk/merge/receipt-operation.d.ts +5 -5
  74. package/dist/sdk/merge/receipt-operation.js +1 -1
  75. package/dist/sdk/merge/receipts.d.ts +1 -1
  76. package/dist/sdk/merge/receipts.js +3 -3
  77. package/dist/sdk/merge/worktree-config.d.ts +2 -0
  78. package/dist/sdk/merge/worktree-config.js +1 -1
  79. package/dist/sdk/output/table-rows.d.ts +37 -0
  80. package/dist/sdk/output/table-rows.js +2 -0
  81. package/dist/sdk/output.d.ts +1 -0
  82. package/dist/sdk/output.js +2 -2
  83. package/dist/sdk/public-surface.json +1 -1
  84. package/dist/sdk/read-output-contracts.d.ts +3 -3
  85. package/dist/sdk/read-output-contracts.js +1 -1
  86. package/dist/sdk/test/workspace-snapshot.d.ts +1 -1
  87. package/dist/sdk/test/workspace-snapshot.js +1 -1
  88. package/docs/AGENT_OUTPUT_ENCODINGS.md +119 -0
  89. package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +36 -100
  90. package/docs/MERGE_SAFETY.md +61 -6
  91. package/docs/PACKAGE_GATE_ACCEPTANCE.md +56 -0
  92. package/docs/PACKED_FIRST_RUN.md +26 -42
  93. package/docs/README.md +3 -0
  94. package/docs/SDK_AUDITED_MUTATIONS.md +18 -0
  95. package/docs/SDK_STORAGE_LIFECYCLE.md +35 -0
  96. package/docs/TESTING.md +11 -3
  97. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +4 -3
  98. package/marketplace.json +2 -2
  99. package/package.json +1 -1
  100. package/packages/pm-beads/package.json +1 -1
  101. package/packages/pm-calendar/package.json +1 -1
  102. package/packages/pm-command-kit/package.json +1 -1
  103. package/packages/pm-digital-twin/package.json +1 -1
  104. package/packages/pm-governance-audit/package.json +1 -1
  105. package/packages/pm-guide-shell/package.json +1 -1
  106. package/packages/pm-kanban/package.json +1 -1
  107. package/packages/pm-lifecycle-hooks/package.json +1 -1
  108. package/packages/pm-linked-test-adapters/package.json +1 -1
  109. package/packages/pm-search-advanced/package.json +1 -1
  110. package/packages/pm-templates/package.json +1 -1
  111. package/packages/pm-todos/package.json +1 -1
  112. package/packages/pm-vcs/package.json +1 -1
  113. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  114. package/plugins/pm-claude/package.json +2 -2
  115. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  116. package/plugins/pm-codex/package.json +2 -2
  117. package/plugins/pm-codex/plugin.json +1 -1
  118. package/runtime-dependencies.json +2 -2
  119. package/dist/cli-bundle/chunks/chunk-754AV3DC.js +0 -8
  120. package/dist/cli-bundle/chunks/chunk-CEM35QB2.js +0 -2
  121. package/dist/cli-bundle/chunks/chunk-CMIU2NDK.js +0 -20
  122. package/dist/cli-bundle/chunks/chunk-GJ2OJKRM.js +0 -238
  123. package/dist/cli-bundle/chunks/chunk-GSQK3VUT.js +0 -2
  124. package/dist/cli-bundle/chunks/chunk-WUOFG4JY.js +0 -3
  125. package/dist/cli-bundle/chunks/register-list-query-CBJELTDX.js +0 -11
  126. package/dist/cli-bundle/chunks/register-operations-FYV7CUBF.js +0 -2
  127. package/dist/cli-bundle/chunks/register-setup-M5VO6JUH.js +0 -2
  128. package/dist/cli-bundle/focused-chunks/chunk-3RJ4VK7U.js +0 -3
  129. package/dist/cli-bundle/focused-chunks/chunk-H5VREEUE.js +0 -20
@@ -1,3 +1,3 @@
1
- import{a as wi,b as xi,c as ki,d as k,e as $i,f as I,g as Ti,h as vi,i as Ei,j as Ci,k as ji,l as Oi,m as Si,n as Ai,o as P,p as Mi,q as F,u as N,v as Di,w as Ii,x as z,y as Pi,z as Fi}from"./focused-chunks/chunk-7X3QD5V4.js";import{a as _i,b as fi,c as mi,d as gi,e as yi,f as bi,g as hi,h as Ni}from"./focused-chunks/chunk-QEYEDXRI.js";import{A as lo,L as ti,M as ri,N as oi,O as ii,P as ni,R as si,S as di,T as ai,U as ci,V as li,W as pi,X as ui,a as le,b as pe,c as ue,d as _e,e as fe,f as me,g as ge,h as ye,i as be,j as Kr,k as Xr,l as Yr,m as Hr,n as Vr,o as Wr,p as Qr,q as Zr,r as eo,s as to,t as ro,u as oo,v as io,w as no,x as so,y as ao,z as co}from"./focused-chunks/chunk-PBNQZV33.js";import{c as R,d as L,f as q,h as G}from"./focused-chunks/chunk-4FKCHJGV.js";import{$ as Et,$a as S,A as et,Aa as Zt,B as tt,Ba as er,C as rt,Ca as tr,D as ot,Da as rr,E as it,Ea as or,F as nt,Fa as ir,Ga as nr,H as st,Ha as sr,I as dt,Ia as dr,J as at,Ja as ar,K as ct,Ka as cr,L as lt,La as lr,M as pt,Ma as pr,N as ut,Na as ur,O as _t,Oa as _r,P as ft,Pa as fr,Q as mt,Qa as mr,R as gt,Ra as gr,S as yt,Sa as yr,T as bt,Ta as br,U as ht,Ua as hr,V as wt,Va as wr,W as xt,Wa as xr,X as kt,Xa as kr,Y as $t,Z as Tt,Za as $r,_ as vt,aa as Ct,ab as A,b as Oe,ba as jt,bb as Tr,c as Se,ca as Ot,d as Ae,da as St,e as Me,ea as At,f as De,fa as Mt,g as Ie,ga as Dt,h as Pe,ha as It,i as Fe,ia as Pt,j as Ne,ja as Ft,k as ze,ka as Nt,l as Re,la as zt,m as Le,ma as Rt,n as qe,na as Lt,o as Ge,oa as qt,p as Be,pa as Gt,q as Ue,qa as Bt,r as Je,ra as Ut,s as Ke,sa as Jt,t as Xe,ta as Kt,u as Ye,ua as Xt,v as He,va as Yt,w as Ve,wa as Ht,x as We,xa as Vt,y as Qe,ya as Wt,z as Ze,za as Qt}from"./focused-chunks/chunk-2YICTWWA.js";import{a as zi,b as Ri,c as Li,d as qi,e as Gi,f as Bi,g as Ui,h as Ji}from"./focused-chunks/chunk-YLVHHWHN.js";import{$ as w,Ae as Zo,Cd as vo,Db as he,Dd as Eo,Eb as we,Ed as Co,Ee as ei,Fb as xe,Fd as jo,Gb as ke,Hb as j,Hd as Oo,Ib as $e,Id as So,Jb as f,Jd as Ao,Kb as O,Kd as Mo,Lb as Te,Ld as Do,Mb as ve,Md as Io,Nb as Ee,Nd as Po,Ob as Ce,Od as Fo,Pb as je,Pd as No,Qd as zo,Rd as Ro,Sd as Lo,Td as qo,Ud as Go,Vd as Bo,Xc as M,Yc as D,ac as vr,bc as Er,cc as Cr,dc as jr,ec as Or,fc as Sr,gc as Ar,ic as Mr,jc as Dr,kc as Ir,lc as Pr,mc as Fr,md as po,nc as Nr,nd as uo,oc as zr,od as _o,pc as Rr,pd as fo,qc as Lr,qd as mo,qe as x,rc as qr,rd as go,re as Uo,sc as Gr,sd as yo,se as Jo,tc as Br,td as bo,te as Ko,uc as Ur,ud as ho,ue as Xo,vc as Jr,vd as wo,ve as Yo,wd as xo,we as Ho,xd as ko,xe as Vo,yd as $o,ye as Wo,zd as To,ze as Qo}from"./focused-chunks/chunk-QY4Z23QC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="fcb59bee-0fdb-5b17-8568-775a15d53466")}catch{}})();var m,V=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 W(e,r){if(r==="--limit")return"result-row-limit";if(r==="--node-limit")return"graph-node-limit";if(r==="--edge-limit")return"graph-edge-limit";if(r==="--output-limit")return"rendered-output-row-limit";if(r==="--output-budget")return"rendered-output-byte-budget";if(r==="--token-budget")return"context-intent-token-budget";if(r==="--full"){let o=V[f(e)];if(o===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return o}return r!=="--file"?r.slice(2):["create","update","update-many"].includes(f(e))?"linked-file-path":["comments","notes","learnings"].includes(f(e))?"entry-file-input":"plan-definition-file"}function g(){if(m!==void 0)return m;let e=F.filter(({command:t})=>S(t)).flatMap(({command:t,family:n})=>P(t,A(t)).map(s=>({command:t,family:n,concept:W(t,s.flag),flag:s.flag,aliases:Object.freeze([...s.aliases??[]]),value_kind:s.repeatable?"list":s.flag==="--limit"?"number":s.value_type}))),r=new Set(e.flatMap(t=>t.aliases.map(n=>`${t.command}:${n}`))),o=e.filter(t=>!r.has(`${t.command}:${t.flag}`)),i=new Map;for(let t of o){let n=i.get(t.concept)??new Set;n.add(t.value_kind),i.set(t.concept,n)}return m=Object.freeze(o.map(t=>Object.freeze({...t,concept:i.get(t.concept)?.size===1?t.concept:`${t.concept}@${t.command}`}))),m}function Vi(){return Object.freeze(g().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var B=Object.freeze({init:30,item:20,config:36,extension:55,package:56,packages:56,install:27,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":86,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:40,context:45,ctx:45,get:30,graph:34,search:78,duplicates:25,eval:25,next:38,history:35,events:33,"history-attest":23,"history-redact":27,"history-repair":27,"history-compact":30,"history-author-acknowledge":28,merge:27,schema:43,profile:22,activity:35,restore:23,update:105,"update-many":146,close:32,"close-many":72,delete:24,append:25,comments:31,notes:35,learnings:31,files:39,docs:30,deps:32,plan:109,test:53,"test-all":40,telemetry:21,stats:29,health:36,validate:46,assurance:30,gc:22,workspace:23,contracts:29,claim:39,release:24,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":20}),U=Object.freeze({...B,...Object.fromEntries(j.flatMap(({alias:e,canonical:r})=>{let o=B[e];return o===void 0?[]:[[r,o]]}))});function J(){let e=new Map(Object.keys(U).map(r=>[r,0]));for(let{command:r}of g())e.set(r,Number(e.get(r))+1);return Object.freeze(Object.entries(U).map(([r,o])=>Object.freeze({command:r,current:Number(e.get(r)),maximum:o})))}function Q(e,r,o){for(let i of e)for(let t of i.aliases){let n=r.get(`${i.command}:${t}`);n===void 0||n.flag===i.flag||o.push({code:"alias_collision",command:i.command,detail:`${t} aliases ${i.flag} but is canonical for ${n.flag}.`})}}function Z(e,r,o){let i=new Set(r.map(({command:t})=>t));for(let t of e.keys())i.has(t)||o.push({code:"missing_budget",command:t,detail:`${t} has canonical flags but no persisted budget.`});for(let t of r){let n=e.get(t.command)??0;n===0&&o.push({code:"stale_budget",command:t.command,detail:`${t.command} has a persisted budget but no canonical flags.`}),!(n<=t.maximum)&&o.push({code:"budget_exceeded",command:t.command,detail:`${n} canonical flags exceed the ratcheted maximum ${t.maximum}.`})}}function ee(e,r,o){let i=new Map(e.map(t=>[`${t.command}:${t.flag}`,t]));for(let t of r){let n=`${t.command}:${t.canonical_flag}`,s=i.get(n);if(!s){o.push({code:"removed_canonical_spelling",command:t.command,detail:`${t.canonical_flag} disappeared from the executable spelling inventory.`});continue}let a=new Set([s.flag,...s.aliases]);for(let d of t.accepted_spellings)a.has(d)||o.push({code:"removed_compatibility_spelling",command:t.command,detail:`${d} no longer resolves to ${t.canonical_flag}.`})}}function Wi(e=g(),r=J(),o=[]){let i=[],t=new Map,n=new Map,s=new Map,a=new Map;for(let d of e){let c=`${d.command}:${d.flag}`;t.has(c)?i.push({code:"duplicate_canonical_flag",command:d.command,detail:`${d.flag} has more than one canonical row.`}):t.set(c,d),a.set(d.command,(a.get(d.command)??0)+1);let l=n.get(d.concept);l!==void 0&&l!==d.value_kind?i.push({code:"inconsistent_concept_kind",command:d.command,detail:`${d.concept} uses both ${l} and ${d.value_kind}.`}):n.set(d.concept,d.value_kind);let p=s.get(d.concept);p!==void 0&&p!==d.flag?i.push({code:"semantic_spelling_collision",command:d.command,detail:`${d.concept} is canonicalized by both ${p} and ${d.flag}.`}):s.set(d.concept,d.flag)}return Q(e,t,i),Z(a,r,i),ee(e,o,i),i.sort((d,c)=>d.command.localeCompare(c.command)||d.code.localeCompare(c.code)||d.detail.localeCompare(c.detail)),{ok:i.length===0,entry_count:e.length,budget_count:r.length,concept_count:new Set(e.map(({concept:d})=>d)).size,baseline_entry_count:o.length,findings:i}}function Qi(){let e=g(),r=J(),o=new Map(r.map(({command:i})=>[i,"unknown"]));for(let{command:i,family:t}of e)o.set(i,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 |","| --- | --- | ---: | ---: |",...r.map(({command:i,current:t,maximum:n})=>{let s=o.get(i);return`| \`${i}\` | ${s} | ${t} | ${n} |`}),""].join(`
1
+ import{a as wi,b as xi,c as ki,d as k,e as $i,f as I,g as Ti,h as vi,i as Ei,j as Ci,k as ji,l as Oi,m as Si,n as Ai,o as P,p as Mi,q as F,u as N,v as Di,w as Ii,x as z,y as Pi,z as Fi}from"./focused-chunks/chunk-2ATAD56F.js";import{a as _i,b as fi,c as mi,d as gi,e as yi,f as bi,g as hi,h as Ni}from"./focused-chunks/chunk-WAOXID5J.js";import{A as lo,L as ti,M as ri,N as oi,O as ii,P as ni,R as si,S as di,T as ai,U as ci,V as li,W as pi,X as ui,a as le,b as pe,c as ue,d as _e,e as fe,f as me,g as ge,h as ye,i as be,j as Kr,k as Xr,l as Yr,m as Hr,n as Vr,o as Wr,p as Qr,q as Zr,r as eo,s as to,t as ro,u as oo,v as io,w as no,x as so,y as ao,z as co}from"./focused-chunks/chunk-2CJWTLQG.js";import{c as R,d as L,f as q,h as G}from"./focused-chunks/chunk-AU6VJGTY.js";import{$ as Et,$a as S,A as et,Aa as Zt,B as tt,Ba as er,C as rt,Ca as tr,D as ot,Da as rr,E as it,Ea as or,F as nt,Fa as ir,Ga as nr,H as st,Ha as sr,I as dt,Ia as dr,J as at,Ja as ar,K as ct,Ka as cr,L as lt,La as lr,M as pt,Ma as pr,N as ut,Na as ur,O as _t,Oa as _r,P as ft,Pa as fr,Q as mt,Qa as mr,R as gt,Ra as gr,S as yt,Sa as yr,T as bt,Ta as br,U as ht,Ua as hr,V as wt,Va as wr,W as xt,Wa as xr,X as kt,Xa as kr,Y as $t,Z as Tt,Za as $r,_ as vt,aa as Ct,ab as A,b as Oe,ba as jt,bb as Tr,c as Se,ca as Ot,d as Ae,da as St,e as Me,ea as At,f as De,fa as Mt,g as Ie,ga as Dt,h as Pe,ha as It,i as Fe,ia as Pt,j as Ne,ja as Ft,k as ze,ka as Nt,l as Re,la as zt,m as Le,ma as Rt,n as qe,na as Lt,o as Ge,oa as qt,p as Be,pa as Gt,q as Ue,qa as Bt,r as Je,ra as Ut,s as Ke,sa as Jt,t as Xe,ta as Kt,u as Ye,ua as Xt,v as He,va as Yt,w as Ve,wa as Ht,x as We,xa as Vt,y as Qe,ya as Wt,z as Ze,za as Qt}from"./focused-chunks/chunk-WOEZJUA2.js";import{a as zi,b as Ri,c as Li,d as qi,e as Gi,f as Bi,g as Ui,h as Ji}from"./focused-chunks/chunk-YLVHHWHN.js";import{$ as w,Ad as To,Ae as Qo,Be as Zo,Dd as vo,Eb as he,Ed as Eo,Fb as we,Fd as Co,Fe as ei,Gb as xe,Gd as jo,Hb as ke,Ib as j,Id as Oo,Jb as $e,Jd as So,Kb as f,Kd as Ao,Lb as O,Ld as Mo,Mb as Te,Md as Do,Nb as ve,Nd as Io,Ob as Ee,Od as Po,Pb as Ce,Pd as Fo,Qb as je,Qd as No,Rd as zo,Sd as Ro,Td as Lo,Ud as qo,Vd as Go,Wd as Bo,Yc as M,Zc as D,bc as vr,cc as Er,dc as Cr,ec as jr,fc as Or,gc as Sr,hc as Ar,jc as Mr,kc as Dr,lc as Ir,mc as Pr,nc as Fr,nd as po,oc as Nr,od as uo,pc as zr,pd as _o,qc as Rr,qd as fo,rc as Lr,rd as mo,re as x,sc as qr,sd as go,se as Uo,tc as Gr,td as yo,te as Jo,uc as Br,ud as bo,ue as Ko,vc as Ur,vd as ho,ve as Xo,wc as Jr,wd as wo,we as Yo,xd as xo,xe as Ho,yd as ko,ye as Vo,zd as $o,ze as Wo}from"./focused-chunks/chunk-B3YW6H2I.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="fcb59bee-0fdb-5b17-8568-775a15d53466")}catch{}})();var m,V=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 W(e,r){if(r==="--limit")return"result-row-limit";if(r==="--node-limit")return"graph-node-limit";if(r==="--edge-limit")return"graph-edge-limit";if(r==="--output-limit")return"rendered-output-row-limit";if(r==="--output-budget")return"rendered-output-byte-budget";if(r==="--token-budget")return"context-intent-token-budget";if(r==="--full"){let o=V[f(e)];if(o===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return o}return r!=="--file"?r.slice(2):["create","update","update-many"].includes(f(e))?"linked-file-path":["comments","notes","learnings"].includes(f(e))?"entry-file-input":"plan-definition-file"}function g(){if(m!==void 0)return m;let e=F.filter(({command:t})=>S(t)).flatMap(({command:t,family:n})=>P(t,A(t)).map(s=>({command:t,family:n,concept:W(t,s.flag),flag:s.flag,aliases:Object.freeze([...s.aliases??[]]),value_kind:s.repeatable?"list":s.flag==="--limit"?"number":s.value_type}))),r=new Set(e.flatMap(t=>t.aliases.map(n=>`${t.command}:${n}`))),o=e.filter(t=>!r.has(`${t.command}:${t.flag}`)),i=new Map;for(let t of o){let n=i.get(t.concept)??new Set;n.add(t.value_kind),i.set(t.concept,n)}return m=Object.freeze(o.map(t=>Object.freeze({...t,concept:i.get(t.concept)?.size===1?t.concept:`${t.concept}@${t.command}`}))),m}function Vi(){return Object.freeze(g().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var B=Object.freeze({init:30,item:20,config:36,extension:55,package:56,packages:56,install:27,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":86,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:40,context:45,ctx:45,get:30,graph:34,search:78,duplicates:25,eval:25,next:38,history:35,events:33,"history-attest":23,"history-redact":27,"history-repair":27,"history-compact":30,"history-author-acknowledge":28,merge:27,schema:43,profile:22,activity:35,restore:23,update:105,"update-many":146,close:32,"close-many":72,delete:24,append:25,comments:31,notes:35,learnings:31,files:39,docs:30,deps:32,plan:109,test:53,"test-all":40,telemetry:21,stats:29,health:36,validate:46,assurance:30,gc:22,workspace:23,contracts:29,claim:39,release:24,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":20}),U=Object.freeze({...B,...Object.fromEntries(j.flatMap(({alias:e,canonical:r})=>{let o=B[e];return o===void 0?[]:[[r,o]]}))});function J(){let e=new Map(Object.keys(U).map(r=>[r,0]));for(let{command:r}of g())e.set(r,Number(e.get(r))+1);return Object.freeze(Object.entries(U).map(([r,o])=>Object.freeze({command:r,current:Number(e.get(r)),maximum:o})))}function Q(e,r,o){for(let i of e)for(let t of i.aliases){let n=r.get(`${i.command}:${t}`);n===void 0||n.flag===i.flag||o.push({code:"alias_collision",command:i.command,detail:`${t} aliases ${i.flag} but is canonical for ${n.flag}.`})}}function Z(e,r,o){let i=new Set(r.map(({command:t})=>t));for(let t of e.keys())i.has(t)||o.push({code:"missing_budget",command:t,detail:`${t} has canonical flags but no persisted budget.`});for(let t of r){let n=e.get(t.command)??0;n===0&&o.push({code:"stale_budget",command:t.command,detail:`${t.command} has a persisted budget but no canonical flags.`}),!(n<=t.maximum)&&o.push({code:"budget_exceeded",command:t.command,detail:`${n} canonical flags exceed the ratcheted maximum ${t.maximum}.`})}}function ee(e,r,o){let i=new Map(e.map(t=>[`${t.command}:${t.flag}`,t]));for(let t of r){let n=`${t.command}:${t.canonical_flag}`,s=i.get(n);if(!s){o.push({code:"removed_canonical_spelling",command:t.command,detail:`${t.canonical_flag} disappeared from the executable spelling inventory.`});continue}let a=new Set([s.flag,...s.aliases]);for(let d of t.accepted_spellings)a.has(d)||o.push({code:"removed_compatibility_spelling",command:t.command,detail:`${d} no longer resolves to ${t.canonical_flag}.`})}}function Wi(e=g(),r=J(),o=[]){let i=[],t=new Map,n=new Map,s=new Map,a=new Map;for(let d of e){let c=`${d.command}:${d.flag}`;t.has(c)?i.push({code:"duplicate_canonical_flag",command:d.command,detail:`${d.flag} has more than one canonical row.`}):t.set(c,d),a.set(d.command,(a.get(d.command)??0)+1);let l=n.get(d.concept);l!==void 0&&l!==d.value_kind?i.push({code:"inconsistent_concept_kind",command:d.command,detail:`${d.concept} uses both ${l} and ${d.value_kind}.`}):n.set(d.concept,d.value_kind);let p=s.get(d.concept);p!==void 0&&p!==d.flag?i.push({code:"semantic_spelling_collision",command:d.command,detail:`${d.concept} is canonicalized by both ${p} and ${d.flag}.`}):s.set(d.concept,d.flag)}return Q(e,t,i),Z(a,r,i),ee(e,o,i),i.sort((d,c)=>d.command.localeCompare(c.command)||d.code.localeCompare(c.code)||d.detail.localeCompare(c.detail)),{ok:i.length===0,entry_count:e.length,budget_count:r.length,concept_count:new Set(e.map(({concept:d})=>d)).size,baseline_entry_count:o.length,findings:i}}function Qi(){let e=g(),r=J(),o=new Map(r.map(({command:i})=>[i,"unknown"]));for(let{command:i,family:t}of e)o.set(i,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 |","| --- | --- | ---: | ---: |",...r.map(({command:i,current:t,maximum:n})=>{let s=o.get(i);return`| \`${i}\` | ${s} | ${t} | ${n} |`}),""].join(`
2
2
  `)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f5567aa1-0268-574d-907b-38d6249538ce")}catch{}})();var $=2,te=["self_reported","independent_transport"];function y(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function _(e,r){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`${r} must be a non-empty string`);return e.trim()}function K(e,r,o=!1){if(!Array.isArray(e)||e.length===0)throw new TypeError(`${r} must be a non-empty string array`);return e.map((i,t)=>{let n=_(i,`${r}[${String(t)}]`);return o?i:n})}function T(e,r){return e===void 0?void 0:_(e,r)}function re(e,r){if(e===void 0)return;if(!y(e)||Object.keys(e).length===0)throw new TypeError(`${r} must be a non-empty object`);let o=Object.entries(e).map(([i,t])=>{if(i.length===0||i.split(".").some(n=>n.length===0))throw new TypeError(`${r} must use dot-separated own-property paths`);if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&(typeof t!="number"||!Number.isFinite(t)))throw new TypeError(`${r} values must be JSON primitives`);return[i,t]});return Object.fromEntries(o)}function oe(e,r,o,i,t,n){if(i==="refusal"){if(k(o)||t===void 0||n===void 0)throw new TypeError(`${e} refusal steps require a non-success exit, error code, and refusal surface`);return}if(t!==void 0||n!==void 0)throw new TypeError(`${e} only refusal steps may declare expected_error_code or expected_refusal_surface`);let s=M(r);if(s===void 0)throw new TypeError(`${e}.args must identify a command after global flags`);let a=r[s].trim().toLowerCase();if(a==="history"){let l=D(r.slice(s+1));l!==void 0&&(a=O(`history ${l}`))}let d=I(a);if(!k(o)||o!==0&&!d?.exit_codes.some(l=>l===o))throw new TypeError(`${e} successful output must use exit code 0 or a command-declared successful effect exit`);let c=z(a).kind;if(i!==c)throw new TypeError(`${e} expected ${i}, but ${a} declares ${c}`)}function ie(e,r,o){if(!y(e))throw new TypeError(`tasks.${r}.steps[${String(o)}] must be an object`);let i=`tasks.${r}.steps[${String(o)}]`,t=_(e.id,`${i}.id`),n=K(e.args,`${i}.args`,!0),s=e.expected_exit_code;if(typeof s!="number"||!Number.isSafeInteger(s))throw new TypeError(`${i}.expected_exit_code must be a safe integer`);let a=e.expected_output_kind;if(a!=="refusal"&&!N.includes(a))throw new TypeError(`${i}.expected_output_kind is unsupported`);let d=a,c=e.expected_accounting_mode;if(!te.includes(c))throw new TypeError(`${i}.expected_accounting_mode is unsupported`);let l=c;if(l==="independent_transport"&&d!=="refusal")throw new TypeError(`${i} independent_transport accounting is supported only for refusal steps`);let p=K(e.required_fields,`${i}.required_fields`);if(p.some(Y=>Y.split(".").some(H=>H.length===0)))throw new TypeError(`${i}.required_fields must contain dot-separated own-property paths`);let E=re(e.expected_field_values,`${i}.expected_field_values`),b=T(e.expected_error_code,`${i}.expected_error_code`),h=T(e.expected_refusal_surface,`${i}.expected_refusal_surface`),C=T(e.recovery_for,`${i}.recovery_for`);return oe(i,n,s,d,b,h),{id:t,args:n,expected_exit_code:s,expected_output_kind:d,expected_accounting_mode:l,required_fields:p,...E?{expected_field_values:E}:{},...b?{expected_error_code:b}:{},...h?{expected_refusal_surface:h}:{},...C?{recovery_for:C}:{}}}function ne(e,r){if(!y(e))throw new TypeError(`tasks[${String(r)}] must be an object`);let o=_(e.id,`tasks[${String(r)}].id`),i=_(e.description,`tasks.${o}.description`);if(!Array.isArray(e.steps)||e.steps.length===0)throw new TypeError(`tasks.${o}.steps must be a non-empty array`);let t=e.steps.map((s,a)=>ie(s,o,a)),n=new Map;for(let s of t){if(n.has(s.id))throw new TypeError(`tasks.${o} contains duplicate step id ${s.id}`);if(s.recovery_for!==void 0&&(n.get(s.recovery_for)?.expected_output_kind!=="refusal"||s.expected_output_kind==="refusal"))throw new TypeError(`tasks.${o}.${s.id} recovery_for must reference an earlier refusal and declare successful output`);n.set(s.id,s)}if(t.at(-1)?.expected_output_kind==="refusal")throw new TypeError(`tasks.${o} completed task must terminate with successful output`);for(let s of t)if(s.expected_output_kind==="refusal"&&!t.some(a=>a.recovery_for===s.id))throw new TypeError(`tasks.${o}.${s.id} refusal must have a later successful recovery_for step`);return{id:o,description:i,steps:t}}function nn(e){if(!y(e))throw new TypeError("agent-task transcript corpus must be an object");if(e.version!==$)throw new TypeError(`agent-task transcript corpus version must be ${String($)}`);if(!Array.isArray(e.tasks)||e.tasks.length===0)throw new TypeError("agent-task transcript corpus tasks must be non-empty");let r=e.tasks.map((i,t)=>ne(i,t)),o=new Set;for(let i of r){if(o.has(i.id))throw new TypeError(`duplicate agent-task transcript id ${i.id}`);o.add(i.id)}return{version:$,tasks:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d252409d-e33e-5c9e-9671-789f0ee87312")}catch{}})();function se(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 de(e){return[e.exit_code!==w.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 ${w.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."},...se(e)]}function an(e){let r=[],o=new Set,i=0;e.length===0&&r.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let t of e){if(o.has(t.probe_id)){r.push({code:"duplicate_probe",probe_id:t.probe_id,detail:`${t.probe_id} was supplied more than once.`});continue}o.add(t.probe_id);let n=r.length;for(let s of de(t))s!==void 0&&r.push(s);r.length===n&&(i+=1)}return r.sort((t,n)=>t.probe_id!==n.probe_id?t.probe_id.localeCompare(n.probe_id):t.code.localeCompare(n.code)),{ok:r.length===0,probe_count:o.size,closed_probe_count:i,closure_fraction:o.size===0?0:i/o.size,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8467eccc-684d-56cc-8b18-5f2e940abb42")}catch{}})();var X="not-a-declared-intent",u="not-a-declared-field";function ae(){let e={get:["pm-domain"],search:["Domain query"]},r=[...new Set(x.map(({command:t})=>t))].map(t=>{let n=x.filter(d=>d.command===t),s=n[0],a=e[s.command]??[];return{probe_id:`${s.command}-invalid-intent`,command:s.command,flag:"--for",rejected_value:X,refusal_args:[s.command,...a,"--for",X],allowed_values:n.map(({intent:d})=>d).sort(),suggested_retry_args:[s.command,...a,"--for",s.intent],error_code:"unknown_context_intent"}}),o=L(),i=Object.keys(R).map(t=>({probe_id:`${t}-invalid-field`,command:t,flag:"--fields",rejected_value:u,refusal_args:[t,"--fields",u],allowed_values:o,suggested_retry_args:[t,"--fields","id,title,status"],error_code:"unknown_field_projection"}));return[...r,...i,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:u,refusal_args:["get","pm-domain","--fields",u],allowed_values:q(),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:"package-upgrade-mutually-exclusive-modes",command:"package upgrade",flag:"--cli-only/--packages-only",rejected_value:"--cli-only+--packages-only",refusal_args:["package","upgrade","--cli-only","--packages-only","--dry-run"],allowed_values:[],suggested_retry_args:["package","upgrade","--packages-only","--dry-run"],error_code:"package_upgrade_modes_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:u,refusal_args:["search","Domain query","--fields",u],allowed_values:G(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((t,n)=>t.probe_id.localeCompare(n.probe_id))}function un(e,r){let o=ae().find(n=>n.command===e&&n.flag===r);if(!o)return"No stable core values are declared.";let i=o.allowed_values.filter(n=>!n.startsWith("item.")),t=r==="--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: ${i.join("|")}.${t}`}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d3795bc4-fbe5-5ca4-bc90-b72a2d469dc7")}catch{}})();var v=[{probe_id:"tracker-root-missing",failure_kind:"missing_root",expected_error_code:"tracker_root_missing",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-settings-missing",failure_kind:"settings_missing",expected_error_code:"tracker_not_initialized",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-not-directory",failure_kind:"not_directory",expected_error_code:"tracker_root_not_directory",expected_exit_code:2,recovery_kind:"select_directory"},{probe_id:"tracker-root-unreadable",failure_kind:"unreadable_root",expected_error_code:"tracker_root_unreadable",expected_exit_code:1,recovery_kind:"repair_permissions"}];function fn(){return v.map(e=>({...e}))}function ce(e,r){let o=[];r.error_code!==e.expected_error_code&&o.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${r.error_code}.`}),r.exit_code!==e.expected_exit_code&&o.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${r.exit_code}.`}),r.recovery_kind!==e.recovery_kind&&o.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${r.recovery_kind}.`});let i=r.suggested_retry_args.indexOf("init"),t=i===0||i===2&&r.suggested_retry_args[0]==="--pm-path"&&r.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!t&&o.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(r.unsafe_init_recommended||e.recovery_kind!=="initialize"&&r.suggested_retry_args.includes("init"))&&o.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),r.retry_succeeded||o.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),o}function mn(e){let r=new Map(e.map(t=>[t.probe_id,t])),o=[],i=0;for(let t of v){let n=r.get(t.probe_id);if(n===void 0){o.push({code:"missing_probe",probe_id:t.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let s=ce(t,n);o.push(...s),s.length===0&&(i+=1)}return o.sort((t,n)=>t.probe_id.localeCompare(n.probe_id)||t.code.localeCompare(n.code)),{ok:o.length===0,probe_count:v.length,closed_probe_count:i,findings:o}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0aafe4f4-d636-597e-b594-c0a32ebced38")}catch{}})();export{me as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,lr as ACTIVITY_FLAG_CONTRACTS,Ye as AGGREGATE_FLAG_CONTRACTS,It as APPEND_FLAG_CONTRACTS,er as ASSURANCE_FLAG_CONTRACTS,ue as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,cr as CALENDAR_FLAG_CONTRACTS,Pt as CLAIM_FLAG_CONTRACTS,ii as CLOSE_ACTION_OPTION_KEYS,Mt as CLOSE_FLAG_CONTRACTS,Dt as CLOSE_MANY_FLAG_CONTRACTS,qt as CLOSE_TASK_FLAG_CONTRACTS,He as COMMENTS_FLAG_CONTRACTS,kr as COMPLETION_FLAG_CONTRACTS,lt as CONFIG_FLAG_CONTRACTS,_e as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,ur as CONTEXT_FLAG_CONTRACTS,xr as CONTRACTS_FLAG_CONTRACTS,nr as COPY_FLAG_CONTRACTS,_i as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,mi as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,fi as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,tr as CREATE_FLAG_CONTRACTS,Nt as DELETE_FLAG_CONTRACTS,mr as DEPS_FLAG_CONTRACTS,Ze as DOCS_FLAG_CONTRACTS,Wt as DUPLICATES_FLAG_CONTRACTS,yr as EVAL_FLAG_CONTRACTS,pr as EVENTS_FLAG_CONTRACTS,Bt as EVENT_FLAG_CONTRACTS,ve as EXECUTABLE_COMMAND_ALIASES,xt as EXTENSION_ACTIVATE_FLAG_CONTRACTS,wt as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,jt as EXTENSION_ADOPT_FLAG_CONTRACTS,Ct as EXTENSION_CATALOG_FLAG_CONTRACTS,kt as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,ht as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Et as EXTENSION_DOCTOR_FLAG_CONTRACTS,bt as EXTENSION_EXPLORE_FLAG_CONTRACTS,pt as EXTENSION_FLAG_CONTRACTS,_t as EXTENSION_INIT_FLAG_CONTRACTS,gt as EXTENSION_INSTALL_FLAG_CONTRACTS,Tt as EXTENSION_MANAGE_FLAG_CONTRACTS,$t as EXTENSION_MIGRATE_FLAG_CONTRACTS,vt as EXTENSION_RELOAD_FLAG_CONTRACTS,ut as EXTENSION_SCOPE_FLAG_CONTRACTS,yt as EXTENSION_UNINSTALL_FLAG_CONTRACTS,Qe as FILES_FLAG_CONTRACTS,sr as FOCUS_FLAG_CONTRACTS,Ht as GC_FLAG_CONTRACTS,_r as GET_FLAG_CONTRACTS,Ke as GLOBAL_FLAG_CONTRACTS,gr as GRAPH_FLAG_CONTRACTS,je as GRAPH_QUERY_DEFAULTS,fr as GUIDE_FLAG_CONTRACTS,Qt as HEALTH_FLAG_CONTRACTS,it as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,nt as HISTORY_COMPACT_FLAG_CONTRACTS,et as HISTORY_FLAG_CONTRACTS,rt as HISTORY_REDACT_FLAG_CONTRACTS,ot as HISTORY_REPAIR_FLAG_CONTRACTS,ct as INIT_FLAG_CONTRACTS,Ot as INSTALL_FLAG_CONTRACTS,or as ITEM_COMPLETE_FLAG_CONTRACTS,rr as ITEM_MUTATE_FLAG_CONTRACTS,ir as ITEM_REOPEN_FLAG_CONTRACTS,We as LEARNINGS_FLAG_CONTRACTS,le as LIST_COMMANDER_STRING_OPTION_CONTRACTS,Xe as LIST_FILTER_FLAG_CONTRACTS,Gt as MEET_FLAG_CONTRACTS,tt as MERGE_FLAG_CONTRACTS,Mr as MERGE_SUBCOMMAND_VALUES,fe as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,hr as NEXT_FLAG_CONTRACTS,Ve as NOTES_FLAG_CONTRACTS,ft as PACKAGE_FLAG_CONTRACTS,mt as PACKAGE_INIT_FLAG_CONTRACTS,Lt as PAUSE_TASK_FLAG_CONTRACTS,oi as PLAN_CREATE_METADATA_PARAMETER_KEYS,at as PLAN_FLAG_CONTRACTS,te as PM_AGENT_TASK_ACCOUNTING_MODES,$ as PM_AGENT_TASK_TRANSCRIPT_VERSION,xe as PM_BULK_LIFECYCLE_COMMAND_ALIASES,Ne as PM_CLI_GRAMMAR_CONTRACT,Oe as PM_CLI_GRAMMAR_NOUNS,Fr as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,Se as PM_CLI_SHARED_VERBS,Te as PM_COMMAND_ALIAS_CONTRACTS,Pe as PM_COMMAND_DESTINATION_CONTRACTS,xi as PM_COMMAND_EXIT_CONTRACTS,wi as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,ho as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Ii as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Fe as PM_COMMAND_POSITIONAL_CONTRACTS,x as PM_CONTEXT_INTENT_CONTRACTS,we as PM_CONTEXT_OPS_COMMAND_ALIASES,Ar as PM_CORE_COMMAND_NAMES,zr as PM_DEPRECATED_TOOL_ACTIONS,fo as PM_DIAGNOSTIC_DEGRADATION_STEPS,mo as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,_o as PM_DIAGNOSTIC_OUTPUT_CLASSES,Rr as PM_DISCOVERABLE_TOOL_ACTIONS,Si as PM_ERROR_CODE_CATALOG,Ei as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,vr as PM_EXTENSION_CAPABILITY_CONTRACTS,Dr as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Cr as PM_EXTENSION_POLICY_MODE_CONTRACTS,Sr as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Or as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Er as PM_EXTENSION_SERVICE_NAME_CONTRACTS,jr as PM_EXTENSION_TRUST_MODE_CONTRACTS,Ni as PM_HISTORY_ATTESTATION_CONTRACT,he as PM_HISTORY_COMMAND_ALIASES,Li as PM_HISTORY_OPERATION_ALIASES,Gi as PM_HISTORY_OPERATION_CONTRACT,qi as PM_HISTORY_OPERATION_PATTERNS,Pr as PM_ITEM_ACTION_SUBCOMMANDS,zi as PM_ITEM_HISTORY_OPERATIONS,j as PM_NAMESPACED_COMMAND_ALIASES,uo as PM_OUTPUT_BUDGET_CLASSES,po as PM_OUTPUT_DEGRADATION_STEPS,N as PM_OUTPUT_ENVELOPE_KINDS,Ir as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,Ae as PM_POSITIONAL_ACTION_CONTRACTS,pi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ci as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Mo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,vo as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,Oo as PM_READ_OUTPUT_DIMENSIONS,Ao as PM_READ_OUTPUT_OPTION_FLAGS,So as PM_READ_OUTPUT_SURFACES,Do as PM_READ_OUTPUT_SURFACE_CONTRACTS,ke as PM_RELOCATED_COMMAND_ALIASES,ki as PM_SUCCESS_EXIT_CODES,Nr as PM_TOOL_ACTIONS,ni as PM_TOOL_ACTION_PARAMETER_CONTRACTS,li as PM_TOOL_PARAMETERS_SCHEMA,ai as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,di as PM_TOOL_PARAMETERS_SCHEMA_VERSION,ti as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Ri as PM_WORKSPACE_HISTORY_OPERATIONS,dt as PROFILE_FLAG_CONTRACTS,At as REINDEX_FLAG_CONTRACTS,zt as RELEASE_FLAG_CONTRACTS,Ut as REMIND_FLAG_CONTRACTS,Ft as RESTORE_FLAG_CONTRACTS,st as SCHEMA_FLAG_CONTRACTS,pe as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,wr as SEARCH_FLAG_CONTRACTS,Rt as START_TASK_FLAG_CONTRACTS,Vt as STATS_FLAG_CONTRACTS,Je as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,Xt as TELEMETRY_FLAG_CONTRACTS,Kt as TEST_ALL_FLAG_CONTRACTS,Jt as TEST_FLAG_CONTRACTS,Yt as TEST_RUNS_FLAG_CONTRACTS,so as TOOL_ACTIVITY_OPTION_CONTRACTS,Yr as TOOL_AGGREGATE_OPTION_CONTRACTS,ro as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,no as TOOL_CALENDAR_OPTION_CONTRACTS,io as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,ao as TOOL_CONTEXT_OPTION_CONTRACTS,Zr as TOOL_CREATE_OPTION_CONTRACTS,Qr as TOOL_CREATE_OPTION_CONTRACT_SOURCE,co as TOOL_DEPS_OPTION_CONTRACTS,lo as TOOL_GRAPH_OPTION_CONTRACTS,Xr as TOOL_LIST_FILTER_OPTION_CONTRACTS,Hr as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,Wr as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,Vr as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,oo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,to as TOOL_UPDATE_OPTION_CONTRACTS,eo as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,gi as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,bi as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,yi as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,dr as UPDATE_FLAG_CONTRACTS,ar as UPDATE_MANY_FLAG_CONTRACTS,St as UPGRADE_FLAG_CONTRACTS,Zt as VALIDATE_FLAG_CONTRACTS,br as WORKSPACE_FLAG_CONTRACTS,ui as _testOnlyCliContracts,Ti as analyzePmCommandExitConformance,Lr as analyzePmToolActionParity,hi as analyzeSdkCliParameterCompleteness,Yo as applyContextIntentProjection,qo as applyReadOutputDimensions,No as applyReadOutputIncludeModes,Wo as attachContextIntentReceipt,Zo as attachOutputTokenAccounting,Qo as attachReadOutputContracts,si as buildPmActionToolInputSchema,Ue as compactFlagAliasContracts,Ko as composeContextIntentContracts,Vo as contextIntentRowId,yo as createPmCommandOutputBudget,Ho as decodeContextIntentCursor,jo as decodeReadOutputContinuationCursor,bo as definePmCommandOutputBudget,Di as definePmCommandOutputEnvelope,Ci as definePmErrorCodeCatalog,vi as derivePmBulkMutationEffect,Co as encodeReadOutputContinuationCursor,Ai as enrichCliFlagInvocationContract,P as enrichCliFlagInvocationContracts,xo as estimatePmOutputTokens,$e as findPmNamespacedCommand,Ie as formatPmPositionalActionFlagTip,Uo as getActiveContextIntentContracts,S as hasSubcommandFlagContractsForCommand,go as inferPmOutputBudgetClass,Gr as isPmExtensionCapabilityContract,Ur as isPmExtensionPolicyModeContract,Jr as isPmExtensionPolicySurfaceContract,Br as isPmExtensionServiceNameContract,$i as isPmKnownExitCode,Pi as isPmMutationReceipt,k as isPmSuccessfulExitCode,qr as isPmToolAction,Go as isReadOutputBudgetExceeded,ae as listCoreClosedDomainContracts,J as listPmCommandFlagBudgets,g as listPmFlagLexicon,Vi as listPmFlagSpellingInventory,fn as listTrackerPreflightRecoveryContracts,Ji as normalizeHistoryOperationForWrite,zo as normalizeReadOutputIncludeModeOptions,Fi as parseMutationReceipt,nn as parsePmAgentTaskTranscriptCorpus,Re as positionalShapeKey,Le as positionalSignatureKey,$o as projectPmDiagnosticOutput,To as projectPmDiagnosticText,ge as readFirstStringFromCommanderOptions,ye as readFirstValueFromCommanderOptions,Eo as readOutputCollectionFingerprint,Fo as readOutputIncludeModeOptions,be as readStringArrayFromCommanderOptions,un as renderPmClosedDomainHelp,Ce as renderPmCommandAliasMigrationHint,Qi as renderPmFlagLexiconMarkdown,Ui as requireHistoryOperation,ji as resolveCanonicalPmErrorCodeContract,Xo as resolveContextIntentContract,Bi as resolveHistoryOperation,Ee as resolvePmCommandAlias,I as resolvePmCommandExitContract,f as resolvePmCommandOperation,wo as resolvePmCommandOutputBudget,z as resolvePmCommandOutputEnvelope,Me as resolvePmCommandPositionalContract,ko as resolvePmDiagnosticOutputBudget,Oi as resolvePmErrorCodeContract,W as resolvePmFlagSemanticConcept,O as resolvePmHistoryOperation,De as resolvePmPositionalActionContract,$r as resolvePmPositionalActionFlagContracts,ri as resolvePmToolCustomFieldCollision,Ro as resolveReadOutputDimensions,Bo as resolveReadOutputEncoding,ei as resolveReadOutputRecoveryBudget,Io as resolveReadOutputSurface,A as resolveSubcommandFlagContractsForCommand,Jo as runWithContextIntentContracts,an as scorePmRefusalClosure,mn as scoreTrackerPreflightRecoveryClosure,Lo as stabilizeReadOutputReceiptEstimates,Tr as toCompletionFlagString,Po as validateReadOutputOptions,Mi as verifyCliFlagInvocationParity,ze as verifyExplicitPositionalSlotCensus,Ge as verifyPmCliGrammar,qe as verifyPmCommandPositionalContracts,Wi as verifyPmFlagLexicon,Kr as verifyToolOptionCliParity,Be as withFlagAliasMetadata};
3
3
  //# sourceMappingURL=sdk-contracts.js.map