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,511 @@
|
|
|
1
|
+
import { v as log$1, Z as selectSvgElement, w as configureSvgSize } from "./MilkdownMarkdownEditor-bLPxrCVb.js";
|
|
2
|
+
import "./index-BqDyyRCx.js";
|
|
3
|
+
var parser = function() {
|
|
4
|
+
var o = function(k, v, o2, l) {
|
|
5
|
+
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
|
|
6
|
+
;
|
|
7
|
+
return o2;
|
|
8
|
+
}, $V0 = [6, 9, 10];
|
|
9
|
+
var parser2 = {
|
|
10
|
+
trace: function trace() {
|
|
11
|
+
},
|
|
12
|
+
yy: {},
|
|
13
|
+
symbols_: { "error": 2, "start": 3, "info": 4, "document": 5, "EOF": 6, "line": 7, "statement": 8, "NL": 9, "showInfo": 10, "$accept": 0, "$end": 1 },
|
|
14
|
+
terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
|
|
15
|
+
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
|
|
16
|
+
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
17
|
+
$$.length - 1;
|
|
18
|
+
switch (yystate) {
|
|
19
|
+
case 1:
|
|
20
|
+
return yy;
|
|
21
|
+
case 4:
|
|
22
|
+
break;
|
|
23
|
+
case 6:
|
|
24
|
+
yy.setInfo(true);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, o($V0, [2, 3]), o($V0, [2, 4]), o($V0, [2, 5]), o($V0, [2, 6])],
|
|
29
|
+
defaultActions: { 4: [2, 1] },
|
|
30
|
+
parseError: function parseError(str, hash) {
|
|
31
|
+
if (hash.recoverable) {
|
|
32
|
+
this.trace(str);
|
|
33
|
+
} else {
|
|
34
|
+
var error = new Error(str);
|
|
35
|
+
error.hash = hash;
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
parse: function parse(input) {
|
|
40
|
+
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
|
|
41
|
+
var args = lstack.slice.call(arguments, 1);
|
|
42
|
+
var lexer2 = Object.create(this.lexer);
|
|
43
|
+
var sharedState = { yy: {} };
|
|
44
|
+
for (var k in this.yy) {
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
|
46
|
+
sharedState.yy[k] = this.yy[k];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
lexer2.setInput(input, sharedState.yy);
|
|
50
|
+
sharedState.yy.lexer = lexer2;
|
|
51
|
+
sharedState.yy.parser = this;
|
|
52
|
+
if (typeof lexer2.yylloc == "undefined") {
|
|
53
|
+
lexer2.yylloc = {};
|
|
54
|
+
}
|
|
55
|
+
var yyloc = lexer2.yylloc;
|
|
56
|
+
lstack.push(yyloc);
|
|
57
|
+
var ranges = lexer2.options && lexer2.options.ranges;
|
|
58
|
+
if (typeof sharedState.yy.parseError === "function") {
|
|
59
|
+
this.parseError = sharedState.yy.parseError;
|
|
60
|
+
} else {
|
|
61
|
+
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
62
|
+
}
|
|
63
|
+
function lex() {
|
|
64
|
+
var token;
|
|
65
|
+
token = tstack.pop() || lexer2.lex() || EOF;
|
|
66
|
+
if (typeof token !== "number") {
|
|
67
|
+
if (token instanceof Array) {
|
|
68
|
+
tstack = token;
|
|
69
|
+
token = tstack.pop();
|
|
70
|
+
}
|
|
71
|
+
token = self.symbols_[token] || token;
|
|
72
|
+
}
|
|
73
|
+
return token;
|
|
74
|
+
}
|
|
75
|
+
var symbol, state, action, r, yyval = {}, p, len, newState, expected;
|
|
76
|
+
while (true) {
|
|
77
|
+
state = stack[stack.length - 1];
|
|
78
|
+
if (this.defaultActions[state]) {
|
|
79
|
+
action = this.defaultActions[state];
|
|
80
|
+
} else {
|
|
81
|
+
if (symbol === null || typeof symbol == "undefined") {
|
|
82
|
+
symbol = lex();
|
|
83
|
+
}
|
|
84
|
+
action = table[state] && table[state][symbol];
|
|
85
|
+
}
|
|
86
|
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
87
|
+
var errStr = "";
|
|
88
|
+
expected = [];
|
|
89
|
+
for (p in table[state]) {
|
|
90
|
+
if (this.terminals_[p] && p > TERROR) {
|
|
91
|
+
expected.push("'" + this.terminals_[p] + "'");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (lexer2.showPosition) {
|
|
95
|
+
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
96
|
+
} else {
|
|
97
|
+
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
98
|
+
}
|
|
99
|
+
this.parseError(errStr, {
|
|
100
|
+
text: lexer2.match,
|
|
101
|
+
token: this.terminals_[symbol] || symbol,
|
|
102
|
+
line: lexer2.yylineno,
|
|
103
|
+
loc: yyloc,
|
|
104
|
+
expected
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (action[0] instanceof Array && action.length > 1) {
|
|
108
|
+
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
109
|
+
}
|
|
110
|
+
switch (action[0]) {
|
|
111
|
+
case 1:
|
|
112
|
+
stack.push(symbol);
|
|
113
|
+
vstack.push(lexer2.yytext);
|
|
114
|
+
lstack.push(lexer2.yylloc);
|
|
115
|
+
stack.push(action[1]);
|
|
116
|
+
symbol = null;
|
|
117
|
+
{
|
|
118
|
+
yyleng = lexer2.yyleng;
|
|
119
|
+
yytext = lexer2.yytext;
|
|
120
|
+
yylineno = lexer2.yylineno;
|
|
121
|
+
yyloc = lexer2.yylloc;
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
case 2:
|
|
125
|
+
len = this.productions_[action[1]][1];
|
|
126
|
+
yyval.$ = vstack[vstack.length - len];
|
|
127
|
+
yyval._$ = {
|
|
128
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
129
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
130
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
131
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
132
|
+
};
|
|
133
|
+
if (ranges) {
|
|
134
|
+
yyval._$.range = [
|
|
135
|
+
lstack[lstack.length - (len || 1)].range[0],
|
|
136
|
+
lstack[lstack.length - 1].range[1]
|
|
137
|
+
];
|
|
138
|
+
}
|
|
139
|
+
r = this.performAction.apply(yyval, [
|
|
140
|
+
yytext,
|
|
141
|
+
yyleng,
|
|
142
|
+
yylineno,
|
|
143
|
+
sharedState.yy,
|
|
144
|
+
action[1],
|
|
145
|
+
vstack,
|
|
146
|
+
lstack
|
|
147
|
+
].concat(args));
|
|
148
|
+
if (typeof r !== "undefined") {
|
|
149
|
+
return r;
|
|
150
|
+
}
|
|
151
|
+
if (len) {
|
|
152
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
153
|
+
vstack = vstack.slice(0, -1 * len);
|
|
154
|
+
lstack = lstack.slice(0, -1 * len);
|
|
155
|
+
}
|
|
156
|
+
stack.push(this.productions_[action[1]][0]);
|
|
157
|
+
vstack.push(yyval.$);
|
|
158
|
+
lstack.push(yyval._$);
|
|
159
|
+
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
160
|
+
stack.push(newState);
|
|
161
|
+
break;
|
|
162
|
+
case 3:
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
var lexer = /* @__PURE__ */ function() {
|
|
170
|
+
var lexer2 = {
|
|
171
|
+
EOF: 1,
|
|
172
|
+
parseError: function parseError(str, hash) {
|
|
173
|
+
if (this.yy.parser) {
|
|
174
|
+
this.yy.parser.parseError(str, hash);
|
|
175
|
+
} else {
|
|
176
|
+
throw new Error(str);
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
// resets the lexer, sets new input
|
|
180
|
+
setInput: function(input, yy) {
|
|
181
|
+
this.yy = yy || this.yy || {};
|
|
182
|
+
this._input = input;
|
|
183
|
+
this._more = this._backtrack = this.done = false;
|
|
184
|
+
this.yylineno = this.yyleng = 0;
|
|
185
|
+
this.yytext = this.matched = this.match = "";
|
|
186
|
+
this.conditionStack = ["INITIAL"];
|
|
187
|
+
this.yylloc = {
|
|
188
|
+
first_line: 1,
|
|
189
|
+
first_column: 0,
|
|
190
|
+
last_line: 1,
|
|
191
|
+
last_column: 0
|
|
192
|
+
};
|
|
193
|
+
if (this.options.ranges) {
|
|
194
|
+
this.yylloc.range = [0, 0];
|
|
195
|
+
}
|
|
196
|
+
this.offset = 0;
|
|
197
|
+
return this;
|
|
198
|
+
},
|
|
199
|
+
// consumes and returns one char from the input
|
|
200
|
+
input: function() {
|
|
201
|
+
var ch = this._input[0];
|
|
202
|
+
this.yytext += ch;
|
|
203
|
+
this.yyleng++;
|
|
204
|
+
this.offset++;
|
|
205
|
+
this.match += ch;
|
|
206
|
+
this.matched += ch;
|
|
207
|
+
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
208
|
+
if (lines) {
|
|
209
|
+
this.yylineno++;
|
|
210
|
+
this.yylloc.last_line++;
|
|
211
|
+
} else {
|
|
212
|
+
this.yylloc.last_column++;
|
|
213
|
+
}
|
|
214
|
+
if (this.options.ranges) {
|
|
215
|
+
this.yylloc.range[1]++;
|
|
216
|
+
}
|
|
217
|
+
this._input = this._input.slice(1);
|
|
218
|
+
return ch;
|
|
219
|
+
},
|
|
220
|
+
// unshifts one char (or a string) into the input
|
|
221
|
+
unput: function(ch) {
|
|
222
|
+
var len = ch.length;
|
|
223
|
+
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
224
|
+
this._input = ch + this._input;
|
|
225
|
+
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
226
|
+
this.offset -= len;
|
|
227
|
+
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
228
|
+
this.match = this.match.substr(0, this.match.length - 1);
|
|
229
|
+
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
230
|
+
if (lines.length - 1) {
|
|
231
|
+
this.yylineno -= lines.length - 1;
|
|
232
|
+
}
|
|
233
|
+
var r = this.yylloc.range;
|
|
234
|
+
this.yylloc = {
|
|
235
|
+
first_line: this.yylloc.first_line,
|
|
236
|
+
last_line: this.yylineno + 1,
|
|
237
|
+
first_column: this.yylloc.first_column,
|
|
238
|
+
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
|
239
|
+
};
|
|
240
|
+
if (this.options.ranges) {
|
|
241
|
+
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
242
|
+
}
|
|
243
|
+
this.yyleng = this.yytext.length;
|
|
244
|
+
return this;
|
|
245
|
+
},
|
|
246
|
+
// When called from action, caches matched text and appends it on next action
|
|
247
|
+
more: function() {
|
|
248
|
+
this._more = true;
|
|
249
|
+
return this;
|
|
250
|
+
},
|
|
251
|
+
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
252
|
+
reject: function() {
|
|
253
|
+
if (this.options.backtrack_lexer) {
|
|
254
|
+
this._backtrack = true;
|
|
255
|
+
} else {
|
|
256
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
257
|
+
text: "",
|
|
258
|
+
token: null,
|
|
259
|
+
line: this.yylineno
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
return this;
|
|
263
|
+
},
|
|
264
|
+
// retain first n characters of the match
|
|
265
|
+
less: function(n) {
|
|
266
|
+
this.unput(this.match.slice(n));
|
|
267
|
+
},
|
|
268
|
+
// displays already matched input, i.e. for error messages
|
|
269
|
+
pastInput: function() {
|
|
270
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
271
|
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
272
|
+
},
|
|
273
|
+
// displays upcoming input, i.e. for error messages
|
|
274
|
+
upcomingInput: function() {
|
|
275
|
+
var next = this.match;
|
|
276
|
+
if (next.length < 20) {
|
|
277
|
+
next += this._input.substr(0, 20 - next.length);
|
|
278
|
+
}
|
|
279
|
+
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
280
|
+
},
|
|
281
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
282
|
+
showPosition: function() {
|
|
283
|
+
var pre = this.pastInput();
|
|
284
|
+
var c = new Array(pre.length + 1).join("-");
|
|
285
|
+
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
286
|
+
},
|
|
287
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
288
|
+
test_match: function(match, indexed_rule) {
|
|
289
|
+
var token, lines, backup;
|
|
290
|
+
if (this.options.backtrack_lexer) {
|
|
291
|
+
backup = {
|
|
292
|
+
yylineno: this.yylineno,
|
|
293
|
+
yylloc: {
|
|
294
|
+
first_line: this.yylloc.first_line,
|
|
295
|
+
last_line: this.last_line,
|
|
296
|
+
first_column: this.yylloc.first_column,
|
|
297
|
+
last_column: this.yylloc.last_column
|
|
298
|
+
},
|
|
299
|
+
yytext: this.yytext,
|
|
300
|
+
match: this.match,
|
|
301
|
+
matches: this.matches,
|
|
302
|
+
matched: this.matched,
|
|
303
|
+
yyleng: this.yyleng,
|
|
304
|
+
offset: this.offset,
|
|
305
|
+
_more: this._more,
|
|
306
|
+
_input: this._input,
|
|
307
|
+
yy: this.yy,
|
|
308
|
+
conditionStack: this.conditionStack.slice(0),
|
|
309
|
+
done: this.done
|
|
310
|
+
};
|
|
311
|
+
if (this.options.ranges) {
|
|
312
|
+
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
316
|
+
if (lines) {
|
|
317
|
+
this.yylineno += lines.length;
|
|
318
|
+
}
|
|
319
|
+
this.yylloc = {
|
|
320
|
+
first_line: this.yylloc.last_line,
|
|
321
|
+
last_line: this.yylineno + 1,
|
|
322
|
+
first_column: this.yylloc.last_column,
|
|
323
|
+
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
324
|
+
};
|
|
325
|
+
this.yytext += match[0];
|
|
326
|
+
this.match += match[0];
|
|
327
|
+
this.matches = match;
|
|
328
|
+
this.yyleng = this.yytext.length;
|
|
329
|
+
if (this.options.ranges) {
|
|
330
|
+
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
331
|
+
}
|
|
332
|
+
this._more = false;
|
|
333
|
+
this._backtrack = false;
|
|
334
|
+
this._input = this._input.slice(match[0].length);
|
|
335
|
+
this.matched += match[0];
|
|
336
|
+
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
337
|
+
if (this.done && this._input) {
|
|
338
|
+
this.done = false;
|
|
339
|
+
}
|
|
340
|
+
if (token) {
|
|
341
|
+
return token;
|
|
342
|
+
} else if (this._backtrack) {
|
|
343
|
+
for (var k in backup) {
|
|
344
|
+
this[k] = backup[k];
|
|
345
|
+
}
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
return false;
|
|
349
|
+
},
|
|
350
|
+
// return next match in input
|
|
351
|
+
next: function() {
|
|
352
|
+
if (this.done) {
|
|
353
|
+
return this.EOF;
|
|
354
|
+
}
|
|
355
|
+
if (!this._input) {
|
|
356
|
+
this.done = true;
|
|
357
|
+
}
|
|
358
|
+
var token, match, tempMatch, index;
|
|
359
|
+
if (!this._more) {
|
|
360
|
+
this.yytext = "";
|
|
361
|
+
this.match = "";
|
|
362
|
+
}
|
|
363
|
+
var rules = this._currentRules();
|
|
364
|
+
for (var i = 0; i < rules.length; i++) {
|
|
365
|
+
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
366
|
+
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
367
|
+
match = tempMatch;
|
|
368
|
+
index = i;
|
|
369
|
+
if (this.options.backtrack_lexer) {
|
|
370
|
+
token = this.test_match(tempMatch, rules[i]);
|
|
371
|
+
if (token !== false) {
|
|
372
|
+
return token;
|
|
373
|
+
} else if (this._backtrack) {
|
|
374
|
+
match = false;
|
|
375
|
+
continue;
|
|
376
|
+
} else {
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
} else if (!this.options.flex) {
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
if (match) {
|
|
385
|
+
token = this.test_match(match, rules[index]);
|
|
386
|
+
if (token !== false) {
|
|
387
|
+
return token;
|
|
388
|
+
}
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
if (this._input === "") {
|
|
392
|
+
return this.EOF;
|
|
393
|
+
} else {
|
|
394
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
395
|
+
text: "",
|
|
396
|
+
token: null,
|
|
397
|
+
line: this.yylineno
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
// return next match that has a token
|
|
402
|
+
lex: function lex() {
|
|
403
|
+
var r = this.next();
|
|
404
|
+
if (r) {
|
|
405
|
+
return r;
|
|
406
|
+
} else {
|
|
407
|
+
return this.lex();
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
411
|
+
begin: function begin(condition) {
|
|
412
|
+
this.conditionStack.push(condition);
|
|
413
|
+
},
|
|
414
|
+
// pop the previously active lexer condition state off the condition stack
|
|
415
|
+
popState: function popState() {
|
|
416
|
+
var n = this.conditionStack.length - 1;
|
|
417
|
+
if (n > 0) {
|
|
418
|
+
return this.conditionStack.pop();
|
|
419
|
+
} else {
|
|
420
|
+
return this.conditionStack[0];
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
424
|
+
_currentRules: function _currentRules() {
|
|
425
|
+
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
426
|
+
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
427
|
+
} else {
|
|
428
|
+
return this.conditions["INITIAL"].rules;
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
432
|
+
topState: function topState(n) {
|
|
433
|
+
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
434
|
+
if (n >= 0) {
|
|
435
|
+
return this.conditionStack[n];
|
|
436
|
+
} else {
|
|
437
|
+
return "INITIAL";
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
// alias for begin(condition)
|
|
441
|
+
pushState: function pushState(condition) {
|
|
442
|
+
this.begin(condition);
|
|
443
|
+
},
|
|
444
|
+
// return the number of states currently on the stack
|
|
445
|
+
stateStackSize: function stateStackSize() {
|
|
446
|
+
return this.conditionStack.length;
|
|
447
|
+
},
|
|
448
|
+
options: { "case-insensitive": true },
|
|
449
|
+
performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
450
|
+
switch ($avoiding_name_collisions) {
|
|
451
|
+
case 0:
|
|
452
|
+
return 4;
|
|
453
|
+
case 1:
|
|
454
|
+
return 9;
|
|
455
|
+
case 2:
|
|
456
|
+
return "space";
|
|
457
|
+
case 3:
|
|
458
|
+
return 10;
|
|
459
|
+
case 4:
|
|
460
|
+
return 6;
|
|
461
|
+
case 5:
|
|
462
|
+
return "TXT";
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
|
|
466
|
+
conditions: { "INITIAL": { "rules": [0, 1, 2, 3, 4, 5], "inclusive": true } }
|
|
467
|
+
};
|
|
468
|
+
return lexer2;
|
|
469
|
+
}();
|
|
470
|
+
parser2.lexer = lexer;
|
|
471
|
+
function Parser() {
|
|
472
|
+
this.yy = {};
|
|
473
|
+
}
|
|
474
|
+
Parser.prototype = parser2;
|
|
475
|
+
parser2.Parser = Parser;
|
|
476
|
+
return new Parser();
|
|
477
|
+
}();
|
|
478
|
+
parser.parser = parser;
|
|
479
|
+
const parser$1 = parser;
|
|
480
|
+
const DEFAULT_INFO_DB = {
|
|
481
|
+
info: false
|
|
482
|
+
};
|
|
483
|
+
let info = DEFAULT_INFO_DB.info;
|
|
484
|
+
const setInfo = (toggle) => {
|
|
485
|
+
info = toggle;
|
|
486
|
+
};
|
|
487
|
+
const getInfo = () => info;
|
|
488
|
+
const clear = () => {
|
|
489
|
+
info = DEFAULT_INFO_DB.info;
|
|
490
|
+
};
|
|
491
|
+
const db = {
|
|
492
|
+
clear,
|
|
493
|
+
setInfo,
|
|
494
|
+
getInfo
|
|
495
|
+
};
|
|
496
|
+
const draw = (text, id, version) => {
|
|
497
|
+
log$1.debug("rendering info diagram\n" + text);
|
|
498
|
+
const svg = selectSvgElement(id);
|
|
499
|
+
configureSvgSize(svg, 100, 400, true);
|
|
500
|
+
const group = svg.append("g");
|
|
501
|
+
group.append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${version}`);
|
|
502
|
+
};
|
|
503
|
+
const renderer = { draw };
|
|
504
|
+
const diagram = {
|
|
505
|
+
parser: parser$1,
|
|
506
|
+
db,
|
|
507
|
+
renderer
|
|
508
|
+
};
|
|
509
|
+
export {
|
|
510
|
+
diagram
|
|
511
|
+
};
|