From 7207b4835f0318eafdd2fc7a5871062f499c341f Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 18:30:21 -0400 Subject: [PATCH 01/71] Squashed commit of the following: commit be28a301190b03a6203d6aba56cbdbf1f9054e19 Author: Adam Michael Thompson Date: Mon May 12 18:14:29 2025 -0400 prompt kit commit 5ab7438277fb0656f8419e38c7e963f16ee24023 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:45:53 2025 -0400 Updates build scripts & devDeps (#2856) * rm direct build warning * Update turbo.json * Update .npmrc * update build scripts * Update all-lg-build-dev-dep.md commit 50a887460135457564a817e2279afd59545776c7 Merge: 133082e8d b78b7a945 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:14:25 2025 -0400 Merge branch 'main' into integration/tooling commit 133082e8d3a0edf9fc2b41edaa408c3017c5603a Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:13:48 2025 -0400 rm prebuild (#2855) commit b78b7a945ccf77763e7ca5926a60d5d9c20b01ca Author: Stephen Lee Date: Mon May 12 11:55:08 2025 -0700 feat(prompt-kit): create @lg-tools/prompt-kit and add lg inject-prompts-vscode cli command (#2845) * feat(prompt-kit): create @lg-tools/prompt-kit package with custom instructions for code, test, and commit message generation * feat(prompt-kit): add VS Code settings configuration and merge-editor-settings function * chore: install @lg-tools/prompt-kit * feat(prompt-kit): integrate @lg-tools/prompt-kit into CLI and update tsconfig * docs: update README with usage instructions and steps for injecting prompts into VS Code * refactor(prompt-kit): rename inject-prompts-vscode command to merge-prompts-vscode and update related code commit 92fafc8762e1013520f1d7ce7418e79b871295cb Author: Stephen Lee Date: Fri May 9 09:32:00 2025 -0700 [LG-5015] chore(codemods): bump jscodeshift to 17.3.0 (#2839) * chore(codemods): bump jscodeshift to 17.3.0 * Changeset commit 3a1b7704aeaf42608d4c92c8a02d3a7184f496ae Author: Terrence Keane Date: Thu May 8 14:05:50 2025 -0400 chore(charts): adjust chromatic diffThreshold for charts (#2844) * chore(charts): adjust chromatic diffThreshold for charts * chore(drag-provider): update chromatic diffThreshold for canvas rendering commit 4a34d68dd1deb32f805109b4ec5089043524b335 Author: Stephen Lee Date: Wed May 7 12:23:36 2025 -0700 chore(copilot): introduce custom instructions for code gen, test gen, and commit message gen (#2838) * chore: modify STYLEGUIDE * chore(copilot): add custom instructions for code generation * chore(copilot): add custom instructions for test generation * chore(copilot): add custom instructions for commit message generation commit eca6e3fdcb0a2b0e838969c3ed458489f26cf1a6 Author: Brooke Scarlett Yalof Date: Thu May 1 13:38:19 2025 -0400 Adds streaming icon to glyph set (#2835) commit 2d6001156c9e23520d9f6df9525c2a7e6090a801 Merge: 0f4319764 4625cc76a Author: Adam Michael Thompson Date: Thu May 1 13:18:34 2025 -0400 Merge branch 'main' into integration/tooling commit 0f43197644859a7481a28ef105db871e434a93f8 Merge: 633623e6e d72935ee8 Author: Adam Michael Thompson Date: Thu May 1 12:39:03 2025 -0400 Merge branch 'main' into integration/tooling commit 633623e6eef0f4022d532ec737d76ff5d4099ce5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 19:19:10 2025 -0400 2b. Updates UMD build config (#2825) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * update typesVersions * lint * lint console * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Updates rollup config to output UMD directory * updates main package.json entries * updates /bin * updates palette rollup config * Update pnpm-lock.yaml * ts-expect-error * restores missing deps * Update icon & testing lib * Update storybook addon rollup.config.mjs * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * Update pnpm-lock.yaml * fix missing packages * 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build * update cli require path * Squashed commit of the following: commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Update pnpm-lock.yaml * fixes missing deps * Update preset.js * update preview.js commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration --- .changeset/build-tsconfig-bundler.md | 1 + .changeset/build-tsconfig-configDir.md | 2 +- .vscode/settings.json | 6 +-- charts/core/tsconfig.json | 10 ++++- chat/lg-markdown/tsconfig.json | 2 + packages/code/package.json | 14 +----- .../code/src/testing/getTestUtils.types.ts | 2 +- packages/code/tsconfig.json | 23 +++++++--- packages/gallery-indicator/package.json | 13 ------ packages/select/package.json | 21 ++------- packages/table/package.json | 21 ++------- packages/tabs/package.json | 17 +------- packages/text-area/package.json | 18 +------- packages/text-input/package.json | 18 +------- packages/toggle/package.json | 14 +----- .../typography/src/InlineCode/InlineCode.tsx | 3 +- tools/build/config/rollup.config.mjs | 43 ++++++++----------- tools/build/package.json | 6 +-- .../typescript/downlevel/TYPES_VERSIONS.ts | 1 - .../src/typescript/downlevel/downlevel-dts.ts | 2 +- tools/link/package.json | 2 +- tools/lint/package.json | 2 +- tools/lint/tsconfig.json | 4 +- tools/prompt-kit/package.json | 3 +- .../src/settings/vscode/settings.json | 6 +-- tools/slackbot/package.json | 2 +- tools/storybook-addon/package.json | 33 +------------- tools/storybook-addon/preset.js | 7 +++ tools/storybook-decorators/tsconfig.json | 23 +--------- tools/test-harnesses/package.json | 2 +- tools/test/package.json | 2 +- tools/update/package.json | 4 +- 32 files changed, 95 insertions(+), 232 deletions(-) diff --git a/.changeset/build-tsconfig-bundler.md b/.changeset/build-tsconfig-bundler.md index 90a2a906a9..e6b6653777 100644 --- a/.changeset/build-tsconfig-bundler.md +++ b/.changeset/build-tsconfig-bundler.md @@ -3,3 +3,4 @@ --- Updates `package.tsconfig.json` "moduleResolution" to "bundler", and "target" to "ES2020" + diff --git a/.changeset/build-tsconfig-configDir.md b/.changeset/build-tsconfig-configDir.md index fa7ca7da5f..5f91344f36 100644 --- a/.changeset/build-tsconfig-configDir.md +++ b/.changeset/build-tsconfig-configDir.md @@ -3,4 +3,4 @@ --- - Updates default types directory to `./dist/types` -- Uses "${configDir}" in base package.json baseUrl, rootDir, outDir, & declarationDir properties +- Uses "${configDir}" in base package.json baseUrl, rootDir, outDir, & declarationDir properties \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index a5ee68ce65..0c350a82c5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,17 +18,17 @@ "typescript.preferences.importModuleSpecifier": "project-relative", "github.copilot.chat.codeGeneration.instructions": [ { - "file": "node_modules/@lg-tools/prompt-kit/src/prompts/codeGeneration.md" + "file": ".github/copilotInstructions/codeGeneration.md" } ], "github.copilot.chat.commitMessageGeneration.instructions": [ { - "file": "node_modules/@lg-tools/prompt-kit/src/prompts/commitMessageGeneration.md" + "file": ".github/copilotInstructions/commitMessageGeneration.md" } ], "github.copilot.chat.testGeneration.instructions": [ { - "file": "node_modules/@lg-tools/prompt-kit/src/prompts/testGeneration.md" + "file": ".github/copilotInstructions/testGeneration.md" } ] } diff --git a/charts/core/tsconfig.json b/charts/core/tsconfig.json index 0f776e1771..67b3203b57 100644 --- a/charts/core/tsconfig.json +++ b/charts/core/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { + "moduleResolution": "node", "paths": { "@leafygreen-ui/icon/dist/*": [ "../../packages/icon/src/generated/*" @@ -10,8 +11,13 @@ ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../chart-card" diff --git a/chat/lg-markdown/tsconfig.json b/chat/lg-markdown/tsconfig.json index 76def3a27d..8575400771 100644 --- a/chat/lg-markdown/tsconfig.json +++ b/chat/lg-markdown/tsconfig.json @@ -1,6 +1,8 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { + "moduleResolution": "node", + "paths": { "@leafygreen-ui/icon/dist/*": [ "../../packages/icon/src/generated/*" diff --git a/packages/code/package.json b/packages/code/package.json index 43b4179480..54922c87d9 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -1,23 +1,11 @@ { "name": "@leafygreen-ui/code", - "version": "18.1.0", + "version": "18.0.4", "description": "leafyGreen UI Kit Code Blocks", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "require": "./dist/umd/testing/index.js", - "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", diff --git a/packages/code/src/testing/getTestUtils.types.ts b/packages/code/src/testing/getTestUtils.types.ts index c355561625..f217fc11d7 100644 --- a/packages/code/src/testing/getTestUtils.types.ts +++ b/packages/code/src/testing/getTestUtils.types.ts @@ -1,5 +1,5 @@ import { GetTestUtilsReturnType as GetButtonTestUtilsReturnType } from '@leafygreen-ui/button'; -import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select/testing'; +import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select'; export interface TestUtilsReturnType { /** diff --git a/packages/code/tsconfig.json b/packages/code/tsconfig.json index 8966e9259e..514354c813 100644 --- a/packages/code/tsconfig.json +++ b/packages/code/tsconfig.json @@ -1,14 +1,27 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { + "moduleResolution": "node", "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"], - "highlight.js": ["./node_modules/highlight.js"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ], + "highlight.js": [ + "./node_modules/highlight.js" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*", "node_modules"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*", + "node_modules" + ], "references": [ { "path": "../a11y" diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index 72abf45ca4..07d93fc85b 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -5,19 +5,6 @@ "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", - "typesVersions": {}, - "exports": { - ".": { - "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "license": "Apache-2.0", "scripts": { "build": "lg-build bundle", diff --git a/packages/select/package.json b/packages/select/package.json index 63bf3f2af3..7f0fd619b0 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -1,23 +1,11 @@ { "name": "@leafygreen-ui/select", - "version": "14.1.8", + "version": "14.1.7", "description": "leafyGreen UI Kit Select", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "require": "./dist/umd/testing/index.js", - "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", @@ -46,8 +34,7 @@ "react-is": "^18.0.1" }, "peerDependencies": { - "@leafygreen-ui/leafygreen-provider": "workspace:^", - "@lg-tools/build": "workspace:^" + "@leafygreen-ui/leafygreen-provider": "workspace:^" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/select", "repository": { @@ -57,7 +44,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": { - "@lg-tools/build": "workspace:^" - } + "devDependencies": {} } diff --git a/packages/table/package.json b/packages/table/package.json index 9529f0081a..9cd5f2d609 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -1,23 +1,11 @@ { "name": "@leafygreen-ui/table", - "version": "13.1.10", + "version": "13.1.9", "description": "leafyGreen UI Kit Table", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "require": "./dist/umd/testing/index.js", - "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", @@ -47,14 +35,13 @@ "react-intersection-observer": "^8.25.1" }, "devDependencies": { - "@emotion/styled": "^11.14.0", "@faker-js/faker": "^8.0.0", - "@leafygreen-ui/badge": "workspace:^", - "@leafygreen-ui/button": "workspace:^", "@leafygreen-ui/code": "workspace:^", + "@leafygreen-ui/button": "workspace:^", + "@leafygreen-ui/badge": "workspace:^", "@leafygreen-ui/pagination": "workspace:^", "@leafygreen-ui/tooltip": "workspace:^", - "@lg-tools/build": "workspace:^" + "@emotion/styled": "^11.14.0" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 33421b9266..9021f108e7 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -1,23 +1,11 @@ { "name": "@leafygreen-ui/tabs", - "version": "14.2.5", + "version": "14.2.4", "description": "leafyGreen UI Kit Tabs", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "require": "./dist/umd/testing/index.js", - "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", @@ -55,7 +43,6 @@ "@leafygreen-ui/card": "workspace:^", "@leafygreen-ui/icon": "workspace:^", "@leafygreen-ui/icon-button": "workspace:^", - "@leafygreen-ui/tooltip": "workspace:^", - "@lg-tools/build": "workspace:^" + "@leafygreen-ui/tooltip": "workspace:^" } } diff --git a/packages/text-area/package.json b/packages/text-area/package.json index ff1aa423f2..f9d4960a96 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -1,23 +1,11 @@ { "name": "@leafygreen-ui/text-area", - "version": "10.0.12", + "version": "10.0.11", "description": "leafyGreen UI Kit Text Area", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "require": "./dist/umd/testing/index.js", - "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", @@ -49,7 +37,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": { - "@lg-tools/build": "workspace:^" - } + "devDependencies": {} } diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 58d26c6112..0f0662fe48 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -1,23 +1,11 @@ { "name": "@leafygreen-ui/text-input", - "version": "14.0.13", + "version": "14.0.12", "description": "leafyGreen UI Kit Text Input", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "require": "./dist/umd/testing/index.js", - "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", @@ -47,7 +35,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": { - "@lg-tools/build": "workspace:^" - } + "devDependencies": {} } diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 40a1316d8b..b07d21c22a 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -1,23 +1,11 @@ { "name": "@leafygreen-ui/toggle", - "version": "11.0.10", + "version": "11.0.9", "description": "LeafyGreen UI Kit Toggle", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" - }, - "./testing": { - "require": "./dist/umd/testing/index.js", - "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" - } - }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", diff --git a/packages/typography/src/InlineCode/InlineCode.tsx b/packages/typography/src/InlineCode/InlineCode.tsx index 1f5134f624..c6a29b8d2a 100644 --- a/packages/typography/src/InlineCode/InlineCode.tsx +++ b/packages/typography/src/InlineCode/InlineCode.tsx @@ -21,7 +21,6 @@ import { nowrap, } from './InlineCode.styles'; import { BaseInlineCodeProps } from './InlineCode.types'; -import { getChildrenLength } from './utils'; const InlineCode = InferredPolymorphic( ( @@ -39,7 +38,7 @@ const InlineCode = InferredPolymorphic( const baseFontSize = useUpdatedBaseFontSize(baseFontSizeOverride); const { Component } = useInferredPolymorphic(as, rest, 'code'); - const charsCount = getChildrenLength(children); + const charsCount = children.match(/./gu)?.length ?? 0; const whiteSpace = charsCount <= 30 ? nowrap : normal; const needsWrapper = Component !== 'code'; diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index 400887c21c..35789f4304 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -11,7 +11,6 @@ import { nodeExternals } from 'rollup-plugin-node-externals'; import nodePolyfills from 'rollup-plugin-polyfill-node'; import { getUMDGlobals } from './utils/getUMDGlobals.mjs'; -import { defaultsDeep } from 'lodash-es'; const extensions = ['.ts', '.tsx']; const testUtilsFilename = 'src/testing/index.ts'; @@ -29,19 +28,13 @@ const { name } = createRequire(import.meta.url)( const external = [/node_modules/]; const moduleFormatToDirectory = { - esm: 'dist/esm', + esm: 'dist/esm/', umd: 'dist/umd', }; const doTestUtilsExist = glob.sync(testUtilsFilename).length > 0; -/** - * - * @param {'esm' | 'umd'} format - * @param {*} overrides - * @returns - */ -const createConfigForFormat = (format, overrides) => { +const createConfigForFormat = format => { const formatConfig = { input: ['src/index.ts'], output: { @@ -79,8 +72,14 @@ const createConfigForFormat = (format, overrides) => { }, }; - const finalConfig = defaultsDeep({}, overrides, formatConfig); - return finalConfig; + // Add code-splitting for test utils to ESM build if they exist + if (format === 'esm' && doTestUtilsExist) { + formatConfig.input.push(testUtilsFilename); + } + + return { + ...formatConfig, + }; }; const esmConfig = createConfigForFormat('esm'); @@ -90,20 +89,14 @@ const defaultConfig = [esmConfig, umdConfig]; // Add additional entry point to UMD build for test-utils if they exist doTestUtilsExist && - defaultConfig.push( - createConfigForFormat('esm', { - input: testUtilsFilename, - output: { - dir: `${moduleFormatToDirectory['esm']}/testing`, - }, - }), - createConfigForFormat('umd', { - input: testUtilsFilename, - output: { - dir: `${moduleFormatToDirectory['umd']}/testing`, - }, - }), - ); + defaultConfig.push({ + ...umdConfig, + input: testUtilsFilename, + output: { + ...umdConfig.output, + dir: 'dist/testing', + }, + }); // FIXME: Figure out a way to get rid of this. // Creates a super-hacky `stories` bundle diff --git a/tools/build/package.json b/tools/build/package.json index fc77f6595e..3b2b2efd83 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -14,8 +14,8 @@ "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "./scripts/build.sh", - "tsc": "./scripts/build-ts.sh" + "build": "scripts/build.sh", + "tsc": "scripts/build-ts.sh" }, "dependencies": { "@babel/core": "7.24.3", @@ -29,6 +29,7 @@ "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-node-resolve": "15.1.0", "@rollup/plugin-terser": "0.4.3", + "@rollup/plugin-url": "8.0.1", "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0", "@svgr/cli": "8.0.1", "@svgr/rollup": "^8.1.0", @@ -41,7 +42,6 @@ "fs-extra": "11.1.1", "glob": "10.3.12", "lodash": "4.17.21", - "lodash-es": "^4.17.21", "react-docgen-typescript": "2.2.2", "rollup": "4.16.1", "rollup-plugin-bundle-stats": "^4.18.2", diff --git a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts index 90aef9184c..d8f9f2c3ed 100644 --- a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts +++ b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts @@ -6,7 +6,6 @@ interface DownlevelVersion { } // TS Downlevel mapping -// Note, conditions should be listed in order (i.e. as if they were multiple cascading `if` statements) export const DOWNLEVEL_VERSIONS = [ // No downlevelling for now ] as const satisfies Readonly>; diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index 14ae902bbc..50ad6a83da 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -30,7 +30,7 @@ export async function downlevelDts( const packageDir = process.cwd(); // Default to types directory if not specified - const typesDirPath = path.resolve(packageDir, 'dist/types'); + const typesDirPath = path.resolve(packageDir, 'dist'); // Default output directory const defaultOutDir = `ts${target}`; diff --git a/tools/link/package.json b/tools/link/package.json index 0a69f47773..abbc2be1d1 100644 --- a/tools/link/package.json +++ b/tools/link/package.json @@ -4,7 +4,7 @@ "description": "Tools for linking LeafyGreen packages", "license": "Apache-2.0", "main": "./dist/umd/index.js", - "module": "./dist/esm/index.js", + "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", diff --git a/tools/lint/package.json b/tools/lint/package.json index 81539082f3..982f991a4d 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -3,7 +3,7 @@ "version": "2.1.1", "description": "Lint rules & config for LeafyGreen repositories", "main": "./dist/umd/index.js", - "module": "./dist/esm/index.js", + "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { diff --git a/tools/lint/tsconfig.json b/tools/lint/tsconfig.json index 4e549bd884..3aba5d4c1d 100644 --- a/tools/lint/tsconfig.json +++ b/tools/lint/tsconfig.json @@ -1,8 +1,6 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": {}, - "include": [ - "src/**/*" - ], + "include": ["src/**/*"], "exclude": ["**/*.spec.*", "**/*.stories.*"] } diff --git a/tools/prompt-kit/package.json b/tools/prompt-kit/package.json index 8bd52d1603..cf4c0859ac 100644 --- a/tools/prompt-kit/package.json +++ b/tools/prompt-kit/package.json @@ -1,6 +1,7 @@ + { "name": "@lg-tools/prompt-kit", - "version": "0.2.0", + "version": "0.1.0", "description": "Prompts for personalizing LLM usage", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", diff --git a/tools/prompt-kit/src/settings/vscode/settings.json b/tools/prompt-kit/src/settings/vscode/settings.json index 24d94481cd..703dd75fc0 100644 --- a/tools/prompt-kit/src/settings/vscode/settings.json +++ b/tools/prompt-kit/src/settings/vscode/settings.json @@ -1,17 +1,17 @@ { "github.copilot.chat.codeGeneration.instructions": [ { - "file": "node_modules/@lg-tools/prompt-kit/src/prompts/codeGeneration.md" + "file": ".github/copilotInstructions/codeGeneration.md" } ], "github.copilot.chat.commitMessageGeneration.instructions": [ { - "file": "node_modules/@lg-tools/prompt-kit/src/prompts/commitMessageGeneration.md" + "file": ".github/copilotInstructions/commitMessageGeneration.md" } ], "github.copilot.chat.testGeneration.instructions": [ { - "file": "node_modules/@lg-tools/prompt-kit/src/prompts/testGeneration.md" + "file": ".github/copilotInstructions/testGeneration.md" } ] } diff --git a/tools/slackbot/package.json b/tools/slackbot/package.json index e866b6b7a5..664ee70d71 100644 --- a/tools/slackbot/package.json +++ b/tools/slackbot/package.json @@ -7,7 +7,7 @@ "lg-slackbot": "./bin/slackbot.js" }, "main": "./dist/umd/index.js", - "module": "./dist/esm/index.js", + "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 25651ac55a..fc81bf7d4b 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -1,40 +1,11 @@ { "name": "@lg-tools/storybook-addon", - "version": "0.4.2", + "version": "0.4.1", "description": "Storybook Addon for LeafyGreen UI Kit", - "license": "Apache-2.0", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", - "exports": { - ".": { - "types": "./dist/types/index.d.ts", - "node": "./dist/umd/index.js", - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js" - }, - "./main": { - "types": "./dist/types/main.d.ts", - "node": "./dist/umd/main.js", - "require": "./dist/umd/main.js", - "import": "./dist/esm/main.js" - }, - "./manager": { - "types": "./dist/types/manager.d.ts", - "node": "./dist/umd/manager.js", - "require": "./dist/umd/manager.js", - "import": "./dist/esm/manager.js" - }, - "./preview": { - "types": "./dist/types/preview.d.ts", - "node": "./dist/umd/preview.js", - "require": "./dist/umd/preview.js", - "import": "./dist/esm/preview.js" - }, - "./preset": "./preset.js", - "./package.json": "./package.json" - }, - "files": ["dist/**/*", "*.js", "*.d.ts", "README.md", "package.json", "preset.js"], + "license": "Apache-2.0", "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", diff --git a/tools/storybook-addon/preset.js b/tools/storybook-addon/preset.js index b6ffe70bc7..5600f99e4d 100644 --- a/tools/storybook-addon/preset.js +++ b/tools/storybook-addon/preset.js @@ -1,2 +1,9 @@ // @ts-nocheck module.exports = require('./dist/umd/index.js'); + +/** + * We also export named arrays for any files we want to use for default + * `preview.js` and `manager.js` settings + */ +module.exports.previewAnnotations = [require.resolve('./dist/umd/preview.js')]; +module.exports.managerEntries = [require.resolve('./dist/umd/manager.js')]; diff --git a/tools/storybook-decorators/tsconfig.json b/tools/storybook-decorators/tsconfig.json index 927b75559b..23b516da23 100644 --- a/tools/storybook-decorators/tsconfig.json +++ b/tools/storybook-decorators/tsconfig.json @@ -4,26 +4,5 @@ "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], - - "references": [ - { - "path": "../../packages/banner" - }, - { - "path": "../../packages/emotion" - }, - { - "path": "../../packages/palette" - }, - { - "path": "../../packages/tokens" - }, - { - "path": "../../tools/build" - }, - { - "path": "../../tools/storybook-utils" - }, - ], + "exclude": ["**/*.spec.*", "**/*.stories.*"] } diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 6451fbf4a2..45a374218b 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -4,7 +4,7 @@ "description": "Test harnesses for LeafyGreen repositories", "license": "Apache-2.0", "main": "./dist/umd/index.js", - "module": "./dist/esm/index.js", + "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", diff --git a/tools/test/package.json b/tools/test/package.json index 23d1fb9135..2a5c6bef9f 100644 --- a/tools/test/package.json +++ b/tools/test/package.json @@ -4,7 +4,7 @@ "description": "Jest setup & config for LeafyGreen repositories", "license": "Apache-2.0", "main": "./dist/umd/index.js", - "module": "./dist/esm/index.js", + "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", diff --git a/tools/update/package.json b/tools/update/package.json index 2d639167b3..ccd5832bde 100644 --- a/tools/update/package.json +++ b/tools/update/package.json @@ -2,8 +2,8 @@ "name": "@lg-tools/update", "version": "0.1.17", "description": "Updates all LeafyGreen UI packages to the latest version", - "main": "./dist/umd/index.js", - "module": "./dist/esm/index.js", + "main": "dist/umd/index.js", + "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { From ba3a0d9a46f4d2592a78e80941ea8f2765b3d3e6 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 14:57:39 -0400 Subject: [PATCH 02/71] Create Dockerfile --- apps/chatbot-server/Dockerfile | 25 +++++++++++++++++++++++++ apps/chatbot-server/package.json | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 apps/chatbot-server/Dockerfile diff --git a/apps/chatbot-server/Dockerfile b/apps/chatbot-server/Dockerfile new file mode 100644 index 0000000000..7b1fa2390c --- /dev/null +++ b/apps/chatbot-server/Dockerfile @@ -0,0 +1,25 @@ +# Use Node.js 20 as the base image +FROM node:20-alpine + +# Expects the context `./` to be the root of the monorepo +# and expects the package to be built + +COPY ./apps/chatbot-server ./apps/chatbot-server + +# Copy the node_modules directory from the root +COPY node_modules ./node_modules + +# Install pnpm globally +RUN npm install -g pnpm@9.15.6 + +# Set the working directory to the chatbot-server +WORKDIR ./apps/chatbot-server + +# Expose port 3030 +EXPOSE 3030 + +# Set environment variable to use port 3030 +ENV PORT=3030 + +# Start the server +CMD ["pnpm", "start"] \ No newline at end of file diff --git a/apps/chatbot-server/package.json b/apps/chatbot-server/package.json index 74065a5e09..316d398d43 100644 --- a/apps/chatbot-server/package.json +++ b/apps/chatbot-server/package.json @@ -12,7 +12,11 @@ "build": "lg build-package", "tsc": "lg build-ts", "ingest": "pnpm build && ingest all --config ./dist/esm/ingest.config.js", - "dev": "tsx src/index.ts" + "dev": "tsx src/index.ts", + "start": "node dist/esm/index.js", + "docker:build": "pnpm run build && docker build -t chatbot-server --file ./Dockerfile ../..", + "docker:prune": "docker builder prune --filter \"label=app=chatbot-server\" -f", + "docker:start": "docker run -p 3030:3030 chatbot-server" }, "keywords": [], "author": "", From 853620c98a37e5946e71cc6a7afa7b363cade798 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 14:57:51 -0400 Subject: [PATCH 03/71] tsx --- pnpm-lock.yaml | 3 +++ tools/install/package.json | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e6ff58f27..2650cb9387 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3535,6 +3535,9 @@ importers: fs-extra: specifier: ^11.3.0 version: 11.3.0 + tsx: + specifier: ^4.19.4 + version: 4.19.4 tools/link: dependencies: diff --git a/tools/install/package.json b/tools/install/package.json index ae52be5c60..4cd8fa3379 100644 --- a/tools/install/package.json +++ b/tools/install/package.json @@ -7,7 +7,7 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "prebuild": "npx ts-node ./scripts/writePackageNames.ts", + "prebuild": "tsx ./scripts/writePackageNames.ts", "build": "lg-build bundle", "tsc": "lg-build tsc" }, @@ -24,7 +24,8 @@ }, "devDependencies": { "@lg-tools/lint": "workspace:^", - "fs-extra": "^11.3.0" + "fs-extra": "^11.3.0", + "tsx": "^4.19.4" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/install", "repository": { From b221a9086fbd4e4c8c3223fa4130c203c32e4337 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 15:02:40 -0400 Subject: [PATCH 04/71] Create .drone.yml --- apps/chatbot-server/.drone.yml | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 apps/chatbot-server/.drone.yml diff --git a/apps/chatbot-server/.drone.yml b/apps/chatbot-server/.drone.yml new file mode 100644 index 0000000000..6c7f430c65 --- /dev/null +++ b/apps/chatbot-server/.drone.yml @@ -0,0 +1,44 @@ +--- +kind: pipeline +type: kubernetes +name: default +platform: + arch: arm64 + +trigger: + branch: + - main + +steps: + - name: publish + image: plugins/kaniko-ecr + settings: + create_repository: true + registry: 795250896452.dkr.ecr.us-east-1.amazonaws.com + repo: skunkworks/${DRONE_REPO_NAME} + tags: + - git-${DRONE_COMMIT_SHA:0:7} + - latest + access_key: + from_secret: ecr_access_key + secret_key: + from_secret: ecr_secret_key + when: + event: + - push + + - name: deploy-staging + image: public.ecr.aws/kanopy/drone-helm:v3 + settings: + chart: mongodb/web-app + chart_version: 4.25.0 + add_repos: [mongodb=https://10gen.github.io/helm-charts] + namespace: skunkworks + release: lg-chatbot-server + values: arch=arm64,image.tag=git-${DRONE_COMMIT_SHA:0:7},image.repository=795250896452.dkr.ecr.us-east-1.amazonaws.com/skunkworks/${DRONE_REPO_NAME},ingress.enabled=true,ingress.hosts[0]=lg-chatbot-server.skunkworks.staging.corp.mongodb.com,mesh.enabled=true + api_server: https://api.staging.corp.mongodb.com + kubernetes_token: + from_secret: staging_kubernetes_token + when: + event: + - push From 8885d0d0e79727b6fe794984a98b6b370b672d34 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 15:22:45 -0400 Subject: [PATCH 05/71] Update .env.example --- apps/chatbot-server/.env.example | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/apps/chatbot-server/.env.example b/apps/chatbot-server/.env.example index d509c9450c..4659d56709 100644 --- a/apps/chatbot-server/.env.example +++ b/apps/chatbot-server/.env.example @@ -20,4 +20,18 @@ AZURE_OPENAI_API_EMBEDDING_DEPLOYMENT_URL=https://.openai.azure.c AZURE_OPENAI_CHAT_COMPLETION_MODEL=gpt-4.1 AZURE_OPENAI_API_CHAT_COMPLETION_DEPLOYMENT_NAME=gpt-4.1 -AZURE_OPENAI_API_CHAT_COMPLETION_DEPLOYMENT_URL=https://.openai.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2025-01-01-preview \ No newline at end of file +AZURE_OPENAI_API_CHAT_COMPLETION_DEPLOYMENT_URL=https://.openai.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2025-01-01-preview + +# DEPLOYMENT +NAMESPACE=skunkworks + +# Set the KUBECONFIG context +# ``` +# kubectl config use-context api.staging.corp.mongodb.com +# kubectl config set-context --current --namespace=$NAMESPACE +# ``` + +# Run the following command to get the tokens +staging_kubernetes_token=`kubectl get secret kanopy-cicd-token -o jsonpath="{.data.token}" | base64 --decode && echo` +ecr_access_key=`kubectl get secret ecr -o jsonpath="{.data.ecr_access_key}" | base64 --decode && echo` +ecr_secret_key=`kubectl get secret ecr -o jsonpath="{.data.ecr_secret_key}" | base64 --decode && echo` From 855f900e909d1307fe85d6f12c88ce4009e12924 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 15:48:39 -0400 Subject: [PATCH 06/71] mv drone config --- apps/chatbot-server/.drone.yml => .drone.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename apps/chatbot-server/.drone.yml => .drone.yml (100%) diff --git a/apps/chatbot-server/.drone.yml b/.drone.yml similarity index 100% rename from apps/chatbot-server/.drone.yml rename to .drone.yml From 9293be53b156fd40270a38bc2000f8ccc81ab2e8 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 15:52:55 -0400 Subject: [PATCH 07/71] add dockerfile to .drone.yml --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 6c7f430c65..a958d9dd2c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,8 @@ platform: trigger: branch: - main + - integration/chat + - a/kanopy steps: - name: publish @@ -16,6 +18,7 @@ steps: create_repository: true registry: 795250896452.dkr.ecr.us-east-1.amazonaws.com repo: skunkworks/${DRONE_REPO_NAME} + dockerfile: ./apps/chatbot-server/Dockerfile tags: - git-${DRONE_COMMIT_SHA:0:7} - latest From 3871f983a7511963c42bc4e4a2295e110bd4d926 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 16:49:55 -0400 Subject: [PATCH 08/71] Update .drone.yml --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a958d9dd2c..22b71b4a5f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,6 @@ platform: trigger: branch: - main - - integration/chat - a/kanopy steps: From 2aade57eb26645102212d6369c67f2b336a2f1ad Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 17:47:47 -0400 Subject: [PATCH 09/71] Squashed commit of the following: commit 50a887460135457564a817e2279afd59545776c7 Merge: 133082e8d b78b7a945 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:14:25 2025 -0400 Merge branch 'main' into integration/tooling commit 133082e8d3a0edf9fc2b41edaa408c3017c5603a Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:13:48 2025 -0400 rm prebuild (#2855) commit b78b7a945ccf77763e7ca5926a60d5d9c20b01ca Author: Stephen Lee Date: Mon May 12 11:55:08 2025 -0700 feat(prompt-kit): create @lg-tools/prompt-kit and add lg inject-prompts-vscode cli command (#2845) * feat(prompt-kit): create @lg-tools/prompt-kit package with custom instructions for code, test, and commit message generation * feat(prompt-kit): add VS Code settings configuration and merge-editor-settings function * chore: install @lg-tools/prompt-kit * feat(prompt-kit): integrate @lg-tools/prompt-kit into CLI and update tsconfig * docs: update README with usage instructions and steps for injecting prompts into VS Code * refactor(prompt-kit): rename inject-prompts-vscode command to merge-prompts-vscode and update related code commit 92fafc8762e1013520f1d7ce7418e79b871295cb Author: Stephen Lee Date: Fri May 9 09:32:00 2025 -0700 [LG-5015] chore(codemods): bump jscodeshift to 17.3.0 (#2839) * chore(codemods): bump jscodeshift to 17.3.0 * Changeset commit 3a1b7704aeaf42608d4c92c8a02d3a7184f496ae Author: Terrence Keane Date: Thu May 8 14:05:50 2025 -0400 chore(charts): adjust chromatic diffThreshold for charts (#2844) * chore(charts): adjust chromatic diffThreshold for charts * chore(drag-provider): update chromatic diffThreshold for canvas rendering commit 4a34d68dd1deb32f805109b4ec5089043524b335 Author: Stephen Lee Date: Wed May 7 12:23:36 2025 -0700 chore(copilot): introduce custom instructions for code gen, test gen, and commit message gen (#2838) * chore: modify STYLEGUIDE * chore(copilot): add custom instructions for code generation * chore(copilot): add custom instructions for test generation * chore(copilot): add custom instructions for commit message generation commit eca6e3fdcb0a2b0e838969c3ed458489f26cf1a6 Author: Brooke Scarlett Yalof Date: Thu May 1 13:38:19 2025 -0400 Adds streaming icon to glyph set (#2835) commit 2d6001156c9e23520d9f6df9525c2a7e6090a801 Merge: 0f4319764 4625cc76a Author: Adam Michael Thompson Date: Thu May 1 13:18:34 2025 -0400 Merge branch 'main' into integration/tooling commit 0f43197644859a7481a28ef105db871e434a93f8 Merge: 633623e6e d72935ee8 Author: Adam Michael Thompson Date: Thu May 1 12:39:03 2025 -0400 Merge branch 'main' into integration/tooling commit 633623e6eef0f4022d532ec737d76ff5d4099ce5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 19:19:10 2025 -0400 2b. Updates UMD build config (#2825) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * update typesVersions * lint * lint console * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Updates rollup config to output UMD directory * updates main package.json entries * updates /bin * updates palette rollup config * Update pnpm-lock.yaml * ts-expect-error * restores missing deps * Update icon & testing lib * Update storybook addon rollup.config.mjs * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * Update pnpm-lock.yaml * fix missing packages * 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build * update cli require path * Squashed commit of the following: commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Update pnpm-lock.yaml * fixes missing deps * Update preset.js * update preview.js commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a16a28693a..3bbbea2924 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@lg-tools/storybook-addon": "workspace:^", "@lg-tools/storybook-utils": "workspace:^", "@lg-tools/test": "workspace:^", - "@storybook/react": "^8.6.12", + "@storybook/react": "^8.5.3", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "13.5.0", "@types/jest": "^29.5.12", From b070ca22077d4acf4c49cc8e7f795ecf6bc16a14 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 17:56:25 -0400 Subject: [PATCH 10/71] restore updated package.json files --- apps/chatbot-server/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/chatbot-server/package.json b/apps/chatbot-server/package.json index 316d398d43..1fcc74099f 100644 --- a/apps/chatbot-server/package.json +++ b/apps/chatbot-server/package.json @@ -9,8 +9,8 @@ "access": "restricted" }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", + "build": "lg-build bundle", + "tsc": "lg-build tsc", "ingest": "pnpm build && ingest all --config ./dist/esm/ingest.config.js", "dev": "tsx src/index.ts", "start": "node dist/esm/index.js", @@ -32,6 +32,7 @@ "mongodb-rag-core": "^0.7.0" }, "devDependencies": { + "@lg-tools/build": "workspace:^", "mongodb-rag-ingest": "^0.3.1", "nodemon": "^3.0.1", "tsx": "^4.19.4", From a30b658cac230af7060a594f863d9bd306406626 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 18:16:20 -0400 Subject: [PATCH 11/71] crawler package.json --- tools/crawler/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/crawler/package.json b/tools/crawler/package.json index b1a932deef..e2bc3a5cbf 100644 --- a/tools/crawler/package.json +++ b/tools/crawler/package.json @@ -15,8 +15,8 @@ "lg-crawler": "./bin/cli.js" }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", + "build": "lg-build bundle", + "tsc": "lg-build tsc", "postbuild": "zip -r dist/lambda.zip dist/lambda.js node_modules package.json", "crawl": "tsx src/cli.ts crawl", "prune": "tsx src/cli.ts prune", From 8f421e080e9177cb6a99da8e3b0185ed15a9921f Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 19:06:12 -0400 Subject: [PATCH 12/71] dockerfile? --- .drone.yml | 1 + apps/chatbot-server/Dockerfile | 21 ++++++++++++++++++--- apps/chatbot-server/package.json | 2 +- tools/build/package.json | 4 ++-- tools/build/scripts/tsconfig.json | 8 -------- 5 files changed, 22 insertions(+), 14 deletions(-) delete mode 100644 tools/build/scripts/tsconfig.json diff --git a/.drone.yml b/.drone.yml index 22b71b4a5f..a958d9dd2c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,7 @@ platform: trigger: branch: - main + - integration/chat - a/kanopy steps: diff --git a/apps/chatbot-server/Dockerfile b/apps/chatbot-server/Dockerfile index 7b1fa2390c..35a56470af 100644 --- a/apps/chatbot-server/Dockerfile +++ b/apps/chatbot-server/Dockerfile @@ -4,14 +4,29 @@ FROM node:20-alpine # Expects the context `./` to be the root of the monorepo # and expects the package to be built -COPY ./apps/chatbot-server ./apps/chatbot-server +COPY ./apps/chatbot-server/ apps/chatbot-server/ -# Copy the node_modules directory from the root -COPY node_modules ./node_modules +# Copy package files and workspace configuration +COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./ + +# Copy all required directories with their content +COPY tools/ tools/ +COPY packages/ packages/ + +# Ensure the build scripts are executable +RUN chmod +x tools/build/scripts/build.sh +RUN chmod +x tools/build/scripts/build-ts.sh +RUN ls -la tools/build/scripts/ # Install pnpm globally RUN npm install -g pnpm@9.15.6 +# Install dependencies +RUN pnpm install --frozen-lockfile + +# Build the server +RUN pnpm build --filter "lg-chatbot-server" + # Set the working directory to the chatbot-server WORKDIR ./apps/chatbot-server diff --git a/apps/chatbot-server/package.json b/apps/chatbot-server/package.json index 1fcc74099f..00bbcbe107 100644 --- a/apps/chatbot-server/package.json +++ b/apps/chatbot-server/package.json @@ -14,7 +14,7 @@ "ingest": "pnpm build && ingest all --config ./dist/esm/ingest.config.js", "dev": "tsx src/index.ts", "start": "node dist/esm/index.js", - "docker:build": "pnpm run build && docker build -t chatbot-server --file ./Dockerfile ../..", + "docker:build": "docker build -t chatbot-server --file ./Dockerfile ../..", "docker:prune": "docker builder prune --filter \"label=app=chatbot-server\" -f", "docker:start": "docker run -p 3030:3030 chatbot-server" }, diff --git a/tools/build/package.json b/tools/build/package.json index 3b2b2efd83..e064bdcb2f 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -14,8 +14,8 @@ "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "scripts/build.sh", - "tsc": "scripts/build-ts.sh" + "build": "./scripts/build.sh", + "tsc": "./scripts/build-ts.sh" }, "dependencies": { "@babel/core": "7.24.3", diff --git a/tools/build/scripts/tsconfig.json b/tools/build/scripts/tsconfig.json deleted file mode 100644 index cfac9cffbf..0000000000 --- a/tools/build/scripts/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../config/script.tsconfig.json", - "compilerOptions": { - "noUnusedLocals": false, - "strict": true, - "baseUrl": ".", - } -} From efab9c2db55382e1e6f5734cf033354d834d353c Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 17:52:32 -0400 Subject: [PATCH 13/71] Update pnpm-lock.yaml --- pnpm-lock.yaml | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2650cb9387..f5cfdd24d4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,7 +51,7 @@ importers: specifier: workspace:^ version: link:tools/test '@storybook/react': - specifier: ^8.6.12 + specifier: ^8.5.3 version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.8.3) '@testing-library/react': specifier: ^14.0.0 @@ -141,6 +141,9 @@ importers: specifier: ^0.7.0 version: 0.7.0(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build mongodb-rag-ingest: specifier: ^0.3.1 version: 0.3.1(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) @@ -2691,10 +2694,6 @@ importers: react-is: specifier: ^18.0.1 version: 18.2.0 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../../tools/build packages/side-nav: dependencies: @@ -2931,9 +2930,6 @@ importers: '@leafygreen-ui/tooltip': specifier: workspace:^ version: link:../tooltip - '@lg-tools/build': - specifier: workspace:^ - version: link:../../tools/build packages/tabs: dependencies: @@ -2986,9 +2982,6 @@ importers: '@leafygreen-ui/tooltip': specifier: workspace:^ version: link:../tooltip - '@lg-tools/build': - specifier: workspace:^ - version: link:../../tools/build packages/testing-lib: dependencies: @@ -3041,10 +3034,6 @@ importers: '@lg-tools/test-harnesses': specifier: workspace:^ version: link:../../tools/test-harnesses - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../../tools/build packages/text-input: dependencies: @@ -3072,10 +3061,6 @@ importers: '@lg-tools/test-harnesses': specifier: workspace:^ version: link:../../tools/test-harnesses - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../../tools/build packages/toast: dependencies: @@ -3291,6 +3276,9 @@ importers: '@rollup/plugin-terser': specifier: 0.4.3 version: 0.4.3(rollup@4.16.1) + '@rollup/plugin-url': + specifier: 8.0.1 + version: 8.0.1(rollup@4.16.1) '@svgr/babel-plugin-replace-jsx-attribute-value': specifier: 8.0.0 version: 8.0.0(@babel/core@7.24.3) @@ -3327,9 +3315,6 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 - lodash-es: - specifier: ^4.17.21 - version: 4.17.21 react-docgen-typescript: specifier: 2.2.2 version: 2.2.2(typescript@5.8.3) @@ -6443,6 +6428,15 @@ packages: rollup: optional: true + '@rollup/plugin-url@8.0.1': + resolution: {integrity: sha512-8ajztphXb5e19dk3Iwjtm2eSYJR8jFQubZ8pJ1GG2MBMM7/qUedLnZAN+Vt4jqbcT/m27jfjIBocvrzV0giNRw==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true + '@rollup/plugin-url@8.0.2': resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} engines: {node: '>=14.0.0'} @@ -17076,6 +17070,14 @@ snapshots: optionalDependencies: rollup: 4.16.1 + '@rollup/plugin-url@8.0.1(rollup@4.16.1)': + dependencies: + '@rollup/pluginutils': 5.0.2(rollup@4.16.1) + make-dir: 3.1.0 + mime: 3.0.0 + optionalDependencies: + rollup: 4.16.1 + '@rollup/plugin-url@8.0.2': dependencies: '@rollup/pluginutils': 5.0.2(rollup@4.16.1) @@ -21330,7 +21332,7 @@ snapshots: isstream: 0.1.2 jsonwebtoken: 9.0.2 mime-types: 2.1.35 - retry-axios: 2.6.0(axios@1.9.0) + retry-axios: 2.6.0(axios@1.9.0(debug@4.4.0)) tough-cookie: 4.1.3 transitivePeerDependencies: - supports-color @@ -25003,7 +25005,7 @@ snapshots: onetime: 7.0.0 signal-exit: 4.1.0 - retry-axios@2.6.0(axios@1.9.0): + retry-axios@2.6.0(axios@1.9.0(debug@4.4.0)): dependencies: axios: 1.9.0(debug@4.4.0) From 03ebec63651d53676b0e81af7ba06abde55c7caf Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 18:37:25 -0400 Subject: [PATCH 14/71] update build sh --- .changeset/build-sh.md | 5 +++++ tools/build/package.json | 4 ++-- tools/build/scripts/build-ts.sh | 20 +++++++++++++------- tools/build/scripts/build.sh | 2 +- 4 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 .changeset/build-sh.md diff --git a/.changeset/build-sh.md b/.changeset/build-sh.md new file mode 100644 index 0000000000..6f3ed4eedb --- /dev/null +++ b/.changeset/build-sh.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/build': patch +--- + +Updates build scripts to run with `sh` diff --git a/tools/build/package.json b/tools/build/package.json index e064bdcb2f..c624b49217 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -14,8 +14,8 @@ "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "./scripts/build.sh", - "tsc": "./scripts/build-ts.sh" + "build": "sh ./scripts/build.sh", + "tsc": "sh ./scripts/build-ts.sh" }, "dependencies": { "@babel/core": "7.24.3", diff --git a/tools/build/scripts/build-ts.sh b/tools/build/scripts/build-ts.sh index f093b6b41e..17fc480958 100755 --- a/tools/build/scripts/build-ts.sh +++ b/tools/build/scripts/build-ts.sh @@ -1,15 +1,21 @@ -#!/bin/bash +#!/bin/sh -# Define an array of flags to exclude -excluded_flags=("--downlevel" "--update") +# Define flags to exclude +excluded_flags="--downlevel --update" # Filter out excluded flags -filtered_args=() +filtered_args="" for arg in "$@"; do - [[ " ${excluded_flags[*]} " =~ " ${arg} " ]] || filtered_args+=("$arg") + case " $excluded_flags " in + *" $arg "*) + # Skip excluded flag + ;; + *) + filtered_args="$filtered_args $arg" + ;; + esac done - # lg-build can't use itself as a dependency in the build process -tsc --build tsconfig.json "${filtered_args[@]}" +tsc --build tsconfig.json $filtered_args exit 0 \ No newline at end of file diff --git a/tools/build/scripts/build.sh b/tools/build/scripts/build.sh index 2ee57002db..e793e55c34 100755 --- a/tools/build/scripts/build.sh +++ b/tools/build/scripts/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # lg-build can't use itself as a dependency in the build process rollup -c ./rollup.config.mjs exit 0 From 05d3232c0bac99e510be56ccd2702fc778767259 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 18:37:29 -0400 Subject: [PATCH 15/71] Create .dockerignore --- .dockerignore | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..f3741b494a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,34 @@ +# Node.js dependencies +node_modules/ +**/node_modules/ + +# Turborepo cache +.turbo/ +**/.turbo + +# Build output +**/dist + +# TypeScript type-checking artifact +**/tsconfig.tsbuildinfo + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea/ +.vscode/ +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# OS files +.DS_Store +Thumbs.db From f8092d00b3b65515db44cb9e843c3831887bacfa Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 18:46:41 -0400 Subject: [PATCH 16/71] rm crawler lambda --- tools/crawler/package.json | 4 +--- tools/crawler/src/lambda.ts | 48 ------------------------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 tools/crawler/src/lambda.ts diff --git a/tools/crawler/package.json b/tools/crawler/package.json index e2bc3a5cbf..8105e2c6db 100644 --- a/tools/crawler/package.json +++ b/tools/crawler/package.json @@ -17,10 +17,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "postbuild": "zip -r dist/lambda.zip dist/lambda.js node_modules package.json", "crawl": "tsx src/cli.ts crawl", - "prune": "tsx src/cli.ts prune", - "deploy": "bash scripts/deploy.sh" + "prune": "tsx src/cli.ts prune" }, "publishConfig": { "access": "public" diff --git a/tools/crawler/src/lambda.ts b/tools/crawler/src/lambda.ts deleted file mode 100644 index 12c23e05ed..0000000000 --- a/tools/crawler/src/lambda.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { connectToMongoDB } from './utils/connectToMongoDB'; -import { processLangchainDocument } from './utils/processLangchainDocument'; -import { recursiveCrawlFromBaseURL } from './utils/recursiveCrawlFromBase'; -import { SOURCES } from './constants'; - -/** - * AWS Lambda handler function to crawl websites - */ -exports.handler = async (_e: any) => { - const mongoClient = await (async () => { - try { - return await connectToMongoDB(); - } catch (error) { - console.error('Error connecting to MongoDB:', error); - throw error; - } - })(); - - try { - for (const source of SOURCES) { - await recursiveCrawlFromBaseURL( - ({ document, title, href }) => - processLangchainDocument({ - doc: document, - title, - href, - collectionName: source.collection, - mongoClient, - }), - { - baseUrl: source.url, - maxDepth: 3, - }, - ); - } - } catch (error) { - console.error('Error during crawling:', error); - return { - statusCode: 500, - body: JSON.stringify({ error: 'Internal Server Error' }), - }; - } - - return { - statusCode: 200, - body: JSON.stringify({ message: 'Success', data: SOURCES }), - }; -}; From 3838e828e9bf54c046fdb81fdcc81d09d76954c2 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 20:24:42 -0400 Subject: [PATCH 17/71] Update pnpm-lock.yaml --- pnpm-lock.yaml | 194 ++++++++++++++++++++++++++----------------------- 1 file changed, 102 insertions(+), 92 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f5cfdd24d4..688561cd53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -136,17 +136,17 @@ importers: version: 4.17.21 mongodb-chatbot-server: specifier: ^0.11.0 - version: 0.11.0(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) + version: 0.11.0(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) mongodb-rag-core: specifier: ^0.7.0 - version: 0.7.0(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) + version: 0.7.0(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) devDependencies: '@lg-tools/build': specifier: workspace:^ version: link:../../tools/build mongodb-rag-ingest: specifier: ^0.3.1 - version: 0.3.1(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) + version: 0.3.1(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) nodemon: specifier: ^3.0.1 version: 3.1.10 @@ -3427,10 +3427,10 @@ importers: version: 4.10.0 '@langchain/community': specifier: ^0.3.42 - version: 0.3.43(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(google-auth-library@9.15.1)(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(playwright@1.52.0)(ws@8.18.2) + version: 0.3.43(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(google-auth-library@9.15.1(encoding@0.1.13))(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(playwright@1.52.0)(ws@8.18.2) '@langchain/core': specifier: ^0.3.42 - version: 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + version: 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) chalk: specifier: 4.1.2 version: 4.1.2 @@ -3445,7 +3445,7 @@ importers: version: 16.5.0 langchain: specifier: ^0.3.24 - version: 0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(ws@8.18.2) + version: 0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(ws@8.18.2) lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -3454,7 +3454,7 @@ importers: version: 6.16.0(socks@2.8.4) openai: specifier: ^4.97.0 - version: 4.102.0(ws@8.18.2)(zod@3.25.17) + version: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) ora: specifier: ^8.2.0 version: 8.2.0 @@ -3706,7 +3706,7 @@ importers: version: 4.17.21 node-fetch: specifier: 2.6.11 - version: 2.6.11 + version: 2.6.11(encoding@0.1.13) devDependencies: '@types/node-fetch': specifier: ^2.6.11 @@ -8883,6 +8883,9 @@ packages: encoding-sniffer@0.2.0: resolution: {integrity: sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg==} + encoding@0.1.13: + resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==} + endent@2.1.0: resolution: {integrity: sha512-r8VyPX7XL8U01Xgnb1CjZ3XV+z90cXIJ9JPE/R9SEC9vpw2P6CfsRPJmp20DppC5N7ZAMCmjYkJIa744Iyg96w==} @@ -13963,7 +13966,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@anthropic-ai/sdk@0.27.3': + '@anthropic-ai/sdk@0.27.3(encoding@0.1.13)': dependencies: '@types/node': 18.19.103 '@types/node-fetch': 2.6.12 @@ -13971,11 +13974,11 @@ snapshots: agentkeepalive: 4.6.0 form-data-encoder: 1.7.2 formdata-node: 4.4.1 - node-fetch: 2.6.11 + node-fetch: 2.6.11(encoding@0.1.13) transitivePeerDependencies: - encoding - '@anthropic-ai/sdk@0.39.0': + '@anthropic-ai/sdk@0.39.0(encoding@0.1.13)': dependencies: '@types/node': 18.19.103 '@types/node-fetch': 2.6.12 @@ -13983,7 +13986,7 @@ snapshots: agentkeepalive: 4.6.0 form-data-encoder: 1.7.2 formdata-node: 4.4.1 - node-fetch: 2.6.11 + node-fetch: 2.6.11(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -15820,7 +15823,7 @@ snapshots: uuid: 9.0.1 zod: 3.25.17 - '@browserbasehq/sdk@2.6.0': + '@browserbasehq/sdk@2.6.0(encoding@0.1.13)': dependencies: '@types/node': 18.19.103 '@types/node-fetch': 2.6.12 @@ -15828,18 +15831,18 @@ snapshots: agentkeepalive: 4.6.0 form-data-encoder: 1.7.2 formdata-node: 4.4.1 - node-fetch: 2.6.11 + node-fetch: 2.6.11(encoding@0.1.13) transitivePeerDependencies: - encoding - '@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17)': + '@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17)': dependencies: - '@anthropic-ai/sdk': 0.27.3 - '@browserbasehq/sdk': 2.6.0 + '@anthropic-ai/sdk': 0.27.3(encoding@0.1.13) + '@browserbasehq/sdk': 2.6.0(encoding@0.1.13) '@playwright/test': 1.52.0 deepmerge: 4.3.1 dotenv: 16.5.0 - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) ws: 8.18.2 zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) @@ -16771,38 +16774,38 @@ snapshots: '@kwsites/promise-deferred@1.1.1': {} - '@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))': + '@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13)': dependencies: - '@anthropic-ai/sdk': 0.39.0 - '@langchain/core': 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + '@anthropic-ai/sdk': 0.39.0(encoding@0.1.13) + '@langchain/core': 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) fast-xml-parser: 4.5.3 zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) transitivePeerDependencies: - encoding - '@langchain/community@0.3.43(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(google-auth-library@9.15.1)(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(playwright@1.52.0)(ws@8.18.2)': + '@langchain/community@0.3.43(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(google-auth-library@9.15.1(encoding@0.1.13))(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(playwright@1.52.0)(ws@8.18.2)': dependencies: - '@browserbasehq/stagehand': 1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17) + '@browserbasehq/stagehand': 1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17) '@ibm-cloud/watsonx-ai': 1.6.6 - '@langchain/core': 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) - '@langchain/openai': 0.5.10(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(ws@8.18.2) + '@langchain/core': 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) + '@langchain/openai': 0.5.10(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13)(ws@8.18.2) binary-extensions: 2.2.0 expr-eval: 2.0.2 flat: 5.0.2 ibm-cloud-sdk-core: 5.3.2 js-yaml: 4.1.0 - langchain: 0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(ws@8.18.2) - langsmith: 0.3.29(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + langchain: 0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(ws@8.18.2) + langsmith: 0.3.29(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) uuid: 10.0.0 zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) optionalDependencies: - '@browserbasehq/sdk': 2.6.0 + '@browserbasehq/sdk': 2.6.0(encoding@0.1.13) cheerio: 1.0.0 fast-xml-parser: 4.5.3 - google-auth-library: 9.15.1 + google-auth-library: 9.15.1(encoding@0.1.13) ignore: 5.3.2 jsdom: 26.1.0 jsonwebtoken: 9.0.2 @@ -16844,13 +16847,13 @@ snapshots: transitivePeerDependencies: - openai - '@langchain/core@0.2.36(openai@4.102.0(ws@8.18.2)(zod@3.25.17))': + '@langchain/core@0.2.36(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))': dependencies: ansi-styles: 5.2.0 camelcase: 6.3.0 decamelize: 1.2.0 js-tiktoken: 1.0.20 - langsmith: 0.1.68(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + langsmith: 0.1.68(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) mustache: 4.2.0 p-queue: 6.6.2 p-retry: 4.6.2 @@ -16860,14 +16863,14 @@ snapshots: transitivePeerDependencies: - openai - '@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))': + '@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))': dependencies: '@cfworker/json-schema': 4.1.1 ansi-styles: 5.2.0 camelcase: 6.3.0 decamelize: 1.2.0 js-tiktoken: 1.0.20 - langsmith: 0.3.29(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + langsmith: 0.3.29(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) mustache: 4.2.0 p-queue: 6.6.2 p-retry: 4.6.2 @@ -16877,33 +16880,33 @@ snapshots: transitivePeerDependencies: - openai - '@langchain/openai@0.2.11(ws@8.18.2)': + '@langchain/openai@0.2.11(encoding@0.1.13)(ws@8.18.2)': dependencies: - '@langchain/core': 0.2.36(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + '@langchain/core': 0.2.36(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) js-tiktoken: 1.0.20 - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) transitivePeerDependencies: - encoding - ws - '@langchain/openai@0.3.17(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(ws@8.18.2)': + '@langchain/openai@0.3.17(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13)(ws@8.18.2)': dependencies: - '@langchain/core': 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + '@langchain/core': 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) js-tiktoken: 1.0.20 - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) transitivePeerDependencies: - encoding - ws - '@langchain/openai@0.5.10(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(ws@8.18.2)': + '@langchain/openai@0.5.10(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13)(ws@8.18.2)': dependencies: - '@langchain/core': 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + '@langchain/core': 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) js-tiktoken: 1.0.20 - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) transitivePeerDependencies: @@ -16917,9 +16920,9 @@ snapshots: transitivePeerDependencies: - openai - '@langchain/textsplitters@0.1.0(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))': + '@langchain/textsplitters@0.1.0(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))': dependencies: - '@langchain/core': 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + '@langchain/core': 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) js-tiktoken: 1.0.20 '@manypkg/find-root@1.1.0': @@ -18653,7 +18656,7 @@ snapshots: dependencies: humanize-ms: 1.2.1 - ai@3.4.33(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17): + ai@3.4.33(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17): dependencies: '@ai-sdk/provider': 0.0.26 '@ai-sdk/provider-utils': 1.0.22(zod@3.25.17) @@ -18669,7 +18672,7 @@ snapshots: secure-json-parse: 2.7.0 zod-to-json-schema: 3.24.5(zod@3.25.17) optionalDependencies: - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) react: 18.2.0 sswr: 2.2.0(svelte@5.32.1) svelte: 5.32.1 @@ -19119,13 +19122,13 @@ snapshots: dependencies: fill-range: 7.1.1 - braintrust@0.0.193(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17): + braintrust@0.0.193(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17): dependencies: '@ai-sdk/provider': 1.1.3 '@braintrust/core': 0.0.83 '@next/env': 14.2.29 '@vercel/functions': 1.6.0 - ai: 3.4.33(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17) + ai: 3.4.33(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17) argparse: 2.0.1 chalk: 4.1.2 cli-progress: 3.12.0 @@ -20094,6 +20097,11 @@ snapshots: iconv-lite: 0.6.3 whatwg-encoding: 3.1.1 + encoding@0.1.13: + dependencies: + iconv-lite: 0.6.3 + optional: true + endent@2.1.0: dependencies: dedent: 0.7.0 @@ -20936,20 +20944,20 @@ snapshots: functions-have-names@1.2.3: {} - gaxios@6.7.1: + gaxios@6.7.1(encoding@0.1.13): dependencies: extend: 3.0.2 https-proxy-agent: 7.0.6 is-stream: 2.0.1 - node-fetch: 2.6.11 + node-fetch: 2.6.11(encoding@0.1.13) uuid: 9.0.1 transitivePeerDependencies: - encoding - supports-color - gcp-metadata@6.1.1: + gcp-metadata@6.1.1(encoding@0.1.13): dependencies: - gaxios: 6.7.1 + gaxios: 6.7.1(encoding@0.1.13) google-logging-utils: 0.0.2 json-bigint: 1.0.0 transitivePeerDependencies: @@ -21102,13 +21110,13 @@ snapshots: dependencies: delegate: 3.2.0 - google-auth-library@9.15.1: + google-auth-library@9.15.1(encoding@0.1.13): dependencies: base64-js: 1.5.1 ecdsa-sig-formatter: 1.0.11 - gaxios: 6.7.1 - gcp-metadata: 6.1.1 - gtoken: 7.1.0 + gaxios: 6.7.1(encoding@0.1.13) + gcp-metadata: 6.1.1(encoding@0.1.13) + gtoken: 7.1.0(encoding@0.1.13) jws: 4.0.0 transitivePeerDependencies: - encoding @@ -21139,9 +21147,9 @@ snapshots: section-matter: 1.0.0 strip-bom-string: 1.0.0 - gtoken@7.1.0: + gtoken@7.1.0(encoding@0.1.13): dependencies: - gaxios: 6.7.1 + gaxios: 6.7.1(encoding@0.1.13) jws: 4.0.0 transitivePeerDependencies: - encoding @@ -21332,7 +21340,7 @@ snapshots: isstream: 0.1.2 jsonwebtoken: 9.0.2 mime-types: 2.1.35 - retry-axios: 2.6.0(axios@1.9.0(debug@4.4.0)) + retry-axios: 2.6.0(axios@1.9.0) tough-cookie: 4.1.3 transitivePeerDependencies: - supports-color @@ -22341,10 +22349,10 @@ snapshots: kuler@2.0.0: {} - langchain@0.2.20(@browserbasehq/sdk@2.6.0)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ignore@5.3.2)(jsdom@26.1.0)(mongodb@6.16.0(socks@2.8.4))(openai@3.3.0)(playwright@1.52.0)(ws@8.18.2): + langchain@0.2.20(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ignore@5.3.2)(jsdom@26.1.0)(mongodb@6.16.0(socks@2.8.4))(openai@3.3.0)(playwright@1.52.0)(ws@8.18.2): dependencies: '@langchain/core': 0.2.36(openai@3.3.0) - '@langchain/openai': 0.2.11(ws@8.18.2) + '@langchain/openai': 0.2.11(encoding@0.1.13)(ws@8.18.2) '@langchain/textsplitters': 0.0.3(openai@3.3.0) binary-extensions: 2.2.0 js-tiktoken: 1.0.20 @@ -22358,8 +22366,8 @@ snapshots: zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) optionalDependencies: - '@browserbasehq/sdk': 2.6.0 - '@langchain/anthropic': 0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))) + '@browserbasehq/sdk': 2.6.0(encoding@0.1.13) + '@langchain/anthropic': 0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13) axios: 1.9.0(debug@4.4.0) cheerio: 1.0.0 fast-xml-parser: 4.5.3 @@ -22372,15 +22380,15 @@ snapshots: - encoding - openai - langchain@0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(ws@8.18.2): + langchain@0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(ws@8.18.2): dependencies: - '@langchain/core': 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) - '@langchain/openai': 0.5.10(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(ws@8.18.2) - '@langchain/textsplitters': 0.1.0(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))) + '@langchain/core': 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) + '@langchain/openai': 0.5.10(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13)(ws@8.18.2) + '@langchain/textsplitters': 0.1.0(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))) js-tiktoken: 1.0.20 js-yaml: 4.1.0 jsonpointer: 5.0.1 - langsmith: 0.3.29(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) + langsmith: 0.3.29(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) openapi-types: 12.1.3 p-retry: 4.6.2 uuid: 10.0.0 @@ -22388,7 +22396,7 @@ snapshots: zod: 3.25.17 zod-to-json-schema: 3.24.5(zod@3.25.17) optionalDependencies: - '@langchain/anthropic': 0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))) + '@langchain/anthropic': 0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13) axios: 1.9.0(debug@4.4.0) cheerio: 1.0.0 transitivePeerDependencies: @@ -22407,7 +22415,7 @@ snapshots: optionalDependencies: openai: 3.3.0 - langsmith@0.1.68(openai@4.102.0(ws@8.18.2)(zod@3.25.17)): + langsmith@0.1.68(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)): dependencies: '@types/uuid': 10.0.0 commander: 10.0.1 @@ -22416,9 +22424,9 @@ snapshots: semver: 7.6.3 uuid: 10.0.0 optionalDependencies: - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) - langsmith@0.3.29(openai@4.102.0(ws@8.18.2)(zod@3.25.17)): + langsmith@0.3.29(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)): dependencies: '@types/uuid': 10.0.0 chalk: 4.1.2 @@ -22428,7 +22436,7 @@ snapshots: semver: 7.6.3 uuid: 10.0.0 optionalDependencies: - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) language-subtag-registry@0.3.23: {} @@ -23207,7 +23215,7 @@ snapshots: module-details-from-path@1.0.4: {} - mongodb-chatbot-server@0.11.0(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2): + mongodb-chatbot-server@0.11.0(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2): dependencies: '@langchain/core': 0.2.36(openai@3.3.0) common-tags: 1.8.2 @@ -23219,9 +23227,9 @@ snapshots: express-slow-down: 1.6.0 gpt3-tokenizer: 1.1.5 ip-address: 8.1.0 - langchain: 0.2.20(@browserbasehq/sdk@2.6.0)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ignore@5.3.2)(jsdom@26.1.0)(mongodb@6.16.0(socks@2.8.4))(openai@3.3.0)(playwright@1.52.0)(ws@8.18.2) + langchain: 0.2.20(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ignore@5.3.2)(jsdom@26.1.0)(mongodb@6.16.0(socks@2.8.4))(openai@3.3.0)(playwright@1.52.0)(ws@8.18.2) lodash.clonedeep: 4.5.0 - mongodb-rag-core: 0.7.0(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) + mongodb-rag-core: 0.7.0(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) openai: 3.3.0 pm2: 5.4.3 rate-limit-mongo: 2.3.2 @@ -23404,32 +23412,32 @@ snapshots: '@types/whatwg-url': 11.0.5 whatwg-url: 14.2.0 - mongodb-rag-core@0.7.0(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2): + mongodb-rag-core@0.7.0(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2): dependencies: '@ai-sdk/azure': 1.3.23(zod@3.25.17) '@ai-sdk/openai': 1.3.22(zod@3.25.17) '@apidevtools/swagger-parser': 10.1.1(openapi-types@12.1.3) - '@langchain/anthropic': 0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))) - '@langchain/community': 0.3.43(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(google-auth-library@9.15.1)(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(playwright@1.52.0)(ws@8.18.2) - '@langchain/core': 0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)) - '@langchain/openai': 0.3.17(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(ws@8.18.2) + '@langchain/anthropic': 0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13) + '@langchain/community': 0.3.43(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(google-auth-library@9.15.1(encoding@0.1.13))(ibm-cloud-sdk-core@5.3.2)(ignore@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(mongodb@6.16.0(socks@2.8.4))(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(playwright@1.52.0)(ws@8.18.2) + '@langchain/core': 0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)) + '@langchain/openai': 0.3.17(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13)(ws@8.18.2) '@supercharge/promise-pool': 3.2.0 acquit: 1.4.0 acquit-require: 0.1.1(acquit@1.4.0) ai: 4.3.16(react@18.2.0)(zod@3.25.17) - braintrust: 0.0.193(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17) + braintrust: 0.0.193(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(react@18.2.0)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(zod@3.25.17) common-tags: 1.8.2 deep-equal: 2.2.3 dotenv: 16.5.0 exponential-backoff: 3.1.2 front-matter: 4.0.2 - google-auth-library: 9.15.1 + google-auth-library: 9.15.1(encoding@0.1.13) gpt3-tokenizer: 1.1.5 gray-matter: 4.0.3 ignore: 5.3.2 - langchain: 0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17))))(@langchain/core@0.3.56(openai@4.102.0(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(ws@8.18.2) + langchain: 0.3.26(@langchain/anthropic@0.3.20(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(encoding@0.1.13))(@langchain/core@0.3.56(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17)))(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(ws@8.18.2) mongodb: 6.16.0(socks@2.8.4) - openai: 4.102.0(ws@8.18.2)(zod@3.25.17) + openai: 4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17) rimraf: 6.0.1 simple-git: 3.27.0 toml: 3.0.0 @@ -23594,10 +23602,10 @@ snapshots: - ws - youtubei.js - mongodb-rag-ingest@0.3.1(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2): + mongodb-rag-ingest@0.3.1(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2): dependencies: dotenv: 16.5.0 - mongodb-rag-core: 0.7.0(@browserbasehq/sdk@2.6.0)(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(openai@4.102.0(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) + mongodb-rag-core: 0.7.0(@browserbasehq/sdk@2.6.0(encoding@0.1.13))(@browserbasehq/stagehand@1.14.0(@playwright/test@1.52.0)(deepmerge@4.3.1)(dotenv@16.5.0)(encoding@0.1.13)(openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17))(zod@3.25.17))(@ibm-cloud/watsonx-ai@1.6.6)(axios@1.9.0)(cheerio@1.0.0)(encoding@0.1.13)(fast-xml-parser@4.5.3)(ibm-cloud-sdk-core@5.3.2)(jsdom@26.1.0)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openapi-types@12.1.3)(playwright@1.52.0)(react@18.2.0)(socks@2.8.4)(sswr@2.2.0(svelte@5.32.1))(svelte@5.32.1)(vue@3.5.14(typescript@5.8.3))(ws@8.18.2) yargs: 17.7.2 transitivePeerDependencies: - '@arcjet/redact' @@ -23847,9 +23855,11 @@ snapshots: bindings: 1.5.0 nan: 2.17.0 - node-fetch@2.6.11: + node-fetch@2.6.11(encoding@0.1.13): dependencies: whatwg-url: 5.0.0 + optionalDependencies: + encoding: 0.1.13 node-int64@0.4.0: {} @@ -24069,7 +24079,7 @@ snapshots: transitivePeerDependencies: - debug - openai@4.102.0(ws@8.18.2)(zod@3.25.17): + openai@4.102.0(encoding@0.1.13)(ws@8.18.2)(zod@3.25.17): dependencies: '@types/node': 18.19.103 '@types/node-fetch': 2.6.12 @@ -24077,7 +24087,7 @@ snapshots: agentkeepalive: 4.6.0 form-data-encoder: 1.7.2 formdata-node: 4.4.1 - node-fetch: 2.6.11 + node-fetch: 2.6.11(encoding@0.1.13) optionalDependencies: ws: 8.18.2 zod: 3.25.17 @@ -25005,7 +25015,7 @@ snapshots: onetime: 7.0.0 signal-exit: 4.1.0 - retry-axios@2.6.0(axios@1.9.0(debug@4.4.0)): + retry-axios@2.6.0(axios@1.9.0): dependencies: axios: 1.9.0(debug@4.4.0) From 5e347d1542aef299e75310b679d96b991c45b9fe Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 20:24:58 -0400 Subject: [PATCH 18/71] update docker & drone --- .dockerignore | 6 ++--- .drone.yml | 11 ++++++++ apps/chatbot-server/Dockerfile | 48 ++++++++++++++++------------------ 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/.dockerignore b/.dockerignore index f3741b494a..58706659d6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,6 @@ +.git +.gitignore + # Node.js dependencies node_modules/ **/node_modules/ @@ -6,9 +9,6 @@ node_modules/ .turbo/ **/.turbo -# Build output -**/dist - # TypeScript type-checking artifact **/tsconfig.tsbuildinfo diff --git a/.drone.yml b/.drone.yml index a958d9dd2c..ec5256badc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,6 +12,17 @@ trigger: - a/kanopy steps: + - name: build + image: node:18 + volumes: + - name: pnpm-store + path: /drone/.pnpm-store + commands: + - corepack enable + - pnpm config set store-dir .pnpm-store + - pnpm install + - pnpm run build --filter "lg-chatbot-server" + - name: publish image: plugins/kaniko-ecr settings: diff --git a/apps/chatbot-server/Dockerfile b/apps/chatbot-server/Dockerfile index 35a56470af..4eea2289bc 100644 --- a/apps/chatbot-server/Dockerfile +++ b/apps/chatbot-server/Dockerfile @@ -1,40 +1,36 @@ -# Use Node.js 20 as the base image -FROM node:20-alpine - -# Expects the context `./` to be the root of the monorepo -# and expects the package to be built - -COPY ./apps/chatbot-server/ apps/chatbot-server/ +# Use Node.js 18 as the base image +FROM node:18-alpine AS base +RUN apk add --no-cache py3-pip make g++ git +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" +RUN corepack enable # Copy package files and workspace configuration -COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./ +COPY .npmrc package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json tsconfig.json ./ -# Copy all required directories with their content -COPY tools/ tools/ -COPY packages/ packages/ +RUN pnpm fetch -# Ensure the build scripts are executable -RUN chmod +x tools/build/scripts/build.sh -RUN chmod +x tools/build/scripts/build-ts.sh -RUN ls -la tools/build/scripts/ +# Copy the chatbot-server app +COPY ./apps/chatbot-server/ chatbot-server/ -# Install pnpm globally -RUN npm install -g pnpm@9.15.6 +# Copy all required directories with their content, excluding unnecessary directories +# COPY tools/ tools/ +# COPY packages/ packages/ -# Install dependencies -RUN pnpm install --frozen-lockfile +# WORKDIR ./ +# RUN pnpm install --frozen-lockfile + +# RUN ls -la ./node_modules +# RUN ls -la ./tools/crawler +RUN ls -la ./chatbot-server/dist # Build the server -RUN pnpm build --filter "lg-chatbot-server" +# RUN pnpm run build --filter "lg-chatbot-server" -- --verbose # Set the working directory to the chatbot-server -WORKDIR ./apps/chatbot-server - -# Expose port 3030 -EXPOSE 3030 - -# Set environment variable to use port 3030 +WORKDIR ./chatbot-server ENV PORT=3030 +EXPOSE 3030 # Start the server CMD ["pnpm", "start"] \ No newline at end of file From 4b6564d3cf40d367e5abd56bb9f7ce62fc03dff2 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 20:33:40 -0400 Subject: [PATCH 19/71] cleanup Dockerfile --- .drone.yml | 2 +- apps/chatbot-server/Dockerfile | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index ec5256badc..be76f20a93 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ trigger: - a/kanopy steps: - - name: build + - name: build-server image: node:18 volumes: - name: pnpm-store diff --git a/apps/chatbot-server/Dockerfile b/apps/chatbot-server/Dockerfile index 4eea2289bc..0c26c8fad3 100644 --- a/apps/chatbot-server/Dockerfile +++ b/apps/chatbot-server/Dockerfile @@ -8,24 +8,13 @@ RUN corepack enable # Copy package files and workspace configuration COPY .npmrc package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json tsconfig.json ./ -RUN pnpm fetch +RUN pnpm fetch --prod # Copy the chatbot-server app COPY ./apps/chatbot-server/ chatbot-server/ +COPY ./.env chatbot-server/.env.local -# Copy all required directories with their content, excluding unnecessary directories -# COPY tools/ tools/ -# COPY packages/ packages/ - -# WORKDIR ./ -# RUN pnpm install --frozen-lockfile - -# RUN ls -la ./node_modules -# RUN ls -la ./tools/crawler -RUN ls -la ./chatbot-server/dist - -# Build the server -# RUN pnpm run build --filter "lg-chatbot-server" -- --verbose +RUN ls -la chatbot-server/ # Set the working directory to the chatbot-server WORKDIR ./chatbot-server From 406f57ed257f90e1702ecdb2cfaaee2c2893c13b Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 20:40:16 -0400 Subject: [PATCH 20/71] Update Dockerfile --- apps/chatbot-server/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/chatbot-server/Dockerfile b/apps/chatbot-server/Dockerfile index 0c26c8fad3..2221eabbdc 100644 --- a/apps/chatbot-server/Dockerfile +++ b/apps/chatbot-server/Dockerfile @@ -12,7 +12,6 @@ RUN pnpm fetch --prod # Copy the chatbot-server app COPY ./apps/chatbot-server/ chatbot-server/ -COPY ./.env chatbot-server/.env.local RUN ls -la chatbot-server/ From 744b3a9c6aef189fb382ef2a5d9b4831a9c5115f Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 22 May 2025 13:18:03 -0400 Subject: [PATCH 21/71] add corsOptions --- apps/chatbot-server/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/chatbot-server/src/index.ts b/apps/chatbot-server/src/index.ts index 360252d2be..22da06713a 100644 --- a/apps/chatbot-server/src/index.ts +++ b/apps/chatbot-server/src/index.ts @@ -41,6 +41,11 @@ const startServer = async () => { generateUserPrompt, systemPrompt, }, + corsOptions: { + withCredentials: true, + methods: ['GET'], + origin: 'https://mongodb.design', // 'http://localhost:3000' // https://staging.mongodb.design + }, maxRequestTimeoutMs: 30000, }; From 9f5da9296021a33cd3374e9306b709d72a502597 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 22 May 2025 15:34:55 -0400 Subject: [PATCH 22/71] Add Kanopy initialization script and update Docker commands --- .drone.yml | 1 + apps/chatbot-server/package.json | 4 +++- apps/chatbot-server/scripts/init.sh | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 apps/chatbot-server/scripts/init.sh diff --git a/.drone.yml b/.drone.yml index be76f20a93..096d6f5058 100644 --- a/.drone.yml +++ b/.drone.yml @@ -49,6 +49,7 @@ steps: add_repos: [mongodb=https://10gen.github.io/helm-charts] namespace: skunkworks release: lg-chatbot-server + service ip: 3030 values: arch=arm64,image.tag=git-${DRONE_COMMIT_SHA:0:7},image.repository=795250896452.dkr.ecr.us-east-1.amazonaws.com/skunkworks/${DRONE_REPO_NAME},ingress.enabled=true,ingress.hosts[0]=lg-chatbot-server.skunkworks.staging.corp.mongodb.com,mesh.enabled=true api_server: https://api.staging.corp.mongodb.com kubernetes_token: diff --git a/apps/chatbot-server/package.json b/apps/chatbot-server/package.json index 00bbcbe107..0afd18c608 100644 --- a/apps/chatbot-server/package.json +++ b/apps/chatbot-server/package.json @@ -16,7 +16,9 @@ "start": "node dist/esm/index.js", "docker:build": "docker build -t chatbot-server --file ./Dockerfile ../..", "docker:prune": "docker builder prune --filter \"label=app=chatbot-server\" -f", - "docker:start": "docker run -p 3030:3030 chatbot-server" + "docker:start": "docker run -p 3030:3030 chatbot-server", + "kanopy:init": "sh ./scripts/init.sh", + "kanopy:forward": "kubectl port-forward --namespace=skunkworks lg-chatbot-server-web-app-59457455f-ndsh9 3030:3030" }, "keywords": [], "author": "", diff --git a/apps/chatbot-server/scripts/init.sh b/apps/chatbot-server/scripts/init.sh new file mode 100644 index 0000000000..fd85bd0de4 --- /dev/null +++ b/apps/chatbot-server/scripts/init.sh @@ -0,0 +1,18 @@ +echo "Initializing the Kanopy OIDC cluster..." +echo "This script should open your browser to log in to the Kanopy OIDC cluster." +echo "If you cannot authenticate, please follow the instructions here: https://kanopy.corp.mongodb.com/docs/" + +CLUSTER=staging +NAMESPACE=skunkworks +KOLD=$KUBECONFIG +export KUBECONFIG=~/.kube/config.$CLUSTER +mkdir -p $(dirname $KUBECONFIG) +kanopy-oidc kube setup $CLUSTER > $KUBECONFIG +kanopy-oidc kube login +kubectl config set-context $(kubectl config current-context) --namespace=$NAMESPACE +export KUBECONFIG=$KOLD + +# set the staging cluster as the default +cp ~/.kube/config.$CLUSTER ~/.kube/config + +kubectl get pods \ No newline at end of file From 440fba6eb4f3e3eaab3e126904970353363fa230 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 22 May 2025 16:57:50 -0400 Subject: [PATCH 23/71] Remove unused service IP configuration from deployment settings --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 096d6f5058..be76f20a93 100644 --- a/.drone.yml +++ b/.drone.yml @@ -49,7 +49,6 @@ steps: add_repos: [mongodb=https://10gen.github.io/helm-charts] namespace: skunkworks release: lg-chatbot-server - service ip: 3030 values: arch=arm64,image.tag=git-${DRONE_COMMIT_SHA:0:7},image.repository=795250896452.dkr.ecr.us-east-1.amazonaws.com/skunkworks/${DRONE_REPO_NAME},ingress.enabled=true,ingress.hosts[0]=lg-chatbot-server.skunkworks.staging.corp.mongodb.com,mesh.enabled=true api_server: https://api.staging.corp.mongodb.com kubernetes_token: From ee06598c1693b854bd5635f2e303ee8ad333f3b9 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 22 May 2025 17:47:45 -0400 Subject: [PATCH 24/71] Update Kanopy scripts and permissions --- apps/chatbot-server/package.json | 4 +-- apps/chatbot-server/scripts/fwd.sh | 39 +++++++++++++++++++++++++++++ apps/chatbot-server/scripts/init.sh | 17 +++++++------ 3 files changed, 50 insertions(+), 10 deletions(-) create mode 100755 apps/chatbot-server/scripts/fwd.sh mode change 100644 => 100755 apps/chatbot-server/scripts/init.sh diff --git a/apps/chatbot-server/package.json b/apps/chatbot-server/package.json index 0afd18c608..cb0b3e9195 100644 --- a/apps/chatbot-server/package.json +++ b/apps/chatbot-server/package.json @@ -17,8 +17,8 @@ "docker:build": "docker build -t chatbot-server --file ./Dockerfile ../..", "docker:prune": "docker builder prune --filter \"label=app=chatbot-server\" -f", "docker:start": "docker run -p 3030:3030 chatbot-server", - "kanopy:init": "sh ./scripts/init.sh", - "kanopy:forward": "kubectl port-forward --namespace=skunkworks lg-chatbot-server-web-app-59457455f-ndsh9 3030:3030" + "kanopy:init": "./scripts/init.sh", + "kanopy:forward": "./scripts/fwd.sh" }, "keywords": [], "author": "", diff --git a/apps/chatbot-server/scripts/fwd.sh b/apps/chatbot-server/scripts/fwd.sh new file mode 100755 index 0000000000..cd64161b16 --- /dev/null +++ b/apps/chatbot-server/scripts/fwd.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# Script to port-forward to the lg-chatbot-server pod in Kubernetes + +# Source the .env file to get the PORT and NAMESPACE +if [ -f ".env" ]; then + export $(grep -v '^#' ".env" | xargs) +else + echo "Error: .env file not found" + exit 1 +fi + +# Make sure we have a PORT value +if [ -z "$PORT" ]; then + echo "Error: PORT not defined in .env" + exit 1 +fi + +# Set KUBECONFIG path from .env if available +if [ -n "$KUBECONFIG" ]; then + export KUBECONFIG=$KUBECONFIG +fi + +echo "Using KUBECONFIG: $KUBECONFIG" +echo "Looking for latest lg-chatbot-server pod in "$NAMESPACE"..." + +# Get the latest pod starting with lg-chatbot-server +# POD_NAME=$(kubectl get pods -n $NAMESPACE | grep "^lg-chatbot-server" | sort -k1 | tail -n1 | awk '{print $1}') +POD_NAME=$(KUBECONFIG=~/.kube/config.staging kubectl get pods -n $NAMESPACE | grep "^lg-chatbot-server" | sort -k1 | tail -n1 | awk '{print $1}') + +if [ -z "$POD_NAME" ]; then + echo "Error: No pod starting with 'lg-chatbot-server' found" + exit 1 +fi + +echo "Found pod: $POD_NAME" +echo "Setting up port forwarding on port $PORT..." + +# Set up port forwarding +KUBECONFIG=~/.kube/config.staging kubectl port-forward --namespace=$NAMESPACE $POD_NAME 3333:$PORT \ No newline at end of file diff --git a/apps/chatbot-server/scripts/init.sh b/apps/chatbot-server/scripts/init.sh old mode 100644 new mode 100755 index fd85bd0de4..61ad2a7a48 --- a/apps/chatbot-server/scripts/init.sh +++ b/apps/chatbot-server/scripts/init.sh @@ -2,17 +2,18 @@ echo "Initializing the Kanopy OIDC cluster..." echo "This script should open your browser to log in to the Kanopy OIDC cluster." echo "If you cannot authenticate, please follow the instructions here: https://kanopy.corp.mongodb.com/docs/" +# Source the .env file to get the PORT and NAMESPACE +if [ -f ".env" ]; then + export $(grep -v '^#' ".env" | xargs) +else + echo "Error: .env file not found" + exit 1 +fi + + CLUSTER=staging -NAMESPACE=skunkworks -KOLD=$KUBECONFIG export KUBECONFIG=~/.kube/config.$CLUSTER mkdir -p $(dirname $KUBECONFIG) kanopy-oidc kube setup $CLUSTER > $KUBECONFIG kanopy-oidc kube login kubectl config set-context $(kubectl config current-context) --namespace=$NAMESPACE -export KUBECONFIG=$KOLD - -# set the staging cluster as the default -cp ~/.kube/config.$CLUSTER ~/.kube/config - -kubectl get pods \ No newline at end of file From 2c0c44e58eadc133c1bea452a26bc713ef0980f7 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 22 May 2025 17:48:26 -0400 Subject: [PATCH 25/71] Update CORS origin configuration to use environment variable --- apps/chatbot-server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chatbot-server/src/index.ts b/apps/chatbot-server/src/index.ts index 22da06713a..b1ba5b9df9 100644 --- a/apps/chatbot-server/src/index.ts +++ b/apps/chatbot-server/src/index.ts @@ -44,7 +44,7 @@ const startServer = async () => { corsOptions: { withCredentials: true, methods: ['GET'], - origin: 'https://mongodb.design', // 'http://localhost:3000' // https://staging.mongodb.design + origin: process.env.CORS_ORIGIN || '*', }, maxRequestTimeoutMs: 30000, }; From 8f457224062e80e13a249af72e741df7e9a8fdca Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 23 May 2025 11:52:58 -0400 Subject: [PATCH 26/71] Update Dockerfile port --- apps/chatbot-server/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/chatbot-server/Dockerfile b/apps/chatbot-server/Dockerfile index 2221eabbdc..d6e69a588b 100644 --- a/apps/chatbot-server/Dockerfile +++ b/apps/chatbot-server/Dockerfile @@ -17,8 +17,8 @@ RUN ls -la chatbot-server/ # Set the working directory to the chatbot-server WORKDIR ./chatbot-server -ENV PORT=3030 -EXPOSE 3030 +ENV PORT=8080 +EXPOSE 8080 # Start the server CMD ["pnpm", "start"] \ No newline at end of file From e2f6d50211e26d8fc2f0d31e5085155701467e83 Mon Sep 17 00:00:00 2001 From: Terrence Keane Date: Fri, 23 May 2025 12:59:25 -0400 Subject: [PATCH 27/71] chore(package): update node engine version to >= 18.20.8 (#2868) * chore(package): update node engine version to >= 18.22.0 * chore(package): update node engine version to >= 18.20.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3bbbea2924..8fab86bc05 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "private": true, "engines": { - "node": ">= 18.12.0", + "node": ">= 18.20.8", "pnpm": ">= 9.15.0" }, "scripts": { From 0f22a3faaa07c59cd4685885f3d4e64a461c31b8 Mon Sep 17 00:00:00 2001 From: Terrence Keane Date: Fri, 23 May 2025 15:14:13 -0400 Subject: [PATCH 28/71] refactor(turbo.json): add tsc dependency to prebuild task (#2869) --- turbo.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo.json b/turbo.json index f74c4da8ce..1494e6f221 100644 --- a/turbo.json +++ b/turbo.json @@ -2,7 +2,7 @@ "$schema": "https://turbo.build/schema.json", "tasks": { "prebuild": { - "dependsOn": ["^prebuild", "^build"] + "dependsOn": ["^prebuild", "^build", "^tsc"] }, "build": { "dependsOn": ["^build", "^prebuild", "prebuild"], From d71439b8e1adb7e7e89253f8c3eb6e9ce9b7aec5 Mon Sep 17 00:00:00 2001 From: Stephen Lee Date: Wed, 28 May 2025 09:01:10 -0700 Subject: [PATCH 29/71] chore(@lg-tools/lint): downgrade glob (#2867) * chore(@lg-tools/lint): downgrade glob package from 11.0.1 to 10.3.12 * chore(@lg-tools/lint): changeset --- .changeset/lint-downgrade-glob.md | 5 + pnpm-lock.yaml | 170 +++++++++++------------------- tools/lint/package.json | 2 +- 3 files changed, 67 insertions(+), 110 deletions(-) create mode 100644 .changeset/lint-downgrade-glob.md diff --git a/.changeset/lint-downgrade-glob.md b/.changeset/lint-downgrade-glob.md new file mode 100644 index 0000000000..2e0f979559 --- /dev/null +++ b/.changeset/lint-downgrade-glob.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/lint': patch +--- + +chore: downgrade `glob` to v10.3.12 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f216121eec..e51a77c395 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1795,7 +1795,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250521) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250522) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3547,8 +3547,8 @@ importers: specifier: 0.11.1 version: 0.11.1(eslint@9.16.0)(typescript@5.8.3) glob: - specifier: 11.0.1 - version: 11.0.1 + specifier: 10.3.12 + version: 10.3.12 globals: specifier: ^15.13.0 version: 15.13.0 @@ -3690,10 +3690,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3702,7 +3702,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250521) + version: 8.0.1(typescript@5.9.0-dev.20250522) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3744,7 +3744,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250521) + version: 2.2.2(typescript@5.9.0-dev.20250522) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3895,7 +3895,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -8056,11 +8056,6 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true - glob@11.0.1: - resolution: {integrity: sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==} - engines: {node: 20 || >=22} - hasBin: true - glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -8920,10 +8915,6 @@ packages: resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} engines: {node: 14 || >=16.14} - lru-cache@11.1.0: - resolution: {integrity: sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==} - engines: {node: 20 || >=22} - lru-cache@4.1.5: resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} @@ -9247,10 +9238,6 @@ packages: minimalistic-crypto-utils@1.0.1: resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==} - minimatch@10.0.1: - resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} - engines: {node: 20 || >=22} - minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -9269,10 +9256,6 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass@7.0.4: - resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} - engines: {node: '>=16 || 14 >=14.17'} - minipass@7.1.2: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} @@ -9540,9 +9523,6 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} - package-json-from-dist@1.0.1: - resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} - pako@1.0.11: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} @@ -9609,10 +9589,6 @@ packages: resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} engines: {node: '>=16 || 14 >=14.17'} - path-scurry@2.0.0: - resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} - engines: {node: 20 || >=22} - path-type@3.0.0: resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} engines: {node: '>=4'} @@ -10757,8 +10733,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250521: - resolution: {integrity: sha512-wxrj9XlTy2D5iqAPWHWKgnXGkHVTgouDmMPhGrxqcX1z5STJKqDCXnebUFKM7xXahfEPtWFIyN7ouyg2G56e7g==} + typescript@5.9.0-dev.20250522: + resolution: {integrity: sha512-5zi45joB4lxgbZokE23gOC139Blh5v/yOBqjO+mXURkJiDsEkfV/JJmTKyMpI8W7wnIx6H7Nyd9zxYOntclNZw==} engines: {node: '>=14.17'} hasBin: true @@ -13493,7 +13469,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -13507,7 +13483,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -13976,7 +13952,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -13986,7 +13962,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250522)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -14004,7 +13980,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 transitivePeerDependencies: - '@swc/core' - esbuild @@ -14122,11 +14098,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250522)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -14139,7 +14115,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -14156,16 +14132,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250522)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250521) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250522) tslib: 2.6.2 - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -14182,16 +14158,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -14230,7 +14206,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250522)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -14243,7 +14219,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -14410,12 +14386,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250521)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250522)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250521) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250522) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -14460,11 +14436,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250522))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250521) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250522) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -14495,10 +14471,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521))(typescript@5.9.0-dev.20250521)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250522))(typescript@5.9.0-dev.20250522)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250521) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250521) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250522) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250522) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -14529,16 +14505,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250521)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250522)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250521) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521))(typescript@5.9.0-dev.20250521) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250522) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250522)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250522))(typescript@5.9.0-dev.20250522) transitivePeerDependencies: - supports-color - typescript @@ -15879,14 +15855,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250521): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250522): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 create-ecdh@4.0.4: dependencies: @@ -16282,7 +16258,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 dunder-proto@1.0.1: dependencies: @@ -16907,7 +16883,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250522)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -16921,7 +16897,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -17049,17 +17025,8 @@ snapshots: foreground-child: 3.1.1 jackspeak: 2.1.1 minimatch: 9.0.5 - minipass: 7.0.4 - path-scurry: 1.10.2 - - glob@11.0.1: - dependencies: - foreground-child: 3.1.1 - jackspeak: 2.1.1 - minimatch: 10.0.1 minipass: 7.1.2 - package-json-from-dist: 1.0.1 - path-scurry: 2.0.0 + path-scurry: 1.10.2 glob@7.2.3: dependencies: @@ -17601,16 +17568,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -17685,7 +17652,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -17711,7 +17678,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -17979,12 +17946,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -18206,8 +18173,6 @@ snapshots: lru-cache@10.2.0: {} - lru-cache@11.1.0: {} - lru-cache@4.1.5: dependencies: pseudomap: 1.0.2 @@ -18808,10 +18773,6 @@ snapshots: minimalistic-crypto-utils@1.0.1: {} - minimatch@10.0.1: - dependencies: - brace-expansion: 2.0.1 - minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -18832,8 +18793,6 @@ snapshots: minimist@1.2.8: {} - minipass@7.0.4: {} - minipass@7.1.2: {} mixme@0.5.9: {} @@ -19141,8 +19100,6 @@ snapshots: p-try@2.2.0: {} - package-json-from-dist@1.0.1: {} - pako@1.0.11: {} param-case@3.0.4: @@ -19205,11 +19162,6 @@ snapshots: path-scurry@1.10.2: dependencies: lru-cache: 10.2.0 - minipass: 7.0.4 - - path-scurry@2.0.0: - dependencies: - lru-cache: 11.1.0 minipass: 7.1.2 path-type@3.0.0: @@ -19419,9 +19371,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250521): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250522): dependencies: - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 react-docgen@7.0.3: dependencies: @@ -20373,7 +20325,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250521): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250522): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -20387,13 +20339,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250522): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -20407,7 +20359,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250521 + typescript: 5.9.0-dev.20250522 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -20534,7 +20486,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250521: {} + typescript@5.9.0-dev.20250522: {} unbox-primitive@1.0.2: dependencies: diff --git a/tools/lint/package.json b/tools/lint/package.json index 81539082f3..3f24fb9288 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -38,7 +38,7 @@ "eslint-plugin-react-hooks": "5.0.0", "eslint-plugin-simple-import-sort": "12.1.1", "eslint-plugin-storybook": "0.11.1", - "glob": "11.0.1", + "glob": "10.3.12", "globals": "^15.13.0", "npm-package-json-lint": "8.0.0", "npm-package-json-lint-config-default": "7.0.1", From 439ff7aa605f8af0c9535faa4cc96a9d5e8e97a2 Mon Sep 17 00:00:00 2001 From: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed, 28 May 2025 15:16:41 -0400 Subject: [PATCH 30/71] Update package.json (#2875) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8fab86bc05..ce5b191998 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "test": "lg test", "unlink": "lg unlink", "validate": "lg validate", + "version": "pnpm changeset version", "watch": "npx nodemon --watch packages/ -e tsx,ts --exec 'pnpm run storybook build --test'" }, "devDependencies": { From 21371bdddb4e6fa39a81c227f5880ece52baf9d1 Mon Sep 17 00:00:00 2001 From: Stephen Lee Date: Wed, 28 May 2025 16:19:15 -0700 Subject: [PATCH 31/71] feat(charts): add customColors prop to SeriesProvider (#2876) * chore(series-provider): add dependencies for lib and colors * feat(series-provider): implement customColors prop and getColor utility * docs(series-provider): update README to include customColors prop in props table * refactor(legend-checkbox): simplify color handling by using getColor utility * chore(legend): remove unused colors dependency from package.json and tsconfig.json * refactor(charts Line): replace color handling with getColor utility * chore(charts): customColors changeset * refactor(charts colors): simplify color definitions by extracting darkColors and lightColors and add DarkColor and LightColor types * chore(charts colors): changeset * fix(charts Line): ensure color fallback to undefined * refactor(series-provider): update customColors to support theme-based color mapping --- .changeset/charts-colors-types.md | 5 + .changeset/charts-custom-colors.md | 7 + charts/colors/src/colors.ts | 79 ++++++----- charts/colors/src/index.ts | 8 +- charts/core/src/Line/Line.tsx | 12 +- charts/legend/package.json | 1 - .../src/LegendCheckbox/LegendCheckbox.tsx | 7 +- charts/legend/tsconfig.json | 3 - charts/series-provider/README.md | 8 +- charts/series-provider/package.json | 4 + .../src/SeriesContext.spec.tsx | 42 +++++- charts/series-provider/src/SeriesContext.tsx | 35 +++++ .../src/SeriesContext.types.ts | 20 +++ charts/series-provider/tsconfig.json | 6 + pnpm-lock.yaml | 125 +++++++++--------- 15 files changed, 242 insertions(+), 120 deletions(-) create mode 100644 .changeset/charts-colors-types.md create mode 100644 .changeset/charts-custom-colors.md diff --git a/.changeset/charts-colors-types.md b/.changeset/charts-colors-types.md new file mode 100644 index 0000000000..83d9344b34 --- /dev/null +++ b/.changeset/charts-colors-types.md @@ -0,0 +1,5 @@ +--- +'@lg-charts/colors': minor +--- + +Refactor colors into separate `darkColors` and `lightColors` arrays and add `DarkColor` and `LightColor` types diff --git a/.changeset/charts-custom-colors.md b/.changeset/charts-custom-colors.md new file mode 100644 index 0000000000..6410e7c398 --- /dev/null +++ b/.changeset/charts-custom-colors.md @@ -0,0 +1,7 @@ +--- +'@lg-charts/series-provider': minor +'@lg-charts/legend': minor +'@lg-charts/core': minor +--- + +[LG-5091](https://jira.mongodb.org/browse/LG-5091): add `customColors` prop to `SeriesProvider` to enable customizing chart component colors diff --git a/charts/colors/src/colors.ts b/charts/colors/src/colors.ts index aecb2305cb..6e48b6bc7b 100644 --- a/charts/colors/src/colors.ts +++ b/charts/colors/src/colors.ts @@ -1,40 +1,47 @@ import { Theme } from '@leafygreen-ui/lib'; import { palette } from '@leafygreen-ui/palette'; +// non-palette values used for a11y +export const darkColors = [ + palette.blue.base, + palette.green.dark1, + '#D68000', + palette.red.base, + palette.purple.base, + palette.blue.light1, + palette.green.base, + palette.yellow.base, + palette.red.light1, + palette.purple.light2, + palette.blue.light2, + palette.green.light1, + palette.yellow.light2, + palette.red.light2, + palette.purple.light3, +] as const; +export type DarkColor = (typeof darkColors)[number]; + +// non-palette values used for a11y +export const lightColors = [ + palette.blue.base, + palette.green.dark1, + '#D68000', + palette.red.base, + palette.purple.dark2, + palette.blue.dark1, + palette.green.dark2, + palette.yellow.dark2, + palette.red.dark2, + palette.purple.dark3, + palette.blue.light1, + '#00A982', + '#B08B2E', + '#F86259', + palette.purple.base, +] as const; +export type LightColor = (typeof lightColors)[number]; + export const colors = { - [Theme.Dark]: [ - palette.blue.base, - palette.green.dark1, - '#D68000', - palette.red.base, - palette.purple.base, - palette.blue.light1, - palette.green.base, - palette.yellow.base, - palette.red.light1, - palette.purple.light2, - palette.blue.light2, - palette.green.light1, - palette.yellow.light2, - palette.red.light2, - palette.purple.light3, - ], - // non-palette values used for a11y - [Theme.Light]: [ - palette.blue.base, - palette.green.dark1, - '#D68000', - palette.red.base, - palette.purple.dark2, - palette.blue.dark1, - palette.green.dark2, - palette.yellow.dark2, - palette.red.dark2, - palette.purple.dark3, - palette.blue.light1, - '#00A982', - '#B08B2E', - '#F86259', - palette.purple.base, - ], -}; + [Theme.Dark]: darkColors, + [Theme.Light]: lightColors, +} as const; diff --git a/charts/colors/src/index.ts b/charts/colors/src/index.ts index 3f2f5efc70..33840613cc 100644 --- a/charts/colors/src/index.ts +++ b/charts/colors/src/index.ts @@ -1 +1,7 @@ -export { colors } from './colors'; +export { + colors, + type DarkColor, + darkColors, + type LightColor, + lightColors, +} from './colors'; diff --git a/charts/core/src/Line/Line.tsx b/charts/core/src/Line/Line.tsx index 0e87e919fe..3ca6124986 100644 --- a/charts/core/src/Line/Line.tsx +++ b/charts/core/src/Line/Line.tsx @@ -1,5 +1,4 @@ import { useEffect } from 'react'; -import { colors } from '@lg-charts/colors'; import { useSeriesContext } from '@lg-charts/series-provider'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; @@ -14,12 +13,9 @@ export function Line({ name, data }: LineProps) { const { chart: { addSeries, ready, removeSeries }, } = useChartContext(); - const { getSeriesIndex, isChecked } = useSeriesContext(); - - const themedColors = colors[theme]; - const colorIndex = getSeriesIndex(name) % themedColors.length; // loop through colors if more lines than available colors - const color = themedColors[colorIndex]; + const { getColor, isChecked } = useSeriesContext(); + const color = getColor(name, theme); const isVisible = isChecked(name); useEffect(() => { @@ -32,11 +28,11 @@ export function Line({ name, data }: LineProps) { data, lineStyle: { ...defaultLineOptions.lineStyle, - color, + color: color || undefined, }, itemStyle: { ...defaultLineOptions.itemStyle, - color, + color: color || undefined, }, }); } else { diff --git a/charts/legend/package.json b/charts/legend/package.json index 216a5edd65..adf4e7a98c 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -20,7 +20,6 @@ "@leafygreen-ui/lib": "workspace:^", "@leafygreen-ui/palette": "workspace:^", "@leafygreen-ui/tokens": "workspace:^", - "@lg-charts/colors": "workspace:^", "@lg-charts/series-provider": "workspace:^" }, "peerDependencies": { diff --git a/charts/legend/src/LegendCheckbox/LegendCheckbox.tsx b/charts/legend/src/LegendCheckbox/LegendCheckbox.tsx index 42300cd15d..90bad9459a 100644 --- a/charts/legend/src/LegendCheckbox/LegendCheckbox.tsx +++ b/charts/legend/src/LegendCheckbox/LegendCheckbox.tsx @@ -1,5 +1,4 @@ import React, { forwardRef } from 'react'; -import { colors } from '@lg-charts/colors'; import { useSeriesContext } from '@lg-charts/series-provider'; import Checkbox from '@leafygreen-ui/checkbox'; @@ -11,11 +10,9 @@ import { LegendCheckboxProps } from './LegendCheckbox.types'; export const LegendCheckbox = forwardRef( ({ className, name, ...rest }, fwdRef) => { const { theme } = useDarkMode(); - const { getSeriesIndex } = useSeriesContext(); + const { getColor } = useSeriesContext(); - const themedColors = colors[theme]; - const colorIndex = name ? getSeriesIndex(name) % themedColors.length : -1; // loop through colors if more checkboxes than available colors - const checkboxColor = themedColors[colorIndex]; + const checkboxColor = name ? getColor(name, theme) : undefined; const showFilled = !!(rest.checked || rest.indeterminate); return ( diff --git a/charts/legend/tsconfig.json b/charts/legend/tsconfig.json index 3baed1d5bd..578f33f51b 100644 --- a/charts/legend/tsconfig.json +++ b/charts/legend/tsconfig.json @@ -18,9 +18,6 @@ "**/*.stories.*" ], "references": [ - { - "path": "../colors" - }, { "path": "../series-provider" }, diff --git a/charts/series-provider/README.md b/charts/series-provider/README.md index ddcf2d607a..d3317935ab 100644 --- a/charts/series-provider/README.md +++ b/charts/series-provider/README.md @@ -51,9 +51,10 @@ const App = () => { ## Props -| Name | Description | Type | Default | -| -------- | --------------------------------------------------------------------------------------------------------- | --------------- | ------- | -| `series` | An array of series names representing the data series to be displayed in the descendant charts components | `Array` | | +| Name | Description | Type | Default | +| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ------- | +| `customColors` | An optional object mapping each theme to an array of custom colors for the series. If not provided, default colors based on the current theme will be used | `Array` | | +| `series` | An array of series names representing the data series to be displayed in the descendant charts components | `Array` | | ## `useSeriesContext` @@ -66,6 +67,7 @@ import { useSeriesContext } from '@leafygreen-ui/series-provider'; const ChartComponent = () => { const { + getColor, getSeriesIndex, isChecked, isSelectAllChecked, diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index b6b1c68831..46660d9e15 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -21,6 +21,10 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, + "dependencies": { + "@leafygreen-ui/lib": "workspace:^", + "@lg-charts/colors": "workspace:^" + }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, diff --git a/charts/series-provider/src/SeriesContext.spec.tsx b/charts/series-provider/src/SeriesContext.spec.tsx index 9ca95fd6e0..5e759c468d 100644 --- a/charts/series-provider/src/SeriesContext.spec.tsx +++ b/charts/series-provider/src/SeriesContext.spec.tsx @@ -1,4 +1,9 @@ import React from 'react'; +import { + colors as defaultColors, + type DarkColor, + type LightColor, +} from '@lg-charts/colors'; import { render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; @@ -6,6 +11,7 @@ import { SeriesProvider, useSeriesContext } from './SeriesContext'; const TestComponent = () => { const { + getColor, getSeriesIndex, isChecked, isSelectAllChecked, @@ -26,6 +32,8 @@ const TestComponent = () => {
{isSelectAllIndeterminate().toString()}
+
{getColor('Test series', 'light')}
+
{getColor('Test series', 'dark')}