@regle/mcp-server 1.17.2 → 1.17.3

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.
@@ -444,16 +444,16 @@ var docs_data_default = {
444
444
  "description": "Type helper to provide autocomplete and type-checking for your form rules.\nIt returns the rules without any processing - useful with computed rules.",
445
445
  "parameters": [{
446
446
  "name": "state",
447
- "type": "MaybeRef<TState> | DeepReactiveState<TState>",
447
+ "type": "TState | DeepReactiveState<TState>",
448
448
  "description": "- The state reference",
449
449
  "optional": false
450
450
  }, {
451
451
  "name": "rulesFactory",
452
- "type": "TState extends PrimitiveTypes ? TDecl : TState extends Record<string, any> ? TRules : {}",
452
+ "type": "Unwrap<TState> extends PrimitiveTypes ? TDecl : Unwrap<TState> extends Record<string, any> ? TRules : {}",
453
453
  "description": "",
454
454
  "optional": false
455
455
  }],
456
- "returnType": "NonNullable<TState> extends PrimitiveTypes ? TDecl : TRules",
456
+ "returnType": "NonNullable<Unwrap<TState>> extends PrimitiveTypes ? TDecl : TRules",
457
457
  "example": "import { inferRules, useRegle } from '@regle/core';\nimport { required, minLength } from '@regle/rules';\n\nconst state = ref({ name: '' });\n\n// inferRules preserves TypeScript autocompletion\nconst rules = computed(() => {\n return inferRules(state, {\n name: { required, minLength: minLength(2) }\n })\n});\n\nconst { r$ } = useRegle(state, rules);",
458
458
  "tags": { "see": "://reglejs.dev/core-concepts/#dynamic-rules-object Documentation" }
459
459
  },
@@ -589,11 +589,11 @@ var docs_data_default = {
589
589
  "description": "`useRegle` serves as the foundation for validation logic.\nIt transforms your data and validation rules into a powerful, reactive validation system.",
590
590
  "parameters": [{
591
591
  "name": "params",
592
- "type": "[state: MaybeRef<TState> | DeepReactiveState<TState>, rulesFactory: TState extends PrimitiveTypes ? MaybeRefOrGetter<TDecl> : TState extends Record<...> ? MaybeRefOrComputedRef<...> | ((...args: any[]...",
592
+ "type": "[state: TState | DeepReactiveState<TState>, rulesFactory: Unwrap<TState> extends PrimitiveTypes ? MaybeRefOrGetter<TDecl> : Unwrap<...> extends Record<...> ? MaybeComputedOrGetter<...> : {}, ...HaveAn...",
593
593
  "description": "",
594
594
  "optional": false
595
595
  }],
596
- "returnType": "NonNullable<TState> extends PrimitiveTypes ? { r$: Raw<RegleFieldStatus<PrimitiveTypes & TState & {}, TDecl, RegleShortcutDefinition<any>>>; } : { ...; }",
596
+ "returnType": "NonNullable<Unwrap<TState>> extends PrimitiveTypes ? { r$: Raw<RegleFieldStatus<PrimitiveTypes & Unwrap<TState> & {}, TDecl, RegleShortcutDefinition<...>>>; } : { ...; }",
597
597
  "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();",
598
598
  "tags": { "see": "://reglejs.dev/core-concepts/ Documentation" }
599
599
  },
@@ -631,11 +631,11 @@ var docs_data_default = {
631
631
  "description": "Clone of `useRegle` that automatically registers its instance for collection by `useCollectScope`.\nEvery time it's called, a new instance is added for the parent scope to collect.\n\nCan be called multiple times anywhere in your app - not restricted to components or DOM.\nWhen the component is unmounted or scope is disposed, the instance is automatically unregistered.",
632
632
  "parameters": [{
633
633
  "name": "params",
634
- "type": "[state: MaybeRef<TState> | DeepReactiveState<TState>, rulesFactory: TState extends PrimitiveTypes ? MaybeRefOrGetter<TDecl> : TState extends Record<...> ? MaybeRefOrComputedRef<...> | ((...args: any[]...",
634
+ "type": "[state: TState | DeepReactiveState<TState>, rulesFactory: Unwrap<TState> extends PrimitiveTypes ? MaybeRefOrGetter<TDecl> : Unwrap<...> extends Record<...> ? MaybeComputedOrGetter<...> : {}, ...HaveAn...",
635
635
  "description": "",
636
636
  "optional": false
637
637
  }],
638
- "returnType": "NonNullable<TState> extends PrimitiveTypes ? RegleSingleField<PrimitiveTypes & TState & {}, TDecl, never, { ...; }> : Regle<...>",
638
+ "returnType": "NonNullable<Unwrap<TState>> extends PrimitiveTypes ? RegleSingleField<PrimitiveTypes & Unwrap<TState> & {}, TDecl, never, { ...; }> : Regle<...>",
639
639
  "example": "// ChildComponent.vue\nimport { useScopedRegle } from '@regle/core';\n\nconst { r$ } = useScopedRegle(\n { email: '' },\n { email: { required, email } },\n { namespace: 'contacts' }\n);",
640
640
  "tags": { "see": "://reglejs.dev/advanced-usage/scoped-validation Documentation" }
641
641
  },
@@ -1814,7 +1814,7 @@ function searchApi(query) {
1814
1814
  return results;
1815
1815
  }
1816
1816
 
1817
- var version = "1.17.2";
1817
+ var version = "1.17.3";
1818
1818
 
1819
1819
  let posthogClient = null;
1820
1820
  posthogClient = new PostHog("phc_kqgJoylCpKkGkkRGxb4MyN2mViehoQcUFEGwVkk4l8E", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regle/mcp-server",
3
- "version": "1.17.2",
3
+ "version": "1.17.3",
4
4
  "description": "MCP Server for Regle",
5
5
  "keywords": [
6
6
  "ai",