@fugood/bricks-ctor 2.25.0-beta.6 → 2.25.0-beta.61
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 +4 -24
- package/tools/deploy.ts +19 -165
- package/tools/mcp-server.ts +17 -26
- package/tools/postinstall.ts +21 -235
- package/tools/pull.ts +18 -121
- package/tools/push-config.ts +19 -0
- package/tools/simulator.ts +21 -0
- package/compile/action-name-map.ts +0 -1015
- package/compile/index.ts +0 -1278
- package/compile/util.ts +0 -358
- package/index.ts +0 -6
- package/skills/bricks-ctor/SKILL.md +0 -32
- package/skills/bricks-ctor/rules/animation.md +0 -159
- package/skills/bricks-ctor/rules/architecture-patterns.md +0 -69
- package/skills/bricks-ctor/rules/automations.md +0 -221
- package/skills/bricks-ctor/rules/buttress.md +0 -156
- package/skills/bricks-ctor/rules/data-calculation.md +0 -209
- package/skills/bricks-ctor/rules/local-sync.md +0 -129
- package/skills/bricks-ctor/rules/media-flow.md +0 -158
- package/skills/bricks-ctor/rules/remote-data-bank.md +0 -196
- package/skills/bricks-ctor/rules/standby-transition.md +0 -124
- package/skills/bricks-design/LICENSE.txt +0 -180
- package/skills/bricks-design/SKILL.md +0 -66
- package/skills/rive-marketplace/SKILL.md +0 -99
- package/tools/_git-author.ts +0 -29
- package/tools/_shell.ts +0 -173
- package/tools/icons/.gitattributes +0 -1
- package/tools/icons/fa6pro-glyphmap.json +0 -4686
- package/tools/icons/fa6pro-meta.json +0 -1
- package/tools/mcp-tools/compile.ts +0 -92
- package/tools/mcp-tools/huggingface.ts +0 -762
- package/tools/mcp-tools/icons.ts +0 -81
- package/tools/mcp-tools/lottie.ts +0 -102
- package/tools/mcp-tools/media.ts +0 -110
- package/tools/preview-main.mjs +0 -293
- package/tools/preview.ts +0 -150
- package/types/animation.ts +0 -100
- package/types/automation.ts +0 -235
- package/types/brick-base.ts +0 -80
- package/types/bricks/Camera.ts +0 -246
- package/types/bricks/Chart.ts +0 -372
- package/types/bricks/GenerativeMedia.ts +0 -290
- package/types/bricks/Icon.ts +0 -98
- package/types/bricks/Image.ts +0 -114
- package/types/bricks/Items.ts +0 -476
- package/types/bricks/Lottie.ts +0 -168
- package/types/bricks/Maps.ts +0 -262
- package/types/bricks/QrCode.ts +0 -117
- package/types/bricks/Rect.ts +0 -150
- package/types/bricks/RichText.ts +0 -128
- package/types/bricks/Rive.ts +0 -220
- package/types/bricks/Sketch.ts +0 -254
- package/types/bricks/Slideshow.ts +0 -201
- package/types/bricks/Svg.ts +0 -99
- package/types/bricks/Text.ts +0 -148
- package/types/bricks/TextInput.ts +0 -242
- package/types/bricks/Video.ts +0 -175
- package/types/bricks/VideoStreaming.ts +0 -112
- package/types/bricks/WebRtcStream.ts +0 -65
- package/types/bricks/WebView.ts +0 -168
- package/types/bricks/index.ts +0 -22
- package/types/canvas.ts +0 -82
- package/types/common.ts +0 -144
- package/types/data-calc-command.ts +0 -7005
- package/types/data-calc-script.ts +0 -21
- package/types/data-calc.ts +0 -11
- package/types/data.ts +0 -95
- package/types/generators/AlarmClock.ts +0 -110
- package/types/generators/Assistant.ts +0 -621
- package/types/generators/BleCentral.ts +0 -247
- package/types/generators/BlePeripheral.ts +0 -208
- package/types/generators/CanvasMap.ts +0 -74
- package/types/generators/CastlesPay.ts +0 -87
- package/types/generators/DataBank.ts +0 -160
- package/types/generators/File.ts +0 -432
- package/types/generators/GraphQl.ts +0 -132
- package/types/generators/Http.ts +0 -222
- package/types/generators/HttpServer.ts +0 -176
- package/types/generators/Information.ts +0 -103
- package/types/generators/Intent.ts +0 -168
- package/types/generators/Iterator.ts +0 -108
- package/types/generators/Keyboard.ts +0 -105
- package/types/generators/LlmAnthropicCompat.ts +0 -212
- package/types/generators/LlmAppleBuiltin.ts +0 -159
- package/types/generators/LlmGgml.ts +0 -861
- package/types/generators/LlmMediaTekNeuroPilot.ts +0 -235
- package/types/generators/LlmMlx.ts +0 -227
- package/types/generators/LlmOnnx.ts +0 -213
- package/types/generators/LlmOpenAiCompat.ts +0 -312
- package/types/generators/LlmQualcommAiEngine.ts +0 -247
- package/types/generators/Mcp.ts +0 -637
- package/types/generators/McpServer.ts +0 -289
- package/types/generators/MediaFlow.ts +0 -170
- package/types/generators/MqttBroker.ts +0 -141
- package/types/generators/MqttClient.ts +0 -141
- package/types/generators/Question.ts +0 -408
- package/types/generators/RealtimeTranscription.ts +0 -287
- package/types/generators/RerankerGgml.ts +0 -191
- package/types/generators/SerialPort.ts +0 -151
- package/types/generators/SoundPlayer.ts +0 -94
- package/types/generators/SoundRecorder.ts +0 -130
- package/types/generators/SpeechToTextGgml.ts +0 -419
- package/types/generators/SpeechToTextOnnx.ts +0 -236
- package/types/generators/SpeechToTextPlatform.ts +0 -85
- package/types/generators/SqLite.ts +0 -159
- package/types/generators/Step.ts +0 -107
- package/types/generators/SttAppleBuiltin.ts +0 -130
- package/types/generators/Tcp.ts +0 -126
- package/types/generators/TcpServer.ts +0 -147
- package/types/generators/TextToSpeechAppleBuiltin.ts +0 -127
- package/types/generators/TextToSpeechGgml.ts +0 -221
- package/types/generators/TextToSpeechOnnx.ts +0 -178
- package/types/generators/TextToSpeechOpenAiLike.ts +0 -121
- package/types/generators/ThermalPrinter.ts +0 -191
- package/types/generators/Tick.ts +0 -83
- package/types/generators/Udp.ts +0 -120
- package/types/generators/VadGgml.ts +0 -250
- package/types/generators/VadOnnx.ts +0 -231
- package/types/generators/VadTraditional.ts +0 -138
- package/types/generators/VectorStore.ts +0 -257
- package/types/generators/Watchdog.ts +0 -107
- package/types/generators/WebCrawler.ts +0 -103
- package/types/generators/WebRtc.ts +0 -181
- package/types/generators/WebSocket.ts +0 -148
- package/types/generators/index.ts +0 -57
- package/types/index.ts +0 -13
- package/types/subspace.ts +0 -60
- package/types/switch.ts +0 -51
- package/types/system.ts +0 -707
- package/utils/calc.ts +0 -126
- package/utils/data.ts +0 -497
- package/utils/event-props.ts +0 -886
- package/utils/id.ts +0 -80
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"0":["100","ad","add","adjust","air-freshener","alien-monster","allergies","ambulance","american-sign-language-interpreting","analytics","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angry","apple-alt","apple-crate","archive","area-chart","arrow-alt-circle-down","arrow-alt-circle-left","arrow-alt-circle-right","arrow-alt-circle-up","arrow-alt-down","arrow-alt-from-bottom","arrow-alt-from-left","arrow-alt-from-right","arrow-alt-from-top","arrow-alt-left","arrow-alt-right","arrow-alt-square-down","arrow-alt-square-left","arrow-alt-square-right","arrow-alt-square-up","arrow-alt-to-bottom","arrow-alt-to-left","arrow-alt-to-right","arrow-alt-to-top","arrow-alt-up","arrow-circle-down","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-from-bottom","arrow-from-left","arrow-from-right","arrow-from-top","arrow-left-rotate","arrow-right-from-file","arrow-right-rotate","arrow-right-to-file","arrow-rotate-back","arrow-rotate-backward","arrow-rotate-forward","arrow-square-down","arrow-square-left","arrow-square-right","arrow-square-up","arrow-to-bottom","arrow-to-left","arrow-to-right","arrow-to-top","arrow-turn-right","arrows","arrows-alt","arrows-alt-h","arrows-alt-v","arrows-h","arrows-v","asl-interpreting","assistive-listening-systems","atlas","atom-alt","automobile","backspace","balance-scale","balance-scale-left","balance-scale-right","band-aid","bank","bar-chart","barcode-alt","barn-silo","baseball-ball","basketball-ball","bathtub","battery","battery-0","battery-1","battery-2","battery-3","battery-4","battery-5","battery-car","bed-alt","beer","beer-foam","behance-square","betamax","bible","biking","biking-mountain","birthday-cake","blackboard","blind","book-alt","book-circle","book-dead","book-law","book-open-alt","book-reader","book-spells","bookmark-circle","border-style","border-style-alt","bowl-salad","bowl-shaved-ice","box-alt","box-fragile","box-full","box-up","box-usd","boxes","boxes-alt","bracket","bracket-curly-left","bracket-left","brackets","briefcase-clock","broadcast-tower","burn","bus-alt","business-front","cab","cake","calculator-alt","calendar-alt","calendar-circle","calendar-download","calendar-edit","calendar-note","calendar-time","calendar-times","calendar-upload","camera-alt","camera-circle","camera-home","cancel","car-alt","car-crash","car-mechanic","caravan-alt","caret-circle-down","caret-circle-left","caret-circle-right","caret-circle-up","caret-square-down","caret-square-left","caret-square-right","caret-square-up","carriage-baby","cctv","chain","chain-broken","chain-horizontal","chain-horizontal-slash","chain-slash","chalkboard-teacher","chart-pie-alt","check-circle","check-square","cheeseburger","chess-bishop-alt","chess-clock-alt","chess-king-alt","chess-knight-alt","chess-pawn-alt","chess-queen-alt","chess-rook-alt","chevron-circle-down","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-double-down","chevron-double-left","chevron-double-right","chevron-double-up","chevron-square-down","chevron-square-left","chevron-square-right","chevron-square-up","child-rifle","chocolate-bar","clinic-medical","clock-four","close","cloud-download","cloud-download-alt","cloud-upload","cloud-upload-alt","cny","cocktail","coffee","coffee-togo","cog","cogs","columns","comment-alt","comment-alt-arrow-down","comment-alt-arrow-up","comment-alt-captions","comment-alt-check","comment-alt-dollar","comment-alt-dots","comment-alt-edit","comment-alt-exclamation","comment-alt-image","comment-alt-lines","comment-alt-medical","comment-alt-minus","comment-alt-music","comment-alt-plus","comment-alt-quote","comment-alt-slash","comment-alt-smile","comment-alt-text","comment-alt-times","comment-edit","comment-middle-alt","comment-middle-top-alt","comment-times","commenting","comments-alt","comments-alt-dollar","compress-alt","compress-arrows","compress-arrows-alt","concierge-bell","construction","contact-book","contact-card","conveyor-belt-alt","couch-small","cowbell-more","credit-card-alt","creemee","cricket","crop-alt","curling","cut","cutlery","dashboard","deaf","deafness","debug","dedent","desktop-alt","desktop-code","desktop-medical","desktop-slash","dewpoint","diagnoses","dial-med-high","digging","digital-tachograph","directions","dizzy","dollar","dollar-circle","dollar-square","dolly-box","dolly-flatbed","dolly-flatbed-alt","dolly-flatbed-empty","donate","dot-circle","doughnut","drafting-compass","dribbble-square","drivers-license","drone-alt","dryer-alt","earth","earth-america","eclipse-alt","edit","ellipsis-h","ellipsis-h-alt","ellipsis-v","ellipsis-v-alt","engine-exclamation","envelope-badge","envelope-circle","envelope-square","eur","euro","exchange","exchange-alt","exclamation-circle","exclamation-square","exclamation-triangle","expand-alt","expand-arrows","expand-arrows-alt","exploding-head","external-link","external-link-alt","external-link-square","external-link-square-alt","eye-dropper-empty","eyedropper","facebook-square","fast-backward","fast-forward","feather-alt","feed","female","field-hockey","fighter-jet","file-alt","file-archive","file-award","file-caret-down","file-caret-up","file-chart-line","file-clipboard","file-download","file-edit","file-medical-alt","file-search","file-text","file-times","file-upload","film-alt","film-cannister","fire-alt","firewall","first-aid","fist-raised","flag-alt","flame","flask-poison","flask-potion","floppy-disk-times","flushed","fog","folder-blank","folder-cog","folder-download","folder-search","folder-times","folder-upload","font-awesome-alt","font-awesome-flag","font-awesome-logo-full","football-ball","fragile","frosty-head","frown","frown-open","funnel-dollar","futbol-ball","game-board-alt","gamepad-alt","gauge-med","gauge-simple-med","gave-dandy","gbp","git-square","github-square","gitlab-square","glass-champagne","glass-cheers","glass-half-empty","glass-half-full","glass-martini","glass-martini-alt","glass-whiskey","glass-whiskey-rocks","glasses-alt","globe-africa","globe-americas","globe-asia","globe-europe","globe-oceania","glove-boxing","golf-ball","google-plus-square","grid-3","grimace","grin","grin-alt","grin-beam","grin-beam-sweat","grin-hearts","grin-squint","grin-squint-tears","grin-stars","grin-tears","grin-tongue","grin-tongue-squint","grin-tongue-wink","grin-wink","grip-horizontal","h-square","hacker-news-square","hamburger","hand-holding-usd","hand-holding-water","hand-paper","hand-receiving","hand-rock","hands-american-sign-language-interpreting","hands-heart","hands-helping","hands-usd","hands-wash","handshake-alt","handshake-alt-slash","hard-hat","hard-of-hearing","hat-hard","haykal","hdd","head-vr","header","headphones-alt","heart-broken","heart-circle","heart-half-alt","heart-music-camera-bolt","heart-rate","heart-square","heartbeat","hiking","history","home","home-alt","home-blank","home-heart","home-lg","home-lg-alt","home-user","hospital-alt","hospital-symbol","hospital-wide","hot-tub","hourglass-1","hourglass-2","hourglass-3","hourglass-empty","house-damage","house-flood","house-leave","house-person-arrive","house-person-depart","house-return","hryvnia","humidity","icons-alt","id-card-alt","ils","inbox-arrow-down","inbox-arrow-up","indian-rupee","industry-alt","info-circle","info-square","innosoft","inr","instagram-square","institution","inventory","island-tree-palm","journal-whills","jpy","js-square","kiss","kiss-beam","kiss-wink-heart","krw","ladder-water","landmark-alt","landscape","laptop-house","lastfm-square","laugh","laugh-beam","laugh-squint","laugh-wink","layer-group-minus","layer-group-plus","legal","level-down","level-down-alt","level-up","level-up-alt","line-chart","list-1-2","list-alt","list-dots","list-numeric","list-squares","location","location-circle","location-slash","lock-alt","lock-open-alt","lollypop","long-arrow-alt-down","long-arrow-alt-left","long-arrow-alt-right","long-arrow-alt-up","long-arrow-down","long-arrow-left","long-arrow-right","long-arrow-up","low-vision","luchador","luggage-cart","magic","magic-wand-sparkles","mail-bulk","mail-forward","mail-reply","mail-reply-all","maki-roll","makizushi","male","map-marked","map-marked-alt","map-marker","map-marker-alt","map-marker-alt-slash","map-marker-check","map-marker-edit","map-marker-exclamation","map-marker-minus","map-marker-plus","map-marker-question","map-marker-slash","map-marker-smile","map-marker-times","map-marker-xmark","map-signs","mars-stroke-h","mars-stroke-v","mask-luchador","medium-m","medkit","meh","meh-blank","meh-rolling-eyes","message-edit","message-times","messaging","microphone-alt","microphone-alt-slash","microphone-circle","microphone-circle-alt","mind-share","minus-circle","minus-hexagon","minus-large","minus-octagon","minus-square","mobile-alt","mobile-android","mobile-android-alt","mobile-iphone","mobile-phone","money-bill-alt","money-bill-wave-alt","money-bills-alt","money-check-alt","money-check-edit","money-check-edit-alt","monitor-heart-rate","mortar-board","mouse","mouse-alt","mouse-pointer","multiply","museum","music-alt","music-alt-slash","navicon","nigiri","odnoklassniki-square","oil-temp","page-break","paint-brush","paint-brush-alt","paint-brush-fine","paintbrush-alt","palette-boxes","pallet-alt","paper-plane-alt","paragraph-rtl","parentheses","parenthesis","parking","parking-circle","parking-circle-slash","parking-slash","party-back","pastafarianism","pause-circle","paw-alt","pen-alt","pen-alt-slash","pen-square","pencil-alt","pencil-paintbrush","pencil-ruler","pencil-square","pennant","people-arrows-left-right","people-carry","percentage","person-carry","phone-alt","phone-arrow-down","phone-arrow-up","phone-circle","phone-circle-alt","phone-circle-down","phone-incoming","phone-laptop","phone-outgoing","phone-square","phone-square-alt","phone-square-down","photo-video","pie-chart","pied-piper-square","ping-pong-paddle-ball","pinterest-square","plane-alt","play-circle","plus-circle","plus-hexagon","plus-octagon","plus-square","poll","poll-h","poo-bolt","portal-enter","portal-exit","portrait","pound-sign","pray","praying-hands","prescription-bottle-alt","presentation","print-search","pro","procedures","project-diagram","puzzle-piece-alt","question-circle","question-square","quidditch","quidditch-broom-ball","quote-left-alt","quote-right-alt","quran","rabbit-fast","radiation-alt","radio-alt","random","rectangle-hd","rectangle-landscape","rectangle-portrait","rectangle-sd","rectangle-times","reddit-square","redo","redo-alt","refresh","remove","remove-format","rendact","reorder","repeat-1-alt","repeat-alt","reply-time","retweet-alt","rmb","rod-asclepius","rod-snake","rotate-back","rotate-backward","rotate-forward","rouble","rows","rss-square","rub","ruble","running","rupee","sad-cry","sad-tear","save","save-circle-arrow-right","save-circle-xmark","save-times","sax-hot","scalpel-path","scanner","screenshot","scroll-ribbon","search","search-dollar","search-location","search-minus","search-plus","send","sensor-alert","sensor-smoke","share-alt","share-alt-square","share-square","shekel","sheqel","sheqel-sign","shield-alt","shield-blank","shield-times","shipping-fast","shipping-timed","shopping-bag","shopping-basket","shopping-basket-alt","shopping-cart","shortcake","shower-alt","shuttle-van","sign","sign-in","sign-in-alt","sign-language","sign-out","sign-out-alt","signal-1","signal-2","signal-3","signal-4","signal-5","signal-alt","signal-alt-1","signal-alt-2","signal-alt-3","signal-alt-4","signal-alt-slash","signal-bars-strong","signal-perfect","signing","skating","ski-jump","ski-lift","skiing","skiing-nordic","slack-hash","sledding","sliders-h","sliders-h-square","sliders-v","sliders-v-square","smile","smile-beam","smile-plus","smile-wink","smoking-ban","sms","snapchat-ghost","snapchat-square","snowboarding","snowmobile","soccer-ball","sort-alpha-asc","sort-alpha-desc","sort-alpha-down","sort-alpha-down-alt","sort-alpha-up","sort-alpha-up-alt","sort-alt","sort-amount-asc","sort-amount-desc","sort-amount-down","sort-amount-down-alt","sort-amount-up","sort-amount-up-alt","sort-asc","sort-circle","sort-circle-down","sort-circle-up","sort-desc","sort-numeric-asc","sort-numeric-desc","sort-numeric-down","sort-numeric-down-alt","sort-numeric-up","sort-numeric-up-alt","sort-shapes-down","sort-shapes-down-alt","sort-shapes-up","sort-shapes-up-alt","sort-size-down","sort-size-down-alt","sort-size-up","sort-size-up-alt","sort-up-down","soup","space-shuttle","space-station-moon-alt","sprout","square-root-alt","square-wine-glass-crack","staff-aesculapius","star-circle","star-half-alt","star-sharp-half-alt","starfighter-alt","starfighter-alt-advanced","steam-square","step-backward","step-forward","sticky-note","stop-circle","store-alt","store-alt-slash","stream","subtract","subway","subway-tunnel","sun-alt","surprise","swimmer","swimming-pool","sync","sync-alt","t-shirt","table-tennis","tablet-alt","tablet-android","tablet-android-alt","tachometer","tachometer-alt","tachometer-alt-average","tachometer-alt-fast","tachometer-alt-fastest","tachometer-alt-slow","tachometer-alt-slowest","tachometer-average","tachometer-fast","tachometer-fastest","tachometer-slow","tachometer-slowest","tally-5","tanakh","tasks","tasks-alt","telegram-plane","teletype","teletype-answer","television","temperature-0","temperature-1","temperature-2","temperature-3","temperature-4","temperature-down","temperature-frigid","temperature-hot","temperature-up","tenge","th","th-large","th-list","theater-masks","thermometer-0","thermometer-1","thermometer-2","thermometer-3","thermometer-4","thermometer-empty","thermometer-full","thermometer-half","thermometer-quarter","thermometer-three-quarters","thumb-tack","thunderstorm","thunderstorm-moon","thunderstorm-sun","ticket-alt","times","times-circle","times-hexagon","times-octagon","times-rectangle","times-square","times-to-slot","tint","tint-slash","tired","toilet-paper-alt","toilet-paper-reverse","toilet-paper-reverse-alt","toilet-paper-reverse-slash","tombstone-alt","tools","torah","tram","transgender-alt","trash-alt","trash-alt-slash","trash-arrow-turn-left","trash-can-arrow-turn-left","trash-circle","trash-restore","trash-restore-alt","trash-undo-alt","tree-alt","trian-balbot","triangle-circle-square","triangle-music","trophy-alt","truck-couch","truck-loading","try","tshirt","tumblr-square","turkish-lira","tv-alt","twitter-square","umbrella-alt","undo","undo-alt","university","unlink","unlock-alt","unsorted","usd","usd-circle","usd-square","user-alt","user-alt-slash","user-chart","user-circle","user-cog","user-construction","user-edit","user-friends","user-hard-hat","user-md","user-md-chat","user-times","users-class","users-cog","users-crown","utensil-fork","utensil-knife","utensil-spoon","utensils-alt","vcard","vhs","viadeo-square","video-camera","video-circle","video-handheld","vimeo-square","volleyball-ball","volume-control-phone","volume-down","volume-medium","volume-mute","volume-times","volume-up","vote-nay","vote-yea","walking","wall-brick","warehouse-alt","warning","washer","water-lower","water-rise","waveform-circle","waveform-path","webcam","webcam-slash","weight","whatsapp-square","wheat-alt","wheelchair-alt","wifi-1","wifi-2","wifi-3","wifi-strong","wind-circle-exclamation","window-alt","window-close","wine-glass-alt","won","wsh","xing-square","xmark-circle","xmark-hexagon","xmark-octagon","xmark-square","yen","youtube-square","zap","zzz"],"1":["42-group","500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon","amazon-pay","amilia","android","angellist","angrycreative","angular","app-store","app-store-ios","apper","apple","apple-pay","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","bilibili","bimobject","bitbucket","bitcoin","bity","black-tie","blackberry","blogger","blogger-b","bluetooth-b","bootstrap","bots","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","cmplid","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons","creative-commons-by","creative-commons-nc","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nd","creative-commons-pd","creative-commons-pd-alt","creative-commons-remix","creative-commons-sa","creative-commons-sampling","creative-commons-sampling-plus","creative-commons-share","creative-commons-zero","critical-role","css3","css3-alt","cuttlefish","d-and-d","d-and-d-beyond","dailymotion","dashcube","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dropbox","drupal","dyalog","earlybirds","ebay","edge","edge-legacy","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook","facebook-f","facebook-messenger","fantasy-flight-games","fedex","fedora","figma","firefox","firefox-browser","first-order","first-order-alt","firstdraft","flickr","flipboard","fly","fonticons","fonticons-fi","fort-awesome","fort-awesome-alt","forumbee","foursquare","free-code-camp","freebsd","fulcrum","galactic-republic","galactic-senate","get-pocket","gg","gg-circle","git","git-alt","github","github-alt","gitkraken","gitlab","gitter","glide","glide-g","gofore","golang","goodreads","goodreads-g","google","google-drive","google-pay","google-play","google-plus","google-plus-g","google-wallet","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hackerrank","hashnode","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes","itunes-note","java","jedi-order","jenkins","jira","joget","joomla","js","jsfiddle","kaggle","keybase","keycdn","kickstarter","kickstarter-k","korvue","laravel","lastfm","leanpub","less","line","linkedin","linkedin-in","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medrt","meetup","megaport","mendeley","meta","microblog","microsoft","mix","mixcloud","mixer","mizuni","modx","monero","napster","neos","nfc-directional","nimblr","node","node-js","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odysee","old-republic","opencart","openid","opera","optin-monster","orcid","osi","padlet","page4","pagelines","palfed","patreon","paypal","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper","pied-piper-alt","pied-piper-hat","pied-piper-pp","pinterest","pinterest-p","pix","playstation","product-hunt","pushed","python","qq","quinscape","quora","r-project","raspberry-pi","ravelry","react","reacteurope","readme","rebel","red-river","reddit","reddit-alien","redhat","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","rust","safari","salesforce","sass","schlix","screenpal","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shopify","shopware","simplybuilt","sistrix","sith","sitrox","sketch","skyatlas","skype","slack","slideshare","snapchat","soundcloud","sourcetree","space-awesome","speakap","speaker-deck","spotify","square-behance","square-dribbble","square-facebook","square-font-awesome","square-font-awesome-stroke","square-git","square-github","square-gitlab","square-google-plus","square-hacker-news","square-instagram","square-js","square-lastfm","square-odnoklassniki","square-pied-piper","square-pinterest","square-reddit","square-snapchat","square-steam","square-tumblr","square-twitter","square-viadeo","square-vimeo","square-whatsapp","square-xing","square-youtube","squarespace","stack-exchange","stack-overflow","stackpath","staylinked","steam","steam-symbol","sticker-mule","strava","stripe","stripe-s","stubber","studiovinari","stumbleupon","stumbleupon-circle","superpowers","supple","suse","swift","symfony","teamspeak","telegram","tencent-weibo","the-red-yeti","themeco","themeisle","think-peaks","tiktok","trade-federation","trello","tumblr","twitch","twitter","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","usb","usps","ussunnah","vaadin","viacoin","viadeo","viber","vimeo","vimeo-v","vine","vk","vnv","vuejs","watchman-monitoring","waze","weebly","weibo","weixin","whatsapp","whmcs","wikipedia-w","windows","wirsindhandwerk","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress","wordpress-simple","wpbeginner","wpexplorer","wpforms","wpressr","xbox","xing","y-combinator","yahoo","yammer","yandex","yandex-international","yarn","yelp","yoast","youtube","zhihu"],"511":["bluetooth","font-awesome","nfc-symbol"]}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
|
|
2
|
-
import { readFile } from 'node:fs/promises'
|
|
3
|
-
import { z } from 'zod'
|
|
4
|
-
import { sh } from '../_shell'
|
|
5
|
-
|
|
6
|
-
export function register(server: McpServer, projectDir: string) {
|
|
7
|
-
const { dirname } = import.meta
|
|
8
|
-
|
|
9
|
-
server.tool('compile', {}, async () => {
|
|
10
|
-
let log = ''
|
|
11
|
-
try {
|
|
12
|
-
log += 'Type checking & Compiling...'
|
|
13
|
-
log += await sh`bun compile`.cwd(projectDir).text()
|
|
14
|
-
} catch (err) {
|
|
15
|
-
log += `${err.stdout.toString()}\n${err.stderr.toString()}`
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
content: [{ type: 'text', text: log }],
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
server.tool(
|
|
23
|
-
'preview',
|
|
24
|
-
{
|
|
25
|
-
delay: z
|
|
26
|
-
.number()
|
|
27
|
-
.describe('Delay in milliseconds before taking screenshot')
|
|
28
|
-
.optional()
|
|
29
|
-
.default(3000),
|
|
30
|
-
width: z.number().describe('Width of the screenshot').optional().default(600),
|
|
31
|
-
height: z.number().optional().default(480),
|
|
32
|
-
responseImage: z
|
|
33
|
-
.boolean()
|
|
34
|
-
.describe(
|
|
35
|
-
'Whether to response image content (base64 encoded jpeg). If false, only saved path will be responded as text.',
|
|
36
|
-
)
|
|
37
|
-
.optional()
|
|
38
|
-
.default(false),
|
|
39
|
-
testId: z.string().describe('Automation test ID to trigger').optional(),
|
|
40
|
-
testTitleLike: z
|
|
41
|
-
.string()
|
|
42
|
-
.describe('Find automation test by partial title match (case-insensitive)')
|
|
43
|
-
.optional(),
|
|
44
|
-
} as any,
|
|
45
|
-
async ({ delay, width, height, responseImage, testId, testTitleLike }: any) => {
|
|
46
|
-
let log = ''
|
|
47
|
-
let error = false
|
|
48
|
-
try {
|
|
49
|
-
const toolsDir = `${dirname}/..`
|
|
50
|
-
const args = [
|
|
51
|
-
'--no-keep-open',
|
|
52
|
-
'--take-screenshot',
|
|
53
|
-
JSON.stringify({
|
|
54
|
-
delay,
|
|
55
|
-
width,
|
|
56
|
-
height,
|
|
57
|
-
path: `${toolsDir}/screenshot.jpg`,
|
|
58
|
-
closeAfter: true,
|
|
59
|
-
headless: true,
|
|
60
|
-
}),
|
|
61
|
-
]
|
|
62
|
-
if (testId) args.push('--test-id', testId)
|
|
63
|
-
if (testTitleLike) args.push('--test-title-like', testTitleLike)
|
|
64
|
-
log = await sh`bunx --bun electron ${toolsDir}/preview-main.mjs ${args}`
|
|
65
|
-
.cwd(projectDir)
|
|
66
|
-
.text()
|
|
67
|
-
} catch (err) {
|
|
68
|
-
log = `${err.stdout.toString()}\n${err.stderr.toString()}`
|
|
69
|
-
error = true
|
|
70
|
-
}
|
|
71
|
-
let screenshotBase64: string | null = null
|
|
72
|
-
if (!error && responseImage) {
|
|
73
|
-
const toolsDir = `${dirname}/..`
|
|
74
|
-
const screenshot = await readFile(`${toolsDir}/screenshot.jpg`)
|
|
75
|
-
screenshotBase64 = screenshot.toString('base64')
|
|
76
|
-
}
|
|
77
|
-
const content: Array<
|
|
78
|
-
{ type: 'text'; text: string } | { type: 'image'; data: string; mimeType: string }
|
|
79
|
-
> = [{ type: 'text', text: log }]
|
|
80
|
-
if (screenshotBase64) {
|
|
81
|
-
content.push({
|
|
82
|
-
type: 'image',
|
|
83
|
-
data: screenshotBase64,
|
|
84
|
-
mimeType: 'image/jpeg',
|
|
85
|
-
})
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
content,
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
)
|
|
92
|
-
}
|