@regle/mcp-server 1.24.3 → 1.25.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/regle-mcp-server.js +6 -6
- package/package.json +1 -1
package/dist/regle-mcp-server.js
CHANGED
|
@@ -706,7 +706,7 @@ const rawData = {
|
|
|
706
706
|
"description": "",
|
|
707
707
|
"optional": true
|
|
708
708
|
}],
|
|
709
|
-
"returnType": "NonNullable<TState> extends PrimitiveTypes ? Omit<RegleCommonStatus<PrimitiveTypes & TState & {}, TDecl>, \"$value\" | ... 2 more ... | \"$originalValue\"> & ... 4 more ...
|
|
709
|
+
"returnType": "NonNullable<TState> extends PrimitiveTypes ? Omit<RegleCommonStatus<PrimitiveTypes & TState & {}, PrimitiveTypes & TState & {}, TDecl>, \"$value\" | ... 2 more ... | \"$originalValue\"> & ... 4 more ... &...",
|
|
710
710
|
"example": "import { useRules, type InferInput } from '@regle/core';\nimport { required, string, email } from '@regle/rules';\n\nconst r$ = useRules({\n name: { required, string },\n email: { required, email }\n});\n\n// State is automatically created and typed\nr$.$value.name // string | null\nr$.$value.email // string | null\n\n// Can be used with Standard Schema compatible libraries\nconst result = await r$['~standard'].validate({ name: '', email: '' });",
|
|
711
711
|
"tags": { "see": "://reglejs.dev/common-usage/standard-schema#userules Documentation" }
|
|
712
712
|
},
|
|
@@ -1800,11 +1800,11 @@ const rawData = {
|
|
|
1800
1800
|
"description": "`useRegleSchema` enables validation using Standard Schema compatible libraries\nlike Zod, Valibot, or ArkType.",
|
|
1801
1801
|
"parameters": [{
|
|
1802
1802
|
"name": "params",
|
|
1803
|
-
"type": "[state: MaybeRef<DeepPartial<NoInferLegacy<
|
|
1803
|
+
"type": "[state: MaybeRef<DeepPartial<NoInferLegacy<TInput>>> | DeepReactiveState<DeepPartial<NoInferLegacy<TInput>>>, rulesFactory: MaybeRef<...>, options?: useRegleSchemaFnOptions<...> | undefined]",
|
|
1804
1804
|
"description": "",
|
|
1805
1805
|
"optional": false
|
|
1806
1806
|
}],
|
|
1807
|
-
"returnType": "NonNullable<
|
|
1807
|
+
"returnType": "NonNullable<TInput> extends PrimitiveTypes ? { r$: Raw<Omit<RegleCommonStatus<PrimitiveTypes & TInput & {}, NonNullable<TOutput>, Record<...>>, \"$pending\" | ... 3 more ... | \"$originalValue\"> & { ...;...",
|
|
1808
1808
|
"example": "import { useRegleSchema } from '@regle/schemas';\nimport * as v from 'valibot';\n\n// With Valibot\nconst { r$ } = useRegleSchema(\n { name: '', email: '' },\n v.object({\n name: v.pipe(v.string(), v.minLength(3)),\n email: v.pipe(v.string(), v.email())\n })\n);\n\n// With Zod\nimport { z } from 'zod';\n\nconst { r$ } = useRegleSchema(\n { name: '' },\n z.object({\n name: z.string().min(3)\n })\n);\n\n// Access validation state\nr$.$valid // Whether all validations pass\nr$.$value // The current form values\nr$.name.$errors // Errors for the name field",
|
|
1809
1809
|
"tags": { "see": "://reglejs.dev/integrations/schemas-libraries Documentation" }
|
|
1810
1810
|
},
|
|
@@ -1814,11 +1814,11 @@ const rawData = {
|
|
|
1814
1814
|
"description": "",
|
|
1815
1815
|
"parameters": [{
|
|
1816
1816
|
"name": "params",
|
|
1817
|
-
"type": "[state: MaybeRef<DeepPartial<NoInferLegacy<
|
|
1817
|
+
"type": "[state: MaybeRef<DeepPartial<NoInferLegacy<TInput>>> | DeepReactiveState<DeepPartial<NoInferLegacy<TInput>>>, rulesFactory: MaybeRef<...>, options?: useRegleSchemaFnOptions<...> | undefined]",
|
|
1818
1818
|
"description": "",
|
|
1819
1819
|
"optional": false
|
|
1820
1820
|
}],
|
|
1821
|
-
"returnType": "NonNullable<
|
|
1821
|
+
"returnType": "NonNullable<TInput> extends PrimitiveTypes ? { r$: Raw<Omit<RegleCommonStatus<PrimitiveTypes & TInput & {}, NonNullable<TOutput>, Record<...>>, \"$pending\" | ... 3 more ... | \"$originalValue\"> & { ...;...",
|
|
1822
1822
|
"example": "",
|
|
1823
1823
|
"tags": {}
|
|
1824
1824
|
},
|
|
@@ -2002,7 +2002,7 @@ function searchApi(query) {
|
|
|
2002
2002
|
});
|
|
2003
2003
|
return results;
|
|
2004
2004
|
}
|
|
2005
|
-
var version = "1.
|
|
2005
|
+
var version = "1.25.0";
|
|
2006
2006
|
let posthogClient = null;
|
|
2007
2007
|
posthogClient = new PostHog("phc_kqgJoylCpKkGkkRGxb4MyN2mViehoQcUFEGwVkk4l8E", {
|
|
2008
2008
|
host: "https://eu.i.posthog.com",
|