Commit 372923f
fix(ai-scaffolding): fix MCP config merge bugs and add multi-tool recipe generation
Summary:
Address code review issues in MCP config merge implementation:
- Fix race condition: await in-flight config writes before cleanup on server close
- Add TOML marker ordering validation (startIdx < endIdx guard)
- Use Promise.allSettled in writeMcpConfigs so one tool failure doesn't block others
- Add missing cancelled check in prompts.ts between gitInit and aiTools prompts
- Fix vite.config template to use valid TS placeholder with chef:mcp anchor
- Add bracket tracking in build-assets.mjs for chef:mcp array replacement
- Add 4 new test cases for merge/unmerge edge cases (sibling keys, wrong marker
order, user content preservation)
Also includes the multi-tool AI scaffolding feature: CLI --ai-tools flag,
per-tool recipe generation (cursor, copilot, codex, agents), and bundle support.
Reviewed By: zjm-meta
Differential Revision: D94132897
fbshipit-source-id: e28c62edde51b3a6cc2ce94f4d17d7952d23f4661 parent 355cb1d commit 372923f
File tree
14 files changed
+2033
-62
lines changed- packages
- create/src
- starter-assets
- claude-injections
- agents
- skills
- iwsdk-planner
- preview-model
- scripts
- starter-template
- vite-plugin-iwer
- src
- test
14 files changed
+2033
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
| |||
255 | 264 | | |
256 | 265 | | |
257 | 266 | | |
| 267 | + | |
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
| |||
356 | 366 | | |
357 | 367 | | |
358 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
359 | 376 | | |
360 | 377 | | |
361 | 378 | | |
| |||
369 | 386 | | |
370 | 387 | | |
371 | 388 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
381 | 450 | | |
382 | 451 | | |
383 | | - | |
384 | | - | |
385 | | - | |
| 452 | + | |
386 | 453 | | |
387 | 454 | | |
388 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
43 | 68 | | |
44 | 69 | | |
45 | 70 | | |
| |||
254 | 279 | | |
255 | 280 | | |
256 | 281 | | |
257 | | - | |
| 282 | + | |
258 | 283 | | |
259 | | - | |
| 284 | + | |
260 | 285 | | |
261 | 286 | | |
262 | 287 | | |
| |||
300 | 325 | | |
301 | 326 | | |
302 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
303 | 332 | | |
304 | 333 | | |
305 | 334 | | |
| |||
319 | 348 | | |
320 | 349 | | |
321 | 350 | | |
| 351 | + | |
322 | 352 | | |
323 | 353 | | |
324 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
0 commit comments