@ever-works/grok-plugin 1.0.0 → 1.0.3

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.
@@ -0,0 +1,30 @@
1
+ import { BaseAiProvider } from '@ever-works/plugin/abstract';
2
+ import { JsonSchema, PluginContext, ChatCompletionOptions, ChatCompletionResponse, ChatCompletionChunk, EmbeddingOptions, EmbeddingResponse, PluginSettings, AiModel, AiModelCapabilities, PluginHealthCheck, PluginManifest } from '@ever-works/plugin';
3
+
4
+ /**
5
+ * Grok (xAI) AI provider plugin
6
+ *
7
+ * Provides AI capabilities through xAI's Grok models via their OpenAI-compatible API.
8
+ * Uses 'user-required' configuration mode - users MUST provide their own API key.
9
+ */
10
+ declare class GrokPlugin extends BaseAiProvider {
11
+ readonly id = "grok";
12
+ readonly name = "Grok (xAI)";
13
+ readonly version = "1.0.0";
14
+ readonly providerType = "grok";
15
+ readonly providerName = "xAI";
16
+ readonly configurationMode: 'admin-only' | 'user-required' | 'hybrid';
17
+ readonly settingsSchema: JsonSchema;
18
+ onLoad(context: PluginContext): Promise<void>;
19
+ onUnload(): Promise<void>;
20
+ createChatCompletion(options: ChatCompletionOptions): Promise<ChatCompletionResponse>;
21
+ createStreamingChatCompletion(options: ChatCompletionOptions): AsyncIterable<ChatCompletionChunk>;
22
+ createEmbedding(_options: EmbeddingOptions): Promise<EmbeddingResponse>;
23
+ listModels(settings?: PluginSettings): Promise<readonly AiModel[]>;
24
+ getCapabilities(): AiModelCapabilities;
25
+ protected getDefaultModelId(): string;
26
+ healthCheck(): Promise<PluginHealthCheck>;
27
+ getManifest(): PluginManifest;
28
+ }
29
+
30
+ export { GrokPlugin, GrokPlugin as default };
@@ -0,0 +1,30 @@
1
+ import { BaseAiProvider } from '@ever-works/plugin/abstract';
2
+ import { JsonSchema, PluginContext, ChatCompletionOptions, ChatCompletionResponse, ChatCompletionChunk, EmbeddingOptions, EmbeddingResponse, PluginSettings, AiModel, AiModelCapabilities, PluginHealthCheck, PluginManifest } from '@ever-works/plugin';
3
+
4
+ /**
5
+ * Grok (xAI) AI provider plugin
6
+ *
7
+ * Provides AI capabilities through xAI's Grok models via their OpenAI-compatible API.
8
+ * Uses 'user-required' configuration mode - users MUST provide their own API key.
9
+ */
10
+ declare class GrokPlugin extends BaseAiProvider {
11
+ readonly id = "grok";
12
+ readonly name = "Grok (xAI)";
13
+ readonly version = "1.0.0";
14
+ readonly providerType = "grok";
15
+ readonly providerName = "xAI";
16
+ readonly configurationMode: 'admin-only' | 'user-required' | 'hybrid';
17
+ readonly settingsSchema: JsonSchema;
18
+ onLoad(context: PluginContext): Promise<void>;
19
+ onUnload(): Promise<void>;
20
+ createChatCompletion(options: ChatCompletionOptions): Promise<ChatCompletionResponse>;
21
+ createStreamingChatCompletion(options: ChatCompletionOptions): AsyncIterable<ChatCompletionChunk>;
22
+ createEmbedding(_options: EmbeddingOptions): Promise<EmbeddingResponse>;
23
+ listModels(settings?: PluginSettings): Promise<readonly AiModel[]>;
24
+ getCapabilities(): AiModelCapabilities;
25
+ protected getDefaultModelId(): string;
26
+ healthCheck(): Promise<PluginHealthCheck>;
27
+ getManifest(): PluginManifest;
28
+ }
29
+
30
+ export { GrokPlugin, GrokPlugin as default };