@tombcato/ai-selector-vue 0.1.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.
@@ -0,0 +1,29 @@
1
+ import { type Language, type AIConfig, type ProviderConfig, type TestConnectionResult, type ModelFetcher } from '@tombcato/ai-selector-core';
2
+ interface Props {
3
+ proxyUrl: string;
4
+ config?: ProviderConfig;
5
+ initialConfig?: Partial<AIConfig>;
6
+ title?: string;
7
+ showPreview?: boolean;
8
+ saveButtonText?: string;
9
+ disabled?: boolean;
10
+ onSerialize?: (data: any) => string;
11
+ onDeserialize?: (data: string) => any;
12
+ language?: Language;
13
+ modelFetcher?: ModelFetcher;
14
+ }
15
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ change: (config: Partial<AIConfig>) => any;
17
+ save: (config: AIConfig) => any;
18
+ testResult: (result: TestConnectionResult) => any;
19
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
20
+ onChange?: ((config: Partial<AIConfig>) => any) | undefined;
21
+ onSave?: ((config: AIConfig) => any) | undefined;
22
+ onTestResult?: ((result: TestConnectionResult) => any) | undefined;
23
+ }>, {
24
+ disabled: boolean;
25
+ language: Language;
26
+ showPreview: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { type Language, type Provider } from '@tombcato/ai-selector-core';
2
+ interface Props {
3
+ provider: Provider | null;
4
+ apiKey: string;
5
+ testStatus: 'idle' | 'testing' | 'success' | 'error';
6
+ disabled?: boolean;
7
+ language?: Language;
8
+ }
9
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:apiKey": (value: string) => any;
11
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
12
+ "onUpdate:apiKey"?: ((value: string) => any) | undefined;
13
+ }>, {
14
+ disabled: boolean;
15
+ language: Language;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { type Language, type Provider } from '@tombcato/ai-selector-core';
2
+ interface Props {
3
+ provider: Provider | null;
4
+ baseUrl: string;
5
+ disabled?: boolean;
6
+ language?: Language;
7
+ }
8
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:baseUrl": (value: string) => any;
10
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
11
+ "onUpdate:baseUrl"?: ((value: string) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ language: Language;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ proxyUrl?: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { type Language, type Provider, type Model } from '@tombcato/ai-selector-core';
2
+ interface Props {
3
+ provider: Provider | null;
4
+ models: Model[];
5
+ selectedModelId: string;
6
+ hasApiKey: boolean;
7
+ disabled?: boolean;
8
+ language?: Language;
9
+ isFetchingModels?: boolean;
10
+ fetchModelError?: string | null;
11
+ selectedModelName?: string;
12
+ }
13
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ select: (modelId: string, modelName?: string | undefined) => any;
15
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
16
+ onSelect?: ((modelId: string, modelName?: string | undefined) => any) | undefined;
17
+ }>, {
18
+ disabled: boolean;
19
+ language: Language;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { type Language, type Provider } from '@tombcato/ai-selector-core';
2
+ interface Props {
3
+ providers: Provider[];
4
+ selectedProviderId: string;
5
+ disabled?: boolean;
6
+ language?: Language;
7
+ }
8
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ select: (providerId: string) => any;
10
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
11
+ onSelect?: ((providerId: string) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ language: Language;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import '@tombcato/smart-ticker/style.css';
2
+ type __VLS_Props = {
3
+ text?: string;
4
+ className?: string;
5
+ placeholder?: string;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ .ticker{display:inline-flex;overflow:hidden;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace,PingFang SC,Microsoft YaHei,sans-serif;font-weight:600;line-height:1.2}.ticker-column{display:inline-block;height:1.2em;overflow:hidden;position:relative;clip-path:inset(0)}.ticker-char{position:absolute;top:0;left:0;right:0;height:1.2em;display:flex;align-items:center;justify-content:center;white-space:pre}.ticker[data-v-7e47ac69]{display:inline-flex;overflow:hidden;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-weight:600;line-height:1.2}.ticker-column[data-v-7e47ac69]{display:inline-block;height:1.2em;overflow:hidden;position:relative;clip-path:inset(0)}.ticker-char[data-v-7e47ac69]{position:absolute;top:0;left:0;right:0;height:1.2em;display:flex;align-items:center;justify-content:center;white-space:pre}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @ai-selector/vue
3
+ * Vue adapter for AI Provider Selector
4
+ */
5
+ export { useAIConfig, type UseAIConfigOptions } from './useAIConfig';
6
+ export { default as AIConfigForm } from './AIConfigForm.vue';
7
+ export type { AIConfig, Provider, Model, ProviderConfig, CustomProviderDefinition, TestConnectionResult, AIConfigFormProps, } from '@tombcato/ai-selector-core';