qwenpaw-data-console 0.3.3__py3-none-any.whl
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.
- qwenpaw_data/console/__init__.py +6 -0
- qwenpaw_data/console/__main__.py +41 -0
- qwenpaw_data/console/app.py +346 -0
- qwenpaw_data/console/config.py +36 -0
- qwenpaw_data/console/static/chat/LICENSE +201 -0
- qwenpaw_data/console/static/chat/NOTICE +36 -0
- qwenpaw_data/console/static/chat/assets/1c-E_ptFlT1.js +1 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- qwenpaw_data/console/static/chat/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- qwenpaw_data/console/static/chat/assets/abnf-DAU-g3e0.js +1 -0
- qwenpaw_data/console/static/chat/assets/abnfDiagram-VCTEODGH-DpXGf4w7.js +1 -0
- qwenpaw_data/console/static/chat/assets/accesslog-C0buwi90.js +1 -0
- qwenpaw_data/console/static/chat/assets/actionscript-DhphnMIx.js +1 -0
- qwenpaw_data/console/static/chat/assets/ada-_77AwUD5.js +1 -0
- qwenpaw_data/console/static/chat/assets/angelscript-DkK1gH6b.js +1 -0
- qwenpaw_data/console/static/chat/assets/apache-Brn5jRDy.js +1 -0
- qwenpaw_data/console/static/chat/assets/applescript-C305V1RJ.js +1 -0
- qwenpaw_data/console/static/chat/assets/arc-JII-nuOi.js +1 -0
- qwenpaw_data/console/static/chat/assets/arcade-Di44zDuw.js +1 -0
- qwenpaw_data/console/static/chat/assets/architectureDiagram-5GKGNRK7-B6Eos_q_.js +1 -0
- qwenpaw_data/console/static/chat/assets/arduino-ChxMJ4qM.js +1 -0
- qwenpaw_data/console/static/chat/assets/armasm-DBA5PfZ9.js +1 -0
- qwenpaw_data/console/static/chat/assets/asciidoc-DkG7N9fo.js +1 -0
- qwenpaw_data/console/static/chat/assets/aspectj-Bd4JJZim.js +1 -0
- qwenpaw_data/console/static/chat/assets/autohotkey-CyQYes2G.js +1 -0
- qwenpaw_data/console/static/chat/assets/autoit-BFR5O-GP.js +1 -0
- qwenpaw_data/console/static/chat/assets/avrasm-Km3oTuwA.js +1 -0
- qwenpaw_data/console/static/chat/assets/awk-Q18pxcHg.js +1 -0
- qwenpaw_data/console/static/chat/assets/axapta-BkUeD82P.js +1 -0
- qwenpaw_data/console/static/chat/assets/bash-BtPf9wd9.js +1 -0
- qwenpaw_data/console/static/chat/assets/basic-Dqucyep1.js +1 -0
- qwenpaw_data/console/static/chat/assets/blockDiagram-I7D4REHJ-BYc_XH1d.js +1 -0
- qwenpaw_data/console/static/chat/assets/bnf-BvNgz3Ki.js +1 -0
- qwenpaw_data/console/static/chat/assets/brainfuck-DEaYycn1.js +1 -0
- qwenpaw_data/console/static/chat/assets/c-BRUjisbZ.js +1 -0
- qwenpaw_data/console/static/chat/assets/c-like-CJpEhL3D.js +1 -0
- qwenpaw_data/console/static/chat/assets/c4Diagram-7LVT6UL2-9_XNQopQ.js +1 -0
- qwenpaw_data/console/static/chat/assets/cal-C8q9weLd.js +1 -0
- qwenpaw_data/console/static/chat/assets/capnproto-CXnwaqJS.js +1 -0
- qwenpaw_data/console/static/chat/assets/ceylon-DezIf8ez.js +1 -0
- qwenpaw_data/console/static/chat/assets/channel-DgdpVHS-.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-2Q5K7J3B-BslgCi0b.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-5VM5RSS4-tNHT_KbO.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-F27PBJKO-TaQlwj4Q.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-IMKFNOWR-1NSODFeh.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-JWPE2WC7-BZNC7Z1h.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-POPQ4Y6H-CT7bR_bE.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-SVP7TREG-CfMY9xr-.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-TICWLB2K-CyeYZBiV.js +1 -0
- qwenpaw_data/console/static/chat/assets/chunk-XXDRQBXY-DaM0yens.js +1 -0
- qwenpaw_data/console/static/chat/assets/classDiagram-ZZMXUADV-B2n4ZrZ_.js +1 -0
- qwenpaw_data/console/static/chat/assets/classDiagram-v2-VYDZK3BY-B2n4ZrZ_.js +1 -0
- qwenpaw_data/console/static/chat/assets/clean-DBfJvZvU.js +1 -0
- qwenpaw_data/console/static/chat/assets/clojure-DvIK4IJ-.js +1 -0
- qwenpaw_data/console/static/chat/assets/clojure-repl-CIMyeFDp.js +1 -0
- qwenpaw_data/console/static/chat/assets/cmake-BF4aSWQ4.js +1 -0
- qwenpaw_data/console/static/chat/assets/coffeescript-Zg6SOVOu.js +1 -0
- qwenpaw_data/console/static/chat/assets/coq-Dt4ZZjLR.js +1 -0
- qwenpaw_data/console/static/chat/assets/cos-Cx6A87Tv.js +1 -0
- qwenpaw_data/console/static/chat/assets/cose-bilkent-JH36ORCC-B1eS5UwS.js +1 -0
- qwenpaw_data/console/static/chat/assets/cpp-Cfu0DVrH.js +1 -0
- qwenpaw_data/console/static/chat/assets/crmsh-BBntTjcj.js +1 -0
- qwenpaw_data/console/static/chat/assets/crystal-D6HAEC94.js +1 -0
- qwenpaw_data/console/static/chat/assets/csharp-BApmHgMo.js +1 -0
- qwenpaw_data/console/static/chat/assets/csp-yiBAeY3-.js +1 -0
- qwenpaw_data/console/static/chat/assets/css-GgY1dwTW.js +1 -0
- qwenpaw_data/console/static/chat/assets/cynefin-OW5HDTMX-CBuKLcVL.js +15 -0
- qwenpaw_data/console/static/chat/assets/cynefinDiagram-5FMLGOSQ-DTZzpxRh.js +1 -0
- qwenpaw_data/console/static/chat/assets/cytoscape.esm-CPepm-69.js +9 -0
- qwenpaw_data/console/static/chat/assets/d-BkwH4IgN.js +1 -0
- qwenpaw_data/console/static/chat/assets/dagre-GXQ25YYZ-BwVIKAs5.js +1 -0
- qwenpaw_data/console/static/chat/assets/dart-CtHrTJzC.js +1 -0
- qwenpaw_data/console/static/chat/assets/defaultLocale-BsH76t_G.js +1 -0
- qwenpaw_data/console/static/chat/assets/delphi-DmJQi4nC.js +1 -0
- qwenpaw_data/console/static/chat/assets/diagram-S7CK7UJ4-yal6zY4X.js +1 -0
- qwenpaw_data/console/static/chat/assets/diagram-UQ7AKVKN-CH6vMCtU.js +1 -0
- qwenpaw_data/console/static/chat/assets/diagram-VSXAHHWV-CMiMZ-Gi.js +1 -0
- qwenpaw_data/console/static/chat/assets/diagram-VX7I27RA-xuCSEJ6F.js +1 -0
- qwenpaw_data/console/static/chat/assets/diagram-Z3DM3KII-bGYvycck.js +1 -0
- qwenpaw_data/console/static/chat/assets/diff-BfWl01EF.js +1 -0
- qwenpaw_data/console/static/chat/assets/django-Bl3G8IQK.js +1 -0
- qwenpaw_data/console/static/chat/assets/dns-B6gqhdhA.js +1 -0
- qwenpaw_data/console/static/chat/assets/dockerfile-Bld57ogj.js +1 -0
- qwenpaw_data/console/static/chat/assets/dos-DZVjTbYJ.js +1 -0
- qwenpaw_data/console/static/chat/assets/dsconfig-D_0EwNF0.js +1 -0
- qwenpaw_data/console/static/chat/assets/dts-Cm8iHdni.js +1 -0
- qwenpaw_data/console/static/chat/assets/dust-wRoMbBQx.js +1 -0
- qwenpaw_data/console/static/chat/assets/ebnf-Vk9fF0l5.js +1 -0
- qwenpaw_data/console/static/chat/assets/ebnfDiagram-PWID7BFC-DbllIysu.js +1 -0
- qwenpaw_data/console/static/chat/assets/elixir-CF_CiVBw.js +1 -0
- qwenpaw_data/console/static/chat/assets/elm-7N9Lwe4W.js +1 -0
- qwenpaw_data/console/static/chat/assets/erDiagram-RLTQ6QDP-DkeeiEbn.js +1 -0
- qwenpaw_data/console/static/chat/assets/erb-TCXkaKYz.js +1 -0
- qwenpaw_data/console/static/chat/assets/erlang-gHBwCKWU.js +1 -0
- qwenpaw_data/console/static/chat/assets/erlang-repl-KaUlLBth.js +1 -0
- qwenpaw_data/console/static/chat/assets/excel-XtKOsfvK.js +1 -0
- qwenpaw_data/console/static/chat/assets/fix-T2Dr91_T.js +1 -0
- qwenpaw_data/console/static/chat/assets/flix-D_XT_kW8.js +1 -0
- qwenpaw_data/console/static/chat/assets/flowDiagram-HODETNUW-CcOG_MWj.js +1 -0
- qwenpaw_data/console/static/chat/assets/fortran-CP5f8wvf.js +1 -0
- qwenpaw_data/console/static/chat/assets/fsharp-BkGll-EB.js +1 -0
- qwenpaw_data/console/static/chat/assets/gams-o16toMXv.js +1 -0
- qwenpaw_data/console/static/chat/assets/ganttDiagram-EL5Y4UJY-DNu5BQQo.js +1 -0
- qwenpaw_data/console/static/chat/assets/gauss-BTBM3ecu.js +1 -0
- qwenpaw_data/console/static/chat/assets/gcode-Dz5LN0oo.js +1 -0
- qwenpaw_data/console/static/chat/assets/gherkin-dhd77xQC.js +1 -0
- qwenpaw_data/console/static/chat/assets/gitGraphDiagram-WWUBYQGX-DZPHkVv0.js +1 -0
- qwenpaw_data/console/static/chat/assets/glsl-CgnMOdS1.js +1 -0
- qwenpaw_data/console/static/chat/assets/gml-YfdYuSkg.js +1 -0
- qwenpaw_data/console/static/chat/assets/go-srewzoXh.js +1 -0
- qwenpaw_data/console/static/chat/assets/golo-C8S_y8ns.js +1 -0
- qwenpaw_data/console/static/chat/assets/gradle-BtvSrd5p.js +1 -0
- qwenpaw_data/console/static/chat/assets/groovy-Id9aVu8j.js +1 -0
- qwenpaw_data/console/static/chat/assets/haml-BaMZbL-G.js +1 -0
- qwenpaw_data/console/static/chat/assets/handlebars-BKNwwpAO.js +1 -0
- qwenpaw_data/console/static/chat/assets/haskell-DBE9YyBk.js +1 -0
- qwenpaw_data/console/static/chat/assets/haxe-09Ga-o-P.js +1 -0
- qwenpaw_data/console/static/chat/assets/hsp-Ce54z5ka.js +1 -0
- qwenpaw_data/console/static/chat/assets/htmlbars-Q4piJOB9.js +1 -0
- qwenpaw_data/console/static/chat/assets/http-D0Xsk6Cj.js +1 -0
- qwenpaw_data/console/static/chat/assets/hy-DOZ63vhg.js +1 -0
- qwenpaw_data/console/static/chat/assets/index-BM5hVpCy.css +1 -0
- qwenpaw_data/console/static/chat/assets/index-D1VdM1rB.js +103 -0
- qwenpaw_data/console/static/chat/assets/index-DRPRyF2H.js +4 -0
- qwenpaw_data/console/static/chat/assets/infoDiagram-27XIBGKW-CUj9gSPy.js +1 -0
- qwenpaw_data/console/static/chat/assets/inform7-BzTdFI0y.js +1 -0
- qwenpaw_data/console/static/chat/assets/ini-DyQjmXS2.js +1 -0
- qwenpaw_data/console/static/chat/assets/init-C0SZ43gy.js +1 -0
- qwenpaw_data/console/static/chat/assets/irpf90-DPr6qeax.js +1 -0
- qwenpaw_data/console/static/chat/assets/isbl-C203GWWI.js +1 -0
- qwenpaw_data/console/static/chat/assets/ishikawaDiagram-5VMMS53U-DboJh7Mb.js +1 -0
- qwenpaw_data/console/static/chat/assets/java-JeDDK9U5.js +1 -0
- qwenpaw_data/console/static/chat/assets/javascript-B5xd5ACN.js +1 -0
- qwenpaw_data/console/static/chat/assets/jboss-cli-nN_Nv8Q-.js +1 -0
- qwenpaw_data/console/static/chat/assets/journeyDiagram-3NMN7TZE-I-3PLma0.js +1 -0
- qwenpaw_data/console/static/chat/assets/json-D5Icr9nB.js +1 -0
- qwenpaw_data/console/static/chat/assets/julia-FDhUBpFD.js +1 -0
- qwenpaw_data/console/static/chat/assets/julia-repl-CD8uEyLm.js +1 -0
- qwenpaw_data/console/static/chat/assets/kanban-definition-UXKFOSKX-EG0jUC9x.js +1 -0
- qwenpaw_data/console/static/chat/assets/kotlin-Cult7L3_.js +1 -0
- qwenpaw_data/console/static/chat/assets/lasso-b2vJbB3h.js +1 -0
- qwenpaw_data/console/static/chat/assets/latex-a913uWn3.js +1 -0
- qwenpaw_data/console/static/chat/assets/layout-BJpn3Pk7.js +1 -0
- qwenpaw_data/console/static/chat/assets/ldif-C73daQE4.js +1 -0
- qwenpaw_data/console/static/chat/assets/leaf-CLellkgY.js +1 -0
- qwenpaw_data/console/static/chat/assets/less-D6vp4tOm.js +1 -0
- qwenpaw_data/console/static/chat/assets/linear-D450RbDk.js +1 -0
- qwenpaw_data/console/static/chat/assets/lisp-CgO0doZw.js +1 -0
- qwenpaw_data/console/static/chat/assets/livecodeserver-smUCGWHJ.js +1 -0
- qwenpaw_data/console/static/chat/assets/livescript-xU_koI5e.js +1 -0
- qwenpaw_data/console/static/chat/assets/llvm-DIXMoyTE.js +1 -0
- qwenpaw_data/console/static/chat/assets/lsl-DlD5r4k3.js +1 -0
- qwenpaw_data/console/static/chat/assets/lua-CSsWWS0L.js +1 -0
- qwenpaw_data/console/static/chat/assets/makefile-BWQoB7aa.js +1 -0
- qwenpaw_data/console/static/chat/assets/markdown-Da5b4-aR.js +1 -0
- qwenpaw_data/console/static/chat/assets/mathematica-BUUtdY6r.js +1 -0
- qwenpaw_data/console/static/chat/assets/matlab-M_CGv5Q8.js +1 -0
- qwenpaw_data/console/static/chat/assets/maxima-DnepNSYe.js +1 -0
- qwenpaw_data/console/static/chat/assets/mel-BtKpRO52.js +1 -0
- qwenpaw_data/console/static/chat/assets/mercury-BZO-mvKi.js +1 -0
- qwenpaw_data/console/static/chat/assets/mindmap-definition-YA3MSWOX-C7fGYxiP.js +1 -0
- qwenpaw_data/console/static/chat/assets/mipsasm-CgBJo6IJ.js +1 -0
- qwenpaw_data/console/static/chat/assets/mizar-BKgCxuI7.js +1 -0
- qwenpaw_data/console/static/chat/assets/mojolicious-CT1yLiKh.js +1 -0
- qwenpaw_data/console/static/chat/assets/monkey-Ok3xSXYM.js +1 -0
- qwenpaw_data/console/static/chat/assets/moonscript-BxlJl6Ji.js +1 -0
- qwenpaw_data/console/static/chat/assets/n1ql-D1zvVKKX.js +1 -0
- qwenpaw_data/console/static/chat/assets/nginx-BcvQFf5D.js +1 -0
- qwenpaw_data/console/static/chat/assets/nim-BRXAFafj.js +1 -0
- qwenpaw_data/console/static/chat/assets/nix-x1b4X0k4.js +1 -0
- qwenpaw_data/console/static/chat/assets/node-repl-BoxeZMg9.js +1 -0
- qwenpaw_data/console/static/chat/assets/nsis-BRM8zIRA.js +1 -0
- qwenpaw_data/console/static/chat/assets/objectivec-DYsl1YK0.js +1 -0
- qwenpaw_data/console/static/chat/assets/ocaml-BnOteYwv.js +1 -0
- qwenpaw_data/console/static/chat/assets/openscad-mmM3a_DD.js +1 -0
- qwenpaw_data/console/static/chat/assets/ordinal-CVjKTKEW.js +1 -0
- qwenpaw_data/console/static/chat/assets/oxygene-CKzhxwFm.js +1 -0
- qwenpaw_data/console/static/chat/assets/parser3-sFka91yn.js +1 -0
- qwenpaw_data/console/static/chat/assets/pegDiagram-XKGWAZYB-jYDm_zo7.js +1 -0
- qwenpaw_data/console/static/chat/assets/perl-BLDl19-Q.js +1 -0
- qwenpaw_data/console/static/chat/assets/pf-DZcqyZ0S.js +1 -0
- qwenpaw_data/console/static/chat/assets/pgsql-BpgCz4L3.js +1 -0
- qwenpaw_data/console/static/chat/assets/php-Rrz8C5vx.js +1 -0
- qwenpaw_data/console/static/chat/assets/php-template-iIBWNQwm.js +1 -0
- qwenpaw_data/console/static/chat/assets/pieDiagram-E7YTZNPT-CgUnmlGm.js +1 -0
- qwenpaw_data/console/static/chat/assets/plaintext-Bh8LJSiR.js +1 -0
- qwenpaw_data/console/static/chat/assets/pony-BT0lKOqf.js +1 -0
- qwenpaw_data/console/static/chat/assets/powershell-lgnO0RQF.js +1 -0
- qwenpaw_data/console/static/chat/assets/processing-B9NeB5o7.js +1 -0
- qwenpaw_data/console/static/chat/assets/profile-DP-30Z_G.js +1 -0
- qwenpaw_data/console/static/chat/assets/prolog-CqqxPE9L.js +1 -0
- qwenpaw_data/console/static/chat/assets/properties-FMx995aZ.js +1 -0
- qwenpaw_data/console/static/chat/assets/protobuf-B2oP4Dfb.js +1 -0
- qwenpaw_data/console/static/chat/assets/puppet-Du9nUaXB.js +1 -0
- qwenpaw_data/console/static/chat/assets/purebasic-B6pScflw.js +1 -0
- qwenpaw_data/console/static/chat/assets/python-Bcxq2IT6.js +1 -0
- qwenpaw_data/console/static/chat/assets/python-repl-BLbpZXr3.js +1 -0
- qwenpaw_data/console/static/chat/assets/q-CnsC_nVj.js +1 -0
- qwenpaw_data/console/static/chat/assets/qml-B8mpbXhb.js +1 -0
- qwenpaw_data/console/static/chat/assets/quadrantDiagram-AXDQQJYC-8PQuEKve.js +1 -0
- qwenpaw_data/console/static/chat/assets/r-B28NnjUN.js +1 -0
- qwenpaw_data/console/static/chat/assets/railroadDiagram-O6MQD6OU-DNfyc7SX.js +1 -0
- qwenpaw_data/console/static/chat/assets/reasonml-Bi04_Lqx.js +1 -0
- qwenpaw_data/console/static/chat/assets/requirementDiagram-BXWQKSXE-CNXFf8L0.js +1 -0
- qwenpaw_data/console/static/chat/assets/rib-DPhoP7F1.js +1 -0
- qwenpaw_data/console/static/chat/assets/roboconf-SpU-W6WF.js +1 -0
- qwenpaw_data/console/static/chat/assets/routeros--cCm2A-h.js +1 -0
- qwenpaw_data/console/static/chat/assets/rsl-CguUwRek.js +1 -0
- qwenpaw_data/console/static/chat/assets/ruby-Bn_aL_8s.js +1 -0
- qwenpaw_data/console/static/chat/assets/ruleslanguage-_YzUW9j3.js +1 -0
- qwenpaw_data/console/static/chat/assets/rust-x9KrCVSf.js +1 -0
- qwenpaw_data/console/static/chat/assets/sankeyDiagram-P5KCCOFB-h81LUvls.js +1 -0
- qwenpaw_data/console/static/chat/assets/sas-CmiVkg3u.js +1 -0
- qwenpaw_data/console/static/chat/assets/scala-nPAxMKW4.js +1 -0
- qwenpaw_data/console/static/chat/assets/scheme-D5SxDZmx.js +1 -0
- qwenpaw_data/console/static/chat/assets/scilab-CrStCeos.js +1 -0
- qwenpaw_data/console/static/chat/assets/scss-0-aajcoJ.js +1 -0
- qwenpaw_data/console/static/chat/assets/sequenceDiagram-WJ2MYXX4-CvE3nbJA.js +1 -0
- qwenpaw_data/console/static/chat/assets/shell-CDgUgCuq.js +1 -0
- qwenpaw_data/console/static/chat/assets/sizeCapture-INFHLROL-CQxT2uVT.js +1 -0
- qwenpaw_data/console/static/chat/assets/smali-Wqof0CF4.js +1 -0
- qwenpaw_data/console/static/chat/assets/smalltalk-U8Ff14rn.js +1 -0
- qwenpaw_data/console/static/chat/assets/sml-BW-fFl-y.js +1 -0
- qwenpaw_data/console/static/chat/assets/sqf-Lf_8XtU6.js +1 -0
- qwenpaw_data/console/static/chat/assets/sql-CeqdBbPo.js +1 -0
- qwenpaw_data/console/static/chat/assets/sql_more-D7cMs_pa.js +1 -0
- qwenpaw_data/console/static/chat/assets/stan-CF843Ktm.js +1 -0
- qwenpaw_data/console/static/chat/assets/stata-CdNsc8Fa.js +1 -0
- qwenpaw_data/console/static/chat/assets/stateDiagram-D77RDMKH-BSQ1L5-U.js +1 -0
- qwenpaw_data/console/static/chat/assets/stateDiagram-v2-MP3YSRHH-BHLvu0RI.js +1 -0
- qwenpaw_data/console/static/chat/assets/step21-BIqgA03k.js +1 -0
- qwenpaw_data/console/static/chat/assets/stylus-3RNQkNHy.js +1 -0
- qwenpaw_data/console/static/chat/assets/subunit-DQn4kOrl.js +1 -0
- qwenpaw_data/console/static/chat/assets/swift-rQv-x39A.js +1 -0
- qwenpaw_data/console/static/chat/assets/swimlanes-42K2YHIH-CHsJGvEA.js +1 -0
- qwenpaw_data/console/static/chat/assets/swimlanesDiagram-VR7AAH4N-BZlOYvTf.js +1 -0
- qwenpaw_data/console/static/chat/assets/taggerscript-BCyMhPgW.js +1 -0
- qwenpaw_data/console/static/chat/assets/tap-BuhBbI3S.js +1 -0
- qwenpaw_data/console/static/chat/assets/tcl-Cl-7Fn3P.js +1 -0
- qwenpaw_data/console/static/chat/assets/thrift-BUMYqU-S.js +1 -0
- qwenpaw_data/console/static/chat/assets/timeline-definition-24CTP7MA-BpCHSIu0.js +1 -0
- qwenpaw_data/console/static/chat/assets/tp-DqKJupkg.js +1 -0
- qwenpaw_data/console/static/chat/assets/twig-ZF2UiY3L.js +1 -0
- qwenpaw_data/console/static/chat/assets/typescript-HpEN0Q0T.js +1 -0
- qwenpaw_data/console/static/chat/assets/vala-BDUxtHW4.js +1 -0
- qwenpaw_data/console/static/chat/assets/vbnet-uPO4ocsY.js +1 -0
- qwenpaw_data/console/static/chat/assets/vbscript-B4v4MddX.js +1 -0
- qwenpaw_data/console/static/chat/assets/vbscript-html-CYoPXGpn.js +1 -0
- qwenpaw_data/console/static/chat/assets/vennDiagram-4TSXK5OY-B1soVSso.js +1 -0
- qwenpaw_data/console/static/chat/assets/verilog-DtFxsmoD.js +1 -0
- qwenpaw_data/console/static/chat/assets/vhdl-nanIjoeu.js +1 -0
- qwenpaw_data/console/static/chat/assets/vim-okDqLUeZ.js +1 -0
- qwenpaw_data/console/static/chat/assets/wardleyDiagram-VM6X3IG4-CVq-yZJl.js +1 -0
- qwenpaw_data/console/static/chat/assets/x86asm-CEI6_yvm.js +1 -0
- qwenpaw_data/console/static/chat/assets/xl-Bt-fmtwS.js +1 -0
- qwenpaw_data/console/static/chat/assets/xml-DnmRAcWJ.js +1 -0
- qwenpaw_data/console/static/chat/assets/xquery-CMtbVfA4.js +1 -0
- qwenpaw_data/console/static/chat/assets/xychartDiagram-S5SC5T6Z-HMl9V-bq.js +1 -0
- qwenpaw_data/console/static/chat/assets/yaml-BYZ_brMk.js +1 -0
- qwenpaw_data/console/static/chat/assets/zephir-BrEywsZs.js +1 -0
- qwenpaw_data/console/static/chat/data-console-mascot-blue.png +0 -0
- qwenpaw_data/console/static/chat/index.html +16 -0
- qwenpaw_data/console/static/chat/mascot-blue-transparent.png +0 -0
- qwenpaw_data/console/static/chat/qwenpaw-data-brand.png +0 -0
- qwenpaw_data/console/static/databridge/LICENSE +201 -0
- qwenpaw_data/console/static/databridge/NOTICE +36 -0
- qwenpaw_data/console/static/databridge/assets/Add-hCxcaf_M.js +1 -0
- qwenpaw_data/console/static/databridge/assets/BusinessDomainManagement-BNoe1LTe.js +1 -0
- qwenpaw_data/console/static/databridge/assets/CMGraph-CkhJVeMF.css +1 -0
- qwenpaw_data/console/static/databridge/assets/CMGraph-Dt0LKjJi.js +1 -0
- qwenpaw_data/console/static/databridge/assets/ColumnManagement-C6zVidPy.js +1 -0
- qwenpaw_data/console/static/databridge/assets/DataConnection-COlpWZma.css +1 -0
- qwenpaw_data/console/static/databridge/assets/DataConnection-gfcJcUaS.js +1 -0
- qwenpaw_data/console/static/databridge/assets/DataSourceManagement-DhGK-7pp.js +1 -0
- qwenpaw_data/console/static/databridge/assets/DatasetManagement-B1KeZBY7.js +1 -0
- qwenpaw_data/console/static/databridge/assets/DimensionCaliberManagement-895_qpVT.js +1 -0
- qwenpaw_data/console/static/databridge/assets/DimensionManagement-CW1PgQSZ.js +1 -0
- qwenpaw_data/console/static/databridge/assets/DimensionValueManagement-BWdWqKOd.js +1 -0
- qwenpaw_data/console/static/databridge/assets/ExcelImport-B86kUGQS.js +1 -0
- qwenpaw_data/console/static/databridge/assets/KGDocs-Cy4cVk5u.css +1 -0
- qwenpaw_data/console/static/databridge/assets/KGDocs-DdaokvDx.js +1 -0
- qwenpaw_data/console/static/databridge/assets/MetricFormulaLib-05u1Tpkb.js +1 -0
- qwenpaw_data/console/static/databridge/assets/MetricLib-DURJo7w7.js +1 -0
- qwenpaw_data/console/static/databridge/assets/MetricLibAdd-BfdBPhUi.js +1 -0
- qwenpaw_data/console/static/databridge/assets/ModelConfig-BKkRX_5D.css +1 -0
- qwenpaw_data/console/static/databridge/assets/ModelConfig-TFajl-Kd.js +1 -0
- qwenpaw_data/console/static/databridge/assets/NotFoundPage-CJDCqf-m.js +1 -0
- qwenpaw_data/console/static/databridge/assets/RouteErrorBoundary-CRWCGTLX.js +1 -0
- qwenpaw_data/console/static/databridge/assets/SemanticWeaving-CqPPx98h.js +1 -0
- qwenpaw_data/console/static/databridge/assets/api-l15bDSWd.js +1 -0
- qwenpaw_data/console/static/databridge/assets/authHeaders-IC-bJeXE.js +1 -0
- qwenpaw_data/console/static/databridge/assets/constants-D7HpD68S.js +1 -0
- qwenpaw_data/console/static/databridge/assets/datasetManagement-DQPbO0_a.js +1 -0
- qwenpaw_data/console/static/databridge/assets/index-BUmT5oyi.css +1 -0
- qwenpaw_data/console/static/databridge/assets/index.js +2 -0
- qwenpaw_data/console/static/databridge/assets/listResponse-Cn55Ndy0.js +1 -0
- qwenpaw_data/console/static/databridge/assets/metricFormulaLib-6Wqe8ygR.js +1 -0
- qwenpaw_data/console/static/databridge/assets/metricLib-BC1L_Y5p.js +1 -0
- qwenpaw_data/console/static/databridge/assets/options-B9GMJBW7.js +1 -0
- qwenpaw_data/console/static/databridge/assets/rolldown-runtime-Jbw_qCH-.js +1 -0
- qwenpaw_data/console/static/databridge/assets/store-B6LAXNYF.js +1 -0
- qwenpaw_data/console/static/databridge/assets/useAppMessage-CyAB8-38.js +1 -0
- qwenpaw_data/console/static/databridge/assets/useFilterOptions-D58v_xd2.js +1 -0
- qwenpaw_data/console/static/databridge/assets/useModal-CikaPbtl.js +1 -0
- qwenpaw_data/console/static/databridge/assets/utils-BSL1l1Je.js +1 -0
- qwenpaw_data/console/static/databridge/assets/vendor-graph-DnI51N_W.js +1 -0
- qwenpaw_data/console/static/databridge/assets/vendor-ui-CfDOrIzD.js +1 -0
- qwenpaw_data/console/static/databridge/assets/vendor-ui-qlGUjm9v.css +1 -0
- qwenpaw_data/console/static/databridge/favicon.png +0 -0
- qwenpaw_data/console/static/databridge/index.html +21 -0
- qwenpaw_data/console/static/databridge/qwenpaw-data-wordmark.png +0 -0
- qwenpaw_data_console-0.3.3.dist-info/METADATA +106 -0
- qwenpaw_data_console-0.3.3.dist-info/RECORD +374 -0
- qwenpaw_data_console-0.3.3.dist-info/WHEEL +4 -0
- qwenpaw_data_console-0.3.3.dist-info/entry_points.txt +2 -0
- qwenpaw_data_console-0.3.3.dist-info/licenses/LICENSE +201 -0
- qwenpaw_data_console-0.3.3.dist-info/licenses/NOTICE +36 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Run a loopback portal against existing Host and DataBridge services."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import json
|
|
5
|
+
import os
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from . import ConsoleConfig, create_app
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def main():
|
|
12
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
13
|
+
parser.add_argument("--host-url", default="http://127.0.0.1:8766")
|
|
14
|
+
parser.add_argument("--bridge-url", help="Optional local DataBridge API URL")
|
|
15
|
+
parser.add_argument("--port", type=int, default=8767)
|
|
16
|
+
parser.add_argument(
|
|
17
|
+
"--config", type=Path, help="Public ConsoleConfig JSON; no credentials"
|
|
18
|
+
)
|
|
19
|
+
args = parser.parse_args()
|
|
20
|
+
token = os.environ.get("QWENPAW_DATA_API_TOKEN", "")
|
|
21
|
+
if not token:
|
|
22
|
+
parser.error("Set QWENPAW_DATA_API_TOKEN for the Host service")
|
|
23
|
+
config = (
|
|
24
|
+
ConsoleConfig.model_validate(json.loads(args.config.read_text()))
|
|
25
|
+
if args.config
|
|
26
|
+
else ConsoleConfig()
|
|
27
|
+
)
|
|
28
|
+
app = create_app(
|
|
29
|
+
host_url=args.host_url,
|
|
30
|
+
token=token,
|
|
31
|
+
bridge_url=args.bridge_url,
|
|
32
|
+
bridge_token=os.environ.get("QWENPAW_DATA_CONTEXT_API_TOKEN") or token,
|
|
33
|
+
config=config,
|
|
34
|
+
)
|
|
35
|
+
import uvicorn
|
|
36
|
+
|
|
37
|
+
uvicorn.run(app, host="127.0.0.1", port=args.port, workers=1)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
if __name__ == "__main__":
|
|
41
|
+
main()
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
"""Loopback chat and official DataBridge UIs with server-side API credentials."""
|
|
2
|
+
|
|
3
|
+
from contextlib import AsyncExitStack, asynccontextmanager
|
|
4
|
+
import json
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
import re
|
|
7
|
+
from urllib.parse import urlsplit
|
|
8
|
+
|
|
9
|
+
import httpx
|
|
10
|
+
from fastapi import FastAPI, HTTPException, Request
|
|
11
|
+
from fastapi.responses import (
|
|
12
|
+
FileResponse,
|
|
13
|
+
JSONResponse,
|
|
14
|
+
RedirectResponse,
|
|
15
|
+
Response,
|
|
16
|
+
StreamingResponse,
|
|
17
|
+
)
|
|
18
|
+
from starlette.background import BackgroundTask
|
|
19
|
+
from starlette.exceptions import HTTPException as StarletteHTTPException
|
|
20
|
+
from starlette.middleware.trustedhost import TrustedHostMiddleware
|
|
21
|
+
from starlette.staticfiles import StaticFiles
|
|
22
|
+
|
|
23
|
+
from .config import ConsoleConfig
|
|
24
|
+
|
|
25
|
+
STATIC = Path(__file__).parent / "static"
|
|
26
|
+
FRONTEND = STATIC / "chat"
|
|
27
|
+
BRIDGE_FRONTEND = STATIC / "databridge"
|
|
28
|
+
ROUTES = re.compile(
|
|
29
|
+
r"^(auth/status|datasources|datasets|"
|
|
30
|
+
r"console/(chat(?:/stop)?|upload|attachments/[A-Za-z0-9_-]+|capabilities)|"
|
|
31
|
+
r"preferences/(providers(?:/[^/]+(?:/models(?:/[^/]+)?)?)?|active-models|runtime-settings)|"
|
|
32
|
+
r"cron/jobs(?:/[A-Za-z0-9_-]+(?:/(pause|resume|run))?)?|"
|
|
33
|
+
r"sessions(?:/[A-Za-z0-9_-]+(?:/(snapshot|fork|skill-drafts)|"
|
|
34
|
+
r"/chats(?:/[A-Za-z0-9_-]+(?:/(events|trace|stop|steer|clarification/answer|plan/edit|feedback(?:/reaction)?))?)?|"
|
|
35
|
+
r"/settlement/(cards(?:/[A-Za-z0-9_-]+/(confirm|dismiss))?|skill-proposals)|"
|
|
36
|
+
r"/artifacts(?:/file)?|/files/access)?)?)$"
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def create_app(
|
|
41
|
+
*,
|
|
42
|
+
host_url,
|
|
43
|
+
token,
|
|
44
|
+
config=None,
|
|
45
|
+
routers=(),
|
|
46
|
+
transport=None,
|
|
47
|
+
frontend=None,
|
|
48
|
+
bridge_url=None,
|
|
49
|
+
bridge_token=None,
|
|
50
|
+
bridge_frontend=None,
|
|
51
|
+
bridge_transport=None,
|
|
52
|
+
):
|
|
53
|
+
"""Serve packaged UIs and forward local APIs without exposing service tokens.
|
|
54
|
+
|
|
55
|
+
Host and DataBridge keep their own lifecycles. Optional transports and asset
|
|
56
|
+
roots support embedding, frontend development, and contract tests.
|
|
57
|
+
"""
|
|
58
|
+
config = config or ConsoleConfig()
|
|
59
|
+
browser_config = config.browser_config(databridge=bool(bridge_url))
|
|
60
|
+
frontend = Path(frontend or FRONTEND).resolve()
|
|
61
|
+
if not (frontend / "index.html").is_file():
|
|
62
|
+
raise ValueError(
|
|
63
|
+
"Console assets missing; install the built wheel or run scripts/build_console.py in QwenPaw-Data"
|
|
64
|
+
)
|
|
65
|
+
chat_assets = StaticFiles(directory=frontend, follow_symlink=False)
|
|
66
|
+
origin = urlsplit(host_url)
|
|
67
|
+
if (
|
|
68
|
+
origin.scheme != "http"
|
|
69
|
+
or origin.hostname not in {"127.0.0.1", "localhost"}
|
|
70
|
+
or origin.username
|
|
71
|
+
or origin.password
|
|
72
|
+
or origin.path not in ("", "/")
|
|
73
|
+
or origin.query
|
|
74
|
+
or origin.fragment
|
|
75
|
+
):
|
|
76
|
+
raise ValueError("Host API must be on loopback")
|
|
77
|
+
if not token:
|
|
78
|
+
raise ValueError("Host API token is required")
|
|
79
|
+
if bridge_url:
|
|
80
|
+
origin = urlsplit(bridge_url)
|
|
81
|
+
if (
|
|
82
|
+
origin.scheme != "http"
|
|
83
|
+
or origin.hostname not in {"127.0.0.1", "localhost"}
|
|
84
|
+
or origin.username
|
|
85
|
+
or origin.password
|
|
86
|
+
or origin.path not in ("", "/")
|
|
87
|
+
or origin.query
|
|
88
|
+
or origin.fragment
|
|
89
|
+
):
|
|
90
|
+
raise ValueError("DataBridge API must be on loopback")
|
|
91
|
+
bridge_url = bridge_url.rstrip("/")
|
|
92
|
+
bridge_frontend = Path(bridge_frontend or BRIDGE_FRONTEND).resolve()
|
|
93
|
+
if not (bridge_frontend / "index.html").is_file():
|
|
94
|
+
raise ValueError(
|
|
95
|
+
"DataBridge assets missing; install the built Console wheel or run scripts/build_console.py"
|
|
96
|
+
)
|
|
97
|
+
bridge_assets = StaticFiles(directory=bridge_frontend, follow_symlink=False)
|
|
98
|
+
|
|
99
|
+
@asynccontextmanager
|
|
100
|
+
async def lifespan(app):
|
|
101
|
+
async with AsyncExitStack() as stack:
|
|
102
|
+
client = await stack.enter_async_context(
|
|
103
|
+
httpx.AsyncClient(
|
|
104
|
+
base_url=host_url,
|
|
105
|
+
transport=transport,
|
|
106
|
+
headers={"Authorization": "Bearer " + token},
|
|
107
|
+
timeout=httpx.Timeout(30, read=None),
|
|
108
|
+
follow_redirects=False,
|
|
109
|
+
)
|
|
110
|
+
)
|
|
111
|
+
app.state.client = client
|
|
112
|
+
if bridge_url:
|
|
113
|
+
app.state.bridge_client = await stack.enter_async_context(
|
|
114
|
+
httpx.AsyncClient(
|
|
115
|
+
base_url=bridge_url,
|
|
116
|
+
transport=bridge_transport,
|
|
117
|
+
headers={"Authorization": "Bearer " + (bridge_token or token)},
|
|
118
|
+
timeout=httpx.Timeout(30, read=None),
|
|
119
|
+
follow_redirects=False,
|
|
120
|
+
)
|
|
121
|
+
)
|
|
122
|
+
yield
|
|
123
|
+
|
|
124
|
+
app = FastAPI(lifespan=lifespan, docs_url=None, redoc_url=None, openapi_url=None)
|
|
125
|
+
app.add_middleware(
|
|
126
|
+
TrustedHostMiddleware, allowed_hosts=["127.0.0.1", "localhost", "testserver"]
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
@app.middleware("http")
|
|
130
|
+
async def local_access(request, call_next):
|
|
131
|
+
if request.client and request.client.host not in {
|
|
132
|
+
"127.0.0.1",
|
|
133
|
+
"::1",
|
|
134
|
+
"testclient",
|
|
135
|
+
}:
|
|
136
|
+
return Response("Loopback only", status_code=403)
|
|
137
|
+
if request.url.path.startswith(("/api/", "/portal/", "/databridge/api/")):
|
|
138
|
+
# A custom header plus same-origin checks prevent cross-site pages
|
|
139
|
+
# from using this local proxy as an authenticated API relay.
|
|
140
|
+
# The Console opens HTML previews in a new tab. Permit only same-origin
|
|
141
|
+
# navigations to the guarded file endpoint; sandbox HTML below.
|
|
142
|
+
same_origin_file = (
|
|
143
|
+
request.method == "GET"
|
|
144
|
+
and (
|
|
145
|
+
request.url.path.endswith("/files/access")
|
|
146
|
+
or re.fullmatch(
|
|
147
|
+
r"/databridge/api/v1/docs/[^/]+/download", request.url.path
|
|
148
|
+
)
|
|
149
|
+
)
|
|
150
|
+
and request.headers.get("sec-fetch-site") == "same-origin"
|
|
151
|
+
and request.headers.get("referer", "").startswith(str(request.base_url))
|
|
152
|
+
)
|
|
153
|
+
if request.headers.get("x-qwenpaw-console") != "1" and not same_origin_file:
|
|
154
|
+
return Response("Portal header required", status_code=403)
|
|
155
|
+
if request.headers.get("origin") not in (
|
|
156
|
+
None,
|
|
157
|
+
str(request.base_url).rstrip("/"),
|
|
158
|
+
):
|
|
159
|
+
return Response("Origin rejected", status_code=403)
|
|
160
|
+
response = await call_next(request)
|
|
161
|
+
response.headers["Cache-Control"] = "no-store"
|
|
162
|
+
response.headers["X-Content-Type-Options"] = "nosniff"
|
|
163
|
+
response.headers["Referrer-Policy"] = "same-origin"
|
|
164
|
+
response.headers["X-Frame-Options"] = "SAMEORIGIN"
|
|
165
|
+
if request.url.path.startswith(
|
|
166
|
+
"/portal/"
|
|
167
|
+
) and "text/html" in response.headers.get("content-type", ""):
|
|
168
|
+
response.headers["Content-Security-Policy"] = (
|
|
169
|
+
"sandbox allow-scripts allow-downloads"
|
|
170
|
+
)
|
|
171
|
+
return response
|
|
172
|
+
|
|
173
|
+
@app.api_route(
|
|
174
|
+
"/databridge/api/{path:path}", methods=["GET", "POST", "PUT", "PATCH", "DELETE"]
|
|
175
|
+
)
|
|
176
|
+
async def bridge_proxy(path, request: Request):
|
|
177
|
+
if (
|
|
178
|
+
not bridge_url
|
|
179
|
+
or not path
|
|
180
|
+
or "\\" in path
|
|
181
|
+
or any(p in {"", ".", ".."} for p in path.rstrip("/").split("/"))
|
|
182
|
+
):
|
|
183
|
+
raise HTTPException(404, "Unsupported DataBridge route")
|
|
184
|
+
# Never allow an encoded path to escape the fixed upstream /api namespace.
|
|
185
|
+
if "%" in path or "//" in path or path.startswith("/"):
|
|
186
|
+
raise HTTPException(404, "Unsupported DataBridge route")
|
|
187
|
+
client = request.app.state.bridge_client
|
|
188
|
+
try:
|
|
189
|
+
if path == "auth/status" and request.method == "GET":
|
|
190
|
+
# The local portal authenticates to DataBridge on the user's behalf.
|
|
191
|
+
# Verify that credential before allowing the UI to enter.
|
|
192
|
+
checked = await client.get("/api/auth/check")
|
|
193
|
+
if checked.status_code != 200:
|
|
194
|
+
raise HTTPException(
|
|
195
|
+
502,
|
|
196
|
+
"DataBridge authentication failed; check the configured service credential",
|
|
197
|
+
)
|
|
198
|
+
return {"required": False}
|
|
199
|
+
upstream = client.build_request(
|
|
200
|
+
request.method,
|
|
201
|
+
"/api/" + path,
|
|
202
|
+
params=request.query_params,
|
|
203
|
+
content=await request.body(),
|
|
204
|
+
headers={
|
|
205
|
+
"Content-Type": request.headers.get(
|
|
206
|
+
"content-type", "application/json"
|
|
207
|
+
)
|
|
208
|
+
},
|
|
209
|
+
)
|
|
210
|
+
response = await client.send(upstream, stream=True)
|
|
211
|
+
except httpx.HTTPError:
|
|
212
|
+
raise HTTPException(
|
|
213
|
+
502, "DataBridge unavailable; start the configured DataBridge service"
|
|
214
|
+
) from None
|
|
215
|
+
headers = {
|
|
216
|
+
k: response.headers[k]
|
|
217
|
+
for k in ("content-type", "content-disposition", "retry-after")
|
|
218
|
+
if k in response.headers
|
|
219
|
+
}
|
|
220
|
+
if "application/json" in response.headers.get("content-type", ""):
|
|
221
|
+
try:
|
|
222
|
+
payload = json.loads(await response.aread())
|
|
223
|
+
finally:
|
|
224
|
+
await response.aclose()
|
|
225
|
+
|
|
226
|
+
def local_urls(value):
|
|
227
|
+
if isinstance(value, dict):
|
|
228
|
+
return {k: local_urls(v) for k, v in value.items()}
|
|
229
|
+
if isinstance(value, list):
|
|
230
|
+
return [local_urls(v) for v in value]
|
|
231
|
+
if isinstance(value, str) and value.startswith(bridge_url + "/api/"):
|
|
232
|
+
return "/databridge" + value[len(bridge_url) :]
|
|
233
|
+
return value
|
|
234
|
+
|
|
235
|
+
return JSONResponse(
|
|
236
|
+
local_urls(payload), status_code=response.status_code, headers=headers
|
|
237
|
+
)
|
|
238
|
+
if "text/html" in headers.get("content-type", ""):
|
|
239
|
+
headers["Content-Security-Policy"] = "sandbox allow-scripts allow-downloads"
|
|
240
|
+
return StreamingResponse(
|
|
241
|
+
response.aiter_bytes(),
|
|
242
|
+
status_code=response.status_code,
|
|
243
|
+
headers=headers,
|
|
244
|
+
background=BackgroundTask(response.aclose),
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
@app.get("/databridge")
|
|
248
|
+
async def bridge_redirect():
|
|
249
|
+
return RedirectResponse("/databridge/")
|
|
250
|
+
|
|
251
|
+
@app.get("/databridge/{path:path}")
|
|
252
|
+
async def bridge_page(path, request: Request):
|
|
253
|
+
if (
|
|
254
|
+
not bridge_url
|
|
255
|
+
or path.startswith("api/")
|
|
256
|
+
or "\\" in path
|
|
257
|
+
or ".." in path.split("/")
|
|
258
|
+
):
|
|
259
|
+
raise HTTPException(404)
|
|
260
|
+
# StaticFiles checks real paths against its root, including symlinks.
|
|
261
|
+
# Keep request-derived paths out of direct filesystem operations.
|
|
262
|
+
try:
|
|
263
|
+
return await bridge_assets.get_response(path, request.scope)
|
|
264
|
+
except StarletteHTTPException as exc:
|
|
265
|
+
if exc.status_code != 404:
|
|
266
|
+
raise
|
|
267
|
+
if path.startswith("assets/") or Path(path).suffix:
|
|
268
|
+
raise HTTPException(404)
|
|
269
|
+
return FileResponse(bridge_frontend / "index.html")
|
|
270
|
+
|
|
271
|
+
@app.get("/portal/config")
|
|
272
|
+
async def public_config():
|
|
273
|
+
return browser_config
|
|
274
|
+
|
|
275
|
+
@app.get("/console-config.js")
|
|
276
|
+
async def config_script():
|
|
277
|
+
# JSON, never interpolated HTML or arbitrary executable configuration.
|
|
278
|
+
payload = json.dumps(browser_config, ensure_ascii=True).replace("<", "\\u003c")
|
|
279
|
+
return Response(
|
|
280
|
+
"window.QWENPAW_DATA_CONSOLE = " + payload + ";",
|
|
281
|
+
media_type="application/javascript",
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
@app.api_route(
|
|
285
|
+
"/api/v1/{path:path}", methods=["GET", "POST", "PUT", "PATCH", "DELETE"]
|
|
286
|
+
)
|
|
287
|
+
async def proxy(path, request: Request):
|
|
288
|
+
if not ROUTES.fullmatch(path):
|
|
289
|
+
raise HTTPException(404, "Unsupported portal route")
|
|
290
|
+
try:
|
|
291
|
+
upstream = request.app.state.client.build_request(
|
|
292
|
+
request.method,
|
|
293
|
+
"/api/v1/" + path,
|
|
294
|
+
params=request.query_params,
|
|
295
|
+
content=await request.body(),
|
|
296
|
+
headers={
|
|
297
|
+
"Content-Type": request.headers.get(
|
|
298
|
+
"content-type", "application/json"
|
|
299
|
+
),
|
|
300
|
+
**(
|
|
301
|
+
{"Last-Event-ID": request.headers["last-event-id"]}
|
|
302
|
+
if "last-event-id" in request.headers
|
|
303
|
+
else {}
|
|
304
|
+
),
|
|
305
|
+
},
|
|
306
|
+
)
|
|
307
|
+
response = await request.app.state.client.send(upstream, stream=True)
|
|
308
|
+
except httpx.HTTPError:
|
|
309
|
+
raise HTTPException(
|
|
310
|
+
502, "Host unavailable; start the configured Host service"
|
|
311
|
+
) from None
|
|
312
|
+
headers = {
|
|
313
|
+
k: response.headers[k]
|
|
314
|
+
for k in ("content-type", "content-disposition", "retry-after")
|
|
315
|
+
if k in response.headers
|
|
316
|
+
}
|
|
317
|
+
if "text/html" in response.headers.get("content-type", ""):
|
|
318
|
+
headers["Content-Security-Policy"] = "sandbox allow-scripts allow-downloads"
|
|
319
|
+
return StreamingResponse(
|
|
320
|
+
response.aiter_bytes(),
|
|
321
|
+
status_code=response.status_code,
|
|
322
|
+
headers=headers,
|
|
323
|
+
background=BackgroundTask(response.aclose),
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
for router in routers:
|
|
327
|
+
app.include_router(router)
|
|
328
|
+
|
|
329
|
+
@app.get("/{path:path}")
|
|
330
|
+
async def frontend_file(path, request: Request):
|
|
331
|
+
if (
|
|
332
|
+
path.startswith(("api/", "portal/"))
|
|
333
|
+
or "\\" in path
|
|
334
|
+
or ".." in path.split("/")
|
|
335
|
+
):
|
|
336
|
+
raise HTTPException(404)
|
|
337
|
+
try:
|
|
338
|
+
return await chat_assets.get_response(path, request.scope)
|
|
339
|
+
except StarletteHTTPException as exc:
|
|
340
|
+
if exc.status_code != 404:
|
|
341
|
+
raise
|
|
342
|
+
if path == "" or path == "console" or path.startswith("console/"):
|
|
343
|
+
return FileResponse(frontend / "index.html")
|
|
344
|
+
raise HTTPException(404)
|
|
345
|
+
|
|
346
|
+
return app
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Public presentation settings. Service URLs and credentials are never included."""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ConsoleConfig(BaseModel):
|
|
7
|
+
model_config = ConfigDict(extra="forbid", frozen=True)
|
|
8
|
+
|
|
9
|
+
title: str = "QwenPaw Data"
|
|
10
|
+
assistant_name: str = "Data Analyst"
|
|
11
|
+
welcome_title: str = "开始新的数据分析"
|
|
12
|
+
welcome_description: str = "选择数据源并描述你希望验证的业务问题。"
|
|
13
|
+
workspace_name: str = "本地数据空间"
|
|
14
|
+
logo_url: str = "/qwenpaw-data-brand.png"
|
|
15
|
+
avatar_url: str = "/mascot-blue-transparent.png"
|
|
16
|
+
sample_questions: list[str] = Field(default_factory=list, max_length=12)
|
|
17
|
+
|
|
18
|
+
def browser_config(self, *, databridge: bool) -> dict:
|
|
19
|
+
return {
|
|
20
|
+
**self.model_dump(),
|
|
21
|
+
"console_protocol": 1,
|
|
22
|
+
"capabilities": {
|
|
23
|
+
"skillsHub": False,
|
|
24
|
+
"mcpHub": False,
|
|
25
|
+
"channels": False,
|
|
26
|
+
"contextConsole": databridge,
|
|
27
|
+
},
|
|
28
|
+
"databridge": {
|
|
29
|
+
"base_path": "/databridge",
|
|
30
|
+
"api_base_url": "/databridge",
|
|
31
|
+
"auth_mode": "portal",
|
|
32
|
+
"console_url": "/console",
|
|
33
|
+
}
|
|
34
|
+
if databridge
|
|
35
|
+
else None,
|
|
36
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
QwenPaw-Data
|
|
2
|
+
Copyright 2026 QwenPaw-Data Authors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by the QwenPaw-Data Authors.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0.
|
|
7
|
+
|
|
8
|
+
Repository assets and examples
|
|
9
|
+
------------------------------
|
|
10
|
+
|
|
11
|
+
Unless otherwise stated in or adjacent to a file, the documentation,
|
|
12
|
+
examples, sample data, and project-specific visual assets distributed in
|
|
13
|
+
this repository are part of the QwenPaw-Data Work and are licensed under
|
|
14
|
+
the Apache License, Version 2.0. This statement covers copyright permission
|
|
15
|
+
only; names, logos, and trademarks remain subject to Section 6 of the
|
|
16
|
+
License. The repository-maintained asset inventory and provenance categories
|
|
17
|
+
are documented in ASSET_LICENSES.md.
|
|
18
|
+
|
|
19
|
+
--------------------------------------------------------------------------
|
|
20
|
+
Third-party notices
|
|
21
|
+
--------------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
This product depends on third-party open source components installed at
|
|
24
|
+
build time via PyPI (see uv.lock) and npm (see
|
|
25
|
+
packages/qwenpaw-data-context/frontend/package-lock.json). Each component is
|
|
26
|
+
distributed under its own license; license texts ship inside the installed
|
|
27
|
+
packages.
|
|
28
|
+
|
|
29
|
+
The frontend dependency exposed under the local package name "xlsx" is the
|
|
30
|
+
Apache-2.0 package "@e965/xlsx" version 0.20.3, fetched from the public npm
|
|
31
|
+
registry. Its exact source URL and integrity digest are pinned in
|
|
32
|
+
packages/qwenpaw-data-context/frontend/package-lock.json.
|
|
33
|
+
|
|
34
|
+
NetworkX version 3.6.1, installed transitively through dbt-core, is distributed
|
|
35
|
+
under the BSD-3-Clause license. Its wheel declares the SPDX identifier through
|
|
36
|
+
the PEP 639 License-Expression metadata field and includes LICENSE.txt.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aE as e}from"./index-D1VdM1rB.js";import{r}from"./index-DRPRyF2H.js";function t(e,r){for(var t=0;t<r.length;t++){const o=r[t];if("string"!=typeof o&&!Array.isArray(o))for(const r in o)if("default"!==r&&!(r in e)){const t=Object.getOwnPropertyDescriptor(o,r);t&&Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>o[r]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o=r();const n=t({__proto__:null,default:e(o)},[o]);export{n as _};
|
|
Binary file
|
|
Binary file
|