@qwen-code/qwen-code 0.19.3 → 0.19.4-nightly.20260702.46814e4f1
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/loop/SKILL.md +22 -3
- package/bundled/loop/SKILL.test.ts +20 -0
- package/bundled/loop/autonomous-loop.test.ts +59 -0
- package/bundled/loop/autonomous-loop.ts +102 -0
- package/bundled/loop/loop-task-file.test.ts +1064 -0
- package/bundled/loop/loop-task-file.ts +404 -0
- package/bundled/loop/loop-tick-resolver.test.ts +906 -0
- package/bundled/loop/loop-tick-resolver.ts +416 -0
- package/bundled/qc-helper/SKILL.md +12 -5
- package/bundled/qc-helper/docs/configuration/auth.md +1 -1
- package/bundled/qc-helper/docs/configuration/settings.md +62 -32
- package/bundled/qc-helper/docs/features/approval-mode.md +3 -0
- package/bundled/qc-helper/docs/features/auto-mode.md +40 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +81 -18
- package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
- package/bundled/qc-helper/docs/features/code-review.md +17 -61
- package/bundled/qc-helper/docs/features/commands.md +42 -40
- package/bundled/qc-helper/docs/features/headless.md +19 -18
- package/bundled/qc-helper/docs/features/hooks.md +6 -1
- package/bundled/qc-helper/docs/features/mcp.md +3 -1
- package/bundled/qc-helper/docs/features/memory.md +1 -1
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +10 -0
- package/bundled/qc-helper/docs/features/status-line.md +3 -3
- package/bundled/qc-helper/docs/ide-integration/ide-integration.md +4 -4
- package/bundled/qc-helper/docs/qwen-serve.md +53 -0
- package/bundled/qc-helper/docs/support/troubleshooting.md +11 -0
- package/bundled/review/DESIGN.md +21 -26
- package/bundled/review/SKILL.md +45 -129
- package/chunks/MaxSizedBox-GHGRQ2OS.js +69 -0
- package/chunks/{StandaloneSessionPicker-Z52JTYST.js → StandaloneSessionPicker-G7YTTM27.js} +49 -42
- package/chunks/{acpAgent-7RZUOWOM.js → acpAgent-SDOILBSU.js} +1325 -365
- package/chunks/{agent-4FG7WTHJ.js → agent-NTSXGV4L.js} +31 -25
- package/chunks/agent-headless-WYURMSAB.js +62 -0
- package/chunks/{anthropicContentGenerator-PFITVL7Y.js → anthropicContentGenerator-WL3LJOUB.js} +110 -31
- package/chunks/{artifact-tool-D2X7G3C3.js → artifact-tool-W76WC2JX.js} +3 -3
- package/chunks/{askUserQuestion-UGETICJQ.js → askUserQuestion-J3P6TH3V.js} +2 -2
- package/chunks/bridge-AMOL4W4P.js +73 -0
- package/chunks/{ca-IUFWESZL.js → ca-HCMB2I54.js} +10 -9
- package/chunks/channel-worker-supervisor-C3IB63V7.js +659 -0
- package/chunks/{chunk-STUWFKGD.js → chunk-26JIREA5.js} +466 -543
- package/chunks/{chunk-SLNKLLEO.js → chunk-2MRV62AU.js} +37 -8
- package/chunks/{chunk-ODLIHNOY.js → chunk-2U4HUMOL.js} +1 -1
- package/chunks/{chunk-CKQA6AWF.js → chunk-4D73HUOP.js} +1 -1
- package/chunks/{chunk-M2U5NM24.js → chunk-54YZOP7P.js} +309 -72
- package/chunks/{chunk-J7FA27RO.js → chunk-5LKL3PAU.js} +3 -3
- package/chunks/chunk-5P5XGNYH.js +93 -0
- package/chunks/{chunk-UFLGERMB.js → chunk-6JE32BRB.js} +178 -124
- package/chunks/{chunk-FKAVULLM.js → chunk-75AVTQJ2.js} +74 -10
- package/chunks/{chunk-I2LYBGNI.js → chunk-7IOMIYOE.js} +1 -1
- package/chunks/{chunk-4LUZAKMK.js → chunk-7KXAGQJ2.js} +1 -1
- package/chunks/{chunk-BXSHL2SF.js → chunk-7LUOQJ3D.js} +1 -1
- package/chunks/{chunk-YAINVQ3Q.js → chunk-A5OPLHFM.js} +18693 -17055
- package/chunks/chunk-AHNXYU4O.js +24 -0
- package/chunks/{chunk-UX4SGCGN.js → chunk-AVQDCKNF.js} +96 -22
- package/chunks/{chunk-HYCC3XM3.js → chunk-B236XPGF.js} +1 -1
- package/chunks/chunk-B6SZLQAZ.js +3523 -0
- package/chunks/{chunk-5DWXLGOM.js → chunk-BJBWRCSK.js} +1 -1
- package/chunks/chunk-BPFJQGY7.js +193 -0
- package/chunks/{chunk-SKQZZVAV.js → chunk-BZHLWC6T.js} +2 -2
- package/chunks/{chunk-U3KSMM7G.js → chunk-D5KISTLW.js} +339 -383
- package/chunks/{chunk-GT2FGICD.js → chunk-DE7YXUR7.js} +1 -1
- package/chunks/{chunk-BUUQ5HPX.js → chunk-DG573EOO.js} +1 -1
- package/chunks/{chunk-VVLOGDB6.js → chunk-DX3TKXNT.js} +2 -2
- package/chunks/chunk-E5A7LHNN.js +51 -0
- package/chunks/{chunk-3PJXIDKI.js → chunk-E6US47KI.js} +3 -27
- package/chunks/{chunk-QBZ22PQX.js → chunk-EWALXUAD.js} +3 -1
- package/chunks/{chunk-PDE7CSDS.js → chunk-FXKI7OW6.js} +2 -2
- package/chunks/{chunk-F3ZYSEY6.js → chunk-FY4TT4L4.js} +3 -3
- package/chunks/{chunk-QLDPRILK.js → chunk-G7OQ3RFJ.js} +3 -3
- package/chunks/{chunk-R2BXK7SX.js → chunk-GHOTR7HL.js} +6 -1
- package/chunks/{chunk-KMGMKW5Q.js → chunk-GLPV75ES.js} +9 -3
- package/chunks/{chunk-LD2XBG6Z.js → chunk-GO6LNQXT.js} +1 -39
- package/chunks/{chunk-CNLEDYE3.js → chunk-H6TNLOLM.js} +5 -5
- package/chunks/{chunk-JVHEVCAU.js → chunk-HLW4EGKR.js} +31 -6
- package/chunks/{chunk-I4H7PRWQ.js → chunk-HTWHAN44.js} +1 -1
- package/chunks/{chunk-QE6KJYLT.js → chunk-IPYE5BIS.js} +123 -25
- package/chunks/{chunk-EJYJYJZ2.js → chunk-IRJWHZWU.js} +3 -70
- package/chunks/{chunk-EDMZZFDU.js → chunk-J3YPTTNL.js} +930 -798
- package/chunks/{chunk-GGBIN5K7.js → chunk-JGAJMIJZ.js} +1 -1
- package/chunks/{chunk-N4EJFBN5.js → chunk-JVLP5US5.js} +427 -263
- package/chunks/{chunk-R5OP2ATH.js → chunk-JZG7VB6C.js} +11 -11
- package/chunks/{chunk-QI7GOGJR.js → chunk-KKQWC6WS.js} +1 -1
- package/chunks/{chunk-ADCIHOQZ.js → chunk-KX5QZRW2.js} +142 -30
- package/chunks/{chunk-SBBN4BWR.js → chunk-L7OJ3ZO3.js} +1 -1
- package/chunks/{chunk-NDOC6M5S.js → chunk-L7QPM2YD.js} +2 -2
- package/chunks/{chunk-BVSVIN45.js → chunk-LKWAVAB5.js} +3 -3
- package/chunks/{chunk-T4T2FNV4.js → chunk-LOW52WYZ.js} +2 -2
- package/chunks/{chunk-4QK3O43S.js → chunk-LU7BIVWC.js} +4 -4
- package/chunks/{chunk-ZP6UKOPB.js → chunk-LWGLBVWA.js} +1 -1
- package/chunks/{chunk-L7OKCI7T.js → chunk-M7BLWURA.js} +15 -1
- package/chunks/{chunk-PR32FRT6.js → chunk-MIM62IXS.js} +3 -3
- package/chunks/{chunk-RD6YJJJ6.js → chunk-MOUXUCXQ.js} +1 -1
- package/chunks/{chunk-VBZ452JT.js → chunk-MSNGFH6L.js} +494 -114
- package/chunks/{chunk-BX5YO7UW.js → chunk-MTNTVOJR.js} +542 -370
- package/chunks/chunk-MX2YXRER.js +44 -0
- package/chunks/chunk-NIOPRZNN.js +27 -0
- package/chunks/{chunk-SMYQZVZ3.js → chunk-NOGSPTLJ.js} +1 -1
- package/chunks/{chunk-DDMOU62Q.js → chunk-NPQWQYU6.js} +1 -1
- package/chunks/{chunk-MNF6S5PR.js → chunk-P5THQV6A.js} +4 -4
- package/chunks/{chunk-6V4NZFUS.js → chunk-PCYOT4PK.js} +5 -5
- package/chunks/{chunk-CF6BB3LT.js → chunk-PPFWEV7G.js} +10 -1
- package/chunks/{chunk-FXKVLFFY.js → chunk-PSFDB5FZ.js} +3 -3
- package/chunks/{chunk-XJYUPHRC.js → chunk-QOMAHFYI.js} +3 -3
- package/chunks/{chunk-J37FGIOA.js → chunk-QXPI7FEC.js} +38 -4
- package/chunks/{chunk-RRFZXMYP.js → chunk-QZDBHNMV.js} +691 -164
- package/chunks/{chunk-S7AKE7HL.js → chunk-R6RI2HIC.js} +63 -9
- package/chunks/{chunk-HZT4UCFB.js → chunk-RB7S52NJ.js} +4 -4
- package/chunks/{chunk-J33ZR6OJ.js → chunk-RK22ACPP.js} +16 -16
- package/chunks/chunk-RM3PGSGL.js +66 -0
- package/chunks/chunk-RNBYOUGV.js +42 -0
- package/chunks/chunk-S6RLAIUR.js +23 -0
- package/chunks/{chunk-3TV3HUWZ.js → chunk-SCYK2YLI.js} +81 -30
- package/chunks/{chunk-HPZTOP4I.js → chunk-SEKRT4SD.js} +133 -23
- package/chunks/chunk-SEZC2725.js +36 -0
- package/chunks/chunk-SIUQ3YYX.js +78 -0
- package/chunks/{chunk-O2VBQ3Y2.js → chunk-SJBIFVD2.js} +2 -2
- package/chunks/chunk-SYCJMSIJ.js +82 -0
- package/chunks/{chunk-JE5FVRPC.js → chunk-T22H4V4R.js} +48 -23
- package/chunks/{chunk-3227DZO4.js → chunk-T42ACHFI.js} +1 -1
- package/chunks/{chunk-UO5GVXQE.js → chunk-TENOUWY2.js} +3 -3
- package/chunks/{chunk-JOLIREYR.js → chunk-TOAUDIS7.js} +1 -1
- package/chunks/{chunk-QNKBEJO2.js → chunk-UA6XBZT7.js} +2776 -1289
- package/chunks/{chunk-O75BHFQW.js → chunk-UQTYK5SS.js} +2 -2
- package/chunks/{chunk-Y6YMRS3U.js → chunk-UY2TCIZS.js} +17 -3
- package/chunks/{chunk-FNJ7BDPH.js → chunk-UY7ZAYTY.js} +10 -7
- package/chunks/{chunk-UYT3MWEB.js → chunk-UYHWM24C.js} +30 -2
- package/chunks/{chunk-SMXULRAN.js → chunk-VXGPYF7U.js} +1 -1
- package/chunks/{chunk-BTLJ2MF5.js → chunk-W7CG5HPC.js} +3 -3
- package/chunks/{chunk-JJXWTVSK.js → chunk-XHZKDN7M.js} +34 -1
- package/chunks/{chunk-K5XU6E4T.js → chunk-XKSCTXPK.js} +2 -2
- package/chunks/chunk-Y4LITCRB.js +367 -0
- package/chunks/chunk-YHTNWGRR.js +239 -0
- package/chunks/{chunk-BKXBARJZ.js → chunk-YPCPZSZB.js} +1 -1
- package/chunks/{chunk-QWFNTRH4.js → chunk-YSM24SCE.js} +1 -1
- package/chunks/chunk-YTFBURQD.js +313 -0
- package/chunks/{chunk-NL4C3H6C.js → chunk-YXK4GPYO.js} +1 -1
- package/chunks/{chunk-RYLJU2DY.js → chunk-ZN5T4BHI.js} +1 -1
- package/chunks/{computer-use-JGB36FDW.js → computer-use-MTSVPLPY.js} +34 -28
- package/chunks/contextCommand-VGJ3BPTK.js +67 -0
- package/chunks/{cron-create-SKEY55RG.js → cron-create-6YTCOX6P.js} +4 -4
- package/chunks/{cron-delete-I3NAT32Z.js → cron-delete-E3NIFSUK.js} +4 -4
- package/chunks/{cron-list-6XRRL6TH.js → cron-list-Q64MNQNE.js} +4 -4
- package/chunks/daemon-EEB2RYOL.js +8453 -0
- package/chunks/daemon-status-provider-H5SNMK42.js +71 -0
- package/chunks/{de-EOW5PVHF.js → de-PLLFDERI.js} +10 -9
- package/chunks/{dist-NHEYYB2B.js → dist-ADMIQGHI.js} +2 -2
- package/chunks/{dist-J37VXPLD.js → dist-BCQ7INM7.js} +40 -15
- package/chunks/{dist-663NZ6MI.js → dist-KNZFCY5F.js} +116 -11
- package/chunks/{dist-LB6OGPVM.js → dist-LHUWC3K6.js} +26 -5
- package/chunks/{dist-PQPZ5Q4N.js → dist-WBBZ76JZ.js} +20 -9
- package/chunks/{earlyInputCapture-44RISVVJ.js → earlyInputCapture-U4ZIQSQU.js} +32 -26
- package/chunks/{edit-NN6GM5DT.js → edit-SYIQ2KBI.js} +41 -38
- package/chunks/{en-HPWEJBTR.js → en-M4EBUBNU.js} +32 -10
- package/chunks/{enter-worktree-PB3O2C7D.js → enter-worktree-HPPOO244.js} +31 -25
- package/chunks/{enterPlanMode-YQFNNSUA.js → enterPlanMode-56YYO52U.js} +41 -25
- package/chunks/{errors-LS7XU5DZ.js → errors-EO4SXCFP.js} +33 -27
- package/chunks/{exit-worktree-E2FTNSBK.js → exit-worktree-UDM7E6XH.js} +31 -25
- package/chunks/{exitPlanMode-GLYK2BUB.js → exitPlanMode-M6P3AWLJ.js} +149 -33
- package/chunks/{fast-path-WQ6M7LI7.js → fast-path-42P4QYWI.js} +33 -14
- package/chunks/{fast-path-settings-OAGU3X5H.js → fast-path-settings-UQLRFDQP.js} +2 -2
- package/chunks/{fr-BN5NKSAC.js → fr-MBMNQSQ6.js} +10 -9
- package/chunks/{gemini-2YFLVA2M.js → gemini-NRLXS5J7.js} +84 -70
- package/chunks/{geminiContentGenerator-XV6SV6CD.js → geminiContentGenerator-DLJPYYPA.js} +41 -5
- package/chunks/{glob-2H6CDDMK.js → glob-JPY3F74Y.js} +31 -25
- package/chunks/{grep-VXIUXM3C.js → grep-HW23YES5.js} +31 -25
- package/chunks/initializer-HWOZTC4A.js +67 -0
- package/chunks/{ja-7DEUB2TS.js → ja-HFV5QCHR.js} +10 -9
- package/chunks/{keychain-token-storage-YLMDLKXT.js → keychain-token-storage-GPAKRDKQ.js} +2 -2
- package/chunks/list-OZGAGRDG.js +71 -0
- package/chunks/loadedSettingsAdapter-RUTZVVIA.js +66 -0
- package/chunks/{loop-wakeup-CITGGQHA.js → loop-wakeup-G2EHBRGR.js} +5 -5
- package/chunks/{ls-R5WP4BGZ.js → ls-IDHUVSAG.js} +4 -4
- package/chunks/{lsp-GSICJMMW.js → lsp-FSRYXGFT.js} +2 -2
- package/chunks/{monitor-HKLRS2HQ.js → monitor-QVWEIXU3.js} +33 -26
- package/chunks/nonInteractiveCli-RV2WYPML.js +109 -0
- package/chunks/{notebook-edit-Y6SKSGTT.js → notebook-edit-B26W3FFH.js} +37 -34
- package/chunks/{openaiContentGenerator-J7G2FYJT.js → openaiContentGenerator-6TH7AZGQ.js} +15 -13
- package/chunks/pidfile-KW2QQJZI.js +73 -0
- package/chunks/{pt-TNZRNLQB.js → pt-2THT3YHA.js} +10 -9
- package/chunks/{qwenContentGenerator-5XIEM5GV.js → qwenContentGenerator-5IQAC7RN.js} +33 -27
- package/chunks/{qwenOAuth2-AG3PFFLZ.js → qwenOAuth2-LWLA6MQG.js} +5 -4
- package/chunks/{read-file-J7D552ZJ.js → read-file-CWFAHOI2.js} +11 -10
- package/chunks/{read-mcp-resource-DQQW7H7T.js → read-mcp-resource-PIJF24RO.js} +2 -2
- package/chunks/ripGrep-FTZGDKY4.js +60 -0
- package/chunks/{ru-NIAUBKCN.js → ru-Z67YJHBG.js} +10 -9
- package/chunks/{run-qwen-serve-SGEEVMXD.js → run-qwen-serve-FN2SW5ZI.js} +545 -97
- package/chunks/{scheduler-7CQI3S4Q.js → scheduler-BMS23O3I.js} +31 -25
- package/chunks/{send-message-EE4TWKVU.js → send-message-33PYFMCT.js} +20 -4
- package/chunks/serve-PXFYKL65.js +71 -0
- package/chunks/{server-4QMUWXPW.js → server-BRKALJ4F.js} +4132 -1175
- package/chunks/{session-NRO7UFOY.js → session-AQMISBP4.js} +205 -64
- package/chunks/{settings-SGWRDQSC.js → settings-JCPVUZMB.js} +35 -29
- package/chunks/{shell-62ANGIHL.js → shell-POHCRVN2.js} +31 -25
- package/chunks/{skill-VWAQAWW6.js → skill-QPEVHS6H.js} +13 -12
- package/chunks/spawnChannel-V3QT62TE.js +69 -0
- package/chunks/{src-KUV5J5Q2.js → src-IZSP7L6Y.js} +127 -32
- package/chunks/{startInteractiveUI-6EYJN3JV.js → startInteractiveUI-63KATISO.js} +16762 -16075
- package/chunks/{syntheticOutput-T5YHQ6S2.js → syntheticOutput-YOSWIHDJ.js} +3 -3
- package/chunks/{task-create-BLY7RHXX.js → task-create-NHS2NGB3.js} +9 -7
- package/chunks/{task-list-3QUYNVYR.js → task-list-5UIB564R.js} +7 -6
- package/chunks/{task-stop-U4RATK2V.js → task-stop-HGXZ2VZ3.js} +2 -2
- package/chunks/{task-update-U54O7KJX.js → task-update-IYYWUILG.js} +40 -7
- package/chunks/{team-create-LPOGCPM7.js → team-create-E5O2F3CA.js} +31 -25
- package/chunks/{team-delete-LKBYPASD.js → team-delete-FEKJCU4P.js} +7 -6
- package/chunks/team-plan-approval-2TU4YROB.js +202 -0
- package/chunks/theme-manager-37KOGPJL.js +64 -0
- package/chunks/{todoWrite-OYXKTVYN.js → todoWrite-TKMVZ2HT.js} +4 -4
- package/chunks/{tool-search-YPUFJ3ZQ.js → tool-search-4ZTGNSFI.js} +38 -11
- package/chunks/{trustedFolders-5B24TMEA.js → trustedFolders-RJ5WXJ6L.js} +32 -26
- package/chunks/{validateNonInterActiveAuth-BTDTYOVT.js → validateNonInterActiveAuth-ZWMHZAOK.js} +66 -55
- package/chunks/{web-fetch-EEB5LZYU.js → web-fetch-J4PIW36Q.js} +5 -4
- package/chunks/{workflow-LAWIW5LI.js → workflow-6PG2PC5M.js} +68 -39
- package/chunks/workspace-providers-status-4QIZN2W4.js +68 -0
- package/chunks/workspace-service-CYMCOEIO.js +78 -0
- package/chunks/{write-file-PCV226DJ.js → write-file-R354LGQF.js} +41 -40
- package/chunks/{zh-5EUYXASN.js → zh-SLZNSSZB.js} +32 -10
- package/chunks/{zh-TW-TR3XYGE5.js → zh-TW-P53C2SL5.js} +32 -10
- package/cli.js +6 -6
- package/locales/ca.js +15 -13
- package/locales/de.js +15 -13
- package/locales/en.js +52 -15
- package/locales/fr.js +15 -14
- package/locales/ja.js +15 -14
- package/locales/pt.js +15 -13
- package/locales/ru.js +15 -13
- package/locales/zh-TW.js +50 -14
- package/locales/zh.js +50 -14
- package/node_modules/@qwen-code/audio-capture/package.json +1 -1
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
- package/package.json +15 -6
- package/patches/chrome-devtools-mcp+1.4.0.patch +31 -0
- package/postinstall.js +50 -0
- package/web-shell/assets/{arc-DA7r8Ueo.js → arc-Bd3048nX.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-ZDUxPtZ2.js → architectureDiagram-3BPJPVTR-DyzbzABx.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-vrtOf1kJ.js → blockDiagram-GPEHLZMM-CTjxm9Sy.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BHFjzIi4.js → c4Diagram-AAUBKEIU-DSOFWNU6.js} +1 -1
- package/web-shell/assets/channel-oVoup_Ci.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-mdeQVz59.js → chunk-2J33WTMH-D_PFdjo2.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BkKMlwBX.js → chunk-4BX2VUAB-52eG6wOT.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-B7bnXNfu.js → chunk-55IACEB6-CGTZfKkC.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-DGz8Mm6i.js → chunk-727SXJPM-CZ-qfRUm.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BQAydUNk.js → chunk-AQP2D5EJ-B2dSDcqM.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-GHr2LN_p.js → chunk-FMBD7UC4-Cfy3tyA0.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-7R91lnUx.js → chunk-ND2GUHAM-CApNUpUq.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-aTJD3lSQ.js → chunk-QZHKN3VN-CVBG8kgg.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-B8WsaT2G.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B8WsaT2G.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-BTf8t1RL.js → cose-bilkent-S5V4N54A-URd77-_-.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-_sgp3WuA.js → dagre-BM42HDAG-C07H4G9-.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-CROtRy1w.js → diagram-2AECGRRQ-CYbpXrSn.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BqGRzwSc.js → diagram-5GNKFQAL-SI8s6fjX.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CMrcEtA7.js → diagram-KO2AKTUF-mBkC4RTW.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BRydGNW5.js → diagram-LMA3HP47-CyBPDzWJ.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-D0ilgNjV.js → diagram-OG6HWLK6-DwK7kBCu.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-2lnQeJUM.js → erDiagram-TEJ5UH35-Ds1StEUd.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-C_ZMdQiC.js → flowDiagram-I6XJVG4X-BDC4-jHO.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-Dw9V_Ny0.js → ganttDiagram-6RSMTGT7-CV2aHQqf.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-HDXI-F1B.js → gitGraphDiagram-PVQCEYII-B8RcuV_L.js} +1 -1
- package/web-shell/assets/index-B5WZ0qP1.js +717 -0
- package/web-shell/assets/index-CYE1IMd1.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CuB8Ebua.js → infoDiagram-5YYISTIA-DUPoTf50.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-D_tyhVwh.js → ishikawaDiagram-YF4QCWOH-FDYOx9rf.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CgCwJQNU.js → journeyDiagram-JHISSGLW-C5_ohMRp.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-PZUtcbPx.js → kanban-definition-UN3LZRKU-Bn4UnOMG.js} +1 -1
- package/web-shell/assets/{linear-CZqRdJIU.js → linear-Bl0pKQtY.js} +1 -1
- package/web-shell/assets/{mermaid.core-CPW_4UEF.js → mermaid.core-sevQFoji.js} +72 -72
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D_Y75ID7.js → mindmap-definition-RKZ34NQL-DSH4JZF9.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-Q4dTyLeF.js → pieDiagram-4H26LBE5-acWvdQTD.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-ckw329Ft.js → quadrantDiagram-W4KKPZXB-DlggX4Sm.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-DbVDm4It.js → requirementDiagram-4Y6WPE33--mMqwmV8.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CHuZ_ecH.js → sankeyDiagram-5OEKKPKP-BtV9tZ77.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DU2YSpq-.js → sequenceDiagram-3UESZ5HK-iDQzPFlj.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CA9PEBUo.js → stateDiagram-AJRCARHV-CsCyQLZ3.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CPapECG9.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-Bhlo4WVc.js → timeline-definition-PNZ67QCA-Dl0rnKvr.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-6xtPLsyl.js → vennDiagram-CIIHVFJN-qF7nTZzA.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-3eozmXPf.js → wardley-L42UT6IY-fWoK9i7F.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BOn6hKss.js → wardleyDiagram-YWT4CUSO-pHGfkMnc.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BsP4-I_y.js → xychartDiagram-2RQKCTM6-3Doc4Trz.js} +1 -1
- package/web-shell/index.html +18 -2
- package/chunks/MaxSizedBox-QNF3EIGU.js +0 -63
- package/chunks/agent-headless-RQ5BTX3G.js +0 -56
- package/chunks/bridge-JL2PMCIW.js +0 -66
- package/chunks/chunk-5GOVVXEV.js +0 -73
- package/chunks/chunk-BC3C4F3Q.js +0 -40
- package/chunks/chunk-BW4KCQFD.js +0 -1103
- package/chunks/chunk-RKIZXJMB.js +0 -13
- package/chunks/contextCommand-WYU6OQ2F.js +0 -61
- package/chunks/daemon-status-provider-HH2EC5FI.js +0 -65
- package/chunks/headlessSafetyWarnings-TBE35GJ4.js +0 -55
- package/chunks/initializer-2Y7SLOKV.js +0 -61
- package/chunks/list-ZAFHZ7OS.js +0 -65
- package/chunks/loadedSettingsAdapter-6KJXD6M3.js +0 -60
- package/chunks/nonInteractiveCli-5W4GIZQM.js +0 -96
- package/chunks/ripGrep-IEIFIWP4.js +0 -54
- package/chunks/serve-V6GVZR6U.js +0 -65
- package/chunks/spawnChannel-3VHW5EPY.js +0 -63
- package/chunks/theme-manager-LYLGAERF.js +0 -58
- package/chunks/workspace-providers-status-PIAFVYHA.js +0 -62
- package/chunks/workspace-service-YAIOD4HG.js +0 -71
- package/web-shell/assets/channel-iRo68q4Q.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-iHF24a8X.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-iHF24a8X.js +0 -1
- package/web-shell/assets/index-CHmzAWys.css +0 -5
- package/web-shell/assets/index-w6GTOHh1.js +0 -713
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-t1LRI0oY.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
createDebugLogger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AVQDCKNF.js";
|
|
6
6
|
import {
|
|
7
7
|
init_esbuild_shims
|
|
8
8
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -2263,9 +2263,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
2265
2265
|
|
|
2266
|
-
// node_modules/json-schema-traverse/index.js
|
|
2266
|
+
// packages/core/node_modules/json-schema-traverse/index.js
|
|
2267
2267
|
var require_json_schema_traverse = __commonJS({
|
|
2268
|
-
"node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2268
|
+
"packages/core/node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2269
2269
|
"use strict";
|
|
2270
2270
|
init_esbuild_shims();
|
|
2271
2271
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
@@ -2286,7 +2286,10 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2286
2286
|
contains: true,
|
|
2287
2287
|
additionalProperties: true,
|
|
2288
2288
|
propertyNames: true,
|
|
2289
|
-
not: true
|
|
2289
|
+
not: true,
|
|
2290
|
+
if: true,
|
|
2291
|
+
then: true,
|
|
2292
|
+
else: true
|
|
2290
2293
|
};
|
|
2291
2294
|
traverse.arrayKeywords = {
|
|
2292
2295
|
items: true,
|
|
@@ -2295,6 +2298,7 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2295
2298
|
oneOf: true
|
|
2296
2299
|
};
|
|
2297
2300
|
traverse.propsKeywords = {
|
|
2301
|
+
$defs: true,
|
|
2298
2302
|
definitions: true,
|
|
2299
2303
|
properties: true,
|
|
2300
2304
|
patternProperties: true,
|
|
@@ -3363,97 +3367,69 @@ var require_data = __commonJS({
|
|
|
3363
3367
|
}
|
|
3364
3368
|
});
|
|
3365
3369
|
|
|
3366
|
-
// node_modules/fast-uri/lib/scopedChars.js
|
|
3367
|
-
var require_scopedChars = __commonJS({
|
|
3368
|
-
"node_modules/fast-uri/lib/scopedChars.js"(exports, module) {
|
|
3369
|
-
"use strict";
|
|
3370
|
-
init_esbuild_shims();
|
|
3371
|
-
var HEX = {
|
|
3372
|
-
0: 0,
|
|
3373
|
-
1: 1,
|
|
3374
|
-
2: 2,
|
|
3375
|
-
3: 3,
|
|
3376
|
-
4: 4,
|
|
3377
|
-
5: 5,
|
|
3378
|
-
6: 6,
|
|
3379
|
-
7: 7,
|
|
3380
|
-
8: 8,
|
|
3381
|
-
9: 9,
|
|
3382
|
-
a: 10,
|
|
3383
|
-
A: 10,
|
|
3384
|
-
b: 11,
|
|
3385
|
-
B: 11,
|
|
3386
|
-
c: 12,
|
|
3387
|
-
C: 12,
|
|
3388
|
-
d: 13,
|
|
3389
|
-
D: 13,
|
|
3390
|
-
e: 14,
|
|
3391
|
-
E: 14,
|
|
3392
|
-
f: 15,
|
|
3393
|
-
F: 15
|
|
3394
|
-
};
|
|
3395
|
-
module.exports = {
|
|
3396
|
-
HEX
|
|
3397
|
-
};
|
|
3398
|
-
}
|
|
3399
|
-
});
|
|
3400
|
-
|
|
3401
3370
|
// node_modules/fast-uri/lib/utils.js
|
|
3402
3371
|
var require_utils = __commonJS({
|
|
3403
3372
|
"node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3404
3373
|
"use strict";
|
|
3405
3374
|
init_esbuild_shims();
|
|
3406
|
-
var
|
|
3407
|
-
var
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
const matches = host.match(IPV4_REG) || [];
|
|
3413
|
-
const [address] = matches;
|
|
3414
|
-
if (address) {
|
|
3415
|
-
return { host: stripLeadingZeros(address, "."), isIPV4: true };
|
|
3416
|
-
} else {
|
|
3417
|
-
return { host, isIPV4: false };
|
|
3418
|
-
}
|
|
3419
|
-
}
|
|
3420
|
-
__name(normalizeIPv4, "normalizeIPv4");
|
|
3421
|
-
function stringArrayToHexStripped(input, keepZero = false) {
|
|
3375
|
+
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3376
|
+
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
3377
|
+
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3378
|
+
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3379
|
+
var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
3380
|
+
function stringArrayToHexStripped(input) {
|
|
3422
3381
|
let acc = "";
|
|
3423
|
-
let
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
if (
|
|
3382
|
+
let code = 0;
|
|
3383
|
+
let i = 0;
|
|
3384
|
+
for (i = 0; i < input.length; i++) {
|
|
3385
|
+
code = input[i].charCodeAt(0);
|
|
3386
|
+
if (code === 48) {
|
|
3387
|
+
continue;
|
|
3388
|
+
}
|
|
3389
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
3390
|
+
return "";
|
|
3391
|
+
}
|
|
3392
|
+
acc += input[i];
|
|
3393
|
+
break;
|
|
3394
|
+
}
|
|
3395
|
+
for (i += 1; i < input.length; i++) {
|
|
3396
|
+
code = input[i].charCodeAt(0);
|
|
3397
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
3398
|
+
return "";
|
|
3399
|
+
}
|
|
3400
|
+
acc += input[i];
|
|
3428
3401
|
}
|
|
3429
|
-
if (keepZero && acc.length === 0) acc = "0";
|
|
3430
3402
|
return acc;
|
|
3431
3403
|
}
|
|
3432
3404
|
__name(stringArrayToHexStripped, "stringArrayToHexStripped");
|
|
3405
|
+
var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
3406
|
+
function consumeIsZone(buffer) {
|
|
3407
|
+
buffer.length = 0;
|
|
3408
|
+
return true;
|
|
3409
|
+
}
|
|
3410
|
+
__name(consumeIsZone, "consumeIsZone");
|
|
3411
|
+
function consumeHextets(buffer, address, output) {
|
|
3412
|
+
if (buffer.length) {
|
|
3413
|
+
const hex = stringArrayToHexStripped(buffer);
|
|
3414
|
+
if (hex !== "") {
|
|
3415
|
+
address.push(hex);
|
|
3416
|
+
} else {
|
|
3417
|
+
output.error = true;
|
|
3418
|
+
return false;
|
|
3419
|
+
}
|
|
3420
|
+
buffer.length = 0;
|
|
3421
|
+
}
|
|
3422
|
+
return true;
|
|
3423
|
+
}
|
|
3424
|
+
__name(consumeHextets, "consumeHextets");
|
|
3433
3425
|
function getIPV6(input) {
|
|
3434
3426
|
let tokenCount = 0;
|
|
3435
3427
|
const output = { error: false, address: "", zone: "" };
|
|
3436
3428
|
const address = [];
|
|
3437
3429
|
const buffer = [];
|
|
3438
|
-
let isZone = false;
|
|
3439
3430
|
let endipv6Encountered = false;
|
|
3440
3431
|
let endIpv6 = false;
|
|
3441
|
-
|
|
3442
|
-
if (buffer.length) {
|
|
3443
|
-
if (isZone === false) {
|
|
3444
|
-
const hex = stringArrayToHexStripped(buffer);
|
|
3445
|
-
if (hex !== void 0) {
|
|
3446
|
-
address.push(hex);
|
|
3447
|
-
} else {
|
|
3448
|
-
output.error = true;
|
|
3449
|
-
return false;
|
|
3450
|
-
}
|
|
3451
|
-
}
|
|
3452
|
-
buffer.length = 0;
|
|
3453
|
-
}
|
|
3454
|
-
return true;
|
|
3455
|
-
}
|
|
3456
|
-
__name(consume, "consume");
|
|
3432
|
+
let consume = consumeHextets;
|
|
3457
3433
|
for (let i = 0; i < input.length; i++) {
|
|
3458
3434
|
const cursor = input[i];
|
|
3459
3435
|
if (cursor === "[" || cursor === "]") {
|
|
@@ -3463,31 +3439,30 @@ var require_utils = __commonJS({
|
|
|
3463
3439
|
if (endipv6Encountered === true) {
|
|
3464
3440
|
endIpv6 = true;
|
|
3465
3441
|
}
|
|
3466
|
-
if (!consume()) {
|
|
3442
|
+
if (!consume(buffer, address, output)) {
|
|
3467
3443
|
break;
|
|
3468
3444
|
}
|
|
3469
|
-
tokenCount
|
|
3470
|
-
address.push(":");
|
|
3471
|
-
if (tokenCount > 7) {
|
|
3445
|
+
if (++tokenCount > 7) {
|
|
3472
3446
|
output.error = true;
|
|
3473
3447
|
break;
|
|
3474
3448
|
}
|
|
3475
|
-
if (i
|
|
3449
|
+
if (i > 0 && input[i - 1] === ":") {
|
|
3476
3450
|
endipv6Encountered = true;
|
|
3477
3451
|
}
|
|
3452
|
+
address.push(":");
|
|
3478
3453
|
continue;
|
|
3479
3454
|
} else if (cursor === "%") {
|
|
3480
|
-
if (!consume()) {
|
|
3455
|
+
if (!consume(buffer, address, output)) {
|
|
3481
3456
|
break;
|
|
3482
3457
|
}
|
|
3483
|
-
|
|
3458
|
+
consume = consumeIsZone;
|
|
3484
3459
|
} else {
|
|
3485
3460
|
buffer.push(cursor);
|
|
3486
3461
|
continue;
|
|
3487
3462
|
}
|
|
3488
3463
|
}
|
|
3489
3464
|
if (buffer.length) {
|
|
3490
|
-
if (
|
|
3465
|
+
if (consume === consumeIsZone) {
|
|
3491
3466
|
output.zone = buffer.join("");
|
|
3492
3467
|
} else if (endIpv6) {
|
|
3493
3468
|
address.push(buffer.join(""));
|
|
@@ -3511,35 +3486,12 @@ var require_utils = __commonJS({
|
|
|
3511
3486
|
newHost += "%" + ipv6.zone;
|
|
3512
3487
|
escapedHost += "%25" + ipv6.zone;
|
|
3513
3488
|
}
|
|
3514
|
-
return { host: newHost,
|
|
3489
|
+
return { host: newHost, isIPV6: true, escapedHost };
|
|
3515
3490
|
} else {
|
|
3516
3491
|
return { host, isIPV6: false };
|
|
3517
3492
|
}
|
|
3518
3493
|
}
|
|
3519
3494
|
__name(normalizeIPv6, "normalizeIPv6");
|
|
3520
|
-
function stripLeadingZeros(str, token) {
|
|
3521
|
-
let out = "";
|
|
3522
|
-
let skip = true;
|
|
3523
|
-
const l = str.length;
|
|
3524
|
-
for (let i = 0; i < l; i++) {
|
|
3525
|
-
const c = str[i];
|
|
3526
|
-
if (c === "0" && skip) {
|
|
3527
|
-
if (i + 1 <= l && str[i + 1] === token || i + 1 === l) {
|
|
3528
|
-
out += c;
|
|
3529
|
-
skip = false;
|
|
3530
|
-
}
|
|
3531
|
-
} else {
|
|
3532
|
-
if (c === token) {
|
|
3533
|
-
skip = true;
|
|
3534
|
-
} else {
|
|
3535
|
-
skip = false;
|
|
3536
|
-
}
|
|
3537
|
-
out += c;
|
|
3538
|
-
}
|
|
3539
|
-
}
|
|
3540
|
-
return out;
|
|
3541
|
-
}
|
|
3542
|
-
__name(stripLeadingZeros, "stripLeadingZeros");
|
|
3543
3495
|
function findToken(str, token) {
|
|
3544
3496
|
let ind = 0;
|
|
3545
3497
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -3548,92 +3500,193 @@ var require_utils = __commonJS({
|
|
|
3548
3500
|
return ind;
|
|
3549
3501
|
}
|
|
3550
3502
|
__name(findToken, "findToken");
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
var RDS3 = /^\/\.\.(?:\/|$)/u;
|
|
3554
|
-
var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u;
|
|
3555
|
-
function removeDotSegments(input) {
|
|
3503
|
+
function removeDotSegments(path) {
|
|
3504
|
+
let input = path;
|
|
3556
3505
|
const output = [];
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
input
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
input = "";
|
|
3567
|
-
} else {
|
|
3568
|
-
const im = input.match(RDS5);
|
|
3569
|
-
if (im) {
|
|
3570
|
-
const s = im[0];
|
|
3571
|
-
input = input.slice(s.length);
|
|
3572
|
-
output.push(s);
|
|
3506
|
+
let nextSlash = -1;
|
|
3507
|
+
let len = 0;
|
|
3508
|
+
while (len = input.length) {
|
|
3509
|
+
if (len === 1) {
|
|
3510
|
+
if (input === ".") {
|
|
3511
|
+
break;
|
|
3512
|
+
} else if (input === "/") {
|
|
3513
|
+
output.push("/");
|
|
3514
|
+
break;
|
|
3573
3515
|
} else {
|
|
3574
|
-
|
|
3516
|
+
output.push(input);
|
|
3517
|
+
break;
|
|
3518
|
+
}
|
|
3519
|
+
} else if (len === 2) {
|
|
3520
|
+
if (input[0] === ".") {
|
|
3521
|
+
if (input[1] === ".") {
|
|
3522
|
+
break;
|
|
3523
|
+
} else if (input[1] === "/") {
|
|
3524
|
+
input = input.slice(2);
|
|
3525
|
+
continue;
|
|
3526
|
+
}
|
|
3527
|
+
} else if (input[0] === "/") {
|
|
3528
|
+
if (input[1] === "." || input[1] === "/") {
|
|
3529
|
+
output.push("/");
|
|
3530
|
+
break;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
} else if (len === 3) {
|
|
3534
|
+
if (input === "/..") {
|
|
3535
|
+
if (output.length !== 0) {
|
|
3536
|
+
output.pop();
|
|
3537
|
+
}
|
|
3538
|
+
output.push("/");
|
|
3539
|
+
break;
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
if (input[0] === ".") {
|
|
3543
|
+
if (input[1] === ".") {
|
|
3544
|
+
if (input[2] === "/") {
|
|
3545
|
+
input = input.slice(3);
|
|
3546
|
+
continue;
|
|
3547
|
+
}
|
|
3548
|
+
} else if (input[1] === "/") {
|
|
3549
|
+
input = input.slice(2);
|
|
3550
|
+
continue;
|
|
3551
|
+
}
|
|
3552
|
+
} else if (input[0] === "/") {
|
|
3553
|
+
if (input[1] === ".") {
|
|
3554
|
+
if (input[2] === "/") {
|
|
3555
|
+
input = input.slice(2);
|
|
3556
|
+
continue;
|
|
3557
|
+
} else if (input[2] === ".") {
|
|
3558
|
+
if (input[3] === "/") {
|
|
3559
|
+
input = input.slice(3);
|
|
3560
|
+
if (output.length !== 0) {
|
|
3561
|
+
output.pop();
|
|
3562
|
+
}
|
|
3563
|
+
continue;
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3575
3566
|
}
|
|
3576
3567
|
}
|
|
3568
|
+
if ((nextSlash = input.indexOf("/", 1)) === -1) {
|
|
3569
|
+
output.push(input);
|
|
3570
|
+
break;
|
|
3571
|
+
} else {
|
|
3572
|
+
output.push(input.slice(0, nextSlash));
|
|
3573
|
+
input = input.slice(nextSlash);
|
|
3574
|
+
}
|
|
3577
3575
|
}
|
|
3578
3576
|
return output.join("");
|
|
3579
3577
|
}
|
|
3580
3578
|
__name(removeDotSegments, "removeDotSegments");
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3579
|
+
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3580
|
+
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3581
|
+
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
3582
|
+
function reescapeHostDelimiters(host, isIP) {
|
|
3583
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
3584
|
+
re.lastIndex = 0;
|
|
3585
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch]);
|
|
3586
|
+
}
|
|
3587
|
+
__name(reescapeHostDelimiters, "reescapeHostDelimiters");
|
|
3588
|
+
function normalizePercentEncoding(input, decodeUnreserved = false) {
|
|
3589
|
+
if (input.indexOf("%") === -1) {
|
|
3590
|
+
return input;
|
|
3591
|
+
}
|
|
3592
|
+
let output = "";
|
|
3593
|
+
for (let i = 0; i < input.length; i++) {
|
|
3594
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3595
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3596
|
+
if (isHexPair(hex)) {
|
|
3597
|
+
const normalizedHex = hex.toUpperCase();
|
|
3598
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3599
|
+
if (decodeUnreserved && isUnreserved(decoded)) {
|
|
3600
|
+
output += decoded;
|
|
3601
|
+
} else {
|
|
3602
|
+
output += "%" + normalizedHex;
|
|
3603
|
+
}
|
|
3604
|
+
i += 2;
|
|
3605
|
+
continue;
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
output += input[i];
|
|
3594
3609
|
}
|
|
3595
|
-
|
|
3596
|
-
|
|
3610
|
+
return output;
|
|
3611
|
+
}
|
|
3612
|
+
__name(normalizePercentEncoding, "normalizePercentEncoding");
|
|
3613
|
+
function normalizePathEncoding(input) {
|
|
3614
|
+
let output = "";
|
|
3615
|
+
for (let i = 0; i < input.length; i++) {
|
|
3616
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3617
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3618
|
+
if (isHexPair(hex)) {
|
|
3619
|
+
const normalizedHex = hex.toUpperCase();
|
|
3620
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3621
|
+
if (decoded !== "." && isUnreserved(decoded)) {
|
|
3622
|
+
output += decoded;
|
|
3623
|
+
} else {
|
|
3624
|
+
output += "%" + normalizedHex;
|
|
3625
|
+
}
|
|
3626
|
+
i += 2;
|
|
3627
|
+
continue;
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
if (isPathCharacter(input[i])) {
|
|
3631
|
+
output += input[i];
|
|
3632
|
+
} else {
|
|
3633
|
+
output += escape(input[i]);
|
|
3634
|
+
}
|
|
3597
3635
|
}
|
|
3598
|
-
|
|
3599
|
-
|
|
3636
|
+
return output;
|
|
3637
|
+
}
|
|
3638
|
+
__name(normalizePathEncoding, "normalizePathEncoding");
|
|
3639
|
+
function escapePreservingEscapes(input) {
|
|
3640
|
+
let output = "";
|
|
3641
|
+
for (let i = 0; i < input.length; i++) {
|
|
3642
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3643
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3644
|
+
if (isHexPair(hex)) {
|
|
3645
|
+
output += "%" + hex.toUpperCase();
|
|
3646
|
+
i += 2;
|
|
3647
|
+
continue;
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
output += escape(input[i]);
|
|
3600
3651
|
}
|
|
3601
|
-
return
|
|
3652
|
+
return output;
|
|
3602
3653
|
}
|
|
3603
|
-
__name(
|
|
3604
|
-
function recomposeAuthority(
|
|
3654
|
+
__name(escapePreservingEscapes, "escapePreservingEscapes");
|
|
3655
|
+
function recomposeAuthority(component) {
|
|
3605
3656
|
const uriTokens = [];
|
|
3606
|
-
if (
|
|
3607
|
-
uriTokens.push(
|
|
3657
|
+
if (component.userinfo !== void 0) {
|
|
3658
|
+
uriTokens.push(component.userinfo);
|
|
3608
3659
|
uriTokens.push("@");
|
|
3609
3660
|
}
|
|
3610
|
-
if (
|
|
3611
|
-
let host = unescape(
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
host = ipV4res.host;
|
|
3615
|
-
} else {
|
|
3616
|
-
const ipV6res = normalizeIPv6(ipV4res.host);
|
|
3661
|
+
if (component.host !== void 0) {
|
|
3662
|
+
let host = unescape(component.host);
|
|
3663
|
+
if (!isIPv4(host)) {
|
|
3664
|
+
const ipV6res = normalizeIPv6(host);
|
|
3617
3665
|
if (ipV6res.isIPV6 === true) {
|
|
3618
3666
|
host = `[${ipV6res.escapedHost}]`;
|
|
3619
3667
|
} else {
|
|
3620
|
-
host =
|
|
3668
|
+
host = reescapeHostDelimiters(host, false);
|
|
3621
3669
|
}
|
|
3622
3670
|
}
|
|
3623
3671
|
uriTokens.push(host);
|
|
3624
3672
|
}
|
|
3625
|
-
if (typeof
|
|
3673
|
+
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
3626
3674
|
uriTokens.push(":");
|
|
3627
|
-
uriTokens.push(String(
|
|
3675
|
+
uriTokens.push(String(component.port));
|
|
3628
3676
|
}
|
|
3629
3677
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3630
3678
|
}
|
|
3631
3679
|
__name(recomposeAuthority, "recomposeAuthority");
|
|
3632
3680
|
module.exports = {
|
|
3681
|
+
nonSimpleDomain,
|
|
3633
3682
|
recomposeAuthority,
|
|
3634
|
-
|
|
3683
|
+
reescapeHostDelimiters,
|
|
3684
|
+
normalizePercentEncoding,
|
|
3685
|
+
normalizePathEncoding,
|
|
3686
|
+
escapePreservingEscapes,
|
|
3635
3687
|
removeDotSegments,
|
|
3636
|
-
|
|
3688
|
+
isIPv4,
|
|
3689
|
+
isUUID,
|
|
3637
3690
|
normalizeIPv6,
|
|
3638
3691
|
stringArrayToHexStripped
|
|
3639
3692
|
};
|
|
@@ -3645,154 +3698,220 @@ var require_schemes = __commonJS({
|
|
|
3645
3698
|
"node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3646
3699
|
"use strict";
|
|
3647
3700
|
init_esbuild_shims();
|
|
3648
|
-
var
|
|
3701
|
+
var { isUUID } = require_utils();
|
|
3649
3702
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
3650
|
-
|
|
3651
|
-
|
|
3703
|
+
var supportedSchemeNames = (
|
|
3704
|
+
/** @type {const} */
|
|
3705
|
+
[
|
|
3706
|
+
"http",
|
|
3707
|
+
"https",
|
|
3708
|
+
"ws",
|
|
3709
|
+
"wss",
|
|
3710
|
+
"urn",
|
|
3711
|
+
"urn:uuid"
|
|
3712
|
+
]
|
|
3713
|
+
);
|
|
3714
|
+
function isValidSchemeName(name) {
|
|
3715
|
+
return supportedSchemeNames.indexOf(
|
|
3716
|
+
/** @type {*} */
|
|
3717
|
+
name
|
|
3718
|
+
) !== -1;
|
|
3719
|
+
}
|
|
3720
|
+
__name(isValidSchemeName, "isValidSchemeName");
|
|
3721
|
+
function wsIsSecure(wsComponent) {
|
|
3722
|
+
if (wsComponent.secure === true) {
|
|
3723
|
+
return true;
|
|
3724
|
+
} else if (wsComponent.secure === false) {
|
|
3725
|
+
return false;
|
|
3726
|
+
} else if (wsComponent.scheme) {
|
|
3727
|
+
return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
|
|
3728
|
+
} else {
|
|
3729
|
+
return false;
|
|
3730
|
+
}
|
|
3652
3731
|
}
|
|
3653
|
-
__name(
|
|
3654
|
-
function httpParse(
|
|
3655
|
-
if (!
|
|
3656
|
-
|
|
3732
|
+
__name(wsIsSecure, "wsIsSecure");
|
|
3733
|
+
function httpParse(component) {
|
|
3734
|
+
if (!component.host) {
|
|
3735
|
+
component.error = component.error || "HTTP URIs must have a host.";
|
|
3657
3736
|
}
|
|
3658
|
-
return
|
|
3737
|
+
return component;
|
|
3659
3738
|
}
|
|
3660
3739
|
__name(httpParse, "httpParse");
|
|
3661
|
-
function httpSerialize(
|
|
3662
|
-
const secure = String(
|
|
3663
|
-
if (
|
|
3664
|
-
|
|
3740
|
+
function httpSerialize(component) {
|
|
3741
|
+
const secure = String(component.scheme).toLowerCase() === "https";
|
|
3742
|
+
if (component.port === (secure ? 443 : 80) || component.port === "") {
|
|
3743
|
+
component.port = void 0;
|
|
3665
3744
|
}
|
|
3666
|
-
if (!
|
|
3667
|
-
|
|
3745
|
+
if (!component.path) {
|
|
3746
|
+
component.path = "/";
|
|
3668
3747
|
}
|
|
3669
|
-
return
|
|
3748
|
+
return component;
|
|
3670
3749
|
}
|
|
3671
3750
|
__name(httpSerialize, "httpSerialize");
|
|
3672
|
-
function wsParse(
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
return
|
|
3751
|
+
function wsParse(wsComponent) {
|
|
3752
|
+
wsComponent.secure = wsIsSecure(wsComponent);
|
|
3753
|
+
wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
|
|
3754
|
+
wsComponent.path = void 0;
|
|
3755
|
+
wsComponent.query = void 0;
|
|
3756
|
+
return wsComponent;
|
|
3678
3757
|
}
|
|
3679
3758
|
__name(wsParse, "wsParse");
|
|
3680
|
-
function wsSerialize(
|
|
3681
|
-
if (
|
|
3682
|
-
|
|
3759
|
+
function wsSerialize(wsComponent) {
|
|
3760
|
+
if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") {
|
|
3761
|
+
wsComponent.port = void 0;
|
|
3683
3762
|
}
|
|
3684
|
-
if (typeof
|
|
3685
|
-
|
|
3686
|
-
|
|
3763
|
+
if (typeof wsComponent.secure === "boolean") {
|
|
3764
|
+
wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
|
|
3765
|
+
wsComponent.secure = void 0;
|
|
3687
3766
|
}
|
|
3688
|
-
if (
|
|
3689
|
-
const [path, query] =
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3767
|
+
if (wsComponent.resourceName) {
|
|
3768
|
+
const [path, query] = wsComponent.resourceName.split("?");
|
|
3769
|
+
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
3770
|
+
wsComponent.query = query;
|
|
3771
|
+
wsComponent.resourceName = void 0;
|
|
3693
3772
|
}
|
|
3694
|
-
|
|
3695
|
-
return
|
|
3773
|
+
wsComponent.fragment = void 0;
|
|
3774
|
+
return wsComponent;
|
|
3696
3775
|
}
|
|
3697
3776
|
__name(wsSerialize, "wsSerialize");
|
|
3698
|
-
function urnParse(
|
|
3699
|
-
if (!
|
|
3700
|
-
|
|
3701
|
-
return
|
|
3777
|
+
function urnParse(urnComponent, options) {
|
|
3778
|
+
if (!urnComponent.path) {
|
|
3779
|
+
urnComponent.error = "URN can not be parsed";
|
|
3780
|
+
return urnComponent;
|
|
3702
3781
|
}
|
|
3703
|
-
const matches =
|
|
3782
|
+
const matches = urnComponent.path.match(URN_REG);
|
|
3704
3783
|
if (matches) {
|
|
3705
|
-
const scheme = options.scheme ||
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
const urnScheme = `${scheme}:${options.nid ||
|
|
3709
|
-
const schemeHandler =
|
|
3710
|
-
|
|
3784
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
3785
|
+
urnComponent.nid = matches[1].toLowerCase();
|
|
3786
|
+
urnComponent.nss = matches[2];
|
|
3787
|
+
const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`;
|
|
3788
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
3789
|
+
urnComponent.path = void 0;
|
|
3711
3790
|
if (schemeHandler) {
|
|
3712
|
-
|
|
3791
|
+
urnComponent = schemeHandler.parse(urnComponent, options);
|
|
3713
3792
|
}
|
|
3714
3793
|
} else {
|
|
3715
|
-
|
|
3794
|
+
urnComponent.error = urnComponent.error || "URN can not be parsed.";
|
|
3716
3795
|
}
|
|
3717
|
-
return
|
|
3796
|
+
return urnComponent;
|
|
3718
3797
|
}
|
|
3719
3798
|
__name(urnParse, "urnParse");
|
|
3720
|
-
function urnSerialize(
|
|
3721
|
-
|
|
3722
|
-
|
|
3799
|
+
function urnSerialize(urnComponent, options) {
|
|
3800
|
+
if (urnComponent.nid === void 0) {
|
|
3801
|
+
throw new Error("URN without nid cannot be serialized");
|
|
3802
|
+
}
|
|
3803
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
3804
|
+
const nid = urnComponent.nid.toLowerCase();
|
|
3723
3805
|
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
3724
|
-
const schemeHandler =
|
|
3806
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
3725
3807
|
if (schemeHandler) {
|
|
3726
|
-
|
|
3808
|
+
urnComponent = schemeHandler.serialize(urnComponent, options);
|
|
3727
3809
|
}
|
|
3728
|
-
const
|
|
3729
|
-
const nss =
|
|
3730
|
-
|
|
3810
|
+
const uriComponent = urnComponent;
|
|
3811
|
+
const nss = urnComponent.nss;
|
|
3812
|
+
uriComponent.path = `${nid || options.nid}:${nss}`;
|
|
3731
3813
|
options.skipEscape = true;
|
|
3732
|
-
return
|
|
3814
|
+
return uriComponent;
|
|
3733
3815
|
}
|
|
3734
3816
|
__name(urnSerialize, "urnSerialize");
|
|
3735
|
-
function urnuuidParse(
|
|
3736
|
-
const
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
if (!options.tolerant && (!
|
|
3740
|
-
|
|
3817
|
+
function urnuuidParse(urnComponent, options) {
|
|
3818
|
+
const uuidComponent = urnComponent;
|
|
3819
|
+
uuidComponent.uuid = uuidComponent.nss;
|
|
3820
|
+
uuidComponent.nss = void 0;
|
|
3821
|
+
if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
|
|
3822
|
+
uuidComponent.error = uuidComponent.error || "UUID is not valid.";
|
|
3741
3823
|
}
|
|
3742
|
-
return
|
|
3824
|
+
return uuidComponent;
|
|
3743
3825
|
}
|
|
3744
3826
|
__name(urnuuidParse, "urnuuidParse");
|
|
3745
|
-
function urnuuidSerialize(
|
|
3746
|
-
const
|
|
3747
|
-
|
|
3748
|
-
return
|
|
3827
|
+
function urnuuidSerialize(uuidComponent) {
|
|
3828
|
+
const urnComponent = uuidComponent;
|
|
3829
|
+
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
3830
|
+
return urnComponent;
|
|
3749
3831
|
}
|
|
3750
3832
|
__name(urnuuidSerialize, "urnuuidSerialize");
|
|
3751
|
-
var http =
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
var
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
var
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3833
|
+
var http = (
|
|
3834
|
+
/** @type {SchemeHandler} */
|
|
3835
|
+
{
|
|
3836
|
+
scheme: "http",
|
|
3837
|
+
domainHost: true,
|
|
3838
|
+
parse: httpParse,
|
|
3839
|
+
serialize: httpSerialize
|
|
3840
|
+
}
|
|
3841
|
+
);
|
|
3842
|
+
var https = (
|
|
3843
|
+
/** @type {SchemeHandler} */
|
|
3844
|
+
{
|
|
3845
|
+
scheme: "https",
|
|
3846
|
+
domainHost: http.domainHost,
|
|
3847
|
+
parse: httpParse,
|
|
3848
|
+
serialize: httpSerialize
|
|
3849
|
+
}
|
|
3850
|
+
);
|
|
3851
|
+
var ws = (
|
|
3852
|
+
/** @type {SchemeHandler} */
|
|
3853
|
+
{
|
|
3854
|
+
scheme: "ws",
|
|
3855
|
+
domainHost: true,
|
|
3856
|
+
parse: wsParse,
|
|
3857
|
+
serialize: wsSerialize
|
|
3858
|
+
}
|
|
3859
|
+
);
|
|
3860
|
+
var wss = (
|
|
3861
|
+
/** @type {SchemeHandler} */
|
|
3862
|
+
{
|
|
3863
|
+
scheme: "wss",
|
|
3864
|
+
domainHost: ws.domainHost,
|
|
3865
|
+
parse: ws.parse,
|
|
3866
|
+
serialize: ws.serialize
|
|
3867
|
+
}
|
|
3868
|
+
);
|
|
3869
|
+
var urn = (
|
|
3870
|
+
/** @type {SchemeHandler} */
|
|
3871
|
+
{
|
|
3872
|
+
scheme: "urn",
|
|
3873
|
+
parse: urnParse,
|
|
3874
|
+
serialize: urnSerialize,
|
|
3875
|
+
skipNormalize: true
|
|
3876
|
+
}
|
|
3877
|
+
);
|
|
3878
|
+
var urnuuid = (
|
|
3879
|
+
/** @type {SchemeHandler} */
|
|
3880
|
+
{
|
|
3881
|
+
scheme: "urn:uuid",
|
|
3882
|
+
parse: urnuuidParse,
|
|
3883
|
+
serialize: urnuuidSerialize,
|
|
3884
|
+
skipNormalize: true
|
|
3885
|
+
}
|
|
3886
|
+
);
|
|
3887
|
+
var SCHEMES = (
|
|
3888
|
+
/** @type {Record<SchemeName, SchemeHandler>} */
|
|
3889
|
+
{
|
|
3890
|
+
http,
|
|
3891
|
+
https,
|
|
3892
|
+
ws,
|
|
3893
|
+
wss,
|
|
3894
|
+
urn,
|
|
3895
|
+
"urn:uuid": urnuuid
|
|
3896
|
+
}
|
|
3897
|
+
);
|
|
3898
|
+
Object.setPrototypeOf(SCHEMES, null);
|
|
3899
|
+
function getSchemeHandler(scheme) {
|
|
3900
|
+
return scheme && (SCHEMES[
|
|
3901
|
+
/** @type {SchemeName} */
|
|
3902
|
+
scheme
|
|
3903
|
+
] || SCHEMES[
|
|
3904
|
+
/** @type {SchemeName} */
|
|
3905
|
+
scheme.toLowerCase()
|
|
3906
|
+
]) || void 0;
|
|
3907
|
+
}
|
|
3908
|
+
__name(getSchemeHandler, "getSchemeHandler");
|
|
3909
|
+
module.exports = {
|
|
3910
|
+
wsIsSecure,
|
|
3911
|
+
SCHEMES,
|
|
3912
|
+
isValidSchemeName,
|
|
3913
|
+
getSchemeHandler
|
|
3914
|
+
};
|
|
3796
3915
|
}
|
|
3797
3916
|
});
|
|
3798
3917
|
|
|
@@ -3801,24 +3920,27 @@ var require_fast_uri = __commonJS({
|
|
|
3801
3920
|
"node_modules/fast-uri/index.js"(exports, module) {
|
|
3802
3921
|
"use strict";
|
|
3803
3922
|
init_esbuild_shims();
|
|
3804
|
-
var { normalizeIPv6,
|
|
3805
|
-
var SCHEMES = require_schemes();
|
|
3923
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3924
|
+
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3806
3925
|
function normalize(uri, options) {
|
|
3807
3926
|
if (typeof uri === "string") {
|
|
3808
|
-
uri =
|
|
3927
|
+
uri = /** @type {T} */
|
|
3928
|
+
normalizeString(uri, options);
|
|
3809
3929
|
} else if (typeof uri === "object") {
|
|
3810
|
-
uri =
|
|
3930
|
+
uri = /** @type {T} */
|
|
3931
|
+
parse(serialize(uri, options), options);
|
|
3811
3932
|
}
|
|
3812
3933
|
return uri;
|
|
3813
3934
|
}
|
|
3814
3935
|
__name(normalize, "normalize");
|
|
3815
3936
|
function resolve(baseURI, relativeURI, options) {
|
|
3816
|
-
const schemelessOptions = Object.assign({ scheme: "null" }, options);
|
|
3817
|
-
const resolved =
|
|
3818
|
-
|
|
3937
|
+
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
3938
|
+
const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
3939
|
+
schemelessOptions.skipEscape = true;
|
|
3940
|
+
return serialize(resolved, schemelessOptions);
|
|
3819
3941
|
}
|
|
3820
3942
|
__name(resolve, "resolve");
|
|
3821
|
-
function
|
|
3943
|
+
function resolveComponent(base, relative, options, skipNormalization) {
|
|
3822
3944
|
const target = {};
|
|
3823
3945
|
if (!skipNormalization) {
|
|
3824
3946
|
base = parse(serialize(base, options), options);
|
|
@@ -3848,7 +3970,7 @@ var require_fast_uri = __commonJS({
|
|
|
3848
3970
|
target.query = base.query;
|
|
3849
3971
|
}
|
|
3850
3972
|
} else {
|
|
3851
|
-
if (relative.path
|
|
3973
|
+
if (relative.path[0] === "/") {
|
|
3852
3974
|
target.path = removeDotSegments(relative.path);
|
|
3853
3975
|
} else {
|
|
3854
3976
|
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
|
|
@@ -3871,25 +3993,15 @@ var require_fast_uri = __commonJS({
|
|
|
3871
3993
|
target.fragment = relative.fragment;
|
|
3872
3994
|
return target;
|
|
3873
3995
|
}
|
|
3874
|
-
__name(
|
|
3996
|
+
__name(resolveComponent, "resolveComponent");
|
|
3875
3997
|
function equal(uriA, uriB, options) {
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
} else if (typeof uriA === "object") {
|
|
3880
|
-
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
3881
|
-
}
|
|
3882
|
-
if (typeof uriB === "string") {
|
|
3883
|
-
uriB = unescape(uriB);
|
|
3884
|
-
uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
|
|
3885
|
-
} else if (typeof uriB === "object") {
|
|
3886
|
-
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
3887
|
-
}
|
|
3888
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
3998
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
3999
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
4000
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
|
|
3889
4001
|
}
|
|
3890
4002
|
__name(equal, "equal");
|
|
3891
4003
|
function serialize(cmpts, opts) {
|
|
3892
|
-
const
|
|
4004
|
+
const component = {
|
|
3893
4005
|
host: cmpts.host,
|
|
3894
4006
|
scheme: cmpts.scheme,
|
|
3895
4007
|
userinfo: cmpts.userinfo,
|
|
@@ -3907,64 +4019,62 @@ var require_fast_uri = __commonJS({
|
|
|
3907
4019
|
};
|
|
3908
4020
|
const options = Object.assign({}, opts);
|
|
3909
4021
|
const uriTokens = [];
|
|
3910
|
-
const schemeHandler =
|
|
3911
|
-
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(
|
|
3912
|
-
if (
|
|
4022
|
+
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
4023
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
4024
|
+
if (component.path !== void 0) {
|
|
3913
4025
|
if (!options.skipEscape) {
|
|
3914
|
-
|
|
3915
|
-
if (
|
|
3916
|
-
|
|
4026
|
+
component.path = escapePreservingEscapes(component.path);
|
|
4027
|
+
if (component.scheme !== void 0) {
|
|
4028
|
+
component.path = component.path.split("%3A").join(":");
|
|
3917
4029
|
}
|
|
3918
4030
|
} else {
|
|
3919
|
-
|
|
4031
|
+
component.path = normalizePercentEncoding(component.path);
|
|
3920
4032
|
}
|
|
3921
4033
|
}
|
|
3922
|
-
if (options.reference !== "suffix" &&
|
|
3923
|
-
uriTokens.push(
|
|
4034
|
+
if (options.reference !== "suffix" && component.scheme) {
|
|
4035
|
+
uriTokens.push(component.scheme, ":");
|
|
3924
4036
|
}
|
|
3925
|
-
const authority = recomposeAuthority(
|
|
4037
|
+
const authority = recomposeAuthority(component);
|
|
3926
4038
|
if (authority !== void 0) {
|
|
3927
4039
|
if (options.reference !== "suffix") {
|
|
3928
4040
|
uriTokens.push("//");
|
|
3929
4041
|
}
|
|
3930
4042
|
uriTokens.push(authority);
|
|
3931
|
-
if (
|
|
4043
|
+
if (component.path && component.path[0] !== "/") {
|
|
3932
4044
|
uriTokens.push("/");
|
|
3933
4045
|
}
|
|
3934
4046
|
}
|
|
3935
|
-
if (
|
|
3936
|
-
let s =
|
|
4047
|
+
if (component.path !== void 0) {
|
|
4048
|
+
let s = component.path;
|
|
3937
4049
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
3938
4050
|
s = removeDotSegments(s);
|
|
3939
4051
|
}
|
|
3940
|
-
if (authority === void 0) {
|
|
3941
|
-
s =
|
|
4052
|
+
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
4053
|
+
s = "/%2F" + s.slice(2);
|
|
3942
4054
|
}
|
|
3943
4055
|
uriTokens.push(s);
|
|
3944
4056
|
}
|
|
3945
|
-
if (
|
|
3946
|
-
uriTokens.push("?",
|
|
4057
|
+
if (component.query !== void 0) {
|
|
4058
|
+
uriTokens.push("?", component.query);
|
|
3947
4059
|
}
|
|
3948
|
-
if (
|
|
3949
|
-
uriTokens.push("#",
|
|
4060
|
+
if (component.fragment !== void 0) {
|
|
4061
|
+
uriTokens.push("#", component.fragment);
|
|
3950
4062
|
}
|
|
3951
4063
|
return uriTokens.join("");
|
|
3952
4064
|
}
|
|
3953
4065
|
__name(serialize, "serialize");
|
|
3954
|
-
var
|
|
3955
|
-
function
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
code = value.charCodeAt(i);
|
|
3959
|
-
if (code > 126 || hexLookUp[code]) {
|
|
3960
|
-
return true;
|
|
3961
|
-
}
|
|
4066
|
+
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
4067
|
+
function getParseError(parsed, matches) {
|
|
4068
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
4069
|
+
return 'URI path must start with "/" when authority is present.';
|
|
3962
4070
|
}
|
|
3963
|
-
|
|
4071
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
|
|
4072
|
+
return "URI port is malformed.";
|
|
4073
|
+
}
|
|
4074
|
+
return void 0;
|
|
3964
4075
|
}
|
|
3965
|
-
__name(
|
|
3966
|
-
|
|
3967
|
-
function parse(uri, opts) {
|
|
4076
|
+
__name(getParseError, "getParseError");
|
|
4077
|
+
function parseWithStatus(uri, opts) {
|
|
3968
4078
|
const options = Object.assign({}, opts);
|
|
3969
4079
|
const parsed = {
|
|
3970
4080
|
scheme: void 0,
|
|
@@ -3975,9 +4085,15 @@ var require_fast_uri = __commonJS({
|
|
|
3975
4085
|
query: void 0,
|
|
3976
4086
|
fragment: void 0
|
|
3977
4087
|
};
|
|
3978
|
-
|
|
4088
|
+
let malformedAuthorityOrPort = false;
|
|
3979
4089
|
let isIP = false;
|
|
3980
|
-
if (options.reference === "suffix")
|
|
4090
|
+
if (options.reference === "suffix") {
|
|
4091
|
+
if (options.scheme) {
|
|
4092
|
+
uri = options.scheme + ":" + uri;
|
|
4093
|
+
} else {
|
|
4094
|
+
uri = "//" + uri;
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
3981
4097
|
const matches = uri.match(URI_PARSE);
|
|
3982
4098
|
if (matches) {
|
|
3983
4099
|
parsed.scheme = matches[1];
|
|
@@ -3990,14 +4106,18 @@ var require_fast_uri = __commonJS({
|
|
|
3990
4106
|
if (isNaN(parsed.port)) {
|
|
3991
4107
|
parsed.port = matches[5];
|
|
3992
4108
|
}
|
|
4109
|
+
const parseError = getParseError(parsed, matches);
|
|
4110
|
+
if (parseError !== void 0) {
|
|
4111
|
+
parsed.error = parsed.error || parseError;
|
|
4112
|
+
malformedAuthorityOrPort = true;
|
|
4113
|
+
}
|
|
3993
4114
|
if (parsed.host) {
|
|
3994
|
-
const ipv4result =
|
|
3995
|
-
if (ipv4result
|
|
3996
|
-
const ipv6result = normalizeIPv6(
|
|
4115
|
+
const ipv4result = isIPv4(parsed.host);
|
|
4116
|
+
if (ipv4result === false) {
|
|
4117
|
+
const ipv6result = normalizeIPv6(parsed.host);
|
|
3997
4118
|
parsed.host = ipv6result.host.toLowerCase();
|
|
3998
4119
|
isIP = ipv6result.isIPV6;
|
|
3999
4120
|
} else {
|
|
4000
|
-
parsed.host = ipv4result.host;
|
|
4001
4121
|
isIP = true;
|
|
4002
4122
|
}
|
|
4003
4123
|
}
|
|
@@ -4013,28 +4133,34 @@ var require_fast_uri = __commonJS({
|
|
|
4013
4133
|
if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
|
|
4014
4134
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
4015
4135
|
}
|
|
4016
|
-
const schemeHandler =
|
|
4136
|
+
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
4017
4137
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
4018
4138
|
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4019
4139
|
try {
|
|
4020
|
-
parsed.host = URL
|
|
4140
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
4021
4141
|
} catch (e) {
|
|
4022
4142
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
4023
4143
|
}
|
|
4024
4144
|
}
|
|
4025
4145
|
}
|
|
4026
4146
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4027
|
-
if (
|
|
4028
|
-
parsed.scheme
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
parsed.host
|
|
4147
|
+
if (uri.indexOf("%") !== -1) {
|
|
4148
|
+
if (parsed.scheme !== void 0) {
|
|
4149
|
+
parsed.scheme = unescape(parsed.scheme);
|
|
4150
|
+
}
|
|
4151
|
+
if (parsed.host !== void 0) {
|
|
4152
|
+
parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
|
|
4153
|
+
}
|
|
4032
4154
|
}
|
|
4033
4155
|
if (parsed.path) {
|
|
4034
|
-
parsed.path =
|
|
4156
|
+
parsed.path = normalizePathEncoding(parsed.path);
|
|
4035
4157
|
}
|
|
4036
4158
|
if (parsed.fragment) {
|
|
4037
|
-
|
|
4159
|
+
try {
|
|
4160
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
4161
|
+
} catch {
|
|
4162
|
+
parsed.error = parsed.error || "URI malformed";
|
|
4163
|
+
}
|
|
4038
4164
|
}
|
|
4039
4165
|
}
|
|
4040
4166
|
if (schemeHandler && schemeHandler.parse) {
|
|
@@ -4043,14 +4169,40 @@ var require_fast_uri = __commonJS({
|
|
|
4043
4169
|
} else {
|
|
4044
4170
|
parsed.error = parsed.error || "URI can not be parsed.";
|
|
4045
4171
|
}
|
|
4046
|
-
return parsed;
|
|
4172
|
+
return { parsed, malformedAuthorityOrPort };
|
|
4173
|
+
}
|
|
4174
|
+
__name(parseWithStatus, "parseWithStatus");
|
|
4175
|
+
function parse(uri, opts) {
|
|
4176
|
+
return parseWithStatus(uri, opts).parsed;
|
|
4047
4177
|
}
|
|
4048
4178
|
__name(parse, "parse");
|
|
4179
|
+
function normalizeString(uri, opts) {
|
|
4180
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
4181
|
+
}
|
|
4182
|
+
__name(normalizeString, "normalizeString");
|
|
4183
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
4184
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
4185
|
+
return {
|
|
4186
|
+
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
4187
|
+
malformedAuthorityOrPort
|
|
4188
|
+
};
|
|
4189
|
+
}
|
|
4190
|
+
__name(normalizeStringWithStatus, "normalizeStringWithStatus");
|
|
4191
|
+
function normalizeComparableURI(uri, opts) {
|
|
4192
|
+
if (typeof uri === "string") {
|
|
4193
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
|
|
4194
|
+
return malformedAuthorityOrPort ? void 0 : normalized;
|
|
4195
|
+
}
|
|
4196
|
+
if (typeof uri === "object") {
|
|
4197
|
+
return serialize(uri, opts);
|
|
4198
|
+
}
|
|
4199
|
+
}
|
|
4200
|
+
__name(normalizeComparableURI, "normalizeComparableURI");
|
|
4049
4201
|
var fastUri = {
|
|
4050
4202
|
SCHEMES,
|
|
4051
4203
|
normalize,
|
|
4052
4204
|
resolve,
|
|
4053
|
-
|
|
4205
|
+
resolveComponent,
|
|
4054
4206
|
equal,
|
|
4055
4207
|
serialize,
|
|
4056
4208
|
parse
|
|
@@ -4190,7 +4342,7 @@ var require_core = __commonJS({
|
|
|
4190
4342
|
constructor(opts = {}) {
|
|
4191
4343
|
this.schemas = {};
|
|
4192
4344
|
this.refs = {};
|
|
4193
|
-
this.formats =
|
|
4345
|
+
this.formats = /* @__PURE__ */ Object.create(null);
|
|
4194
4346
|
this._compilations = /* @__PURE__ */ new Set();
|
|
4195
4347
|
this._loading = {};
|
|
4196
4348
|
this._cache = /* @__PURE__ */ new Map();
|
|
@@ -5007,6 +5159,7 @@ var require_pattern = __commonJS({
|
|
|
5007
5159
|
init_esbuild_shims();
|
|
5008
5160
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5009
5161
|
var code_1 = require_code2();
|
|
5162
|
+
var util_1 = require_util();
|
|
5010
5163
|
var codegen_1 = require_codegen();
|
|
5011
5164
|
var error = {
|
|
5012
5165
|
message: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`, "message"),
|
|
@@ -5019,10 +5172,18 @@ var require_pattern = __commonJS({
|
|
|
5019
5172
|
$data: true,
|
|
5020
5173
|
error,
|
|
5021
5174
|
code(cxt) {
|
|
5022
|
-
const { data, $data, schema, schemaCode, it } = cxt;
|
|
5175
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
5023
5176
|
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
5024
|
-
|
|
5025
|
-
|
|
5177
|
+
if ($data) {
|
|
5178
|
+
const { regExp } = it.opts.code;
|
|
5179
|
+
const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
|
|
5180
|
+
const valid = gen.let("valid");
|
|
5181
|
+
gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
|
|
5182
|
+
cxt.fail$data((0, codegen_1._)`!${valid}`);
|
|
5183
|
+
} else {
|
|
5184
|
+
const regExp = (0, code_1.usePattern)(cxt, schema);
|
|
5185
|
+
cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
|
|
5186
|
+
}
|
|
5026
5187
|
}
|
|
5027
5188
|
};
|
|
5028
5189
|
exports.default = def;
|
|
@@ -11359,7 +11520,7 @@ var require_core4 = __commonJS({
|
|
|
11359
11520
|
constructor(opts = {}) {
|
|
11360
11521
|
this.schemas = {};
|
|
11361
11522
|
this.refs = {};
|
|
11362
|
-
this.formats =
|
|
11523
|
+
this.formats = /* @__PURE__ */ Object.create(null);
|
|
11363
11524
|
this._compilations = /* @__PURE__ */ new Set();
|
|
11364
11525
|
this._loading = {};
|
|
11365
11526
|
this._cache = /* @__PURE__ */ new Map();
|
|
@@ -12176,6 +12337,7 @@ var require_pattern2 = __commonJS({
|
|
|
12176
12337
|
init_esbuild_shims();
|
|
12177
12338
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12178
12339
|
var code_1 = require_code4();
|
|
12340
|
+
var util_1 = require_util2();
|
|
12179
12341
|
var codegen_1 = require_codegen2();
|
|
12180
12342
|
var error = {
|
|
12181
12343
|
message: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`, "message"),
|
|
@@ -12188,10 +12350,18 @@ var require_pattern2 = __commonJS({
|
|
|
12188
12350
|
$data: true,
|
|
12189
12351
|
error,
|
|
12190
12352
|
code(cxt) {
|
|
12191
|
-
const { data, $data, schema, schemaCode, it } = cxt;
|
|
12353
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
12192
12354
|
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
12193
|
-
|
|
12194
|
-
|
|
12355
|
+
if ($data) {
|
|
12356
|
+
const { regExp } = it.opts.code;
|
|
12357
|
+
const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
|
|
12358
|
+
const valid = gen.let("valid");
|
|
12359
|
+
gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
|
|
12360
|
+
cxt.fail$data((0, codegen_1._)`!${valid}`);
|
|
12361
|
+
} else {
|
|
12362
|
+
const regExp = (0, code_1.usePattern)(cxt, schema);
|
|
12363
|
+
cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
|
|
12364
|
+
}
|
|
12195
12365
|
}
|
|
12196
12366
|
};
|
|
12197
12367
|
exports.default = def;
|
|
@@ -15011,9 +15181,9 @@ var AgentStatistics = class {
|
|
|
15011
15181
|
const stats = this.getSummary(now);
|
|
15012
15182
|
const sr = stats.totalToolCalls > 0 ? stats.successRate ?? stats.successfulToolCalls / stats.totalToolCalls * 100 : 0;
|
|
15013
15183
|
const lines = [
|
|
15014
|
-
`\
|
|
15015
|
-
`\
|
|
15016
|
-
`\
|
|
15184
|
+
`\u25B8 Task Completed: ${taskDesc}`,
|
|
15185
|
+
`\u25CF Tool Usage: ${stats.totalToolCalls} calls${stats.totalToolCalls ? `, ${sr.toFixed(1)}% success` : ""}`,
|
|
15186
|
+
`\u25CF Duration: ${this.fmtDuration(stats.totalDurationMs)} | \u25CF Rounds: ${stats.rounds}`
|
|
15017
15187
|
];
|
|
15018
15188
|
if (typeof stats.totalTokens === "number") {
|
|
15019
15189
|
const parts = [
|
|
@@ -15021,7 +15191,7 @@ var AgentStatistics = class {
|
|
|
15021
15191
|
`out ${stats.outputTokens ?? 0}`
|
|
15022
15192
|
];
|
|
15023
15193
|
lines.push(
|
|
15024
|
-
`\
|
|
15194
|
+
`\u25CF Tokens: ${stats.totalTokens.toLocaleString()}${parts.length ? ` (${parts.join(", ")})` : ""}`
|
|
15025
15195
|
);
|
|
15026
15196
|
}
|
|
15027
15197
|
return lines.join("\n");
|
|
@@ -15030,23 +15200,23 @@ var AgentStatistics = class {
|
|
|
15030
15200
|
const stats = this.getSummary(now);
|
|
15031
15201
|
const sr = stats.totalToolCalls > 0 ? stats.successRate ?? stats.successfulToolCalls / stats.totalToolCalls * 100 : 0;
|
|
15032
15202
|
const lines = [];
|
|
15033
|
-
lines.push(`\
|
|
15203
|
+
lines.push(`\u25B8 Task Completed: ${taskDesc}`);
|
|
15034
15204
|
lines.push(
|
|
15035
|
-
`\
|
|
15205
|
+
`\u25CF Duration: ${this.fmtDuration(stats.totalDurationMs)} | \u25CF Rounds: ${stats.rounds}`
|
|
15036
15206
|
);
|
|
15037
15207
|
let quality = "Poor execution";
|
|
15038
15208
|
if (sr >= 95) quality = "Excellent execution";
|
|
15039
15209
|
else if (sr >= 85) quality = "Good execution";
|
|
15040
15210
|
else if (sr >= 70) quality = "Fair execution";
|
|
15041
|
-
lines.push(`\
|
|
15211
|
+
lines.push(`\u2713 Quality: ${quality} (${sr.toFixed(1)}% tool success)`);
|
|
15042
15212
|
const d = stats.totalDurationMs;
|
|
15043
15213
|
let speed = "Long execution - consider breaking down tasks";
|
|
15044
15214
|
if (d < 1e4) speed = "Fast completion - under 10 seconds";
|
|
15045
15215
|
else if (d < 6e4) speed = "Good speed - under a minute";
|
|
15046
15216
|
else if (d < 3e5) speed = "Moderate duration - a few minutes";
|
|
15047
|
-
lines.push(`\
|
|
15217
|
+
lines.push(`\u25CF Speed: ${speed}`);
|
|
15048
15218
|
lines.push(
|
|
15049
|
-
`\
|
|
15219
|
+
`\u25CF Tools: ${stats.totalToolCalls} calls, ${sr.toFixed(1)}% success (${stats.successfulToolCalls} ok, ${stats.failedToolCalls} failed)`
|
|
15050
15220
|
);
|
|
15051
15221
|
if (typeof stats.totalTokens === "number") {
|
|
15052
15222
|
const parts = [
|
|
@@ -15054,7 +15224,7 @@ var AgentStatistics = class {
|
|
|
15054
15224
|
`out ${stats.outputTokens ?? 0}`
|
|
15055
15225
|
];
|
|
15056
15226
|
lines.push(
|
|
15057
|
-
`\
|
|
15227
|
+
`\u25CF Tokens: ${stats.totalTokens.toLocaleString()} (${parts.join(", ")})`
|
|
15058
15228
|
);
|
|
15059
15229
|
}
|
|
15060
15230
|
if (stats.toolUsage && stats.toolUsage.length) {
|
|
@@ -15069,7 +15239,7 @@ var AgentStatistics = class {
|
|
|
15069
15239
|
}
|
|
15070
15240
|
const tips = this.generatePerformanceTips(stats);
|
|
15071
15241
|
if (tips.length) {
|
|
15072
|
-
lines.push("\n\
|
|
15242
|
+
lines.push("\n\u2605 Performance Insights:");
|
|
15073
15243
|
for (const tip of tips.slice(0, 3)) lines.push(` - ${tip}`);
|
|
15074
15244
|
}
|
|
15075
15245
|
return lines.join("\n");
|
|
@@ -15457,6 +15627,7 @@ var ToolNames = {
|
|
|
15457
15627
|
TASK_LIST: "task_list",
|
|
15458
15628
|
TEAM_CREATE: "team_create",
|
|
15459
15629
|
TEAM_DELETE: "team_delete",
|
|
15630
|
+
TEAM_PLAN_APPROVAL: "team_plan_approval",
|
|
15460
15631
|
SEND_MESSAGE: "send_message",
|
|
15461
15632
|
STRUCTURED_OUTPUT: "structured_output",
|
|
15462
15633
|
MONITOR: "monitor",
|
|
@@ -15501,6 +15672,7 @@ var ToolDisplayNames = {
|
|
|
15501
15672
|
TASK_LIST: "TaskList",
|
|
15502
15673
|
TEAM_CREATE: "TeamCreate",
|
|
15503
15674
|
TEAM_DELETE: "TeamDelete",
|
|
15675
|
+
TEAM_PLAN_APPROVAL: "TeamPlanApproval",
|
|
15504
15676
|
SEND_MESSAGE: "SendMessage",
|
|
15505
15677
|
STRUCTURED_OUTPUT: "StructuredOutput",
|
|
15506
15678
|
MONITOR: "Monitor",
|