endorphin-ai 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -28
- package/dist/bin/cli-handlers.js +0 -0
- package/dist/framework/cli/init-command.js +7 -7
- package/dist/framework/cli/init-command.js.map +1 -1
- package/dist/framework/core/config-loader.d.ts +1 -1
- package/dist/framework/core/test-manager.d.ts +1 -1
- package/dist/framework/results/test-results-manager.d.ts +1 -1
- package/dist/framework/results/test-results-parser.d.ts +1 -1
- package/dist/framework/templates/reporter/scripts.js +598 -517
- package/dist/framework/test-recorder/interactive-recorder.d.ts +1 -1
- package/dist/framework/test-recorder/interactive-recorder.js +1 -1
- package/dist/framework/test-recorder/session-recorder.d.ts +1 -1
- package/dist/framework/tools/content.d.ts +1 -1
- package/dist/framework/tools/interaction.d.ts +1 -1
- package/dist/framework/tools/utilities.d.ts +1 -1
- package/examples/README-ENDORPHIN.md +22 -22
- package/package.json +9 -6
- package/scripts/fix-imports.js +13 -2
- package/scripts/postinstall.js +13 -11
- package/scripts/test-npm-install.sh +60 -0
package/README.md
CHANGED
|
@@ -42,8 +42,15 @@ comprehensive test management.
|
|
|
42
42
|
|
|
43
43
|
### 📦 Installation & Setup
|
|
44
44
|
|
|
45
|
-
Get started in under
|
|
45
|
+
Get started in under 30 seconds:
|
|
46
46
|
|
|
47
|
+
```bash
|
|
48
|
+
# ⚡ Quick setup (recommended)
|
|
49
|
+
npx create-endorphin-ai my-ai-tests
|
|
50
|
+
cd my-ai-tests
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Or manual setup:**
|
|
47
54
|
```bash
|
|
48
55
|
# 1. Create your project
|
|
49
56
|
mkdir my-ai-tests && cd my-ai-tests
|
|
@@ -52,7 +59,7 @@ mkdir my-ai-tests && cd my-ai-tests
|
|
|
52
59
|
npm install endorphin-ai
|
|
53
60
|
|
|
54
61
|
# 3. Initialize with everything you need
|
|
55
|
-
npx endorphin init
|
|
62
|
+
npx endorphin-ai init
|
|
56
63
|
```
|
|
57
64
|
|
|
58
65
|
**What you get:**
|
|
@@ -74,10 +81,10 @@ echo "OPENAI_API_KEY=your-openai-api-key-here" > .env
|
|
|
74
81
|
|
|
75
82
|
```bash
|
|
76
83
|
# Run the sample health check test
|
|
77
|
-
npx endorphin run test HEALTH-001
|
|
84
|
+
npx endorphin-ai run test HEALTH-001
|
|
78
85
|
|
|
79
86
|
# Generate a beautiful HTML report
|
|
80
|
-
npx endorphin generate report && npx endorphin open report
|
|
87
|
+
npx endorphin-ai generate report && npx endorphin-ai open report
|
|
81
88
|
```
|
|
82
89
|
|
|
83
90
|
**🎉 That's it!** You now have:
|
|
@@ -87,7 +94,7 @@ npx endorphin generate report && npx endorphin open report
|
|
|
87
94
|
|
|
88
95
|
### 🔧 Troubleshooting Installation
|
|
89
96
|
|
|
90
|
-
If `npx endorphin` doesn't work, try these **guaranteed solutions**:
|
|
97
|
+
If `npx endorphin-ai` doesn't work, try these **guaranteed solutions**:
|
|
91
98
|
|
|
92
99
|
```bash
|
|
93
100
|
# Option 1: Use npm scripts (always works)
|
|
@@ -97,14 +104,14 @@ npm run endorphin:help # Get help
|
|
|
97
104
|
|
|
98
105
|
# Option 2: Clear npx cache and retry
|
|
99
106
|
npx --clear-cache
|
|
100
|
-
npx endorphin init
|
|
107
|
+
npx endorphin-ai init
|
|
101
108
|
|
|
102
109
|
# Option 3: Use direct path
|
|
103
|
-
./node_modules/.bin/endorphin init
|
|
110
|
+
./node_modules/.bin/endorphin-ai init
|
|
104
111
|
|
|
105
112
|
# Option 4: Global installation
|
|
106
113
|
npm install -g endorphin-ai
|
|
107
|
-
endorphin init
|
|
114
|
+
endorphin-ai init
|
|
108
115
|
```
|
|
109
116
|
|
|
110
117
|
**Why this happens:** This is a known npm/npx issue with local binary resolution, not a problem with Endorphin AI. The npm scripts above always work regardless of npx behavior.
|
|
@@ -173,12 +180,12 @@ If you prefer manual setup:
|
|
|
173
180
|
```json
|
|
174
181
|
{
|
|
175
182
|
"scripts": {
|
|
176
|
-
"test": "endorphin run test all",
|
|
177
|
-
"test:smoke": "endorphin run test --tag smoke",
|
|
178
|
-
"test:auth": "endorphin run test --tag authentication",
|
|
179
|
-
"test:single": "endorphin run test",
|
|
180
|
-
"test:record": "endorphin run test-recorder",
|
|
181
|
-
"endorphin:init": "./node_modules/.bin/endorphin init",
|
|
183
|
+
"test": "endorphin-ai run test all",
|
|
184
|
+
"test:smoke": "endorphin-ai run test --tag smoke",
|
|
185
|
+
"test:auth": "endorphin-ai run test --tag authentication",
|
|
186
|
+
"test:single": "endorphin-ai run test",
|
|
187
|
+
"test:record": "endorphin-ai run test-recorder",
|
|
188
|
+
"endorphin:init": "./node_modules/.bin/endorphin-ai init",
|
|
182
189
|
"endorphin:version": "./node_modules/.bin/endorphin --version"
|
|
183
190
|
}
|
|
184
191
|
}
|
|
@@ -219,13 +226,13 @@ If you prefer manual setup:
|
|
|
219
226
|
|
|
220
227
|
```bash
|
|
221
228
|
# Check your current version
|
|
222
|
-
npx endorphin --version
|
|
229
|
+
npx endorphin-ai --version
|
|
223
230
|
|
|
224
231
|
# Update to the latest version
|
|
225
232
|
npm update endorphin-ai
|
|
226
233
|
|
|
227
234
|
# Get help and see new features
|
|
228
|
-
npx endorphin --help
|
|
235
|
+
npx endorphin-ai --help
|
|
229
236
|
```
|
|
230
237
|
|
|
231
238
|
### What's New in v0.6.1
|
|
@@ -242,7 +249,7 @@ npx endorphin --help
|
|
|
242
249
|
```bash
|
|
243
250
|
# Quick setup for new projects
|
|
244
251
|
mkdir my-test-project && cd my-test-project
|
|
245
|
-
npx endorphin init
|
|
252
|
+
npx endorphin-ai init
|
|
246
253
|
```
|
|
247
254
|
|
|
248
255
|
The `init` command creates:
|
|
@@ -266,7 +273,7 @@ For existing Endorphin projects, the `init` command is optional and safe:
|
|
|
266
273
|
|
|
267
274
|
```bash
|
|
268
275
|
# Safe to run in existing projects
|
|
269
|
-
npx endorphin init
|
|
276
|
+
npx endorphin-ai init
|
|
270
277
|
```
|
|
271
278
|
|
|
272
279
|
### Usage Commands
|
|
@@ -275,10 +282,10 @@ npx endorphin init
|
|
|
275
282
|
|
|
276
283
|
```bash
|
|
277
284
|
# Check current version
|
|
278
|
-
npx endorphin --version
|
|
285
|
+
npx endorphin-ai --version
|
|
279
286
|
|
|
280
287
|
# Get help and see all commands
|
|
281
|
-
npx endorphin --help
|
|
288
|
+
npx endorphin-ai --help
|
|
282
289
|
|
|
283
290
|
# Update to latest version
|
|
284
291
|
npm update endorphin-ai
|
|
@@ -288,7 +295,7 @@ npm update endorphin-ai
|
|
|
288
295
|
|
|
289
296
|
```bash
|
|
290
297
|
# Create a new Endorphin AI project with all necessary files
|
|
291
|
-
npx endorphin init
|
|
298
|
+
npx endorphin-ai init
|
|
292
299
|
|
|
293
300
|
# What gets created:
|
|
294
301
|
# ├── tests/sample-test.ts # Ready-to-run TypeScript test
|
|
@@ -725,14 +732,14 @@ npx endorphin list
|
|
|
725
732
|
|
|
726
733
|
```bash
|
|
727
734
|
# Initialize new project (recommended for new projects)
|
|
728
|
-
npx endorphin init
|
|
735
|
+
npx endorphin-ai init
|
|
729
736
|
|
|
730
737
|
# Show help and available commands
|
|
731
|
-
npx endorphin --help
|
|
738
|
+
npx endorphin-ai --help
|
|
732
739
|
npx endorphin help
|
|
733
740
|
|
|
734
741
|
# Check current version
|
|
735
|
-
npx endorphin --version
|
|
742
|
+
npx endorphin-ai --version
|
|
736
743
|
```
|
|
737
744
|
|
|
738
745
|
### HTML Reports & Analytics
|
|
@@ -824,7 +831,7 @@ Add these to your `package.json`:
|
|
|
824
831
|
"test:summary": "endorphin generate report --summary",
|
|
825
832
|
"test:open": "endorphin open report",
|
|
826
833
|
"test:cleanup": "endorphin cleanup results",
|
|
827
|
-
"endorphin:init": "./node_modules/.bin/endorphin init",
|
|
834
|
+
"endorphin:init": "./node_modules/.bin/endorphin-ai init",
|
|
828
835
|
"endorphin:version": "./node_modules/.bin/endorphin --version",
|
|
829
836
|
"endorphin:help": "./node_modules/.bin/endorphin --help"
|
|
830
837
|
}
|
|
@@ -851,7 +858,7 @@ npm run endorphin:help # Get help
|
|
|
851
858
|
|
|
852
859
|
```bash
|
|
853
860
|
# Check current installed version
|
|
854
|
-
npx endorphin --version
|
|
861
|
+
npx endorphin-ai --version
|
|
855
862
|
|
|
856
863
|
# Check latest available version on npm
|
|
857
864
|
npm view endorphin-ai version
|
|
@@ -870,7 +877,7 @@ npm update endorphin-ai
|
|
|
870
877
|
npm install endorphin-ai@latest
|
|
871
878
|
|
|
872
879
|
# Verify the update
|
|
873
|
-
npx endorphin --version
|
|
880
|
+
npx endorphin-ai --version
|
|
874
881
|
```
|
|
875
882
|
|
|
876
883
|
### Version History & Features
|
|
@@ -879,7 +886,7 @@ npx endorphin --version
|
|
|
879
886
|
- **v0.6.0**: Enhanced CLI, security-first publishing, cross-platform CI/CD
|
|
880
887
|
- **v0.5.0**: Advanced HTML reporting with interactive features
|
|
881
888
|
- **v0.4.0**: TypeScript-first experience with full type definitions
|
|
882
|
-
- **v0.3.0**: Added `endorphin init` command for instant project setup
|
|
889
|
+
- **v0.3.0**: Added `endorphin-ai init` command for instant project setup
|
|
883
890
|
- **v0.2.x**: Core framework with AI-powered testing
|
|
884
891
|
- **v0.1.x**: Initial release with basic functionality
|
|
885
892
|
|
package/dist/bin/cli-handlers.js
CHANGED
|
File without changes
|
|
@@ -33,7 +33,7 @@ export async function initProject(targetDir = process.cwd()) {
|
|
|
33
33
|
(await fileExists(path.join(targetDir, 'endorphin.config.ts')));
|
|
34
34
|
if (configExists) {
|
|
35
35
|
console.log('⚠️ Endorphin AI already initialized in this directory');
|
|
36
|
-
console.log('💡 Run: npx endorphin run test HEALTH-001');
|
|
36
|
+
console.log('💡 Run: npx endorphin-ai run test HEALTH-001');
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
// Create directories
|
|
@@ -44,8 +44,8 @@ export async function initProject(targetDir = process.cwd()) {
|
|
|
44
44
|
console.log('');
|
|
45
45
|
console.log('🚀 Next steps:');
|
|
46
46
|
console.log(' 1. Edit .env and add your OpenAI API key');
|
|
47
|
-
console.log(' 2. Run: npx endorphin run test HEALTH-001');
|
|
48
|
-
console.log(' 3. Try: npx endorphin run test-recorder');
|
|
47
|
+
console.log(' 2. Run: npx endorphin-ai run test HEALTH-001');
|
|
48
|
+
console.log(' 3. Try: npx endorphin-ai run test-recorder');
|
|
49
49
|
console.log('');
|
|
50
50
|
console.log('📚 Learn more: https://github.com/andrewnovykov/endorphin-ai');
|
|
51
51
|
}
|
|
@@ -115,7 +115,7 @@ function processEnvFile(content) {
|
|
|
115
115
|
# 2. Create new secret key
|
|
116
116
|
# 3. Replace "your_openai_api_key_here" above with your actual key
|
|
117
117
|
# 4. Save this file
|
|
118
|
-
# 5. Run: npx endorphin run test HEALTH-001`;
|
|
118
|
+
# 5. Run: npx endorphin-ai run test HEALTH-001`;
|
|
119
119
|
}
|
|
120
120
|
function processConfigFile(content) {
|
|
121
121
|
// Add helpful comments for beginners
|
|
@@ -149,7 +149,7 @@ async function createBasicFiles(targetDir) {
|
|
|
149
149
|
# 2. Create new secret key
|
|
150
150
|
# 3. Replace "your_openai_api_key_here" above with your actual key
|
|
151
151
|
# 4. Save this file
|
|
152
|
-
# 5. Run: npx endorphin run test HEALTH-001`;
|
|
152
|
+
# 5. Run: npx endorphin-ai run test HEALTH-001`;
|
|
153
153
|
await fs.writeFile(path.join(targetDir, '.env'), envContent);
|
|
154
154
|
console.log('📄 Created: .env');
|
|
155
155
|
// Create basic config file
|
|
@@ -261,7 +261,7 @@ Welcome to your new Endorphin AI testing project! 🎯
|
|
|
261
261
|
|
|
262
262
|
2. **Run your first test:**
|
|
263
263
|
\`\`\`bash
|
|
264
|
-
npx endorphin run test HEALTH-001
|
|
264
|
+
npx endorphin-ai run test HEALTH-001
|
|
265
265
|
\`\`\`
|
|
266
266
|
|
|
267
267
|
3. **View test results:**
|
|
@@ -278,7 +278,7 @@ Welcome to your new Endorphin AI testing project! 🎯
|
|
|
278
278
|
|
|
279
279
|
- Add more tests in the \`tests/\` directory
|
|
280
280
|
- Customize your configuration in \`endorphin.config.js\`
|
|
281
|
-
- Explore the interactive test recorder: \`npx endorphin run test-recorder\`
|
|
281
|
+
- Explore the interactive test recorder: \`npx endorphin-ai run test-recorder\`
|
|
282
282
|
|
|
283
283
|
Happy testing! 🚀`;
|
|
284
284
|
await fs.writeFile(path.join(targetDir, 'README-ENDORPHIN.md'), readmeContent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-command.js","sourceRoot":"","sources":["../../../framework/cli/init-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,yEAAyE;AACzE,oDAAoD;AACpD,MAAM,gBAAgB,GAAG,GAAW,EAAE;IACpC,8DAA8D;IAC9D,MAAM,aAAa,GAAG;QACpB,+DAA+D;QAC/D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,2BAA2B,CAAC;QACxD,6CAA6C;QAC7C,OAAO,CAAC,GAAG,EAAE;QACb,oEAAoE;QACpE,OAAO,SAAS,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;QAC3E,8BAA8B;QAC9B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC;KACrC,CAAC,MAAM,CAAC,OAAO,CAAa,CAAC;IAE9B,yFAAyF;IACzF,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,YAAoB,OAAO,CAAC,GAAG,EAAE;IACjE,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;IAEvD,IA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IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,gBAAgB,CAAC,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IAEtC,sBAAsB;IACtB,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA+BN,CAAC;IAEjB,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,EAAE,aAAa,CAAC,CAAC;IAC/E,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Configuration loader for Endorphin AI
|
|
3
3
|
* Handles loading and merging of configuration from multiple sources
|
|
4
4
|
*/
|
|
5
|
-
import type { CLIFlags, FrameworkConfig } from '
|
|
5
|
+
import type { CLIFlags, FrameworkConfig } from '../types/index.js';
|
|
6
6
|
export declare class ConfigLoader {
|
|
7
7
|
private defaultConfig;
|
|
8
8
|
constructor();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Test Manager - Handles test discovery, loading, and execution coordination (TypeScript)
|
|
3
3
|
* Manages individual test files in the tests/ folder
|
|
4
4
|
*/
|
|
5
|
-
import type { TaskResult, TestConfig } from '
|
|
5
|
+
import type { TaskResult, TestConfig } from '../types/index.js';
|
|
6
6
|
interface LoadedTest extends TestConfig {
|
|
7
7
|
filename: string;
|
|
8
8
|
filePath: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Test Results Manager Module
|
|
3
3
|
* Handles test result collection, storage, and processing
|
|
4
4
|
*/
|
|
5
|
-
import type { TestReport, TestSession } from '
|
|
5
|
+
import type { TestReport, TestSession } from '../types/index.js';
|
|
6
6
|
export interface TestResultsManagerOptions {
|
|
7
7
|
resultsDir?: string;
|
|
8
8
|
recorderDir?: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Parses test result data from the test-results directory
|
|
4
4
|
* Handles aggregation and processing of test execution data for reporting
|
|
5
5
|
*/
|
|
6
|
-
import type { TestSession, TestSummary } from '
|
|
6
|
+
import type { TestSession, TestSummary } from '../types/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Parsed test result data structure
|
|
9
9
|
*/
|