Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
chore: set up Vitest testing framework
Jiayuan7215a15e37e2
diff --git a/.gitignore b/.gitignoreindex 118f0f6f14..b37aaae0bf 100644--- a/.gitignore+++ b/.gitignore@@ -21,3 +21,6 @@ release*.apk*.ipamonorepo.md++# test coverage+coveragediff --git a/package.json b/package.jsonindex dd93b11056..dc40264f7a 100644--- a/package.json+++ b/package.json@@ -16,7 +16,10 @@"build": "turbo build","build:sdk": "pnpm --filter @multica/sdk build","start": "node dist/index.js",- "typecheck": "turbo typecheck"+ "typecheck": "turbo typecheck",+ "test": "vitest run",+ "test:watch": "vitest",+ "test:coverage": "vitest run --coverage"},"keywords": [],"author": "",@@ -26,9 +29,11 @@"@types/node": "catalog:","@types/turndown": "^5.0.6","@types/uuid": "^11.0.0",+ "@vitest/coverage-v8": "^4.0.18","tsx": "^4.21.0","turbo": "^2.3.4",- "typescript": "catalog:"+ "typescript": "catalog:",+ "vitest": "^4.0.18"},"dependencies": {"@mariozechner/pi-agent-core": "^0.50.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ca1c875c43..2efb22a74c 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -34,13 +34,13 @@ importers:dependencies:'@mariozechner/pi-agent-core':specifier: ^0.50.3- version: 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])+ version: 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])'@mariozechner/pi-ai':specifier: ^0.50.3- version: 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])+ version: 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])'@mariozechner/pi-coding-agent':specifier: ^0.50.3- version: 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])+ version: 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])'@mozilla/readability':specifier: ^0.6.0version: 0.6.0@@ -117,6 +117,9 @@ importers:'@types/uuid':specifier: ^11.0.0version: 11.0.0+ '@vitest/coverage-v8':+ specifier: ^4.0.18+ version: 4.0.18([email protected](@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]))tsx:specifier: ^4.21.0version: 4.21.0@@ -126,6 +129,9 @@ importers:typescript:specifier: 'catalog:'version: 5.9.3+ vitest:+ specifier: ^4.0.18+ version: 4.0.18(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])apps/desktop:dependencies:@@ -643,6 +649,10 @@ packages:'@types/react':optional: true+ '@bcoe/[email protected]':+ resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==}+ engines: {node: '>=18'}+'@borewit/[email protected]':resolution: {integrity: sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==}@@ -1930,6 +1940,9 @@ packages:'@socket.io/[email protected]':resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}+ '@standard-schema/[email protected]':+ resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}+'@swc/[email protected]':resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}@@ -2065,12 +2078,18 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}+'@types/[email protected]':resolution: {integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==}'@types/[email protected]':resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}+'@types/[email protected]':resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}@@ -2355,6 +2374,44 @@ packages:peerDependencies:vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0+ '@vitest/[email protected]':+ resolution: {integrity: sha512-7i+N2i0+ME+2JFZhfuz7Tg/FqKtilHjGyGvoHYQ6iLV0zahbsJ9sljC9OcFcPDbhYKCet+sG8SsVqlyGvPflZg==}+ peerDependencies:+ '@vitest/browser': 4.0.18+ vitest: 4.0.18+ peerDependenciesMeta:+ '@vitest/browser':+ optional: true++ '@vitest/[email protected]':+ resolution: {integrity: sha512-8sCWUyckXXYvx4opfzVY03EOiYVxyNrHS5QxX3DAIi5dpJAAkyJezHCP77VMX4HKA2LDT/Jpfo8i2r5BE3GnQQ==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-HhVd0MDnzzsgevnOWCBj5Otnzobjy5wLBe4EdeeFGv8luMsGcYqDuFRMcttKWZA5vVO8RFjexVovXvAM4JoJDQ==}+ peerDependencies:+ msw: ^2.4.9+ vite: ^6.0.0 || ^7.0.0-0+ peerDependenciesMeta:+ msw:+ optional: true+ vite:+ optional: true++ '@vitest/[email protected]':+ resolution: {integrity: sha512-P24GK3GulZWC5tz87ux0m8OADrQIUVDPIjjj65vBXYG17ZeU3qD7r+MNZ1RNv4l8CGU2vtTRqixrOi9fYk/yKw==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-rpk9y12PGa22Jg6g5M3UVVnTS7+zycIGk9ZNGN+m6tZHKQb7jrP7/77WfZy13Y/EUDd52NDsLRQhYKtv7XfPQw==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-PCiV0rcl7jKQjbgYqjtakly6T1uwv/5BQ9SwBLekVg/EaYeQFPiXcgrC2Y7vDMA8dM1SUEAEV82kgSQIlXNMvA==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-cbQt3PTSD7P2OARdVW3qWER5EGq7PHlvE+QfzSC0lbwO+xnt7+XH06ZzFjFRgzUX//JmpxrCu92VdwvEPlWSNw==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA==}+'@xmldom/[email protected]':resolution: {integrity: sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==}engines: {node: '>=10.0.0'}@@ -2499,6 +2556,10 @@ packages:resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==}engines: {node: '>=0.8'}+ resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}@@ -2510,6 +2571,9 @@ packages:resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}engines: {node: '>=4'}+ resolution: {integrity: sha512-p4K7vMz2ZSk3wN8l5o3y2bJAoZXT3VuJI5OLTATY/01CYWumWvwkUw0SqDBnNq6IiTO3qDa1eSQDibAV8g7XOQ==}+resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==}engines: {node: '>=8'}@@ -2669,6 +2733,10 @@ packages:resolution: {integrity: sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==}+ resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}engines: {node: '>=10'}@@ -3123,6 +3191,9 @@ packages:resolution: {integrity: sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}+resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}engines: {node: '>= 0.4'}@@ -3310,6 +3381,9 @@ packages:resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}engines: {node: '>=4.0'}+ resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}+resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}@@ -3334,6 +3408,10 @@ packages:resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==}engines: {node: ^18.19.0 || >=20.5.0}+ resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==}engines: {node: '>= 16'}@@ -3702,6 +3780,9 @@ packages:resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==}engines: {node: '>=10'}+ resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}+resolution: {integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==}@@ -3989,6 +4070,18 @@ packages:resolution: {integrity: sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==}engines: {node: '>=16'}+ resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==}engines: {node: '>=6'}@@ -4023,6 +4116,9 @@ packages:resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}+ resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}+resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}hasBin: true@@ -4258,6 +4354,13 @@ packages:resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}+ resolution: {integrity: sha512-xrHS24IxaLrvuo613F719wvOIv9xPHFWQHuvGUBmPnCA/3MQxKI3b+r7n1jAoDHmsbC5bRhTZYR77invLAxVnw==}++ resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==}engines: {node: '>= 18'}@@ -4527,6 +4630,9 @@ packages:resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}+resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==}engines: {node: '>=14.0.0'}@@ -4671,6 +4777,9 @@ packages:resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}+resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}@@ -5040,6 +5149,9 @@ packages:resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}+resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}@@ -5113,6 +5225,9 @@ packages:resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==}+ resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}+resolution: {integrity: sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==}engines: {node: '>= 6'}@@ -5290,6 +5405,9 @@ packages:resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}+ resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}+resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==}engines: {node: '>=18'}@@ -5298,6 +5416,10 @@ packages:resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q==}+ engines: {node: '>=14.0.0'}+resolution: {integrity: sha512-lJX2dEWx0SGH4O6p+7FPwYmJ/bu1JbcGJ8RLaG9b7liIgZ85itUVEPbMtWRVrde/0fnDPEPHW10ZsKW3kVsE9A==}@@ -5584,6 +5706,80 @@ packages:terser:optional: true+ resolution: {integrity: sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^20.19.0 || >=22.12.0+ jiti: '>=1.21.0'+ less: ^4.0.0+ lightningcss: ^1.21.0+ sass: ^1.70.0+ sass-embedded: ^1.70.0+ stylus: '>=0.54.8'+ sugarss: ^5.0.0+ terser: ^5.16.0+ tsx: ^4.8.1+ yaml: ^2.4.2+ peerDependenciesMeta:+ '@types/node':+ optional: true+ jiti:+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ tsx:+ optional: true+ yaml:+ optional: true++ resolution: {integrity: sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ==}+ engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}+ hasBin: true+ peerDependencies:+ '@edge-runtime/vm': '*'+ '@opentelemetry/api': ^1.9.0+ '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0+ '@vitest/browser-playwright': 4.0.18+ '@vitest/browser-preview': 4.0.18+ '@vitest/browser-webdriverio': 4.0.18+ '@vitest/ui': 4.0.18+ happy-dom: '*'+ jsdom: '*'+ peerDependenciesMeta:+ '@edge-runtime/vm':+ optional: true+ '@opentelemetry/api':+ optional: true+ '@types/node':+ optional: true+ '@vitest/browser-playwright':+ optional: true+ '@vitest/browser-preview':+ optional: true+ '@vitest/browser-webdriverio':+ optional: true+ '@vitest/ui':+ optional: true+ happy-dom:+ optional: true+ jsdom:+ optional: true+resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}engines: {node: '>= 8'}@@ -5614,6 +5810,11 @@ packages:engines: {node: ^16.13.0 || >=18.0.0}hasBin: true+ resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}+ engines: {node: '>=8'}+ hasBin: true+resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}engines: {node: '>=0.10.0'}@@ -5759,11 +5960,11 @@ snapshots:package-manager-detector: 1.6.0tinyexec: 1.0.2- '@anthropic-ai/[email protected]([email protected])':+ '@anthropic-ai/[email protected]([email protected])':dependencies:json-schema-to-ts: 3.1.1optionalDependencies:- zod: 3.25.76+ zod: 4.3.6'@aws-crypto/[email protected]':dependencies:@@ -6463,6 +6664,8 @@ snapshots:optionalDependencies:'@types/react': 19.2.10+ '@bcoe/[email protected]': {}+'@borewit/[email protected]': {}'@develar/[email protected]':@@ -6784,12 +6987,12 @@ snapshots:'@floating-ui/[email protected]': {}- '@google/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))':+ '@google/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))':dependencies:google-auth-library: 10.5.0ws: 8.18.3optionalDependencies:- '@modelcontextprotocol/sdk': 1.25.3([email protected])([email protected])+ '@modelcontextprotocol/sdk': 1.25.3([email protected])([email protected])transitivePeerDependencies:- bufferutil- supports-color@@ -7044,9 +7247,9 @@ snapshots:std-env: 3.10.0yoctocolors: 2.1.2- '@mariozechner/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ '@mariozechner/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:- '@mariozechner/pi-ai': 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@mariozechner/pi-ai': 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])'@mariozechner/pi-tui': 0.50.3transitivePeerDependencies:- '@modelcontextprotocol/sdk'@@ -7057,21 +7260,21 @@ snapshots:- ws- zod- '@mariozechner/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ '@mariozechner/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:- '@anthropic-ai/sdk': 0.71.2([email protected])+ '@anthropic-ai/sdk': 0.71.2([email protected])'@aws-sdk/client-bedrock-runtime': 3.978.0- '@google/genai': 1.34.0(@modelcontextprotocol/[email protected]([email protected])([email protected]))+ '@google/genai': 1.34.0(@modelcontextprotocol/[email protected]([email protected])([email protected]))'@mistralai/mistralai': 1.10.0'@sinclair/typebox': 0.34.48ajv: 8.17.1ajv-formats: 3.0.1([email protected])chalk: 5.6.2- openai: 6.10.0([email protected])([email protected])+ openai: 6.10.0([email protected])([email protected])partial-json: 0.1.7proxy-agent: 6.5.0undici: 7.19.2- zod-to-json-schema: 3.25.1([email protected])+ zod-to-json-schema: 3.25.1([email protected])transitivePeerDependencies:- '@modelcontextprotocol/sdk'- aws-crt@@ -7081,12 +7284,12 @@ snapshots:- ws- zod- '@mariozechner/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ '@mariozechner/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:'@mariozechner/clipboard': 0.3.0'@mariozechner/jiti': 2.6.5- '@mariozechner/pi-agent-core': 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])- '@mariozechner/pi-ai': 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@mariozechner/pi-agent-core': 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@mariozechner/pi-ai': 0.50.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])([email protected])'@mariozechner/pi-tui': 0.50.3'@silvia-odwyer/photon-node': 0.3.4chalk: 5.6.2@@ -7144,6 +7347,29 @@ snapshots:- hono- supports-color+ dependencies:+ '@hono/node-server': 1.19.9([email protected])+ ajv: 8.17.1+ ajv-formats: 3.0.1([email protected])+ content-type: 1.0.5+ cors: 2.8.6+ cross-spawn: 7.0.6+ eventsource: 3.0.7+ eventsource-parser: 3.0.6+ express: 5.2.1+ express-rate-limit: 7.5.1([email protected])+ jose: 6.1.3+ json-schema-typed: 8.0.2+ pkce-challenge: 5.0.1+ raw-body: 3.0.2+ zod: 4.3.6+ zod-to-json-schema: 3.25.1([email protected])+ transitivePeerDependencies:+ - hono+ - supports-color+ optional: true+'@mozilla/[email protected]': {}'@mswjs/[email protected]':@@ -7698,6 +7924,8 @@ snapshots:'@socket.io/[email protected]': {}+ '@standard-schema/[email protected]': {}+'@swc/[email protected]':dependencies:tslib: 2.8.1@@ -7834,6 +8062,11 @@ snapshots:'@types/node': 25.0.10'@types/responselike': 1.0.3+ '@types/[email protected]':+ dependencies:+ '@types/deep-eql': 4.0.2+ assertion-error: 2.0.1+'@types/[email protected]':dependencies:'@types/node': 25.0.10@@ -7842,6 +8075,8 @@ snapshots:dependencies:'@types/ms': 2.1.0+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]':@@ -8151,6 +8386,60 @@ snapshots:transitivePeerDependencies:- supports-color+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]))':+ dependencies:+ '@bcoe/v8-coverage': 1.0.2+ '@vitest/utils': 4.0.18+ ast-v8-to-istanbul: 0.3.10+ istanbul-lib-coverage: 3.2.2+ istanbul-lib-report: 3.0.1+ istanbul-reports: 3.2.0+ magicast: 0.5.1+ obug: 2.1.1+ std-env: 3.10.0+ tinyrainbow: 3.0.3+ vitest: 4.0.18(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])++ '@vitest/[email protected]':+ dependencies:+ '@standard-schema/spec': 1.1.0+ '@types/chai': 5.2.3+ '@vitest/spy': 4.0.18+ '@vitest/utils': 4.0.18+ chai: 6.2.2+ tinyrainbow: 3.0.3++ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@vitest/spy': 4.0.18+ estree-walker: 3.0.3+ magic-string: 0.30.21+ optionalDependencies:+ msw: 2.12.7(@types/[email protected])([email protected])+ vite: 7.3.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])++ '@vitest/[email protected]':+ dependencies:+ tinyrainbow: 3.0.3++ '@vitest/[email protected]':+ dependencies:+ '@vitest/utils': 4.0.18+ pathe: 2.0.3++ '@vitest/[email protected]':+ dependencies:+ '@vitest/pretty-format': 4.0.18+ magic-string: 0.30.21+ pathe: 2.0.3++ '@vitest/[email protected]': {}++ '@vitest/[email protected]':+ dependencies:+ '@vitest/pretty-format': 4.0.18+ tinyrainbow: 3.0.3+'@xmldom/[email protected]': {}@@ -8363,6 +8652,8 @@ snapshots:optional: true+ [email protected]: {}+@@ -8373,6 +8664,12 @@ snapshots:dependencies:tslib: 2.8.1+ dependencies:+ '@jridgewell/trace-mapping': 0.3.31+ estree-walker: 3.0.3+ js-tokens: 9.0.1+optional: true@@ -8546,6 +8843,8 @@ snapshots:+ [email protected]: {}+dependencies:ansi-styles: 4.3.0@@ -9085,6 +9384,8 @@ snapshots:iterator.prototype: 1.1.5safe-array-concat: 1.1.3+ [email protected]: {}+dependencies:es-errors: 1.3.0@@ -9184,7 +9485,7 @@ snapshots:eslint: 9.39.2([email protected])eslint-import-resolver-node: 0.3.9eslint-import-resolver-typescript: 3.10.1([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected]))- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))eslint-plugin-react: 7.37.5([email protected]([email protected]))eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))@@ -9217,7 +9518,7 @@ snapshots:tinyglobby: 0.2.15unrs-resolver: 1.11.1optionalDependencies:- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))transitivePeerDependencies:- supports-color@@ -9232,7 +9533,7 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected])):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])):dependencies:'@rtsao/scc': 1.1.0array-includes: 3.1.9@@ -9443,6 +9744,10 @@ snapshots:+ dependencies:+ '@types/estree': 1.0.8+@@ -9480,6 +9785,8 @@ snapshots:strip-final-newline: 4.0.0yoctocolors: 2.1.2+ [email protected]: {}+dependencies:express: 5.2.1@@ -9941,6 +10248,8 @@ snapshots:dependencies:lru-cache: 6.0.0+ [email protected]: {}+@@ -10208,6 +10517,19 @@ snapshots:+ [email protected]: {}++ dependencies:+ istanbul-lib-coverage: 3.2.2+ make-dir: 4.0.0+ supports-color: 7.2.0++ dependencies:+ html-escaper: 2.0.2+ istanbul-lib-report: 3.0.1+@@ -10243,6 +10565,8 @@ snapshots:+ [email protected]: {}+dependencies:argparse: 2.0.1@@ -10440,6 +10764,16 @@ snapshots:dependencies:'@jridgewell/sourcemap-codec': 1.5.5+ dependencies:+ '@babel/parser': 7.28.6+ '@babel/types': 7.28.6+ source-map-js: 1.2.1++ dependencies:+ semver: 7.7.3+@@ -10687,6 +11021,8 @@ snapshots:define-properties: 1.2.1es-object-atoms: 1.1.1+ [email protected]: {}+@@ -10714,10 +11050,10 @@ snapshots:powershell-utils: 0.1.0wsl-utils: 0.3.1optionalDependencies:ws: 8.18.3- zod: 3.25.76+ zod: 4.3.6dependencies:@@ -10833,6 +11169,8 @@ snapshots:+ [email protected]: {}+@@ -11381,6 +11719,8 @@ snapshots:side-channel-map: 1.0.1side-channel-weakmap: 1.0.2+ [email protected]: {}+@@ -11476,6 +11816,8 @@ snapshots:+ [email protected]: {}+@@ -11664,6 +12006,8 @@ snapshots:+ [email protected]: {}+@@ -11671,6 +12015,8 @@ snapshots:fdir: 6.5.0([email protected])picomatch: 4.0.3+ [email protected]: {}+@@ -11947,6 +12293,59 @@ snapshots:fsevents: 2.3.3lightningcss: 1.30.2+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ dependencies:+ esbuild: 0.27.2+ fdir: 6.5.0([email protected])+ picomatch: 4.0.3+ postcss: 8.5.6+ rollup: 4.57.0+ tinyglobby: 0.2.15+ optionalDependencies:+ '@types/node': 25.0.10+ fsevents: 2.3.3+ jiti: 2.6.1+ lightningcss: 1.30.2+ tsx: 4.21.0+ yaml: 2.8.2++ [email protected](@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]):+ dependencies:+ '@vitest/expect': 4.0.18+ '@vitest/mocker': 4.0.18([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/pretty-format': 4.0.18+ '@vitest/runner': 4.0.18+ '@vitest/snapshot': 4.0.18+ '@vitest/spy': 4.0.18+ '@vitest/utils': 4.0.18+ es-module-lexer: 1.7.0+ expect-type: 1.3.0+ magic-string: 0.30.21+ obug: 2.1.1+ pathe: 2.0.3+ picomatch: 4.0.3+ std-env: 3.10.0+ tinybench: 2.9.0+ tinyexec: 1.0.2+ tinyglobby: 0.2.15+ tinyrainbow: 3.0.3+ vite: 7.3.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ why-is-node-running: 2.3.0+ optionalDependencies:+ '@types/node': 25.0.10+ transitivePeerDependencies:+ - jiti+ - less+ - lightningcss+ - msw+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - terser+ - tsx+ - yaml+@@ -11998,6 +12397,11 @@ snapshots:dependencies:isexe: 3.1.1+ dependencies:+ siginfo: 2.0.0+ stackback: 0.0.2+@@ -12086,6 +12490,10 @@ snapshots:dependencies:zod: 3.25.76+ dependencies:+ zod: 4.3.6+dependencies:zod: 4.3.6diff --git a/vitest.config.ts b/vitest.config.tsnew file mode 100644index 0000000000..aa6335359f--- /dev/null+++ b/vitest.config.ts@@ -0,0 +1,15 @@+import { defineConfig } from "vitest/config";++export default defineConfig({+ test: {+ globals: true,+ environment: "node",+ include: ["src/**/*.test.ts"],+ coverage: {+ provider: "v8",+ reporter: ["text", "html"],+ include: ["src/**/*.ts"],+ exclude: ["src/**/*.test.ts", "src/**/types.ts", "src/**/*.d.ts"],+ },+ },+});