@breadstone/archipel-mcp 0.0.6 → 0.0.8

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 (125) hide show
  1. package/data/packages/index.md +13 -6
  2. package/data/packages/platform-authentication/api/Class.AppleStrategy.md +1 -1
  3. package/data/packages/platform-authentication/api/Class.AuthModule.md +3 -3
  4. package/data/packages/platform-authentication/api/Class.GithubStrategy.md +1 -1
  5. package/data/packages/platform-authentication/api/Class.GoogleStrategy.md +1 -1
  6. package/data/packages/platform-authentication/api/Class.MicrosoftStrategy.md +1 -1
  7. package/data/packages/platform-authentication/api/Interface.IAuthModuleOptions.md +9 -9
  8. package/data/packages/platform-authentication/api/Variable.APPLE_AUTH_CONFIG_ENTRIES.md +1 -1
  9. package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_CALLBACK_URL.md +1 -1
  10. package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_CLIENT_ID.md +1 -1
  11. package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_KEY_ID.md +1 -1
  12. package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_PRIVATE_KEY.md +1 -1
  13. package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_SCOPE.md +15 -0
  14. package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_TEAM_ID.md +1 -1
  15. package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_CALLBACK_URL.md +1 -1
  16. package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_CLIENT_ID.md +1 -1
  17. package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_CLIENT_SECRET.md +1 -1
  18. package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_SCOPE.md +15 -0
  19. package/data/packages/platform-authentication/api/Variable.AUTH_GOOGLE_SCOPE.md +15 -0
  20. package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_CALLBACK_URL.md +1 -1
  21. package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_CLIENT_ID.md +1 -1
  22. package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_CLIENT_SECRET.md +1 -1
  23. package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_SCOPE.md +15 -0
  24. package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_TENANT.md +1 -1
  25. package/data/packages/platform-authentication/api/Variable.MICROSOFT_AUTH_CONFIG_ENTRIES.md +1 -1
  26. package/data/packages/platform-authentication/api/Variable.PLATFORM_AUTHENTICATION_CONFIG_ENTRIES.md +1 -1
  27. package/data/packages/platform-authentication/api/Variable.SEED_ANONYMOUS_USERNAME.md +1 -1
  28. package/data/packages/platform-authentication/api/index.md +4 -0
  29. package/data/packages/{platform-core → platform-caching}/api/Class.MemoryLayeredCache.md +41 -33
  30. package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +158 -0
  31. package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +296 -0
  32. package/data/packages/platform-caching/api/Interface.ICacheMetricsRecorder.md +122 -0
  33. package/data/packages/platform-caching/api/Interface.ICacheStats.md +71 -0
  34. package/data/packages/platform-caching/api/Interface.ILayeredCache.md +199 -0
  35. package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +76 -0
  36. package/data/packages/platform-caching/api/Interface.IRedisLayeredCacheOptions.md +122 -0
  37. package/data/packages/platform-caching/api/index.md +25 -0
  38. package/data/packages/platform-caching/index.md +116 -0
  39. package/data/packages/platform-core/api/index.md +104 -150
  40. package/data/packages/platform-core/index.md +5 -3
  41. package/data/packages/platform-cryptography/api/Class.BcryptService.md +73 -0
  42. package/data/packages/platform-cryptography/api/Class.CryptoService.md +52 -0
  43. package/data/packages/{platform-core → platform-cryptography}/api/Class.OtpService.md +8 -4
  44. package/data/packages/{platform-core → platform-cryptography}/api/Interface.IOtpService.md +8 -4
  45. package/data/packages/platform-cryptography/api/Interface.IOtpUriOptions.md +47 -0
  46. package/data/packages/{platform-core → platform-cryptography}/api/Variable.OTP_SERVICE_TOKEN.md +1 -1
  47. package/data/packages/{platform-core → platform-cryptography}/api/Variable.TOTP_EPOCH_TOLERANCE.md +1 -1
  48. package/data/packages/platform-cryptography/api/index.md +29 -0
  49. package/data/packages/platform-cryptography/index.md +132 -0
  50. package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistrarBase.md +7 -5
  51. package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistry.md +19 -15
  52. package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceModule.md +1 -1
  53. package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceTextGenerator.md +7 -7
  54. package/data/packages/platform-intelligence/api/Function.createProviderOptions.md +27 -0
  55. package/data/packages/platform-intelligence/api/Function.loadAnthropicLanguageModel.md +27 -0
  56. package/data/packages/platform-intelligence/api/Function.loadGoogleLanguageModel.md +27 -0
  57. package/data/packages/platform-intelligence/api/Function.loadGrokLanguageModel.md +27 -0
  58. package/data/packages/platform-intelligence/api/Function.loadOpenAILanguageModel.md +27 -0
  59. package/data/packages/platform-intelligence/api/Function.loadProviderFactory.md +32 -0
  60. package/data/packages/platform-intelligence/api/Interface.IIntelligenceArtifact.md +35 -0
  61. package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapability.md +72 -0
  62. package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityMetadata.md +71 -0
  63. package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityPayload.md +47 -0
  64. package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityRegistry.md +79 -0
  65. package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityResult.md +47 -0
  66. package/data/packages/platform-intelligence/api/Interface.IIntelligenceCompletionUsage.md +47 -0
  67. package/data/packages/platform-intelligence/api/Interface.IIntelligenceContext.md +73 -0
  68. package/data/packages/platform-intelligence/api/Interface.IIntelligenceContextBuilder.md +36 -0
  69. package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationMessageSnapshot.md +71 -0
  70. package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationSnapshot.md +59 -0
  71. package/data/packages/platform-intelligence/api/Interface.IIntelligenceFollowUpQuestion.md +47 -0
  72. package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntent.md +47 -0
  73. package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntentEntity.md +35 -0
  74. package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessageModel.md +71 -0
  75. package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessagePayload.md +35 -0
  76. package/data/packages/platform-intelligence/api/Interface.IIntelligencePrompt.md +35 -0
  77. package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptMessage.md +35 -0
  78. package/data/packages/platform-intelligence/api/Interface.IIntelligenceProviderConfiguration.md +95 -0
  79. package/data/packages/platform-intelligence/api/Interface.IIntelligenceResponseMessage.md +35 -0
  80. package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextCompletion.md +61 -0
  81. package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerationOptions.md +47 -0
  82. package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerator.md +54 -0
  83. package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceConversationMessageRole.md +1 -1
  84. package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceLanguageModelLoader.md +25 -0
  85. package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceProviderName.md +1 -1
  86. package/data/packages/{platform-core → platform-intelligence}/api/Variable.IntelligenceConversationMessageRoles.md +6 -6
  87. package/data/packages/platform-intelligence/api/Variable.IntelligenceProviderNames.md +29 -0
  88. package/data/packages/platform-intelligence/api/index.md +70 -0
  89. package/data/packages/platform-intelligence/index.md +131 -0
  90. package/data/packages/platform-telemetry/api/Class.TelemetryCacheMetricsRecorder.md +15 -15
  91. package/package.json +1 -1
  92. package/data/packages/platform-core/api/Class.BcryptService.md +0 -69
  93. package/data/packages/platform-core/api/Class.CryptoService.md +0 -50
  94. package/data/packages/platform-core/api/Class.NoopCacheMetricsRecorder.md +0 -157
  95. package/data/packages/platform-core/api/Class.RedisLayeredCache.md +0 -275
  96. package/data/packages/platform-core/api/Interface.ICacheMetricsRecorder.md +0 -121
  97. package/data/packages/platform-core/api/Interface.ICacheStats.md +0 -71
  98. package/data/packages/platform-core/api/Interface.IIntelligenceArtifact.md +0 -31
  99. package/data/packages/platform-core/api/Interface.IIntelligenceCapability.md +0 -62
  100. package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityMetadata.md +0 -61
  101. package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityPayload.md +0 -41
  102. package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityRegistry.md +0 -69
  103. package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityResult.md +0 -41
  104. package/data/packages/platform-core/api/Interface.IIntelligenceCompletionUsage.md +0 -41
  105. package/data/packages/platform-core/api/Interface.IIntelligenceContext.md +0 -63
  106. package/data/packages/platform-core/api/Interface.IIntelligenceContextBuilder.md +0 -32
  107. package/data/packages/platform-core/api/Interface.IIntelligenceConversationMessageSnapshot.md +0 -61
  108. package/data/packages/platform-core/api/Interface.IIntelligenceConversationSnapshot.md +0 -51
  109. package/data/packages/platform-core/api/Interface.IIntelligenceFollowUpQuestion.md +0 -41
  110. package/data/packages/platform-core/api/Interface.IIntelligenceIntent.md +0 -41
  111. package/data/packages/platform-core/api/Interface.IIntelligenceIntentEntity.md +0 -31
  112. package/data/packages/platform-core/api/Interface.IIntelligenceMessageModel.md +0 -61
  113. package/data/packages/platform-core/api/Interface.IIntelligenceMessagePayload.md +0 -31
  114. package/data/packages/platform-core/api/Interface.IIntelligencePrompt.md +0 -31
  115. package/data/packages/platform-core/api/Interface.IIntelligencePromptMessage.md +0 -31
  116. package/data/packages/platform-core/api/Interface.IIntelligenceProviderConfiguration.md +0 -81
  117. package/data/packages/platform-core/api/Interface.IIntelligenceResponseMessage.md +0 -31
  118. package/data/packages/platform-core/api/Interface.IIntelligenceTextCompletion.md +0 -53
  119. package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerationOptions.md +0 -41
  120. package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerator.md +0 -46
  121. package/data/packages/platform-core/api/Interface.ILayeredCache.md +0 -194
  122. package/data/packages/platform-core/api/Interface.ILayeredCacheOptions.md +0 -71
  123. package/data/packages/platform-core/api/Interface.IOtpUriOptions.md +0 -47
  124. package/data/packages/platform-core/api/Interface.IRedisLayeredCacheOptions.md +0 -108
  125. package/data/packages/platform-core/api/Variable.IntelligenceProviderNames.md +0 -29
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: 'Function: loadGrokLanguageModel()'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Function: loadGrokLanguageModel()
8
+
9
+ ```ts
10
+ function loadGrokLanguageModel(configuration): Promise<LanguageModelV2>;
11
+ ```
12
+
13
+ Defined in: [providers/loadGrokLanguageModel.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/providers/loadGrokLanguageModel.ts#L17)
14
+
15
+ Loads the Grok (xAI) language model based on the resolved provider configuration.
16
+
17
+ ## Parameters
18
+
19
+ | Parameter | Type | Description |
20
+ | --------------- | ------------------------------------------------------------------------------------ | ------------------------------------ |
21
+ | `configuration` | [`IIntelligenceProviderConfiguration`](Interface.IIntelligenceProviderConfiguration) | The resolved provider configuration. |
22
+
23
+ ## Returns
24
+
25
+ `Promise`\<`LanguageModelV2`\>
26
+
27
+ The configured language model instance.
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: 'Function: loadOpenAILanguageModel()'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Function: loadOpenAILanguageModel()
8
+
9
+ ```ts
10
+ function loadOpenAILanguageModel(configuration): Promise<LanguageModelV2>;
11
+ ```
12
+
13
+ Defined in: [providers/loadOpenAILanguageModel.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/providers/loadOpenAILanguageModel.ts#L17)
14
+
15
+ Loads the OpenAI compatible language model based on the resolved provider configuration.
16
+
17
+ ## Parameters
18
+
19
+ | Parameter | Type | Description |
20
+ | --------------- | ------------------------------------------------------------------------------------ | ------------------------------------ |
21
+ | `configuration` | [`IIntelligenceProviderConfiguration`](Interface.IIntelligenceProviderConfiguration) | The resolved provider configuration. |
22
+
23
+ ## Returns
24
+
25
+ `Promise`\<`LanguageModelV2`\>
26
+
27
+ The configured language model instance.
@@ -0,0 +1,32 @@
1
+ ---
2
+ title: 'Function: loadProviderFactory()'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Function: loadProviderFactory()
8
+
9
+ ```ts
10
+ function loadProviderFactory(moduleName, exportName): Promise<(model, options) => LanguageModelV2>;
11
+ ```
12
+
13
+ Defined in: [providers/ProviderFactoryLoader.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/providers/ProviderFactoryLoader.ts#L16)
14
+
15
+ Dynamically loads an AI SDK provider factory and returns the exported function reference.
16
+
17
+ ## Parameters
18
+
19
+ | Parameter | Type | Description |
20
+ | ------------ | -------- | ------------------------------------------------- |
21
+ | `moduleName` | `string` | The module that exports the factory function. |
22
+ | `exportName` | `string` | The named export containing the factory function. |
23
+
24
+ ## Returns
25
+
26
+ `Promise`\<(`model`, `options`) => `LanguageModelV2`\>
27
+
28
+ The resolved factory function.
29
+
30
+ ## Throws
31
+
32
+ When the module cannot be imported or the export is not a function.
@@ -0,0 +1,35 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceArtifact'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceArtifact
8
+
9
+ Defined in: [contracts/IIntelligenceArtifact.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceArtifact.ts#L6)
10
+
11
+ Represents a structured artifact returned by a capability.
12
+
13
+ ## Properties
14
+
15
+ ### data
16
+
17
+ ```ts
18
+ readonly data: Record<string, unknown>;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceArtifact.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceArtifact.ts#L22)
22
+
23
+ The structured data payload of the artifact.
24
+
25
+ ---
26
+
27
+ ### type
28
+
29
+ ```ts
30
+ readonly type: string;
31
+ ```
32
+
33
+ Defined in: [contracts/IIntelligenceArtifact.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceArtifact.ts#L15)
34
+
35
+ The artifact type discriminator.
@@ -0,0 +1,72 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceCapability'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceCapability
8
+
9
+ Defined in: [contracts/IIntelligenceCapability.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L16)
10
+
11
+ Abstraction implemented by all capability providers.
12
+
13
+ ## Properties
14
+
15
+ ### metadata
16
+
17
+ ```ts
18
+ readonly metadata: IIntelligenceCapabilityMetadata;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceCapability.ts:25](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L25)
22
+
23
+ Metadata describing the capability for orchestration and analytics purposes.
24
+
25
+ ## Methods
26
+
27
+ ### canHandle()
28
+
29
+ ```ts
30
+ canHandle(intent, context): boolean;
31
+ ```
32
+
33
+ Defined in: [contracts/IIntelligenceCapability.ts:39](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L39)
34
+
35
+ Determines whether this capability can handle the given intent and context.
36
+
37
+ #### Parameters
38
+
39
+ | Parameter | Type | Description |
40
+ | --------- | -------------------------------------------------------- | --------------------------------------- |
41
+ | `intent` | [`IIntelligenceIntent`](Interface.IIntelligenceIntent) | The structured intent to evaluate. |
42
+ | `context` | [`IIntelligenceContext`](Interface.IIntelligenceContext) | The aggregated context for the request. |
43
+
44
+ #### Returns
45
+
46
+ `boolean`
47
+
48
+ `true` if the capability can handle the intent; otherwise `false`.
49
+
50
+ ---
51
+
52
+ ### execute()
53
+
54
+ ```ts
55
+ execute(payload): Promise<IIntelligenceCapabilityResult>;
56
+ ```
57
+
58
+ Defined in: [contracts/IIntelligenceCapability.ts:48](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapability.ts#L48)
59
+
60
+ Executes the capability with the given payload.
61
+
62
+ #### Parameters
63
+
64
+ | Parameter | Type | Description |
65
+ | --------- | ---------------------------------------------------------------------------- | ------------------------------------ |
66
+ | `payload` | [`IIntelligenceCapabilityPayload`](Interface.IIntelligenceCapabilityPayload) | The payload forwarded for execution. |
67
+
68
+ #### Returns
69
+
70
+ `Promise`\<[`IIntelligenceCapabilityResult`](Interface.IIntelligenceCapabilityResult)\>
71
+
72
+ The capability execution result.
@@ -0,0 +1,71 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceCapabilityMetadata'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceCapabilityMetadata
8
+
9
+ Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L6)
10
+
11
+ Metadata describing a capability for orchestration and analytics purposes.
12
+
13
+ ## Properties
14
+
15
+ ### description
16
+
17
+ ```ts
18
+ readonly description: string;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L29)
22
+
23
+ A brief description of what the capability does.
24
+
25
+ ---
26
+
27
+ ### id
28
+
29
+ ```ts
30
+ readonly id: string;
31
+ ```
32
+
33
+ Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L15)
34
+
35
+ Unique identifier for the capability.
36
+
37
+ ---
38
+
39
+ ### intentName
40
+
41
+ ```ts
42
+ readonly intentName: string;
43
+ ```
44
+
45
+ Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:43](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L43)
46
+
47
+ The intent name this capability is designed to handle.
48
+
49
+ ---
50
+
51
+ ### name
52
+
53
+ ```ts
54
+ readonly name: string;
55
+ ```
56
+
57
+ Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L22)
58
+
59
+ Human-readable name of the capability.
60
+
61
+ ---
62
+
63
+ ### priority
64
+
65
+ ```ts
66
+ readonly priority: number;
67
+ ```
68
+
69
+ Defined in: [contracts/IIntelligenceCapabilityMetadata.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityMetadata.ts#L36)
70
+
71
+ Evaluation priority (lower values are evaluated first).
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceCapabilityPayload'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceCapabilityPayload
8
+
9
+ Defined in: [contracts/IIntelligenceCapabilityPayload.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L13)
10
+
11
+ Payload forwarded to capabilities for execution.
12
+
13
+ ## Properties
14
+
15
+ ### context
16
+
17
+ ```ts
18
+ readonly context: IIntelligenceContext;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceCapabilityPayload.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L29)
22
+
23
+ The aggregated context for the request.
24
+
25
+ ---
26
+
27
+ ### intent
28
+
29
+ ```ts
30
+ readonly intent: IIntelligenceIntent;
31
+ ```
32
+
33
+ Defined in: [contracts/IIntelligenceCapabilityPayload.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L22)
34
+
35
+ The structured intent resolved from the user message.
36
+
37
+ ---
38
+
39
+ ### userMessage
40
+
41
+ ```ts
42
+ readonly userMessage: string;
43
+ ```
44
+
45
+ Defined in: [contracts/IIntelligenceCapabilityPayload.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityPayload.ts#L36)
46
+
47
+ The raw user message that triggered the capability.
@@ -0,0 +1,79 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceCapabilityRegistry'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceCapabilityRegistry
8
+
9
+ Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L14)
10
+
11
+ Registry abstraction responsible for resolving capabilities.
12
+
13
+ ## Methods
14
+
15
+ ### list()
16
+
17
+ ```ts
18
+ list(): readonly IIntelligenceCapability[];
19
+ ```
20
+
21
+ Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L42)
22
+
23
+ Returns a read-only snapshot of all registered capabilities.
24
+
25
+ #### Returns
26
+
27
+ readonly [`IIntelligenceCapability`](Interface.IIntelligenceCapability)[]
28
+
29
+ A defensive copy of the registered capabilities.
30
+
31
+ ---
32
+
33
+ ### register()
34
+
35
+ ```ts
36
+ register(capability): void;
37
+ ```
38
+
39
+ Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L24)
40
+
41
+ Registers a capability in the registry.
42
+
43
+ #### Parameters
44
+
45
+ | Parameter | Type | Description |
46
+ | ------------ | -------------------------------------------------------------- | --------------------------- |
47
+ | `capability` | [`IIntelligenceCapability`](Interface.IIntelligenceCapability) | The capability to register. |
48
+
49
+ #### Returns
50
+
51
+ `void`
52
+
53
+ ---
54
+
55
+ ### resolve()
56
+
57
+ ```ts
58
+ resolve(intent, context):
59
+ | IIntelligenceCapability
60
+ | null;
61
+ ```
62
+
63
+ Defined in: [interfaces/IIntelligenceCapabilityRegistry.ts:34](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/interfaces/IIntelligenceCapabilityRegistry.ts#L34)
64
+
65
+ Resolves the most suitable capability for the given intent and context.
66
+
67
+ #### Parameters
68
+
69
+ | Parameter | Type | Description |
70
+ | --------- | -------------------------------------------------------- | --------------------------------------- |
71
+ | `intent` | [`IIntelligenceIntent`](Interface.IIntelligenceIntent) | The structured intent to match against. |
72
+ | `context` | [`IIntelligenceContext`](Interface.IIntelligenceContext) | The aggregated context for the request. |
73
+
74
+ #### Returns
75
+
76
+ \| [`IIntelligenceCapability`](Interface.IIntelligenceCapability)
77
+ \| `null`
78
+
79
+ The matching capability, or `null` if none qualifies.
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceCapabilityResult'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceCapabilityResult
8
+
9
+ Defined in: [contracts/IIntelligenceCapabilityResult.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L14)
10
+
11
+ Represents the outcome produced by a capability execution.
12
+
13
+ ## Properties
14
+
15
+ ### artifacts
16
+
17
+ ```ts
18
+ readonly artifacts: readonly IIntelligenceArtifact[];
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceCapabilityResult.ts:30](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L30)
22
+
23
+ Structured artifacts produced alongside the messages.
24
+
25
+ ---
26
+
27
+ ### followUps
28
+
29
+ ```ts
30
+ readonly followUps: readonly IIntelligenceFollowUpQuestion[];
31
+ ```
32
+
33
+ Defined in: [contracts/IIntelligenceCapabilityResult.ts:37](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L37)
34
+
35
+ Suggested follow-up questions to continue the dialogue.
36
+
37
+ ---
38
+
39
+ ### messages
40
+
41
+ ```ts
42
+ readonly messages: readonly IIntelligenceResponseMessage[];
43
+ ```
44
+
45
+ Defined in: [contracts/IIntelligenceCapabilityResult.ts:23](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCapabilityResult.ts#L23)
46
+
47
+ The assistant messages produced by the capability.
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceCompletionUsage'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceCompletionUsage
8
+
9
+ Defined in: [contracts/IIntelligenceCompletionUsage.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L6)
10
+
11
+ Captures usage telemetry returned by the intelligence provider.
12
+
13
+ ## Properties
14
+
15
+ ### completionTokens
16
+
17
+ ```ts
18
+ readonly completionTokens: number | null;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceCompletionUsage.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L22)
22
+
23
+ The number of tokens generated in the completion.
24
+
25
+ ---
26
+
27
+ ### promptTokens
28
+
29
+ ```ts
30
+ readonly promptTokens: number | null;
31
+ ```
32
+
33
+ Defined in: [contracts/IIntelligenceCompletionUsage.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L15)
34
+
35
+ The number of tokens consumed by the prompt.
36
+
37
+ ---
38
+
39
+ ### totalTokens
40
+
41
+ ```ts
42
+ readonly totalTokens: number | null;
43
+ ```
44
+
45
+ Defined in: [contracts/IIntelligenceCompletionUsage.ts:29](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceCompletionUsage.ts#L29)
46
+
47
+ The total number of tokens (prompt + completion).
@@ -0,0 +1,73 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceContext'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceContext
8
+
9
+ Defined in: [contracts/IIntelligenceContext.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L12)
10
+
11
+ Describes the context aggregated before routing a request to a capability.
12
+
13
+ ## Properties
14
+
15
+ ### conversationId
16
+
17
+ ```ts
18
+ readonly conversationId: string | null;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceContext.ts:28](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L28)
22
+
23
+ The conversation identifier, or `null` for a new conversation.
24
+
25
+ ---
26
+
27
+ ### conversationPreview
28
+
29
+ ```ts
30
+ readonly conversationPreview:
31
+ | IIntelligenceConversationSnapshot
32
+ | null;
33
+ ```
34
+
35
+ Defined in: [contracts/IIntelligenceContext.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L35)
36
+
37
+ A lightweight preview of the conversation history, or `null` when unavailable.
38
+
39
+ ---
40
+
41
+ ### nutritionSnapshot?
42
+
43
+ ```ts
44
+ readonly optional nutritionSnapshot?: Record<string, unknown> | null;
45
+ ```
46
+
47
+ Defined in: [contracts/IIntelligenceContext.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L49)
48
+
49
+ Optional nutrition snapshot for context enrichment.
50
+
51
+ ---
52
+
53
+ ### userId
54
+
55
+ ```ts
56
+ readonly userId: string;
57
+ ```
58
+
59
+ Defined in: [contracts/IIntelligenceContext.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L21)
60
+
61
+ The identifier of the requesting user.
62
+
63
+ ---
64
+
65
+ ### workoutSummary?
66
+
67
+ ```ts
68
+ readonly optional workoutSummary?: Record<string, unknown> | null;
69
+ ```
70
+
71
+ Defined in: [contracts/IIntelligenceContext.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContext.ts#L42)
72
+
73
+ Optional workout summary for context enrichment.
@@ -0,0 +1,36 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceContextBuilder'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceContextBuilder
8
+
9
+ Defined in: [contracts/IIntelligenceContextBuilder.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContextBuilder.ts#L12)
10
+
11
+ Responsible for composing the context supplied to capabilities.
12
+
13
+ ## Methods
14
+
15
+ ### build()
16
+
17
+ ```ts
18
+ build(userId, conversationId): Promise<IIntelligenceContext>;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceContextBuilder.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceContextBuilder.ts#L24)
22
+
23
+ Builds the aggregated context for the given user and conversation.
24
+
25
+ #### Parameters
26
+
27
+ | Parameter | Type | Description |
28
+ | ---------------- | ------------------ | -------------------------------------------------------------- |
29
+ | `userId` | `string` | The identifier of the requesting user. |
30
+ | `conversationId` | `string` \| `null` | The conversation identifier, or `null` for a new conversation. |
31
+
32
+ #### Returns
33
+
34
+ `Promise`\<[`IIntelligenceContext`](Interface.IIntelligenceContext)\>
35
+
36
+ The composed context instance.
@@ -0,0 +1,71 @@
1
+ ---
2
+ title: 'Interface: IIntelligenceConversationMessageSnapshot'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+
7
+ # Interface: IIntelligenceConversationMessageSnapshot
8
+
9
+ Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L12)
10
+
11
+ Represents a single message returned within a conversation snapshot.
12
+
13
+ ## Properties
14
+
15
+ ### content
16
+
17
+ ```ts
18
+ readonly content: string;
19
+ ```
20
+
21
+ Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L35)
22
+
23
+ The textual content of the message.
24
+
25
+ ---
26
+
27
+ ### createdAt
28
+
29
+ ```ts
30
+ readonly createdAt: Date;
31
+ ```
32
+
33
+ Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L42)
34
+
35
+ The timestamp when the message was created.
36
+
37
+ ---
38
+
39
+ ### id
40
+
41
+ ```ts
42
+ readonly id: string;
43
+ ```
44
+
45
+ Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L21)
46
+
47
+ Unique identifier of the message.
48
+
49
+ ---
50
+
51
+ ### metadata?
52
+
53
+ ```ts
54
+ readonly optional metadata?: unknown;
55
+ ```
56
+
57
+ Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L49)
58
+
59
+ Optional metadata attached to the message.
60
+
61
+ ---
62
+
63
+ ### role
64
+
65
+ ```ts
66
+ readonly role: IntelligenceConversationMessageRole;
67
+ ```
68
+
69
+ Defined in: [contracts/IIntelligenceConversationMessageSnapshot.ts:28](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-intelligence/src/contracts/IIntelligenceConversationMessageSnapshot.ts#L28)
70
+
71
+ The role of the message author.