@privateaim/server-core-worker-kit 0.7.34 → 0.7.37

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/CHANGELOG.md CHANGED
@@ -1,5 +1,94 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.37](https://github.com/PrivateAIM/hub/compare/v0.7.36...v0.7.37) (2026-04-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * analysis-distributor ([#1285](https://github.com/PrivateAIM/hub/issues/1285)) ([5da60be](https://github.com/PrivateAIM/hub/commit/5da60be91c4ae27ea16369b5d7e3d09782118826))
9
+ * build/push progress analysis & master images ([#1345](https://github.com/PrivateAIM/hub/issues/1345)) ([ca9919f](https://github.com/PrivateAIM/hub/commit/ca9919f92e05a4f407dc8bb849c971068522e53e))
10
+ * check handlers for analysis building and distribution ([#1318](https://github.com/PrivateAIM/hub/issues/1318)) ([a43ba20](https://github.com/PrivateAIM/hub/commit/a43ba203223ee5ffc00e63c3ff1d8829970590b2))
11
+ * component caller(s) implementation ([#1295](https://github.com/PrivateAIM/hub/issues/1295)) ([3b21fe1](https://github.com/PrivateAIM/hub/commit/3b21fe1b2cf3d47332722578cff67359442d84eb))
12
+ * master-image component(s) ([#1300](https://github.com/PrivateAIM/hub/issues/1300)) ([94cd580](https://github.com/PrivateAIM/hub/commit/94cd58057082ba9c48dae52346bfe5a8cabb28d8))
13
+ * migrate to esm & replace jest with vitest ([#1368](https://github.com/PrivateAIM/hub/issues/1368)) ([5a4d9d1](https://github.com/PrivateAIM/hub/commit/5a4d9d1ce118f65740aa49caf948208eac299032))
14
+ * rename server-analysis-manager to server-core-worker service ([#1166](https://github.com/PrivateAIM/hub/issues/1166)) ([fd5aa52](https://github.com/PrivateAIM/hub/commit/fd5aa52083d77c4083017b4447043818ea18a200))
15
+ * storage components + component/handler refactoring ([#1289](https://github.com/PrivateAIM/hub/issues/1289)) ([c22db47](https://github.com/PrivateAIM/hub/commit/c22db471bb2a7e71f33a299926f38fde551efc39))
16
+ * store analysis build hash, size & os ([#1374](https://github.com/PrivateAIM/hub/issues/1374)) ([6110ba6](https://github.com/PrivateAIM/hub/commit/6110ba6c94b3321c1477173c35afdea8b04ad33d))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **build:** replace __dirname with import.meta.dirname and enable tsdown shims ([b08de35](https://github.com/PrivateAIM/hub/commit/b08de35f59d325fda2222a3290b75561936e88e1))
22
+ * pass queueRouter to all callers subclasses and fix DatabaseModul… ([#1541](https://github.com/PrivateAIM/hub/issues/1541)) ([558f1da](https://github.com/PrivateAIM/hub/commit/558f1dafab2da1a82a5919ed47bf4c5620404971))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @privateaim/core-kit bumped from ^0.8.35 to ^0.8.36
30
+ * @privateaim/kit bumped from ^0.8.35 to ^0.8.36
31
+ * @privateaim/server-kit bumped from ^0.8.35 to ^0.8.36
32
+
33
+ ## [0.7.36](https://github.com/PrivateAIM/hub/compare/v0.7.35...v0.7.36) (2026-04-19)
34
+
35
+
36
+ ### Features
37
+
38
+ * analysis-distributor ([#1285](https://github.com/PrivateAIM/hub/issues/1285)) ([5da60be](https://github.com/PrivateAIM/hub/commit/5da60be91c4ae27ea16369b5d7e3d09782118826))
39
+ * build/push progress analysis & master images ([#1345](https://github.com/PrivateAIM/hub/issues/1345)) ([ca9919f](https://github.com/PrivateAIM/hub/commit/ca9919f92e05a4f407dc8bb849c971068522e53e))
40
+ * check handlers for analysis building and distribution ([#1318](https://github.com/PrivateAIM/hub/issues/1318)) ([a43ba20](https://github.com/PrivateAIM/hub/commit/a43ba203223ee5ffc00e63c3ff1d8829970590b2))
41
+ * component caller(s) implementation ([#1295](https://github.com/PrivateAIM/hub/issues/1295)) ([3b21fe1](https://github.com/PrivateAIM/hub/commit/3b21fe1b2cf3d47332722578cff67359442d84eb))
42
+ * master-image component(s) ([#1300](https://github.com/PrivateAIM/hub/issues/1300)) ([94cd580](https://github.com/PrivateAIM/hub/commit/94cd58057082ba9c48dae52346bfe5a8cabb28d8))
43
+ * migrate to esm & replace jest with vitest ([#1368](https://github.com/PrivateAIM/hub/issues/1368)) ([5a4d9d1](https://github.com/PrivateAIM/hub/commit/5a4d9d1ce118f65740aa49caf948208eac299032))
44
+ * rename server-analysis-manager to server-core-worker service ([#1166](https://github.com/PrivateAIM/hub/issues/1166)) ([fd5aa52](https://github.com/PrivateAIM/hub/commit/fd5aa52083d77c4083017b4447043818ea18a200))
45
+ * storage components + component/handler refactoring ([#1289](https://github.com/PrivateAIM/hub/issues/1289)) ([c22db47](https://github.com/PrivateAIM/hub/commit/c22db471bb2a7e71f33a299926f38fde551efc39))
46
+ * store analysis build hash, size & os ([#1374](https://github.com/PrivateAIM/hub/issues/1374)) ([6110ba6](https://github.com/PrivateAIM/hub/commit/6110ba6c94b3321c1477173c35afdea8b04ad33d))
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * **build:** replace __dirname with import.meta.dirname and enable tsdown shims ([b08de35](https://github.com/PrivateAIM/hub/commit/b08de35f59d325fda2222a3290b75561936e88e1))
52
+ * pass queueRouter to all callers subclasses and fix DatabaseModul… ([#1541](https://github.com/PrivateAIM/hub/issues/1541)) ([558f1da](https://github.com/PrivateAIM/hub/commit/558f1dafab2da1a82a5919ed47bf4c5620404971))
53
+
54
+
55
+ ### Dependencies
56
+
57
+ * The following workspace dependencies were updated
58
+ * dependencies
59
+ * @privateaim/core-kit bumped from ^0.8.34 to ^0.8.35
60
+ * @privateaim/kit bumped from ^0.8.34 to ^0.8.35
61
+ * @privateaim/server-kit bumped from ^0.8.34 to ^0.8.35
62
+
63
+ ## [0.7.35](https://github.com/PrivateAIM/hub/compare/v0.7.34...v0.7.35) (2026-04-16)
64
+
65
+
66
+ ### Features
67
+
68
+ * analysis-distributor ([#1285](https://github.com/PrivateAIM/hub/issues/1285)) ([5da60be](https://github.com/PrivateAIM/hub/commit/5da60be91c4ae27ea16369b5d7e3d09782118826))
69
+ * build/push progress analysis & master images ([#1345](https://github.com/PrivateAIM/hub/issues/1345)) ([ca9919f](https://github.com/PrivateAIM/hub/commit/ca9919f92e05a4f407dc8bb849c971068522e53e))
70
+ * check handlers for analysis building and distribution ([#1318](https://github.com/PrivateAIM/hub/issues/1318)) ([a43ba20](https://github.com/PrivateAIM/hub/commit/a43ba203223ee5ffc00e63c3ff1d8829970590b2))
71
+ * component caller(s) implementation ([#1295](https://github.com/PrivateAIM/hub/issues/1295)) ([3b21fe1](https://github.com/PrivateAIM/hub/commit/3b21fe1b2cf3d47332722578cff67359442d84eb))
72
+ * master-image component(s) ([#1300](https://github.com/PrivateAIM/hub/issues/1300)) ([94cd580](https://github.com/PrivateAIM/hub/commit/94cd58057082ba9c48dae52346bfe5a8cabb28d8))
73
+ * migrate to esm & replace jest with vitest ([#1368](https://github.com/PrivateAIM/hub/issues/1368)) ([5a4d9d1](https://github.com/PrivateAIM/hub/commit/5a4d9d1ce118f65740aa49caf948208eac299032))
74
+ * rename server-analysis-manager to server-core-worker service ([#1166](https://github.com/PrivateAIM/hub/issues/1166)) ([fd5aa52](https://github.com/PrivateAIM/hub/commit/fd5aa52083d77c4083017b4447043818ea18a200))
75
+ * storage components + component/handler refactoring ([#1289](https://github.com/PrivateAIM/hub/issues/1289)) ([c22db47](https://github.com/PrivateAIM/hub/commit/c22db471bb2a7e71f33a299926f38fde551efc39))
76
+ * store analysis build hash, size & os ([#1374](https://github.com/PrivateAIM/hub/issues/1374)) ([6110ba6](https://github.com/PrivateAIM/hub/commit/6110ba6c94b3321c1477173c35afdea8b04ad33d))
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * **build:** replace __dirname with import.meta.dirname and enable tsdown shims ([b08de35](https://github.com/PrivateAIM/hub/commit/b08de35f59d325fda2222a3290b75561936e88e1))
82
+
83
+
84
+ ### Dependencies
85
+
86
+ * The following workspace dependencies were updated
87
+ * dependencies
88
+ * @privateaim/core-kit bumped from ^0.8.33 to ^0.8.34
89
+ * @privateaim/kit bumped from ^0.8.33 to ^0.8.34
90
+ * @privateaim/server-kit bumped from ^0.8.33 to ^0.8.34
91
+
3
92
  ## [0.7.34](https://github.com/PrivateAIM/hub/compare/v0.7.33...v0.7.34) (2026-04-16)
4
93
 
5
94
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@privateaim/server-core-worker-kit",
3
3
  "type": "module",
4
- "version": "0.7.34",
4
+ "version": "0.7.37",
5
5
  "license": "Apache-2.0",
6
6
  "description": "",
7
7
  "module": "./dist/index.mjs",
@@ -23,10 +23,9 @@
23
23
  "build-watch": "rimraf ./dist && tsc -p tsconfig.build.json --watch"
24
24
  },
25
25
  "dependencies": {
26
- "@privateaim/core-kit": "^0.8.33",
27
- "@privateaim/kit": "^0.8.33",
28
- "@privateaim/server-kit": "^0.8.33",
29
- "singa": "^1.0.0"
26
+ "@privateaim/core-kit": "^0.8.36",
27
+ "@privateaim/kit": "^0.8.36",
28
+ "@privateaim/server-kit": "^0.8.36"
30
29
  },
31
30
  "devDependencies": {
32
31
  "docken": "^2.0.2"
@@ -5,7 +5,7 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import { QueueRouterRoutingType } from '@privateaim/server-kit';
8
+ import { MessageBusRoutingType } from '@privateaim/server-kit';
9
9
 
10
10
  export enum AnalysisBuilderEvent {
11
11
  EXECUTION_FAILED = 'executionFailed',
@@ -29,12 +29,12 @@ export enum AnalysisBuilderErrorCode {
29
29
  UNKNOWN = 'unknown',
30
30
  }
31
31
 
32
- export const AnalysisBuilderEventQueueRouterRouting = {
33
- type: QueueRouterRoutingType.PUB_SUB,
32
+ export const AnalysisBuilderEventMessageBusRouting = {
33
+ type: MessageBusRoutingType.PUB_SUB,
34
34
  key: 'analysisBuilderEvents',
35
35
  };
36
36
 
37
- export const AnalysisBuilderTaskQueueRouterRouting = {
38
- type: QueueRouterRoutingType.WORK,
37
+ export const AnalysisBuilderTaskMessageBusRouting = {
38
+ type: MessageBusRoutingType.WORK,
39
39
  key: 'analysisBuilderCommands',
40
40
  };
@@ -5,16 +5,16 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import type { ComponentMetadata } from '@privateaim/server-kit';
8
+ import type { ComponentMetadata, MessageBusDispatchComponentCallerOptions } from '@privateaim/server-kit';
9
9
  import {
10
- QueueDispatchComponentCaller,
10
+ MessageBusDispatchComponentCaller,
11
11
  } from '@privateaim/server-kit';
12
- import { AnalysisBuilderCommand, AnalysisBuilderTaskQueueRouterRouting } from './constants';
12
+ import { AnalysisBuilderCommand, AnalysisBuilderTaskMessageBusRouting } from './constants';
13
13
  import type { AnalysisBuilderBasePayload, AnalysisBuilderEventMap, AnalysisBuilderExecutePayload } from './types';
14
14
 
15
- export class AnalysisBuilderComponentCaller extends QueueDispatchComponentCaller<AnalysisBuilderEventMap> {
16
- constructor() {
17
- super({ queue: AnalysisBuilderTaskQueueRouterRouting });
15
+ export class AnalysisBuilderComponentCaller extends MessageBusDispatchComponentCaller<AnalysisBuilderEventMap> {
16
+ constructor(options: Partial<MessageBusDispatchComponentCallerOptions> = {}) {
17
+ super({ ...options, routing: AnalysisBuilderTaskMessageBusRouting });
18
18
  }
19
19
 
20
20
  async callExecute(payload: AnalysisBuilderExecutePayload, metadata: ComponentMetadata = {}) {
@@ -5,7 +5,7 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import { QueueRouterRoutingType } from '@privateaim/server-kit';
8
+ import { MessageBusRoutingType } from '@privateaim/server-kit';
9
9
 
10
10
  export enum AnalysisDistributorEvent {
11
11
  EXECUTION_STARTED = 'executionStarted',
@@ -23,12 +23,12 @@ export enum AnalysisDistributorCommand {
23
23
  CHECK = 'check',
24
24
  }
25
25
 
26
- export const AnalysisDistributorEventQueueRouterRouting = {
27
- type: QueueRouterRoutingType.PUB_SUB,
26
+ export const AnalysisDistributorEventMessageBusRouting = {
27
+ type: MessageBusRoutingType.PUB_SUB,
28
28
  key: 'analysisDistributorEvents',
29
29
  };
30
30
 
31
- export const AnalysisDistributorTaskQueueRouterRouting = {
32
- type: QueueRouterRoutingType.WORK,
31
+ export const AnalysisDistributorTaskMessageBusRouting = {
32
+ type: MessageBusRoutingType.WORK,
33
33
  key: 'analysisDistributorCommands',
34
34
  };
@@ -5,20 +5,20 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import type { ComponentMetadata } from '@privateaim/server-kit';
8
+ import type { ComponentMetadata, MessageBusDispatchComponentCallerOptions } from '@privateaim/server-kit';
9
9
  import {
10
- QueueDispatchComponentCaller,
10
+ MessageBusDispatchComponentCaller,
11
11
  } from '@privateaim/server-kit';
12
- import { AnalysisDistributorCommand, AnalysisDistributorTaskQueueRouterRouting } from './constants';
12
+ import { AnalysisDistributorCommand, AnalysisDistributorTaskMessageBusRouting } from './constants';
13
13
  import type {
14
14
  AnalysisDistributorCheckPayload,
15
15
  AnalysisDistributorEventMap,
16
16
  AnalysisDistributorExecutePayload,
17
17
  } from './types';
18
18
 
19
- export class AnalysisDistributorComponentCaller extends QueueDispatchComponentCaller<AnalysisDistributorEventMap> {
20
- constructor() {
21
- super({ queue: AnalysisDistributorTaskQueueRouterRouting });
19
+ export class AnalysisDistributorComponentCaller extends MessageBusDispatchComponentCaller<AnalysisDistributorEventMap> {
20
+ constructor(options: Partial<MessageBusDispatchComponentCallerOptions> = {}) {
21
+ super({ ...options, routing: AnalysisDistributorTaskMessageBusRouting });
22
22
  }
23
23
 
24
24
  async callExecute(payload: AnalysisDistributorExecutePayload, metadata: ComponentMetadata = {}) {
@@ -5,7 +5,7 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import { QueueRouterRoutingType } from '@privateaim/server-kit';
8
+ import { MessageBusRoutingType } from '@privateaim/server-kit';
9
9
 
10
10
  export enum MasterImageBuilderEvent {
11
11
  EXECUTION_FAILED = 'executionFailed',
@@ -18,12 +18,12 @@ export enum MasterImageBuilderCommand {
18
18
  EXECUTE = 'execute',
19
19
  }
20
20
 
21
- export const MasterImageBuilderEventQueueRouterRouting = {
22
- type: QueueRouterRoutingType.PUB_SUB,
21
+ export const MasterImageBuilderEventMessageBusRouting = {
22
+ type: MessageBusRoutingType.PUB_SUB,
23
23
  key: 'masterImageBuilderEvents',
24
24
  };
25
25
 
26
- export const MasterImageBuilderTaskQueueRouterRouting = {
27
- type: QueueRouterRoutingType.WORK,
26
+ export const MasterImageBuilderTaskMessageBusRouting = {
27
+ type: MessageBusRoutingType.WORK,
28
28
  key: 'masterImageBuilderTasks',
29
29
  };
@@ -5,16 +5,16 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import type { ComponentMetadata } from '@privateaim/server-kit';
8
+ import type { ComponentMetadata, MessageBusDispatchComponentCallerOptions } from '@privateaim/server-kit';
9
9
  import {
10
- QueueDispatchComponentCaller,
10
+ MessageBusDispatchComponentCaller,
11
11
  } from '@privateaim/server-kit';
12
- import { MasterImageBuilderCommand, MasterImageBuilderTaskQueueRouterRouting } from './constants';
12
+ import { MasterImageBuilderCommand, MasterImageBuilderTaskMessageBusRouting } from './constants';
13
13
  import type { MasterImageBuilderExecutePayload } from './types';
14
14
 
15
- export class MasterImageBuilderComponentCaller extends QueueDispatchComponentCaller {
16
- constructor() {
17
- super({ queue: MasterImageBuilderTaskQueueRouterRouting });
15
+ export class MasterImageBuilderComponentCaller extends MessageBusDispatchComponentCaller {
16
+ constructor(options: Partial<MessageBusDispatchComponentCallerOptions> = {}) {
17
+ super({ ...options, routing: MasterImageBuilderTaskMessageBusRouting });
18
18
  }
19
19
 
20
20
  async callExecute(payload: MasterImageBuilderExecutePayload, metadata: ComponentMetadata = {}) {
@@ -5,7 +5,7 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import { QueueRouterRoutingType } from '@privateaim/server-kit';
8
+ import { MessageBusRoutingType } from '@privateaim/server-kit';
9
9
 
10
10
  export enum MasterImageSynchronizerEvent {
11
11
  EXECUTION_FAILED = 'executionFailed',
@@ -18,12 +18,12 @@ export enum MasterImageSynchronizerCommand {
18
18
  EXECUTE = 'execute',
19
19
  }
20
20
 
21
- export const MasterImageSynchronizerEventQueueRouterRouting = {
22
- type: QueueRouterRoutingType.PUB_SUB,
21
+ export const MasterImageSynchronizerEventMessageBusRouting = {
22
+ type: MessageBusRoutingType.PUB_SUB,
23
23
  key: 'masterImageSynchronizerEvents',
24
24
  };
25
25
 
26
- export const MasterImageSynchronizerTaskQueueRouterRouting = {
27
- type: QueueRouterRoutingType.WORK,
26
+ export const MasterImageSynchronizerTaskMessageBusRouting = {
27
+ type: MessageBusRoutingType.WORK,
28
28
  key: 'masterImageSynchronizerTasks',
29
29
  };
@@ -5,19 +5,19 @@
5
5
  * view the LICENSE file that was distributed with this source code.
6
6
  */
7
7
 
8
- import type { ComponentMetadata } from '@privateaim/server-kit';
8
+ import type { ComponentMetadata, MessageBusDispatchComponentCallerOptions } from '@privateaim/server-kit';
9
9
  import {
10
- QueueDispatchComponentCaller,
10
+ MessageBusDispatchComponentCaller,
11
11
  } from '@privateaim/server-kit';
12
12
  import {
13
13
  MasterImageSynchronizerCommand,
14
- MasterImageSynchronizerTaskQueueRouterRouting,
14
+ MasterImageSynchronizerTaskMessageBusRouting,
15
15
  } from './constants';
16
16
  import type { MasterImageSynchronizerEventMap, MasterImageSynchronizerExecutePayload } from './types';
17
17
 
18
- export class MasterImageSynchronizerComponentCaller extends QueueDispatchComponentCaller<MasterImageSynchronizerEventMap> {
19
- constructor() {
20
- super({ queue: MasterImageSynchronizerTaskQueueRouterRouting });
18
+ export class MasterImageSynchronizerComponentCaller extends MessageBusDispatchComponentCaller<MasterImageSynchronizerEventMap> {
19
+ constructor(options: Partial<MessageBusDispatchComponentCallerOptions> = {}) {
20
+ super({ ...options, routing: MasterImageSynchronizerTaskMessageBusRouting });
21
21
  }
22
22
 
23
23
  async callExecute(payload: MasterImageSynchronizerExecutePayload, metadata: ComponentMetadata = {}) {