@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.
Files changed (87) hide show
  1. package/README.md +61 -61
  2. package/lib/electron-browser/remote-electron-file-dialog-service.d.ts +13 -13
  3. package/lib/electron-browser/remote-electron-file-dialog-service.js +57 -57
  4. package/lib/electron-browser/remote-frontend-contribution.d.ts +25 -25
  5. package/lib/electron-browser/remote-frontend-contribution.js +164 -164
  6. package/lib/electron-browser/remote-frontend-module.d.ts +3 -3
  7. package/lib/electron-browser/remote-frontend-module.js +42 -42
  8. package/lib/electron-browser/remote-preferences.d.ts +10 -10
  9. package/lib/electron-browser/remote-preferences.js +48 -48
  10. package/lib/electron-browser/remote-registry-contribution.d.ts +18 -18
  11. package/lib/electron-browser/remote-registry-contribution.js +74 -74
  12. package/lib/electron-browser/remote-service.d.ts +5 -5
  13. package/lib/electron-browser/remote-service.js +37 -37
  14. package/lib/electron-browser/remote-ssh-contribution.d.ts +17 -17
  15. package/lib/electron-browser/remote-ssh-contribution.js +117 -117
  16. package/lib/electron-common/remote-ssh-connection-provider.d.ts +10 -10
  17. package/lib/electron-common/remote-ssh-connection-provider.js +20 -20
  18. package/lib/electron-common/remote-status-service.d.ts +14 -14
  19. package/lib/electron-common/remote-status-service.js +20 -20
  20. package/lib/electron-node/backend-remote-service-impl.d.ts +11 -11
  21. package/lib/electron-node/backend-remote-service-impl.js +50 -50
  22. package/lib/electron-node/remote-backend-module.d.ts +4 -4
  23. package/lib/electron-node/remote-backend-module.js +74 -74
  24. package/lib/electron-node/remote-connection-service.d.ts +14 -14
  25. package/lib/electron-node/remote-connection-service.js +65 -65
  26. package/lib/electron-node/remote-connection-socket-provider.d.ts +8 -8
  27. package/lib/electron-node/remote-connection-socket-provider.js +37 -37
  28. package/lib/electron-node/remote-proxy-server-provider.d.ts +5 -5
  29. package/lib/electron-node/remote-proxy-server-provider.js +43 -43
  30. package/lib/electron-node/remote-status-service.d.ts +6 -6
  31. package/lib/electron-node/remote-status-service.js +54 -54
  32. package/lib/electron-node/remote-types.d.ts +34 -34
  33. package/lib/electron-node/remote-types.js +17 -17
  34. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +7 -7
  35. package/lib/electron-node/setup/app-native-dependency-contribution.js +57 -57
  36. package/lib/electron-node/setup/main-copy-contribution.d.ts +4 -4
  37. package/lib/electron-node/setup/main-copy-contribution.js +37 -37
  38. package/lib/electron-node/setup/remote-copy-contribution.d.ts +28 -28
  39. package/lib/electron-node/setup/remote-copy-contribution.js +78 -78
  40. package/lib/electron-node/setup/remote-copy-service.d.ts +18 -18
  41. package/lib/electron-node/setup/remote-copy-service.js +126 -126
  42. package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts +34 -34
  43. package/lib/electron-node/setup/remote-native-dependency-contribution.js +34 -34
  44. package/lib/electron-node/setup/remote-native-dependency-service.d.ts +23 -23
  45. package/lib/electron-node/setup/remote-native-dependency-service.js +118 -118
  46. package/lib/electron-node/setup/remote-node-setup-service.d.ts +22 -22
  47. package/lib/electron-node/setup/remote-node-setup-service.js +132 -132
  48. package/lib/electron-node/setup/remote-setup-script-service.d.ts +40 -40
  49. package/lib/electron-node/setup/remote-setup-script-service.js +132 -132
  50. package/lib/electron-node/setup/remote-setup-service.d.ts +28 -28
  51. package/lib/electron-node/setup/remote-setup-service.js +198 -198
  52. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +55 -55
  53. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
  54. package/lib/electron-node/ssh/remote-ssh-connection-provider.js +344 -342
  55. package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
  56. package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts +12 -12
  57. package/lib/electron-node/ssh/ssh-identity-file-collector.js +131 -131
  58. package/lib/package.spec.js +25 -25
  59. package/package.json +6 -7
  60. package/src/electron-browser/remote-electron-file-dialog-service.ts +47 -47
  61. package/src/electron-browser/remote-frontend-contribution.ts +145 -145
  62. package/src/electron-browser/remote-frontend-module.ts +49 -49
  63. package/src/electron-browser/remote-preferences.ts +62 -62
  64. package/src/electron-browser/remote-registry-contribution.ts +70 -70
  65. package/src/electron-browser/remote-service.ts +31 -31
  66. package/src/electron-browser/remote-ssh-contribution.ts +102 -102
  67. package/src/electron-common/remote-ssh-connection-provider.ts +29 -29
  68. package/src/electron-common/remote-status-service.ts +35 -35
  69. package/src/electron-node/backend-remote-service-impl.ts +45 -45
  70. package/src/electron-node/remote-backend-module.ts +80 -80
  71. package/src/electron-node/remote-connection-service.ts +55 -55
  72. package/src/electron-node/remote-connection-socket-provider.ts +34 -34
  73. package/src/electron-node/remote-proxy-server-provider.ts +37 -37
  74. package/src/electron-node/remote-status-service.ts +41 -41
  75. package/src/electron-node/remote-types.ts +56 -56
  76. package/src/electron-node/setup/app-native-dependency-contribution.ts +48 -48
  77. package/src/electron-node/setup/main-copy-contribution.ts +28 -28
  78. package/src/electron-node/setup/remote-copy-contribution.ts +90 -90
  79. package/src/electron-node/setup/remote-copy-service.ts +114 -114
  80. package/src/electron-node/setup/remote-native-dependency-contribution.ts +63 -63
  81. package/src/electron-node/setup/remote-native-dependency-service.ts +111 -111
  82. package/src/electron-node/setup/remote-node-setup-service.ts +123 -123
  83. package/src/electron-node/setup/remote-setup-script-service.ts +146 -146
  84. package/src/electron-node/setup/remote-setup-service.ts +197 -197
  85. package/src/electron-node/ssh/remote-ssh-connection-provider.ts +358 -356
  86. package/src/electron-node/ssh/ssh-identity-file-collector.ts +137 -137
  87. package/src/package.spec.ts +29 -29
@@ -1,21 +1,21 @@
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
- exports.RemoteStatusService = exports.RemoteStatusServicePath = void 0;
19
- exports.RemoteStatusServicePath = '/remote/status';
20
- exports.RemoteStatusService = Symbol('RemoteStatusService');
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
+ exports.RemoteStatusService = exports.RemoteStatusServicePath = void 0;
19
+ exports.RemoteStatusServicePath = '/remote/status';
20
+ exports.RemoteStatusService = Symbol('RemoteStatusService');
21
21
  //# sourceMappingURL=remote-status-service.js.map
@@ -1,12 +1,12 @@
1
- /// <reference types="yargs" />
2
- import { CliContribution } from '@theia/core/lib/node';
3
- import { Arguments, Argv } from '@theia/core/shared/yargs';
4
- import { BackendRemoteService } from '@theia/core/lib/node/backend-remote-service';
5
- export declare const REMOTE_START = "remote";
6
- export declare class BackendRemoteServiceImpl extends BackendRemoteService implements CliContribution {
7
- protected isRemote: boolean;
8
- configure(conf: Argv): void;
9
- setArguments(args: Arguments): void;
10
- isRemoteServer(): boolean;
11
- }
1
+ /// <reference types="yargs" />
2
+ import { CliContribution } from '@theia/core/lib/node';
3
+ import { Arguments, Argv } from '@theia/core/shared/yargs';
4
+ import { BackendRemoteService } from '@theia/core/lib/node/backend-remote-service';
5
+ export declare const REMOTE_START = "remote";
6
+ export declare class BackendRemoteServiceImpl extends BackendRemoteService implements CliContribution {
7
+ protected isRemote: boolean;
8
+ configure(conf: Argv): void;
9
+ setArguments(args: Arguments): void;
10
+ isRemoteServer(): boolean;
11
+ }
12
12
  //# sourceMappingURL=backend-remote-service-impl.d.ts.map
@@ -1,51 +1,51 @@
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.BackendRemoteServiceImpl = exports.REMOTE_START = void 0;
25
- const inversify_1 = require("@theia/core/shared/inversify");
26
- const backend_remote_service_1 = require("@theia/core/lib/node/backend-remote-service");
27
- exports.REMOTE_START = 'remote';
28
- let BackendRemoteServiceImpl = class BackendRemoteServiceImpl extends backend_remote_service_1.BackendRemoteService {
29
- constructor() {
30
- super(...arguments);
31
- this.isRemote = false;
32
- }
33
- configure(conf) {
34
- conf.option(exports.REMOTE_START, {
35
- description: 'Starts the server as an endpoint for a remote connection (i.e. through SSH)',
36
- type: 'boolean',
37
- default: false
38
- });
39
- }
40
- setArguments(args) {
41
- this.isRemote = Boolean(args[exports.REMOTE_START]);
42
- }
43
- isRemoteServer() {
44
- return this.isRemote;
45
- }
46
- };
47
- BackendRemoteServiceImpl = __decorate([
48
- (0, inversify_1.injectable)()
49
- ], BackendRemoteServiceImpl);
50
- exports.BackendRemoteServiceImpl = BackendRemoteServiceImpl;
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.BackendRemoteServiceImpl = exports.REMOTE_START = void 0;
25
+ const inversify_1 = require("@theia/core/shared/inversify");
26
+ const backend_remote_service_1 = require("@theia/core/lib/node/backend-remote-service");
27
+ exports.REMOTE_START = 'remote';
28
+ let BackendRemoteServiceImpl = class BackendRemoteServiceImpl extends backend_remote_service_1.BackendRemoteService {
29
+ constructor() {
30
+ super(...arguments);
31
+ this.isRemote = false;
32
+ }
33
+ configure(conf) {
34
+ conf.option(exports.REMOTE_START, {
35
+ description: 'Starts the server as an endpoint for a remote connection (i.e. through SSH)',
36
+ type: 'boolean',
37
+ default: false
38
+ });
39
+ }
40
+ setArguments(args) {
41
+ this.isRemote = Boolean(args[exports.REMOTE_START]);
42
+ }
43
+ isRemoteServer() {
44
+ return this.isRemote;
45
+ }
46
+ };
47
+ BackendRemoteServiceImpl = __decorate([
48
+ (0, inversify_1.injectable)()
49
+ ], BackendRemoteServiceImpl);
50
+ exports.BackendRemoteServiceImpl = BackendRemoteServiceImpl;
51
51
  //# sourceMappingURL=backend-remote-service-impl.js.map
@@ -1,5 +1,5 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- export declare const remoteConnectionModule: ContainerModule;
3
- declare const _default: ContainerModule;
4
- export default _default;
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ export declare const remoteConnectionModule: ContainerModule;
3
+ declare const _default: ContainerModule;
4
+ export default _default;
5
5
  //# sourceMappingURL=remote-backend-module.d.ts.map
@@ -1,75 +1,75 @@
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
- exports.remoteConnectionModule = void 0;
19
- const inversify_1 = require("@theia/core/shared/inversify");
20
- const node_1 = require("@theia/core/lib/node");
21
- const remote_connection_service_1 = require("./remote-connection-service");
22
- const remote_proxy_server_provider_1 = require("./remote-proxy-server-provider");
23
- const remote_connection_socket_provider_1 = require("./remote-connection-socket-provider");
24
- const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
25
- const remote_ssh_connection_provider_1 = require("../electron-common/remote-ssh-connection-provider");
26
- const remote_ssh_connection_provider_2 = require("./ssh/remote-ssh-connection-provider");
27
- const ssh_identity_file_collector_1 = require("./ssh/ssh-identity-file-collector");
28
- const remote_copy_service_1 = require("./setup/remote-copy-service");
29
- const remote_setup_service_1 = require("./setup/remote-setup-service");
30
- const remote_native_dependency_service_1 = require("./setup/remote-native-dependency-service");
31
- const backend_remote_service_impl_1 = require("./backend-remote-service-impl");
32
- const backend_remote_service_1 = require("@theia/core/lib/node/backend-remote-service");
33
- const remote_node_setup_service_1 = require("./setup/remote-node-setup-service");
34
- const remote_setup_script_service_1 = require("./setup/remote-setup-script-service");
35
- const remote_status_service_1 = require("../electron-common/remote-status-service");
36
- const remote_status_service_2 = require("./remote-status-service");
37
- const core_1 = require("@theia/core");
38
- const remote_copy_contribution_1 = require("./setup/remote-copy-contribution");
39
- const main_copy_contribution_1 = require("./setup/main-copy-contribution");
40
- const remote_native_dependency_contribution_1 = require("./setup/remote-native-dependency-contribution");
41
- const app_native_dependency_contribution_1 = require("./setup/app-native-dependency-contribution");
42
- exports.remoteConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
43
- bind(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl).toSelf().inSingletonScope();
44
- bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toService(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl);
45
- bindBackendService(remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath, remote_ssh_connection_provider_1.RemoteSSHConnectionProvider);
46
- });
47
- exports.default = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebind) => {
48
- bind(remote_proxy_server_provider_1.RemoteProxyServerProvider).toSelf().inSingletonScope();
49
- bind(remote_connection_socket_provider_1.RemoteConnectionSocketProvider).toSelf().inSingletonScope();
50
- bind(remote_connection_service_1.RemoteConnectionService).toSelf().inSingletonScope();
51
- bind(node_1.BackendApplicationContribution).toService(remote_connection_service_1.RemoteConnectionService);
52
- bind(remote_status_service_2.RemoteStatusServiceImpl).toSelf().inSingletonScope();
53
- bind(remote_status_service_1.RemoteStatusService).toService(remote_status_service_2.RemoteStatusServiceImpl);
54
- bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.RpcConnectionHandler(remote_status_service_1.RemoteStatusServicePath, () => ctx.container.get(remote_status_service_1.RemoteStatusService))).inSingletonScope();
55
- bind(remote_copy_service_1.RemoteCopyService).toSelf().inSingletonScope();
56
- bind(remote_setup_service_1.RemoteSetupService).toSelf().inSingletonScope();
57
- bind(remote_node_setup_service_1.RemoteNodeSetupService).toSelf().inSingletonScope();
58
- bind(remote_setup_script_service_1.RemoteWindowsScriptStrategy).toSelf().inSingletonScope();
59
- bind(remote_setup_script_service_1.RemotePosixScriptStrategy).toSelf().inSingletonScope();
60
- bind(remote_setup_script_service_1.RemoteSetupScriptService).toSelf().inSingletonScope();
61
- bind(remote_native_dependency_service_1.RemoteNativeDependencyService).toSelf().inSingletonScope();
62
- bind(remote_copy_contribution_1.RemoteCopyRegistry).toSelf().inSingletonScope();
63
- (0, core_1.bindContributionProvider)(bind, remote_copy_contribution_1.RemoteCopyContribution);
64
- (0, core_1.bindContributionProvider)(bind, remote_native_dependency_contribution_1.RemoteNativeDependencyContribution);
65
- bind(main_copy_contribution_1.MainCopyContribution).toSelf().inSingletonScope();
66
- bind(remote_copy_contribution_1.RemoteCopyContribution).toService(main_copy_contribution_1.MainCopyContribution);
67
- bind(app_native_dependency_contribution_1.AppNativeDependencyContribution).toSelf().inSingletonScope();
68
- bind(remote_native_dependency_contribution_1.RemoteNativeDependencyContribution).toService(app_native_dependency_contribution_1.AppNativeDependencyContribution);
69
- bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(exports.remoteConnectionModule);
70
- bind(backend_remote_service_impl_1.BackendRemoteServiceImpl).toSelf().inSingletonScope();
71
- rebind(backend_remote_service_1.BackendRemoteService).toService(backend_remote_service_impl_1.BackendRemoteServiceImpl);
72
- bind(node_1.CliContribution).toService(backend_remote_service_impl_1.BackendRemoteServiceImpl);
73
- bind(ssh_identity_file_collector_1.SSHIdentityFileCollector).toSelf().inSingletonScope();
74
- });
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
+ exports.remoteConnectionModule = void 0;
19
+ const inversify_1 = require("@theia/core/shared/inversify");
20
+ const node_1 = require("@theia/core/lib/node");
21
+ const remote_connection_service_1 = require("./remote-connection-service");
22
+ const remote_proxy_server_provider_1 = require("./remote-proxy-server-provider");
23
+ const remote_connection_socket_provider_1 = require("./remote-connection-socket-provider");
24
+ const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
25
+ const remote_ssh_connection_provider_1 = require("../electron-common/remote-ssh-connection-provider");
26
+ const remote_ssh_connection_provider_2 = require("./ssh/remote-ssh-connection-provider");
27
+ const ssh_identity_file_collector_1 = require("./ssh/ssh-identity-file-collector");
28
+ const remote_copy_service_1 = require("./setup/remote-copy-service");
29
+ const remote_setup_service_1 = require("./setup/remote-setup-service");
30
+ const remote_native_dependency_service_1 = require("./setup/remote-native-dependency-service");
31
+ const backend_remote_service_impl_1 = require("./backend-remote-service-impl");
32
+ const backend_remote_service_1 = require("@theia/core/lib/node/backend-remote-service");
33
+ const remote_node_setup_service_1 = require("./setup/remote-node-setup-service");
34
+ const remote_setup_script_service_1 = require("./setup/remote-setup-script-service");
35
+ const remote_status_service_1 = require("../electron-common/remote-status-service");
36
+ const remote_status_service_2 = require("./remote-status-service");
37
+ const core_1 = require("@theia/core");
38
+ const remote_copy_contribution_1 = require("./setup/remote-copy-contribution");
39
+ const main_copy_contribution_1 = require("./setup/main-copy-contribution");
40
+ const remote_native_dependency_contribution_1 = require("./setup/remote-native-dependency-contribution");
41
+ const app_native_dependency_contribution_1 = require("./setup/app-native-dependency-contribution");
42
+ exports.remoteConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
43
+ bind(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl).toSelf().inSingletonScope();
44
+ bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toService(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl);
45
+ bindBackendService(remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath, remote_ssh_connection_provider_1.RemoteSSHConnectionProvider);
46
+ });
47
+ exports.default = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebind) => {
48
+ bind(remote_proxy_server_provider_1.RemoteProxyServerProvider).toSelf().inSingletonScope();
49
+ bind(remote_connection_socket_provider_1.RemoteConnectionSocketProvider).toSelf().inSingletonScope();
50
+ bind(remote_connection_service_1.RemoteConnectionService).toSelf().inSingletonScope();
51
+ bind(node_1.BackendApplicationContribution).toService(remote_connection_service_1.RemoteConnectionService);
52
+ bind(remote_status_service_2.RemoteStatusServiceImpl).toSelf().inSingletonScope();
53
+ bind(remote_status_service_1.RemoteStatusService).toService(remote_status_service_2.RemoteStatusServiceImpl);
54
+ bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.RpcConnectionHandler(remote_status_service_1.RemoteStatusServicePath, () => ctx.container.get(remote_status_service_1.RemoteStatusService))).inSingletonScope();
55
+ bind(remote_copy_service_1.RemoteCopyService).toSelf().inSingletonScope();
56
+ bind(remote_setup_service_1.RemoteSetupService).toSelf().inSingletonScope();
57
+ bind(remote_node_setup_service_1.RemoteNodeSetupService).toSelf().inSingletonScope();
58
+ bind(remote_setup_script_service_1.RemoteWindowsScriptStrategy).toSelf().inSingletonScope();
59
+ bind(remote_setup_script_service_1.RemotePosixScriptStrategy).toSelf().inSingletonScope();
60
+ bind(remote_setup_script_service_1.RemoteSetupScriptService).toSelf().inSingletonScope();
61
+ bind(remote_native_dependency_service_1.RemoteNativeDependencyService).toSelf().inSingletonScope();
62
+ bind(remote_copy_contribution_1.RemoteCopyRegistry).toSelf().inSingletonScope();
63
+ (0, core_1.bindContributionProvider)(bind, remote_copy_contribution_1.RemoteCopyContribution);
64
+ (0, core_1.bindContributionProvider)(bind, remote_native_dependency_contribution_1.RemoteNativeDependencyContribution);
65
+ bind(main_copy_contribution_1.MainCopyContribution).toSelf().inSingletonScope();
66
+ bind(remote_copy_contribution_1.RemoteCopyContribution).toService(main_copy_contribution_1.MainCopyContribution);
67
+ bind(app_native_dependency_contribution_1.AppNativeDependencyContribution).toSelf().inSingletonScope();
68
+ bind(remote_native_dependency_contribution_1.RemoteNativeDependencyContribution).toService(app_native_dependency_contribution_1.AppNativeDependencyContribution);
69
+ bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(exports.remoteConnectionModule);
70
+ bind(backend_remote_service_impl_1.BackendRemoteServiceImpl).toSelf().inSingletonScope();
71
+ rebind(backend_remote_service_1.BackendRemoteService).toService(backend_remote_service_impl_1.BackendRemoteServiceImpl);
72
+ bind(node_1.CliContribution).toService(backend_remote_service_impl_1.BackendRemoteServiceImpl);
73
+ bind(ssh_identity_file_collector_1.SSHIdentityFileCollector).toSelf().inSingletonScope();
74
+ });
75
75
  //# sourceMappingURL=remote-backend-module.js.map
@@ -1,15 +1,15 @@
1
- import { RemoteConnection } from './remote-types';
2
- import { Disposable } from '@theia/core';
3
- import { RemoteCopyService } from './setup/remote-copy-service';
4
- import { RemoteNativeDependencyService } from './setup/remote-native-dependency-service';
5
- import { BackendApplicationContribution } from '@theia/core/lib/node';
6
- export declare class RemoteConnectionService implements BackendApplicationContribution {
7
- protected readonly copyService: RemoteCopyService;
8
- protected readonly nativeDependencyService: RemoteNativeDependencyService;
9
- protected readonly connections: Map<string, RemoteConnection>;
10
- getConnection(id: string): RemoteConnection | undefined;
11
- getConnectionFromPort(port: number): RemoteConnection | undefined;
12
- register(connection: RemoteConnection): Disposable;
13
- onStop(): void;
14
- }
1
+ import { RemoteConnection } from './remote-types';
2
+ import { Disposable } from '@theia/core';
3
+ import { RemoteCopyService } from './setup/remote-copy-service';
4
+ import { RemoteNativeDependencyService } from './setup/remote-native-dependency-service';
5
+ import { BackendApplicationContribution } from '@theia/core/lib/node';
6
+ export declare class RemoteConnectionService implements BackendApplicationContribution {
7
+ protected readonly copyService: RemoteCopyService;
8
+ protected readonly nativeDependencyService: RemoteNativeDependencyService;
9
+ protected readonly connections: Map<string, RemoteConnection>;
10
+ getConnection(id: string): RemoteConnection | undefined;
11
+ getConnectionFromPort(port: number): RemoteConnection | undefined;
12
+ register(connection: RemoteConnection): Disposable;
13
+ onStop(): void;
14
+ }
15
15
  //# sourceMappingURL=remote-connection-service.d.ts.map
@@ -1,66 +1,66 @@
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.RemoteConnectionService = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const core_1 = require("@theia/core");
30
- const remote_copy_service_1 = require("./setup/remote-copy-service");
31
- const remote_native_dependency_service_1 = require("./setup/remote-native-dependency-service");
32
- let RemoteConnectionService = class RemoteConnectionService {
33
- constructor() {
34
- this.connections = new Map();
35
- }
36
- getConnection(id) {
37
- return this.connections.get(id);
38
- }
39
- getConnectionFromPort(port) {
40
- return Array.from(this.connections.values()).find(connection => connection.localPort === port);
41
- }
42
- register(connection) {
43
- this.connections.set(connection.id, connection);
44
- return core_1.Disposable.create(() => {
45
- this.connections.delete(connection.id);
46
- });
47
- }
48
- onStop() {
49
- for (const connection of this.connections.values()) {
50
- connection.dispose();
51
- }
52
- }
53
- };
54
- __decorate([
55
- (0, inversify_1.inject)(remote_copy_service_1.RemoteCopyService),
56
- __metadata("design:type", remote_copy_service_1.RemoteCopyService)
57
- ], RemoteConnectionService.prototype, "copyService", void 0);
58
- __decorate([
59
- (0, inversify_1.inject)(remote_native_dependency_service_1.RemoteNativeDependencyService),
60
- __metadata("design:type", remote_native_dependency_service_1.RemoteNativeDependencyService)
61
- ], RemoteConnectionService.prototype, "nativeDependencyService", void 0);
62
- RemoteConnectionService = __decorate([
63
- (0, inversify_1.injectable)()
64
- ], RemoteConnectionService);
65
- exports.RemoteConnectionService = RemoteConnectionService;
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.RemoteConnectionService = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const core_1 = require("@theia/core");
30
+ const remote_copy_service_1 = require("./setup/remote-copy-service");
31
+ const remote_native_dependency_service_1 = require("./setup/remote-native-dependency-service");
32
+ let RemoteConnectionService = class RemoteConnectionService {
33
+ constructor() {
34
+ this.connections = new Map();
35
+ }
36
+ getConnection(id) {
37
+ return this.connections.get(id);
38
+ }
39
+ getConnectionFromPort(port) {
40
+ return Array.from(this.connections.values()).find(connection => connection.localPort === port);
41
+ }
42
+ register(connection) {
43
+ this.connections.set(connection.id, connection);
44
+ return core_1.Disposable.create(() => {
45
+ this.connections.delete(connection.id);
46
+ });
47
+ }
48
+ onStop() {
49
+ for (const connection of this.connections.values()) {
50
+ connection.dispose();
51
+ }
52
+ }
53
+ };
54
+ __decorate([
55
+ (0, inversify_1.inject)(remote_copy_service_1.RemoteCopyService),
56
+ __metadata("design:type", remote_copy_service_1.RemoteCopyService)
57
+ ], RemoteConnectionService.prototype, "copyService", void 0);
58
+ __decorate([
59
+ (0, inversify_1.inject)(remote_native_dependency_service_1.RemoteNativeDependencyService),
60
+ __metadata("design:type", remote_native_dependency_service_1.RemoteNativeDependencyService)
61
+ ], RemoteConnectionService.prototype, "nativeDependencyService", void 0);
62
+ RemoteConnectionService = __decorate([
63
+ (0, inversify_1.injectable)()
64
+ ], RemoteConnectionService);
65
+ exports.RemoteConnectionService = RemoteConnectionService;
66
66
  //# sourceMappingURL=remote-connection-service.js.map
@@ -1,9 +1,9 @@
1
- import { Socket } from 'socket.io-client';
2
- export interface RemoteProxySocketProviderOptions {
3
- port: number;
4
- path: string;
5
- }
6
- export declare class RemoteConnectionSocketProvider {
7
- getProxySocket(options: RemoteProxySocketProviderOptions): Socket;
8
- }
1
+ import { Socket } from 'socket.io-client';
2
+ export interface RemoteProxySocketProviderOptions {
3
+ port: number;
4
+ path: string;
5
+ }
6
+ export declare class RemoteConnectionSocketProvider {
7
+ getProxySocket(options: RemoteProxySocketProviderOptions): Socket;
8
+ }
9
9
  //# sourceMappingURL=remote-connection-socket-provider.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.RemoteConnectionSocketProvider = void 0;
25
- const inversify_1 = require("@theia/core/shared/inversify");
26
- const socket_io_client_1 = require("socket.io-client");
27
- let RemoteConnectionSocketProvider = class RemoteConnectionSocketProvider {
28
- getProxySocket(options) {
29
- const socket = (0, socket_io_client_1.io)(`ws://localhost:${options.port}${options.path}`);
30
- socket.connect();
31
- return socket;
32
- }
33
- };
34
- RemoteConnectionSocketProvider = __decorate([
35
- (0, inversify_1.injectable)()
36
- ], RemoteConnectionSocketProvider);
37
- exports.RemoteConnectionSocketProvider = RemoteConnectionSocketProvider;
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.RemoteConnectionSocketProvider = void 0;
25
+ const inversify_1 = require("@theia/core/shared/inversify");
26
+ const socket_io_client_1 = require("socket.io-client");
27
+ let RemoteConnectionSocketProvider = class RemoteConnectionSocketProvider {
28
+ getProxySocket(options) {
29
+ const socket = (0, socket_io_client_1.io)(`ws://localhost:${options.port}${options.path}`);
30
+ socket.connect();
31
+ return socket;
32
+ }
33
+ };
34
+ RemoteConnectionSocketProvider = __decorate([
35
+ (0, inversify_1.injectable)()
36
+ ], RemoteConnectionSocketProvider);
37
+ exports.RemoteConnectionSocketProvider = RemoteConnectionSocketProvider;
38
38
  //# sourceMappingURL=remote-connection-socket-provider.js.map
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- import * as net from 'net';
3
- export declare class RemoteProxyServerProvider {
4
- getProxyServer(callback?: (socket: net.Socket) => void): Promise<net.Server>;
5
- }
1
+ /// <reference types="node" />
2
+ import * as net from 'net';
3
+ export declare class RemoteProxyServerProvider {
4
+ getProxyServer(callback?: (socket: net.Socket) => void): Promise<net.Server>;
5
+ }
6
6
  //# sourceMappingURL=remote-proxy-server-provider.d.ts.map