@unbrained/pm-cli 2026.9.25 → 2026.9.26
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/.agents/skills/README.md +1 -0
- package/.agents/skills/pm-developer/SKILL.md +3 -0
- package/.agents/skills/pm-test-audit/LICENSE.txt +21 -0
- package/.agents/skills/pm-test-audit/SKILL.md +103 -0
- package/.agents/skills/pm-test-audit/references/AUDIT.md +54 -0
- package/.agents/skills/pm-test-audit/references/CAMPAIGN.md +47 -0
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +12 -1
- package/dist/cli/register-list-query.js +2 -2
- package/dist/cli/schema/registration.js +2 -2
- package/dist/cli-bundle/bundle-manifest.json +111 -111
- package/dist/cli-bundle/chunks/{chunk-YDIGMRLZ.js → chunk-4ODHIX7N.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5AP67ZXH.js → chunk-FOTXRNY6.js} +39 -39
- package/dist/cli-bundle/chunks/{chunk-GAU55CWI.js → chunk-GRWPZR7F.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-3IB4THWX.js → chunk-HTHTX6E6.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-JDHWZYZU.js → chunk-IYN4MJ2C.js} +73 -73
- package/dist/cli-bundle/chunks/{chunk-YABJDOOX.js → chunk-MJWKR7YA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GOWZEBTH.js → chunk-QQD3VRMZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-COFQCKF4.js → chunk-SZQCHJI4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P7ZSJOWH.js → chunk-TC74K7SS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-445ARBKY.js → chunk-TYJXMT3Q.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-25KTCTBL.js → chunk-U55RYT3I.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CZ3VJJEA.js → chunk-VMO4P5MX.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-IZ7ZVTDE.js → register-list-query-426QTRET.js} +4 -4
- package/dist/cli-bundle/chunks/{register-mutation-IPAZTFDZ.js → register-mutation-FLI3HHMP.js} +4 -4
- package/dist/cli-bundle/chunks/{register-operations-APN33LNI.js → register-operations-TP7ZG4MK.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-HPHIKG5U.js → register-setup-574SIVQZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-25BBHWMH.js +20 -0
- package/dist/cli-bundle/focused-chunks/{chunk-KRIHJH5U.js → chunk-H3BI4EDO.js} +4 -4
- package/dist/cli-bundle/focused-chunks/chunk-HNHMK5JI.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-IXNNMP2R.js → chunk-XVBWZTU2.js} +11 -11
- package/dist/cli-bundle/main.js +2 -2
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +20 -20
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +45 -45
- 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 +8 -8
- package/dist/core/search/embedding-batches.d.ts +47 -15
- package/dist/core/search/embedding-batches.js +1 -1
- package/dist/core/search/eval-thresholds.d.ts +14 -0
- package/dist/core/search/eval-thresholds.js +2 -0
- package/dist/core/search/eval.d.ts +4 -1
- package/dist/core/search/eval.js +1 -1
- package/dist/core/search/http-client.d.ts +7 -0
- package/dist/core/search/http-client.js +1 -1
- package/dist/sdk/eval.d.ts +19 -17
- package/dist/sdk/eval.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/governance/reindex.d.ts +4 -1
- package/dist/sdk/governance/reindex.js +2 -2
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query.d.ts +3 -0
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/runtime/schema-preview.d.ts +2 -0
- package/dist/sdk/runtime/schema-preview.js +2 -0
- package/dist/sdk/runtime/schema.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +2 -1
- package/dist/sdk/runtime-primitives.js +1 -1
- package/docs/README.md +1 -0
- package/docs/RELEASING.md +5 -1
- package/docs/SEARCH_QUALITY.md +116 -0
- 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-claude/package.json +2 -2
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-V2X37U6J.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-Y2M4QLAA.js +0 -20
|
@@ -1,151 +1,159 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"generation": "
|
|
3
|
+
"generation": "c83422a5e498519ab161cfdd5dc6570118613ba23f6a73e7b2a32c1e42b4509c",
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
6
|
-
"path": "chunks/chunk-
|
|
7
|
-
"sha256": "
|
|
6
|
+
"path": "chunks/chunk-4ODHIX7N.js",
|
|
7
|
+
"sha256": "46a1b8d226abf823c8e0d8c0e5bd821536fe0b03f40ad33ad012d8ea1fd7e55d"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
"path": "chunks/chunk-
|
|
11
|
-
"sha256": "
|
|
10
|
+
"path": "chunks/chunk-4ODHIX7N.js.map",
|
|
11
|
+
"sha256": "59e66f071a3e88c626ecb55533ec60d35064b2d33180ee8704d4417e5c3da036"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
"path": "chunks/chunk-
|
|
15
|
-
"sha256": "
|
|
14
|
+
"path": "chunks/chunk-DEZPZOQ7.js",
|
|
15
|
+
"sha256": "ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"path": "chunks/chunk-
|
|
19
|
-
"sha256": "
|
|
18
|
+
"path": "chunks/chunk-DEZPZOQ7.js.map",
|
|
19
|
+
"sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"path": "chunks/chunk-
|
|
23
|
-
"sha256": "
|
|
22
|
+
"path": "chunks/chunk-FOTXRNY6.js",
|
|
23
|
+
"sha256": "bb6f7203c6f5fa6db86f3ebc625693d669cc2843e2822c33d833ef8b82ef1470"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"path": "chunks/chunk-
|
|
27
|
-
"sha256": "
|
|
26
|
+
"path": "chunks/chunk-FOTXRNY6.js.map",
|
|
27
|
+
"sha256": "0ab60c586d956feb98aaf7c1f3ff1005016cdabb102deb59f3510374f62d3bef"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"path": "chunks/chunk-
|
|
31
|
-
"sha256": "
|
|
30
|
+
"path": "chunks/chunk-GRWPZR7F.js",
|
|
31
|
+
"sha256": "54590007dc1960db3eaa15472badc7137766e1c075726489c9b7ec4aee9f46b6"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"path": "chunks/chunk-
|
|
35
|
-
"sha256": "
|
|
34
|
+
"path": "chunks/chunk-GRWPZR7F.js.map",
|
|
35
|
+
"sha256": "05e5fdfefb2c4f4aced354093eedbf5115982a28ba14af67769df21f2cfb2af9"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"path": "chunks/chunk-
|
|
39
|
-
"sha256": "
|
|
38
|
+
"path": "chunks/chunk-HTHTX6E6.js",
|
|
39
|
+
"sha256": "57e9e1beb272e1ae9ed5cfc620ea2402833b05064e9ac62b3f1c2c7f09653a7c"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"path": "chunks/chunk-
|
|
43
|
-
"sha256": "
|
|
42
|
+
"path": "chunks/chunk-HTHTX6E6.js.map",
|
|
43
|
+
"sha256": "74ff8ce6c25658b48b3f0b97907a15d007f6ad3652586e0f27647f5e85a1d51a"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"path": "chunks/chunk-
|
|
47
|
-
"sha256": "
|
|
46
|
+
"path": "chunks/chunk-IYN4MJ2C.js",
|
|
47
|
+
"sha256": "2a0217dc9f1b0da38a5a7b3e16c115167fcbcf4c0d447474fcd47f6717fc2f37"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
"path": "chunks/chunk-
|
|
51
|
-
"sha256": "
|
|
50
|
+
"path": "chunks/chunk-IYN4MJ2C.js.map",
|
|
51
|
+
"sha256": "ad9c983fe79036965c0a7d372cecd5b5f0f2586aa6a3a31623ce291c3baea624"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"path": "chunks/chunk-
|
|
55
|
-
"sha256": "
|
|
54
|
+
"path": "chunks/chunk-MJWKR7YA.js",
|
|
55
|
+
"sha256": "17b8750f19b6fbd43e3f536120d4915fe8d953783cef3bb311c8e239422e2c5c"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"path": "chunks/chunk-
|
|
59
|
-
"sha256": "
|
|
58
|
+
"path": "chunks/chunk-MJWKR7YA.js.map",
|
|
59
|
+
"sha256": "e3fdd259c62f01657fcedc1b80fdb4758fb4c6008db91ddaf6a20a2f6404c870"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
"path": "chunks/chunk-
|
|
63
|
-
"sha256": "
|
|
62
|
+
"path": "chunks/chunk-QQD3VRMZ.js",
|
|
63
|
+
"sha256": "b7b3ccf48f64b178ae2ee15a9322e885fa6766c1b02f2683dcf65f8d8ae334f3"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
"path": "chunks/chunk-
|
|
67
|
-
"sha256": "
|
|
66
|
+
"path": "chunks/chunk-QQD3VRMZ.js.map",
|
|
67
|
+
"sha256": "15e812737eff8caa722e0c3c9dca2af60cbc1975626ace416651a73bab61617c"
|
|
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-SZQCHJI4.js",
|
|
79
|
+
"sha256": "0b0c73aaed7cedbd1545eeed6bdffca2d2035b33b8f6aece7865401167434930"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
"path": "chunks/chunk-
|
|
83
|
-
"sha256": "
|
|
82
|
+
"path": "chunks/chunk-SZQCHJI4.js.map",
|
|
83
|
+
"sha256": "f288f09ae199e6c71f6ea68d858ada84cb3497e0fe6c4ab7ff495baad5ff7ac5"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
"path": "chunks/chunk-
|
|
87
|
-
"sha256": "
|
|
86
|
+
"path": "chunks/chunk-TC74K7SS.js",
|
|
87
|
+
"sha256": "871a0770b1154675e4d00e76041a55ac950e257cbbe736473afec2df216a1720"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
"path": "chunks/chunk-
|
|
90
|
+
"path": "chunks/chunk-TC74K7SS.js.map",
|
|
91
91
|
"sha256": "d7178e0b054769ead69e36e4681f4fdcd9df8321a74d7ccf5eb879e82a26de78"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
"path": "chunks/chunk-
|
|
95
|
-
"sha256": "
|
|
94
|
+
"path": "chunks/chunk-TYJXMT3Q.js",
|
|
95
|
+
"sha256": "2614d51aff012229c3320f344a98c404f0603aafd9e2ff081cde43c49c9a32e0"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
"path": "chunks/chunk-
|
|
99
|
-
"sha256": "
|
|
98
|
+
"path": "chunks/chunk-TYJXMT3Q.js.map",
|
|
99
|
+
"sha256": "4ac5badee3213f03a8f2adcbb9e73c18ef60f7d2a26fc158587e847dcaeaf868"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"path": "chunks/chunk-
|
|
103
|
-
"sha256": "
|
|
102
|
+
"path": "chunks/chunk-U55RYT3I.js",
|
|
103
|
+
"sha256": "4164a1b001bb76cd5cc2eb1612a3f7bc4b56afec6284790c0cd52133aaf68250"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
"path": "chunks/chunk-
|
|
107
|
-
"sha256": "
|
|
106
|
+
"path": "chunks/chunk-U55RYT3I.js.map",
|
|
107
|
+
"sha256": "47b2a00ab0a92be37aace914a7677a473ec8b0b21c43e29972fdc83ec55f6795"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"path": "chunks/chunk-
|
|
111
|
-
"sha256": "
|
|
110
|
+
"path": "chunks/chunk-VMO4P5MX.js",
|
|
111
|
+
"sha256": "e4fbdc9a8bc8908e95b3c0aef817700f9243385aa9909f3c111d35676367b3d9"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
"path": "chunks/chunk-
|
|
115
|
-
"sha256": "
|
|
114
|
+
"path": "chunks/chunk-VMO4P5MX.js.map",
|
|
115
|
+
"sha256": "80a615273c13c3004a0977f41ade5169cca1e37b64c3942f2c9c9c33a5fc5965"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
"path": "chunks/register-list-query-
|
|
119
|
-
"sha256": "
|
|
118
|
+
"path": "chunks/register-list-query-426QTRET.js",
|
|
119
|
+
"sha256": "4f1140e9f67fe1cc67785aa42495732cd97aa5c31d12481036a520359749c485"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"path": "chunks/register-list-query-
|
|
123
|
-
"sha256": "
|
|
122
|
+
"path": "chunks/register-list-query-426QTRET.js.map",
|
|
123
|
+
"sha256": "9393128424c4f97418ce066d524101a3d0936582378448e48c95b3158e249173"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
"path": "chunks/register-mutation-
|
|
127
|
-
"sha256": "
|
|
126
|
+
"path": "chunks/register-mutation-FLI3HHMP.js",
|
|
127
|
+
"sha256": "7cbe206687e8f6af0768f6aabd3c49bd42270f485fe362960618d5221f190928"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
"path": "chunks/register-mutation-
|
|
131
|
-
"sha256": "
|
|
130
|
+
"path": "chunks/register-mutation-FLI3HHMP.js.map",
|
|
131
|
+
"sha256": "e089675bf7438daa2940e00c2a9f681d57f8834f3ab4297f2c54fcb56157529c"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
"path": "chunks/register-operations-
|
|
135
|
-
"sha256": "
|
|
134
|
+
"path": "chunks/register-operations-TP7ZG4MK.js",
|
|
135
|
+
"sha256": "424fa93d92ba88527541750d1980f57cc3c6e5502a66d699a792658101d46f1f"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
"path": "chunks/register-operations-
|
|
138
|
+
"path": "chunks/register-operations-TP7ZG4MK.js.map",
|
|
139
139
|
"sha256": "5103709b93a64d0643c8c46b171fadd16637db81aade19c95c9718b26d54b442"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
"path": "chunks/register-setup-
|
|
143
|
-
"sha256": "
|
|
142
|
+
"path": "chunks/register-setup-574SIVQZ.js",
|
|
143
|
+
"sha256": "8756797fb7abd3bd4f86b21817ab73b5081071885512ca177a35dc349332f5ca"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
"path": "chunks/register-setup-
|
|
146
|
+
"path": "chunks/register-setup-574SIVQZ.js.map",
|
|
147
147
|
"sha256": "9c5f094df74abe4a9ca58ae1643bf1854548fcf5c0e601cd804a4d47188776dd"
|
|
148
148
|
},
|
|
149
|
+
{
|
|
150
|
+
"path": "focused-chunks/chunk-25BBHWMH.js",
|
|
151
|
+
"sha256": "75c7b8ddca9df97a259efa309fe287430eceb0851dc69e514e2682bf7ed5e281"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"path": "focused-chunks/chunk-25BBHWMH.js.map",
|
|
155
|
+
"sha256": "30101c237fbb9478f0d62c5321bfb844ca4067b6c3bf5d198e5b5a18ddaa89d5"
|
|
156
|
+
},
|
|
149
157
|
{
|
|
150
158
|
"path": "focused-chunks/chunk-ABA3KRPY.js",
|
|
151
159
|
"sha256": "be37030ee4f6bb6aba419a8cb49894e1560f9618a63a5bc4efdd922a424c5bab"
|
|
@@ -155,36 +163,36 @@
|
|
|
155
163
|
"sha256": "d630bf56bd642198df70d31c5dda6fd3df81e66338e35d83c3b25084ab6f82de"
|
|
156
164
|
},
|
|
157
165
|
{
|
|
158
|
-
"path": "focused-chunks/chunk-
|
|
159
|
-
"sha256": "
|
|
166
|
+
"path": "focused-chunks/chunk-H3BI4EDO.js",
|
|
167
|
+
"sha256": "dd503f898cc1e0738a02442e94bb1a7241db18af8fcbb1c3cf78b4782dc6647d"
|
|
160
168
|
},
|
|
161
169
|
{
|
|
162
|
-
"path": "focused-chunks/chunk-
|
|
163
|
-
"sha256": "
|
|
170
|
+
"path": "focused-chunks/chunk-H3BI4EDO.js.map",
|
|
171
|
+
"sha256": "7c0eca4ced45891c217771007617deb615c7cdf9db7948ff49120342b1c6d0f2"
|
|
164
172
|
},
|
|
165
173
|
{
|
|
166
|
-
"path": "focused-chunks/chunk-
|
|
167
|
-
"sha256": "
|
|
174
|
+
"path": "focused-chunks/chunk-HFAW3FJQ.js",
|
|
175
|
+
"sha256": "fa55b173f8d973fb7d1f620fe913870b8eafc9489f3091a7c24a16794c4e46c5"
|
|
168
176
|
},
|
|
169
177
|
{
|
|
170
|
-
"path": "focused-chunks/chunk-
|
|
171
|
-
"sha256": "
|
|
178
|
+
"path": "focused-chunks/chunk-HFAW3FJQ.js.map",
|
|
179
|
+
"sha256": "2536922ae21f29b6d28033a35d9aba3d921ee26867d733ba0a76857c97366cd9"
|
|
172
180
|
},
|
|
173
181
|
{
|
|
174
|
-
"path": "focused-chunks/chunk-
|
|
175
|
-
"sha256": "
|
|
182
|
+
"path": "focused-chunks/chunk-HNHMK5JI.js",
|
|
183
|
+
"sha256": "d7006a01ccb1da360b01b0b26571d3e68f1b96638861b29d1b394d4318535358"
|
|
176
184
|
},
|
|
177
185
|
{
|
|
178
|
-
"path": "focused-chunks/chunk-
|
|
179
|
-
"sha256": "
|
|
186
|
+
"path": "focused-chunks/chunk-HNHMK5JI.js.map",
|
|
187
|
+
"sha256": "0c02a88dad8b4aee71bc2b8319d389d6322fd3ee4a4b419f5c72289a541923fb"
|
|
180
188
|
},
|
|
181
189
|
{
|
|
182
|
-
"path": "focused-chunks/chunk-
|
|
183
|
-
"sha256": "
|
|
190
|
+
"path": "focused-chunks/chunk-HQPTDJLF.js",
|
|
191
|
+
"sha256": "2fae410f0c22b538fc0a64db9d4523a24a61402061017e3208cfed4d444db76d"
|
|
184
192
|
},
|
|
185
193
|
{
|
|
186
|
-
"path": "focused-chunks/chunk-
|
|
187
|
-
"sha256": "
|
|
194
|
+
"path": "focused-chunks/chunk-HQPTDJLF.js.map",
|
|
195
|
+
"sha256": "9a9556544e1423030c2c162c4633ad7d9121eb6e1f075c1317d13e14bc33d463"
|
|
188
196
|
},
|
|
189
197
|
{
|
|
190
198
|
"path": "focused-chunks/chunk-MK5AKKHK.js",
|
|
@@ -258,14 +266,6 @@
|
|
|
258
266
|
"path": "focused-chunks/chunk-UIFVIE5F.js.map",
|
|
259
267
|
"sha256": "bb288fb1ddb4f79bb931b6f84e4a17997b6478effc660f5a935b962bf2dcebc6"
|
|
260
268
|
},
|
|
261
|
-
{
|
|
262
|
-
"path": "focused-chunks/chunk-V2X37U6J.js",
|
|
263
|
-
"sha256": "b4823a345252d0c868e4fe9e7f060e7f89074909b8c6d34252c705f80847a456"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"path": "focused-chunks/chunk-V2X37U6J.js.map",
|
|
267
|
-
"sha256": "528d942018fc704af440ef0e3ab01734952dbd715d6a55c8ae13d7efec548055"
|
|
268
|
-
},
|
|
269
269
|
{
|
|
270
270
|
"path": "focused-chunks/chunk-XKH2FC5D.js",
|
|
271
271
|
"sha256": "1765998c5cbba98306229b8500b455bba7e5572daf352f07f3d3f8c46ebb064a"
|
|
@@ -275,16 +275,16 @@
|
|
|
275
275
|
"sha256": "1f8226414288b36631c2e11132ced8869e79ae68a5932a18cab9b744b4e2478b"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"path": "focused-chunks/chunk-
|
|
279
|
-
"sha256": "
|
|
278
|
+
"path": "focused-chunks/chunk-XVBWZTU2.js",
|
|
279
|
+
"sha256": "d7d10d75cb1511a1aabae40c425ba8591ae444b819a623a1cf34f996b682b695"
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
|
-
"path": "focused-chunks/chunk-
|
|
283
|
-
"sha256": "
|
|
282
|
+
"path": "focused-chunks/chunk-XVBWZTU2.js.map",
|
|
283
|
+
"sha256": "d00f6df310b4b9a0d99258f128576632d0bae2ab0790066c06c6f45fd5dff424"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"path": "main.js",
|
|
287
|
-
"sha256": "
|
|
287
|
+
"sha256": "45a68d0e63cba459fb7cae6007321880a251c0dc8288b7d16354cf2c70c3f129"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
"path": "main.js.map",
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"path": "sdk-contracts.js",
|
|
303
|
-
"sha256": "
|
|
303
|
+
"sha256": "f4df460accdec8b1de66df113b1049a352a3d8fc632f30ee289f975cce32c48c"
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"path": "sdk-contracts.js.map",
|
|
@@ -308,15 +308,15 @@
|
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"path": "sdk-core.js",
|
|
311
|
-
"sha256": "
|
|
311
|
+
"sha256": "c921dbf844e9a02d13dba4c03c6d4dcf4013b812b52cc6cad73abcbc780e80e6"
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"path": "sdk-core.js.map",
|
|
315
|
-
"sha256": "
|
|
315
|
+
"sha256": "c1acca8b543b3597f37b534604b22f36e70b3650125c9d7085d1456973d12a85"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"path": "sdk-governance.js",
|
|
319
|
-
"sha256": "
|
|
319
|
+
"sha256": "34b3571d3508d0c4cbe416bbb470d2e2a6d99de6c82b0da2a2a160ee9afa4bb3"
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
"path": "sdk-governance.js.map",
|
|
@@ -332,23 +332,23 @@
|
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"path": "sdk-merge.js",
|
|
335
|
-
"sha256": "
|
|
335
|
+
"sha256": "fa08e3bda8da67cd8ff057e86585597303478081a05470364cbd9e08e6a8259e"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "sdk-merge.js.map",
|
|
339
|
-
"sha256": "
|
|
339
|
+
"sha256": "d30e55f3017576a0e864d3579bd466b52232091b47b337a57783b158bab551a1"
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"path": "sdk-query.js",
|
|
343
|
-
"sha256": "
|
|
343
|
+
"sha256": "cd9620cac9d2f57ec57e59dcd172406317c1afd157e8c60de30e4c5137ed0873"
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"path": "sdk-query.js.map",
|
|
347
|
-
"sha256": "
|
|
347
|
+
"sha256": "2476c14b25f829f4a6064963aabefa2ee77cf23b711765472c15785a74cb61ca"
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
"path": "sdk-runtime.js",
|
|
351
|
-
"sha256": "
|
|
351
|
+
"sha256": "52cd83854e87d10a71803b86d81824d3c41e4b7d0fc0339a4847fb7413b0d7b5"
|
|
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": "88cb330718c3cb698a63d800c060e4577b9b9704967d3467d1b890b5597669f1"
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"path": "sdk-testing.js.map",
|
|
@@ -364,11 +364,11 @@
|
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
"path": "sdk.js",
|
|
367
|
-
"sha256": "
|
|
367
|
+
"sha256": "006e09fd66719bd832c8595a8aa1ffa4b8ea949436f67eb3762d0c542a900dc9"
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
"path": "sdk.js.map",
|
|
371
|
-
"sha256": "
|
|
371
|
+
"sha256": "5767f2d21aa29133213c1eb00b7b3ced68545183c62a473a6f68c4379055651a"
|
|
372
372
|
}
|
|
373
373
|
]
|
|
374
374
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$a as B,Ub as x,Vb as F,Xb as b,_b as J,ac as W,bc as V}from"./chunk-5AP67ZXH.js";import{b as D}from"./chunk-YABJDOOX.js";import{Rb as $,aa as O,dn as P,fh as N,jn as L,la as c,mi as C,na as d,oi as U,qj as G,sj as j,tb as k,to as z,wo as K}from"./chunk-JDHWZYZU.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]="4175f7f5-a689-5d05-982a-f92e21bc83e7")}catch{}})();import ce from"node:crypto";(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]="d6ceb51a-6085-5d65-aebe-31d09ea4d1d6")}catch{}})();var R=["op","id","reason","options"],Y=[...R,"ref"],q=["schema_version","mutations"],oe="[a-z][a-z0-9._-]{0,63}",H=new RegExp(`^${oe}$`,"u"),re=new RegExp(`(^|,)id=@(${oe})(?=,|$)`,"gu"),X=e=>e.slice(2).replaceAll(/-([a-z])/gu,(t,o)=>o.toUpperCase()),E=["item","linked","schedule","claim_state","children","omission_receipt","row_contract","context_intent"],ne=new Set(["created_at","updated_at","closed_at","version","format_version","path","author","collection_counts","notes_count","tests_count"]),de=new Set([...ne,"completed_at","id"]),_=new Set(["id","title","description","type","status","priority","tags","body","deadline","estimated_minutes","acceptance_criteria","definition_of_ready","order","rank","assignee",...O,"affected_version","fixed_version","component","regression","customer_impact","close_reason","completed_at","dependencies","comments","notes","learnings","files","tests","docs","reminders","events","type_options"]),Z={create:z.map(e=>e.target),update:K.map(e=>e.target),close:P.map(e=>X(e.flag)).filter(e=>e!=="reason"),release:L.map(e=>X(e.flag))};function St(e){let t={},o=e.createCompensation;if(o!==void 0){if(o!=="close"&&o!=="delete")throw new d("createCompensation must be close or delete.",c.USAGE);t.createCompensation=o}for(let r of["lockTtlSeconds","lockWaitMs"]){let n=e[r];if(n===void 0)continue;let i=typeof n=="number"||typeof n=="string"&&n.trim().length>0?Number(n):Number.NaN;if(!Number.isSafeInteger(i)||i<=0)throw new d(`${r} must be a positive safe integer.`,c.USAGE);t[r]=i}return t}function p(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function g(e,t){let o=Math.max(1,Math.min(3,Math.floor(e.length/4)+1)),r;for(let n of t){let i=k(e,n,o);i!==null&&(r===void 0||i<r.distance)&&(r={key:n,distance:i})}return r?.key}function y(e,t,o){let r=g(t,o);return new d(r===void 0?`${e} does not recognize key "${t}". Allowed keys: ${o.join(", ")}.`:`${e} does not recognize key "${t}". Did you mean "${r}"?`,c.USAGE,{code:"stdin_json_unknown_key",required:`Use documented ${e} keys only.`,why:"Strict structured input prevents silent typos from creating incomplete or unintended mutations.",nextSteps:[r===void 0?`Remove or correct "${t}".`:`Replace "${t}" with "${r}".`]})}function I(e,t){try{return JSON.parse(e)}catch(o){let r=o instanceof Error?o.message:String(o);throw new d(`${t} must be valid JSON: ${r}`,c.USAGE,{code:"stdin_json_invalid",required:`Pipe one valid JSON ${t.toLowerCase()} into stdin.`,why:"Structured mutation input must parse deterministically before any tracker write begins."})}}function ue(e,t){if(!p(e))throw new d(`Mutation ${t+1} must be an object.`,c.USAGE);for(let o of Object.keys(e))if(!R.includes(o))throw y(`mutation ${t+1}`,o,R);return e}function pe(e,t,o){if(e!==void 0){if(!p(e))throw new d(`Mutation ${o+1} options must be an object.`,c.USAGE);for(let r of Object.keys(e))if(!Z[t].includes(r))throw y(`mutation ${o+1} ${t} options`,r,Z[t]);return e}}function le(e,t){let o=ue(e,t),{op:r,id:n,reason:i}=o;if(r!=="create"&&r!=="update"&&r!=="close"&&r!=="release")throw new d(`Mutation ${t+1} op must be create, update, close, or release.`,c.USAGE);let s=pe(o.options,r,t);if(typeof n!="string"||n.trim().length===0)throw new d(`Mutation ${t+1} requires a non-empty id.`,c.USAGE);let a=n.trim();if(r==="close"){if(typeof i!="string"||i.trim().length===0)throw new d(`Mutation ${t+1} close requires a non-empty reason.`,c.USAGE);return{op:r,id:a,reason:i.trim(),...s===void 0?{}:{options:s}}}if(r==="release")return{op:r,id:a,...s===void 0?{}:{options:s}};if(!p(s))throw new d(`Mutation ${t+1} ${r} requires an options object.`,c.USAGE);return{op:r,id:a,options:s}}function ie(e){let t=I(e,"Mutation batch"),o=Array.isArray(t)?t:p(t)&&Array.isArray(t.mutations)?t.mutations:void 0;if(o===void 0||o.length===0)throw new d("Mutation batch must be a non-empty JSON array or an object with a non-empty mutations array.",c.USAGE);return o.map((r,n)=>{let i=le(r,n);return i.options!==void 0&&G(i.options),i})}function me(e,t,o){let r=ce.createHash("sha256").update(e).update("\0").update(t).digest("hex"),n=BigInt(`0x${r.slice(0,16)}`).toString(36).padStart(13,"0").slice(-12);return`${C(o)}${n}`}function Q(e,t){if(typeof e!="string"||!e.startsWith("@"))return e;let o=e.slice(1),r=t[o];if(r===void 0)throw new d(`Unknown mutation reference "${e}".`,c.USAGE);return r}function ee(e,t){if(typeof e!="string")return e;let o=e.replace(re,(r,n,i)=>{let s=t[i];if(s===void 0)throw new d(`Unknown mutation reference "@${i}".`,c.USAGE);return`${n}id=${s}`});if(/(^|,)id=@/u.test(o))throw new d(`Malformed mutation reference in dependency "${e}".`,c.USAGE);return o}function fe(e){return typeof e!="string"?[]:e.startsWith("@")?[e.slice(1)]:[...e.matchAll(re)].map(t=>t[1]).filter(t=>t!==void 0)}function ye(e){let t=new Map;for(let i of e){if(i.op!=="create"||typeof i.ref!="string")continue;let s=p(i.options)?i.options:{},a=Array.isArray(s.dep)?s.dep:s.dep===void 0?[]:[s.dep];t.set(i.ref,[s.parent,s.blockedBy,...a].flatMap(fe))}let o=new Set,r=new Set,n=i=>{if(o.has(i))throw new d(`Mutation reference cycle includes "@${i}".`,c.USAGE);if(!r.has(i)){o.add(i);for(let s of t.get(i))t.has(s)&&n(s);o.delete(i),r.add(i)}};for(let i of t.keys())n(i)}function he(e){let t=I(e,"Mutation document"),o=Array.isArray(t)?{schema_version:1,mutations:t}:t;if(!p(o))throw new d("Mutation document must be a JSON array or object.",c.USAGE);for(let r of Object.keys(o))if(!q.includes(r))throw y("mutation document",r,q);if(o.schema_version!==void 0&&o.schema_version!==1)throw new d("Mutation document schema_version must be 1.",c.USAGE);if(!Array.isArray(o.mutations)||o.mutations.length===0)throw new d("Mutation document requires a non-empty mutations array.",c.USAGE);return o.mutations.map((r,n)=>{if(!p(r))throw new d(`Mutation ${n+1} must be an object.`,c.USAGE);for(let i of Object.keys(r))if(!Y.includes(i))throw y(`mutation ${n+1}`,i,Y);return{...r}})}function we(e,t){let o=Object.create(null);for(let[r,n]of e.entries())if(n.ref!==void 0){if(n.op!=="create")throw new d(`Mutation ${r+1} ref is only valid for create operations.`,c.USAGE);if(typeof n.ref!="string"||!H.test(n.ref))throw new d(`Mutation ${r+1} ref must match ${H.source}.`,c.USAGE);if(o[n.ref]!==void 0)throw new d(`Duplicate mutation ref "${n.ref}".`,c.USAGE);o[n.ref]=typeof n.id=="string"&&n.id.trim().length>0?U(n.id,t.idPrefix):me(t.transactionId,n.ref,t.idPrefix)}return o}function bt(e,t){let o=he(e),r=we(o,t);ye(o);let n=o.map(a=>{let u={...a},f=typeof u.ref=="string"?u.ref:void 0;if(delete u.ref,f!==void 0?u.id=r[f]:u.id=Q(u.id,r),p(u.options)){let l={...u.options};for(let w of["parent","blockedBy"])l[w]!==void 0&&(l[w]=Q(l[w],r));Array.isArray(l.dep)?l.dep=l.dep.map(w=>ee(w,r)):l.dep!==void 0&&(l.dep=ee(l.dep,r)),u.options=l}return u}),i=ie(JSON.stringify(n)),s=i.filter(a=>a.op==="create").map(a=>a.id);if(new Set(s).size!==s.length)throw new d("Duplicate resolved create id in mutation document.",c.USAGE);return{schema_version:1,mutations:i,references:r}}function se(e,t){return t.filter(o=>e[o]!==void 0&&e[o]!==null).map(o=>{let r=String(e[o]);return`${o}=${/[",\n\r\\]/u.test(r)?JSON.stringify(r):r}`}).join(",")}function _e(e,t,o){if(e!==void 0){if(!Array.isArray(e)||!e.every(p))throw new d(`${o} must be an array of objects.`,c.USAGE);return e.map(r=>se(r,t))}}function Ee(e,t){return e==="tags"&&Array.isArray(t)&&t.every(o=>typeof o=="string")?JSON.stringify(t):typeof t=="number"||typeof t=="boolean"?String(t):t}function te(e,t,o=!1){let r=[["dependencies","dep",["id","kind","created_at","author","source_kind"]],["comments","comment",["text","created_at","author"]],["notes","note",["text","created_at","author"]],["learnings","learning",["text","created_at","author"]],["files","file",["path","scope","note"]],["tests","test",["command","scope","timeout_seconds"]],["docs","doc",["path","scope","note"]],["reminders","reminder",["at","text","created_at"]],["events","event",["start_at","end_at","title","location"]],["type_options","typeOption",["key","value"]]];for(let[n,i,s]of r){let a=t[n],u=_e(o&&["comments","notes","learnings"].includes(n)&&Array.isArray(a)?a.filter(f=>!p(f)||f.created_at===void 0):a,s,n);u!==void 0&&u.length>0&&(e[i]=u)}}function ge(e,t){for(let o of Object.keys(e)){if(t){if(!E.includes(o))throw y("item envelope",o,E);continue}if(!_.has(o)&&g(o,[..._])===void 0&&g(o,E)==="item")throw y("item envelope",o,E)}}function Ae(e){let t=Object.hasOwn(e,"item");ge(e,t);let o=t?e.item:e;if(!p(o))throw new d("Item document item must be an object.",c.USAGE);return{item:o,...t&&p(e.linked)?{linked:e.linked}:{}}}function Te(e,t,o,r){if(!(r==="update"?de:ne).has(t)){if(!_.has(t)){if(g(t,[..._])!==void 0)throw y("item document",t,[..._]);let s=Array.isArray(e.field)?e.field:[];s.push(se({key:t,value:typeof o=="string"?o:JSON.stringify(o)},["key","value"])),e.field=s;return}["dependencies","comments","notes","learnings","files","tests","docs","reminders","events","type_options"].includes(t)||(e[t.replaceAll(/_([a-z])/gu,(i,s)=>s.toUpperCase())]=Ee(t,o))}}function Rt(e,t,o={}){let r=I(e,"Item document");if(!p(r))throw new d("Item document must be a JSON object.",c.USAGE);let{item:n,linked:i}=Ae(r),s={};for(let[a,u]of Object.entries(n))Te(s,a,u,t);return te(s,n,t==="update"),i!==void 0&&te(s,i),{...s,...Object.fromEntries(Object.entries(o).filter(([,a])=>a!==void 0)),stdinJson:void 0}}function It(e){return ie(JSON.stringify(e))}import Se from"node:crypto";import be 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]="4b7656bd-36a9-5b97-971f-60f717e8e81f")}catch{}})();function A(e,t){let o={...e,...t};return e===void 0?o:j(e,o)}async function m(e,t){try{let r=(await B(t,{},{pmRoot:e})).item;return{id:r.id,closedAt:r.closed_at,updatedAt:r.updated_at,assignee:r.assignee,claimPrincipal:r.claim_principal}}catch(o){if(o instanceof d&&o.exitCode===c.NOT_FOUND)return;throw o}}function v(e,t){let o=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_"),r=Se.createHash("sha256").update($(e)).digest("hex").slice(0,12);return`${t+1}-${e.op}-${o}-${r}`}function Re(e,t){let o=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_");return`${t+1}-${e.op}-${o}`}function h(e,t,o){return`bulk-item-transaction ${e} ${t} ${o}`}async function T(e,t,o,r){let n=await N(be.join(e,"history",`${t}.jsonl`),t),i=h(o,r,"apply"),s=h(o,r,"compensate");for(let a=n.length-1;a>=0;a-=1){let u=n[a].message;if(u===i)return!0;if(u===s)return!1}return!1}async function M(e,t){let o=await m(e,t.id);if(o?.updatedAt===void 0)throw new d(`Bulk ${t.op} target ${t.id} does not exist or has no restorable version`,c.NOT_FOUND);return{target_updated_at:o.updatedAt}}async function S(e,t,o,r){let n=r!==null&&typeof r=="object"&&!Array.isArray(r)?r.target_updated_at:void 0;typeof n=="string"&&await m(e.pmRoot,t)!==void 0&&await V(t,n,{force:!0,author:e.author,message:h(e.transactionId,o,"compensate")},{pmRoot:e.pmRoot})}function ae(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"create"}}},async apply(){let n=(await x(A(t.options,{author:e.author,id:t.id}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"create"}},async compensate(){let r=await m(e.pmRoot,t.id);if(r!==void 0){if(e.createCompensation==="delete"){await W(t.id,{force:!0,author:e.author,message:`Compensate interrupted bulk transaction ${e.transactionId}`},{pmRoot:e.pmRoot});return}r.closedAt===void 0&&await b(t.id,`Compensated: interrupted bulk transaction ${e.transactionId}`,{force:!0,author:e.author},{pmRoot:e.pmRoot})}}}}function Ie(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await T(e.pmRoot,r.id,e.transactionId,o)?{state:"applied",result:{id:r.id,op:"update"}}:{state:"pending"}},async prepareCompensation(){return M(e.pmRoot,t)},async apply(){let n=(await F(t.id,A(t.options,{author:e.author,message:h(e.transactionId,o,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"update"}},async compensate(r){await S(e,t.id,o,r)}}}function ve(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await T(e.pmRoot,r.id,e.transactionId,o)?{state:"applied",result:{id:r.id,op:"close"}}:r.closedAt===void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"close"}}},async prepareCompensation(){return M(e.pmRoot,t)},async apply(){let n=(await b(t.id,t.reason,A(t.options,{author:e.author,message:h(e.transactionId,o,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"close"}},async compensate(r){await S(e,t.id,o,r)}}}function Me(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await T(e.pmRoot,r.id,e.transactionId,o)?{state:"applied",result:{id:r.id,op:"release"}}:r.assignee!==void 0||r.claimPrincipal!==void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"release"}}},async prepareCompensation(){return M(e.pmRoot,t)},async apply(){let n=(await J(t.id,A(t.options,{author:e.author,message:h(e.transactionId,o,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"release"}},async compensate(r){await S(e,t.id,o,r)}}}function Oe(e,t,o){let r=v(t,o);switch(t.op){case"create":return ae(e,t,r);case"update":return Ie(e,t,r);case"close":return ve(e,t,r);case"release":return Me(e,t,r)}}function ke(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`Bulk mutation ${t+1} must be an object`);if(!["create","update","close","release"].includes(e.op))throw new TypeError(`Bulk mutation ${t+1} op must be create, update, close, or release`);if(typeof e.id!="string"||e.id.trim().length===0)throw new TypeError(`Bulk mutation ${t+1} requires a non-empty id`);if(e.op==="close"&&(typeof e.reason!="string"||e.reason.trim().length===0))throw new TypeError(`Bulk close mutation ${t+1} requires a non-empty reason`)}async function $e(e){let t=[...e.mutations];if(t.length===0)throw new TypeError("Bulk item transaction requires at least one mutation");for(let[s,a]of t.entries())ke(a,s);let o=e.createCompensation??"close";if(!["close","delete"].includes(o))throw new TypeError("Bulk item transaction createCompensation must be close or delete");let r={pmRoot:e.pmRoot,author:e.author,transactionId:e.transactionId,createCompensation:o},n=await D({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,steps:t.map((s,a)=>Oe(r,s,a)),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}}),i={};for(let[s,a]of t.entries()){let u=v(a,s),f=n.results[u];i[Re(a,s)]=f}return{transactionId:n.transactionId,status:"committed",recovered:n.recovered,results:i}}function Ne(e){let t=[];return e.evidence!==void 0&&Object.keys(e.evidence).length>0&&t.push({op:"update",id:e.id,options:e.evidence}),t.push({op:"close",id:e.id,reason:e.reason,...e.closeOptions===void 0?{}:{options:e.closeOptions}},{op:"release",id:e.id,...e.releaseOptions===void 0?{}:{options:e.releaseOptions}}),t}function jt(e){return $e({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,mutations:Ne(e),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}})}var Pt={buildCreateStep:ae,bulkHistoryMarker:h,compensateByRestore:S,deriveStepId:v,isUpdateMarkerApplied:T,readItemSnapshot:m};export{St as a,ie as b,bt as c,Rt as d,It as e,$e as f,Ne as g,jt as h,Pt as i};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{$a as B,Ub as x,Vb as F,Xb as b,_b as J,ac as W,bc as V}from"./chunk-FOTXRNY6.js";import{b as D}from"./chunk-MJWKR7YA.js";import{Rb as $,aa as O,en as P,fh as N,kn as L,la as c,mi as C,na as d,oi as U,rj as G,tb as k,tj as j,uo as z,xo as K}from"./chunk-IYN4MJ2C.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]="4175f7f5-a689-5d05-982a-f92e21bc83e7")}catch{}})();import ce from"node:crypto";(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]="d6ceb51a-6085-5d65-aebe-31d09ea4d1d6")}catch{}})();var R=["op","id","reason","options"],Y=[...R,"ref"],q=["schema_version","mutations"],oe="[a-z][a-z0-9._-]{0,63}",H=new RegExp(`^${oe}$`,"u"),re=new RegExp(`(^|,)id=@(${oe})(?=,|$)`,"gu"),X=e=>e.slice(2).replaceAll(/-([a-z])/gu,(t,o)=>o.toUpperCase()),E=["item","linked","schedule","claim_state","children","omission_receipt","row_contract","context_intent"],ne=new Set(["created_at","updated_at","closed_at","version","format_version","path","author","collection_counts","notes_count","tests_count"]),de=new Set([...ne,"completed_at","id"]),_=new Set(["id","title","description","type","status","priority","tags","body","deadline","estimated_minutes","acceptance_criteria","definition_of_ready","order","rank","assignee",...O,"affected_version","fixed_version","component","regression","customer_impact","close_reason","completed_at","dependencies","comments","notes","learnings","files","tests","docs","reminders","events","type_options"]),Z={create:z.map(e=>e.target),update:K.map(e=>e.target),close:P.map(e=>X(e.flag)).filter(e=>e!=="reason"),release:L.map(e=>X(e.flag))};function St(e){let t={},o=e.createCompensation;if(o!==void 0){if(o!=="close"&&o!=="delete")throw new d("createCompensation must be close or delete.",c.USAGE);t.createCompensation=o}for(let r of["lockTtlSeconds","lockWaitMs"]){let n=e[r];if(n===void 0)continue;let i=typeof n=="number"||typeof n=="string"&&n.trim().length>0?Number(n):Number.NaN;if(!Number.isSafeInteger(i)||i<=0)throw new d(`${r} must be a positive safe integer.`,c.USAGE);t[r]=i}return t}function p(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function g(e,t){let o=Math.max(1,Math.min(3,Math.floor(e.length/4)+1)),r;for(let n of t){let i=k(e,n,o);i!==null&&(r===void 0||i<r.distance)&&(r={key:n,distance:i})}return r?.key}function y(e,t,o){let r=g(t,o);return new d(r===void 0?`${e} does not recognize key "${t}". Allowed keys: ${o.join(", ")}.`:`${e} does not recognize key "${t}". Did you mean "${r}"?`,c.USAGE,{code:"stdin_json_unknown_key",required:`Use documented ${e} keys only.`,why:"Strict structured input prevents silent typos from creating incomplete or unintended mutations.",nextSteps:[r===void 0?`Remove or correct "${t}".`:`Replace "${t}" with "${r}".`]})}function I(e,t){try{return JSON.parse(e)}catch(o){let r=o instanceof Error?o.message:String(o);throw new d(`${t} must be valid JSON: ${r}`,c.USAGE,{code:"stdin_json_invalid",required:`Pipe one valid JSON ${t.toLowerCase()} into stdin.`,why:"Structured mutation input must parse deterministically before any tracker write begins."})}}function ue(e,t){if(!p(e))throw new d(`Mutation ${t+1} must be an object.`,c.USAGE);for(let o of Object.keys(e))if(!R.includes(o))throw y(`mutation ${t+1}`,o,R);return e}function pe(e,t,o){if(e!==void 0){if(!p(e))throw new d(`Mutation ${o+1} options must be an object.`,c.USAGE);for(let r of Object.keys(e))if(!Z[t].includes(r))throw y(`mutation ${o+1} ${t} options`,r,Z[t]);return e}}function le(e,t){let o=ue(e,t),{op:r,id:n,reason:i}=o;if(r!=="create"&&r!=="update"&&r!=="close"&&r!=="release")throw new d(`Mutation ${t+1} op must be create, update, close, or release.`,c.USAGE);let s=pe(o.options,r,t);if(typeof n!="string"||n.trim().length===0)throw new d(`Mutation ${t+1} requires a non-empty id.`,c.USAGE);let a=n.trim();if(r==="close"){if(typeof i!="string"||i.trim().length===0)throw new d(`Mutation ${t+1} close requires a non-empty reason.`,c.USAGE);return{op:r,id:a,reason:i.trim(),...s===void 0?{}:{options:s}}}if(r==="release")return{op:r,id:a,...s===void 0?{}:{options:s}};if(!p(s))throw new d(`Mutation ${t+1} ${r} requires an options object.`,c.USAGE);return{op:r,id:a,options:s}}function ie(e){let t=I(e,"Mutation batch"),o=Array.isArray(t)?t:p(t)&&Array.isArray(t.mutations)?t.mutations:void 0;if(o===void 0||o.length===0)throw new d("Mutation batch must be a non-empty JSON array or an object with a non-empty mutations array.",c.USAGE);return o.map((r,n)=>{let i=le(r,n);return i.options!==void 0&&G(i.options),i})}function me(e,t,o){let r=ce.createHash("sha256").update(e).update("\0").update(t).digest("hex"),n=BigInt(`0x${r.slice(0,16)}`).toString(36).padStart(13,"0").slice(-12);return`${C(o)}${n}`}function Q(e,t){if(typeof e!="string"||!e.startsWith("@"))return e;let o=e.slice(1),r=t[o];if(r===void 0)throw new d(`Unknown mutation reference "${e}".`,c.USAGE);return r}function ee(e,t){if(typeof e!="string")return e;let o=e.replace(re,(r,n,i)=>{let s=t[i];if(s===void 0)throw new d(`Unknown mutation reference "@${i}".`,c.USAGE);return`${n}id=${s}`});if(/(^|,)id=@/u.test(o))throw new d(`Malformed mutation reference in dependency "${e}".`,c.USAGE);return o}function fe(e){return typeof e!="string"?[]:e.startsWith("@")?[e.slice(1)]:[...e.matchAll(re)].map(t=>t[1]).filter(t=>t!==void 0)}function ye(e){let t=new Map;for(let i of e){if(i.op!=="create"||typeof i.ref!="string")continue;let s=p(i.options)?i.options:{},a=Array.isArray(s.dep)?s.dep:s.dep===void 0?[]:[s.dep];t.set(i.ref,[s.parent,s.blockedBy,...a].flatMap(fe))}let o=new Set,r=new Set,n=i=>{if(o.has(i))throw new d(`Mutation reference cycle includes "@${i}".`,c.USAGE);if(!r.has(i)){o.add(i);for(let s of t.get(i))t.has(s)&&n(s);o.delete(i),r.add(i)}};for(let i of t.keys())n(i)}function he(e){let t=I(e,"Mutation document"),o=Array.isArray(t)?{schema_version:1,mutations:t}:t;if(!p(o))throw new d("Mutation document must be a JSON array or object.",c.USAGE);for(let r of Object.keys(o))if(!q.includes(r))throw y("mutation document",r,q);if(o.schema_version!==void 0&&o.schema_version!==1)throw new d("Mutation document schema_version must be 1.",c.USAGE);if(!Array.isArray(o.mutations)||o.mutations.length===0)throw new d("Mutation document requires a non-empty mutations array.",c.USAGE);return o.mutations.map((r,n)=>{if(!p(r))throw new d(`Mutation ${n+1} must be an object.`,c.USAGE);for(let i of Object.keys(r))if(!Y.includes(i))throw y(`mutation ${n+1}`,i,Y);return{...r}})}function we(e,t){let o=Object.create(null);for(let[r,n]of e.entries())if(n.ref!==void 0){if(n.op!=="create")throw new d(`Mutation ${r+1} ref is only valid for create operations.`,c.USAGE);if(typeof n.ref!="string"||!H.test(n.ref))throw new d(`Mutation ${r+1} ref must match ${H.source}.`,c.USAGE);if(o[n.ref]!==void 0)throw new d(`Duplicate mutation ref "${n.ref}".`,c.USAGE);o[n.ref]=typeof n.id=="string"&&n.id.trim().length>0?U(n.id,t.idPrefix):me(t.transactionId,n.ref,t.idPrefix)}return o}function bt(e,t){let o=he(e),r=we(o,t);ye(o);let n=o.map(a=>{let u={...a},f=typeof u.ref=="string"?u.ref:void 0;if(delete u.ref,f!==void 0?u.id=r[f]:u.id=Q(u.id,r),p(u.options)){let l={...u.options};for(let w of["parent","blockedBy"])l[w]!==void 0&&(l[w]=Q(l[w],r));Array.isArray(l.dep)?l.dep=l.dep.map(w=>ee(w,r)):l.dep!==void 0&&(l.dep=ee(l.dep,r)),u.options=l}return u}),i=ie(JSON.stringify(n)),s=i.filter(a=>a.op==="create").map(a=>a.id);if(new Set(s).size!==s.length)throw new d("Duplicate resolved create id in mutation document.",c.USAGE);return{schema_version:1,mutations:i,references:r}}function se(e,t){return t.filter(o=>e[o]!==void 0&&e[o]!==null).map(o=>{let r=String(e[o]);return`${o}=${/[",\n\r\\]/u.test(r)?JSON.stringify(r):r}`}).join(",")}function _e(e,t,o){if(e!==void 0){if(!Array.isArray(e)||!e.every(p))throw new d(`${o} must be an array of objects.`,c.USAGE);return e.map(r=>se(r,t))}}function Ee(e,t){return e==="tags"&&Array.isArray(t)&&t.every(o=>typeof o=="string")?JSON.stringify(t):typeof t=="number"||typeof t=="boolean"?String(t):t}function te(e,t,o=!1){let r=[["dependencies","dep",["id","kind","created_at","author","source_kind"]],["comments","comment",["text","created_at","author"]],["notes","note",["text","created_at","author"]],["learnings","learning",["text","created_at","author"]],["files","file",["path","scope","note"]],["tests","test",["command","scope","timeout_seconds"]],["docs","doc",["path","scope","note"]],["reminders","reminder",["at","text","created_at"]],["events","event",["start_at","end_at","title","location"]],["type_options","typeOption",["key","value"]]];for(let[n,i,s]of r){let a=t[n],u=_e(o&&["comments","notes","learnings"].includes(n)&&Array.isArray(a)?a.filter(f=>!p(f)||f.created_at===void 0):a,s,n);u!==void 0&&u.length>0&&(e[i]=u)}}function ge(e,t){for(let o of Object.keys(e)){if(t){if(!E.includes(o))throw y("item envelope",o,E);continue}if(!_.has(o)&&g(o,[..._])===void 0&&g(o,E)==="item")throw y("item envelope",o,E)}}function Ae(e){let t=Object.hasOwn(e,"item");ge(e,t);let o=t?e.item:e;if(!p(o))throw new d("Item document item must be an object.",c.USAGE);return{item:o,...t&&p(e.linked)?{linked:e.linked}:{}}}function Te(e,t,o,r){if(!(r==="update"?de:ne).has(t)){if(!_.has(t)){if(g(t,[..._])!==void 0)throw y("item document",t,[..._]);let s=Array.isArray(e.field)?e.field:[];s.push(se({key:t,value:typeof o=="string"?o:JSON.stringify(o)},["key","value"])),e.field=s;return}["dependencies","comments","notes","learnings","files","tests","docs","reminders","events","type_options"].includes(t)||(e[t.replaceAll(/_([a-z])/gu,(i,s)=>s.toUpperCase())]=Ee(t,o))}}function Rt(e,t,o={}){let r=I(e,"Item document");if(!p(r))throw new d("Item document must be a JSON object.",c.USAGE);let{item:n,linked:i}=Ae(r),s={};for(let[a,u]of Object.entries(n))Te(s,a,u,t);return te(s,n,t==="update"),i!==void 0&&te(s,i),{...s,...Object.fromEntries(Object.entries(o).filter(([,a])=>a!==void 0)),stdinJson:void 0}}function It(e){return ie(JSON.stringify(e))}import Se from"node:crypto";import be 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]="4b7656bd-36a9-5b97-971f-60f717e8e81f")}catch{}})();function A(e,t){let o={...e,...t};return e===void 0?o:j(e,o)}async function m(e,t){try{let r=(await B(t,{},{pmRoot:e})).item;return{id:r.id,closedAt:r.closed_at,updatedAt:r.updated_at,assignee:r.assignee,claimPrincipal:r.claim_principal}}catch(o){if(o instanceof d&&o.exitCode===c.NOT_FOUND)return;throw o}}function v(e,t){let o=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_"),r=Se.createHash("sha256").update($(e)).digest("hex").slice(0,12);return`${t+1}-${e.op}-${o}-${r}`}function Re(e,t){let o=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_");return`${t+1}-${e.op}-${o}`}function h(e,t,o){return`bulk-item-transaction ${e} ${t} ${o}`}async function T(e,t,o,r){let n=await N(be.join(e,"history",`${t}.jsonl`),t),i=h(o,r,"apply"),s=h(o,r,"compensate");for(let a=n.length-1;a>=0;a-=1){let u=n[a].message;if(u===i)return!0;if(u===s)return!1}return!1}async function M(e,t){let o=await m(e,t.id);if(o?.updatedAt===void 0)throw new d(`Bulk ${t.op} target ${t.id} does not exist or has no restorable version`,c.NOT_FOUND);return{target_updated_at:o.updatedAt}}async function S(e,t,o,r){let n=r!==null&&typeof r=="object"&&!Array.isArray(r)?r.target_updated_at:void 0;typeof n=="string"&&await m(e.pmRoot,t)!==void 0&&await V(t,n,{force:!0,author:e.author,message:h(e.transactionId,o,"compensate")},{pmRoot:e.pmRoot})}function ae(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"create"}}},async apply(){let n=(await x(A(t.options,{author:e.author,id:t.id}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"create"}},async compensate(){let r=await m(e.pmRoot,t.id);if(r!==void 0){if(e.createCompensation==="delete"){await W(t.id,{force:!0,author:e.author,message:`Compensate interrupted bulk transaction ${e.transactionId}`},{pmRoot:e.pmRoot});return}r.closedAt===void 0&&await b(t.id,`Compensated: interrupted bulk transaction ${e.transactionId}`,{force:!0,author:e.author},{pmRoot:e.pmRoot})}}}}function Ie(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await T(e.pmRoot,r.id,e.transactionId,o)?{state:"applied",result:{id:r.id,op:"update"}}:{state:"pending"}},async prepareCompensation(){return M(e.pmRoot,t)},async apply(){let n=(await F(t.id,A(t.options,{author:e.author,message:h(e.transactionId,o,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"update"}},async compensate(r){await S(e,t.id,o,r)}}}function ve(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await T(e.pmRoot,r.id,e.transactionId,o)?{state:"applied",result:{id:r.id,op:"close"}}:r.closedAt===void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"close"}}},async prepareCompensation(){return M(e.pmRoot,t)},async apply(){let n=(await b(t.id,t.reason,A(t.options,{author:e.author,message:h(e.transactionId,o,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"close"}},async compensate(r){await S(e,t.id,o,r)}}}function Me(e,t,o){return{id:o,async inspect(){let r=await m(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await T(e.pmRoot,r.id,e.transactionId,o)?{state:"applied",result:{id:r.id,op:"release"}}:r.assignee!==void 0||r.claimPrincipal!==void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"release"}}},async prepareCompensation(){return M(e.pmRoot,t)},async apply(){let n=(await J(t.id,A(t.options,{author:e.author,message:h(e.transactionId,o,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(n.id),op:"release"}},async compensate(r){await S(e,t.id,o,r)}}}function Oe(e,t,o){let r=v(t,o);switch(t.op){case"create":return ae(e,t,r);case"update":return Ie(e,t,r);case"close":return ve(e,t,r);case"release":return Me(e,t,r)}}function ke(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`Bulk mutation ${t+1} must be an object`);if(!["create","update","close","release"].includes(e.op))throw new TypeError(`Bulk mutation ${t+1} op must be create, update, close, or release`);if(typeof e.id!="string"||e.id.trim().length===0)throw new TypeError(`Bulk mutation ${t+1} requires a non-empty id`);if(e.op==="close"&&(typeof e.reason!="string"||e.reason.trim().length===0))throw new TypeError(`Bulk close mutation ${t+1} requires a non-empty reason`)}async function $e(e){let t=[...e.mutations];if(t.length===0)throw new TypeError("Bulk item transaction requires at least one mutation");for(let[s,a]of t.entries())ke(a,s);let o=e.createCompensation??"close";if(!["close","delete"].includes(o))throw new TypeError("Bulk item transaction createCompensation must be close or delete");let r={pmRoot:e.pmRoot,author:e.author,transactionId:e.transactionId,createCompensation:o},n=await D({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,steps:t.map((s,a)=>Oe(r,s,a)),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}}),i={};for(let[s,a]of t.entries()){let u=v(a,s),f=n.results[u];i[Re(a,s)]=f}return{transactionId:n.transactionId,status:"committed",recovered:n.recovered,results:i}}function Ne(e){let t=[];return e.evidence!==void 0&&Object.keys(e.evidence).length>0&&t.push({op:"update",id:e.id,options:e.evidence}),t.push({op:"close",id:e.id,reason:e.reason,...e.closeOptions===void 0?{}:{options:e.closeOptions}},{op:"release",id:e.id,...e.releaseOptions===void 0?{}:{options:e.releaseOptions}}),t}function jt(e){return $e({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,mutations:Ne(e),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}})}var Pt={buildCreateStep:ae,bulkHistoryMarker:h,compensateByRestore:S,deriveStepId:v,isUpdateMarkerApplied:T,readItemSnapshot:m};export{St as a,ie as b,bt as c,Rt as d,It as e,$e as f,Ne as g,jt as h,Pt as i};
|
|
2
|
+
//# sourceMappingURL=chunk-4ODHIX7N.js.map
|