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,222 @@
|
|
|
1
|
+
var words = {};
|
|
2
|
+
function define(style, dict) {
|
|
3
|
+
for (var i = 0; i < dict.length; i++) {
|
|
4
|
+
words[dict[i]] = style;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
var commonAtoms = ["true", "false"];
|
|
8
|
+
var commonKeywords = [
|
|
9
|
+
"if",
|
|
10
|
+
"then",
|
|
11
|
+
"do",
|
|
12
|
+
"else",
|
|
13
|
+
"elif",
|
|
14
|
+
"while",
|
|
15
|
+
"until",
|
|
16
|
+
"for",
|
|
17
|
+
"in",
|
|
18
|
+
"esac",
|
|
19
|
+
"fi",
|
|
20
|
+
"fin",
|
|
21
|
+
"fil",
|
|
22
|
+
"done",
|
|
23
|
+
"exit",
|
|
24
|
+
"set",
|
|
25
|
+
"unset",
|
|
26
|
+
"export",
|
|
27
|
+
"function"
|
|
28
|
+
];
|
|
29
|
+
var commonCommands = [
|
|
30
|
+
"ab",
|
|
31
|
+
"awk",
|
|
32
|
+
"bash",
|
|
33
|
+
"beep",
|
|
34
|
+
"cat",
|
|
35
|
+
"cc",
|
|
36
|
+
"cd",
|
|
37
|
+
"chown",
|
|
38
|
+
"chmod",
|
|
39
|
+
"chroot",
|
|
40
|
+
"clear",
|
|
41
|
+
"cp",
|
|
42
|
+
"curl",
|
|
43
|
+
"cut",
|
|
44
|
+
"diff",
|
|
45
|
+
"echo",
|
|
46
|
+
"find",
|
|
47
|
+
"gawk",
|
|
48
|
+
"gcc",
|
|
49
|
+
"get",
|
|
50
|
+
"git",
|
|
51
|
+
"grep",
|
|
52
|
+
"hg",
|
|
53
|
+
"kill",
|
|
54
|
+
"killall",
|
|
55
|
+
"ln",
|
|
56
|
+
"ls",
|
|
57
|
+
"make",
|
|
58
|
+
"mkdir",
|
|
59
|
+
"openssl",
|
|
60
|
+
"mv",
|
|
61
|
+
"nc",
|
|
62
|
+
"nl",
|
|
63
|
+
"node",
|
|
64
|
+
"npm",
|
|
65
|
+
"ping",
|
|
66
|
+
"ps",
|
|
67
|
+
"restart",
|
|
68
|
+
"rm",
|
|
69
|
+
"rmdir",
|
|
70
|
+
"sed",
|
|
71
|
+
"service",
|
|
72
|
+
"sh",
|
|
73
|
+
"shopt",
|
|
74
|
+
"shred",
|
|
75
|
+
"source",
|
|
76
|
+
"sort",
|
|
77
|
+
"sleep",
|
|
78
|
+
"ssh",
|
|
79
|
+
"start",
|
|
80
|
+
"stop",
|
|
81
|
+
"su",
|
|
82
|
+
"sudo",
|
|
83
|
+
"svn",
|
|
84
|
+
"tee",
|
|
85
|
+
"telnet",
|
|
86
|
+
"top",
|
|
87
|
+
"touch",
|
|
88
|
+
"vi",
|
|
89
|
+
"vim",
|
|
90
|
+
"wall",
|
|
91
|
+
"wc",
|
|
92
|
+
"wget",
|
|
93
|
+
"who",
|
|
94
|
+
"write",
|
|
95
|
+
"yes",
|
|
96
|
+
"zsh"
|
|
97
|
+
];
|
|
98
|
+
define("atom", commonAtoms);
|
|
99
|
+
define("keyword", commonKeywords);
|
|
100
|
+
define("builtin", commonCommands);
|
|
101
|
+
function tokenBase(stream, state) {
|
|
102
|
+
if (stream.eatSpace()) return null;
|
|
103
|
+
var sol = stream.sol();
|
|
104
|
+
var ch = stream.next();
|
|
105
|
+
if (ch === "\\") {
|
|
106
|
+
stream.next();
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
if (ch === "'" || ch === '"' || ch === "`") {
|
|
110
|
+
state.tokens.unshift(tokenString(ch, ch === "`" ? "quote" : "string"));
|
|
111
|
+
return tokenize(stream, state);
|
|
112
|
+
}
|
|
113
|
+
if (ch === "#") {
|
|
114
|
+
if (sol && stream.eat("!")) {
|
|
115
|
+
stream.skipToEnd();
|
|
116
|
+
return "meta";
|
|
117
|
+
}
|
|
118
|
+
stream.skipToEnd();
|
|
119
|
+
return "comment";
|
|
120
|
+
}
|
|
121
|
+
if (ch === "$") {
|
|
122
|
+
state.tokens.unshift(tokenDollar);
|
|
123
|
+
return tokenize(stream, state);
|
|
124
|
+
}
|
|
125
|
+
if (ch === "+" || ch === "=") {
|
|
126
|
+
return "operator";
|
|
127
|
+
}
|
|
128
|
+
if (ch === "-") {
|
|
129
|
+
stream.eat("-");
|
|
130
|
+
stream.eatWhile(/\w/);
|
|
131
|
+
return "attribute";
|
|
132
|
+
}
|
|
133
|
+
if (ch == "<") {
|
|
134
|
+
if (stream.match("<<")) return "operator";
|
|
135
|
+
var heredoc = stream.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
|
|
136
|
+
if (heredoc) {
|
|
137
|
+
state.tokens.unshift(tokenHeredoc(heredoc[1] || heredoc[2]));
|
|
138
|
+
return "string.special";
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (/\d/.test(ch)) {
|
|
142
|
+
stream.eatWhile(/\d/);
|
|
143
|
+
if (stream.eol() || !/\w/.test(stream.peek())) {
|
|
144
|
+
return "number";
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
stream.eatWhile(/[\w-]/);
|
|
148
|
+
var cur = stream.current();
|
|
149
|
+
if (stream.peek() === "=" && /\w+/.test(cur)) return "def";
|
|
150
|
+
return words.hasOwnProperty(cur) ? words[cur] : null;
|
|
151
|
+
}
|
|
152
|
+
function tokenString(quote, style) {
|
|
153
|
+
var close = quote == "(" ? ")" : quote == "{" ? "}" : quote;
|
|
154
|
+
return function(stream, state) {
|
|
155
|
+
var next, escaped = false;
|
|
156
|
+
while ((next = stream.next()) != null) {
|
|
157
|
+
if (next === close && !escaped) {
|
|
158
|
+
state.tokens.shift();
|
|
159
|
+
break;
|
|
160
|
+
} else if (next === "$" && !escaped && quote !== "'" && stream.peek() != close) {
|
|
161
|
+
escaped = true;
|
|
162
|
+
stream.backUp(1);
|
|
163
|
+
state.tokens.unshift(tokenDollar);
|
|
164
|
+
break;
|
|
165
|
+
} else if (!escaped && quote !== close && next === quote) {
|
|
166
|
+
state.tokens.unshift(tokenString(quote, style));
|
|
167
|
+
return tokenize(stream, state);
|
|
168
|
+
} else if (!escaped && /['"]/.test(next) && !/['"]/.test(quote)) {
|
|
169
|
+
state.tokens.unshift(tokenStringStart(next, "string"));
|
|
170
|
+
stream.backUp(1);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
escaped = !escaped && next === "\\";
|
|
174
|
+
}
|
|
175
|
+
return style;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function tokenStringStart(quote, style) {
|
|
179
|
+
return function(stream, state) {
|
|
180
|
+
state.tokens[0] = tokenString(quote, style);
|
|
181
|
+
stream.next();
|
|
182
|
+
return tokenize(stream, state);
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
var tokenDollar = function(stream, state) {
|
|
186
|
+
if (state.tokens.length > 1) stream.eat("$");
|
|
187
|
+
var ch = stream.next();
|
|
188
|
+
if (/['"({]/.test(ch)) {
|
|
189
|
+
state.tokens[0] = tokenString(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string");
|
|
190
|
+
return tokenize(stream, state);
|
|
191
|
+
}
|
|
192
|
+
if (!/\d/.test(ch)) stream.eatWhile(/\w/);
|
|
193
|
+
state.tokens.shift();
|
|
194
|
+
return "def";
|
|
195
|
+
};
|
|
196
|
+
function tokenHeredoc(delim) {
|
|
197
|
+
return function(stream, state) {
|
|
198
|
+
if (stream.sol() && stream.string == delim) state.tokens.shift();
|
|
199
|
+
stream.skipToEnd();
|
|
200
|
+
return "string.special";
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function tokenize(stream, state) {
|
|
204
|
+
return (state.tokens[0] || tokenBase)(stream, state);
|
|
205
|
+
}
|
|
206
|
+
const shell = {
|
|
207
|
+
name: "shell",
|
|
208
|
+
startState: function() {
|
|
209
|
+
return { tokens: [] };
|
|
210
|
+
},
|
|
211
|
+
token: function(stream, state) {
|
|
212
|
+
return tokenize(stream, state);
|
|
213
|
+
},
|
|
214
|
+
languageData: {
|
|
215
|
+
autocomplete: commonAtoms.concat(commonKeywords, commonCommands),
|
|
216
|
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
|
|
217
|
+
commentTokens: { line: "#" }
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
export {
|
|
221
|
+
shell
|
|
222
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
function words(str) {
|
|
2
|
+
var obj = {}, words2 = str.split(" ");
|
|
3
|
+
for (var i = 0; i < words2.length; ++i) obj[words2[i]] = true;
|
|
4
|
+
return obj;
|
|
5
|
+
}
|
|
6
|
+
var keywords = words("if elsif else stop require");
|
|
7
|
+
var atoms = words("true false not");
|
|
8
|
+
function tokenBase(stream, state) {
|
|
9
|
+
var ch = stream.next();
|
|
10
|
+
if (ch == "/" && stream.eat("*")) {
|
|
11
|
+
state.tokenize = tokenCComment;
|
|
12
|
+
return tokenCComment(stream, state);
|
|
13
|
+
}
|
|
14
|
+
if (ch === "#") {
|
|
15
|
+
stream.skipToEnd();
|
|
16
|
+
return "comment";
|
|
17
|
+
}
|
|
18
|
+
if (ch == '"') {
|
|
19
|
+
state.tokenize = tokenString(ch);
|
|
20
|
+
return state.tokenize(stream, state);
|
|
21
|
+
}
|
|
22
|
+
if (ch == "(") {
|
|
23
|
+
state._indent.push("(");
|
|
24
|
+
state._indent.push("{");
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
if (ch === "{") {
|
|
28
|
+
state._indent.push("{");
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
if (ch == ")") {
|
|
32
|
+
state._indent.pop();
|
|
33
|
+
state._indent.pop();
|
|
34
|
+
}
|
|
35
|
+
if (ch === "}") {
|
|
36
|
+
state._indent.pop();
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
if (ch == ",")
|
|
40
|
+
return null;
|
|
41
|
+
if (ch == ";")
|
|
42
|
+
return null;
|
|
43
|
+
if (/[{}\(\),;]/.test(ch))
|
|
44
|
+
return null;
|
|
45
|
+
if (/\d/.test(ch)) {
|
|
46
|
+
stream.eatWhile(/[\d]/);
|
|
47
|
+
stream.eat(/[KkMmGg]/);
|
|
48
|
+
return "number";
|
|
49
|
+
}
|
|
50
|
+
if (ch == ":") {
|
|
51
|
+
stream.eatWhile(/[a-zA-Z_]/);
|
|
52
|
+
stream.eatWhile(/[a-zA-Z0-9_]/);
|
|
53
|
+
return "operator";
|
|
54
|
+
}
|
|
55
|
+
stream.eatWhile(/\w/);
|
|
56
|
+
var cur = stream.current();
|
|
57
|
+
if (cur == "text" && stream.eat(":")) {
|
|
58
|
+
state.tokenize = tokenMultiLineString;
|
|
59
|
+
return "string";
|
|
60
|
+
}
|
|
61
|
+
if (keywords.propertyIsEnumerable(cur))
|
|
62
|
+
return "keyword";
|
|
63
|
+
if (atoms.propertyIsEnumerable(cur))
|
|
64
|
+
return "atom";
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
function tokenMultiLineString(stream, state) {
|
|
68
|
+
state._multiLineString = true;
|
|
69
|
+
if (!stream.sol()) {
|
|
70
|
+
stream.eatSpace();
|
|
71
|
+
if (stream.peek() == "#") {
|
|
72
|
+
stream.skipToEnd();
|
|
73
|
+
return "comment";
|
|
74
|
+
}
|
|
75
|
+
stream.skipToEnd();
|
|
76
|
+
return "string";
|
|
77
|
+
}
|
|
78
|
+
if (stream.next() == "." && stream.eol()) {
|
|
79
|
+
state._multiLineString = false;
|
|
80
|
+
state.tokenize = tokenBase;
|
|
81
|
+
}
|
|
82
|
+
return "string";
|
|
83
|
+
}
|
|
84
|
+
function tokenCComment(stream, state) {
|
|
85
|
+
var maybeEnd = false, ch;
|
|
86
|
+
while ((ch = stream.next()) != null) {
|
|
87
|
+
if (maybeEnd && ch == "/") {
|
|
88
|
+
state.tokenize = tokenBase;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
maybeEnd = ch == "*";
|
|
92
|
+
}
|
|
93
|
+
return "comment";
|
|
94
|
+
}
|
|
95
|
+
function tokenString(quote) {
|
|
96
|
+
return function(stream, state) {
|
|
97
|
+
var escaped = false, ch;
|
|
98
|
+
while ((ch = stream.next()) != null) {
|
|
99
|
+
if (ch == quote && !escaped)
|
|
100
|
+
break;
|
|
101
|
+
escaped = !escaped && ch == "\\";
|
|
102
|
+
}
|
|
103
|
+
if (!escaped) state.tokenize = tokenBase;
|
|
104
|
+
return "string";
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const sieve = {
|
|
108
|
+
name: "sieve",
|
|
109
|
+
startState: function(base) {
|
|
110
|
+
return {
|
|
111
|
+
tokenize: tokenBase,
|
|
112
|
+
baseIndent: base || 0,
|
|
113
|
+
_indent: []
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
token: function(stream, state) {
|
|
117
|
+
if (stream.eatSpace())
|
|
118
|
+
return null;
|
|
119
|
+
return (state.tokenize || tokenBase)(stream, state);
|
|
120
|
+
},
|
|
121
|
+
indent: function(state, _textAfter, cx) {
|
|
122
|
+
var length = state._indent.length;
|
|
123
|
+
if (_textAfter && _textAfter[0] == "}")
|
|
124
|
+
length--;
|
|
125
|
+
if (length < 0)
|
|
126
|
+
length = 0;
|
|
127
|
+
return length * cx.unit;
|
|
128
|
+
},
|
|
129
|
+
languageData: {
|
|
130
|
+
indentOnInput: /^\s*\}$/
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
sieve
|
|
135
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
function simpleMode(states) {
|
|
2
|
+
ensureState(states, "start");
|
|
3
|
+
var states_ = {}, meta = states.languageData || {}, hasIndentation = false;
|
|
4
|
+
for (var state in states) if (state != meta && states.hasOwnProperty(state)) {
|
|
5
|
+
var list = states_[state] = [], orig = states[state];
|
|
6
|
+
for (var i = 0; i < orig.length; i++) {
|
|
7
|
+
var data = orig[i];
|
|
8
|
+
list.push(new Rule(data, states));
|
|
9
|
+
if (data.indent || data.dedent) hasIndentation = true;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
name: meta.name,
|
|
14
|
+
startState: function() {
|
|
15
|
+
return { state: "start", pending: null, indent: hasIndentation ? [] : null };
|
|
16
|
+
},
|
|
17
|
+
copyState: function(state2) {
|
|
18
|
+
var s = { state: state2.state, pending: state2.pending, indent: state2.indent && state2.indent.slice(0) };
|
|
19
|
+
if (state2.stack)
|
|
20
|
+
s.stack = state2.stack.slice(0);
|
|
21
|
+
return s;
|
|
22
|
+
},
|
|
23
|
+
token: tokenFunction(states_),
|
|
24
|
+
indent: indentFunction(states_, meta),
|
|
25
|
+
mergeTokens: meta.mergeTokens,
|
|
26
|
+
languageData: meta
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function ensureState(states, name) {
|
|
30
|
+
if (!states.hasOwnProperty(name))
|
|
31
|
+
throw new Error("Undefined state " + name + " in simple mode");
|
|
32
|
+
}
|
|
33
|
+
function toRegex(val, caret) {
|
|
34
|
+
if (!val) return /(?:)/;
|
|
35
|
+
var flags = "";
|
|
36
|
+
if (val instanceof RegExp) {
|
|
37
|
+
if (val.ignoreCase) flags = "i";
|
|
38
|
+
if (val.unicode) flags += "u";
|
|
39
|
+
val = val.source;
|
|
40
|
+
} else {
|
|
41
|
+
val = String(val);
|
|
42
|
+
}
|
|
43
|
+
return new RegExp("^(?:" + val + ")", flags);
|
|
44
|
+
}
|
|
45
|
+
function asToken(val) {
|
|
46
|
+
if (!val) return null;
|
|
47
|
+
if (val.apply) return val;
|
|
48
|
+
if (typeof val == "string") return val.replace(/\./g, " ");
|
|
49
|
+
var result = [];
|
|
50
|
+
for (var i = 0; i < val.length; i++)
|
|
51
|
+
result.push(val[i] && val[i].replace(/\./g, " "));
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
54
|
+
function Rule(data, states) {
|
|
55
|
+
if (data.next || data.push) ensureState(states, data.next || data.push);
|
|
56
|
+
this.regex = toRegex(data.regex);
|
|
57
|
+
this.token = asToken(data.token);
|
|
58
|
+
this.data = data;
|
|
59
|
+
}
|
|
60
|
+
function tokenFunction(states) {
|
|
61
|
+
return function(stream, state) {
|
|
62
|
+
if (state.pending) {
|
|
63
|
+
var pend = state.pending.shift();
|
|
64
|
+
if (state.pending.length == 0) state.pending = null;
|
|
65
|
+
stream.pos += pend.text.length;
|
|
66
|
+
return pend.token;
|
|
67
|
+
}
|
|
68
|
+
var curState = states[state.state];
|
|
69
|
+
for (var i = 0; i < curState.length; i++) {
|
|
70
|
+
var rule = curState[i];
|
|
71
|
+
var matches = (!rule.data.sol || stream.sol()) && stream.match(rule.regex);
|
|
72
|
+
if (matches) {
|
|
73
|
+
if (rule.data.next) {
|
|
74
|
+
state.state = rule.data.next;
|
|
75
|
+
} else if (rule.data.push) {
|
|
76
|
+
(state.stack || (state.stack = [])).push(state.state);
|
|
77
|
+
state.state = rule.data.push;
|
|
78
|
+
} else if (rule.data.pop && state.stack && state.stack.length) {
|
|
79
|
+
state.state = state.stack.pop();
|
|
80
|
+
}
|
|
81
|
+
if (rule.data.indent)
|
|
82
|
+
state.indent.push(stream.indentation() + stream.indentUnit);
|
|
83
|
+
if (rule.data.dedent)
|
|
84
|
+
state.indent.pop();
|
|
85
|
+
var token = rule.token;
|
|
86
|
+
if (token && token.apply) token = token(matches);
|
|
87
|
+
if (matches.length > 2 && rule.token && typeof rule.token != "string") {
|
|
88
|
+
state.pending = [];
|
|
89
|
+
for (var j = 2; j < matches.length; j++)
|
|
90
|
+
if (matches[j])
|
|
91
|
+
state.pending.push({ text: matches[j], token: rule.token[j - 1] });
|
|
92
|
+
stream.backUp(matches[0].length - (matches[1] ? matches[1].length : 0));
|
|
93
|
+
return token[0];
|
|
94
|
+
} else if (token && token.join) {
|
|
95
|
+
return token[0];
|
|
96
|
+
} else {
|
|
97
|
+
return token;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
stream.next();
|
|
102
|
+
return null;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function indentFunction(states, meta) {
|
|
106
|
+
return function(state, textAfter) {
|
|
107
|
+
if (state.indent == null || meta.dontIndentStates && meta.dontIndentStates.indexOf(state.state) > -1)
|
|
108
|
+
return null;
|
|
109
|
+
var pos = state.indent.length - 1, rules = states[state.state];
|
|
110
|
+
scan: for (; ; ) {
|
|
111
|
+
for (var i = 0; i < rules.length; i++) {
|
|
112
|
+
var rule = rules[i];
|
|
113
|
+
if (rule.data.dedent && rule.data.dedentIfLineStart !== false) {
|
|
114
|
+
var m = rule.regex.exec(textAfter);
|
|
115
|
+
if (m && m[0]) {
|
|
116
|
+
pos--;
|
|
117
|
+
if (rule.next || rule.push) rules = states[rule.next || rule.push];
|
|
118
|
+
textAfter = textAfter.slice(m[0].length);
|
|
119
|
+
continue scan;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
return pos < 0 ? 0 : state.indent[pos];
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
simpleMode as s
|
|
130
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
var specialChars = /[+\-\/\\*~<>=@%|&?!.,:;^]/;
|
|
2
|
+
var keywords = /true|false|nil|self|super|thisContext/;
|
|
3
|
+
var Context = function(tokenizer, parent) {
|
|
4
|
+
this.next = tokenizer;
|
|
5
|
+
this.parent = parent;
|
|
6
|
+
};
|
|
7
|
+
var Token = function(name, context, eos) {
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.context = context;
|
|
10
|
+
this.eos = eos;
|
|
11
|
+
};
|
|
12
|
+
var State = function() {
|
|
13
|
+
this.context = new Context(next, null);
|
|
14
|
+
this.expectVariable = true;
|
|
15
|
+
this.indentation = 0;
|
|
16
|
+
this.userIndentationDelta = 0;
|
|
17
|
+
};
|
|
18
|
+
State.prototype.userIndent = function(indentation, indentUnit) {
|
|
19
|
+
this.userIndentationDelta = indentation > 0 ? indentation / indentUnit - this.indentation : 0;
|
|
20
|
+
};
|
|
21
|
+
var next = function(stream, context, state) {
|
|
22
|
+
var token = new Token(null, context, false);
|
|
23
|
+
var aChar = stream.next();
|
|
24
|
+
if (aChar === '"') {
|
|
25
|
+
token = nextComment(stream, new Context(nextComment, context));
|
|
26
|
+
} else if (aChar === "'") {
|
|
27
|
+
token = nextString(stream, new Context(nextString, context));
|
|
28
|
+
} else if (aChar === "#") {
|
|
29
|
+
if (stream.peek() === "'") {
|
|
30
|
+
stream.next();
|
|
31
|
+
token = nextSymbol(stream, new Context(nextSymbol, context));
|
|
32
|
+
} else {
|
|
33
|
+
if (stream.eatWhile(/[^\s.{}\[\]()]/))
|
|
34
|
+
token.name = "string.special";
|
|
35
|
+
else
|
|
36
|
+
token.name = "meta";
|
|
37
|
+
}
|
|
38
|
+
} else if (aChar === "$") {
|
|
39
|
+
if (stream.next() === "<") {
|
|
40
|
+
stream.eatWhile(/[^\s>]/);
|
|
41
|
+
stream.next();
|
|
42
|
+
}
|
|
43
|
+
token.name = "string.special";
|
|
44
|
+
} else if (aChar === "|" && state.expectVariable) {
|
|
45
|
+
token.context = new Context(nextTemporaries, context);
|
|
46
|
+
} else if (/[\[\]{}()]/.test(aChar)) {
|
|
47
|
+
token.name = "bracket";
|
|
48
|
+
token.eos = /[\[{(]/.test(aChar);
|
|
49
|
+
if (aChar === "[") {
|
|
50
|
+
state.indentation++;
|
|
51
|
+
} else if (aChar === "]") {
|
|
52
|
+
state.indentation = Math.max(0, state.indentation - 1);
|
|
53
|
+
}
|
|
54
|
+
} else if (specialChars.test(aChar)) {
|
|
55
|
+
stream.eatWhile(specialChars);
|
|
56
|
+
token.name = "operator";
|
|
57
|
+
token.eos = aChar !== ";";
|
|
58
|
+
} else if (/\d/.test(aChar)) {
|
|
59
|
+
stream.eatWhile(/[\w\d]/);
|
|
60
|
+
token.name = "number";
|
|
61
|
+
} else if (/[\w_]/.test(aChar)) {
|
|
62
|
+
stream.eatWhile(/[\w\d_]/);
|
|
63
|
+
token.name = state.expectVariable ? keywords.test(stream.current()) ? "keyword" : "variable" : null;
|
|
64
|
+
} else {
|
|
65
|
+
token.eos = state.expectVariable;
|
|
66
|
+
}
|
|
67
|
+
return token;
|
|
68
|
+
};
|
|
69
|
+
var nextComment = function(stream, context) {
|
|
70
|
+
stream.eatWhile(/[^"]/);
|
|
71
|
+
return new Token("comment", stream.eat('"') ? context.parent : context, true);
|
|
72
|
+
};
|
|
73
|
+
var nextString = function(stream, context) {
|
|
74
|
+
stream.eatWhile(/[^']/);
|
|
75
|
+
return new Token("string", stream.eat("'") ? context.parent : context, false);
|
|
76
|
+
};
|
|
77
|
+
var nextSymbol = function(stream, context) {
|
|
78
|
+
stream.eatWhile(/[^']/);
|
|
79
|
+
return new Token("string.special", stream.eat("'") ? context.parent : context, false);
|
|
80
|
+
};
|
|
81
|
+
var nextTemporaries = function(stream, context) {
|
|
82
|
+
var token = new Token(null, context, false);
|
|
83
|
+
var aChar = stream.next();
|
|
84
|
+
if (aChar === "|") {
|
|
85
|
+
token.context = context.parent;
|
|
86
|
+
token.eos = true;
|
|
87
|
+
} else {
|
|
88
|
+
stream.eatWhile(/[^|]/);
|
|
89
|
+
token.name = "variable";
|
|
90
|
+
}
|
|
91
|
+
return token;
|
|
92
|
+
};
|
|
93
|
+
const smalltalk = {
|
|
94
|
+
name: "smalltalk",
|
|
95
|
+
startState: function() {
|
|
96
|
+
return new State();
|
|
97
|
+
},
|
|
98
|
+
token: function(stream, state) {
|
|
99
|
+
state.userIndent(stream.indentation(), stream.indentUnit);
|
|
100
|
+
if (stream.eatSpace()) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
var token = state.context.next(stream, state.context, state);
|
|
104
|
+
state.context = token.context;
|
|
105
|
+
state.expectVariable = token.eos;
|
|
106
|
+
return token.name;
|
|
107
|
+
},
|
|
108
|
+
blankLine: function(state, indentUnit) {
|
|
109
|
+
state.userIndent(0, indentUnit);
|
|
110
|
+
},
|
|
111
|
+
indent: function(state, textAfter, cx) {
|
|
112
|
+
var i = state.context.next === next && textAfter && textAfter.charAt(0) === "]" ? -1 : state.userIndentationDelta;
|
|
113
|
+
return (state.indentation + i) * cx.unit;
|
|
114
|
+
},
|
|
115
|
+
languageData: {
|
|
116
|
+
indentOnInput: /^\s*\]$/
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
smalltalk
|
|
121
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var isStringChar = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/;
|
|
2
|
+
var isOperatorChar = /[\|\!\+\-\*\?\~\^\&]/;
|
|
3
|
+
var isOperatorString = /^(OR|AND|NOT|TO)$/;
|
|
4
|
+
function isNumber(word) {
|
|
5
|
+
return parseFloat(word).toString() === word;
|
|
6
|
+
}
|
|
7
|
+
function tokenString(quote) {
|
|
8
|
+
return function(stream, state) {
|
|
9
|
+
var escaped = false, next;
|
|
10
|
+
while ((next = stream.next()) != null) {
|
|
11
|
+
if (next == quote && !escaped) break;
|
|
12
|
+
escaped = !escaped && next == "\\";
|
|
13
|
+
}
|
|
14
|
+
if (!escaped) state.tokenize = tokenBase;
|
|
15
|
+
return "string";
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function tokenOperator(operator) {
|
|
19
|
+
return function(stream, state) {
|
|
20
|
+
if (operator == "|")
|
|
21
|
+
stream.eat(/\|/);
|
|
22
|
+
else if (operator == "&")
|
|
23
|
+
stream.eat(/\&/);
|
|
24
|
+
state.tokenize = tokenBase;
|
|
25
|
+
return "operator";
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function tokenWord(ch) {
|
|
29
|
+
return function(stream, state) {
|
|
30
|
+
var word = ch;
|
|
31
|
+
while ((ch = stream.peek()) && ch.match(isStringChar) != null) {
|
|
32
|
+
word += stream.next();
|
|
33
|
+
}
|
|
34
|
+
state.tokenize = tokenBase;
|
|
35
|
+
if (isOperatorString.test(word))
|
|
36
|
+
return "operator";
|
|
37
|
+
else if (isNumber(word))
|
|
38
|
+
return "number";
|
|
39
|
+
else if (stream.peek() == ":")
|
|
40
|
+
return "propertyName";
|
|
41
|
+
else
|
|
42
|
+
return "string";
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function tokenBase(stream, state) {
|
|
46
|
+
var ch = stream.next();
|
|
47
|
+
if (ch == '"')
|
|
48
|
+
state.tokenize = tokenString(ch);
|
|
49
|
+
else if (isOperatorChar.test(ch))
|
|
50
|
+
state.tokenize = tokenOperator(ch);
|
|
51
|
+
else if (isStringChar.test(ch))
|
|
52
|
+
state.tokenize = tokenWord(ch);
|
|
53
|
+
return state.tokenize != tokenBase ? state.tokenize(stream, state) : null;
|
|
54
|
+
}
|
|
55
|
+
const solr = {
|
|
56
|
+
name: "solr",
|
|
57
|
+
startState: function() {
|
|
58
|
+
return {
|
|
59
|
+
tokenize: tokenBase
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
token: function(stream, state) {
|
|
63
|
+
if (stream.eatSpace()) return null;
|
|
64
|
+
return state.tokenize(stream, state);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
solr
|
|
69
|
+
};
|