@jxtools/promptline 1.3.5 → 1.3.7

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.
Files changed (2) hide show
  1. package/bin/promptline.mjs +1 -24
  2. package/package.json +1 -1
@@ -4,7 +4,6 @@ import { existsSync, readFileSync, writeFileSync, copyFileSync, chmodSync } from
4
4
  import { resolve, dirname, join } from 'path'
5
5
  import { fileURLToPath } from 'url'
6
6
  import { spawn, execSync } from 'child_process'
7
- import { createInterface } from 'readline'
8
7
  import { homedir } from 'os'
9
8
 
10
9
  const __dirname = dirname(fileURLToPath(import.meta.url))
@@ -59,18 +58,7 @@ const hookFiles = [
59
58
  'promptline-session-end.sh',
60
59
  ]
61
60
 
62
- const allHooksInstalled = hookFiles.every(f => existsSync(join(hooksDir, f)))
63
-
64
- if (!allHooksInstalled) {
65
- const answer = await ask('Install PromptLine hooks for Claude Code? (Y/n) ')
66
-
67
- if (answer.toLowerCase() === 'n') {
68
- console.log(' Skipped. Run promptline again to install later.')
69
- process.exit(0)
70
- }
71
-
72
- installHooks()
73
- }
61
+ installHooks()
74
62
 
75
63
  // Start Vite dev server
76
64
  const viteBin = resolve(pkgDir, 'node_modules', '.bin', 'vite')
@@ -113,16 +101,6 @@ process.on('SIGINT', () => {
113
101
 
114
102
  // --- Helpers ---
115
103
 
116
- function ask(question) {
117
- const rl = createInterface({ input: process.stdin, output: process.stdout })
118
- return new Promise((resolve) => {
119
- rl.question(question, (answer) => {
120
- rl.close()
121
- resolve(answer.trim() || 'y')
122
- })
123
- })
124
- }
125
-
126
104
  function installHooks() {
127
105
  // Copy hook scripts
128
106
  execSync(`mkdir -p "${hooksDir}"`)
@@ -177,5 +155,4 @@ function installHooks() {
177
155
  }
178
156
 
179
157
  writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n')
180
- console.log(`\x1b[32m✓\x1b[0m Hooks installed`)
181
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxtools/promptline",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "bin": {