@hasna/terminal 1.3.7 → 1.3.9

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/dist/ai.js CHANGED
@@ -179,6 +179,10 @@ RULES:
179
179
  - Search src/ directory, NOT dist/ or node_modules/ for code queries.
180
180
  - For compound questions ("how many X and are they Y"), prefer ONE command that captures all info. Do NOT chain with &&.
181
181
  - Use exact file paths from the project context below. Do NOT guess paths.
182
+ - For "what would break if I deleted X": use grep -rn "from.*X\\|import.*X\\|require.*X" src/ to find all importers.
183
+ - For "find where X is defined": use grep -rn "export.*function X\\|export.*class X\\|export.*const X" src/
184
+ - For "show me the code of function X": use grep -A 20 "function X" src/ to show the function body.
185
+ - For conceptual questions about what code does: use cat on the relevant file, the AI summary will explain it.
182
186
  cwd: ${process.cwd()}
183
187
  shell: zsh / macOS${projectContext}${restrictionBlock}${contextBlock}`;
184
188
  }
package/dist/cli.js CHANGED
@@ -449,7 +449,7 @@ else if (args.length > 0) {
449
449
  if (isIrreversible(command)) {
450
450
  console.error(`⚠ IRREVERSIBLE: $ ${command}`);
451
451
  console.error(` This command may kill processes, push code, or delete data.`);
452
- console.error(` Run with terminal exec "${command}" to bypass, or use the TUI for confirmation.`);
452
+ console.error(` Run directly in your shell if you're sure: ${command}`);
453
453
  process.exit(1);
454
454
  }
455
455
  // Show what we're running
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/terminal",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "Smart terminal wrapper for AI agents and humans — structured output, token compression, MCP server, natural language",
5
5
  "type": "module",
6
6
  "bin": {
package/src/ai.ts CHANGED
@@ -214,6 +214,10 @@ RULES:
214
214
  - Search src/ directory, NOT dist/ or node_modules/ for code queries.
215
215
  - For compound questions ("how many X and are they Y"), prefer ONE command that captures all info. Do NOT chain with &&.
216
216
  - Use exact file paths from the project context below. Do NOT guess paths.
217
+ - For "what would break if I deleted X": use grep -rn "from.*X\\|import.*X\\|require.*X" src/ to find all importers.
218
+ - For "find where X is defined": use grep -rn "export.*function X\\|export.*class X\\|export.*const X" src/
219
+ - For "show me the code of function X": use grep -A 20 "function X" src/ to show the function body.
220
+ - For conceptual questions about what code does: use cat on the relevant file, the AI summary will explain it.
217
221
  cwd: ${process.cwd()}
218
222
  shell: zsh / macOS${projectContext}${restrictionBlock}${contextBlock}`;
219
223
  }
package/src/cli.tsx CHANGED
@@ -428,7 +428,7 @@ else if (args.length > 0) {
428
428
  if (isIrreversible(command)) {
429
429
  console.error(`⚠ IRREVERSIBLE: $ ${command}`);
430
430
  console.error(` This command may kill processes, push code, or delete data.`);
431
- console.error(` Run with terminal exec "${command}" to bypass, or use the TUI for confirmation.`);
431
+ console.error(` Run directly in your shell if you're sure: ${command}`);
432
432
  process.exit(1);
433
433
  }
434
434