obsidian-plugin-config 1.6.16 → 1.6.18

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.
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Obsidian Plugin Config - CLI Entry Point
5
5
  * Global command: obsidian-inject
6
- * Version: 1.6.16
6
+ * Version: 1.6.18
7
7
  */
8
8
 
9
9
  import { execSync } from 'child_process';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-plugin-config",
3
- "version": "1.6.16",
3
+ "version": "1.6.18",
4
4
  "description": "Global CLI injection tool for Obsidian plugins",
5
5
  "type": "module",
6
6
  "bin": {
@@ -181,14 +181,14 @@ export async function showInjectionPlan(
181
181
  console.log(` šŸ” Analyze centralized imports (manual commenting may be needed)`);
182
182
 
183
183
  if (autoConfirm) {
184
- console.log(`\nāœ… Auto-confirming injection...`);
184
+ console.log(`\nāœ… Auto-confirming all file replacements...`);
185
185
  rl.close();
186
186
  return true;
187
187
  }
188
188
 
189
- const result = await askConfirmation(`\nProceed with injection?`, rl);
189
+ // No global confirmation needed - file-by-file confirmation will happen in diffAndPromptFiles
190
190
  rl.close();
191
- return result;
191
+ return true;
192
192
  }
193
193
 
194
194
  /**
@@ -10,9 +10,7 @@ import {
10
10
  readInjectionInfo,
11
11
  showInjectionPlan
12
12
  } from './inject-core.js';
13
- import { createReadlineInterface, isValidPath } from './utils.js';
14
-
15
- const rl = createReadlineInterface();
13
+ import { isValidPath } from './utils.js';
16
14
 
17
15
  async function main(): Promise<void> {
18
16
  try {
@@ -168,8 +166,6 @@ async function main(): Promise<void> {
168
166
  `šŸ’„ Error: ${error instanceof Error ? error.message : String(error)}`
169
167
  );
170
168
  process.exit(1);
171
- } finally {
172
- rl.close();
173
169
  }
174
170
  }
175
171