@unbrained/pm-cli 2026.8.31 → 2026.9.2

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 (108) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/AGENTS.md +15 -13
  3. package/CHANGELOG.md +33 -6
  4. package/README.md +3 -3
  5. package/dist/cli/commands/merge.d.ts +1 -1
  6. package/dist/cli/commands/merge.js +3 -3
  7. package/dist/cli/register-mutation.js +8 -5
  8. package/dist/cli-bundle/bundle-manifest.json +129 -129
  9. package/dist/cli-bundle/chunks/{chunk-52JXYSDW.js → chunk-3WICXLVT.js} +2 -2
  10. package/dist/cli-bundle/chunks/{chunk-JIFYOJF7.js → chunk-DTGWEL23.js} +2 -2
  11. package/dist/cli-bundle/chunks/{chunk-SXMHPK4V.js → chunk-FZ4Z2J4F.js} +4 -4
  12. package/dist/cli-bundle/chunks/chunk-GOACULJW.js +13 -0
  13. package/dist/cli-bundle/chunks/{chunk-NW6LV3TU.js → chunk-NOPL37X4.js} +64 -64
  14. package/dist/cli-bundle/chunks/{chunk-OUGDA7NR.js → chunk-T6H5BZCP.js} +2 -2
  15. package/dist/cli-bundle/chunks/{chunk-IEFJ3ZEB.js → chunk-TAG4VC22.js} +4 -4
  16. package/dist/cli-bundle/chunks/{chunk-MWIN6OH2.js → chunk-UDW64J2W.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-5DH5XCJL.js → chunk-X4RCGLTX.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-QZCIBZR3.js → chunk-Y7VOMSZT.js} +2 -2
  19. package/dist/cli-bundle/chunks/chunk-ZLJIFSOE.js +35 -0
  20. package/dist/cli-bundle/chunks/{register-list-query-7C7DKZ2U.js → register-list-query-XYNX4ASQ.js} +2 -2
  21. package/dist/cli-bundle/chunks/register-mutation-WFQ7MJTX.js +20 -0
  22. package/dist/cli-bundle/chunks/{register-operations-IIMA5OKO.js → register-operations-JVTI7JPP.js} +2 -2
  23. package/dist/cli-bundle/chunks/{register-setup-52H36QCB.js → register-setup-KVNC5KPL.js} +2 -2
  24. package/dist/cli-bundle/focused-chunks/{chunk-VJ7EFMFL.js → chunk-242AXYB2.js} +2 -2
  25. package/dist/cli-bundle/focused-chunks/chunk-7VATS5QY.js +16 -0
  26. package/dist/cli-bundle/focused-chunks/{chunk-FOMZ6NG5.js → chunk-MKHG3T76.js} +2 -2
  27. package/dist/cli-bundle/focused-chunks/{chunk-JCOOAUHK.js → chunk-O67VDLOT.js} +48 -48
  28. package/dist/cli-bundle/focused-chunks/{chunk-UN34D63M.js → chunk-PF3E6Q36.js} +2 -2
  29. package/dist/cli-bundle/focused-chunks/{chunk-APN4QN6R.js → chunk-RMRCQPWU.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/{chunk-BPWJ4QM5.js → chunk-S4U5CN5Q.js} +2 -2
  31. package/dist/cli-bundle/focused-chunks/chunk-T2LXXSOD.js +158 -0
  32. package/dist/cli-bundle/main.js +2 -2
  33. package/dist/cli-bundle/sdk-contracts.js +1 -1
  34. package/dist/cli-bundle/sdk-core.js +25 -25
  35. package/dist/cli-bundle/sdk-governance.js +1 -1
  36. package/dist/cli-bundle/sdk-graph.js +1 -1
  37. package/dist/cli-bundle/sdk-merge.js +32 -32
  38. package/dist/cli-bundle/sdk-query.js +1 -1
  39. package/dist/cli-bundle/sdk-runtime.js +1 -1
  40. package/dist/cli-bundle/sdk-testing.js +1 -1
  41. package/dist/cli-bundle/sdk.js +10 -10
  42. package/dist/core/diagnostics/remediation.js +9 -4
  43. package/dist/core/history/drift-scan.js +6 -6
  44. package/dist/core/history/history.d.ts +6 -0
  45. package/dist/core/history/history.js +47 -5
  46. package/dist/core/history/replay.d.ts +12 -1
  47. package/dist/core/history/replay.js +60 -39
  48. package/dist/mcp/server.d.ts +2 -2
  49. package/dist/mcp/server.js +78 -15
  50. package/dist/mcp/tool-definitions.js +56 -2
  51. package/dist/sdk/agent-capability-contracts.js +4 -2
  52. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +14 -2
  53. package/dist/sdk/governance/health.js +77 -11
  54. package/dist/sdk/governance/validate.js +4 -2
  55. package/dist/sdk/history-read.js +14 -6
  56. package/dist/sdk/history-repair.js +17 -10
  57. package/dist/sdk/index.d.ts +1 -0
  58. package/dist/sdk/index.js +3 -2
  59. package/dist/sdk/init-agent-guidance.js +4 -4
  60. package/dist/sdk/lifecycle/update.js +23 -10
  61. package/dist/sdk/mcp/discovery.d.ts +152 -0
  62. package/dist/sdk/mcp/discovery.js +495 -0
  63. package/dist/sdk/merge/index.d.ts +1 -1
  64. package/dist/sdk/merge/index.js +3 -3
  65. package/dist/sdk/merge/receipts.d.ts +51 -1
  66. package/dist/sdk/merge/receipts.js +146 -35
  67. package/dist/sdk/merge/three-way.d.ts +3 -1
  68. package/dist/sdk/merge/three-way.js +9 -7
  69. package/dist/sdk/runtime-extended-actions.js +4 -4
  70. package/docs/AGENT_GUIDE.md +11 -3
  71. package/docs/ARCHITECTURE.md +5 -0
  72. package/docs/CLAUDE_CODE_PLUGIN.md +2 -2
  73. package/docs/CONTEXT_RECOVERY_PRIMITIVES.md +24 -6
  74. package/docs/MCP_2026_07_28.md +9 -5
  75. package/docs/MCP_CAPABILITY_SURFACES.md +7 -1
  76. package/docs/MCP_REMOTE_TRANSPORT_SECURITY.md +11 -1
  77. package/docs/MERGE_SAFETY.md +44 -2
  78. package/docs/OUTPUT_TOKEN_ACCOUNTING.md +5 -3
  79. package/docs/PROGRESSIVE_TOOL_DISCOVERY.md +42 -0
  80. package/docs/README.md +1 -0
  81. package/docs/agent-task-token-baseline.json +157 -3
  82. package/docs/agent-task-transcripts.json +143 -0
  83. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +4 -3
  84. package/docs/performance/cli-transport-overhead.md +8 -6
  85. package/marketplace.json +2 -2
  86. package/package.json +2 -2
  87. package/packages/pm-beads/package.json +1 -1
  88. package/packages/pm-calendar/package.json +1 -1
  89. package/packages/pm-command-kit/package.json +1 -1
  90. package/packages/pm-digital-twin/package.json +1 -1
  91. package/packages/pm-governance-audit/package.json +1 -1
  92. package/packages/pm-guide-shell/package.json +1 -1
  93. package/packages/pm-kanban/package.json +1 -1
  94. package/packages/pm-lifecycle-hooks/package.json +1 -1
  95. package/packages/pm-linked-test-adapters/package.json +1 -1
  96. package/packages/pm-search-advanced/package.json +1 -1
  97. package/packages/pm-templates/package.json +1 -1
  98. package/packages/pm-todos/package.json +1 -1
  99. package/packages/pm-vcs/package.json +1 -1
  100. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  101. package/plugins/pm-claude/README.md +4 -3
  102. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  103. package/sdk/public-surface.json +168 -2
  104. package/dist/cli-bundle/chunks/chunk-2XVV45NJ.js +0 -35
  105. package/dist/cli-bundle/chunks/chunk-3FCSFWZT.js +0 -13
  106. package/dist/cli-bundle/chunks/register-mutation-OI4BJLUX.js +0 -20
  107. package/dist/cli-bundle/focused-chunks/chunk-BMD42PUG.js +0 -158
  108. package/dist/cli-bundle/focused-chunks/chunk-EUTABA4M.js +0 -16
@@ -1,143 +1,151 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "generation": "c77df9d4fc0573f80caf6ca9f923a5ee36f673d902d5544b62a7657f00f1f5cb",
3
+ "generation": "722c1e23bfa9fa15359563dea426f8cc01ab0c6e7bc89dd314213ffad7b58f63",
4
4
  "files": [
5
5
  {
6
- "path": "chunks/chunk-2XVV45NJ.js",
7
- "sha256": "2c0066788194c5141d687602b0a7355b860c75564c2b303558dad93bae358306"
6
+ "path": "chunks/chunk-3WICXLVT.js",
7
+ "sha256": "89777399e60fe94317f9f7e230b625aa1d671baf982723df9699e03baa4a6a80"
8
8
  },
9
9
  {
10
- "path": "chunks/chunk-2XVV45NJ.js.map",
11
- "sha256": "2cdc214b3edd80d717e78fd09fe492acd6b2f6af6ee2995a1b4e06893e29d728"
10
+ "path": "chunks/chunk-3WICXLVT.js.map",
11
+ "sha256": "431c95eff5c1443aac3e2e17b775a56a1ce49e150ed1b312f5f743cb551c8ca1"
12
12
  },
13
13
  {
14
- "path": "chunks/chunk-3FCSFWZT.js",
15
- "sha256": "a5792ad7d4e6d6bc3b567e05e940294f94f8add08b4eed0f646ff28236802a35"
14
+ "path": "chunks/chunk-DTGWEL23.js",
15
+ "sha256": "5e60220b784bafe21dccbea7506aae33878e0deb2e87ff4784759afd0ce288ed"
16
16
  },
17
17
  {
18
- "path": "chunks/chunk-3FCSFWZT.js.map",
19
- "sha256": "231b836ae33327e8d8af8b49c474a53c26d9400f713d3364c2bac007a710e6ad"
18
+ "path": "chunks/chunk-DTGWEL23.js.map",
19
+ "sha256": "33fb162aa765f304742e582a7c9897bb524f1d1cad1418131496cb8002457f71"
20
20
  },
21
21
  {
22
- "path": "chunks/chunk-52JXYSDW.js",
23
- "sha256": "4937ba587b9cc312284ab613396b269e11ab4e4d24b6483f315a55a3476e0fff"
22
+ "path": "chunks/chunk-FZ4Z2J4F.js",
23
+ "sha256": "e818018f115371a4abb4f34ecf2c3ad1ae8c3a1daeff47ace74e5dda22bfba58"
24
24
  },
25
25
  {
26
- "path": "chunks/chunk-52JXYSDW.js.map",
27
- "sha256": "431c95eff5c1443aac3e2e17b775a56a1ce49e150ed1b312f5f743cb551c8ca1"
26
+ "path": "chunks/chunk-FZ4Z2J4F.js.map",
27
+ "sha256": "f92a23e4c883818a650581a318d8501c9828f875a129a186f6727091d42e29db"
28
28
  },
29
29
  {
30
- "path": "chunks/chunk-5DH5XCJL.js",
31
- "sha256": "e20de6e43fd3c819043d5277d596a28c6ae35c9dbb1beaeca433d7e2f7c2a7fb"
30
+ "path": "chunks/chunk-GOACULJW.js",
31
+ "sha256": "aed9f244f310aa816c339dabf9165e72e3f24198f18734a1355e9ca2b5f1f3af"
32
32
  },
33
33
  {
34
- "path": "chunks/chunk-5DH5XCJL.js.map",
35
- "sha256": "efdedb54dc36a8378003373c177a5ca3a298629e603f571d873c256a784028f2"
34
+ "path": "chunks/chunk-GOACULJW.js.map",
35
+ "sha256": "d3ac896dfc135d4ce7061a180ec2d6c1d70742ec065a7692171a8c1ea97f48dc"
36
36
  },
37
37
  {
38
- "path": "chunks/chunk-IEFJ3ZEB.js",
39
- "sha256": "36acdd06da969a9bb326ae01ff0fbf623f6f49957454144a61eb6aca47d1d051"
38
+ "path": "chunks/chunk-NOPL37X4.js",
39
+ "sha256": "bf1759afff347457fda79177708d9d60c429c8404ad8f0a82f81d5fea14ccaf8"
40
40
  },
41
41
  {
42
- "path": "chunks/chunk-IEFJ3ZEB.js.map",
43
- "sha256": "996415282be823d909c4391856b83b79dc1c949482ebf31316d7b898fd1ca2a6"
42
+ "path": "chunks/chunk-NOPL37X4.js.map",
43
+ "sha256": "2f451fc2135eda6bca88666ed6cde267c3652f9dd1b14b80f455889a29a2dbde"
44
44
  },
45
45
  {
46
- "path": "chunks/chunk-JIFYOJF7.js",
47
- "sha256": "33156ffecea83be415a3c8de73b426d948aa29ebe17b0dd9840cffba2c365136"
46
+ "path": "chunks/chunk-QWRRFYK3.js",
47
+ "sha256": "8e299e100b8029f32f282886e8962fbd957129dac74315a4e7cd2432189f0c1c"
48
48
  },
49
49
  {
50
- "path": "chunks/chunk-JIFYOJF7.js.map",
51
- "sha256": "33fb162aa765f304742e582a7c9897bb524f1d1cad1418131496cb8002457f71"
50
+ "path": "chunks/chunk-QWRRFYK3.js.map",
51
+ "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
52
52
  },
53
53
  {
54
- "path": "chunks/chunk-MWIN6OH2.js",
55
- "sha256": "bc5a08c1970e0f8b8138ac61b5890e721471a80c993381d23f3c9151a29d2cbe"
54
+ "path": "chunks/chunk-T6H5BZCP.js",
55
+ "sha256": "84b5e239795a50bf29a2c0068d8661da24a4f11586c92a5b0e68ccc867398f0e"
56
56
  },
57
57
  {
58
- "path": "chunks/chunk-MWIN6OH2.js.map",
59
- "sha256": "6b489551e2cbb313da42230a4a8635560237dd0d6516d202e786c3ef480f9482"
58
+ "path": "chunks/chunk-T6H5BZCP.js.map",
59
+ "sha256": "1eadc292dbb57e9a40378c3341ac7b60a20a0ae3ea82b7190aef9280e5aa22e7"
60
60
  },
61
61
  {
62
- "path": "chunks/chunk-NW6LV3TU.js",
63
- "sha256": "782837c9ec2bd878d1e9c484f2c3cb2a521880b95828f51252d0b02d1a6cb3c8"
62
+ "path": "chunks/chunk-TAG4VC22.js",
63
+ "sha256": "d2125db009fbf9c3587a1c0abd45b9631ba8212ced823d51677f42eb461c4877"
64
64
  },
65
65
  {
66
- "path": "chunks/chunk-NW6LV3TU.js.map",
67
- "sha256": "736cc3a8257fc15eee5b48342bed402c37d2fc3f9c0990ce030add224957b464"
66
+ "path": "chunks/chunk-TAG4VC22.js.map",
67
+ "sha256": "c88313f11a270aa6e80604dfd6e472df7b445618fa1290933e16183bb6bc30bf"
68
68
  },
69
69
  {
70
- "path": "chunks/chunk-OUGDA7NR.js",
71
- "sha256": "1fe9c57028dc8ec5edc9f2ceacefe39915039a558a9aaee43c675461b76847f1"
70
+ "path": "chunks/chunk-UDW64J2W.js",
71
+ "sha256": "a4519a4ee4cf844381163c11acc7258e29409e815c7efeab653837cba05d107a"
72
72
  },
73
73
  {
74
- "path": "chunks/chunk-OUGDA7NR.js.map",
75
- "sha256": "1eadc292dbb57e9a40378c3341ac7b60a20a0ae3ea82b7190aef9280e5aa22e7"
74
+ "path": "chunks/chunk-UDW64J2W.js.map",
75
+ "sha256": "6b489551e2cbb313da42230a4a8635560237dd0d6516d202e786c3ef480f9482"
76
76
  },
77
77
  {
78
- "path": "chunks/chunk-QWRRFYK3.js",
79
- "sha256": "8e299e100b8029f32f282886e8962fbd957129dac74315a4e7cd2432189f0c1c"
78
+ "path": "chunks/chunk-WYRZZ5ZE.js",
79
+ "sha256": "a00f19d4bfaade1b7200fd065e2fed0325a71224712aaa4655286e454df47be5"
80
80
  },
81
81
  {
82
- "path": "chunks/chunk-QWRRFYK3.js.map",
82
+ "path": "chunks/chunk-WYRZZ5ZE.js.map",
83
83
  "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
84
84
  },
85
85
  {
86
- "path": "chunks/chunk-QZCIBZR3.js",
87
- "sha256": "b8ecad2ce3970fd5cb46edb6ca04b09ec83a379ecadfd1ef40f4d7e996cd48ba"
86
+ "path": "chunks/chunk-X4RCGLTX.js",
87
+ "sha256": "11130ff17ccea11e74a024743bd9eb25c01e1a93e5badfd0c48b87805e78322d"
88
88
  },
89
89
  {
90
- "path": "chunks/chunk-QZCIBZR3.js.map",
91
- "sha256": "3798372c7c76968d63a5cb0c1c019c8f37f359f88edfc30424b48b67e82810c1"
90
+ "path": "chunks/chunk-X4RCGLTX.js.map",
91
+ "sha256": "efdedb54dc36a8378003373c177a5ca3a298629e603f571d873c256a784028f2"
92
92
  },
93
93
  {
94
- "path": "chunks/chunk-SXMHPK4V.js",
95
- "sha256": "7667d3c7577f3ff007d81cee48475cbd5c36be718f7cb326c4b07f43415583ba"
94
+ "path": "chunks/chunk-Y7VOMSZT.js",
95
+ "sha256": "c12cb530e15bf236d136583cadd55ab1dfd9a6acb0dbc0c30f26501e6c2e4571"
96
96
  },
97
97
  {
98
- "path": "chunks/chunk-SXMHPK4V.js.map",
99
- "sha256": "e89f25563bc418c71370bc63fbff765b61e6cf06101bf5aa45d77baa8e0fcc38"
98
+ "path": "chunks/chunk-Y7VOMSZT.js.map",
99
+ "sha256": "3798372c7c76968d63a5cb0c1c019c8f37f359f88edfc30424b48b67e82810c1"
100
100
  },
101
101
  {
102
- "path": "chunks/chunk-WYRZZ5ZE.js",
103
- "sha256": "a00f19d4bfaade1b7200fd065e2fed0325a71224712aaa4655286e454df47be5"
102
+ "path": "chunks/chunk-ZLJIFSOE.js",
103
+ "sha256": "ba7eddfbead9ae83bb3a307c8bb5ea71ed1ad02aafb47d9586fc9edae7b8e64f"
104
104
  },
105
105
  {
106
- "path": "chunks/chunk-WYRZZ5ZE.js.map",
107
- "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
106
+ "path": "chunks/chunk-ZLJIFSOE.js.map",
107
+ "sha256": "e690c5db942e368dc81710982f4a6e062321734fef10c8444b1bee3652f7e571"
108
108
  },
109
109
  {
110
- "path": "chunks/register-list-query-7C7DKZ2U.js",
111
- "sha256": "c2bc55e808116c9defd049e31978b8b1bc419289c3fd4616cc90adfbcfbc255f"
110
+ "path": "chunks/register-list-query-XYNX4ASQ.js",
111
+ "sha256": "19ecd237f39fe354656250f1580fda7201837dd10cb0df0d39029a8ff2da6ed3"
112
112
  },
113
113
  {
114
- "path": "chunks/register-list-query-7C7DKZ2U.js.map",
114
+ "path": "chunks/register-list-query-XYNX4ASQ.js.map",
115
115
  "sha256": "9ca100ecd68efabf60142b8ceadd37dfa286fe51caf34105539e9d0486ffe0c0"
116
116
  },
117
117
  {
118
- "path": "chunks/register-mutation-OI4BJLUX.js",
119
- "sha256": "8f4793cbe657a0e160c45490e7592d43f0addbf5031f22a91b862a8863fe3d93"
118
+ "path": "chunks/register-mutation-WFQ7MJTX.js",
119
+ "sha256": "5e5f7411c7670cc438de6c15d1b5d01ee50f760a0d0e2a667f7e2f28d700b726"
120
120
  },
121
121
  {
122
- "path": "chunks/register-mutation-OI4BJLUX.js.map",
123
- "sha256": "5903b14853ab402111913a7a741e00e492c8f6d2f967553e255eb55cb52632ab"
122
+ "path": "chunks/register-mutation-WFQ7MJTX.js.map",
123
+ "sha256": "7b20c6c417f480635cc16dbdffc9f60025ae79f86d0935bbbb91a078158c709a"
124
124
  },
125
125
  {
126
- "path": "chunks/register-operations-IIMA5OKO.js",
127
- "sha256": "41e18edcd8dca1edd08e6b6b2b256a059144675417a290c8d197e6ce74bcb59a"
126
+ "path": "chunks/register-operations-JVTI7JPP.js",
127
+ "sha256": "b8ec88765ebf991548d4c80c3d9395eaa6f774ff22c53a307d3ec3cdb24b666d"
128
128
  },
129
129
  {
130
- "path": "chunks/register-operations-IIMA5OKO.js.map",
130
+ "path": "chunks/register-operations-JVTI7JPP.js.map",
131
131
  "sha256": "c6ba10d7a8dc627a5bc8ec83f8c8e5fba52956cd6a086a392d9edf308f1563ed"
132
132
  },
133
133
  {
134
- "path": "chunks/register-setup-52H36QCB.js",
135
- "sha256": "3b27d45c5c9843547cb72383d20644fcf279af433a948e5aca4b8a8bbc7719b1"
134
+ "path": "chunks/register-setup-KVNC5KPL.js",
135
+ "sha256": "dd3e53c01d374b2c273e72a88b22f85a8a93aa18b26192a015fe4ab2c5d74b46"
136
136
  },
137
137
  {
138
- "path": "chunks/register-setup-52H36QCB.js.map",
138
+ "path": "chunks/register-setup-KVNC5KPL.js.map",
139
139
  "sha256": "64f7feebb6b4c267565f841fe072db90dbed8098ded6ad62cc57249467603edc"
140
140
  },
141
+ {
142
+ "path": "focused-chunks/chunk-242AXYB2.js",
143
+ "sha256": "439fc706bd97ce431ea0ef83b91cf74baf8c1c881b5d664c3c26a64c54d8eb74"
144
+ },
145
+ {
146
+ "path": "focused-chunks/chunk-242AXYB2.js.map",
147
+ "sha256": "a5bbe677175d2137ad3734552fcdbdfd010574e45a7101def30e414f7f022e1e"
148
+ },
141
149
  {
142
150
  "path": "focused-chunks/chunk-2FEZ5SKM.js",
143
151
  "sha256": "8f2f894c131ef37af84d9a556d751fc496eb0b319d7e3dcdf6f9c88a67411b0e"
@@ -163,12 +171,12 @@
163
171
  "sha256": "03706b2bf1fc80f2d638abdeed44ef5125e3d08ba91f7006ff660ce4bde6c4ab"
164
172
  },
165
173
  {
166
- "path": "focused-chunks/chunk-APN4QN6R.js",
167
- "sha256": "880689f660144b2d1b71d12b77d7da66fa89fccee5d76b38baf9cf1fa2a4fb49"
174
+ "path": "focused-chunks/chunk-7VATS5QY.js",
175
+ "sha256": "205833e176aa8e38fd57cc4479033a6d59faa5b09b740aaf10ea9945cf3bef63"
168
176
  },
169
177
  {
170
- "path": "focused-chunks/chunk-APN4QN6R.js.map",
171
- "sha256": "1aa65e37f0d2432f9058aeed694f1f3064e24e7748bf5092b1f5d0cc6c5f0d87"
178
+ "path": "focused-chunks/chunk-7VATS5QY.js.map",
179
+ "sha256": "a969dda2abbe6f643dc12c9280b80a61768c085cef05a35628d043d804e0f8a9"
172
180
  },
173
181
  {
174
182
  "path": "focused-chunks/chunk-BEVHCEWG.js",
@@ -179,76 +187,76 @@
179
187
  "sha256": "9dee493fc79a9036bd5c153c9d222da3087f0b0ee6933c417079e33bd16edc1f"
180
188
  },
181
189
  {
182
- "path": "focused-chunks/chunk-BMD42PUG.js",
183
- "sha256": "53b479113848b04de176d44534ff1bb5b2ca5a95fb03f9b0fb3fb7bb2e695b33"
190
+ "path": "focused-chunks/chunk-JEFKLWMM.js",
191
+ "sha256": "42218e8899d36afce18031c719a78809942c0d432b7be177d18b653a92cfea3c"
184
192
  },
185
193
  {
186
- "path": "focused-chunks/chunk-BMD42PUG.js.map",
187
- "sha256": "b3db937efb90722acde97129607b0959f76b2447abfd6b66a8b869e0ca11dc8f"
194
+ "path": "focused-chunks/chunk-JEFKLWMM.js.map",
195
+ "sha256": "47260d7f7a39f8d3a50905f6878bdad6842ab6adc67832b91f81c6c8af3ed53c"
188
196
  },
189
197
  {
190
- "path": "focused-chunks/chunk-BPWJ4QM5.js",
191
- "sha256": "82cdeb7c3996c2d297eda3143306fd37dcc9bd2f882c5f0199858221b893dbaf"
198
+ "path": "focused-chunks/chunk-KB5OFSFD.js",
199
+ "sha256": "1940d95ea1ee70d3cbbdd73e3b509fcf1add66e2870f72a4278e811913f48cce"
192
200
  },
193
201
  {
194
- "path": "focused-chunks/chunk-BPWJ4QM5.js.map",
195
- "sha256": "888e40d159a9a660cd51d165aab75ec881ee74303e434c7bc10318e44b5a17e5"
202
+ "path": "focused-chunks/chunk-KB5OFSFD.js.map",
203
+ "sha256": "023bc9e4a92206739309a7ec3ab55300730e3e2712b2e87a90eb80b9f3790a40"
196
204
  },
197
205
  {
198
- "path": "focused-chunks/chunk-EUTABA4M.js",
199
- "sha256": "3b2cb8e11ca6c4cfbf65d11b95f33c360e0664f13e1d661ea6b2cce05281b6d4"
206
+ "path": "focused-chunks/chunk-MEASX544.js",
207
+ "sha256": "19ddd868c2c6eac9c911ea1fec4b2aa45e6a7a6567070ef657caca270d121aa7"
200
208
  },
201
209
  {
202
- "path": "focused-chunks/chunk-EUTABA4M.js.map",
203
- "sha256": "29508cd8031bf160c639bed69244b328d1ea04b9ece08deeecda03727455bade"
210
+ "path": "focused-chunks/chunk-MEASX544.js.map",
211
+ "sha256": "c9bc7a7b188e69ddafdd4df4b4ed9a26668b4bf08a840fd543ad5aff1b2cb060"
204
212
  },
205
213
  {
206
- "path": "focused-chunks/chunk-FOMZ6NG5.js",
207
- "sha256": "cbd5b2033f11524bd27e07a86f6e87068aae5c310c8dc0b23b6e50b89b5be45e"
214
+ "path": "focused-chunks/chunk-MKHG3T76.js",
215
+ "sha256": "f9a499e5de6a7e6bfec9461b82ba973744de6e26e9e8c623db4ef16477f36a71"
208
216
  },
209
217
  {
210
- "path": "focused-chunks/chunk-FOMZ6NG5.js.map",
218
+ "path": "focused-chunks/chunk-MKHG3T76.js.map",
211
219
  "sha256": "3cfc2a9c77f3b835e9175551adbf8693e25c006d07f7941555bf48ae78422113"
212
220
  },
213
221
  {
214
- "path": "focused-chunks/chunk-JCOOAUHK.js",
215
- "sha256": "e8f553d3a3fa1e503161ad516074033aaefb400ffd58cb83994ad0164b5e0ae0"
222
+ "path": "focused-chunks/chunk-O67VDLOT.js",
223
+ "sha256": "f1e9e3c3a6336c95d556017f661ca5ae50e1530ec3b97ba30cabdd039ea15649"
216
224
  },
217
225
  {
218
- "path": "focused-chunks/chunk-JCOOAUHK.js.map",
219
- "sha256": "53a4601cff361d36370f697b0069046c588ae52c302940cc39181fb34d18e111"
226
+ "path": "focused-chunks/chunk-O67VDLOT.js.map",
227
+ "sha256": "05dc50f7a2725d0de63ebbc83b84e8ce6c8ee3cf678dc39f167f39517dd86ab9"
220
228
  },
221
229
  {
222
- "path": "focused-chunks/chunk-JEFKLWMM.js",
223
- "sha256": "42218e8899d36afce18031c719a78809942c0d432b7be177d18b653a92cfea3c"
230
+ "path": "focused-chunks/chunk-PF3E6Q36.js",
231
+ "sha256": "b21284a35df0fdb541e047d1eb116f97be20d06a4e44efae12e1757e7218817d"
224
232
  },
225
233
  {
226
- "path": "focused-chunks/chunk-JEFKLWMM.js.map",
227
- "sha256": "47260d7f7a39f8d3a50905f6878bdad6842ab6adc67832b91f81c6c8af3ed53c"
234
+ "path": "focused-chunks/chunk-PF3E6Q36.js.map",
235
+ "sha256": "eb193a61130f02bb5065ff30440c7221e6bfaab03f0bb019ac2770b13f33829e"
228
236
  },
229
237
  {
230
- "path": "focused-chunks/chunk-KB5OFSFD.js",
231
- "sha256": "1940d95ea1ee70d3cbbdd73e3b509fcf1add66e2870f72a4278e811913f48cce"
238
+ "path": "focused-chunks/chunk-QDFJIRKN.js",
239
+ "sha256": "8a605c78e2c36a6894fa1a2928be3c04e53de613c4e638bb917f08c019fe4470"
232
240
  },
233
241
  {
234
- "path": "focused-chunks/chunk-KB5OFSFD.js.map",
235
- "sha256": "023bc9e4a92206739309a7ec3ab55300730e3e2712b2e87a90eb80b9f3790a40"
242
+ "path": "focused-chunks/chunk-QDFJIRKN.js.map",
243
+ "sha256": "3047f890bacd6b22a74c4b9f67cfe11ba1d7bc05a2707ac85e67635c92f9f908"
236
244
  },
237
245
  {
238
- "path": "focused-chunks/chunk-MEASX544.js",
239
- "sha256": "19ddd868c2c6eac9c911ea1fec4b2aa45e6a7a6567070ef657caca270d121aa7"
246
+ "path": "focused-chunks/chunk-RMRCQPWU.js",
247
+ "sha256": "e222393917756dfd573d29eb8834a2786b9d25ede710401d08e2eea5659eb9fc"
240
248
  },
241
249
  {
242
- "path": "focused-chunks/chunk-MEASX544.js.map",
243
- "sha256": "c9bc7a7b188e69ddafdd4df4b4ed9a26668b4bf08a840fd543ad5aff1b2cb060"
250
+ "path": "focused-chunks/chunk-RMRCQPWU.js.map",
251
+ "sha256": "1aa65e37f0d2432f9058aeed694f1f3064e24e7748bf5092b1f5d0cc6c5f0d87"
244
252
  },
245
253
  {
246
- "path": "focused-chunks/chunk-QDFJIRKN.js",
247
- "sha256": "8a605c78e2c36a6894fa1a2928be3c04e53de613c4e638bb917f08c019fe4470"
254
+ "path": "focused-chunks/chunk-S4U5CN5Q.js",
255
+ "sha256": "e81f22317e6b5b4ff3738c72fa701081aef70f8a6877e892b2ebb5285a732fef"
248
256
  },
249
257
  {
250
- "path": "focused-chunks/chunk-QDFJIRKN.js.map",
251
- "sha256": "3047f890bacd6b22a74c4b9f67cfe11ba1d7bc05a2707ac85e67635c92f9f908"
258
+ "path": "focused-chunks/chunk-S4U5CN5Q.js.map",
259
+ "sha256": "888e40d159a9a660cd51d165aab75ec881ee74303e434c7bc10318e44b5a17e5"
252
260
  },
253
261
  {
254
262
  "path": "focused-chunks/chunk-SVXJYD6G.js",
@@ -259,20 +267,12 @@
259
267
  "sha256": "4565e934a489924ec28e1c47978c30457a43e55c9cf0edefbee091c1358b2c9e"
260
268
  },
261
269
  {
262
- "path": "focused-chunks/chunk-UN34D63M.js",
263
- "sha256": "f07ba98e15abfdd23adfff0cdf321f9e291682ec46d9e021f77efdaa0c96d03a"
264
- },
265
- {
266
- "path": "focused-chunks/chunk-UN34D63M.js.map",
267
- "sha256": "eb193a61130f02bb5065ff30440c7221e6bfaab03f0bb019ac2770b13f33829e"
268
- },
269
- {
270
- "path": "focused-chunks/chunk-VJ7EFMFL.js",
271
- "sha256": "1e64288a0249c0aaaced100a5bf5578f5d2a5d4d5b411ee9a21f9eade74b42db"
270
+ "path": "focused-chunks/chunk-T2LXXSOD.js",
271
+ "sha256": "6b1df3223657dbb51da4c660c52af7178393cb28641c80df1cfe3f255c6e687b"
272
272
  },
273
273
  {
274
- "path": "focused-chunks/chunk-VJ7EFMFL.js.map",
275
- "sha256": "3a17b04b29f12a910492ff2b2b0746833c681df7aa0ad23613bd6a9f43716f3b"
274
+ "path": "focused-chunks/chunk-T2LXXSOD.js.map",
275
+ "sha256": "043ab1eccbbdcf837fc4893f9db08eda00174c47b71c5bd1512f43375624901c"
276
276
  },
277
277
  {
278
278
  "path": "focused-chunks/chunk-Z2USIBR2.js",
@@ -284,7 +284,7 @@
284
284
  },
285
285
  {
286
286
  "path": "main.js",
287
- "sha256": "27cccfb7f0be372555a9e349a9a7c25aee19d0ecca1073cd44e36589f208c367"
287
+ "sha256": "a96d754567cbdc5c2e8507c6425fb49b4d696f3be544ae673dd6537100fe17ba"
288
288
  },
289
289
  {
290
290
  "path": "main.js.map",
@@ -300,7 +300,7 @@
300
300
  },
301
301
  {
302
302
  "path": "sdk-contracts.js",
303
- "sha256": "eb2976e7c5a39ca254ac0a986422ee79f89ab3c1173fafeef482bbe9424c0b1b"
303
+ "sha256": "abab5de651739c7b3c432dbf3e49ae9fdc286549cbdbc457733a5a92a6ddae3a"
304
304
  },
305
305
  {
306
306
  "path": "sdk-contracts.js.map",
@@ -308,15 +308,15 @@
308
308
  },
309
309
  {
310
310
  "path": "sdk-core.js",
311
- "sha256": "9869b47a3766f4916c7f26ff15781571dd1083e56b1d96f81b65a599e48fb883"
311
+ "sha256": "88b5958c83b98b85127bbac6eed9418b01ffbd08d82035e10dc37d4fcccb51cb"
312
312
  },
313
313
  {
314
314
  "path": "sdk-core.js.map",
315
- "sha256": "6fd019f83b6afc0351496254a2c9111f10954b1de3aded9be390a37cd62c3edb"
315
+ "sha256": "54dbfb933b4ad312636dd01c617bebad89d928766380409bb2ddb65eb15379d5"
316
316
  },
317
317
  {
318
318
  "path": "sdk-governance.js",
319
- "sha256": "5c56f02b168ee94f7587695e88b741e3102e354087f64a9b13719a8d9f616855"
319
+ "sha256": "99086861d93506928459bb617c7c44a928fcb8d6b1f4d6753338d1fa1ab1262d"
320
320
  },
321
321
  {
322
322
  "path": "sdk-governance.js.map",
@@ -324,7 +324,7 @@
324
324
  },
325
325
  {
326
326
  "path": "sdk-graph.js",
327
- "sha256": "71396525d33605487984ed67ad3eaf898f2b8256221fd1042311d4e00f1ce001"
327
+ "sha256": "04bf7168468b42110fd0f5826bf2465431dc62eafc79044f6ce673f38c6c490b"
328
328
  },
329
329
  {
330
330
  "path": "sdk-graph.js.map",
@@ -332,15 +332,15 @@
332
332
  },
333
333
  {
334
334
  "path": "sdk-merge.js",
335
- "sha256": "d6bf5ac642c3891dbb084596673a6247a64910f590a2ebeecf92e4db7e4e4dc5"
335
+ "sha256": "afadf9a4265c9547c5b34e0c482c360d43ae40968117aa3112738a323b1d522e"
336
336
  },
337
337
  {
338
338
  "path": "sdk-merge.js.map",
339
- "sha256": "d13f6fed2da18042e9ad15114e94ef90c435564cf287d84a9658353f52e16c5d"
339
+ "sha256": "414810dd5d0bd5ced3924c86be8e7e5d3ffa7fb9b015d1df91e1004caea3ef36"
340
340
  },
341
341
  {
342
342
  "path": "sdk-query.js",
343
- "sha256": "3f60133dd34adb8c223c7cc484f0493ca179bf08e8ef296958cabc0ab8e4dd5c"
343
+ "sha256": "a08d2221138a288c4567a67c6bb57d14815867da4edfa4109a4bf32064ae6699"
344
344
  },
345
345
  {
346
346
  "path": "sdk-query.js.map",
@@ -348,7 +348,7 @@
348
348
  },
349
349
  {
350
350
  "path": "sdk-runtime.js",
351
- "sha256": "045eb28988af6b556d3f967063af3c05b5f42f1bf6a13b8a74c3854b43fbd47d"
351
+ "sha256": "1c7684f52d07402d717d45559ff0ec6279a6fe887fb83878b2c807a7e1160bcb"
352
352
  },
353
353
  {
354
354
  "path": "sdk-runtime.js.map",
@@ -356,7 +356,7 @@
356
356
  },
357
357
  {
358
358
  "path": "sdk-testing.js",
359
- "sha256": "bb35a057f0bd87bfd8de3feee95b0cebd2a1ba8e1d757734cad909fdf8e0f204"
359
+ "sha256": "c22c2ab49a1de251f9e1d2a88ba0e5f67e572bb8e5cd65ed9f34c3f137a82ce4"
360
360
  },
361
361
  {
362
362
  "path": "sdk-testing.js.map",
@@ -364,11 +364,11 @@
364
364
  },
365
365
  {
366
366
  "path": "sdk.js",
367
- "sha256": "c4e75ea6c79f873a25a05dd040d1691fb1f30ab783a03fe907bc768d03f3b899"
367
+ "sha256": "d7acefab1784cffc9cec186647ffead441122f9dd31632b987ce355d50aac738"
368
368
  },
369
369
  {
370
370
  "path": "sdk.js.map",
371
- "sha256": "835c77a917b79a1a99ccbcf54524160bef016b152aeb58f53fccf1245c0118ed"
371
+ "sha256": "2dca2051a6b62828e063db59132d89db813714d53774d6f5bddeb9224c504c53"
372
372
  }
373
373
  ]
374
374
  }
@@ -1,3 +1,3 @@
1
- import{bb as f,cb as _,eb as p,gb as g}from"./chunk-3FCSFWZT.js";import{wg as u}from"./chunk-NW6LV3TU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="95833d58-d6b9-5ab4-b447-5ce003643fd5")}catch{}})();var m="not-a-declared-intent",n="not-a-declared-field";function y(){let e={get:["pm-domain"],search:["Domain query"]},r=[...new Set(u.map(({command:o})=>o))].map(o=>{let i=u.filter(d=>d.command===o),s=i[0],c=e[s.command]??[];return{probe_id:`${s.command}-invalid-intent`,command:s.command,flag:"--for",rejected_value:m,refusal_args:[s.command,...c,"--for",m],allowed_values:i.map(({intent:d})=>d).sort(),suggested_retry_args:[s.command,...c,"--for",s.intent],error_code:"unknown_context_intent"}}),t=_(),l=Object.keys(f).map(o=>({probe_id:`${o}-invalid-field`,command:o,flag:"--fields",rejected_value:n,refusal_args:[o,"--fields",n],allowed_values:t,suggested_retry_args:[o,"--fields","id,title,status","--limit","10"],error_code:"unknown_field_projection"}));return[...r,...l,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:n,refusal_args:["get","pm-domain","--fields",n],allowed_values:p(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"package-upgrade-mutually-exclusive-modes",command:"package upgrade",flag:"--cli-only/--packages-only",rejected_value:"--cli-only+--packages-only",refusal_args:["package","upgrade","--cli-only","--packages-only","--dry-run"],allowed_values:[],suggested_retry_args:["package","upgrade","--packages-only","--dry-run"],error_code:"package_upgrade_modes_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:n,refusal_args:["search","Domain query","--fields",n],allowed_values:g(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((o,i)=>o.probe_id.localeCompare(i.probe_id))}function j(e,r){let t=y().find(o=>o.command===e&&o.flag===r);if(!t)return"No stable core values are declared.";let l=t.allowed_values.filter(o=>!o.startsWith("item.")),a=r==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${l.join("|")}.${a}`}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="38facf38-c1e1-5574-9e70-98977494d939")}catch{}})();function w(e){return e.map((r,t)=>{if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError(`NDJSON row ${t} must be a non-null object.`);let l=JSON.stringify(r);if(l===void 0)throw new TypeError(`NDJSON row ${t} must serialize to a non-null object.`);let a=JSON.parse(l);if(typeof a!="object"||a===null||Array.isArray(a))throw new TypeError(`NDJSON row ${t} must serialize to a non-null object.`);return l}).join(`
1
+ import{bb as f,cb as _,eb as p,gb as g}from"./chunk-GOACULJW.js";import{wg as u}from"./chunk-NOPL37X4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="95833d58-d6b9-5ab4-b447-5ce003643fd5")}catch{}})();var m="not-a-declared-intent",n="not-a-declared-field";function y(){let e={get:["pm-domain"],search:["Domain query"]},r=[...new Set(u.map(({command:o})=>o))].map(o=>{let i=u.filter(d=>d.command===o),s=i[0],c=e[s.command]??[];return{probe_id:`${s.command}-invalid-intent`,command:s.command,flag:"--for",rejected_value:m,refusal_args:[s.command,...c,"--for",m],allowed_values:i.map(({intent:d})=>d).sort(),suggested_retry_args:[s.command,...c,"--for",s.intent],error_code:"unknown_context_intent"}}),t=_(),l=Object.keys(f).map(o=>({probe_id:`${o}-invalid-field`,command:o,flag:"--fields",rejected_value:n,refusal_args:[o,"--fields",n],allowed_values:t,suggested_retry_args:[o,"--fields","id,title,status","--limit","10"],error_code:"unknown_field_projection"}));return[...r,...l,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:n,refusal_args:["get","pm-domain","--fields",n],allowed_values:p(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"package-upgrade-mutually-exclusive-modes",command:"package upgrade",flag:"--cli-only/--packages-only",rejected_value:"--cli-only+--packages-only",refusal_args:["package","upgrade","--cli-only","--packages-only","--dry-run"],allowed_values:[],suggested_retry_args:["package","upgrade","--packages-only","--dry-run"],error_code:"package_upgrade_modes_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:n,refusal_args:["search","Domain query","--fields",n],allowed_values:g(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((o,i)=>o.probe_id.localeCompare(i.probe_id))}function j(e,r){let t=y().find(o=>o.command===e&&o.flag===r);if(!t)return"No stable core values are declared.";let l=t.allowed_values.filter(o=>!o.startsWith("item.")),a=r==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${l.join("|")}.${a}`}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="38facf38-c1e1-5574-9e70-98977494d939")}catch{}})();function w(e){return e.map((r,t)=>{if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError(`NDJSON row ${t} must be a non-null object.`);let l=JSON.stringify(r);if(l===void 0)throw new TypeError(`NDJSON row ${t} must serialize to a non-null object.`);let a=JSON.parse(l);if(typeof a!="object"||a===null||Array.isArray(a))throw new TypeError(`NDJSON row ${t} must serialize to a non-null object.`);return l}).join(`
2
2
  `)}function E(e,r){if(r.count!==e.length)throw new TypeError(`NDJSON trailer count ${r.count} does not match ${e.length} ${e.length===1?"row":"rows"}.`);for(let[t,l]of e.entries())if(typeof l=="object"&&l!==null&&!Array.isArray(l)&&Reflect.get(l,"record_type")==="pm.stream.trailer")throw new TypeError(`NDJSON row ${t} uses reserved record_type pm.stream.trailer`);return w([...e,{...r,record_type:"pm.stream.trailer"}])}export{y as a,j as b,w as c,E as d};
3
- //# sourceMappingURL=chunk-52JXYSDW.js.map
3
+ //# sourceMappingURL=chunk-3WICXLVT.js.map
@@ -1,2 +1,2 @@
1
- import{C as p,E as m,He as F,Hg as D,O,P as L,T as N,ba as y,mf as v,sm as g,ue as P,ve as w}from"./chunk-NW6LV3TU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae031bac-f5a1-5762-9c58-0410b8f1f86d")}catch{}})();var f=Object.freeze({clock:"PM_CLOCK",tickMs:"PM_CLOCK_TICK_MS",seed:"PM_SEED"});function I(e,t,n,o){return new m(e,p.USAGE,{code:"invalid_reproducible_process_environment",reason:t,field:n,required:`${f.clock} and ${f.seed}; ${f.tickMs} is optional`,nextSteps:[`Set ${f.clock} to an ISO-8601 instant with Z or a numeric UTC offset and ${f.seed} to a non-empty reproducibility seed.`,`Optionally set ${f.tickMs} to a non-negative integer; it defaults to 1.`,"Unset all three variables to retain normal wall-clock and cryptographic-random behavior."],recovery:{recovery_mode:"compact",provided_fields:o,missing_required_fields:t==="incomplete"?[f.clock,f.seed].filter(i=>!o.includes(i)):void 0}})}function K(e){let t=e[f.clock],n=e[f.tickMs],o=e[f.seed],i=[[f.clock,t],[f.tickMs,n],[f.seed,o]].filter(r=>r[1]!==void 0).map(([r])=>r);if(i.length===0)return;if(t===void 0||o===void 0)throw I("Reproducible process execution requires PM_CLOCK and PM_SEED together.","incomplete",t===void 0?f.clock:f.seed,i);if(o.trim().length===0)throw I(`${f.seed} must not be empty.`,"invalid_value",f.seed,i);if(!N(t))throw I(`${f.clock} must be a valid ISO-8601 instant with Z or a numeric UTC offset.`,"invalid_value",f.clock,i);let s=n===void 0?1:Number(n);if(n?.trim().length===0||!Number.isSafeInteger(s)||s<0)throw I(`${f.tickMs} must be a non-negative integer.`,"invalid_value",f.tickMs,i);return O({clock:t,seed:o,tickMs:s})}function Y(e){let t=K(e);return t===void 0?n=>n():L(t)}async function $e(e,t){return Y(e)(t)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="271cf7c1-f84b-5f59-aa13-ed8cb4ee232f")}catch{}})();var B=new Set(["append","claim","close","close-task","comments","copy","delete","deps","docs","files","focus","get","history","history-compact","history-redact","history-repair","learnings","notes","pause-task","release","restore","start-task","test","update"]),T=new Map([["files","discover"],["item","complete"]]),X=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),Z=new Map([["append",1],["close",1],["close-task",1],["comments",1],["item complete",1],["learnings",1],["notes",1],["restore",1]]);function H(e){let t=e?.trim().toLowerCase()??"";return B.has(t)||T.has(t)}function M(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(X.has(n)){t+=1;continue}if(!n.startsWith("-"))return t}}function V(e,t,n){let o=T.get(n);if(o===void 0)return t+1;let i=e[t+1]?.toLowerCase()===o;if(!(!i&&!B.has(n)))return t+(i?2:1)}function J(e){let t=new Map;for(let n of g(e))for(let o of[n.flag,n.short,...n.aliases??[]])o&&t.set(o,n);return t}function Q(e){let t=[];for(let n=0;n<e.length;n+=1){let o=e[n];if(o==="--")break;o==="--id"?(t.push({index:n,consumed:2,value:e[n+1]}),n+=1):o.startsWith("--id=")&&t.push({index:n,consumed:1,value:o.slice(5)})}return t}function ee(e,t,n){if(e.indexOf("=")>=0||t===void 0||t.startsWith("-"))return!1;let i=n.get(e);return i!==void 0&&i.value_type!=="boolean"}function te(e,t,n,o,i){let s=0;for(let r=t;r<e.length;r+=1){let a=e[r];if(a==="--")break;if(a==="--id"){r+=1;continue}if(!a.startsWith("--id=")){if(!a.startsWith("-")){if(r<o)return!0;s+=1;continue}ee(a,e[r+1],i)&&(r+=1)}}return s>(Z.get(n)??0)}function R(e){let t=M(e),n=t===void 0?void 0:e[t]?.toLowerCase();if(!H(n))return{argv:[...e],changed:!1,conflict:!1};let o=T.get(n)===e[t+1]?.toLowerCase()?`${n} ${e[t+1]?.toLowerCase()}`:n,i=J(o),s=Q(e),r=s[0];if(!r||!r.value?.trim())return{argv:[...e],changed:!1,conflict:!1};let a=V(e,t,n);if(a===void 0)return{argv:[...e],changed:!1,conflict:!1};if(s.length>1||te(e,a,o,r.index,i))return{argv:[...e],changed:!1,conflict:!0,itemId:r.value};let u=[...e.slice(0,r.index),...e.slice(r.index+r.consumed)],c=M(u),l=V(u,c,n);return u.splice(l,0,r.value),{argv:u,changed:!0,conflict:!1,itemId:r.value}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9d04e30a-caf5-59b4-8853-9df39c1728aa")}catch{}})();var b=new Set(["--pm-path","--path","--author","--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),x=new Set(["--no-extensions","--no-pager","--json","--quiet","--lean","--token-accounting","--output-row-contract","--all"]);function E(e){let t=e.indexOf("=");return t>0&&b.has(e.slice(0,t))}function _(e,t){return typeof t!="string"?!1:e==="--path"||e==="--pm-path"||!t.startsWith("-")}function S(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(b.has(n)){t+=_(n,e[t+1])?1:0;continue}if(!(E(n)||x.has(n)||n==="--profile"||n==="--id-only"||n==="--explain")&&!n.startsWith("-"))return t}}function C(e){let t=S(e);return t===void 0?void 0:e[t].trim().toLowerCase()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3d35c0f5-e1b8-5fd8-8fd7-c754a21784a1")}catch{}})();var ne=new Set(["--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]);function oe(e,t,n){let o=e[t];if(x.has(o))return n.booleanFlags.add(o),1;let i=o.indexOf("="),s=i>0?o.slice(0,i):o;if(!b.has(s))return 1;let r=i>0?o.slice(i+1):void 0,a=r===void 0&&_(s,e[t+1]),u=r??(a?e[t+1]:void 0);return s==="--author"?n.author=u??"":typeof u=="string"&&u.length>0&&(ne.has(s)?n.outputValues:n.pathValues).set(s,u),a?2:1}function ie(e){let t={booleanFlags:new Set,outputValues:new Map,pathValues:new Map},n=0;for(;n<e.length&&e[n]!=="--";)n+=oe(e,n,t);return{path:t.pathValues.get("--pm-path")??t.pathValues.get("--path"),noExtensions:t.booleanFlags.has("--no-extensions"),noPager:t.booleanFlags.has("--no-pager"),json:t.booleanFlags.has("--json"),quiet:t.booleanFlags.has("--quiet"),lean:t.booleanFlags.has("--lean"),tokenAccounting:t.booleanFlags.has("--token-accounting"),...t.booleanFlags.has("--output-row-contract")?{outputRowContract:!0}:{},...t.outputValues.get("--output-include")===void 0?{}:{outputInclude:t.outputValues.get("--output-include")},...t.outputValues.get("--output-limit")===void 0?{}:{outputLimit:t.outputValues.get("--output-limit")},...t.outputValues.get("--output-budget")===void 0?{}:{outputBudget:t.outputValues.get("--output-budget")},...t.outputValues.get("--output-format")==="toon"||t.outputValues.get("--output-format")==="json"?{outputFormat:t.outputValues.get("--output-format")}:{},...t.outputValues.get("--output-session")===void 0?{}:{outputSession:t.outputValues.get("--output-session")},...t.outputValues.get("--output-cursor")===void 0?{}:{outputCursor:t.outputValues.get("--output-cursor")},...t.author===""?{authorMissingValue:!0}:t.author!==void 0?{author:t.author}:{}}}function G(e){let t=[],n=0;for(;n<e.length;){let o=e[n];if(o==="--")break;if(x.has(o)||o==="--profile"||o==="--id-only"||o==="--full-changed-fields"||o==="--explain"){n+=1;continue}if(b.has(o)){n+=_(o,e[n+1])?2:1;continue}if(E(o)){n+=1;continue}t.push(o),n+=1}return t}function se(e){let t=G(e);if(t[0]?.trim().toLowerCase()==="help"){let s=[];for(let r=1;r<t.length;r+=1){let a=t[r];if(a.startsWith("-"))break;s.push(a.trim().toLowerCase())}return{requested:!0,commandPathTokens:s}}if(t.findIndex(s=>s==="--help"||s==="-h")<0)return{requested:!1,commandPathTokens:[]};let i=[];for(let s of t){if(s.startsWith("-"))break;i.push(s.trim().toLowerCase())}return{requested:!0,commandPathTokens:i}}function A(e){return S(e)}function re(e){return C(e)}function ae(e,t){return t.noPager?!0:process.stdout.isTTY===!0?!1:se(e).requested}function et(e){let t=["PAGER","MANPAGER","GIT_PAGER","LESS"],n=t.map(s=>process.env[s]),o=()=>{for(let[s,r]of t.entries()){let a=n[s];a===void 0?delete process.env[r]:process.env[r]=a}},i=ie(e);return ae(e,i)&&(process.env.PAGER="cat",process.env.MANPAGER="cat",process.env.GIT_PAGER="cat",(typeof process.env.LESS!="string"||process.env.LESS.trim().length===0)&&(process.env.LESS="FRX")),o}var ue=new Set(["install","uninstall","explore","manage","doctor","adopt","adopt-all","activate","deactivate"]);function ce(e){let t=A(e);if(t===void 0||e[t]!=="extension")return[...e];let n=e[t+1];if(!n||n.startsWith("-"))return[...e];if(!ue.has(n))return[...e];if(e.includes("--help")||e.includes("-h"))return[...e];let o=`--${n}`;return e.includes(o)?[...e]:[...e.slice(0,t+1),o,...e.slice(t+2)]}var le=new Set(["pm","pm-cli"]);function de(e,t){let n=A(e);if(n===void 0)return e;let o=e[n];return le.has(o.trim().toLowerCase())?(t.push({from:o,to:[],reason:"executable_alias",confidence:"high"}),[...e.slice(0,n),...e.slice(n+1)]):e}function fe(e,t){let n=A(e);if(n===void 0)return e;let o=e[n],i=v[o.trim().toLowerCase()];if(!i)return e;let s=[...e];return s[n]=i,t.push({from:o,to:[i],reason:"command_alias",confidence:"high"}),s}function k(e){return e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function $(e){return k(e).replace(/-/g,"")}function z(e,t,n){let o=e.get(t);if(o===void 0){e.set(t,n);return}o!==n&&e.set(t,null)}function pe(e){let t=[],n=o=>{typeof o=="string"&&o.startsWith("--")&&t.push(o)};n(e.flag);for(let o of e.aliases??[])n(o);return t}function me(e,t){let n=t??g(e),o=new Map,i=new Map,s=new Map,r=new Set;for(let a of n){let u=pe(a);if(u.length===0)continue;let c=`--${k(u[0])}`;for(let d of u)z(o,k(d),c),z(i,$(d),c);let l=$(c);s.has(c)||s.set(c,l),a.list===!0&&r.add(c)}return{canonicalByNormalized:o,canonicalByCompact:i,canonicalComparables:[...s.entries()].map(([a,u])=>({canonicalFlag:a,comparable:u})),listCanonicalFlags:r}}function W(e,t){let n=k(e),o=t.canonicalByNormalized.get(n);if(typeof o=="string")return{flag:o,reason:"flag_alias",confidence:"high"};let i=n.replace(/-/g,""),s=t.canonicalByCompact.get(i);if(typeof s=="string")return{flag:s,reason:"flag_alias",confidence:"high"};let r=i.length>=8?2:1,a=Number.POSITIVE_INFINITY,u,c=!1;for(let l of t.canonicalComparables){let d=y(i,l.comparable,r);if(d!==null){if(d<a){a=d,u=l.canonicalFlag,c=!1;continue}d===a&&u!==l.canonicalFlag&&(c=!0)}}return!u||c||!Number.isFinite(a)||a<=0?null:{flag:u,reason:"flag_typo",confidence:a>=2?"medium":"high"}}function tt(e){let t=[`${e}s`];return e.endsWith("y")&&e.length>1&&t.push(`${e.slice(0,-1)}ies`),t}function he(e,t=!1){if(t||e.includes("://"))return null;let n=e.match(/^([A-Za-z][A-Za-z0-9_-]{1,63})([:=])(.*)$/);if(!n)return null;let o=n[1],i=n[3];return i.length===0?null:{key:o,value:i}}function ge(e,t,n=!1){if(n||!e.startsWith("--"))return{tokens:[e]};let o=e.indexOf("="),i=o>=0?e.slice(0,o):e,s=o>=0?e.slice(o+1):void 0,r=W(i,t);if(!r)return{tokens:[e]};let a=s===void 0?r.flag:`${r.flag}=${s}`;return a===e?{tokens:[e]}:{tokens:[a],event:{from:e,to:[a],reason:r.reason,confidence:r.confidence}}}function be(e){let t=new Set,n=!1;for(let o=0;o<e.length;o+=1){if(n){t.add(o),n=!1;continue}let i=e[o];n=i==="--path"||i==="--pm-path"}return t}function ye(e){if(!e.startsWith("--"))return null;let t=e.indexOf("=");return t<0?{flag:e}:{flag:e.slice(0,t),inlineValue:e.slice(t+1)}}function we(e,t,n){n.push(e[t]);let o=e[t+1];return typeof o=="string"&&o!=="--"?(n.push(o),t+2):t+1}function Ie(e,t,n,o){if(n.inlineValue!==void 0)return{originalTokens:[e[t]],value:n.inlineValue,consumed:1};let i=[],s=t+1;for(;s<e.length&&e[s]!=="--"&&!e[s].startsWith("-")&&(i.length===0||o.has(n.flag));)i.push(e[s]),s+=1;let r=i.length===0?1:1+i.length;return{originalTokens:e.slice(t,t+r),value:i.length===0?void 0:i.join(","),consumed:r}}function xe(e,t,n,o){let i=e.get(n);if(i){i.values.push(o.value),i.occurrences+=1;return}e.set(n,{outputIndex:t.length,originalTokens:o.originalTokens,values:[o.value],occurrences:1}),t.push(null)}function _e(e,t){let n=[],o=[];for(let[i,s]of e){if(!(s.occurrences>=2||t.has(i)&&s.originalTokens.length>2)){o.push({outputIndex:s.outputIndex,tokens:s.originalTokens});continue}let a=`${i}=${s.values.join(",")}`;o.push({outputIndex:s.outputIndex,tokens:[a]}),n.push({from:`${i} (x${s.occurrences})`,to:[a],reason:"list_merge",confidence:"high"})}return{events:n,splices:o}}function Ce(e,t){t.sort((n,o)=>o.outputIndex-n.outputIndex);for(let n of t)e.splice(n.outputIndex,1,...n.tokens)}function ke(e,t,n=new Set,o=new Set){if(t.size===0)return{argv:[...e],events:[]};let i=[],s=new Map,r=0;for(;r<e.length;){let c=e[r];if(c==="--"){i.push(...e.slice(r));break}if(n.has(c)){r=we(e,r,i);continue}let l=ye(c);if(!l||!t.has(l.flag)){i.push(c),r+=1;continue}let d=Ie(e,r,l,o);if(d.value===void 0){i.push(c),r+=d.consumed;continue}xe(s,i,l.flag,{originalTokens:d.originalTokens,value:d.value}),r+=d.consumed}let{events:a,splices:u}=_e(s,o);return Ce(i,u),{argv:i,events:a}}var U=new Map([["--add",new Set(["command","cmd","path"])],["--remove",new Set(["command","path"])]]);function Te(e,t){if(e!=="test"||t.length<2)return!1;let n=t[t.length-1],o=t[t.length-2],i=U.get(o);return i!==void 0&&i.has(n)}function Ee(e,t){return e==="search"||Te(e,t)}function Se(e,t,n){if(t!=="test")return e;let o=[],i=0;for(;i<e.length;){let s=e[i];if(s==="--")return o.push(...e.slice(i)),o;let r=U.get(s),a=r?e[i+1]:void 0;if(!r||typeof a!="string"||!r.has(a)){o.push(s),i+=1;continue}let u=i+2;for(;u<e.length&&!e[u].startsWith("-");)u+=1;if(u-(i+2)!==1){o.push(s),i+=1;continue}let c=e[i+2],l=`${a}=${c}`;o.push(s,l),n.push({from:`${s} ${a} ${c}`,to:[s,l],reason:"bare_key_value",confidence:"high"}),i+=3}return o}function Ae(e,t,n,o){let i=[],s=be(e);for(let r=0;r<e.length;r+=1){let a=e[r];if(a==="--"){i.push(...e.slice(r));break}let u=s.has(r),c=i[i.length-1];if(a.startsWith("--")){let d=ge(a,t,u);i.push(...d.tokens),d.event&&o.push(d.event);continue}let l=he(a,u);if(l&&!(typeof c=="string"&&c.startsWith("-"))&&!Ee(n,i)){let d=W(l.key,t);if(d){let h=[d.flag,l.value];i.push(...h),o.push({from:a,to:h,reason:"bare_key_value",confidence:d.confidence});continue}}i.push(a)}return i}function nt(e){let t=[],n=de(e,t),o=ce(n);(o.length!==n.length||o.some((h,j)=>h!==n[j]))&&t.push({from:n.join(" "),to:[...o],reason:"legacy_extension_action",confidence:"high"});let i=fe(o,t),s=R(i);if(s.conflict)throw new m("Provide the item id either positionally or with --id, not both.",p.USAGE);s.changed&&t.push({from:`--id ${s.itemId}`,to:[s.itemId],reason:"item_id_alias",confidence:"high"});let r=re(s.argv),a=Oe(s.argv),u=me(a??r),c=Ae(s.argv,u,r,t),l=Se(c,r,t),d=ke(l,u.listCanonicalFlags,b,r==="create"?new Set(["--tags"]):new Set);for(let h of d.events)t.push(h);return{argv:d.argv,commandName:r,trace:t}}function Oe(e){let t=G(e),n=t[0]?.trim().toLowerCase(),o=t[1]?.trim().toLowerCase();return(n==="extension"||n==="package"||n==="packages")&&typeof o=="string"&&o.length>0&&!o.startsWith("-")?`${n} ${o}`:n}function ot(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")break;if(n==="--type"){let o=e[t+1];if(typeof o=="string"&&o.trim().length>0)return o.trim();continue}if(n.startsWith("--type=")){let o=n.slice(7).trim();if(o.length>0)return o}}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6084a18e-ccda-57f9-a7d8-45572799c021")}catch{}})();function q(e){return e.trim().match(/--[a-z0-9][a-z0-9_-]*/i)?.[0]?.replaceAll("_","-").toLowerCase()}function ut(e){if(!(!Array.isArray(e)||e.length===0))return C(e)}function Le(e,t){let n=q(t);if(!n)return;let o=g(e).find(i=>i.flag===n||i.aliases?.includes(n));return o?o.value_type==="boolean"?null:`<${o.value_name??"value"}>`:"<value>"}function ct(e,t,n){let o=[...e],i=o.indexOf("--"),s=i<0?o.length:i;for(let r of n){let a=q(r);if(!a||o.slice(0,s).some(l=>l===a||l.startsWith(`${a}=`)))continue;let u=Le(t,a),c=u?[a,u]:[a];o.splice(s,0,...c),s+=c.length}return o.length===e.length?void 0:F(o)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d82065d1-488d-523e-9df2-a30056f29603")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5810cf1d-fc9a-597b-a47e-a914009fadfa")}catch{}})();function gt(e){return e instanceof m||e instanceof Error?e.message:"Unknown failure"}function Ne(e){if(typeof e!="object"||e===null||!("exitCode"in e))return;let t=e.exitCode;return typeof t=="number"&&Number.isFinite(t)?t:void 0}function Pe(e){let t=Math.trunc(e);return t>p.SUCCESS?t:p.GENERIC_FAILURE}function bt(e){return typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"&&e.code.startsWith("commander.")}function yt(e,t){if(e instanceof Error)return e;let n=new Error(t),o=Ne(e);return o!==void 0&&(n.exitCode=Pe(o)),n}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8f7cca3d-9b19-53b4-a510-5290aaf75e12")}catch{}})();function Ct(e){if(e===void 0)return()=>{};let t=e.trim();if(t.length===0)throw new m("--author requires a non-empty value.",p.USAGE,{code:"missing_required_argument",nextSteps:["Pass an explicit author identifier with --author <id>."]});let n=P();w(t);let o=!1;return()=>{o||(o=!0,n===void 0?w(void 0):w(n))}}import{Command as Fe}from"commander";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="31e820a7-aa60-5e37-846d-c62b81b47587")}catch{}})();function St(e){return new Fe().name("pm").description("Universal, flexible, extensible, agent-optimized project management CLI for any project or programming language.").version(e).showHelpAfterError(!1).allowExcessArguments(!1).allowUnknownOption(!1).configureOutput({writeOut:t=>{D(t)},writeErr:()=>{}}).option("--json","Output JSON instead of TOON; mutations emit a flat receipt with top-level id/status/changed_field_count while reads use documented entity or collection envelopes").option("--lean","Omit null and empty containers from JSON output").option("--token-accounting","Attach a bounded per-section token-cost receipt to command output").option("--output-include <fields>","Retain comma-separated fields or sections in read output").option("--output-limit <count>","Bound rows in read output").option("--output-budget <tokens|unbounded>","Bound estimated tokens in read output or explicitly disable the default ceiling").option("--output-format <toon|json>","Select the read-output encoding").option("--output-session <state>","Carry a JSON session budget and served-item ledger across read calls").option("--output-cursor <cursor>","Resume a budget-compacted declared row collection").option("--output-row-contract","Include the machine-readable row selector and TOON encoding contract").option("--quiet","Suppress stdout output").option("--no-changed-fields","Omit the changed_fields array from mutation output (keeps changed_field_count)").option("--full-changed-fields","Restore the legacy full mutation envelope and changed_fields array").option("--id-only","Print only id and status for single-item mutation output").option("--pm-path <dir>","Explicit tracker storage path for this command (preferred over --path)").option("--path <dir>","Backward-compatible alias for --pm-path; this is the tracker storage path, not a workspace cwd").option("--no-extensions","Disable extension loading").option("--no-pager","Disable pager integration for help and long output").option("--explain","Render extended rationale and examples in help output").option("--all","Reveal every public command and compatibility alias").option("--profile","Print deterministic timing diagnostics").option("--author <id>","Override mutation author for this invocation").exitOverride()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="71e5a870-f62f-5252-b4e9-e1a42e36009f")}catch{}})();var ve={add:["create","append"],fetch:["get"],inspect:["get","health"],log:["history","comments","notes"],ls:["list"],pause:["release"],read:["get"],remove:["delete"],rm:["delete"],show:["get"]};function De(e,t){let n=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(o.length===0)return Number.POSITIVE_INFINITY;let i=n.split(" "),s=ve[o]?.indexOf(n);if(s!==void 0&&s>=0)return s;if(n===o)return 10;if(i.includes(o))return 11;if(i.some(u=>u.startsWith(o)))return 12;let r=o.length>=5?2:1,a=Number.POSITIVE_INFINITY;for(let u of i){let c=y(u,o,r);c!==null&&(a=Math.min(a,c))}return Number.isFinite(a)?20+a:n.includes(o)?30:Number.POSITIVE_INFINITY}function Lt(e,t){return e.map(n=>({path:n,score:De(n,t)})).filter(n=>Number.isFinite(n.score)).sort((n,o)=>n.score!==o.score?n.score-o.score:n.path===o.path?0:n.path<o.path?-1:1).map(n=>n.path)}export{f as a,K as b,Y as c,$e as d,H as e,R as f,C as g,ie as h,G as i,se as j,A as k,re as l,et as m,ce as n,tt as o,ke as p,Se as q,nt as r,ot as s,ut as t,Le as u,ct as v,gt as w,Ne as x,Pe as y,bt as z,yt as A,Ct as B,St as C,De as D,Lt as E};
2
- //# sourceMappingURL=chunk-JIFYOJF7.js.map
1
+ import{C as p,E as m,He as F,Hg as D,O,P as L,T as N,ba as y,mf as v,ue as P,um as g,ve as w}from"./chunk-NOPL37X4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae031bac-f5a1-5762-9c58-0410b8f1f86d")}catch{}})();var f=Object.freeze({clock:"PM_CLOCK",tickMs:"PM_CLOCK_TICK_MS",seed:"PM_SEED"});function I(e,t,n,o){return new m(e,p.USAGE,{code:"invalid_reproducible_process_environment",reason:t,field:n,required:`${f.clock} and ${f.seed}; ${f.tickMs} is optional`,nextSteps:[`Set ${f.clock} to an ISO-8601 instant with Z or a numeric UTC offset and ${f.seed} to a non-empty reproducibility seed.`,`Optionally set ${f.tickMs} to a non-negative integer; it defaults to 1.`,"Unset all three variables to retain normal wall-clock and cryptographic-random behavior."],recovery:{recovery_mode:"compact",provided_fields:o,missing_required_fields:t==="incomplete"?[f.clock,f.seed].filter(i=>!o.includes(i)):void 0}})}function K(e){let t=e[f.clock],n=e[f.tickMs],o=e[f.seed],i=[[f.clock,t],[f.tickMs,n],[f.seed,o]].filter(r=>r[1]!==void 0).map(([r])=>r);if(i.length===0)return;if(t===void 0||o===void 0)throw I("Reproducible process execution requires PM_CLOCK and PM_SEED together.","incomplete",t===void 0?f.clock:f.seed,i);if(o.trim().length===0)throw I(`${f.seed} must not be empty.`,"invalid_value",f.seed,i);if(!N(t))throw I(`${f.clock} must be a valid ISO-8601 instant with Z or a numeric UTC offset.`,"invalid_value",f.clock,i);let s=n===void 0?1:Number(n);if(n?.trim().length===0||!Number.isSafeInteger(s)||s<0)throw I(`${f.tickMs} must be a non-negative integer.`,"invalid_value",f.tickMs,i);return O({clock:t,seed:o,tickMs:s})}function Y(e){let t=K(e);return t===void 0?n=>n():L(t)}async function $e(e,t){return Y(e)(t)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="271cf7c1-f84b-5f59-aa13-ed8cb4ee232f")}catch{}})();var B=new Set(["append","claim","close","close-task","comments","copy","delete","deps","docs","files","focus","get","history","history-compact","history-redact","history-repair","learnings","notes","pause-task","release","restore","start-task","test","update"]),T=new Map([["files","discover"],["item","complete"]]),X=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),Z=new Map([["append",1],["close",1],["close-task",1],["comments",1],["item complete",1],["learnings",1],["notes",1],["restore",1]]);function H(e){let t=e?.trim().toLowerCase()??"";return B.has(t)||T.has(t)}function M(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(X.has(n)){t+=1;continue}if(!n.startsWith("-"))return t}}function V(e,t,n){let o=T.get(n);if(o===void 0)return t+1;let i=e[t+1]?.toLowerCase()===o;if(!(!i&&!B.has(n)))return t+(i?2:1)}function J(e){let t=new Map;for(let n of g(e))for(let o of[n.flag,n.short,...n.aliases??[]])o&&t.set(o,n);return t}function Q(e){let t=[];for(let n=0;n<e.length;n+=1){let o=e[n];if(o==="--")break;o==="--id"?(t.push({index:n,consumed:2,value:e[n+1]}),n+=1):o.startsWith("--id=")&&t.push({index:n,consumed:1,value:o.slice(5)})}return t}function ee(e,t,n){if(e.indexOf("=")>=0||t===void 0||t.startsWith("-"))return!1;let i=n.get(e);return i!==void 0&&i.value_type!=="boolean"}function te(e,t,n,o,i){let s=0;for(let r=t;r<e.length;r+=1){let a=e[r];if(a==="--")break;if(a==="--id"){r+=1;continue}if(!a.startsWith("--id=")){if(!a.startsWith("-")){if(r<o)return!0;s+=1;continue}ee(a,e[r+1],i)&&(r+=1)}}return s>(Z.get(n)??0)}function R(e){let t=M(e),n=t===void 0?void 0:e[t]?.toLowerCase();if(!H(n))return{argv:[...e],changed:!1,conflict:!1};let o=T.get(n)===e[t+1]?.toLowerCase()?`${n} ${e[t+1]?.toLowerCase()}`:n,i=J(o),s=Q(e),r=s[0];if(!r||!r.value?.trim())return{argv:[...e],changed:!1,conflict:!1};let a=V(e,t,n);if(a===void 0)return{argv:[...e],changed:!1,conflict:!1};if(s.length>1||te(e,a,o,r.index,i))return{argv:[...e],changed:!1,conflict:!0,itemId:r.value};let u=[...e.slice(0,r.index),...e.slice(r.index+r.consumed)],c=M(u),l=V(u,c,n);return u.splice(l,0,r.value),{argv:u,changed:!0,conflict:!1,itemId:r.value}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9d04e30a-caf5-59b4-8853-9df39c1728aa")}catch{}})();var b=new Set(["--pm-path","--path","--author","--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),x=new Set(["--no-extensions","--no-pager","--json","--quiet","--lean","--token-accounting","--output-row-contract","--all"]);function E(e){let t=e.indexOf("=");return t>0&&b.has(e.slice(0,t))}function _(e,t){return typeof t!="string"?!1:e==="--path"||e==="--pm-path"||!t.startsWith("-")}function S(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(b.has(n)){t+=_(n,e[t+1])?1:0;continue}if(!(E(n)||x.has(n)||n==="--profile"||n==="--id-only"||n==="--explain")&&!n.startsWith("-"))return t}}function C(e){let t=S(e);return t===void 0?void 0:e[t].trim().toLowerCase()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3d35c0f5-e1b8-5fd8-8fd7-c754a21784a1")}catch{}})();var ne=new Set(["--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]);function oe(e,t,n){let o=e[t];if(x.has(o))return n.booleanFlags.add(o),1;let i=o.indexOf("="),s=i>0?o.slice(0,i):o;if(!b.has(s))return 1;let r=i>0?o.slice(i+1):void 0,a=r===void 0&&_(s,e[t+1]),u=r??(a?e[t+1]:void 0);return s==="--author"?n.author=u??"":typeof u=="string"&&u.length>0&&(ne.has(s)?n.outputValues:n.pathValues).set(s,u),a?2:1}function ie(e){let t={booleanFlags:new Set,outputValues:new Map,pathValues:new Map},n=0;for(;n<e.length&&e[n]!=="--";)n+=oe(e,n,t);return{path:t.pathValues.get("--pm-path")??t.pathValues.get("--path"),noExtensions:t.booleanFlags.has("--no-extensions"),noPager:t.booleanFlags.has("--no-pager"),json:t.booleanFlags.has("--json"),quiet:t.booleanFlags.has("--quiet"),lean:t.booleanFlags.has("--lean"),tokenAccounting:t.booleanFlags.has("--token-accounting"),...t.booleanFlags.has("--output-row-contract")?{outputRowContract:!0}:{},...t.outputValues.get("--output-include")===void 0?{}:{outputInclude:t.outputValues.get("--output-include")},...t.outputValues.get("--output-limit")===void 0?{}:{outputLimit:t.outputValues.get("--output-limit")},...t.outputValues.get("--output-budget")===void 0?{}:{outputBudget:t.outputValues.get("--output-budget")},...t.outputValues.get("--output-format")==="toon"||t.outputValues.get("--output-format")==="json"?{outputFormat:t.outputValues.get("--output-format")}:{},...t.outputValues.get("--output-session")===void 0?{}:{outputSession:t.outputValues.get("--output-session")},...t.outputValues.get("--output-cursor")===void 0?{}:{outputCursor:t.outputValues.get("--output-cursor")},...t.author===""?{authorMissingValue:!0}:t.author!==void 0?{author:t.author}:{}}}function G(e){let t=[],n=0;for(;n<e.length;){let o=e[n];if(o==="--")break;if(x.has(o)||o==="--profile"||o==="--id-only"||o==="--full-changed-fields"||o==="--explain"){n+=1;continue}if(b.has(o)){n+=_(o,e[n+1])?2:1;continue}if(E(o)){n+=1;continue}t.push(o),n+=1}return t}function se(e){let t=G(e);if(t[0]?.trim().toLowerCase()==="help"){let s=[];for(let r=1;r<t.length;r+=1){let a=t[r];if(a.startsWith("-"))break;s.push(a.trim().toLowerCase())}return{requested:!0,commandPathTokens:s}}if(t.findIndex(s=>s==="--help"||s==="-h")<0)return{requested:!1,commandPathTokens:[]};let i=[];for(let s of t){if(s.startsWith("-"))break;i.push(s.trim().toLowerCase())}return{requested:!0,commandPathTokens:i}}function A(e){return S(e)}function re(e){return C(e)}function ae(e,t){return t.noPager?!0:process.stdout.isTTY===!0?!1:se(e).requested}function et(e){let t=["PAGER","MANPAGER","GIT_PAGER","LESS"],n=t.map(s=>process.env[s]),o=()=>{for(let[s,r]of t.entries()){let a=n[s];a===void 0?delete process.env[r]:process.env[r]=a}},i=ie(e);return ae(e,i)&&(process.env.PAGER="cat",process.env.MANPAGER="cat",process.env.GIT_PAGER="cat",(typeof process.env.LESS!="string"||process.env.LESS.trim().length===0)&&(process.env.LESS="FRX")),o}var ue=new Set(["install","uninstall","explore","manage","doctor","adopt","adopt-all","activate","deactivate"]);function ce(e){let t=A(e);if(t===void 0||e[t]!=="extension")return[...e];let n=e[t+1];if(!n||n.startsWith("-"))return[...e];if(!ue.has(n))return[...e];if(e.includes("--help")||e.includes("-h"))return[...e];let o=`--${n}`;return e.includes(o)?[...e]:[...e.slice(0,t+1),o,...e.slice(t+2)]}var le=new Set(["pm","pm-cli"]);function de(e,t){let n=A(e);if(n===void 0)return e;let o=e[n];return le.has(o.trim().toLowerCase())?(t.push({from:o,to:[],reason:"executable_alias",confidence:"high"}),[...e.slice(0,n),...e.slice(n+1)]):e}function fe(e,t){let n=A(e);if(n===void 0)return e;let o=e[n],i=v[o.trim().toLowerCase()];if(!i)return e;let s=[...e];return s[n]=i,t.push({from:o,to:[i],reason:"command_alias",confidence:"high"}),s}function k(e){return e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function $(e){return k(e).replace(/-/g,"")}function z(e,t,n){let o=e.get(t);if(o===void 0){e.set(t,n);return}o!==n&&e.set(t,null)}function pe(e){let t=[],n=o=>{typeof o=="string"&&o.startsWith("--")&&t.push(o)};n(e.flag);for(let o of e.aliases??[])n(o);return t}function me(e,t){let n=t??g(e),o=new Map,i=new Map,s=new Map,r=new Set;for(let a of n){let u=pe(a);if(u.length===0)continue;let c=`--${k(u[0])}`;for(let d of u)z(o,k(d),c),z(i,$(d),c);let l=$(c);s.has(c)||s.set(c,l),a.list===!0&&r.add(c)}return{canonicalByNormalized:o,canonicalByCompact:i,canonicalComparables:[...s.entries()].map(([a,u])=>({canonicalFlag:a,comparable:u})),listCanonicalFlags:r}}function W(e,t){let n=k(e),o=t.canonicalByNormalized.get(n);if(typeof o=="string")return{flag:o,reason:"flag_alias",confidence:"high"};let i=n.replace(/-/g,""),s=t.canonicalByCompact.get(i);if(typeof s=="string")return{flag:s,reason:"flag_alias",confidence:"high"};let r=i.length>=8?2:1,a=Number.POSITIVE_INFINITY,u,c=!1;for(let l of t.canonicalComparables){let d=y(i,l.comparable,r);if(d!==null){if(d<a){a=d,u=l.canonicalFlag,c=!1;continue}d===a&&u!==l.canonicalFlag&&(c=!0)}}return!u||c||!Number.isFinite(a)||a<=0?null:{flag:u,reason:"flag_typo",confidence:a>=2?"medium":"high"}}function tt(e){let t=[`${e}s`];return e.endsWith("y")&&e.length>1&&t.push(`${e.slice(0,-1)}ies`),t}function he(e,t=!1){if(t||e.includes("://"))return null;let n=e.match(/^([A-Za-z][A-Za-z0-9_-]{1,63})([:=])(.*)$/);if(!n)return null;let o=n[1],i=n[3];return i.length===0?null:{key:o,value:i}}function ge(e,t,n=!1){if(n||!e.startsWith("--"))return{tokens:[e]};let o=e.indexOf("="),i=o>=0?e.slice(0,o):e,s=o>=0?e.slice(o+1):void 0,r=W(i,t);if(!r)return{tokens:[e]};let a=s===void 0?r.flag:`${r.flag}=${s}`;return a===e?{tokens:[e]}:{tokens:[a],event:{from:e,to:[a],reason:r.reason,confidence:r.confidence}}}function be(e){let t=new Set,n=!1;for(let o=0;o<e.length;o+=1){if(n){t.add(o),n=!1;continue}let i=e[o];n=i==="--path"||i==="--pm-path"}return t}function ye(e){if(!e.startsWith("--"))return null;let t=e.indexOf("=");return t<0?{flag:e}:{flag:e.slice(0,t),inlineValue:e.slice(t+1)}}function we(e,t,n){n.push(e[t]);let o=e[t+1];return typeof o=="string"&&o!=="--"?(n.push(o),t+2):t+1}function Ie(e,t,n,o){if(n.inlineValue!==void 0)return{originalTokens:[e[t]],value:n.inlineValue,consumed:1};let i=[],s=t+1;for(;s<e.length&&e[s]!=="--"&&!e[s].startsWith("-")&&(i.length===0||o.has(n.flag));)i.push(e[s]),s+=1;let r=i.length===0?1:1+i.length;return{originalTokens:e.slice(t,t+r),value:i.length===0?void 0:i.join(","),consumed:r}}function xe(e,t,n,o){let i=e.get(n);if(i){i.values.push(o.value),i.occurrences+=1;return}e.set(n,{outputIndex:t.length,originalTokens:o.originalTokens,values:[o.value],occurrences:1}),t.push(null)}function _e(e,t){let n=[],o=[];for(let[i,s]of e){if(!(s.occurrences>=2||t.has(i)&&s.originalTokens.length>2)){o.push({outputIndex:s.outputIndex,tokens:s.originalTokens});continue}let a=`${i}=${s.values.join(",")}`;o.push({outputIndex:s.outputIndex,tokens:[a]}),n.push({from:`${i} (x${s.occurrences})`,to:[a],reason:"list_merge",confidence:"high"})}return{events:n,splices:o}}function Ce(e,t){t.sort((n,o)=>o.outputIndex-n.outputIndex);for(let n of t)e.splice(n.outputIndex,1,...n.tokens)}function ke(e,t,n=new Set,o=new Set){if(t.size===0)return{argv:[...e],events:[]};let i=[],s=new Map,r=0;for(;r<e.length;){let c=e[r];if(c==="--"){i.push(...e.slice(r));break}if(n.has(c)){r=we(e,r,i);continue}let l=ye(c);if(!l||!t.has(l.flag)){i.push(c),r+=1;continue}let d=Ie(e,r,l,o);if(d.value===void 0){i.push(c),r+=d.consumed;continue}xe(s,i,l.flag,{originalTokens:d.originalTokens,value:d.value}),r+=d.consumed}let{events:a,splices:u}=_e(s,o);return Ce(i,u),{argv:i,events:a}}var U=new Map([["--add",new Set(["command","cmd","path"])],["--remove",new Set(["command","path"])]]);function Te(e,t){if(e!=="test"||t.length<2)return!1;let n=t[t.length-1],o=t[t.length-2],i=U.get(o);return i!==void 0&&i.has(n)}function Ee(e,t){return e==="search"||Te(e,t)}function Se(e,t,n){if(t!=="test")return e;let o=[],i=0;for(;i<e.length;){let s=e[i];if(s==="--")return o.push(...e.slice(i)),o;let r=U.get(s),a=r?e[i+1]:void 0;if(!r||typeof a!="string"||!r.has(a)){o.push(s),i+=1;continue}let u=i+2;for(;u<e.length&&!e[u].startsWith("-");)u+=1;if(u-(i+2)!==1){o.push(s),i+=1;continue}let c=e[i+2],l=`${a}=${c}`;o.push(s,l),n.push({from:`${s} ${a} ${c}`,to:[s,l],reason:"bare_key_value",confidence:"high"}),i+=3}return o}function Ae(e,t,n,o){let i=[],s=be(e);for(let r=0;r<e.length;r+=1){let a=e[r];if(a==="--"){i.push(...e.slice(r));break}let u=s.has(r),c=i[i.length-1];if(a.startsWith("--")){let d=ge(a,t,u);i.push(...d.tokens),d.event&&o.push(d.event);continue}let l=he(a,u);if(l&&!(typeof c=="string"&&c.startsWith("-"))&&!Ee(n,i)){let d=W(l.key,t);if(d){let h=[d.flag,l.value];i.push(...h),o.push({from:a,to:h,reason:"bare_key_value",confidence:d.confidence});continue}}i.push(a)}return i}function nt(e){let t=[],n=de(e,t),o=ce(n);(o.length!==n.length||o.some((h,j)=>h!==n[j]))&&t.push({from:n.join(" "),to:[...o],reason:"legacy_extension_action",confidence:"high"});let i=fe(o,t),s=R(i);if(s.conflict)throw new m("Provide the item id either positionally or with --id, not both.",p.USAGE);s.changed&&t.push({from:`--id ${s.itemId}`,to:[s.itemId],reason:"item_id_alias",confidence:"high"});let r=re(s.argv),a=Oe(s.argv),u=me(a??r),c=Ae(s.argv,u,r,t),l=Se(c,r,t),d=ke(l,u.listCanonicalFlags,b,r==="create"?new Set(["--tags"]):new Set);for(let h of d.events)t.push(h);return{argv:d.argv,commandName:r,trace:t}}function Oe(e){let t=G(e),n=t[0]?.trim().toLowerCase(),o=t[1]?.trim().toLowerCase();return(n==="extension"||n==="package"||n==="packages")&&typeof o=="string"&&o.length>0&&!o.startsWith("-")?`${n} ${o}`:n}function ot(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")break;if(n==="--type"){let o=e[t+1];if(typeof o=="string"&&o.trim().length>0)return o.trim();continue}if(n.startsWith("--type=")){let o=n.slice(7).trim();if(o.length>0)return o}}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6084a18e-ccda-57f9-a7d8-45572799c021")}catch{}})();function q(e){return e.trim().match(/--[a-z0-9][a-z0-9_-]*/i)?.[0]?.replaceAll("_","-").toLowerCase()}function ut(e){if(!(!Array.isArray(e)||e.length===0))return C(e)}function Le(e,t){let n=q(t);if(!n)return;let o=g(e).find(i=>i.flag===n||i.aliases?.includes(n));return o?o.value_type==="boolean"?null:`<${o.value_name??"value"}>`:"<value>"}function ct(e,t,n){let o=[...e],i=o.indexOf("--"),s=i<0?o.length:i;for(let r of n){let a=q(r);if(!a||o.slice(0,s).some(l=>l===a||l.startsWith(`${a}=`)))continue;let u=Le(t,a),c=u?[a,u]:[a];o.splice(s,0,...c),s+=c.length}return o.length===e.length?void 0:F(o)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d82065d1-488d-523e-9df2-a30056f29603")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5810cf1d-fc9a-597b-a47e-a914009fadfa")}catch{}})();function gt(e){return e instanceof m||e instanceof Error?e.message:"Unknown failure"}function Ne(e){if(typeof e!="object"||e===null||!("exitCode"in e))return;let t=e.exitCode;return typeof t=="number"&&Number.isFinite(t)?t:void 0}function Pe(e){let t=Math.trunc(e);return t>p.SUCCESS?t:p.GENERIC_FAILURE}function bt(e){return typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"&&e.code.startsWith("commander.")}function yt(e,t){if(e instanceof Error)return e;let n=new Error(t),o=Ne(e);return o!==void 0&&(n.exitCode=Pe(o)),n}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8f7cca3d-9b19-53b4-a510-5290aaf75e12")}catch{}})();function Ct(e){if(e===void 0)return()=>{};let t=e.trim();if(t.length===0)throw new m("--author requires a non-empty value.",p.USAGE,{code:"missing_required_argument",nextSteps:["Pass an explicit author identifier with --author <id>."]});let n=P();w(t);let o=!1;return()=>{o||(o=!0,n===void 0?w(void 0):w(n))}}import{Command as Fe}from"commander";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="31e820a7-aa60-5e37-846d-c62b81b47587")}catch{}})();function St(e){return new Fe().name("pm").description("Universal, flexible, extensible, agent-optimized project management CLI for any project or programming language.").version(e).showHelpAfterError(!1).allowExcessArguments(!1).allowUnknownOption(!1).configureOutput({writeOut:t=>{D(t)},writeErr:()=>{}}).option("--json","Output JSON instead of TOON; mutations emit a flat receipt with top-level id/status/changed_field_count while reads use documented entity or collection envelopes").option("--lean","Omit null and empty containers from JSON output").option("--token-accounting","Attach a bounded per-section token-cost receipt to command output").option("--output-include <fields>","Retain comma-separated fields or sections in read output").option("--output-limit <count>","Bound rows in read output").option("--output-budget <tokens|unbounded>","Bound estimated tokens in read output or explicitly disable the default ceiling").option("--output-format <toon|json>","Select the read-output encoding").option("--output-session <state>","Carry a JSON session budget and served-item ledger across read calls").option("--output-cursor <cursor>","Resume a budget-compacted declared row collection").option("--output-row-contract","Include the machine-readable row selector and TOON encoding contract").option("--quiet","Suppress stdout output").option("--no-changed-fields","Omit the changed_fields array from mutation output (keeps changed_field_count)").option("--full-changed-fields","Restore the legacy full mutation envelope and changed_fields array").option("--id-only","Print only id and status for single-item mutation output").option("--pm-path <dir>","Explicit tracker storage path for this command (preferred over --path)").option("--path <dir>","Backward-compatible alias for --pm-path; this is the tracker storage path, not a workspace cwd").option("--no-extensions","Disable extension loading").option("--no-pager","Disable pager integration for help and long output").option("--explain","Render extended rationale and examples in help output").option("--all","Reveal every public command and compatibility alias").option("--profile","Print deterministic timing diagnostics").option("--author <id>","Override mutation author for this invocation").exitOverride()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="71e5a870-f62f-5252-b4e9-e1a42e36009f")}catch{}})();var ve={add:["create","append"],fetch:["get"],inspect:["get","health"],log:["history","comments","notes"],ls:["list"],pause:["release"],read:["get"],remove:["delete"],rm:["delete"],show:["get"]};function De(e,t){let n=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(o.length===0)return Number.POSITIVE_INFINITY;let i=n.split(" "),s=ve[o]?.indexOf(n);if(s!==void 0&&s>=0)return s;if(n===o)return 10;if(i.includes(o))return 11;if(i.some(u=>u.startsWith(o)))return 12;let r=o.length>=5?2:1,a=Number.POSITIVE_INFINITY;for(let u of i){let c=y(u,o,r);c!==null&&(a=Math.min(a,c))}return Number.isFinite(a)?20+a:n.includes(o)?30:Number.POSITIVE_INFINITY}function Lt(e,t){return e.map(n=>({path:n,score:De(n,t)})).filter(n=>Number.isFinite(n.score)).sort((n,o)=>n.score!==o.score?n.score-o.score:n.path===o.path?0:n.path<o.path?-1:1).map(n=>n.path)}export{f as a,K as b,Y as c,$e as d,H as e,R as f,C as g,ie as h,G as i,se as j,A as k,re as l,et as m,ce as n,tt as o,ke as p,Se as q,nt as r,ot as s,ut as t,Le as u,ct as v,gt as w,Ne as x,Pe as y,bt as z,yt as A,Ct as B,St as C,De as D,Lt as E};
2
+ //# sourceMappingURL=chunk-DTGWEL23.js.map