@octanejs/mcp-server 0.2.8 → 0.2.9
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/README.md +8 -5
- package/package.json +1 -1
- package/skills/migrate-react-component.md +1 -1
- package/src/bridge.js +3 -1
- package/src/index.js +15 -0
package/README.md
CHANGED
|
@@ -159,11 +159,14 @@ optionally writes the generated Vitest skeleton to an output file.
|
|
|
159
159
|
|
|
160
160
|
Runs benchmark suites through the unified runner (`node benchmarks/bench.mjs`):
|
|
161
161
|
one manifest suite by name (`js-framework`, `todomvc`, `weather-app`,
|
|
162
|
-
`
|
|
163
|
-
`
|
|
164
|
-
`
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
`hydration-interactivity`, `hydration-stress`, `lifecycle-memory`,
|
|
163
|
+
`controlled-form`, `external-store-fanout`, `external-store-integrations`,
|
|
164
|
+
`scheduler-responsiveness`, `suspense-recovery`, `event-delegation`,
|
|
165
|
+
`application-composition`, `scaling-curves`, `streaming-ssr`,
|
|
166
|
+
`streaming-backpressure`, `compiler-throughput`, `codegen-size`,
|
|
167
|
+
`bundle-size`, `three-renderer`, `three-bundle-size`, …) or every suite with
|
|
168
|
+
`all`; `quick` selects the reduced-iteration smoke pass. The suite list mirrors
|
|
169
|
+
the runner manifest and `node benchmarks/bench.mjs --list`.
|
|
167
170
|
|
|
168
171
|
### `octane_issue_context`
|
|
169
172
|
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@ locals, early returns) stays above it.
|
|
|
38
38
|
| `items.map(x => <li key={x.id}>...` | `@for (const x of items; key x.id) { <li>... }` with optional `@empty { }` |
|
|
39
39
|
| `cond ? <A/> : <B/>` in JSX | `@if (cond) { <A/> } @else { <B/> }` |
|
|
40
40
|
| `{cond && <A/>}` | `@if (cond) { <A/> }` |
|
|
41
|
-
| switch on a value | `@switch (v) { @case
|
|
41
|
+
| switch on a value | `@switch (v) { @case a: { } @default: { } }` |
|
|
42
42
|
| `<Suspense fallback={...}>` | `<Suspense>` or `@try { } @pending { }` |
|
|
43
43
|
| Error boundary class | `<ErrorBoundary>` or `@try { } @catch (e) { }` |
|
|
44
44
|
| `forwardRef((props, ref) => ...)` | plain function; `ref` arrives as a prop |
|
package/src/bridge.js
CHANGED
|
@@ -7,6 +7,7 @@ import { join, resolve } from 'node:path';
|
|
|
7
7
|
// without registering it in either catalog fails the mcp-server tests.
|
|
8
8
|
export const KNOWN_BINDINGS = {
|
|
9
9
|
zustand: '@octanejs/zustand',
|
|
10
|
+
valtio: '@octanejs/valtio',
|
|
10
11
|
jotai: '@octanejs/jotai',
|
|
11
12
|
'@apollo/client': '@octanejs/apollo-client',
|
|
12
13
|
'@tanstack/ai-react': '@octanejs/tanstack-ai',
|
|
@@ -27,6 +28,7 @@ export const KNOWN_BINDINGS = {
|
|
|
27
28
|
'react-router': '@octanejs/remix-router',
|
|
28
29
|
'react-router-dom': '@octanejs/remix-router',
|
|
29
30
|
nuqs: '@octanejs/nuqs',
|
|
31
|
+
cmdk: '@octanejs/cmdk',
|
|
30
32
|
'@lexical/react': '@octanejs/lexical',
|
|
31
33
|
'@tiptap/react': '@octanejs/tiptap',
|
|
32
34
|
'lucide-react': '@octanejs/lucide',
|
|
@@ -102,7 +104,7 @@ export const KNOWN_BINDINGS = {
|
|
|
102
104
|
// Octane-specific ecosystem packages that have no React import to rewrite.
|
|
103
105
|
// Keep these out of KNOWN_BINDINGS so the React bridge never invents a source
|
|
104
106
|
// package mapping for native tooling.
|
|
105
|
-
export const KNOWN_NATIVE_BINDINGS = new Set(['@octanejs/devtools']);
|
|
107
|
+
export const KNOWN_NATIVE_BINDINGS = new Set(['@octanejs/devtools', '@octanejs/tauri']);
|
|
106
108
|
|
|
107
109
|
// Workspace directory names for the maintained bindings. Keep this derived
|
|
108
110
|
// from both catalogs so repository path routing cannot drift from the public
|
package/src/index.js
CHANGED
|
@@ -51,13 +51,26 @@ export const BENCHMARK_SUITES = [
|
|
|
51
51
|
'signal-favoring',
|
|
52
52
|
'news',
|
|
53
53
|
'hydration-interactivity',
|
|
54
|
+
'hydration-stress',
|
|
55
|
+
'lifecycle-memory',
|
|
56
|
+
'controlled-form',
|
|
57
|
+
'external-store-fanout',
|
|
58
|
+
'external-store-integrations',
|
|
59
|
+
'scheduler-responsiveness',
|
|
60
|
+
'suspense-recovery',
|
|
61
|
+
'event-delegation',
|
|
62
|
+
'application-composition',
|
|
63
|
+
'scaling-curves',
|
|
64
|
+
'store-selector-fanout',
|
|
54
65
|
'effectful-list',
|
|
66
|
+
'list-clear',
|
|
55
67
|
'memo-wall',
|
|
56
68
|
'portal-swarm',
|
|
57
69
|
'react-hosted-islands',
|
|
58
70
|
'ssr-throughput',
|
|
59
71
|
'streaming-ssr',
|
|
60
72
|
'ssr-http',
|
|
73
|
+
'streaming-backpressure',
|
|
61
74
|
'ssr-workerd',
|
|
62
75
|
'tanstack-start',
|
|
63
76
|
'dbmon-deopt',
|
|
@@ -65,8 +78,10 @@ export const BENCHMARK_SUITES = [
|
|
|
65
78
|
'async-waterfall',
|
|
66
79
|
'async-composition',
|
|
67
80
|
'lynx-list',
|
|
81
|
+
'lynx-render',
|
|
68
82
|
'lynx-bundle-size',
|
|
69
83
|
'codegen-size',
|
|
84
|
+
'compiler-throughput',
|
|
70
85
|
'bundle-size',
|
|
71
86
|
'three-renderer',
|
|
72
87
|
'three-bundle-size',
|