@breadstone/archipel-mcp 0.0.22 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +32 -13
  2. package/data/guides/ai-text-generation.md +16 -24
  3. package/data/guides/caching.md +33 -0
  4. package/data/guides/email-delivery.md +27 -1
  5. package/data/guides/email-templates.md +49 -39
  6. package/data/guides/esigning-integration.md +11 -5
  7. package/data/guides/health-indicators.md +220 -0
  8. package/data/guides/index.md +2 -0
  9. package/data/guides/queue-infrastructure.md +329 -0
  10. package/data/guides/telemetry-and-observability.md +20 -0
  11. package/data/packages/platform-analytics/api/Class.AnalyticsClientPort.md +20 -0
  12. package/data/packages/platform-analytics/api/Class.AnalyticsHealthIndicator.md +78 -0
  13. package/data/packages/platform-analytics/api/Class.AppInsightsAnalyticsClient.md +24 -0
  14. package/data/packages/platform-analytics/api/Class.DatadogAnalyticsClient.md +24 -0
  15. package/data/packages/platform-analytics/api/Class.NoopAnalyticsClient.md +24 -0
  16. package/data/packages/platform-analytics/api/Class.SentryAnalyticsClient.md +24 -0
  17. package/data/packages/platform-analytics/api/index.md +1 -0
  18. package/data/packages/platform-analytics/index.md +25 -1
  19. package/data/packages/platform-authentication/api/Class.AuthenticationHealthIndicator.md +68 -0
  20. package/data/packages/platform-authentication/api/Interface.IMfaSubjectUpdate.md +1 -1
  21. package/data/packages/platform-authentication/api/index.md +2 -1
  22. package/data/packages/platform-authentication/index.md +25 -1
  23. package/data/packages/platform-blob-storage/api/Class.BlobHealthIndicator.md +7 -7
  24. package/data/packages/platform-blob-storage/api/Class.BlobModule.md +2 -2
  25. package/data/packages/platform-blob-storage/api/Interface.IAwsS3BlobProviderRegistration.md +3 -3
  26. package/data/packages/platform-blob-storage/api/Interface.IAzureBlobProviderRegistration.md +3 -3
  27. package/data/packages/platform-blob-storage/api/Interface.IBlobModuleOptions.md +5 -5
  28. package/data/packages/platform-blob-storage/api/Interface.ICustomBlobProviderRegistration.md +3 -3
  29. package/data/packages/platform-blob-storage/api/Interface.IVercelBlobProviderRegistration.md +3 -3
  30. package/data/packages/platform-blob-storage/api/TypeAlias.IBlobProviderRegistration.md +1 -1
  31. package/data/packages/platform-blob-storage/api/index.md +1 -1
  32. package/data/packages/platform-blob-storage/index.md +19 -14
  33. package/data/packages/platform-caching/api/Class.MemoryLayeredCache.md +10 -10
  34. package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +6 -6
  35. package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +13 -13
  36. package/data/packages/platform-caching/api/Interface.ILayeredCache.md +9 -9
  37. package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +6 -6
  38. package/data/packages/platform-caching/api/Variable.CACHE_DEFAULT_TTL_MS.md +14 -0
  39. package/data/packages/platform-caching/api/Variable.CACHE_MAX_ENTRIES.md +14 -0
  40. package/data/packages/platform-caching/api/Variable.CACHE_STALE_WHILE_REVALIDATE.md +14 -0
  41. package/data/packages/platform-caching/api/Variable.PLATFORM_CACHING_CONFIG_ENTRIES.md +14 -0
  42. package/data/packages/platform-caching/api/Variable.REDIS_CONFIG_ENTRIES.md +14 -0
  43. package/data/packages/platform-caching/api/Variable.REDIS_KEY_PREFIX.md +14 -0
  44. package/data/packages/platform-caching/api/Variable.REDIS_TTL_SECONDS.md +14 -0
  45. package/data/packages/platform-caching/api/Variable.REDIS_URL.md +14 -0
  46. package/data/packages/platform-caching/api/index.md +13 -0
  47. package/data/packages/platform-caching/index.md +47 -1
  48. package/data/packages/platform-configuration/api/Function.createConfigKey.md +1 -1
  49. package/data/packages/platform-core/api/Class.HttpLoggerMiddleware.md +3 -3
  50. package/data/packages/platform-core/api/Function.maskSensitive.md +26 -0
  51. package/data/packages/platform-core/api/Function.maskSensitiveFields.md +26 -0
  52. package/data/packages/platform-core/api/index.md +2 -0
  53. package/data/packages/platform-core/index.md +11 -0
  54. package/data/packages/platform-database/api/Class.DatabaseHealthIndicator.md +8 -6
  55. package/data/packages/platform-database/api/Class.DatabaseModule.md +3 -3
  56. package/data/packages/platform-database/api/Class.RepositoryBase.md +20 -20
  57. package/data/packages/platform-database/api/Function.paginator.md +1 -1
  58. package/data/packages/platform-database/api/Interface.IDatabaseModuleConfig.md +3 -3
  59. package/data/packages/platform-database/api/TypeAlias.DelegateArgs.md +1 -1
  60. package/data/packages/platform-database/api/TypeAlias.DelegateReturnTypes.md +1 -1
  61. package/data/packages/platform-database/api/TypeAlias.PaginateFunction.md +1 -1
  62. package/data/packages/platform-database/api/Variable.DATABASE_MODULE_CONFIG.md +1 -1
  63. package/data/packages/platform-database/index.md +17 -5
  64. package/data/packages/platform-documents/api/Class.DocumentEngine.md +9 -5
  65. package/data/packages/platform-documents/index.md +1 -1
  66. package/data/packages/platform-esigning/api/Class.AdobeSignEsigningProvider.md +24 -0
  67. package/data/packages/platform-esigning/api/Class.DocuSignEsigningProvider.md +24 -0
  68. package/data/packages/platform-esigning/api/Class.DropboxSignEsigningProvider.md +24 -0
  69. package/data/packages/platform-esigning/api/Class.EsigningClientPort.md +20 -0
  70. package/data/packages/platform-esigning/api/Class.EsigningHealthIndicator.md +78 -0
  71. package/data/packages/platform-esigning/api/Class.InternalEsigningProvider.md +24 -0
  72. package/data/packages/platform-esigning/api/index.md +1 -0
  73. package/data/packages/platform-esigning/index.md +26 -2
  74. package/data/packages/platform-health/api/Class.HealthModule.md +42 -0
  75. package/data/packages/platform-health/api/Class.HealthOrchestrator.md +64 -0
  76. package/data/packages/platform-health/api/Interface.IHealthCheckResult.md +46 -0
  77. package/data/packages/platform-health/api/Interface.IHealthIndicator.md +41 -0
  78. package/data/packages/platform-health/api/Variable.HEALTH_INDICATORS_TOKEN.md +14 -0
  79. package/data/packages/platform-health/api/index.md +26 -0
  80. package/data/packages/platform-health/index.md +19 -8
  81. package/data/packages/platform-intelligence/api/Class.IntelligenceHealthIndicator.md +78 -0
  82. package/data/packages/platform-intelligence/api/index.md +1 -0
  83. package/data/packages/platform-intelligence/index.md +24 -1
  84. package/data/packages/platform-logging/api/Class.ContextLogger.md +152 -0
  85. package/data/packages/platform-logging/api/Class.LoggerModule.md +8 -2
  86. package/data/packages/platform-logging/api/Class.RequestContextStore.md +90 -0
  87. package/data/packages/platform-logging/api/Class.RequestIdMiddleware.md +68 -0
  88. package/data/packages/platform-logging/api/Interface.IRequestContext.md +34 -0
  89. package/data/packages/platform-logging/api/Variable.REQUEST_ID_HEADER.md +14 -0
  90. package/data/packages/platform-logging/api/index.md +11 -1
  91. package/data/packages/platform-logging/index.md +89 -7
  92. package/data/packages/platform-mailing/api/Class.MailHealthIndicator.md +5 -5
  93. package/data/packages/platform-mailing/api/Class.MailModule.md +28 -1
  94. package/data/packages/platform-mailing/api/Class.MailVerificationService.md +49 -16
  95. package/data/packages/platform-mailing/api/Class.SmtpConnectionVerifier.md +84 -0
  96. package/data/packages/platform-mailing/api/Interface.IMailModuleOptions.md +36 -0
  97. package/data/packages/platform-mailing/api/index.md +3 -1
  98. package/data/packages/platform-mailing/index.md +64 -8
  99. package/data/packages/platform-mapping/api/Class.MappingBuilder.md +110 -0
  100. package/data/packages/platform-mapping/api/Class.MappingError.md +56 -0
  101. package/data/packages/platform-mapping/api/Class.MappingModule.md +46 -0
  102. package/data/packages/platform-mapping/api/Class.MappingNotRegisteredError.md +52 -0
  103. package/data/packages/platform-mapping/api/Class.MappingProfileBase.md +52 -0
  104. package/data/packages/platform-mapping/api/Class.MappingService.md +284 -0
  105. package/data/packages/platform-mapping/api/Class.TypeMappingNotRegisteredError.md +53 -0
  106. package/data/packages/platform-mapping/api/Function.createMappingKey.md +39 -0
  107. package/data/packages/platform-mapping/api/Interface.IMappingBuilder.md +76 -0
  108. package/data/packages/platform-mapping/api/Interface.IMappingKey.md +58 -0
  109. package/data/packages/platform-mapping/api/Interface.IMappingProfile.md +32 -0
  110. package/data/packages/platform-mapping/api/TypeAlias.Constructor.md +28 -0
  111. package/data/packages/platform-mapping/api/index.md +38 -0
  112. package/data/packages/platform-mapping/index.md +1 -1
  113. package/data/packages/platform-mcp/api/Class.McpHealthIndicator.md +78 -0
  114. package/data/packages/platform-mcp/api/index.md +1 -0
  115. package/data/packages/platform-mcp/index.md +24 -1
  116. package/data/packages/platform-openapi/api/Function.SwaggerFeature.md +2 -2
  117. package/data/packages/platform-openapi/api/Function.getSwaggerFeatureMetadata.md +2 -2
  118. package/data/packages/platform-payments/api/Class.LemonSqueezyClient.md +24 -0
  119. package/data/packages/platform-payments/api/Class.MollieClient.md +24 -0
  120. package/data/packages/platform-payments/api/Class.PaddleClient.md +24 -0
  121. package/data/packages/platform-payments/api/Class.PaymentClientPort.md +20 -0
  122. package/data/packages/platform-payments/api/Class.PaymentHealthIndicator.md +78 -0
  123. package/data/packages/platform-payments/api/Class.StripeClient.md +28 -4
  124. package/data/packages/platform-payments/api/index.md +1 -0
  125. package/data/packages/platform-payments/index.md +26 -2
  126. package/data/packages/platform-queue/api/Class.AzureQueue.md +221 -0
  127. package/data/packages/platform-queue/api/Class.BullMqQueue.md +220 -0
  128. package/data/packages/platform-queue/api/Class.MemoryQueue.md +194 -0
  129. package/data/packages/platform-queue/api/Class.QueueError.md +51 -0
  130. package/data/packages/platform-queue/api/Class.QueueHealthIndicator.md +68 -0
  131. package/data/packages/platform-queue/api/Class.QueueJobNotFoundError.md +43 -0
  132. package/data/packages/platform-queue/api/Class.QueueJobStateError.md +48 -0
  133. package/data/packages/platform-queue/api/Class.QueueValidationError.md +43 -0
  134. package/data/packages/platform-queue/api/Interface.IAzureQueueOptions.md +48 -0
  135. package/data/packages/platform-queue/api/Interface.IBullMqQueueOptions.md +45 -0
  136. package/data/packages/platform-queue/api/Interface.IMemoryQueueOptions.md +32 -0
  137. package/data/packages/platform-queue/api/Interface.IQueue.md +173 -0
  138. package/data/packages/platform-queue/api/Interface.IQueueJob.md +139 -0
  139. package/data/packages/platform-queue/api/TypeAlias.QueueJobStatus.md +14 -0
  140. package/data/packages/platform-queue/api/Variable.AZURE_CONFIG_ENTRIES.md +17 -0
  141. package/data/packages/platform-queue/api/Variable.AZURE_CONNECTION_STRING.md +14 -0
  142. package/data/packages/platform-queue/api/Variable.AZURE_RECEIVE_WAIT_MS.md +21 -0
  143. package/data/packages/platform-queue/api/Variable.BULLMQ_CONFIG_ENTRIES.md +17 -0
  144. package/data/packages/platform-queue/api/Variable.BULLMQ_PREFIX.md +18 -0
  145. package/data/packages/platform-queue/api/Variable.BULLMQ_REDIS_URL.md +21 -0
  146. package/data/packages/platform-queue/api/Variable.PLATFORM_QUEUE_CONFIG_ENTRIES.md +17 -0
  147. package/data/packages/platform-queue/api/Variable.QUEUE_JOB_STATUS.md +30 -0
  148. package/data/packages/platform-queue/api/Variable.QUEUE_MAX_JOBS.md +21 -0
  149. package/data/packages/platform-queue/api/index.md +49 -0
  150. package/data/packages/platform-queue/index.md +168 -0
  151. package/data/packages/platform-resources/api/Class.BlobResourceStrategy.md +195 -0
  152. package/data/packages/platform-resources/api/Class.EmbeddedResourceStrategy.md +215 -0
  153. package/data/packages/platform-resources/api/Class.FileResourceStrategy.md +190 -0
  154. package/data/packages/platform-resources/api/Class.ResourceManager.md +477 -0
  155. package/data/packages/platform-resources/api/Class.ResourceModule.md +46 -0
  156. package/data/packages/platform-resources/api/Class.ResourceNotFoundError.md +60 -0
  157. package/data/packages/platform-resources/api/Interface.IBlobResourceStrategyConfig.md +28 -0
  158. package/data/packages/platform-resources/api/Interface.IBlobServiceAdapter.md +40 -0
  159. package/data/packages/platform-resources/api/Interface.IFileResourceStrategyConfig.md +72 -0
  160. package/data/packages/platform-resources/api/Interface.IResourceManagerConfig.md +89 -0
  161. package/data/packages/platform-resources/api/Interface.IResourceMetadata.md +94 -0
  162. package/data/packages/platform-resources/api/Interface.IResourceResult.md +34 -0
  163. package/data/packages/platform-resources/api/Interface.IResourceStrategy.md +134 -0
  164. package/data/packages/platform-resources/api/index.md +29 -0
  165. package/data/packages/platform-resources/index.md +1 -1
  166. package/data/packages/platform-telemetry/api/Class.OtelSdkHolder.md +21 -3
  167. package/data/packages/platform-telemetry/api/Class.TelemetryHealthIndicator.md +78 -0
  168. package/data/packages/platform-telemetry/api/index.md +1 -0
  169. package/data/packages/platform-telemetry/index.md +25 -1
  170. package/data/patterns/config-pattern.md +5 -3
  171. package/package.json +2 -2
  172. package/src/tools/registerGetConfigPatternTool.js +1 -1
  173. package/src/tools/registerGetDtoPatternTool.js +1 -1
  174. package/src/tools/registerGetErrorHandlingPatternTool.js +1 -1
  175. package/src/tools/registerGetGuardPatternTool.js +1 -1
  176. package/src/tools/registerGetMappingPatternTool.js +1 -1
  177. package/src/tools/registerGetModulePatternTool.js +1 -1
  178. package/src/tools/registerGetQueryPatternTool.js +1 -1
  179. package/src/tools/registerGetRepositoryPatternTool.js +1 -1
  180. package/src/tools/registerGetTestingPatternTool.js +1 -1
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: 'Class: HealthModule'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: HealthModule
7
+
8
+ Defined in: [HealthModule.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthModule.ts#L15)
9
+
10
+ ## Constructors
11
+
12
+ ### Constructor
13
+
14
+ ```ts
15
+ new HealthModule(): HealthModule;
16
+ ```
17
+
18
+ #### Returns
19
+
20
+ `HealthModule`
21
+
22
+ ## Methods
23
+
24
+ ### withIndicators()
25
+
26
+ ```ts
27
+ static withIndicators(indicators): DynamicModule;
28
+ ```
29
+
30
+ Defined in: [HealthModule.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthModule.ts#L21)
31
+
32
+ Registers additional health indicators.
33
+
34
+ #### Parameters
35
+
36
+ | Parameter | Type | Description |
37
+ | ------ | ------ | ------ |
38
+ | `indicators` | `Type`\<[`IHealthIndicator`](Interface.IHealthIndicator)\>[] | Array of indicator classes implementing IHealthIndicator |
39
+
40
+ #### Returns
41
+
42
+ `DynamicModule`
@@ -0,0 +1,64 @@
1
+ ---
2
+ title: 'Class: HealthOrchestrator'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: HealthOrchestrator
7
+
8
+ Defined in: [HealthOrchestrator.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L15)
9
+
10
+ Orchestrates execution of all registered health indicators and aggregates their results.
11
+
12
+ ## Constructors
13
+
14
+ ### Constructor
15
+
16
+ ```ts
17
+ new HealthOrchestrator(): HealthOrchestrator;
18
+ ```
19
+
20
+ Defined in: [HealthOrchestrator.ts:27](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L27)
21
+
22
+ #### Returns
23
+
24
+ `HealthOrchestrator`
25
+
26
+ ## Methods
27
+
28
+ ### check()
29
+
30
+ ```ts
31
+ check(): Promise<IHealthCheckResult[]>;
32
+ ```
33
+
34
+ Defined in: [HealthOrchestrator.ts:67](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L67)
35
+
36
+ Executes all registered health indicators and aggregates their results.
37
+
38
+ #### Returns
39
+
40
+ `Promise`\<[`IHealthCheckResult`](Interface.IHealthCheckResult)[]\>
41
+
42
+ The aggregated health check results.
43
+
44
+ ***
45
+
46
+ ### registerIndicator()
47
+
48
+ ```ts
49
+ registerIndicator(indicator): void;
50
+ ```
51
+
52
+ Defined in: [HealthOrchestrator.ts:41](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L41)
53
+
54
+ Registers a health indicator.
55
+
56
+ #### Parameters
57
+
58
+ | Parameter | Type | Description |
59
+ | ------ | ------ | ------ |
60
+ | `indicator` | [`IHealthIndicator`](Interface.IHealthIndicator) | The health indicator to register. |
61
+
62
+ #### Returns
63
+
64
+ `void`
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: 'Interface: IHealthCheckResult'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Interface: IHealthCheckResult
7
+
8
+ Defined in: [IHealthCheckResult.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L6)
9
+
10
+ Represents the result of a health check indicator.
11
+
12
+ ## Properties
13
+
14
+ ### details?
15
+
16
+ ```ts
17
+ optional details?: Record<string, unknown>;
18
+ ```
19
+
20
+ Defined in: [IHealthCheckResult.ts:20](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L20)
21
+
22
+ Optional additional details about the health check.
23
+
24
+ ***
25
+
26
+ ### name
27
+
28
+ ```ts
29
+ name: string;
30
+ ```
31
+
32
+ Defined in: [IHealthCheckResult.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L10)
33
+
34
+ The name of the health indicator (e.g., 'database', 'app').
35
+
36
+ ***
37
+
38
+ ### status
39
+
40
+ ```ts
41
+ status: "up" | "down";
42
+ ```
43
+
44
+ Defined in: [IHealthCheckResult.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L15)
45
+
46
+ The status of the health indicator ('up', 'down').
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: 'Interface: IHealthIndicator'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Interface: IHealthIndicator
7
+
8
+ Defined in: [IHealthIndicator.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthIndicator.ts#L12)
9
+
10
+ Defines the contract for a health indicator that can be orchestrated.
11
+
12
+ ## Properties
13
+
14
+ ### key
15
+
16
+ ```ts
17
+ readonly key: string;
18
+ ```
19
+
20
+ Defined in: [IHealthIndicator.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthIndicator.ts#L14)
21
+
22
+ Unique key identifying the indicator
23
+
24
+ ## Methods
25
+
26
+ ### check()
27
+
28
+ ```ts
29
+ check():
30
+ | HealthIndicatorResult<string>
31
+ | Promise<HealthIndicatorResult<string>>;
32
+ ```
33
+
34
+ Defined in: [IHealthIndicator.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthIndicator.ts#L17)
35
+
36
+ Performs the health check and returns a result keyed by the indicator key
37
+
38
+ #### Returns
39
+
40
+ \| `HealthIndicatorResult`\<`string`\>
41
+ \| `Promise`\<`HealthIndicatorResult`\<`string`\>\>
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: 'Variable: HEALTH\_INDICATORS\_TOKEN'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Variable: HEALTH\_INDICATORS\_TOKEN
7
+
8
+ ```ts
9
+ const HEALTH_INDICATORS_TOKEN: typeof HEALTH_INDICATORS_TOKEN;
10
+ ```
11
+
12
+ Defined in: [tokens/HealthTokens.ts:2](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/tokens/HealthTokens.ts#L2)
13
+
14
+ Injection token for registered health indicators
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: '@breadstone/archipel-platform-health'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # @breadstone/archipel-platform-health
7
+
8
+ ## Classes
9
+
10
+ | Class | Description |
11
+ | ------ | ------ |
12
+ | [HealthModule](Class.HealthModule) | - |
13
+ | [HealthOrchestrator](Class.HealthOrchestrator) | Orchestrates execution of all registered health indicators and aggregates their results. |
14
+
15
+ ## Interfaces
16
+
17
+ | Interface | Description |
18
+ | ------ | ------ |
19
+ | [IHealthCheckResult](Interface.IHealthCheckResult) | Represents the result of a health check indicator. |
20
+ | [IHealthIndicator](Interface.IHealthIndicator) | Defines the contract for a health indicator that can be orchestrated. |
21
+
22
+ ## Variables
23
+
24
+ | Variable | Description |
25
+ | ------ | ------ |
26
+ | [HEALTH\_INDICATORS\_TOKEN](Variable.HEALTH_INDICATORS_TOKEN) | Injection token for registered health indicators |
@@ -90,13 +90,24 @@ export class HealthController {
90
90
 
91
91
  ## Built-in Consumers
92
92
 
93
- Several Archipel libraries automatically register health indicators when imported alongside `platform-health`:
94
-
95
- | Library | Indicator | Check |
96
- | ---------------------- | -------------------------- | ----------------------------- |
97
- | `platform-database` | `DatabaseHealthIndicator` | `SELECT 1` ping |
98
- | `platform-blob-storage`| `BlobHealthIndicator` | Blob storage connectivity |
99
- | `platform-mailing` | `MailHealthIndicator` | Mail server connectivity |
93
+ All Archipel platform libraries provide health indicators via their `/health` subpath export. Register them with `HealthModule.withIndicators()`:
94
+
95
+ | Library | Indicator | Key | Check |
96
+ | ------------------------ | ------------------------------ | ---------------- | --------------------------------------------------------- |
97
+ | `platform-database` | `DatabaseHealthIndicator` | `database` | Prisma `SELECT 1` ping |
98
+ | `platform-blob-storage` | `BlobHealthIndicator` | `blob` | HTTP ping to blob URL (or disabled if unconfigured) |
99
+ | `platform-mailing` | `MailHealthIndicator` | `mail` | Validates mail host, user, and port config |
100
+ | `platform-caching` | `CachingHealthIndicator` | `caching` | Always `up` |
101
+ | `platform-queue` | `QueueHealthIndicator` | `queue` | Always `up` |
102
+ | `platform-payments` | `PaymentHealthIndicator` | `payment` | `up` if `PaymentClientPort` injected, else `disabled` |
103
+ | `platform-esigning` | `EsigningHealthIndicator` | `esigning` | `up` if `EsigningClientPort` injected, else `disabled` |
104
+ | `platform-intelligence` | `IntelligenceHealthIndicator` | `intelligence` | `up` if `IntelligenceCapabilityRegistry` injected, else `disabled` |
105
+ | `platform-analytics` | `AnalyticsHealthIndicator` | `analytics` | `up` if `AnalyticsClientPort` injected, else `disabled` |
106
+ | `platform-telemetry` | `TelemetryHealthIndicator` | `telemetry` | `up` if `OtelSdkHolder` injected, else `disabled` |
107
+ | `platform-authentication`| `AuthenticationHealthIndicator`| `authentication` | Always `up` |
108
+ | `platform-mcp` | `McpHealthIndicator` | `mcp` | `up` if `McpRegistryService` injected, else `disabled` |
109
+
110
+ See the [Health Indicators guide](../../guides/health-indicators) for full setup instructions.
100
111
 
101
112
  ---
102
113
 
@@ -125,4 +136,4 @@ The `HealthOrchestrator` enforces a maximum of **100** registered indicators. If
125
136
 
126
137
  ## API Reference
127
138
 
128
- See the auto-generated [API Reference](./api/) for full details on all exported classes, interfaces, and types.
139
+ The auto-generated API reference is published when API docs are generated for this package.
@@ -0,0 +1,78 @@
1
+ ---
2
+ title: 'Class: IntelligenceHealthIndicator'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: IntelligenceHealthIndicator
7
+
8
+ Defined in: health/IntelligenceHealthIndicator.ts:17
9
+
10
+ Health indicator for the intelligence infrastructure.
11
+ Verifies that at least one intelligence capability is registered.
12
+
13
+ ## Implements
14
+
15
+ - `IHealthIndicator`
16
+
17
+ ## Constructors
18
+
19
+ ### Constructor
20
+
21
+ ```ts
22
+ new IntelligenceHealthIndicator(registry?): IntelligenceHealthIndicator;
23
+ ```
24
+
25
+ Defined in: health/IntelligenceHealthIndicator.ts:26
26
+
27
+ #### Parameters
28
+
29
+ | Parameter | Type |
30
+ | ------ | ------ |
31
+ | `registry?` | [`IntelligenceCapabilityRegistry`](Class.IntelligenceCapabilityRegistry) |
32
+
33
+ #### Returns
34
+
35
+ `IntelligenceHealthIndicator`
36
+
37
+ ## Properties
38
+
39
+ ### key
40
+
41
+ ```ts
42
+ readonly key: string = 'intelligence';
43
+ ```
44
+
45
+ Defined in: health/IntelligenceHealthIndicator.ts:34
46
+
47
+ Unique key identifying the indicator
48
+
49
+ #### Implementation of
50
+
51
+ ```ts
52
+ IHealthIndicator.key
53
+ ```
54
+
55
+ ## Methods
56
+
57
+ ### check()
58
+
59
+ ```ts
60
+ check(): HealthIndicatorResult<string>;
61
+ ```
62
+
63
+ Defined in: health/IntelligenceHealthIndicator.ts:47
64
+
65
+ Verifies that the capability registry contains at least one registered capability.
66
+ Returns disabled status when no registry is configured.
67
+
68
+ #### Returns
69
+
70
+ `HealthIndicatorResult`\<`string`\>
71
+
72
+ The health indicator result.
73
+
74
+ #### Implementation of
75
+
76
+ ```ts
77
+ IHealthIndicator.check
78
+ ```
@@ -12,6 +12,7 @@ editUrl: false
12
12
  | [IntelligenceCapabilityRegistrarBase](Class.IntelligenceCapabilityRegistrarBase) | Provides a reusable registration flow that allows feature modules to contribute capabilities to the global intelligence registry while keeping their implementation details private. |
13
13
  | [IntelligenceCapabilityRegistry](Class.IntelligenceCapabilityRegistry) | Central registry responsible for resolving intelligence capabilities based on intent metadata. |
14
14
  | [IntelligenceConfigurationError](Class.IntelligenceConfigurationError) | Error thrown when an intelligence provider configuration is invalid or missing. |
15
+ | [IntelligenceHealthIndicator](Class.IntelligenceHealthIndicator) | Health indicator for the intelligence infrastructure. Verifies that at least one intelligence capability is registered. |
15
16
  | [IntelligenceModule](Class.IntelligenceModule) | Core module exposing the shared intelligence infrastructure to feature modules. |
16
17
  | [IntelligenceProviderError](Class.IntelligenceProviderError) | Error thrown when an intelligence provider call fails. |
17
18
  | [IntelligenceTextGenerator](Class.IntelligenceTextGenerator) | Executes text completions using the configured intelligence provider. |
@@ -2,7 +2,7 @@
2
2
  title: platform-intelligence
3
3
  description: Multi-provider AI text generation with capability registry and intent-based orchestration.
4
4
  order: 16
5
- tags: [intelligence, ai, openai, anthropic, google, grok, text-generation, capability-registry]
5
+ tags: [intelligence, ai, openai, anthropic, google, grok, text-generation, capability-registry, health]
6
6
  package: '@breadstone/archipel-platform-intelligence'
7
7
  ---
8
8
 
@@ -182,6 +182,29 @@ import {
182
182
 
183
183
  ---
184
184
 
185
+ ## Health Check
186
+
187
+ The `IntelligenceHealthIndicator` verifies that an `IntelligenceCapabilityRegistry` is injected. If no registry is available, it reports `disabled: true`. Import it from the `/health` subpath:
188
+
189
+ ```typescript
190
+ import { IntelligenceHealthIndicator } from '@breadstone/archipel-platform-intelligence/health';
191
+ import { HealthModule } from '@breadstone/archipel-platform-health';
192
+
193
+ @Module({
194
+ imports: [
195
+ IntelligenceModule.register({ /* ... */ }),
196
+ HealthModule.withIndicators([IntelligenceHealthIndicator]),
197
+ ],
198
+ })
199
+ export class AppModule {}
200
+ ```
201
+
202
+ | Key | Check | Dependencies |
203
+ | --- | ----- | ------------ |
204
+ | `intelligence` | `up` if `IntelligenceCapabilityRegistry` injected, else `disabled` | `@Optional() IntelligenceCapabilityRegistry` |
205
+
206
+ ---
207
+
185
208
  ## API Reference
186
209
 
187
210
  See the full [API documentation](./api/) for all exported types, interfaces, and classes.
@@ -0,0 +1,152 @@
1
+ ---
2
+ title: 'Class: ContextLogger'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: ContextLogger
7
+
8
+ Defined in: [ContextLogger.ts:20](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/ContextLogger.ts#L20)
9
+
10
+ Structured logger that automatically enriches log entries with the
11
+ current request context (requestId, userId) from [RequestContextStore](Class.RequestContextStore).
12
+
13
+ ## Remarks
14
+
15
+ This logger wraps the NestJS Logger and prepends structured
16
+ context fields. It is intended as a drop-in replacement for direct
17
+ `Logger` usage in services that need request-scoped correlation.
18
+
19
+ ## Constructors
20
+
21
+ ### Constructor
22
+
23
+ ```ts
24
+ new ContextLogger(context?): ContextLogger;
25
+ ```
26
+
27
+ Defined in: [ContextLogger.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/ContextLogger.ts#L29)
28
+
29
+ #### Parameters
30
+
31
+ | Parameter | Type |
32
+ | ------ | ------ |
33
+ | `context?` | `string` |
34
+
35
+ #### Returns
36
+
37
+ `ContextLogger`
38
+
39
+ ## Methods
40
+
41
+ ### debug()
42
+
43
+ ```ts
44
+ debug(message, data?): void;
45
+ ```
46
+
47
+ Defined in: [ContextLogger.ts:69](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/ContextLogger.ts#L69)
48
+
49
+ Logs at `debug` level with request context.
50
+
51
+ #### Parameters
52
+
53
+ | Parameter | Type |
54
+ | ------ | ------ |
55
+ | `message` | `string` |
56
+ | `data?` | `Record`\<`string`, `unknown`\> |
57
+
58
+ #### Returns
59
+
60
+ `void`
61
+
62
+ ***
63
+
64
+ ### error()
65
+
66
+ ```ts
67
+ error(message, data?): void;
68
+ ```
69
+
70
+ Defined in: [ContextLogger.ts:60](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/ContextLogger.ts#L60)
71
+
72
+ Logs at `error` level with request context.
73
+
74
+ #### Parameters
75
+
76
+ | Parameter | Type |
77
+ | ------ | ------ |
78
+ | `message` | `string` |
79
+ | `data?` | `Record`\<`string`, `unknown`\> |
80
+
81
+ #### Returns
82
+
83
+ `void`
84
+
85
+ ***
86
+
87
+ ### log()
88
+
89
+ ```ts
90
+ log(message, data?): void;
91
+ ```
92
+
93
+ Defined in: [ContextLogger.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/ContextLogger.ts#L42)
94
+
95
+ Logs at `log` level with request context.
96
+
97
+ #### Parameters
98
+
99
+ | Parameter | Type |
100
+ | ------ | ------ |
101
+ | `message` | `string` |
102
+ | `data?` | `Record`\<`string`, `unknown`\> |
103
+
104
+ #### Returns
105
+
106
+ `void`
107
+
108
+ ***
109
+
110
+ ### verbose()
111
+
112
+ ```ts
113
+ verbose(message, data?): void;
114
+ ```
115
+
116
+ Defined in: [ContextLogger.ts:78](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/ContextLogger.ts#L78)
117
+
118
+ Logs at `verbose` level with request context.
119
+
120
+ #### Parameters
121
+
122
+ | Parameter | Type |
123
+ | ------ | ------ |
124
+ | `message` | `string` |
125
+ | `data?` | `Record`\<`string`, `unknown`\> |
126
+
127
+ #### Returns
128
+
129
+ `void`
130
+
131
+ ***
132
+
133
+ ### warn()
134
+
135
+ ```ts
136
+ warn(message, data?): void;
137
+ ```
138
+
139
+ Defined in: [ContextLogger.ts:51](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/ContextLogger.ts#L51)
140
+
141
+ Logs at `warn` level with request context.
142
+
143
+ #### Parameters
144
+
145
+ | Parameter | Type |
146
+ | ------ | ------ |
147
+ | `message` | `string` |
148
+ | `data?` | `Record`\<`string`, `unknown`\> |
149
+
150
+ #### Returns
151
+
152
+ `void`
@@ -5,9 +5,15 @@ editUrl: false
5
5
  ---
6
6
  # Class: LoggerModule
7
7
 
8
- Defined in: [LoggerModule.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/LoggerModule.ts#L35)
8
+ Defined in: [LoggerModule.ts:44](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/LoggerModule.ts#L44)
9
9
 
10
- Global logging module that configures the NestJS Logger with an application-wide log level.
10
+ Global logging module that configures the NestJS Logger with an application-wide log level
11
+ and provides request-scoped context propagation via [RequestIdMiddleware](Class.RequestIdMiddleware).
12
+
13
+ ## Remarks
14
+
15
+ Apply [RequestIdMiddleware](Class.RequestIdMiddleware) in your `AppModule.configure()` to enable
16
+ automatic `requestId` propagation to all log entries via [ContextLogger](Class.ContextLogger).
11
17
 
12
18
  ## Constructors
13
19
 
@@ -0,0 +1,90 @@
1
+ ---
2
+ title: 'Class: RequestContextStore'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: RequestContextStore
7
+
8
+ Defined in: [RequestContextStore.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/RequestContextStore.ts#L29)
9
+
10
+ AsyncLocalStorage-based request context store.
11
+
12
+ Provides a per-request context accessible anywhere in the call stack
13
+ without passing parameters explicitly. This is the foundation for
14
+ structured logging with automatic `requestId` propagation.
15
+
16
+ ## Constructors
17
+
18
+ ### Constructor
19
+
20
+ ```ts
21
+ new RequestContextStore(): RequestContextStore;
22
+ ```
23
+
24
+ #### Returns
25
+
26
+ `RequestContextStore`
27
+
28
+ ## Methods
29
+
30
+ ### get()
31
+
32
+ ```ts
33
+ static get(): IRequestContext | undefined;
34
+ ```
35
+
36
+ Defined in: [RequestContextStore.ts:57](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/RequestContextStore.ts#L57)
37
+
38
+ Returns the current request context, or `undefined` if called
39
+ outside a request scope.
40
+
41
+ #### Returns
42
+
43
+ [`IRequestContext`](Interface.IRequestContext) \| `undefined`
44
+
45
+ ***
46
+
47
+ ### getRequestId()
48
+
49
+ ```ts
50
+ static getRequestId(): string;
51
+ ```
52
+
53
+ Defined in: [RequestContextStore.ts:66](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/RequestContextStore.ts#L66)
54
+
55
+ Returns the current `requestId`, or `'unknown'` if no context is active.
56
+
57
+ #### Returns
58
+
59
+ `string`
60
+
61
+ ***
62
+
63
+ ### run()
64
+
65
+ ```ts
66
+ static run<T>(context, callback): T;
67
+ ```
68
+
69
+ Defined in: [RequestContextStore.ts:47](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/RequestContextStore.ts#L47)
70
+
71
+ Runs a callback within a new request context.
72
+
73
+ #### Type Parameters
74
+
75
+ | Type Parameter |
76
+ | ------ |
77
+ | `T` |
78
+
79
+ #### Parameters
80
+
81
+ | Parameter | Type | Description |
82
+ | ------ | ------ | ------ |
83
+ | `context` | [`IRequestContext`](Interface.IRequestContext) | The request context to associate with the callback execution. |
84
+ | `callback` | () => `T` | The function to execute within the context. |
85
+
86
+ #### Returns
87
+
88
+ `T`
89
+
90
+ The return value of the callback.