@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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '@breadstone/archipel-platform-intelligence'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# @breadstone/archipel-platform-intelligence
|
|
8
|
+
|
|
9
|
+
## Classes
|
|
10
|
+
|
|
11
|
+
| Class | Description |
|
|
12
|
+
| -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
13
|
+
| [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. |
|
|
14
|
+
| [IntelligenceCapabilityRegistry](Class.IntelligenceCapabilityRegistry) | Central registry responsible for resolving intelligence capabilities based on intent metadata. |
|
|
15
|
+
| [IntelligenceModule](Class.IntelligenceModule) | Core module exposing the shared intelligence infrastructure to feature modules. |
|
|
16
|
+
| [IntelligenceTextGenerator](Class.IntelligenceTextGenerator) | Executes text completions using the configured intelligence provider. |
|
|
17
|
+
|
|
18
|
+
## Interfaces
|
|
19
|
+
|
|
20
|
+
| Interface | Description |
|
|
21
|
+
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
22
|
+
| [IIntelligenceArtifact](Interface.IIntelligenceArtifact) | Represents a structured artifact returned by a capability. |
|
|
23
|
+
| [IIntelligenceCapability](Interface.IIntelligenceCapability) | Abstraction implemented by all capability providers. |
|
|
24
|
+
| [IIntelligenceCapabilityMetadata](Interface.IIntelligenceCapabilityMetadata) | Metadata describing a capability for orchestration and analytics purposes. |
|
|
25
|
+
| [IIntelligenceCapabilityPayload](Interface.IIntelligenceCapabilityPayload) | Payload forwarded to capabilities for execution. |
|
|
26
|
+
| [IIntelligenceCapabilityRegistry](Interface.IIntelligenceCapabilityRegistry) | Registry abstraction responsible for resolving capabilities. |
|
|
27
|
+
| [IIntelligenceCapabilityResult](Interface.IIntelligenceCapabilityResult) | Represents the outcome produced by a capability execution. |
|
|
28
|
+
| [IIntelligenceCompletionUsage](Interface.IIntelligenceCompletionUsage) | Captures usage telemetry returned by the intelligence provider. |
|
|
29
|
+
| [IIntelligenceContext](Interface.IIntelligenceContext) | Describes the context aggregated before routing a request to a capability. |
|
|
30
|
+
| [IIntelligenceContextBuilder](Interface.IIntelligenceContextBuilder) | Responsible for composing the context supplied to capabilities. |
|
|
31
|
+
| [IIntelligenceConversationMessageSnapshot](Interface.IIntelligenceConversationMessageSnapshot) | Represents a single message returned within a conversation snapshot. |
|
|
32
|
+
| [IIntelligenceConversationSnapshot](Interface.IIntelligenceConversationSnapshot) | Represents a lightweight snapshot of a conversation used for context building. |
|
|
33
|
+
| [IIntelligenceFollowUpQuestion](Interface.IIntelligenceFollowUpQuestion) | Represents a follow-up question suggested to keep the dialogue active. |
|
|
34
|
+
| [IIntelligenceIntent](Interface.IIntelligenceIntent) | Represents the structured intent resolved from a user message. |
|
|
35
|
+
| [IIntelligenceIntentEntity](Interface.IIntelligenceIntentEntity) | Represents an entity extracted from a resolved intelligence intent. |
|
|
36
|
+
| [IIntelligenceMessageModel](Interface.IIntelligenceMessageModel) | Represents a normalized message stored in persistence. |
|
|
37
|
+
| [IIntelligenceMessagePayload](Interface.IIntelligenceMessagePayload) | Carries the payload submitted when messaging the intelligence entrypoint. |
|
|
38
|
+
| [IIntelligencePrompt](Interface.IIntelligencePrompt) | Represents the input supplied to the intelligence text generator. |
|
|
39
|
+
| [IIntelligencePromptMessage](Interface.IIntelligencePromptMessage) | Describes a normalized message used for text generation prompts. |
|
|
40
|
+
| [IIntelligenceProviderConfiguration](Interface.IIntelligenceProviderConfiguration) | Describes the resolved configuration for the intelligence provider. |
|
|
41
|
+
| [IIntelligenceResponseMessage](Interface.IIntelligenceResponseMessage) | Represents a single assistant message returned by a capability. |
|
|
42
|
+
| [IIntelligenceTextCompletion](Interface.IIntelligenceTextCompletion) | Represents the normalized completion result produced by the intelligence provider. |
|
|
43
|
+
| [IIntelligenceTextGenerationOptions](Interface.IIntelligenceTextGenerationOptions) | Options that can be supplied when generating text with the intelligence provider. |
|
|
44
|
+
| [IIntelligenceTextGenerator](Interface.IIntelligenceTextGenerator) | Abstraction responsible for executing text completions using the configured provider. |
|
|
45
|
+
|
|
46
|
+
## Type Aliases
|
|
47
|
+
|
|
48
|
+
| Type Alias | Description |
|
|
49
|
+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
50
|
+
| [IntelligenceConversationMessageRole](TypeAlias.IntelligenceConversationMessageRole) | Represents the union of supported conversation message roles. |
|
|
51
|
+
| [IntelligenceLanguageModelLoader](TypeAlias.IntelligenceLanguageModelLoader) | Represents a factory responsible for resolving a configured language model instance. |
|
|
52
|
+
| [IntelligenceProviderName](TypeAlias.IntelligenceProviderName) | Represents the union of supported intelligence provider identifiers. |
|
|
53
|
+
|
|
54
|
+
## Variables
|
|
55
|
+
|
|
56
|
+
| Variable | Description |
|
|
57
|
+
| ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
|
58
|
+
| [IntelligenceConversationMessageRoles](Variable.IntelligenceConversationMessageRoles) | Enumerates the conversation roles used for contextual snapshots and messages. |
|
|
59
|
+
| [IntelligenceProviderNames](Variable.IntelligenceProviderNames) | Enumerates the supported model providers powering the intelligence pipeline. |
|
|
60
|
+
|
|
61
|
+
## Functions
|
|
62
|
+
|
|
63
|
+
| Function | Description |
|
|
64
|
+
| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
65
|
+
| [createProviderOptions](Function.createProviderOptions) | Creates the provider options object consumed by the AI SDK model factories. |
|
|
66
|
+
| [loadAnthropicLanguageModel](Function.loadAnthropicLanguageModel) | Loads the Anthropic language model based on the resolved provider configuration. |
|
|
67
|
+
| [loadGoogleLanguageModel](Function.loadGoogleLanguageModel) | Loads the Google (Gemini) language model based on the resolved provider configuration. |
|
|
68
|
+
| [loadGrokLanguageModel](Function.loadGrokLanguageModel) | Loads the Grok (xAI) language model based on the resolved provider configuration. |
|
|
69
|
+
| [loadOpenAILanguageModel](Function.loadOpenAILanguageModel) | Loads the OpenAI compatible language model based on the resolved provider configuration. |
|
|
70
|
+
| [loadProviderFactory](Function.loadProviderFactory) | Dynamically loads an AI SDK provider factory and returns the exported function reference. |
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: platform-intelligence
|
|
3
|
+
description: Multi-provider AI text generation with capability registry and intent-based orchestration.
|
|
4
|
+
order: 16
|
|
5
|
+
tags: [intelligence, ai, openai, anthropic, google, grok, text-generation, capability-registry]
|
|
6
|
+
package: '@breadstone/archipel-platform-intelligence'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# platform-intelligence
|
|
10
|
+
|
|
11
|
+
Multi-provider AI text generation library supporting OpenAI, Anthropic, Google Generative AI, and Grok. Features a capability registry that maps business intents to provider-specific configurations, enabling intent-based orchestration without coupling consumers to a specific LLM.
|
|
12
|
+
|
|
13
|
+
**Package:** `@breadstone/archipel-platform-intelligence`
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { Module } from '@nestjs/common';
|
|
19
|
+
import { IntelligenceModule } from '@breadstone/archipel-platform-intelligence';
|
|
20
|
+
|
|
21
|
+
@Module({
|
|
22
|
+
imports: [IntelligenceModule],
|
|
23
|
+
})
|
|
24
|
+
export class AppModule {}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Provider Packages
|
|
30
|
+
|
|
31
|
+
Install only the providers you need:
|
|
32
|
+
|
|
33
|
+
| Provider | Package |
|
|
34
|
+
| --------- | ------------------------------------------------------ |
|
|
35
|
+
| OpenAI | `@breadstone/archipel-platform-intelligence/openai` |
|
|
36
|
+
| Anthropic | `@breadstone/archipel-platform-intelligence/anthropic` |
|
|
37
|
+
| Google | `@breadstone/archipel-platform-intelligence/google` |
|
|
38
|
+
| Grok | `@breadstone/archipel-platform-intelligence/grok` |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Text Generation
|
|
43
|
+
|
|
44
|
+
Inject `IntelligenceTextGenerator` and call `generateText()`:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
import { Injectable } from '@nestjs/common';
|
|
48
|
+
import { IntelligenceTextGenerator, IIntelligencePrompt } from '@breadstone/archipel-platform-intelligence';
|
|
49
|
+
|
|
50
|
+
@Injectable()
|
|
51
|
+
export class SummaryService {
|
|
52
|
+
constructor(private readonly _textGenerator: IntelligenceTextGenerator) {}
|
|
53
|
+
|
|
54
|
+
async summarize(content: string): Promise<string> {
|
|
55
|
+
const prompt: IIntelligencePrompt = {
|
|
56
|
+
system: 'You are a concise summarizer.',
|
|
57
|
+
messages: [{ role: 'user', content }],
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const result = await this._textGenerator.generateText(prompt, {
|
|
61
|
+
provider: 'openai',
|
|
62
|
+
model: 'gpt-4o',
|
|
63
|
+
temperature: 0.3,
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
return result.text;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Capability Registry
|
|
74
|
+
|
|
75
|
+
The capability registry decouples consumers from specific providers and models by mapping business intents to configurations.
|
|
76
|
+
|
|
77
|
+
### Defining Capabilities
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { IIntelligenceCapability } from '@breadstone/archipel-platform-intelligence';
|
|
81
|
+
|
|
82
|
+
const SUMMARIZE_CAPABILITY: IIntelligenceCapability = {
|
|
83
|
+
intent: 'summarize',
|
|
84
|
+
provider: 'openai',
|
|
85
|
+
model: 'gpt-4o',
|
|
86
|
+
temperature: 0.3,
|
|
87
|
+
maxTokens: 1024,
|
|
88
|
+
};
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Registering via IntelligenceCapabilityRegistrarBase
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
import { Injectable } from '@nestjs/common';
|
|
95
|
+
import {
|
|
96
|
+
IntelligenceCapabilityRegistrarBase,
|
|
97
|
+
IIntelligenceCapabilityRegistry,
|
|
98
|
+
} from '@breadstone/archipel-platform-intelligence';
|
|
99
|
+
|
|
100
|
+
@Injectable()
|
|
101
|
+
export class AppCapabilityRegistrar extends IntelligenceCapabilityRegistrarBase {
|
|
102
|
+
protected registerCapabilities(registry: IIntelligenceCapabilityRegistry): void {
|
|
103
|
+
registry.register(SUMMARIZE_CAPABILITY);
|
|
104
|
+
registry.register(TRANSLATE_CAPABILITY);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Resolving at Runtime
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
const capability = this._registry.resolve('summarize');
|
|
113
|
+
const result = await this._textGenerator.generateText(prompt, capability);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Environment Variables
|
|
119
|
+
|
|
120
|
+
| Variable | Description | Required |
|
|
121
|
+
| -------------------------------- | ---------------------------- | ------------------ |
|
|
122
|
+
| `INTELLIGENCE_OPENAI_API_KEY` | OpenAI API key | If using OpenAI |
|
|
123
|
+
| `INTELLIGENCE_ANTHROPIC_API_KEY` | Anthropic API key | If using Anthropic |
|
|
124
|
+
| `INTELLIGENCE_GOOGLE_API_KEY` | Google Generative AI API key | If using Google |
|
|
125
|
+
| `INTELLIGENCE_GROK_API_KEY` | Grok / xAI API key | If using Grok |
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## API Reference
|
|
130
|
+
|
|
131
|
+
See the full [API documentation](./api/) for all exported types, interfaces, and classes.
|
|
@@ -49,9 +49,9 @@ Records a cache eviction.
|
|
|
49
49
|
|
|
50
50
|
#### Parameters
|
|
51
51
|
|
|
52
|
-
| Parameter | Type | Description
|
|
53
|
-
| --------- | -------- |
|
|
54
|
-
| `cache` | `string` | The cache name/label |
|
|
52
|
+
| Parameter | Type | Description |
|
|
53
|
+
| --------- | -------- | ----------------------- |
|
|
54
|
+
| `cache` | `string` | The cache name / label. |
|
|
55
55
|
|
|
56
56
|
#### Returns
|
|
57
57
|
|
|
@@ -77,9 +77,9 @@ Records a cache hit.
|
|
|
77
77
|
|
|
78
78
|
#### Parameters
|
|
79
79
|
|
|
80
|
-
| Parameter | Type | Description
|
|
81
|
-
| --------- | -------- |
|
|
82
|
-
| `cache` | `string` | The cache name/label |
|
|
80
|
+
| Parameter | Type | Description |
|
|
81
|
+
| --------- | -------- | ----------------------- |
|
|
82
|
+
| `cache` | `string` | The cache name / label. |
|
|
83
83
|
|
|
84
84
|
#### Returns
|
|
85
85
|
|
|
@@ -105,9 +105,9 @@ Records a failed cache load.
|
|
|
105
105
|
|
|
106
106
|
#### Parameters
|
|
107
107
|
|
|
108
|
-
| Parameter | Type | Description
|
|
109
|
-
| --------- | -------- |
|
|
110
|
-
| `cache` | `string` | The cache name/label |
|
|
108
|
+
| Parameter | Type | Description |
|
|
109
|
+
| --------- | -------- | ----------------------- |
|
|
110
|
+
| `cache` | `string` | The cache name / label. |
|
|
111
111
|
|
|
112
112
|
#### Returns
|
|
113
113
|
|
|
@@ -133,9 +133,9 @@ Records a successful cache load.
|
|
|
133
133
|
|
|
134
134
|
#### Parameters
|
|
135
135
|
|
|
136
|
-
| Parameter | Type | Description
|
|
137
|
-
| --------- | -------- |
|
|
138
|
-
| `cache` | `string` | The cache name/label |
|
|
136
|
+
| Parameter | Type | Description |
|
|
137
|
+
| --------- | -------- | ----------------------- |
|
|
138
|
+
| `cache` | `string` | The cache name / label. |
|
|
139
139
|
|
|
140
140
|
#### Returns
|
|
141
141
|
|
|
@@ -161,9 +161,9 @@ Records a cache miss.
|
|
|
161
161
|
|
|
162
162
|
#### Parameters
|
|
163
163
|
|
|
164
|
-
| Parameter | Type | Description
|
|
165
|
-
| --------- | -------- |
|
|
166
|
-
| `cache` | `string` | The cache name/label |
|
|
164
|
+
| Parameter | Type | Description |
|
|
165
|
+
| --------- | -------- | ----------------------- |
|
|
166
|
+
| `cache` | `string` | The cache name / label. |
|
|
167
167
|
|
|
168
168
|
#### Returns
|
|
169
169
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone/archipel-mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "MCP server providing Archipel platform knowledge — documentation, query patterns, and coding conventions — to AI development tools.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/main.js",
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Class: BcryptService'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Class: BcryptService
|
|
8
|
-
|
|
9
|
-
Defined in: [services/BcryptService.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/services/BcryptService.ts#L15)
|
|
10
|
-
|
|
11
|
-
The `BcryptService` class.
|
|
12
|
-
Represents the service that provides bcrypt operations.
|
|
13
|
-
|
|
14
|
-
## Constructors
|
|
15
|
-
|
|
16
|
-
### Constructor
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
new BcryptService(): BcryptService;
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
#### Returns
|
|
23
|
-
|
|
24
|
-
`BcryptService`
|
|
25
|
-
|
|
26
|
-
## Methods
|
|
27
|
-
|
|
28
|
-
### compare()
|
|
29
|
-
|
|
30
|
-
```ts
|
|
31
|
-
compare(data, encrypted): Promise<boolean>;
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Defined in: [services/BcryptService.ts:37](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/services/BcryptService.ts#L37)
|
|
35
|
-
|
|
36
|
-
Compares the given data with the encrypted data.
|
|
37
|
-
|
|
38
|
-
#### Parameters
|
|
39
|
-
|
|
40
|
-
| Parameter | Type | Description |
|
|
41
|
-
| ----------- | -------- | --------------------------------- |
|
|
42
|
-
| `data` | `string` | The data to be compared |
|
|
43
|
-
| `encrypted` | `string` | The encrypted data to be compared |
|
|
44
|
-
|
|
45
|
-
#### Returns
|
|
46
|
-
|
|
47
|
-
`Promise`\<`boolean`\>
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
### hash()
|
|
52
|
-
|
|
53
|
-
```ts
|
|
54
|
-
hash(data): Promise<string>;
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Defined in: [services/BcryptService.ts:25](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/services/BcryptService.ts#L25)
|
|
58
|
-
|
|
59
|
-
Hashes the given data.
|
|
60
|
-
|
|
61
|
-
#### Parameters
|
|
62
|
-
|
|
63
|
-
| Parameter | Type | Description |
|
|
64
|
-
| --------- | -------- | --------------------- |
|
|
65
|
-
| `data` | `string` | The data to be hashed |
|
|
66
|
-
|
|
67
|
-
#### Returns
|
|
68
|
-
|
|
69
|
-
`Promise`\<`string`\>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Class: CryptoService'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Class: CryptoService
|
|
8
|
-
|
|
9
|
-
Defined in: [services/CryptoService.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/services/CryptoService.ts#L15)
|
|
10
|
-
|
|
11
|
-
The `CryptoService` class.
|
|
12
|
-
Represents the service that provides cryptographic operations.
|
|
13
|
-
|
|
14
|
-
## Constructors
|
|
15
|
-
|
|
16
|
-
### Constructor
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
new CryptoService(): CryptoService;
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Defined in: [services/CryptoService.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/services/CryptoService.ts#L22)
|
|
23
|
-
|
|
24
|
-
Initializes a new instance of the `CryptoService` class.
|
|
25
|
-
|
|
26
|
-
#### Returns
|
|
27
|
-
|
|
28
|
-
`CryptoService`
|
|
29
|
-
|
|
30
|
-
## Methods
|
|
31
|
-
|
|
32
|
-
### getRandomGuid()
|
|
33
|
-
|
|
34
|
-
```ts
|
|
35
|
-
getRandomGuid(prefix): string;
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Defined in: [services/CryptoService.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/services/CryptoService.ts#L36)
|
|
39
|
-
|
|
40
|
-
Hashes the given data.
|
|
41
|
-
|
|
42
|
-
#### Parameters
|
|
43
|
-
|
|
44
|
-
| Parameter | Type |
|
|
45
|
-
| --------- | -------- |
|
|
46
|
-
| `prefix` | `string` |
|
|
47
|
-
|
|
48
|
-
#### Returns
|
|
49
|
-
|
|
50
|
-
`string`
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Class: NoopCacheMetricsRecorder'
|
|
3
|
-
generated: true
|
|
4
|
-
editUrl: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Class: NoopCacheMetricsRecorder
|
|
8
|
-
|
|
9
|
-
Defined in: [cache/NoopCacheMetricsRecorder.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/NoopCacheMetricsRecorder.ts#L12)
|
|
10
|
-
|
|
11
|
-
No-op implementation used when no metrics backend is configured.
|
|
12
|
-
|
|
13
|
-
## Implements
|
|
14
|
-
|
|
15
|
-
- [`ICacheMetricsRecorder`](Interface.ICacheMetricsRecorder)
|
|
16
|
-
|
|
17
|
-
## Constructors
|
|
18
|
-
|
|
19
|
-
### Constructor
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
new NoopCacheMetricsRecorder(): NoopCacheMetricsRecorder;
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
#### Returns
|
|
26
|
-
|
|
27
|
-
`NoopCacheMetricsRecorder`
|
|
28
|
-
|
|
29
|
-
## Methods
|
|
30
|
-
|
|
31
|
-
### recordEviction()?
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
optional recordEviction(_cache): void;
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Defined in: [cache/NoopCacheMetricsRecorder.ts:62](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/NoopCacheMetricsRecorder.ts#L62)
|
|
38
|
-
|
|
39
|
-
Records a cache eviction.
|
|
40
|
-
|
|
41
|
-
#### Parameters
|
|
42
|
-
|
|
43
|
-
| Parameter | Type | Description |
|
|
44
|
-
| --------- | -------- | -------------------- |
|
|
45
|
-
| `_cache` | `string` | The cache name/label |
|
|
46
|
-
|
|
47
|
-
#### Returns
|
|
48
|
-
|
|
49
|
-
`void`
|
|
50
|
-
|
|
51
|
-
#### Implementation of
|
|
52
|
-
|
|
53
|
-
[`ICacheMetricsRecorder`](Interface.ICacheMetricsRecorder).[`recordEviction`](Interface.ICacheMetricsRecorder#recordeviction)
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
### recordHit()
|
|
58
|
-
|
|
59
|
-
```ts
|
|
60
|
-
recordHit(_cache): void;
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Defined in: [cache/NoopCacheMetricsRecorder.ts:22](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/NoopCacheMetricsRecorder.ts#L22)
|
|
64
|
-
|
|
65
|
-
Records a cache hit.
|
|
66
|
-
|
|
67
|
-
#### Parameters
|
|
68
|
-
|
|
69
|
-
| Parameter | Type | Description |
|
|
70
|
-
| --------- | -------- | -------------------- |
|
|
71
|
-
| `_cache` | `string` | The cache name/label |
|
|
72
|
-
|
|
73
|
-
#### Returns
|
|
74
|
-
|
|
75
|
-
`void`
|
|
76
|
-
|
|
77
|
-
#### Implementation of
|
|
78
|
-
|
|
79
|
-
[`ICacheMetricsRecorder`](Interface.ICacheMetricsRecorder).[`recordHit`](Interface.ICacheMetricsRecorder#recordhit)
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
### recordLoadError()
|
|
84
|
-
|
|
85
|
-
```ts
|
|
86
|
-
recordLoadError(_cache): void;
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Defined in: [cache/NoopCacheMetricsRecorder.ts:52](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/NoopCacheMetricsRecorder.ts#L52)
|
|
90
|
-
|
|
91
|
-
Records a failed cache load.
|
|
92
|
-
|
|
93
|
-
#### Parameters
|
|
94
|
-
|
|
95
|
-
| Parameter | Type | Description |
|
|
96
|
-
| --------- | -------- | -------------------- |
|
|
97
|
-
| `_cache` | `string` | The cache name/label |
|
|
98
|
-
|
|
99
|
-
#### Returns
|
|
100
|
-
|
|
101
|
-
`void`
|
|
102
|
-
|
|
103
|
-
#### Implementation of
|
|
104
|
-
|
|
105
|
-
[`ICacheMetricsRecorder`](Interface.ICacheMetricsRecorder).[`recordLoadError`](Interface.ICacheMetricsRecorder#recordloaderror)
|
|
106
|
-
|
|
107
|
-
---
|
|
108
|
-
|
|
109
|
-
### recordLoadSuccess()
|
|
110
|
-
|
|
111
|
-
```ts
|
|
112
|
-
recordLoadSuccess(_cache): void;
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
Defined in: [cache/NoopCacheMetricsRecorder.ts:42](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/NoopCacheMetricsRecorder.ts#L42)
|
|
116
|
-
|
|
117
|
-
Records a successful cache load.
|
|
118
|
-
|
|
119
|
-
#### Parameters
|
|
120
|
-
|
|
121
|
-
| Parameter | Type | Description |
|
|
122
|
-
| --------- | -------- | -------------------- |
|
|
123
|
-
| `_cache` | `string` | The cache name/label |
|
|
124
|
-
|
|
125
|
-
#### Returns
|
|
126
|
-
|
|
127
|
-
`void`
|
|
128
|
-
|
|
129
|
-
#### Implementation of
|
|
130
|
-
|
|
131
|
-
[`ICacheMetricsRecorder`](Interface.ICacheMetricsRecorder).[`recordLoadSuccess`](Interface.ICacheMetricsRecorder#recordloadsuccess)
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
### recordMiss()
|
|
136
|
-
|
|
137
|
-
```ts
|
|
138
|
-
recordMiss(_cache): void;
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
Defined in: [cache/NoopCacheMetricsRecorder.ts:32](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/cache/NoopCacheMetricsRecorder.ts#L32)
|
|
142
|
-
|
|
143
|
-
Records a cache miss.
|
|
144
|
-
|
|
145
|
-
#### Parameters
|
|
146
|
-
|
|
147
|
-
| Parameter | Type | Description |
|
|
148
|
-
| --------- | -------- | -------------------- |
|
|
149
|
-
| `_cache` | `string` | The cache name/label |
|
|
150
|
-
|
|
151
|
-
#### Returns
|
|
152
|
-
|
|
153
|
-
`void`
|
|
154
|
-
|
|
155
|
-
#### Implementation of
|
|
156
|
-
|
|
157
|
-
[`ICacheMetricsRecorder`](Interface.ICacheMetricsRecorder).[`recordMiss`](Interface.ICacheMetricsRecorder#recordmiss)
|