@unbrained/pm-cli 2026.8.26 → 2026.8.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/.agents/skills/HARNESS_COMPATIBILITY.md +32 -0
  2. package/.agents/skills/README.md +47 -0
  3. package/.agents/skills/pm-developer/SKILL.md +117 -0
  4. package/.agents/skills/pm-developer/references/COMMAND_PLAYBOOK.md +49 -0
  5. package/.agents/skills/pm-developer/references/GRAPH_AND_RELATIONSHIPS.md +91 -0
  6. package/.agents/skills/pm-developer/references/MULTI_AGENT_MERGE.md +72 -0
  7. package/.agents/skills/pm-developer/references/PROMPTS.md +17 -0
  8. package/.agents/skills/pm-developer/references/SCRIPTING_COMPOSITION.md +82 -0
  9. package/.agents/skills/pm-developer/references/TOKEN_BUDGETS.md +85 -0
  10. package/.agents/skills/pm-extensions/SKILL.md +106 -0
  11. package/.agents/skills/pm-extensions/references/AUTHORING.md +95 -0
  12. package/.agents/skills/pm-extensions/references/LIFECYCLE.md +40 -0
  13. package/.agents/skills/pm-extensions/references/TROUBLESHOOTING.md +25 -0
  14. package/.agents/skills/pm-sdk/SKILL.md +107 -0
  15. package/.agents/skills/pm-sdk/references/DOMAIN_MODELING.md +78 -0
  16. package/.agents/skills/pm-sdk/references/INTEGRATION_CHECKLIST.md +31 -0
  17. package/.agents/skills/pm-sdk/references/PROMPTS.md +13 -0
  18. package/.agents/skills/pm-sdk/references/SURFACE_MAP.md +82 -0
  19. package/.agents/skills/pm-user/SKILL.md +111 -0
  20. package/.agents/skills/pm-user/references/BACKLOG_SHAPING.md +105 -0
  21. package/.agents/skills/pm-user/references/PROMPTS.md +17 -0
  22. package/.agents/skills/pm-user/references/WORKFLOWS.md +35 -0
  23. package/.claude-plugin/marketplace.json +2 -2
  24. package/CHANGELOG.md +50 -4
  25. package/README.md +8 -5
  26. package/dist/cli/commander-usage.js +11 -7
  27. package/dist/cli/error-guidance.js +62 -8
  28. package/dist/cli/help-content.d.ts +2 -0
  29. package/dist/cli/help-content.js +53 -17
  30. package/dist/cli/help-json-payload.d.ts +8 -2
  31. package/dist/cli/help-json-payload.js +46 -12
  32. package/dist/cli/main.js +52 -74
  33. package/dist/cli/register-annotations.js +83 -60
  34. package/dist/cli/register-setup.js +98 -57
  35. package/dist/cli-bundle/bundle-manifest.json +151 -151
  36. package/dist/cli-bundle/chunks/{chunk-UKBCRPA2.js → chunk-BY2FQ2NI.js} +2 -2
  37. package/dist/cli-bundle/chunks/chunk-E73FDIWT.js +3 -0
  38. package/dist/cli-bundle/chunks/{chunk-WRHJ3MB6.js → chunk-FEVBFFCQ.js} +2 -2
  39. package/dist/cli-bundle/chunks/{chunk-KBFP3E4E.js → chunk-M7OXRQE3.js} +66 -44
  40. package/dist/cli-bundle/chunks/{chunk-S4U76VZF.js → chunk-NBCBFVZI.js} +2 -2
  41. package/dist/cli-bundle/chunks/{chunk-ZNRLJ54C.js → chunk-NTXZHRKA.js} +45 -45
  42. package/dist/cli-bundle/chunks/chunk-QE6WQXFO.js +3 -0
  43. package/dist/cli-bundle/chunks/chunk-TIQ6AMH2.js +13 -0
  44. package/dist/cli-bundle/chunks/chunk-X2RROGZE.js +2 -0
  45. package/dist/cli-bundle/chunks/{chunk-E2GCFJSU.js → chunk-XRVVYRRO.js} +33 -33
  46. package/dist/cli-bundle/chunks/chunk-XWEQGHHG.js +202 -0
  47. package/dist/cli-bundle/chunks/{register-list-query-EMCPMICY.js → register-list-query-J35ZPQQ5.js} +2 -2
  48. package/dist/cli-bundle/chunks/{register-mutation-OJ67ABCB.js → register-mutation-J6XJJOGU.js} +4 -4
  49. package/dist/cli-bundle/chunks/{register-operations-H2GLP7LT.js → register-operations-AE3JEMFT.js} +2 -2
  50. package/dist/cli-bundle/chunks/register-setup-OQERLLWE.js +2 -0
  51. package/dist/cli-bundle/focused-chunks/{chunk-72T6JGAE.js → chunk-4ZDRZYYJ.js} +43 -43
  52. package/dist/cli-bundle/focused-chunks/{chunk-OHIHZ7HS.js → chunk-6GCRSLPG.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-UYBA57GY.js → chunk-AD6ULRAF.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/{chunk-FXDLT6FL.js → chunk-AHAM2HAU.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/{chunk-LV5N3LK5.js → chunk-FC2AXLB5.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-IBHXMFE7.js → chunk-HC7ODMH3.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/{chunk-4K2II4TV.js → chunk-HVQ22RC4.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/{chunk-MMXUPDDJ.js → chunk-JZYPPMXF.js} +2 -2
  59. package/dist/cli-bundle/focused-chunks/chunk-LLNTHF5X.js +2 -0
  60. package/dist/cli-bundle/focused-chunks/chunk-LYFWQMVC.js +2 -0
  61. package/dist/cli-bundle/focused-chunks/{chunk-A644DUFQ.js → chunk-MEASX544.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-YO3ZF3FI.js → chunk-THEPQMLX.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/{chunk-57XY346D.js → chunk-XDPYBQCF.js} +9 -9
  64. package/dist/cli-bundle/focused-chunks/{chunk-TMJDFHVD.js → chunk-Y3JJXRVK.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{chunk-66VGB23P.js → chunk-Y5A7SJJ7.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/chunk-YJLDHJOD.js +2 -0
  67. package/dist/cli-bundle/focused-chunks/{chunk-P2E6LDAE.js → chunk-YVVZ3LQ6.js} +3 -3
  68. package/dist/cli-bundle/focused-chunks/chunk-Z2USIBR2.js +5 -0
  69. package/dist/cli-bundle/main.js +15 -14
  70. package/dist/cli-bundle/sdk-authoring.js +1 -1
  71. package/dist/cli-bundle/sdk-contracts.js +2 -2
  72. package/dist/cli-bundle/sdk-core.js +31 -31
  73. package/dist/cli-bundle/sdk-governance.js +1 -1
  74. package/dist/cli-bundle/sdk-graph.js +1 -1
  75. package/dist/cli-bundle/sdk-merge.js +31 -31
  76. package/dist/cli-bundle/sdk-query.js +1 -1
  77. package/dist/cli-bundle/sdk-runtime.js +1 -1
  78. package/dist/cli-bundle/sdk-testing.js +1 -1
  79. package/dist/cli-bundle/sdk.js +32 -7
  80. package/dist/core/governance/issue-codes.d.ts +11 -2
  81. package/dist/core/governance/issue-codes.js +29 -10
  82. package/dist/core/item/item-format.js +3 -3
  83. package/dist/core/store/item-store.js +12 -5
  84. package/dist/mcp/server.js +123 -9
  85. package/dist/mcp/tool-definitions.d.ts +2 -0
  86. package/dist/mcp/tool-definitions.js +5 -5
  87. package/dist/sdk/agent/closed-domain-contracts.d.ts +1 -1
  88. package/dist/sdk/agent/closed-domain-contracts.js +24 -2
  89. package/dist/sdk/agent/command-recovery.js +3 -3
  90. package/dist/sdk/agent/task-transcript-contracts.d.ts +52 -0
  91. package/dist/sdk/agent/task-transcript-contracts.js +198 -0
  92. package/dist/sdk/agent-capability-contracts.js +6 -2
  93. package/dist/sdk/annotations.d.ts +5 -2
  94. package/dist/sdk/annotations.js +66 -36
  95. package/dist/sdk/cli-bootstrap.d.ts +2 -8
  96. package/dist/sdk/cli-bootstrap.js +7 -66
  97. package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +23 -0
  98. package/dist/sdk/cli-contracts/bootstrap-command-scanner.js +80 -0
  99. package/dist/sdk/cli-contracts/command-aliases.js +15 -2
  100. package/dist/sdk/cli-contracts/enum-contracts.d.ts +4 -1
  101. package/dist/sdk/cli-contracts/enum-contracts.js +7 -2
  102. package/dist/sdk/cli-contracts/flag-contracts.js +12 -5
  103. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +5 -5
  104. package/dist/sdk/cli-contracts/grammar-contracts.d.ts +3 -3
  105. package/dist/sdk/cli-contracts/grammar-contracts.js +24 -17
  106. package/dist/sdk/cli-contracts/runtime-contracts.js +13 -11
  107. package/dist/sdk/cli-contracts/tool-parameter-tables.js +15 -2
  108. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  109. package/dist/sdk/cli-contracts/tool-schema.js +32 -16
  110. package/dist/sdk/cli-contracts.d.ts +1 -1
  111. package/dist/sdk/cli-contracts.js +3 -3
  112. package/dist/sdk/cli-program.js +3 -2
  113. package/dist/sdk/comments.d.ts +4 -0
  114. package/dist/sdk/comments.js +2 -2
  115. package/dist/sdk/completion.js +47 -16
  116. package/dist/sdk/contracts.d.ts +1 -0
  117. package/dist/sdk/contracts.js +3 -2
  118. package/dist/sdk/extension/install-sources.d.ts +13 -0
  119. package/dist/sdk/extension/install-sources.js +62 -30
  120. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +26 -2
  121. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +38 -14
  122. package/dist/sdk/governance/upgrade.d.ts +2 -0
  123. package/dist/sdk/governance/upgrade.js +30 -8
  124. package/dist/sdk/governance/validate.js +8 -6
  125. package/dist/sdk/guide-topics.js +6 -6
  126. package/dist/sdk/index.d.ts +5 -2
  127. package/dist/sdk/index.js +6 -3
  128. package/dist/sdk/learnings.d.ts +4 -0
  129. package/dist/sdk/learnings.js +7 -4
  130. package/dist/sdk/lifecycle/close.js +4 -3
  131. package/dist/sdk/mcp/apps.d.ts +70 -0
  132. package/dist/sdk/mcp/apps.js +154 -0
  133. package/dist/sdk/mcp/skills.d.ts +127 -0
  134. package/dist/sdk/mcp/skills.js +390 -0
  135. package/dist/sdk/notes.d.ts +4 -0
  136. package/dist/sdk/notes.js +2 -2
  137. package/dist/sdk/read-output-contracts.js +16 -3
  138. package/dist/sdk/runtime-action-aliases.js +7 -3
  139. package/dist/sdk/runtime-input.js +15 -4
  140. package/dist/sdk/runtime-primitives.d.ts +1 -1
  141. package/dist/sdk/runtime-primitives.js +3 -3
  142. package/dist/sdk/runtime.d.ts +6 -6
  143. package/dist/sdk/runtime.js +8 -8
  144. package/docs/CLI_GRAMMAR.md +7 -1
  145. package/docs/COMMANDS.md +5 -4
  146. package/docs/EXTENSIONS.md +33 -32
  147. package/docs/MCP_2026_07_28.md +24 -2
  148. package/docs/MCP_2026_07_28_CONFORMANCE.md +4 -4
  149. package/docs/MCP_SKILLS_AND_APPS.md +107 -0
  150. package/docs/OUTPUT_TOKEN_ACCOUNTING.md +20 -7
  151. package/docs/QUICKSTART.md +15 -15
  152. package/docs/README.md +1 -0
  153. package/docs/RELEASING.md +20 -4
  154. package/docs/SDK.md +12 -0
  155. package/docs/SDK_CONTEXT_INTEGRITY.md +18 -1
  156. package/docs/SDK_EVIDENCE_TRACEABILITY.md +9 -1
  157. package/docs/SDK_RUNTIME_BOUNDARIES.md +10 -0
  158. package/docs/TESTING.md +6 -2
  159. package/docs/agent-task-token-baseline.json +97 -11
  160. package/docs/agent-task-transcripts.json +211 -0
  161. package/docs/generated/AGENT_CAPABILITY_ROUTING.md +1 -1
  162. package/docs/generated/FLAG_LEXICON_BUDGETS.md +3 -3
  163. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +11 -7
  164. package/docs/performance/cli-transport-overhead.md +10 -2
  165. package/marketplace.json +2 -2
  166. package/package.json +10 -8
  167. package/packages/pm-beads/README.md +12 -6
  168. package/packages/pm-beads/docs/MIGRATION.md +53 -0
  169. package/packages/pm-beads/extensions/beads/index.ts +8 -0
  170. package/packages/pm-beads/extensions/beads/runtime.ts +671 -112
  171. package/packages/pm-beads/package.json +1 -1
  172. package/packages/pm-calendar/package.json +1 -1
  173. package/packages/pm-command-kit/package.json +1 -1
  174. package/packages/pm-digital-twin/package.json +1 -1
  175. package/packages/pm-governance-audit/package.json +1 -1
  176. package/packages/pm-guide-shell/package.json +1 -1
  177. package/packages/pm-kanban/package.json +1 -1
  178. package/packages/pm-lifecycle-hooks/package.json +1 -1
  179. package/packages/pm-linked-test-adapters/package.json +1 -1
  180. package/packages/pm-search-advanced/package.json +1 -1
  181. package/packages/pm-templates/package.json +1 -1
  182. package/packages/pm-todos/package.json +1 -1
  183. package/packages/pm-vcs/package.json +1 -1
  184. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  185. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  186. package/sdk/public-surface.json +430 -36
  187. package/dist/cli-bundle/chunks/chunk-ES25LX3D.js +0 -202
  188. package/dist/cli-bundle/chunks/chunk-FRDWWB6R.js +0 -3
  189. package/dist/cli-bundle/chunks/chunk-ICQ3RVIY.js +0 -2
  190. package/dist/cli-bundle/chunks/chunk-IV64RJVE.js +0 -13
  191. package/dist/cli-bundle/chunks/chunk-MVYLQ67M.js +0 -3
  192. package/dist/cli-bundle/chunks/register-setup-GLZAHLVI.js +0 -2
  193. package/dist/cli-bundle/focused-chunks/chunk-4XNH2HM7.js +0 -2
  194. package/dist/cli-bundle/focused-chunks/chunk-7I23XGWO.js +0 -2
  195. package/dist/cli-bundle/focused-chunks/chunk-7YCDTCBC.js +0 -2
  196. package/dist/cli-bundle/focused-chunks/chunk-LMKG3DFE.js +0 -5
@@ -1,62 +1,62 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "generation": "f514f9f89a228cdd8554773f11088576660349d1b5aaf914d139902c357d3d78",
3
+ "generation": "92a75ccbfef07d4a7002224ccab038d4593ee6aab109ac007063c5c4a50d1b27",
4
4
  "files": [
5
5
  {
6
- "path": "chunks/chunk-E2GCFJSU.js",
7
- "sha256": "19271e6692f36664ea7190218fbeeeb77b1501f2c46f91cb78ead83b222286ec"
6
+ "path": "chunks/chunk-BY2FQ2NI.js",
7
+ "sha256": "1771f939f1ad8ec1b4040612f983311661696a23c11ac411e603ee48227199ba"
8
8
  },
9
9
  {
10
- "path": "chunks/chunk-E2GCFJSU.js.map",
11
- "sha256": "1b69217fbbdc67ccb755f71e34d2afbb11437f90113c7ed6f6df481c9a6fc466"
10
+ "path": "chunks/chunk-BY2FQ2NI.js.map",
11
+ "sha256": "1eadc292dbb57e9a40378c3341ac7b60a20a0ae3ea82b7190aef9280e5aa22e7"
12
12
  },
13
13
  {
14
- "path": "chunks/chunk-ES25LX3D.js",
15
- "sha256": "629ae21e1a80a7f5b3a30a8e798648b391fc0c3c66ffcabc78f1a719eaa40f0e"
14
+ "path": "chunks/chunk-E73FDIWT.js",
15
+ "sha256": "04872e279a24188968186db55e976e7832c0a223f538a3b8ed9b487c8c33cfc3"
16
16
  },
17
17
  {
18
- "path": "chunks/chunk-ES25LX3D.js.map",
19
- "sha256": "9ed820de1556df0557e3ccf075f625dae673077118b02a65096b88ac29a4a615"
18
+ "path": "chunks/chunk-E73FDIWT.js.map",
19
+ "sha256": "3798372c7c76968d63a5cb0c1c019c8f37f359f88edfc30424b48b67e82810c1"
20
20
  },
21
21
  {
22
- "path": "chunks/chunk-FRDWWB6R.js",
23
- "sha256": "f5710ba1f6f02efdb0e426f94bb3c3583a8f15b0fb2093549e2f054eab6d46c8"
22
+ "path": "chunks/chunk-FEVBFFCQ.js",
23
+ "sha256": "2565bd317b057ed27c314a4cd71cae05c163028f8fc3180502701505582b5284"
24
24
  },
25
25
  {
26
- "path": "chunks/chunk-FRDWWB6R.js.map",
27
- "sha256": "6b39786f2e4e040d1c6d2ef3919cd3766f7b36bfd9b16114707140ea8cabf144"
26
+ "path": "chunks/chunk-FEVBFFCQ.js.map",
27
+ "sha256": "6b489551e2cbb313da42230a4a8635560237dd0d6516d202e786c3ef480f9482"
28
28
  },
29
29
  {
30
- "path": "chunks/chunk-ICQ3RVIY.js",
31
- "sha256": "e7d86918feaf38b1e61ed7bd13e046dfbcbbb8a105ac377b24a7028efa370c5e"
30
+ "path": "chunks/chunk-M7OXRQE3.js",
31
+ "sha256": "7cee1b5a46de5d5498b704eb827cf09e8415fbfca0654308fa3be39dd2e806e3"
32
32
  },
33
33
  {
34
- "path": "chunks/chunk-ICQ3RVIY.js.map",
35
- "sha256": "13807cdc6b57e401bff58301fbde8f908fdb02b700aed72738ed43f889fe6b2c"
34
+ "path": "chunks/chunk-M7OXRQE3.js.map",
35
+ "sha256": "3eab8912319d7f10ce7a2c07c06a8b91b4f2bdf42a8fc1e1325a2f6567e184cf"
36
36
  },
37
37
  {
38
- "path": "chunks/chunk-IV64RJVE.js",
39
- "sha256": "37aaa96b9fbb9e315df7348324a74250ab3f8d0a5a328517d1b127ee8c3b341e"
38
+ "path": "chunks/chunk-NBCBFVZI.js",
39
+ "sha256": "742e489557b27871addaa8c0e464620531d50b7bef017ac9f8b9f35455197394"
40
40
  },
41
41
  {
42
- "path": "chunks/chunk-IV64RJVE.js.map",
43
- "sha256": "7ff20aebd46a226a306a3c293f77c5fd432b5caa58f4e04a6d3ee1560eae341e"
42
+ "path": "chunks/chunk-NBCBFVZI.js.map",
43
+ "sha256": "efdedb54dc36a8378003373c177a5ca3a298629e603f571d873c256a784028f2"
44
44
  },
45
45
  {
46
- "path": "chunks/chunk-KBFP3E4E.js",
47
- "sha256": "371a82fe516fcd7cbf04c9e323fb318010c190669f3a7a7e7b50ec2584e6dc08"
46
+ "path": "chunks/chunk-NTXZHRKA.js",
47
+ "sha256": "cc62b45fae2335872f6ed6b2b08a7ad5a4a5b45dcf4cc3e0a9703ab4ebf4f1dc"
48
48
  },
49
49
  {
50
- "path": "chunks/chunk-KBFP3E4E.js.map",
51
- "sha256": "3fb315b208fcabbdf335d004177cd4fd1583c6f66eaa227ab6b5abda942bf60a"
50
+ "path": "chunks/chunk-NTXZHRKA.js.map",
51
+ "sha256": "15b1b526104c6b58c10c06689de1d781090a5f469ed6a3b167bb30ce21a78a28"
52
52
  },
53
53
  {
54
- "path": "chunks/chunk-MVYLQ67M.js",
55
- "sha256": "835f143c9ce8cf93d0bf7ebf901f9c4a6b6469b93212200cf3285d09b3628474"
54
+ "path": "chunks/chunk-QE6WQXFO.js",
55
+ "sha256": "1eee04faad3b7b7362c7950918cc4aebf6bde79f53b056b7a9ffb737ebb8bfe7"
56
56
  },
57
57
  {
58
- "path": "chunks/chunk-MVYLQ67M.js.map",
59
- "sha256": "977939be9cc05d7d69071c94df19c38f20c87c31b08cd3b0f8dc86f5a8f89571"
58
+ "path": "chunks/chunk-QE6WQXFO.js.map",
59
+ "sha256": "431c95eff5c1443aac3e2e17b775a56a1ce49e150ed1b312f5f743cb551c8ca1"
60
60
  },
61
61
  {
62
62
  "path": "chunks/chunk-QWRRFYK3.js",
@@ -67,232 +67,232 @@
67
67
  "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
68
68
  },
69
69
  {
70
- "path": "chunks/chunk-S4U76VZF.js",
71
- "sha256": "7abfc47a5c783c5064d1189efb8a5752761c5aef27af851011bfc33808d3214a"
70
+ "path": "chunks/chunk-TIQ6AMH2.js",
71
+ "sha256": "177cbc1cb694309fdc918fac3e72f6a9fd1cf45f189334d6df0dd92c3d689d22"
72
72
  },
73
73
  {
74
- "path": "chunks/chunk-S4U76VZF.js.map",
75
- "sha256": "efdedb54dc36a8378003373c177a5ca3a298629e603f571d873c256a784028f2"
74
+ "path": "chunks/chunk-TIQ6AMH2.js.map",
75
+ "sha256": "8bf35208519c4491eb0d4b7ecb226a936e5d9ec70035b00bb833eb758450e7b8"
76
76
  },
77
77
  {
78
- "path": "chunks/chunk-UKBCRPA2.js",
79
- "sha256": "84d3fc5b658a4ffb9ce06f10894623814de46ecc4bd62f73080e1474f5e7e822"
78
+ "path": "chunks/chunk-WYRZZ5ZE.js",
79
+ "sha256": "a00f19d4bfaade1b7200fd065e2fed0325a71224712aaa4655286e454df47be5"
80
80
  },
81
81
  {
82
- "path": "chunks/chunk-UKBCRPA2.js.map",
83
- "sha256": "1eadc292dbb57e9a40378c3341ac7b60a20a0ae3ea82b7190aef9280e5aa22e7"
82
+ "path": "chunks/chunk-WYRZZ5ZE.js.map",
83
+ "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
84
84
  },
85
85
  {
86
- "path": "chunks/chunk-WRHJ3MB6.js",
87
- "sha256": "ed56ce1543dfebf7c39defcfc84cbb1d834cc0def7f55a41bca95b475ba318e7"
86
+ "path": "chunks/chunk-X2RROGZE.js",
87
+ "sha256": "00bab18bbc5c6270f0c695075ee382d069608ac2befeb0f3491e61eae36f25d5"
88
88
  },
89
89
  {
90
- "path": "chunks/chunk-WRHJ3MB6.js.map",
91
- "sha256": "6b489551e2cbb313da42230a4a8635560237dd0d6516d202e786c3ef480f9482"
90
+ "path": "chunks/chunk-X2RROGZE.js.map",
91
+ "sha256": "33fb162aa765f304742e582a7c9897bb524f1d1cad1418131496cb8002457f71"
92
92
  },
93
93
  {
94
- "path": "chunks/chunk-WYRZZ5ZE.js",
95
- "sha256": "a00f19d4bfaade1b7200fd065e2fed0325a71224712aaa4655286e454df47be5"
94
+ "path": "chunks/chunk-XRVVYRRO.js",
95
+ "sha256": "89cd2ac7765684aaa410932ca790e010e574c1a694fa674b5e2d2b60c6d8bac5"
96
96
  },
97
97
  {
98
- "path": "chunks/chunk-WYRZZ5ZE.js.map",
99
- "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
98
+ "path": "chunks/chunk-XRVVYRRO.js.map",
99
+ "sha256": "07a19e200948737cbad56d8028ee33966464e675e6f7ec127e658f6aa8c14397"
100
100
  },
101
101
  {
102
- "path": "chunks/chunk-ZNRLJ54C.js",
103
- "sha256": "1c1d19c62f46121fe9b2e8609b790a3f455d70a2d27646298e5bded8984d4cf6"
102
+ "path": "chunks/chunk-XWEQGHHG.js",
103
+ "sha256": "2e24e84305bc583157ebfee74334ab2865302b7b82ecc633a1f0e28a8be11303"
104
104
  },
105
105
  {
106
- "path": "chunks/chunk-ZNRLJ54C.js.map",
107
- "sha256": "94cb14dce4b2ca376297ee5b95c3d60a5f9d89cb56670a91a33eb05b74395af4"
106
+ "path": "chunks/chunk-XWEQGHHG.js.map",
107
+ "sha256": "94ce75b0493ea43bceb631a4e2cf1acf4b1eaa2b095e679f68217235f2a9f6e7"
108
108
  },
109
109
  {
110
- "path": "chunks/register-list-query-EMCPMICY.js",
111
- "sha256": "80c1de34322a4689894dd7adfe12bde2e9e90bced56fd6b1254c0838d1c624a6"
110
+ "path": "chunks/register-list-query-J35ZPQQ5.js",
111
+ "sha256": "ebd9e2df6348b57d1556dc157d51627f9ab1ae42191dff10f591b888e7e5874a"
112
112
  },
113
113
  {
114
- "path": "chunks/register-list-query-EMCPMICY.js.map",
114
+ "path": "chunks/register-list-query-J35ZPQQ5.js.map",
115
115
  "sha256": "1763bf81f06fd6f1fd563fb7e97defe79b57096a3800fe80cae6ce50cf7dd7b7"
116
116
  },
117
117
  {
118
- "path": "chunks/register-mutation-OJ67ABCB.js",
119
- "sha256": "d66ba212a000fc8b07326e0f97ce5c641d7447b5042e5d1842f0c28aa0b84614"
118
+ "path": "chunks/register-mutation-J6XJJOGU.js",
119
+ "sha256": "6002e8811c0a0611bed020a9088109e65480aa6ccdfae77e8b6b07879ce75b74"
120
120
  },
121
121
  {
122
- "path": "chunks/register-mutation-OJ67ABCB.js.map",
123
- "sha256": "0316db01e7a22fbfacdf675bd384706e3ae250fac0274560c558dab33067b1ce"
122
+ "path": "chunks/register-mutation-J6XJJOGU.js.map",
123
+ "sha256": "99fcb934b17a3dd59e4742fb9a23ebc5ba3ca8743fbd1f34cb4973cc54e4bc34"
124
124
  },
125
125
  {
126
- "path": "chunks/register-operations-H2GLP7LT.js",
127
- "sha256": "26f74bbb57395781502fef63307a8ae0e5628035d1d0406314df722b314a9611"
126
+ "path": "chunks/register-operations-AE3JEMFT.js",
127
+ "sha256": "58c7b2d58ad7ea8454ac8998a7122a59f3b2a5f20f02e25f73b19470083d716d"
128
128
  },
129
129
  {
130
- "path": "chunks/register-operations-H2GLP7LT.js.map",
130
+ "path": "chunks/register-operations-AE3JEMFT.js.map",
131
131
  "sha256": "5574e49525fae8e7f3f88ec95a23b75d72eb1d0f8a73bf884a5d5b5da903f1b2"
132
132
  },
133
133
  {
134
- "path": "chunks/register-setup-GLZAHLVI.js",
135
- "sha256": "75793d72930b540263035701cead555ae94b647e84912968b968f170c8cc58a1"
134
+ "path": "chunks/register-setup-OQERLLWE.js",
135
+ "sha256": "76cb7f64c384c3524dfb19c3d04a9d14ea9cabaf214b947b7a242d7faf394235"
136
136
  },
137
137
  {
138
- "path": "chunks/register-setup-GLZAHLVI.js.map",
139
- "sha256": "59266cd5c17537236220e72d352e09bbaab78813fa1307985461bac7ba45786c"
138
+ "path": "chunks/register-setup-OQERLLWE.js.map",
139
+ "sha256": "64f7feebb6b4c267565f841fe072db90dbed8098ded6ad62cc57249467603edc"
140
140
  },
141
141
  {
142
- "path": "focused-chunks/chunk-4K2II4TV.js",
143
- "sha256": "803002f6dfe945afd6366800f224e1ba3ac6682be0f6595922d8b18ff033af49"
142
+ "path": "focused-chunks/chunk-4ZDRZYYJ.js",
143
+ "sha256": "57810a692bd8e26e8d73fd098c3d84d6716de4b0c3f54a2c3b7942e44e97e6ce"
144
144
  },
145
145
  {
146
- "path": "focused-chunks/chunk-4K2II4TV.js.map",
147
- "sha256": "643a7497e370f1ecf14a0d50d00d2578e3c5bee0774d470452a664c4067cb324"
146
+ "path": "focused-chunks/chunk-4ZDRZYYJ.js.map",
147
+ "sha256": "45e945868e7e2115caa54df41ec14417afb8fe481688b54b8e859fcb0a986d2c"
148
148
  },
149
149
  {
150
- "path": "focused-chunks/chunk-4XNH2HM7.js",
151
- "sha256": "dc3b13beab4eb92ba3e7db56f7d15a55c06cabc2538ca6d8f9ad305ed800b6bc"
150
+ "path": "focused-chunks/chunk-6GCRSLPG.js",
151
+ "sha256": "26fa5e26c6afac27166e35fa7b309d774e8539a5f9fe592a3460d3f4930dc397"
152
152
  },
153
153
  {
154
- "path": "focused-chunks/chunk-4XNH2HM7.js.map",
155
- "sha256": "e423689caa850845961e05f3acc9ecdc0b1e09f0f0cf070438eb583693dcc3c2"
154
+ "path": "focused-chunks/chunk-6GCRSLPG.js.map",
155
+ "sha256": "03706b2bf1fc80f2d638abdeed44ef5125e3d08ba91f7006ff660ce4bde6c4ab"
156
156
  },
157
157
  {
158
- "path": "focused-chunks/chunk-57XY346D.js",
159
- "sha256": "3c4d3c634043d9d1bb1abdafc0d4bc8bde87dddd0104f3d8fcb70248e62526f4"
158
+ "path": "focused-chunks/chunk-AD6ULRAF.js",
159
+ "sha256": "d5936638730d7005c89d51db5c798ea342a559a8d319453cd68ccce122bc8847"
160
160
  },
161
161
  {
162
- "path": "focused-chunks/chunk-57XY346D.js.map",
163
- "sha256": "2663f91c41bd8c18927228e1e4d173968cf4d0fc75a328504525a338cf7d48fd"
162
+ "path": "focused-chunks/chunk-AD6ULRAF.js.map",
163
+ "sha256": "b1fb267929cb08aebb5478ea9be8579f9cfefea5040a4fef72a11d29f8d26214"
164
164
  },
165
165
  {
166
- "path": "focused-chunks/chunk-66VGB23P.js",
167
- "sha256": "85951495b2835bae298d725b09f37afeec70d196cc15604c9a26ae5da1b4f3a4"
166
+ "path": "focused-chunks/chunk-AHAM2HAU.js",
167
+ "sha256": "d6e3255991ec22e49f3911d37074224c560bd11cacfbcafac6f84260f4f33b22"
168
168
  },
169
169
  {
170
- "path": "focused-chunks/chunk-66VGB23P.js.map",
171
- "sha256": "95b33284b3e258da9087d239a8d5b3d442628cbd1b9688bc26ba378f6992eb71"
170
+ "path": "focused-chunks/chunk-AHAM2HAU.js.map",
171
+ "sha256": "c87ca6920a4b2b1e00d44253d62398cfa135ac4b6fab6943b5b8c61e642ddb14"
172
172
  },
173
173
  {
174
- "path": "focused-chunks/chunk-72T6JGAE.js",
175
- "sha256": "98a71f695966d0d9dbe8ad662980814a03cfd142ea433044d43add7fbc3d0fbc"
174
+ "path": "focused-chunks/chunk-FC2AXLB5.js",
175
+ "sha256": "e345d68dc13e7e4aa0f03650b905b52ac42a0911991d364f28a8c54f01638547"
176
176
  },
177
177
  {
178
- "path": "focused-chunks/chunk-72T6JGAE.js.map",
179
- "sha256": "df3eead73f1c2139b05bbd568425911465615bafebbf65bc094d8bf3ab92b0f7"
178
+ "path": "focused-chunks/chunk-FC2AXLB5.js.map",
179
+ "sha256": "888e40d159a9a660cd51d165aab75ec881ee74303e434c7bc10318e44b5a17e5"
180
180
  },
181
181
  {
182
- "path": "focused-chunks/chunk-7I23XGWO.js",
183
- "sha256": "c8c0a645bb4d6957f1f6be48da0c78442d441a0dd952d6804400312518b78554"
182
+ "path": "focused-chunks/chunk-HC7ODMH3.js",
183
+ "sha256": "906bab0819f3f6a44fe5361dc2fc6fb25a5fc500714f4ef1c2c00dafb8358b49"
184
184
  },
185
185
  {
186
- "path": "focused-chunks/chunk-7I23XGWO.js.map",
187
- "sha256": "ceacb85247c02b2211fd3f16e183e54539cbbf24ddfd0dfd96278a6ec85d7346"
186
+ "path": "focused-chunks/chunk-HC7ODMH3.js.map",
187
+ "sha256": "eb193a61130f02bb5065ff30440c7221e6bfaab03f0bb019ac2770b13f33829e"
188
188
  },
189
189
  {
190
- "path": "focused-chunks/chunk-7YCDTCBC.js",
191
- "sha256": "cf0f085b8d071f2b9e24c36d1ce598cc416b57d1e063f947f935510c5919f0db"
190
+ "path": "focused-chunks/chunk-HVQ22RC4.js",
191
+ "sha256": "5ca261cbc286ac975678eef6e93c7c3583d305630130cc32fa47e697a38ee915"
192
192
  },
193
193
  {
194
- "path": "focused-chunks/chunk-7YCDTCBC.js.map",
195
- "sha256": "a8949832b8d4a62fa42736989bd6f4943eac284a2c683c35c991cac0b24b192d"
194
+ "path": "focused-chunks/chunk-HVQ22RC4.js.map",
195
+ "sha256": "643a7497e370f1ecf14a0d50d00d2578e3c5bee0774d470452a664c4067cb324"
196
196
  },
197
197
  {
198
- "path": "focused-chunks/chunk-A644DUFQ.js",
199
- "sha256": "67bacbf26e82624f2e6e8fe2224e11b9b74d26a76ee8f5b379d9e73507c5b852"
198
+ "path": "focused-chunks/chunk-JZYPPMXF.js",
199
+ "sha256": "7fe08d529e4e9b62ae211e2a6418cc7106fafd7733a5fbc10cfefe736e489d1b"
200
200
  },
201
201
  {
202
- "path": "focused-chunks/chunk-A644DUFQ.js.map",
203
- "sha256": "c9bc7a7b188e69ddafdd4df4b4ed9a26668b4bf08a840fd543ad5aff1b2cb060"
202
+ "path": "focused-chunks/chunk-JZYPPMXF.js.map",
203
+ "sha256": "023bc9e4a92206739309a7ec3ab55300730e3e2712b2e87a90eb80b9f3790a40"
204
204
  },
205
205
  {
206
- "path": "focused-chunks/chunk-FXDLT6FL.js",
207
- "sha256": "c5240423c91f1e5ec9e76e91f56014ed2e8fafc2797f91fa3987225cde8c01a1"
206
+ "path": "focused-chunks/chunk-LLNTHF5X.js",
207
+ "sha256": "8d7b006be4d150f82d44c076d22f478d5a7042effacceab76f79f267725fb8fb"
208
208
  },
209
209
  {
210
- "path": "focused-chunks/chunk-FXDLT6FL.js.map",
211
- "sha256": "c87ca6920a4b2b1e00d44253d62398cfa135ac4b6fab6943b5b8c61e642ddb14"
210
+ "path": "focused-chunks/chunk-LLNTHF5X.js.map",
211
+ "sha256": "5ab73414fc648d164a3f1786e4bdc0ef31e9c67b3235b2b8cf98c00f07410397"
212
212
  },
213
213
  {
214
- "path": "focused-chunks/chunk-IBHXMFE7.js",
215
- "sha256": "d182f7aef904fc0f775d932281efba2080401414cc3fa563eba976f572e62935"
214
+ "path": "focused-chunks/chunk-LYFWQMVC.js",
215
+ "sha256": "1ce06159c22e12b22cd2e476b2c3134361105f3e5a8a3a638d2174843042862c"
216
216
  },
217
217
  {
218
- "path": "focused-chunks/chunk-IBHXMFE7.js.map",
219
- "sha256": "eb193a61130f02bb5065ff30440c7221e6bfaab03f0bb019ac2770b13f33829e"
218
+ "path": "focused-chunks/chunk-LYFWQMVC.js.map",
219
+ "sha256": "2e9b1560a5c81fdf646bdab7953faa3e18f20980f185826bb17a6b17ca2d8255"
220
220
  },
221
221
  {
222
- "path": "focused-chunks/chunk-LMKG3DFE.js",
223
- "sha256": "ad9daeb55aa10d1c7a1b3842bc14b98c157301f7c27ca6fe876a9e306307ccbc"
222
+ "path": "focused-chunks/chunk-MEASX544.js",
223
+ "sha256": "19ddd868c2c6eac9c911ea1fec4b2aa45e6a7a6567070ef657caca270d121aa7"
224
224
  },
225
225
  {
226
- "path": "focused-chunks/chunk-LMKG3DFE.js.map",
227
- "sha256": "b94ae1d8dd377080721c0323f02f8a73d0465a30300699a1528f0102d61f8965"
226
+ "path": "focused-chunks/chunk-MEASX544.js.map",
227
+ "sha256": "c9bc7a7b188e69ddafdd4df4b4ed9a26668b4bf08a840fd543ad5aff1b2cb060"
228
228
  },
229
229
  {
230
- "path": "focused-chunks/chunk-LV5N3LK5.js",
231
- "sha256": "dc3563e6b53870be92dc7fb25a23520ea32773f0c3c938222355f2f17b9f8138"
230
+ "path": "focused-chunks/chunk-THEPQMLX.js",
231
+ "sha256": "1afd18c520744493b2257699d7fd7150ada39d3b6f0a02f2eb01987d9ac80983"
232
232
  },
233
233
  {
234
- "path": "focused-chunks/chunk-LV5N3LK5.js.map",
235
- "sha256": "888e40d159a9a660cd51d165aab75ec881ee74303e434c7bc10318e44b5a17e5"
234
+ "path": "focused-chunks/chunk-THEPQMLX.js.map",
235
+ "sha256": "4565e934a489924ec28e1c47978c30457a43e55c9cf0edefbee091c1358b2c9e"
236
236
  },
237
237
  {
238
- "path": "focused-chunks/chunk-MMXUPDDJ.js",
239
- "sha256": "a68eea796eaffaa1e6acce5b8f84562c08086cedd7b0c961b30b749fe6043621"
238
+ "path": "focused-chunks/chunk-XDPYBQCF.js",
239
+ "sha256": "7db7e515bef4402161efdb09686786ab4495967a69f5b4e47e24511fa179adda"
240
240
  },
241
241
  {
242
- "path": "focused-chunks/chunk-MMXUPDDJ.js.map",
243
- "sha256": "023bc9e4a92206739309a7ec3ab55300730e3e2712b2e87a90eb80b9f3790a40"
242
+ "path": "focused-chunks/chunk-XDPYBQCF.js.map",
243
+ "sha256": "5d8e8f69f95f3f004afe46ad23b72a78b7c5a60838281334181d2a2ed49648c5"
244
244
  },
245
245
  {
246
- "path": "focused-chunks/chunk-OHIHZ7HS.js",
247
- "sha256": "49ca4c9bcfc09dfc221f662a8f32f65522177e1cb5845e98b33a06663e1cc2ef"
246
+ "path": "focused-chunks/chunk-Y3JJXRVK.js",
247
+ "sha256": "f87792e9372e1f0aef3ef370749f506d48424fdacb47a060890bab1bd84e05a2"
248
248
  },
249
249
  {
250
- "path": "focused-chunks/chunk-OHIHZ7HS.js.map",
251
- "sha256": "03706b2bf1fc80f2d638abdeed44ef5125e3d08ba91f7006ff660ce4bde6c4ab"
250
+ "path": "focused-chunks/chunk-Y3JJXRVK.js.map",
251
+ "sha256": "4067480eb4ca4fae1aecdd9faa13a855fe1757341a658259a2a76430677a9039"
252
252
  },
253
253
  {
254
- "path": "focused-chunks/chunk-P2E6LDAE.js",
255
- "sha256": "8af805c0a3c40eb7c4f3b3b3182b8ff5a67ffa72267e3da79736c28067841012"
254
+ "path": "focused-chunks/chunk-Y5A7SJJ7.js",
255
+ "sha256": "f7366d96e4ed487961c75ef19f5071532e5479821f26a86a07eac89c56af9204"
256
256
  },
257
257
  {
258
- "path": "focused-chunks/chunk-P2E6LDAE.js.map",
259
- "sha256": "e27f74b7fd4822cc8ff4f9f1556f54948c7699ed5dcbd3ce529b8a1f00e2ea0f"
258
+ "path": "focused-chunks/chunk-Y5A7SJJ7.js.map",
259
+ "sha256": "95b33284b3e258da9087d239a8d5b3d442628cbd1b9688bc26ba378f6992eb71"
260
260
  },
261
261
  {
262
- "path": "focused-chunks/chunk-TMJDFHVD.js",
263
- "sha256": "903aee8754ce73d21828be29b13daf7d63f65e999d79b700a99bfda8d9a5433e"
262
+ "path": "focused-chunks/chunk-YJLDHJOD.js",
263
+ "sha256": "8e1471ca540cd4ccd0477203e745a4948e0aed0afa2117cd8faa7c130b47254b"
264
264
  },
265
265
  {
266
- "path": "focused-chunks/chunk-TMJDFHVD.js.map",
267
- "sha256": "4067480eb4ca4fae1aecdd9faa13a855fe1757341a658259a2a76430677a9039"
266
+ "path": "focused-chunks/chunk-YJLDHJOD.js.map",
267
+ "sha256": "97d87126510d9afc491bb4066bac3f994e868f25cb6cf36a43d5071d772a17ac"
268
268
  },
269
269
  {
270
- "path": "focused-chunks/chunk-UYBA57GY.js",
271
- "sha256": "d7f35871e62187ec610f144161908324f2444ab3077a09a8445d2eb47fa102bd"
270
+ "path": "focused-chunks/chunk-YVVZ3LQ6.js",
271
+ "sha256": "0ce1505ccb32212ff2ff8274ae0d2712c772f69124bde9fd345ee47bf112ac20"
272
272
  },
273
273
  {
274
- "path": "focused-chunks/chunk-UYBA57GY.js.map",
275
- "sha256": "b1fb267929cb08aebb5478ea9be8579f9cfefea5040a4fef72a11d29f8d26214"
274
+ "path": "focused-chunks/chunk-YVVZ3LQ6.js.map",
275
+ "sha256": "e27f74b7fd4822cc8ff4f9f1556f54948c7699ed5dcbd3ce529b8a1f00e2ea0f"
276
276
  },
277
277
  {
278
- "path": "focused-chunks/chunk-YO3ZF3FI.js",
279
- "sha256": "63265b253ce8547400c910840defd8d5b7bc66f81e08a0d88a460912bbc86e3f"
278
+ "path": "focused-chunks/chunk-Z2USIBR2.js",
279
+ "sha256": "d76de87f3075f6836b6d063d96b718b11819fdecb3364412481d85e040bda016"
280
280
  },
281
281
  {
282
- "path": "focused-chunks/chunk-YO3ZF3FI.js.map",
283
- "sha256": "4565e934a489924ec28e1c47978c30457a43e55c9cf0edefbee091c1358b2c9e"
282
+ "path": "focused-chunks/chunk-Z2USIBR2.js.map",
283
+ "sha256": "ebd6c3be2ce64cfd7e87c8f28a5a9d34b06be902426bc1257617c264a580bc49"
284
284
  },
285
285
  {
286
286
  "path": "main.js",
287
- "sha256": "3d7be042e4d21a64a33efec3112a4ded6c5f718898778f32a335eda28593ea50"
287
+ "sha256": "96ff5697ca815f8c5385cd136f8c46b15ef9384f4c89b515e4fef9cbf1783d9f"
288
288
  },
289
289
  {
290
290
  "path": "main.js.map",
291
- "sha256": "e72083ba304b903d934c4bf5c2ae7107c2ae60dbf2004af61c99026aa86007dd"
291
+ "sha256": "8524aa9e817a75ce2fd5e570d22481b9afe70fd079061692be79044a4cf25001"
292
292
  },
293
293
  {
294
294
  "path": "sdk-authoring.js",
295
- "sha256": "dba8ea2177341ce11083cf984d5bd7d1b44574ff8382c23b534f5b586ded6101"
295
+ "sha256": "0382502ff8918fc9eff48335575a3ff902717d736898301a99c8f32d8e8ac5df"
296
296
  },
297
297
  {
298
298
  "path": "sdk-authoring.js.map",
@@ -300,23 +300,23 @@
300
300
  },
301
301
  {
302
302
  "path": "sdk-contracts.js",
303
- "sha256": "4eed2fc58dc59b21315439ecea541cb1f2dee782ba46e1250b9dd090f787ee0a"
303
+ "sha256": "1ee54d7649db9e2f1470d6f08a46681c236bf146eb6f837ccf56293fbd0d19d3"
304
304
  },
305
305
  {
306
306
  "path": "sdk-contracts.js.map",
307
- "sha256": "d48f1dbd9af8fba94a146aa7c90fab01a1684ae67d864a4830e260b6cfa98940"
307
+ "sha256": "f37685fbf37b2ba15830db31fe4d3da20c3687f15bf00f87712ed710eab60ac7"
308
308
  },
309
309
  {
310
310
  "path": "sdk-core.js",
311
- "sha256": "682664e7c3923d5bd100f58e49fbb5c8c34bffb8ab3f94631acd52f1e7c57ccd"
311
+ "sha256": "151ccbc4073d4fdd326cc6014ea8f120b7778040df8d97a91387a7593a01fa31"
312
312
  },
313
313
  {
314
314
  "path": "sdk-core.js.map",
315
- "sha256": "9a553a0e72811cb552c5de228696afae14c5cf8787264b1095d65fa7249431d4"
315
+ "sha256": "75b93029fe71fafdd28eb66fbf86f3d101fbf1e67419b4af101f736a91adc21e"
316
316
  },
317
317
  {
318
318
  "path": "sdk-governance.js",
319
- "sha256": "ab4b5a8dcea3e44bfe805ac25d3c9c86bca62377b9bc298ac247bbbfd5f5bb4a"
319
+ "sha256": "1533fadb40bd1421c45346e6ef7955cb0d88671486fe381a2153551557ea6c25"
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": "6ba84a828866ef122f518ff282906857d8657c889d6dacf257614fb7eca353c9"
327
+ "sha256": "7540c4888962990876708613103b598174209e284466c3a9c993b90484052351"
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": "52b1e4c826469294b754e273dca602c27ef4a4765fa58f1e387bcde3d63ad678"
335
+ "sha256": "4954ccdfd2edece60583419b8b22f0a8c2477cbdcaa8647bde5dcaa062b994ce"
336
336
  },
337
337
  {
338
338
  "path": "sdk-merge.js.map",
339
- "sha256": "bd649fc80346383a3b8b1bcbab35acab3d8ae69460a2766403e8f1f9e47f2e3f"
339
+ "sha256": "7a40377bd3fcbf93b6ca865e18b5ec99b2f2fe9d6c69259d3e95039ac3643459"
340
340
  },
341
341
  {
342
342
  "path": "sdk-query.js",
343
- "sha256": "9efdbc0e27208ee8491bac22c439e38a1b112a1da0ce5adf06350f5b46f6cd01"
343
+ "sha256": "006075d3adb30be6b670e6d236089ac842e286a621644779d61eccd448f62b20"
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": "d6caa1d642905cda4db03379e2c8c0e70dddb34de786571529df403c204f1b78"
351
+ "sha256": "7dd14329fc69f0c637a3f2ca89934ce9a07a40ecb0c86151ab34b5cea59d2619"
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": "d84253abc72b6cd66bca13465c4d35d35d15b5a656f19e973863dc6326a82434"
359
+ "sha256": "48b2680cf11e708e84158f79750574063fbede8dc1b6e1f4b86775da8008ea15"
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": "23a0e84e8b84015c566f6470172335d119f0a3756739ceed42937c17d94099f5"
367
+ "sha256": "c50c0a3ae896e5c994a9722cd7391d9242489e58d501433bb6d80d59251549dd"
368
368
  },
369
369
  {
370
370
  "path": "sdk.js.map",
371
- "sha256": "235cdb9de3d6cf894e7cdab04ffdb044dfd6141d843ec37dbd63a1f227cd505c"
371
+ "sha256": "09bfd3560914266e2da6ac603739d72168bce3cffe881d3d6b06bc6b4b67db0d"
372
372
  }
373
373
  ]
374
374
  }
@@ -1,2 +1,2 @@
1
- import{$b as F,_b as L,bc as b,ec as J,fb as B,gc as W,hc as Y}from"./chunk-KBFP3E4E.js";import{b as K}from"./chunk-ZNRLJ54C.js";import{Bl as z,C as c,E as d,Pb as N,Wj as j,Zj as P,ba as $,gd as C,id as U,r as k,rh as v,th as G,vl as x,ye as D}from"./chunk-ES25LX3D.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]="687855bf-7432-5691-a809-1f0406b5d8a8")}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]="3f348972-0c8f-52da-abeb-46690df967d8")}catch{}})();var R=["op","id","reason","options"],q=[...R,"ref"],V=["schema_version","mutations"],ne="[a-z][a-z0-9._-]{0,63}",H=new RegExp(`^${ne}$`,"u"),re=new RegExp(`(^|,)id=@(${ne})(?=,|$)`,"gu"),X=e=>e.slice(2).replaceAll(/-([a-z])/gu,(t,n)=>n.toUpperCase()),E=["item","linked","schedule","claim_state","children","omission_receipt","row_contract","context_intent"],oe=new Set(["created_at","updated_at","closed_at","version","format_version","path","author","collection_counts","notes_count","tests_count"]),de=new Set([...oe,"completed_at","id"]),_=new Set(["id","title","description","type","status","priority","tags","body","deadline","estimated_minutes","acceptance_criteria","definition_of_ready","order","rank","assignee",...k,"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:j.map(e=>e.target),update:P.map(e=>e.target),close:x.map(e=>X(e.flag)).filter(e=>e!=="reason"),release:z.map(e=>X(e.flag))};function wt(e){let t={},n=e.createCompensation;if(n!==void 0){if(n!=="close"&&n!=="delete")throw new d("createCompensation must be close or delete.",c.USAGE);t.createCompensation=n}for(let r of["lockTtlSeconds","lockWaitMs"]){let o=e[r];if(o===void 0)continue;let i=typeof o=="number"||typeof o=="string"&&o.trim().length>0?Number(o):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 n=Math.max(1,Math.min(3,Math.floor(e.length/4)+1)),r;for(let o of t){let i=$(e,o,n);i!==null&&(r===void 0||i<r.distance)&&(r={key:o,distance:i})}return r?.key}function y(e,t,n){let r=g(t,n);return new d(r===void 0?`${e} does not recognize key "${t}". Allowed keys: ${n.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(n){let r=n instanceof Error?n.message:String(n);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 n of Object.keys(e))if(!R.includes(n))throw y(`mutation ${t+1}`,n,R);return e}function pe(e,t,n){if(e!==void 0){if(!p(e))throw new d(`Mutation ${n+1} options must be an object.`,c.USAGE);for(let r of Object.keys(e))if(!Z[t].includes(r))throw y(`mutation ${n+1} ${t} options`,r,Z[t]);return e}}function fe(e,t){let n=ue(e,t),{op:r,id:o,reason:i}=n;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(n.options,r,t);if(typeof o!="string"||o.trim().length===0)throw new d(`Mutation ${t+1} requires a non-empty id.`,c.USAGE);let a=o.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"),n=Array.isArray(t)?t:p(t)&&Array.isArray(t.mutations)?t.mutations:void 0;if(n===void 0||n.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 n.map((r,o)=>{let i=fe(r,o);return i.options!==void 0&&C(i.options),i})}function le(e,t,n){let r=ce.createHash("sha256").update(e).update("\0").update(t).digest("hex"),o=BigInt(`0x${r.slice(0,16)}`).toString(36).padStart(13,"0").slice(-12);return`${v(n)}${o}`}function Q(e,t){if(typeof e!="string"||!e.startsWith("@"))return e;let n=e.slice(1),r=t[n];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 n=e.replace(re,(r,o,i)=>{let s=t[i];if(s===void 0)throw new d(`Unknown mutation reference "@${i}".`,c.USAGE);return`${o}id=${s}`});if(/(^|,)id=@/u.test(n))throw new d(`Malformed mutation reference in dependency "${e}".`,c.USAGE);return n}function me(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(me))}let n=new Set,r=new Set,o=i=>{if(n.has(i))throw new d(`Mutation reference cycle includes "@${i}".`,c.USAGE);if(!r.has(i)){n.add(i);for(let s of t.get(i))t.has(s)&&o(s);n.delete(i),r.add(i)}};for(let i of t.keys())o(i)}function he(e){let t=I(e,"Mutation document"),n=Array.isArray(t)?{schema_version:1,mutations:t}:t;if(!p(n))throw new d("Mutation document must be a JSON array or object.",c.USAGE);for(let r of Object.keys(n))if(!V.includes(r))throw y("mutation document",r,V);if(n.schema_version!==void 0&&n.schema_version!==1)throw new d("Mutation document schema_version must be 1.",c.USAGE);if(!Array.isArray(n.mutations)||n.mutations.length===0)throw new d("Mutation document requires a non-empty mutations array.",c.USAGE);return n.mutations.map((r,o)=>{if(!p(r))throw new d(`Mutation ${o+1} must be an object.`,c.USAGE);for(let i of Object.keys(r))if(!q.includes(i))throw y(`mutation ${o+1}`,i,q);return{...r}})}function we(e,t){let n=Object.create(null);for(let[r,o]of e.entries())if(o.ref!==void 0){if(o.op!=="create")throw new d(`Mutation ${r+1} ref is only valid for create operations.`,c.USAGE);if(typeof o.ref!="string"||!H.test(o.ref))throw new d(`Mutation ${r+1} ref must match ${H.source}.`,c.USAGE);if(n[o.ref]!==void 0)throw new d(`Duplicate mutation ref "${o.ref}".`,c.USAGE);n[o.ref]=typeof o.id=="string"&&o.id.trim().length>0?G(o.id,t.idPrefix):le(t.transactionId,o.ref,t.idPrefix)}return n}function _t(e,t){let n=he(e),r=we(n,t);ye(n);let o=n.map(a=>{let u={...a},m=typeof u.ref=="string"?u.ref:void 0;if(delete u.ref,m!==void 0?u.id=r[m]:u.id=Q(u.id,r),p(u.options)){let f={...u.options};for(let w of["parent","blockedBy"])f[w]!==void 0&&(f[w]=Q(f[w],r));Array.isArray(f.dep)?f.dep=f.dep.map(w=>ee(w,r)):f.dep!==void 0&&(f.dep=ee(f.dep,r)),u.options=f}return u}),i=ie(JSON.stringify(o)),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(n=>e[n]!==void 0&&e[n]!==null).map(n=>{let r=String(e[n]);return`${n}=${/[",\n\r\\]/u.test(r)?JSON.stringify(r):r}`}).join(",")}function _e(e,t,n){if(e!==void 0){if(!Array.isArray(e)||!e.every(p))throw new d(`${n} 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(n=>typeof n=="string")?JSON.stringify(t):typeof t=="number"||typeof t=="boolean"?String(t):t}function te(e,t,n=!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[o,i,s]of r){let a=t[o],u=_e(n&&["comments","notes","learnings"].includes(o)&&Array.isArray(a)?a.filter(m=>!p(m)||m.created_at===void 0):a,s,o);u!==void 0&&u.length>0&&(e[i]=u)}}function ge(e,t){for(let n of Object.keys(e)){if(t){if(!E.includes(n))throw y("item envelope",n,E);continue}if(!_.has(n)&&g(n,[..._])===void 0&&g(n,E)==="item")throw y("item envelope",n,E)}}function Te(e){let t=Object.hasOwn(e,"item");ge(e,t);let n=t?e.item:e;if(!p(n))throw new d("Item document item must be an object.",c.USAGE);return{item:n,...t&&p(e.linked)?{linked:e.linked}:{}}}function Ae(e,t,n,r){if(!(r==="update"?de:oe).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 n=="string"?n:JSON.stringify(n)},["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,n))}}function Et(e,t,n={}){let r=I(e,"Item document");if(!p(r))throw new d("Item document must be a JSON object.",c.USAGE);let{item:o,linked:i}=Te(r),s={};for(let[a,u]of Object.entries(o))Ae(s,a,u,t);return te(s,o,t==="update"),i!==void 0&&te(s,i),{...s,...Object.fromEntries(Object.entries(n).filter(([,a])=>a!==void 0)),stdinJson:void 0}}function gt(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]="ea10685a-3187-533c-9699-73c23d377705")}catch{}})();function T(e,t){let n={...e,...t};return e===void 0?n:U(e,n)}async function l(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(n){if(n instanceof d&&n.exitCode===c.NOT_FOUND)return;throw n}}function M(e,t){let n=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_"),r=Se.createHash("sha256").update(N(e)).digest("hex").slice(0,12);return`${t+1}-${e.op}-${n}-${r}`}function Re(e,t){let n=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_");return`${t+1}-${e.op}-${n}`}function h(e,t,n){return`bulk-item-transaction ${e} ${t} ${n}`}async function A(e,t,n,r){let o=await D(be.join(e,"history",`${t}.jsonl`),t),i=h(n,r,"apply"),s=h(n,r,"compensate");for(let a=o.length-1;a>=0;a-=1){let u=o[a].message;if(u===i)return!0;if(u===s)return!1}return!1}async function O(e,t){let n=await l(e,t.id);if(n?.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:n.updatedAt}}async function S(e,t,n,r){let o=r!==null&&typeof r=="object"&&!Array.isArray(r)?r.target_updated_at:void 0;typeof o=="string"&&await l(e.pmRoot,t)!==void 0&&await Y(t,o,{force:!0,author:e.author,message:h(e.transactionId,n,"compensate")},{pmRoot:e.pmRoot})}function ae(e,t,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"create"}}},async apply(){let o=(await L(T(t.options,{author:e.author,id:t.id}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"create"}},async compensate(){let r=await l(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,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await A(e.pmRoot,r.id,e.transactionId,n)?{state:"applied",result:{id:r.id,op:"update"}}:{state:"pending"}},async prepareCompensation(){return O(e.pmRoot,t)},async apply(){let o=(await F(t.id,T(t.options,{author:e.author,message:h(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"update"}},async compensate(r){await S(e,t.id,n,r)}}}function Me(e,t,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await A(e.pmRoot,r.id,e.transactionId,n)?{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 O(e.pmRoot,t)},async apply(){let o=(await b(t.id,t.reason,T(t.options,{author:e.author,message:h(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"close"}},async compensate(r){await S(e,t.id,n,r)}}}function Oe(e,t,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await A(e.pmRoot,r.id,e.transactionId,n)?{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 O(e.pmRoot,t)},async apply(){let o=(await J(t.id,T(t.options,{author:e.author,message:h(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"release"}},async compensate(r){await S(e,t.id,n,r)}}}function ke(e,t,n){let r=M(t,n);switch(t.op){case"create":return ae(e,t,r);case"update":return Ie(e,t,r);case"close":return Me(e,t,r);case"release":return Oe(e,t,r)}}function $e(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 Ne(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())$e(a,s);let n=e.createCompensation??"close";if(!["close","delete"].includes(n))throw new TypeError("Bulk item transaction createCompensation must be close or delete");let r={pmRoot:e.pmRoot,author:e.author,transactionId:e.transactionId,createCompensation:n},o=await K({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,steps:t.map((s,a)=>ke(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=M(a,s),m=o.results[u];i[Re(a,s)]=m}return{transactionId:o.transactionId,status:"committed",recovered:o.recovered,results:i}}function Ce(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 Nt(e){return Ne({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,mutations:Ce(e),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}})}var Ct={buildCreateStep:ae,bulkHistoryMarker:h,compensateByRestore:S,deriveStepId:M,isUpdateMarkerApplied:A,readItemSnapshot:l};export{wt as a,ie as b,_t as c,Et as d,gt as e,Ne as f,Ce as g,Nt as h,Ct as i};
2
- //# sourceMappingURL=chunk-UKBCRPA2.js.map
1
+ import{$b as F,_b as L,bc as b,ec as J,fb as B,gc as W,hc as Y}from"./chunk-M7OXRQE3.js";import{b as K}from"./chunk-NTXZHRKA.js";import{C as c,Cl as z,E as d,Pb as N,Xj as j,_j as P,ba as $,gd as C,id as U,r as k,sh as v,uh as G,wl as x,ye as D}from"./chunk-XWEQGHHG.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]="687855bf-7432-5691-a809-1f0406b5d8a8")}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]="3f348972-0c8f-52da-abeb-46690df967d8")}catch{}})();var R=["op","id","reason","options"],q=[...R,"ref"],V=["schema_version","mutations"],ne="[a-z][a-z0-9._-]{0,63}",H=new RegExp(`^${ne}$`,"u"),re=new RegExp(`(^|,)id=@(${ne})(?=,|$)`,"gu"),X=e=>e.slice(2).replaceAll(/-([a-z])/gu,(t,n)=>n.toUpperCase()),E=["item","linked","schedule","claim_state","children","omission_receipt","row_contract","context_intent"],oe=new Set(["created_at","updated_at","closed_at","version","format_version","path","author","collection_counts","notes_count","tests_count"]),de=new Set([...oe,"completed_at","id"]),_=new Set(["id","title","description","type","status","priority","tags","body","deadline","estimated_minutes","acceptance_criteria","definition_of_ready","order","rank","assignee",...k,"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:j.map(e=>e.target),update:P.map(e=>e.target),close:x.map(e=>X(e.flag)).filter(e=>e!=="reason"),release:z.map(e=>X(e.flag))};function wt(e){let t={},n=e.createCompensation;if(n!==void 0){if(n!=="close"&&n!=="delete")throw new d("createCompensation must be close or delete.",c.USAGE);t.createCompensation=n}for(let r of["lockTtlSeconds","lockWaitMs"]){let o=e[r];if(o===void 0)continue;let i=typeof o=="number"||typeof o=="string"&&o.trim().length>0?Number(o):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 n=Math.max(1,Math.min(3,Math.floor(e.length/4)+1)),r;for(let o of t){let i=$(e,o,n);i!==null&&(r===void 0||i<r.distance)&&(r={key:o,distance:i})}return r?.key}function y(e,t,n){let r=g(t,n);return new d(r===void 0?`${e} does not recognize key "${t}". Allowed keys: ${n.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(n){let r=n instanceof Error?n.message:String(n);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 n of Object.keys(e))if(!R.includes(n))throw y(`mutation ${t+1}`,n,R);return e}function pe(e,t,n){if(e!==void 0){if(!p(e))throw new d(`Mutation ${n+1} options must be an object.`,c.USAGE);for(let r of Object.keys(e))if(!Z[t].includes(r))throw y(`mutation ${n+1} ${t} options`,r,Z[t]);return e}}function fe(e,t){let n=ue(e,t),{op:r,id:o,reason:i}=n;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(n.options,r,t);if(typeof o!="string"||o.trim().length===0)throw new d(`Mutation ${t+1} requires a non-empty id.`,c.USAGE);let a=o.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"),n=Array.isArray(t)?t:p(t)&&Array.isArray(t.mutations)?t.mutations:void 0;if(n===void 0||n.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 n.map((r,o)=>{let i=fe(r,o);return i.options!==void 0&&C(i.options),i})}function le(e,t,n){let r=ce.createHash("sha256").update(e).update("\0").update(t).digest("hex"),o=BigInt(`0x${r.slice(0,16)}`).toString(36).padStart(13,"0").slice(-12);return`${v(n)}${o}`}function Q(e,t){if(typeof e!="string"||!e.startsWith("@"))return e;let n=e.slice(1),r=t[n];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 n=e.replace(re,(r,o,i)=>{let s=t[i];if(s===void 0)throw new d(`Unknown mutation reference "@${i}".`,c.USAGE);return`${o}id=${s}`});if(/(^|,)id=@/u.test(n))throw new d(`Malformed mutation reference in dependency "${e}".`,c.USAGE);return n}function me(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(me))}let n=new Set,r=new Set,o=i=>{if(n.has(i))throw new d(`Mutation reference cycle includes "@${i}".`,c.USAGE);if(!r.has(i)){n.add(i);for(let s of t.get(i))t.has(s)&&o(s);n.delete(i),r.add(i)}};for(let i of t.keys())o(i)}function he(e){let t=I(e,"Mutation document"),n=Array.isArray(t)?{schema_version:1,mutations:t}:t;if(!p(n))throw new d("Mutation document must be a JSON array or object.",c.USAGE);for(let r of Object.keys(n))if(!V.includes(r))throw y("mutation document",r,V);if(n.schema_version!==void 0&&n.schema_version!==1)throw new d("Mutation document schema_version must be 1.",c.USAGE);if(!Array.isArray(n.mutations)||n.mutations.length===0)throw new d("Mutation document requires a non-empty mutations array.",c.USAGE);return n.mutations.map((r,o)=>{if(!p(r))throw new d(`Mutation ${o+1} must be an object.`,c.USAGE);for(let i of Object.keys(r))if(!q.includes(i))throw y(`mutation ${o+1}`,i,q);return{...r}})}function we(e,t){let n=Object.create(null);for(let[r,o]of e.entries())if(o.ref!==void 0){if(o.op!=="create")throw new d(`Mutation ${r+1} ref is only valid for create operations.`,c.USAGE);if(typeof o.ref!="string"||!H.test(o.ref))throw new d(`Mutation ${r+1} ref must match ${H.source}.`,c.USAGE);if(n[o.ref]!==void 0)throw new d(`Duplicate mutation ref "${o.ref}".`,c.USAGE);n[o.ref]=typeof o.id=="string"&&o.id.trim().length>0?G(o.id,t.idPrefix):le(t.transactionId,o.ref,t.idPrefix)}return n}function _t(e,t){let n=he(e),r=we(n,t);ye(n);let o=n.map(a=>{let u={...a},m=typeof u.ref=="string"?u.ref:void 0;if(delete u.ref,m!==void 0?u.id=r[m]:u.id=Q(u.id,r),p(u.options)){let f={...u.options};for(let w of["parent","blockedBy"])f[w]!==void 0&&(f[w]=Q(f[w],r));Array.isArray(f.dep)?f.dep=f.dep.map(w=>ee(w,r)):f.dep!==void 0&&(f.dep=ee(f.dep,r)),u.options=f}return u}),i=ie(JSON.stringify(o)),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(n=>e[n]!==void 0&&e[n]!==null).map(n=>{let r=String(e[n]);return`${n}=${/[",\n\r\\]/u.test(r)?JSON.stringify(r):r}`}).join(",")}function _e(e,t,n){if(e!==void 0){if(!Array.isArray(e)||!e.every(p))throw new d(`${n} 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(n=>typeof n=="string")?JSON.stringify(t):typeof t=="number"||typeof t=="boolean"?String(t):t}function te(e,t,n=!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[o,i,s]of r){let a=t[o],u=_e(n&&["comments","notes","learnings"].includes(o)&&Array.isArray(a)?a.filter(m=>!p(m)||m.created_at===void 0):a,s,o);u!==void 0&&u.length>0&&(e[i]=u)}}function ge(e,t){for(let n of Object.keys(e)){if(t){if(!E.includes(n))throw y("item envelope",n,E);continue}if(!_.has(n)&&g(n,[..._])===void 0&&g(n,E)==="item")throw y("item envelope",n,E)}}function Te(e){let t=Object.hasOwn(e,"item");ge(e,t);let n=t?e.item:e;if(!p(n))throw new d("Item document item must be an object.",c.USAGE);return{item:n,...t&&p(e.linked)?{linked:e.linked}:{}}}function Ae(e,t,n,r){if(!(r==="update"?de:oe).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 n=="string"?n:JSON.stringify(n)},["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,n))}}function Et(e,t,n={}){let r=I(e,"Item document");if(!p(r))throw new d("Item document must be a JSON object.",c.USAGE);let{item:o,linked:i}=Te(r),s={};for(let[a,u]of Object.entries(o))Ae(s,a,u,t);return te(s,o,t==="update"),i!==void 0&&te(s,i),{...s,...Object.fromEntries(Object.entries(n).filter(([,a])=>a!==void 0)),stdinJson:void 0}}function gt(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]="ea10685a-3187-533c-9699-73c23d377705")}catch{}})();function T(e,t){let n={...e,...t};return e===void 0?n:U(e,n)}async function l(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(n){if(n instanceof d&&n.exitCode===c.NOT_FOUND)return;throw n}}function M(e,t){let n=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_"),r=Se.createHash("sha256").update(N(e)).digest("hex").slice(0,12);return`${t+1}-${e.op}-${n}-${r}`}function Re(e,t){let n=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_");return`${t+1}-${e.op}-${n}`}function h(e,t,n){return`bulk-item-transaction ${e} ${t} ${n}`}async function A(e,t,n,r){let o=await D(be.join(e,"history",`${t}.jsonl`),t),i=h(n,r,"apply"),s=h(n,r,"compensate");for(let a=o.length-1;a>=0;a-=1){let u=o[a].message;if(u===i)return!0;if(u===s)return!1}return!1}async function O(e,t){let n=await l(e,t.id);if(n?.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:n.updatedAt}}async function S(e,t,n,r){let o=r!==null&&typeof r=="object"&&!Array.isArray(r)?r.target_updated_at:void 0;typeof o=="string"&&await l(e.pmRoot,t)!==void 0&&await Y(t,o,{force:!0,author:e.author,message:h(e.transactionId,n,"compensate")},{pmRoot:e.pmRoot})}function ae(e,t,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:{state:"applied",result:{id:r.id,op:"create"}}},async apply(){let o=(await L(T(t.options,{author:e.author,id:t.id}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"create"}},async compensate(){let r=await l(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,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await A(e.pmRoot,r.id,e.transactionId,n)?{state:"applied",result:{id:r.id,op:"update"}}:{state:"pending"}},async prepareCompensation(){return O(e.pmRoot,t)},async apply(){let o=(await F(t.id,T(t.options,{author:e.author,message:h(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"update"}},async compensate(r){await S(e,t.id,n,r)}}}function Me(e,t,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await A(e.pmRoot,r.id,e.transactionId,n)?{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 O(e.pmRoot,t)},async apply(){let o=(await b(t.id,t.reason,T(t.options,{author:e.author,message:h(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"close"}},async compensate(r){await S(e,t.id,n,r)}}}function Oe(e,t,n){return{id:n,async inspect(){let r=await l(e.pmRoot,t.id);return r===void 0?{state:"pending"}:await A(e.pmRoot,r.id,e.transactionId,n)?{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 O(e.pmRoot,t)},async apply(){let o=(await J(t.id,T(t.options,{author:e.author,message:h(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return{id:String(o.id),op:"release"}},async compensate(r){await S(e,t.id,n,r)}}}function ke(e,t,n){let r=M(t,n);switch(t.op){case"create":return ae(e,t,r);case"update":return Ie(e,t,r);case"close":return Me(e,t,r);case"release":return Oe(e,t,r)}}function $e(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 Ne(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())$e(a,s);let n=e.createCompensation??"close";if(!["close","delete"].includes(n))throw new TypeError("Bulk item transaction createCompensation must be close or delete");let r={pmRoot:e.pmRoot,author:e.author,transactionId:e.transactionId,createCompensation:n},o=await K({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,steps:t.map((s,a)=>ke(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=M(a,s),m=o.results[u];i[Re(a,s)]=m}return{transactionId:o.transactionId,status:"committed",recovered:o.recovered,results:i}}function Ce(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 Nt(e){return Ne({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,mutations:Ce(e),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}})}var Ct={buildCreateStep:ae,bulkHistoryMarker:h,compensateByRestore:S,deriveStepId:M,isUpdateMarkerApplied:A,readItemSnapshot:l};export{wt as a,ie as b,_t as c,Et as d,gt as e,Ne as f,Ce as g,Nt as h,Ct as i};
2
+ //# sourceMappingURL=chunk-BY2FQ2NI.js.map