@breadstone/archipel-mcp 0.0.7 → 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.
- package/data/packages/index.md +13 -6
- package/data/packages/platform-authentication/api/Class.AppleStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Class.AuthModule.md +3 -3
- package/data/packages/platform-authentication/api/Class.GithubStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Class.GoogleStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Class.MicrosoftStrategy.md +1 -1
- package/data/packages/platform-authentication/api/Interface.IAuthModuleOptions.md +9 -9
- package/data/packages/{platform-core → platform-caching}/api/Class.MemoryLayeredCache.md +41 -33
- package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +158 -0
- package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +296 -0
- package/data/packages/platform-caching/api/Interface.ICacheMetricsRecorder.md +122 -0
- package/data/packages/platform-caching/api/Interface.ICacheStats.md +71 -0
- package/data/packages/platform-caching/api/Interface.ILayeredCache.md +199 -0
- package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +76 -0
- package/data/packages/platform-caching/api/Interface.IRedisLayeredCacheOptions.md +122 -0
- package/data/packages/platform-caching/api/index.md +25 -0
- package/data/packages/platform-caching/index.md +116 -0
- package/data/packages/platform-core/api/index.md +104 -150
- package/data/packages/platform-core/index.md +5 -3
- package/data/packages/platform-cryptography/api/Class.BcryptService.md +73 -0
- package/data/packages/platform-cryptography/api/Class.CryptoService.md +52 -0
- package/data/packages/{platform-core → platform-cryptography}/api/Class.OtpService.md +8 -4
- package/data/packages/{platform-core → platform-cryptography}/api/Interface.IOtpService.md +8 -4
- package/data/packages/platform-cryptography/api/Interface.IOtpUriOptions.md +47 -0
- package/data/packages/{platform-core → platform-cryptography}/api/Variable.OTP_SERVICE_TOKEN.md +1 -1
- package/data/packages/{platform-core → platform-cryptography}/api/Variable.TOTP_EPOCH_TOLERANCE.md +1 -1
- package/data/packages/platform-cryptography/api/index.md +29 -0
- package/data/packages/platform-cryptography/index.md +132 -0
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistrarBase.md +7 -5
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistry.md +19 -15
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceModule.md +1 -1
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceTextGenerator.md +7 -7
- package/data/packages/platform-intelligence/api/Function.createProviderOptions.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadAnthropicLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadGoogleLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadGrokLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadOpenAILanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadProviderFactory.md +32 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceArtifact.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapability.md +72 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityMetadata.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityPayload.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityRegistry.md +79 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityResult.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCompletionUsage.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceContext.md +73 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceContextBuilder.md +36 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationMessageSnapshot.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationSnapshot.md +59 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceFollowUpQuestion.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntent.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntentEntity.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessageModel.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessagePayload.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePrompt.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptMessage.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceProviderConfiguration.md +95 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceResponseMessage.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextCompletion.md +61 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerationOptions.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerator.md +54 -0
- package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceConversationMessageRole.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceLanguageModelLoader.md +25 -0
- package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceProviderName.md +1 -1
- package/data/packages/{platform-core → platform-intelligence}/api/Variable.IntelligenceConversationMessageRoles.md +6 -6
- package/data/packages/platform-intelligence/api/Variable.IntelligenceProviderNames.md +29 -0
- package/data/packages/platform-intelligence/api/index.md +70 -0
- package/data/packages/platform-intelligence/index.md +131 -0
- package/data/packages/platform-telemetry/api/Class.TelemetryCacheMetricsRecorder.md +15 -15
- package/package.json +1 -1
- package/data/packages/platform-core/api/Class.BcryptService.md +0 -69
- package/data/packages/platform-core/api/Class.CryptoService.md +0 -50
- package/data/packages/platform-core/api/Class.NoopCacheMetricsRecorder.md +0 -157
- package/data/packages/platform-core/api/Class.RedisLayeredCache.md +0 -275
- package/data/packages/platform-core/api/Interface.ICacheMetricsRecorder.md +0 -121
- package/data/packages/platform-core/api/Interface.ICacheStats.md +0 -71
- package/data/packages/platform-core/api/Interface.IIntelligenceArtifact.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceCapability.md +0 -62
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityMetadata.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityPayload.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityRegistry.md +0 -69
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityResult.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceCompletionUsage.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceContext.md +0 -63
- package/data/packages/platform-core/api/Interface.IIntelligenceContextBuilder.md +0 -32
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationMessageSnapshot.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationSnapshot.md +0 -51
- package/data/packages/platform-core/api/Interface.IIntelligenceFollowUpQuestion.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceIntent.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceIntentEntity.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceMessageModel.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceMessagePayload.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligencePrompt.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligencePromptMessage.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceProviderConfiguration.md +0 -81
- package/data/packages/platform-core/api/Interface.IIntelligenceResponseMessage.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceTextCompletion.md +0 -53
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerationOptions.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerator.md +0 -46
- package/data/packages/platform-core/api/Interface.ILayeredCache.md +0 -194
- package/data/packages/platform-core/api/Interface.ILayeredCacheOptions.md +0 -71
- package/data/packages/platform-core/api/Interface.IOtpUriOptions.md +0 -47
- package/data/packages/platform-core/api/Interface.IRedisLayeredCacheOptions.md +0 -108
- package/data/packages/platform-core/api/Variable.IntelligenceProviderNames.md +0 -29
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Class: RedisLayeredCache\<TKey, TValue\>'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Class: RedisLayeredCache\<TKey, TValue\>
|
|
8
|
-
|
|
9
|
-
Defined in: [cache/RedisLayeredCache.ts:27](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L27)
|
|
10
|
-
|
|
11
|
-
Generic layered cache contract (DB first, then memory, then external fetcher).
|
|
12
|
-
|
|
13
|
-
## Type Parameters
|
|
14
|
-
|
|
15
|
-
| Type Parameter | Description |
|
|
16
|
-
| -------------- | ----------------------------- |
|
|
17
|
-
| `TKey` | The type of the cache keys. |
|
|
18
|
-
| `TValue` | The type of the cache values. |
|
|
19
|
-
|
|
20
|
-
## Implements
|
|
21
|
-
|
|
22
|
-
- [`ILayeredCache`](Interface.ILayeredCache)\<`TKey`, `TValue`\>
|
|
23
|
-
- `OnModuleDestroy`
|
|
24
|
-
|
|
25
|
-
## Constructors
|
|
26
|
-
|
|
27
|
-
### Constructor
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
new RedisLayeredCache<TKey, TValue>(loadFn, options): RedisLayeredCache<TKey, TValue>;
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Defined in: [cache/RedisLayeredCache.ts:46](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L46)
|
|
34
|
-
|
|
35
|
-
#### Parameters
|
|
36
|
-
|
|
37
|
-
| Parameter | Type |
|
|
38
|
-
| --------- | ------------------------------------------------------------------------------ |
|
|
39
|
-
| `loadFn` | (`key`) => `Promise`\<`TValue` \| `undefined`\> |
|
|
40
|
-
| `options` | [`IRedisLayeredCacheOptions`](Interface.IRedisLayeredCacheOptions)\<`TValue`\> |
|
|
41
|
-
|
|
42
|
-
#### Returns
|
|
43
|
-
|
|
44
|
-
`RedisLayeredCache`\<`TKey`, `TValue`\>
|
|
45
|
-
|
|
46
|
-
## Methods
|
|
47
|
-
|
|
48
|
-
### get()
|
|
49
|
-
|
|
50
|
-
```ts
|
|
51
|
-
get(key): TValue | undefined;
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Defined in: [cache/RedisLayeredCache.ts:65](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L65)
|
|
55
|
-
|
|
56
|
-
Retrieves a value from the cache.
|
|
57
|
-
Note: Redis is inherently async, so this throws an error.
|
|
58
|
-
|
|
59
|
-
#### Parameters
|
|
60
|
-
|
|
61
|
-
| Parameter | Type | Description |
|
|
62
|
-
| --------- | ------ | -------------------- |
|
|
63
|
-
| `key` | `TKey` | The key to retrieve. |
|
|
64
|
-
|
|
65
|
-
#### Returns
|
|
66
|
-
|
|
67
|
-
`TValue` \| `undefined`
|
|
68
|
-
|
|
69
|
-
#### Implementation of
|
|
70
|
-
|
|
71
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`get`](Interface.ILayeredCache#get)
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
### getAsync()
|
|
76
|
-
|
|
77
|
-
```ts
|
|
78
|
-
getAsync(key): Promise<TValue | undefined>;
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Defined in: [cache/RedisLayeredCache.ts:75](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L75)
|
|
82
|
-
|
|
83
|
-
Retrieves a value from the cache (asynchronous).
|
|
84
|
-
|
|
85
|
-
#### Parameters
|
|
86
|
-
|
|
87
|
-
| Parameter | Type | Description |
|
|
88
|
-
| --------- | ------ | -------------------- |
|
|
89
|
-
| `key` | `TKey` | The key to retrieve. |
|
|
90
|
-
|
|
91
|
-
#### Returns
|
|
92
|
-
|
|
93
|
-
`Promise`\<`TValue` \| `undefined`\>
|
|
94
|
-
|
|
95
|
-
#### Implementation of
|
|
96
|
-
|
|
97
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`getAsync`](Interface.ILayeredCache#getasync)
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
### invalidate()
|
|
102
|
-
|
|
103
|
-
```ts
|
|
104
|
-
invalidate(key): void;
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Defined in: [cache/RedisLayeredCache.ts:142](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L142)
|
|
108
|
-
|
|
109
|
-
Invalidates a key in the cache.
|
|
110
|
-
Note: Redis is inherently async, so this throws an error.
|
|
111
|
-
|
|
112
|
-
#### Parameters
|
|
113
|
-
|
|
114
|
-
| Parameter | Type | Description |
|
|
115
|
-
| --------- | ------ | ---------------------- |
|
|
116
|
-
| `key` | `TKey` | The key to invalidate. |
|
|
117
|
-
|
|
118
|
-
#### Returns
|
|
119
|
-
|
|
120
|
-
`void`
|
|
121
|
-
|
|
122
|
-
#### Implementation of
|
|
123
|
-
|
|
124
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`invalidate`](Interface.ILayeredCache#invalidate)
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
### invalidateAsync()
|
|
129
|
-
|
|
130
|
-
```ts
|
|
131
|
-
invalidateAsync(key): Promise<void>;
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Defined in: [cache/RedisLayeredCache.ts:152](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L152)
|
|
135
|
-
|
|
136
|
-
Invalidates a key in the cache (asynchronous).
|
|
137
|
-
|
|
138
|
-
#### Parameters
|
|
139
|
-
|
|
140
|
-
| Parameter | Type | Description |
|
|
141
|
-
| --------- | ------ | ---------------------- |
|
|
142
|
-
| `key` | `TKey` | The key to invalidate. |
|
|
143
|
-
|
|
144
|
-
#### Returns
|
|
145
|
-
|
|
146
|
-
`Promise`\<`void`\>
|
|
147
|
-
|
|
148
|
-
#### Implementation of
|
|
149
|
-
|
|
150
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`invalidateAsync`](Interface.ILayeredCache#invalidateasync)
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
### onModuleDestroy()
|
|
155
|
-
|
|
156
|
-
```ts
|
|
157
|
-
onModuleDestroy(): Promise<void>;
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
Defined in: [cache/RedisLayeredCache.ts:169](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L169)
|
|
161
|
-
|
|
162
|
-
#### Returns
|
|
163
|
-
|
|
164
|
-
`Promise`\<`void`\>
|
|
165
|
-
|
|
166
|
-
#### Implementation of
|
|
167
|
-
|
|
168
|
-
```ts
|
|
169
|
-
OnModuleDestroy.onModuleDestroy;
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
### set()
|
|
175
|
-
|
|
176
|
-
```ts
|
|
177
|
-
set(key, value): void;
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
Defined in: [cache/RedisLayeredCache.ts:109](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L109)
|
|
181
|
-
|
|
182
|
-
Sets a value in the cache.
|
|
183
|
-
Note: Redis is inherently async, so this throws an error.
|
|
184
|
-
|
|
185
|
-
#### Parameters
|
|
186
|
-
|
|
187
|
-
| Parameter | Type | Description |
|
|
188
|
-
| --------- | -------- | ----------------- |
|
|
189
|
-
| `key` | `TKey` | The key to set. |
|
|
190
|
-
| `value` | `TValue` | The value to set. |
|
|
191
|
-
|
|
192
|
-
#### Returns
|
|
193
|
-
|
|
194
|
-
`void`
|
|
195
|
-
|
|
196
|
-
#### Implementation of
|
|
197
|
-
|
|
198
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`set`](Interface.ILayeredCache#set)
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
### setAsync()
|
|
203
|
-
|
|
204
|
-
```ts
|
|
205
|
-
setAsync(key, value): Promise<void>;
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
Defined in: [cache/RedisLayeredCache.ts:120](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L120)
|
|
209
|
-
|
|
210
|
-
Sets a value in the cache (asynchronous).
|
|
211
|
-
|
|
212
|
-
#### Parameters
|
|
213
|
-
|
|
214
|
-
| Parameter | Type | Description |
|
|
215
|
-
| --------- | -------- | ----------------- |
|
|
216
|
-
| `key` | `TKey` | The key to set. |
|
|
217
|
-
| `value` | `TValue` | The value to set. |
|
|
218
|
-
|
|
219
|
-
#### Returns
|
|
220
|
-
|
|
221
|
-
`Promise`\<`void`\>
|
|
222
|
-
|
|
223
|
-
#### Implementation of
|
|
224
|
-
|
|
225
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`setAsync`](Interface.ILayeredCache#setasync)
|
|
226
|
-
|
|
227
|
-
---
|
|
228
|
-
|
|
229
|
-
### stats()
|
|
230
|
-
|
|
231
|
-
```ts
|
|
232
|
-
stats(): ICacheStats;
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
Defined in: [cache/RedisLayeredCache.ts:160](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L160)
|
|
236
|
-
|
|
237
|
-
Retrieves cache statistics.
|
|
238
|
-
|
|
239
|
-
#### Returns
|
|
240
|
-
|
|
241
|
-
[`ICacheStats`](Interface.ICacheStats)
|
|
242
|
-
|
|
243
|
-
The cache statistics.
|
|
244
|
-
|
|
245
|
-
#### Implementation of
|
|
246
|
-
|
|
247
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`stats`](Interface.ILayeredCache#stats)
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
|
-
### warm()
|
|
252
|
-
|
|
253
|
-
```ts
|
|
254
|
-
warm(key): Promise<TValue | undefined>;
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
Defined in: [cache/RedisLayeredCache.ts:131](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/RedisLayeredCache.ts#L131)
|
|
258
|
-
|
|
259
|
-
Proactively warms the cache for a given key (optional).
|
|
260
|
-
|
|
261
|
-
#### Parameters
|
|
262
|
-
|
|
263
|
-
| Parameter | Type | Description |
|
|
264
|
-
| --------- | ------ | ---------------- |
|
|
265
|
-
| `key` | `TKey` | The key to warm. |
|
|
266
|
-
|
|
267
|
-
#### Returns
|
|
268
|
-
|
|
269
|
-
`Promise`\<`TValue` \| `undefined`\>
|
|
270
|
-
|
|
271
|
-
The value that was loaded and cached, or undefined if not found.
|
|
272
|
-
|
|
273
|
-
#### Implementation of
|
|
274
|
-
|
|
275
|
-
[`ILayeredCache`](Interface.ILayeredCache).[`warm`](Interface.ILayeredCache#warm)
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Interface: ICacheMetricsRecorder'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Interface: ICacheMetricsRecorder
|
|
8
|
-
|
|
9
|
-
Defined in: [cache/ICacheMetricsRecorder.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheMetricsRecorder.ts#L6)
|
|
10
|
-
|
|
11
|
-
Metrics recorder for cache operations. Implementations can forward to Prometheus, OpenTelemetry, etc.
|
|
12
|
-
|
|
13
|
-
## Methods
|
|
14
|
-
|
|
15
|
-
### recordEviction()?
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
optional recordEviction(cache): void;
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Defined in: [cache/ICacheMetricsRecorder.ts:48](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheMetricsRecorder.ts#L48)
|
|
22
|
-
|
|
23
|
-
Records a cache eviction.
|
|
24
|
-
|
|
25
|
-
#### Parameters
|
|
26
|
-
|
|
27
|
-
| Parameter | Type | Description |
|
|
28
|
-
| --------- | -------- | -------------------- |
|
|
29
|
-
| `cache` | `string` | The cache name/label |
|
|
30
|
-
|
|
31
|
-
#### Returns
|
|
32
|
-
|
|
33
|
-
`void`
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
### recordHit()
|
|
38
|
-
|
|
39
|
-
```ts
|
|
40
|
-
recordHit(cache): void;
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Defined in: [cache/ICacheMetricsRecorder.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheMetricsRecorder.ts#L16)
|
|
44
|
-
|
|
45
|
-
Records a cache hit.
|
|
46
|
-
|
|
47
|
-
#### Parameters
|
|
48
|
-
|
|
49
|
-
| Parameter | Type | Description |
|
|
50
|
-
| --------- | -------- | -------------------- |
|
|
51
|
-
| `cache` | `string` | The cache name/label |
|
|
52
|
-
|
|
53
|
-
#### Returns
|
|
54
|
-
|
|
55
|
-
`void`
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
### recordLoadError()
|
|
60
|
-
|
|
61
|
-
```ts
|
|
62
|
-
recordLoadError(cache): void;
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
Defined in: [cache/ICacheMetricsRecorder.ts:40](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheMetricsRecorder.ts#L40)
|
|
66
|
-
|
|
67
|
-
Records a failed cache load.
|
|
68
|
-
|
|
69
|
-
#### Parameters
|
|
70
|
-
|
|
71
|
-
| Parameter | Type | Description |
|
|
72
|
-
| --------- | -------- | -------------------- |
|
|
73
|
-
| `cache` | `string` | The cache name/label |
|
|
74
|
-
|
|
75
|
-
#### Returns
|
|
76
|
-
|
|
77
|
-
`void`
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
### recordLoadSuccess()
|
|
82
|
-
|
|
83
|
-
```ts
|
|
84
|
-
recordLoadSuccess(cache): void;
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Defined in: [cache/ICacheMetricsRecorder.ts:32](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheMetricsRecorder.ts#L32)
|
|
88
|
-
|
|
89
|
-
Records a successful cache load.
|
|
90
|
-
|
|
91
|
-
#### Parameters
|
|
92
|
-
|
|
93
|
-
| Parameter | Type | Description |
|
|
94
|
-
| --------- | -------- | -------------------- |
|
|
95
|
-
| `cache` | `string` | The cache name/label |
|
|
96
|
-
|
|
97
|
-
#### Returns
|
|
98
|
-
|
|
99
|
-
`void`
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
### recordMiss()
|
|
104
|
-
|
|
105
|
-
```ts
|
|
106
|
-
recordMiss(cache): void;
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Defined in: [cache/ICacheMetricsRecorder.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheMetricsRecorder.ts#L24)
|
|
110
|
-
|
|
111
|
-
Records a cache miss.
|
|
112
|
-
|
|
113
|
-
#### Parameters
|
|
114
|
-
|
|
115
|
-
| Parameter | Type | Description |
|
|
116
|
-
| --------- | -------- | -------------------- |
|
|
117
|
-
| `cache` | `string` | The cache name/label |
|
|
118
|
-
|
|
119
|
-
#### Returns
|
|
120
|
-
|
|
121
|
-
`void`
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Interface: ICacheStats'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Interface: ICacheStats
|
|
8
|
-
|
|
9
|
-
Defined in: [cache/ICacheStats.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheStats.ts#L6)
|
|
10
|
-
|
|
11
|
-
Cache statistics.
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### evictions?
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
optional evictions?: number;
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Defined in: [cache/ICacheStats.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheStats.ts#L42)
|
|
22
|
-
|
|
23
|
-
Number of cache evictions (if supported).
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
### hits
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
hits: number;
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Defined in: [cache/ICacheStats.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheStats.ts#L14)
|
|
34
|
-
|
|
35
|
-
Number of cache hits.
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
### loadErrors
|
|
40
|
-
|
|
41
|
-
```ts
|
|
42
|
-
loadErrors: number;
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Defined in: [cache/ICacheStats.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheStats.ts#L35)
|
|
46
|
-
|
|
47
|
-
Number of failed cache loads.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
### loads
|
|
52
|
-
|
|
53
|
-
```ts
|
|
54
|
-
loads: number;
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Defined in: [cache/ICacheStats.ts:28](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheStats.ts#L28)
|
|
58
|
-
|
|
59
|
-
Number of successful cache loads.
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
### misses
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
misses: number;
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Defined in: [cache/ICacheStats.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/ICacheStats.ts#L21)
|
|
70
|
-
|
|
71
|
-
Number of cache misses.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Interface: IIntelligenceArtifact'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Interface: IIntelligenceArtifact
|
|
8
|
-
|
|
9
|
-
Defined in: [intelligence/contracts/IIntelligenceArtifact.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceArtifact.ts#L10)
|
|
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: [intelligence/contracts/IIntelligenceArtifact.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceArtifact.ts#L14)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### type
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
readonly type: string;
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Defined in: [intelligence/contracts/IIntelligenceArtifact.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceArtifact.ts#L13)
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Interface: IIntelligenceCapability'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Interface: IIntelligenceCapability
|
|
8
|
-
|
|
9
|
-
Defined in: [intelligence/contracts/IIntelligenceCapability.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/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: [intelligence/contracts/IIntelligenceCapability.ts:19](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapability.ts#L19)
|
|
22
|
-
|
|
23
|
-
## Methods
|
|
24
|
-
|
|
25
|
-
### canHandle()
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
canHandle(intent, context): boolean;
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Defined in: [intelligence/contracts/IIntelligenceCapability.ts:25](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapability.ts#L25)
|
|
32
|
-
|
|
33
|
-
#### Parameters
|
|
34
|
-
|
|
35
|
-
| Parameter | Type |
|
|
36
|
-
| --------- | -------------------------------------------------------- |
|
|
37
|
-
| `intent` | [`IIntelligenceIntent`](Interface.IIntelligenceIntent) |
|
|
38
|
-
| `context` | [`IIntelligenceContext`](Interface.IIntelligenceContext) |
|
|
39
|
-
|
|
40
|
-
#### Returns
|
|
41
|
-
|
|
42
|
-
`boolean`
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
### execute()
|
|
47
|
-
|
|
48
|
-
```ts
|
|
49
|
-
execute(payload): Promise<IIntelligenceCapabilityResult>;
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Defined in: [intelligence/contracts/IIntelligenceCapability.ts:26](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapability.ts#L26)
|
|
53
|
-
|
|
54
|
-
#### Parameters
|
|
55
|
-
|
|
56
|
-
| Parameter | Type |
|
|
57
|
-
| --------- | ---------------------------------------------------------------------------- |
|
|
58
|
-
| `payload` | [`IIntelligenceCapabilityPayload`](Interface.IIntelligenceCapabilityPayload) |
|
|
59
|
-
|
|
60
|
-
#### Returns
|
|
61
|
-
|
|
62
|
-
`Promise`\<[`IIntelligenceCapabilityResult`](Interface.IIntelligenceCapabilityResult)\>
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Interface: IIntelligenceCapabilityMetadata'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Interface: IIntelligenceCapabilityMetadata
|
|
8
|
-
|
|
9
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityMetadata.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityMetadata.ts#L10)
|
|
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: [intelligence/contracts/IIntelligenceCapabilityMetadata.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityMetadata.ts#L15)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### id
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
readonly id: string;
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityMetadata.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityMetadata.ts#L13)
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
### intentName
|
|
36
|
-
|
|
37
|
-
```ts
|
|
38
|
-
readonly intentName: string;
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityMetadata.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityMetadata.ts#L17)
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
### name
|
|
46
|
-
|
|
47
|
-
```ts
|
|
48
|
-
readonly name: string;
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityMetadata.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityMetadata.ts#L14)
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
### priority
|
|
56
|
-
|
|
57
|
-
```ts
|
|
58
|
-
readonly priority: number;
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityMetadata.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityMetadata.ts#L16)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Interface: IIntelligenceCapabilityPayload'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Interface: IIntelligenceCapabilityPayload
|
|
8
|
-
|
|
9
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityPayload.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/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: [intelligence/contracts/IIntelligenceCapabilityPayload.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityPayload.ts#L17)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### intent
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
readonly intent: IIntelligenceIntent;
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityPayload.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityPayload.ts#L16)
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
### userMessage
|
|
36
|
-
|
|
37
|
-
```ts
|
|
38
|
-
readonly userMessage: string;
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Defined in: [intelligence/contracts/IIntelligenceCapabilityPayload.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/intelligence/contracts/IIntelligenceCapabilityPayload.ts#L18)
|