@gitpod/gitpod-protocol 0.1.5-update-ovsx.0 → 0.1.5-update-yarnlock.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 +159 -25
- package/lib/accounting-protocol.d.ts +165 -0
- package/lib/accounting-protocol.d.ts.map +1 -0
- package/lib/accounting-protocol.js +120 -0
- package/lib/accounting-protocol.js.map +1 -0
- package/lib/admin-protocol.d.ts +51 -6
- package/lib/admin-protocol.d.ts.map +1 -1
- package/lib/admin-protocol.js +17 -2
- package/lib/admin-protocol.js.map +1 -1
- package/lib/analytics.d.ts +44 -0
- package/lib/analytics.d.ts.map +1 -0
- package/lib/analytics.js +10 -0
- package/lib/analytics.js.map +1 -0
- package/lib/attribution.d.ts +25 -0
- package/lib/attribution.d.ts.map +1 -0
- package/lib/attribution.js +58 -0
- package/lib/attribution.js.map +1 -0
- package/lib/auth.d.ts +25 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +16 -0
- package/lib/auth.js.map +1 -0
- 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 +30 -0
- package/lib/context-url.d.ts.map +1 -0
- package/lib/context-url.js +100 -0
- package/lib/context-url.js.map +1 -0
- package/lib/context-url.spec.d.ts +12 -0
- package/lib/context-url.spec.d.ts.map +1 -0
- package/lib/context-url.spec.js +81 -0
- package/lib/context-url.spec.js.map +1 -0
- package/lib/encryption/container-module.d.ts +2 -2
- package/lib/encryption/container-module.d.ts.map +1 -1
- package/lib/encryption/container-module.js +8 -6
- package/lib/encryption/container-module.js.map +1 -1
- package/lib/encryption/encryption-engine.d.ts +2 -2
- package/lib/encryption/encryption-engine.d.ts.map +1 -1
- package/lib/encryption/encryption-engine.js +28 -28
- package/lib/encryption/encryption-engine.js.map +1 -1
- package/lib/encryption/encryption-engine.spec.d.ts +3 -3
- package/lib/encryption/encryption-engine.spec.d.ts.map +1 -1
- package/lib/encryption/encryption-engine.spec.js +32 -39
- package/lib/encryption/encryption-engine.spec.js.map +1 -1
- package/lib/encryption/encryption-service.d.ts +2 -2
- package/lib/encryption/encryption-service.d.ts.map +1 -1
- package/lib/encryption/encryption-service.js +33 -46
- package/lib/encryption/encryption-service.js.map +1 -1
- package/lib/encryption/key-provider.d.ts +3 -3
- package/lib/encryption/key-provider.d.ts.map +1 -1
- package/lib/encryption/key-provider.js +34 -40
- package/lib/encryption/key-provider.js.map +1 -1
- package/lib/env.d.ts +2 -8
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +10 -29
- 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/frontend-dashboard-service.d.ts +99 -0
- package/lib/frontend-dashboard-service.d.ts.map +1 -0
- package/lib/frontend-dashboard-service.js +55 -0
- package/lib/frontend-dashboard-service.js.map +1 -0
- package/lib/gitpod-file-parser.d.ts +2 -2
- package/lib/gitpod-file-parser.d.ts.map +1 -1
- package/lib/gitpod-file-parser.js +29 -44
- package/lib/gitpod-file-parser.js.map +1 -1
- package/lib/gitpod-file-parser.spec.d.ts +2 -2
- package/lib/gitpod-file-parser.spec.js +147 -144
- package/lib/gitpod-file-parser.spec.js.map +1 -1
- package/lib/gitpod-service.d.ts +290 -50
- package/lib/gitpod-service.d.ts.map +1 -1
- package/lib/gitpod-service.js +288 -123
- package/lib/gitpod-service.js.map +1 -1
- package/lib/headless-workspace-log.d.ts +11 -13
- package/lib/headless-workspace-log.d.ts.map +1 -1
- package/lib/headless-workspace-log.js +8 -9
- package/lib/headless-workspace-log.js.map +1 -1
- package/lib/ide-frontend-service.d.ts +26 -0
- package/lib/ide-frontend-service.d.ts.map +1 -0
- package/lib/ide-frontend-service.js +8 -0
- package/lib/ide-frontend-service.js.map +1 -0
- 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 +18 -12
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +28 -13
- 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 +9 -2
- package/lib/license-protocol.d.ts.map +1 -1
- package/lib/license-protocol.js +3 -2
- package/lib/license-protocol.js.map +1 -1
- package/lib/messaging/browser/connection.d.ts +6 -4
- package/lib/messaging/browser/connection.d.ts.map +1 -1
- package/lib/messaging/browser/connection.js +188 -48
- package/lib/messaging/browser/connection.js.map +1 -1
- package/lib/messaging/browser/window-connection.d.ts +9 -4
- package/lib/messaging/browser/window-connection.d.ts.map +1 -1
- package/lib/messaging/browser/window-connection.js +48 -59
- package/lib/messaging/browser/window-connection.js.map +1 -1
- package/lib/messaging/client-call-metrics.d.ts +21 -0
- package/lib/messaging/client-call-metrics.d.ts.map +1 -0
- package/lib/messaging/client-call-metrics.js +95 -0
- package/lib/messaging/client-call-metrics.js.map +1 -0
- package/lib/messaging/error.d.ts +18 -4
- package/lib/messaging/error.d.ts.map +1 -1
- package/lib/messaging/error.js +38 -7
- package/lib/messaging/error.js.map +1 -1
- package/lib/messaging/handler.d.ts +10 -0
- package/lib/messaging/handler.d.ts.map +1 -1
- package/lib/messaging/handler.js +2 -1
- package/lib/messaging/handler.js.map +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 +24 -59
- package/lib/messaging/node/connection.js.map +1 -1
- package/lib/messaging/proxy-factory.d.ts +3 -1
- package/lib/messaging/proxy-factory.d.ts.map +1 -1
- package/lib/messaging/proxy-factory.js +76 -162
- 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 +18 -0
- package/lib/payment-protocol.d.ts.map +1 -0
- package/lib/payment-protocol.js +13 -0
- package/lib/payment-protocol.js.map +1 -0
- package/lib/permission.d.ts +26 -15
- package/lib/permission.d.ts.map +1 -1
- package/lib/permission.js +50 -36
- package/lib/permission.js.map +1 -1
- package/lib/plans.d.ts +213 -0
- package/lib/plans.d.ts.map +1 -0
- package/lib/plans.js +625 -0
- package/lib/plans.js.map +1 -0
- package/lib/protocol.d.ts +338 -111
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +422 -201
- 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 +14 -0
- package/lib/snapshot-url.d.ts.map +1 -0
- package/lib/snapshot-url.js +26 -0
- package/lib/snapshot-url.js.map +1 -0
- package/lib/snapshot-url.spec.d.ts +7 -0
- package/lib/snapshot-url.spec.d.ts.map +1 -0
- package/lib/snapshot-url.spec.js +41 -0
- package/lib/snapshot-url.spec.js.map +1 -0
- package/lib/team-subscription-protocol.d.ts +93 -0
- package/lib/team-subscription-protocol.d.ts.map +1 -0
- package/lib/team-subscription-protocol.js +82 -0
- package/lib/team-subscription-protocol.js.map +1 -0
- package/lib/teams-projects-protocol.d.ts +136 -0
- package/lib/teams-projects-protocol.d.ts.map +1 -0
- package/lib/teams-projects-protocol.js +41 -0
- package/lib/teams-projects-protocol.js.map +1 -0
- package/lib/typings/globals.d.ts +8 -3
- package/lib/typings/globals.d.ts.map +1 -1
- package/lib/typings/globals.js +2 -2
- 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 +8 -0
- package/lib/util/analytics.d.ts.map +1 -0
- package/lib/util/analytics.js +88 -0
- package/lib/util/analytics.js.map +1 -0
- package/lib/util/async-iterator.d.ts +2 -2
- package/lib/util/async-iterator.d.ts.map +1 -1
- package/lib/util/async-iterator.js +60 -137
- package/lib/util/async-iterator.js.map +1 -1
- package/lib/util/cancelable.d.ts +2 -2
- package/lib/util/cancelable.js +20 -61
- package/lib/util/cancelable.js.map +1 -1
- package/lib/util/date-time.d.ts +2 -2
- package/lib/util/date-time.js +14 -13
- 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 +2 -2
- package/lib/util/deep-partial.js +2 -2
- package/lib/util/deferred.d.ts +2 -2
- package/lib/util/deferred.js +13 -14
- package/lib/util/deferred.js.map +1 -1
- package/lib/util/disposable.d.ts +2 -2
- package/lib/util/disposable.d.ts.map +1 -1
- package/lib/util/disposable.js +28 -40
- package/lib/util/disposable.js.map +1 -1
- package/lib/util/event.d.ts +1 -1
- package/lib/util/event.d.ts.map +1 -1
- package/lib/util/event.js +64 -77
- package/lib/util/event.js.map +1 -1
- package/lib/util/garbage-collected-cache.d.ts +3 -2
- package/lib/util/garbage-collected-cache.d.ts.map +1 -1
- package/lib/util/garbage-collected-cache.js +35 -49
- package/lib/util/garbage-collected-cache.js.map +1 -1
- package/lib/util/generate-workspace-id.d.ts +9 -0
- package/lib/util/generate-workspace-id.d.ts.map +1 -0
- package/lib/util/generate-workspace-id.js +491 -0
- package/lib/util/generate-workspace-id.js.map +1 -0
- package/lib/util/generate-workspace-id.spec.d.ts +7 -0
- package/lib/util/generate-workspace-id.spec.d.ts.map +1 -0
- package/lib/util/generate-workspace-id.spec.js +98 -0
- package/lib/util/generate-workspace-id.spec.js.map +1 -0
- package/lib/util/gitpod-cookie.d.ts +20 -0
- package/lib/util/gitpod-cookie.d.ts.map +1 -0
- package/lib/util/gitpod-cookie.js +41 -0
- package/lib/util/gitpod-cookie.js.map +1 -0
- package/lib/util/gitpod-host-url.d.ts +20 -8
- package/lib/util/gitpod-host-url.d.ts.map +1 -1
- package/lib/util/gitpod-host-url.js +143 -85
- package/lib/util/gitpod-host-url.js.map +1 -1
- package/lib/util/gitpod-host-url.spec.d.ts +16 -0
- package/lib/util/gitpod-host-url.spec.d.ts.map +1 -0
- package/lib/util/gitpod-host-url.spec.js +134 -0
- package/lib/util/gitpod-host-url.spec.js.map +1 -0
- package/lib/util/grpc.d.ts +35 -0
- package/lib/util/grpc.d.ts.map +1 -0
- package/lib/util/grpc.js +90 -0
- package/lib/util/grpc.js.map +1 -0
- package/lib/util/jaeger-client-types.d.ts +68 -0
- package/lib/util/jaeger-client-types.d.ts.map +1 -0
- package/lib/util/jaeger-client-types.js +8 -0
- package/lib/util/jaeger-client-types.js.map +1 -0
- package/lib/util/logging.d.ts +58 -35
- package/lib/util/logging.d.ts.map +1 -1
- package/lib/util/logging.js +144 -129
- 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 +2 -2
- package/lib/util/make-link.js +8 -7
- 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 +15 -5
- package/lib/util/parse-workspace-id.d.ts.map +1 -1
- package/lib/util/parse-workspace-id.js +39 -9
- package/lib/util/parse-workspace-id.js.map +1 -1
- package/lib/util/parse-workspace-id.spec.d.ts +10 -2
- package/lib/util/parse-workspace-id.spec.d.ts.map +1 -1
- package/lib/util/parse-workspace-id.spec.js +130 -49
- package/lib/util/parse-workspace-id.spec.js.map +1 -1
- package/lib/util/queue.d.ts +2 -2
- package/lib/util/queue.js +19 -57
- package/lib/util/queue.js.map +1 -1
- package/lib/util/queue.spec.d.ts +2 -2
- package/lib/util/queue.spec.js +149 -288
- 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 +2 -2
- package/lib/util/semaphore.d.ts.map +1 -1
- package/lib/util/semaphore.js +18 -48
- package/lib/util/semaphore.js.map +1 -1
- package/lib/util/skip-if.d.ts +2 -2
- package/lib/util/skip-if.d.ts.map +1 -1
- package/lib/util/skip-if.js +9 -8
- package/lib/util/skip-if.js.map +1 -1
- package/lib/util/timeutil.d.ts +4 -2
- package/lib/util/timeutil.d.ts.map +1 -1
- package/lib/util/timeutil.js +43 -18
- package/lib/util/timeutil.js.map +1 -1
- package/lib/util/timeutil.spec.d.ts +4 -2
- package/lib/util/timeutil.spec.d.ts.map +1 -1
- package/lib/util/timeutil.spec.js +57 -25
- package/lib/util/timeutil.spec.js.map +1 -1
- package/lib/util/tracing.d.ts +55 -8
- package/lib/util/tracing.d.ts.map +1 -1
- package/lib/util/tracing.js +210 -66
- 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 +9 -9
- package/lib/util/workspace-port-authentication.d.ts.map +1 -1
- package/lib/util/workspace-port-authentication.js +13 -14
- 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 +80 -0
- package/lib/workspace-cluster.d.ts.map +1 -0
- package/lib/workspace-cluster.js +36 -0
- package/lib/workspace-cluster.js.map +1 -0
- package/lib/workspace-instance.d.ts +51 -8
- package/lib/workspace-instance.d.ts.map +1 -1
- package/lib/workspace-instance.js +2 -2
- package/lib/wsready.d.ts +8 -2
- package/lib/wsready.d.ts.map +1 -1
- package/lib/wsready.js +4 -3
- package/lib/wsready.js.map +1 -1
- package/package.json +42 -18
- package/pkg-yarn.lock +24 -10
- package/provenance-bundle.jsonl +2 -0
- package/src/accounting-protocol.ts +253 -0
- package/src/admin-protocol.ts +96 -21
- package/src/analytics.ts +52 -0
- package/src/attribution.ts +67 -0
- package/src/auth.ts +27 -0
- package/src/billing-mode.ts +84 -0
- package/src/blocked-repositories-protocol.ts +13 -0
- package/src/context-url.spec.ts +49 -0
- package/src/context-url.ts +107 -0
- package/src/encryption/container-module.ts +4 -5
- package/src/encryption/encryption-engine.spec.ts +11 -10
- package/src/encryption/encryption-engine.ts +22 -18
- package/src/encryption/encryption-service.ts +6 -7
- package/src/encryption/key-provider.ts +18 -21
- package/src/env.ts +3 -26
- 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/frontend-dashboard-service.ts +148 -0
- package/src/gitpod-file-parser.spec.ts +57 -63
- package/src/gitpod-file-parser.ts +18 -19
- package/src/gitpod-service.ts +602 -99
- package/src/headless-workspace-log.ts +14 -16
- package/src/ide-frontend-service.ts +28 -0
- package/src/ide-protocol.ts +147 -0
- package/src/index.ts +18 -12
- package/src/installation-admin-protocol.ts +45 -0
- package/src/license-protocol.ts +14 -8
- package/src/messaging/browser/connection.ts +202 -26
- package/src/messaging/browser/window-connection.ts +45 -29
- package/src/messaging/client-call-metrics.ts +94 -0
- package/src/messaging/error.ts +51 -10
- package/src/messaging/handler.ts +13 -1
- package/src/messaging/node/connection.ts +23 -70
- package/src/messaging/proxy-factory.ts +35 -34
- package/src/oss-allowlist.ts +15 -0
- package/src/payment-protocol.ts +20 -0
- package/src/permission.ts +53 -40
- package/src/plans.ts +699 -0
- package/src/protocol.spec.ts +97 -0
- package/src/protocol.ts +790 -302
- package/src/snapshot-url.spec.ts +27 -0
- package/src/snapshot-url.ts +27 -0
- package/src/team-subscription-protocol.ts +153 -0
- package/src/teams-projects-protocol.ts +180 -0
- package/src/typings/globals.ts +13 -5
- package/src/usage.ts +85 -0
- package/src/util/analytics.ts +109 -0
- package/src/util/async-iterator.ts +6 -7
- package/src/util/cancelable.ts +5 -5
- package/src/util/date-time.ts +10 -10
- package/src/util/debug-app.ts +81 -0
- package/src/util/deep-partial.ts +2 -2
- package/src/util/deferred.ts +8 -8
- package/src/util/disposable.ts +3 -6
- package/src/util/event.ts +9 -11
- package/src/util/garbage-collected-cache.ts +18 -10
- package/src/util/generate-workspace-id.spec.ts +58 -0
- package/src/util/generate-workspace-id.ts +481 -0
- package/src/util/gitpod-cookie.ts +38 -0
- package/src/util/gitpod-host-url.spec.ts +76 -0
- package/src/util/gitpod-host-url.ts +119 -40
- package/src/util/grpc.ts +107 -0
- package/src/util/jaeger-client-types.ts +102 -0
- package/src/util/logging.spec.ts +23 -0
- package/src/util/logging.ts +163 -73
- package/src/util/make-link.ts +8 -9
- package/src/util/nice-grpc.ts +96 -0
- package/src/util/parse-workspace-id.spec.ts +62 -12
- package/src/util/parse-workspace-id.ts +40 -10
- package/src/util/queue.spec.ts +30 -28
- package/src/util/queue.ts +2 -2
- package/src/util/repeat.ts +45 -0
- package/src/util/semaphore.ts +8 -10
- package/src/util/skip-if.ts +12 -9
- package/src/util/timeutil.spec.ts +42 -16
- package/src/util/timeutil.ts +33 -17
- package/src/util/tracing.spec.ts +88 -0
- package/src/util/tracing.ts +211 -33
- package/src/util/workspace-port-authentication.ts +12 -15
- package/src/webhook-event.ts +55 -0
- package/src/workspace-class.ts +14 -0
- package/src/workspace-cluster.ts +121 -0
- package/src/workspace-instance.ts +120 -36
- package/src/wsready.ts +11 -4
- package/data/builtin-theia-plugins.json +0 -362
- package/lib/email-protocol.d.ts +0 -49
- package/lib/email-protocol.d.ts.map +0 -1
- package/lib/email-protocol.js +0 -27
- 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 -45
- 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 +0 -8
- 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 -117
- 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 -33
- package/lib/util/safe-promise.js.map +0 -1
- package/lib/util/without.d.ts +0 -7
- package/lib/util/without.d.ts.map +0 -1
- package/lib/util/without.js +0 -8
- package/lib/util/without.js.map +0 -1
- package/src/email-protocol.ts +0 -67
- 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/src/util/without.ts +0 -8
package/lib/gitpod-service.js
CHANGED
|
@@ -1,167 +1,332 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2020
|
|
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
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
17
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
18
|
-
};
|
|
19
|
-
var __values = (this && this.__values) || function(o) {
|
|
20
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
21
|
-
if (m) return m.call(o);
|
|
22
|
-
if (o && typeof o.length === "number") return {
|
|
23
|
-
next: function () {
|
|
24
|
-
if (o && i >= o.length) o = void 0;
|
|
25
|
-
return { value: o && o[i++], done: !o };
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
29
15
|
};
|
|
30
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
exports.
|
|
37
|
-
|
|
17
|
+
exports.createGitpodService = exports.GitpodServiceImpl = exports.WorkspaceInstanceUpdateListener = exports.GitpodCompositeClient = exports.GitpodServerProxy = exports.GitpodServerPath = exports.createServerMock = exports.createServiceMock = exports.WORKSPACE_TIMEOUT_EXTENDED = exports.WORKSPACE_TIMEOUT_DEFAULT_LONG = exports.WORKSPACE_TIMEOUT_DEFAULT_SHORT = exports.WorkspaceTimeoutDuration = exports.AppNotification = exports.GitpodServer = void 0;
|
|
18
|
+
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
19
|
+
const gitpod_host_url_1 = require("./util/gitpod-host-url");
|
|
20
|
+
const connection_1 = require("./messaging/browser/connection");
|
|
21
|
+
const event_1 = require("./util/event");
|
|
22
|
+
exports.GitpodServer = Symbol("GitpodServer");
|
|
23
|
+
var AppNotification;
|
|
24
|
+
(function (AppNotification) {
|
|
25
|
+
function is(data) {
|
|
26
|
+
return data && typeof data === "object" && data.hasOwnProperty("message");
|
|
27
|
+
}
|
|
28
|
+
AppNotification.is = is;
|
|
29
|
+
})(AppNotification = exports.AppNotification || (exports.AppNotification = {}));
|
|
30
|
+
const WORKSPACE_MAXIMUM_TIMEOUT_HOURS = 24;
|
|
31
|
+
var WorkspaceTimeoutDuration;
|
|
32
|
+
(function (WorkspaceTimeoutDuration) {
|
|
33
|
+
function validate(duration) {
|
|
34
|
+
duration = duration.toLowerCase();
|
|
35
|
+
const unit = duration.slice(-1);
|
|
36
|
+
if (!["m", "h"].includes(unit)) {
|
|
37
|
+
throw new Error(`Invalid timeout unit: ${unit}`);
|
|
38
|
+
}
|
|
39
|
+
const value = parseInt(duration.slice(0, -1), 10);
|
|
40
|
+
if (isNaN(value) || value <= 0) {
|
|
41
|
+
throw new Error(`Invalid timeout value: ${duration}`);
|
|
42
|
+
}
|
|
43
|
+
if ((unit === "h" && value > WORKSPACE_MAXIMUM_TIMEOUT_HOURS) ||
|
|
44
|
+
(unit === "m" && value > WORKSPACE_MAXIMUM_TIMEOUT_HOURS * 60)) {
|
|
45
|
+
throw new Error("Workspace inactivity timeout cannot exceed 24h");
|
|
46
|
+
}
|
|
47
|
+
return duration;
|
|
48
|
+
}
|
|
49
|
+
WorkspaceTimeoutDuration.validate = validate;
|
|
50
|
+
})(WorkspaceTimeoutDuration = exports.WorkspaceTimeoutDuration || (exports.WorkspaceTimeoutDuration = {}));
|
|
51
|
+
exports.WORKSPACE_TIMEOUT_DEFAULT_SHORT = "30m";
|
|
52
|
+
exports.WORKSPACE_TIMEOUT_DEFAULT_LONG = "60m";
|
|
53
|
+
exports.WORKSPACE_TIMEOUT_EXTENDED = "180m";
|
|
54
|
+
const createServiceMock = function (methods) {
|
|
55
|
+
return new GitpodServiceImpl((0, exports.createServerMock)(methods));
|
|
38
56
|
};
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
methods.
|
|
57
|
+
exports.createServiceMock = createServiceMock;
|
|
58
|
+
const createServerMock = function (methods) {
|
|
59
|
+
methods.setClient = methods.setClient || (() => { });
|
|
60
|
+
methods.dispose = methods.dispose || (() => { });
|
|
42
61
|
return new Proxy(methods, {
|
|
43
|
-
|
|
44
|
-
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
get: (target, property) => {
|
|
64
|
+
const result = target[property];
|
|
45
65
|
if (!result) {
|
|
46
|
-
throw new Error(
|
|
66
|
+
throw new Error(`Method ${String(property)} not implemented`);
|
|
47
67
|
}
|
|
48
68
|
return result;
|
|
49
|
-
}
|
|
69
|
+
},
|
|
50
70
|
});
|
|
51
71
|
};
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
|
|
55
|
-
|
|
72
|
+
exports.createServerMock = createServerMock;
|
|
73
|
+
exports.GitpodServerPath = "/gitpod";
|
|
74
|
+
exports.GitpodServerProxy = Symbol("GitpodServerProxy");
|
|
75
|
+
class GitpodCompositeClient {
|
|
76
|
+
constructor() {
|
|
56
77
|
this.clients = [];
|
|
57
78
|
}
|
|
58
|
-
|
|
59
|
-
var _this = this;
|
|
79
|
+
registerClient(client) {
|
|
60
80
|
this.clients.push(client);
|
|
61
|
-
var index = this.clients.length;
|
|
62
81
|
return {
|
|
63
|
-
dispose:
|
|
64
|
-
|
|
65
|
-
|
|
82
|
+
dispose: () => {
|
|
83
|
+
const index = this.clients.indexOf(client);
|
|
84
|
+
if (index > -1) {
|
|
85
|
+
this.clients.splice(index, 1);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
66
88
|
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
catch (error) {
|
|
78
|
-
console.error(error);
|
|
79
|
-
}
|
|
89
|
+
}
|
|
90
|
+
onInstanceUpdate(instance) {
|
|
91
|
+
for (const client of this.clients) {
|
|
92
|
+
if (client.onInstanceUpdate) {
|
|
93
|
+
try {
|
|
94
|
+
client.onInstanceUpdate(instance);
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.error(error);
|
|
80
98
|
}
|
|
81
99
|
}
|
|
82
100
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
101
|
+
}
|
|
102
|
+
onPrebuildUpdate(update) {
|
|
103
|
+
for (const client of this.clients) {
|
|
104
|
+
if (client.onPrebuildUpdate) {
|
|
105
|
+
try {
|
|
106
|
+
client.onPrebuildUpdate(update);
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
console.error(error);
|
|
110
|
+
}
|
|
87
111
|
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
112
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
catch (error) {
|
|
101
|
-
console.error(error);
|
|
102
|
-
}
|
|
113
|
+
}
|
|
114
|
+
onWorkspaceImageBuildLogs(info, content) {
|
|
115
|
+
for (const client of this.clients) {
|
|
116
|
+
if (client.onWorkspaceImageBuildLogs) {
|
|
117
|
+
try {
|
|
118
|
+
client.onWorkspaceImageBuildLogs(info, content);
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
console.error(error);
|
|
103
122
|
}
|
|
104
123
|
}
|
|
105
124
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
125
|
+
}
|
|
126
|
+
notifyDidOpenConnection() {
|
|
127
|
+
for (const client of this.clients) {
|
|
128
|
+
if (client.notifyDidOpenConnection) {
|
|
129
|
+
try {
|
|
130
|
+
client.notifyDidOpenConnection();
|
|
131
|
+
}
|
|
132
|
+
catch (error) {
|
|
133
|
+
console.error(error);
|
|
134
|
+
}
|
|
110
135
|
}
|
|
111
|
-
finally { if (e_2) throw e_2.error; }
|
|
112
136
|
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
catch (error) {
|
|
124
|
-
console.error(error);
|
|
125
|
-
}
|
|
137
|
+
}
|
|
138
|
+
notifyDidCloseConnection() {
|
|
139
|
+
for (const client of this.clients) {
|
|
140
|
+
if (client.notifyDidCloseConnection) {
|
|
141
|
+
try {
|
|
142
|
+
client.notifyDidCloseConnection();
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
console.error(error);
|
|
126
146
|
}
|
|
127
147
|
}
|
|
128
148
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
149
|
+
}
|
|
150
|
+
onCreditAlert(creditAlert) {
|
|
151
|
+
for (const client of this.clients) {
|
|
152
|
+
if (client.onCreditAlert) {
|
|
153
|
+
try {
|
|
154
|
+
client.onCreditAlert(creditAlert);
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
console.error(error);
|
|
158
|
+
}
|
|
133
159
|
}
|
|
134
|
-
finally { if (e_3) throw e_3.error; }
|
|
135
160
|
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
161
|
+
}
|
|
162
|
+
onNotificationUpdated() {
|
|
163
|
+
for (const client of this.clients) {
|
|
164
|
+
if (client.onNotificationUpdated) {
|
|
165
|
+
try {
|
|
166
|
+
client.onNotificationUpdated();
|
|
167
|
+
}
|
|
168
|
+
catch (error) {
|
|
169
|
+
console.error(error);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
139
175
|
exports.GitpodCompositeClient = GitpodCompositeClient;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
176
|
+
const hasWindow = typeof window !== "undefined";
|
|
177
|
+
const phasesOrder = {
|
|
178
|
+
unknown: 0,
|
|
179
|
+
preparing: 1,
|
|
180
|
+
building: 2,
|
|
181
|
+
pending: 3,
|
|
182
|
+
creating: 4,
|
|
183
|
+
initializing: 5,
|
|
184
|
+
running: 6,
|
|
185
|
+
interrupted: 7,
|
|
186
|
+
stopping: 8,
|
|
187
|
+
stopped: 9,
|
|
188
|
+
};
|
|
189
|
+
class WorkspaceInstanceUpdateListener {
|
|
190
|
+
constructor(service, _info) {
|
|
191
|
+
this.service = service;
|
|
192
|
+
this._info = _info;
|
|
193
|
+
this.onDidChangeEmitter = new event_1.Emitter();
|
|
194
|
+
this.onDidChange = this.onDidChangeEmitter.event;
|
|
195
|
+
this.source = "sync";
|
|
196
|
+
this.syncQueue = Promise.resolve();
|
|
197
|
+
service.registerClient({
|
|
198
|
+
onInstanceUpdate: (instance) => {
|
|
199
|
+
if (this.isOutOfOrder(instance)) {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
this.cancelSync();
|
|
203
|
+
this._info.latestInstance = instance;
|
|
204
|
+
this.source = "update";
|
|
205
|
+
this.onDidChangeEmitter.fire(undefined);
|
|
206
|
+
},
|
|
207
|
+
notifyDidOpenConnection: () => {
|
|
208
|
+
this.sync();
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
|
+
if (hasWindow) {
|
|
212
|
+
// learn about page lifecycle here: https://developers.google.com/web/updates/2018/07/page-lifecycle-api
|
|
213
|
+
window.document.addEventListener("visibilitychange", () => __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
if (window.document.visibilityState === "visible") {
|
|
215
|
+
this.sync();
|
|
216
|
+
}
|
|
217
|
+
}));
|
|
218
|
+
window.addEventListener("pageshow", (e) => {
|
|
219
|
+
if (e.persisted) {
|
|
220
|
+
this.sync();
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
get info() {
|
|
226
|
+
return this._info;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Only one sync can be performed at the same time.
|
|
230
|
+
* Any new sync request or instance update cancels all previously scheduled sync requests.
|
|
231
|
+
*/
|
|
232
|
+
sync() {
|
|
233
|
+
this.cancelSync();
|
|
234
|
+
this.syncTokenSource = new vscode_jsonrpc_1.CancellationTokenSource();
|
|
235
|
+
const token = this.syncTokenSource.token;
|
|
236
|
+
this.syncQueue = this.syncQueue.then(() => __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
if (token.isCancellationRequested) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
try {
|
|
241
|
+
const info = yield this.service.server.getWorkspace(this._info.workspace.id);
|
|
242
|
+
if (token.isCancellationRequested) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
this._info = info;
|
|
246
|
+
this.source = "sync";
|
|
247
|
+
this.onDidChangeEmitter.fire(undefined);
|
|
248
|
+
}
|
|
249
|
+
catch (e) {
|
|
250
|
+
console.error("failed to sync workspace instance:", e);
|
|
251
|
+
}
|
|
252
|
+
}));
|
|
253
|
+
}
|
|
254
|
+
cancelSync() {
|
|
255
|
+
if (this.syncTokenSource) {
|
|
256
|
+
this.syncTokenSource.cancel();
|
|
257
|
+
this.syncTokenSource = undefined;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* If sync seen more recent update then ignore all updates with previous phases.
|
|
262
|
+
* Within the same phase still the race can occur but which should be eventually consistent.
|
|
263
|
+
*/
|
|
264
|
+
isOutOfOrder(instance) {
|
|
265
|
+
var _a;
|
|
266
|
+
if (instance.workspaceId !== this._info.workspace.id) {
|
|
267
|
+
return true;
|
|
268
|
+
}
|
|
269
|
+
if (this.source === "update") {
|
|
270
|
+
return false;
|
|
271
|
+
}
|
|
272
|
+
if (instance.id !== ((_a = this.info.latestInstance) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
273
|
+
return false;
|
|
274
|
+
}
|
|
275
|
+
return phasesOrder[instance.status.phase] < phasesOrder[this.info.latestInstance.status.phase];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
exports.WorkspaceInstanceUpdateListener = WorkspaceInstanceUpdateListener;
|
|
279
|
+
class GitpodServiceImpl {
|
|
280
|
+
constructor(server, options) {
|
|
143
281
|
this.server = server;
|
|
282
|
+
this.options = options;
|
|
144
283
|
this.compositeClient = new GitpodCompositeClient();
|
|
284
|
+
this.instanceListeners = new Map();
|
|
145
285
|
server.setClient(this.compositeClient);
|
|
286
|
+
server.onDidOpenConnection(() => this.compositeClient.notifyDidOpenConnection());
|
|
287
|
+
server.onDidCloseConnection(() => this.compositeClient.notifyDidCloseConnection());
|
|
146
288
|
}
|
|
147
|
-
|
|
289
|
+
registerClient(client) {
|
|
148
290
|
return this.compositeClient.registerClient(client);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
291
|
+
}
|
|
292
|
+
listenToInstance(workspaceId) {
|
|
293
|
+
const listener = this.instanceListeners.get(workspaceId) ||
|
|
294
|
+
(() => __awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
const info = yield this.server.getWorkspace(workspaceId);
|
|
296
|
+
return new WorkspaceInstanceUpdateListener(this, info);
|
|
297
|
+
}))();
|
|
298
|
+
this.instanceListeners.set(workspaceId, listener);
|
|
299
|
+
return listener;
|
|
300
|
+
}
|
|
301
|
+
reconnect() {
|
|
302
|
+
var _a;
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.onReconnect) {
|
|
305
|
+
yield this.options.onReconnect();
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
|
157
310
|
exports.GitpodServiceImpl = GitpodServiceImpl;
|
|
158
311
|
function createGitpodService(serverUrl) {
|
|
159
|
-
|
|
160
|
-
.asWebsocket()
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
312
|
+
const toWsUrl = (serverUrl) => {
|
|
313
|
+
return new gitpod_host_url_1.GitpodHostUrl(serverUrl).asWebsocket().withApi({ pathname: exports.GitpodServerPath }).toString();
|
|
314
|
+
};
|
|
315
|
+
let url;
|
|
316
|
+
if (typeof serverUrl === "string") {
|
|
317
|
+
url = toWsUrl(serverUrl);
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
url = serverUrl.then((url) => toWsUrl(url));
|
|
321
|
+
}
|
|
322
|
+
const connectionProvider = new connection_1.WebSocketConnectionProvider();
|
|
323
|
+
let onReconnect = () => { };
|
|
324
|
+
const gitpodServer = connectionProvider.createProxy(url, undefined, {
|
|
325
|
+
onListening: (socket) => {
|
|
326
|
+
onReconnect = () => socket.reconnect();
|
|
327
|
+
},
|
|
328
|
+
});
|
|
329
|
+
return new GitpodServiceImpl(gitpodServer, { onReconnect });
|
|
165
330
|
}
|
|
166
331
|
exports.createGitpodService = createGitpodService;
|
|
167
332
|
//# sourceMappingURL=gitpod-service.js.map
|
|
@@ -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;;;;;;;;;;;;AAwCH,mDAAqE;AAIrE,4DAAuD;AACvD,+DAA6E;AAG7E,wCAAuC;AAgC1B,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAgQnD,IAAiB,eAAe,CAI/B;AAJD,WAAiB,eAAe;IAC5B,SAAgB,EAAE,CAAC,IAAS;QACxB,OAAO,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAC9E,CAAC;IAFe,kBAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI/B;AAoDD,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAG3C,IAAiB,wBAAwB,CAmBxC;AAnBD,WAAiB,wBAAwB;IACrC,SAAgB,QAAQ,CAAC,QAAgB;QACrC,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;QAClC,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,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CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,wBAAgB,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;IACzG,CAAC,CAAC;IACF,IAAI,GAA6B,CAAC;IAClC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QAC/B,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;KAC5B;SAAM;QACH,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;KAC/C;IAED,MAAM,kBAAkB,GAAG,IAAI,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
|
-
* Copyright (c) 2020
|
|
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,26 +9,24 @@ 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 {
|
|
15
16
|
function isRunning(t: HeadlessWorkspaceEventType): boolean;
|
|
16
17
|
function didFinish(t: HeadlessWorkspaceEventType): boolean;
|
|
17
18
|
}
|
|
18
|
-
export interface
|
|
19
|
+
export interface HeadlessWorkspaceEvent {
|
|
19
20
|
workspaceID: string;
|
|
20
21
|
text: string;
|
|
21
22
|
type: HeadlessWorkspaceEventType;
|
|
22
23
|
}
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
export interface TheiaHeadlessLogMessage {
|
|
29
|
-
type: TheiaHeadlessLogType;
|
|
30
|
-
data?: string;
|
|
31
|
-
error?: string;
|
|
32
|
-
snapshotURL?: string;
|
|
24
|
+
export interface HeadlessLogUrls {
|
|
25
|
+
streams: {
|
|
26
|
+
[streamID: string]: string;
|
|
27
|
+
};
|
|
33
28
|
}
|
|
29
|
+
/** cmp. @const HEADLESS_LOG_STREAM_STATUS_CODE_REGEX */
|
|
30
|
+
export declare const HEADLESS_LOG_STREAM_STATUS_CODE = "X-LogStream-StatusCode";
|
|
31
|
+
export declare const HEADLESS_LOG_STREAM_STATUS_CODE_REGEX: RegExp;
|
|
34
32
|
//# sourceMappingURL=headless-workspace-log.d.ts.map
|
|
@@ -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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2020
|
|
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
|
+
exports.HEADLESS_LOG_STREAM_STATUS_CODE_REGEX = exports.HEADLESS_LOG_STREAM_STATUS_CODE = exports.HeadlessWorkspaceEventType = void 0;
|
|
8
9
|
var HeadlessWorkspaceEventType;
|
|
9
10
|
(function (HeadlessWorkspaceEventType) {
|
|
10
11
|
HeadlessWorkspaceEventType["LogOutput"] = "log-output";
|
|
@@ -12,6 +13,7 @@ var HeadlessWorkspaceEventType;
|
|
|
12
13
|
HeadlessWorkspaceEventType["FinishedButFailed"] = "finish-fail";
|
|
13
14
|
HeadlessWorkspaceEventType["AbortedTimedOut"] = "aborted-timeout";
|
|
14
15
|
HeadlessWorkspaceEventType["Aborted"] = "aborted";
|
|
16
|
+
HeadlessWorkspaceEventType["Failed"] = "failed";
|
|
15
17
|
HeadlessWorkspaceEventType["Started"] = "started";
|
|
16
18
|
})(HeadlessWorkspaceEventType = exports.HeadlessWorkspaceEventType || (exports.HeadlessWorkspaceEventType = {}));
|
|
17
19
|
(function (HeadlessWorkspaceEventType) {
|
|
@@ -20,14 +22,11 @@ var HeadlessWorkspaceEventType;
|
|
|
20
22
|
}
|
|
21
23
|
HeadlessWorkspaceEventType.isRunning = isRunning;
|
|
22
24
|
function didFinish(t) {
|
|
23
|
-
return t === HeadlessWorkspaceEventType.FinishedButFailed || t === HeadlessWorkspaceEventType.FinishedSuccessfully;
|
|
25
|
+
return (t === HeadlessWorkspaceEventType.FinishedButFailed || t === HeadlessWorkspaceEventType.FinishedSuccessfully);
|
|
24
26
|
}
|
|
25
27
|
HeadlessWorkspaceEventType.didFinish = didFinish;
|
|
26
28
|
})(HeadlessWorkspaceEventType = exports.HeadlessWorkspaceEventType || (exports.HeadlessWorkspaceEventType = {}));
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
TheiaHeadlessLogType["TaskFailedLabel"] = "workspaceTaskFailed";
|
|
31
|
-
TheiaHeadlessLogType["TaskSuccessfulLabel"] = "workspaceTaskDone";
|
|
32
|
-
})(TheiaHeadlessLogType = exports.TheiaHeadlessLogType || (exports.TheiaHeadlessLogType = {}));
|
|
29
|
+
/** cmp. @const HEADLESS_LOG_STREAM_STATUS_CODE_REGEX */
|
|
30
|
+
exports.HEADLESS_LOG_STREAM_STATUS_CODE = "X-LogStream-StatusCode";
|
|
31
|
+
exports.HEADLESS_LOG_STREAM_STATUS_CODE_REGEX = /X-LogStream-StatusCode: ([0-9]{3})/;
|
|
33
32
|
//# sourceMappingURL=headless-workspace-log.js.map
|
|
@@ -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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 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
|
+
import { Event } from "./util/event";
|
|
7
|
+
import { Disposable } from "./util/disposable";
|
|
8
|
+
export declare type IDEFrontendState = "init" | "ready" | "terminated";
|
|
9
|
+
export interface IDEFrontendService {
|
|
10
|
+
readonly state: IDEFrontendState;
|
|
11
|
+
/**
|
|
12
|
+
* A cause of the ide frontend application failure when state is terminated.
|
|
13
|
+
*/
|
|
14
|
+
readonly failureCause?: Error;
|
|
15
|
+
readonly onDidChange: Event<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Starts the ide frontend application.
|
|
18
|
+
* Returns the disposable object which is triggered when the ide application should be stopped.
|
|
19
|
+
*
|
|
20
|
+
* On stop the application should store the unsaved changes.
|
|
21
|
+
* It won't receive any `beforeunload` events from window anymore to prevent
|
|
22
|
+
* confirmation dialogs for stopped workspaces.
|
|
23
|
+
*/
|
|
24
|
+
start(): Disposable;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=ide-frontend-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ide-frontend-service.d.ts","sourceRoot":"","sources":["../src/ide-frontend-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,oBAAY,gBAAgB,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,CAAC;AAE/D,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC;;;;;;;OAOG;IACH,KAAK,IAAI,UAAU,CAAC;CACvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020 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
|
+
//# sourceMappingURL=ide-frontend-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ide-frontend-service.js","sourceRoot":"","sources":["../src/ide-frontend-service.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|