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,427 @@
|
|
|
1
|
+
function wordRegexp(words2) {
|
|
2
|
+
return new RegExp("^((" + words2.join(")|(") + "))\\b");
|
|
3
|
+
}
|
|
4
|
+
var wordOperators = wordRegexp(["and", "or", "not", "is"]);
|
|
5
|
+
var commonKeywords = [
|
|
6
|
+
"as",
|
|
7
|
+
"assert",
|
|
8
|
+
"break",
|
|
9
|
+
"class",
|
|
10
|
+
"continue",
|
|
11
|
+
"def",
|
|
12
|
+
"del",
|
|
13
|
+
"elif",
|
|
14
|
+
"else",
|
|
15
|
+
"except",
|
|
16
|
+
"finally",
|
|
17
|
+
"for",
|
|
18
|
+
"from",
|
|
19
|
+
"global",
|
|
20
|
+
"if",
|
|
21
|
+
"import",
|
|
22
|
+
"lambda",
|
|
23
|
+
"pass",
|
|
24
|
+
"raise",
|
|
25
|
+
"return",
|
|
26
|
+
"try",
|
|
27
|
+
"while",
|
|
28
|
+
"with",
|
|
29
|
+
"yield",
|
|
30
|
+
"in",
|
|
31
|
+
"False",
|
|
32
|
+
"True"
|
|
33
|
+
];
|
|
34
|
+
var commonBuiltins = [
|
|
35
|
+
"abs",
|
|
36
|
+
"all",
|
|
37
|
+
"any",
|
|
38
|
+
"bin",
|
|
39
|
+
"bool",
|
|
40
|
+
"bytearray",
|
|
41
|
+
"callable",
|
|
42
|
+
"chr",
|
|
43
|
+
"classmethod",
|
|
44
|
+
"compile",
|
|
45
|
+
"complex",
|
|
46
|
+
"delattr",
|
|
47
|
+
"dict",
|
|
48
|
+
"dir",
|
|
49
|
+
"divmod",
|
|
50
|
+
"enumerate",
|
|
51
|
+
"eval",
|
|
52
|
+
"filter",
|
|
53
|
+
"float",
|
|
54
|
+
"format",
|
|
55
|
+
"frozenset",
|
|
56
|
+
"getattr",
|
|
57
|
+
"globals",
|
|
58
|
+
"hasattr",
|
|
59
|
+
"hash",
|
|
60
|
+
"help",
|
|
61
|
+
"hex",
|
|
62
|
+
"id",
|
|
63
|
+
"input",
|
|
64
|
+
"int",
|
|
65
|
+
"isinstance",
|
|
66
|
+
"issubclass",
|
|
67
|
+
"iter",
|
|
68
|
+
"len",
|
|
69
|
+
"list",
|
|
70
|
+
"locals",
|
|
71
|
+
"map",
|
|
72
|
+
"max",
|
|
73
|
+
"memoryview",
|
|
74
|
+
"min",
|
|
75
|
+
"next",
|
|
76
|
+
"object",
|
|
77
|
+
"oct",
|
|
78
|
+
"open",
|
|
79
|
+
"ord",
|
|
80
|
+
"pow",
|
|
81
|
+
"property",
|
|
82
|
+
"range",
|
|
83
|
+
"repr",
|
|
84
|
+
"reversed",
|
|
85
|
+
"round",
|
|
86
|
+
"set",
|
|
87
|
+
"setattr",
|
|
88
|
+
"slice",
|
|
89
|
+
"sorted",
|
|
90
|
+
"staticmethod",
|
|
91
|
+
"str",
|
|
92
|
+
"sum",
|
|
93
|
+
"super",
|
|
94
|
+
"tuple",
|
|
95
|
+
"type",
|
|
96
|
+
"vars",
|
|
97
|
+
"zip",
|
|
98
|
+
"__import__",
|
|
99
|
+
"NotImplemented",
|
|
100
|
+
"Ellipsis",
|
|
101
|
+
"__debug__"
|
|
102
|
+
];
|
|
103
|
+
function top(state) {
|
|
104
|
+
return state.scopes[state.scopes.length - 1];
|
|
105
|
+
}
|
|
106
|
+
function mkPython(parserConf) {
|
|
107
|
+
var ERRORCLASS = "error";
|
|
108
|
+
var delimiters = parserConf.delimiters || parserConf.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.\\]/;
|
|
109
|
+
var operators = [
|
|
110
|
+
parserConf.singleOperators,
|
|
111
|
+
parserConf.doubleOperators,
|
|
112
|
+
parserConf.doubleDelimiters,
|
|
113
|
+
parserConf.tripleDelimiters,
|
|
114
|
+
parserConf.operators || /^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/
|
|
115
|
+
];
|
|
116
|
+
for (var i = 0; i < operators.length; i++) if (!operators[i]) operators.splice(i--, 1);
|
|
117
|
+
var hangingIndent = parserConf.hangingIndent;
|
|
118
|
+
var myKeywords = commonKeywords, myBuiltins = commonBuiltins;
|
|
119
|
+
if (parserConf.extra_keywords != void 0)
|
|
120
|
+
myKeywords = myKeywords.concat(parserConf.extra_keywords);
|
|
121
|
+
if (parserConf.extra_builtins != void 0)
|
|
122
|
+
myBuiltins = myBuiltins.concat(parserConf.extra_builtins);
|
|
123
|
+
var py3 = !(parserConf.version && Number(parserConf.version) < 3);
|
|
124
|
+
if (py3) {
|
|
125
|
+
var identifiers = parserConf.identifiers || /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;
|
|
126
|
+
myKeywords = myKeywords.concat(["nonlocal", "None", "aiter", "anext", "async", "await", "breakpoint", "match", "case"]);
|
|
127
|
+
myBuiltins = myBuiltins.concat(["ascii", "bytes", "exec", "print"]);
|
|
128
|
+
var stringPrefixes = new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`, "i");
|
|
129
|
+
} else {
|
|
130
|
+
var identifiers = parserConf.identifiers || /^[_A-Za-z][_A-Za-z0-9]*/;
|
|
131
|
+
myKeywords = myKeywords.concat(["exec", "print"]);
|
|
132
|
+
myBuiltins = myBuiltins.concat([
|
|
133
|
+
"apply",
|
|
134
|
+
"basestring",
|
|
135
|
+
"buffer",
|
|
136
|
+
"cmp",
|
|
137
|
+
"coerce",
|
|
138
|
+
"execfile",
|
|
139
|
+
"file",
|
|
140
|
+
"intern",
|
|
141
|
+
"long",
|
|
142
|
+
"raw_input",
|
|
143
|
+
"reduce",
|
|
144
|
+
"reload",
|
|
145
|
+
"unichr",
|
|
146
|
+
"unicode",
|
|
147
|
+
"xrange",
|
|
148
|
+
"None"
|
|
149
|
+
]);
|
|
150
|
+
var stringPrefixes = new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`, "i");
|
|
151
|
+
}
|
|
152
|
+
var keywords = wordRegexp(myKeywords);
|
|
153
|
+
var builtins = wordRegexp(myBuiltins);
|
|
154
|
+
function tokenBase(stream, state) {
|
|
155
|
+
var sol = stream.sol() && state.lastToken != "\\";
|
|
156
|
+
if (sol) state.indent = stream.indentation();
|
|
157
|
+
if (sol && top(state).type == "py") {
|
|
158
|
+
var scopeOffset = top(state).offset;
|
|
159
|
+
if (stream.eatSpace()) {
|
|
160
|
+
var lineOffset = stream.indentation();
|
|
161
|
+
if (lineOffset > scopeOffset)
|
|
162
|
+
pushPyScope(stream, state);
|
|
163
|
+
else if (lineOffset < scopeOffset && dedent(stream, state) && stream.peek() != "#")
|
|
164
|
+
state.errorToken = true;
|
|
165
|
+
return null;
|
|
166
|
+
} else {
|
|
167
|
+
var style = tokenBaseInner(stream, state);
|
|
168
|
+
if (scopeOffset > 0 && dedent(stream, state))
|
|
169
|
+
style += " " + ERRORCLASS;
|
|
170
|
+
return style;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return tokenBaseInner(stream, state);
|
|
174
|
+
}
|
|
175
|
+
function tokenBaseInner(stream, state, inFormat) {
|
|
176
|
+
if (stream.eatSpace()) return null;
|
|
177
|
+
if (!inFormat && stream.match(/^#.*/)) return "comment";
|
|
178
|
+
if (stream.match(/^[0-9\.]/, false)) {
|
|
179
|
+
var floatLiteral = false;
|
|
180
|
+
if (stream.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)) {
|
|
181
|
+
floatLiteral = true;
|
|
182
|
+
}
|
|
183
|
+
if (stream.match(/^[\d_]+\.\d*/)) {
|
|
184
|
+
floatLiteral = true;
|
|
185
|
+
}
|
|
186
|
+
if (stream.match(/^\.\d+/)) {
|
|
187
|
+
floatLiteral = true;
|
|
188
|
+
}
|
|
189
|
+
if (floatLiteral) {
|
|
190
|
+
stream.eat(/J/i);
|
|
191
|
+
return "number";
|
|
192
|
+
}
|
|
193
|
+
var intLiteral = false;
|
|
194
|
+
if (stream.match(/^0x[0-9a-f_]+/i)) intLiteral = true;
|
|
195
|
+
if (stream.match(/^0b[01_]+/i)) intLiteral = true;
|
|
196
|
+
if (stream.match(/^0o[0-7_]+/i)) intLiteral = true;
|
|
197
|
+
if (stream.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)) {
|
|
198
|
+
stream.eat(/J/i);
|
|
199
|
+
intLiteral = true;
|
|
200
|
+
}
|
|
201
|
+
if (stream.match(/^0(?![\dx])/i)) intLiteral = true;
|
|
202
|
+
if (intLiteral) {
|
|
203
|
+
stream.eat(/L/i);
|
|
204
|
+
return "number";
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if (stream.match(stringPrefixes)) {
|
|
208
|
+
var isFmtString = stream.current().toLowerCase().indexOf("f") !== -1;
|
|
209
|
+
if (!isFmtString) {
|
|
210
|
+
state.tokenize = tokenStringFactory(stream.current(), state.tokenize);
|
|
211
|
+
return state.tokenize(stream, state);
|
|
212
|
+
} else {
|
|
213
|
+
state.tokenize = formatStringFactory(stream.current(), state.tokenize);
|
|
214
|
+
return state.tokenize(stream, state);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
for (var i2 = 0; i2 < operators.length; i2++)
|
|
218
|
+
if (stream.match(operators[i2])) return "operator";
|
|
219
|
+
if (stream.match(delimiters)) return "punctuation";
|
|
220
|
+
if (state.lastToken == "." && stream.match(identifiers))
|
|
221
|
+
return "property";
|
|
222
|
+
if (stream.match(keywords) || stream.match(wordOperators))
|
|
223
|
+
return "keyword";
|
|
224
|
+
if (stream.match(builtins))
|
|
225
|
+
return "builtin";
|
|
226
|
+
if (stream.match(/^(self|cls)\b/))
|
|
227
|
+
return "self";
|
|
228
|
+
if (stream.match(identifiers)) {
|
|
229
|
+
if (state.lastToken == "def" || state.lastToken == "class")
|
|
230
|
+
return "def";
|
|
231
|
+
return "variable";
|
|
232
|
+
}
|
|
233
|
+
stream.next();
|
|
234
|
+
return inFormat ? null : ERRORCLASS;
|
|
235
|
+
}
|
|
236
|
+
function formatStringFactory(delimiter, tokenOuter) {
|
|
237
|
+
while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
|
|
238
|
+
delimiter = delimiter.substr(1);
|
|
239
|
+
var singleline = delimiter.length == 1;
|
|
240
|
+
var OUTCLASS = "string";
|
|
241
|
+
function tokenNestedExpr(depth) {
|
|
242
|
+
return function(stream, state) {
|
|
243
|
+
var inner = tokenBaseInner(stream, state, true);
|
|
244
|
+
if (inner == "punctuation") {
|
|
245
|
+
if (stream.current() == "{") {
|
|
246
|
+
state.tokenize = tokenNestedExpr(depth + 1);
|
|
247
|
+
} else if (stream.current() == "}") {
|
|
248
|
+
if (depth > 1) state.tokenize = tokenNestedExpr(depth - 1);
|
|
249
|
+
else state.tokenize = tokenString;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return inner;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
function tokenString(stream, state) {
|
|
256
|
+
while (!stream.eol()) {
|
|
257
|
+
stream.eatWhile(/[^'"\{\}\\]/);
|
|
258
|
+
if (stream.eat("\\")) {
|
|
259
|
+
stream.next();
|
|
260
|
+
if (singleline && stream.eol())
|
|
261
|
+
return OUTCLASS;
|
|
262
|
+
} else if (stream.match(delimiter)) {
|
|
263
|
+
state.tokenize = tokenOuter;
|
|
264
|
+
return OUTCLASS;
|
|
265
|
+
} else if (stream.match("{{")) {
|
|
266
|
+
return OUTCLASS;
|
|
267
|
+
} else if (stream.match("{", false)) {
|
|
268
|
+
state.tokenize = tokenNestedExpr(0);
|
|
269
|
+
if (stream.current()) return OUTCLASS;
|
|
270
|
+
else return state.tokenize(stream, state);
|
|
271
|
+
} else if (stream.match("}}")) {
|
|
272
|
+
return OUTCLASS;
|
|
273
|
+
} else if (stream.match("}")) {
|
|
274
|
+
return ERRORCLASS;
|
|
275
|
+
} else {
|
|
276
|
+
stream.eat(/['"]/);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (singleline) {
|
|
280
|
+
if (parserConf.singleLineStringErrors)
|
|
281
|
+
return ERRORCLASS;
|
|
282
|
+
else
|
|
283
|
+
state.tokenize = tokenOuter;
|
|
284
|
+
}
|
|
285
|
+
return OUTCLASS;
|
|
286
|
+
}
|
|
287
|
+
tokenString.isString = true;
|
|
288
|
+
return tokenString;
|
|
289
|
+
}
|
|
290
|
+
function tokenStringFactory(delimiter, tokenOuter) {
|
|
291
|
+
while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
|
|
292
|
+
delimiter = delimiter.substr(1);
|
|
293
|
+
var singleline = delimiter.length == 1;
|
|
294
|
+
var OUTCLASS = "string";
|
|
295
|
+
function tokenString(stream, state) {
|
|
296
|
+
while (!stream.eol()) {
|
|
297
|
+
stream.eatWhile(/[^'"\\]/);
|
|
298
|
+
if (stream.eat("\\")) {
|
|
299
|
+
stream.next();
|
|
300
|
+
if (singleline && stream.eol())
|
|
301
|
+
return OUTCLASS;
|
|
302
|
+
} else if (stream.match(delimiter)) {
|
|
303
|
+
state.tokenize = tokenOuter;
|
|
304
|
+
return OUTCLASS;
|
|
305
|
+
} else {
|
|
306
|
+
stream.eat(/['"]/);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
if (singleline) {
|
|
310
|
+
if (parserConf.singleLineStringErrors)
|
|
311
|
+
return ERRORCLASS;
|
|
312
|
+
else
|
|
313
|
+
state.tokenize = tokenOuter;
|
|
314
|
+
}
|
|
315
|
+
return OUTCLASS;
|
|
316
|
+
}
|
|
317
|
+
tokenString.isString = true;
|
|
318
|
+
return tokenString;
|
|
319
|
+
}
|
|
320
|
+
function pushPyScope(stream, state) {
|
|
321
|
+
while (top(state).type != "py") state.scopes.pop();
|
|
322
|
+
state.scopes.push({
|
|
323
|
+
offset: top(state).offset + stream.indentUnit,
|
|
324
|
+
type: "py",
|
|
325
|
+
align: null
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
function pushBracketScope(stream, state, type) {
|
|
329
|
+
var align = stream.match(/^[\s\[\{\(]*(?:#|$)/, false) ? null : stream.column() + 1;
|
|
330
|
+
state.scopes.push({
|
|
331
|
+
offset: state.indent + (hangingIndent || stream.indentUnit),
|
|
332
|
+
type,
|
|
333
|
+
align
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function dedent(stream, state) {
|
|
337
|
+
var indented = stream.indentation();
|
|
338
|
+
while (state.scopes.length > 1 && top(state).offset > indented) {
|
|
339
|
+
if (top(state).type != "py") return true;
|
|
340
|
+
state.scopes.pop();
|
|
341
|
+
}
|
|
342
|
+
return top(state).offset != indented;
|
|
343
|
+
}
|
|
344
|
+
function tokenLexer(stream, state) {
|
|
345
|
+
if (stream.sol()) {
|
|
346
|
+
state.beginningOfLine = true;
|
|
347
|
+
state.dedent = false;
|
|
348
|
+
}
|
|
349
|
+
var style = state.tokenize(stream, state);
|
|
350
|
+
var current = stream.current();
|
|
351
|
+
if (state.beginningOfLine && current == "@")
|
|
352
|
+
return stream.match(identifiers, false) ? "meta" : py3 ? "operator" : ERRORCLASS;
|
|
353
|
+
if (/\S/.test(current)) state.beginningOfLine = false;
|
|
354
|
+
if ((style == "variable" || style == "builtin") && state.lastToken == "meta")
|
|
355
|
+
style = "meta";
|
|
356
|
+
if (current == "pass" || current == "return")
|
|
357
|
+
state.dedent = true;
|
|
358
|
+
if (current == "lambda") state.lambda = true;
|
|
359
|
+
if (current == ":" && !state.lambda && top(state).type == "py" && stream.match(/^\s*(?:#|$)/, false))
|
|
360
|
+
pushPyScope(stream, state);
|
|
361
|
+
if (current.length == 1 && !/string|comment/.test(style)) {
|
|
362
|
+
var delimiter_index = "[({".indexOf(current);
|
|
363
|
+
if (delimiter_index != -1)
|
|
364
|
+
pushBracketScope(stream, state, "])}".slice(delimiter_index, delimiter_index + 1));
|
|
365
|
+
delimiter_index = "])}".indexOf(current);
|
|
366
|
+
if (delimiter_index != -1) {
|
|
367
|
+
if (top(state).type == current) state.indent = state.scopes.pop().offset - (hangingIndent || stream.indentUnit);
|
|
368
|
+
else return ERRORCLASS;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
if (state.dedent && stream.eol() && top(state).type == "py" && state.scopes.length > 1)
|
|
372
|
+
state.scopes.pop();
|
|
373
|
+
return style;
|
|
374
|
+
}
|
|
375
|
+
return {
|
|
376
|
+
name: "python",
|
|
377
|
+
startState: function() {
|
|
378
|
+
return {
|
|
379
|
+
tokenize: tokenBase,
|
|
380
|
+
scopes: [{ offset: 0, type: "py", align: null }],
|
|
381
|
+
indent: 0,
|
|
382
|
+
lastToken: null,
|
|
383
|
+
lambda: false,
|
|
384
|
+
dedent: 0
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
token: function(stream, state) {
|
|
388
|
+
var addErr = state.errorToken;
|
|
389
|
+
if (addErr) state.errorToken = false;
|
|
390
|
+
var style = tokenLexer(stream, state);
|
|
391
|
+
if (style && style != "comment")
|
|
392
|
+
state.lastToken = style == "keyword" || style == "punctuation" ? stream.current() : style;
|
|
393
|
+
if (style == "punctuation") style = null;
|
|
394
|
+
if (stream.eol() && state.lambda)
|
|
395
|
+
state.lambda = false;
|
|
396
|
+
return addErr ? ERRORCLASS : style;
|
|
397
|
+
},
|
|
398
|
+
indent: function(state, textAfter, cx) {
|
|
399
|
+
if (state.tokenize != tokenBase)
|
|
400
|
+
return state.tokenize.isString ? null : 0;
|
|
401
|
+
var scope = top(state);
|
|
402
|
+
var closing = scope.type == textAfter.charAt(0) || scope.type == "py" && !state.dedent && /^(else:|elif |except |finally:)/.test(textAfter);
|
|
403
|
+
if (scope.align != null)
|
|
404
|
+
return scope.align - (closing ? 1 : 0);
|
|
405
|
+
else
|
|
406
|
+
return scope.offset - (closing ? hangingIndent || cx.unit : 0);
|
|
407
|
+
},
|
|
408
|
+
languageData: {
|
|
409
|
+
autocomplete: commonKeywords.concat(commonBuiltins).concat(["exec", "print"]),
|
|
410
|
+
indentOnInput: /^\s*([\}\]\)]|else:|elif |except |finally:)$/,
|
|
411
|
+
commentTokens: { line: "#" },
|
|
412
|
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "'''", '"""'] }
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
var words = function(str) {
|
|
417
|
+
return str.split(" ");
|
|
418
|
+
};
|
|
419
|
+
const python = mkPython({});
|
|
420
|
+
const cython = mkPython({
|
|
421
|
+
extra_keywords: words("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")
|
|
422
|
+
});
|
|
423
|
+
export {
|
|
424
|
+
cython,
|
|
425
|
+
mkPython,
|
|
426
|
+
python
|
|
427
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
var curPunc, keywords = buildRE(["abs", "acos", "aj", "aj0", "all", "and", "any", "asc", "asin", "asof", "atan", "attr", "avg", "avgs", "bin", "by", "ceiling", "cols", "cor", "cos", "count", "cov", "cross", "csv", "cut", "delete", "deltas", "desc", "dev", "differ", "distinct", "div", "do", "each", "ej", "enlist", "eval", "except", "exec", "exit", "exp", "fby", "fills", "first", "fkeys", "flip", "floor", "from", "get", "getenv", "group", "gtime", "hclose", "hcount", "hdel", "hopen", "hsym", "iasc", "idesc", "if", "ij", "in", "insert", "inter", "inv", "key", "keys", "last", "like", "list", "lj", "load", "log", "lower", "lsq", "ltime", "ltrim", "mavg", "max", "maxs", "mcount", "md5", "mdev", "med", "meta", "min", "mins", "mmax", "mmin", "mmu", "mod", "msum", "neg", "next", "not", "null", "or", "over", "parse", "peach", "pj", "plist", "prd", "prds", "prev", "prior", "rand", "rank", "ratios", "raze", "read0", "read1", "reciprocal", "reverse", "rload", "rotate", "rsave", "rtrim", "save", "scan", "select", "set", "setenv", "show", "signum", "sin", "sqrt", "ss", "ssr", "string", "sublist", "sum", "sums", "sv", "system", "tables", "tan", "til", "trim", "txf", "type", "uj", "ungroup", "union", "update", "upper", "upsert", "value", "var", "view", "views", "vs", "wavg", "where", "where", "while", "within", "wj", "wj1", "wsum", "xasc", "xbar", "xcol", "xcols", "xdesc", "xexp", "xgroup", "xkey", "xlog", "xprev", "xrank"]), E = /[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;
|
|
2
|
+
function buildRE(w) {
|
|
3
|
+
return new RegExp("^(" + w.join("|") + ")$");
|
|
4
|
+
}
|
|
5
|
+
function tokenBase(stream, state) {
|
|
6
|
+
var sol = stream.sol(), c = stream.next();
|
|
7
|
+
curPunc = null;
|
|
8
|
+
if (sol) {
|
|
9
|
+
if (c == "/")
|
|
10
|
+
return (state.tokenize = tokenLineComment)(stream, state);
|
|
11
|
+
else if (c == "\\") {
|
|
12
|
+
if (stream.eol() || /\s/.test(stream.peek()))
|
|
13
|
+
return stream.skipToEnd(), /^\\\s*$/.test(stream.current()) ? (state.tokenize = tokenCommentToEOF)(stream) : state.tokenize = tokenBase, "comment";
|
|
14
|
+
else
|
|
15
|
+
return state.tokenize = tokenBase, "builtin";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (/\s/.test(c))
|
|
19
|
+
return stream.peek() == "/" ? (stream.skipToEnd(), "comment") : "null";
|
|
20
|
+
if (c == '"')
|
|
21
|
+
return (state.tokenize = tokenString)(stream, state);
|
|
22
|
+
if (c == "`")
|
|
23
|
+
return stream.eatWhile(/[A-Za-z\d_:\/.]/), "macroName";
|
|
24
|
+
if ("." == c && /\d/.test(stream.peek()) || /\d/.test(c)) {
|
|
25
|
+
var t = null;
|
|
26
|
+
stream.backUp(1);
|
|
27
|
+
if (stream.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/) || stream.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/) || stream.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/) || stream.match(/^\d+[ptuv]{1}/))
|
|
28
|
+
t = "temporal";
|
|
29
|
+
else if (stream.match(/^0[NwW]{1}/) || stream.match(/^0x[\da-fA-F]*/) || stream.match(/^[01]+[b]{1}/) || stream.match(/^\d+[chijn]{1}/) || stream.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))
|
|
30
|
+
t = "number";
|
|
31
|
+
return t && (!(c = stream.peek()) || E.test(c)) ? t : (stream.next(), "error");
|
|
32
|
+
}
|
|
33
|
+
if (/[A-Za-z]|\./.test(c))
|
|
34
|
+
return stream.eatWhile(/[A-Za-z._\d]/), keywords.test(stream.current()) ? "keyword" : "variable";
|
|
35
|
+
if (/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c))
|
|
36
|
+
return null;
|
|
37
|
+
if (/[{}\(\[\]\)]/.test(c))
|
|
38
|
+
return null;
|
|
39
|
+
return "error";
|
|
40
|
+
}
|
|
41
|
+
function tokenLineComment(stream, state) {
|
|
42
|
+
return stream.skipToEnd(), /^\/\s*$/.test(stream.current()) ? (state.tokenize = tokenBlockComment)(stream, state) : state.tokenize = tokenBase, "comment";
|
|
43
|
+
}
|
|
44
|
+
function tokenBlockComment(stream, state) {
|
|
45
|
+
var f = stream.sol() && stream.peek() == "\\";
|
|
46
|
+
stream.skipToEnd();
|
|
47
|
+
if (f && /^\\\s*$/.test(stream.current()))
|
|
48
|
+
state.tokenize = tokenBase;
|
|
49
|
+
return "comment";
|
|
50
|
+
}
|
|
51
|
+
function tokenCommentToEOF(stream) {
|
|
52
|
+
return stream.skipToEnd(), "comment";
|
|
53
|
+
}
|
|
54
|
+
function tokenString(stream, state) {
|
|
55
|
+
var escaped = false, next, end = false;
|
|
56
|
+
while (next = stream.next()) {
|
|
57
|
+
if (next == '"' && !escaped) {
|
|
58
|
+
end = true;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
escaped = !escaped && next == "\\";
|
|
62
|
+
}
|
|
63
|
+
if (end) state.tokenize = tokenBase;
|
|
64
|
+
return "string";
|
|
65
|
+
}
|
|
66
|
+
function pushContext(state, type, col) {
|
|
67
|
+
state.context = { prev: state.context, indent: state.indent, col, type };
|
|
68
|
+
}
|
|
69
|
+
function popContext(state) {
|
|
70
|
+
state.indent = state.context.indent;
|
|
71
|
+
state.context = state.context.prev;
|
|
72
|
+
}
|
|
73
|
+
const q = {
|
|
74
|
+
name: "q",
|
|
75
|
+
startState: function() {
|
|
76
|
+
return {
|
|
77
|
+
tokenize: tokenBase,
|
|
78
|
+
context: null,
|
|
79
|
+
indent: 0,
|
|
80
|
+
col: 0
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
token: function(stream, state) {
|
|
84
|
+
if (stream.sol()) {
|
|
85
|
+
if (state.context && state.context.align == null)
|
|
86
|
+
state.context.align = false;
|
|
87
|
+
state.indent = stream.indentation();
|
|
88
|
+
}
|
|
89
|
+
var style = state.tokenize(stream, state);
|
|
90
|
+
if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") {
|
|
91
|
+
state.context.align = true;
|
|
92
|
+
}
|
|
93
|
+
if (curPunc == "(") pushContext(state, ")", stream.column());
|
|
94
|
+
else if (curPunc == "[") pushContext(state, "]", stream.column());
|
|
95
|
+
else if (curPunc == "{") pushContext(state, "}", stream.column());
|
|
96
|
+
else if (/[\]\}\)]/.test(curPunc)) {
|
|
97
|
+
while (state.context && state.context.type == "pattern") popContext(state);
|
|
98
|
+
if (state.context && curPunc == state.context.type) popContext(state);
|
|
99
|
+
} else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state);
|
|
100
|
+
else if (/atom|string|variable/.test(style) && state.context) {
|
|
101
|
+
if (/[\}\]]/.test(state.context.type))
|
|
102
|
+
pushContext(state, "pattern", stream.column());
|
|
103
|
+
else if (state.context.type == "pattern" && !state.context.align) {
|
|
104
|
+
state.context.align = true;
|
|
105
|
+
state.context.col = stream.column();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return style;
|
|
109
|
+
},
|
|
110
|
+
indent: function(state, textAfter, cx) {
|
|
111
|
+
var firstChar = textAfter && textAfter.charAt(0);
|
|
112
|
+
var context = state.context;
|
|
113
|
+
if (/[\]\}]/.test(firstChar))
|
|
114
|
+
while (context && context.type == "pattern") context = context.prev;
|
|
115
|
+
var closing = context && firstChar == context.type;
|
|
116
|
+
if (!context)
|
|
117
|
+
return 0;
|
|
118
|
+
else if (context.type == "pattern")
|
|
119
|
+
return context.col;
|
|
120
|
+
else if (context.align)
|
|
121
|
+
return context.col + (closing ? 0 : 1);
|
|
122
|
+
else
|
|
123
|
+
return context.indent + (closing ? 0 : cx.unit);
|
|
124
|
+
},
|
|
125
|
+
languageData: {
|
|
126
|
+
commentTokens: { line: "/" }
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
export {
|
|
130
|
+
q
|
|
131
|
+
};
|