@everworker/oneringai 0.1.4 → 0.2.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.
- package/README.md +16 -4
- package/dist/{ImageModel-qNJHPh4q.d.ts → IProvider-DcYJ3YE-.d.ts} +15 -328
- package/dist/{ImageModel-DSY7SNsq.d.cts → IProvider-c4QCbPjn.d.cts} +15 -328
- package/dist/ImageModel-BJ2mVPGV.d.ts +337 -0
- package/dist/ImageModel-BWN6VVS6.d.cts +337 -0
- package/dist/capabilities/agents/index.d.cts +3 -2
- package/dist/capabilities/agents/index.d.ts +3 -2
- package/dist/capabilities/images/index.cjs +8 -1
- package/dist/capabilities/images/index.cjs.map +1 -1
- package/dist/capabilities/images/index.d.cts +2 -2
- package/dist/capabilities/images/index.d.ts +2 -2
- package/dist/capabilities/images/index.js +8 -1
- package/dist/capabilities/images/index.js.map +1 -1
- package/dist/{index-CEp1H4fV.d.ts → index-B5UaeEvK.d.ts} +9 -6
- package/dist/{index-NOV01LWF.d.cts → index-MJ14lkui.d.cts} +9 -6
- package/dist/index.cjs +610 -768
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +156 -85
- package/dist/index.d.ts +156 -85
- package/dist/index.js +610 -768
- package/dist/index.js.map +1 -1
- package/package.json +1 -4
- package/dist/IProvider-BP49c93d.d.cts +0 -22
- package/dist/IProvider-BP49c93d.d.ts +0 -22
package/README.md
CHANGED
|
@@ -67,11 +67,13 @@
|
|
|
67
67
|
- 🎛️ **Dynamic Tool Management** - Enable/disable tools at runtime, namespaces, priority-based selection
|
|
68
68
|
- 🔌 **Tool Execution Plugins** - NEW: Pluggable pipeline for logging, analytics, UI updates, custom behavior
|
|
69
69
|
- 💾 **Session Persistence** - Save and resume conversations with full state restoration
|
|
70
|
+
- 👤 **Multi-User Support** - Set `userId` once, flows automatically to all tool executions and session metadata
|
|
71
|
+
- 🔒 **Connector Allowlist** - Restrict agents to a named subset of connectors, composable with access policies
|
|
70
72
|
- 🤖 **Universal Agent** - ⚠️ *Deprecated* - Use `Agent` with plugins instead
|
|
71
73
|
- 🤖 **Task Agents** - ⚠️ *Deprecated* - Use `Agent` with `WorkingMemoryPluginNextGen`
|
|
72
74
|
- 🔬 **Research Agent** - ⚠️ *Deprecated* - Use `Agent` with search tools
|
|
73
75
|
- 🎯 **Context Management** - Algorithmic compaction with tool-result-to-memory offloading
|
|
74
|
-
- 📌 **InContextMemory** -
|
|
76
|
+
- 📌 **InContextMemory** - Live key-value storage directly in LLM context with optional UI display (`showInUI`)
|
|
75
77
|
- 📝 **Persistent Instructions** - NEW: Agent-level custom instructions that persist across sessions on disk
|
|
76
78
|
- 🛠️ **Agentic Workflows** - Built-in tool calling and multi-turn conversations
|
|
77
79
|
- 🔧 **Developer Tools** - NEW: Filesystem and shell tools for coding assistants (read, write, edit, grep, glob, bash)
|
|
@@ -84,6 +86,8 @@
|
|
|
84
86
|
- 🔄 **Streaming** - Real-time responses with event streams
|
|
85
87
|
- 📝 **TypeScript** - Full type safety and IntelliSense support
|
|
86
88
|
|
|
89
|
+
> **v0.2.0 — Multi-User Support:** Set `userId` once on an agent and it automatically flows to all tool executions, OAuth token retrieval, session metadata, and connector scoping. Combine with `connectors` allowlist and access policies for complete multi-tenant isolation. See [Multi-User Support](#multi-user-support-userid) and [Connector Allowlist](#connector-allowlist-connectors) in the User Guide.
|
|
90
|
+
|
|
87
91
|
## Quick Start
|
|
88
92
|
|
|
89
93
|
### Installation
|
|
@@ -359,6 +363,8 @@ const storage = createFileContextStorage('my-assistant');
|
|
|
359
363
|
const agent = Agent.create({
|
|
360
364
|
connector: 'openai',
|
|
361
365
|
model: 'gpt-4',
|
|
366
|
+
userId: 'user-123', // Flows to all tool executions automatically
|
|
367
|
+
connectors: ['github', 'slack'], // Only these connectors visible to tools
|
|
362
368
|
tools: [weatherTool, emailTool],
|
|
363
369
|
context: {
|
|
364
370
|
features: {
|
|
@@ -711,6 +717,9 @@ const plugin = ctx.getPlugin('in_context_memory');
|
|
|
711
717
|
plugin.set('current_state', 'Task processing state', { step: 2, status: 'active' });
|
|
712
718
|
plugin.set('user_prefs', 'User preferences', { verbose: true }, 'high');
|
|
713
719
|
|
|
720
|
+
// Store data with UI display - shown in the host app's sidebar panel
|
|
721
|
+
plugin.set('dashboard', 'Progress dashboard', '## Progress\n- [x] Step 1\n- [ ] Step 2', 'normal', true);
|
|
722
|
+
|
|
714
723
|
// LLM can use context_set/context_delete/context_list tools
|
|
715
724
|
// Or access directly via plugin API
|
|
716
725
|
const state = plugin.get('current_state'); // { step: 2, status: 'active' }
|
|
@@ -720,7 +729,9 @@ const state = plugin.get('current_state'); // { step: 2, status: 'active' }
|
|
|
720
729
|
- **WorkingMemory**: External storage + index → requires `memory_retrieve()` for values
|
|
721
730
|
- **InContextMemory**: Full values in context → instant access, no retrieval needed
|
|
722
731
|
|
|
723
|
-
**
|
|
732
|
+
**UI Display (`showInUI`):** Entries with `showInUI: true` are displayed in the host application's sidebar panel with full markdown rendering (code blocks, tables, charts, diagrams, etc.). The LLM sets this via the `context_set` tool. Users can also pin specific entries to always display them regardless of the agent's setting. See the [User Guide](./USER_GUIDE.md#ui-display-showInUI) for details.
|
|
733
|
+
|
|
734
|
+
**Use cases:** Session state, user preferences, counters, flags, small accumulated results, live dashboards.
|
|
724
735
|
|
|
725
736
|
### 9. Persistent Instructions
|
|
726
737
|
|
|
@@ -977,10 +988,11 @@ Connector.create({
|
|
|
977
988
|
// search_files, search_code, read_file, get_pr, pr_files, pr_comments, create_pr
|
|
978
989
|
const tools = ConnectorTools.for('github');
|
|
979
990
|
|
|
980
|
-
// Use with an agent
|
|
991
|
+
// Use with an agent — userId flows to all tools automatically
|
|
981
992
|
const agent = Agent.create({
|
|
982
993
|
connector: 'openai',
|
|
983
994
|
model: 'gpt-4',
|
|
995
|
+
userId: 'user-123', // All tool API calls use this user's OAuth tokens
|
|
984
996
|
tools: tools,
|
|
985
997
|
});
|
|
986
998
|
|
|
@@ -1303,4 +1315,4 @@ MIT License - See [LICENSE](./LICENSE) file.
|
|
|
1303
1315
|
|
|
1304
1316
|
---
|
|
1305
1317
|
|
|
1306
|
-
**Version:** 0.
|
|
1318
|
+
**Version:** 0.2.0 | **Last Updated:** 2026-02-09 | **[User Guide](./USER_GUIDE.md)** | **[API Reference](./API_REFERENCE.md)** | **[Changelog](./CHANGELOG.md)**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { V as Vendor } from './Vendor-DYh_bzwo.js';
|
|
2
|
-
import { I as IProvider } from './IProvider-BP49c93d.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Connector - Represents authenticated connection to ANY API
|
|
@@ -483,336 +482,24 @@ declare class Connector {
|
|
|
483
482
|
}
|
|
484
483
|
|
|
485
484
|
/**
|
|
486
|
-
*
|
|
487
|
-
* This file provides the foundation for Image, Audio, and Video model registries
|
|
485
|
+
* Base provider interface
|
|
488
486
|
*/
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
|
|
496
|
-
* Providers map these to vendor-specific quality settings
|
|
497
|
-
*/
|
|
498
|
-
type QualityLevel = 'draft' | 'standard' | 'high' | 'ultra';
|
|
499
|
-
/**
|
|
500
|
-
* Audio output formats
|
|
501
|
-
*/
|
|
502
|
-
type AudioFormat = 'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm' | 'ogg';
|
|
503
|
-
/**
|
|
504
|
-
* Output format preference for media
|
|
505
|
-
*/
|
|
506
|
-
type OutputFormat = 'url' | 'base64' | 'buffer';
|
|
507
|
-
/**
|
|
508
|
-
* Source links for model documentation and maintenance
|
|
509
|
-
* Used to track where information came from and when it was last verified
|
|
510
|
-
*/
|
|
511
|
-
interface ISourceLinks {
|
|
512
|
-
/** Official documentation URL */
|
|
513
|
-
documentation: string;
|
|
514
|
-
/** Pricing page URL */
|
|
515
|
-
pricing?: string;
|
|
516
|
-
/** API reference URL */
|
|
517
|
-
apiReference?: string;
|
|
518
|
-
/** Additional reference (e.g., blog post, announcement) */
|
|
519
|
-
additional?: string;
|
|
520
|
-
/** Last verified date (YYYY-MM-DD) */
|
|
521
|
-
lastVerified: string;
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* Vendor-specific option schema for validation and documentation
|
|
525
|
-
* Used to describe vendor-specific options that fall outside semantic options
|
|
526
|
-
*/
|
|
527
|
-
interface VendorOptionSchema {
|
|
528
|
-
/** Data type of the option */
|
|
529
|
-
type: 'string' | 'number' | 'boolean' | 'enum' | 'array';
|
|
530
|
-
/** Description of the option */
|
|
531
|
-
description: string;
|
|
532
|
-
/** Whether the option is required */
|
|
533
|
-
required?: boolean;
|
|
534
|
-
/** UI display label */
|
|
535
|
-
label?: string;
|
|
536
|
-
/** Valid values for enum/string types */
|
|
537
|
-
enum?: string[];
|
|
538
|
-
/** Default value */
|
|
539
|
-
default?: unknown;
|
|
540
|
-
/** Minimum value for numbers */
|
|
541
|
-
min?: number;
|
|
542
|
-
/** Maximum value for numbers */
|
|
543
|
-
max?: number;
|
|
544
|
-
/** Step value for number sliders */
|
|
545
|
-
step?: number;
|
|
546
|
-
/** UI control type hint */
|
|
547
|
-
controlType?: 'select' | 'radio' | 'slider' | 'checkbox' | 'text' | 'textarea';
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* Base model description - shared by all registries
|
|
551
|
-
* Every model registry (Image, TTS, STT, Video) extends this
|
|
552
|
-
*/
|
|
553
|
-
interface IBaseModelDescription {
|
|
554
|
-
/** Model identifier (e.g., "dall-e-3", "tts-1") */
|
|
555
|
-
name: string;
|
|
556
|
-
/** Display name for UI (e.g., "DALL-E 3", "TTS-1") */
|
|
557
|
-
displayName: string;
|
|
558
|
-
/** Vendor/provider */
|
|
559
|
-
provider: Vendor;
|
|
560
|
-
/** Model description */
|
|
561
|
-
description?: string;
|
|
562
|
-
/** Whether the model is currently available */
|
|
563
|
-
isActive: boolean;
|
|
564
|
-
/** Release date (YYYY-MM-DD) */
|
|
565
|
-
releaseDate?: string;
|
|
566
|
-
/** Deprecation date if scheduled (YYYY-MM-DD) */
|
|
567
|
-
deprecationDate?: string;
|
|
568
|
-
/** Documentation/pricing links for maintenance */
|
|
569
|
-
sources: ISourceLinks;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* Image generation provider interface
|
|
574
|
-
*/
|
|
575
|
-
|
|
576
|
-
interface ImageGenerateOptions {
|
|
577
|
-
model: string;
|
|
578
|
-
prompt: string;
|
|
579
|
-
size?: string;
|
|
580
|
-
aspectRatio?: string;
|
|
581
|
-
quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto';
|
|
582
|
-
style?: 'vivid' | 'natural';
|
|
583
|
-
n?: number;
|
|
584
|
-
response_format?: 'url' | 'b64_json';
|
|
487
|
+
interface ProviderCapabilities {
|
|
488
|
+
text: boolean;
|
|
489
|
+
images: boolean;
|
|
490
|
+
videos: boolean;
|
|
491
|
+
audio: boolean;
|
|
492
|
+
/** Optional feature flags for specific capabilities */
|
|
493
|
+
features?: Record<string, boolean>;
|
|
585
494
|
}
|
|
586
|
-
interface
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
mask?: Buffer | string;
|
|
591
|
-
size?: string;
|
|
592
|
-
n?: number;
|
|
593
|
-
response_format?: 'url' | 'b64_json';
|
|
594
|
-
}
|
|
595
|
-
interface ImageVariationOptions {
|
|
596
|
-
model: string;
|
|
597
|
-
image: Buffer | string;
|
|
598
|
-
n?: number;
|
|
599
|
-
size?: string;
|
|
600
|
-
response_format?: 'url' | 'b64_json';
|
|
601
|
-
}
|
|
602
|
-
interface ImageResponse {
|
|
603
|
-
created: number;
|
|
604
|
-
data: Array<{
|
|
605
|
-
url?: string;
|
|
606
|
-
b64_json?: string;
|
|
607
|
-
revised_prompt?: string;
|
|
608
|
-
}>;
|
|
609
|
-
}
|
|
610
|
-
interface IImageProvider extends IProvider {
|
|
611
|
-
/**
|
|
612
|
-
* Generate images from text prompt
|
|
613
|
-
*/
|
|
614
|
-
generateImage(options: ImageGenerateOptions): Promise<ImageResponse>;
|
|
615
|
-
/**
|
|
616
|
-
* Edit an existing image (optional - not all providers support)
|
|
617
|
-
*/
|
|
618
|
-
editImage?(options: ImageEditOptions): Promise<ImageResponse>;
|
|
619
|
-
/**
|
|
620
|
-
* Create variations of an image (optional)
|
|
621
|
-
*/
|
|
622
|
-
createVariation?(options: ImageVariationOptions): Promise<ImageResponse>;
|
|
623
|
-
/**
|
|
624
|
-
* List available models
|
|
625
|
-
*/
|
|
626
|
-
listModels?(): Promise<string[]>;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* Options for creating an ImageGeneration instance
|
|
631
|
-
*/
|
|
632
|
-
interface ImageGenerationCreateOptions {
|
|
633
|
-
/** Connector name or instance */
|
|
634
|
-
connector: string | Connector;
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* Simplified options for quick generation
|
|
638
|
-
*/
|
|
639
|
-
interface SimpleGenerateOptions {
|
|
640
|
-
/** Text prompt describing the image */
|
|
641
|
-
prompt: string;
|
|
642
|
-
/** Model to use (defaults to vendor's best model) */
|
|
643
|
-
model?: string;
|
|
644
|
-
/** Image size */
|
|
645
|
-
size?: string;
|
|
646
|
-
/** Quality setting */
|
|
647
|
-
quality?: 'standard' | 'hd';
|
|
648
|
-
/** Style setting (DALL-E 3 only) */
|
|
649
|
-
style?: 'vivid' | 'natural';
|
|
650
|
-
/** Number of images to generate */
|
|
651
|
-
n?: number;
|
|
652
|
-
/** Response format */
|
|
653
|
-
response_format?: 'url' | 'b64_json';
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
* ImageGeneration capability class
|
|
657
|
-
*/
|
|
658
|
-
declare class ImageGeneration {
|
|
659
|
-
private provider;
|
|
660
|
-
private connector;
|
|
661
|
-
private defaultModel;
|
|
662
|
-
private constructor();
|
|
663
|
-
/**
|
|
664
|
-
* Create an ImageGeneration instance
|
|
665
|
-
*/
|
|
666
|
-
static create(options: ImageGenerationCreateOptions): ImageGeneration;
|
|
667
|
-
/**
|
|
668
|
-
* Generate images from a text prompt
|
|
669
|
-
*/
|
|
670
|
-
generate(options: SimpleGenerateOptions): Promise<ImageResponse>;
|
|
671
|
-
/**
|
|
672
|
-
* Edit an existing image
|
|
673
|
-
* Note: Not all models/vendors support this
|
|
674
|
-
*/
|
|
675
|
-
edit(options: ImageEditOptions): Promise<ImageResponse>;
|
|
676
|
-
/**
|
|
677
|
-
* Create variations of an existing image
|
|
678
|
-
* Note: Only DALL-E 2 supports this
|
|
679
|
-
*/
|
|
680
|
-
createVariation(options: ImageVariationOptions): Promise<ImageResponse>;
|
|
681
|
-
/**
|
|
682
|
-
* List available models for this provider
|
|
683
|
-
*/
|
|
684
|
-
listModels(): Promise<string[]>;
|
|
685
|
-
/**
|
|
686
|
-
* Get information about a specific model
|
|
687
|
-
*/
|
|
688
|
-
getModelInfo(modelName: string): IImageModelDescription | undefined;
|
|
689
|
-
/**
|
|
690
|
-
* Get the underlying provider
|
|
691
|
-
*/
|
|
692
|
-
getProvider(): IImageProvider;
|
|
693
|
-
/**
|
|
694
|
-
* Get the current connector
|
|
695
|
-
*/
|
|
696
|
-
getConnector(): Connector;
|
|
697
|
-
/**
|
|
698
|
-
* Get the default model for this vendor
|
|
699
|
-
*/
|
|
700
|
-
private getDefaultModel;
|
|
495
|
+
interface IProvider {
|
|
496
|
+
readonly name: string;
|
|
497
|
+
readonly vendor?: string;
|
|
498
|
+
readonly capabilities: ProviderCapabilities;
|
|
701
499
|
/**
|
|
702
|
-
*
|
|
500
|
+
* Validate that the provider configuration is correct
|
|
703
501
|
*/
|
|
704
|
-
|
|
502
|
+
validateConfig(): Promise<boolean>;
|
|
705
503
|
}
|
|
706
504
|
|
|
707
|
-
|
|
708
|
-
* Image generation model registry with comprehensive metadata
|
|
709
|
-
*/
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Supported image sizes by model
|
|
713
|
-
*/
|
|
714
|
-
type ImageSize = '256x256' | '512x512' | '1024x1024' | '1024x1536' | '1536x1024' | '1792x1024' | '1024x1792' | 'auto';
|
|
715
|
-
/**
|
|
716
|
-
* Supported aspect ratios
|
|
717
|
-
*/
|
|
718
|
-
type AspectRatio = '1:1' | '3:4' | '4:3' | '9:16' | '16:9' | '3:2' | '2:3';
|
|
719
|
-
/**
|
|
720
|
-
* Image model capabilities
|
|
721
|
-
*/
|
|
722
|
-
interface ImageModelCapabilities {
|
|
723
|
-
/** Supported image sizes */
|
|
724
|
-
sizes: readonly ImageSize[];
|
|
725
|
-
/** Supported aspect ratios (Google) */
|
|
726
|
-
aspectRatios?: readonly AspectRatio[];
|
|
727
|
-
/** Maximum number of images per request */
|
|
728
|
-
maxImagesPerRequest: number;
|
|
729
|
-
/** Supported output formats */
|
|
730
|
-
outputFormats: readonly string[];
|
|
731
|
-
/** Feature support flags */
|
|
732
|
-
features: {
|
|
733
|
-
/** Text-to-image generation */
|
|
734
|
-
generation: boolean;
|
|
735
|
-
/** Image editing/inpainting */
|
|
736
|
-
editing: boolean;
|
|
737
|
-
/** Image variations */
|
|
738
|
-
variations: boolean;
|
|
739
|
-
/** Style control */
|
|
740
|
-
styleControl: boolean;
|
|
741
|
-
/** Quality control (standard/hd) */
|
|
742
|
-
qualityControl: boolean;
|
|
743
|
-
/** Transparent backgrounds */
|
|
744
|
-
transparency: boolean;
|
|
745
|
-
/** Prompt revision/enhancement */
|
|
746
|
-
promptRevision: boolean;
|
|
747
|
-
};
|
|
748
|
-
/** Model limits */
|
|
749
|
-
limits: {
|
|
750
|
-
/** Maximum prompt length in characters */
|
|
751
|
-
maxPromptLength: number;
|
|
752
|
-
/** Rate limit (requests per minute) */
|
|
753
|
-
maxRequestsPerMinute?: number;
|
|
754
|
-
};
|
|
755
|
-
/** Vendor-specific options schema */
|
|
756
|
-
vendorOptions?: Record<string, VendorOptionSchema>;
|
|
757
|
-
}
|
|
758
|
-
/**
|
|
759
|
-
* Image model pricing
|
|
760
|
-
*/
|
|
761
|
-
interface ImageModelPricing {
|
|
762
|
-
/** Cost per image at standard quality */
|
|
763
|
-
perImageStandard?: number;
|
|
764
|
-
/** Cost per image at HD quality */
|
|
765
|
-
perImageHD?: number;
|
|
766
|
-
/** Cost per image (flat rate) */
|
|
767
|
-
perImage?: number;
|
|
768
|
-
currency: 'USD';
|
|
769
|
-
}
|
|
770
|
-
/**
|
|
771
|
-
* Complete image model description
|
|
772
|
-
*/
|
|
773
|
-
interface IImageModelDescription extends IBaseModelDescription {
|
|
774
|
-
capabilities: ImageModelCapabilities;
|
|
775
|
-
pricing?: ImageModelPricing;
|
|
776
|
-
}
|
|
777
|
-
declare const IMAGE_MODELS: {
|
|
778
|
-
readonly openai: {
|
|
779
|
-
/** GPT-Image-1: Latest OpenAI image model with best quality */
|
|
780
|
-
readonly GPT_IMAGE_1: "gpt-image-1";
|
|
781
|
-
/** DALL-E 3: High quality image generation */
|
|
782
|
-
readonly DALL_E_3: "dall-e-3";
|
|
783
|
-
/** DALL-E 2: Fast, supports editing and variations */
|
|
784
|
-
readonly DALL_E_2: "dall-e-2";
|
|
785
|
-
};
|
|
786
|
-
readonly google: {
|
|
787
|
-
/** Imagen 4.0: Latest Google image generation model */
|
|
788
|
-
readonly IMAGEN_4_GENERATE: "imagen-4.0-generate-001";
|
|
789
|
-
/** Imagen 4.0 Ultra: Highest quality */
|
|
790
|
-
readonly IMAGEN_4_ULTRA: "imagen-4.0-ultra-generate-001";
|
|
791
|
-
/** Imagen 4.0 Fast: Optimized for speed */
|
|
792
|
-
readonly IMAGEN_4_FAST: "imagen-4.0-fast-generate-001";
|
|
793
|
-
};
|
|
794
|
-
readonly grok: {
|
|
795
|
-
/** Grok Imagine Image: xAI image generation with editing support */
|
|
796
|
-
readonly GROK_IMAGINE_IMAGE: "grok-imagine-image";
|
|
797
|
-
/** Grok 2 Image: xAI image generation (text-only input) */
|
|
798
|
-
readonly GROK_2_IMAGE_1212: "grok-2-image-1212";
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
/**
|
|
802
|
-
* Complete image model registry
|
|
803
|
-
* Last full audit: January 2026
|
|
804
|
-
*/
|
|
805
|
-
declare const IMAGE_MODEL_REGISTRY: Record<string, IImageModelDescription>;
|
|
806
|
-
declare const getImageModelInfo: (modelName: string) => IImageModelDescription | undefined;
|
|
807
|
-
declare const getImageModelsByVendor: (vendor: Vendor) => IImageModelDescription[];
|
|
808
|
-
declare const getActiveImageModels: () => IImageModelDescription[];
|
|
809
|
-
/**
|
|
810
|
-
* Get image models that support a specific feature
|
|
811
|
-
*/
|
|
812
|
-
declare function getImageModelsWithFeature(feature: keyof IImageModelDescription['capabilities']['features']): IImageModelDescription[];
|
|
813
|
-
/**
|
|
814
|
-
* Calculate estimated cost for image generation
|
|
815
|
-
*/
|
|
816
|
-
declare function calculateImageCost(modelName: string, imageCount: number, quality?: 'standard' | 'hd'): number | null;
|
|
817
|
-
|
|
818
|
-
export { type AudioFormat as A, type ImageResponse as B, type ConnectorAccessContext as C, type AspectRatio$1 as D, type OutputFormat as E, type ISourceLinks as F, DEFAULT_CONNECTOR_TIMEOUT as G, DEFAULT_MAX_RETRIES as H, type IConnectorRegistry as I, type JWTConnectorAuth as J, DEFAULT_RETRYABLE_STATUSES as K, DEFAULT_BASE_DELAY_MS as L, DEFAULT_MAX_DELAY_MS as M, type OAuthConnectorAuth as O, type QualityLevel as Q, type StoredToken as S, type VendorOptionSchema as V, type IConnectorAccessPolicy as a, Connector as b, type IBaseModelDescription as c, type IImageProvider as d, type ConnectorFetchOptions as e, type ITokenStorage as f, type ConnectorConfig as g, type ConnectorAuth as h, type ConnectorConfigResult as i, ImageGeneration as j, type ImageGenerationCreateOptions as k, type SimpleGenerateOptions as l, type APIKeyConnectorAuth as m, type IImageModelDescription as n, type ImageModelCapabilities as o, type ImageModelPricing as p, IMAGE_MODELS as q, IMAGE_MODEL_REGISTRY as r, getImageModelInfo as s, getImageModelsByVendor as t, getActiveImageModels as u, getImageModelsWithFeature as v, calculateImageCost as w, type ImageGenerateOptions as x, type ImageEditOptions as y, type ImageVariationOptions as z };
|
|
505
|
+
export { type APIKeyConnectorAuth as A, type ConnectorAccessContext as C, DEFAULT_CONNECTOR_TIMEOUT as D, type IConnectorRegistry as I, type JWTConnectorAuth as J, type OAuthConnectorAuth as O, type ProviderCapabilities as P, type StoredToken as S, type IConnectorAccessPolicy as a, Connector as b, type IProvider as c, type ConnectorFetchOptions as d, type ITokenStorage as e, type ConnectorConfig as f, type ConnectorAuth as g, type ConnectorConfigResult as h, DEFAULT_MAX_RETRIES as i, DEFAULT_RETRYABLE_STATUSES as j, DEFAULT_BASE_DELAY_MS as k, DEFAULT_MAX_DELAY_MS as l };
|