@unbrained/pm-cli 2026.8.15 → 2026.8.16
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.
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +26 -9
- package/dist/cli/error-guidance.d.ts +5 -0
- package/dist/cli/error-guidance.js +15 -2
- package/dist/cli/register-history-author.js +16 -11
- package/dist/cli-bundle/bundle-manifest.json +142 -142
- package/dist/cli-bundle/chunks/{chunk-KIEGUBYQ.js → chunk-47OQEOQB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WLPDLNEZ.js → chunk-73UGEBRS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QHPCJWEJ.js → chunk-HCIYWD6M.js} +34 -34
- package/dist/cli-bundle/chunks/{chunk-J42EGKDK.js → chunk-I2LUWWR5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KLKYLSDX.js → chunk-IC5W2T34.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AIM6VT2N.js → chunk-PANOOBIS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MEM2ZS3O.js → chunk-RIS565OA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-24GAV7XL.js → chunk-TK6N7HGM.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-TOFG2URD.js +197 -0
- package/dist/cli-bundle/chunks/{chunk-LJHOAVGI.js → chunk-URW4QRMI.js} +47 -41
- package/dist/cli-bundle/chunks/{register-list-query-CT3LFDDN.js → register-list-query-EYCXHZAG.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-NWEVA5YS.js → register-mutation-7YVIG54J.js} +4 -4
- package/dist/cli-bundle/chunks/{register-operations-AHIAG5KM.js → register-operations-KGDNRMCL.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-ZJZFVAKE.js → register-setup-NVXBOD5I.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KTKH4IMG.js → chunk-4JPEBFFC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-5NMFSX26.js +155 -0
- package/dist/cli-bundle/focused-chunks/{chunk-ZMFXQ7VF.js → chunk-6ROKKT4X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-OKA6ELTL.js → chunk-725JSCMP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6XKF3PGV.js → chunk-C7JUBRFP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KLVUMNXJ.js → chunk-CODV5LUT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-DQ6SMTBF.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-HAACPSUW.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-EXZA4257.js → chunk-J4UFYHOD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7NJ4QYQ2.js → chunk-JX5Z344Q.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-PUISBOPP.js → chunk-L4RDYBIQ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-NSPYTG6G.js → chunk-NJ5RLEFD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KT5XMYSX.js → chunk-QYZERYR5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-M67F5AIN.js → chunk-SSNDYZTM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ITAUHSO6.js → chunk-T46KLOIB.js} +45 -45
- package/dist/cli-bundle/focused-chunks/{chunk-WTSER4WJ.js → chunk-TZATVC4G.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-WY3WRPVN.js +2 -0
- package/dist/cli-bundle/main.js +10 -10
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +27 -27
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +32 -32
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +2 -2
- package/dist/core/history/workspace-history.js +32 -10
- package/dist/core/output/output.js +6 -3
- package/dist/core/shared/errors.d.ts +2 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/store/item-store.js +28 -2
- package/dist/sdk/agent/refusal-reachability.d.ts +10 -2
- package/dist/sdk/agent/refusal-reachability.js +71 -3
- package/dist/sdk/author-attribution.d.ts +56 -11
- package/dist/sdk/author-attribution.js +174 -50
- package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +9 -2
- package/dist/sdk/cli-contracts/tool-schema.js +12 -4
- package/dist/sdk/completion.js +11 -4
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +38 -14
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +38 -2
- package/dist/sdk/governance/coverage-assurance.d.ts +24 -0
- package/dist/sdk/governance/coverage-assurance.js +61 -0
- package/dist/sdk/governance/extension-host-version.js +20 -9
- package/dist/sdk/index.d.ts +2 -1
- package/dist/sdk/index.js +4 -3
- package/dist/sdk/read-output-contracts.js +5 -3
- package/dist/sdk/runtime.d.ts +2 -5
- package/dist/sdk/runtime.js +3 -2
- package/docs/READ_OUTPUT_CONTRACTS.md +7 -1
- package/docs/RELEASING.md +13 -7
- package/docs/SDK_CONTEXT_INTEGRITY.md +33 -5
- package/docs/SDK_CONTEXT_TRUTH_CONTRACTS.md +13 -5
- package/marketplace.json +2 -2
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/sdk/public-surface.json +131 -16
- package/dist/cli-bundle/chunks/chunk-DSWDLTDR.js +0 -197
- package/dist/cli-bundle/focused-chunks/chunk-4X57RE4U.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-QLNMCESQ.js +0 -155
- package/dist/cli-bundle/focused-chunks/chunk-SLKC6QLJ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-U65UC4G3.js +0 -2
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"generation": "
|
|
3
|
+
"generation": "f415e8dd0a32a94ceea4c437f101ff23907ef8b462e3ed79b1e23ae37e177b44",
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
6
|
-
"path": "chunks/chunk-
|
|
7
|
-
"sha256": "
|
|
6
|
+
"path": "chunks/chunk-47OQEOQB.js",
|
|
7
|
+
"sha256": "7758555889b2d91a4f2f923bd8b149b3404d419e37f5903b7e726885c8974ce1"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
"path": "chunks/chunk-
|
|
11
|
-
"sha256": "
|
|
10
|
+
"path": "chunks/chunk-47OQEOQB.js.map",
|
|
11
|
+
"sha256": "c310ca73cebfb49192e28a6c532ad7132eb1d6845a4f8ed5ebbac127963c699e"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"path": "chunks/chunk-
|
|
15
|
-
"sha256": "
|
|
14
|
+
"path": "chunks/chunk-73UGEBRS.js",
|
|
15
|
+
"sha256": "921be07b9dd00e2322c144fa747ff26bc33a27f003b10283595b39dd6e9b4779"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"path": "chunks/chunk-
|
|
19
|
-
"sha256": "
|
|
18
|
+
"path": "chunks/chunk-73UGEBRS.js.map",
|
|
19
|
+
"sha256": "d9771db29a9769f0dc85e156df39035a482dea93b2e2a1b376ea216ee5d76e56"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"path": "chunks/chunk-
|
|
23
|
-
"sha256": "
|
|
22
|
+
"path": "chunks/chunk-HCIYWD6M.js",
|
|
23
|
+
"sha256": "60d32ddf2fe9ba1b34ee0b8bd8ce6424649249823075d2ed1b5fcd58a17d92cc"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"path": "chunks/chunk-
|
|
27
|
-
"sha256": "
|
|
26
|
+
"path": "chunks/chunk-HCIYWD6M.js.map",
|
|
27
|
+
"sha256": "f869b2b60761ad41084620ac74b95efb515d2de60dc2b371156aeaaf284510bd"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"path": "chunks/chunk-
|
|
31
|
-
"sha256": "
|
|
30
|
+
"path": "chunks/chunk-I2LUWWR5.js",
|
|
31
|
+
"sha256": "08ea6c471205113458c92621c3f9507817940a84963f5ad5117dd032e2f84611"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"path": "chunks/chunk-
|
|
34
|
+
"path": "chunks/chunk-I2LUWWR5.js.map",
|
|
35
35
|
"sha256": "cc14c1012ceed7eb2919b6e93a2b54773860cd983809c70f6424d745b8de333f"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"path": "chunks/chunk-
|
|
39
|
-
"sha256": "
|
|
38
|
+
"path": "chunks/chunk-IC5W2T34.js",
|
|
39
|
+
"sha256": "0a2f50ee7114a03b332186f64f149690619522c626bd57d3d96c6a1c8895e20e"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"path": "chunks/chunk-
|
|
43
|
-
"sha256": "
|
|
42
|
+
"path": "chunks/chunk-IC5W2T34.js.map",
|
|
43
|
+
"sha256": "366db6f4db43a17cf60d5a90057206d80acc466108ea4f7bf3f6a5efd6be9cbe"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"path": "chunks/chunk-
|
|
47
|
-
"sha256": "
|
|
46
|
+
"path": "chunks/chunk-OAC5NIV4.js",
|
|
47
|
+
"sha256": "6557d8b2ed9a44022150202ce6c364b1859b27a5e520fcee93c8e8f2537e5ab8"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
"path": "chunks/chunk-
|
|
51
|
-
"sha256": "
|
|
50
|
+
"path": "chunks/chunk-OAC5NIV4.js.map",
|
|
51
|
+
"sha256": "99b3d50e95749b3d90139b2cc0ce18aa1076e4087218d1cf63caa3ea4ce663de"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"path": "chunks/chunk-
|
|
55
|
-
"sha256": "
|
|
54
|
+
"path": "chunks/chunk-PANOOBIS.js",
|
|
55
|
+
"sha256": "ae394aac6ab2233241ea0507336622aeec8fd968ce826d0b6bd758d7e48c0c1d"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"path": "chunks/chunk-
|
|
59
|
-
"sha256": "
|
|
58
|
+
"path": "chunks/chunk-PANOOBIS.js.map",
|
|
59
|
+
"sha256": "2650a90186c451f6e58df4ed2e0d50021e9de4c8a1d97d923b2ed31b1d19f62a"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
"path": "chunks/chunk-
|
|
63
|
-
"sha256": "
|
|
62
|
+
"path": "chunks/chunk-QWRRFYK3.js",
|
|
63
|
+
"sha256": "8e299e100b8029f32f282886e8962fbd957129dac74315a4e7cd2432189f0c1c"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
"path": "chunks/chunk-
|
|
67
|
-
"sha256": "
|
|
66
|
+
"path": "chunks/chunk-QWRRFYK3.js.map",
|
|
67
|
+
"sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
"path": "chunks/chunk-
|
|
71
|
-
"sha256": "
|
|
70
|
+
"path": "chunks/chunk-RIS565OA.js",
|
|
71
|
+
"sha256": "113b876817427d67ff145be84079b0afec98f523c7464a08fc3e4bf252d3ec0f"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"path": "chunks/chunk-
|
|
75
|
-
"sha256": "
|
|
74
|
+
"path": "chunks/chunk-RIS565OA.js.map",
|
|
75
|
+
"sha256": "71746c46ec7ce3c02a59df2b70f35ed00e61f86d9aa9bc9f3e4d78630964560b"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"path": "chunks/chunk-
|
|
79
|
-
"sha256": "
|
|
78
|
+
"path": "chunks/chunk-TK6N7HGM.js",
|
|
79
|
+
"sha256": "59f80dc22bd25e9a548c38a12b11458f23b34892416d06234435347dc9ec88ee"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
"path": "chunks/chunk-
|
|
83
|
-
"sha256": "
|
|
82
|
+
"path": "chunks/chunk-TK6N7HGM.js.map",
|
|
83
|
+
"sha256": "55a6269171e06a3d9ccfa03b72091d3235df43fdf2c88f1b4ce9a9226245cdbd"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
"path": "chunks/chunk-
|
|
87
|
-
"sha256": "
|
|
86
|
+
"path": "chunks/chunk-TOFG2URD.js",
|
|
87
|
+
"sha256": "cae5ee784094a3c84aa1ea18cf88cb09eb73d4fdbc0e2f25d38bbc6e32c76255"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
"path": "chunks/chunk-
|
|
91
|
-
"sha256": "
|
|
90
|
+
"path": "chunks/chunk-TOFG2URD.js.map",
|
|
91
|
+
"sha256": "cbae5d88e798dd726ade8fe440fca60f169eca5914932d5106eb1cbb96fe4f24"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
"path": "chunks/chunk-
|
|
95
|
-
"sha256": "
|
|
94
|
+
"path": "chunks/chunk-URW4QRMI.js",
|
|
95
|
+
"sha256": "f365250c95b071516d1561497d3c234f29cdbe7c965d290eadfb72c374054b6a"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
"path": "chunks/chunk-
|
|
99
|
-
"sha256": "
|
|
98
|
+
"path": "chunks/chunk-URW4QRMI.js.map",
|
|
99
|
+
"sha256": "85932fd61e21858872497d3db0b5bd9b62cb8232b9babdd734b8ebf2f6ef4501"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"path": "chunks/chunk-WYRZZ5ZE.js",
|
|
@@ -107,184 +107,184 @@
|
|
|
107
107
|
"sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"path": "chunks/register-list-query-
|
|
111
|
-
"sha256": "
|
|
110
|
+
"path": "chunks/register-list-query-EYCXHZAG.js",
|
|
111
|
+
"sha256": "781a2325e17f68d3f79a8f74109f4be291b458d82611ca5ccf8dc6494bf0ede7"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
"path": "chunks/register-list-query-
|
|
114
|
+
"path": "chunks/register-list-query-EYCXHZAG.js.map",
|
|
115
115
|
"sha256": "7bad448af0aa4ece244f57e67259051f9bb986d03909d4d5b2f8c0063f654058"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
"path": "chunks/register-mutation-
|
|
119
|
-
"sha256": "
|
|
118
|
+
"path": "chunks/register-mutation-7YVIG54J.js",
|
|
119
|
+
"sha256": "c3280bae1938f8f64d3749d300b9fb795ccc2816b6a7945312ac71994031f252"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"path": "chunks/register-mutation-
|
|
123
|
-
"sha256": "
|
|
122
|
+
"path": "chunks/register-mutation-7YVIG54J.js.map",
|
|
123
|
+
"sha256": "ee3d78d6a9aef1e9c41e34430fd2a90bbd8df5a892beafeaa1bc7ce0f91400fe"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
"path": "chunks/register-operations-
|
|
127
|
-
"sha256": "
|
|
126
|
+
"path": "chunks/register-operations-KGDNRMCL.js",
|
|
127
|
+
"sha256": "f5cb2066378120065f2101a19f3e1ac02bb32d803e8e7d8411f3b29fc0d88b17"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
"path": "chunks/register-operations-
|
|
130
|
+
"path": "chunks/register-operations-KGDNRMCL.js.map",
|
|
131
131
|
"sha256": "30b5d0488a8a1fc96996a8b0d764d61b6330c9defbead2551af1d61b6e57b508"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
"path": "chunks/register-setup-
|
|
135
|
-
"sha256": "
|
|
134
|
+
"path": "chunks/register-setup-NVXBOD5I.js",
|
|
135
|
+
"sha256": "b38ec3453b6d6ae408671f6b6ee4b83e059dd8ef81cda0d34f52d1f19afa6488"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
"path": "chunks/register-setup-
|
|
138
|
+
"path": "chunks/register-setup-NVXBOD5I.js.map",
|
|
139
139
|
"sha256": "4b0e1e63204e2107c41de2162d211e80830bbf9d4e85a15489f6a9224422722f"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
"path": "focused-chunks/chunk-
|
|
143
|
-
"sha256": "
|
|
142
|
+
"path": "focused-chunks/chunk-4JPEBFFC.js",
|
|
143
|
+
"sha256": "60c390f459613e203c2120e3784775bed4ce8baf1341151a2331bbc42ccfb84c"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
"path": "focused-chunks/chunk-
|
|
147
|
-
"sha256": "
|
|
146
|
+
"path": "focused-chunks/chunk-4JPEBFFC.js.map",
|
|
147
|
+
"sha256": "643a7497e370f1ecf14a0d50d00d2578e3c5bee0774d470452a664c4067cb324"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
"path": "focused-chunks/chunk-
|
|
151
|
-
"sha256": "
|
|
150
|
+
"path": "focused-chunks/chunk-5NMFSX26.js",
|
|
151
|
+
"sha256": "a3f775ac80b937a92fb4b71d682c22926d850a5545a7145111bd4065ec880a1b"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"path": "focused-chunks/chunk-
|
|
155
|
-
"sha256": "
|
|
154
|
+
"path": "focused-chunks/chunk-5NMFSX26.js.map",
|
|
155
|
+
"sha256": "0985d1dbdd683f0da18a6b87c6ddc51ae2cb79b4d79f76139f3a42ca947419c7"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
"path": "focused-chunks/chunk-
|
|
159
|
-
"sha256": "
|
|
158
|
+
"path": "focused-chunks/chunk-6ROKKT4X.js",
|
|
159
|
+
"sha256": "b2460e7fac5ac7e3b4942da6291088484832027d55405af1c52f1289e7a1ebd4"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
"path": "focused-chunks/chunk-
|
|
163
|
-
"sha256": "
|
|
162
|
+
"path": "focused-chunks/chunk-6ROKKT4X.js.map",
|
|
163
|
+
"sha256": "95b33284b3e258da9087d239a8d5b3d442628cbd1b9688bc26ba378f6992eb71"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
"path": "focused-chunks/chunk-
|
|
167
|
-
"sha256": "
|
|
166
|
+
"path": "focused-chunks/chunk-725JSCMP.js",
|
|
167
|
+
"sha256": "6f7a5d996347e31c3344ed64607ac5ff6c56730cabdefc643e64a73e141c27ea"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
"path": "focused-chunks/chunk-
|
|
171
|
-
"sha256": "
|
|
170
|
+
"path": "focused-chunks/chunk-725JSCMP.js.map",
|
|
171
|
+
"sha256": "05339620dafb6d487ea8fbeb4884ed3cf15fa506ae471e087be989353df6dc12"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
"path": "focused-chunks/chunk-
|
|
175
|
-
"sha256": "
|
|
174
|
+
"path": "focused-chunks/chunk-C7JUBRFP.js",
|
|
175
|
+
"sha256": "de5ce90e73d2812afe337ee1710fca1565abeb7b2e29f56a0513356e87eceba0"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
"path": "focused-chunks/chunk-
|
|
179
|
-
"sha256": "
|
|
178
|
+
"path": "focused-chunks/chunk-C7JUBRFP.js.map",
|
|
179
|
+
"sha256": "c6e51927347df68b416697e19af2033c334777ec6336f12e48315964e7c74728"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
"path": "focused-chunks/chunk-
|
|
183
|
-
"sha256": "
|
|
182
|
+
"path": "focused-chunks/chunk-CODV5LUT.js",
|
|
183
|
+
"sha256": "24e99addd5e0b33ddec8031161014530053fd9d12eb3db5d2ab29c84606e87d6"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
"path": "focused-chunks/chunk-
|
|
186
|
+
"path": "focused-chunks/chunk-CODV5LUT.js.map",
|
|
187
187
|
"sha256": "b80a9fd24a07af7addc64bac2309db69905ff0425210f2ff354b3b20b9c9569f"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
"path": "focused-chunks/chunk-
|
|
191
|
-
"sha256": "
|
|
190
|
+
"path": "focused-chunks/chunk-DQ6SMTBF.js",
|
|
191
|
+
"sha256": "07ff53b91a8a18a391884d6e27c347a15479a009e417d518daf6c6fc5c8fadfb"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
|
-
"path": "focused-chunks/chunk-
|
|
195
|
-
"sha256": "
|
|
194
|
+
"path": "focused-chunks/chunk-DQ6SMTBF.js.map",
|
|
195
|
+
"sha256": "013dea16da33f7794b0ac5b80369ce6f913400a6873c75fa9ea568d222872bc1"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"path": "focused-chunks/chunk-
|
|
199
|
-
"sha256": "
|
|
198
|
+
"path": "focused-chunks/chunk-HAACPSUW.js",
|
|
199
|
+
"sha256": "967ddd770d000c3406171e88a52136d839fcf3d72f802c59f1e27612b6b58179"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
"path": "focused-chunks/chunk-
|
|
203
|
-
"sha256": "
|
|
202
|
+
"path": "focused-chunks/chunk-HAACPSUW.js.map",
|
|
203
|
+
"sha256": "53f19b868c44c2318dd1fb4b70472c4dd09690d36f61b3c0a9f5725d764780c1"
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
"path": "focused-chunks/chunk-
|
|
207
|
-
"sha256": "
|
|
206
|
+
"path": "focused-chunks/chunk-J4UFYHOD.js",
|
|
207
|
+
"sha256": "2f11b9cf8e6c78299a0da5cd6e97fef8c98262bdae43cf39616d7df501ec6f2e"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
"path": "focused-chunks/chunk-
|
|
211
|
-
"sha256": "
|
|
210
|
+
"path": "focused-chunks/chunk-J4UFYHOD.js.map",
|
|
211
|
+
"sha256": "d480bf5c40b5ed6188681c2eb6fd2bbb6062ee4ad88d3af394b9070833d3790d"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
"path": "focused-chunks/chunk-
|
|
215
|
-
"sha256": "
|
|
214
|
+
"path": "focused-chunks/chunk-JX5Z344Q.js",
|
|
215
|
+
"sha256": "73bf43df940ade21d02e726c72a2f3ed9248fb3f3fd7041f046ec39e79e18822"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
"path": "focused-chunks/chunk-
|
|
219
|
-
"sha256": "
|
|
218
|
+
"path": "focused-chunks/chunk-JX5Z344Q.js.map",
|
|
219
|
+
"sha256": "cf83291e64cbb1e6610e488dc7603f0394625cc61979e1f26d141daa57d58c73"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
"path": "focused-chunks/chunk-
|
|
223
|
-
"sha256": "
|
|
222
|
+
"path": "focused-chunks/chunk-L4RDYBIQ.js",
|
|
223
|
+
"sha256": "89184c773299eeadc047b07342b32e671fdcce658e14061e6178ecdbc0519129"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"path": "focused-chunks/chunk-
|
|
227
|
-
"sha256": "
|
|
226
|
+
"path": "focused-chunks/chunk-L4RDYBIQ.js.map",
|
|
227
|
+
"sha256": "86550fff7e89d3053b22c8ea5d661e73c0a9c47b1eb70d2747d4abef406acaa6"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
"path": "focused-chunks/chunk-
|
|
231
|
-
"sha256": "
|
|
230
|
+
"path": "focused-chunks/chunk-NJ5RLEFD.js",
|
|
231
|
+
"sha256": "39af9d9c22f201a1c7d6706530bdda8715885580d5fc04d05c4d4d8b4c26d268"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
"path": "focused-chunks/chunk-
|
|
235
|
-
"sha256": "
|
|
234
|
+
"path": "focused-chunks/chunk-NJ5RLEFD.js.map",
|
|
235
|
+
"sha256": "e1040c43fa5d0d123cfe55b2684c3eaed96e1c8642846c272392fa4f950b4041"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
|
-
"path": "focused-chunks/chunk-
|
|
239
|
-
"sha256": "
|
|
238
|
+
"path": "focused-chunks/chunk-QYZERYR5.js",
|
|
239
|
+
"sha256": "139f02a8b91aaf86d9677248f2c4e0d0431a1c0754ac585f5158bffe8b4fca4d"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
"path": "focused-chunks/chunk-
|
|
243
|
-
"sha256": "
|
|
242
|
+
"path": "focused-chunks/chunk-QYZERYR5.js.map",
|
|
243
|
+
"sha256": "42af1adcaeadef325b768e52f92cdc1374e7c2fbe0a6c0f707120eb340362535"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
"path": "focused-chunks/chunk-
|
|
247
|
-
"sha256": "
|
|
246
|
+
"path": "focused-chunks/chunk-SSNDYZTM.js",
|
|
247
|
+
"sha256": "bdf32e93cbb23aa98fa54ceb8492a61380241231fe1553c853de3c45257bbdab"
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
"path": "focused-chunks/chunk-
|
|
251
|
-
"sha256": "
|
|
250
|
+
"path": "focused-chunks/chunk-SSNDYZTM.js.map",
|
|
251
|
+
"sha256": "9033241d8a6af48027fa7345868bc63413d6d3b427d5127818cdf076018d60f7"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
"path": "focused-chunks/chunk-
|
|
255
|
-
"sha256": "
|
|
254
|
+
"path": "focused-chunks/chunk-T46KLOIB.js",
|
|
255
|
+
"sha256": "7f53f49483ae95b7660ab2a1adaeef1359e940fe9b82ba2fd9aa92302e3d55e7"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
"path": "focused-chunks/chunk-
|
|
259
|
-
"sha256": "
|
|
258
|
+
"path": "focused-chunks/chunk-T46KLOIB.js.map",
|
|
259
|
+
"sha256": "b8f246516adad1f7afa90128e881943f5d00bd27b7fbd36c41d7de2e1e7fcc18"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
|
-
"path": "focused-chunks/chunk-
|
|
263
|
-
"sha256": "
|
|
262
|
+
"path": "focused-chunks/chunk-TZATVC4G.js",
|
|
263
|
+
"sha256": "3976649749537c08c39c5e5163171892c0420ec793940d19936f2f88479b4b00"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
"path": "focused-chunks/chunk-
|
|
266
|
+
"path": "focused-chunks/chunk-TZATVC4G.js.map",
|
|
267
267
|
"sha256": "e181dc8bd409bf9ad3799781e0d9827a0efb5caf2aa07b95cc352c8ec7da0e14"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
"path": "focused-chunks/chunk-
|
|
271
|
-
"sha256": "
|
|
270
|
+
"path": "focused-chunks/chunk-WY3WRPVN.js",
|
|
271
|
+
"sha256": "83d895cc0593de6590dc6e7df592ea2082e36009c63592758c30984925bb11b0"
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
|
-
"path": "focused-chunks/chunk-
|
|
275
|
-
"sha256": "
|
|
274
|
+
"path": "focused-chunks/chunk-WY3WRPVN.js.map",
|
|
275
|
+
"sha256": "19a4c19a42cbc384324500b4b4d4d3b607a61dff22c9d2494f508be435d0781d"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"path": "main.js",
|
|
279
|
-
"sha256": "
|
|
279
|
+
"sha256": "a2edd49e75c16fe51960620174ef4642c13ad2ef9b5b7fbfc6bc75b8f085f63d"
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
"path": "main.js.map",
|
|
283
|
-
"sha256": "
|
|
283
|
+
"sha256": "8c7d320dca532b8189a346239dfb5d03c922025a609d853316e7fb5eb98c14b3"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"path": "sdk-authoring.js",
|
|
287
|
-
"sha256": "
|
|
287
|
+
"sha256": "3dc771c327625186ad663b43bf0ae88ebd1b735c907aad64b202ec8e03c910e3"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
"path": "sdk-authoring.js.map",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "sdk-contracts.js",
|
|
295
|
-
"sha256": "
|
|
295
|
+
"sha256": "3ab3a80bfa2ce0830e2a00ef043d52166f52691fe2506f355563f797b6285e0c"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"path": "sdk-contracts.js.map",
|
|
@@ -300,15 +300,15 @@
|
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"path": "sdk-core.js",
|
|
303
|
-
"sha256": "
|
|
303
|
+
"sha256": "5479cd1ac95d8200aa0be6c733b6e98ce0e9641ee14d2013da0b6ddd201c2f0f"
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"path": "sdk-core.js.map",
|
|
307
|
-
"sha256": "
|
|
307
|
+
"sha256": "20f62064fadbcae16457fd0fb29431d74ab0ce4550d2d9265478dd2c8bfcad57"
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"path": "sdk-governance.js",
|
|
311
|
-
"sha256": "
|
|
311
|
+
"sha256": "5f44ee468747f11f02c21fbb82c2e1d518bf8c797a08210dc208754dad447013"
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"path": "sdk-governance.js.map",
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"path": "sdk-graph.js",
|
|
319
|
-
"sha256": "
|
|
319
|
+
"sha256": "aed56830a9e289558283fbdc4143bb624cc596a4e6cd7f98565a5da38257a253"
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
"path": "sdk-graph.js.map",
|
|
@@ -324,15 +324,15 @@
|
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
"path": "sdk-merge.js",
|
|
327
|
-
"sha256": "
|
|
327
|
+
"sha256": "524156e1991a9dd4b8fccd6e69400fa1467201be2da1a1df12e7db18c3da7370"
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
330
|
"path": "sdk-merge.js.map",
|
|
331
|
-
"sha256": "
|
|
331
|
+
"sha256": "b084770841e59244c91da526f66d76fff3682f35aad5231081609230dd84dfc2"
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"path": "sdk-query.js",
|
|
335
|
-
"sha256": "
|
|
335
|
+
"sha256": "88dee269cff58982a0d2f20d979370367c28529d06ada4ac2d86551cfee1eca8"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "sdk-query.js.map",
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"path": "sdk-runtime.js",
|
|
343
|
-
"sha256": "
|
|
343
|
+
"sha256": "d16ffe248df10d9e6d0158ca14828e0c204cf9c50e17c5de3981e1a276619d3d"
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"path": "sdk-runtime.js.map",
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
"path": "sdk-testing.js",
|
|
351
|
-
"sha256": "
|
|
351
|
+
"sha256": "f258c3e5f4e3755e377fdbf519dffab2092c45326ddcbd1b778983d8a3c6495d"
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
"path": "sdk-testing.js.map",
|
|
@@ -356,11 +356,11 @@
|
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
"path": "sdk.js",
|
|
359
|
-
"sha256": "
|
|
359
|
+
"sha256": "7fc87b148651dc8a4b992debaa6f22de8dac9383f10371a17372c2d5146b11e1"
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"path": "sdk.js.map",
|
|
363
|
-
"sha256": "
|
|
363
|
+
"sha256": "f6d84e44e961108b44921657fdee7c0893758a6cfce80c9cec29906a20badea5"
|
|
364
364
|
}
|
|
365
365
|
]
|
|
366
366
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{k as A}from"./chunk-WLPDLNEZ.js";import{$ as b,C as f,E as h,Ef as E,Nd as k,Od as y,Ti as S,el as m}from"./chunk-DSWDLTDR.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]="271cf7c1-f84b-5f59-aa13-ed8cb4ee232f")}catch{}})();var F=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"]),x=new Map([["files","discover"],["item","complete"]]),G=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),$=new Map([["append",1],["close",1],["close-task",1],["comments",1],["item complete",1],["learnings",1],["notes",1],["restore",1]]);function R(e){let t=e?.trim().toLowerCase()??"";return F.has(t)||x.has(t)}function L(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(G.has(n)){t+=1;continue}if(!n.startsWith("-"))return t}}function O(e,t,n){let o=x.get(n);if(o===void 0)return t+1;let s=e[t+1]?.toLowerCase()===o;if(!(!s&&!F.has(n)))return t+(s?2:1)}function U(e){let t=new Map;for(let n of m(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 j(e,t,n){if(e.indexOf("=")>=0||t===void 0||t.startsWith("-"))return!1;let s=n.get(e);return s!==void 0&&s.value_type!=="boolean"}function K(e,t,n,o,s){let i=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;i+=1;continue}j(a,e[r+1],s)&&(r+=1)}}return i>($.get(n)??0)}function N(e){let t=L(e),n=t===void 0?void 0:e[t]?.toLowerCase();if(!R(n))return{argv:[...e],changed:!1,conflict:!1};let o=x.get(n)===e[t+1]?.toLowerCase()?`${n} ${e[t+1]?.toLowerCase()}`:n,s=U(o),i=q(e),r=i[0];if(!r||!r.value?.trim())return{argv:[...e],changed:!1,conflict:!1};let a=O(e,t,n);if(a===void 0)return{argv:[...e],changed:!1,conflict:!1};if(i.length>1||K(e,a,o,r.index,s))return{argv:[...e],changed:!1,conflict:!0,itemId:r.value};let u=[...e.slice(0,r.index),...e.slice(r.index+r.consumed)],c=L(u),l=O(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]="eccdb2d2-da6f-555b-ba1b-8339f9b64f1a")}catch{}})();var g=new Set(["--pm-path","--path","--author","--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),Y=new Set(["--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),D=e=>{let t=e.indexOf("=");return t>0&&g.has(e.slice(0,t))},_=(e,t)=>typeof t!="string"?!1:e==="--path"||e==="--pm-path"||!t.startsWith("-"),T=new Set(["--no-extensions","--no-pager","--json","--quiet","--lean","--token-accounting","--output-row-contract"]);function X(e,t,n){let o=e[t];if(T.has(o))return n.booleanFlags.add(o),1;let s=o.indexOf("="),i=s>0?o.slice(0,s):o;if(!g.has(i))return 1;let r=s>0?o.slice(s+1):void 0,a=r===void 0&&_(i,e[t+1]),u=r??(a?e[t+1]:void 0);return i==="--author"?n.author=u??"":typeof u=="string"&&u.length>0&&(Y.has(i)?n.outputValues:n.pathValues).set(i,u),a?2:1}function J(e){let t={booleanFlags:new Set,outputValues:new Map,pathValues:new Map},n=0;for(;n<e.length&&e[n]!=="--";)n+=X(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 M(e){let t=[],n=0;for(;n<e.length;){let o=e[n];if(o==="--")break;if(T.has(o)||o==="--profile"||o==="--id-only"||o==="--full-changed-fields"||o==="--explain"){n+=1;continue}if(g.has(o)){n+=_(o,e[n+1])?2:1;continue}if(D(o)){n+=1;continue}t.push(o),n+=1}return t}function Z(e){let t=M(e);if(t[0]?.trim().toLowerCase()==="help"){let i=[];for(let r=1;r<t.length;r+=1){let a=t[r];if(a.startsWith("-"))break;i.push(a.trim().toLowerCase())}return{requested:!0,commandPathTokens:i}}if(t.findIndex(i=>i==="--help"||i==="-h")<0)return{requested:!1,commandPathTokens:[]};let s=[];for(let i of t){if(i.startsWith("-"))break;s.push(i.trim().toLowerCase())}return{requested:!0,commandPathTokens:s}}function I(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(g.has(n)){t+=_(n,e[t+1])?1:0;continue}if(!(D(n)||T.has(n)||n==="--profile"||n==="--id-only"||n==="--explain")&&!n.startsWith("-"))return t}}function C(e){let t=I(e);return t===void 0?void 0:e[t].trim().toLowerCase()}function H(e,t){return t.noPager?!0:process.stdout.isTTY===!0?!1:Z(e).requested}function Ve(e){let t=["PAGER","MANPAGER","GIT_PAGER","LESS"],n=t.map(i=>process.env[i]),o=()=>{for(let[i,r]of t.entries()){let a=n[i];a===void 0?delete process.env[r]:process.env[r]=a}},s=J(e);return H(e,s)&&(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 Q=new Set(["install","uninstall","explore","manage","doctor","adopt","adopt-all","activate","deactivate"]);function ee(e){let t=I(e);if(t===void 0||e[t]!=="extension")return[...e];let n=e[t+1];if(!n||n.startsWith("-"))return[...e];if(!Q.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 te=new Set(["pm","pm-cli"]);function ne(e,t){let n=I(e);if(n===void 0)return e;let o=e[n];return te.has(o.trim().toLowerCase())?(t.push({from:o,to:[],reason:"executable_alias",confidence:"high"}),[...e.slice(0,n),...e.slice(n+1)]):e}function oe(e,t){let n=I(e);if(n===void 0)return e;let o=e[n],s=S[o.trim().toLowerCase()];if(!s)return e;let i=[...e];return i[n]=s,t.push({from:o,to:[s],reason:"command_alias",confidence:"high"}),i}function w(e){return e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function P(e){return w(e).replace(/-/g,"")}function V(e,t,n){let o=e.get(t);if(o===void 0){e.set(t,n);return}o!==n&&e.set(t,null)}function se(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 ie(e,t){let n=t??m(e),o=new Map,s=new Map,i=new Map,r=new Set;for(let a of n){let u=se(a);if(u.length===0)continue;let c=`--${w(u[0])}`;for(let d of u)V(o,w(d),c),V(s,P(d),c);let l=P(c);i.has(c)||i.set(c,l),a.list===!0&&r.add(c)}return{canonicalByNormalized:o,canonicalByCompact:s,canonicalComparables:[...i.entries()].map(([a,u])=>({canonicalFlag:a,comparable:u})),listCanonicalFlags:r}}function B(e,t){let n=w(e),o=t.canonicalByNormalized.get(n);if(typeof o=="string")return{flag:o,reason:"flag_alias",confidence:"high"};let s=n.replace(/-/g,""),i=t.canonicalByCompact.get(s);if(typeof i=="string")return{flag:i,reason:"flag_alias",confidence:"high"};let r=s.length>=8?2:1,a=Number.POSITIVE_INFINITY,u,c=!1;for(let l of t.canonicalComparables){let d=b(s,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 De(e){let t=[`${e}s`];return e.endsWith("y")&&e.length>1&&t.push(`${e.slice(0,-1)}ies`),t}function re(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],s=n[3];return s.length===0?null:{key:o,value:s}}function ae(e,t,n=!1){if(n||!e.startsWith("--"))return{tokens:[e]};let o=e.indexOf("="),s=o>=0?e.slice(0,o):e,i=o>=0?e.slice(o+1):void 0,r=B(s,t);if(!r)return{tokens:[e]};let a=i===void 0?r.flag:`${r.flag}=${i}`;return a===e?{tokens:[e]}:{tokens:[a],event:{from:e,to:[a],reason:r.reason,confidence:r.confidence}}}function ue(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 s=e[o];n=s==="--path"||s==="--pm-path"}return t}function ce(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 le(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 de(e,t,n,o){if(n.inlineValue!==void 0)return{originalTokens:[e[t]],value:n.inlineValue,consumed:1};let s=[],i=t+1;for(;i<e.length&&e[i]!=="--"&&!e[i].startsWith("-")&&(s.length===0||o.has(n.flag));)s.push(e[i]),i+=1;let r=s.length===0?1:1+s.length;return{originalTokens:e.slice(t,t+r),value:s.length===0?void 0:s.join(","),consumed:r}}function fe(e,t,n,o){let s=e.get(n);if(s){s.values.push(o.value),s.occurrences+=1;return}e.set(n,{outputIndex:t.length,originalTokens:o.originalTokens,values:[o.value],occurrences:1}),t.push(null)}function pe(e,t){let n=[],o=[];for(let[s,i]of e){if(!(i.occurrences>=2||t.has(s)&&i.originalTokens.length>2)){o.push({outputIndex:i.outputIndex,tokens:i.originalTokens});continue}let a=`${s}=${i.values.join(",")}`;o.push({outputIndex:i.outputIndex,tokens:[a]}),n.push({from:`${s} (x${i.occurrences})`,to:[a],reason:"list_merge",confidence:"high"})}return{events:n,splices:o}}function he(e,t){t.sort((n,o)=>o.outputIndex-n.outputIndex);for(let n of t)e.splice(n.outputIndex,1,...n.tokens)}function me(e,t,n=new Set,o=new Set){if(t.size===0)return{argv:[...e],events:[]};let s=[],i=new Map,r=0;for(;r<e.length;){let c=e[r];if(c==="--"){s.push(...e.slice(r));break}if(n.has(c)){r=le(e,r,s);continue}let l=ce(c);if(!l||!t.has(l.flag)){s.push(c),r+=1;continue}let d=de(e,r,l,o);if(d.value===void 0){s.push(c),r+=d.consumed;continue}fe(i,s,l.flag,{originalTokens:d.originalTokens,value:d.value}),r+=d.consumed}let{events:a,splices:u}=pe(i,o);return he(s,u),{argv:s,events:a}}var v=new Map([["--add",new Set(["command","cmd","path"])],["--remove",new Set(["command","path"])]]);function ge(e,t){if(e!=="test"||t.length<2)return!1;let n=t[t.length-1],o=t[t.length-2],s=v.get(o);return s!==void 0&&s.has(n)}function be(e,t){return e==="search"||ge(e,t)}function ye(e,t,n){if(t!=="test")return e;let o=[],s=0;for(;s<e.length;){let i=e[s];if(i==="--")return o.push(...e.slice(s)),o;let r=v.get(i),a=r?e[s+1]:void 0;if(!r||typeof a!="string"||!r.has(a)){o.push(i),s+=1;continue}let u=s+2;for(;u<e.length&&!e[u].startsWith("-");)u+=1;if(u-(s+2)!==1){o.push(i),s+=1;continue}let c=e[s+2],l=`${a}=${c}`;o.push(i,l),n.push({from:`${i} ${a} ${c}`,to:[i,l],reason:"bare_key_value",confidence:"high"}),s+=3}return o}function we(e,t,n,o){let s=[],i=ue(e);for(let r=0;r<e.length;r+=1){let a=e[r];if(a==="--"){s.push(...e.slice(r));break}let u=i.has(r),c=s[s.length-1];if(a.startsWith("--")){let d=ae(a,t,u);s.push(...d.tokens),d.event&&o.push(d.event);continue}let l=re(a,u);if(l&&!(typeof c=="string"&&c.startsWith("-"))&&!be(n,s)){let d=B(l.key,t);if(d){let p=[d.flag,l.value];s.push(...p),o.push({from:a,to:p,reason:"bare_key_value",confidence:d.confidence});continue}}s.push(a)}return s}function Me(e){let t=[],n=ne(e,t),o=ee(n);(o.length!==n.length||o.some((p,W)=>p!==n[W]))&&t.push({from:n.join(" "),to:[...o],reason:"legacy_extension_action",confidence:"high"});let s=oe(o,t),i=N(s);if(i.conflict)throw new h("Provide the item id either positionally or with --id, not both.",f.USAGE);i.changed&&t.push({from:`--id ${i.itemId}`,to:[i.itemId],reason:"item_id_alias",confidence:"high"});let r=C(i.argv),a=Ie(i.argv),u=ie(a??r),c=we(i.argv,u,r,t),l=ye(c,r,t),d=me(l,u.listCanonicalFlags,g,r==="create"?new Set(["--tags"]):new Set);for(let p of d.events)t.push(p);return{argv:d.argv,commandName:r,trace:t}}function Ie(e){let t=M(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 Be(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]="4973a995-60f0-5990-9927-371dc6716063")}catch{}})();function z(e){return e.trim().match(/--[a-z0-9][a-z0-9_-]*/i)?.[0]?.replaceAll("_","-").toLowerCase()}function $e(e){if(!(!Array.isArray(e)||e.length===0))return C(e)}function xe(e,t){let n=z(t);if(!n)return;let o=m(e).find(s=>s.flag===n||s.aliases?.includes(n));return o?o.value_type==="boolean"?null:`<${o.value_name??"value"}>`:"<value>"}function Re(e,t,n){let o=[...e],s=o.indexOf("--"),i=s<0?o.length:s;for(let r of n){let a=z(r);if(!a||o.slice(0,i).some(l=>l===a||l.startsWith(`${a}=`)))continue;let u=xe(t,a),c=u?[a,u]:[a];o.splice(i,0,...c),i+=c.length}return o.length===e.length?void 0:A(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 Je(e){return e instanceof h||e instanceof Error?e.message:"Unknown failure"}function _e(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 Te(e){let t=Math.trunc(e);return t>f.SUCCESS?t:f.GENERIC_FAILURE}function Ze(e){return typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"&&e.code.startsWith("commander.")}function He(e,t){if(e instanceof Error)return e;let n=new Error(t),o=_e(e);return o!==void 0&&(n.exitCode=Te(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 ot(e){if(e===void 0)return()=>{};let t=e.trim();if(t.length===0)throw new h("--author requires a non-empty value.",f.USAGE,{code:"missing_required_argument",nextSteps:["Pass an explicit author identifier with --author <id>."]});let n=k();y(t);let o=!1;return()=>{o||(o=!0,n===void 0?y(void 0):y(n))}}import{Command as Ce}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]="03d46cbf-73bc-50c9-b4e6-e7329ee53076")}catch{}})();function at(e){return new Ce().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=>{E(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("--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 ke={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 Ee(e,t){let n=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(o.length===0)return Number.POSITIVE_INFINITY;let s=n.split(" "),i=ke[o]?.indexOf(n);if(i!==void 0&&i>=0)return i;if(n===o)return 10;if(s.includes(o))return 11;if(s.some(u=>u.startsWith(o)))return 12;let r=o.length>=5?2:1,a=Number.POSITIVE_INFINITY;for(let u of s){let c=b(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:Ee(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{R as a,N as b,J as c,M as d,Z as e,I as f,C as g,Ve as h,ee as i,De as j,me as k,ye as l,Me as m,Be as n,$e as o,xe as p,Re as q,Je as r,_e as s,Te as t,Ze as u,He as v,ot as w,at as x,Ee as y,lt as z};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{k as A}from"./chunk-73UGEBRS.js";import{$ as b,C as f,E as h,Ef as E,Nd as k,Od as y,Ti as S,el as m}from"./chunk-TOFG2URD.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]="271cf7c1-f84b-5f59-aa13-ed8cb4ee232f")}catch{}})();var F=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"]),x=new Map([["files","discover"],["item","complete"]]),G=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),$=new Map([["append",1],["close",1],["close-task",1],["comments",1],["item complete",1],["learnings",1],["notes",1],["restore",1]]);function R(e){let t=e?.trim().toLowerCase()??"";return F.has(t)||x.has(t)}function L(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(G.has(n)){t+=1;continue}if(!n.startsWith("-"))return t}}function O(e,t,n){let o=x.get(n);if(o===void 0)return t+1;let s=e[t+1]?.toLowerCase()===o;if(!(!s&&!F.has(n)))return t+(s?2:1)}function U(e){let t=new Map;for(let n of m(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 j(e,t,n){if(e.indexOf("=")>=0||t===void 0||t.startsWith("-"))return!1;let s=n.get(e);return s!==void 0&&s.value_type!=="boolean"}function K(e,t,n,o,s){let i=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;i+=1;continue}j(a,e[r+1],s)&&(r+=1)}}return i>($.get(n)??0)}function N(e){let t=L(e),n=t===void 0?void 0:e[t]?.toLowerCase();if(!R(n))return{argv:[...e],changed:!1,conflict:!1};let o=x.get(n)===e[t+1]?.toLowerCase()?`${n} ${e[t+1]?.toLowerCase()}`:n,s=U(o),i=q(e),r=i[0];if(!r||!r.value?.trim())return{argv:[...e],changed:!1,conflict:!1};let a=O(e,t,n);if(a===void 0)return{argv:[...e],changed:!1,conflict:!1};if(i.length>1||K(e,a,o,r.index,s))return{argv:[...e],changed:!1,conflict:!0,itemId:r.value};let u=[...e.slice(0,r.index),...e.slice(r.index+r.consumed)],c=L(u),l=O(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]="eccdb2d2-da6f-555b-ba1b-8339f9b64f1a")}catch{}})();var g=new Set(["--pm-path","--path","--author","--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),Y=new Set(["--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),D=e=>{let t=e.indexOf("=");return t>0&&g.has(e.slice(0,t))},_=(e,t)=>typeof t!="string"?!1:e==="--path"||e==="--pm-path"||!t.startsWith("-"),T=new Set(["--no-extensions","--no-pager","--json","--quiet","--lean","--token-accounting","--output-row-contract"]);function X(e,t,n){let o=e[t];if(T.has(o))return n.booleanFlags.add(o),1;let s=o.indexOf("="),i=s>0?o.slice(0,s):o;if(!g.has(i))return 1;let r=s>0?o.slice(s+1):void 0,a=r===void 0&&_(i,e[t+1]),u=r??(a?e[t+1]:void 0);return i==="--author"?n.author=u??"":typeof u=="string"&&u.length>0&&(Y.has(i)?n.outputValues:n.pathValues).set(i,u),a?2:1}function J(e){let t={booleanFlags:new Set,outputValues:new Map,pathValues:new Map},n=0;for(;n<e.length&&e[n]!=="--";)n+=X(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 M(e){let t=[],n=0;for(;n<e.length;){let o=e[n];if(o==="--")break;if(T.has(o)||o==="--profile"||o==="--id-only"||o==="--full-changed-fields"||o==="--explain"){n+=1;continue}if(g.has(o)){n+=_(o,e[n+1])?2:1;continue}if(D(o)){n+=1;continue}t.push(o),n+=1}return t}function Z(e){let t=M(e);if(t[0]?.trim().toLowerCase()==="help"){let i=[];for(let r=1;r<t.length;r+=1){let a=t[r];if(a.startsWith("-"))break;i.push(a.trim().toLowerCase())}return{requested:!0,commandPathTokens:i}}if(t.findIndex(i=>i==="--help"||i==="-h")<0)return{requested:!1,commandPathTokens:[]};let s=[];for(let i of t){if(i.startsWith("-"))break;s.push(i.trim().toLowerCase())}return{requested:!0,commandPathTokens:s}}function I(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")return;if(g.has(n)){t+=_(n,e[t+1])?1:0;continue}if(!(D(n)||T.has(n)||n==="--profile"||n==="--id-only"||n==="--explain")&&!n.startsWith("-"))return t}}function C(e){let t=I(e);return t===void 0?void 0:e[t].trim().toLowerCase()}function H(e,t){return t.noPager?!0:process.stdout.isTTY===!0?!1:Z(e).requested}function Ve(e){let t=["PAGER","MANPAGER","GIT_PAGER","LESS"],n=t.map(i=>process.env[i]),o=()=>{for(let[i,r]of t.entries()){let a=n[i];a===void 0?delete process.env[r]:process.env[r]=a}},s=J(e);return H(e,s)&&(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 Q=new Set(["install","uninstall","explore","manage","doctor","adopt","adopt-all","activate","deactivate"]);function ee(e){let t=I(e);if(t===void 0||e[t]!=="extension")return[...e];let n=e[t+1];if(!n||n.startsWith("-"))return[...e];if(!Q.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 te=new Set(["pm","pm-cli"]);function ne(e,t){let n=I(e);if(n===void 0)return e;let o=e[n];return te.has(o.trim().toLowerCase())?(t.push({from:o,to:[],reason:"executable_alias",confidence:"high"}),[...e.slice(0,n),...e.slice(n+1)]):e}function oe(e,t){let n=I(e);if(n===void 0)return e;let o=e[n],s=S[o.trim().toLowerCase()];if(!s)return e;let i=[...e];return i[n]=s,t.push({from:o,to:[s],reason:"command_alias",confidence:"high"}),i}function w(e){return e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function P(e){return w(e).replace(/-/g,"")}function V(e,t,n){let o=e.get(t);if(o===void 0){e.set(t,n);return}o!==n&&e.set(t,null)}function se(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 ie(e,t){let n=t??m(e),o=new Map,s=new Map,i=new Map,r=new Set;for(let a of n){let u=se(a);if(u.length===0)continue;let c=`--${w(u[0])}`;for(let d of u)V(o,w(d),c),V(s,P(d),c);let l=P(c);i.has(c)||i.set(c,l),a.list===!0&&r.add(c)}return{canonicalByNormalized:o,canonicalByCompact:s,canonicalComparables:[...i.entries()].map(([a,u])=>({canonicalFlag:a,comparable:u})),listCanonicalFlags:r}}function B(e,t){let n=w(e),o=t.canonicalByNormalized.get(n);if(typeof o=="string")return{flag:o,reason:"flag_alias",confidence:"high"};let s=n.replace(/-/g,""),i=t.canonicalByCompact.get(s);if(typeof i=="string")return{flag:i,reason:"flag_alias",confidence:"high"};let r=s.length>=8?2:1,a=Number.POSITIVE_INFINITY,u,c=!1;for(let l of t.canonicalComparables){let d=b(s,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 De(e){let t=[`${e}s`];return e.endsWith("y")&&e.length>1&&t.push(`${e.slice(0,-1)}ies`),t}function re(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],s=n[3];return s.length===0?null:{key:o,value:s}}function ae(e,t,n=!1){if(n||!e.startsWith("--"))return{tokens:[e]};let o=e.indexOf("="),s=o>=0?e.slice(0,o):e,i=o>=0?e.slice(o+1):void 0,r=B(s,t);if(!r)return{tokens:[e]};let a=i===void 0?r.flag:`${r.flag}=${i}`;return a===e?{tokens:[e]}:{tokens:[a],event:{from:e,to:[a],reason:r.reason,confidence:r.confidence}}}function ue(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 s=e[o];n=s==="--path"||s==="--pm-path"}return t}function ce(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 le(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 de(e,t,n,o){if(n.inlineValue!==void 0)return{originalTokens:[e[t]],value:n.inlineValue,consumed:1};let s=[],i=t+1;for(;i<e.length&&e[i]!=="--"&&!e[i].startsWith("-")&&(s.length===0||o.has(n.flag));)s.push(e[i]),i+=1;let r=s.length===0?1:1+s.length;return{originalTokens:e.slice(t,t+r),value:s.length===0?void 0:s.join(","),consumed:r}}function fe(e,t,n,o){let s=e.get(n);if(s){s.values.push(o.value),s.occurrences+=1;return}e.set(n,{outputIndex:t.length,originalTokens:o.originalTokens,values:[o.value],occurrences:1}),t.push(null)}function pe(e,t){let n=[],o=[];for(let[s,i]of e){if(!(i.occurrences>=2||t.has(s)&&i.originalTokens.length>2)){o.push({outputIndex:i.outputIndex,tokens:i.originalTokens});continue}let a=`${s}=${i.values.join(",")}`;o.push({outputIndex:i.outputIndex,tokens:[a]}),n.push({from:`${s} (x${i.occurrences})`,to:[a],reason:"list_merge",confidence:"high"})}return{events:n,splices:o}}function he(e,t){t.sort((n,o)=>o.outputIndex-n.outputIndex);for(let n of t)e.splice(n.outputIndex,1,...n.tokens)}function me(e,t,n=new Set,o=new Set){if(t.size===0)return{argv:[...e],events:[]};let s=[],i=new Map,r=0;for(;r<e.length;){let c=e[r];if(c==="--"){s.push(...e.slice(r));break}if(n.has(c)){r=le(e,r,s);continue}let l=ce(c);if(!l||!t.has(l.flag)){s.push(c),r+=1;continue}let d=de(e,r,l,o);if(d.value===void 0){s.push(c),r+=d.consumed;continue}fe(i,s,l.flag,{originalTokens:d.originalTokens,value:d.value}),r+=d.consumed}let{events:a,splices:u}=pe(i,o);return he(s,u),{argv:s,events:a}}var v=new Map([["--add",new Set(["command","cmd","path"])],["--remove",new Set(["command","path"])]]);function ge(e,t){if(e!=="test"||t.length<2)return!1;let n=t[t.length-1],o=t[t.length-2],s=v.get(o);return s!==void 0&&s.has(n)}function be(e,t){return e==="search"||ge(e,t)}function ye(e,t,n){if(t!=="test")return e;let o=[],s=0;for(;s<e.length;){let i=e[s];if(i==="--")return o.push(...e.slice(s)),o;let r=v.get(i),a=r?e[s+1]:void 0;if(!r||typeof a!="string"||!r.has(a)){o.push(i),s+=1;continue}let u=s+2;for(;u<e.length&&!e[u].startsWith("-");)u+=1;if(u-(s+2)!==1){o.push(i),s+=1;continue}let c=e[s+2],l=`${a}=${c}`;o.push(i,l),n.push({from:`${i} ${a} ${c}`,to:[i,l],reason:"bare_key_value",confidence:"high"}),s+=3}return o}function we(e,t,n,o){let s=[],i=ue(e);for(let r=0;r<e.length;r+=1){let a=e[r];if(a==="--"){s.push(...e.slice(r));break}let u=i.has(r),c=s[s.length-1];if(a.startsWith("--")){let d=ae(a,t,u);s.push(...d.tokens),d.event&&o.push(d.event);continue}let l=re(a,u);if(l&&!(typeof c=="string"&&c.startsWith("-"))&&!be(n,s)){let d=B(l.key,t);if(d){let p=[d.flag,l.value];s.push(...p),o.push({from:a,to:p,reason:"bare_key_value",confidence:d.confidence});continue}}s.push(a)}return s}function Me(e){let t=[],n=ne(e,t),o=ee(n);(o.length!==n.length||o.some((p,W)=>p!==n[W]))&&t.push({from:n.join(" "),to:[...o],reason:"legacy_extension_action",confidence:"high"});let s=oe(o,t),i=N(s);if(i.conflict)throw new h("Provide the item id either positionally or with --id, not both.",f.USAGE);i.changed&&t.push({from:`--id ${i.itemId}`,to:[i.itemId],reason:"item_id_alias",confidence:"high"});let r=C(i.argv),a=Ie(i.argv),u=ie(a??r),c=we(i.argv,u,r,t),l=ye(c,r,t),d=me(l,u.listCanonicalFlags,g,r==="create"?new Set(["--tags"]):new Set);for(let p of d.events)t.push(p);return{argv:d.argv,commandName:r,trace:t}}function Ie(e){let t=M(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 Be(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]="4973a995-60f0-5990-9927-371dc6716063")}catch{}})();function z(e){return e.trim().match(/--[a-z0-9][a-z0-9_-]*/i)?.[0]?.replaceAll("_","-").toLowerCase()}function $e(e){if(!(!Array.isArray(e)||e.length===0))return C(e)}function xe(e,t){let n=z(t);if(!n)return;let o=m(e).find(s=>s.flag===n||s.aliases?.includes(n));return o?o.value_type==="boolean"?null:`<${o.value_name??"value"}>`:"<value>"}function Re(e,t,n){let o=[...e],s=o.indexOf("--"),i=s<0?o.length:s;for(let r of n){let a=z(r);if(!a||o.slice(0,i).some(l=>l===a||l.startsWith(`${a}=`)))continue;let u=xe(t,a),c=u?[a,u]:[a];o.splice(i,0,...c),i+=c.length}return o.length===e.length?void 0:A(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 Je(e){return e instanceof h||e instanceof Error?e.message:"Unknown failure"}function _e(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 Te(e){let t=Math.trunc(e);return t>f.SUCCESS?t:f.GENERIC_FAILURE}function Ze(e){return typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"&&e.code.startsWith("commander.")}function He(e,t){if(e instanceof Error)return e;let n=new Error(t),o=_e(e);return o!==void 0&&(n.exitCode=Te(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 ot(e){if(e===void 0)return()=>{};let t=e.trim();if(t.length===0)throw new h("--author requires a non-empty value.",f.USAGE,{code:"missing_required_argument",nextSteps:["Pass an explicit author identifier with --author <id>."]});let n=k();y(t);let o=!1;return()=>{o||(o=!0,n===void 0?y(void 0):y(n))}}import{Command as Ce}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]="03d46cbf-73bc-50c9-b4e6-e7329ee53076")}catch{}})();function at(e){return new Ce().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=>{E(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("--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 ke={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 Ee(e,t){let n=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(o.length===0)return Number.POSITIVE_INFINITY;let s=n.split(" "),i=ke[o]?.indexOf(n);if(i!==void 0&&i>=0)return i;if(n===o)return 10;if(s.includes(o))return 11;if(s.some(u=>u.startsWith(o)))return 12;let r=o.length>=5?2:1,a=Number.POSITIVE_INFINITY;for(let u of s){let c=b(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:Ee(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{R as a,N as b,J as c,M as d,Z as e,I as f,C as g,Ve as h,ee as i,De as j,me as k,ye as l,Me as m,Be as n,$e as o,xe as p,Re as q,Je as r,_e as s,Te as t,Ze as u,He as v,ot as w,at as x,Ee as y,lt as z};
|
|
2
|
+
//# sourceMappingURL=chunk-47OQEOQB.js.map
|