@unbrained/pm-cli 2026.11.22 → 2026.11.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (892) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli/after-command-context-usage.js +1 -1
  3. package/dist/cli/argv-utils.js +1 -1
  4. package/dist/cli/bootstrap-args.js +1 -1
  5. package/dist/cli/bundle-integrity.js +2 -2
  6. package/dist/cli/command-namespaces.js +1 -1
  7. package/dist/cli/commander-usage.js +11 -11
  8. package/dist/cli/commands/annotations/comments.js +1 -1
  9. package/dist/cli/commands/annotations/docs.js +1 -1
  10. package/dist/cli/commands/annotations/files.js +1 -1
  11. package/dist/cli/commands/annotations/learnings.js +1 -1
  12. package/dist/cli/commands/annotations/notes.js +1 -1
  13. package/dist/cli/commands/extension/describe.js +1 -1
  14. package/dist/cli/commands/extension/extension.js +1 -1
  15. package/dist/cli/commands/extension/scaffold.js +1 -1
  16. package/dist/cli/commands/extension/shared.js +1 -1
  17. package/dist/cli/commands/governance/gc.js +1 -1
  18. package/dist/cli/commands/governance/health.js +1 -1
  19. package/dist/cli/commands/governance/telemetry.js +1 -1
  20. package/dist/cli/commands/governance/validate.js +1 -1
  21. package/dist/cli/commands/history/activity.js +1 -1
  22. package/dist/cli/commands/history/history-compact.js +1 -1
  23. package/dist/cli/commands/history/history-redact.js +1 -1
  24. package/dist/cli/commands/history/history-repair.js +1 -1
  25. package/dist/cli/commands/history/history.js +1 -1
  26. package/dist/cli/commands/history/restore.js +1 -1
  27. package/dist/cli/commands/lifecycle/append.js +1 -1
  28. package/dist/cli/commands/lifecycle/claim.js +1 -1
  29. package/dist/cli/commands/lifecycle/close-many.js +1 -1
  30. package/dist/cli/commands/lifecycle/close.js +1 -1
  31. package/dist/cli/commands/lifecycle/copy.js +1 -1
  32. package/dist/cli/commands/lifecycle/create.js +1 -1
  33. package/dist/cli/commands/lifecycle/delete.js +1 -1
  34. package/dist/cli/commands/lifecycle/focus.js +1 -1
  35. package/dist/cli/commands/lifecycle/plan.js +1 -1
  36. package/dist/cli/commands/lifecycle/update-many.js +1 -1
  37. package/dist/cli/commands/lifecycle/update.js +1 -1
  38. package/dist/cli/commands/query/aggregate.js +1 -1
  39. package/dist/cli/commands/query/context.js +1 -1
  40. package/dist/cli/commands/query/deps.js +1 -1
  41. package/dist/cli/commands/query/duplicates.js +1 -1
  42. package/dist/cli/commands/query/eval.js +1 -1
  43. package/dist/cli/commands/query/get.js +1 -1
  44. package/dist/cli/commands/query/graph.js +1 -1
  45. package/dist/cli/commands/query/list.js +1 -1
  46. package/dist/cli/commands/query/next.js +1 -1
  47. package/dist/cli/commands/query/search.js +1 -1
  48. package/dist/cli/commands/query/stats.js +1 -1
  49. package/dist/cli/commands/test/test-all.js +1 -1
  50. package/dist/cli/commands/test/test-runs.js +1 -1
  51. package/dist/cli/commands/test/test.js +1 -1
  52. package/dist/cli/commands/workspace/config.js +1 -1
  53. package/dist/cli/commands/workspace/contracts.js +1 -1
  54. package/dist/cli/commands/workspace/init.js +1 -1
  55. package/dist/cli/commands/workspace/merge.js +1 -1
  56. package/dist/cli/commands/workspace/profile.js +1 -1
  57. package/dist/cli/commands/workspace/schema.js +1 -1
  58. package/dist/cli/commands/workspace/upgrade.js +1 -1
  59. package/dist/cli/context-intent-invocation.js +1 -1
  60. package/dist/cli/description-stdin.js +1 -1
  61. package/dist/cli/error-guidance.js +5 -5
  62. package/dist/cli/expected-revisions.js +1 -1
  63. package/dist/cli/extension-command-help.js +6 -6
  64. package/dist/cli/extension-recovery.js +1 -1
  65. package/dist/cli/help-content.js +5 -5
  66. package/dist/cli/help-json-payload.js +7 -7
  67. package/dist/cli/invocation-profile.js +2 -2
  68. package/dist/cli/main.js +5 -5
  69. package/dist/cli/migration-gates.js +1 -1
  70. package/dist/cli/option-values.js +1 -1
  71. package/dist/cli/preflight-warnings.js +3 -3
  72. package/dist/cli/public.js +1 -1
  73. package/dist/cli/register-annotations.js +1 -1
  74. package/dist/cli/register-assurance.js +1 -1
  75. package/dist/cli/register-files-lookup.js +1 -1
  76. package/dist/cli/register-history-activity.js +1 -1
  77. package/dist/cli/register-history-author.js +1 -1
  78. package/dist/cli/register-history-maintenance.js +2 -2
  79. package/dist/cli/register-list-query.js +10 -10
  80. package/dist/cli/register-mutation-options.js +0 -1
  81. package/dist/cli/register-mutation.js +6 -6
  82. package/dist/cli/register-operations.js +1 -1
  83. package/dist/cli/register-setup.js +1 -1
  84. package/dist/cli/register-structured-mutation.js +1 -1
  85. package/dist/cli/registration-helpers.js +1 -1
  86. package/dist/cli/runtime/activation.js +1 -1
  87. package/dist/cli/runtime/annotation-option-retry.js +1 -1
  88. package/dist/cli/runtime/close-fields-retry.js +1 -1
  89. package/dist/cli/runtime/field-route-retry.js +1 -1
  90. package/dist/cli/runtime/invocation-options.js +1 -1
  91. package/dist/cli/runtime/invocation-rewrites.js +1 -1
  92. package/dist/cli/runtime/projection-retry.js +1 -1
  93. package/dist/cli/runtime/read-output-mutation-retry.js +1 -1
  94. package/dist/cli/runtime/refusal-credential-redaction.js +1 -1
  95. package/dist/cli/runtime/selection.js +1 -1
  96. package/dist/cli/runtime/telemetry-outcome.js +1 -1
  97. package/dist/cli/runtime-compatibility-boundary.js +4 -4
  98. package/dist/cli/schema/registration.js +15 -15
  99. package/dist/cli/schema-registration-helpers.js +1 -1
  100. package/dist/cli/search-refresh.js +1 -1
  101. package/dist/cli/stats-analytics-json.js +1 -1
  102. package/dist/cli/telemetry-flush.js +1 -1
  103. package/dist/cli-bundle/bundle-manifest.json +1 -1
  104. package/dist/cli-bundle/chunks/chunk-2UQU7HRR.js +9 -0
  105. package/dist/cli-bundle/chunks/chunk-5DUP4AZA.js +2 -0
  106. package/dist/cli-bundle/chunks/chunk-5WZZ5XEN.js +3 -0
  107. package/dist/cli-bundle/chunks/chunk-6H36ZHMI.js +2 -0
  108. package/dist/cli-bundle/chunks/chunk-6MYJLOSG.js +2 -0
  109. package/dist/cli-bundle/chunks/chunk-AA52P34H.js +3 -0
  110. package/dist/cli-bundle/chunks/{chunk-B76TFRO2.js → chunk-AEOHUSUI.js} +101 -101
  111. package/dist/cli-bundle/chunks/chunk-BSRIVYTM.js +8 -0
  112. package/dist/cli-bundle/chunks/chunk-CFWLQFJM.js +71 -0
  113. package/dist/cli-bundle/chunks/chunk-D6PDUKUG.js +9 -0
  114. package/dist/cli-bundle/chunks/chunk-ENKXRSFZ.js +31 -0
  115. package/dist/cli-bundle/chunks/chunk-F2Z6XLZB.js +3 -0
  116. package/dist/cli-bundle/chunks/chunk-FJOEL75F.js +2 -0
  117. package/dist/cli-bundle/chunks/chunk-GDXCAC52.js +2 -0
  118. package/dist/cli-bundle/chunks/chunk-H7JEXRIN.js +6 -0
  119. package/dist/cli-bundle/chunks/chunk-J2PDAVBC.js +2 -0
  120. package/dist/cli-bundle/chunks/chunk-KE7HMBEW.js +2 -0
  121. package/dist/cli-bundle/chunks/chunk-KZHIBEJL.js +33 -0
  122. package/dist/cli-bundle/chunks/chunk-NGJ5ERBF.js +115 -0
  123. package/dist/cli-bundle/chunks/chunk-NQ54T7T2.js +2 -0
  124. package/dist/cli-bundle/chunks/chunk-O7JHS64G.js +3 -0
  125. package/dist/cli-bundle/chunks/chunk-OKEZF7HU.js +2 -0
  126. package/dist/cli-bundle/chunks/chunk-OKIKF4FD.js +2 -0
  127. package/dist/cli-bundle/chunks/chunk-OPJF254V.js +9 -0
  128. package/dist/cli-bundle/chunks/chunk-PZA7QECY.js +1 -0
  129. package/dist/cli-bundle/chunks/chunk-RWA5YZ5X.js +2 -0
  130. package/dist/cli-bundle/chunks/chunk-S32NGRQM.js +2 -0
  131. package/dist/cli-bundle/chunks/chunk-SLFRSZK6.js +1 -0
  132. package/dist/cli-bundle/chunks/chunk-TZY5MVJF.js +125 -0
  133. package/dist/cli-bundle/chunks/chunk-YYT3MIRF.js +3 -0
  134. package/dist/cli-bundle/chunks/chunk-ZPS4B6SI.js +8 -0
  135. package/dist/cli-bundle/chunks/context-budget-recovery-M5RFUEFG.js +2 -0
  136. package/dist/cli-bundle/chunks/indexed-receipt-blobs-BPYKN5Q7.js +4 -0
  137. package/dist/cli-bundle/chunks/{item-revision-4QBMZXKX.js → item-revision-FMD4KWBB.js} +2 -2
  138. package/dist/cli-bundle/chunks/item-transaction-SEHTH7N2.js +2 -0
  139. package/dist/cli-bundle/chunks/mutation-actor-SFGYIRPW.js +2 -0
  140. package/dist/cli-bundle/chunks/mutation-admission-57LBSKQI.js +2 -0
  141. package/dist/cli-bundle/chunks/{register-list-query-RR5KACJ3.js → register-list-query-L4IBU64P.js} +11 -11
  142. package/dist/cli-bundle/chunks/register-mutation-6NUOPHZ3.js +21 -0
  143. package/dist/cli-bundle/chunks/register-operations-JGYVORNN.js +2 -0
  144. package/dist/cli-bundle/chunks/register-setup-C44SIXEH.js +2 -0
  145. package/dist/cli-bundle/chunks/settlement-hook-6MR32OOC.js +7 -0
  146. package/dist/cli-bundle/chunks/stage-PQ7AB63N.js +2 -0
  147. package/dist/cli-bundle/focused-chunks/chunk-6LKTEKHS.js +6 -0
  148. package/dist/cli-bundle/focused-chunks/chunk-6LPXMFLM.js +2 -0
  149. package/dist/cli-bundle/focused-chunks/chunk-A6VEMCRR.js +3 -0
  150. package/dist/cli-bundle/focused-chunks/chunk-AIDL2ZNT.js +3 -0
  151. package/dist/cli-bundle/focused-chunks/chunk-BKPUUW5O.js +1 -0
  152. package/dist/cli-bundle/focused-chunks/chunk-BWOVFE5B.js +2 -0
  153. package/dist/cli-bundle/focused-chunks/chunk-HMDQDRV2.js +8 -0
  154. package/dist/cli-bundle/focused-chunks/chunk-I66IKYKP.js +2 -0
  155. package/dist/cli-bundle/focused-chunks/chunk-IIP6LZ5E.js +2 -0
  156. package/dist/cli-bundle/focused-chunks/chunk-IR2J3NOT.js +2 -0
  157. package/dist/cli-bundle/focused-chunks/chunk-IROZDIDX.js +3 -0
  158. package/dist/cli-bundle/focused-chunks/chunk-ITKDHSBR.js +2 -0
  159. package/dist/cli-bundle/focused-chunks/chunk-K53OIT5J.js +2 -0
  160. package/dist/cli-bundle/focused-chunks/chunk-LQYYPXUK.js +26 -0
  161. package/dist/cli-bundle/focused-chunks/chunk-NQTEE66P.js +13 -0
  162. package/dist/cli-bundle/focused-chunks/chunk-O7Z73ALG.js +2 -0
  163. package/dist/cli-bundle/focused-chunks/chunk-OTMMOKPM.js +91 -0
  164. package/dist/cli-bundle/focused-chunks/chunk-OXOCZJC6.js +2 -0
  165. package/dist/cli-bundle/focused-chunks/chunk-QLAHEDT6.js +2 -0
  166. package/dist/cli-bundle/focused-chunks/chunk-QQIIMMFU.js +2 -0
  167. package/dist/cli-bundle/focused-chunks/chunk-RIE3SJSE.js +9 -0
  168. package/dist/cli-bundle/focused-chunks/chunk-TD544C74.js +8 -0
  169. package/dist/cli-bundle/focused-chunks/chunk-UFTUNBMY.js +27 -0
  170. package/dist/cli-bundle/focused-chunks/chunk-X6CXWWNB.js +2 -0
  171. package/dist/cli-bundle/focused-chunks/chunk-XRS3VNC6.js +44 -0
  172. package/dist/cli-bundle/focused-chunks/chunk-XYPEZGTR.js +2 -0
  173. package/dist/cli-bundle/focused-chunks/chunk-Y2ESLKCF.js +8 -0
  174. package/dist/cli-bundle/focused-chunks/chunk-YSJKQLFR.js +2 -0
  175. package/dist/cli-bundle/focused-chunks/chunk-Z2X7HH3C.js +102 -0
  176. package/dist/cli-bundle/focused-chunks/chunk-ZHWPCVQL.js +78 -0
  177. package/dist/cli-bundle/focused-chunks/context-budget-recovery-CSJV3TY3.js +2 -0
  178. package/dist/cli-bundle/focused-chunks/indexed-receipt-blobs-EGEJMG3G.js +4 -0
  179. package/dist/cli-bundle/focused-chunks/{item-revision-2O6MLPEX.js → item-revision-YDACCDVY.js} +2 -2
  180. package/dist/cli-bundle/focused-chunks/item-transaction-UKEQCTKB.js +2 -0
  181. package/dist/cli-bundle/focused-chunks/mutation-actor-AS465LRX.js +2 -0
  182. package/dist/cli-bundle/focused-chunks/mutation-admission-E5UHJZFE.js +2 -0
  183. package/dist/cli-bundle/focused-chunks/settlement-hook-FMLGKG7J.js +7 -0
  184. package/dist/cli-bundle/focused-chunks/stage-36J7YLGI.js +2 -0
  185. package/dist/cli-bundle/main.js +27 -27
  186. package/dist/cli-bundle/sdk-authoring.js +1 -1
  187. package/dist/cli-bundle/sdk-contracts.js +5 -5
  188. package/dist/cli-bundle/sdk-core.js +1 -1
  189. package/dist/cli-bundle/sdk-governance.js +1 -1
  190. package/dist/cli-bundle/sdk-graph.js +1 -1
  191. package/dist/cli-bundle/sdk-merge.js +66 -66
  192. package/dist/cli-bundle/sdk-query.js +1 -1
  193. package/dist/cli-bundle/sdk-runtime.js +1 -1
  194. package/dist/cli-bundle/sdk-testing.js +1 -1
  195. package/dist/cli-bundle/sdk.js +12 -12
  196. package/dist/cli.js +1 -1
  197. package/dist/core/checkpoint/checkpoint-gc.js +1 -1
  198. package/dist/core/checkpoint/mutation-checkpoint.js +2 -2
  199. package/dist/core/checkpoint/mutation-context.js +1 -1
  200. package/dist/core/config/nested-settings.js +1 -1
  201. package/dist/core/config/positional-value.js +1 -1
  202. package/dist/core/diagnostics/remediation.js +1 -1
  203. package/dist/core/extensions/activation-summary-markdown.js +2 -2
  204. package/dist/core/extensions/activation-summary.js +1 -1
  205. package/dist/core/extensions/activation-transaction.js +1 -1
  206. package/dist/core/extensions/capability-usage.js +1 -1
  207. package/dist/core/extensions/command-hook-context.js +1 -1
  208. package/dist/core/extensions/command-metadata-contract.js +1 -1
  209. package/dist/core/extensions/command-visibility-tier.js +1 -1
  210. package/dist/core/extensions/contribution-inventory.js +1 -1
  211. package/dist/core/extensions/exporter-output-contract.js +1 -1
  212. package/dist/core/extensions/extension-candidate.js +1 -1
  213. package/dist/core/extensions/extension-capability-aliases.js +1 -1
  214. package/dist/core/extensions/extension-hook-runtime.js +1 -1
  215. package/dist/core/extensions/extension-policy.js +1 -1
  216. package/dist/core/extensions/extension-registries.js +1 -1
  217. package/dist/core/extensions/extension-runtime-helpers.js +1 -1
  218. package/dist/core/extensions/extension-types.js +1 -1
  219. package/dist/core/extensions/flag-definition-validation.js +1 -1
  220. package/dist/core/extensions/flag-value-types.js +1 -1
  221. package/dist/core/extensions/index.js +1 -1
  222. package/dist/core/extensions/item-field-types.js +1 -1
  223. package/dist/core/extensions/item-fields.js +1 -1
  224. package/dist/core/extensions/loader.js +1 -1
  225. package/dist/core/extensions/manifest-parser.js +1 -1
  226. package/dist/core/extensions/manifest-schema.js +1 -1
  227. package/dist/core/extensions/module-graph-snapshot.js +1 -1
  228. package/dist/core/extensions/mutation-actor-snapshot.js +1 -1
  229. package/dist/core/extensions/mutation-actor.js +1 -1
  230. package/dist/core/extensions/preflight-ownership.js +1 -1
  231. package/dist/core/extensions/read-output-contract.js +1 -1
  232. package/dist/core/extensions/registration-contracts.js +1 -1
  233. package/dist/core/extensions/registration-validation.js +1 -1
  234. package/dist/core/extensions/registration-values.js +1 -1
  235. package/dist/core/extensions/reserved-host-flags.js +1 -1
  236. package/dist/core/extensions/runtime-registrations.js +1 -1
  237. package/dist/core/extensions/service-ownership.js +1 -1
  238. package/dist/core/extensions/version-compat.js +1 -1
  239. package/dist/core/extensions/version-diagnostics.js +1 -1
  240. package/dist/core/fs/atomic-create.js +1 -1
  241. package/dist/core/fs/file-glob.js +1 -1
  242. package/dist/core/fs/fs-utils.js +2 -2
  243. package/dist/core/fs/host-environment-errors.js +1 -1
  244. package/dist/core/fs/index.js +1 -1
  245. package/dist/core/fs/path-utils.js +1 -1
  246. package/dist/core/governance/content-fields.js +1 -1
  247. package/dist/core/governance/issue-codes.js +1 -1
  248. package/dist/core/governance/metadata-coverage.js +1 -1
  249. package/dist/core/history/bridge.js +1 -1
  250. package/dist/core/history/digest.js +1 -1
  251. package/dist/core/history/drift-cache.js +3 -3
  252. package/dist/core/history/drift-scan.js +1 -1
  253. package/dist/core/history/event-classification.js +1 -1
  254. package/dist/core/history/event-index.js +11 -11
  255. package/dist/core/history/history-compact-bulk.js +1 -1
  256. package/dist/core/history/history-diff.js +1 -1
  257. package/dist/core/history/history-rewrite.js +1 -1
  258. package/dist/core/history/history-storage-stats.js +1 -1
  259. package/dist/core/history/history-stream-policy.js +1 -1
  260. package/dist/core/history/history.js +2 -2
  261. package/dist/core/history/identity.js +1 -1
  262. package/dist/core/history/index.js +1 -1
  263. package/dist/core/history/operation-contract.js +1 -1
  264. package/dist/core/history/projection.js +1 -1
  265. package/dist/core/history/read.js +1 -1
  266. package/dist/core/history/replay.js +2 -2
  267. package/dist/core/history/stream-summary.js +2 -2
  268. package/dist/core/history/tombstone.js +1 -1
  269. package/dist/core/history/version-address.js +1 -1
  270. package/dist/core/history/workspace-history.js +2 -2
  271. package/dist/core/io/body-file.js +1 -1
  272. package/dist/core/io/bulk-ids-input.js +2 -2
  273. package/dist/core/item/actionability.js +1 -1
  274. package/dist/core/item/deferred-fields.js +1 -1
  275. package/dist/core/item/dependency-reference.js +1 -1
  276. package/dist/core/item/id.js +1 -1
  277. package/dist/core/item/index.js +1 -1
  278. package/dist/core/item/item-format-version.js +1 -1
  279. package/dist/core/item/item-format.js +7 -7
  280. package/dist/core/item/item-record.js +1 -1
  281. package/dist/core/item/item-type-definition.js +1 -1
  282. package/dist/core/item/literal-mutation-input.js +1 -1
  283. package/dist/core/item/parent-reference-policy.js +1 -1
  284. package/dist/core/item/parse.js +8 -8
  285. package/dist/core/item/plan-lifecycle.js +1 -1
  286. package/dist/core/item/priority.js +1 -1
  287. package/dist/core/item/sprint-release-format.js +1 -1
  288. package/dist/core/item/status-filter.js +1 -1
  289. package/dist/core/item/status.js +1 -1
  290. package/dist/core/item/toon-decode.js +1 -1
  291. package/dist/core/item/type-registry.js +1 -1
  292. package/dist/core/item/type-synonyms.js +1 -1
  293. package/dist/core/lock/index.js +1 -1
  294. package/dist/core/lock/lock-confinement.js +1 -1
  295. package/dist/core/lock/lock-gc.js +1 -1
  296. package/dist/core/lock/lock-owner.js +1 -1
  297. package/dist/core/lock/lock.js +4 -4
  298. package/dist/core/output/linked-test-projection.js +5 -5
  299. package/dist/core/output/mutation-projection.js +1 -1
  300. package/dist/core/output/output-control.js +1 -1
  301. package/dist/core/output/output.js +19 -19
  302. package/dist/core/output/query-summary.js +1 -1
  303. package/dist/core/output/tabular.js +3 -3
  304. package/dist/core/packages/manifest.js +1 -1
  305. package/dist/core/packages/root.js +1 -1
  306. package/dist/core/policy/workflow-policy-schema.js +1 -1
  307. package/dist/core/policy/workflow-policy-store.js +1 -1
  308. package/dist/core/policy/workflow-policy.js +1 -1
  309. package/dist/core/profile/profile-describe.js +1 -1
  310. package/dist/core/profile/profile-lint.d.ts +1 -1
  311. package/dist/core/profile/profile-lint.js +1 -1
  312. package/dist/core/profile/profile-plan.js +1 -1
  313. package/dist/core/profile/profile-presets.js +4 -4
  314. package/dist/core/reproducibility/context.js +1 -1
  315. package/dist/core/schema/fields-file.js +2 -2
  316. package/dist/core/schema/item-types-file.js +2 -2
  317. package/dist/core/schema/runtime-field-filters.js +1 -1
  318. package/dist/core/schema/runtime-field-values.js +1 -1
  319. package/dist/core/schema/runtime-schema.js +2 -2
  320. package/dist/core/schema/status-defs-file.js +2 -2
  321. package/dist/core/schema/status-token.js +1 -1
  322. package/dist/core/schema/type-inference.js +1 -1
  323. package/dist/core/schema/type-presets.js +1 -1
  324. package/dist/core/schema/type-workflows.js +1 -1
  325. package/dist/core/search/background-refresh.js +2 -2
  326. package/dist/core/search/bm25.js +1 -1
  327. package/dist/core/search/cache.js +2 -2
  328. package/dist/core/search/corpus.js +1 -1
  329. package/dist/core/search/embedding-batches.js +1 -1
  330. package/dist/core/search/eval-thresholds.js +1 -1
  331. package/dist/core/search/eval.js +1 -1
  332. package/dist/core/search/http-client.js +1 -1
  333. package/dist/core/search/providers.js +1 -1
  334. package/dist/core/search/relevance.js +1 -1
  335. package/dist/core/search/semantic-defaults.js +1 -1
  336. package/dist/core/search/staleness.js +1 -1
  337. package/dist/core/search/vector-stores.js +2 -2
  338. package/dist/core/search/vectorization-metadata.js +1 -1
  339. package/dist/core/sentry/helpers.js +1 -1
  340. package/dist/core/sentry/instrument.js +1 -1
  341. package/dist/core/sentry/sensitive-assignments.js +1 -1
  342. package/dist/core/session/session-state.js +1 -1
  343. package/dist/core/shared/agent-session-context.js +1 -1
  344. package/dist/core/shared/author.js +5 -5
  345. package/dist/core/shared/command-line.js +1 -1
  346. package/dist/core/shared/command-types.js +0 -1
  347. package/dist/core/shared/conflict-markers.js +1 -1
  348. package/dist/core/shared/constants.js +1 -1
  349. package/dist/core/shared/error-details.js +1 -1
  350. package/dist/core/shared/errors.js +1 -1
  351. package/dist/core/shared/html-entity-decode.js +1 -1
  352. package/dist/core/shared/index.js +1 -1
  353. package/dist/core/shared/item-metadata-contract.js +1 -1
  354. package/dist/core/shared/lazy-module.js +1 -1
  355. package/dist/core/shared/levenshtein.js +1 -1
  356. package/dist/core/shared/memo.js +1 -1
  357. package/dist/core/shared/numeric-parsers.js +1 -1
  358. package/dist/core/shared/option-alias-visibility.js +1 -1
  359. package/dist/core/shared/output-unicode.js +1 -1
  360. package/dist/core/shared/primitives.js +1 -1
  361. package/dist/core/shared/process-tree.js +2 -2
  362. package/dist/core/shared/secret-rules.js +5 -5
  363. package/dist/core/shared/serial-queue.js +1 -1
  364. package/dist/core/shared/serialization.js +1 -1
  365. package/dist/core/shared/split-comma-list.js +1 -1
  366. package/dist/core/shared/text-normalization.js +1 -1
  367. package/dist/core/shared/time.js +2 -2
  368. package/dist/core/shared/url-credentials.js +1 -1
  369. package/dist/core/store/index.js +1 -1
  370. package/dist/core/store/item-format-migration.js +1 -1
  371. package/dist/core/store/item-metadata-cache.js +1 -1
  372. package/dist/core/store/item-metadata-query-index.js +11 -11
  373. package/dist/core/store/item-metadata-read-work.js +1 -1
  374. package/dist/core/store/item-mutation-precondition.js +1 -1
  375. package/dist/core/store/item-store.js +1 -1
  376. package/dist/core/store/paths.js +1 -1
  377. package/dist/core/store/settings-concurrency.js +1 -1
  378. package/dist/core/store/settings-read-cache.js +1 -1
  379. package/dist/core/store/settings-sections.js +2 -2
  380. package/dist/core/store/settings-validator.js +1 -1
  381. package/dist/core/store/settings.d.ts +3 -1
  382. package/dist/core/store/settings.js +6 -6
  383. package/dist/core/store/sqlite-runtime.js +1 -1
  384. package/dist/core/store/tracker-preflight.js +1 -1
  385. package/dist/core/store/transaction-coordinator-scope.js +1 -1
  386. package/dist/core/telemetry/consent.js +3 -3
  387. package/dist/core/telemetry/observability.js +1 -1
  388. package/dist/core/telemetry/policy.js +1 -1
  389. package/dist/core/telemetry/read-sampling.js +2 -2
  390. package/dist/core/telemetry/runtime.js +9 -9
  391. package/dist/core/test/background-runs.js +4 -4
  392. package/dist/core/test/item-test-run-tracking.js +1 -1
  393. package/dist/core/test/run-selectors.js +1 -1
  394. package/dist/core/validate/estimate-defaults.js +1 -1
  395. package/dist/core/validate/fix-planning.js +1 -1
  396. package/dist/core/validate/linked-artifact-reference.js +1 -1
  397. package/dist/core/validate/missing-by-type.js +1 -1
  398. package/dist/core/validate/missing-link-owners.js +1 -1
  399. package/dist/core/validate/stale-file-classification.js +1 -1
  400. package/dist/mcp/http-server.js +5 -5
  401. package/dist/mcp/legacy-adapter.js +1 -1
  402. package/dist/mcp/runtime-capabilities.js +1 -1
  403. package/dist/mcp/server.js +4 -4
  404. package/dist/mcp/tool-definitions.js +1 -1
  405. package/dist/sdk/actionability.js +1 -1
  406. package/dist/sdk/agent/closed-domain-contracts.js +1 -1
  407. package/dist/sdk/agent/command-recovery.js +1 -1
  408. package/dist/sdk/agent/command-suggestions.js +1 -1
  409. package/dist/sdk/agent/create-option-policy.js +1 -1
  410. package/dist/sdk/agent/identity-config.js +1 -1
  411. package/dist/sdk/agent/item-addressing.js +1 -1
  412. package/dist/sdk/agent/linked-resource-recovery.js +1 -1
  413. package/dist/sdk/agent/refusal-closure-census.js +2 -2
  414. package/dist/sdk/agent/refusal-corpus-contracts.js +1 -1
  415. package/dist/sdk/agent/subcommand-recovery.js +1 -1
  416. package/dist/sdk/agent-capability-contracts.js +3 -3
  417. package/dist/sdk/agent-session-context.js +1 -1
  418. package/dist/sdk/annotations.js +1 -1
  419. package/dist/sdk/author-attribution.js +1 -1
  420. package/dist/sdk/cli-bootstrap.js +1 -1
  421. package/dist/sdk/cli-contracts/agent-output-contracts.js +5 -5
  422. package/dist/sdk/cli-contracts/bootstrap-command-scanner.js +1 -1
  423. package/dist/sdk/cli-contracts/command-aliases.js +1 -1
  424. package/dist/sdk/cli-contracts/command-exit-contracts.js +1 -1
  425. package/dist/sdk/cli-contracts/commander-mutation-options.js +1 -1
  426. package/dist/sdk/cli-contracts/commander-types.js +1 -1
  427. package/dist/sdk/cli-contracts/completeness.js +1 -1
  428. package/dist/sdk/cli-contracts/enum-contracts.js +1 -1
  429. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  430. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +2 -2
  431. package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
  432. package/dist/sdk/cli-contracts/registration-helpers.js +7 -7
  433. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  434. package/dist/sdk/cli-contracts/schemas/assurance-definition.js +1 -1
  435. package/dist/sdk/cli-contracts/string-lists.js +1 -1
  436. package/dist/sdk/cli-contracts/tool-option-contracts.js +1 -1
  437. package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
  438. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  439. package/dist/sdk/cli-contracts/typed-action-inputs.js +0 -1
  440. package/dist/sdk/cli-contracts.js +1 -1
  441. package/dist/sdk/cli-program.js +1 -1
  442. package/dist/sdk/command-line.js +1 -1
  443. package/dist/sdk/comments.js +1 -1
  444. package/dist/sdk/compile-cache.js +1 -1
  445. package/dist/sdk/completion/bash.js +2 -2
  446. package/dist/sdk/completion/fish.js +72 -72
  447. package/dist/sdk/completion/shared.js +1 -1
  448. package/dist/sdk/completion/zsh.js +75 -75
  449. package/dist/sdk/completion.js +1 -1
  450. package/dist/sdk/config.js +1 -1
  451. package/dist/sdk/context/recency.js +1 -1
  452. package/dist/sdk/context/semantic-session-attribution.js +1 -1
  453. package/dist/sdk/context/usage-egress.js +1 -1
  454. package/dist/sdk/context/usage-ledger.js +6 -6
  455. package/dist/sdk/context-intent-contracts.js +1 -1
  456. package/dist/sdk/context-intent-runtime.js +1 -1
  457. package/dist/sdk/context-packing.js +1 -1
  458. package/dist/sdk/context-relevance.js +1 -1
  459. package/dist/sdk/context-signal-store.js +2 -2
  460. package/dist/sdk/context-usage.js +1 -1
  461. package/dist/sdk/dependencies/context-budget-recovery.js +1 -1
  462. package/dist/sdk/dependencies.js +1 -1
  463. package/dist/sdk/dependency-flag-validation.js +1 -1
  464. package/dist/sdk/dependency-provenance.js +1 -1
  465. package/dist/sdk/docs.js +1 -1
  466. package/dist/sdk/duplicates.js +1 -1
  467. package/dist/sdk/environment/host-environment-errors.js +1 -1
  468. package/dist/sdk/environment/project-runtime-compatibility.js +2 -2
  469. package/dist/sdk/environment/source-context.js +1 -1
  470. package/dist/sdk/environment/tracker-preflight.js +1 -1
  471. package/dist/sdk/error-code-catalog.js +1 -1
  472. package/dist/sdk/error-runtime.js +1 -1
  473. package/dist/sdk/errors.js +1 -1
  474. package/dist/sdk/eval.js +1 -1
  475. package/dist/sdk/extension/author-manifest.js +1 -1
  476. package/dist/sdk/extension/bundled-catalog.js +1 -1
  477. package/dist/sdk/extension/command-options.js +1 -1
  478. package/dist/sdk/extension/concurrency.js +1 -1
  479. package/dist/sdk/extension/copy-scope.js +1 -1
  480. package/dist/sdk/extension/custom-field-collisions.js +1 -1
  481. package/dist/sdk/extension/describe.js +3 -3
  482. package/dist/sdk/extension/doctor.js +1 -1
  483. package/dist/sdk/extension/install-plan.js +1 -1
  484. package/dist/sdk/extension/install-receipts.js +1 -1
  485. package/dist/sdk/extension/install-runtime.js +3 -3
  486. package/dist/sdk/extension/install-snapshot.js +1 -1
  487. package/dist/sdk/extension/install-sources.js +5 -5
  488. package/dist/sdk/extension/managed-state.js +2 -2
  489. package/dist/sdk/extension/managed-update-status.js +1 -1
  490. package/dist/sdk/extension/migrations.js +2 -2
  491. package/dist/sdk/extension/native-command-options.js +1 -1
  492. package/dist/sdk/extension/output-ownership.js +1 -1
  493. package/dist/sdk/extension/runtime-summary.js +1 -1
  494. package/dist/sdk/extension/scaffold.js +11 -11
  495. package/dist/sdk/extension/shared.js +1 -1
  496. package/dist/sdk/extension/source-resolution.js +1 -1
  497. package/dist/sdk/extension/static-inventory.js +1 -1
  498. package/dist/sdk/extension/update-check.js +1 -1
  499. package/dist/sdk/extension-command-context.js +2 -2
  500. package/dist/sdk/extension-contracts.js +1 -1
  501. package/dist/sdk/extension.js +1 -1
  502. package/dist/sdk/files.js +1 -1
  503. package/dist/sdk/flag-invocation-contracts.js +1 -1
  504. package/dist/sdk/generated/error-code-catalog-rows.js +1 -1
  505. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  506. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  507. package/dist/sdk/generated-error-code-catalog.js +1 -1
  508. package/dist/sdk/governance/assurance-action-contracts.js +0 -1
  509. package/dist/sdk/governance/assurance-action.js +1 -1
  510. package/dist/sdk/governance/assurance-limits.js +1 -1
  511. package/dist/sdk/governance/assurance-mutation-error.js +1 -1
  512. package/dist/sdk/governance/assurance-presets.js +1 -1
  513. package/dist/sdk/governance/assurance-runtime.js +1 -1
  514. package/dist/sdk/governance/assurance.js +4 -4
  515. package/dist/sdk/governance/boundary-fixtures.js +1 -1
  516. package/dist/sdk/governance/closure-timestamps.js +1 -1
  517. package/dist/sdk/governance/defect-recurrence-coverage.js +1 -1
  518. package/dist/sdk/governance/defect-recurrence-graph.js +1 -1
  519. package/dist/sdk/governance/defect-recurrence-signals.js +1 -1
  520. package/dist/sdk/governance/defect-recurrence.js +2 -2
  521. package/dist/sdk/governance/extension-host-version.js +1 -1
  522. package/dist/sdk/governance/gc.js +1 -1
  523. package/dist/sdk/governance/health/history-drift-remedies.js +1 -1
  524. package/dist/sdk/governance/health/projection.js +1 -1
  525. package/dist/sdk/governance/health-merge-evidence.js +1 -1
  526. package/dist/sdk/governance/health.js +2 -2
  527. package/dist/sdk/governance/hierarchy-validation.js +1 -1
  528. package/dist/sdk/governance/in-progress-work-health.js +1 -1
  529. package/dist/sdk/governance/lifecycle-dependency-cycles.js +1 -1
  530. package/dist/sdk/governance/linked-file-report.js +1 -1
  531. package/dist/sdk/governance/merge-receipt-history.js +1 -1
  532. package/dist/sdk/governance/provenance-health.js +4 -4
  533. package/dist/sdk/governance/reindex.js +5 -5
  534. package/dist/sdk/governance/stale-work.js +1 -1
  535. package/dist/sdk/governance/status-role-diagnostics.js +1 -1
  536. package/dist/sdk/governance/storage-integrity.js +1 -1
  537. package/dist/sdk/governance/tracked-runtime-cache.js +1 -1
  538. package/dist/sdk/governance/upgrade.js +2 -2
  539. package/dist/sdk/governance/validate-deferred-fields.js +1 -1
  540. package/dist/sdk/governance/validate-history-drift.js +1 -1
  541. package/dist/sdk/governance/validate-item-reader.js +1 -1
  542. package/dist/sdk/governance/validate-normalization.js +1 -1
  543. package/dist/sdk/governance/validate.js +1 -1
  544. package/dist/sdk/governance/workflow-completeness.js +1 -1
  545. package/dist/sdk/governance/workflow-policy.js +3 -3
  546. package/dist/sdk/governance/workspace-position.js +2 -2
  547. package/dist/sdk/graph/analytics.js +1 -1
  548. package/dist/sdk/graph/assembly.js +1 -1
  549. package/dist/sdk/graph/cache.js +1 -1
  550. package/dist/sdk/graph/cardinality-integrity.js +1 -1
  551. package/dist/sdk/graph/centrality.js +1 -1
  552. package/dist/sdk/graph/deadline-scheduling.js +1 -1
  553. package/dist/sdk/graph/durable-cache.js +1 -1
  554. package/dist/sdk/graph/governance-contracts.js +1 -1
  555. package/dist/sdk/graph/governance.js +1 -1
  556. package/dist/sdk/graph/hierarchy-integrity.js +1 -1
  557. package/dist/sdk/graph/lifecycle-coverage.js +1 -1
  558. package/dist/sdk/graph/mutation-advisory.js +1 -1
  559. package/dist/sdk/graph/query-contracts.js +1 -1
  560. package/dist/sdk/graph/remediation.js +1 -1
  561. package/dist/sdk/graph/run.js +1 -1
  562. package/dist/sdk/graph/scheduling.js +1 -1
  563. package/dist/sdk/graph/traversal.js +1 -1
  564. package/dist/sdk/graph/workspace-relationship-kind-registry.js +1 -1
  565. package/dist/sdk/guide-topics.js +1 -1
  566. package/dist/sdk/guide.js +7 -7
  567. package/dist/sdk/history/append-only-repair.js +4 -4
  568. package/dist/sdk/history/attestation-command.js +2 -2
  569. package/dist/sdk/history/attestation-contract.js +1 -1
  570. package/dist/sdk/history/attestation-scan.js +1 -1
  571. package/dist/sdk/history/attestation.js +1 -1
  572. package/dist/sdk/history/maintenance.js +1 -1
  573. package/dist/sdk/history/reanchor-refusal.js +1 -1
  574. package/dist/sdk/history/reseed.js +1 -1
  575. package/dist/sdk/history/salvage.js +5 -5
  576. package/dist/sdk/history/subject.js +1 -1
  577. package/dist/sdk/history-analytics.js +1 -1
  578. package/dist/sdk/history-compact.js +1 -1
  579. package/dist/sdk/history-mcp.js +1 -1
  580. package/dist/sdk/history-provenance.js +1 -1
  581. package/dist/sdk/history-read.js +1 -1
  582. package/dist/sdk/history-redact.js +1 -1
  583. package/dist/sdk/history-repair.js +1 -1
  584. package/dist/sdk/improvement-ledger-validation.js +1 -1
  585. package/dist/sdk/improvement-ledger.js +2 -2
  586. package/dist/sdk/init-agent-guidance.js +10 -10
  587. package/dist/sdk/init.js +14 -14
  588. package/dist/sdk/invocation-author.js +1 -1
  589. package/dist/sdk/item-children.js +1 -1
  590. package/dist/sdk/item-metadata-index.js +1 -1
  591. package/dist/sdk/item-schedule.js +1 -1
  592. package/dist/sdk/item-transaction.js +1 -1
  593. package/dist/sdk/learnings.js +1 -1
  594. package/dist/sdk/lifecycle/append.js +3 -3
  595. package/dist/sdk/lifecycle/checkpoint-rollback.js +1 -1
  596. package/dist/sdk/lifecycle/claim.js +1 -1
  597. package/dist/sdk/lifecycle/cli-input.js +1 -1
  598. package/dist/sdk/lifecycle/close-many.js +1 -1
  599. package/dist/sdk/lifecycle/close.js +1 -1
  600. package/dist/sdk/lifecycle/copy.js +1 -1
  601. package/dist/sdk/lifecycle/core-field-recovery.js +1 -1
  602. package/dist/sdk/lifecycle/core-item-fields.js +1 -1
  603. package/dist/sdk/lifecycle/create-deferrals.js +1 -1
  604. package/dist/sdk/lifecycle/create.js +1 -1
  605. package/dist/sdk/lifecycle/delete.js +1 -1
  606. package/dist/sdk/lifecycle/dependency-removal.js +1 -1
  607. package/dist/sdk/lifecycle/event-validation-messages.js +1 -1
  608. package/dist/sdk/lifecycle/focus.js +1 -1
  609. package/dist/sdk/lifecycle/hierarchy-mutation-lock.js +1 -1
  610. package/dist/sdk/lifecycle/item-revision.js +1 -1
  611. package/dist/sdk/lifecycle/legacy-none-tokens.js +1 -1
  612. package/dist/sdk/lifecycle/lifecycle-transitions.js +1 -1
  613. package/dist/sdk/lifecycle/mcp-actions.js +1 -1
  614. package/dist/sdk/lifecycle/metadata-normalizers.js +1 -1
  615. package/dist/sdk/lifecycle/mutation-command-options.js +0 -1
  616. package/dist/sdk/lifecycle/mutation-facet-contracts.js +1 -1
  617. package/dist/sdk/lifecycle/mutation-option-validation.js +1 -1
  618. package/dist/sdk/lifecycle/plan-mutation-receipt.js +1 -1
  619. package/dist/sdk/lifecycle/plan.js +1 -1
  620. package/dist/sdk/lifecycle/recurrence-parsers.js +1 -1
  621. package/dist/sdk/lifecycle/release-handoff.js +1 -1
  622. package/dist/sdk/lifecycle/reopen.js +1 -1
  623. package/dist/sdk/lifecycle/repeatable-metadata-parsers.js +2 -2
  624. package/dist/sdk/lifecycle/repeated-terminal-state.js +1 -1
  625. package/dist/sdk/lifecycle/restore.js +1 -1
  626. package/dist/sdk/lifecycle/shared-unset-fields.js +1 -1
  627. package/dist/sdk/lifecycle/start-blockers.js +1 -1
  628. package/dist/sdk/lifecycle/structured-mutation-plan.js +1 -1
  629. package/dist/sdk/lifecycle/task-composition.js +1 -1
  630. package/dist/sdk/lifecycle/update-many.js +1 -1
  631. package/dist/sdk/lifecycle/update.js +2 -2
  632. package/dist/sdk/lifecycle/workflow-transition.js +1 -1
  633. package/dist/sdk/lifecycle-completion.js +1 -1
  634. package/dist/sdk/lifecycle-policy.js +1 -1
  635. package/dist/sdk/linked-artifacts.js +2 -2
  636. package/dist/sdk/mcp/apps.js +5 -5
  637. package/dist/sdk/mcp/authorization.js +1 -1
  638. package/dist/sdk/mcp/discovery.js +1 -1
  639. package/dist/sdk/mcp/executable.js +4 -4
  640. package/dist/sdk/mcp/interactions.js +1 -1
  641. package/dist/sdk/mcp/protocol.js +1 -1
  642. package/dist/sdk/mcp/skills.js +3 -3
  643. package/dist/sdk/mcp/subscriptions.js +1 -1
  644. package/dist/sdk/mcp/tasks.js +2 -2
  645. package/dist/sdk/mcp/transport.js +1 -1
  646. package/dist/sdk/merge/abandoned-receipts.js +1 -1
  647. package/dist/sdk/merge/driver.js +7 -7
  648. package/dist/sdk/merge/history-scalar-rebase.js +1 -1
  649. package/dist/sdk/merge/ignored-artifacts.js +1 -1
  650. package/dist/sdk/merge/index.js +1 -1
  651. package/dist/sdk/merge/indexed-receipt-blobs.js +2 -2
  652. package/dist/sdk/merge/install.js +6 -6
  653. package/dist/sdk/merge/receipt-file-boundary.js +1 -1
  654. package/dist/sdk/merge/receipt-operation.js +1 -1
  655. package/dist/sdk/merge/receipt-schema.js +1 -1
  656. package/dist/sdk/merge/receipts.js +4 -4
  657. package/dist/sdk/merge/reconcile.js +1 -1
  658. package/dist/sdk/merge/settlement-hook.js +4 -4
  659. package/dist/sdk/merge/stage.js +1 -1
  660. package/dist/sdk/merge/three-way.js +9 -9
  661. package/dist/sdk/merge/worktree-config.js +2 -2
  662. package/dist/sdk/merge.js +1 -1
  663. package/dist/sdk/mutation-events.js +1 -1
  664. package/dist/sdk/mutation-guard.js +1 -1
  665. package/dist/sdk/notes.js +1 -1
  666. package/dist/sdk/output/fit-envelope.js +1 -1
  667. package/dist/sdk/output/list-envelope.js +1 -1
  668. package/dist/sdk/output/table-rows.js +1 -1
  669. package/dist/sdk/output-contracts.js +1 -1
  670. package/dist/sdk/output-projection.js +1 -1
  671. package/dist/sdk/output-token-accounting.js +1 -1
  672. package/dist/sdk/output.js +2 -2
  673. package/dist/sdk/ownership-source.js +1 -1
  674. package/dist/sdk/package-import-adapters.js +1 -1
  675. package/dist/sdk/package-migrations.js +1 -1
  676. package/dist/sdk/package-runtime-options.js +1 -1
  677. package/dist/sdk/pagination.js +1 -1
  678. package/dist/sdk/profile.js +5 -5
  679. package/dist/sdk/provenance.js +1 -1
  680. package/dist/sdk/public-surface.json +1 -1
  681. package/dist/sdk/query/activity.js +1 -1
  682. package/dist/sdk/query/aggregate.js +1 -1
  683. package/dist/sdk/query/calendar.js +4 -4
  684. package/dist/sdk/query/complete-list.js +1 -1
  685. package/dist/sdk/query/context.js +2 -2
  686. package/dist/sdk/query/declared-blockers.js +1 -1
  687. package/dist/sdk/query/duplicate-candidates.js +1 -1
  688. package/dist/sdk/query/get-facet-roots.js +1 -1
  689. package/dist/sdk/query/get.js +1 -1
  690. package/dist/sdk/query/history.js +1 -1
  691. package/dist/sdk/query/item-filter-options.js +0 -1
  692. package/dist/sdk/query/light-metadata.js +1 -1
  693. package/dist/sdk/query/list-filter-shared.js +1 -1
  694. package/dist/sdk/query/list.js +1 -1
  695. package/dist/sdk/query/multi-value-filters.js +1 -1
  696. package/dist/sdk/query/next-ranking-policy.js +1 -1
  697. package/dist/sdk/query/next-ready-budget.js +1 -1
  698. package/dist/sdk/query/next.js +2 -2
  699. package/dist/sdk/query/parsers.js +1 -1
  700. package/dist/sdk/query/projection-contracts.js +1 -1
  701. package/dist/sdk/query/search/corpus.js +2 -2
  702. package/dist/sdk/query/search/filters.js +1 -1
  703. package/dist/sdk/query/search/input.js +1 -1
  704. package/dist/sdk/query/search/lexical.js +1 -1
  705. package/dist/sdk/query/search/response.js +1 -1
  706. package/dist/sdk/query/search/semantic.js +3 -3
  707. package/dist/sdk/query/search/types.js +0 -1
  708. package/dist/sdk/query/search-contracts.js +1 -1
  709. package/dist/sdk/query/search-pagination.js +1 -1
  710. package/dist/sdk/query/search-rendering.js +1 -1
  711. package/dist/sdk/query/search.js +1 -1
  712. package/dist/sdk/query/window-pagination.js +1 -1
  713. package/dist/sdk/query/workspace-contracts.js +1 -1
  714. package/dist/sdk/read-output/continuation.js +1 -1
  715. package/dist/sdk/read-output/extension.js +1 -1
  716. package/dist/sdk/read-output/options.js +1 -1
  717. package/dist/sdk/read-output/positional-rows.js +1 -1
  718. package/dist/sdk/read-output/provenance.js +1 -1
  719. package/dist/sdk/read-output/session-result.js +0 -1
  720. package/dist/sdk/read-output/surfaces.js +1 -1
  721. package/dist/sdk/read-output/tail-retention.js +1 -1
  722. package/dist/sdk/read-output-budget.js +1 -1
  723. package/dist/sdk/read-output-contracts.js +1 -1
  724. package/dist/sdk/read-output-rows.js +1 -1
  725. package/dist/sdk/read-output-session.js +1 -1
  726. package/dist/sdk/relationship-analytics.js +1 -1
  727. package/dist/sdk/relationship-context.js +1 -1
  728. package/dist/sdk/relationship-history.js +6 -6
  729. package/dist/sdk/relationship-kinds/contract.js +1 -1
  730. package/dist/sdk/relationships.js +1 -1
  731. package/dist/sdk/reproducibility/process.js +1 -1
  732. package/dist/sdk/runtime/actions.js +1 -1
  733. package/dist/sdk/runtime/context.js +1 -1
  734. package/dist/sdk/runtime/mutation-admission.js +1 -1
  735. package/dist/sdk/runtime/mutation-value-validation.js +1 -1
  736. package/dist/sdk/runtime/schema-preview.js +1 -1
  737. package/dist/sdk/runtime/schema.js +1 -1
  738. package/dist/sdk/runtime-action-aliases.js +1 -1
  739. package/dist/sdk/runtime-extended-actions.js +1 -1
  740. package/dist/sdk/runtime-input.d.ts +2 -0
  741. package/dist/sdk/runtime-input.js +1 -1
  742. package/dist/sdk/runtime-primitives.js +1 -1
  743. package/dist/sdk/runtime-public-contracts.js +0 -1
  744. package/dist/sdk/runtime-stats-options.js +1 -1
  745. package/dist/sdk/runtime.d.ts +5 -3
  746. package/dist/sdk/runtime.js +1 -1
  747. package/dist/sdk/scheduling-shortcuts.js +1 -1
  748. package/dist/sdk/schema/field-option-collisions.js +2 -0
  749. package/dist/sdk/schema-migration.js +4 -4
  750. package/dist/sdk/schema.js +7 -7
  751. package/dist/sdk/search-refresh-worker.js +1 -1
  752. package/dist/sdk/similarity-scoring.js +1 -1
  753. package/dist/sdk/similarity.js +1 -1
  754. package/dist/sdk/start-task-status.js +1 -1
  755. package/dist/sdk/stats.js +1 -1
  756. package/dist/sdk/structured-mutations.js +1 -1
  757. package/dist/sdk/telemetry-flush.js +1 -1
  758. package/dist/sdk/telemetry.js +4 -4
  759. package/dist/sdk/templates.js +3 -3
  760. package/dist/sdk/test/batch.js +2 -2
  761. package/dist/sdk/test/command-args.js +1 -1
  762. package/dist/sdk/test/command-resolution.js +2 -2
  763. package/dist/sdk/test/entry.js +2 -2
  764. package/dist/sdk/test/execution-receipts.js +2 -2
  765. package/dist/sdk/test/execution.js +5 -5
  766. package/dist/sdk/test/json-path.js +1 -1
  767. package/dist/sdk/test/linked-command-detection.js +1 -1
  768. package/dist/sdk/test/measurements.js +1 -1
  769. package/dist/sdk/test/parsers.js +1 -1
  770. package/dist/sdk/test/prerequisites.js +1 -1
  771. package/dist/sdk/test/receipt-index-snapshot.js +1 -1
  772. package/dist/sdk/test/run-phases.js +1 -1
  773. package/dist/sdk/test/runs.js +1 -1
  774. package/dist/sdk/test/trust.js +2 -2
  775. package/dist/sdk/test/update.js +1 -1
  776. package/dist/sdk/test/workspace-snapshot.js +1 -1
  777. package/dist/sdk/traceability/runtime-files-lookup.js +1 -1
  778. package/dist/sdk/traceability/source-traceability.js +2 -2
  779. package/dist/sdk/tracker-root-discovery.js +1 -1
  780. package/dist/sdk/transactions/item-finalization.js +1 -1
  781. package/dist/sdk/workspace-contracts-cache.js +1 -1
  782. package/dist/sdk/workspace-contracts.js +1 -1
  783. package/dist/sdk/workspace-memory.js +2 -2
  784. package/dist/sdk/workspace-snapshot.js +5 -5
  785. package/dist/sdk/workspace-transaction-gc.js +1 -1
  786. package/dist/sdk/workspace-transaction.js +2 -2
  787. package/dist/sdk/workspace.js +6 -6
  788. package/dist/types/index.js +1 -1
  789. package/dist/types.js +1 -1
  790. package/docs/COMMANDS.md +1 -1
  791. package/docs/EXTENSIONS.md +1 -1
  792. package/docs/SDK.md +74 -4
  793. package/marketplace.json +1 -1
  794. package/package.json +2 -1
  795. package/packages/pm-beads/package.json +1 -1
  796. package/packages/pm-calendar/package.json +1 -1
  797. package/packages/pm-command-kit/package.json +1 -1
  798. package/packages/pm-digital-twin/package.json +1 -1
  799. package/packages/pm-governance-audit/package.json +1 -1
  800. package/packages/pm-guide-shell/package.json +1 -1
  801. package/packages/pm-kanban/package.json +1 -1
  802. package/packages/pm-lifecycle-hooks/package.json +1 -1
  803. package/packages/pm-linked-test-adapters/package.json +1 -1
  804. package/packages/pm-search-advanced/package.json +1 -1
  805. package/packages/pm-templates/package.json +1 -1
  806. package/packages/pm-todos/package.json +1 -1
  807. package/packages/pm-vcs/package.json +1 -1
  808. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  809. package/plugins/pm-claude/package.json +1 -1
  810. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  811. package/plugins/pm-codex/package.json +1 -1
  812. package/plugins/pm-codex/plugin.json +1 -1
  813. package/runtime-dependencies.json +1 -1
  814. package/scripts/finalize-build.mjs +63 -24
  815. package/scripts/prepare-build-cache.mjs +28 -1
  816. package/dist/cli-bundle/chunks/chunk-3W47ZZ5T.js +0 -9
  817. package/dist/cli-bundle/chunks/chunk-4TB5D6HL.js +0 -125
  818. package/dist/cli-bundle/chunks/chunk-5ZMVLWE3.js +0 -2
  819. package/dist/cli-bundle/chunks/chunk-6BBDEIKC.js +0 -33
  820. package/dist/cli-bundle/chunks/chunk-AR4NP5HI.js +0 -3
  821. package/dist/cli-bundle/chunks/chunk-B4PPFOPY.js +0 -3
  822. package/dist/cli-bundle/chunks/chunk-CAR2L5NW.js +0 -8
  823. package/dist/cli-bundle/chunks/chunk-DEZPZOQ7.js +0 -2
  824. package/dist/cli-bundle/chunks/chunk-EIGUKEV6.js +0 -2
  825. package/dist/cli-bundle/chunks/chunk-GTPCAJMZ.js +0 -8
  826. package/dist/cli-bundle/chunks/chunk-GYP24M7W.js +0 -2
  827. package/dist/cli-bundle/chunks/chunk-HC2OPETM.js +0 -2
  828. package/dist/cli-bundle/chunks/chunk-HKUV74K3.js +0 -2
  829. package/dist/cli-bundle/chunks/chunk-HXHYDO2R.js +0 -115
  830. package/dist/cli-bundle/chunks/chunk-IB7UB5TE.js +0 -2
  831. package/dist/cli-bundle/chunks/chunk-J2LABXBL.js +0 -2
  832. package/dist/cli-bundle/chunks/chunk-J52BEBSS.js +0 -2
  833. package/dist/cli-bundle/chunks/chunk-KQIZ34SF.js +0 -3
  834. package/dist/cli-bundle/chunks/chunk-LQBWLNZJ.js +0 -3
  835. package/dist/cli-bundle/chunks/chunk-OJTMGDON.js +0 -31
  836. package/dist/cli-bundle/chunks/chunk-SPPHDVZE.js +0 -2
  837. package/dist/cli-bundle/chunks/chunk-TC6XLIYO.js +0 -2
  838. package/dist/cli-bundle/chunks/chunk-U7EL3AYA.js +0 -3
  839. package/dist/cli-bundle/chunks/chunk-VQFWW4EF.js +0 -6
  840. package/dist/cli-bundle/chunks/chunk-X6MIWTTT.js +0 -2
  841. package/dist/cli-bundle/chunks/chunk-XC5Q2ZV7.js +0 -2
  842. package/dist/cli-bundle/chunks/chunk-XFHPKXAE.js +0 -71
  843. package/dist/cli-bundle/chunks/chunk-YHVLVSEZ.js +0 -9
  844. package/dist/cli-bundle/chunks/chunk-YMUSRWV4.js +0 -9
  845. package/dist/cli-bundle/chunks/chunk-YR2KEBHP.js +0 -2
  846. package/dist/cli-bundle/chunks/context-budget-recovery-L2WP5S26.js +0 -2
  847. package/dist/cli-bundle/chunks/indexed-receipt-blobs-ITTXIN4K.js +0 -4
  848. package/dist/cli-bundle/chunks/item-transaction-QY3PUHEI.js +0 -2
  849. package/dist/cli-bundle/chunks/mutation-actor-FWLYWJ37.js +0 -2
  850. package/dist/cli-bundle/chunks/mutation-admission-7ZDCK3G2.js +0 -2
  851. package/dist/cli-bundle/chunks/register-mutation-57AJQWFV.js +0 -21
  852. package/dist/cli-bundle/chunks/register-operations-RKWST7CU.js +0 -2
  853. package/dist/cli-bundle/chunks/register-setup-CMI23PC5.js +0 -2
  854. package/dist/cli-bundle/chunks/settlement-hook-BXN5LEQD.js +0 -7
  855. package/dist/cli-bundle/chunks/stage-4KDVXC5Z.js +0 -2
  856. package/dist/cli-bundle/focused-chunks/chunk-2ZD7275J.js +0 -2
  857. package/dist/cli-bundle/focused-chunks/chunk-324AHXJO.js +0 -2
  858. package/dist/cli-bundle/focused-chunks/chunk-3IRCYJI5.js +0 -3
  859. package/dist/cli-bundle/focused-chunks/chunk-3V53UBHN.js +0 -9
  860. package/dist/cli-bundle/focused-chunks/chunk-3XSWH6QC.js +0 -91
  861. package/dist/cli-bundle/focused-chunks/chunk-4JZITIJB.js +0 -2
  862. package/dist/cli-bundle/focused-chunks/chunk-4KTFKSS3.js +0 -2
  863. package/dist/cli-bundle/focused-chunks/chunk-5C5TK3ET.js +0 -78
  864. package/dist/cli-bundle/focused-chunks/chunk-AKJYOZZP.js +0 -2
  865. package/dist/cli-bundle/focused-chunks/chunk-BRZV7BFV.js +0 -8
  866. package/dist/cli-bundle/focused-chunks/chunk-C3O6JJPO.js +0 -2
  867. package/dist/cli-bundle/focused-chunks/chunk-CR7CGEB2.js +0 -3
  868. package/dist/cli-bundle/focused-chunks/chunk-EGN2HFRU.js +0 -2
  869. package/dist/cli-bundle/focused-chunks/chunk-GHQVM6K6.js +0 -2
  870. package/dist/cli-bundle/focused-chunks/chunk-HDEKFSOK.js +0 -2
  871. package/dist/cli-bundle/focused-chunks/chunk-I5LGPUWH.js +0 -2
  872. package/dist/cli-bundle/focused-chunks/chunk-IWOXAUDU.js +0 -2
  873. package/dist/cli-bundle/focused-chunks/chunk-ML3JHCC6.js +0 -6
  874. package/dist/cli-bundle/focused-chunks/chunk-OPGOOP25.js +0 -2
  875. package/dist/cli-bundle/focused-chunks/chunk-RE7ZWT7D.js +0 -27
  876. package/dist/cli-bundle/focused-chunks/chunk-RKQNVYGF.js +0 -3
  877. package/dist/cli-bundle/focused-chunks/chunk-RQ252B6V.js +0 -8
  878. package/dist/cli-bundle/focused-chunks/chunk-SVOOGGAK.js +0 -2
  879. package/dist/cli-bundle/focused-chunks/chunk-URGHTTT3.js +0 -8
  880. package/dist/cli-bundle/focused-chunks/chunk-USPYKWQG.js +0 -13
  881. package/dist/cli-bundle/focused-chunks/chunk-UWS3FC4D.js +0 -102
  882. package/dist/cli-bundle/focused-chunks/chunk-UXQGFGAT.js +0 -44
  883. package/dist/cli-bundle/focused-chunks/chunk-WZWXGDYY.js +0 -26
  884. package/dist/cli-bundle/focused-chunks/chunk-YKSLZPLT.js +0 -2
  885. package/dist/cli-bundle/focused-chunks/chunk-ZWJTY4ID.js +0 -2
  886. package/dist/cli-bundle/focused-chunks/context-budget-recovery-5MKOCGY5.js +0 -2
  887. package/dist/cli-bundle/focused-chunks/indexed-receipt-blobs-AF4U3F3D.js +0 -4
  888. package/dist/cli-bundle/focused-chunks/item-transaction-GLACUTPL.js +0 -2
  889. package/dist/cli-bundle/focused-chunks/mutation-actor-TCYDPUGG.js +0 -2
  890. package/dist/cli-bundle/focused-chunks/mutation-admission-LY73EJWM.js +0 -2
  891. package/dist/cli-bundle/focused-chunks/settlement-hook-ARYCZQY4.js +0 -7
  892. package/dist/cli-bundle/focused-chunks/stage-DQ7RQQ52.js +0 -2
@@ -1 +1 @@
1
- {"name":"pm","owner":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"description":"Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.","version":"2026.11.22","plugins":[{"name":"pm-claude","source":"./plugins/pm-claude","description":"Native pm CLI integration for Claude Code — 32 MCP tools, 14 workflow skills with slash invocations, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.","version":"2026.11.22","author":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"homepage":"https://github.com/unbraind/pm-cli","repository":"https://github.com/unbraind/pm-cli","license":"MIT","keywords":["pm-cli","project-management","mcp","tasks","agents","workflows","git-native","task-tracker","ai"],"category":"productivity"}]}
1
+ {"name":"pm","owner":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"description":"Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.","version":"2026.11.23","plugins":[{"name":"pm-claude","source":"./plugins/pm-claude","description":"Native pm CLI integration for Claude Code — 32 MCP tools, 14 workflow skills with slash invocations, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.","version":"2026.11.23","author":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"homepage":"https://github.com/unbraind/pm-cli","repository":"https://github.com/unbraind/pm-cli","license":"MIT","keywords":["pm-cli","project-management","mcp","tasks","agents","workflows","git-native","task-tracker","ai"],"category":"productivity"}]}
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="afa4a7a0-d9de-529d-92dd-3e9704ea00d2")}catch{}})();import{finishTelemetryCommand,getActiveCommandResult,readSettings,resolveAuthor}from"../sdk/runtime-primitives.js";import{finalizeContextUsageDelivery,recordContextUsageTouches}from"../sdk/context-usage.js";async function finishActiveTelemetryCommand(runtime,outcome){await finishTelemetryCommand(runtime,{ok:outcome.ok,error:outcome.error,result:getActiveCommandResult(),exit_code:outcome.exit_code,error_code:outcome.error_code,error_category:outcome.error_category,command_resolution:outcome.command_resolution,resolution_stage:outcome.resolution_stage})}async function recordAfterCommandContextUsage(options){if(process.env.PM_CONTEXT_USAGE_DISABLED==="1")return;let deliveryError;try{await finalizeContextUsageDelivery({pmRoot:options.pmRoot,result:getActiveCommandResult()})}catch(error){deliveryError=error}const settings=await readSettings(options.pmRoot);if(await recordContextUsageTouches({pmRoot:options.pmRoot,author:resolveAuthor(options.author,settings.author_default),itemIds:options.itemIds,intent:options.intent}),deliveryError!==void 0)throw deliveryError}export{finishActiveTelemetryCommand,recordAfterCommandContextUsage};
1
+ import{finishTelemetryCommand as i,getActiveCommandResult as t,readSettings as n,resolveAuthor as s}from"../sdk/runtime-primitives.js";import{finalizeContextUsageDelivery as d,recordContextUsageTouches as m}from"../sdk/context-usage.js";async function _(r,e){await i(r,{ok:e.ok,error:e.error,result:t(),exit_code:e.exit_code,error_code:e.error_code,error_category:e.error_category,command_resolution:e.command_resolution,resolution_stage:e.resolution_stage})}async function f(r){if(process.env.PM_CONTEXT_USAGE_DISABLED==="1")return;let e;try{await d({pmRoot:r.pmRoot,result:t()})}catch(a){e=a}const o=await n(r.pmRoot);if(await m({pmRoot:r.pmRoot,author:s(r.author,o.author_default),itemIds:r.itemIds,intent:r.intent}),e!==void 0)throw e}export{_ as finishActiveTelemetryCommand,f as recordAfterCommandContextUsage};
2
2
  //# sourceMappingURL=after-command-context-usage.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="50318c14-8c1c-50f3-95d0-fd9ea3f0bb69")}catch{}})();function normalizeLongFlag(flag){return`--${flag.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function normalizeLongOptionFlag(token){if(!token.startsWith("--"))return;const key=token.includes("=")?token.slice(0,token.indexOf("=")):token;return normalizeLongFlag(key)}function extractProvidedOptionFlags(argv){const provided=new Set,ordered=[];for(const token of argv){const normalized=normalizeLongOptionFlag(token);normalized&&(provided.has(normalized)||ordered.push(normalized),provided.add(normalized))}return ordered}import{quoteCommandArg,redactSensitiveCommandArgs,renderPmCommand}from"../sdk/command-line.js";export{extractProvidedOptionFlags,normalizeLongFlag,normalizeLongOptionFlag,quoteCommandArg,redactSensitiveCommandArgs,renderPmCommand};
1
+ function i(e){return`--${e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function a(e){if(!e.startsWith("--"))return;const r=e.includes("=")?e.slice(0,e.indexOf("=")):e;return i(r)}function d(e){const r=new Set,o=[];for(const t of e){const n=a(t);n&&(r.has(n)||o.push(n),r.add(n))}return o}import{quoteCommandArg as f,redactSensitiveCommandArgs as l,renderPmCommand as m}from"../sdk/command-line.js";export{d as extractProvidedOptionFlags,i as normalizeLongFlag,a as normalizeLongOptionFlag,f as quoteCommandArg,l as redactSensitiveCommandArgs,m as renderPmCommand};
2
2
  //# sourceMappingURL=argv-utils.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dacf3952-3ae1-57fa-840a-c8a43cf855a5")}catch{}})();export*from"../sdk/cli-bootstrap.js";
1
+ export*from"../sdk/cli-bootstrap.js";
2
2
  //# sourceMappingURL=bootstrap-args.js.map
@@ -1,3 +1,3 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7c5bdefe-51bf-528b-86ad-479b8ab68bac")}catch{}})();import{createHash}from"node:crypto";import fs from"node:fs";import path from"node:path";function isCliBundleManifest(value){if(typeof value!="object"||value===null)return!1;const candidate=value;return candidate.schema_version===1&&typeof candidate.generation=="string"&&candidate.generation.length>0&&Array.isArray(candidate.files)&&candidate.files.every(entry=>typeof entry=="object"&&entry!==null&&typeof entry.path=="string"&&typeof entry.sha256=="string")}function readCliBundleManifestSnapshot(cliEntrypointPath){const manifestPath=path.join(path.dirname(path.resolve(cliEntrypointPath)),"cli-bundle","bundle-manifest.json");try{const parsed=JSON.parse(fs.readFileSync(manifestPath,"utf8"));return isCliBundleManifest(parsed)?{manifest_path:manifestPath,manifest:parsed}:void 0}catch{return}}function inspectCurrentBundleIntegrity(initialSnapshot,cliEntrypointPath){const currentSnapshot=readCliBundleManifestSnapshot(cliEntrypointPath);if(!currentSnapshot)return"manifest_missing";if(currentSnapshot.manifest.generation!==initialSnapshot.manifest.generation)return"generation_changed";const bundleRoot=path.dirname(currentSnapshot.manifest_path);for(const entry of currentSnapshot.manifest.files){const filePath=path.resolve(bundleRoot,entry.path);if(filePath.startsWith(`${bundleRoot}${path.sep}`)){if(!fs.existsSync(filePath))return"file_missing";if(createHash("sha256").update(fs.readFileSync(filePath)).digest("hex")!==entry.sha256)return"hash_mismatch"}}}function diagnoseCliBundleIntegrityFailure(error,initialSnapshot,cliEntrypointPath){if(!initialSnapshot||!(error instanceof Error)||("code"in error&&typeof error.code=="string"?error.code:"")!=="ERR_MODULE_NOT_FOUND"&&!/(?:cannot find module|does not provide an export named|[A-Za-z_$][\w$]* is not a function)/i.test(error.message))return;const reason=inspectCurrentBundleIntegrity(initialSnapshot,cliEntrypointPath);return reason?{code:"bundle_integrity_torn_install",message:"A partial pm CLI upgrade or concurrent rebuild changed the executable bundle. Reinstall @unbrained/pm-cli, then retry the command.",reason,cause:error.message}:void 0}async function runCliWithBundleIntegrity(args,cliEntrypointPath,loadMain,writeStderr){const initialBundleManifest=readCliBundleManifestSnapshot(cliEntrypointPath);try{const{runPmCli}=await loadMain();await runPmCli(args)}catch(error){const diagnostic=diagnoseCliBundleIntegrityFailure(error,initialBundleManifest,cliEntrypointPath);if(!diagnostic)throw error;writeStderr(`[pm] ${diagnostic.code}: ${diagnostic.message} (${diagnostic.reason})
2
- `),process.exitCode=1}}export{diagnoseCliBundleIntegrityFailure,readCliBundleManifestSnapshot,runCliWithBundleIntegrity};
1
+ import{createHash as c}from"node:crypto";import d from"node:fs";import r from"node:path";function u(e){if(typeof e!="object"||e===null)return!1;const n=e;return n.schema_version===1&&typeof n.generation=="string"&&n.generation.length>0&&Array.isArray(n.files)&&n.files.every(t=>typeof t=="object"&&t!==null&&typeof t.path=="string"&&typeof t.sha256=="string")}function f(e){const n=r.join(r.dirname(r.resolve(e)),"cli-bundle","bundle-manifest.json");try{const t=JSON.parse(d.readFileSync(n,"utf8"));return u(t)?{manifest_path:n,manifest:t}:void 0}catch{return}}function l(e,n){const t=f(n);if(!t)return"manifest_missing";if(t.manifest.generation!==e.manifest.generation)return"generation_changed";const a=r.dirname(t.manifest_path);for(const s of t.manifest.files){const i=r.resolve(a,s.path);if(!i.startsWith(`${a}${r.sep}`))continue;if(!d.existsSync(i))return"file_missing";if(c("sha256").update(d.readFileSync(i)).digest("hex")!==s.sha256)return"hash_mismatch"}}function m(e,n,t){if(!n||!(e instanceof Error)||("code"in e&&typeof e.code=="string"?e.code:"")!=="ERR_MODULE_NOT_FOUND"&&!/(?:cannot find module|does not provide an export named|[A-Za-z_$][\w$]* is not a function)/i.test(e.message))return;const s=l(n,t);return s?{code:"bundle_integrity_torn_install",message:"A partial pm CLI upgrade or concurrent rebuild changed the executable bundle. Reinstall @unbrained/pm-cli, then retry the command.",reason:s,cause:e.message}:void 0}async function y(e,n,t,a){const s=f(n);try{const{runPmCli:i}=await t();await i(e)}catch(i){const o=m(i,s,n);if(!o)throw i;a(`[pm] ${o.code}: ${o.message} (${o.reason})
2
+ `),process.exitCode=1}}export{m as diagnoseCliBundleIntegrityFailure,f as readCliBundleManifestSnapshot,y as runCliWithBundleIntegrity};
3
3
  //# sourceMappingURL=bundle-integrity.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2efeb172-b440-5df6-ad48-4c54087835e0")}catch{}})();import{PM_RELOCATED_COMMAND_ALIASES}from"../sdk/cli-contracts/command-aliases.js";import{resolvePmCommandVisibilityTier}from"../sdk/agent-capability-contracts.js";import{setPmCommandHelpVisibilityTier}from"./help-content.js";function installCommandNamespaces(program,parentsOnly=!1){program.commands.some(command=>command.name()==="ops")||program.command("ops").description("Discover workspace diagnostics and maintenance operations.");for(const{alias,canonical,canonical_argv:tokens}of PM_RELOCATED_COMMAND_ALIASES){if(parentsOnly&&!PM_RELOCATED_COMMAND_ALIASES.some(entry=>entry.canonical.startsWith(`${canonical} `)))continue;const sourceIndex=program.commands.findIndex(command=>command.name()===alias);if(sourceIndex<0)continue;const source=program.commands[sourceIndex];let parent=program;for(const noun of tokens.slice(0,-1))parent!==program&&parent.enablePositionalOptions(),parent=parent.commands.find(command=>command.name()===noun)??parent.command(noun).description(`Discover ${noun} operations.`);const verb=tokens[tokens.length-1];if(parent.commands.some(command=>command.name()===verb))throw new Error(`Cannot install canonical command ${canonical}: destination already exists.`);program.commands.splice(sourceIndex,1),source.name(verb),setPmCommandHelpVisibilityTier(source,resolvePmCommandVisibilityTier(canonical)),parent.enablePositionalOptions(),parent.addCommand(source)}}export{installCommandNamespaces};
1
+ import{PM_RELOCATED_COMMAND_ALIASES as d}from"../sdk/cli-contracts/command-aliases.js";import{resolvePmCommandVisibilityTier as f}from"../sdk/agent-capability-contracts.js";import{setPmCommandHelpVisibilityTier as p}from"./help-content.js";function v(i,l=!1){i.commands.some(s=>s.name()==="ops")||i.command("ops").description("Discover workspace diagnostics and maintenance operations.");for(const{alias:s,canonical:e,canonical_argv:a}of d){if(l&&!d.some(n=>n.canonical.startsWith(`${e} `)))continue;const t=i.commands.findIndex(n=>n.name()===s);if(t<0)continue;const m=i.commands[t];let o=i;for(const n of a.slice(0,-1))o!==i&&o.enablePositionalOptions(),o=o.commands.find(r=>r.name()===n)??o.command(n).description(`Discover ${n} operations.`);const c=a[a.length-1];if(o.commands.some(n=>n.name()===c))throw new Error(`Cannot install canonical command ${e}: destination already exists.`);i.commands.splice(t,1),m.name(c),p(m,f(e)),o.enablePositionalOptions(),o.addCommand(m)}}export{v as installCommandNamespaces};
2
2
  //# sourceMappingURL=command-namespaces.js.map
@@ -1,16 +1,16 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4dc823f5-3e6f-5c7a-b537-107cb1073cbc")}catch{}})();import{pathExists,resolveItemTypeRegistry,EXIT_CODE,getSettingsPath,resolvePmRoot,readSettings,getActiveExtensionRegistrations,locateItem,runActiveServiceOverride,levenshteinDistanceWithinLimit}from"../sdk/runtime-primitives.js";import{BUILTIN_ITEM_TYPE_VALUES}from"../types/index.js";import{PM_CORE_COMMAND_NAMES,resolveSubcommandFlagContractsForCommand}from"../sdk/cli-contracts.js";import{formatCommanderErrorForDisplay,formatCommanderErrorForJson,projectLeanErrorEnvelope}from"./error-guidance.js";import{normalizeHelpCommandPath}from"./help-content.js";import{getCommandPath}from"./registration-helpers.js";import{EXECUTABLE_COMMAND_ALIASES,findBootstrapCommandTokenIndex,normalizeBootstrapInvocation,parseBootstrapHelpRequest,parseBootstrapGlobalOptions,parseBootstrapCommandName}from"./bootstrap-args.js";import{extractProvidedOptionFlags,normalizeLongFlag,renderPmCommand}from"./argv-utils.js";import{normalizeExtensionNameForMatch}from"./commands/extension/shared.js";import{canonicalizeCommandSuggestions,rankCommandPaths,resolveMisnestedCommandPath}from"../sdk/agent/command-suggestions.js";import{isCompatibleRecoveryFlag,renderMissingOptionRetry,resolveLifecycleVerbRecovery}from"../sdk/agent/command-recovery.js";import{resolvePmCommandScopeArgs}from"../sdk/command-line.js";import{attachOutputTokenAccounting}from"../sdk/output-token-accounting.js";import{findPmNamespacedCommand,resolvePmCommandAlias}from"../sdk/cli-contracts/command-aliases.js";import{redactRefusalArgv}from"./runtime/refusal-credential-redaction.js";import{redactUrlCredentialsInText}from"../sdk/command-line.js";const BUILTIN_TYPE_HELP_VALUES=BUILTIN_ITEM_TYPE_VALUES.join("|"),OPTIONAL_PACKAGE_INSTALL_HINTS={calendar:"calendar",cal:"calendar",reindex:"search-advanced","search-advanced":"search-advanced",guide:"guide-shell",completion:"guide-shell",templates:"templates","test-runs":"linked-test-adapters",beads:"beads",todos:"todos"},SEMANTIC_UNKNOWN_OPTION_SUGGESTIONS={comments:{"--body":["--add"],"--text":["--add"],"--comment":["--add"]},notes:{"--body":["--add"],"--text":["--add"],"--note":["--add"]},learnings:{"--body":["--add"],"--text":["--add"],"--learning":["--add"]},update:{"--add-tag":["--add-tags"],"--remove-tag":["--remove-tags"],"--tag":["--tags"]},create:{"--add-tag":["--add-tags"],"--tag":["--tags"]}},SCHEMA_SUBCOMMAND_VALUES=["add-field","add-status","add-type","apply-preset","list","list-fields","remap-status","remove-field","remove-status","remove-type","rename-field","rename-type","show","show-field","show-status"];function getSemanticUnknownOptionSuggestions(commandName,unknownOption){const commandSuggestions=SEMANTIC_UNKNOWN_OPTION_SUGGESTIONS[commandName];if(!commandSuggestions)return[];const normalizedUnknown=normalizeLongFlag(unknownOption);for(const[flag,suggestions]of Object.entries(commandSuggestions))if(normalizeLongFlag(flag)===normalizedUnknown)return suggestions;return[]}function appendCommanderExtensionFailures(renderedUsage,json,rawFailures){if(rawFailures.length===0)return renderedUsage;const failures=rawFailures.map(entry=>({...entry,name:redactUrlCredentialsInText(entry.name),error:redactUrlCredentialsInText(entry.error),...entry.recovery_commands?{recovery_commands:entry.recovery_commands.map(redactUrlCredentialsInText)}:{}}));if(json){const primaryFailure2=failures.find(entry=>entry.declared_command_match===!0),{token_accounting:priorAccounting,...usage}=JSON.parse(renderedUsage),enriched={...usage,...primaryFailure2?{extension_command_failure:{code:"extension_command_activation_failed",extension:primaryFailure2.name,layer:primaryFailure2.layer,error:primaryFailure2.error,recovery_commands:primaryFailure2.recovery_commands??[]}}:{},failed_extensions:failures};return JSON.stringify(priorAccounting===void 0?enriched:attachOutputTokenAccounting(enriched,value=>`${JSON.stringify(value,null,2)}
2
- `),null,2)}const details=failures.map(entry=>`- ${entry.layer}:${entry.name}: ${entry.error}`).join(`
3
- `),primaryFailure=failures.find(entry=>entry.declared_command_match===!0);if(!primaryFailure)return`${renderedUsage}
1
+ import{pathExists as K,resolveItemTypeRegistry as X,EXIT_CODE as Q,getSettingsPath as Z,resolvePmRoot as ee,readSettings as ne,getActiveExtensionRegistrations as te,locateItem as oe,runActiveServiceOverride as se,levenshteinDistanceWithinLimit as E}from"../sdk/runtime-primitives.js";import{BUILTIN_ITEM_TYPE_VALUES as ae}from"../types/index.js";import{PM_CORE_COMMAND_NAMES as F,resolveSubcommandFlagContractsForCommand as re}from"../sdk/cli-contracts.js";import{formatCommanderErrorForDisplay as ie,formatCommanderErrorForJson as ce,projectLeanErrorEnvelope as de}from"./error-guidance.js";import{normalizeHelpCommandPath as T}from"./help-content.js";import{getCommandPath as le}from"./registration-helpers.js";import{EXECUTABLE_COMMAND_ALIASES as R,findBootstrapCommandTokenIndex as x,normalizeBootstrapInvocation as me,parseBootstrapHelpRequest as ue,parseBootstrapGlobalOptions as I,parseBootstrapCommandName as P}from"./bootstrap-args.js";import{extractProvidedOptionFlags as fe,normalizeLongFlag as f,renderPmCommand as k}from"./argv-utils.js";import{normalizeExtensionNameForMatch as pe}from"./commands/extension/shared.js";import{canonicalizeCommandSuggestions as U,rankCommandPaths as ge,resolveMisnestedCommandPath as he}from"../sdk/agent/command-suggestions.js";import{isCompatibleRecoveryFlag as Ce,renderMissingOptionRetry as we,resolveLifecycleVerbRecovery as ke}from"../sdk/agent/command-recovery.js";import{resolvePmCommandScopeArgs as ye}from"../sdk/command-line.js";import{attachOutputTokenAccounting as A}from"../sdk/output-token-accounting.js";import{findPmNamespacedCommand as L,resolvePmCommandAlias as _}from"../sdk/cli-contracts/command-aliases.js";import{redactRefusalArgv as Se}from"./runtime/refusal-credential-redaction.js";import{redactUrlCredentialsInText as O}from"../sdk/command-line.js";const b=ae.join("|"),xe={calendar:"calendar",cal:"calendar",reindex:"search-advanced","search-advanced":"search-advanced",guide:"guide-shell",completion:"guide-shell",templates:"templates","test-runs":"linked-test-adapters",beads:"beads",todos:"todos"},Ie={comments:{"--body":["--add"],"--text":["--add"],"--comment":["--add"]},notes:{"--body":["--add"],"--text":["--add"],"--note":["--add"]},learnings:{"--body":["--add"],"--text":["--add"],"--learning":["--add"]},update:{"--add-tag":["--add-tags"],"--remove-tag":["--remove-tags"],"--tag":["--tags"]},create:{"--add-tag":["--add-tags"],"--tag":["--tags"]}},$=["add-field","add-status","add-type","apply-preset","list","list-fields","remap-status","remove-field","remove-status","remove-type","rename-field","rename-type","show","show-field","show-status"];function _e(t,o){const n=Ie[t];if(!n)return[];const s=f(o);for(const[a,e]of Object.entries(n))if(f(a)===s)return e;return[]}function rn(t,o,n){if(n.length===0)return t;const s=n.map(i=>({...i,name:O(i.name),error:O(i.error),...i.recovery_commands?{recovery_commands:i.recovery_commands.map(O)}:{}}));if(o){const i=s.find(m=>m.declared_command_match===!0),{token_accounting:c,...d}=JSON.parse(t),l={...d,...i?{extension_command_failure:{code:"extension_command_activation_failed",extension:i.name,layer:i.layer,error:i.error,recovery_commands:i.recovery_commands??[]}}:{},failed_extensions:s};return JSON.stringify(c===void 0?l:A(l,m=>`${JSON.stringify(m,null,2)}
2
+ `),null,2)}const a=s.map(i=>`- ${i.layer}:${i.name}: ${i.error}`).join(`
3
+ `),e=s.find(i=>i.declared_command_match===!0);if(!e)return`${t}
4
4
  Extension activation failures:
5
- ${details}`;const recovery=(primaryFailure.recovery_commands??[]).map(command=>`- ${command}`).join(`
6
- `);return`Extension command unavailable: ${primaryFailure.layer}:${primaryFailure.name}
7
- ${primaryFailure.error}${recovery.length>0?`
5
+ ${a}`;const r=(e.recovery_commands??[]).map(i=>`- ${i}`).join(`
6
+ `);return`Extension command unavailable: ${e.layer}:${e.name}
7
+ ${e.error}${r.length>0?`
8
8
  Recovery:
9
- ${recovery}`:""}
9
+ ${r}`:""}
10
10
 
11
- ${renderedUsage}
11
+ ${t}
12
12
  Extension activation failures:
13
- ${details}`}function resolveUnknownCommanderToken(invocationArgv){return parseBootstrapHelpRequest(invocationArgv).commandPathTokens[0]??parseBootstrapCommandName(invocationArgv)??"<command>"}function collectRuntimeCommandPaths(root,extensionDescriptors){const commandPaths=new Set,queue=[...root.commands];for(;queue.length>0;){const current=queue.shift();if(!current)continue;const normalizedPath=normalizeHelpCommandPath(getCommandPath(current)),hasInternalSegment=normalizedPath.split(" ").some(segment=>segment.startsWith("_"));normalizedPath.length>0&&!hasInternalSegment&&commandPaths.add(normalizedPath),queue.push(...current.commands)}for(const descriptorPath of extensionDescriptors.keys()){const normalizedPath=normalizeHelpCommandPath(descriptorPath),hasInternalSegment=normalizedPath.split(" ").some(segment=>segment.startsWith("_"));normalizedPath.length>0&&!hasInternalSegment&&commandPaths.add(normalizedPath)}return[...commandPaths].sort((left,right)=>left.localeCompare(right))}function scoreCommandPathMatch(commandPath,queryToken){const normalizedPath=commandPath.trim().toLowerCase(),normalizedToken=queryToken.trim().toLowerCase();if(normalizedToken.length===0)return Number.POSITIVE_INFINITY;const pathSegments=normalizedPath.split(" ");if(normalizedPath===normalizedToken)return 0;if(pathSegments.includes(normalizedToken))return 1;if(pathSegments.some(segment=>segment.startsWith(normalizedToken)))return 2;if(normalizedPath.includes(normalizedToken))return 3;const maxDistance=normalizedToken.length>=5?2:1;let bestDistance=Number.POSITIVE_INFINITY;for(const segment of pathSegments){const distance=levenshteinDistanceWithinLimit(segment,normalizedToken,maxDistance);distance!==null&&(bestDistance=Math.min(bestDistance,distance))}return Number.isFinite(bestDistance)?4+bestDistance:Number.POSITIVE_INFINITY}function toComparableFlag(flag){return normalizeLongFlag(flag).slice(2).replace(/-/g,"")}function renderAttemptedCommand(argv){return renderPmCommand(argv)}function resolveOptionalPackageInstallHint(commandPath){const canonicalPath=resolvePmCommandAlias(commandPath)?.canonical??EXECUTABLE_COMMAND_ALIASES[commandPath]??commandPath,topLevel=canonicalPath.split(" ")[0]?.trim().toLowerCase();if(!topLevel)return null;const packageAlias=OPTIONAL_PACKAGE_INSTALL_HINTS[topLevel];return packageAlias?{packageAlias,canonicalPath,installCommand:`pm package install ${packageAlias} --project`}:null}function normalizePackageCommandAliasToken(value){let normalized=normalizeExtensionNameForMatch(value);for(const prefix of["@unbrained/","builtin-","pm-"])normalized.startsWith(prefix)&&(normalized=normalized.slice(prefix.length));return normalized}function collectInstalledPackageCommandPathHints(unknownToken,extensionDescriptors){const normalizedUnknown=normalizePackageCommandAliasToken(unknownToken);if(normalizedUnknown.length===0)return[];const hints=[];for(const descriptor of extensionDescriptors.values()){const identifiers=new Set,source=descriptor.source;if(source)for(const identifier of[source.name,source.package]){const normalizedIdentifier=normalizePackageCommandAliasToken(identifier??"");normalizedIdentifier.length>0&&identifiers.add(normalizedIdentifier)}identifiers.size!==0&&[...identifiers].some(identifier=>identifier===normalizedUnknown||identifier.includes(normalizedUnknown)||normalizedUnknown.includes(identifier))&&hints.push(descriptor.command)}return[...new Set(hints)].sort((left,right)=>left.localeCompare(right))}function collectKnownLongFlags(commandName,contractsOverride){const flags=new Set,contracts=contractsOverride??resolveSubcommandFlagContractsForCommand(commandName);for(const contract of contracts){contract.flag.startsWith("--")&&flags.add(normalizeLongFlag(contract.flag));for(const alias of contract.aliases??[])alias.startsWith("--")&&flags.add(normalizeLongFlag(alias))}return[...flags].sort((left,right)=>left.localeCompare(right))}function suggestNearestLongFlags(unknownOption,knownFlags){if(!unknownOption.startsWith("--"))return[];const unknownComparable=toComparableFlag(unknownOption);if(unknownComparable.length===0)return[];const maxDistance=unknownComparable.length>=8?2:1,candidates=[];for(const flag of knownFlags){const flagComparable=toComparableFlag(flag);if(flagComparable===unknownComparable)continue;if(unknownComparable.length>=3&&flagComparable.startsWith(unknownComparable)){candidates.push({flag,rank:0,distance:flagComparable.length-unknownComparable.length});continue}const distance=levenshteinDistanceWithinLimit(unknownComparable,flagComparable,maxDistance);distance===null||distance<=0||candidates.push({flag,rank:1,distance})}return candidates.sort((left,right)=>left.rank!==right.rank?left.rank-right.rank:left.distance!==right.distance?left.distance-right.distance:left.flag.localeCompare(right.flag)).map(entry=>entry.flag).slice(0,3)}let crossCommandFlagIndexCache;const CROSS_COMMAND_FLAG_EXCLUSIONS=new Set(["ctx","packages","list-draft","list-open","list-in-progress","list-blocked","list-closed","list-canceled","start-task","pause-task","close-task","help"]);function getCrossCommandFlagIndex(){if(crossCommandFlagIndexCache)return crossCommandFlagIndexCache;const index=new Map;for(const command of PM_CORE_COMMAND_NAMES)if(!CROSS_COMMAND_FLAG_EXCLUSIONS.has(command))for(const flag of collectKnownLongFlags(command)){const commands=index.get(flag)??[];commands.push(command),index.set(flag,commands)}return crossCommandFlagIndexCache=index,crossCommandFlagIndexCache}function findOtherCommandsForFlag(unknownOption,currentCommand){if(!unknownOption.startsWith("--"))return[];const commands=getCrossCommandFlagIndex().get(normalizeLongFlag(unknownOption));if(!commands)return[];const normalizedCurrent=currentCommand?.trim().toLowerCase(),currentFlags=new Set(collectKnownLongFlags(normalizedCurrent));return[...new Set(commands.filter(command=>command!==normalizedCurrent).map(command=>({command,sharedFlagCount:collectKnownLongFlags(command).filter(flag=>currentFlags.has(flag)).length})).sort((left,right)=>left.sharedFlagCount!==right.sharedFlagCount?right.sharedFlagCount-left.sharedFlagCount:left.command.localeCompare(right.command)).map(({command})=>resolvePmCommandAlias(command)?.canonical??command))]}function rewriteUnknownOptionArgv(argv,unknownOption,replacementFlag){for(let index=0;index<argv.length;index+=1){const token=argv[index];if(!token.startsWith("--"))continue;const equalsIndex=token.indexOf("="),key=equalsIndex>=0?token.slice(0,equalsIndex):token;if(normalizeLongFlag(key)!==normalizeLongFlag(unknownOption))continue;const next=[...argv];return next[index]=equalsIndex>=0?`${replacementFlag}${token.slice(equalsIndex)}`:replacementFlag,next}}function scoreRuntimeCommandCandidates(params){const commandPathSet=new Set(params.commandPaths),scoreAgainstUnknown=candidatePath=>Math.min(scoreCommandPathMatch(candidatePath,params.normalizedUnknown),params.primaryToken!==params.normalizedUnknown?scoreCommandPathMatch(candidatePath,params.primaryToken):Number.POSITIVE_INFINITY),scoresByCommandPath=new Map,recordCandidateScore=(commandPath,score)=>{if(!Number.isFinite(score)||!commandPathSet.has(commandPath))return;const existing=scoresByCommandPath.get(commandPath);(existing===void 0||score<existing)&&scoresByCommandPath.set(commandPath,score)};for(const commandPath of params.commandPaths)recordCandidateScore(commandPath,scoreAgainstUnknown(commandPath));for(const[aliasToken,canonicalPath]of Object.entries(EXECUTABLE_COMMAND_ALIASES))aliasToken!=="read"&&recordCandidateScore(canonicalPath,scoreAgainstUnknown(aliasToken));return[...scoresByCommandPath.entries()].sort(([leftPath,leftScore],[rightPath,rightScore])=>leftScore!==rightScore?leftScore-rightScore:leftPath.localeCompare(rightPath)).map(([commandPath])=>commandPath)}function resolveUnknownCommandCandidates(params){const exactAlias=resolvePmCommandAlias(params.normalizedUnknown),semanticCandidates=rankCommandPaths(params.commandPaths,params.primaryToken),rankedCandidates=scoreRuntimeCommandCandidates(params),installedPackageCandidates=collectInstalledPackageCommandPathHints(params.primaryToken,params.extensionDescriptors).filter(commandPath=>params.commandPaths.includes(commandPath));return canonicalizeCommandSuggestions([...exactAlias&&params.commandPaths.includes(exactAlias.canonical)?[exactAlias.canonical_argv.join(" ")]:[],...semanticCandidates,...rankedCandidates,...installedPackageCandidates],params.commandPaths,params.primaryToken).filter(path=>!params.normalizedUnknown.includes(" ")||path!==params.normalizedUnknown)}function resolveUnknownCommandFallbacks(commandPaths){return[...new Set(commandPaths.map(commandPath=>commandPath.split(" ")[0]).filter(segment=>segment.length>0))].sort((left,right)=>left.localeCompare(right))}function buildUnknownCommandExamples(suggestedPaths,hasConcreteCandidates){const suggestedExamples=suggestedPaths.map(path=>`pm ${path} --help`);return hasConcreteCandidates?[...new Set([...suggestedExamples,"pm --help --all"])]:[...new Set(["pm --help --all",...suggestedExamples])]}function resolveUnknownCommandPath(token,invocationArgv,commandPaths){let commandIndex=findBootstrapCommandTokenIndex([...invocationArgv]);const path=[];for(;commandIndex!==void 0;){if(path.push(invocationArgv[commandIndex]),invocationArgv[commandIndex]===token)return path.join(" ");if(!commandPaths.includes(path.join(" ")))return token;const offset=findBootstrapCommandTokenIndex(invocationArgv.slice(commandIndex+1));commandIndex=offset===void 0?void 0:commandIndex+1+offset}return token}function buildCanonicalHelpRetryArgs(canonicalPath,invocationArgv){if(!canonicalPath)return;const bootstrapGlobal=parseBootstrapGlobalOptions([...invocationArgv]);return[...resolvePmCommandScopeArgs(bootstrapGlobal),...canonicalPath.split(" "),"--help"]}function buildUnknownCommandGuidanceFromRuntime(rawMessage,root,extensionDescriptors,invocationArgv=[]){const unknownCommandMatch=rawMessage.match(/unknown command '([^']+)'/i);if(!unknownCommandMatch||typeof unknownCommandMatch[1]!="string")return;const commandPaths=collectRuntimeCommandPaths(root,extensionDescriptors),unknownPath=resolveUnknownCommandPath(unknownCommandMatch[1],invocationArgv,commandPaths),normalizedUnknown=normalizeHelpCommandPath(unknownPath);if(normalizedUnknown.length===0||commandPaths.length===0)return;const lifecycleRecovery=resolveLifecycleVerbRecovery(normalizedUnknown,commandPaths);if(lifecycleRecovery){const retryArgs2=buildCanonicalHelpRetryArgs("update",invocationArgv),bootstrapArgs=retryArgs2.slice(0,-2);return{suggestedRetryCommand:renderPmCommand(retryArgs2),suggestedRetryArgs:retryArgs2,unknownCommandExamples:[renderPmCommand(retryArgs2),...lifecycleRecovery.examples.map(args=>renderPmCommand([...bootstrapArgs,...args]))],unknownCommandNextSteps:lifecycleRecovery.nextSteps}}const optionalPackageHint=resolveOptionalPackageInstallHint(normalizedUnknown);if(optionalPackageHint&&!commandPaths.includes(optionalPackageHint.canonicalPath.split(" ")[0]))return{unknownCommandExamples:[optionalPackageHint.installCommand,`pm ${optionalPackageHint.canonicalPath} --help`,"pm --help --all"],unknownCommandNextSteps:[`"${normalizedUnknown}" is provided by the "${optionalPackageHint.packageAlias}" package. Install it with: ${optionalPackageHint.installCommand}. Command after installation: pm ${optionalPackageHint.canonicalPath}.`],suggestedRetryCommand:optionalPackageHint.installCommand};const primaryToken=normalizedUnknown.split(" ")[0],combinedCandidates=resolveUnknownCommandCandidates({commandPaths,normalizedUnknown,primaryToken,extensionDescriptors}),fallbackTopLevel=resolveUnknownCommandFallbacks(commandPaths),misnestedPath=resolveMisnestedCommandPath(normalizedUnknown,commandPaths),retryArgs=buildCanonicalHelpRetryArgs(misnestedPath,invocationArgv),suggestedPaths=[...new Set([...misnestedPath?[misnestedPath]:[],...combinedCandidates.length>0?combinedCandidates:canonicalizeCommandSuggestions(fallbackTopLevel,commandPaths)])].slice(0,3),examples=buildUnknownCommandExamples(suggestedPaths,combinedCandidates.length>0),didYouMean=combinedCandidates.length>0?`Did you mean: ${suggestedPaths.join(", ")}?`:null;return{...retryArgs?{suggestedRetryCommand:renderPmCommand(retryArgs),suggestedRetryArgs:retryArgs}:{},unknownCommandExamples:retryArgs?[renderPmCommand(retryArgs),...examples.slice(1)]:examples,unknownCommandNextSteps:[...didYouMean?[didYouMean]:[],'Run "pm --help --all" to list every command available in this runtime, including active extensions.',...didYouMean?["Use one of the suggested command paths above with --help to inspect valid flags and usage."]:[]]}}function dedupeStrings(values){return Array.from(new Set(values))}function firstWhitespaceSeparatedToken(input){let token="";for(const character of input){if(character===" "||character===" "||character===`
14
- `||character==="\r"||character==="\f"||character==="\v")break;token+=character}return token}function trimTrailingPunctuationToken(token){let end=token.length;for(;end>0;){const character=token[end-1];if(character!==","&&character!==":"&&character!==";")break;end-=1}return token.slice(0,end)}function resolveChildCommandByToken(parent,token){const normalizedToken=token.trim().toLowerCase();return parent.commands.find(candidate=>candidate.name().trim().toLowerCase()===normalizedToken?!0:(typeof candidate.aliases=="function"?candidate.aliases():[]).some(alias=>alias.trim().toLowerCase()===normalizedToken))}function isKnownHelpCommandPath(root,commandPathTokens){if(commandPathTokens.length===0)return!0;let current=root;for(const[tokenIndex,token]of commandPathTokens.entries()){const next=resolveChildCommandByToken(current,token);if(!next){const declaredArguments=current.registeredArguments;return declaredArguments.length>0&&(current.commands.length===0||declaredArguments[0]?.required===!0)&&(declaredArguments.at(-1)?.variadic===!0||commandPathTokens.length-tokenIndex<=declaredArguments.length)}current=next}return!0}async function resolveWorkspaceUsageContext(bootstrapGlobal,message,invocationArgv,commandName){try{const pmRoot=resolvePmRoot(process.cwd(),bootstrapGlobal.path);if(!await pathExists(getSettingsPath(pmRoot)))return{allowedTypes:BUILTIN_TYPE_HELP_VALUES};const settings=await readSettings(pmRoot),extensionRegistrations=bootstrapGlobal.noExtensions?void 0:getActiveExtensionRegistrations(),typeRegistry=resolveItemTypeRegistry(settings,extensionRegistrations);let verifiedCollectionItemId;if(/too many arguments/i.test(message)&&["comments","docs","files","learnings","notes","test"].includes(commandName??"")){const commandIndex=invocationArgv.findIndex(token=>token===commandName),candidate=invocationArgv[commandIndex+2];if(invocationArgv[commandIndex+1]?.toLowerCase()==="add"&&candidate!==void 0&&!candidate.startsWith("-"))try{verifiedCollectionItemId=(await locateItem(pmRoot,candidate,settings.id_prefix,settings.item_format,typeRegistry.type_to_folder))?.id}catch{}}return{allowedTypes:typeRegistry.types.length>0?typeRegistry.types.join("|"):BUILTIN_TYPE_HELP_VALUES,pmRoot,settings,typeToFolder:typeRegistry.type_to_folder,verifiedCollectionItemId}}catch{return{allowedTypes:BUILTIN_TYPE_HELP_VALUES}}}function resolveUnknownOptionSuggestions(message,commandName){const match=message.match(/unknown option '([^']+)'/i),suggestions=match&&commandName?dedupeStrings([...getSemanticUnknownOptionSuggestions(commandName,match[1]),...suggestNearestLongFlags(match[1],collectKnownLongFlags(commandName))]).filter(candidate=>isCompatibleRecoveryFlag(match[1],candidate)):void 0,otherCommands=match?findOtherCommandsForFlag(match[1],commandName):[],declaredOnPath=match!==null&&collectKnownLongFlags(commandName).includes(normalizeLongFlag(match[1]));return{match,suggestions,otherCommands,scope:declaredOnPath?"declared_on_path":otherCommands.length>0?"declared_elsewhere":"declared_nowhere"}}function resolveSuggestedRetryForUnknownOption(invocationArgv,unknownOptionMatch,unknownOptionSuggestions){if(!unknownOptionMatch||!unknownOptionSuggestions||unknownOptionSuggestions.length===0)return;const rewritten=rewriteUnknownOptionArgv(invocationArgv,unknownOptionMatch[1],unknownOptionSuggestions[0]);return rewritten?renderAttemptedCommand(rewritten):void 0}function resolveSuggestedRetryForMissingOption(message,invocationArgv){const missingRequiredOption=message.match(/required option '([^']+)' not specified/i),requiredOptionToken=missingRequiredOption?.[1]?trimTrailingPunctuationToken(firstWhitespaceSeparatedToken(missingRequiredOption[1].trim())):void 0;if(!requiredOptionToken?.startsWith("--"))return;const commandName=parseBootstrapCommandName(invocationArgv);if(commandName)return renderMissingOptionRetry(invocationArgv,commandName,[requiredOptionToken])}function resolveSplitSchemaSubcommand(message,invocationArgv){if(!/too many arguments/i.test(message))return;const commandIndex=findBootstrapCommandTokenIndex(invocationArgv),namespaced=findPmNamespacedCommand(invocationArgv.slice(commandIndex));if(namespaced?.alias!=="schema")return;const schemaIndex=commandIndex+namespaced.canonical_argv.length-1,verb=invocationArgv[schemaIndex+1]?.trim().toLowerCase(),noun=invocationArgv[schemaIndex+2]?.trim().toLowerCase();if(!verb||!noun)return;const joined=`${verb}-${noun}`;if(!SCHEMA_SUBCOMMAND_VALUES.includes(joined))return;const rewritten=[...invocationArgv.slice(0,schemaIndex+1),joined,...invocationArgv.slice(schemaIndex+3)];return{unknownSubcommandPath:"schema",unknownSubcommandToken:`${verb} ${noun}`,unknownSubcommandAllowedValues:[...SCHEMA_SUBCOMMAND_VALUES],suggestedRetryCommand:renderAttemptedCommand(rewritten)}}function resolveRecoveryCommandName(message,invocationArgv,rootProgram,extensionDescriptors){const commandIndex=findBootstrapCommandTokenIndex(invocationArgv),inferred=findPmNamespacedCommand(invocationArgv.slice(commandIndex))?.alias??parseBootstrapCommandName(invocationArgv);if(!/unknown option /i.test(message)||inferred===void 0)return inferred;const canonical=resolvePmCommandAlias(inferred)?.canonical??inferred;return PM_CORE_COMMAND_NAMES.some(name=>name===inferred)||collectRuntimeCommandPaths(rootProgram,extensionDescriptors).includes(canonical)?inferred:void 0}async function resolveCommanderUsageContext(error,rootProgram,extensionDescriptors,guidanceOverrides={},invocationArgs=process.argv.slice(2)){const message=(typeof error=="object"&&error!==null?error.message:void 0)??"Invalid command usage",normalizedArgv=normalizeBootstrapInvocation([...invocationArgs]).argv,invocationArgv=redactRefusalArgv(normalizedArgv),bootstrapGlobal=parseBootstrapGlobalOptions(normalizedArgv),commandName=resolveRecoveryCommandName(message,invocationArgv,rootProgram,extensionDescriptors),attemptedCommand=renderAttemptedCommand(invocationArgv),providedOptionFlags=extractProvidedOptionFlags(invocationArgv),workspaceUsage=await resolveWorkspaceUsageContext(bootstrapGlobal,message,invocationArgv,commandName),allowedTypes=workspaceUsage.allowedTypes,unknownCommandGuidance=buildUnknownCommandGuidanceFromRuntime(message,rootProgram,extensionDescriptors,invocationArgv),unknownOption=resolveUnknownOptionSuggestions(message,commandName),splitSchemaSubcommand=resolveSplitSchemaSubcommand(message,invocationArgv),suggestedRetryCommand=splitSchemaSubcommand?.suggestedRetryCommand??resolveSuggestedRetryForUnknownOption(invocationArgv,unknownOption.match,unknownOption.suggestions)??resolveSuggestedRetryForMissingOption(message,invocationArgv);return{message,commandName,allowedTypes,attemptedCommand,normalizedInvocationArgs:[...invocationArgv],providedOptionFlags,unknownOptionSuggestions:unknownOption.suggestions,unknownOptionOtherCommands:unknownOption.otherCommands.length>0?unknownOption.otherCommands.slice(0,12):void 0,unknownOptionOtherCommandsTotal:unknownOption.otherCommands.length>0?unknownOption.otherCommands.length:void 0,unknownOptionOtherCommandsTruncated:unknownOption.otherCommands.length>12||void 0,unknownOptionScope:unknownOption.scope,suggestedRetryCommand,verifiedCollectionItemId:workspaceUsage.verifiedCollectionItemId,...splitSchemaSubcommand,...unknownCommandGuidance,...guidanceOverrides}}async function formatCommanderUsageMessage(error,rootProgram,extensionDescriptors,guidanceOverrides={},invocationArgs=process.argv.slice(2)){const usageContext=await resolveCommanderUsageContext(error,rootProgram,extensionDescriptors,guidanceOverrides,invocationArgs),{message,commandName,allowedTypes,...guidance}=usageContext,lean=parseBootstrapGlobalOptions(usageContext.normalizedInvocationArgs).lean,formatted=formatCommanderErrorForDisplay(message,commandName,allowedTypes,guidance,{lean}),serviceOverride=await runActiveServiceOverride("help_format",{message:formatted,command:commandName,allowed_types:allowedTypes});return serviceOverride.handled&&typeof serviceOverride.result=="string"?serviceOverride.result:formatted}async function formatCommanderUsageJson(error,rootProgram,extensionDescriptors,lean=!1,guidanceOverrides={},invocationArgs=process.argv.slice(2)){const usageContext=await resolveCommanderUsageContext(error,rootProgram,extensionDescriptors,guidanceOverrides,invocationArgs),envelope=formatCommanderErrorForJson(usageContext.message,usageContext.commandName,usageContext.allowedTypes,EXIT_CODE.USAGE,usageContext),projected=lean?projectLeanErrorEnvelope(envelope):envelope,accountingRequested=parseBootstrapGlobalOptions(usageContext.normalizedInvocationArgs).tokenAccounting===!0;return JSON.stringify(accountingRequested?attachOutputTokenAccounting(projected,value=>`${JSON.stringify(value,null,2)}
15
- `):projected,null,2)}const _testOnly={collectKnownLongFlags,collectInstalledPackageCommandPathHints,resolveOptionalPackageInstallHint,resolveSuggestedRetryForMissingOption,suggestNearestLongFlags};export{BUILTIN_TYPE_HELP_VALUES,_testOnly,appendCommanderExtensionFailures,buildUnknownCommandGuidanceFromRuntime,collectRuntimeCommandPaths,formatCommanderUsageJson,formatCommanderUsageMessage,isKnownHelpCommandPath,resolveChildCommandByToken,resolveCommanderUsageContext,resolveUnknownCommanderToken,scoreCommandPathMatch};
13
+ ${a}`}function cn(t){return ue(t).commandPathTokens[0]??P(t)??"<command>"}function z(t,o){const n=new Set,s=[...t.commands];for(;s.length>0;){const a=s.shift();if(!a)continue;const e=T(le(a)),r=e.split(" ").some(i=>i.startsWith("_"));e.length>0&&!r&&n.add(e),s.push(...a.commands)}for(const a of o.keys()){const e=T(a),r=e.split(" ").some(i=>i.startsWith("_"));e.length>0&&!r&&n.add(e)}return[...n].sort((a,e)=>a.localeCompare(e))}function M(t,o){const n=t.trim().toLowerCase(),s=o.trim().toLowerCase();if(s.length===0)return Number.POSITIVE_INFINITY;const a=n.split(" ");if(n===s)return 0;if(a.includes(s))return 1;if(a.some(i=>i.startsWith(s)))return 2;if(n.includes(s))return 3;const e=s.length>=5?2:1;let r=Number.POSITIVE_INFINITY;for(const i of a){const c=E(i,s,e);c!==null&&(r=Math.min(r,c))}return Number.isFinite(r)?4+r:Number.POSITIVE_INFINITY}function W(t){return f(t).slice(2).replace(/-/g,"")}function N(t){return k(t)}function j(t){const o=_(t)?.canonical??R[t]??t,n=o.split(" ")[0]?.trim().toLowerCase();if(!n)return null;const s=xe[n];return s?{packageAlias:s,canonicalPath:o,installCommand:`pm package install ${s} --project`}:null}function B(t){let o=pe(t);for(const n of["@unbrained/","builtin-","pm-"])o.startsWith(n)&&(o=o.slice(n.length));return o}function q(t,o){const n=B(t);if(n.length===0)return[];const s=[];for(const a of o.values()){const e=new Set,r=a.source;if(r)for(const c of[r.name,r.package]){const d=B(c??"");d.length>0&&e.add(d)}if(e.size===0)continue;[...e].some(c=>c===n||c.includes(n)||n.includes(c))&&s.push(a.command)}return[...new Set(s)].sort((a,e)=>a.localeCompare(e))}function y(t,o){const n=new Set,s=o??re(t);for(const a of s){a.flag.startsWith("--")&&n.add(f(a.flag));for(const e of a.aliases??[])e.startsWith("--")&&n.add(f(e))}return[...n].sort((a,e)=>a.localeCompare(e))}function D(t,o){if(!t.startsWith("--"))return[];const n=W(t);if(n.length===0)return[];const s=n.length>=8?2:1,a=[];for(const e of o){const r=W(e);if(r===n)continue;if(n.length>=3&&r.startsWith(n)){a.push({flag:e,rank:0,distance:r.length-n.length});continue}const i=E(n,r,s);i===null||i<=0||a.push({flag:e,rank:1,distance:i})}return a.sort((e,r)=>e.rank!==r.rank?e.rank-r.rank:e.distance!==r.distance?e.distance-r.distance:e.flag.localeCompare(r.flag)).map(e=>e.flag).slice(0,3)}let v;const ve=new Set(["ctx","packages","list-draft","list-open","list-in-progress","list-blocked","list-closed","list-canceled","start-task","pause-task","close-task","help"]);function Te(){if(v)return v;const t=new Map;for(const o of F)if(!ve.has(o))for(const n of y(o)){const s=t.get(n)??[];s.push(o),t.set(n,s)}return v=t,v}function Pe(t,o){if(!t.startsWith("--"))return[];const n=Te().get(f(t));if(!n)return[];const s=o?.trim().toLowerCase(),a=new Set(y(s));return[...new Set(n.filter(e=>e!==s).map(e=>({command:e,sharedFlagCount:y(e).filter(r=>a.has(r)).length})).sort((e,r)=>e.sharedFlagCount!==r.sharedFlagCount?r.sharedFlagCount-e.sharedFlagCount:e.command.localeCompare(r.command)).map(({command:e})=>_(e)?.canonical??e))]}function Oe(t,o,n){for(let s=0;s<t.length;s+=1){const a=t[s];if(!a.startsWith("--"))continue;const e=a.indexOf("="),r=e>=0?a.slice(0,e):a;if(f(r)!==f(o))continue;const i=[...t];return i[s]=e>=0?`${n}${a.slice(e)}`:n,i}}function be(t){const o=new Set(t.commandPaths),n=e=>Math.min(M(e,t.normalizedUnknown),t.primaryToken!==t.normalizedUnknown?M(e,t.primaryToken):Number.POSITIVE_INFINITY),s=new Map,a=(e,r)=>{if(!Number.isFinite(r)||!o.has(e))return;const i=s.get(e);(i===void 0||r<i)&&s.set(e,r)};for(const e of t.commandPaths)a(e,n(e));for(const[e,r]of Object.entries(R))e!=="read"&&a(r,n(e));return[...s.entries()].sort(([e,r],[i,c])=>r!==c?r-c:e.localeCompare(i)).map(([e])=>e)}function Ne(t){const o=_(t.normalizedUnknown),n=ge(t.commandPaths,t.primaryToken),s=be(t),a=q(t.primaryToken,t.extensionDescriptors).filter(e=>t.commandPaths.includes(e));return U([...o&&t.commandPaths.includes(o.canonical)?[o.canonical_argv.join(" ")]:[],...n,...s,...a],t.commandPaths,t.primaryToken).filter(e=>!t.normalizedUnknown.includes(" ")||e!==t.normalizedUnknown)}function Ee(t){return[...new Set(t.map(n=>n.split(" ")[0]).filter(n=>n.length>0))].sort((n,s)=>n.localeCompare(s))}function Fe(t,o){const n=t.map(s=>`pm ${s} --help`);return o?[...new Set([...n,"pm --help --all"])]:[...new Set(["pm --help --all",...n])]}function Re(t,o,n){let s=x([...o]);const a=[];for(;s!==void 0;){if(a.push(o[s]),o[s]===t)return a.join(" ");if(!n.includes(a.join(" ")))return t;const e=x(o.slice(s+1));s=e===void 0?void 0:s+1+e}return t}function H(t,o){if(!t)return;const n=I([...o]);return[...ye(n),...t.split(" "),"--help"]}function Ue(t,o,n,s=[]){const a=t.match(/unknown command '([^']+)'/i);if(!a||typeof a[1]!="string")return;const e=z(o,n),r=Re(a[1],s,e),i=T(r);if(i.length===0||e.length===0)return;const c=ke(i,e);if(c){const w=H("update",s),J=w.slice(0,-2);return{suggestedRetryCommand:k(w),suggestedRetryArgs:w,unknownCommandExamples:[k(w),...c.examples.map(Y=>k([...J,...Y]))],unknownCommandNextSteps:c.nextSteps}}const d=j(i);if(d&&!e.includes(d.canonicalPath.split(" ")[0]))return{unknownCommandExamples:[d.installCommand,`pm ${d.canonicalPath} --help`,"pm --help --all"],unknownCommandNextSteps:[`"${i}" is provided by the "${d.packageAlias}" package. Install it with: ${d.installCommand}. Command after installation: pm ${d.canonicalPath}.`],suggestedRetryCommand:d.installCommand};const l=i.split(" ")[0],m=Ne({commandPaths:e,normalizedUnknown:i,primaryToken:l,extensionDescriptors:n}),p=Ee(e),h=he(i,e),g=H(h,s),S=[...new Set([...h?[h]:[],...m.length>0?m:U(p,e)])].slice(0,3),u=Fe(S,m.length>0),C=m.length>0?`Did you mean: ${S.join(", ")}?`:null;return{...g?{suggestedRetryCommand:k(g),suggestedRetryArgs:g}:{},unknownCommandExamples:g?[k(g),...u.slice(1)]:u,unknownCommandNextSteps:[...C?[C]:[],'Run "pm --help --all" to list every command available in this runtime, including active extensions.',...C?["Use one of the suggested command paths above with --help to inspect valid flags and usage."]:[]]}}function Ae(t){return Array.from(new Set(t))}function Le(t){let o="";for(const n of t){if(n===" "||n===" "||n===`
14
+ `||n==="\r"||n==="\f"||n==="\v")break;o+=n}return o}function $e(t){let o=t.length;for(;o>0;){const n=t[o-1];if(n!==","&&n!==":"&&n!==";")break;o-=1}return t.slice(0,o)}function ze(t,o){const n=o.trim().toLowerCase();return t.commands.find(s=>s.name().trim().toLowerCase()===n?!0:(typeof s.aliases=="function"?s.aliases():[]).some(e=>e.trim().toLowerCase()===n))}function dn(t,o){if(o.length===0)return!0;let n=t;for(const[s,a]of o.entries()){const e=ze(n,a);if(!e){const r=n.registeredArguments;return r.length>0&&(n.commands.length===0||r[0]?.required===!0)&&(r.at(-1)?.variadic===!0||o.length-s<=r.length)}n=e}return!0}async function Me(t,o,n,s){try{const a=ee(process.cwd(),t.path);if(!await K(Z(a)))return{allowedTypes:b};const e=await ne(a),r=t.noExtensions?void 0:te(),i=X(e,r);let c;if(/too many arguments/i.test(o)&&["comments","docs","files","learnings","notes","test"].includes(s??"")){const d=n.findIndex(m=>m===s),l=n[d+2];if(n[d+1]?.toLowerCase()==="add"&&l!==void 0&&!l.startsWith("-"))try{c=(await oe(a,l,e.id_prefix,e.item_format,i.type_to_folder))?.id}catch{}}return{allowedTypes:i.types.length>0?i.types.join("|"):b,pmRoot:a,settings:e,typeToFolder:i.type_to_folder,verifiedCollectionItemId:c}}catch{return{allowedTypes:b}}}function We(t,o){const n=t.match(/unknown option '([^']+)'/i),s=n&&o?Ae([..._e(o,n[1]),...D(n[1],y(o))]).filter(r=>Ce(n[1],r)):void 0,a=n?Pe(n[1],o):[],e=n!==null&&y(o).includes(f(n[1]));return{match:n,suggestions:s,otherCommands:a,scope:e?"declared_on_path":a.length>0?"declared_elsewhere":"declared_nowhere"}}function je(t,o,n){if(!o||!n||n.length===0)return;const s=Oe(t,o[1],n[0]);return s?N(s):void 0}function G(t,o){const n=t.match(/required option '([^']+)' not specified/i),s=n?.[1]?$e(Le(n[1].trim())):void 0;if(!s?.startsWith("--"))return;const a=P(o);if(a)return we(o,a,[s])}function Be(t,o){if(!/too many arguments/i.test(t))return;const n=x(o),s=L(o.slice(n));if(s?.alias!=="schema")return;const a=n+s.canonical_argv.length-1,e=o[a+1]?.trim().toLowerCase(),r=o[a+2]?.trim().toLowerCase();if(!e||!r)return;const i=`${e}-${r}`;if(!$.includes(i))return;const c=[...o.slice(0,a+1),i,...o.slice(a+3)];return{unknownSubcommandPath:"schema",unknownSubcommandToken:`${e} ${r}`,unknownSubcommandAllowedValues:[...$],suggestedRetryCommand:N(c)}}function qe(t,o,n,s){const a=x(o),e=L(o.slice(a))?.alias??P(o);if(!/unknown option /i.test(t)||e===void 0)return e;const r=_(e)?.canonical??e;return F.some(i=>i===e)||z(n,s).includes(r)?e:void 0}async function V(t,o,n,s={},a=process.argv.slice(2)){const r=(typeof t=="object"&&t!==null?t.message:void 0)??"Invalid command usage",i=me([...a]).argv,c=Se(i),d=I(i),l=qe(r,c,o,n),m=N(c),p=fe(c),h=await Me(d,r,c,l),g=h.allowedTypes,S=Ue(r,o,n,c),u=We(r,l),C=Be(r,c),w=C?.suggestedRetryCommand??je(c,u.match,u.suggestions)??G(r,c);return{message:r,commandName:l,allowedTypes:g,attemptedCommand:m,normalizedInvocationArgs:[...c],providedOptionFlags:p,unknownOptionSuggestions:u.suggestions,unknownOptionOtherCommands:u.otherCommands.length>0?u.otherCommands.slice(0,12):void 0,unknownOptionOtherCommandsTotal:u.otherCommands.length>0?u.otherCommands.length:void 0,unknownOptionOtherCommandsTruncated:u.otherCommands.length>12||void 0,unknownOptionScope:u.scope,suggestedRetryCommand:w,verifiedCollectionItemId:h.verifiedCollectionItemId,...C,...S,...s}}async function ln(t,o,n,s={},a=process.argv.slice(2)){const e=await V(t,o,n,s,a),{message:r,commandName:i,allowedTypes:c,...d}=e,l=I(e.normalizedInvocationArgs).lean,m=ie(r,i,c,d,{lean:l}),p=await se("help_format",{message:m,command:i,allowed_types:c});return p.handled&&typeof p.result=="string"?p.result:m}async function mn(t,o,n,s=!1,a={},e=process.argv.slice(2)){const r=await V(t,o,n,a,e),i=ce(r.message,r.commandName,r.allowedTypes,Q.USAGE,r),c=s?de(i):i,d=I(r.normalizedInvocationArgs).tokenAccounting===!0;return JSON.stringify(d?A(c,l=>`${JSON.stringify(l,null,2)}
15
+ `):c,null,2)}const un={collectKnownLongFlags:y,collectInstalledPackageCommandPathHints:q,resolveOptionalPackageInstallHint:j,resolveSuggestedRetryForMissingOption:G,suggestNearestLongFlags:D};export{b as BUILTIN_TYPE_HELP_VALUES,un as _testOnly,rn as appendCommanderExtensionFailures,Ue as buildUnknownCommandGuidanceFromRuntime,z as collectRuntimeCommandPaths,mn as formatCommanderUsageJson,ln as formatCommanderUsageMessage,dn as isKnownHelpCommandPath,ze as resolveChildCommandByToken,V as resolveCommanderUsageContext,cn as resolveUnknownCommanderToken,M as scoreCommandPathMatch};
16
16
  //# sourceMappingURL=commander-usage.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e2514244-d31d-5ee4-b037-b9101f9a24e1")}catch{}})();export*from"../../../sdk/comments.js";
1
+ export*from"../../../sdk/comments.js";
2
2
  //# sourceMappingURL=comments.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6e6bec6b-9415-5f41-87e8-2d1248fba748")}catch{}})();export*from"../../../sdk/docs.js";
1
+ export*from"../../../sdk/docs.js";
2
2
  //# sourceMappingURL=docs.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fd91be06-efd5-5b43-895a-e47a1c144333")}catch{}})();export*from"../../../sdk/files.js";
1
+ export*from"../../../sdk/files.js";
2
2
  //# sourceMappingURL=files.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="10a4ed4d-39d3-5b7b-87b1-4a6f95f0f2ab")}catch{}})();export*from"../../../sdk/learnings.js";
1
+ export*from"../../../sdk/learnings.js";
2
2
  //# sourceMappingURL=learnings.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="796e71dc-4693-50da-bbb8-57b19ff0af95")}catch{}})();export*from"../../../sdk/notes.js";
1
+ export*from"../../../sdk/notes.js";
2
2
  //# sourceMappingURL=notes.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d975120a-964e-5b19-ae10-8ba011ba9bf8")}catch{}})();export*from"../../../sdk/extension/describe.js";
1
+ export*from"../../../sdk/extension/describe.js";
2
2
  //# sourceMappingURL=describe.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="26ea7f42-d5f7-5ada-afd9-389dadc4d138")}catch{}})();export*from"../../../sdk/extension.js";
1
+ export*from"../../../sdk/extension.js";
2
2
  //# sourceMappingURL=extension.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0b0e08e0-f6e7-59c4-ac96-9f47b172727a")}catch{}})();export*from"../../../sdk/extension/scaffold.js";
1
+ export*from"../../../sdk/extension/scaffold.js";
2
2
  //# sourceMappingURL=scaffold.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4647d40c-70a2-5ffe-a91f-d43e9c522114")}catch{}})();export*from"../../../sdk/extension/shared.js";
1
+ export*from"../../../sdk/extension/shared.js";
2
2
  //# sourceMappingURL=shared.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="02e10fe1-c111-5c09-8dbe-a67f2b97f0d0")}catch{}})();export*from"../../../sdk/governance/gc.js";
1
+ export*from"../../../sdk/governance/gc.js";
2
2
  //# sourceMappingURL=gc.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3d4a8db3-8a53-50b4-a96c-1affff2207a3")}catch{}})();export*from"../../../sdk/governance/health.js";
1
+ export*from"../../../sdk/governance/health.js";
2
2
  //# sourceMappingURL=health.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="de197522-9007-5e21-8f9c-06cbf63707d1")}catch{}})();export*from"../../../sdk/telemetry.js";
1
+ export*from"../../../sdk/telemetry.js";
2
2
  //# sourceMappingURL=telemetry.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2d59e10e-c85b-542a-8859-b20a08e809fa")}catch{}})();import{runValidate as runSdkValidate}from"../../../sdk/governance/validate.js";import{runUpdate}from"../lifecycle/update.js";export*from"../../../sdk/governance/validate.js";const runValidate=(options,global2)=>runSdkValidate(options,global2,{runUpdate:(id,updateOptions,updateGlobal)=>runUpdate(id,updateOptions,updateGlobal)});export{runValidate};
1
+ import{runValidate as d}from"../../../sdk/governance/validate.js";import{runUpdate as n}from"../lifecycle/update.js";export*from"../../../sdk/governance/validate.js";const m=(r,t)=>d(r,t,{runUpdate:(a,o,e)=>n(a,o,e)});export{m as runValidate};
2
2
  //# sourceMappingURL=validate.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="19d28e23-5337-5ec0-83e6-6e43b462ece7")}catch{}})();export*from"../../../sdk/query/activity.js";
1
+ export*from"../../../sdk/query/activity.js";
2
2
  //# sourceMappingURL=activity.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="631e56aa-4d7e-58b6-bbea-a0d320716b82")}catch{}})();import{assertHistoryCompactTarget,runHistoryCompact,runHistoryCompactBulk}from"../../../sdk/history-compact.js";export{assertHistoryCompactTarget,runHistoryCompact,runHistoryCompactBulk};
1
+ import{assertHistoryCompactTarget as o,runHistoryCompact as a,runHistoryCompactBulk as s}from"../../../sdk/history-compact.js";export{o as assertHistoryCompactTarget,a as runHistoryCompact,s as runHistoryCompactBulk};
2
2
  //# sourceMappingURL=history-compact.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0bcdd63c-5fd3-585d-a6c5-9393029ef864")}catch{}})();import{_testOnly,runHistoryRedact}from"../../../sdk/history-redact.js";export{_testOnly,runHistoryRedact};
1
+ import{_testOnly as e,runHistoryRedact as o}from"../../../sdk/history-redact.js";export{e as _testOnly,o as runHistoryRedact};
2
2
  //# sourceMappingURL=history-redact.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4dce4f19-071c-54a8-be0d-5975d9e3b34b")}catch{}})();import{assertHistoryRepairTarget,runHistoryRepair,runHistoryRepairAll}from"../../../sdk/history-repair.js";export{assertHistoryRepairTarget,runHistoryRepair,runHistoryRepairAll};
1
+ import{assertHistoryRepairTarget as i,runHistoryRepair as t,runHistoryRepairAll as a}from"../../../sdk/history-repair.js";export{i as assertHistoryRepairTarget,t as runHistoryRepair,a as runHistoryRepairAll};
2
2
  //# sourceMappingURL=history-repair.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="de0fbee0-0bcf-5a46-9013-f7f883d3d0a3")}catch{}})();export*from"../../../sdk/query/history.js";
1
+ export*from"../../../sdk/query/history.js";
2
2
  //# sourceMappingURL=history.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f330a0c5-a967-5383-9c27-efa4a39e0f0d")}catch{}})();import{_testOnlyRestoreCommand,runRestore}from"../../../sdk/lifecycle/restore.js";export{_testOnlyRestoreCommand,runRestore};
1
+ import{_testOnlyRestoreCommand as r,runRestore as t}from"../../../sdk/lifecycle/restore.js";export{r as _testOnlyRestoreCommand,t as runRestore};
2
2
  //# sourceMappingURL=restore.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1249a9e6-fd70-5a0b-a457-3ef260c78c39")}catch{}})();export*from"../../../sdk/lifecycle/append.js";import{runAppend as runSdkAppend}from"../../../sdk/lifecycle/append.js";import{withCliMutationInput}from"../../../sdk/runtime-primitives.js";function runAppend(id,options,global2){return runSdkAppend(id,withCliMutationInput(options),global2)}export{runAppend};
1
+ export*from"../../../sdk/lifecycle/append.js";import{runAppend as t}from"../../../sdk/lifecycle/append.js";import{withCliMutationInput as o}from"../../../sdk/runtime-primitives.js";function i(r,n,p){return t(r,o(n),p)}export{i as runAppend};
2
2
  //# sourceMappingURL=append.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dcd8c925-34ee-5faa-9132-1be43961c749")}catch{}})();export*from"../../../sdk/lifecycle/claim.js";
1
+ export*from"../../../sdk/lifecycle/claim.js";
2
2
  //# sourceMappingURL=claim.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fd8685dd-856f-51b2-9bfa-f1df88acb070")}catch{}})();export*from"../../../sdk/lifecycle/close-many.js";
1
+ export*from"../../../sdk/lifecycle/close-many.js";
2
2
  //# sourceMappingURL=close-many.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e599b2e9-fc63-5982-b7cf-ae208c127f62")}catch{}})();import{_testOnlyCloseCommand,runClose}from"../../../sdk/lifecycle/close.js";export{_testOnlyCloseCommand,runClose};
1
+ import{_testOnlyCloseCommand as l,runClose as m}from"../../../sdk/lifecycle/close.js";export{l as _testOnlyCloseCommand,m as runClose};
2
2
  //# sourceMappingURL=close.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e972ba26-a7b8-5e91-9e63-21416be686eb")}catch{}})();import{runCopy}from"../../../sdk/lifecycle/copy.js";export{runCopy};
1
+ import{runCopy as p}from"../../../sdk/lifecycle/copy.js";export{p as runCopy};
2
2
  //# sourceMappingURL=copy.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="34816863-a748-527d-8885-777812365ec7")}catch{}})();export*from"../../../sdk/lifecycle/create.js";import{runCreate as runSdkCreate}from"../../../sdk/lifecycle/create.js";import{withCliMutationInput}from"../../../sdk/runtime-primitives.js";function runCreate(options,global2){return runSdkCreate(withCliMutationInput(options),global2)}export{runCreate};
1
+ export*from"../../../sdk/lifecycle/create.js";import{runCreate as e}from"../../../sdk/lifecycle/create.js";import{withCliMutationInput as o}from"../../../sdk/runtime-primitives.js";function i(r,t){return e(o(r),t)}export{i as runCreate};
2
2
  //# sourceMappingURL=create.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f27f4c13-4b15-5536-bc5a-b1f263fab5db")}catch{}})();import{runDelete}from"../../../sdk/lifecycle/delete.js";export{runDelete};
1
+ import{runDelete as o}from"../../../sdk/lifecycle/delete.js";export{o as runDelete};
2
2
  //# sourceMappingURL=delete.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5760feb1-435b-5b0e-b4ed-c22f6a955bed")}catch{}})();import{runFocus}from"../../../sdk/lifecycle/focus.js";export{runFocus};
1
+ import{runFocus as u}from"../../../sdk/lifecycle/focus.js";export{u as runFocus};
2
2
  //# sourceMappingURL=focus.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1308ca6f-9404-5fda-9726-f72364c45d02")}catch{}})();export*from"../../../sdk/lifecycle/plan.js";import{runPlan as runSdkPlan}from"../../../sdk/lifecycle/plan.js";import{withCliMutationInput}from"../../../sdk/runtime-primitives.js";function runPlan(input){const options=withCliMutationInput(input.options);return runSdkPlan({...input,options})}export{runPlan};
1
+ export*from"../../../sdk/lifecycle/plan.js";import{runPlan as r}from"../../../sdk/lifecycle/plan.js";import{withCliMutationInput as t}from"../../../sdk/runtime-primitives.js";function u(o){const n=t(o.options);return r({...o,options:n})}export{u as runPlan};
2
2
  //# sourceMappingURL=plan.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="711dc797-d43c-5ab5-962b-51d88b08614c")}catch{}})();export*from"../../../sdk/lifecycle/update-many.js";import{runUpdateMany as runSdkUpdateMany}from"../../../sdk/lifecycle/update-many.js";import{withCliMutationInput}from"../../../sdk/runtime-primitives.js";function runUpdateMany(options,global2){const update=withCliMutationInput(options.update);return runSdkUpdateMany({...options,update},global2)}export{runUpdateMany};
1
+ export*from"../../../sdk/lifecycle/update-many.js";import{runUpdateMany as a}from"../../../sdk/lifecycle/update-many.js";import{withCliMutationInput as p}from"../../../sdk/runtime-primitives.js";function o(t,r){const n=p(t.update);return a({...t,update:n},r)}export{o as runUpdateMany};
2
2
  //# sourceMappingURL=update-many.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="41b0b451-a696-5d06-a19d-df1d6b28963c")}catch{}})();export*from"../../../sdk/lifecycle/update.js";import{runUpdate as runSdkUpdate}from"../../../sdk/lifecycle/update.js";import{withCliMutationInput}from"../../../sdk/runtime-primitives.js";function runUpdate(id,options,global2){return runSdkUpdate(id,withCliMutationInput(options),global2)}export{runUpdate};
1
+ export*from"../../../sdk/lifecycle/update.js";import{runUpdate as n}from"../../../sdk/lifecycle/update.js";import{withCliMutationInput as p}from"../../../sdk/runtime-primitives.js";function i(t,r,o){return n(t,p(r),o)}export{i as runUpdate};
2
2
  //# sourceMappingURL=update.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1a62fe05-4407-5e76-87fa-5109dcca5640")}catch{}})();export*from"../../../sdk/query/aggregate.js";
1
+ export*from"../../../sdk/query/aggregate.js";
2
2
  //# sourceMappingURL=aggregate.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="25c5349b-60d7-505b-98b0-3ed19e44b791")}catch{}})();export*from"../../../sdk/query/context.js";
1
+ export*from"../../../sdk/query/context.js";
2
2
  //# sourceMappingURL=context.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="529dd34d-5a81-504f-9641-28093d41d247")}catch{}})();export*from"../../../sdk/dependencies.js";
1
+ export*from"../../../sdk/dependencies.js";
2
2
  //# sourceMappingURL=deps.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="524ade8e-33d6-5353-b01d-c7baddc956e8")}catch{}})();export*from"../../../sdk/duplicates.js";
1
+ export*from"../../../sdk/duplicates.js";
2
2
  //# sourceMappingURL=duplicates.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b40cde4c-ca5a-522d-a731-52503c7e4fe0")}catch{}})();export*from"../../../sdk/eval.js";
1
+ export*from"../../../sdk/eval.js";
2
2
  //# sourceMappingURL=eval.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9212f45c-798d-5774-87ce-bb7d6ff5514a")}catch{}})();import{_testOnlyGetCommand,runGet}from"../../../sdk/query/get.js";export{_testOnlyGetCommand,runGet};
1
+ import{_testOnlyGetCommand as m,runGet as n}from"../../../sdk/query/get.js";export{m as _testOnlyGetCommand,n as runGet};
2
2
  //# sourceMappingURL=get.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="deee1339-ac17-5ae9-8add-a9dd766d182e")}catch{}})();export*from"../../../sdk/graph/run.js";
1
+ export*from"../../../sdk/graph/run.js";
2
2
  //# sourceMappingURL=graph.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b662e21b-a163-5834-8789-65243f4c7c9c")}catch{}})();export*from"../../../sdk/query/list.js";
1
+ export*from"../../../sdk/query/list.js";
2
2
  //# sourceMappingURL=list.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5cc1722c-b797-5b95-a493-3925003ba72e")}catch{}})();export*from"../../../sdk/query/next.js";
1
+ export*from"../../../sdk/query/next.js";
2
2
  //# sourceMappingURL=next.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="35c679a2-9d47-51fa-8bd2-175a4ec48d6b")}catch{}})();export*from"../../../sdk/query/search.js";
1
+ export*from"../../../sdk/query/search.js";
2
2
  //# sourceMappingURL=search.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d008ca8f-41bf-54fb-9b56-bc1d4af9f226")}catch{}})();export*from"../../../sdk/stats.js";
1
+ export*from"../../../sdk/stats.js";
2
2
  //# sourceMappingURL=stats.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9ee008b9-3751-5794-8d01-1f6d3123d6cd")}catch{}})();export*from"../../../sdk/test/batch.js";
1
+ export*from"../../../sdk/test/batch.js";
2
2
  //# sourceMappingURL=test-all.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b6fa277d-ccf2-5413-95d5-0790283203d5")}catch{}})();export*from"../../../sdk/test/runs.js";
1
+ export*from"../../../sdk/test/runs.js";
2
2
  //# sourceMappingURL=test-runs.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a5e0162a-bbf1-50fe-8912-a820de155e90")}catch{}})();export*from"../../../sdk/test/execution.js";
1
+ export*from"../../../sdk/test/execution.js";
2
2
  //# sourceMappingURL=test.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="108609fa-51fc-5bd0-ac54-de2ad14a66c6")}catch{}})();export*from"../../../sdk/config.js";
1
+ export*from"../../../sdk/config.js";
2
2
  //# sourceMappingURL=config.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="29db968f-30ad-5f3c-bf95-e33be18614c6")}catch{}})();export*from"../../../sdk/cli-contracts/runtime-contracts.js";
1
+ export*from"../../../sdk/cli-contracts/runtime-contracts.js";
2
2
  //# sourceMappingURL=contracts.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b36466e6-5574-5509-909a-e8599f11664c")}catch{}})();export*from"../../../sdk/init.js";
1
+ export*from"../../../sdk/init.js";
2
2
  //# sourceMappingURL=init.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="48b9050b-3290-55d6-82cc-b9d14cc33186")}catch{}})();import{MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,runMergeInstall,runMergeReceiptEvidenceReport,runMergeReconcile}from"../../../sdk/merge/index.js";export{MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,runMergeInstall,runMergeReceiptEvidenceReport,runMergeReconcile};
1
+ import{MERGE_DRIVER_ARTIFACT_VALUES as n,runMergeDriver as R,runMergeInstall as E,runMergeReceiptEvidenceReport as M,runMergeReconcile as c}from"../../../sdk/merge/index.js";export{n as MERGE_DRIVER_ARTIFACT_VALUES,R as runMergeDriver,E as runMergeInstall,M as runMergeReceiptEvidenceReport,c as runMergeReconcile};
2
2
  //# sourceMappingURL=merge.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2d367793-8aa5-5a00-8c8c-60512a27f62a")}catch{}})();export*from"../../../sdk/profile.js";
1
+ export*from"../../../sdk/profile.js";
2
2
  //# sourceMappingURL=profile.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a4b4d693-ba4c-529a-a5d4-8f6c874830ad")}catch{}})();import{SCHEMA_SUBCOMMANDS,_testOnlySchemaCommand,formatSchemaAddFieldHuman,formatSchemaAddStatusHuman,formatSchemaAddTypeHuman,formatSchemaApplyPresetHuman,formatSchemaEvolutionMigrationHuman,formatSchemaInferTypesHuman,formatSchemaListFieldsHuman,formatSchemaListHuman,formatSchemaRemoveFieldHuman,formatSchemaRemoveStatusHuman,formatSchemaRemoveTypeHuman,formatSchemaShowFieldHuman,formatSchemaShowHuman,formatSchemaShowStatusHuman,runSchemaAddField,runSchemaAddStatus,runSchemaAddType,runSchemaApplyPreset,runSchemaEvolutionMigration,runSchemaInferTypes,runSchemaList,runSchemaListFields,runSchemaRemoveField,runSchemaRemoveStatus,runSchemaRemoveType,runSchemaShow,runSchemaShowField,runSchemaShowStatus,runWorkflowPolicyAction}from"../../../sdk/schema.js";export{SCHEMA_SUBCOMMANDS,_testOnlySchemaCommand,formatSchemaAddFieldHuman,formatSchemaAddStatusHuman,formatSchemaAddTypeHuman,formatSchemaApplyPresetHuman,formatSchemaEvolutionMigrationHuman,formatSchemaInferTypesHuman,formatSchemaListFieldsHuman,formatSchemaListHuman,formatSchemaRemoveFieldHuman,formatSchemaRemoveStatusHuman,formatSchemaRemoveTypeHuman,formatSchemaShowFieldHuman,formatSchemaShowHuman,formatSchemaShowStatusHuman,runSchemaAddField,runSchemaAddStatus,runSchemaAddType,runSchemaApplyPreset,runSchemaEvolutionMigration,runSchemaInferTypes,runSchemaList,runSchemaListFields,runSchemaRemoveField,runSchemaRemoveStatus,runSchemaRemoveType,runSchemaShow,runSchemaShowField,runSchemaShowStatus,runWorkflowPolicyAction};
1
+ import{SCHEMA_SUBCOMMANDS as e,_testOnlySchemaCommand as S,formatSchemaAddFieldHuman as t,formatSchemaAddStatusHuman as o,formatSchemaAddTypeHuman as n,formatSchemaApplyPresetHuman as r,formatSchemaEvolutionMigrationHuman as u,formatSchemaInferTypesHuman as h,formatSchemaListFieldsHuman as c,formatSchemaListHuman as d,formatSchemaRemoveFieldHuman as i,formatSchemaRemoveStatusHuman as f,formatSchemaRemoveTypeHuman as s,formatSchemaShowFieldHuman as l,formatSchemaShowHuman as H,formatSchemaShowStatusHuman as p,runSchemaAddField as A,runSchemaAddStatus as y,runSchemaAddType as v,runSchemaApplyPreset as F,runSchemaEvolutionMigration as w,runSchemaInferTypes as R,runSchemaList as T,runSchemaListFields as M,runSchemaRemoveField as L,runSchemaRemoveStatus as C,runSchemaRemoveType as E,runSchemaShow as P,runSchemaShowField as g,runSchemaShowStatus as I,runWorkflowPolicyAction as O}from"../../../sdk/schema.js";export{e as SCHEMA_SUBCOMMANDS,S as _testOnlySchemaCommand,t as formatSchemaAddFieldHuman,o as formatSchemaAddStatusHuman,n as formatSchemaAddTypeHuman,r as formatSchemaApplyPresetHuman,u as formatSchemaEvolutionMigrationHuman,h as formatSchemaInferTypesHuman,c as formatSchemaListFieldsHuman,d as formatSchemaListHuman,i as formatSchemaRemoveFieldHuman,f as formatSchemaRemoveStatusHuman,s as formatSchemaRemoveTypeHuman,l as formatSchemaShowFieldHuman,H as formatSchemaShowHuman,p as formatSchemaShowStatusHuman,A as runSchemaAddField,y as runSchemaAddStatus,v as runSchemaAddType,F as runSchemaApplyPreset,w as runSchemaEvolutionMigration,R as runSchemaInferTypes,T as runSchemaList,M as runSchemaListFields,L as runSchemaRemoveField,C as runSchemaRemoveStatus,E as runSchemaRemoveType,P as runSchemaShow,g as runSchemaShowField,I as runSchemaShowStatus,O as runWorkflowPolicyAction};
2
2
  //# sourceMappingURL=schema.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e5e1e242-6864-5a72-adb9-0eda4c65a0c3")}catch{}})();export*from"../../../sdk/governance/upgrade.js";
1
+ export*from"../../../sdk/governance/upgrade.js";
2
2
  //# sourceMappingURL=upgrade.js.map
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e57ce782-5c73-5c74-a929-0971a990a355")}catch{}})();import{parseBootstrapCommandName}from"../sdk/cli-bootstrap.js";async function loadContextIntentSnapshotForInvocation(invocationArgv,pmRoot,noExtensions,loadSnapshot){if(noExtensions)return null;const requestsIntent=invocationArgv.some(token=>token==="--for"||token.startsWith("--for=")),requestsFullContracts=parseBootstrapCommandName(invocationArgv)==="contracts"&&invocationArgv.includes("--full");return requestsIntent||requestsFullContracts?await loadSnapshot(pmRoot):null}export{loadContextIntentSnapshotForInvocation};
1
+ import{parseBootstrapCommandName as l}from"../sdk/cli-bootstrap.js";async function c(t,s,o,r){if(o)return null;const e=t.some(n=>n==="--for"||n.startsWith("--for=")),a=l(t)==="contracts"&&t.includes("--full");return e||a?await r(s):null}export{c as loadContextIntentSnapshotForInvocation};
2
2
  //# sourceMappingURL=context-intent-invocation.js.map