v0.5.4 - Fix lockstep versioning and update all packages

This commit is contained in:
Mario Zechner 2025-08-09 19:37:12 +02:00
parent 3a9c3a2ed6
commit f579a3f112
7 changed files with 23 additions and 17 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@mariozechner/pi-agent",
"version": "0.5.2",
"version": "0.5.3",
"description": "General-purpose agent with tool calling and session persistence",
"type": "module",
"bin": {
@ -18,7 +18,7 @@
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"@mariozechner/pi-tui": "^0.5.2",
"@mariozechner/pi-tui": "^0.5.3",
"@types/glob": "^8.1.0",
"chalk": "^5.5.0",
"glob": "^11.0.3",

View file

@ -286,8 +286,10 @@ export async function main(args: string[]): Promise<void> {
}
// Run as CLI if invoked directly
// Run main function when executed directly
main(process.argv.slice(2)).catch((err) => {
console.error(err);
process.exit(1);
});
// Only run if this is the main module (not imported)
if (import.meta.url === `file://${process.argv[1]}`) {
main(process.argv.slice(2)).catch((err) => {
console.error(err);
process.exit(1);
});
}