@maincode-ai/matilda-code 0.21.12 → 0.21.13-nightly.20261027.e00306cd3
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/chunks/agent-H5JE3RJQ.js +3 -0
- package/chunks/agent-headless-H2JZZ7UV.js +3 -0
- package/chunks/{askUserQuestion-2QI4NSFJ.js → askUserQuestion-L3WDL2T4.js} +3 -3
- package/chunks/ca-UBWUTZVZ.js +25 -0
- package/chunks/chunk-4CVGYUEL.js +3 -0
- package/chunks/{chunk-RNKDFE2S.js → chunk-5B2QERWR.js} +1 -1
- package/chunks/chunk-62GTGPTP.js +8 -0
- package/chunks/chunk-6365AZBW.js +56 -0
- package/chunks/chunk-6PFK4XTH.js +207 -0
- package/chunks/chunk-7ZODGQO6.js +4 -0
- package/chunks/chunk-DB5LMKXU.js +31 -0
- package/chunks/chunk-EYZPVR7N.js +13 -0
- package/chunks/chunk-FKHUEFMK.js +8 -0
- package/chunks/{chunk-6T2GIM76.js → chunk-GILXFDEG.js} +1 -1
- package/chunks/{chunk-VTGICC67.js → chunk-GKEUZTOB.js} +1 -1
- package/chunks/chunk-GSRXW64P.js +120 -0
- package/chunks/chunk-GT6MSEK4.js +3 -0
- package/chunks/chunk-HEJO7OBH.js +3 -0
- package/chunks/chunk-HPO2YWG4.js +78 -0
- package/chunks/chunk-I3CV4LOD.js +8 -0
- package/chunks/{chunk-DOOFGSRV.js → chunk-J3AMKDX6.js} +1 -1
- package/chunks/chunk-JU7QTSKS.js +14 -0
- package/chunks/chunk-LBQNFSZ2.js +9 -0
- package/chunks/chunk-LOB42ODE.js +9 -0
- package/chunks/chunk-LVDDFAK4.js +89 -0
- package/chunks/{chunk-27Q5KW3A.js → chunk-NK2QMGCC.js} +13 -13
- package/chunks/{chunk-YRQP3SLC.js → chunk-O7VPFJ3R.js} +1 -1
- package/chunks/chunk-OBE5S4GG.js +9 -0
- package/chunks/{chunk-CZGZ3KK7.js → chunk-ONANBLIE.js} +1 -1
- package/chunks/chunk-QXSBPCBA.js +8 -0
- package/chunks/chunk-TUKNB5CQ.js +33 -0
- package/chunks/chunk-UM6CLO7D.js +7 -0
- package/chunks/chunk-V4D3LER3.js +2615 -0
- package/chunks/{chunk-HYVP4472.js → chunk-V6UPUMP3.js} +1 -1
- package/chunks/chunk-VUJRLLGL.js +8 -0
- package/chunks/{chunk-MCQUPLRE.js → chunk-WTU6GSZH.js} +1 -1
- package/chunks/chunk-XBTBZHRC.js +8 -0
- package/chunks/{chunk-WV3IUPZS.js → chunk-YTB3OFTT.js} +1 -1
- package/chunks/chunk-ZQKABJBB.js +8 -0
- package/chunks/chunk-ZSGBDQXU.js +11 -0
- package/chunks/{computer-use-WKDNUTLD.js → computer-use-N6KGNST6.js} +1 -1
- package/chunks/{cron-create-F2LXM2OA.js → cron-create-4XBY5RVI.js} +1 -1
- package/chunks/cron-delete-BH4VP3LX.js +3 -0
- package/chunks/cron-list-XXRFKNGM.js +5 -0
- package/chunks/de-LEEHWWJ2.js +25 -0
- package/chunks/{devtools-5JRKK3E7.js → devtools-7YNCRYZV.js} +1 -1
- package/chunks/{chunk-OOEH6ZSV.js → dist-UWUWLWTO.js} +2 -2
- package/chunks/{edit-QQNJZ55P.js → edit-6ULTLTJQ.js} +1 -1
- package/chunks/{en-EJLDYIBM.js → en-LNOIHFSQ.js} +4 -4
- package/chunks/{enter-worktree-5X5SAMBJ.js → enter-worktree-V2VANZYJ.js} +1 -1
- package/chunks/enterPlanMode-75H54S3Z.js +18 -0
- package/chunks/{exit-worktree-SRKZBEYF.js → exit-worktree-KPB32K6P.js} +1 -1
- package/chunks/{exitPlanMode-WSPTGGVN.js → exitPlanMode-K7JRP22Y.js} +2 -2
- package/chunks/fr-4TA2AIU6.js +25 -0
- package/chunks/{getMachineId-bsd-ZYBNK2JG.js → getMachineId-bsd-ETKQTB6C.js} +1 -1
- package/chunks/{getMachineId-darwin-CM2MQGUI.js → getMachineId-darwin-AKNRWOWB.js} +1 -1
- package/chunks/{getMachineId-linux-SYE2KMCW.js → getMachineId-linux-2QSD7FTP.js} +1 -1
- package/chunks/{getMachineId-unsupported-6IHVG2XO.js → getMachineId-unsupported-UXSV7I24.js} +1 -1
- package/chunks/{getMachineId-win-S3J3JSUM.js → getMachineId-win-4MTFXGP3.js} +1 -1
- package/chunks/glob-ACAIHWST.js +22 -0
- package/chunks/{goal-tools-C6BSBHCF.js → goal-tools-VPFXBI6M.js} +3 -3
- package/chunks/{grep-MVCOBUYW.js → grep-R4K75RXS.js} +1 -1
- package/chunks/{ja-GGNJR7AR.js → ja-VXDMQKRW.js} +5 -5
- package/chunks/keychain-token-storage-7VYNARRB.js +3 -0
- package/chunks/ls-4ZEICYPK.js +15 -0
- package/chunks/{lsp-DYDK6XCS.js → lsp-4US2RIIV.js} +1 -1
- package/chunks/mcp-client-ZKQFYCFN.js +3 -0
- package/chunks/monitor-KSNFIY54.js +32 -0
- package/chunks/{multipart-parser-JI75T2O5.js → multipart-parser-FKHYAVGR.js} +1 -1
- package/chunks/notebook-edit-655ZNV6Q.js +17 -0
- package/chunks/openaiContentGenerator-BG3OM453.js +52 -0
- package/chunks/pt-WEIMCOKI.js +25 -0
- package/chunks/read-file-4VSUKSRB.js +3 -0
- package/chunks/ripGrep-PNALN2GG.js +3 -0
- package/chunks/ru-WFLK34ZL.js +25 -0
- package/chunks/scheduler-AVYCIBEK.js +8 -0
- package/chunks/send-message-ND2SRKX5.js +8 -0
- package/chunks/shell-GUHQNOMZ.js +3 -0
- package/chunks/{skill-HZPFEAPF.js → skill-AB2X2DTC.js} +1 -1
- package/chunks/src-LZEU4AYF.js +5 -0
- package/chunks/symbol-search-VICSUEZH.js +19 -0
- package/chunks/{syntheticOutput-432LXITX.js → syntheticOutput-Z7DQKMRI.js} +1 -1
- package/chunks/task-create-BQ73FRTH.js +3 -0
- package/chunks/{task-detach-XMSJ3HBM.js → task-detach-JCHSLUOR.js} +1 -1
- package/chunks/task-list-6ESRFO5F.js +9 -0
- package/chunks/{task-stop-NTS62FLG.js → task-stop-74H2CPAJ.js} +1 -1
- package/chunks/{task-update-AR26UFYZ.js → task-update-R3BN6KPQ.js} +1 -1
- package/chunks/{team-create-PYXFVIR5.js → team-create-UTKRPUPZ.js} +3 -3
- package/chunks/team-delete-PCCGTLGL.js +8 -0
- package/chunks/todoWrite-BZI75DFV.js +3 -0
- package/chunks/{tool-search-RKZDSRYS.js → tool-search-FJ5MAPQ6.js} +1 -1
- package/chunks/{web-fetch-VW3SVDQ6.js → web-fetch-DEUGZQZS.js} +17 -17
- package/chunks/{web-search-XQUIZARL.js → web-search-PUUIEFJO.js} +3 -3
- package/chunks/{workflow-YXNXDRWZ.js → workflow-CBADL3IM.js} +2 -2
- package/chunks/write-file-QGCL2AJL.js +15 -0
- package/cli.js +644 -679
- package/examples/starter/README.md +0 -3
- package/locales/ca.js +1 -37
- package/locales/de.js +1 -42
- package/locales/en.js +1 -43
- package/locales/fr.js +1 -39
- package/locales/ja.js +1 -42
- package/locales/pt.js +1 -42
- package/locales/ru.js +1 -42
- package/package.json +2 -2
- package/sandbox-macos-permissive-closed.sb +0 -1
- package/sandbox-macos-permissive-open.sb +0 -1
- package/sandbox-macos-permissive-proxied.sb +1 -2
- package/sandbox-macos-restrictive-closed.sb +14 -2
- package/sandbox-macos-restrictive-open.sb +14 -2
- package/sandbox-macos-restrictive-proxied.sb +15 -3
- package/bundled/mainy/SKILL.md +0 -157
- package/bundled/mainy/docs/_meta.ts +0 -32
- package/bundled/mainy/docs/common-workflow.md +0 -571
- package/bundled/mainy/docs/configuration/_meta.ts +0 -7
- package/bundled/mainy/docs/configuration/auth.md +0 -82
- package/bundled/mainy/docs/configuration/matilda-ignore.md +0 -55
- package/bundled/mainy/docs/configuration/model-providers.md +0 -598
- package/bundled/mainy/docs/configuration/settings.md +0 -790
- package/bundled/mainy/docs/configuration/themes.md +0 -199
- package/bundled/mainy/docs/configuration/trusted-folders.md +0 -67
- package/bundled/mainy/docs/extension/_meta.ts +0 -9
- package/bundled/mainy/docs/extension/extension-releasing.md +0 -204
- package/bundled/mainy/docs/extension/getting-started-extensions.md +0 -299
- package/bundled/mainy/docs/extension/introduction.md +0 -338
- package/bundled/mainy/docs/features/_meta.ts +0 -27
- package/bundled/mainy/docs/features/approval-mode.md +0 -388
- package/bundled/mainy/docs/features/arena.md +0 -219
- package/bundled/mainy/docs/features/auto-mode.md +0 -308
- package/bundled/mainy/docs/features/channels/_meta.ts +0 -8
- package/bundled/mainy/docs/features/channels/dingtalk.md +0 -134
- package/bundled/mainy/docs/features/channels/feishu.md +0 -186
- package/bundled/mainy/docs/features/channels/overview.md +0 -336
- package/bundled/mainy/docs/features/channels/plugins.md +0 -87
- package/bundled/mainy/docs/features/channels/telegram.md +0 -120
- package/bundled/mainy/docs/features/channels/weixin.md +0 -106
- package/bundled/mainy/docs/features/code-review.md +0 -291
- package/bundled/mainy/docs/features/commands.md +0 -528
- package/bundled/mainy/docs/features/dual-output.md +0 -627
- package/bundled/mainy/docs/features/followup-suggestions.md +0 -109
- package/bundled/mainy/docs/features/headless.md +0 -448
- package/bundled/mainy/docs/features/hooks.md +0 -1306
- package/bundled/mainy/docs/features/language.md +0 -171
- package/bundled/mainy/docs/features/lsp.md +0 -496
- package/bundled/mainy/docs/features/markdown-rendering.md +0 -183
- package/bundled/mainy/docs/features/mcp.md +0 -423
- package/bundled/mainy/docs/features/memory.md +0 -185
- package/bundled/mainy/docs/features/sandbox.md +0 -249
- package/bundled/mainy/docs/features/scheduled-tasks.md +0 -139
- package/bundled/mainy/docs/features/skills.md +0 -347
- package/bundled/mainy/docs/features/status-line.md +0 -397
- package/bundled/mainy/docs/features/structured-output.md +0 -309
- package/bundled/mainy/docs/features/sub-agents.md +0 -737
- package/bundled/mainy/docs/features/tips.md +0 -54
- package/bundled/mainy/docs/features/token-caching.md +0 -29
- package/bundled/mainy/docs/features/tool-use-summaries.md +0 -178
- package/bundled/mainy/docs/features/worktree.md +0 -345
- package/bundled/mainy/docs/ide-integration/_meta.ts +0 -4
- package/bundled/mainy/docs/ide-integration/ide-companion-spec.md +0 -182
- package/bundled/mainy/docs/ide-integration/ide-integration.md +0 -144
- package/bundled/mainy/docs/integration-github-action.md +0 -241
- package/bundled/mainy/docs/integration-jetbrains.md +0 -81
- package/bundled/mainy/docs/integration-vscode.md +0 -39
- package/bundled/mainy/docs/integration-zed.md +0 -72
- package/bundled/mainy/docs/matilda-serve-deploy-local.md +0 -221
- package/bundled/mainy/docs/matilda-serve.md +0 -661
- package/bundled/mainy/docs/overview.md +0 -64
- package/bundled/mainy/docs/quickstart.md +0 -234
- package/bundled/mainy/docs/reference/_meta.ts +0 -3
- package/bundled/mainy/docs/reference/keyboard-shortcuts.md +0 -91
- package/bundled/mainy/docs/support/Uninstall.md +0 -65
- package/bundled/mainy/docs/support/_meta.ts +0 -6
- package/bundled/mainy/docs/support/tos-privacy.md +0 -94
- package/bundled/mainy/docs/support/troubleshooting.md +0 -127
- package/chunks/agent-WM63A6NK.js +0 -3
- package/chunks/agent-headless-QIUBDKPW.js +0 -3
- package/chunks/anthropicContentGenerator-VKFTAIU3.js +0 -39
- package/chunks/ca-I2HEEIL7.js +0 -25
- package/chunks/chunk-2HTPVSGT.js +0 -3
- package/chunks/chunk-2MOGYHWM.js +0 -8
- package/chunks/chunk-3IRGBRSP.js +0 -113
- package/chunks/chunk-3YLXGE6T.js +0 -8
- package/chunks/chunk-47XR7IMP.js +0 -8
- package/chunks/chunk-4F4DA5UI.js +0 -8
- package/chunks/chunk-4J6DC24J.js +0 -59
- package/chunks/chunk-4Q2SNBUH.js +0 -18
- package/chunks/chunk-5C2RJ5RR.js +0 -37
- package/chunks/chunk-6E766NPX.js +0 -31
- package/chunks/chunk-6EQMZNIY.js +0 -8
- package/chunks/chunk-6GBNB5Z2.js +0 -3
- package/chunks/chunk-6Z2MV7ZY.js +0 -186
- package/chunks/chunk-BVOCFLC4.js +0 -56
- package/chunks/chunk-CSJTA7NE.js +0 -101
- package/chunks/chunk-DC7LAFZZ.js +0 -8
- package/chunks/chunk-DE3HKC2W.js +0 -9
- package/chunks/chunk-EQGA7LH7.js +0 -30
- package/chunks/chunk-FPO57O66.js +0 -39
- package/chunks/chunk-FWDMPRKU.js +0 -3
- package/chunks/chunk-G7R2XEEF.js +0 -7
- package/chunks/chunk-GOJCMVJJ.js +0 -8
- package/chunks/chunk-GTVCJCHR.js +0 -8
- package/chunks/chunk-JCE3JAVC.js +0 -25
- package/chunks/chunk-JRECUFB3.js +0 -2630
- package/chunks/chunk-KHHJYBR5.js +0 -9
- package/chunks/chunk-LJR4RZZ2.js +0 -3
- package/chunks/chunk-LUNDTQ3G.js +0 -8
- package/chunks/chunk-M53RP3YP.js +0 -31
- package/chunks/chunk-MO2HXJG5.js +0 -9
- package/chunks/chunk-MTMU7JYZ.js +0 -11
- package/chunks/chunk-O44XK65C.js +0 -8
- package/chunks/chunk-OA56BXPD.js +0 -3
- package/chunks/chunk-PA6532AY.js +0 -6
- package/chunks/chunk-PGXQZVLX.js +0 -8
- package/chunks/chunk-QKYGQLWC.js +0 -8
- package/chunks/chunk-QN6Y6NPA.js +0 -3
- package/chunks/chunk-QVCGLQCI.js +0 -32
- package/chunks/chunk-S3CWEVTS.js +0 -15
- package/chunks/chunk-SDTWBD62.js +0 -8
- package/chunks/chunk-T2T2UEPY.js +0 -4
- package/chunks/chunk-TISQNFB5.js +0 -3
- package/chunks/chunk-U347OO7S.js +0 -9
- package/chunks/chunk-UIRBHC5X.js +0 -3
- package/chunks/chunk-VI74YQQO.js +0 -8
- package/chunks/chunk-VYZOOSMP.js +0 -30
- package/chunks/chunk-WC2VTVCE.js +0 -27
- package/chunks/chunk-WVY2P6WH.js +0 -26
- package/chunks/chunk-WZ75OGYY.js +0 -14
- package/chunks/chunk-XMZIY7XX.js +0 -13
- package/chunks/chunk-YJAKOETP.js +0 -22
- package/chunks/chunk-YV3PUOBU.js +0 -65
- package/chunks/contextCommand-DAB3HOHY.js +0 -3
- package/chunks/cron-delete-DE6Q2S2L.js +0 -3
- package/chunks/cron-list-IAQEJVV7.js +0 -5
- package/chunks/de-AQXFJYZI.js +0 -25
- package/chunks/dist-7UYRLSLE.js +0 -3
- package/chunks/dist-ME6647DQ.js +0 -195
- package/chunks/dist-P6SLWL5V.js +0 -42
- package/chunks/dist-VG3ZDJ2A.js +0 -28
- package/chunks/dist-YTCHM57U.js +0 -23
- package/chunks/enterPlanMode-HP35SPLN.js +0 -18
- package/chunks/fileFromPath-7UCWPD4W.js +0 -3
- package/chunks/fr-6TDHK7F2.js +0 -25
- package/chunks/geminiContentGenerator-RJ73DQAP.js +0 -8
- package/chunks/glob-QQ6LGKDX.js +0 -22
- package/chunks/keychain-token-storage-KQK6MNOJ.js +0 -3
- package/chunks/ls-JYJXFSXN.js +0 -15
- package/chunks/matildaAgentContentGenerator-YUYS4336.js +0 -8
- package/chunks/matildaContentGenerator-O4Z2QPCP.js +0 -8
- package/chunks/matildaOAuth2-7COTQQR2.js +0 -3
- package/chunks/mcp-client-RXVQU5VI.js +0 -3
- package/chunks/monitor-77KXDXPR.js +0 -32
- package/chunks/notebook-edit-TKJD2EQZ.js +0 -17
- package/chunks/openaiContentGenerator-2EALAM3U.js +0 -3
- package/chunks/pt-D6L2QTDM.js +0 -25
- package/chunks/read-file-3KUAH6ND.js +0 -3
- package/chunks/ripGrep-U2PLKXMY.js +0 -3
- package/chunks/ru-BNJCHDYO.js +0 -25
- package/chunks/scheduler-J7VU2V5Y.js +0 -8
- package/chunks/send-message-P3SMWNEE.js +0 -8
- package/chunks/serve-FXH6EBQ6.js +0 -1015
- package/chunks/shell-PXR2AXDD.js +0 -3
- package/chunks/src-RFAEPLY7.js +0 -3
- package/chunks/src-WZTRMETQ.js +0 -5
- package/chunks/symbol-search-EAIZPWN7.js +0 -19
- package/chunks/task-create-Z3QRCMX4.js +0 -3
- package/chunks/task-list-GXAJW3JP.js +0 -9
- package/chunks/team-delete-OMYVUAQU.js +0 -8
- package/chunks/todoWrite-5NZ7CHTC.js +0 -3
- package/chunks/write-file-XDDLTGSG.js +0 -15
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{b as S}from"./chunk-GZPNIYVZ.js";import{a as j,d as k}from"./chunk-OWGSC52X.js";var De=k((Gt,Le)=>{S();var U=j("constants"),ot=process.cwd,te=null,at=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return te||(te=ot.call(process)),te};try{process.cwd()}catch{}typeof process.chdir=="function"&&(me=process.chdir,process.chdir=function(e){te=null,me.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,me));var me;Le.exports=ct;function ct(e){U.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=u(e.chmodSync),e.fchmodSync=u(e.fchmodSync),e.lchmodSync=u(e.lchmodSync),e.stat=m(e.stat),e.fstat=m(e.fstat),e.lstat=m(e.lstat),e.statSync=E(e.statSync),e.fstatSync=E(e.fstatSync),e.lstatSync=E(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(i,h,c){c&&process.nextTick(c)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(i,h,c,a){a&&process.nextTick(a)},e.lchownSync=function(){}),at==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(i){function h(c,a,l){var _=Date.now(),d=0;i(c,a,function O(C){if(C&&(C.code==="EACCES"||C.code==="EPERM"||C.code==="EBUSY")&&Date.now()-_<6e4){setTimeout(function(){e.stat(a,function(P,X){P&&P.code==="ENOENT"?i(c,a,O):l(C)})},d),d<100&&(d+=10);return}l&&l(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,i),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(i){function h(c,a,l,_,d,O){var C;if(O&&typeof O=="function"){var P=0;C=function(X,Ie,Fe){if(X&&X.code==="EAGAIN"&&P<10)return P++,i.call(e,c,a,l,_,d,C);O.apply(this,arguments)}}return i.call(e,c,a,l,_,d,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,i),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(i){return function(h,c,a,l,_){for(var d=0;;)try{return i.call(e,h,c,a,l,_)}catch(O){if(O.code==="EAGAIN"&&d<10){d++;continue}throw O}}}(e.readSync);function t(i){i.lchmod=function(h,c,a){i.open(h,U.O_WRONLY|U.O_SYMLINK,c,function(l,_){if(l){a&&a(l);return}i.fchmod(_,c,function(d){i.close(_,function(O){a&&a(d||O)})})})},i.lchmodSync=function(h,c){var a=i.openSync(h,U.O_WRONLY|U.O_SYMLINK,c),l=!0,_;try{_=i.fchmodSync(a,c),l=!1}finally{if(l)try{i.closeSync(a)}catch{}else i.closeSync(a)}return _}}function r(i){U.hasOwnProperty("O_SYMLINK")&&i.futimes?(i.lutimes=function(h,c,a,l){i.open(h,U.O_SYMLINK,function(_,d){if(_){l&&l(_);return}i.futimes(d,c,a,function(O){i.close(d,function(C){l&&l(O||C)})})})},i.lutimesSync=function(h,c,a){var l=i.openSync(h,U.O_SYMLINK),_,d=!0;try{_=i.futimesSync(l,c,a),d=!1}finally{if(d)try{i.closeSync(l)}catch{}else i.closeSync(l)}return _}):i.futimes&&(i.lutimes=function(h,c,a,l){l&&process.nextTick(l)},i.lutimesSync=function(){})}function n(i){return i&&function(h,c,a){return i.call(e,h,c,function(l){F(l)&&(l=null),a&&a.apply(this,arguments)})}}function u(i){return i&&function(h,c){try{return i.call(e,h,c)}catch(a){if(!F(a))throw a}}}function o(i){return i&&function(h,c,a,l){return i.call(e,h,c,a,function(_){F(_)&&(_=null),l&&l.apply(this,arguments)})}}function s(i){return i&&function(h,c,a){try{return i.call(e,h,c,a)}catch(l){if(!F(l))throw l}}}function m(i){return i&&function(h,c,a){typeof c=="function"&&(a=c,c=null);function l(_,d){d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),a&&a.apply(this,arguments)}return c?i.call(e,h,c,l):i.call(e,h,l)}}function E(i){return i&&function(h,c){var a=c?i.call(e,h,c):i.call(e,h);return a&&(a.uid<0&&(a.uid+=4294967296),a.gid<0&&(a.gid+=4294967296)),a}}function F(i){if(!i||i.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(i.code==="EINVAL"||i.code==="EPERM"))}}});var Me=k((jt,be)=>{S();var Ne=j("stream").Stream;be.exports=ft;function ft(e){return{ReadStream:t,WriteStream:r};function t(n,u){if(!(this instanceof t))return new t(n,u);Ne.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,u=u||{};for(var s=Object.keys(u),m=0,E=s.length;m<E;m++){var F=s[m];this[F]=u[F]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(i,h){if(i){o.emit("error",i),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,u){if(!(this instanceof r))return new r(n,u);Ne.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,u=u||{};for(var o=Object.keys(u),s=0,m=o.length;s<m;s++){var E=o[s];this[E]=u[E]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Pe=k((At,Re)=>{"use strict";S();Re.exports=st;var lt=Object.getPrototypeOf||function(e){return e.__proto__};function st(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:lt(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var ve=k(($t,de)=>{S();var x=j("fs"),ht=De(),mt=Me(),pt=Pe(),re=j("util"),R,ie;typeof Symbol=="function"&&typeof Symbol.for=="function"?(R=Symbol.for("graceful-fs.queue"),ie=Symbol.for("graceful-fs.previous")):(R="___graceful-fs.queue",ie="___graceful-fs.previous");function yt(){}function Ge(e,t){Object.defineProperty(e,R,{get:function(){return t}})}var W=yt;re.debuglog?W=re.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(W=function(){var e=re.format.apply(re,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
4
|
+
GFS4: `),console.error(e)});x[R]||(Ce=globalThis[R]||[],Ge(x,Ce),x.close=function(e){function t(r,n){return e.call(x,r,function(u){u||ke(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,ie,{value:e}),t}(x.close),x.closeSync=function(e){function t(r){e.apply(x,arguments),ke()}return Object.defineProperty(t,ie,{value:e}),t}(x.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){W(x[R]),j("assert").equal(x[R].length,0)}));var Ce;globalThis[R]||Ge(globalThis,x[R]);de.exports=pe(pt(x));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!x.__patched&&(de.exports=pe(x),x.__patched=!0);function pe(e){ht(e),e.gracefulify=pe,e.createReadStream=Ie,e.createWriteStream=Fe;var t=e.readFile;e.readFile=r;function r(f,y,p){return typeof y=="function"&&(p=y,y=null),N(f,y,p);function N(b,L,g,I){return t(b,L,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?B([N,[b,L,g],v,I||Date.now(),Date.now()]):typeof g=="function"&&g.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=u;function u(f,y,p,N){return typeof p=="function"&&(N=p,p=null),b(f,y,p,N);function b(L,g,I,v,M){return n(L,g,I,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?B([b,[L,g,I,v],w,M||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(f,y,p,N){return typeof p=="function"&&(N=p,p=null),b(f,y,p,N);function b(L,g,I,v,M){return o(L,g,I,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?B([b,[L,g,I,v],w,M||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var m=e.copyFile;m&&(e.copyFile=E);function E(f,y,p,N){return typeof p=="function"&&(N=p,p=0),b(f,y,p,N);function b(L,g,I,v,M){return m(L,g,I,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?B([b,[L,g,I,v],w,M||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var F=e.readdir;e.readdir=h;var i=/^v[0-5]\./;function h(f,y,p){typeof y=="function"&&(p=y,y=null);var N=i.test(process.version)?function(g,I,v,M){return F(g,b(g,I,v,M))}:function(g,I,v,M){return F(g,I,b(g,I,v,M))};return N(f,y,p);function b(L,g,I,v){return function(M,w){M&&(M.code==="EMFILE"||M.code==="ENFILE")?B([N,[L,g,I],M,v||Date.now(),Date.now()]):(w&&w.sort&&w.sort(),typeof I=="function"&&I.call(this,M,w))}}}if(process.version.substr(0,4)==="v0.8"){var c=mt(e);O=c.ReadStream,P=c.WriteStream}var a=e.ReadStream;a&&(O.prototype=Object.create(a.prototype),O.prototype.open=C);var l=e.WriteStream;l&&(P.prototype=Object.create(l.prototype),P.prototype.open=X),Object.defineProperty(e,"ReadStream",{get:function(){return O},set:function(f){O=f},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return P},set:function(f){P=f},enumerable:!0,configurable:!0});var _=O;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(f){_=f},enumerable:!0,configurable:!0});var d=P;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(f){d=f},enumerable:!0,configurable:!0});function O(f,y){return this instanceof O?(a.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function C(){var f=this;he(f.path,f.flags,f.mode,function(y,p){y?(f.autoClose&&f.destroy(),f.emit("error",y)):(f.fd=p,f.emit("open",p),f.read())})}function P(f,y){return this instanceof P?(l.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function X(){var f=this;he(f.path,f.flags,f.mode,function(y,p){y?(f.destroy(),f.emit("error",y)):(f.fd=p,f.emit("open",p))})}function Ie(f,y){return new e.ReadStream(f,y)}function Fe(f,y){return new e.WriteStream(f,y)}var ut=e.open;e.open=he;function he(f,y,p,N){return typeof p=="function"&&(N=p,p=null),b(f,y,p,N);function b(L,g,I,v,M){return ut(L,g,I,function(w,kt){w&&(w.code==="EMFILE"||w.code==="ENFILE")?B([b,[L,g,I,v],w,M||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}return e}function B(e){W("ENQUEUE",e[0].name,e[1]),x[R].push(e),ye()}var ne;function ke(){for(var e=Date.now(),t=0;t<x[R].length;++t)x[R][t].length>2&&(x[R][t][3]=e,x[R][t][4]=e);ye()}function ye(){if(clearTimeout(ne),ne=void 0,x[R].length!==0){var e=x[R].shift(),t=e[0],r=e[1],n=e[2],u=e[3],o=e[4];if(u===void 0)W("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-u>=6e4){W("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var m=Date.now()-o,E=Math.max(o-u,1),F=Math.min(E*1.2,100);m>=F?(W("RETRY",t.name,r),t.apply(null,r.concat([u]))):x[R].push(e)}ne===void 0&&(ne=setTimeout(ye,0))}}});var je=k((Kt,qe)=>{S();function G(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}qe.exports=G;G.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};G.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};G.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,u=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&u.unref(),!0};G.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};G.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};G.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};G.prototype.start=G.prototype.try;G.prototype.errors=function(){return this._errors};G.prototype.attempts=function(){return this._attempts};G.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var u=this._errors[n],o=u.message,s=(e[o]||0)+1;e[o]=s,s>=r&&(t=u,r=s)}return t}});var Ue=k($=>{S();var dt=je();$.operation=function(e){var t=$.timeouts(e);return new dt(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};$.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],u=0;u<t.retries;u++)n.push(this.createTimeout(u,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(u,t)),n.sort(function(o,s){return o-s}),n};$.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};$.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var u=0;u<r.length;u++){var o=r[u],s=e[o];e[o]=function(E){var F=$.operation(t),i=Array.prototype.slice.call(arguments,1),h=i.pop();i.push(function(c){F.retry(c)||(c&&(arguments[0]=F.mainError()),h.apply(this,arguments))}),F.attempt(function(){E.apply(e,i)})}.bind(e,s),e[o].options=t}}});var We=k((Ht,Ae)=>{S();Ae.exports=Ue()});var $e=k((Xt,ue)=>{S();ue.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ue.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ue.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ze=k((Zt,H)=>{S();var T=globalThis.process,Y=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Y(T)?(Ye=j("assert"),Q=$e(),Ke=/^win/i.test(T.platform),J=j("events"),typeof J!="function"&&(J=J.EventEmitter),T.__signal_exit_emitter__?D=T.__signal_exit_emitter__:(D=T.__signal_exit_emitter__=new J,D.count=0,D.emitted={}),D.infinite||(D.setMaxListeners(1/0),D.infinite=!0),H.exports=function(e,t){if(!Y(globalThis.process))return function(){};Ye.equal(typeof e,"function","a callback must be provided for exit handler"),z===!1&&Se();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){D.removeListener(r,e),D.listeners("exit").length===0&&D.listeners("afterexit").length===0&&oe()};return D.on(r,e),n},oe=function(){!z||!Y(globalThis.process)||(z=!1,Q.forEach(function(t){try{T.removeListener(t,ae[t])}catch{}}),T.emit=ce,T.reallyExit=_e,D.count-=1)},H.exports.unload=oe,K=function(t,r,n){D.emitted[t]||(D.emitted[t]=!0,D.emit(t,r,n))},ae={},Q.forEach(function(e){ae[e]=function(){if(Y(globalThis.process)){var r=T.listeners(e);r.length===D.count&&(oe(),K("exit",null,e),K("afterexit",null,e),Ke&&e==="SIGHUP"&&(e="SIGINT"),T.kill(T.pid,e))}}}),H.exports.signals=function(){return Q},z=!1,Se=function(){z||!Y(globalThis.process)||(z=!0,D.count+=1,Q=Q.filter(function(t){try{return T.on(t,ae[t]),!0}catch{return!1}}),T.emit=Qe,T.reallyExit=Be)},H.exports.load=Se,_e=T.reallyExit,Be=function(t){Y(globalThis.process)&&(T.exitCode=t||0,K("exit",T.exitCode,null),K("afterexit",T.exitCode,null),_e.call(T,T.exitCode))},ce=T.emit,Qe=function(t,r){if(t==="exit"&&Y(globalThis.process)){r!==void 0&&(T.exitCode=r);var n=ce.apply(this,arguments);return K("exit",T.exitCode,null),K("afterexit",T.exitCode,null),n}else return ce.apply(this,arguments)}):H.exports=function(){return function(){}};var Ye,Q,Ke,J,D,oe,K,ae,z,Se,_e,Be,ce,Qe});var Ve=k((tr,we)=>{"use strict";S();var He=Symbol();function vt(e,t,r){let n=t[He];if(n)return t.stat(e,(o,s)=>{if(o)return r(o);r(null,s.mtime,n)});let u=new Date(Math.ceil(Date.now()/1e3)*1e3+5);t.utimes(e,u,u,o=>{if(o)return r(o);t.stat(e,(s,m)=>{if(s)return r(s);let E=m.mtime.getTime()%1e3===0?"s":"ms";Object.defineProperty(t,He,{value:E}),r(null,m.mtime,E)})})}function St(e){let t=Date.now();return e==="s"&&(t=Math.ceil(t/1e3)*1e3),new Date(t)}we.exports.probe=vt;we.exports.getMtime=St});var tt=k((nr,ee)=>{"use strict";S();var _t=j("path"),Oe=ve(),wt=We(),Tt=ze(),Xe=Ve(),q={};function Z(e,t){return t.lockfilePath||`${e}.lock`}function ge(e,t,r){if(!t.realpath)return r(null,_t.resolve(e));t.fs.realpath(e,r)}function Ee(e,t,r){let n=Z(e,t);t.fs.mkdir(n,u=>{if(!u)return Xe.probe(n,t.fs,(o,s,m)=>{if(o)return t.fs.rmdir(n,()=>{}),r(o);r(null,s,m)});if(u.code!=="EEXIST")return r(u);if(t.stale<=0)return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:e}));t.fs.stat(n,(o,s)=>{if(o)return o.code==="ENOENT"?Ee(e,{...t,stale:0},r):r(o);if(!Je(s,t))return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:e}));Ze(e,t,m=>{if(m)return r(m);Ee(e,{...t,stale:0},r)})})})}function Je(e,t){return e.mtime.getTime()<Date.now()-t.stale}function Ze(e,t,r){t.fs.rmdir(Z(e,t),n=>{if(n&&n.code!=="ENOENT")return r(n);r()})}function fe(e,t){let r=q[e];r.updateTimeout||(r.updateDelay=r.updateDelay||t.update,r.updateTimeout=setTimeout(()=>{r.updateTimeout=null,t.fs.stat(r.lockfilePath,(n,u)=>{let o=r.lastUpdate+t.stale<Date.now();if(n)return n.code==="ENOENT"||o?Te(e,r,Object.assign(n,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,fe(e,t));if(!(r.mtime.getTime()===u.mtime.getTime()))return Te(e,r,Object.assign(new Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let m=Xe.getMtime(r.mtimePrecision);t.fs.utimes(r.lockfilePath,m,m,E=>{let F=r.lastUpdate+t.stale<Date.now();if(!r.released){if(E)return E.code==="ENOENT"||F?Te(e,r,Object.assign(E,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,fe(e,t));r.mtime=m,r.lastUpdate=Date.now(),r.updateDelay=null,fe(e,t)}})})},r.updateDelay),r.updateTimeout.unref&&r.updateTimeout.unref())}function Te(e,t,r){t.released=!0,t.updateTimeout&&clearTimeout(t.updateTimeout),q[e]===t&&delete q[e],t.options.onCompromised(r)}function Et(e,t,r){t={stale:1e4,update:null,realpath:!0,retries:0,fs:Oe,onCompromised:n=>{throw n},...t},t.retries=t.retries||0,t.retries=typeof t.retries=="number"?{retries:t.retries}:t.retries,t.stale=Math.max(t.stale||0,2e3),t.update=t.update==null?t.stale/2:t.update||0,t.update=Math.max(Math.min(t.update,t.stale/2),1e3),ge(e,t,(n,u)=>{if(n)return r(n);let o=wt.operation(t.retries);o.attempt(()=>{Ee(u,t,(s,m,E)=>{if(o.retry(s))return;if(s)return r(o.mainError());let F=q[u]={lockfilePath:Z(u,t),mtime:m,mtimePrecision:E,options:t,lastUpdate:Date.now()};fe(u,t),r(null,i=>{if(F.released)return i&&i(Object.assign(new Error("Lock is already released"),{code:"ERELEASED"}));et(u,{...t,realpath:!1},i)})})})})}function et(e,t,r){t={fs:Oe,realpath:!0,...t},ge(e,t,(n,u)=>{if(n)return r(n);let o=q[u];if(!o)return r(Object.assign(new Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete q[u],Ze(u,t,r)})}function Ot(e,t,r){t={stale:1e4,realpath:!0,fs:Oe,...t},t.stale=Math.max(t.stale||0,2e3),ge(e,t,(n,u)=>{if(n)return r(n);t.fs.stat(Z(u,t),(o,s)=>o?o.code==="ENOENT"?r(null,!1):r(o):r(null,!Je(s,t)))})}function gt(){return q}Tt(()=>{for(let e in q){let t=q[e].options;try{t.fs.rmdirSync(Z(e,t))}catch{}}});ee.exports.lock=Et;ee.exports.unlock=et;ee.exports.check=Ot;ee.exports.getLocks=gt});var nt=k((ur,rt)=>{"use strict";S();var xt=ve();function It(e){let t=["mkdir","realpath","stat","rmdir","utimes"],r={...e};return t.forEach(n=>{r[n]=(...u)=>{let o=u.pop(),s;try{s=e[`${n}Sync`](...u)}catch(m){return o(m)}o(null,s)}}),r}function Ft(e){return(...t)=>new Promise((r,n)=>{t.push((u,o)=>{u?n(u):r(o)}),e(...t)})}function Lt(e){return(...t)=>{let r,n;if(t.push((u,o)=>{r=u,n=o}),e(...t),r)throw r;return n}}function Dt(e){if(e={...e},e.fs=It(e.fs||xt),typeof e.retries=="number"&&e.retries>0||e.retries&&typeof e.retries.retries=="number"&&e.retries.retries>0)throw Object.assign(new Error("Cannot use retries with the sync api"),{code:"ESYNC"});return e}rt.exports={toPromise:Ft,toSync:Lt,toSyncOptions:Dt}});var Ct=k((ar,A)=>{"use strict";S();var V=tt(),{toPromise:le,toSync:se,toSyncOptions:xe}=nt();async function it(e,t){let r=await le(V.lock)(e,t);return le(r)}function Nt(e,t){let r=se(V.lock)(e,xe(t));return se(r)}function bt(e,t){return le(V.unlock)(e,t)}function Mt(e,t){return se(V.unlock)(e,xe(t))}function Rt(e,t){return le(V.check)(e,t)}function Pt(e,t){return se(V.check)(e,xe(t))}A.exports=it;A.exports.lock=it;A.exports.unlock=bt;A.exports.lockSync=Nt;A.exports.unlockSync=Mt;A.exports.check=Rt;A.exports.checkSync=Pt});export{ve as a,Ct as b};
|