@yasserkhanorg/e2e-agents 0.5.0 → 0.5.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/agent/pipeline.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAG9C,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACjD,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;IAC7H,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,mBAAmB,GAAG,cAAc,GAAG,gBAAgB,GAAG,SAAS,CAAC;IAC5E,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE;QACF,SAAS,EAAE,OAAO,CAAC;QACnB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,mBAAmB,GAAG,cAAc,GAAG,gBAAgB,GAAG,SAAS,CAAC;KAChF,CAAC;CACL;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,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Q,EAAE,cAAc,GACzB,eAAe,CA4FjB;AAifD,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,UAAU,EAAE,EACnB,QAAQ,EAAE,cAAc,GACzB,eAAe,CAmLjB"}
|
package/dist/agent/pipeline.js
CHANGED
|
@@ -614,11 +614,20 @@ function summarizeCommandOutput(stdout, stderr) {
|
|
|
614
614
|
return lines.join('\n').slice(0, 2000);
|
|
615
615
|
}
|
|
616
616
|
function runCommand(command, args, cwd, timeoutMs = 60 * 60 * 1000) {
|
|
617
|
+
// When spawning `claude`, unset CLAUDECODE so nested invocations are allowed.
|
|
618
|
+
// Claude Code sets this variable to block nested sessions; child processes
|
|
619
|
+
// that spawn their own claude instance must run without it.
|
|
620
|
+
let env;
|
|
621
|
+
if (command === 'claude') {
|
|
622
|
+
const { CLAUDECODE: _, ...rest } = process.env;
|
|
623
|
+
env = rest;
|
|
624
|
+
}
|
|
617
625
|
const result = (0, child_process_1.spawnSync)(command, args, {
|
|
618
626
|
cwd,
|
|
619
627
|
encoding: 'utf-8',
|
|
620
628
|
timeout: timeoutMs,
|
|
621
629
|
stdio: 'pipe',
|
|
630
|
+
...(env ? { env } : {}),
|
|
622
631
|
});
|
|
623
632
|
return {
|
|
624
633
|
status: result.status ?? 1,
|
|
@@ -610,11 +610,20 @@ function summarizeCommandOutput(stdout, stderr) {
|
|
|
610
610
|
return lines.join('\n').slice(0, 2000);
|
|
611
611
|
}
|
|
612
612
|
function runCommand(command, args, cwd, timeoutMs = 60 * 60 * 1000) {
|
|
613
|
+
// When spawning `claude`, unset CLAUDECODE so nested invocations are allowed.
|
|
614
|
+
// Claude Code sets this variable to block nested sessions; child processes
|
|
615
|
+
// that spawn their own claude instance must run without it.
|
|
616
|
+
let env;
|
|
617
|
+
if (command === 'claude') {
|
|
618
|
+
const { CLAUDECODE: _, ...rest } = process.env;
|
|
619
|
+
env = rest;
|
|
620
|
+
}
|
|
613
621
|
const result = spawnSync(command, args, {
|
|
614
622
|
cwd,
|
|
615
623
|
encoding: 'utf-8',
|
|
616
624
|
timeout: timeoutMs,
|
|
617
625
|
stdio: 'pipe',
|
|
626
|
+
...(env ? { env } : {}),
|
|
618
627
|
});
|
|
619
628
|
return {
|
|
620
629
|
status: result.status ?? 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yasserkhanorg/e2e-agents",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Pluggable LLM provider library for AI-powered test automation. Use Claude, Ollama, or your own LLM. Integrate with Playwright, Jest, or any test framework. MCP server for test agents, cost tracking, and hybrid provider mode.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|