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,9 @@
|
|
|
1
|
+
function colors(specifier) {
|
|
2
|
+
var n = specifier.length / 6 | 0, colors2 = new Array(n), i = 0;
|
|
3
|
+
while (i < n) colors2[i] = "#" + specifier.slice(i * 6, ++i * 6);
|
|
4
|
+
return colors2;
|
|
5
|
+
}
|
|
6
|
+
const schemeTableau10 = colors("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
7
|
+
export {
|
|
8
|
+
schemeTableau10 as s
|
|
9
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
var builtInFuncs = {
|
|
2
|
+
"+": ["conjugate", "add"],
|
|
3
|
+
"−": ["negate", "subtract"],
|
|
4
|
+
"×": ["signOf", "multiply"],
|
|
5
|
+
"÷": ["reciprocal", "divide"],
|
|
6
|
+
"⌈": ["ceiling", "greaterOf"],
|
|
7
|
+
"⌊": ["floor", "lesserOf"],
|
|
8
|
+
"∣": ["absolute", "residue"],
|
|
9
|
+
"⍳": ["indexGenerate", "indexOf"],
|
|
10
|
+
"?": ["roll", "deal"],
|
|
11
|
+
"⋆": ["exponentiate", "toThePowerOf"],
|
|
12
|
+
"⍟": ["naturalLog", "logToTheBase"],
|
|
13
|
+
"○": ["piTimes", "circularFuncs"],
|
|
14
|
+
"!": ["factorial", "binomial"],
|
|
15
|
+
"⌹": ["matrixInverse", "matrixDivide"],
|
|
16
|
+
"<": [null, "lessThan"],
|
|
17
|
+
"≤": [null, "lessThanOrEqual"],
|
|
18
|
+
"=": [null, "equals"],
|
|
19
|
+
">": [null, "greaterThan"],
|
|
20
|
+
"≥": [null, "greaterThanOrEqual"],
|
|
21
|
+
"≠": [null, "notEqual"],
|
|
22
|
+
"≡": ["depth", "match"],
|
|
23
|
+
"≢": [null, "notMatch"],
|
|
24
|
+
"∈": ["enlist", "membership"],
|
|
25
|
+
"⍷": [null, "find"],
|
|
26
|
+
"∪": ["unique", "union"],
|
|
27
|
+
"∩": [null, "intersection"],
|
|
28
|
+
"∼": ["not", "without"],
|
|
29
|
+
"∨": [null, "or"],
|
|
30
|
+
"∧": [null, "and"],
|
|
31
|
+
"⍱": [null, "nor"],
|
|
32
|
+
"⍲": [null, "nand"],
|
|
33
|
+
"⍴": ["shapeOf", "reshape"],
|
|
34
|
+
",": ["ravel", "catenate"],
|
|
35
|
+
"⍪": [null, "firstAxisCatenate"],
|
|
36
|
+
"⌽": ["reverse", "rotate"],
|
|
37
|
+
"⊖": ["axis1Reverse", "axis1Rotate"],
|
|
38
|
+
"⍉": ["transpose", null],
|
|
39
|
+
"↑": ["first", "take"],
|
|
40
|
+
"↓": [null, "drop"],
|
|
41
|
+
"⊂": ["enclose", "partitionWithAxis"],
|
|
42
|
+
"⊃": ["diclose", "pick"],
|
|
43
|
+
"⌷": [null, "index"],
|
|
44
|
+
"⍋": ["gradeUp", null],
|
|
45
|
+
"⍒": ["gradeDown", null],
|
|
46
|
+
"⊤": ["encode", null],
|
|
47
|
+
"⊥": ["decode", null],
|
|
48
|
+
"⍕": ["format", "formatByExample"],
|
|
49
|
+
"⍎": ["execute", null],
|
|
50
|
+
"⊣": ["stop", "left"],
|
|
51
|
+
"⊢": ["pass", "right"]
|
|
52
|
+
};
|
|
53
|
+
var isOperator = /[\.\/⌿⍀¨⍣]/;
|
|
54
|
+
var isNiladic = /⍬/;
|
|
55
|
+
var isFunction = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;
|
|
56
|
+
var isArrow = /←/;
|
|
57
|
+
var isComment = /[⍝#].*$/;
|
|
58
|
+
var stringEater = function(type) {
|
|
59
|
+
var prev;
|
|
60
|
+
prev = false;
|
|
61
|
+
return function(c) {
|
|
62
|
+
prev = c;
|
|
63
|
+
if (c === type) {
|
|
64
|
+
return prev === "\\";
|
|
65
|
+
}
|
|
66
|
+
return true;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
const apl = {
|
|
70
|
+
name: "apl",
|
|
71
|
+
startState: function() {
|
|
72
|
+
return {
|
|
73
|
+
prev: false,
|
|
74
|
+
func: false,
|
|
75
|
+
op: false,
|
|
76
|
+
string: false,
|
|
77
|
+
escape: false
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
token: function(stream, state) {
|
|
81
|
+
var ch;
|
|
82
|
+
if (stream.eatSpace()) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
ch = stream.next();
|
|
86
|
+
if (ch === '"' || ch === "'") {
|
|
87
|
+
stream.eatWhile(stringEater(ch));
|
|
88
|
+
stream.next();
|
|
89
|
+
state.prev = true;
|
|
90
|
+
return "string";
|
|
91
|
+
}
|
|
92
|
+
if (/[\[{\(]/.test(ch)) {
|
|
93
|
+
state.prev = false;
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
if (/[\]}\)]/.test(ch)) {
|
|
97
|
+
state.prev = true;
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
if (isNiladic.test(ch)) {
|
|
101
|
+
state.prev = false;
|
|
102
|
+
return "atom";
|
|
103
|
+
}
|
|
104
|
+
if (/[¯\d]/.test(ch)) {
|
|
105
|
+
if (state.func) {
|
|
106
|
+
state.func = false;
|
|
107
|
+
state.prev = false;
|
|
108
|
+
} else {
|
|
109
|
+
state.prev = true;
|
|
110
|
+
}
|
|
111
|
+
stream.eatWhile(/[\w\.]/);
|
|
112
|
+
return "number";
|
|
113
|
+
}
|
|
114
|
+
if (isOperator.test(ch)) {
|
|
115
|
+
return "operator";
|
|
116
|
+
}
|
|
117
|
+
if (isArrow.test(ch)) {
|
|
118
|
+
return "operator";
|
|
119
|
+
}
|
|
120
|
+
if (isFunction.test(ch)) {
|
|
121
|
+
state.func = true;
|
|
122
|
+
state.prev = false;
|
|
123
|
+
return builtInFuncs[ch] ? "variableName.function.standard" : "variableName.function";
|
|
124
|
+
}
|
|
125
|
+
if (isComment.test(ch)) {
|
|
126
|
+
stream.skipToEnd();
|
|
127
|
+
return "comment";
|
|
128
|
+
}
|
|
129
|
+
if (ch === "∘" && stream.peek() === ".") {
|
|
130
|
+
stream.next();
|
|
131
|
+
return "variableName.function";
|
|
132
|
+
}
|
|
133
|
+
stream.eatWhile(/[\w\$_]/);
|
|
134
|
+
state.prev = true;
|
|
135
|
+
return "keyword";
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
export {
|
|
139
|
+
apl
|
|
140
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { w as withPath, c as constant } from "./path-Cp2qmpkd.js";
|
|
2
|
+
import { _ as pi, $ as cos, a0 as sin, a1 as halfPi, a2 as epsilon, a3 as tau, a4 as sqrt, a5 as min, a6 as abs, a7 as atan2, a8 as max, a9 as asin, aa as acos } from "./MilkdownMarkdownEditor-bLPxrCVb.js";
|
|
3
|
+
function arcInnerRadius(d) {
|
|
4
|
+
return d.innerRadius;
|
|
5
|
+
}
|
|
6
|
+
function arcOuterRadius(d) {
|
|
7
|
+
return d.outerRadius;
|
|
8
|
+
}
|
|
9
|
+
function arcStartAngle(d) {
|
|
10
|
+
return d.startAngle;
|
|
11
|
+
}
|
|
12
|
+
function arcEndAngle(d) {
|
|
13
|
+
return d.endAngle;
|
|
14
|
+
}
|
|
15
|
+
function arcPadAngle(d) {
|
|
16
|
+
return d && d.padAngle;
|
|
17
|
+
}
|
|
18
|
+
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
19
|
+
var x10 = x1 - x0, y10 = y1 - y0, x32 = x3 - x2, y32 = y3 - y2, t = y32 * x10 - x32 * y10;
|
|
20
|
+
if (t * t < epsilon) return;
|
|
21
|
+
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
|
|
22
|
+
return [x0 + t * x10, y0 + t * y10];
|
|
23
|
+
}
|
|
24
|
+
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
25
|
+
var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00;
|
|
26
|
+
if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
|
|
27
|
+
return {
|
|
28
|
+
cx: cx0,
|
|
29
|
+
cy: cy0,
|
|
30
|
+
x01: -ox,
|
|
31
|
+
y01: -oy,
|
|
32
|
+
x11: cx0 * (r1 / r - 1),
|
|
33
|
+
y11: cy0 * (r1 / r - 1)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function arc() {
|
|
37
|
+
var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = constant(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null, path = withPath(arc2);
|
|
38
|
+
function arc2() {
|
|
39
|
+
var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - halfPi, a1 = endAngle.apply(this, arguments) - halfPi, da = abs(a1 - a0), cw = a1 > a0;
|
|
40
|
+
if (!context) context = buffer = path();
|
|
41
|
+
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
|
42
|
+
if (!(r1 > epsilon)) context.moveTo(0, 0);
|
|
43
|
+
else if (da > tau - epsilon) {
|
|
44
|
+
context.moveTo(r1 * cos(a0), r1 * sin(a0));
|
|
45
|
+
context.arc(0, 0, r1, a0, a1, !cw);
|
|
46
|
+
if (r0 > epsilon) {
|
|
47
|
+
context.moveTo(r0 * cos(a1), r0 * sin(a1));
|
|
48
|
+
context.arc(0, 0, r0, a1, a0, cw);
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = ap > epsilon && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)), rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1;
|
|
52
|
+
if (rp > epsilon) {
|
|
53
|
+
var p0 = asin(rp / r0 * sin(ap)), p1 = asin(rp / r1 * sin(ap));
|
|
54
|
+
if ((da0 -= p0 * 2) > epsilon) p0 *= cw ? 1 : -1, a00 += p0, a10 -= p0;
|
|
55
|
+
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
|
56
|
+
if ((da1 -= p1 * 2) > epsilon) p1 *= cw ? 1 : -1, a01 += p1, a11 -= p1;
|
|
57
|
+
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
|
58
|
+
}
|
|
59
|
+
var x01 = r1 * cos(a01), y01 = r1 * sin(a01), x10 = r0 * cos(a10), y10 = r0 * sin(a10);
|
|
60
|
+
if (rc > epsilon) {
|
|
61
|
+
var x11 = r1 * cos(a11), y11 = r1 * sin(a11), x00 = r0 * cos(a00), y00 = r0 * sin(a00), oc;
|
|
62
|
+
if (da < pi) {
|
|
63
|
+
if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {
|
|
64
|
+
var ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2), lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
|
|
65
|
+
rc0 = min(rc, (r0 - lc) / (kc - 1));
|
|
66
|
+
rc1 = min(rc, (r1 - lc) / (kc + 1));
|
|
67
|
+
} else {
|
|
68
|
+
rc0 = rc1 = 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (!(da1 > epsilon)) context.moveTo(x01, y01);
|
|
73
|
+
else if (rc1 > epsilon) {
|
|
74
|
+
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
|
|
75
|
+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
|
76
|
+
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
77
|
+
if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
|
|
78
|
+
else {
|
|
79
|
+
context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
|
|
80
|
+
context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
|
|
81
|
+
context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
|
|
82
|
+
}
|
|
83
|
+
} else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
|
|
84
|
+
if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);
|
|
85
|
+
else if (rc0 > epsilon) {
|
|
86
|
+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
|
87
|
+
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
|
|
88
|
+
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
89
|
+
if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
|
|
90
|
+
else {
|
|
91
|
+
context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
|
|
92
|
+
context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);
|
|
93
|
+
context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
|
|
94
|
+
}
|
|
95
|
+
} else context.arc(0, 0, r0, a10, a00, cw);
|
|
96
|
+
}
|
|
97
|
+
context.closePath();
|
|
98
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
99
|
+
}
|
|
100
|
+
arc2.centroid = function() {
|
|
101
|
+
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;
|
|
102
|
+
return [cos(a) * r, sin(a) * r];
|
|
103
|
+
};
|
|
104
|
+
arc2.innerRadius = function(_) {
|
|
105
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant(+_), arc2) : innerRadius;
|
|
106
|
+
};
|
|
107
|
+
arc2.outerRadius = function(_) {
|
|
108
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant(+_), arc2) : outerRadius;
|
|
109
|
+
};
|
|
110
|
+
arc2.cornerRadius = function(_) {
|
|
111
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant(+_), arc2) : cornerRadius;
|
|
112
|
+
};
|
|
113
|
+
arc2.padRadius = function(_) {
|
|
114
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant(+_), arc2) : padRadius;
|
|
115
|
+
};
|
|
116
|
+
arc2.startAngle = function(_) {
|
|
117
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), arc2) : startAngle;
|
|
118
|
+
};
|
|
119
|
+
arc2.endAngle = function(_) {
|
|
120
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), arc2) : endAngle;
|
|
121
|
+
};
|
|
122
|
+
arc2.padAngle = function(_) {
|
|
123
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), arc2) : padAngle;
|
|
124
|
+
};
|
|
125
|
+
arc2.context = function(_) {
|
|
126
|
+
return arguments.length ? (context = _ == null ? null : _, arc2) : context;
|
|
127
|
+
};
|
|
128
|
+
return arc2;
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
arc as a
|
|
132
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
function errorIfNotEmpty(stream) {
|
|
2
|
+
var nonWS = stream.match(/^\s*\S/);
|
|
3
|
+
stream.skipToEnd();
|
|
4
|
+
return nonWS ? "error" : null;
|
|
5
|
+
}
|
|
6
|
+
const asciiArmor = {
|
|
7
|
+
name: "asciiarmor",
|
|
8
|
+
token: function(stream, state) {
|
|
9
|
+
var m;
|
|
10
|
+
if (state.state == "top") {
|
|
11
|
+
if (stream.sol() && (m = stream.match(/^-----BEGIN (.*)?-----\s*$/))) {
|
|
12
|
+
state.state = "headers";
|
|
13
|
+
state.type = m[1];
|
|
14
|
+
return "tag";
|
|
15
|
+
}
|
|
16
|
+
return errorIfNotEmpty(stream);
|
|
17
|
+
} else if (state.state == "headers") {
|
|
18
|
+
if (stream.sol() && stream.match(/^\w+:/)) {
|
|
19
|
+
state.state = "header";
|
|
20
|
+
return "atom";
|
|
21
|
+
} else {
|
|
22
|
+
var result = errorIfNotEmpty(stream);
|
|
23
|
+
if (result) state.state = "body";
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
} else if (state.state == "header") {
|
|
27
|
+
stream.skipToEnd();
|
|
28
|
+
state.state = "headers";
|
|
29
|
+
return "string";
|
|
30
|
+
} else if (state.state == "body") {
|
|
31
|
+
if (stream.sol() && (m = stream.match(/^-----END (.*)?-----\s*$/))) {
|
|
32
|
+
if (m[1] != state.type) return "error";
|
|
33
|
+
state.state = "end";
|
|
34
|
+
return "tag";
|
|
35
|
+
} else {
|
|
36
|
+
if (stream.eatWhile(/[A-Za-z0-9+\/=]/)) {
|
|
37
|
+
return null;
|
|
38
|
+
} else {
|
|
39
|
+
stream.next();
|
|
40
|
+
return "error";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
} else if (state.state == "end") {
|
|
44
|
+
return errorIfNotEmpty(stream);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
blankLine: function(state) {
|
|
48
|
+
if (state.state == "headers") state.state = "body";
|
|
49
|
+
},
|
|
50
|
+
startState: function() {
|
|
51
|
+
return { state: "top", type: null };
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
asciiArmor
|
|
56
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
const defaults = {
|
|
7
|
+
keywords: words("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),
|
|
8
|
+
cmipVerbs: words("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),
|
|
9
|
+
compareTypes: words("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),
|
|
10
|
+
status: words("current deprecated mandatory obsolete"),
|
|
11
|
+
tags: words("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),
|
|
12
|
+
storage: words("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),
|
|
13
|
+
modifier: words("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),
|
|
14
|
+
accessTypes: words("not-accessible accessible-for-notify read-only read-create read-write"),
|
|
15
|
+
multiLineStrings: true
|
|
16
|
+
};
|
|
17
|
+
function asn1(parserConfig) {
|
|
18
|
+
var keywords = parserConfig.keywords || defaults.keywords, cmipVerbs = parserConfig.cmipVerbs || defaults.cmipVerbs, compareTypes = parserConfig.compareTypes || defaults.compareTypes, status = parserConfig.status || defaults.status, tags = parserConfig.tags || defaults.tags, storage = parserConfig.storage || defaults.storage, modifier = parserConfig.modifier || defaults.modifier, accessTypes = parserConfig.accessTypes || defaults.accessTypes;
|
|
19
|
+
parserConfig.multiLineStrings || defaults.multiLineStrings;
|
|
20
|
+
var indentStatements = parserConfig.indentStatements !== false;
|
|
21
|
+
var isOperatorChar = /[\|\^]/;
|
|
22
|
+
var curPunc;
|
|
23
|
+
function tokenBase(stream, state) {
|
|
24
|
+
var ch = stream.next();
|
|
25
|
+
if (ch == '"' || ch == "'") {
|
|
26
|
+
state.tokenize = tokenString(ch);
|
|
27
|
+
return state.tokenize(stream, state);
|
|
28
|
+
}
|
|
29
|
+
if (/[\[\]\(\){}:=,;]/.test(ch)) {
|
|
30
|
+
curPunc = ch;
|
|
31
|
+
return "punctuation";
|
|
32
|
+
}
|
|
33
|
+
if (ch == "-") {
|
|
34
|
+
if (stream.eat("-")) {
|
|
35
|
+
stream.skipToEnd();
|
|
36
|
+
return "comment";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (/\d/.test(ch)) {
|
|
40
|
+
stream.eatWhile(/[\w\.]/);
|
|
41
|
+
return "number";
|
|
42
|
+
}
|
|
43
|
+
if (isOperatorChar.test(ch)) {
|
|
44
|
+
stream.eatWhile(isOperatorChar);
|
|
45
|
+
return "operator";
|
|
46
|
+
}
|
|
47
|
+
stream.eatWhile(/[\w\-]/);
|
|
48
|
+
var cur = stream.current();
|
|
49
|
+
if (keywords.propertyIsEnumerable(cur)) return "keyword";
|
|
50
|
+
if (cmipVerbs.propertyIsEnumerable(cur)) return "variableName";
|
|
51
|
+
if (compareTypes.propertyIsEnumerable(cur)) return "atom";
|
|
52
|
+
if (status.propertyIsEnumerable(cur)) return "comment";
|
|
53
|
+
if (tags.propertyIsEnumerable(cur)) return "typeName";
|
|
54
|
+
if (storage.propertyIsEnumerable(cur)) return "modifier";
|
|
55
|
+
if (modifier.propertyIsEnumerable(cur)) return "modifier";
|
|
56
|
+
if (accessTypes.propertyIsEnumerable(cur)) return "modifier";
|
|
57
|
+
return "variableName";
|
|
58
|
+
}
|
|
59
|
+
function tokenString(quote) {
|
|
60
|
+
return function(stream, state) {
|
|
61
|
+
var escaped = false, next, end = false;
|
|
62
|
+
while ((next = stream.next()) != null) {
|
|
63
|
+
if (next == quote && !escaped) {
|
|
64
|
+
var afterNext = stream.peek();
|
|
65
|
+
if (afterNext) {
|
|
66
|
+
afterNext = afterNext.toLowerCase();
|
|
67
|
+
if (afterNext == "b" || afterNext == "h" || afterNext == "o")
|
|
68
|
+
stream.next();
|
|
69
|
+
}
|
|
70
|
+
end = true;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
escaped = !escaped && next == "\\";
|
|
74
|
+
}
|
|
75
|
+
if (end || false)
|
|
76
|
+
state.tokenize = null;
|
|
77
|
+
return "string";
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function Context(indented, column, type, align, prev) {
|
|
81
|
+
this.indented = indented;
|
|
82
|
+
this.column = column;
|
|
83
|
+
this.type = type;
|
|
84
|
+
this.align = align;
|
|
85
|
+
this.prev = prev;
|
|
86
|
+
}
|
|
87
|
+
function pushContext(state, col, type) {
|
|
88
|
+
var indent = state.indented;
|
|
89
|
+
if (state.context && state.context.type == "statement")
|
|
90
|
+
indent = state.context.indented;
|
|
91
|
+
return state.context = new Context(indent, col, type, null, state.context);
|
|
92
|
+
}
|
|
93
|
+
function popContext(state) {
|
|
94
|
+
var t = state.context.type;
|
|
95
|
+
if (t == ")" || t == "]" || t == "}")
|
|
96
|
+
state.indented = state.context.indented;
|
|
97
|
+
return state.context = state.context.prev;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
name: "asn1",
|
|
101
|
+
startState: function() {
|
|
102
|
+
return {
|
|
103
|
+
tokenize: null,
|
|
104
|
+
context: new Context(-2, 0, "top", false),
|
|
105
|
+
indented: 0,
|
|
106
|
+
startOfLine: true
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
token: function(stream, state) {
|
|
110
|
+
var ctx = state.context;
|
|
111
|
+
if (stream.sol()) {
|
|
112
|
+
if (ctx.align == null) ctx.align = false;
|
|
113
|
+
state.indented = stream.indentation();
|
|
114
|
+
state.startOfLine = true;
|
|
115
|
+
}
|
|
116
|
+
if (stream.eatSpace()) return null;
|
|
117
|
+
curPunc = null;
|
|
118
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
119
|
+
if (style == "comment") return style;
|
|
120
|
+
if (ctx.align == null) ctx.align = true;
|
|
121
|
+
if ((curPunc == ";" || curPunc == ":" || curPunc == ",") && ctx.type == "statement") {
|
|
122
|
+
popContext(state);
|
|
123
|
+
} else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
|
124
|
+
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
|
125
|
+
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
|
126
|
+
else if (curPunc == "}") {
|
|
127
|
+
while (ctx.type == "statement") ctx = popContext(state);
|
|
128
|
+
if (ctx.type == "}") ctx = popContext(state);
|
|
129
|
+
while (ctx.type == "statement") ctx = popContext(state);
|
|
130
|
+
} else if (curPunc == ctx.type) popContext(state);
|
|
131
|
+
else if (indentStatements && ((ctx.type == "}" || ctx.type == "top") && curPunc != ";" || ctx.type == "statement" && curPunc == "newstatement"))
|
|
132
|
+
pushContext(state, stream.column(), "statement");
|
|
133
|
+
state.startOfLine = false;
|
|
134
|
+
return style;
|
|
135
|
+
},
|
|
136
|
+
languageData: {
|
|
137
|
+
indentOnInput: /^\s*[{}]$/,
|
|
138
|
+
commentTokens: { line: "--" }
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export {
|
|
143
|
+
asn1
|
|
144
|
+
};
|