@theia/remote 1.45.0 → 1.46.0-next.72
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/README.md +61 -61
- package/lib/electron-browser/remote-electron-file-dialog-service.d.ts +13 -13
- package/lib/electron-browser/remote-electron-file-dialog-service.js +57 -57
- package/lib/electron-browser/remote-frontend-contribution.d.ts +25 -25
- package/lib/electron-browser/remote-frontend-contribution.js +164 -164
- package/lib/electron-browser/remote-frontend-module.d.ts +3 -3
- package/lib/electron-browser/remote-frontend-module.js +42 -42
- package/lib/electron-browser/remote-preferences.d.ts +10 -10
- package/lib/electron-browser/remote-preferences.js +48 -48
- package/lib/electron-browser/remote-registry-contribution.d.ts +18 -18
- package/lib/electron-browser/remote-registry-contribution.js +74 -74
- package/lib/electron-browser/remote-service.d.ts +5 -5
- package/lib/electron-browser/remote-service.js +37 -37
- package/lib/electron-browser/remote-ssh-contribution.d.ts +17 -17
- package/lib/electron-browser/remote-ssh-contribution.js +117 -117
- package/lib/electron-common/remote-ssh-connection-provider.d.ts +10 -10
- package/lib/electron-common/remote-ssh-connection-provider.js +20 -20
- package/lib/electron-common/remote-status-service.d.ts +14 -14
- package/lib/electron-common/remote-status-service.js +20 -20
- package/lib/electron-node/backend-remote-service-impl.d.ts +11 -11
- package/lib/electron-node/backend-remote-service-impl.js +50 -50
- package/lib/electron-node/remote-backend-module.d.ts +4 -4
- package/lib/electron-node/remote-backend-module.js +74 -74
- package/lib/electron-node/remote-connection-service.d.ts +14 -14
- package/lib/electron-node/remote-connection-service.js +65 -65
- package/lib/electron-node/remote-connection-socket-provider.d.ts +8 -8
- package/lib/electron-node/remote-connection-socket-provider.js +37 -37
- package/lib/electron-node/remote-proxy-server-provider.d.ts +5 -5
- package/lib/electron-node/remote-proxy-server-provider.js +43 -43
- package/lib/electron-node/remote-status-service.d.ts +6 -6
- package/lib/electron-node/remote-status-service.js +54 -54
- package/lib/electron-node/remote-types.d.ts +34 -34
- package/lib/electron-node/remote-types.js +17 -17
- package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +7 -7
- package/lib/electron-node/setup/app-native-dependency-contribution.js +57 -57
- package/lib/electron-node/setup/main-copy-contribution.d.ts +4 -4
- package/lib/electron-node/setup/main-copy-contribution.js +37 -37
- package/lib/electron-node/setup/remote-copy-contribution.d.ts +28 -28
- package/lib/electron-node/setup/remote-copy-contribution.js +78 -78
- package/lib/electron-node/setup/remote-copy-service.d.ts +18 -18
- package/lib/electron-node/setup/remote-copy-service.js +126 -126
- package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts +34 -34
- package/lib/electron-node/setup/remote-native-dependency-contribution.js +34 -34
- package/lib/electron-node/setup/remote-native-dependency-service.d.ts +23 -23
- package/lib/electron-node/setup/remote-native-dependency-service.js +118 -118
- package/lib/electron-node/setup/remote-node-setup-service.d.ts +22 -22
- package/lib/electron-node/setup/remote-node-setup-service.js +132 -132
- package/lib/electron-node/setup/remote-setup-script-service.d.ts +40 -40
- package/lib/electron-node/setup/remote-setup-script-service.js +132 -132
- package/lib/electron-node/setup/remote-setup-service.d.ts +28 -28
- package/lib/electron-node/setup/remote-setup-service.js +198 -198
- package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +55 -55
- package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
- package/lib/electron-node/ssh/remote-ssh-connection-provider.js +344 -342
- package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
- package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts +12 -12
- package/lib/electron-node/ssh/ssh-identity-file-collector.js +131 -131
- package/lib/package.spec.js +25 -25
- package/package.json +6 -7
- package/src/electron-browser/remote-electron-file-dialog-service.ts +47 -47
- package/src/electron-browser/remote-frontend-contribution.ts +145 -145
- package/src/electron-browser/remote-frontend-module.ts +49 -49
- package/src/electron-browser/remote-preferences.ts +62 -62
- package/src/electron-browser/remote-registry-contribution.ts +70 -70
- package/src/electron-browser/remote-service.ts +31 -31
- package/src/electron-browser/remote-ssh-contribution.ts +102 -102
- package/src/electron-common/remote-ssh-connection-provider.ts +29 -29
- package/src/electron-common/remote-status-service.ts +35 -35
- package/src/electron-node/backend-remote-service-impl.ts +45 -45
- package/src/electron-node/remote-backend-module.ts +80 -80
- package/src/electron-node/remote-connection-service.ts +55 -55
- package/src/electron-node/remote-connection-socket-provider.ts +34 -34
- package/src/electron-node/remote-proxy-server-provider.ts +37 -37
- package/src/electron-node/remote-status-service.ts +41 -41
- package/src/electron-node/remote-types.ts +56 -56
- package/src/electron-node/setup/app-native-dependency-contribution.ts +48 -48
- package/src/electron-node/setup/main-copy-contribution.ts +28 -28
- package/src/electron-node/setup/remote-copy-contribution.ts +90 -90
- package/src/electron-node/setup/remote-copy-service.ts +114 -114
- package/src/electron-node/setup/remote-native-dependency-contribution.ts +63 -63
- package/src/electron-node/setup/remote-native-dependency-service.ts +111 -111
- package/src/electron-node/setup/remote-node-setup-service.ts +123 -123
- package/src/electron-node/setup/remote-setup-script-service.ts +146 -146
- package/src/electron-node/setup/remote-setup-service.ts +197 -197
- package/src/electron-node/ssh/remote-ssh-connection-provider.ts +358 -356
- package/src/electron-node/ssh/ssh-identity-file-collector.ts +137 -137
- package/src/package.spec.ts +29 -29
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.RemoteProxyServerProvider = void 0;
|
|
25
|
-
const promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
26
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
27
|
-
const net = require("net");
|
|
28
|
-
let RemoteProxyServerProvider = class RemoteProxyServerProvider {
|
|
29
|
-
async getProxyServer(callback) {
|
|
30
|
-
const deferred = new promise_util_1.Deferred();
|
|
31
|
-
const proxy = net.createServer(socket => {
|
|
32
|
-
callback === null || callback === void 0 ? void 0 : callback(socket);
|
|
33
|
-
}).listen(0, () => {
|
|
34
|
-
deferred.resolve();
|
|
35
|
-
});
|
|
36
|
-
await deferred.promise;
|
|
37
|
-
return proxy;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
RemoteProxyServerProvider = __decorate([
|
|
41
|
-
(0, inversify_1.injectable)()
|
|
42
|
-
], RemoteProxyServerProvider);
|
|
43
|
-
exports.RemoteProxyServerProvider = RemoteProxyServerProvider;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.RemoteProxyServerProvider = void 0;
|
|
25
|
+
const promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
26
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
27
|
+
const net = require("net");
|
|
28
|
+
let RemoteProxyServerProvider = class RemoteProxyServerProvider {
|
|
29
|
+
async getProxyServer(callback) {
|
|
30
|
+
const deferred = new promise_util_1.Deferred();
|
|
31
|
+
const proxy = net.createServer(socket => {
|
|
32
|
+
callback === null || callback === void 0 ? void 0 : callback(socket);
|
|
33
|
+
}).listen(0, () => {
|
|
34
|
+
deferred.resolve();
|
|
35
|
+
});
|
|
36
|
+
await deferred.promise;
|
|
37
|
+
return proxy;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
RemoteProxyServerProvider = __decorate([
|
|
41
|
+
(0, inversify_1.injectable)()
|
|
42
|
+
], RemoteProxyServerProvider);
|
|
43
|
+
exports.RemoteProxyServerProvider = RemoteProxyServerProvider;
|
|
44
44
|
//# sourceMappingURL=remote-proxy-server-provider.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RemoteStatus, RemoteStatusService } from '../electron-common/remote-status-service';
|
|
2
|
-
import { RemoteConnectionService } from './remote-connection-service';
|
|
3
|
-
export declare class RemoteStatusServiceImpl implements RemoteStatusService {
|
|
4
|
-
protected remoteConnectionService: RemoteConnectionService;
|
|
5
|
-
getStatus(localPort: number): Promise<RemoteStatus>;
|
|
6
|
-
}
|
|
1
|
+
import { RemoteStatus, RemoteStatusService } from '../electron-common/remote-status-service';
|
|
2
|
+
import { RemoteConnectionService } from './remote-connection-service';
|
|
3
|
+
export declare class RemoteStatusServiceImpl implements RemoteStatusService {
|
|
4
|
+
protected remoteConnectionService: RemoteConnectionService;
|
|
5
|
+
getStatus(localPort: number): Promise<RemoteStatus>;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=remote-status-service.d.ts.map
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.RemoteStatusServiceImpl = void 0;
|
|
28
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
-
const remote_connection_service_1 = require("./remote-connection-service");
|
|
30
|
-
let RemoteStatusServiceImpl = class RemoteStatusServiceImpl {
|
|
31
|
-
async getStatus(localPort) {
|
|
32
|
-
const connection = this.remoteConnectionService.getConnectionFromPort(localPort);
|
|
33
|
-
if (connection) {
|
|
34
|
-
return {
|
|
35
|
-
alive: true,
|
|
36
|
-
name: connection.name,
|
|
37
|
-
type: connection.type
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return {
|
|
42
|
-
alive: false
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, inversify_1.inject)(remote_connection_service_1.RemoteConnectionService),
|
|
49
|
-
__metadata("design:type", remote_connection_service_1.RemoteConnectionService)
|
|
50
|
-
], RemoteStatusServiceImpl.prototype, "remoteConnectionService", void 0);
|
|
51
|
-
RemoteStatusServiceImpl = __decorate([
|
|
52
|
-
(0, inversify_1.injectable)()
|
|
53
|
-
], RemoteStatusServiceImpl);
|
|
54
|
-
exports.RemoteStatusServiceImpl = RemoteStatusServiceImpl;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.RemoteStatusServiceImpl = void 0;
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const remote_connection_service_1 = require("./remote-connection-service");
|
|
30
|
+
let RemoteStatusServiceImpl = class RemoteStatusServiceImpl {
|
|
31
|
+
async getStatus(localPort) {
|
|
32
|
+
const connection = this.remoteConnectionService.getConnectionFromPort(localPort);
|
|
33
|
+
if (connection) {
|
|
34
|
+
return {
|
|
35
|
+
alive: true,
|
|
36
|
+
name: connection.name,
|
|
37
|
+
type: connection.type
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return {
|
|
42
|
+
alive: false
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, inversify_1.inject)(remote_connection_service_1.RemoteConnectionService),
|
|
49
|
+
__metadata("design:type", remote_connection_service_1.RemoteConnectionService)
|
|
50
|
+
], RemoteStatusServiceImpl.prototype, "remoteConnectionService", void 0);
|
|
51
|
+
RemoteStatusServiceImpl = __decorate([
|
|
52
|
+
(0, inversify_1.injectable)()
|
|
53
|
+
], RemoteStatusServiceImpl);
|
|
54
|
+
exports.RemoteStatusServiceImpl = RemoteStatusServiceImpl;
|
|
55
55
|
//# sourceMappingURL=remote-status-service.js.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Disposable, Event, OS } from '@theia/core';
|
|
3
|
-
import * as net from 'net';
|
|
4
|
-
export interface RemotePlatform {
|
|
5
|
-
os: OS.Type;
|
|
6
|
-
arch: string;
|
|
7
|
-
}
|
|
8
|
-
export declare type RemoteStatusReport = (message: string) => void;
|
|
9
|
-
export interface ExpressLayer {
|
|
10
|
-
name: string;
|
|
11
|
-
regexp: RegExp;
|
|
12
|
-
handle: Function;
|
|
13
|
-
path?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface RemoteExecOptions {
|
|
16
|
-
env?: NodeJS.ProcessEnv;
|
|
17
|
-
}
|
|
18
|
-
export interface RemoteExecResult {
|
|
19
|
-
stdout: string;
|
|
20
|
-
stderr: string;
|
|
21
|
-
}
|
|
22
|
-
export declare type RemoteExecTester = (stdout: string, stderr: string) => boolean;
|
|
23
|
-
export interface RemoteConnection extends Disposable {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
type: string;
|
|
27
|
-
localPort: number;
|
|
28
|
-
remotePort: number;
|
|
29
|
-
onDidDisconnect: Event<void>;
|
|
30
|
-
forwardOut(socket: net.Socket): void;
|
|
31
|
-
exec(cmd: string, args?: string[], options?: RemoteExecOptions): Promise<RemoteExecResult>;
|
|
32
|
-
execPartial(cmd: string, tester: RemoteExecTester, args?: string[], options?: RemoteExecOptions): Promise<RemoteExecResult>;
|
|
33
|
-
copy(localPath: string | Buffer | NodeJS.ReadableStream, remotePath: string): Promise<void>;
|
|
34
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Disposable, Event, OS } from '@theia/core';
|
|
3
|
+
import * as net from 'net';
|
|
4
|
+
export interface RemotePlatform {
|
|
5
|
+
os: OS.Type;
|
|
6
|
+
arch: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type RemoteStatusReport = (message: string) => void;
|
|
9
|
+
export interface ExpressLayer {
|
|
10
|
+
name: string;
|
|
11
|
+
regexp: RegExp;
|
|
12
|
+
handle: Function;
|
|
13
|
+
path?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RemoteExecOptions {
|
|
16
|
+
env?: NodeJS.ProcessEnv;
|
|
17
|
+
}
|
|
18
|
+
export interface RemoteExecResult {
|
|
19
|
+
stdout: string;
|
|
20
|
+
stderr: string;
|
|
21
|
+
}
|
|
22
|
+
export declare type RemoteExecTester = (stdout: string, stderr: string) => boolean;
|
|
23
|
+
export interface RemoteConnection extends Disposable {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
type: string;
|
|
27
|
+
localPort: number;
|
|
28
|
+
remotePort: number;
|
|
29
|
+
onDidDisconnect: Event<void>;
|
|
30
|
+
forwardOut(socket: net.Socket): void;
|
|
31
|
+
exec(cmd: string, args?: string[], options?: RemoteExecOptions): Promise<RemoteExecResult>;
|
|
32
|
+
execPartial(cmd: string, tester: RemoteExecTester, args?: string[], options?: RemoteExecOptions): Promise<RemoteExecResult>;
|
|
33
|
+
copy(localPath: string | Buffer | NodeJS.ReadableStream, remotePath: string): Promise<void>;
|
|
34
|
+
}
|
|
35
35
|
//# sourceMappingURL=remote-types.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
//# sourceMappingURL=remote-types.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RemoteNativeDependencyContribution, DownloadOptions, DependencyDownload } from './remote-native-dependency-contribution';
|
|
2
|
-
import { RemotePlatform } from '../remote-types';
|
|
3
|
-
export declare class AppNativeDependencyContribution implements RemoteNativeDependencyContribution {
|
|
4
|
-
appDownloadUrlBase: string;
|
|
5
|
-
protected getDefaultURLForFile(remotePlatform: RemotePlatform, theiaVersion: string): string;
|
|
6
|
-
download(options: DownloadOptions): Promise<DependencyDownload>;
|
|
7
|
-
}
|
|
1
|
+
import { RemoteNativeDependencyContribution, DownloadOptions, DependencyDownload } from './remote-native-dependency-contribution';
|
|
2
|
+
import { RemotePlatform } from '../remote-types';
|
|
3
|
+
export declare class AppNativeDependencyContribution implements RemoteNativeDependencyContribution {
|
|
4
|
+
appDownloadUrlBase: string;
|
|
5
|
+
protected getDefaultURLForFile(remotePlatform: RemotePlatform, theiaVersion: string): string;
|
|
6
|
+
download(options: DownloadOptions): Promise<DependencyDownload>;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=app-native-dependency-contribution.d.ts.map
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.AppNativeDependencyContribution = void 0;
|
|
25
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
const core_1 = require("@theia/core");
|
|
27
|
-
let AppNativeDependencyContribution = class AppNativeDependencyContribution {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.appDownloadUrlBase = 'https://github.com/eclipse-theia/theia/releases/download';
|
|
30
|
-
}
|
|
31
|
-
getDefaultURLForFile(remotePlatform, theiaVersion) {
|
|
32
|
-
if (remotePlatform.arch !== 'x64') {
|
|
33
|
-
throw new Error(`Unsupported remote architecture '${remotePlatform.arch}'. Remote support is only available for x64 architectures.`);
|
|
34
|
-
}
|
|
35
|
-
let platform;
|
|
36
|
-
if (remotePlatform.os === core_1.OS.Type.Windows) {
|
|
37
|
-
platform = 'win32';
|
|
38
|
-
}
|
|
39
|
-
else if (remotePlatform.os === core_1.OS.Type.OSX) {
|
|
40
|
-
platform = 'darwin';
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
platform = 'linux';
|
|
44
|
-
}
|
|
45
|
-
return `${this.appDownloadUrlBase}/v${theiaVersion}/native-dependencies-${platform}-${remotePlatform.arch}.zip`;
|
|
46
|
-
}
|
|
47
|
-
async download(options) {
|
|
48
|
-
return {
|
|
49
|
-
buffer: await options.download(this.getDefaultURLForFile(options.remotePlatform, options.theiaVersion)),
|
|
50
|
-
archive: 'zip'
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
AppNativeDependencyContribution = __decorate([
|
|
55
|
-
(0, inversify_1.injectable)()
|
|
56
|
-
], AppNativeDependencyContribution);
|
|
57
|
-
exports.AppNativeDependencyContribution = AppNativeDependencyContribution;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.AppNativeDependencyContribution = void 0;
|
|
25
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
+
const core_1 = require("@theia/core");
|
|
27
|
+
let AppNativeDependencyContribution = class AppNativeDependencyContribution {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.appDownloadUrlBase = 'https://github.com/eclipse-theia/theia/releases/download';
|
|
30
|
+
}
|
|
31
|
+
getDefaultURLForFile(remotePlatform, theiaVersion) {
|
|
32
|
+
if (remotePlatform.arch !== 'x64') {
|
|
33
|
+
throw new Error(`Unsupported remote architecture '${remotePlatform.arch}'. Remote support is only available for x64 architectures.`);
|
|
34
|
+
}
|
|
35
|
+
let platform;
|
|
36
|
+
if (remotePlatform.os === core_1.OS.Type.Windows) {
|
|
37
|
+
platform = 'win32';
|
|
38
|
+
}
|
|
39
|
+
else if (remotePlatform.os === core_1.OS.Type.OSX) {
|
|
40
|
+
platform = 'darwin';
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
platform = 'linux';
|
|
44
|
+
}
|
|
45
|
+
return `${this.appDownloadUrlBase}/v${theiaVersion}/native-dependencies-${platform}-${remotePlatform.arch}.zip`;
|
|
46
|
+
}
|
|
47
|
+
async download(options) {
|
|
48
|
+
return {
|
|
49
|
+
buffer: await options.download(this.getDefaultURLForFile(options.remotePlatform, options.theiaVersion)),
|
|
50
|
+
archive: 'zip'
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
AppNativeDependencyContribution = __decorate([
|
|
55
|
+
(0, inversify_1.injectable)()
|
|
56
|
+
], AppNativeDependencyContribution);
|
|
57
|
+
exports.AppNativeDependencyContribution = AppNativeDependencyContribution;
|
|
58
58
|
//# sourceMappingURL=app-native-dependency-contribution.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RemoteCopyContribution, RemoteCopyRegistry } from './remote-copy-contribution';
|
|
2
|
-
export declare class MainCopyContribution implements RemoteCopyContribution {
|
|
3
|
-
copy(registry: RemoteCopyRegistry): Promise<void>;
|
|
4
|
-
}
|
|
1
|
+
import { RemoteCopyContribution, RemoteCopyRegistry } from './remote-copy-contribution';
|
|
2
|
+
export declare class MainCopyContribution implements RemoteCopyContribution {
|
|
3
|
+
copy(registry: RemoteCopyRegistry): Promise<void>;
|
|
4
|
+
}
|
|
5
5
|
//# sourceMappingURL=main-copy-contribution.d.ts.map
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.MainCopyContribution = void 0;
|
|
25
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
let MainCopyContribution = class MainCopyContribution {
|
|
27
|
-
async copy(registry) {
|
|
28
|
-
registry.file('package.json');
|
|
29
|
-
await registry.glob('lib/backend/**/*.js');
|
|
30
|
-
await registry.directory('lib/frontend');
|
|
31
|
-
await registry.directory('lib/webview');
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
MainCopyContribution = __decorate([
|
|
35
|
-
(0, inversify_1.injectable)()
|
|
36
|
-
], MainCopyContribution);
|
|
37
|
-
exports.MainCopyContribution = MainCopyContribution;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.MainCopyContribution = void 0;
|
|
25
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
+
let MainCopyContribution = class MainCopyContribution {
|
|
27
|
+
async copy(registry) {
|
|
28
|
+
registry.file('package.json');
|
|
29
|
+
await registry.glob('lib/backend/**/*.js');
|
|
30
|
+
await registry.directory('lib/frontend');
|
|
31
|
+
await registry.directory('lib/webview');
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
MainCopyContribution = __decorate([
|
|
35
|
+
(0, inversify_1.injectable)()
|
|
36
|
+
], MainCopyContribution);
|
|
37
|
+
exports.MainCopyContribution = MainCopyContribution;
|
|
38
38
|
//# sourceMappingURL=main-copy-contribution.js.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ApplicationPackage } from '@theia/core/shared/@theia/application-package';
|
|
2
|
-
import { MaybePromise } from '@theia/core';
|
|
3
|
-
export declare const RemoteCopyContribution: unique symbol;
|
|
4
|
-
export interface RemoteCopyContribution {
|
|
5
|
-
copy(registry: RemoteCopyRegistry): MaybePromise<void>;
|
|
6
|
-
}
|
|
7
|
-
export interface RemoteCopyOptions {
|
|
8
|
-
/**
|
|
9
|
-
* The mode that the file should be set to once copied to the remote.
|
|
10
|
-
*
|
|
11
|
-
* Only relevant for POSIX-like systems
|
|
12
|
-
*/
|
|
13
|
-
mode?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface RemoteFile {
|
|
16
|
-
path: string;
|
|
17
|
-
target: string;
|
|
18
|
-
options?: RemoteCopyOptions;
|
|
19
|
-
}
|
|
20
|
-
export declare class RemoteCopyRegistry {
|
|
21
|
-
protected readonly applicationPackage: ApplicationPackage;
|
|
22
|
-
protected readonly files: RemoteFile[];
|
|
23
|
-
getFiles(): RemoteFile[];
|
|
24
|
-
glob(pattern: string, target?: string): Promise<void>;
|
|
25
|
-
file(file: string, target?: string, options?: RemoteCopyOptions): void;
|
|
26
|
-
directory(dir: string, target?: string): Promise<void>;
|
|
27
|
-
protected withTarget(file: string, target?: string): string;
|
|
28
|
-
}
|
|
1
|
+
import { ApplicationPackage } from '@theia/core/shared/@theia/application-package';
|
|
2
|
+
import { MaybePromise } from '@theia/core';
|
|
3
|
+
export declare const RemoteCopyContribution: unique symbol;
|
|
4
|
+
export interface RemoteCopyContribution {
|
|
5
|
+
copy(registry: RemoteCopyRegistry): MaybePromise<void>;
|
|
6
|
+
}
|
|
7
|
+
export interface RemoteCopyOptions {
|
|
8
|
+
/**
|
|
9
|
+
* The mode that the file should be set to once copied to the remote.
|
|
10
|
+
*
|
|
11
|
+
* Only relevant for POSIX-like systems
|
|
12
|
+
*/
|
|
13
|
+
mode?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface RemoteFile {
|
|
16
|
+
path: string;
|
|
17
|
+
target: string;
|
|
18
|
+
options?: RemoteCopyOptions;
|
|
19
|
+
}
|
|
20
|
+
export declare class RemoteCopyRegistry {
|
|
21
|
+
protected readonly applicationPackage: ApplicationPackage;
|
|
22
|
+
protected readonly files: RemoteFile[];
|
|
23
|
+
getFiles(): RemoteFile[];
|
|
24
|
+
glob(pattern: string, target?: string): Promise<void>;
|
|
25
|
+
file(file: string, target?: string, options?: RemoteCopyOptions): void;
|
|
26
|
+
directory(dir: string, target?: string): Promise<void>;
|
|
27
|
+
protected withTarget(file: string, target?: string): string;
|
|
28
|
+
}
|
|
29
29
|
//# sourceMappingURL=remote-copy-contribution.d.ts.map
|