@leanmcp/core 0.4.4-alpha.8.f4673cd → 0.4.5
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/LICENSE +21 -21
- package/dist/chunk-LPEX4YW6.mjs +13 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/dist/server-BEQUIEE2.mjs +25808 -0
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 LeanMCP Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 LeanMCP Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
+
}) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
__name,
|
|
12
|
+
__require
|
|
13
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -382,6 +382,10 @@ declare function SchemaConstraint(constraints: {
|
|
|
382
382
|
enum?: any[];
|
|
383
383
|
description?: string;
|
|
384
384
|
default?: any;
|
|
385
|
+
items?: {
|
|
386
|
+
type: string;
|
|
387
|
+
description?: string;
|
|
388
|
+
};
|
|
385
389
|
}): PropertyDecorator;
|
|
386
390
|
/**
|
|
387
391
|
* Enhanced schema generator that includes constraints
|
package/dist/index.d.ts
CHANGED
|
@@ -382,6 +382,10 @@ declare function SchemaConstraint(constraints: {
|
|
|
382
382
|
enum?: any[];
|
|
383
383
|
description?: string;
|
|
384
384
|
default?: any;
|
|
385
|
+
items?: {
|
|
386
|
+
type: string;
|
|
387
|
+
description?: string;
|
|
388
|
+
};
|
|
385
389
|
}): PropertyDecorator;
|
|
386
390
|
/**
|
|
387
391
|
* Enhanced schema generator that includes constraints
|
package/dist/index.js
CHANGED
|
@@ -288,10 +288,16 @@ function classToJsonSchemaWithConstraints(classConstructor) {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
const propertySchema = {
|
|
292
292
|
type: jsonSchemaType,
|
|
293
293
|
...constraints || {}
|
|
294
294
|
};
|
|
295
|
+
if (jsonSchemaType === "array" && !propertySchema.items) {
|
|
296
|
+
propertySchema.items = {
|
|
297
|
+
type: "string"
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
properties[propertyName] = propertySchema;
|
|
295
301
|
if (!isOptional) {
|
|
296
302
|
required.push(propertyName);
|
|
297
303
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -273,10 +273,16 @@ function classToJsonSchemaWithConstraints(classConstructor) {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
const propertySchema = {
|
|
277
277
|
type: jsonSchemaType,
|
|
278
278
|
...constraints || {}
|
|
279
279
|
};
|
|
280
|
+
if (jsonSchemaType === "array" && !propertySchema.items) {
|
|
281
|
+
propertySchema.items = {
|
|
282
|
+
type: "string"
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
properties[propertyName] = propertySchema;
|
|
280
286
|
if (!isOptional) {
|
|
281
287
|
required.push(propertyName);
|
|
282
288
|
}
|