claude-remote-cli 3.9.1 → 3.9.3
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/server/index.js +4 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -166,6 +166,10 @@ async function main() {
|
|
|
166
166
|
saveConfig(CONFIG_PATH, config);
|
|
167
167
|
}
|
|
168
168
|
if (!config.pinHash) {
|
|
169
|
+
if (!process.stdin.isTTY) {
|
|
170
|
+
console.error('No PIN configured. Run claude-remote-cli interactively first to set a PIN.');
|
|
171
|
+
process.exit(1);
|
|
172
|
+
}
|
|
169
173
|
const pin = await promptPin('Set up a PIN for claude-remote-cli:');
|
|
170
174
|
config.pinHash = await auth.hashPin(pin);
|
|
171
175
|
saveConfig(CONFIG_PATH, config);
|