@coboot/headless 0.2.2-rc.1 → 0.2.2-rc.2
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/README.md +100 -25
- package/browser-runtime/playwright-core/LICENSE +202 -0
- package/browser-runtime/playwright-core/NOTICE +5 -0
- package/browser-runtime/playwright-core/README.md +3 -0
- package/browser-runtime/playwright-core/ThirdPartyNotices.txt +4076 -0
- package/browser-runtime/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/browser-runtime/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/browser-runtime/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/browser-runtime/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/browser-runtime/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/browser-runtime/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/browser-runtime/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/browser-runtime/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/browser-runtime/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/browser-runtime/playwright-core/browsers.json +79 -0
- package/browser-runtime/playwright-core/cli.js +18 -0
- package/browser-runtime/playwright-core/index.js +32 -0
- package/browser-runtime/playwright-core/index.mjs +28 -0
- package/browser-runtime/playwright-core/lib/androidServerImpl.js +65 -0
- package/browser-runtime/playwright-core/lib/browserServerImpl.js +120 -0
- package/browser-runtime/playwright-core/lib/cli/driver.js +97 -0
- package/browser-runtime/playwright-core/lib/cli/program.js +589 -0
- package/browser-runtime/playwright-core/lib/cli/programWithTestStub.js +74 -0
- package/browser-runtime/playwright-core/lib/client/android.js +361 -0
- package/browser-runtime/playwright-core/lib/client/api.js +137 -0
- package/browser-runtime/playwright-core/lib/client/artifact.js +79 -0
- package/browser-runtime/playwright-core/lib/client/browser.js +161 -0
- package/browser-runtime/playwright-core/lib/client/browserContext.js +582 -0
- package/browser-runtime/playwright-core/lib/client/browserType.js +185 -0
- package/browser-runtime/playwright-core/lib/client/cdpSession.js +51 -0
- package/browser-runtime/playwright-core/lib/client/channelOwner.js +194 -0
- package/browser-runtime/playwright-core/lib/client/clientHelper.js +64 -0
- package/browser-runtime/playwright-core/lib/client/clientInstrumentation.js +55 -0
- package/browser-runtime/playwright-core/lib/client/clientStackTrace.js +69 -0
- package/browser-runtime/playwright-core/lib/client/clock.js +68 -0
- package/browser-runtime/playwright-core/lib/client/connection.js +318 -0
- package/browser-runtime/playwright-core/lib/client/consoleMessage.js +58 -0
- package/browser-runtime/playwright-core/lib/client/coverage.js +44 -0
- package/browser-runtime/playwright-core/lib/client/dialog.js +56 -0
- package/browser-runtime/playwright-core/lib/client/download.js +62 -0
- package/browser-runtime/playwright-core/lib/client/electron.js +138 -0
- package/browser-runtime/playwright-core/lib/client/elementHandle.js +284 -0
- package/browser-runtime/playwright-core/lib/client/errors.js +77 -0
- package/browser-runtime/playwright-core/lib/client/eventEmitter.js +314 -0
- package/browser-runtime/playwright-core/lib/client/events.js +103 -0
- package/browser-runtime/playwright-core/lib/client/fetch.js +368 -0
- package/browser-runtime/playwright-core/lib/client/fileChooser.js +46 -0
- package/browser-runtime/playwright-core/lib/client/fileUtils.js +34 -0
- package/browser-runtime/playwright-core/lib/client/frame.js +409 -0
- package/browser-runtime/playwright-core/lib/client/harRouter.js +87 -0
- package/browser-runtime/playwright-core/lib/client/input.js +84 -0
- package/browser-runtime/playwright-core/lib/client/jsHandle.js +109 -0
- package/browser-runtime/playwright-core/lib/client/jsonPipe.js +39 -0
- package/browser-runtime/playwright-core/lib/client/localUtils.js +60 -0
- package/browser-runtime/playwright-core/lib/client/locator.js +369 -0
- package/browser-runtime/playwright-core/lib/client/network.js +747 -0
- package/browser-runtime/playwright-core/lib/client/page.js +745 -0
- package/browser-runtime/playwright-core/lib/client/pageAgent.js +64 -0
- package/browser-runtime/playwright-core/lib/client/platform.js +77 -0
- package/browser-runtime/playwright-core/lib/client/playwright.js +71 -0
- package/browser-runtime/playwright-core/lib/client/selectors.js +55 -0
- package/browser-runtime/playwright-core/lib/client/stream.js +39 -0
- package/browser-runtime/playwright-core/lib/client/timeoutSettings.js +79 -0
- package/browser-runtime/playwright-core/lib/client/tracing.js +119 -0
- package/browser-runtime/playwright-core/lib/client/types.js +28 -0
- package/browser-runtime/playwright-core/lib/client/video.js +59 -0
- package/browser-runtime/playwright-core/lib/client/waiter.js +142 -0
- package/browser-runtime/playwright-core/lib/client/webError.js +39 -0
- package/browser-runtime/playwright-core/lib/client/webSocket.js +93 -0
- package/browser-runtime/playwright-core/lib/client/worker.js +85 -0
- package/browser-runtime/playwright-core/lib/client/writableStream.js +39 -0
- package/browser-runtime/playwright-core/lib/generated/bindingsControllerSource.js +28 -0
- package/browser-runtime/playwright-core/lib/generated/clockSource.js +28 -0
- package/browser-runtime/playwright-core/lib/generated/injectedScriptSource.js +28 -0
- package/browser-runtime/playwright-core/lib/generated/pollingRecorderSource.js +28 -0
- package/browser-runtime/playwright-core/lib/generated/storageScriptSource.js +28 -0
- package/browser-runtime/playwright-core/lib/generated/utilityScriptSource.js +28 -0
- package/browser-runtime/playwright-core/lib/generated/webSocketMockSource.js +336 -0
- package/browser-runtime/playwright-core/lib/inProcessFactory.js +60 -0
- package/browser-runtime/playwright-core/lib/inprocess.js +3 -0
- package/browser-runtime/playwright-core/lib/mcpBundle.js +84 -0
- package/browser-runtime/playwright-core/lib/mcpBundleImpl/index.js +147 -0
- package/browser-runtime/playwright-core/lib/outofprocess.js +76 -0
- package/browser-runtime/playwright-core/lib/protocol/serializers.js +197 -0
- package/browser-runtime/playwright-core/lib/protocol/validator.js +2969 -0
- package/browser-runtime/playwright-core/lib/protocol/validatorPrimitives.js +193 -0
- package/browser-runtime/playwright-core/lib/remote/playwrightConnection.js +129 -0
- package/browser-runtime/playwright-core/lib/remote/playwrightServer.js +334 -0
- package/browser-runtime/playwright-core/lib/server/agent/actionRunner.js +335 -0
- package/browser-runtime/playwright-core/lib/server/agent/actions.js +128 -0
- package/browser-runtime/playwright-core/lib/server/agent/codegen.js +111 -0
- package/browser-runtime/playwright-core/lib/server/agent/context.js +150 -0
- package/browser-runtime/playwright-core/lib/server/agent/expectTools.js +156 -0
- package/browser-runtime/playwright-core/lib/server/agent/pageAgent.js +204 -0
- package/browser-runtime/playwright-core/lib/server/agent/performTools.js +262 -0
- package/browser-runtime/playwright-core/lib/server/agent/tool.js +109 -0
- package/browser-runtime/playwright-core/lib/server/android/android.js +465 -0
- package/browser-runtime/playwright-core/lib/server/android/backendAdb.js +177 -0
- package/browser-runtime/playwright-core/lib/server/artifact.js +127 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiBrowser.js +549 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiChromium.js +149 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiConnection.js +213 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiDeserializer.js +116 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiExecutionContext.js +267 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiFirefox.js +128 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiInput.js +146 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiNetworkManager.js +383 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiOverCdp.js +102 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiPage.js +583 -0
- package/browser-runtime/playwright-core/lib/server/bidi/bidiPdf.js +106 -0
- package/browser-runtime/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
- package/browser-runtime/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
- package/browser-runtime/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +24 -0
- package/browser-runtime/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +180 -0
- package/browser-runtime/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
- package/browser-runtime/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +148 -0
- package/browser-runtime/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +259 -0
- package/browser-runtime/playwright-core/lib/server/browser.js +149 -0
- package/browser-runtime/playwright-core/lib/server/browserContext.js +702 -0
- package/browser-runtime/playwright-core/lib/server/browserType.js +336 -0
- package/browser-runtime/playwright-core/lib/server/callLog.js +82 -0
- package/browser-runtime/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/browser-runtime/playwright-core/lib/server/chromium/chromium.js +397 -0
- package/browser-runtime/playwright-core/lib/server/chromium/chromiumSwitches.js +104 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crBrowser.js +520 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crConnection.js +197 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crCoverage.js +235 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crDevTools.js +111 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crDragDrop.js +131 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crExecutionContext.js +146 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crInput.js +187 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crNetworkManager.js +707 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crPage.js +1001 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crPdf.js +121 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crProtocolHelper.js +145 -0
- package/browser-runtime/playwright-core/lib/server/chromium/crServiceWorker.js +136 -0
- package/browser-runtime/playwright-core/lib/server/chromium/defaultFontFamilies.js +162 -0
- package/browser-runtime/playwright-core/lib/server/chromium/protocol.d.js +16 -0
- package/browser-runtime/playwright-core/lib/server/clock.js +149 -0
- package/browser-runtime/playwright-core/lib/server/codegen/csharp.js +327 -0
- package/browser-runtime/playwright-core/lib/server/codegen/java.js +274 -0
- package/browser-runtime/playwright-core/lib/server/codegen/javascript.js +247 -0
- package/browser-runtime/playwright-core/lib/server/codegen/jsonl.js +52 -0
- package/browser-runtime/playwright-core/lib/server/codegen/language.js +132 -0
- package/browser-runtime/playwright-core/lib/server/codegen/languages.js +68 -0
- package/browser-runtime/playwright-core/lib/server/codegen/python.js +279 -0
- package/browser-runtime/playwright-core/lib/server/codegen/types.js +16 -0
- package/browser-runtime/playwright-core/lib/server/console.js +57 -0
- package/browser-runtime/playwright-core/lib/server/cookieStore.js +206 -0
- package/browser-runtime/playwright-core/lib/server/debugController.js +191 -0
- package/browser-runtime/playwright-core/lib/server/debugger.js +119 -0
- package/browser-runtime/playwright-core/lib/server/deviceDescriptors.js +39 -0
- package/browser-runtime/playwright-core/lib/server/deviceDescriptorsSource.json +1779 -0
- package/browser-runtime/playwright-core/lib/server/dialog.js +116 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/androidDispatcher.js +325 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/artifactDispatcher.js +118 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +384 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/browserDispatcher.js +118 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +64 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +44 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/dialogDispatcher.js +47 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/dispatcher.js +364 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/electronDispatcher.js +89 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/frameDispatcher.js +227 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +149 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/networkDispatchers.js +213 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/pageAgentDispatcher.js +96 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/pageDispatcher.js +393 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +108 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/streamDispatcher.js +67 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/tracingDispatcher.js +68 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +165 -0
- package/browser-runtime/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
- package/browser-runtime/playwright-core/lib/server/dom.js +815 -0
- package/browser-runtime/playwright-core/lib/server/download.js +70 -0
- package/browser-runtime/playwright-core/lib/server/electron/electron.js +273 -0
- package/browser-runtime/playwright-core/lib/server/electron/loader.js +29 -0
- package/browser-runtime/playwright-core/lib/server/errors.js +69 -0
- package/browser-runtime/playwright-core/lib/server/fetch.js +621 -0
- package/browser-runtime/playwright-core/lib/server/fileChooser.js +43 -0
- package/browser-runtime/playwright-core/lib/server/fileUploadUtils.js +84 -0
- package/browser-runtime/playwright-core/lib/server/firefox/ffBrowser.js +418 -0
- package/browser-runtime/playwright-core/lib/server/firefox/ffConnection.js +142 -0
- package/browser-runtime/playwright-core/lib/server/firefox/ffExecutionContext.js +150 -0
- package/browser-runtime/playwright-core/lib/server/firefox/ffInput.js +159 -0
- package/browser-runtime/playwright-core/lib/server/firefox/ffNetworkManager.js +256 -0
- package/browser-runtime/playwright-core/lib/server/firefox/ffPage.js +497 -0
- package/browser-runtime/playwright-core/lib/server/firefox/firefox.js +114 -0
- package/browser-runtime/playwright-core/lib/server/firefox/protocol.d.js +16 -0
- package/browser-runtime/playwright-core/lib/server/formData.js +147 -0
- package/browser-runtime/playwright-core/lib/server/frameSelectors.js +160 -0
- package/browser-runtime/playwright-core/lib/server/frames.js +1471 -0
- package/browser-runtime/playwright-core/lib/server/har/harRecorder.js +147 -0
- package/browser-runtime/playwright-core/lib/server/har/harTracer.js +607 -0
- package/browser-runtime/playwright-core/lib/server/harBackend.js +157 -0
- package/browser-runtime/playwright-core/lib/server/helper.js +96 -0
- package/browser-runtime/playwright-core/lib/server/index.js +58 -0
- package/browser-runtime/playwright-core/lib/server/input.js +277 -0
- package/browser-runtime/playwright-core/lib/server/instrumentation.js +72 -0
- package/browser-runtime/playwright-core/lib/server/javascript.js +291 -0
- package/browser-runtime/playwright-core/lib/server/launchApp.js +128 -0
- package/browser-runtime/playwright-core/lib/server/localUtils.js +214 -0
- package/browser-runtime/playwright-core/lib/server/macEditingCommands.js +143 -0
- package/browser-runtime/playwright-core/lib/server/network.js +667 -0
- package/browser-runtime/playwright-core/lib/server/page.js +830 -0
- package/browser-runtime/playwright-core/lib/server/pipeTransport.js +89 -0
- package/browser-runtime/playwright-core/lib/server/playwright.js +69 -0
- package/browser-runtime/playwright-core/lib/server/progress.js +132 -0
- package/browser-runtime/playwright-core/lib/server/protocolError.js +52 -0
- package/browser-runtime/playwright-core/lib/server/recorder/chat.js +161 -0
- package/browser-runtime/playwright-core/lib/server/recorder/recorderApp.js +366 -0
- package/browser-runtime/playwright-core/lib/server/recorder/recorderRunner.js +138 -0
- package/browser-runtime/playwright-core/lib/server/recorder/recorderSignalProcessor.js +83 -0
- package/browser-runtime/playwright-core/lib/server/recorder/recorderUtils.js +157 -0
- package/browser-runtime/playwright-core/lib/server/recorder/throttledFile.js +57 -0
- package/browser-runtime/playwright-core/lib/server/recorder.js +499 -0
- package/browser-runtime/playwright-core/lib/server/registry/browserFetcher.js +177 -0
- package/browser-runtime/playwright-core/lib/server/registry/dependencies.js +371 -0
- package/browser-runtime/playwright-core/lib/server/registry/index.js +1422 -0
- package/browser-runtime/playwright-core/lib/server/registry/nativeDeps.js +1280 -0
- package/browser-runtime/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +127 -0
- package/browser-runtime/playwright-core/lib/server/screencast.js +190 -0
- package/browser-runtime/playwright-core/lib/server/screenshotter.js +333 -0
- package/browser-runtime/playwright-core/lib/server/selectors.js +112 -0
- package/browser-runtime/playwright-core/lib/server/socksClientCertificatesInterceptor.js +383 -0
- package/browser-runtime/playwright-core/lib/server/socksInterceptor.js +95 -0
- package/browser-runtime/playwright-core/lib/server/trace/recorder/snapshotter.js +147 -0
- package/browser-runtime/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +561 -0
- package/browser-runtime/playwright-core/lib/server/trace/recorder/tracing.js +604 -0
- package/browser-runtime/playwright-core/lib/server/trace/viewer/traceParser.js +72 -0
- package/browser-runtime/playwright-core/lib/server/trace/viewer/traceViewer.js +245 -0
- package/browser-runtime/playwright-core/lib/server/transport.js +181 -0
- package/browser-runtime/playwright-core/lib/server/types.js +28 -0
- package/browser-runtime/playwright-core/lib/server/usKeyboardLayout.js +145 -0
- package/browser-runtime/playwright-core/lib/server/utils/ascii.js +44 -0
- package/browser-runtime/playwright-core/lib/server/utils/comparators.js +139 -0
- package/browser-runtime/playwright-core/lib/server/utils/crypto.js +216 -0
- package/browser-runtime/playwright-core/lib/server/utils/debug.js +42 -0
- package/browser-runtime/playwright-core/lib/server/utils/debugLogger.js +122 -0
- package/browser-runtime/playwright-core/lib/server/utils/env.js +73 -0
- package/browser-runtime/playwright-core/lib/server/utils/eventsHelper.js +39 -0
- package/browser-runtime/playwright-core/lib/server/utils/expectUtils.js +123 -0
- package/browser-runtime/playwright-core/lib/server/utils/fileUtils.js +191 -0
- package/browser-runtime/playwright-core/lib/server/utils/happyEyeballs.js +207 -0
- package/browser-runtime/playwright-core/lib/server/utils/hostPlatform.js +138 -0
- package/browser-runtime/playwright-core/lib/server/utils/httpServer.js +203 -0
- package/browser-runtime/playwright-core/lib/server/utils/imageUtils.js +141 -0
- package/browser-runtime/playwright-core/lib/server/utils/image_tools/colorUtils.js +89 -0
- package/browser-runtime/playwright-core/lib/server/utils/image_tools/compare.js +109 -0
- package/browser-runtime/playwright-core/lib/server/utils/image_tools/imageChannel.js +78 -0
- package/browser-runtime/playwright-core/lib/server/utils/image_tools/stats.js +102 -0
- package/browser-runtime/playwright-core/lib/server/utils/linuxUtils.js +71 -0
- package/browser-runtime/playwright-core/lib/server/utils/network.js +242 -0
- package/browser-runtime/playwright-core/lib/server/utils/nodePlatform.js +154 -0
- package/browser-runtime/playwright-core/lib/server/utils/pipeTransport.js +84 -0
- package/browser-runtime/playwright-core/lib/server/utils/processLauncher.js +241 -0
- package/browser-runtime/playwright-core/lib/server/utils/profiler.js +65 -0
- package/browser-runtime/playwright-core/lib/server/utils/socksProxy.js +511 -0
- package/browser-runtime/playwright-core/lib/server/utils/spawnAsync.js +41 -0
- package/browser-runtime/playwright-core/lib/server/utils/task.js +51 -0
- package/browser-runtime/playwright-core/lib/server/utils/userAgent.js +98 -0
- package/browser-runtime/playwright-core/lib/server/utils/wsServer.js +121 -0
- package/browser-runtime/playwright-core/lib/server/utils/zipFile.js +74 -0
- package/browser-runtime/playwright-core/lib/server/utils/zones.js +57 -0
- package/browser-runtime/playwright-core/lib/server/videoRecorder.js +124 -0
- package/browser-runtime/playwright-core/lib/server/webkit/protocol.d.js +16 -0
- package/browser-runtime/playwright-core/lib/server/webkit/webkit.js +108 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkBrowser.js +335 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkConnection.js +144 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkExecutionContext.js +154 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkInput.js +181 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkInterceptableRequest.js +197 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkPage.js +1159 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkProvisionalPage.js +83 -0
- package/browser-runtime/playwright-core/lib/server/webkit/wkWorkers.js +105 -0
- package/browser-runtime/playwright-core/lib/third_party/pixelmatch.js +255 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +455 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/assert.js +31 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/colors.js +72 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/cssParser.js +245 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/cssTokenizer.js +1051 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/headers.js +53 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/locatorGenerators.js +689 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/locatorParser.js +176 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/locatorUtils.js +81 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/lruCache.js +51 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/manualPromise.js +114 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/mimeType.js +459 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/multimap.js +80 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/protocolFormatter.js +81 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +330 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/rtti.js +43 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/selectorParser.js +386 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/semaphore.js +54 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/stackTrace.js +158 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/stringUtils.js +204 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/time.js +49 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/timeoutRunner.js +66 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/entries.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +499 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +120 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +89 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +131 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/traceModel.js +365 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +400 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/traceUtils.js +58 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/types.js +16 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/urlMatch.js +190 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +251 -0
- package/browser-runtime/playwright-core/lib/utils/isomorphic/yaml.js +84 -0
- package/browser-runtime/playwright-core/lib/utils.js +111 -0
- package/browser-runtime/playwright-core/lib/utilsBundle.js +109 -0
- package/browser-runtime/playwright-core/lib/utilsBundleImpl/index.js +218 -0
- package/browser-runtime/playwright-core/lib/utilsBundleImpl/xdg-open +1066 -0
- package/browser-runtime/playwright-core/lib/zipBundle.js +34 -0
- package/browser-runtime/playwright-core/lib/zipBundleImpl.js +5 -0
- package/browser-runtime/playwright-core/package.json +43 -0
- package/cli.mjs +11 -4
- package/entry.mjs +291 -289
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,31 +1,85 @@
|
|
|
1
1
|
# Coboot Headless
|
|
2
2
|
|
|
3
|
-
Node.js 20+
|
|
3
|
+
Node.js 20+ 的无 GUI 后台运行包。本包不携带浏览器二进制,也不会自动下载浏览器。
|
|
4
|
+
首次启动只需一次性设备 token:
|
|
4
5
|
|
|
5
6
|
```bash
|
|
6
|
-
npx -y @coboot/headless@0.2.2-rc.
|
|
7
|
+
npx -y @coboot/headless@0.2.2-rc.2 '<device-token>'
|
|
7
8
|
```
|
|
8
9
|
|
|
9
10
|
命令会把运行时安装到 `/data/coboot/.siboot`,在客户端鉴权和运行时初始化完成后启动
|
|
10
|
-
detached daemon 并退出。不需要设置 `BACKEND_URL`、`CLIENT_UID
|
|
11
|
+
detached daemon 并退出。不需要设置 `BACKEND_URL`、`CLIENT_UID`。终端、文件等非浏览器能力不要求
|
|
12
|
+
目标机安装 Chromium。
|
|
11
13
|
|
|
12
14
|
```bash
|
|
13
|
-
npx -y @coboot/headless@0.2.2-rc.
|
|
14
|
-
npx -y @coboot/headless@0.2.2-rc.
|
|
15
|
-
npx -y @coboot/headless@0.2.2-rc.
|
|
16
|
-
npx -y @coboot/headless@0.2.2-rc.
|
|
15
|
+
npx -y @coboot/headless@0.2.2-rc.2 status
|
|
16
|
+
npx -y @coboot/headless@0.2.2-rc.2 logs
|
|
17
|
+
npx -y @coboot/headless@0.2.2-rc.2 restart
|
|
18
|
+
npx -y @coboot/headless@0.2.2-rc.2 stop
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
默认数据根目录可通过 `SIBOOT_DATA_ROOT`
|
|
21
|
+
默认数据根目录可通过 `SIBOOT_DATA_ROOT` 修改。该设置不会写入配置,首次安装以及后续的
|
|
22
|
+
`status`、`logs`、`restart`、`stop` 都必须传入同一个值,否则 CLI 会操作 edition 默认目录。
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Coboot 浏览器
|
|
26
|
+
|
|
27
|
+
Coboot daemon 默认禁用 updater 和浏览器预热,第一次调用 `browser_*` 时才解析系统浏览器。
|
|
28
|
+
没有可用浏览器时,浏览器工具会提醒 Agent 让用户手工安装;daemon、设备注册以及终端、文件等
|
|
29
|
+
非浏览器能力继续正常工作。浏览器不在常见系统路径时,应在启动或重启 daemon 时显式指定:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
HEADLESS_BROWSER_EXECUTABLE=/absolute/path/to/chrome \
|
|
33
|
+
npx -y @coboot/headless@0.2.2-rc.2 '<device-token>'
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
需要安装浏览器时,由用户执行:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npx -y @coboot/headless@0.2.2-rc.2 install-browser
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
该命令不需要设备 token,也不要求 root。它会先检查现有浏览器并执行启动验证;浏览器已经可用时
|
|
43
|
+
不做任何安装。需要安装时:
|
|
44
|
+
|
|
45
|
+
- **root**:先用系统包管理器把 Chromium 或 Chrome 及其系统依赖装到标准路径,对该机器上所有用户
|
|
46
|
+
生效。镜像没有可用包管理器、源里没有 Chromium 或机器离线时,自动回退到下面的下载安装。
|
|
47
|
+
- **非 root**:直接下载安装,不需要 sudo。
|
|
48
|
+
|
|
49
|
+
下载安装用包内 `playwright-core` 把 Chromium 取到 `/data/coboot/.siboot/browsers`,需要访问
|
|
50
|
+
`cdn.playwright.dev`。这个目录不是用户 HOME,daemon 启动时会指向同一个路径,因此换一个账号跑
|
|
51
|
+
daemon 也不会失配,也不需要设置任何环境变量。用 `PLAYWRIGHT_BROWSERS_PATH` 可以改写该路径,
|
|
52
|
+
但改写后启动或重启 daemon 必须带上同一个值。
|
|
53
|
+
|
|
54
|
+
两条路径最后都会用包内 `playwright-core` 按 daemon 的真实启动参数做一次启动检查,因此可以安全
|
|
55
|
+
重复执行。如果检查报告缺少系统动态库(`libnss3.so`、`libgbm.so.1` 等),补齐系统依赖必须有 root
|
|
56
|
+
权限,此时才需要用 `sudo` 重新执行同一条命令。
|
|
57
|
+
|
|
58
|
+
如果执行时 daemon 正以另一个账号运行,命令会打印告警:下载目录归当前用户所有,daemon 可能无权
|
|
59
|
+
读取。此时改用 daemon 所属账号重跑,或用 root 执行让浏览器落到系统路径。
|
|
60
|
+
|
|
61
|
+
标准路径安装完成后可直接重试 `browser_*`,无需重启 daemon。如果通过
|
|
62
|
+
`HEADLESS_BROWSER_EXECUTABLE` 指定非标准路径,则必须带该环境变量启动或重启 daemon。运行时会把
|
|
63
|
+
浏览器缺失、可执行文件不存在以及各类系统动态库缺失转换为要求 Agent 提醒用户手工执行安装命令的
|
|
64
|
+
指引,不允许 Agent 自动修改系统软件包。
|
|
65
|
+
|
|
66
|
+
包名在各发行版并不统一,因此 root 路径按顺序尝试多个候选,任一成功即停止:Debian/Ubuntu 依次
|
|
67
|
+
尝试 `chromium`、`chromium-browser`,x86_64 最后回退到 Google 官方 `google-chrome-stable`
|
|
68
|
+
deb(Ubuntu 归档没有 `chromium` deb,只有指向 snap 的 `chromium-browser`,容器内不可用);
|
|
69
|
+
dnf/yum 先试仓库中的 `chromium`,x86_64 回退到官方 RPM 并关闭 weak dependencies;Alpine 使用
|
|
70
|
+
仓库中的 `chromium`,必要时补 community 源。`apt-get update` 失败不会中断安装,本地 deb 回退
|
|
71
|
+
仍会执行。目标网络需要能够访问对应发行版仓库或 `dl.google.com`。
|
|
72
|
+
|
|
20
73
|
|
|
21
74
|
已有设备凭证无效或需要切换设备身份时,显式重新注册:
|
|
22
75
|
|
|
23
76
|
```bash
|
|
24
|
-
npx -y @coboot/headless@0.2.2-rc.
|
|
77
|
+
npx -y @coboot/headless@0.2.2-rc.2 --force-enroll '<device-token>'
|
|
25
78
|
```
|
|
26
79
|
|
|
27
80
|
命令会先停止 daemon 并临时备份旧凭证;新凭证和客户端均就绪后才完成替换,失败时恢复旧凭证。
|
|
28
81
|
|
|
82
|
+
|
|
29
83
|
## Linux 沙箱
|
|
30
84
|
|
|
31
85
|
当 `package.json` 的 `headlessLinuxSandbox` 不为 `null` 时,包内已携带 Linux x64/arm64 的
|
|
@@ -33,21 +87,22 @@ bubblewrap、musl loader 和 libcap,不要求目标机器额外安装 `bwrap`
|
|
|
33
87
|
包内运行时,失败后再探测系统 `$PATH` 中的 `bwrap`;两者都不可用或内核禁止 user/mount
|
|
34
88
|
namespace 时,会记录原因并按兼容策略使用普通 Node 进程。
|
|
35
89
|
|
|
36
|
-
日志中的 `source=bundled` 表示已经选择包内运行时。Linux Headless
|
|
37
|
-
`COBOOT_WORKSPACE/.home` 作为
|
|
38
|
-
|
|
90
|
+
日志中的 `source=bundled` 表示已经选择包内运行时。Coboot Linux Headless 仅在当前命令已经解析出
|
|
91
|
+
session 级 `COBOOT_WORKSPACE` 时,将 `COBOOT_WORKSPACE/.home` 作为 Bash 的 `HOME`;如果没有
|
|
92
|
+
session workspace,则删除继承的 `HOME`。两种情况都会清理 `BASH_ENV` / `ENV`,不会读取宿主
|
|
93
|
+
账号的 shell 启动脚本。
|
|
39
94
|
|
|
40
95
|
Coboot Linux Headless 会把整个 `SIBOOT_DATA_ROOT`(默认 `/data/coboot`)作为可写根,其中
|
|
41
96
|
`.siboot` 运行状态目录仍由 hard deny 遮蔽。这同时允许访问同机其他 team/agent/session 的数据,
|
|
42
97
|
只适用于部署侧接受该权限边界的独占目标机;结构化文件工具仍继续执行自身的 ACL。
|
|
43
98
|
|
|
99
|
+
|
|
44
100
|
## 运行环境
|
|
45
101
|
|
|
46
102
|
- Edition:`coboot`,在构建期写入,启动时不能切换。
|
|
47
103
|
- 默认 HTTP 服务:`https://www.coboot.com`。
|
|
48
104
|
- 默认 WebSocket 服务:`wss://www.coboot.com/wsschat`。
|
|
49
105
|
- 默认数据根目录:`/data/coboot`。
|
|
50
|
-
- 包不携带浏览器、Chromium、`playwright-core` 或 updater,不能用于浏览器工具。
|
|
51
106
|
|
|
52
107
|
npm CLI 默认清理父进程遗留的 endpoint 环境变量。仅本地联调或自建环境可显式开启覆盖,且
|
|
53
108
|
HTTP 与 WebSocket 必须同域并与设备 token 匹配:
|
|
@@ -56,10 +111,11 @@ HTTP 与 WebSocket 必须同域并与设备 token 匹配:
|
|
|
56
111
|
HEADLESS_ALLOW_ENDPOINT_OVERRIDE=1 \
|
|
57
112
|
BACKEND_URL=https://example.com \
|
|
58
113
|
WS_URL=wss://example.com/wsschat \
|
|
59
|
-
npx -y @coboot/headless@0.2.2-rc.
|
|
114
|
+
npx -y @coboot/headless@0.2.2-rc.2 '<device-token>'
|
|
60
115
|
```
|
|
61
116
|
|
|
62
117
|
WebSocket 覆盖变量名是 `WS_URL`,不是 `WSS_URL`。
|
|
118
|
+
endpoint 覆盖同样不会写入配置;后续执行 `restart` 时必须再次传入完整的覆盖变量。
|
|
63
119
|
|
|
64
120
|
## 维护者构建与发布
|
|
65
121
|
|
|
@@ -69,26 +125,45 @@ WebSocket 覆盖变量名是 `WS_URL`,不是 `WSS_URL`。
|
|
|
69
125
|
CU_EDITION=coboot \
|
|
70
126
|
PKG_NAME=@coboot/headless \
|
|
71
127
|
PKG_BIN_NAME=coboot-headless \
|
|
72
|
-
PKG_VERSION=0.2.2-rc.
|
|
128
|
+
PKG_VERSION=0.2.2-rc.2 \
|
|
73
129
|
pnpm build:headless:npm
|
|
74
130
|
```
|
|
75
131
|
|
|
76
|
-
|
|
132
|
+
构建完成后核对包内清单、元数据和哈希:
|
|
77
133
|
|
|
78
134
|
```bash
|
|
79
135
|
npm pack --dry-run --json ./dist-headless
|
|
80
|
-
tar -xOf dist-headless/coboot-headless-0.2.2-rc.
|
|
81
|
-
sha256sum dist-headless/coboot-headless-0.2.2-rc.
|
|
136
|
+
tar -xOf dist-headless/coboot-headless-0.2.2-rc.2.tgz package/package.json
|
|
137
|
+
sha256sum dist-headless/coboot-headless-0.2.2-rc.2.tgz
|
|
82
138
|
```
|
|
83
139
|
|
|
84
|
-
|
|
140
|
+
|
|
141
|
+
Coboot 公网包通过仓库内发布脚本构建、扫描并发布。先执行 dry-run:
|
|
85
142
|
|
|
86
143
|
```bash
|
|
87
|
-
|
|
88
|
-
--
|
|
89
|
-
--
|
|
90
|
-
--
|
|
144
|
+
pnpm release:headless:npm:coboot -- \
|
|
145
|
+
--version <new-version> \
|
|
146
|
+
--tag next \
|
|
147
|
+
--dry-run
|
|
91
148
|
```
|
|
92
149
|
|
|
93
|
-
|
|
94
|
-
|
|
150
|
+
确认 dry-run 的包清单、哈希和 `npm publish --dry-run` 均通过后,去掉 `--dry-run` 重新执行。
|
|
151
|
+
脚本会再次构建和检查产物,并要求输入完整版本号后才进行真实发布。稳定版本应使用 `latest` tag。
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
注意:
|
|
155
|
+
|
|
156
|
+
- `package.json` 里的 `headlessBackendUrl` / `headlessWsUrl` 只是可核对的冗余标记;运行时
|
|
157
|
+
取值来自 `entry.mjs` 的编译期常量,改这两个字段不会改变客户端连接的服务端。
|
|
158
|
+
- npm CLI 默认清理父进程遗留的 endpoint 环境变量,正式包始终使用 edition 对应地址。
|
|
159
|
+
本地联调或自建环境必须同时设置 `HEADLESS_ALLOW_ENDPOINT_OVERRIDE=1` 和匹配的
|
|
160
|
+
`BACKEND_URL` / `WS_URL`;HTTP 与 WebSocket 必须同域,否则 Access Token 会被
|
|
161
|
+
`isTrustedHeadlessAuthTarget` 拒绝。WebSocket 变量名是 `WS_URL`,不是 `WSS_URL`。
|
|
162
|
+
- 切换 pre / test 环境需要重新构建或显式覆盖 `BACKEND_URL` / `WS_URL`;无论哪种方式都必须
|
|
163
|
+
确认 token 与地址匹配。
|
|
164
|
+
- 同版本重新构建会复用文件名。分发前必须用 SHA-256 区分新旧包;安装流程会停止旧 daemon,
|
|
165
|
+
原子替换同版本 release 中的运行文件后重新启动。
|
|
166
|
+
- `.tgz` 属于本地构建产物,不提交 Git;只从干净的 `dist-headless` 目录发布已经完成上述核对
|
|
167
|
+
的 tarball。
|
|
168
|
+
- `device-token` 是 Coboot 生成的一次性设备注册 token,不是 npm token,也不要发送
|
|
169
|
+
给其他人。
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Portions Copyright (c) Microsoft Corporation.
|
|
190
|
+
Portions Copyright 2017 Google Inc.
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|