@vinkius-core/mcp-fusion 2.9.0 → 2.12.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/dist/cli/fusion.d.ts +3 -0
- package/dist/cli/fusion.d.ts.map +1 -1
- package/dist/cli/fusion.js +125 -3
- package/dist/cli/fusion.js.map +1 -1
- package/dist/cli/templates/config.js +3 -3
- package/dist/cli/templates/config.js.map +1 -1
- package/dist/cli/templates/constants.d.ts +1 -1
- package/dist/cli/templates/constants.d.ts.map +1 -1
- package/dist/cli/templates/constants.js +1 -1
- package/dist/cli/templates/constants.js.map +1 -1
- package/dist/cli/templates/core.js +5 -5
- package/dist/cli/templates/middleware.d.ts +1 -1
- package/dist/cli/templates/middleware.d.ts.map +1 -1
- package/dist/cli/templates/middleware.js +16 -13
- package/dist/cli/templates/middleware.js.map +1 -1
- package/dist/cli/templates/readme.d.ts.map +1 -1
- package/dist/cli/templates/readme.js +14 -18
- package/dist/cli/templates/readme.js.map +1 -1
- package/dist/cli/templates/tools.d.ts +4 -0
- package/dist/cli/templates/tools.d.ts.map +1 -1
- package/dist/cli/templates/tools.js +26 -29
- package/dist/cli/templates/tools.js.map +1 -1
- package/dist/cli/templates/vectors/database.d.ts.map +1 -1
- package/dist/cli/templates/vectors/database.js +14 -19
- package/dist/cli/templates/vectors/database.js.map +1 -1
- package/dist/cli/templates/vectors/oauth.d.ts.map +1 -1
- package/dist/cli/templates/vectors/oauth.js +4 -5
- package/dist/cli/templates/vectors/oauth.js.map +1 -1
- package/dist/cli/templates/vectors/openapi.js +2 -2
- package/dist/cli/templates/vectors/workflow.js +1 -1
- package/dist/cli/templates/vectors/workflow.js.map +1 -1
- package/dist/client/FusionClient.d.ts +55 -0
- package/dist/client/FusionClient.d.ts.map +1 -1
- package/dist/client/FusionClient.js +30 -0
- package/dist/client/FusionClient.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/core/builder/ActionGroupBuilder.d.ts +86 -46
- package/dist/core/builder/ActionGroupBuilder.d.ts.map +1 -1
- package/dist/core/builder/ActionGroupBuilder.js +68 -26
- package/dist/core/builder/ActionGroupBuilder.js.map +1 -1
- package/dist/core/builder/ErrorBuilder.d.ts +59 -0
- package/dist/core/builder/ErrorBuilder.d.ts.map +1 -0
- package/dist/core/builder/ErrorBuilder.js +99 -0
- package/dist/core/builder/ErrorBuilder.js.map +1 -0
- package/dist/core/builder/FluentRouter.d.ts +91 -0
- package/dist/core/builder/FluentRouter.d.ts.map +1 -0
- package/dist/core/builder/FluentRouter.js +121 -0
- package/dist/core/builder/FluentRouter.js.map +1 -0
- package/dist/core/builder/FluentSchemaHelpers.d.ts +237 -0
- package/dist/core/builder/FluentSchemaHelpers.d.ts.map +1 -0
- package/dist/core/builder/FluentSchemaHelpers.js +227 -0
- package/dist/core/builder/FluentSchemaHelpers.js.map +1 -0
- package/dist/core/builder/FluentToolBuilder.d.ts +347 -0
- package/dist/core/builder/FluentToolBuilder.d.ts.map +1 -0
- package/dist/core/builder/FluentToolBuilder.js +525 -0
- package/dist/core/builder/FluentToolBuilder.js.map +1 -0
- package/dist/core/builder/GroupedToolBuilder.d.ts +91 -1
- package/dist/core/builder/GroupedToolBuilder.d.ts.map +1 -1
- package/dist/core/builder/GroupedToolBuilder.js +122 -4
- package/dist/core/builder/GroupedToolBuilder.js.map +1 -1
- package/dist/core/builder/ToolDefinitionCompiler.d.ts +1 -0
- package/dist/core/builder/ToolDefinitionCompiler.d.ts.map +1 -1
- package/dist/core/builder/ToolDefinitionCompiler.js +1 -1
- package/dist/core/builder/ToolDefinitionCompiler.js.map +1 -1
- package/dist/core/builder/index.d.ts +4 -0
- package/dist/core/builder/index.d.ts.map +1 -1
- package/dist/core/builder/index.js +7 -0
- package/dist/core/builder/index.js.map +1 -1
- package/dist/core/execution/EgressGuard.js +1 -1
- package/dist/core/execution/EgressGuard.js.map +1 -1
- package/dist/core/execution/ExecutionPipeline.d.ts +8 -2
- package/dist/core/execution/ExecutionPipeline.d.ts.map +1 -1
- package/dist/core/execution/ExecutionPipeline.js +18 -9
- package/dist/core/execution/ExecutionPipeline.js.map +1 -1
- package/dist/core/execution/PipelineHooks.d.ts +0 -6
- package/dist/core/execution/PipelineHooks.d.ts.map +1 -1
- package/dist/core/execution/PipelineHooks.js +7 -3
- package/dist/core/execution/PipelineHooks.js.map +1 -1
- package/dist/core/index.d.ts +5 -7
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/initFusion.d.ts +119 -87
- package/dist/core/initFusion.d.ts.map +1 -1
- package/dist/core/initFusion.js +56 -66
- package/dist/core/initFusion.js.map +1 -1
- package/dist/core/registry/ToolRegistry.d.ts +1 -1
- package/dist/core/registry/ToolRegistry.d.ts.map +1 -1
- package/dist/core/registry/ToolRegistry.js +1 -1
- package/dist/core/registry/ToolRegistry.js.map +1 -1
- package/dist/core/schema/SchemaGenerator.d.ts +1 -1
- package/dist/core/schema/SchemaGenerator.d.ts.map +1 -1
- package/dist/core/schema/SchemaGenerator.js +38 -1
- package/dist/core/schema/SchemaGenerator.js.map +1 -1
- package/dist/core/types.d.ts +19 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/exposition/ExpositionCompiler.d.ts.map +1 -1
- package/dist/exposition/ExpositionCompiler.js +25 -2
- package/dist/exposition/ExpositionCompiler.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/introspection/BehaviorDigest.d.ts +2 -2
- package/dist/introspection/BehaviorDigest.d.ts.map +1 -1
- package/dist/introspection/BehaviorDigest.js +38 -36
- package/dist/introspection/BehaviorDigest.js.map +1 -1
- package/dist/introspection/CapabilityLockfile.d.ts +2 -2
- package/dist/introspection/CapabilityLockfile.d.ts.map +1 -1
- package/dist/introspection/CapabilityLockfile.js +9 -9
- package/dist/introspection/CapabilityLockfile.js.map +1 -1
- package/dist/introspection/CryptoAttestation.d.ts.map +1 -1
- package/dist/introspection/CryptoAttestation.js +27 -36
- package/dist/introspection/CryptoAttestation.js.map +1 -1
- package/dist/introspection/ToolContract.d.ts +2 -2
- package/dist/introspection/ToolContract.d.ts.map +1 -1
- package/dist/introspection/ToolContract.js +9 -9
- package/dist/introspection/ToolContract.js.map +1 -1
- package/dist/introspection/canonicalize.d.ts +16 -1
- package/dist/introspection/canonicalize.d.ts.map +1 -1
- package/dist/introspection/canonicalize.js +24 -3
- package/dist/introspection/canonicalize.js.map +1 -1
- package/dist/presenter/PostProcessor.d.ts +4 -2
- package/dist/presenter/PostProcessor.d.ts.map +1 -1
- package/dist/presenter/PostProcessor.js +10 -10
- package/dist/presenter/PostProcessor.js.map +1 -1
- package/dist/presenter/Presenter.d.ts +112 -6
- package/dist/presenter/Presenter.d.ts.map +1 -1
- package/dist/presenter/Presenter.js +134 -40
- package/dist/presenter/Presenter.js.map +1 -1
- package/dist/presenter/SelectUtils.d.ts +78 -0
- package/dist/presenter/SelectUtils.d.ts.map +1 -0
- package/dist/presenter/SelectUtils.js +141 -0
- package/dist/presenter/SelectUtils.js.map +1 -0
- package/dist/presenter/index.d.ts +3 -0
- package/dist/presenter/index.d.ts.map +1 -1
- package/dist/presenter/index.js +6 -0
- package/dist/presenter/index.js.map +1 -1
- package/dist/presenter/suggest.d.ts +39 -0
- package/dist/presenter/suggest.d.ts.map +1 -0
- package/dist/presenter/suggest.js +41 -0
- package/dist/presenter/suggest.js.map +1 -0
- package/dist/presenter/typeHelpers.d.ts +147 -0
- package/dist/presenter/typeHelpers.d.ts.map +1 -0
- package/dist/presenter/typeHelpers.js +152 -0
- package/dist/presenter/typeHelpers.js.map +1 -0
- package/dist/prompt/FluentPromptBuilder.d.ts +155 -0
- package/dist/prompt/FluentPromptBuilder.d.ts.map +1 -0
- package/dist/prompt/FluentPromptBuilder.js +193 -0
- package/dist/prompt/FluentPromptBuilder.js.map +1 -0
- package/dist/prompt/index.d.ts +1 -0
- package/dist/prompt/index.d.ts.map +1 -1
- package/dist/prompt/index.js +1 -0
- package/dist/prompt/index.js.map +1 -1
- package/dist/server/DevServer.js +8 -8
- package/dist/server/DevServer.js.map +1 -1
- package/dist/server/ServerAttachment.d.ts +1 -1
- package/dist/server/ServerAttachment.d.ts.map +1 -1
- package/dist/server/ServerAttachment.js +57 -4
- package/dist/server/ServerAttachment.js.map +1 -1
- package/dist/state-sync/ResponseDecorator.d.ts +1 -1
- package/dist/state-sync/StateSyncBuilder.d.ts +75 -0
- package/dist/state-sync/StateSyncBuilder.d.ts.map +1 -0
- package/dist/state-sync/StateSyncBuilder.js +123 -0
- package/dist/state-sync/StateSyncBuilder.js.map +1 -0
- package/dist/state-sync/index.d.ts +1 -0
- package/dist/state-sync/index.d.ts.map +1 -1
- package/dist/state-sync/index.js +1 -0
- package/dist/state-sync/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FluentSchemaHelpers — Chainable Parameter Declarations
|
|
3
|
+
*
|
|
4
|
+
* Provides `f.string()`, `f.number()`, `f.boolean()`, `f.enum()`, `f.array()`
|
|
5
|
+
* that build ParamDescriptors via fluent method chaining.
|
|
6
|
+
*
|
|
7
|
+
* These are syntax sugar over the existing `ParamDescriptors` system.
|
|
8
|
+
* At build time, `.toDescriptor()` produces the same JSON descriptor
|
|
9
|
+
* that `convertParamsToZod()` already knows how to convert.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const f = initFusion<AppContext>();
|
|
14
|
+
*
|
|
15
|
+
* f.query('users.list')
|
|
16
|
+
* .input({
|
|
17
|
+
* limit: f.number().min(1).max(100).default(10).describe('Max results'),
|
|
18
|
+
* status: f.enum('active', 'inactive').optional(),
|
|
19
|
+
* name: f.string().min(3).example('Alice').describe('Search by name'),
|
|
20
|
+
* })
|
|
21
|
+
* .resolve(async ({ input, ctx }) => { ... });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @module
|
|
25
|
+
*/
|
|
26
|
+
import type { ParamDef, StringParamDef, NumberParamDef, BooleanParamDef, EnumParamDef, ArrayParamDef } from './ParamDescriptors.js';
|
|
27
|
+
/**
|
|
28
|
+
* Symbol used to detect fluent schema helpers at runtime.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare const FLUENT_DESCRIPTOR: unique symbol;
|
|
32
|
+
/**
|
|
33
|
+
* Base interface for all fluent descriptors.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export interface FluentDescriptor {
|
|
37
|
+
readonly [FLUENT_DESCRIPTOR]: true;
|
|
38
|
+
/** Convert the fluent descriptor to a plain ParamDef for ParamDescriptors. */
|
|
39
|
+
toDescriptor(): ParamDef;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Type guard: is this value a FluentDescriptor?
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export declare function isFluentDescriptor(value: unknown): value is FluentDescriptor;
|
|
46
|
+
/**
|
|
47
|
+
* Infer the TypeScript type from a single fluent descriptor or ParamDef.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
type InferSingleFluent<T> = T extends FluentString ? string : T extends FluentNumber ? number : T extends FluentBoolean ? boolean : T extends FluentEnum<infer V> ? V : T extends FluentArray ? (T extends {
|
|
51
|
+
_itemType: 'string';
|
|
52
|
+
} ? string[] : T extends {
|
|
53
|
+
_itemType: 'number';
|
|
54
|
+
} ? number[] : T extends {
|
|
55
|
+
_itemType: 'boolean';
|
|
56
|
+
} ? boolean[] : unknown[]) : T extends 'string' ? string : T extends 'number' ? number : T extends 'boolean' ? boolean : T extends {
|
|
57
|
+
type: 'string';
|
|
58
|
+
} ? string : T extends {
|
|
59
|
+
type: 'number';
|
|
60
|
+
} ? number : T extends {
|
|
61
|
+
type: 'boolean';
|
|
62
|
+
} ? boolean : T extends {
|
|
63
|
+
enum: readonly (infer V)[];
|
|
64
|
+
} ? V : T extends {
|
|
65
|
+
array: 'string';
|
|
66
|
+
} ? string[] : T extends {
|
|
67
|
+
array: 'number';
|
|
68
|
+
} ? number[] : T extends {
|
|
69
|
+
array: 'boolean';
|
|
70
|
+
} ? boolean[] : unknown;
|
|
71
|
+
/**
|
|
72
|
+
* Check if a fluent/param value is optional.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
type IsFieldOptional<T> = T extends {
|
|
76
|
+
_optional: true;
|
|
77
|
+
} ? true : T extends {
|
|
78
|
+
optional: true;
|
|
79
|
+
} ? true : false;
|
|
80
|
+
/** Required keys from a FluentParamsMap */
|
|
81
|
+
type FluentRequiredKeys<T extends Record<string, unknown>> = {
|
|
82
|
+
[K in keyof T]: IsFieldOptional<T[K]> extends true ? never : K;
|
|
83
|
+
}[keyof T];
|
|
84
|
+
/** Optional keys from a FluentParamsMap */
|
|
85
|
+
type FluentOptionalKeys<T extends Record<string, unknown>> = {
|
|
86
|
+
[K in keyof T]: IsFieldOptional<T[K]> extends true ? K : never;
|
|
87
|
+
}[keyof T];
|
|
88
|
+
/**
|
|
89
|
+
* Infer the full TypeScript type from a FluentParamsMap.
|
|
90
|
+
*
|
|
91
|
+
* Required params become required properties, optional params become
|
|
92
|
+
* optional properties with `| undefined`.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* const schema = {
|
|
97
|
+
* limit: f.number().min(1).max(100), // required: number
|
|
98
|
+
* status: f.enum('active', 'inactive').optional(), // optional: 'active' | 'inactive'
|
|
99
|
+
* };
|
|
100
|
+
* type T = InferFluentParams<typeof schema>;
|
|
101
|
+
* // { limit: number; status?: 'active' | 'inactive' }
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
export type InferFluentParams<T extends Record<string, unknown>> = {
|
|
105
|
+
[K in FluentRequiredKeys<T>]: InferSingleFluent<T[K]>;
|
|
106
|
+
} & {
|
|
107
|
+
[K in FluentOptionalKeys<T>]?: InferSingleFluent<T[K]>;
|
|
108
|
+
};
|
|
109
|
+
export declare class FluentString implements FluentDescriptor {
|
|
110
|
+
readonly [FLUENT_DESCRIPTOR]: true;
|
|
111
|
+
private _desc?;
|
|
112
|
+
/** @internal */ _optional: boolean;
|
|
113
|
+
private _min?;
|
|
114
|
+
private _max?;
|
|
115
|
+
private _regex?;
|
|
116
|
+
private _default?;
|
|
117
|
+
private _examples?;
|
|
118
|
+
/** Set minimum string length */
|
|
119
|
+
min(n: number): this;
|
|
120
|
+
/** Set maximum string length */
|
|
121
|
+
max(n: number): this;
|
|
122
|
+
/** Set regex validation pattern */
|
|
123
|
+
regex(pattern: string): this;
|
|
124
|
+
/** Mark as optional */
|
|
125
|
+
optional(): FluentString & {
|
|
126
|
+
_optional: true;
|
|
127
|
+
};
|
|
128
|
+
/** Set human-readable description */
|
|
129
|
+
describe(text: string): this;
|
|
130
|
+
/** Set default value (appended to description for LLM) */
|
|
131
|
+
default(value: string): this;
|
|
132
|
+
/** Add a single LLM few-shot example (AI-First DX) */
|
|
133
|
+
example(value: string): this;
|
|
134
|
+
/** Set multiple LLM few-shot examples */
|
|
135
|
+
examples(...values: string[]): this;
|
|
136
|
+
toDescriptor(): StringParamDef;
|
|
137
|
+
}
|
|
138
|
+
export declare class FluentNumber implements FluentDescriptor {
|
|
139
|
+
readonly [FLUENT_DESCRIPTOR]: true;
|
|
140
|
+
private _desc?;
|
|
141
|
+
/** @internal */ _optional: boolean;
|
|
142
|
+
private _min?;
|
|
143
|
+
private _max?;
|
|
144
|
+
private _int;
|
|
145
|
+
private _default?;
|
|
146
|
+
private _examples?;
|
|
147
|
+
/** Set minimum value */
|
|
148
|
+
min(n: number): this;
|
|
149
|
+
/** Set maximum value */
|
|
150
|
+
max(n: number): this;
|
|
151
|
+
/** Restrict to integers */
|
|
152
|
+
int(): this;
|
|
153
|
+
/** Mark as optional */
|
|
154
|
+
optional(): FluentNumber & {
|
|
155
|
+
_optional: true;
|
|
156
|
+
};
|
|
157
|
+
/** Set human-readable description */
|
|
158
|
+
describe(text: string): this;
|
|
159
|
+
/** Set default value (appended to description for LLM) */
|
|
160
|
+
default(value: number): this;
|
|
161
|
+
/** Add a single LLM few-shot example (AI-First DX) */
|
|
162
|
+
example(value: number): this;
|
|
163
|
+
/** Set multiple LLM few-shot examples */
|
|
164
|
+
examples(...values: number[]): this;
|
|
165
|
+
toDescriptor(): NumberParamDef;
|
|
166
|
+
}
|
|
167
|
+
export declare class FluentBoolean implements FluentDescriptor {
|
|
168
|
+
readonly [FLUENT_DESCRIPTOR]: true;
|
|
169
|
+
private _desc?;
|
|
170
|
+
/** @internal */ _optional: boolean;
|
|
171
|
+
private _default?;
|
|
172
|
+
/** Mark as optional */
|
|
173
|
+
optional(): FluentBoolean & {
|
|
174
|
+
_optional: true;
|
|
175
|
+
};
|
|
176
|
+
/** Set human-readable description */
|
|
177
|
+
describe(text: string): this;
|
|
178
|
+
/** Set default value (appended to description for LLM) */
|
|
179
|
+
default(value: boolean): this;
|
|
180
|
+
toDescriptor(): BooleanParamDef;
|
|
181
|
+
}
|
|
182
|
+
export declare class FluentEnum<V extends string = string> implements FluentDescriptor {
|
|
183
|
+
readonly [FLUENT_DESCRIPTOR]: true;
|
|
184
|
+
private _desc?;
|
|
185
|
+
/** @internal */ _optional: boolean;
|
|
186
|
+
private _examples?;
|
|
187
|
+
private _default?;
|
|
188
|
+
private readonly _values;
|
|
189
|
+
constructor(...values: [V, ...V[]]);
|
|
190
|
+
/** Mark as optional */
|
|
191
|
+
optional(): FluentEnum<V> & {
|
|
192
|
+
_optional: true;
|
|
193
|
+
};
|
|
194
|
+
/** Set human-readable description */
|
|
195
|
+
describe(text: string): this;
|
|
196
|
+
/** Set default value (appended to description for LLM) */
|
|
197
|
+
default(value: V): this;
|
|
198
|
+
/** Add a single LLM few-shot example (AI-First DX) */
|
|
199
|
+
example(value: V): this;
|
|
200
|
+
/** Set multiple LLM few-shot examples */
|
|
201
|
+
examples(...values: V[]): this;
|
|
202
|
+
toDescriptor(): EnumParamDef<V>;
|
|
203
|
+
}
|
|
204
|
+
type PrimitiveType = 'string' | 'number' | 'boolean';
|
|
205
|
+
export declare class FluentArray implements FluentDescriptor {
|
|
206
|
+
readonly [FLUENT_DESCRIPTOR]: true;
|
|
207
|
+
private _desc?;
|
|
208
|
+
/** @internal */ _optional: boolean;
|
|
209
|
+
private _min?;
|
|
210
|
+
private _max?;
|
|
211
|
+
/** @internal */ readonly _itemType: PrimitiveType;
|
|
212
|
+
constructor(itemType: PrimitiveType);
|
|
213
|
+
/** Set minimum array length */
|
|
214
|
+
min(n: number): this;
|
|
215
|
+
/** Set maximum array length */
|
|
216
|
+
max(n: number): this;
|
|
217
|
+
/** Mark as optional */
|
|
218
|
+
optional(): FluentArray & {
|
|
219
|
+
_optional: true;
|
|
220
|
+
};
|
|
221
|
+
/** Set human-readable description */
|
|
222
|
+
describe(text: string): this;
|
|
223
|
+
toDescriptor(): ArrayParamDef;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* A map where values can be either classic ParamDef or FluentDescriptor.
|
|
227
|
+
* The FluentToolBuilder resolves these to ParamDef at build time.
|
|
228
|
+
*/
|
|
229
|
+
export type FluentParamsMap = Record<string, ParamDef | FluentDescriptor>;
|
|
230
|
+
/**
|
|
231
|
+
* Resolve a FluentParamsMap to a plain ParamsMap by calling .toDescriptor()
|
|
232
|
+
* on any FluentDescriptor values.
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
export declare function resolveFluentParams(input: FluentParamsMap): Record<string, ParamDef>;
|
|
236
|
+
export {};
|
|
237
|
+
//# sourceMappingURL=FluentSchemaHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FluentSchemaHelpers.d.ts","sourceRoot":"","sources":["../../../src/core/builder/FluentSchemaHelpers.ts"],"names":[],"mappings":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,CAAC,EAAE,MAAM,GAAG,IAAI;IACpB,uBAAuB;IACvB,QAAQ,IAAI,WAAW,GAAG;QAAE,SAAS,EAAE,IAAI,CAAA;KAAE;IAI7C,qCAAqC;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAE5B,YAAY,IAAI,aAAa;CAShC;AAID;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,gBAAgB,CAAC,CAAC;AAE1E;;;;GAIG;AACH,wBAAgB,mBAAmB,CAC/B,KAAK,EAAE,eAAe,GACvB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAQ1B"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// ── Sentinel for fluent descriptor detection ──────────────
|
|
2
|
+
/**
|
|
3
|
+
* Symbol used to detect fluent schema helpers at runtime.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export const FLUENT_DESCRIPTOR = Symbol.for('mcp-fusion.fluent-descriptor');
|
|
7
|
+
/**
|
|
8
|
+
* Type guard: is this value a FluentDescriptor?
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export function isFluentDescriptor(value) {
|
|
12
|
+
return (typeof value === 'object' &&
|
|
13
|
+
value !== null &&
|
|
14
|
+
FLUENT_DESCRIPTOR in value &&
|
|
15
|
+
value[FLUENT_DESCRIPTOR] === true);
|
|
16
|
+
}
|
|
17
|
+
// ── String Helper ────────────────────────────────────────
|
|
18
|
+
export class FluentString {
|
|
19
|
+
[FLUENT_DESCRIPTOR] = true;
|
|
20
|
+
_desc;
|
|
21
|
+
/** @internal */ _optional = false;
|
|
22
|
+
_min;
|
|
23
|
+
_max;
|
|
24
|
+
_regex;
|
|
25
|
+
_default;
|
|
26
|
+
_examples;
|
|
27
|
+
/** Set minimum string length */
|
|
28
|
+
min(n) { this._min = n; return this; }
|
|
29
|
+
/** Set maximum string length */
|
|
30
|
+
max(n) { this._max = n; return this; }
|
|
31
|
+
/** Set regex validation pattern */
|
|
32
|
+
regex(pattern) { this._regex = pattern; return this; }
|
|
33
|
+
/** Mark as optional */
|
|
34
|
+
optional() {
|
|
35
|
+
this._optional = true;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
/** Set human-readable description */
|
|
39
|
+
describe(text) { this._desc = text; return this; }
|
|
40
|
+
/** Set default value (appended to description for LLM) */
|
|
41
|
+
default(value) { this._default = value; return this; }
|
|
42
|
+
/** Add a single LLM few-shot example (AI-First DX) */
|
|
43
|
+
example(value) {
|
|
44
|
+
if (!this._examples)
|
|
45
|
+
this._examples = [];
|
|
46
|
+
this._examples.push(value);
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
/** Set multiple LLM few-shot examples */
|
|
50
|
+
examples(...values) { this._examples = values; return this; }
|
|
51
|
+
toDescriptor() {
|
|
52
|
+
const desc = this._default !== undefined
|
|
53
|
+
? (this._desc ? `${this._desc} (default: '${this._default}')` : `(default: '${this._default}')`)
|
|
54
|
+
: this._desc;
|
|
55
|
+
return {
|
|
56
|
+
type: 'string',
|
|
57
|
+
...(desc && { description: desc }),
|
|
58
|
+
...(this._optional && { optional: true }),
|
|
59
|
+
...(this._min !== undefined && { min: this._min }),
|
|
60
|
+
...(this._max !== undefined && { max: this._max }),
|
|
61
|
+
...(this._regex !== undefined && { regex: this._regex }),
|
|
62
|
+
...(this._examples && { examples: this._examples }),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
// ── Number Helper ────────────────────────────────────────
|
|
67
|
+
export class FluentNumber {
|
|
68
|
+
[FLUENT_DESCRIPTOR] = true;
|
|
69
|
+
_desc;
|
|
70
|
+
/** @internal */ _optional = false;
|
|
71
|
+
_min;
|
|
72
|
+
_max;
|
|
73
|
+
_int = false;
|
|
74
|
+
_default;
|
|
75
|
+
_examples;
|
|
76
|
+
/** Set minimum value */
|
|
77
|
+
min(n) { this._min = n; return this; }
|
|
78
|
+
/** Set maximum value */
|
|
79
|
+
max(n) { this._max = n; return this; }
|
|
80
|
+
/** Restrict to integers */
|
|
81
|
+
int() { this._int = true; return this; }
|
|
82
|
+
/** Mark as optional */
|
|
83
|
+
optional() {
|
|
84
|
+
this._optional = true;
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
/** Set human-readable description */
|
|
88
|
+
describe(text) { this._desc = text; return this; }
|
|
89
|
+
/** Set default value (appended to description for LLM) */
|
|
90
|
+
default(value) { this._default = value; return this; }
|
|
91
|
+
/** Add a single LLM few-shot example (AI-First DX) */
|
|
92
|
+
example(value) {
|
|
93
|
+
if (!this._examples)
|
|
94
|
+
this._examples = [];
|
|
95
|
+
this._examples.push(value);
|
|
96
|
+
return this;
|
|
97
|
+
}
|
|
98
|
+
/** Set multiple LLM few-shot examples */
|
|
99
|
+
examples(...values) { this._examples = values; return this; }
|
|
100
|
+
toDescriptor() {
|
|
101
|
+
const desc = this._default !== undefined
|
|
102
|
+
? (this._desc ? `${this._desc} (default: ${this._default})` : `(default: ${this._default})`)
|
|
103
|
+
: this._desc;
|
|
104
|
+
return {
|
|
105
|
+
type: 'number',
|
|
106
|
+
...(desc && { description: desc }),
|
|
107
|
+
...(this._optional && { optional: true }),
|
|
108
|
+
...(this._min !== undefined && { min: this._min }),
|
|
109
|
+
...(this._max !== undefined && { max: this._max }),
|
|
110
|
+
...(this._int && { int: true }),
|
|
111
|
+
...(this._examples && { examples: this._examples }),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
// ── Boolean Helper ───────────────────────────────────────
|
|
116
|
+
export class FluentBoolean {
|
|
117
|
+
[FLUENT_DESCRIPTOR] = true;
|
|
118
|
+
_desc;
|
|
119
|
+
/** @internal */ _optional = false;
|
|
120
|
+
_default;
|
|
121
|
+
/** Mark as optional */
|
|
122
|
+
optional() {
|
|
123
|
+
this._optional = true;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
/** Set human-readable description */
|
|
127
|
+
describe(text) { this._desc = text; return this; }
|
|
128
|
+
/** Set default value (appended to description for LLM) */
|
|
129
|
+
default(value) { this._default = value; return this; }
|
|
130
|
+
toDescriptor() {
|
|
131
|
+
const desc = this._default !== undefined
|
|
132
|
+
? (this._desc ? `${this._desc} (default: ${this._default})` : `(default: ${this._default})`)
|
|
133
|
+
: this._desc;
|
|
134
|
+
return {
|
|
135
|
+
type: 'boolean',
|
|
136
|
+
...(desc && { description: desc }),
|
|
137
|
+
...(this._optional && { optional: true }),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
// ── Enum Helper ──────────────────────────────────────────
|
|
142
|
+
export class FluentEnum {
|
|
143
|
+
[FLUENT_DESCRIPTOR] = true;
|
|
144
|
+
_desc;
|
|
145
|
+
/** @internal */ _optional = false;
|
|
146
|
+
_examples;
|
|
147
|
+
_default;
|
|
148
|
+
_values;
|
|
149
|
+
constructor(...values) {
|
|
150
|
+
this._values = values;
|
|
151
|
+
}
|
|
152
|
+
/** Mark as optional */
|
|
153
|
+
optional() {
|
|
154
|
+
this._optional = true;
|
|
155
|
+
return this;
|
|
156
|
+
}
|
|
157
|
+
/** Set human-readable description */
|
|
158
|
+
describe(text) { this._desc = text; return this; }
|
|
159
|
+
/** Set default value (appended to description for LLM) */
|
|
160
|
+
default(value) { this._default = value; return this; }
|
|
161
|
+
/** Add a single LLM few-shot example (AI-First DX) */
|
|
162
|
+
example(value) {
|
|
163
|
+
if (!this._examples)
|
|
164
|
+
this._examples = [];
|
|
165
|
+
this._examples.push(value);
|
|
166
|
+
return this;
|
|
167
|
+
}
|
|
168
|
+
/** Set multiple LLM few-shot examples */
|
|
169
|
+
examples(...values) { this._examples = values; return this; }
|
|
170
|
+
toDescriptor() {
|
|
171
|
+
const desc = this._default !== undefined
|
|
172
|
+
? (this._desc ? `${this._desc} (default: '${this._default}')` : `(default: '${this._default}')`)
|
|
173
|
+
: this._desc;
|
|
174
|
+
return {
|
|
175
|
+
enum: this._values,
|
|
176
|
+
...(desc && { description: desc }),
|
|
177
|
+
...(this._optional && { optional: true }),
|
|
178
|
+
...(this._examples && { examples: this._examples }),
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
export class FluentArray {
|
|
183
|
+
[FLUENT_DESCRIPTOR] = true;
|
|
184
|
+
_desc;
|
|
185
|
+
/** @internal */ _optional = false;
|
|
186
|
+
_min;
|
|
187
|
+
_max;
|
|
188
|
+
/** @internal */ _itemType;
|
|
189
|
+
constructor(itemType) {
|
|
190
|
+
this._itemType = itemType;
|
|
191
|
+
}
|
|
192
|
+
/** Set minimum array length */
|
|
193
|
+
min(n) { this._min = n; return this; }
|
|
194
|
+
/** Set maximum array length */
|
|
195
|
+
max(n) { this._max = n; return this; }
|
|
196
|
+
/** Mark as optional */
|
|
197
|
+
optional() {
|
|
198
|
+
this._optional = true;
|
|
199
|
+
return this;
|
|
200
|
+
}
|
|
201
|
+
/** Set human-readable description */
|
|
202
|
+
describe(text) { this._desc = text; return this; }
|
|
203
|
+
toDescriptor() {
|
|
204
|
+
return {
|
|
205
|
+
array: this._itemType,
|
|
206
|
+
...(this._desc && { description: this._desc }),
|
|
207
|
+
...(this._optional && { optional: true }),
|
|
208
|
+
...(this._min !== undefined && { min: this._min }),
|
|
209
|
+
...(this._max !== undefined && { max: this._max }),
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Resolve a FluentParamsMap to a plain ParamsMap by calling .toDescriptor()
|
|
215
|
+
* on any FluentDescriptor values.
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
export function resolveFluentParams(input) {
|
|
219
|
+
const resolved = {};
|
|
220
|
+
for (const [key, value] of Object.entries(input)) {
|
|
221
|
+
resolved[key] = isFluentDescriptor(value)
|
|
222
|
+
? value.toDescriptor()
|
|
223
|
+
: value;
|
|
224
|
+
}
|
|
225
|
+
return resolved;
|
|
226
|
+
}
|
|
227
|
+
//# sourceMappingURL=FluentSchemaHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FluentSchemaHelpers.js","sourceRoot":"","sources":["../../../src/core/builder/FluentSchemaHelpers.ts"],"names":[],"mappings":"AAkCA,6DAA6D;AAE7D;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;AAY5E;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC7C,OAAO,CACH,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,iBAAiB,IAAI,KAAK;QACzB,KAAiC,CAAC,iBAAiB,CAAC,KAAK,IAAI,CACjE,CAAC;AACN,CAAC;AAgFD,4DAA4D;AAE5D,MAAM,OAAO,YAAY;IACZ,CAAC,iBAAiB,CAAC,GAAG,IAAa,CAAC;IACrC,KAAK,CAAU;IACvB,gBAAgB,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,IAAI,CAAU;IACd,IAAI,CAAU;IACd,MAAM,CAAU;IAChB,QAAQ,CAAU;IAClB,SAAS,CAAY;IAE7B,gCAAgC;IAChC,GAAG,CAAC,CAAS,IAAU,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;IACpD,gCAAgC;IAChC,GAAG,CAAC,CAAS,IAAU,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;IACpD,mCAAmC;IACnC,KAAK,CAAC,OAAe,IAAU,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;IACpE,uBAAuB;IACvB,QAAQ;QACJ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,OAAO,IAA0C,CAAC;IACtD,CAAC;IACD,qCAAqC;IACrC,QAAQ,CAAC,I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