@unbrained/pm-cli 2026.9.20 → 2026.9.22

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 (255) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +32 -1
  3. package/dist/cli/commander-usage.d.ts +5 -1
  4. package/dist/cli/commander-usage.js +2 -2
  5. package/dist/cli/commands/annotations/comments.d.ts +2 -0
  6. package/dist/cli/commands/{comments.js → annotations/comments.js} +1 -1
  7. package/dist/cli/commands/{docs.d.ts → annotations/docs.d.ts} +2 -2
  8. package/dist/cli/commands/{docs.js → annotations/docs.js} +1 -1
  9. package/dist/cli/commands/{files.d.ts → annotations/files.d.ts} +2 -2
  10. package/dist/cli/commands/{files.js → annotations/files.js} +1 -1
  11. package/dist/cli/commands/annotations/learnings.d.ts +2 -0
  12. package/dist/cli/commands/{learnings.js → annotations/learnings.js} +1 -1
  13. package/dist/cli/commands/annotations/notes.d.ts +2 -0
  14. package/dist/cli/commands/{notes.js → annotations/notes.js} +1 -1
  15. package/dist/cli/commands/extension/extension.d.ts +6 -0
  16. package/dist/cli/commands/{extension.js → extension/extension.js} +1 -1
  17. package/dist/cli/commands/{gc.d.ts → governance/gc.d.ts} +2 -2
  18. package/dist/cli/commands/{gc.js → governance/gc.js} +1 -1
  19. package/dist/cli/commands/governance/health.d.ts +6 -0
  20. package/dist/cli/commands/{deps.js → governance/health.js} +2 -2
  21. package/dist/cli/commands/governance/telemetry.d.ts +6 -0
  22. package/dist/cli/commands/{telemetry.js → governance/telemetry.js} +1 -1
  23. package/dist/cli/commands/governance/validate.d.ts +9 -0
  24. package/dist/cli/commands/governance/validate.js +2 -0
  25. package/dist/cli/commands/history/activity.d.ts +6 -0
  26. package/dist/cli/commands/{activity.js → history/activity.js} +1 -1
  27. package/dist/cli/commands/history/history-compact.d.ts +7 -0
  28. package/dist/cli/commands/{history-compact.js → history/history-compact.js} +1 -1
  29. package/dist/cli/commands/{history-redact.d.ts → history/history-redact.d.ts} +2 -2
  30. package/dist/cli/commands/history/history-redact.js +2 -0
  31. package/dist/cli/commands/{history-repair.d.ts → history/history-repair.d.ts} +2 -2
  32. package/dist/cli/commands/{history-repair.js → history/history-repair.js} +1 -1
  33. package/dist/cli/commands/history/history.d.ts +2 -0
  34. package/dist/cli/commands/{history.js → history/history.js} +1 -1
  35. package/dist/cli/commands/history/restore.d.ts +6 -0
  36. package/dist/cli/commands/history/restore.js +2 -0
  37. package/dist/cli/commands/lifecycle/append.d.ts +2 -0
  38. package/dist/cli/commands/{append.js → lifecycle/append.js} +1 -1
  39. package/dist/cli/commands/lifecycle/claim.d.ts +2 -0
  40. package/dist/cli/commands/{claim.js → lifecycle/claim.js} +1 -1
  41. package/dist/cli/commands/lifecycle/close-many.d.ts +2 -0
  42. package/dist/cli/commands/{close-many.js → lifecycle/close-many.js} +1 -1
  43. package/dist/cli/commands/lifecycle/close.d.ts +6 -0
  44. package/dist/cli/commands/lifecycle/close.js +2 -0
  45. package/dist/cli/commands/lifecycle/copy.d.ts +6 -0
  46. package/dist/cli/commands/lifecycle/copy.js +2 -0
  47. package/dist/cli/commands/lifecycle/create.d.ts +6 -0
  48. package/dist/cli/commands/{create.js → lifecycle/create.js} +1 -1
  49. package/dist/cli/commands/lifecycle/delete.d.ts +6 -0
  50. package/dist/cli/commands/{delete.js → lifecycle/delete.js} +1 -1
  51. package/dist/cli/commands/lifecycle/focus.d.ts +6 -0
  52. package/dist/cli/commands/lifecycle/focus.js +2 -0
  53. package/dist/cli/commands/lifecycle/plan.d.ts +6 -0
  54. package/dist/cli/commands/{plan.js → lifecycle/plan.js} +1 -1
  55. package/dist/cli/commands/lifecycle/update-many.d.ts +2 -0
  56. package/dist/cli/commands/lifecycle/update-many.js +2 -0
  57. package/dist/cli/commands/lifecycle/update.d.ts +6 -0
  58. package/dist/cli/commands/{copy.js → lifecycle/update.js} +2 -2
  59. package/dist/cli/commands/query/aggregate.d.ts +2 -0
  60. package/dist/cli/commands/{aggregate.js → query/aggregate.js} +1 -1
  61. package/dist/cli/commands/query/context.d.ts +6 -0
  62. package/dist/cli/commands/{focus.js → query/context.js} +2 -2
  63. package/dist/cli/commands/{deps.d.ts → query/deps.d.ts} +2 -2
  64. package/dist/cli/commands/query/deps.js +2 -0
  65. package/dist/cli/commands/query/duplicates.d.ts +6 -0
  66. package/dist/cli/commands/{duplicates.js → query/duplicates.js} +1 -1
  67. package/dist/cli/commands/{eval.d.ts → query/eval.d.ts} +2 -2
  68. package/dist/cli/commands/{eval.js → query/eval.js} +1 -1
  69. package/dist/cli/commands/query/get.d.ts +6 -0
  70. package/dist/cli/commands/{get.js → query/get.js} +1 -1
  71. package/dist/cli/commands/{graph.d.ts → query/graph.d.ts} +2 -2
  72. package/dist/cli/commands/{graph.js → query/graph.js} +1 -1
  73. package/dist/cli/commands/{list.d.ts → query/list.d.ts} +2 -2
  74. package/dist/cli/commands/{list.js → query/list.js} +1 -1
  75. package/dist/cli/commands/{next.d.ts → query/next.d.ts} +2 -2
  76. package/dist/cli/commands/{next.js → query/next.js} +1 -1
  77. package/dist/cli/commands/query/search.d.ts +6 -0
  78. package/dist/cli/commands/{search.js → query/search.js} +1 -1
  79. package/dist/cli/commands/query/stats.d.ts +6 -0
  80. package/dist/cli/commands/{stats.js → query/stats.js} +1 -1
  81. package/dist/cli/commands/{test-all.d.ts → test/test-all.d.ts} +2 -2
  82. package/dist/cli/commands/{test-all.js → test/test-all.js} +1 -1
  83. package/dist/cli/commands/{test-runs.d.ts → test/test-runs.d.ts} +2 -2
  84. package/dist/cli/commands/{test-runs.js → test/test-runs.js} +1 -1
  85. package/dist/cli/commands/{test.d.ts → test/test.d.ts} +2 -2
  86. package/dist/cli/commands/{test.js → test/test.js} +1 -1
  87. package/dist/cli/commands/{config.d.ts → workspace/config.d.ts} +2 -2
  88. package/dist/cli/commands/{config.js → workspace/config.js} +1 -1
  89. package/dist/cli/commands/workspace/contracts.d.ts +2 -0
  90. package/dist/cli/commands/{contracts.js → workspace/contracts.js} +1 -1
  91. package/dist/cli/commands/{init.d.ts → workspace/init.d.ts} +2 -2
  92. package/dist/cli/commands/{update.js → workspace/init.js} +2 -2
  93. package/dist/cli/commands/workspace/merge.d.ts +8 -0
  94. package/dist/cli/commands/workspace/merge.js +2 -0
  95. package/dist/cli/commands/{profile.d.ts → workspace/profile.d.ts} +2 -2
  96. package/dist/cli/commands/{profile.js → workspace/profile.js} +1 -1
  97. package/dist/cli/commands/workspace/schema.d.ts +7 -0
  98. package/dist/cli/commands/workspace/schema.js +2 -0
  99. package/dist/cli/commands/workspace/upgrade.d.ts +2 -0
  100. package/dist/cli/commands/{update-many.js → workspace/upgrade.js} +2 -2
  101. package/dist/cli/register-annotations.js +1 -1
  102. package/dist/cli/register-history-activity.js +1 -1
  103. package/dist/cli/register-history-maintenance.js +1 -1
  104. package/dist/cli/register-list-query.js +1 -1
  105. package/dist/cli/register-mutation.js +1 -1
  106. package/dist/cli/register-operations.js +1 -1
  107. package/dist/cli/register-setup.js +1 -1
  108. package/dist/cli/schema/registration.js +1 -1
  109. package/dist/cli/stats-analytics-json.d.ts +1 -1
  110. package/dist/cli/stats-analytics-json.js +1 -1
  111. package/dist/cli-bundle/bundle-manifest.json +152 -152
  112. package/dist/cli-bundle/chunks/{chunk-GRHSNUQO.js → chunk-3OFFMS2N.js} +2 -2
  113. package/dist/cli-bundle/chunks/{chunk-QZTS23BV.js → chunk-4XOV7Q5R.js} +2 -2
  114. package/dist/cli-bundle/chunks/{chunk-2QLXN6HZ.js → chunk-AVWHZUNC.js} +26 -26
  115. package/dist/cli-bundle/chunks/{chunk-2UNYUB4A.js → chunk-BJBBOUYQ.js} +2 -2
  116. package/dist/cli-bundle/chunks/{chunk-JBJUOOJI.js → chunk-CM57QHVK.js} +5 -5
  117. package/dist/cli-bundle/chunks/{chunk-TTFVQB4S.js → chunk-D2OV2UBV.js} +2 -2
  118. package/dist/cli-bundle/chunks/{chunk-33R5PEKI.js → chunk-GFTN5OS4.js} +2 -2
  119. package/dist/cli-bundle/chunks/{chunk-HAFSMFJK.js → chunk-JSW33Q6R.js} +3 -3
  120. package/dist/cli-bundle/chunks/{chunk-FBWAECBI.js → chunk-ML42DLI3.js} +3 -3
  121. package/dist/cli-bundle/chunks/{chunk-2FEKKSLN.js → chunk-SBTT42A4.js} +43 -43
  122. package/dist/cli-bundle/chunks/chunk-SGFQQXFD.js +2 -0
  123. package/dist/cli-bundle/chunks/{chunk-7YUYLYJQ.js → chunk-UDNYAMCM.js} +6 -6
  124. package/dist/cli-bundle/chunks/{chunk-K7RWRJLT.js → chunk-ZSPZJOMK.js} +2 -2
  125. package/dist/cli-bundle/chunks/{register-list-query-5V43MYPN.js → register-list-query-VOS5CBX4.js} +2 -2
  126. package/dist/cli-bundle/chunks/register-mutation-LWZH6UFJ.js +20 -0
  127. package/dist/cli-bundle/chunks/{register-operations-LJU5H2CU.js → register-operations-YJK4DNFZ.js} +2 -2
  128. package/dist/cli-bundle/chunks/{register-setup-HJUNGYBB.js → register-setup-Q3CYF67Q.js} +2 -2
  129. package/dist/cli-bundle/focused-chunks/{chunk-L6L4XCLY.js → chunk-AO5FR7PN.js} +2 -2
  130. package/dist/cli-bundle/focused-chunks/{chunk-K5ZCBC6Y.js → chunk-CASXNCNQ.js} +2 -2
  131. package/dist/cli-bundle/focused-chunks/{chunk-FXAZPSU6.js → chunk-FKYUTTFL.js} +2 -2
  132. package/dist/cli-bundle/focused-chunks/{chunk-DPBTIFW7.js → chunk-IOL25GKH.js} +2 -2
  133. package/dist/cli-bundle/focused-chunks/{chunk-N6KI3LWF.js → chunk-JCD5YESL.js} +2 -2
  134. package/dist/cli-bundle/focused-chunks/{chunk-6MNKQKT6.js → chunk-LH24XUPJ.js} +2 -2
  135. package/dist/cli-bundle/focused-chunks/{chunk-IA5CCSBB.js → chunk-MXESHALQ.js} +2 -2
  136. package/dist/cli-bundle/focused-chunks/{chunk-3XPBKIV6.js → chunk-PRMQTT7X.js} +12 -12
  137. package/dist/cli-bundle/focused-chunks/{chunk-ISEOBALS.js → chunk-QFEDRPPI.js} +2 -2
  138. package/dist/cli-bundle/focused-chunks/{chunk-UIS5FVHH.js → chunk-QYN77MQP.js} +49 -49
  139. package/dist/cli-bundle/focused-chunks/{chunk-5BLRMUMK.js → chunk-TSI73EEM.js} +3 -3
  140. package/dist/cli-bundle/focused-chunks/{chunk-PC6ZZVNP.js → chunk-UAU4DJSR.js} +3 -3
  141. package/dist/cli-bundle/focused-chunks/{chunk-RQL5WLNZ.js → chunk-URH727T5.js} +2 -2
  142. package/dist/cli-bundle/focused-chunks/{chunk-U2SB2BMM.js → chunk-UT7VS4X2.js} +2 -2
  143. package/dist/cli-bundle/focused-chunks/{chunk-HYPK5OPA.js → chunk-V2NARGRH.js} +2 -2
  144. package/dist/cli-bundle/focused-chunks/{chunk-DRNXMOSV.js → chunk-XR5EBU3B.js} +2 -2
  145. package/dist/cli-bundle/main.js +18 -18
  146. package/dist/cli-bundle/sdk-authoring.js +1 -1
  147. package/dist/cli-bundle/sdk-contracts.js +1 -1
  148. package/dist/cli-bundle/sdk-core.js +21 -21
  149. package/dist/cli-bundle/sdk-governance.js +1 -1
  150. package/dist/cli-bundle/sdk-graph.js +1 -1
  151. package/dist/cli-bundle/sdk-merge.js +38 -38
  152. package/dist/cli-bundle/sdk-query.js +1 -1
  153. package/dist/cli-bundle/sdk-runtime.js +1 -1
  154. package/dist/cli-bundle/sdk-testing.js +1 -1
  155. package/dist/cli-bundle/sdk.js +1 -1
  156. package/dist/core/config/positional-value.d.ts +0 -2
  157. package/dist/core/config/positional-value.js +1 -1
  158. package/dist/core/history/history-diff.js +1 -1
  159. package/dist/core/schema/type-workflows.d.ts +1 -1
  160. package/dist/core/schema/type-workflows.js +1 -1
  161. package/dist/core/search/eval.d.ts +1 -1
  162. package/dist/core/search/eval.js +1 -1
  163. package/dist/core/shared/item-metadata-contract.d.ts +0 -4
  164. package/dist/core/shared/item-metadata-contract.js +1 -1
  165. package/dist/sdk/completion/bash.d.ts +1 -1
  166. package/dist/sdk/completion/bash.js +1 -1
  167. package/dist/sdk/extension/shared.d.ts +2 -2
  168. package/dist/sdk/extension/shared.js +1 -1
  169. package/dist/sdk/governance/upgrade.d.ts +2 -0
  170. package/dist/sdk/governance/upgrade.js +2 -2
  171. package/dist/sdk/public-surface.json +1 -1
  172. package/dist/sdk/query/search-contracts.d.ts +0 -1
  173. package/dist/sdk/query/search-contracts.js +1 -1
  174. package/dist/sdk/schema.d.ts +8 -4
  175. package/dist/sdk/schema.js +1 -1
  176. package/docs/ARCHITECTURE.md +31 -4
  177. package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +50 -1
  178. package/docs/COMMANDS.md +1 -1
  179. package/docs/EXTENSIONS.md +1 -1
  180. package/docs/README.md +1 -0
  181. package/docs/READ_OUTPUT_CONTRACTS.md +1 -1
  182. package/docs/RELEASING.md +7 -1
  183. package/docs/SDK_CONTEXT_INTEGRITY_PRIMITIVES.md +1 -1
  184. package/docs/VALIDATION_PORTABILITY.md +82 -0
  185. package/marketplace.json +2 -2
  186. package/package.json +10 -8
  187. package/packages/pm-beads/package.json +1 -1
  188. package/packages/pm-calendar/package.json +1 -1
  189. package/packages/pm-command-kit/package.json +1 -1
  190. package/packages/pm-digital-twin/package.json +1 -1
  191. package/packages/pm-governance-audit/package.json +1 -1
  192. package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +23 -17
  193. package/packages/pm-guide-shell/package.json +1 -1
  194. package/packages/pm-kanban/package.json +1 -1
  195. package/packages/pm-lifecycle-hooks/package.json +1 -1
  196. package/packages/pm-linked-test-adapters/package.json +1 -1
  197. package/packages/pm-search-advanced/package.json +1 -1
  198. package/packages/pm-templates/package.json +1 -1
  199. package/packages/pm-todos/package.json +1 -1
  200. package/packages/pm-vcs/package.json +1 -1
  201. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  202. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  203. package/scripts/build-lease.mjs +27 -0
  204. package/dist/cli/commands/activity.d.ts +0 -6
  205. package/dist/cli/commands/aggregate.d.ts +0 -2
  206. package/dist/cli/commands/append.d.ts +0 -2
  207. package/dist/cli/commands/claim.d.ts +0 -2
  208. package/dist/cli/commands/close-many.d.ts +0 -2
  209. package/dist/cli/commands/close.d.ts +0 -6
  210. package/dist/cli/commands/close.js +0 -2
  211. package/dist/cli/commands/comments.d.ts +0 -2
  212. package/dist/cli/commands/context.d.ts +0 -6
  213. package/dist/cli/commands/context.js +0 -2
  214. package/dist/cli/commands/contracts.d.ts +0 -2
  215. package/dist/cli/commands/copy.d.ts +0 -6
  216. package/dist/cli/commands/create.d.ts +0 -6
  217. package/dist/cli/commands/delete.d.ts +0 -6
  218. package/dist/cli/commands/duplicates.d.ts +0 -6
  219. package/dist/cli/commands/extension.d.ts +0 -6
  220. package/dist/cli/commands/focus.d.ts +0 -6
  221. package/dist/cli/commands/get.d.ts +0 -6
  222. package/dist/cli/commands/health.d.ts +0 -6
  223. package/dist/cli/commands/health.js +0 -2
  224. package/dist/cli/commands/history-compact.d.ts +0 -7
  225. package/dist/cli/commands/history-redact.js +0 -2
  226. package/dist/cli/commands/history.d.ts +0 -2
  227. package/dist/cli/commands/index.d.ts +0 -55
  228. package/dist/cli/commands/index.js +0 -2
  229. package/dist/cli/commands/init-agent-guidance.d.ts +0 -6
  230. package/dist/cli/commands/init-agent-guidance.js +0 -2
  231. package/dist/cli/commands/init.js +0 -2
  232. package/dist/cli/commands/learnings.d.ts +0 -2
  233. package/dist/cli/commands/lifecycle-transitions.d.ts +0 -2
  234. package/dist/cli/commands/lifecycle-transitions.js +0 -2
  235. package/dist/cli/commands/merge.d.ts +0 -8
  236. package/dist/cli/commands/merge.js +0 -2
  237. package/dist/cli/commands/notes.d.ts +0 -2
  238. package/dist/cli/commands/plan.d.ts +0 -6
  239. package/dist/cli/commands/restore.d.ts +0 -6
  240. package/dist/cli/commands/restore.js +0 -2
  241. package/dist/cli/commands/scheduling-shortcuts.d.ts +0 -6
  242. package/dist/cli/commands/scheduling-shortcuts.js +0 -2
  243. package/dist/cli/commands/schema.d.ts +0 -7
  244. package/dist/cli/commands/schema.js +0 -2
  245. package/dist/cli/commands/search.d.ts +0 -6
  246. package/dist/cli/commands/stats.d.ts +0 -6
  247. package/dist/cli/commands/telemetry.d.ts +0 -6
  248. package/dist/cli/commands/update-many.d.ts +0 -2
  249. package/dist/cli/commands/update.d.ts +0 -6
  250. package/dist/cli/commands/upgrade.d.ts +0 -2
  251. package/dist/cli/commands/upgrade.js +0 -2
  252. package/dist/cli/commands/validate.d.ts +0 -9
  253. package/dist/cli/commands/validate.js +0 -2
  254. package/dist/cli-bundle/chunks/chunk-T3AMFUCN.js +0 -2
  255. package/dist/cli-bundle/chunks/register-mutation-EVRYSU72.js +0 -20
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module cli/commands/lifecycle/update
3
+ *
4
+ * Compatibility export for the SDK-owned update lifecycle operation.
5
+ */
6
+ export * from "../../../sdk/lifecycle/update.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8441b43d-9ace-55d4-bc1b-c903f6de85b0")}catch(e2){}})();import{runCopy}from"../../sdk/lifecycle/copy.js";export{runCopy};
2
- //# sourceMappingURL=copy.js.map
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="841f6791-c2b4-51ea-8047-d27f51ffafb5")}catch(e2){}})();export*from"../../../sdk/lifecycle/update.js";
2
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1,2 @@
1
+ /** @module cli/commands/query/aggregate Compatibility export for the SDK-owned aggregate query. */
2
+ export * from "../../../sdk/query/aggregate.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="39c0b4dd-b342-5d83-847b-877dddd414db")}catch(e2){}})();export*from"../../sdk/query/aggregate.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1a62fe05-4407-5e76-87fa-5109dcca5640")}catch(e2){}})();export*from"../../../sdk/query/aggregate.js";
2
2
  //# sourceMappingURL=aggregate.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module cli/commands/query/context
3
+ *
4
+ * Compatibility export for the SDK-owned context query operation.
5
+ */
6
+ export * from "../../../sdk/query/context.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2584dda7-d2b4-5dd2-b7f5-fe17dc707769")}catch(e2){}})();import{runFocus}from"../../sdk/lifecycle/focus.js";export{runFocus};
2
- //# sourceMappingURL=focus.js.map
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="25c5349b-60d7-505b-98b0-3ed19e44b791")}catch(e2){}})();export*from"../../../sdk/query/context.js";
2
+ //# sourceMappingURL=context.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/deps
2
+ * @module cli/commands/query/deps
3
3
  *
4
4
  * Re-exports the public SDK dependency-graph primitive for CLI presentation wiring.
5
5
  */
6
- export * from "../../sdk/dependencies.js";
6
+ export * from "../../../sdk/dependencies.js";
@@ -0,0 +1,2 @@
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="529dd34d-5a81-504f-9641-28093d41d247")}catch(e2){}})();export*from"../../../sdk/dependencies.js";
2
+ //# sourceMappingURL=deps.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module cli/commands/query/duplicates
3
+ *
4
+ * Compatibility export for SDK-owned duplicate-cluster discovery.
5
+ */
6
+ export * from "../../../sdk/duplicates.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0954af2d-98d8-5425-9264-cd44252bb7ef")}catch(e2){}})();export*from"../../sdk/duplicates.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="524ade8e-33d6-5353-b01d-c7baddc956e8")}catch(e2){}})();export*from"../../../sdk/duplicates.js";
2
2
  //# sourceMappingURL=duplicates.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/eval
2
+ * @module cli/commands/query/eval
3
3
  *
4
4
  * Compatibility export for the SDK-owned search evaluation harness.
5
5
  */
6
- export * from "../../sdk/eval.js";
6
+ export * from "../../../sdk/eval.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c191aa04-42d2-55f8-84e2-96065ad79303")}catch(e2){}})();export*from"../../sdk/eval.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b40cde4c-ca5a-522d-a731-52503c7e4fe0")}catch(e2){}})();export*from"../../../sdk/eval.js";
2
2
  //# sourceMappingURL=eval.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module cli/commands/query/get
3
+ *
4
+ * Preserves the CLI import path while item retrieval is owned by the SDK.
5
+ */
6
+ export { _testOnlyGetCommand, runGet, } from "../../../sdk/query/get.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ad0e3edb-04f8-59cf-a70e-2412222f09ec")}catch(e2){}})();import{_testOnlyGetCommand,runGet}from"../../sdk/query/get.js";export{_testOnlyGetCommand,runGet};
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9212f45c-798d-5774-87ce-bb7d6ff5514a")}catch(e2){}})();import{_testOnlyGetCommand,runGet}from"../../../sdk/query/get.js";export{_testOnlyGetCommand,runGet};
2
2
  //# sourceMappingURL=get.js.map
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @module cli/commands/graph
2
+ * @module cli/commands/query/graph
3
3
  *
4
4
  * Re-exports the public SDK workspace graph-query primitives for CLI
5
5
  * presentation wiring.
6
6
  */
7
- export * from "../../sdk/graph/run.js";
7
+ export * from "../../../sdk/graph/run.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="897f8885-b931-542d-ba00-0568f85f9b08")}catch(e2){}})();export*from"../../sdk/graph/run.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="deee1339-ac17-5ae9-8add-a9dd766d182e")}catch(e2){}})();export*from"../../../sdk/graph/run.js";
2
2
  //# sourceMappingURL=graph.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/list
2
+ * @module cli/commands/query/list
3
3
  *
4
4
  * Compatibility export for the SDK-owned list/query implementation.
5
5
  */
6
- export * from "../../sdk/query/list.js";
6
+ export * from "../../../sdk/query/list.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dad271f5-0900-58fb-9361-06a2b181c101")}catch(e2){}})();export*from"../../sdk/query/list.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b662e21b-a163-5834-8789-65243f4c7c9c")}catch(e2){}})();export*from"../../../sdk/query/list.js";
2
2
  //# sourceMappingURL=list.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/next
2
+ * @module cli/commands/query/next
3
3
  *
4
4
  * Compatibility export for the SDK-owned next-work query operation.
5
5
  */
6
- export * from "../../sdk/query/next.js";
6
+ export * from "../../../sdk/query/next.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b25b75c4-b6d5-5d5c-a2de-f05e9086f0ed")}catch(e2){}})();export*from"../../sdk/query/next.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5cc1722c-b797-5b95-a493-3925003ba72e")}catch(e2){}})();export*from"../../../sdk/query/next.js";
2
2
  //# sourceMappingURL=next.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module cli/commands/query/search
3
+ *
4
+ * Compatibility export for the SDK-owned search implementation.
5
+ */
6
+ export * from "../../../sdk/query/search.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6ba28a92-6c86-5be0-b05b-98852a709139")}catch(e2){}})();export*from"../../sdk/query/search.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="35c679a2-9d47-51fa-8bd2-175a4ec48d6b")}catch(e2){}})();export*from"../../../sdk/query/search.js";
2
2
  //# sourceMappingURL=search.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module cli/commands/query/stats
3
+ *
4
+ * Compatibility export for SDK-owned tracker statistics.
5
+ */
6
+ export * from "../../../sdk/stats.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c9656d1f-25d1-5e20-b5e1-0b96390e0b62")}catch(e2){}})();export*from"../../sdk/stats.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d008ca8f-41bf-54fb-9b56-bc1d4af9f226")}catch(e2){}})();export*from"../../../sdk/stats.js";
2
2
  //# sourceMappingURL=stats.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/test-all
2
+ * @module cli/commands/test/test-all
3
3
  *
4
4
  * Compatibility export for SDK-owned batch linked-test orchestration.
5
5
  */
6
- export * from "../../sdk/test/batch.js";
6
+ export * from "../../../sdk/test/batch.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5f81d2b7-3693-553e-bfe8-17344cd3a6c3")}catch(e2){}})();export*from"../../sdk/test/batch.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9ee008b9-3751-5794-8d01-1f6d3123d6cd")}catch(e2){}})();export*from"../../../sdk/test/batch.js";
2
2
  //# sourceMappingURL=test-all.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/test-runs
2
+ * @module cli/commands/test/test-runs
3
3
  *
4
4
  * Compatibility export for SDK-owned background test-run lifecycle primitives.
5
5
  */
6
- export * from "../../sdk/test/runs.js";
6
+ export * from "../../../sdk/test/runs.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="41d39122-3247-54ea-9eaf-43f002910880")}catch(e2){}})();export*from"../../sdk/test/runs.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b6fa277d-ccf2-5413-95d5-0790283203d5")}catch(e2){}})();export*from"../../../sdk/test/runs.js";
2
2
  //# sourceMappingURL=test-runs.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/test
2
+ * @module cli/commands/test/test
3
3
  *
4
4
  * Compatibility export for SDK-owned linked-test execution primitives.
5
5
  */
6
- export * from "../../sdk/test/execution.js";
6
+ export * from "../../../sdk/test/execution.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ac5c3cc6-b0a4-5dad-b6ed-f1e627f6bb1d")}catch(e2){}})();export*from"../../sdk/test/execution.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a5e0162a-bbf1-50fe-8912-a820de155e90")}catch(e2){}})();export*from"../../../sdk/test/execution.js";
2
2
  //# sourceMappingURL=test.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/config
2
+ * @module cli/commands/workspace/config
3
3
  *
4
4
  * Preserves the CLI compatibility import path for SDK-owned configuration primitives.
5
5
  */
6
- export * from "../../sdk/config.js";
6
+ export * from "../../../sdk/config.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="74e48eb2-5a8d-51da-9abb-43d6451e5f11")}catch(e2){}})();export*from"../../sdk/config.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="108609fa-51fc-5bd0-ac54-de2ad14a66c6")}catch(e2){}})();export*from"../../../sdk/config.js";
2
2
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,2 @@
1
+ /** @module cli/commands/workspace/contracts Compatibility export for SDK-owned runtime contracts. */
2
+ export * from "../../../sdk/cli-contracts/runtime-contracts.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ae73a8aa-9ba6-58cc-9bcd-912682cadfdc")}catch(e2){}})();export*from"../../sdk/cli-contracts/runtime-contracts.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="29db968f-30ad-5f3c-bf95-e33be18614c6")}catch(e2){}})();export*from"../../../sdk/cli-contracts/runtime-contracts.js";
2
2
  //# sourceMappingURL=contracts.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/init
2
+ * @module cli/commands/workspace/init
3
3
  *
4
4
  * Preserves the CLI compatibility import path for SDK-owned initialization primitives.
5
5
  */
6
- export * from "../../sdk/init.js";
6
+ export * from "../../../sdk/init.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b38566a0-5884-5be7-bf2d-00882e3bc6ce")}catch(e2){}})();export*from"../../sdk/lifecycle/update.js";
2
- //# sourceMappingURL=update.js.map
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b36466e6-5574-5509-909a-e8599f11664c")}catch(e2){}})();export*from"../../../sdk/init.js";
2
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module cli/commands/workspace/merge
3
+ *
4
+ * Presentation compatibility shim for the public SDK tracker merge
5
+ * primitives. The SDK owns the three-way merge semantics, the git merge
6
+ * driver runner, and the repository merge-configuration installer.
7
+ */
8
+ export { MERGE_DRIVER_ARTIFACT_VALUES, runMergeDriver, runMergeInstall, runMergeReceiptEvidenceReport, runMergeReconcile, } from "../../../sdk/merge/index.js";
@@ -0,0 +1,2 @@
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="48b9050b-3290-55d6-82cc-b9d14cc33186")}catch(e2){}})();import{MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,runMergeInstall,runMergeReceiptEvidenceReport,runMergeReconcile}from"../../../sdk/merge/index.js";export{MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,runMergeInstall,runMergeReceiptEvidenceReport,runMergeReconcile};
2
+ //# sourceMappingURL=merge.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module cli/commands/profile
2
+ * @module cli/commands/workspace/profile
3
3
  *
4
4
  * Preserves the CLI compatibility import path for SDK-owned project profile primitives.
5
5
  */
6
- export * from "../../sdk/profile.js";
6
+ export * from "../../../sdk/profile.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1d15cd62-036e-549c-81b1-b8df1f239bd8")}catch(e2){}})();export*from"../../sdk/profile.js";
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2d367793-8aa5-5a00-8c8c-60512a27f62a")}catch(e2){}})();export*from"../../../sdk/profile.js";
2
2
  //# sourceMappingURL=profile.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @module cli/commands/workspace/schema
3
+ *
4
+ * Preserves the CLI command-module contract while schema behavior, result
5
+ * types, and rendering helpers are owned by the public SDK module.
6
+ */
7
+ 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, } from "../../../sdk/schema.js";
@@ -0,0 +1,2 @@
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a4b4d693-ba4c-529a-a5d4-8f6c874830ad")}catch(e2){}})();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};
2
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1,2 @@
1
+ /** @module cli/commands/workspace/upgrade Compatibility export for SDK-owned upgrade governance. */
2
+ export * from "../../../sdk/governance/upgrade.js";
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e5fe03b1-85ba-5b9e-8846-46e2db87c5de")}catch(e2){}})();export*from"../../sdk/lifecycle/update-many.js";
2
- //# sourceMappingURL=update-many.js.map
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e5e1e242-6864-5a72-adb9-0eda4c65a0c3")}catch(e2){}})();export*from"../../../sdk/governance/upgrade.js";
2
+ //# sourceMappingURL=upgrade.js.map
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0b92ef55-bb44-5a94-840d-a972b90b696c")}catch(e2){}})();import{EXIT_CODE,PmCliError}from"../sdk/runtime-primitives.js";import{renderPmCommand}from"../sdk/command-line.js";import{runComments}from"./commands/comments.js";import{runLearnings}from"./commands/learnings.js";import{runNotes}from"./commands/notes.js";import{addHiddenOption,getGlobalOptions,invalidateSearchCachesForMutation,printError,printResult,readOptionString}from"./registration-helpers.js";function assertNoTransposedAnnotationAction(collection,id,text,options){if(id.trim().toLowerCase()!=="add"||!text?.trim()){return}const suppliedText=readOptionString(options,"add")??readOptionString(options,"text")??readOptionString(options,"note")??readOptionString(options,"body")??readOptionString(options,"comment");const file=readOptionString(options,"file");const retryArgs=[collection,text.trim()];if(suppliedText!==void 0)retryArgs.push("--add",suppliedText);else if(options.stdin===true)retryArgs.push("--stdin");else if(file!==void 0)retryArgs.push("--file",file);else retryArgs.push("--add","-");const suggestedRetry=renderPmCommand(retryArgs);const stdinRetry=renderPmCommand([collection,text.trim(),"--add","-"]);throw new PmCliError(`The positional token "add" was parsed as the item id, while "${text.trim()}" was parsed as annotation text. ${collection} does not use an add subcommand.`,EXIT_CODE.USAGE,{code:"annotation_transposed_subcommand",reason:"noun_verb_object_transposition",required:`Place the item id immediately after ${collection}, then use --add for annotation text.`,examples:[...new Set([suggestedRetry,stdinRetry])],recovery:{attempted_command:`pm ${collection} add ${text.trim()}`,normalized_args:[collection,"add",text.trim()],parsed_positionals:[{role:"transposed_subcommand",value:"add"},{role:"item_id",value:text.trim()}],suggested_retry:suggestedRetry}})}function resolveAnnotationTextAliases(label,options,aliases){const supplied=aliases.flatMap(alias=>{const value=readOptionString(options,alias);return value===void 0?[]:[{alias,value}]});const distinctValues=[...new Set(supplied.map(({value})=>value))];if(distinctValues.length>1){throw new PmCliError(`Specify ${label} text with one alias or the same value across aliases: ${supplied.map(({alias})=>`--${alias}`).join(", ")}`,EXIT_CODE.USAGE,{code:"annotation_alias_conflict"})}return supplied[0]?.value}function resolveCommentSources(text,options){const editIndex=typeof options.edit==="number"?options.edit:void 0;const deleteIndex=typeof options.delete==="number"?options.delete:void 0;const addFromOption=resolveAnnotationTextAliases("comment",options,["add","text","body","comment"]);const addFromPositional=typeof text==="string"?text:void 0;const readFromStdin=options.stdin===true;const readFromFile=readOptionString(options,"file");const sourceCount=Number(addFromOption!==void 0)+Number(addFromPositional!==void 0)+Number(readFromStdin)+Number(readFromFile!==void 0);if(sourceCount>1){if(addFromOption!==void 0&&addFromPositional!==void 0&&!readFromStdin&&readFromFile===void 0){throw new PmCliError("Specify comment text either as positional [text] or with --add, not both",EXIT_CODE.USAGE)}throw new PmCliError("Specify comment text with exactly one source: positional [text], --add, --stdin, or --file",EXIT_CODE.USAGE)}const add=addFromOption??addFromPositional;return{add,readFromStdin,readFromFile,editIndex,deleteIndex,isMutation:typeof add==="string"||readFromStdin||readFromFile!==void 0||editIndex!==void 0||deleteIndex!==void 0}}function resolveSingleAnnotationSources(label,positional,options){const addFromOption=resolveAnnotationTextAliases(label,options,label==="note"?["add","text","note"]:["add","text"]);const addFromPositional=typeof positional==="string"?positional:void 0;if(addFromOption!==void 0&&addFromPositional!==void 0){throw new PmCliError(`Specify ${label} text either as positional [text] or with --add, not both`,EXIT_CODE.USAGE)}const add=addFromOption??addFromPositional;const addJson=label==="note"?readOptionString(options,"addJson"):void 0;const readFromStdin=options.stdin===true;const readFromFile=readOptionString(options,"file");const editIndex=typeof options.edit==="number"?options.edit:void 0;const deleteIndex=typeof options.delete==="number"?options.delete:void 0;return{add,addJson,readFromStdin,readFromFile,editIndex,deleteIndex,isMutation:typeof add==="string"||addJson!==void 0||readFromStdin||readFromFile!==void 0||editIndex!==void 0||deleteIndex!==void 0}}async function runCommentsAction(id,text,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();assertNoTransposedAnnotationAction("comments",id,text,options);const sources=resolveCommentSources(text,options);const result=await runComments(id,{add:sources.add,stdin:sources.readFromStdin,file:sources.readFromFile,edit:sources.editIndex,delete:sources.deleteIndex,limit:readOptionString(options,"limit"),fullHistory:options.fullHistory===true,ifAbsent:options.ifAbsent===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),ownershipAppendBypass:options.ownershipAppendBypass===true,force:Boolean(options.force)},globalOptions);if(sources.isMutation&&result.changed!==false){await invalidateSearchCachesForMutation(globalOptions,result)}printAnnotationResult("comments",result,globalOptions,startedAt)}async function runNotesAction(id,text,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();assertNoTransposedAnnotationAction("notes",id,text,options);const sources=resolveSingleAnnotationSources("note",text,options);const result=await runNotes(id,{add:sources.add,addJson:sources.addJson,stdin:sources.readFromStdin,file:sources.readFromFile,edit:sources.editIndex,delete:sources.deleteIndex,limit:readOptionString(options,"limit"),since:readOptionString(options,"since"),eventType:readOptionString(options,"eventType"),includeMeta:options.includeMeta===true,fullHistory:options.fullHistory===true,ifAbsent:options.ifAbsent===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),ownershipAppendBypass:options.ownershipAppendBypass===true,force:Boolean(options.force)},globalOptions);if(sources.isMutation&&result.changed!==false){await invalidateSearchCachesForMutation(globalOptions,result)}printAnnotationResult("notes",result,globalOptions,startedAt)}async function runLearningsAction(id,text,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();assertNoTransposedAnnotationAction("learnings",id,text,options);const sources=resolveSingleAnnotationSources("learning",text,options);const result=await runLearnings(id,{add:sources.add,stdin:sources.readFromStdin,file:sources.readFromFile,edit:sources.editIndex,delete:sources.deleteIndex,limit:readOptionString(options,"limit"),fullHistory:options.fullHistory===true,ifAbsent:options.ifAbsent===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),ownershipAppendBypass:options.ownershipAppendBypass===true,force:Boolean(options.force)},globalOptions);if(sources.isMutation&&result.changed!==false){await invalidateSearchCachesForMutation(globalOptions,result)}printAnnotationResult("learnings",result,globalOptions,startedAt)}function printAnnotationResult(command,result,globalOptions,startedAt){printResult(result,globalOptions);if(globalOptions.profile){printError(`profile:command=${command} took_ms=${Date.now()-startedAt}`)}}function registerAnnotationCommands(program,parsePositiveInteger){const commentsCommand=program.command("comments").argument("<id>","Item id").argument("[text]","Optional comment text shorthand (equivalent to --add)").option("--add <text>","Append comment text; use text=<value> for structured input or - for stdin").option("--stdin","Read comment text from stdin (supports multiline markdown)").option("--file <path>","Read comment text from a file or stdin (-)").option("--edit <index>","Replace one comment using positional text, --add, --stdin, or --file",parsePositiveInteger("--edit")).option("--delete <index>","Delete the comment at 1-based <index>",parsePositiveInteger("--delete")).option("--limit <n>","Return only latest n comments").option("--full-history","Return complete comment history instead of a bounded mutation receipt").option("--if-absent","Append only when resolved author and text are absent").option("--author [value]","Comment author; defaults to PM_AUTHOR or settings").option("--message <value>","History message").option("--force","Force ownership override").description("List, add, edit, or delete comments for an item.").action(runCommentsAction);addHiddenOption(commentsCommand,"--body <text>","Alias for --add",false);addHiddenOption(commentsCommand,"--text <text>","Alias for --add",false);addHiddenOption(commentsCommand,"--comment <text>","Alias for --add",false);const notesCommand=program.command("notes").argument("<id>","Item id").argument("[text]","Optional note text shorthand for --add").option("--add <text>","Add a text note (- reads stdin)").option("--note <text>","Alias for --add").option("--add-json <json>","Append a JSON event").option("--stdin","Read note text from stdin").option("--file <path>","Read note from file or stdin (-)").option("--edit <index>","Replace a 1-based note using the selected text input",parsePositiveInteger("--edit")).option("--delete <index>","Delete the note at 1-based <index>",parsePositiveInteger("--delete")).option("--limit <n>","Return only latest n notes").option("--since <timestamp>","Filter JSON events from this ISO time").option("--event-type <value>","Filter JSON events by top-level type").option("--include-meta","Include count and truncation metadata").option("--full-history","Return complete note history instead of a bounded receipt").option("--if-absent","Append only when resolved author and text are absent").option("--author [value]","Author; defaults to PM_AUTHOR/settings").option("--message <value>","History message").option("--force","Force ownership override").description("Manage merge-safe text notes and JSON context events.").action(runNotesAction);addHiddenOption(notesCommand,"--text <text>","Alias for --add",false);const learningsCommand=program.command("learnings").argument("<id>","Item id").argument("[text]","Optional learning text shorthand for --add").option("--add <text>","Append learning text; use text=<value> or - for stdin").option("--stdin","Read learning text from stdin").option("--file <path>","Read learning text from a file or stdin (-)").option("--edit <index>","Replace one learning using positional text, --add, --stdin, or --file",parsePositiveInteger("--edit")).option("--delete <index>","Delete the learning at 1-based <index>",parsePositiveInteger("--delete")).option("--limit <n>","Return only latest n learnings").option("--full-history","Return complete learning history instead of a bounded receipt").option("--if-absent","Append only when resolved author and text are absent").option("--author [value]","Learning author (optional; falls back to PM_AUTHOR/settings)").option("--message <value>","History message").option("--force","Force ownership override").description("List, add, edit, or delete learnings for an item.").action(runLearningsAction);addHiddenOption(learningsCommand,"--text <text>","Alias for --add",false)}export{registerAnnotationCommands};
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dc9822ba-df3c-5179-827e-ef2551786b14")}catch(e2){}})();import{EXIT_CODE,PmCliError}from"../sdk/runtime-primitives.js";import{renderPmCommand}from"../sdk/command-line.js";import{runComments}from"./commands/annotations/comments.js";import{runLearnings}from"./commands/annotations/learnings.js";import{runNotes}from"./commands/annotations/notes.js";import{addHiddenOption,getGlobalOptions,invalidateSearchCachesForMutation,printError,printResult,readOptionString}from"./registration-helpers.js";function assertNoTransposedAnnotationAction(collection,id,text,options){if(id.trim().toLowerCase()!=="add"||!text?.trim()){return}const suppliedText=readOptionString(options,"add")??readOptionString(options,"text")??readOptionString(options,"note")??readOptionString(options,"body")??readOptionString(options,"comment");const file=readOptionString(options,"file");const retryArgs=[collection,text.trim()];if(suppliedText!==void 0)retryArgs.push("--add",suppliedText);else if(options.stdin===true)retryArgs.push("--stdin");else if(file!==void 0)retryArgs.push("--file",file);else retryArgs.push("--add","-");const suggestedRetry=renderPmCommand(retryArgs);const stdinRetry=renderPmCommand([collection,text.trim(),"--add","-"]);throw new PmCliError(`The positional token "add" was parsed as the item id, while "${text.trim()}" was parsed as annotation text. ${collection} does not use an add subcommand.`,EXIT_CODE.USAGE,{code:"annotation_transposed_subcommand",reason:"noun_verb_object_transposition",required:`Place the item id immediately after ${collection}, then use --add for annotation text.`,examples:[...new Set([suggestedRetry,stdinRetry])],recovery:{attempted_command:`pm ${collection} add ${text.trim()}`,normalized_args:[collection,"add",text.trim()],parsed_positionals:[{role:"transposed_subcommand",value:"add"},{role:"item_id",value:text.trim()}],suggested_retry:suggestedRetry}})}function resolveAnnotationTextAliases(label,options,aliases){const supplied=aliases.flatMap(alias=>{const value=readOptionString(options,alias);return value===void 0?[]:[{alias,value}]});const distinctValues=[...new Set(supplied.map(({value})=>value))];if(distinctValues.length>1){throw new PmCliError(`Specify ${label} text with one alias or the same value across aliases: ${supplied.map(({alias})=>`--${alias}`).join(", ")}`,EXIT_CODE.USAGE,{code:"annotation_alias_conflict"})}return supplied[0]?.value}function resolveCommentSources(text,options){const editIndex=typeof options.edit==="number"?options.edit:void 0;const deleteIndex=typeof options.delete==="number"?options.delete:void 0;const addFromOption=resolveAnnotationTextAliases("comment",options,["add","text","body","comment"]);const addFromPositional=typeof text==="string"?text:void 0;const readFromStdin=options.stdin===true;const readFromFile=readOptionString(options,"file");const sourceCount=Number(addFromOption!==void 0)+Number(addFromPositional!==void 0)+Number(readFromStdin)+Number(readFromFile!==void 0);if(sourceCount>1){if(addFromOption!==void 0&&addFromPositional!==void 0&&!readFromStdin&&readFromFile===void 0){throw new PmCliError("Specify comment text either as positional [text] or with --add, not both",EXIT_CODE.USAGE)}throw new PmCliError("Specify comment text with exactly one source: positional [text], --add, --stdin, or --file",EXIT_CODE.USAGE)}const add=addFromOption??addFromPositional;return{add,readFromStdin,readFromFile,editIndex,deleteIndex,isMutation:typeof add==="string"||readFromStdin||readFromFile!==void 0||editIndex!==void 0||deleteIndex!==void 0}}function resolveSingleAnnotationSources(label,positional,options){const addFromOption=resolveAnnotationTextAliases(label,options,label==="note"?["add","text","note"]:["add","text"]);const addFromPositional=typeof positional==="string"?positional:void 0;if(addFromOption!==void 0&&addFromPositional!==void 0){throw new PmCliError(`Specify ${label} text either as positional [text] or with --add, not both`,EXIT_CODE.USAGE)}const add=addFromOption??addFromPositional;const addJson=label==="note"?readOptionString(options,"addJson"):void 0;const readFromStdin=options.stdin===true;const readFromFile=readOptionString(options,"file");const editIndex=typeof options.edit==="number"?options.edit:void 0;const deleteIndex=typeof options.delete==="number"?options.delete:void 0;return{add,addJson,readFromStdin,readFromFile,editIndex,deleteIndex,isMutation:typeof add==="string"||addJson!==void 0||readFromStdin||readFromFile!==void 0||editIndex!==void 0||deleteIndex!==void 0}}async function runCommentsAction(id,text,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();assertNoTransposedAnnotationAction("comments",id,text,options);const sources=resolveCommentSources(text,options);const result=await runComments(id,{add:sources.add,stdin:sources.readFromStdin,file:sources.readFromFile,edit:sources.editIndex,delete:sources.deleteIndex,limit:readOptionString(options,"limit"),fullHistory:options.fullHistory===true,ifAbsent:options.ifAbsent===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),ownershipAppendBypass:options.ownershipAppendBypass===true,force:Boolean(options.force)},globalOptions);if(sources.isMutation&&result.changed!==false){await invalidateSearchCachesForMutation(globalOptions,result)}printAnnotationResult("comments",result,globalOptions,startedAt)}async function runNotesAction(id,text,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();assertNoTransposedAnnotationAction("notes",id,text,options);const sources=resolveSingleAnnotationSources("note",text,options);const result=await runNotes(id,{add:sources.add,addJson:sources.addJson,stdin:sources.readFromStdin,file:sources.readFromFile,edit:sources.editIndex,delete:sources.deleteIndex,limit:readOptionString(options,"limit"),since:readOptionString(options,"since"),eventType:readOptionString(options,"eventType"),includeMeta:options.includeMeta===true,fullHistory:options.fullHistory===true,ifAbsent:options.ifAbsent===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),ownershipAppendBypass:options.ownershipAppendBypass===true,force:Boolean(options.force)},globalOptions);if(sources.isMutation&&result.changed!==false){await invalidateSearchCachesForMutation(globalOptions,result)}printAnnotationResult("notes",result,globalOptions,startedAt)}async function runLearningsAction(id,text,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();assertNoTransposedAnnotationAction("learnings",id,text,options);const sources=resolveSingleAnnotationSources("learning",text,options);const result=await runLearnings(id,{add:sources.add,stdin:sources.readFromStdin,file:sources.readFromFile,edit:sources.editIndex,delete:sources.deleteIndex,limit:readOptionString(options,"limit"),fullHistory:options.fullHistory===true,ifAbsent:options.ifAbsent===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),ownershipAppendBypass:options.ownershipAppendBypass===true,force:Boolean(options.force)},globalOptions);if(sources.isMutation&&result.changed!==false){await invalidateSearchCachesForMutation(globalOptions,result)}printAnnotationResult("learnings",result,globalOptions,startedAt)}function printAnnotationResult(command,result,globalOptions,startedAt){printResult(result,globalOptions);if(globalOptions.profile){printError(`profile:command=${command} took_ms=${Date.now()-startedAt}`)}}function registerAnnotationCommands(program,parsePositiveInteger){const commentsCommand=program.command("comments").argument("<id>","Item id").argument("[text]","Optional comment text shorthand (equivalent to --add)").option("--add <text>","Append comment text; use text=<value> for structured input or - for stdin").option("--stdin","Read comment text from stdin (supports multiline markdown)").option("--file <path>","Read comment text from a file or stdin (-)").option("--edit <index>","Replace one comment using positional text, --add, --stdin, or --file",parsePositiveInteger("--edit")).option("--delete <index>","Delete the comment at 1-based <index>",parsePositiveInteger("--delete")).option("--limit <n>","Return only latest n comments").option("--full-history","Return complete comment history instead of a bounded mutation receipt").option("--if-absent","Append only when resolved author and text are absent").option("--author [value]","Comment author; defaults to PM_AUTHOR or settings").option("--message <value>","History message").option("--force","Force ownership override").description("List, add, edit, or delete comments for an item.").action(runCommentsAction);addHiddenOption(commentsCommand,"--body <text>","Alias for --add",false);addHiddenOption(commentsCommand,"--text <text>","Alias for --add",false);addHiddenOption(commentsCommand,"--comment <text>","Alias for --add",false);const notesCommand=program.command("notes").argument("<id>","Item id").argument("[text]","Optional note text shorthand for --add").option("--add <text>","Add a text note (- reads stdin)").option("--note <text>","Alias for --add").option("--add-json <json>","Append a JSON event").option("--stdin","Read note text from stdin").option("--file <path>","Read note from file or stdin (-)").option("--edit <index>","Replace a 1-based note using the selected text input",parsePositiveInteger("--edit")).option("--delete <index>","Delete the note at 1-based <index>",parsePositiveInteger("--delete")).option("--limit <n>","Return only latest n notes").option("--since <timestamp>","Filter JSON events from this ISO time").option("--event-type <value>","Filter JSON events by top-level type").option("--include-meta","Include count and truncation metadata").option("--full-history","Return complete note history instead of a bounded receipt").option("--if-absent","Append only when resolved author and text are absent").option("--author [value]","Author; defaults to PM_AUTHOR/settings").option("--message <value>","History message").option("--force","Force ownership override").description("Manage merge-safe text notes and JSON context events.").action(runNotesAction);addHiddenOption(notesCommand,"--text <text>","Alias for --add",false);const learningsCommand=program.command("learnings").argument("<id>","Item id").argument("[text]","Optional learning text shorthand for --add").option("--add <text>","Append learning text; use text=<value> or - for stdin").option("--stdin","Read learning text from stdin").option("--file <path>","Read learning text from a file or stdin (-)").option("--edit <index>","Replace one learning using positional text, --add, --stdin, or --file",parsePositiveInteger("--edit")).option("--delete <index>","Delete the learning at 1-based <index>",parsePositiveInteger("--delete")).option("--limit <n>","Return only latest n learnings").option("--full-history","Return complete learning history instead of a bounded receipt").option("--if-absent","Append only when resolved author and text are absent").option("--author [value]","Learning author (optional; falls back to PM_AUTHOR/settings)").option("--message <value>","History message").option("--force","Force ownership override").description("List, add, edit, or delete learnings for an item.").action(runLearningsAction);addHiddenOption(learningsCommand,"--text <text>","Alias for --add",false)}export{registerAnnotationCommands};
2
2
  //# sourceMappingURL=register-annotations.js.map
@@ -1,2 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6f752b76-9eed-565b-b9ff-87ff80fddfc7")}catch(e2){}})();import{EXIT_CODE,PmCliError}from"../sdk/runtime-primitives.js";import{runActivity}from"./commands/activity.js";import{collect,getGlobalOptions,normalizeActivityOptions,printActivityJsonStream,printError,printResult,resolveActivityStreamMode}from"./registration-helpers.js";async function runActivityAction(options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();if([options.raw,options.compact,options.full,options.provenance].filter(value=>value===true).length>1){throw new PmCliError("Activity projection options are mutually exclusive. Use --raw, --compact, --provenance, or --full.",EXIT_CODE.USAGE)}const streamMode=resolveActivityStreamMode(options.stream);if(streamMode&&!globalOptions.json){throw new PmCliError("--stream requires --json output mode.",EXIT_CODE.USAGE)}const normalized=normalizeActivityOptions(options);const result=await runActivity(streamMode&&options.full!==true&&options.provenance!==true?{...normalized,raw:true,compact:true}:normalized,globalOptions);if(streamMode){printActivityJsonStream(result,normalized,globalOptions)}else{printResult(result,globalOptions)}if(globalOptions.profile){printError(`profile:command=activity took_ms=${Date.now()-startedAt}`)}}function registerHistoryActivityCommand(command){command.option("--id <value>","Filter by item ID").option("--op <value>","Filter by history operation").option("--author <value>","Filter by history author").option("--from <value>","Lower timestamp bound (ISO/date string or relative)").option("--to <value>","Upper timestamp bound (ISO/date string or relative)").option("--limit <n>","Return only the latest n activity entries").option("--unbounded","Explicitly return every matching activity entry (disables the default bound)").option("--compact","Condensed output: show only id, op, ts, author, msg per entry").option("--raw","Show the legacy compact per-event stream instead of the item digest").option("--full","Show full activity entries with JSON Patch payloads").option("--provenance","Show patch-free author, harness, instance, and extensible provenance").option("--provenance-summary","Include bounded provenance completeness counts").option("--harness <value>","Filter by recorded or vocabulary-resolved harness (repeatable)",collect).option("--agent-instance <value>","Filter by privacy-safe agent instance (repeatable)",collect).option("--provenance-filter <dimension=value>","Filter by an exact declared provenance value (repeatable)",collect).option("--stream [mode]","Emit line-delimited JSON rows (requires --json). Optional mode: rows|ndjson|jsonl").description("Show recent activity across items.").action(runActivityAction)}export{registerHistoryActivityCommand};
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="10ce695f-65e7-5ea4-bdd8-472ad9527506")}catch(e2){}})();import{EXIT_CODE,PmCliError}from"../sdk/runtime-primitives.js";import{runActivity}from"./commands/history/activity.js";import{collect,getGlobalOptions,normalizeActivityOptions,printActivityJsonStream,printError,printResult,resolveActivityStreamMode}from"./registration-helpers.js";async function runActivityAction(options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();if([options.raw,options.compact,options.full,options.provenance].filter(value=>value===true).length>1){throw new PmCliError("Activity projection options are mutually exclusive. Use --raw, --compact, --provenance, or --full.",EXIT_CODE.USAGE)}const streamMode=resolveActivityStreamMode(options.stream);if(streamMode&&!globalOptions.json){throw new PmCliError("--stream requires --json output mode.",EXIT_CODE.USAGE)}const normalized=normalizeActivityOptions(options);const result=await runActivity(streamMode&&options.full!==true&&options.provenance!==true?{...normalized,raw:true,compact:true}:normalized,globalOptions);if(streamMode){printActivityJsonStream(result,normalized,globalOptions)}else{printResult(result,globalOptions)}if(globalOptions.profile){printError(`profile:command=activity took_ms=${Date.now()-startedAt}`)}}function registerHistoryActivityCommand(command){command.option("--id <value>","Filter by item ID").option("--op <value>","Filter by history operation").option("--author <value>","Filter by history author").option("--from <value>","Lower timestamp bound (ISO/date string or relative)").option("--to <value>","Upper timestamp bound (ISO/date string or relative)").option("--limit <n>","Return only the latest n activity entries").option("--unbounded","Explicitly return every matching activity entry (disables the default bound)").option("--compact","Condensed output: show only id, op, ts, author, msg per entry").option("--raw","Show the legacy compact per-event stream instead of the item digest").option("--full","Show full activity entries with JSON Patch payloads").option("--provenance","Show patch-free author, harness, instance, and extensible provenance").option("--provenance-summary","Include bounded provenance completeness counts").option("--harness <value>","Filter by recorded or vocabulary-resolved harness (repeatable)",collect).option("--agent-instance <value>","Filter by privacy-safe agent instance (repeatable)",collect).option("--provenance-filter <dimension=value>","Filter by an exact declared provenance value (repeatable)",collect).option("--stream [mode]","Emit line-delimited JSON rows (requires --json). Optional mode: rows|ndjson|jsonl").description("Show recent activity across items.").action(runActivityAction)}export{registerHistoryActivityCommand};
2
2
  //# sourceMappingURL=register-history-activity.js.map
@@ -1,3 +1,3 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1eaec30c-3460-57c1-ae4c-475a44278426")}catch(e2){}})();import{runHistoryAttest}from"../sdk/history/attestation-command.js";import{EXIT_CODE,PmCliError,resolveCliBulkIdsInput,splitCommaList}from"../sdk/runtime-primitives.js";import{assertHistoryCompactTarget,runHistoryCompact,runHistoryCompactBulk}from"./commands/history-compact.js";import{runHistoryRedact}from"./commands/history-redact.js";import{assertHistoryRepairTarget,runHistoryRepair,runHistoryRepairAll}from"./commands/history-repair.js";import{runRestore}from"./commands/restore.js";import{collect,getGlobalOptions,invalidateSearchCachesForMutation,printError,printResult,readOptionString,setActiveCommandResult,writeStdout}from"./registration-helpers.js";function parseNonNegativeIntFlag(raw,flag){if(typeof raw!=="string"){return void 0}const parsed=Number.parseInt(raw,10);if(!/^\d+$/.test(raw.trim())||!Number.isSafeInteger(parsed)){throw new PmCliError(`history-compact ${flag} must be a non-negative integer.`,EXIT_CODE.USAGE)}return parsed}async function runHistoryCompactAction(id,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();const idsValue=await resolveCliBulkIdsInput(readOptionString(options,"ids"));const ids=idsValue===void 0?void 0:splitCommaList(idsValue);const allOver=parseNonNegativeIntFlag(options.allOver,"--all-over");const minEntries=parseNonNegativeIntFlag(options.minEntries,"--min-entries");if(options.closed===true&&options.allStreams===true){throw new PmCliError("history-compact: --closed and --all-streams are mutually exclusive; pick one lifecycle scope.",EXIT_CODE.USAGE)}const scope=options.closed===true?"closed":options.allStreams===true?"all-streams":void 0;const isBulk=ids!==void 0||allOver!==void 0||scope!==void 0;if(isBulk&&typeof options.before==="string"){throw new PmCliError("history-compact: --before applies only in single-id mode (bulk mode always compacts full streams).",EXIT_CODE.USAGE)}assertHistoryCompactTarget(id,{ids,allOver,scope});if(id!==void 0&&minEntries!==void 0){throw new PmCliError("history-compact: --min-entries applies only in bulk mode (single-id mode compacts the named stream).",EXIT_CODE.USAGE)}if(id===void 0){const result=await runHistoryCompactBulk({ids,scope,allOver,minEntries,dryRun:options.dryRun===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force)},globalOptions);printResult(result,globalOptions);if(result.totals.items_errored>0){process.exitCode=EXIT_CODE.GENERIC_FAILURE}}else{const result=await runHistoryCompact(id,{before:readOptionString(options,"before"),dryRun:options.dryRun===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force)},globalOptions);printResult(result,globalOptions)}if(globalOptions.profile){printError(`profile:command=history-compact took_ms=${Date.now()-startedAt}`)}}async function runRestoreAction(id,target,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();const result=await runRestore(id,target,{author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force)},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result);printResult(result,globalOptions);if(globalOptions.profile){printError(`profile:command=restore took_ms=${Date.now()-startedAt}`)}}async function runHistoryAttestAction(options,command){const global2=getGlobalOptions(command);const result=await runHistoryAttest({verify:readOptionString(options,"verify"),output:readOptionString(options,"output"),hashAlgorithm:readOptionString(options,"hashAlgorithm")},global2);if("format"in result){setActiveCommandResult(result);if(!global2.quiet)writeStdout(`${JSON.stringify(result,null,2)}
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="420952ed-9a04-55dd-bcb8-804d81582002")}catch(e2){}})();import{runHistoryAttest}from"../sdk/history/attestation-command.js";import{EXIT_CODE,PmCliError,resolveCliBulkIdsInput,splitCommaList}from"../sdk/runtime-primitives.js";import{assertHistoryCompactTarget,runHistoryCompact,runHistoryCompactBulk}from"./commands/history/history-compact.js";import{runHistoryRedact}from"./commands/history/history-redact.js";import{assertHistoryRepairTarget,runHistoryRepair,runHistoryRepairAll}from"./commands/history/history-repair.js";import{runRestore}from"./commands/history/restore.js";import{collect,getGlobalOptions,invalidateSearchCachesForMutation,printError,printResult,readOptionString,setActiveCommandResult,writeStdout}from"./registration-helpers.js";function parseNonNegativeIntFlag(raw,flag){if(typeof raw!=="string"){return void 0}const parsed=Number.parseInt(raw,10);if(!/^\d+$/.test(raw.trim())||!Number.isSafeInteger(parsed)){throw new PmCliError(`history-compact ${flag} must be a non-negative integer.`,EXIT_CODE.USAGE)}return parsed}async function runHistoryCompactAction(id,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();const idsValue=await resolveCliBulkIdsInput(readOptionString(options,"ids"));const ids=idsValue===void 0?void 0:splitCommaList(idsValue);const allOver=parseNonNegativeIntFlag(options.allOver,"--all-over");const minEntries=parseNonNegativeIntFlag(options.minEntries,"--min-entries");if(options.closed===true&&options.allStreams===true){throw new PmCliError("history-compact: --closed and --all-streams are mutually exclusive; pick one lifecycle scope.",EXIT_CODE.USAGE)}const scope=options.closed===true?"closed":options.allStreams===true?"all-streams":void 0;const isBulk=ids!==void 0||allOver!==void 0||scope!==void 0;if(isBulk&&typeof options.before==="string"){throw new PmCliError("history-compact: --before applies only in single-id mode (bulk mode always compacts full streams).",EXIT_CODE.USAGE)}assertHistoryCompactTarget(id,{ids,allOver,scope});if(id!==void 0&&minEntries!==void 0){throw new PmCliError("history-compact: --min-entries applies only in bulk mode (single-id mode compacts the named stream).",EXIT_CODE.USAGE)}if(id===void 0){const result=await runHistoryCompactBulk({ids,scope,allOver,minEntries,dryRun:options.dryRun===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force)},globalOptions);printResult(result,globalOptions);if(result.totals.items_errored>0){process.exitCode=EXIT_CODE.GENERIC_FAILURE}}else{const result=await runHistoryCompact(id,{before:readOptionString(options,"before"),dryRun:options.dryRun===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force)},globalOptions);printResult(result,globalOptions)}if(globalOptions.profile){printError(`profile:command=history-compact took_ms=${Date.now()-startedAt}`)}}async function runRestoreAction(id,target,options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();const result=await runRestore(id,target,{author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force)},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result);printResult(result,globalOptions);if(globalOptions.profile){printError(`profile:command=restore took_ms=${Date.now()-startedAt}`)}}async function runHistoryAttestAction(options,command){const global2=getGlobalOptions(command);const result=await runHistoryAttest({verify:readOptionString(options,"verify"),output:readOptionString(options,"output"),hashAlgorithm:readOptionString(options,"hashAlgorithm")},global2);if("format"in result){setActiveCommandResult(result);if(!global2.quiet)writeStdout(`${JSON.stringify(result,null,2)}
2
2
  `)}else{printResult(result,global2)}if("ok"in result&&!result.ok)process.exitCode=EXIT_CODE.GENERIC_FAILURE}function registerHistoryMaintenanceCommands(parent,native){parent.command(native?"attest":"history-attest",{hidden:!native}).summary("Export or verify history proof.").option("--verify <file>","Compare retained streams with a detached JSON proof").option("--output <file>","Create a proof file and return a compact receipt").option("--hash-algorithm <name>","Bundle digest algorithm: sha256 (default) or sha512").description("Export exact-byte history commitments, or verify an independently retained proof without tracker writes.").action(runHistoryAttestAction);parent.command("restore",{hidden:!native}).summary("Restore a version.").argument("<id>","Item id").argument("<target>","Restore target timestamp or version number").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership/lock override").description("Restore an item to an earlier timestamp or version.").action(runRestoreAction);parent.command(native?"redact":"history-redact",{hidden:!native}).summary("Redact sensitive values.").argument("<id>","Item id").option("--literal <value>","Literal string to redact (repeatable)",collect).option("--regex <value>","Regex pattern to redact (repeatable; accepts /pattern/flags or raw pattern)",collect).option("--replacement <value>",'Replacement string (default: "[redacted]")').option("--dry-run","Preview redaction impact without writing item/history files").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the redaction marker entry").option("--force","Force ownership/lock override").description("Redact sensitive literals/patterns from an item history stream and recompute hashes.").action(async(id,options,command)=>{const globalOptions=getGlobalOptions(command);const startedAt=Date.now();const literal=Array.isArray(options.literal)?options.literal:void 0;const regex=Array.isArray(options.regex)?options.regex:void 0;const result=await runHistoryRedact(id,{literal,regex,replacement:readOptionString(options,"replacement"),dryRun:options.dryRun===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force)},globalOptions);if(result.changed&&!result.dry_run){await invalidateSearchCachesForMutation(globalOptions,result)}printResult(result,globalOptions);if(globalOptions.profile){printError(`profile:command=history-redact took_ms=${Date.now()-startedAt}`)}});parent.command(native?"repair":"history-repair",{hidden:!native}).summary("Repair drift.").argument("[id]","Item id (omit with --all)").option("--salvage-tail","Recover invalid tail; requires verified prefix").option("--all","Scan every stream for drift and repair each drifted stream in one audited pass").option("--dry-run","Preview the re-anchor impact without writing the history file").option("--normalize-provenance","Remove invalid provenance; return aggregate-only evidence").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the repair marker entry").option("--force","Force ownership/lock override").description("Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.").action(async(id,options,command)=>{const globalOptions=getGlobalOptions(command);const startedAt=Date.now();const all=options.all===true;assertHistoryRepairTarget(id,all);const repairOptions={dryRun:options.dryRun===true,author:readOptionString(options,"author"),message:readOptionString(options,"message"),force:Boolean(options.force),normalizeProvenance:options.normalizeProvenance===true,salvageTail:options.salvageTail===true};if(all){const result=await runHistoryRepairAll(repairOptions,globalOptions);printResult(result,globalOptions);if(result.totals.failed>0){process.exitCode=EXIT_CODE.GENERIC_FAILURE}}else{const result=await runHistoryRepair(id,repairOptions,globalOptions);printResult(result,globalOptions)}if(globalOptions.profile){printError(`profile:command=history-repair took_ms=${Date.now()-startedAt}`)}});parent.command(native?"compact":"history-compact",{hidden:!native}).summary("Compact streams.").argument("[id]","Item id (omit when using a bulk selector)").option("--before <value>","Compact entries strictly before this version number or ISO timestamp (single-id mode only)").option("--ids <value>","Bulk IDs: comma/newline text, - stdin, or @path file").option("--all-over <n>","Bulk: compact every stream with more than N entries").option("--closed","Bulk: compact only closed (terminal) items' streams").option("--all-streams","Bulk: compact every history stream regardless of lifecycle state").option("--min-entries <n>","Bulk: skip streams with at most N entries (already compact; default 3)").option("--dry-run","Preview compaction impact without writing the history file").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the compaction marker entry").option("--force","Force ownership/lock override").description("Compact item history streams into a synthetic baseline plus retained tail entries. Pass an item id for one stream, or a bulk selector (--ids/--all-over/--closed/--all-streams) to compact many.").action(runHistoryCompactAction)}export{registerHistoryMaintenanceCommands};
3
3
  //# sourceMappingURL=register-history-maintenance.js.map
@@ -1,4 +1,4 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ac6d22dc-008e-58bb-933e-e8366cae0c87")}catch(e2){}})();import{EXIT_CODE,PmCliError,readSettings,renderRowsAsCsv,renderRowsAsTable,resolvePmRoot}from"../sdk/runtime-primitives.js";import{renderPmCommandAliasMigrationHint,resolvePmCommandAlias}from"../sdk/cli-contracts.js";import{EVAL_QUERY_SET_SCHEMA_ID}from"../sdk/eval.js";import{applyContextIntentProjection}from"../sdk/context-intent-contracts.js";import{renderPmClosedDomainHelp}from"../sdk/agent/closed-domain-contracts.js";import{serializeNdjsonRows,serializeNdjsonStream}from"../sdk/output.js";import{listMutationEvents,subscribeMutationEventBatches,subscribeMutationEvents}from"../sdk/mutation-events.js";import{registerHistoryActivityCommand}from"./register-history-activity.js";import{registerHistoryMaintenanceCommands}from"./register-history-maintenance.js";import{runAggregate}from"./commands/aggregate.js";import{renderContextMarkdown,runContext,resolveContextOutputFormat}from"./commands/context.js";import{runEval}from"./commands/eval.js";import{runGet}from"./commands/get.js";import{runGraph}from"./commands/graph.js";import{runHistory}from"./commands/history.js";import{runList}from"./commands/list.js";import{LIST_COMMAND_DEFAULT_PROJECTIONS}from"../sdk/query/list.js";import{renderNextMarkdown,runNext,resolveNextOutputFormat}from"./commands/next.js";import{runSearch}from"./commands/search.js";import{addHiddenOption,collect,getGlobalOptions,normalizeAggregateOptions,normalizeContextOptions,normalizeListOptions,normalizeNextOptions,normalizeSearchKeywordsInput,normalizeSearchOptions,printError,printListJsonStream,printResult,setActiveCommandResult,writeStdout}from"./registration-helpers.js";function shouldRegisterListQueryCommand(commandName,commandFilter){if(!commandFilter||commandFilter.size===0){return true}if(commandName==="context"){return commandFilter.has("context")||commandFilter.has("ctx")}return commandFilter.has(commandName)}function parseListFormat(rawFormat){if(rawFormat===void 0){return void 0}if(typeof rawFormat!=="string"){throw new PmCliError("List --format must be one of csv|table|json|ndjson|toon",EXIT_CODE.USAGE)}const normalized=rawFormat.trim().toLowerCase();if(normalized==="csv"||normalized==="table"||normalized==="json"||normalized==="ndjson"||normalized==="toon"){return normalized}throw new PmCliError("List --format must be one of csv|table|json|ndjson|toon",EXIT_CODE.USAGE)}function resolveReadCommandOutputFormat(commandLabel,rawFormat,globalOptions,allowNdjson=false){if(rawFormat===void 0){return globalOptions}if(typeof rawFormat!=="string"){throw new PmCliError(`${commandLabel} --format must be one of ${allowNdjson?"json|ndjson|toon":"json|toon"}`,EXIT_CODE.USAGE)}const normalized=rawFormat.trim().toLowerCase();if(normalized!=="json"&&(normalized!=="ndjson"||!allowNdjson)&&normalized!=="toon"){throw new PmCliError(`${commandLabel} --format must be one of ${allowNdjson?"json|ndjson|toon":"json|toon"}`,EXIT_CODE.USAGE)}if(globalOptions.json===true&&normalized==="toon"){throw new PmCliError(`${commandLabel} cannot combine --json with --format toon`,EXIT_CODE.USAGE)}return{...globalOptions,json:normalized==="json"||normalized==="ndjson"}}function applyDefaultListProjection(listOptions,commandName){if(LIST_COMMAND_DEFAULT_PROJECTIONS[commandName]==="brief"&&listOptions.includeBody!==true&&listOptions.compact!==true&&listOptions.brief!==true&&listOptions.full!==true&&listOptions.fields===void 0){listOptions.brief=true}}function registerContentAndGovernanceFilters(command){command.option("--has-notes","Show only items that have notes").option("--has-learnings","Show only items that have learnings").option("--has-files","Show only items that have linked files").option("--has-docs","Show only items that have linked docs").option("--has-tests","Show only items that have linked tests").option("--has-comments","Show only items that have comments").option("--has-deps","Show only items that have dependencies").option("--has-body","Show only items that have a non-empty body").option("--has-linked-command","Show only items whose linked tests carry a runnable command").option("--no-notes","Show only items that have no notes").option("--no-learnings","Show only items that have no learnings").option("--no-files","Show only items that have no linked files").option("--filter-files-missing","Alias for --no-files").option("--no-docs","Show only items that have no linked docs").option("--filter-docs-missing","Alias for --no-docs").option("--no-tests","Show only items that have no linked tests").option("--no-comments","Show only items that have no comments").option("--no-deps","Show only items that have no dependencies").option("--empty-body","Show only items with an empty body").option("--no-linked-command","Show only items whose linked tests carry no runnable command").option("--filter-reviewer-missing","Show only items missing reviewer").option("--filter-risk-missing","Show only items missing risk").option("--filter-confidence-missing","Show only items missing confidence").option("--filter-sprint-missing","Show only items missing sprint").option("--filter-release-missing","Show only items missing release")}const CANONICAL_LIST_STATUS_VARIANTS={draft:{name:"list-draft",dependencyBlocked:false},open:{name:"list-open",dependencyBlocked:false},in_progress:{name:"list-in-progress",dependencyBlocked:false},blocked:{name:"list-blocked",dependencyBlocked:true},closed:{name:"list-closed",dependencyBlocked:false},canceled:{name:"list-canceled",dependencyBlocked:false}};function resolveRegisteredListOutputContext(options,globalOptions){const streamMode=options.stream===true;const listFormat=parseListFormat(options.format);const tabular=listFormat==="csv"||listFormat==="table";const effectiveGlobal=listFormat==="json"||listFormat==="ndjson"||listFormat==="toon"?resolveReadCommandOutputFormat("List",options.format,globalOptions,true):globalOptions;if(streamMode&&!effectiveGlobal.json){throw new PmCliError("--stream requires --json output mode.",EXIT_CODE.USAGE)}if((tabular||listFormat==="ndjson")&&streamMode){throw new PmCliError("--format csv|table|ndjson cannot be combined with --stream.",EXIT_CODE.USAGE)}return{streamMode,listFormat,effectiveGlobal}}function renderRegisteredListResult(commandName,result,output){if(output.listFormat==="csv"||output.listFormat==="table"){setActiveCommandResult(result);const rows=result.items;const rendered=output.listFormat==="csv"?renderRowsAsCsv(rows):renderRowsAsTable(rows);if(!output.effectiveGlobal.quiet&&rendered.length>0){writeStdout(`${rendered}
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="09792b14-2cd8-5e06-ab88-0dc661dfdf96")}catch(e2){}})();import{EXIT_CODE,PmCliError,readSettings,renderRowsAsCsv,renderRowsAsTable,resolvePmRoot}from"../sdk/runtime-primitives.js";import{renderPmCommandAliasMigrationHint,resolvePmCommandAlias}from"../sdk/cli-contracts.js";import{EVAL_QUERY_SET_SCHEMA_ID}from"../sdk/eval.js";import{applyContextIntentProjection}from"../sdk/context-intent-contracts.js";import{renderPmClosedDomainHelp}from"../sdk/agent/closed-domain-contracts.js";import{serializeNdjsonRows,serializeNdjsonStream}from"../sdk/output.js";import{listMutationEvents,subscribeMutationEventBatches,subscribeMutationEvents}from"../sdk/mutation-events.js";import{registerHistoryActivityCommand}from"./register-history-activity.js";import{registerHistoryMaintenanceCommands}from"./register-history-maintenance.js";import{runAggregate}from"./commands/query/aggregate.js";import{renderContextMarkdown,runContext,resolveContextOutputFormat}from"./commands/query/context.js";import{runEval}from"./commands/query/eval.js";import{runGet}from"./commands/query/get.js";import{runGraph}from"./commands/query/graph.js";import{runHistory}from"./commands/history/history.js";import{runList}from"./commands/query/list.js";import{LIST_COMMAND_DEFAULT_PROJECTIONS}from"../sdk/query/list.js";import{renderNextMarkdown,runNext,resolveNextOutputFormat}from"./commands/query/next.js";import{runSearch}from"./commands/query/search.js";import{addHiddenOption,collect,getGlobalOptions,normalizeAggregateOptions,normalizeContextOptions,normalizeListOptions,normalizeNextOptions,normalizeSearchKeywordsInput,normalizeSearchOptions,printError,printListJsonStream,printResult,setActiveCommandResult,writeStdout}from"./registration-helpers.js";function shouldRegisterListQueryCommand(commandName,commandFilter){if(!commandFilter||commandFilter.size===0){return true}if(commandName==="context"){return commandFilter.has("context")||commandFilter.has("ctx")}return commandFilter.has(commandName)}function parseListFormat(rawFormat){if(rawFormat===void 0){return void 0}if(typeof rawFormat!=="string"){throw new PmCliError("List --format must be one of csv|table|json|ndjson|toon",EXIT_CODE.USAGE)}const normalized=rawFormat.trim().toLowerCase();if(normalized==="csv"||normalized==="table"||normalized==="json"||normalized==="ndjson"||normalized==="toon"){return normalized}throw new PmCliError("List --format must be one of csv|table|json|ndjson|toon",EXIT_CODE.USAGE)}function resolveReadCommandOutputFormat(commandLabel,rawFormat,globalOptions,allowNdjson=false){if(rawFormat===void 0){return globalOptions}if(typeof rawFormat!=="string"){throw new PmCliError(`${commandLabel} --format must be one of ${allowNdjson?"json|ndjson|toon":"json|toon"}`,EXIT_CODE.USAGE)}const normalized=rawFormat.trim().toLowerCase();if(normalized!=="json"&&(normalized!=="ndjson"||!allowNdjson)&&normalized!=="toon"){throw new PmCliError(`${commandLabel} --format must be one of ${allowNdjson?"json|ndjson|toon":"json|toon"}`,EXIT_CODE.USAGE)}if(globalOptions.json===true&&normalized==="toon"){throw new PmCliError(`${commandLabel} cannot combine --json with --format toon`,EXIT_CODE.USAGE)}return{...globalOptions,json:normalized==="json"||normalized==="ndjson"}}function applyDefaultListProjection(listOptions,commandName){if(LIST_COMMAND_DEFAULT_PROJECTIONS[commandName]==="brief"&&listOptions.includeBody!==true&&listOptions.compact!==true&&listOptions.brief!==true&&listOptions.full!==true&&listOptions.fields===void 0){listOptions.brief=true}}function registerContentAndGovernanceFilters(command){command.option("--has-notes","Show only items that have notes").option("--has-learnings","Show only items that have learnings").option("--has-files","Show only items that have linked files").option("--has-docs","Show only items that have linked docs").option("--has-tests","Show only items that have linked tests").option("--has-comments","Show only items that have comments").option("--has-deps","Show only items that have dependencies").option("--has-body","Show only items that have a non-empty body").option("--has-linked-command","Show only items whose linked tests carry a runnable command").option("--no-notes","Show only items that have no notes").option("--no-learnings","Show only items that have no learnings").option("--no-files","Show only items that have no linked files").option("--filter-files-missing","Alias for --no-files").option("--no-docs","Show only items that have no linked docs").option("--filter-docs-missing","Alias for --no-docs").option("--no-tests","Show only items that have no linked tests").option("--no-comments","Show only items that have no comments").option("--no-deps","Show only items that have no dependencies").option("--empty-body","Show only items with an empty body").option("--no-linked-command","Show only items whose linked tests carry no runnable command").option("--filter-reviewer-missing","Show only items missing reviewer").option("--filter-risk-missing","Show only items missing risk").option("--filter-confidence-missing","Show only items missing confidence").option("--filter-sprint-missing","Show only items missing sprint").option("--filter-release-missing","Show only items missing release")}const CANONICAL_LIST_STATUS_VARIANTS={draft:{name:"list-draft",dependencyBlocked:false},open:{name:"list-open",dependencyBlocked:false},in_progress:{name:"list-in-progress",dependencyBlocked:false},blocked:{name:"list-blocked",dependencyBlocked:true},closed:{name:"list-closed",dependencyBlocked:false},canceled:{name:"list-canceled",dependencyBlocked:false}};function resolveRegisteredListOutputContext(options,globalOptions){const streamMode=options.stream===true;const listFormat=parseListFormat(options.format);const tabular=listFormat==="csv"||listFormat==="table";const effectiveGlobal=listFormat==="json"||listFormat==="ndjson"||listFormat==="toon"?resolveReadCommandOutputFormat("List",options.format,globalOptions,true):globalOptions;if(streamMode&&!effectiveGlobal.json){throw new PmCliError("--stream requires --json output mode.",EXIT_CODE.USAGE)}if((tabular||listFormat==="ndjson")&&streamMode){throw new PmCliError("--format csv|table|ndjson cannot be combined with --stream.",EXIT_CODE.USAGE)}return{streamMode,listFormat,effectiveGlobal}}function renderRegisteredListResult(commandName,result,output){if(output.listFormat==="csv"||output.listFormat==="table"){setActiveCommandResult(result);const rows=result.items;const rendered=output.listFormat==="csv"?renderRowsAsCsv(rows):renderRowsAsTable(rows);if(!output.effectiveGlobal.quiet&&rendered.length>0){writeStdout(`${rendered}
2
2
  `)}}else if(output.listFormat==="ndjson"){setActiveCommandResult(result);const rendered=serializeNdjsonRows(result.items);if(!output.effectiveGlobal.quiet&&rendered.length>0){writeStdout(`${rendered}
3
3
  `)}}else if(output.streamMode){printListJsonStream(commandName,result,output.effectiveGlobal)}else{printResult(result,output.effectiveGlobal)}}async function runRegisteredListCommand(params){const parsedGlobalOptions=getGlobalOptions(params.actionCommand);const globalOptions=params.aliasContract?{...parsedGlobalOptions,command:params.aliasContract.canonical}:parsedGlobalOptions;const startedAt=Date.now();if(params.aliasContract?.lifecycle==="deprecated"){const deprecationHints=await readSettings(resolvePmRoot(process.cwd(),globalOptions.path)).then(settings=>settings.ux.deprecation_hints);if(deprecationHints){printError(renderPmCommandAliasMigrationHint(params.aliasContract))}}const intentOptions=applyContextIntentProjection("list",params.options);const listOptions=normalizeListOptions(intentOptions);const selection=resolveRegisteredListSelection(params,listOptions);const{effectiveName,effectiveStatus,effectiveDependencyBlocked,effectiveExcludeTerminal}=selection;applyDefaultListProjection(listOptions,effectiveName);Object.assign(listOptions,{projectionCommand:effectiveName});if(effectiveExcludeTerminal)listOptions.excludeTerminal=true;listOptions.dependencyBlocked=effectiveDependencyBlocked;const output=resolveRegisteredListOutputContext(intentOptions,globalOptions);const result=await runList(effectiveDependencyBlocked?void 0:effectiveStatus,listOptions,globalOptions);renderRegisteredListResult("list",result,output);if(globalOptions.profile){printError(`profile:command=list took_ms=${Date.now()-startedAt}`)}}function resolveRegisteredListSelection(params,listOptions){let effectiveName=params.name;let effectiveStatus=params.status;let effectiveDependencyBlocked=params.dependencyBlocked===true;let effectiveExcludeTerminal=params.excludeTerminal===true;const requestedStatus=listOptions.status?.trim().toLowerCase();const requestedVariant=params.name==="list"&&requestedStatus!==void 0?CANONICAL_LIST_STATUS_VARIANTS[requestedStatus]:void 0;if(params.name==="list"){if(params.options.all===true||requestedStatus==="all"){effectiveName="list-all";effectiveExcludeTerminal=false;listOptions.status=void 0}else if(requestedStatus!==void 0&&requestedVariant!==void 0){effectiveName=requestedVariant.name;effectiveStatus=requestedStatus;effectiveDependencyBlocked=requestedVariant.dependencyBlocked;effectiveExcludeTerminal=false;listOptions.status=void 0}}if(effectiveName==="list-open"||effectiveName==="list-in-progress"){listOptions.lifecycleBucket=effectiveName==="list-open"?"open":"in_progress";effectiveStatus=void 0}return{effectiveName,effectiveStatus,effectiveDependencyBlocked,effectiveExcludeTerminal}}function registerListCommand(program,descriptor){const{name,description,status,excludeTerminal,allowStatusFilter,dependencyBlocked,aliasContract}=descriptor;const command=program.command(name,{hidden:aliasContract?.hidden===true}).description(description);if(allowStatusFilter){command.option("--status <value>","Filter by status (repeatable or comma-separated; matches any; all selects every status)",collect)}if(name==="list"){command.option("--all","Include every lifecycle status")}command.option("--for <intent>",`Apply a declared context intent projection. ${renderPmClosedDomainHelp("list","--for")}`).option("--token-budget <n>","Override the selected intent's maximum estimated output tokens").option("--type <value>","Filter by item type (repeatable or comma-separated; matches any)",collect).option("--tag <value>","Filter by tag (repeatable or comma-separated; matches any)",collect).option("--priority <value>","Filter by priority (repeatable or comma-separated; matches any)",collect).option("--deadline-before <value>","Filter by deadline upper bound (ISO/date string or relative)").option("--deadline-after <value>","Filter by deadline lower bound (ISO/date string or relative)").option("--today","Filter to items updated since local midnight today").option("--recent","Filter to items updated in the last 7 days").option("--updated-after <value>","Updated since ISO timestamp or signed relative (-2h/-7d for past); use last-window ISO").option("--updated-before <value>","Filter by updated_at upper bound: ISO timestamp or signed relative (-2h/+1d)").option("--created-after <value>","Filter by created_at lower bound: ISO timestamp or signed relative (-2h/+1d)").option("--created-before <value>","Filter by created_at upper bound: ISO timestamp or signed relative (-2h/+1d)").option("--ids <value>","Filter by explicit item IDs (comma-separated or repeatable)").option("--assignee <value>","Filter by assignee",collect).option("--assignee-filter <value>","Filter assignee presence: assigned|unassigned").option("--parent <value>","Filter by parent item ID").option("--sprint <value>","Filter by sprint",collect).option("--release <value>","Filter by release",collect).option("--filter-ac-missing","Show only items missing acceptance_criteria").option("--filter-estimates-missing","Show only items missing estimated_minutes").option("--filter-resolution-missing","Show only terminal items missing resolution").option("--filter-metadata-missing","Show only items missing any tracked metadata (AC, estimate, or resolution)").option("--limit <n>","Alias for --output-limit; --output-budget may cap rows").option("--offset <n>","Skip the first n matching rows before limit is applied").option("--after <cursor>","Continue after an opaque next_cursor from a previous list response").option("--no-truncate","Return every matched row after the explicit status and field filters").option("--include-body","Include item body in each returned list row").option("--strict-read","Fail closed if any item document or item directory cannot be read").option("--compact","Render compact list projection fields (mutually exclusive with --brief/--full/--fields)").option("--brief","Ultra-compact output: id, status, type, title only (agent-optimized, mutually exclusive with --compact/--full/--fields)").option("--full","Render full list projection fields (mutually exclusive with --compact/--brief/--fields)").option("--fields <value>",`Render custom comma-separated list fields (mutually exclusive with --compact/--brief/--full). ${renderPmClosedDomainHelp(name,"--fields")}`).option("--sort <value>","Sort field: priority|deadline|updated_at|created_at|title|parent (aliases: updated, created)").option("--order <value>","Sort order: asc|desc (requires --sort)").option("--tree","Render rows in parent/child tree order").option("--tree-depth <n>","Maximum recursion depth with --tree (0 keeps root rows only)").option("--format <value>","Output render mode: csv|table (human export) or json|ndjson|toon (machine output override)").option("--stream","Emit line-delimited JSON rows (requires --json)");registerContentAndGovernanceFilters(command);command.action(async(options,actionCommand)=>{await runRegisteredListCommand({name,status,excludeTerminal,dependencyBlocked,options,actionCommand,aliasContract})});addHiddenOption(command,"--tags <value>","Alias for --tag");addHiddenOption(command,"--assignee_filter <value>","Alias for --assignee-filter");addHiddenOption(command,"--tree_depth <n>","Alias for --tree-depth");addHiddenOption(command,"--token_budget <n>","Alias for --token-budget");addHiddenOption(command,"--filter-estimate-missing","Alias for --filter-estimates-missing")}async function runAggregateAction(options,command){const globalOptions=getGlobalOptions(command);const startedAt=Date.now();const result=await runAggregate(normalizeAggregateOptions(options),globalOptions);printResult(result,globalOptions);if(globalOptions.profile){printError(`profile:command=aggregate took_ms=${Date.now()-startedAt}`)}}async function runContextAction(options,actionCommand){const globalOptions=getGlobalOptions(actionCommand);const startedAt=Date.now();const normalized=normalizeContextOptions(applyContextIntentProjection("context",options));const result=await runContext(normalized,globalOptions);const outputFormat=resolveContextOutputFormat(normalized,globalOptions);if(outputFormat==="markdown"){if(!globalOptions.quiet){writeStdout(`${renderContextMarkdown(result)}
4
4
  `)}}else if(outputFormat==="ndjson"){setActiveCommandResult(result);const rendered=serializeNdjsonRows([...result.high_level,...result.low_level,...result.blocked_fallback]);if(!globalOptions.quiet&&rendered.length>0){writeStdout(`${rendered}
@@ -1,4 +1,4 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c890e43c-fed1-503d-8f1d-45a2776693f2")}catch(e2){}})();import{resolveBodyFileContent,resolveCliBulkIdsInput,EXIT_CODE,PmCliError,createUnknownSubcommandError}from"../sdk/runtime-primitives.js";import{CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,MERGE_SUBCOMMAND_VALUES,PLAN_CREATE_METADATA_PARAMETER_KEYS,UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS}from"../sdk/cli-contracts.js";import{BUILTIN_ITEM_TYPE_VALUES,PLAN_STEP_LINK_KIND_VALUES}from"../types/index.js";import{MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,runMergeInstall,runMergeReconcile,runMergeReceiptEvidenceReport}from"./commands/merge.js";import{runAppend}from"./commands/append.js";import{runClose}from"./commands/close.js";import{runCloseTask}from"../sdk/lifecycle/task-composition.js";import{runCloseMany}from"./commands/close-many.js";import{runCopy}from"./commands/copy.js";import{runCreate}from"./commands/create.js";import{runDelete}from"./commands/delete.js";import{runDeps}from"./commands/deps.js";import{runDocs}from"./commands/docs.js";import{runFiles,runFilesDiscover}from"./commands/files.js";import{runFocus}from"./commands/focus.js";import*as profileModule from"./commands/profile.js";import{runUpdate}from"./commands/update.js";import{runUpdateMany}from"./commands/update-many.js";import{createStdinTokenResolver,preserveMutationStdinTokenFields,preserveMutationStdinTokenLiterals}from"../sdk/runtime-primitives.js";import{resolveDescriptionStdin}from"./description-stdin.js";import{itemDocumentToMutationOptions}from"../sdk/structured-mutations.js";import{registerStructuredMutationCommands}from"./register-structured-mutation.js";import{registerHistoryMaintenanceCommands}from"./register-history-maintenance.js";import{registerHistoryAuthorAcknowledgeCommand}from"./register-history-author.js";import{PLAN_SUBCOMMANDS,runPlan}from"./commands/plan.js";import{registerAnnotationCommands}from"./register-annotations.js";import{registerFilesLookupCommand}from"./register-files-lookup.js";import{isPureSnakeCaseAlias}from"./schema-registration-helpers.js";import{registerSchemaCommand}from"./schema/registration.js";import{stringArrayOption}from"./option-values.js";import{looksLikeSchemaSubcommandTypo,parseSchemaOrderOption}from"./schema-registration-helpers.js";const BUILTIN_TYPE_NAME_LOOKUP=new Set(BUILTIN_ITEM_TYPE_VALUES.map(value=>value.toLowerCase()));const PLAN_CREATE_METADATA_OPTION_TARGETS=new Set(PLAN_CREATE_METADATA_PARAMETER_KEYS.map(key=>key==="estimate"?"estimatedMinutes":key));import{collect,applyActiveCommandResultService,addHiddenOption,addHiddenOptions,extractUpdateManyMutationOptionSource,formatHookWarnings,getGlobalOptions,invalidateSearchCachesForMutation,normalizeCreateOptions,normalizeUpdateOptions,printError,printResult,readOptionString,writeStdout}from"./registration-helpers.js";async function dispatchProfileSubcommand(profile,subcommand,name,options,globalOptions){switch(subcommand){case"list":return profile.runProfileList();case"show":return profile.runProfileShow(name);case"lint":return profile.runProfileLint(name);default:return profile.runProfileApply(name,{dryRun:options.dryRun===true,author:typeof options.author==="string"?options.author:void 0,force:options.force===true},globalOptions)}}function renderProfileResultHuman(profile,result){switch(result.action){case"list":writeStdout(`${profile.formatProfileListHuman(result)}
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3418cfe8-745d-5f3c-9d14-8293e7296875")}catch(e2){}})();import{resolveBodyFileContent,resolveCliBulkIdsInput,EXIT_CODE,PmCliError,createUnknownSubcommandError}from"../sdk/runtime-primitives.js";import{CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,MERGE_SUBCOMMAND_VALUES,PLAN_CREATE_METADATA_PARAMETER_KEYS,UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS}from"../sdk/cli-contracts.js";import{BUILTIN_ITEM_TYPE_VALUES,PLAN_STEP_LINK_KIND_VALUES}from"../types/index.js";import{MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,runMergeInstall,runMergeReconcile,runMergeReceiptEvidenceReport}from"./commands/workspace/merge.js";import{runAppend}from"./commands/lifecycle/append.js";import{runClose}from"./commands/lifecycle/close.js";import{runCloseTask}from"../sdk/lifecycle/task-composition.js";import{runCloseMany}from"./commands/lifecycle/close-many.js";import{runCopy}from"./commands/lifecycle/copy.js";import{runCreate}from"./commands/lifecycle/create.js";import{runDelete}from"./commands/lifecycle/delete.js";import{runDeps}from"./commands/query/deps.js";import{runDocs}from"./commands/annotations/docs.js";import{runFiles,runFilesDiscover}from"./commands/annotations/files.js";import{runFocus}from"./commands/lifecycle/focus.js";import*as profileModule from"./commands/workspace/profile.js";import{runUpdate}from"./commands/lifecycle/update.js";import{runUpdateMany}from"./commands/lifecycle/update-many.js";import{createStdinTokenResolver,preserveMutationStdinTokenFields,preserveMutationStdinTokenLiterals}from"../sdk/runtime-primitives.js";import{resolveDescriptionStdin}from"./description-stdin.js";import{itemDocumentToMutationOptions}from"../sdk/structured-mutations.js";import{registerStructuredMutationCommands}from"./register-structured-mutation.js";import{registerHistoryMaintenanceCommands}from"./register-history-maintenance.js";import{registerHistoryAuthorAcknowledgeCommand}from"./register-history-author.js";import{PLAN_SUBCOMMANDS,runPlan}from"./commands/lifecycle/plan.js";import{registerAnnotationCommands}from"./register-annotations.js";import{registerFilesLookupCommand}from"./register-files-lookup.js";import{isPureSnakeCaseAlias}from"./schema-registration-helpers.js";import{registerSchemaCommand}from"./schema/registration.js";import{stringArrayOption}from"./option-values.js";import{looksLikeSchemaSubcommandTypo,parseSchemaOrderOption}from"./schema-registration-helpers.js";const BUILTIN_TYPE_NAME_LOOKUP=new Set(BUILTIN_ITEM_TYPE_VALUES.map(value=>value.toLowerCase()));const PLAN_CREATE_METADATA_OPTION_TARGETS=new Set(PLAN_CREATE_METADATA_PARAMETER_KEYS.map(key=>key==="estimate"?"estimatedMinutes":key));import{collect,applyActiveCommandResultService,addHiddenOption,addHiddenOptions,extractUpdateManyMutationOptionSource,formatHookWarnings,getGlobalOptions,invalidateSearchCachesForMutation,normalizeCreateOptions,normalizeUpdateOptions,printError,printResult,readOptionString,writeStdout}from"./registration-helpers.js";async function dispatchProfileSubcommand(profile,subcommand,name,options,globalOptions){switch(subcommand){case"list":return profile.runProfileList();case"show":return profile.runProfileShow(name);case"lint":return profile.runProfileLint(name);default:return profile.runProfileApply(name,{dryRun:options.dryRun===true,author:typeof options.author==="string"?options.author:void 0,force:options.force===true},globalOptions)}}function renderProfileResultHuman(profile,result){switch(result.action){case"list":writeStdout(`${profile.formatProfileListHuman(result)}
2
2
  `);return;case"show":writeStdout(`${profile.formatProfileShowHuman(result)}
3
3
  `);return;case"lint":writeStdout(`${profile.formatProfileLintHuman(result)}
4
4
  `);return;default:writeStdout(`${profile.formatProfileApplyHuman(result)}