@rslsp1/fa-app-tools 2.0.85 → 2.0.87

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.
@@ -1,73 +0,0 @@
1
- import { T as TextGenerationPort } from './contracts-DdYOMBl9.js';
2
-
3
- declare function buildGenerationPrompt(hierarchyText: string, mode?: 'literal' | 'creative'): string;
4
- declare function buildFallbackPrompt(hierarchyText: string): string;
5
- declare function cleanAiResponse(text: string): string;
6
- declare function buildImageGenerationOptions(prompt: string, aspectRatio: string, model: string, referenceMediaId?: string): Record<string, any>;
7
- interface SelectedTag {
8
- label: string;
9
- value: string;
10
- category: string;
11
- }
12
- declare function buildPromptTabPayload(selectedTags: SelectedTag[], instructions: string, rules: string, treeText?: string): string;
13
- declare function parsePromptResponse(raw: string): {
14
- prompt: string;
15
- feedback: string | null;
16
- };
17
- interface FlowSdkImage {
18
- base64: string;
19
- mimeType: string;
20
- }
21
- interface FlowTextGenerationOptions {
22
- images?: FlowSdkImage[];
23
- systemInstruction?: string;
24
- responseFormat?: 'text' | 'json';
25
- thinkingLevel?: 'low' | 'medium' | 'high';
26
- }
27
- interface FlowSdk {
28
- generate: {
29
- image: (options: Record<string, any>) => Promise<{
30
- base64: string;
31
- mediaId: string;
32
- }>;
33
- text: (prompt: string, options?: {
34
- systemInstruction?: string;
35
- thinkingLevel?: string;
36
- images?: FlowSdkImage[];
37
- }) => Promise<{
38
- text: string;
39
- }>;
40
- };
41
- download: (args: {
42
- base64: string;
43
- mimeType: string;
44
- filename: string;
45
- }) => Promise<void>;
46
- media: {
47
- selectMultiple: (args: {
48
- filter: string;
49
- }) => Promise<any[]>;
50
- };
51
- }
52
- declare function createFlowServices(Flow: FlowSdk): {
53
- generateImage: (options: Record<string, any>) => Promise<{
54
- base64: string;
55
- mediaId: string;
56
- }>;
57
- generateText: (text: string, options?: FlowTextGenerationOptions) => Promise<string>;
58
- };
59
- declare function interpretSdkError(err: any): Error;
60
-
61
- type FlowGenerateText = (prompt: string, options?: FlowTextGenerationOptions) => Promise<string>;
62
- interface CreateFlowTextGenerationPortOptions {
63
- provider?: string;
64
- modelId?: string;
65
- }
66
- /**
67
- * Adapts the existing Flow SDK service to the host-neutral Szenen contract.
68
- * It deliberately does not parse or validate the response: that happens once
69
- * in `runPromptDerivation`, identically for every host.
70
- */
71
- declare function createFlowTextGenerationPort(generateText: FlowGenerateText, options?: CreateFlowTextGenerationPortOptions): TextGenerationPort;
72
-
73
- export { type CreateFlowTextGenerationPortOptions as C, type FlowGenerateText as F, type SelectedTag as S, type FlowSdk as a, type FlowTextGenerationOptions as b, buildFallbackPrompt as c, buildGenerationPrompt as d, buildImageGenerationOptions as e, buildPromptTabPayload as f, cleanAiResponse as g, createFlowServices as h, createFlowTextGenerationPort as i, interpretSdkError as j, parsePromptResponse as p };