@unbrained/pm-cli 2026.9.22 → 2026.9.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/cli-bundle/bundle-manifest.json +147 -147
- package/dist/cli-bundle/chunks/{chunk-AVWHZUNC.js → chunk-6WBR6GMW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CM57QHVK.js → chunk-7IABMUB6.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UDNYAMCM.js → chunk-E6ZES2X7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BJBBOUYQ.js → chunk-KOUT5SAA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-D2OV2UBV.js → chunk-NBGSRFZE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZSPZJOMK.js → chunk-OBTHQ6UX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3OFFMS2N.js → chunk-PFWCAI4X.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JSW33Q6R.js → chunk-SXRMM72R.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SBTT42A4.js → chunk-VO7DHENB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4XOV7Q5R.js → chunk-WBB5B7G5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ML42DLI3.js → chunk-ZSVINTXT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GFTN5OS4.js → chunk-ZWSWR2GX.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-VOS5CBX4.js → register-list-query-IFPQ4YRD.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-LWZH6UFJ.js → register-mutation-C3O7OSXW.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-YJK4DNFZ.js → register-operations-LGO7DBZ7.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-Q3CYF67Q.js → register-setup-4EW2PPZD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QYN77MQP.js → chunk-3JAEZ7WI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-LH24XUPJ.js → chunk-6CWR2QFM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-V2NARGRH.js → chunk-BKXYQQDT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-JCD5YESL.js → chunk-BQSKFRL2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UAU4DJSR.js → chunk-BULUJEOL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-AO5FR7PN.js → chunk-E5AOEXF5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-PRMQTT7X.js → chunk-FIQYVDLL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-FKYUTTFL.js → chunk-HJA6OHWT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IOL25GKH.js → chunk-KMNH4G6Y.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-URH727T5.js → chunk-L554BKFH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QFEDRPPI.js → chunk-LZOEUNHR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UT7VS4X2.js → chunk-N2JYYEHM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TSI73EEM.js → chunk-PIHQNL32.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MXESHALQ.js → chunk-QREDJ77O.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XR5EBU3B.js → chunk-S5JYIFFS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-CASXNCNQ.js → chunk-YE6F5HGF.js} +2 -2
- package/dist/cli-bundle/main.js +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/sdk/cli-contracts/commander-types.d.ts +11 -11
- package/dist/sdk/cli-contracts/commander-types.js +1 -1
- package/dist/sdk/pagination.js +1 -1
- package/docs/QUALITY_EVIDENCE.md +70 -0
- package/docs/TESTING.md +8 -0
- package/marketplace.json +2 -2
- package/package.json +8 -3
- 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
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.",
|
|
9
|
-
"version": "2026.9.
|
|
9
|
+
"version": "2026.9.23"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "pm-claude",
|
|
14
14
|
"source": "./plugins/pm-claude",
|
|
15
15
|
"description": "Native pm CLI integration for Claude Code — 28 MCP tools, 5 workflow skills, 14 slash commands, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.",
|
|
16
|
-
"version": "2026.9.
|
|
16
|
+
"version": "2026.9.23",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "unbrained",
|
|
19
19
|
"url": "https://github.com/unbraind/pm-cli"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026.9.23 - 2026-09-23
|
|
4
|
+
|
|
5
|
+
### Other
|
|
6
|
+
|
|
7
|
+
- Mutation-testing gate: prove the 100 percent coverage suite actually detects defects, with a ratcheted mutation score on SDK core ([pm-zclzll](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/tasks/pm-zclzll.toon))
|
|
8
|
+
|
|
3
9
|
## 2026.9.22 - 2026-09-22
|
|
4
10
|
|
|
5
11
|
### Fixed
|
|
@@ -1,290 +1,290 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"generation": "
|
|
3
|
+
"generation": "ebd0c091861d627b2bb953fe64fe8692253a10547a9183449c53b3dc84d6cbb7",
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
6
|
-
"path": "chunks/chunk-
|
|
7
|
-
"sha256": "
|
|
6
|
+
"path": "chunks/chunk-6WBR6GMW.js",
|
|
7
|
+
"sha256": "81ab46e69756ade722dfafa28e3eed51d1c41365ee13ee0fb2f4f394db226f13"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
"path": "chunks/chunk-
|
|
11
|
-
"sha256": "
|
|
10
|
+
"path": "chunks/chunk-6WBR6GMW.js.map",
|
|
11
|
+
"sha256": "854dd0cc6d6fa872cc3ee673945a7a2e1daa4a8f706205ce3f8712c23a9e56e7"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"path": "chunks/chunk-
|
|
15
|
-
"sha256": "
|
|
14
|
+
"path": "chunks/chunk-7IABMUB6.js",
|
|
15
|
+
"sha256": "f9d0b198a3aca7f02739e3e102e35b4c8c1c2be61167726ca168f58706d3a0bf"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"path": "chunks/chunk-
|
|
19
|
-
"sha256": "
|
|
18
|
+
"path": "chunks/chunk-7IABMUB6.js.map",
|
|
19
|
+
"sha256": "62460907b3a75501671ff2b9ec3955436cc288e98a4dd2fecc46089e9ed66494"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"path": "chunks/chunk-
|
|
23
|
-
"sha256": "
|
|
22
|
+
"path": "chunks/chunk-DEZPZOQ7.js",
|
|
23
|
+
"sha256": "ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"path": "chunks/chunk-
|
|
27
|
-
"sha256": "
|
|
26
|
+
"path": "chunks/chunk-DEZPZOQ7.js.map",
|
|
27
|
+
"sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"path": "chunks/chunk-
|
|
31
|
-
"sha256": "
|
|
30
|
+
"path": "chunks/chunk-E6ZES2X7.js",
|
|
31
|
+
"sha256": "988c022f0646fe949ffac6253cfcea038c7f27426fd6bb9970bf5d0847d19071"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"path": "chunks/chunk-
|
|
35
|
-
"sha256": "
|
|
34
|
+
"path": "chunks/chunk-E6ZES2X7.js.map",
|
|
35
|
+
"sha256": "dd9a540366f098828d4d72d0f997efc725c813e6b73ffa3b22e7a9aa0c5edd65"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"path": "chunks/chunk-
|
|
39
|
-
"sha256": "
|
|
38
|
+
"path": "chunks/chunk-KOUT5SAA.js",
|
|
39
|
+
"sha256": "297c1999a9a3553d2956d6c41873ad780394d8cee19b58ce976dc33c26fece0e"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"path": "chunks/chunk-
|
|
43
|
-
"sha256": "
|
|
42
|
+
"path": "chunks/chunk-KOUT5SAA.js.map",
|
|
43
|
+
"sha256": "47b2a00ab0a92be37aace914a7677a473ec8b0b21c43e29972fdc83ec55f6795"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"path": "chunks/chunk-
|
|
47
|
-
"sha256": "
|
|
46
|
+
"path": "chunks/chunk-NBGSRFZE.js",
|
|
47
|
+
"sha256": "7f6bee602fe5102259377e36791ddeb289d70b842806fbfee47b4b3ce7a6c91f"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
"path": "chunks/chunk-
|
|
50
|
+
"path": "chunks/chunk-NBGSRFZE.js.map",
|
|
51
51
|
"sha256": "59e66f071a3e88c626ecb55533ec60d35064b2d33180ee8704d4417e5c3da036"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"path": "chunks/chunk-
|
|
55
|
-
"sha256": "
|
|
54
|
+
"path": "chunks/chunk-OBTHQ6UX.js",
|
|
55
|
+
"sha256": "68eb1acec8d3f0044ff5545f711e9d82273f66914d56c0ceae1ec396fc089198"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"path": "chunks/chunk-
|
|
59
|
-
"sha256": "
|
|
58
|
+
"path": "chunks/chunk-OBTHQ6UX.js.map",
|
|
59
|
+
"sha256": "a8e99fee25f3436a937566a6b3dea4afb4c6c39965ba1305f6dfb79b9bac84f4"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
"path": "chunks/chunk-
|
|
63
|
-
"sha256": "
|
|
62
|
+
"path": "chunks/chunk-PFWCAI4X.js",
|
|
63
|
+
"sha256": "c47ed4f4189bb0374873ba787491ca3ababc3a0c38d7317303a7af8b603989ef"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
"path": "chunks/chunk-
|
|
67
|
-
"sha256": "
|
|
66
|
+
"path": "chunks/chunk-PFWCAI4X.js.map",
|
|
67
|
+
"sha256": "4ac5badee3213f03a8f2adcbb9e73c18ef60f7d2a26fc158587e847dcaeaf868"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
"path": "chunks/chunk-
|
|
71
|
-
"sha256": "
|
|
70
|
+
"path": "chunks/chunk-SGFQQXFD.js",
|
|
71
|
+
"sha256": "27cfd4152f894bbd21c5d4f1d8ba40ea447d11983ec3b09a578d8bbc787522d7"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"path": "chunks/chunk-
|
|
75
|
-
"sha256": "
|
|
74
|
+
"path": "chunks/chunk-SGFQQXFD.js.map",
|
|
75
|
+
"sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"path": "chunks/chunk-
|
|
79
|
-
"sha256": "
|
|
78
|
+
"path": "chunks/chunk-SXRMM72R.js",
|
|
79
|
+
"sha256": "989fca4ef2f4cdcd9da9cf908a30e71e1e42db95284ea54028cd4925c0b2c0fb"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
"path": "chunks/chunk-
|
|
83
|
-
"sha256": "
|
|
82
|
+
"path": "chunks/chunk-SXRMM72R.js.map",
|
|
83
|
+
"sha256": "f288f09ae199e6c71f6ea68d858ada84cb3497e0fe6c4ab7ff495baad5ff7ac5"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
"path": "chunks/chunk-
|
|
87
|
-
"sha256": "
|
|
86
|
+
"path": "chunks/chunk-VO7DHENB.js",
|
|
87
|
+
"sha256": "db11391db32c422fa7190b83f9043ff66c8d17323cd9636a2b95fd970f6721e2"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
"path": "chunks/chunk-
|
|
90
|
+
"path": "chunks/chunk-VO7DHENB.js.map",
|
|
91
91
|
"sha256": "6776dbf9171b0bde1ee60b171059e57e8e2f94b653e05e312d47e40823829f82"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
"path": "chunks/chunk-
|
|
95
|
-
"sha256": "
|
|
94
|
+
"path": "chunks/chunk-WBB5B7G5.js",
|
|
95
|
+
"sha256": "f70c81a4697cf81df28b7263ce270452b4e18ca5d1ff0512dcfa01b0ca2157b6"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
"path": "chunks/chunk-
|
|
99
|
-
"sha256": "
|
|
98
|
+
"path": "chunks/chunk-WBB5B7G5.js.map",
|
|
99
|
+
"sha256": "80a615273c13c3004a0977f41ade5169cca1e37b64c3942f2c9c9c33a5fc5965"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"path": "chunks/chunk-
|
|
103
|
-
"sha256": "
|
|
102
|
+
"path": "chunks/chunk-ZSVINTXT.js",
|
|
103
|
+
"sha256": "81d156da6f15e88c8708023f6b1bafa756851b39da476794dad02859003a29f6"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
"path": "chunks/chunk-
|
|
107
|
-
"sha256": "
|
|
106
|
+
"path": "chunks/chunk-ZSVINTXT.js.map",
|
|
107
|
+
"sha256": "15e812737eff8caa722e0c3c9dca2af60cbc1975626ace416651a73bab61617c"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"path": "chunks/chunk-
|
|
111
|
-
"sha256": "
|
|
110
|
+
"path": "chunks/chunk-ZWSWR2GX.js",
|
|
111
|
+
"sha256": "18c9f354537c0c1a427176d948ed3349c5d1bf34a4fcbe9e0e71d7b6eabc7316"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
"path": "chunks/chunk-
|
|
115
|
-
"sha256": "
|
|
114
|
+
"path": "chunks/chunk-ZWSWR2GX.js.map",
|
|
115
|
+
"sha256": "d7178e0b054769ead69e36e4681f4fdcd9df8321a74d7ccf5eb879e82a26de78"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
"path": "chunks/register-list-query-
|
|
119
|
-
"sha256": "
|
|
118
|
+
"path": "chunks/register-list-query-IFPQ4YRD.js",
|
|
119
|
+
"sha256": "3301f31ee5f0eac948cd0df86cb159a2185bb4b84153e4b321e1de7e6cdd1d9e"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"path": "chunks/register-list-query-
|
|
122
|
+
"path": "chunks/register-list-query-IFPQ4YRD.js.map",
|
|
123
123
|
"sha256": "b352bba75162c73214dedbb83ff23db96b62a2f6719dbd3efb5de04339368211"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
"path": "chunks/register-mutation-
|
|
127
|
-
"sha256": "
|
|
126
|
+
"path": "chunks/register-mutation-C3O7OSXW.js",
|
|
127
|
+
"sha256": "344983f26b7435bdc1c6f948db286619a2156c8275012658a33c98fae5f863d0"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
"path": "chunks/register-mutation-
|
|
130
|
+
"path": "chunks/register-mutation-C3O7OSXW.js.map",
|
|
131
131
|
"sha256": "012ce22b967afc78c26188416779a3970f362d59af891031edf68850ead2b961"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
"path": "chunks/register-operations-
|
|
135
|
-
"sha256": "
|
|
134
|
+
"path": "chunks/register-operations-LGO7DBZ7.js",
|
|
135
|
+
"sha256": "c40f0caacf4402cb541b6a8fffb959ca8b32a22b42e1905c76ed77ddc3dd278c"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
"path": "chunks/register-operations-
|
|
138
|
+
"path": "chunks/register-operations-LGO7DBZ7.js.map",
|
|
139
139
|
"sha256": "5103709b93a64d0643c8c46b171fadd16637db81aade19c95c9718b26d54b442"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
"path": "chunks/register-setup-
|
|
143
|
-
"sha256": "
|
|
142
|
+
"path": "chunks/register-setup-4EW2PPZD.js",
|
|
143
|
+
"sha256": "4f654da62e709d215cbae4c307b2774583d0993f5599f9d9cb74e662da4b2595"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
"path": "chunks/register-setup-
|
|
146
|
+
"path": "chunks/register-setup-4EW2PPZD.js.map",
|
|
147
147
|
"sha256": "9c5f094df74abe4a9ca58ae1643bf1854548fcf5c0e601cd804a4d47188776dd"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
"path": "focused-chunks/chunk-
|
|
151
|
-
"sha256": "
|
|
150
|
+
"path": "focused-chunks/chunk-3JAEZ7WI.js",
|
|
151
|
+
"sha256": "87bb88ddcb1a7273232ba2af87f510d391fe8337c82b53c7bafbc50a8f83a7d8"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"path": "focused-chunks/chunk-
|
|
155
|
-
"sha256": "
|
|
154
|
+
"path": "focused-chunks/chunk-3JAEZ7WI.js.map",
|
|
155
|
+
"sha256": "9d0cc23df13736b9ad1c20654585d4af416106776c2520feac5047890fbedd1c"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
"path": "focused-chunks/chunk-
|
|
159
|
-
"sha256": "
|
|
158
|
+
"path": "focused-chunks/chunk-6CWR2QFM.js",
|
|
159
|
+
"sha256": "36b2842a8baf1949c66986acc7a0c7ec57fd72e60c9dfa0389500c3c4dbccb54"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
"path": "focused-chunks/chunk-
|
|
163
|
-
"sha256": "
|
|
162
|
+
"path": "focused-chunks/chunk-6CWR2QFM.js.map",
|
|
163
|
+
"sha256": "3c85a304dc8d31b77b68df15d0c57b035c8405bc1a2a40fea766e0e812212520"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
"path": "focused-chunks/chunk-
|
|
167
|
-
"sha256": "
|
|
166
|
+
"path": "focused-chunks/chunk-BKXYQQDT.js",
|
|
167
|
+
"sha256": "400261528189079a204b5ccbc5f43d1e505c8c58b654b2423904b921dea47d46"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
"path": "focused-chunks/chunk-
|
|
171
|
-
"sha256": "
|
|
170
|
+
"path": "focused-chunks/chunk-BKXYQQDT.js.map",
|
|
171
|
+
"sha256": "7bb00786004b46832dce64481455781d5bd2f3634356803acdf5e0b2a17441b6"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
"path": "focused-chunks/chunk-
|
|
175
|
-
"sha256": "
|
|
174
|
+
"path": "focused-chunks/chunk-BQSKFRL2.js",
|
|
175
|
+
"sha256": "b4d8787c0bb9a2ce6897febbb3743ee07a491fd67412b3fc1f5ed8d8c89366aa"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
"path": "focused-chunks/chunk-
|
|
179
|
-
"sha256": "
|
|
178
|
+
"path": "focused-chunks/chunk-BQSKFRL2.js.map",
|
|
179
|
+
"sha256": "ce8dbed80ece0d339d524a472a9802c69dae1a800c2c1d9ef462da9ab0fb2a0f"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
"path": "focused-chunks/chunk-
|
|
183
|
-
"sha256": "
|
|
182
|
+
"path": "focused-chunks/chunk-BULUJEOL.js",
|
|
183
|
+
"sha256": "4877814a15f334b8d7a69c13522ffeb7e98537564816c61f68ccb06bd7206684"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
"path": "focused-chunks/chunk-
|
|
187
|
-
"sha256": "
|
|
186
|
+
"path": "focused-chunks/chunk-BULUJEOL.js.map",
|
|
187
|
+
"sha256": "992c1786be6ddd9b946ea35261d6aba35dd764196d6793f2af4711e31c62b6a3"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
"path": "focused-chunks/chunk-
|
|
191
|
-
"sha256": "
|
|
190
|
+
"path": "focused-chunks/chunk-E5AOEXF5.js",
|
|
191
|
+
"sha256": "9cce34f01d3fc944646a525b56e2e895f25a605bb9428ae76574339d395a7257"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
|
-
"path": "focused-chunks/chunk-
|
|
195
|
-
"sha256": "
|
|
194
|
+
"path": "focused-chunks/chunk-E5AOEXF5.js.map",
|
|
195
|
+
"sha256": "1f8226414288b36631c2e11132ced8869e79ae68a5932a18cab9b744b4e2478b"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"path": "focused-chunks/chunk-
|
|
199
|
-
"sha256": "
|
|
198
|
+
"path": "focused-chunks/chunk-FIQYVDLL.js",
|
|
199
|
+
"sha256": "9c1251da09471c1407bd05e42aefcff2b13ff6ebdc81b9084ac7c6e5e36a8cba"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
"path": "focused-chunks/chunk-
|
|
203
|
-
"sha256": "
|
|
202
|
+
"path": "focused-chunks/chunk-FIQYVDLL.js.map",
|
|
203
|
+
"sha256": "a55427ac1f8253687d1f9cf5f864e11933c9ef5a6bc1d8db7cc5b8a3d05c3e80"
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
"path": "focused-chunks/chunk-
|
|
207
|
-
"sha256": "
|
|
206
|
+
"path": "focused-chunks/chunk-HFAW3FJQ.js",
|
|
207
|
+
"sha256": "fa55b173f8d973fb7d1f620fe913870b8eafc9489f3091a7c24a16794c4e46c5"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
"path": "focused-chunks/chunk-
|
|
211
|
-
"sha256": "
|
|
210
|
+
"path": "focused-chunks/chunk-HFAW3FJQ.js.map",
|
|
211
|
+
"sha256": "2536922ae21f29b6d28033a35d9aba3d921ee26867d733ba0a76857c97366cd9"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
"path": "focused-chunks/chunk-
|
|
215
|
-
"sha256": "
|
|
214
|
+
"path": "focused-chunks/chunk-HJA6OHWT.js",
|
|
215
|
+
"sha256": "64c0b37e74ee16b7ad62af80549bf1ccad0fb92340d97d46d41403ce87b8f12c"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
"path": "focused-chunks/chunk-
|
|
219
|
-
"sha256": "
|
|
218
|
+
"path": "focused-chunks/chunk-HJA6OHWT.js.map",
|
|
219
|
+
"sha256": "d27c12d05d8647b7949d0b613b01e705ec829b855b21e5986e88422d8f34cf5f"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
"path": "focused-chunks/chunk-
|
|
223
|
-
"sha256": "
|
|
222
|
+
"path": "focused-chunks/chunk-KMNH4G6Y.js",
|
|
223
|
+
"sha256": "181b8ce723920597f978ed55b0d87b846a49603f620811c3d0b3305a88f0e4fb"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"path": "focused-chunks/chunk-
|
|
227
|
-
"sha256": "
|
|
226
|
+
"path": "focused-chunks/chunk-KMNH4G6Y.js.map",
|
|
227
|
+
"sha256": "528d942018fc704af440ef0e3ab01734952dbd715d6a55c8ae13d7efec548055"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
"path": "focused-chunks/chunk-
|
|
231
|
-
"sha256": "
|
|
230
|
+
"path": "focused-chunks/chunk-L554BKFH.js",
|
|
231
|
+
"sha256": "9b196dad2f91872a978aa65ac8048ad3ac1f665915f682e0f393cbbff523e92a"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
"path": "focused-chunks/chunk-
|
|
235
|
-
"sha256": "
|
|
234
|
+
"path": "focused-chunks/chunk-L554BKFH.js.map",
|
|
235
|
+
"sha256": "9c212fdef90c5f0ba8576dd9f28b5c64665fc9c010f215eb89209ed9a92378eb"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
|
-
"path": "focused-chunks/chunk-
|
|
239
|
-
"sha256": "
|
|
238
|
+
"path": "focused-chunks/chunk-LZOEUNHR.js",
|
|
239
|
+
"sha256": "d0d8740d323f836c4f022d338510233f275cee57fe785400d9ef596244149ee7"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
"path": "focused-chunks/chunk-
|
|
243
|
-
"sha256": "
|
|
242
|
+
"path": "focused-chunks/chunk-LZOEUNHR.js.map",
|
|
243
|
+
"sha256": "974f8e877cfa8adb7e05770e5573548ae5f041e06cdf871f34b1fa2f4e63fd3e"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
"path": "focused-chunks/chunk-
|
|
247
|
-
"sha256": "
|
|
246
|
+
"path": "focused-chunks/chunk-N2JYYEHM.js",
|
|
247
|
+
"sha256": "5b5459479d1f885c5d3e88f480866436d530b31c63c34b79a6e3c93cd0822488"
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
"path": "focused-chunks/chunk-
|
|
251
|
-
"sha256": "
|
|
250
|
+
"path": "focused-chunks/chunk-N2JYYEHM.js.map",
|
|
251
|
+
"sha256": "b49258ed6ac435152e91eb35cf7ef036f50ab603fce07725fdecb63d5b9d394c"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
"path": "focused-chunks/chunk-
|
|
255
|
-
"sha256": "
|
|
254
|
+
"path": "focused-chunks/chunk-PIHQNL32.js",
|
|
255
|
+
"sha256": "c5ae896b398c45dcfe5768e74fe73897c5a9aef59847efa4ba81e479d9ea2195"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
"path": "focused-chunks/chunk-
|
|
259
|
-
"sha256": "
|
|
258
|
+
"path": "focused-chunks/chunk-PIHQNL32.js.map",
|
|
259
|
+
"sha256": "8ed302e41bcf65cdff950a07f71e9597aed614b0518fc8cfc60be61aa489baba"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
|
-
"path": "focused-chunks/chunk-
|
|
263
|
-
"sha256": "
|
|
262
|
+
"path": "focused-chunks/chunk-QREDJ77O.js",
|
|
263
|
+
"sha256": "b2135d5614f5e0245a52afae12c7e94fab0504c57192e7129f9e46f100d57846"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
"path": "focused-chunks/chunk-
|
|
267
|
-
"sha256": "
|
|
266
|
+
"path": "focused-chunks/chunk-QREDJ77O.js.map",
|
|
267
|
+
"sha256": "bb288fb1ddb4f79bb931b6f84e4a17997b6478effc660f5a935b962bf2dcebc6"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
"path": "focused-chunks/chunk-
|
|
271
|
-
"sha256": "
|
|
270
|
+
"path": "focused-chunks/chunk-S5JYIFFS.js",
|
|
271
|
+
"sha256": "de0c044305e1bc948b68ce09031397fec904764d7f55ce48398d7ff0d72467fa"
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
|
-
"path": "focused-chunks/chunk-
|
|
275
|
-
"sha256": "
|
|
274
|
+
"path": "focused-chunks/chunk-S5JYIFFS.js.map",
|
|
275
|
+
"sha256": "9a9556544e1423030c2c162c4633ad7d9121eb6e1f075c1317d13e14bc33d463"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"path": "focused-chunks/chunk-
|
|
279
|
-
"sha256": "
|
|
278
|
+
"path": "focused-chunks/chunk-YE6F5HGF.js",
|
|
279
|
+
"sha256": "92484d7e957fdffe04434386a62e841fa3241a70611440362ff1d7a3a6970bf3"
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
|
-
"path": "focused-chunks/chunk-
|
|
283
|
-
"sha256": "
|
|
282
|
+
"path": "focused-chunks/chunk-YE6F5HGF.js.map",
|
|
283
|
+
"sha256": "d630bf56bd642198df70d31c5dda6fd3df81e66338e35d83c3b25084ab6f82de"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"path": "main.js",
|
|
287
|
-
"sha256": "
|
|
287
|
+
"sha256": "c3535948615ebf048cb2360b6a5f7b327690067a32f48545c453a71a9dbf94cf"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
"path": "main.js.map",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "sdk-authoring.js",
|
|
295
|
-
"sha256": "
|
|
295
|
+
"sha256": "f57473578d09d2cbf6dec20eefe0eb9d2dff2a160fbd17503865211d52686277"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"path": "sdk-authoring.js.map",
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"path": "sdk-contracts.js",
|
|
303
|
-
"sha256": "
|
|
303
|
+
"sha256": "fe28c5269152b86963caed4ef505c66b5d582c7edd8d1f152e06e54544b96be0"
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"path": "sdk-contracts.js.map",
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"path": "sdk-core.js",
|
|
311
|
-
"sha256": "
|
|
311
|
+
"sha256": "23c486c5ff14cb965ada12157b7eb0619c0bf5429e74467285d52fa99eb4c4b0"
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"path": "sdk-core.js.map",
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"path": "sdk-governance.js",
|
|
319
|
-
"sha256": "
|
|
319
|
+
"sha256": "1ac9c41aacccb20a665bac7733a7717df1c1454529bc01bb856a226347488776"
|
|
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": "
|
|
327
|
+
"sha256": "a0e4d3973f28925c0e564ec7e1ba17e43f5141cd3122a859b04d6f1e0538b002"
|
|
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": "
|
|
335
|
+
"sha256": "87846f9e4ad3c3b8885df3b0505c009a184e4d2f9cb17c5f61556d5070d8cea6"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "sdk-merge.js.map",
|
|
339
|
-
"sha256": "
|
|
339
|
+
"sha256": "a1cac8ab3a2d3797b63921b605cf0ba22ea5e2d02536eed09a81ef12e30c5a4a"
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"path": "sdk-query.js",
|
|
343
|
-
"sha256": "
|
|
343
|
+
"sha256": "629e8459a404ae24807eae15f5ad077c72cb5e716e9d1362ed29349656f9ac2d"
|
|
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": "
|
|
351
|
+
"sha256": "9c5a99767ca8b96a8cd1982260676abfce53b25c6c8cc893faf8f2fea11efda3"
|
|
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": "
|
|
359
|
+
"sha256": "1123bb0365de166c6285421aa55d87c505f39c92bee9fec21b1f26de032181a1"
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"path": "sdk-testing.js.map",
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
"path": "sdk.js",
|
|
367
|
-
"sha256": "
|
|
367
|
+
"sha256": "022216cfd2122782e498036b487bbc002847d51d139ad365b3b505d607097d3f"
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
"path": "sdk.js.map",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$a as xo,$c as Lo,$j as ii,A as W,B as fe,Bc as B,D as V,Di as Xo,Fb as Co,H as ce,Hb as Ro,Hd as At,Id as Fo,Jd as fn,Ji as Zo,Kb as Ce,Kc as K,Kd as hn,Ld as gn,Lf as ke,M as yo,Mi as Ot,Nd as Mo,Ni as Ct,Od as Go,Qa as bo,Qi as Re,Ra as ko,Rd as Uo,Sa as U,T as _o,Tf as I,Uf as X,Uj as ti,Vf as Jo,Vi as Qo,Vj as Pe,W as St,Wf as Y,Wi as _n,Wj as it,Xf as oe,Xj as ni,Yd as zo,Yj as oi,Zf as qo,Zj as ae,_a as N,_f as ot,_g as Wo,_j as ze,ab as So,ad as nt,af as T,ag as Tt,ai as yn,ak as le,ao as Rt,ba as wo,bb as Eo,bj as ei,ci as Bo,dh as H,di as Ue,ec as mn,fa as ln,fc as Po,gc as $t,ha as vo,hf as Q,hi as re,ic as ve,k as go,ka as dn,kc as be,ki as A,kl as ri,la as h,li as xe,mi as Se,na as f,nc as No,pc as It,qc as Do,qi as Ho,ra as Et,rb as $o,rc as jo,ri as Ko,sa as pn,sb as Io,si as Ee,ta as un,tb as Ao,ti as Vo,ui as Yo,wb as To,x as S,xb as Oo,y as xt,z as ie}from"./chunk-
|
|
1
|
+
import{$a as xo,$c as Lo,$j as ii,A as W,B as fe,Bc as B,D as V,Di as Xo,Fb as Co,H as ce,Hb as Ro,Hd as At,Id as Fo,Jd as fn,Ji as Zo,Kb as Ce,Kc as K,Kd as hn,Ld as gn,Lf as ke,M as yo,Mi as Ot,Nd as Mo,Ni as Ct,Od as Go,Qa as bo,Qi as Re,Ra as ko,Rd as Uo,Sa as U,T as _o,Tf as I,Uf as X,Uj as ti,Vf as Jo,Vi as Qo,Vj as Pe,W as St,Wf as Y,Wi as _n,Wj as it,Xf as oe,Xj as ni,Yd as zo,Yj as oi,Zf as qo,Zj as ae,_a as N,_f as ot,_g as Wo,_j as ze,ab as So,ad as nt,af as T,ag as Tt,ai as yn,ak as le,ao as Rt,ba as wo,bb as Eo,bj as ei,ci as Bo,dh as H,di as Ue,ec as mn,fa as ln,fc as Po,gc as $t,ha as vo,hf as Q,hi as re,ic as ve,k as go,ka as dn,kc as be,ki as A,kl as ri,la as h,li as xe,mi as Se,na as f,nc as No,pc as It,qc as Do,qi as Ho,ra as Et,rb as $o,rc as jo,ri as Ko,sa as pn,sb as Io,si as Ee,ta as un,tb as Ao,ti as Vo,ui as Yo,wb as To,x as S,xb as Oo,y as xt,z as ie}from"./chunk-7IABMUB6.js";import{mkdir as Ls,readFile as Fs}from"node:fs/promises";import pi from"node:path";(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]="4d7f490a-03a3-512c-ba3c-b19fcc9a1270")}catch{}})();var wn=class extends Error{constructor(t="Workspace transaction interrupted"){super(t),this.name="WorkspaceTransactionInterruptedError"}},Ms="sdk-workspace-transaction",Gs=/^[a-zA-Z0-9._-]+$/,Us=30,zs=3e3;function ai(e,t){if(typeof e!="string")throw new TypeError(`${t} must be a string`);let n=e.trim();if(!n||!Gs.test(n))throw new TypeError(`${t} must match [a-zA-Z0-9._-]+`);return n}function si(e,t){if(typeof e!="string")throw new TypeError(`${t} must be a string`);let n=e.trim();if(!n)throw new TypeError(`${t} must be non-empty`);return n}function ci(e,t,n){let o=e??t;if(!Number.isInteger(o)||o<=0)throw new TypeError(`${n} must be a positive integer`);return o}function ui(e,t){return pi.join(e,"transactions","sdk",`${t}.json`)}async function $e(e,t){t.updatedAt=T();let n=ui(e,t.transactionId);await Ls(pi.dirname(n),{recursive:!0}),await fe(n,`${JSON.stringify(t,null,2)}
|
|
2
2
|
`)}function Js(e){return Number.isInteger(e.attempt)&&typeof e.author=="string"&&typeof e.createdAt=="string"&&typeof e.updatedAt=="string"}function Ne(e){return Object.assign(Object.create(null),e)}function qs(e,t){try{let n=JSON.stringify(e,(o,i)=>{if(typeof i=="number"&&!Number.isFinite(i))throw new TypeError(`${t} contains a non-finite number`);if(i===void 0||typeof i=="function"||typeof i=="symbol")throw new TypeError(`${t} contains a non-JSON value`);return i});return JSON.parse(n)}catch(n){throw new TypeError(`${t} must be JSON serializable`,{cause:n})}}function vn(e,t){return e===void 0?void 0:qs(e,t)}function bn(e,t,n,o){let i=vn(n,o);i===void 0?delete e[t]:e[t]=i}function li(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function di(e,t){return Array.isArray(e)&&new Set(e).size===e.length&&e.every(n=>typeof n=="string"&&t.includes(n))}function Ws(e,t){if(!di(e.startedStepIds,t)||!di(e.completedStepIds,t)||!li(e.results)||!li(e.compensationData))return!1;let n=e.startedStepIds,o=new Set(n),i=e.completedStepIds,r=new Set(i);return Object.keys(e.compensationData).some(a=>!o.has(a))||Object.keys(e.results).some(a=>!r.has(a))?!1:e.status==="committed"?t.every(a=>r.has(a)):e.status!=="compensated"||r.size===0&&o.size===0}function Bs(e,t,n){let o;try{o=JSON.parse(e)}catch{throw new TypeError(`Workspace transaction ${t} journal is invalid JSON`)}if(!o||typeof o!="object"||Array.isArray(o))throw new TypeError(`Workspace transaction ${t} journal is invalid`);let i=o,r=i.schemaVersion===1&&i.transactionId===t,a=Array.isArray(i.stepIds)&&i.stepIds.length===n.length&&i.stepIds.every((d,p)=>d===n[p]),s=Ws(i,n),c=Js(i),l=["applying","compensating","compensated","committed"].includes(String(i.status));if(!r||!a||!s||!c||!l)throw new TypeError(`Workspace transaction ${t} journal does not match the supplied plan`);return{...i,results:Ne(i.results),compensationData:Ne(i.compensationData)}}async function Hs(e,t,n,o,i){let r=i,a=r!==void 0;if(r?.status==="compensating"&&await mi(e,r),r===void 0||r.status==="compensated"){let s=T();r={schemaVersion:1,transactionId:t,author:n,status:"applying",attempt:(r?.attempt??0)+1,createdAt:r?.createdAt??s,updatedAt:s,stepIds:o,startedStepIds:[],completedStepIds:[],results:Ne(),compensationData:Ne()},await $e(e.pmRoot,r),await he(e,r,"prepared")}return{journal:r,recovered:a}}async function Ks(e,t,n){try{await Ys(t,e.steps),await $e(e.pmRoot,t);let o=new Set(t.completedStepIds),i=new Set(t.startedStepIds);for(let r of e.steps){if(o.has(r.id))continue;let a=await r.inspect(),s=vn(a.result,`Step ${r.id} result`);if(a.state!=="applied"){let c=await r.prepareCompensation?.();bn(t.compensationData,r.id,c,`Step ${r.id} compensation data`),i.add(r.id),t.startedStepIds=e.steps.map(d=>d.id).filter(d=>i.has(d)),await $e(e.pmRoot,t);let l=await r.apply();s=vn(l,`Step ${r.id} result`)}await he(e,t,"step_applied",r.id),o.add(r.id),t.completedStepIds=e.steps.map(c=>c.id).filter(c=>o.has(c)),bn(t.results,r.id,s,`Step ${r.id} result`),await $e(e.pmRoot,t),await he(e,t,"step_recorded",r.id)}return await he(e,t,"committing"),t.status="committed",await $e(e.pmRoot,t),await he(e,t,"committed"),{transactionId:t.transactionId,status:"committed",recovered:n,results:Ne(t.results)}}catch(o){if(o instanceof wn||t.status==="committed")throw o;try{await mi(e,t)}catch(i){throw new AggregateError([o,i],`Workspace transaction failed and compensation failed: ${String(i)}`,{cause:i})}throw o}}async function Vs(e,t,n){try{return Bs(await Fs(ui(e,t),"utf8"),t,n)}catch(o){if(o!==null&&typeof o=="object"&&"code"in o&&ie(o))return;throw o}}async function he(e,t,n,o){await e.onTransition?.({transactionId:t.transactionId,attempt:t.attempt,transition:n,...o===void 0?{}:{stepId:o}})}async function Ys(e,t){let n=new Set,o=Ne();for(let i of t){let r=await i.inspect();r.state==="applied"&&(n.add(i.id),bn(o,i.id,r.result,`Step ${i.id} result`))}e.results=o,e.completedStepIds=t.map(i=>i.id).filter(i=>n.has(i))}async function mi(e,t){t.status="compensating",await $e(e.pmRoot,t),await he(e,t,"compensating");let n=new Set(t.completedStepIds),o=new Set(t.startedStepIds);for(let i of[...e.steps].reverse()){if(!o.has(i.id)&&!n.has(i.id))continue;let r;try{r=o.has(i.id)&&(await i.inspect()).state==="applied"}catch{r=o.has(i.id)}r&&(await he(e,t,"step_compensating",i.id),await i.compensate(t.compensationData[i.id])),n.delete(i.id),o.delete(i.id),t.completedStepIds=e.steps.map(a=>a.id).filter(a=>n.has(a)),t.startedStepIds=e.steps.map(a=>a.id).filter(a=>o.has(a)),delete t.results[i.id],delete t.compensationData[i.id],await $e(e.pmRoot,t),await he(e,t,"step_compensated",i.id)}t.status="compensated",await $e(e.pmRoot,t),await he(e,t,"compensated")}async function fi(e){let t=si(e.pmRoot,"Transaction pmRoot"),n=ai(e.transactionId,"Transaction id"),o=si(e.author,"Transaction author"),i=ci(e.lockTtlSeconds,Us,"Transaction lock TTL"),r=ci(e.lockWaitMs,zs,"Transaction lock wait"),a=[...e.steps];if(a.length===0)throw new TypeError("Workspace transaction requires at least one step");let s=a.map(d=>{let p=ai(d.id,"Transaction step id");if(p!==d.id)throw new TypeError("Transaction step id must not contain surrounding whitespace");return p});if(new Set(s).size!==s.length)throw new TypeError("Workspace transaction step ids must be unique");let c={...e,pmRoot:t,transactionId:n,author:o,steps:a,lockTtlSeconds:i,lockWaitMs:r},l=await Q(t,Ms,i,o,!1,!1,r);try{let d=await Vs(t,n,s),p=d!==void 0;if(d?.status==="committed")return{transactionId:n,status:"committed",recovered:!0,results:Ne(d.results)};let u=await Hs(c,n,o,s,d);return await Ks(c,u.journal,p||u.recovered)}finally{await l()}}import Xs from"node:fs/promises";import Zs from"node:path";(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]="c4dc16d1-672a-5b1c-b681-97a7b3febd69")}catch{}})();function kn(e){return Zs.join(e,"extension-migrations.json")}function hi(e,t){let n=e.definition.id;return typeof n=="string"&&n.trim().length>0?n.trim():`migration-${String(t+1).padStart(3,"0")}`}function gi(e,t){return`${e.layer}:${e.name}:${t}`}async function Qs(e){let t=kn(e);if(!await S(t))return{version:1,updated_at:"",entries:[]};let n=JSON.parse(await Xs.readFile(t,"utf8"));return{version:1,updated_at:typeof n.updated_at=="string"?n.updated_at:"",entries:Array.isArray(n.entries)?n.entries.filter(o=>typeof o?.key=="string"&&(o.status==="applied"||o.status==="failed")):[]}}async function ec(e,t){let n=await Qs(e),o=new Map(n.entries.map(i=>[i.key,i]));return t.forEach((i,r)=>{let a=hi(i,r),s=o.get(gi(i,a));s&&(i.definition.status=s.status,s.status==="failed"?i.definition.reason=s.error:(delete i.definition.reason,delete i.definition.error,delete i.definition.message))}),n}async function tc(e){let t=await ec(e.pmRoot,e.migrations),n=new Map(t.entries.map(d=>[d.key,d])),o=[],i=!1,r=e.migrations.map((d,p)=>({migration:d,index:p})).filter(({migration:d})=>e.scope===void 0||d.layer===e.scope);for(let{migration:d,index:p}of r){let u=hi(d,p),g=gi(d,u),y=n.get(g),w=String(d.definition.status??"pending").toLowerCase(),m=y?.status??(w==="applied"||w==="failed"?w:"pending");if(m==="applied"){o.push({key:g,layer:d.layer,extension:d.name,id:u,before:m,outcome:"skipped"});continue}if(e.dryRun===!0){o.push({key:g,layer:d.layer,extension:d.name,id:u,before:m,outcome:"pending"});continue}let _=d.runtime_definition?.run??d.definition.run;if(typeof _!="function"){o.push({key:g,layer:d.layer,extension:d.name,id:u,before:m,outcome:"pending"});continue}let v=new Date().toISOString();try{await Promise.resolve(_({id:u,command:"migration",layer:d.layer,extension:d.name,pm_root:e.pmRoot,status:m}));let k={key:g,layer:d.layer,extension:d.name,id:u,status:"applied",attempted_at:v};n.set(g,k),d.definition.status="applied",delete d.definition.reason,delete d.definition.error,delete d.definition.message,o.push({key:g,layer:d.layer,extension:d.name,id:u,before:m,outcome:"applied"}),i=!0}catch(k){let x=k instanceof Error?k.message:String(k),C={key:g,layer:d.layer,extension:d.name,id:u,status:"failed",attempted_at:v,error:x};n.set(g,C),d.definition.status="failed",d.definition.reason=x,o.push({key:g,layer:d.layer,extension:d.name,id:u,before:m,outcome:"failed",error:x}),i=!0}}if(i){let d=await A(e.pmRoot),p={version:1,updated_at:new Date().toISOString(),entries:[...n.values()].sort((u,g)=>u.key.localeCompare(g.key))};await Ue({pmRoot:e.pmRoot,filePath:kn(e.pmRoot),raw:`${JSON.stringify(p,null,2)}
|
|
3
3
|
`,op:"extension_migrations_apply",author:e.author,lockTtlSeconds:d.locks.ttl_seconds,lockWaitMs:d.locks.wait_ms})}let a=o.filter(d=>d.outcome==="pending").length,s=o.filter(d=>d.outcome==="applied").length,c=o.filter(d=>d.outcome==="skipped").length,l=o.filter(d=>d.outcome==="failed").length;return{ok:l===0,dry_run:e.dryRun===!0,state_path:kn(e.pmRoot),total:o.length,pending_count:a,applied_count:s,skipped_count:c,failed_count:l,migrations:o}}async function yi(e){let t=await A(e.resolvedRoots.settings_root),n=await ve({pmRoot:e.resolvedRoots.pm_root,settings:t,cwd:process.cwd(),noExtensions:e.global.noExtensions===!0}),o=await be(n);e.warnings.push(...n.warnings,...o.warnings);let i=await tc({pmRoot:e.resolvedRoots.pm_root,migrations:o.registrations.migrations,author:typeof e.global.author=="string"&&e.global.author.trim().length>0?e.global.author.trim():"pm-extension-migration",dryRun:e.options.dryRun===!0,...e.scope==="global"?{scope:"global"}:{}});return e.withResult({migration:i,load_failure_count:n.failed.length,activation_failure_count:o.failed.length},i.ok)}import{readFile as nc,writeFile as oc}from"node:fs/promises";import rt from"node:path";(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]="5b131b40-e139-5a7d-a6ef-633fe2cbee64")}catch{}})();var wi="# pm-cli:runtime-cache:start",xn="# pm-cli:runtime-cache:end",vi=".agents/pm",ic=["runtime/","search/","locks/","transactions/","checkpoints/"],rc=["search/eval-queries.json"];async function _i(e){try{return await e()}catch(t){throw t instanceof Error&&"code"in t&&typeof t.code=="string"&&["EACCES","EPERM","EROFS"].includes(t.code)?new f("The workspace .gitignore is not writable.",h.GENERIC_FAILURE,{code:"init_gitignore_unwritable",reason:t.code.toLowerCase(),required:"Grant the current user read and write access to the workspace .gitignore before initialization.",why:"pm init must publish its managed runtime-cache ignore fence without replacing unrelated entries.",nextSteps:["Grant read and write access to the workspace .gitignore and rerun pm init.","If the workspace is intentionally read-only, initialize pm in a writable workspace or clone."]}):t}}function bi(e){return e.replaceAll("\\","/").replace(/^\.\/+/,"").replace(/\/+$/,"")}function Sn(e){let t=e.replaceAll("\\","/");return rt.isAbsolute(e)||t===".."||t.startsWith("../")}function ac(e=vi){let t=bi(e);return[wi,...ic.map(n=>n==="search/"?`${t}/${n}*`:`${t}/${n}`),...rc.map(n=>`!${t}/${n}`),xn].join(`
|
|
4
4
|
`)}async function ki(e,t={}){let n=rt.join(e,".gitignore"),o=vi;if(t.pmRoot!==void 0){let d=bi(rt.relative(rt.resolve(e),rt.resolve(t.pmRoot)));if(Sn(d))return{path:n,changed:!1};d.length>0&&(o=d)}let i="";try{i=await _i(()=>nc(n,"utf8"))}catch(d){if(!(d instanceof Error&&"code"in d&&ie(d)))throw d}let r=i.indexOf(wi),a=i.indexOf(xn),c=(r>=0&&a>=r?`${i.slice(0,r)}${i.slice(a+xn.length)}`:i).trimEnd(),l=`${c.length>0?`${c}
|
|
@@ -76,4 +76,4 @@ Agent guidance check
|
|
|
76
76
|
`),Z.write(`Telemetry helps improve reliability and can be disabled anytime via pm config.
|
|
77
77
|
`);let c=t?"Y/n":"y/N",l=await n.question(`Enable telemetry for this project? [${c}] `),d=xs(l,t);return Z.write(`
|
|
78
78
|
`),{prefix:i,preset:s,telemetry_enabled:d}}finally{n.close()}}function Im(e){return{presetFromOption:uo(e.preset),useDefaults:e.defaults===!0,authorFromOption:ws(e.author),installBundledPackages:e.withPackages===!0,agentGuidanceMode:ks(e.agentGuidance),typePreset:_s(e.typePreset)}}function Am(e){let t=[];return e.prefixArg!==void 0&&e.settings.id_prefix!==e.normalizedPrefix&&t.push("id_prefix"),e.presetFromOption!==void 0&&e.settings.governance.preset!==e.presetFromOption&&t.push("governance_preset"),e.authorFromOption!==void 0&&e.settings.author_default!==e.authorFromOption&&t.push("author_default"),t}function Tm(e,t,n,o){if(t.length===0||n)return;let i=o.discovery==="ancestor";throw new f(`${i?`No tracker exists in ${o.requested_cwd}; pm init found an ancestor tracker at ${o.tracker_root}. `:""}Refusing to update existing tracker settings at ${e} without --force.`,h.USAGE,{code:"init_existing_settings_requires_force",type:"urn:pm-cli:error:init_existing_settings_requires_force",required:`--force for ${t.join(", ")}`,why:i?"Ancestor discovery is useful for normal commands, but init must make the selected existing workspace explicit before changing its identity or policy settings.":"pm init is safe to rerun, but changing id prefix, governance preset, or default author on an existing tracker can corrupt long-lived project context when an agent meant to initialize a sandbox path.",resolved_path:o.tracker_root,requested_path:o.requested_cwd,suggested_path:o.suggested_current_tracker_root,examples:["pm init --yes","pm init ./sandbox-pm --yes",...i?['pm init <name> --yes --pm-path "$PWD/.agents/pm"']:[],"pm init acme --yes --force"],nextSteps:[...i?['To create a new tracker in the current directory, rerun with --pm-path "$PWD/.agents/pm".']:[],"If you meant to initialize a sandbox tracker, pass a path-like positional such as ./sandbox-pm or /tmp/pm-test.","If you intentionally want to rewrite this existing tracker's init-managed settings, rerun with --force."]})}function Om(e){let t=!1;return e.prefixArg!==void 0&&e.settings.id_prefix!==e.normalizedPrefix&&(e.settings.id_prefix=e.normalizedPrefix,e.warnings.push(`updated:id_prefix:${e.normalizedPrefix}`),t=!0),e.presetFromOption!==void 0&&e.settings.governance.preset!==e.presetFromOption&&(mo(e.settings,e.presetFromOption),e.warnings.push(`updated:governance_preset:${e.presetFromOption}`),t=!0),e.authorFromOption!==void 0&&e.settings.author_default!==e.authorFromOption&&(e.settings.author_default=e.authorFromOption,e.warnings.push(`updated:author_default:${e.authorFromOption}`),t=!0),t}async function Cm(e){let t=await A(e.pmRoot);e.warnings.push(`already_exists:${e.settingsPath}`);let n=Am({settings:t,normalizedPrefix:e.normalizedPrefix,prefixArg:e.prefixArg,presetFromOption:e.normalizedOptions.presetFromOption,authorFromOption:e.normalizedOptions.authorFromOption});return Tm(e.settingsPath,n,e.options.force===!0,e.target),Om({settings:t,normalizedPrefix:e.normalizedPrefix,prefixArg:e.prefixArg,presetFromOption:e.normalizedOptions.presetFromOption,authorFromOption:e.normalizedOptions.authorFromOption,warnings:e.warnings})&&await xe(e.pmRoot,t),{settings:t,normalizedPrefix:e.normalizedPrefix,chosenPreset:e.normalizedOptions.presetFromOption,wizardUsed:!1}}async function Rm(e){let t=e.normalizedPrefix,n=e.normalizedOptions.presetFromOption,o,i=!1;if(e.normalizedOptions.presetFromOption===void 0&&!e.normalizedOptions.useDefaults&&process.stdin.isTTY===!0&&process.stdout.isTTY===!0){let c=await Ts(t,dn.telemetry.enabled);t=c.prefix,n=c.preset,o=c.telemetry_enabled,i=!0}let r=n??"minimal",a=Sm();a.id_prefix=t,mo(a,r);let s=Wo()?.trim()||void 0;return a.author_default=e.normalizedOptions.authorFromOption??s??"",o!==void 0&&(a.telemetry.enabled=o,a.telemetry.first_run_prompt_completed=!0),await xe(e.pmRoot,a),{settings:a,normalizedPrefix:t,chosenPreset:n,wizardUsed:i}}async function fs(e){return e.settingsExists?await Cm(e):await Rm({pmRoot:e.pmRoot,normalizedPrefix:e.normalizedPrefix,normalizedOptions:e.normalizedOptions})}async function Pm(e){let t=await ms({pm_root:e.pmRoot,cwd:e.cwd,mode:e.agentGuidanceMode,interactive:process.stdin.isTTY===!0&&process.stdout.isTTY===!0,settings:e.settings});return e.warnings.push(...t.warnings),t.settings_changed&&await xe(e.pmRoot,e.settings),{...t.summary,next_steps:t.next_steps}}async function Nm(e,t){let n=[],o=[],i=await qo(e,t.schema);for(let r of i.created_paths)n.push(r),o.push(...await K({path:r,scope:"project",op:"init:runtime_schema_file"}));return{createdDirs:n,warnings:o}}async function Dm(e){if(e.typePreset===void 0)return;let t=await Es(e.pmRoot,e.settings,e.typePreset);return e.warnings.push(`registered_type_preset:${e.typePreset}`),e.warnings.push(...await K({path:t.file,scope:"project",op:"init:type_preset"})),t}async function jm(e){let n=U(e.settings,B()).folders.filter(i=>!ln.includes(i)),o=await As(e.pmRoot,n);e.createdDirs.push(...o.createdDirs),e.warnings.push(...o.warnings)}function Lm(e){let t=L.resolve(e.tracker_root),n=L.dirname(t);return L.basename(t)==="pm"&&L.basename(n)===".agents"?L.dirname(n):e.workspace_root}async function Fm(e,t,n,o){if(!e)return;let i=await io("all",{install:!0,project:!0},{...t,path:n});o.push(...i.warnings);let r=Ss(i),a=r.packages.filter(s=>!s.ok).map(s=>s.alias);if(!r.installed_all||a.length>0)throw new f(`pm init --with-packages did not install all bundled packages successfully${a.length>0?`: ${a.join(", ")}`:"."}`,h.GENERIC_FAILURE);return r}function Os(e){let t=o=>nt([...e.target.mode==="workspace-discovery"?[]:["--pm-path",e.target.tracker_root],...o]),n=[`Create your first item: ${t(["create","--type","Task","--title","<title>"])}`,`List active items: ${t(["list"])}`,`Get agent-friendly project context: ${t(["context"])}`];e.installBundledPackages?n.push(`Explore newly-available commands: ${t(["cal"])}, ${t(["templates"])}, ${t(["guide"])}`):(n.push(`Add optional packages for richer workflows: ${t(["install","calendar","--project"])}, ${t(["install","templates","--project"])}, ${t(["install","guide-shell","--project"])}`),n.push(`Or install everything bundled: ${t(["init","--with-packages"])} (idempotent on re-run)`)),e.registeredTypePreset&&n.push(`Inspect registered preset types: ${t(["schema","list"])}, ${t(["schema","show",e.registeredTypePreset.registered[0]??e.registeredTypePreset.updated[0]])}`),n.push("Supported agent harnesses are attributed automatically; use --author or PM_AUTHOR only when an explicit identity override is required.");for(let o of e.agentGuidanceNextSteps){let i=e.target.mode==="workspace-discovery"?o:o.replace(/\bpm (?=[a-z])/g,()=>`${t([])} `);n.includes(i)||n.push(i)}return n}async function Cs(e,t,n,o=On){if(t===null){n.push("merge_fence_skipped:not_git_repository:run pm merge install after moving the tracker into a Git repository");return}try{let i=await o({pmRoot:e,workspaceRoot:t});i.gitattributes.changed&&n.push(`updated:merge_fence:${i.gitattributes.path}`)}catch(i){if(!(i instanceof f))throw i;n.push(`merge_fence_skipped:install_failed:${i.context.code??"pm_error"}:${i.message}:run pm merge install after resolving the Git repository error`)}}async function Mm(e,t,n,o){if(e==null||n==="status")return;let i=await ki(e,{pmRoot:t});i.changed&&o.push(`updated:gitignore:${i.path}`)}async function xv(e,t,n={}){let o=t[km],i=typeof o=="string"?o:process.cwd(),r=vs(i,t,e,n.workspace),a=r.pmRoot;e=bs(r.prefixArg,n.idPrefix);let s=Im(n);await Is(a,r.target.mode==="tracker-path",n.force===!0);let c=[],l=[],d=L.join(a,"settings.json"),p=await S(d),u;p&&(u=await fs({pmRoot:a,settingsPath:d,settingsExists:p,normalizedPrefix:Se(e),prefixArg:e,options:n,normalizedOptions:s,warnings:l,target:r.target}));let g=await As(a,ln);c.push(...g.createdDirs),l.push(...g.warnings),u??=await fs({pmRoot:a,settingsPath:d,settingsExists:p,normalizedPrefix:Se(e),prefixArg:e,options:n,normalizedOptions:s,warnings:l,target:r.target});let{settings:y}=u,w=Lm(r.target),m=await In(w??L.dirname(a)),_=w??m,v=await Pm({pmRoot:a,cwd:_??i,agentGuidanceMode:s.agentGuidanceMode,settings:y,warnings:l}),k=await Nm(a,y);c.push(...k.createdDirs),l.push(...k.warnings);let x=await Dm({pmRoot:a,settings:y,typePreset:s.typePreset,warnings:l});x&&(y=await A(a)),await jm({pmRoot:a,settings:y,createdDirs:c,warnings:l}),await Mm(_,a,s.agentGuidanceMode,l),!p&&n.mergeFence!==!1&&s.agentGuidanceMode!=="status"&&await Cs(a,m,l);let C=await Fm(s.installBundledPackages,t,a,l),G=Os({installBundledPackages:s.installBundledPackages,registeredTypePreset:x,agentGuidanceNextSteps:v.next_steps,target:r.target});return{ok:!0,path:a,target:r.target,settings:y,created_dirs:c,warnings:l,governance_preset:y.governance.preset,wizard_used:u.wizardUsed,...x?{registered_type_preset:x}:{},...C?{installed_packages:C}:{},next_steps:G,agent_guidance:v}}export{wn as a,fi as b,kn as c,Qs as d,ec as e,tc as f,yi as g,ap as h,wi as i,xn as j,ic as k,ac as l,ki as m,Je as n,cc as o,lc as p,Si as q,Pt as r,Ai as s,qe as t,En as u,gc as v,In as w,Tn as x,Pi as y,Tf as z,Of as A,Ni as B,Cf as C,On as D,Ki as E,He as F,Ke as G,Vi as H,Wi as I,We as J,Be as K,Bi as L,_c as M,Nf as N,Ff as O,ji as P,bc as Q,th as R,tr as S,rr as T,al as U,sl as V,e_ as W,o_ as X,i_ as Y,_t as Z,r_ as _,a_ as $,s_ as aa,c_ as ba,l_ as ca,d_ as da,p_ as ea,u_ as fa,m_ as ga,f_ as ha,h_ as ia,g_ as ja,y_ as ka,__ as la,w_ as ma,v_ as na,b_ as oa,k_ as pa,x_ as qa,S_ as ra,E_ as sa,$_ as ta,I_ as ua,A_ as va,T_ as wa,b as xa,ye as ya,Lt as za,cl as Aa,ct as Ba,Ft as Ca,vr as Da,Tr as Ea,Vn as Fa,Jr as Ga,Vg as Ha,Ap as Ia,xa as Ja,Sa as Ka,$a as La,ta as Ma,ip as Na,Fp as Oa,oa as Pa,io as Qa,es as Ra,Xw as Sa,ms as Ta,km as Ua,bv as Va,kv as Wa,xv as Xa};
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-6WBR6GMW.js.map
|