agent-qa 0.2.4 → 0.2.5
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/dist/cli-main.cjs +22098 -23321
- package/dist/cli-main.cjs.map +1 -1
- package/dist/cli-main.d.cts +2 -5
- package/dist/cli-main.d.ts +2 -5
- package/dist/cli-main.js +22046 -23676
- package/dist/cli-main.js.map +1 -1
- package/dist/cli.cjs +16 -26
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +17 -25
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +2946 -3094
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -224
- package/dist/index.d.ts +214 -224
- package/dist/index.js +2897 -3130
- package/dist/index.js.map +1 -1
- package/package.json +36 -31
package/dist/cli.cjs
CHANGED
|
@@ -1,36 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
2
|
// src/color-posture.ts
|
|
5
3
|
function applyColorPosture(env, stdoutIsTTY) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
if (stdoutIsTTY) return;
|
|
5
|
+
if (env.FORCE_COLOR !== void 0 || env.NO_COLOR !== void 0) return;
|
|
6
|
+
env.NO_COLOR = "1";
|
|
9
7
|
}
|
|
10
8
|
applyColorPosture(process.env, process.stdout.isTTY === true);
|
|
11
|
-
|
|
12
|
-
// src/node-floor.ts
|
|
13
|
-
var NODE_FLOOR_MAJOR = 24;
|
|
14
|
-
var NODE_FLOOR_INSTALL_LINE = "Install Node.js 24 or newer from https://nodejs.org/, then run the command again.";
|
|
9
|
+
const NODE_FLOOR_INSTALL_LINE = "Install Node.js 24 or newer from https://nodejs.org/, then run the command again.";
|
|
15
10
|
function nodeFloorRefusal(version) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return `agent-qa needs Node.js ${NODE_FLOOR_MAJOR} or newer. This is Node.js ${version}.
|
|
19
|
-
${NODE_FLOOR_INSTALL_LINE}
|
|
20
|
-
`;
|
|
11
|
+
if (Number(version.replace(/^v/, "").split(".")[0]) >= 24) return void 0;
|
|
12
|
+
return `agent-qa needs Node.js 24 or newer. This is Node.js ${version}.\n${NODE_FLOOR_INSTALL_LINE}\n`;
|
|
21
13
|
}
|
|
22
|
-
|
|
23
14
|
// src/cli.ts
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
const main = "./cli-main.js";
|
|
16
|
+
const refusal = nodeFloorRefusal(process.version);
|
|
26
17
|
if (refusal !== void 0) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} else {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
18
|
+
process.stderr.write(refusal);
|
|
19
|
+
process.exit(2);
|
|
20
|
+
} else import(main).catch((error) => {
|
|
21
|
+
console.error(`Framework error: ${error instanceof Error ? error.message : String(error)}`);
|
|
22
|
+
if (error instanceof Error && error.stack) console.error(error.stack);
|
|
23
|
+
process.exit(2);
|
|
24
|
+
});
|
|
25
|
+
|
|
36
26
|
//# sourceMappingURL=cli.cjs.map
|
package/dist/cli.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/color-posture.ts","../src/node-floor.ts","../src/cli.ts"],"sourcesContent":["// picocolors enables colour whenever CI is set; this module imports nothing so it runs first.\n\nexport function applyColorPosture(env: NodeJS.ProcessEnv, stdoutIsTTY: boolean): void {\n if (stdoutIsTTY) return\n if (env.FORCE_COLOR !== undefined || env.NO_COLOR !== undefined) return\n env.NO_COLOR = '1'\n}\n\napplyColorPosture(process.env, process.stdout.isTTY === true)\n","// Imports nothing and stays ES2020, so it runs on any Node the user has.\n\nexport const NODE_FLOOR_MAJOR = 24\n\nexport const NODE_FLOOR_INSTALL_LINE =\n 'Install Node.js 24 or newer from https://nodejs.org/, then run the command again.'\n\nexport function nodeFloorRefusal(version: string): string | undefined {\n const major = Number(version.replace(/^v/, '').split('.')[0])\n if (major >= NODE_FLOOR_MAJOR) return undefined\n return (\n `agent-qa needs Node.js ${NODE_FLOOR_MAJOR} or newer. This is Node.js ${version}.\\n` +\n `${NODE_FLOOR_INSTALL_LINE}\\n`\n )\n}\n","import './color-posture.js'\nimport { nodeFloorRefusal } from './node-floor.js'\n\n// A variable specifier keeps the bundler from inlining the CLI, so nothing loads before posture.\nconst main = './cli-main.js'\n\nconst refusal = nodeFloorRefusal(process.version)\nif (refusal !== undefined) {\n process.stderr.write(refusal)\n process.exit(2)\n} else {\n void import(main).catch((error: unknown) => {\n console.error(`Framework error: ${error instanceof Error ? error.message : String(error)}`)\n // The stack follows the line, so a load-time or synchronous failure still names where it threw.\n if (error instanceof Error && error.stack) console.error(error.stack)\n process.exit(2)\n })\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.cjs","names":[],"sources":["../src/color-posture.ts","../src/node-floor.ts","../src/cli.ts"],"sourcesContent":["// picocolors enables colour whenever CI is set; this module imports nothing so it runs first.\n\nexport function applyColorPosture(env: NodeJS.ProcessEnv, stdoutIsTTY: boolean): void {\n if (stdoutIsTTY) return\n if (env.FORCE_COLOR !== undefined || env.NO_COLOR !== undefined) return\n env.NO_COLOR = '1'\n}\n\napplyColorPosture(process.env, process.stdout.isTTY === true)\n","// Imports nothing and stays ES2020, so it runs on any Node the user has.\n\nexport const NODE_FLOOR_MAJOR = 24\n\nexport const NODE_FLOOR_INSTALL_LINE =\n 'Install Node.js 24 or newer from https://nodejs.org/, then run the command again.'\n\nexport function nodeFloorRefusal(version: string): string | undefined {\n const major = Number(version.replace(/^v/, '').split('.')[0])\n if (major >= NODE_FLOOR_MAJOR) return undefined\n return (\n `agent-qa needs Node.js ${NODE_FLOOR_MAJOR} or newer. This is Node.js ${version}.\\n` +\n `${NODE_FLOOR_INSTALL_LINE}\\n`\n )\n}\n","import './color-posture.js'\nimport { nodeFloorRefusal } from './node-floor.js'\n\n// A variable specifier keeps the bundler from inlining the CLI, so nothing loads before posture.\nconst main = './cli-main.js'\n\nconst refusal = nodeFloorRefusal(process.version)\nif (refusal !== undefined) {\n process.stderr.write(refusal)\n process.exit(2)\n} else {\n void import(main).catch((error: unknown) => {\n console.error(`Framework error: ${error instanceof Error ? error.message : String(error)}`)\n // The stack follows the line, so a load-time or synchronous failure still names where it threw.\n if (error instanceof Error && error.stack) console.error(error.stack)\n process.exit(2)\n })\n}\n"],"mappings":";;AAEA,SAAgB,kBAAkB,KAAwB,aAA4B;CACpF,IAAI,aAAa;CACjB,IAAI,IAAI,gBAAgB,KAAA,KAAa,IAAI,aAAa,KAAA,GAAW;CACjE,IAAI,WAAW;AACjB;AAEA,kBAAkB,QAAQ,KAAK,QAAQ,OAAO,UAAU,IAAI;ACJ5D,MAAa,0BACX;AAEF,SAAgB,iBAAiB,SAAqC;CAEpE,IADc,OAAO,QAAQ,QAAQ,MAAM,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,EAClD,KAAA,IAAuB,OAAO,KAAA;CACtC,OACE,uDAAwE,QAAQ,KAC7E,wBAAwB;AAE/B;;ACVA,MAAM,OAAO;AAEb,MAAM,UAAU,iBAAiB,QAAQ,OAAO;AAChD,IAAI,YAAY,KAAA,GAAW;CACzB,QAAQ,OAAO,MAAM,OAAO;CAC5B,QAAQ,KAAK,CAAC;AAChB,OACE,OAAY,KAAK,CAAC,OAAO,UAAmB;CAC1C,QAAQ,MAAM,oBAAoB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,GAAG;CAE1F,IAAI,iBAAiB,SAAS,MAAM,OAAO,QAAQ,MAAM,MAAM,KAAK;CACpE,QAAQ,KAAK,CAAC;AAChB,CAAC"}
|
package/dist/cli.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export {}
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export {}
|
package/dist/cli.js
CHANGED
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
2
|
// src/color-posture.ts
|
|
4
3
|
function applyColorPosture(env, stdoutIsTTY) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
if (stdoutIsTTY) return;
|
|
5
|
+
if (env.FORCE_COLOR !== void 0 || env.NO_COLOR !== void 0) return;
|
|
6
|
+
env.NO_COLOR = "1";
|
|
8
7
|
}
|
|
9
8
|
applyColorPosture(process.env, process.stdout.isTTY === true);
|
|
10
|
-
|
|
11
|
-
// src/node-floor.ts
|
|
12
|
-
var NODE_FLOOR_MAJOR = 24;
|
|
13
|
-
var NODE_FLOOR_INSTALL_LINE = "Install Node.js 24 or newer from https://nodejs.org/, then run the command again.";
|
|
9
|
+
const NODE_FLOOR_INSTALL_LINE = "Install Node.js 24 or newer from https://nodejs.org/, then run the command again.";
|
|
14
10
|
function nodeFloorRefusal(version) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return `agent-qa needs Node.js ${NODE_FLOOR_MAJOR} or newer. This is Node.js ${version}.
|
|
18
|
-
${NODE_FLOOR_INSTALL_LINE}
|
|
19
|
-
`;
|
|
11
|
+
if (Number(version.replace(/^v/, "").split(".")[0]) >= 24) return void 0;
|
|
12
|
+
return `agent-qa needs Node.js 24 or newer. This is Node.js ${version}.\n${NODE_FLOOR_INSTALL_LINE}\n`;
|
|
20
13
|
}
|
|
21
|
-
|
|
22
14
|
// src/cli.ts
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
const main = "./cli-main.js";
|
|
16
|
+
const refusal = nodeFloorRefusal(process.version);
|
|
25
17
|
if (refusal !== void 0) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} else {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
process.stderr.write(refusal);
|
|
19
|
+
process.exit(2);
|
|
20
|
+
} else import(main).catch((error) => {
|
|
21
|
+
console.error(`Framework error: ${error instanceof Error ? error.message : String(error)}`);
|
|
22
|
+
if (error instanceof Error && error.stack) console.error(error.stack);
|
|
23
|
+
process.exit(2);
|
|
24
|
+
});
|
|
25
|
+
export {};
|
|
26
|
+
|
|
35
27
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/color-posture.ts","../src/node-floor.ts","../src/cli.ts"],"sourcesContent":["// picocolors enables colour whenever CI is set; this module imports nothing so it runs first.\n\nexport function applyColorPosture(env: NodeJS.ProcessEnv, stdoutIsTTY: boolean): void {\n if (stdoutIsTTY) return\n if (env.FORCE_COLOR !== undefined || env.NO_COLOR !== undefined) return\n env.NO_COLOR = '1'\n}\n\napplyColorPosture(process.env, process.stdout.isTTY === true)\n","// Imports nothing and stays ES2020, so it runs on any Node the user has.\n\nexport const NODE_FLOOR_MAJOR = 24\n\nexport const NODE_FLOOR_INSTALL_LINE =\n 'Install Node.js 24 or newer from https://nodejs.org/, then run the command again.'\n\nexport function nodeFloorRefusal(version: string): string | undefined {\n const major = Number(version.replace(/^v/, '').split('.')[0])\n if (major >= NODE_FLOOR_MAJOR) return undefined\n return (\n `agent-qa needs Node.js ${NODE_FLOOR_MAJOR} or newer. This is Node.js ${version}.\\n` +\n `${NODE_FLOOR_INSTALL_LINE}\\n`\n )\n}\n","import './color-posture.js'\nimport { nodeFloorRefusal } from './node-floor.js'\n\n// A variable specifier keeps the bundler from inlining the CLI, so nothing loads before posture.\nconst main = './cli-main.js'\n\nconst refusal = nodeFloorRefusal(process.version)\nif (refusal !== undefined) {\n process.stderr.write(refusal)\n process.exit(2)\n} else {\n void import(main).catch((error: unknown) => {\n console.error(`Framework error: ${error instanceof Error ? error.message : String(error)}`)\n // The stack follows the line, so a load-time or synchronous failure still names where it threw.\n if (error instanceof Error && error.stack) console.error(error.stack)\n process.exit(2)\n })\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","names":[],"sources":["../src/color-posture.ts","../src/node-floor.ts","../src/cli.ts"],"sourcesContent":["// picocolors enables colour whenever CI is set; this module imports nothing so it runs first.\n\nexport function applyColorPosture(env: NodeJS.ProcessEnv, stdoutIsTTY: boolean): void {\n if (stdoutIsTTY) return\n if (env.FORCE_COLOR !== undefined || env.NO_COLOR !== undefined) return\n env.NO_COLOR = '1'\n}\n\napplyColorPosture(process.env, process.stdout.isTTY === true)\n","// Imports nothing and stays ES2020, so it runs on any Node the user has.\n\nexport const NODE_FLOOR_MAJOR = 24\n\nexport const NODE_FLOOR_INSTALL_LINE =\n 'Install Node.js 24 or newer from https://nodejs.org/, then run the command again.'\n\nexport function nodeFloorRefusal(version: string): string | undefined {\n const major = Number(version.replace(/^v/, '').split('.')[0])\n if (major >= NODE_FLOOR_MAJOR) return undefined\n return (\n `agent-qa needs Node.js ${NODE_FLOOR_MAJOR} or newer. This is Node.js ${version}.\\n` +\n `${NODE_FLOOR_INSTALL_LINE}\\n`\n )\n}\n","import './color-posture.js'\nimport { nodeFloorRefusal } from './node-floor.js'\n\n// A variable specifier keeps the bundler from inlining the CLI, so nothing loads before posture.\nconst main = './cli-main.js'\n\nconst refusal = nodeFloorRefusal(process.version)\nif (refusal !== undefined) {\n process.stderr.write(refusal)\n process.exit(2)\n} else {\n void import(main).catch((error: unknown) => {\n console.error(`Framework error: ${error instanceof Error ? error.message : String(error)}`)\n // The stack follows the line, so a load-time or synchronous failure still names where it threw.\n if (error instanceof Error && error.stack) console.error(error.stack)\n process.exit(2)\n })\n}\n"],"mappings":";;AAEA,SAAgB,kBAAkB,KAAwB,aAA4B;CACpF,IAAI,aAAa;CACjB,IAAI,IAAI,gBAAgB,KAAA,KAAa,IAAI,aAAa,KAAA,GAAW;CACjE,IAAI,WAAW;AACjB;AAEA,kBAAkB,QAAQ,KAAK,QAAQ,OAAO,UAAU,IAAI;ACJ5D,MAAa,0BACX;AAEF,SAAgB,iBAAiB,SAAqC;CAEpE,IADc,OAAO,QAAQ,QAAQ,MAAM,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,EAClD,KAAA,IAAuB,OAAO,KAAA;CACtC,OACE,uDAAwE,QAAQ,KAC7E,wBAAwB;AAE/B;;ACVA,MAAM,OAAO;AAEb,MAAM,UAAU,iBAAiB,QAAQ,OAAO;AAChD,IAAI,YAAY,KAAA,GAAW;CACzB,QAAQ,OAAO,MAAM,OAAO;CAC5B,QAAQ,KAAK,CAAC;AAChB,OACE,OAAY,KAAK,CAAC,OAAO,UAAmB;CAC1C,QAAQ,MAAM,oBAAoB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,GAAG;CAE1F,IAAI,iBAAiB,SAAS,MAAM,OAAO,QAAQ,MAAM,MAAM,KAAK;CACpE,QAAQ,KAAK,CAAC;AAChB,CAAC"}
|