happy2 0.0.12 → 0.0.14

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 (520) hide show
  1. package/package.json +2 -2
  2. package/packages/happy2-server/PLUGINS.md +281 -39
  3. package/packages/happy2-server/README.md +8 -7
  4. package/packages/happy2-server/dist/index.d.ts +3 -1
  5. package/packages/happy2-server/dist/index.d.ts.map +1 -1
  6. package/packages/happy2-server/dist/index.js +2 -0
  7. package/packages/happy2-server/dist/index.js.map +1 -1
  8. package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts +1 -0
  9. package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts.map +1 -1
  10. package/packages/happy2-server/dist/modules/agent/agentChatBind.js +4 -0
  11. package/packages/happy2-server/dist/modules/agent/agentChatBind.js.map +1 -1
  12. package/packages/happy2-server/dist/modules/agent/agentChatGetContext.d.ts.map +1 -1
  13. package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js +3 -1
  14. package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js.map +1 -1
  15. package/packages/happy2-server/dist/modules/agent/agentCreate.d.ts.map +1 -1
  16. package/packages/happy2-server/dist/modules/agent/agentCreate.js +1 -0
  17. package/packages/happy2-server/dist/modules/agent/agentCreate.js.map +1 -1
  18. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts +4 -2
  19. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts.map +1 -1
  20. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js +8 -8
  21. package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js.map +1 -1
  22. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts +3 -3
  23. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts.map +1 -1
  24. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js +4 -4
  25. package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js.map +1 -1
  26. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts +4 -4
  27. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts.map +1 -1
  28. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js +57 -41
  29. package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js.map +1 -1
  30. package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.d.ts +1 -1
  31. package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js +3 -3
  32. package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js.map +1 -1
  33. package/packages/happy2-server/dist/modules/agent/agentImageCreate.d.ts +1 -1
  34. package/packages/happy2-server/dist/modules/agent/agentImageCreate.js +3 -3
  35. package/packages/happy2-server/dist/modules/agent/agentImageCreate.js.map +1 -1
  36. package/packages/happy2-server/dist/modules/agent/agentImageGet.d.ts +1 -1
  37. package/packages/happy2-server/dist/modules/agent/agentImageGet.js +3 -3
  38. package/packages/happy2-server/dist/modules/agent/agentImageGet.js.map +1 -1
  39. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts +2 -1
  40. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts.map +1 -1
  41. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js +11 -4
  42. package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js.map +1 -1
  43. package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts +2 -2
  44. package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts.map +1 -1
  45. package/packages/happy2-server/dist/modules/agent/agentImageList.js +8 -4
  46. package/packages/happy2-server/dist/modules/agent/agentImageList.js.map +1 -1
  47. package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.d.ts +1 -1
  48. package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js +3 -3
  49. package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js.map +1 -1
  50. package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.d.ts +1 -1
  51. package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js +3 -3
  52. package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js.map +1 -1
  53. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.d.ts +1 -1
  54. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js +3 -3
  55. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js.map +1 -1
  56. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.d.ts +1 -1
  57. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js +3 -3
  58. package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js.map +1 -1
  59. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.d.ts +1 -1
  60. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js +3 -3
  61. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js.map +1 -1
  62. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.d.ts +1 -1
  63. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js +3 -3
  64. package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js.map +1 -1
  65. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts +4 -3
  66. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts.map +1 -1
  67. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js +5 -5
  68. package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js.map +1 -1
  69. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.d.ts +1 -1
  70. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js +3 -3
  71. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js.map +1 -1
  72. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.d.ts +2 -2
  73. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js +4 -4
  74. package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js.map +1 -1
  75. package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.d.ts +1 -1
  76. package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js +3 -3
  77. package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js.map +1 -1
  78. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.d.ts +4 -0
  79. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.d.ts.map +1 -0
  80. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.js +15 -0
  81. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.js.map +1 -0
  82. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.d.ts +2 -0
  83. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.d.ts.map +1 -0
  84. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.js +17 -0
  85. package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.js.map +1 -0
  86. package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.d.ts +23 -0
  87. package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.d.ts.map +1 -0
  88. package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.js +70 -0
  89. package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.js.map +1 -0
  90. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts +4 -0
  91. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts.map +1 -1
  92. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js +207 -9
  93. package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js.map +1 -1
  94. package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.d.ts +8 -0
  95. package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.d.ts.map +1 -0
  96. package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.js +86 -0
  97. package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.js.map +1 -0
  98. package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.d.ts +19 -0
  99. package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.d.ts.map +1 -0
  100. package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.js +87 -0
  101. package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.js.map +1 -0
  102. package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts +2 -1
  103. package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts.map +1 -1
  104. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts +4 -1
  105. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts.map +1 -1
  106. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts +3 -3
  107. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts.map +1 -1
  108. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js +26 -40
  109. package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js.map +1 -1
  110. package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.d.ts.map +1 -1
  111. package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js +63 -2
  112. package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js.map +1 -1
  113. package/packages/happy2-server/dist/modules/agent/types.d.ts +53 -0
  114. package/packages/happy2-server/dist/modules/agent/types.d.ts.map +1 -1
  115. package/packages/happy2-server/dist/modules/agents/daemon.d.ts +31 -2
  116. package/packages/happy2-server/dist/modules/agents/daemon.d.ts.map +1 -1
  117. package/packages/happy2-server/dist/modules/agents/daemon.js +12 -2
  118. package/packages/happy2-server/dist/modules/agents/daemon.js.map +1 -1
  119. package/packages/happy2-server/dist/modules/agents/service.d.ts +11 -6
  120. package/packages/happy2-server/dist/modules/agents/service.d.ts.map +1 -1
  121. package/packages/happy2-server/dist/modules/agents/service.js +498 -50
  122. package/packages/happy2-server/dist/modules/agents/service.js.map +1 -1
  123. package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.d.ts +12 -0
  124. package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.d.ts.map +1 -0
  125. package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.js +27 -0
  126. package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.js.map +1 -0
  127. package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.d.ts +8 -0
  128. package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.d.ts.map +1 -0
  129. package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.js +22 -0
  130. package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.js.map +1 -0
  131. package/packages/happy2-server/dist/modules/auth/methods.d.ts +1 -0
  132. package/packages/happy2-server/dist/modules/auth/methods.d.ts.map +1 -1
  133. package/packages/happy2-server/dist/modules/auth/methods.js +10 -6
  134. package/packages/happy2-server/dist/modules/auth/methods.js.map +1 -1
  135. package/packages/happy2-server/dist/modules/auth/service.d.ts +2 -0
  136. package/packages/happy2-server/dist/modules/auth/service.d.ts.map +1 -1
  137. package/packages/happy2-server/dist/modules/auth/service.js +26 -0
  138. package/packages/happy2-server/dist/modules/auth/service.js.map +1 -1
  139. package/packages/happy2-server/dist/modules/auth/tokens.d.ts +21 -0
  140. package/packages/happy2-server/dist/modules/auth/tokens.d.ts.map +1 -1
  141. package/packages/happy2-server/dist/modules/auth/tokens.js +97 -3
  142. package/packages/happy2-server/dist/modules/auth/tokens.js.map +1 -1
  143. package/packages/happy2-server/dist/modules/auth/tokens.test.js +77 -0
  144. package/packages/happy2-server/dist/modules/auth/tokens.test.js.map +1 -1
  145. package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.d.ts +17 -0
  146. package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.d.ts.map +1 -0
  147. package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.js +98 -0
  148. package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.js.map +1 -0
  149. package/packages/happy2-server/dist/modules/chat/asServiceMessage.d.ts.map +1 -1
  150. package/packages/happy2-server/dist/modules/chat/asServiceMessage.js +13 -5
  151. package/packages/happy2-server/dist/modules/chat/asServiceMessage.js.map +1 -1
  152. package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.d.ts +19 -0
  153. package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.d.ts.map +1 -0
  154. package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.js +87 -0
  155. package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.js.map +1 -0
  156. package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.d.ts +15 -0
  157. package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.d.ts.map +1 -0
  158. package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.js +38 -0
  159. package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.js.map +1 -0
  160. package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts +1 -1
  161. package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts.map +1 -1
  162. package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.d.ts +20 -0
  163. package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.d.ts.map +1 -0
  164. package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.js +38 -0
  165. package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.js.map +1 -0
  166. package/packages/happy2-server/dist/modules/chat/types.d.ts +6 -0
  167. package/packages/happy2-server/dist/modules/chat/types.d.ts.map +1 -1
  168. package/packages/happy2-server/dist/modules/chat/types.js.map +1 -1
  169. package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.d.ts +7 -0
  170. package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.d.ts.map +1 -0
  171. package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.js +19 -0
  172. package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.js.map +1 -0
  173. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts +2 -2
  174. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts.map +1 -1
  175. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js +8 -5
  176. package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js.map +1 -1
  177. package/packages/happy2-server/dist/modules/config/defaults.d.ts.map +1 -1
  178. package/packages/happy2-server/dist/modules/config/defaults.js +1 -0
  179. package/packages/happy2-server/dist/modules/config/defaults.js.map +1 -1
  180. package/packages/happy2-server/dist/modules/config/defaults.test.js +1 -0
  181. package/packages/happy2-server/dist/modules/config/defaults.test.js.map +1 -1
  182. package/packages/happy2-server/dist/modules/config/loader.d.ts.map +1 -1
  183. package/packages/happy2-server/dist/modules/config/loader.js +4 -0
  184. package/packages/happy2-server/dist/modules/config/loader.js.map +1 -1
  185. package/packages/happy2-server/dist/modules/config/loader.test.js +12 -0
  186. package/packages/happy2-server/dist/modules/config/loader.test.js.map +1 -1
  187. package/packages/happy2-server/dist/modules/config/type.d.ts +3 -0
  188. package/packages/happy2-server/dist/modules/config/type.d.ts.map +1 -1
  189. package/packages/happy2-server/dist/modules/message/messageGetProjection.d.ts.map +1 -1
  190. package/packages/happy2-server/dist/modules/message/messageGetProjection.js +28 -0
  191. package/packages/happy2-server/dist/modules/message/messageGetProjection.js.map +1 -1
  192. package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.d.ts +4 -0
  193. package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.d.ts.map +1 -0
  194. package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.js +39 -0
  195. package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.js.map +1 -0
  196. package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.d.ts +10 -0
  197. package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.d.ts.map +1 -0
  198. package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.js +31 -0
  199. package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.js.map +1 -0
  200. package/packages/happy2-server/dist/modules/permission/permissionGetEffective.d.ts +8 -0
  201. package/packages/happy2-server/dist/modules/permission/permissionGetEffective.d.ts.map +1 -0
  202. package/packages/happy2-server/dist/modules/permission/permissionGetEffective.js +13 -0
  203. package/packages/happy2-server/dist/modules/permission/permissionGetEffective.js.map +1 -0
  204. package/packages/happy2-server/dist/modules/permission/roleCreate.d.ts +16 -0
  205. package/packages/happy2-server/dist/modules/permission/roleCreate.d.ts.map +1 -0
  206. package/packages/happy2-server/dist/modules/permission/roleCreate.js +70 -0
  207. package/packages/happy2-server/dist/modules/permission/roleCreate.js.map +1 -0
  208. package/packages/happy2-server/dist/modules/permission/roleDelete.d.ts +11 -0
  209. package/packages/happy2-server/dist/modules/permission/roleDelete.d.ts.map +1 -0
  210. package/packages/happy2-server/dist/modules/permission/roleDelete.js +41 -0
  211. package/packages/happy2-server/dist/modules/permission/roleDelete.js.map +1 -0
  212. package/packages/happy2-server/dist/modules/permission/roleList.d.ts +8 -0
  213. package/packages/happy2-server/dist/modules/permission/roleList.d.ts.map +1 -0
  214. package/packages/happy2-server/dist/modules/permission/roleList.js +36 -0
  215. package/packages/happy2-server/dist/modules/permission/roleList.js.map +1 -0
  216. package/packages/happy2-server/dist/modules/permission/roleUpdate.d.ts +14 -0
  217. package/packages/happy2-server/dist/modules/permission/roleUpdate.d.ts.map +1 -0
  218. package/packages/happy2-server/dist/modules/permission/roleUpdate.js +78 -0
  219. package/packages/happy2-server/dist/modules/permission/roleUpdate.js.map +1 -0
  220. package/packages/happy2-server/dist/modules/permission/types.d.ts +24 -0
  221. package/packages/happy2-server/dist/modules/permission/types.d.ts.map +1 -0
  222. package/packages/happy2-server/dist/modules/permission/types.js +10 -0
  223. package/packages/happy2-server/dist/modules/permission/types.js.map +1 -0
  224. package/packages/happy2-server/dist/modules/permission/userPermissionGet.d.ts +16 -0
  225. package/packages/happy2-server/dist/modules/permission/userPermissionGet.d.ts.map +1 -0
  226. package/packages/happy2-server/dist/modules/permission/userPermissionGet.js +33 -0
  227. package/packages/happy2-server/dist/modules/permission/userPermissionGet.js.map +1 -0
  228. package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.d.ts +12 -0
  229. package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.d.ts.map +1 -0
  230. package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.js +44 -0
  231. package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.js.map +1 -0
  232. package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.d.ts +8 -0
  233. package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.d.ts.map +1 -0
  234. package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.js +12 -0
  235. package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.js.map +1 -0
  236. package/packages/happy2-server/dist/modules/permission/userRequirePermission.d.ts +8 -0
  237. package/packages/happy2-server/dist/modules/permission/userRequirePermission.d.ts.map +1 -0
  238. package/packages/happy2-server/dist/modules/permission/userRequirePermission.js +12 -0
  239. package/packages/happy2-server/dist/modules/permission/userRequirePermission.js.map +1 -0
  240. package/packages/happy2-server/dist/modules/permission/userRoleAssign.d.ts +12 -0
  241. package/packages/happy2-server/dist/modules/permission/userRoleAssign.d.ts.map +1 -0
  242. package/packages/happy2-server/dist/modules/permission/userRoleAssign.js +46 -0
  243. package/packages/happy2-server/dist/modules/permission/userRoleAssign.js.map +1 -0
  244. package/packages/happy2-server/dist/modules/permission/userRoleUnassign.d.ts +12 -0
  245. package/packages/happy2-server/dist/modules/permission/userRoleUnassign.d.ts.map +1 -0
  246. package/packages/happy2-server/dist/modules/permission/userRoleUnassign.js +53 -0
  247. package/packages/happy2-server/dist/modules/permission/userRoleUnassign.js.map +1 -0
  248. package/packages/happy2-server/dist/modules/plugin/archive.d.ts +7 -0
  249. package/packages/happy2-server/dist/modules/plugin/archive.d.ts.map +1 -0
  250. package/packages/happy2-server/dist/modules/plugin/archive.js +222 -0
  251. package/packages/happy2-server/dist/modules/plugin/archive.js.map +1 -0
  252. package/packages/happy2-server/dist/modules/plugin/catalog.d.ts +5 -1
  253. package/packages/happy2-server/dist/modules/plugin/catalog.d.ts.map +1 -1
  254. package/packages/happy2-server/dist/modules/plugin/catalog.js +35 -16
  255. package/packages/happy2-server/dist/modules/plugin/catalog.js.map +1 -1
  256. package/packages/happy2-server/dist/modules/plugin/catalog.test.js +6 -2
  257. package/packages/happy2-server/dist/modules/plugin/catalog.test.js.map +1 -1
  258. package/packages/happy2-server/dist/modules/plugin/httpBridge.d.ts +1 -0
  259. package/packages/happy2-server/dist/modules/plugin/httpBridge.d.ts.map +1 -1
  260. package/packages/happy2-server/dist/modules/plugin/httpBridge.js +7 -0
  261. package/packages/happy2-server/dist/modules/plugin/httpBridge.js.map +1 -1
  262. package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.d.ts +5 -0
  263. package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.d.ts.map +1 -0
  264. package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.js +106 -0
  265. package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.js.map +1 -0
  266. package/packages/happy2-server/dist/modules/plugin/impl/asInstallation.d.ts.map +1 -1
  267. package/packages/happy2-server/dist/modules/plugin/impl/asInstallation.js +12 -2
  268. package/packages/happy2-server/dist/modules/plugin/impl/asInstallation.js.map +1 -1
  269. package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.d.ts +3 -0
  270. package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.d.ts.map +1 -0
  271. package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.js +68 -0
  272. package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.js.map +1 -0
  273. package/packages/happy2-server/dist/modules/plugin/impl/asPlugin.d.ts.map +1 -1
  274. package/packages/happy2-server/dist/modules/plugin/impl/asPlugin.js +12 -3
  275. package/packages/happy2-server/dist/modules/plugin/impl/asPlugin.js.map +1 -1
  276. package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.d.ts +19 -0
  277. package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.d.ts.map +1 -1
  278. package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.js +1 -0
  279. package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.js.map +1 -1
  280. package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.d.ts.map +1 -1
  281. package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.js +4 -2
  282. package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.js.map +1 -1
  283. package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.test.js +14 -0
  284. package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.test.js.map +1 -1
  285. package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.d.ts +345 -0
  286. package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.d.ts.map +1 -0
  287. package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.js +22 -0
  288. package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.js.map +1 -0
  289. package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.d.ts +11 -0
  290. package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.d.ts.map +1 -0
  291. package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.js +2 -0
  292. package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.js.map +1 -0
  293. package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.d.ts +16 -0
  294. package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.d.ts.map +1 -0
  295. package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.js +67 -0
  296. package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.js.map +1 -0
  297. package/packages/happy2-server/dist/modules/plugin/packageStore.d.ts +27 -1
  298. package/packages/happy2-server/dist/modules/plugin/packageStore.d.ts.map +1 -1
  299. package/packages/happy2-server/dist/modules/plugin/packageStore.js +234 -15
  300. package/packages/happy2-server/dist/modules/plugin/packageStore.js.map +1 -1
  301. package/packages/happy2-server/dist/modules/plugin/packageStore.test.d.ts +2 -0
  302. package/packages/happy2-server/dist/modules/plugin/packageStore.test.d.ts.map +1 -0
  303. package/packages/happy2-server/dist/modules/plugin/packageStore.test.js +50 -0
  304. package/packages/happy2-server/dist/modules/plugin/packageStore.test.js.map +1 -0
  305. package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.d.ts +5 -0
  306. package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.d.ts.map +1 -0
  307. package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.js +26 -0
  308. package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.js.map +1 -0
  309. package/packages/happy2-server/dist/modules/plugin/pluginAuthorizeManagement.d.ts +1 -1
  310. package/packages/happy2-server/dist/modules/plugin/pluginAuthorizeManagement.js +3 -3
  311. package/packages/happy2-server/dist/modules/plugin/pluginAuthorizeManagement.js.map +1 -1
  312. package/packages/happy2-server/dist/modules/plugin/pluginCatalogList.d.ts.map +1 -1
  313. package/packages/happy2-server/dist/modules/plugin/pluginCatalogList.js +7 -3
  314. package/packages/happy2-server/dist/modules/plugin/pluginCatalogList.js.map +1 -1
  315. package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.d.ts +2 -0
  316. package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.d.ts.map +1 -0
  317. package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.js +44 -0
  318. package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.js.map +1 -0
  319. package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.d.ts +3 -1
  320. package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.d.ts.map +1 -1
  321. package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.js +1 -1
  322. package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.js.map +1 -1
  323. package/packages/happy2-server/dist/modules/plugin/pluginGetImage.d.ts +1 -1
  324. package/packages/happy2-server/dist/modules/plugin/pluginGetImage.js +3 -3
  325. package/packages/happy2-server/dist/modules/plugin/pluginGetImage.js.map +1 -1
  326. package/packages/happy2-server/dist/modules/plugin/pluginGetSource.d.ts +13 -0
  327. package/packages/happy2-server/dist/modules/plugin/pluginGetSource.d.ts.map +1 -0
  328. package/packages/happy2-server/dist/modules/plugin/pluginGetSource.js +37 -0
  329. package/packages/happy2-server/dist/modules/plugin/pluginGetSource.js.map +1 -0
  330. package/packages/happy2-server/dist/modules/plugin/pluginInstall.d.ts +4 -2
  331. package/packages/happy2-server/dist/modules/plugin/pluginInstall.d.ts.map +1 -1
  332. package/packages/happy2-server/dist/modules/plugin/pluginInstall.js +36 -5
  333. package/packages/happy2-server/dist/modules/plugin/pluginInstall.js.map +1 -1
  334. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.d.ts +7 -0
  335. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.d.ts.map +1 -0
  336. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.js +18 -0
  337. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.js.map +1 -0
  338. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.d.ts +13 -0
  339. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.d.ts.map +1 -0
  340. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.js +35 -0
  341. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.js.map +1 -0
  342. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRuntimeConfiguration.d.ts.map +1 -1
  343. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRuntimeConfiguration.js +3 -1
  344. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRuntimeConfiguration.js.map +1 -1
  345. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.d.ts +6 -0
  346. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.d.ts.map +1 -0
  347. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.js +17 -0
  348. package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.js.map +1 -0
  349. package/packages/happy2-server/dist/modules/plugin/pluginInstallationList.d.ts +1 -1
  350. package/packages/happy2-server/dist/modules/plugin/pluginInstallationList.js +3 -3
  351. package/packages/happy2-server/dist/modules/plugin/pluginInstallationList.js.map +1 -1
  352. package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.d.ts +18 -0
  353. package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.d.ts.map +1 -0
  354. package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.js +92 -0
  355. package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.js.map +1 -0
  356. package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.d.ts +16 -0
  357. package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.d.ts.map +1 -0
  358. package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.js +71 -0
  359. package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.js.map +1 -0
  360. package/packages/happy2-server/dist/modules/plugin/pluginList.d.ts +1 -1
  361. package/packages/happy2-server/dist/modules/plugin/pluginList.js +3 -3
  362. package/packages/happy2-server/dist/modules/plugin/pluginList.js.map +1 -1
  363. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.d.ts +21 -0
  364. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.d.ts.map +1 -0
  365. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.js +71 -0
  366. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.js.map +1 -0
  367. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.d.ts +12 -0
  368. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.d.ts.map +1 -0
  369. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.js +56 -0
  370. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.js.map +1 -0
  371. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.d.ts +11 -0
  372. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.d.ts.map +1 -0
  373. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.js +44 -0
  374. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.js.map +1 -0
  375. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.d.ts +10 -0
  376. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.d.ts.map +1 -0
  377. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.js +41 -0
  378. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.js.map +1 -0
  379. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.d.ts +26 -0
  380. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.d.ts.map +1 -0
  381. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.js +78 -0
  382. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.js.map +1 -0
  383. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.d.ts +25 -0
  384. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.d.ts.map +1 -0
  385. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.js +76 -0
  386. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.js.map +1 -0
  387. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.d.ts +11 -0
  388. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.d.ts.map +1 -0
  389. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.js +48 -0
  390. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.js.map +1 -0
  391. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.d.ts +12 -0
  392. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.d.ts.map +1 -0
  393. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.js +42 -0
  394. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.js.map +1 -0
  395. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.d.ts +5 -0
  396. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.d.ts.map +1 -0
  397. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.js +18 -0
  398. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.js.map +1 -0
  399. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.d.ts +4 -0
  400. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.d.ts.map +1 -0
  401. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.js +11 -0
  402. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.js.map +1 -0
  403. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.d.ts +5 -0
  404. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.d.ts.map +1 -0
  405. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.js +75 -0
  406. package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.js.map +1 -0
  407. package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.d.ts +12 -0
  408. package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.d.ts.map +1 -0
  409. package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.js +33 -0
  410. package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.js.map +1 -0
  411. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.d.ts +8 -0
  412. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.d.ts.map +1 -0
  413. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.js +24 -0
  414. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.js.map +1 -0
  415. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.d.ts +8 -0
  416. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.d.ts.map +1 -0
  417. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.js +25 -0
  418. package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.js.map +1 -0
  419. package/packages/happy2-server/dist/modules/plugin/pluginUninstall.d.ts +13 -0
  420. package/packages/happy2-server/dist/modules/plugin/pluginUninstall.d.ts.map +1 -0
  421. package/packages/happy2-server/dist/modules/plugin/pluginUninstall.js +63 -0
  422. package/packages/happy2-server/dist/modules/plugin/pluginUninstall.js.map +1 -0
  423. package/packages/happy2-server/dist/modules/plugin/runtime.d.ts +1 -0
  424. package/packages/happy2-server/dist/modules/plugin/runtime.d.ts.map +1 -1
  425. package/packages/happy2-server/dist/modules/plugin/runtime.js +1 -0
  426. package/packages/happy2-server/dist/modules/plugin/runtime.js.map +1 -1
  427. package/packages/happy2-server/dist/modules/plugin/service.d.ts +157 -5
  428. package/packages/happy2-server/dist/modules/plugin/service.d.ts.map +1 -1
  429. package/packages/happy2-server/dist/modules/plugin/service.js +789 -19
  430. package/packages/happy2-server/dist/modules/plugin/service.js.map +1 -1
  431. package/packages/happy2-server/dist/modules/plugin/source.d.ts +35 -0
  432. package/packages/happy2-server/dist/modules/plugin/source.d.ts.map +1 -0
  433. package/packages/happy2-server/dist/modules/plugin/source.js +189 -0
  434. package/packages/happy2-server/dist/modules/plugin/source.js.map +1 -0
  435. package/packages/happy2-server/dist/modules/plugin/types.d.ts +116 -11
  436. package/packages/happy2-server/dist/modules/plugin/types.d.ts.map +1 -1
  437. package/packages/happy2-server/dist/modules/plugin/types.js +9 -0
  438. package/packages/happy2-server/dist/modules/plugin/types.js.map +1 -1
  439. package/packages/happy2-server/dist/modules/realtime/events.d.ts +3 -0
  440. package/packages/happy2-server/dist/modules/realtime/events.d.ts.map +1 -1
  441. package/packages/happy2-server/dist/modules/realtime/events.js +37 -5
  442. package/packages/happy2-server/dist/modules/realtime/events.js.map +1 -1
  443. package/packages/happy2-server/dist/modules/realtime/local.test.js +2 -0
  444. package/packages/happy2-server/dist/modules/realtime/local.test.js.map +1 -1
  445. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.d.ts.map +1 -1
  446. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js +4 -2
  447. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js.map +1 -1
  448. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js +4 -1
  449. package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js.map +1 -1
  450. package/packages/happy2-server/dist/modules/sandbox/types.d.ts +1 -0
  451. package/packages/happy2-server/dist/modules/sandbox/types.d.ts.map +1 -1
  452. package/packages/happy2-server/dist/modules/schema.d.ts +8024 -5446
  453. package/packages/happy2-server/dist/modules/schema.d.ts.map +1 -1
  454. package/packages/happy2-server/dist/modules/schema.js +140 -0
  455. package/packages/happy2-server/dist/modules/schema.js.map +1 -1
  456. package/packages/happy2-server/dist/modules/sync/syncGetDifference.d.ts.map +1 -1
  457. package/packages/happy2-server/dist/modules/sync/syncGetDifference.js +2 -0
  458. package/packages/happy2-server/dist/modules/sync/syncGetDifference.js.map +1 -1
  459. package/packages/happy2-server/dist/modules/user/userAdministrationList.js +2 -2
  460. package/packages/happy2-server/dist/modules/user/userAdministrationList.js.map +1 -1
  461. package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.d.ts.map +1 -1
  462. package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js +49 -6
  463. package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js.map +1 -1
  464. package/packages/happy2-server/dist/modules/user/userCreateProfile.d.ts.map +1 -1
  465. package/packages/happy2-server/dist/modules/user/userCreateProfile.js +17 -2
  466. package/packages/happy2-server/dist/modules/user/userCreateProfile.js.map +1 -1
  467. package/packages/happy2-server/dist/routes/agents.d.ts.map +1 -1
  468. package/packages/happy2-server/dist/routes/agents.js +4 -2
  469. package/packages/happy2-server/dist/routes/agents.js.map +1 -1
  470. package/packages/happy2-server/dist/routes/auth.d.ts.map +1 -1
  471. package/packages/happy2-server/dist/routes/auth.js +12 -0
  472. package/packages/happy2-server/dist/routes/auth.js.map +1 -1
  473. package/packages/happy2-server/dist/routes/collaboration.d.ts.map +1 -1
  474. package/packages/happy2-server/dist/routes/collaboration.js +7 -0
  475. package/packages/happy2-server/dist/routes/collaboration.js.map +1 -1
  476. package/packages/happy2-server/dist/routes/files.d.ts.map +1 -1
  477. package/packages/happy2-server/dist/routes/files.js +2 -0
  478. package/packages/happy2-server/dist/routes/files.js.map +1 -1
  479. package/packages/happy2-server/dist/routes/permissions.d.ts +6 -0
  480. package/packages/happy2-server/dist/routes/permissions.d.ts.map +1 -0
  481. package/packages/happy2-server/dist/routes/permissions.js +207 -0
  482. package/packages/happy2-server/dist/routes/permissions.js.map +1 -0
  483. package/packages/happy2-server/dist/routes/pluginHost.d.ts +2 -1
  484. package/packages/happy2-server/dist/routes/pluginHost.d.ts.map +1 -1
  485. package/packages/happy2-server/dist/routes/pluginHost.js +356 -5
  486. package/packages/happy2-server/dist/routes/pluginHost.js.map +1 -1
  487. package/packages/happy2-server/dist/routes/plugins.d.ts.map +1 -1
  488. package/packages/happy2-server/dist/routes/plugins.js +375 -7
  489. package/packages/happy2-server/dist/routes/plugins.js.map +1 -1
  490. package/packages/happy2-server/dist/server.d.ts +4 -0
  491. package/packages/happy2-server/dist/server.d.ts.map +1 -1
  492. package/packages/happy2-server/dist/server.js +12 -7
  493. package/packages/happy2-server/dist/server.js.map +1 -1
  494. package/packages/happy2-server/dist/web/assets/index-Dn5SZu3y.js +39 -0
  495. package/packages/happy2-server/dist/web/assets/index-Dys3sWv8.css +2 -0
  496. package/packages/happy2-server/dist/web/index.html +2 -2
  497. package/packages/happy2-server/drizzle/0023_roles_and_permissions.sql +82 -0
  498. package/packages/happy2-server/drizzle/0024_session_bound_dev_tokens.sql +11 -0
  499. package/packages/happy2-server/drizzle/0025_plugin_skills.sql +8 -0
  500. package/packages/happy2-server/drizzle/0026_agent_turn_traces.sql +35 -0
  501. package/packages/happy2-server/drizzle/0027_chat_agent_effort.sql +9 -0
  502. package/packages/happy2-server/drizzle/0028_plugin_api_permissions.sql +1 -0
  503. package/packages/happy2-server/drizzle/0029_plugin_management_requests.sql +35 -0
  504. package/packages/happy2-server/drizzle/meta/_journal.json +49 -0
  505. package/packages/happy2-server/happy2.example.toml +6 -0
  506. package/packages/happy2-server/plugins/README.md +7 -1
  507. package/packages/happy2-server/plugins/chat-management/container/Dockerfile +6 -0
  508. package/packages/happy2-server/plugins/chat-management/plugin.json +17 -0
  509. package/packages/happy2-server/plugins/chat-management/plugin.png +0 -0
  510. package/packages/happy2-server/plugins/chat-management/server.mjs +280 -0
  511. package/packages/happy2-server/plugins/plugin-developer/container/Dockerfile +6 -0
  512. package/packages/happy2-server/plugins/plugin-developer/plugin.json +17 -0
  513. package/packages/happy2-server/plugins/plugin-developer/plugin.png +0 -0
  514. package/packages/happy2-server/plugins/plugin-developer/server.mjs +155 -0
  515. package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/SKILL.md +59 -0
  516. package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/references/host-api.md +63 -0
  517. package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/references/installing.md +86 -0
  518. package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/references/package-format.md +137 -0
  519. package/packages/happy2-server/dist/web/assets/index-9SGCQLg7.js +0 -46
  520. package/packages/happy2-server/dist/web/assets/index-DWXBQDJB.css +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy2",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "Happy (2) desktop web app and server bundle",
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,7 +71,7 @@
71
71
  "@libsql/client": "^0.17.4",
72
72
  "@modelcontextprotocol/sdk": "^1.29.0",
73
73
  "@paralleldrive/cuid2": "^3.3.0",
74
- "@slopus/rig": "^0.0.24",
74
+ "@slopus/rig": "^0.0.25",
75
75
  "drizzle-orm": "^0.45.2",
76
76
  "fastify": "^5.8.2",
77
77
  "jose": "^6.1.3",
@@ -1,23 +1,27 @@
1
1
  # Server plugins
2
2
 
3
3
  Happy (2) plugins package Agent Skills, a persistent container command, an MCP
4
- server, or any useful combination of those pieces. This first
5
- server-side implementation installs only packages bundled with the server. It
6
- already keeps catalog discovery, durable system plugins, immutable package/image
7
- snapshots, and independent runtime installations separate so a later remote
8
- catalog/download step can reuse the same boundaries.
4
+ server, or any useful combination of those pieces. Administrators can install a
5
+ built-in package, upload one ZIP, download one ZIP over HTTPS, or import a GitHub
6
+ repository. Catalog discovery, verified preparation, durable system plugins,
7
+ immutable package/image snapshots, writable installation data, and independent
8
+ runtime installations remain separate boundaries. Individual runtime
9
+ installations can be uninstalled without removing the reusable system-plugin
10
+ snapshot.
9
11
 
10
12
  Plugin management is system-wide and administrator-only. The first installation
11
- of a catalog package creates one durable system-plugin record and one immutable
13
+ of a source package creates one durable system-plugin record and one immutable
12
14
  package snapshot; later installations reuse that plugin identity and snapshot.
13
15
  Every installation has its own CUID2, variables, selected image, lifecycle, and
14
16
  dedicated container when it has a local runtime. Remote MCP configuration is
15
17
  persisted and health-checked independently per installation. Ready MCP
16
18
  installations expose their durably cached tools to Rig as external functions on
17
- every agent submission. Happy executes each durable call against the originating
18
- installation and resolves the result back into the paused Rig run. This feature
19
- does not yet inject installed skills, and it does not yet implement upgrade,
20
- uninstall, marketplace download, or OAuth flows.
19
+ every agent submission. Happy also reconciles the skills from ready
20
+ installations into the exact agent sandbox home before each turn. Happy executes
21
+ each durable MCP call against the originating installation and resolves the
22
+ result back into the paused Rig run. Upgrade, marketplace discovery, and OAuth
23
+ flows are not implemented; individual installations can be uninstalled. Remote
24
+ update checks report drift but deliberately do not replace the installed snapshot.
21
25
 
22
26
  MCP tools are discovered during each runtime activation and atomically replace
23
27
  that installation's SQLite cache before it becomes ready. Local discovery runs
@@ -44,12 +48,17 @@ to a ready installation.
44
48
 
45
49
  ## Package anatomy
46
50
 
47
- Each built-in package is a directory below `packages/happy2-server/plugins`:
51
+ Each package has this shape. Built-ins live below
52
+ `packages/happy2-server/plugins`; installed snapshots live below the configured
53
+ `plugins.directory`. A ZIP may contain this tree at its root or inside one
54
+ top-level folder:
48
55
 
49
56
  ```text
50
57
  example-plugin/
51
58
  ├── plugin.json
52
59
  ├── plugin.png
60
+ ├── data/ # server-owned; absent from source ZIPs
61
+ │ └── <installation-id>/ # persistent writable workspace
53
62
  ├── container/ # optional; used by bundled stdio runtimes
54
63
  │ └── Dockerfile
55
64
  └── skills/ # optional
@@ -75,6 +84,16 @@ symlinks, unsafe relative paths, duplicate names, oversized packages, malformed
75
84
  frontmatter, and unexpected manifest fields before the catalog becomes
76
85
  available.
77
86
 
87
+ Uploaded and downloaded ZIPs are capped at 50 MiB compressed. Extraction also
88
+ bounds entry count, file count, individual and total uncompressed sizes, and
89
+ actual DEFLATE output. It rejects ZIP64, encryption, unsupported compression,
90
+ links, path traversal, duplicate paths, local/central filename disagreement,
91
+ invalid checksums, and ambiguous generic archives. A generic uploaded or remote
92
+ ZIP must contain exactly one `plugin.json`. GitHub archives may instead contain
93
+ one root `plugin.json` or multiple `plugins/<name>/plugin.json` packages; when
94
+ there are multiple packages, preparation returns each verified candidate so the
95
+ administrator can choose one.
96
+
78
97
  `plugin.json` uses schema version 1:
79
98
 
80
99
  ```json
@@ -102,13 +121,15 @@ available.
102
121
  "dockerfile": "container/Dockerfile",
103
122
  "command": "/plugin/bin/indexer",
104
123
  "args": ["--watch"],
105
- "permissions": ["plugins:list"]
124
+ "permissions": ["plugins:list", "plugins:install", "plugins:uninstall"]
106
125
  }
107
126
  }
108
127
  ```
109
128
 
110
- `version` uses `x.y.z` SemVer syntax. `shortName` is the stable catalog/package
111
- link and must match the package directory; it is not an installation identity.
129
+ `version` uses `x.y.z` SemVer syntax. `shortName` is the stable package name and
130
+ must match a built-in package directory. External ZIPs are not required to make
131
+ their enclosing folder match; `shortName` still identifies the validated
132
+ package metadata and is not an installation identity.
112
133
  The durable system plugin and every installation receive separate CUID2 IDs.
113
134
  Variable keys are environment variable names. Every declared variable is
114
135
  required for each installation. Secret values are encrypted with AES-256-GCM
@@ -122,14 +143,37 @@ otherwise it is required. A command and stdio MCP run alongside each other in
122
143
  the same dedicated installation container. Container variables are supplied to
123
144
  each configured process, not persisted in the image or container definition.
124
145
 
125
- `container.permissions` is an exact allowlist of host API capabilities. The
126
- currently supported permission is `plugins:list`. Unknown and duplicate
127
- permissions are rejected when the package is loaded.
128
-
129
- The bundled `hello` package is the minimal skill-plus-MCP example. It declares no
130
- variables or MCP authentication, so an administrator can install it with an
131
- empty POST body; each call still creates a separate installation and bundled
132
- container.
146
+ `container.permissions` declares the exact host API capabilities a package may
147
+ request. Permissions are grouped for presentation by API section:
148
+ `channels:manage` is a mutating permission in `channels`, `chats:update` is a
149
+ mutating permission in `chats`, while `plugins:list` is read-only and
150
+ `plugins:install` and `plugins:uninstall` are mutating permissions in `plugins`.
151
+ `plugins:request-install` and `plugins:request-uninstall` are also mutating
152
+ permissions, but create chat-scoped human approvals instead of granting direct
153
+ install or uninstall authority. Unknown and duplicate permissions are rejected
154
+ when the package is loaded.
155
+ Unknown and duplicate declarations are rejected when the package is loaded.
156
+
157
+ Declarations are not grants. Each install request may include a `permissions`
158
+ array containing any subset of the manifest declaration; omitted permissions
159
+ default to an empty grant. Installation responses expose `grantedPermissions`,
160
+ while catalog permission metadata is returned in `apiPermissions` sections with
161
+ separate `readOnly` and `mutations` arrays. Administrators can replace the grant
162
+ later with `POST /v0/admin/pluginInstallations/:installationId/updatePermissions`.
163
+ Changing a grant invalidates the current runtime token and restarts the local
164
+ container with a new token, so stale tokens cannot retain revoked access.
165
+
166
+ The isolated plugin host listener provides `GET /plugins`, `POST /plugins/install`,
167
+ `POST /plugins/uninstall`, `POST /channels/updateMembers`, and
168
+ `POST /channels/createChannel`, alongside the chat-update route. Each route
169
+ requires its matching capability. Plugin-triggered installs must also choose a
170
+ subset of the target package's declared permissions.
171
+
172
+ The bundled `hello` package is the minimal skill-plus-MCP example. The bundled
173
+ `plugin-developer` package contributes a comprehensive Happy2 plugin-development
174
+ skill and MCP tools for listing installations and requesting linked install or
175
+ uninstall approval from the current chat. Neither format is a Conductor or
176
+ Codex plugin format.
133
177
 
134
178
  ## Stdio MCP with a bundled container
135
179
 
@@ -151,7 +195,8 @@ container.
151
195
  The Dockerfile path is package-relative. Creating the durable system plugin
152
196
  copies the entire package once to `plugins.directory` before writing its
153
197
  database record. Each installation lifecycle builds or resolves that exact
154
- snapshot with the selected local Docker or Podman provider, using a
198
+ snapshot, excluding the server-owned `data/` subtree from the build context,
199
+ with the selected local Docker or Podman provider, using a
155
200
  content-addressed `happy2-plugin:<sha256>` tag. It then creates a dedicated,
156
201
  read-only container named from the installation CUID2, with `init`, all Linux capabilities
157
202
  dropped, privilege escalation disabled, bounded shared memory, and ephemeral
@@ -164,8 +209,13 @@ bundled Dockerfile is responsible for copying or installing its MCP executable
164
209
  and dependencies into the image. The MCP command itself must use newline-
165
210
  delimited JSON-RPC on stdin/stdout and must not write non-protocol output to
166
211
  stdout.
167
- The fixed `HOME`, `TMPDIR`, and working directory are `/tmp`, so tools that
168
- need a cache can still run without making the image root writable.
212
+ The fixed `HOME` and `TMPDIR` are `/tmp`. The server creates
213
+ `<plugins.directory>/<plugin-id>/data/<installation-id>` with private
214
+ permissions, bind-mounts it read-write at `/workspace`, and uses `/workspace` as
215
+ the container working directory. This is the plugin's persistent filesystem;
216
+ the image root remains read-only. Different installations never share a data
217
+ directory. Uninstalling the system plugin removes every linked installation,
218
+ container, immutable package asset, and data subtree.
169
219
 
170
220
  Each installation container stays alive as that installation's plugin runtime.
171
221
  The optional persistent command is started detached once for each container
@@ -232,6 +282,39 @@ custom static headers described above. Production remote requests are capped at
232
282
  1,000,000 bytes and responses at 256,000 bytes, matching the bounded webhook
233
283
  transport used for SSRF-safe address pinning.
234
284
 
285
+ ## External package preparation
286
+
287
+ External installation is a two-step, administrator-only flow. Preparation does
288
+ all network and archive work before durable installation, and streams progress
289
+ as SSE:
290
+
291
+ - `POST /v0/admin/pluginPackages/preparePlugin` accepts either multipart form
292
+ data with one `plugin` ZIP file, or JSON containing
293
+ `{"source":{"kind":"zip_url"|"github","url":"https://..."}}`.
294
+ - The server downloads remote archives through its public-HTTPS SSRF policy,
295
+ revalidates and pins DNS at every redirect, verifies package structure and
296
+ metadata, and emits `progress` events.
297
+ - It emits `prepared` for one candidate or `selection_required` for multiple
298
+ GitHub candidates. Each candidate includes a 15-minute, administrator-bound,
299
+ one-use `preparedToken`, the immutable digest, source identity, version,
300
+ display name, description, skill descriptions, variable definitions, MCP
301
+ mode, and image metadata.
302
+ - `POST /v0/admin/pluginPackages/installPlugin` accepts the selected
303
+ `preparedToken`, `variables`, and optional `containerImageId`. It returns HTTP
304
+ 202 after consuming the token and making the installation durable.
305
+
306
+ A GitHub URL may identify a repository or one `tree/<ref>` URL. The root
307
+ `plugin.json` wins when present; otherwise the server discovers direct
308
+ `plugins/<name>` children. ZIP URLs are stored as their normalized URL. Uploaded
309
+ packages have content-addressed source identities and cannot be checked for a
310
+ remote update.
311
+
312
+ `POST /v0/admin/systemPlugins/:pluginId/checkForUpdate` is also an SSE endpoint.
313
+ It downloads and verifies the same selected remote path, emits progress, then a
314
+ `checked` event containing installed and remote versions/digests plus
315
+ `updateAvailable`. Built-ins are compared with the current catalog. The check is
316
+ read-only; a changed package requires an explicit future upgrade flow.
317
+
235
318
  ## Installation and lifecycle
236
319
 
237
320
  `POST /v0/admin/plugins/:shortName/installPlugin` accepts:
@@ -249,6 +332,15 @@ transport used for SSRF-safe address pinning.
249
332
  The request body may be omitted when the manifest declares no variables and
250
333
  does not require a selected container image.
251
334
 
335
+ `POST /v0/admin/plugins/installPlugin` installs an external package. Send either
336
+ multipart form data with an `archive` ZIP part plus optional JSON `variables`
337
+ and `containerImageId` fields, or JSON with `sourceUrl`, `variables`, and
338
+ `containerImageId`. Link downloads allow public HTTPS only, revalidate every
339
+ redirect and resolved address, and are capped at three redirects, 20 seconds,
340
+ and 20 MiB. ZIP extraction rejects traversal, absolute paths, symlinks,
341
+ encryption, duplicate entries, more than 1,000 entries, files above 5 MiB, and
342
+ uncompressed package data above 20 MiB.
343
+
252
344
  `containerImageId` is required for every local container manifest without a
253
345
  bundled Dockerfile, and it is rejected in every other case. Unknown, missing, empty, or
254
346
  oversized variable values are rejected. The endpoint returns HTTP 202 after the
@@ -256,7 +348,56 @@ durable system plugin (created once), immutable package/image snapshot, new
256
348
  installation, variables, audit entry, initial state, and sync event are durable.
257
349
  Calling it again for the same `shortName` creates another installation with a
258
350
  new CUID2 and its own parameters and runtime. Container preparation continues
259
- asynchronously.
351
+ asynchronously. `shortName` is globally unique across system plugins: a package
352
+ from another source that reuses an existing name is rejected with HTTP 409. An
353
+ agent request with such a collision can be staged for review, but approval
354
+ resolves it to `failed` without replacing the existing plugin.
355
+
356
+ `POST /v0/admin/pluginInstallations/:installationId/uninstallPlugin` removes
357
+ one exact installation. Happy stops and removes that installation's local
358
+ runtime, deletes its variables and tool cache through cascading durable state,
359
+ and removes the system plugin and immutable package snapshot only when no other
360
+ installation references it.
361
+
362
+ ### Agent-requested approval
363
+
364
+ A local plugin container may ask Happy to install a public HTTPS ZIP or
365
+ uninstall an exact installation while its MCP tool is executing for an agent
366
+ turn. The normal long-lived incarnation token cannot make such a request. For
367
+ that MCP call only, Happy injects a five-minute capability token bound to the
368
+ originating Rig session, call ID, human actor, agent, chat, requester
369
+ installation, and live container incarnation.
370
+
371
+ The host API validates and stages the exact package before creating a durable
372
+ chat request. The request stores the package digest, source, display name,
373
+ description, icon, optional reason, and a preallocated installation ID. It does
374
+ not install synchronously and does not use MCP elicitation as authority. Happy's
375
+ own administrator approval is the authority and audit boundary. Agent-requested
376
+ installs reject packages requiring variables or an administrator-selected
377
+ container image, because those values must not be collected through chat.
378
+
379
+ Chat members can list requests and read the staged icon while a request is
380
+ `pending` or `processing`. A server administrator who is also a chat member can
381
+ approve or deny them:
382
+
383
+ - `GET /v0/chats/:chatId/pluginManagementRequests`
384
+ - `GET /v0/chats/:chatId/pluginManagementRequests/:requestId/image`
385
+ - `POST .../:requestId/approvePluginInstall`
386
+ - `POST .../:requestId/denyPluginInstall`
387
+ - `POST .../:requestId/approvePluginUninstall`
388
+ - `POST .../:requestId/denyPluginUninstall`
389
+
390
+ Request creation and every terminal resolution advance the chat's durable
391
+ point, append audit/sync evidence, and publish server and chat realtime hints.
392
+ Approval claims publish their intermediate `processing` state as well. If the
393
+ complete server stops during a claimed operation, startup reconciles the request
394
+ to `approved` only when the deterministic durable installation outcome exists;
395
+ otherwise it records a terminal failure instead of leaving the card stuck.
396
+ Every terminal path removes the staged package, and startup retries that cleanup
397
+ for requests resolved immediately before a process stopped. Terminal projections
398
+ therefore omit `imageUrl`; the UI must reconcile these durable requests and
399
+ render their name, description, optional image, source, reason, status, and
400
+ action controls.
260
401
 
261
402
  If the catalog later advertises an update, additional installations remain
262
403
  pinned to the existing system plugin's immutable manifest and package until an
@@ -264,6 +405,12 @@ explicit upgrade action exists. Catalog reads therefore project the stored
264
405
  variable and MCP requirements for the install form while retaining the newer
265
406
  catalog version and `updateAvailable` indicator.
266
407
 
408
+ `POST /v0/admin/systemPlugins/:pluginId/uninstallPlugin` atomically removes the
409
+ system plugin, all linked installations and secrets, and publishes audit/sync
410
+ evidence. Runtime cleanup then stops linked containers and removes the entire
411
+ stored package directory, including images, descriptors, skills, and every
412
+ installation's persistent `data` directory.
413
+
267
414
  An installation has one of these durable health states:
268
415
 
269
416
  - `preparing`: copying/reconciling package and image/container state.
@@ -305,6 +452,10 @@ Remote endpoints are rechecked.
305
452
  - `POST /v0/admin/plugins/:shortName/installPlugin` performs the durable install
306
453
  and queues lifecycle work. It may be called any number of times; each call
307
454
  creates a distinct installation linked to the same system plugin.
455
+ - `POST /v0/admin/plugins/installPlugin` installs a validated ZIP upload or
456
+ public HTTPS ZIP link.
457
+ - `POST /v0/admin/pluginInstallations/:installationId/uninstallPlugin` removes
458
+ one installation and removes its system plugin only when it was the last one.
308
459
  - `GET|POST /v0/pluginInstallations/:installationId/mcp` is the authenticated
309
460
  Streamable HTTP bridge for one ready local stdio installation. It follows MCP
310
461
  session semantics via `Mcp-Session-Id`. Happy’s existing bearer session is
@@ -318,6 +469,26 @@ Remote endpoints are rechecked.
318
469
  listener. A
319
470
  container may call it only when its manifest grants `plugins:list` and it
320
471
  presents the incarnation token supplied as `HAPPY2_PLUGIN_API_TOKEN`.
472
+ - `POST /chats/updateChat` on that same listener changes the current chat's
473
+ `title` and/or `description`. It requires the installation runtime bearer
474
+ token, the `chats:update` manifest permission, and the current call's chat
475
+ capability in `X-Happy2-Chat-Token`. The endpoint deliberately accepts no
476
+ chat ID: the signed capability selects the chat, so tool arguments cannot
477
+ redirect the update to another conversation.
478
+ - `POST /plugin-install-requests` and
479
+ `POST /plugin-uninstall-requests` live only on the dedicated plugin host
480
+ listener. A container must present `HAPPY2_PLUGIN_API_TOKEN` and declare the
481
+ corresponding host permission. The two mutation-request endpoints also
482
+ require an active contextual agent-call token.
483
+ - `POST /channels/updateMembers` adds or removes signed user capabilities from
484
+ the current chat. It requires `channels:manage`, rejects direct messages, and
485
+ applies the triggering user's ordinary channel-manager authorization.
486
+ - `POST /channels/createChannel` creates a private channel owned by the
487
+ triggering user, adds signed user capabilities as initial members, and may
488
+ post either a people-only opening message or an agent-audience prompt that
489
+ starts the calling agent. It also requires `channels:manage` and accepts an
490
+ optional `idempotencyKey` so a retried local request replays the same channel
491
+ and opening message instead of creating duplicates.
321
492
 
322
493
  Container processes receive `HAPPY2_PLUGIN_API_URL` and
323
494
  `HAPPY2_PLUGIN_API_TOKEN`. The URL is always
@@ -331,9 +502,11 @@ expose the host to an untrusted LAN should firewall
331
502
  `plugins.host_api_port`; it is a container capability endpoint, not a public
332
503
  service.
333
504
 
334
- The token is an RS256 capability containing the installation ID, a random CUID2
335
- container-incarnation ID, and the exact manifest permissions. Token bytes are
336
- never stored. The incarnation ID is stored in `plugin_installations` and also
505
+ The ordinary token is an RS256 capability containing the installation ID, a
506
+ random CUID2 container-incarnation ID, and the installation's exact granted
507
+ permissions.
508
+ Token bytes are never stored. The incarnation ID is stored in
509
+ `plugin_installations` and also
337
510
  attached to the OCI container as `dev.happy2.plugin-instance`. On each request,
338
511
  Happy verifies the signature, matches the incarnation against the ready database
339
512
  row, and confirms that the correspondingly labelled container is running. A
@@ -344,10 +517,63 @@ The token intentionally has no time expiration: its lifetime is exactly the
344
517
  database-and-OCI incarnation lifetime, allowing a command to survive arbitrarily
345
518
  many server restarts without persisting or rotating token bytes. Killing,
346
519
  replacing, failing, or removing that incarnation immediately makes the token
347
- unauthorized.
520
+ unauthorized. During one agent MCP call, Happy substitutes the bounded
521
+ contextual token described above; it expires after five minutes and cannot be
522
+ used outside that live container incarnation or after the exact durable external
523
+ tool call stops being in progress.
348
524
  The capability is not a user session and the dedicated listener exposes no
349
525
  ordinary `/v0` APIs.
350
526
 
527
+ When Happy asks an installed MCP tool to run for an agent, it adds the following
528
+ request metadata:
529
+
530
+ ```json
531
+ {
532
+ "_meta": {
533
+ "happy2/chat": {
534
+ "id": "current-chat-cuid2",
535
+ "token": "signed-chat-capability-jwt",
536
+ "triggeredByUserId": "sender-cuid2"
537
+ },
538
+ "happy2/users": [
539
+ {
540
+ "id": "sender-cuid2",
541
+ "username": "ada",
542
+ "firstName": "Ada",
543
+ "kind": "human",
544
+ "triggeredTurn": true,
545
+ "token": "signed-user-capability-jwt"
546
+ },
547
+ {
548
+ "id": "mentioned-user-cuid2",
549
+ "username": "grace",
550
+ "firstName": "Grace",
551
+ "kind": "human",
552
+ "triggeredTurn": false,
553
+ "token": "signed-user-capability-jwt"
554
+ }
555
+ ]
556
+ }
557
+ }
558
+ ```
559
+
560
+ The user list contains the message sender that triggered the exact agent turn,
561
+ followed by every concrete `@username` mention recorded on that message, with
562
+ duplicates removed. Special mentions such as `@here` do not create user
563
+ capabilities. Each RS256 user token has no expiration and is bound to the user
564
+ and the receiving plugin installation. A plugin may persist it; Happy does not
565
+ require or provide persistence by default. Host actions verify that the signed
566
+ user and the supplied user ID match.
567
+
568
+ The RS256 chat token also has no expiration. It is bound to that chat, the
569
+ triggering actor, the executing agent, and the specific plugin installation
570
+ receiving the call. Plugin host chat actions additionally require the running
571
+ installation's ordinary runtime token; presenting a chat or user token through
572
+ another installation is rejected. Uninstalling or replacing an installation
573
+ therefore prevents its old capabilities from being used by a new installation.
574
+ Chat IDs remain immutable and are supplied in metadata and API results for
575
+ correlation, never accepted as mutation input.
576
+
351
577
  The bridge allows at most 128 simultaneous sessions server-wide and 16 per
352
578
  authenticated user. Idle sessions close after 15 minutes; inbound requests and
353
579
  outbound server messages both renew that lifetime. A session is bound to the
@@ -366,28 +592,44 @@ persist the filesystem storage key, content type, byte size, width, height,
366
592
  thumbhash, and SHA-256 checksum.
367
593
 
368
594
  `plugin_installations` records a separate CUID2 and foreign key to `plugins`,
369
- plus that instance's container/image choice, lifecycle state, error detail,
595
+ plus that instance's container/image choice, granted API permissions, lifecycle state, error detail,
370
596
  installer, tool-sync timestamp, and timestamps. `plugin_mcp_tools` contains the
371
597
  last complete MCP discovery keyed by installation and tool name.
372
598
  `plugin_installation_variables` records each declared
373
599
  value for one installation; secret rows contain authenticated ciphertext rather
374
600
  than plaintext. No installation uses `shortName` as identity.
375
601
 
602
+ `plugin_management_requests` records the chat-scoped install/uninstall action,
603
+ requesting agent call, validated publisher metadata, exact staged package
604
+ coordinates, resolution, audit-related sync sequence, and deterministic target
605
+ or installation ID. Actionable staged packages live beneath the private plugin
606
+ package store and are revalidated by path and digest before image reads or
607
+ approval. They are reclaimed on approval, denial, failure, and restart cleanup;
608
+ terminal history retains metadata and audit evidence rather than package bytes.
609
+
376
610
  The built-in catalog and durable system plugin are deliberately independent.
377
- Persisted rows use `source_kind = 'builtin'` as their built-in marker. During
611
+ Persisted rows use `source_kind = 'builtin'`, `archive`, or `link`. During
378
612
  startup, the server compares those rows with the current built-in catalog. If a
379
613
  bundle was removed from the server, its installations, encrypted variables,
380
614
  system-plugin row, private package/image snapshot, and any named local containers
381
- are removed before the remaining runtimes start. Remotely sourced plugins will
382
- not participate in this catalog-pruning rule.
615
+ are removed before the remaining runtimes start. Archive- and link-sourced
616
+ plugins do not participate in this catalog-pruning rule.
617
+
618
+ Before each agent turn, skills from ready installations are integrity-checked
619
+ against their immutable package digest and reconciled under
620
+ `.agents/skills/happy2-plugins/<pluginId>-<skillName>` in that exact agent home.
621
+ Rig recursively discovers skills below `.agents/skills` on every agent loop, so
622
+ the published frontmatter name and immutable package files stay unchanged.
623
+ Happy owns only the `happy2-plugins` subtree; user and project skills elsewhere
624
+ are left untouched. Uninstalling the final ready installation removes that
625
+ plugin's skills on the next turn.
383
626
 
384
627
  When the catalog contains a different digest for a persisted plugin's
385
628
  `shortName`, reads set `updateAvailable: true`; they do not mutate or restart its
386
- installations. A future upgrade action can download/validate a remote package
387
- into the same package abstraction, stage a new immutable package/image snapshot,
388
- and atomically replace the system plugin version before reconciling all linked
389
- installations. Until that action exists, upgrades are advertised only and the
390
- old snapshot continues to run.
629
+ installations. A future upgrade action can validate a replacement package, stage
630
+ a new immutable package/image snapshot, and atomically replace the system plugin
631
+ version before reconciling all linked installations. Until that action exists,
632
+ upgrades are advertised only and the old snapshot continues to run.
391
633
 
392
634
  Configured installed-package storage:
393
635
 
@@ -373,13 +373,14 @@ authenticated Unix socket. Configure `[agents]` with the socket, token, Rig
373
373
  executable, and server-owned `default_cwd`; clients cannot select filesystem
374
374
  paths.
375
375
 
376
- An agent's reasoning effort is durable profile state. Any authenticated user can
377
- read its current value and the effort levels supported by all of its active Rig
378
- sessions from `GET /v0/agents/:agentUserId/effort`; only the agent's creator or
379
- a server administrator can change it with
380
- `POST /v0/agents/:agentUserId/changeEffort`. A change is applied to every
381
- existing private Rig session, inherited by sessions created later, reconciled
382
- again after server restart, and published as a normal `users` sync hint.
376
+ An agent's profile effort is the default for new chat sessions. Each bound chat
377
+ stores its own durable override, exposed to active chat members through
378
+ `GET /v0/chats/:chatId/agents/:agentUserId/effort` and
379
+ `POST /v0/chats/:chatId/agents/:agentUserId/changeEffort`. Changing one chat
380
+ updates only that chat's Rig session, survives restart, and appends an
381
+ `agent_effort_changed` service message to the same chat. Choosing the already
382
+ effective value is a no-op and does not add duplicate history. A newly bound
383
+ chat inherits the agent profile default rather than another chat's override.
383
384
 
384
385
  The server seeds immutable `Daycare Minimal` and `Daycare Full` definitions from
385
386
  the pinned upstream Daycare runtime Dockerfiles. Both use Ubuntu 24.04; Full adds
@@ -15,6 +15,7 @@ export { userCreateProfile } from "./modules/user/userCreateProfile.js";
15
15
  export { syncInitialize } from "./modules/sync/syncInitialize.js";
16
16
  export { AesGcmSecretProtector } from "./modules/integrations/secrets.js";
17
17
  export { NodeWebhookTransport } from "./modules/integrations/transport.js";
18
+ export { NodePluginPackageLinkDownloader, type PluginPackageLinkDownload, type PluginPackageLinkDownloader, } from "./modules/plugin/packageLinkDownloader.js";
18
19
  export * from "./modules/integrations/types.js";
19
20
  export type { ResolvedWebhookUrl, WebhookUrlPolicy } from "./modules/integrations/ssrf.js";
20
21
  export * from "./modules/operations/types.js";
@@ -29,6 +30,7 @@ export * from "./modules/plugin/index.js";
29
30
  export { AesGcmPluginSecretProtector } from "./modules/plugin/secrets.js";
30
31
  export type { PluginSecretProtector } from "./modules/plugin/secrets.js";
31
32
  export { PluginPackageStore } from "./modules/plugin/packageStore.js";
32
- export { SandboxPluginMcpRuntime, type PluginLocalOpenInput, type PluginLocalPrepareInput, type PluginMcpRuntime, } from "./modules/plugin/runtime.js";
33
+ export { NodePluginArchiveDownloader, type PluginArchiveDownload, type PluginArchiveDownloader, type PluginArchiveDownloadOptions, } from "./modules/plugin/source.js";
34
+ export { SandboxPluginMcpRuntime, type PluginLocalOpenInput, type PluginLocalPrepareInput, type PluginLocalCommandHandle, type PluginMcpRuntime, } from "./modules/plugin/runtime.js";
33
35
  export { buildServer, pluginHostApiFor } from "./server.js";
34
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,YAAY,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5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BAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACH,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,GACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
@@ -12,6 +12,7 @@ export { userCreateProfile } from "./modules/user/userCreateProfile.js";
12
12
  export { syncInitialize } from "./modules/sync/syncInitialize.js";
13
13
  export { AesGcmSecretProtector } from "./modules/integrations/secrets.js";
14
14
  export { NodeWebhookTransport } from "./modules/integrations/transport.js";
15
+ export { NodePluginPackageLinkDownloader, } from "./modules/plugin/packageLinkDownloader.js";
15
16
  export * from "./modules/integrations/types.js";
16
17
  export * from "./modules/operations/types.js";
17
18
  export { FileStorage } from "./modules/files/storage.js";
@@ -24,6 +25,7 @@ export * from "./modules/workspace/index.js";
24
25
  export * from "./modules/plugin/index.js";
25
26
  export { AesGcmPluginSecretProtector } from "./modules/plugin/secrets.js";
26
27
  export { PluginPackageStore } from "./modules/plugin/packageStore.js";
28
+ export { NodePluginArchiveDownloader, } from "./modules/plugin/source.js";
27
29
  export { SandboxPluginMcpRuntime, } from "./modules/plugin/runtime.js";
28
30
  export { buildServer, pluginHostApiFor } from "./server.js";
29
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAA6B,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAyB,MAAM,iBAAiB,CAAC;AAI/E,OAAO,EAAE,cAAc,EAAwB,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,cAAc,iCAAiC,CAAC;AAEhD,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,WAAW,EAA8B,MAAM,4BAA4B,CAAC;AACrF,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1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AAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACH,2BAA2B,GAI9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,GAK1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
@@ -9,6 +9,7 @@ export declare function agentChatBind(executor: DrizzleExecutor, input: {
9
9
  chatId: string;
10
10
  containerName: string;
11
11
  cwd: string;
12
+ effort: string;
12
13
  imageId: string;
13
14
  sessionId: string;
14
15
  }): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"agentChatBind.d.ts","sourceRoot":"","sources":["../../../sources/modules/agent/agentChatBind.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,eAAe,CAAC;AAMtE;;;GAGG;AACH,wBAAsB,aAAa,CAC/B,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACrB,GACF,OAAO,CAAC;IACP,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC,CA8CD"}
1
+ {"version":3,"file":"agentChatBind.d.ts","sourceRoot":"","sources":["../../../sources/modules/agent/agentChatBind.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,eAAe,CAAC;AAMtE;;;GAGG;AACH,wBAAsB,aAAa,CAC/B,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACrB,GACF,OAAO,CAAC;IACP,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC,CAiDD"}
@@ -21,6 +21,7 @@ export async function agentChatBind(executor, input) {
21
21
  sessionId: input.sessionId,
22
22
  containerName: input.containerName,
23
23
  cwd: input.cwd,
24
+ effort: input.effort,
24
25
  })
25
26
  .onConflictDoNothing();
26
27
  const [binding] = await tx
@@ -28,6 +29,7 @@ export async function agentChatBind(executor, input) {
28
29
  agentUserId: agentRigBindings.userId,
29
30
  containerName: agentRigBindings.containerName,
30
31
  cwd: agentRigBindings.cwd,
32
+ effort: agentRigBindings.effort,
31
33
  imageId: agentRigBindings.imageId,
32
34
  sessionId: agentRigBindings.sessionId,
33
35
  })
@@ -38,6 +40,8 @@ export async function agentChatBind(executor, input) {
38
40
  throw new Error("Agent chat binding was not created");
39
41
  if (binding.imageId !== input.imageId)
40
42
  throw new Error("Agent chat binding uses a different image");
43
+ if (!binding.effort)
44
+ throw new Error("Agent chat binding effort is missing");
41
45
  return {
42
46
  containerName: binding.containerName,
43
47
  cwd: binding.cwd,
@@ -1 +1 @@
1
- {"version":3,"file":"agentChatBind.js","sourceRoot":"","sources":["../../../sources/modules/agent/agentChatBind.ts"],"names":[],"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O;YACjC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;QACjE,IAAI,CAAC,OAAO,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC7E,OAAO;YACH,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,SAAS,EAAE,OAAO,CAAC,SAAS;SAC/B,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"agentChatGetContext.d.ts","sourceRoot":"","sources":["../../../sources/modules/agent/agentChatGetContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD;;;GAGG;AACH,wBAAsB,mBAAmB,CACrC,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,oBAAoB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAoGvC"}
1
+ {"version":3,"file":"agentChatGetContext.d.ts","sourceRoot":"","sources":["../../../sources/modules/agent/agentChatGetContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD;;;GAGG;AACH,wBAAsB,mBAAmB,CACrC,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,oBAAoB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAsGvC"}