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,200 @@
|
|
|
1
|
+
function wordRegexp(words) {
|
|
2
|
+
return new RegExp("^((" + words.join(")|(") + "))\\b");
|
|
3
|
+
}
|
|
4
|
+
var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");
|
|
5
|
+
var singleDelimiters = new RegExp("^[\\(\\[\\{\\},:=;\\.]");
|
|
6
|
+
var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");
|
|
7
|
+
var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");
|
|
8
|
+
var tripleDelimiters = new RegExp("^((>>=)|(<<=))");
|
|
9
|
+
var expressionEnd = new RegExp("^[\\]\\)]");
|
|
10
|
+
var identifiers = new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");
|
|
11
|
+
var builtins = wordRegexp([
|
|
12
|
+
"error",
|
|
13
|
+
"eval",
|
|
14
|
+
"function",
|
|
15
|
+
"abs",
|
|
16
|
+
"acos",
|
|
17
|
+
"atan",
|
|
18
|
+
"asin",
|
|
19
|
+
"cos",
|
|
20
|
+
"cosh",
|
|
21
|
+
"exp",
|
|
22
|
+
"log",
|
|
23
|
+
"prod",
|
|
24
|
+
"sum",
|
|
25
|
+
"log10",
|
|
26
|
+
"max",
|
|
27
|
+
"min",
|
|
28
|
+
"sign",
|
|
29
|
+
"sin",
|
|
30
|
+
"sinh",
|
|
31
|
+
"sqrt",
|
|
32
|
+
"tan",
|
|
33
|
+
"reshape",
|
|
34
|
+
"break",
|
|
35
|
+
"zeros",
|
|
36
|
+
"default",
|
|
37
|
+
"margin",
|
|
38
|
+
"round",
|
|
39
|
+
"ones",
|
|
40
|
+
"rand",
|
|
41
|
+
"syn",
|
|
42
|
+
"ceil",
|
|
43
|
+
"floor",
|
|
44
|
+
"size",
|
|
45
|
+
"clear",
|
|
46
|
+
"zeros",
|
|
47
|
+
"eye",
|
|
48
|
+
"mean",
|
|
49
|
+
"std",
|
|
50
|
+
"cov",
|
|
51
|
+
"det",
|
|
52
|
+
"eig",
|
|
53
|
+
"inv",
|
|
54
|
+
"norm",
|
|
55
|
+
"rank",
|
|
56
|
+
"trace",
|
|
57
|
+
"expm",
|
|
58
|
+
"logm",
|
|
59
|
+
"sqrtm",
|
|
60
|
+
"linspace",
|
|
61
|
+
"plot",
|
|
62
|
+
"title",
|
|
63
|
+
"xlabel",
|
|
64
|
+
"ylabel",
|
|
65
|
+
"legend",
|
|
66
|
+
"text",
|
|
67
|
+
"grid",
|
|
68
|
+
"meshgrid",
|
|
69
|
+
"mesh",
|
|
70
|
+
"num2str",
|
|
71
|
+
"fft",
|
|
72
|
+
"ifft",
|
|
73
|
+
"arrayfun",
|
|
74
|
+
"cellfun",
|
|
75
|
+
"input",
|
|
76
|
+
"fliplr",
|
|
77
|
+
"flipud",
|
|
78
|
+
"ismember"
|
|
79
|
+
]);
|
|
80
|
+
var keywords = wordRegexp([
|
|
81
|
+
"return",
|
|
82
|
+
"case",
|
|
83
|
+
"switch",
|
|
84
|
+
"else",
|
|
85
|
+
"elseif",
|
|
86
|
+
"end",
|
|
87
|
+
"endif",
|
|
88
|
+
"endfunction",
|
|
89
|
+
"if",
|
|
90
|
+
"otherwise",
|
|
91
|
+
"do",
|
|
92
|
+
"for",
|
|
93
|
+
"while",
|
|
94
|
+
"try",
|
|
95
|
+
"catch",
|
|
96
|
+
"classdef",
|
|
97
|
+
"properties",
|
|
98
|
+
"events",
|
|
99
|
+
"methods",
|
|
100
|
+
"global",
|
|
101
|
+
"persistent",
|
|
102
|
+
"endfor",
|
|
103
|
+
"endwhile",
|
|
104
|
+
"printf",
|
|
105
|
+
"sprintf",
|
|
106
|
+
"disp",
|
|
107
|
+
"until",
|
|
108
|
+
"continue",
|
|
109
|
+
"pkg"
|
|
110
|
+
]);
|
|
111
|
+
function tokenTranspose(stream, state) {
|
|
112
|
+
if (!stream.sol() && stream.peek() === "'") {
|
|
113
|
+
stream.next();
|
|
114
|
+
state.tokenize = tokenBase;
|
|
115
|
+
return "operator";
|
|
116
|
+
}
|
|
117
|
+
state.tokenize = tokenBase;
|
|
118
|
+
return tokenBase(stream, state);
|
|
119
|
+
}
|
|
120
|
+
function tokenComment(stream, state) {
|
|
121
|
+
if (stream.match(/^.*%}/)) {
|
|
122
|
+
state.tokenize = tokenBase;
|
|
123
|
+
return "comment";
|
|
124
|
+
}
|
|
125
|
+
stream.skipToEnd();
|
|
126
|
+
return "comment";
|
|
127
|
+
}
|
|
128
|
+
function tokenBase(stream, state) {
|
|
129
|
+
if (stream.eatSpace()) return null;
|
|
130
|
+
if (stream.match("%{")) {
|
|
131
|
+
state.tokenize = tokenComment;
|
|
132
|
+
stream.skipToEnd();
|
|
133
|
+
return "comment";
|
|
134
|
+
}
|
|
135
|
+
if (stream.match(/^[%#]/)) {
|
|
136
|
+
stream.skipToEnd();
|
|
137
|
+
return "comment";
|
|
138
|
+
}
|
|
139
|
+
if (stream.match(/^[0-9\.+-]/, false)) {
|
|
140
|
+
if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) {
|
|
141
|
+
stream.tokenize = tokenBase;
|
|
142
|
+
return "number";
|
|
143
|
+
}
|
|
144
|
+
if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) {
|
|
145
|
+
return "number";
|
|
146
|
+
}
|
|
147
|
+
if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) {
|
|
148
|
+
return "number";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if (stream.match(wordRegexp(["nan", "NaN", "inf", "Inf"]))) {
|
|
152
|
+
return "number";
|
|
153
|
+
}
|
|
154
|
+
var m = stream.match(/^"(?:[^"]|"")*("|$)/) || stream.match(/^'(?:[^']|'')*('|$)/);
|
|
155
|
+
if (m) {
|
|
156
|
+
return m[1] ? "string" : "error";
|
|
157
|
+
}
|
|
158
|
+
if (stream.match(keywords)) {
|
|
159
|
+
return "keyword";
|
|
160
|
+
}
|
|
161
|
+
if (stream.match(builtins)) {
|
|
162
|
+
return "builtin";
|
|
163
|
+
}
|
|
164
|
+
if (stream.match(identifiers)) {
|
|
165
|
+
return "variable";
|
|
166
|
+
}
|
|
167
|
+
if (stream.match(singleOperators) || stream.match(doubleOperators)) {
|
|
168
|
+
return "operator";
|
|
169
|
+
}
|
|
170
|
+
if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
if (stream.match(expressionEnd)) {
|
|
174
|
+
state.tokenize = tokenTranspose;
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
stream.next();
|
|
178
|
+
return "error";
|
|
179
|
+
}
|
|
180
|
+
const octave = {
|
|
181
|
+
name: "octave",
|
|
182
|
+
startState: function() {
|
|
183
|
+
return {
|
|
184
|
+
tokenize: tokenBase
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
token: function(stream, state) {
|
|
188
|
+
var style = state.tokenize(stream, state);
|
|
189
|
+
if (style === "number" || style === "variable") {
|
|
190
|
+
state.tokenize = tokenTranspose;
|
|
191
|
+
}
|
|
192
|
+
return style;
|
|
193
|
+
},
|
|
194
|
+
languageData: {
|
|
195
|
+
commentTokens: { line: "%" }
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
export {
|
|
199
|
+
octave
|
|
200
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { i as initRange } from "./init-ZxktEp_H.js";
|
|
2
|
+
class InternMap extends Map {
|
|
3
|
+
constructor(entries, key = keyof) {
|
|
4
|
+
super();
|
|
5
|
+
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key } });
|
|
6
|
+
if (entries != null) for (const [key2, value] of entries) this.set(key2, value);
|
|
7
|
+
}
|
|
8
|
+
get(key) {
|
|
9
|
+
return super.get(intern_get(this, key));
|
|
10
|
+
}
|
|
11
|
+
has(key) {
|
|
12
|
+
return super.has(intern_get(this, key));
|
|
13
|
+
}
|
|
14
|
+
set(key, value) {
|
|
15
|
+
return super.set(intern_set(this, key), value);
|
|
16
|
+
}
|
|
17
|
+
delete(key) {
|
|
18
|
+
return super.delete(intern_delete(this, key));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function intern_get({ _intern, _key }, value) {
|
|
22
|
+
const key = _key(value);
|
|
23
|
+
return _intern.has(key) ? _intern.get(key) : value;
|
|
24
|
+
}
|
|
25
|
+
function intern_set({ _intern, _key }, value) {
|
|
26
|
+
const key = _key(value);
|
|
27
|
+
if (_intern.has(key)) return _intern.get(key);
|
|
28
|
+
_intern.set(key, value);
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
function intern_delete({ _intern, _key }, value) {
|
|
32
|
+
const key = _key(value);
|
|
33
|
+
if (_intern.has(key)) {
|
|
34
|
+
value = _intern.get(key);
|
|
35
|
+
_intern.delete(key);
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
function keyof(value) {
|
|
40
|
+
return value !== null && typeof value === "object" ? value.valueOf() : value;
|
|
41
|
+
}
|
|
42
|
+
const implicit = Symbol("implicit");
|
|
43
|
+
function ordinal() {
|
|
44
|
+
var index = new InternMap(), domain = [], range = [], unknown = implicit;
|
|
45
|
+
function scale(d) {
|
|
46
|
+
let i = index.get(d);
|
|
47
|
+
if (i === void 0) {
|
|
48
|
+
if (unknown !== implicit) return unknown;
|
|
49
|
+
index.set(d, i = domain.push(d) - 1);
|
|
50
|
+
}
|
|
51
|
+
return range[i % range.length];
|
|
52
|
+
}
|
|
53
|
+
scale.domain = function(_) {
|
|
54
|
+
if (!arguments.length) return domain.slice();
|
|
55
|
+
domain = [], index = new InternMap();
|
|
56
|
+
for (const value of _) {
|
|
57
|
+
if (index.has(value)) continue;
|
|
58
|
+
index.set(value, domain.push(value) - 1);
|
|
59
|
+
}
|
|
60
|
+
return scale;
|
|
61
|
+
};
|
|
62
|
+
scale.range = function(_) {
|
|
63
|
+
return arguments.length ? (range = Array.from(_), scale) : range.slice();
|
|
64
|
+
};
|
|
65
|
+
scale.unknown = function(_) {
|
|
66
|
+
return arguments.length ? (unknown = _, scale) : unknown;
|
|
67
|
+
};
|
|
68
|
+
scale.copy = function() {
|
|
69
|
+
return ordinal(domain, range).unknown(unknown);
|
|
70
|
+
};
|
|
71
|
+
initRange.apply(scale, arguments);
|
|
72
|
+
return scale;
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
ordinal as o
|
|
76
|
+
};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
function wordRegexp(words) {
|
|
2
|
+
return new RegExp("^((" + words.join(")|(") + "))\\b");
|
|
3
|
+
}
|
|
4
|
+
var singleOperators = /[\^@!\|<>#~\.\*\-\+\\/,=]/;
|
|
5
|
+
var doubleOperators = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/;
|
|
6
|
+
var tripleOperators = /(:::)|(\.\.\.)|(=<:)|(>=:)/;
|
|
7
|
+
var middle = [
|
|
8
|
+
"in",
|
|
9
|
+
"then",
|
|
10
|
+
"else",
|
|
11
|
+
"of",
|
|
12
|
+
"elseof",
|
|
13
|
+
"elsecase",
|
|
14
|
+
"elseif",
|
|
15
|
+
"catch",
|
|
16
|
+
"finally",
|
|
17
|
+
"with",
|
|
18
|
+
"require",
|
|
19
|
+
"prepare",
|
|
20
|
+
"import",
|
|
21
|
+
"export",
|
|
22
|
+
"define",
|
|
23
|
+
"do"
|
|
24
|
+
];
|
|
25
|
+
var end = ["end"];
|
|
26
|
+
var atoms = wordRegexp(["true", "false", "nil", "unit"]);
|
|
27
|
+
var commonKeywords = wordRegexp([
|
|
28
|
+
"andthen",
|
|
29
|
+
"at",
|
|
30
|
+
"attr",
|
|
31
|
+
"declare",
|
|
32
|
+
"feat",
|
|
33
|
+
"from",
|
|
34
|
+
"lex",
|
|
35
|
+
"mod",
|
|
36
|
+
"div",
|
|
37
|
+
"mode",
|
|
38
|
+
"orelse",
|
|
39
|
+
"parser",
|
|
40
|
+
"prod",
|
|
41
|
+
"prop",
|
|
42
|
+
"scanner",
|
|
43
|
+
"self",
|
|
44
|
+
"syn",
|
|
45
|
+
"token"
|
|
46
|
+
]);
|
|
47
|
+
var openingKeywords = wordRegexp([
|
|
48
|
+
"local",
|
|
49
|
+
"proc",
|
|
50
|
+
"fun",
|
|
51
|
+
"case",
|
|
52
|
+
"class",
|
|
53
|
+
"if",
|
|
54
|
+
"cond",
|
|
55
|
+
"or",
|
|
56
|
+
"dis",
|
|
57
|
+
"choice",
|
|
58
|
+
"not",
|
|
59
|
+
"thread",
|
|
60
|
+
"try",
|
|
61
|
+
"raise",
|
|
62
|
+
"lock",
|
|
63
|
+
"for",
|
|
64
|
+
"suchthat",
|
|
65
|
+
"meth",
|
|
66
|
+
"functor"
|
|
67
|
+
]);
|
|
68
|
+
var middleKeywords = wordRegexp(middle);
|
|
69
|
+
var endKeywords = wordRegexp(end);
|
|
70
|
+
function tokenBase(stream, state) {
|
|
71
|
+
if (stream.eatSpace()) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
if (stream.match(/[{}]/)) {
|
|
75
|
+
return "bracket";
|
|
76
|
+
}
|
|
77
|
+
if (stream.match("[]")) {
|
|
78
|
+
return "keyword";
|
|
79
|
+
}
|
|
80
|
+
if (stream.match(tripleOperators) || stream.match(doubleOperators)) {
|
|
81
|
+
return "operator";
|
|
82
|
+
}
|
|
83
|
+
if (stream.match(atoms)) {
|
|
84
|
+
return "atom";
|
|
85
|
+
}
|
|
86
|
+
var matched = stream.match(openingKeywords);
|
|
87
|
+
if (matched) {
|
|
88
|
+
if (!state.doInCurrentLine)
|
|
89
|
+
state.currentIndent++;
|
|
90
|
+
else
|
|
91
|
+
state.doInCurrentLine = false;
|
|
92
|
+
if (matched[0] == "proc" || matched[0] == "fun")
|
|
93
|
+
state.tokenize = tokenFunProc;
|
|
94
|
+
else if (matched[0] == "class")
|
|
95
|
+
state.tokenize = tokenClass;
|
|
96
|
+
else if (matched[0] == "meth")
|
|
97
|
+
state.tokenize = tokenMeth;
|
|
98
|
+
return "keyword";
|
|
99
|
+
}
|
|
100
|
+
if (stream.match(middleKeywords) || stream.match(commonKeywords)) {
|
|
101
|
+
return "keyword";
|
|
102
|
+
}
|
|
103
|
+
if (stream.match(endKeywords)) {
|
|
104
|
+
state.currentIndent--;
|
|
105
|
+
return "keyword";
|
|
106
|
+
}
|
|
107
|
+
var ch = stream.next();
|
|
108
|
+
if (ch == '"' || ch == "'") {
|
|
109
|
+
state.tokenize = tokenString(ch);
|
|
110
|
+
return state.tokenize(stream, state);
|
|
111
|
+
}
|
|
112
|
+
if (/[~\d]/.test(ch)) {
|
|
113
|
+
if (ch == "~") {
|
|
114
|
+
if (!/^[0-9]/.test(stream.peek()))
|
|
115
|
+
return null;
|
|
116
|
+
else if (stream.next() == "0" && stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))
|
|
117
|
+
return "number";
|
|
118
|
+
}
|
|
119
|
+
if (ch == "0" && stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))
|
|
120
|
+
return "number";
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
if (ch == "%") {
|
|
124
|
+
stream.skipToEnd();
|
|
125
|
+
return "comment";
|
|
126
|
+
} else if (ch == "/") {
|
|
127
|
+
if (stream.eat("*")) {
|
|
128
|
+
state.tokenize = tokenComment;
|
|
129
|
+
return tokenComment(stream, state);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (singleOperators.test(ch)) {
|
|
133
|
+
return "operator";
|
|
134
|
+
}
|
|
135
|
+
stream.eatWhile(/\w/);
|
|
136
|
+
return "variable";
|
|
137
|
+
}
|
|
138
|
+
function tokenClass(stream, state) {
|
|
139
|
+
if (stream.eatSpace()) {
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);
|
|
143
|
+
state.tokenize = tokenBase;
|
|
144
|
+
return "type";
|
|
145
|
+
}
|
|
146
|
+
function tokenMeth(stream, state) {
|
|
147
|
+
if (stream.eatSpace()) {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
stream.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);
|
|
151
|
+
state.tokenize = tokenBase;
|
|
152
|
+
return "def";
|
|
153
|
+
}
|
|
154
|
+
function tokenFunProc(stream, state) {
|
|
155
|
+
if (stream.eatSpace()) {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
if (!state.hasPassedFirstStage && stream.eat("{")) {
|
|
159
|
+
state.hasPassedFirstStage = true;
|
|
160
|
+
return "bracket";
|
|
161
|
+
} else if (state.hasPassedFirstStage) {
|
|
162
|
+
stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/);
|
|
163
|
+
state.hasPassedFirstStage = false;
|
|
164
|
+
state.tokenize = tokenBase;
|
|
165
|
+
return "def";
|
|
166
|
+
} else {
|
|
167
|
+
state.tokenize = tokenBase;
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function tokenComment(stream, state) {
|
|
172
|
+
var maybeEnd = false, ch;
|
|
173
|
+
while (ch = stream.next()) {
|
|
174
|
+
if (ch == "/" && maybeEnd) {
|
|
175
|
+
state.tokenize = tokenBase;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
maybeEnd = ch == "*";
|
|
179
|
+
}
|
|
180
|
+
return "comment";
|
|
181
|
+
}
|
|
182
|
+
function tokenString(quote) {
|
|
183
|
+
return function(stream, state) {
|
|
184
|
+
var escaped = false, next, end2 = false;
|
|
185
|
+
while ((next = stream.next()) != null) {
|
|
186
|
+
if (next == quote && !escaped) {
|
|
187
|
+
end2 = true;
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
escaped = !escaped && next == "\\";
|
|
191
|
+
}
|
|
192
|
+
if (end2 || !escaped)
|
|
193
|
+
state.tokenize = tokenBase;
|
|
194
|
+
return "string";
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function buildElectricInputRegEx() {
|
|
198
|
+
var allClosings = middle.concat(end);
|
|
199
|
+
return new RegExp("[\\[\\]]|(" + allClosings.join("|") + ")$");
|
|
200
|
+
}
|
|
201
|
+
const oz = {
|
|
202
|
+
name: "oz",
|
|
203
|
+
startState: function() {
|
|
204
|
+
return {
|
|
205
|
+
tokenize: tokenBase,
|
|
206
|
+
currentIndent: 0,
|
|
207
|
+
doInCurrentLine: false,
|
|
208
|
+
hasPassedFirstStage: false
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
token: function(stream, state) {
|
|
212
|
+
if (stream.sol())
|
|
213
|
+
state.doInCurrentLine = 0;
|
|
214
|
+
return state.tokenize(stream, state);
|
|
215
|
+
},
|
|
216
|
+
indent: function(state, textAfter, cx) {
|
|
217
|
+
var trueText = textAfter.replace(/^\s+|\s+$/g, "");
|
|
218
|
+
if (trueText.match(endKeywords) || trueText.match(middleKeywords) || trueText.match(/(\[])/))
|
|
219
|
+
return cx.unit * (state.currentIndent - 1);
|
|
220
|
+
if (state.currentIndent < 0)
|
|
221
|
+
return 0;
|
|
222
|
+
return state.currentIndent * cx.unit;
|
|
223
|
+
},
|
|
224
|
+
languageData: {
|
|
225
|
+
indentOnInut: buildElectricInputRegEx(),
|
|
226
|
+
commentTokens: { line: "%", block: { open: "/*", close: "*/" } }
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
export {
|
|
230
|
+
oz
|
|
231
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
function words(str) {
|
|
2
|
+
var obj = {}, words2 = str.split(" ");
|
|
3
|
+
for (var i = 0; i < words2.length; ++i) obj[words2[i]] = true;
|
|
4
|
+
return obj;
|
|
5
|
+
}
|
|
6
|
+
var keywords = words(
|
|
7
|
+
"absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"
|
|
8
|
+
);
|
|
9
|
+
var atoms = { "null": true };
|
|
10
|
+
var isOperatorChar = /[+\-*&%=<>!?|\/]/;
|
|
11
|
+
function tokenBase(stream, state) {
|
|
12
|
+
var ch = stream.next();
|
|
13
|
+
if (ch == "#" && state.startOfLine) {
|
|
14
|
+
stream.skipToEnd();
|
|
15
|
+
return "meta";
|
|
16
|
+
}
|
|
17
|
+
if (ch == '"' || ch == "'") {
|
|
18
|
+
state.tokenize = tokenString(ch);
|
|
19
|
+
return state.tokenize(stream, state);
|
|
20
|
+
}
|
|
21
|
+
if (ch == "(" && stream.eat("*")) {
|
|
22
|
+
state.tokenize = tokenComment;
|
|
23
|
+
return tokenComment(stream, state);
|
|
24
|
+
}
|
|
25
|
+
if (ch == "{") {
|
|
26
|
+
state.tokenize = tokenCommentBraces;
|
|
27
|
+
return tokenCommentBraces(stream, state);
|
|
28
|
+
}
|
|
29
|
+
if (/[\[\]\(\),;\:\.]/.test(ch)) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
if (/\d/.test(ch)) {
|
|
33
|
+
stream.eatWhile(/[\w\.]/);
|
|
34
|
+
return "number";
|
|
35
|
+
}
|
|
36
|
+
if (ch == "/") {
|
|
37
|
+
if (stream.eat("/")) {
|
|
38
|
+
stream.skipToEnd();
|
|
39
|
+
return "comment";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (isOperatorChar.test(ch)) {
|
|
43
|
+
stream.eatWhile(isOperatorChar);
|
|
44
|
+
return "operator";
|
|
45
|
+
}
|
|
46
|
+
stream.eatWhile(/[\w\$_]/);
|
|
47
|
+
var cur = stream.current().toLowerCase();
|
|
48
|
+
if (keywords.propertyIsEnumerable(cur)) return "keyword";
|
|
49
|
+
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
|
50
|
+
return "variable";
|
|
51
|
+
}
|
|
52
|
+
function tokenString(quote) {
|
|
53
|
+
return function(stream, state) {
|
|
54
|
+
var escaped = false, next, end = false;
|
|
55
|
+
while ((next = stream.next()) != null) {
|
|
56
|
+
if (next == quote && !escaped) {
|
|
57
|
+
end = true;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
escaped = !escaped && next == "\\";
|
|
61
|
+
}
|
|
62
|
+
if (end || !escaped) state.tokenize = null;
|
|
63
|
+
return "string";
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function tokenComment(stream, state) {
|
|
67
|
+
var maybeEnd = false, ch;
|
|
68
|
+
while (ch = stream.next()) {
|
|
69
|
+
if (ch == ")" && maybeEnd) {
|
|
70
|
+
state.tokenize = null;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
maybeEnd = ch == "*";
|
|
74
|
+
}
|
|
75
|
+
return "comment";
|
|
76
|
+
}
|
|
77
|
+
function tokenCommentBraces(stream, state) {
|
|
78
|
+
var ch;
|
|
79
|
+
while (ch = stream.next()) {
|
|
80
|
+
if (ch == "}") {
|
|
81
|
+
state.tokenize = null;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return "comment";
|
|
86
|
+
}
|
|
87
|
+
const pascal = {
|
|
88
|
+
name: "pascal",
|
|
89
|
+
startState: function() {
|
|
90
|
+
return { tokenize: null };
|
|
91
|
+
},
|
|
92
|
+
token: function(stream, state) {
|
|
93
|
+
if (stream.eatSpace()) return null;
|
|
94
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
95
|
+
if (style == "comment" || style == "meta") return style;
|
|
96
|
+
return style;
|
|
97
|
+
},
|
|
98
|
+
languageData: {
|
|
99
|
+
indentOnInput: /^\s*[{}]$/,
|
|
100
|
+
commentTokens: { block: { open: "(*", close: "*)" } }
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
pascal
|
|
105
|
+
};
|