anbaric-cloud-hosting 1.35.0 → 1.37.0
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 +7 -7
- package/src/app-management/DockerBuildLayer.ts +1 -0
- package/src/app-management/FargateBuildLayer.ts +1 -0
- package/src/data-store/PostgresPromptManager.ts +87 -0
- package/src/data-store/Schema.ts +12 -0
- package/src/hosting/HostingServer.ts +7 -2
- package/src/hosting/handlers/PromptsHandler.ts +46 -0
- package/src/hosting/pages/platform-ui.html +1 -1
- package/src/index.ts +2 -0
- package/src/main.ts +3 -1
package/src/index.ts
CHANGED
|
@@ -25,6 +25,8 @@ export * from "./auth/MembershipService";
|
|
|
25
25
|
export * from "./auth/HttpMembershipService";
|
|
26
26
|
export * from "./auth/InMemoryMembershipService";
|
|
27
27
|
export * from "./hosting/handlers/auth/InvitationsHandler";
|
|
28
|
+
export * from "./data-store/PostgresPromptManager";
|
|
29
|
+
export * from "./hosting/handlers/PromptsHandler";
|
|
28
30
|
export * from "./app-management/DockerBuildLayer";
|
|
29
31
|
export * from "./app-management/FargateBuildLayer";
|
|
30
32
|
export * from "./app-admin/AdminServer";
|
package/src/main.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {PostgresAppDocsStore} from "./data-store/PostgresAppDocsStore";
|
|
|
23
23
|
import {PostgresEntitlementStore} from "./data-store/PostgresEntitlementStore";
|
|
24
24
|
import {PostgresUserDirectory} from "./data-store/PostgresUserDirectory";
|
|
25
25
|
import {HttpMembershipService} from "./auth/HttpMembershipService";
|
|
26
|
+
import {PostgresPromptManager} from "./data-store/PostgresPromptManager";
|
|
26
27
|
import {ConsumerRegistry} from "./queuing/ConsumerRegistry";
|
|
27
28
|
import {Dispatcher} from "./queuing/Dispatcher";
|
|
28
29
|
import {HostingServer} from "./hosting/HostingServer";
|
|
@@ -104,7 +105,8 @@ const server = new HostingServer(new PostgresJobPersistence(pool), queue, regist
|
|
|
104
105
|
(appId, collection) => new PostgresJsonStore(pool, appId, collection), secretStoreFor, authenticator, cliAuthorizer,
|
|
105
106
|
tokenAuthenticator, process.env.ANBARIC_TENANT, new PostgresAuditRecordStore(pool), plugins,
|
|
106
107
|
new PostgresJobRunSchedulePersistence(pool), await loadNotifier(process.env.ANBARIC_NOTIFIER_MODULE),
|
|
107
|
-
new PostgresEntitlementStore(pool), new PostgresUserDirectory(pool), memberships
|
|
108
|
+
new PostgresEntitlementStore(pool), new PostgresUserDirectory(pool), memberships,
|
|
109
|
+
(appId) => new PostgresPromptManager(pool, appId));
|
|
108
110
|
const port = await server.listen(hostingPort);
|
|
109
111
|
const internal = await server.listenInternal(internalPort);
|
|
110
112
|
|