@aivin-labs/cli 1.0.46 → 1.0.50
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/bin/cli.mjs +16 -5
- package/bin/lib/auth.mjs +24 -10
- package/bin/lib/projectEnv.mjs +27 -0
- package/bin/lib/remote/client.mjs +1412 -1162
- package/bin/lib/remote/confirmBarrier.mjs +45 -0
- package/bin/lib/remote/constants.mjs +7 -1
- package/bin/lib/remote/desktop/aivinIco.mjs +696 -0
- package/bin/lib/remote/desktop/castAuth.mjs +74 -69
- package/bin/lib/remote/desktop/castConsent.mjs +90 -0
- package/bin/lib/remote/desktop/castFileDrop.mjs +24 -0
- package/bin/lib/remote/desktop/castInput.mjs +89 -24
- package/bin/lib/remote/desktop/castTouchViewers.mjs +26 -0
- package/bin/lib/remote/desktop/desktopCast.mjs +28 -2
- package/bin/lib/remote/desktop/desktopCastSource.mjs +410 -121
- package/bin/lib/remote/desktop/desktopWebRtc.mjs +17 -1
- package/bin/lib/remote/desktop/index.mjs +5 -3
- package/bin/lib/remote/desktop/traySource.mjs +1289 -1274
- package/bin/lib/remote/desktop/webrtcWorker.mjs +3 -0
- package/bin/lib/remote/deviceProfile.mjs +2 -0
- package/bin/lib/remote/gui/index.mjs +485 -480
- package/bin/lib/remote/humanInput.mjs +117 -0
- package/bin/lib/remote/idempotency.mjs +19 -2
- package/bin/lib/remote/keepAwake.mjs +15 -9
- package/bin/lib/remote/localConfirm.mjs +26 -7
- package/bin/lib/remote/localPolicy.mjs +15 -2
- package/bin/lib/remote/mascot/ask.mjs +23 -4
- package/bin/lib/remote/mascot/askHostSource.mjs +10 -4
- package/bin/lib/remote/mascot/bot.mjs +5 -1
- package/bin/lib/remote/mascot/hostSource.mjs +8 -1
- package/bin/lib/remote/mascot/index.mjs +55 -51
- package/bin/lib/remote/mascot/rigSource.mjs +28 -2
- package/bin/lib/remote/policyCommand.mjs +16 -3
- package/bin/lib/remote/processes.mjs +231 -230
- package/bin/lib/remote/sandbox.mjs +6 -4
- package/bin/lib/remote/scheduler.mjs +164 -124
- package/bin/lib/remote/toolHandlers.mjs +3 -2
- package/bin/lib/remote/winTree.mjs +29 -0
- package/package.json +1 -1
|
@@ -187,6 +187,9 @@ export function createDesktopWebRtcWorker({
|
|
|
187
187
|
|
|
188
188
|
function closeAll() {
|
|
189
189
|
peers.clear();
|
|
190
|
+
// Phiên dừng lúc có người xem đang dựng WebRTC: trả "không dựng được" ngay, không để nơi gọi chờ đủ 30 s rồi báo trạng thái cho phiên đã chết.
|
|
191
|
+
for (const done of waiting.values()) done(false);
|
|
192
|
+
waiting.clear();
|
|
190
193
|
if (!child) return;
|
|
191
194
|
const proc = child;
|
|
192
195
|
send({ t: 'closeAll' });
|
|
@@ -122,6 +122,8 @@ export function buildDeviceProfile(roots) {
|
|
|
122
122
|
binaries: detectBinaries(),
|
|
123
123
|
projects: detectProjects(roots),
|
|
124
124
|
desktop_cast: process.platform === 'win32',
|
|
125
|
+
// Giao diện chỉ gửi lệnh mà bản CLI này hiểu; CLI cũ không khai thì giao diện đi đường cũ.
|
|
126
|
+
cast_features: ['paste_html', 'drop_files'],
|
|
125
127
|
};
|
|
126
128
|
}
|
|
127
129
|
|