@regle/mcp-server 1.19.16 → 1.20.0-preview.1

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.
@@ -679,7 +679,7 @@ var docs_data_default = {
679
679
  "description": "",
680
680
  "optional": false
681
681
  }],
682
- "returnType": "NonNullable<Unwrap<TState>> extends PrimitiveTypes ? { r$: Raw<RegleFieldStatus<WidenPrimitiveLiterals<string & Unwrap<TState>> | ... 5 more ... | WidenPrimitiveLiterals<...>, TDecl, RegleShortcutDefi...",
682
+ "returnType": "NonNullable<Unwrap<TState>> extends PrimitiveTypes ? { r$: Raw<RegleFieldStatus<WidenPrimitiveLiterals<Unwrap<TState>>, TDecl, RegleShortcutDefinition<...>>>; } : { ...; }",
683
683
  "example": "import { useRegle } from '@regle/core';\nimport { required, email, minLength } from '@regle/rules';\n\nconst { r$ } = useRegle(\n { name: '', email: '' },\n {\n name: { required, minLength: minLength(2) },\n email: { required, email }\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\n\n// Trigger validation\nconst result = await r$.$validate();",
684
684
  "tags": { "see": "://reglejs.dev/core-concepts/ Documentation" }
685
685
  },
@@ -721,7 +721,7 @@ var docs_data_default = {
721
721
  "description": "",
722
722
  "optional": false
723
723
  }],
724
- "returnType": "NonNullable<Unwrap<TState>> extends PrimitiveTypes ? RegleSingleField<WidenPrimitiveLiterals<string & Unwrap<TState>> | ... 5 more ... | WidenPrimitiveLiterals<...>, TDecl, never, { ...; }> : Regle<.....",
724
+ "returnType": "NonNullable<Unwrap<TState>> extends PrimitiveTypes ? RegleSingleField<WidenPrimitiveLiterals<Unwrap<TState>>, TDecl, never, { ...; }> : Regle<...>",
725
725
  "example": "// ChildComponent.vue\nimport { useScopedRegle } from '@regle/core';\n\nconst { r$ } = useScopedRegle(\n { email: '' },\n { email: { required, email } },\n { namespace: 'contacts' }\n);",
726
726
  "tags": { "see": "://reglejs.dev/advanced-usage/scoped-validation Documentation" }
727
727
  },
@@ -816,7 +816,7 @@ var docs_data_default = {
816
816
  },
817
817
  {
818
818
  "name": "rule",
819
- "type": "TRule",
819
+ "type": "RegleRuleWithParamsDefinitionInput<TType, TValue, TParams, TAsync, TMetadata, any>",
820
820
  "description": "- The rule to apply conditionally",
821
821
  "optional": false
822
822
  },
@@ -827,7 +827,7 @@ var docs_data_default = {
827
827
  "optional": true
828
828
  }
829
829
  ],
830
- "returnType": "TRule extends InlineRuleDeclaration<infer TValue, infer TParams, infer TReturn>\n ? RegleRuleDefinition<\n 'applyIf',\n TValue,\n ParamsToLooseParams<TParams, [condition: boolean]>,\n ...",
830
+ "returnType": "RegleRuleDefinition<\n TType,\n TValue,\n ParamsToLooseParams<[...TParams]>,\n TAsync,\n TMetadata,\n MaybeInput<TValue>,\n TValue,\n false\n>",
831
831
  "example": "import { minLength, applyIf } from '@regle/rules';\n\nconst condition = ref(false);\n\nconst { r$ } = useRegle({ name: '' }, {\n name: {\n minLength: applyIf(condition, minLength(6))\n },\n});",
832
832
  "tags": { "see": "://reglejs.dev/core-concepts/rules/rules-operators#applyif Documentation" }
833
833
  },
@@ -1997,7 +1997,7 @@ function searchApi(query) {
1997
1997
  return results;
1998
1998
  }
1999
1999
 
2000
- var version = "1.19.16";
2000
+ var version = "1.20.0-preview.1";
2001
2001
 
2002
2002
  let posthogClient = null;
2003
2003
  posthogClient = new PostHog("phc_kqgJoylCpKkGkkRGxb4MyN2mViehoQcUFEGwVkk4l8E", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regle/mcp-server",
3
- "version": "1.19.16",
3
+ "version": "1.20.0-preview.1",
4
4
  "description": "MCP Server for Regle",
5
5
  "keywords": [
6
6
  "ai",
@@ -54,10 +54,11 @@
54
54
  "dotenv": "17.3.1",
55
55
  "tsdown": "0.20.3",
56
56
  "tsx": "4.21.0",
57
- "typescript": "5.9.3"
57
+ "typescript": "5.9.3",
58
+ "@typescript/native-preview": "7.0.0-dev.20260303.1"
58
59
  },
59
60
  "scripts": {
60
- "typecheck": "tsc --noEmit",
61
+ "typecheck": "tsgo --noEmit",
61
62
  "build:docs": "tsx scripts/build-docs-data.ts",
62
63
  "build": "pnpm run build:docs && tsdown",
63
64
  "lint": "oxlint",