openplanr 2.2640.8 → 2.2640.9

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 (186) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/dashboard/.vite/manifest.json +1 -1
  3. package/dist/dashboard/assets/{index-COZ36pFn.js → index-D7R6tnlX.js} +2 -2
  4. package/dist/dashboard/assets/{index-COZ36pFn.js.map → index-D7R6tnlX.js.map} +1 -1
  5. package/dist/dashboard/dashboard-manifest.json +8 -8
  6. package/dist/dashboard/index.html +1 -1
  7. package/lib/host-packages/adapter-registry.json +5 -5
  8. package/lib/host-packages/capability-map.json +1 -1
  9. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  10. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
  11. package/lib/host-packages/claude/openplanr/.openplanr-content.json +165 -33
  12. package/lib/host-packages/claude/openplanr/README.md +22 -1
  13. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  14. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  15. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-pako-esm.mjs → design-compression.mjs} +2 -1521
  16. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  17. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  18. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  19. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  20. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-planr-home.mjs → design-loopback-server.mjs} +15 -36
  21. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  22. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  23. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  24. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  25. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  26. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  27. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-escape.mjs → design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
  28. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-artifact-sources.mjs → claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
  29. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-bounded-json-data.mjs → claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs} +241 -454
  30. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  31. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  32. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +12 -5
  33. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  34. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
  35. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  36. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  37. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  38. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
  39. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  40. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
  41. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  42. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  43. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  44. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  45. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
  46. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
  47. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
  48. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
  49. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +1121 -0
  50. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +2183 -0
  51. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
  52. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  53. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  54. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  55. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  56. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  57. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  58. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  59. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  60. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  61. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  62. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  63. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  64. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  65. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
  66. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +164 -32
  67. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  68. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/backend-diagnostics.mjs +6 -2
  69. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  70. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  71. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-pako-esm.mjs → cursor/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
  72. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  73. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  74. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  75. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  76. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-planr-home.mjs → cursor/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
  77. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  78. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  79. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  80. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  81. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  82. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  83. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-escape.mjs → cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
  84. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-artifact-sources.mjs → cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
  85. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-bounded-json-data.mjs → design-shared-protocol-contracts-31a760fc.mjs} +241 -454
  86. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  87. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  88. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +12 -5
  89. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  90. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
  91. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  92. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  93. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  94. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
  95. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  96. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
  97. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  98. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  99. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  100. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  101. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
  102. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
  103. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
  104. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
  105. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +1121 -0
  106. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +2183 -0
  107. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
  108. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  109. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  110. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  111. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  112. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  113. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  114. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  115. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  116. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  117. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  118. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  119. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  120. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  121. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  122. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  123. package/lib/host-packages/openai/openplanr/.openplanr-content.json +164 -32
  124. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  125. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  126. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-pako-esm.mjs → openai/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
  127. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  128. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  129. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  130. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  131. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-planr-home.mjs → openai/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
  132. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  133. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  134. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  135. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  136. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  137. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  138. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-escape.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
  139. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-artifact-sources.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
  140. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-bounded-json-data.mjs → openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs} +241 -454
  141. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  142. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  143. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +12 -5
  144. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  145. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
  146. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  147. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  148. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  149. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
  150. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  151. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
  152. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  153. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  154. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  155. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  156. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
  157. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
  158. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
  159. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
  160. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +1121 -0
  161. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +2183 -0
  162. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
  163. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  164. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  165. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  166. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  167. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  168. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  169. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  170. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  171. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  172. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  173. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  174. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  175. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  176. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
  177. package/package.json +2 -2
  178. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  179. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  180. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
  181. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  182. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  183. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
  184. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  185. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  186. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
@@ -0,0 +1,222 @@
1
+ // packages/protocol/src/canonical-json.mjs
2
+ var hasOwn = (value, key) => Object.hasOwn(value, key);
3
+ function assertUnicodeScalarString(value, path) {
4
+ for (let index = 0; index < value.length; index += 1) {
5
+ const code = value.charCodeAt(index);
6
+ if (code >= 55296 && code <= 56319) {
7
+ const next = value.charCodeAt(index + 1);
8
+ if (!(next >= 56320 && next <= 57343)) {
9
+ throw new TypeError(`JCS cannot canonicalize a lone high surrogate at ${path}.`);
10
+ }
11
+ index += 1;
12
+ } else if (code >= 56320 && code <= 57343) {
13
+ throw new TypeError(`JCS cannot canonicalize a lone low surrogate at ${path}.`);
14
+ }
15
+ }
16
+ }
17
+ function serialize(value, path, seen) {
18
+ if (value === null) return "null";
19
+ if (typeof value === "boolean") return value ? "true" : "false";
20
+ if (typeof value === "string") {
21
+ assertUnicodeScalarString(value, path);
22
+ return JSON.stringify(value);
23
+ }
24
+ if (typeof value === "number") {
25
+ if (!Number.isFinite(value)) throw new TypeError(`JCS requires a finite number at ${path}.`);
26
+ return JSON.stringify(value);
27
+ }
28
+ if (typeof value !== "object")
29
+ throw new TypeError(`JCS cannot canonicalize ${typeof value} at ${path}.`);
30
+ if (seen.has(value)) throw new TypeError(`JCS cannot canonicalize a cycle at ${path}.`);
31
+ seen.add(value);
32
+ try {
33
+ if (Array.isArray(value)) {
34
+ const entries2 = [];
35
+ for (let index = 0; index < value.length; index += 1) {
36
+ if (!hasOwn(value, index))
37
+ throw new TypeError(`JCS cannot canonicalize a sparse array at ${path}[${index}].`);
38
+ entries2.push(serialize(value[index], `${path}[${index}]`, seen));
39
+ }
40
+ return `[${entries2.join(",")}]`;
41
+ }
42
+ const prototype = Object.getPrototypeOf(value);
43
+ if (prototype !== Object.prototype && prototype !== null) {
44
+ throw new TypeError(`JCS requires a plain JSON object at ${path}.`);
45
+ }
46
+ const entries = Object.keys(value).sort().map((key) => {
47
+ assertUnicodeScalarString(key, `${path} key`);
48
+ return `${JSON.stringify(key)}:${serialize(value[key], `${path}.${key}`, seen)}`;
49
+ });
50
+ return `{${entries.join(",")}}`;
51
+ } finally {
52
+ seen.delete(value);
53
+ }
54
+ }
55
+ function canonicalizeJson(value) {
56
+ return serialize(value, "$", /* @__PURE__ */ new Set());
57
+ }
58
+ var SHA256_K = /* @__PURE__ */ new Int32Array([
59
+ 1116352408,
60
+ 1899447441,
61
+ 3049323471,
62
+ 3921009573,
63
+ 961987163,
64
+ 1508970993,
65
+ 2453635748,
66
+ 2870763221,
67
+ 3624381080,
68
+ 310598401,
69
+ 607225278,
70
+ 1426881987,
71
+ 1925078388,
72
+ 2162078206,
73
+ 2614888103,
74
+ 3248222580,
75
+ 3835390401,
76
+ 4022224774,
77
+ 264347078,
78
+ 604807628,
79
+ 770255983,
80
+ 1249150122,
81
+ 1555081692,
82
+ 1996064986,
83
+ 2554220882,
84
+ 2821834349,
85
+ 2952996808,
86
+ 3210313671,
87
+ 3336571891,
88
+ 3584528711,
89
+ 113926993,
90
+ 338241895,
91
+ 666307205,
92
+ 773529912,
93
+ 1294757372,
94
+ 1396182291,
95
+ 1695183700,
96
+ 1986661051,
97
+ 2177026350,
98
+ 2456956037,
99
+ 2730485921,
100
+ 2820302411,
101
+ 3259730800,
102
+ 3345764771,
103
+ 3516065817,
104
+ 3600352804,
105
+ 4094571909,
106
+ 275423344,
107
+ 430227734,
108
+ 506948616,
109
+ 659060556,
110
+ 883997877,
111
+ 958139571,
112
+ 1322822218,
113
+ 1537002063,
114
+ 1747873779,
115
+ 1955562222,
116
+ 2024104815,
117
+ 2227730452,
118
+ 2361852424,
119
+ 2428436474,
120
+ 2756734187,
121
+ 3204031479,
122
+ 3329325298
123
+ ]);
124
+ var rotr = (value, bits) => value >>> bits | value << 32 - bits;
125
+ function sha256Hex(value) {
126
+ const candidate = typeof value === "string" ? new TextEncoder().encode(value) : value;
127
+ if (!ArrayBuffer.isView(candidate) || Object.prototype.toString.call(candidate) !== "[object Uint8Array]") {
128
+ throw new TypeError("sha256Hex expects a string or Uint8Array.");
129
+ }
130
+ const input = new Uint8Array(candidate.buffer, candidate.byteOffset, candidate.byteLength);
131
+ const paddedLength = Math.ceil((input.length + 9) / 64) * 64;
132
+ const bytes = new Uint8Array(paddedLength);
133
+ bytes.set(input);
134
+ bytes[input.length] = 128;
135
+ const view = new DataView(bytes.buffer);
136
+ const bitLength = BigInt(input.length) * 8n;
137
+ view.setUint32(paddedLength - 8, Number(bitLength >> 32n & 0xffffffffn));
138
+ view.setUint32(paddedLength - 4, Number(bitLength & 0xffffffffn));
139
+ let h0 = 1779033703;
140
+ let h1 = 3144134277;
141
+ let h2 = 1013904242;
142
+ let h3 = 2773480762;
143
+ let h4 = 1359893119;
144
+ let h5 = 2600822924;
145
+ let h6 = 528734635;
146
+ let h7 = 1541459225;
147
+ const words = new Int32Array(64);
148
+ for (let offset = 0; offset < bytes.length; offset += 64) {
149
+ for (let index = 0; index < 16; index += 1) words[index] = view.getUint32(offset + index * 4);
150
+ for (let index = 16; index < 64; index += 1) {
151
+ const s0 = rotr(words[index - 15], 7) ^ rotr(words[index - 15], 18) ^ words[index - 15] >>> 3;
152
+ const s1 = rotr(words[index - 2], 17) ^ rotr(words[index - 2], 19) ^ words[index - 2] >>> 10;
153
+ words[index] = words[index - 16] + s0 + words[index - 7] + s1 | 0;
154
+ }
155
+ let a = h0;
156
+ let b = h1;
157
+ let c = h2;
158
+ let d = h3;
159
+ let e = h4;
160
+ let f = h5;
161
+ let g = h6;
162
+ let h = h7;
163
+ for (let index = 0; index < 64; index += 1) {
164
+ const s1 = rotr(e, 6) ^ rotr(e, 11) ^ rotr(e, 25);
165
+ const choice = e & f ^ ~e & g;
166
+ const temp1 = h + s1 + choice + SHA256_K[index] + words[index] | 0;
167
+ const s0 = rotr(a, 2) ^ rotr(a, 13) ^ rotr(a, 22);
168
+ const majority = a & b ^ a & c ^ b & c;
169
+ const temp2 = s0 + majority | 0;
170
+ h = g;
171
+ g = f;
172
+ f = e;
173
+ e = d + temp1 | 0;
174
+ d = c;
175
+ c = b;
176
+ b = a;
177
+ a = temp1 + temp2 | 0;
178
+ }
179
+ h0 = h0 + a | 0;
180
+ h1 = h1 + b | 0;
181
+ h2 = h2 + c | 0;
182
+ h3 = h3 + d | 0;
183
+ h4 = h4 + e | 0;
184
+ h5 = h5 + f | 0;
185
+ h6 = h6 + g | 0;
186
+ h7 = h7 + h | 0;
187
+ }
188
+ return [h0, h1, h2, h3, h4, h5, h6, h7].map((part) => (part >>> 0).toString(16).padStart(8, "0")).join("");
189
+ }
190
+ function deepFreeze(value) {
191
+ if (value && typeof value === "object" && !Object.isFrozen(value)) {
192
+ for (const nested of Object.values(value)) deepFreeze(nested);
193
+ Object.freeze(value);
194
+ }
195
+ return value;
196
+ }
197
+ function assertPlainDataAt(value, label, depth, seen) {
198
+ if (depth > 64) throw new TypeError(`${label} exceeds the maximum nesting depth.`);
199
+ if (value === null || ["string", "boolean"].includes(typeof value)) return;
200
+ if (typeof value === "number" && Number.isFinite(value)) return;
201
+ if (typeof value !== "object" || seen.has(value))
202
+ throw new TypeError(`${label} must be finite, acyclic JSON.`);
203
+ if (!Array.isArray(value) && ![Object.prototype, null].includes(Object.getPrototypeOf(value)))
204
+ throw new TypeError(`${label} must contain only plain JSON objects.`);
205
+ seen.add(value);
206
+ for (const [key, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
207
+ if (["__proto__", "prototype", "constructor"].includes(key) || !Object.hasOwn(descriptor, "value"))
208
+ throw new TypeError(`${label} contains a forbidden property.`);
209
+ assertPlainDataAt(descriptor.value, label, depth + 1, seen);
210
+ }
211
+ seen.delete(value);
212
+ }
213
+ function assertPlainData(value, label) {
214
+ assertPlainDataAt(value, label, 0, /* @__PURE__ */ new Set());
215
+ }
216
+
217
+ export {
218
+ canonicalizeJson,
219
+ sha256Hex,
220
+ deepFreeze,
221
+ assertPlainData
222
+ };
@@ -0,0 +1,198 @@
1
+ import {
2
+ uploadChunksFor
3
+ } from "./design-chunked-workspace-client.mjs";
4
+ import {
5
+ resourceSha256
6
+ } from "./design-resource-pack.mjs";
7
+ import {
8
+ ensurePrivateDirectory
9
+ } from "./design-owner-custody.mjs";
10
+ import {
11
+ assertLargeObjectContract
12
+ } from "./design-shared-protocol-contracts-31a760fc.mjs";
13
+ import {
14
+ canonicalizeJson
15
+ } from "./design-shared-protocol-contracts-75a938cc.mjs";
16
+
17
+ // packages/artifact/lib/artifact/upload-spool.mjs
18
+ import {
19
+ closeSync,
20
+ constants,
21
+ existsSync,
22
+ fstatSync,
23
+ fsyncSync,
24
+ lstatSync,
25
+ openSync,
26
+ readSync,
27
+ writeFileSync
28
+ } from "node:fs";
29
+ import { dirname, join, resolve } from "node:path";
30
+ function privateRead(path, limit) {
31
+ const fd = openSync(path, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0));
32
+ try {
33
+ const stat = fstatSync(fd);
34
+ if (!stat.isFile() || stat.isSymbolicLink() || stat.size > limit || process.platform !== "win32" && (stat.mode & 63 || stat.uid !== process.getuid()))
35
+ throw new TypeError("Upload spool must contain bounded private regular files.");
36
+ const bytes = new Uint8Array(Math.min(limit + 1, stat.size + 1));
37
+ let size = 0;
38
+ while (size < bytes.byteLength) {
39
+ const count = readSync(fd, bytes, size, bytes.byteLength - size, null);
40
+ if (!count) break;
41
+ size += count;
42
+ }
43
+ const after = fstatSync(fd);
44
+ if (size !== stat.size || after.size !== stat.size || after.mtimeMs !== stat.mtimeMs || after.ctimeMs !== stat.ctimeMs) {
45
+ throw new TypeError("Upload spool changed during its bounded private read.");
46
+ }
47
+ return bytes.subarray(0, size);
48
+ } finally {
49
+ closeSync(fd);
50
+ }
51
+ }
52
+ function writePrivate(path, bytes) {
53
+ const fd = openSync(
54
+ path,
55
+ constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | (constants.O_NOFOLLOW ?? 0),
56
+ 384
57
+ );
58
+ try {
59
+ writeFileSync(fd, bytes);
60
+ fsyncSync(fd);
61
+ } finally {
62
+ closeSync(fd);
63
+ }
64
+ }
65
+ function readPreparedUploadRequest(directory) {
66
+ directory = resolve(directory);
67
+ try {
68
+ lstatSync(directory);
69
+ } catch (cause) {
70
+ const error = new TypeError("Prepared upload spool is missing or inaccessible.");
71
+ if (cause?.code === "ENOENT") error.code = "ENOENT";
72
+ throw error;
73
+ }
74
+ ensurePrivateDirectory(directory, { label: "Upload" });
75
+ try {
76
+ const body = JSON.parse(
77
+ new TextDecoder("utf-8", { fatal: true }).decode(
78
+ privateRead(join(directory, "request.json"), 256 * 1024)
79
+ )
80
+ );
81
+ return assertLargeObjectContract(
82
+ body,
83
+ body?.manifest?.kind === "openplanr-company-resource-manifest" ? "company-resource-upload-prepare" : "encrypted-upload-prepare"
84
+ );
85
+ } catch (cause) {
86
+ const error = new TypeError("Prepared upload request is invalid or inaccessible.");
87
+ if (cause?.code === "ENOENT") error.code = "ENOENT";
88
+ throw error;
89
+ }
90
+ }
91
+ function spoolChunkReader(directory, body) {
92
+ assertLargeObjectContract(
93
+ body,
94
+ body?.manifest?.kind === "openplanr-company-resource-manifest" ? "company-resource-upload-prepare" : "encrypted-upload-prepare"
95
+ );
96
+ directory = resolve(directory);
97
+ ensurePrivateDirectory(directory, { label: "Upload" });
98
+ const saved = readPreparedUploadRequest(directory);
99
+ if (canonicalizeJson(saved) !== canonicalizeJson(body))
100
+ throw new TypeError("Upload spool request differs from owner custody.");
101
+ return async (index) => {
102
+ const expected = body.manifest.chunks[index];
103
+ if (!expected || expected.index !== index) throw new TypeError("Invalid spool chunk index.");
104
+ const bytes = privateRead(join(directory, `${index}.bin`), expected.byteLength);
105
+ if (bytes.byteLength !== expected.byteLength || await resourceSha256(bytes) !== expected.sha256)
106
+ throw new TypeError("Upload spool chunk is corrupt.");
107
+ return bytes;
108
+ };
109
+ }
110
+ var preparedUploadChunkReader = spoolChunkReader;
111
+ async function persistPreparedUploadSpool(body, chunks, directory) {
112
+ assertLargeObjectContract(
113
+ body,
114
+ body?.manifest?.kind === "openplanr-company-resource-manifest" ? "company-resource-upload-prepare" : "encrypted-upload-prepare"
115
+ );
116
+ if (!Array.isArray(chunks) || chunks.length !== body.manifest.chunks.length)
117
+ throw new TypeError("Prepared upload chunk count differs.");
118
+ directory = resolve(directory);
119
+ ensurePrivateDirectory(directory, { label: "Upload" });
120
+ for (const part of body.manifest.chunks) {
121
+ const path2 = join(directory, `${part.index}.bin`), bytes = chunks[part.index];
122
+ if (!(bytes instanceof Uint8Array) || bytes.byteLength !== part.byteLength || await resourceSha256(bytes) !== part.sha256)
123
+ throw new TypeError("Prepared upload bytes differ.");
124
+ if (existsSync(path2)) {
125
+ const existing = privateRead(path2, part.byteLength);
126
+ if (existing.byteLength !== part.byteLength || await resourceSha256(existing) !== part.sha256)
127
+ throw new TypeError("Existing upload spool will not be overwritten.");
128
+ } else writePrivate(path2, bytes);
129
+ }
130
+ const path = join(directory, "request.json"), serialized = canonicalizeJson(body);
131
+ if (existsSync(path)) {
132
+ if (new TextDecoder("utf-8", { fatal: true }).decode(privateRead(path, 256 * 1024)) !== serialized)
133
+ throw new TypeError("Existing spool request will not be overwritten.");
134
+ } else writePrivate(path, new TextEncoder().encode(serialized));
135
+ for (const ancestor of [directory, dirname(directory)]) {
136
+ const fd = openSync(ancestor, "r");
137
+ try {
138
+ fsyncSync(fd);
139
+ } finally {
140
+ closeSync(fd);
141
+ }
142
+ }
143
+ return directory;
144
+ }
145
+ async function persistUploadSpool(custody, root) {
146
+ const body = custody.pendingCreate ?? (custody.pendingMutation?.action === "publish" ? custody.pendingMutation.body : null);
147
+ if (!body) return;
148
+ if (custody.spoolDirectory) {
149
+ const reader = spoolChunkReader(custody.spoolDirectory, body);
150
+ for (const part of body.manifest.chunks) await reader(part.index);
151
+ return custody.spoolDirectory;
152
+ }
153
+ const chunks = uploadChunksFor(custody);
154
+ if (!chunks)
155
+ throw new TypeError("The pending upload has no durable spool; restore its recovery package.");
156
+ const directory = await persistPreparedUploadSpool(
157
+ body,
158
+ chunks,
159
+ join(resolve(root), custody.id, body.operationId)
160
+ );
161
+ for (let ancestor = dirname(directory); ; ancestor = dirname(ancestor)) {
162
+ const fd = openSync(ancestor, "r");
163
+ try {
164
+ fsyncSync(fd);
165
+ } finally {
166
+ closeSync(fd);
167
+ }
168
+ if (ancestor === dirname(resolve(root))) break;
169
+ }
170
+ custody.spoolDirectory = directory;
171
+ return directory;
172
+ }
173
+ async function copyUploadSpool(custody, destination) {
174
+ const body = custody.pendingCreate ?? (custody.pendingMutation?.action === "publish" ? custody.pendingMutation.body : null);
175
+ if (!body) return null;
176
+ if (existsSync(destination)) throw new TypeError("Recovery upload directory already exists.");
177
+ const reader = spoolChunkReader(custody.spoolDirectory, body);
178
+ ensurePrivateDirectory(destination, { label: "Recovery upload" });
179
+ for (const part of body.manifest.chunks)
180
+ writePrivate(join(destination, `${part.index}.bin`), await reader(part.index));
181
+ writePrivate(join(destination, "request.json"), new TextEncoder().encode(canonicalizeJson(body)));
182
+ const fd = openSync(destination, "r");
183
+ try {
184
+ fsyncSync(fd);
185
+ } finally {
186
+ closeSync(fd);
187
+ }
188
+ return destination;
189
+ }
190
+
191
+ export {
192
+ readPreparedUploadRequest,
193
+ spoolChunkReader,
194
+ preparedUploadChunkReader,
195
+ persistPreparedUploadSpool,
196
+ persistUploadSpool,
197
+ copyUploadSpool
198
+ };
@@ -45,11 +45,17 @@ import {
45
45
  listDesignRevisions,
46
46
  readDesignRevision,
47
47
  readJson
48
- } from "./design-escape.mjs";
49
- import "./design-pako-esm.mjs";
48
+ } from "./design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs";
49
+ import "./design-encrypted-workspace-client.mjs";
50
+ import "./design-upload-spool.mjs";
51
+ import "./design-chunked-workspace-client.mjs";
52
+ import "./design-resource-pack.mjs";
53
+ import "./design-compression.mjs";
54
+ import "./design-owner-custody.mjs";
55
+ import "./design-runtime-home.mjs";
50
56
  import {
51
57
  acquireStartLock
52
- } from "./design-planr-home.mjs";
58
+ } from "./design-loopback-server.mjs";
53
59
  import "./design-parse5-parser.mjs";
54
60
  import "./design-parse5-tokenizer.mjs";
55
61
  import "./design-entities.mjs";
@@ -57,8 +63,9 @@ import {
57
63
  ARTIFACT_ERROR_CODES,
58
64
  PipelineError,
59
65
  digestArtifactEnvelope
60
- } from "./design-artifact-sources.mjs";
61
- import "./design-bounded-json-data.mjs";
66
+ } from "./design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs";
67
+ import "./design-shared-protocol-contracts-31a760fc.mjs";
68
+ import "./design-shared-protocol-contracts-75a938cc.mjs";
62
69
 
63
70
  // packages/design/lib/design/utility.mjs
64
71
  import { spawn } from "node:child_process";
@@ -0,0 +1,18 @@
1
+
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);