@unbrained/pm-cli 2026.11.28 → 2026.11.29

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 (190) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli/commander-usage.js +4 -4
  3. package/dist/cli/error-guidance.js +5 -5
  4. package/dist/cli/linked-resource-value-list.js +2 -0
  5. package/dist/cli-bundle/bundle-manifest.json +1 -1
  6. package/dist/cli-bundle/chunks/{chunk-YEMFOKFG.js → chunk-3AZOATC2.js} +2 -2
  7. package/dist/cli-bundle/chunks/{chunk-LMDIKSDZ.js → chunk-3E53F7QY.js} +8 -8
  8. package/dist/cli-bundle/chunks/{chunk-OFIYA3PI.js → chunk-3TK2YOVB.js} +3 -3
  9. package/dist/cli-bundle/chunks/{chunk-C4O5TZY3.js → chunk-3US5T6B2.js} +60 -60
  10. package/dist/cli-bundle/chunks/chunk-4EBHZBM2.js +2 -0
  11. package/dist/cli-bundle/chunks/{chunk-MGJMQSN4.js → chunk-4QA5O64H.js} +2 -2
  12. package/dist/cli-bundle/chunks/chunk-5EFS7K7Y.js +1 -0
  13. package/dist/cli-bundle/chunks/chunk-CNZOC6JD.js +2 -0
  14. package/dist/cli-bundle/chunks/{chunk-TWRUA2NH.js → chunk-CV2B4JUB.js} +2 -2
  15. package/dist/cli-bundle/chunks/chunk-DBASKWBO.js +2 -0
  16. package/dist/cli-bundle/chunks/{chunk-Q6BGQRCB.js → chunk-EYEQC3L2.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-O2SWNEBW.js → chunk-FRYNDVLN.js} +2 -2
  18. package/dist/cli-bundle/chunks/chunk-GSLOAEY2.js +2 -0
  19. package/dist/cli-bundle/chunks/{chunk-T7RZPIOB.js → chunk-JFPCL45G.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-CTM26LUE.js → chunk-JQHLOSSS.js} +2 -2
  21. package/dist/cli-bundle/chunks/chunk-JV7LREUF.js +3 -0
  22. package/dist/cli-bundle/chunks/chunk-K3MVVDLN.js +2 -0
  23. package/dist/cli-bundle/chunks/{chunk-6OIHST4I.js → chunk-K672XXGQ.js} +3 -3
  24. package/dist/cli-bundle/chunks/{chunk-T7UTG56V.js → chunk-KCR4NF2A.js} +3 -3
  25. package/dist/cli-bundle/chunks/chunk-L7HON3BE.js +23 -0
  26. package/dist/cli-bundle/chunks/chunk-LQEB6GSY.js +2 -0
  27. package/dist/cli-bundle/chunks/{chunk-ZXERHBMA.js → chunk-NLHNB2L3.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-FG4TNQQM.js → chunk-NRCGGNOE.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-KHFUHGL3.js → chunk-OGVSGXQX.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-CATRDGAB.js → chunk-PY6A7ULK.js} +2 -2
  31. package/dist/cli-bundle/chunks/{chunk-O2WNNIKK.js → chunk-Q6GIFUCW.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-CDUV7DFD.js → chunk-R6M5OGJH.js} +2 -2
  33. package/dist/cli-bundle/chunks/chunk-RWHS77ME.js +113 -0
  34. package/dist/cli-bundle/chunks/chunk-SV27NNXQ.js +2 -0
  35. package/dist/cli-bundle/chunks/chunk-TE6FBDHP.js +4 -0
  36. package/dist/cli-bundle/chunks/{chunk-LRGYV6QQ.js → chunk-VI3A7UZ2.js} +2 -2
  37. package/dist/cli-bundle/chunks/{chunk-E2LQ6LCJ.js → chunk-WLZ5KVM2.js} +2 -2
  38. package/dist/cli-bundle/chunks/chunk-WNB62BGK.js +10 -0
  39. package/dist/cli-bundle/chunks/chunk-X5D5YUHR.js +2 -0
  40. package/dist/cli-bundle/chunks/chunk-ZK4CY24V.js +2 -0
  41. package/dist/cli-bundle/chunks/{chunk-JQYPSABI.js → chunk-ZSBPE36C.js} +2 -2
  42. package/dist/cli-bundle/chunks/field-definition-losses-XKE4DRUA.js +2 -0
  43. package/dist/cli-bundle/chunks/{field-option-collisions-G4LQ2646.js → field-option-collisions-OZE43TOH.js} +2 -2
  44. package/dist/cli-bundle/chunks/{indexed-receipt-blobs-H3MMNXXG.js → indexed-receipt-blobs-DR3FDHND.js} +2 -2
  45. package/dist/cli-bundle/chunks/{item-revision-O7L3AA2W.js → item-revision-3WXNNFLP.js} +2 -2
  46. package/dist/cli-bundle/chunks/item-transaction-DJ5GAITL.js +2 -0
  47. package/dist/cli-bundle/chunks/linked-resource-value-list-2655COY2.js +2 -0
  48. package/dist/cli-bundle/chunks/{mutation-actor-A45DFDEO.js → mutation-actor-QOKPDYM4.js} +2 -2
  49. package/dist/cli-bundle/chunks/mutation-admission-JNJHB3E6.js +2 -0
  50. package/dist/cli-bundle/chunks/{register-list-query-FCPGG2UT.js → register-list-query-YGVUE4YZ.js} +2 -2
  51. package/dist/cli-bundle/chunks/{register-mutation-VD3JX23I.js → register-mutation-3JVZQDHH.js} +2 -2
  52. package/dist/cli-bundle/chunks/register-operations-LCHUHKRA.js +2 -0
  53. package/dist/cli-bundle/chunks/{register-setup-EWAZZWPL.js → register-setup-IJ7M3VUK.js} +2 -2
  54. package/dist/cli-bundle/chunks/runtime-schema-OAIUNQRL.js +2 -0
  55. package/dist/cli-bundle/chunks/{settlement-hook-KWBOSRDZ.js → settlement-hook-BIVNGBZF.js} +2 -2
  56. package/dist/cli-bundle/chunks/{stage-UIDZMTE5.js → stage-7BD7U2BX.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-26P6C6OO.js +2 -0
  58. package/dist/cli-bundle/focused-chunks/chunk-2CQFGJQ6.js +8 -0
  59. package/dist/cli-bundle/focused-chunks/chunk-42SU4LK3.js +2 -0
  60. package/dist/cli-bundle/focused-chunks/{chunk-7P6OGPEG.js → chunk-5NSWNLFE.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/{chunk-Y7EC2L2G.js → chunk-ACTBMSCH.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/chunk-BPBKHY6H.js +100 -0
  63. package/dist/cli-bundle/focused-chunks/{chunk-YC3PFFDE.js → chunk-BPOU2S44.js} +57 -57
  64. package/dist/cli-bundle/focused-chunks/chunk-BZ3PUUPG.js +2 -0
  65. package/dist/cli-bundle/focused-chunks/{chunk-AHCOSTL7.js → chunk-CWQLW4ZO.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/{chunk-7EKKUYN5.js → chunk-EUDAUT6T.js} +3 -3
  67. package/dist/cli-bundle/focused-chunks/chunk-GTUPHXKR.js +2 -0
  68. package/dist/cli-bundle/focused-chunks/{chunk-NGFDPEP7.js → chunk-IRYNVGKH.js} +3 -3
  69. package/dist/cli-bundle/focused-chunks/chunk-JFICNN4T.js +4 -0
  70. package/dist/cli-bundle/focused-chunks/{chunk-J4V3J5MC.js → chunk-KLOHZNJ4.js} +2 -2
  71. package/dist/cli-bundle/focused-chunks/chunk-KPASZGBL.js +2 -0
  72. package/dist/cli-bundle/focused-chunks/{chunk-Q6JCMFGU.js → chunk-KWKPX36T.js} +2 -2
  73. package/dist/cli-bundle/focused-chunks/{chunk-ZYHGQIQ7.js → chunk-LKTRICZR.js} +2 -2
  74. package/dist/cli-bundle/focused-chunks/{chunk-OEMI52ZS.js → chunk-LSVRZ4KQ.js} +2 -2
  75. package/dist/cli-bundle/focused-chunks/chunk-MYWUMVCZ.js +4 -0
  76. package/dist/cli-bundle/focused-chunks/{chunk-CQLOYNJY.js → chunk-NNLENKU7.js} +2 -2
  77. package/dist/cli-bundle/focused-chunks/chunk-NO5MUY4I.js +2 -0
  78. package/dist/cli-bundle/focused-chunks/{chunk-XVCMYFQU.js → chunk-NZA2LP4Y.js} +2 -2
  79. package/dist/cli-bundle/focused-chunks/{chunk-HCWDMFWA.js → chunk-PPCBCPIZ.js} +2 -2
  80. package/dist/cli-bundle/focused-chunks/chunk-QTV6UE2Q.js +44 -0
  81. package/dist/cli-bundle/focused-chunks/{chunk-VNU3IFBL.js → chunk-S4AC7OMI.js} +2 -2
  82. package/dist/cli-bundle/focused-chunks/{chunk-YX75PQFO.js → chunk-S5VG7RFY.js} +2 -2
  83. package/dist/cli-bundle/focused-chunks/{chunk-JD45Y2BR.js → chunk-TSZVCALS.js} +2 -2
  84. package/dist/cli-bundle/focused-chunks/{chunk-O33WUEAF.js → chunk-TX24L7RQ.js} +2 -2
  85. package/dist/cli-bundle/focused-chunks/chunk-WJAUHPXD.js +2 -0
  86. package/dist/cli-bundle/focused-chunks/{chunk-4SX2BN4V.js → chunk-XR6MLUVW.js} +2 -2
  87. package/dist/cli-bundle/focused-chunks/field-definition-losses-GGA6FUHD.js +2 -0
  88. package/dist/cli-bundle/focused-chunks/{field-option-collisions-63YQ2J3N.js → field-option-collisions-HABQYZMQ.js} +2 -2
  89. package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-PG2VJ3MB.js → indexed-receipt-blobs-EUYZJR5R.js} +2 -2
  90. package/dist/cli-bundle/focused-chunks/{item-revision-PV5O6F5Y.js → item-revision-YH5R7YPW.js} +2 -2
  91. package/dist/cli-bundle/focused-chunks/item-transaction-YZ2PUPGM.js +2 -0
  92. package/dist/cli-bundle/focused-chunks/{mutation-actor-2AAUJG2Z.js → mutation-actor-DJ2VRLKG.js} +2 -2
  93. package/dist/cli-bundle/focused-chunks/mutation-admission-3SECKVKY.js +2 -0
  94. package/dist/cli-bundle/focused-chunks/runtime-schema-IDRXWCC4.js +2 -0
  95. package/dist/cli-bundle/focused-chunks/{settlement-hook-4MGRERCT.js → settlement-hook-Q6MJQKIE.js} +2 -2
  96. package/dist/cli-bundle/focused-chunks/{stage-56RYPMBK.js → stage-FEJT2UCG.js} +2 -2
  97. package/dist/cli-bundle/main.js +26 -26
  98. package/dist/cli-bundle/sdk-authoring.js +1 -1
  99. package/dist/cli-bundle/sdk-contracts.js +1 -1
  100. package/dist/cli-bundle/sdk-core.js +1 -1
  101. package/dist/cli-bundle/sdk-governance.js +1 -1
  102. package/dist/cli-bundle/sdk-graph.js +1 -1
  103. package/dist/cli-bundle/sdk-merge.js +63 -63
  104. package/dist/cli-bundle/sdk-query.js +1 -1
  105. package/dist/cli-bundle/sdk-runtime.js +1 -1
  106. package/dist/cli-bundle/sdk-testing.js +1 -1
  107. package/dist/cli-bundle/sdk.js +1 -1
  108. package/dist/core/extensions/item-fields.d.ts +18 -1
  109. package/dist/core/extensions/item-fields.js +1 -1
  110. package/dist/core/extensions/loader.js +1 -1
  111. package/dist/core/fs/fs-utils.d.ts +8 -0
  112. package/dist/core/fs/fs-utils.js +2 -2
  113. package/dist/core/item/item-type-inspection.js +2 -0
  114. package/dist/core/item/type-registry.js +1 -1
  115. package/dist/core/schema/runtime-schema.d.ts +19 -0
  116. package/dist/core/schema/runtime-schema.js +2 -2
  117. package/dist/core/store/settings.d.ts +7 -0
  118. package/dist/core/store/settings.js +5 -5
  119. package/dist/sdk/extension-command-context.js +2 -2
  120. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  121. package/dist/sdk/governance/validate.js +1 -1
  122. package/dist/sdk/public-surface.json +1 -1
  123. package/dist/sdk/runtime/schema.js +1 -1
  124. package/dist/sdk/schema/field-definition-losses.js +1 -1
  125. package/dist/sdk/schema/schema-file-entry-losses.js +2 -0
  126. package/dist/sdk/test/execution.d.ts +9 -1
  127. package/dist/sdk/test/execution.js +4 -4
  128. package/docs/COMMANDS.md +3 -1
  129. package/docs/CONFIGURATION.md +1 -1
  130. package/docs/EXTENSIONS.md +1 -1
  131. package/docs/SDK_AUDITED_MUTATIONS.md +9 -0
  132. package/marketplace.json +1 -1
  133. package/node_modules/fast-json-patch/README.md +2 -2
  134. package/node_modules/fast-json-patch/dist/fast-json-patch.js +604 -818
  135. package/node_modules/fast-json-patch/dist/fast-json-patch.min.js +4 -8
  136. package/node_modules/fast-json-patch/package.json +14 -17
  137. package/package.json +2 -2
  138. package/packages/pm-beads/package.json +1 -1
  139. package/packages/pm-calendar/package.json +1 -1
  140. package/packages/pm-command-kit/package.json +1 -1
  141. package/packages/pm-digital-twin/package.json +1 -1
  142. package/packages/pm-governance-audit/package.json +1 -1
  143. package/packages/pm-guide-shell/package.json +1 -1
  144. package/packages/pm-kanban/package.json +1 -1
  145. package/packages/pm-lifecycle-hooks/package.json +1 -1
  146. package/packages/pm-linked-test-adapters/package.json +1 -1
  147. package/packages/pm-search-advanced/package.json +1 -1
  148. package/packages/pm-templates/package.json +1 -1
  149. package/packages/pm-todos/package.json +1 -1
  150. package/packages/pm-vcs/package.json +1 -1
  151. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  152. package/plugins/pm-claude/package.json +1 -1
  153. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  154. package/plugins/pm-codex/package.json +1 -1
  155. package/plugins/pm-codex/plugin.json +1 -1
  156. package/runtime-dependencies.json +1 -1
  157. package/dist/cli-bundle/chunks/chunk-2YD2AERA.js +0 -2
  158. package/dist/cli-bundle/chunks/chunk-54AQJTUH.js +0 -3
  159. package/dist/cli-bundle/chunks/chunk-56DKWGHE.js +0 -2
  160. package/dist/cli-bundle/chunks/chunk-56GUDMXN.js +0 -113
  161. package/dist/cli-bundle/chunks/chunk-5ECCMDSU.js +0 -2
  162. package/dist/cli-bundle/chunks/chunk-6RBD2AKU.js +0 -2
  163. package/dist/cli-bundle/chunks/chunk-D3I5AHNN.js +0 -2
  164. package/dist/cli-bundle/chunks/chunk-MO6PPUI6.js +0 -2
  165. package/dist/cli-bundle/chunks/chunk-RGE3XW3A.js +0 -2
  166. package/dist/cli-bundle/chunks/chunk-SP6CDM6B.js +0 -31
  167. package/dist/cli-bundle/chunks/chunk-WKDKBS4P.js +0 -4
  168. package/dist/cli-bundle/chunks/chunk-YLS2N4SN.js +0 -2
  169. package/dist/cli-bundle/chunks/field-definition-losses-JFMMMVTV.js +0 -2
  170. package/dist/cli-bundle/chunks/item-transaction-4XC74ULD.js +0 -2
  171. package/dist/cli-bundle/chunks/mutation-admission-SIUIMAEO.js +0 -2
  172. package/dist/cli-bundle/chunks/register-operations-KHJD4GFZ.js +0 -2
  173. package/dist/cli-bundle/chunks/runtime-schema-3RAXYNG5.js +0 -2
  174. package/dist/cli-bundle/focused-chunks/chunk-5MZXU6HB.js +0 -2
  175. package/dist/cli-bundle/focused-chunks/chunk-64DSKZJN.js +0 -100
  176. package/dist/cli-bundle/focused-chunks/chunk-A5B43EWU.js +0 -2
  177. package/dist/cli-bundle/focused-chunks/chunk-E4C6T3NL.js +0 -2
  178. package/dist/cli-bundle/focused-chunks/chunk-KMGI5GZP.js +0 -2
  179. package/dist/cli-bundle/focused-chunks/chunk-MSLRDKWL.js +0 -4
  180. package/dist/cli-bundle/focused-chunks/chunk-RBOWKXFV.js +0 -8
  181. package/dist/cli-bundle/focused-chunks/chunk-TF57RHS2.js +0 -2
  182. package/dist/cli-bundle/focused-chunks/chunk-X5ZVPFK7.js +0 -4
  183. package/dist/cli-bundle/focused-chunks/chunk-Z4FWJGQG.js +0 -2
  184. package/dist/cli-bundle/focused-chunks/chunk-ZHHFOQSL.js +0 -44
  185. package/dist/cli-bundle/focused-chunks/chunk-ZUAPUBJK.js +0 -2
  186. package/dist/cli-bundle/focused-chunks/field-definition-losses-NUZO3JCP.js +0 -2
  187. package/dist/cli-bundle/focused-chunks/item-transaction-S5QXBGAT.js +0 -2
  188. package/dist/cli-bundle/focused-chunks/mutation-admission-X7HHNERR.js +0 -2
  189. package/dist/cli-bundle/focused-chunks/runtime-schema-5J2ONRNV.js +0 -2
  190. package/node_modules/fast-json-patch/webpack.config.js +0 -63
@@ -1,3 +1,3 @@
1
- var y=["commands","renderers","hooks","schema","importers","search","parser","preflight","services"],M=2,g=Object.freeze({migration:"schema",validation:"schema"}),P=Object.freeze({version:2,capabilities:[...y],legacy_aliases:{...g}}),U=["off","warn","enforce"],Y=["off","warn","enforce"],q=["none","restricted","strict"],W=["block","warn"],X=["commands.override","commands.handler","hooks.beforecommand","hooks.beforemutation","hooks.aftercommand","hooks.onwrite","hooks.onread","hooks.onindex","schema.flags","schema.itemfields","schema.itemtypes","schema.relationshipkinds","schema.migrations","schema.profiles","parser.override","preflight.override","services.override","renderers.override","importers.importer","importers.exporter","search.provider","search.vectorstore","services.assuranceprovider"],K=["output_format","error_format","help_format","lock_acquire","lock_release","history_append","item_store_write","item_store_delete","context_relevance","command_result"];function E(){return{mode:"off",trust_mode:"off",require_provenance:!1,trusted_extensions:[],default_sandbox_profile:"none",allowed_extensions:[],blocked_extensions:[],allowed_capabilities:[],blocked_capabilities:[],allowed_surfaces:[],blocked_surfaces:[],allowed_commands:[],blocked_commands:[],allowed_actions:[],blocked_actions:[],allowed_services:[],blocked_services:[],extension_overrides:[]}}var h=["goal","objective","value","impact","outcome","why_now","parent","reviewer","risk","confidence","sprint","release","blocked_by","blocked_reason","unblock_note","reporter","severity","environment","repro_steps","resolution","expected_result","actual_result"],O=["id","title","description","type","pm_format_version","source_type","type_options","status","priority","tags","created_at","updated_at","deadline","reminders","events","closed_at","completed_at","assignee","claim_principal","source_owner","author","estimated_minutes","acceptance_criteria","deferred_fields","design","external_ref","definition_of_ready","order",...h,"affected_version","fixed_version","component","regression","customer_impact","dependencies","comments","notes","learnings","files","tests","test_runs","docs","close_reason","duplicate_of","plan_mode","plan_scope","plan_harness","plan_resume_context","plan_validation","plan_decisions","plan_discoveries","plan_steps"],N=O;var x=Object.freeze([{id:"draft",roles:["draft"]},{id:"open",roles:["active","default_open"]},{id:"in_progress",aliases:["in-progress"],roles:["active"]},{id:"blocked",roles:["blocked"]},{id:"closed",roles:["terminal","terminal_done","default_close"]},{id:"canceled",aliases:["cancelled"],roles:["terminal","terminal_canceled","default_cancel"]}]),A=Object.freeze({draft_status:"draft",open_status:"open",in_progress_status:"in_progress",blocked_status:"blocked",close_status:"closed",canceled_status:"canceled"}),z=".agents/pm",V="settings.json",$="Closed at creation via pm create",I=["","epics","features","tasks","chores","issues","schema","history","search","extensions","locks"],b=["decisions","events","reminders","milestones","meetings","plans"],Q=[...I,...b],J={Epic:"epics",Feature:"features",Task:"tasks",Chore:"chores",Issue:"issues",Decision:"decisions",Event:"events",Reminder:"reminders",Milestone:"milestones",Meeting:"meetings",Plan:"plans"},S={minimal:{ownership_enforcement:"none",create_mode_default:"progressive",close_validation_default:"off",require_close_reason:!0,parent_reference:"strict_error",metadata_profile:"core",force_required_for_stale_lock:!1,duplicate_detection_mode:"off",duplicate_detection_threshold:.8,duplicate_detection_limit:3},default:{ownership_enforcement:"warn",create_mode_default:"progressive",close_validation_default:"warn",require_close_reason:!0,parent_reference:"strict_error",metadata_profile:"core",force_required_for_stale_lock:!0,duplicate_detection_mode:"strict",duplicate_detection_threshold:.8,duplicate_detection_limit:3},strict:{ownership_enforcement:"strict",create_mode_default:"strict",close_validation_default:"strict",require_close_reason:!0,parent_reference:"strict_error",metadata_profile:"strict",force_required_for_stale_lock:!0,duplicate_detection_mode:"strict",duplicate_detection_threshold:.8,duplicate_detection_limit:3}},R=["no active blocker","ready for planned execution sequencing","work completed","work is closed"],f={blocked_reason:["no active blocker because work is closed","work is closed"],resolution:["closed with implementation evidence","closed with verification evidence","work completed and recorded","work is closed"],actual_result:["closed and recorded","work completed","work completed and recorded"]};function w(e){return e?[...e]:void 0}var Z={version:1,id_prefix:"pm-",ids:{token_length:4},author_default:"",agent_identity:{probes_enabled:!0,identity_vocabulary:{version:1,aliases:{}},harness_signals:[]},mutation_guard:{require_attributed_author:!1,secret_guard:"advise",stale_in_progress_hours:72},item_format:"toon",locks:{ttl_seconds:1800,wait_ms:3e3},checkpoints:{retention_days:14},output:{default_format:"toon"},ux:{deprecation_hints:!0},history:{missing_stream:"auto_create",compact_policy:{enabled:!1,max_entries:500,trigger:"health_warn"}},validation:{sprint_release_format:"warn",parent_reference:"warn",metadata_profile:"core",metadata_required_fields:[],lifecycle_stale_blocker_reason_patterns:[...R],lifecycle_closure_like_blocked_reason_patterns:[...f.blocked_reason],lifecycle_closure_like_resolution_patterns:[...f.resolution],lifecycle_closure_like_actual_result_patterns:[...f.actual_result],estimate_defaults_by_type:{}},governance:{preset:"minimal",...S.minimal},workflow:{definition_of_done:[]},testing:{record_results_to_items:!1,allow_untrusted_linked_tests:!1},telemetry:{enabled:!0,first_run_prompt_completed:!1,capture_level:"redacted",endpoint:"https://pm-cli.unbrained.dev/v1/events",installation_id:"",retention_days:365},agent_guidance:{prompt_completed:!1,declined:!1,declined_at:"",template_version:1,last_checked_files:[]},item_types:{definitions:[]},schema:{version:1,files:{types:"schema/types.json",statuses:"schema/statuses.json",fields:"schema/fields.json",workflows:"schema/workflows.json"},statuses:x.map(e=>({...e,aliases:w(e.aliases),roles:w(e.roles)})),fields:[],workflow:{...A},unknown_field_policy:"allow"},extensions:{enabled:[],disabled:[],policy:E()},search:{score_threshold:0,hybrid_semantic_weight:.7,max_results:50,embedding_model:"",embedding_batch_size:32,embedding_timeout_ms:3e4,scanner_max_batch_retries:3,provider:"",default_mode:"auto",mutation_refresh_policy:"semantic_configured",query_expansion:{enabled:!1,provider:""},rerank:{enabled:!1,model:"",top_k:20}},providers:{openai:{base_url:"",api_key:"",model:""},ollama:{base_url:"",model:""}},context:{default_depth:"brief",activity_limit:10,stale_threshold_days:7,next_ranking_policy:"priority_floor",sections:{hierarchy:!0,activity:!0,progress:!0,recently_created:!0,unparented:!0,blockers:!0,files:!0,workload:!0,staleness:!0,tests:!0}},vector_store:{adapter:"",collection_name:"pm_items",qdrant:{url:"",api_key:""},lancedb:{path:""}}},H={metadata:{},body:""},v={SUCCESS:0,GENERIC_FAILURE:1,USAGE:2,NOT_FOUND:3,CONFLICT:4,DEPENDENCY_FAILED:5,NO_EFFECT:6,PARTIAL_EFFECT:7},D=Object.freeze({unknown_command:"usage",unknown_option:"usage",missing_required_option:"usage",missing_required_argument:"usage",invalid_command_usage:"usage",linked_test_value_not_quoted:"usage",invalid_argument_value:"validation",health_findings:"validation",validation_findings:"validation",close_through_update:"validation",no_update_fields:"validation",unsupported_update_option:"validation",tracker_not_initialized:"validation",item_not_found:"validation",ownership_conflict:"conflict",lock_conflict:"conflict",terminal_state_conflict:"conflict",dependency_failed:"runtime",init_gitignore_unwritable:"runtime",merge_git_config_unwritable:"runtime",command_failed:"runtime",unknown_error:"runtime"});function ee(e){let t=(e??"").trim().toLowerCase();if(t.length===0)return"unknown";let o=D[t];return typeof o=="string"?o:t.includes("conflict")||t.includes("locked")?"conflict":t.startsWith("unknown_")||t.startsWith("missing_required_")?"usage":t.startsWith("invalid_")||t.endsWith("_not_found")||t.includes("validation")?"validation":t.endsWith("_error")||t.endsWith("_failed")?"runtime":"unknown"}var u=class extends Error{exitCode;code;context;constructor(t,o,s={}){super(t),this.name="PmCliError",this.exitCode=o,this.context=s,this.code=s.code}};import*as r from"node:fs/promises";import{constants as m}from"node:fs";import l from"node:path";import C from"node:crypto";var L=[10,25,50,100];async function T(e){await r.mkdir(e,{recursive:!0})}async function le(e){try{return await r.access(e),!0}catch{return!1}}function k(e){return F(e)||c(e,"ENOTDIR")}function F(e){return c(e,"ENOENT")}async function _e(e){try{return await r.readFile(e,"utf8")}catch(t){if(k(t))return null;throw t}}async function de(e,t){let o=await r.open(e,m.O_RDONLY|m.O_NOFOLLOW|m.O_NONBLOCK);try{if(!(await o.stat()).isFile())throw t;return await o.readFile("utf8")}finally{await o.close()}}function ue(e){let t=e?.replaceAll(l.sep,"/"),o=t!==void 0&&!l.posix.isAbsolute(t)&&!l.win32.isAbsolute(t)&&!t.split("/").includes(".."),s=o?t.split("/")[0]:void 0,i={"settings.json":"settings",runtime:"runtime",schema:"schema",history:"history",transactions:"transactions"},n=s===void 0?"tracker_storage":Object.hasOwn(i,s)?i[s]:"tracker_storage",_=o&&t.length>0&&t.length<=160&&t.split("/").every(a=>a!=="."&&/^[a-zA-Z0-9_.-]+$/u.test(a)),d=_?t:`${n} (entry name redacted)`;return new u(`Transaction preview requires regular files and directories. Inspect ${d} relative to the selected tracker root.`,v.USAGE,{code:"transaction_preview_non_regular_file",preview_storage:{storage_area:n,..._?{relative_entry:t}:{},entry_redacted:!_},required:"regular files and directories within the configured tracker storage",why:"Preview does not follow linked entries or read special files.",nextSteps:[`Inspect ${d} within the selected tracker for links, directories used as files, or special files; do not follow link targets.`,"Restore the intended regular files and directories, then retry the original dry-run command."]})}async function p(e){try{await r.unlink(e)}catch{}}async function pe(e,t,o={}){let s=l.dirname(e);o.createParentDirectories!==!1&&await T(s);let i=l.join(s,`.${l.basename(e)}.${process.pid}.${Date.now()}.${C.randomBytes(4).toString("hex")}.tmp`);try{await r.writeFile(i,t,o.mode===void 0?"utf8":{encoding:"utf8",mode:o.mode})}catch(n){throw await p(i),n}try{await r.rename(i,e)}catch(n){if(process.platform==="win32"&&(c(n,"EPERM")||c(n,"EBUSY"))){let _=n;for(let d of L){await new Promise(a=>setTimeout(a,d));try{await r.rename(i,e);return}catch(a){if(_=a,!c(a,"EPERM")&&!c(a,"EBUSY"))break}}throw await p(i),_}if(c(n,"EXDEV")){try{await r.copyFile(i,e)}finally{await p(i)}return}throw await p(i),n}}async function fe(e,t){let o=l.dirname(e);await T(o);let s=await r.open(e,"a");try{await s.writeFile(`${t}
2
- `,"utf8")}finally{await s.close()}}async function me(e){try{await r.unlink(e)}catch(t){if(!k(t))throw t}}function c(e,t){return typeof e=="object"&&e!==null&&"code"in e&&e.code===t}export{y as a,M as b,g as c,P as d,U as e,Y as f,q as g,W as h,X as i,K as j,E as k,h as l,N as m,x as n,A as o,z as p,V as q,$ as r,I as s,Q as t,J as u,S as v,R as w,f as x,Z as y,H as z,v as A,ee as B,u as C,T as D,le as E,k as F,F as G,_e as H,de as I,ue as J,pe as K,fe as L,me as M};
3
- //# sourceMappingURL=chunk-6OIHST4I.js.map
1
+ var k=["commands","renderers","hooks","schema","importers","search","parser","preflight","services"],M=2,O=Object.freeze({migration:"schema",validation:"schema"}),P=Object.freeze({version:2,capabilities:[...k],legacy_aliases:{...O}}),U=["off","warn","enforce"],Y=["off","warn","enforce"],q=["none","restricted","strict"],W=["block","warn"],X=["commands.override","commands.handler","hooks.beforecommand","hooks.beforemutation","hooks.aftercommand","hooks.onwrite","hooks.onread","hooks.onindex","schema.flags","schema.itemfields","schema.itemtypes","schema.relationshipkinds","schema.migrations","schema.profiles","parser.override","preflight.override","services.override","renderers.override","importers.importer","importers.exporter","search.provider","search.vectorstore","services.assuranceprovider"],K=["output_format","error_format","help_format","lock_acquire","lock_release","history_append","item_store_write","item_store_delete","context_relevance","command_result"];function h(){return{mode:"off",trust_mode:"off",require_provenance:!1,trusted_extensions:[],default_sandbox_profile:"none",allowed_extensions:[],blocked_extensions:[],allowed_capabilities:[],blocked_capabilities:[],allowed_surfaces:[],blocked_surfaces:[],allowed_commands:[],blocked_commands:[],allowed_actions:[],blocked_actions:[],allowed_services:[],blocked_services:[],extension_overrides:[]}}var w=["goal","objective","value","impact","outcome","why_now","parent","reviewer","risk","confidence","sprint","release","blocked_by","blocked_reason","unblock_note","reporter","severity","environment","repro_steps","resolution","expected_result","actual_result"],g=["id","title","description","type","pm_format_version","source_type","type_options","status","priority","tags","created_at","updated_at","deadline","reminders","events","closed_at","completed_at","assignee","claim_principal","source_owner","author","estimated_minutes","acceptance_criteria","deferred_fields","design","external_ref","definition_of_ready","order",...w,"affected_version","fixed_version","component","regression","customer_impact","dependencies","comments","notes","learnings","files","tests","test_runs","docs","close_reason","duplicate_of","plan_mode","plan_scope","plan_harness","plan_resume_context","plan_validation","plan_decisions","plan_discoveries","plan_steps"],N=g;var x=Object.freeze([{id:"draft",roles:["draft"]},{id:"open",roles:["active","default_open"]},{id:"in_progress",aliases:["in-progress"],roles:["active"]},{id:"blocked",roles:["blocked"]},{id:"closed",roles:["terminal","terminal_done","default_close"]},{id:"canceled",aliases:["cancelled"],roles:["terminal","terminal_canceled","default_cancel"]}]),A=Object.freeze({draft_status:"draft",open_status:"open",in_progress_status:"in_progress",blocked_status:"blocked",close_status:"closed",canceled_status:"canceled"}),$=".agents/pm",z="settings.json",V="Closed at creation via pm create",I=["","epics","features","tasks","chores","issues","schema","history","search","extensions","locks"],b=["decisions","events","reminders","milestones","meetings","plans"],Q=[...I,...b],J={Epic:"epics",Feature:"features",Task:"tasks",Chore:"chores",Issue:"issues",Decision:"decisions",Event:"events",Reminder:"reminders",Milestone:"milestones",Meeting:"meetings",Plan:"plans"},S={minimal:{ownership_enforcement:"none",create_mode_default:"progressive",close_validation_default:"off",require_close_reason:!0,parent_reference:"strict_error",metadata_profile:"core",force_required_for_stale_lock:!1,duplicate_detection_mode:"off",duplicate_detection_threshold:.8,duplicate_detection_limit:3},default:{ownership_enforcement:"warn",create_mode_default:"progressive",close_validation_default:"warn",require_close_reason:!0,parent_reference:"strict_error",metadata_profile:"core",force_required_for_stale_lock:!0,duplicate_detection_mode:"strict",duplicate_detection_threshold:.8,duplicate_detection_limit:3},strict:{ownership_enforcement:"strict",create_mode_default:"strict",close_validation_default:"strict",require_close_reason:!0,parent_reference:"strict_error",metadata_profile:"strict",force_required_for_stale_lock:!0,duplicate_detection_mode:"strict",duplicate_detection_threshold:.8,duplicate_detection_limit:3}},R=["no active blocker","ready for planned execution sequencing","work completed","work is closed"],m={blocked_reason:["no active blocker because work is closed","work is closed"],resolution:["closed with implementation evidence","closed with verification evidence","work completed and recorded","work is closed"],actual_result:["closed and recorded","work completed","work completed and recorded"]};function y(e){return e?[...e]:void 0}var Z={version:1,id_prefix:"pm-",ids:{token_length:4},author_default:"",agent_identity:{probes_enabled:!0,identity_vocabulary:{version:1,aliases:{}},harness_signals:[]},mutation_guard:{require_attributed_author:!1,secret_guard:"advise",stale_in_progress_hours:72},item_format:"toon",locks:{ttl_seconds:1800,wait_ms:3e3},checkpoints:{retention_days:14},output:{default_format:"toon"},ux:{deprecation_hints:!0},history:{missing_stream:"auto_create",compact_policy:{enabled:!1,max_entries:500,trigger:"health_warn"}},validation:{sprint_release_format:"warn",parent_reference:"warn",metadata_profile:"core",metadata_required_fields:[],lifecycle_stale_blocker_reason_patterns:[...R],lifecycle_closure_like_blocked_reason_patterns:[...m.blocked_reason],lifecycle_closure_like_resolution_patterns:[...m.resolution],lifecycle_closure_like_actual_result_patterns:[...m.actual_result],estimate_defaults_by_type:{}},governance:{preset:"minimal",...S.minimal},workflow:{definition_of_done:[]},testing:{record_results_to_items:!1,allow_untrusted_linked_tests:!1},telemetry:{enabled:!0,first_run_prompt_completed:!1,capture_level:"redacted",endpoint:"https://pm-cli.unbrained.dev/v1/events",installation_id:"",retention_days:365},agent_guidance:{prompt_completed:!1,declined:!1,declined_at:"",template_version:1,last_checked_files:[]},item_types:{definitions:[]},schema:{version:1,files:{types:"schema/types.json",statuses:"schema/statuses.json",fields:"schema/fields.json",workflows:"schema/workflows.json"},statuses:x.map(e=>({...e,aliases:y(e.aliases),roles:y(e.roles)})),fields:[],workflow:{...A},unknown_field_policy:"allow"},extensions:{enabled:[],disabled:[],policy:h()},search:{score_threshold:0,hybrid_semantic_weight:.7,max_results:50,embedding_model:"",embedding_batch_size:32,embedding_timeout_ms:3e4,scanner_max_batch_retries:3,provider:"",default_mode:"auto",mutation_refresh_policy:"semantic_configured",query_expansion:{enabled:!1,provider:""},rerank:{enabled:!1,model:"",top_k:20}},providers:{openai:{base_url:"",api_key:"",model:""},ollama:{base_url:"",model:""}},context:{default_depth:"brief",activity_limit:10,stale_threshold_days:7,next_ranking_policy:"priority_floor",sections:{hierarchy:!0,activity:!0,progress:!0,recently_created:!0,unparented:!0,blockers:!0,files:!0,workload:!0,staleness:!0,tests:!0}},vector_store:{adapter:"",collection_name:"pm_items",qdrant:{url:"",api_key:""},lancedb:{path:""}}},H={metadata:{},body:""},v={SUCCESS:0,GENERIC_FAILURE:1,USAGE:2,NOT_FOUND:3,CONFLICT:4,DEPENDENCY_FAILED:5,NO_EFFECT:6,PARTIAL_EFFECT:7},D=Object.freeze({unknown_command:"usage",unknown_option:"usage",missing_required_option:"usage",missing_required_argument:"usage",invalid_command_usage:"usage",linked_test_value_not_quoted:"usage",invalid_argument_value:"validation",health_findings:"validation",validation_findings:"validation",close_through_update:"validation",no_update_fields:"validation",unsupported_update_option:"validation",tracker_not_initialized:"validation",item_not_found:"validation",ownership_conflict:"conflict",lock_conflict:"conflict",terminal_state_conflict:"conflict",dependency_failed:"runtime",init_gitignore_unwritable:"runtime",merge_git_config_unwritable:"runtime",command_failed:"runtime",unknown_error:"runtime"});function ee(e){let t=(e??"").trim().toLowerCase();if(t.length===0)return"unknown";let r=D[t];return typeof r=="string"?r:t.includes("conflict")||t.includes("locked")?"conflict":t.startsWith("unknown_")||t.startsWith("missing_required_")?"usage":t.startsWith("invalid_")||t.endsWith("_not_found")||t.includes("validation")?"validation":t.endsWith("_error")||t.endsWith("_failed")?"runtime":"unknown"}var p=class extends Error{exitCode;code;context;constructor(t,r,i={}){super(t),this.name="PmCliError",this.exitCode=r,this.context=i,this.code=i.code}};import*as o from"node:fs/promises";import{constants as d}from"node:fs";import l from"node:path";import C from"node:crypto";var L=[10,25,50,100];async function T(e){await o.mkdir(e,{recursive:!0})}async function le(e){try{return await o.access(e),!0}catch{return!1}}function E(e){return F(e)||c(e,"ENOTDIR")}function F(e){return c(e,"ENOENT")}async function _e(e){try{return await o.readFile(e,"utf8")}catch(t){if(E(t))return null;throw t}}async function de(e){let t;try{t=await o.open(e,d.O_RDONLY|d.O_NONBLOCK)}catch(r){if(E(r))return null;throw r}try{if(!(await t.stat()).isFile())throw new Error(`Not a regular file: ${e}`);return await t.readFile("utf8")}finally{await t.close()}}async function ue(e,t){let r=await o.open(e,d.O_RDONLY|d.O_NOFOLLOW|d.O_NONBLOCK);try{if(!(await r.stat()).isFile())throw t;return await r.readFile("utf8")}finally{await r.close()}}function pe(e){let t=e?.replaceAll(l.sep,"/"),r=t!==void 0&&!l.posix.isAbsolute(t)&&!l.win32.isAbsolute(t)&&!t.split("/").includes(".."),i=r?t.split("/")[0]:void 0,s={"settings.json":"settings",runtime:"runtime",schema:"schema",history:"history",transactions:"transactions"},n=i===void 0?"tracker_storage":Object.hasOwn(s,i)?s[i]:"tracker_storage",_=r&&t.length>0&&t.length<=160&&t.split("/").every(a=>a!=="."&&/^[a-zA-Z0-9_.-]+$/u.test(a)),u=_?t:`${n} (entry name redacted)`;return new p(`Transaction preview requires regular files and directories. Inspect ${u} relative to the selected tracker root.`,v.USAGE,{code:"transaction_preview_non_regular_file",preview_storage:{storage_area:n,..._?{relative_entry:t}:{},entry_redacted:!_},required:"regular files and directories within the configured tracker storage",why:"Preview does not follow linked entries or read special files.",nextSteps:[`Inspect ${u} within the selected tracker for links, directories used as files, or special files; do not follow link targets.`,"Restore the intended regular files and directories, then retry the original dry-run command."]})}async function f(e){try{await o.unlink(e)}catch{}}async function fe(e,t,r={}){let i=l.dirname(e);r.createParentDirectories!==!1&&await T(i);let s=l.join(i,`.${l.basename(e)}.${process.pid}.${Date.now()}.${C.randomBytes(4).toString("hex")}.tmp`);try{await o.writeFile(s,t,r.mode===void 0?"utf8":{encoding:"utf8",mode:r.mode})}catch(n){throw await f(s),n}try{await o.rename(s,e)}catch(n){if(process.platform==="win32"&&(c(n,"EPERM")||c(n,"EBUSY"))){let _=n;for(let u of L){await new Promise(a=>setTimeout(a,u));try{await o.rename(s,e);return}catch(a){if(_=a,!c(a,"EPERM")&&!c(a,"EBUSY"))break}}throw await f(s),_}if(c(n,"EXDEV")){try{await o.copyFile(s,e)}finally{await f(s)}return}throw await f(s),n}}async function me(e,t){let r=l.dirname(e);await T(r);let i=await o.open(e,"a");try{await i.writeFile(`${t}
2
+ `,"utf8")}finally{await i.close()}}async function Ee(e){try{await o.unlink(e)}catch(t){if(!E(t))throw t}}function c(e,t){return typeof e=="object"&&e!==null&&"code"in e&&e.code===t}export{k as a,M as b,O as c,P as d,U as e,Y as f,q as g,W as h,X as i,K as j,h as k,w as l,N as m,x as n,A as o,$ as p,z as q,V as r,I as s,Q as t,J as u,S as v,R as w,m as x,Z as y,H as z,v as A,ee as B,p as C,T as D,le as E,E as F,F as G,_e as H,de as I,ue as J,pe as K,fe as L,me as M,Ee as N};
3
+ //# sourceMappingURL=chunk-K672XXGQ.js.map