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

1
CLAUDE.md Normal file
View file

@ -0,0 +1 @@
- You MUST read README.md in full

View file

@ -1,6 +1,6 @@
{ {
"name": "@mariozechner/pi-agent", "name": "@mariozechner/pi-agent",
"version": "0.5.2", "version": "0.5.3",
"description": "General-purpose agent with tool calling and session persistence", "description": "General-purpose agent with tool calling and session persistence",
"type": "module", "type": "module",
"bin": { "bin": {
@ -18,7 +18,7 @@
"prepublishOnly": "npm run clean && npm run build" "prepublishOnly": "npm run clean && npm run build"
}, },
"dependencies": { "dependencies": {
"@mariozechner/pi-tui": "^0.5.2", "@mariozechner/pi-tui": "^0.5.3",
"@types/glob": "^8.1.0", "@types/glob": "^8.1.0",
"chalk": "^5.5.0", "chalk": "^5.5.0",
"glob": "^11.0.3", "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 as CLI if invoked directly
// Run main function when executed directly // Only run if this is the main module (not imported)
main(process.argv.slice(2)).catch((err) => { if (import.meta.url === `file://${process.argv[1]}`) {
main(process.argv.slice(2)).catch((err) => {
console.error(err); console.error(err);
process.exit(1); process.exit(1);
}); });
}

View file

@ -34,7 +34,7 @@
"node": ">=20.0.0" "node": ">=20.0.0"
}, },
"dependencies": { "dependencies": {
"@mariozechner/pi-agent": "^0.5.2", "@mariozechner/pi-agent": "^0.5.3",
"chalk": "^5.5.0" "chalk": "^5.5.0"
}, },
"devDependencies": {} "devDependencies": {}

View file

@ -545,8 +545,11 @@ export const viewLogs = async (name: string, options: { pod?: string }) => {
* Show known models and their hardware requirements * Show known models and their hardware requirements
*/ */
export const showKnownModels = async () => { export const showKnownModels = async () => {
const modelsJson = await import("../models.json", { assert: { type: "json" } }); const __filename = fileURLToPath(import.meta.url);
const models = modelsJson.default.models; const __dirname = dirname(__filename);
const modelsJsonPath = join(__dirname, "..", "models.json");
const modelsJson = JSON.parse(readFileSync(modelsJsonPath, "utf-8"));
const models = modelsJson.models;
// Get active pod info if available // Get active pod info if available
const activePod = getActivePod(); const activePod = getActivePod();

View file

@ -1,6 +1,6 @@
{ {
"name": "@mariozechner/pi-tui", "name": "@mariozechner/pi-tui",
"version": "0.5.2", "version": "0.5.3",
"description": "Terminal User Interface library with differential rendering for efficient text-based applications", "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "dist/index.js",