Function to be able to clean unused objects from agent scripts
- Node.js 22 or higher
- npm
- Install dependencies:
npm install
- Build TypeScript:
npm run build - Run tests:
npm run test - Lint code:
npm run lint - Clean build:
npm run clean
Test the handler directly from command line:
# Run with default test data
npx ts-node src/handler.ts
# Run with custom JSON data
npx ts-node src/handler.ts '{"name": "test", "value": 123}'This template includes a GitHub Actions CI workflow that automatically runs on pull requests to the main branch. The CI pipeline:
- Runs
npm testto execute Cucumber BDD tests - Runs
npm run lintfor code quality checks - Runs
npm run buildto verify TypeScript compilation
- purecloud-platform-client-v2: PureCloud SDK
- @cucumber/cucumber: BDD testing framework
- TypeScript: Type-safe JavaScript development