@moxt-ai/mobius 0.0.308 → 0.0.309
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/cli.js +6 -4
- package/dist/cli.js.map +2 -2
- package/dist/runtime.js +5 -3
- package/dist/runtime.js.map +2 -2
- package/dist/util/filesystem/private-path.js +4 -2
- package/dist/util/filesystem/private-path.js.map +2 -2
- package/dist/util/platform/windows.d.ts.map +1 -1
- package/dist/util/platform/windows.js +6 -2
- package/dist/util/platform/windows.js.map +1 -1
- package/dist/util/process/executable.js +4 -2
- package/dist/util/process/executable.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2086,7 +2086,7 @@ var init_package = __esm({
|
|
|
2086
2086
|
"package.json"() {
|
|
2087
2087
|
package_default = {
|
|
2088
2088
|
name: "@moxt-ai/mobius",
|
|
2089
|
-
version: "0.0.
|
|
2089
|
+
version: "0.0.309",
|
|
2090
2090
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
2091
2091
|
type: "module",
|
|
2092
2092
|
bin: {
|
|
@@ -70244,8 +70244,8 @@ async function validatePathPermissions(path8, _directory, privateAccess, signal)
|
|
|
70244
70244
|
MOBIUS_PERMISSION_PRIVATE: privateAccess ? "1" : "0"
|
|
70245
70245
|
},
|
|
70246
70246
|
windowsHide: true,
|
|
70247
|
-
signal: AbortSignal.any([signal, AbortSignal.timeout(
|
|
70248
|
-
timeout:
|
|
70247
|
+
signal: AbortSignal.any([signal, AbortSignal.timeout(windowsPermissionsTimeoutMs)]),
|
|
70248
|
+
timeout: windowsPermissionsTimeoutMs,
|
|
70249
70249
|
maxBuffer: 16384
|
|
70250
70250
|
}
|
|
70251
70251
|
);
|
|
@@ -70254,7 +70254,7 @@ async function validatePathPermissions(path8, _directory, privateAccess, signal)
|
|
|
70254
70254
|
throw new LocalPathError("The local path permissions could not be secured", { cause });
|
|
70255
70255
|
}
|
|
70256
70256
|
}
|
|
70257
|
-
var execute, windowsPermissions, windowsPlatform;
|
|
70257
|
+
var execute, windowsPermissions, windowsPermissionsTimeoutMs, windowsPlatform;
|
|
70258
70258
|
var init_windows = __esm({
|
|
70259
70259
|
"src/util/platform/windows.ts"() {
|
|
70260
70260
|
"use strict";
|
|
@@ -70265,6 +70265,7 @@ var init_windows = __esm({
|
|
|
70265
70265
|
execute = promisify2(execFile3);
|
|
70266
70266
|
windowsPermissions = `
|
|
70267
70267
|
$ErrorActionPreference = 'Stop'
|
|
70268
|
+
$ProgressPreference = 'SilentlyContinue'
|
|
70268
70269
|
Import-Module (Join-Path $PSHOME 'Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1')
|
|
70269
70270
|
$item = Get-Item -LiteralPath $env:MOBIUS_PERMISSION_PATH -Force
|
|
70270
70271
|
if (($item.Attributes -band [IO.FileAttributes]::ReparsePoint) -ne 0) { throw 'Unsafe path' }
|
|
@@ -70286,6 +70287,7 @@ if ($env:MOBIUS_PERMISSION_PRIVATE -eq '1') {
|
|
|
70286
70287
|
Set-Acl -LiteralPath $item.FullName -AclObject $private
|
|
70287
70288
|
}
|
|
70288
70289
|
`;
|
|
70290
|
+
windowsPermissionsTimeoutMs = 3e4;
|
|
70289
70291
|
windowsPlatform = {
|
|
70290
70292
|
controlSocketPath: (installationHash) => `\\\\.\\pipe\\mobius-${installationHash}`,
|
|
70291
70293
|
prepareControlSocket: async () => {
|