@unbrained/pm-cli 2026.9.9 → 2026.9.11

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 (184) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +48 -11
  3. package/dist/cli/command-namespaces.d.ts +9 -0
  4. package/dist/cli/command-namespaces.js +2 -0
  5. package/dist/cli/extension-command-help.js +3 -3
  6. package/dist/cli/help-content.js +1 -1
  7. package/dist/cli/help-json-payload.d.ts +5 -1
  8. package/dist/cli/help-json-payload.js +2 -2
  9. package/dist/cli/main.d.ts +5 -0
  10. package/dist/cli/main.js +3 -3
  11. package/dist/cli/register-history-maintenance.js +2 -1
  12. package/dist/cli/register-list-query.js +2 -2
  13. package/dist/cli/register-mutation.js +2 -2
  14. package/dist/cli/register-operations.d.ts +0 -5
  15. package/dist/cli/register-operations.js +1 -1
  16. package/dist/cli-bundle/bundle-manifest.json +154 -162
  17. package/dist/cli-bundle/chunks/{chunk-L5RCDKQ2.js → chunk-BN5QVWNY.js} +2 -2
  18. package/dist/cli-bundle/chunks/chunk-DAWH7TGV.js +3 -0
  19. package/dist/cli-bundle/chunks/chunk-FBY6PEIR.js +20 -0
  20. package/dist/cli-bundle/chunks/chunk-IRUNFLLG.js +2 -0
  21. package/dist/cli-bundle/chunks/chunk-JMQKJ7CJ.js +8 -0
  22. package/dist/cli-bundle/chunks/{chunk-OHNLSGGV.js → chunk-QER6OSOP.js} +2 -2
  23. package/dist/cli-bundle/chunks/chunk-RJQSCK74.js +6 -0
  24. package/dist/cli-bundle/chunks/chunk-RJZFAXBW.js +235 -0
  25. package/dist/cli-bundle/chunks/chunk-SGAKQIGQ.js +29 -0
  26. package/dist/cli-bundle/chunks/chunk-T3AMFUCN.js +2 -0
  27. package/dist/cli-bundle/chunks/{chunk-ECBLPN7B.js → chunk-TDKWJQD7.js} +2 -2
  28. package/dist/cli-bundle/chunks/chunk-TFVKBJJ4.js +2247 -0
  29. package/dist/cli-bundle/chunks/{chunk-3IPRM75M.js → chunk-VFKBNGF6.js} +2 -2
  30. package/dist/cli-bundle/chunks/{register-list-query-UIHRCS6D.js → register-list-query-U6MY437C.js} +6 -6
  31. package/dist/cli-bundle/chunks/register-mutation-HAPHD4S7.js +20 -0
  32. package/dist/cli-bundle/chunks/register-operations-EHWIZW3X.js +2 -0
  33. package/dist/cli-bundle/chunks/{register-setup-PERI45EM.js → register-setup-BZYL3HBL.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/{chunk-YJUXGS57.js → chunk-3JVTLBCW.js} +4 -4
  35. package/dist/cli-bundle/focused-chunks/chunk-6JF66HAG.js +2 -0
  36. package/dist/cli-bundle/focused-chunks/{chunk-ZTCE4UO6.js → chunk-7WISPJRZ.js} +53 -52
  37. package/dist/cli-bundle/focused-chunks/chunk-BEQAW7OT.js +12 -0
  38. package/dist/cli-bundle/focused-chunks/{chunk-PNKIANFZ.js → chunk-DZ3ATEFS.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/{chunk-BUCJUZVG.js → chunk-FJDEFA64.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{chunk-QQQ4SAUO.js → chunk-GKUF7TM5.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/{chunk-7PC4R5QB.js → chunk-HM6JS6Q3.js} +2 -2
  42. package/dist/cli-bundle/focused-chunks/chunk-M74YW332.js +164 -0
  43. package/dist/cli-bundle/focused-chunks/{chunk-7N6DOREF.js → chunk-MOT32PR2.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-ONDKO4EL.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-5FHTCOHS.js → chunk-TGMSSI3Z.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/chunk-TWE3GPQM.js +30 -0
  47. package/dist/cli-bundle/focused-chunks/chunk-UJCQXUD2.js +8 -0
  48. package/dist/cli-bundle/focused-chunks/chunk-VS6MR2HT.js +2 -0
  49. package/dist/cli-bundle/focused-chunks/chunk-YOPNRWSX.js +2 -0
  50. package/dist/cli-bundle/main.js +26 -26
  51. package/dist/cli-bundle/sdk-authoring.js +1 -1
  52. package/dist/cli-bundle/sdk-contracts.js +2 -2
  53. package/dist/cli-bundle/sdk-core.js +37 -37
  54. package/dist/cli-bundle/sdk-governance.js +1 -1
  55. package/dist/cli-bundle/sdk-graph.js +1 -1
  56. package/dist/cli-bundle/sdk-merge.js +42 -42
  57. package/dist/cli-bundle/sdk-query.js +1 -1
  58. package/dist/cli-bundle/sdk-runtime.js +1 -1
  59. package/dist/cli-bundle/sdk-testing.js +1 -1
  60. package/dist/cli-bundle/sdk.js +10 -10
  61. package/dist/core/history/digest.d.ts +12 -0
  62. package/dist/core/history/digest.js +2 -0
  63. package/dist/core/history/drift-scan.js +1 -1
  64. package/dist/core/history/history.d.ts +5 -3
  65. package/dist/core/history/history.js +2 -2
  66. package/dist/core/history/replay.d.ts +3 -2
  67. package/dist/core/history/replay.js +1 -1
  68. package/dist/core/telemetry/runtime.d.ts +1 -0
  69. package/dist/core/telemetry/runtime.js +2 -2
  70. package/dist/sdk/agent/command-recovery.js +1 -1
  71. package/dist/sdk/agent/item-addressing.js +1 -1
  72. package/dist/sdk/agent/refusal-corpus-contracts.js +1 -1
  73. package/dist/sdk/agent-capability-contracts.js +1 -1
  74. package/dist/sdk/cli-bootstrap.d.ts +2 -1
  75. package/dist/sdk/cli-bootstrap.js +1 -1
  76. package/dist/sdk/cli-contracts/command-aliases.d.ts +13 -1
  77. package/dist/sdk/cli-contracts/command-aliases.js +1 -1
  78. package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
  79. package/dist/sdk/cli-contracts/enum-contracts.js +1 -1
  80. package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
  81. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  82. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
  83. package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
  84. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +4 -1
  85. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  86. package/dist/sdk/cli-contracts/tool-schema.d.ts +3 -3
  87. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  88. package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +2 -0
  89. package/dist/sdk/cli-contracts.d.ts +1 -1
  90. package/dist/sdk/cli-contracts.js +1 -1
  91. package/dist/sdk/completion.d.ts +2 -0
  92. package/dist/sdk/completion.js +375 -350
  93. package/dist/sdk/contracts.d.ts +1 -0
  94. package/dist/sdk/contracts.js +1 -1
  95. package/dist/sdk/governance.d.ts +3 -0
  96. package/dist/sdk/governance.js +1 -1
  97. package/dist/sdk/history/attestation-command.d.ts +22 -0
  98. package/dist/sdk/history/attestation-command.js +3 -0
  99. package/dist/sdk/history/attestation-contract.d.ts +103 -0
  100. package/dist/sdk/history/attestation-contract.js +2 -0
  101. package/dist/sdk/history/attestation-scan.d.ts +16 -0
  102. package/dist/sdk/history/attestation-scan.js +2 -0
  103. package/dist/sdk/history/attestation.d.ts +8 -0
  104. package/dist/sdk/history/attestation.js +2 -0
  105. package/dist/sdk/history/salvage.js +1 -1
  106. package/dist/sdk/history-compact.js +1 -1
  107. package/dist/sdk/history-read.js +1 -1
  108. package/dist/sdk/history-redact.js +1 -1
  109. package/dist/sdk/history-repair.js +1 -1
  110. package/dist/sdk/index.d.ts +3 -1
  111. package/dist/sdk/index.js +1 -1
  112. package/dist/sdk/lifecycle/claim.js +1 -1
  113. package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +1 -1
  114. package/dist/sdk/lifecycle/lifecycle-transitions.js +1 -1
  115. package/dist/sdk/lifecycle/mcp-actions.js +1 -1
  116. package/dist/sdk/lifecycle/task-composition.d.ts +17 -0
  117. package/dist/sdk/lifecycle/task-composition.js +2 -0
  118. package/dist/sdk/public-surface.json +1 -1
  119. package/dist/sdk/query/workspace-contracts.d.ts +3 -0
  120. package/dist/sdk/query/workspace-contracts.js +2 -0
  121. package/dist/sdk/read-output-budget.d.ts +4 -10
  122. package/dist/sdk/read-output-budget.js +1 -1
  123. package/dist/sdk/read-output-contracts.d.ts +1 -1
  124. package/dist/sdk/read-output-contracts.js +1 -1
  125. package/dist/sdk/read-output-session.d.ts +1 -1
  126. package/dist/sdk/read-output-session.js +1 -1
  127. package/dist/sdk/runtime-input.js +1 -1
  128. package/dist/sdk/runtime.d.ts +72 -9
  129. package/dist/sdk/runtime.js +1 -1
  130. package/dist/types.d.ts +5 -1
  131. package/dist/types.js +1 -1
  132. package/docs/CLI_GRAMMAR.md +23 -0
  133. package/docs/COMMANDS.md +26 -24
  134. package/docs/COMMAND_NAMESPACES.md +65 -0
  135. package/docs/HISTORY_ATTESTATION.md +164 -0
  136. package/docs/LIFECYCLE_COMMANDS.md +77 -0
  137. package/docs/README.md +3 -0
  138. package/docs/READ_OUTPUT_CONTRACTS.md +13 -0
  139. package/docs/generated/AGENT_CAPABILITY_ROUTING.md +6 -6
  140. package/docs/generated/AGENT_COMMAND_SURFACE.md +24 -0
  141. package/docs/generated/FLAG_LEXICON_BUDGETS.md +26 -3
  142. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +4 -4
  143. package/marketplace.json +2 -2
  144. package/package.json +4 -4
  145. package/packages/pm-beads/package.json +1 -1
  146. package/packages/pm-calendar/package.json +1 -1
  147. package/packages/pm-command-kit/package.json +1 -1
  148. package/packages/pm-digital-twin/package.json +1 -1
  149. package/packages/pm-governance-audit/README.md +13 -9
  150. package/packages/pm-governance-audit/extensions/governance-audit/index.ts +6 -3
  151. package/packages/pm-governance-audit/package.json +1 -1
  152. package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +7 -19
  153. package/packages/pm-guide-shell/package.json +1 -1
  154. package/packages/pm-kanban/package.json +1 -1
  155. package/packages/pm-lifecycle-hooks/package.json +1 -1
  156. package/packages/pm-linked-test-adapters/package.json +1 -1
  157. package/packages/pm-search-advanced/README.md +15 -9
  158. package/packages/pm-search-advanced/extensions/search-advanced/index.ts +3 -2
  159. package/packages/pm-search-advanced/package.json +1 -1
  160. package/packages/pm-templates/package.json +1 -1
  161. package/packages/pm-todos/package.json +1 -1
  162. package/packages/pm-vcs/package.json +1 -1
  163. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  164. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  165. package/dist/cli-bundle/chunks/chunk-4VL5P22L.js +0 -2
  166. package/dist/cli-bundle/chunks/chunk-AAFBV3U3.js +0 -29
  167. package/dist/cli-bundle/chunks/chunk-D3YVILJJ.js +0 -20
  168. package/dist/cli-bundle/chunks/chunk-J6ERHBV2.js +0 -235
  169. package/dist/cli-bundle/chunks/chunk-JUNJ5EKI.js +0 -2
  170. package/dist/cli-bundle/chunks/chunk-NSAPNEYH.js +0 -2
  171. package/dist/cli-bundle/chunks/chunk-WQKMSFBV.js +0 -5
  172. package/dist/cli-bundle/chunks/chunk-XZ6T7YPP.js +0 -2217
  173. package/dist/cli-bundle/chunks/chunk-Z3XVXUVF.js +0 -8
  174. package/dist/cli-bundle/chunks/register-mutation-WHWMGRVX.js +0 -20
  175. package/dist/cli-bundle/chunks/register-operations-64YZYTC5.js +0 -2
  176. package/dist/cli-bundle/focused-chunks/chunk-2W4XIYOB.js +0 -2
  177. package/dist/cli-bundle/focused-chunks/chunk-2WSBXIGF.js +0 -12
  178. package/dist/cli-bundle/focused-chunks/chunk-FE3BABLJ.js +0 -2
  179. package/dist/cli-bundle/focused-chunks/chunk-IWITF53W.js +0 -2
  180. package/dist/cli-bundle/focused-chunks/chunk-OQUGRHKV.js +0 -10
  181. package/dist/cli-bundle/focused-chunks/chunk-TTYXF5YD.js +0 -177
  182. package/dist/cli-bundle/focused-chunks/chunk-XNR3DM6J.js +0 -2
  183. package/dist/cli-bundle/focused-chunks/chunk-XSS3APUF.js +0 -9
  184. package/dist/cli-bundle/focused-chunks/chunk-YCDQ2N23.js +0 -8
@@ -1,298 +1,290 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "generation": "399b18eb3110dcd42f050b491d5dab11d30e6a0314990529c3dfa4aaaaf2bf9f",
3
+ "generation": "a615bd57fc72a51e4dbc104094cf76be4b67aaa0029eec74c7de6389c7720d36",
4
4
  "files": [
5
5
  {
6
- "path": "chunks/chunk-3IPRM75M.js",
7
- "sha256": "f5bf56adbd2855d3fd003bc83d163dafaded14f0a82014f2d5a0ccd37f66975a"
6
+ "path": "chunks/chunk-BN5QVWNY.js",
7
+ "sha256": "2359b3512c9352488f2b4499788fca44c97f35e711c6c27b3c937e255a8be23f"
8
8
  },
9
9
  {
10
- "path": "chunks/chunk-3IPRM75M.js.map",
11
- "sha256": "80a615273c13c3004a0977f41ade5169cca1e37b64c3942f2c9c9c33a5fc5965"
10
+ "path": "chunks/chunk-BN5QVWNY.js.map",
11
+ "sha256": "9896c6afbbc7d8768ce5d0813fe4f33f36f6423e3566dc4b87c21d22ad92ebdc"
12
12
  },
13
13
  {
14
- "path": "chunks/chunk-4VL5P22L.js",
15
- "sha256": "23fa258e2f5109281d57b6ce42b51d4098c065fe114d4e6bffdcf30a9bf7b735"
14
+ "path": "chunks/chunk-DAWH7TGV.js",
15
+ "sha256": "3fda772d3de93d538f1d69364b3e9c0d82af4d571ea75153382ba808a9a8446e"
16
16
  },
17
17
  {
18
- "path": "chunks/chunk-4VL5P22L.js.map",
19
- "sha256": "b1e8fca1b5584ac97b3b8ba746a8b798bf47e6d8ad7c0b89beccebc0359e3f3c"
18
+ "path": "chunks/chunk-DAWH7TGV.js.map",
19
+ "sha256": "9e73ba1e2cdcd01e9eff1902770b86141ebe926c56c1ae10ab103c5f0e343a59"
20
20
  },
21
21
  {
22
- "path": "chunks/chunk-AAFBV3U3.js",
23
- "sha256": "6f0dedb2c146d6533c997ee274d19bf128d0f1be94c2414470b8f74e853cc553"
22
+ "path": "chunks/chunk-DEZPZOQ7.js",
23
+ "sha256": "ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"
24
24
  },
25
25
  {
26
- "path": "chunks/chunk-AAFBV3U3.js.map",
27
- "sha256": "bd44c9fec939524ba02ca9be931ccc75d5679bbaf96be02dc4da96881b8a2850"
26
+ "path": "chunks/chunk-DEZPZOQ7.js.map",
27
+ "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
28
28
  },
29
29
  {
30
- "path": "chunks/chunk-D3YVILJJ.js",
31
- "sha256": "09612ddfabaf50850ac5c7a52f58ceae1257e756c9493ca8ecc332ff1874f3f8"
30
+ "path": "chunks/chunk-FBY6PEIR.js",
31
+ "sha256": "09a217932d40cb9ca95ea391e5417c0dc700eaff4d24779436c35d19595c555a"
32
32
  },
33
33
  {
34
- "path": "chunks/chunk-D3YVILJJ.js.map",
35
- "sha256": "cefa26970c6ad6cf48bca41460ed37acfa2b71e433e35aac8d93235b49240623"
34
+ "path": "chunks/chunk-FBY6PEIR.js.map",
35
+ "sha256": "da2d1b94247172973c2f6b4359adc10bcf742c5b6688b77e5bb1efea6a8ca49b"
36
36
  },
37
37
  {
38
- "path": "chunks/chunk-DEZPZOQ7.js",
39
- "sha256": "ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"
38
+ "path": "chunks/chunk-IRUNFLLG.js",
39
+ "sha256": "5099bff1de1eff21a294db1c2613783cc7eba3a0fd2001c985005e4555183921"
40
40
  },
41
41
  {
42
- "path": "chunks/chunk-DEZPZOQ7.js.map",
43
- "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
42
+ "path": "chunks/chunk-IRUNFLLG.js.map",
43
+ "sha256": "2d1fc04f301e67cf0ad6e1aa0654a64d5ad01ee236d321c5f7cab760ff132e18"
44
44
  },
45
45
  {
46
- "path": "chunks/chunk-ECBLPN7B.js",
47
- "sha256": "5e14bae91a2ab888e861d4f0b41554f4f55787732f90410ff91e06fc028983fc"
46
+ "path": "chunks/chunk-JMQKJ7CJ.js",
47
+ "sha256": "bf87ead06db5b4100cc0bc44dcafeeb2f41c78274b2ae283c84abfecee7094d8"
48
48
  },
49
49
  {
50
- "path": "chunks/chunk-ECBLPN7B.js.map",
51
- "sha256": "0200c9615da175537e969f543b56abac48b061648ad398b9bf42c17baf2fcb99"
50
+ "path": "chunks/chunk-JMQKJ7CJ.js.map",
51
+ "sha256": "4aa0ba42b34a4b31464888bae04a1b908f072c323521ee6a7d02037b8177c3c8"
52
52
  },
53
53
  {
54
- "path": "chunks/chunk-J6ERHBV2.js",
55
- "sha256": "3b635183423c0e08ffbc11da0f58e9222a68b805b2c13b0fba0f756b3c2069cd"
54
+ "path": "chunks/chunk-QER6OSOP.js",
55
+ "sha256": "e87aca358b57576c89d614c4c2d79254b83a027f7a0d1b82ffcf8536598f8403"
56
56
  },
57
57
  {
58
- "path": "chunks/chunk-J6ERHBV2.js.map",
59
- "sha256": "93042d1098649f886bfb9aef749f5217870057ba902d04b1db66793c58a7b4da"
58
+ "path": "chunks/chunk-QER6OSOP.js.map",
59
+ "sha256": "74d505b6fbe1f124dc25107bba6cce7aa5da7212eebf24c5ab874e6453315a13"
60
60
  },
61
61
  {
62
- "path": "chunks/chunk-JUNJ5EKI.js",
63
- "sha256": "d36e6e120af5408cdd9a47c0c3ac99628c718a4288c1f317ba7613f05c31662c"
62
+ "path": "chunks/chunk-RJQSCK74.js",
63
+ "sha256": "106524f0729749994aa4aa432b69c5c2eef235981551c5efd0cfc4328c59b169"
64
64
  },
65
65
  {
66
- "path": "chunks/chunk-JUNJ5EKI.js.map",
67
- "sha256": "5c19d3e38b73aa2f93600f92a52494a40a15a360884e3ec2552e8122d672d4c8"
66
+ "path": "chunks/chunk-RJQSCK74.js.map",
67
+ "sha256": "862752c77ef824fd46c44b16772e2e4c108a0f54c61c607c9092d73d0e529919"
68
68
  },
69
69
  {
70
- "path": "chunks/chunk-L5RCDKQ2.js",
71
- "sha256": "ef2b400f938a8e11f974139b1141b9f5d73f5a70b311b6576e5403398ff94374"
70
+ "path": "chunks/chunk-RJZFAXBW.js",
71
+ "sha256": "3dde49f3e26e85ed8b65084a9eb970a844c65a57d88e27ab92d7ac63c2b5b6be"
72
72
  },
73
73
  {
74
- "path": "chunks/chunk-L5RCDKQ2.js.map",
75
- "sha256": "9896c6afbbc7d8768ce5d0813fe4f33f36f6423e3566dc4b87c21d22ad92ebdc"
74
+ "path": "chunks/chunk-RJZFAXBW.js.map",
75
+ "sha256": "16f62844fcdde04294290a150d0a6f523f1f8a876fbf16f3d0c8047217f8e94a"
76
76
  },
77
77
  {
78
- "path": "chunks/chunk-NSAPNEYH.js",
79
- "sha256": "323536cd4c4e31b1bdafb8fc9708868fef4ecca230f4bfb4b9f8504b0e711952"
78
+ "path": "chunks/chunk-SGAKQIGQ.js",
79
+ "sha256": "8021a96bbf7e56f389b1dca848afc02f5d60b9b82900b76e3095ce1f7c09b9f5"
80
80
  },
81
81
  {
82
- "path": "chunks/chunk-NSAPNEYH.js.map",
83
- "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
82
+ "path": "chunks/chunk-SGAKQIGQ.js.map",
83
+ "sha256": "ec588c23635ddca52291a662db47ad42593634ff4ecfb62a08e8f61206be8ab2"
84
84
  },
85
85
  {
86
- "path": "chunks/chunk-OHNLSGGV.js",
87
- "sha256": "0b2635ae3700b9549ef661b136f5aed3a2eea6b166ef2e693f844ef5f9b7fb2e"
86
+ "path": "chunks/chunk-T3AMFUCN.js",
87
+ "sha256": "5aa6331872de44f7ed68e0022b6fefb1160af2430f92af36644debc28c719dfd"
88
88
  },
89
89
  {
90
- "path": "chunks/chunk-OHNLSGGV.js.map",
91
- "sha256": "2781f891011dcbf38929099a46a4d0f184ff52f4c31e3524ee39b9e38d01730e"
90
+ "path": "chunks/chunk-T3AMFUCN.js.map",
91
+ "sha256": "ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"
92
92
  },
93
93
  {
94
- "path": "chunks/chunk-WQKMSFBV.js",
95
- "sha256": "0f8dd4c5f39d1cf1884703a9ed3ce38291e676ff651ae41a1997661f3e1a7cb0"
94
+ "path": "chunks/chunk-TDKWJQD7.js",
95
+ "sha256": "d42c8a040500fb5f941804727d6832c17059ad49ff7eca375711a474f5abda0e"
96
96
  },
97
97
  {
98
- "path": "chunks/chunk-WQKMSFBV.js.map",
99
- "sha256": "93ac64d960878f88233fc9eb4a47834a48cdcfe464392c8eadc0b14b9b6d61c8"
98
+ "path": "chunks/chunk-TDKWJQD7.js.map",
99
+ "sha256": "0200c9615da175537e969f543b56abac48b061648ad398b9bf42c17baf2fcb99"
100
100
  },
101
101
  {
102
- "path": "chunks/chunk-XZ6T7YPP.js",
103
- "sha256": "bcb6713849a503dc8124cdd393ddce60569fb33ed162c3a4b8867d1dda22c95b"
102
+ "path": "chunks/chunk-TFVKBJJ4.js",
103
+ "sha256": "9cb33d3cca2a5108d4b75d126f6c65fbd10a322ad1808c3217714899793db87e"
104
104
  },
105
105
  {
106
- "path": "chunks/chunk-XZ6T7YPP.js.map",
107
- "sha256": "4519fa156200f9776b4a894179161d083e31d91d0792db3882b6584a7e7ef325"
106
+ "path": "chunks/chunk-TFVKBJJ4.js.map",
107
+ "sha256": "e005dff833b3e2692b0900f5ba272b79c21904781965d430ac60378e2b411309"
108
108
  },
109
109
  {
110
- "path": "chunks/chunk-Z3XVXUVF.js",
111
- "sha256": "9b6dd343076480c0b11f77e6daeb6570ae74027197074d8c00f59e662cabd968"
110
+ "path": "chunks/chunk-VFKBNGF6.js",
111
+ "sha256": "aff7e9d811b6fc26879559488e2dc1d0e750a9242fc8f5334df2d7976eb420cb"
112
112
  },
113
113
  {
114
- "path": "chunks/chunk-Z3XVXUVF.js.map",
115
- "sha256": "d7178e0b054769ead69e36e4681f4fdcd9df8321a74d7ccf5eb879e82a26de78"
114
+ "path": "chunks/chunk-VFKBNGF6.js.map",
115
+ "sha256": "80a615273c13c3004a0977f41ade5169cca1e37b64c3942f2c9c9c33a5fc5965"
116
116
  },
117
117
  {
118
- "path": "chunks/register-list-query-UIHRCS6D.js",
119
- "sha256": "52ab5146d02413b7ed820c31c7507193b085746f53c2a520f7b4a781a9c77577"
118
+ "path": "chunks/register-list-query-U6MY437C.js",
119
+ "sha256": "68048e1ca381e86b0800a12fd5d7db76c4c8d4839134c4f872f86bda2aade39b"
120
120
  },
121
121
  {
122
- "path": "chunks/register-list-query-UIHRCS6D.js.map",
123
- "sha256": "7ddb1c1ab3346e7ee1df3a2059155832de6186c4909aacebfab9cb60f6711544"
122
+ "path": "chunks/register-list-query-U6MY437C.js.map",
123
+ "sha256": "dbbce970dac9340c5b7850c3430f52a9b4096f972d956b84ee94d22b027f6f35"
124
124
  },
125
125
  {
126
- "path": "chunks/register-mutation-WHWMGRVX.js",
127
- "sha256": "2032539c29a198a139e21d9220e441a9c927bc2c97c9d3b2b9a0195d1a1600f4"
126
+ "path": "chunks/register-mutation-HAPHD4S7.js",
127
+ "sha256": "69f000d1be016cea42e48e351f24ff794d8f6f502615d1b667c86a1b609f15ab"
128
128
  },
129
129
  {
130
- "path": "chunks/register-mutation-WHWMGRVX.js.map",
131
- "sha256": "a65041cb6f03136ba6817771cc09778165e64a91ba5e21ae7c5f165aaad0035f"
130
+ "path": "chunks/register-mutation-HAPHD4S7.js.map",
131
+ "sha256": "2e5c54a32f222e9ce960fe0a14b5c7326b28ae2bff1755863ed8e5e49231085f"
132
132
  },
133
133
  {
134
- "path": "chunks/register-operations-64YZYTC5.js",
135
- "sha256": "2173f5080a06128817a65b3cdb453dfbf8db267b923b09df0249ac7572670d08"
134
+ "path": "chunks/register-operations-EHWIZW3X.js",
135
+ "sha256": "23a7547cb7a70de89ede03921b93fc0827d0ab20b374e46785b16ae3b3d20be2"
136
136
  },
137
137
  {
138
- "path": "chunks/register-operations-64YZYTC5.js.map",
139
- "sha256": "d614a260b3cb785cb1d6002241fb26c6066f70adb943aa3e554ed5749122f3d7"
138
+ "path": "chunks/register-operations-EHWIZW3X.js.map",
139
+ "sha256": "7ad2852b25c7a17ad44408cd28c810a7067f73c23435bfed2940a02eddde019c"
140
140
  },
141
141
  {
142
- "path": "chunks/register-setup-PERI45EM.js",
143
- "sha256": "58a3e5dce83e3e812a15726345807d68fb84c6f1e9d62d443a6769878983c242"
142
+ "path": "chunks/register-setup-BZYL3HBL.js",
143
+ "sha256": "154a500819a21cb97588d76f9b0d18cbcb2f361b773e2bbc7b3f6ddedb508f84"
144
144
  },
145
145
  {
146
- "path": "chunks/register-setup-PERI45EM.js.map",
146
+ "path": "chunks/register-setup-BZYL3HBL.js.map",
147
147
  "sha256": "a6c098f8a9b94ed076922b2499cd916bade60df99004d705e1b3d801212c5a6e"
148
148
  },
149
149
  {
150
- "path": "focused-chunks/chunk-2W4XIYOB.js",
151
- "sha256": "7d6e993efdb76a0b93c71ddcd6c0ad4b467475c1875751af640aa70623466989"
150
+ "path": "focused-chunks/chunk-3JVTLBCW.js",
151
+ "sha256": "47db3421d81e6db5f5459becc9478cae18e50100e7dde804e7c4a18a97d773d5"
152
152
  },
153
153
  {
154
- "path": "focused-chunks/chunk-2W4XIYOB.js.map",
155
- "sha256": "02f18615f25d8a2dc07493f921041efa72c20b7f64230ef8f29e307d2367eaf6"
154
+ "path": "focused-chunks/chunk-3JVTLBCW.js.map",
155
+ "sha256": "bb63246e7ffa1a57fdda371d1e6164a0141ecb139f555b8141f77d1ce8dd1d5f"
156
156
  },
157
157
  {
158
- "path": "focused-chunks/chunk-2WSBXIGF.js",
159
- "sha256": "6002fe6b960d9e23de434bb6693253daba102db815539ebeda3e58ab9e7d6ecd"
158
+ "path": "focused-chunks/chunk-6JF66HAG.js",
159
+ "sha256": "9695deb4341d22278859576811446544dce985abef3a2fb496bf18d296ca196b"
160
160
  },
161
161
  {
162
- "path": "focused-chunks/chunk-2WSBXIGF.js.map",
163
- "sha256": "856ee418e3b7010cb7d6711eb68819307845e92ab72108c9acfaeb9d744e82cb"
162
+ "path": "focused-chunks/chunk-6JF66HAG.js.map",
163
+ "sha256": "d2b01bd51153c8bdcbc71ae3607bd97023430d4f5fd43f6ab95ba994e0546e65"
164
164
  },
165
165
  {
166
- "path": "focused-chunks/chunk-5FHTCOHS.js",
167
- "sha256": "6dd96d8c7810b691ec19b27e9ad6abaaf0f62d014150491e88c27c414f9dd37b"
166
+ "path": "focused-chunks/chunk-7WISPJRZ.js",
167
+ "sha256": "b5fed397e266c70fc4f9aa3afbda0fccce8cffbbae919196f30a082d5ad44bcf"
168
168
  },
169
169
  {
170
- "path": "focused-chunks/chunk-5FHTCOHS.js.map",
171
- "sha256": "73c92b5ae05038383dd008f67af6058b950d44432d9e1a4cd396e93b48048e68"
170
+ "path": "focused-chunks/chunk-7WISPJRZ.js.map",
171
+ "sha256": "1af201d8d6fca5b238f56a0129cbab026c2ba690ea21937c40ec1d6d9c6d7ba0"
172
172
  },
173
173
  {
174
- "path": "focused-chunks/chunk-7N6DOREF.js",
175
- "sha256": "7bfdabd05d4ba217f7cc42b157ce1b95fcd29863d14be3b291e41cdd41574c73"
174
+ "path": "focused-chunks/chunk-BEQAW7OT.js",
175
+ "sha256": "4dca397ce48cfb3ed661a769179f6123f2661ee532c17578d2382ffb1346e764"
176
176
  },
177
177
  {
178
- "path": "focused-chunks/chunk-7N6DOREF.js.map",
179
- "sha256": "e38db2743f60700f534d954b34412f7ad8758e68c77e868fbee337e28c3816d4"
178
+ "path": "focused-chunks/chunk-BEQAW7OT.js.map",
179
+ "sha256": "5ddf87727b82b0064f830d5978cbf8fd4697971b3349a73aeeb30a7849760e76"
180
180
  },
181
181
  {
182
- "path": "focused-chunks/chunk-7PC4R5QB.js",
183
- "sha256": "b853f9ad32d03744b009182463a3e22b1daacc80e3415cfb53f43ce120a09c91"
182
+ "path": "focused-chunks/chunk-DZ3ATEFS.js",
183
+ "sha256": "129984f6fedf1776ad5a6c75ff1a9e5f68bcdb8f26140f3351d0a2b6137bf7a0"
184
184
  },
185
185
  {
186
- "path": "focused-chunks/chunk-7PC4R5QB.js.map",
187
- "sha256": "a67eb12e116d9c0a640686bff5aad119a14732192b5c98ed94c6ddee81e16e47"
186
+ "path": "focused-chunks/chunk-DZ3ATEFS.js.map",
187
+ "sha256": "358d32df0d0e3d5646c7559bdec8297f2508053cd191553d6827e88abfe47847"
188
188
  },
189
189
  {
190
- "path": "focused-chunks/chunk-BUCJUZVG.js",
191
- "sha256": "d80ff34ed081407cc2bb73d85a82e6a4fc7cca5a5de8e1c6d631ef496adf2d4d"
190
+ "path": "focused-chunks/chunk-FJDEFA64.js",
191
+ "sha256": "a6dfd1315dc7454c166d583c826776ae7f64c7f6df165634abedce67d4bb0c1b"
192
192
  },
193
193
  {
194
- "path": "focused-chunks/chunk-BUCJUZVG.js.map",
194
+ "path": "focused-chunks/chunk-FJDEFA64.js.map",
195
195
  "sha256": "974f8e877cfa8adb7e05770e5573548ae5f041e06cdf871f34b1fa2f4e63fd3e"
196
196
  },
197
197
  {
198
- "path": "focused-chunks/chunk-FE3BABLJ.js",
199
- "sha256": "eaa511ec27f01a5b025a6ddf3a6b140eb890815b97975b7d11c215879c864f41"
200
- },
201
- {
202
- "path": "focused-chunks/chunk-FE3BABLJ.js.map",
203
- "sha256": "c20c614fe589ec677df3cb076a656086d597c80c896b1563523a198f6457e603"
198
+ "path": "focused-chunks/chunk-GKUF7TM5.js",
199
+ "sha256": "47c45f918d881998be1bc9a51de98e6e474d4315f68abb60e0233f388828919b"
204
200
  },
205
201
  {
206
- "path": "focused-chunks/chunk-IWITF53W.js",
207
- "sha256": "35f616732c4e94d39fce35c395f0d0d384070a6d79f718ea6d7924e2c3c702a6"
208
- },
209
- {
210
- "path": "focused-chunks/chunk-IWITF53W.js.map",
211
- "sha256": "e564874cd0d8926b4eeabb45e3c7a0012c7d1e6f789ba5ca1ca89414ffd8986a"
202
+ "path": "focused-chunks/chunk-GKUF7TM5.js.map",
203
+ "sha256": "56f0297ef91e355cf1ae58b2e3244e0f246c67e230c6dd9e9be121e0d16dfd7d"
212
204
  },
213
205
  {
214
- "path": "focused-chunks/chunk-OQUGRHKV.js",
215
- "sha256": "5ce749bbf53acdb763c2e177e4aa2a256a8f278679c93b2047e4a98ce052e2da"
206
+ "path": "focused-chunks/chunk-HM6JS6Q3.js",
207
+ "sha256": "c12aecade8fa4f8a1684dc9b065f2ba60760400ffe44e1630580ba2dec64704b"
216
208
  },
217
209
  {
218
- "path": "focused-chunks/chunk-OQUGRHKV.js.map",
219
- "sha256": "3b88ad9e7c68b90b1bdd2c584ba5d1527071cf654813d88d57c6d0d2c51aa0c6"
210
+ "path": "focused-chunks/chunk-HM6JS6Q3.js.map",
211
+ "sha256": "3c85a304dc8d31b77b68df15d0c57b035c8405bc1a2a40fea766e0e812212520"
220
212
  },
221
213
  {
222
- "path": "focused-chunks/chunk-PNKIANFZ.js",
223
- "sha256": "3d71963ab4e146a90523cea47fb5aac121cabb2e2f0d51a8d2b3199c4a59b368"
214
+ "path": "focused-chunks/chunk-M74YW332.js",
215
+ "sha256": "05b013f4689e817a142d9181294f3cd889aab1d8e1ddec9d4eda424f352f6ee8"
224
216
  },
225
217
  {
226
- "path": "focused-chunks/chunk-PNKIANFZ.js.map",
227
- "sha256": "358d32df0d0e3d5646c7559bdec8297f2508053cd191553d6827e88abfe47847"
218
+ "path": "focused-chunks/chunk-M74YW332.js.map",
219
+ "sha256": "42bf1a75e90dea96b7709f9439d693832b0c8d915260d9b7935c034cec9a3303"
228
220
  },
229
221
  {
230
- "path": "focused-chunks/chunk-QQQ4SAUO.js",
231
- "sha256": "7d0ee58f8b76f52137cfbde25f373fb940b59df964552a5f52474cd87d9d4f89"
222
+ "path": "focused-chunks/chunk-MOT32PR2.js",
223
+ "sha256": "30952da806586721099a098ceaecc384d797daae09d82451a64fdec36cf9a297"
232
224
  },
233
225
  {
234
- "path": "focused-chunks/chunk-QQQ4SAUO.js.map",
235
- "sha256": "56f0297ef91e355cf1ae58b2e3244e0f246c67e230c6dd9e9be121e0d16dfd7d"
226
+ "path": "focused-chunks/chunk-MOT32PR2.js.map",
227
+ "sha256": "e38db2743f60700f534d954b34412f7ad8758e68c77e868fbee337e28c3816d4"
236
228
  },
237
229
  {
238
- "path": "focused-chunks/chunk-TTYXF5YD.js",
239
- "sha256": "971b60c796a34cae3083a341c396557e134afe5196c61505883e5de32b7fabdd"
230
+ "path": "focused-chunks/chunk-ONDKO4EL.js",
231
+ "sha256": "d22c0f3905aeca3d384889da768e0fe2e697acf2f156c502678ae5a8ecbacb59"
240
232
  },
241
233
  {
242
- "path": "focused-chunks/chunk-TTYXF5YD.js.map",
243
- "sha256": "8919adea4ad27eed3172b341c892ed9efa8a2f03c8f2bb9100448db509ae92cb"
234
+ "path": "focused-chunks/chunk-ONDKO4EL.js.map",
235
+ "sha256": "d7cca91708b310530bc7139f35ef9fe0b34c59f0db5ab87efdacfb48699c1431"
244
236
  },
245
237
  {
246
- "path": "focused-chunks/chunk-XNR3DM6J.js",
247
- "sha256": "c50b116c43459de8c10f9b490b821962a3e4511fe51d0ffd78cac69c02934202"
238
+ "path": "focused-chunks/chunk-TGMSSI3Z.js",
239
+ "sha256": "07e71fe4c1724c6a41eea01b9113481aa4d7d16d9bd1b043c9354f04550f63f4"
248
240
  },
249
241
  {
250
- "path": "focused-chunks/chunk-XNR3DM6J.js.map",
251
- "sha256": "9a8ee87ef8373f8976b45b97c1e0d7603142be6b19d7ba7cc5190e3f0e5b7477"
242
+ "path": "focused-chunks/chunk-TGMSSI3Z.js.map",
243
+ "sha256": "73c92b5ae05038383dd008f67af6058b950d44432d9e1a4cd396e93b48048e68"
252
244
  },
253
245
  {
254
- "path": "focused-chunks/chunk-XSS3APUF.js",
255
- "sha256": "b42904c7f1f80090ebd332b55f04a8f42920856a5789152df572b632e2ec92a0"
246
+ "path": "focused-chunks/chunk-TWE3GPQM.js",
247
+ "sha256": "e00c9450e8d0d227175b8be7071eec403b890af91b9d3c766d744e5d134650fe"
256
248
  },
257
249
  {
258
- "path": "focused-chunks/chunk-XSS3APUF.js.map",
259
- "sha256": "4d75928e397daff313a3d1e315494976f6f44b62184701c00b3d478e1d704bc2"
250
+ "path": "focused-chunks/chunk-TWE3GPQM.js.map",
251
+ "sha256": "8b1c72d6dd66df225e59b835091d5fede3a36f00a93e61ba3a6cf09017a5c1e1"
260
252
  },
261
253
  {
262
- "path": "focused-chunks/chunk-YCDQ2N23.js",
263
- "sha256": "d3f7458dfbf20c0e42f52516fb86f271492b41edef552f7d4d51c5bd305cb047"
254
+ "path": "focused-chunks/chunk-UJCQXUD2.js",
255
+ "sha256": "c294624f40e3c033a86957b6bc76c6fb6732602de5cf0104f59fb5ef2fd8a7a1"
264
256
  },
265
257
  {
266
- "path": "focused-chunks/chunk-YCDQ2N23.js.map",
267
- "sha256": "b4136ee87fff390aa395b4657157eb7562e58c217d33675427bf29132c807b04"
258
+ "path": "focused-chunks/chunk-UJCQXUD2.js.map",
259
+ "sha256": "d630bf56bd642198df70d31c5dda6fd3df81e66338e35d83c3b25084ab6f82de"
268
260
  },
269
261
  {
270
- "path": "focused-chunks/chunk-YJUXGS57.js",
271
- "sha256": "aa388d9d6387e6a4da0cdee50921e7139015d79e6ff40525b100169ccbded14f"
262
+ "path": "focused-chunks/chunk-VS6MR2HT.js",
263
+ "sha256": "b1e14d2faae034e40437f8fd5d6270555ba70011f24fdfb8a539885621b06ea9"
272
264
  },
273
265
  {
274
- "path": "focused-chunks/chunk-YJUXGS57.js.map",
275
- "sha256": "236783e36ef3b1c67b12ae53493ce8311b75fb2b8d3f586bf0e25c7264a32514"
266
+ "path": "focused-chunks/chunk-VS6MR2HT.js.map",
267
+ "sha256": "5dfe085149b8749b6019a60fd2c99794743a25795d80272b34102ed025ff3da2"
276
268
  },
277
269
  {
278
- "path": "focused-chunks/chunk-ZTCE4UO6.js",
279
- "sha256": "9ee2ecbe802d0a71990785e7384356379b3114a63c5e3301d6ac08d5b5d675f5"
270
+ "path": "focused-chunks/chunk-YOPNRWSX.js",
271
+ "sha256": "5277afde91da62ae3ffefe11ae7a820768f5742db823673a752c58e0125e66cb"
280
272
  },
281
273
  {
282
- "path": "focused-chunks/chunk-ZTCE4UO6.js.map",
283
- "sha256": "68e5c0cdd19eb050d0d36bc8b97f0622dd71c55a5fbe1d8dad3a4c3dec0b9078"
274
+ "path": "focused-chunks/chunk-YOPNRWSX.js.map",
275
+ "sha256": "460c9ac67c5d4605dbac0aa4ec917abbbd691a5a781799bfcafbedaad9db7bda"
284
276
  },
285
277
  {
286
278
  "path": "main.js",
287
- "sha256": "2ada1cf4f72711722bc17fb3c402cd006916e16ae1d429bba051e4e5a0c16c5f"
279
+ "sha256": "b8cd3adc765c14030a1c0724d41cf8e6620f34e34f4f714a3d3eee311082eba8"
288
280
  },
289
281
  {
290
282
  "path": "main.js.map",
291
- "sha256": "97a03349c272a7dd9a27373ffa36251113439f55035d2d870860ec494393f66e"
283
+ "sha256": "46d32e3e7ff2c2068bc1b5aa9b1b03ebc43f41a3b5f9f01339225c8d87c9c915"
292
284
  },
293
285
  {
294
286
  "path": "sdk-authoring.js",
295
- "sha256": "c7218b5c0f3eea6f08bcaa3cedfc554eec3b7cfb75f4d9a2f19e5c4968177ba9"
287
+ "sha256": "dbb11539b685f62fd85ab15159bee4b2ca0efbd287b8734a4536af6c99f56c23"
296
288
  },
297
289
  {
298
290
  "path": "sdk-authoring.js.map",
@@ -300,55 +292,55 @@
300
292
  },
301
293
  {
302
294
  "path": "sdk-contracts.js",
303
- "sha256": "796e7edb2dc4e56f64241b986946d229dbbcf4da66410ebe35b766f784a66c24"
295
+ "sha256": "99f4427e61eb3905122d39f5228e5c2c79d57018efd73b89d058dc2f96f3d6da"
304
296
  },
305
297
  {
306
298
  "path": "sdk-contracts.js.map",
307
- "sha256": "2572eb439e52434d3f355f90f0256e0b3ac5d433a59a469881021d5a53c09c5c"
299
+ "sha256": "2f50c6bc4fce326d5f5d84c247889b2b46db1297c35f9ea6594739fb05c3f1f4"
308
300
  },
309
301
  {
310
302
  "path": "sdk-core.js",
311
- "sha256": "bf809af7da9ae506a4fb91f30aea729e56726c4b2d19a0bf20d8caa77f112496"
303
+ "sha256": "c8382f20803f8850c2455fd9d3e5976d862666147711ca3bd89e8d4583292e49"
312
304
  },
313
305
  {
314
306
  "path": "sdk-core.js.map",
315
- "sha256": "776f043e0bfd7b568b8b8ba56109b1497fe4a257605f05d2c38313f73b8cf19f"
307
+ "sha256": "bf0178e4b04a077c1fc238cf288cf4d9d79f29290abed8329c56ed2278a55dd8"
316
308
  },
317
309
  {
318
310
  "path": "sdk-governance.js",
319
- "sha256": "f300712e9f403955dcaf883bae682da086db4098b25f35bed5dd3ac7b4464f3b"
311
+ "sha256": "4a5006c470d13b136fc3e8332c24fb262b13ba4bfefd38bfcc524c9ed05a460e"
320
312
  },
321
313
  {
322
314
  "path": "sdk-governance.js.map",
323
- "sha256": "d4659daaf56e0075899efd175fbfa59b9c03f6c4911b748fc6a45a6a16ed8960"
315
+ "sha256": "d61213689d402415ca889b74a774370f403b923fd7d052d63f23dd694d74d70d"
324
316
  },
325
317
  {
326
318
  "path": "sdk-graph.js",
327
- "sha256": "827c1577b85c6f2bf9d210da86012d730a55524fb553e1f579052ec3ee7d4b7a"
319
+ "sha256": "4bcadc232d94ba5c5b8e3a79dae15d922d4ffc6ccf750152bd498fc8c372d5f1"
328
320
  },
329
321
  {
330
322
  "path": "sdk-graph.js.map",
331
- "sha256": "f629b66b1ff4eeea40bdf50bac2e0bbebc57c3546451cf46e291ab914feda3dc"
323
+ "sha256": "b82154fb6cffb2acd040565630b177b22c1f956c813adfb537aa79fba1ff2c86"
332
324
  },
333
325
  {
334
326
  "path": "sdk-merge.js",
335
- "sha256": "6521e8f870d6a9d8c9c54f6a3829a0c22466da92057a1d2f685de4d4875b96d7"
327
+ "sha256": "3098c6543d40ec76c4bc3635855cd5d845d50284f07c4b6078cf1a7419ac32ed"
336
328
  },
337
329
  {
338
330
  "path": "sdk-merge.js.map",
339
- "sha256": "f0fe691e220d0973f6c90a572e96bc66143983ec713dc2c45513ab30f6de25b2"
331
+ "sha256": "b09c592adcec80095d648bf6751bf7dd412b7a36a15a8567bd3cd3daf52622c9"
340
332
  },
341
333
  {
342
334
  "path": "sdk-query.js",
343
- "sha256": "c456191f00fb7f75a03d0d55d6142180005bd3e89fe7b78be4fd2f67ca8fb8a6"
335
+ "sha256": "00ddf822f6e353b16f1ff2de503f17225c01908f3d9d57494453989fa42c662c"
344
336
  },
345
337
  {
346
338
  "path": "sdk-query.js.map",
347
- "sha256": "f01aae2af86165d090bf4474e974e7329c05a8d4ef5297814caed24b22be44ba"
339
+ "sha256": "a4a2d05335b3c3b35a035438c04d7b803ec79462cd40cf54659f88cf9973f117"
348
340
  },
349
341
  {
350
342
  "path": "sdk-runtime.js",
351
- "sha256": "32636b40dd3bd5fc1ceefc177ff55da4486195bfbf3400a5e4ceb7c51194dea1"
343
+ "sha256": "0f30a534afca3fbd26fb4fc26b38076b90c4400d07cbe82e93ece7ff98f06423"
352
344
  },
353
345
  {
354
346
  "path": "sdk-runtime.js.map",
@@ -356,7 +348,7 @@
356
348
  },
357
349
  {
358
350
  "path": "sdk-testing.js",
359
- "sha256": "8f01ddf21fb0af9568d027146f4b5a5c0576a3711253fedecf3b0eaeb691135c"
351
+ "sha256": "034174157141c35957719ca9f859322779c1a8b68673d3b0eefee83b3f4733a9"
360
352
  },
361
353
  {
362
354
  "path": "sdk-testing.js.map",
@@ -364,11 +356,11 @@
364
356
  },
365
357
  {
366
358
  "path": "sdk.js",
367
- "sha256": "c764f278fd54dba2389a8bf66f4e6249b6a8225273e4a47b54b692b5f7c0aeed"
359
+ "sha256": "f6320529c1fe60ed82c69f1fe914b114dc10d413666761ec1d73bae14b8b3392"
368
360
  },
369
361
  {
370
362
  "path": "sdk.js.map",
371
- "sha256": "225b0db1499ea36d1b587dd4e471dfd485b0024ea61b400f991e1125903f48a9"
363
+ "sha256": "741b0546d7efe513b1dd3f77b3beca0d899ad47916c5fcacfb37ccf34678518e"
372
364
  }
373
365
  ]
374
366
  }
@@ -1,2 +1,2 @@
1
- import{Pb as x,Qb as F,Sb as b,Vb as J,Wa as B,Xb as W,Yb as V}from"./chunk-XZ6T7YPP.js";import{b as K}from"./chunk-OHNLSGGV.js";import{Gm as L,I as c,K as d,Mm as z,Oe as U,_b as $,fl as j,ia as k,il as P,td as N,ui as D,vd as C,wi as G,x as O}from"./chunk-J6ERHBV2.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:j.map(e=>e.target),update:P.map(e=>e.target),close:L.map(e=>X(e.flag)).filter(e=>e!=="reason"),release:z.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&&N(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`${D(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?G(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:C(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 U(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 K({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-L5RCDKQ2.js.map
1
+ import{Qb as x,Rb as F,Tb as b,Wb as J,Xa as B,Yb as W,Zb as V}from"./chunk-TFVKBJJ4.js";import{b as K}from"./chunk-QER6OSOP.js";import{Bd as C,D as O,Fi as D,Hi as G,O as c,Q as d,Sm as L,Ym as z,Ze as U,ec as $,oa as k,ql as j,tl as P,zd as N}from"./chunk-RJZFAXBW.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:j.map(e=>e.target),update:P.map(e=>e.target),close:L.map(e=>X(e.flag)).filter(e=>e!=="reason"),release:z.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&&N(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`${D(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?G(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:C(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 U(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 K({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-BN5QVWNY.js.map