claude-remote-cli 3.9.2 → 3.9.4
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/frontend/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
12
12
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
13
13
|
<meta name="theme-color" content="#1a1a1a" />
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-CO9tRKXI.js"></script>
|
|
15
15
|
<link rel="stylesheet" crossorigin href="/assets/index-BYv7-2w9.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import crypto from 'node:crypto';
|
|
2
1
|
import fs from 'node:fs';
|
|
3
2
|
import http from 'node:http';
|
|
4
3
|
import os from 'node:os';
|
|
@@ -167,15 +166,11 @@ async function main() {
|
|
|
167
166
|
saveConfig(CONFIG_PATH, config);
|
|
168
167
|
}
|
|
169
168
|
if (!config.pinHash) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
pin = crypto.randomInt(100000, 999999).toString();
|
|
176
|
-
console.log(`No interactive terminal detected. Generated PIN: ${pin}`);
|
|
177
|
-
console.log('Change it by deleting pinHash from your config file and restarting interactively.');
|
|
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);
|
|
178
172
|
}
|
|
173
|
+
const pin = await promptPin('Set up a PIN for claude-remote-cli:');
|
|
179
174
|
config.pinHash = await auth.hashPin(pin);
|
|
180
175
|
saveConfig(CONFIG_PATH, config);
|
|
181
176
|
console.log('PIN set successfully.');
|