@remcp/remcp 0.2.118 → 0.2.119
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/package.json +1 -1
- package/src/cli/service.mjs +7 -3
package/package.json
CHANGED
package/src/cli/service.mjs
CHANGED
|
@@ -460,7 +460,10 @@ export function writeWindowsServiceLauncher(cliPath = globalCliPath(), nodePath
|
|
|
460
460
|
export function installWindowsService(cliPath = globalCliPath(), { nodePath = process.execPath } = {}) {
|
|
461
461
|
const launcherFile = writeWindowsServiceLauncher(cliPath, nodePath);
|
|
462
462
|
const command = `"${launcherFile}"`;
|
|
463
|
-
|
|
463
|
+
// Computer-use needs the signed-in interactive desktop. Create the task with /IT from the start
|
|
464
|
+
// instead of changing it afterwards: schtasks /Change can request the account password even when
|
|
465
|
+
// the task already belongs to the current user, which turns a one-command install into a prompt.
|
|
466
|
+
run('schtasks.exe', ['/Create', '/TN', windowsTaskName, '/TR', command, '/SC', 'ONLOGON', '/RL', 'HIGHEST', '/IT', '/F']);
|
|
464
467
|
run('schtasks.exe', ['/Run', '/TN', windowsTaskName]);
|
|
465
468
|
}
|
|
466
469
|
|
|
@@ -685,12 +688,13 @@ export function configureMacWriteAccess() {
|
|
|
685
688
|
}
|
|
686
689
|
|
|
687
690
|
export function configureWindowsWriteAccess() {
|
|
688
|
-
|
|
691
|
+
// installWindowsService already creates the task as HighestAvailable + InteractiveToken. Keep
|
|
692
|
+
// post-install access setup non-interactive so a fresh install never asks for the Windows password.
|
|
689
693
|
try {
|
|
690
694
|
const workspaceDir = path.join(process.env.LOCALAPPDATA || path.join(home, 'AppData', 'Local'), 'ReMCP');
|
|
691
695
|
fs.mkdirSync(workspaceDir, { recursive: true });
|
|
692
696
|
} catch {}
|
|
693
|
-
console.log('ReMCP configured with
|
|
697
|
+
console.log('ReMCP configured with the highest available user privileges for interactive desktop access.');
|
|
694
698
|
}
|
|
695
699
|
|
|
696
700
|
export function configureLinuxWriteAccess() {
|