imhcode 2.0.3 → 2.0.4
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/bin/imhcode.js +3 -3
- package/package.json +1 -1
package/bin/imhcode.js
CHANGED
|
@@ -3170,14 +3170,14 @@ async function runTuiCommand() {
|
|
|
3170
3170
|
const infoLeft = ` Project: ${projectName}`;
|
|
3171
3171
|
const infoRight = `Path: ${cwd.length > 35 ? '...' + cwd.slice(-32) : cwd} `;
|
|
3172
3172
|
const paddingInfo = width - 4 - infoLeft.length - infoRight.length;
|
|
3173
|
-
console.log(ANSI.cyan + ` │` + ANSI.reset + ANSI.bold + infoLeft + ' '.repeat(paddingInfo) + ANSI.dim + infoRight + ANSI.cyan + `│` + ANSI.reset);
|
|
3173
|
+
console.log(ANSI.cyan + ` │` + ANSI.reset + ANSI.bold + infoLeft + ' '.repeat(Math.max(0, paddingInfo)) + ANSI.dim + infoRight + ANSI.cyan + `│` + ANSI.reset);
|
|
3174
3174
|
|
|
3175
3175
|
const statusLine = ` Status: ${statusStr}`;
|
|
3176
3176
|
const engineLine = `Engine: ${engineStr} `;
|
|
3177
3177
|
const statusClean = statusLine.replace(/\x1b\[[0-9;]*m/g, '');
|
|
3178
3178
|
const engineClean = engineLine.replace(/\x1b\[[0-9;]*m/g, '');
|
|
3179
3179
|
const paddingStatus = width - 4 - statusClean.length - engineClean.length;
|
|
3180
|
-
console.log(ANSI.cyan + ` │` + ANSI.reset + statusLine + ' '.repeat(paddingStatus) + ANSI.dim + engineLine + ANSI.cyan + `│` + ANSI.reset);
|
|
3180
|
+
console.log(ANSI.cyan + ` │` + ANSI.reset + statusLine + ' '.repeat(Math.max(0, paddingStatus)) + ANSI.dim + engineLine + ANSI.cyan + `│` + ANSI.reset);
|
|
3181
3181
|
|
|
3182
3182
|
console.log(ANSI.cyan + ` ├${'─'.repeat(width - 4)}┤` + ANSI.reset);
|
|
3183
3183
|
|
|
@@ -3225,7 +3225,7 @@ async function runTuiCommand() {
|
|
|
3225
3225
|
function centerText(text, width) {
|
|
3226
3226
|
const cleanText = text.replace(/\x1b\[[0-9;]*m/g, '');
|
|
3227
3227
|
const padding = Math.max(0, Math.floor((width - cleanText.length) / 2));
|
|
3228
|
-
return ' '.repeat(padding) + text + ' '.repeat(width - cleanText.length - padding);
|
|
3228
|
+
return ' '.repeat(padding) + text + ' '.repeat(Math.max(0, width - cleanText.length - padding));
|
|
3229
3229
|
}
|
|
3230
3230
|
|
|
3231
3231
|
// Set up standard input listener
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imhcode",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "IMH-Code — Imam Hussain Coding Harness Platform. A fast-first multi-agent AI coding framework with intelligent model routing. 19 generic role-based agents (planner, nextjs-executor, laravel-executor, etc.), configurable testing strategy, and 7 token-saving optimizations for rapid MVP development.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|