@gitpod/gitpod-protocol 0.1.5-wth-test.41 → 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 +150 -8
- 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 +29 -1
- 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 +5 -6
- 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 +19 -7
- package/lib/context-url.d.ts.map +1 -1
- package/lib/context-url.js +60 -9
- package/lib/context-url.js.map +1 -1
- package/lib/context-url.spec.d.ts +3 -3
- package/lib/context-url.spec.d.ts.map +1 -1
- package/lib/context-url.spec.js +20 -12
- 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 +93 -48
- package/lib/gitpod-service.d.ts.map +1 -1
- package/lib/gitpod-service.js +57 -36
- 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 +126 -0
- package/lib/ide-protocol.d.ts.map +1 -0
- package/lib/ide-protocol.js +18 -0
- package/lib/ide-protocol.js.map +1 -0
- package/lib/index.d.ts +17 -15
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/installation-admin-protocol.d.ts +30 -0
- package/lib/installation-admin-protocol.d.ts.map +1 -0
- package/lib/installation-admin-protocol.js +31 -0
- package/lib/installation-admin-protocol.js.map +1 -0
- 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 +11 -2
- package/lib/messaging/error.d.ts.map +1 -1
- package/lib/messaging/error.js +22 -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.d.ts +1 -17
- package/lib/messaging/node/connection.d.ts.map +1 -1
- package/lib/messaging/node/connection.js +23 -59
- 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 +14 -0
- package/lib/oss-allowlist.d.ts.map +1 -0
- package/lib/oss-allowlist.js +8 -0
- package/lib/oss-allowlist.js.map +1 -0
- 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 +10 -4
- package/lib/permission.d.ts.map +1 -1
- package/lib/permission.js +35 -26
- 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 +192 -99
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +293 -105
- 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 +35 -5
- package/lib/teams-projects-protocol.d.ts.map +1 -1
- package/lib/teams-projects-protocol.js +9 -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 +13 -4
- 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 +2 -1
- package/lib/util/garbage-collected-cache.d.ts.map +1 -1
- package/lib/util/garbage-collected-cache.js +12 -3
- package/lib/util/garbage-collected-cache.js.map +1 -1
- package/lib/util/generate-workspace-id.d.ts +6 -1
- package/lib/util/generate-workspace-id.d.ts.map +1 -1
- package/lib/util/generate-workspace-id.js +461 -440
- 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 +37 -2
- 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 -2
- package/lib/util/gitpod-host-url.d.ts.map +1 -1
- package/lib/util/gitpod-host-url.js +61 -37
- 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 +68 -0
- package/lib/util/jaeger-client-types.d.ts.map +1 -0
- package/lib/{theia-plugins.js → util/jaeger-client-types.js} +2 -2
- package/lib/util/jaeger-client-types.js.map +1 -0
- 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 +3 -4
- 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 +15 -0
- package/lib/util/repeat.d.ts.map +1 -0
- package/lib/util/repeat.js +55 -0
- package/lib/util/repeat.js.map +1 -0
- 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 +53 -7
- package/lib/util/tracing.d.ts.map +1 -1
- package/lib/util/tracing.js +157 -20
- package/lib/util/tracing.js.map +1 -1
- package/lib/util/tracing.spec.d.ts +7 -0
- package/lib/util/tracing.spec.d.ts.map +1 -0
- package/lib/util/tracing.spec.js +121 -0
- package/lib/util/tracing.spec.js.map +1 -0
- 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 +19 -18
- package/lib/workspace-cluster.d.ts.map +1 -1
- package/lib/workspace-cluster.js +17 -2
- package/lib/workspace-cluster.js.map +1 -1
- package/lib/workspace-instance.d.ts +41 -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 +18 -8
- package/pkg-yarn.lock +11 -6
- package/provenance-bundle.jsonl +2 -0
- package/src/accounting-protocol.ts +67 -52
- package/src/admin-protocol.ts +59 -19
- package/src/analytics.ts +27 -29
- 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 +25 -15
- package/src/context-url.ts +93 -37
- 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 +241 -134
- package/src/headless-workspace-log.ts +7 -5
- package/src/ide-frontend-service.ts +3 -3
- package/src/ide-protocol.ts +147 -0
- package/src/index.ts +17 -15
- package/src/installation-admin-protocol.ts +45 -0
- 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 +33 -8
- package/src/messaging/handler.ts +6 -6
- package/src/messaging/node/connection.ts +23 -70
- package/src/messaging/proxy-factory.ts +23 -30
- package/src/oss-allowlist.ts +15 -0
- package/src/payment-protocol.ts +3 -3
- package/src/permission.ts +41 -33
- package/src/plans.ts +241 -190
- package/src/protocol.spec.ts +97 -0
- package/src/protocol.ts +557 -297
- 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 +51 -12
- package/src/typings/globals.ts +5 -5
- package/src/usage.ts +85 -0
- package/src/util/analytics.ts +47 -25
- 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 +15 -7
- package/src/util/generate-workspace-id.spec.ts +35 -8
- package/src/util/generate-workspace-id.ts +465 -441
- 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 +70 -42
- package/src/util/grpc.ts +94 -2
- package/src/util/jaeger-client-types.ts +102 -0
- 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 +7 -8
- package/src/util/queue.spec.ts +28 -26
- package/src/util/queue.ts +1 -1
- package/src/util/repeat.ts +45 -0
- 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 +88 -0
- package/src/util/tracing.ts +201 -32
- 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 +35 -21
- package/src/workspace-instance.ts +83 -21
- 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/messaging/connection-error-handler.d.ts +0 -27
- package/lib/messaging/connection-error-handler.d.ts.map +0 -1
- package/lib/messaging/connection-error-handler.js +0 -34
- package/lib/messaging/connection-error-handler.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.map +0 -1
- package/lib/util/repeater.d.ts +0 -22
- package/lib/util/repeater.d.ts.map +0 -1
- package/lib/util/repeater.js +0 -65
- package/lib/util/repeater.js.map +0 -1
- package/lib/util/safe-promise.d.ts +0 -11
- package/lib/util/safe-promise.d.ts.map +0 -1
- package/lib/util/safe-promise.js +0 -31
- package/lib/util/safe-promise.js.map +0 -1
- package/src/email-protocol.ts +0 -66
- package/src/messaging/connection-error-handler.ts +0 -62
- package/src/theia-plugins.ts +0 -11
- package/src/util/jaeger-client.d.ts +0 -105
- package/src/util/repeater.ts +0 -49
- package/src/util/safe-promise.ts +0 -26
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,26 +42,28 @@ 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 = [];
|
|
48
57
|
}
|
|
49
58
|
registerClient(client) {
|
|
50
59
|
this.clients.push(client);
|
|
51
|
-
const index = this.clients.length;
|
|
52
60
|
return {
|
|
53
61
|
dispose: () => {
|
|
54
|
-
this.clients.
|
|
55
|
-
|
|
62
|
+
const index = this.clients.indexOf(client);
|
|
63
|
+
if (index > -1) {
|
|
64
|
+
this.clients.splice(index, 1);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
56
67
|
};
|
|
57
68
|
}
|
|
58
69
|
onInstanceUpdate(instance) {
|
|
@@ -127,19 +138,32 @@ class GitpodCompositeClient {
|
|
|
127
138
|
}
|
|
128
139
|
}
|
|
129
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
|
+
}
|
|
130
153
|
}
|
|
131
154
|
exports.GitpodCompositeClient = GitpodCompositeClient;
|
|
132
|
-
const hasWindow =
|
|
155
|
+
const hasWindow = typeof window !== "undefined";
|
|
133
156
|
const phasesOrder = {
|
|
134
157
|
unknown: 0,
|
|
135
158
|
preparing: 1,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
159
|
+
building: 2,
|
|
160
|
+
pending: 3,
|
|
161
|
+
creating: 4,
|
|
162
|
+
initializing: 5,
|
|
163
|
+
running: 6,
|
|
164
|
+
interrupted: 7,
|
|
165
|
+
stopping: 8,
|
|
166
|
+
stopped: 9,
|
|
143
167
|
};
|
|
144
168
|
class WorkspaceInstanceUpdateListener {
|
|
145
169
|
constructor(service, _info) {
|
|
@@ -147,30 +171,30 @@ class WorkspaceInstanceUpdateListener {
|
|
|
147
171
|
this._info = _info;
|
|
148
172
|
this.onDidChangeEmitter = new event_1.Emitter();
|
|
149
173
|
this.onDidChange = this.onDidChangeEmitter.event;
|
|
150
|
-
this.source =
|
|
174
|
+
this.source = "sync";
|
|
151
175
|
this.syncQueue = Promise.resolve();
|
|
152
176
|
service.registerClient({
|
|
153
|
-
onInstanceUpdate: instance => {
|
|
177
|
+
onInstanceUpdate: (instance) => {
|
|
154
178
|
if (this.isOutOfOrder(instance)) {
|
|
155
179
|
return;
|
|
156
180
|
}
|
|
157
181
|
this.cancelSync();
|
|
158
182
|
this._info.latestInstance = instance;
|
|
159
|
-
this.source =
|
|
183
|
+
this.source = "update";
|
|
160
184
|
this.onDidChangeEmitter.fire(undefined);
|
|
161
185
|
},
|
|
162
186
|
notifyDidOpenConnection: () => {
|
|
163
187
|
this.sync();
|
|
164
|
-
}
|
|
188
|
+
},
|
|
165
189
|
});
|
|
166
190
|
if (hasWindow) {
|
|
167
191
|
// learn about page lifecycle here: https://developers.google.com/web/updates/2018/07/page-lifecycle-api
|
|
168
|
-
window.document.addEventListener(
|
|
169
|
-
if (window.document.visibilityState ===
|
|
192
|
+
window.document.addEventListener("visibilitychange", () => __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
if (window.document.visibilityState === "visible") {
|
|
170
194
|
this.sync();
|
|
171
195
|
}
|
|
172
196
|
}));
|
|
173
|
-
window.addEventListener(
|
|
197
|
+
window.addEventListener("pageshow", (e) => {
|
|
174
198
|
if (e.persisted) {
|
|
175
199
|
this.sync();
|
|
176
200
|
}
|
|
@@ -198,11 +222,11 @@ class WorkspaceInstanceUpdateListener {
|
|
|
198
222
|
return;
|
|
199
223
|
}
|
|
200
224
|
this._info = info;
|
|
201
|
-
this.source =
|
|
225
|
+
this.source = "sync";
|
|
202
226
|
this.onDidChangeEmitter.fire(undefined);
|
|
203
227
|
}
|
|
204
228
|
catch (e) {
|
|
205
|
-
console.error(
|
|
229
|
+
console.error("failed to sync workspace instance:", e);
|
|
206
230
|
}
|
|
207
231
|
}));
|
|
208
232
|
}
|
|
@@ -221,7 +245,7 @@ class WorkspaceInstanceUpdateListener {
|
|
|
221
245
|
if (instance.workspaceId !== this._info.workspace.id) {
|
|
222
246
|
return true;
|
|
223
247
|
}
|
|
224
|
-
if (this.source ===
|
|
248
|
+
if (this.source === "update") {
|
|
225
249
|
return false;
|
|
226
250
|
}
|
|
227
251
|
if (instance.id !== ((_a = this.info.latestInstance) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
@@ -265,24 +289,21 @@ class GitpodServiceImpl {
|
|
|
265
289
|
exports.GitpodServiceImpl = GitpodServiceImpl;
|
|
266
290
|
function createGitpodService(serverUrl) {
|
|
267
291
|
const toWsUrl = (serverUrl) => {
|
|
268
|
-
return new gitpod_host_url_1.GitpodHostUrl(serverUrl)
|
|
269
|
-
.asWebsocket()
|
|
270
|
-
.withApi({ pathname: exports.GitpodServerPath })
|
|
271
|
-
.toString();
|
|
292
|
+
return new gitpod_host_url_1.GitpodHostUrl(serverUrl).asWebsocket().withApi({ pathname: exports.GitpodServerPath }).toString();
|
|
272
293
|
};
|
|
273
294
|
let url;
|
|
274
295
|
if (typeof serverUrl === "string") {
|
|
275
296
|
url = toWsUrl(serverUrl);
|
|
276
297
|
}
|
|
277
298
|
else {
|
|
278
|
-
url = serverUrl.then(url => toWsUrl(url));
|
|
299
|
+
url = serverUrl.then((url) => toWsUrl(url));
|
|
279
300
|
}
|
|
280
301
|
const connectionProvider = new connection_1.WebSocketConnectionProvider();
|
|
281
302
|
let onReconnect = () => { };
|
|
282
303
|
const gitpodServer = connectionProvider.createProxy(url, undefined, {
|
|
283
|
-
onListening: socket => {
|
|
304
|
+
onListening: (socket) => {
|
|
284
305
|
onReconnect = () => socket.reconnect();
|
|
285
|
-
}
|
|
306
|
+
},
|
|
286
307
|
});
|
|
287
308
|
return new GitpodServiceImpl(gitpodServer, { onReconnect });
|
|
288
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-service.js","sourceRoot":"","sources":["../src/gitpod-service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAsCH,mDAAqE;AAIrE,4DAAuD;AACvD,+DAA6E;AAG7E,wCAAuC;AA+B1B,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAiRtC,QAAA,+BAA+B,GAAG,OAAO,CAAC;AAC1C,QAAA,8BAA8B,GAAG,MAAM,CAAC;AACxC,QAAA,0BAA0B,GAAG,UAAU,CAAC;AACxC,QAAA,8BAA8B,GAAG,MAAM,CAAC,CAAC,sDAAsD;AAC/F,QAAA,sBAAsB,GAAG;IAClC,uCAA+B;IAC/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@@
|
|
|
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
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
3
|
+
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* `IDEServer` provides a list of available IDEs.
|
|
8
|
+
*/
|
|
9
|
+
export interface IDEServer {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the IDE preferences.
|
|
12
|
+
*/
|
|
13
|
+
getIDEOptions(): Promise<IDEOptions>;
|
|
14
|
+
}
|
|
15
|
+
export interface IDEOptions {
|
|
16
|
+
/**
|
|
17
|
+
* A list of available IDEs.
|
|
18
|
+
*/
|
|
19
|
+
options: {
|
|
20
|
+
[key: string]: IDEOption;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The default (browser) IDE when the user has not specified one.
|
|
24
|
+
*/
|
|
25
|
+
defaultIde: string;
|
|
26
|
+
/**
|
|
27
|
+
* The default desktop IDE when the user has not specified one.
|
|
28
|
+
*/
|
|
29
|
+
defaultDesktopIde: string;
|
|
30
|
+
/**
|
|
31
|
+
* Client specific IDE options.
|
|
32
|
+
*/
|
|
33
|
+
clients?: {
|
|
34
|
+
[id: string]: IDEClient;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export declare namespace IDEOptions {
|
|
38
|
+
function asArray(options: IDEOptions): (IDEOption & {
|
|
39
|
+
id: string;
|
|
40
|
+
})[];
|
|
41
|
+
}
|
|
42
|
+
export interface IDEClient {
|
|
43
|
+
/**
|
|
44
|
+
* The default desktop IDE when the user has not specified one.
|
|
45
|
+
*/
|
|
46
|
+
defaultDesktopIDE?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Desktop IDEs supported by the client.
|
|
49
|
+
*/
|
|
50
|
+
desktopIDEs?: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Steps to install the client on user machine.
|
|
53
|
+
*/
|
|
54
|
+
installationSteps?: string[];
|
|
55
|
+
}
|
|
56
|
+
export interface IDEOption {
|
|
57
|
+
/**
|
|
58
|
+
* To ensure a stable order one can set an `orderKey`.
|
|
59
|
+
*/
|
|
60
|
+
orderKey?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Human readable title text of the IDE (plain text only).
|
|
63
|
+
*/
|
|
64
|
+
title: string;
|
|
65
|
+
/**
|
|
66
|
+
* The type of the IDE, currently 'browser' or 'desktop'.
|
|
67
|
+
*/
|
|
68
|
+
type: "browser" | "desktop";
|
|
69
|
+
/**
|
|
70
|
+
* The logo for the IDE. That could be a key in (see
|
|
71
|
+
* components/dashboard/src/images/ideLogos.ts) or a URL.
|
|
72
|
+
*/
|
|
73
|
+
logo: string;
|
|
74
|
+
/**
|
|
75
|
+
* Text of an optional tooltip (plain text only).
|
|
76
|
+
*/
|
|
77
|
+
tooltip?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Text of an optional label next to the IDE option like “Insiders” (plain
|
|
80
|
+
* text only).
|
|
81
|
+
*/
|
|
82
|
+
label?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Notes to the IDE option that are rendered in the preferences when a user
|
|
85
|
+
* chooses this IDE.
|
|
86
|
+
*/
|
|
87
|
+
notes?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* If `true` this IDE option is not visible in the IDE preferences.
|
|
90
|
+
*/
|
|
91
|
+
hidden?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The image ref to the IDE image.
|
|
94
|
+
*/
|
|
95
|
+
image: string;
|
|
96
|
+
/**
|
|
97
|
+
* The latest image ref to the IDE image, this image ref always resolve to digest.
|
|
98
|
+
*/
|
|
99
|
+
latestImage?: string;
|
|
100
|
+
/**
|
|
101
|
+
* When this is `true`, the tag of this image is resolved to the latest
|
|
102
|
+
* image digest regularly.
|
|
103
|
+
*
|
|
104
|
+
* This is useful if this image points to a tag like `nightly` that will be
|
|
105
|
+
* updated regularly. When `resolveImageDigest` is `true`, we make sure that
|
|
106
|
+
* we resolve the tag regularly to the most recent image version.
|
|
107
|
+
*/
|
|
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;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=ide-protocol.d.ts.map
|
|
@@ -0,0 +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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AO,CAAC;IAE7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
4
|
+
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
|
+
*/
|
|
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 = {}));
|
|
18
|
+
//# sourceMappingURL=ide-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,20 +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
|
|
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";
|
|
20
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,9 +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);
|
|
31
|
+
__exportStar(require("./oss-allowlist"), exports);
|
|
32
|
+
__exportStar(require("./installation-admin-protocol"), exports);
|
|
33
|
+
__exportStar(require("./webhook-event"), exports);
|
|
32
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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
|
3
|
+
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
+
* See License.AGPL.txt in the project root for license information.
|
|
5
|
+
*/
|
|
6
|
+
declare const InstallationAdminSettingsPrototype: {
|
|
7
|
+
sendTelemetry: boolean;
|
|
8
|
+
sendCustomerID: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type InstallationAdminSettings = typeof InstallationAdminSettingsPrototype;
|
|
11
|
+
export declare namespace InstallationAdminSettings {
|
|
12
|
+
function fields(): (keyof InstallationAdminSettings)[];
|
|
13
|
+
}
|
|
14
|
+
export interface InstallationAdmin {
|
|
15
|
+
id: string;
|
|
16
|
+
settings: InstallationAdminSettings;
|
|
17
|
+
}
|
|
18
|
+
export interface TelemetryData {
|
|
19
|
+
installationAdmin: InstallationAdmin;
|
|
20
|
+
totalUsers: number;
|
|
21
|
+
totalWorkspaces: number;
|
|
22
|
+
totalInstances: number;
|
|
23
|
+
licenseType: string;
|
|
24
|
+
customerID?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace InstallationAdmin {
|
|
27
|
+
function createDefault(): InstallationAdmin;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=installation-admin-protocol.d.ts.map
|
|
@@ -0,0 +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;;;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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
|
4
|
+
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
+
* See License.AGPL.txt in the project root for license information.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.InstallationAdmin = exports.InstallationAdminSettings = void 0;
|
|
9
|
+
const uuid_1 = require("uuid");
|
|
10
|
+
const InstallationAdminSettingsPrototype = {
|
|
11
|
+
sendTelemetry: true,
|
|
12
|
+
sendCustomerID: true,
|
|
13
|
+
};
|
|
14
|
+
var InstallationAdminSettings;
|
|
15
|
+
(function (InstallationAdminSettings) {
|
|
16
|
+
function fields() {
|
|
17
|
+
return Object.keys(InstallationAdminSettingsPrototype);
|
|
18
|
+
}
|
|
19
|
+
InstallationAdminSettings.fields = fields;
|
|
20
|
+
})(InstallationAdminSettings = exports.InstallationAdminSettings || (exports.InstallationAdminSettings = {}));
|
|
21
|
+
var InstallationAdmin;
|
|
22
|
+
(function (InstallationAdmin) {
|
|
23
|
+
function createDefault() {
|
|
24
|
+
return {
|
|
25
|
+
id: (0, uuid_1.v4)(),
|
|
26
|
+
settings: Object.assign({}, InstallationAdminSettingsPrototype),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
InstallationAdmin.createDefault = createDefault;
|
|
30
|
+
})(InstallationAdmin = exports.InstallationAdmin || (exports.InstallationAdmin = {}));
|
|
31
|
+
//# sourceMappingURL=installation-admin-protocol.js.map
|
|
@@ -0,0 +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;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"}
|