research-copilot 0.1.0
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/LICENSE +21 -0
- package/README.md +190 -0
- package/app/build/icon.icns +0 -0
- package/app/build/icon.ico +0 -0
- package/app/build/icon.png +0 -0
- package/app/out/main/index.mjs +6719 -0
- package/app/out/preload/index.js +141 -0
- package/app/out/renderer/assets/Inter-Variable-Latin-8kRkwJBP.woff2 +0 -0
- package/app/out/renderer/assets/Inter-Variable-LatinExt-B_-bZUTo.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/app/out/renderer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/app/out/renderer/assets/MilkdownMarkdownEditor-bLPxrCVb.js +89821 -0
- package/app/out/renderer/assets/MilkdownMarkdownEditor-tTNRIB2K.css +2555 -0
- package/app/out/renderer/assets/Tableau10-BqnYsPR6.js +9 -0
- package/app/out/renderer/assets/apl-fqmucPXA.js +140 -0
- package/app/out/renderer/assets/arc-J47ePHZ2.js +132 -0
- package/app/out/renderer/assets/array-DgktLKBx.js +6 -0
- package/app/out/renderer/assets/asciiarmor-DucZyvP0.js +56 -0
- package/app/out/renderer/assets/asn1-BnOEsgAm.js +144 -0
- package/app/out/renderer/assets/asterisk-QAlztEwS.js +345 -0
- package/app/out/renderer/assets/blockDiagram-c4efeb88-5uRQXgQJ.js +1817 -0
- package/app/out/renderer/assets/brainfuck-DZVCuF_t.js +53 -0
- package/app/out/renderer/assets/c4Diagram-c83219d4-C4iCTPEL.js +2464 -0
- package/app/out/renderer/assets/channel-ZAmhHE3g.js +7 -0
- package/app/out/renderer/assets/classDiagram-beda092f-7NOZxq_W.js +357 -0
- package/app/out/renderer/assets/classDiagram-v2-2358418a-5fPT-cUH.js +291 -0
- package/app/out/renderer/assets/clike-xqXYL6ge.js +805 -0
- package/app/out/renderer/assets/clojure-BhXMqnxz.js +849 -0
- package/app/out/renderer/assets/clone-CsnzsYXQ.js +8 -0
- package/app/out/renderer/assets/cmake-BGaNd9E7.js +71 -0
- package/app/out/renderer/assets/cobol-4yqQntpt.js +120 -0
- package/app/out/renderer/assets/coffeescript-D2dXvhEc.js +308 -0
- package/app/out/renderer/assets/commonlisp-CF_VNHQR.js +130 -0
- package/app/out/renderer/assets/createText-1719965b-Cji7KN4K.js +4904 -0
- package/app/out/renderer/assets/crystal-DyuLTqLs.js +398 -0
- package/app/out/renderer/assets/css-c-jst79C.js +1783 -0
- package/app/out/renderer/assets/cypher-Dlu_3r4V.js +121 -0
- package/app/out/renderer/assets/d-UURgV0Ux.js +179 -0
- package/app/out/renderer/assets/diff-B_Bi2Crb.js +25 -0
- package/app/out/renderer/assets/dockerfile-Bvk733Ga.js +201 -0
- package/app/out/renderer/assets/dtd-Dy74G54E.js +114 -0
- package/app/out/renderer/assets/dylan-TSb-Nfix.js +314 -0
- package/app/out/renderer/assets/ebnf-DAomQUbD.js +139 -0
- package/app/out/renderer/assets/ecl-B59qGGVg.js +178 -0
- package/app/out/renderer/assets/edges-96097737-CD0EvAZQ.js +1844 -0
- package/app/out/renderer/assets/eiffel-Dze7nlu3.js +134 -0
- package/app/out/renderer/assets/elm-DG7jkhNZ.js +176 -0
- package/app/out/renderer/assets/erDiagram-0228fc6a-DRYXBpi7.js +1321 -0
- package/app/out/renderer/assets/erlang-BO6gOnGA.js +674 -0
- package/app/out/renderer/assets/factor-CMxFHDqz.js +65 -0
- package/app/out/renderer/assets/fcl-CDDUNjTj.js +141 -0
- package/app/out/renderer/assets/flowDb-c6c81e3f-CuoIN-Cy.js +1713 -0
- package/app/out/renderer/assets/flowDiagram-50d868cf-CPWPLOml.js +1272 -0
- package/app/out/renderer/assets/flowDiagram-v2-4f6560a1-C_R12s4S.js +33 -0
- package/app/out/renderer/assets/flowchart-elk-definition-6af322e1-BdKUSFpi.js +92921 -0
- package/app/out/renderer/assets/forth-B9D2JCeE.js +116 -0
- package/app/out/renderer/assets/fortran-CAG2BFbe.js +467 -0
- package/app/out/renderer/assets/ganttDiagram-a2739b55-ygqT5HlG.js +3399 -0
- package/app/out/renderer/assets/gas-d3KEcW3x.js +294 -0
- package/app/out/renderer/assets/gherkin-DhZlEZiy.js +115 -0
- package/app/out/renderer/assets/gitGraphDiagram-82fe8481-D97GT4iA.js +1791 -0
- package/app/out/renderer/assets/graph-DpC13d95.js +1237 -0
- package/app/out/renderer/assets/groovy-CpwJiBl7.js +223 -0
- package/app/out/renderer/assets/haskell-BlGBCCe3.js +459 -0
- package/app/out/renderer/assets/haxe-7MlzfeYV.js +514 -0
- package/app/out/renderer/assets/http-BqypyemW.js +79 -0
- package/app/out/renderer/assets/idl-4HIGJlDI.js +985 -0
- package/app/out/renderer/assets/index-4-ziknCv.js +292 -0
- package/app/out/renderer/assets/index-5325376f-Bbs7Fbqr.js +663 -0
- package/app/out/renderer/assets/index-B2jip-rk.js +2489 -0
- package/app/out/renderer/assets/index-BKTVfokE.js +312 -0
- package/app/out/renderer/assets/index-BiJbFgVG.js +118 -0
- package/app/out/renderer/assets/index-Bn433Fat.js +83 -0
- package/app/out/renderer/assets/index-BqDyyRCx.js +39679 -0
- package/app/out/renderer/assets/index-BzFMeMPn.js +158 -0
- package/app/out/renderer/assets/index-C-_uCjZJ.css +2701 -0
- package/app/out/renderer/assets/index-C1ithNW1.js +1765 -0
- package/app/out/renderer/assets/index-CAJkRYkO.js +407 -0
- package/app/out/renderer/assets/index-CleO0-yj.js +690 -0
- package/app/out/renderer/assets/index-Cq4MH3sY.js +1020 -0
- package/app/out/renderer/assets/index-CtA0Xj22.js +705 -0
- package/app/out/renderer/assets/index-CvAZkqBZ.js +83 -0
- package/app/out/renderer/assets/index-D3UDN-5c.js +152 -0
- package/app/out/renderer/assets/index-D4F9R5ao.js +179 -0
- package/app/out/renderer/assets/index-D6RguhZ5.js +328 -0
- package/app/out/renderer/assets/index-DnEowqXv.js +386 -0
- package/app/out/renderer/assets/index-K8c8Mqdy.js +98 -0
- package/app/out/renderer/assets/index-Kh14gO6K.js +62 -0
- package/app/out/renderer/assets/index-WFd2jRnA.js +333 -0
- package/app/out/renderer/assets/index-WgMfkRFp.js +313 -0
- package/app/out/renderer/assets/index-Y4lKyF6t.js +1042 -0
- package/app/out/renderer/assets/index-fx307_f1.js +643 -0
- package/app/out/renderer/assets/infoDiagram-8eee0895-ptaVSwzq.js +511 -0
- package/app/out/renderer/assets/init-ZxktEp_H.js +16 -0
- package/app/out/renderer/assets/javascript-C3MnDRiU.js +994 -0
- package/app/out/renderer/assets/journeyDiagram-c64418c1-aloEGOQp.js +1184 -0
- package/app/out/renderer/assets/julia-Bs6JJhYG.js +407 -0
- package/app/out/renderer/assets/layout-ZeuHE_aY.js +2217 -0
- package/app/out/renderer/assets/line-CAgaGl-S.js +45 -0
- package/app/out/renderer/assets/linear-DIg7lTe1.js +539 -0
- package/app/out/renderer/assets/livescript-DmzgM3Yt.js +296 -0
- package/app/out/renderer/assets/lua-8cJgIlqe.js +256 -0
- package/app/out/renderer/assets/mathematica-DNLOL9PQ.js +110 -0
- package/app/out/renderer/assets/mbox-Ga7d4MMN.js +117 -0
- package/app/out/renderer/assets/mindmap-definition-8da855dc-B8XVoUxz.js +36054 -0
- package/app/out/renderer/assets/mirc-Dma3B8rS.js +107 -0
- package/app/out/renderer/assets/mllike-DHn7xckP.js +334 -0
- package/app/out/renderer/assets/modelica-0d55jYY0.js +147 -0
- package/app/out/renderer/assets/mscgen-DdqZYINH.js +135 -0
- package/app/out/renderer/assets/mumps-Btr8VblO.js +93 -0
- package/app/out/renderer/assets/nginx-DTDtBDVN.js +141 -0
- package/app/out/renderer/assets/nsis-3zG7tgur.js +62 -0
- package/app/out/renderer/assets/ntriples-CvgOYMpL.js +153 -0
- package/app/out/renderer/assets/octave-DYBj3-tl.js +200 -0
- package/app/out/renderer/assets/ordinal-DSZU4PqD.js +76 -0
- package/app/out/renderer/assets/oz-R_e8WMIi.js +231 -0
- package/app/out/renderer/assets/pascal-GD8iposT.js +105 -0
- package/app/out/renderer/assets/path-Cp2qmpkd.js +109 -0
- package/app/out/renderer/assets/perl-DL9mHpoi.js +1105 -0
- package/app/out/renderer/assets/pieDiagram-a8764435-DlwoeBU2.js +770 -0
- package/app/out/renderer/assets/pig-C_4T4YIV.js +101 -0
- package/app/out/renderer/assets/powershell-B0suO7Vd.js +328 -0
- package/app/out/renderer/assets/properties-BR-vP1aU.js +58 -0
- package/app/out/renderer/assets/protobuf-BxgpyhoW.js +77 -0
- package/app/out/renderer/assets/pug-By0kVCfm.js +405 -0
- package/app/out/renderer/assets/puppet-Bdao66PW.js +137 -0
- package/app/out/renderer/assets/python-CvWbmiX4.js +427 -0
- package/app/out/renderer/assets/q-CrbCVq4a.js +131 -0
- package/app/out/renderer/assets/quadrantDiagram-1e28029f-BaSi1XB4.js +1200 -0
- package/app/out/renderer/assets/r-V7nswm59.js +170 -0
- package/app/out/renderer/assets/requirementDiagram-08caed73-D3EFyegZ.js +1092 -0
- package/app/out/renderer/assets/rpm-C-DLY-If.js +109 -0
- package/app/out/renderer/assets/ruby-JDKLJNK0.js +330 -0
- package/app/out/renderer/assets/sankeyDiagram-a04cb91d-Cv44AsnM.js +1174 -0
- package/app/out/renderer/assets/sas-D2UG-yhZ.js +207 -0
- package/app/out/renderer/assets/scheme-BKzrkGJD.js +222 -0
- package/app/out/renderer/assets/sequenceDiagram-c5b8d532-CuUBu-x4.js +3337 -0
- package/app/out/renderer/assets/shell-BlsXDxCn.js +222 -0
- package/app/out/renderer/assets/sieve-CjwBwOY5.js +135 -0
- package/app/out/renderer/assets/simple-mode-DMneyfDu.js +130 -0
- package/app/out/renderer/assets/smalltalk-BOIGQuhN.js +121 -0
- package/app/out/renderer/assets/solr-CwD7U71z.js +69 -0
- package/app/out/renderer/assets/sparql-DYskk2vE.js +249 -0
- package/app/out/renderer/assets/spreadsheet-Bgtt3oLP.js +87 -0
- package/app/out/renderer/assets/sql-BSrOzCRI.js +354 -0
- package/app/out/renderer/assets/stateDiagram-1ecb1508-BOU34Zp4.js +454 -0
- package/app/out/renderer/assets/stateDiagram-v2-c2b004d7-BgRoffou.js +326 -0
- package/app/out/renderer/assets/stex-B6LNC55o.js +231 -0
- package/app/out/renderer/assets/styles-b4e223ce-BMr9TPuj.js +1483 -0
- package/app/out/renderer/assets/styles-ca3715f6-DgbNw99p.js +1363 -0
- package/app/out/renderer/assets/styles-d45a18b0-DtRYKYKf.js +574 -0
- package/app/out/renderer/assets/stylus-BkS-boTH.js +565 -0
- package/app/out/renderer/assets/svgDrawCommon-b86b1483-Bein03PD.js +100 -0
- package/app/out/renderer/assets/swift-FRZi1uvB.js +291 -0
- package/app/out/renderer/assets/tcl-CUcaCdmq.js +114 -0
- package/app/out/renderer/assets/textile-BnFpjsrl.js +414 -0
- package/app/out/renderer/assets/tiddlywiki-CjprD-Qp.js +218 -0
- package/app/out/renderer/assets/tiki-B4EPSQ1G.js +265 -0
- package/app/out/renderer/assets/timeline-definition-faaaa080-BlWpLE_4.js +1212 -0
- package/app/out/renderer/assets/toml-BOuWGMcf.js +76 -0
- package/app/out/renderer/assets/troff-E1bJ0PPL.js +61 -0
- package/app/out/renderer/assets/ttcn-cfg-Dc39-fIP.js +133 -0
- package/app/out/renderer/assets/ttcn-tKd4HLu4.js +192 -0
- package/app/out/renderer/assets/turtle-Dq7-1WAf.js +124 -0
- package/app/out/renderer/assets/vb-Dp90gtsv.js +196 -0
- package/app/out/renderer/assets/vbscript-CI6_mxxU.js +479 -0
- package/app/out/renderer/assets/velocity-BwIZK1TH.js +149 -0
- package/app/out/renderer/assets/verilog-DDCYnHN8.js +430 -0
- package/app/out/renderer/assets/vhdl-DCkMIyT9.js +158 -0
- package/app/out/renderer/assets/webidl-BTLTThCm.js +204 -0
- package/app/out/renderer/assets/xquery-BgiOC5Ce.js +525 -0
- package/app/out/renderer/assets/xychartDiagram-f5964ef8-Bhga-YXm.js +1799 -0
- package/app/out/renderer/assets/yacas-b5lAVEIl.js +130 -0
- package/app/out/renderer/assets/z80-BZV19vqv.js +93 -0
- package/app/out/renderer/index.html +13 -0
- package/app/out/skills/community-builtin/README.md +29 -0
- package/app/out/skills/community-builtin/document-docx/SKILL.md +44 -0
- package/app/out/skills/community-builtin/document-docx/scripts/docx-to-markdown.sh +20 -0
- package/app/out/skills/community-builtin/document-docx/scripts/extract-docx-text.sh +28 -0
- package/app/out/skills/community-builtin/document-docx/scripts/init-docx-template.sh +32 -0
- package/app/out/skills/community-builtin/document-docx/scripts/setup-docx-tools.sh +10 -0
- package/app/out/skills/community-builtin/markitdown/SKILL.md +105 -0
- package/app/out/skills/community-builtin/markitdown/scripts/batch-convert.sh +40 -0
- package/app/out/skills/community-builtin/markitdown/scripts/convert-file.sh +24 -0
- package/app/out/skills/community-builtin/markitdown/scripts/setup-markitdown.sh +10 -0
- package/app/out/skills/community-builtin/repo-quick-audit/SKILL.md +27 -0
- package/app/out/skills/community-builtin/repo-quick-audit/scripts/audit-basics.sh +19 -0
- package/app/out/skills/research-pilot-default-project-skills/README.md +23 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/SKILL.md +39 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/doi-to-bibtex.sh +25 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/normalize-bibtex-keys.sh +51 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/setup-citation-tools.sh +10 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/validate-bib.sh +31 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/SKILL.md +34 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/api_reference.md +412 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/common_issues.md +563 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/plot_types.md +476 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/styling_guide.md +589 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/subagent_quickstart.md +30 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/plot_template.py +401 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/style_configurator.py +409 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/SKILL.md +38 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/check-grant-compliance.sh +40 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/grant-summary-card.sh +32 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/init-grant-structure.sh +70 -0
- package/app/package.json +77 -0
- package/bin/cli.mjs +56 -0
- package/lib/README.md +145 -0
- package/lib/skills/_generated.ts +13 -0
- package/lib/skills/builtin/brainstorming-research-ideas/SKILL.md +280 -0
- package/lib/skills/builtin/coding/SKILL.md +114 -0
- package/lib/skills/builtin/creative-thinking-for-research/SKILL.md +273 -0
- package/lib/skills/builtin/matplotlib/SKILL.md +361 -0
- package/lib/skills/builtin/matplotlib/references/api_reference.md +412 -0
- package/lib/skills/builtin/matplotlib/references/common_issues.md +563 -0
- package/lib/skills/builtin/matplotlib/references/plot_types.md +476 -0
- package/lib/skills/builtin/matplotlib/references/styling_guide.md +589 -0
- package/lib/skills/builtin/matplotlib/scripts/plot_template.py +401 -0
- package/lib/skills/builtin/matplotlib/scripts/style_configurator.py +409 -0
- package/lib/skills/builtin/paper-writing/SKILL.md +554 -0
- package/lib/skills/builtin/paper-writing/references/checklists.md +524 -0
- package/lib/skills/builtin/paper-writing/references/citation-workflow.md +562 -0
- package/lib/skills/builtin/paper-writing/references/reviewer-guidelines.md +462 -0
- package/lib/skills/builtin/paper-writing/references/sources.md +189 -0
- package/lib/skills/builtin/paper-writing/references/systems-conferences.md +260 -0
- package/lib/skills/builtin/paper-writing/references/writing-guide.md +476 -0
- package/lib/skills/builtin/paper-writing/templates/README.md +408 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/README.md +534 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bib +111 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.sty +315 -0
- package/lib/skills/builtin/paper-writing/templates/acl/README.md +50 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl.sty +312 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl_latex.tex +377 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl_lualatex.tex +101 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl_natbib.bst +1940 -0
- package/lib/skills/builtin/paper-writing/templates/acl/anthology.bib.txt +26 -0
- package/lib/skills/builtin/paper-writing/templates/acl/custom.bib +70 -0
- package/lib/skills/builtin/paper-writing/templates/acl/formatting.md +326 -0
- package/lib/skills/builtin/paper-writing/templates/asplos2027/main.tex +459 -0
- package/lib/skills/builtin/paper-writing/templates/asplos2027/references.bib +135 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/README.md +3 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/fancyhdr.sty +485 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/math_commands.tex +508 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/natbib.sty +1246 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/math_commands.tex +508 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/natbib.sty +1246 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/algorithm.sty +79 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/algorithmic.sty +201 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.bib +75 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.tex +662 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/fancyhdr.sty +864 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.bst +1443 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.sty +767 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/Makefile +36 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/main.tex +38 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/neurips.sty +382 -0
- package/lib/skills/builtin/paper-writing/templates/nsdi2027/main.tex +426 -0
- package/lib/skills/builtin/paper-writing/templates/nsdi2027/references.bib +151 -0
- package/lib/skills/builtin/paper-writing/templates/nsdi2027/usenix-2020-09.sty +83 -0
- package/lib/skills/builtin/paper-writing/templates/osdi2026/main.tex +429 -0
- package/lib/skills/builtin/paper-writing/templates/osdi2026/references.bib +150 -0
- package/lib/skills/builtin/paper-writing/templates/osdi2026/usenix-2020-09.sty +83 -0
- package/lib/skills/builtin/paper-writing/templates/sosp2026/main.tex +532 -0
- package/lib/skills/builtin/paper-writing/templates/sosp2026/references.bib +148 -0
- package/lib/skills/builtin/research-grants/SKILL.md +958 -0
- package/lib/skills/builtin/research-grants/assets/budget_justification_template.md +453 -0
- package/lib/skills/builtin/research-grants/assets/nih_specific_aims_template.md +166 -0
- package/lib/skills/builtin/research-grants/assets/nsf_project_summary_template.md +92 -0
- package/lib/skills/builtin/research-grants/references/README.md +285 -0
- package/lib/skills/builtin/research-grants/references/broader_impacts.md +392 -0
- package/lib/skills/builtin/research-grants/references/darpa_guidelines.md +636 -0
- package/lib/skills/builtin/research-grants/references/doe_guidelines.md +586 -0
- package/lib/skills/builtin/research-grants/references/nih_guidelines.md +851 -0
- package/lib/skills/builtin/research-grants/references/nsf_guidelines.md +570 -0
- package/lib/skills/builtin/research-grants/references/nstc_guidelines.md +733 -0
- package/lib/skills/builtin/research-grants/references/specific_aims_guide.md +458 -0
- package/lib/skills/builtin/rewrite-humanize/SKILL.md +116 -0
- package/lib/skills/builtin/rewrite-humanize/references/cs-venue-tone.md +57 -0
- package/lib/skills/builtin/rewrite-humanize/references/lexicon.md +50 -0
- package/lib/skills/builtin/scholar-evaluation/SKILL.md +300 -0
- package/lib/skills/builtin/scholar-evaluation/references/evaluation_framework.md +663 -0
- package/lib/skills/builtin/scholar-evaluation/scripts/calculate_scores.py +379 -0
- package/lib/skills/builtin/scientific-schematics/SKILL.md +603 -0
- package/lib/skills/builtin/scientific-schematics/references/QUICK_REFERENCE.md +182 -0
- package/lib/skills/builtin/scientific-schematics/references/README.md +292 -0
- package/lib/skills/builtin/scientific-schematics/references/best_practices.md +560 -0
- package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic.cpython-312.pyc +0 -0
- package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic_ai.cpython-312.pyc +0 -0
- package/lib/skills/builtin/scientific-schematics/scripts/example_usage.sh +85 -0
- package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic.py +141 -0
- package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic_ai.py +910 -0
- package/lib/skills/builtin/scientific-visualization/SKILL.md +749 -0
- package/lib/skills/builtin/scientific-visualization/assets/color_palettes.py +197 -0
- package/lib/skills/builtin/scientific-visualization/assets/nature.mplstyle +63 -0
- package/lib/skills/builtin/scientific-visualization/assets/presentation.mplstyle +61 -0
- package/lib/skills/builtin/scientific-visualization/assets/publication.mplstyle +68 -0
- package/lib/skills/builtin/scientific-visualization/references/color_palettes.md +348 -0
- package/lib/skills/builtin/scientific-visualization/references/journal_requirements.md +320 -0
- package/lib/skills/builtin/scientific-visualization/references/matplotlib_examples.md +620 -0
- package/lib/skills/builtin/scientific-visualization/references/publication_guidelines.md +205 -0
- package/lib/skills/builtin/scientific-visualization/scripts/figure_export.py +343 -0
- package/lib/skills/builtin/scientific-visualization/scripts/style_presets.py +416 -0
- package/lib/skills/builtin/scientific-writing/SKILL.md +745 -0
- package/lib/skills/builtin/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
- package/lib/skills/builtin/scientific-writing/assets/scientific_report.sty +606 -0
- package/lib/skills/builtin/scientific-writing/assets/scientific_report_template.tex +449 -0
- package/lib/skills/builtin/scientific-writing/references/citation_styles.md +720 -0
- package/lib/skills/builtin/scientific-writing/references/figures_tables.md +806 -0
- package/lib/skills/builtin/scientific-writing/references/imrad_structure.md +686 -0
- package/lib/skills/builtin/scientific-writing/references/professional_report_formatting.md +664 -0
- package/lib/skills/builtin/scientific-writing/references/reporting_guidelines.md +748 -0
- package/lib/skills/builtin/scientific-writing/references/writing_principles.md +824 -0
- package/lib/skills/builtin/seaborn/SKILL.md +674 -0
- package/lib/skills/builtin/seaborn/references/examples.md +822 -0
- package/lib/skills/builtin/seaborn/references/function_reference.md +770 -0
- package/lib/skills/builtin/seaborn/references/objects_interface.md +964 -0
- package/lib/skills/data-analysis/SKILL.md +285 -0
- package/lib/skills/generate-skill-content.mjs +58 -0
- package/lib/skills/index.ts +34 -0
- package/lib/skills/loader.ts +452 -0
- package/package.json +62 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
function parseWords(str) {
|
|
2
|
+
var obj = {}, words = str.split(" ");
|
|
3
|
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
|
4
|
+
return obj;
|
|
5
|
+
}
|
|
6
|
+
var keywords = parseWords("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}");
|
|
7
|
+
var functions = parseWords("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}");
|
|
8
|
+
var specials = parseWords("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent");
|
|
9
|
+
var isOperatorChar = /[+\-*&%=<>!?:\/|]/;
|
|
10
|
+
function chain(stream, state, f) {
|
|
11
|
+
state.tokenize = f;
|
|
12
|
+
return f(stream, state);
|
|
13
|
+
}
|
|
14
|
+
function tokenBase(stream, state) {
|
|
15
|
+
var beforeParams = state.beforeParams;
|
|
16
|
+
state.beforeParams = false;
|
|
17
|
+
var ch = stream.next();
|
|
18
|
+
if (ch == "'" && !state.inString && state.inParams) {
|
|
19
|
+
state.lastTokenWasBuiltin = false;
|
|
20
|
+
return chain(stream, state, tokenString(ch));
|
|
21
|
+
} else if (ch == '"') {
|
|
22
|
+
state.lastTokenWasBuiltin = false;
|
|
23
|
+
if (state.inString) {
|
|
24
|
+
state.inString = false;
|
|
25
|
+
return "string";
|
|
26
|
+
} else if (state.inParams)
|
|
27
|
+
return chain(stream, state, tokenString(ch));
|
|
28
|
+
} else if (/[\[\]{}\(\),;\.]/.test(ch)) {
|
|
29
|
+
if (ch == "(" && beforeParams)
|
|
30
|
+
state.inParams = true;
|
|
31
|
+
else if (ch == ")") {
|
|
32
|
+
state.inParams = false;
|
|
33
|
+
state.lastTokenWasBuiltin = true;
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
} else if (/\d/.test(ch)) {
|
|
37
|
+
state.lastTokenWasBuiltin = false;
|
|
38
|
+
stream.eatWhile(/[\w\.]/);
|
|
39
|
+
return "number";
|
|
40
|
+
} else if (ch == "#" && stream.eat("*")) {
|
|
41
|
+
state.lastTokenWasBuiltin = false;
|
|
42
|
+
return chain(stream, state, tokenComment);
|
|
43
|
+
} else if (ch == "#" && stream.match(/ *\[ *\[/)) {
|
|
44
|
+
state.lastTokenWasBuiltin = false;
|
|
45
|
+
return chain(stream, state, tokenUnparsed);
|
|
46
|
+
} else if (ch == "#" && stream.eat("#")) {
|
|
47
|
+
state.lastTokenWasBuiltin = false;
|
|
48
|
+
stream.skipToEnd();
|
|
49
|
+
return "comment";
|
|
50
|
+
} else if (ch == "$") {
|
|
51
|
+
stream.eat("!");
|
|
52
|
+
stream.eatWhile(/[\w\d\$_\.{}-]/);
|
|
53
|
+
if (specials && specials.propertyIsEnumerable(stream.current())) {
|
|
54
|
+
return "keyword";
|
|
55
|
+
} else {
|
|
56
|
+
state.lastTokenWasBuiltin = true;
|
|
57
|
+
state.beforeParams = true;
|
|
58
|
+
return "builtin";
|
|
59
|
+
}
|
|
60
|
+
} else if (isOperatorChar.test(ch)) {
|
|
61
|
+
state.lastTokenWasBuiltin = false;
|
|
62
|
+
stream.eatWhile(isOperatorChar);
|
|
63
|
+
return "operator";
|
|
64
|
+
} else {
|
|
65
|
+
stream.eatWhile(/[\w\$_{}@]/);
|
|
66
|
+
var word = stream.current();
|
|
67
|
+
if (keywords && keywords.propertyIsEnumerable(word))
|
|
68
|
+
return "keyword";
|
|
69
|
+
if (functions && functions.propertyIsEnumerable(word) || stream.current().match(/^#@?[a-z0-9_]+ *$/i) && stream.peek() == "(" && !(functions && functions.propertyIsEnumerable(word.toLowerCase()))) {
|
|
70
|
+
state.beforeParams = true;
|
|
71
|
+
state.lastTokenWasBuiltin = false;
|
|
72
|
+
return "keyword";
|
|
73
|
+
}
|
|
74
|
+
if (state.inString) {
|
|
75
|
+
state.lastTokenWasBuiltin = false;
|
|
76
|
+
return "string";
|
|
77
|
+
}
|
|
78
|
+
if (stream.pos > word.length && stream.string.charAt(stream.pos - word.length - 1) == "." && state.lastTokenWasBuiltin)
|
|
79
|
+
return "builtin";
|
|
80
|
+
state.lastTokenWasBuiltin = false;
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function tokenString(quote) {
|
|
85
|
+
return function(stream, state) {
|
|
86
|
+
var escaped = false, next, end = false;
|
|
87
|
+
while ((next = stream.next()) != null) {
|
|
88
|
+
if (next == quote && !escaped) {
|
|
89
|
+
end = true;
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
if (quote == '"' && stream.peek() == "$" && !escaped) {
|
|
93
|
+
state.inString = true;
|
|
94
|
+
end = true;
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
escaped = !escaped && next == "\\";
|
|
98
|
+
}
|
|
99
|
+
if (end) state.tokenize = tokenBase;
|
|
100
|
+
return "string";
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function tokenComment(stream, state) {
|
|
104
|
+
var maybeEnd = false, ch;
|
|
105
|
+
while (ch = stream.next()) {
|
|
106
|
+
if (ch == "#" && maybeEnd) {
|
|
107
|
+
state.tokenize = tokenBase;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
maybeEnd = ch == "*";
|
|
111
|
+
}
|
|
112
|
+
return "comment";
|
|
113
|
+
}
|
|
114
|
+
function tokenUnparsed(stream, state) {
|
|
115
|
+
var maybeEnd = 0, ch;
|
|
116
|
+
while (ch = stream.next()) {
|
|
117
|
+
if (ch == "#" && maybeEnd == 2) {
|
|
118
|
+
state.tokenize = tokenBase;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
if (ch == "]")
|
|
122
|
+
maybeEnd++;
|
|
123
|
+
else if (ch != " ")
|
|
124
|
+
maybeEnd = 0;
|
|
125
|
+
}
|
|
126
|
+
return "meta";
|
|
127
|
+
}
|
|
128
|
+
const velocity = {
|
|
129
|
+
name: "velocity",
|
|
130
|
+
startState: function() {
|
|
131
|
+
return {
|
|
132
|
+
tokenize: tokenBase,
|
|
133
|
+
beforeParams: false,
|
|
134
|
+
inParams: false,
|
|
135
|
+
inString: false,
|
|
136
|
+
lastTokenWasBuiltin: false
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
token: function(stream, state) {
|
|
140
|
+
if (stream.eatSpace()) return null;
|
|
141
|
+
return state.tokenize(stream, state);
|
|
142
|
+
},
|
|
143
|
+
languageData: {
|
|
144
|
+
commentTokens: { line: "##", block: { open: "#*", close: "*#" } }
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
velocity
|
|
149
|
+
};
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
function mkVerilog(parserConfig) {
|
|
2
|
+
var statementIndentUnit = parserConfig.statementIndentUnit, dontAlignCalls = parserConfig.dontAlignCalls, noIndentKeywords = parserConfig.noIndentKeywords || [], multiLineStrings = parserConfig.multiLineStrings, hooks = parserConfig.hooks || {};
|
|
3
|
+
function words(str) {
|
|
4
|
+
var obj = {}, words2 = str.split(" ");
|
|
5
|
+
for (var i2 = 0; i2 < words2.length; ++i2) obj[words2[i2]] = true;
|
|
6
|
+
return obj;
|
|
7
|
+
}
|
|
8
|
+
var keywords = words(
|
|
9
|
+
"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"
|
|
10
|
+
);
|
|
11
|
+
var isOperatorChar = /[\+\-\*\/!~&|^%=?:]/;
|
|
12
|
+
var isBracketChar = /[\[\]{}()]/;
|
|
13
|
+
var unsignedNumber = /\d[0-9_]*/;
|
|
14
|
+
var decimalLiteral = /\d*\s*'s?d\s*\d[0-9_]*/i;
|
|
15
|
+
var binaryLiteral = /\d*\s*'s?b\s*[xz01][xz01_]*/i;
|
|
16
|
+
var octLiteral = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i;
|
|
17
|
+
var hexLiteral = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i;
|
|
18
|
+
var realLiteral = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i;
|
|
19
|
+
var closingBracketOrWord = /^((\w+)|[)}\]])/;
|
|
20
|
+
var closingBracket = /[)}\]]/;
|
|
21
|
+
var curPunc;
|
|
22
|
+
var curKeyword;
|
|
23
|
+
var blockKeywords = words(
|
|
24
|
+
"case checker class clocking config function generate interface module package primitive program property specify sequence table task"
|
|
25
|
+
);
|
|
26
|
+
var openClose = {};
|
|
27
|
+
for (var keyword in blockKeywords) {
|
|
28
|
+
openClose[keyword] = "end" + keyword;
|
|
29
|
+
}
|
|
30
|
+
openClose["begin"] = "end";
|
|
31
|
+
openClose["casex"] = "endcase";
|
|
32
|
+
openClose["casez"] = "endcase";
|
|
33
|
+
openClose["do"] = "while";
|
|
34
|
+
openClose["fork"] = "join;join_any;join_none";
|
|
35
|
+
openClose["covergroup"] = "endgroup";
|
|
36
|
+
for (var i in noIndentKeywords) {
|
|
37
|
+
var keyword = noIndentKeywords[i];
|
|
38
|
+
if (openClose[keyword]) {
|
|
39
|
+
openClose[keyword] = void 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
var statementKeywords = words("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");
|
|
43
|
+
function tokenBase(stream, state) {
|
|
44
|
+
var ch = stream.peek(), style;
|
|
45
|
+
if (hooks[ch] && (style = hooks[ch](stream, state)) != false) return style;
|
|
46
|
+
if (hooks.tokenBase && (style = hooks.tokenBase(stream, state)) != false)
|
|
47
|
+
return style;
|
|
48
|
+
if (/[,;:\.]/.test(ch)) {
|
|
49
|
+
curPunc = stream.next();
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
if (isBracketChar.test(ch)) {
|
|
53
|
+
curPunc = stream.next();
|
|
54
|
+
return "bracket";
|
|
55
|
+
}
|
|
56
|
+
if (ch == "`") {
|
|
57
|
+
stream.next();
|
|
58
|
+
if (stream.eatWhile(/[\w\$_]/)) {
|
|
59
|
+
return "def";
|
|
60
|
+
} else {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (ch == "$") {
|
|
65
|
+
stream.next();
|
|
66
|
+
if (stream.eatWhile(/[\w\$_]/)) {
|
|
67
|
+
return "meta";
|
|
68
|
+
} else {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (ch == "#") {
|
|
73
|
+
stream.next();
|
|
74
|
+
stream.eatWhile(/[\d_.]/);
|
|
75
|
+
return "def";
|
|
76
|
+
}
|
|
77
|
+
if (ch == '"') {
|
|
78
|
+
stream.next();
|
|
79
|
+
state.tokenize = tokenString(ch);
|
|
80
|
+
return state.tokenize(stream, state);
|
|
81
|
+
}
|
|
82
|
+
if (ch == "/") {
|
|
83
|
+
stream.next();
|
|
84
|
+
if (stream.eat("*")) {
|
|
85
|
+
state.tokenize = tokenComment;
|
|
86
|
+
return tokenComment(stream, state);
|
|
87
|
+
}
|
|
88
|
+
if (stream.eat("/")) {
|
|
89
|
+
stream.skipToEnd();
|
|
90
|
+
return "comment";
|
|
91
|
+
}
|
|
92
|
+
stream.backUp(1);
|
|
93
|
+
}
|
|
94
|
+
if (stream.match(realLiteral) || stream.match(decimalLiteral) || stream.match(binaryLiteral) || stream.match(octLiteral) || stream.match(hexLiteral) || stream.match(unsignedNumber) || stream.match(realLiteral)) {
|
|
95
|
+
return "number";
|
|
96
|
+
}
|
|
97
|
+
if (stream.eatWhile(isOperatorChar)) {
|
|
98
|
+
return "meta";
|
|
99
|
+
}
|
|
100
|
+
if (stream.eatWhile(/[\w\$_]/)) {
|
|
101
|
+
var cur = stream.current();
|
|
102
|
+
if (keywords[cur]) {
|
|
103
|
+
if (openClose[cur]) {
|
|
104
|
+
curPunc = "newblock";
|
|
105
|
+
}
|
|
106
|
+
if (statementKeywords[cur]) {
|
|
107
|
+
curPunc = "newstatement";
|
|
108
|
+
}
|
|
109
|
+
curKeyword = cur;
|
|
110
|
+
return "keyword";
|
|
111
|
+
}
|
|
112
|
+
return "variable";
|
|
113
|
+
}
|
|
114
|
+
stream.next();
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
function tokenString(quote) {
|
|
118
|
+
return function(stream, state) {
|
|
119
|
+
var escaped = false, next, end = false;
|
|
120
|
+
while ((next = stream.next()) != null) {
|
|
121
|
+
if (next == quote && !escaped) {
|
|
122
|
+
end = true;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
escaped = !escaped && next == "\\";
|
|
126
|
+
}
|
|
127
|
+
if (end || !(escaped || multiLineStrings))
|
|
128
|
+
state.tokenize = tokenBase;
|
|
129
|
+
return "string";
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function tokenComment(stream, state) {
|
|
133
|
+
var maybeEnd = false, ch;
|
|
134
|
+
while (ch = stream.next()) {
|
|
135
|
+
if (ch == "/" && maybeEnd) {
|
|
136
|
+
state.tokenize = tokenBase;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
maybeEnd = ch == "*";
|
|
140
|
+
}
|
|
141
|
+
return "comment";
|
|
142
|
+
}
|
|
143
|
+
function Context(indented, column, type, align, prev) {
|
|
144
|
+
this.indented = indented;
|
|
145
|
+
this.column = column;
|
|
146
|
+
this.type = type;
|
|
147
|
+
this.align = align;
|
|
148
|
+
this.prev = prev;
|
|
149
|
+
}
|
|
150
|
+
function pushContext(state, col, type) {
|
|
151
|
+
var indent = state.indented;
|
|
152
|
+
var c = new Context(indent, col, type, null, state.context);
|
|
153
|
+
return state.context = c;
|
|
154
|
+
}
|
|
155
|
+
function popContext(state) {
|
|
156
|
+
var t = state.context.type;
|
|
157
|
+
if (t == ")" || t == "]" || t == "}") {
|
|
158
|
+
state.indented = state.context.indented;
|
|
159
|
+
}
|
|
160
|
+
return state.context = state.context.prev;
|
|
161
|
+
}
|
|
162
|
+
function isClosing(text, contextClosing) {
|
|
163
|
+
if (text == contextClosing) {
|
|
164
|
+
return true;
|
|
165
|
+
} else {
|
|
166
|
+
var closingKeywords = contextClosing.split(";");
|
|
167
|
+
for (var i2 in closingKeywords) {
|
|
168
|
+
if (text == closingKeywords[i2]) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function buildElectricInputRegEx() {
|
|
176
|
+
var allClosings = [];
|
|
177
|
+
for (var i2 in openClose) {
|
|
178
|
+
if (openClose[i2]) {
|
|
179
|
+
var closings = openClose[i2].split(";");
|
|
180
|
+
for (var j in closings) {
|
|
181
|
+
allClosings.push(closings[j]);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
var re = new RegExp("[{}()\\[\\]]|(" + allClosings.join("|") + ")$");
|
|
186
|
+
return re;
|
|
187
|
+
}
|
|
188
|
+
return {
|
|
189
|
+
name: "verilog",
|
|
190
|
+
startState: function(indentUnit) {
|
|
191
|
+
var state = {
|
|
192
|
+
tokenize: null,
|
|
193
|
+
context: new Context(-indentUnit, 0, "top", false),
|
|
194
|
+
indented: 0,
|
|
195
|
+
startOfLine: true
|
|
196
|
+
};
|
|
197
|
+
if (hooks.startState) hooks.startState(state);
|
|
198
|
+
return state;
|
|
199
|
+
},
|
|
200
|
+
token: function(stream, state) {
|
|
201
|
+
var ctx = state.context;
|
|
202
|
+
if (stream.sol()) {
|
|
203
|
+
if (ctx.align == null) ctx.align = false;
|
|
204
|
+
state.indented = stream.indentation();
|
|
205
|
+
state.startOfLine = true;
|
|
206
|
+
}
|
|
207
|
+
if (hooks.token) {
|
|
208
|
+
var style = hooks.token(stream, state);
|
|
209
|
+
if (style !== void 0) {
|
|
210
|
+
return style;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (stream.eatSpace()) return null;
|
|
214
|
+
curPunc = null;
|
|
215
|
+
curKeyword = null;
|
|
216
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
217
|
+
if (style == "comment" || style == "meta" || style == "variable") return style;
|
|
218
|
+
if (ctx.align == null) ctx.align = true;
|
|
219
|
+
if (curPunc == ctx.type) {
|
|
220
|
+
popContext(state);
|
|
221
|
+
} else if (curPunc == ";" && ctx.type == "statement" || ctx.type && isClosing(curKeyword, ctx.type)) {
|
|
222
|
+
ctx = popContext(state);
|
|
223
|
+
while (ctx && ctx.type == "statement") ctx = popContext(state);
|
|
224
|
+
} else if (curPunc == "{") {
|
|
225
|
+
pushContext(state, stream.column(), "}");
|
|
226
|
+
} else if (curPunc == "[") {
|
|
227
|
+
pushContext(state, stream.column(), "]");
|
|
228
|
+
} else if (curPunc == "(") {
|
|
229
|
+
pushContext(state, stream.column(), ")");
|
|
230
|
+
} else if (ctx && ctx.type == "endcase" && curPunc == ":") {
|
|
231
|
+
pushContext(state, stream.column(), "statement");
|
|
232
|
+
} else if (curPunc == "newstatement") {
|
|
233
|
+
pushContext(state, stream.column(), "statement");
|
|
234
|
+
} else if (curPunc == "newblock") {
|
|
235
|
+
if (curKeyword == "function" && ctx && (ctx.type == "statement" || ctx.type == "endgroup")) ;
|
|
236
|
+
else if (curKeyword == "task" && ctx && ctx.type == "statement") ;
|
|
237
|
+
else {
|
|
238
|
+
var close = openClose[curKeyword];
|
|
239
|
+
pushContext(state, stream.column(), close);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
state.startOfLine = false;
|
|
243
|
+
return style;
|
|
244
|
+
},
|
|
245
|
+
indent: function(state, textAfter, cx) {
|
|
246
|
+
if (state.tokenize != tokenBase && state.tokenize != null) return null;
|
|
247
|
+
if (hooks.indent) {
|
|
248
|
+
var fromHook = hooks.indent(state);
|
|
249
|
+
if (fromHook >= 0) return fromHook;
|
|
250
|
+
}
|
|
251
|
+
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
|
252
|
+
if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
|
|
253
|
+
var closing = false;
|
|
254
|
+
var possibleClosing = textAfter.match(closingBracketOrWord);
|
|
255
|
+
if (possibleClosing)
|
|
256
|
+
closing = isClosing(possibleClosing[0], ctx.type);
|
|
257
|
+
if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit || cx.unit);
|
|
258
|
+
else if (closingBracket.test(ctx.type) && ctx.align && !dontAlignCalls) return ctx.column + (closing ? 0 : 1);
|
|
259
|
+
else if (ctx.type == ")" && !closing) return ctx.indented + (statementIndentUnit || cx.unit);
|
|
260
|
+
else return ctx.indented + (closing ? 0 : cx.unit);
|
|
261
|
+
},
|
|
262
|
+
languageData: {
|
|
263
|
+
indentOnInput: buildElectricInputRegEx(),
|
|
264
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
const verilog = mkVerilog({});
|
|
269
|
+
var tlvIdentifierStyle = {
|
|
270
|
+
"|": "link",
|
|
271
|
+
">": "property",
|
|
272
|
+
// Should condition this off for > TLV 1c.
|
|
273
|
+
"$": "variable",
|
|
274
|
+
"$$": "variable",
|
|
275
|
+
"?$": "qualifier",
|
|
276
|
+
"?*": "qualifier",
|
|
277
|
+
"-": "contentSeparator",
|
|
278
|
+
"/": "property",
|
|
279
|
+
"/-": "property",
|
|
280
|
+
"@": "variableName.special",
|
|
281
|
+
"@-": "variableName.special",
|
|
282
|
+
"@++": "variableName.special",
|
|
283
|
+
"@+=": "variableName.special",
|
|
284
|
+
"@+=-": "variableName.special",
|
|
285
|
+
"@--": "variableName.special",
|
|
286
|
+
"@-=": "variableName.special",
|
|
287
|
+
"%+": "tag",
|
|
288
|
+
"%-": "tag",
|
|
289
|
+
"%": "tag",
|
|
290
|
+
">>": "tag",
|
|
291
|
+
"<<": "tag",
|
|
292
|
+
"<>": "tag",
|
|
293
|
+
"#": "tag",
|
|
294
|
+
// Need to choose a style for this.
|
|
295
|
+
"^": "attribute",
|
|
296
|
+
"^^": "attribute",
|
|
297
|
+
"^!": "attribute",
|
|
298
|
+
"*": "variable",
|
|
299
|
+
"**": "variable",
|
|
300
|
+
"\\": "keyword",
|
|
301
|
+
'"': "comment"
|
|
302
|
+
};
|
|
303
|
+
var tlvScopePrefixChars = {
|
|
304
|
+
"/": "beh-hier",
|
|
305
|
+
">": "beh-hier",
|
|
306
|
+
"-": "phys-hier",
|
|
307
|
+
"|": "pipe",
|
|
308
|
+
"?": "when",
|
|
309
|
+
"@": "stage",
|
|
310
|
+
"\\": "keyword"
|
|
311
|
+
};
|
|
312
|
+
var tlvIndentUnit = 3;
|
|
313
|
+
var tlvIdentMatch = /^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/;
|
|
314
|
+
var tlvLineIndentationMatch = /^[! ] */;
|
|
315
|
+
var tlvCommentMatch = /^\/[\/\*]/;
|
|
316
|
+
const tlv = mkVerilog({
|
|
317
|
+
hooks: {
|
|
318
|
+
electricInput: false,
|
|
319
|
+
// Return undefined for verilog tokenizing, or style for TLV token (null not used).
|
|
320
|
+
// Standard CM styles are used for most formatting, but some TL-Verilog-specific highlighting
|
|
321
|
+
// can be enabled with the definition of cm-tlv-* styles, including highlighting for:
|
|
322
|
+
// - M4 tokens
|
|
323
|
+
// - TLV scope indentation
|
|
324
|
+
// - Statement delimitation (enabled by tlvTrackStatements)
|
|
325
|
+
token: function(stream, state) {
|
|
326
|
+
var style = void 0;
|
|
327
|
+
var match;
|
|
328
|
+
if (stream.sol() && !state.tlvInBlockComment) {
|
|
329
|
+
if (stream.peek() == "\\") {
|
|
330
|
+
style = "def";
|
|
331
|
+
stream.skipToEnd();
|
|
332
|
+
if (stream.string.match(/\\SV/)) {
|
|
333
|
+
state.tlvCodeActive = false;
|
|
334
|
+
} else if (stream.string.match(/\\TLV/)) {
|
|
335
|
+
state.tlvCodeActive = true;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
if (state.tlvCodeActive && stream.pos == 0 && state.indented == 0 && (match = stream.match(tlvLineIndentationMatch, false))) {
|
|
339
|
+
state.indented = match[0].length;
|
|
340
|
+
}
|
|
341
|
+
var indented = state.indented;
|
|
342
|
+
var depth = indented / tlvIndentUnit;
|
|
343
|
+
if (depth <= state.tlvIndentationStyle.length) {
|
|
344
|
+
var blankline = stream.string.length == indented;
|
|
345
|
+
var chPos = depth * tlvIndentUnit;
|
|
346
|
+
if (chPos < stream.string.length) {
|
|
347
|
+
var bodyString = stream.string.slice(chPos);
|
|
348
|
+
var ch = bodyString[0];
|
|
349
|
+
if (tlvScopePrefixChars[ch] && ((match = bodyString.match(tlvIdentMatch)) && tlvIdentifierStyle[match[1]])) {
|
|
350
|
+
indented += tlvIndentUnit;
|
|
351
|
+
if (!(ch == "\\" && chPos > 0)) {
|
|
352
|
+
state.tlvIndentationStyle[depth] = tlvScopePrefixChars[ch];
|
|
353
|
+
depth++;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (!blankline) {
|
|
358
|
+
while (state.tlvIndentationStyle.length > depth) {
|
|
359
|
+
state.tlvIndentationStyle.pop();
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
state.tlvNextIndent = indented;
|
|
364
|
+
}
|
|
365
|
+
if (state.tlvCodeActive) {
|
|
366
|
+
var match;
|
|
367
|
+
if (style !== void 0) ;
|
|
368
|
+
else if (state.tlvInBlockComment) {
|
|
369
|
+
if (stream.match(/^.*?\*\//)) {
|
|
370
|
+
state.tlvInBlockComment = false;
|
|
371
|
+
} else {
|
|
372
|
+
stream.skipToEnd();
|
|
373
|
+
}
|
|
374
|
+
style = "comment";
|
|
375
|
+
} else if ((match = stream.match(tlvCommentMatch)) && !state.tlvInBlockComment) {
|
|
376
|
+
if (match[0] == "//") {
|
|
377
|
+
stream.skipToEnd();
|
|
378
|
+
} else {
|
|
379
|
+
state.tlvInBlockComment = true;
|
|
380
|
+
}
|
|
381
|
+
style = "comment";
|
|
382
|
+
} else if (match = stream.match(tlvIdentMatch)) {
|
|
383
|
+
var prefix = match[1];
|
|
384
|
+
var mnemonic = match[2];
|
|
385
|
+
if (
|
|
386
|
+
// is identifier prefix
|
|
387
|
+
tlvIdentifierStyle.hasOwnProperty(prefix) && // has mnemonic or we're at the end of the line (maybe it hasn't been typed yet)
|
|
388
|
+
(mnemonic.length > 0 || stream.eol())
|
|
389
|
+
) {
|
|
390
|
+
style = tlvIdentifierStyle[prefix];
|
|
391
|
+
} else {
|
|
392
|
+
stream.backUp(stream.current().length - 1);
|
|
393
|
+
}
|
|
394
|
+
} else if (stream.match(/^\t+/)) {
|
|
395
|
+
style = "invalid";
|
|
396
|
+
} else if (stream.match(/^[\[\]{}\(\);\:]+/)) {
|
|
397
|
+
style = "meta";
|
|
398
|
+
} else if (match = stream.match(/^[mM]4([\+_])?[\w\d_]*/)) {
|
|
399
|
+
style = match[1] == "+" ? "keyword.special" : "keyword";
|
|
400
|
+
} else if (stream.match(/^ +/)) {
|
|
401
|
+
if (stream.eol()) {
|
|
402
|
+
style = "error";
|
|
403
|
+
}
|
|
404
|
+
} else if (stream.match(/^[\w\d_]+/)) {
|
|
405
|
+
style = "number";
|
|
406
|
+
} else {
|
|
407
|
+
stream.next();
|
|
408
|
+
}
|
|
409
|
+
} else {
|
|
410
|
+
if (stream.match(/^[mM]4([\w\d_]*)/)) {
|
|
411
|
+
style = "keyword";
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return style;
|
|
415
|
+
},
|
|
416
|
+
indent: function(state) {
|
|
417
|
+
return state.tlvCodeActive == true ? state.tlvNextIndent : -1;
|
|
418
|
+
},
|
|
419
|
+
startState: function(state) {
|
|
420
|
+
state.tlvIndentationStyle = [];
|
|
421
|
+
state.tlvCodeActive = true;
|
|
422
|
+
state.tlvNextIndent = -1;
|
|
423
|
+
state.tlvInBlockComment = false;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
export {
|
|
428
|
+
tlv,
|
|
429
|
+
verilog
|
|
430
|
+
};
|