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.
- package/package.json +2 -2
- package/packages/happy2-server/PLUGINS.md +281 -39
- package/packages/happy2-server/README.md +8 -7
- package/packages/happy2-server/dist/index.d.ts +3 -1
- package/packages/happy2-server/dist/index.d.ts.map +1 -1
- package/packages/happy2-server/dist/index.js +2 -0
- package/packages/happy2-server/dist/index.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts +1 -0
- package/packages/happy2-server/dist/modules/agent/agentChatBind.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentChatBind.js +4 -0
- package/packages/happy2-server/dist/modules/agent/agentChatBind.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentChatGetContext.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js +3 -1
- package/packages/happy2-server/dist/modules/agent/agentChatGetContext.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentCreate.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentCreate.js +1 -0
- package/packages/happy2-server/dist/modules/agent/agentCreate.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts +4 -2
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js +8 -8
- package/packages/happy2-server/dist/modules/agent/agentEffortBindingList.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts +3 -3
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js +4 -4
- package/packages/happy2-server/dist/modules/agent/agentEffortGetContext.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts +4 -4
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js +57 -41
- package/packages/happy2-server/dist/modules/agent/agentEffortUpdate.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentImageCommitChange.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageCreate.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageCreate.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentImageCreate.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageGet.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageGet.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentImageGet.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts +2 -1
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js +11 -4
- package/packages/happy2-server/dist/modules/agent/agentImageGetChangeContext.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts +2 -2
- package/packages/happy2-server/dist/modules/agent/agentImageList.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageList.js +8 -4
- package/packages/happy2-server/dist/modules/agent/agentImageList.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentImageRequestBuild.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentImageSetDefault.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentDelete.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentSecretAssignmentList.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToAgent.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentSecretAttachToChannel.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts +4 -3
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js +5 -5
- package/packages/happy2-server/dist/modules/agent/agentSecretAuthorizeManagement.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromAgent.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.d.ts +2 -2
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js +4 -4
- package/packages/happy2-server/dist/modules/agent/agentSecretDetachFromChannel.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.d.ts +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js +3 -3
- package/packages/happy2-server/dist/modules/agent/agentSecretRecordRegistration.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.d.ts +4 -0
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.js +15 -0
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.js +17 -0
- package/packages/happy2-server/dist/modules/agent/agentSkillHomeGet.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.d.ts +23 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.js +70 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnGetPluginContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts +4 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js +207 -9
- package/packages/happy2-server/dist/modules/agent/agentTurnStreamReply.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.d.ts +8 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.js +86 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.d.ts +19 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.js +87 -0
- package/packages/happy2-server/dist/modules/agent/agentTurnTraceStart.js.map +1 -0
- package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts +2 -1
- package/packages/happy2-server/dist/modules/agent/impl/agentChatContext.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts +4 -1
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContext.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts +3 -3
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js +26 -40
- package/packages/happy2-server/dist/modules/agent/impl/agentEffortContextDb.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js +63 -2
- package/packages/happy2-server/dist/modules/agent/impl/finishAgentTurn.js.map +1 -1
- package/packages/happy2-server/dist/modules/agent/types.d.ts +53 -0
- package/packages/happy2-server/dist/modules/agent/types.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agents/daemon.d.ts +31 -2
- package/packages/happy2-server/dist/modules/agents/daemon.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agents/daemon.js +12 -2
- package/packages/happy2-server/dist/modules/agents/daemon.js.map +1 -1
- package/packages/happy2-server/dist/modules/agents/service.d.ts +11 -6
- package/packages/happy2-server/dist/modules/agents/service.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/agents/service.js +498 -50
- package/packages/happy2-server/dist/modules/agents/service.js.map +1 -1
- package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.d.ts +12 -0
- package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.js +27 -0
- package/packages/happy2-server/dist/modules/auth/developmentTokenCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.d.ts +8 -0
- package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.js +22 -0
- package/packages/happy2-server/dist/modules/auth/developmentTokenFindActive.js.map +1 -0
- package/packages/happy2-server/dist/modules/auth/methods.d.ts +1 -0
- package/packages/happy2-server/dist/modules/auth/methods.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/auth/methods.js +10 -6
- package/packages/happy2-server/dist/modules/auth/methods.js.map +1 -1
- package/packages/happy2-server/dist/modules/auth/service.d.ts +2 -0
- package/packages/happy2-server/dist/modules/auth/service.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/auth/service.js +26 -0
- package/packages/happy2-server/dist/modules/auth/service.js.map +1 -1
- package/packages/happy2-server/dist/modules/auth/tokens.d.ts +21 -0
- package/packages/happy2-server/dist/modules/auth/tokens.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/auth/tokens.js +97 -3
- package/packages/happy2-server/dist/modules/auth/tokens.js.map +1 -1
- package/packages/happy2-server/dist/modules/auth/tokens.test.js +77 -0
- package/packages/happy2-server/dist/modules/auth/tokens.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.d.ts +17 -0
- package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.js +98 -0
- package/packages/happy2-server/dist/modules/chat/asAgentTurnTrace.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/asServiceMessage.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/chat/asServiceMessage.js +13 -5
- package/packages/happy2-server/dist/modules/chat/asServiceMessage.js.map +1 -1
- package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.d.ts +19 -0
- package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.js +87 -0
- package/packages/happy2-server/dist/modules/chat/channelCreateWithMembers.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.d.ts +15 -0
- package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.js +38 -0
- package/packages/happy2-server/dist/modules/chat/channelMembersUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts +1 -1
- package/packages/happy2-server/dist/modules/chat/chatAppendAudit.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.d.ts +20 -0
- package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.js +38 -0
- package/packages/happy2-server/dist/modules/chat/chatUpdateMetadata.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/types.d.ts +6 -0
- package/packages/happy2-server/dist/modules/chat/types.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/chat/types.js.map +1 -1
- package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.d.ts +7 -0
- package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.js +19 -0
- package/packages/happy2-server/dist/modules/chat/userRequireActiveHuman.js.map +1 -0
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts +2 -2
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js +8 -5
- package/packages/happy2-server/dist/modules/chat/userRequireServerAdmin.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/defaults.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/config/defaults.js +1 -0
- package/packages/happy2-server/dist/modules/config/defaults.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/defaults.test.js +1 -0
- package/packages/happy2-server/dist/modules/config/defaults.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/loader.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/config/loader.js +4 -0
- package/packages/happy2-server/dist/modules/config/loader.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/loader.test.js +12 -0
- package/packages/happy2-server/dist/modules/config/loader.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/config/type.d.ts +3 -0
- package/packages/happy2-server/dist/modules/config/type.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/message/messageGetProjection.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/message/messageGetProjection.js +28 -0
- package/packages/happy2-server/dist/modules/message/messageGetProjection.js.map +1 -1
- package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.d.ts +4 -0
- package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.js +39 -0
- package/packages/happy2-server/dist/modules/permission/impl/permissionEffectiveDb.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.d.ts +10 -0
- package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.js +31 -0
- package/packages/happy2-server/dist/modules/permission/impl/permissionMutationRecord.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/permissionGetEffective.d.ts +8 -0
- package/packages/happy2-server/dist/modules/permission/permissionGetEffective.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/permissionGetEffective.js +13 -0
- package/packages/happy2-server/dist/modules/permission/permissionGetEffective.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleCreate.d.ts +16 -0
- package/packages/happy2-server/dist/modules/permission/roleCreate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleCreate.js +70 -0
- package/packages/happy2-server/dist/modules/permission/roleCreate.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleDelete.d.ts +11 -0
- package/packages/happy2-server/dist/modules/permission/roleDelete.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleDelete.js +41 -0
- package/packages/happy2-server/dist/modules/permission/roleDelete.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleList.d.ts +8 -0
- package/packages/happy2-server/dist/modules/permission/roleList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleList.js +36 -0
- package/packages/happy2-server/dist/modules/permission/roleList.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleUpdate.d.ts +14 -0
- package/packages/happy2-server/dist/modules/permission/roleUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/roleUpdate.js +78 -0
- package/packages/happy2-server/dist/modules/permission/roleUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/types.d.ts +24 -0
- package/packages/happy2-server/dist/modules/permission/types.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/types.js +10 -0
- package/packages/happy2-server/dist/modules/permission/types.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionGet.d.ts +16 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionGet.js +33 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.d.ts +12 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.js +44 -0
- package/packages/happy2-server/dist/modules/permission/userPermissionUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.d.ts +8 -0
- package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.js +12 -0
- package/packages/happy2-server/dist/modules/permission/userRequireAnyPermission.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRequirePermission.d.ts +8 -0
- package/packages/happy2-server/dist/modules/permission/userRequirePermission.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRequirePermission.js +12 -0
- package/packages/happy2-server/dist/modules/permission/userRequirePermission.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRoleAssign.d.ts +12 -0
- package/packages/happy2-server/dist/modules/permission/userRoleAssign.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRoleAssign.js +46 -0
- package/packages/happy2-server/dist/modules/permission/userRoleAssign.js.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRoleUnassign.d.ts +12 -0
- package/packages/happy2-server/dist/modules/permission/userRoleUnassign.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/permission/userRoleUnassign.js +53 -0
- package/packages/happy2-server/dist/modules/permission/userRoleUnassign.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/archive.d.ts +7 -0
- package/packages/happy2-server/dist/modules/plugin/archive.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/archive.js +222 -0
- package/packages/happy2-server/dist/modules/plugin/archive.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/catalog.d.ts +5 -1
- package/packages/happy2-server/dist/modules/plugin/catalog.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/catalog.js +35 -16
- package/packages/happy2-server/dist/modules/plugin/catalog.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/catalog.test.js +6 -2
- package/packages/happy2-server/dist/modules/plugin/catalog.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/httpBridge.d.ts +1 -0
- package/packages/happy2-server/dist/modules/plugin/httpBridge.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/httpBridge.js +7 -0
- package/packages/happy2-server/dist/modules/plugin/httpBridge.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.d.ts +5 -0
- package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.js +106 -0
- package/packages/happy2-server/dist/modules/plugin/impl/apiPermissions.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/asInstallation.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/asInstallation.js +12 -2
- package/packages/happy2-server/dist/modules/plugin/impl/asInstallation.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.d.ts +3 -0
- package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.js +68 -0
- package/packages/happy2-server/dist/modules/plugin/impl/asManagementRequest.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/asPlugin.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/asPlugin.js +12 -3
- package/packages/happy2-server/dist/modules/plugin/impl/asPlugin.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.d.ts +19 -0
- package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.js +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/installationSelection.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.js +4 -2
- package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.test.js +14 -0
- package/packages/happy2-server/dist/modules/plugin/impl/installedManifest.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.d.ts +345 -0
- package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.js +22 -0
- package/packages/happy2-server/dist/modules/plugin/impl/managementRequestSelection.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.d.ts +11 -0
- package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.js +2 -0
- package/packages/happy2-server/dist/modules/plugin/impl/pluginSkillSource.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.d.ts +16 -0
- package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.js +67 -0
- package/packages/happy2-server/dist/modules/plugin/packageLinkDownloader.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/packageStore.d.ts +27 -1
- package/packages/happy2-server/dist/modules/plugin/packageStore.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/packageStore.js +234 -15
- package/packages/happy2-server/dist/modules/plugin/packageStore.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/packageStore.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/plugin/packageStore.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/packageStore.test.js +50 -0
- package/packages/happy2-server/dist/modules/plugin/packageStore.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.d.ts +5 -0
- package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.js +26 -0
- package/packages/happy2-server/dist/modules/plugin/pluginAgentCallContextGet.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginAuthorizeManagement.d.ts +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginAuthorizeManagement.js +3 -3
- package/packages/happy2-server/dist/modules/plugin/pluginAuthorizeManagement.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginCatalogList.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginCatalogList.js +7 -3
- package/packages/happy2-server/dist/modules/plugin/pluginCatalogList.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.d.ts +2 -0
- package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.js +44 -0
- package/packages/happy2-server/dist/modules/plugin/pluginDeveloperServer.test.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.d.ts +3 -1
- package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.js +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginFindBySource.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginGetImage.d.ts +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginGetImage.js +3 -3
- package/packages/happy2-server/dist/modules/plugin/pluginGetImage.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginGetSource.d.ts +13 -0
- package/packages/happy2-server/dist/modules/plugin/pluginGetSource.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginGetSource.js +37 -0
- package/packages/happy2-server/dist/modules/plugin/pluginGetSource.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstall.d.ts +4 -2
- package/packages/happy2-server/dist/modules/plugin/pluginInstall.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginInstall.js +36 -5
- package/packages/happy2-server/dist/modules/plugin/pluginInstall.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.d.ts +7 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.js +18 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetContainerName.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.d.ts +13 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.js +35 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRequestUninstallContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRuntimeConfiguration.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRuntimeConfiguration.js +3 -1
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetRuntimeConfiguration.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.d.ts +6 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.js +17 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationGetUninstallContext.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationList.d.ts +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationList.js +3 -3
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationList.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.d.ts +18 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.js +92 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationPermissionsUpdate.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.d.ts +16 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.js +71 -0
- package/packages/happy2-server/dist/modules/plugin/pluginInstallationUninstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginList.d.ts +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginList.js +3 -3
- package/packages/happy2-server/dist/modules/plugin/pluginList.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.d.ts +21 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.js +71 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginInstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.d.ts +12 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.js +56 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestBeginUninstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.d.ts +11 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.js +44 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteInstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.d.ts +10 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.js +41 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCompleteUninstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.d.ts +26 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.js +78 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateInstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.d.ts +25 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.js +76 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestCreateUninstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.d.ts +11 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.js +48 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestDeny.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.d.ts +12 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.js +42 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestGetPackage.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.d.ts +5 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.js +18 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestList.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.d.ts +4 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.js +11 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestListTerminalIds.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.d.ts +5 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.js +75 -0
- package/packages/happy2-server/dist/modules/plugin/pluginManagementRequestRecoverProcessing.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.d.ts +12 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.js +33 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillPackageListReady.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.d.ts +8 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.js +24 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListInstalled.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.d.ts +8 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.js +25 -0
- package/packages/happy2-server/dist/modules/plugin/pluginSkillsListReady.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginUninstall.d.ts +13 -0
- package/packages/happy2-server/dist/modules/plugin/pluginUninstall.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/pluginUninstall.js +63 -0
- package/packages/happy2-server/dist/modules/plugin/pluginUninstall.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/runtime.d.ts +1 -0
- package/packages/happy2-server/dist/modules/plugin/runtime.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/runtime.js +1 -0
- package/packages/happy2-server/dist/modules/plugin/runtime.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/service.d.ts +157 -5
- package/packages/happy2-server/dist/modules/plugin/service.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/service.js +789 -19
- package/packages/happy2-server/dist/modules/plugin/service.js.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/source.d.ts +35 -0
- package/packages/happy2-server/dist/modules/plugin/source.d.ts.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/source.js +189 -0
- package/packages/happy2-server/dist/modules/plugin/source.js.map +1 -0
- package/packages/happy2-server/dist/modules/plugin/types.d.ts +116 -11
- package/packages/happy2-server/dist/modules/plugin/types.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/plugin/types.js +9 -0
- package/packages/happy2-server/dist/modules/plugin/types.js.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/events.d.ts +3 -0
- package/packages/happy2-server/dist/modules/realtime/events.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/events.js +37 -5
- package/packages/happy2-server/dist/modules/realtime/events.js.map +1 -1
- package/packages/happy2-server/dist/modules/realtime/local.test.js +2 -0
- package/packages/happy2-server/dist/modules/realtime/local.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js +4 -2
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.js.map +1 -1
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js +4 -1
- package/packages/happy2-server/dist/modules/sandbox/localOciSandboxProvider.test.js.map +1 -1
- package/packages/happy2-server/dist/modules/sandbox/types.d.ts +1 -0
- package/packages/happy2-server/dist/modules/sandbox/types.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/schema.d.ts +8024 -5446
- package/packages/happy2-server/dist/modules/schema.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/schema.js +140 -0
- package/packages/happy2-server/dist/modules/schema.js.map +1 -1
- package/packages/happy2-server/dist/modules/sync/syncGetDifference.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/sync/syncGetDifference.js +2 -0
- package/packages/happy2-server/dist/modules/sync/syncGetDifference.js.map +1 -1
- package/packages/happy2-server/dist/modules/user/userAdministrationList.js +2 -2
- package/packages/happy2-server/dist/modules/user/userAdministrationList.js.map +1 -1
- package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js +49 -6
- package/packages/happy2-server/dist/modules/user/userAdministrationUpdate.js.map +1 -1
- package/packages/happy2-server/dist/modules/user/userCreateProfile.d.ts.map +1 -1
- package/packages/happy2-server/dist/modules/user/userCreateProfile.js +17 -2
- package/packages/happy2-server/dist/modules/user/userCreateProfile.js.map +1 -1
- package/packages/happy2-server/dist/routes/agents.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/agents.js +4 -2
- package/packages/happy2-server/dist/routes/agents.js.map +1 -1
- package/packages/happy2-server/dist/routes/auth.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/auth.js +12 -0
- package/packages/happy2-server/dist/routes/auth.js.map +1 -1
- package/packages/happy2-server/dist/routes/collaboration.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/collaboration.js +7 -0
- package/packages/happy2-server/dist/routes/collaboration.js.map +1 -1
- package/packages/happy2-server/dist/routes/files.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/files.js +2 -0
- package/packages/happy2-server/dist/routes/files.js.map +1 -1
- package/packages/happy2-server/dist/routes/permissions.d.ts +6 -0
- package/packages/happy2-server/dist/routes/permissions.d.ts.map +1 -0
- package/packages/happy2-server/dist/routes/permissions.js +207 -0
- package/packages/happy2-server/dist/routes/permissions.js.map +1 -0
- package/packages/happy2-server/dist/routes/pluginHost.d.ts +2 -1
- package/packages/happy2-server/dist/routes/pluginHost.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/pluginHost.js +356 -5
- package/packages/happy2-server/dist/routes/pluginHost.js.map +1 -1
- package/packages/happy2-server/dist/routes/plugins.d.ts.map +1 -1
- package/packages/happy2-server/dist/routes/plugins.js +375 -7
- package/packages/happy2-server/dist/routes/plugins.js.map +1 -1
- package/packages/happy2-server/dist/server.d.ts +4 -0
- package/packages/happy2-server/dist/server.d.ts.map +1 -1
- package/packages/happy2-server/dist/server.js +12 -7
- package/packages/happy2-server/dist/server.js.map +1 -1
- package/packages/happy2-server/dist/web/assets/index-Dn5SZu3y.js +39 -0
- package/packages/happy2-server/dist/web/assets/index-Dys3sWv8.css +2 -0
- package/packages/happy2-server/dist/web/index.html +2 -2
- package/packages/happy2-server/drizzle/0023_roles_and_permissions.sql +82 -0
- package/packages/happy2-server/drizzle/0024_session_bound_dev_tokens.sql +11 -0
- package/packages/happy2-server/drizzle/0025_plugin_skills.sql +8 -0
- package/packages/happy2-server/drizzle/0026_agent_turn_traces.sql +35 -0
- package/packages/happy2-server/drizzle/0027_chat_agent_effort.sql +9 -0
- package/packages/happy2-server/drizzle/0028_plugin_api_permissions.sql +1 -0
- package/packages/happy2-server/drizzle/0029_plugin_management_requests.sql +35 -0
- package/packages/happy2-server/drizzle/meta/_journal.json +49 -0
- package/packages/happy2-server/happy2.example.toml +6 -0
- package/packages/happy2-server/plugins/README.md +7 -1
- package/packages/happy2-server/plugins/chat-management/container/Dockerfile +6 -0
- package/packages/happy2-server/plugins/chat-management/plugin.json +17 -0
- package/packages/happy2-server/plugins/chat-management/plugin.png +0 -0
- package/packages/happy2-server/plugins/chat-management/server.mjs +280 -0
- package/packages/happy2-server/plugins/plugin-developer/container/Dockerfile +6 -0
- package/packages/happy2-server/plugins/plugin-developer/plugin.json +17 -0
- package/packages/happy2-server/plugins/plugin-developer/plugin.png +0 -0
- package/packages/happy2-server/plugins/plugin-developer/server.mjs +155 -0
- package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/SKILL.md +59 -0
- package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/references/host-api.md +63 -0
- package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/references/installing.md +86 -0
- package/packages/happy2-server/plugins/plugin-developer/skills/happy2-plugin-development/references/package-format.md +137 -0
- package/packages/happy2-server/dist/web/assets/index-9SGCQLg7.js +0 -46
- 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.
|
|
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.
|
|
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.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
snapshots,
|
|
8
|
-
|
|
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
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
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
|
|
111
|
-
|
|
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`
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
|
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
|
|
168
|
-
|
|
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
|
|
335
|
-
container-incarnation ID, and the exact
|
|
336
|
-
|
|
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'`
|
|
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.
|
|
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
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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 {
|
|
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;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;AAChD,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,KAAK,qBAAqB,EAAE,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;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,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
|
|
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;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,OAAO,EACH,+BAA+B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,GACnC,MAAM,2CAA2C,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,KAAK,qBAAqB,EAAE,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;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;AAC1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACH,uBAAuB,
|
|
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,OAAO,EACH,+BAA+B,GAGlC,MAAM,2CAA2C,CAAC;AACnD,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;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"}
|
|
@@ -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,
|
|
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":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAwB,eAAe,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAC/B,QAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"agentChatBind.js","sourceRoot":"","sources":["../../../sources/modules/agent/agentChatBind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAwB,eAAe,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAC/B,QAAyB,EACzB,KASC;IAMD,OAAO,eAAe,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;QAC1C,MAAM,OAAO,GAAG,MAAM,mBAAmB,CACrC,EAAE,EACF,KAAK,CAAC,WAAW,EACjB,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,WAAW,CACpB,CAAC;QACF,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,OAAO;YAC9C,MAAM,IAAI,kBAAkB,CAAC,WAAW,EAAE,kCAAkC,CAAC,CAAC;QAClF,MAAM,EAAE;aACH,MAAM,CAAC,gBAAgB,CAAC;aACxB,MAAM,CAAC;YACJ,MAAM,EAAE,KAAK,CAAC,WAAW;YACzB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;SACvB,CAAC;aACD,mBAAmB,EAAE,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE;aACrB,MAAM,CAAC;YACJ,WAAW,EAAE,gBAAgB,CAAC,MAAM;YACpC,aAAa,EAAE,gBAAgB,CAAC,aAAa;YAC7C,GAAG,EAAE,gBAAgB,CAAC,GAAG;YACzB,MAAM,EAAE,gBAAgB,CAAC,MAAM;YAC/B,OAAO,EAAE,gBAAgB,CAAC,OAAO;YACjC,SAAS,EAAE,gBAAgB,CAAC,SAAS;SACxC,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC;aACtB,KAAK,CACF,GAAG,CACC,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,EAC9C,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAC5C,CACJ;aACA,KAAK,CAAC,CAAC,CAAC,CAAC;QACd,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACpE,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO;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,
|
|
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"}
|