@happier-dev/stack 0.1.0-preview.96.1 → 0.2.0-preview.1775370152.55749

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 (3865) hide show
  1. package/README.md +13 -9
  2. package/bin/happier.mjs +3 -0
  3. package/bin/hstack.mjs +96 -14
  4. package/docs/happy-development.md +2 -2
  5. package/docs/isolated-linux-vm.md +23 -15
  6. package/docs/mobile-ios.md +3 -1
  7. package/docs/paths-and-env.md +1 -1
  8. package/docs/remote-access.md +5 -2
  9. package/docs/server-flavors.md +6 -6
  10. package/docs/stacks.md +2 -1
  11. package/docs/tauri.md +1 -0
  12. package/docs/worktrees-and-forks.md +1 -1
  13. package/extras/swiftbar/hstack.5s.sh +38 -14
  14. package/extras/swiftbar/install.sh +12 -0
  15. package/extras/swiftbar/lib/system.sh +159 -7
  16. package/extras/swiftbar/lib/utils.sh +2 -2
  17. package/node_modules/@happier-dev/agents/README.md +4 -0
  18. package/node_modules/@happier-dev/agents/dist/.tsbuildinfo +1 -0
  19. package/node_modules/@happier-dev/agents/dist/acp.d.ts +19 -0
  20. package/node_modules/@happier-dev/agents/dist/acp.d.ts.map +1 -0
  21. package/node_modules/@happier-dev/agents/dist/acp.js +37 -0
  22. package/node_modules/@happier-dev/agents/dist/acp.js.map +1 -0
  23. package/node_modules/@happier-dev/agents/dist/advancedModes.d.ts +26 -0
  24. package/node_modules/@happier-dev/agents/dist/advancedModes.d.ts.map +1 -0
  25. package/node_modules/@happier-dev/agents/dist/advancedModes.js +9 -0
  26. package/node_modules/@happier-dev/agents/dist/advancedModes.js.map +1 -0
  27. package/node_modules/@happier-dev/agents/dist/auth.d.ts +16 -0
  28. package/node_modules/@happier-dev/agents/dist/auth.d.ts.map +1 -0
  29. package/node_modules/@happier-dev/agents/dist/auth.js +109 -0
  30. package/node_modules/@happier-dev/agents/dist/auth.js.map +1 -0
  31. package/node_modules/@happier-dev/agents/dist/backendTargets.d.ts +2 -0
  32. package/node_modules/@happier-dev/agents/dist/backendTargets.d.ts.map +1 -0
  33. package/node_modules/@happier-dev/agents/dist/backendTargets.js +2 -0
  34. package/node_modules/@happier-dev/agents/dist/backendTargets.js.map +1 -0
  35. package/node_modules/@happier-dev/agents/dist/index.d.ts +41 -0
  36. package/node_modules/@happier-dev/agents/dist/index.d.ts.map +1 -0
  37. package/node_modules/@happier-dev/agents/dist/index.js +42 -0
  38. package/node_modules/@happier-dev/agents/dist/index.js.map +1 -0
  39. package/node_modules/@happier-dev/agents/dist/localCli.d.ts +17 -0
  40. package/node_modules/@happier-dev/agents/dist/localCli.d.ts.map +1 -0
  41. package/node_modules/@happier-dev/agents/dist/localCli.js +107 -0
  42. package/node_modules/@happier-dev/agents/dist/localCli.js.map +1 -0
  43. package/node_modules/@happier-dev/agents/dist/localControl.d.ts +9 -0
  44. package/node_modules/@happier-dev/agents/dist/localControl.d.ts.map +1 -0
  45. package/node_modules/@happier-dev/agents/dist/localControl.js +16 -0
  46. package/node_modules/@happier-dev/agents/dist/localControl.js.map +1 -0
  47. package/node_modules/@happier-dev/agents/dist/manifest.d.ts +525 -0
  48. package/node_modules/@happier-dev/agents/dist/manifest.d.ts.map +1 -0
  49. package/node_modules/@happier-dev/agents/dist/manifest.js +291 -0
  50. package/node_modules/@happier-dev/agents/dist/manifest.js.map +1 -0
  51. package/node_modules/@happier-dev/agents/dist/models.d.ts +66 -0
  52. package/node_modules/@happier-dev/agents/dist/models.d.ts.map +1 -0
  53. package/node_modules/@happier-dev/agents/dist/models.js +250 -0
  54. package/node_modules/@happier-dev/agents/dist/models.js.map +1 -0
  55. package/node_modules/@happier-dev/agents/dist/permissions/index.d.ts +46 -0
  56. package/node_modules/@happier-dev/agents/dist/permissions/index.d.ts.map +1 -0
  57. package/node_modules/@happier-dev/agents/dist/permissions/index.js +151 -0
  58. package/node_modules/@happier-dev/agents/dist/permissions/index.js.map +1 -0
  59. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.d.ts +254 -0
  60. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.d.ts.map +1 -0
  61. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.js +263 -0
  62. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.js.map +1 -0
  63. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.d.ts +48 -0
  64. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.d.ts.map +1 -0
  65. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.js +53 -0
  66. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.js.map +1 -0
  67. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/opencode.d.ts +75 -0
  68. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/opencode.d.ts.map +1 -0
  69. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/opencode.js +120 -0
  70. package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/opencode.js.map +1 -0
  71. package/node_modules/@happier-dev/agents/dist/providerSettings/index.d.ts +8 -0
  72. package/node_modules/@happier-dev/agents/dist/providerSettings/index.d.ts.map +1 -0
  73. package/node_modules/@happier-dev/agents/dist/providerSettings/index.js +5 -0
  74. package/node_modules/@happier-dev/agents/dist/providerSettings/index.js.map +1 -0
  75. package/node_modules/@happier-dev/agents/dist/providerSettings/registry.d.ts +7 -0
  76. package/node_modules/@happier-dev/agents/dist/providerSettings/registry.d.ts.map +1 -0
  77. package/node_modules/@happier-dev/agents/dist/providerSettings/registry.js +34 -0
  78. package/node_modules/@happier-dev/agents/dist/providerSettings/registry.js.map +1 -0
  79. package/node_modules/@happier-dev/agents/dist/providerSettings/types.d.ts +18 -0
  80. package/node_modules/@happier-dev/agents/dist/providerSettings/types.d.ts.map +1 -0
  81. package/node_modules/@happier-dev/agents/dist/providerSettings/types.js +2 -0
  82. package/node_modules/@happier-dev/agents/dist/providerSettings/types.js.map +1 -0
  83. package/node_modules/@happier-dev/agents/dist/providers/claude/effort.d.ts +6 -0
  84. package/node_modules/@happier-dev/agents/dist/providers/claude/effort.d.ts.map +1 -0
  85. package/node_modules/@happier-dev/agents/dist/providers/claude/effort.js +30 -0
  86. package/node_modules/@happier-dev/agents/dist/providers/claude/effort.js.map +1 -0
  87. package/node_modules/@happier-dev/agents/dist/providers/claude/index.d.ts +3 -0
  88. package/node_modules/@happier-dev/agents/dist/providers/claude/index.d.ts.map +1 -0
  89. package/node_modules/@happier-dev/agents/dist/providers/claude/index.js +3 -0
  90. package/node_modules/@happier-dev/agents/dist/providers/claude/index.js.map +1 -0
  91. package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.d.ts +7 -0
  92. package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.d.ts.map +1 -0
  93. package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.js +8 -0
  94. package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.js.map +1 -0
  95. package/node_modules/@happier-dev/agents/dist/providers/index.d.ts +3 -0
  96. package/node_modules/@happier-dev/agents/dist/providers/index.d.ts.map +1 -0
  97. package/node_modules/@happier-dev/agents/dist/providers/index.js +3 -0
  98. package/node_modules/@happier-dev/agents/dist/providers/index.js.map +1 -0
  99. package/node_modules/@happier-dev/agents/dist/providers/pi/index.d.ts +2 -0
  100. package/node_modules/@happier-dev/agents/dist/providers/pi/index.d.ts.map +1 -0
  101. package/node_modules/@happier-dev/agents/dist/providers/pi/index.js +2 -0
  102. package/node_modules/@happier-dev/agents/dist/providers/pi/index.js.map +1 -0
  103. package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.d.ts +8 -0
  104. package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.d.ts.map +1 -0
  105. package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.js +26 -0
  106. package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.js.map +1 -0
  107. package/node_modules/@happier-dev/agents/dist/providers/providerCliInstallGuidance.d.ts +4 -0
  108. package/node_modules/@happier-dev/agents/dist/providers/providerCliInstallGuidance.d.ts.map +1 -0
  109. package/node_modules/@happier-dev/agents/dist/providers/providerCliInstallGuidance.js +56 -0
  110. package/node_modules/@happier-dev/agents/dist/providers/providerCliInstallGuidance.js.map +1 -0
  111. package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.d.ts +36 -0
  112. package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.d.ts.map +1 -0
  113. package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.js +212 -0
  114. package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.js.map +1 -0
  115. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromFlavor.d.ts +3 -0
  116. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromFlavor.d.ts.map +1 -0
  117. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromFlavor.js +24 -0
  118. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromFlavor.js.map +1 -0
  119. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.d.ts +4 -0
  120. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.d.ts.map +1 -0
  121. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.js +39 -0
  122. package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.js.map +1 -0
  123. package/node_modules/@happier-dev/agents/dist/runtimeKinds.d.ts +30 -0
  124. package/node_modules/@happier-dev/agents/dist/runtimeKinds.d.ts.map +1 -0
  125. package/node_modules/@happier-dev/agents/dist/runtimeKinds.js +51 -0
  126. package/node_modules/@happier-dev/agents/dist/runtimeKinds.js.map +1 -0
  127. package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.d.ts +87 -0
  128. package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.d.ts.map +1 -0
  129. package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.js +151 -0
  130. package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.js.map +1 -0
  131. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.d.ts +30 -0
  132. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.d.ts.map +1 -0
  133. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.js +63 -0
  134. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.js.map +1 -0
  135. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeIdentity.d.ts +12 -0
  136. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeIdentity.d.ts.map +1 -0
  137. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeIdentity.js +80 -0
  138. package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeIdentity.js.map +1 -0
  139. package/node_modules/@happier-dev/agents/dist/sessionControls/existingSessionAutomationPolicy.d.ts +16 -0
  140. package/node_modules/@happier-dev/agents/dist/sessionControls/existingSessionAutomationPolicy.d.ts.map +1 -0
  141. package/node_modules/@happier-dev/agents/dist/sessionControls/existingSessionAutomationPolicy.js +57 -0
  142. package/node_modules/@happier-dev/agents/dist/sessionControls/existingSessionAutomationPolicy.js.map +1 -0
  143. package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.d.ts +22 -0
  144. package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.d.ts.map +1 -0
  145. package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.js +49 -0
  146. package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.js.map +1 -0
  147. package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.d.ts +13 -0
  148. package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.d.ts.map +1 -0
  149. package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.js +41 -0
  150. package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.js.map +1 -0
  151. package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.d.ts +19 -0
  152. package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.d.ts.map +1 -0
  153. package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.js +24 -0
  154. package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.js.map +1 -0
  155. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeRuntimeDescriptorExtra.d.ts +24 -0
  156. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeRuntimeDescriptorExtra.d.ts.map +1 -0
  157. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeRuntimeDescriptorExtra.js +56 -0
  158. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeRuntimeDescriptorExtra.js.map +1 -0
  159. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeSessionRuntimeHandle.d.ts +12 -0
  160. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeSessionRuntimeHandle.d.ts.map +1 -0
  161. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeSessionRuntimeHandle.js +48 -0
  162. package/node_modules/@happier-dev/agents/dist/sessionControls/opencodeSessionRuntimeHandle.js.map +1 -0
  163. package/node_modules/@happier-dev/agents/dist/sessionControls/providerSessionBackends.d.ts +29 -0
  164. package/node_modules/@happier-dev/agents/dist/sessionControls/providerSessionBackends.d.ts.map +1 -0
  165. package/node_modules/@happier-dev/agents/dist/sessionControls/providerSessionBackends.js +87 -0
  166. package/node_modules/@happier-dev/agents/dist/sessionControls/providerSessionBackends.js.map +1 -0
  167. package/node_modules/@happier-dev/agents/dist/sessionControls/publish.d.ts +19 -0
  168. package/node_modules/@happier-dev/agents/dist/sessionControls/publish.d.ts.map +1 -0
  169. package/node_modules/@happier-dev/agents/dist/sessionControls/publish.js +120 -0
  170. package/node_modules/@happier-dev/agents/dist/sessionControls/publish.js.map +1 -0
  171. package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.d.ts +13 -0
  172. package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.d.ts.map +1 -0
  173. package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.js +54 -0
  174. package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.js.map +1 -0
  175. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorHandoffPolicy.d.ts +18 -0
  176. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorHandoffPolicy.d.ts.map +1 -0
  177. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorHandoffPolicy.js +56 -0
  178. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorHandoffPolicy.js.map +1 -0
  179. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.d.ts +16 -0
  180. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.d.ts.map +1 -0
  181. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.js +79 -0
  182. package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.js.map +1 -0
  183. package/node_modules/@happier-dev/agents/dist/sessionModes.d.ts +22 -0
  184. package/node_modules/@happier-dev/agents/dist/sessionModes.d.ts.map +1 -0
  185. package/node_modules/@happier-dev/agents/dist/sessionModes.js +54 -0
  186. package/node_modules/@happier-dev/agents/dist/sessionModes.js.map +1 -0
  187. package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.d.ts +21 -0
  188. package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.d.ts.map +1 -0
  189. package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.js +101 -0
  190. package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.js.map +1 -0
  191. package/node_modules/@happier-dev/agents/dist/tools.d.ts +10 -0
  192. package/node_modules/@happier-dev/agents/dist/tools.d.ts.map +1 -0
  193. package/node_modules/@happier-dev/agents/dist/tools.js +14 -0
  194. package/node_modules/@happier-dev/agents/dist/tools.js.map +1 -0
  195. package/node_modules/@happier-dev/agents/dist/types.d.ts +112 -0
  196. package/node_modules/@happier-dev/agents/dist/types.d.ts.map +1 -0
  197. package/node_modules/@happier-dev/agents/dist/types.js +18 -0
  198. package/node_modules/@happier-dev/agents/dist/types.js.map +1 -0
  199. package/node_modules/@happier-dev/agents/dist/voice/index.d.ts +2 -0
  200. package/node_modules/@happier-dev/agents/dist/voice/index.d.ts.map +1 -0
  201. package/node_modules/@happier-dev/agents/dist/voice/index.js +2 -0
  202. package/node_modules/@happier-dev/agents/dist/voice/index.js.map +1 -0
  203. package/node_modules/@happier-dev/agents/dist/voice/normalizeVoiceAgentTurnTranscriptText.d.ts +2 -0
  204. package/node_modules/@happier-dev/agents/dist/voice/normalizeVoiceAgentTurnTranscriptText.d.ts.map +1 -0
  205. package/node_modules/@happier-dev/agents/dist/voice/normalizeVoiceAgentTurnTranscriptText.js +36 -0
  206. package/node_modules/@happier-dev/agents/dist/voice/normalizeVoiceAgentTurnTranscriptText.js.map +1 -0
  207. package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.d.ts +25 -0
  208. package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.d.ts.map +1 -0
  209. package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.js +162 -0
  210. package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.js.map +1 -0
  211. package/node_modules/@happier-dev/agents/dist/voice/voiceToolDocumentation.d.ts +9 -0
  212. package/node_modules/@happier-dev/agents/dist/voice/voiceToolDocumentation.d.ts.map +1 -0
  213. package/node_modules/@happier-dev/agents/dist/voice/voiceToolDocumentation.js +88 -0
  214. package/node_modules/@happier-dev/agents/dist/voice/voiceToolDocumentation.js.map +1 -0
  215. package/node_modules/@happier-dev/agents/node_modules/zod/LICENSE +21 -0
  216. package/node_modules/@happier-dev/agents/node_modules/zod/README.md +208 -0
  217. package/node_modules/@happier-dev/agents/node_modules/zod/index.cjs +33 -0
  218. package/node_modules/@happier-dev/agents/node_modules/zod/index.d.cts +4 -0
  219. package/node_modules/@happier-dev/agents/node_modules/zod/index.d.ts +4 -0
  220. package/node_modules/@happier-dev/agents/node_modules/zod/index.js +4 -0
  221. package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.cjs +17 -0
  222. package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.d.cts +1 -0
  223. package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.d.ts +1 -0
  224. package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.js +1 -0
  225. package/node_modules/@happier-dev/agents/node_modules/zod/locales/package.json +6 -0
  226. package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.cjs +32 -0
  227. package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.d.cts +3 -0
  228. package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.d.ts +3 -0
  229. package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.js +3 -0
  230. package/node_modules/@happier-dev/agents/node_modules/zod/mini/package.json +6 -0
  231. package/node_modules/@happier-dev/agents/node_modules/zod/package.json +135 -0
  232. package/node_modules/@happier-dev/agents/node_modules/zod/src/index.ts +4 -0
  233. package/node_modules/@happier-dev/agents/node_modules/zod/src/locales/index.ts +1 -0
  234. package/node_modules/@happier-dev/agents/node_modules/zod/src/mini/index.ts +3 -0
  235. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/ZodError.ts +330 -0
  236. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  237. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  238. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  239. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  240. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  241. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  242. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  243. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  244. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  245. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/errors.ts +13 -0
  246. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/external.ts +6 -0
  247. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  248. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  249. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  250. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  251. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  252. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/util.ts +224 -0
  253. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/index.ts +4 -0
  254. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/locales/en.ts +124 -0
  255. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/standard-schema.ts +113 -0
  256. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  257. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  258. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  259. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  260. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  261. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  262. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  263. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  264. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  265. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  266. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  267. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  268. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  269. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  270. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  271. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  272. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  273. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  274. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  275. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  276. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  277. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  278. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  279. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  280. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  281. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  282. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  283. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  284. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  285. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  286. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  287. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  288. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  289. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  290. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  291. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  292. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  293. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  294. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  295. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  296. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  297. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  298. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  299. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  300. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  301. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  302. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  303. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  304. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  305. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  306. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  307. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  308. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  309. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  310. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  311. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  312. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  313. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  314. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  315. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  316. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  317. package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/types.ts +5138 -0
  318. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/checks.ts +32 -0
  319. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  320. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/compat.ts +70 -0
  321. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/errors.ts +82 -0
  322. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/external.ts +51 -0
  323. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
  324. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/index.ts +5 -0
  325. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/iso.ts +90 -0
  326. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/parse.ts +82 -0
  327. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
  328. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  329. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  330. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  331. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  332. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  333. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  334. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  335. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  336. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  337. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
  338. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  339. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  340. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
  341. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  342. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  343. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  344. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  345. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  346. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
  347. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  348. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  349. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
  350. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  351. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
  352. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  353. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  354. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  355. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  356. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +734 -0
  357. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  358. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  359. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  360. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  361. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  362. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  363. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  364. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  365. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  366. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  367. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  368. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  369. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  370. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  371. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
  372. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/object.test.ts +640 -0
  373. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/optional.test.ts +223 -0
  374. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/partial.test.ts +427 -0
  375. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  376. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  377. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  378. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
  379. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  380. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  381. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  382. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  383. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/record.test.ts +632 -0
  384. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
  385. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/refine.test.ts +570 -0
  386. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  387. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  388. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  389. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  390. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/string.test.ts +1175 -0
  391. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  392. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  393. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  394. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2990 -0
  395. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
  396. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
  397. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
  398. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  399. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  400. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  401. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/api.ts +1798 -0
  402. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/checks.ts +1293 -0
  403. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/config.ts +15 -0
  404. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/core.ts +138 -0
  405. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/doc.ts +44 -0
  406. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/errors.ts +448 -0
  407. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/index.ts +16 -0
  408. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  409. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
  410. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  411. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/parse.ts +195 -0
  412. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/regexes.ts +183 -0
  413. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/registries.ts +105 -0
  414. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/schemas.ts +4538 -0
  415. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  416. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  417. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  418. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  419. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  420. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  421. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  422. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  423. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  424. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  425. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +83 -0
  426. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
  427. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  428. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
  429. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/util.ts +966 -0
  430. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/versions.ts +5 -0
  431. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/zsf.ts +323 -0
  432. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/index.ts +4 -0
  433. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ar.ts +115 -0
  434. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/az.ts +111 -0
  435. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/be.ts +176 -0
  436. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/bg.ts +128 -0
  437. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ca.ts +116 -0
  438. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/cs.ts +118 -0
  439. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/da.ts +123 -0
  440. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/de.ts +116 -0
  441. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/en.ts +119 -0
  442. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/eo.ts +118 -0
  443. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/es.ts +141 -0
  444. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fa.ts +126 -0
  445. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fi.ts +121 -0
  446. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  447. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fr.ts +116 -0
  448. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/he.ts +246 -0
  449. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/hu.ts +117 -0
  450. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/hy.ts +164 -0
  451. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/id.ts +115 -0
  452. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/index.ts +49 -0
  453. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/is.ts +119 -0
  454. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/it.ts +116 -0
  455. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ja.ts +114 -0
  456. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ka.ts +123 -0
  457. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/kh.ts +7 -0
  458. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/km.ts +119 -0
  459. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ko.ts +121 -0
  460. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/lt.ts +239 -0
  461. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/mk.ts +118 -0
  462. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ms.ts +115 -0
  463. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/nl.ts +121 -0
  464. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/no.ts +116 -0
  465. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ota.ts +117 -0
  466. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/pl.ts +118 -0
  467. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ps.ts +126 -0
  468. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/pt.ts +116 -0
  469. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ru.ts +176 -0
  470. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/sl.ts +118 -0
  471. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/sv.ts +119 -0
  472. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ta.ts +118 -0
  473. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/th.ts +119 -0
  474. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/tr.ts +111 -0
  475. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ua.ts +7 -0
  476. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/uk.ts +117 -0
  477. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ur.ts +119 -0
  478. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/uz.ts +116 -0
  479. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/vi.ts +117 -0
  480. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/yo.ts +124 -0
  481. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  482. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  483. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/checks.ts +32 -0
  484. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  485. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/external.ts +40 -0
  486. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/index.ts +3 -0
  487. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/iso.ts +66 -0
  488. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/parse.ts +14 -0
  489. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
  490. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  491. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  492. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  493. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  494. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
  495. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  496. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  497. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  498. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/index.test.ts +963 -0
  499. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  500. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  501. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  502. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  503. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  504. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
  505. package/node_modules/@happier-dev/agents/node_modules/zod/src/v4-mini/index.ts +3 -0
  506. package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.cjs +138 -0
  507. package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.d.cts +164 -0
  508. package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.d.ts +164 -0
  509. package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.js +133 -0
  510. package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.cjs +17 -0
  511. package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.d.cts +5 -0
  512. package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.d.ts +5 -0
  513. package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.js +9 -0
  514. package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.cjs +22 -0
  515. package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.d.cts +6 -0
  516. package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.d.ts +6 -0
  517. package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.js +6 -0
  518. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  519. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  520. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  521. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  522. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  523. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  524. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  525. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  526. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  527. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  528. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  529. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  530. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  531. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  532. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  533. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  534. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  535. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  536. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  537. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  538. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.cjs +137 -0
  539. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.d.cts +85 -0
  540. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.d.ts +85 -0
  541. package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.js +133 -0
  542. package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.cjs +33 -0
  543. package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.d.cts +4 -0
  544. package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.d.ts +4 -0
  545. package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.js +4 -0
  546. package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.cjs +112 -0
  547. package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.d.cts +3 -0
  548. package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.d.ts +3 -0
  549. package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.js +109 -0
  550. package/node_modules/@happier-dev/agents/node_modules/zod/v3/package.json +6 -0
  551. package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.cjs +2 -0
  552. package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.d.cts +102 -0
  553. package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.d.ts +102 -0
  554. package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.js +1 -0
  555. package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.cjs +3777 -0
  556. package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.d.cts +1034 -0
  557. package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.d.ts +1034 -0
  558. package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.js +3695 -0
  559. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.cjs +33 -0
  560. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.d.cts +1 -0
  561. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.d.ts +1 -0
  562. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.js +1 -0
  563. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.cjs +47 -0
  564. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  565. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  566. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.js +17 -0
  567. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.cjs +61 -0
  568. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.d.cts +50 -0
  569. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.d.ts +50 -0
  570. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.js +31 -0
  571. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.cjs +74 -0
  572. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.d.cts +30 -0
  573. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.d.ts +30 -0
  574. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.js +48 -0
  575. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.cjs +73 -0
  576. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.d.cts +15 -0
  577. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.d.ts +15 -0
  578. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.js +20 -0
  579. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
  580. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  581. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  582. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.js +584 -0
  583. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.cjs +33 -0
  584. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.d.cts +4 -0
  585. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.d.ts +4 -0
  586. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.js +4 -0
  587. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.cjs +60 -0
  588. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.d.cts +22 -0
  589. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.d.ts +22 -0
  590. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.js +30 -0
  591. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/package.json +6 -0
  592. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.cjs +41 -0
  593. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.d.cts +31 -0
  594. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.d.ts +31 -0
  595. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.js +15 -0
  596. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.cjs +1272 -0
  597. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.d.cts +739 -0
  598. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.d.ts +739 -0
  599. package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.js +1157 -0
  600. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.cjs +1222 -0
  601. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.d.cts +304 -0
  602. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.d.ts +304 -0
  603. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.js +1082 -0
  604. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.cjs +601 -0
  605. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.d.cts +278 -0
  606. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.d.ts +278 -0
  607. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.js +575 -0
  608. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.cjs +83 -0
  609. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.d.cts +70 -0
  610. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.d.ts +70 -0
  611. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.js +76 -0
  612. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.cjs +39 -0
  613. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.d.cts +14 -0
  614. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.d.ts +14 -0
  615. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.js +35 -0
  616. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.cjs +213 -0
  617. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.d.cts +220 -0
  618. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.d.ts +220 -0
  619. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.js +182 -0
  620. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.cjs +47 -0
  621. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.d.cts +16 -0
  622. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.d.ts +16 -0
  623. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.js +16 -0
  624. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  625. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  626. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  627. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  628. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
  629. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  630. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  631. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.js +605 -0
  632. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.cjs +2 -0
  633. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  634. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  635. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.js +1 -0
  636. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/package.json +6 -0
  637. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.cjs +131 -0
  638. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.d.cts +49 -0
  639. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.d.ts +49 -0
  640. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.js +93 -0
  641. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.cjs +166 -0
  642. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.d.cts +79 -0
  643. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.d.ts +79 -0
  644. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.js +133 -0
  645. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.cjs +56 -0
  646. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.d.cts +35 -0
  647. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.d.ts +35 -0
  648. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.js +51 -0
  649. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.cjs +2124 -0
  650. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.d.cts +1146 -0
  651. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.d.ts +1146 -0
  652. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.js +2093 -0
  653. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  654. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  655. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  656. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.js +1 -0
  657. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
  658. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  659. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  660. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.js +437 -0
  661. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.cjs +710 -0
  662. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.d.cts +199 -0
  663. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.d.ts +199 -0
  664. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.js +651 -0
  665. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.cjs +8 -0
  666. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.d.cts +5 -0
  667. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.d.ts +5 -0
  668. package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.js +5 -0
  669. package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.cjs +22 -0
  670. package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.d.cts +3 -0
  671. package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.d.ts +3 -0
  672. package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.js +3 -0
  673. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.cjs +133 -0
  674. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.d.cts +5 -0
  675. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.d.ts +4 -0
  676. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.js +106 -0
  677. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.cjs +132 -0
  678. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.d.cts +5 -0
  679. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.d.ts +4 -0
  680. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.js +105 -0
  681. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.cjs +183 -0
  682. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.d.cts +5 -0
  683. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.d.ts +4 -0
  684. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.js +156 -0
  685. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.cjs +147 -0
  686. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.d.cts +5 -0
  687. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.d.ts +4 -0
  688. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.js +120 -0
  689. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.cjs +134 -0
  690. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.d.cts +5 -0
  691. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.d.ts +4 -0
  692. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.js +107 -0
  693. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.cjs +138 -0
  694. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.d.cts +5 -0
  695. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.d.ts +4 -0
  696. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.js +111 -0
  697. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.cjs +142 -0
  698. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.d.cts +5 -0
  699. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.d.ts +4 -0
  700. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.js +115 -0
  701. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.cjs +135 -0
  702. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.d.cts +5 -0
  703. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.d.ts +4 -0
  704. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.js +108 -0
  705. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.cjs +136 -0
  706. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.d.cts +5 -0
  707. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.d.ts +4 -0
  708. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.js +109 -0
  709. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.cjs +136 -0
  710. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.d.cts +5 -0
  711. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.d.ts +4 -0
  712. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.js +109 -0
  713. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.cjs +159 -0
  714. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.d.cts +5 -0
  715. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.d.ts +4 -0
  716. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.js +132 -0
  717. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.cjs +141 -0
  718. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.d.cts +5 -0
  719. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.d.ts +4 -0
  720. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.js +114 -0
  721. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.cjs +139 -0
  722. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.d.cts +5 -0
  723. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.d.ts +4 -0
  724. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.js +112 -0
  725. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  726. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  727. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  728. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.js +107 -0
  729. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.cjs +135 -0
  730. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.d.cts +5 -0
  731. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.d.ts +4 -0
  732. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.js +108 -0
  733. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.cjs +241 -0
  734. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.d.cts +5 -0
  735. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.d.ts +4 -0
  736. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.js +214 -0
  737. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.cjs +135 -0
  738. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.d.cts +5 -0
  739. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.d.ts +4 -0
  740. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.js +108 -0
  741. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.cjs +174 -0
  742. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.d.cts +5 -0
  743. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.d.ts +4 -0
  744. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.js +147 -0
  745. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.cjs +133 -0
  746. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.d.cts +5 -0
  747. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.d.ts +4 -0
  748. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.js +106 -0
  749. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.cjs +104 -0
  750. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.d.cts +49 -0
  751. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.d.ts +49 -0
  752. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.js +49 -0
  753. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.cjs +136 -0
  754. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.d.cts +5 -0
  755. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.d.ts +4 -0
  756. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.js +109 -0
  757. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.cjs +135 -0
  758. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.d.cts +5 -0
  759. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.d.ts +4 -0
  760. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.js +108 -0
  761. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.cjs +134 -0
  762. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.d.cts +5 -0
  763. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.d.ts +4 -0
  764. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.js +107 -0
  765. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.cjs +139 -0
  766. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.d.cts +5 -0
  767. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.d.ts +4 -0
  768. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.js +112 -0
  769. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.cjs +12 -0
  770. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.d.cts +5 -0
  771. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.d.ts +5 -0
  772. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.js +5 -0
  773. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.cjs +137 -0
  774. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.d.cts +5 -0
  775. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.d.ts +4 -0
  776. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.js +110 -0
  777. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.cjs +138 -0
  778. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.d.cts +5 -0
  779. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.d.ts +4 -0
  780. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.js +111 -0
  781. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.cjs +230 -0
  782. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.d.cts +5 -0
  783. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.d.ts +4 -0
  784. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.js +203 -0
  785. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.cjs +136 -0
  786. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.d.cts +5 -0
  787. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.d.ts +4 -0
  788. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.js +109 -0
  789. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.cjs +134 -0
  790. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.d.cts +5 -0
  791. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.d.ts +4 -0
  792. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.js +107 -0
  793. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.cjs +137 -0
  794. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.d.cts +5 -0
  795. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.d.ts +4 -0
  796. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.js +110 -0
  797. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.cjs +135 -0
  798. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.d.cts +5 -0
  799. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.d.ts +4 -0
  800. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.js +108 -0
  801. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.cjs +136 -0
  802. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.d.cts +5 -0
  803. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.d.ts +4 -0
  804. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.js +109 -0
  805. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/package.json +6 -0
  806. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.cjs +136 -0
  807. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.d.cts +5 -0
  808. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.d.ts +4 -0
  809. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.js +109 -0
  810. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.cjs +141 -0
  811. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.d.cts +5 -0
  812. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.d.ts +4 -0
  813. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.js +114 -0
  814. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.cjs +135 -0
  815. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.d.cts +5 -0
  816. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.d.ts +4 -0
  817. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.js +108 -0
  818. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.cjs +183 -0
  819. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.d.cts +5 -0
  820. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.d.ts +4 -0
  821. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.js +156 -0
  822. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.cjs +136 -0
  823. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.d.cts +5 -0
  824. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.d.ts +4 -0
  825. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.js +109 -0
  826. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.cjs +137 -0
  827. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.d.cts +5 -0
  828. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.d.ts +4 -0
  829. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.js +110 -0
  830. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.cjs +137 -0
  831. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.d.cts +5 -0
  832. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.d.ts +4 -0
  833. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.js +110 -0
  834. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.cjs +137 -0
  835. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.d.cts +5 -0
  836. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.d.ts +4 -0
  837. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.js +110 -0
  838. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.cjs +132 -0
  839. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.d.cts +5 -0
  840. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.d.ts +4 -0
  841. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.js +105 -0
  842. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.cjs +12 -0
  843. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.d.cts +5 -0
  844. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.d.ts +5 -0
  845. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.js +5 -0
  846. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.cjs +135 -0
  847. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.d.cts +5 -0
  848. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.d.ts +4 -0
  849. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.js +108 -0
  850. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.cjs +137 -0
  851. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.d.cts +5 -0
  852. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.d.ts +4 -0
  853. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.js +110 -0
  854. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.cjs +136 -0
  855. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.d.cts +5 -0
  856. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.d.ts +4 -0
  857. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.js +109 -0
  858. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.cjs +135 -0
  859. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.d.cts +5 -0
  860. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.d.ts +4 -0
  861. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.js +108 -0
  862. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.cjs +134 -0
  863. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.d.cts +5 -0
  864. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.d.ts +4 -0
  865. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.js +107 -0
  866. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  867. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  868. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  869. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.js +109 -0
  870. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  871. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  872. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  873. package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.js +107 -0
  874. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.cjs +34 -0
  875. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.d.cts +1 -0
  876. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.d.ts +1 -0
  877. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.js +1 -0
  878. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.cjs +52 -0
  879. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  880. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  881. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.js +22 -0
  882. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.cjs +63 -0
  883. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.d.cts +12 -0
  884. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.d.ts +12 -0
  885. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.js +14 -0
  886. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.cjs +32 -0
  887. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.d.cts +3 -0
  888. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.d.ts +3 -0
  889. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.js +3 -0
  890. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.cjs +64 -0
  891. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.d.cts +22 -0
  892. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.d.ts +22 -0
  893. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.js +34 -0
  894. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/package.json +6 -0
  895. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.cjs +16 -0
  896. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.d.cts +1 -0
  897. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.d.ts +1 -0
  898. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.js +1 -0
  899. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.cjs +1046 -0
  900. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.d.cts +427 -0
  901. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.d.ts +427 -0
  902. package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.js +925 -0
  903. package/node_modules/@happier-dev/agents/node_modules/zod/v4/package.json +6 -0
  904. package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.cjs +32 -0
  905. package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.d.cts +3 -0
  906. package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.d.ts +3 -0
  907. package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.js +3 -0
  908. package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/package.json +6 -0
  909. package/node_modules/@happier-dev/agents/package.json +17 -0
  910. package/node_modules/@happier-dev/cli-common/dist/.tsbuildinfo +1 -0
  911. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.d.ts +15 -0
  912. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.d.ts.map +1 -0
  913. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.js +157 -0
  914. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.js.map +1 -0
  915. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.d.ts +29 -0
  916. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.d.ts.map +1 -0
  917. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.js +84 -0
  918. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.js.map +1 -0
  919. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.d.ts +35 -0
  920. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.d.ts.map +1 -0
  921. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.js +105 -0
  922. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.js.map +1 -0
  923. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.d.ts +2 -0
  924. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.d.ts.map +1 -0
  925. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.js +29 -0
  926. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.js.map +1 -0
  927. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.d.ts +15 -0
  928. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.d.ts.map +1 -0
  929. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.js +34 -0
  930. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.js.map +1 -0
  931. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.d.ts +2 -0
  932. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.d.ts.map +1 -0
  933. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.js +76 -0
  934. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.js.map +1 -0
  935. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.d.ts +6 -0
  936. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.d.ts.map +1 -0
  937. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.js +6 -0
  938. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.js.map +1 -0
  939. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.d.ts +13 -0
  940. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.d.ts.map +1 -0
  941. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.js +65 -0
  942. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.js.map +1 -0
  943. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/targets.d.ts +18 -0
  944. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/targets.d.ts.map +1 -0
  945. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/targets.js +30 -0
  946. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/targets.js.map +1 -0
  947. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.d.ts +9 -0
  948. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.d.ts.map +1 -0
  949. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.js +101 -0
  950. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.js.map +1 -0
  951. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.d.ts +93 -0
  952. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.d.ts.map +1 -0
  953. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.js +98 -0
  954. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.js.map +1 -0
  955. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/extractReleasePayloadRootFromArchive.d.ts +6 -0
  956. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/extractReleasePayloadRootFromArchive.d.ts.map +1 -0
  957. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/extractReleasePayloadRootFromArchive.js +40 -0
  958. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/extractReleasePayloadRootFromArchive.js.map +1 -0
  959. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.d.ts +30 -0
  960. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.d.ts.map +1 -0
  961. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js +18 -0
  962. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js.map +1 -0
  963. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.d.ts +28 -0
  964. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.d.ts.map +1 -0
  965. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.js +35 -0
  966. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.js.map +1 -0
  967. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.d.ts +12 -0
  968. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.d.ts.map +1 -0
  969. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.js +37 -0
  970. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.js.map +1 -0
  971. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/listInstalledVersionIdsNewestFirst.d.ts +9 -0
  972. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/listInstalledVersionIdsNewestFirst.d.ts.map +1 -0
  973. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/listInstalledVersionIdsNewestFirst.js +17 -0
  974. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/listInstalledVersionIdsNewestFirst.js.map +1 -0
  975. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.d.ts +28 -0
  976. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.d.ts.map +1 -0
  977. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.js +186 -0
  978. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.js.map +1 -0
  979. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.d.ts +2 -0
  980. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.d.ts.map +1 -0
  981. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.js +151 -0
  982. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.js.map +1 -0
  983. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.d.ts +16 -0
  984. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.d.ts.map +1 -0
  985. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.js +65 -0
  986. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.js.map +1 -0
  987. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.d.ts +17 -0
  988. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.d.ts.map +1 -0
  989. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.js +26 -0
  990. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.js.map +1 -0
  991. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.d.ts +96 -0
  992. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.d.ts.map +1 -0
  993. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.js +163 -0
  994. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.js.map +1 -0
  995. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.d.ts +2 -0
  996. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.d.ts.map +1 -0
  997. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.js +145 -0
  998. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.js.map +1 -0
  999. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.d.ts +16 -0
  1000. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.d.ts.map +1 -0
  1001. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.js +191 -0
  1002. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.js.map +1 -0
  1003. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.d.ts +17 -0
  1004. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.d.ts.map +1 -0
  1005. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.js +90 -0
  1006. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.js.map +1 -0
  1007. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.d.ts +2 -0
  1008. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.d.ts.map +1 -0
  1009. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.js +96 -0
  1010. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.js.map +1 -0
  1011. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.d.ts +18 -0
  1012. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.d.ts.map +1 -0
  1013. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.js +24 -0
  1014. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.js.map +1 -0
  1015. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/retentionPolicy.d.ts +11 -0
  1016. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/retentionPolicy.d.ts.map +1 -0
  1017. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/retentionPolicy.js +23 -0
  1018. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/retentionPolicy.js.map +1 -0
  1019. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/rollbackVersionedPayload.d.ts +13 -0
  1020. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/rollbackVersionedPayload.d.ts.map +1 -0
  1021. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/rollbackVersionedPayload.js +65 -0
  1022. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/rollbackVersionedPayload.js.map +1 -0
  1023. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.d.ts +4 -0
  1024. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.d.ts.map +1 -0
  1025. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.js +5 -0
  1026. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.js.map +1 -0
  1027. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.d.ts +14 -0
  1028. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.d.ts.map +1 -0
  1029. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.js +114 -0
  1030. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.js.map +1 -0
  1031. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.d.ts +12 -0
  1032. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.d.ts.map +1 -0
  1033. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.js +24 -0
  1034. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.js.map +1 -0
  1035. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledPayloadPointer.d.ts +7 -0
  1036. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledPayloadPointer.d.ts.map +1 -0
  1037. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledPayloadPointer.js +13 -0
  1038. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledPayloadPointer.js.map +1 -0
  1039. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.d.ts +11 -0
  1040. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.d.ts.map +1 -0
  1041. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.js +31 -0
  1042. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.js.map +1 -0
  1043. package/node_modules/@happier-dev/cli-common/dist/index.d.ts +6 -0
  1044. package/node_modules/@happier-dev/cli-common/dist/index.d.ts.map +1 -1
  1045. package/node_modules/@happier-dev/cli-common/dist/index.js +6 -0
  1046. package/node_modules/@happier-dev/cli-common/dist/index.js.map +1 -1
  1047. package/node_modules/@happier-dev/cli-common/dist/links/index.d.ts.map +1 -1
  1048. package/node_modules/@happier-dev/cli-common/dist/links/index.js +72 -8
  1049. package/node_modules/@happier-dev/cli-common/dist/links/index.js.map +1 -1
  1050. package/node_modules/@happier-dev/cli-common/dist/process/commandExists.d.ts +5 -0
  1051. package/node_modules/@happier-dev/cli-common/dist/process/commandExists.d.ts.map +1 -0
  1052. package/node_modules/@happier-dev/cli-common/dist/process/commandExists.js +24 -0
  1053. package/node_modules/@happier-dev/cli-common/dist/process/commandExists.js.map +1 -0
  1054. package/node_modules/@happier-dev/cli-common/dist/process/index.d.ts +4 -0
  1055. package/node_modules/@happier-dev/cli-common/dist/process/index.d.ts.map +1 -0
  1056. package/node_modules/@happier-dev/cli-common/dist/process/index.js +3 -0
  1057. package/node_modules/@happier-dev/cli-common/dist/process/index.js.map +1 -0
  1058. package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.d.ts +14 -0
  1059. package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.d.ts.map +1 -0
  1060. package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.js +128 -0
  1061. package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.js.map +1 -0
  1062. package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.d.ts +9 -0
  1063. package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.d.ts.map +1 -0
  1064. package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.js +72 -0
  1065. package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.js.map +1 -0
  1066. package/node_modules/@happier-dev/cli-common/dist/providers/createManagedToolScratchDir.d.ts +5 -0
  1067. package/node_modules/@happier-dev/cli-common/dist/providers/createManagedToolScratchDir.d.ts.map +1 -0
  1068. package/node_modules/@happier-dev/cli-common/dist/providers/createManagedToolScratchDir.js +16 -0
  1069. package/node_modules/@happier-dev/cli-common/dist/providers/createManagedToolScratchDir.js.map +1 -0
  1070. package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.d.ts +7 -0
  1071. package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.d.ts.map +1 -0
  1072. package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.js +87 -0
  1073. package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.js.map +1 -0
  1074. package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.d.ts +7 -0
  1075. package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.d.ts.map +1 -0
  1076. package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.js +37 -0
  1077. package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.js.map +1 -0
  1078. package/node_modules/@happier-dev/cli-common/dist/providers/index.d.ts +10 -0
  1079. package/node_modules/@happier-dev/cli-common/dist/providers/index.d.ts.map +1 -0
  1080. package/node_modules/@happier-dev/cli-common/dist/providers/index.js +8 -0
  1081. package/node_modules/@happier-dev/cli-common/dist/providers/index.js.map +1 -0
  1082. package/node_modules/@happier-dev/cli-common/dist/providers/install.d.ts +70 -0
  1083. package/node_modules/@happier-dev/cli-common/dist/providers/install.d.ts.map +1 -0
  1084. package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.d.ts +2 -0
  1085. package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.d.ts.map +1 -0
  1086. package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.js +178 -0
  1087. package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.js.map +1 -0
  1088. package/node_modules/@happier-dev/cli-common/dist/providers/install.js +444 -0
  1089. package/node_modules/@happier-dev/cli-common/dist/providers/install.js.map +1 -0
  1090. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.d.ts +25 -0
  1091. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.d.ts.map +1 -0
  1092. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.js +279 -0
  1093. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.js.map +1 -0
  1094. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.d.ts +2 -0
  1095. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.d.ts.map +1 -0
  1096. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.js +119 -0
  1097. package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.js.map +1 -0
  1098. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.d.ts +14 -0
  1099. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.d.ts.map +1 -0
  1100. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.js +232 -0
  1101. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.js.map +1 -0
  1102. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.d.ts +2 -0
  1103. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.d.ts.map +1 -0
  1104. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.js +138 -0
  1105. package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.js.map +1 -0
  1106. package/node_modules/@happier-dev/cli-common/dist/providers/nodeRelease.d.ts +13 -0
  1107. package/node_modules/@happier-dev/cli-common/dist/providers/nodeRelease.d.ts.map +1 -0
  1108. package/node_modules/@happier-dev/cli-common/dist/providers/nodeRelease.js +109 -0
  1109. package/node_modules/@happier-dev/cli-common/dist/providers/nodeRelease.js.map +1 -0
  1110. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.d.ts +11 -0
  1111. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.d.ts.map +1 -0
  1112. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.js +68 -0
  1113. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.js.map +1 -0
  1114. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.d.ts +2 -0
  1115. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.d.ts.map +1 -0
  1116. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.js +44 -0
  1117. package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.js.map +1 -0
  1118. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.d.ts +23 -0
  1119. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.d.ts.map +1 -0
  1120. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.js +206 -0
  1121. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.js.map +1 -0
  1122. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.d.ts +2 -0
  1123. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.d.ts.map +1 -0
  1124. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.js +20 -0
  1125. package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.js.map +1 -0
  1126. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.d.ts +2 -0
  1127. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.d.ts.map +1 -0
  1128. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.js +23 -0
  1129. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.js.map +1 -0
  1130. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.d.ts +2 -0
  1131. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.d.ts.map +1 -0
  1132. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.js +19 -0
  1133. package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.js.map +1 -0
  1134. package/node_modules/@happier-dev/cli-common/dist/relayHost/index.d.ts +2 -0
  1135. package/node_modules/@happier-dev/cli-common/dist/relayHost/index.d.ts.map +1 -0
  1136. package/node_modules/@happier-dev/cli-common/dist/relayHost/index.js +2 -0
  1137. package/node_modules/@happier-dev/cli-common/dist/relayHost/index.js.map +1 -0
  1138. package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.d.ts +65 -0
  1139. package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.d.ts.map +1 -0
  1140. package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.js +719 -0
  1141. package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.js.map +1 -0
  1142. package/node_modules/@happier-dev/cli-common/dist/service/index.d.ts +6 -0
  1143. package/node_modules/@happier-dev/cli-common/dist/service/index.d.ts.map +1 -0
  1144. package/node_modules/@happier-dev/cli-common/dist/service/index.js +6 -0
  1145. package/node_modules/@happier-dev/cli-common/dist/service/index.js.map +1 -0
  1146. package/node_modules/@happier-dev/cli-common/dist/service/launchd.d.ts +19 -0
  1147. package/node_modules/@happier-dev/cli-common/dist/service/launchd.d.ts.map +1 -0
  1148. package/node_modules/@happier-dev/cli-common/dist/service/launchd.js +94 -0
  1149. package/node_modules/@happier-dev/cli-common/dist/service/launchd.js.map +1 -0
  1150. package/node_modules/@happier-dev/cli-common/dist/service/manager.d.ts +55 -0
  1151. package/node_modules/@happier-dev/cli-common/dist/service/manager.d.ts.map +1 -0
  1152. package/node_modules/@happier-dev/cli-common/dist/service/manager.js +379 -0
  1153. package/node_modules/@happier-dev/cli-common/dist/service/manager.js.map +1 -0
  1154. package/node_modules/@happier-dev/cli-common/dist/service/path.d.ts +16 -0
  1155. package/node_modules/@happier-dev/cli-common/dist/service/path.d.ts.map +1 -0
  1156. package/node_modules/@happier-dev/cli-common/dist/service/path.js +86 -0
  1157. package/node_modules/@happier-dev/cli-common/dist/service/path.js.map +1 -0
  1158. package/node_modules/@happier-dev/cli-common/dist/service/systemd.d.ts +12 -0
  1159. package/node_modules/@happier-dev/cli-common/dist/service/systemd.d.ts.map +1 -0
  1160. package/node_modules/@happier-dev/cli-common/dist/service/systemd.js +83 -0
  1161. package/node_modules/@happier-dev/cli-common/dist/service/systemd.js.map +1 -0
  1162. package/node_modules/@happier-dev/cli-common/dist/service/windows.d.ts +8 -0
  1163. package/node_modules/@happier-dev/cli-common/dist/service/windows.d.ts.map +1 -0
  1164. package/node_modules/@happier-dev/cli-common/dist/service/windows.js +29 -0
  1165. package/node_modules/@happier-dev/cli-common/dist/service/windows.js.map +1 -0
  1166. package/node_modules/@happier-dev/cli-common/dist/systemTasks/createExecutionRunnerFromKind.d.ts +4 -0
  1167. package/node_modules/@happier-dev/cli-common/dist/systemTasks/createExecutionRunnerFromKind.d.ts.map +1 -0
  1168. package/node_modules/@happier-dev/cli-common/dist/systemTasks/createExecutionRunnerFromKind.js +72 -0
  1169. package/node_modules/@happier-dev/cli-common/dist/systemTasks/createExecutionRunnerFromKind.js.map +1 -0
  1170. package/node_modules/@happier-dev/cli-common/dist/systemTasks/index.d.ts +5 -0
  1171. package/node_modules/@happier-dev/cli-common/dist/systemTasks/index.d.ts.map +1 -0
  1172. package/node_modules/@happier-dev/cli-common/dist/systemTasks/index.js +5 -0
  1173. package/node_modules/@happier-dev/cli-common/dist/systemTasks/index.js.map +1 -0
  1174. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.d.ts +56 -0
  1175. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.d.ts.map +1 -0
  1176. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.js +159 -0
  1177. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.js.map +1 -0
  1178. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.d.ts +2 -0
  1179. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.d.ts.map +1 -0
  1180. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.js +177 -0
  1181. package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.js.map +1 -0
  1182. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/index.d.ts +6 -0
  1183. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/index.d.ts.map +1 -0
  1184. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/index.js +6 -0
  1185. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/index.js.map +1 -0
  1186. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.d.ts +65 -0
  1187. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.d.ts.map +1 -0
  1188. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.js +148 -0
  1189. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.js.map +1 -0
  1190. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.d.ts +2 -0
  1191. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.d.ts.map +1 -0
  1192. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.js +173 -0
  1193. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.js.map +1 -0
  1194. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.d.ts +55 -0
  1195. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.d.ts.map +1 -0
  1196. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.js +160 -0
  1197. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.js.map +1 -0
  1198. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.d.ts +2 -0
  1199. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.d.ts.map +1 -0
  1200. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.js +98 -0
  1201. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.js.map +1 -0
  1202. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.d.ts +86 -0
  1203. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.d.ts.map +1 -0
  1204. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.js +303 -0
  1205. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.js.map +1 -0
  1206. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.d.ts +2 -0
  1207. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.d.ts.map +1 -0
  1208. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.js +549 -0
  1209. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.js.map +1 -0
  1210. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.d.ts +32 -0
  1211. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.d.ts.map +1 -0
  1212. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.js +109 -0
  1213. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.js.map +1 -0
  1214. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.d.ts +2 -0
  1215. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.d.ts.map +1 -0
  1216. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.js +37 -0
  1217. package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.js.map +1 -0
  1218. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.d.ts +25 -0
  1219. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.d.ts.map +1 -0
  1220. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.js +141 -0
  1221. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.js.map +1 -0
  1222. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.d.ts +2 -0
  1223. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.d.ts.map +1 -0
  1224. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.js +243 -0
  1225. package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.js.map +1 -0
  1226. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.d.ts +66 -0
  1227. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.d.ts.map +1 -0
  1228. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.js +324 -0
  1229. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.js.map +1 -0
  1230. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.d.ts +2 -0
  1231. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.d.ts.map +1 -0
  1232. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.js +204 -0
  1233. package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.js.map +1 -0
  1234. package/node_modules/@happier-dev/cli-common/dist/tailscale/index.d.ts +6 -0
  1235. package/node_modules/@happier-dev/cli-common/dist/tailscale/index.d.ts.map +1 -0
  1236. package/node_modules/@happier-dev/cli-common/dist/tailscale/index.js +6 -0
  1237. package/node_modules/@happier-dev/cli-common/dist/tailscale/index.js.map +1 -0
  1238. package/node_modules/@happier-dev/cli-common/dist/tailscale/installStrategy.d.ts +20 -0
  1239. package/node_modules/@happier-dev/cli-common/dist/tailscale/installStrategy.d.ts.map +1 -0
  1240. package/node_modules/@happier-dev/cli-common/dist/tailscale/installStrategy.js +109 -0
  1241. package/node_modules/@happier-dev/cli-common/dist/tailscale/installStrategy.js.map +1 -0
  1242. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.d.ts +5 -0
  1243. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.d.ts.map +1 -0
  1244. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.js +119 -0
  1245. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.js.map +1 -0
  1246. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.d.ts +2 -0
  1247. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.d.ts.map +1 -0
  1248. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.js +58 -0
  1249. package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.js.map +1 -0
  1250. package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.d.ts +11 -0
  1251. package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.d.ts.map +1 -0
  1252. package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.js +63 -0
  1253. package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.js.map +1 -0
  1254. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.d.ts +34 -0
  1255. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.d.ts.map +1 -0
  1256. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.js +21 -0
  1257. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.js.map +1 -0
  1258. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.d.ts +2 -0
  1259. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.d.ts.map +1 -0
  1260. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.js +29 -0
  1261. package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.js.map +1 -0
  1262. package/node_modules/@happier-dev/cli-common/dist/update/index.d.ts +9 -0
  1263. package/node_modules/@happier-dev/cli-common/dist/update/index.d.ts.map +1 -1
  1264. package/node_modules/@happier-dev/cli-common/dist/update/index.js +40 -5
  1265. package/node_modules/@happier-dev/cli-common/dist/update/index.js.map +1 -1
  1266. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.d.ts +38 -0
  1267. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.d.ts.map +1 -1
  1268. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.js +319 -12
  1269. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.js.map +1 -1
  1270. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.d.ts +2 -0
  1271. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.d.ts.map +1 -0
  1272. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.js +94 -0
  1273. package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.js.map +1 -0
  1274. package/node_modules/@happier-dev/cli-common/package.json +42 -1
  1275. package/node_modules/@happier-dev/connection-supervisor/README.md +3 -0
  1276. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedConnectionSupervisor.d.ts +3 -0
  1277. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedConnectionSupervisor.d.ts.map +1 -0
  1278. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedConnectionSupervisor.js +315 -0
  1279. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedConnectionSupervisor.js.map +1 -0
  1280. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedEndpointSupervisor.d.ts +3 -0
  1281. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedEndpointSupervisor.d.ts.map +1 -0
  1282. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedEndpointSupervisor.js +248 -0
  1283. package/node_modules/@happier-dev/connection-supervisor/dist/createManagedEndpointSupervisor.js.map +1 -0
  1284. package/node_modules/@happier-dev/connection-supervisor/dist/defaultManagedConnectionPolicy.d.ts +8 -0
  1285. package/node_modules/@happier-dev/connection-supervisor/dist/defaultManagedConnectionPolicy.d.ts.map +1 -0
  1286. package/node_modules/@happier-dev/connection-supervisor/dist/defaultManagedConnectionPolicy.js +8 -0
  1287. package/node_modules/@happier-dev/connection-supervisor/dist/defaultManagedConnectionPolicy.js.map +1 -0
  1288. package/node_modules/@happier-dev/connection-supervisor/dist/index.d.ts +8 -0
  1289. package/node_modules/@happier-dev/connection-supervisor/dist/index.d.ts.map +1 -0
  1290. package/node_modules/@happier-dev/connection-supervisor/dist/index.js +6 -0
  1291. package/node_modules/@happier-dev/connection-supervisor/dist/index.js.map +1 -0
  1292. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionEvents.d.ts +7 -0
  1293. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionEvents.d.ts.map +1 -0
  1294. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionEvents.js +14 -0
  1295. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionEvents.js.map +1 -0
  1296. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionTypes.d.ts +88 -0
  1297. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionTypes.d.ts.map +1 -0
  1298. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionTypes.js +2 -0
  1299. package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionTypes.js.map +1 -0
  1300. package/node_modules/@happier-dev/connection-supervisor/dist/managedEndpointSupervisorTypes.d.ts +23 -0
  1301. package/node_modules/@happier-dev/connection-supervisor/dist/managedEndpointSupervisorTypes.d.ts.map +1 -0
  1302. package/node_modules/@happier-dev/connection-supervisor/dist/managedEndpointSupervisorTypes.js +2 -0
  1303. package/node_modules/@happier-dev/connection-supervisor/dist/managedEndpointSupervisorTypes.js.map +1 -0
  1304. package/node_modules/@happier-dev/connection-supervisor/dist/reconnectBackoff.d.ts +8 -0
  1305. package/node_modules/@happier-dev/connection-supervisor/dist/reconnectBackoff.d.ts.map +1 -0
  1306. package/node_modules/@happier-dev/connection-supervisor/dist/reconnectBackoff.js +14 -0
  1307. package/node_modules/@happier-dev/connection-supervisor/dist/reconnectBackoff.js.map +1 -0
  1308. package/node_modules/@happier-dev/connection-supervisor/package.json +16 -0
  1309. package/node_modules/@happier-dev/protocol/README.md +12 -0
  1310. package/node_modules/@happier-dev/protocol/dist/.tsbuildinfo +1 -0
  1311. package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.d.ts +488 -0
  1312. package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.d.ts.map +1 -0
  1313. package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.js +130 -0
  1314. package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.js.map +1 -0
  1315. package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.d.ts +17 -0
  1316. package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.d.ts.map +1 -0
  1317. package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.js +10 -0
  1318. package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.js.map +1 -0
  1319. package/node_modules/@happier-dev/protocol/dist/account/profile.d.ts +107 -0
  1320. package/node_modules/@happier-dev/protocol/dist/account/profile.d.ts.map +1 -0
  1321. package/node_modules/@happier-dev/protocol/dist/account/profile.js +37 -0
  1322. package/node_modules/@happier-dev/protocol/dist/account/profile.js.map +1 -0
  1323. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts +225 -0
  1324. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts.map +1 -0
  1325. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js +189 -0
  1326. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js.map +1 -0
  1327. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsApiV2.d.ts +613 -0
  1328. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsApiV2.d.ts.map +1 -0
  1329. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsApiV2.js +27 -0
  1330. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsApiV2.js.map +1 -0
  1331. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.d.ts +201 -0
  1332. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.d.ts.map +1 -0
  1333. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.js +13 -0
  1334. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.js.map +1 -0
  1335. package/node_modules/@happier-dev/protocol/dist/account/settings/index.d.ts +4 -0
  1336. package/node_modules/@happier-dev/protocol/dist/account/settings/index.d.ts.map +1 -0
  1337. package/node_modules/@happier-dev/protocol/dist/account/settings/index.js +4 -0
  1338. package/node_modules/@happier-dev/protocol/dist/account/settings/index.js.map +1 -0
  1339. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.d.ts +115 -0
  1340. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.d.ts.map +1 -0
  1341. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.js +68 -0
  1342. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.js.map +1 -0
  1343. package/node_modules/@happier-dev/protocol/dist/acpCatalog/settingsV1.d.ts +222 -0
  1344. package/node_modules/@happier-dev/protocol/dist/acpCatalog/settingsV1.d.ts.map +1 -0
  1345. package/node_modules/@happier-dev/protocol/dist/acpCatalog/settingsV1.js +87 -0
  1346. package/node_modules/@happier-dev/protocol/dist/acpCatalog/settingsV1.js.map +1 -0
  1347. package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.d.ts +13 -0
  1348. package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.d.ts.map +1 -0
  1349. package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.js +17 -0
  1350. package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.js.map +1 -0
  1351. package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.d.ts +52 -0
  1352. package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.d.ts.map +1 -0
  1353. package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.js +146 -0
  1354. package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.js.map +1 -0
  1355. package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.d.ts +8 -0
  1356. package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.d.ts.map +1 -0
  1357. package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.js +199 -0
  1358. package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.js.map +1 -0
  1359. package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.d.ts +326 -0
  1360. package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.d.ts.map +1 -0
  1361. package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js +1241 -0
  1362. package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js.map +1 -0
  1363. package/node_modules/@happier-dev/protocol/dist/actions/actionIds.d.ts +62 -0
  1364. package/node_modules/@happier-dev/protocol/dist/actions/actionIds.d.ts.map +1 -0
  1365. package/node_modules/@happier-dev/protocol/dist/actions/actionIds.js +80 -0
  1366. package/node_modules/@happier-dev/protocol/dist/actions/actionIds.js.map +1 -0
  1367. package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.d.ts +16 -0
  1368. package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.d.ts.map +1 -0
  1369. package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.js +225 -0
  1370. package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.js.map +1 -0
  1371. package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.d.ts +8 -0
  1372. package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.d.ts.map +1 -0
  1373. package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.js +19 -0
  1374. package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.js.map +1 -0
  1375. package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.d.ts +4 -0
  1376. package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.d.ts.map +1 -0
  1377. package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.js +107 -0
  1378. package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.js.map +1 -0
  1379. package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.d.ts +9 -0
  1380. package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.d.ts.map +1 -0
  1381. package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.js +93 -0
  1382. package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.js.map +1 -0
  1383. package/node_modules/@happier-dev/protocol/dist/actions/actionInputVoiceGuidance.d.ts +9 -0
  1384. package/node_modules/@happier-dev/protocol/dist/actions/actionInputVoiceGuidance.d.ts.map +1 -0
  1385. package/node_modules/@happier-dev/protocol/dist/actions/actionInputVoiceGuidance.js +279 -0
  1386. package/node_modules/@happier-dev/protocol/dist/actions/actionInputVoiceGuidance.js.map +1 -0
  1387. package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.d.ts +133 -0
  1388. package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.d.ts.map +1 -0
  1389. package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.js +68 -0
  1390. package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.js.map +1 -0
  1391. package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.d.ts +258 -0
  1392. package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.d.ts.map +1 -0
  1393. package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js +2391 -0
  1394. package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js.map +1 -0
  1395. package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.d.ts +19 -0
  1396. package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.d.ts.map +1 -0
  1397. package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.js +18 -0
  1398. package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.js.map +1 -0
  1399. package/node_modules/@happier-dev/protocol/dist/actions/actionVoiceToolSummary.d.ts +3 -0
  1400. package/node_modules/@happier-dev/protocol/dist/actions/actionVoiceToolSummary.d.ts.map +1 -0
  1401. package/node_modules/@happier-dev/protocol/dist/actions/actionVoiceToolSummary.js +14 -0
  1402. package/node_modules/@happier-dev/protocol/dist/actions/actionVoiceToolSummary.js.map +1 -0
  1403. package/node_modules/@happier-dev/protocol/dist/actions/index.d.ts +16 -0
  1404. package/node_modules/@happier-dev/protocol/dist/actions/index.d.ts.map +1 -0
  1405. package/node_modules/@happier-dev/protocol/dist/actions/index.js +15 -0
  1406. package/node_modules/@happier-dev/protocol/dist/actions/index.js.map +1 -0
  1407. package/node_modules/@happier-dev/protocol/dist/actions/sessionModeIds.d.ts +8 -0
  1408. package/node_modules/@happier-dev/protocol/dist/actions/sessionModeIds.d.ts.map +1 -0
  1409. package/node_modules/@happier-dev/protocol/dist/actions/sessionModeIds.js +17 -0
  1410. package/node_modules/@happier-dev/protocol/dist/actions/sessionModeIds.js.map +1 -0
  1411. package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.d.ts +61 -0
  1412. package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.d.ts.map +1 -0
  1413. package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.js +63 -0
  1414. package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.js.map +1 -0
  1415. package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.d.ts +139 -0
  1416. package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.d.ts.map +1 -0
  1417. package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.js +71 -0
  1418. package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.js.map +1 -0
  1419. package/node_modules/@happier-dev/protocol/dist/auth/errors.d.ts +25 -0
  1420. package/node_modules/@happier-dev/protocol/dist/auth/errors.d.ts.map +1 -0
  1421. package/node_modules/@happier-dev/protocol/dist/auth/errors.js +27 -0
  1422. package/node_modules/@happier-dev/protocol/dist/auth/errors.js.map +1 -0
  1423. package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.d.ts +36 -0
  1424. package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.d.ts.map +1 -0
  1425. package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.js +37 -0
  1426. package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.js.map +1 -0
  1427. package/node_modules/@happier-dev/protocol/dist/auth/providers.d.ts +4 -0
  1428. package/node_modules/@happier-dev/protocol/dist/auth/providers.d.ts.map +1 -0
  1429. package/node_modules/@happier-dev/protocol/dist/auth/providers.js +3 -0
  1430. package/node_modules/@happier-dev/protocol/dist/auth/providers.js.map +1 -0
  1431. package/node_modules/@happier-dev/protocol/dist/backendTargets/backendTargetRef.d.ts +30 -0
  1432. package/node_modules/@happier-dev/protocol/dist/backendTargets/backendTargetRef.d.ts.map +1 -0
  1433. package/node_modules/@happier-dev/protocol/dist/backendTargets/backendTargetRef.js +31 -0
  1434. package/node_modules/@happier-dev/protocol/dist/backendTargets/backendTargetRef.js.map +1 -0
  1435. package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.d.ts +7 -0
  1436. package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.d.ts.map +1 -0
  1437. package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.js +20 -0
  1438. package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.js.map +1 -0
  1439. package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.d.ts +20 -0
  1440. package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.d.ts.map +1 -0
  1441. package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.js +107 -0
  1442. package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.js.map +1 -0
  1443. package/node_modules/@happier-dev/protocol/dist/bugReports/http.d.ts +12 -0
  1444. package/node_modules/@happier-dev/protocol/dist/bugReports/http.d.ts.map +1 -0
  1445. package/node_modules/@happier-dev/protocol/dist/bugReports/http.js +51 -0
  1446. package/node_modules/@happier-dev/protocol/dist/bugReports/http.js.map +1 -0
  1447. package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.d.ts +18 -0
  1448. package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.d.ts.map +1 -0
  1449. package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.js +25 -0
  1450. package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.js.map +1 -0
  1451. package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.d.ts +36 -0
  1452. package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.d.ts.map +1 -0
  1453. package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.js +30 -0
  1454. package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.js.map +1 -0
  1455. package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.d.ts +3 -0
  1456. package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.d.ts.map +1 -0
  1457. package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.js +17 -0
  1458. package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.js.map +1 -0
  1459. package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.d.ts +3 -0
  1460. package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.d.ts.map +1 -0
  1461. package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.js +30 -0
  1462. package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.js.map +1 -0
  1463. package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.d.ts +7 -0
  1464. package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.d.ts.map +1 -0
  1465. package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.js +65 -0
  1466. package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.js.map +1 -0
  1467. package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.d.ts +2 -0
  1468. package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.d.ts.map +1 -0
  1469. package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.js +7 -0
  1470. package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.js.map +1 -0
  1471. package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.d.ts +21 -0
  1472. package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.d.ts.map +1 -0
  1473. package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.js +33 -0
  1474. package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.js.map +1 -0
  1475. package/node_modules/@happier-dev/protocol/dist/bugReports/submit.d.ts +7 -0
  1476. package/node_modules/@happier-dev/protocol/dist/bugReports/submit.d.ts.map +1 -0
  1477. package/node_modules/@happier-dev/protocol/dist/bugReports/submit.js +93 -0
  1478. package/node_modules/@happier-dev/protocol/dist/bugReports/submit.js.map +1 -0
  1479. package/node_modules/@happier-dev/protocol/dist/bugReports/types.d.ts +52 -0
  1480. package/node_modules/@happier-dev/protocol/dist/bugReports/types.d.ts.map +1 -0
  1481. package/node_modules/@happier-dev/protocol/dist/bugReports/types.js +8 -0
  1482. package/node_modules/@happier-dev/protocol/dist/bugReports/types.js.map +1 -0
  1483. package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.d.ts +3 -0
  1484. package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.d.ts.map +1 -0
  1485. package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.js +56 -0
  1486. package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.js.map +1 -0
  1487. package/node_modules/@happier-dev/protocol/dist/bugReports.d.ts +12 -0
  1488. package/node_modules/@happier-dev/protocol/dist/bugReports.d.ts.map +1 -0
  1489. package/node_modules/@happier-dev/protocol/dist/bugReports.js +12 -0
  1490. package/node_modules/@happier-dev/protocol/dist/bugReports.js.map +1 -0
  1491. package/node_modules/@happier-dev/protocol/dist/capabilities.d.ts +60 -0
  1492. package/node_modules/@happier-dev/protocol/dist/capabilities.d.ts.map +1 -0
  1493. package/node_modules/@happier-dev/protocol/dist/capabilities.js +2 -0
  1494. package/node_modules/@happier-dev/protocol/dist/capabilities.js.map +1 -0
  1495. package/node_modules/@happier-dev/protocol/dist/changes.d.ts +64 -0
  1496. package/node_modules/@happier-dev/protocol/dist/changes.d.ts.map +1 -0
  1497. package/node_modules/@happier-dev/protocol/dist/changes.js +30 -0
  1498. package/node_modules/@happier-dev/protocol/dist/changes.js.map +1 -0
  1499. package/node_modules/@happier-dev/protocol/dist/checklists.d.ts +8 -0
  1500. package/node_modules/@happier-dev/protocol/dist/checklists.d.ts.map +1 -0
  1501. package/node_modules/@happier-dev/protocol/dist/checklists.js +8 -0
  1502. package/node_modules/@happier-dev/protocol/dist/checklists.js.map +1 -0
  1503. package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.d.ts +32 -0
  1504. package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.d.ts.map +1 -0
  1505. package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.js +53 -0
  1506. package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.js.map +1 -0
  1507. package/node_modules/@happier-dev/protocol/dist/common/imageRef.d.ts +10 -0
  1508. package/node_modules/@happier-dev/protocol/dist/common/imageRef.d.ts.map +1 -0
  1509. package/node_modules/@happier-dev/protocol/dist/common/imageRef.js +9 -0
  1510. package/node_modules/@happier-dev/protocol/dist/common/imageRef.js.map +1 -0
  1511. package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.d.ts +36 -0
  1512. package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.d.ts.map +1 -0
  1513. package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.js +154 -0
  1514. package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.js.map +1 -0
  1515. package/node_modules/@happier-dev/protocol/dist/common/profileBadge.d.ts +8 -0
  1516. package/node_modules/@happier-dev/protocol/dist/common/profileBadge.d.ts.map +1 -0
  1517. package/node_modules/@happier-dev/protocol/dist/common/profileBadge.js +7 -0
  1518. package/node_modules/@happier-dev/protocol/dist/common/profileBadge.js.map +1 -0
  1519. package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.d.ts +28 -0
  1520. package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.d.ts.map +1 -0
  1521. package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.js +40 -0
  1522. package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.js.map +1 -0
  1523. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.d.ts +20 -0
  1524. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.d.ts.map +1 -0
  1525. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.js +32 -0
  1526. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.js.map +1 -0
  1527. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.d.ts +27 -0
  1528. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.d.ts.map +1 -0
  1529. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.js +26 -0
  1530. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.js.map +1 -0
  1531. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts +157 -0
  1532. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts.map +1 -0
  1533. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js +94 -0
  1534. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js.map +1 -0
  1535. package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.d.ts +26 -0
  1536. package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.d.ts.map +1 -0
  1537. package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.js +117 -0
  1538. package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.js.map +1 -0
  1539. package/node_modules/@happier-dev/protocol/dist/crypto/base64.d.ts +4 -0
  1540. package/node_modules/@happier-dev/protocol/dist/crypto/base64.d.ts.map +1 -0
  1541. package/node_modules/@happier-dev/protocol/dist/crypto/base64.js +36 -0
  1542. package/node_modules/@happier-dev/protocol/dist/crypto/base64.js.map +1 -0
  1543. package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.d.ts +15 -0
  1544. package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.d.ts.map +1 -0
  1545. package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.js +57 -0
  1546. package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.js.map +1 -0
  1547. package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.d.ts +11 -0
  1548. package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.d.ts.map +1 -0
  1549. package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.js +24 -0
  1550. package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.js.map +1 -0
  1551. package/node_modules/@happier-dev/protocol/dist/crypto/keyDerivation.d.ts +2 -0
  1552. package/node_modules/@happier-dev/protocol/dist/crypto/keyDerivation.d.ts.map +1 -0
  1553. package/node_modules/@happier-dev/protocol/dist/crypto/keyDerivation.js +28 -0
  1554. package/node_modules/@happier-dev/protocol/dist/crypto/keyDerivation.js.map +1 -0
  1555. package/node_modules/@happier-dev/protocol/dist/crypto/serializedJsonValue.d.ts +3 -0
  1556. package/node_modules/@happier-dev/protocol/dist/crypto/serializedJsonValue.d.ts.map +1 -0
  1557. package/node_modules/@happier-dev/protocol/dist/crypto/serializedJsonValue.js +43 -0
  1558. package/node_modules/@happier-dev/protocol/dist/crypto/serializedJsonValue.js.map +1 -0
  1559. package/node_modules/@happier-dev/protocol/dist/crypto/settingsSecretStringsV1.d.ts +40 -0
  1560. package/node_modules/@happier-dev/protocol/dist/crypto/settingsSecretStringsV1.d.ts.map +1 -0
  1561. package/node_modules/@happier-dev/protocol/dist/crypto/settingsSecretStringsV1.js +281 -0
  1562. package/node_modules/@happier-dev/protocol/dist/crypto/settingsSecretStringsV1.js.map +1 -0
  1563. package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.d.ts +13 -0
  1564. package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.d.ts.map +1 -0
  1565. package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.js +31 -0
  1566. package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.js.map +1 -0
  1567. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts +256 -0
  1568. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts.map +1 -0
  1569. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js +51 -0
  1570. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js.map +1 -0
  1571. package/node_modules/@happier-dev/protocol/dist/daemonTerminal.d.ts +224 -0
  1572. package/node_modules/@happier-dev/protocol/dist/daemonTerminal.d.ts.map +1 -0
  1573. package/node_modules/@happier-dev/protocol/dist/daemonTerminal.js +103 -0
  1574. package/node_modules/@happier-dev/protocol/dist/daemonTerminal.js.map +1 -0
  1575. package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.d.ts +99 -0
  1576. package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.d.ts.map +1 -0
  1577. package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.js +111 -0
  1578. package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.js.map +1 -0
  1579. package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.d.ts +2 -0
  1580. package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.d.ts.map +1 -0
  1581. package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.js +57 -0
  1582. package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.js.map +1 -0
  1583. package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.d.ts +379 -0
  1584. package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.d.ts.map +1 -0
  1585. package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.js +246 -0
  1586. package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.js.map +1 -0
  1587. package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.d.ts +64 -0
  1588. package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.d.ts.map +1 -0
  1589. package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.js +37 -0
  1590. package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.js.map +1 -0
  1591. package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.d.ts +156 -0
  1592. package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.d.ts.map +1 -0
  1593. package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.js +170 -0
  1594. package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.js.map +1 -0
  1595. package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.d.ts +8 -0
  1596. package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.d.ts.map +1 -0
  1597. package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.js +28 -0
  1598. package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.js.map +1 -0
  1599. package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.d.ts +3 -0
  1600. package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.d.ts.map +1 -0
  1601. package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.js +17 -0
  1602. package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.js.map +1 -0
  1603. package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.d.ts +44 -0
  1604. package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.d.ts.map +1 -0
  1605. package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.js +34 -0
  1606. package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.js.map +1 -0
  1607. package/node_modules/@happier-dev/protocol/dist/executionRunListRequest.d.ts +29 -0
  1608. package/node_modules/@happier-dev/protocol/dist/executionRunListRequest.d.ts.map +1 -0
  1609. package/node_modules/@happier-dev/protocol/dist/executionRunListRequest.js +16 -0
  1610. package/node_modules/@happier-dev/protocol/dist/executionRunListRequest.js.map +1 -0
  1611. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.d.ts +205 -0
  1612. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.d.ts.map +1 -0
  1613. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js +96 -0
  1614. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js.map +1 -0
  1615. package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts +572 -0
  1616. package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts.map +1 -0
  1617. package/node_modules/@happier-dev/protocol/dist/executionRuns.js +162 -0
  1618. package/node_modules/@happier-dev/protocol/dist/executionRuns.js.map +1 -0
  1619. package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.d.ts +12 -0
  1620. package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.d.ts.map +1 -0
  1621. package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.js +38 -0
  1622. package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.js.map +1 -0
  1623. package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts +326 -0
  1624. package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts.map +1 -0
  1625. package/node_modules/@happier-dev/protocol/dist/features/catalog.js +360 -0
  1626. package/node_modules/@happier-dev/protocol/dist/features/catalog.js.map +1 -0
  1627. package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.d.ts +9 -0
  1628. package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.d.ts.map +1 -0
  1629. package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.js +2 -0
  1630. package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.js.map +1 -0
  1631. package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts +142 -0
  1632. package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts.map +1 -0
  1633. package/node_modules/@happier-dev/protocol/dist/features/decision.js +55 -0
  1634. package/node_modules/@happier-dev/protocol/dist/features/decision.js.map +1 -0
  1635. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.d.ts +14 -0
  1636. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.d.ts.map +1 -0
  1637. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.js +18 -0
  1638. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.js.map +1 -0
  1639. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.d.ts +11 -0
  1640. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.d.ts.map +1 -0
  1641. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.js +36 -0
  1642. package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.js.map +1 -0
  1643. package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.d.ts +21 -0
  1644. package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.d.ts.map +1 -0
  1645. package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.js +103 -0
  1646. package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.js.map +1 -0
  1647. package/node_modules/@happier-dev/protocol/dist/features/featureIds.d.ts +3 -0
  1648. package/node_modules/@happier-dev/protocol/dist/features/featureIds.d.ts.map +1 -0
  1649. package/node_modules/@happier-dev/protocol/dist/features/featureIds.js +2 -0
  1650. package/node_modules/@happier-dev/protocol/dist/features/featureIds.js.map +1 -0
  1651. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.d.ts +128 -0
  1652. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.d.ts.map +1 -0
  1653. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.js +118 -0
  1654. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.js.map +1 -0
  1655. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts +15 -0
  1656. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts.map +1 -0
  1657. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js +65 -0
  1658. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js.map +1 -0
  1659. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts +251 -0
  1660. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts.map +1 -0
  1661. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js +35 -0
  1662. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js.map +1 -0
  1663. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.d.ts +40 -0
  1664. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.d.ts.map +1 -0
  1665. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.js +19 -0
  1666. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.js.map +1 -0
  1667. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/machineTransferCapabilities.d.ts +18 -0
  1668. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/machineTransferCapabilities.d.ts.map +1 -0
  1669. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/machineTransferCapabilities.js +39 -0
  1670. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/machineTransferCapabilities.js.map +1 -0
  1671. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.d.ts +93 -0
  1672. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.d.ts.map +1 -0
  1673. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.js +12 -0
  1674. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.js.map +1 -0
  1675. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.d.ts +101 -0
  1676. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.d.ts.map +1 -0
  1677. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.js +39 -0
  1678. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.js.map +1 -0
  1679. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.d.ts +8 -0
  1680. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.d.ts.map +1 -0
  1681. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.js +10 -0
  1682. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.js.map +1 -0
  1683. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.d.ts +12 -0
  1684. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.d.ts.map +1 -0
  1685. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.js +22 -0
  1686. package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.js.map +1 -0
  1687. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.d.ts +6 -0
  1688. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.d.ts.map +1 -0
  1689. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.js +5 -0
  1690. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.js.map +1 -0
  1691. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts +119 -0
  1692. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts.map +1 -0
  1693. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js +158 -0
  1694. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js.map +1 -0
  1695. package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts +374 -0
  1696. package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts.map +1 -0
  1697. package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.js +27 -0
  1698. package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.js.map +1 -0
  1699. package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.d.ts +2 -0
  1700. package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.d.ts.map +1 -0
  1701. package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.js +4 -0
  1702. package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.js.map +1 -0
  1703. package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.d.ts +7 -0
  1704. package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.d.ts.map +1 -0
  1705. package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.js +6 -0
  1706. package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.js.map +1 -0
  1707. package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.d.ts +6 -0
  1708. package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.d.ts.map +1 -0
  1709. package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.js +37 -0
  1710. package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.js.map +1 -0
  1711. package/node_modules/@happier-dev/protocol/dist/features.d.ts +11 -0
  1712. package/node_modules/@happier-dev/protocol/dist/features.d.ts.map +1 -0
  1713. package/node_modules/@happier-dev/protocol/dist/features.js +14 -0
  1714. package/node_modules/@happier-dev/protocol/dist/features.js.map +1 -0
  1715. package/node_modules/@happier-dev/protocol/dist/index.d.ts +160 -0
  1716. package/node_modules/@happier-dev/protocol/dist/index.d.ts.map +1 -0
  1717. package/node_modules/@happier-dev/protocol/dist/index.js +164 -0
  1718. package/node_modules/@happier-dev/protocol/dist/index.js.map +1 -0
  1719. package/node_modules/@happier-dev/protocol/dist/installables.d.ts +30 -0
  1720. package/node_modules/@happier-dev/protocol/dist/installables.d.ts.map +1 -0
  1721. package/node_modules/@happier-dev/protocol/dist/installables.js +14 -0
  1722. package/node_modules/@happier-dev/protocol/dist/installables.js.map +1 -0
  1723. package/node_modules/@happier-dev/protocol/dist/installablesPolicy.d.ts +18 -0
  1724. package/node_modules/@happier-dev/protocol/dist/installablesPolicy.d.ts.map +1 -0
  1725. package/node_modules/@happier-dev/protocol/dist/installablesPolicy.js +58 -0
  1726. package/node_modules/@happier-dev/protocol/dist/installablesPolicy.js.map +1 -0
  1727. package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.d.ts +20 -0
  1728. package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.d.ts.map +1 -0
  1729. package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.js +12 -0
  1730. package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.js.map +1 -0
  1731. package/node_modules/@happier-dev/protocol/dist/machineFileBrowser.d.ts +60 -0
  1732. package/node_modules/@happier-dev/protocol/dist/machineFileBrowser.d.ts.map +1 -0
  1733. package/node_modules/@happier-dev/protocol/dist/machineFileBrowser.js +43 -0
  1734. package/node_modules/@happier-dev/protocol/dist/machineFileBrowser.js.map +1 -0
  1735. package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.d.ts +109 -0
  1736. package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.d.ts.map +1 -0
  1737. package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.js +117 -0
  1738. package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.js.map +1 -0
  1739. package/node_modules/@happier-dev/protocol/dist/mcpServers/authModeV1.d.ts +4 -0
  1740. package/node_modules/@happier-dev/protocol/dist/mcpServers/authModeV1.d.ts.map +1 -0
  1741. package/node_modules/@happier-dev/protocol/dist/mcpServers/authModeV1.js +22 -0
  1742. package/node_modules/@happier-dev/protocol/dist/mcpServers/authModeV1.js.map +1 -0
  1743. package/node_modules/@happier-dev/protocol/dist/mcpServers/daemonRpcV1.d.ts +237 -0
  1744. package/node_modules/@happier-dev/protocol/dist/mcpServers/daemonRpcV1.d.ts.map +1 -0
  1745. package/node_modules/@happier-dev/protocol/dist/mcpServers/daemonRpcV1.js +112 -0
  1746. package/node_modules/@happier-dev/protocol/dist/mcpServers/daemonRpcV1.js.map +1 -0
  1747. package/node_modules/@happier-dev/protocol/dist/mcpServers/previewV1.d.ts +226 -0
  1748. package/node_modules/@happier-dev/protocol/dist/mcpServers/previewV1.d.ts.map +1 -0
  1749. package/node_modules/@happier-dev/protocol/dist/mcpServers/previewV1.js +88 -0
  1750. package/node_modules/@happier-dev/protocol/dist/mcpServers/previewV1.js.map +1 -0
  1751. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveEffectiveServersV1.d.ts +19 -0
  1752. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveEffectiveServersV1.d.ts.map +1 -0
  1753. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveEffectiveServersV1.js +22 -0
  1754. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveEffectiveServersV1.js.map +1 -0
  1755. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveManagedSessionMcpSelectionV1.d.ts +34 -0
  1756. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveManagedSessionMcpSelectionV1.d.ts.map +1 -0
  1757. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveManagedSessionMcpSelectionV1.js +100 -0
  1758. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveManagedSessionMcpSelectionV1.js.map +1 -0
  1759. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveServerBindingV1.d.ts +21 -0
  1760. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveServerBindingV1.d.ts.map +1 -0
  1761. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveServerBindingV1.js +190 -0
  1762. package/node_modules/@happier-dev/protocol/dist/mcpServers/resolveServerBindingV1.js.map +1 -0
  1763. package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.d.ts +21 -0
  1764. package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.d.ts.map +1 -0
  1765. package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.js +50 -0
  1766. package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.js.map +1 -0
  1767. package/node_modules/@happier-dev/protocol/dist/mcpServers/settingsV1.d.ts +206 -0
  1768. package/node_modules/@happier-dev/protocol/dist/mcpServers/settingsV1.d.ts.map +1 -0
  1769. package/node_modules/@happier-dev/protocol/dist/mcpServers/settingsV1.js +143 -0
  1770. package/node_modules/@happier-dev/protocol/dist/mcpServers/settingsV1.js.map +1 -0
  1771. package/node_modules/@happier-dev/protocol/dist/memory/memoryEmbeddingsProfiles.d.ts +16 -0
  1772. package/node_modules/@happier-dev/protocol/dist/memory/memoryEmbeddingsProfiles.d.ts.map +1 -0
  1773. package/node_modules/@happier-dev/protocol/dist/memory/memoryEmbeddingsProfiles.js +61 -0
  1774. package/node_modules/@happier-dev/protocol/dist/memory/memoryEmbeddingsProfiles.js.map +1 -0
  1775. package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.d.ts +82 -0
  1776. package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.d.ts.map +1 -0
  1777. package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.js +61 -0
  1778. package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.js.map +1 -0
  1779. package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.d.ts +293 -0
  1780. package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.d.ts.map +1 -0
  1781. package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.js +198 -0
  1782. package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.js.map +1 -0
  1783. package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.d.ts +41 -0
  1784. package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.d.ts.map +1 -0
  1785. package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.js +24 -0
  1786. package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.js.map +1 -0
  1787. package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.d.ts +28 -0
  1788. package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.d.ts.map +1 -0
  1789. package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.js +23 -0
  1790. package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.js.map +1 -0
  1791. package/node_modules/@happier-dev/protocol/dist/memory/resolveMemoryEmbeddingsConfig.d.ts +11 -0
  1792. package/node_modules/@happier-dev/protocol/dist/memory/resolveMemoryEmbeddingsConfig.d.ts.map +1 -0
  1793. package/node_modules/@happier-dev/protocol/dist/memory/resolveMemoryEmbeddingsConfig.js +41 -0
  1794. package/node_modules/@happier-dev/protocol/dist/memory/resolveMemoryEmbeddingsConfig.js.map +1 -0
  1795. package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.d.ts +105 -0
  1796. package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.d.ts.map +1 -0
  1797. package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.js +110 -0
  1798. package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.js.map +1 -0
  1799. package/node_modules/@happier-dev/protocol/dist/profiles/builtInBackendProfiles.d.ts +4 -0
  1800. package/node_modules/@happier-dev/protocol/dist/profiles/builtInBackendProfiles.d.ts.map +1 -0
  1801. package/node_modules/@happier-dev/protocol/dist/profiles/builtInBackendProfiles.js +15 -0
  1802. package/node_modules/@happier-dev/protocol/dist/profiles/builtInBackendProfiles.js.map +1 -0
  1803. package/node_modules/@happier-dev/protocol/dist/profiles/builtInProfileVersion.d.ts +2 -0
  1804. package/node_modules/@happier-dev/protocol/dist/profiles/builtInProfileVersion.d.ts.map +1 -0
  1805. package/node_modules/@happier-dev/protocol/dist/profiles/builtInProfileVersion.js +2 -0
  1806. package/node_modules/@happier-dev/protocol/dist/profiles/builtInProfileVersion.js.map +1 -0
  1807. package/node_modules/@happier-dev/protocol/dist/profiles/index.d.ts +7 -0
  1808. package/node_modules/@happier-dev/protocol/dist/profiles/index.d.ts.map +1 -0
  1809. package/node_modules/@happier-dev/protocol/dist/profiles/index.js +7 -0
  1810. package/node_modules/@happier-dev/protocol/dist/profiles/index.js.map +1 -0
  1811. package/node_modules/@happier-dev/protocol/dist/profiles/profileCompatibility.d.ts +5 -0
  1812. package/node_modules/@happier-dev/protocol/dist/profiles/profileCompatibility.d.ts.map +1 -0
  1813. package/node_modules/@happier-dev/protocol/dist/profiles/profileCompatibility.js +17 -0
  1814. package/node_modules/@happier-dev/protocol/dist/profiles/profileCompatibility.js.map +1 -0
  1815. package/node_modules/@happier-dev/protocol/dist/profiles/profileRequirements.d.ts +5 -0
  1816. package/node_modules/@happier-dev/protocol/dist/profiles/profileRequirements.d.ts.map +1 -0
  1817. package/node_modules/@happier-dev/protocol/dist/profiles/profileRequirements.js +21 -0
  1818. package/node_modules/@happier-dev/protocol/dist/profiles/profileRequirements.js.map +1 -0
  1819. package/node_modules/@happier-dev/protocol/dist/profiles/resolveBackendProfile.d.ts +25 -0
  1820. package/node_modules/@happier-dev/protocol/dist/profiles/resolveBackendProfile.d.ts.map +1 -0
  1821. package/node_modules/@happier-dev/protocol/dist/profiles/resolveBackendProfile.js +47 -0
  1822. package/node_modules/@happier-dev/protocol/dist/profiles/resolveBackendProfile.js.map +1 -0
  1823. package/node_modules/@happier-dev/protocol/dist/profiles/secretSatisfaction.d.ts +57 -0
  1824. package/node_modules/@happier-dev/protocol/dist/profiles/secretSatisfaction.d.ts.map +1 -0
  1825. package/node_modules/@happier-dev/protocol/dist/profiles/secretSatisfaction.js +97 -0
  1826. package/node_modules/@happier-dev/protocol/dist/profiles/secretSatisfaction.js.map +1 -0
  1827. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptAssetsV1.d.ts +457 -0
  1828. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptAssetsV1.d.ts.map +1 -0
  1829. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptAssetsV1.js +174 -0
  1830. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptAssetsV1.js.map +1 -0
  1831. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptBundleSchemas.d.ts +50 -0
  1832. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptBundleSchemas.d.ts.map +1 -0
  1833. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptBundleSchemas.js +104 -0
  1834. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptBundleSchemas.js.map +1 -0
  1835. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptDocV2.d.ts +23 -0
  1836. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptDocV2.d.ts.map +1 -0
  1837. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptDocV2.js +21 -0
  1838. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptDocV2.js.map +1 -0
  1839. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptExternalLinksV1.d.ts +55 -0
  1840. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptExternalLinksV1.d.ts.map +1 -0
  1841. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptExternalLinksV1.js +22 -0
  1842. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptExternalLinksV1.js.map +1 -0
  1843. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptFoldersV1.d.ts +17 -0
  1844. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptFoldersV1.d.ts.map +1 -0
  1845. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptFoldersV1.js +11 -0
  1846. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptFoldersV1.js.map +1 -0
  1847. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.d.ts +62 -0
  1848. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.d.ts.map +1 -0
  1849. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.js +31 -0
  1850. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.js.map +1 -0
  1851. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptLibraryDigests.d.ts +4 -0
  1852. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptLibraryDigests.d.ts.map +1 -0
  1853. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptLibraryDigests.js +23 -0
  1854. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptLibraryDigests.js.map +1 -0
  1855. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptPlacementV1.d.ts +9 -0
  1856. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptPlacementV1.d.ts.map +1 -0
  1857. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptPlacementV1.js +8 -0
  1858. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptPlacementV1.js.map +1 -0
  1859. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptRegistriesV1.d.ts +304 -0
  1860. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptRegistriesV1.d.ts.map +1 -0
  1861. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptRegistriesV1.js +130 -0
  1862. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptRegistriesV1.js.map +1 -0
  1863. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptStacksV1.d.ts +110 -0
  1864. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptStacksV1.d.ts.map +1 -0
  1865. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptStacksV1.js +31 -0
  1866. package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptStacksV1.js.map +1 -0
  1867. package/node_modules/@happier-dev/protocol/dist/promptLibrary/resolvePromptStackSystemAppendBlocksV1.d.ts +8 -0
  1868. package/node_modules/@happier-dev/protocol/dist/promptLibrary/resolvePromptStackSystemAppendBlocksV1.d.ts.map +1 -0
  1869. package/node_modules/@happier-dev/protocol/dist/promptLibrary/resolvePromptStackSystemAppendBlocksV1.js +89 -0
  1870. package/node_modules/@happier-dev/protocol/dist/promptLibrary/resolvePromptStackSystemAppendBlocksV1.js.map +1 -0
  1871. package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.d.ts +14 -0
  1872. package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.d.ts.map +1 -0
  1873. package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.js +98 -0
  1874. package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.js.map +1 -0
  1875. package/node_modules/@happier-dev/protocol/dist/prompts/changeTitleInstructionV1.d.ts +12 -0
  1876. package/node_modules/@happier-dev/protocol/dist/prompts/changeTitleInstructionV1.d.ts.map +1 -0
  1877. package/node_modules/@happier-dev/protocol/dist/prompts/changeTitleInstructionV1.js +32 -0
  1878. package/node_modules/@happier-dev/protocol/dist/prompts/changeTitleInstructionV1.js.map +1 -0
  1879. package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.d.ts +23 -0
  1880. package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.d.ts.map +1 -0
  1881. package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.js +152 -0
  1882. package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.js.map +1 -0
  1883. package/node_modules/@happier-dev/protocol/dist/prompts/isMemoryRecallGuidanceSupported.d.ts +8 -0
  1884. package/node_modules/@happier-dev/protocol/dist/prompts/isMemoryRecallGuidanceSupported.d.ts.map +1 -0
  1885. package/node_modules/@happier-dev/protocol/dist/prompts/isMemoryRecallGuidanceSupported.js +10 -0
  1886. package/node_modules/@happier-dev/protocol/dist/prompts/isMemoryRecallGuidanceSupported.js.map +1 -0
  1887. package/node_modules/@happier-dev/protocol/dist/prompts/memoryRecallGuidanceV1.d.ts +3 -0
  1888. package/node_modules/@happier-dev/protocol/dist/prompts/memoryRecallGuidanceV1.d.ts.map +1 -0
  1889. package/node_modules/@happier-dev/protocol/dist/prompts/memoryRecallGuidanceV1.js +18 -0
  1890. package/node_modules/@happier-dev/protocol/dist/prompts/memoryRecallGuidanceV1.js.map +1 -0
  1891. package/node_modules/@happier-dev/protocol/dist/prompts/promptPlanV1.d.ts +25 -0
  1892. package/node_modules/@happier-dev/protocol/dist/prompts/promptPlanV1.d.ts.map +1 -0
  1893. package/node_modules/@happier-dev/protocol/dist/prompts/promptPlanV1.js +54 -0
  1894. package/node_modules/@happier-dev/protocol/dist/prompts/promptPlanV1.js.map +1 -0
  1895. package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.d.ts +2 -0
  1896. package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.d.ts.map +1 -0
  1897. package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.js +46 -0
  1898. package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.js.map +1 -0
  1899. package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.d.ts +9 -0
  1900. package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.d.ts.map +1 -0
  1901. package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.js +6 -0
  1902. package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.js.map +1 -0
  1903. package/node_modules/@happier-dev/protocol/dist/providers/claude/builtInBackendProfiles.d.ts +3 -0
  1904. package/node_modules/@happier-dev/protocol/dist/providers/claude/builtInBackendProfiles.d.ts.map +1 -0
  1905. package/node_modules/@happier-dev/protocol/dist/providers/claude/builtInBackendProfiles.js +69 -0
  1906. package/node_modules/@happier-dev/protocol/dist/providers/claude/builtInBackendProfiles.js.map +1 -0
  1907. package/node_modules/@happier-dev/protocol/dist/providers/claude/memoryDefaults.d.ts +2 -0
  1908. package/node_modules/@happier-dev/protocol/dist/providers/claude/memoryDefaults.d.ts.map +1 -0
  1909. package/node_modules/@happier-dev/protocol/dist/providers/claude/memoryDefaults.js +2 -0
  1910. package/node_modules/@happier-dev/protocol/dist/providers/claude/memoryDefaults.js.map +1 -0
  1911. package/node_modules/@happier-dev/protocol/dist/providers/codex/backendMode.d.ts +4 -0
  1912. package/node_modules/@happier-dev/protocol/dist/providers/codex/backendMode.d.ts.map +1 -0
  1913. package/node_modules/@happier-dev/protocol/dist/providers/codex/backendMode.js +15 -0
  1914. package/node_modules/@happier-dev/protocol/dist/providers/codex/backendMode.js.map +1 -0
  1915. package/node_modules/@happier-dev/protocol/dist/providers/codex/builtInBackendProfiles.d.ts +3 -0
  1916. package/node_modules/@happier-dev/protocol/dist/providers/codex/builtInBackendProfiles.d.ts.map +1 -0
  1917. package/node_modules/@happier-dev/protocol/dist/providers/codex/builtInBackendProfiles.js +65 -0
  1918. package/node_modules/@happier-dev/protocol/dist/providers/codex/builtInBackendProfiles.js.map +1 -0
  1919. package/node_modules/@happier-dev/protocol/dist/providers/codex/installables.d.ts +7 -0
  1920. package/node_modules/@happier-dev/protocol/dist/providers/codex/installables.d.ts.map +1 -0
  1921. package/node_modules/@happier-dev/protocol/dist/providers/codex/installables.js +6 -0
  1922. package/node_modules/@happier-dev/protocol/dist/providers/codex/installables.js.map +1 -0
  1923. package/node_modules/@happier-dev/protocol/dist/providers/gemini/builtInBackendProfiles.d.ts +3 -0
  1924. package/node_modules/@happier-dev/protocol/dist/providers/gemini/builtInBackendProfiles.d.ts.map +1 -0
  1925. package/node_modules/@happier-dev/protocol/dist/providers/gemini/builtInBackendProfiles.js +60 -0
  1926. package/node_modules/@happier-dev/protocol/dist/providers/gemini/builtInBackendProfiles.js.map +1 -0
  1927. package/node_modules/@happier-dev/protocol/dist/providers/kiro/acpCatalog.d.ts +3 -0
  1928. package/node_modules/@happier-dev/protocol/dist/providers/kiro/acpCatalog.d.ts.map +1 -0
  1929. package/node_modules/@happier-dev/protocol/dist/providers/kiro/acpCatalog.js +3 -0
  1930. package/node_modules/@happier-dev/protocol/dist/providers/kiro/acpCatalog.js.map +1 -0
  1931. package/node_modules/@happier-dev/protocol/dist/providers/opencode/backendMode.d.ts +3 -0
  1932. package/node_modules/@happier-dev/protocol/dist/providers/opencode/backendMode.d.ts.map +1 -0
  1933. package/node_modules/@happier-dev/protocol/dist/providers/opencode/backendMode.js +11 -0
  1934. package/node_modules/@happier-dev/protocol/dist/providers/opencode/backendMode.js.map +1 -0
  1935. package/node_modules/@happier-dev/protocol/dist/push/expoPushDelivery.d.ts +12 -0
  1936. package/node_modules/@happier-dev/protocol/dist/push/expoPushDelivery.d.ts.map +1 -0
  1937. package/node_modules/@happier-dev/protocol/dist/push/expoPushDelivery.js +57 -0
  1938. package/node_modules/@happier-dev/protocol/dist/push/expoPushDelivery.js.map +1 -0
  1939. package/node_modules/@happier-dev/protocol/dist/push/pushNotificationActions.d.ts +15 -0
  1940. package/node_modules/@happier-dev/protocol/dist/push/pushNotificationActions.d.ts.map +1 -0
  1941. package/node_modules/@happier-dev/protocol/dist/push/pushNotificationActions.js +15 -0
  1942. package/node_modules/@happier-dev/protocol/dist/push/pushNotificationActions.js.map +1 -0
  1943. package/node_modules/@happier-dev/protocol/dist/push/readyNotificationContent.d.ts +14 -0
  1944. package/node_modules/@happier-dev/protocol/dist/push/readyNotificationContent.d.ts.map +1 -0
  1945. package/node_modules/@happier-dev/protocol/dist/push/readyNotificationContent.js +20 -0
  1946. package/node_modules/@happier-dev/protocol/dist/push/readyNotificationContent.js.map +1 -0
  1947. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewAssumption.d.ts +8 -0
  1948. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewAssumption.d.ts.map +1 -0
  1949. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewAssumption.js +7 -0
  1950. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewAssumption.js.map +1 -0
  1951. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.d.ts +51 -0
  1952. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.d.ts.map +1 -0
  1953. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.js +33 -0
  1954. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.js.map +1 -0
  1955. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewQuestion.d.ts +19 -0
  1956. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewQuestion.d.ts.map +1 -0
  1957. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewQuestion.js +13 -0
  1958. package/node_modules/@happier-dev/protocol/dist/reviews/ReviewQuestion.js.map +1 -0
  1959. package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.d.ts +15 -0
  1960. package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.d.ts.map +1 -0
  1961. package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.js +21 -0
  1962. package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.js.map +1 -0
  1963. package/node_modules/@happier-dev/protocol/dist/reviews/reviewFollowUp.d.ts +9 -0
  1964. package/node_modules/@happier-dev/protocol/dist/reviews/reviewFollowUp.d.ts.map +1 -0
  1965. package/node_modules/@happier-dev/protocol/dist/reviews/reviewFollowUp.js +8 -0
  1966. package/node_modules/@happier-dev/protocol/dist/reviews/reviewFollowUp.js.map +1 -0
  1967. package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.d.ts +71 -0
  1968. package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.d.ts.map +1 -0
  1969. package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.js +45 -0
  1970. package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.js.map +1 -0
  1971. package/node_modules/@happier-dev/protocol/dist/rpc.d.ts +141 -0
  1972. package/node_modules/@happier-dev/protocol/dist/rpc.d.ts.map +1 -0
  1973. package/node_modules/@happier-dev/protocol/dist/rpc.js +144 -0
  1974. package/node_modules/@happier-dev/protocol/dist/rpc.js.map +1 -0
  1975. package/node_modules/@happier-dev/protocol/dist/rpcErrors.d.ts +18 -0
  1976. package/node_modules/@happier-dev/protocol/dist/rpcErrors.d.ts.map +1 -0
  1977. package/node_modules/@happier-dev/protocol/dist/rpcErrors.js +40 -0
  1978. package/node_modules/@happier-dev/protocol/dist/rpcErrors.js.map +1 -0
  1979. package/node_modules/@happier-dev/protocol/dist/scm.d.ts +904 -0
  1980. package/node_modules/@happier-dev/protocol/dist/scm.d.ts.map +1 -0
  1981. package/node_modules/@happier-dev/protocol/dist/scm.js +571 -0
  1982. package/node_modules/@happier-dev/protocol/dist/scm.js.map +1 -0
  1983. package/node_modules/@happier-dev/protocol/dist/scmBranches.d.ts +183 -0
  1984. package/node_modules/@happier-dev/protocol/dist/scmBranches.d.ts.map +1 -0
  1985. package/node_modules/@happier-dev/protocol/dist/scmBranches.js +51 -0
  1986. package/node_modules/@happier-dev/protocol/dist/scmBranches.js.map +1 -0
  1987. package/node_modules/@happier-dev/protocol/dist/scmCapabilities.d.ts +5 -0
  1988. package/node_modules/@happier-dev/protocol/dist/scmCapabilities.d.ts.map +1 -0
  1989. package/node_modules/@happier-dev/protocol/dist/scmCapabilities.js +94 -0
  1990. package/node_modules/@happier-dev/protocol/dist/scmCapabilities.js.map +1 -0
  1991. package/node_modules/@happier-dev/protocol/dist/scmPathScope.d.ts +10 -0
  1992. package/node_modules/@happier-dev/protocol/dist/scmPathScope.d.ts.map +1 -0
  1993. package/node_modules/@happier-dev/protocol/dist/scmPathScope.js +46 -0
  1994. package/node_modules/@happier-dev/protocol/dist/scmPathScope.js.map +1 -0
  1995. package/node_modules/@happier-dev/protocol/dist/scmStash.d.ts +209 -0
  1996. package/node_modules/@happier-dev/protocol/dist/scmStash.d.ts.map +1 -0
  1997. package/node_modules/@happier-dev/protocol/dist/scmStash.js +63 -0
  1998. package/node_modules/@happier-dev/protocol/dist/scmStash.js.map +1 -0
  1999. package/node_modules/@happier-dev/protocol/dist/scmWorktrees.d.ts +140 -0
  2000. package/node_modules/@happier-dev/protocol/dist/scmWorktrees.d.ts.map +1 -0
  2001. package/node_modules/@happier-dev/protocol/dist/scmWorktrees.js +30 -0
  2002. package/node_modules/@happier-dev/protocol/dist/scmWorktrees.js.map +1 -0
  2003. package/node_modules/@happier-dev/protocol/dist/sentFrom.d.ts +33 -0
  2004. package/node_modules/@happier-dev/protocol/dist/sentFrom.d.ts.map +1 -0
  2005. package/node_modules/@happier-dev/protocol/dist/sentFrom.js +24 -0
  2006. package/node_modules/@happier-dev/protocol/dist/sentFrom.js.map +1 -0
  2007. package/node_modules/@happier-dev/protocol/dist/serverControl/contract.d.ts +269 -0
  2008. package/node_modules/@happier-dev/protocol/dist/serverControl/contract.d.ts.map +1 -0
  2009. package/node_modules/@happier-dev/protocol/dist/serverControl/contract.js +77 -0
  2010. package/node_modules/@happier-dev/protocol/dist/serverControl/contract.js.map +1 -0
  2011. package/node_modules/@happier-dev/protocol/dist/serverUrls/index.d.ts +2 -0
  2012. package/node_modules/@happier-dev/protocol/dist/serverUrls/index.d.ts.map +1 -0
  2013. package/node_modules/@happier-dev/protocol/dist/serverUrls/index.js +2 -0
  2014. package/node_modules/@happier-dev/protocol/dist/serverUrls/index.js.map +1 -0
  2015. package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.d.ts +8 -0
  2016. package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.d.ts.map +1 -0
  2017. package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.js +61 -0
  2018. package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.js.map +1 -0
  2019. package/node_modules/@happier-dev/protocol/dist/session/attachMetadataIdentityPolicy.d.ts +8 -0
  2020. package/node_modules/@happier-dev/protocol/dist/session/attachMetadataIdentityPolicy.d.ts.map +1 -0
  2021. package/node_modules/@happier-dev/protocol/dist/session/attachMetadataIdentityPolicy.js +7 -0
  2022. package/node_modules/@happier-dev/protocol/dist/session/attachMetadataIdentityPolicy.js.map +1 -0
  2023. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.d.ts +17 -0
  2024. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.d.ts.map +1 -0
  2025. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.js +30 -0
  2026. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.js.map +1 -0
  2027. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/contextKinds.d.ts +3 -0
  2028. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/contextKinds.d.ts.map +1 -0
  2029. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/contextKinds.js +7 -0
  2030. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/contextKinds.js.map +1 -0
  2031. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.d.ts +446 -0
  2032. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.d.ts.map +1 -0
  2033. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.js +424 -0
  2034. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.js.map +1 -0
  2035. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldDefinition.d.ts +32 -0
  2036. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldDefinition.d.ts.map +1 -0
  2037. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldDefinition.js +4 -0
  2038. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldDefinition.js.map +1 -0
  2039. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.d.ts +523 -0
  2040. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.d.ts.map +1 -0
  2041. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.js +15 -0
  2042. package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.js.map +1 -0
  2043. package/node_modules/@happier-dev/protocol/dist/sessionChanges/index.d.ts +6 -0
  2044. package/node_modules/@happier-dev/protocol/dist/sessionChanges/index.d.ts.map +1 -0
  2045. package/node_modules/@happier-dev/protocol/dist/sessionChanges/index.js +5 -0
  2046. package/node_modules/@happier-dev/protocol/dist/sessionChanges/index.js.map +1 -0
  2047. package/node_modules/@happier-dev/protocol/dist/sessionChanges/mergeTurnChangeSets.d.ts +7 -0
  2048. package/node_modules/@happier-dev/protocol/dist/sessionChanges/mergeTurnChangeSets.d.ts.map +1 -0
  2049. package/node_modules/@happier-dev/protocol/dist/sessionChanges/mergeTurnChangeSets.js +66 -0
  2050. package/node_modules/@happier-dev/protocol/dist/sessionChanges/mergeTurnChangeSets.js.map +1 -0
  2051. package/node_modules/@happier-dev/protocol/dist/sessionChanges/reconcileWithScmSnapshot.d.ts +7 -0
  2052. package/node_modules/@happier-dev/protocol/dist/sessionChanges/reconcileWithScmSnapshot.d.ts.map +1 -0
  2053. package/node_modules/@happier-dev/protocol/dist/sessionChanges/reconcileWithScmSnapshot.js +45 -0
  2054. package/node_modules/@happier-dev/protocol/dist/sessionChanges/reconcileWithScmSnapshot.js.map +1 -0
  2055. package/node_modules/@happier-dev/protocol/dist/sessionChanges/rollbacks.d.ts +7 -0
  2056. package/node_modules/@happier-dev/protocol/dist/sessionChanges/rollbacks.d.ts.map +1 -0
  2057. package/node_modules/@happier-dev/protocol/dist/sessionChanges/rollbacks.js +10 -0
  2058. package/node_modules/@happier-dev/protocol/dist/sessionChanges/rollbacks.js.map +1 -0
  2059. package/node_modules/@happier-dev/protocol/dist/sessionChanges/schemas.d.ts +399 -0
  2060. package/node_modules/@happier-dev/protocol/dist/sessionChanges/schemas.d.ts.map +1 -0
  2061. package/node_modules/@happier-dev/protocol/dist/sessionChanges/schemas.js +84 -0
  2062. package/node_modules/@happier-dev/protocol/dist/sessionChanges/schemas.js.map +1 -0
  2063. package/node_modules/@happier-dev/protocol/dist/sessionChanges/types.d.ts +66 -0
  2064. package/node_modules/@happier-dev/protocol/dist/sessionChanges/types.d.ts.map +1 -0
  2065. package/node_modules/@happier-dev/protocol/dist/sessionChanges/types.js +2 -0
  2066. package/node_modules/@happier-dev/protocol/dist/sessionChanges/types.js.map +1 -0
  2067. package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.d.ts +104 -0
  2068. package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.d.ts.map +1 -0
  2069. package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.js +39 -0
  2070. package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.js.map +1 -0
  2071. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts +2244 -0
  2072. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts.map +1 -0
  2073. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js +493 -0
  2074. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js.map +1 -0
  2075. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.d.ts +7 -0
  2076. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.d.ts.map +1 -0
  2077. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.js +6 -0
  2078. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.js.map +1 -0
  2079. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.d.ts +807 -0
  2080. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.d.ts.map +1 -0
  2081. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.js +206 -0
  2082. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.js.map +1 -0
  2083. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffStatus.d.ts +175 -0
  2084. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffStatus.d.ts.map +1 -0
  2085. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffStatus.js +128 -0
  2086. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffStatus.js.map +1 -0
  2087. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.d.ts +70 -0
  2088. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.d.ts.map +1 -0
  2089. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.js +16 -0
  2090. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.js.map +1 -0
  2091. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/workspaceTransferSourcePathSafety.d.ts +14 -0
  2092. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/workspaceTransferSourcePathSafety.d.ts.map +1 -0
  2093. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/workspaceTransferSourcePathSafety.js +125 -0
  2094. package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/workspaceTransferSourcePathSafety.js.map +1 -0
  2095. package/node_modules/@happier-dev/protocol/dist/sessionFork.d.ts +60 -0
  2096. package/node_modules/@happier-dev/protocol/dist/sessionFork.d.ts.map +1 -0
  2097. package/node_modules/@happier-dev/protocol/dist/sessionFork.js +27 -0
  2098. package/node_modules/@happier-dev/protocol/dist/sessionFork.js.map +1 -0
  2099. package/node_modules/@happier-dev/protocol/dist/sessionMessages/coerceSessionUserPromptV1.d.ts +4 -0
  2100. package/node_modules/@happier-dev/protocol/dist/sessionMessages/coerceSessionUserPromptV1.d.ts.map +1 -0
  2101. package/node_modules/@happier-dev/protocol/dist/sessionMessages/coerceSessionUserPromptV1.js +37 -0
  2102. package/node_modules/@happier-dev/protocol/dist/sessionMessages/coerceSessionUserPromptV1.js.map +1 -0
  2103. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.d.ts +83 -0
  2104. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.d.ts.map +1 -0
  2105. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.js +39 -0
  2106. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.js.map +1 -0
  2107. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.d.ts +10 -0
  2108. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.d.ts.map +1 -0
  2109. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.js +27 -0
  2110. package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.js.map +1 -0
  2111. package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.d.ts +404 -0
  2112. package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.d.ts.map +1 -0
  2113. package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.js +373 -0
  2114. package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.js.map +1 -0
  2115. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/acpConfiguredBackendV1.d.ts +21 -0
  2116. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/acpConfiguredBackendV1.d.ts.map +1 -0
  2117. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/acpConfiguredBackendV1.js +26 -0
  2118. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/acpConfiguredBackendV1.js.map +1 -0
  2119. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.d.ts +126 -0
  2120. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.d.ts.map +1 -0
  2121. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.js +201 -0
  2122. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.js.map +1 -0
  2123. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.d.ts +87 -0
  2124. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.d.ts.map +1 -0
  2125. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.js +90 -0
  2126. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.js.map +1 -0
  2127. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.d.ts +27 -0
  2128. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.d.ts.map +1 -0
  2129. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.js +20 -0
  2130. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.js.map +1 -0
  2131. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionRollbackRangesV1.d.ts +61 -0
  2132. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionRollbackRangesV1.d.ts.map +1 -0
  2133. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionRollbackRangesV1.js +40 -0
  2134. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionRollbackRangesV1.js.map +1 -0
  2135. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.d.ts +67 -0
  2136. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.d.ts.map +1 -0
  2137. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.js +35 -0
  2138. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.js.map +1 -0
  2139. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsRemoteSessionLaunchMode.d.ts +9 -0
  2140. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsRemoteSessionLaunchMode.d.ts.map +1 -0
  2141. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsRemoteSessionLaunchMode.js +4 -0
  2142. package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsRemoteSessionLaunchMode.js.map +1 -0
  2143. package/node_modules/@happier-dev/protocol/dist/sessionRollback.d.ts +34 -0
  2144. package/node_modules/@happier-dev/protocol/dist/sessionRollback.d.ts.map +1 -0
  2145. package/node_modules/@happier-dev/protocol/dist/sessionRollback.js +33 -0
  2146. package/node_modules/@happier-dev/protocol/dist/sessionRollback.js.map +1 -0
  2147. package/node_modules/@happier-dev/protocol/dist/sessionRollbackPlanning.d.ts +19 -0
  2148. package/node_modules/@happier-dev/protocol/dist/sessionRollbackPlanning.d.ts.map +1 -0
  2149. package/node_modules/@happier-dev/protocol/dist/sessionRollbackPlanning.js +35 -0
  2150. package/node_modules/@happier-dev/protocol/dist/sessionRollbackPlanning.js.map +1 -0
  2151. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.d.ts +18 -0
  2152. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.d.ts.map +1 -0
  2153. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.js +20 -0
  2154. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.js.map +1 -0
  2155. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/buildSettingArtifacts.d.ts +20 -0
  2156. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/buildSettingArtifacts.d.ts.map +1 -0
  2157. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/buildSettingArtifacts.js +88 -0
  2158. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/buildSettingArtifacts.js.map +1 -0
  2159. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/settingDefinition.d.ts +43 -0
  2160. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/settingDefinition.d.ts.map +1 -0
  2161. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/settingDefinition.js +4 -0
  2162. package/node_modules/@happier-dev/protocol/dist/settingsRegistry/settingDefinition.js.map +1 -0
  2163. package/node_modules/@happier-dev/protocol/dist/social/friends.d.ts +212 -0
  2164. package/node_modules/@happier-dev/protocol/dist/social/friends.d.ts.map +1 -0
  2165. package/node_modules/@happier-dev/protocol/dist/social/friends.js +32 -0
  2166. package/node_modules/@happier-dev/protocol/dist/social/friends.js.map +1 -0
  2167. package/node_modules/@happier-dev/protocol/dist/socketRpc.d.ts +12 -0
  2168. package/node_modules/@happier-dev/protocol/dist/socketRpc.d.ts.map +1 -0
  2169. package/node_modules/@happier-dev/protocol/dist/socketRpc.js +11 -0
  2170. package/node_modules/@happier-dev/protocol/dist/socketRpc.js.map +1 -0
  2171. package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts +29 -0
  2172. package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts.map +1 -0
  2173. package/node_modules/@happier-dev/protocol/dist/spawnSession.js +17 -0
  2174. package/node_modules/@happier-dev/protocol/dist/spawnSession.js.map +1 -0
  2175. package/node_modules/@happier-dev/protocol/dist/storage/storedJsonContentEnvelope.d.ts +10 -0
  2176. package/node_modules/@happier-dev/protocol/dist/storage/storedJsonContentEnvelope.d.ts.map +1 -0
  2177. package/node_modules/@happier-dev/protocol/dist/storage/storedJsonContentEnvelope.js +17 -0
  2178. package/node_modules/@happier-dev/protocol/dist/storage/storedJsonContentEnvelope.js.map +1 -0
  2179. package/node_modules/@happier-dev/protocol/dist/strings/trimIdent.d.ts +2 -0
  2180. package/node_modules/@happier-dev/protocol/dist/strings/trimIdent.d.ts.map +1 -0
  2181. package/node_modules/@happier-dev/protocol/dist/strings/trimIdent.js +17 -0
  2182. package/node_modules/@happier-dev/protocol/dist/strings/trimIdent.js.map +1 -0
  2183. package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.d.ts +12 -0
  2184. package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.d.ts.map +1 -0
  2185. package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.js +11 -0
  2186. package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.js.map +1 -0
  2187. package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.d.ts +41 -0
  2188. package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.d.ts.map +1 -0
  2189. package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.js +24 -0
  2190. package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.js.map +1 -0
  2191. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunStructuredRunRef.d.ts +19 -0
  2192. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunStructuredRunRef.d.ts.map +1 -0
  2193. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunStructuredRunRef.js +11 -0
  2194. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunStructuredRunRef.js.map +1 -0
  2195. package/node_modules/@happier-dev/protocol/dist/structuredMessages/participantMessageV1.d.ts +41 -0
  2196. package/node_modules/@happier-dev/protocol/dist/structuredMessages/participantMessageV1.d.ts.map +1 -0
  2197. package/node_modules/@happier-dev/protocol/dist/structuredMessages/participantMessageV1.js +34 -0
  2198. package/node_modules/@happier-dev/protocol/dist/structuredMessages/participantMessageV1.js.map +1 -0
  2199. package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.d.ts +52 -0
  2200. package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.d.ts.map +1 -0
  2201. package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.js +32 -0
  2202. package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.js.map +1 -0
  2203. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.d.ts +89 -0
  2204. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.d.ts.map +1 -0
  2205. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.js +34 -0
  2206. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.js.map +1 -0
  2207. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV2.d.ts +102 -0
  2208. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV2.d.ts.map +1 -0
  2209. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV2.js +36 -0
  2210. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV2.js.map +1 -0
  2211. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFollowUpV1.d.ts +61 -0
  2212. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFollowUpV1.d.ts.map +1 -0
  2213. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFollowUpV1.js +27 -0
  2214. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFollowUpV1.js.map +1 -0
  2215. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewPublishRequestV1.d.ts +42 -0
  2216. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewPublishRequestV1.d.ts.map +1 -0
  2217. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewPublishRequestV1.js +19 -0
  2218. package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewPublishRequestV1.js.map +1 -0
  2219. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.d.ts +22 -0
  2220. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.d.ts.map +1 -0
  2221. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.js +36 -0
  2222. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.js.map +1 -0
  2223. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.d.ts +17 -0
  2224. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.d.ts.map +1 -0
  2225. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.js +16 -0
  2226. package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.js.map +1 -0
  2227. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentCommandV1.d.ts +13 -0
  2228. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentCommandV1.d.ts.map +1 -0
  2229. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentCommandV1.js +20 -0
  2230. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentCommandV1.js.map +1 -0
  2231. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentLaunchV1.d.ts +15 -0
  2232. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentLaunchV1.d.ts.map +1 -0
  2233. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentLaunchV1.js +22 -0
  2234. package/node_modules/@happier-dev/protocol/dist/structuredMessages/subagentLaunchV1.js.map +1 -0
  2235. package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.d.ts +20 -0
  2236. package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.d.ts.map +1 -0
  2237. package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.js +16 -0
  2238. package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.js.map +1 -0
  2239. package/node_modules/@happier-dev/protocol/dist/systemTasks/index.d.ts +3 -0
  2240. package/node_modules/@happier-dev/protocol/dist/systemTasks/index.d.ts.map +1 -0
  2241. package/node_modules/@happier-dev/protocol/dist/systemTasks/index.js +3 -0
  2242. package/node_modules/@happier-dev/protocol/dist/systemTasks/index.js.map +1 -0
  2243. package/node_modules/@happier-dev/protocol/dist/systemTasks/spec.d.ts +55 -0
  2244. package/node_modules/@happier-dev/protocol/dist/systemTasks/spec.d.ts.map +1 -0
  2245. package/node_modules/@happier-dev/protocol/dist/systemTasks/spec.js +84 -0
  2246. package/node_modules/@happier-dev/protocol/dist/systemTasks/spec.js.map +1 -0
  2247. package/node_modules/@happier-dev/protocol/dist/systemTasks/tailscaleSecureAccessTaskContract.d.ts +34 -0
  2248. package/node_modules/@happier-dev/protocol/dist/systemTasks/tailscaleSecureAccessTaskContract.d.ts.map +1 -0
  2249. package/node_modules/@happier-dev/protocol/dist/systemTasks/tailscaleSecureAccessTaskContract.js +21 -0
  2250. package/node_modules/@happier-dev/protocol/dist/systemTasks/tailscaleSecureAccessTaskContract.js.map +1 -0
  2251. package/node_modules/@happier-dev/protocol/dist/tools/happierToolsShellBridge.d.ts +19 -0
  2252. package/node_modules/@happier-dev/protocol/dist/tools/happierToolsShellBridge.d.ts.map +1 -0
  2253. package/node_modules/@happier-dev/protocol/dist/tools/happierToolsShellBridge.js +158 -0
  2254. package/node_modules/@happier-dev/protocol/dist/tools/happierToolsShellBridge.js.map +1 -0
  2255. package/node_modules/@happier-dev/protocol/dist/tools/v2/aliases.d.ts +34 -0
  2256. package/node_modules/@happier-dev/protocol/dist/tools/v2/aliases.d.ts.map +1 -0
  2257. package/node_modules/@happier-dev/protocol/dist/tools/v2/aliases.js +53 -0
  2258. package/node_modules/@happier-dev/protocol/dist/tools/v2/aliases.js.map +1 -0
  2259. package/node_modules/@happier-dev/protocol/dist/tools/v2/index.d.ts +6 -0
  2260. package/node_modules/@happier-dev/protocol/dist/tools/v2/index.d.ts.map +1 -0
  2261. package/node_modules/@happier-dev/protocol/dist/tools/v2/index.js +8 -0
  2262. package/node_modules/@happier-dev/protocol/dist/tools/v2/index.js.map +1 -0
  2263. package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.d.ts +57 -0
  2264. package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.d.ts.map +1 -0
  2265. package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.js +27 -0
  2266. package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.js.map +1 -0
  2267. package/node_modules/@happier-dev/protocol/dist/tools/v2/names.d.ts +67 -0
  2268. package/node_modules/@happier-dev/protocol/dist/tools/v2/names.d.ts.map +1 -0
  2269. package/node_modules/@happier-dev/protocol/dist/tools/v2/names.js +40 -0
  2270. package/node_modules/@happier-dev/protocol/dist/tools/v2/names.js.map +1 -0
  2271. package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.d.ts +1448 -0
  2272. package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.d.ts.map +1 -0
  2273. package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.js +404 -0
  2274. package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.js.map +1 -0
  2275. package/node_modules/@happier-dev/protocol/dist/tools/v2/subAgentFamilies.d.ts +8 -0
  2276. package/node_modules/@happier-dev/protocol/dist/tools/v2/subAgentFamilies.d.ts.map +1 -0
  2277. package/node_modules/@happier-dev/protocol/dist/tools/v2/subAgentFamilies.js +12 -0
  2278. package/node_modules/@happier-dev/protocol/dist/tools/v2/subAgentFamilies.js.map +1 -0
  2279. package/node_modules/@happier-dev/protocol/dist/updates.d.ts +650 -0
  2280. package/node_modules/@happier-dev/protocol/dist/updates.d.ts.map +1 -0
  2281. package/node_modules/@happier-dev/protocol/dist/updates.js +346 -0
  2282. package/node_modules/@happier-dev/protocol/dist/updates.js.map +1 -0
  2283. package/node_modules/@happier-dev/protocol/dist/voiceActions.d.ts +15 -0
  2284. package/node_modules/@happier-dev/protocol/dist/voiceActions.d.ts.map +1 -0
  2285. package/node_modules/@happier-dev/protocol/dist/voiceActions.js +187 -0
  2286. package/node_modules/@happier-dev/protocol/dist/voiceActions.js.map +1 -0
  2287. package/node_modules/@happier-dev/protocol/dist/workspaces/checkoutKindSchema.d.ts +7 -0
  2288. package/node_modules/@happier-dev/protocol/dist/workspaces/checkoutKindSchema.d.ts.map +1 -0
  2289. package/node_modules/@happier-dev/protocol/dist/workspaces/checkoutKindSchema.js +6 -0
  2290. package/node_modules/@happier-dev/protocol/dist/workspaces/checkoutKindSchema.js.map +1 -0
  2291. package/node_modules/@happier-dev/protocol/dist/workspaces/index.d.ts +4 -0
  2292. package/node_modules/@happier-dev/protocol/dist/workspaces/index.d.ts.map +1 -0
  2293. package/node_modules/@happier-dev/protocol/dist/workspaces/index.js +4 -0
  2294. package/node_modules/@happier-dev/protocol/dist/workspaces/index.js.map +1 -0
  2295. package/node_modules/@happier-dev/protocol/dist/workspaces/locationSchema.d.ts +8 -0
  2296. package/node_modules/@happier-dev/protocol/dist/workspaces/locationSchema.d.ts.map +1 -0
  2297. package/node_modules/@happier-dev/protocol/dist/workspaces/locationSchema.js +23 -0
  2298. package/node_modules/@happier-dev/protocol/dist/workspaces/locationSchema.js.map +1 -0
  2299. package/node_modules/@happier-dev/protocol/dist/workspaces/manifestSchema.d.ts +43 -0
  2300. package/node_modules/@happier-dev/protocol/dist/workspaces/manifestSchema.d.ts.map +1 -0
  2301. package/node_modules/@happier-dev/protocol/dist/workspaces/manifestSchema.js +46 -0
  2302. package/node_modules/@happier-dev/protocol/dist/workspaces/manifestSchema.js.map +1 -0
  2303. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/LICENSE +21 -0
  2304. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/README.md +521 -0
  2305. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.d.ts +17 -0
  2306. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.d.ts.map +1 -0
  2307. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.js +18 -0
  2308. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.js.map +1 -0
  2309. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.d.ts +14 -0
  2310. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
  2311. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.js +50 -0
  2312. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.js.map +1 -0
  2313. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.d.ts +51 -0
  2314. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.d.ts.map +1 -0
  2315. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.js +162 -0
  2316. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.js.map +1 -0
  2317. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.d.ts +55 -0
  2318. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
  2319. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.js +90 -0
  2320. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.js.map +1 -0
  2321. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.d.ts +32 -0
  2322. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
  2323. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.js +401 -0
  2324. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.js.map +1 -0
  2325. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.d.ts +106 -0
  2326. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
  2327. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.js +459 -0
  2328. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.js.map +1 -0
  2329. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.d.ts +116 -0
  2330. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
  2331. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.js +420 -0
  2332. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.js.map +1 -0
  2333. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.d.ts +11 -0
  2334. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.d.ts.map +1 -0
  2335. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.js +14 -0
  2336. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.js.map +1 -0
  2337. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.d.ts +20 -0
  2338. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.d.ts.map +1 -0
  2339. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.js +24 -0
  2340. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.js.map +1 -0
  2341. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.d.ts +54 -0
  2342. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
  2343. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.js +255 -0
  2344. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.js.map +1 -0
  2345. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.d.ts +2 -0
  2346. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.d.ts.map +1 -0
  2347. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.js +5 -0
  2348. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.js.map +1 -0
  2349. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
  2350. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.d.ts.map +1 -0
  2351. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.js +18 -0
  2352. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
  2353. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.d.ts +47 -0
  2354. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
  2355. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.js +166 -0
  2356. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.js.map +1 -0
  2357. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.d.ts +17 -0
  2358. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -0
  2359. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.js +15 -0
  2360. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
  2361. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.d.ts +14 -0
  2362. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -0
  2363. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.js +45 -0
  2364. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
  2365. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.d.ts +51 -0
  2366. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -0
  2367. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.js +155 -0
  2368. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.js.map +1 -0
  2369. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.d.ts +55 -0
  2370. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -0
  2371. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.js +67 -0
  2372. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
  2373. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.d.ts +32 -0
  2374. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -0
  2375. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.js +392 -0
  2376. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
  2377. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.d.ts +106 -0
  2378. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -0
  2379. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.js +452 -0
  2380. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.js.map +1 -0
  2381. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
  2382. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
  2383. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.js +413 -0
  2384. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
  2385. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.d.ts +11 -0
  2386. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -0
  2387. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.js +11 -0
  2388. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
  2389. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.d.ts +20 -0
  2390. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -0
  2391. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.js +21 -0
  2392. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
  2393. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.d.ts +54 -0
  2394. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -0
  2395. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.js +251 -0
  2396. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
  2397. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.d.ts +2 -0
  2398. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.d.ts.map +1 -0
  2399. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.js +2 -0
  2400. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
  2401. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.d.ts +2 -0
  2402. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +1 -0
  2403. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.js +15 -0
  2404. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
  2405. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.d.ts +47 -0
  2406. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -0
  2407. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.js +160 -0
  2408. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
  2409. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.d.ts +36 -0
  2410. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -0
  2411. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.js +82 -0
  2412. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
  2413. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.d.ts +35 -0
  2414. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -0
  2415. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.js +86 -0
  2416. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
  2417. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.d.ts +2 -0
  2418. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.d.ts.map +1 -0
  2419. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.js +33 -0
  2420. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.js.map +1 -0
  2421. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
  2422. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
  2423. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.js +281 -0
  2424. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
  2425. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/package.json +10 -0
  2426. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.d.ts +23 -0
  2427. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -0
  2428. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.js +97 -0
  2429. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
  2430. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.d.ts +13 -0
  2431. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -0
  2432. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.js +13 -0
  2433. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
  2434. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.d.ts +34 -0
  2435. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -0
  2436. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.js +228 -0
  2437. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
  2438. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.d.ts +11 -0
  2439. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -0
  2440. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.js +11 -0
  2441. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
  2442. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.d.ts +159 -0
  2443. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -0
  2444. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.js +375 -0
  2445. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
  2446. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.d.ts +20 -0
  2447. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -0
  2448. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.js +20 -0
  2449. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
  2450. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.d.ts +142 -0
  2451. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -0
  2452. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.js +393 -0
  2453. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
  2454. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.d.ts +53 -0
  2455. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -0
  2456. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.js +234 -0
  2457. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
  2458. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.d.ts +26 -0
  2459. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -0
  2460. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.js +26 -0
  2461. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
  2462. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.d.ts +161 -0
  2463. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -0
  2464. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.js +281 -0
  2465. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.js.map +1 -0
  2466. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.d.ts +36 -0
  2467. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
  2468. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.js +88 -0
  2469. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.js.map +1 -0
  2470. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.d.ts +35 -0
  2471. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
  2472. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.js +91 -0
  2473. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.js.map +1 -0
  2474. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.d.ts +1 -0
  2475. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.d.ts.map +1 -0
  2476. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.js +33 -0
  2477. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.js.map +1 -0
  2478. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.d.ts +71 -0
  2479. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
  2480. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.js +287 -0
  2481. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.js.map +1 -0
  2482. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/package.json +266 -0
  2483. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.d.ts +23 -0
  2484. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
  2485. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.js +101 -0
  2486. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
  2487. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.d.ts +13 -0
  2488. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -0
  2489. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.js +16 -0
  2490. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.js.map +1 -0
  2491. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.d.ts +34 -0
  2492. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
  2493. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.js +232 -0
  2494. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.js.map +1 -0
  2495. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.d.ts +11 -0
  2496. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.d.ts.map +1 -0
  2497. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.js +14 -0
  2498. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.js.map +1 -0
  2499. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.d.ts +159 -0
  2500. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
  2501. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.js +384 -0
  2502. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.js.map +1 -0
  2503. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.d.ts +20 -0
  2504. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.d.ts.map +1 -0
  2505. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.js +23 -0
  2506. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.js.map +1 -0
  2507. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.d.ts +142 -0
  2508. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
  2509. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.js +402 -0
  2510. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
  2511. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.d.ts +53 -0
  2512. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
  2513. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.js +239 -0
  2514. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.js.map +1 -0
  2515. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.d.ts +26 -0
  2516. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.d.ts.map +1 -0
  2517. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.js +29 -0
  2518. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.js.map +1 -0
  2519. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_assert.ts +22 -0
  2520. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_blake.ts +50 -0
  2521. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_md.ts +176 -0
  2522. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_u64.ts +91 -0
  2523. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/argon2.ts +497 -0
  2524. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake1.ts +534 -0
  2525. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake2.ts +486 -0
  2526. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake2b.ts +10 -0
  2527. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake2s.ts +20 -0
  2528. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake3.ts +272 -0
  2529. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/crypto.ts +9 -0
  2530. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/cryptoNode.ts +15 -0
  2531. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/eskdf.ts +187 -0
  2532. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/hkdf.ts +88 -0
  2533. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/hmac.ts +94 -0
  2534. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/index.ts +31 -0
  2535. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/legacy.ts +293 -0
  2536. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/pbkdf2.ts +122 -0
  2537. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/ripemd160.ts +12 -0
  2538. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/scrypt.ts +257 -0
  2539. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha1.ts +10 -0
  2540. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha2.ts +402 -0
  2541. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha256.ts +24 -0
  2542. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha3-addons.ts +499 -0
  2543. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha3.ts +258 -0
  2544. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha512.ts +34 -0
  2545. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/utils.ts +395 -0
  2546. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.d.ts +161 -0
  2547. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.d.ts.map +1 -0
  2548. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.js +313 -0
  2549. package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.js.map +1 -0
  2550. package/node_modules/@happier-dev/protocol/node_modules/base64-js/LICENSE +21 -0
  2551. package/node_modules/@happier-dev/protocol/node_modules/base64-js/README.md +34 -0
  2552. package/node_modules/@happier-dev/protocol/node_modules/base64-js/base64js.min.js +1 -0
  2553. package/node_modules/@happier-dev/protocol/node_modules/base64-js/index.d.ts +3 -0
  2554. package/node_modules/@happier-dev/protocol/node_modules/base64-js/index.js +150 -0
  2555. package/node_modules/@happier-dev/protocol/node_modules/base64-js/package.json +47 -0
  2556. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/AUTHORS.md +27 -0
  2557. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/CHANGELOG.md +283 -0
  2558. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/LICENSE +24 -0
  2559. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
  2560. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/README.md +494 -0
  2561. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl-fast.js +2391 -0
  2562. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl-fast.min.js +1 -0
  2563. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl.d.ts +98 -0
  2564. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl.js +1178 -0
  2565. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl.min.js +1 -0
  2566. package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/package.json +56 -0
  2567. package/node_modules/@happier-dev/protocol/node_modules/zod/LICENSE +21 -0
  2568. package/node_modules/@happier-dev/protocol/node_modules/zod/README.md +208 -0
  2569. package/node_modules/@happier-dev/protocol/node_modules/zod/index.cjs +33 -0
  2570. package/node_modules/@happier-dev/protocol/node_modules/zod/index.d.cts +4 -0
  2571. package/node_modules/@happier-dev/protocol/node_modules/zod/index.d.ts +4 -0
  2572. package/node_modules/@happier-dev/protocol/node_modules/zod/index.js +4 -0
  2573. package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.cjs +17 -0
  2574. package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.d.cts +1 -0
  2575. package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.d.ts +1 -0
  2576. package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.js +1 -0
  2577. package/node_modules/@happier-dev/protocol/node_modules/zod/locales/package.json +6 -0
  2578. package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.cjs +32 -0
  2579. package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.d.cts +3 -0
  2580. package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.d.ts +3 -0
  2581. package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.js +3 -0
  2582. package/node_modules/@happier-dev/protocol/node_modules/zod/mini/package.json +6 -0
  2583. package/node_modules/@happier-dev/protocol/node_modules/zod/package.json +135 -0
  2584. package/node_modules/@happier-dev/protocol/node_modules/zod/src/index.ts +4 -0
  2585. package/node_modules/@happier-dev/protocol/node_modules/zod/src/locales/index.ts +1 -0
  2586. package/node_modules/@happier-dev/protocol/node_modules/zod/src/mini/index.ts +3 -0
  2587. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/ZodError.ts +330 -0
  2588. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  2589. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  2590. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  2591. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  2592. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  2593. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  2594. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  2595. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  2596. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  2597. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/errors.ts +13 -0
  2598. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/external.ts +6 -0
  2599. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  2600. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  2601. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  2602. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  2603. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  2604. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/util.ts +224 -0
  2605. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/index.ts +4 -0
  2606. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/locales/en.ts +124 -0
  2607. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/standard-schema.ts +113 -0
  2608. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  2609. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  2610. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  2611. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  2612. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  2613. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  2614. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  2615. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  2616. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  2617. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  2618. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  2619. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  2620. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  2621. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  2622. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  2623. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  2624. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  2625. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  2626. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  2627. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  2628. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  2629. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  2630. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  2631. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  2632. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  2633. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  2634. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  2635. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  2636. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  2637. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  2638. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  2639. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  2640. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  2641. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  2642. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  2643. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  2644. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  2645. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  2646. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  2647. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  2648. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  2649. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  2650. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  2651. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  2652. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  2653. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  2654. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  2655. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  2656. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  2657. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  2658. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  2659. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  2660. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  2661. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  2662. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  2663. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  2664. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  2665. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  2666. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  2667. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  2668. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  2669. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/types.ts +5138 -0
  2670. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/checks.ts +32 -0
  2671. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  2672. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/compat.ts +70 -0
  2673. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/errors.ts +82 -0
  2674. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/external.ts +51 -0
  2675. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
  2676. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/index.ts +5 -0
  2677. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/iso.ts +90 -0
  2678. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/parse.ts +82 -0
  2679. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
  2680. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  2681. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  2682. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  2683. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  2684. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  2685. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  2686. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  2687. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  2688. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  2689. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
  2690. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  2691. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  2692. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
  2693. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  2694. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  2695. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  2696. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  2697. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  2698. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
  2699. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  2700. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  2701. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
  2702. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  2703. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
  2704. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  2705. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  2706. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  2707. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  2708. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +734 -0
  2709. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  2710. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  2711. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  2712. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  2713. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  2714. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  2715. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  2716. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  2717. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  2718. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  2719. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  2720. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  2721. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  2722. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  2723. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
  2724. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/object.test.ts +640 -0
  2725. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/optional.test.ts +223 -0
  2726. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/partial.test.ts +427 -0
  2727. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  2728. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  2729. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  2730. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
  2731. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  2732. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  2733. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  2734. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  2735. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/record.test.ts +632 -0
  2736. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
  2737. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/refine.test.ts +570 -0
  2738. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  2739. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  2740. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  2741. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  2742. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/string.test.ts +1175 -0
  2743. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  2744. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  2745. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  2746. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2990 -0
  2747. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
  2748. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
  2749. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
  2750. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  2751. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  2752. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  2753. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/api.ts +1798 -0
  2754. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/checks.ts +1293 -0
  2755. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/config.ts +15 -0
  2756. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/core.ts +138 -0
  2757. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/doc.ts +44 -0
  2758. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/errors.ts +448 -0
  2759. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/index.ts +16 -0
  2760. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  2761. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
  2762. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  2763. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/parse.ts +195 -0
  2764. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/regexes.ts +183 -0
  2765. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/registries.ts +105 -0
  2766. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/schemas.ts +4538 -0
  2767. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  2768. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  2769. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  2770. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  2771. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  2772. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  2773. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  2774. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  2775. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  2776. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  2777. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +83 -0
  2778. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
  2779. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  2780. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
  2781. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/util.ts +966 -0
  2782. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/versions.ts +5 -0
  2783. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/zsf.ts +323 -0
  2784. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/index.ts +4 -0
  2785. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ar.ts +115 -0
  2786. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/az.ts +111 -0
  2787. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/be.ts +176 -0
  2788. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/bg.ts +128 -0
  2789. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ca.ts +116 -0
  2790. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/cs.ts +118 -0
  2791. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/da.ts +123 -0
  2792. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/de.ts +116 -0
  2793. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/en.ts +119 -0
  2794. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/eo.ts +118 -0
  2795. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/es.ts +141 -0
  2796. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fa.ts +126 -0
  2797. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fi.ts +121 -0
  2798. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  2799. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fr.ts +116 -0
  2800. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/he.ts +246 -0
  2801. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/hu.ts +117 -0
  2802. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/hy.ts +164 -0
  2803. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/id.ts +115 -0
  2804. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/index.ts +49 -0
  2805. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/is.ts +119 -0
  2806. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/it.ts +116 -0
  2807. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ja.ts +114 -0
  2808. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ka.ts +123 -0
  2809. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/kh.ts +7 -0
  2810. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/km.ts +119 -0
  2811. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ko.ts +121 -0
  2812. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/lt.ts +239 -0
  2813. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/mk.ts +118 -0
  2814. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ms.ts +115 -0
  2815. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/nl.ts +121 -0
  2816. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/no.ts +116 -0
  2817. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ota.ts +117 -0
  2818. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/pl.ts +118 -0
  2819. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ps.ts +126 -0
  2820. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/pt.ts +116 -0
  2821. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ru.ts +176 -0
  2822. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/sl.ts +118 -0
  2823. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/sv.ts +119 -0
  2824. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ta.ts +118 -0
  2825. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/th.ts +119 -0
  2826. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/tr.ts +111 -0
  2827. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ua.ts +7 -0
  2828. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/uk.ts +117 -0
  2829. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ur.ts +119 -0
  2830. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/uz.ts +116 -0
  2831. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/vi.ts +117 -0
  2832. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/yo.ts +124 -0
  2833. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  2834. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  2835. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/checks.ts +32 -0
  2836. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  2837. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/external.ts +40 -0
  2838. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/index.ts +3 -0
  2839. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/iso.ts +66 -0
  2840. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/parse.ts +14 -0
  2841. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
  2842. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  2843. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  2844. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  2845. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  2846. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
  2847. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  2848. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  2849. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  2850. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/index.test.ts +963 -0
  2851. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  2852. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  2853. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  2854. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  2855. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  2856. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
  2857. package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4-mini/index.ts +3 -0
  2858. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.cjs +138 -0
  2859. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.d.cts +164 -0
  2860. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.d.ts +164 -0
  2861. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.js +133 -0
  2862. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.cjs +17 -0
  2863. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.d.cts +5 -0
  2864. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.d.ts +5 -0
  2865. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.js +9 -0
  2866. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.cjs +22 -0
  2867. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.d.cts +6 -0
  2868. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.d.ts +6 -0
  2869. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.js +6 -0
  2870. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  2871. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  2872. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  2873. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  2874. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  2875. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  2876. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  2877. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  2878. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  2879. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  2880. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  2881. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  2882. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  2883. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  2884. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  2885. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  2886. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  2887. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  2888. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  2889. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  2890. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.cjs +137 -0
  2891. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.d.cts +85 -0
  2892. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.d.ts +85 -0
  2893. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.js +133 -0
  2894. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.cjs +33 -0
  2895. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.d.cts +4 -0
  2896. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.d.ts +4 -0
  2897. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.js +4 -0
  2898. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.cjs +112 -0
  2899. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.d.cts +3 -0
  2900. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.d.ts +3 -0
  2901. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.js +109 -0
  2902. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/package.json +6 -0
  2903. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.cjs +2 -0
  2904. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.d.cts +102 -0
  2905. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.d.ts +102 -0
  2906. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.js +1 -0
  2907. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.cjs +3777 -0
  2908. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.d.cts +1034 -0
  2909. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.d.ts +1034 -0
  2910. package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.js +3695 -0
  2911. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.cjs +33 -0
  2912. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.d.cts +1 -0
  2913. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.d.ts +1 -0
  2914. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.js +1 -0
  2915. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.cjs +47 -0
  2916. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  2917. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  2918. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.js +17 -0
  2919. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.cjs +61 -0
  2920. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.d.cts +50 -0
  2921. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.d.ts +50 -0
  2922. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.js +31 -0
  2923. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.cjs +74 -0
  2924. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.d.cts +30 -0
  2925. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.d.ts +30 -0
  2926. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.js +48 -0
  2927. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.cjs +73 -0
  2928. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.d.cts +15 -0
  2929. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.d.ts +15 -0
  2930. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.js +20 -0
  2931. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
  2932. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  2933. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  2934. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.js +584 -0
  2935. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.cjs +33 -0
  2936. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.d.cts +4 -0
  2937. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.d.ts +4 -0
  2938. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.js +4 -0
  2939. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.cjs +60 -0
  2940. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.d.cts +22 -0
  2941. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.d.ts +22 -0
  2942. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.js +30 -0
  2943. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/package.json +6 -0
  2944. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.cjs +41 -0
  2945. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.d.cts +31 -0
  2946. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.d.ts +31 -0
  2947. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.js +15 -0
  2948. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.cjs +1272 -0
  2949. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.d.cts +739 -0
  2950. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.d.ts +739 -0
  2951. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.js +1157 -0
  2952. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.cjs +1222 -0
  2953. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.d.cts +304 -0
  2954. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.d.ts +304 -0
  2955. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.js +1082 -0
  2956. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.cjs +601 -0
  2957. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.d.cts +278 -0
  2958. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.d.ts +278 -0
  2959. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.js +575 -0
  2960. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.cjs +83 -0
  2961. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.d.cts +70 -0
  2962. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.d.ts +70 -0
  2963. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.js +76 -0
  2964. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.cjs +39 -0
  2965. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.d.cts +14 -0
  2966. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.d.ts +14 -0
  2967. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.js +35 -0
  2968. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.cjs +213 -0
  2969. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.d.cts +220 -0
  2970. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.d.ts +220 -0
  2971. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.js +182 -0
  2972. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.cjs +47 -0
  2973. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.d.cts +16 -0
  2974. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.d.ts +16 -0
  2975. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.js +16 -0
  2976. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  2977. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  2978. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  2979. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  2980. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
  2981. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  2982. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  2983. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.js +605 -0
  2984. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.cjs +2 -0
  2985. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  2986. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  2987. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.js +1 -0
  2988. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/package.json +6 -0
  2989. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.cjs +131 -0
  2990. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.d.cts +49 -0
  2991. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.d.ts +49 -0
  2992. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.js +93 -0
  2993. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.cjs +166 -0
  2994. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.d.cts +79 -0
  2995. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.d.ts +79 -0
  2996. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.js +133 -0
  2997. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.cjs +56 -0
  2998. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.d.cts +35 -0
  2999. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.d.ts +35 -0
  3000. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.js +51 -0
  3001. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.cjs +2124 -0
  3002. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.d.cts +1146 -0
  3003. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.d.ts +1146 -0
  3004. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.js +2093 -0
  3005. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  3006. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  3007. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  3008. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.js +1 -0
  3009. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
  3010. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  3011. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  3012. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.js +437 -0
  3013. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.cjs +710 -0
  3014. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.d.cts +199 -0
  3015. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.d.ts +199 -0
  3016. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.js +651 -0
  3017. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.cjs +8 -0
  3018. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.d.cts +5 -0
  3019. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.d.ts +5 -0
  3020. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.js +5 -0
  3021. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.cjs +22 -0
  3022. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.d.cts +3 -0
  3023. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.d.ts +3 -0
  3024. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.js +3 -0
  3025. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.cjs +133 -0
  3026. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.d.cts +5 -0
  3027. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.d.ts +4 -0
  3028. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.js +106 -0
  3029. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.cjs +132 -0
  3030. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.d.cts +5 -0
  3031. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.d.ts +4 -0
  3032. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.js +105 -0
  3033. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.cjs +183 -0
  3034. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.d.cts +5 -0
  3035. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.d.ts +4 -0
  3036. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.js +156 -0
  3037. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.cjs +147 -0
  3038. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.d.cts +5 -0
  3039. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.d.ts +4 -0
  3040. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.js +120 -0
  3041. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.cjs +134 -0
  3042. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.d.cts +5 -0
  3043. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.d.ts +4 -0
  3044. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.js +107 -0
  3045. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.cjs +138 -0
  3046. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.d.cts +5 -0
  3047. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.d.ts +4 -0
  3048. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.js +111 -0
  3049. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.cjs +142 -0
  3050. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.d.cts +5 -0
  3051. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.d.ts +4 -0
  3052. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.js +115 -0
  3053. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.cjs +135 -0
  3054. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.d.cts +5 -0
  3055. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.d.ts +4 -0
  3056. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.js +108 -0
  3057. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.cjs +136 -0
  3058. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.d.cts +5 -0
  3059. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.d.ts +4 -0
  3060. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.js +109 -0
  3061. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.cjs +136 -0
  3062. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.d.cts +5 -0
  3063. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.d.ts +4 -0
  3064. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.js +109 -0
  3065. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.cjs +159 -0
  3066. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.d.cts +5 -0
  3067. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.d.ts +4 -0
  3068. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.js +132 -0
  3069. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.cjs +141 -0
  3070. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.d.cts +5 -0
  3071. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.d.ts +4 -0
  3072. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.js +114 -0
  3073. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.cjs +139 -0
  3074. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.d.cts +5 -0
  3075. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.d.ts +4 -0
  3076. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.js +112 -0
  3077. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  3078. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  3079. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  3080. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.js +107 -0
  3081. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.cjs +135 -0
  3082. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.d.cts +5 -0
  3083. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.d.ts +4 -0
  3084. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.js +108 -0
  3085. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.cjs +241 -0
  3086. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.d.cts +5 -0
  3087. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.d.ts +4 -0
  3088. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.js +214 -0
  3089. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.cjs +135 -0
  3090. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.d.cts +5 -0
  3091. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.d.ts +4 -0
  3092. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.js +108 -0
  3093. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.cjs +174 -0
  3094. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.d.cts +5 -0
  3095. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.d.ts +4 -0
  3096. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.js +147 -0
  3097. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.cjs +133 -0
  3098. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.d.cts +5 -0
  3099. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.d.ts +4 -0
  3100. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.js +106 -0
  3101. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.cjs +104 -0
  3102. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.d.cts +49 -0
  3103. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.d.ts +49 -0
  3104. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.js +49 -0
  3105. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.cjs +136 -0
  3106. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.d.cts +5 -0
  3107. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.d.ts +4 -0
  3108. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.js +109 -0
  3109. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.cjs +135 -0
  3110. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.d.cts +5 -0
  3111. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.d.ts +4 -0
  3112. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.js +108 -0
  3113. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.cjs +134 -0
  3114. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.d.cts +5 -0
  3115. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.d.ts +4 -0
  3116. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.js +107 -0
  3117. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.cjs +139 -0
  3118. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.d.cts +5 -0
  3119. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.d.ts +4 -0
  3120. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.js +112 -0
  3121. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.cjs +12 -0
  3122. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.d.cts +5 -0
  3123. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.d.ts +5 -0
  3124. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.js +5 -0
  3125. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.cjs +137 -0
  3126. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.d.cts +5 -0
  3127. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.d.ts +4 -0
  3128. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.js +110 -0
  3129. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.cjs +138 -0
  3130. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.d.cts +5 -0
  3131. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.d.ts +4 -0
  3132. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.js +111 -0
  3133. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.cjs +230 -0
  3134. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.d.cts +5 -0
  3135. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.d.ts +4 -0
  3136. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.js +203 -0
  3137. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.cjs +136 -0
  3138. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.d.cts +5 -0
  3139. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.d.ts +4 -0
  3140. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.js +109 -0
  3141. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.cjs +134 -0
  3142. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.d.cts +5 -0
  3143. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.d.ts +4 -0
  3144. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.js +107 -0
  3145. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.cjs +137 -0
  3146. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.d.cts +5 -0
  3147. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.d.ts +4 -0
  3148. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.js +110 -0
  3149. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.cjs +135 -0
  3150. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.d.cts +5 -0
  3151. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.d.ts +4 -0
  3152. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.js +108 -0
  3153. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.cjs +136 -0
  3154. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.d.cts +5 -0
  3155. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.d.ts +4 -0
  3156. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.js +109 -0
  3157. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/package.json +6 -0
  3158. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.cjs +136 -0
  3159. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.d.cts +5 -0
  3160. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.d.ts +4 -0
  3161. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.js +109 -0
  3162. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.cjs +141 -0
  3163. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.d.cts +5 -0
  3164. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.d.ts +4 -0
  3165. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.js +114 -0
  3166. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.cjs +135 -0
  3167. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.d.cts +5 -0
  3168. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.d.ts +4 -0
  3169. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.js +108 -0
  3170. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.cjs +183 -0
  3171. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.d.cts +5 -0
  3172. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3173. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.js +156 -0
  3174. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.cjs +136 -0
  3175. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.d.cts +5 -0
  3176. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3177. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.js +109 -0
  3178. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.cjs +137 -0
  3179. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.d.cts +5 -0
  3180. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3181. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.js +110 -0
  3182. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.cjs +137 -0
  3183. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.d.cts +5 -0
  3184. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3185. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.js +110 -0
  3186. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.cjs +137 -0
  3187. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.d.cts +5 -0
  3188. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.d.ts +4 -0
  3189. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.js +110 -0
  3190. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.cjs +132 -0
  3191. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3192. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.d.ts +4 -0
  3193. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.js +105 -0
  3194. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.cjs +12 -0
  3195. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.d.cts +5 -0
  3196. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.d.ts +5 -0
  3197. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.js +5 -0
  3198. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.cjs +135 -0
  3199. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.d.cts +5 -0
  3200. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.d.ts +4 -0
  3201. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.js +108 -0
  3202. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.cjs +137 -0
  3203. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.d.cts +5 -0
  3204. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3205. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.js +110 -0
  3206. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.cjs +136 -0
  3207. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.d.cts +5 -0
  3208. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.d.ts +4 -0
  3209. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.js +109 -0
  3210. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.cjs +135 -0
  3211. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.d.cts +5 -0
  3212. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3213. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.js +108 -0
  3214. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.cjs +134 -0
  3215. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.d.cts +5 -0
  3216. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.d.ts +4 -0
  3217. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.js +107 -0
  3218. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  3219. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  3220. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3221. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.js +109 -0
  3222. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  3223. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  3224. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3225. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.js +107 -0
  3226. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.cjs +34 -0
  3227. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3228. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3229. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.js +1 -0
  3230. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.cjs +52 -0
  3231. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3232. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3233. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.js +22 -0
  3234. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.cjs +63 -0
  3235. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.d.cts +12 -0
  3236. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.d.ts +12 -0
  3237. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.js +14 -0
  3238. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.cjs +32 -0
  3239. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.d.cts +3 -0
  3240. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.d.ts +3 -0
  3241. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.js +3 -0
  3242. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.cjs +64 -0
  3243. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3244. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3245. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.js +34 -0
  3246. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/package.json +6 -0
  3247. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.cjs +16 -0
  3248. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3249. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3250. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.js +1 -0
  3251. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.cjs +1046 -0
  3252. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.d.cts +427 -0
  3253. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.d.ts +427 -0
  3254. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.js +925 -0
  3255. package/node_modules/@happier-dev/protocol/node_modules/zod/v4/package.json +6 -0
  3256. package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.cjs +32 -0
  3257. package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.d.cts +3 -0
  3258. package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.d.ts +3 -0
  3259. package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.js +3 -0
  3260. package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/package.json +6 -0
  3261. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
  3262. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
  3263. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
  3264. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/LICENSE +15 -0
  3265. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/README.md +390 -0
  3266. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/changelog.md +82 -0
  3267. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/contributing.md +9 -0
  3268. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/createIndex.ts +32 -0
  3269. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
  3270. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
  3271. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
  3272. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
  3273. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
  3274. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
  3275. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
  3276. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
  3277. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
  3278. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
  3279. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
  3280. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
  3281. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
  3282. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
  3283. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
  3284. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
  3285. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
  3286. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
  3287. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
  3288. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
  3289. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
  3290. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
  3291. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
  3292. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
  3293. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
  3294. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
  3295. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
  3296. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
  3297. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
  3298. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
  3299. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
  3300. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
  3301. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
  3302. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
  3303. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
  3304. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
  3305. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
  3306. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
  3307. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
  3308. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
  3309. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  3310. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  3311. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  3312. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  3313. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  3314. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  3315. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  3316. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  3317. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  3318. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  3319. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  3320. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  3321. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  3322. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  3323. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  3324. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  3325. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  3326. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  3327. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  3328. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  3329. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  3330. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  3331. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  3332. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  3333. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  3334. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  3335. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  3336. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  3337. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  3338. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  3339. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  3340. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  3341. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  3342. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  3343. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  3344. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  3345. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  3346. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  3347. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  3348. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  3349. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
  3350. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
  3351. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
  3352. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
  3353. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
  3354. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
  3355. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
  3356. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
  3357. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
  3358. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
  3359. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
  3360. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
  3361. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
  3362. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
  3363. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
  3364. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
  3365. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
  3366. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
  3367. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
  3368. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
  3369. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
  3370. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
  3371. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
  3372. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
  3373. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
  3374. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
  3375. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
  3376. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
  3377. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
  3378. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
  3379. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
  3380. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
  3381. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
  3382. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
  3383. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
  3384. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
  3385. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
  3386. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
  3387. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
  3388. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/package.json +78 -0
  3389. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/postcjs.ts +3 -0
  3390. package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/postesm.ts +3 -0
  3391. package/node_modules/@happier-dev/protocol/package.json +69 -0
  3392. package/node_modules/@happier-dev/release-runtime/dist/.tsbuildinfo +1 -0
  3393. package/node_modules/@happier-dev/release-runtime/dist/_cjs/releaseRings.js +134 -0
  3394. package/node_modules/@happier-dev/release-runtime/dist/assets.d.ts +22 -0
  3395. package/node_modules/@happier-dev/release-runtime/dist/assets.d.ts.map +1 -0
  3396. package/node_modules/@happier-dev/release-runtime/dist/assets.js +44 -0
  3397. package/node_modules/@happier-dev/release-runtime/dist/assets.js.map +1 -0
  3398. package/node_modules/@happier-dev/release-runtime/dist/checksums.d.ts +5 -0
  3399. package/node_modules/@happier-dev/release-runtime/dist/checksums.d.ts.map +1 -0
  3400. package/node_modules/@happier-dev/release-runtime/dist/checksums.js +21 -0
  3401. package/node_modules/@happier-dev/release-runtime/dist/checksums.js.map +1 -0
  3402. package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts +14 -0
  3403. package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts.map +1 -0
  3404. package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js +48 -0
  3405. package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js.map +1 -0
  3406. package/node_modules/@happier-dev/release-runtime/dist/github.d.ts +26 -0
  3407. package/node_modules/@happier-dev/release-runtime/dist/github.d.ts.map +1 -0
  3408. package/node_modules/@happier-dev/release-runtime/dist/github.js +141 -0
  3409. package/node_modules/@happier-dev/release-runtime/dist/github.js.map +1 -0
  3410. package/node_modules/@happier-dev/release-runtime/dist/http.d.ts +18 -0
  3411. package/node_modules/@happier-dev/release-runtime/dist/http.d.ts.map +1 -0
  3412. package/node_modules/@happier-dev/release-runtime/dist/http.js +112 -0
  3413. package/node_modules/@happier-dev/release-runtime/dist/http.js.map +1 -0
  3414. package/node_modules/@happier-dev/release-runtime/dist/index.d.ts +8 -0
  3415. package/node_modules/@happier-dev/release-runtime/dist/index.d.ts.map +1 -0
  3416. package/node_modules/@happier-dev/release-runtime/dist/index.js +8 -0
  3417. package/node_modules/@happier-dev/release-runtime/dist/index.js.map +1 -0
  3418. package/node_modules/@happier-dev/release-runtime/dist/minisign.d.ts +7 -0
  3419. package/node_modules/@happier-dev/release-runtime/dist/minisign.d.ts.map +1 -0
  3420. package/node_modules/@happier-dev/release-runtime/dist/minisign.js +92 -0
  3421. package/node_modules/@happier-dev/release-runtime/dist/minisign.js.map +1 -0
  3422. package/node_modules/@happier-dev/release-runtime/dist/releaseRings.cjs +134 -0
  3423. package/node_modules/@happier-dev/release-runtime/dist/releaseRings.d.ts +27 -0
  3424. package/node_modules/@happier-dev/release-runtime/dist/releaseRings.d.ts.map +1 -0
  3425. package/node_modules/@happier-dev/release-runtime/dist/releaseRings.js +124 -0
  3426. package/node_modules/@happier-dev/release-runtime/dist/releaseRings.js.map +1 -0
  3427. package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.d.ts +26 -0
  3428. package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.d.ts.map +1 -0
  3429. package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.js +47 -0
  3430. package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.js.map +1 -0
  3431. package/node_modules/@happier-dev/release-runtime/package.json +43 -0
  3432. package/package.json +17 -4
  3433. package/scripts/auth.mjs +398 -106
  3434. package/scripts/auth_copy_from_pglite_lock_in_use.integration.test.mjs +5 -4
  3435. package/scripts/auth_copy_from_runCapture.integration.test.mjs +538 -8
  3436. package/scripts/auth_dev_key_cmd.test.mjs +35 -0
  3437. package/scripts/auth_force_flag.test.mjs +28 -0
  3438. package/scripts/auth_help_cmd.test.mjs +5 -0
  3439. package/scripts/auth_login_force_cleans_server_scoped_credentials.integration.test.mjs +189 -0
  3440. package/scripts/auth_login_force_default.test.mjs +41 -1
  3441. package/scripts/auth_login_guided_server_no_expo.test.mjs +460 -34
  3442. package/scripts/auth_login_print_includes_configure_links.test.mjs +63 -5
  3443. package/scripts/auth_login_respects_pinned_stack_port.test.mjs +200 -0
  3444. package/scripts/auth_login_runtime_state_port.test.mjs +47 -0
  3445. package/scripts/build/activate_runtime_snapshot.mjs +210 -0
  3446. package/scripts/build/activate_runtime_snapshot.test.mjs +250 -0
  3447. package/scripts/build/build_daemon_artifact.mjs +50 -0
  3448. package/scripts/build/build_mode.mjs +20 -0
  3449. package/scripts/build/build_mode.test.mjs +46 -0
  3450. package/scripts/build/build_server_artifact.mjs +64 -0
  3451. package/scripts/build/build_stack_artifacts.mjs +141 -0
  3452. package/scripts/build/build_stack_artifacts.test.mjs +119 -0
  3453. package/scripts/build/build_targets.mjs +63 -0
  3454. package/scripts/build/build_targets.test.mjs +58 -0
  3455. package/scripts/build/build_web_artifact.mjs +73 -0
  3456. package/scripts/build/collect_build_source_metadata.mjs +76 -0
  3457. package/scripts/build/collect_build_source_metadata.test.mjs +41 -0
  3458. package/scripts/build/resolve_latest_component_artifact.mjs +31 -0
  3459. package/scripts/build/runtime_build_lock.mjs +80 -0
  3460. package/scripts/build/runtime_build_lock.test.mjs +95 -0
  3461. package/scripts/build/runtime_retention.mjs +170 -0
  3462. package/scripts/build/runtime_retention.test.mjs +183 -0
  3463. package/scripts/build/workspace_build_sandbox.mjs +49 -0
  3464. package/scripts/build/workspace_build_sandbox.test.mjs +37 -0
  3465. package/scripts/build.mjs +42 -30
  3466. package/scripts/bundleWorkspaceDeps.mjs +77 -13
  3467. package/scripts/bundleWorkspaceDeps.test.mjs +295 -8
  3468. package/scripts/daemon.getDaemonEnv.test.mjs +53 -0
  3469. package/scripts/daemon.mjs +701 -160
  3470. package/scripts/daemon_cleanup_lsof_unavailable.test.mjs +112 -0
  3471. package/scripts/daemon_dist_guard.test.mjs +613 -21
  3472. package/scripts/daemon_invalid_auth_reseed_stack_name.integration.test.mjs +112 -34
  3473. package/scripts/daemon_server_scope_commands.test.mjs +196 -0
  3474. package/scripts/daemon_server_scoped_state.test.mjs +41 -0
  3475. package/scripts/daemon_start_verification.integration.test.mjs +491 -23
  3476. package/scripts/daemon_stop_expected_pid.test.mjs +131 -0
  3477. package/scripts/dev.mjs +218 -116
  3478. package/scripts/dev_external_server_flags.test.mjs +75 -0
  3479. package/scripts/dev_rn_devtools_flag.test.mjs +24 -0
  3480. package/scripts/dev_runtime_mode_reject.test.mjs +22 -0
  3481. package/scripts/dev_tauri_flag.test.mjs +35 -0
  3482. package/scripts/doctor.mjs +17 -1
  3483. package/scripts/doctor_runtime_snapshot.test.mjs +68 -0
  3484. package/scripts/ghops.mjs +80 -0
  3485. package/scripts/ghops.test.mjs +78 -0
  3486. package/scripts/happier.mjs +379 -32
  3487. package/scripts/happier_defaults_from_settings.test.mjs +402 -0
  3488. package/scripts/happier_help_passthrough.test.mjs +47 -0
  3489. package/scripts/happier_runtime_snapshot.test.mjs +107 -0
  3490. package/scripts/happier_server_url_scope.test.mjs +61 -0
  3491. package/scripts/happier_tsx_fallback.test.mjs +75 -0
  3492. package/scripts/import.mjs +1 -1
  3493. package/scripts/init.mjs +46 -9
  3494. package/scripts/init_shim_invoked_cwd.test.mjs +392 -0
  3495. package/scripts/logs.mjs +285 -0
  3496. package/scripts/logs_cmd.test.mjs +113 -0
  3497. package/scripts/menubar.mjs +93 -6
  3498. package/scripts/menubar_install_stack_scoped_dry_run.test.mjs +117 -0
  3499. package/scripts/mobile.mjs +52 -9
  3500. package/scripts/mobile_dev_client.mjs +241 -40
  3501. package/scripts/mobile_dev_client_android_eas_profile_avoids_bundle_prompt.test.mjs +45 -0
  3502. package/scripts/mobile_dev_client_android_falls_back_to_pipeline_in_test_stub.test.mjs +39 -0
  3503. package/scripts/mobile_dev_client_android_prefers_expo_run_android_in_test_stub.test.mjs +23 -0
  3504. package/scripts/mobile_dev_client_android_reuse_existing_apk_in_test_stub.test.mjs +38 -0
  3505. package/scripts/mobile_dev_client_android_reuse_falls_back_to_cached_apk_in_test_stub.test.mjs +35 -0
  3506. package/scripts/mobile_dev_client_autopick_android_in_test_stub.test.mjs +25 -0
  3507. package/scripts/mobile_dev_client_autopick_android_serial_when_platform_explicit_in_test_stub.test.mjs +22 -0
  3508. package/scripts/mobile_dev_client_autopick_ios_in_test_stub.test.mjs +31 -0
  3509. package/scripts/mobile_dev_client_help_smoke.test.mjs +25 -0
  3510. package/scripts/mobile_prebuild_happyDir_defined.test.mjs +47 -0
  3511. package/scripts/mobile_prebuild_sets_rct_metro_port.test.mjs +81 -0
  3512. package/scripts/mobile_run_android_passes_port.test.mjs +85 -0
  3513. package/scripts/mobile_run_ios_passes_port.integration.test.mjs +103 -0
  3514. package/scripts/mobile_run_ios_uses_long_port_flag.test.mjs +106 -0
  3515. package/scripts/orchestrated_stack_auth_flow_resolve_port.test.mjs +10 -15
  3516. package/scripts/orchestrated_stack_auth_flow_webapp_url.test.mjs +115 -0
  3517. package/scripts/pack.test.mjs +28 -1
  3518. package/scripts/providers_cmd.mjs +207 -0
  3519. package/scripts/provision/{linux-ubuntu-e2e.sh → linux-ubuntu-hstack-smoke.sh} +27 -33
  3520. package/scripts/provision/linux-ubuntu-provision.sh +146 -0
  3521. package/scripts/provision/linux-ubuntu-provision.test.mjs +163 -0
  3522. package/scripts/provision/macos-lima-hstack-repeat-validation.sh +309 -0
  3523. package/scripts/provision/macos-lima-hstack-repeat-validation.test.mjs +369 -0
  3524. package/scripts/provision/macos-lima-hstack-smoke.sh +104 -0
  3525. package/scripts/provision/playwright-wsrepl-matrix-url.test.mjs +143 -0
  3526. package/scripts/provision/resolveStackAuthPaths.test.mjs +68 -0
  3527. package/scripts/provision/wsreplMatrixCredentials.test.mjs +44 -0
  3528. package/scripts/release.mjs +15 -2
  3529. package/scripts/release_binary_smoke.integration.test.mjs +30 -8
  3530. package/scripts/remote_cmd.mjs +286 -0
  3531. package/scripts/remote_cmd.test.mjs +54 -0
  3532. package/scripts/repo_cli_activate.mjs +41 -0
  3533. package/scripts/repo_cli_activate.test.mjs +41 -0
  3534. package/scripts/repo_local.mjs +547 -0
  3535. package/scripts/repo_local_wrapper.test.mjs +495 -0
  3536. package/scripts/review_pr.mjs +232 -11
  3537. package/scripts/review_pr.warm_base_deps.test.mjs +138 -0
  3538. package/scripts/review_pr.workspace_cache.test.mjs +197 -0
  3539. package/scripts/root_package_repo_local_scripts.test.mjs +53 -0
  3540. package/scripts/run.mjs +306 -85
  3541. package/scripts/run_script_with_stack_env.partial_runtime_recovery.test.mjs +265 -0
  3542. package/scripts/runtime/launch/inspectActiveRuntimeSnapshot.mjs +126 -0
  3543. package/scripts/runtime/launch/resolveActiveRuntimeSnapshot.mjs +19 -0
  3544. package/scripts/runtime/launch/resolveActiveRuntimeSnapshot.test.mjs +161 -0
  3545. package/scripts/runtime/launch/resolveCliRuntimeLaunchSpec.mjs +23 -0
  3546. package/scripts/runtime/launch/resolveLaunchSpecs.test.mjs +110 -0
  3547. package/scripts/runtime/launch/resolveServerRuntimeLaunchSpec.mjs +19 -0
  3548. package/scripts/runtime/launch/resolveStackRuntimeLaunchContext.mjs +17 -0
  3549. package/scripts/runtime/readBundledWorkspaceSyncConfig.mjs +35 -0
  3550. package/scripts/runtime/readBundledWorkspaceSyncConfig.test.mjs +33 -0
  3551. package/scripts/runtime/resolveBundledWorkspaceSyncModulePath.mjs +10 -0
  3552. package/scripts/runtime/resolveBundledWorkspaceSyncModulePath.test.mjs +20 -0
  3553. package/scripts/runtime/shared/artifact_manifest.mjs +48 -0
  3554. package/scripts/runtime/shared/ensureStackRuntimeModePrefer.mjs +30 -0
  3555. package/scripts/runtime/shared/ensureStackRuntimeModePrefer.test.mjs +35 -0
  3556. package/scripts/runtime/shared/runtime_fingerprint.mjs +24 -0
  3557. package/scripts/runtime/shared/runtime_fingerprint.test.mjs +69 -0
  3558. package/scripts/runtime/shared/runtime_manifest.mjs +85 -0
  3559. package/scripts/runtime/shared/runtime_manifest.test.mjs +120 -0
  3560. package/scripts/runtime/shared/runtime_mode.mjs +32 -0
  3561. package/scripts/runtime/shared/runtime_mode.test.mjs +48 -0
  3562. package/scripts/runtime/shared/runtime_paths.mjs +30 -0
  3563. package/scripts/runtime/shared/runtime_paths.test.mjs +42 -0
  3564. package/scripts/runtime_activate.mjs +135 -0
  3565. package/scripts/sandbox_workspace_override.test.mjs +47 -0
  3566. package/scripts/self.mjs +68 -12
  3567. package/scripts/self_host/findExtractedExecutableByName.mjs +20 -0
  3568. package/scripts/self_host/install_companion_cli.mjs +156 -0
  3569. package/scripts/self_host/install_companion_cli.test.mjs +119 -0
  3570. package/scripts/self_host/version_retention.mjs +69 -0
  3571. package/scripts/self_host/version_retention.test.mjs +100 -0
  3572. package/scripts/self_host_binary_smoke.integration.test.mjs +1 -1
  3573. package/scripts/self_host_daemon.real.integration.test.mjs +296 -0
  3574. package/scripts/self_host_launchd.real.integration.test.mjs +234 -0
  3575. package/scripts/self_host_runtime.mjs +2249 -396
  3576. package/scripts/self_host_runtime.test.mjs +1326 -1
  3577. package/scripts/self_host_schtasks.real.integration.test.mjs +217 -0
  3578. package/scripts/self_host_service_e2e_harness.mjs +93 -0
  3579. package/scripts/self_host_systemd.real.integration.test.mjs +10 -88
  3580. package/scripts/service.mjs +273 -154
  3581. package/scripts/service_autostart_program_args.test.mjs +32 -0
  3582. package/scripts/service_mode_help.test.mjs +1 -0
  3583. package/scripts/setup.mjs +261 -54
  3584. package/scripts/setup_deprecation_warning.test.mjs +47 -0
  3585. package/scripts/setup_dev_child_env.test.mjs +244 -0
  3586. package/scripts/setup_from_source_stable_branch_flag.test.mjs +129 -0
  3587. package/scripts/setup_local_repo_profile.test.mjs +145 -0
  3588. package/scripts/setup_pr.mjs +36 -22
  3589. package/scripts/setup_pr.mobile_scheme.test.mjs +332 -0
  3590. package/scripts/setup_pr_orchestrated_auth_flow_util_import.test.mjs +31 -1
  3591. package/scripts/stack/command_arguments.mjs +1 -0
  3592. package/scripts/stack/delegated_script_commands.mjs +11 -2
  3593. package/scripts/stack/help_text.mjs +8 -4
  3594. package/scripts/stack/run_script_with_stack_env.mjs +135 -17
  3595. package/scripts/stack/stack_daemon_command.mjs +56 -4
  3596. package/scripts/stack/stack_environment.mjs +34 -3
  3597. package/scripts/stack/stack_environment.sanitization.test.mjs +70 -0
  3598. package/scripts/stack/stack_info_snapshot.mjs +59 -3
  3599. package/scripts/stack/stack_mobile_install_command.mjs +92 -25
  3600. package/scripts/stack/stack_mobile_install_command.test.mjs +53 -0
  3601. package/scripts/stack.mjs +83 -39
  3602. package/scripts/stack_copy_auth_server_scoped.test.mjs +7 -3
  3603. package/scripts/stack_create_dev_auth_seed_help_force.test.mjs +38 -0
  3604. package/scripts/stack_create_dev_auth_seed_repo_pin.test.mjs +43 -0
  3605. package/scripts/stack_daemon_cmd.integration.test.mjs +179 -70
  3606. package/scripts/stack_editor_workspace_monorepo_root.test.mjs +9 -19
  3607. package/scripts/stack_guided_login_bundle_timeout.test.mjs +210 -0
  3608. package/scripts/stack_guided_login_does_not_preopen_browser.test.mjs +17 -0
  3609. package/scripts/stack_guided_login_inner_invocation.test.mjs +99 -12
  3610. package/scripts/stack_happy_cmd.integration.test.mjs +220 -60
  3611. package/scripts/stack_info_runtime_snapshot.test.mjs +64 -0
  3612. package/scripts/stack_info_snapshot_running_status.test.mjs +84 -22
  3613. package/scripts/stack_interactive_monorepo_group.test.mjs +16 -44
  3614. package/scripts/stack_owner_death_watchdog.integration.test.mjs +144 -0
  3615. package/scripts/stack_package_scripts.test.mjs +17 -0
  3616. package/scripts/stack_pr_help_cmd.test.mjs +38 -0
  3617. package/scripts/stack_resume_cmd.integration.test.mjs +13 -53
  3618. package/scripts/stack_runtime_activate_command.test.mjs +130 -0
  3619. package/scripts/stack_runtime_start.integration.test.mjs +147 -0
  3620. package/scripts/stack_service_passthrough.test.mjs +48 -0
  3621. package/scripts/start_runtime_mode_json.test.mjs +34 -0
  3622. package/scripts/stop.mjs +2 -3
  3623. package/scripts/stopStackWithEnv_daemonControlToken.integration.test.mjs +140 -0
  3624. package/scripts/stopStackWithEnv_kills_ephemeral_runtime_pids_without_env_markers.integration.test.mjs +98 -0
  3625. package/scripts/stopStackWithEnv_sweeps_repo_local_stack_by_stackName_when_runtime_missing.integration.test.mjs +78 -0
  3626. package/scripts/swiftbar_primary_stack_header.test.mjs +56 -0
  3627. package/scripts/swiftbar_stack_status_runtime.test.mjs +429 -0
  3628. package/scripts/tailscale.mjs +62 -143
  3629. package/scripts/tailscale_cmd_output.test.mjs +136 -0
  3630. package/scripts/tauri_dev.mjs +291 -0
  3631. package/scripts/tauri_dev.test.mjs +117 -0
  3632. package/scripts/test_ci.mjs +22 -18
  3633. package/scripts/test_cmd.mjs +7 -23
  3634. package/scripts/test_cmd.test.mjs +39 -28
  3635. package/scripts/test_integration.mjs +31 -18
  3636. package/scripts/testkit/auth_testkit.mjs +20 -54
  3637. package/scripts/testkit/core/env_scope.mjs +88 -0
  3638. package/scripts/testkit/core/fake_bin_harness.mjs +53 -0
  3639. package/scripts/testkit/core/minimal_monorepo_layout.mjs +54 -0
  3640. package/scripts/testkit/core/run_node_capture.mjs +69 -0
  3641. package/scripts/testkit/core/runtime_snapshot_layout.mjs +135 -0
  3642. package/scripts/testkit/core/spawn_test_process.mjs +27 -0
  3643. package/scripts/testkit/core/spawn_test_process.test.mjs +52 -0
  3644. package/scripts/testkit/core/stack_root.mjs +26 -0
  3645. package/scripts/testkit/core/stub_happier_cli_files.mjs +46 -0
  3646. package/scripts/testkit/core/stub_happier_cli_files.test.mjs +20 -0
  3647. package/scripts/testkit/core/sync_logged_command_harness.mjs +49 -0
  3648. package/scripts/testkit/core/temp_fixture.mjs +42 -0
  3649. package/scripts/testkit/doctor_testkit.mjs +24 -52
  3650. package/scripts/testkit/happier_cli_monorepo_testkit.mjs +31 -0
  3651. package/scripts/testkit/mobile_dev_client_testkit.mjs +136 -0
  3652. package/scripts/testkit/mobile_dev_client_testkit_env_sanitization.test.mjs +32 -0
  3653. package/scripts/testkit/monorepo_port_testkit.mjs +9 -26
  3654. package/scripts/testkit/runtime_snapshot_start_testkit.mjs +281 -0
  3655. package/scripts/testkit/runtime_snapshot_testkit.mjs +57 -0
  3656. package/scripts/testkit/stack_archive_command_testkit.mjs +23 -17
  3657. package/scripts/testkit/stack_happier_cli_command_testkit.mjs +75 -0
  3658. package/scripts/testkit/stack_new_monorepo_testkit.mjs +19 -37
  3659. package/scripts/testkit/stack_script_command_testkit.mjs +1 -27
  3660. package/scripts/testkit/stack_stop_sweeps_testkit.mjs +39 -42
  3661. package/scripts/testkit/worktrees_monorepo_testkit.mjs +22 -35
  3662. package/scripts/tui.mjs +751 -99
  3663. package/scripts/tui_args_default_cmd.test.mjs +42 -0
  3664. package/scripts/utils/auth/auth_force_flag.mjs +14 -0
  3665. package/scripts/utils/auth/clearStackForceLoginCredentialPaths.mjs +20 -0
  3666. package/scripts/utils/auth/credentials_paths.mjs +218 -30
  3667. package/scripts/utils/auth/credentials_paths.test.mjs +149 -1
  3668. package/scripts/utils/auth/ensure_active_access_key_valid.mjs +157 -0
  3669. package/scripts/utils/auth/ensure_active_access_key_valid.test.mjs +208 -0
  3670. package/scripts/utils/auth/format_daemon_auth_scope_diagnostic.mjs +43 -0
  3671. package/scripts/utils/auth/format_daemon_auth_scope_diagnostic.test.mjs +56 -0
  3672. package/scripts/utils/auth/interactive_stack_auth.mjs +8 -0
  3673. package/scripts/utils/auth/interactive_stack_auth.test.mjs +29 -0
  3674. package/scripts/utils/auth/login_ux.mjs +8 -0
  3675. package/scripts/utils/auth/orchestrated_stack_auth_flow.mjs +187 -19
  3676. package/scripts/utils/auth/orchestrated_stack_auth_flow_start_timeout.test.mjs +68 -0
  3677. package/scripts/utils/auth/stable_scope_id.mjs +1 -1
  3678. package/scripts/utils/auth/stack_guided_login.mjs +180 -34
  3679. package/scripts/utils/cli/cliDistIntegrity.mjs +86 -0
  3680. package/scripts/utils/cli/cli_registry.mjs +41 -5
  3681. package/scripts/utils/cli/cwd_scope.mjs +9 -1
  3682. package/scripts/utils/cli/cwd_scope.test.mjs +26 -31
  3683. package/scripts/utils/cli/normalize.mjs +1 -0
  3684. package/scripts/utils/cli/progress.mjs +8 -1
  3685. package/scripts/utils/cli/progress.test.mjs +43 -0
  3686. package/scripts/utils/dev/daemon.mjs +26 -10
  3687. package/scripts/utils/dev/daemon_watch_resilience.test.mjs +64 -0
  3688. package/scripts/utils/dev/expo_dev.buildEnv.test.mjs +37 -0
  3689. package/scripts/utils/dev/expo_dev.ensure_workspace_built.test.mjs +74 -0
  3690. package/scripts/utils/dev/expo_dev.mjs +139 -21
  3691. package/scripts/utils/dev/expo_dev_restart_port_reservation.test.mjs +336 -7
  3692. package/scripts/utils/dev/expo_dev_runtime_metadata.test.mjs +126 -0
  3693. package/scripts/utils/dev/expo_dev_verbose_logs.test.mjs +9 -2
  3694. package/scripts/utils/dev/react_native_devtools.mjs +27 -0
  3695. package/scripts/utils/dev/react_native_devtools.test.mjs +26 -0
  3696. package/scripts/utils/dev/resolveDevServerConnection.mjs +60 -0
  3697. package/scripts/utils/dev/resolveDevServerConnection.test.mjs +74 -0
  3698. package/scripts/utils/dev/server.mjs +9 -3
  3699. package/scripts/utils/dev/tauri_dev.mjs +377 -0
  3700. package/scripts/utils/dev/tauri_dev.test.mjs +490 -0
  3701. package/scripts/utils/env/env.mjs +3 -0
  3702. package/scripts/utils/env/scrub_env.mjs +21 -0
  3703. package/scripts/utils/expo/command.mjs +88 -8
  3704. package/scripts/utils/expo/command_export_max_workers.test.mjs +137 -0
  3705. package/scripts/utils/expo/command_heap_limit_env.test.mjs +244 -0
  3706. package/scripts/utils/expo/command_workspace_deps_built.test.mjs +250 -0
  3707. package/scripts/utils/expo/expo.mjs +127 -3
  3708. package/scripts/utils/expo/expoNodeHeapEnv.mjs +42 -0
  3709. package/scripts/utils/expo/expo_shared_tmpdir.test.mjs +38 -0
  3710. package/scripts/utils/expo/expo_state_running.test.mjs +66 -0
  3711. package/scripts/utils/expo/expo_wait_for_metro.test.mjs +50 -0
  3712. package/scripts/utils/expo/metro_ports.mjs +10 -3
  3713. package/scripts/utils/expo/metro_ports.test.mjs +55 -0
  3714. package/scripts/utils/git/default_branch.mjs +22 -0
  3715. package/scripts/utils/git/default_branch.test.mjs +45 -0
  3716. package/scripts/utils/git/dev_checkout.mjs +4 -3
  3717. package/scripts/utils/git/fast_forward_to_remote.mjs +136 -0
  3718. package/scripts/utils/git/fast_forward_to_remote.test.mjs +90 -0
  3719. package/scripts/utils/git/refs.mjs +18 -1
  3720. package/scripts/utils/git/refs.test.mjs +37 -0
  3721. package/scripts/utils/git/worktrees_monorepo.test.mjs +8 -16
  3722. package/scripts/utils/menubar/swiftbar.mjs +2 -2
  3723. package/scripts/utils/mobile/config.mjs +1 -1
  3724. package/scripts/utils/mobile/config.test.mjs +9 -0
  3725. package/scripts/utils/mobile/copy_artifact.mjs +42 -0
  3726. package/scripts/utils/mobile/copy_artifact.test.mjs +24 -0
  3727. package/scripts/utils/mobile/dev_client_android_strategy.mjs +54 -0
  3728. package/scripts/utils/mobile/dev_client_android_strategy.test.mjs +56 -0
  3729. package/scripts/utils/mobile/dev_client_autopick.mjs +201 -0
  3730. package/scripts/utils/mobile/dev_client_install_invocation.android.test.mjs +37 -0
  3731. package/scripts/utils/mobile/dev_client_install_invocation.mjs +94 -0
  3732. package/scripts/utils/mobile/dev_client_install_invocation.test.mjs +91 -0
  3733. package/scripts/utils/mobile/dev_client_links.mjs +13 -3
  3734. package/scripts/utils/mobile/dev_client_links.test.mjs +28 -0
  3735. package/scripts/utils/mobile/identifiers.mjs +7 -4
  3736. package/scripts/utils/mobile/identifiers.test.mjs +3 -3
  3737. package/scripts/utils/mobile/ios_xcodeproj_patch.test.mjs +1 -1
  3738. package/scripts/utils/net/ports.mjs +83 -7
  3739. package/scripts/utils/net/ports.test.mjs +46 -0
  3740. package/scripts/utils/paths/paths.mjs +12 -2
  3741. package/scripts/utils/paths/paths_monorepo.test.mjs +49 -20
  3742. package/scripts/utils/proc/cliDistBuildLock.mjs +102 -0
  3743. package/scripts/utils/proc/cliDistBuildLock.test.mjs +42 -0
  3744. package/scripts/utils/proc/commands.mjs +34 -3
  3745. package/scripts/utils/proc/commands_commandExists_respects_path_env.test.mjs +25 -0
  3746. package/scripts/utils/proc/ensureWorkspacePackagesBuilt.test.mjs +291 -0
  3747. package/scripts/utils/proc/ownership.mjs +7 -0
  3748. package/scripts/utils/proc/ownership_killProcessGroupOwnedByStack.test.mjs +83 -7
  3749. package/scripts/utils/proc/ownership_listPidsWithEnvNeedles.test.mjs +2 -4
  3750. package/scripts/utils/proc/pm.mjs +616 -114
  3751. package/scripts/utils/proc/pm_spawn.integration.test.mjs +54 -0
  3752. package/scripts/utils/proc/pm_stack_cache_env.test.mjs +699 -2
  3753. package/scripts/utils/proc/pm_yarn_ready_auto_yes.test.mjs +92 -0
  3754. package/scripts/utils/proc/proc.mjs +58 -16
  3755. package/scripts/utils/proc/proc.test.mjs +24 -1
  3756. package/scripts/utils/proc/terminate.test.mjs +3 -4
  3757. package/scripts/utils/process/resolveCommandInvocation.mjs +14 -0
  3758. package/scripts/utils/process/resolveCommandInvocation.win32CmdShim.test.mjs +35 -0
  3759. package/scripts/utils/remote/install_remote_first_party_component.mjs +170 -0
  3760. package/scripts/utils/remote/install_remote_first_party_component.test.mjs +63 -0
  3761. package/scripts/utils/review/detached_worktree.test.mjs +2 -16
  3762. package/scripts/utils/review/head_slice.test.mjs +3 -17
  3763. package/scripts/utils/review/uncommitted_ops.test.mjs +3 -17
  3764. package/scripts/utils/server/apply_runtime_server_light_sqlite_env.mjs +25 -0
  3765. package/scripts/utils/server/port.mjs +20 -2
  3766. package/scripts/utils/server/resolve_stack_server_port.mjs +101 -0
  3767. package/scripts/utils/server/resolve_stack_server_port.test.mjs +185 -0
  3768. package/scripts/utils/server/server.mjs +82 -25
  3769. package/scripts/utils/server/server.test.mjs +183 -0
  3770. package/scripts/utils/server/urls.mjs +5 -2
  3771. package/scripts/utils/server/urls.test.mjs +51 -0
  3772. package/scripts/utils/service/auth_guidance.mjs +56 -0
  3773. package/scripts/utils/service/auth_guidance.test.mjs +65 -0
  3774. package/scripts/utils/service/daemon_autostart.mjs +190 -0
  3775. package/scripts/utils/service/daemon_autostart.test.mjs +257 -0
  3776. package/scripts/utils/service/service_manager.definition.test.mjs +66 -0
  3777. package/scripts/utils/service/service_manager.mjs +96 -0
  3778. package/scripts/utils/service/service_manager.plan.test.mjs +37 -0
  3779. package/scripts/utils/service/service_manager.test.mjs +20 -0
  3780. package/scripts/utils/service/stack_autostart_resolution.mjs +77 -0
  3781. package/scripts/utils/service/stack_autostart_resolution.test.mjs +117 -0
  3782. package/scripts/utils/service/systemd_service_unit.mjs +1 -0
  3783. package/scripts/utils/service/systemd_service_unit.test.mjs +42 -0
  3784. package/scripts/utils/service/windows_schtasks_wrapper.mjs +1 -0
  3785. package/scripts/utils/service/windows_schtasks_wrapper.test.mjs +25 -0
  3786. package/scripts/utils/setup/child_env.mjs +13 -0
  3787. package/scripts/utils/setup/child_env.test.mjs +36 -0
  3788. package/scripts/utils/stack/owner_death_watchdog.mjs +73 -0
  3789. package/scripts/utils/stack/owner_death_watchdog_runner.mjs +128 -0
  3790. package/scripts/utils/stack/runtime_daemon_state.mjs +175 -0
  3791. package/scripts/utils/stack/runtime_daemon_state.test.mjs +193 -0
  3792. package/scripts/utils/stack/runtime_state.mjs +28 -2
  3793. package/scripts/utils/stack/runtime_state.test.mjs +70 -0
  3794. package/scripts/utils/stack/stacks.mjs +2 -2
  3795. package/scripts/utils/stack/startup.mjs +22 -0
  3796. package/scripts/utils/stack/startup_runtime_probe.test.mjs +46 -0
  3797. package/scripts/utils/stack/stop.mjs +131 -12
  3798. package/scripts/utils/stack/terminal_usage_instructions.mjs +52 -0
  3799. package/scripts/utils/stack/terminal_usage_instructions.test.mjs +25 -0
  3800. package/scripts/utils/tailscale/extract_https_url_from_status.mjs +5 -0
  3801. package/scripts/utils/tailscale/ip.mjs +15 -54
  3802. package/scripts/utils/tailscale/ip.test.mjs +37 -0
  3803. package/scripts/utils/tauri/createStackTauriDevConfig.mjs +34 -0
  3804. package/scripts/utils/tauri/createStackTauriDevConfig.test.mjs +39 -0
  3805. package/scripts/utils/tauri/dev_runtime.mjs +45 -0
  3806. package/scripts/utils/tauri/dev_runtime.test.mjs +79 -0
  3807. package/scripts/utils/tauri/stack_overrides.mjs +16 -0
  3808. package/scripts/utils/test/collect_test_files.mjs +3 -1
  3809. package/scripts/utils/test/collect_test_files.test.mjs +73 -0
  3810. package/scripts/utils/test/integration_test_runner.mjs +35 -0
  3811. package/scripts/utils/test/integration_test_runner.test.mjs +42 -0
  3812. package/scripts/utils/test/lane_contract.test.mjs +12 -0
  3813. package/scripts/utils/test/test_cleanup.mjs +21 -0
  3814. package/scripts/utils/test/test_collection.mjs +54 -0
  3815. package/scripts/utils/test/test_collection.test.mjs +64 -0
  3816. package/scripts/utils/test/test_env.mjs +17 -0
  3817. package/scripts/utils/test/test_paths.mjs +42 -0
  3818. package/scripts/utils/test/test_process.mjs +37 -0
  3819. package/scripts/utils/test/test_process.test.mjs +20 -0
  3820. package/scripts/utils/tui/actions.mjs +22 -0
  3821. package/scripts/utils/tui/actions.test.mjs +39 -0
  3822. package/scripts/utils/tui/args.mjs +60 -0
  3823. package/scripts/utils/tui/args.test.mjs +90 -0
  3824. package/scripts/utils/tui/child_termination_plan.mjs +28 -0
  3825. package/scripts/utils/tui/child_termination_plan.test.mjs +25 -0
  3826. package/scripts/utils/tui/daemon_auth_notice.mjs +77 -0
  3827. package/scripts/utils/tui/daemon_auth_notice.test.mjs +65 -0
  3828. package/scripts/utils/tui/daemon_autostart.mjs +36 -0
  3829. package/scripts/utils/tui/daemon_autostart.test.mjs +173 -0
  3830. package/scripts/utils/tui/daemon_pane_reconcile.mjs +45 -0
  3831. package/scripts/utils/tui/daemon_pane_reconcile.test.mjs +45 -0
  3832. package/scripts/utils/tui/pane_routing.mjs +12 -0
  3833. package/scripts/utils/tui/pane_routing.test.mjs +18 -0
  3834. package/scripts/utils/tui/script_pty_command.mjs +27 -0
  3835. package/scripts/utils/tui/script_pty_command.test.mjs +29 -0
  3836. package/scripts/utils/tui/stack_scope_env.mjs +10 -0
  3837. package/scripts/utils/tui/stack_scope_env.test.mjs +21 -0
  3838. package/scripts/utils/tui/stdin_error_guard.mjs +47 -0
  3839. package/scripts/utils/tui/stdin_error_guard.test.mjs +17 -0
  3840. package/scripts/utils/tui/stdin_handoff.mjs +101 -0
  3841. package/scripts/utils/tui/stdin_handoff.test.mjs +29 -0
  3842. package/scripts/utils/tui/summary_env.mjs +7 -0
  3843. package/scripts/utils/tui/summary_env.test.mjs +22 -0
  3844. package/scripts/utils/tui/tauri_mode.mjs +61 -0
  3845. package/scripts/utils/tui/tauri_mode.test.mjs +109 -0
  3846. package/scripts/utils/ui/box_line.mjs +46 -0
  3847. package/scripts/utils/ui/box_line.test.mjs +20 -0
  3848. package/scripts/utils/ui/ui_export_env.mjs +31 -0
  3849. package/scripts/utils/ui/ui_export_env.test.mjs +26 -0
  3850. package/scripts/utils/worktrees/reflink_copy_dir.mjs +35 -0
  3851. package/scripts/utils/worktrees/seed_node_modules.mjs +35 -0
  3852. package/scripts/utils/worktrees/seed_node_modules.test.mjs +82 -0
  3853. package/scripts/utils/worktrees/yarn_install_guard.mjs +53 -0
  3854. package/scripts/utils/worktrees/yarn_install_guard.test.mjs +73 -0
  3855. package/scripts/where.mjs +3 -0
  3856. package/scripts/worktrees.mjs +19 -0
  3857. package/scripts/worktrees_archive_cmd.integration.test.mjs +23 -108
  3858. package/scripts/worktrees_status_default_target.test.mjs +56 -0
  3859. package/docs/codex-mcp-resume.md +0 -129
  3860. package/scripts/provision/linux-ubuntu-review-pr.sh +0 -66
  3861. package/scripts/provision/macos-lima-happy-vm.sh +0 -192
  3862. package/scripts/provision/macos-lima-hstack-e2e.sh +0 -100
  3863. package/scripts/utils/service/autostart_darwin.mjs +0 -198
  3864. package/scripts/utils/service/autostart_darwin.test.mjs +0 -49
  3865. package/scripts/utils/service/autostart_darwin_keepalive.test.mjs +0 -19
@@ -1,30 +1,59 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { createHash } from 'node:crypto';
2
+ import { createHash, randomUUID } from 'node:crypto';
3
3
  import { existsSync } from 'node:fs';
4
4
  import {
5
+ cp,
5
6
  chmod,
6
7
  copyFile,
7
8
  mkdir,
8
9
  mkdtemp,
9
10
  readFile,
10
11
  readdir,
12
+ rename,
11
13
  rm,
12
14
  stat,
13
15
  symlink,
14
16
  writeFile,
15
17
  } from 'node:fs/promises';
16
- import { tmpdir } from 'node:os';
17
- import { dirname, join } from 'node:path';
18
+ import { homedir, tmpdir } from 'node:os';
19
+ import { dirname, join, win32 as win32Path } from 'node:path';
18
20
 
19
21
  import { parseArgs } from './utils/cli/args.mjs';
20
22
  import { printResult, wantsHelp, wantsJson } from './utils/cli/cli.mjs';
21
23
  import { banner, sectionTitle } from './utils/ui/layout.mjs';
22
24
  import { cyan, dim, green, yellow } from './utils/ui/ansi.mjs';
23
-
24
- const SUPPORTED_CHANNELS = new Set(['stable', 'preview']);
25
+ import { installService as installManagedService, restartService as restartManagedService, uninstallService as uninstallManagedService } from './utils/service/service_manager.mjs';
26
+ import {
27
+ applyServicePlan,
28
+ buildLaunchdPath,
29
+ buildLaunchdPlistXml,
30
+ buildServiceDefinition,
31
+ planServiceAction,
32
+ renderSystemdServiceUnit,
33
+ renderWindowsScheduledTaskWrapperPs1,
34
+ resolveServiceBackend,
35
+ } from '@happier-dev/cli-common/service';
36
+ import {
37
+ parseEnvText as parseEnvTextShared,
38
+ renderSelfHostServerEnvText as renderSelfHostServerEnvTextShared,
39
+ } from '@happier-dev/cli-common/firstPartyRuntime';
40
+ import { DEFAULT_MINISIGN_PUBLIC_KEY } from '@happier-dev/release-runtime/minisign';
41
+ import {
42
+ PUBLIC_RELEASE_RING_IDS,
43
+ getReleaseRingCatalogEntry,
44
+ normalizePublicReleaseRingId,
45
+ } from '@happier-dev/release-runtime/releaseRings';
46
+ import { resolveReleaseAssetBundle } from '@happier-dev/release-runtime/assets';
47
+ import { downloadVerifiedReleaseAssetBundle } from '@happier-dev/release-runtime/verifiedDownload';
48
+ import { planArchiveExtraction } from '@happier-dev/release-runtime/extractPlan';
49
+ import { fetchFirstGitHubReleaseByTags, fetchGitHubReleaseByTag } from '@happier-dev/release-runtime/github';
50
+ import { findExtractedExecutableByName } from './self_host/findExtractedExecutableByName.mjs';
51
+ import { maybeInstallCompanionCli } from './self_host/install_companion_cli.mjs';
52
+ import { listVersionedDirectoryIdsNewestFirst, pruneVersionedDirectories } from './self_host/version_retention.mjs';
53
+
54
+ const SUPPORTED_CHANNELS = new Set(PUBLIC_RELEASE_RING_IDS);
25
55
  const DEFAULTS = Object.freeze({
26
56
  githubRepo: 'happier-dev/happier',
27
- minisignPubKeyUrl: 'https://happier.dev/happier-release.pub',
28
57
  installRoot: '/opt/happier',
29
58
  binDir: '/usr/local/bin',
30
59
  configDir: '/etc/happier',
@@ -33,8 +62,55 @@ const DEFAULTS = Object.freeze({
33
62
  serviceName: 'happier-server',
34
63
  serverHost: '127.0.0.1',
35
64
  serverPort: 3005,
65
+ healthCheckTimeoutMs: 90_000,
66
+ autoUpdateIntervalMinutes: 1440,
67
+ uiWebProduct: 'happier-ui-web',
68
+ uiWebOs: 'web',
69
+ uiWebArch: 'any',
36
70
  });
37
71
 
72
+ function resolveSelfHostReleaseSuffix(channel) {
73
+ const entry = getReleaseRingCatalogEntry(channel);
74
+ if (!entry.rollingReleaseSuffix) {
75
+ throw new Error(`[self-host] public release ring ${channel} is missing a rolling suffix`);
76
+ }
77
+ return entry.rollingReleaseSuffix;
78
+ }
79
+
80
+ function appendSelfHostReleaseSuffix(baseValue, channel) {
81
+ return channel === 'stable' ? baseValue : `${baseValue}-${resolveSelfHostReleaseSuffix(channel)}`;
82
+ }
83
+
84
+ export function resolveSelfHostDefaults({ platform = process.platform, mode = 'user', channel = 'stable', homeDir = homedir() } = {}) {
85
+ const p = String(platform ?? '').trim() || process.platform;
86
+ const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
87
+ const normalizedChannel = normalizeChannel(channel);
88
+ const home = String(homeDir ?? '').trim() || homedir();
89
+
90
+ if (m === 'system') {
91
+ return {
92
+ installRoot: appendSelfHostReleaseSuffix(DEFAULTS.installRoot, normalizedChannel),
93
+ binDir: DEFAULTS.binDir,
94
+ configDir: appendSelfHostReleaseSuffix(DEFAULTS.configDir, normalizedChannel),
95
+ dataDir: appendSelfHostReleaseSuffix(DEFAULTS.dataDir, normalizedChannel),
96
+ logDir: appendSelfHostReleaseSuffix(DEFAULTS.logDir, normalizedChannel),
97
+ serviceName: appendSelfHostReleaseSuffix(DEFAULTS.serviceName, normalizedChannel),
98
+ };
99
+ }
100
+
101
+ const happierHome = p === 'win32' ? `${home}\\.happier` : join(home, '.happier');
102
+ const installRootBase = p === 'win32' ? `${happierHome}\\self-host` : join(happierHome, 'self-host');
103
+ const installRoot = appendSelfHostReleaseSuffix(installRootBase, normalizedChannel);
104
+ return {
105
+ installRoot,
106
+ binDir: p === 'win32' ? `${happierHome}\\bin` : join(happierHome, 'bin'),
107
+ configDir: p === 'win32' ? `${installRoot}\\config` : join(installRoot, 'config'),
108
+ dataDir: p === 'win32' ? `${installRoot}\\data` : join(installRoot, 'data'),
109
+ logDir: p === 'win32' ? `${installRoot}\\logs` : join(installRoot, 'logs'),
110
+ serviceName: appendSelfHostReleaseSuffix(DEFAULTS.serviceName, normalizedChannel),
111
+ };
112
+ }
113
+
38
114
  function parseBoolean(raw, fallback = false) {
39
115
  const value = String(raw ?? '').trim().toLowerCase();
40
116
  if (!value) return fallback;
@@ -50,10 +126,86 @@ function parsePort(raw, fallback = DEFAULTS.serverPort) {
50
126
  return port > 0 && port <= 65535 ? port : fallback;
51
127
  }
52
128
 
53
- function assertLinux() {
54
- if (process.platform !== 'linux') {
55
- throw new Error('[self-host] Happier Self-Host currently supports Linux only.');
129
+ function parseDailyAtTime(raw) {
130
+ const text = String(raw ?? '').trim();
131
+ if (!text) return null;
132
+ const m = /^(\d{1,2}):(\d{1,2})$/.exec(text);
133
+ if (!m) return null;
134
+ const hourRaw = Number(m[1]);
135
+ const minuteRaw = Number(m[2]);
136
+ const hour = Number.isFinite(hourRaw) ? Math.floor(hourRaw) : NaN;
137
+ const minute = Number.isFinite(minuteRaw) ? Math.floor(minuteRaw) : NaN;
138
+ if (!Number.isFinite(hour) || !Number.isFinite(minute)) return null;
139
+ if (hour < 0 || hour > 23) return null;
140
+ if (minute < 0 || minute > 59) return null;
141
+ const hh = String(hour).padStart(2, '0');
142
+ const mm = String(minute).padStart(2, '0');
143
+ return { hour, minute, normalized: `${hh}:${mm}` };
144
+ }
145
+
146
+ export function resolveSelfHostHealthTimeoutMs(env = process.env) {
147
+ const raw = String(env?.HAPPIER_SELF_HOST_HEALTH_TIMEOUT_MS ?? '').trim();
148
+ if (!raw) return DEFAULTS.healthCheckTimeoutMs;
149
+ const parsed = Number(raw);
150
+ return Number.isFinite(parsed) && parsed >= 10_000
151
+ ? Math.floor(parsed)
152
+ : DEFAULTS.healthCheckTimeoutMs;
153
+ }
154
+
155
+ export function resolveSelfHostEffectiveServerPort({ config, env } = {}) {
156
+ const fallback = parsePort(config?.serverPort, DEFAULTS.serverPort);
157
+ return parsePort(env?.PORT, fallback);
158
+ }
159
+
160
+ export function resolveSelfHostAutoUpdateDefault(env = process.env) {
161
+ return parseBoolean(env?.HAPPIER_SELF_HOST_AUTO_UPDATE, false);
162
+ }
163
+
164
+ export function resolveSelfHostAutoUpdateIntervalMinutes(env = process.env) {
165
+ const raw = String(env?.HAPPIER_SELF_HOST_AUTO_UPDATE_INTERVAL_MINUTES ?? '').trim();
166
+ if (!raw) return DEFAULTS.autoUpdateIntervalMinutes;
167
+ const parsed = Number(raw);
168
+ const minutes = Number.isFinite(parsed) ? Math.floor(parsed) : NaN;
169
+ return Number.isFinite(minutes) && minutes >= 15
170
+ ? minutes
171
+ : DEFAULTS.autoUpdateIntervalMinutes;
172
+ }
173
+
174
+ export function resolveSelfHostAutoUpdateAt(env = process.env) {
175
+ const raw = String(env?.HAPPIER_SELF_HOST_AUTO_UPDATE_AT ?? '').trim();
176
+ const parsed = parseDailyAtTime(raw);
177
+ return parsed?.normalized || '';
178
+ }
179
+
180
+ export function normalizeSelfHostAutoUpdateState(state, { fallbackIntervalMinutes = DEFAULTS.autoUpdateIntervalMinutes } = {}) {
181
+ const fallbackRaw = Number(fallbackIntervalMinutes);
182
+ const fallback =
183
+ Number.isFinite(fallbackRaw) && Math.floor(fallbackRaw) >= 15
184
+ ? Math.floor(fallbackRaw)
185
+ : DEFAULTS.autoUpdateIntervalMinutes;
186
+
187
+ const raw = state?.autoUpdate;
188
+ if (raw != null && typeof raw === 'object') {
189
+ const enabled = Boolean(raw.enabled);
190
+ const parsed = Number(raw.intervalMinutes);
191
+ const intervalMinutes = Number.isFinite(parsed) && Math.floor(parsed) >= 15 ? Math.floor(parsed) : fallback;
192
+ const at = typeof raw.at === 'string' ? (parseDailyAtTime(raw.at)?.normalized || '') : '';
193
+ return { enabled, intervalMinutes, at };
56
194
  }
195
+ if (raw === true || raw === false) {
196
+ return { enabled: raw, intervalMinutes: fallback, at: '' };
197
+ }
198
+ return { enabled: false, intervalMinutes: fallback, at: '' };
199
+ }
200
+
201
+ export function decideSelfHostAutoUpdateReconcile(state, { fallbackIntervalMinutes = DEFAULTS.autoUpdateIntervalMinutes } = {}) {
202
+ const normalized = normalizeSelfHostAutoUpdateState(state, { fallbackIntervalMinutes });
203
+ return {
204
+ action: normalized.enabled ? 'install' : 'uninstall',
205
+ enabled: normalized.enabled,
206
+ intervalMinutes: normalized.intervalMinutes,
207
+ at: normalized.at,
208
+ };
57
209
  }
58
210
 
59
211
  function assertRoot() {
@@ -82,7 +234,13 @@ function runCommand(cmd, args, { cwd, env, allowFail = false, stdio = 'pipe' } =
82
234
  }
83
235
 
84
236
  function commandExists(cmd) {
85
- const result = runCommand('bash', ['-lc', `command -v ${cmd} >/dev/null 2>&1`], { allowFail: true, stdio: 'ignore' });
237
+ const name = String(cmd ?? '').trim();
238
+ if (!name) return false;
239
+ if (process.platform === 'win32') {
240
+ const result = runCommand('where', [name], { allowFail: true, stdio: 'ignore' });
241
+ return (result.status ?? 1) === 0;
242
+ }
243
+ const result = runCommand('sh', ['-lc', `command -v ${name} >/dev/null 2>&1`], { allowFail: true, stdio: 'ignore' });
86
244
  return (result.status ?? 1) === 0;
87
245
  }
88
246
 
@@ -94,14 +252,59 @@ function normalizeArch() {
94
252
  return arch;
95
253
  }
96
254
 
255
+ function normalizeOs(platform = process.platform) {
256
+ const p = String(platform ?? '').trim() || process.platform;
257
+ if (p === 'linux') return 'linux';
258
+ if (p === 'darwin') return 'darwin';
259
+ if (p === 'win32') return 'windows';
260
+ throw new Error(`[self-host] unsupported platform: ${p}`);
261
+ }
262
+
97
263
  function normalizeChannel(raw) {
98
- const channel = String(raw ?? '').trim() || 'stable';
264
+ const requested = String(raw ?? '').trim() || 'stable';
265
+ const channel = normalizePublicReleaseRingId(requested);
99
266
  if (!SUPPORTED_CHANNELS.has(channel)) {
100
- throw new Error(`[self-host] invalid channel: ${channel} (expected stable|preview)`);
267
+ throw new Error(`[self-host] invalid channel: ${requested} (expected stable|preview|dev)`);
101
268
  }
102
269
  return channel;
103
270
  }
104
271
 
272
+ function displayChannel(channel) {
273
+ return getReleaseRingCatalogEntry(normalizeChannel(channel)).publicLabel;
274
+ }
275
+
276
+ export function resolveSelfHostReleaseTargets(channel) {
277
+ const normalizedChannel = normalizeChannel(channel);
278
+ const suffix = resolveSelfHostReleaseSuffix(normalizedChannel);
279
+ const stableServerTag = `server-${resolveSelfHostReleaseSuffix('stable')}`;
280
+ const previewServerTag = `server-${resolveSelfHostReleaseSuffix('preview')}`;
281
+ const channelServerTag = `server-${suffix}`;
282
+ const serverTags = Array.from(new Set(
283
+ normalizedChannel === 'stable'
284
+ ? [stableServerTag]
285
+ : normalizedChannel === 'preview'
286
+ ? [previewServerTag, stableServerTag]
287
+ : [channelServerTag, previewServerTag, stableServerTag],
288
+ ));
289
+ return {
290
+ channel: normalizedChannel,
291
+ serverTag: serverTags[0],
292
+ serverTags,
293
+ uiWebTags: normalizedChannel === 'stable'
294
+ ? ['ui-web-stable']
295
+ : normalizedChannel === 'preview'
296
+ ? ['ui-web-preview', 'ui-web-stable']
297
+ : ['ui-web-dev', 'ui-web-preview', 'ui-web-stable'],
298
+ };
299
+ }
300
+
301
+ function normalizeMode(raw) {
302
+ const mode = String(raw ?? '').trim().toLowerCase();
303
+ if (!mode) return 'user';
304
+ if (mode === 'user' || mode === 'system') return mode;
305
+ throw new Error(`[self-host] invalid mode: ${mode} (expected user|system)`);
306
+ }
307
+
105
308
  export function parseSelfHostInvocation(argv) {
106
309
  const args = Array.isArray(argv) ? [...argv] : [];
107
310
  if (args[0] === 'self-host' || args[0] === 'selfhost') {
@@ -116,116 +319,183 @@ export function parseSelfHostInvocation(argv) {
116
319
  };
117
320
  }
118
321
 
119
- function escapeRegex(s) {
120
- return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
121
- }
122
-
123
322
  export function pickReleaseAsset({ assets, product, os, arch }) {
124
- const list = Array.isArray(assets) ? assets : [];
125
- const archiveRe = new RegExp(`^${escapeRegex(product)}-v.+-${escapeRegex(os)}-${escapeRegex(arch)}\\.tar\\.gz$`);
126
- const checksumsRe = new RegExp(`^checksums-${escapeRegex(product)}-v.+\\.txt$`);
127
- const signatureRe = new RegExp(`^checksums-${escapeRegex(product)}-v.+\\.txt\\.minisig$`);
128
-
129
- const archive = list.find((asset) => archiveRe.test(String(asset?.name ?? '')));
130
- const checksums = list.find((asset) => checksumsRe.test(String(asset?.name ?? '')));
131
- const signature = list.find((asset) => signatureRe.test(String(asset?.name ?? '')));
132
- if (!archive || !checksums || !signature) {
133
- throw new Error(
134
- `[self-host] release assets not found for ${product} ${os}-${arch} (archive/checksums/signature missing)`
135
- );
136
- }
137
- const archiveName = String(archive.name);
138
- const versionMatch = archiveName.match(/-v([^-/]+)-/);
323
+ const { version, archive, checksums, checksumsSig } = resolveReleaseAssetBundle({
324
+ assets,
325
+ product,
326
+ os,
327
+ arch,
328
+ });
139
329
  return {
140
- archiveUrl: String(archive.browser_download_url ?? ''),
141
- archiveName,
142
- checksumsUrl: String(checksums.browser_download_url ?? ''),
143
- signatureUrl: String(signature.browser_download_url ?? ''),
144
- version: versionMatch ? versionMatch[1] : '',
330
+ archiveUrl: archive.url,
331
+ archiveName: archive.name,
332
+ checksumsUrl: checksums.url,
333
+ signatureUrl: checksumsSig.url,
334
+ version,
145
335
  };
146
336
  }
147
337
 
148
- async function sha256(path) {
149
- const bytes = await readFile(path);
150
- return createHash('sha256').update(bytes).digest('hex');
151
- }
152
-
153
- function parseChecksums(raw) {
154
- const map = new Map();
155
- for (const line of String(raw ?? '').split('\n')) {
156
- const trimmed = line.trim();
157
- if (!trimmed) continue;
158
- const match = /^([a-fA-F0-9]{64})\s{2}(.+)$/.exec(trimmed);
159
- if (!match) continue;
160
- map.set(match[2], match[1].toLowerCase());
338
+ function resolveSqliteDatabaseFilePath(databaseUrl) {
339
+ const raw = String(databaseUrl ?? '').trim();
340
+ if (!raw) return '';
341
+ if (!raw.startsWith('file:')) return '';
342
+ try {
343
+ const url = new URL(raw);
344
+ if (url.protocol !== 'file:') return '';
345
+ const pathname = url.pathname || '';
346
+ // On Windows, URL.pathname can start with /C:/...
347
+ return pathname.startsWith('/') && /^[A-Za-z]:\//.test(pathname.slice(1))
348
+ ? pathname.slice(1)
349
+ : pathname;
350
+ } catch {
351
+ const value = raw.slice('file:'.length);
352
+ return value.startsWith('//') ? value.replace(/^\/+/, '/') : value;
161
353
  }
162
- return map;
163
354
  }
164
355
 
165
- async function downloadToFile(url, targetPath) {
166
- const response = await fetch(url, {
167
- headers: {
168
- 'user-agent': 'happier-self-host-installer',
169
- accept: 'application/json',
170
- },
171
- });
172
- if (!response.ok) {
173
- throw new Error(`[self-host] download failed: ${url} (${response.status} ${response.statusText})`);
356
+ async function applySelfHostSqliteMigrationsAtInstallTime({ env }) {
357
+ if (typeof globalThis.Bun === 'undefined') {
358
+ return { applied: [], skipped: true, reason: 'bun-unavailable' };
359
+ }
360
+ const databaseUrl = String(env?.DATABASE_URL ?? '').trim();
361
+ const migrationsDir = String(env?.HAPPIER_SQLITE_MIGRATIONS_DIR ?? env?.HAPPY_SQLITE_MIGRATIONS_DIR ?? '').trim();
362
+ if (!databaseUrl || !migrationsDir) {
363
+ return { applied: [], skipped: true, reason: 'missing-config' };
364
+ }
365
+ const dbPath = resolveSqliteDatabaseFilePath(databaseUrl);
366
+ if (!dbPath) {
367
+ return { applied: [], skipped: true, reason: 'unsupported-database-url' };
368
+ }
369
+ const migrationsInfo = await stat(migrationsDir).catch(() => null);
370
+ if (!migrationsInfo?.isDirectory()) {
371
+ return { applied: [], skipped: true, reason: 'migrations-dir-missing' };
174
372
  }
175
- const bytes = Buffer.from(await response.arrayBuffer());
176
- await writeFile(targetPath, bytes);
177
- }
178
373
 
179
- async function readRelease(tag, githubRepo) {
180
- const url = `https://api.github.com/repos/${githubRepo}/releases/tags/${tag}`;
181
- const response = await fetch(url, {
182
- headers: {
183
- 'user-agent': 'happier-self-host-installer',
184
- accept: 'application/vnd.github+json',
185
- },
186
- });
187
- if (!response.ok) {
188
- throw new Error(`[self-host] failed to resolve GitHub release tag ${tag} (${response.status})`);
374
+ const mod = await import('bun:sqlite');
375
+ const Database = mod?.Database;
376
+ if (!Database) {
377
+ return { applied: [], skipped: true, reason: 'bun-sqlite-unavailable' };
189
378
  }
190
- return await response.json();
191
- }
379
+ const db = new Database(dbPath);
380
+ db.exec(
381
+ [
382
+ 'CREATE TABLE IF NOT EXISTS _prisma_migrations (',
383
+ ' id TEXT PRIMARY KEY,',
384
+ ' checksum TEXT NOT NULL,',
385
+ ' finished_at DATETIME,',
386
+ ' migration_name TEXT NOT NULL,',
387
+ ' logs TEXT,',
388
+ ' rolled_back_at DATETIME,',
389
+ ' started_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,',
390
+ ' applied_steps_count INTEGER NOT NULL DEFAULT 0',
391
+ ');',
392
+ ].join('\n'),
393
+ );
192
394
 
193
- async function findExecutableByName(rootDir, binaryName) {
194
- const entries = await readdir(rootDir, { withFileTypes: true });
195
- for (const entry of entries) {
196
- const fullPath = join(rootDir, entry.name);
197
- if (entry.isDirectory()) {
198
- const nested = await findExecutableByName(fullPath, binaryName);
199
- if (nested) return nested;
200
- continue;
395
+ const tableNamesQuery = db.query(`SELECT name FROM sqlite_master WHERE type='table'`);
396
+ const appliedQuery = db.query(
397
+ `SELECT migration_name FROM _prisma_migrations WHERE rolled_back_at IS NULL AND finished_at IS NOT NULL`,
398
+ );
399
+ const insertQuery = db.query(
400
+ `INSERT INTO _prisma_migrations (id, checksum, finished_at, migration_name, applied_steps_count) VALUES (?, ?, CURRENT_TIMESTAMP, ?, 1)`,
401
+ );
402
+
403
+ const applied = new Set(
404
+ appliedQuery.all().map((row) => String(row?.migration_name ?? '').trim()).filter(Boolean),
405
+ );
406
+
407
+ const existingTables = new Set(
408
+ tableNamesQuery.all().map((row) => String(row?.name ?? '').trim()).filter(Boolean),
409
+ );
410
+ const hasCoreTables =
411
+ existingTables.has('Account')
412
+ || existingTables.has('account')
413
+ || existingTables.has('accounts');
414
+ const legacyMode = applied.size === 0 && hasCoreTables;
415
+
416
+ const isLikelyAlreadyAppliedError = (err) => {
417
+ const msg = String(err?.message ?? err ?? '').toLowerCase();
418
+ return msg.includes('already exists') || msg.includes('duplicate column') || msg.includes('duplicate');
419
+ };
420
+
421
+ const entries = await readdir(migrationsDir, { withFileTypes: true }).catch(() => []);
422
+ const dirs = entries
423
+ .filter((e) => e.isDirectory())
424
+ .map((e) => e.name)
425
+ .sort((a, b) => a.localeCompare(b));
426
+
427
+ const sha256Hex = (input) => createHash('sha256').update(String(input)).digest('hex');
428
+ const appliedNow = [];
429
+ for (const name of dirs) {
430
+ if (applied.has(name)) continue;
431
+ const sqlPath = join(migrationsDir, name, 'migration.sql');
432
+ const sql = await readFile(sqlPath, 'utf8').catch(() => '');
433
+ if (!sql.trim()) continue;
434
+ const checksum = sha256Hex(sql);
435
+ db.exec('BEGIN');
436
+ try {
437
+ db.exec(sql);
438
+ insertQuery.run(randomUUID(), checksum, name);
439
+ db.exec('COMMIT');
440
+ appliedNow.push(name);
441
+ applied.add(name);
442
+ } catch (e) {
443
+ try {
444
+ db.exec('ROLLBACK');
445
+ } catch {
446
+ // ignore
447
+ }
448
+ if (legacyMode && isLikelyAlreadyAppliedError(e)) {
449
+ db.exec('BEGIN');
450
+ try {
451
+ insertQuery.run(randomUUID(), checksum, name);
452
+ db.exec('COMMIT');
453
+ } catch (inner) {
454
+ try {
455
+ db.exec('ROLLBACK');
456
+ } catch {
457
+ // ignore
458
+ }
459
+ throw inner;
460
+ }
461
+ appliedNow.push(name);
462
+ applied.add(name);
463
+ continue;
464
+ }
465
+ throw e;
201
466
  }
202
- if (!entry.isFile()) continue;
203
- if (entry.name !== binaryName) continue;
204
- const info = await stat(fullPath);
205
- if ((info.mode & 0o111) !== 0) return fullPath;
206
467
  }
207
- return '';
468
+
469
+ return { applied: appliedNow, skipped: false, reason: 'ok' };
208
470
  }
209
471
 
210
- function resolveConfig({ channel }) {
211
- const installRoot = String(process.env.HAPPIER_SELF_HOST_INSTALL_ROOT ?? DEFAULTS.installRoot).trim();
212
- const binDir = String(process.env.HAPPIER_SELF_HOST_BIN_DIR ?? DEFAULTS.binDir).trim();
213
- const configDir = String(process.env.HAPPIER_SELF_HOST_CONFIG_DIR ?? DEFAULTS.configDir).trim();
214
- const dataDir = String(process.env.HAPPIER_SELF_HOST_DATA_DIR ?? DEFAULTS.dataDir).trim();
215
- const logDir = String(process.env.HAPPIER_SELF_HOST_LOG_DIR ?? DEFAULTS.logDir).trim();
472
+ function resolveConfig({ channel, mode = 'user', platform = process.platform } = {}) {
473
+ const defaults = resolveSelfHostDefaults({ platform, mode, channel, homeDir: homedir() });
474
+ const installRoot = String(process.env.HAPPIER_SELF_HOST_INSTALL_ROOT ?? defaults.installRoot).trim();
475
+ const binDir = String(process.env.HAPPIER_SELF_HOST_BIN_DIR ?? defaults.binDir).trim();
476
+ const configDir = String(process.env.HAPPIER_SELF_HOST_CONFIG_DIR ?? defaults.configDir).trim();
477
+ const dataDir = String(process.env.HAPPIER_SELF_HOST_DATA_DIR ?? defaults.dataDir).trim();
478
+ const logDir = String(process.env.HAPPIER_SELF_HOST_LOG_DIR ?? defaults.logDir).trim();
216
479
  const serviceName = String(process.env.HAPPIER_SELF_HOST_SERVICE_NAME ?? DEFAULTS.serviceName).trim();
217
480
  const serverHost = String(process.env.HAPPIER_SERVER_HOST ?? DEFAULTS.serverHost).trim();
218
481
  const serverPort = parsePort(process.env.HAPPIER_SERVER_PORT, DEFAULTS.serverPort);
219
482
  const githubRepo = String(process.env.HAPPIER_GITHUB_REPO ?? DEFAULTS.githubRepo).trim();
220
- const autoUpdate = parseBoolean(process.env.HAPPIER_SELF_HOST_AUTO_UPDATE, true);
483
+ const autoUpdate = resolveSelfHostAutoUpdateDefault(process.env);
484
+ const autoUpdateIntervalMinutes = resolveSelfHostAutoUpdateIntervalMinutes(process.env);
485
+ const autoUpdateAt = resolveSelfHostAutoUpdateAt(process.env);
486
+ const serverBinaryName = platform === 'win32' ? 'happier-server.exe' : 'happier-server';
487
+ const uiWebRootDir = join(installRoot, 'ui-web');
221
488
 
222
489
  return {
223
490
  channel,
491
+ mode,
492
+ platform,
224
493
  installRoot,
225
494
  versionsDir: join(installRoot, 'versions'),
226
495
  installBinDir: join(installRoot, 'bin'),
227
- serverBinaryPath: join(installRoot, 'bin', 'happier-server'),
228
- serverPreviousBinaryPath: join(installRoot, 'bin', 'happier-server.previous'),
496
+ serverBinaryName,
497
+ serverBinaryPath: join(installRoot, 'bin', serverBinaryName),
498
+ serverPreviousBinaryPath: join(installRoot, 'bin', `${serverBinaryName}.previous`),
229
499
  statePath: join(installRoot, 'self-host-state.json'),
230
500
  binDir,
231
501
  configDir,
@@ -234,32 +504,280 @@ function resolveConfig({ channel }) {
234
504
  filesDir: join(dataDir, 'files'),
235
505
  dbDir: join(dataDir, 'pglite'),
236
506
  logDir,
237
- serverLogPath: join(logDir, 'server.log'),
507
+ serverStdoutLogPath: join(logDir, 'server.out.log'),
508
+ serverStderrLogPath: join(logDir, 'server.err.log'),
238
509
  serviceName,
239
- serviceUnitName: `${serviceName}.service`,
240
- serviceUnitPath: join('/etc/systemd/system', `${serviceName}.service`),
241
- updaterServiceName: `${serviceName}-updater`,
242
- updaterServiceUnitPath: join('/etc/systemd/system', `${serviceName}-updater.service`),
243
- updaterTimerUnitName: `${serviceName}-updater.timer`,
244
- updaterTimerUnitPath: join('/etc/systemd/system', `${serviceName}-updater.timer`),
245
510
  serverHost,
246
511
  serverPort,
247
512
  githubRepo,
248
513
  autoUpdate,
514
+ autoUpdateIntervalMinutes,
515
+ autoUpdateAt,
516
+ uiWebProduct: DEFAULTS.uiWebProduct,
517
+ uiWebOs: DEFAULTS.uiWebOs,
518
+ uiWebArch: DEFAULTS.uiWebArch,
519
+ uiWebRootDir,
520
+ uiWebVersionsDir: join(uiWebRootDir, 'versions'),
521
+ uiWebCurrentDir: join(uiWebRootDir, 'current'),
249
522
  };
250
523
  }
251
524
 
252
- export function renderServerEnvFile({ port, host, dataDir, filesDir, dbDir }) {
525
+ export function renderServerEnvFile({
526
+ port,
527
+ host,
528
+ dataDir,
529
+ filesDir,
530
+ dbDir,
531
+ uiDir,
532
+ serverBinDir = '',
533
+ arch = process.arch,
534
+ platform = process.platform,
535
+ }) {
536
+ return renderSelfHostServerEnvTextShared({
537
+ port,
538
+ host,
539
+ dataDir,
540
+ filesDir,
541
+ dbDir,
542
+ uiDir,
543
+ serverBinDir,
544
+ arch,
545
+ platform,
546
+ });
547
+ }
548
+
549
+ function parseEnvText(raw) {
550
+ return parseEnvTextShared(raw);
551
+ }
552
+
553
+ function listEnvKeysInOrder(raw) {
554
+ const keys = [];
555
+ const seen = new Set();
556
+ for (const line of String(raw ?? '').split('\n')) {
557
+ const trimmed = line.trim();
558
+ if (!trimmed) continue;
559
+ if (trimmed.startsWith('#')) continue;
560
+ const idx = trimmed.indexOf('=');
561
+ if (idx <= 0) continue;
562
+ const k = trimmed.slice(0, idx).trim();
563
+ if (!k || seen.has(k)) continue;
564
+ seen.add(k);
565
+ keys.push(k);
566
+ }
567
+ return keys;
568
+ }
569
+
570
+ function parseEnvKeyValue(raw) {
571
+ const text = String(raw ?? '');
572
+ const idx = text.indexOf('=');
573
+ if (idx <= 0) {
574
+ throw new Error(`[self-host] invalid env assignment (expected KEY=VALUE): ${text}`);
575
+ }
576
+ const key = text.slice(0, idx).trim();
577
+ const value = text.slice(idx + 1);
578
+ return { key, value };
579
+ }
580
+
581
+ function assertValidEnvKey(key) {
582
+ const k = String(key ?? '').trim();
583
+ if (!/^[A-Z][A-Z0-9_]*$/.test(k)) {
584
+ throw new Error(`[self-host] invalid env key: ${k || '(empty)'}`);
585
+ }
586
+ return k;
587
+ }
588
+
589
+ function assertValidEnvValue(value) {
590
+ const v = String(value ?? '');
591
+ if (v.includes('\n') || v.includes('\r')) {
592
+ throw new Error('[self-host] invalid env value (must not contain newlines)');
593
+ }
594
+ return v;
595
+ }
596
+
597
+ export function parseEnvOverridesFromArgv(argv) {
598
+ const args = Array.isArray(argv) ? argv.map(String) : [];
599
+ const overrides = [];
600
+ const rest = [];
601
+
602
+ for (let i = 0; i < args.length; i += 1) {
603
+ const a = args[i] ?? '';
604
+ if (a === '--env') {
605
+ const next = args[i + 1] ?? '';
606
+ if (!next || next.startsWith('--')) {
607
+ throw new Error('[self-host] missing value for --env (expected KEY=VALUE)');
608
+ }
609
+ const parsed = parseEnvKeyValue(next);
610
+ overrides.push({
611
+ key: assertValidEnvKey(parsed.key),
612
+ value: assertValidEnvValue(parsed.value),
613
+ });
614
+ i += 1;
615
+ continue;
616
+ }
617
+ if (a.startsWith('--env=')) {
618
+ const raw = a.slice('--env='.length);
619
+ if (!raw) {
620
+ throw new Error('[self-host] missing value for --env (expected KEY=VALUE)');
621
+ }
622
+ const parsed = parseEnvKeyValue(raw);
623
+ overrides.push({
624
+ key: assertValidEnvKey(parsed.key),
625
+ value: assertValidEnvValue(parsed.value),
626
+ });
627
+ continue;
628
+ }
629
+ rest.push(a);
630
+ }
631
+
632
+ return { overrides, rest };
633
+ }
634
+
635
+ export function applyEnvOverridesToEnvText(envText, overrides) {
636
+ const base = String(envText ?? '');
637
+ const list = Array.isArray(overrides) ? overrides : [];
638
+ if (!base.trim() || list.length === 0) return base.endsWith('\n') ? base : `${base}\n`;
639
+
640
+ const env = parseEnvText(base);
641
+ const keys = listEnvKeysInOrder(base);
642
+ const seen = new Set(keys);
643
+
644
+ for (const entry of list) {
645
+ const key = assertValidEnvKey(entry?.key);
646
+ const value = assertValidEnvValue(entry?.value);
647
+ env[key] = value;
648
+ if (!seen.has(key)) {
649
+ seen.add(key);
650
+ keys.push(key);
651
+ }
652
+ }
653
+
654
+ const lines = [];
655
+ for (const key of keys) {
656
+ if (!Object.prototype.hasOwnProperty.call(env, key)) continue;
657
+ lines.push(`${key}=${env[key]}`);
658
+ }
659
+ lines.push('');
660
+ return `${lines.join('\n')}\n`;
661
+ }
662
+
663
+ export function mergeEnvTextWithDefaults(existingText, defaultsText) {
664
+ const existingRaw = String(existingText ?? '');
665
+ const defaultsRaw = String(defaultsText ?? '');
666
+ if (!existingRaw.trim()) return defaultsRaw.endsWith('\n') ? defaultsRaw : `${defaultsRaw}\n`;
667
+
668
+ const existingEnv = parseEnvText(existingRaw);
669
+ const defaultsEnv = parseEnvText(defaultsRaw);
670
+ const defaultKeys = listEnvKeysInOrder(defaultsRaw);
671
+ const existingKeys = listEnvKeysInOrder(existingRaw);
672
+
673
+ const lines = [];
674
+ for (const key of defaultKeys) {
675
+ const fromExisting = Object.prototype.hasOwnProperty.call(existingEnv, key) ? existingEnv[key] : null;
676
+ const v = fromExisting != null ? fromExisting : defaultsEnv[key];
677
+ if (v == null) continue;
678
+ lines.push(`${key}=${v}`);
679
+ }
680
+ for (const key of existingKeys) {
681
+ if (Object.prototype.hasOwnProperty.call(defaultsEnv, key)) continue;
682
+ if (!Object.prototype.hasOwnProperty.call(existingEnv, key)) continue;
683
+ lines.push(`${key}=${existingEnv[key]}`);
684
+ }
685
+ lines.push('');
686
+ return `${lines.join('\n')}\n`;
687
+ }
688
+
689
+ function identity(s) {
690
+ return String(s ?? '');
691
+ }
692
+
693
+ function formatTriState(value, { yes, no, unknown }) {
694
+ if (value == null) return unknown('unknown');
695
+ return value ? yes('yes') : no('no');
696
+ }
697
+
698
+ function formatHealth(value, { ok, warn }) {
699
+ return value ? ok('ok') : warn('failed');
700
+ }
701
+
702
+ function formatJobState(value, { yes, no, unknown }) {
703
+ if (value == null) return unknown('unknown');
704
+ return value ? yes('enabled') : no('disabled');
705
+ }
706
+
707
+ function formatJobActive(value, { yes, no, unknown }) {
708
+ if (value == null) return unknown('unknown');
709
+ return value ? yes('active') : no('inactive');
710
+ }
711
+
712
+ export function renderSelfHostStatusText(report, { colors = true } = {}) {
713
+ const fmt = colors
714
+ ? {
715
+ label: cyan,
716
+ yes: green,
717
+ no: yellow,
718
+ ok: green,
719
+ warn: yellow,
720
+ unknown: dim,
721
+ dim,
722
+ }
723
+ : {
724
+ label: identity,
725
+ yes: identity,
726
+ no: identity,
727
+ ok: identity,
728
+ warn: identity,
729
+ unknown: identity,
730
+ dim: identity,
731
+ };
732
+
733
+ const channel = report?.channel ? displayChannel(report.channel) : '';
734
+ const mode = String(report?.mode ?? '').trim();
735
+ const serviceName = String(report?.serviceName ?? '').trim();
736
+ const serverUrl = String(report?.serverUrl ?? '').trim();
737
+ const healthy = Boolean(report?.healthy);
738
+ const updatedAt = report?.updatedAt ? String(report.updatedAt) : '';
739
+
740
+ const serviceActive = report?.service?.active ?? null;
741
+ const serviceEnabled = report?.service?.enabled ?? null;
742
+
743
+ const serverVersion = report?.versions?.server ? String(report.versions.server) : '';
744
+ const uiWebVersion = report?.versions?.uiWeb ? String(report.versions.uiWeb) : '';
745
+
746
+ const autoConfiguredEnabled = Boolean(report?.autoUpdate?.configured?.enabled);
747
+ const autoConfiguredInterval = report?.autoUpdate?.configured?.intervalMinutes ?? null;
748
+ const autoConfiguredAtRaw = typeof report?.autoUpdate?.configured?.at === 'string' ? report.autoUpdate.configured.at : '';
749
+ const autoConfiguredAt = parseDailyAtTime(autoConfiguredAtRaw)?.normalized || '';
750
+ const updaterEnabled = report?.autoUpdate?.job?.enabled ?? null;
751
+ const updaterActive = report?.autoUpdate?.job?.active ?? null;
752
+
753
+ const configuredLine = autoConfiguredEnabled
754
+ ? (
755
+ autoConfiguredAt
756
+ ? `configured enabled (daily at ${autoConfiguredAt})`
757
+ : `configured enabled${autoConfiguredInterval ? ` (every ${autoConfiguredInterval}m)` : ''}`
758
+ )
759
+ : 'configured disabled';
760
+
761
+ const jobLine =
762
+ updaterEnabled == null && updaterActive == null
763
+ ? 'job unknown'
764
+ : `job ${formatJobState(updaterEnabled, fmt)}, ${formatJobActive(updaterActive, fmt)}`;
765
+
253
766
  return [
254
- `PORT=${port}`,
255
- `HAPPIER_SERVER_HOST=${host}`,
256
- 'HAPPIER_DB_PROVIDER=sqlite',
257
- 'HAPPIER_FILES_BACKEND=local',
258
- `HAPPIER_SERVER_LIGHT_DATA_DIR=${dataDir}`,
259
- `HAPPIER_SERVER_LIGHT_FILES_DIR=${filesDir}`,
260
- `HAPPIER_SERVER_LIGHT_DB_DIR=${dbDir}`,
261
- '',
262
- ].join('\n');
767
+ channel ? `${fmt.label('channel')}: ${channel}` : null,
768
+ mode ? `${fmt.label('mode')}: ${mode}` : null,
769
+ serviceName ? `${fmt.label('service')}: ${serviceName}` : null,
770
+ serverUrl ? `${fmt.label('url')}: ${serverUrl}` : null,
771
+ `${fmt.label('health')}: ${formatHealth(healthy, fmt)}`,
772
+ `${fmt.label('active')}: ${formatTriState(serviceActive, fmt)}`,
773
+ `${fmt.label('enabled')}: ${formatTriState(serviceEnabled, fmt)}`,
774
+ `${fmt.label('auto-update')}: ${configuredLine}; ${jobLine}`,
775
+ `${fmt.label('server')}: ${serverVersion || fmt.unknown('unknown')}`,
776
+ `${fmt.label('ui-web')}: ${uiWebVersion || fmt.unknown('unknown')}`,
777
+ updatedAt ? `${fmt.label('updated')}: ${updatedAt}` : null,
778
+ ]
779
+ .filter(Boolean)
780
+ .join('\n');
263
781
  }
264
782
 
265
783
  export function renderServerServiceUnit({ serviceName, binaryPath, envFilePath, workingDirectory, logPath }) {
@@ -286,29 +804,101 @@ export function renderServerServiceUnit({ serviceName, binaryPath, envFilePath,
286
804
  ].join('\n');
287
805
  }
288
806
 
289
- function renderUpdaterServiceUnit({ updaterServiceName, hstackPath, channel }) {
807
+ export function buildSelfHostDoctorChecks(config, { state, commandExists: commandExistsOverride, pathExists } = {}) {
808
+ const cfg = config ?? {};
809
+ const platform = String(cfg.platform ?? process.platform).trim() || process.platform;
810
+ const mode = String(cfg.mode ?? 'user').trim() || 'user';
811
+ const os = normalizeOs(platform);
812
+
813
+ const commandExistsFn = typeof commandExistsOverride === 'function' ? commandExistsOverride : commandExists;
814
+ const pathExistsFn = typeof pathExists === 'function'
815
+ ? pathExists
816
+ : (p) => existsSync(String(p ?? ''));
817
+ const stateObj = state ?? {};
818
+
819
+ const uiExpected = Boolean(stateObj?.uiWeb?.installed);
820
+ const uiIndexPath = cfg.uiWebCurrentDir ? join(String(cfg.uiWebCurrentDir), 'index.html') : '';
821
+
290
822
  return [
291
- '[Unit]',
292
- `Description=${updaterServiceName}`,
293
- 'After=network-online.target',
294
- '',
295
- '[Service]',
296
- 'Type=oneshot',
297
- `ExecStart=${hstackPath} self-host update --channel=${channel} --non-interactive`,
298
- '',
299
- ].join('\n');
823
+ { name: 'platform', ok: ['linux', 'darwin', 'windows'].includes(os) },
824
+ { name: 'mode', ok: mode === 'user' || (mode === 'system' && platform !== 'win32') },
825
+ // We verify minisign signatures using the bundled public key + node:crypto, so no external `minisign` dependency.
826
+ { name: 'tar', ok: commandExistsFn('tar') },
827
+ { name: 'powershell', ok: os === 'windows' ? commandExistsFn('powershell') : true },
828
+ { name: 'systemctl', ok: os === 'linux' ? commandExistsFn('systemctl') : true },
829
+ { name: 'launchctl', ok: os === 'darwin' ? commandExistsFn('launchctl') : true },
830
+ { name: 'schtasks', ok: os === 'windows' ? commandExistsFn('schtasks') : true },
831
+ { name: 'server-binary', ok: cfg.serverBinaryPath ? pathExistsFn(cfg.serverBinaryPath) : false },
832
+ { name: 'server-env', ok: cfg.configEnvPath ? pathExistsFn(cfg.configEnvPath) : false },
833
+ ...(uiExpected
834
+ ? [{ name: 'ui-web', ok: uiIndexPath ? pathExistsFn(uiIndexPath) : false }]
835
+ : []),
836
+ ];
300
837
  }
301
838
 
302
- function renderUpdaterTimerUnit({ updaterServiceName, updaterTimerName }) {
839
+ export function renderUpdaterSystemdUnit({
840
+ updaterLabel,
841
+ hstackPath,
842
+ channel,
843
+ mode,
844
+ workingDirectory,
845
+ stdoutPath,
846
+ stderrPath,
847
+ wantedBy,
848
+ } = {}) {
849
+ const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
850
+ const hstack = String(hstackPath ?? '').trim();
851
+ if (!hstack) throw new Error('[self-host] missing hstackPath for updater unit');
852
+ const ch = displayChannel(channel);
853
+ const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
854
+ const wd = String(workingDirectory ?? '').trim();
855
+ const out = String(stdoutPath ?? '').trim();
856
+ const err = String(stderrPath ?? '').trim();
857
+ const wb = String(wantedBy ?? '').trim() || 'default.target';
858
+
859
+ return renderSystemdServiceUnit({
860
+ description: `${label} (auto-update)`,
861
+ execStart: [
862
+ hstack,
863
+ 'self-host',
864
+ 'update',
865
+ `--channel=${ch}`,
866
+ `--mode=${m}`,
867
+ '--non-interactive',
868
+ ],
869
+ workingDirectory: wd,
870
+ env: {},
871
+ restart: 'no',
872
+ stdoutPath: out,
873
+ stderrPath: err,
874
+ wantedBy: wb,
875
+ });
876
+ }
877
+
878
+ export function renderUpdaterSystemdTimerUnit({ updaterLabel, intervalMinutes = 1440, at } = {}) {
879
+ const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
880
+ const parsedAt = parseDailyAtTime(at);
881
+ const minutesRaw = Number(intervalMinutes);
882
+ const minutes = Number.isFinite(minutesRaw) ? Math.max(15, Math.floor(minutesRaw)) : 1440;
883
+ const timerLines = parsedAt
884
+ ? [
885
+ '[Timer]',
886
+ `OnCalendar=*-*-* ${parsedAt.normalized}:00`,
887
+ `Unit=${label}.service`,
888
+ 'Persistent=true',
889
+ ]
890
+ : [
891
+ '[Timer]',
892
+ 'OnBootSec=5m',
893
+ `OnUnitActiveSec=${minutes}m`,
894
+ `Unit=${label}.service`,
895
+ 'Persistent=true',
896
+ ];
303
897
  return [
304
898
  '[Unit]',
305
- `Description=${updaterTimerName}`,
899
+ `Description=${label} (auto-update timer)`,
306
900
  '',
307
- '[Timer]',
308
- 'OnCalendar=weekly',
309
- 'RandomizedDelaySec=30m',
310
- 'Persistent=true',
311
- `Unit=${updaterServiceName}.service`,
901
+ ...timerLines,
312
902
  '',
313
903
  '[Install]',
314
904
  'WantedBy=timers.target',
@@ -316,15 +906,344 @@ function renderUpdaterTimerUnit({ updaterServiceName, updaterTimerName }) {
316
906
  ].join('\n');
317
907
  }
318
908
 
319
- async function restartAndCheckHealth({ serviceUnitName, serverPort }) {
320
- runCommand('systemctl', ['restart', serviceUnitName], { stdio: 'inherit' });
909
+ export function renderUpdaterLaunchdPlistXml({
910
+ updaterLabel,
911
+ hstackPath,
912
+ channel,
913
+ mode,
914
+ intervalMinutes,
915
+ at,
916
+ workingDirectory,
917
+ stdoutPath,
918
+ stderrPath,
919
+ } = {}) {
920
+ const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
921
+ const hstack = String(hstackPath ?? '').trim();
922
+ if (!hstack) throw new Error('[self-host] missing hstackPath for updater launchd plist');
923
+ const ch = displayChannel(channel);
924
+ const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
925
+ const wd = String(workingDirectory ?? '').trim();
926
+ const out = String(stdoutPath ?? '').trim();
927
+ const err = String(stderrPath ?? '').trim();
928
+ const parsedAt = parseDailyAtTime(at);
929
+ const intervalRaw = Number(intervalMinutes);
930
+ const startIntervalSec = Number.isFinite(intervalRaw) && intervalRaw > 0 ? Math.max(15, Math.floor(intervalRaw)) * 60 : 0;
931
+
932
+ return buildLaunchdPlistXml({
933
+ label,
934
+ programArgs: [
935
+ hstack,
936
+ 'self-host',
937
+ 'update',
938
+ `--channel=${ch}`,
939
+ `--mode=${m}`,
940
+ '--non-interactive',
941
+ ],
942
+ env: {
943
+ PATH: buildLaunchdPath({ execPath: hstack, basePath: process.env.PATH }),
944
+ },
945
+ stdoutPath: out,
946
+ stderrPath: err,
947
+ workingDirectory: wd,
948
+ keepAliveOnFailure: false,
949
+ ...(parsedAt
950
+ ? { startCalendarInterval: { hour: parsedAt.hour, minute: parsedAt.minute } }
951
+ : { startIntervalSec: startIntervalSec || undefined }),
952
+ });
953
+ }
954
+
955
+ export function renderUpdaterScheduledTaskWrapperPs1({
956
+ updaterLabel,
957
+ hstackPath,
958
+ channel,
959
+ mode,
960
+ workingDirectory,
961
+ stdoutPath,
962
+ stderrPath,
963
+ } = {}) {
964
+ const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
965
+ const hstack = String(hstackPath ?? '').trim();
966
+ if (!hstack) throw new Error('[self-host] missing hstackPath for updater scheduled task wrapper');
967
+ const ch = displayChannel(channel);
968
+ const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
969
+ const wd = String(workingDirectory ?? '').trim();
970
+ const out = String(stdoutPath ?? '').trim();
971
+ const err = String(stderrPath ?? '').trim();
972
+
973
+ return renderWindowsScheduledTaskWrapperPs1({
974
+ workingDirectory: wd,
975
+ programArgs: [
976
+ hstack,
977
+ 'self-host',
978
+ 'update',
979
+ `--channel=${ch}`,
980
+ `--mode=${m}`,
981
+ '--non-interactive',
982
+ ],
983
+ env: {},
984
+ stdoutPath: out,
985
+ stderrPath: err,
986
+ });
987
+ }
988
+
989
+ export function buildUpdaterScheduledTaskCreateArgs({ backend, taskName, definitionPath, intervalMinutes = 1440, at } = {}) {
990
+ const b = String(backend ?? '').trim();
991
+ const name = String(taskName ?? '').trim();
992
+ const definition = String(definitionPath ?? '').trim();
993
+ if (!name) throw new Error('[self-host] missing taskName for updater scheduled task');
994
+ if (!definition) throw new Error('[self-host] missing definitionPath for updater scheduled task');
995
+
996
+ const parsedAt = parseDailyAtTime(at);
997
+ const minutesRaw = Number(intervalMinutes);
998
+ const minutes = Number.isFinite(minutesRaw) ? Math.max(15, Math.floor(minutesRaw)) : 1440;
999
+ const ps = `powershell.exe -NoProfile -ExecutionPolicy Bypass -File "${definition}"`;
1000
+
1001
+ return [
1002
+ '/Create',
1003
+ '/F',
1004
+ '/SC',
1005
+ parsedAt ? 'DAILY' : 'MINUTE',
1006
+ ...(parsedAt ? [] : ['/MO', String(minutes)]),
1007
+ '/ST',
1008
+ parsedAt ? parsedAt.normalized : '00:00',
1009
+ '/TN',
1010
+ name,
1011
+ '/TR',
1012
+ ps,
1013
+ ...(b === 'schtasks-system' ? ['/RU', 'SYSTEM', '/RL', 'HIGHEST'] : []),
1014
+ ];
1015
+ }
1016
+
1017
+ function resolveAutoUpdateEnabled(argv, fallback) {
1018
+ const args = Array.isArray(argv) ? argv.map(String) : [];
1019
+ if (args.includes('--no-auto-update')) return false;
1020
+ if (args.includes('--auto-update')) return true;
1021
+ return Boolean(fallback);
1022
+ }
1023
+
1024
+ function resolveAutoUpdateIntervalMinutes(argv, fallback) {
1025
+ const args = Array.isArray(argv) ? argv.map(String) : [];
1026
+ const findEq = args.find((a) => a.startsWith('--auto-update-interval='));
1027
+ const value = findEq
1028
+ ? findEq.slice('--auto-update-interval='.length)
1029
+ : (() => {
1030
+ const idx = args.indexOf('--auto-update-interval');
1031
+ if (idx >= 0 && args[idx + 1] && !String(args[idx + 1]).startsWith('-')) return String(args[idx + 1]);
1032
+ return '';
1033
+ })();
1034
+ const raw = String(value ?? '').trim();
1035
+ if (!raw) return Number(fallback) || DEFAULTS.autoUpdateIntervalMinutes;
1036
+ const parsed = Number(raw);
1037
+ const minutes = Number.isFinite(parsed) ? Math.floor(parsed) : NaN;
1038
+ if (!Number.isFinite(minutes) || minutes < 15) return Number(fallback) || DEFAULTS.autoUpdateIntervalMinutes;
1039
+ return Math.min(minutes, 60 * 24 * 7);
1040
+ }
1041
+
1042
+ function resolveAutoUpdateAt(argv, fallback) {
1043
+ const args = Array.isArray(argv) ? argv.map(String) : [];
1044
+ const findEq = args.find((a) => a.startsWith('--auto-update-at='));
1045
+ const value = findEq
1046
+ ? findEq.slice('--auto-update-at='.length)
1047
+ : (() => {
1048
+ const idx = args.indexOf('--auto-update-at');
1049
+ if (idx >= 0 && args[idx + 1] && !String(args[idx + 1]).startsWith('-')) return String(args[idx + 1]);
1050
+ return '';
1051
+ })();
1052
+ const raw = String(value ?? '').trim();
1053
+ if (!raw) return String(fallback ?? '').trim();
1054
+ const parsed = parseDailyAtTime(raw);
1055
+ if (!parsed) {
1056
+ throw new Error(`[self-host] invalid --auto-update-at value: ${raw} (expected HH:MM)`);
1057
+ }
1058
+ return parsed.normalized;
1059
+ }
1060
+
1061
+ function resolveUpdaterLabel(config) {
1062
+ const override = String(process.env.HAPPIER_SELF_HOST_UPDATER_LABEL ?? '').trim();
1063
+ if (override) return override;
1064
+ const base = String(config?.serviceName ?? '').trim() || 'happier-server';
1065
+ return `${base}-updater`;
1066
+ }
1067
+
1068
+ function resolveHstackPathForUpdater(config) {
1069
+ const override = String(process.env.HAPPIER_SELF_HOST_HSTACK_PATH ?? '').trim();
1070
+ if (override) return override;
1071
+ const platform = String(config?.platform ?? '').trim() || process.platform;
1072
+ const exe = platform === 'win32' ? 'hstack.exe' : 'hstack';
1073
+ return join(String(config?.binDir ?? '').trim() || '', exe);
1074
+ }
1075
+
1076
+ async function installAutoUpdateJob({ config, enabled, intervalMinutes, at }) {
1077
+ if (!enabled) return { installed: false, reason: 'disabled' };
1078
+ const updaterLabel = resolveUpdaterLabel(config);
1079
+ const hstackPath = resolveHstackPathForUpdater(config);
1080
+ const stdoutPath = join(config.logDir, 'updater.out.log');
1081
+ const stderrPath = join(config.logDir, 'updater.err.log');
1082
+ const backend = resolveServiceBackend({ platform: config.platform, mode: config.mode });
1083
+ const interval = resolveAutoUpdateIntervalMinutes([], intervalMinutes ?? config.autoUpdateIntervalMinutes);
1084
+ const effectiveAt = resolveAutoUpdateAt([], at ?? config.autoUpdateAt ?? '');
1085
+
1086
+ const baseSpec = {
1087
+ label: updaterLabel,
1088
+ description: `Happier Self-Host (${updaterLabel})`,
1089
+ programArgs: [hstackPath],
1090
+ workingDirectory: config.installRoot,
1091
+ env: {},
1092
+ stdoutPath,
1093
+ stderrPath,
1094
+ };
1095
+ const definitionPath = buildServiceDefinition({ backend, homeDir: homedir(), spec: baseSpec }).path;
1096
+ const wantedBy =
1097
+ backend === 'systemd-system' ? 'multi-user.target' : backend === 'systemd-user' ? 'default.target' : '';
1098
+
1099
+ if (backend === 'systemd-system' || backend === 'systemd-user') {
1100
+ const timerPath = definitionPath.replace(/\.service$/, '.timer');
1101
+ const serviceContents = renderUpdaterSystemdUnit({
1102
+ updaterLabel,
1103
+ hstackPath,
1104
+ channel: config.channel,
1105
+ mode: config.mode,
1106
+ workingDirectory: config.installRoot,
1107
+ stdoutPath,
1108
+ stderrPath,
1109
+ wantedBy,
1110
+ });
1111
+ const timerContents = renderUpdaterSystemdTimerUnit({ updaterLabel, intervalMinutes: interval, at: effectiveAt });
1112
+ const prefix = backend === 'systemd-user' ? ['--user'] : [];
1113
+ const plan = {
1114
+ writes: [
1115
+ { path: definitionPath, contents: serviceContents, mode: 0o644 },
1116
+ { path: timerPath, contents: timerContents, mode: 0o644 },
1117
+ ],
1118
+ commands: [
1119
+ { cmd: 'systemctl', args: [...prefix, 'daemon-reload'] },
1120
+ { cmd: 'systemctl', args: [...prefix, 'enable', '--now', `${updaterLabel}.timer`] },
1121
+ { cmd: 'systemctl', args: [...prefix, 'start', `${updaterLabel}.service`], allowFail: true },
1122
+ ],
1123
+ };
1124
+ await applyServicePlan(plan);
1125
+ return { installed: true, backend, label: updaterLabel, definitionPath, timerPath, intervalMinutes: interval, at: effectiveAt };
1126
+ }
1127
+
1128
+ if (backend === 'launchd-system' || backend === 'launchd-user') {
1129
+ const definitionContents = renderUpdaterLaunchdPlistXml({
1130
+ updaterLabel,
1131
+ hstackPath,
1132
+ channel: config.channel,
1133
+ mode: config.mode,
1134
+ intervalMinutes: interval,
1135
+ at: effectiveAt,
1136
+ workingDirectory: config.installRoot,
1137
+ stdoutPath,
1138
+ stderrPath,
1139
+ });
1140
+ const plan = planServiceAction({
1141
+ backend,
1142
+ action: 'install',
1143
+ label: updaterLabel,
1144
+ definitionPath,
1145
+ definitionContents,
1146
+ persistent: true,
1147
+ });
1148
+ await applyServicePlan(plan);
1149
+ return { installed: true, backend, label: updaterLabel, definitionPath, intervalMinutes: interval, at: effectiveAt };
1150
+ }
1151
+
1152
+ const definitionContents = renderUpdaterScheduledTaskWrapperPs1({
1153
+ updaterLabel,
1154
+ hstackPath,
1155
+ channel: config.channel,
1156
+ mode: config.mode,
1157
+ workingDirectory: config.installRoot,
1158
+ stdoutPath,
1159
+ stderrPath,
1160
+ });
1161
+ const name = `Happier\\${updaterLabel}`;
1162
+ const args = buildUpdaterScheduledTaskCreateArgs({
1163
+ backend,
1164
+ taskName: name,
1165
+ definitionPath,
1166
+ intervalMinutes: interval,
1167
+ at: effectiveAt,
1168
+ });
1169
+ const plan = {
1170
+ writes: [{ path: definitionPath, contents: definitionContents, mode: 0o644 }],
1171
+ commands: [
1172
+ { cmd: 'schtasks', args },
1173
+ { cmd: 'schtasks', args: ['/Run', '/TN', name] },
1174
+ ],
1175
+ };
1176
+ await applyServicePlan(plan);
1177
+ return { installed: true, backend, label: updaterLabel, definitionPath, taskName: name, intervalMinutes: interval, at: effectiveAt };
1178
+ }
1179
+
1180
+ async function uninstallAutoUpdateJob({ config }) {
1181
+ const updaterLabel = resolveUpdaterLabel(config);
1182
+ const hstackPath = resolveHstackPathForUpdater(config);
1183
+ const stdoutPath = join(config.logDir, 'updater.out.log');
1184
+ const stderrPath = join(config.logDir, 'updater.err.log');
1185
+ const backend = resolveServiceBackend({ platform: config.platform, mode: config.mode });
1186
+ const baseSpec = {
1187
+ label: updaterLabel,
1188
+ description: `Happier Self-Host (${updaterLabel})`,
1189
+ programArgs: [hstackPath],
1190
+ workingDirectory: config.installRoot,
1191
+ env: {},
1192
+ stdoutPath,
1193
+ stderrPath,
1194
+ };
1195
+ const definitionPath = buildServiceDefinition({ backend, homeDir: homedir(), spec: baseSpec }).path;
1196
+
1197
+ if (backend === 'systemd-system' || backend === 'systemd-user') {
1198
+ const prefix = backend === 'systemd-user' ? ['--user'] : [];
1199
+ const timerPath = definitionPath.replace(/\.service$/, '.timer');
1200
+ const plan = {
1201
+ writes: [],
1202
+ commands: [
1203
+ { cmd: 'systemctl', args: [...prefix, 'disable', '--now', `${updaterLabel}.timer`], allowFail: true },
1204
+ { cmd: 'systemctl', args: [...prefix, 'disable', '--now', `${updaterLabel}.service`], allowFail: true },
1205
+ { cmd: 'systemctl', args: [...prefix, 'daemon-reload'] },
1206
+ ],
1207
+ };
1208
+ await applyServicePlan(plan);
1209
+ await rm(timerPath, { force: true }).catch(() => {});
1210
+ await rm(definitionPath, { force: true }).catch(() => {});
1211
+ return { uninstalled: true, backend, label: updaterLabel };
1212
+ }
1213
+
1214
+ if (backend === 'launchd-system' || backend === 'launchd-user') {
1215
+ const plan = planServiceAction({
1216
+ backend,
1217
+ action: 'uninstall',
1218
+ label: updaterLabel,
1219
+ definitionPath,
1220
+ persistent: true,
1221
+ });
1222
+ await applyServicePlan(plan);
1223
+ await rm(definitionPath, { force: true }).catch(() => {});
1224
+ return { uninstalled: true, backend, label: updaterLabel };
1225
+ }
1226
+
1227
+ const name = `Happier\\${updaterLabel}`;
1228
+ const plan = {
1229
+ writes: [],
1230
+ commands: [
1231
+ { cmd: 'schtasks', args: ['/End', '/TN', name], allowFail: true },
1232
+ { cmd: 'schtasks', args: ['/Delete', '/F', '/TN', name], allowFail: true },
1233
+ ],
1234
+ };
1235
+ await applyServicePlan(plan);
1236
+ await rm(definitionPath, { force: true }).catch(() => {});
1237
+ return { uninstalled: true, backend, label: updaterLabel };
1238
+ }
1239
+
1240
+ async function restartAndCheckHealth({ config, serviceSpec, port }) {
1241
+ await restartManagedService({ platform: config.platform, mode: config.mode, spec: serviceSpec }).catch(() => {});
1242
+ const timeoutMs = resolveSelfHostHealthTimeoutMs();
321
1243
  const startedAt = Date.now();
322
- while (Date.now() - startedAt < 45_000) {
323
- const active = runCommand('systemctl', ['is-active', '--quiet', serviceUnitName], { allowFail: true, stdio: 'ignore' });
324
- if ((active.status ?? 1) === 0) {
325
- const ok = await checkHealth({ port: serverPort });
326
- if (ok) return true;
327
- }
1244
+ while (Date.now() - startedAt < timeoutMs) {
1245
+ const ok = await checkHealth({ port: parsePort(port, config.serverPort) });
1246
+ if (ok) return true;
328
1247
  await new Promise((resolve) => setTimeout(resolve, 1500));
329
1248
  }
330
1249
  return false;
@@ -343,136 +1262,611 @@ async function checkHealth({ port }) {
343
1262
  }
344
1263
  }
345
1264
 
346
- async function resolveMinisignPublicKey() {
347
- const inline = String(process.env.HAPPIER_MINISIGN_PUBKEY ?? '').trim();
348
- if (inline) return inline;
349
- const publicKeyUrl = String(
350
- process.env.HAPPIER_MINISIGN_PUBKEY_URL ?? DEFAULTS.minisignPubKeyUrl
351
- ).trim();
352
- if (!publicKeyUrl) {
353
- throw new Error('[self-host] HAPPIER_MINISIGN_PUBKEY_URL is empty');
1265
+ export function resolveMinisignPublicKeyText(env = process.env) {
1266
+ const inline = String(env?.HAPPIER_MINISIGN_PUBKEY ?? '').trim();
1267
+ return inline || DEFAULT_MINISIGN_PUBLIC_KEY;
1268
+ }
1269
+
1270
+ export async function installBinaryAtomically({ sourceBinaryPath, targetBinaryPath, previousBinaryPath, versionedTargetPath }) {
1271
+ await mkdir(dirname(targetBinaryPath), { recursive: true });
1272
+ await mkdir(dirname(versionedTargetPath), { recursive: true });
1273
+ const stagedPath = `${targetBinaryPath}.new`;
1274
+ await copyFile(sourceBinaryPath, stagedPath);
1275
+ await chmod(stagedPath, 0o755).catch(() => {});
1276
+ if (existsSync(targetBinaryPath)) {
1277
+ await copyFile(targetBinaryPath, previousBinaryPath);
1278
+ await chmod(previousBinaryPath, 0o755).catch(() => {});
354
1279
  }
355
- const response = await fetch(publicKeyUrl, {
356
- headers: {
357
- 'user-agent': 'happier-self-host-installer',
358
- accept: 'text/plain,application/octet-stream;q=0.9,*/*;q=0.8',
359
- },
1280
+ await copyFile(stagedPath, versionedTargetPath);
1281
+ await chmod(versionedTargetPath, 0o755).catch(() => {});
1282
+
1283
+ // Replacing an on-disk executable that may currently be running can fail with ETXTBSY if we try to
1284
+ // write over the existing path. Prefer an atomic rename/swap on POSIX so the running process keeps
1285
+ // using the old inode while new spawns see the new binary.
1286
+ if (process.platform !== 'win32') {
1287
+ await rename(stagedPath, targetBinaryPath).catch(async (e) => {
1288
+ const code = String(e?.code ?? '');
1289
+ // Best-effort fallback (should be rare): keep behavior working even on filesystems where rename fails.
1290
+ if (code === 'EXDEV') {
1291
+ await copyFile(versionedTargetPath, targetBinaryPath);
1292
+ await chmod(targetBinaryPath, 0o755).catch(() => {});
1293
+ await rm(stagedPath, { force: true });
1294
+ return;
1295
+ }
1296
+ throw e;
1297
+ });
1298
+ await chmod(targetBinaryPath, 0o755).catch(() => {});
1299
+ return;
1300
+ }
1301
+
1302
+ // Windows does not reliably support overwrite semantics for rename.
1303
+ await copyFile(versionedTargetPath, targetBinaryPath);
1304
+ await chmod(targetBinaryPath, 0o755).catch(() => {});
1305
+ await rm(stagedPath, { force: true });
1306
+ }
1307
+
1308
+ async function syncSelfHostSqliteMigrations({ artifactRootDir, targetDir }) {
1309
+ const root = String(artifactRootDir ?? '').trim();
1310
+ const dest = String(targetDir ?? '').trim();
1311
+ if (!root || !dest) return { copied: false, reason: 'missing-paths' };
1312
+
1313
+ const source = join(root, 'prisma', 'sqlite', 'migrations');
1314
+ if (!existsSync(source)) return { copied: false, reason: 'missing-source' };
1315
+
1316
+ await rm(dest, { recursive: true, force: true });
1317
+ await mkdir(dirname(dest), { recursive: true });
1318
+ await cp(source, dest, { recursive: true });
1319
+ return { copied: true, reason: 'ok' };
1320
+ }
1321
+
1322
+ async function syncSelfHostGeneratedClients({ artifactRootDir, targetDir }) {
1323
+ const root = String(artifactRootDir ?? '').trim();
1324
+ const dest = String(targetDir ?? '').trim();
1325
+ if (!root || !dest) return { copied: false, reason: 'missing-paths' };
1326
+
1327
+ const source = join(root, 'generated');
1328
+ if (!existsSync(source)) return { copied: false, reason: 'missing-source' };
1329
+
1330
+ await rm(dest, { recursive: true, force: true });
1331
+ await mkdir(dirname(dest), { recursive: true });
1332
+ await cp(source, dest, { recursive: true });
1333
+ return { copied: true, reason: 'ok' };
1334
+ }
1335
+
1336
+ async function syncSelfHostNodeModules({ artifactRootDir, targetDir }) {
1337
+ const root = String(artifactRootDir ?? '').trim();
1338
+ const dest = String(targetDir ?? '').trim();
1339
+ if (!root || !dest) return { copied: false, reason: 'missing-paths', copiedEntries: [], missingEntries: [] };
1340
+
1341
+ const sourceRoot = join(root, 'node_modules');
1342
+ if (!existsSync(sourceRoot)) return { copied: false, reason: 'missing-source-root', copiedEntries: [], missingEntries: [] };
1343
+
1344
+ const sidecars = [
1345
+ { sourcePath: join(sourceRoot, '.prisma'), targetPath: join(dest, '.prisma') },
1346
+ { sourcePath: join(sourceRoot, '@prisma'), targetPath: join(dest, '@prisma') },
1347
+ ];
1348
+ const missingEntries = sidecars
1349
+ .filter((sidecar) => !existsSync(sidecar.sourcePath))
1350
+ .map((sidecar) => sidecar.sourcePath);
1351
+ if (missingEntries.length > 0) {
1352
+ return { copied: false, reason: 'incomplete-sidecars', copiedEntries: [], missingEntries };
1353
+ }
1354
+
1355
+ const copiedEntries = [];
1356
+
1357
+ await rm(dest, { recursive: true, force: true });
1358
+ await mkdir(dest, { recursive: true });
1359
+ for (const sidecar of sidecars) {
1360
+ await mkdir(dirname(sidecar.targetPath), { recursive: true });
1361
+ await cp(sidecar.sourcePath, sidecar.targetPath, { recursive: true });
1362
+ copiedEntries.push(sidecar.targetPath);
1363
+ }
1364
+
1365
+ return copiedEntries.length > 0
1366
+ ? { copied: true, reason: 'ok', copiedEntries, missingEntries: [] }
1367
+ : { copied: false, reason: 'missing-sidecars', copiedEntries, missingEntries: [] };
1368
+ }
1369
+
1370
+ function assertSelfHostNodeModulesSync(result) {
1371
+ if (result?.copied) return;
1372
+ const reason = String(result?.reason ?? 'unknown');
1373
+ throw new Error(`[self-host] server runtime is missing packaged node_modules sidecars (${reason})`);
1374
+ }
1375
+
1376
+ async function stageSelfHostRuntimePayload({ artifactRootDir, stageRootDir }) {
1377
+ const stageRoot = String(stageRootDir ?? '').trim();
1378
+ if (!stageRoot) {
1379
+ throw new Error('[self-host] missing runtime staging directory');
1380
+ }
1381
+
1382
+ const sqliteMigrationsDir = join(stageRoot, 'migrations', 'sqlite');
1383
+ await syncSelfHostSqliteMigrations({
1384
+ artifactRootDir,
1385
+ targetDir: sqliteMigrationsDir,
1386
+ }).catch(() => {});
1387
+
1388
+ const generatedDir = join(stageRoot, 'generated');
1389
+ const generated = await syncSelfHostGeneratedClients({
1390
+ artifactRootDir,
1391
+ targetDir: generatedDir,
360
1392
  });
361
- if (!response.ok) {
362
- throw new Error(
363
- `[self-host] failed to download minisign public key (${response.status} ${response.statusText})`
364
- );
1393
+ if (!generated.copied) {
1394
+ throw new Error('[self-host] server runtime is missing packaged generated clients');
1395
+ }
1396
+
1397
+ const nodeModulesDir = join(stageRoot, 'node_modules');
1398
+ const nodeModules = await syncSelfHostNodeModules({
1399
+ artifactRootDir,
1400
+ targetDir: nodeModulesDir,
1401
+ });
1402
+ assertSelfHostNodeModulesSync(nodeModules);
1403
+
1404
+ return {
1405
+ generatedDir,
1406
+ nodeModulesDir,
1407
+ sqliteMigrationsDir: existsSync(sqliteMigrationsDir) ? sqliteMigrationsDir : '',
1408
+ };
1409
+ }
1410
+
1411
+ async function promoteStagedDirectory({ stagedDir, targetDir }) {
1412
+ const staged = String(stagedDir ?? '').trim();
1413
+ const target = String(targetDir ?? '').trim();
1414
+ if (!staged || !target || !existsSync(staged)) return;
1415
+
1416
+ await mkdir(dirname(target), { recursive: true });
1417
+ const backupDir = `${target}.backup-${randomUUID()}`;
1418
+ const hadTarget = existsSync(target);
1419
+ if (hadTarget) {
1420
+ await rm(backupDir, { recursive: true, force: true }).catch(() => {});
1421
+ await rename(target, backupDir);
1422
+ }
1423
+
1424
+ try {
1425
+ await rename(staged, target).catch(async (e) => {
1426
+ if (String(e?.code ?? '') !== 'EXDEV') throw e;
1427
+ await cp(staged, target, { recursive: true });
1428
+ await rm(staged, { recursive: true, force: true });
1429
+ });
1430
+ if (hadTarget) {
1431
+ await rm(backupDir, { recursive: true, force: true }).catch(() => {});
1432
+ }
1433
+ } catch (error) {
1434
+ await rm(target, { recursive: true, force: true }).catch(() => {});
1435
+ if (hadTarget && existsSync(backupDir)) {
1436
+ await rename(backupDir, target).catch(() => {});
1437
+ }
1438
+ throw error;
1439
+ }
1440
+ }
1441
+
1442
+ async function rollbackPromotedDirectory({ targetDir, backupDir, hadTarget }) {
1443
+ const target = String(targetDir ?? '').trim();
1444
+ const backup = String(backupDir ?? '').trim();
1445
+ if (target) {
1446
+ await rm(target, { recursive: true, force: true }).catch(() => {});
1447
+ }
1448
+ if (hadTarget && backup && existsSync(backup)) {
1449
+ await rename(backup, target).catch(() => {});
1450
+ }
1451
+ }
1452
+
1453
+ async function prepareFailClosedBinaryPromotionWindow({ targetBinaryPath, previousBinaryPath }) {
1454
+ const target = String(targetBinaryPath ?? '').trim();
1455
+ const previous = String(previousBinaryPath ?? '').trim();
1456
+ if (!target) {
1457
+ return { targetBinaryPath: '', recoveryBinaryPath: '', hadActiveBinary: false };
365
1458
  }
366
- const raw = String(await response.text()).trim();
367
- if (!raw) {
368
- throw new Error('[self-host] downloaded minisign public key was empty');
1459
+
1460
+ await mkdir(dirname(target), { recursive: true });
1461
+ const hadActiveBinary = existsSync(target);
1462
+ if (!hadActiveBinary) {
1463
+ return { targetBinaryPath: target, recoveryBinaryPath: '', hadActiveBinary };
1464
+ }
1465
+
1466
+ if (previous) {
1467
+ await mkdir(dirname(previous), { recursive: true });
1468
+ await copyFile(target, previous);
1469
+ await chmod(previous, 0o755).catch(() => {});
369
1470
  }
370
- return raw;
1471
+
1472
+ const recoveryBinaryPath = `${target}.rollback-${randomUUID()}`;
1473
+ await rm(recoveryBinaryPath, { force: true }).catch(() => {});
1474
+ await rename(target, recoveryBinaryPath);
1475
+
1476
+ return { targetBinaryPath: target, recoveryBinaryPath, hadActiveBinary };
371
1477
  }
372
1478
 
373
- async function verifySignature({ checksumsPath, signatureUrl, publicKey }) {
374
- if (!signatureUrl) {
375
- throw new Error('[self-host] release signature URL is missing');
1479
+ async function finalizeFailClosedBinaryPromotionWindow(window) {
1480
+ const recovery = String(window?.recoveryBinaryPath ?? '').trim();
1481
+ if (recovery) {
1482
+ await rm(recovery, { force: true }).catch(() => {});
376
1483
  }
377
- if (!publicKey) {
378
- throw new Error('[self-host] minisign public key is missing');
1484
+ }
1485
+
1486
+ async function rollbackFailClosedBinaryPromotionWindow(window) {
1487
+ const target = String(window?.targetBinaryPath ?? '').trim();
1488
+ const recovery = String(window?.recoveryBinaryPath ?? '').trim();
1489
+ const hadActiveBinary = Boolean(window?.hadActiveBinary);
1490
+
1491
+ if (target) {
1492
+ await rm(target, { force: true }).catch(() => {});
379
1493
  }
380
- if (!commandExists('minisign')) {
381
- throw new Error('[self-host] minisign is required for self-host signature verification');
1494
+ if (hadActiveBinary && recovery && existsSync(recovery)) {
1495
+ await rename(recovery, target).catch(() => {});
382
1496
  }
383
- const tmp = await mkdtemp(join(tmpdir(), 'happier-self-host-signature-'));
384
- const pubKeyPath = join(tmp, 'minisign.pub');
385
- const signaturePath = join(tmp, 'checksums.txt.minisig');
1497
+ }
1498
+
1499
+ async function promoteStagedSelfHostRuntimePayload({ stagedRuntime, config, beforeOnPromoted, onPromoted }) {
1500
+ const promotions = [
1501
+ {
1502
+ stagedDir: stagedRuntime.sqliteMigrationsDir,
1503
+ targetDir: join(config.dataDir, 'migrations', 'sqlite'),
1504
+ },
1505
+ {
1506
+ stagedDir: stagedRuntime.generatedDir,
1507
+ targetDir: join(dirname(config.serverBinaryPath), 'generated'),
1508
+ },
1509
+ {
1510
+ stagedDir: stagedRuntime.nodeModulesDir,
1511
+ targetDir: join(dirname(config.serverBinaryPath), 'node_modules'),
1512
+ },
1513
+ ].filter(({ stagedDir }) => {
1514
+ const staged = String(stagedDir ?? '').trim();
1515
+ return staged && existsSync(staged);
1516
+ });
1517
+
1518
+ const binaryPromotionWindow = await prepareFailClosedBinaryPromotionWindow({
1519
+ targetBinaryPath: config.serverBinaryPath,
1520
+ previousBinaryPath: config.serverPreviousBinaryPath,
1521
+ });
1522
+
1523
+ const promoted = [];
386
1524
  try {
387
- await writeFile(pubKeyPath, `${publicKey}\n`, 'utf-8');
388
- await downloadToFile(signatureUrl, signaturePath);
389
- runCommand('minisign', ['-Vm', checksumsPath, '-x', signaturePath, '-p', pubKeyPath], { stdio: 'ignore' });
1525
+ for (const promotion of promotions) {
1526
+ const target = String(promotion.targetDir ?? '').trim();
1527
+ await mkdir(dirname(target), { recursive: true });
1528
+ promotion.backupDir = `${target}.backup-${randomUUID()}`;
1529
+ promotion.hadTarget = existsSync(target);
1530
+ if (promotion.hadTarget) {
1531
+ await rm(promotion.backupDir, { recursive: true, force: true }).catch(() => {});
1532
+ await rename(target, promotion.backupDir);
1533
+ }
1534
+
1535
+ try {
1536
+ await promoteStagedDirectory({
1537
+ stagedDir: promotion.stagedDir,
1538
+ targetDir: promotion.targetDir,
1539
+ });
1540
+ } catch (error) {
1541
+ await rollbackPromotedDirectory(promotion);
1542
+ throw error;
1543
+ }
1544
+
1545
+ promoted.push(promotion);
1546
+ }
1547
+
1548
+ if (typeof beforeOnPromoted === 'function') {
1549
+ await beforeOnPromoted();
1550
+ }
1551
+ if (typeof onPromoted === 'function') {
1552
+ await onPromoted();
1553
+ }
1554
+ await finalizeFailClosedBinaryPromotionWindow(binaryPromotionWindow);
1555
+
1556
+ for (const promotion of promoted) {
1557
+ if (promotion.hadTarget) {
1558
+ await rm(promotion.backupDir, { recursive: true, force: true }).catch(() => {});
1559
+ }
1560
+ }
1561
+ } catch (error) {
1562
+ await rollbackFailClosedBinaryPromotionWindow(binaryPromotionWindow);
1563
+ for (const promotion of promoted.reverse()) {
1564
+ await rollbackPromotedDirectory(promotion);
1565
+ }
1566
+ throw error;
1567
+ }
1568
+ }
1569
+
1570
+ export async function installSelfHostBinaryFromBundle({
1571
+ bundle,
1572
+ binaryName,
1573
+ config,
1574
+ pubkeyFile = resolveMinisignPublicKeyText(process.env),
1575
+ userAgent = 'happier-self-host-installer',
1576
+ beforeBinaryInstall,
1577
+ } = {}) {
1578
+ const resolvedBundle = bundle;
1579
+ const name = String(binaryName ?? '').trim();
1580
+ if (!resolvedBundle?.archive?.url || !resolvedBundle?.archive?.name) {
1581
+ throw new Error('[self-host] invalid release bundle (missing archive)');
1582
+ }
1583
+ if (!resolvedBundle?.checksums?.url || !resolvedBundle?.checksumsSig?.url) {
1584
+ throw new Error('[self-host] invalid release bundle (missing checksums assets)');
1585
+ }
1586
+ if (!name) {
1587
+ throw new Error('[self-host] missing binary name');
1588
+ }
1589
+ const platform = String(config?.platform ?? process.platform).trim() || process.platform;
1590
+ const os = normalizeOs(platform);
1591
+ const existingVersionIds = await listVersionedDirectoryIdsNewestFirst({
1592
+ versionsDir: config.versionsDir,
1593
+ entryPrefix: `${name}-`,
1594
+ });
1595
+ const previousVersionId = existingVersionIds.find((candidate) => candidate !== String(bundle?.version ?? '').trim()) ?? null;
1596
+
1597
+ const tempDir = await mkdtemp(join(tmpdir(), 'happier-self-host-release-'));
1598
+ try {
1599
+ const downloaded = await downloadVerifiedReleaseAssetBundle({
1600
+ bundle: resolvedBundle,
1601
+ destDir: tempDir,
1602
+ pubkeyFile,
1603
+ userAgent,
1604
+ });
1605
+
1606
+ const extractDir = join(tempDir, 'extract');
1607
+ await mkdir(extractDir, { recursive: true });
1608
+ const plan = planArchiveExtraction({
1609
+ archiveName: downloaded.archiveName,
1610
+ archivePath: downloaded.archivePath,
1611
+ destDir: extractDir,
1612
+ os,
1613
+ });
1614
+ if (!commandExists(plan.requiredCommand)) {
1615
+ throw new Error(`[self-host] ${plan.requiredCommand} is required to extract release artifacts`);
1616
+ }
1617
+ runCommand(plan.command.cmd, plan.command.args, { stdio: 'ignore' });
1618
+ const extractedBinary = await findExtractedExecutableByName(extractDir, name);
1619
+ if (!extractedBinary) {
1620
+ throw new Error('[self-host] failed to locate extracted server binary');
1621
+ }
1622
+
1623
+ const version = downloaded.version || String(resolvedBundle?.version ?? '').trim() || `${Date.now()}`;
1624
+ const artifactRootDir = dirname(extractedBinary);
1625
+ const stagedRuntime = await stageSelfHostRuntimePayload({
1626
+ artifactRootDir,
1627
+ stageRootDir: join(tempDir, 'runtime-stage'),
1628
+ });
1629
+ await promoteStagedSelfHostRuntimePayload({
1630
+ stagedRuntime,
1631
+ config,
1632
+ beforeOnPromoted: beforeBinaryInstall,
1633
+ onPromoted: async () => installBinaryAtomically({
1634
+ sourceBinaryPath: extractedBinary,
1635
+ targetBinaryPath: config.serverBinaryPath,
1636
+ previousBinaryPath: config.serverPreviousBinaryPath,
1637
+ versionedTargetPath: join(config.versionsDir, `${name}-${version}`),
1638
+ }),
1639
+ });
1640
+ await pruneVersionedDirectories({
1641
+ versionsDir: config.versionsDir,
1642
+ entryPrefix: `${name}-`,
1643
+ currentVersionId: version,
1644
+ previousVersionId,
1645
+ });
1646
+ return { version, source: resolvedBundle.archive.url };
390
1647
  } finally {
391
- await rm(tmp, { recursive: true, force: true });
1648
+ await rm(tempDir, { recursive: true, force: true });
392
1649
  }
393
1650
  }
394
1651
 
395
- async function installBinaryAtomically({ sourceBinaryPath, targetBinaryPath, previousBinaryPath, versionedTargetPath }) {
396
- await mkdir(dirname(targetBinaryPath), { recursive: true });
397
- await mkdir(dirname(versionedTargetPath), { recursive: true });
398
- const stagedPath = `${targetBinaryPath}.new`;
399
- await copyFile(sourceBinaryPath, stagedPath);
400
- await chmod(stagedPath, 0o755);
401
- if (existsSync(targetBinaryPath)) {
402
- await copyFile(targetBinaryPath, previousBinaryPath);
403
- await chmod(previousBinaryPath, 0o755);
1652
+ export async function installSelfHostBinaryFromLocalPath({
1653
+ sourceBinaryPath,
1654
+ binaryName,
1655
+ config,
1656
+ } = {}) {
1657
+ const srcPath = String(sourceBinaryPath ?? '').trim();
1658
+ const name = String(binaryName ?? '').trim();
1659
+ if (!srcPath) {
1660
+ throw new Error('[self-host] missing local source binary path');
1661
+ }
1662
+ if (!existsSync(srcPath)) {
1663
+ throw new Error(`[self-host] missing --server-binary path: ${srcPath}`);
1664
+ }
1665
+ if (!name) {
1666
+ throw new Error('[self-host] missing binary name');
1667
+ }
1668
+
1669
+ const version = `local-${Date.now()}`;
1670
+ const existingVersionIds = await listVersionedDirectoryIdsNewestFirst({
1671
+ versionsDir: config.versionsDir,
1672
+ entryPrefix: `${name}-`,
1673
+ });
1674
+ const previousVersionId = existingVersionIds.find((candidate) => candidate !== version) ?? null;
1675
+ const artifactRootDir = dirname(srcPath);
1676
+ const runtimeStageDir = await mkdtemp(join(tmpdir(), 'happier-self-host-local-runtime-stage-'));
1677
+ try {
1678
+ const stagedRuntime = await stageSelfHostRuntimePayload({
1679
+ artifactRootDir,
1680
+ stageRootDir: runtimeStageDir,
1681
+ });
1682
+ await promoteStagedSelfHostRuntimePayload({
1683
+ stagedRuntime,
1684
+ config,
1685
+ onPromoted: async () => installBinaryAtomically({
1686
+ sourceBinaryPath: srcPath,
1687
+ targetBinaryPath: config.serverBinaryPath,
1688
+ previousBinaryPath: config.serverPreviousBinaryPath,
1689
+ versionedTargetPath: join(config.versionsDir, `${name}-${version}`),
1690
+ }),
1691
+ });
1692
+ await pruneVersionedDirectories({
1693
+ versionsDir: config.versionsDir,
1694
+ entryPrefix: `${name}-`,
1695
+ currentVersionId: version,
1696
+ previousVersionId,
1697
+ });
1698
+ return { version, source: 'local' };
1699
+ } finally {
1700
+ await rm(runtimeStageDir, { recursive: true, force: true }).catch(() => {});
404
1701
  }
405
- await copyFile(stagedPath, versionedTargetPath);
406
- await chmod(versionedTargetPath, 0o755);
407
- await rm(stagedPath, { force: true });
408
- await copyFile(versionedTargetPath, targetBinaryPath);
409
- await chmod(targetBinaryPath, 0o755);
410
1702
  }
411
1703
 
412
1704
  async function installFromRelease({ product, binaryName, config, explicitBinaryPath = '' }) {
413
1705
  if (explicitBinaryPath) {
414
- const srcPath = explicitBinaryPath;
415
- if (!existsSync(srcPath)) {
416
- throw new Error(`[self-host] missing --server-binary path: ${srcPath}`);
417
- }
418
- const version = `local-${Date.now()}`;
419
- await installBinaryAtomically({
420
- sourceBinaryPath: srcPath,
421
- targetBinaryPath: config.serverBinaryPath,
422
- previousBinaryPath: config.serverPreviousBinaryPath,
423
- versionedTargetPath: join(config.versionsDir, `${binaryName}-${version}`),
1706
+ return installSelfHostBinaryFromLocalPath({
1707
+ sourceBinaryPath: explicitBinaryPath,
1708
+ binaryName,
1709
+ config,
424
1710
  });
425
- return { version, source: 'local' };
426
1711
  }
427
1712
 
428
- const channelTag = config.channel === 'preview' ? 'server-preview' : 'server-stable';
429
- const release = await readRelease(channelTag, config.githubRepo);
430
- const asset = pickReleaseAsset({
1713
+ const { serverTags: tags } = resolveSelfHostReleaseTargets(config.channel);
1714
+ const resolvedRelease = await fetchFirstGitHubReleaseByTags({
1715
+ githubRepo: config.githubRepo,
1716
+ tags,
1717
+ userAgent: 'happier-self-host-installer',
1718
+ githubToken: String(process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN ?? ''),
1719
+ }).catch((e) => {
1720
+ const status = Number(e?.status);
1721
+ if (status === 404) return null;
1722
+ throw e;
1723
+ });
1724
+
1725
+ if (!resolvedRelease) {
1726
+ throw new Error(`[self-host] server release tag not found (${tags.join(', ')})`);
1727
+ }
1728
+
1729
+ const { release, tag: channelTag } = resolvedRelease;
1730
+ const os = normalizeOs(config.platform);
1731
+ const resolved = resolveReleaseAssetBundle({
431
1732
  assets: release?.assets,
432
1733
  product,
433
- os: 'linux',
1734
+ os,
434
1735
  arch: normalizeArch(),
435
1736
  });
1737
+ const result = await installSelfHostBinaryFromBundle({
1738
+ bundle: resolved,
1739
+ binaryName,
1740
+ config,
1741
+ pubkeyFile: resolveMinisignPublicKeyText(process.env),
1742
+ userAgent: 'happier-self-host-installer',
1743
+ });
1744
+ return { version: result.version || resolved.version || String(release?.tag_name ?? '').replace(/^server-v/, ''), source: result.source };
1745
+ }
436
1746
 
437
- const tempDir = await mkdtemp(join(tmpdir(), 'happier-self-host-release-'));
1747
+ async function assertUiWebBundleIsValid(rootDir) {
1748
+ const indexPath = join(rootDir, 'index.html');
1749
+ const info = await stat(indexPath).catch(() => null);
1750
+ if (!info?.isFile()) {
1751
+ throw new Error(`[self-host] UI web bundle is missing index.html: ${indexPath}`);
1752
+ }
1753
+ }
1754
+
1755
+ export async function resolveExtractedUiWebBundleRootDir({ extractDir } = {}) {
1756
+ const root = String(extractDir ?? '').trim();
1757
+ if (!root) {
1758
+ throw new Error('[self-host] missing ui web bundle extractDir');
1759
+ }
1760
+
1761
+ // Some archives extract index.html directly into extractDir.
438
1762
  try {
439
- const archivePath = join(tempDir, 'artifact.tar.gz');
440
- const checksumsPath = join(tempDir, 'checksums.txt');
441
- await downloadToFile(asset.archiveUrl, archivePath);
442
- await downloadToFile(asset.checksumsUrl, checksumsPath);
443
- const checksumsMap = parseChecksums(await readFile(checksumsPath, 'utf-8'));
444
- const expected = checksumsMap.get(asset.archiveName);
445
- if (!expected) {
446
- throw new Error(`[self-host] checksum entry missing for ${asset.archiveName}`);
447
- }
448
- const actual = await sha256(archivePath);
449
- if (actual !== expected) {
450
- throw new Error('[self-host] checksum verification failed for downloaded server artifact');
1763
+ await assertUiWebBundleIsValid(root);
1764
+ return root;
1765
+ } catch {
1766
+ // continue
1767
+ }
1768
+
1769
+ const roots = await readdir(root).catch(() => []);
1770
+ for (const entry of roots) {
1771
+ const candidate = join(root, entry);
1772
+ const info = await stat(candidate).catch(() => null);
1773
+ if (!info?.isDirectory()) continue;
1774
+ try {
1775
+ await assertUiWebBundleIsValid(candidate);
1776
+ return candidate;
1777
+ } catch {
1778
+ // continue
451
1779
  }
1780
+ }
1781
+
1782
+ // Preserve the existing missing-index.html error shape, but anchor it to the extraction root
1783
+ // instead of whatever random entry came first (e.g. AppleDouble `._*` files).
1784
+ throw new Error(`[self-host] UI web bundle is missing index.html: ${join(root, 'index.html')}`);
1785
+ }
1786
+
1787
+ async function installUiWebFromRelease({ config }) {
1788
+ const { uiWebTags: tags } = resolveSelfHostReleaseTargets(config.channel);
1789
+
1790
+ const resolvedRelease = await fetchFirstGitHubReleaseByTags({
1791
+ githubRepo: config.githubRepo,
1792
+ tags,
1793
+ userAgent: 'happier-self-host-installer',
1794
+ githubToken: String(process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN ?? ''),
1795
+ }).catch((e) => {
1796
+ const status = Number(e?.status);
1797
+ if (status === 404) return null;
1798
+ throw e;
1799
+ });
452
1800
 
453
- const publicKey = await resolveMinisignPublicKey();
454
- await verifySignature({
455
- checksumsPath,
456
- signatureUrl: asset.signatureUrl,
457
- publicKey,
1801
+ if (!resolvedRelease) {
1802
+ return {
1803
+ installed: false,
1804
+ version: null,
1805
+ source: null,
1806
+ reason: `ui web release tag not found (${tags.join(', ')})`,
1807
+ };
1808
+ }
1809
+ const { release, tag: channelTag } = resolvedRelease;
1810
+ const existingVersionIds = await listVersionedDirectoryIdsNewestFirst({
1811
+ versionsDir: config.uiWebVersionsDir,
1812
+ entryPrefix: `${config.uiWebProduct}-`,
1813
+ });
1814
+
1815
+ const resolved = resolveReleaseAssetBundle({
1816
+ assets: release?.assets,
1817
+ product: config.uiWebProduct,
1818
+ os: config.uiWebOs,
1819
+ arch: config.uiWebArch,
1820
+ });
1821
+
1822
+ const tempDir = await mkdtemp(join(tmpdir(), 'happier-self-host-ui-web-'));
1823
+ try {
1824
+ const pubkeyFile = resolveMinisignPublicKeyText(process.env);
1825
+ const downloaded = await downloadVerifiedReleaseAssetBundle({
1826
+ bundle: resolved,
1827
+ destDir: tempDir,
1828
+ pubkeyFile,
1829
+ userAgent: 'happier-self-host-installer',
458
1830
  });
459
1831
 
460
1832
  const extractDir = join(tempDir, 'extract');
461
1833
  await mkdir(extractDir, { recursive: true });
462
- runCommand('tar', ['-xzf', archivePath, '-C', extractDir], { stdio: 'ignore' });
463
- const extractedBinary = await findExecutableByName(extractDir, binaryName);
464
- if (!extractedBinary) {
465
- throw new Error('[self-host] failed to locate extracted server binary');
1834
+ const plan = planArchiveExtraction({
1835
+ archiveName: downloaded.archiveName,
1836
+ archivePath: downloaded.archivePath,
1837
+ destDir: extractDir,
1838
+ os: normalizeOs(config.platform),
1839
+ });
1840
+ if (!commandExists(plan.requiredCommand)) {
1841
+ throw new Error(`[self-host] ${plan.requiredCommand} is required to extract ui web bundle artifacts`);
466
1842
  }
467
-
468
- const version = asset.version || String(release?.tag_name ?? '').replace(/^server-v/, '') || `${Date.now()}`;
469
- await installBinaryAtomically({
470
- sourceBinaryPath: extractedBinary,
471
- targetBinaryPath: config.serverBinaryPath,
472
- previousBinaryPath: config.serverPreviousBinaryPath,
473
- versionedTargetPath: join(config.versionsDir, `${binaryName}-${version}`),
1843
+ runCommand(plan.command.cmd, plan.command.args, { stdio: 'ignore' });
1844
+
1845
+ const roots = await readdir(extractDir).catch(() => []);
1846
+ if (roots.length === 0) {
1847
+ throw new Error('[self-host] extracted ui web bundle is empty');
1848
+ }
1849
+ const artifactRootDir = await resolveExtractedUiWebBundleRootDir({ extractDir });
1850
+
1851
+ const version = resolved.version || String(release?.tag_name ?? '').replace(/^ui-web-v/, '') || `${Date.now()}`;
1852
+ const versionedTargetDir = join(config.uiWebVersionsDir, `${config.uiWebProduct}-${version}`);
1853
+ const previousVersionId = existingVersionIds.find((candidate) => candidate !== version) ?? null;
1854
+ await rm(versionedTargetDir, { recursive: true, force: true });
1855
+ await mkdir(dirname(versionedTargetDir), { recursive: true });
1856
+ await cp(artifactRootDir, versionedTargetDir, { recursive: true });
1857
+
1858
+ await rm(config.uiWebCurrentDir, { recursive: true, force: true }).catch(() => {});
1859
+ await symlink(versionedTargetDir, config.uiWebCurrentDir, config.platform === 'win32' ? 'junction' : 'dir').catch(async () => {
1860
+ await cp(versionedTargetDir, config.uiWebCurrentDir, { recursive: true });
1861
+ });
1862
+ await pruneVersionedDirectories({
1863
+ versionsDir: config.uiWebVersionsDir,
1864
+ entryPrefix: `${config.uiWebProduct}-`,
1865
+ currentVersionId: version,
1866
+ previousVersionId,
474
1867
  });
475
- return { version, source: asset.archiveUrl };
1868
+
1869
+ return { installed: true, version, source: downloaded.source.archiveUrl, tag: channelTag };
476
1870
  } finally {
477
1871
  await rm(tempDir, { recursive: true, force: true });
478
1872
  }
@@ -491,47 +1885,56 @@ async function writeSelfHostState(config, statePatch) {
491
1885
  await writeFile(config.statePath, `${JSON.stringify(next, null, 2)}\n`, 'utf-8');
492
1886
  }
493
1887
 
494
- async function maybeInstallCompanionCli({ channel, nonInteractive, withCli }) {
495
- if (!withCli) return { installed: false, reason: 'disabled' };
496
- if (commandExists('happier')) {
497
- return { installed: false, reason: 'already-installed' };
498
- }
499
- if (!commandExists('curl') || !commandExists('bash')) {
500
- return { installed: false, reason: 'missing-curl-or-bash' };
501
- }
502
- const result = runCommand(
503
- 'bash',
504
- ['-lc', 'curl -fsSL https://happier.dev/install | bash'],
505
- {
506
- allowFail: true,
507
- env: {
508
- ...process.env,
509
- HAPPIER_CHANNEL: channel,
510
- HAPPIER_NONINTERACTIVE: nonInteractive ? '1' : '0',
511
- },
512
- stdio: 'inherit',
513
- }
514
- );
1888
+ function buildSelfHostServerServiceSpec({ config, envText }) {
515
1889
  return {
516
- installed: (result.status ?? 1) === 0,
517
- reason: (result.status ?? 1) === 0 ? 'installed' : 'installer-failed',
1890
+ label: config.serviceName,
1891
+ description: `Happier Self-Host (${config.serviceName})`,
1892
+ programArgs: [config.serverBinaryPath],
1893
+ workingDirectory: config.installRoot,
1894
+ env: parseEnvText(envText),
1895
+ stdoutPath: config.serverStdoutLogPath,
1896
+ stderrPath: config.serverStderrLogPath,
518
1897
  };
519
1898
  }
520
1899
 
521
- async function cmdInstall({ channel, argv, json }) {
522
- assertLinux();
523
- assertRoot();
524
- if (!commandExists('systemctl')) {
525
- throw new Error('[self-host] systemctl is required');
1900
+ async function cmdInstall({ channel, mode, argv, json }) {
1901
+ if (mode === 'system' && process.platform !== 'win32') {
1902
+ assertRoot();
526
1903
  }
527
- if (!commandExists('tar')) {
528
- throw new Error('[self-host] tar is required');
529
- }
530
- const config = resolveConfig({ channel });
531
- const withoutCli = argv.includes('--without-cli') || parseBoolean(process.env.HAPPIER_WITH_CLI, true) === false;
532
- const nonInteractive = argv.includes('--non-interactive') || parseBoolean(process.env.HAPPIER_NONINTERACTIVE, false);
1904
+ const parsedEnvOverrides = parseEnvOverridesFromArgv(argv);
1905
+ const envOverrides = parsedEnvOverrides.overrides;
1906
+ const argvSansEnv = parsedEnvOverrides.rest;
1907
+ const config = resolveConfig({ channel, mode, platform: process.platform });
1908
+ const autoUpdateEnabled = resolveAutoUpdateEnabled(argvSansEnv, config.autoUpdate);
1909
+ const autoUpdateIntervalMinutes = resolveAutoUpdateIntervalMinutes(argvSansEnv, config.autoUpdateIntervalMinutes);
1910
+ const autoUpdateAt = resolveAutoUpdateAt(argvSansEnv, config.autoUpdateAt);
1911
+ const withoutCli = argvSansEnv.includes('--without-cli') || parseBoolean(process.env.HAPPIER_WITH_CLI, true) === false;
1912
+ const withUi =
1913
+ !(argvSansEnv.includes('--without-ui')
1914
+ || parseBoolean(process.env.HAPPIER_WITH_UI, true) === false
1915
+ || parseBoolean(process.env.HAPPIER_SELF_HOST_WITH_UI, true) === false);
1916
+ const nonInteractive = argvSansEnv.includes('--non-interactive') || parseBoolean(process.env.HAPPIER_NONINTERACTIVE, false);
533
1917
  const serverBinaryOverride = String(process.env.HAPPIER_SELF_HOST_SERVER_BINARY ?? '').trim();
534
1918
 
1919
+ if (normalizeOs(config.platform) !== 'windows' && !commandExists('tar')) {
1920
+ throw new Error('[self-host] tar is required to extract release artifacts');
1921
+ }
1922
+ if (normalizeOs(config.platform) === 'windows' && !commandExists('powershell')) {
1923
+ throw new Error('[self-host] powershell is required on Windows');
1924
+ }
1925
+ if (withUi && !commandExists('tar')) {
1926
+ throw new Error('[self-host] tar is required to extract ui web bundle artifacts');
1927
+ }
1928
+ if (normalizeOs(config.platform) === 'linux' && !commandExists('systemctl')) {
1929
+ throw new Error('[self-host] systemctl is required on Linux');
1930
+ }
1931
+ if (autoUpdateEnabled && normalizeOs(config.platform) === 'darwin' && !commandExists('launchctl')) {
1932
+ throw new Error('[self-host] launchctl is required on macOS for auto-update scheduling');
1933
+ }
1934
+ if (autoUpdateEnabled && normalizeOs(config.platform) === 'windows' && !commandExists('schtasks')) {
1935
+ throw new Error('[self-host] schtasks is required on Windows for auto-update scheduling');
1936
+ }
1937
+
535
1938
  await mkdir(config.installRoot, { recursive: true });
536
1939
  await mkdir(config.installBinDir, { recursive: true });
537
1940
  await mkdir(config.versionsDir, { recursive: true });
@@ -540,91 +1943,90 @@ async function cmdInstall({ channel, argv, json }) {
540
1943
  await mkdir(config.filesDir, { recursive: true });
541
1944
  await mkdir(config.dbDir, { recursive: true });
542
1945
  await mkdir(config.logDir, { recursive: true });
1946
+ await mkdir(config.uiWebRootDir, { recursive: true });
1947
+ await mkdir(config.uiWebVersionsDir, { recursive: true });
543
1948
 
544
1949
  const installResult = await installFromRelease({
545
1950
  product: 'happier-server',
546
- binaryName: 'happier-server',
1951
+ binaryName: config.serverBinaryName,
547
1952
  config,
548
1953
  explicitBinaryPath: serverBinaryOverride,
549
1954
  });
550
1955
 
551
- await writeFile(
552
- config.configEnvPath,
553
- renderServerEnvFile({
554
- port: config.serverPort,
555
- host: config.serverHost,
556
- dataDir: config.dataDir,
557
- filesDir: config.filesDir,
558
- dbDir: config.dbDir,
559
- }),
560
- 'utf-8'
561
- );
562
- await writeFile(
563
- config.serviceUnitPath,
564
- renderServerServiceUnit({
565
- serviceName: config.serviceName,
566
- binaryPath: config.serverBinaryPath,
567
- envFilePath: config.configEnvPath,
568
- workingDirectory: config.installRoot,
569
- logPath: config.serverLogPath,
570
- }),
571
- 'utf-8'
572
- );
573
-
574
- const hstackPath = existsSync(join(config.binDir, 'hstack'))
575
- ? join(config.binDir, 'hstack')
576
- : join(config.installRoot, 'bin', 'hstack');
577
- await writeFile(
578
- config.updaterServiceUnitPath,
579
- renderUpdaterServiceUnit({
580
- updaterServiceName: config.updaterServiceName,
581
- hstackPath,
582
- channel,
583
- }),
584
- 'utf-8'
585
- );
586
- await writeFile(
587
- config.updaterTimerUnitPath,
588
- renderUpdaterTimerUnit({
589
- updaterServiceName: config.updaterServiceName,
590
- updaterTimerName: config.updaterTimerUnitName,
591
- }),
592
- 'utf-8'
593
- );
594
-
595
- const serverShimPath = join(config.binDir, 'happier-server');
1956
+ const uiResult = withUi
1957
+ ? await installUiWebFromRelease({ config })
1958
+ : { installed: false, version: null, source: null, reason: 'disabled' };
1959
+ const uiInstalled = Boolean(uiResult?.installed);
1960
+
1961
+ const envText = renderServerEnvFile({
1962
+ port: config.serverPort,
1963
+ host: config.serverHost,
1964
+ dataDir: config.dataDir,
1965
+ filesDir: config.filesDir,
1966
+ dbDir: config.dbDir,
1967
+ uiDir: uiInstalled ? config.uiWebCurrentDir : '',
1968
+ serverBinDir: dirname(config.serverBinaryPath),
1969
+ arch: process.arch,
1970
+ platform: config.platform,
1971
+ });
1972
+ const envTextWithOverrides = envOverrides.length ? applyEnvOverridesToEnvText(envText, envOverrides) : envText;
1973
+ await writeFile(config.configEnvPath, envTextWithOverrides, 'utf-8');
1974
+ const installEnv = parseEnvText(envTextWithOverrides);
1975
+ const healthPort = resolveSelfHostEffectiveServerPort({ config, env: installEnv });
1976
+ if (!parseBoolean(installEnv.HAPPIER_SQLITE_AUTO_MIGRATE ?? installEnv.HAPPY_SQLITE_AUTO_MIGRATE, true)) {
1977
+ await applySelfHostSqliteMigrationsAtInstallTime({ env: installEnv }).catch((e) => {
1978
+ throw new Error(`[self-host] failed to apply sqlite migrations at install time: ${String(e?.message ?? e)}`);
1979
+ });
1980
+ }
1981
+
1982
+ const serverShimPath = join(config.binDir, config.serverBinaryName);
596
1983
  await mkdir(config.binDir, { recursive: true });
597
1984
  await rm(serverShimPath, { force: true });
598
1985
  await symlink(config.serverBinaryPath, serverShimPath).catch(async () => {
599
1986
  await copyFile(config.serverBinaryPath, serverShimPath);
600
- await chmod(serverShimPath, 0o755);
1987
+ await chmod(serverShimPath, 0o755).catch(() => {});
601
1988
  });
602
1989
 
603
- runCommand('systemctl', ['daemon-reload'], { stdio: 'inherit' });
604
- runCommand('systemctl', ['enable', '--now', config.serviceUnitName], { stdio: 'inherit' });
605
-
606
- if (config.autoUpdate) {
607
- runCommand('systemctl', ['enable', '--now', config.updaterTimerUnitName], { allowFail: true, stdio: 'inherit' });
608
- } else {
609
- runCommand('systemctl', ['disable', '--now', config.updaterTimerUnitName], { allowFail: true, stdio: 'ignore' });
610
- }
611
-
612
- const healthy = await restartAndCheckHealth({ serviceUnitName: config.serviceUnitName, serverPort: config.serverPort });
613
- if (!healthy) {
614
- throw new Error('[self-host] service failed health checks after install');
615
- }
1990
+ const serviceSpec = buildSelfHostServerServiceSpec({ config, envText: envTextWithOverrides });
1991
+ await installManagedService({
1992
+ platform: config.platform,
1993
+ mode: config.mode,
1994
+ homeDir: homedir(),
1995
+ spec: serviceSpec,
1996
+ persistent: true,
1997
+ });
1998
+
1999
+ const healthy = await restartAndCheckHealth({ config, serviceSpec, port: healthPort });
2000
+ if (!healthy) {
2001
+ throw new Error('[self-host] service failed health checks after install');
2002
+ }
2003
+
2004
+ const autoUpdateResult = await installAutoUpdateJob({
2005
+ config: { ...config, autoUpdateAt },
2006
+ enabled: autoUpdateEnabled,
2007
+ intervalMinutes: autoUpdateIntervalMinutes,
2008
+ at: autoUpdateAt,
2009
+ }).catch((e) => ({
2010
+ installed: false,
2011
+ reason: String(e?.message ?? e),
2012
+ }));
616
2013
 
617
2014
  const cliResult = await maybeInstallCompanionCli({
618
2015
  channel,
619
- nonInteractive,
2016
+ githubRepo: config.githubRepo,
620
2017
  withCli: !withoutCli,
2018
+ processEnv: process.env,
621
2019
  });
622
2020
  await writeSelfHostState(config, {
623
2021
  channel,
2022
+ mode,
624
2023
  version: installResult.version,
625
2024
  source: installResult.source,
626
- autoUpdate: config.autoUpdate,
627
2025
  withCli: !withoutCli,
2026
+ uiWeb: uiInstalled
2027
+ ? { installed: true, version: uiResult.version, source: uiResult.source, tag: uiResult.tag }
2028
+ : { installed: false, reason: String(uiResult?.reason ?? (withUi ? 'missing' : 'disabled')) },
2029
+ autoUpdate: { enabled: autoUpdateEnabled, intervalMinutes: autoUpdateIntervalMinutes, at: autoUpdateAt },
628
2030
  });
629
2031
 
630
2032
  printResult({
@@ -632,84 +2034,257 @@ async function cmdInstall({ channel, argv, json }) {
632
2034
  data: {
633
2035
  ok: true,
634
2036
  channel,
2037
+ mode,
635
2038
  version: installResult.version,
636
- service: config.serviceUnitName,
2039
+ service: config.serviceName,
637
2040
  serverPort: config.serverPort,
2041
+ autoUpdate: {
2042
+ enabled: autoUpdateEnabled,
2043
+ intervalMinutes: autoUpdateIntervalMinutes,
2044
+ at: autoUpdateAt || null,
2045
+ ...autoUpdateResult,
2046
+ },
638
2047
  cli: cliResult,
639
2048
  },
640
2049
  text: [
641
2050
  `${green('✓')} Happier Self-Host installed`,
642
- `- service: ${cyan(config.serviceUnitName)}`,
2051
+ `- mode: ${cyan(mode)}`,
2052
+ `- service: ${cyan(config.serviceName)}`,
643
2053
  `- version: ${cyan(installResult.version || 'unknown')}`,
644
2054
  `- server: ${cyan(`http://127.0.0.1:${config.serverPort}`)}`,
2055
+ `- auto-update: ${autoUpdateEnabled ? (autoUpdateResult.installed ? green(`installed (${autoUpdateAt ? `daily at ${autoUpdateAt}` : `every ${autoUpdateIntervalMinutes}m`})`) : yellow('failed')) : dim('disabled')}`,
645
2056
  `- cli: ${cliResult.installed ? green('installed') : dim(cliResult.reason)}`,
2057
+ `- ui: ${uiInstalled ? green('installed') : dim(String(uiResult?.reason ?? 'disabled'))}`,
646
2058
  ].join('\n'),
647
2059
  });
648
2060
  }
649
2061
 
650
- async function cmdStatus({ channel, json }) {
651
- assertLinux();
652
- const config = resolveConfig({ channel });
653
- const serviceState = runCommand('systemctl', ['is-active', config.serviceUnitName], { allowFail: true, stdio: 'pipe' });
654
- const active = (serviceState.status ?? 1) === 0;
655
- const enabledState = runCommand('systemctl', ['is-enabled', config.serviceUnitName], { allowFail: true, stdio: 'pipe' });
656
- const enabled = (enabledState.status ?? 1) === 0;
657
- const healthy = active ? await checkHealth({ port: config.serverPort }) : false;
2062
+ async function cmdStatus({ channel, mode, json }) {
2063
+ const config = resolveConfig({ channel, mode, platform: process.platform });
658
2064
  const state = existsSync(config.statePath)
659
2065
  ? JSON.parse(await readFile(config.statePath, 'utf-8').catch(() => '{}'))
660
2066
  : {};
661
2067
 
2068
+ let active = null;
2069
+ let enabled = null;
2070
+ let updaterActive = null;
2071
+ let updaterEnabled = null;
2072
+ const updaterLabel = resolveUpdaterLabel(config);
2073
+ try {
2074
+ if (config.platform === 'linux' && commandExists('systemctl')) {
2075
+ const prefix = config.mode === 'user' ? ['--user'] : [];
2076
+ const isActive = runCommand('systemctl', [...prefix, 'is-active', '--quiet', `${config.serviceName}.service`], {
2077
+ allowFail: true,
2078
+ stdio: 'ignore',
2079
+ });
2080
+ active = (isActive.status ?? 1) === 0;
2081
+ const isEnabled = runCommand('systemctl', [...prefix, 'is-enabled', '--quiet', `${config.serviceName}.service`], {
2082
+ allowFail: true,
2083
+ stdio: 'ignore',
2084
+ });
2085
+ enabled = (isEnabled.status ?? 1) === 0;
2086
+
2087
+ const updaterTimerIsActive = runCommand('systemctl', [...prefix, 'is-active', '--quiet', `${updaterLabel}.timer`], {
2088
+ allowFail: true,
2089
+ stdio: 'ignore',
2090
+ });
2091
+ updaterActive = (updaterTimerIsActive.status ?? 1) === 0;
2092
+ const updaterIsEnabled = runCommand('systemctl', [...prefix, 'is-enabled', '--quiet', `${updaterLabel}.timer`], {
2093
+ allowFail: true,
2094
+ stdio: 'ignore',
2095
+ });
2096
+ updaterEnabled = (updaterIsEnabled.status ?? 1) === 0;
2097
+ } else if (config.platform === 'darwin' && commandExists('launchctl')) {
2098
+ const list = runCommand('launchctl', ['list'], { allowFail: true, stdio: 'pipe' });
2099
+ const out = String(list.stdout ?? '');
2100
+ active = out.includes(`\t${config.serviceName}`) || out.includes(` ${config.serviceName}`);
2101
+ updaterActive = out.includes(`\t${updaterLabel}`) || out.includes(` ${updaterLabel}`);
2102
+ enabled = null;
2103
+ updaterEnabled = null;
2104
+ } else if (config.platform === 'win32' && commandExists('schtasks')) {
2105
+ const query = runCommand('schtasks', ['/Query', '/TN', `Happier\\${config.serviceName}`, '/FO', 'LIST', '/V'], {
2106
+ allowFail: true,
2107
+ stdio: 'pipe',
2108
+ });
2109
+ const out = String(query.stdout ?? '');
2110
+ active = /Status:\s*Running/i.test(out) ? true : /Status:/i.test(out) ? false : null;
2111
+ enabled = /Scheduled Task State:\s*Enabled/i.test(out) ? true : /Scheduled Task State:/i.test(out) ? false : null;
2112
+
2113
+ const updaterQuery = runCommand('schtasks', ['/Query', '/TN', `Happier\\${updaterLabel}`, '/FO', 'LIST', '/V'], {
2114
+ allowFail: true,
2115
+ stdio: 'pipe',
2116
+ });
2117
+ const updaterOut = String(updaterQuery.stdout ?? '');
2118
+ updaterActive = /Status:\s*Running/i.test(updaterOut) ? true : /Status:/i.test(updaterOut) ? false : null;
2119
+ updaterEnabled = /Scheduled Task State:\s*Enabled/i.test(updaterOut)
2120
+ ? true
2121
+ : /Scheduled Task State:/i.test(updaterOut)
2122
+ ? false
2123
+ : null;
2124
+ }
2125
+ } catch {
2126
+ active = null;
2127
+ enabled = null;
2128
+ updaterActive = null;
2129
+ updaterEnabled = null;
2130
+ }
2131
+
2132
+ const healthy = await checkHealth({ port: config.serverPort });
2133
+ const serverVersion = state?.version ? String(state.version) : '';
2134
+ const uiWebVersion =
2135
+ state?.uiWeb?.installed === true && state?.uiWeb?.version
2136
+ ? String(state.uiWeb.version)
2137
+ : '';
2138
+ const autoUpdateState = normalizeSelfHostAutoUpdateState(state, {
2139
+ fallbackIntervalMinutes: config.autoUpdateIntervalMinutes,
2140
+ });
2141
+
2142
+ const serverUrl = `http://${config.serverHost}:${config.serverPort}`;
662
2143
  printResult({
663
2144
  json,
664
2145
  data: {
665
2146
  ok: true,
666
2147
  channel,
2148
+ mode,
2149
+ serverUrl,
2150
+ versions: {
2151
+ server: serverVersion || null,
2152
+ uiWeb: uiWebVersion || null,
2153
+ },
667
2154
  service: {
668
- name: config.serviceUnitName,
2155
+ name: config.serviceName,
669
2156
  active,
670
2157
  enabled,
671
2158
  },
2159
+ autoUpdate: {
2160
+ label: updaterLabel,
2161
+ active: updaterActive,
2162
+ enabled: updaterEnabled,
2163
+ configured: {
2164
+ enabled: Boolean(autoUpdateState?.enabled),
2165
+ intervalMinutes: autoUpdateState?.intervalMinutes ?? null,
2166
+ at: autoUpdateState?.at ? String(autoUpdateState.at) : null,
2167
+ },
2168
+ },
672
2169
  healthy,
673
2170
  state,
674
2171
  },
675
- text: [
676
- `${cyan('service')}: ${config.serviceUnitName}`,
677
- `${cyan('active')}: ${active ? green('yes') : yellow('no')}`,
678
- `${cyan('enabled')}: ${enabled ? green('yes') : yellow('no')}`,
679
- `${cyan('health')}: ${healthy ? green('ok') : yellow('failed')}`,
680
- state?.version ? `${cyan('version')}: ${state.version}` : null,
681
- ].filter(Boolean).join('\n'),
2172
+ text: renderSelfHostStatusText({
2173
+ channel,
2174
+ mode,
2175
+ serviceName: config.serviceName,
2176
+ serverUrl,
2177
+ healthy,
2178
+ service: { active, enabled },
2179
+ versions: { server: serverVersion || null, uiWeb: uiWebVersion || null },
2180
+ autoUpdate: {
2181
+ label: updaterLabel,
2182
+ job: { active: updaterActive, enabled: updaterEnabled },
2183
+ configured: {
2184
+ enabled: Boolean(autoUpdateState?.enabled),
2185
+ intervalMinutes: autoUpdateState?.intervalMinutes ?? null,
2186
+ at: autoUpdateState?.at ? String(autoUpdateState.at) : null,
2187
+ },
2188
+ },
2189
+ updatedAt: state?.updatedAt ?? null,
2190
+ }),
682
2191
  });
683
2192
  }
684
2193
 
685
- async function cmdUpdate({ channel, json }) {
686
- assertLinux();
687
- assertRoot();
688
- const config = resolveConfig({ channel });
2194
+ async function cmdUpdate({ channel, mode, json }) {
2195
+ const config = resolveConfig({ channel, mode, platform: process.platform });
2196
+ if (config.mode === 'system' && config.platform !== 'win32') {
2197
+ assertRoot();
2198
+ }
2199
+ const existingState = existsSync(config.statePath)
2200
+ ? JSON.parse(await readFile(config.statePath, 'utf-8').catch(() => '{}'))
2201
+ : {};
2202
+ const autoUpdateReconcile = decideSelfHostAutoUpdateReconcile(existingState, {
2203
+ fallbackIntervalMinutes: config.autoUpdateIntervalMinutes,
2204
+ });
2205
+ const withUi =
2206
+ parseBoolean(process.env.HAPPIER_WITH_UI, true) !== false
2207
+ && parseBoolean(process.env.HAPPIER_SELF_HOST_WITH_UI, true) !== false;
689
2208
  const installResult = await installFromRelease({
690
2209
  product: 'happier-server',
691
- binaryName: 'happier-server',
2210
+ binaryName: config.serverBinaryName,
692
2211
  config,
693
2212
  });
694
- const healthy = await restartAndCheckHealth({ serviceUnitName: config.serviceUnitName, serverPort: config.serverPort });
2213
+ const uiResult = withUi
2214
+ ? await installUiWebFromRelease({ config })
2215
+ : { installed: false, version: null, source: null, reason: 'disabled' };
2216
+ const uiInstalled = Boolean(uiResult?.installed);
2217
+
2218
+ const envText = existsSync(config.configEnvPath)
2219
+ ? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
2220
+ : '';
2221
+ const parsedEnv = parseEnvText(envText);
2222
+ const effectivePort = parsePort(parsedEnv.PORT, config.serverPort);
2223
+ const configWithPort = effectivePort === config.serverPort ? config : { ...config, serverPort: effectivePort };
2224
+ const defaultsEnvText = renderServerEnvFile({
2225
+ port: configWithPort.serverPort,
2226
+ host: configWithPort.serverHost,
2227
+ dataDir: configWithPort.dataDir,
2228
+ filesDir: configWithPort.filesDir,
2229
+ dbDir: configWithPort.dbDir,
2230
+ uiDir: uiInstalled ? configWithPort.uiWebCurrentDir : '',
2231
+ serverBinDir: dirname(configWithPort.serverBinaryPath),
2232
+ arch: process.arch,
2233
+ platform: configWithPort.platform,
2234
+ });
2235
+ const nextEnvText = envText ? mergeEnvTextWithDefaults(envText, defaultsEnvText) : defaultsEnvText;
2236
+ await mkdir(configWithPort.configDir, { recursive: true });
2237
+ await writeFile(configWithPort.configEnvPath, nextEnvText, 'utf-8');
2238
+ const nextEnv = parseEnvText(nextEnvText);
2239
+ if (!parseBoolean(nextEnv.HAPPIER_SQLITE_AUTO_MIGRATE ?? nextEnv.HAPPY_SQLITE_AUTO_MIGRATE, true)) {
2240
+ await applySelfHostSqliteMigrationsAtInstallTime({ env: nextEnv }).catch((e) => {
2241
+ throw new Error(`[self-host] failed to apply sqlite migrations at update time: ${String(e?.message ?? e)}`);
2242
+ });
2243
+ }
2244
+
2245
+ const serviceSpec = buildSelfHostServerServiceSpec({ config: configWithPort, envText: nextEnvText });
2246
+ await installManagedService({
2247
+ platform: configWithPort.platform,
2248
+ mode: configWithPort.mode,
2249
+ homeDir: homedir(),
2250
+ spec: serviceSpec,
2251
+ persistent: true,
2252
+ }).catch(() => {});
2253
+ const healthy = await restartAndCheckHealth({ config: configWithPort, serviceSpec });
695
2254
  if (!healthy) {
696
2255
  if (existsSync(config.serverPreviousBinaryPath)) {
697
2256
  await copyFile(config.serverPreviousBinaryPath, config.serverBinaryPath);
698
- await chmod(config.serverBinaryPath, 0o755);
699
- await restartAndCheckHealth({ serviceUnitName: config.serviceUnitName, serverPort: config.serverPort });
2257
+ await chmod(config.serverBinaryPath, 0o755).catch(() => {});
2258
+ await restartAndCheckHealth({ config: configWithPort, serviceSpec });
700
2259
  }
701
2260
  throw new Error('[self-host] update failed health checks and was rolled back to previous binary');
702
2261
  }
703
2262
 
2263
+ if (autoUpdateReconcile.action === 'install') {
2264
+ await installAutoUpdateJob({
2265
+ config: { ...configWithPort, autoUpdateAt: autoUpdateReconcile.at },
2266
+ enabled: true,
2267
+ intervalMinutes: autoUpdateReconcile.intervalMinutes,
2268
+ at: autoUpdateReconcile.at,
2269
+ }).catch(() => {});
2270
+ } else {
2271
+ await uninstallAutoUpdateJob({ config: configWithPort }).catch(() => {});
2272
+ }
2273
+
704
2274
  await writeSelfHostState(config, {
705
2275
  channel,
2276
+ mode,
706
2277
  version: installResult.version,
707
2278
  source: installResult.source,
2279
+ autoUpdate: { enabled: autoUpdateReconcile.enabled, intervalMinutes: autoUpdateReconcile.intervalMinutes, at: autoUpdateReconcile.at },
2280
+ uiWeb: uiInstalled
2281
+ ? { installed: true, version: uiResult.version, source: uiResult.source, tag: uiResult.tag }
2282
+ : { installed: false, reason: String(uiResult?.reason ?? (withUi ? 'missing' : 'disabled')) },
708
2283
  });
709
2284
 
710
2285
  printResult({
711
2286
  json,
712
- data: { ok: true, version: installResult.version, service: config.serviceUnitName },
2287
+ data: { ok: true, version: installResult.version, service: config.serviceName },
713
2288
  text: `${green('✓')} updated self-host runtime to ${cyan(installResult.version || 'latest')}`,
714
2289
  });
715
2290
  }
@@ -723,13 +2298,14 @@ function parseRollbackVersion(argv) {
723
2298
  return '';
724
2299
  }
725
2300
 
726
- async function cmdRollback({ channel, argv, json }) {
727
- assertLinux();
728
- assertRoot();
729
- const config = resolveConfig({ channel });
2301
+ async function cmdRollback({ channel, mode, argv, json }) {
2302
+ const config = resolveConfig({ channel, mode, platform: process.platform });
2303
+ if (config.mode === 'system' && config.platform !== 'win32') {
2304
+ assertRoot();
2305
+ }
730
2306
  const to = parseRollbackVersion(argv);
731
2307
  const target = to
732
- ? join(config.versionsDir, `happier-server-${to}`)
2308
+ ? join(config.versionsDir, `${config.serverBinaryName}-${to}`)
733
2309
  : config.serverPreviousBinaryPath;
734
2310
  if (!existsSync(target)) {
735
2311
  throw new Error(
@@ -739,13 +2315,42 @@ async function cmdRollback({ channel, argv, json }) {
739
2315
  );
740
2316
  }
741
2317
  await copyFile(target, config.serverBinaryPath);
742
- await chmod(config.serverBinaryPath, 0o755);
743
- const healthy = await restartAndCheckHealth({ serviceUnitName: config.serviceUnitName, serverPort: config.serverPort });
2318
+ await chmod(config.serverBinaryPath, 0o755).catch(() => {});
2319
+ const envText = existsSync(config.configEnvPath)
2320
+ ? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
2321
+ : '';
2322
+ const parsedEnv = parseEnvText(envText);
2323
+ const effectivePort = parsePort(parsedEnv.PORT, config.serverPort);
2324
+ const configWithPort = effectivePort === config.serverPort ? config : { ...config, serverPort: effectivePort };
2325
+ const defaultsEnvText = renderServerEnvFile({
2326
+ port: configWithPort.serverPort,
2327
+ host: configWithPort.serverHost,
2328
+ dataDir: configWithPort.dataDir,
2329
+ filesDir: configWithPort.filesDir,
2330
+ dbDir: configWithPort.dbDir,
2331
+ serverBinDir: dirname(configWithPort.serverBinaryPath),
2332
+ arch: process.arch,
2333
+ platform: configWithPort.platform,
2334
+ });
2335
+ const nextEnvText = envText ? mergeEnvTextWithDefaults(envText, defaultsEnvText) : defaultsEnvText;
2336
+ await mkdir(configWithPort.configDir, { recursive: true });
2337
+ await writeFile(configWithPort.configEnvPath, nextEnvText, 'utf-8');
2338
+
2339
+ const serviceSpec = buildSelfHostServerServiceSpec({ config: configWithPort, envText: nextEnvText });
2340
+ await installManagedService({
2341
+ platform: configWithPort.platform,
2342
+ mode: configWithPort.mode,
2343
+ homeDir: homedir(),
2344
+ spec: serviceSpec,
2345
+ persistent: true,
2346
+ }).catch(() => {});
2347
+ const healthy = await restartAndCheckHealth({ config: configWithPort, serviceSpec });
744
2348
  if (!healthy) {
745
2349
  throw new Error('[self-host] rollback completed binary swap but health checks failed');
746
2350
  }
747
2351
  await writeSelfHostState(config, {
748
2352
  channel,
2353
+ mode,
749
2354
  version: to || 'previous',
750
2355
  rolledBackAt: new Date().toISOString(),
751
2356
  });
@@ -756,27 +2361,43 @@ async function cmdRollback({ channel, argv, json }) {
756
2361
  });
757
2362
  }
758
2363
 
759
- async function cmdUninstall({ channel, argv, json }) {
760
- assertLinux();
761
- assertRoot();
762
- const config = resolveConfig({ channel });
2364
+ async function cmdUninstall({ channel, mode, argv, json }) {
2365
+ const config = resolveConfig({ channel, mode, platform: process.platform });
2366
+ if (config.mode === 'system' && config.platform !== 'win32') {
2367
+ assertRoot();
2368
+ }
763
2369
  const purgeData = argv.includes('--purge-data');
764
2370
  const yes = argv.includes('--yes') || parseBoolean(process.env.HAPPIER_NONINTERACTIVE, false);
765
2371
  if (!yes) {
766
2372
  throw new Error('[self-host] uninstall requires --yes (or HAPPIER_NONINTERACTIVE=1)');
767
2373
  }
768
2374
 
769
- runCommand('systemctl', ['disable', '--now', config.serviceUnitName], { allowFail: true, stdio: 'ignore' });
770
- runCommand('systemctl', ['disable', '--now', config.updaterTimerUnitName], { allowFail: true, stdio: 'ignore' });
771
-
772
- await rm(config.serviceUnitPath, { force: true });
773
- await rm(config.updaterServiceUnitPath, { force: true });
774
- await rm(config.updaterTimerUnitPath, { force: true });
775
- runCommand('systemctl', ['daemon-reload'], { allowFail: true, stdio: 'ignore' });
2375
+ const envText = existsSync(config.configEnvPath)
2376
+ ? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
2377
+ : '';
2378
+ const fallbackEnvText = envText || renderServerEnvFile({
2379
+ port: config.serverPort,
2380
+ host: config.serverHost,
2381
+ dataDir: config.dataDir,
2382
+ filesDir: config.filesDir,
2383
+ dbDir: config.dbDir,
2384
+ serverBinDir: dirname(config.serverBinaryPath),
2385
+ arch: process.arch,
2386
+ platform: config.platform,
2387
+ });
2388
+ const serviceSpec = buildSelfHostServerServiceSpec({ config, envText: fallbackEnvText });
2389
+ await uninstallAutoUpdateJob({ config }).catch(() => {});
2390
+ await uninstallManagedService({
2391
+ platform: config.platform,
2392
+ mode: config.mode,
2393
+ homeDir: homedir(),
2394
+ spec: serviceSpec,
2395
+ persistent: true,
2396
+ }).catch(() => {});
776
2397
 
777
2398
  await rm(config.serverBinaryPath, { force: true });
778
2399
  await rm(config.serverPreviousBinaryPath, { force: true });
779
- await rm(join(config.binDir, 'happier-server'), { force: true });
2400
+ await rm(join(config.binDir, config.serverBinaryName), { force: true });
780
2401
  await rm(config.statePath, { force: true });
781
2402
 
782
2403
  if (purgeData) {
@@ -793,16 +2414,12 @@ async function cmdUninstall({ channel, argv, json }) {
793
2414
  });
794
2415
  }
795
2416
 
796
- async function cmdDoctor({ channel, json }) {
797
- const config = resolveConfig({ channel });
798
- const checks = [
799
- { name: 'linux', ok: process.platform === 'linux' },
800
- { name: 'systemctl', ok: commandExists('systemctl') },
801
- { name: 'curl', ok: commandExists('curl') },
802
- { name: 'tar', ok: commandExists('tar') },
803
- { name: 'server-binary', ok: existsSync(config.serverBinaryPath) },
804
- { name: 'service-unit', ok: existsSync(config.serviceUnitPath) },
805
- ];
2417
+ async function cmdDoctor({ channel, mode, json }) {
2418
+ const config = resolveConfig({ channel, mode, platform: process.platform });
2419
+ const state = existsSync(config.statePath)
2420
+ ? JSON.parse(await readFile(config.statePath, 'utf-8').catch(() => '{}'))
2421
+ : {};
2422
+ const checks = buildSelfHostDoctorChecks(config, { state });
806
2423
  const ok = checks.every((check) => check.ok);
807
2424
  printResult({
808
2425
  json,
@@ -818,17 +2435,200 @@ async function cmdDoctor({ channel, json }) {
818
2435
  }
819
2436
  }
820
2437
 
2438
+ function pickFirstPositional(argv) {
2439
+ const args = Array.isArray(argv) ? argv.map(String) : [];
2440
+ return args.find((a) => a && !a.startsWith('-')) ?? '';
2441
+ }
2442
+
2443
+ function safeParseJson(text) {
2444
+ try {
2445
+ return JSON.parse(String(text ?? ''));
2446
+ } catch {
2447
+ return null;
2448
+ }
2449
+ }
2450
+
2451
+ function redactEnvForDisplay(env) {
2452
+ const input = env ?? {};
2453
+ const out = {};
2454
+ const allowed = new Set([
2455
+ 'PORT',
2456
+ 'HAPPIER_SERVER_HOST',
2457
+ 'HAPPIER_DB_PROVIDER',
2458
+ 'HAPPIER_FILES_BACKEND',
2459
+ 'HAPPIER_SERVER_UI_DIR',
2460
+ ]);
2461
+ for (const [k, v] of Object.entries(input)) {
2462
+ if (!allowed.has(k)) continue;
2463
+ out[k] = String(v ?? '');
2464
+ }
2465
+ return out;
2466
+ }
2467
+
2468
+ async function cmdConfig({ channel, mode, argv, json }) {
2469
+ const args = Array.isArray(argv) ? argv.map(String) : [];
2470
+ const sub = pickFirstPositional(args) || 'view';
2471
+ const subIndex = args.indexOf(sub);
2472
+ const rest = subIndex >= 0 ? args.slice(subIndex + 1) : [];
2473
+
2474
+ const config = resolveConfig({ channel, mode, platform: process.platform });
2475
+ const existingState = existsSync(config.statePath)
2476
+ ? safeParseJson(await readFile(config.statePath, 'utf-8').catch(() => '')) ?? {}
2477
+ : {};
2478
+ const normalizedAutoUpdate = normalizeSelfHostAutoUpdateState(existingState, {
2479
+ fallbackIntervalMinutes: config.autoUpdateIntervalMinutes,
2480
+ });
2481
+ const envText = existsSync(config.configEnvPath)
2482
+ ? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
2483
+ : '';
2484
+ const envObj = envText ? parseEnvText(envText) : {};
2485
+
2486
+ if (sub === 'view') {
2487
+ printResult({
2488
+ json,
2489
+ data: {
2490
+ ok: true,
2491
+ channel,
2492
+ mode,
2493
+ paths: {
2494
+ installRoot: config.installRoot,
2495
+ binDir: config.binDir,
2496
+ configDir: config.configDir,
2497
+ configEnvPath: config.configEnvPath,
2498
+ statePath: config.statePath,
2499
+ logDir: config.logDir,
2500
+ },
2501
+ autoUpdate: {
2502
+ enabled: Boolean(normalizedAutoUpdate.enabled),
2503
+ intervalMinutes: normalizedAutoUpdate.intervalMinutes,
2504
+ at: normalizedAutoUpdate.at || null,
2505
+ },
2506
+ env: redactEnvForDisplay(envObj),
2507
+ state: existingState,
2508
+ },
2509
+ text: json
2510
+ ? null
2511
+ : [
2512
+ banner('self-host config', { subtitle: 'Self-host configuration (paths + auto-update).' }),
2513
+ '',
2514
+ sectionTitle('paths:'),
2515
+ `- installRoot: ${cyan(config.installRoot)}`,
2516
+ `- configEnvPath: ${cyan(config.configEnvPath)}`,
2517
+ `- statePath: ${cyan(config.statePath)}`,
2518
+ '',
2519
+ sectionTitle('auto-update:'),
2520
+ `- enabled: ${normalizedAutoUpdate.enabled ? green('yes') : dim('no')}`,
2521
+ `- schedule: ${normalizedAutoUpdate.enabled ? cyan(normalizedAutoUpdate.at ? `daily at ${normalizedAutoUpdate.at}` : `every ${normalizedAutoUpdate.intervalMinutes}m`) : dim('disabled')}`,
2522
+ ].join('\n'),
2523
+ });
2524
+ return;
2525
+ }
2526
+
2527
+ if (sub === 'set') {
2528
+ const wantsApply = !rest.includes('--no-apply');
2529
+ const enabled =
2530
+ rest.includes('--auto-update') ? true : rest.includes('--no-auto-update') ? false : Boolean(normalizedAutoUpdate.enabled);
2531
+
2532
+ const wantsInterval = rest.some((a) => a === '--auto-update-interval' || a.startsWith('--auto-update-interval='));
2533
+ const nextIntervalMinutes = wantsInterval
2534
+ ? resolveAutoUpdateIntervalMinutes(rest, normalizedAutoUpdate.intervalMinutes)
2535
+ : normalizedAutoUpdate.intervalMinutes;
2536
+
2537
+ const wantsAt = rest.some((a) => a === '--auto-update-at' || a.startsWith('--auto-update-at='));
2538
+ const clearAt = rest.includes('--clear-auto-update-at');
2539
+ const nextAt = clearAt
2540
+ ? ''
2541
+ : wantsAt
2542
+ ? resolveAutoUpdateAt(rest, normalizedAutoUpdate.at || config.autoUpdateAt || '')
2543
+ : normalizedAutoUpdate.at || '';
2544
+
2545
+ const parsedEnvOverrides = parseEnvOverridesFromArgv(rest);
2546
+ const envOverrides = parsedEnvOverrides.overrides;
2547
+
2548
+ await mkdir(config.installRoot, { recursive: true });
2549
+
2550
+ if (envOverrides.length) {
2551
+ const baseEnvText = envText || renderServerEnvFile({
2552
+ port: config.serverPort,
2553
+ host: config.serverHost,
2554
+ dataDir: config.dataDir,
2555
+ filesDir: config.filesDir,
2556
+ dbDir: config.dbDir,
2557
+ uiDir: existingState?.uiWeb?.installed === true ? config.uiWebCurrentDir : '',
2558
+ serverBinDir: dirname(config.serverBinaryPath),
2559
+ arch: process.arch,
2560
+ platform: config.platform,
2561
+ });
2562
+ const nextEnvText = applyEnvOverridesToEnvText(baseEnvText, envOverrides);
2563
+ await mkdir(config.configDir, { recursive: true });
2564
+ await writeFile(config.configEnvPath, nextEnvText, 'utf-8');
2565
+ }
2566
+
2567
+ await writeSelfHostState(config, {
2568
+ channel,
2569
+ mode,
2570
+ autoUpdate: { enabled, intervalMinutes: nextIntervalMinutes, at: nextAt },
2571
+ });
2572
+
2573
+ let applyResult = null;
2574
+ if (wantsApply) {
2575
+ if (config.mode === 'system' && config.platform !== 'win32') {
2576
+ assertRoot();
2577
+ }
2578
+ if (enabled) {
2579
+ applyResult = await installAutoUpdateJob({
2580
+ config: { ...config, autoUpdateAt: nextAt },
2581
+ enabled: true,
2582
+ intervalMinutes: nextIntervalMinutes,
2583
+ at: nextAt,
2584
+ }).catch((e) => ({ installed: false, reason: String(e?.message ?? e) }));
2585
+ } else {
2586
+ applyResult = await uninstallAutoUpdateJob({ config }).catch((e) => ({ uninstalled: false, reason: String(e?.message ?? e) }));
2587
+ }
2588
+ }
2589
+
2590
+ const nextEnvText = existsSync(config.configEnvPath)
2591
+ ? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
2592
+ : '';
2593
+ const nextEnvObj = nextEnvText ? parseEnvText(nextEnvText) : {};
2594
+
2595
+ printResult({
2596
+ json,
2597
+ data: {
2598
+ ok: true,
2599
+ channel,
2600
+ mode,
2601
+ autoUpdate: { enabled, intervalMinutes: nextIntervalMinutes, at: nextAt || null },
2602
+ env: redactEnvForDisplay(nextEnvObj),
2603
+ applied: wantsApply,
2604
+ applyResult,
2605
+ },
2606
+ text: json
2607
+ ? null
2608
+ : [
2609
+ `${green('✓')} self-host config updated`,
2610
+ `- auto-update: ${enabled ? (nextAt ? `daily at ${nextAt}` : `every ${nextIntervalMinutes}m`) : 'disabled'}`,
2611
+ `- apply: ${wantsApply ? green('yes') : dim('no')}`,
2612
+ ].join('\n'),
2613
+ });
2614
+ return;
2615
+ }
2616
+
2617
+ throw new Error(`[self-host] unknown config command: ${sub}`);
2618
+ }
2619
+
821
2620
  export function usageText() {
822
2621
  return [
823
2622
  banner('self-host', { subtitle: 'Happier Self-Host guided installation flow.' }),
824
2623
  '',
825
2624
  sectionTitle('usage:'),
826
- ` ${cyan('hstack self-host')} install [--without-cli] [--channel=stable|preview] [--non-interactive] [--json]`,
827
- ` ${cyan('hstack self-host')} status [--channel=stable|preview] [--json]`,
828
- ` ${cyan('hstack self-host')} update [--channel=stable|preview] [--json]`,
829
- ` ${cyan('hstack self-host')} rollback [--to=<version>] [--channel=stable|preview] [--json]`,
830
- ` ${cyan('hstack self-host')} uninstall [--purge-data] [--yes] [--json]`,
2625
+ ` ${cyan('hstack self-host')} install [--mode=user|system] [--without-cli] [--without-ui] [--channel=stable|preview|dev] [--auto-update|--no-auto-update] [--auto-update-interval=<minutes>] [--auto-update-at=<HH:MM>] [--env KEY=VALUE]... [--non-interactive] [--json]`,
2626
+ ` ${cyan('hstack self-host')} status [--mode=user|system] [--channel=stable|preview|dev] [--json]`,
2627
+ ` ${cyan('hstack self-host')} update [--mode=user|system] [--channel=stable|preview|dev] [--json]`,
2628
+ ` ${cyan('hstack self-host')} rollback [--mode=user|system] [--to=<version>] [--channel=stable|preview|dev] [--json]`,
2629
+ ` ${cyan('hstack self-host')} uninstall [--mode=user|system] [--purge-data] [--yes] [--json]`,
831
2630
  ` ${cyan('hstack self-host')} doctor [--json]`,
2631
+ ` ${cyan('hstack self-host')} config view|set [--mode=user|system] [--channel=stable|preview|dev] [--json]`,
832
2632
  '',
833
2633
  sectionTitle('notes:'),
834
2634
  '- works without a repository checkout (binary-safe flow).',
@@ -836,18 +2636,67 @@ export function usageText() {
836
2636
  ].join('\n');
837
2637
  }
838
2638
 
2639
+ let cachedRelayHostForwardSupport = null;
2640
+
2641
+ function shouldAttemptRelayHostForward(env = process.env) {
2642
+ const raw = String(env?.HAPPIER_STACK_SELF_HOST_FORWARD ?? '1').trim().toLowerCase();
2643
+ if (!raw) return true;
2644
+ if (raw === '0' || raw === 'false' || raw === 'no' || raw === 'off') return false;
2645
+ return true;
2646
+ }
2647
+
2648
+ function resolveRelayHostForwardSupport(env = process.env) {
2649
+ if (cachedRelayHostForwardSupport != null) {
2650
+ return cachedRelayHostForwardSupport;
2651
+ }
2652
+
2653
+ try {
2654
+ const probe = spawnSync('happier', ['relay', 'host', '--help'], {
2655
+ env,
2656
+ stdio: 'ignore',
2657
+ encoding: 'utf-8',
2658
+ });
2659
+ cachedRelayHostForwardSupport = (probe.status ?? 1) === 0;
2660
+ } catch {
2661
+ cachedRelayHostForwardSupport = false;
2662
+ }
2663
+
2664
+ return cachedRelayHostForwardSupport;
2665
+ }
2666
+
839
2667
  export async function runSelfHostCli(argv = process.argv.slice(2)) {
2668
+ if (shouldAttemptRelayHostForward(process.env) && resolveRelayHostForwardSupport(process.env)) {
2669
+ const forwarded = spawnSync('happier', ['relay', 'host', ...argv], {
2670
+ env: process.env,
2671
+ stdio: 'inherit',
2672
+ encoding: 'utf-8',
2673
+ });
2674
+ if (forwarded.error) {
2675
+ throw forwarded.error;
2676
+ }
2677
+ if ((forwarded.status ?? 1) !== 0) {
2678
+ throw new Error(`[self-host] forwarded command failed (happier relay host), exit code: ${forwarded.status ?? 1}`);
2679
+ }
2680
+ return;
2681
+ }
2682
+
840
2683
  const parsed = parseSelfHostInvocation(argv);
841
2684
  const { flags, kv } = parseArgs(argv);
842
2685
  const json = wantsJson(argv, { flags });
843
2686
  const channel = normalizeChannel(String(kv.get('--channel') ?? process.env.HAPPIER_CHANNEL ?? 'stable'));
2687
+ const mode = normalizeMode(
2688
+ String(
2689
+ kv.get('--mode') ??
2690
+ (argv.includes('--system') ? 'system' : argv.includes('--user') ? 'user' : process.env.HAPPIER_SELF_HOST_MODE ?? 'user')
2691
+ )
2692
+ );
844
2693
 
845
2694
  if (wantsHelp(argv, { flags }) || parsed.subcommand === 'help') {
846
2695
  printResult({
847
2696
  json,
848
2697
  data: {
849
2698
  ok: true,
850
- commands: ['install', 'status', 'update', 'rollback', 'uninstall', 'doctor'],
2699
+ commands: ['install', 'status', 'update', 'rollback', 'uninstall', 'doctor', 'config'],
851
2700
  },
852
2701
  text: usageText(),
853
2702
  });
@@ -855,27 +2704,31 @@ export async function runSelfHostCli(argv = process.argv.slice(2)) {
855
2704
  }
856
2705
 
857
2706
  if (parsed.subcommand === 'install') {
858
- await cmdInstall({ channel, argv: parsed.rest, json });
2707
+ await cmdInstall({ channel, mode, argv: parsed.rest, json });
859
2708
  return;
860
2709
  }
861
2710
  if (parsed.subcommand === 'status') {
862
- await cmdStatus({ channel, json });
2711
+ await cmdStatus({ channel, mode, json });
863
2712
  return;
864
2713
  }
865
2714
  if (parsed.subcommand === 'update') {
866
- await cmdUpdate({ channel, json });
2715
+ await cmdUpdate({ channel, mode, json });
867
2716
  return;
868
2717
  }
869
2718
  if (parsed.subcommand === 'rollback') {
870
- await cmdRollback({ channel, argv: parsed.rest, json });
2719
+ await cmdRollback({ channel, mode, argv: parsed.rest, json });
871
2720
  return;
872
2721
  }
873
2722
  if (parsed.subcommand === 'uninstall') {
874
- await cmdUninstall({ channel, argv: parsed.rest, json });
2723
+ await cmdUninstall({ channel, mode, argv: parsed.rest, json });
875
2724
  return;
876
2725
  }
877
2726
  if (parsed.subcommand === 'doctor' || parsed.subcommand === 'migrate-from-npm') {
878
- await cmdDoctor({ channel, json });
2727
+ await cmdDoctor({ channel, mode, json });
2728
+ return;
2729
+ }
2730
+ if (parsed.subcommand === 'config') {
2731
+ await cmdConfig({ channel, mode, argv: parsed.rest, json });
879
2732
  return;
880
2733
  }
881
2734