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,514 @@
|
|
|
1
|
+
function kw(type2) {
|
|
2
|
+
return { type: type2, style: "keyword" };
|
|
3
|
+
}
|
|
4
|
+
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c");
|
|
5
|
+
var operator = kw("operator"), atom = { type: "atom", style: "atom" }, attribute = { type: "attribute", style: "attribute" };
|
|
6
|
+
var type = kw("typedef");
|
|
7
|
+
var keywords = {
|
|
8
|
+
"if": A,
|
|
9
|
+
"while": A,
|
|
10
|
+
"else": B,
|
|
11
|
+
"do": B,
|
|
12
|
+
"try": B,
|
|
13
|
+
"return": C,
|
|
14
|
+
"break": C,
|
|
15
|
+
"continue": C,
|
|
16
|
+
"new": C,
|
|
17
|
+
"throw": C,
|
|
18
|
+
"var": kw("var"),
|
|
19
|
+
"inline": attribute,
|
|
20
|
+
"static": attribute,
|
|
21
|
+
"using": kw("import"),
|
|
22
|
+
"public": attribute,
|
|
23
|
+
"private": attribute,
|
|
24
|
+
"cast": kw("cast"),
|
|
25
|
+
"import": kw("import"),
|
|
26
|
+
"macro": kw("macro"),
|
|
27
|
+
"function": kw("function"),
|
|
28
|
+
"catch": kw("catch"),
|
|
29
|
+
"untyped": kw("untyped"),
|
|
30
|
+
"callback": kw("cb"),
|
|
31
|
+
"for": kw("for"),
|
|
32
|
+
"switch": kw("switch"),
|
|
33
|
+
"case": kw("case"),
|
|
34
|
+
"default": kw("default"),
|
|
35
|
+
"in": operator,
|
|
36
|
+
"never": kw("property_access"),
|
|
37
|
+
"trace": kw("trace"),
|
|
38
|
+
"class": type,
|
|
39
|
+
"abstract": type,
|
|
40
|
+
"enum": type,
|
|
41
|
+
"interface": type,
|
|
42
|
+
"typedef": type,
|
|
43
|
+
"extends": type,
|
|
44
|
+
"implements": type,
|
|
45
|
+
"dynamic": type,
|
|
46
|
+
"true": atom,
|
|
47
|
+
"false": atom,
|
|
48
|
+
"null": atom
|
|
49
|
+
};
|
|
50
|
+
var isOperatorChar = /[+\-*&%=<>!?|]/;
|
|
51
|
+
function chain(stream, state, f) {
|
|
52
|
+
state.tokenize = f;
|
|
53
|
+
return f(stream, state);
|
|
54
|
+
}
|
|
55
|
+
function toUnescaped(stream, end) {
|
|
56
|
+
var escaped = false, next;
|
|
57
|
+
while ((next = stream.next()) != null) {
|
|
58
|
+
if (next == end && !escaped)
|
|
59
|
+
return true;
|
|
60
|
+
escaped = !escaped && next == "\\";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
var type, content;
|
|
64
|
+
function ret(tp, style, cont2) {
|
|
65
|
+
type = tp;
|
|
66
|
+
content = cont2;
|
|
67
|
+
return style;
|
|
68
|
+
}
|
|
69
|
+
function haxeTokenBase(stream, state) {
|
|
70
|
+
var ch = stream.next();
|
|
71
|
+
if (ch == '"' || ch == "'") {
|
|
72
|
+
return chain(stream, state, haxeTokenString(ch));
|
|
73
|
+
} else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
|
74
|
+
return ret(ch);
|
|
75
|
+
} else if (ch == "0" && stream.eat(/x/i)) {
|
|
76
|
+
stream.eatWhile(/[\da-f]/i);
|
|
77
|
+
return ret("number", "number");
|
|
78
|
+
} else if (/\d/.test(ch) || ch == "-" && stream.eat(/\d/)) {
|
|
79
|
+
stream.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/);
|
|
80
|
+
return ret("number", "number");
|
|
81
|
+
} else if (state.reAllowed && (ch == "~" && stream.eat(/\//))) {
|
|
82
|
+
toUnescaped(stream, "/");
|
|
83
|
+
stream.eatWhile(/[gimsu]/);
|
|
84
|
+
return ret("regexp", "string.special");
|
|
85
|
+
} else if (ch == "/") {
|
|
86
|
+
if (stream.eat("*")) {
|
|
87
|
+
return chain(stream, state, haxeTokenComment);
|
|
88
|
+
} else if (stream.eat("/")) {
|
|
89
|
+
stream.skipToEnd();
|
|
90
|
+
return ret("comment", "comment");
|
|
91
|
+
} else {
|
|
92
|
+
stream.eatWhile(isOperatorChar);
|
|
93
|
+
return ret("operator", null, stream.current());
|
|
94
|
+
}
|
|
95
|
+
} else if (ch == "#") {
|
|
96
|
+
stream.skipToEnd();
|
|
97
|
+
return ret("conditional", "meta");
|
|
98
|
+
} else if (ch == "@") {
|
|
99
|
+
stream.eat(/:/);
|
|
100
|
+
stream.eatWhile(/[\w_]/);
|
|
101
|
+
return ret("metadata", "meta");
|
|
102
|
+
} else if (isOperatorChar.test(ch)) {
|
|
103
|
+
stream.eatWhile(isOperatorChar);
|
|
104
|
+
return ret("operator", null, stream.current());
|
|
105
|
+
} else {
|
|
106
|
+
var word;
|
|
107
|
+
if (/[A-Z]/.test(ch)) {
|
|
108
|
+
stream.eatWhile(/[\w_<>]/);
|
|
109
|
+
word = stream.current();
|
|
110
|
+
return ret("type", "type", word);
|
|
111
|
+
} else {
|
|
112
|
+
stream.eatWhile(/[\w_]/);
|
|
113
|
+
var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word];
|
|
114
|
+
return known && state.kwAllowed ? ret(known.type, known.style, word) : ret("variable", "variable", word);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function haxeTokenString(quote) {
|
|
119
|
+
return function(stream, state) {
|
|
120
|
+
if (toUnescaped(stream, quote))
|
|
121
|
+
state.tokenize = haxeTokenBase;
|
|
122
|
+
return ret("string", "string");
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function haxeTokenComment(stream, state) {
|
|
126
|
+
var maybeEnd = false, ch;
|
|
127
|
+
while (ch = stream.next()) {
|
|
128
|
+
if (ch == "/" && maybeEnd) {
|
|
129
|
+
state.tokenize = haxeTokenBase;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
maybeEnd = ch == "*";
|
|
133
|
+
}
|
|
134
|
+
return ret("comment", "comment");
|
|
135
|
+
}
|
|
136
|
+
var atomicTypes = { "atom": true, "number": true, "variable": true, "string": true, "regexp": true };
|
|
137
|
+
function HaxeLexical(indented, column, type2, align, prev, info) {
|
|
138
|
+
this.indented = indented;
|
|
139
|
+
this.column = column;
|
|
140
|
+
this.type = type2;
|
|
141
|
+
this.prev = prev;
|
|
142
|
+
this.info = info;
|
|
143
|
+
if (align != null) this.align = align;
|
|
144
|
+
}
|
|
145
|
+
function inScope(state, varname) {
|
|
146
|
+
for (var v = state.localVars; v; v = v.next)
|
|
147
|
+
if (v.name == varname) return true;
|
|
148
|
+
}
|
|
149
|
+
function parseHaxe(state, style, type2, content2, stream) {
|
|
150
|
+
var cc = state.cc;
|
|
151
|
+
cx.state = state;
|
|
152
|
+
cx.stream = stream;
|
|
153
|
+
cx.marked = null, cx.cc = cc;
|
|
154
|
+
if (!state.lexical.hasOwnProperty("align"))
|
|
155
|
+
state.lexical.align = true;
|
|
156
|
+
while (true) {
|
|
157
|
+
var combinator = cc.length ? cc.pop() : statement;
|
|
158
|
+
if (combinator(type2, content2)) {
|
|
159
|
+
while (cc.length && cc[cc.length - 1].lex)
|
|
160
|
+
cc.pop()();
|
|
161
|
+
if (cx.marked) return cx.marked;
|
|
162
|
+
if (type2 == "variable" && inScope(state, content2)) return "variableName.local";
|
|
163
|
+
if (type2 == "variable" && imported(state, content2)) return "variableName.special";
|
|
164
|
+
return style;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function imported(state, typename) {
|
|
169
|
+
if (/[a-z]/.test(typename.charAt(0)))
|
|
170
|
+
return false;
|
|
171
|
+
var len = state.importedtypes.length;
|
|
172
|
+
for (var i = 0; i < len; i++)
|
|
173
|
+
if (state.importedtypes[i] == typename) return true;
|
|
174
|
+
}
|
|
175
|
+
function registerimport(importname) {
|
|
176
|
+
var state = cx.state;
|
|
177
|
+
for (var t = state.importedtypes; t; t = t.next)
|
|
178
|
+
if (t.name == importname) return;
|
|
179
|
+
state.importedtypes = { name: importname, next: state.importedtypes };
|
|
180
|
+
}
|
|
181
|
+
var cx = { state: null, marked: null, cc: null };
|
|
182
|
+
function pass() {
|
|
183
|
+
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
|
184
|
+
}
|
|
185
|
+
function cont() {
|
|
186
|
+
pass.apply(null, arguments);
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
function inList(name, list) {
|
|
190
|
+
for (var v = list; v; v = v.next)
|
|
191
|
+
if (v.name == name) return true;
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
function register(varname) {
|
|
195
|
+
var state = cx.state;
|
|
196
|
+
if (state.context) {
|
|
197
|
+
cx.marked = "def";
|
|
198
|
+
if (inList(varname, state.localVars)) return;
|
|
199
|
+
state.localVars = { name: varname, next: state.localVars };
|
|
200
|
+
} else if (state.globalVars) {
|
|
201
|
+
if (inList(varname, state.globalVars)) return;
|
|
202
|
+
state.globalVars = { name: varname, next: state.globalVars };
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
var defaultVars = { name: "this", next: null };
|
|
206
|
+
function pushcontext() {
|
|
207
|
+
if (!cx.state.context) cx.state.localVars = defaultVars;
|
|
208
|
+
cx.state.context = { prev: cx.state.context, vars: cx.state.localVars };
|
|
209
|
+
}
|
|
210
|
+
function popcontext() {
|
|
211
|
+
cx.state.localVars = cx.state.context.vars;
|
|
212
|
+
cx.state.context = cx.state.context.prev;
|
|
213
|
+
}
|
|
214
|
+
popcontext.lex = true;
|
|
215
|
+
function pushlex(type2, info) {
|
|
216
|
+
var result = function() {
|
|
217
|
+
var state = cx.state;
|
|
218
|
+
state.lexical = new HaxeLexical(state.indented, cx.stream.column(), type2, null, state.lexical, info);
|
|
219
|
+
};
|
|
220
|
+
result.lex = true;
|
|
221
|
+
return result;
|
|
222
|
+
}
|
|
223
|
+
function poplex() {
|
|
224
|
+
var state = cx.state;
|
|
225
|
+
if (state.lexical.prev) {
|
|
226
|
+
if (state.lexical.type == ")")
|
|
227
|
+
state.indented = state.lexical.indented;
|
|
228
|
+
state.lexical = state.lexical.prev;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
poplex.lex = true;
|
|
232
|
+
function expect(wanted) {
|
|
233
|
+
function f(type2) {
|
|
234
|
+
if (type2 == wanted) return cont();
|
|
235
|
+
else if (wanted == ";") return pass();
|
|
236
|
+
else return cont(f);
|
|
237
|
+
}
|
|
238
|
+
return f;
|
|
239
|
+
}
|
|
240
|
+
function statement(type2) {
|
|
241
|
+
if (type2 == "@") return cont(metadef);
|
|
242
|
+
if (type2 == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex);
|
|
243
|
+
if (type2 == "keyword a") return cont(pushlex("form"), expression, statement, poplex);
|
|
244
|
+
if (type2 == "keyword b") return cont(pushlex("form"), statement, poplex);
|
|
245
|
+
if (type2 == "{") return cont(pushlex("}"), pushcontext, block, poplex, popcontext);
|
|
246
|
+
if (type2 == ";") return cont();
|
|
247
|
+
if (type2 == "attribute") return cont(maybeattribute);
|
|
248
|
+
if (type2 == "function") return cont(functiondef);
|
|
249
|
+
if (type2 == "for") return cont(
|
|
250
|
+
pushlex("form"),
|
|
251
|
+
expect("("),
|
|
252
|
+
pushlex(")"),
|
|
253
|
+
forspec1,
|
|
254
|
+
expect(")"),
|
|
255
|
+
poplex,
|
|
256
|
+
statement,
|
|
257
|
+
poplex
|
|
258
|
+
);
|
|
259
|
+
if (type2 == "variable") return cont(pushlex("stat"), maybelabel);
|
|
260
|
+
if (type2 == "switch") return cont(
|
|
261
|
+
pushlex("form"),
|
|
262
|
+
expression,
|
|
263
|
+
pushlex("}", "switch"),
|
|
264
|
+
expect("{"),
|
|
265
|
+
block,
|
|
266
|
+
poplex,
|
|
267
|
+
poplex
|
|
268
|
+
);
|
|
269
|
+
if (type2 == "case") return cont(expression, expect(":"));
|
|
270
|
+
if (type2 == "default") return cont(expect(":"));
|
|
271
|
+
if (type2 == "catch") return cont(
|
|
272
|
+
pushlex("form"),
|
|
273
|
+
pushcontext,
|
|
274
|
+
expect("("),
|
|
275
|
+
funarg,
|
|
276
|
+
expect(")"),
|
|
277
|
+
statement,
|
|
278
|
+
poplex,
|
|
279
|
+
popcontext
|
|
280
|
+
);
|
|
281
|
+
if (type2 == "import") return cont(importdef, expect(";"));
|
|
282
|
+
if (type2 == "typedef") return cont(typedef);
|
|
283
|
+
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
|
284
|
+
}
|
|
285
|
+
function expression(type2) {
|
|
286
|
+
if (atomicTypes.hasOwnProperty(type2)) return cont(maybeoperator);
|
|
287
|
+
if (type2 == "type") return cont(maybeoperator);
|
|
288
|
+
if (type2 == "function") return cont(functiondef);
|
|
289
|
+
if (type2 == "keyword c") return cont(maybeexpression);
|
|
290
|
+
if (type2 == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator);
|
|
291
|
+
if (type2 == "operator") return cont(expression);
|
|
292
|
+
if (type2 == "[") return cont(pushlex("]"), commasep(maybeexpression, "]"), poplex, maybeoperator);
|
|
293
|
+
if (type2 == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);
|
|
294
|
+
return cont();
|
|
295
|
+
}
|
|
296
|
+
function maybeexpression(type2) {
|
|
297
|
+
if (type2.match(/[;\}\)\],]/)) return pass();
|
|
298
|
+
return pass(expression);
|
|
299
|
+
}
|
|
300
|
+
function maybeoperator(type2, value) {
|
|
301
|
+
if (type2 == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);
|
|
302
|
+
if (type2 == "operator" || type2 == ":") return cont(expression);
|
|
303
|
+
if (type2 == ";") return;
|
|
304
|
+
if (type2 == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator);
|
|
305
|
+
if (type2 == ".") return cont(property, maybeoperator);
|
|
306
|
+
if (type2 == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
|
|
307
|
+
}
|
|
308
|
+
function maybeattribute(type2) {
|
|
309
|
+
if (type2 == "attribute") return cont(maybeattribute);
|
|
310
|
+
if (type2 == "function") return cont(functiondef);
|
|
311
|
+
if (type2 == "var") return cont(vardef1);
|
|
312
|
+
}
|
|
313
|
+
function metadef(type2) {
|
|
314
|
+
if (type2 == ":") return cont(metadef);
|
|
315
|
+
if (type2 == "variable") return cont(metadef);
|
|
316
|
+
if (type2 == "(") return cont(pushlex(")"), commasep(metaargs, ")"), poplex, statement);
|
|
317
|
+
}
|
|
318
|
+
function metaargs(type2) {
|
|
319
|
+
if (type2 == "variable") return cont();
|
|
320
|
+
}
|
|
321
|
+
function importdef(type2, value) {
|
|
322
|
+
if (type2 == "variable" && /[A-Z]/.test(value.charAt(0))) {
|
|
323
|
+
registerimport(value);
|
|
324
|
+
return cont();
|
|
325
|
+
} else if (type2 == "variable" || type2 == "property" || type2 == "." || value == "*") return cont(importdef);
|
|
326
|
+
}
|
|
327
|
+
function typedef(type2, value) {
|
|
328
|
+
if (type2 == "variable" && /[A-Z]/.test(value.charAt(0))) {
|
|
329
|
+
registerimport(value);
|
|
330
|
+
return cont();
|
|
331
|
+
} else if (type2 == "type" && /[A-Z]/.test(value.charAt(0))) {
|
|
332
|
+
return cont();
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
function maybelabel(type2) {
|
|
336
|
+
if (type2 == ":") return cont(poplex, statement);
|
|
337
|
+
return pass(maybeoperator, expect(";"), poplex);
|
|
338
|
+
}
|
|
339
|
+
function property(type2) {
|
|
340
|
+
if (type2 == "variable") {
|
|
341
|
+
cx.marked = "property";
|
|
342
|
+
return cont();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function objprop(type2) {
|
|
346
|
+
if (type2 == "variable") cx.marked = "property";
|
|
347
|
+
if (atomicTypes.hasOwnProperty(type2)) return cont(expect(":"), expression);
|
|
348
|
+
}
|
|
349
|
+
function commasep(what, end) {
|
|
350
|
+
function proceed(type2) {
|
|
351
|
+
if (type2 == ",") return cont(what, proceed);
|
|
352
|
+
if (type2 == end) return cont();
|
|
353
|
+
return cont(expect(end));
|
|
354
|
+
}
|
|
355
|
+
return function(type2) {
|
|
356
|
+
if (type2 == end) return cont();
|
|
357
|
+
else return pass(what, proceed);
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
function block(type2) {
|
|
361
|
+
if (type2 == "}") return cont();
|
|
362
|
+
return pass(statement, block);
|
|
363
|
+
}
|
|
364
|
+
function vardef1(type2, value) {
|
|
365
|
+
if (type2 == "variable") {
|
|
366
|
+
register(value);
|
|
367
|
+
return cont(typeuse, vardef2);
|
|
368
|
+
}
|
|
369
|
+
return cont();
|
|
370
|
+
}
|
|
371
|
+
function vardef2(type2, value) {
|
|
372
|
+
if (value == "=") return cont(expression, vardef2);
|
|
373
|
+
if (type2 == ",") return cont(vardef1);
|
|
374
|
+
}
|
|
375
|
+
function forspec1(type2, value) {
|
|
376
|
+
if (type2 == "variable") {
|
|
377
|
+
register(value);
|
|
378
|
+
return cont(forin, expression);
|
|
379
|
+
} else {
|
|
380
|
+
return pass();
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
function forin(_type, value) {
|
|
384
|
+
if (value == "in") return cont();
|
|
385
|
+
}
|
|
386
|
+
function functiondef(type2, value) {
|
|
387
|
+
if (type2 == "variable" || type2 == "type") {
|
|
388
|
+
register(value);
|
|
389
|
+
return cont(functiondef);
|
|
390
|
+
}
|
|
391
|
+
if (value == "new") return cont(functiondef);
|
|
392
|
+
if (type2 == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, typeuse, statement, popcontext);
|
|
393
|
+
}
|
|
394
|
+
function typeuse(type2) {
|
|
395
|
+
if (type2 == ":") return cont(typestring);
|
|
396
|
+
}
|
|
397
|
+
function typestring(type2) {
|
|
398
|
+
if (type2 == "type") return cont();
|
|
399
|
+
if (type2 == "variable") return cont();
|
|
400
|
+
if (type2 == "{") return cont(pushlex("}"), commasep(typeprop, "}"), poplex);
|
|
401
|
+
}
|
|
402
|
+
function typeprop(type2) {
|
|
403
|
+
if (type2 == "variable") return cont(typeuse);
|
|
404
|
+
}
|
|
405
|
+
function funarg(type2, value) {
|
|
406
|
+
if (type2 == "variable") {
|
|
407
|
+
register(value);
|
|
408
|
+
return cont(typeuse);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
const haxe = {
|
|
412
|
+
name: "haxe",
|
|
413
|
+
startState: function(indentUnit) {
|
|
414
|
+
var defaulttypes = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"];
|
|
415
|
+
var state = {
|
|
416
|
+
tokenize: haxeTokenBase,
|
|
417
|
+
reAllowed: true,
|
|
418
|
+
kwAllowed: true,
|
|
419
|
+
cc: [],
|
|
420
|
+
lexical: new HaxeLexical(-indentUnit, 0, "block", false),
|
|
421
|
+
importedtypes: defaulttypes,
|
|
422
|
+
context: null,
|
|
423
|
+
indented: 0
|
|
424
|
+
};
|
|
425
|
+
return state;
|
|
426
|
+
},
|
|
427
|
+
token: function(stream, state) {
|
|
428
|
+
if (stream.sol()) {
|
|
429
|
+
if (!state.lexical.hasOwnProperty("align"))
|
|
430
|
+
state.lexical.align = false;
|
|
431
|
+
state.indented = stream.indentation();
|
|
432
|
+
}
|
|
433
|
+
if (stream.eatSpace()) return null;
|
|
434
|
+
var style = state.tokenize(stream, state);
|
|
435
|
+
if (type == "comment") return style;
|
|
436
|
+
state.reAllowed = !!(type == "operator" || type == "keyword c" || type.match(/^[\[{}\(,;:]$/));
|
|
437
|
+
state.kwAllowed = type != ".";
|
|
438
|
+
return parseHaxe(state, style, type, content, stream);
|
|
439
|
+
},
|
|
440
|
+
indent: function(state, textAfter, cx2) {
|
|
441
|
+
if (state.tokenize != haxeTokenBase) return 0;
|
|
442
|
+
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical;
|
|
443
|
+
if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev;
|
|
444
|
+
var type2 = lexical.type, closing = firstChar == type2;
|
|
445
|
+
if (type2 == "vardef") return lexical.indented + 4;
|
|
446
|
+
else if (type2 == "form" && firstChar == "{") return lexical.indented;
|
|
447
|
+
else if (type2 == "stat" || type2 == "form") return lexical.indented + cx2.unit;
|
|
448
|
+
else if (lexical.info == "switch" && !closing)
|
|
449
|
+
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx2.unit : 2 * cx2.unit);
|
|
450
|
+
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
|
451
|
+
else return lexical.indented + (closing ? 0 : cx2.unit);
|
|
452
|
+
},
|
|
453
|
+
languageData: {
|
|
454
|
+
indentOnInput: /^\s*[{}]$/,
|
|
455
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
const hxml = {
|
|
459
|
+
name: "hxml",
|
|
460
|
+
startState: function() {
|
|
461
|
+
return {
|
|
462
|
+
define: false,
|
|
463
|
+
inString: false
|
|
464
|
+
};
|
|
465
|
+
},
|
|
466
|
+
token: function(stream, state) {
|
|
467
|
+
var ch = stream.peek();
|
|
468
|
+
var sol = stream.sol();
|
|
469
|
+
if (ch == "#") {
|
|
470
|
+
stream.skipToEnd();
|
|
471
|
+
return "comment";
|
|
472
|
+
}
|
|
473
|
+
if (sol && ch == "-") {
|
|
474
|
+
var style = "variable-2";
|
|
475
|
+
stream.eat(/-/);
|
|
476
|
+
if (stream.peek() == "-") {
|
|
477
|
+
stream.eat(/-/);
|
|
478
|
+
style = "keyword a";
|
|
479
|
+
}
|
|
480
|
+
if (stream.peek() == "D") {
|
|
481
|
+
stream.eat(/[D]/);
|
|
482
|
+
style = "keyword c";
|
|
483
|
+
state.define = true;
|
|
484
|
+
}
|
|
485
|
+
stream.eatWhile(/[A-Z]/i);
|
|
486
|
+
return style;
|
|
487
|
+
}
|
|
488
|
+
var ch = stream.peek();
|
|
489
|
+
if (state.inString == false && ch == "'") {
|
|
490
|
+
state.inString = true;
|
|
491
|
+
stream.next();
|
|
492
|
+
}
|
|
493
|
+
if (state.inString == true) {
|
|
494
|
+
if (stream.skipTo("'")) ;
|
|
495
|
+
else {
|
|
496
|
+
stream.skipToEnd();
|
|
497
|
+
}
|
|
498
|
+
if (stream.peek() == "'") {
|
|
499
|
+
stream.next();
|
|
500
|
+
state.inString = false;
|
|
501
|
+
}
|
|
502
|
+
return "string";
|
|
503
|
+
}
|
|
504
|
+
stream.next();
|
|
505
|
+
return null;
|
|
506
|
+
},
|
|
507
|
+
languageData: {
|
|
508
|
+
commentTokens: { line: "#" }
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
export {
|
|
512
|
+
haxe,
|
|
513
|
+
hxml
|
|
514
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
function failFirstLine(stream, state) {
|
|
2
|
+
stream.skipToEnd();
|
|
3
|
+
state.cur = header;
|
|
4
|
+
return "error";
|
|
5
|
+
}
|
|
6
|
+
function start(stream, state) {
|
|
7
|
+
if (stream.match(/^HTTP\/\d\.\d/)) {
|
|
8
|
+
state.cur = responseStatusCode;
|
|
9
|
+
return "keyword";
|
|
10
|
+
} else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) {
|
|
11
|
+
state.cur = requestPath;
|
|
12
|
+
return "keyword";
|
|
13
|
+
} else {
|
|
14
|
+
return failFirstLine(stream, state);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function responseStatusCode(stream, state) {
|
|
18
|
+
var code = stream.match(/^\d+/);
|
|
19
|
+
if (!code) return failFirstLine(stream, state);
|
|
20
|
+
state.cur = responseStatusText;
|
|
21
|
+
var status = Number(code[0]);
|
|
22
|
+
if (status >= 100 && status < 400) {
|
|
23
|
+
return "atom";
|
|
24
|
+
} else {
|
|
25
|
+
return "error";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function responseStatusText(stream, state) {
|
|
29
|
+
stream.skipToEnd();
|
|
30
|
+
state.cur = header;
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
function requestPath(stream, state) {
|
|
34
|
+
stream.eatWhile(/\S/);
|
|
35
|
+
state.cur = requestProtocol;
|
|
36
|
+
return "string.special";
|
|
37
|
+
}
|
|
38
|
+
function requestProtocol(stream, state) {
|
|
39
|
+
if (stream.match(/^HTTP\/\d\.\d$/)) {
|
|
40
|
+
state.cur = header;
|
|
41
|
+
return "keyword";
|
|
42
|
+
} else {
|
|
43
|
+
return failFirstLine(stream, state);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function header(stream) {
|
|
47
|
+
if (stream.sol() && !stream.eat(/[ \t]/)) {
|
|
48
|
+
if (stream.match(/^.*?:/)) {
|
|
49
|
+
return "atom";
|
|
50
|
+
} else {
|
|
51
|
+
stream.skipToEnd();
|
|
52
|
+
return "error";
|
|
53
|
+
}
|
|
54
|
+
} else {
|
|
55
|
+
stream.skipToEnd();
|
|
56
|
+
return "string";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function body(stream) {
|
|
60
|
+
stream.skipToEnd();
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
const http = {
|
|
64
|
+
name: "http",
|
|
65
|
+
token: function(stream, state) {
|
|
66
|
+
var cur = state.cur;
|
|
67
|
+
if (cur != header && cur != body && stream.eatSpace()) return null;
|
|
68
|
+
return cur(stream, state);
|
|
69
|
+
},
|
|
70
|
+
blankLine: function(state) {
|
|
71
|
+
state.cur = body;
|
|
72
|
+
},
|
|
73
|
+
startState: function() {
|
|
74
|
+
return { cur: start };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
http
|
|
79
|
+
};
|