@pyreon/mcp 0.12.3 → 0.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/mcp",
3
- "version": "0.12.3",
3
+ "version": "0.12.5",
4
4
  "description": "MCP server for Pyreon — AI-powered framework assistance",
5
5
  "homepage": "https://github.com/pyreon/pyreon/tree/main/packages/mcp#readme",
6
6
  "bugs": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@modelcontextprotocol/sdk": "^1.29.0",
49
- "@pyreon/compiler": "^0.12.3",
49
+ "@pyreon/compiler": "^0.12.5",
50
50
  "zod": "^4.3.6"
51
51
  },
52
52
  "peerDependencies": {
@@ -1093,6 +1093,40 @@ const isExactAdmin = useIsActive('/admin', true) // exact only
1093
1093
  'Returns a reactive boolean. Segment-aware prefix matching: /admin matches /admin/users but not /admin-panel. Pass exact=true for exact-only matching.',
1094
1094
  },
1095
1095
 
1096
+ 'router/useTypedSearchParams': {
1097
+ signature:
1098
+ "useTypedSearchParams<T>(schema: T): TypedSearchParams<T>",
1099
+ example: `import { useTypedSearchParams } from '@pyreon/router'
1100
+
1101
+ const params = useTypedSearchParams({ page: 'number', q: 'string', active: 'boolean' })
1102
+ params.page() // number (auto-coerced)
1103
+ params.q() // string
1104
+ params.set({ page: 2 }) // updates URL`,
1105
+ notes:
1106
+ 'Type-safe search params with auto-coercion from URL strings. Supports "string", "number", and "boolean" types.',
1107
+ },
1108
+
1109
+ 'router/useTransition': {
1110
+ signature: 'useTransition(): { isTransitioning: () => boolean }',
1111
+ example: `import { useTransition } from '@pyreon/router'
1112
+
1113
+ const { isTransitioning } = useTransition()
1114
+ // true during navigation (guards + loaders), false when mounted`,
1115
+ notes:
1116
+ 'Reactive signal for route transition state. Useful for progress bars and loading indicators.',
1117
+ },
1118
+
1119
+ 'router/useMiddlewareData': {
1120
+ signature: 'useMiddlewareData<T>(): T',
1121
+ example: `import { useMiddlewareData } from '@pyreon/router'
1122
+
1123
+ // After middleware sets ctx.data.user:
1124
+ const data = useMiddlewareData<{ user: User }>()
1125
+ // data.user is available in the component`,
1126
+ notes:
1127
+ 'Reads data set by RouteMiddleware in the middleware chain. Middleware sets ctx.data properties, components read them.',
1128
+ },
1129
+
1096
1130
  'storybook/renderToCanvas': {
1097
1131
  signature: 'renderToCanvas(context: StoryContext, canvasElement: HTMLElement): void',
1098
1132
  example: `// .storybook/main.ts: