{"_id":"@automationyard/ai-playwright-reporter","_rev":"2-02ac46d675dc34e8e91564a3e38a8887","name":"@automationyard/ai-playwright-reporter","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@automationyard/ai-playwright-reporter","version":"1.0.1","license":"MIT","_id":"@automationyard/ai-playwright-reporter@1.0.1","maintainers":[{"name":"ravi-automationyard","email":"ravi@automationyard.com"}],"homepage":"https://github.com/automationyard/ai-playwright-reporter#readme","bugs":{"url":"https://github.com/automationyard/ai-playwright-reporter/issues"},"dist":{"shasum":"bbc2323fa1d101dfcb4a095354f524d5dd040521","tarball":"https://registry.npmjs.org/@automationyard/ai-playwright-reporter/-/ai-playwright-reporter-1.0.1.tgz","fileCount":24,"integrity":"sha512-Vdm3LGeqp6JOzShkrkzPs92xZ6bbSNV8SmOm31NrHFsiC2bRubBp8cu1jya8VXqzjQfN2GEncEISmJmWZMhxHQ==","signatures":[{"sig":"MEUCIQDUKQ1Nvi4YPXmJDEYwE8Cv86d4/iFmNl/hXUmgvmz/zQIgdvOyz1hwIYuJM5TvnE8TB52qj9kDPKHmFbomY/RDqKo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22323},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"87fba6efd5ecf09b1efe292bd34d4b0192ba8e0f","scripts":{"test":"vitest","build":"tsc --project tsconfig.app.json","prepare":"husky install","lint:fix":"eslint . --fix","prebuild":"rm -rf lib","prettier":"prettier . --check","prettier:fix":"prettier . --write"},"_npmUser":{"name":"ravi-automationyard","email":"ravi@automationyard.com"},"repository":{"url":"git+https://github.com/automationyard/ai-playwright-reporter.git","type":"git"},"_npmVersion":"10.8.2","description":"A custom Playwright reporter that generates humorous test report summaries and sends them to Slack and Microsoft Teams using AI-powered message generation.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"axios":"^0.28.0","dotenv":"^16.4.5","openai":"^4.60.0","@anthropic-ai/sdk":"^0.27.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.0","eslint":"^9.10.0","vitest":"^2.1.0","prettier":"^3.3.3","playwright":"^1.47.0","typescript":"^5.6.0","@types/node":"^20.0.0","lint-staged":"^15.2.10","@types/axios":"^0.14.0","@playwright/test":"^1.47.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@typescript-eslint/parser":"^8.5.0","@typescript-eslint/eslint-plugin":"^8.5.0"},"peerDependencies":{"@playwright/test":">=1.40.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-playwright-reporter_1.0.1_1727716435772_0.9744178919762847","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@automationyard/ai-playwright-reporter","version":"1.0.2","license":"MIT","_id":"@automationyard/ai-playwright-reporter@1.0.2","maintainers":[{"name":"ravi-automationyard","email":"ravi@automationyard.com"}],"homepage":"https://github.com/automationyard/ai-playwright-reporter#readme","bugs":{"url":"https://github.com/automationyard/ai-playwright-reporter/issues"},"dist":{"shasum":"b2ebff3b9cf0cfa1f85a7505abea90d08f6e99d0","tarball":"https://registry.npmjs.org/@automationyard/ai-playwright-reporter/-/ai-playwright-reporter-1.0.2.tgz","fileCount":24,"integrity":"sha512-x9K1GiEpLmcLypbfOSExIiGCVhRbQ9KTSvX6q303CBYyQvE2ABu65ANyrtwzyHlQqbBKYb6htCwkL9F0wvJxHg==","signatures":[{"sig":"MEUCIQDin+/lNrGs3edCm3UiaZbtroOHM+7nhpcFECyZR7bQ2QIgAIa8aUiWpxWDZkQT6tnKfa2nPBF6VRjPK4SnF4JeLuw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22556},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"666d45fc420dd871d329952d4f3971cc7cfa4600","scripts":{"test":"vitest","build":"tsc --project tsconfig.app.json","prepare":"husky install","lint:fix":"eslint . --fix","prebuild":"rm -rf lib","prettier":"prettier . --check","prettier:fix":"prettier . --write"},"_npmUser":{"name":"ravi-automationyard","email":"ravi@automationyard.com"},"repository":{"url":"git+https://github.com/automationyard/ai-playwright-reporter.git","type":"git"},"_npmVersion":"10.8.2","description":"A custom Playwright reporter that generates humorous test report summaries and sends them to Slack and Microsoft Teams using AI-powered message generation.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"axios":"^0.28.0","dotenv":"^16.4.5","openai":"^4.60.0","@anthropic-ai/sdk":"^0.27.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.0","eslint":"^9.10.0","vitest":"^2.1.0","prettier":"^3.3.3","playwright":"^1.47.0","typescript":"^5.6.0","@types/node":"^20.0.0","lint-staged":"^15.2.10","@types/axios":"^0.14.0","@playwright/test":"^1.47.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@typescript-eslint/parser":"^8.5.0","@typescript-eslint/eslint-plugin":"^8.5.0"},"peerDependencies":{"@playwright/test":">=1.40.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-playwright-reporter_1.0.2_1727717136734_0.7490470274340808","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@automationyard/ai-playwright-reporter","version":"1.0.3","main":"lib/index.js","types":"lib/index.d.ts","license":"MIT","bugs":{"url":"https://github.com/automation-yard/ai-playwright-reporter/issues"},"repository":{"type":"git","url":"git+https://github.com/automation-yard/ai-playwright-reporter.git"},"homepage":"https://github.com/automation-yard/ai-playwright-reporter#readme","keywords":["playwright","reporter","ai","slack","teams"],"scripts":{"build":"tsc --project tsconfig.app.json","test":"vitest","prebuild":"rm -rf lib","lint:fix":"eslint . --fix","prettier":"prettier . --check","prettier:fix":"prettier . --write","prepare":"husky install"},"dependencies":{"@anthropic-ai/sdk":"^0.27.3","axios":"^0.28.0","dotenv":"^16.4.5","openai":"^4.60.0"},"peerDependencies":{"@playwright/test":">=1.40.0"},"devDependencies":{"@playwright/test":"^1.47.0","@types/axios":"^0.14.0","@types/node":"^20.0.0","@typescript-eslint/eslint-plugin":"^8.5.0","@typescript-eslint/parser":"^8.5.0","eslint":"^9.10.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","husky":"^8.0.0","lint-staged":"^15.2.10","playwright":"^1.47.0","prettier":"^3.3.3","typescript":"^5.6.0","vitest":"^2.1.0"},"publishConfig":{"access":"public"},"_id":"@automationyard/ai-playwright-reporter@1.0.3","gitHead":"1eeffd489afa6079f22a7c012342d0aadbfd7f07","description":"A custom Playwright reporter that generates humorous test report summaries and sends them to Slack and Microsoft Teams using AI-powered message generation.","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-7iG/HHSDGI72wTrlkrvTwZbLh2wy1RoWH1rfGrEZy1x89/JPrmrYjg1ndkaONeYqoxoMoMtUIjNm4Sslh66Eaw==","shasum":"8b8c47faa6aa4bf6425bea0eb16c29b410121061","tarball":"https://registry.npmjs.org/@automationyard/ai-playwright-reporter/-/ai-playwright-reporter-1.0.3.tgz","fileCount":24,"unpackedSize":22647,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFJgimdPk5RnsNTZBw9LaGINKtK45uUoxS7pA2Ham7ZAiEAum9c5FfkpMHqa+vd6wc/WTb7fvv3y5EpnPiDUisaZtQ="}]},"_npmUser":{"name":"ravi-automationyard","email":"ravi@automationyard.com"},"directories":{},"maintainers":[{"name":"ravi-automationyard","email":"ravi@automationyard.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ai-playwright-reporter_1.0.3_1727717660597_0.10010822967707234"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-30T17:13:55.653Z","modified":"2024-09-30T17:34:21.035Z","1.0.1":"2024-09-30T17:13:55.973Z","1.0.2":"2024-09-30T17:25:37.007Z","1.0.3":"2024-09-30T17:34:20.820Z"},"bugs":{"url":"https://github.com/automation-yard/ai-playwright-reporter/issues"},"license":"MIT","homepage":"https://github.com/automation-yard/ai-playwright-reporter#readme","repository":{"type":"git","url":"git+https://github.com/automation-yard/ai-playwright-reporter.git"},"description":"A custom Playwright reporter that generates humorous test report summaries and sends them to Slack and Microsoft Teams using AI-powered message generation.","maintainers":[{"name":"ravi-automationyard","email":"ravi@automationyard.com"}],"readme":"# AI Playwright Reporter\n\nA custom Playwright reporter that generates humorous test report summaries and sends them to Slack and Microsoft Teams using AI-powered message generation.\n\n## Features\n\n- **AI-Generated Summaries**: Uses OpenAI or Anthropic's Claude to create engaging and humorous summaries of your Playwright test results.\n- **Integrations**: Sends report summaries directly to Slack and Microsoft Teams via webhooks.\n- **Customizable**: Choose between OpenAI and Claude models for message generation.\n- **Easy Setup**: Simple configuration to get started quickly with your Playwright projects.\n\n## Installation\n\nInstall the package via npm:\n\n```bash\nnpm install @automationyard/ai-playwright-reporter\n```\n\n## Example Outputs\n\n![Slack Example](./assets/image.png)\n\n![Teams Example 1](./assets/image1.png)\n\n![Teams Example 2](./assets/image2.png)\n\n## Usage\n\n1. **Configuration**:\n\nAdd the reporter to your Playwright configuration file (e.g., `playwright.config.ts`):\n\n```javascript\nimport { SlackTeamsReporterOptions } from \"./src/reporter\";\nimport { defineConfig } from \"@playwright/test\";\nexport default defineConfig({\n  testDir: \"playwright-tests\",\n  reporter: [\n    [\"list\"],\n    [\n      \"@automationyard/ai-playwright-reporter\",\n      {\n        type: \"anthropic\",\n        model: \"claude-3-5-sonnet-20240620\",\n        apiKey: \"your-api-key-here\",\n        slackWebhookUrl: \"your-slack-webhook-url-here\",\n        teamsWebhookUrl: \"your-teams-webhook-url-here\",\n      } as SlackTeamsReporterOptions,\n    ],\n  ],\n});\n```\n\n2. **Environment Variables**:\n\nInstead of hardcoding sensitive information, you can use environment variables:\n\n- `OPENAI_API_KEY` or `ANTHROPIC_API_KEY`: Your API key for the chosen AI service\n- `SLACK_WEBHOOK_URL`: Your Slack webhook URL\n- `TEAMS_WEBHOOK_URL`: Your Microsoft Teams webhook URL\n\n## Configuration Options\n\n- `type`: The type of AI model to use for message generation.\n- `model`: The model to use for message generation.\n- `apiKey`: Your API key for OpenAI or Anthropic.\n- `slackWebhookUrl`: The URL of your Slack webhook.\n- `teamsWebhookUrl`: The URL of your Microsoft Teams webhook.\n\n## Development\n\nTo contribute to this project:\n\n1. Clone the repository\n2. Install dependencies: `npm install`\n3. Run tests: `npm test`\n4. Build the package: `npm run build`\n\n## License\n\nThis project is licensed under the MIT License.\n","readmeFilename":"README.md","keywords":["playwright","reporter","ai","slack","teams"]}