@unbrained/pm-cli 2026.11.24 → 2026.11.26

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 (207) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli/commander-usage.js +9 -9
  3. package/dist/cli/error-guidance.js +5 -5
  4. package/dist/cli/help-content.js +4 -4
  5. package/dist/cli/register-setup.js +1 -1
  6. package/dist/cli/runtime/selection.js +1 -1
  7. package/dist/cli-bundle/bundle-manifest.json +1 -1
  8. package/dist/cli-bundle/chunks/{chunk-WWTPNIC2.js → chunk-5AAIRHNE.js} +2 -2
  9. package/dist/cli-bundle/chunks/chunk-5BPDT7G2.js +2 -0
  10. package/dist/cli-bundle/chunks/{chunk-ZYCOM4MS.js → chunk-5FY2VHRF.js} +5 -5
  11. package/dist/cli-bundle/chunks/{chunk-YYT3MIRF.js → chunk-6OIHST4I.js} +1 -1
  12. package/dist/cli-bundle/chunks/chunk-7F3UFYZA.js +2 -0
  13. package/dist/cli-bundle/chunks/chunk-B2GM6KOM.js +2 -0
  14. package/dist/cli-bundle/chunks/chunk-BITDGTAX.js +2 -0
  15. package/dist/cli-bundle/chunks/{chunk-DQDRA3SW.js → chunk-CBBKXTJG.js} +2 -2
  16. package/dist/cli-bundle/chunks/chunk-DUJSME77.js +3 -0
  17. package/dist/cli-bundle/chunks/{chunk-37UDIJ2K.js → chunk-DYL2N3OC.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-VJSGUXGU.js → chunk-FWBR3OW7.js} +2 -2
  19. package/dist/cli-bundle/chunks/chunk-GQXK4KKH.js +31 -0
  20. package/dist/cli-bundle/chunks/{chunk-ZOX4SWRL.js → chunk-HOLQZ56F.js} +2 -2
  21. package/dist/cli-bundle/chunks/chunk-HTGN24XM.js +3 -0
  22. package/dist/cli-bundle/chunks/{chunk-PW7U7WCE.js → chunk-IGW3RVJC.js} +2 -2
  23. package/dist/cli-bundle/chunks/chunk-KCRRTJ4X.js +125 -0
  24. package/dist/cli-bundle/chunks/{chunk-Z7MFVRDV.js → chunk-KES4VHU4.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-D6PDUKUG.js → chunk-KHFUHGL3.js} +2 -2
  26. package/dist/cli-bundle/chunks/{chunk-HNKK2UG6.js → chunk-LNZKNVMT.js} +3 -3
  27. package/dist/cli-bundle/chunks/{chunk-5DUP4AZA.js → chunk-MGJMQSN4.js} +2 -2
  28. package/dist/cli-bundle/chunks/chunk-MNFCJNQA.js +35 -0
  29. package/dist/cli-bundle/chunks/{chunk-PQUBVRV5.js → chunk-NDS4MXZX.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-TVIJ2VCU.js → chunk-PQSEEVOA.js} +6 -6
  31. package/dist/cli-bundle/chunks/chunk-QMM46SJM.js +4 -0
  32. package/dist/cli-bundle/chunks/chunk-RFK3ERYX.js +2 -0
  33. package/dist/cli-bundle/chunks/{chunk-7X253M6Z.js → chunk-SX76UGEY.js} +2 -2
  34. package/dist/cli-bundle/chunks/chunk-T3GJPXIZ.js +69 -0
  35. package/dist/cli-bundle/chunks/{chunk-FXJYZBWV.js → chunk-WZOJSHJT.js} +40 -40
  36. package/dist/cli-bundle/chunks/{chunk-23K6DQQY.js → chunk-XRCE4QNL.js} +2 -2
  37. package/dist/cli-bundle/chunks/{chunk-SSALO4DB.js → chunk-ZDL45VTB.js} +2 -2
  38. package/dist/cli-bundle/chunks/{field-option-collisions-W66HSWMK.js → field-option-collisions-CGRJEAPQ.js} +2 -2
  39. package/dist/cli-bundle/chunks/{indexed-receipt-blobs-BPYKN5Q7.js → indexed-receipt-blobs-H3MMNXXG.js} +2 -2
  40. package/dist/cli-bundle/chunks/{item-revision-D3LSBNIR.js → item-revision-FGDR5NSF.js} +2 -2
  41. package/dist/cli-bundle/chunks/item-transaction-C3KAMEYO.js +2 -0
  42. package/dist/cli-bundle/chunks/{mutation-actor-OKL3CQVX.js → mutation-actor-HGG47KXV.js} +2 -2
  43. package/dist/cli-bundle/chunks/mutation-admission-LLHIRY6O.js +2 -0
  44. package/dist/cli-bundle/chunks/{register-list-query-3LBV6CS2.js → register-list-query-EKSCZWEZ.js} +2 -2
  45. package/dist/cli-bundle/chunks/{register-mutation-72AGTMNE.js → register-mutation-ZIAOKKUJ.js} +2 -2
  46. package/dist/cli-bundle/chunks/{register-operations-XERFG2SH.js → register-operations-ECVBZ5FM.js} +2 -2
  47. package/dist/cli-bundle/chunks/register-setup-3QYD5H4H.js +2 -0
  48. package/dist/cli-bundle/chunks/{runtime-schema-JP2KBHBY.js → runtime-schema-Y4SHTEXL.js} +2 -2
  49. package/dist/cli-bundle/chunks/{settlement-hook-6MR32OOC.js → settlement-hook-ESAAEBRM.js} +2 -2
  50. package/dist/cli-bundle/chunks/{stage-T2LKWN7C.js → stage-RSCSUYEJ.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-LMU7DDOA.js → chunk-3BR5NWQI.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-46MP7IZN.js → chunk-3GQRWIT5.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-RIE3SJSE.js → chunk-4SX2BN4V.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/{chunk-RLO2HCZT.js → chunk-AAB3ZR7Z.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/chunk-AVLB4L7M.js +44 -0
  56. package/dist/cli-bundle/focused-chunks/{chunk-B6BNHKUW.js → chunk-FQWKESMI.js} +58 -59
  57. package/dist/cli-bundle/focused-chunks/{chunk-GXP7Q4XM.js → chunk-FW5Q26HA.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/chunk-GQBWI4KA.js +2 -0
  59. package/dist/cli-bundle/focused-chunks/{chunk-3ELVASVA.js → chunk-IWEGGRRD.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-Z7W2RQIB.js → chunk-JUG3BAZZ.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/chunk-KEZ4VXYD.js +2 -0
  62. package/dist/cli-bundle/focused-chunks/{chunk-A6VEMCRR.js → chunk-NGFDPEP7.js} +1 -1
  63. package/dist/cli-bundle/focused-chunks/{chunk-SMMOZ3H3.js → chunk-NSFS3VWP.js} +37 -37
  64. package/dist/cli-bundle/focused-chunks/{chunk-OZOCEB2Q.js → chunk-NXUFVQ33.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{chunk-RIQUIHYU.js → chunk-OCKKIECS.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/{chunk-UVTUX54T.js → chunk-QNWNUQSJ.js} +2 -2
  67. package/dist/cli-bundle/focused-chunks/chunk-QSRXF6XS.js +15 -0
  68. package/dist/cli-bundle/focused-chunks/chunk-R6QFPHWW.js +3 -0
  69. package/dist/cli-bundle/focused-chunks/{chunk-24VRBNKE.js → chunk-RDELKGLS.js} +2 -2
  70. package/dist/cli-bundle/focused-chunks/chunk-RFJ3MEFP.js +27 -0
  71. package/dist/cli-bundle/focused-chunks/{chunk-C7WHWI7K.js → chunk-RMJKVQYE.js} +2 -2
  72. package/dist/cli-bundle/focused-chunks/{chunk-3OCDKITJ.js → chunk-TNVLDU7Z.js} +3 -3
  73. package/dist/cli-bundle/focused-chunks/chunk-UA2JNKMY.js +4 -0
  74. package/dist/cli-bundle/focused-chunks/chunk-VV2QF5IE.js +91 -0
  75. package/dist/cli-bundle/focused-chunks/{chunk-HL47UQZJ.js → chunk-WHHFPATO.js} +2 -2
  76. package/dist/cli-bundle/focused-chunks/{chunk-YD66IRSL.js → chunk-YNRW2FWB.js} +2 -2
  77. package/dist/cli-bundle/focused-chunks/{chunk-XDBHD4CY.js → chunk-YSZZSV6M.js} +3 -3
  78. package/dist/cli-bundle/focused-chunks/{field-option-collisions-UODPSV6W.js → field-option-collisions-WV6GPYYP.js} +2 -2
  79. package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-EGEJMG3G.js → indexed-receipt-blobs-PG2VJ3MB.js} +2 -2
  80. package/dist/cli-bundle/focused-chunks/{item-revision-QH7RNBX4.js → item-revision-RPTXN7WW.js} +2 -2
  81. package/dist/cli-bundle/focused-chunks/{item-transaction-ZO72OINF.js → item-transaction-A6MVNPT7.js} +2 -2
  82. package/dist/cli-bundle/focused-chunks/{mutation-actor-PHVLKG4I.js → mutation-actor-6ZVW6OME.js} +2 -2
  83. package/dist/cli-bundle/focused-chunks/{mutation-admission-ZSG5OECH.js → mutation-admission-2DA4CINP.js} +2 -2
  84. package/dist/cli-bundle/focused-chunks/{runtime-schema-6RQMIDTN.js → runtime-schema-YXPYDD2C.js} +2 -2
  85. package/dist/cli-bundle/focused-chunks/{settlement-hook-FMLGKG7J.js → settlement-hook-4MGRERCT.js} +2 -2
  86. package/dist/cli-bundle/focused-chunks/{stage-AQMKRVX4.js → stage-RG3PKST7.js} +2 -2
  87. package/dist/cli-bundle/main.js +26 -26
  88. package/dist/cli-bundle/sdk-authoring.js +1 -1
  89. package/dist/cli-bundle/sdk-contracts.js +4 -4
  90. package/dist/cli-bundle/sdk-core.js +1 -1
  91. package/dist/cli-bundle/sdk-governance.js +1 -1
  92. package/dist/cli-bundle/sdk-graph.js +1 -1
  93. package/dist/cli-bundle/sdk-merge.js +63 -63
  94. package/dist/cli-bundle/sdk-query.js +1 -1
  95. package/dist/cli-bundle/sdk-runtime.js +1 -1
  96. package/dist/cli-bundle/sdk-testing.js +1 -1
  97. package/dist/cli-bundle/sdk.js +12 -12
  98. package/dist/core/reproducibility/context.d.ts +2 -0
  99. package/dist/core/reproducibility/context.js +1 -1
  100. package/dist/core/shared/command-line.d.ts +54 -4
  101. package/dist/core/shared/command-line.js +1 -1
  102. package/dist/core/shared/errors.d.ts +9 -0
  103. package/dist/core/shared/secret-rules.js +5 -5
  104. package/dist/core/shared/url-credentials.d.ts +16 -3
  105. package/dist/core/shared/url-credentials.js +1 -1
  106. package/dist/core/store/item-store.d.ts +26 -4
  107. package/dist/core/store/item-store.js +1 -1
  108. package/dist/sdk/cli-bootstrap.d.ts +17 -0
  109. package/dist/sdk/cli-bootstrap.js +1 -1
  110. package/dist/sdk/cli-contracts/command-aliases.js +1 -1
  111. package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
  112. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  113. package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
  114. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  115. package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
  116. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  117. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  118. package/dist/sdk/cli-contracts.d.ts +1 -1
  119. package/dist/sdk/cli-contracts.js +1 -1
  120. package/dist/sdk/command-line.d.ts +1 -1
  121. package/dist/sdk/command-line.js +1 -1
  122. package/dist/sdk/completion/shared.d.ts +1 -1
  123. package/dist/sdk/completion/shared.js +1 -1
  124. package/dist/sdk/context-intent-contracts.js +1 -1
  125. package/dist/sdk/extension/bundled-catalog.js +1 -1
  126. package/dist/sdk/extension/install-sources.js +5 -5
  127. package/dist/sdk/extension/listing-fields.d.ts +15 -0
  128. package/dist/sdk/extension/listing-fields.js +2 -0
  129. package/dist/sdk/extension/managed-update-status.js +1 -1
  130. package/dist/sdk/extension/npm-spec.d.ts +18 -0
  131. package/dist/sdk/extension/npm-spec.js +2 -0
  132. package/dist/sdk/extension/static-inventory.d.ts +53 -1
  133. package/dist/sdk/extension/static-inventory.js +1 -1
  134. package/dist/sdk/extension/update-check.js +1 -1
  135. package/dist/sdk/extension/update-observations.js +3 -0
  136. package/dist/sdk/extension/upgrade-hints.js +2 -0
  137. package/dist/sdk/extension.d.ts +2 -0
  138. package/dist/sdk/extension.js +1 -1
  139. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  140. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  141. package/dist/sdk/governance/tracked-runtime-cache.js +1 -1
  142. package/dist/sdk/governance/upgrade.d.ts +7 -2
  143. package/dist/sdk/governance/upgrade.js +2 -2
  144. package/dist/sdk/index.d.ts +1 -1
  145. package/dist/sdk/lifecycle/claim.d.ts +21 -1
  146. package/dist/sdk/lifecycle/claim.js +1 -1
  147. package/dist/sdk/lifecycle/task-composition.js +1 -1
  148. package/dist/sdk/ownership-source.d.ts +15 -1
  149. package/dist/sdk/ownership-source.js +1 -1
  150. package/dist/sdk/public-surface.json +1 -1
  151. package/dist/sdk/query/context.d.ts +20 -7
  152. package/dist/sdk/query/context.js +4 -2
  153. package/dist/sdk/runtime-input.js +1 -1
  154. package/dist/sdk/runtime-primitives.d.ts +1 -1
  155. package/dist/sdk/testing.d.ts +20 -2
  156. package/docs/AGENT_GUIDE.md +2 -2
  157. package/docs/COMMANDS.md +19 -1
  158. package/docs/CONFIGURATION.md +1 -0
  159. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +6 -0
  160. package/docs/EXTENSION_LIFECYCLE.md +72 -2
  161. package/docs/MUTATION_INTEGRITY.md +97 -8
  162. package/docs/SDK.md +61 -5
  163. package/docs/WORKSPACE_POSITION_AND_LIFECYCLE.md +17 -4
  164. package/marketplace.json +1 -1
  165. package/package.json +1 -1
  166. package/packages/pm-beads/package.json +1 -1
  167. package/packages/pm-calendar/package.json +1 -1
  168. package/packages/pm-command-kit/package.json +1 -1
  169. package/packages/pm-digital-twin/package.json +1 -1
  170. package/packages/pm-governance-audit/package.json +1 -1
  171. package/packages/pm-guide-shell/package.json +1 -1
  172. package/packages/pm-kanban/package.json +1 -1
  173. package/packages/pm-lifecycle-hooks/package.json +1 -1
  174. package/packages/pm-linked-test-adapters/package.json +1 -1
  175. package/packages/pm-search-advanced/package.json +1 -1
  176. package/packages/pm-templates/package.json +1 -1
  177. package/packages/pm-todos/package.json +1 -1
  178. package/packages/pm-vcs/package.json +1 -1
  179. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  180. package/plugins/pm-claude/package.json +1 -1
  181. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  182. package/plugins/pm-codex/package.json +1 -1
  183. package/plugins/pm-codex/plugin.json +1 -1
  184. package/runtime-dependencies.json +1 -1
  185. package/dist/cli-bundle/chunks/chunk-7IROAPWI.js +0 -3
  186. package/dist/cli-bundle/chunks/chunk-7VRFEURZ.js +0 -33
  187. package/dist/cli-bundle/chunks/chunk-AWB5KBJS.js +0 -2
  188. package/dist/cli-bundle/chunks/chunk-I2OJ5B4A.js +0 -2
  189. package/dist/cli-bundle/chunks/chunk-I3BFCKZR.js +0 -2
  190. package/dist/cli-bundle/chunks/chunk-MXUSC5RS.js +0 -31
  191. package/dist/cli-bundle/chunks/chunk-PLIUU37C.js +0 -3
  192. package/dist/cli-bundle/chunks/chunk-STOOTHZZ.js +0 -2
  193. package/dist/cli-bundle/chunks/chunk-TKRY22SO.js +0 -2
  194. package/dist/cli-bundle/chunks/chunk-XFADNMGD.js +0 -2
  195. package/dist/cli-bundle/chunks/chunk-YOPTAIBD.js +0 -125
  196. package/dist/cli-bundle/chunks/chunk-YW2HBHRO.js +0 -70
  197. package/dist/cli-bundle/chunks/item-transaction-M6NTBYH3.js +0 -2
  198. package/dist/cli-bundle/chunks/mutation-admission-EKPEOZMF.js +0 -2
  199. package/dist/cli-bundle/chunks/register-setup-W22L34Z4.js +0 -2
  200. package/dist/cli-bundle/focused-chunks/chunk-3GT4A3ZN.js +0 -44
  201. package/dist/cli-bundle/focused-chunks/chunk-3Z7MCUJM.js +0 -3
  202. package/dist/cli-bundle/focused-chunks/chunk-5LDBS6MS.js +0 -91
  203. package/dist/cli-bundle/focused-chunks/chunk-EUQGZPGO.js +0 -2
  204. package/dist/cli-bundle/focused-chunks/chunk-FDZPRJXJ.js +0 -27
  205. package/dist/cli-bundle/focused-chunks/chunk-LMFIAQ2V.js +0 -2
  206. package/dist/cli-bundle/focused-chunks/chunk-Q2HY44LV.js +0 -13
  207. package/dist/cli-bundle/focused-chunks/chunk-REFMQY47.js +0 -2
@@ -1,3 +0,0 @@
1
- import{D as U,R as v}from"./chunk-7X253M6Z.js";import{A as l,C as m}from"./chunk-YYT3MIRF.js";import me from"node:crypto";function pe(e){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return e.toString();if(e===void 0)return"undefined";if(typeof e=="symbol")return e.toString();if(typeof e=="function")return`[function:${e.name||"anonymous"}]`}function ge(e){let t=Object.keys(e).sort(),n={};for(let r of t){let o=e[r];o!==void 0&&(n[r]=b(o))}return n}function b(e){let t=pe(e);if(t!==void 0)return t;if(Array.isArray(e))return e.map(r=>b(r));if(e instanceof Date)return e.toISOString();let n=e;if(typeof n.toJSON=="function"){let r=n.toJSON();if(r!==e)return b(r)}return ge(e)}function _(e){return JSON.stringify(b(e))}function j(e,t,n,r){for(let o=0;o<t.length;o+=1)if(!n.has(o)&&r(e,t[o]))return n.add(o),!0;return!1}function ye(e,t){if(e instanceof RegExp||t instanceof RegExp)return e instanceof RegExp&&t instanceof RegExp&&e.toString()===t.toString()}function he(e,t){if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}function _e(e,t){if(!(e instanceof Set||t instanceof Set))return;if(!(e instanceof Set&&t instanceof Set)||e.size!==t.size)return!1;let n=[...t],r=new Set;for(let o of e)if(!j(o,n,r,E))return!1;return!0}function Se(e,t){if(!(e instanceof Map||t instanceof Map))return;if(!(e instanceof Map&&t instanceof Map)||e.size!==t.size)return!1;let n=[...t.entries()],r=new Set;for(let[o,i]of e.entries())if(!j([o,i],n,r,([a,u],[c,f])=>E(a,c)&&E(u,f)))return!1;return!0}function Ae(e,t){if(Array.isArray(e)||Array.isArray(t))return!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length?!1:e.every((n,r)=>E(n,t[r]))}function Ee(e,t){let n=Object.keys(e).sort((o,i)=>o.localeCompare(i)),r=Object.keys(t).sort((o,i)=>o.localeCompare(i));if(n.length!==r.length)return!1;for(let o=0;o<n.length;o+=1){let i=n[o];if(i!==r[o]||!E(e[i],t[i]))return!1}return!0}var be=[ye,he,_e,Se,Ae];function E(e,t){if(Object.is(e,t))return!0;if(e===null||t===null||typeof e!="object"||typeof t!="object")return!1;for(let n of be){let r=n(e,t);if(r!==void 0)return r}return Ee(e,t)}function Et(e){return me.createHash("sha256").update(e,"utf8").digest("hex")}function bt(e,t){let n={};for(let o of t){let i=e[o];i!==void 0&&(n[o]=i)}let r=Object.keys(e).filter(o=>!t.includes(o)).sort((o,i)=>o.localeCompare(i));for(let o of r){let i=e[o];i!==void 0&&(n[o]=i)}return n}var $e=[["history-redact","history redact"],["history-repair","history repair"],["history-compact","history compact"],["activity","history activity"],["restore","history restore"]].map(([e,t])=>({alias:e,canonical:t,canonical_argv:t.split(" "),lifecycle:"permanent",hidden:!0,registration:"commander",owner:"pm-tqel"})),xe=[...["next","focus"].map(e=>({alias:e,canonical:`context ${e}`,owner:"pm-kcs4"})),...["stats","health","validate","gc","telemetry","eval","test-all"].map(e=>({alias:e,canonical:`ops ${e}`,owner:"pm-6apl"})),...["normalize","reindex"].map(e=>({alias:e,canonical:`ops ${e}`,owner:"pm-3i9q8g"})),{alias:"events",canonical:"history events",owner:"pm-3i9q8g"}].map(e=>({...e,canonical_argv:e.canonical.split(" "),lifecycle:"permanent",hidden:!0,registration:"bootstrap"})),we=[["update-many","update many"],["close-many","close many"],["delete","close delete"]].map(([e,t])=>({alias:e,canonical:t,canonical_argv:t.split(" "),lifecycle:"permanent",hidden:!0,registration:"bootstrap",owner:"pm-ik19"})),Ce=[...xe,...we,...["init","config","schema","profile"].map(e=>({alias:e,canonical:`workspace ${e}`,canonical_argv:["workspace",e],lifecycle:"permanent",hidden:!0,registration:"bootstrap",owner:"pm-npr3"})),...[...["comments","notes","learnings","files","docs","deps","append","test"].map(e=>[e,`item ${e}`,"pm-yql1"]),["test-runs-worker","item test worker","pm-lp4j"],...["statuses","tags","types"].map(e=>[`completion-${e}`,`completion ${e}`,"pm-szdc"]),["history-author-acknowledge","history acknowledge","pm-djyvbk"],["copy","item copy","pm-m6g87m"],["merge","workspace merge","pm-m6g87m"],["duplicates","item duplicates","pm-fmy9ih"],["dedupe-audit","item duplicates audit","pm-fmy9ih"],["dedupe-merge","item duplicates merge","pm-fmy9ih"],["comments-audit","item audit-comments","pm-fmy9ih"],["search-advanced","search advanced","pm-wfskfn"],...["meet","event","remind"].map(e=>[e,`calendar ${e}`,"pm-o3fh"])].map(([e,t,n])=>({alias:e,canonical:t,canonical_argv:t.split(" "),lifecycle:"permanent",hidden:!0,registration:"bootstrap",owner:n}))],T=[{alias:"history-attest",canonical:"history attest",canonical_argv:["history","attest"],lifecycle:"permanent",hidden:!0,registration:"commander",owner:"pm-3z0k"},...$e,...Ce,...["discover","lookup"].map(e=>({alias:`files ${e}`,canonical:`item files ${e}`,canonical_argv:["item","files",e],lifecycle:"permanent",hidden:!0,registration:"bootstrap",owner:"pm-yql1"}))];function xt(e){let t;for(let n of T)n.canonical_argv.length<=(t?.canonical_argv.length??0)||n.canonical_argv.every((r,o)=>r===(o===0&&e[o]==="ctx"?"context":e[o]))&&(t=n);return t}function Oe(e){let t=e.trim().replace(/\s+/gu," ");return T.find(n=>n.canonical===t.replace(/^ctx /u,"context "))?.alias??t}function wt(e){return Oe(e)}var q=[...T,...[["ctx","context"],["packages","package"]].map(([e,t])=>({alias:e,canonical:t,canonical_argv:[t],lifecycle:"permanent",hidden:!1,registration:"commander",owner:"pm-pbyu"})),...[["start-task","claim","--start"],["pause-task","release","--pause"],["close-task","close","--release-assignment"]].map(([e,t,n])=>({alias:e,canonical:t,canonical_argv:[t,n],lifecycle:"deprecated",hidden:!0,registration:"commander",owner:"pm-eq4x"})),{alias:"tests",canonical:"item test",canonical_argv:["item","test"],lifecycle:"permanent",hidden:!1,registration:"bootstrap",owner:"pm-u4t9gp"},...[["fetch","get"],["read","get"],["show","get"],["view","get"],["comment","comments"],["note","notes"],["learning","learnings"]].map(([e,t])=>({alias:e,canonical:["comments","notes","learnings"].includes(t)?`item ${t}`:t,canonical_argv:["comments","notes","learnings"].includes(t)?["item",t]:[t],lifecycle:"permanent",hidden:!1,registration:"bootstrap",owner:"pm-pbyu"})),...[["extension list","extension catalog"],["extension scaffold","extension init"],["package list","package catalog"],["package scaffold","package init"],["packages list","package catalog"],["packages scaffold","package init"]].map(([e,t])=>({alias:e,canonical:t,canonical_argv:t.split(" "),lifecycle:"permanent",hidden:!1,registration:"commander",owner:"pm-ya7x55"})),{alias:"list-all",canonical:"list",canonical_argv:["list","--all"],lifecycle:"deprecated",hidden:!0,registration:"commander",owner:"pm-pfqi"},...[["list-draft","draft"],["list-open","open"],["list-in-progress","in_progress"],["list-blocked","blocked"],["list-closed","closed"],["list-canceled","canceled"]].map(([e,t])=>({alias:e,canonical:"list",canonical_argv:["list","--status",t],lifecycle:"deprecated",hidden:!0,registration:"commander",owner:"pm-pfqi"})),...[["extension","package"],["install","package install"],["upgrade","package upgrade"]].map(([e,t])=>({alias:e,canonical:t,canonical_argv:t.split(" "),lifecycle:"deprecated",hidden:!0,registration:"commander",owner:"pm-tnud"}))],Ct=Object.fromEntries(q.filter(e=>e.registration==="bootstrap").map(e=>[e.alias,e.canonical]));function Ot(e){let t=e.trim().toLowerCase();return q.find(n=>n.alias===t)}function Tt(e){return`Deprecated command \`${e.alias}\`; use \`pm ${e.canonical_argv.join(" ")}\`.`}var M=e=>{let t='"',n=0;for(let r of e){if(r==="\\"){n+=1;continue}t+="\\".repeat(r==='"'?n*2+1:n),t+=r,n=0}return`${t}${"\\".repeat(n*2)}"`},Te=(e,t=process.platform)=>(t==="win32"?/^[A-Za-z0-9._:/\\@=-]+$/:/^[A-Za-z0-9._:/@=-]+$/).test(e)?e:t==="win32"?M(e):`"${e.replace(/(["\\$`])/g,"\\$1")}"`,Rt=(e,t=process.platform)=>{let n=e.map(r=>Te(r,t)).join(" ");return n.length>0?`pm ${n}`:"pm"};import{AsyncLocalStorage as Me}from"node:async_hooks";var z="[redacted]";function Re(e,t){if(/[\t\n\r]/u.test(e)||!/(?:^|[^A-Za-z0-9+.-])(?:https?|wss?|ftp)$/iu.test(e.slice(0,t)))return!1;let n=t+1;for(;e[n]==="/"||e[n]==="\\";)n+=1;let r=e.indexOf("/",n)-n;if(r<0)return!1;let o=n+r;return!/[:@%]/u.test(e.slice(n,o))&&!/[:%]|[/\\][/\\]/u.test(e.slice(o))}function I(e){let t=Math.max(e.lastIndexOf("@"),e.toLowerCase().lastIndexOf("%40")),n=e.indexOf(":");if(t<0||n<0||n>t)return;let r=n+1;for(;r<t&&r<n+3&&(e[r]==="/"||e[r]==="\\");)r+=1;return r===t||Re(e,n)?void 0:[r,t]}function V(e){let t=I(e);return t?`${e.slice(0,t[0])}${z}${e.slice(t[1])}`:e}function H(e){return V(e)}var G=["author","assignee","claim_principal"];function Ft(e){let t={...e};for(let n of G)typeof t[n]=="string"&&(t[n]=H(t[n]));return t}function W(e,t){if(!(typeof e!="string"||I(e.trim())===void 0))throw new m(`${t} must not carry URL credentials: an identity is a name, never a credential.`,l.USAGE,{code:"invalid_argument_value",field:t,required:`Set ${t} to a plain name such as agent-a, with no URL userinfo (no user, password or token before the host).`,nextSteps:[`Rerun with ${t} set to a plain name.`],url_credentials_rejected:{source:t}})}function Pt(e,t){return W(e,t),e}var Ie=[["comments","author"],["notes","author"],["learnings","author"],["dependencies","author"],["plan_decisions","author"],["plan_discoveries","author"],["plan_steps","owner"],["tests","provenance","author"],["tests","updated_by"]],Ne=4;function R(e,t,n=0){if(typeof e=="string"){W(e,t);return}if(!(n>=Ne||typeof e!="object"||e===null))for(let r of Object.values(e))R(r,t,n+1)}function ke(e,t){let n=e;for(let r of t){if(typeof n!="object"||n===null||Array.isArray(n))return;n=n[r]}return n}function B(e){let t=e;for(let n of G)R(t[n],n);for(let[n,...r]of Ie){let o=t[n];Array.isArray(o)&&o.forEach((i,s)=>{R(ke(i,r),`${n}[${s}].${r.join(".")}`)})}}function Ut(e){return typeof e=="string"?H(e):e}var $=6,De=65536,K={carried:!1,fragments:new Set,fragmentLength:$,shortSpellings:[]},N=new Me;function Y(e){let t=e.toLowerCase();if(t.length===e.length)return t;let n="";for(let r of e){let o=r.toLowerCase();n+=o.length===r.length?o:r}return n}function Le(e){return[e,e.replaceAll(/(["\\$`])/gu,"\\$1"),M(`${e}@`).slice(1,-2),JSON.stringify(e).slice(1,-1)]}function Fe(e){let t=e.indexOf(":");return t>=0&&t<e.length-1?e.slice(t+1):e}function Pe(e){let t=new Set,n=!1;for(let c of e){let f=I(c);if(f){n=!0;for(let d of Le(Fe(c.slice(f[0],f[1]))))t.add(Y(d))}}let r=[...t],o=r.reduce((c,f)=>c+Math.max(0,f.length-$+1)+1,0),i=Math.max(1,Math.ceil(o/De)),s=Math.max($,i),a=new Set,u=new Set;for(let c of r){if(c.length<s){(c.length>=$||/\s/u.test(c))&&u.add(c);continue}for(let f=0;f+s<=c.length;f+=i)a.add(c.slice(f,f+s));a.add(c.slice(-s))}return{carried:n,fragments:a,fragmentLength:s,shortSpellings:[...u]}}function Ue(e,t){let n=Y(e),r=new Uint8Array(e.length),o=!1,i=t.fragmentLength;for(let a=0;a+i<=n.length;a+=1)t.fragments.has(n.slice(a,a+i))&&(r.fill(1,a,a+i),o=!0);for(let a of t.shortSpellings)for(let u=n.indexOf(a);u>=0;u=n.indexOf(a,u+1))r.fill(1,u,u+a.length),o=!0;if(!o)return e;let s="";for(let a=0;a<e.length;a+=1)r[a]?(a===0||!r[a-1])&&(s+=z):s+=e[a];return s}function vt(e,t){return N.run(Pe(e),t)}function jt(){return(N.getStore()??K).carried}function qt(e){let t=N.getStore()??K,n=t.carried?Ue(e,t):e;return/@|%40/iu.test(n)?n.replaceAll(/\S+/gu,V):n}import ve from"node:crypto";import{AsyncLocalStorage as je}from"node:async_hooks";var k=new je,J=1024;function qe(e){let t=Date.parse(e.clock);if(!Number.isFinite(t))throw new Error(`Invalid reproducible workspace clock: ${e.clock}`);if(!Number.isSafeInteger(e.tickMs)||e.tickMs<0)throw new Error("Reproducible workspace tickMs must be a non-negative integer");if(e.seed.trim().length===0)throw new Error("Reproducible workspace seed must not be empty");return{...e,clock:new Date(t).toISOString()}}function ze(e){let n={...qe(e),clockReads:0,tokenReads:0};return r=>k.run(n,r)}async function Gt(e,t){return ze(e)(t)}function Z(){let e=k.getStore();if(e===void 0)return;let t=new Date(Date.parse(e.clock)+e.clockReads*e.tickMs).toISOString();return e.clockReads+=1,t}function Wt(e){let t=k.getStore();if(t===void 0)return;if(!Number.isSafeInteger(e)||e<0||e>J)throw new Error(`Reproducible token length must be an integer between 0 and ${J}`);let n="";for(;n.length<e;){let r=ve.createHash("sha256").update(`${t.seed}\0${t.tokenReads}`).digest();t.tokenReads+=1;for(let o of r)if(n+=(o%36).toString(36),n.length===e)break}return n}var Ve=/^([+-]?)(\d+)([hdwm])$/i,He=/^[+-]?\d+[hdwm](?:[+-]\d+[hdwm])+$/i,Ge=/^(\d{4})(\d{2})(\d{2})$/,We=/^(\d{4})(\d{2})(\d{2})(?:[T\s]?)(\d{2})(\d{2})(\d{2})?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i,Be=/^(\d{4}-\d{2}-\d{2})[T\s](\d{2})-(\d{2})(?:-(\d{2}))?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i,Ke=/^(\d{4}-\d{2}-\d{2})[T\s](\d{2})(\d{2})(\d{2})?([.,]\d{1,3})?(Z|[+-]\d{2}:?\d{2})?$/i,Ye=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:Z|[+-](\d{2}):(\d{2}))$/i;function Xt(){return Z()??new Date().toISOString()}function Qt(e){return Number.isFinite(Date.parse(e))}function F(e){let t=Ye.exec(e);if(!t||!Number.isFinite(Date.parse(e)))return!1;let[,n,r,o,i,s,a,u,c]=t,[f,d,p,y,g,h]=[n,r,o,i,s,a].map(Number);return d>=1&&d<=12&&p>=1&&p<=P(f,d-1)&&y<=23&&g<=59&&h<=59&&(u===void 0||Number(u)<=23)&&(c===void 0||Number(c)<=59)}function en(e){let t=/\.(\d+)(?:Z|[+-]\d{2}:\d{2})$/iu.exec(e)?.[1];return F(e)&&(t===void 0||/^\d{0,3}0*$/u.test(t))}var Je=1e4,x=new Map;function X(e){let t=x.get(e);if(t!==void 0)return t;let n=Date.parse(e);return x.size>=Je&&U(x),x.set(e,n),n}function A(e,t){let n=X(e),r=X(t);return Number.isFinite(n)&&Number.isFinite(r)&&n!==r?n-r:e.localeCompare(t)}function tn(e,t){return!(t.deadlineBefore&&(!e.deadline||A(e.deadline,t.deadlineBefore)>0)||t.deadlineAfter&&(!e.deadline||A(e.deadline,t.deadlineAfter)<0)||t.updatedAfter&&A(e.updated_at,t.updatedAfter)<0||t.updatedBefore&&A(e.updated_at,t.updatedBefore)>0||t.createdAfter&&A(e.created_at,t.createdAfter)<0||t.createdBefore&&A(e.created_at,t.createdBefore)>0)}function D(e){return e?`.${e.slice(1).padEnd(3,"0").slice(0,3)}`:""}function L(e){if(!e)return"";if(e.toUpperCase()==="Z")return"Z";let t=/^([+-]\d{2})(\d{2})$/.exec(e);return t?`${t[1]}:${t[2]}`:e}function Ze(e,t,n){n&&n!==t&&(e.includes(n)||e.push(n))}function Xe(e){let t=[],n=c=>Ze(t,e,c),r=Ge.exec(e);if(r){let[,c,f,d]=r;n(`${c}-${f}-${d}`)}let o=We.exec(e);if(o){let[,c,f,d,p,y,g,h,de]=o,le=g?`:${g}`:"";n(`${c}-${f}-${d}T${p}:${y}${le}${D(h)}${L(de)}`)}let i=Be.exec(e);if(i){let[,c,f,d,p,y,g]=i,h=p?`:${p}`:"";n(`${c}T${f}:${d}${h}${D(y)}${L(g)}`)}let s=Ke.exec(e);if(s){let[,c,f,d,p,y,g]=s,h=p?`:${p}`:"";n(`${c}T${f}:${d}${h}${D(y)}${L(g)}`)}let a=10,u=e.slice(0,a);if(et(u)){let c=a;for(;c<e.length&&tt(e[c]);)c+=1;c<e.length&&n(`${u}T${e.slice(c)}`)}return t}function Qe(e){let t=Date.parse(e);if(Number.isFinite(t))return t;for(let n of Xe(e)){let r=Date.parse(n);if(Number.isFinite(r))return r}return Number.NaN}function et(e){if(e.length!==10)return!1;for(let t=0;t<e.length;t+=1){let n=e[t];if(t===4||t===7){if(n!=="-")return!1;continue}let r=n.charCodeAt(0);if(r<48||r>57)return!1}return!0}function tt(e){return e?e===" "||e===" "||e===`
2
- `||e==="\r"||e==="\f"||e==="\v":!1}function P(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}var nt=["January","February","March","April","May","June","July","August","September","October","November","December"],rt=/^(\d{4})-(\d{2})-(\d{2})/,ot=/^(\d{4})(\d{2})(\d{2})(?:[T ]?\d{2}|$)/;function it(e,t,n){let r=rt.exec(t)??ot.exec(t);if(!r)return;let o=Number.parseInt(r[1],10),i=Number.parseInt(r[2],10),s=Number.parseInt(r[3],10),a=n?.trim()||"deadline";if(i<1||i>12)throw new m(`Invalid ${a} value "${e}". Month "${r[2]}" is out of range \u2014 use a month between 01 and 12.`,l.USAGE,{field:a,value:e});let u=P(o,i-1);if(s<1||s>u)throw new m(`Invalid ${a} value "${e}". ${nt[i-1]} ${o} has ${u} days, so day "${r[3]}" does not exist. Use a real YYYY-MM-DD calendar date.`,l.USAGE,{field:a,value:e})}function at(e,t){let n=new Date(e.getTime()),r=n.getUTCDate(),o=n.getUTCMonth()+t,i=n.getUTCFullYear()+Math.floor(o/12),s=(o%12+12)%12,a=Math.min(r,P(i,s));return n.setUTCFullYear(i,s,a),n}function nn(e,t=new Date,n="deadline"){let r=e.trim();if(r.toLowerCase()==="now")return t.toISOString();let o=Ve.exec(r);if(o){let s=o[1]==="-"?-1:1,a=Number.parseInt(o[2],10)*s,u=o[3].toLowerCase();if(u==="m")return at(t,a).toISOString();let c=u==="h"?3600*1e3:u==="d"?1440*60*1e3:10080*60*1e3;return new Date(t.getTime()+a*c).toISOString()}it(e,r,n);let i=Qe(r);if(!Number.isFinite(i)){let s=n.trim().length>0?n.trim():"deadline",a=He.test(r)?"Compound relative expressions like +3d+1h are not supported; use a single relative token (for example +3d) or an ISO/date string.":'Use ISO/date string input, "now", or relative +6h/-6h/+1d/-1d/+2w/-2w/+6m/-6m.';throw new m(`Invalid ${s} value "${e}". ${a}`,l.USAGE,{field:s,value:e})}return new Date(i).toISOString()}function st(e){let t=e.trim();return t.startsWith("-")&&!t.startsWith("--")}var Q=/[\s|,=<>[\]]/u;function ct(e){let t=e.trim();if(st(t))return t.length===2&&!Q.test(t[1])?void 0:"is not a short flag: a short flag is one dash and one character";let n=t.replace(/^--/u,"");if(n.length===0)return"is empty";if(n.startsWith("-"))return"starts with three dashes";if(n.endsWith("-")||n.includes("--"))return"has an empty segment between hyphens, which the option parser cannot turn into an option key";let r=Q.exec(n)?.[0];if(r!==void 0)return/\s/u.test(r)?"contains whitespace, which the option parser reads as a break between two flags":`contains ${JSON.stringify(r)}, which the option parser reads as ${r==="|"||r===","?"a break between two flags":r==="="?"the start of an attached value":"a value placeholder"}`}var ut=new Set(["-h","help"]);function ee(e){let t=e.trim();return ct(t)===void 0&&!ut.has(t.replace(/^--/u,""))}var ft=16;function w(e){let t=e.trim().replaceAll(/[^A-Za-z0-9]+/g," ").split(/\s+/).filter(o=>o.length>0).map(o=>o.toLowerCase());if(t.length===0)return e;let[n,...r]=t;return`${n}${r.map(o=>`${o.slice(0,1).toUpperCase()}${o.slice(1)}`).join("")}`}function mn(e,t,n=new Set,r){if(oe(e,t,r))return;let o=ie(e,t,n,r),i=C(e);return[w(e.cli_flag),...i].find(a=>!o.has(a)&&re(a,i,o))}function re(e,t,n){for(let r of t){if(r===e)break;if(n.has(r))return!1}return!0}function oe(e,t,n){return t.definitions.some(r=>r!==e&&r.metadata_key===e.metadata_key&&(n===void 0||r.commands.includes(n)))}function ie(e,t,n,r){return new Set([...n,...t.definitions.filter(o=>o!==e&&(r===void 0||o.commands.includes(r))).flatMap(o=>C(o))])}function ae(e){return e.replace(/^-+/u,"").startsWith("no-")}function dt(e){return e.startsWith("-")?e:`--${e}`}function pn(e,t,n,r){if(oe(e,t,r))return;let o=ie(e,t,n.options,r),i=C(e);return[e.cli_flag,...e.cli_aliases].find(s=>{if(!ee(s))return!1;let a=se(s);return ae(s)||n.flags.has(dt(s))||o.has(a)?!1:re(a,i,o)})}function se(e){return e.replace(/^-+/u,"").replace(/^no-/u,"").split("-").reduce((t,n)=>`${t}${n.charAt(0).toUpperCase()}${n.slice(1)}`)}function C(e){return[...new Set([v(e),w(e.key),w(e.cli_flag),...e.cli_aliases.map(t=>w(t)),...[e.cli_flag,...e.cli_aliases].filter(t=>!ae(t)).map(t=>se(t))])]}function ce(e,t){for(let n of C(t)){if(!Object.hasOwn(e,n))continue;let r=e[n];if(r!==void 0)return r}}function ue(e){return Array.isArray(e)?e.flatMap(t=>ue(t)).map(t=>t.trim()).filter(t=>t.length>0):typeof e=="string"?e.split(/[,\n|]/).map(t=>t.trim()).filter(t=>t.length>0):e==null?[]:[String(e).trim()].filter(t=>t.length>0)}function te(e,t){if(typeof e=="boolean")return e;if(typeof e=="number"){if(e===1)return!0;if(e===0)return!1}if(typeof e=="string"){let n=e.trim().toLowerCase();if(n==="true"||n==="1"||n==="yes")return!0;if(n==="false"||n==="0"||n==="no")return!1}throw new m(`${t} must be one of true|false|1|0|yes|no`,l.USAGE)}function ne(e,t){if(typeof e=="number"&&Number.isFinite(e))return e;let n=typeof e=="string"?e.trim():String(e),r=Number(n);if(!Number.isFinite(r))throw new m(`${t} must be a number`,l.USAGE);return r}function lt(e,t,n){let r=typeof e=="string"?(()=>{try{return JSON.parse(e)}catch{return}})():e;if(n==="array"&&Array.isArray(r)||n==="object"&&typeof r=="object"&&r!==null&&!Array.isArray(r))return r;throw new m(`${t} must be valid JSON ${n}`,l.USAGE)}function mt(e,t){return t===void 0?!0:t==="array"?Array.isArray(e):t==="object"?typeof e=="object"&&e!==null&&!Array.isArray(e):typeof e===t}function pt(e,t,n){if(t.const!==void 0&&_(e)!==_(t.const))return`${n} must equal ${_(t.const)}`;if(t.enum!==void 0&&!t.enum.some(r=>_(r)===_(e)))return`${n} must be one of ${t.enum.map(r=>_(r)).join("|")}`;if(!mt(e,t.type))return`${n} must match configured type ${String(t.type)}`;if(typeof e=="string"){if(t.min_length!==void 0&&e.length<t.min_length)return`${n} must contain at least ${t.min_length} characters`;if(t.format==="date-time"&&!F(e))return`${n} must be an RFC 3339 date-time`}}function gt(e,t,n,r){if(Array.isArray(e)){if(t.min_items!==void 0&&e.length<t.min_items)return`${n} must contain at least ${t.min_items} items`;if(t.items)for(let[o,i]of e.entries()){let s=O(i,t.items,`${n}[${o}]`,r+1);if(s)return s}}}function yt(e,t,n,r){if(typeof e!="object"||e===null||Array.isArray(e))return;let o=e;for(let i of t.required??[])if(!Object.hasOwn(o,i))return`${n}.${i} is required`;for(let[i,s]of Object.entries(o)){let a=t.properties?.[i];if(!a){if(t.additional_properties===!1)return`${n}.${i} is not allowed`;continue}let u=O(s,a,`${n}.${i}`,r+1);if(u)return u}}function O(e,t,n,r=0){if(r>ft)return`${n} value schema exceeds maximum depth`;let o=pt(e,t,n);if(o)return o;let i=gt(e,t,n,r);if(i)return i;let s=yt(e,t,n,r);if(s)return s;if(!t.one_of)return;let a=0;for(let u of t.one_of)if(O(e,u,n,r+1)===void 0&&(a+=1,a>1))break;return a===1?void 0:`${n} must match exactly one configured schema variant`}function S(e,t,n){if(!e.value_schema||t===void 0)return t;let r=O(t,e.value_schema,n);if(r)throw new m(r,l.USAGE);return t}function ht(e,t,n,r){let o=r==="option"&&Array.isArray(t)?t[t.length-1]:t;if(o!==void 0)return S(e,lt(o,n,e.type),n)}function fe(e,t,n,r="option"){let o=n??`--${e.cli_flag}`;if(e.type==="array"||e.type==="object")return ht(e,t,o,r);if(e.repeatable||e.type==="string_array"){let s=ue(t);return e.type==="number"?S(e,s.map(a=>ne(a,o)),o):e.type==="boolean"?S(e,s.map(a=>te(a,o)),o):S(e,s,o)}let i=Array.isArray(t)?t[t.length-1]:t;if(i!==void 0)return e.type==="number"?S(e,ne(i,o),o):e.type==="boolean"?S(e,te(i,o),o):S(e,typeof i=="string"?i:String(i),o)}function _t(e,t){return!e.required&&!e.required_on_create?!1:e.required_types.length===0?!0:t?e.required_types.map(n=>n.toLowerCase()).includes(t.trim().toLowerCase()):!1}function gn(e,t,n){let r={},o=[];for(let i of t.command_to_fields.get("create")??[]){let s=ce(e,i);if(s===void 0){_t(i,n)&&o.push(`--${i.cli_flag}`);continue}r[i.metadata_key]=fe(i,s)}return{values:r,missing_required_flags:[...new Set(o)].sort((i,s)=>i.localeCompare(s))}}function yn(e,t,n=["update"]){let r={},o=(n??["update"]).flatMap(s=>t.command_to_fields.get(s)??[]),i=new Set;for(let s of o){let a=ce(e,s);a!==void 0&&(i.has(s.metadata_key)||(i.add(s.metadata_key),r[s.metadata_key]=fe(s,a)))}return B(r),r}var St=Object.freeze([{flag:"--json"},{flag:"--lean"},{flag:"--token-accounting"},{flag:"--output-include",value_name:"fields",extension_command_availability:"read_output"},{flag:"--output-limit",value_name:"count",extension_command_availability:"read_output"},{flag:"--output-budget",value_name:"tokens",extension_command_availability:"read_output"},{flag:"--output-format",value_name:"toon|json"},{flag:"--output-session",value_name:"state",extension_command_availability:"read_output"},{flag:"--output-cursor",value_name:"cursor",extension_command_availability:"read_output"},{flag:"--output-row-contract",extension_command_availability:"read_output"},{flag:"--quiet"},{flag:"--no-changed-fields"},{flag:"--full-changed-fields"},{flag:"--id-only"},{flag:"--pm-path",aliases:["--path"],discovery_value_name:"path"},{flag:"--no-extensions",extension_command_availability:"never"},{flag:"--no-pager"},{flag:"--profile"},{flag:"--help"},{flag:"--author",value_name:"id"},{flag:"--expect-hash",value_name:"revision"}]),_n=new Set(St.flatMap(e=>[e.flag,...e.aliases??[]]));export{_ as a,E as b,Et as c,bt as d,$e as e,xe as f,we as g,Ce as h,T as i,xt as j,Oe as k,wt as l,q as m,Ct as n,Ot as o,Tt as p,M as q,Te as r,Rt as s,z as t,V as u,H as v,Ft as w,W as x,Pt as y,B as z,Ut as A,vt as B,jt as C,qt as D,St as E,_n as F,qe as G,ze as H,Gt as I,Wt as J,Xt as K,Qt as L,F as M,en as N,A as O,tn as P,nn as Q,st as R,ct as S,ee as T,mn as U,dt as V,pn as W,se as X,C as Y,ce as Z,fe as _,_t as $,gn as aa,yn as ba};
3
- //# sourceMappingURL=chunk-7IROAPWI.js.map