@theia/remote 1.67.0-next.13 → 1.67.0-next.56

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 (144) hide show
  1. package/README.md +1 -1
  2. package/package.json +6 -6
  3. package/src/electron-browser/port-forwarding/port-forwarding-service.ts +1 -1
  4. package/src/electron-browser/port-forwarding/port-forwarding-widget.tsx +1 -1
  5. package/lib/electron-browser/local-backend-services.d.ts +0 -11
  6. package/lib/electron-browser/local-backend-services.d.ts.map +0 -1
  7. package/lib/electron-browser/local-backend-services.js +0 -37
  8. package/lib/electron-browser/local-backend-services.js.map +0 -1
  9. package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts +0 -6
  10. package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts.map +0 -1
  11. package/lib/electron-browser/port-forwarding/port-forwading-contribution.js +0 -40
  12. package/lib/electron-browser/port-forwarding/port-forwading-contribution.js.map +0 -1
  13. package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts +0 -20
  14. package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts.map +0 -1
  15. package/lib/electron-browser/port-forwarding/port-forwarding-service.js +0 -89
  16. package/lib/electron-browser/port-forwarding/port-forwarding-service.js.map +0 -1
  17. package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts +0 -17
  18. package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts.map +0 -1
  19. package/lib/electron-browser/port-forwarding/port-forwarding-widget.js +0 -125
  20. package/lib/electron-browser/port-forwarding/port-forwarding-widget.js.map +0 -1
  21. package/lib/electron-browser/remote-electron-file-dialog-service.d.ts +0 -14
  22. package/lib/electron-browser/remote-electron-file-dialog-service.d.ts.map +0 -1
  23. package/lib/electron-browser/remote-electron-file-dialog-service.js +0 -50
  24. package/lib/electron-browser/remote-electron-file-dialog-service.js.map +0 -1
  25. package/lib/electron-browser/remote-frontend-contribution.d.ts +0 -26
  26. package/lib/electron-browser/remote-frontend-contribution.d.ts.map +0 -1
  27. package/lib/electron-browser/remote-frontend-contribution.js +0 -160
  28. package/lib/electron-browser/remote-frontend-contribution.js.map +0 -1
  29. package/lib/electron-browser/remote-frontend-module.d.ts +0 -5
  30. package/lib/electron-browser/remote-frontend-module.d.ts.map +0 -1
  31. package/lib/electron-browser/remote-frontend-module.js +0 -70
  32. package/lib/electron-browser/remote-frontend-module.js.map +0 -1
  33. package/lib/electron-browser/remote-registry-contribution.d.ts +0 -19
  34. package/lib/electron-browser/remote-registry-contribution.d.ts.map +0 -1
  35. package/lib/electron-browser/remote-registry-contribution.js +0 -70
  36. package/lib/electron-browser/remote-registry-contribution.js.map +0 -1
  37. package/lib/electron-browser/remote-service.d.ts +0 -6
  38. package/lib/electron-browser/remote-service.d.ts.map +0 -1
  39. package/lib/electron-browser/remote-service.js +0 -33
  40. package/lib/electron-browser/remote-service.js.map +0 -1
  41. package/lib/electron-browser/remote-ssh-contribution.d.ts +0 -23
  42. package/lib/electron-browser/remote-ssh-contribution.d.ts.map +0 -1
  43. package/lib/electron-browser/remote-ssh-contribution.js +0 -183
  44. package/lib/electron-browser/remote-ssh-contribution.js.map +0 -1
  45. package/lib/electron-browser/remote-user-storage-provider.d.ts +0 -21
  46. package/lib/electron-browser/remote-user-storage-provider.d.ts.map +0 -1
  47. package/lib/electron-browser/remote-user-storage-provider.js +0 -75
  48. package/lib/electron-browser/remote-user-storage-provider.js.map +0 -1
  49. package/lib/electron-common/remote-port-forwarding-provider.d.ts +0 -12
  50. package/lib/electron-common/remote-port-forwarding-provider.d.ts.map +0 -1
  51. package/lib/electron-common/remote-port-forwarding-provider.js +0 -21
  52. package/lib/electron-common/remote-port-forwarding-provider.js.map +0 -1
  53. package/lib/electron-common/remote-preferences.d.ts +0 -13
  54. package/lib/electron-common/remote-preferences.d.ts.map +0 -1
  55. package/lib/electron-common/remote-preferences.js +0 -54
  56. package/lib/electron-common/remote-preferences.js.map +0 -1
  57. package/lib/electron-common/remote-ssh-connection-provider.d.ts +0 -16
  58. package/lib/electron-common/remote-ssh-connection-provider.d.ts.map +0 -1
  59. package/lib/electron-common/remote-ssh-connection-provider.js +0 -21
  60. package/lib/electron-common/remote-ssh-connection-provider.js.map +0 -1
  61. package/lib/electron-common/remote-status-service.d.ts +0 -16
  62. package/lib/electron-common/remote-status-service.d.ts.map +0 -1
  63. package/lib/electron-common/remote-status-service.js +0 -21
  64. package/lib/electron-common/remote-status-service.js.map +0 -1
  65. package/lib/electron-node/backend-remote-service-impl.d.ts +0 -12
  66. package/lib/electron-node/backend-remote-service-impl.d.ts.map +0 -1
  67. package/lib/electron-node/backend-remote-service-impl.js +0 -46
  68. package/lib/electron-node/backend-remote-service-impl.js.map +0 -1
  69. package/lib/electron-node/remote-backend-module.d.ts +0 -5
  70. package/lib/electron-node/remote-backend-module.d.ts.map +0 -1
  71. package/lib/electron-node/remote-backend-module.js +0 -83
  72. package/lib/electron-node/remote-backend-module.js.map +0 -1
  73. package/lib/electron-node/remote-connection-service.d.ts +0 -15
  74. package/lib/electron-node/remote-connection-service.d.ts.map +0 -1
  75. package/lib/electron-node/remote-connection-service.js +0 -64
  76. package/lib/electron-node/remote-connection-service.js.map +0 -1
  77. package/lib/electron-node/remote-connection-socket-provider.d.ts +0 -9
  78. package/lib/electron-node/remote-connection-socket-provider.d.ts.map +0 -1
  79. package/lib/electron-node/remote-connection-socket-provider.js +0 -33
  80. package/lib/electron-node/remote-connection-socket-provider.js.map +0 -1
  81. package/lib/electron-node/remote-port-forwarding-provider.d.ts +0 -19
  82. package/lib/electron-node/remote-port-forwarding-provider.d.ts.map +0 -1
  83. package/lib/electron-node/remote-port-forwarding-provider.js +0 -59
  84. package/lib/electron-node/remote-port-forwarding-provider.js.map +0 -1
  85. package/lib/electron-node/remote-proxy-server-provider.d.ts +0 -6
  86. package/lib/electron-node/remote-proxy-server-provider.d.ts.map +0 -1
  87. package/lib/electron-node/remote-proxy-server-provider.js +0 -39
  88. package/lib/electron-node/remote-proxy-server-provider.js.map +0 -1
  89. package/lib/electron-node/remote-status-service.d.ts +0 -8
  90. package/lib/electron-node/remote-status-service.d.ts.map +0 -1
  91. package/lib/electron-node/remote-status-service.js +0 -53
  92. package/lib/electron-node/remote-status-service.js.map +0 -1
  93. package/lib/electron-node/remote-types.d.ts +0 -49
  94. package/lib/electron-node/remote-types.d.ts.map +0 -1
  95. package/lib/electron-node/remote-types.js +0 -18
  96. package/lib/electron-node/remote-types.js.map +0 -1
  97. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +0 -8
  98. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts.map +0 -1
  99. package/lib/electron-node/setup/app-native-dependency-contribution.js +0 -53
  100. package/lib/electron-node/setup/app-native-dependency-contribution.js.map +0 -1
  101. package/lib/electron-node/setup/main-copy-contribution.d.ts +0 -5
  102. package/lib/electron-node/setup/main-copy-contribution.d.ts.map +0 -1
  103. package/lib/electron-node/setup/main-copy-contribution.js +0 -33
  104. package/lib/electron-node/setup/main-copy-contribution.js.map +0 -1
  105. package/lib/electron-node/setup/remote-copy-contribution.d.ts +0 -13
  106. package/lib/electron-node/setup/remote-copy-contribution.d.ts.map +0 -1
  107. package/lib/electron-node/setup/remote-copy-contribution.js +0 -74
  108. package/lib/electron-node/setup/remote-copy-contribution.js.map +0 -1
  109. package/lib/electron-node/setup/remote-copy-service.d.ts +0 -21
  110. package/lib/electron-node/setup/remote-copy-service.d.ts.map +0 -1
  111. package/lib/electron-node/setup/remote-copy-service.js +0 -120
  112. package/lib/electron-node/setup/remote-copy-service.js.map +0 -1
  113. package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts +0 -36
  114. package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts.map +0 -1
  115. package/lib/electron-node/setup/remote-native-dependency-contribution.js +0 -35
  116. package/lib/electron-node/setup/remote-native-dependency-contribution.js.map +0 -1
  117. package/lib/electron-node/setup/remote-native-dependency-service.d.ts +0 -25
  118. package/lib/electron-node/setup/remote-native-dependency-service.d.ts.map +0 -1
  119. package/lib/electron-node/setup/remote-native-dependency-service.js +0 -116
  120. package/lib/electron-node/setup/remote-native-dependency-service.js.map +0 -1
  121. package/lib/electron-node/setup/remote-node-setup-service.d.ts +0 -23
  122. package/lib/electron-node/setup/remote-node-setup-service.d.ts.map +0 -1
  123. package/lib/electron-node/setup/remote-node-setup-service.js +0 -125
  124. package/lib/electron-node/setup/remote-node-setup-service.js.map +0 -1
  125. package/lib/electron-node/setup/remote-setup-script-service.d.ts +0 -41
  126. package/lib/electron-node/setup/remote-setup-script-service.d.ts.map +0 -1
  127. package/lib/electron-node/setup/remote-setup-script-service.js +0 -125
  128. package/lib/electron-node/setup/remote-setup-script-service.js.map +0 -1
  129. package/lib/electron-node/setup/remote-setup-service.d.ts +0 -36
  130. package/lib/electron-node/setup/remote-setup-service.d.ts.map +0 -1
  131. package/lib/electron-node/setup/remote-setup-service.js +0 -215
  132. package/lib/electron-node/setup/remote-setup-service.js.map +0 -1
  133. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +0 -60
  134. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +0 -1
  135. package/lib/electron-node/ssh/remote-ssh-connection-provider.js +0 -394
  136. package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +0 -1
  137. package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts +0 -13
  138. package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts.map +0 -1
  139. package/lib/electron-node/ssh/ssh-identity-file-collector.js +0 -127
  140. package/lib/electron-node/ssh/ssh-identity-file-collector.js.map +0 -1
  141. package/lib/package.spec.d.ts +0 -1
  142. package/lib/package.spec.d.ts.map +0 -1
  143. package/lib/package.spec.js +0 -26
  144. package/lib/package.spec.js.map +0 -1
@@ -1,120 +0,0 @@
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.RemoteCopyService = void 0;
19
- const tslib_1 = require("tslib");
20
- const archiver = require("archiver");
21
- const path = require("path");
22
- const fs = require("fs");
23
- const os = require("os");
24
- const application_package_1 = require("@theia/core/shared/@theia/application-package");
25
- const inversify_1 = require("@theia/core/shared/inversify");
26
- const remote_native_dependency_service_1 = require("./remote-native-dependency-service");
27
- const core_1 = require("@theia/core");
28
- const remote_copy_contribution_1 = require("./remote-copy-contribution");
29
- const remote_copy_contribution_2 = require("@theia/core/lib/node/remote/remote-copy-contribution");
30
- let RemoteCopyService = class RemoteCopyService {
31
- constructor() {
32
- this.initialized = false;
33
- }
34
- async copyToRemote(remote, remotePlatform, destination) {
35
- var _a;
36
- const zipName = path.basename(destination);
37
- const projectPath = this.applicationPackage.projectPath;
38
- const tempDir = await this.getTempDir();
39
- const zipPath = path.join(tempDir, zipName);
40
- const files = await this.getFiles(remotePlatform, tempDir);
41
- // We stream to a file here and then copy it because it is faster
42
- // Copying files via sftp is 4x times faster compared to readable streams
43
- const stream = fs.createWriteStream(zipPath);
44
- const archive = archiver('tar', {
45
- gzip: true
46
- });
47
- archive.pipe(stream);
48
- for (const file of files) {
49
- const filePath = path.isAbsolute(file.path)
50
- ? file.path
51
- : path.join(projectPath, file.path);
52
- archive.file(filePath, {
53
- name: file.target,
54
- mode: (_a = file.options) === null || _a === void 0 ? void 0 : _a.mode
55
- });
56
- }
57
- await archive.finalize();
58
- await remote.copy(zipPath, destination);
59
- await fs.promises.rm(tempDir, {
60
- recursive: true,
61
- force: true
62
- });
63
- }
64
- async getFiles(remotePlatform, tempDir) {
65
- const [localFiles, nativeDependencies] = await Promise.all([
66
- this.loadCopyContributions(),
67
- this.loadNativeDependencies(remotePlatform, tempDir)
68
- ]);
69
- return [...localFiles, ...nativeDependencies];
70
- }
71
- async loadCopyContributions() {
72
- if (this.initialized) {
73
- return this.copyRegistry.getFiles();
74
- }
75
- await Promise.all(this.copyContributions.getContributions()
76
- .map(copyContribution => copyContribution.copy(this.copyRegistry)));
77
- this.initialized = true;
78
- return this.copyRegistry.getFiles();
79
- }
80
- async loadNativeDependencies(remotePlatform, tempDir) {
81
- const dependencyFiles = await this.nativeDependencyService.downloadDependencies(remotePlatform, tempDir);
82
- return dependencyFiles.map(file => ({
83
- path: file.path,
84
- target: file.target,
85
- options: {
86
- mode: file.mode
87
- }
88
- }));
89
- }
90
- async getTempDir() {
91
- const dir = path.join(os.tmpdir(), 'theia-remote-');
92
- const tempDir = await fs.promises.mkdtemp(dir);
93
- return tempDir;
94
- }
95
- async getRemoteDownloadLocation() {
96
- return undefined;
97
- }
98
- };
99
- exports.RemoteCopyService = RemoteCopyService;
100
- tslib_1.__decorate([
101
- (0, inversify_1.inject)(application_package_1.ApplicationPackage),
102
- tslib_1.__metadata("design:type", application_package_1.ApplicationPackage)
103
- ], RemoteCopyService.prototype, "applicationPackage", void 0);
104
- tslib_1.__decorate([
105
- (0, inversify_1.inject)(remote_copy_contribution_1.RemoteCopyRegistryImpl),
106
- tslib_1.__metadata("design:type", remote_copy_contribution_1.RemoteCopyRegistryImpl)
107
- ], RemoteCopyService.prototype, "copyRegistry", void 0);
108
- tslib_1.__decorate([
109
- (0, inversify_1.inject)(remote_native_dependency_service_1.RemoteNativeDependencyService),
110
- tslib_1.__metadata("design:type", remote_native_dependency_service_1.RemoteNativeDependencyService)
111
- ], RemoteCopyService.prototype, "nativeDependencyService", void 0);
112
- tslib_1.__decorate([
113
- (0, inversify_1.inject)(core_1.ContributionProvider),
114
- (0, inversify_1.named)(remote_copy_contribution_2.RemoteCopyContribution),
115
- tslib_1.__metadata("design:type", Object)
116
- ], RemoteCopyService.prototype, "copyContributions", void 0);
117
- exports.RemoteCopyService = RemoteCopyService = tslib_1.__decorate([
118
- (0, inversify_1.injectable)()
119
- ], RemoteCopyService);
120
- //# sourceMappingURL=remote-copy-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-copy-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-copy-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,qCAAqC;AACrC,6BAA6B;AAC7B,yBAAyB;AACzB,yBAAyB;AACzB,uFAAmF;AACnF,4DAAyE;AAGzE,yFAAmF;AACnF,sCAAmD;AACnD,yEAAoE;AACpE,mGAA0G;AAGnG,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QAcO,gBAAW,GAAG,KAAK,CAAC;IAuElC,CAAC;IArEG,KAAK,CAAC,YAAY,CAAC,MAAwB,EAAE,cAA8B,EAAE,WAAmB;;QAC5F,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC;QACxD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QACxC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QAC3D,iEAAiE;QACjE,yEAAyE;QACzE,MAAM,MAAM,GAAG,EAA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EAA6B,CAAC;sCACM,gEAA6B;kEAAC;AAGvD;IADlB,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,iDAAsB,CAAC;;4DACuB;4BAZ1E,iBAAiB;IAD7B,IAAA,sBAAU,GAAE;GACA,iBAAiB,CAqF7B"}
@@ -1,36 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { RequestOptions } from '@theia/core/shared/@theia/request';
4
- import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
5
- export interface FileDependencyResult {
6
- path: string;
7
- mode?: number;
8
- }
9
- export type DependencyDownload = FileDependencyDownload | DirectoryDependencyDownload;
10
- export interface FileDependencyDownload {
11
- file: FileDependencyResult;
12
- buffer: Buffer;
13
- }
14
- export declare namespace FileDependencyResult {
15
- function is(item: unknown): item is FileDependencyDownload;
16
- }
17
- export interface DirectoryDependencyDownload {
18
- archive: 'tar' | 'zip' | 'tgz';
19
- buffer: Buffer;
20
- }
21
- export declare namespace DirectoryDependencyDownload {
22
- function is(item: unknown): item is DirectoryDependencyDownload;
23
- }
24
- export interface DownloadOptions {
25
- remotePlatform: RemotePlatform;
26
- theiaVersion: string;
27
- download: (requestInfo: string | RequestOptions) => Promise<Buffer>;
28
- }
29
- export declare const RemoteNativeDependencyContribution: unique symbol;
30
- /**
31
- * contribution used for downloading prebuild native dependency when connecting to a remote machine with a different system
32
- */
33
- export interface RemoteNativeDependencyContribution {
34
- download(options: DownloadOptions): Promise<DependencyDownload>;
35
- }
36
- //# sourceMappingURL=remote-native-dependency-contribution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-native-dependency-contribution.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-contribution.ts"],"names":[],"mappings":";;AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;AAEtF,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,yBAAiB,oBAAoB,CAAC;IAClC,SAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,sBAAsB,CAEhE;CACJ;AAED,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,yBAAiB,2BAA2B,CAAC;IACzC,SAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,2BAA2B,CAErE;CACJ;AAED,MAAM,WAAW,eAAe;IAC5B,cAAc,EAAE,cAAc,CAAA;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACtE;AAED,eAAO,MAAM,kCAAkC,eAA+C,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAC/C,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACnE"}
@@ -1,35 +0,0 @@
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.RemoteNativeDependencyContribution = exports.DirectoryDependencyDownload = exports.FileDependencyResult = void 0;
19
- const core_1 = require("@theia/core");
20
- var FileDependencyResult;
21
- (function (FileDependencyResult) {
22
- function is(item) {
23
- return (0, core_1.isObject)(item) && 'buffer' in item && 'file' in item;
24
- }
25
- FileDependencyResult.is = is;
26
- })(FileDependencyResult || (exports.FileDependencyResult = FileDependencyResult = {}));
27
- var DirectoryDependencyDownload;
28
- (function (DirectoryDependencyDownload) {
29
- function is(item) {
30
- return (0, core_1.isObject)(item) && 'buffer' in item && 'archive' in item;
31
- }
32
- DirectoryDependencyDownload.is = is;
33
- })(DirectoryDependencyDownload || (exports.DirectoryDependencyDownload = DirectoryDependencyDownload = {}));
34
- exports.RemoteNativeDependencyContribution = Symbol('RemoteNativeDependencyContribution');
35
- //# sourceMappingURL=remote-native-dependency-contribution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-native-dependency-contribution.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,sCAAuC;AAgBvC,IAAiB,oBAAoB,CAIpC;AAJD,WAAiB,oBAAoB;IACjC,SAAgB,EAAE,CAAC,IAAa;QAC5B,OAAO,IAAA,eAAQ,EAAC,IAAI,CAAC,IAAI,QAAQ,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,CAAC;IAChE,CAAC;IAFe,uBAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,oBAAoB,oCAApB,oBAAoB,QAIpC;AAOD,IAAiB,2BAA2B,CAI3C;AAJD,WAAiB,2BAA2B;IACxC,SAAgB,EAAE,CAAC,IAAa;QAC5B,OAAO,IAAA,eAAQ,EAAC,IAAI,CAAC,IAAI,QAAQ,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,CAAC;IACnE,CAAC;IAFe,8BAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,2BAA2B,2CAA3B,2BAA2B,QAI3C;AAQY,QAAA,kCAAkC,GAAG,MAAM,CAAC,oCAAoC,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { ContributionProvider } from '@theia/core';
4
- import { RequestService, RequestOptions } from '@theia/core/shared/@theia/request';
5
- import { DependencyDownload, RemoteNativeDependencyContribution } from './remote-native-dependency-contribution';
6
- import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
7
- export declare const DEFAULT_HTTP_OPTIONS: {
8
- method: string;
9
- headers: {
10
- Accept: string;
11
- };
12
- };
13
- export interface NativeDependencyFile {
14
- path: string;
15
- target: string;
16
- mode?: number;
17
- }
18
- export declare class RemoteNativeDependencyService {
19
- protected nativeDependencyContributions: ContributionProvider<RemoteNativeDependencyContribution>;
20
- protected requestService: RequestService;
21
- downloadDependencies(remotePlatform: RemotePlatform, directory: string): Promise<NativeDependencyFile[]>;
22
- protected downloadDependency(downloadURI: string | RequestOptions): Promise<Buffer>;
23
- protected storeDependency(dependency: DependencyDownload, directory: string): Promise<NativeDependencyFile[]>;
24
- }
25
- //# sourceMappingURL=remote-native-dependency-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-native-dependency-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-service.ts"],"names":[],"mappings":";;AAgBA,OAAO,EAAE,oBAAoB,EAAiB,MAAM,aAAa,CAAC;AAElE,OAAO,EAAkB,cAAc,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInG,OAAO,EAAE,kBAAkB,EAA+B,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC9I,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAMrF,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBACa,6BAA6B;IAGtC,SAAS,CAAC,6BAA6B,EAAE,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;IAGlG,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEnC,oBAAoB,CAAC,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;cAc9F,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;cAgBzE,eAAe,CAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAiCtH"}
@@ -1,116 +0,0 @@
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.RemoteNativeDependencyService = exports.DEFAULT_HTTP_OPTIONS = void 0;
19
- const tslib_1 = require("tslib");
20
- const core_1 = require("@theia/core");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const request_1 = require("@theia/core/shared/@theia/request");
23
- const decompress = require("decompress");
24
- const path = require("path");
25
- const fs = require("fs/promises");
26
- const remote_native_dependency_contribution_1 = require("./remote-native-dependency-contribution");
27
- const decompressTar = require('decompress-tar');
28
- const decompressTargz = require('decompress-targz');
29
- const decompressUnzip = require('decompress-unzip');
30
- exports.DEFAULT_HTTP_OPTIONS = {
31
- method: 'GET',
32
- headers: {
33
- Accept: 'application/octet-stream'
34
- },
35
- };
36
- let RemoteNativeDependencyService = class RemoteNativeDependencyService {
37
- async downloadDependencies(remotePlatform, directory) {
38
- const contributionResults = await Promise.all(this.nativeDependencyContributions.getContributions()
39
- .map(async (contribution) => {
40
- const result = await contribution.download({
41
- remotePlatform,
42
- theiaVersion: core_1.THEIA_VERSION,
43
- download: requestInfo => this.downloadDependency(requestInfo)
44
- });
45
- const dependency = await this.storeDependency(result, directory);
46
- return dependency;
47
- }));
48
- return contributionResults.flat();
49
- }
50
- async downloadDependency(downloadURI) {
51
- const options = typeof downloadURI === 'string'
52
- ? { url: downloadURI, ...exports.DEFAULT_HTTP_OPTIONS }
53
- : { ...exports.DEFAULT_HTTP_OPTIONS, ...downloadURI };
54
- const req = await this.requestService.request(options);
55
- if (request_1.RequestContext.isSuccess(req)) {
56
- if (typeof req.buffer === 'string') {
57
- return Buffer.from(req.buffer, 'utf8');
58
- }
59
- else {
60
- return Buffer.from(req.buffer);
61
- }
62
- }
63
- else {
64
- throw new Error('Server error while downloading native dependency from: ' + options.url);
65
- }
66
- }
67
- async storeDependency(dependency, directory) {
68
- if (remote_native_dependency_contribution_1.DirectoryDependencyDownload.is(dependency)) {
69
- const archiveBuffer = dependency.buffer;
70
- const plugins = [];
71
- if (dependency.archive === 'tar') {
72
- plugins.push(decompressTar());
73
- }
74
- else if (dependency.archive === 'tgz') {
75
- plugins.push(decompressTargz());
76
- }
77
- else if (dependency.archive === 'zip') {
78
- plugins.push(decompressUnzip());
79
- }
80
- const files = await decompress(archiveBuffer, directory, { plugins });
81
- const result = await Promise.all(files.map(async (file) => {
82
- const localPath = path.join(directory, file.path);
83
- return {
84
- path: localPath,
85
- target: file.path,
86
- mode: file.mode
87
- };
88
- }));
89
- return result;
90
- }
91
- else {
92
- const fileName = path.basename(dependency.file.path);
93
- const localPath = path.join(directory, fileName);
94
- await fs.writeFile(localPath, dependency.buffer);
95
- return [{
96
- path: localPath,
97
- target: dependency.file.path,
98
- mode: dependency.file.mode
99
- }];
100
- }
101
- }
102
- };
103
- exports.RemoteNativeDependencyService = RemoteNativeDependencyService;
104
- tslib_1.__decorate([
105
- (0, inversify_1.inject)(core_1.ContributionProvider),
106
- (0, inversify_1.named)(remote_native_dependency_contribution_1.RemoteNativeDependencyContribution),
107
- tslib_1.__metadata("design:type", Object)
108
- ], RemoteNativeDependencyService.prototype, "nativeDependencyContributions", void 0);
109
- tslib_1.__decorate([
110
- (0, inversify_1.inject)(request_1.RequestService),
111
- tslib_1.__metadata("design:type", Object)
112
- ], RemoteNativeDependencyService.prototype, "requestService", void 0);
113
- exports.RemoteNativeDependencyService = RemoteNativeDependencyService = tslib_1.__decorate([
114
- (0, inversify_1.injectable)()
115
- ], RemoteNativeDependencyService);
116
- //# sourceMappingURL=remote-native-dependency-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-native-dependency-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sCAAkE;AAClE,4DAAyE;AACzE,+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AAK,EAAC,IAAI,EAAC,EAAE;gBAC5E,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;gBAClD,OAAO;oBACH,IAAI,EAAE,SAAS;oBACf,MAAM,EAAE,IAAI,CAAC,IAAI;oBACjB,IAAI,EAAE,IAAI,CAAC,IAAI;iBAClB,CAAC;YACN,CAAC,CAAC,CAAC,CAAC;YACJ,OAAO,MAAM,CAAC;QAClB,CAAC;aAAM,CAAC;YACJ,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACrD,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YACjD,MAAM,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;YACjD,OAAO,CAAC;oBACJ,IAAI,EAAE,SAAS;oBACf,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI;oBAC5B,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI;iBAC7B,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CAEJ,CAAA;AAvEY,sEAA6B;AAG5B;IADT,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,0EAAkC,CAAC;;oFAC0B;AAGxF;IADT,IAAA,kBAAM,EAAC,wBAAc,CAAC;;qEACkB;wCANhC,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAuEzC"}
@@ -1,23 +0,0 @@
1
- import { RequestService } from '@theia/core/shared/@theia/request';
2
- import { RemoteSetupScriptService } from './remote-setup-script-service';
3
- import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
4
- /**
5
- * The current node version that Theia recommends.
6
- *
7
- * Native dependencies are compiled against this version.
8
- */
9
- export declare const REMOTE_NODE_VERSION = "22.20.0";
10
- export declare class RemoteNodeSetupService {
11
- protected readonly requestService: RequestService;
12
- protected readonly scriptService: RemoteSetupScriptService;
13
- getNodeDirectoryName(platform: RemotePlatform): string;
14
- protected getPlatformName(platform: RemotePlatform): string;
15
- protected validatePlatform(platform: RemotePlatform): void;
16
- protected throwPlatformError(platform: RemotePlatform, supportedArch: string): never;
17
- protected getNodeFileExtension(platform: RemotePlatform): string;
18
- getNodeFileName(platform: RemotePlatform): string;
19
- downloadNode(platform: RemotePlatform, downloadTemplate?: string): Promise<string>;
20
- generateDownloadScript(platform: RemotePlatform, targetPath: string, downloadTemplate?: string): string;
21
- protected getDownloadPath(platform: RemotePlatform, downloadTemplate?: string): string;
22
- }
23
- //# sourceMappingURL=remote-node-setup-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-node-setup-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-node-setup-service.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAGrF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C,qBACa,sBAAsB;IAG/B,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,wBAAwB,CAAC;IAE3D,oBAAoB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAItD,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAY3D,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAU1D,SAAS,CAAC,kBAAkB,CAAC,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,GAAG,KAAK;IAIpF,SAAS,CAAC,oBAAoB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAYhE,eAAe,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAI3C,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAexF,sBAAsB,CAAC,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM;IAUvG,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM;CASzF"}
@@ -1,125 +0,0 @@
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.RemoteNodeSetupService = exports.REMOTE_NODE_VERSION = void 0;
19
- const tslib_1 = require("tslib");
20
- const path = require("path");
21
- const fs = require("@theia/core/shared/fs-extra");
22
- const os = require("os");
23
- const inversify_1 = require("@theia/core/shared/inversify");
24
- const request_1 = require("@theia/core/shared/@theia/request");
25
- const remote_setup_script_service_1 = require("./remote-setup-script-service");
26
- const core_1 = require("@theia/core");
27
- /**
28
- * The current node version that Theia recommends.
29
- *
30
- * Native dependencies are compiled against this version.
31
- */
32
- exports.REMOTE_NODE_VERSION = '22.20.0';
33
- let RemoteNodeSetupService = class RemoteNodeSetupService {
34
- getNodeDirectoryName(platform) {
35
- return `node-v${exports.REMOTE_NODE_VERSION}-${this.getPlatformName(platform)}-${platform.arch}`;
36
- }
37
- getPlatformName(platform) {
38
- let platformId;
39
- if (platform.os === core_1.OS.Type.Windows) {
40
- platformId = 'win';
41
- }
42
- else if (platform.os === core_1.OS.Type.OSX) {
43
- platformId = 'darwin';
44
- }
45
- else {
46
- platformId = 'linux';
47
- }
48
- return platformId;
49
- }
50
- validatePlatform(platform) {
51
- if (platform.os === core_1.OS.Type.Windows && !platform.arch.match(/^x(64|86)$/)) {
52
- this.throwPlatformError(platform, 'x64 and x86');
53
- }
54
- else if (platform.os === core_1.OS.Type.Linux && !platform.arch.match(/^(x64|armv7l|arm64)$/)) {
55
- this.throwPlatformError(platform, 'x64, armv7l and arm64');
56
- }
57
- else if (platform.os === core_1.OS.Type.OSX && !platform.arch.match(/^(x64|arm64)$/)) {
58
- this.throwPlatformError(platform, 'x64 and arm64');
59
- }
60
- }
61
- throwPlatformError(platform, supportedArch) {
62
- throw new Error(`Invalid architecture for ${platform.os}: '${platform.arch}'. Only ${supportedArch} are supported.`);
63
- }
64
- getNodeFileExtension(platform) {
65
- let fileExtension;
66
- if (platform.os === core_1.OS.Type.Windows) {
67
- fileExtension = 'zip';
68
- }
69
- else if (platform.os === core_1.OS.Type.OSX) {
70
- fileExtension = 'tar.gz';
71
- }
72
- else {
73
- fileExtension = 'tar.xz';
74
- }
75
- return fileExtension;
76
- }
77
- getNodeFileName(platform) {
78
- return `${this.getNodeDirectoryName(platform)}.${this.getNodeFileExtension(platform)}`;
79
- }
80
- async downloadNode(platform, downloadTemplate) {
81
- this.validatePlatform(platform);
82
- const fileName = this.getNodeFileName(platform);
83
- const tmpdir = os.tmpdir();
84
- const localPath = path.join(tmpdir, fileName);
85
- if (!await fs.pathExists(localPath)) {
86
- const downloadPath = this.getDownloadPath(platform, downloadTemplate);
87
- const downloadResult = await this.requestService.request({
88
- url: downloadPath
89
- });
90
- await fs.writeFile(localPath, downloadResult.buffer);
91
- }
92
- return localPath;
93
- }
94
- generateDownloadScript(platform, targetPath, downloadTemplate) {
95
- this.validatePlatform(platform);
96
- const fileName = this.getNodeFileName(platform);
97
- const downloadPath = this.getDownloadPath(platform, downloadTemplate);
98
- const zipPath = this.scriptService.joinPath(platform, targetPath, fileName);
99
- const download = this.scriptService.downloadFile(platform, downloadPath, zipPath);
100
- const unzip = this.scriptService.unzip(platform, zipPath, targetPath);
101
- return this.scriptService.joinScript(platform, download, unzip);
102
- }
103
- getDownloadPath(platform, downloadTemplate) {
104
- const template = downloadTemplate || 'https://nodejs.org/dist/v{version}/node-v{version}-{os}-{arch}.{ext}';
105
- const downloadPath = template
106
- .replace(/{version}/g, exports.REMOTE_NODE_VERSION)
107
- .replace(/{os}/g, this.getPlatformName(platform))
108
- .replace(/{arch}/g, platform.arch)
109
- .replace(/{ext}/g, this.getNodeFileExtension(platform));
110
- return downloadPath;
111
- }
112
- };
113
- exports.RemoteNodeSetupService = RemoteNodeSetupService;
114
- tslib_1.__decorate([
115
- (0, inversify_1.inject)(request_1.RequestService),
116
- tslib_1.__metadata("design:type", Object)
117
- ], RemoteNodeSetupService.prototype, "requestService", void 0);
118
- tslib_1.__decorate([
119
- (0, inversify_1.inject)(remote_setup_script_service_1.RemoteSetupScriptService),
120
- tslib_1.__metadata("design:type", remote_setup_script_service_1.RemoteSetupScriptService)
121
- ], RemoteNodeSetupService.prototype, "scriptService", void 0);
122
- exports.RemoteNodeSetupService = RemoteNodeSetupService = tslib_1.__decorate([
123
- (0, inversify_1.injectable)()
124
- ], RemoteNodeSetupService);
125
- //# sourceMappingURL=remote-node-setup-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-node-setup-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-node-setup-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AA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,sEAAsE,CAAC;QAC5G,MAAM,YAAY,GAAG,QAAQ;aACxB,OAAO,CAAC,YAAY,EAAE,2BAAmB,CAAC;aAC1C,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;aAChD,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC;aACjC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC5D,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ,CAAA;AAxFY,wDAAsB;AAGZ;IADlB,IAAA,kBAAM,EAAC,wBAAc,CAAC;;8DAC2B;AAG/B;IADlB,IAAA,kBAAM,EAAC,sDAAwB,CAAC;sCACC,sDAAwB;6DAAC;iCANlD,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAwFlC"}
@@ -1,41 +0,0 @@
1
- import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
2
- export interface RemoteScriptStrategy {
3
- exec(): string;
4
- downloadFile(url: string, output: string): string;
5
- unzip(file: string, directory: string): string;
6
- mkdir(path: string): string;
7
- home(): string;
8
- joinPath(...segments: string[]): string;
9
- joinScript(...segments: string[]): string;
10
- }
11
- export declare class RemoteWindowsScriptStrategy implements RemoteScriptStrategy {
12
- home(): string;
13
- exec(): string;
14
- downloadFile(url: string, output: string): string;
15
- unzip(file: string, directory: string): string;
16
- mkdir(path: string): string;
17
- joinPath(...segments: string[]): string;
18
- joinScript(...segments: string[]): string;
19
- }
20
- export declare class RemotePosixScriptStrategy implements RemoteScriptStrategy {
21
- home(): string;
22
- exec(): string;
23
- downloadFile(url: string, output: string): string;
24
- unzip(file: string, directory: string): string;
25
- mkdir(path: string): string;
26
- joinPath(...segments: string[]): string;
27
- joinScript(...segments: string[]): string;
28
- }
29
- export declare class RemoteSetupScriptService {
30
- protected windowsStrategy: RemoteWindowsScriptStrategy;
31
- protected posixStrategy: RemotePosixScriptStrategy;
32
- protected getStrategy(platform: RemotePlatform): RemoteScriptStrategy;
33
- home(platform: RemotePlatform): string;
34
- exec(platform: RemotePlatform): string;
35
- downloadFile(platform: RemotePlatform, url: string, output: string): string;
36
- unzip(platform: RemotePlatform, file: string, directory: string): string;
37
- mkdir(platform: RemotePlatform, path: string): string;
38
- joinPath(platform: RemotePlatform, ...segments: string[]): string;
39
- joinScript(platform: RemotePlatform, ...segments: string[]): string;
40
- }
41
- //# sourceMappingURL=remote-setup-script-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remote-setup-script-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-setup-script-service.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACjC,IAAI,IAAI,MAAM,CAAC;IACf,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAClD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,IAAI,IAAI,MAAM,CAAC;IACf,QAAQ,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACxC,UAAU,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CAC7C;AAED,qBACa,2BAA4B,YAAW,oBAAoB;IAEpE,IAAI,IAAI,MAAM;IAId,IAAI,IAAI,MAAM;IAId,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAIjD,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAI9C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI3B,QAAQ,CAAC,GAAG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