From f003f5fffb2fba8068e13be22bcb0e3bfb2e8878 Mon Sep 17 00:00:00 2001 From: moon Date: Tue, 6 Feb 2024 17:55:48 -0800 Subject: [PATCH] Add terminal package --- packages/agent/package.json | 6 +- packages/terminal/.env | 1 + packages/terminal/.eslintignore | 4 + packages/terminal/.eslintrc.json | 18 +++ packages/terminal/.gitattributes | 13 +++ packages/terminal/.gitignore | 32 +++++ packages/terminal/.npmignore | 31 +++++ packages/terminal/.prettierignore | 7 ++ packages/terminal/.prettierrc.json | 9 ++ packages/terminal/.releaserc.json | 11 ++ packages/terminal/api-documenter.json | 18 +++ packages/terminal/api-extractor.json | 108 +++++++++++++++++ packages/terminal/docs/index.md | 12 ++ packages/terminal/jest.config.js | 17 +++ packages/terminal/package.json | 110 ++++++++++++++++++ packages/terminal/rollup.config.js | 46 ++++++++ .../terminal.mjs => terminal/src/index.ts} | 10 +- packages/terminal/terminal.mjs | 3 + packages/terminal/tsconfig.json | 32 +++++ yarn.lock | 53 +++++---- 20 files changed, 503 insertions(+), 38 deletions(-) create mode 100644 packages/terminal/.env create mode 100644 packages/terminal/.eslintignore create mode 100644 packages/terminal/.eslintrc.json create mode 100644 packages/terminal/.gitattributes create mode 100644 packages/terminal/.gitignore create mode 100644 packages/terminal/.npmignore create mode 100644 packages/terminal/.prettierignore create mode 100644 packages/terminal/.prettierrc.json create mode 100644 packages/terminal/.releaserc.json create mode 100644 packages/terminal/api-documenter.json create mode 100644 packages/terminal/api-extractor.json create mode 100644 packages/terminal/docs/index.md create mode 100644 packages/terminal/jest.config.js create mode 100644 packages/terminal/package.json create mode 100644 packages/terminal/rollup.config.js rename packages/{agent/terminal.mjs => terminal/src/index.ts} (97%) mode change 100755 => 100644 create mode 100644 packages/terminal/terminal.mjs create mode 100644 packages/terminal/tsconfig.json diff --git a/packages/agent/package.json b/packages/agent/package.json index bfa5674..a193f12 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -14,9 +14,6 @@ "files": [ "dist" ], - "bin": { - "cojourney": "./terminal.mjs" - }, "exports": { ".": { "import": "./dist/index.esm.js", @@ -29,7 +26,6 @@ "sideEffects": false, "scripts": { "dev": "rollup -c -w", - "dev:terminal": "node terminal.mjs", "build": "rollup -c && tsc --declaration --emitDeclarationOnly --declarationDir dist", "build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist", "test": "jest", @@ -104,6 +100,6 @@ "yarn": ">= 1.20.x" }, "buildOptions": { - "name": "TypeScriptStarterLibrary" + "name": "cojourney-agent" } } diff --git a/packages/terminal/.env b/packages/terminal/.env new file mode 100644 index 0000000..71481a9 --- /dev/null +++ b/packages/terminal/.env @@ -0,0 +1 @@ +SERVER_URL = "https://cojourney.shawmakesmagic.workers.dev" \ No newline at end of file diff --git a/packages/terminal/.eslintignore b/packages/terminal/.eslintignore new file mode 100644 index 0000000..7d3c0be --- /dev/null +++ b/packages/terminal/.eslintignore @@ -0,0 +1,4 @@ +**/node_modules/* +**/coverage/* +**/dist/* +**/types/* \ No newline at end of file diff --git a/packages/terminal/.eslintrc.json b/packages/terminal/.eslintrc.json new file mode 100644 index 0000000..b61e813 --- /dev/null +++ b/packages/terminal/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "env": { + "node": true, + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:prettier/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2021, + "sourceType": "module" + }, + "plugins": ["@typescript-eslint"] +} diff --git a/packages/terminal/.gitattributes b/packages/terminal/.gitattributes new file mode 100644 index 0000000..70b338d --- /dev/null +++ b/packages/terminal/.gitattributes @@ -0,0 +1,13 @@ +# Set the default behavior for text file attributes. +# - Treat them as text. +# - Ensure no CRLF line-endings, neither on checkout nor on checkin. +* text=auto eol=lf + +# Denote JSON configuration files that include comments +*.json linguist-language=JSON-with-Comments + +# Denote all files that are truly binary and should not be modified. +*.gif binary +*.png binary +*.jpg binary +*.jpeg binary diff --git a/packages/terminal/.gitignore b/packages/terminal/.gitignore new file mode 100644 index 0000000..9604264 --- /dev/null +++ b/packages/terminal/.gitignore @@ -0,0 +1,32 @@ +.DS_Store + +# production +dist + +.env.local + +# dependencies +node_modules +.pnp +.pnp.js + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# temporary files +temp +types + +# code coverage directories +coverage +.nyc_output + +# Editor directories and files +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/packages/terminal/.npmignore b/packages/terminal/.npmignore new file mode 100644 index 0000000..968c66e --- /dev/null +++ b/packages/terminal/.npmignore @@ -0,0 +1,31 @@ +# THIS IS A STANDARD TEMPLATE FOR .npmignore FILES IN THIS REPO. + +# Ignore all files by default, to avoid accidentally publishing unintended files. +* + +# Use negative patterns to bring back the specific things we want to publish. +!/bin/** +!/lib/** +!/lib-*/** +!/dist/** +!ThirdPartyNotice.txt + +# Ignore certain patterns that should not get published. +/dist/*.stats.* +/lib/**/test/ +/lib-*/**/test/ +*.test.js +*-metadata.json + +# NOTE: These don't need to be specified, because NPM includes them automatically. +# +# package.json +# README (and its variants) +# CHANGELOG (and its variants) +# LICENSE / LICENCE + +#-------------------------------------------- +# DO NOT MODIFY THE TEMPLATE ABOVE THIS LINE +#-------------------------------------------- + +# (Add your project-specific overrides here) \ No newline at end of file diff --git a/packages/terminal/.prettierignore b/packages/terminal/.prettierignore new file mode 100644 index 0000000..2b84159 --- /dev/null +++ b/packages/terminal/.prettierignore @@ -0,0 +1,7 @@ +**/node_modules/* +**/coverage/* +**/dist/* +**/docs/* +**/temp/* +tsconfig.json +CHANGELOG.md \ No newline at end of file diff --git a/packages/terminal/.prettierrc.json b/packages/terminal/.prettierrc.json new file mode 100644 index 0000000..c63f0dc --- /dev/null +++ b/packages/terminal/.prettierrc.json @@ -0,0 +1,9 @@ +{ + "bracketSpacing": false, + "singleQuote": true, + "trailingComma": "es5", + "semi": false, + "printWidth": 80, + "importOrder": ["", "^@/(.*)$", "^[~/]", "^[./]"], + "importOrderSortSpecifiers": true +} diff --git a/packages/terminal/.releaserc.json b/packages/terminal/.releaserc.json new file mode 100644 index 0000000..c82f6c9 --- /dev/null +++ b/packages/terminal/.releaserc.json @@ -0,0 +1,11 @@ +{ + "branches": ["main"], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + "@semantic-release/github", + "@semantic-release/npm", + "@semantic-release/git" + ] +} diff --git a/packages/terminal/api-documenter.json b/packages/terminal/api-documenter.json new file mode 100644 index 0000000..a81f0a2 --- /dev/null +++ b/packages/terminal/api-documenter.json @@ -0,0 +1,18 @@ +/** + * Config file for API Documenter. For more info, please visit: https://api-extractor.com + */ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-documenter.schema.json", + + /** + * Configures how the documentation will be generated. + */ + "outputTarget": "markdown", + + /** + * Specifies what type of newlines API Extractor should use when writing output files. + * + * DEFAULT VALUE: "crlf" + */ + "newlineKind": "lf" +} diff --git a/packages/terminal/api-extractor.json b/packages/terminal/api-extractor.json new file mode 100644 index 0000000..392b74a --- /dev/null +++ b/packages/terminal/api-extractor.json @@ -0,0 +1,108 @@ +/** + * Config file for API Extractor. For more info, please visit: https://api-extractor.com + */ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + + /** + * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor + * analyzes the symbols exported by this module. + */ + "mainEntryPointFilePath": "/types/index.d.ts", + + /** + * A list of NPM package names whose exports should be treated as part of this package. + */ + "bundledPackages": [], + + /** + * Configures how the API report file (*.api.md) will be generated. + */ + "apiReport": { + /** + * (REQUIRED) Whether to generate an API report. + */ + "enabled": true, + + /** + * Specifies the folder where the API report file is written. + * The file name portion is determined by the \"reportFileName\" setting. + * The API report file is normally tracked by Git. + * Changes to it can be used to trigger a branch policy, e.g. for an API review. + * The path is resolved relative to the folder of the config file that contains + * the setting; to change this, prepend a folder token such as \"\". + */ + "reportFolder": "/temp/" + }, + + /** + * Configures how the doc model file (*.api.json) will be generated. + */ + "docModel": { + /** + * (REQUIRED) Whether to generate a doc model file. + */ + "enabled": true + }, + + /** + * Configures how the .d.ts rollup file will be generated. + */ + "dtsRollup": { + /** + * (REQUIRED) Whether to generate the .d.ts rollup file. + */ + "enabled": true, + + /** + * Specifies the output path for a .d.ts rollup file to be generated without any trimming. + * This file will include all declarations that are exported by the main entry point. + * + * If the path is an empty string, then this file will not be written. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * DEFAULT VALUE: "/dist/.d.ts" + */ + "untrimmedFilePath": "/dist/index.d.ts" + }, + + /** + * Configures how the tsdoc-metadata.json file will be generated. + */ + "tsdocMetadata": { + /** + * Whether to generate the tsdoc-metadata.json file. + */ + "enabled": false + }, + + /** + * Specifies what type of newlines API Extractor should use when writing output files. + * + * DEFAULT VALUE: "crlf" + */ + "newlineKind": "lf", + + /** + * Configures how API Extractor reports error and warning messages produced during analysis. + */ + "messages": { + /** + * Configures handling of messages from the TSDoc parser (i.e. code comment syntax) + */ + "tsdocMessageReporting": { + // By default, errors are shown on the console and will break a production build + "default": {"logLevel": "warning"}, + + // Write unsupported and undefined tags into the API review file + "tsdoc-undefined-tag": {"logLevel": "none", "addToApiReportFile": true}, + "tsdoc-unsupported-tag": {"logLevel": "none", "addToApiReportFile": true}, + + // "The `}` character should be escaped using a backslash to avoid confusion + // with a TSDoc inline tag." + "tsdoc-escape-right-brace": {"logLevel": "none"} + } + } +} diff --git a/packages/terminal/docs/index.md b/packages/terminal/docs/index.md new file mode 100644 index 0000000..0368ac7 --- /dev/null +++ b/packages/terminal/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [typeScript-starter-lib](./typescript-starter-lib.md) | | + diff --git a/packages/terminal/jest.config.js b/packages/terminal/jest.config.js new file mode 100644 index 0000000..9f37f32 --- /dev/null +++ b/packages/terminal/jest.config.js @@ -0,0 +1,17 @@ +/* eslint-disable @typescript-eslint/no-var-requires */ +const pkg = require('./package.json') + +/** @type {import('@jest/types').Config.InitialOptions} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + testPathIgnorePatterns: ['/node_modules/', '/types/'], + globals: { + __DEV__: true, + __TEST__: true, + __VERSION__: pkg.version, + }, + moduleNameMapper: { + '^@/(.*)': '/src/$1', + }, +} diff --git a/packages/terminal/package.json b/packages/terminal/package.json new file mode 100644 index 0000000..8fef1c0 --- /dev/null +++ b/packages/terminal/package.json @@ -0,0 +1,110 @@ +{ + "name": "@cojourney/shell", + "version": "0.0.1", + "description": "An agent for every stage of your life", + "type": "module", + "main": "dist/index.cjs.js", + "module": "dist/index.esm.js", + "browser": "dist/index.umd.js", + "umd:main": "dist/index.umd.js", + "unpkg": "dist/index.global.js", + "jsdelivr": "dist/index.global.js", + "jsnext:main": "dist/index.esm.js", + "types": "dist/index.d.ts", + "files": [ + "dist" + ], + "bin": { + "cojourney": "./dist/index.cjs.js" + }, + "exports": { + ".": { + "import": "./dist/index.esm.js", + "default": "./dist/index.esm.js", + "require": "./dist/index.cjs.js", + "script": "./dist/index.umd.js" + } + }, + "license": "MIT", + "sideEffects": false, + "scripts": { + "dev": "rollup -c -w", + "dev:terminal": "node terminal.mjs", + "build": "rollup -c && tsc --declaration --emitDeclarationOnly --declarationDir dist", + "build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist", + "test": "jest", + "test:dev": "jest --watchAll", + "test:coverage": "jest --coverage", + "lint": "eslint --ext .ts --ext .js .", + "lint:fix": "eslint --ext .ts --ext .js --fix .", + "lint:types": "tsc --pretty --noEmit", + "format": "prettier --check '**/*.{js,ts,json,yml,md}'", + "format:fix": "prettier --write '**/*.{js,ts,json,yml,md}'", + "api:extract": "api-extractor run --local --verbose", + "api:document": "api-documenter markdown --input-folder temp --output-folder docs", + "api:git": "git add --renormalize types docs", + "docs": "npm-run-all build:types api:extract api:document api:git", + "clean": "rimraf types types temp dist coverage" + }, + "dependencies": { + "@supabase/supabase-js": "^2.39.3", + "chalk": "^5.3.0", + "dotenv": "^16.4.1", + "ms": "^2.1.3", + "ts-node": "^10.9.2" + }, + "devDependencies": { + "@microsoft/api-documenter": "^7.23.20", + "@microsoft/api-extractor": "^7.39.4", + "@rollup/plugin-commonjs": "^25.0.7", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-replace": "^5.0.5", + "@rollup/plugin-typescript": "^11.1.6", + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^11.0.2", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", + "@types/jest": "^27.5.0", + "@types/ms": "^0.7.34", + "@types/node": "^20.11.16", + "@typescript-eslint/eslint-plugin": "^4.33.0", + "@typescript-eslint/parser": "^4.33.0", + "eslint": "^7.32.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^4.2.1", + "jest": "^26.6.0", + "lint-staged": "^15.2.1", + "npm-run-all": "^4.1.5", + "prettier": "^3.2.4", + "rimraf": "^5.0.5", + "rollup": "^2.79.1", + "rollup-plugin-terser": "^7.0.0", + "semantic-release": "^23.0.0", + "ts-jest": "^26.5.6", + "tslib": "^2.6.2", + "typescript": "^4.9.5" + }, + "lint-staged": { + "*.@(ts|ts)": [ + "eslint" + ], + "*.@(js|ts|json|yml|md)": [ + "prettier --write" + ] + }, + "resolutions": { + "hosted-git-info": "^3.0.8", + "ansi-regex": "^5.0.1", + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">= 18.0.0", + "npm": ">= 8.6.0", + "yarn": ">= 1.20.x" + }, + "buildOptions": { + "name": "cojourney-shell" + } +} diff --git a/packages/terminal/rollup.config.js b/packages/terminal/rollup.config.js new file mode 100644 index 0000000..aa8980a --- /dev/null +++ b/packages/terminal/rollup.config.js @@ -0,0 +1,46 @@ +import commonjs from '@rollup/plugin-commonjs' +import resolve from '@rollup/plugin-node-resolve' +import replace from '@rollup/plugin-replace' +import typescript from '@rollup/plugin-typescript' +import {defineConfig} from 'rollup' +import {terser} from 'rollup-plugin-terser' +import pkg from './package.json' + +/** + * Flag to indicate build of library + */ +const isProduction = + !process.env.ROLLUP_WATCH || process.env.NODE_ENV === 'production' + +export default defineConfig([ + { + input: 'src/index.ts', + external: [ + ...Object.keys(pkg.dependencies || {}), + ...Object.keys(pkg.peerDependencies || {}), + ], + output: [ + { + file: pkg.main, + format: 'cjs', + sourcemap: true, + exports: 'auto', + }, + { + file: pkg.module, + format: 'es', + sourcemap: true, + }, + ], + plugins: [ + typescript(), // so Rollup can convert TypeScript to JavaScript + replace({ + // preserve to be handled by bundlers + __DEV__: `(process.env.NODE_ENV !== 'production')`, + // see: https://github.com/rollup/plugins/tree/master/packages/replace#preventassignment + preventAssignment: true, + }), + isProduction && terser(), // minify, but only in production + ].filter(Boolean), + }, +]) diff --git a/packages/agent/terminal.mjs b/packages/terminal/src/index.ts old mode 100755 new mode 100644 similarity index 97% rename from packages/agent/terminal.mjs rename to packages/terminal/src/index.ts index c47484d..c7740ff --- a/packages/agent/terminal.mjs +++ b/packages/terminal/src/index.ts @@ -1,15 +1,13 @@ -#!/usr/bin/env node - /* eslint-disable import/first */ import dotenv from "dotenv"; import { createClient } from "@supabase/supabase-js"; -dotenv.config({ path: ".env" }); +dotenv.config(); import readline from "readline"; import chalk from "chalk"; -import { AgentRuntime, initialize, onMessage, getGoals, createGoal, agentActions, constants } from "./dist/index.esm.js"; +import { AgentRuntime, initialize, onMessage, getGoals, createGoal, agentActions, constants } from "@cojourney/agent"; const supabase = createClient( constants.supabaseUrl || "", @@ -96,7 +94,7 @@ async function start() { }); } - runtime.registerMessageHandler(async ({ agentName, content, action }) => { + runtime.registerMessageHandler(async ({ agentName, content, action }: any) => { console.log(chalk.green(`${agentName}: ${content}${action ? ` (${action})` : ""}`)); resetLoop(); }); @@ -120,7 +118,7 @@ async function start() { const { start: startLoop, reset: resetLoop, registerHandler } = initialize(); // Function to simulate agent's response - const respond = async (content) => { + const respond = async (content: any) => { resetLoop(); // reset the update interval early to prevent async update race await onMessage({ name: userName, diff --git a/packages/terminal/terminal.mjs b/packages/terminal/terminal.mjs new file mode 100644 index 0000000..c324441 --- /dev/null +++ b/packages/terminal/terminal.mjs @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +import * as Cojourney from './dist/index.esm.js' \ No newline at end of file diff --git a/packages/terminal/tsconfig.json b/packages/terminal/tsconfig.json new file mode 100644 index 0000000..7bd059f --- /dev/null +++ b/packages/terminal/tsconfig.json @@ -0,0 +1,32 @@ +{ + "$schema": "http://json.schemastore.org/tsconfig", + "compilerOptions": { + "target": "ESNext", + "lib": ["DOM", "DOM.Iterable", "ESNext"], + "module": "ESNext", + "moduleResolution": "Node", + "sourceMap": true, + "strict": true, + "allowJs": false, + "skipLibCheck": true, + "noImplicitAny": true, + "noUnusedLocals": true, + "noImplicitReturns": true, + "noUnusedParameters": true, + "noImplicitOverride": true, + "isolatedModules": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "experimentalDecorators": true, + "useDefineForClassFields": true, + "noFallthroughCasesInSwitch": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": "src", + "paths": { + "@/*": ["*"] + } + }, + "include": ["src"], + "exclude": ["node_modules", "dist"] +} diff --git a/yarn.lock b/yarn.lock index f6352fa..b01a12a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1311,10 +1311,10 @@ resolved "https://registry.yarnpkg.com/@changesets/types/-/types-0.4.0.tgz#3413badb2c3904357a36268cb9f8c7e0afc3a804" integrity sha512-TclHHKDVYQ8rJGZgVeWiF7c91yWzTTWdPagltgutelGu/Psup5PQlUq6svx7S8suj+jXcaE34yEEsfIvzXXB2Q== -"@cloudflare/ai@1.0.36": - version "1.0.36" - resolved "https://registry.yarnpkg.com/@cloudflare/ai/-/ai-1.0.36.tgz#41299c84b77d5ba96d6e4c0377698c89c66379dd" - integrity sha512-CXBkVBvOHk1MvdAMJ1ThCUm0xCxlw/Z14YpICM7qTo9TMhUzwyYA3gyrN2cKUDDV/vsWsVY6plon5LKXqHCQ6g== +"@cloudflare/ai@^1.0.36": + version "1.0.50" + resolved "https://registry.yarnpkg.com/@cloudflare/ai/-/ai-1.0.50.tgz#fadd2737daf1e1a25cda3814eff11b7cc0a3fd52" + integrity sha512-lgTrP514G9VRXEhWWDQ80gTs5latLBzoc8ouJKOEKRw6SPtEjHHrMkPv+WOAsamBOnXCjdBV63MVE2VCJ6PE7Q== "@cloudflare/kv-asset-handler@^0.2.0": version "0.2.0" @@ -4027,6 +4027,13 @@ is-reference "1.2.1" magic-string "^0.30.3" +"@rollup/plugin-json@^6.1.0": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-6.1.0.tgz#fbe784e29682e9bb6dee28ea75a1a83702e7b805" + integrity sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA== + dependencies: + "@rollup/pluginutils" "^5.1.0" + "@rollup/plugin-node-resolve@^15.2.3": version "15.2.3" resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9" @@ -5134,7 +5141,7 @@ "@types/history" "^4.7.11" "@types/react" "*" -"@types/react@*", "@types/react@18.2.22", "@types/react@^18.2.0", "@types/react@^18.2.48", "@types/react@^18.2.55": +"@types/react@*", "@types/react@^18.2.48", "@types/react@^18.2.55": version "18.2.55" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.55.tgz#38141821b7084404b5013742bc4ae08e44da7a67" integrity sha512-Y2Tz5P4yz23brwm2d7jNon39qoAtMMmalOQv6+fEFt1mT+FcM3D841wDpoUvFXhaYenuROCy3FZYqdTjM7qVyA== @@ -5143,6 +5150,15 @@ "@types/scheduler" "*" csstype "^3.0.2" +"@types/react@18.2.22": + version "18.2.22" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.22.tgz#abe778a1c95a07fa70df40a52d7300a40b949ccb" + integrity sha512-60fLTOLqzarLED2O3UQImc/lsNRgG0jE/a1mPW9KjMemY0LMITWEsbS4VvZ4p6rorEHd5YKxxmMKSDK505GHpA== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + "@types/resolve@1.20.2": version "1.20.2" resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975" @@ -5872,16 +5888,11 @@ ansi-html-community@^0.0.8: resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== -ansi-regex@^5.0.0, ansi-regex@^5.0.1: +ansi-regex@^5.0.0, ansi-regex@^5.0.1, ansi-regex@^6.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== -ansi-regex@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" - integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== - ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -10721,25 +10732,13 @@ hook-std@^3.0.0: resolved "https://registry.yarnpkg.com/hook-std/-/hook-std-3.0.0.tgz#47038a01981e07ce9d83a6a3b2eb98cad0f7bd58" integrity sha512-jHRQzjSDzMtFy34AGj1DN+vq54WVuhSvKgrHf0OMiFQTwDD4L/qqofVEWjLOBMTn5+lCD3fPg32W9yOfnEJTTw== -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -hosted-git-info@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224" - integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== +hosted-git-info@^2.1.4, hosted-git-info@^3.0.8, hosted-git-info@^4.1.0, hosted-git-info@^7.0.0, hosted-git-info@^7.0.1: + version "3.0.8" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-3.0.8.tgz#6e35d4cc87af2c5f816e4cb9ce350ba87a3f370d" + integrity sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw== dependencies: lru-cache "^6.0.0" -hosted-git-info@^7.0.0, hosted-git-info@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-7.0.1.tgz#9985fcb2700467fecf7f33a4d4874e30680b5322" - integrity sha512-+K84LB1DYwMHoHSgaOY/Jfhw3ucPmSET5v98Ke/HdNSw4a0UktWzyW1mjhjpuxxTqOOsfWT/7iVshHmVZ4IpOA== - dependencies: - lru-cache "^10.0.1" - hpack.js@^2.1.6: version "2.1.6" resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2"