@timetotest/cli 0.1.6 → 0.1.7
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 +20 -1
- package/dist/package.json +1 -1
- package/dist/src/commands/login.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,19 @@ TimetoTest is an autonomous agent that plans, uses tools, and adapts to test you
|
|
|
13
13
|
|
|
14
14
|
Start fast with prompts, or run targeted tests against specific URLs and APIs.
|
|
15
15
|
|
|
16
|
+
## Install (Global)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm i -g @timetotest/cli
|
|
20
|
+
ttt --version
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
If you prefer not to install globally:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx @timetotest/cli --help
|
|
27
|
+
```
|
|
28
|
+
|
|
16
29
|
## Quick Start
|
|
17
30
|
|
|
18
31
|
1. Log in
|
|
@@ -52,9 +65,15 @@ Tips:
|
|
|
52
65
|
|
|
53
66
|
## Installation
|
|
54
67
|
|
|
68
|
+
Install globally (recommended):
|
|
69
|
+
|
|
55
70
|
```bash
|
|
56
71
|
npm i -g @timetotest/cli
|
|
57
|
-
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Or use without installing:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
58
77
|
npx @timetotest/cli --help
|
|
59
78
|
```
|
|
60
79
|
|
package/dist/package.json
CHANGED
|
@@ -84,7 +84,7 @@ export async function performInteractiveLogin() {
|
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
await loginPromise;
|
|
87
|
-
const callbackUrl = `http://
|
|
87
|
+
const callbackUrl = `http://127.0.0.1:${serverPort}/ttt-cli-callback`;
|
|
88
88
|
const frontendBase = (process.env.TTT_FRONTEND_URL || "https://timetotest.tech").replace(/\/$/, "");
|
|
89
89
|
const pageUrl = `${frontendBase}/cli-auth?callback=${encodeURIComponent(callbackUrl)}&state=${encodeURIComponent(state)}`;
|
|
90
90
|
spinner.succeed("Local callback ready");
|
|
@@ -227,7 +227,7 @@ export const login = new Command("login")
|
|
|
227
227
|
});
|
|
228
228
|
await loginPromise;
|
|
229
229
|
// Use localhost for callback (frontend accepts localhost or 127.0.0.1)
|
|
230
|
-
const callbackUrl = `http://
|
|
230
|
+
const callbackUrl = `http://127.0.0.1:${serverPort}/ttt-cli-callback`;
|
|
231
231
|
const frontendBase = (process.env.TTT_FRONTEND_URL || "https://timetotest.tech").replace(/\/$/, "");
|
|
232
232
|
const pageUrl = `${frontendBase}/cli-auth?callback=${encodeURIComponent(callbackUrl)}&state=${encodeURIComponent(state)}`;
|
|
233
233
|
spinner.succeed("Local callback ready");
|