diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rwxr-xr-x | scripts/run-agent.js | 12 | ||||
| -rwxr-xr-x | scripts/run-agent.py | 6 | ||||
| -rwxr-xr-x | scripts/run-tool.js | 12 | ||||
| -rwxr-xr-x | scripts/run-tool.py | 6 |
5 files changed, 11 insertions, 27 deletions
@@ -13,5 +13,5 @@ __pycache__ /.venv node_modules /package.json -/package-lock.json +package-lock.json *.lock
\ No newline at end of file diff --git a/scripts/run-agent.js b/scripts/run-agent.js index 361d904..44cc39f 100755 --- a/scripts/run-agent.js +++ b/scripts/run-agent.js @@ -180,11 +180,7 @@ async function dumpResult() { process.stdout.write(`\x1b[2m----------------------\n${data}\n----------------------\x1b[0m\n`); } -(async () => { - try { - await main(); - } catch (err) { - console.error(err?.message || err); - process.exit(1); - } -})(); +main().catch((err) => { + console.error(err); + process.exit(1); +});
\ No newline at end of file diff --git a/scripts/run-agent.py b/scripts/run-agent.py index 6b16b14..c58612a 100755 --- a/scripts/run-agent.py +++ b/scripts/run-agent.py @@ -162,8 +162,4 @@ def return_to_llm(value): if __name__ == "__main__": - try: - main() - except Exception as e: - print(e, file=sys.stderr) - sys.exit(1) + main()
\ No newline at end of file diff --git a/scripts/run-tool.js b/scripts/run-tool.js index 3a1c86e..1e67c3c 100755 --- a/scripts/run-tool.js +++ b/scripts/run-tool.js @@ -163,11 +163,7 @@ async function dumpResult() { process.stdout.write(`\x1b[2m----------------------\n${data}\n----------------------\x1b[0m\n`); } -(async () => { - try { - await main(); - } catch (err) { - console.error(err?.message || err); - process.exit(1); - } -})(); +main().catch((err) => { + console.error(err); + process.exit(1); +});
\ No newline at end of file diff --git a/scripts/run-tool.py b/scripts/run-tool.py index 59f9154..a64ce0e 100755 --- a/scripts/run-tool.py +++ b/scripts/run-tool.py @@ -153,8 +153,4 @@ def dump_result(): if __name__ == "__main__": - try: - main() - except Exception as e: - print(e, file=sys.stderr) - sys.exit(1) + main()
\ No newline at end of file |
