iubcli 4.2.11 → 4.2.13

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # IUB CLI
2
2
 
3
- > Autonomous BYOK terminal coding agent for Bangla, Banglish, and English, with BUILD and PLAN modes, local-first configuration, and resilient free-model failover.
3
+ > Autonomous BYOK terminal coding agent for English workflows, with BUILD and PLAN modes, local-first configuration, and resilient free-model failover.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/iubcli.svg?style=flat-square&color=00A3FF)](https://www.npmjs.com/package/iubcli)
6
6
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg?style=flat-square)](https://nodejs.org/)
@@ -20,7 +20,7 @@
20
20
 
21
21
  ## Overview
22
22
 
23
- **IUB CLI** (`iubcli`) is an open-source, serverless terminal coding assistant for developers who think, speak, and code in **Bangla**, **Banglish**, or **English**.
23
+ **IUB CLI** (`iubcli`) is an open-source, serverless terminal coding assistant designed for developers
24
24
 
25
25
  It combines a local terminal UI with provider-backed model calls, giving you an agent that can inspect a workspace, plan changes, edit files, run commands, fetch documentation, and coordinate with other local CLI instances.
26
26
 
@@ -324,8 +324,6 @@ iubcli/
324
324
  │ ├── test-image.ts
325
325
  │ ├── test-box.ts
326
326
  │ └── test-gemini-tools.ts
327
- ├── public/
328
- │ └── index.html # project landing page
329
327
  ├── package.json
330
328
  ├── tsconfig.json
331
329
  └── tsup.config.ts
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ function printBanner(provider, model, workspace) {
69
69
  )}`
70
70
  );
71
71
  console.log(
72
- ` ${dim("Speaks natural")} ${chalk.bold.white("English")}${dim(",")} ${chalk.bold.cyan("Banglish")}${dim(", & understands ")} ${chalk.bold.hex("#FFC72C")("Bangla")}`
72
+ ` ${dim("Language:")} ${chalk.bold.white("English")}`
73
73
  );
74
74
  console.log(
75
75
  ` ${dim("Developer:")} ${chalk.bold.hex("#00A3FF")("Ifaz MD Zahin")}
@@ -301,10 +301,10 @@ ${chalk.yellow.bold("Autonomous Tool Capabilities (12 Built-in Tools):")}`);
301
301
  console.log(` 11. ${chalk.bold("peer_call_tool")} - Triggers tools on peer instances across workspaces safely`);
302
302
  console.log(` 12. ${chalk.bold("peer_send_message")} - Sends structured messages/contracts to peer instances`);
303
303
  console.log(`
304
- ${chalk.yellow.bold("Language Support (Outputs strictly in English):")}`);
305
- console.log(` \u2022 ${chalk.green("English:")} "Build a full-stack Next.js portfolio website"`);
306
- console.log(` \u2022 ${chalk.green("Banglish:")} "Express diye ekta REST API banaw auth soho"`);
307
- console.log(` \u2022 ${chalk.green("Bangla:")} "Ekta React counter component baniye daw" (Input accepted, instructions in English)`);
304
+ ${chalk.yellow.bold("Example Prompts (English):")}`);
305
+ console.log(` \u2022 ${chalk.green("Build:")} "Build a full-stack Next.js portfolio website"`);
306
+ console.log(` \u2022 ${chalk.green("API:")} "Create an Express REST API with JWT authentication"`);
307
+ console.log(` \u2022 ${chalk.green("UI:")} "Create a responsive React counter component"`);
308
308
  console.log(`
309
309
  ${chalk.gray("Lead Developer & Creator:")} ${chalk.hex("#00A3FF").bold("Ifaz MD Zahin")} ${chalk.dim("(https://github.com/Ifaz2611)")}`);
310
310
  console.log(chalk.dim("\u2500".repeat(70)) + "\n");
@@ -6143,11 +6143,8 @@ Example: To inspect backend endpoints from frontend, call peer_call_tool("backen
6143
6143
  if (mode === "plan") {
6144
6144
  return `You are IUB CLI, a world-class Principal Software Architect and Systems Designer running directly in the user's terminal. You are designed to be more intelligent, thorough, and reliable than other agents like OpenCode or FreeBuf.
6145
6145
 
6146
- ### CRITICAL DIRECTIVE 1: STRICTLY 100% ENGLISH OUTPUT ONLY (MANDATORY)
6147
- - YOU MUST COMMUNICATE AND RESPOND EXCLUSIVELY IN ENGLISH.
6148
- - UNDER NO CIRCUMSTANCES SHOULD YOU OUTPUT BENGALI SCRIPT (\u09AC\u09BE\u0982\u09B2\u09BE).
6149
- - Monospace terminal consoles and Windows fonts cannot render complex Bengali ligatures and conjuncts properly, resulting in broken, overlapping characters.
6150
- - Even if the user submits prompts or questions in Bangla or Banglish, your responses, explanations, step-by-step plans, code comments, and terminal messages MUST ALWAYS BE IN 100% CLEAN, PROFESSIONAL ENGLISH.
6146
+ ### LANGUAGE & COMMUNICATION:
6147
+ - Communicate and respond exclusively in clear, professional English.
6151
6148
 
6152
6149
  ${envContext.summary}
6153
6150
  ${meshContext}
@@ -6171,20 +6168,12 @@ ${meshContext}
6171
6168
  3. Dependencies, Libraries & Versions needed.
6172
6169
  4. Core Components, Modules, Data Models & API Contracts.
6173
6170
  5. Step-by-Step Implementation Roadmap (ordered sequence of files to create/edit).
6174
- 6. Verification & Testing Strategy.
6175
-
6176
- ### 1. LANGUAGE & COMMUNICATION RULES (CRITICAL):
6177
- - ALWAYS write all responses, architectural plans, explanations, code, and terminal guidance in clear, professional ENGLISH.
6178
- - DO NOT output Bengali script under any circumstances, because terminal emulators and console fonts do not render Bengali script properly.
6179
- - You can understand user inputs in English, Banglish (Romanized Bengali), and Bangla, but your replies and instructions MUST ALWAYS be written in clean, fluent ENGLISH.`;
6171
+ 6. Verification & Testing Strategy.`;
6180
6172
  }
6181
6173
  return `You are IUB CLI v2.0, a world-class Principal Full-Stack Software Engineer and Autonomous AI Coding Agent running directly in the user's terminal. You are designed to outperform modern AI coding agents like OpenCode and Claude Code in intelligence, self-healing, search speed, and reliability.
6182
6174
 
6183
- ### CRITICAL DIRECTIVE 1: STRICTLY 100% ENGLISH OUTPUT ONLY (MANDATORY)
6184
- - YOU MUST COMMUNICATE AND RESPOND EXCLUSIVELY IN ENGLISH.
6185
- - UNDER NO CIRCUMSTANCES SHOULD YOU OUTPUT BENGALI SCRIPT (\u09AC\u09BE\u0982\u09B2\u09BE).
6186
- - Monospace terminal consoles and Windows fonts cannot render complex Bengali ligatures and conjuncts properly, resulting in broken, overlapping characters.
6187
- - Even if the user submits prompts or questions in Bangla or Banglish, your responses, explanations, step-by-step plans, code comments, and terminal messages MUST ALWAYS BE IN 100% CLEAN, PROFESSIONAL ENGLISH.
6175
+ ### LANGUAGE & COMMUNICATION:
6176
+ - Communicate and respond exclusively in clear, professional English.
6188
6177
 
6189
6178
  ${envContext.summary}
6190
6179
  ${meshContext}
@@ -6254,12 +6243,7 @@ ${meshContext}
6254
6243
  - NEVER apply two or more commands at the same time or batch multiple run_command calls together.
6255
6244
  - NEVER chain lengthy commands with "&&" or ";".
6256
6245
  - Execute ONE command, wait for its output, inspect the result, and ONLY THEN proceed to the next step.
6257
- - This ensures rapid real-time feedback, prevents lengthy hangs, and keeps execution continuous, smooth, and fast.
6258
-
6259
- ### 1. LANGUAGE & COMMUNICATION RULES (CRITICAL):
6260
- - ALWAYS write all responses, architectural plans, explanations, code, and terminal guidance in clear, professional ENGLISH.
6261
- - DO NOT output Bengali script under any circumstances, because terminal emulators and console fonts do not render Bengali script properly.
6262
- - You can understand user inputs in English, Banglish (Romanized Bengali), and Bangla, but your replies and instructions MUST ALWAYS be written in clean, fluent ENGLISH.`;
6246
+ - This ensures rapid real-time feedback, prevents lengthy hangs, and keeps execution continuous, smooth, and fast.`;
6263
6247
  }
6264
6248
  var SYSTEM_PROMPT = getSystemPrompt("build");
6265
6249
  var GEMINI_FALLBACK_MAP = {
@@ -6897,15 +6881,14 @@ ${String(out).slice(0, 6e3)}`);
6897
6881
  this.sanitizeDanglingHistory();
6898
6882
  }
6899
6883
  const modeDirective = this.mode === "build" ? `[SYSTEM STATUS: ACTIVE MODE = BUILD MODE. All coding tools (write_file, edit_file, run_command) are FULLY UNLOCKED AND ACTIVE. You MUST NOT claim you are in PLAN mode or ask the user to type /build. You are ALREADY in BUILD mode. Immediately call your tools to implement, create, or edit code.]` : `[SYSTEM STATUS: ACTIVE MODE = PLAN MODE. You are in read-only planning mode. Formulate comprehensive step-by-step plans without modifying files.]`;
6900
- const englishEnforcedInput = `[CRITICAL: You must provide all explanations, responses, and terminal output strictly in clear ENGLISH. Do not use Bengali script under any circumstances.]
6901
- ${modeDirective}
6884
+ const enrichedInput = `${modeDirective}
6902
6885
 
6903
6886
  ${userInput}`;
6904
6887
  try {
6905
6888
  if (this.config.provider === "gemini") {
6906
- return await this.chatGemini(englishEnforcedInput, options);
6889
+ return await this.chatGemini(enrichedInput, options);
6907
6890
  } else {
6908
- return await this.chatOpenAI(englishEnforcedInput, options);
6891
+ return await this.chatOpenAI(enrichedInput, options);
6909
6892
  }
6910
6893
  } catch (err) {
6911
6894
  if (options?.signal?.aborted) {
@@ -6919,9 +6902,9 @@ ${userInput}`;
6919
6902
  if (nextModel) {
6920
6903
  const retryOpts = { ...options, isCascadeRetry: true };
6921
6904
  if (this.config.provider === "gemini") {
6922
- return await this.chatGemini(englishEnforcedInput, retryOpts);
6905
+ return await this.chatGemini(enrichedInput, retryOpts);
6923
6906
  } else {
6924
- return await this.chatOpenAI(englishEnforcedInput, retryOpts);
6907
+ return await this.chatOpenAI(enrichedInput, retryOpts);
6925
6908
  }
6926
6909
  }
6927
6910
  return chalk8.yellow("\nAll free model tokens are currently exhausted across all providers. Check the renewal countdown above.");
@@ -8321,7 +8304,7 @@ function attachEscapeListener(onEscape) {
8321
8304
  };
8322
8305
  }
8323
8306
  var program = new Command();
8324
- program.name("iubcli").description("IUB CLI \u2014 Next-Gen Autonomous BYOK terminal coding agent that speaks Bangla, Banglish & English.").version(getAppVersion(), "-v, --version", "Output the current version").option("-m, --model <model>", "Override model for this session").option("-M, --mode <mode>", 'Execution mode: "build" (default) or "plan"', "build").option("-p, --prompt <prompt>", "Run a single prompt and exit").option("-y, --yes", "Auto-approve all file writes and shell commands").option("-r, --role <role>", 'Instance role for cross-instance mesh (e.g. "frontend", "backend")').option("--mesh-port <port>", "Local port for mesh broker", "49152").option("--mesh-token <token>", "Shared authentication token for mesh").option("--no-mesh", "Disable cross-instance mesh networking").action(async (options) => {
8307
+ program.name("iubcli").description("IUB CLI \u2014 Next-Gen Autonomous BYOK terminal coding agent.").version(getAppVersion(), "-v, --version", "Output the current version").option("-m, --model <model>", "Override model for this session").option("-M, --mode <mode>", 'Execution mode: "build" (default) or "plan"', "build").option("-p, --prompt <prompt>", "Run a single prompt and exit").option("-y, --yes", "Auto-approve all file writes and shell commands").option("-r, --role <role>", 'Instance role for cross-instance mesh (e.g. "frontend", "backend")').option("--mesh-port <port>", "Local port for mesh broker", "49152").option("--mesh-token <token>", "Shared authentication token for mesh").option("--no-mesh", "Disable cross-instance mesh networking").action(async (options) => {
8325
8308
  const rawMode = String(options.mode || "build").toLowerCase().trim();
8326
8309
  if (rawMode !== "build" && rawMode !== "plan") {
8327
8310
  console.error(chalk9.red(`