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,101 @@
|
|
|
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 pBuiltins = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ";
|
|
7
|
+
var pKeywords = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP";
|
|
8
|
+
var pTypes = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ";
|
|
9
|
+
var builtins = words(pBuiltins), keywords = words(pKeywords), types = words(pTypes);
|
|
10
|
+
var isOperatorChar = /[*+\-%<>=&?:\/!|]/;
|
|
11
|
+
function chain(stream, state, f) {
|
|
12
|
+
state.tokenize = f;
|
|
13
|
+
return f(stream, state);
|
|
14
|
+
}
|
|
15
|
+
function tokenComment(stream, state) {
|
|
16
|
+
var isEnd = false;
|
|
17
|
+
var ch;
|
|
18
|
+
while (ch = stream.next()) {
|
|
19
|
+
if (ch == "/" && isEnd) {
|
|
20
|
+
state.tokenize = tokenBase;
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
isEnd = ch == "*";
|
|
24
|
+
}
|
|
25
|
+
return "comment";
|
|
26
|
+
}
|
|
27
|
+
function tokenString(quote) {
|
|
28
|
+
return function(stream, state) {
|
|
29
|
+
var escaped = false, next, end = false;
|
|
30
|
+
while ((next = stream.next()) != null) {
|
|
31
|
+
if (next == quote && !escaped) {
|
|
32
|
+
end = true;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
escaped = !escaped && next == "\\";
|
|
36
|
+
}
|
|
37
|
+
if (end || !escaped)
|
|
38
|
+
state.tokenize = tokenBase;
|
|
39
|
+
return "error";
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function tokenBase(stream, state) {
|
|
43
|
+
var ch = stream.next();
|
|
44
|
+
if (ch == '"' || ch == "'")
|
|
45
|
+
return chain(stream, state, tokenString(ch));
|
|
46
|
+
else if (/[\[\]{}\(\),;\.]/.test(ch))
|
|
47
|
+
return null;
|
|
48
|
+
else if (/\d/.test(ch)) {
|
|
49
|
+
stream.eatWhile(/[\w\.]/);
|
|
50
|
+
return "number";
|
|
51
|
+
} else if (ch == "/") {
|
|
52
|
+
if (stream.eat("*")) {
|
|
53
|
+
return chain(stream, state, tokenComment);
|
|
54
|
+
} else {
|
|
55
|
+
stream.eatWhile(isOperatorChar);
|
|
56
|
+
return "operator";
|
|
57
|
+
}
|
|
58
|
+
} else if (ch == "-") {
|
|
59
|
+
if (stream.eat("-")) {
|
|
60
|
+
stream.skipToEnd();
|
|
61
|
+
return "comment";
|
|
62
|
+
} else {
|
|
63
|
+
stream.eatWhile(isOperatorChar);
|
|
64
|
+
return "operator";
|
|
65
|
+
}
|
|
66
|
+
} else if (isOperatorChar.test(ch)) {
|
|
67
|
+
stream.eatWhile(isOperatorChar);
|
|
68
|
+
return "operator";
|
|
69
|
+
} else {
|
|
70
|
+
stream.eatWhile(/[\w\$_]/);
|
|
71
|
+
if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) {
|
|
72
|
+
if (!stream.eat(")") && !stream.eat("."))
|
|
73
|
+
return "keyword";
|
|
74
|
+
}
|
|
75
|
+
if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase()))
|
|
76
|
+
return "builtin";
|
|
77
|
+
if (types && types.propertyIsEnumerable(stream.current().toUpperCase()))
|
|
78
|
+
return "type";
|
|
79
|
+
return "variable";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const pig = {
|
|
83
|
+
name: "pig",
|
|
84
|
+
startState: function() {
|
|
85
|
+
return {
|
|
86
|
+
tokenize: tokenBase,
|
|
87
|
+
startOfLine: true
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
token: function(stream, state) {
|
|
91
|
+
if (stream.eatSpace()) return null;
|
|
92
|
+
var style = state.tokenize(stream, state);
|
|
93
|
+
return style;
|
|
94
|
+
},
|
|
95
|
+
languageData: {
|
|
96
|
+
autocomplete: (pBuiltins + pTypes + pKeywords).split(" ")
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
pig
|
|
101
|
+
};
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
function buildRegexp(patterns, options) {
|
|
2
|
+
options = options || {};
|
|
3
|
+
var prefix = options.prefix !== void 0 ? options.prefix : "^";
|
|
4
|
+
var suffix = options.suffix !== void 0 ? options.suffix : "\\b";
|
|
5
|
+
for (var i = 0; i < patterns.length; i++) {
|
|
6
|
+
if (patterns[i] instanceof RegExp) {
|
|
7
|
+
patterns[i] = patterns[i].source;
|
|
8
|
+
} else {
|
|
9
|
+
patterns[i] = patterns[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return new RegExp(prefix + "(" + patterns.join("|") + ")" + suffix, "i");
|
|
13
|
+
}
|
|
14
|
+
var notCharacterOrDash = "(?=[^A-Za-z\\d\\-_]|$)";
|
|
15
|
+
var varNames = /[\w\-:]/;
|
|
16
|
+
var keywords = buildRegexp([
|
|
17
|
+
/begin|break|catch|continue|data|default|do|dynamicparam/,
|
|
18
|
+
/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,
|
|
19
|
+
/param|process|return|switch|throw|trap|try|until|where|while/
|
|
20
|
+
], { suffix: notCharacterOrDash });
|
|
21
|
+
var punctuation = /[\[\]{},;`\\\.]|@[({]/;
|
|
22
|
+
var wordOperators = buildRegexp([
|
|
23
|
+
"f",
|
|
24
|
+
/b?not/,
|
|
25
|
+
/[ic]?split/,
|
|
26
|
+
"join",
|
|
27
|
+
/is(not)?/,
|
|
28
|
+
"as",
|
|
29
|
+
/[ic]?(eq|ne|[gl][te])/,
|
|
30
|
+
/[ic]?(not)?(like|match|contains)/,
|
|
31
|
+
/[ic]?replace/,
|
|
32
|
+
/b?(and|or|xor)/
|
|
33
|
+
], { prefix: "-" });
|
|
34
|
+
var symbolOperators = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/;
|
|
35
|
+
var operators = buildRegexp([wordOperators, symbolOperators], { suffix: "" });
|
|
36
|
+
var numbers = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i;
|
|
37
|
+
var identifiers = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/;
|
|
38
|
+
var symbolBuiltins = /[A-Z]:|%|\?/i;
|
|
39
|
+
var namedBuiltins = buildRegexp([
|
|
40
|
+
/Add-(Computer|Content|History|Member|PSSnapin|Type)/,
|
|
41
|
+
/Checkpoint-Computer/,
|
|
42
|
+
/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,
|
|
43
|
+
/Compare-Object/,
|
|
44
|
+
/Complete-Transaction/,
|
|
45
|
+
/Connect-PSSession/,
|
|
46
|
+
/ConvertFrom-(Csv|Json|SecureString|StringData)/,
|
|
47
|
+
/Convert-Path/,
|
|
48
|
+
/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,
|
|
49
|
+
/Copy-Item(Property)?/,
|
|
50
|
+
/Debug-Process/,
|
|
51
|
+
/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
|
|
52
|
+
/Disconnect-PSSession/,
|
|
53
|
+
/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
|
|
54
|
+
/(Enter|Exit)-PSSession/,
|
|
55
|
+
/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,
|
|
56
|
+
/ForEach-Object/,
|
|
57
|
+
/Format-(Custom|List|Table|Wide)/,
|
|
58
|
+
new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),
|
|
59
|
+
/Group-Object/,
|
|
60
|
+
/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,
|
|
61
|
+
/ImportSystemModules/,
|
|
62
|
+
/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,
|
|
63
|
+
/Join-Path/,
|
|
64
|
+
/Limit-EventLog/,
|
|
65
|
+
/Measure-(Command|Object)/,
|
|
66
|
+
/Move-Item(Property)?/,
|
|
67
|
+
new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),
|
|
68
|
+
/Out-(Default|File|GridView|Host|Null|Printer|String)/,
|
|
69
|
+
/Pause/,
|
|
70
|
+
/(Pop|Push)-Location/,
|
|
71
|
+
/Read-Host/,
|
|
72
|
+
/Receive-(Job|PSSession)/,
|
|
73
|
+
/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,
|
|
74
|
+
/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,
|
|
75
|
+
/Rename-(Computer|Item(Property)?)/,
|
|
76
|
+
/Reset-ComputerMachinePassword/,
|
|
77
|
+
/Resolve-Path/,
|
|
78
|
+
/Restart-(Computer|Service)/,
|
|
79
|
+
/Restore-Computer/,
|
|
80
|
+
/Resume-(Job|Service)/,
|
|
81
|
+
/Save-Help/,
|
|
82
|
+
/Select-(Object|String|Xml)/,
|
|
83
|
+
/Send-MailMessage/,
|
|
84
|
+
new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),
|
|
85
|
+
/Show-(Command|ControlPanelItem|EventLog)/,
|
|
86
|
+
/Sort-Object/,
|
|
87
|
+
/Split-Path/,
|
|
88
|
+
/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,
|
|
89
|
+
/Stop-(Computer|Job|Process|Service|Transcript)/,
|
|
90
|
+
/Suspend-(Job|Service)/,
|
|
91
|
+
/TabExpansion2/,
|
|
92
|
+
/Tee-Object/,
|
|
93
|
+
/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,
|
|
94
|
+
/Trace-Command/,
|
|
95
|
+
/Unblock-File/,
|
|
96
|
+
/Undo-Transaction/,
|
|
97
|
+
/Unregister-(Event|PSSessionConfiguration)/,
|
|
98
|
+
/Update-(FormatData|Help|List|TypeData)/,
|
|
99
|
+
/Use-Transaction/,
|
|
100
|
+
/Wait-(Event|Job|Process)/,
|
|
101
|
+
/Where-Object/,
|
|
102
|
+
/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,
|
|
103
|
+
/cd|help|mkdir|more|oss|prompt/,
|
|
104
|
+
/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,
|
|
105
|
+
/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,
|
|
106
|
+
/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,
|
|
107
|
+
/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,
|
|
108
|
+
/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,
|
|
109
|
+
/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/
|
|
110
|
+
], { prefix: "", suffix: "" });
|
|
111
|
+
var variableBuiltins = buildRegexp([
|
|
112
|
+
/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,
|
|
113
|
+
/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,
|
|
114
|
+
/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,
|
|
115
|
+
/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,
|
|
116
|
+
/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,
|
|
117
|
+
/WarningPreference|WhatIfPreference/,
|
|
118
|
+
/Event|EventArgs|EventSubscriber|Sender/,
|
|
119
|
+
/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,
|
|
120
|
+
/true|false|null/
|
|
121
|
+
], { prefix: "\\$", suffix: "" });
|
|
122
|
+
var builtins = buildRegexp([symbolBuiltins, namedBuiltins, variableBuiltins], { suffix: notCharacterOrDash });
|
|
123
|
+
var grammar = {
|
|
124
|
+
keyword: keywords,
|
|
125
|
+
number: numbers,
|
|
126
|
+
operator: operators,
|
|
127
|
+
builtin: builtins,
|
|
128
|
+
punctuation,
|
|
129
|
+
variable: identifiers
|
|
130
|
+
};
|
|
131
|
+
function tokenBase(stream, state) {
|
|
132
|
+
var parent = state.returnStack[state.returnStack.length - 1];
|
|
133
|
+
if (parent && parent.shouldReturnFrom(state)) {
|
|
134
|
+
state.tokenize = parent.tokenize;
|
|
135
|
+
state.returnStack.pop();
|
|
136
|
+
return state.tokenize(stream, state);
|
|
137
|
+
}
|
|
138
|
+
if (stream.eatSpace()) {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
if (stream.eat("(")) {
|
|
142
|
+
state.bracketNesting += 1;
|
|
143
|
+
return "punctuation";
|
|
144
|
+
}
|
|
145
|
+
if (stream.eat(")")) {
|
|
146
|
+
state.bracketNesting -= 1;
|
|
147
|
+
return "punctuation";
|
|
148
|
+
}
|
|
149
|
+
for (var key in grammar) {
|
|
150
|
+
if (stream.match(grammar[key])) {
|
|
151
|
+
return key;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
var ch = stream.next();
|
|
155
|
+
if (ch === "'") {
|
|
156
|
+
return tokenSingleQuoteString(stream, state);
|
|
157
|
+
}
|
|
158
|
+
if (ch === "$") {
|
|
159
|
+
return tokenVariable(stream, state);
|
|
160
|
+
}
|
|
161
|
+
if (ch === '"') {
|
|
162
|
+
return tokenDoubleQuoteString(stream, state);
|
|
163
|
+
}
|
|
164
|
+
if (ch === "<" && stream.eat("#")) {
|
|
165
|
+
state.tokenize = tokenComment;
|
|
166
|
+
return tokenComment(stream, state);
|
|
167
|
+
}
|
|
168
|
+
if (ch === "#") {
|
|
169
|
+
stream.skipToEnd();
|
|
170
|
+
return "comment";
|
|
171
|
+
}
|
|
172
|
+
if (ch === "@") {
|
|
173
|
+
var quoteMatch = stream.eat(/["']/);
|
|
174
|
+
if (quoteMatch && stream.eol()) {
|
|
175
|
+
state.tokenize = tokenMultiString;
|
|
176
|
+
state.startQuote = quoteMatch[0];
|
|
177
|
+
return tokenMultiString(stream, state);
|
|
178
|
+
} else if (stream.eol()) {
|
|
179
|
+
return "error";
|
|
180
|
+
} else if (stream.peek().match(/[({]/)) {
|
|
181
|
+
return "punctuation";
|
|
182
|
+
} else if (stream.peek().match(varNames)) {
|
|
183
|
+
return tokenVariable(stream, state);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return "error";
|
|
187
|
+
}
|
|
188
|
+
function tokenSingleQuoteString(stream, state) {
|
|
189
|
+
var ch;
|
|
190
|
+
while ((ch = stream.peek()) != null) {
|
|
191
|
+
stream.next();
|
|
192
|
+
if (ch === "'" && !stream.eat("'")) {
|
|
193
|
+
state.tokenize = tokenBase;
|
|
194
|
+
return "string";
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return "error";
|
|
198
|
+
}
|
|
199
|
+
function tokenDoubleQuoteString(stream, state) {
|
|
200
|
+
var ch;
|
|
201
|
+
while ((ch = stream.peek()) != null) {
|
|
202
|
+
if (ch === "$") {
|
|
203
|
+
state.tokenize = tokenStringInterpolation;
|
|
204
|
+
return "string";
|
|
205
|
+
}
|
|
206
|
+
stream.next();
|
|
207
|
+
if (ch === "`") {
|
|
208
|
+
stream.next();
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
if (ch === '"' && !stream.eat('"')) {
|
|
212
|
+
state.tokenize = tokenBase;
|
|
213
|
+
return "string";
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return "error";
|
|
217
|
+
}
|
|
218
|
+
function tokenStringInterpolation(stream, state) {
|
|
219
|
+
return tokenInterpolation(stream, state, tokenDoubleQuoteString);
|
|
220
|
+
}
|
|
221
|
+
function tokenMultiStringReturn(stream, state) {
|
|
222
|
+
state.tokenize = tokenMultiString;
|
|
223
|
+
state.startQuote = '"';
|
|
224
|
+
return tokenMultiString(stream, state);
|
|
225
|
+
}
|
|
226
|
+
function tokenHereStringInterpolation(stream, state) {
|
|
227
|
+
return tokenInterpolation(stream, state, tokenMultiStringReturn);
|
|
228
|
+
}
|
|
229
|
+
function tokenInterpolation(stream, state, parentTokenize) {
|
|
230
|
+
if (stream.match("$(")) {
|
|
231
|
+
var savedBracketNesting = state.bracketNesting;
|
|
232
|
+
state.returnStack.push({
|
|
233
|
+
/*jshint loopfunc:true */
|
|
234
|
+
shouldReturnFrom: function(state2) {
|
|
235
|
+
return state2.bracketNesting === savedBracketNesting;
|
|
236
|
+
},
|
|
237
|
+
tokenize: parentTokenize
|
|
238
|
+
});
|
|
239
|
+
state.tokenize = tokenBase;
|
|
240
|
+
state.bracketNesting += 1;
|
|
241
|
+
return "punctuation";
|
|
242
|
+
} else {
|
|
243
|
+
stream.next();
|
|
244
|
+
state.returnStack.push({
|
|
245
|
+
shouldReturnFrom: function() {
|
|
246
|
+
return true;
|
|
247
|
+
},
|
|
248
|
+
tokenize: parentTokenize
|
|
249
|
+
});
|
|
250
|
+
state.tokenize = tokenVariable;
|
|
251
|
+
return state.tokenize(stream, state);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function tokenComment(stream, state) {
|
|
255
|
+
var maybeEnd = false, ch;
|
|
256
|
+
while ((ch = stream.next()) != null) {
|
|
257
|
+
if (maybeEnd && ch == ">") {
|
|
258
|
+
state.tokenize = tokenBase;
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
maybeEnd = ch === "#";
|
|
262
|
+
}
|
|
263
|
+
return "comment";
|
|
264
|
+
}
|
|
265
|
+
function tokenVariable(stream, state) {
|
|
266
|
+
var ch = stream.peek();
|
|
267
|
+
if (stream.eat("{")) {
|
|
268
|
+
state.tokenize = tokenVariableWithBraces;
|
|
269
|
+
return tokenVariableWithBraces(stream, state);
|
|
270
|
+
} else if (ch != void 0 && ch.match(varNames)) {
|
|
271
|
+
stream.eatWhile(varNames);
|
|
272
|
+
state.tokenize = tokenBase;
|
|
273
|
+
return "variable";
|
|
274
|
+
} else {
|
|
275
|
+
state.tokenize = tokenBase;
|
|
276
|
+
return "error";
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
function tokenVariableWithBraces(stream, state) {
|
|
280
|
+
var ch;
|
|
281
|
+
while ((ch = stream.next()) != null) {
|
|
282
|
+
if (ch === "}") {
|
|
283
|
+
state.tokenize = tokenBase;
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return "variable";
|
|
288
|
+
}
|
|
289
|
+
function tokenMultiString(stream, state) {
|
|
290
|
+
var quote = state.startQuote;
|
|
291
|
+
if (stream.sol() && stream.match(new RegExp(quote + "@"))) {
|
|
292
|
+
state.tokenize = tokenBase;
|
|
293
|
+
} else if (quote === '"') {
|
|
294
|
+
while (!stream.eol()) {
|
|
295
|
+
var ch = stream.peek();
|
|
296
|
+
if (ch === "$") {
|
|
297
|
+
state.tokenize = tokenHereStringInterpolation;
|
|
298
|
+
return "string";
|
|
299
|
+
}
|
|
300
|
+
stream.next();
|
|
301
|
+
if (ch === "`") {
|
|
302
|
+
stream.next();
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
} else {
|
|
306
|
+
stream.skipToEnd();
|
|
307
|
+
}
|
|
308
|
+
return "string";
|
|
309
|
+
}
|
|
310
|
+
const powerShell = {
|
|
311
|
+
name: "powershell",
|
|
312
|
+
startState: function() {
|
|
313
|
+
return {
|
|
314
|
+
returnStack: [],
|
|
315
|
+
bracketNesting: 0,
|
|
316
|
+
tokenize: tokenBase
|
|
317
|
+
};
|
|
318
|
+
},
|
|
319
|
+
token: function(stream, state) {
|
|
320
|
+
return state.tokenize(stream, state);
|
|
321
|
+
},
|
|
322
|
+
languageData: {
|
|
323
|
+
commentTokens: { line: "#", block: { open: "<#", close: "#>" } }
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
export {
|
|
327
|
+
powerShell
|
|
328
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const properties = {
|
|
2
|
+
name: "properties",
|
|
3
|
+
token: function(stream, state) {
|
|
4
|
+
var sol = stream.sol() || state.afterSection;
|
|
5
|
+
var eol = stream.eol();
|
|
6
|
+
state.afterSection = false;
|
|
7
|
+
if (sol) {
|
|
8
|
+
if (state.nextMultiline) {
|
|
9
|
+
state.inMultiline = true;
|
|
10
|
+
state.nextMultiline = false;
|
|
11
|
+
} else {
|
|
12
|
+
state.position = "def";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
if (eol && !state.nextMultiline) {
|
|
16
|
+
state.inMultiline = false;
|
|
17
|
+
state.position = "def";
|
|
18
|
+
}
|
|
19
|
+
if (sol) {
|
|
20
|
+
while (stream.eatSpace()) {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
var ch = stream.next();
|
|
24
|
+
if (sol && (ch === "#" || ch === "!" || ch === ";")) {
|
|
25
|
+
state.position = "comment";
|
|
26
|
+
stream.skipToEnd();
|
|
27
|
+
return "comment";
|
|
28
|
+
} else if (sol && ch === "[") {
|
|
29
|
+
state.afterSection = true;
|
|
30
|
+
stream.skipTo("]");
|
|
31
|
+
stream.eat("]");
|
|
32
|
+
return "header";
|
|
33
|
+
} else if (ch === "=" || ch === ":") {
|
|
34
|
+
state.position = "quote";
|
|
35
|
+
return null;
|
|
36
|
+
} else if (ch === "\\" && state.position === "quote") {
|
|
37
|
+
if (stream.eol()) {
|
|
38
|
+
state.nextMultiline = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return state.position;
|
|
42
|
+
},
|
|
43
|
+
startState: function() {
|
|
44
|
+
return {
|
|
45
|
+
position: "def",
|
|
46
|
+
// Current position, "def", "quote" or "comment"
|
|
47
|
+
nextMultiline: false,
|
|
48
|
+
// Is the next line multiline value
|
|
49
|
+
inMultiline: false,
|
|
50
|
+
// Is the current line a multiline value
|
|
51
|
+
afterSection: false
|
|
52
|
+
// Did we just open a section
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
properties
|
|
58
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function wordRegexp(words) {
|
|
2
|
+
return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
|
|
3
|
+
}
|
|
4
|
+
var keywordArray = [
|
|
5
|
+
"package",
|
|
6
|
+
"message",
|
|
7
|
+
"import",
|
|
8
|
+
"syntax",
|
|
9
|
+
"required",
|
|
10
|
+
"optional",
|
|
11
|
+
"repeated",
|
|
12
|
+
"reserved",
|
|
13
|
+
"default",
|
|
14
|
+
"extensions",
|
|
15
|
+
"packed",
|
|
16
|
+
"bool",
|
|
17
|
+
"bytes",
|
|
18
|
+
"double",
|
|
19
|
+
"enum",
|
|
20
|
+
"float",
|
|
21
|
+
"string",
|
|
22
|
+
"int32",
|
|
23
|
+
"int64",
|
|
24
|
+
"uint32",
|
|
25
|
+
"uint64",
|
|
26
|
+
"sint32",
|
|
27
|
+
"sint64",
|
|
28
|
+
"fixed32",
|
|
29
|
+
"fixed64",
|
|
30
|
+
"sfixed32",
|
|
31
|
+
"sfixed64",
|
|
32
|
+
"option",
|
|
33
|
+
"service",
|
|
34
|
+
"rpc",
|
|
35
|
+
"returns"
|
|
36
|
+
];
|
|
37
|
+
var keywords = wordRegexp(keywordArray);
|
|
38
|
+
var identifiers = new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");
|
|
39
|
+
function tokenBase(stream) {
|
|
40
|
+
if (stream.eatSpace()) return null;
|
|
41
|
+
if (stream.match("//")) {
|
|
42
|
+
stream.skipToEnd();
|
|
43
|
+
return "comment";
|
|
44
|
+
}
|
|
45
|
+
if (stream.match(/^[0-9\.+-]/, false)) {
|
|
46
|
+
if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
|
|
47
|
+
return "number";
|
|
48
|
+
if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
|
|
49
|
+
return "number";
|
|
50
|
+
if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
|
|
51
|
+
return "number";
|
|
52
|
+
}
|
|
53
|
+
if (stream.match(/^"([^"]|(""))*"/)) {
|
|
54
|
+
return "string";
|
|
55
|
+
}
|
|
56
|
+
if (stream.match(/^'([^']|(''))*'/)) {
|
|
57
|
+
return "string";
|
|
58
|
+
}
|
|
59
|
+
if (stream.match(keywords)) {
|
|
60
|
+
return "keyword";
|
|
61
|
+
}
|
|
62
|
+
if (stream.match(identifiers)) {
|
|
63
|
+
return "variable";
|
|
64
|
+
}
|
|
65
|
+
stream.next();
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
const protobuf = {
|
|
69
|
+
name: "protobuf",
|
|
70
|
+
token: tokenBase,
|
|
71
|
+
languageData: {
|
|
72
|
+
autocomplete: keywordArray
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
protobuf
|
|
77
|
+
};
|