@qwen-code/qwen-code 0.18.5-nightly.20260622.6bc3f853e → 0.18.5-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/SKILL.md +13 -5
- package/bundled/qc-helper/docs/configuration/_meta.ts +1 -0
- package/bundled/qc-helper/docs/configuration/auth.md +68 -48
- package/bundled/qc-helper/docs/configuration/model-providers.md +217 -195
- package/bundled/qc-helper/docs/configuration/qwen-ignore.md +31 -15
- package/bundled/qc-helper/docs/configuration/settings.md +44 -27
- package/bundled/qc-helper/docs/configuration/themes.md +7 -4
- package/bundled/qc-helper/docs/extension/extension-releasing.md +1 -1
- package/bundled/qc-helper/docs/extension/introduction.md +27 -21
- package/bundled/qc-helper/docs/features/arena.md +3 -3
- package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
- package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
- package/bundled/qc-helper/docs/features/commands.md +6 -1
- package/bundled/qc-helper/docs/features/headless.md +1 -1
- package/bundled/qc-helper/docs/features/mcp.md +33 -14
- package/bundled/qc-helper/docs/features/sandbox.md +2 -2
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +1 -1
- package/bundled/qc-helper/docs/integration-github-action.md +2 -2
- package/bundled/qc-helper/docs/overview.md +1 -1
- package/bundled/qc-helper/docs/quickstart.md +9 -5
- package/bundled/qc-helper/docs/qwen-serve.md +14 -2
- package/bundled/qc-helper/docs/support/tos-privacy.md +1 -1
- package/chunks/{agent-WFLPE5MW.js → agent-P4KSTVXX.js} +24 -22
- package/chunks/{agent-headless-Q27MG73I.js → agent-headless-QUAPWF55.js} +24 -22
- package/chunks/{anthropicContentGenerator-5S4OMMNL.js → anthropicContentGenerator-7352A7I5.js} +12 -11
- package/chunks/artifact-tool-5J4HUZAV.js +675 -0
- package/chunks/{askUserQuestion-WHVYL2S2.js → askUserQuestion-HF7HCWDD.js} +20 -7
- package/chunks/chunk-22IFUCVR.js +291 -0
- package/chunks/{chunk-26ZYKTYZ.js → chunk-2BIF2NVV.js} +2 -2
- package/chunks/{chunk-VKILGMZQ.js → chunk-2QDQTWCI.js} +1 -1
- package/chunks/{chunk-XGU3ETVO.js → chunk-3BR4OIOE.js} +3 -3
- package/chunks/{chunk-LTN3VYMZ.js → chunk-3UALQ56H.js} +1 -1
- package/chunks/{chunk-QBUR6J4B.js → chunk-BC5POO46.js} +8 -7
- package/chunks/{chunk-MSJ2MXJ6.js → chunk-BGUDAULQ.js} +11 -290
- package/chunks/{chunk-FH4P6RQA.js → chunk-BNXANYLH.js} +1 -1
- package/chunks/{chunk-WE6TNQJU.js → chunk-C4K3FEQ2.js} +36 -0
- package/chunks/{chunk-G4BUMVEY.js → chunk-CGEGHF2C.js} +2 -217
- package/chunks/chunk-EEEZIVFJ.js +908 -0
- package/chunks/{chunk-7Z2O7IBO.js → chunk-EIJYMXXX.js} +619 -135
- package/chunks/chunk-EJYJYJZ2.js +3703 -0
- package/chunks/{chunk-ATLUHLZE.js → chunk-EW6C27XX.js} +1 -1
- package/chunks/{chunk-42HGOMED.js → chunk-F6XNTYNE.js} +216 -1
- package/chunks/{chunk-C6MI2ASN.js → chunk-GZCJS5WH.js} +2 -2
- package/chunks/{chunk-KGV3F6UF.js → chunk-HGNSRCRB.js} +1 -1
- package/chunks/{chunk-CX3SGIPK.js → chunk-KBXLIVWQ.js} +2 -2
- package/chunks/{chunk-GOMVJKBL.js → chunk-L7U2RI5O.js} +59 -57
- package/chunks/{chunk-GBN55AWZ.js → chunk-NKJ6LRCR.js} +2 -2
- package/chunks/{chunk-2O3NAOJG.js → chunk-NWLUISRA.js} +1 -1
- package/chunks/{chunk-ID533GA3.js → chunk-OTBK43JR.js} +1 -1
- package/chunks/{chunk-AE6RQU6F.js → chunk-PRYMDRBV.js} +1 -1
- package/chunks/{chunk-KQIKOTQJ.js → chunk-RYLJU2DY.js} +60 -5
- package/chunks/{chunk-CTHZVIMD.js → chunk-T2VDEFUU.js} +2 -2
- package/chunks/{chunk-SWGPABMH.js → chunk-T336V435.js} +80 -83
- package/chunks/{chunk-LF6BKGZT.js → chunk-TXVGVZYR.js} +3 -3
- package/chunks/{chunk-GM3LTU6K.js → chunk-UMRZ7XCR.js} +170 -5015
- package/chunks/{chunk-XU7BKR3B.js → chunk-XU5P23GN.js} +3 -3
- package/chunks/{chunk-EJ6NFQ2L.js → chunk-ZC675NGC.js} +5 -5
- package/chunks/{chunk-CXZV4Q4J.js → chunk-ZXNEOCW2.js} +7118 -5113
- package/chunks/{computer-use-F5O56FVW.js → computer-use-4TLHI3UR.js} +24 -22
- package/chunks/contextCommand-HFEITKSR.js +56 -0
- package/chunks/{cron-create-THNDTYXU.js → cron-create-A5637KCI.js} +12 -9
- package/chunks/{cron-delete-BS5H6TFJ.js → cron-delete-AADOSEOZ.js} +4 -4
- package/chunks/{cron-list-7OBVHT7K.js → cron-list-OFCPTT2Y.js} +4 -4
- package/chunks/{dist-GKRNVFBH.js → dist-ZBX7LPJZ.js} +2 -1
- package/chunks/{edit-UV7MBOJU.js → edit-B7H73V6O.js} +24 -22
- package/chunks/{en-S3OQBISC.js → en-7OGNWWME.js} +48 -0
- package/chunks/{enter-worktree-TSCHZMJ3.js → enter-worktree-GG7ZHYPS.js} +24 -22
- package/chunks/{enterPlanMode-LKS7VIUG.js → enterPlanMode-RHTAKG52.js} +27 -23
- package/chunks/{exit-worktree-Q6EWFLZU.js → exit-worktree-U7VQZRMG.js} +24 -22
- package/chunks/{exitPlanMode-HS6I4D2O.js → exitPlanMode-S35A36II.js} +36 -28
- package/chunks/{geminiContentGenerator-GEZ63VSW.js → geminiContentGenerator-W7KVATBA.js} +4 -4
- package/chunks/{glob-ZN5LKB7E.js → glob-WOFF7ECI.js} +26 -23
- package/chunks/{grep-NIKBBYBU.js → grep-MWNYWYWQ.js} +24 -22
- package/chunks/{keychain-token-storage-YHXIWXIB.js → keychain-token-storage-CSYMNRPP.js} +2 -2
- package/chunks/{loop-wakeup-SSBWZ64K.js → loop-wakeup-DGSMT4N6.js} +5 -5
- package/chunks/{ls-YPFUHZRQ.js → ls-UGRZ4ZOM.js} +6 -6
- package/chunks/{lsp-FD6DNVAF.js → lsp-72IJURW3.js} +2 -2
- package/chunks/{monitor-A25XKPU5.js → monitor-AYUINLYN.js} +24 -22
- package/chunks/{notebook-edit-E72AIOUS.js → notebook-edit-EP4D4WFD.js} +25 -23
- package/chunks/{openaiContentGenerator-ZDLZDXLU.js → openaiContentGenerator-SLYYF7AM.js} +12 -15
- package/chunks/{qwenContentGenerator-HVJPPMTT.js → qwenContentGenerator-VZ7JYU4A.js} +26 -24
- package/chunks/{qwenOAuth2-WZ54YZ4J.js → qwenOAuth2-K4AASPCV.js} +5 -4
- package/chunks/{read-file-L6FM3KUX.js → read-file-65EQ53KS.js} +9 -8
- package/chunks/{ripGrep-YRJCUISE.js → ripGrep-5XLHJDDM.js} +24 -22
- package/chunks/{scheduler-M3742P2I.js → scheduler-5GLJSA2H.js} +73 -27
- package/chunks/{send-message-FWFTX62Q.js → send-message-URUZ7PLA.js} +24 -4
- package/chunks/{serve-ZIP2GDFY.js → serve-MUROZGCG.js} +618 -92
- package/chunks/{shell-T5VSPJLU.js → shell-ET3BQWKB.js} +24 -22
- package/chunks/{skill-ETTFYDOV.js → skill-YEYABCAF.js} +11 -10
- package/chunks/{src-UKOPSYDK.js → src-POVOI65Y.js} +140 -67
- package/chunks/{syntheticOutput-JY5NEDTV.js → syntheticOutput-65FRJGWM.js} +3 -3
- package/chunks/{task-create-IGILDV25.js → task-create-IH45HOFT.js} +6 -6
- package/chunks/{task-list-KBEJVAAG.js → task-list-FUB6JWSX.js} +5 -5
- package/chunks/{task-stop-WFTMQ6AC.js → task-stop-P6IOHQM3.js} +2 -2
- package/chunks/{task-update-UIVX7ZEV.js → task-update-RTUT7LJV.js} +6 -6
- package/chunks/{team-create-DRKUVGBN.js → team-create-EFZFKQFP.js} +28 -26
- package/chunks/{team-delete-LPOXDPVB.js → team-delete-RXGYRMHC.js} +5 -5
- package/chunks/{todoWrite-R4RIJKOD.js → todoWrite-O6JK24G6.js} +4 -4
- package/chunks/{tool-search-EIIK27ON.js → tool-search-BRJC42TE.js} +9 -8
- package/chunks/{web-fetch-JU7SS6KE.js → web-fetch-KUMBROUI.js} +4 -4
- package/chunks/{workflow-4RGAYFSJ.js → workflow-UDRBNFTT.js} +557 -97
- package/chunks/{write-file-GLQYJFEZ.js → write-file-F7TAHAHF.js} +24 -22
- package/chunks/{zh-QXLZV2PX.js → zh-3RMSEO5M.js} +48 -0
- package/chunks/{zh-TW-3OKU7LDA.js → zh-TW-R7WRLTJS.js} +48 -0
- package/cli.js +8473 -5091
- package/locales/en.js +69 -0
- package/locales/zh-TW.js +66 -0
- package/locales/zh.js +66 -0
- package/package.json +3 -2
- package/web-shell/assets/{arc-CRFN10gD.js → arc-DHUeMnnj.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-IRlu1CpH.js → architectureDiagram-3BPJPVTR-DlX12yyj.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-htIZ6iw8.js → blockDiagram-GPEHLZMM-DTFUXMUT.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-A2GoRq3O.js → c4Diagram-AAUBKEIU-CWdB54fk.js} +1 -1
- package/web-shell/assets/channel-C3WhMjjP.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-CdP2AC6u.js → chunk-2J33WTMH-CF5C5jNR.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DrA07nW2.js → chunk-4BX2VUAB-Cw7Ydfji.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CFGnVU2f.js → chunk-55IACEB6-CnbI1ZCw.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-BTMkq3Tk.js → chunk-727SXJPM-DmSy00Pe.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-C9sYg04Z.js → chunk-AQP2D5EJ-DgNgXqBu.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-Cag-cj6I.js → chunk-FMBD7UC4-tz2IvOXv.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-CDSTFoR7.js → chunk-ND2GUHAM-DaBLEBPa.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-CN9Z6oOs.js → chunk-QZHKN3VN-DVCQST3O.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CQ6TXPif.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CQ6TXPif.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-DuN9j8Du.js → cose-bilkent-S5V4N54A-CAKTcdCQ.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-ByCWe45f.js → dagre-BM42HDAG-BdkBwlKg.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-eWyU_pKZ.js → diagram-2AECGRRQ-DYt3G65F.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-0Bfu3Fq5.js → diagram-5GNKFQAL-BWvROWjY.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-B6KBKkQP.js → diagram-KO2AKTUF-BvvgwIaQ.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-TToDmeA_.js → diagram-LMA3HP47-E7NLSNKg.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-CQCkC2Yx.js → diagram-OG6HWLK6-CYmUBgpE.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-Cm9ls1iB.js → erDiagram-TEJ5UH35-BU5gY30h.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Dyoz80Pv.js → flowDiagram-I6XJVG4X-V_ZssSZ9.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-Cfut9yaU.js → ganttDiagram-6RSMTGT7-QIShlsdI.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-BCuJdlfD.js → gitGraphDiagram-PVQCEYII-DJxdu2YS.js} +1 -1
- package/web-shell/assets/index-BPnhI7gl.css +1 -0
- package/web-shell/assets/index-De4rqTsW.js +706 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CXKxF2VL.js → infoDiagram-5YYISTIA-BqjdrFeO.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DE7HWSU8.js → ishikawaDiagram-YF4QCWOH-BP_a2YZ2.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-D__YUfds.js → journeyDiagram-JHISSGLW-BXg-S3Lk.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-D82R169M.js → kanban-definition-UN3LZRKU-BksAkdEJ.js} +1 -1
- package/web-shell/assets/{linear-DpyMbKqT.js → linear-D2m9-ODE.js} +1 -1
- package/web-shell/assets/{mermaid.core-D1KEFDhn.js → mermaid.core-dTtkZp2F.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BwVUFGFE.js → mindmap-definition-RKZ34NQL-Bft9my8O.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-BO_qoEGx.js → pieDiagram-4H26LBE5-Cw8S-alZ.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Cx0ZaWPo.js → quadrantDiagram-W4KKPZXB-DaDoTMts.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-BJPXejOA.js → requirementDiagram-4Y6WPE33-Cp5kSpwj.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-C1xeIL9i.js → sankeyDiagram-5OEKKPKP-CW8RsJJZ.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CSYKQUjf.js → sequenceDiagram-3UESZ5HK-DTfpIiJK.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-d9hiHlAW.js → stateDiagram-AJRCARHV-DixFVzEs.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DZgE04s3.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-BhCBkq8k.js → timeline-definition-PNZ67QCA-DYsbXn5l.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DPPFWp_y.js → vennDiagram-CIIHVFJN-HUpRpuUp.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-CcOUIgXY.js → wardley-L42UT6IY-cT3nQH_T.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-p7oR5X7r.js → wardleyDiagram-YWT4CUSO-Dmm7J6Qc.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-Dfr7-SEy.js → xychartDiagram-2RQKCTM6-CX0L5p9C.js} +1 -1
- package/web-shell/index.html +3 -3
- package/chunks/chunk-77WXWU44.js +0 -26
- package/chunks/contextCommand-WBVNKL2C.js +0 -54
- package/web-shell/assets/channel-WwImfsc7.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CJKQYFeJ.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CJKQYFeJ.js +0 -1
- package/web-shell/assets/index-BDZiTAkl.css +0 -1
- package/web-shell/assets/index-DaebdpHq.js +0 -516
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DgReoybQ.js +0 -1
package/locales/en.js
CHANGED
|
@@ -185,6 +185,7 @@ export default {
|
|
|
185
185
|
'toolDisplayName.TodoList': 'toolDisplayName.TodoList',
|
|
186
186
|
'toolDisplayName.SaveMemory': 'toolDisplayName.SaveMemory',
|
|
187
187
|
'toolDisplayName.Agent': 'toolDisplayName.Agent',
|
|
188
|
+
'toolDisplayName.Artifact': 'toolDisplayName.Artifact',
|
|
188
189
|
'toolDisplayName.Skill': 'toolDisplayName.Skill',
|
|
189
190
|
'toolDisplayName.EnterPlanMode': 'toolDisplayName.EnterPlanMode',
|
|
190
191
|
'toolDisplayName.ExitPlanMode': 'toolDisplayName.ExitPlanMode',
|
|
@@ -1317,6 +1318,7 @@ export default {
|
|
|
1317
1318
|
'Press Enter to confirm, Esc to cancel':
|
|
1318
1319
|
'Press Enter to confirm, Esc to cancel',
|
|
1319
1320
|
'View tools': 'View tools',
|
|
1321
|
+
'View resources': 'View resources',
|
|
1320
1322
|
Reconnect: 'Reconnect',
|
|
1321
1323
|
Enable: 'Enable',
|
|
1322
1324
|
Disable: 'Disable',
|
|
@@ -1331,6 +1333,8 @@ export default {
|
|
|
1331
1333
|
'Error:': 'Error:',
|
|
1332
1334
|
tool: 'tool',
|
|
1333
1335
|
tools: 'tools',
|
|
1336
|
+
resource: 'resource',
|
|
1337
|
+
resources: 'resources',
|
|
1334
1338
|
connected: 'connected',
|
|
1335
1339
|
connecting: 'connecting',
|
|
1336
1340
|
disconnected: 'disconnected',
|
|
@@ -1371,6 +1375,19 @@ export default {
|
|
|
1371
1375
|
'No tool selected': 'No tool selected',
|
|
1372
1376
|
Server: 'Server',
|
|
1373
1377
|
|
|
1378
|
+
// MCP Resource List/Detail
|
|
1379
|
+
'No resources available for this server.':
|
|
1380
|
+
'No resources available for this server.',
|
|
1381
|
+
'Resources for {{serverName}}': 'Resources for {{serverName}}',
|
|
1382
|
+
'No resource selected': 'No resource selected',
|
|
1383
|
+
'Resource Detail': 'Resource Detail',
|
|
1384
|
+
'URI:': 'URI:',
|
|
1385
|
+
'MIME Type:': 'MIME Type:',
|
|
1386
|
+
'Size:': 'Size:',
|
|
1387
|
+
'{{count}} bytes': '{{count}} bytes',
|
|
1388
|
+
'Reference in chat': 'Reference in chat',
|
|
1389
|
+
'MCP resource server': 'MCP resource server',
|
|
1390
|
+
|
|
1374
1391
|
// Invalid tool related translations
|
|
1375
1392
|
'{{count}} invalid tools': '{{count}} invalid tools',
|
|
1376
1393
|
invalid: 'invalid',
|
|
@@ -1411,8 +1428,56 @@ export default {
|
|
|
1411
1428
|
// ============================================================================
|
|
1412
1429
|
'Switch the model for this session (--fast for suggestion model, [model-id] to switch immediately).':
|
|
1413
1430
|
'Switch the model for this session (--fast for suggestion model, [model-id] to switch immediately).',
|
|
1431
|
+
'Switch the model for this session (--fast for suggestion model, --voice for voice transcription model, [model-id] to switch immediately).':
|
|
1432
|
+
'Switch the model for this session (--fast for suggestion model, --voice for voice transcription model, [model-id] to switch immediately).',
|
|
1414
1433
|
'Set a lighter model for prompt suggestions and speculative execution':
|
|
1415
1434
|
'Set a lighter model for prompt suggestions and speculative execution',
|
|
1435
|
+
'Toggle voice dictation input': 'Toggle voice dictation input',
|
|
1436
|
+
'Set the model for voice transcription':
|
|
1437
|
+
'Set the model for voice transcription',
|
|
1438
|
+
'Select Fast Model': 'Select Fast Model',
|
|
1439
|
+
'Select Voice Model': 'Select Voice Model',
|
|
1440
|
+
'Voice Model': 'Voice Model',
|
|
1441
|
+
'Selected voice model is unavailable.':
|
|
1442
|
+
'Selected voice model is unavailable.',
|
|
1443
|
+
"Voice model '{{model}}' is configured more than once. Remove duplicate model ids before selecting it for voice transcription.":
|
|
1444
|
+
"Voice model '{{model}}' is configured more than once. Remove duplicate model ids before selecting it for voice transcription.",
|
|
1445
|
+
'Voice dictation: {{status}} (mode: {{mode}}, {{modelText}}).':
|
|
1446
|
+
'Voice dictation: {{status}} (mode: {{mode}}, {{modelText}}).',
|
|
1447
|
+
'model: {{voiceModel}}': 'model: {{voiceModel}}',
|
|
1448
|
+
'no voice model selected': 'no voice model selected',
|
|
1449
|
+
'Voice dictation disabled.': 'Voice dictation disabled.',
|
|
1450
|
+
'Usage: /voice [hold|tap|off|status]': 'Usage: /voice [hold|tap|off|status]',
|
|
1451
|
+
'No voice model selected. Run /model --voice to choose one before enabling voice dictation.':
|
|
1452
|
+
'No voice model selected. Run /model --voice to choose one before enabling voice dictation.',
|
|
1453
|
+
'Voice dictation enabled (tap mode). Tap Space at an empty prompt to start, tap again or pause to stop and submit, using {{voiceModel}}.':
|
|
1454
|
+
'Voice dictation enabled (tap mode). Tap Space at an empty prompt to start, tap again or pause to stop and submit, using {{voiceModel}}.',
|
|
1455
|
+
'Voice dictation enabled (hold mode). Hold Space at an empty prompt to dictate with {{voiceModel}}.':
|
|
1456
|
+
'Voice dictation enabled (hold mode). Hold Space at an empty prompt to dictate with {{voiceModel}}.',
|
|
1457
|
+
'No models are configured.': 'No models are configured.',
|
|
1458
|
+
'Configured models: {{models}}.': 'Configured models: {{models}}.',
|
|
1459
|
+
'Configure a unique model id in settings.modelProviders or run /model --voice to select an available model.':
|
|
1460
|
+
'Configure a unique model id in settings.modelProviders or run /model --voice to select an available model.',
|
|
1461
|
+
"Voice model '{{modelName}}' is not configured.":
|
|
1462
|
+
"Voice model '{{modelName}}' is not configured.",
|
|
1463
|
+
"Voice model '{{modelName}}' cannot be used for transcription.":
|
|
1464
|
+
"Voice model '{{modelName}}' cannot be used for transcription.",
|
|
1465
|
+
"Voice model '{{modelName}}' cannot be used for transcription. Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.":
|
|
1466
|
+
"Voice model '{{modelName}}' cannot be used for transcription. Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.",
|
|
1467
|
+
'Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.':
|
|
1468
|
+
'Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.',
|
|
1469
|
+
'Microphone access is denied. Enable it for your terminal in System Settings → Privacy & Security → Microphone, then restart voice dictation.':
|
|
1470
|
+
'Microphone access is denied. Enable it for your terminal in System Settings → Privacy & Security → Microphone, then restart voice dictation.',
|
|
1471
|
+
'Voice dictation is not supported on {{platform}}.':
|
|
1472
|
+
'Voice dictation is not supported on {{platform}}.',
|
|
1473
|
+
'Voice dictation needs microphone access, which is unavailable in this WSL session. Use WSLg/PulseAudio, or run Qwen Code on a host with a microphone.':
|
|
1474
|
+
'Voice dictation needs microphone access, which is unavailable in this WSL session. Use WSLg/PulseAudio, or run Qwen Code on a host with a microphone.',
|
|
1475
|
+
'Voice dictation needs microphone access. macOS will ask the first time you record — approve it, then start again. Your first recording may be empty while the dialog is open.':
|
|
1476
|
+
'Voice dictation needs microphone access. macOS will ask the first time you record — approve it, then start again. Your first recording may be empty while the dialog is open.',
|
|
1477
|
+
'Voice: recording': 'Voice: recording',
|
|
1478
|
+
'Voice: transcribing': 'Voice: transcribing',
|
|
1479
|
+
'listening…': 'listening…',
|
|
1480
|
+
'transcribing…': 'transcribing…',
|
|
1416
1481
|
'Content generator configuration not available.':
|
|
1417
1482
|
'Content generator configuration not available.',
|
|
1418
1483
|
'Authentication type not available.': 'Authentication type not available.',
|
|
@@ -1614,6 +1679,10 @@ export default {
|
|
|
1614
1679
|
audio: 'audio',
|
|
1615
1680
|
video: 'video',
|
|
1616
1681
|
'not set': 'not set',
|
|
1682
|
+
'Current voice model: {{voiceModel}}\nUse "/model --voice <model-id>" to set voice model.':
|
|
1683
|
+
'Current voice model: {{voiceModel}}\nUse "/model --voice <model-id>" to set voice model.',
|
|
1684
|
+
"Voice model '{{modelName}}' is ambiguous. Configure a unique model id before using /model --voice.":
|
|
1685
|
+
"Voice model '{{modelName}}' is ambiguous. Configure a unique model id before using /model --voice.",
|
|
1617
1686
|
none: 'none',
|
|
1618
1687
|
unknown: 'unknown',
|
|
1619
1688
|
// ============================================================================
|
package/locales/zh-TW.js
CHANGED
|
@@ -176,6 +176,7 @@ export default {
|
|
|
176
176
|
'toolDisplayName.TodoList': '任務清單',
|
|
177
177
|
'toolDisplayName.SaveMemory': '儲存記憶',
|
|
178
178
|
'toolDisplayName.Agent': 'Agent',
|
|
179
|
+
'toolDisplayName.Artifact': '製品',
|
|
179
180
|
'toolDisplayName.Skill': '技能',
|
|
180
181
|
'toolDisplayName.EnterPlanMode': '進入計畫模式',
|
|
181
182
|
'toolDisplayName.ExitPlanMode': '退出計畫模式',
|
|
@@ -1132,6 +1133,7 @@ export default {
|
|
|
1132
1133
|
'選擇將伺服器添加到排除列表的位置:',
|
|
1133
1134
|
'Press Enter to confirm, Esc to cancel': '按 Enter 確認,Esc 取消',
|
|
1134
1135
|
'View tools': '查看工具',
|
|
1136
|
+
'View resources': '查看資源',
|
|
1135
1137
|
Reconnect: '重新連接',
|
|
1136
1138
|
Enable: '啟用',
|
|
1137
1139
|
Disable: '禁用',
|
|
@@ -1146,6 +1148,8 @@ export default {
|
|
|
1146
1148
|
'Error:': '錯誤:',
|
|
1147
1149
|
tool: '工具',
|
|
1148
1150
|
tools: '個工具',
|
|
1151
|
+
resource: '資源',
|
|
1152
|
+
resources: '個資源',
|
|
1149
1153
|
connected: '已連接',
|
|
1150
1154
|
connecting: '連接中',
|
|
1151
1155
|
disconnected: '已斷開',
|
|
@@ -1178,6 +1182,18 @@ export default {
|
|
|
1178
1182
|
Parameters: '參數',
|
|
1179
1183
|
'No tool selected': '未選擇工具',
|
|
1180
1184
|
Server: '伺服器',
|
|
1185
|
+
|
|
1186
|
+
// MCP Resource List/Detail
|
|
1187
|
+
'No resources available for this server.': '此伺服器沒有可用資源。',
|
|
1188
|
+
'Resources for {{serverName}}': '{{serverName}} 的資源',
|
|
1189
|
+
'No resource selected': '未選擇資源',
|
|
1190
|
+
'Resource Detail': '資源詳情',
|
|
1191
|
+
'URI:': 'URI:',
|
|
1192
|
+
'MIME Type:': 'MIME 類型:',
|
|
1193
|
+
'Size:': '大小:',
|
|
1194
|
+
'{{count}} bytes': '{{count}} 位元組',
|
|
1195
|
+
'Reference in chat': '在對話中引用',
|
|
1196
|
+
'MCP resource server': 'MCP 資源伺服器',
|
|
1181
1197
|
'{{count}} invalid tools': '{{count}} 個無效工具',
|
|
1182
1198
|
invalid: '無效',
|
|
1183
1199
|
'invalid: {{reason}}': '無效:{{reason}}',
|
|
@@ -1210,8 +1226,54 @@ export default {
|
|
|
1210
1226
|
'生成摘要失敗 - 未從 LLM 響應中接收到文本內容',
|
|
1211
1227
|
'Switch the model for this session (--fast for suggestion model, [model-id] to switch immediately).':
|
|
1212
1228
|
'切換此會話的模型(--fast 可設置建議模型)',
|
|
1229
|
+
'Switch the model for this session (--fast for suggestion model, --voice for voice transcription model, [model-id] to switch immediately).':
|
|
1230
|
+
'切換此會話的模型(--fast 可設置建議模型,--voice 可設置語音轉寫模型,[model-id] 可立即切換)',
|
|
1213
1231
|
'Set a lighter model for prompt suggestions and speculative execution':
|
|
1214
1232
|
'設置用於輸入建議和推測執行的輕量模型',
|
|
1233
|
+
'Toggle voice dictation input': '切換語音聽寫輸入',
|
|
1234
|
+
'Set the model for voice transcription': '設定語音轉寫模型',
|
|
1235
|
+
'Select Fast Model': '選擇快速模型',
|
|
1236
|
+
'Select Voice Model': '選擇語音模型',
|
|
1237
|
+
'Voice Model': '語音模型',
|
|
1238
|
+
'Selected voice model is unavailable.': '所選語音模型不可用。',
|
|
1239
|
+
"Voice model '{{model}}' is configured more than once. Remove duplicate model ids before selecting it for voice transcription.":
|
|
1240
|
+
"語音模型 '{{model}}' 被配置了多次。請先移除重複的模型 ID,再將其選為語音轉寫模型。",
|
|
1241
|
+
'Voice dictation: {{status}} (mode: {{mode}}, {{modelText}}).':
|
|
1242
|
+
'語音聽寫:{{status}}(模式:{{mode}},{{modelText}})。',
|
|
1243
|
+
'model: {{voiceModel}}': '模型:{{voiceModel}}',
|
|
1244
|
+
'no voice model selected': '未選擇語音模型',
|
|
1245
|
+
'Voice dictation disabled.': '語音聽寫已停用。',
|
|
1246
|
+
'Usage: /voice [hold|tap|off|status]': '用法:/voice [hold|tap|off|status]',
|
|
1247
|
+
'No voice model selected. Run /model --voice to choose one before enabling voice dictation.':
|
|
1248
|
+
'未選擇語音模型。請先執行 /model --voice 選擇模型,再啟用語音聽寫。',
|
|
1249
|
+
'Voice dictation enabled (tap mode). Tap Space at an empty prompt to start, tap again or pause to stop and submit, using {{voiceModel}}.':
|
|
1250
|
+
'語音聽寫已啟用(點按模式)。在空輸入框中點按 Space 開始,再點按一次或停頓後停止並提交,使用 {{voiceModel}}。',
|
|
1251
|
+
'Voice dictation enabled (hold mode). Hold Space at an empty prompt to dictate with {{voiceModel}}.':
|
|
1252
|
+
'語音聽寫已啟用(按住模式)。在空輸入框中按住 Space,使用 {{voiceModel}} 聽寫。',
|
|
1253
|
+
'No models are configured.': '未設定模型。',
|
|
1254
|
+
'Configured models: {{models}}.': '已設定模型:{{models}}。',
|
|
1255
|
+
'Configure a unique model id in settings.modelProviders or run /model --voice to select an available model.':
|
|
1256
|
+
'請在 settings.modelProviders 中設定唯一的模型 ID,或執行 /model --voice 選擇可用模型。',
|
|
1257
|
+
"Voice model '{{modelName}}' is not configured.":
|
|
1258
|
+
"語音模型 '{{modelName}}' 未設定。",
|
|
1259
|
+
"Voice model '{{modelName}}' cannot be used for transcription.":
|
|
1260
|
+
"語音模型 '{{modelName}}' 不能用於轉寫。",
|
|
1261
|
+
"Voice model '{{modelName}}' cannot be used for transcription. Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.":
|
|
1262
|
+
"語音模型 '{{modelName}}' 不能用於轉寫。請在 settings.modelProviders 中設定帶 baseUrl 的 OpenAI 相容模型。",
|
|
1263
|
+
'Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.':
|
|
1264
|
+
'請在 settings.modelProviders 中設定帶 baseUrl 的 OpenAI 相容模型。',
|
|
1265
|
+
'Microphone access is denied. Enable it for your terminal in System Settings → Privacy & Security → Microphone, then restart voice dictation.':
|
|
1266
|
+
'麥克風存取被拒絕。請在系統設定 → 隱私權與安全性 → 麥克風中允許目前終端機存取,然後重新啟動語音聽寫。',
|
|
1267
|
+
'Voice dictation is not supported on {{platform}}.':
|
|
1268
|
+
'語音聽寫不支援 {{platform}}。',
|
|
1269
|
+
'Voice dictation needs microphone access, which is unavailable in this WSL session. Use WSLg/PulseAudio, or run Qwen Code on a host with a microphone.':
|
|
1270
|
+
'語音聽寫需要麥克風存取,但目前 WSL 會話不可用。請使用 WSLg/PulseAudio,或在具備麥克風的主機上執行 Qwen Code。',
|
|
1271
|
+
'Voice dictation needs microphone access. macOS will ask the first time you record — approve it, then start again. Your first recording may be empty while the dialog is open.':
|
|
1272
|
+
'語音聽寫需要麥克風存取。macOS 會在你首次錄音時彈出授權請求——請同意後重新開始。彈窗開啟期間的首次錄音可能為空。',
|
|
1273
|
+
'Voice: recording': '語音:錄音中',
|
|
1274
|
+
'Voice: transcribing': '語音:轉寫中',
|
|
1275
|
+
'listening…': '聆聽中…',
|
|
1276
|
+
'transcribing…': '轉寫中…',
|
|
1215
1277
|
'Content generator configuration not available.': '內容生成器配置不可用',
|
|
1216
1278
|
'Authentication type not available.': '認證類型不可用',
|
|
1217
1279
|
'No models available for the current authentication type ({{authType}}).':
|
|
@@ -1371,6 +1433,10 @@ export default {
|
|
|
1371
1433
|
audio: '音頻',
|
|
1372
1434
|
video: '視頻',
|
|
1373
1435
|
'not set': '未設置',
|
|
1436
|
+
'Current voice model: {{voiceModel}}\nUse "/model --voice <model-id>" to set voice model.':
|
|
1437
|
+
'當前語音模型:{{voiceModel}}\n使用 "/model --voice <model-id>" 設置語音模型。',
|
|
1438
|
+
"Voice model '{{modelName}}' is ambiguous. Configure a unique model id before using /model --voice.":
|
|
1439
|
+
"語音模型 '{{modelName}}' 不唯一。請先配置唯一的模型 ID,再使用 /model --voice。",
|
|
1374
1440
|
none: '無',
|
|
1375
1441
|
unknown: '未知',
|
|
1376
1442
|
'Manage folder trust settings': '管理檔案夾信任設置',
|
package/locales/zh.js
CHANGED
|
@@ -177,6 +177,7 @@ export default {
|
|
|
177
177
|
'toolDisplayName.TodoList': '任务清单',
|
|
178
178
|
'toolDisplayName.SaveMemory': '保存记忆',
|
|
179
179
|
'toolDisplayName.Agent': 'Agent',
|
|
180
|
+
'toolDisplayName.Artifact': '制品',
|
|
180
181
|
'toolDisplayName.Skill': '技能',
|
|
181
182
|
'toolDisplayName.EnterPlanMode': '进入计划模式',
|
|
182
183
|
'toolDisplayName.ExitPlanMode': '退出计划模式',
|
|
@@ -1226,6 +1227,7 @@ export default {
|
|
|
1226
1227
|
'选择将服务器添加到排除列表的位置:',
|
|
1227
1228
|
'Press Enter to confirm, Esc to cancel': '按 Enter 确认,Esc 取消',
|
|
1228
1229
|
'View tools': '查看工具',
|
|
1230
|
+
'View resources': '查看资源',
|
|
1229
1231
|
Reconnect: '重新连接',
|
|
1230
1232
|
Enable: '启用',
|
|
1231
1233
|
Disable: '禁用',
|
|
@@ -1238,6 +1240,8 @@ export default {
|
|
|
1238
1240
|
'Error:': '错误:',
|
|
1239
1241
|
tool: '工具',
|
|
1240
1242
|
tools: '个工具',
|
|
1243
|
+
resource: '资源',
|
|
1244
|
+
resources: '个资源',
|
|
1241
1245
|
connected: '已连接',
|
|
1242
1246
|
connecting: '连接中',
|
|
1243
1247
|
disconnected: '已断开',
|
|
@@ -1284,6 +1288,18 @@ export default {
|
|
|
1284
1288
|
'No tool selected': '未选择工具',
|
|
1285
1289
|
Server: '服务器',
|
|
1286
1290
|
|
|
1291
|
+
// MCP Resource List/Detail
|
|
1292
|
+
'No resources available for this server.': '此服务器没有可用资源。',
|
|
1293
|
+
'Resources for {{serverName}}': '{{serverName}} 的资源',
|
|
1294
|
+
'No resource selected': '未选择资源',
|
|
1295
|
+
'Resource Detail': '资源详情',
|
|
1296
|
+
'URI:': 'URI:',
|
|
1297
|
+
'MIME Type:': 'MIME 类型:',
|
|
1298
|
+
'Size:': '大小:',
|
|
1299
|
+
'{{count}} bytes': '{{count}} 字节',
|
|
1300
|
+
'Reference in chat': '在对话中引用',
|
|
1301
|
+
'MCP resource server': 'MCP 资源服务器',
|
|
1302
|
+
|
|
1287
1303
|
// Invalid tool related translations
|
|
1288
1304
|
'{{count}} invalid tools': '{{count}} 个无效工具',
|
|
1289
1305
|
invalid: '无效',
|
|
@@ -1324,8 +1340,54 @@ export default {
|
|
|
1324
1340
|
// ============================================================================
|
|
1325
1341
|
'Switch the model for this session (--fast for suggestion model, [model-id] to switch immediately).':
|
|
1326
1342
|
'切换此会话的模型(--fast 可设置建议模型)',
|
|
1343
|
+
'Switch the model for this session (--fast for suggestion model, --voice for voice transcription model, [model-id] to switch immediately).':
|
|
1344
|
+
'切换此会话的模型(--fast 可设置建议模型,--voice 可设置语音转写模型,[model-id] 可立即切换)',
|
|
1327
1345
|
'Set a lighter model for prompt suggestions and speculative execution':
|
|
1328
1346
|
'设置用于输入建议和推测执行的轻量模型',
|
|
1347
|
+
'Toggle voice dictation input': '切换语音听写输入',
|
|
1348
|
+
'Set the model for voice transcription': '设置语音转写模型',
|
|
1349
|
+
'Select Fast Model': '选择快速模型',
|
|
1350
|
+
'Select Voice Model': '选择语音模型',
|
|
1351
|
+
'Voice Model': '语音模型',
|
|
1352
|
+
'Selected voice model is unavailable.': '所选语音模型不可用。',
|
|
1353
|
+
"Voice model '{{model}}' is configured more than once. Remove duplicate model ids before selecting it for voice transcription.":
|
|
1354
|
+
"语音模型 '{{model}}' 被配置了多次。请先移除重复的模型 ID,再将其选为语音转写模型。",
|
|
1355
|
+
'Voice dictation: {{status}} (mode: {{mode}}, {{modelText}}).':
|
|
1356
|
+
'语音听写:{{status}}(模式:{{mode}},{{modelText}})。',
|
|
1357
|
+
'model: {{voiceModel}}': '模型:{{voiceModel}}',
|
|
1358
|
+
'no voice model selected': '未选择语音模型',
|
|
1359
|
+
'Voice dictation disabled.': '语音听写已禁用。',
|
|
1360
|
+
'Usage: /voice [hold|tap|off|status]': '用法:/voice [hold|tap|off|status]',
|
|
1361
|
+
'No voice model selected. Run /model --voice to choose one before enabling voice dictation.':
|
|
1362
|
+
'未选择语音模型。请先运行 /model --voice 选择模型,再启用语音听写。',
|
|
1363
|
+
'Voice dictation enabled (tap mode). Tap Space at an empty prompt to start, tap again or pause to stop and submit, using {{voiceModel}}.':
|
|
1364
|
+
'语音听写已启用(点击模式)。在空输入框中点击 Space 开始,再点击一次或停顿后停止并提交,使用 {{voiceModel}}。',
|
|
1365
|
+
'Voice dictation enabled (hold mode). Hold Space at an empty prompt to dictate with {{voiceModel}}.':
|
|
1366
|
+
'语音听写已启用(按住模式)。在空输入框中按住 Space,使用 {{voiceModel}} 听写。',
|
|
1367
|
+
'No models are configured.': '未配置模型。',
|
|
1368
|
+
'Configured models: {{models}}.': '已配置模型:{{models}}。',
|
|
1369
|
+
'Configure a unique model id in settings.modelProviders or run /model --voice to select an available model.':
|
|
1370
|
+
'请在 settings.modelProviders 中配置唯一的模型 ID,或运行 /model --voice 选择可用模型。',
|
|
1371
|
+
"Voice model '{{modelName}}' is not configured.":
|
|
1372
|
+
"语音模型 '{{modelName}}' 未配置。",
|
|
1373
|
+
"Voice model '{{modelName}}' cannot be used for transcription.":
|
|
1374
|
+
"语音模型 '{{modelName}}' 不能用于转写。",
|
|
1375
|
+
"Voice model '{{modelName}}' cannot be used for transcription. Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.":
|
|
1376
|
+
"语音模型 '{{modelName}}' 不能用于转写。请在 settings.modelProviders 中配置带 baseUrl 的 OpenAI 兼容模型。",
|
|
1377
|
+
'Configure an OpenAI-compatible model with baseUrl in settings.modelProviders.':
|
|
1378
|
+
'请在 settings.modelProviders 中配置带 baseUrl 的 OpenAI 兼容模型。',
|
|
1379
|
+
'Microphone access is denied. Enable it for your terminal in System Settings → Privacy & Security → Microphone, then restart voice dictation.':
|
|
1380
|
+
'麦克风访问被拒绝。请在系统设置 → 隐私与安全性 → 麦克风中允许当前终端访问,然后重新启动语音听写。',
|
|
1381
|
+
'Voice dictation is not supported on {{platform}}.':
|
|
1382
|
+
'语音听写不支持 {{platform}}。',
|
|
1383
|
+
'Voice dictation needs microphone access, which is unavailable in this WSL session. Use WSLg/PulseAudio, or run Qwen Code on a host with a microphone.':
|
|
1384
|
+
'语音听写需要麦克风访问,但当前 WSL 会话不可用。请使用 WSLg/PulseAudio,或在带麦克风的宿主机上运行 Qwen Code。',
|
|
1385
|
+
'Voice dictation needs microphone access. macOS will ask the first time you record — approve it, then start again. Your first recording may be empty while the dialog is open.':
|
|
1386
|
+
'语音听写需要麦克风访问。macOS 会在你首次录音时弹出授权请求——请同意后重新开始。弹窗打开期间的首次录音可能为空。',
|
|
1387
|
+
'Voice: recording': '语音:录音中',
|
|
1388
|
+
'Voice: transcribing': '语音:转写中',
|
|
1389
|
+
'listening…': '聆听中…',
|
|
1390
|
+
'transcribing…': '转写中…',
|
|
1329
1391
|
'Content generator configuration not available.': '内容生成器配置不可用',
|
|
1330
1392
|
'Authentication type not available.': '认证类型不可用',
|
|
1331
1393
|
'No models available for the current authentication type ({{authType}}).':
|
|
@@ -1513,6 +1575,10 @@ export default {
|
|
|
1513
1575
|
audio: '音频',
|
|
1514
1576
|
video: '视频',
|
|
1515
1577
|
'not set': '未设置',
|
|
1578
|
+
'Current voice model: {{voiceModel}}\nUse "/model --voice <model-id>" to set voice model.':
|
|
1579
|
+
'当前语音模型:{{voiceModel}}\n使用 "/model --voice <model-id>" 设置语音模型。',
|
|
1580
|
+
"Voice model '{{modelName}}' is ambiguous. Configure a unique model id before using /model --voice.":
|
|
1581
|
+
"语音模型 '{{modelName}}' 不唯一。请先配置唯一的模型 ID,再使用 /model --voice。",
|
|
1516
1582
|
none: '无',
|
|
1517
1583
|
unknown: '未知',
|
|
1518
1584
|
// ============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.18.5-
|
|
3
|
+
"version": "0.18.5-preview.0",
|
|
4
4
|
"description": "Qwen Code - AI-powered coding assistant",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
"web-shell"
|
|
27
27
|
],
|
|
28
28
|
"config": {
|
|
29
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.18.5-
|
|
29
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.18.5-preview.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
+
"@qwen-code/audio-capture": "0.18.5-preview.0",
|
|
33
34
|
"@lydell/node-pty": "1.2.0-beta.10",
|
|
34
35
|
"@lydell/node-pty-darwin-arm64": "1.2.0-beta.10",
|
|
35
36
|
"@lydell/node-pty-darwin-x64": "1.2.0-beta.10",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as sn,$ as on,a0 as fn}from"./mermaid.core-
|
|
1
|
+
import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as sn,$ as on,a0 as fn}from"./mermaid.core-dTtkZp2F.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|