@everworker/oneringai 0.4.8 → 0.5.0

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 (32) hide show
  1. package/README.md +423 -43
  2. package/dist/{ImageModel-1uP-2vk7.d.ts → ImageModel-CV8OuP3Z.d.ts} +10 -4
  3. package/dist/{ImageModel-BDI37OED.d.cts → ImageModel-OjV5NvLY.d.cts} +10 -4
  4. package/dist/capabilities/agents/index.cjs +9 -0
  5. package/dist/capabilities/agents/index.cjs.map +1 -1
  6. package/dist/capabilities/agents/index.d.cts +1 -1
  7. package/dist/capabilities/agents/index.d.ts +1 -1
  8. package/dist/capabilities/agents/index.js +9 -0
  9. package/dist/capabilities/agents/index.js.map +1 -1
  10. package/dist/capabilities/images/index.cjs +262 -15
  11. package/dist/capabilities/images/index.cjs.map +1 -1
  12. package/dist/capabilities/images/index.d.cts +1 -1
  13. package/dist/capabilities/images/index.d.ts +1 -1
  14. package/dist/capabilities/images/index.js +262 -15
  15. package/dist/capabilities/images/index.js.map +1 -1
  16. package/dist/index-BlEwczd4.d.ts +320 -0
  17. package/dist/index-DrJYI_0l.d.cts +320 -0
  18. package/dist/{index-13HQuxEB.d.ts → index-hmTj59TM.d.ts} +352 -29
  19. package/dist/{index-Cbd5vY_8.d.cts → index-t4cRhBZW.d.cts} +352 -29
  20. package/dist/index.cjs +15543 -4232
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +3043 -586
  23. package/dist/index.d.ts +3043 -586
  24. package/dist/index.js +14567 -3281
  25. package/dist/index.js.map +1 -1
  26. package/dist/shared/index.cjs +596 -7
  27. package/dist/shared/index.cjs.map +1 -1
  28. package/dist/shared/index.d.cts +2 -284
  29. package/dist/shared/index.d.ts +2 -284
  30. package/dist/shared/index.js +596 -7
  31. package/dist/shared/index.js.map +1 -1
  32. package/package.json +1 -1
@@ -1,284 +1,2 @@
1
- import { V as Vendor } from '../Vendor-DYh_bzwo.cjs';
2
- export { a as VENDORS, i as isVendor } from '../Vendor-DYh_bzwo.cjs';
3
-
4
- /**
5
- * Complete description of an LLM model including capabilities, pricing, and features
6
- */
7
- interface ILLMDescription {
8
- /** Model identifier (e.g., "gpt-5.2-instant") */
9
- name: string;
10
- /** Vendor/provider (Vendor.OpenAI, Vendor.Anthropic, etc.) */
11
- provider: string;
12
- /** Optional description of the model */
13
- description?: string;
14
- /** Whether the model is currently available for use */
15
- isActive: boolean;
16
- /** Whether this model is a preferred/recommended choice for its vendor */
17
- preferred?: boolean;
18
- /** Release date (YYYY-MM-DD format) */
19
- releaseDate?: string;
20
- /** Knowledge cutoff date */
21
- knowledgeCutoff?: string;
22
- /** Model capabilities and pricing */
23
- features: {
24
- /** Supports extended reasoning/thinking */
25
- reasoning?: boolean;
26
- /** Supports streaming responses */
27
- streaming: boolean;
28
- /** Supports structured output (JSON mode) */
29
- structuredOutput?: boolean;
30
- /** Supports function/tool calling */
31
- functionCalling?: boolean;
32
- /** Supports fine-tuning */
33
- fineTuning?: boolean;
34
- /** Supports predicted outputs */
35
- predictedOutputs?: boolean;
36
- /** Supports realtime API */
37
- realtime?: boolean;
38
- /** Supports image input (vision) */
39
- vision?: boolean;
40
- /** Supports audio input/output */
41
- audio?: boolean;
42
- /** Supports video input */
43
- video?: boolean;
44
- /** Supports extended thinking (Claude-specific) */
45
- extendedThinking?: boolean;
46
- /** Supports batch API */
47
- batchAPI?: boolean;
48
- /** Supports prompt caching */
49
- promptCaching?: boolean;
50
- /** Parameter support - indicates which sampling parameters are supported */
51
- parameters?: {
52
- /** Supports temperature parameter */
53
- temperature?: boolean;
54
- /** Supports top_p parameter */
55
- topP?: boolean;
56
- /** Supports frequency_penalty parameter */
57
- frequencyPenalty?: boolean;
58
- /** Supports presence_penalty parameter */
59
- presencePenalty?: boolean;
60
- };
61
- /** Input specifications */
62
- input: {
63
- /** Maximum input context window (in tokens) */
64
- tokens: number;
65
- /** Supports text input */
66
- text: boolean;
67
- /** Supports image input */
68
- image?: boolean;
69
- /** Supports audio input */
70
- audio?: boolean;
71
- /** Supports video input */
72
- video?: boolean;
73
- /** Cost per million tokens (input) */
74
- cpm: number;
75
- /** Cost per million cached tokens (if prompt caching supported) */
76
- cpmCached?: number;
77
- };
78
- /** Output specifications */
79
- output: {
80
- /** Maximum output tokens */
81
- tokens: number;
82
- /** Supports text output */
83
- text: boolean;
84
- /** Supports image output */
85
- image?: boolean;
86
- /** Supports audio output */
87
- audio?: boolean;
88
- /** Cost per million tokens (output) */
89
- cpm: number;
90
- };
91
- };
92
- }
93
- /**
94
- * Model name constants organized by vendor
95
- * Updated: March 2026 - Contains only verified, currently available models
96
- */
97
- declare const LLM_MODELS: {
98
- readonly openai: {
99
- readonly GPT_5_3_CODEX: "gpt-5.3-codex";
100
- readonly GPT_5_3_CHAT: "gpt-5.3-chat-latest";
101
- readonly GPT_5_2: "gpt-5.2";
102
- readonly GPT_5_2_PRO: "gpt-5.2-pro";
103
- readonly GPT_5_2_CODEX: "gpt-5.2-codex";
104
- readonly GPT_5_2_CHAT: "gpt-5.2-chat-latest";
105
- readonly GPT_5_1: "gpt-5.1";
106
- readonly GPT_5_1_CODEX: "gpt-5.1-codex";
107
- readonly GPT_5_1_CODEX_MAX: "gpt-5.1-codex-max";
108
- readonly GPT_5_1_CODEX_MINI: "gpt-5.1-codex-mini";
109
- readonly GPT_5_1_CHAT: "gpt-5.1-chat-latest";
110
- readonly GPT_5: "gpt-5";
111
- readonly GPT_5_MINI: "gpt-5-mini";
112
- readonly GPT_5_NANO: "gpt-5-nano";
113
- readonly GPT_5_CHAT: "gpt-5-chat-latest";
114
- readonly GPT_4_1: "gpt-4.1";
115
- readonly GPT_4_1_MINI: "gpt-4.1-mini";
116
- readonly GPT_4_1_NANO: "gpt-4.1-nano";
117
- readonly GPT_4O: "gpt-4o";
118
- readonly GPT_4O_MINI: "gpt-4o-mini";
119
- readonly O3_MINI: "o3-mini";
120
- readonly O1: "o1";
121
- };
122
- readonly anthropic: {
123
- readonly CLAUDE_OPUS_4_6: "claude-opus-4-6";
124
- readonly CLAUDE_SONNET_4_6: "claude-sonnet-4-6";
125
- readonly CLAUDE_OPUS_4_5: "claude-opus-4-5-20251101";
126
- readonly CLAUDE_SONNET_4_5: "claude-sonnet-4-5-20250929";
127
- readonly CLAUDE_HAIKU_4_5: "claude-haiku-4-5-20251001";
128
- readonly CLAUDE_OPUS_4_1: "claude-opus-4-1-20250805";
129
- readonly CLAUDE_OPUS_4: "claude-opus-4-20250514";
130
- readonly CLAUDE_SONNET_4: "claude-sonnet-4-20250514";
131
- readonly CLAUDE_SONNET_3_7: "claude-3-7-sonnet-20250219";
132
- readonly CLAUDE_HAIKU_3: "claude-3-haiku-20240307";
133
- };
134
- readonly google: {
135
- readonly GEMINI_3_1_PRO_PREVIEW: "gemini-3.1-pro-preview";
136
- readonly GEMINI_3_1_FLASH_LITE_PREVIEW: "gemini-3.1-flash-lite-preview";
137
- readonly GEMINI_3_1_FLASH_IMAGE_PREVIEW: "gemini-3.1-flash-image-preview";
138
- readonly GEMINI_3_FLASH_PREVIEW: "gemini-3-flash-preview";
139
- readonly GEMINI_3_PRO_PREVIEW: "gemini-3-pro-preview";
140
- readonly GEMINI_3_PRO_IMAGE_PREVIEW: "gemini-3-pro-image-preview";
141
- readonly GEMINI_2_5_PRO: "gemini-2.5-pro";
142
- readonly GEMINI_2_5_FLASH: "gemini-2.5-flash";
143
- readonly GEMINI_2_5_FLASH_LITE: "gemini-2.5-flash-lite";
144
- readonly GEMINI_2_5_FLASH_IMAGE: "gemini-2.5-flash-image";
145
- };
146
- readonly grok: {
147
- readonly GROK_4_1_FAST_REASONING: "grok-4-1-fast-reasoning";
148
- readonly GROK_4_1_FAST_NON_REASONING: "grok-4-1-fast-non-reasoning";
149
- readonly GROK_4_FAST_REASONING: "grok-4-fast-reasoning";
150
- readonly GROK_4_FAST_NON_REASONING: "grok-4-fast-non-reasoning";
151
- readonly GROK_4_0709: "grok-4-0709";
152
- readonly GROK_CODE_FAST_1: "grok-code-fast-1";
153
- readonly GROK_3: "grok-3";
154
- readonly GROK_3_MINI: "grok-3-mini";
155
- readonly GROK_2_VISION_1212: "grok-2-vision-1212";
156
- };
157
- };
158
- /**
159
- * Complete model registry with all model metadata
160
- * Updated: March 2026 - Verified from official vendor documentation
161
- */
162
- declare const MODEL_REGISTRY: Record<string, ILLMDescription>;
163
- /**
164
- * Get model information by name
165
- * @param modelName The model identifier
166
- * @returns Model description or undefined if not found
167
- */
168
- declare function getModelInfo(modelName: string): ILLMDescription | undefined;
169
- /**
170
- * Get all models for a specific vendor
171
- * @param vendor The vendor to filter by
172
- * @returns Array of model descriptions for the vendor
173
- */
174
- declare function getModelsByVendor(vendor: Vendor): ILLMDescription[];
175
- /**
176
- * Get all currently active models
177
- * @returns Array of active model descriptions
178
- */
179
- declare function getActiveModels(): ILLMDescription[];
180
- /**
181
- * Calculate the cost for a given model and token usage
182
- * @param model Model name
183
- * @param inputTokens Number of input tokens
184
- * @param outputTokens Number of output tokens
185
- * @param options Optional calculation options
186
- * @returns Total cost in dollars, or null if model not found
187
- */
188
- declare function calculateCost(model: string, inputTokens: number, outputTokens: number, options?: {
189
- useCachedInput?: boolean;
190
- }): number | null;
191
-
192
- /**
193
- * Services - Single source of truth for external service definitions
194
- *
195
- * All service metadata is defined in one place (SERVICE_DEFINITIONS).
196
- * Other exports are derived from this to maintain DRY principles.
197
- */
198
- /**
199
- * Service category type
200
- */
201
- type ServiceCategory = 'major-vendors' | 'communication' | 'development' | 'productivity' | 'crm' | 'payments' | 'cloud' | 'storage' | 'email' | 'monitoring' | 'search' | 'scrape' | 'other';
202
- /**
203
- * Complete service definition - single source of truth
204
- */
205
- interface ServiceDefinition {
206
- /** Unique identifier (e.g., 'slack', 'github') */
207
- id: string;
208
- /** Human-readable name (e.g., 'Slack', 'GitHub') */
209
- name: string;
210
- /** Service category */
211
- category: ServiceCategory;
212
- /** URL pattern for auto-detection from baseURL */
213
- urlPattern: RegExp;
214
- /** Default base URL for API calls */
215
- baseURL: string;
216
- /** Documentation URL */
217
- docsURL?: string;
218
- /** Common OAuth scopes */
219
- commonScopes?: string[];
220
- }
221
- /**
222
- * Master list of all service definitions
223
- * This is the SINGLE SOURCE OF TRUTH - all other exports derive from this
224
- */
225
- declare const SERVICE_DEFINITIONS: readonly ServiceDefinition[];
226
- /**
227
- * Service type - union of all service IDs
228
- */
229
- type ServiceType = (typeof SERVICE_DEFINITIONS)[number]['id'];
230
- /**
231
- * Services constant object for easy access
232
- * Usage: Services.Slack, Services.GitHub, etc.
233
- */
234
- declare const Services: { [K in string]: ServiceType; };
235
- /**
236
- * URL patterns for auto-detection (derived from SERVICE_DEFINITIONS)
237
- */
238
- declare const SERVICE_URL_PATTERNS: ReadonlyArray<{
239
- service: string;
240
- pattern: RegExp;
241
- }>;
242
- /**
243
- * Service info lookup (derived from SERVICE_DEFINITIONS)
244
- */
245
- interface ServiceInfo {
246
- id: string;
247
- name: string;
248
- category: ServiceCategory;
249
- baseURL: string;
250
- docsURL?: string;
251
- commonScopes?: string[];
252
- }
253
- /**
254
- * Service info map (derived from SERVICE_DEFINITIONS)
255
- */
256
- declare const SERVICE_INFO: Record<string, ServiceInfo>;
257
- /**
258
- * Detect service type from a URL
259
- * @param url - Base URL or full URL to check
260
- * @returns Service type string or undefined if not recognized
261
- */
262
- declare function detectServiceFromURL(url: string): string | undefined;
263
- /**
264
- * Get service info by service type
265
- */
266
- declare function getServiceInfo(serviceType: string): ServiceInfo | undefined;
267
- /**
268
- * Get service definition by service type
269
- */
270
- declare function getServiceDefinition(serviceType: string): ServiceDefinition | undefined;
271
- /**
272
- * Get all services in a category
273
- */
274
- declare function getServicesByCategory(category: ServiceCategory): ServiceDefinition[];
275
- /**
276
- * Get all service IDs
277
- */
278
- declare function getAllServiceIds(): string[];
279
- /**
280
- * Check if a service ID is known
281
- */
282
- declare function isKnownService(serviceId: string): boolean;
283
-
284
- export { type ILLMDescription, LLM_MODELS, MODEL_REGISTRY, SERVICE_DEFINITIONS, SERVICE_INFO, SERVICE_URL_PATTERNS, type ServiceCategory, type ServiceDefinition, type ServiceInfo, type ServiceType, Services, Vendor, Vendor as VendorType, calculateCost, detectServiceFromURL, getActiveModels, getAllServiceIds, getModelInfo, getModelsByVendor, getServiceDefinition, getServiceInfo, getServicesByCategory, isKnownService };
1
+ export { a as VENDORS, V as Vendor, V as VendorType, i as isVendor } from '../Vendor-DYh_bzwo.cjs';
2
+ export { a as ILLMDescription, L as LLM_MODELS, M as MODEL_REGISTRY, b as SERVICE_DEFINITIONS, c as SERVICE_INFO, d as SERVICE_URL_PATTERNS, S as ServiceCategory, e as ServiceDefinition, f as ServiceInfo, g as ServiceType, h as Services, i as calculateCost, j as detectServiceFromURL, k as getActiveModels, l as getAllServiceIds, m as getModelInfo, n as getModelsByVendor, o as getServiceDefinition, p as getServiceInfo, q as getServicesByCategory, r as isKnownService } from '../index-DrJYI_0l.cjs';
@@ -1,284 +1,2 @@
1
- import { V as Vendor } from '../Vendor-DYh_bzwo.js';
2
- export { a as VENDORS, i as isVendor } from '../Vendor-DYh_bzwo.js';
3
-
4
- /**
5
- * Complete description of an LLM model including capabilities, pricing, and features
6
- */
7
- interface ILLMDescription {
8
- /** Model identifier (e.g., "gpt-5.2-instant") */
9
- name: string;
10
- /** Vendor/provider (Vendor.OpenAI, Vendor.Anthropic, etc.) */
11
- provider: string;
12
- /** Optional description of the model */
13
- description?: string;
14
- /** Whether the model is currently available for use */
15
- isActive: boolean;
16
- /** Whether this model is a preferred/recommended choice for its vendor */
17
- preferred?: boolean;
18
- /** Release date (YYYY-MM-DD format) */
19
- releaseDate?: string;
20
- /** Knowledge cutoff date */
21
- knowledgeCutoff?: string;
22
- /** Model capabilities and pricing */
23
- features: {
24
- /** Supports extended reasoning/thinking */
25
- reasoning?: boolean;
26
- /** Supports streaming responses */
27
- streaming: boolean;
28
- /** Supports structured output (JSON mode) */
29
- structuredOutput?: boolean;
30
- /** Supports function/tool calling */
31
- functionCalling?: boolean;
32
- /** Supports fine-tuning */
33
- fineTuning?: boolean;
34
- /** Supports predicted outputs */
35
- predictedOutputs?: boolean;
36
- /** Supports realtime API */
37
- realtime?: boolean;
38
- /** Supports image input (vision) */
39
- vision?: boolean;
40
- /** Supports audio input/output */
41
- audio?: boolean;
42
- /** Supports video input */
43
- video?: boolean;
44
- /** Supports extended thinking (Claude-specific) */
45
- extendedThinking?: boolean;
46
- /** Supports batch API */
47
- batchAPI?: boolean;
48
- /** Supports prompt caching */
49
- promptCaching?: boolean;
50
- /** Parameter support - indicates which sampling parameters are supported */
51
- parameters?: {
52
- /** Supports temperature parameter */
53
- temperature?: boolean;
54
- /** Supports top_p parameter */
55
- topP?: boolean;
56
- /** Supports frequency_penalty parameter */
57
- frequencyPenalty?: boolean;
58
- /** Supports presence_penalty parameter */
59
- presencePenalty?: boolean;
60
- };
61
- /** Input specifications */
62
- input: {
63
- /** Maximum input context window (in tokens) */
64
- tokens: number;
65
- /** Supports text input */
66
- text: boolean;
67
- /** Supports image input */
68
- image?: boolean;
69
- /** Supports audio input */
70
- audio?: boolean;
71
- /** Supports video input */
72
- video?: boolean;
73
- /** Cost per million tokens (input) */
74
- cpm: number;
75
- /** Cost per million cached tokens (if prompt caching supported) */
76
- cpmCached?: number;
77
- };
78
- /** Output specifications */
79
- output: {
80
- /** Maximum output tokens */
81
- tokens: number;
82
- /** Supports text output */
83
- text: boolean;
84
- /** Supports image output */
85
- image?: boolean;
86
- /** Supports audio output */
87
- audio?: boolean;
88
- /** Cost per million tokens (output) */
89
- cpm: number;
90
- };
91
- };
92
- }
93
- /**
94
- * Model name constants organized by vendor
95
- * Updated: March 2026 - Contains only verified, currently available models
96
- */
97
- declare const LLM_MODELS: {
98
- readonly openai: {
99
- readonly GPT_5_3_CODEX: "gpt-5.3-codex";
100
- readonly GPT_5_3_CHAT: "gpt-5.3-chat-latest";
101
- readonly GPT_5_2: "gpt-5.2";
102
- readonly GPT_5_2_PRO: "gpt-5.2-pro";
103
- readonly GPT_5_2_CODEX: "gpt-5.2-codex";
104
- readonly GPT_5_2_CHAT: "gpt-5.2-chat-latest";
105
- readonly GPT_5_1: "gpt-5.1";
106
- readonly GPT_5_1_CODEX: "gpt-5.1-codex";
107
- readonly GPT_5_1_CODEX_MAX: "gpt-5.1-codex-max";
108
- readonly GPT_5_1_CODEX_MINI: "gpt-5.1-codex-mini";
109
- readonly GPT_5_1_CHAT: "gpt-5.1-chat-latest";
110
- readonly GPT_5: "gpt-5";
111
- readonly GPT_5_MINI: "gpt-5-mini";
112
- readonly GPT_5_NANO: "gpt-5-nano";
113
- readonly GPT_5_CHAT: "gpt-5-chat-latest";
114
- readonly GPT_4_1: "gpt-4.1";
115
- readonly GPT_4_1_MINI: "gpt-4.1-mini";
116
- readonly GPT_4_1_NANO: "gpt-4.1-nano";
117
- readonly GPT_4O: "gpt-4o";
118
- readonly GPT_4O_MINI: "gpt-4o-mini";
119
- readonly O3_MINI: "o3-mini";
120
- readonly O1: "o1";
121
- };
122
- readonly anthropic: {
123
- readonly CLAUDE_OPUS_4_6: "claude-opus-4-6";
124
- readonly CLAUDE_SONNET_4_6: "claude-sonnet-4-6";
125
- readonly CLAUDE_OPUS_4_5: "claude-opus-4-5-20251101";
126
- readonly CLAUDE_SONNET_4_5: "claude-sonnet-4-5-20250929";
127
- readonly CLAUDE_HAIKU_4_5: "claude-haiku-4-5-20251001";
128
- readonly CLAUDE_OPUS_4_1: "claude-opus-4-1-20250805";
129
- readonly CLAUDE_OPUS_4: "claude-opus-4-20250514";
130
- readonly CLAUDE_SONNET_4: "claude-sonnet-4-20250514";
131
- readonly CLAUDE_SONNET_3_7: "claude-3-7-sonnet-20250219";
132
- readonly CLAUDE_HAIKU_3: "claude-3-haiku-20240307";
133
- };
134
- readonly google: {
135
- readonly GEMINI_3_1_PRO_PREVIEW: "gemini-3.1-pro-preview";
136
- readonly GEMINI_3_1_FLASH_LITE_PREVIEW: "gemini-3.1-flash-lite-preview";
137
- readonly GEMINI_3_1_FLASH_IMAGE_PREVIEW: "gemini-3.1-flash-image-preview";
138
- readonly GEMINI_3_FLASH_PREVIEW: "gemini-3-flash-preview";
139
- readonly GEMINI_3_PRO_PREVIEW: "gemini-3-pro-preview";
140
- readonly GEMINI_3_PRO_IMAGE_PREVIEW: "gemini-3-pro-image-preview";
141
- readonly GEMINI_2_5_PRO: "gemini-2.5-pro";
142
- readonly GEMINI_2_5_FLASH: "gemini-2.5-flash";
143
- readonly GEMINI_2_5_FLASH_LITE: "gemini-2.5-flash-lite";
144
- readonly GEMINI_2_5_FLASH_IMAGE: "gemini-2.5-flash-image";
145
- };
146
- readonly grok: {
147
- readonly GROK_4_1_FAST_REASONING: "grok-4-1-fast-reasoning";
148
- readonly GROK_4_1_FAST_NON_REASONING: "grok-4-1-fast-non-reasoning";
149
- readonly GROK_4_FAST_REASONING: "grok-4-fast-reasoning";
150
- readonly GROK_4_FAST_NON_REASONING: "grok-4-fast-non-reasoning";
151
- readonly GROK_4_0709: "grok-4-0709";
152
- readonly GROK_CODE_FAST_1: "grok-code-fast-1";
153
- readonly GROK_3: "grok-3";
154
- readonly GROK_3_MINI: "grok-3-mini";
155
- readonly GROK_2_VISION_1212: "grok-2-vision-1212";
156
- };
157
- };
158
- /**
159
- * Complete model registry with all model metadata
160
- * Updated: March 2026 - Verified from official vendor documentation
161
- */
162
- declare const MODEL_REGISTRY: Record<string, ILLMDescription>;
163
- /**
164
- * Get model information by name
165
- * @param modelName The model identifier
166
- * @returns Model description or undefined if not found
167
- */
168
- declare function getModelInfo(modelName: string): ILLMDescription | undefined;
169
- /**
170
- * Get all models for a specific vendor
171
- * @param vendor The vendor to filter by
172
- * @returns Array of model descriptions for the vendor
173
- */
174
- declare function getModelsByVendor(vendor: Vendor): ILLMDescription[];
175
- /**
176
- * Get all currently active models
177
- * @returns Array of active model descriptions
178
- */
179
- declare function getActiveModels(): ILLMDescription[];
180
- /**
181
- * Calculate the cost for a given model and token usage
182
- * @param model Model name
183
- * @param inputTokens Number of input tokens
184
- * @param outputTokens Number of output tokens
185
- * @param options Optional calculation options
186
- * @returns Total cost in dollars, or null if model not found
187
- */
188
- declare function calculateCost(model: string, inputTokens: number, outputTokens: number, options?: {
189
- useCachedInput?: boolean;
190
- }): number | null;
191
-
192
- /**
193
- * Services - Single source of truth for external service definitions
194
- *
195
- * All service metadata is defined in one place (SERVICE_DEFINITIONS).
196
- * Other exports are derived from this to maintain DRY principles.
197
- */
198
- /**
199
- * Service category type
200
- */
201
- type ServiceCategory = 'major-vendors' | 'communication' | 'development' | 'productivity' | 'crm' | 'payments' | 'cloud' | 'storage' | 'email' | 'monitoring' | 'search' | 'scrape' | 'other';
202
- /**
203
- * Complete service definition - single source of truth
204
- */
205
- interface ServiceDefinition {
206
- /** Unique identifier (e.g., 'slack', 'github') */
207
- id: string;
208
- /** Human-readable name (e.g., 'Slack', 'GitHub') */
209
- name: string;
210
- /** Service category */
211
- category: ServiceCategory;
212
- /** URL pattern for auto-detection from baseURL */
213
- urlPattern: RegExp;
214
- /** Default base URL for API calls */
215
- baseURL: string;
216
- /** Documentation URL */
217
- docsURL?: string;
218
- /** Common OAuth scopes */
219
- commonScopes?: string[];
220
- }
221
- /**
222
- * Master list of all service definitions
223
- * This is the SINGLE SOURCE OF TRUTH - all other exports derive from this
224
- */
225
- declare const SERVICE_DEFINITIONS: readonly ServiceDefinition[];
226
- /**
227
- * Service type - union of all service IDs
228
- */
229
- type ServiceType = (typeof SERVICE_DEFINITIONS)[number]['id'];
230
- /**
231
- * Services constant object for easy access
232
- * Usage: Services.Slack, Services.GitHub, etc.
233
- */
234
- declare const Services: { [K in string]: ServiceType; };
235
- /**
236
- * URL patterns for auto-detection (derived from SERVICE_DEFINITIONS)
237
- */
238
- declare const SERVICE_URL_PATTERNS: ReadonlyArray<{
239
- service: string;
240
- pattern: RegExp;
241
- }>;
242
- /**
243
- * Service info lookup (derived from SERVICE_DEFINITIONS)
244
- */
245
- interface ServiceInfo {
246
- id: string;
247
- name: string;
248
- category: ServiceCategory;
249
- baseURL: string;
250
- docsURL?: string;
251
- commonScopes?: string[];
252
- }
253
- /**
254
- * Service info map (derived from SERVICE_DEFINITIONS)
255
- */
256
- declare const SERVICE_INFO: Record<string, ServiceInfo>;
257
- /**
258
- * Detect service type from a URL
259
- * @param url - Base URL or full URL to check
260
- * @returns Service type string or undefined if not recognized
261
- */
262
- declare function detectServiceFromURL(url: string): string | undefined;
263
- /**
264
- * Get service info by service type
265
- */
266
- declare function getServiceInfo(serviceType: string): ServiceInfo | undefined;
267
- /**
268
- * Get service definition by service type
269
- */
270
- declare function getServiceDefinition(serviceType: string): ServiceDefinition | undefined;
271
- /**
272
- * Get all services in a category
273
- */
274
- declare function getServicesByCategory(category: ServiceCategory): ServiceDefinition[];
275
- /**
276
- * Get all service IDs
277
- */
278
- declare function getAllServiceIds(): string[];
279
- /**
280
- * Check if a service ID is known
281
- */
282
- declare function isKnownService(serviceId: string): boolean;
283
-
284
- export { type ILLMDescription, LLM_MODELS, MODEL_REGISTRY, SERVICE_DEFINITIONS, SERVICE_INFO, SERVICE_URL_PATTERNS, type ServiceCategory, type ServiceDefinition, type ServiceInfo, type ServiceType, Services, Vendor, Vendor as VendorType, calculateCost, detectServiceFromURL, getActiveModels, getAllServiceIds, getModelInfo, getModelsByVendor, getServiceDefinition, getServiceInfo, getServicesByCategory, isKnownService };
1
+ export { a as VENDORS, V as Vendor, V as VendorType, i as isVendor } from '../Vendor-DYh_bzwo.js';
2
+ export { a as ILLMDescription, L as LLM_MODELS, M as MODEL_REGISTRY, b as SERVICE_DEFINITIONS, c as SERVICE_INFO, d as SERVICE_URL_PATTERNS, S as ServiceCategory, e as ServiceDefinition, f as ServiceInfo, g as ServiceType, h as Services, i as calculateCost, j as detectServiceFromURL, k as getActiveModels, l as getAllServiceIds, m as getModelInfo, n as getModelsByVendor, o as getServiceDefinition, p as getServiceInfo, q as getServicesByCategory, r as isKnownService } from '../index-BlEwczd4.js';