AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(word-documents): extract text from Word documents (#16778)
Kishan Parmar7426c159f787
diff --git a/bun.lock b/bun.lockindex 2a351c1d136..0c08778254b 100644--- a/bun.lock+++ b/bun.lock@@ -10920,6 +10920,21 @@"vitest": "3.2.6",},},+ "packages/pieces/core/word-documents": {+ "name": "@activepieces/piece-word-documents",+ "version": "0.0.1",+ "dependencies": {+ "@activepieces/core-piece-types": "workspace:*",+ "@activepieces/core-utils": "workspace:*",+ "@activepieces/pieces-common": "workspace:*",+ "@activepieces/pieces-framework": "workspace:*",+ "officeparser": "8.1.1",+ },+ "devDependencies": {+ "tslib": "2.6.2",+ "vitest": "3.2.6",+ },+ },"packages/pieces/core/xml": {"name": "@activepieces/piece-xml","version": "0.2.1",@@ -12894,6 +12909,8 @@"@activepieces/piece-wootric": ["@activepieces/piece-wootric@workspace:packages/pieces/community/wootric"],+ "@activepieces/piece-word-documents": ["@activepieces/piece-word-documents@workspace:packages/pieces/core/word-documents"],+"@activepieces/piece-wordpress": ["@activepieces/piece-wordpress@workspace:packages/pieces/community/wordpress"],"@activepieces/piece-workable": ["@activepieces/piece-workable@workspace:packages/pieces/community/workable"],@@ -13286,6 +13303,8 @@"@base44/sdk": ["@base44/[email protected]", "", { "dependencies": { "axios": "^1.6.2", "socket.io-client": "^4.7.5", "uuid": "^13.0.0" } }, "sha512-TkCQ6TZb0Fqq48Ig6xc1o+SU9LYg0sgzDHTIE0JiRcAmRkoO7Jm8kVzNEe2Nmh3msP6P8sxs0GFwGfukMUoCzg=="],+ "@borewit/text-codec": ["@borewit/[email protected]", "", {}, "sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ=="],+"@bull-board/api": ["@bull-board/[email protected]", "", { "dependencies": { "redis-info": "^3.1.0" }, "peerDependencies": { "@bull-board/ui": "6.10.1" } }, "sha512-VPkZa2XZI2Wk2MqK1XyiiS+tOhNan54mnm2fpv2KA0fdZ92mQqNjhKkOpsykhQv9XUEc8cCRlZqGxf67YCMJbQ=="],"@bull-board/fastify": ["@bull-board/[email protected]", "", { "dependencies": { "@bull-board/api": "6.10.1", "@bull-board/ui": "6.10.1", "@fastify/static": "^8.2.0", "@fastify/view": "^11.1.0", "ejs": "^3.1.10" } }, "sha512-l9+KjDxPTtyfSnS/lhzp48G24lZs3A+9lmh+zRi+SBY+jpMribDpAq6pvAK96Tkm9fmMgcewXB4i0t2rlhrZbw=="],@@ -13902,6 +13921,30 @@"@msgpackr-extract/msgpackr-extract-win32-x64": ["@msgpackr-extract/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ=="],+ "@napi-rs/canvas": ["@napi-rs/[email protected]", "", { "optionalDependencies": { "@napi-rs/canvas-android-arm64": "1.0.11", "@napi-rs/canvas-darwin-arm64": "1.0.11", "@napi-rs/canvas-darwin-x64": "1.0.11", "@napi-rs/canvas-linux-arm-gnueabihf": "1.0.11", "@napi-rs/canvas-linux-arm64-gnu": "1.0.11", "@napi-rs/canvas-linux-arm64-musl": "1.0.11", "@napi-rs/canvas-linux-riscv64-gnu": "1.0.11", "@napi-rs/canvas-linux-x64-gnu": "1.0.11", "@napi-rs/canvas-linux-x64-musl": "1.0.11", "@napi-rs/canvas-win32-arm64-msvc": "1.0.11", "@napi-rs/canvas-win32-x64-msvc": "1.0.11" } }, "sha512-vt5tog1cr+QKadIddGe+3LrcX0EmjEd0izF717Uwf92mBmgYfq2XRmL2r4bZU40spB69exxhrBn9I91HYEr/7w=="],++ "@napi-rs/canvas-android-arm64": ["@napi-rs/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-dtJS4FQEfH9OwSYLtMrEnj7T8DzBbJc/97LI/OkiWOYpW/iW5t6R/gcxVrUXS8l45gCVpwMufgucRe/pe0ISqA=="],++ "@napi-rs/canvas-darwin-arm64": ["@napi-rs/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-J/JylWoJTG8OQqZaiqly4IODyAxNofUlZo0wtSBJtHk6AdymbdIkPynAM1JvQaZpPaG5h+msk9QuK8y4i1ooqw=="],++ "@napi-rs/canvas-darwin-x64": ["@napi-rs/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-nlecCk3xy06eAGC7krZtzNDm9UNTHKuHQYK8ZYegdjzgSL8anGt/eLJZm86OWaNgZkwQwvDqfSmG8Nqe6MPZNQ=="],++ "@napi-rs/canvas-linux-arm-gnueabihf": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-DKImmG+sTPolE0kGPsYPBxTtOjb3INALp32O2lW2CfSr0bAzSEKKuu+GrQbtilClyoPOahUErS3OrznFDraoWA=="],++ "@napi-rs/canvas-linux-arm64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-55sykACGENj5j1rhj+81AO8JbR9HYgGjRZ7/H+pNr4VE1DvINKYNMTcutk8ZmWxk276jAQvUKJ3+Kdj9GXU3lQ=="],++ "@napi-rs/canvas-linux-arm64-musl": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-6Jz6jys17yXydO+WdJgu7JhoB4K7/w9sWHByzzTmLjQghUx3TDMWvLv+UcCdnWhg4oprET67EMymnrETdeGNAg=="],++ "@napi-rs/canvas-linux-riscv64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-lf2XeEebWiUYVOVEjLXxF7dfXrBBSEOBn9AqBh39VYXrPt5cDqI+1t58IFSjn8npqkg5jIOs8TQbjKABbFW1gQ=="],++ "@napi-rs/canvas-linux-x64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-iDapw7nFSE5tsmQxcH2+KotJhyfVPmHd6vUOQN/Em+8WNbkZJwJ/rDowlJMFnMl0SYSDSfgKCNUGi6Sn5++Smg=="],++ "@napi-rs/canvas-linux-x64-musl": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-26q26AyITo3CGZX4HWFIMgBMA1lu3YN07gxzBm4tW6Hglq/OVyTP50kDrmWuKybCX6dh3m8Ly+c7YhI+sqCgCQ=="],++ "@napi-rs/canvas-win32-arm64-msvc": ["@napi-rs/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-cUO96IdsfvIj2S+2PNcDSkTcLhjPj8pIOEWRV1Kj70MOP4wnE9zSk7N4C1EKHlFGRcgdR5AkbnBZj0dfHK9nbQ=="],++ "@napi-rs/canvas-win32-x64-msvc": ["@napi-rs/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-DFYp/ZQRdKunI/LPc0UkRXG1vlNjJKOJf8O8Ctb8+wm2Nt2ELg9Eamc31D2VoakkfGo8L+z0Iejz6WtFbQwyGw=="],+"@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4", "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4" } }, "sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g=="],"@noble/curves": ["@noble/[email protected]", "", { "dependencies": { "@noble/hashes": "1.3.2" } }, "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw=="],@@ -14640,6 +14683,8 @@"@tiptap/suggestion": ["@tiptap/[email protected]", "", { "peerDependencies": { "@tiptap/core": "3.22.5", "@tiptap/pm": "3.22.5" } }, "sha512-Uv79Ht/o4mx1GWIT65jeQTE67LMrA+K7d8p51XOe9PJw0H0fS3iCdeMJ8tAo3h6QrMJFejdsB7z8jJL9UbAnhA=="],+ "@tokenizer/inflate": ["@tokenizer/[email protected]", "", { "dependencies": { "debug": "^4.4.3", "token-types": "^6.1.2" } }, "sha512-56U2O6fDLFtqokwWh597IdeUgtM7j+TT9tb1soybhgA6cy163gAcVmoQr8H4Ud/CkgCkViwcuLyqtn6wYqw59Q=="],+"@tokenizer/token": ["@tokenizer/[email protected]", "", {}, "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A=="],"@tootallnate/once": ["@tootallnate/[email protected]", "", {}, "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A=="],@@ -16028,7 +16073,7 @@"fetch-retry": ["[email protected]", "", {}, "sha512-BUFj1aMubgib37I3v4q78fYo63Po7t4HUPTpQ6/QE6yK6cIQrP+W43FYToeTEyg5m2Y7eFUtijUuAv/PDlWuag=="],- "fflate": ["[email protected]", "", {}, "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA=="],+ "fflate": ["[email protected]", "", {}, "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA=="],"figures": ["[email protected]", "", { "dependencies": { "escape-string-regexp": "^1.0.5" } }, "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg=="],@@ -16036,7 +16081,7 @@"file-stream-rotator": ["[email protected]", "", { "dependencies": { "moment": "^2.29.1" } }, "sha512-u+dBid4PvZw17PmDeRcNOtCP9CCK/9lRN2w+r1xIS7yOL9JFrIBKTvrYsxT4P0pGtThYTn++QS5ChHaUov3+zQ=="],- "file-type": ["[email protected]", "", {}, "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ=="],+ "file-type": ["[email protected]", "", { "dependencies": { "@tokenizer/inflate": "^0.5.1", "strtok3": "^10.5.0", "token-types": "^6.1.2", "uint8array-extras": "^1.6.0" } }, "sha512-XmEVJsRpQMVYC+sWFW+FKAVo2P7/lPctDdWH4UQ1r6oxhdrTobnowdM3z+ZJ93a4J8D3yDpxX0bEvRuFev0vUQ=="],"file-uri-to-path": ["[email protected]", "", {}, "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="],@@ -16322,6 +16367,8 @@"iconv-lite": ["[email protected]", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],+ "idb-keyval": ["[email protected]", "", {}, "sha512-um+2dgAWmYsu615EXpWVwSmapJhON0G43t3Ka/EVaohzPQXSMqKEqeDK/oIW3Ow+BXaF2PvSc+oBTFp793A5Ow=="],+"ieee754": ["[email protected]", "", {}, "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="],"ignore": ["[email protected]", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],@@ -16472,6 +16519,8 @@"is-unicode-supported": ["[email protected]", "", {}, "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw=="],+ "is-url": ["[email protected]", "", {}, "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww=="],+"is-valid-glob": ["[email protected]", "", {}, "sha512-AhiROmoEFDSsjx8hW+5sGwgKVIORcXnrlAx/R0ZSeaPw70Vw0CqkGBBhHGL58Uox2eXnU1AnvXJl1XlyedO5bA=="],"is-weakmap": ["[email protected]", "", {}, "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w=="],@@ -17102,6 +17151,8 @@"object.values": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA=="],+ "officeparser": ["[email protected]", "", { "dependencies": { "@xmldom/xmldom": "^0.9.12", "fflate": "^0.8.3", "file-type": "^22.1.0", "pdfjs-dist": "6.2.108", "tesseract.js": "^7.0.0" }, "peerDependencies": { "pdf-lib": "^1.17.1", "puppeteer": ">=22" }, "optionalPeers": ["pdf-lib", "puppeteer"], "bin": { "officeparser": "dist/cli.js" } }, "sha512-dU5fvPk/ChGLazMO2FkrehWA+tKeWqvxhTmR1jxdN2gGEoSIY4K4CJnW9xmGdqRKOL3no4PbugZY5y9RUNcGEQ=="],+"omggif": ["[email protected]", "", {}, "sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw=="],"on-exit-leak-free": ["[email protected]", "", {}, "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA=="],@@ -17126,6 +17177,8 @@"openapi-types": ["[email protected]", "", {}, "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw=="],+ "opencollective-postinstall": ["[email protected]", "", { "bin": { "opencollective-postinstall": "index.js" } }, "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q=="],+"openpgp": ["[email protected]", "", {}, "sha512-pLzCU8IgyKXPSO11eeharQkQ4GzOKNWhXq79pQarIRZEMt1/ssyr+MIuWBv1mNoenJLg04gvPx+fi4gcKZ4bag=="],"option": ["[email protected]", "", {}, "sha512-pkEqbDyl8ou5cpq+VsnQbe/WlEy5qS7xPzMS1U55OCG9KPvwFD46zDbxQIj3egJSFc3D+XhYOPUzz49zQAVy7A=="],@@ -17236,6 +17289,8 @@"pdf-lib": ["[email protected]", "", { "dependencies": { "@pdf-lib/standard-fonts": "^1.0.0", "@pdf-lib/upng": "^1.0.1", "pako": "^1.0.11", "tslib": "^1.11.1" } }, "sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw=="],+ "pdfjs-dist": ["[email protected]", "", { "optionalDependencies": { "@napi-rs/canvas": "^1.0.0" } }, "sha512-YxFb+SQcodN2rnX9Tn3dHYlqfb7NjlzzfONPpJd+AKoKtUjEdevTfbC07d5TcczzOK6261auRkP/M8OBHs9vFQ=="],+"peberminta": ["[email protected]", "", {}, "sha512-80B2AsU+I4Qdb0ZAPSfe9UwvGzwkM37IKIFEvdS3D/3Ndgv2bsuJ0bfG1+iEYO+l7Gfd4EUJmuRyq7efLgRMzQ=="],"peek-readable": ["[email protected]", "", {}, "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg=="],@@ -17898,7 +17953,7 @@"strnum": ["[email protected]", "", {}, "sha512-oKx6RUCuHfT3oyVjtnrmn19H1SiCqgJSg+54XqURKp5aCMbrXrhLjRN9TjuwMjiYstZ0MzDrHqkGZ5dFTKd+zg=="],- "strtok3": ["[email protected]", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "peek-readable": "^4.1.0" } }, "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw=="],+ "strtok3": ["[email protected]", "", { "dependencies": { "@tokenizer/token": "^0.3.0" } }, "sha512-BkdixFFUt7r7LsX6aGNPVyYMLjW+M1USLlKPNbZsrZEmLFh5tGqhdfckKo6xgsZIJqdDD0CZGkeCJJwNWQIKQA=="],"stubs": ["[email protected]", "", {}, "sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw=="],@@ -17952,6 +18007,10 @@"terser-webpack-plugin": ["[email protected]", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", "schema-utils": "^4.3.0", "terser": "^5.31.1" }, "peerDependencies": { "webpack": "^5.1.0" } }, "sha512-UYhptBwhWvfIjKd/UuFo6D8uq9xpGLDK+z8EDsj/zWhrTaH34cKEbrkMKfV5YWqGBvAYA3tlzZbs2R+qYrbQJA=="],+ "tesseract.js": ["[email protected]", "", { "dependencies": { "bmp-js": "^0.1.0", "idb-keyval": "^6.2.0", "is-url": "^1.2.4", "node-fetch": "^2.6.9", "opencollective-postinstall": "^2.0.3", "regenerator-runtime": "^0.13.3", "tesseract.js-core": "^7.0.0", "wasm-feature-detect": "^1.8.0", "zlibjs": "^0.3.1" } }, "sha512-exPBkd+z+wM1BuMkx/Bjv43OeLBxhL5kKWsz/9JY+DXcXdiBjiAch0V49QR3oAJqCaL5qURE0vx9Eo+G5YE7mA=="],++ "tesseract.js-core": ["[email protected]", "", {}, "sha512-WnNH518NzmbSq9zgTPeoF8c+xmilS8rFIl1YKbk/ptuuc7p6cLNELNuPAzcmsYw450ca6bLa8j3t0VAtq435Vw=="],+"tests-e2e": ["tests-e2e@workspace:packages/tests-e2e"],"text-decoder": ["[email protected]", "", { "dependencies": { "b4a": "^1.6.4" } }, "sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ=="],@@ -18024,7 +18083,7 @@"toidentifier": ["[email protected]", "", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="],- "token-types": ["[email protected]", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "ieee754": "^1.2.1" } }, "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ=="],+ "token-types": ["[email protected]", "", { "dependencies": { "@borewit/text-codec": "^0.2.1", "@tokenizer/token": "^0.3.0", "ieee754": "^1.2.1" } }, "sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww=="],"toml": ["[email protected]", "", {}, "sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w=="],@@ -18112,6 +18171,8 @@"uid2": ["[email protected]", "", {}, "sha512-+I6aJUv63YAcY9n4mQreLUt0d4lvwkkopDNmpomkAUz0fAkEMV9pRWxN0EjhW1YfRhcuyHg2v3mwddCDW1+LFQ=="],+ "uint8array-extras": ["[email protected]", "", {}, "sha512-8iAasVS4wUx0gPLjH8Xtz2PeDzTSiy8QiLGu2DT3X5GU+egFEQhpnbtkehbAwjvDcxIERmCYcysiODFmE3Ud0Q=="],+"uint8arrays": ["[email protected]", "", { "dependencies": { "multiformats": "^9.4.2" } }, "sha512-HRCx0q6O9Bfbp+HHSfQQKD7wU70+lydKVt4EghkdOvlK/NlrF90z+eXV34mUd48rNvVJXwkrMSPpCATkct8fJA=="],"unbash": ["[email protected]", "", {}, "sha512-FoSOKV7NEofQSkAefMVHam4ZPKYMxjAydxiV72UFEDNV/YofxjGfiZ2A9pZjdL/lRJzTjcu4PABo1JYJX8N5iQ=="],@@ -18268,6 +18329,8 @@"walk-up-path": ["[email protected]", "", {}, "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A=="],+ "wasm-feature-detect": ["[email protected]", "", {}, "sha512-zonE+xlIIYtxPy++L24ow0hAD8CICb4+FgPyROd3buyXIqsJvUEDkBgfCCoXOd1Hu3DUr0GOfnPIdcGV+YpNaA=="],+"watchpack": ["[email protected]", "", { "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" } }, "sha512-Zn5uXdcFNIA1+1Ei5McRd+iRzfhENPCe7LeABkJtNulSxjma+l7ltNx55BWZkRlwRnpOgHqxnjyaDgJnNXnqzg=="],"wav": ["[email protected]", "", { "dependencies": { "buffer-alloc": "^1.1.0", "buffer-from": "^1.0.0", "debug": "^2.2.0", "readable-stream": "^1.1.14", "stream-parser": "^0.3.1" } }, "sha512-viHtz3cDd/Tcr/HbNqzQCofKdF6kWUymH9LGDdskfWFoIy/HJ+RTihgjEcHfnsy1PO4e9B+y4HwgTwMrByquhg=="],@@ -18408,6 +18471,8 @@"zip-stream": ["[email protected]", "", { "dependencies": { "archiver-utils": "^5.0.0", "compress-commons": "^6.0.2", "readable-stream": "^4.0.0" } }, "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA=="],+ "zlibjs": ["[email protected]", "", {}, "sha512-+J9RrgTKOmlxFSDHo0pI1xM6BLVUv+o0ZT9ANtCxGkjIVCCUdx9alUF8Gm+dGLKbkkkidWIHFDZHDMpfITt4+w=="],+"zod": ["[email protected]", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="],"zod-to-json-schema": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25.28 || ^4" } }, "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA=="],@@ -19450,12 +19515,16 @@"decode-named-character-reference/character-entities": ["[email protected]", "", {}, "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ=="],+ "decompress-tar/file-type": ["[email protected]", "", {}, "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ=="],+"decompress-tar/is-stream": ["[email protected]", "", {}, "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ=="],"decompress-tarbz2/file-type": ["[email protected]", "", {}, "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg=="],"decompress-tarbz2/is-stream": ["[email protected]", "", {}, "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ=="],+ "decompress-targz/file-type": ["[email protected]", "", {}, "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ=="],+"decompress-targz/is-stream": ["[email protected]", "", {}, "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ=="],"decompress-unzip/file-type": ["[email protected]", "", {}, "sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA=="],@@ -19850,6 +19919,8 @@"normalize-package-data/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],+ "officeparser/@xmldom/xmldom": ["@xmldom/[email protected]", "", {}, "sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A=="],+"openai/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg=="],"p-locate/p-limit": ["[email protected]", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="],@@ -19878,6 +19949,8 @@"playwright/fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="],+ "posthog-js/fflate": ["[email protected]", "", {}, "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA=="],+"pretty-format/ansi-styles": ["[email protected]", "", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="],"pretty-format/react-is": ["[email protected]", "", {}, "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="],@@ -20610,6 +20683,10 @@"@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],+ "@jimp/core/file-type/strtok3": ["[email protected]", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "peek-readable": "^4.1.0" } }, "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw=="],++ "@jimp/core/file-type/token-types": ["[email protected]", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "ieee754": "^1.2.1" } }, "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ=="],+"@mailchain/crypto/@noble/curves/@noble/hashes": ["@noble/[email protected]", "", {}, "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg=="],"@mailchain/internal/protobufjs/@protobufjs/eventemitter": ["@protobufjs/[email protected]", "", {}, "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q=="],diff --git a/packages/pieces/core/word-documents/.eslintrc.json b/packages/pieces/core/word-documents/.eslintrc.jsonnew file mode 100644index 00000000000..01f1c80f85a--- /dev/null+++ b/packages/pieces/core/word-documents/.eslintrc.json@@ -0,0 +1,47 @@+{+ "extends": [+ "../../../../.eslintrc.base.json"+ ],+ "ignorePatterns": [+ "!**/*"+ ],+ "overrides": [+ {+ "files": [+ "*.ts",+ "*.tsx",+ "*.js",+ "*.jsx"+ ],+ "rules": {}+ },+ {+ "files": [+ "*.ts",+ "*.tsx"+ ],+ "rules": {+ "no-restricted-imports": [+ "error",+ {+ "patterns": [+ "lodash",+ "lodash/*",+ "@activepieces/core-*",+ "@activepieces/server*",+ "@activepieces/engine",+ "@activepieces/shared"+ ]+ }+ ]+ }+ },+ {+ "files": [+ "*.js",+ "*.jsx"+ ],+ "rules": {}+ }+ ]+}diff --git a/packages/pieces/core/word-documents/package.json b/packages/pieces/core/word-documents/package.jsonnew file mode 100644index 00000000000..ba711e4c150--- /dev/null+++ b/packages/pieces/core/word-documents/package.json@@ -0,0 +1,23 @@+{+ "name": "@activepieces/piece-word-documents",+ "version": "0.0.1",+ "main": "./dist/src/index.js",+ "types": "./dist/src/index.d.ts",+ "dependencies": {+ "@activepieces/pieces-common": "workspace:*",+ "@activepieces/pieces-framework": "workspace:*",+ "@activepieces/core-piece-types": "workspace:*",+ "@activepieces/core-utils": "workspace:*",+ "officeparser": "8.1.1"+ },+ "devDependencies": {+ "vitest": "3.2.6",+ "tslib": "2.6.2"+ },+ "scripts": {+ "build": "tsc -p tsconfig.lib.json && cp package.json dist/",+ "bundle": "node ../../../../dist/packages/cli/src/index.js pieces bundle",+ "lint": "eslint 'src/**/*.ts'",+ "test": "vitest run"+ }+}diff --git a/packages/pieces/core/word-documents/src/i18n/translation.json b/packages/pieces/core/word-documents/src/i18n/translation.jsonnew file mode 100644index 00000000000..062a430cf74--- /dev/null+++ b/packages/pieces/core/word-documents/src/i18n/translation.json@@ -0,0 +1,11 @@+{+ "Read Word documents (.docx) in your flow, no Microsoft account needed.": "Read Word documents (.docx) in your flow, no Microsoft account needed.",+ "Extract Text": "Extract Text",+ "Get the text, headers and footers of a Word document (.docx).": "Get the text, headers and footers of a Word document (.docx).",+ "Word Document": "Word Document",+ "Password": "Password",+ "Pick a .docx file from an earlier step, such as an email attachment, or paste a URL to download.": "Pick a .docx file from an earlier step, such as an email attachment, or paste a URL to download.",+ "Only needed when the document is password-protected.": "Only needed when the document is password-protected.",+ "Document": "Document",+ "Word Documents": "Word Documents"+}\ No newline at end of filediff --git a/packages/pieces/core/word-documents/src/index.ts b/packages/pieces/core/word-documents/src/index.tsnew file mode 100644index 00000000000..8b5f29b2e0e--- /dev/null+++ b/packages/pieces/core/word-documents/src/index.ts@@ -0,0 +1,14 @@+import { createPiece, PieceAuth, PieceCategory } from '@activepieces/pieces-framework';+import { extractText } from './lib/actions/extract-text';++export const wordDocuments = createPiece({+ displayName: 'Word Documents',+ description: 'Read Word documents (.docx) in your flow, no Microsoft account needed.',+ auth: PieceAuth.None(),+ minimumSupportedRelease: '0.88.2',+ logoUrl: 'https://cdn.activepieces.com/pieces/new-core/word-documents.svg',+ categories: [PieceCategory.CORE],+ authors: ['kishanprmr'],+ actions: [extractText],+ triggers: [],+});diff --git a/packages/pieces/core/word-documents/src/lib/actions/extract-text.ts b/packages/pieces/core/word-documents/src/lib/actions/extract-text.tsnew file mode 100644index 00000000000..2e3db20f93a--- /dev/null+++ b/packages/pieces/core/word-documents/src/lib/actions/extract-text.ts@@ -0,0 +1,81 @@+import { PieceAuth, Property, createAction, tryCatch } from '@activepieces/pieces-framework';+import { OfficeContentNode, OfficeErrorType, OfficeParser } from 'officeparser';+import { extractTextActionOutputSchema } from '../output-schemas';++export const extractText = createAction({+ auth: PieceAuth.None(),+ audience: 'both',+ name: 'extract_text',+ classification: 'READ',+ displayName: 'Extract Text',+ description: 'Get the text, headers and footers of a Word document (.docx).',+ aiMetadata: { description: 'Reads a Word document (.docx, .docm, .dotx, including password-protected ones) and returns its text in reading order: paragraphs, tables as aligned rows, lists, text boxes and footnotes, with page headers and footers returned separately. Use it to read a Word attachment or file before summarizing, classifying or parsing it; use Extract Text in the PDF piece for PDFs and Read File in Files Helper for plain-text files. Legacy .doc files are rejected with a request to save them as .docx; read-only and idempotent.', idempotent: true },+ outputSchema: extractTextActionOutputSchema,+ propertyGroups: [+ { key: 'input', display: 'section', label: 'Document', icon: 'paperclip', props: ['file', 'password'] },+ ],+ props: {+ file: Property.File({+ displayName: 'Word Document',+ description: 'Pick a .docx file from an earlier step, such as an email attachment, or paste a URL to download.',+ required: true,+ }),+ password: Property.ShortText({+ displayName: 'Password',+ description: 'Only needed when the document is password-protected.',+ required: false,+ }),+ },+ async run(context) {+ const { file, password } = context.propsValue;+ if (isLegacyWordFile(file.data)) {+ throw new Error('This is an older Word file (.doc), which is not supported yet. Open it in Word, save it as .docx, and try again.');+ }+ const { data: document, error } = await tryCatch(() =>+ OfficeParser.parseOffice(file.data, { fileType: 'docx', password: password || undefined }),+ );+ if (error) {+ throw new Error(describeParseError(error));+ }+ const { value: text } = await document.to('text', { includeImages: false });+ return {+ text,+ headers: joinUniqueText(document.auxiliary?.headers),+ footers: joinUniqueText(document.auxiliary?.footers),+ };+ },+});++function isLegacyWordFile(data: Buffer): boolean {+ return data.subarray(0, CFB_SIGNATURE.length).equals(CFB_SIGNATURE) && !data.includes(ENCRYPTED_OOXML_STREAM_NAME);+}++function joinUniqueText(nodes: OfficeContentNode[] | undefined): string {+ const texts = (nodes ?? []).map((node) => (node.text ?? '').trim()).filter((text) => text.length > 0);+ return [...new Set(texts)].join('\n');+}++function describeParseError(error: Error): string {+ const code = getOfficeErrorCode(error);+ if (code === OfficeErrorType.PASSWORD_REQUIRED) {+ return 'This document is password-protected. Enter its password in the Password field.';+ }+ if (code === OfficeErrorType.PASSWORD_INCORRECT) {+ return 'The password is incorrect for this document.';+ }+ return `This file could not be read as a Word document (.docx). It may be damaged or in a different format. Details: ${error.message}`;+}++function getOfficeErrorCode(error: Error): string | undefined {+ if (!('officeIssue' in error)) {+ return undefined;+ }+ const issue = error.officeIssue;+ if (typeof issue !== 'object' || issue === null || !('code' in issue) || typeof issue.code !== 'string') {+ return undefined;+ }+ return issue.code;+}++const CFB_SIGNATURE = Buffer.from([0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1]);+const ENCRYPTED_OOXML_STREAM_NAME = Buffer.from('EncryptionInfo', 'utf16le');diff --git a/packages/pieces/core/word-documents/src/lib/output-schemas.ts b/packages/pieces/core/word-documents/src/lib/output-schemas.tsnew file mode 100644index 00000000000..b9cca755d72--- /dev/null+++ b/packages/pieces/core/word-documents/src/lib/output-schemas.ts@@ -0,0 +1,9 @@+import { OutputSchema } from '@activepieces/pieces-framework';++export const extractTextActionOutputSchema: OutputSchema = {+ fields: [+ { key: 'text', label: 'Text', description: 'Paragraphs, tables, lists, text boxes and footnotes in reading order.' },+ { key: 'headers', label: 'Headers', description: 'Text of the page headers, one per line.' },+ { key: 'footers', label: 'Footers', description: 'Text of the page footers, one per line.' },+ ],+};diff --git a/packages/pieces/core/word-documents/test/data/password-protected.docx b/packages/pieces/core/word-documents/test/data/password-protected.docxnew file mode 100644index 00000000000..0fff82eebf9Binary files /dev/null and b/packages/pieces/core/word-documents/test/data/password-protected.docx differdiff --git a/packages/pieces/core/word-documents/test/data/sample.docx b/packages/pieces/core/word-documents/test/data/sample.docxnew file mode 100644index 00000000000..024036691c9Binary files /dev/null and b/packages/pieces/core/word-documents/test/data/sample.docx differdiff --git a/packages/pieces/core/word-documents/test/extract-text.test.ts b/packages/pieces/core/word-documents/test/extract-text.test.tsnew file mode 100644index 00000000000..f8dd3fae269--- /dev/null+++ b/packages/pieces/core/word-documents/test/extract-text.test.ts@@ -0,0 +1,60 @@+/// <reference types="vitest/globals" />++import { readFileSync } from 'fs';+import { join } from 'path';+import { extractText } from '../src/lib/actions/extract-text';+import { createMockActionContext, ApFile } from '@activepieces/pieces-framework';++function runWithFile({ data, password }: { data: Buffer; password?: string }) {+ const file = new ApFile('document.docx', data, 'docx');+ return extractText.run(createMockActionContext<typeof extractText.props>({ propsValue: { file, password } }));+}++function fixture(name: string): Buffer {+ return readFileSync(join(__dirname, 'data', name));+}++describe('extractText', () => {+ test('returns body, tables, footnotes, headers and footers', async () => {+ const result = await runWithFile({ data: fixture('sample.docx') });+ expect(result).toMatchObject({ headers: 'HEADER_TEXT', footers: 'FOOTER_TEXT' });+ for (const expected of [+ 'Body with footnote',+ 'LINK_TEXT',+ 'Unicode: héllo — 日本語 — مرحبا — 😀',+ /A1\s*\|\s*B1/,+ /Line one\nLine two/,+ 'FOOTNOTE_TEXT',+ ]) {+ expect(result).toMatchObject({ text: expect.stringMatching(expected) });+ }+ });++ test('opens a password-protected document with its password', async () => {+ const result = await runWithFile({ data: fixture('password-protected.docx'), password: 'secret' });+ expect(result).toMatchObject({ text: expect.stringContaining('Body with footnote'), headers: 'HEADER_TEXT' });+ });++ test('asks for the password when it is missing', async () => {+ await expect(runWithFile({ data: fixture('password-protected.docx') })).rejects.toThrow(+ 'This document is password-protected. Enter its password in the Password field.',+ );+ });++ test('reports a wrong password', async () => {+ await expect(runWithFile({ data: fixture('password-protected.docx'), password: 'wrong' })).rejects.toThrow(+ 'The password is incorrect for this document.',+ );+ });++ test('rejects legacy .doc files with a save-as hint', async () => {+ const legacyDoc = Buffer.concat([Buffer.from([0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1]), Buffer.alloc(504)]);+ await expect(runWithFile({ data: legacyDoc })).rejects.toThrow('save it as .docx');+ });++ test('rejects files that are not Word documents', async () => {+ await expect(runWithFile({ data: Buffer.from('plain text, not a document') })).rejects.toThrow(+ 'This file could not be read as a Word document (.docx).',+ );+ });+});diff --git a/packages/pieces/core/word-documents/tsconfig.json b/packages/pieces/core/word-documents/tsconfig.jsonnew file mode 100644index 00000000000..059cd816618--- /dev/null+++ b/packages/pieces/core/word-documents/tsconfig.json@@ -0,0 +1,19 @@+{+ "extends": "../../../../tsconfig.base.json",+ "compilerOptions": {+ "module": "commonjs",+ "forceConsistentCasingInFileNames": true,+ "strict": true,+ "noImplicitOverride": true,+ "noPropertyAccessFromIndexSignature": true,+ "noImplicitReturns": true,+ "noFallthroughCasesInSwitch": true+ },+ "files": [],+ "include": [],+ "references": [+ {+ "path": "./tsconfig.lib.json"+ }+ ]+}diff --git a/packages/pieces/core/word-documents/tsconfig.lib.json b/packages/pieces/core/word-documents/tsconfig.lib.jsonnew file mode 100644index 00000000000..0ba4caeb858--- /dev/null+++ b/packages/pieces/core/word-documents/tsconfig.lib.json@@ -0,0 +1,15 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "module": "commonjs",+ "rootDir": ".",+ "baseUrl": ".",+ "paths": {},+ "outDir": "./dist",+ "declaration": true,+ "declarationMap": true,+ "types": ["node"]+ },+ "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],+ "include": ["src/**/*.ts"]+}diff --git a/packages/pieces/core/word-documents/tsconfig.spec.json b/packages/pieces/core/word-documents/tsconfig.spec.jsonnew file mode 100644index 00000000000..ca2d406eae7--- /dev/null+++ b/packages/pieces/core/word-documents/tsconfig.spec.json@@ -0,0 +1,16 @@+{+ "extends": "./tsconfig.json",+ "compilerOptions": {+ "outDir": "../../dist/out-tsc",+ "module": "commonjs",+ "types": ["vitest/globals", "node"],+ "allowSyntheticDefaultImports": true+ },+ "include": [+ "vitest.config.ts",+ "src/**/*.test.ts",+ "src/**/*.spec.ts",+ "src/**/*.d.ts",+ "test/**/*.ts"+ ]+}diff --git a/packages/pieces/core/word-documents/vitest.config.ts b/packages/pieces/core/word-documents/vitest.config.tsnew file mode 100644index 00000000000..f520fc14113--- /dev/null+++ b/packages/pieces/core/word-documents/vitest.config.ts@@ -0,0 +1,18 @@+import path from 'path'+import { defineConfig } from 'vitest/config'++const repoRoot = path.resolve(__dirname, '../../../..')++export default defineConfig({+ test: {+ globals: true,+ environment: 'node',+ },+ resolve: {+ alias: {+ '@activepieces/shared': path.resolve(repoRoot, 'packages/core/shared/src/index.ts'),+ '@activepieces/pieces-framework': path.resolve(repoRoot, 'packages/pieces/framework/src/index.ts'),+ '@activepieces/pieces-common': path.resolve(repoRoot, 'packages/pieces/common/src/index.ts'),+ },+ },+})diff --git a/tsconfig.base.json b/tsconfig.base.jsonindex 09c041554df..6035fb21ba4 100644--- a/tsconfig.base.json+++ b/tsconfig.base.json@@ -1546,6 +1546,9 @@"@activepieces/piece-wootric": ["packages/pieces/community/wootric/src/index.ts"],+ "@activepieces/piece-word-documents": [+ "packages/pieces/core/word-documents/src/index.ts"+ ],"@activepieces/piece-wordpress": ["packages/pieces/community/wordpress/src/index.ts"],