aztrx-cli 0.1.1 → 0.2.1
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 +137 -99
- package/dist/cli/help.js +85 -0
- package/dist/cli.js +150 -33
- package/dist/core/auth.js +76 -0
- package/dist/core/heal/apply.js +52 -0
- package/dist/core/modernize.js +144 -0
- package/dist/core/orchestrator.js +52 -100
- package/dist/core/prompt.js +22 -0
- package/dist/core/summarize.js +173 -0
- package/dist/core/swarm.js +235 -0
- package/dist/core/version.js +15 -0
- package/dist/ui/app.js +3 -1
- package/package.json +24 -5
package/dist/ui/app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
3
3
|
import { render, Box, Text, useApp } from "ink";
|
|
4
|
+
import { VERSION } from "../core/version.js";
|
|
4
5
|
// Palette — mirrors web/app/globals.css "crash seismograph" tokens, mapped to
|
|
5
6
|
// the nearest ANSI colors so the terminal panel reads as the same instrument.
|
|
6
7
|
const C = {
|
|
@@ -15,6 +16,7 @@ const C = {
|
|
|
15
16
|
};
|
|
16
17
|
const PHASE_LABEL = {
|
|
17
18
|
launch: { text: "◉ launching browser…", color: C.azure },
|
|
19
|
+
swarm: { text: "◉ swarm (parallel workers)…", color: C.azure },
|
|
18
20
|
walk: { text: "◉ walking the DOM…", color: C.azure },
|
|
19
21
|
fuzz: { text: "◉ fuzzing (chaos)…", color: C.azure },
|
|
20
22
|
"http-fuzz": { text: "◉ fuzzing (HTTP mutations)…", color: C.azure },
|
|
@@ -123,7 +125,7 @@ function AztrxApp({ bus, done, targetUrl, repoRoot, mode }) {
|
|
|
123
125
|
}, [done, exit]);
|
|
124
126
|
const phase = PHASE_LABEL[state.phase];
|
|
125
127
|
const currentRoute = state.routes[state.routes.length - 1] ?? targetUrl;
|
|
126
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: C.azure, bold: true, children: "Aztrx AI" }), _jsx(Text, { color: C.dim, children: " \u2014 Runtime Detector" }),
|
|
128
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: C.azure, bold: true, children: "Aztrx AI" }), _jsx(Text, { color: C.dim, children: " \u2014 Runtime Detector" }), _jsxs(Text, { color: C.dim, children: [" v", VERSION] })] }), _jsxs(Text, { color: C.dim, children: [" target ", targetUrl, " repo ", repoRoot] }), _jsxs(Text, { color: C.dim, children: [" mode ", mode] }), _jsx(Text, { color: C.dim, children: "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500" }), _jsxs(Box, { marginTop: 1, children: [_jsx(Text, { color: phase.color, children: phase.text }), _jsx(Text, { color: C.dim, children: " " }), _jsx(Text, { color: C.azureBright, bold: true, children: rate.toFixed(1) }), _jsx(Text, { color: C.dim, children: " ops/s \u00B7 " }), _jsx(Text, { color: C.fg, children: state.actions }), _jsx(Text, { color: C.dim, children: " actions \u00B7 " }), _jsx(Text, { color: C.fg, children: state.clicks }), _jsx(Text, { color: C.dim, children: " clicks" })] }), _jsxs(Box, { children: [_jsx(Text, { color: C.dim, children: " route " }), _jsx(Text, { color: C.muted, children: currentRoute }), _jsxs(Text, { color: C.dim, children: [" \u00B7 ", state.routes.length, " route(s)"] })] }), state.findings.length > 0 ? (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsxs(Text, { color: C.muted, bold: true, children: ["findings (", state.findings.length, ")"] }), state.findings.map((f) => (_jsx(FindingRow, { finding: f, repro: state.repros[f.fingerprint] }, f.fingerprint)))] })) : null, state.noise > 0 ? (_jsxs(Text, { color: C.dim, children: [" \u25B8 ", state.noise, " noise event(s) suppressed"] })) : null] }));
|
|
127
129
|
}
|
|
128
130
|
/** Mount the live terminal panel and resolve once the run (or a failure) ends. */
|
|
129
131
|
export function renderTui(props) {
|
package/package.json
CHANGED
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aztrx-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Aztrx AI — runtime stress-tester for web apps. Detect bugs, then prove them with an executable repro.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Danis Chaparov <d.chaparov@gmail.com>",
|
|
8
8
|
"type": "module",
|
|
9
|
-
"bin": {
|
|
9
|
+
"bin": {
|
|
10
|
+
"aztrx-cli": "dist/cli.js"
|
|
11
|
+
},
|
|
10
12
|
"main": "dist/core/orchestrator.js",
|
|
11
|
-
"files": [
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"media"
|
|
18
|
+
],
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"testing",
|
|
24
|
+
"playwright",
|
|
25
|
+
"stress-test",
|
|
26
|
+
"fuzzing",
|
|
27
|
+
"web-app",
|
|
28
|
+
"debugging",
|
|
29
|
+
"repro",
|
|
30
|
+
"qa",
|
|
31
|
+
"e2e"
|
|
32
|
+
],
|
|
14
33
|
"repository": {
|
|
15
34
|
"type": "git",
|
|
16
35
|
"url": "https://github.com/DanisChaparov/aztrx.git"
|