@gitpod/gitpod-protocol 0.1.5-wth-test.80 → 0.1.5-wv-add-image-builds-to-dashboard.0
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/data/gitpod-schema.json +132 -5
- package/lib/accounting-protocol.d.ts +19 -11
- package/lib/accounting-protocol.d.ts.map +1 -1
- package/lib/accounting-protocol.js +35 -33
- package/lib/accounting-protocol.js.map +1 -1
- package/lib/admin-protocol.d.ts +19 -2
- package/lib/admin-protocol.d.ts.map +1 -1
- package/lib/admin-protocol.js +1 -1
- package/lib/admin-protocol.js.map +1 -1
- package/lib/analytics.d.ts +1 -1
- package/lib/analytics.d.ts.map +1 -1
- package/lib/analytics.js +1 -1
- package/lib/analytics.js.map +1 -1
- package/lib/attribution.d.ts +24 -0
- package/lib/attribution.d.ts.map +1 -0
- package/lib/attribution.js +54 -0
- package/lib/attribution.js.map +1 -0
- package/lib/auth.d.ts +1 -1
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +1 -1
- package/lib/billing-mode.d.ts +45 -0
- package/lib/billing-mode.d.ts.map +1 -0
- package/lib/billing-mode.js +44 -0
- package/lib/billing-mode.js.map +1 -0
- package/lib/blocked-repositories-protocol.d.ts +13 -0
- package/lib/blocked-repositories-protocol.d.ts.map +1 -0
- package/lib/blocked-repositories-protocol.js +8 -0
- package/lib/blocked-repositories-protocol.js.map +1 -0
- package/lib/context-url.d.ts +1 -2
- package/lib/context-url.d.ts.map +1 -1
- package/lib/context-url.js +5 -7
- package/lib/context-url.js.map +1 -1
- package/lib/context-url.spec.d.ts +1 -3
- package/lib/context-url.spec.d.ts.map +1 -1
- package/lib/context-url.spec.js +13 -26
- package/lib/context-url.spec.js.map +1 -1
- package/lib/encryption/container-module.d.ts +1 -1
- package/lib/encryption/container-module.d.ts.map +1 -1
- package/lib/encryption/container-module.js +2 -2
- package/lib/encryption/container-module.js.map +1 -1
- package/lib/encryption/encryption-engine.d.ts +1 -1
- package/lib/encryption/encryption-engine.d.ts.map +1 -1
- package/lib/encryption/encryption-engine.js +10 -10
- package/lib/encryption/encryption-engine.js.map +1 -1
- package/lib/encryption/encryption-engine.spec.d.ts +1 -1
- package/lib/encryption/encryption-engine.spec.d.ts.map +1 -1
- package/lib/encryption/encryption-engine.spec.js +3 -4
- package/lib/encryption/encryption-engine.spec.js.map +1 -1
- package/lib/encryption/encryption-service.d.ts +1 -1
- package/lib/encryption/encryption-service.d.ts.map +1 -1
- package/lib/encryption/encryption-service.js +2 -2
- package/lib/encryption/encryption-service.js.map +1 -1
- package/lib/encryption/key-provider.d.ts +1 -1
- package/lib/encryption/key-provider.d.ts.map +1 -1
- package/lib/encryption/key-provider.js +8 -10
- package/lib/encryption/key-provider.js.map +1 -1
- package/lib/env.d.ts +1 -6
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +2 -21
- package/lib/env.js.map +1 -1
- package/lib/experiments/always-default.d.ts +8 -0
- package/lib/experiments/always-default.d.ts.map +1 -0
- package/lib/experiments/always-default.js +20 -0
- package/lib/experiments/always-default.js.map +1 -0
- package/lib/experiments/configcat-server.d.ts +10 -0
- package/lib/experiments/configcat-server.d.ts.map +1 -0
- package/lib/experiments/configcat-server.js +37 -0
- package/lib/experiments/configcat-server.js.map +1 -0
- package/lib/experiments/configcat.d.ts +21 -0
- package/lib/experiments/configcat.d.ts.map +1 -0
- package/lib/experiments/configcat.js +51 -0
- package/lib/experiments/configcat.js.map +1 -0
- package/lib/experiments/types.d.ts +22 -0
- package/lib/experiments/types.d.ts.map +1 -0
- package/lib/experiments/types.js +10 -0
- package/lib/experiments/types.js.map +1 -0
- package/lib/gitpod-file-parser.d.ts +1 -1
- package/lib/gitpod-file-parser.d.ts.map +1 -1
- package/lib/gitpod-file-parser.js +7 -7
- package/lib/gitpod-file-parser.js.map +1 -1
- package/lib/gitpod-file-parser.spec.d.ts +1 -1
- package/lib/gitpod-file-parser.spec.js +43 -40
- package/lib/gitpod-file-parser.spec.js.map +1 -1
- package/lib/gitpod-service.d.ts +70 -52
- package/lib/gitpod-service.d.ts.map +1 -1
- package/lib/gitpod-service.js +53 -34
- package/lib/gitpod-service.js.map +1 -1
- package/lib/headless-workspace-log.d.ts +2 -1
- package/lib/headless-workspace-log.d.ts.map +1 -1
- package/lib/headless-workspace-log.js +3 -2
- package/lib/headless-workspace-log.js.map +1 -1
- package/lib/ide-frontend-service.d.ts +2 -2
- package/lib/ide-frontend-service.js +1 -1
- package/lib/ide-protocol.d.ts +29 -8
- package/lib/ide-protocol.d.ts.map +1 -1
- package/lib/ide-protocol.js +11 -1
- package/lib/ide-protocol.js.map +1 -1
- package/lib/index.d.ts +17 -17
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/installation-admin-protocol.d.ts +4 -1
- package/lib/installation-admin-protocol.d.ts.map +1 -1
- package/lib/installation-admin-protocol.js +4 -3
- package/lib/installation-admin-protocol.js.map +1 -1
- package/lib/license-protocol.d.ts +8 -1
- package/lib/license-protocol.d.ts.map +1 -1
- package/lib/license-protocol.js +1 -1
- package/lib/license-protocol.js.map +1 -1
- package/lib/messaging/browser/connection.d.ts +1 -1
- package/lib/messaging/browser/connection.d.ts.map +1 -1
- package/lib/messaging/browser/connection.js +19 -19
- package/lib/messaging/browser/connection.js.map +1 -1
- package/lib/messaging/browser/window-connection.d.ts +5 -5
- package/lib/messaging/browser/window-connection.d.ts.map +1 -1
- package/lib/messaging/browser/window-connection.js +10 -7
- package/lib/messaging/browser/window-connection.js.map +1 -1
- package/lib/messaging/client-call-metrics.d.ts +5 -19
- package/lib/messaging/client-call-metrics.d.ts.map +1 -1
- package/lib/messaging/client-call-metrics.js +35 -23
- package/lib/messaging/client-call-metrics.js.map +1 -1
- package/lib/messaging/error.d.ts +10 -2
- package/lib/messaging/error.d.ts.map +1 -1
- package/lib/messaging/error.js +20 -4
- package/lib/messaging/error.js.map +1 -1
- package/lib/messaging/handler.d.ts.map +1 -1
- package/lib/messaging/handler.js +1 -1
- package/lib/messaging/node/connection.js +8 -8
- package/lib/messaging/node/connection.js.map +1 -1
- package/lib/messaging/proxy-factory.d.ts +1 -1
- package/lib/messaging/proxy-factory.d.ts.map +1 -1
- package/lib/messaging/proxy-factory.js +7 -9
- package/lib/messaging/proxy-factory.js.map +1 -1
- package/lib/oss-allowlist.d.ts +1 -1
- package/lib/oss-allowlist.js +1 -1
- package/lib/payment-protocol.d.ts +1 -1
- package/lib/payment-protocol.d.ts.map +1 -1
- package/lib/payment-protocol.js +2 -2
- package/lib/payment-protocol.js.map +1 -1
- package/lib/permission.d.ts +3 -3
- package/lib/permission.d.ts.map +1 -1
- package/lib/permission.js +13 -24
- package/lib/permission.js.map +1 -1
- package/lib/plans.d.ts +5 -4
- package/lib/plans.d.ts.map +1 -1
- package/lib/plans.js +211 -172
- package/lib/plans.js.map +1 -1
- package/lib/protocol.d.ts +166 -61
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +282 -106
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.spec.d.ts +7 -0
- package/lib/protocol.spec.d.ts.map +1 -0
- package/lib/protocol.spec.js +127 -0
- package/lib/protocol.spec.js.map +1 -0
- package/lib/snapshot-url.d.ts +1 -1
- package/lib/snapshot-url.js +1 -1
- package/lib/snapshot-url.spec.d.ts +1 -1
- package/lib/snapshot-url.spec.js +1 -1
- package/lib/snapshot-url.spec.js.map +1 -1
- package/lib/team-subscription-protocol.d.ts +23 -4
- package/lib/team-subscription-protocol.d.ts.map +1 -1
- package/lib/team-subscription-protocol.js +21 -6
- package/lib/team-subscription-protocol.js.map +1 -1
- package/lib/teams-projects-protocol.d.ts +26 -6
- package/lib/teams-projects-protocol.d.ts.map +1 -1
- package/lib/teams-projects-protocol.js +2 -2
- package/lib/teams-projects-protocol.js.map +1 -1
- package/lib/typings/globals.d.ts +3 -3
- package/lib/typings/globals.d.ts.map +1 -1
- package/lib/typings/globals.js +1 -1
- package/lib/usage.d.ts +73 -0
- package/lib/usage.d.ts.map +1 -0
- package/lib/usage.js +20 -0
- package/lib/usage.js.map +1 -0
- package/lib/util/analytics.d.ts +1 -1
- package/lib/util/analytics.d.ts.map +1 -1
- package/lib/util/analytics.js +7 -7
- package/lib/util/analytics.js.map +1 -1
- package/lib/util/async-iterator.d.ts +1 -1
- package/lib/util/async-iterator.d.ts.map +1 -1
- package/lib/util/async-iterator.js +4 -4
- package/lib/util/async-iterator.js.map +1 -1
- package/lib/util/cancelable.d.ts +1 -1
- package/lib/util/cancelable.js +1 -1
- package/lib/util/cancelable.js.map +1 -1
- package/lib/util/date-time.d.ts +1 -1
- package/lib/util/date-time.js +7 -7
- package/lib/util/date-time.js.map +1 -1
- package/lib/util/debug-app.d.ts +25 -0
- package/lib/util/debug-app.d.ts.map +1 -0
- package/lib/util/debug-app.js +100 -0
- package/lib/util/debug-app.js.map +1 -0
- package/lib/util/deep-partial.d.ts +1 -1
- package/lib/util/deep-partial.js +1 -1
- package/lib/util/deferred.d.ts +1 -1
- package/lib/util/deferred.js +1 -1
- package/lib/util/deferred.js.map +1 -1
- package/lib/util/disposable.d.ts.map +1 -1
- package/lib/util/disposable.js +2 -2
- package/lib/util/disposable.js.map +1 -1
- package/lib/util/event.d.ts.map +1 -1
- package/lib/util/event.js +5 -3
- package/lib/util/event.js.map +1 -1
- package/lib/util/garbage-collected-cache.d.ts +1 -1
- package/lib/util/garbage-collected-cache.d.ts.map +1 -1
- package/lib/util/garbage-collected-cache.js +7 -2
- package/lib/util/garbage-collected-cache.js.map +1 -1
- package/lib/util/generate-workspace-id.d.ts +5 -0
- package/lib/util/generate-workspace-id.d.ts.map +1 -1
- package/lib/util/generate-workspace-id.js +446 -442
- package/lib/util/generate-workspace-id.js.map +1 -1
- package/lib/util/generate-workspace-id.spec.d.ts +1 -1
- package/lib/util/generate-workspace-id.spec.js +19 -8
- package/lib/util/generate-workspace-id.spec.js.map +1 -1
- package/lib/util/gitpod-cookie.d.ts +2 -2
- package/lib/util/gitpod-cookie.d.ts.map +1 -1
- package/lib/util/gitpod-cookie.js +1 -4
- package/lib/util/gitpod-cookie.js.map +1 -1
- package/lib/util/gitpod-host-url.d.ts +6 -1
- package/lib/util/gitpod-host-url.d.ts.map +1 -1
- package/lib/util/gitpod-host-url.js +60 -33
- package/lib/util/gitpod-host-url.js.map +1 -1
- package/lib/util/gitpod-host-url.spec.d.ts +1 -1
- package/lib/util/gitpod-host-url.spec.d.ts.map +1 -1
- package/lib/util/gitpod-host-url.spec.js +16 -6
- package/lib/util/gitpod-host-url.spec.js.map +1 -1
- package/lib/util/grpc.d.ts +21 -1
- package/lib/util/grpc.d.ts.map +1 -1
- package/lib/util/grpc.js +74 -2
- package/lib/util/grpc.js.map +1 -1
- package/lib/util/jaeger-client-types.d.ts +1 -1
- package/lib/util/jaeger-client-types.d.ts.map +1 -1
- package/lib/util/jaeger-client-types.js +1 -1
- package/lib/util/logging.d.ts +2 -2
- package/lib/util/logging.d.ts.map +1 -1
- package/lib/util/logging.js +32 -26
- package/lib/util/logging.js.map +1 -1
- package/lib/util/logging.spec.d.ts +7 -0
- package/lib/util/logging.spec.d.ts.map +1 -0
- package/lib/util/logging.spec.js +52 -0
- package/lib/util/logging.spec.js.map +1 -0
- package/lib/util/make-link.d.ts +1 -1
- package/lib/util/make-link.js +6 -6
- package/lib/util/make-link.js.map +1 -1
- package/lib/util/nice-grpc.d.ts +9 -0
- package/lib/util/nice-grpc.d.ts.map +1 -0
- package/lib/util/nice-grpc.js +121 -0
- package/lib/util/nice-grpc.js.map +1 -0
- package/lib/util/parse-workspace-id.d.ts +1 -1
- package/lib/util/parse-workspace-id.d.ts.map +1 -1
- package/lib/util/parse-workspace-id.js +2 -3
- package/lib/util/parse-workspace-id.js.map +1 -1
- package/lib/util/parse-workspace-id.spec.d.ts +1 -1
- package/lib/util/parse-workspace-id.spec.d.ts.map +1 -1
- package/lib/util/parse-workspace-id.spec.js +1 -1
- package/lib/util/parse-workspace-id.spec.js.map +1 -1
- package/lib/util/queue.d.ts +1 -1
- package/lib/util/queue.js +1 -1
- package/lib/util/queue.spec.d.ts +1 -1
- package/lib/util/queue.spec.js +10 -7
- package/lib/util/queue.spec.js.map +1 -1
- package/lib/util/repeat.d.ts +1 -1
- package/lib/util/repeat.js +1 -1
- package/lib/util/semaphore.d.ts +1 -1
- package/lib/util/semaphore.d.ts.map +1 -1
- package/lib/util/semaphore.js +1 -1
- package/lib/util/semaphore.js.map +1 -1
- package/lib/util/skip-if.d.ts +1 -1
- package/lib/util/skip-if.d.ts.map +1 -1
- package/lib/util/skip-if.js +1 -1
- package/lib/util/skip-if.js.map +1 -1
- package/lib/util/timeutil.d.ts +3 -1
- package/lib/util/timeutil.d.ts.map +1 -1
- package/lib/util/timeutil.js +16 -4
- package/lib/util/timeutil.js.map +1 -1
- package/lib/util/timeutil.spec.d.ts +3 -1
- package/lib/util/timeutil.spec.d.ts.map +1 -1
- package/lib/util/timeutil.spec.js +35 -1
- package/lib/util/timeutil.spec.js.map +1 -1
- package/lib/util/tracing.d.ts +7 -7
- package/lib/util/tracing.d.ts.map +1 -1
- package/lib/util/tracing.js +15 -17
- package/lib/util/tracing.js.map +1 -1
- package/lib/util/tracing.spec.d.ts +1 -1
- package/lib/util/tracing.spec.js +4 -4
- package/lib/util/tracing.spec.js.map +1 -1
- package/lib/util/workspace-port-authentication.d.ts +8 -8
- package/lib/util/workspace-port-authentication.d.ts.map +1 -1
- package/lib/util/workspace-port-authentication.js +9 -12
- package/lib/util/workspace-port-authentication.js.map +1 -1
- package/lib/webhook-event.d.ts +44 -0
- package/lib/webhook-event.d.ts.map +1 -0
- package/lib/webhook-event.js +8 -0
- package/lib/webhook-event.js.map +1 -0
- package/lib/workspace-class.d.ts +14 -0
- package/lib/workspace-class.d.ts.map +1 -0
- package/lib/workspace-class.js +8 -0
- package/lib/workspace-class.js.map +1 -0
- package/lib/workspace-cluster.d.ts +13 -14
- package/lib/workspace-cluster.d.ts.map +1 -1
- package/lib/workspace-cluster.js +3 -5
- package/lib/workspace-cluster.js.map +1 -1
- package/lib/workspace-instance.d.ts +22 -4
- package/lib/workspace-instance.d.ts.map +1 -1
- package/lib/workspace-instance.js +1 -1
- package/lib/wsready.d.ts +8 -2
- package/lib/wsready.d.ts.map +1 -1
- package/lib/wsready.js +3 -3
- package/package.json +14 -6
- package/pkg-yarn.lock +10 -5
- package/provenance-bundle.jsonl +1 -1
- package/src/accounting-protocol.ts +67 -52
- package/src/admin-protocol.ts +48 -22
- package/src/analytics.ts +22 -22
- package/src/attribution.ts +63 -0
- package/src/auth.ts +3 -3
- package/src/billing-mode.ts +84 -0
- package/src/blocked-repositories-protocol.ts +13 -0
- package/src/context-url.spec.ts +18 -22
- package/src/context-url.ts +79 -79
- package/src/encryption/container-module.ts +3 -4
- package/src/encryption/encryption-engine.spec.ts +10 -9
- package/src/encryption/encryption-engine.ts +21 -17
- package/src/encryption/encryption-service.ts +5 -6
- package/src/encryption/key-provider.ts +17 -20
- package/src/env.ts +2 -25
- package/src/experiments/always-default.ts +24 -0
- package/src/experiments/configcat-server.ts +42 -0
- package/src/experiments/configcat.ts +56 -0
- package/src/experiments/types.ts +34 -0
- package/src/gitpod-file-parser.spec.ts +56 -62
- package/src/gitpod-file-parser.ts +17 -18
- package/src/gitpod-service.ts +216 -140
- package/src/headless-workspace-log.ts +7 -5
- package/src/ide-frontend-service.ts +3 -3
- package/src/ide-protocol.ts +38 -10
- package/src/index.ts +17 -17
- package/src/installation-admin-protocol.ts +12 -9
- package/src/license-protocol.ts +13 -7
- package/src/messaging/browser/connection.ts +45 -47
- package/src/messaging/browser/window-connection.ts +40 -30
- package/src/messaging/client-call-metrics.ts +79 -82
- package/src/messaging/error.ts +30 -8
- package/src/messaging/handler.ts +6 -6
- package/src/messaging/node/connection.ts +8 -8
- package/src/messaging/proxy-factory.ts +23 -30
- package/src/oss-allowlist.ts +4 -4
- package/src/payment-protocol.ts +3 -3
- package/src/permission.ts +21 -32
- package/src/plans.ts +241 -190
- package/src/protocol.spec.ts +97 -0
- package/src/protocol.ts +524 -265
- package/src/snapshot-url.spec.ts +10 -8
- package/src/snapshot-url.ts +1 -1
- package/src/team-subscription-protocol.ts +60 -23
- package/src/teams-projects-protocol.ts +36 -12
- package/src/typings/globals.ts +5 -5
- package/src/usage.ts +85 -0
- package/src/util/analytics.ts +47 -43
- package/src/util/async-iterator.ts +5 -6
- package/src/util/cancelable.ts +4 -4
- package/src/util/date-time.ts +9 -9
- package/src/util/debug-app.ts +81 -0
- package/src/util/deep-partial.ts +1 -1
- package/src/util/deferred.ts +7 -7
- package/src/util/disposable.ts +3 -6
- package/src/util/event.ts +9 -11
- package/src/util/garbage-collected-cache.ts +9 -7
- package/src/util/generate-workspace-id.spec.ts +27 -17
- package/src/util/generate-workspace-id.ts +461 -455
- package/src/util/gitpod-cookie.ts +9 -10
- package/src/util/gitpod-host-url.spec.ts +41 -14
- package/src/util/gitpod-host-url.ts +69 -37
- package/src/util/grpc.ts +94 -2
- package/src/util/jaeger-client-types.ts +3 -3
- package/src/util/logging.spec.ts +23 -0
- package/src/util/logging.ts +61 -43
- package/src/util/make-link.ts +7 -8
- package/src/util/nice-grpc.ts +96 -0
- package/src/util/parse-workspace-id.spec.ts +18 -9
- package/src/util/parse-workspace-id.ts +6 -7
- package/src/util/queue.spec.ts +28 -26
- package/src/util/queue.ts +1 -1
- package/src/util/repeat.ts +2 -2
- package/src/util/semaphore.ts +5 -7
- package/src/util/skip-if.ts +10 -7
- package/src/util/timeutil.spec.ts +41 -15
- package/src/util/timeutil.ts +28 -12
- package/src/util/tracing.spec.ts +29 -24
- package/src/util/tracing.ts +55 -52
- package/src/util/workspace-port-authentication.ts +11 -14
- package/src/webhook-event.ts +55 -0
- package/src/workspace-class.ts +14 -0
- package/src/workspace-cluster.ts +25 -19
- package/src/workspace-instance.ts +67 -25
- package/src/wsready.ts +11 -4
- package/data/builtin-theia-plugins.json +0 -372
- package/lib/email-protocol.d.ts +0 -49
- package/lib/email-protocol.d.ts.map +0 -1
- package/lib/email-protocol.js +0 -28
- package/lib/email-protocol.js.map +0 -1
- package/lib/theia-plugins.d.ts +0 -11
- package/lib/theia-plugins.d.ts.map +0 -1
- package/lib/theia-plugins.js +0 -8
- package/lib/theia-plugins.js.map +0 -1
- package/src/email-protocol.ts +0 -66
- package/src/theia-plugins.ts +0 -11
package/lib/gitpod-service.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
-
* See License
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
7
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
8
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -14,13 +14,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.createGitpodService = exports.GitpodServiceImpl = exports.WorkspaceInstanceUpdateListener = exports.GitpodCompositeClient = exports.GitpodServerProxy = exports.GitpodServerPath = exports.createServerMock = exports.createServiceMock = exports.WorkspaceTimeoutValues = exports.GitpodServer = void 0;
|
|
17
|
+
exports.createGitpodService = exports.GitpodServiceImpl = exports.WorkspaceInstanceUpdateListener = exports.GitpodCompositeClient = exports.GitpodServerProxy = exports.GitpodServerPath = exports.createServerMock = exports.createServiceMock = exports.WorkspaceTimeoutValues = exports.WORKSPACE_TIMEOUT_EXTENDED_ALT = exports.WORKSPACE_TIMEOUT_EXTENDED = exports.WORKSPACE_TIMEOUT_DEFAULT_LONG = exports.WORKSPACE_TIMEOUT_DEFAULT_SHORT = exports.GitpodServer = void 0;
|
|
18
18
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
19
19
|
const gitpod_host_url_1 = require("./util/gitpod-host-url");
|
|
20
20
|
const connection_1 = require("./messaging/browser/connection");
|
|
21
21
|
const event_1 = require("./util/event");
|
|
22
|
-
exports.GitpodServer = Symbol(
|
|
23
|
-
exports.
|
|
22
|
+
exports.GitpodServer = Symbol("GitpodServer");
|
|
23
|
+
exports.WORKSPACE_TIMEOUT_DEFAULT_SHORT = "short";
|
|
24
|
+
exports.WORKSPACE_TIMEOUT_DEFAULT_LONG = "long";
|
|
25
|
+
exports.WORKSPACE_TIMEOUT_EXTENDED = "extended";
|
|
26
|
+
exports.WORKSPACE_TIMEOUT_EXTENDED_ALT = "180m"; // for backwards compatibility since the IDE uses this
|
|
27
|
+
exports.WorkspaceTimeoutValues = [
|
|
28
|
+
exports.WORKSPACE_TIMEOUT_DEFAULT_SHORT,
|
|
29
|
+
exports.WORKSPACE_TIMEOUT_DEFAULT_LONG,
|
|
30
|
+
exports.WORKSPACE_TIMEOUT_EXTENDED,
|
|
31
|
+
exports.WORKSPACE_TIMEOUT_EXTENDED_ALT,
|
|
32
|
+
];
|
|
24
33
|
const createServiceMock = function (methods) {
|
|
25
34
|
return new GitpodServiceImpl((0, exports.createServerMock)(methods));
|
|
26
35
|
};
|
|
@@ -33,15 +42,15 @@ const createServerMock = function (methods) {
|
|
|
33
42
|
get: (target, property) => {
|
|
34
43
|
const result = target[property];
|
|
35
44
|
if (!result) {
|
|
36
|
-
throw new Error(`Method ${property} not implemented`);
|
|
45
|
+
throw new Error(`Method ${String(property)} not implemented`);
|
|
37
46
|
}
|
|
38
47
|
return result;
|
|
39
|
-
}
|
|
48
|
+
},
|
|
40
49
|
});
|
|
41
50
|
};
|
|
42
51
|
exports.createServerMock = createServerMock;
|
|
43
|
-
exports.GitpodServerPath =
|
|
44
|
-
exports.GitpodServerProxy = Symbol(
|
|
52
|
+
exports.GitpodServerPath = "/gitpod";
|
|
53
|
+
exports.GitpodServerProxy = Symbol("GitpodServerProxy");
|
|
45
54
|
class GitpodCompositeClient {
|
|
46
55
|
constructor() {
|
|
47
56
|
this.clients = [];
|
|
@@ -54,7 +63,7 @@ class GitpodCompositeClient {
|
|
|
54
63
|
if (index > -1) {
|
|
55
64
|
this.clients.splice(index, 1);
|
|
56
65
|
}
|
|
57
|
-
}
|
|
66
|
+
},
|
|
58
67
|
};
|
|
59
68
|
}
|
|
60
69
|
onInstanceUpdate(instance) {
|
|
@@ -129,19 +138,32 @@ class GitpodCompositeClient {
|
|
|
129
138
|
}
|
|
130
139
|
}
|
|
131
140
|
}
|
|
141
|
+
onNotificationUpdated() {
|
|
142
|
+
for (const client of this.clients) {
|
|
143
|
+
if (client.onNotificationUpdated) {
|
|
144
|
+
try {
|
|
145
|
+
client.onNotificationUpdated();
|
|
146
|
+
}
|
|
147
|
+
catch (error) {
|
|
148
|
+
console.error(error);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
132
153
|
}
|
|
133
154
|
exports.GitpodCompositeClient = GitpodCompositeClient;
|
|
134
|
-
const hasWindow =
|
|
155
|
+
const hasWindow = typeof window !== "undefined";
|
|
135
156
|
const phasesOrder = {
|
|
136
157
|
unknown: 0,
|
|
137
158
|
preparing: 1,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
159
|
+
building: 2,
|
|
160
|
+
pending: 3,
|
|
161
|
+
creating: 4,
|
|
162
|
+
initializing: 5,
|
|
163
|
+
running: 6,
|
|
164
|
+
interrupted: 7,
|
|
165
|
+
stopping: 8,
|
|
166
|
+
stopped: 9,
|
|
145
167
|
};
|
|
146
168
|
class WorkspaceInstanceUpdateListener {
|
|
147
169
|
constructor(service, _info) {
|
|
@@ -149,30 +171,30 @@ class WorkspaceInstanceUpdateListener {
|
|
|
149
171
|
this._info = _info;
|
|
150
172
|
this.onDidChangeEmitter = new event_1.Emitter();
|
|
151
173
|
this.onDidChange = this.onDidChangeEmitter.event;
|
|
152
|
-
this.source =
|
|
174
|
+
this.source = "sync";
|
|
153
175
|
this.syncQueue = Promise.resolve();
|
|
154
176
|
service.registerClient({
|
|
155
|
-
onInstanceUpdate: instance => {
|
|
177
|
+
onInstanceUpdate: (instance) => {
|
|
156
178
|
if (this.isOutOfOrder(instance)) {
|
|
157
179
|
return;
|
|
158
180
|
}
|
|
159
181
|
this.cancelSync();
|
|
160
182
|
this._info.latestInstance = instance;
|
|
161
|
-
this.source =
|
|
183
|
+
this.source = "update";
|
|
162
184
|
this.onDidChangeEmitter.fire(undefined);
|
|
163
185
|
},
|
|
164
186
|
notifyDidOpenConnection: () => {
|
|
165
187
|
this.sync();
|
|
166
|
-
}
|
|
188
|
+
},
|
|
167
189
|
});
|
|
168
190
|
if (hasWindow) {
|
|
169
191
|
// learn about page lifecycle here: https://developers.google.com/web/updates/2018/07/page-lifecycle-api
|
|
170
|
-
window.document.addEventListener(
|
|
171
|
-
if (window.document.visibilityState ===
|
|
192
|
+
window.document.addEventListener("visibilitychange", () => __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
if (window.document.visibilityState === "visible") {
|
|
172
194
|
this.sync();
|
|
173
195
|
}
|
|
174
196
|
}));
|
|
175
|
-
window.addEventListener(
|
|
197
|
+
window.addEventListener("pageshow", (e) => {
|
|
176
198
|
if (e.persisted) {
|
|
177
199
|
this.sync();
|
|
178
200
|
}
|
|
@@ -200,11 +222,11 @@ class WorkspaceInstanceUpdateListener {
|
|
|
200
222
|
return;
|
|
201
223
|
}
|
|
202
224
|
this._info = info;
|
|
203
|
-
this.source =
|
|
225
|
+
this.source = "sync";
|
|
204
226
|
this.onDidChangeEmitter.fire(undefined);
|
|
205
227
|
}
|
|
206
228
|
catch (e) {
|
|
207
|
-
console.error(
|
|
229
|
+
console.error("failed to sync workspace instance:", e);
|
|
208
230
|
}
|
|
209
231
|
}));
|
|
210
232
|
}
|
|
@@ -223,7 +245,7 @@ class WorkspaceInstanceUpdateListener {
|
|
|
223
245
|
if (instance.workspaceId !== this._info.workspace.id) {
|
|
224
246
|
return true;
|
|
225
247
|
}
|
|
226
|
-
if (this.source ===
|
|
248
|
+
if (this.source === "update") {
|
|
227
249
|
return false;
|
|
228
250
|
}
|
|
229
251
|
if (instance.id !== ((_a = this.info.latestInstance) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
@@ -267,24 +289,21 @@ class GitpodServiceImpl {
|
|
|
267
289
|
exports.GitpodServiceImpl = GitpodServiceImpl;
|
|
268
290
|
function createGitpodService(serverUrl) {
|
|
269
291
|
const toWsUrl = (serverUrl) => {
|
|
270
|
-
return new gitpod_host_url_1.GitpodHostUrl(serverUrl)
|
|
271
|
-
.asWebsocket()
|
|
272
|
-
.withApi({ pathname: exports.GitpodServerPath })
|
|
273
|
-
.toString();
|
|
292
|
+
return new gitpod_host_url_1.GitpodHostUrl(serverUrl).asWebsocket().withApi({ pathname: exports.GitpodServerPath }).toString();
|
|
274
293
|
};
|
|
275
294
|
let url;
|
|
276
295
|
if (typeof serverUrl === "string") {
|
|
277
296
|
url = toWsUrl(serverUrl);
|
|
278
297
|
}
|
|
279
298
|
else {
|
|
280
|
-
url = serverUrl.then(url => toWsUrl(url));
|
|
299
|
+
url = serverUrl.then((url) => toWsUrl(url));
|
|
281
300
|
}
|
|
282
301
|
const connectionProvider = new connection_1.WebSocketConnectionProvider();
|
|
283
302
|
let onReconnect = () => { };
|
|
284
303
|
const gitpodServer = connectionProvider.createProxy(url, undefined, {
|
|
285
|
-
onListening: socket => {
|
|
304
|
+
onListening: (socket) => {
|
|
286
305
|
onReconnect = () => socket.reconnect();
|
|
287
|
-
}
|
|
306
|
+
},
|
|
288
307
|
});
|
|
289
308
|
return new GitpodServiceImpl(gitpodServer, { onReconnect });
|
|
290
309
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitpod-service.js","sourceRoot":"","sources":["../src/gitpod-service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"gitpod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AI,wCAA2B,EAAE,CAAC;IAC7D,IAAI,WAAW,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;IAC3B,MAAM,YAAY,GAAG,kBAAkB,CAAC,WAAW,CAAI,GAAG,EAAE,SAAS,EAAE;QACnE,WAAW,EAAE,CAAC,MAAM,EAAE,EAAE;YACpB,WAAW,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAC3C,CAAC;KACJ,CAAC,CAAC;IACH,OAAO,IAAI,iBAAiB,CAAO,YAAY,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC;AArBD,kDAqBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
3
3
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
-
* See License
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
5
|
*/
|
|
6
6
|
export declare enum HeadlessWorkspaceEventType {
|
|
7
7
|
LogOutput = "log-output",
|
|
@@ -9,6 +9,7 @@ export declare enum HeadlessWorkspaceEventType {
|
|
|
9
9
|
FinishedButFailed = "finish-fail",
|
|
10
10
|
AbortedTimedOut = "aborted-timeout",
|
|
11
11
|
Aborted = "aborted",
|
|
12
|
+
Failed = "failed",
|
|
12
13
|
Started = "started"
|
|
13
14
|
}
|
|
14
15
|
export declare namespace HeadlessWorkspaceEventType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-workspace-log.d.ts","sourceRoot":"","sources":["../src/headless-workspace-log.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"headless-workspace-log.d.ts","sourceRoot":"","sources":["../src/headless-workspace-log.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oBAAY,0BAA0B;IAClC,SAAS,eAAe;IACxB,oBAAoB,mBAAmB;IACvC,iBAAiB,gBAAgB;IACjC,eAAe,oBAAoB;IACnC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AACD,yBAAiB,0BAA0B,CAAC;IACxC,SAAgB,SAAS,CAAC,CAAC,EAAE,0BAA0B,WAEtD;IACD,SAAgB,SAAS,CAAC,CAAC,EAAE,0BAA0B,WAItD;CACJ;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,0BAA0B,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAE5B,OAAO,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC3C;AAED,wDAAwD;AACxD,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AACxE,eAAO,MAAM,qCAAqC,QAAuC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
-
* See License
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.HEADLESS_LOG_STREAM_STATUS_CODE_REGEX = exports.HEADLESS_LOG_STREAM_STATUS_CODE = exports.HeadlessWorkspaceEventType = void 0;
|
|
@@ -13,6 +13,7 @@ var HeadlessWorkspaceEventType;
|
|
|
13
13
|
HeadlessWorkspaceEventType["FinishedButFailed"] = "finish-fail";
|
|
14
14
|
HeadlessWorkspaceEventType["AbortedTimedOut"] = "aborted-timeout";
|
|
15
15
|
HeadlessWorkspaceEventType["Aborted"] = "aborted";
|
|
16
|
+
HeadlessWorkspaceEventType["Failed"] = "failed";
|
|
16
17
|
HeadlessWorkspaceEventType["Started"] = "started";
|
|
17
18
|
})(HeadlessWorkspaceEventType = exports.HeadlessWorkspaceEventType || (exports.HeadlessWorkspaceEventType = {}));
|
|
18
19
|
(function (HeadlessWorkspaceEventType) {
|
|
@@ -21,7 +22,7 @@ var HeadlessWorkspaceEventType;
|
|
|
21
22
|
}
|
|
22
23
|
HeadlessWorkspaceEventType.isRunning = isRunning;
|
|
23
24
|
function didFinish(t) {
|
|
24
|
-
return t === HeadlessWorkspaceEventType.FinishedButFailed || t === HeadlessWorkspaceEventType.FinishedSuccessfully;
|
|
25
|
+
return (t === HeadlessWorkspaceEventType.FinishedButFailed || t === HeadlessWorkspaceEventType.FinishedSuccessfully);
|
|
25
26
|
}
|
|
26
27
|
HeadlessWorkspaceEventType.didFinish = didFinish;
|
|
27
28
|
})(HeadlessWorkspaceEventType = exports.HeadlessWorkspaceEventType || (exports.HeadlessWorkspaceEventType = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-workspace-log.js","sourceRoot":"","sources":["../src/headless-workspace-log.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;
|
|
1
|
+
{"version":3,"file":"headless-workspace-log.js","sourceRoot":"","sources":["../src/headless-workspace-log.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,IAAY,0BAQX;AARD,WAAY,0BAA0B;IAClC,sDAAwB,CAAA;IACxB,qEAAuC,CAAA;IACvC,+DAAiC,CAAA;IACjC,iEAAmC,CAAA;IACnC,iDAAmB,CAAA;IACnB,+CAAiB,CAAA;IACjB,iDAAmB,CAAA;AACvB,CAAC,EARW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAQrC;AACD,WAAiB,0BAA0B;IACvC,SAAgB,SAAS,CAAC,CAA6B;QACnD,OAAO,CAAC,KAAK,0BAA0B,CAAC,SAAS,CAAC;IACtD,CAAC;IAFe,oCAAS,YAExB,CAAA;IACD,SAAgB,SAAS,CAAC,CAA6B;QACnD,OAAO,CACH,CAAC,KAAK,0BAA0B,CAAC,iBAAiB,IAAI,CAAC,KAAK,0BAA0B,CAAC,oBAAoB,CAC9G,CAAC;IACN,CAAC;IAJe,oCAAS,YAIxB,CAAA;AACL,CAAC,EATgB,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAS1C;AAaD,wDAAwD;AAC3C,QAAA,+BAA+B,GAAG,wBAAwB,CAAC;AAC3D,QAAA,qCAAqC,GAAG,oCAAoC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
3
3
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
-
* See License
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
5
|
*/
|
|
6
6
|
import { Event } from "./util/event";
|
|
7
7
|
import { Disposable } from "./util/disposable";
|
|
8
|
-
export declare type IDEFrontendState =
|
|
8
|
+
export declare type IDEFrontendState = "init" | "ready" | "terminated";
|
|
9
9
|
export interface IDEFrontendService {
|
|
10
10
|
readonly state: IDEFrontendState;
|
|
11
11
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
-
* See License
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
//# sourceMappingURL=ide-frontend-service.js.map
|
package/lib/ide-protocol.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
3
3
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
-
* See License
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* `IDEServer` provides a list of available IDEs.
|
|
@@ -34,6 +34,11 @@ export interface IDEOptions {
|
|
|
34
34
|
[id: string]: IDEClient;
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
+
export declare namespace IDEOptions {
|
|
38
|
+
function asArray(options: IDEOptions): (IDEOption & {
|
|
39
|
+
id: string;
|
|
40
|
+
})[];
|
|
41
|
+
}
|
|
37
42
|
export interface IDEClient {
|
|
38
43
|
/**
|
|
39
44
|
* The default desktop IDE when the user has not specified one.
|
|
@@ -60,11 +65,11 @@ export interface IDEOption {
|
|
|
60
65
|
/**
|
|
61
66
|
* The type of the IDE, currently 'browser' or 'desktop'.
|
|
62
67
|
*/
|
|
63
|
-
type:
|
|
68
|
+
type: "browser" | "desktop";
|
|
64
69
|
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
* The logo for the IDE. That could be a key in (see
|
|
71
|
+
* components/dashboard/src/images/ideLogos.ts) or a URL.
|
|
72
|
+
*/
|
|
68
73
|
logo: string;
|
|
69
74
|
/**
|
|
70
75
|
* Text of an optional tooltip (plain text only).
|
|
@@ -76,13 +81,13 @@ export interface IDEOption {
|
|
|
76
81
|
*/
|
|
77
82
|
label?: string;
|
|
78
83
|
/**
|
|
79
|
-
* Notes to the IDE option that are
|
|
84
|
+
* Notes to the IDE option that are rendered in the preferences when a user
|
|
80
85
|
* chooses this IDE.
|
|
81
86
|
*/
|
|
82
87
|
notes?: string[];
|
|
83
88
|
/**
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
* If `true` this IDE option is not visible in the IDE preferences.
|
|
90
|
+
*/
|
|
86
91
|
hidden?: boolean;
|
|
87
92
|
/**
|
|
88
93
|
* The image ref to the IDE image.
|
|
@@ -101,5 +106,21 @@ export interface IDEOption {
|
|
|
101
106
|
* we resolve the tag regularly to the most recent image version.
|
|
102
107
|
*/
|
|
103
108
|
resolveImageDigest?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* The plugin image ref for the IDE image, this image ref always resolve to digest.
|
|
111
|
+
*/
|
|
112
|
+
pluginImage?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The latest plugin image ref for the latest IDE image, this image ref always resolve to digest.
|
|
115
|
+
*/
|
|
116
|
+
pluginLatestImage?: string;
|
|
117
|
+
/**
|
|
118
|
+
* ImageVersion the semantic version of the IDE image.
|
|
119
|
+
*/
|
|
120
|
+
imageVersion?: string;
|
|
121
|
+
/**
|
|
122
|
+
* LatestImageVersion the semantic version of the latest IDE image.
|
|
123
|
+
*/
|
|
124
|
+
latestImageVersion?: string;
|
|
104
125
|
}
|
|
105
126
|
//# sourceMappingURL=ide-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ide-protocol.d.ts","sourceRoot":"","sources":["../src/ide-protocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"ide-protocol.d.ts","sourceRoot":"","sources":["../src/ide-protocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH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;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
package/lib/ide-protocol.js
CHANGED
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
-
* See License
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.IDEOptions = void 0;
|
|
9
|
+
var IDEOptions;
|
|
10
|
+
(function (IDEOptions) {
|
|
11
|
+
function asArray(options) {
|
|
12
|
+
return Object.keys(options.options)
|
|
13
|
+
.map((id) => (Object.assign(Object.assign({}, options.options[id]), { id })))
|
|
14
|
+
.sort((a, b) => (a.orderKey || "").localeCompare(b.orderKey || ""));
|
|
15
|
+
}
|
|
16
|
+
IDEOptions.asArray = asArray;
|
|
17
|
+
})(IDEOptions = exports.IDEOptions || (exports.IDEOptions = {}));
|
|
8
18
|
//# sourceMappingURL=ide-protocol.js.map
|
package/lib/ide-protocol.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ide-protocol.js","sourceRoot":"","sources":["../src/ide-protocol.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
1
|
+
{"version":3,"file":"ide-protocol.js","sourceRoot":"","sources":["../src/ide-protocol.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAkCH,IAAiB,UAAU,CAM1B;AAND,WAAiB,UAAU;IACvB,SAAgB,OAAO,CAAC,OAAmB;QACvC,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;aAC9B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,iCAAM,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,KAAE,EAAE,IAAG,CAAC;aAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;IAJe,kBAAO,UAItB,CAAA;AACL,CAAC,EANgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAM1B"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
3
3
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
-
* See License
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
5
|
*/
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
6
|
+
export * from "./protocol";
|
|
7
|
+
export * from "./gitpod-service";
|
|
8
|
+
export * from "./util/disposable";
|
|
9
|
+
export * from "./util/event";
|
|
10
|
+
export * from "./util/queue";
|
|
11
|
+
export * from "./license-protocol";
|
|
12
|
+
export * from "./workspace-instance";
|
|
13
|
+
export * from "./permission";
|
|
14
|
+
export * from "./admin-protocol";
|
|
15
|
+
export * from "./headless-workspace-log";
|
|
16
|
+
export * from "./context-url";
|
|
17
|
+
export * from "./teams-projects-protocol";
|
|
18
|
+
export * from "./snapshot-url";
|
|
19
|
+
export * from "./oss-allowlist";
|
|
20
|
+
export * from "./installation-admin-protocol";
|
|
21
|
+
export * from "./webhook-event";
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
-
* See License
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
7
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
8
|
if (k2 === undefined) k2 = k;
|
|
@@ -24,11 +24,11 @@ __exportStar(require("./license-protocol"), exports);
|
|
|
24
24
|
__exportStar(require("./workspace-instance"), exports);
|
|
25
25
|
__exportStar(require("./permission"), exports);
|
|
26
26
|
__exportStar(require("./admin-protocol"), exports);
|
|
27
|
-
__exportStar(require("./email-protocol"), exports);
|
|
28
27
|
__exportStar(require("./headless-workspace-log"), exports);
|
|
29
28
|
__exportStar(require("./context-url"), exports);
|
|
30
29
|
__exportStar(require("./teams-projects-protocol"), exports);
|
|
31
30
|
__exportStar(require("./snapshot-url"), exports);
|
|
32
31
|
__exportStar(require("./oss-allowlist"), exports);
|
|
33
32
|
__exportStar(require("./installation-admin-protocol"), exports);
|
|
33
|
+
__exportStar(require("./webhook-event"), exports);
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,mDAAiC;AACjC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,+CAA6B;AAC7B,mDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,mDAAiC;AACjC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,+CAA6B;AAC7B,mDAAiC;AACjC,2DAAyC;AACzC,gDAA8B;AAC9B,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,gEAA8C;AAC9C,kDAAgC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
|
3
3
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
-
* See License
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
5
|
*/
|
|
6
6
|
declare const InstallationAdminSettingsPrototype: {
|
|
7
7
|
sendTelemetry: boolean;
|
|
8
|
+
sendCustomerID: boolean;
|
|
8
9
|
};
|
|
9
10
|
export declare type InstallationAdminSettings = typeof InstallationAdminSettingsPrototype;
|
|
10
11
|
export declare namespace InstallationAdminSettings {
|
|
@@ -19,6 +20,8 @@ export interface TelemetryData {
|
|
|
19
20
|
totalUsers: number;
|
|
20
21
|
totalWorkspaces: number;
|
|
21
22
|
totalInstances: number;
|
|
23
|
+
licenseType: string;
|
|
24
|
+
customerID?: string;
|
|
22
25
|
}
|
|
23
26
|
export declare namespace InstallationAdmin {
|
|
24
27
|
function createDefault(): InstallationAdmin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation-admin-protocol.d.ts","sourceRoot":"","sources":["../src/installation-admin-protocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,QAAA,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"installation-admin-protocol.d.ts","sourceRoot":"","sources":["../src/installation-admin-protocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,QAAA,MAAM,kCAAkC;;;CAGvC,CAAC;AAEF,oBAAY,yBAAyB,GAAG,OAAO,kCAAkC,CAAC;AAElF,yBAAiB,yBAAyB,CAAC;IACvC,SAAgB,MAAM,IAAI,CAAC,MAAM,yBAAyB,CAAC,EAAE,CAE5D;CACJ;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,yBAAyB,CAAC;CACvC;AAED,MAAM,WAAW,aAAa;IAC1B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,yBAAiB,iBAAiB,CAAC;IAC/B,SAAgB,aAAa,IAAI,iBAAiB,CAOjD;CACJ"}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
-
* See License
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.InstallationAdmin = exports.InstallationAdminSettings = void 0;
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
10
10
|
const InstallationAdminSettingsPrototype = {
|
|
11
|
-
sendTelemetry: true
|
|
11
|
+
sendTelemetry: true,
|
|
12
|
+
sendCustomerID: true,
|
|
12
13
|
};
|
|
13
14
|
var InstallationAdminSettings;
|
|
14
15
|
(function (InstallationAdminSettings) {
|
|
@@ -22,7 +23,7 @@ var InstallationAdmin;
|
|
|
22
23
|
function createDefault() {
|
|
23
24
|
return {
|
|
24
25
|
id: (0, uuid_1.v4)(),
|
|
25
|
-
settings: Object.assign({}, InstallationAdminSettingsPrototype)
|
|
26
|
+
settings: Object.assign({}, InstallationAdminSettingsPrototype),
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
InstallationAdmin.createDefault = createDefault;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation-admin-protocol.js","sourceRoot":"","sources":["../src/installation-admin-protocol.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,+BAAoC;AAEpC,MAAM,kCAAkC,GAAG;IACvC,aAAa,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"installation-admin-protocol.js","sourceRoot":"","sources":["../src/installation-admin-protocol.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,+BAAoC;AAEpC,MAAM,kCAAkC,GAAG;IACvC,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;CACvB,CAAC;AAIF,IAAiB,yBAAyB,CAIzC;AAJD,WAAiB,yBAAyB;IACtC,SAAgB,MAAM;QAClB,OAAO,MAAM,CAAC,IAAI,CAAC,kCAAkC,CAAwC,CAAC;IAClG,CAAC;IAFe,gCAAM,SAErB,CAAA;AACL,CAAC,EAJgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAIzC;AAgBD,IAAiB,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IAC9B,SAAgB,aAAa;QACzB,OAAO;YACH,EAAE,EAAE,IAAA,SAAM,GAAE;YACZ,QAAQ,oBACD,kCAAkC,CACxC;SACJ,CAAC;IACN,CAAC;IAPe,+BAAa,gBAO5B,CAAA;AACL,CAAC,EATgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QASjC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
3
3
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
-
* See License
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
5
|
*/
|
|
6
6
|
export interface LicenseValidationResult {
|
|
7
7
|
valid: boolean;
|
|
@@ -12,9 +12,15 @@ export declare type LicenseIssue = "seats-exhausted";
|
|
|
12
12
|
export interface LicenseInfo {
|
|
13
13
|
key: string;
|
|
14
14
|
seats: number;
|
|
15
|
+
userCount?: number;
|
|
15
16
|
valid: boolean;
|
|
16
17
|
validUntil: string;
|
|
17
18
|
plan?: string;
|
|
19
|
+
features?: string[];
|
|
20
|
+
enabledFeatures?: string[];
|
|
21
|
+
type?: string;
|
|
22
|
+
errorMsg?: string;
|
|
23
|
+
fallbackAllowed: boolean;
|
|
18
24
|
}
|
|
19
25
|
export interface GetLicenseInfoResult {
|
|
20
26
|
isAdmin: boolean;
|
|
@@ -26,6 +32,7 @@ export declare enum LicenseFeature {
|
|
|
26
32
|
export interface LicenseService {
|
|
27
33
|
validateLicense(): Promise<LicenseValidationResult>;
|
|
28
34
|
getLicenseInfo(): Promise<GetLicenseInfoResult>;
|
|
35
|
+
adminGetLicense(): Promise<LicenseInfo>;
|
|
29
36
|
licenseIncludesFeature(feature: LicenseFeature): Promise<boolean>;
|
|
30
37
|
}
|
|
31
38
|
//# sourceMappingURL=license-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license-protocol.d.ts","sourceRoot":"","sources":["../src/license-protocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"license-protocol.d.ts","sourceRoot":"","sources":["../src/license-protocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,oBAAY,YAAY,GAAG,iBAAiB,CAAC;AAE7C,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC5B;AAED,oBAAY,cAAc;IACtB,cAAc,oBAAoB;CAErC;AAED,MAAM,WAAW,cAAc;IAC3B,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACpD,cAAc,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAChD,eAAe,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACxC,sBAAsB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACrE"}
|
package/lib/license-protocol.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
-
* See License
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.LicenseFeature = void 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license-protocol.js","sourceRoot":"","sources":["../src/license-protocol.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;
|
|
1
|
+
{"version":3,"file":"license-protocol.js","sourceRoot":"","sources":["../src/license-protocol.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA6BH,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,oDAAkC,CAAA;IAClC,gBAAgB;AACpB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from "vscode-ws-jsonrpc";
|
|
2
2
|
import { JsonRpcProxy } from "../proxy-factory";
|
|
3
3
|
import { ConnectionEventHandler, ConnectionHandler } from "../handler";
|
|
4
|
-
import ReconnectingWebSocket, { Event } from
|
|
4
|
+
import ReconnectingWebSocket, { Event } from "reconnecting-websocket";
|
|
5
5
|
export interface WebSocketOptions {
|
|
6
6
|
onerror?: (event: Event) => void;
|
|
7
7
|
onListening?: (socket: ReconnectingWebSocket) => void;
|