dimcode 0.0.8 → 0.0.9-beta.1

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.
Files changed (102) hide show
  1. package/assets/gui/200.html +1 -1
  2. package/assets/gui/404.html +1 -1
  3. package/assets/gui/_nuxt/{kTUG9xEK.js → 0OuYuFdd.js} +1 -1
  4. package/assets/gui/_nuxt/{GsNec5dh.js → 1aIhxJz5.js} +1 -1
  5. package/assets/gui/_nuxt/{C6Po8woU.js → AEU9X0eI.js} +1 -1
  6. package/assets/gui/_nuxt/{DCyR-K5m.js → B4_fduro.js} +4 -4
  7. package/assets/gui/_nuxt/{Cgg1My-l.js → BBrHvhdM.js} +1 -1
  8. package/assets/gui/_nuxt/{nJjJxbsW.js → BCCtBm4Z.js} +3 -3
  9. package/assets/gui/_nuxt/{Conicgba.js → BDS4oRMz.js} +1 -1
  10. package/assets/gui/_nuxt/{CNpnPA49.js → BGLMoiU8.js} +1 -1
  11. package/assets/gui/_nuxt/{DXsty2qm.js → BY3n-DDp.js} +1 -1
  12. package/assets/gui/_nuxt/{BE4JB3YQ.js → BZ8UF-v2.js} +1 -1
  13. package/assets/gui/_nuxt/{0b551Iup.js → Ba--GMRf.js} +1 -1
  14. package/assets/gui/_nuxt/{CJeKOH-v.js → Ba3m-bzL.js} +2 -2
  15. package/assets/gui/_nuxt/{DZ0NWvbi.js → BavCj-eK.js} +1 -1
  16. package/assets/gui/_nuxt/{B8sXOwue.js → Bsk2n4pQ.js} +1 -1
  17. package/assets/gui/_nuxt/{DCxOw3GV.js → BvIpSLXP.js} +2 -2
  18. package/assets/gui/_nuxt/{BKMTnum7.js → BxPxqzuX.js} +1 -1
  19. package/assets/gui/_nuxt/{BPM3vi7L.js → C-xtRwLw.js} +1 -1
  20. package/assets/gui/_nuxt/C4RGoVqP.js +1 -0
  21. package/assets/gui/_nuxt/{BIM4RUHw.js → C6j2-t7c.js} +1 -1
  22. package/assets/gui/_nuxt/{BGp_FwD9.js → CBbhUoiS.js} +1 -1
  23. package/assets/gui/_nuxt/{C8BqVsjE.js → CEE3_5D_.js} +1 -1
  24. package/assets/gui/_nuxt/{D2lZokPL.js → CEqsJwTr.js} +1 -1
  25. package/assets/gui/_nuxt/{DzzoB_Be.js → CFuvkQ3D.js} +1 -1
  26. package/assets/gui/_nuxt/CK51CYfP.js +1 -0
  27. package/assets/gui/_nuxt/{C1yhW14G.js → CKnFKic1.js} +2 -2
  28. package/assets/gui/_nuxt/{D0ya9d-G.js → CLQqisv1.js} +1 -1
  29. package/assets/gui/_nuxt/{Bu7UbN50.js → CLpfQhBi.js} +1 -1
  30. package/assets/gui/_nuxt/{BnC2hR_I.js → CPLQzVH6.js} +1 -1
  31. package/assets/gui/_nuxt/{CILJ3eP4.js → CPShRA4j.js} +1 -1
  32. package/assets/gui/_nuxt/{BJmxWypQ.js → CfCLASZi.js} +1 -1
  33. package/assets/gui/_nuxt/{DpTvXhMN.js → CiWlOnca.js} +1 -1
  34. package/assets/gui/_nuxt/{BtMqZKeb.js → CieXTI98.js} +1 -1
  35. package/assets/gui/_nuxt/{B2yiF0dP.js → CnEEGbUw.js} +1 -1
  36. package/assets/gui/_nuxt/{C11b51Ac.js → D11nIuUh.js} +1 -1
  37. package/assets/gui/_nuxt/{DlL1-BJh.js → D21d5Ki2.js} +1 -1
  38. package/assets/gui/_nuxt/D5BNt-N2.js +1 -0
  39. package/assets/gui/_nuxt/{BloQGtiP.js → D7ZJeUw3.js} +1 -1
  40. package/assets/gui/_nuxt/D96zEQv9.js +4 -0
  41. package/assets/gui/_nuxt/DAy-NbVM.js +1 -0
  42. package/assets/gui/_nuxt/{ChaLjQbU.js → DBO-Izfx.js} +1 -1
  43. package/assets/gui/_nuxt/{CZ1LJRt8.js → DGuGipzC.js} +1 -1
  44. package/assets/gui/_nuxt/{DaWfUpsD.js → DIZslHeu.js} +69 -69
  45. package/assets/gui/_nuxt/{C8FO969Z.js → DJ2mPr61.js} +36 -36
  46. package/assets/gui/_nuxt/{4plqNI3E.js → DMouPsXE.js} +1 -1
  47. package/assets/gui/_nuxt/{C5cXMF-A.js → DMtHCodL.js} +1 -1
  48. package/assets/gui/_nuxt/{CU5WgS48.js → DUM8iInE.js} +1 -1
  49. package/assets/gui/_nuxt/Dc7qGFxj.js +1 -0
  50. package/assets/gui/_nuxt/{XbL3y5x-.js → DhXJpUyf.js} +1 -1
  51. package/assets/gui/_nuxt/{_mPeMGlT.js → Dl6TbLmt.js} +1 -1
  52. package/assets/gui/_nuxt/{DUsPre0P.js → DnpqjUYo.js} +1 -1
  53. package/assets/gui/_nuxt/{CSea6CJ5.js → DoOKK1n1.js} +1 -1
  54. package/assets/gui/_nuxt/{D5KI-6FL.js → Doga4zUQ.js} +2 -2
  55. package/assets/gui/_nuxt/{CfQJsi7e.js → FNc_qPaW.js} +3 -3
  56. package/assets/gui/_nuxt/{CupMKq6u.js → H0I3x32L.js} +1 -1
  57. package/assets/gui/_nuxt/{_RKv1NgS.js → NQ8JxlHw.js} +1 -1
  58. package/assets/gui/_nuxt/RdGv4kvU.js +1 -0
  59. package/assets/gui/_nuxt/{gpkmuIcl.js → X43bYXA4.js} +1 -1
  60. package/assets/gui/_nuxt/builds/latest.json +1 -1
  61. package/assets/gui/_nuxt/builds/meta/da77e0d2-888c-4d66-9007-f89dcd74875f.json +1 -0
  62. package/assets/gui/_nuxt/error-404.BAwq3L4-.css +1 -0
  63. package/assets/gui/_nuxt/error-500.DFXMopWe.css +1 -0
  64. package/assets/gui/index.html +1 -1
  65. package/dist/aihubmix.json +1 -1
  66. package/dist/anthropic.json +1 -1
  67. package/dist/cli.mjs +709 -695
  68. package/dist/deepseek.json +1 -1
  69. package/dist/google.json +1 -1
  70. package/dist/kimi-for-coding.json +1 -1
  71. package/dist/minimax-cn-coding-plan.json +1 -1
  72. package/dist/minimax-cn.json +1 -1
  73. package/dist/minimax-coding-plan.json +1 -1
  74. package/dist/minimax.json +1 -1
  75. package/dist/models/aihubmix.json +1 -1
  76. package/dist/models/openrouter.json +1 -1
  77. package/dist/models/siliconflow-com.json +1 -1
  78. package/dist/models/siliconflow.json +1 -1
  79. package/dist/models/zenmux.json +1 -1
  80. package/dist/moonshot-ai.json +1 -1
  81. package/dist/moonshot.json +1 -1
  82. package/dist/openai.json +1 -1
  83. package/dist/ppinfra.json +1 -1
  84. package/dist/xai.json +1 -1
  85. package/dist/zai-coding-plan.json +1 -1
  86. package/dist/zai.json +1 -1
  87. package/dist/zenmux.json +1 -1
  88. package/dist/zhipuai-coding-plan.json +1 -1
  89. package/dist/zhipuai.json +1 -1
  90. package/package.json +2 -2
  91. package/assets/gui/_nuxt/BAAwCcKi.js +0 -1
  92. package/assets/gui/_nuxt/BtYWoTeV.js +0 -1
  93. package/assets/gui/_nuxt/C6lP39IU.js +0 -4
  94. package/assets/gui/_nuxt/C8tOkigv.js +0 -1
  95. package/assets/gui/_nuxt/CKgPEzpl.js +0 -1
  96. package/assets/gui/_nuxt/DLnSW1IF.js +0 -1
  97. package/assets/gui/_nuxt/Dn4y6C2r.js +0 -1
  98. package/assets/gui/_nuxt/builds/meta/049bc160-1f70-40ed-a254-53921612b1b8.json +0 -1
  99. package/assets/gui/_nuxt/error-404.DF6r4GP7.css +0 -1
  100. package/assets/gui/_nuxt/error-500.Bo5pzFPU.css +0 -1
  101. package/assets/native/build.zig +0 -16
  102. package/assets/native/src/lib.zig +0 -23
package/dist/ppinfra.json CHANGED
@@ -1 +1 @@
1
- {"id":"ppinfra","name":"PPInfra","api":"https://api.ppinfra.com/v3/openai","models":[{"id":"zai-org/autoglm-phone-9b-multilingual","name":"AutoGLM-Phone-9B-Multilingual","display_name":"AutoGLM-Phone-9B-Multilingual","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":65536,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-prover-v2-671b","name":"Deepseek Prover V2 671B","display_name":"Deepseek Prover V2 671B","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":160000,"output":160000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1/community","name":"DeepSeek R1 (Community)","display_name":"DeepSeek R1 (Community)","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":64000,"output":4000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1-turbo","name":"DeepSeek R1 (Turbo)","display_name":"DeepSeek R1 (Turbo)","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":64000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1-distill-llama-70b","name":"DeepSeek R1 Distill Llama 70B","display_name":"DeepSeek R1 Distill Llama 70B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":32000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3/community","name":"DeepSeek V3 (Community)","display_name":"DeepSeek V3 (Community)","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":64000,"output":4000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3-turbo","name":"DeepSeek V3 (Turbo)","display_name":"DeepSeek V3 (Turbo)","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":64000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3-0324","name":"DeepSeek V3 0324","display_name":"DeepSeek V3 0324","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":163840,"output":163840},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.1","name":"Deepseek V3.1","display_name":"Deepseek V3.1","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.1-terminus","name":"Deepseek V3.1 Terminus","display_name":"Deepseek V3.1 Terminus","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.2","name":"Deepseek V3.2","display_name":"Deepseek V3.2","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":163840,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.2-exp","name":"Deepseek V3.2 Exp","display_name":"Deepseek V3.2 Exp","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":163840,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-ocr-2","name":"DeepSeek-OCR 2","display_name":"DeepSeek-OCR 2","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":8192,"output":8192},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1-0528","name":"deepseek/deepseek-r1-0528","display_name":"deepseek/deepseek-r1-0528","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":163840,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-21b-a3b-thinking","name":"Ernie 4.5 21B A3B Thinking","display_name":"Ernie 4.5 21B A3B Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":131072,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-0.3b","name":"ERNIE-4.5-0.3B","display_name":"ERNIE-4.5-0.3B","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":120000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-21B-a3b","name":"ERNIE-4.5-21B-A3B","display_name":"ERNIE-4.5-21B-A3B","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":120000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-300b-a47b-paddle","name":"ERNIE-4.5-300B-A47B","display_name":"ERNIE-4.5-300B-A47B","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":123000,"output":12000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-vl-28b-a3b","name":"ERNIE-4.5-VL-28B-A3B","display_name":"ERNIE-4.5-VL-28B-A3B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":30000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-vl-424b-a47b","name":"ERNIE-4.5-VL-424B-A47B","display_name":"ERNIE-4.5-VL-424B-A47B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":123000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.5v","name":"GLM 4.5V","display_name":"GLM 4.5V","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":65536,"output":16384},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.6","name":"GLM 4.6","display_name":"GLM 4.6","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.6v","name":"GLM 4.6v","display_name":"GLM 4.6v","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.5","name":"GLM-4.5","display_name":"GLM-4.5","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":98304},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.7","name":"GLM-4.7","display_name":"GLM-4.7","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.7-flash","name":"GLM-4.7-Flash","display_name":"GLM-4.7-Flash","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":200000,"output":128000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"kat-coder","name":"KAT Coder Pro V1","display_name":"KAT Coder Pro V1","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":256000,"output":128000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2-0905","name":"Kimi K2 0905","display_name":"Kimi K2 0905","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":262144},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2-instruct","name":"Kimi K2 Instruct","display_name":"Kimi K2 Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":128000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2-thinking","name":"Kimi K2 Thinking","display_name":"Kimi K2 Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":262144,"output":262144},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2.5","name":"Kimi K2.5","display_name":"Kimi K2.5","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":262144,"output":262144},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"minimax/minimax-m2.1","name":"MiniMax M2.1","display_name":"MiniMax M2.1","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"minimax/minimax-m2","name":"MiniMax-M2","display_name":"MiniMax-M2","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"minimaxai/minimax-m1-80k","name":"MiniMaxAI/MiniMax-M1-80k","display_name":"MiniMaxAI/MiniMax-M1-80k","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":128000,"output":40000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen2.5-7b-instruct","name":"Qwen 2.5 7B Instruct","display_name":"Qwen 2.5 7B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":32000,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-omni-30b-a3b-instruct","name":"qwen/qwen3-omni-30b-a3b-instruct","display_name":"qwen/qwen3-omni-30b-a3b-instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":65536,"output":16384},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-omni-30b-a3b-thinking","name":"qwen/qwen3-omni-30b-a3b-thinking","display_name":"qwen/qwen3-omni-30b-a3b-thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":65536,"output":16384},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-30b-a3b-instruct","name":"qwen/qwen3-vl-30b-a3b-instruct","display_name":"qwen/qwen3-vl-30b-a3b-instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-30b-a3b-thinking","name":"qwen/qwen3-vl-30b-a3b-thinking","display_name":"qwen/qwen3-vl-30b-a3b-thinking","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-8b-instruct","name":"qwen/qwen3-vl-8b-instruct","display_name":"qwen/qwen3-vl-8b-instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen-2.5-72b-instruct","name":"Qwen2.5 72B Instruct","display_name":"Qwen2.5 72B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":32000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen2.5-vl-72b-instruct","name":"Qwen2.5 VL 72B Instruct","display_name":"Qwen2.5 VL 72B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":32000,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-235b-a22b-instruct-2507","name":"Qwen3 235B A22B Instruct 2507","display_name":"Qwen3 235B A22B Instruct 2507","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":260000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-235b-a22b-thinking-2507","name":"Qwen3 235B A22b Thinking 2507","display_name":"Qwen3 235B A22b Thinking 2507","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":114688},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-32b-fp8","name":"Qwen3 32B","display_name":"Qwen3 32B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":128000,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-4b-fp8","name":"Qwen3 4B","display_name":"Qwen3 4B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":128000,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-coder-30b-a3b-instruct","name":"Qwen3 Coder 30b A3B Instruct","display_name":"Qwen3 Coder 30b A3B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-coder-480b-a35b-instruct","name":"Qwen3 Coder 480B A35B Instruct","display_name":"Qwen3 Coder 480B A35B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-coder-next","name":"Qwen3 Coder Next","display_name":"Qwen3 Coder Next","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-next-80b-a3b-instruct","name":"Qwen3 Next 80B A3B Instruct","display_name":"Qwen3 Next 80B A3B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":65536,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-next-80b-a3b-thinking","name":"Qwen3 Next 80B A3B Thinking","display_name":"Qwen3 Next 80B A3B Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":65536,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-235b-a22b-instruct","name":"Qwen3 VL 235B A22B Instruct","display_name":"Qwen3 VL 235B A22B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-235b-a22b-thinking","name":"Qwen3 VL 235B A22B Thinking","display_name":"Qwen3 VL 235B A22B Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-235b-a22b-fp8","name":"Qwen3-235B-A22B","display_name":"Qwen3-235B-A22B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":40960,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-30b-a3b-fp8","name":"Qwen3-30B-A3B","display_name":"Qwen3-30B-A3B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":128000,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"xiaomimimo/mimo-v2-flash","name":"XiaomiMiMo/MiMo-V2-Flash","display_name":"XiaomiMiMo/MiMo-V2-Flash","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":262144,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.5-air","name":"zai-org/glm-4.5-air","display_name":"zai-org/glm-4.5-air","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":98304},"metadata":{"source":"public-provider-conf"},"vision":false}],"defaultModelId":"deepseek/deepseek-r1/community"}
1
+ {"id":"ppinfra","name":"PPInfra","api":"https://api.ppinfra.com/v3/openai","models":[{"id":"zai-org/autoglm-phone-9b-multilingual","name":"AutoGLM-Phone-9B-Multilingual","display_name":"AutoGLM-Phone-9B-Multilingual","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":65536,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-prover-v2-671b","name":"Deepseek Prover V2 671B","display_name":"Deepseek Prover V2 671B","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":160000,"output":160000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1/community","name":"DeepSeek R1 (Community)","display_name":"DeepSeek R1 (Community)","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":64000,"output":4000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1-turbo","name":"DeepSeek R1 (Turbo)","display_name":"DeepSeek R1 (Turbo)","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":64000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1-distill-llama-70b","name":"DeepSeek R1 Distill Llama 70B","display_name":"DeepSeek R1 Distill Llama 70B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":32000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3/community","name":"DeepSeek V3 (Community)","display_name":"DeepSeek V3 (Community)","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":64000,"output":4000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3-turbo","name":"DeepSeek V3 (Turbo)","display_name":"DeepSeek V3 (Turbo)","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":64000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3-0324","name":"DeepSeek V3 0324","display_name":"DeepSeek V3 0324","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":163840,"output":163840},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.1","name":"Deepseek V3.1","display_name":"Deepseek V3.1","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.1-terminus","name":"Deepseek V3.1 Terminus","display_name":"Deepseek V3.1 Terminus","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.2","name":"Deepseek V3.2","display_name":"Deepseek V3.2","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":163840,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-v3.2-exp","name":"Deepseek V3.2 Exp","display_name":"Deepseek V3.2 Exp","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":163840,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-ocr-2","name":"DeepSeek-OCR 2","display_name":"DeepSeek-OCR 2","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":8192,"output":8192},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"deepseek/deepseek-r1-0528","name":"deepseek/deepseek-r1-0528","display_name":"deepseek/deepseek-r1-0528","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":163840,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-21b-a3b-thinking","name":"Ernie 4.5 21B A3B Thinking","display_name":"Ernie 4.5 21B A3B Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":131072,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-0.3b","name":"ERNIE-4.5-0.3B","display_name":"ERNIE-4.5-0.3B","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":120000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-21B-a3b","name":"ERNIE-4.5-21B-A3B","display_name":"ERNIE-4.5-21B-A3B","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":120000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-300b-a47b-paddle","name":"ERNIE-4.5-300B-A47B","display_name":"ERNIE-4.5-300B-A47B","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":123000,"output":12000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-vl-28b-a3b","name":"ERNIE-4.5-VL-28B-A3B","display_name":"ERNIE-4.5-VL-28B-A3B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":30000,"output":8000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"baidu/ernie-4.5-vl-424b-a47b","name":"ERNIE-4.5-VL-424B-A47B","display_name":"ERNIE-4.5-VL-424B-A47B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":123000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.5v","name":"GLM 4.5V","display_name":"GLM 4.5V","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":65536,"output":16384},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.6","name":"GLM 4.6","display_name":"GLM 4.6","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.6v","name":"GLM 4.6v","display_name":"GLM 4.6v","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.5","name":"GLM-4.5","display_name":"GLM-4.5","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":98304},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.7","name":"GLM-4.7","display_name":"GLM-4.7","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.7-flash","name":"GLM-4.7-Flash","display_name":"GLM-4.7-Flash","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":200000,"output":128000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-5","name":"GLM-5","display_name":"GLM-5","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":202800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"kat-coder","name":"KAT Coder Pro V1","display_name":"KAT Coder Pro V1","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":256000,"output":128000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2-0905","name":"Kimi K2 0905","display_name":"Kimi K2 0905","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":262144},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2-instruct","name":"Kimi K2 Instruct","display_name":"Kimi K2 Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":128000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2-thinking","name":"Kimi K2 Thinking","display_name":"Kimi K2 Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":262144,"output":262144},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"moonshotai/kimi-k2.5","name":"Kimi K2.5","display_name":"Kimi K2.5","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":262144,"output":262144},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"minimax/minimax-m2.1","name":"MiniMax M2.1","display_name":"MiniMax M2.1","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"minimax/minimax-m2","name":"MiniMax-M2","display_name":"MiniMax-M2","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":204800,"output":131072},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"minimaxai/minimax-m1-80k","name":"MiniMaxAI/MiniMax-M1-80k","display_name":"MiniMaxAI/MiniMax-M1-80k","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":128000,"output":40000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen2.5-7b-instruct","name":"Qwen 2.5 7B Instruct","display_name":"Qwen 2.5 7B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":32000,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-omni-30b-a3b-instruct","name":"qwen/qwen3-omni-30b-a3b-instruct","display_name":"qwen/qwen3-omni-30b-a3b-instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":65536,"output":16384},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-omni-30b-a3b-thinking","name":"qwen/qwen3-omni-30b-a3b-thinking","display_name":"qwen/qwen3-omni-30b-a3b-thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":65536,"output":16384},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-30b-a3b-instruct","name":"qwen/qwen3-vl-30b-a3b-instruct","display_name":"qwen/qwen3-vl-30b-a3b-instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-30b-a3b-thinking","name":"qwen/qwen3-vl-30b-a3b-thinking","display_name":"qwen/qwen3-vl-30b-a3b-thinking","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-8b-instruct","name":"qwen/qwen3-vl-8b-instruct","display_name":"qwen/qwen3-vl-8b-instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen-2.5-72b-instruct","name":"Qwen2.5 72B Instruct","display_name":"Qwen2.5 72B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":32000,"output":16000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen2.5-vl-72b-instruct","name":"Qwen2.5 VL 72B Instruct","display_name":"Qwen2.5 VL 72B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":false,"limit":{"context":32000,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-235b-a22b-instruct-2507","name":"Qwen3 235B A22B Instruct 2507","display_name":"Qwen3 235B A22B Instruct 2507","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":260000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-235b-a22b-thinking-2507","name":"Qwen3 235B A22b Thinking 2507","display_name":"Qwen3 235B A22b Thinking 2507","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":114688},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-32b-fp8","name":"Qwen3 32B","display_name":"Qwen3 32B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":128000,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-4b-fp8","name":"Qwen3 4B","display_name":"Qwen3 4B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":128000,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-coder-30b-a3b-instruct","name":"Qwen3 Coder 30b A3B Instruct","display_name":"Qwen3 Coder 30b A3B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-coder-480b-a35b-instruct","name":"Qwen3 Coder 480B A35B Instruct","display_name":"Qwen3 Coder 480B A35B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-coder-next","name":"Qwen3 Coder Next","display_name":"Qwen3 Coder Next","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":262144,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-next-80b-a3b-instruct","name":"Qwen3 Next 80B A3B Instruct","display_name":"Qwen3 Next 80B A3B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":65536,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-next-80b-a3b-thinking","name":"Qwen3 Next 80B A3B Thinking","display_name":"Qwen3 Next 80B A3B Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":65536,"output":65536},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-235b-a22b-instruct","name":"Qwen3 VL 235B A22B Instruct","display_name":"Qwen3 VL 235B A22B Instruct","type":"chat","reasoning":{"supported":false},"tool_call":true,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-vl-235b-a22b-thinking","name":"Qwen3 VL 235B A22B Thinking","display_name":"Qwen3 VL 235B A22B Thinking","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":131072,"output":32768},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-235b-a22b-fp8","name":"Qwen3-235B-A22B","display_name":"Qwen3-235B-A22B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":false,"limit":{"context":40960,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"qwen/qwen3-30b-a3b-fp8","name":"Qwen3-30B-A3B","display_name":"Qwen3-30B-A3B","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":128000,"output":20000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"xiaomimimo/mimo-v2-flash","name":"XiaomiMiMo/MiMo-V2-Flash","display_name":"XiaomiMiMo/MiMo-V2-Flash","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":262144,"output":32000},"metadata":{"source":"public-provider-conf"},"vision":false},{"id":"zai-org/glm-4.5-air","name":"zai-org/glm-4.5-air","display_name":"zai-org/glm-4.5-air","type":"chat","reasoning":{"supported":true,"default":true},"tool_call":true,"limit":{"context":131072,"output":98304},"metadata":{"source":"public-provider-conf"},"vision":false}],"defaultModelId":"deepseek/deepseek-r1/community"}
package/dist/xai.json CHANGED
@@ -1 +1 @@
1
- {"id":"xai","name":"xAI","api":"https://api.x.ai/v1","adapter":"openai","models":[{"id":"grok-4-fast-non-reasoning","name":"Grok 4 Fast (Non-Reasoning)","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-09-19","last_updated":"2025-09-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4 Fast (Non-Reasoning)"},{"id":"grok-3-fast","name":"Grok 3 Fast","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":1.25},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Fast"},{"id":"grok-4","name":"Grok 4","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-07-09","last_updated":"2025-07-09","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"reasoning":15,"cache_read":0.75},"limit":{"context":256000,"output":64000},"display_name":"Grok 4"},{"id":"grok-2-vision","name":"Grok 2 Vision","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-08-20","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":8192,"output":4096},"display_name":"Grok 2 Vision"},{"id":"grok-code-fast-1","name":"Grok Code Fast 1","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2023-10","release_date":"2025-08-28","last_updated":"2025-08-28","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":1.5,"cache_read":0.02},"limit":{"context":256000,"output":10000},"display_name":"Grok Code Fast 1"},{"id":"grok-2","name":"Grok 2","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-08-20","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":131072,"output":8192},"display_name":"Grok 2"},{"id":"grok-3-mini-fast-latest","name":"Grok 3 Mini Fast Latest","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.6,"output":4,"reasoning":4,"cache_read":0.15},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini Fast Latest"},{"id":"grok-2-vision-1212","name":"Grok 2 Vision 1212","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":false,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-12-12","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":32000,"output":32000},"display_name":"Grok 2 Vision 1212","search":{"supported":false}},{"id":"grok-3","name":"Grok 3","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.75},"limit":{"context":131072,"output":8192},"display_name":"Grok 3"},{"id":"grok-4-fast","name":"Grok 4 Fast","family":"grok","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-09-19","last_updated":"2025-09-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4 Fast"},{"id":"grok-2-latest","name":"Grok 2 Latest","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-12-12","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":131072,"output":8192},"display_name":"Grok 2 Latest"},{"id":"grok-4-1-fast","name":"Grok 4.1 Fast","family":"grok","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-11-19","last_updated":"2025-11-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4.1 Fast"},{"id":"grok-2-1212","name":"Grok 2 1212","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-12-12","last_updated":"2024-12-12","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":120000,"output":100000},"display_name":"Grok 2 1212","search":{"supported":false}},{"id":"grok-3-fast-latest","name":"Grok 3 Fast Latest","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":1.25},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Fast Latest"},{"id":"grok-3-latest","name":"Grok 3 Latest","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.75},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Latest"},{"id":"grok-2-vision-latest","name":"Grok 2 Vision Latest","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-12-12","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":8192,"output":4096},"display_name":"Grok 2 Vision Latest"},{"id":"grok-vision-beta","name":"Grok Vision Beta","family":"grok-vision","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-11-01","last_updated":"2024-11-01","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":15,"cache_read":5},"limit":{"context":8192,"output":4096},"display_name":"Grok Vision Beta"},{"id":"grok-3-mini","name":"Grok 3 Mini","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.3,"output":0.5,"reasoning":0.5,"cache_read":0.075},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini"},{"id":"grok-beta","name":"Grok Beta","family":"grok-beta","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-11-01","last_updated":"2024-11-01","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":15,"cache_read":5},"limit":{"context":131072,"output":4096},"display_name":"Grok Beta"},{"id":"grok-3-mini-latest","name":"Grok 3 Mini Latest","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.3,"output":0.5,"reasoning":0.5,"cache_read":0.075},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini Latest"},{"id":"grok-4-1-fast-non-reasoning","name":"Grok 4.1 Fast (Non-Reasoning)","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-11-19","last_updated":"2025-11-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4.1 Fast (Non-Reasoning)"},{"id":"grok-3-mini-fast","name":"Grok 3 Mini Fast","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.6,"output":4,"reasoning":4,"cache_read":0.15},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini Fast"},{"id":"grok-3-mini-fast-beta","name":"Grok 3 Mini Fast Beta","display_name":"Grok 3 Mini Fast Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":true,"effort":"low","default":true},"search":{"supported":false}},{"id":"grok-3-mini-beta","name":"Grok 3 Mini Beta","display_name":"Grok 3 Mini Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":true,"effort":"low","default":true},"search":{"supported":false}},{"id":"grok-3-fast-beta","name":"Grok 3 Fast Beta","display_name":"Grok 3 Fast Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":false},"search":{"supported":false}},{"id":"grok-2-image-1212","name":"Grok 2 Image 1212","display_name":"Grok 2 Image 1212","temperature":true,"attachment":false,"tool_call":false,"modalities":{"input":["text","image"],"output":["text"]},"limit":{"context":130000,"output":100000},"reasoning":{"supported":false},"search":{"supported":false}},{"id":"grok-3-beta","name":"Grok 3 Beta","display_name":"Grok 3 Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":false},"search":{"supported":false}}],"defaultModelId":"grok-4"}
1
+ {"id":"xai","name":"xAI","api":"https://api.x.ai/v1","adapter":"openai","models":[{"id":"grok-4-fast-non-reasoning","name":"Grok 4 Fast (Non-Reasoning)","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-09-19","last_updated":"2025-09-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4 Fast (Non-Reasoning)","type":"chat"},{"id":"grok-3-fast","name":"Grok 3 Fast","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":1.25},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Fast","type":"chat"},{"id":"grok-4","name":"Grok 4","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-07-09","last_updated":"2025-07-09","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"reasoning":15,"cache_read":0.75},"limit":{"context":256000,"output":64000},"display_name":"Grok 4","type":"chat"},{"id":"grok-2-vision","name":"Grok 2 Vision","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-08-20","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":8192,"output":4096},"display_name":"Grok 2 Vision","type":"chat"},{"id":"grok-code-fast-1","name":"Grok Code Fast 1","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2023-10","release_date":"2025-08-28","last_updated":"2025-08-28","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":1.5,"cache_read":0.02},"limit":{"context":256000,"output":10000},"display_name":"Grok Code Fast 1","type":"chat"},{"id":"grok-2","name":"Grok 2","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-08-20","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":131072,"output":8192},"display_name":"Grok 2","type":"chat"},{"id":"grok-3-mini-fast-latest","name":"Grok 3 Mini Fast Latest","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.6,"output":4,"reasoning":4,"cache_read":0.15},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini Fast Latest","type":"chat"},{"id":"grok-2-vision-1212","name":"Grok 2 Vision 1212","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":false,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-12-12","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":32000,"output":32000},"display_name":"Grok 2 Vision 1212","search":{"supported":false},"type":"chat"},{"id":"grok-3","name":"Grok 3","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.75},"limit":{"context":131072,"output":8192},"display_name":"Grok 3","type":"chat"},{"id":"grok-4-fast","name":"Grok 4 Fast","family":"grok","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-09-19","last_updated":"2025-09-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4 Fast","type":"chat"},{"id":"grok-2-latest","name":"Grok 2 Latest","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-12-12","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":131072,"output":8192},"display_name":"Grok 2 Latest","type":"chat"},{"id":"grok-4-1-fast","name":"Grok 4.1 Fast","family":"grok","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-11-19","last_updated":"2025-11-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4.1 Fast","type":"chat"},{"id":"grok-2-1212","name":"Grok 2 1212","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-12-12","last_updated":"2024-12-12","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":120000,"output":100000},"display_name":"Grok 2 1212","search":{"supported":false},"type":"chat"},{"id":"grok-3-fast-latest","name":"Grok 3 Fast Latest","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":1.25},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Fast Latest","type":"chat"},{"id":"grok-3-latest","name":"Grok 3 Latest","family":"grok","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.75},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Latest","type":"chat"},{"id":"grok-2-vision-latest","name":"Grok 2 Vision Latest","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-08-20","last_updated":"2024-12-12","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":2,"output":10,"cache_read":2},"limit":{"context":8192,"output":4096},"display_name":"Grok 2 Vision Latest","type":"chat"},{"id":"grok-vision-beta","name":"Grok Vision Beta","family":"grok-vision","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-11-01","last_updated":"2024-11-01","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":15,"cache_read":5},"limit":{"context":8192,"output":4096},"display_name":"Grok Vision Beta","type":"chat"},{"id":"grok-3-mini","name":"Grok 3 Mini","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.3,"output":0.5,"reasoning":0.5,"cache_read":0.075},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini","type":"chat"},{"id":"grok-beta","name":"Grok Beta","family":"grok-beta","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-08","release_date":"2024-11-01","last_updated":"2024-11-01","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":15,"cache_read":5},"limit":{"context":131072,"output":4096},"display_name":"Grok Beta","type":"chat"},{"id":"grok-3-mini-latest","name":"Grok 3 Mini Latest","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.3,"output":0.5,"reasoning":0.5,"cache_read":0.075},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini Latest","type":"chat"},{"id":"grok-4-1-fast-non-reasoning","name":"Grok 4.1 Fast (Non-Reasoning)","family":"grok","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2025-07","release_date":"2025-11-19","last_updated":"2025-11-19","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.2,"output":0.5,"cache_read":0.05},"limit":{"context":2000000,"output":30000},"display_name":"Grok 4.1 Fast (Non-Reasoning)","type":"chat"},{"id":"grok-3-mini-fast","name":"Grok 3 Mini Fast","family":"grok","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2024-11","release_date":"2025-02-17","last_updated":"2025-02-17","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.6,"output":4,"reasoning":4,"cache_read":0.15},"limit":{"context":131072,"output":8192},"display_name":"Grok 3 Mini Fast","type":"chat"},{"id":"grok-3-mini-fast-beta","name":"Grok 3 Mini Fast Beta","display_name":"Grok 3 Mini Fast Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":true,"effort":"low","default":true},"search":{"supported":false},"type":"chat"},{"id":"grok-3-mini-beta","name":"Grok 3 Mini Beta","display_name":"Grok 3 Mini Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":true,"effort":"low","default":true},"search":{"supported":false},"type":"chat"},{"id":"grok-3-fast-beta","name":"Grok 3 Fast Beta","display_name":"Grok 3 Fast Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":false},"search":{"supported":false},"type":"chat"},{"id":"grok-2-image-1212","name":"Grok 2 Image 1212","display_name":"Grok 2 Image 1212","temperature":true,"attachment":false,"tool_call":false,"modalities":{"input":["text","image"],"output":["text"]},"limit":{"context":130000,"output":100000},"reasoning":{"supported":false},"search":{"supported":false},"type":"chat"},{"id":"grok-3-beta","name":"Grok 3 Beta","display_name":"Grok 3 Beta","temperature":true,"attachment":false,"tool_call":true,"modalities":{"input":["text"],"output":["text"]},"limit":{"context":120000,"output":100000},"reasoning":{"supported":false},"search":{"supported":false},"type":"chat"}],"defaultModelId":"grok-4"}
@@ -1 +1 @@
1
- {"id":"zai-coding-plan","api":"https://api.z.ai/api/coding/paas/v4","name":"Z.AI Coding Plan","models":[{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5"},{"id":"glm-4.7-flash","name":"GLM-4.7-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2026-01-19","last_updated":"2026-01-19","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":200000,"output":131072},"display_name":"GLM-4.7-Flash"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6"},{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V"}],"defaultModelId":"glm-4.7"}
1
+ {"id":"zai-coding-plan","api":"https://api.z.ai/api/coding/paas/v4","name":"Z.AI Coding Plan","models":[{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7","type":"chat"},{"id":"glm-5","name":"GLM-5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"release_date":"2026-02-11","last_updated":"2026-02-11","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-5","type":"chat"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash","type":"chat"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5","type":"chat"},{"id":"glm-4.7-flash","name":"GLM-4.7-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2026-01-19","last_updated":"2026-01-19","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":200000,"output":131072},"display_name":"GLM-4.7-Flash","type":"chat"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air","type":"chat"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V","type":"chat"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6","type":"chat"},{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V","type":"chat"}],"defaultModelId":"glm-4.7"}
package/dist/zai.json CHANGED
@@ -1 +1 @@
1
- {"id":"zai","name":"Z.AI","api":"https://api.z.ai/api/paas/v4","models":[{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5"},{"id":"glm-4.7-flash","name":"GLM-4.7-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2026-01-19","last_updated":"2026-01-19","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":200000,"output":131072},"display_name":"GLM-4.7-Flash"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.2,"output":1.1,"cache_read":0.03,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":1.8},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6"},{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.3,"output":0.9},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V"}],"defaultModelId":"glm-4.7"}
1
+ {"id":"zai","name":"Z.AI","api":"https://api.z.ai/api/paas/v4","models":[{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7","type":"chat"},{"id":"glm-5","name":"GLM-5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"release_date":"2026-02-11","last_updated":"2026-02-11","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":1,"output":3.2,"cache_read":0.2,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-5","type":"chat"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash","type":"chat"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5","type":"chat"},{"id":"glm-4.7-flash","name":"GLM-4.7-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2026-01-19","last_updated":"2026-01-19","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":200000,"output":131072},"display_name":"GLM-4.7-Flash","type":"chat"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.2,"output":1.1,"cache_read":0.03,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air","type":"chat"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":1.8},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V","type":"chat"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6","type":"chat"},{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.3,"output":0.9},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V","type":"chat"}],"defaultModelId":"glm-4.7"}
package/dist/zenmux.json CHANGED
@@ -1 +1 @@
1
- {"id":"zenmux","name":"ZenMux","api":"https://zenmux.ai/api/v1/","adapter":"openai","modelsFile":"models/zenmux.json","defaultModelId":"stepfun/step-3.5-flash-free"}
1
+ {"id":"zenmux","name":"ZenMux","api":"https://zenmux.ai/api/v1/","adapter":"openai","modelsFile":"models/zenmux.json","defaultModelId":"anthropic/claude-3.7-sonnet"}
@@ -1 +1 @@
1
- {"id":"zhipuai-coding-plan","name":"ZhipuAI Coding Plan","api":"https://open.bigmodel.cn/api/coding/paas/v4","models":[{"id":"glm-4.6v-flash","name":"GLM-4.6V-Flash","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V-Flash"},{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash"},{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7"}],"defaultModelId":"glm-4.6v-flash"}
1
+ {"id":"zhipuai-coding-plan","name":"ZhipuAI Coding Plan","api":"https://open.bigmodel.cn/api/coding/paas/v4","models":[{"id":"glm-5","name":"GLM-5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"release_date":"2026-02-11","last_updated":"2026-02-11","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-5","type":"chat"},{"id":"glm-4.6v-flash","name":"GLM-4.6V-Flash","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V-Flash","type":"chat"},{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V","type":"chat"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6","type":"chat"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V","type":"chat"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air","type":"chat"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5","type":"chat"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash","type":"chat"},{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7","type":"chat"}],"defaultModelId":"glm-5"}
package/dist/zhipuai.json CHANGED
@@ -1 +1 @@
1
- {"id":"zhipuai","name":"ZhipuAI","api":"https://open.bigmodel.cn/api/paas/v4/","models":[{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.3,"output":0.9},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":1.8},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.2,"output":1.1,"cache_read":0.03,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air"},{"id":"glm-4.7-flash","name":"GLM-4.7-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2026-01-19","last_updated":"2026-01-19","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":200000,"output":131072},"display_name":"GLM-4.7-Flash"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash"},{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7"}],"defaultModelId":"glm-4.6v"}
1
+ {"id":"zhipuai","name":"ZhipuAI","api":"https://open.bigmodel.cn/api/paas/v4/","models":[{"id":"glm-5","name":"GLM-5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"release_date":"2026-02-11","last_updated":"2026-02-11","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":1,"output":3.2,"cache_read":0.2,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-5","type":"chat"},{"id":"glm-4.6v","name":"GLM-4.6V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-08","last_updated":"2025-12-08","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.3,"output":0.9},"limit":{"context":128000,"output":32768},"display_name":"GLM-4.6V","type":"chat"},{"id":"glm-4.6","name":"GLM-4.6","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-09-30","last_updated":"2025-09-30","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.6","type":"chat"},{"id":"glm-4.5v","name":"GLM-4.5V","family":"glm","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-08-11","last_updated":"2025-08-11","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":1.8},"limit":{"context":64000,"output":16384},"display_name":"GLM-4.5V","type":"chat"},{"id":"glm-4.5-air","name":"GLM-4.5-Air","family":"glm-air","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.2,"output":1.1,"cache_read":0.03,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Air","type":"chat"},{"id":"glm-4.7-flash","name":"GLM-4.7-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2026-01-19","last_updated":"2026-01-19","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":200000,"output":131072},"display_name":"GLM-4.7-Flash","type":"chat"},{"id":"glm-4.5","name":"GLM-4.5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5","type":"chat"},{"id":"glm-4.5-flash","name":"GLM-4.5-Flash","family":"glm-flash","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-28","last_updated":"2025-07-28","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":131072,"output":98304},"display_name":"GLM-4.5-Flash","type":"chat"},{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"interleaved":{"field":"reasoning_content"},"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":0},"limit":{"context":204800,"output":131072},"display_name":"GLM-4.7","type":"chat"}],"defaultModelId":"glm-5"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dimcode",
3
3
  "type": "module",
4
- "version": "0.0.8",
4
+ "version": "0.0.9-beta.1",
5
5
  "description": "Dim Code CLI built on dreams",
6
6
  "exports": {
7
7
  ".": {
@@ -68,4 +68,4 @@
68
68
  "typescript": "5.8.3",
69
69
  "vitest": "^4.0.17"
70
70
  }
71
- }
71
+ }
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./Bu7UbN50.js";import{_ as i}from"./DaWfUpsD.js";import"./gpkmuIcl.js";import"./D2lZokPL.js";import"./BnC2hR_I.js";import"./C8FO969Z.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./Bu7UbN50.js";import{_ as i}from"./DaWfUpsD.js";import"./gpkmuIcl.js";import"./D2lZokPL.js";import"./BnC2hR_I.js";import"./C8FO969Z.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1,4 +0,0 @@
1
- import{e as $t,d as At,A as Ft,c as Ht,w as V,r as d,g as Rt,C as Q,o as Nt,D as Xt,f as w,j as g,m as ee,k as _t,z as y,q as Je,n as r,E as h,H as xe,I as xt,v as Yt,l as Vt,S as kt,U as bt,y as Zt,p as qt,O as It,T as Ut,P as Wt,M as Mt,N as Gt,R as A,V as Kt,W as Jt,X as Qt}from"./C8FO969Z.js";import{e as el}from"./DvJDa2y1.js";var tl=Object.defineProperty,ll=Object.defineProperties,nl=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,Ct=($,P,M)=>P in $?tl($,P,{enumerable:!0,configurable:!0,writable:!0,value:M}):$[P]=M,Qe=($,P)=>{for(var M in P||(P={}))rl.call(P,M)&&Ct($,M,P[M]);if(Tt)for(var M of Tt(P))ol.call(P,M)&&Ct($,M,P[M]);return $},D=($,P,M)=>new Promise((ke,o)=>{var ne=F=>{try{j(M.next(F))}catch(re){o(re)}},be=F=>{try{j(M.throw(F))}catch(re){o(re)}},j=F=>F.done?ke(F.value):Promise.resolve(F.value).then(ne,be);j((M=M.apply($,P)).next())});const al={key:0},il={key:1,class:"flex items-center gap-x-2 overflow-hidden"},ul=["src"],sl={key:2},cl={class:"flex items-center gap-x-1"},dl={class:"flex items-center gap-x-1"},vl={key:4},ml={key:5,class:"flex items-center gap-x-1"},fl=["aria-pressed"],hl={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},gl={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},pl=["disabled"],wl=["disabled"],yl={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},xl={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},kl={key:1,class:"relative"},bl={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},Ml={class:"flex items-center gap-2 backdrop-blur rounded-lg"},Tl={class:"markstream-vue"},Cl={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},et=$t(At({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0},enableWheelZoom:{type:Boolean,default:!1},isStrict:{type:Boolean,default:!1}},emits:["copy","export","openModal","toggleMode"],setup($,{emit:P}){var M,ke;const o=$,ne=P,be={USE_PROFILES:{svg:!0},FORBID_TAGS:["script"],FORBID_ATTR:[/^on/i],ADD_TAGS:["style"],ADD_ATTR:["style"],SAFE_FOR_TEMPLATES:!0},j=d(!1),F=Q(()=>o.isStrict?"strict":"loose"),re=Q(()=>({startOnLoad:!1,securityLevel:F.value,dompurifyConfig:F.value==="strict"?be:void 0,flowchart:F.value==="strict"?{htmlLabels:!1}:void 0})),Dt=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],Bt=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function St(t){if(!t)return"";const e=t.trim();return Bt.test(e)?e:""}function Me(t){if(t)try{t.replaceChildren()}catch{t.innerHTML=""}}function oe(t,e){if(!t)return"";if(F.value==="strict")return(function(l,n){if(!l)return"";try{l.replaceChildren()}catch{l.innerHTML=""}const c=(function(a){if(typeof window>"u"||typeof DOMParser>"u"||!a)return null;const s=a.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#"),i=new DOMParser().parseFromString(s,"image/svg+xml").documentElement;if(!i||i.nodeName.toLowerCase()!=="svg")return null;const m=i;return(function(v){const p=new Set(["script"]),L=[v,...Array.from(v.querySelectorAll("*"))];for(const C of L){if(p.has(C.tagName.toLowerCase())){C.remove();continue}const Y=Array.from(C.attributes);for(const N of Y){const b=N.name;if(/^on/i.test(b))C.removeAttribute(b);else{if(b==="style"&&N.value){const k=N.value;if(Dt.some(Ye=>Ye.test(k))){C.removeAttribute(b);continue}}if((b==="href"||b==="xlink:href")&&N.value){const k=St(N.value);if(!k){C.removeAttribute(b);continue}k!==N.value&&C.setAttribute(b,k)}}}}})(m),m})(n);return c?(l.appendChild(c),l.innerHTML):""})(t,e);try{t.replaceChildren()}catch{t.innerHTML=""}if(e)try{t.insertAdjacentHTML("afterbegin",e)}catch{t.innerHTML=e}return t.innerHTML}const{t:f}=Ft();function Te(){return D(this,null,function*(){try{const t=yield Qt();return j.value=!!t,t}catch(t){throw j.value=!1,t}})}typeof window<"u"&&D(null,null,function*(){var t;try{const e=yield Te();if(!e)return;(t=e?.initialize)==null||t.call(e,Qe({},re.value))}catch(e){j.value=!1,console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.",e)}});const Ce=d(!1),Z=d(!1),q=d(),u=d(),ae=d(),De=d(null),Et=Ht(),me=d(null),ie=d(typeof window>"u"),tt=d(),R=Q(()=>o.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode")),x=d(1),O=d(0),z=d(0),Be=d(!1),Se=d({x:0,y:0}),S=d(!1),Ee=d(!1),W=d(!1),Pe=d(null),je=d(0),Ve=d(!1);let fe=null,he=null,ge=0;const lt=(M=globalThis.requestIdleCallback)!=null?M:(t,e)=>setTimeout(()=>t({didTimeout:!0}),16),ue=(function(){let t=null;return(...e)=>{t&&clearTimeout(t),t=setTimeout(()=>(()=>{lt(()=>{wt()},{timeout:500})})(...e),300)}})();function pe(){he!=null&&(globalThis.clearTimeout(he),he=null)}function nt(t=600){if(typeof globalThis>"u")return;const e=Math.max(0,t);pe(),he=globalThis.setTimeout(()=>{he=null,o.loading||W.value||!ie.value?nt(Math.min(1200,Math.max(300,1.2*e))):ue()},e)}const G=d("360px");let se=null;const B=d(!1),te=d(!1),K=d({}),rt=d(null),we=d(""),Ze=d(0);let H=null;const I=d(!1),le=d({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),ot=Q(()=>o.enableWheelZoom?{wheel:jt}:{}),U=Q(()=>{var t,e,l,n;return{worker:(t=o.workerTimeoutMs)!=null?t:1400,parse:(e=o.parseTimeoutMs)!=null?e:1800,render:(l=o.renderTimeoutMs)!=null?l:2500,fullRender:(n=o.fullRenderTimeoutMs)!=null?n:4e3}}),Pt=(ke=globalThis.cancelIdleCallback)!=null?ke:t=>clearTimeout(t);let ce=null,Oe=null,de=!1,ye=800,X=null,ze=0,qe=!0,Le=0;function $e(t,e){const l=e?.timeoutMs,n=e?.signal;if(n?.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let c=null,a=!1,s=null;return new Promise((i,m)=>{const v=()=>{c!=null&&clearTimeout(c),s&&n&&n.removeEventListener("abort",s)};l&&l>0&&(c=globalThis.setTimeout(()=>{a||(a=!0,v(),m(new Error("Operation timed out")))},l)),n&&(s=()=>{a||(a=!0,v(),m(new DOMException("Aborted","AbortError")))},n.addEventListener("abort",s)),t().then(p=>{a||(a=!0,v(),i(p))}).catch(p=>{a||(a=!0,v(),m(p))})})}function at(t){if(typeof document>"u"||!u.value)return;const e=document.createElement("div");e.className="text-red-500 p-4",e.textContent="Failed to render diagram: ";const l=document.createElement("span");l.textContent=t instanceof Error?t.message:"Unknown error",e.appendChild(l),Me(u.value),u.value.appendChild(e),G.value="360px",I.value=!0,_()}function it(t){return!t||t.disabled}function E(t,e,l="top"){if(it(t.currentTarget))return;const n=t,c=n?.clientX!=null&&n?.clientY!=null?{x:n.clientX,y:n.clientY}:void 0;Mt(t.currentTarget,e,l,!1,c,o.isDark)}function T(){Gt()}function ut(t){if(it(t.currentTarget))return;const e=Ce.value?f("common.copied")||"Copied":f("common.copy")||"Copy",l=t,n=l?.clientX!=null&&l?.clientY!=null?{x:l.clientX,y:l.clientY}:void 0;Mt(t.currentTarget,e,"top",!1,n,o.isDark)}function st(t,e){const l=`%%{init: {"theme": "${e==="dark"?"dark":"default"}"}}%%
2
- `;return t.trimStart().startsWith("%%{")?t:l+t}function ct(){return qe&&!S.value&&!B.value&&!I.value}function dt(t){const e=t.split(/\r?\n/);for(;e.length>0;){const l=e[e.length-1].trimEnd();if(l!==""){if(!(/^[-=~>|<\s]+$/.test(l.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(l)||/[-|><]$/.test(l)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(l)))break;e.pop()}else e.pop()}return e.join(`
3
- `)}function Ae(t,e,l){return D(this,null,function*(){var n;try{return yield Jt(t,e,(n=l?.timeoutMs)!=null?n:U.value.worker)}catch{return yield(function(a,s,i){return D(this,null,function*(){var m,v;const p=yield Te();if(!p)return;const L=p,C=st(a,s);if(typeof L.parse=="function")return yield $e(()=>L.parse(C),{timeoutMs:(m=i?.timeoutMs)!=null?m:U.value.parse,signal:i?.signal}),!0;const Y=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield $e(()=>p.render(Y,C),{timeoutMs:(v=i?.timeoutMs)!=null?v:U.value.render,signal:i?.signal}),!0})})(t,e,l)}})}typeof window<"u"&&V(()=>q.value,t=>{var e;if((e=me.value)==null||e.destroy(),me.value=null,!t)return void(ie.value=!1);const l=Et(t,{rootMargin:"400px"});me.value=l,ie.value=l.isVisible.value,l.whenVisible.then(()=>{ie.value=!0})},{immediate:!0}),Rt(()=>{var t;(t=me.value)==null||t.destroy(),me.value=null});const Fe=Q(()=>S.value||W.value||Z.value);function Ie(t){if(!q.value||!u.value)return;const e=u.value.querySelector("svg");if(!e)return;let l=0,n=0;const c=e.getAttribute("viewBox"),a=e.getAttribute("width"),s=e.getAttribute("height");if(c){const i=c.split(" ");i.length===4&&(l=Number.parseFloat(i[2]),n=Number.parseFloat(i[3]))}if(l&&n||a&&s&&(l=Number.parseFloat(a),n=Number.parseFloat(s)),Number.isNaN(l)||Number.isNaN(n)||l<=0||n<=0)try{const i=e.getBBox();i&&i.width>0&&i.height>0&&(l=i.width,n=i.height)}catch(i){return void console.error("Failed to get SVG BBox:",i)}if(l>0&&n>0){const i=n/l;let m=(t??q.value.clientWidth)*i;m>n&&(m=n),G.value=`${m}px`}}const J=d(!1),Ue=Q(()=>({transform:`translate(${O.value}px, ${z.value}px) scale(${x.value})`}));function vt(t){t.key==="Escape"&&J.value&&We()}function We(){if(J.value=!1,ae.value&&Me(ae.value),De.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",vt)}catch{}}function mt(){x.value<3&&(x.value+=.1)}function ft(){x.value>.5&&(x.value-=.1)}function ht(){x.value=1,O.value=0,z.value=0}function He(t){Be.value=!0,t instanceof MouseEvent?Se.value={x:t.clientX-O.value,y:t.clientY-z.value}:Se.value={x:t.touches[0].clientX-O.value,y:t.touches[0].clientY-z.value}}function Re(t){if(!Be.value)return;let e,l;t instanceof MouseEvent?(e=t.clientX,l=t.clientY):(e=t.touches[0].clientX,l=t.touches[0].clientY),O.value=e-Se.value.x,z.value=l-Se.value.y}function ve(){Be.value=!1}function jt(t){if(o.enableWheelZoom&&(t.ctrlKey||t.metaKey)){if(t.preventDefault(),!q.value)return;const e=q.value.getBoundingClientRect(),l=t.clientX-e.left,n=t.clientY-e.top,c=l-e.width/2,a=n-e.height/2,s=(c-O.value)/x.value,i=(a-z.value)/x.value,m=.01,v=-t.deltaY*m,p=Math.min(Math.max(x.value+v,.5),3);p!==x.value&&(O.value=c-s*p,z.value=a-i*p,x.value=p)}}function Ot(){return D(this,null,function*(){try{const t=R.value,e={payload:{type:"copy",text:t},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};if(ne("copy",e),e.defaultPrevented)return;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(t)),Ce.value=!0,setTimeout(()=>{Ce.value=!1},1e3)}catch(t){console.error("Failed to copy:",t)}})}function zt(){var t;const e=(t=u.value)==null?void 0:t.querySelector("svg");if(!e)return void console.error("SVG element not found");const l=new XMLSerializer().serializeToString(e),n={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:e,svgString:l};ne("export",n),n.defaultPrevented||(function(c,a=null){D(this,null,function*(){try{const s=a??new XMLSerializer().serializeToString(c),i=new Blob([s],{type:"image/svg+xml;charset=utf-8"}),m=URL.createObjectURL(i);if(typeof document<"u"){const v=document.createElement("a");v.href=m,v.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(v),v.click(),document.body.removeChild(v)}catch{}URL.revokeObjectURL(m)}}catch(s){console.error("Failed to export SVG:",s)}})})(e,l)}function Lt(){var t,e;const l=(e=(t=u.value)==null?void 0:t.querySelector("svg"))!=null?e:null,n=l?new XMLSerializer().serializeToString(l):null,c={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:l,svgString:n};ne("openModal",c),c.defaultPrevented||(function(){if(J.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",vt)}catch{}A(()=>{if(q.value&&ae.value){const a=q.value.cloneNode(!0);a.classList.add("fullscreen");const s=a.querySelector("[data-mermaid-wrapper]");s&&(De.value=s,s.style.transform=Ue.value.transform),Me(ae.value),ae.value.appendChild(a)}})})()}function gt(t){const e={payload:{type:"toggle-mode",target:t},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};ne("toggleMode",t,e),e.defaultPrevented||pt(t)}function pt(t){return D(this,null,function*(){const e=tt.value;if(!e)return Ee.value=!0,void(S.value=t==="source");const l=e.getBoundingClientRect().height;e.style.height=`${l}px`,e.style.overflow="hidden",Ee.value=!0,S.value=t==="source",yield A();const n=e.scrollHeight;e.style.transition="height 180ms ease",e.offsetHeight,e.style.height=`${n}px`;const c=()=>{e.style.transition="",e.style.height="",e.style.overflow="",e.removeEventListener("transitionend",a)};function a(){c()}e.addEventListener("transitionend",a),setTimeout(()=>c(),220)})}function Ne(){return D(this,null,function*(){return W.value?Pe.value:u.value||(yield A(),u.value)?(W.value=!0,Pe.value=D(null,null,function*(){var t,e,l;u.value&&(u.value.style.opacity="0");try{const n=yield Te();if(!n)return;const c=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;B.value||te.value||(t=n.initialize)==null||t.call(n,(e=Qe({},re.value),l={dompurifyConfig:Qe({},be)},ll(e,nl(l))));const a=(function(m,v=R.value){const p=v,L=`%%{init: {"theme": "${m==="dark"?"dark":"default"}"}}%%
4
- `;return p.trim().startsWith("%%{")?p:L+p})(o.isDark?"dark":"light"),s=yield $e(()=>n.render(c,a),{timeoutMs:U.value.fullRender}),i=s?.svg;if(u.value){const m=oe(u.value,i);B.value||te.value||(Ie(),B.value=!0,le.value={zoom:x.value,translateX:O.value,translateY:z.value,containerHeight:G.value});const v=o.isDark?"dark":"light";m&&(K.value[v]=m),te.value&&(te.value=!1),I.value=!1,ge=0,pe()}}catch(n){const c=(function(s){const i=typeof s=="string"?s:typeof s?.message=="string"?s.message:"";return typeof i=="string"&&/timed out/i.test(i)})(n),a=ge+1;c&&a<=3?(ge=a,nt(Math.min(1200,600*a))):(ge=0,pe(),console.error("Failed to render mermaid diagram:",n),o.loading===!1&&at(n))}finally{yield A(),u.value&&(u.value.style.opacity="1"),W.value=!1,Pe.value=null}}),Pe.value):void console.warn("Mermaid container not ready")})}function wt(){return D(this,null,function*(){var t,e;const l=Date.now(),n=++Ze.value;H&&H.abort(),H=new AbortController;const c=H.signal,a=o.isDark?"dark":"light",s=R.value,i=s.replace(/\s+/g,"");if(!s.trim())return u.value&&Me(u.value),rt.value=null,we.value="",void(I.value=!1);if(i===we.value)return;try{const v=yield(function(L,C,Y){return D(this,null,function*(){var N;try{if(yield Ae(L,C,Y))return{fullOk:!0,prefixOk:!1}}catch(k){if(k?.name==="AbortError")throw k}let b=dt(L);if(b&&b.trim()&&b!==L)try{try{const k=yield Kt(L,C,(N=Y?.timeoutMs)!=null?N:U.value.worker);k&&k.trim()&&(b=k)}catch{}if(yield Ae(b,C,Y))return{fullOk:!1,prefixOk:!0,prefix:b}}catch(k){if(k?.name==="AbortError")throw k}return{fullOk:!1,prefixOk:!1}})})(s,a,{signal:c,timeoutMs:U.value.worker});if(v.fullOk)return yield Ne(),void(Ze.value===n&&(rt.value=(e=(t=u.value)==null?void 0:t.innerHTML)!=null?e:null,we.value=i,I.value=!1));const p=ze&&l<=ze;if(v.prefixOk&&v.prefix&&ct()&&!p)return void(yield(function(L){return D(this,null,function*(){if(ct()&&(u.value||(yield A(),u.value))&&!W.value){W.value=!0;try{const C=yield Te();if(!C)return;const Y=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,N=o.isDark?"dark":"light",b=dt(L),k=st(b&&b.trim()?b:L,N);u.value&&(u.value.style.opacity="0");const Ye=yield $e(()=>C.render(Y,k),{timeoutMs:U.value.render}),yt=Ye?.svg;u.value&&yt&&(oe(u.value,yt),Ie())}catch{}finally{yield A(),u.value&&(u.value.style.opacity="1"),W.value=!1}}})})(v.prefix))}catch(v){if(v?.name==="AbortError")return}if(Ze.value!==n||I.value)return;const m=K.value[a];m&&u.value&&oe(u.value,m)})}function _(){de&&(de=!1,ye=800,qe=!1,X&&(X.abort(),X=null),ce&&(globalThis.clearTimeout(ce),ce=null),Oe&&(Pt(Oe),Oe=null),ze=Date.now())}function Xe(){if(_(),H){try{H.abort()}catch{}H=null}if(X){try{X.abort()}catch{}X=null}pe(),ge=0}function Ge(t=800){de&&(Le>=12?_():(ce&&globalThis.clearTimeout(ce),ce=globalThis.setTimeout(()=>{Oe=lt(()=>D(null,null,function*(){if(!de)return;if(S.value||B.value)return void _();const e=o.isDark?"dark":"light",l=R.value;if(!l.trim())return o.loading===!1?void _():void Ge(ye);if(Le++,Le>12)_();else{X&&X.abort(),X=new AbortController;try{if((yield Ae(l,e,{signal:X.signal,timeoutMs:U.value.worker}))&&(yield Ne(),B.value))return void _()}catch{}ye=Math.min(Math.floor(1.5*ye),4e3),Ge(ye)}}),{timeout:500})},t)))}function Ke(){de||S.value||B.value||(de=!0,ze=0,qe=!0,Le=0,Ge(500))}V(Ue,t=>{J.value&&De.value&&(De.value.style.transform=t.transform)},{immediate:!0}),V(()=>R.value,()=>{B.value=!1,K.value={},ue(),!S.value&&j.value&&Ke(),(function(){if(!S.value||!j.value)return;const t=R.value.length;t!==je.value&&(Ve.value=!0,je.value=t,fe&&clearTimeout(fe),fe=setTimeout(()=>{Ve.value&&S.value&&R.value.trim()&&(Ve.value=!1,pt("preview"))},500))})()}),V(()=>o.isDark,()=>D(null,null,function*(){if(!B.value||I.value)return;const t=o.isDark?"dark":"light",e=K.value[t];if(e)return void(u.value&&oe(u.value,e));const l={zoom:x.value,translateX:O.value,translateY:z.value,containerHeight:G.value},n=x.value!==1||O.value!==0||z.value!==0;te.value=!0,n&&(x.value=1,O.value=0,z.value=0,yield A()),yield Ne(),n&&(yield A(),x.value=l.zoom,O.value=l.translateX,z.value=l.translateY,G.value=l.containerHeight,le.value=l)})),V(()=>S.value,t=>D(null,null,function*(){if(t)_(),B.value&&(le.value={zoom:x.value,translateX:O.value,translateY:z.value,containerHeight:G.value});else{if(I.value)return;const e=o.isDark?"dark":"light";if(B.value&&K.value[e])return yield A(),u.value&&oe(u.value,K.value[e]),x.value=le.value.zoom,O.value=le.value.translateX,z.value=le.value.translateY,void(G.value=le.value.containerHeight);if(yield A(),!j.value)return;yield wt(),Ke()}})),V(()=>o.loading,(t,e)=>D(null,null,function*(){if(e===!0&&t===!1){const l=R.value.trim();if(!l)return Xe();const n=o.isDark?"dark":"light",c=l.replace(/\s+/g,"");if(B.value&&c===we.value)return yield A(),u.value&&!u.value.querySelector("svg")&&K.value[n]&&oe(u.value,K.value[n]),void Xe();try{yield Ae(l,n,{timeoutMs:U.value.worker}),yield Ne(),we.value=c,I.value=!1,Xe()}catch(a){Xe(),at(a)}}})),V(q,t=>{se&&se.disconnect(),!t||B.value||te.value||(se=new ResizeObserver(e=>{e&&e.length>0&&!B.value&&!te.value&&el(()=>{Ie(e[0].contentRect.width)})}),se.observe(t))},{immediate:!0}),Nt(()=>D(null,null,function*(){yield A(),Ee.value||(S.value=!j.value),ie.value&&(ue(),je.value=R.value.length)})),V(()=>j.value,t=>{Ee.value||(S.value=!t)}),V(()=>ie.value,t=>{t&&(B.value||(ue(),je.value=R.value.length),o.loading||B.value||ue())},{immediate:!1}),Xt(()=>{fe&&clearTimeout(fe),se&&se.disconnect(),H&&(H.abort(),H=null),_(),pe()}),V(()=>Z.value,t=>D(null,null,function*(){t?(_(),H&&H.abort()):B.value||(yield A(),ue(),S.value||Ke())}),{immediate:!1});const _e=Q(()=>o.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");return(t,e)=>(g(),w("div",{class:y(["my-4 rounded-lg border overflow-hidden shadow-sm",[o.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":o.loading}]])},[o.showHeader?(g(),w("div",{key:0,class:y(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",o.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[t.$slots["header-left"]?(g(),w("div",al,[Je(t.$slots,"header-left",{},void 0,!0)])):(g(),w("div",il,[r("img",{src:h("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,ul),r("span",{class:y(["text-sm font-medium font-mono truncate",o.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),t.$slots["header-center"]?(g(),w("div",sl,[Je(t.$slots,"header-center",{},void 0,!0)])):o.showModeToggle&&j.value?(g(),w("div",{key:3,class:y(["flex items-center gap-x-1 rounded-md p-0.5",o.isDark?"bg-gray-700":"bg-gray-100"])},[r("button",{class:y(["px-2.5 py-1 text-xs rounded transition-colors",[S.value?o.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":o.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:e[0]||(e[0]=()=>gt("preview")),onMouseenter:e[1]||(e[1]=l=>E(l,h(f)("common.preview")||"Preview")),onFocus:e[2]||(e[2]=l=>E(l,h(f)("common.preview")||"Preview")),onMouseleave:T,onBlur:T},[r("div",cl,[e[21]||(e[21]=r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[r("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),r("circle",{cx:"12",cy:"12",r:"3"})])],-1)),r("span",null,xe(h(f)("common.preview")||"Preview"),1)])],34),r("button",{class:y(["px-2.5 py-1 text-xs rounded transition-colors",[S.value?o.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":o.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:e[3]||(e[3]=()=>gt("source")),onMouseenter:e[4]||(e[4]=l=>E(l,h(f)("common.source")||"Source")),onFocus:e[5]||(e[5]=l=>E(l,h(f)("common.source")||"Source")),onMouseleave:T,onBlur:T},[r("div",dl,[e[22]||(e[22]=r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),r("span",null,xe(h(f)("common.source")||"Source"),1)])],34)],2)):ee("",!0),t.$slots["header-right"]?(g(),w("div",vl,[Je(t.$slots,"header-right",{},void 0,!0)])):(g(),w("div",ml,[o.showCollapseButton?(g(),w("button",{key:0,class:y(_e.value),"aria-pressed":Z.value,onClick:e[6]||(e[6]=l=>Z.value=!Z.value),onMouseenter:e[7]||(e[7]=l=>E(l,Z.value?h(f)("common.expand")||"Expand":h(f)("common.collapse")||"Collapse")),onFocus:e[8]||(e[8]=l=>E(l,Z.value?h(f)("common.expand")||"Expand":h(f)("common.collapse")||"Collapse")),onMouseleave:T,onBlur:T},[(g(),w("svg",{style:xt({rotate:Z.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...e[23]||(e[23]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,fl)):ee("",!0),o.showCopyButton?(g(),w("button",{key:1,class:y(_e.value),onClick:Ot,onMouseenter:e[9]||(e[9]=l=>ut(l)),onFocus:e[10]||(e[10]=l=>ut(l)),onMouseleave:T,onBlur:T},[Ce.value?(g(),w("svg",gl,[...e[25]||(e[25]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(g(),w("svg",hl,[...e[24]||(e[24]=[r("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[r("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),r("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):ee("",!0),o.showExportButton&&j.value?(g(),w("button",{key:2,class:y(`${_e.value} ${Fe.value?"opacity-50 cursor-not-allowed":""}`),disabled:Fe.value,onClick:zt,onMouseenter:e[11]||(e[11]=l=>E(l,h(f)("common.export")||"Export")),onFocus:e[12]||(e[12]=l=>E(l,h(f)("common.export")||"Export")),onMouseleave:T,onBlur:T},[...e[26]||(e[26]=[r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[r("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),r("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,pl)):ee("",!0),o.showFullscreenButton&&j.value?(g(),w("button",{key:3,class:y(`${_e.value} ${Fe.value?"opacity-50 cursor-not-allowed":""}`),disabled:Fe.value,onClick:Lt,onMouseenter:e[13]||(e[13]=l=>E(l,J.value?h(f)("common.minimize")||"Minimize":h(f)("common.open")||"Open")),onFocus:e[14]||(e[14]=l=>E(l,J.value?h(f)("common.minimize")||"Minimize":h(f)("common.open")||"Open")),onMouseleave:T,onBlur:T},[J.value?(g(),w("svg",xl,[...e[28]||(e[28]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(g(),w("svg",yl,[...e[27]||(e[27]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,wl)):ee("",!0)]))],2)):ee("",!0),_t(r("div",{ref_key:"modeContainerRef",ref:tt},[S.value?(g(),w("div",{key:0,class:y(["p-4",o.isDark?"bg-gray-900":"bg-gray-50"])},[r("pre",{class:y(["text-sm font-mono whitespace-pre-wrap",o.isDark?"text-gray-300":"text-gray-700"])},xe(R.value),3)],2)):(g(),w("div",kl,[o.showZoomControls?(g(),w("div",bl,[r("div",Ml,[r("button",{class:y(["p-2 text-xs rounded transition-colors",[o.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:mt,onMouseenter:e[15]||(e[15]=l=>E(l,h(f)("common.zoomIn")||"Zoom in")),onFocus:e[16]||(e[16]=l=>E(l,h(f)("common.zoomIn")||"Zoom in")),onMouseleave:T,onBlur:T},[...e[29]||(e[29]=[r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[r("circle",{cx:"11",cy:"11",r:"8"}),r("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),r("button",{class:y(["p-2 text-xs rounded transition-colors",[o.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:ft,onMouseenter:e[17]||(e[17]=l=>E(l,h(f)("common.zoomOut")||"Zoom out")),onFocus:e[18]||(e[18]=l=>E(l,h(f)("common.zoomOut")||"Zoom out")),onMouseleave:T,onBlur:T},[...e[30]||(e[30]=[r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[r("circle",{cx:"11",cy:"11",r:"8"}),r("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),r("button",{class:y(["p-2 text-xs rounded transition-colors",[o.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:ht,onMouseenter:e[19]||(e[19]=l=>E(l,h(f)("common.resetZoom")||"Reset zoom")),onFocus:e[20]||(e[20]=l=>E(l,h(f)("common.resetZoom")||"Reset zoom")),onMouseleave:T,onBlur:T},xe(Math.round(100*x.value))+"% ",35)])])):ee("",!0),r("div",kt({ref_key:"mermaidContainer",ref:q,class:["min-h-[360px] relative transition-all duration-100 overflow-hidden block",o.isDark?"bg-gray-900":"bg-gray-50"],style:{height:G.value}},bt(ot.value),{onMousedown:He,onMousemove:Re,onMouseup:ve,onMouseleave:ve,onTouchstartPassive:He,onTouchmovePassive:Re,onTouchendPassive:ve}),[r("div",{"data-mermaid-wrapper":"",class:y(["absolute inset-0 cursor-grab",{"cursor-grabbing":Be.value}]),style:xt(Ue.value)},[r("div",{ref_key:"mermaidContent",ref:u,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],16),(g(),Vt(Wt,{to:"body"},[r("div",Tl,[Zt(Ut,{name:"mermaid-dialog",appear:""},{default:qt(()=>[J.value?(g(),w("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:It(We,["self"])},[r("div",{class:y(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",o.isDark?"bg-gray-900":"bg-white"])},[r("div",Cl,[r("button",{class:y(["p-2 text-xs rounded transition-colors",[o.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:mt},[...e[31]||(e[31]=[r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[r("circle",{cx:"11",cy:"11",r:"8"}),r("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),r("button",{class:y(["p-2 text-xs rounded transition-colors",[o.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:ft},[...e[32]||(e[32]=[r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[r("circle",{cx:"11",cy:"11",r:"8"}),r("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),r("button",{class:y(["p-2 text-xs rounded transition-colors",[o.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:ht},xe(Math.round(100*x.value))+"% ",3),r("button",{class:y(["inline-flex items-center justify-center p-2 rounded transition-colors",[o.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:We},[...e[33]||(e[33]=[r("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),r("div",kt({ref_key:"modalContent",ref:ae,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden"},bt(ot.value,!0),{onMousedown:He,onMousemove:Re,onMouseup:ve,onMouseleave:ve,onTouchstartPassive:He,onTouchmovePassive:Re,onTouchendPassive:ve}),null,16)],2)])):ee("",!0)]),_:1})])]))]))],512),[[Yt,!Z.value]])],2))}}),[["__scopeId","data-v-2ff46cc8"]]);et.install=$=>{$.component(et.__name,et)};export{et as default};
@@ -1 +0,0 @@
1
- import{V as a,W as n}from"./DaWfUpsD.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{b as r}from"./DUsPre0P.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1 +0,0 @@
1
- import{e as c2,d as d2,A as h2,w as X,r as m,R as j,C as R,o as v2,g as g2,f as c,j as s,m as k,k as w2,l as m2,z as a,q,n as o,E as i,H as z,I as G,v as p2,y as x2,p as y2,O as C2,T as f2,P as k2,M as l2,N as b2,_ as M2}from"./C8FO969Z.js";var Y=(E,J,r)=>new Promise((l,b)=>{var v=y=>{try{w(r.next(y))}catch(p){b(p)}},g=y=>{try{w(r.throw(y))}catch(p){b(p)}},w=y=>y.done?l(y.value):Promise.resolve(y.value).then(v,g);w((r=r.apply(E,J)).next())});const a2=()=>M2(()=>import("./yG4UzpsV.js"),[],import.meta.url);let N=null,B2=a2;const D2={key:0},F2={key:1,class:"flex items-center gap-x-2 overflow-hidden"},T2=["src"],j2={key:2},E2={class:"flex items-center gap-x-1"},$2={class:"flex items-center gap-x-1"},z2={key:4},L2={key:5,class:"flex items-center gap-x-1"},_2=["aria-pressed"],P2={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Z2={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},I2=["disabled"],H2=["disabled"],S2={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},V2={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},O2={key:1,class:"relative"},X2={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},R2={class:"flex items-center gap-2 backdrop-blur rounded-lg"},Y2={class:"markstream-vue"},N2={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},Q=c2(d2({__name:"InfographicBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal"],setup(E,{emit:J}){const r=E,{t:l}=h2(),b=m(!1),v=m(!1),g=m(),w=m(!1),y=m("360px"),p=m(!1),M=m(),L=m(null),f=m(1),B=m(0),D=m(0),F=m(!1),_=m({x:0,y:0}),P=R(()=>r.node.code);function K(t){return!t||t.disabled}function h(t,e,n="top"){if(K(t.currentTarget))return;const u=t,x=u?.clientX!=null&&u?.clientY!=null?{x:u.clientX,y:u.clientY}:void 0;l2(t.currentTarget,e,n,!1,x,r.isDark)}function d(){b2()}function W(t){if(K(t.currentTarget))return;const e=b.value?l("common.copied")||"Copied":l("common.copy")||"Copy",n=t,u=n?.clientX!=null&&n?.clientY!=null?{x:n.clientX,y:n.clientY}:void 0;l2(t.currentTarget,e,"top",!1,u,r.isDark)}function i2(){return Y(this,null,function*(){try{const t=P.value;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(t)),b.value=!0,setTimeout(()=>{b.value=!1},1e3)}catch(t){console.error("Failed to copy:",t)}})}function e2(t){w.value=t==="source"}function s2(){var t;const e=(t=g.value)==null?void 0:t.querySelector("svg");e?(function(n){Y(this,null,function*(){try{const u=new XMLSerializer().serializeToString(n),x=new Blob([u],{type:"image/svg+xml;charset=utf-8"}),O=URL.createObjectURL(x);if(typeof document<"u"){const $=document.createElement("a");$.href=O,$.download=`infographic-${Date.now()}.svg`;try{document.body.appendChild($),$.click(),document.body.removeChild($)}catch{}URL.revokeObjectURL(O)}}catch(u){console.error("Failed to export SVG:",u)}})})(e):console.error("SVG element not found")}function U(t){t.key==="Escape"&&p.value&&A()}function A(){if(p.value=!1,M.value&&(M.value.innerHTML=""),L.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",U)}catch{}}function u2(){(function(){if(p.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",U)}catch{}j(()=>{if(g.value&&M.value){M.value.innerHTML="";const t=document.createElement("div");t.style.transition="transform 0.1s ease",t.style.transformOrigin="center center",t.style.width="100%",t.style.height="100%",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center";const e=g.value.cloneNode(!0);e.classList.add("fullscreen"),e.style.height="auto",t.appendChild(e),M.value.appendChild(t),L.value=t,t.style.transform=`translate(${B.value}px, ${D.value}px) scale(${f.value})`}})})()}function t2(){f.value<3&&(f.value+=.1)}function o2(){f.value>.5&&(f.value-=.1)}function n2(){f.value=1,B.value=0,D.value=0}function Z(t){F.value=!0,t instanceof MouseEvent?_.value={x:t.clientX-B.value,y:t.clientY-D.value}:_.value={x:t.touches[0].clientX-B.value,y:t.touches[0].clientY-D.value}}function I(t){if(!F.value)return;let e,n;t instanceof MouseEvent?(e=t.clientX,n=t.clientY):(e=t.touches[0].clientX,n=t.touches[0].clientY),B.value=e-_.value.x,D.value=n-_.value.y}function T(){F.value=!1}let C=null;function H(){return Y(this,null,function*(){var t;if(g.value)try{const e=yield(function(){return Y(this,null,function*(){if(N)return N;const n=B2;if(!n)return null;let u;try{u=yield n()}catch(O){throw n===a2?new Error('Optional dependency "@antv/infographic" is not installed. Please install it to enable infographic diagrams.'):O}if(!u)return null;const x=u&&u.default?u.default:u;return N=typeof x=="function"&&x.prototype&&x.prototype.render?x:u.Infographic?u.Infographic:x&&x.Infographic?x.Infographic:x,N})})();if(!e)return void console.warn("Infographic library failed to load.");C&&((t=C.destroy)==null||t.call(C),C=null),g.value.innerHTML="",C=new e({container:g.value,width:"100%",height:"100%"}),C.render(P.value),j(()=>{if(g.value){const n=g.value.scrollHeight;n>0&&(y.value=`${Math.min(n,800)}px`)}})}catch(e){console.error("Failed to render infographic:",e),g.value&&(g.value.innerHTML=`<div class="text-red-500 p-4">Failed to render infographic: ${e instanceof Error?e.message:"Unknown error"}</div>`)}})}X(()=>P.value,()=>{w.value||v.value||j(()=>{H()})}),X(()=>w.value,t=>{t||v.value||j(()=>{H()})}),X(()=>v.value,t=>{t||w.value||j(()=>{H()})}),v2(()=>{w.value||v.value||j(()=>{H()})}),g2(()=>{var t;if(C&&((t=C.destroy)==null||t.call(C),C=null),typeof window<"u")try{window.removeEventListener("keydown",U)}catch{}});const S=R(()=>r.isDark?"infographic-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"infographic-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700"),V=R(()=>w.value||v.value),r2=R(()=>({transform:`translate(${B.value}px, ${D.value}px) scale(${f.value})`}));return X(r2,t=>{p.value&&L.value&&(L.value.style.transform=t.transform)}),(t,e)=>(s(),c("div",{class:a(["my-4 rounded-lg border overflow-hidden shadow-sm",[r.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":r.loading}]])},[r.showHeader?(s(),c("div",{key:0,class:a(["infographic-block-header flex justify-between items-center px-4 py-2.5 border-b",r.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[t.$slots["header-left"]?(s(),c("div",D2,[q(t.$slots,"header-left",{},void 0,!0)])):(s(),c("div",F2,[o("img",{src:i("data:image/svg+xml,%3csvg%20width='15.52'%20height='16'%20viewBox='0%200%20291%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M140.904%20239.376C128.83%20239.683%20119.675%20239.299%20115.448%20243.843C110.902%20248.07%20111.288%20257.227%20110.979%20269.302C111.118%20274.675%20111.118%20279.478%20111.472%20283.52C111.662%20285.638%20111.95%20287.547%20112.406%20289.224C112.411%20289.243%20112.416%20289.259%20112.422%20289.28C112.462%20289.419%20112.496%20289.558%20112.539%20289.691C113.168%20291.787%20114.088%20293.491%20115.446%20294.758C116.662%20296.064%20118.283%20296.963%20120.264%20297.59C120.36%20297.614%20120.464%20297.646%20120.555%20297.675C120.56%20297.68%20120.56%20297.68%20120.566%20297.68C120.848%20297.768%20121.142%20297.846%20121.443%20297.923C121.454%20297.923%20121.464%20297.928%20121.478%20297.934C122.875%20298.272%20124.424%20298.507%20126.11%20298.678C126.326%20298.696%20126.542%20298.718%20126.763%20298.739C130.79%20299.086%20135.558%20299.088%20140.904%20299.222C152.974%20298.912%20162.128%20299.302%20166.36%20294.758C170.904%20290.526%20170.515%20281.371%20170.824%20269.302C170.515%20257.227%20170.907%20248.07%20166.36%20243.843C162.131%20239.299%20152.974%20239.683%20140.904%20239.376Z'%20fill='%23FF6376'%3e%3c/path%3e%3cpath%20d='M21.2155%20128.398C12.6555%20128.616%206.16484%20128.339%203.16751%20131.56C-0.0538222%20134.56%200.218178%20141.054%20-0.000488281%20149.608C0.218178%20158.168%20-0.0538222%20164.659%203.16751%20167.656C6.16484%20170.878%2012.6555%20170.606%2021.2155%20170.824C25.0262%20170.726%2028.4288%20170.726%2031.2955%20170.475C32.7968%20170.342%2034.1488%20170.136%2035.3382%20169.814C35.3542%20169.811%2035.3648%20169.806%2035.3782%20169.803C35.4768%20169.774%2035.5755%20169.747%2035.6688%20169.718C37.1568%20169.272%2038.3648%20168.622%2039.2635%20167.656C40.1915%20166.795%2040.8262%20165.646%2041.2715%20164.243C41.2875%20164.174%2041.3115%20164.102%2041.3328%20164.035C41.3328%20164.035%2041.3355%20164.032%2041.3355%20164.027C41.3968%20163.827%2041.4529%20163.622%2041.5062%20163.406C41.5062%20163.398%2041.5115%20163.392%2041.5142%20163.382C41.7542%20162.392%2041.9222%20161.294%2042.0422%20160.096C42.0555%20159.944%2042.0715%20159.792%2042.0848%20159.635C42.3328%20156.779%2042.3328%20153.398%2042.4262%20149.608C42.2075%20141.054%2042.4848%20134.56%2039.2635%20131.56C36.2635%20128.339%2029.7728%20128.616%2021.2155%20128.398Z'%20fill='%23FFCCCC'%3e%3c/path%3e%3cpath%20d='M81.0595%20184.171C70.8568%20184.433%2063.1208%20184.102%2059.5475%20187.942C55.7075%20191.518%2056.0328%20199.254%2055.7742%20209.454C56.0328%20219.657%2055.7075%20227.393%2059.5475%20230.963C63.1208%20234.803%2070.8568%20234.478%2081.0595%20234.739C85.6008%20234.622%2089.6595%20234.622%2093.0728%20234.323C94.8648%20234.163%2096.4755%20233.921%2097.8942%20233.534C97.9102%20233.529%2097.9235%20233.526%2097.9422%20233.521C98.0568%20233.486%2098.1742%20233.457%2098.2888%20233.422C100.06%20232.889%20101.5%20232.113%20102.569%20230.963C103.676%20229.937%20104.433%20228.566%20104.964%20226.894C104.985%20226.811%20105.012%20226.726%20105.036%20226.646C105.041%20226.643%20105.041%20226.643%20105.041%20226.638C105.116%20226.401%20105.18%20226.153%20105.244%20225.897C105.244%20225.889%20105.249%20225.881%20105.254%20225.867C105.54%20224.689%20105.74%20223.379%20105.881%20221.953C105.9%20221.771%20105.916%20221.59%20105.934%20221.403C106.228%20218.001%20106.228%20213.969%20106.342%20209.454C106.081%20199.254%20106.412%20191.518%20102.572%20187.942C98.9955%20184.102%2091.2568%20184.433%2081.0595%20184.171Z'%20fill='%23FF939F'%3e%3c/path%3e%3cpath%20d='M260.591%20151.87C215.652%20151.87%20203.02%20164.523%20203.02%20209.462H198.476C198.476%20164.523%20185.836%20151.881%20140.895%20151.881V147.337C185.836%20147.337%20198.487%20134.705%20198.487%2089.7659H203.02C203.02%20134.705%20215.652%20147.337%20260.591%20147.337V151.87ZM286.052%20124.158C281.82%20119.614%20272.66%20120.001%20260.591%20119.689C248.521%20119.385%20239.361%20119.771%20235.129%20115.227C230.585%20110.995%20230.983%20101.846%20230.671%2089.7659C230.513%2083.7312%20230.535%2078.4272%20230.023%2074.1019C229.513%2069.7659%20228.481%2066.4219%20226.209%2064.3046C221.967%2059.7606%20212.817%2060.1472%20200.748%2059.8459C188.681%2060.1472%20179.519%2059.7606%20175.287%2064.3046C170.753%2068.5366%20171.129%2077.6966%20170.828%2089.7659C170.516%20101.835%20170.9%20110.995%20166.356%20115.227C162.124%20119.771%20152.985%20119.374%20140.905%20119.689C138.873%20119.739%20136.924%20119.771%20135.071%20119.811C119.313%20118.697%20106.337%20112.318%20106.337%2089.7659C106.212%2084.6699%20106.233%2080.1792%20105.807%2076.5206C105.367%2072.8726%20104.492%2070.0379%20102.575%2068.2566C99.0013%2064.4112%2091.2573%2064.7446%2081.0653%2064.4832C70.86%2064.7446%2063.1186%2064.4112%2059.5533%2068.2566C55.708%2071.8299%2056.0306%2079.5632%2055.7693%2089.7659C56.0306%2099.9686%2055.708%20107.702%2059.5533%20111.278C63.1186%20115.113%2070.86%20114.79%2081.0653%20115.049C103.617%20115.049%20109.996%20128.035%20111.1%20143.803C111.068%20145.659%20111.028%20147.587%20110.975%20149.619C111.121%20154.987%20111.121%20159.79%20111.476%20163.835C111.663%20165.95%20111.945%20167.857%20112.404%20169.534C112.412%20169.555%20112.412%20169.566%20112.423%20169.598C112.465%20169.734%20112.497%20169.867%20112.537%20170.003C113.164%20172.099%20114.092%20173.809%20115.447%20175.07C116.665%20176.371%20118.281%20177.278%20120.271%20177.905C120.364%20177.934%20120.46%20177.955%20120.564%20177.987C120.855%20178.081%20121.145%20178.153%20121.439%20178.238C121.46%20178.238%20121.471%20178.238%20121.479%20178.249C122.876%20178.582%20124.42%20178.822%20126.108%20178.987C126.327%20179.009%20126.545%20179.03%20126.764%20179.051C130.788%20179.395%20135.559%20179.395%20140.905%20179.529C152.975%20179.843%20162.124%20179.457%20166.356%20184.001C170.9%20188.233%20170.516%20197.371%20170.828%20209.451C171.129%20221.529%20170.743%20230.681%20175.287%20234.91C179.519%20239.454%20188.681%20239.07%20200.748%20239.371C206.127%20239.235%20210.921%20239.235%20214.975%20238.881C217.079%20238.694%20218.985%20238.403%20220.676%20237.955C220.695%20237.945%20220.705%20237.934%20220.727%20237.934C220.873%20237.891%20220.999%20237.859%20221.135%20237.819C223.228%20237.193%20224.937%20236.265%20226.209%20234.91C227.511%20233.691%20228.409%20232.065%20229.044%20230.097C229.065%20230.003%20229.095%20229.899%20229.127%20229.803V229.793C229.22%20229.513%20229.295%20229.222%20229.367%20228.918C229.367%20228.897%20229.377%20228.897%20229.377%20228.878C229.721%20227.481%20229.951%20225.937%20230.127%20224.249C230.137%20224.03%20230.169%20223.811%20230.191%20223.593C230.535%20219.571%20230.535%20214.798%20230.671%20209.451C230.972%20197.371%20230.585%20188.233%20235.129%20184.001C239.361%20179.457%20248.511%20179.843%20260.591%20179.529C272.66%20179.227%20281.82%20179.614%20286.052%20175.07C290.596%20170.838%20290.209%20161.689%20290.511%20149.619C290.209%20137.539%20290.596%20128.379%20286.052%20124.158Z'%20fill='%23FF356A'%3e%3c/path%3e%3cpath%20d='M112.405%2049.848C112.411%2049.8694%20112.416%2049.8827%20112.421%2049.904C112.461%2050.0427%20112.499%2050.1814%20112.539%2050.3147C113.171%2052.4134%20114.088%2054.1147%20115.448%2055.384C116.661%2056.6907%20118.283%2057.5894%20120.264%2058.2134C120.36%2058.24%20120.464%2058.2694%20120.555%2058.3014C120.56%2058.3067%20120.56%2058.3067%20120.565%2058.3067C120.848%2058.3947%20121.141%2058.4694%20121.443%2058.5467C121.453%2058.5467%20121.464%2058.552%20121.48%2058.5574C122.875%2058.896%20124.424%2059.1334%20126.112%2059.3014C126.325%2059.3227%20126.541%2059.3414%20126.763%2059.3627C130.789%2059.712%20135.56%2059.712%20140.904%2059.8454C152.973%2059.5387%20162.128%2059.928%20166.36%2055.384C170.907%2051.152%20170.515%2041.9947%20170.824%2029.9254C170.517%2017.8507%20170.907%208.69602%20166.363%204.46935C162.131%20-0.0746511%20152.973%200.309349%20140.904%201.52588e-05C128.829%200.309349%20119.675%20-0.0746511%20115.448%204.46935C110.904%208.69602%20111.288%2017.8507%20110.979%2029.9254C111.117%2035.3014%20111.117%2040.1014%20111.472%2044.144C111.661%2046.2614%20111.949%2048.1707%20112.405%2049.848Z'%20fill='%23FF6376'%3e%3c/path%3e%3c/g%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Infographic"},null,8,T2),o("span",{class:a(["text-sm font-medium font-mono truncate",r.isDark?"text-gray-400":"text-gray-600"])},"Infographic",2)])),t.$slots["header-center"]?(s(),c("div",j2,[q(t.$slots,"header-center",{},void 0,!0)])):r.showModeToggle?(s(),c("div",{key:3,class:a(["flex items-center gap-x-1 rounded-md p-0.5",r.isDark?"bg-gray-700":"bg-gray-100"])},[o("button",{class:a(["px-2.5 py-1 text-xs rounded transition-colors",[w.value?r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:e[0]||(e[0]=()=>e2("preview")),onMouseenter:e[1]||(e[1]=n=>h(n,i(l)("common.preview")||"Preview")),onFocus:e[2]||(e[2]=n=>h(n,i(l)("common.preview")||"Preview")),onMouseleave:d,onBlur:d},[o("div",E2,[e[21]||(e[21]=o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),o("circle",{cx:"12",cy:"12",r:"3"})])],-1)),o("span",null,z(i(l)("common.preview")||"Preview"),1)])],34),o("button",{class:a(["px-2.5 py-1 text-xs rounded transition-colors",[w.value?r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:e[3]||(e[3]=()=>e2("source")),onMouseenter:e[4]||(e[4]=n=>h(n,i(l)("common.source")||"Source")),onFocus:e[5]||(e[5]=n=>h(n,i(l)("common.source")||"Source")),onMouseleave:d,onBlur:d},[o("div",$2,[e[22]||(e[22]=o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),o("span",null,z(i(l)("common.source")||"Source"),1)])],34)],2)):k("",!0),t.$slots["header-right"]?(s(),c("div",z2,[q(t.$slots,"header-right",{},void 0,!0)])):(s(),c("div",L2,[r.showCollapseButton?(s(),c("button",{key:0,class:a(S.value),"aria-pressed":v.value,onClick:e[6]||(e[6]=n=>v.value=!v.value),onMouseenter:e[7]||(e[7]=n=>h(n,v.value?i(l)("common.expand")||"Expand":i(l)("common.collapse")||"Collapse")),onFocus:e[8]||(e[8]=n=>h(n,v.value?i(l)("common.expand")||"Expand":i(l)("common.collapse")||"Collapse")),onMouseleave:d,onBlur:d},[(s(),c("svg",{style:G({rotate:v.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...e[23]||(e[23]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,_2)):k("",!0),r.showCopyButton?(s(),c("button",{key:1,class:a(S.value),onClick:i2,onMouseenter:e[9]||(e[9]=n=>W(n)),onFocus:e[10]||(e[10]=n=>W(n)),onMouseleave:d,onBlur:d},[b.value?(s(),c("svg",Z2,[...e[25]||(e[25]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(s(),c("svg",P2,[...e[24]||(e[24]=[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),o("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):k("",!0),r.showExportButton?(s(),c("button",{key:2,class:a(`${S.value} ${V.value?"opacity-50 cursor-not-allowed":""}`),disabled:V.value,onClick:s2,onMouseenter:e[11]||(e[11]=n=>h(n,i(l)("common.export")||"Export")),onFocus:e[12]||(e[12]=n=>h(n,i(l)("common.export")||"Export")),onMouseleave:d,onBlur:d},[...e[26]||(e[26]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),o("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,I2)):k("",!0),r.showFullscreenButton?(s(),c("button",{key:3,class:a(`${S.value} ${V.value?"opacity-50 cursor-not-allowed":""}`),disabled:V.value,onClick:u2,onMouseenter:e[13]||(e[13]=n=>h(n,p.value?i(l)("common.minimize")||"Minimize":i(l)("common.open")||"Open")),onFocus:e[14]||(e[14]=n=>h(n,p.value?i(l)("common.minimize")||"Minimize":i(l)("common.open")||"Open")),onMouseleave:d,onBlur:d},[p.value?(s(),c("svg",V2,[...e[28]||(e[28]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(s(),c("svg",S2,[...e[27]||(e[27]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,H2)):k("",!0)]))],2)):k("",!0),w2(o("div",null,[w.value?(s(),c("div",{key:0,class:a(["p-4",r.isDark?"bg-gray-900":"bg-gray-50"])},[o("pre",{class:a(["text-sm font-mono whitespace-pre-wrap",r.isDark?"text-gray-300":"text-gray-700"])},z(P.value),3)],2)):(s(),c("div",O2,[r.showZoomControls?(s(),c("div",X2,[o("div",R2,[o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:t2,onMouseenter:e[15]||(e[15]=n=>h(n,i(l)("common.zoomIn")||"Zoom in")),onFocus:e[16]||(e[16]=n=>h(n,i(l)("common.zoomIn")||"Zoom in")),onMouseleave:d,onBlur:d},[...e[29]||(e[29]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:o2,onMouseenter:e[17]||(e[17]=n=>h(n,i(l)("common.zoomOut")||"Zoom out")),onFocus:e[18]||(e[18]=n=>h(n,i(l)("common.zoomOut")||"Zoom out")),onMouseleave:d,onBlur:d},[...e[30]||(e[30]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:n2,onMouseenter:e[19]||(e[19]=n=>h(n,i(l)("common.resetZoom")||"Reset zoom")),onFocus:e[20]||(e[20]=n=>h(n,i(l)("common.resetZoom")||"Reset zoom")),onMouseleave:d,onBlur:d},z(Math.round(100*f.value))+"% ",35)])])):k("",!0),o("div",{class:a(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",r.isDark?"bg-gray-900":"bg-gray-50"]),style:G({height:y.value}),onMousedown:Z,onMousemove:I,onMouseup:T,onMouseleave:T,onTouchstartPassive:Z,onTouchmovePassive:I,onTouchendPassive:T},[o("div",{class:a(["absolute inset-0 cursor-grab",{"cursor-grabbing":F.value}]),style:G(r2.value)},[o("div",{ref_key:"infographicContainer",ref:g,class:"w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38)]))],512),[[p2,!v.value]]),(s(),m2(k2,{to:"body"},[o("div",Y2,[x2(f2,{name:"infographic-dialog",appear:""},{default:y2(()=>[p.value?(s(),c("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:C2(A,["self"])},[o("div",{class:a(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",r.isDark?"bg-gray-900":"bg-white"])},[o("div",N2,[o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:t2},[...e[31]||(e[31]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:o2},[...e[32]||(e[32]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:n2},z(Math.round(100*f.value))+"% ",3),o("button",{class:a(["inline-flex items-center justify-center p-2 rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:A},[...e[33]||(e[33]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),o("div",{ref_key:"modalContent",ref:M,class:a(["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"cursor-grab":!F.value,"cursor-grabbing":F.value}]),onMousedown:Z,onMousemove:I,onMouseup:T,onMouseleave:T,onTouchstartPassive:Z,onTouchmovePassive:I,onTouchendPassive:T},null,34)],2)])):k("",!0)]),_:1})])]))],2))}}),[["__scopeId","data-v-811a9bef"]]);Q.install=E=>{E.component(Q.__name,Q)};export{Q as default};
@@ -1 +0,0 @@
1
- import{s as e,b as r,a,S as s}from"./DpTvXhMN.js";import{_ as i}from"./DaWfUpsD.js";import"./D2lZokPL.js";import"./BnC2hR_I.js";import"./C8FO969Z.js";var p={parser:a,get db(){return new s(2)},renderer:r,styles:e,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{p as diagram};
@@ -1 +0,0 @@
1
- {"id":"049bc160-1f70-40ed-a254-53921612b1b8","timestamp":1770823853696,"prerendered":[]}