@radaid/copilotagent-js
v1.1.10
Published
A JavaScript library for CopilotAgent functionality
Readme
CopilotAgent-js Package
A TypeScript package for integrating Speech Recognition capabilities with AI .
Features
- Integration with SpeechRecognition AI.
Prerequisites
Installation
Clone the repository and install dependencies:
git clone <repository-url>
cd Copilot
yarn install
yarn link Copilot Build
To compile and bundle the package into a single JavaScript file:
yarn run buildThe output will be generated in the dist/ directory.
Directory Structure
/Copilot/
├── src/ # Source files
│ └── index.ts # Entry point for the package
├── dist/ # Bundled output
├── webpack.config.js # Webpack configuration
├── package.json # Package configuration
├── tsconfig.json # TypeScript configuration
├── README.md # This README fileUsage
After building the package, import it into your project:
const CopilotAgent = require('./dist/CopilotAgent-js.js');
CopilotAgent.startListening();Scripts
- Build: Compile TypeScript and bundle files:
yarn run build
How to Configure Package Locally
Unlink the package (if it's already linked)
yarn unlink @radaid/copilotagent-jsLink the package
yarn dev yarn link yarn watchGo to another repo where you want to configure this package
Remove the package from
package.jsonLink the package in the new repo
yarn link @radaid/copilotagent-js yarn dev
License
This project is licensed under the MIT License.
