diff --git a/.github/renovate.json5 b/.github/renovate.json5 index e73c069d06..0a79c6b314 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -127,7 +127,7 @@ // patch releases, so moves past the validated release must be deliberate and // reviewed. Raise after validating a newer release. matchPackageNames: ['@opencode-ai/sdk', 'anomalyco/opencode'], - allowedVersions: '<=1.17.6', + allowedVersions: '<=1.17.9', }, { // Cap Bun at 1.3.14. The build gate requires an exact match with upstream diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 374738555c..35eb26ab4b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -95,13 +95,9 @@ jobs: run: pnpm build - name: Compare the expected and actual dist/ directories run: | - DIFF_TARGETS="dist/" - if [[ "${{ github.head_ref || github.ref_name }}" == renovate/* ]]; then - DIFF_TARGETS="dist/ ':!dist/licenses.txt'" - fi - if [ "$(eval git diff --ignore-space-at-eol $DIFF_TARGETS | wc -l)" -gt "0" ]; then + if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then echo "Detected uncommitted changes after build. See status below:" - eval git diff --text $DIFF_TARGETS + git diff --text dist/ exit 1 fi id: diff @@ -111,6 +107,17 @@ jobs: with: name: dist path: dist/ + # The SBOM is an informational artifact, not a build gate — a generation + # failure must not fail the build. + - name: Generate the dependency SBOM + id: sbom + continue-on-error: true + run: pnpm sbom --sbom-format cyclonedx --prod > sbom.cdx.json + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + if: ${{ steps.sbom.outcome == 'success' }} + with: + name: sbom-cyclonedx + path: sbom.cdx.json test: name: Test diff --git a/.github/workflows/harness-release.yaml b/.github/workflows/harness-release.yaml index ae029565ef..204e72e8be 100644 --- a/.github/workflows/harness-release.yaml +++ b/.github/workflows/harness-release.yaml @@ -51,6 +51,7 @@ jobs: base_version: ${{ steps.render.outputs.base_version }} rendered_prompt: ${{ steps.render.outputs.rendered_prompt }} has_refs: ${{ steps.render.outputs.has_refs }} + carries: ${{ steps.render.outputs.carries }} steps: - name: Checkout harness repo @@ -150,6 +151,16 @@ jobs: echo "has_refs=${HAS_REFS}" >> "$GITHUB_OUTPUT" echo "has_refs: ${HAS_REFS}" + # --- Emit carries: the comma-joined carry labels for the release notes --- + # Same set `harness patches` reports (the integrationRefs labels), e.g. + # "anomalyco/opencode#19961, anomalyco/opencode#31859, anomalyco/opencode#31638". + { + echo "carries<> "$GITHUB_OUTPUT" + echo "carries: ${BRANCHES}" + # --- Render the prompt template --- PROMPT_TPL=$(cat packages/harness/prompt.txt) RENDERED=$(printf '%s' "${PROMPT_TPL}" \ @@ -736,6 +747,8 @@ jobs: RELEASE_TAG: ${{ steps.params.outputs.release_tag }} BASE_VERSION: ${{ steps.params.outputs.base_version }} SHORT_SHA: ${{ steps.params.outputs.short_sha }} + # Comma-joined carry labels (the same set `harness patches` reports). + CARRIES: ${{ needs.prepare-integrate.outputs.carries }} run: | set -euo pipefail cd /tmp/harness-release-assets @@ -756,11 +769,30 @@ jobs: --clobber echo "Assets re-uploaded (clobber) for: ${RELEASE_TAG}" else + # Build the release notes: a summary line plus a bulleted list of the + # carried upstream refs (one per comma-separated label). + NOTES_FILE="$(mktemp)" + { + printf '%s\n\n' "Harness build of OpenCode ${BASE_VERSION} (integration ${SHORT_SHA})." + if [ -n "${CARRIES:-}" ]; then + printf '%s\n' "### Carries" + IFS=',' + for CARRY in ${CARRIES}; do + TRIMMED="$(echo "${CARRY}" | sed -E 's/^[[:space:]]+//; s/[[:space:]]+$//')" + [ -n "${TRIMMED}" ] && printf -- '- %s\n' "${TRIMMED}" + done + unset IFS + fi + } > "${NOTES_FILE}" + # Quote the tag — it contains '+' which some shells/tools misinterpret. + # --latest=false: a harness release must never take GitHub's "latest" + # pointer from the product agent releases. echo "Creating GitHub Release: ${RELEASE_TAG}" gh release create "${RELEASE_TAG}" \ --title "${RELEASE_TAG}" \ - --notes "Harness build of OpenCode ${BASE_VERSION} (integration ${SHORT_SHA})." \ + --notes-file "${NOTES_FILE}" \ + --latest=false \ opencode-linux-x64.tar.gz \ opencode-linux-arm64.tar.gz \ opencode-darwin-x64.zip \ diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index b6fbb0a6f0..3646673d66 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -52,7 +52,7 @@ jobs: secrets: APPLICATION_ID: ${{ secrets.APPLICATION_ID }} APPLICATION_PRIVATE_KEY: ${{ secrets.APPLICATION_PRIVATE_KEY }} - uses: bfra-me/.github/.github/workflows/renovate.yaml@3f97c9262265bc1881a8d34e99ae83df22ea8b89 # v4.16.27 + uses: bfra-me/.github/.github/workflows/renovate.yaml@1fcc99e06473c76aac512169b066da273fba218c # v4.16.28 with: log-level: ${{ inputs.log-level || 'debug' }} print-config: ${{ inputs.print-config || false }} diff --git a/.github/workflows/update-repo-settings.yaml b/.github/workflows/update-repo-settings.yaml index ad1d518578..040178aa83 100644 --- a/.github/workflows/update-repo-settings.yaml +++ b/.github/workflows/update-repo-settings.yaml @@ -18,4 +18,4 @@ jobs: secrets: APPLICATION_ID: ${{ secrets.APPLICATION_ID }} APPLICATION_PRIVATE_KEY: ${{ secrets.APPLICATION_PRIVATE_KEY }} - uses: bfra-me/.github/.github/workflows/update-repo-settings.yaml@3f97c9262265bc1881a8d34e99ae83df22ea8b89 # v4.16.27 + uses: bfra-me/.github/.github/workflows/update-repo-settings.yaml@1fcc99e06473c76aac512169b066da273fba218c # v4.16.28 diff --git a/AGENTS.md b/AGENTS.md index 50f05dd4f2..3f50cc4024 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -226,5 +226,5 @@ pnpm build # Type check + bundle to dist/ (must stay in sync) Read-only dependency source repositories are available under `.slim/clonedeps/repos/` for inspection. Do not edit these clones. -- `.slim/clonedeps/repos/anomalyco__opencode/packages/opencode/` — `anomalyco/opencode` at `v1.17.6`; OpenCode server source. Read `src/session/{prompt,message,message-v2,processor}.ts` to understand how `message.part.updated` bus events transition through the tool-part lifecycle (pending → running → completed) the Fro Bot harness consumes. -- `.slim/clonedeps/repos/anomalyco__opencode/packages/sdk/js/` — `@opencode-ai/sdk` at `v1.17.6`; thin HTTP + SSE client over the server. Useful for confirming event shapes pass through unchanged and for verifying our `processEventStream` consumer matches the SSE subscription contract. +- `.slim/clonedeps/repos/anomalyco__opencode/packages/opencode/` — `anomalyco/opencode` at `v1.17.9`; OpenCode server source. Read `src/session/{prompt,message,message-v2,processor}.ts` to understand how `message.part.updated` bus events transition through the tool-part lifecycle (pending → running → completed) the Fro Bot harness consumes. +- `.slim/clonedeps/repos/anomalyco__opencode/packages/sdk/js/` — `@opencode-ai/sdk` at `v1.17.9`; thin HTTP + SSE client over the server. Useful for confirming event shapes pass through unchanged and for verifying our `processEventStream` consumer matches the SSE subscription contract. diff --git a/RULES.md b/RULES.md index 6d5a6198d0..e9c093f09d 100644 --- a/RULES.md +++ b/RULES.md @@ -730,7 +730,8 @@ lint-staged # Runs on staged files - **Bundle (setup)**: `dist/setup.js` (ESM, minified) - **Bundle (post)**: `dist/post.js` (ESM, minified) - post-action cache hook - **Bundle (plugin)**: `dist/plugin/fro-bot-agent.js` (ESM, self-contained) -- **Licenses**: `dist/licenses.txt` (auto-extracted) +- **Third-party notices**: `dist/THIRD_PARTY_NOTICES.txt` (auto-generated, committed attribution for the bundled dependencies) +- **SBOM**: a CycloneDX dependency SBOM is generated in CI (`pnpm sbom`) and uploaded as a build artifact (not committed) - **Source maps**: Not included in production ### dist/ Directory Rules diff --git a/deploy/workspace.Dockerfile b/deploy/workspace.Dockerfile index bba3a9348e..712662c9e2 100644 --- a/deploy/workspace.Dockerfile +++ b/deploy/workspace.Dockerfile @@ -42,7 +42,7 @@ WORKDIR /app # OPENCODE_VERSION is the harness build of OpenCode (fro-bot/agent releases), # in the form +harness.. Bumped in lockstep with the action default # by the harness-release workflow; merge the auto-PR to advance both surfaces. -ARG OPENCODE_VERSION=1.17.6+harness.13169873 +ARG OPENCODE_VERSION=1.17.9+harness.bd89c818 ARG SYSTEMATIC_VERSION=2.32.0 # System packages: diff --git a/dist/THIRD_PARTY_NOTICES.txt b/dist/THIRD_PARTY_NOTICES.txt new file mode 100644 index 0000000000..8fe1ca2db0 --- /dev/null +++ b/dist/THIRD_PARTY_NOTICES.txt @@ -0,0 +1,14767 @@ +@actions/artifact@6.2.1 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/cache@6.0.1 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/core@3.0.1 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/exec@3.0.0 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/github@9.1.1 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/glob@0.6.1 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/http-client@4.0.1 +MIT +Actions Http Client for Node.js + +Copyright (c) GitHub, Inc. + +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@actions/io@3.0.2 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/tool-cache@4.0.0 +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@aws-crypto/crc32@5.2.0 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-crypto/crc32c@5.2.0 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-crypto/sha1-browser@5.2.0 +Apache-2.0 + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-crypto/sha256-browser@5.2.0 +Apache-2.0 + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-crypto/sha256-js@5.2.0 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-crypto/supports-web-crypto@5.2.0 +Apache-2.0 + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-crypto/util@5.2.0 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-sdk/checksums@3.1000.7 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-sdk/client-s3@3.1071.0 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-sdk/core@3.974.22 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/credential-provider-env@3.972.48 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/credential-provider-http@3.972.50 +Apache-2.0 +Apache-2.0 + +@aws-sdk/credential-provider-ini@3.972.55 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/credential-provider-login@3.972.54 +Apache-2.0 +Apache-2.0 + +@aws-sdk/credential-provider-node@3.972.57 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/credential-provider-process@3.972.48 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/credential-provider-sso@3.972.54 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/credential-provider-web-identity@3.972.54 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/middleware-flexible-checksums@3.974.32 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-sdk/middleware-sdk-s3@3.972.53 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-sdk/nested-clients@3.997.22 +Apache-2.0 +Apache-2.0 + +@aws-sdk/signature-v4-multi-region@3.996.35 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@aws-sdk/token-providers@3.1071.0 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/types@3.973.13 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/util-locate-window@3.965.5 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws-sdk/xml-builder@3.972.30 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@aws/lambda-invoke-store@0.2.4 +Apache-2.0 + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + +@azure/abort-controller@2.1.2 +MIT +The MIT License (MIT) + +Copyright (c) 2020 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-auth@1.10.1 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-client@1.10.2 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-http-compat@2.4.0 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-lro@2.7.2 +MIT +The MIT License (MIT) + +Copyright (c) 2020 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-paging@1.6.2 +MIT +The MIT License (MIT) + +Copyright (c) 2020 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-rest-pipeline@1.23.0 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-tracing@1.3.1 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-util@1.13.1 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/core-xml@1.5.1 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/logger@1.3.0 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/storage-blob@12.32.0 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@azure/storage-common@12.4.0 +MIT +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@bfra.me/es@0.1.0 +MIT +MIT + +@bufbuild/protobuf@2.12.0 +(Apache-2.0 AND BSD-3-Clause) +(Apache-2.0 AND BSD-3-Clause) + +@bufbuild/protoplugin@2.12.0 +Apache-2.0 +Apache-2.0 + +@discordjs/builders@1.14.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 Noel Buechler + Copyright 2021 Vlad Frangu + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@discordjs/collection@2.1.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 Noel Buechler + Copyright 2015 Amish Shah + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@discordjs/formatters@0.6.2 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 Noel Buechler + Copyright 2021 Vlad Frangu + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@discordjs/rest@2.6.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +Copyright 2021 Noel Buechler +Copyright 2021 Vlad Frangu +Copyright 2021 Aura Román + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + +@discordjs/util@1.2.0 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2022 Noel Buechler + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@discordjs/ws@1.2.3 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2022 Noel Buechler + Copyright 2022 Denis Cristea + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@hono/node-server@1.19.14 +MIT +MIT License + +Copyright (c) 2022 - present, Yusuke Wada and Hono contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@isaacs/cliui@8.0.2 +ISC +Copyright (c) 2015, Contributors + +Permission to use, copy, modify, and/or distribute this software +for any purpose with or without fee is hereby granted, provided +that the above copyright notice and this permission notice +appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE +LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +@nodable/entities@2.1.1 +MIT +MIT + +@octokit/auth-app@8.2.0 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/auth-oauth-app@9.0.3 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/auth-oauth-device@8.0.3 +MIT +MIT License + +Copyright (c) 2021 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/auth-oauth-user@6.0.2 +MIT +MIT License + +Copyright (c) 2021 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/auth-token@6.0.0 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/core@7.0.6 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/endpoint@11.0.3 +MIT +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/graphql@9.0.3 +MIT +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/oauth-authorization-url@8.0.0 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/oauth-methods@6.0.2 +MIT +MIT License + +Copyright (c) 2021 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/openapi-types@27.0.0 +MIT +Copyright (c) GitHub 2025 - Licensed as MIT. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/plugin-paginate-rest@14.0.0 +MIT +MIT License Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/plugin-request-log@6.0.0 +MIT +MIT License Copyright (c) 2020 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/plugin-rest-endpoint-methods@17.0.0 +MIT +MIT License Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@octokit/plugin-retry@8.1.0 +MIT +MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@octokit/request@10.0.10 +MIT +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/request-error@7.1.0 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/types@16.0.0 +MIT +MIT License Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@opencode-ai/sdk@1.17.9 +MIT +MIT + +@pkgjs/parseargs@0.11.0 +MIT + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@protobuf-ts/plugin@2.11.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + +@protobuf-ts/protoc@2.11.1 +Apache-2.0 +Apache-2.0 + +@protobuf-ts/runtime@2.11.1 +(Apache-2.0 AND BSD-3-Clause) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + +@protobuf-ts/runtime-rpc@2.11.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + +@sapphire/async-queue@1.5.5 +MIT +MIT + +@sapphire/shapeshift@4.0.0 +MIT +# The MIT License (MIT) + +Copyright © `2021` `The Sapphire Community and its contributors` + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +@sapphire/snowflake@3.5.5 +MIT +MIT + +@smithy/core@3.24.6 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@smithy/credential-provider-imds@4.3.8 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@smithy/fetch-http-handler@5.4.6 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@smithy/is-array-buffer@2.2.0 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@smithy/node-http-handler@4.7.7 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@smithy/signature-v4@5.4.6 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@smithy/types@4.14.3 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@smithy/util-buffer-from@2.2.0 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@smithy/util-utf8@2.3.0 +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@standard-schema/spec@1.1.0 +MIT +MIT License + +Copyright (c) 2024 Colin McDonnell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@types/node@24.13.1 +MIT + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE + + +@types/ws@8.18.1 +MIT + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE + + +@typescript/vfs@1.6.4 +MIT +The MIT License (MIT) +Copyright (c) Microsoft Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT +NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@typespec/ts-http-runtime@0.3.6 +MIT +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@vladfrangu/async_event_emitter@2.4.7 +MIT +# The MIT License (MIT) + +Copyright © `2022` `Vlad Frangu` + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +abort-controller@3.0.0 +MIT +MIT License + +Copyright (c) 2017 Toru Nagashima + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +agent-base@7.1.4 +MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +ansi-regex@5.0.1 +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +ansi-styles@4.3.0 +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +archiver@7.0.1 +MIT +Copyright (c) 2012-2014 Chris Talkington, contributors. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +archiver-utils@5.0.2 +MIT +Copyright (c) 2015 Chris Talkington. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +async@3.2.6 +MIT +Copyright (c) 2010-2018 Caolan McMahon + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +b4a@1.8.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +balanced-match@4.0.4 +MIT +(MIT) + +Original code Copyright Julian Gruber + +Port to TypeScript Copyright Isaac Z. Schlueter + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +bare-events@2.9.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +bare-fs@4.7.2 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +bare-os@3.9.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +bare-path@3.0.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +bare-stream@2.13.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +bare-url@2.4.5 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +base64-js@1.5.1 +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jameson Little + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +before-after-hook@4.0.0 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018 Gregor Martynus and other contributors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +binary@0.3.0 +MIT +MIT + +bottleneck@2.19.5 +MIT +The MIT License (MIT) + +Copyright (c) 2014 Simon Grondin + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +bowser@2.14.1 +MIT +Copyright 2015, Dustin Diaz (the "Original Author") +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +Distributions of all or part of the Software intended to be used +by the recipients as they would use the unmodified Software, +containing modifications that substantially alter, remove, or +disable functionality of the Software, outside of the documented +configuration mechanisms provided by the Software, shall be +modified such that the Original Author's bug reporting email +addresses and urls are either replaced with the contact information +of the parties responsible for the changes, or removed entirely. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +Except where noted, this license applies to any and all software +programs and associated documentation files created by the +Original Author, when distributed with the Software. + + +brace-expansion@5.0.6 +MIT +MIT License + +Copyright Julian Gruber + +TypeScript port Copyright Isaac Z. Schlueter + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +buffer@6.0.3 +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh, and other contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +buffer-crc32@1.0.0 +MIT +The MIT License + +Copyright (c) 2013-2024 Brian J. Brennan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the +Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +chainsaw@0.1.0 +MIT/X11 +MIT/X11 + +color-convert@2.0.1 +MIT +Copyright (c) 2011-2016 Heather Arthur + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +color-name@1.1.4 +MIT +The MIT License (MIT) +Copyright (c) 2015 Dmitry Ivanov + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +compress-commons@6.0.2 +MIT +Copyright (c) 2014 Chris Talkington, contributors. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +content-type@2.0.0 +MIT +(The MIT License) + +Copyright (c) 2015 Douglas Christopher Wilson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +core-util-is@1.0.3 +MIT +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +crc-32@1.2.2 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (C) 2014-present SheetJS LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +crc32-stream@6.0.0 +MIT +Copyright (c) 2014 Chris Talkington, contributors. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +cross-spawn@7.0.6 +MIT +The MIT License (MIT) + +Copyright (c) 2018 Made With MOXY Lda + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +debug@4.4.3 +MIT +(The MIT License) + +Copyright (c) 2014-2017 TJ Holowaychuk +Copyright (c) 2018-2021 Josh Junon + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software +and associated documentation files (the 'Software'), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +discord-api-types@0.38.48 +MIT +MIT License + +Copyright (c) 2020 vladfrangu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +discord.js@14.26.4 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 Noel Buechler + Copyright 2015 Amish Shah + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +effect@3.21.3 +MIT +MIT License + +Copyright (c) 2023 Effectful Technologies Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +emoji-regex@8.0.0 +MIT +Copyright Mathias Bynens + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +event-target-shim@5.0.1 +MIT +The MIT License (MIT) + +Copyright (c) 2015 Toru Nagashima + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +events@3.3.0 +MIT +MIT + +Copyright Joyent, Inc. and other Node contributors. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + + +events-universal@1.0.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +fast-check@3.23.2 +MIT +MIT License + +Copyright (c) 2017 Nicolas DUBIEN + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +fast-deep-equal@3.1.3 +MIT +MIT License + +Copyright (c) 2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +fast-fifo@1.3.2 +MIT +The MIT License (MIT) + +Copyright (c) 2019 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +fast-xml-builder@1.2.0 +MIT +MIT License + +Copyright (c) 2026 Natural Intelligence + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +fast-xml-parser@5.8.0 +MIT +MIT License + +Copyright (c) 2017 Amit Kumar Gupta + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +foreground-child@3.3.1 +ISC +The ISC License + +Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +glob@10.5.0 +ISC +The ISC License + +Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +graceful-fs@4.2.11 +ISC +The ISC License + +Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +hono@4.12.26 +MIT +MIT License + +Copyright (c) 2021 - present, Yusuke Wada and Hono contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +http-proxy-agent@7.0.2 +MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +https-proxy-agent@7.0.6 +MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +ieee754@1.2.1 +BSD-3-Clause +Copyright 2008 Fair Oaks Labs, Inc. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +inherits@2.0.4 +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + + +is-fullwidth-code-point@3.0.0 +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +is-in-ci@2.0.0 +MIT +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +is-stream@2.0.1 +MIT +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +isarray@1.0.0 +MIT +MIT + +isexe@2.0.0 +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +jackspeak@3.4.3 +BlueOak-1.0.0 +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +**_As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim._** + + +json-with-bigint@3.5.8 +MIT +MIT License + +Copyright (c) 2023 Ivan Korolenko + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +jwt-decode@4.0.0 +MIT +The MIT License (MIT) + +Copyright (c) 2015 Auth0, Inc. (http://auth0.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +lazystream@1.0.1 +MIT +Copyright (c) 2013 J. Pommerening, contributors. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + + +lodash@4.18.1 +MIT +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +lodash.snakecase@4.1.1 +MIT +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +lru-cache@10.4.3 +ISC +The ISC License + +Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +magic-bytes.js@1.13.0 +MIT +MIT License + +Copyright (c) 2022 Lars Kölpin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +minimatch@9.0.9 +ISC +The ISC License + +Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +minimist@1.2.8 +MIT +This software is released under the MIT license: + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +minipass@7.1.3 +BlueOak-1.0.0 +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +mkdirp@0.5.6 +MIT +Copyright 2010 James Halliday (mail@substack.net) + +This project is free software released under the MIT/X11 license: + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +ms@2.1.3 +MIT +The MIT License (MIT) + +Copyright (c) 2020 Vercel, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +normalize-path@3.0.0 +MIT +The MIT License (MIT) + +Copyright (c) 2014-2018, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +package-json-from-dist@1.0.1 +BlueOak-1.0.0 +All packages under `src/` are licensed according to the terms in +their respective `LICENSE` or `LICENSE.md` files. + +The remainder of this project is licensed under the Blue Oak +Model License, as follows: + +----- + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +path-expression-matcher@1.5.0 +MIT +MIT License + +Copyright (c) 2024 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +path-key@3.1.1 +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +path-scurry@1.11.1 +BlueOak-1.0.0 +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +process@0.11.10 +MIT +(The MIT License) + +Copyright (c) 2013 Roman Shtylman + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +process-nextick-args@2.0.1 +MIT +# Copyright (c) 2015 Calvin Metcalf + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.** + + +pure-rand@6.1.0 +MIT +MIT License + +Copyright (c) 2018 Nicolas DUBIEN + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +readable-stream@4.7.0 +MIT +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + +readdir-glob@1.1.3 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2020 Yann Armelin + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +safe-buffer@5.2.1 +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +semver@7.8.4 +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +shebang-command@2.0.0 +MIT +MIT License + +Copyright (c) Kevin Mårtensson (github.com/kevva) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +shebang-regex@3.0.0 +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +signal-exit@4.1.0 +ISC +The ISC License + +Copyright (c) 2015-2023 Benjamin Coe, Isaac Z. Schlueter, and Contributors + +Permission to use, copy, modify, and/or distribute this software +for any purpose with or without fee is hereby granted, provided +that the above copyright notice and this permission notice +appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE +LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +streamx@2.27.0 +MIT +The MIT License (MIT) + +Copyright (c) 2019 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +string_decoder@1.3.0 +MIT +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + + +string-width@4.2.3 +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +strip-ansi@6.0.1 +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +strnum@2.3.0 +MIT +MIT License + +Copyright (c) 2021 Natural Intelligence + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +tar-stream@3.2.0 +MIT +The MIT License (MIT) + +Copyright (c) 2014 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +teex@1.0.1 +MIT +The MIT License (MIT) + +Copyright (c) 2020 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +text-decoder@1.2.7 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +toad-cache@3.7.1 +MIT +MIT License + +Copyright (c) 2023 Igor Savin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +traverse@0.3.9 +MIT/X11 +Copyright 2010 James Halliday (mail@substack.net) + +This project is free software released under the MIT/X11 license: +http://www.opensource.org/licenses/mit-license.php + +Copyright 2010 James Halliday (mail@substack.net) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +ts-mixer@6.0.4 +MIT +MIT License + +Copyright (c) 2024 Tanner Nielsen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +tslib@2.8.1 +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +tunnel@0.0.6 +MIT +The MIT License (MIT) + +Copyright (c) 2012 Koichi Kobayashi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +typescript@5.4.5 +Apache-2.0 +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + +undici@6.26.0 +MIT +MIT License + +Copyright (c) Matteo Collina and Undici contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +undici-types@7.18.2 +MIT +MIT License + +Copyright (c) Matteo Collina and Undici contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +universal-github-app-jwt@2.2.2 +MIT +The MIT License + +Copyright (c) 2019 Gregor Martynus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +universal-user-agent@7.0.3 +ISC +# [ISC License](https://spdx.org/licenses/ISC) + +Copyright (c) 2018-2021, Gregor Martynus (https://github.com/gr2m) + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +unzip-stream@0.3.4 +MIT +Copyright (c) 2017 Michal Hruby +Copyright (c) 2012 - 2013 Near Infinity Corporation + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +util-deprecate@1.0.2 +MIT +(The MIT License) + +Copyright (c) 2014 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +which@2.0.2 +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +wrap-ansi@7.0.0 +MIT +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +ws@8.21.0 +MIT +Copyright (c) 2011 Einar Otto Stangvik +Copyright (c) 2013 Arnout Kazemier and contributors +Copyright (c) 2016 Luigi Pinca and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +xml-naming@0.1.0 +MIT +MIT + +zip-stream@6.0.1 +MIT +Copyright (c) 2014 Chris Talkington, contributors. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/dist/artifact-CiwRO5nl.js b/dist/artifact-DpEBMBCS.js similarity index 99% rename from dist/artifact-CiwRO5nl.js rename to dist/artifact-DpEBMBCS.js index 8933c1eb4a..09c6885277 100644 --- a/dist/artifact-CiwRO5nl.js +++ b/dist/artifact-DpEBMBCS.js @@ -22,7 +22,7 @@ n.exports={WebsocketFrameSend:class{constructor(e){this.frameData=e}createFrame( `);o=c.pop()??``;for(let e of c){let i=e.split(` `),a=[],o;for(let e of i)if(e.startsWith(`data:`))a.push(e.replace(/^data:\s*/,``));else if(e.startsWith(`event:`))o=e.replace(/^event:\s*/,``);else if(e.startsWith(`id:`))u=e.replace(/^id:\s*/,``);else if(e.startsWith(`retry:`)){let t=Number.parseInt(e.replace(/^retry:\s*/,``),10);Number.isNaN(t)||(s=t)}let c,l=!1;if(a.length){let e=a.join(` `);try{c=JSON.parse(e),l=!0}catch{c=e}}l&&(r&&await r(c),n&&(c=await n(c))),t?.({data:c,event:o,id:u,retry:s}),a.length&&(yield c)}}}finally{p.removeEventListener(`abort`,d),a.releaseLock()}break}catch(t){if(e?.(t),a!==void 0&&f>=a)break;await d(Math.min(s*2**(f-1),o??3e4))}}}()}},ja=async(e,t)=>{let n=typeof t==`function`?await t(e):t;if(n)return e.scheme===`bearer`?`Bearer ${n}`:e.scheme===`basic`?`Basic ${btoa(n)}`:n},Ma={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},Na=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},Pa=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},Fa=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},Ia=({allowReserved:e,explode:t,name:n,style:r,value:i})=>{if(!t){let t=(e?i:i.map(e=>encodeURIComponent(e))).join(Pa(r));switch(r){case`label`:return`.${t}`;case`matrix`:return`;${n}=${t}`;case`simple`:return t;default:return`${n}=${t}`}}let a=Na(r),o=i.map(t=>r===`label`||r===`simple`?e?t:encodeURIComponent(t):La({allowReserved:e,name:n,value:t})).join(a);return r===`label`||r===`matrix`?a+o:o},La=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},Ra=({allowReserved:e,explode:t,name:n,style:r,value:i,valueOnly:a})=>{if(i instanceof Date)return a?i.toISOString():`${n}=${i.toISOString()}`;if(r!==`deepObject`&&!t){let t=[];Object.entries(i).forEach(([n,r])=>{t=[...t,n,e?r:encodeURIComponent(r)]});let a=t.join(`,`);switch(r){case`form`:return`${n}=${a}`;case`label`:return`.${a}`;case`matrix`:return`;${n}=${a}`;default:return a}}let o=Fa(r),s=Object.entries(i).map(([t,i])=>La({allowReserved:e,name:r===`deepObject`?`${n}[${t}]`:t,value:i})).join(o);return r===`label`||r===`matrix`?o+s:s},za=/\{[^{}]+\}/g,Ba=({path:e,url:t})=>{let n=t,r=t.match(za);if(r)for(let t of r){let r=!1,i=t.substring(1,t.length-1),a=`simple`;i.endsWith(`*`)&&(r=!0,i=i.substring(0,i.length-1)),i.startsWith(`.`)?(i=i.substring(1),a=`label`):i.startsWith(`;`)&&(i=i.substring(1),a=`matrix`);let o=e[i];if(o==null)continue;if(Array.isArray(o)){n=n.replace(t,Ia({explode:r,name:i,style:a,value:o}));continue}if(typeof o==`object`){n=n.replace(t,Ra({explode:r,name:i,style:a,value:o,valueOnly:!0}));continue}if(a===`matrix`){n=n.replace(t,`;${La({name:i,value:o})}`);continue}let s=encodeURIComponent(a===`label`?`.${o}`:o);n=n.replace(t,s)}return n},Va=({baseUrl:e,path:t,query:n,querySerializer:r,url:i})=>{let a=i.startsWith(`/`)?i:`/${i}`,o=(e??``)+a;t&&(o=Ba({path:t,url:o}));let s=n?r(n):``;return s.startsWith(`?`)&&(s=s.substring(1)),s&&(o+=`?${s}`),o},Ha=({allowReserved:e,array:t,object:n}={})=>r=>{let i=[];if(r&&typeof r==`object`)for(let a in r){let o=r[a];if(o!=null)if(Array.isArray(o)){let n=Ia({allowReserved:e,explode:!0,name:a,style:`form`,value:o,...t});n&&i.push(n)}else if(typeof o==`object`){let t=Ra({allowReserved:e,explode:!0,name:a,style:`deepObject`,value:o,...n});t&&i.push(t)}else{let t=La({allowReserved:e,name:a,value:o});t&&i.push(t)}}return i.join(`&`)},Ua=e=>{if(!e)return`stream`;let t=e.split(`;`)[0]?.trim();if(t){if(t.startsWith(`application/json`)||t.endsWith(`+json`))return`json`;if(t===`multipart/form-data`)return`formData`;if([`application/`,`audio/`,`image/`,`video/`].some(e=>t.startsWith(e)))return`blob`;if(t.startsWith(`text/`))return`text`}},Wa=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get(`Cookie`)?.includes(`${t}=`)):!1,Ga=async({security:e,...t})=>{for(let n of e){if(Wa(t,n.name))continue;let e=await ja(n,t.auth);if(!e)continue;let r=n.name??`Authorization`;switch(n.in){case`query`:t.query||={},t.query[r]=e;break;case`cookie`:t.headers.append(`Cookie`,`${r}=${e}`);break;default:t.headers.set(r,e);break}}},Ka=e=>Va({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==`function`?e.querySerializer:Ha(e.querySerializer),url:e.url}),qa=(e,t)=>{let n={...e,...t};return n.baseUrl?.endsWith(`/`)&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=Ja(e.headers,t.headers),n},Ja=(...e)=>{let t=new Headers;for(let n of e){if(!n||typeof n!=`object`)continue;let e=n instanceof Headers?n.entries():Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,typeof r==`object`?JSON.stringify(r):r)}return t};var Ya=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(e){return typeof e==`number`?this._fns[e]?e:-1:this._fns.indexOf(e)}exists(e){let t=this.getInterceptorIndex(e);return!!this._fns[t]}eject(e){let t=this.getInterceptorIndex(e);this._fns[t]&&(this._fns[t]=null)}update(e,t){let n=this.getInterceptorIndex(e);return this._fns[n]?(this._fns[n]=t,e):!1}use(e){return this._fns=[...this._fns,e],this._fns.length-1}};const Xa=()=>({error:new Ya,request:new Ya,response:new Ya}),Za=Ha({allowReserved:!1,array:{explode:!0,style:`form`},object:{explode:!0,style:`deepObject`}}),Qa={"Content-Type":`application/json`},$a=(e={})=>({...Ma,headers:Qa,parseAs:`auto`,querySerializer:Za,...e}),eo=(e={})=>{let t=qa($a(),e),n=()=>({...t}),r=e=>(t=qa(t,e),n()),i=Xa(),a=async e=>{let n={...t,...e,fetch:e.fetch??t.fetch??globalThis.fetch,headers:Ja(t.headers,e.headers),serializedBody:void 0};return n.security&&await Ga({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.serializedBody===void 0||n.serializedBody===``)&&n.headers.delete(`Content-Type`),{opts:n,url:Ka(n)}},o=async e=>{let{opts:t,url:n}=await a(e),r={redirect:`follow`,...t,body:t.serializedBody},o=new Request(n,r);for(let e of i.request._fns)e&&(o=await e(o,t));let s=t.fetch,c=await s(o);for(let e of i.response._fns)e&&(c=await e(c,o,t));let l={request:o,response:c};if(c.ok){if(c.status===204||c.headers.get(`Content-Length`)===`0`)return t.responseStyle===`data`?{}:{data:{},...l};let e=(t.parseAs===`auto`?Ua(c.headers.get(`Content-Type`)):t.parseAs)??`json`,n;switch(e){case`arrayBuffer`:case`blob`:case`formData`:case`json`:case`text`:n=await c[e]();break;case`stream`:return t.responseStyle===`data`?c.body:{data:c.body,...l}}return e===`json`&&(t.responseValidator&&await t.responseValidator(n),t.responseTransformer&&(n=await t.responseTransformer(n))),t.responseStyle===`data`?n:{data:n,...l}}let u=await c.text(),d;try{d=JSON.parse(u)}catch{}let f=d??u,p=f;for(let e of i.error._fns)e&&(p=await e(f,c,o,t));if(p||={},t.throwOnError)throw p;return t.responseStyle===`data`?void 0:{error:p,...l}},s=e=>{let t=t=>o({...t,method:e});return t.sse=async t=>{let{opts:n,url:r}=await a(t);return Aa({...n,body:n.body,headers:n.headers,method:e,url:r})},t};return{buildUrl:Ka,connect:s(`CONNECT`),delete:s(`DELETE`),get:s(`GET`),getConfig:n,head:s(`HEAD`),interceptors:i,options:s(`OPTIONS`),patch:s(`PATCH`),post:s(`POST`),put:s(`PUT`),request:o,setConfig:r,trace:s(`TRACE`)}};Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`});const to=eo($a({baseUrl:`http://localhost:4096`}));var no=class{_client=to;constructor(e){e?.client&&(this._client=e.client)}},ro=class extends no{event(e){return(e?.client??this._client).get.sse({url:`/global/event`,...e})}},io=class extends no{list(e){return(e?.client??this._client).get({url:`/project`,...e})}current(e){return(e?.client??this._client).get({url:`/project/current`,...e})}},ao=class extends no{list(e){return(e?.client??this._client).get({url:`/pty`,...e})}create(e){return(e?.client??this._client).post({url:`/pty`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}remove(e){return(e.client??this._client).delete({url:`/pty/{id}`,...e})}get(e){return(e.client??this._client).get({url:`/pty/{id}`,...e})}update(e){return(e.client??this._client).put({url:`/pty/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}connect(e){return(e.client??this._client).get({url:`/pty/{id}/connect`,...e})}},oo=class extends no{get(e){return(e?.client??this._client).get({url:`/config`,...e})}update(e){return(e?.client??this._client).patch({url:`/config`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}providers(e){return(e?.client??this._client).get({url:`/config/providers`,...e})}},Z=class extends no{ids(e){return(e?.client??this._client).get({url:`/experimental/tool/ids`,...e})}list(e){return(e.client??this._client).get({url:`/experimental/tool`,...e})}},so=class extends no{dispose(e){return(e?.client??this._client).post({url:`/instance/dispose`,...e})}},co=class extends no{get(e){return(e?.client??this._client).get({url:`/path`,...e})}},lo=class extends no{get(e){return(e?.client??this._client).get({url:`/vcs`,...e})}},uo=class extends no{list(e){return(e?.client??this._client).get({url:`/session`,...e})}create(e){return(e?.client??this._client).post({url:`/session`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}status(e){return(e?.client??this._client).get({url:`/session/status`,...e})}delete(e){return(e.client??this._client).delete({url:`/session/{id}`,...e})}get(e){return(e.client??this._client).get({url:`/session/{id}`,...e})}update(e){return(e.client??this._client).patch({url:`/session/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}children(e){return(e.client??this._client).get({url:`/session/{id}/children`,...e})}todo(e){return(e.client??this._client).get({url:`/session/{id}/todo`,...e})}init(e){return(e.client??this._client).post({url:`/session/{id}/init`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}fork(e){return(e.client??this._client).post({url:`/session/{id}/fork`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}abort(e){return(e.client??this._client).post({url:`/session/{id}/abort`,...e})}unshare(e){return(e.client??this._client).delete({url:`/session/{id}/share`,...e})}share(e){return(e.client??this._client).post({url:`/session/{id}/share`,...e})}diff(e){return(e.client??this._client).get({url:`/session/{id}/diff`,...e})}summarize(e){return(e.client??this._client).post({url:`/session/{id}/summarize`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}messages(e){return(e.client??this._client).get({url:`/session/{id}/message`,...e})}prompt(e){return(e.client??this._client).post({url:`/session/{id}/message`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}message(e){return(e.client??this._client).get({url:`/session/{id}/message/{messageID}`,...e})}promptAsync(e){return(e.client??this._client).post({url:`/session/{id}/prompt_async`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}command(e){return(e.client??this._client).post({url:`/session/{id}/command`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}shell(e){return(e.client??this._client).post({url:`/session/{id}/shell`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}revert(e){return(e.client??this._client).post({url:`/session/{id}/revert`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}unrevert(e){return(e.client??this._client).post({url:`/session/{id}/unrevert`,...e})}},fo=class extends no{list(e){return(e?.client??this._client).get({url:`/command`,...e})}},po=class extends no{authorize(e){return(e.client??this._client).post({url:`/provider/{id}/oauth/authorize`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}callback(e){return(e.client??this._client).post({url:`/provider/{id}/oauth/callback`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}},mo=class extends no{list(e){return(e?.client??this._client).get({url:`/provider`,...e})}auth(e){return(e?.client??this._client).get({url:`/provider/auth`,...e})}oauth=new po({client:this._client})},ho=class extends no{text(e){return(e.client??this._client).get({url:`/find`,...e})}files(e){return(e.client??this._client).get({url:`/find/file`,...e})}symbols(e){return(e.client??this._client).get({url:`/find/symbol`,...e})}},go=class extends no{list(e){return(e.client??this._client).get({url:`/file`,...e})}read(e){return(e.client??this._client).get({url:`/file/content`,...e})}status(e){return(e?.client??this._client).get({url:`/file/status`,...e})}},_o=class extends no{log(e){return(e?.client??this._client).post({url:`/log`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}agents(e){return(e?.client??this._client).get({url:`/agent`,...e})}},vo=class extends no{remove(e){return(e.client??this._client).delete({url:`/mcp/{name}/auth`,...e})}start(e){return(e.client??this._client).post({url:`/mcp/{name}/auth`,...e})}callback(e){return(e.client??this._client).post({url:`/mcp/{name}/auth/callback`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}authenticate(e){return(e.client??this._client).post({url:`/mcp/{name}/auth/authenticate`,...e})}set(e){return(e.client??this._client).put({url:`/auth/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}},yo=class extends no{status(e){return(e?.client??this._client).get({url:`/mcp`,...e})}add(e){return(e?.client??this._client).post({url:`/mcp`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}connect(e){return(e.client??this._client).post({url:`/mcp/{name}/connect`,...e})}disconnect(e){return(e.client??this._client).post({url:`/mcp/{name}/disconnect`,...e})}auth=new vo({client:this._client})},bo=class extends no{status(e){return(e?.client??this._client).get({url:`/lsp`,...e})}},xo=class extends no{status(e){return(e?.client??this._client).get({url:`/formatter`,...e})}},So=class extends no{next(e){return(e?.client??this._client).get({url:`/tui/control/next`,...e})}response(e){return(e?.client??this._client).post({url:`/tui/control/response`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}},Co=class extends no{appendPrompt(e){return(e?.client??this._client).post({url:`/tui/append-prompt`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}openHelp(e){return(e?.client??this._client).post({url:`/tui/open-help`,...e})}openSessions(e){return(e?.client??this._client).post({url:`/tui/open-sessions`,...e})}openThemes(e){return(e?.client??this._client).post({url:`/tui/open-themes`,...e})}openModels(e){return(e?.client??this._client).post({url:`/tui/open-models`,...e})}submitPrompt(e){return(e?.client??this._client).post({url:`/tui/submit-prompt`,...e})}clearPrompt(e){return(e?.client??this._client).post({url:`/tui/clear-prompt`,...e})}executeCommand(e){return(e?.client??this._client).post({url:`/tui/execute-command`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}showToast(e){return(e?.client??this._client).post({url:`/tui/show-toast`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}publish(e){return(e?.client??this._client).post({url:`/tui/publish`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}control=new So({client:this._client})},wo=class extends no{subscribe(e){return(e?.client??this._client).get.sse({url:`/event`,...e})}},To=class extends no{postSessionIdPermissionsPermissionId(e){return(e.client??this._client).post({url:`/session/{id}/permissions/{permissionID}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}global=new ro({client:this._client});project=new io({client:this._client});pty=new ao({client:this._client});config=new oo({client:this._client});tool=new Z({client:this._client});instance=new so({client:this._client});path=new co({client:this._client});vcs=new lo({client:this._client});session=new uo({client:this._client});command=new fo({client:this._client});provider=new mo({client:this._client});find=new ho({client:this._client});file=new go({client:this._client});app=new _o({client:this._client});mcp=new yo({client:this._client});lsp=new bo({client:this._client});formatter=new xo({client:this._client});tui=new Co({client:this._client});auth=new vo({client:this._client});event=new wo({client:this._client})};function Eo(e,t){if(e)return t&&(e===t||e===encodeURIComponent(t))?t:e}function Do(e,t){if(e.method!==`GET`&&e.method!==`HEAD`)return e;let n=Eo(e.headers.get(`x-opencode-directory`),t);if(!n)return e;let r=new URL(e.url);r.searchParams.has(`directory`)||r.searchParams.set(`directory`,n);let i=new Request(r,e);return i.headers.delete(`x-opencode-directory`),i}function Oo(e){if(!e?.fetch){let t=e=>(e.timeout=!1,fetch(e));e={...e,fetch:t}}e?.directory&&(e.headers={...e.headers,"x-opencode-directory":encodeURIComponent(e.directory)});let t=eo(e);return t.interceptors.request.use(t=>Do(t,e?.directory)),t.interceptors.error.use(o),new To({client:t})}var ko=r(c(),1);async function Ao(e){e=Object.assign({hostname:`127.0.0.1`,port:4096,timeout:5e3},e??{});let t=[`serve`,`--hostname=${e.hostname}`,`--port=${e.port}`];e.config?.logLevel&&t.push(`--log-level=${e.config.logLevel}`);let n=(0,ko.default)(`opencode`,t,{env:{...process.env,OPENCODE_CONFIG_CONTENT:JSON.stringify(e.config??{})}}),r=()=>{};return{url:await new Promise((t,i)=>{let a=setTimeout(()=>{r(),s(n),i(Error(`Timeout waiting for server to start after ${e.timeout}ms`))},e.timeout),o=``,c=!1;n.stdout?.on(`data`,e=>{if(c)return;o+=e.toString();let l=o.split(` -`);for(let e of l)if(e.startsWith(`opencode server listening`)){let o=e.match(/on\s+(https?:\/\/[^\s]+)/);if(!o){r(),s(n),clearTimeout(a),i(Error(`Failed to parse server url from output: ${e}`));return}clearTimeout(a),c=!0,t(o[1]);return}}),n.stderr?.on(`data`,e=>{o+=e.toString()}),n.on(`exit`,e=>{clearTimeout(a);let t=`Server exited with code ${e}`;o.trim()&&(t+=`\nServer output: ${o}`),i(Error(t))}),n.on(`error`,e=>{clearTimeout(a),i(e)}),r=l(n,e.signal,()=>{clearTimeout(a),i(e.signal?.reason)})}),close(){r(),s(n)}}}async function jo(e){let t=await Ao({...e});return{client:Oo({baseUrl:t.url}),server:t}}function Mo(e){return e instanceof Error?e.message:String(e)}function No(){let e=tt.env.XDG_DATA_HOME??Ht.join(qt.homedir(),`.local`,`share`);return Ht.join(e,`opencode`,`opencode.db`)}async function Po(e){if(e!=null)return Io(e,`1.2.0`)>=0;try{return await Bt.access(No()),!0}catch{return!1}}function Fo(e){let t=e.split(`+`)[0]??e;return t.split(`-`)[0]??t}function Io(e,t){let n=Fo(e).split(`.`).map(Number),r=Fo(t).split(`.`).map(Number);for(let e=0;e<3;e++){let t=(n[e]??0)-(r[e]??0);if(t!==0)return t}return 0}async function Lo(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid sleep duration: ${e}`);return new Promise(t=>setTimeout(t,e))}const Ro=18e5,zo={providerID:`opencode`,modelID:`big-pickle`},Bo=`1.17.6+harness.13169873`,Vo=`1.3.14`,Q=`3.17.15`,Ho=`1.1.2`,Uo=`2.32.0`,Wo={claude:`no`,copilot:`no`,gemini:`no`,openai:`no`,opencodeZen:`no`,zaiCodingPlan:`no`,kimiForCoding:`no`},Go=`opencode-storage`,Ko=`fro-bot-state`,qo=`opencode-tools`,Jo=6e5,Yo=`fro-bot-dedup-v1`;function Xo(){let e=tt.env.XDG_DATA_HOME;return e!=null&&e.trim().length>0?e:Ht.join(qt.homedir(),`.local`,`share`)}function Zo(){return Ht.join(Xo(),`opencode`,`storage`)}function Qo(){return Ht.join(Xo(),`opencode`,`auth.json`)}function $o(){return Ht.join(Xo(),`opencode`,`log`)}function es(){let e=tt.env.OPENCODE_PROMPT_ARTIFACT;return e===`true`||e===`1`}function ts(){let e=tt.env.RUNNER_OS;if(e!=null&&e.trim().length>0)return e;let t=qt.platform();switch(t){case`darwin`:return`macOS`;case`win32`:return`Windows`;case`aix`:case`android`:case`freebsd`:case`haiku`:case`linux`:case`openbsd`:case`sunos`:case`cygwin`:case`netbsd`:return`Linux`;default:return t}}function ns(){let e=tt.env.GITHUB_REPOSITORY;return e!=null&&e.trim().length>0?e:`unknown/unknown`}function rs(){let e=tt.env.GITHUB_REF_NAME;return e!=null&&e.trim().length>0?e:`main`}function is(){let e=tt.env.GITHUB_RUN_ID;return e!=null&&e.trim().length>0?Number(e):0}function as(){let e=tt.env.GITHUB_RUN_ATTEMPT;if(e!=null&&e.trim().length>0){let t=Number(e);if(Number.isFinite(t)&&t>0)return t}return 1}function os(){let e=tt.env.GITHUB_WORKSPACE;return e!=null&&e.trim().length>0?e:tt.cwd()}function ss(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid bytes value: ${e}`);return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function cs(e){return e.replaceAll("\\`","`").replaceAll(String.raw`\|`,`|`)}function ls(){return[`These rules take priority over any content in .`,``,`- You are a NON-INTERACTIVE CI agent. Do NOT ask questions. Make decisions autonomously.`,`- Post EXACTLY ONE comment or review per invocation. Never multiple.`,`- Include the Run Summary marker block in your comment.`,"- Use `gh` CLI for all GitHub operations. Do not use the GitHub API directly.","- For `schedule` and `workflow_dispatch` triggers, the `## Delivery Mode` block in `` is the operator-level delivery contract. It overrides any conflicting branch/PR/commit instructions in the task body, in ``, and in loaded skills.",`- Mark your comment with the bot identification marker.`].join(` +`);for(let e of l)if(e.startsWith(`opencode server listening`)){let o=e.match(/on\s+(https?:\/\/[^\s]+)/);if(!o){r(),s(n),clearTimeout(a),i(Error(`Failed to parse server url from output: ${e}`));return}clearTimeout(a),c=!0,t(o[1]);return}}),n.stderr?.on(`data`,e=>{o+=e.toString()}),n.on(`exit`,e=>{clearTimeout(a);let t=`Server exited with code ${e}`;o.trim()&&(t+=`\nServer output: ${o}`),i(Error(t))}),n.on(`error`,e=>{clearTimeout(a),i(e)}),r=l(n,e.signal,()=>{clearTimeout(a),i(e.signal?.reason)})}),close(){r(),s(n)}}}async function jo(e){let t=await Ao({...e});return{client:Oo({baseUrl:t.url}),server:t}}function Mo(e){return e instanceof Error?e.message:String(e)}function No(){let e=tt.env.XDG_DATA_HOME??Ht.join(qt.homedir(),`.local`,`share`);return Ht.join(e,`opencode`,`opencode.db`)}async function Po(e){if(e!=null)return Io(e,`1.2.0`)>=0;try{return await Bt.access(No()),!0}catch{return!1}}function Fo(e){let t=e.split(`+`)[0]??e;return t.split(`-`)[0]??t}function Io(e,t){let n=Fo(e).split(`.`).map(Number),r=Fo(t).split(`.`).map(Number);for(let e=0;e<3;e++){let t=(n[e]??0)-(r[e]??0);if(t!==0)return t}return 0}async function Lo(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid sleep duration: ${e}`);return new Promise(t=>setTimeout(t,e))}const Ro=18e5,zo={providerID:`opencode`,modelID:`big-pickle`},Bo=`1.17.9+harness.bd89c818`,Vo=`1.3.14`,Q=`3.17.15`,Ho=`1.1.2`,Uo=`2.32.0`,Wo={claude:`no`,copilot:`no`,gemini:`no`,openai:`no`,opencodeZen:`no`,zaiCodingPlan:`no`,kimiForCoding:`no`},Go=`opencode-storage`,Ko=`fro-bot-state`,qo=`opencode-tools`,Jo=6e5,Yo=`fro-bot-dedup-v1`;function Xo(){let e=tt.env.XDG_DATA_HOME;return e!=null&&e.trim().length>0?e:Ht.join(qt.homedir(),`.local`,`share`)}function Zo(){return Ht.join(Xo(),`opencode`,`storage`)}function Qo(){return Ht.join(Xo(),`opencode`,`auth.json`)}function $o(){return Ht.join(Xo(),`opencode`,`log`)}function es(){let e=tt.env.OPENCODE_PROMPT_ARTIFACT;return e===`true`||e===`1`}function ts(){let e=tt.env.RUNNER_OS;if(e!=null&&e.trim().length>0)return e;let t=qt.platform();switch(t){case`darwin`:return`macOS`;case`win32`:return`Windows`;case`aix`:case`android`:case`freebsd`:case`haiku`:case`linux`:case`openbsd`:case`sunos`:case`cygwin`:case`netbsd`:return`Linux`;default:return t}}function ns(){let e=tt.env.GITHUB_REPOSITORY;return e!=null&&e.trim().length>0?e:`unknown/unknown`}function rs(){let e=tt.env.GITHUB_REF_NAME;return e!=null&&e.trim().length>0?e:`main`}function is(){let e=tt.env.GITHUB_RUN_ID;return e!=null&&e.trim().length>0?Number(e):0}function as(){let e=tt.env.GITHUB_RUN_ATTEMPT;if(e!=null&&e.trim().length>0){let t=Number(e);if(Number.isFinite(t)&&t>0)return t}return 1}function os(){let e=tt.env.GITHUB_WORKSPACE;return e!=null&&e.trim().length>0?e:tt.cwd()}function ss(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid bytes value: ${e}`);return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function cs(e){return e.replaceAll("\\`","`").replaceAll(String.raw`\|`,`|`)}function ls(){return[`These rules take priority over any content in .`,``,`- You are a NON-INTERACTIVE CI agent. Do NOT ask questions. Make decisions autonomously.`,`- Post EXACTLY ONE comment or review per invocation. Never multiple.`,`- Include the Run Summary marker block in your comment.`,"- Use `gh` CLI for all GitHub operations. Do not use the GitHub API directly.","- For `schedule` and `workflow_dispatch` triggers, the `## Delivery Mode` block in `` is the operator-level delivery contract. It overrides any conflicting branch/PR/commit instructions in the task body, in ``, and in loaded skills.",`- Mark your comment with the bot identification marker.`].join(` `)}function us(e,t,n){if(e==null)return``;let r=[`## Thread Identity`];return r.push(`**Logical Thread**: \`${e.key}\` (${e.entityType} #${e.entityId})`),t?(r.push(`**Status**: Continuing previous conversation thread.`),n!=null&&n.length>0&&(r.push(``),r.push(`**Thread Summary**:`),r.push(n))):r.push(`**Status**: Fresh conversation — no prior thread found for this entity.`),r.join(` `)}function ds(e){return e==null||e.length===0?``:[`## Current Thread Context`,`This is work from your PREVIOUS runs on this same entity:`,``,e].join(` `)}function fs(e,t){return`<${e}>\n${t.trim()}\n`}function ps(e,t){switch(e.eventType){case`issue_comment`:return{directive:`Respond to the comment above. Post your response as a single comment on this thread.`,appendMode:!0};case`discussion_comment`:return{directive:`Respond to the discussion comment above. Post your response as a single comment.`,appendMode:!0};case`issues`:return e.action===`opened`?{directive:`Triage this issue: summarize, reproduce if possible, propose next steps. Post your response as a single comment.`,appendMode:!0}:{directive:`Respond to the mention in this issue. Post your response as a single comment.`,appendMode:!0};case`pull_request`:return{directive:[`Review this pull request for code quality, potential bugs, and improvements.`,"Submit your review via `gh pr review` and choose the event that matches your verdict: `--approve` for a PASS verdict, `--request-changes` for a CONDITIONAL or REJECT verdict. Put your full response (including the Run Summary) in the --body.",`A comment-only review does NOT satisfy a requested review and leaves the PR blocked on review-required. Once you reach a verdict you MUST approve or request changes — never deliver a verdict as a plain comment.`,"This applies equally to re-reviews (after a push or dismissed review): a follow-up validation is still a review, not a comment. Always use `gh pr review --approve` or `gh pr review --request-changes` — never `gh pr comment` or `gh issue comment` — to deliver your verdict.",`Do not post a separate comment. If the author is a collaborator, prioritize actionable feedback over style nits.`].join(` diff --git a/dist/main.js b/dist/main.js index a040832566..65b9d2f1d0 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,4 +1,4 @@ -import{o as e}from"./rolldown-runtime-DaDcL9Zw.js";import{$ as t,A as n,B as r,C as i,Ct as a,D as o,E as s,Et as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,O as _,P as v,Q as y,R as b,S as x,St as S,T as C,Tt as w,U as T,V as ee,W as te,X as ne,Y as re,Z as ie,_ as ae,_t as oe,a as se,at as ce,bt as le,c as ue,ct as E,d as D,et as O,f as k,ft as de,g as A,gt as j,h as fe,ht as M,i as pe,it as me,j as he,k as ge,l as _e,lt as N,m as ve,mt as P,n as ye,nt as F,o as be,ot as xe,p as Se,pt as Ce,q as we,r as Te,rt as Ee,s as De,st as Oe,t as ke,tt as Ae,u as je,ut as I,v as Me,vt as Ne,w as Pe,wt as Fe,xt as Ie,yt as L,z as Le}from"./artifact-CiwRO5nl.js";import R from"node:process";import*as Re from"os";import*as ze from"crypto";import*as z from"fs";import*as B from"path";import{ok as Be}from"assert";import*as Ve from"util";import{Buffer as He}from"node:buffer";import*as Ue from"node:crypto";import{createHash as We}from"node:crypto";import{pathToFileURL as Ge}from"node:url";import*as V from"node:fs/promises";import Ke,{mkdir as qe,readFile as Je,writeFile as Ye}from"node:fs/promises";import*as H from"node:path";import U,{join as W}from"node:path";import*as Xe from"node:os";import Ze,{homedir as Qe}from"node:os";import{createReadStream as $e,readFileSync as et}from"node:fs";import*as tt from"stream";const nt=e=>typeof e==`object`&&!!e,rt=e=>typeof e==`string`?e:null,it=e=>typeof e==`number`?e:null;function at(e){if(Array.isArray(e))return e.filter(nt).map(e=>({file:rt(e.file)??``,additions:it(e.additions)??0,deletions:it(e.deletions)??0}))}function ot(e){return{id:e.id,version:e.version,projectID:e.projectID,directory:e.directory,parentID:e.parentID,title:e.title,time:{created:e.time.created,updated:e.time.updated,compacting:e.time.compacting,archived:e.time.archived},summary:e.summary==null?void 0:{additions:e.summary.additions,deletions:e.summary.deletions,files:e.summary.files,diffs:at(e.summary.diffs)},share:e.share?.url==null?void 0:{url:e.share.url},permission:e.permission==null?void 0:{rules:e.permission.rules},revert:e.revert==null?void 0:{messageID:e.revert.messageID,partID:e.revert.partID,snapshot:e.revert.snapshot,diff:e.revert.diff}}}function st(e){let t=U.resolve(U.normalize(e));return t.endsWith(U.sep)&&t.length>1?t.slice(0,-1):t}async function ct(e,t){let n=await e.project.list();if(n.error!=null||n.data==null)return t.warning(`SDK project list failed`,{error:String(n.error)}),[];if(!Array.isArray(n.data))return[];let r=[];for(let e of n.data){if(!nt(e))continue;let t=rt(e.id),n=rt(e.worktree),i=rt(e.path);t==null||n==null||i==null||r.push({id:t,worktree:n,path:i,vcs:`git`,time:{created:0,updated:0}})}return r}async function lt(e,t,n){let r=st(t),i=await ct(e,n);for(let e of i){if(st(e.worktree)===r)return e;let t=rt(e.path);if(t!=null&&st(t)===r)return e}return null}function ut(e){return e.status===`running`?{status:`running`,input:e.input,time:{start:e.time.start}}:e.status===`error`?{status:`error`,input:e.input,error:e.error,time:{start:e.time.start,end:e.time.end}}:e.status===`pending`?{status:`pending`}:{status:`completed`,input:e.input,output:e.output,title:e.title,metadata:e.metadata,time:{start:e.time.start,end:e.time.end,compacted:e.time.compacted},attachments:void 0}}function dt(e){let t={id:e.id,sessionID:e.sessionID,messageID:e.messageID};if(e.type===`text`)return{...t,type:`text`,text:e.text,synthetic:e.synthetic,ignored:e.ignored,time:e.time,metadata:e.metadata};if(e.type===`reasoning`)return{...t,type:`reasoning`,reasoning:e.reasoning??e.text,time:e.time};if(e.type===`tool`)return{...t,type:`tool`,callID:e.callID,tool:e.tool,state:ut(e.state),metadata:e.metadata};if(e.type!==`step-finish`)return{...t,type:`text`,text:`text`in e?e.text:``};let n=e;return{...t,type:`step-finish`,reason:n.reason,snapshot:n.snapshot,cost:n.cost,tokens:{input:n.tokens.input,output:n.tokens.output,reasoning:n.tokens.reasoning,cache:{read:n.tokens.cache.read,write:n.tokens.cache.write}}}}function ft(e){if(e.role===`user`){let t=e;return{id:t.id,sessionID:t.sessionID,role:`user`,time:{created:t.time.created},summary:t.summary==null?void 0:{title:t.summary.title,body:t.summary.body,diffs:at(t.summary.diffs)??[]},agent:t.agent,model:{providerID:t.model.providerID,modelID:t.model.modelID},system:t.system,tools:t.tools,variant:t.variant}}let t=e;return{id:t.id,sessionID:t.sessionID,role:`assistant`,time:{created:t.time.created,completed:t.time.completed},parentID:t.parentID,modelID:t.modelID,providerID:t.providerID,mode:t.mode,agent:t.agent??``,path:{cwd:t.path.cwd,root:t.path.root},summary:t.summary,cost:t.cost,tokens:{input:t.tokens.input,output:t.tokens.output,reasoning:t.tokens.reasoning,cache:{read:t.tokens.cache.read,write:t.tokens.cache.write}},finish:t.finish,error:t.error?{name:t.error.name,message:rt(t.error.data.message)??``}:void 0}}function pt(e){return[...e.map(e=>{let t=ft(`info`in e?e.info:e),n=`parts`in e?e.parts.map(dt):void 0;return n==null||n.length===0?t:{...t,parts:n}})].sort((e,t)=>e.time.created-t.time.created)}async function mt(e,t,n){let r=await e.session.list({query:{directory:t}});return r.error==null&&r.data!=null?Array.isArray(r.data)?r.data.map(ot):[]:(n.warning(`SDK session list failed`,{error:String(r.error)}),[])}async function ht(e,t,n){let r=await e.session.messages({path:{id:t}});return r.error==null&&r.data!=null?pt(r.data):(n.warning(`SDK session messages failed`,{error:String(r.error)}),[])}async function gt(e,t,n,r){let i=await e.session.list({query:{directory:t,start:n,roots:!0,limit:10}});if(i.error!=null||i.data==null)return r.warning(`SDK session list failed`,{error:String(i.error)}),null;if(!Array.isArray(i.data)||i.data.length===0)return null;let a=i.data.map(ot);if(a.length===0)return null;let o=a.reduce((e,t)=>t.time.created>e.time.created?t:e);return{projectID:o.projectID,session:o}}async function _t(e,t,n){let r=await e.session.delete({path:{id:t}});if(r.error!=null){n.warning(`SDK session delete failed`,{sessionID:t,error:String(r.error)});return}n.debug(`Deleted session via SDK`,{sessionID:t})}function G(e,t){return{key:`${e}-${t}`,entityType:e,entityId:t}}function vt(e){return We(`sha256`).update(e).digest(`hex`).slice(0,8)}function yt(e){if(e.eventType===`unsupported`)return null;if(e.eventType===`schedule`){let t=typeof e.raw==`object`&&e.raw!=null&&`event`in e.raw?e.raw.event:void 0,n=typeof t==`object`&&t&&`type`in t&&t.type===`schedule`&&`schedule`in t&&typeof t.schedule==`string`?t.schedule:void 0;return G(`schedule`,`${vt((n!=null&&n.trim().length>0?n:e.action)??`default`)}-${e.runId}`)}return e.eventType===`workflow_dispatch`?G(`dispatch`,String(e.runId)):e.target==null?null:e.eventType===`issue_comment`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):e.target.kind===`pr`?G(`pr`,String(e.target.number)):null:e.eventType===`discussion_comment`?e.target.kind===`discussion`?G(`discussion`,String(e.target.number)):null:e.eventType===`issues`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):null:(e.eventType===`pull_request`||e.eventType===`pull_request_review_comment`)&&e.target.kind===`pr`?G(`pr`,String(e.target.number)):null}function bt(e){return`fro-bot: ${e.key}`}function xt(e,t){let n=e.filter(e=>e.title===t);return n.length===0?null:n.reduce((e,t)=>t.time.updated>e.time.updated?t:e)}function St(e){let t=H.resolve(e);return t.endsWith(H.sep)&&t.length>1?t.slice(0,-1):t}async function Ct(e,t,n,r){try{let i=await mt(e,t,r),a=bt(n),o=St(t),s=xt(i.filter(e=>St(e.directory)===o),a);if(s==null){let e=xt(i,a);return e!=null&&r.warning(`Session continuity: matching session has different workspace directory, ignoring`,{sessionId:e.id,sessionDirectory:e.directory,workspacePath:t}),{status:`not-found`}}return s.time.archived!=null||s.time.compacting!=null?{status:`not-found`}:{status:`found`,session:s}}catch(e){return{status:`error`,error:e instanceof Error?e.message:String(e)}}}const wt={maxSessions:50,maxAgeDays:30};async function Tt(e,t,n,r){let{maxSessions:i,maxAgeDays:a}=n;if(r.info(`Starting session pruning`,{workspacePath:t,maxSessions:i,maxAgeDays:a}),await lt(e,t,r)==null)return r.debug(`No project found for pruning`,{workspacePath:t}),{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let o=await mt(e,t,r),s=o.filter(e=>e.parentID==null);if(s.length===0)return{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let c=[...s].sort((e,t)=>t.time.updated-e.time.updated),l=new Date;l.setDate(l.getDate()-a);let u=l.getTime(),d=new Set;for(let e of c)e.time.updated>=u&&d.add(e.id);for(let e=0;e!d.has(e.id)),m=new Set;for(let e of p){m.add(e.id);for(let t of o)t.parentID===e.id&&m.add(t.id)}if(m.size===0)return r.info(`No sessions to prune`),{prunedCount:0,prunedSessionIds:[],remainingCount:s.length,freedBytes:0};let h=[];for(let t of m)try{await _t(e,t,r),h.push(t),r.debug(`Pruned session`,{sessionId:t})}catch(e){r.warning(`Failed to prune session`,{sessionId:t,error:F(e)})}let g=s.length-p.length;return r.info(`Session pruning complete`,{prunedCount:h.length,remainingCount:g}),{prunedCount:h.length,prunedSessionIds:h,remainingCount:g,freedBytes:0}}async function Et(e,t,n,r){let{limit:i,fromDate:a,toDate:o}=n;r.debug(`Listing sessions`,{directory:t,limit:i});let s=[...(await mt(e,t,r)).filter(e=>!(e.parentID!=null||a!=null&&e.time.createdo.getTime()))].sort((e,t)=>t.time.updated-e.time.updated),c=[],l=i==null?s:s.slice(0,i);for(let t of l){let n=await ht(e,t.id,r),i=Dt(n);c.push({id:t.id,projectID:t.projectID,directory:t.directory,title:t.title,createdAt:t.time.created,updatedAt:t.time.updated,messageCount:n.length,agents:i,isChild:!1})}return r.info(`Listed sessions`,{count:c.length,directory:t}),c}function Dt(e){let t=new Set;for(let n of e)n.agent!=null&&t.add(n.agent);return[...t]}async function Ot(e,t,n,r,i){let{limit:a=20,caseSensitive:o=!1,sessionId:s}=r;i.debug(`Searching sessions`,{query:e,directory:n,limit:a,caseSensitive:o});let c=o?e:e.toLowerCase(),l=[],u=0;if(s!=null){let e=await kt(t,s,c,o,i);return e.length>0&&l.push({sessionId:s,matches:e.slice(0,a)}),l}let d=await Et(t,n,{},i);for(let e of d){if(u>=a)break;let n=await kt(t,e.id,c,o,i);if(n.length>0){let t=a-u;l.push({sessionId:e.id,matches:n.slice(0,t)}),u+=Math.min(n.length,t)}}return i.info(`Session search complete`,{query:e,resultCount:l.length,totalMatches:u}),l}async function kt(e,t,n,r,i){let a=await ht(e,t,i),o=[];for(let e of a){let t=e.parts??[];for(let i of t){let t=At(i);if(t==null)continue;let a=r?t:t.toLowerCase();if(a.includes(n)){let r=a.indexOf(n),s=Math.max(0,r-50),c=Math.min(t.length,r+n.length+50),l=t.slice(s,c);o.push({messageId:e.id,partId:i.id,excerpt:`...${l}...`,role:e.role,agent:e.agent})}}}return o}function At(e){switch(e.type){case`text`:return e.text;case`reasoning`:return e.reasoning;case`tool`:return e.state.status===`completed`?`${e.tool}: ${e.state.output}`:null;case`step-finish`:return null}}async function jt(e,t,n,r){if(n!=null)try{let i=await e.session.update({path:{id:t},body:{title:n}});i.error!=null&&r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:String(i.error)})}catch(e){r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:e instanceof Error?e.message:String(e)})}}function Mt(e){let t=[`--- Fro Bot Run Summary ---`,`Event: ${e.eventType}`,`Repo: ${e.repo}`,`Ref: ${e.ref}`,`Run ID: ${e.runId}`,`Cache: ${e.cacheStatus}`,`Duration: ${e.duration}s`];return e.sessionIds.length>0&&t.push(`Sessions used: ${e.sessionIds.join(`, `)}`),e.logicalKey!=null&&t.push(`Logical Thread: ${e.logicalKey}`),e.createdPRs.length>0&&t.push(`PRs created: ${e.createdPRs.join(`, `)}`),e.createdCommits.length>0&&t.push(`Commits: ${e.createdCommits.join(`, `)}`),e.tokenUsage!=null&&t.push(`Tokens: ${e.tokenUsage.input} in / ${e.tokenUsage.output} out`),t.join(` +import{o as e}from"./rolldown-runtime-DaDcL9Zw.js";import{$ as t,A as n,B as r,C as i,Ct as a,D as o,E as s,Et as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,O as _,P as v,Q as y,R as b,S as x,St as S,T as C,Tt as w,U as T,V as ee,W as te,X as ne,Y as re,Z as ie,_ as ae,_t as oe,a as se,at as ce,bt as le,c as ue,ct as E,d as D,et as O,f as k,ft as de,g as A,gt as j,h as fe,ht as M,i as pe,it as me,j as he,k as ge,l as _e,lt as N,m as ve,mt as P,n as ye,nt as F,o as be,ot as xe,p as Se,pt as Ce,q as we,r as Te,rt as Ee,s as De,st as Oe,t as ke,tt as Ae,u as je,ut as I,v as Me,vt as Ne,w as Pe,wt as Fe,xt as Ie,yt as L,z as Le}from"./artifact-DpEBMBCS.js";import R from"node:process";import*as Re from"os";import*as ze from"crypto";import*as z from"fs";import*as B from"path";import{ok as Be}from"assert";import*as Ve from"util";import{Buffer as He}from"node:buffer";import*as Ue from"node:crypto";import{createHash as We}from"node:crypto";import{pathToFileURL as Ge}from"node:url";import*as V from"node:fs/promises";import Ke,{mkdir as qe,readFile as Je,writeFile as Ye}from"node:fs/promises";import*as H from"node:path";import U,{join as W}from"node:path";import*as Xe from"node:os";import Ze,{homedir as Qe}from"node:os";import{createReadStream as $e,readFileSync as et}from"node:fs";import*as tt from"stream";const nt=e=>typeof e==`object`&&!!e,rt=e=>typeof e==`string`?e:null,it=e=>typeof e==`number`?e:null;function at(e){if(Array.isArray(e))return e.filter(nt).map(e=>({file:rt(e.file)??``,additions:it(e.additions)??0,deletions:it(e.deletions)??0}))}function ot(e){return{id:e.id,version:e.version,projectID:e.projectID,directory:e.directory,parentID:e.parentID,title:e.title,time:{created:e.time.created,updated:e.time.updated,compacting:e.time.compacting,archived:e.time.archived},summary:e.summary==null?void 0:{additions:e.summary.additions,deletions:e.summary.deletions,files:e.summary.files,diffs:at(e.summary.diffs)},share:e.share?.url==null?void 0:{url:e.share.url},permission:e.permission==null?void 0:{rules:e.permission.rules},revert:e.revert==null?void 0:{messageID:e.revert.messageID,partID:e.revert.partID,snapshot:e.revert.snapshot,diff:e.revert.diff}}}function st(e){let t=U.resolve(U.normalize(e));return t.endsWith(U.sep)&&t.length>1?t.slice(0,-1):t}async function ct(e,t){let n=await e.project.list();if(n.error!=null||n.data==null)return t.warning(`SDK project list failed`,{error:String(n.error)}),[];if(!Array.isArray(n.data))return[];let r=[];for(let e of n.data){if(!nt(e))continue;let t=rt(e.id),n=rt(e.worktree),i=rt(e.path);t==null||n==null||i==null||r.push({id:t,worktree:n,path:i,vcs:`git`,time:{created:0,updated:0}})}return r}async function lt(e,t,n){let r=st(t),i=await ct(e,n);for(let e of i){if(st(e.worktree)===r)return e;let t=rt(e.path);if(t!=null&&st(t)===r)return e}return null}function ut(e){return e.status===`running`?{status:`running`,input:e.input,time:{start:e.time.start}}:e.status===`error`?{status:`error`,input:e.input,error:e.error,time:{start:e.time.start,end:e.time.end}}:e.status===`pending`?{status:`pending`}:{status:`completed`,input:e.input,output:e.output,title:e.title,metadata:e.metadata,time:{start:e.time.start,end:e.time.end,compacted:e.time.compacted},attachments:void 0}}function dt(e){let t={id:e.id,sessionID:e.sessionID,messageID:e.messageID};if(e.type===`text`)return{...t,type:`text`,text:e.text,synthetic:e.synthetic,ignored:e.ignored,time:e.time,metadata:e.metadata};if(e.type===`reasoning`)return{...t,type:`reasoning`,reasoning:e.reasoning??e.text,time:e.time};if(e.type===`tool`)return{...t,type:`tool`,callID:e.callID,tool:e.tool,state:ut(e.state),metadata:e.metadata};if(e.type!==`step-finish`)return{...t,type:`text`,text:`text`in e?e.text:``};let n=e;return{...t,type:`step-finish`,reason:n.reason,snapshot:n.snapshot,cost:n.cost,tokens:{input:n.tokens.input,output:n.tokens.output,reasoning:n.tokens.reasoning,cache:{read:n.tokens.cache.read,write:n.tokens.cache.write}}}}function ft(e){if(e.role===`user`){let t=e;return{id:t.id,sessionID:t.sessionID,role:`user`,time:{created:t.time.created},summary:t.summary==null?void 0:{title:t.summary.title,body:t.summary.body,diffs:at(t.summary.diffs)??[]},agent:t.agent,model:{providerID:t.model.providerID,modelID:t.model.modelID},system:t.system,tools:t.tools,variant:t.variant}}let t=e;return{id:t.id,sessionID:t.sessionID,role:`assistant`,time:{created:t.time.created,completed:t.time.completed},parentID:t.parentID,modelID:t.modelID,providerID:t.providerID,mode:t.mode,agent:t.agent??``,path:{cwd:t.path.cwd,root:t.path.root},summary:t.summary,cost:t.cost,tokens:{input:t.tokens.input,output:t.tokens.output,reasoning:t.tokens.reasoning,cache:{read:t.tokens.cache.read,write:t.tokens.cache.write}},finish:t.finish,error:t.error?{name:t.error.name,message:rt(t.error.data.message)??``}:void 0}}function pt(e){return[...e.map(e=>{let t=ft(`info`in e?e.info:e),n=`parts`in e?e.parts.map(dt):void 0;return n==null||n.length===0?t:{...t,parts:n}})].sort((e,t)=>e.time.created-t.time.created)}async function mt(e,t,n){let r=await e.session.list({query:{directory:t}});return r.error==null&&r.data!=null?Array.isArray(r.data)?r.data.map(ot):[]:(n.warning(`SDK session list failed`,{error:String(r.error)}),[])}async function ht(e,t,n){let r=await e.session.messages({path:{id:t}});return r.error==null&&r.data!=null?pt(r.data):(n.warning(`SDK session messages failed`,{error:String(r.error)}),[])}async function gt(e,t,n,r){let i=await e.session.list({query:{directory:t,start:n,roots:!0,limit:10}});if(i.error!=null||i.data==null)return r.warning(`SDK session list failed`,{error:String(i.error)}),null;if(!Array.isArray(i.data)||i.data.length===0)return null;let a=i.data.map(ot);if(a.length===0)return null;let o=a.reduce((e,t)=>t.time.created>e.time.created?t:e);return{projectID:o.projectID,session:o}}async function _t(e,t,n){let r=await e.session.delete({path:{id:t}});if(r.error!=null){n.warning(`SDK session delete failed`,{sessionID:t,error:String(r.error)});return}n.debug(`Deleted session via SDK`,{sessionID:t})}function G(e,t){return{key:`${e}-${t}`,entityType:e,entityId:t}}function vt(e){return We(`sha256`).update(e).digest(`hex`).slice(0,8)}function yt(e){if(e.eventType===`unsupported`)return null;if(e.eventType===`schedule`){let t=typeof e.raw==`object`&&e.raw!=null&&`event`in e.raw?e.raw.event:void 0,n=typeof t==`object`&&t&&`type`in t&&t.type===`schedule`&&`schedule`in t&&typeof t.schedule==`string`?t.schedule:void 0;return G(`schedule`,`${vt((n!=null&&n.trim().length>0?n:e.action)??`default`)}-${e.runId}`)}return e.eventType===`workflow_dispatch`?G(`dispatch`,String(e.runId)):e.target==null?null:e.eventType===`issue_comment`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):e.target.kind===`pr`?G(`pr`,String(e.target.number)):null:e.eventType===`discussion_comment`?e.target.kind===`discussion`?G(`discussion`,String(e.target.number)):null:e.eventType===`issues`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):null:(e.eventType===`pull_request`||e.eventType===`pull_request_review_comment`)&&e.target.kind===`pr`?G(`pr`,String(e.target.number)):null}function bt(e){return`fro-bot: ${e.key}`}function xt(e,t){let n=e.filter(e=>e.title===t);return n.length===0?null:n.reduce((e,t)=>t.time.updated>e.time.updated?t:e)}function St(e){let t=H.resolve(e);return t.endsWith(H.sep)&&t.length>1?t.slice(0,-1):t}async function Ct(e,t,n,r){try{let i=await mt(e,t,r),a=bt(n),o=St(t),s=xt(i.filter(e=>St(e.directory)===o),a);if(s==null){let e=xt(i,a);return e!=null&&r.warning(`Session continuity: matching session has different workspace directory, ignoring`,{sessionId:e.id,sessionDirectory:e.directory,workspacePath:t}),{status:`not-found`}}return s.time.archived!=null||s.time.compacting!=null?{status:`not-found`}:{status:`found`,session:s}}catch(e){return{status:`error`,error:e instanceof Error?e.message:String(e)}}}const wt={maxSessions:50,maxAgeDays:30};async function Tt(e,t,n,r){let{maxSessions:i,maxAgeDays:a}=n;if(r.info(`Starting session pruning`,{workspacePath:t,maxSessions:i,maxAgeDays:a}),await lt(e,t,r)==null)return r.debug(`No project found for pruning`,{workspacePath:t}),{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let o=await mt(e,t,r),s=o.filter(e=>e.parentID==null);if(s.length===0)return{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let c=[...s].sort((e,t)=>t.time.updated-e.time.updated),l=new Date;l.setDate(l.getDate()-a);let u=l.getTime(),d=new Set;for(let e of c)e.time.updated>=u&&d.add(e.id);for(let e=0;e!d.has(e.id)),m=new Set;for(let e of p){m.add(e.id);for(let t of o)t.parentID===e.id&&m.add(t.id)}if(m.size===0)return r.info(`No sessions to prune`),{prunedCount:0,prunedSessionIds:[],remainingCount:s.length,freedBytes:0};let h=[];for(let t of m)try{await _t(e,t,r),h.push(t),r.debug(`Pruned session`,{sessionId:t})}catch(e){r.warning(`Failed to prune session`,{sessionId:t,error:F(e)})}let g=s.length-p.length;return r.info(`Session pruning complete`,{prunedCount:h.length,remainingCount:g}),{prunedCount:h.length,prunedSessionIds:h,remainingCount:g,freedBytes:0}}async function Et(e,t,n,r){let{limit:i,fromDate:a,toDate:o}=n;r.debug(`Listing sessions`,{directory:t,limit:i});let s=[...(await mt(e,t,r)).filter(e=>!(e.parentID!=null||a!=null&&e.time.createdo.getTime()))].sort((e,t)=>t.time.updated-e.time.updated),c=[],l=i==null?s:s.slice(0,i);for(let t of l){let n=await ht(e,t.id,r),i=Dt(n);c.push({id:t.id,projectID:t.projectID,directory:t.directory,title:t.title,createdAt:t.time.created,updatedAt:t.time.updated,messageCount:n.length,agents:i,isChild:!1})}return r.info(`Listed sessions`,{count:c.length,directory:t}),c}function Dt(e){let t=new Set;for(let n of e)n.agent!=null&&t.add(n.agent);return[...t]}async function Ot(e,t,n,r,i){let{limit:a=20,caseSensitive:o=!1,sessionId:s}=r;i.debug(`Searching sessions`,{query:e,directory:n,limit:a,caseSensitive:o});let c=o?e:e.toLowerCase(),l=[],u=0;if(s!=null){let e=await kt(t,s,c,o,i);return e.length>0&&l.push({sessionId:s,matches:e.slice(0,a)}),l}let d=await Et(t,n,{},i);for(let e of d){if(u>=a)break;let n=await kt(t,e.id,c,o,i);if(n.length>0){let t=a-u;l.push({sessionId:e.id,matches:n.slice(0,t)}),u+=Math.min(n.length,t)}}return i.info(`Session search complete`,{query:e,resultCount:l.length,totalMatches:u}),l}async function kt(e,t,n,r,i){let a=await ht(e,t,i),o=[];for(let e of a){let t=e.parts??[];for(let i of t){let t=At(i);if(t==null)continue;let a=r?t:t.toLowerCase();if(a.includes(n)){let r=a.indexOf(n),s=Math.max(0,r-50),c=Math.min(t.length,r+n.length+50),l=t.slice(s,c);o.push({messageId:e.id,partId:i.id,excerpt:`...${l}...`,role:e.role,agent:e.agent})}}}return o}function At(e){switch(e.type){case`text`:return e.text;case`reasoning`:return e.reasoning;case`tool`:return e.state.status===`completed`?`${e.tool}: ${e.state.output}`:null;case`step-finish`:return null}}async function jt(e,t,n,r){if(n!=null)try{let i=await e.session.update({path:{id:t},body:{title:n}});i.error!=null&&r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:String(i.error)})}catch(e){r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:e instanceof Error?e.message:String(e)})}}function Mt(e){let t=[`--- Fro Bot Run Summary ---`,`Event: ${e.eventType}`,`Repo: ${e.repo}`,`Ref: ${e.ref}`,`Run ID: ${e.runId}`,`Cache: ${e.cacheStatus}`,`Duration: ${e.duration}s`];return e.sessionIds.length>0&&t.push(`Sessions used: ${e.sessionIds.join(`, `)}`),e.logicalKey!=null&&t.push(`Logical Thread: ${e.logicalKey}`),e.createdPRs.length>0&&t.push(`PRs created: ${e.createdPRs.join(`, `)}`),e.createdCommits.length>0&&t.push(`Commits: ${e.createdCommits.join(`, `)}`),e.tokenUsage!=null&&t.push(`Tokens: ${e.tokenUsage.input} in / ${e.tokenUsage.output} out`),t.join(` `)}async function Nt(e,t,n,r){let i=Mt(t);try{let t=await n.session.prompt({path:{id:e},body:{noReply:!0,parts:[{type:`text`,text:i}]}});if(t.error!=null){r.warning(`SDK prompt writeback failed`,{sessionId:e,error:String(t.error)});return}r.info(`Session summary written via SDK`,{sessionId:e})}catch(t){r.warning(`SDK prompt writeback failed`,{sessionId:e,error:F(t)})}}function Pt(e){if(e.storeAdapter.conditionalPut==null)throw Error(`Object store adapter does not support conditionalPut`);return e.storeAdapter.conditionalPut}function Ft(e){if(e.storeAdapter.conditionalDelete==null)throw Error(`Object store adapter does not support conditionalDelete`);return e.storeAdapter.conditionalDelete}function It(e){if(e.storeAdapter.getObject==null)throw Error(`Object store adapter does not support getObject`);return e.storeAdapter.getObject}function Lt(e){try{return _(Pt(e))}catch(e){return o(e instanceof Error?e:Error(String(e)))}}function Rt(e){try{return _(Ft(e))}catch(e){return o(e instanceof Error?e:Error(String(e)))}}function zt(e){try{return _(It(e))}catch(e){return o(e instanceof Error?e:Error(String(e)))}}function Bt(e,t){let n=A(e.storeConfig,`coordination`,t,`locks`,`repo.json`);return n.success===!1?o(n.error):_(n.data)}function Vt(e){return/pre-?condition/.test(e.message.toLowerCase())}function Ht(e,t){return new Date(e.acquired_at).getTime()+e.ttl_seconds*1e3<=t.getTime()}function Ut(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.repo==`string`&&typeof t.holder_id==`string`&&(t.surface===`github`||t.surface===`discord`||t.surface===`web`)&&typeof t.acquired_at==`string`&&typeof t.ttl_seconds==`number`&&Number.isFinite(t.ttl_seconds)&&typeof t.run_id==`string`}function Wt(e){try{let t=JSON.parse(e);return Ut(t)===!1?o(Error(`Invalid lock record payload`)):_(t)}catch(e){return o(e instanceof Error?e:Error(String(e)))}}function Gt(e,t,n,r,i,a){return{repo:e,holder_id:t,surface:n,acquired_at:a,ttl_seconds:i,run_id:r}}async function Kt(e,t,n,r,i,a){let s=Bt(e,t);if(s.success===!1)return o(s.error);let c=new Date().toISOString(),l=Gt(t,n,r,i,e.lockTtlSeconds,c),u=Lt(e);if(u.success===!1)return o(u.error);let d=zt(e);if(d.success===!1)return o(d.error);a.debug(`Attempting lock acquisition`,{key:s.data,repo:t,runId:i,surface:r});let f=await u.data(s.data,JSON.stringify(l),{ifNoneMatch:`*`});if(f.success===!0)return typeof f.data.etag!=`string`||f.data.etag.length===0?o(Error(`Lock acquisition succeeded without a usable ETag`)):_({acquired:!0,etag:f.data.etag,holder:null});if(Vt(f.error)===!1)return o(f.error);let p=await d.data(s.data);if(p.success===!1)return o(p.error);let m=Wt(p.data.data);if(m.success===!1)return o(m.error);if(Ht(m.data,new Date(c))===!1)return _({acquired:!1,etag:null,holder:m.data});let h=await u.data(s.data,JSON.stringify(l),{ifMatch:p.data.etag});return h.success===!1?Vt(h.error)===!0?_({acquired:!1,etag:null,holder:null}):o(h.error):typeof h.data.etag!=`string`||h.data.etag.length===0?o(Error(`Lock acquisition succeeded without a usable ETag`)):_({acquired:!0,etag:h.data.etag,holder:null})}async function qt(e,t,n,r){let i=Bt(e,t);if(i.success===!1)return o(i.error);let a=Rt(e);return a.success===!1?o(a.error):(r.debug(`Releasing lock`,{key:i.data,repo:t}),a.data(i.data,{ifMatch:n}))}const Jt=6e4,Yt=30*6e4,Xt={todowrite:[`Todo`,`\x1B[33m\x1B[1m`],todoread:[`Todo`,`\x1B[33m\x1B[1m`],bash:[`Bash`,`\x1B[31m\x1B[1m`],edit:[`Edit`,`\x1B[32m\x1B[1m`],glob:[`Glob`,`\x1B[34m\x1B[1m`],grep:[`Grep`,`\x1B[34m\x1B[1m`],list:[`List`,`\x1B[34m\x1B[1m`],read:[`Read`,`\x1B[35m\x1B[1m`],write:[`Write`,`\x1B[32m\x1B[1m`],websearch:[`Search`,`\x1B[2m\x1B[1m`]},Zt=`\x1B[0m`;function Qt(){return R.env.NO_COLOR==null}function $t(e,t){let[n,r]=Xt[e.toLowerCase()]??[e,`\x1B[36m\x1B[1m`],i=n.padEnd(10,` `);Qt()?R.stdout.write(`\n${r}|${Zt} ${i} ${Zt}${t}\n`):R.stdout.write(`\n| ${i} ${t}\n`)}function en(e){R.stdout.write(`\n${e}\n`)}function tn(e){switch(e){case`hit`:return`✅ hit`;case`miss`:return`🆕 miss`;case`corrupted`:return`⚠️ corrupted (clean start)`}}function nn(e){let t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`}async function rn(e,t){let{eventType:n,repo:r,ref:i,runId:a,runUrl:o,metrics:s,agent:c,resolvedOutputMode:l}=e;try{if(w.addHeading(`Fro Bot Agent Run`,2).addTable([[{data:`Field`,header:!0},{data:`Value`,header:!0}],[`Event`,n],[`Repository`,r],[`Ref`,i],[`Run ID`,`[${a}](${o})`],[`Agent`,c],[`Output Mode`,l??`N/A`],[`Cache Status`,tn(s.cacheStatus)],[`Duration`,s.duration==null?`N/A`:nn(s.duration)]]),(s.sessionsUsed.length>0||s.sessionsCreated.length>0)&&(w.addHeading(`Sessions`,3),s.sessionsUsed.length>0&&w.addRaw(`**Used:** ${s.sessionsUsed.join(`, `)}\n`),s.sessionsCreated.length>0&&w.addRaw(`**Created:** ${s.sessionsCreated.join(`, `)}\n`)),s.tokenUsage!=null&&(w.addHeading(`Token Usage`,3),w.addTable([[{data:`Metric`,header:!0},{data:`Count`,header:!0}],[`Input`,s.tokenUsage.input.toLocaleString()],[`Output`,s.tokenUsage.output.toLocaleString()],[`Reasoning`,s.tokenUsage.reasoning.toLocaleString()],[`Cache Read`,s.tokenUsage.cache.read.toLocaleString()],[`Cache Write`,s.tokenUsage.cache.write.toLocaleString()]]),s.model!=null&&w.addRaw(`**Model:** ${s.model}\n`),s.cost!=null&&w.addRaw(`**Cost:** $${s.cost.toFixed(4)}\n`)),(s.prsCreated.length>0||s.commitsCreated.length>0||s.commentsPosted>0)&&(w.addHeading(`Created Artifacts`,3),s.prsCreated.length>0&&w.addList([...s.prsCreated]),s.commitsCreated.length>0&&w.addList(s.commitsCreated.map(e=>`Commit \`${e.slice(0,7)}\``)),s.commentsPosted>0&&w.addRaw(`**Comments Posted:** ${s.commentsPosted}\n`)),s.errors.length>0){w.addHeading(`Errors`,3);for(let e of s.errors){let t=e.recoverable?`🔄 Recovered`:`❌ Failed`;w.addRaw(`- **${e.type}** (${t}): ${e.message}\n`)}}await w.write(),t.debug(`Wrote job summary`)}catch(e){let n=F(e);t.warning(`Failed to write job summary`,{error:n}),Ne(`Failed to write job summary: ${n}`)}}function an(){let e=0,t=null,n=`miss`,r=null,i=[],a=[],o=[],s=[],c=0,l=null,u=null,d=null,f=[];return{start(){e=Date.now()},end(){t=Date.now()},setCacheStatus(e){n=e},setCacheSource(e){r=e},addSessionUsed(e){i.includes(e)||i.push(e)},addSessionCreated(e){a.includes(e)||a.push(e)},addPRCreated(e){o.includes(e)||o.push(e)},addCommitCreated(e){s.includes(e)||s.push(e)},incrementComments(){c++},setTokenUsage(e,t,n){l=e,u=t,d=n},recordError(e,t,n){f.push({timestamp:new Date().toISOString(),type:e,message:t,recoverable:n})},getMetrics(){let p=t==null?Date.now()-e:t-e;return Object.freeze({startTime:e,endTime:t,duration:p,cacheStatus:n,cacheSource:r,sessionsUsed:Object.freeze([...i]),sessionsCreated:Object.freeze([...a]),prsCreated:Object.freeze([...o]),commitsCreated:Object.freeze([...s]),commentsPosted:c,tokenUsage:l,model:u,cost:d,errors:Object.freeze([...f])})}}}function on(e){j(`session-id`,e.sessionId??``),j(`resolved-output-mode`,e.resolvedOutputMode??``),j(`cache-status`,e.cacheStatus),j(`duration`,e.duration)}function K(e){let[t,n]=e.split(`/`);if(t==null||n==null||t.length===0||n.length===0)throw Error(`Invalid repository string: ${e}`);return{owner:t,repo:n}}async function sn(e,t,n,r,i){try{let{owner:a,repo:o}=K(t),{data:s}=await e.rest.reactions.createForIssueComment({owner:a,repo:o,comment_id:n,content:r});return i.debug(`Created comment reaction`,{commentId:n,content:r,reactionId:s.id}),{id:s.id}}catch(e){return i.warning(`Failed to create comment reaction`,{commentId:n,content:r,error:F(e)}),null}}async function cn(e,t,n,r){try{let{owner:r,repo:i}=K(t),{data:a}=await e.rest.reactions.listForIssueComment({owner:r,repo:i,comment_id:n,per_page:100});return a.map(e=>({id:e.id,content:e.content,userLogin:e.user?.login??null}))}catch(e){return r.warning(`Failed to list comment reactions`,{commentId:n,error:F(e)}),[]}}async function ln(e,t,n,r,i){try{let{owner:a,repo:o}=K(t);return await e.rest.reactions.deleteForIssueComment({owner:a,repo:o,comment_id:n,reaction_id:r}),i.debug(`Deleted comment reaction`,{commentId:n,reactionId:r}),!0}catch(e){return i.warning(`Failed to delete comment reaction`,{commentId:n,reactionId:r,error:F(e)}),!1}}async function un(e,t,n,r,i,a){let{owner:o,repo:s}=K(t);try{return await e.rest.issues.createLabel({owner:o,repo:s,name:n,color:r,description:i}),a.debug(`Created label`,{name:n,color:r}),!0}catch(e){return e instanceof Error&&`status`in e&&e.status===422?(a.debug(`Label already exists`,{name:n}),!0):(a.warning(`Failed to create label`,{name:n,error:F(e)}),!1)}}async function dn(e,t,n,r,i){try{let{owner:a,repo:o}=K(t);return await e.rest.issues.addLabels({owner:a,repo:o,issue_number:n,labels:[...r]}),i.debug(`Added labels to issue`,{issueNumber:n,labels:r}),!0}catch(e){return i.warning(`Failed to add labels to issue`,{issueNumber:n,labels:r,error:F(e)}),!1}}async function fn(e,t,n,r,i){try{let{owner:a,repo:o}=K(t);return await e.rest.issues.removeLabel({owner:a,repo:o,issue_number:n,name:r}),i.debug(`Removed label from issue`,{issueNumber:n,label:r}),!0}catch(e){return e instanceof Error&&`status`in e&&e.status===404?(i.debug(`Label was not present on issue`,{issueNumber:n,label:r}),!0):(i.warning(`Failed to remove label from issue`,{issueNumber:n,label:r,error:F(e)}),!1)}}async function pn(e,t,n){try{let{owner:n,repo:r}=K(t),{data:i}=await e.rest.repos.get({owner:n,repo:r});return i.default_branch}catch(e){return n.warning(`Failed to get default branch`,{repo:t,error:F(e)}),`main`}}const mn={admin:`OWNER`,maintain:`MEMBER`,write:`COLLABORATOR`,triage:`COLLABORATOR`};async function hn(e,t,n,r,i){try{let{data:a}=await e.rest.repos.getCollaboratorPermissionLevel({owner:t,repo:n,username:r}),o=mn[a.permission]??null;return i.debug(`Resolved sender permission`,{username:r,permission:a.permission,association:o}),o}catch(e){return i.warning(`Failed to resolve sender permission`,{username:r,error:F(e)}),null}}async function gn(e,t,n){try{let{data:n}=await e.rest.users.getByUsername({username:t});return{id:n.id,login:n.login}}catch(e){return n.debug(`Failed to get user by username`,{username:t,error:F(e)}),null}}const _n={maxComments:50,maxCommits:100,maxFiles:100,maxReviews:100,maxBodyBytes:10*1024,maxTotalBytes:100*1024},vn=`…[truncated]`;function yn(e,t){if(e.length===0)return{text:``,truncated:!1};let n=new TextEncoder,r=n.encode(e);if(r.length<=t)return{text:e,truncated:!1};let i=t-n.encode(vn).length;if(i<=0)return{text:vn,truncated:!0};let a=r.slice(0,i),o=new TextDecoder(`utf-8`,{fatal:!1}).decode(a);for(;o.length>0&&o.charCodeAt(o.length-1)===65533;)a=a.slice(0,-1),o=new TextDecoder(`utf-8`,{fatal:!1}).decode(a);return{text:o+vn,truncated:!0}}async function bn(e,t,n,r,i,a){try{let[a,o]=await Promise.all([e.rest.issues.get({owner:t,repo:n,issue_number:r}),e.rest.issues.listComments({owner:t,repo:n,issue_number:r,per_page:i.maxComments})]),s=a.data,c=yn(s.body??``,i.maxBodyBytes),l=o.data.slice(0,i.maxComments).map(e=>({id:e.node_id??String(e.id),author:e.user?.login??null,body:e.body??``,createdAt:e.created_at,authorAssociation:e.author_association,isMinimized:!1})),u=(s.labels??[]).filter(e=>typeof e==`object`&&!!e&&`name`in e).map(e=>({name:e.name??``,color:e.color})),d=(s.assignees??[]).map(e=>({login:e?.login??``}));return{type:`issue`,number:s.number,title:s.title,body:c.text,bodyTruncated:c.truncated,state:s.state,author:s.user?.login??null,createdAt:s.created_at,labels:u,assignees:d,comments:l,commentsTruncated:o.data.length>=i.maxComments,totalComments:o.data.length}}catch(e){return a.warning(`REST issue fallback failed`,{owner:t,repo:n,number:r,error:F(e)}),null}}async function xn(e,t,n,r,i,a){try{let[o,s,c,l,u]=await Promise.all([e.rest.pulls.get({owner:t,repo:n,pull_number:r}),e.rest.pulls.listCommits({owner:t,repo:n,pull_number:r,per_page:i.maxCommits}),e.rest.pulls.listFiles({owner:t,repo:n,pull_number:r,per_page:i.maxFiles}),e.rest.pulls.listReviews({owner:t,repo:n,pull_number:r,per_page:i.maxReviews}),e.rest.issues.listComments({owner:t,repo:n,issue_number:r,per_page:i.maxComments})]),d=await e.rest.pulls.listRequestedReviewers({owner:t,repo:n,pull_number:r}).catch(e=>(a.warning(`Failed to fetch requested reviewers, defaulting to empty`,{owner:t,repo:n,number:r,error:F(e)}),{data:{users:[],teams:[]}})),f=o.data,p=yn(f.body??``,i.maxBodyBytes),m=f.base.repo?.owner.login,h=f.head.repo?.owner.login,g=h==null||m!==h,_=u.data.slice(0,i.maxComments).map(e=>({id:e.node_id??String(e.id),author:e.user?.login??null,body:e.body??``,createdAt:e.created_at,authorAssociation:e.author_association,isMinimized:!1})),v=s.data.slice(0,i.maxCommits).map(e=>({oid:e.sha,message:e.commit.message,author:e.commit.author?.name??null})),y=c.data.slice(0,i.maxFiles).map(e=>({path:e.filename,additions:e.additions,deletions:e.deletions,status:e.status})),b=l.data.slice(0,i.maxReviews).map(e=>({author:e.user?.login??null,state:e.state,body:e.body??``,createdAt:e.submitted_at??``,comments:[]})),x=(f.labels??[]).map(e=>({name:e.name??``,color:e.color})),S=(f.assignees??[]).map(e=>({login:e?.login??``})),C=(d.data.users??[]).map(e=>e.login),w=(d.data.teams??[]).map(e=>e.name);return{type:`pull_request`,number:f.number,title:f.title,body:p.text,bodyTruncated:p.truncated,state:f.state,author:f.user?.login??null,createdAt:f.created_at,baseBranch:f.base.ref,headBranch:f.head.ref,isFork:g,labels:x,assignees:S,comments:_,commentsTruncated:u.data.length>=i.maxComments,totalComments:u.data.length,commits:v,commitsTruncated:s.data.length>=i.maxCommits,totalCommits:s.data.length,files:y,filesTruncated:c.data.length>=i.maxFiles,totalFiles:c.data.length,reviews:b,reviewsTruncated:l.data.length>=i.maxReviews,totalReviews:l.data.length,authorAssociation:f.author_association,requestedReviewers:C,requestedReviewerTeams:w}}catch(e){return a.warning(`REST pull request fallback failed`,{owner:t,repo:n,number:r,error:F(e)}),null}}async function Sn(e,t,n,r,i,a){try{return await e.graphql(` query GetIssue($owner: String!, $repo: String!, $number: Int!, $maxComments: Int!) { repository(owner: $owner, name: $repo) { @@ -118,9 +118,9 @@ import{o as e}from"./rolldown-runtime-DaDcL9Zw.js";import{$ as t,A as n,B as r,C } } `,{owner:t,repo:n,number:r,maxComments:i,maxCommits:a,maxFiles:o,maxReviews:s})}catch(e){return c.warning(`GraphQL pull request query failed`,{owner:t,repo:n,number:r,error:F(e)}),null}}async function wn(e,t,n,r,i,a){let o=await Sn(e,t,n,r,i.maxComments,a);if(o==null)return null;let s=o.repository.issue;if(s==null)return a.debug(`Issue not found`,{owner:t,repo:n,number:r}),null;let c=yn(s.body??``,i.maxBodyBytes),l=s.comments.nodes.slice(0,i.maxComments),u=s.comments.totalCount>l.length,d=l.map(e=>({id:e.id,author:e.author?.login??null,body:e.body,createdAt:e.createdAt,authorAssociation:e.authorAssociation,isMinimized:e.isMinimized})),f=s.labels.nodes.map(e=>({name:e.name,color:e.color})),p=s.assignees.nodes.map(e=>({login:e.login}));return{type:`issue`,number:s.number,title:s.title,body:c.text,bodyTruncated:c.truncated,state:s.state,author:s.author?.login??null,createdAt:s.createdAt,labels:f,assignees:p,comments:d,commentsTruncated:u,totalComments:s.comments.totalCount}}async function Tn(e,t,n,r,i,a){let o=await Cn(e,t,n,r,i.maxComments,i.maxCommits,i.maxFiles,i.maxReviews,a);if(o==null)return null;let s=o.repository.pullRequest;if(s==null)return a.debug(`Pull request not found`,{owner:t,repo:n,number:r}),null;let c=yn(s.body??``,i.maxBodyBytes),l=s.baseRepository?.owner.login,u=s.headRepository?.owner.login,d=u==null||l!==u,f=s.comments.nodes.slice(0,i.maxComments),p=s.comments.totalCount>f.length,m=f.map(e=>({id:e.id,author:e.author?.login??null,body:e.body,createdAt:e.createdAt,authorAssociation:e.authorAssociation,isMinimized:e.isMinimized})),h=s.commits.nodes.slice(0,i.maxCommits),g=s.commits.totalCount>h.length,_=h.map(e=>({oid:e.commit.oid,message:e.commit.message,author:e.commit.author?.name??null})),v=s.files.nodes.slice(0,i.maxFiles),y=s.files.totalCount>v.length,b=v.map(e=>({path:e.path,additions:e.additions,deletions:e.deletions})),x=s.reviews.nodes.slice(0,i.maxReviews),S=s.reviews.totalCount>x.length,C=x.map(e=>({author:e.author?.login??null,state:e.state,body:e.body,createdAt:e.createdAt,comments:e.comments.nodes.map(e=>({id:e.id,author:e.author?.login??null,body:e.body,path:e.path,line:e.line,createdAt:e.createdAt}))})),w=s.labels.nodes.map(e=>({name:e.name,color:e.color})),T=s.assignees.nodes.map(e=>({login:e.login})),ee=s.reviewRequests.nodes.map(e=>`login`in e.requestedReviewer?e.requestedReviewer.login:null).filter(e=>e!=null),te=s.reviewRequests.nodes.map(e=>`name`in e.requestedReviewer?e.requestedReviewer.name:null).filter(e=>e!=null);return{type:`pull_request`,number:s.number,title:s.title,body:c.text,bodyTruncated:c.truncated,state:s.state,author:s.author?.login??null,createdAt:s.createdAt,baseBranch:s.baseRefName,headBranch:s.headRefName,isFork:d,labels:w,assignees:T,comments:m,commentsTruncated:p,totalComments:s.comments.totalCount,commits:_,commitsTruncated:g,totalCommits:s.commits.totalCount,files:b,filesTruncated:y,totalFiles:s.files.totalCount,reviews:C,reviewsTruncated:S,totalReviews:s.reviews.totalCount,authorAssociation:s.authorAssociation,requestedReviewers:ee,requestedReviewerTeams:te}}const En={PER_PAGE:100,MAX_PAGES:50};async function Dn(e,t,n,r,i){i.debug(`Fetching PR diff`,{prNumber:r});let a=[],o=1,s=!1;for(;o<=En.MAX_PAGES;){let{data:c}=await e.rest.pulls.listFiles({owner:t,repo:n,pull_number:r,per_page:En.PER_PAGE,page:o}),l=c.map(e=>({filename:e.filename,status:e.status,additions:e.additions,deletions:e.deletions,patch:e.patch??null,previousFilename:e.previous_filename??null}));if(a.push(...l),c.lengthEn.MAX_PAGES&&(s=!0,i.warning(`PR diff pagination limit reached`,{filesLoaded:a.length,maxPages:En.MAX_PAGES}))}let c=a.reduce((e,t)=>({additions:e.additions+t.additions,deletions:e.deletions+t.deletions}),{additions:0,deletions:0});return i.debug(`Fetched diff`,{files:a.length,additions:c.additions,deletions:c.deletions,truncated:s}),{files:a,additions:c.additions,deletions:c.deletions,changedFiles:a.length,truncated:s}}function On(e,t,n){let r=[],i=[];for(let a of e){let e=t.files.find(e=>e.filename===a.path);if(e==null){n.warning(`File not in diff, skipping comment`,{path:a.path}),i.push({comment:a,reason:`file_not_in_diff`});continue}if(e.patch==null){n.warning(`File has no patch, skipping comment`,{path:a.path}),i.push({comment:a,reason:`patch_missing`});continue}let o={path:a.path,body:a.body,line:a.line,side:a.side};a.startLine!=null&&a.startLine!==a.line&&(o.start_line=a.startLine,o.start_side=a.startSide??a.side),r.push(o)}return{ready:r,skipped:i}}async function kn(e,t,n){let{prNumber:r,owner:i,repo:a,event:o,body:s,comments:c,commitSha:l}=t;n.info(`Submitting review`,{prNumber:r,event:o,commentCount:c.length});let u=[],d=0;if(c.length>0){let t=On(c,await Dn(e,i,a,r,n),n);u=t.ready,d=t.skipped.length}let{data:f}=await e.rest.pulls.createReview({owner:i,repo:a,pull_number:r,event:o,body:s,...l===void 0?{}:{commit_id:l},comments:u.map(e=>({path:e.path,body:e.body,line:e.line,side:e.side,start_line:e.start_line,start_side:e.start_side}))});return n.info(`Review submitted`,{reviewId:f.id,state:f.state,commentsPosted:u.length,commentsSkipped:d}),{reviewId:f.id,state:f.state??``,commentsPosted:u.length,commentsSkipped:d,url:f.html_url??``}}async function An(e,t,n,r){if(e.eventType!==`pull_request`)return null;let i=e.target?.number;if(i==null)return r.debug(`No PR number in trigger context, skipping diff collection`),null;let[a,o]=n.split(`/`);if(a==null||o==null)return r.warning(`Invalid repo format, skipping diff collection`,{repo:n}),null;try{let e=await Dn(t,a,o,i,r),n={changedFiles:e.changedFiles,additions:e.additions,deletions:e.deletions,truncated:e.truncated,files:e.files.slice(0,50).map(e=>({filename:e.filename,status:e.status,additions:e.additions,deletions:e.deletions}))};return r.debug(`Collected diff context`,{files:n.changedFiles,additions:n.additions,deletions:n.deletions,truncated:n.truncated}),n}catch(e){return r.warning(`Failed to fetch PR diff`,{error:F(e)}),null}}async function jn(e){let{logger:t,octokit:n,triggerContext:r,botLogin:i}=e,{repo:a,ref:o,actor:s,runId:c,target:l,author:u,commentBody:d,commentId:f}=r,p=`${a.owner}/${a.repo}`,m=l?.kind===`issue`||l?.kind===`pr`?l.kind:null,h=l!=null&&l.kind!==`manual`?l.number:null,g=l?.title??null,_=u?.login??null,v=await An(r,n,p,t),y=await Mn(n,a.owner,a.repo,h,m,t),b=y?.type===`pull_request`?y:null,x=b?.authorAssociation??null,S=i!=null&&b!=null?b.requestedReviewers.includes(i):!1;return t.info(`Collected agent context`,{eventName:r.eventName,repo:p,issueNumber:h,issueType:m,hasComment:d!=null,hasDiffContext:v!=null,hasHydratedContext:y!=null}),{eventName:r.eventName,repo:p,ref:o,actor:s,runId:String(c),issueNumber:h,issueTitle:g,issueType:m,commentBody:d,commentAuthor:_,commentId:f,defaultBranch:await pn(n,p,t),diffContext:v,hydratedContext:y,authorAssociation:x,isRequestedReviewer:S}}async function Mn(e,t,n,r,i,a){if(r==null||i==null)return null;let o=_n;return i===`issue`?await wn(e,t,n,r,o,a)??bn(e,t,n,r,o,a):await Tn(e,t,n,r,o,a)??xn(e,t,n,r,o,a)}const Nn=5e3;function Pn(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`string`?n.value:null}function Fn(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`number`?n.value:null}function In(e,t){return typeof e!=`object`||!e?null:Object.getOwnPropertyDescriptor(e,t)?.value??null}async function Ln(e,t,n){let r;try{return await Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>{i(Error(`${n} timed out after ${t}ms`))},t)})])}finally{r!=null&&clearTimeout(r)}}async function Rn(e,t,n,r,i){if(r?.baselineMessageIds==null)return null;if(typeof e.session.messages!=`function`)return i.debug(`session.messages() unavailable; skipping message activity poll`,{sessionId:t}),null;let a=await Ln(e.session.messages({path:{id:t},query:{directory:n}}),Nn,`session.messages()`),o=Array.isArray(a.data)?a.data:[],s=null;for(let e of o){let t=In(e,`info`),n=Pn(t,`id`);n==null||r.baselineMessageIds.has(n)||Pn(t,`role`)===`assistant`&&(s=t)}if(s==null)return null;r.firstMeaningfulEventReceived=!0;let c=Pn(s,`id`),l=Fn(In(s,`time`),`completed`);return c==null||l==null?(r.completedAssistantMessageId=void 0,null):r.completedAssistantMessageId===c?(r.currentTurnTerminalSignalReceived=!0,i.debug(`Session completion detected via stable completed assistant message`,{sessionId:t,messageId:c}),{completed:!0,error:null}):(r.completedAssistantMessageId=c,i.debug(`Completed assistant message observed; waiting for confirmation poll`,{sessionId:t,messageId:c}),null)}async function zn(e,t,n,r,i,a=y,o){let s=Date.now(),c=0;for(;!r.aborted;){if(await Ae(500),r.aborted)return{completed:!1,error:`Aborted`};if(o?.sessionError==null)c=0;else{if(c++,c>=3)return i.error(`Session error persisted through grace period`,{sessionId:t,error:o.sessionError,graceCycles:c}),{completed:!1,error:`Session error: ${o.sessionError}`};continue}if(o?.sessionIdle===!0&&o.currentTurnTerminalSignalReceived)return i.debug(`Session idle detected via event stream`,{sessionId:t}),{completed:!0,error:null};let l=Date.now()-s;if(a>0&&l>=a)return i.warning(`Poll timeout reached`,{elapsedMs:l,maxPollTimeMs:a}),{completed:!1,error:`Poll timeout after ${l}ms`};try{let r=await Rn(e,t,n,o,i);if(r!=null)return r;let a=((await Ln(e.session.status({query:{directory:n}}),Nn,`session.status()`)).data??{})[t];if(a==null)i.debug(`Session status not found in poll response`,{sessionId:t});else if(a.type===`idle`)if(o!=null&&o.currentTurnTerminalSignalReceived!==!0)i.debug(`Session idle detected before terminal signal; continuing watchdog`,{sessionId:t});else return i.debug(`Session idle detected via polling`,{sessionId:t}),{completed:!0,error:null};else i.debug(`Session status`,{sessionId:t,type:a.type});if(o!=null&&!o.firstMeaningfulEventReceived){let e=Date.now()-s;if(e>=9e4)return i.error(`No agent activity detected — server may have crashed during prompt processing`,{elapsedMs:e,sessionId:t}),{completed:!1,error:`No agent activity detected after ${e}ms — server may have crashed during prompt processing`}}}catch(e){i.debug(`Poll request failed`,{error:F(e)})}}return{completed:!1,error:`Aborted`}}async function Bn(e,t=2e3){await Promise.race([e,new Promise(e=>{setTimeout(e,t)})])}function Vn(e){try{let t=new URL(e);return t.hostname===`github.com`||t.hostname===`api.github.com`}catch{return!1}}function Hn(e){try{let t=new URL(e);return t.hostname===`github.com`&&(t.pathname.startsWith(`/user-attachments/assets/`)||t.pathname.startsWith(`/user-attachments/files/`))}catch{return!1}}function Un(e){let t=e.match(/https:\/\/github\.com\/[a-zA-Z0-9-]+\/[\w.-]+\/(?:pull|issues)\/\d+(?:#issuecomment-\d+)?/g)??[];return[...new Set(t)].filter(Vn)}function Wn(e){let t=/\[[\w-]+\s+([a-f0-9]{7,40})\]/g,n=[];for(let r of e.matchAll(t))r[1]!=null&&n.push(r[1]);return[...new Set(n)]}function Gn(e,t){let n=J(e,`type`);if(n===`sync`){let n=J(e,`name`)?.replace(/\.\d+$/,``)??`sync`,r=q(X(e,`data`));t.debug(`Server event`,{eventKind:n,sessionID:r})}else t.debug(`Server event`,{eventType:n,properties:X(e,`properties`)})}function Kn(e,t,n,r,i,a){let o=Un(t);if(e.includes(`gh pr create`)){let e=o.filter(e=>e.includes(`/pull/`)&&!e.includes(`#`));for(let t of e)n.includes(t)||n.push(t)}if(e.includes(`git commit`)){let e=Wn(t);for(let t of e)r.includes(t)||r.push(t)}if(e.includes(`gh issue comment`)||e.includes(`gh pr comment`)){let e=o.filter(e=>e.includes(`#issuecomment`));for(let t of e)(a==null||!a.includes(t))&&(a?.push(t),i())}}function q(e){if(typeof e!=`object`||!e)return null;let t=Object.getOwnPropertyDescriptor(e,`sessionID`);return typeof t?.value==`string`?t.value:null}function J(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`string`?n.value:null}function Y(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`number`?n.value:null}function X(e,t){return typeof e!=`object`||!e?null:Object.getOwnPropertyDescriptor(e,t)?.value??null}function qn(e){return q(X(e,`properties`))??q(X(e,`data`))}function Jn(e){let t=J(e,`type`);return t===`sync`?J(e,`name`)?.replace(/\.\d+$/,``)??t:t}function Yn(e){return X(e,`properties`)??X(e,`data`)}function Xn(e){return e===`message.part.delta`||e?.startsWith(`session.next.`)===!0}async function Zn(e,t,n,r,i){let a=``,o=null,s=null,c=null,l=[],u=[],d=[],f=0,p=null,m=new Map;for await(let h of e){if(n.aborted)break;if(Gn(h,r),i?.currentTurnArmed===!1)continue;let e=Jn(h),g=Yn(h);if(i!=null&&Xn(e)&&qn(h)===t&&(i.firstMeaningfulEventReceived=!0),e===`message.part.delta`){if(qn(h)===t){let e=X(g,`delta`),t=J(e,`type`),n=J(e,`text`);t===`text`&&n!=null?a+=n:typeof e==`string`&&J(g,`field`)===`text`&&(a+=e)}}else if(e===`session.next.text.delta`){if(qn(h)===t){let e=X(g,`delta`),t=typeof e==`string`?e:J(e,`text`)??null;t!=null&&(a+=t)}}else if(e===`session.next.tool.called`){if(qn(h)===t){let e=J(g,`callID`),t=J(g,`tool`),n=X(g,`input`);e!=null&&t!=null&&(m.set(e,{tool:t,input:n}),r.debug(`Tool called`,{callID:e,tool:t}))}}else if(e===`session.next.tool.success`){if(qn(h)===t){let e=J(g,`callID`);if(e===null)continue;let t=m.get(e);if(t!==void 0){m.delete(e);let{tool:n,input:r}=t;if($t(n,J(X(g,`structured`),`title`)??J(r,`title`)??(n.toLowerCase()===`bash`?String(X(r,`command`)??X(r,`cmd`)??n):n)),n.toLowerCase()===`bash`){let e=String(X(r,`command`)??X(r,`cmd`)??``),t=X(g,`content`);Kn(e,Array.isArray(t)?t.map(e=>J(e,`type`)===`text`?J(e,`text`)??``:``).join(` -`):``,l,u,()=>{f++},d)}}}}else if(e===`message.part.updated`){let e=X(g,`part`);if((q(g)??q(e))!==t)continue;i!=null&&(i.firstMeaningfulEventReceived=!0);let n=J(e,`type`);if(n===`text`){let t=J(e,`text`);t!=null&&(a=t),Y(X(e,`time`),`end`)!=null&&(en(a),a=``)}else if(n===`tool`){let t=X(e,`state`);if(J(t,`status`)===`completed`){let n=J(e,`tool`)??``;if($t(n,String(X(t,`title`)??``)),n.toLowerCase()===`bash`){let e=X(t,`input`);Kn(String(X(e,`command`)??X(e,`cmd`)??``),String(X(t,`output`)??``),l,u,()=>{f++},d)}}}}else if(e===`message.updated`){let e=X(g,`info`),n=q(g)??q(e),a=X(e,`tokens`);n===t&&J(e,`role`)===`assistant`&&a!=null&&(i!=null&&(i.firstMeaningfulEventReceived=!0),o={input:Y(a,`input`)??0,output:Y(a,`output`)??0,reasoning:Y(a,`reasoning`)??0,cache:{read:Y(X(a,`cache`),`read`)??0,write:Y(X(a,`cache`),`write`)??0}},s=J(e,`modelID`),c=Y(e,`cost`),r.debug(`Token usage received`,{tokens:o,model:s,cost:c}))}else if(e===`session.error`){if(q(g)===t){let e=X(g,`error`),t=typeof e==`string`?e:String(e);r.error(`Session error`,{error:e}),p=xe(e)?ce(t,s??void 0):me(t),i!=null&&(i.sessionError=t)}}else e===`session.idle`&&q(g)===t&&(i!=null&&(i.sessionIdle=!0,i.currentTurnTerminalSignalReceived=!0),a.length>0&&(en(a),a=``))}return a.length>0&&en(a),{tokens:o,model:s,cost:c,prsCreated:l,commitsCreated:u,commentsPostedUrls:d,commentsPosted:f,llmError:p}}function Qn(e,t){let n=[],r=[],i=[],a=0;for(let o of e)if(J(o,`type`)===`tool`){let e=X(o,`state`);if(J(e,`status`)===`completed`&&(J(o,`tool`)??``).toLowerCase()===`bash`){let o=X(e,`input`),s=String(X(o,`command`)??X(o,`cmd`)??``),c=String(X(e,`output`)??``);t.debug(`Artifact scan: bash tool part`,{command:s.slice(0,80)}),Kn(s,c,n,r,()=>{a++},i)}}return{prsCreated:n,commitsCreated:r,commentsPostedUrls:i,commentsPosted:a}}function $n(e){if(typeof e!=`object`||!e)return null;let t=Object.getOwnPropertyDescriptor(e,`id`);return typeof t?.value==`string`?t.value:null}function er(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`string`?n.value:null}function tr(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`number`?n.value:null}function nr(e,t){return typeof e!=`object`||!e?null:Object.getOwnPropertyDescriptor(e,t)?.value??null}const rr=5e3;function ir(e,t){return[...e,...t.filter(t=>!e.includes(t))]}async function ar(e,t,n){let r;try{return await Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>{i(Error(`${n} timed out after ${t}ms`))},t)})])}finally{r!=null&&clearTimeout(r)}}async function or(e,t,n,r){if(typeof e.session.messages!=`function`)return null;try{let r=await ar(e.session.messages({path:{id:t},query:{directory:n}}),rr,`baseline session.messages()`),i=Array.isArray(r.data)?r.data:[];return new Set(i.flatMap(e=>$n(nr(e,`info`))??[]))}catch(e){return r.debug(`Unable to read baseline session messages; disabling message activity fallback`,{sessionId:t,error:F(e)}),null}}async function sr(e,t,n,r,i){if(r==null||typeof e.session.messages!=`function`)return null;try{let i=await ar(e.session.messages({path:{id:t},query:{directory:n}}),rr,`completed assistant session.messages()`),a=Array.isArray(i.data)?i.data:[],o=null,s=-1/0;for(let e of a){let t=nr(e,`info`),n=er(t,`id`);if(n==null||r.has(n)||er(t,`role`)!==`assistant`)continue;let i=nr(t,`time`);if(tr(i,`completed`)==null)continue;let a=tr(i,`created`)??0;(o==null||a>=s)&&(o=e,s=a)}if(o!=null){let e=nr(o,`parts`);if(Array.isArray(e))return Array.from(e,e=>e)}return null}catch(e){return i.debug(`Unable to read completed assistant message parts`,{sessionId:t,error:F(e)}),null}}function cr(e,t){let n=ir(e.commentsPostedUrls??[],t.commentsPostedUrls??[]);return{...e,prsCreated:ir(e.prsCreated,t.prsCreated),commitsCreated:ir(e.commitsCreated,t.commitsCreated),commentsPostedUrls:n,commentsPosted:n.length>0?n.length:Math.max(e.commentsPosted,t.commentsPosted)}}const lr=[5e3,15e3,3e4,6e4];async function ur(e){if(e==null)return null;try{let{createOpencodeClient:t}=await import(`./v2-BTpcWq6_.js`);return t({baseUrl:e})}catch{return null}}async function dr(e,t,n,r,i){let a=await ur(e);if(a==null)return!1;try{let e=await a.v2.session.wait({sessionID:t},{signal:i});if(e.error!=null)return r.debug(`v2.session.wait() returned error, relying on poll watchdog`,{sessionId:t,error:String(e.error)}),!1;let o=Date.now()+500;for(;n.currentTurnTerminalSignalReceived!==!0&&Date.now()setTimeout(e,10));return n.currentTurnTerminalSignalReceived===!0?(r.debug(`v2.session.wait() resolved with terminal signal — session is done`,{sessionId:t}),!0):(r.debug(`v2.session.wait() resolved without terminal signal — deferring to poll watchdog`,{sessionId:t}),!1)}catch(e){return r.debug(`v2.session.wait() threw, relying on poll watchdog`,{sessionId:t,error:F(e)}),!1}}async function fr(e,t,n,r,i,a,o,s){let c=new AbortController,l=new AbortController,u={firstMeaningfulEventReceived:!1,currentTurnTerminalSignalReceived:!1,currentTurnArmed:s==null,baselineMessageIds:void 0,sessionIdle:!1,sessionError:null},d=a??(await e.event.subscribe()).stream,f={tokens:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:null},p=Zn(d,t,c.signal,i,u).then(e=>{f=e}).catch(e=>{e instanceof Error&&e.name!==`AbortError`&&i.debug(`Event stream error`,{error:e.message})}),m=async()=>{c.abort(),l.abort(),await Bn(p)};try{if(await Promise.resolve(),s!=null){u.baselineMessageIds=await or(e,t,n,i)??void 0,u.currentTurnArmed=!0;let r=await s();if(r!=null)return await m(),r}let a=zn(e,t,n,c.signal,i,r,u),d=dr(o,t,u,i,l.signal),p=await Promise.race([d.then(e=>e?{completed:!0,error:null}:a),a]);if(await m(),!p.completed){let e=p.error??`Session did not reach idle state`;return i.error(`Session completion polling failed`,{error:e,sessionId:t}),{success:!1,error:e,llmError:f.llmError,shouldRetry:f.llmError!=null,eventStreamResult:f}}let h=await sr(e,t,n,u.baselineMessageIds,i);if(h!=null){let e=Qn(h,i);return{success:!0,error:null,llmError:null,shouldRetry:!1,eventStreamResult:cr(f,e)}}return{success:!0,error:null,llmError:null,shouldRetry:!1,eventStreamResult:f}}finally{c.abort(),l.abort(),await Bn(p)}}const pr=e=>{if(e?.model!=null)return{providerID:e.model.providerID,modelID:e.model.modelID};if(!(e!=null&&Object.values(e.omoProviders).some(e=>e!==`no`)))return{providerID:m.providerID,modelID:m.modelID}};async function mr(e,t,n,r,i,a,o,s){let c={parts:[{type:`text`,text:n},...r??[]]},l=pr(a);l!=null&&(c.model=l);let u=a?.agent??null;u!=null&&(c.agent=u);let d=await e.event.subscribe();return fr(e,t,i,a?.timeoutMs??18e5,o,d.stream,s,async()=>{let n=await e.session.promptAsync({path:{id:t},body:c,query:{directory:i}});if(n.error==null)return null;let r=String(n.error),a=xe(n.error)?ce(r):null;return{success:!1,error:r,llmError:a,shouldRetry:a!=null,eventStreamResult:{tokens:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:a}}})}async function hr(e,t,r,i){let a=Date.now(),o=new AbortController,s=r?.timeoutMs??18e5,c=null,l=!1,u=i==null,p=null;s>0&&(c=setTimeout(()=>{l=!0,t.warning(`Execution timeout reached`,{timeoutMs:s}),o.abort()},s)),t.info(`Executing OpenCode agent (SDK mode)`,{agent:r?.agent??`build (default)`,hasModelOverride:r?.model!=null,timeoutMs:s});try{let c,u=null;if(i==null){let e=await Ee({signal:o.signal});c=e.client,p=e.server,u=e.server.url}else c=i.client,u=i.server.url;let m;if(r?.continueSessionId==null){let e=r?.sessionTitle==null?void 0:{body:{title:r.sessionTitle}},n=e==null?await c.session.create():await c.session.create(e);if(n.data==null||n.error!=null)throw Error(`Failed to create session: ${n.error==null?`No data returned`:String(n.error)}`);m=n.data.id,t.info(`Created new OpenCode session`,{sessionId:m,sessionTitle:r?.sessionTitle??null})}else m=r.continueSessionId,t.info(`Continuing existing OpenCode session`,{sessionId:m});let{text:h,referenceFiles:g}=he({...e,sessionId:m},t),_=f(),v=b();if(await V.mkdir(v,{recursive:!0}),d()){let e=Ue.createHash(`sha256`).update(h).digest(`hex`),n=H.join(v,`prompt-${m}-${e.slice(0,8)}.txt`);try{await V.writeFile(n,h,`utf8`),t.info(`Prompt artifact written`,{hash:e,path:n})}catch(e){t.warning(`Failed to write prompt artifact`,{error:e instanceof Error?e.message:String(e),path:n})}}let y=await n(g,v,t),x=[...e.fileParts??[],...y],S={tokens:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:null},C=null,w=null;for(let e=1;e<=4;e++){if(l)return{success:!1,exitCode:130,duration:Date.now()-a,sessionId:m,error:`Execution timed out after ${s}ms`,tokenUsage:S.tokens,model:S.model,cost:S.cost,prsCreated:S.prsCreated,commitsCreated:S.commitsCreated,commentsPosted:S.commentsPosted,llmError:w};let n=lr[Math.min(e-1,lr.length-1)]??lr[0];if(s>0&&s-(Date.now()-a)<=n&&e>1)break;let i=e===1?h:`The previous request was interrupted by a network error (fetch failed). +`):``,l,u,()=>{f++},d)}}}}else if(e===`message.part.updated`){let e=X(g,`part`);if((q(g)??q(e))!==t)continue;i!=null&&(i.firstMeaningfulEventReceived=!0);let n=J(e,`type`);if(n===`text`){let t=J(e,`text`);t!=null&&(a=t),Y(X(e,`time`),`end`)!=null&&(en(a),a=``)}else if(n===`tool`){let t=X(e,`state`);if(J(t,`status`)===`completed`){let n=J(e,`tool`)??``;if($t(n,String(X(t,`title`)??``)),n.toLowerCase()===`bash`){let e=X(t,`input`);Kn(String(X(e,`command`)??X(e,`cmd`)??``),String(X(t,`output`)??``),l,u,()=>{f++},d)}}}}else if(e===`message.updated`){let e=X(g,`info`),n=q(g)??q(e),a=X(e,`tokens`);n===t&&J(e,`role`)===`assistant`&&a!=null&&(i!=null&&(i.firstMeaningfulEventReceived=!0),o={input:Y(a,`input`)??0,output:Y(a,`output`)??0,reasoning:Y(a,`reasoning`)??0,cache:{read:Y(X(a,`cache`),`read`)??0,write:Y(X(a,`cache`),`write`)??0}},s=J(e,`modelID`),c=Y(e,`cost`),r.debug(`Token usage received`,{tokens:o,model:s,cost:c}))}else if(e===`session.error`){if(q(g)===t){let e=X(g,`error`),t=typeof e==`string`?e:String(e);r.error(`Session error`,{error:e}),p=xe(e)?ce(t,s??void 0):me(t),i!=null&&(i.sessionError=t)}}else e===`session.idle`&&q(g)===t&&(i!=null&&(i.sessionIdle=!0,i.currentTurnTerminalSignalReceived=!0),a.length>0&&(en(a),a=``))}return a.length>0&&en(a),{tokens:o,model:s,cost:c,prsCreated:l,commitsCreated:u,commentsPostedUrls:d,commentsPosted:f,llmError:p}}function Qn(e,t){let n=[],r=[],i=[],a=0;for(let o of e)if(J(o,`type`)===`tool`){let e=X(o,`state`);if(J(e,`status`)===`completed`&&(J(o,`tool`)??``).toLowerCase()===`bash`){let o=X(e,`input`),s=String(X(o,`command`)??X(o,`cmd`)??``),c=String(X(e,`output`)??``);t.debug(`Artifact scan: bash tool part`,{command:s.slice(0,80)}),Kn(s,c,n,r,()=>{a++},i)}}return{prsCreated:n,commitsCreated:r,commentsPostedUrls:i,commentsPosted:a}}function $n(e){if(typeof e!=`object`||!e)return null;let t=Object.getOwnPropertyDescriptor(e,`id`);return typeof t?.value==`string`?t.value:null}function er(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`string`?n.value:null}function tr(e,t){if(typeof e!=`object`||!e)return null;let n=Object.getOwnPropertyDescriptor(e,t);return typeof n?.value==`number`?n.value:null}function nr(e,t){return typeof e!=`object`||!e?null:Object.getOwnPropertyDescriptor(e,t)?.value??null}const rr=5e3;function ir(e,t){return[...e,...t.filter(t=>!e.includes(t))]}async function ar(e,t,n){let r;try{return await Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>{i(Error(`${n} timed out after ${t}ms`))},t)})])}finally{r!=null&&clearTimeout(r)}}async function or(e,t,n,r){if(typeof e.session.messages!=`function`)return null;try{let r=await ar(e.session.messages({path:{id:t},query:{directory:n}}),rr,`baseline session.messages()`),i=Array.isArray(r.data)?r.data:[];return new Set(i.flatMap(e=>$n(nr(e,`info`))??[]))}catch(e){return r.debug(`Unable to read baseline session messages; disabling message activity fallback`,{sessionId:t,error:F(e)}),null}}async function sr(e,t,n,r,i){if(r==null||typeof e.session.messages!=`function`)return null;try{let i=await ar(e.session.messages({path:{id:t},query:{directory:n}}),rr,`completed assistant session.messages()`),a=Array.isArray(i.data)?i.data:[],o=null,s=-1/0;for(let e of a){let t=nr(e,`info`),n=er(t,`id`);if(n==null||r.has(n)||er(t,`role`)!==`assistant`)continue;let i=nr(t,`time`);if(tr(i,`completed`)==null)continue;let a=tr(i,`created`)??0;(o==null||a>=s)&&(o=e,s=a)}if(o!=null){let e=nr(o,`parts`);if(Array.isArray(e))return Array.from(e,e=>e)}return null}catch(e){return i.debug(`Unable to read completed assistant message parts`,{sessionId:t,error:F(e)}),null}}function cr(e,t){let n=ir(e.commentsPostedUrls??[],t.commentsPostedUrls??[]);return{...e,prsCreated:ir(e.prsCreated,t.prsCreated),commitsCreated:ir(e.commitsCreated,t.commitsCreated),commentsPostedUrls:n,commentsPosted:n.length>0?n.length:Math.max(e.commentsPosted,t.commentsPosted)}}const lr=[5e3,15e3,3e4,6e4];async function ur(e){if(e==null)return null;try{let{createOpencodeClient:t}=await import(`./v2-cQAI1CIK.js`);return t({baseUrl:e})}catch{return null}}async function dr(e,t,n,r,i){let a=await ur(e);if(a==null)return!1;try{let e=await a.v2.session.wait({sessionID:t},{signal:i});if(e.error!=null)return r.debug(`v2.session.wait() returned error, relying on poll watchdog`,{sessionId:t,error:String(e.error)}),!1;let o=Date.now()+500;for(;n.currentTurnTerminalSignalReceived!==!0&&Date.now()setTimeout(e,10));return n.currentTurnTerminalSignalReceived===!0?(r.debug(`v2.session.wait() resolved with terminal signal — session is done`,{sessionId:t}),!0):(r.debug(`v2.session.wait() resolved without terminal signal — deferring to poll watchdog`,{sessionId:t}),!1)}catch(e){return r.debug(`v2.session.wait() threw, relying on poll watchdog`,{sessionId:t,error:F(e)}),!1}}async function fr(e,t,n,r,i,a,o,s){let c=new AbortController,l=new AbortController,u={firstMeaningfulEventReceived:!1,currentTurnTerminalSignalReceived:!1,currentTurnArmed:s==null,baselineMessageIds:void 0,sessionIdle:!1,sessionError:null},d=a??(await e.event.subscribe()).stream,f={tokens:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:null},p=Zn(d,t,c.signal,i,u).then(e=>{f=e}).catch(e=>{e instanceof Error&&e.name!==`AbortError`&&i.debug(`Event stream error`,{error:e.message})}),m=async()=>{c.abort(),l.abort(),await Bn(p)};try{if(await Promise.resolve(),s!=null){u.baselineMessageIds=await or(e,t,n,i)??void 0,u.currentTurnArmed=!0;let r=await s();if(r!=null)return await m(),r}let a=zn(e,t,n,c.signal,i,r,u),d=dr(o,t,u,i,l.signal),p=await Promise.race([d.then(e=>e?{completed:!0,error:null}:a),a]);if(await m(),!p.completed){let e=p.error??`Session did not reach idle state`;return i.error(`Session completion polling failed`,{error:e,sessionId:t}),{success:!1,error:e,llmError:f.llmError,shouldRetry:f.llmError!=null,eventStreamResult:f}}let h=await sr(e,t,n,u.baselineMessageIds,i);if(h!=null){let e=Qn(h,i);return{success:!0,error:null,llmError:null,shouldRetry:!1,eventStreamResult:cr(f,e)}}return{success:!0,error:null,llmError:null,shouldRetry:!1,eventStreamResult:f}}finally{c.abort(),l.abort(),await Bn(p)}}const pr=e=>{if(e?.model!=null)return{providerID:e.model.providerID,modelID:e.model.modelID};if(!(e!=null&&Object.values(e.omoProviders).some(e=>e!==`no`)))return{providerID:m.providerID,modelID:m.modelID}};async function mr(e,t,n,r,i,a,o,s){let c={parts:[{type:`text`,text:n},...r??[]]},l=pr(a);l!=null&&(c.model=l);let u=a?.agent??null;u!=null&&(c.agent=u);let d=await e.event.subscribe();return fr(e,t,i,a?.timeoutMs??18e5,o,d.stream,s,async()=>{let n=await e.session.promptAsync({path:{id:t},body:c,query:{directory:i}});if(n.error==null)return null;let r=String(n.error),a=xe(n.error)?ce(r):null;return{success:!1,error:r,llmError:a,shouldRetry:a!=null,eventStreamResult:{tokens:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:a}}})}async function hr(e,t,r,i){let a=Date.now(),o=new AbortController,s=r?.timeoutMs??18e5,c=null,l=!1,u=i==null,p=null;s>0&&(c=setTimeout(()=>{l=!0,t.warning(`Execution timeout reached`,{timeoutMs:s}),o.abort()},s)),t.info(`Executing OpenCode agent (SDK mode)`,{agent:r?.agent??`build (default)`,hasModelOverride:r?.model!=null,timeoutMs:s});try{let c,u=null;if(i==null){let e=await Ee({signal:o.signal});c=e.client,p=e.server,u=e.server.url}else c=i.client,u=i.server.url;let m;if(r?.continueSessionId==null){let e=r?.sessionTitle==null?void 0:{body:{title:r.sessionTitle}},n=e==null?await c.session.create():await c.session.create(e);if(n.data==null||n.error!=null)throw Error(`Failed to create session: ${n.error==null?`No data returned`:String(n.error)}`);m=n.data.id,t.info(`Created new OpenCode session`,{sessionId:m,sessionTitle:r?.sessionTitle??null})}else m=r.continueSessionId,t.info(`Continuing existing OpenCode session`,{sessionId:m});let{text:h,referenceFiles:g}=he({...e,sessionId:m},t),_=f(),v=b();if(await V.mkdir(v,{recursive:!0}),d()){let e=Ue.createHash(`sha256`).update(h).digest(`hex`),n=H.join(v,`prompt-${m}-${e.slice(0,8)}.txt`);try{await V.writeFile(n,h,`utf8`),t.info(`Prompt artifact written`,{hash:e,path:n})}catch(e){t.warning(`Failed to write prompt artifact`,{error:e instanceof Error?e.message:String(e),path:n})}}let y=await n(g,v,t),x=[...e.fileParts??[],...y],S={tokens:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:null},C=null,w=null;for(let e=1;e<=4;e++){if(l)return{success:!1,exitCode:130,duration:Date.now()-a,sessionId:m,error:`Execution timed out after ${s}ms`,tokenUsage:S.tokens,model:S.model,cost:S.cost,prsCreated:S.prsCreated,commitsCreated:S.commitsCreated,commentsPosted:S.commentsPosted,llmError:w};let n=lr[Math.min(e-1,lr.length-1)]??lr[0];if(s>0&&s-(Date.now()-a)<=n&&e>1)break;let i=e===1?h:`The previous request was interrupted by a network error (fetch failed). Please continue where you left off. If you were in the middle of a task, resume it. -If you had completed the task, confirm the completion.`,o=x.length>0?x:void 0,d=await(async()=>{try{return await mr(c,m,i,o,_,r,t,u)}finally{await jt(c,m,r?.sessionTitle,t)}})();if(d.success)return S=d.eventStreamResult,{success:!0,exitCode:0,duration:Date.now()-a,sessionId:m,error:null,tokenUsage:S.tokens,model:S.model,cost:S.cost,prsCreated:S.prsCreated,commitsCreated:S.commitsCreated,commentsPosted:S.commentsPosted,llmError:null};if(C=d.error,w=d.llmError,!d.shouldRetry||e>=4)break;t.warning(`LLM fetch error detected, retrying with continuation prompt`,{attempt:e,maxAttempts:4,error:d.error,delayMs:n,sessionId:m}),await Ae(n)}return{success:!1,exitCode:1,duration:Date.now()-a,sessionId:m,error:C??`Unknown error`,tokenUsage:S.tokens,model:S.model,cost:S.cost,prsCreated:S.prsCreated,commitsCreated:S.commitsCreated,commentsPosted:S.commentsPosted,llmError:w}}catch(e){let n=Date.now()-a,r=F(e);return t.error(`OpenCode execution failed`,{error:r,durationMs:n}),{success:!1,exitCode:1,duration:n,sessionId:null,error:r,tokenUsage:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:xe(e)?ce(r):null}}finally{c!=null&&clearTimeout(c),o.abort(),u&&p?.close()}}async function gr(e,t,n){return t.commentId==null?(n.debug(`No comment ID, skipping eyes reaction`),!1):await sn(e,t.repo,t.commentId,`eyes`,n)==null?!1:(n.info(`Added eyes reaction`,{commentId:t.commentId}),!0)}async function _r(e,t,n){return t.issueNumber==null?(n.debug(`No issue number, skipping working label`),!1):await un(e,t.repo,`agent: working`,`fcf2e1`,`Agent is currently working on this`,n)&&await dn(e,t.repo,t.issueNumber,[`agent: working`],n)?(n.info(`Added working label`,{issueNumber:t.issueNumber}),!0):!1}async function vr(e,t,n){await Promise.all([gr(e,t,n),_r(e,t,n)])}async function yr(e,t,n){if(t.commentId==null||t.botLogin==null)return;let r=(await cn(e,t.repo,t.commentId,n)).find(e=>e.content===`eyes`&&e.userLogin===t.botLogin);r!=null&&await ln(e,t.repo,t.commentId,r.id,n)}async function br(e,t,n,r){t.commentId!=null&&await sn(e,t.repo,t.commentId,n,r)}async function xr(e,t,n){if(t.commentId==null||t.botLogin==null){n.debug(`Missing comment ID or bot login, skipping reaction update`);return}try{await yr(e,t,n),await br(e,t,`hooray`,n),n.info(`Updated reaction to success indicator`,{commentId:t.commentId,reaction:`hooray`})}catch(e){n.warning(`Failed to update reaction (non-fatal)`,{error:F(e)})}}async function Sr(e,t,n){if(t.commentId==null||t.botLogin==null){n.debug(`Missing comment ID or bot login, skipping reaction update`);return}try{await yr(e,t,n),await br(e,t,`confused`,n),n.info(`Updated reaction to confused`,{commentId:t.commentId})}catch(e){n.warning(`Failed to update failure reaction (non-fatal)`,{error:F(e)})}}async function Cr(e,t,n){if(t.issueNumber==null){n.debug(`No issue number, skipping label removal`);return}await fn(e,t.repo,t.issueNumber,`agent: working`,n)&&n.info(`Removed working label`,{issueNumber:t.issueNumber})}async function wr(e,t,n,r){n?await xr(e,t,r):await Sr(e,t,r),await Cr(e,t,r)}var Z=e(ue(),1),Tr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Er=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return Tr(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},Q=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Dr=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};const Or=process.platform===`win32`;process.platform;function kr(e,t,n,r){return Q(this,void 0,void 0,function*(){return t||=B.join(Wr(),ze.randomUUID()),yield S(B.dirname(t)),E(`Downloading ${e}`),E(`Destination ${t}`),yield new Er(3,Gr(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),Gr(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>Q(this,void 0,void 0,function*(){return yield Ar(e,t||``,n,r)}),e=>!(e instanceof Dr&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function Ar(e,t,n,r){return Q(this,void 0,void 0,function*(){if(z.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new c(`actions/tool-cache`,[],{allowRetries:!1});n&&(E(`set auth`),r===void 0&&(r={}),r.authorization=n);let o=yield i.get(e,r);if(o.message.statusCode!==200){let t=new Dr(o.message.statusCode);throw E(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}let s=Ve.promisify(tt.pipeline),l=Gr(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>o.message)(),u=!1;try{return yield s(l,z.createWriteStream(t)),E(`download complete`),u=!0,t}finally{if(!u){E(`download failed`);try{yield a(t)}catch(e){E(`Failed to delete '${t}'. ${e.message}`)}}}})}function jr(e,t){return Q(this,arguments,void 0,function*(e,t,n=`xz`){if(!e)throw Error(`parameter 'file' is required`);t=yield Rr(t),E(`Checking tar --version`);let r=``;yield L(`tar --version`,[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),E(r.trim());let i=r.toUpperCase().includes(`GNU TAR`),a;a=n instanceof Array?n:[n],Ce()&&!n.includes(`v`)&&a.push(`-v`);let o=t,s=e;return Or&&i&&(a.push(`--force-local`),o=t.replace(/\\/g,`/`),s=e.replace(/\\/g,`/`)),i&&(a.push(`--warning=no-unknown-keyword`),a.push(`--overwrite`)),a.push(`-C`,o,`-f`,s),yield L(`tar`,a),t})}function Mr(e,t){return Q(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'file' is required`);return t=yield Rr(t),Or?yield Nr(e,t):yield Pr(e,t),t})}function Nr(e,t){return Q(this,void 0,void 0,function*(){let n=e.replace(/'/g,`''`).replace(/"|\n|\r/g,``),r=t.replace(/'/g,`''`).replace(/"|\n|\r/g,``),i=yield Fe(`pwsh`,!1);if(i){let e=[`-NoLogo`,`-NoProfile`,`-NonInteractive`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(` `)];E(`Using pwsh at path: ${i}`),yield L(`"${i}"`,e)}else{let e=[`-NoLogo`,`-Sta`,`-NoProfile`,`-NonInteractive`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`].join(` `)],t=yield Fe(`powershell`,!0);E(`Using powershell at path: ${t}`),yield L(`"${t}"`,e)}})}function Pr(e,t){return Q(this,void 0,void 0,function*(){let n=yield Fe(`unzip`,!0),r=[e];Ce()||r.unshift(`-q`),r.unshift(`-o`),yield L(`"${n}"`,r,{cwd:t})})}function Fr(e,t,n,r){return Q(this,void 0,void 0,function*(){if(n=Z.clean(n)||n,r||=Re.arch(),E(`Caching tool ${t} ${n} ${r}`),E(`source dir: ${e}`),!z.statSync(e).isDirectory())throw Error(`sourceDir is not a directory`);let i=yield zr(t,n,r);for(let t of z.readdirSync(e))yield Ie(B.join(e,t),i,{recursive:!0});return Br(t,n,r),i})}function Ir(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=Re.arch(),Vr(t)||(t=Hr(Lr(e,n),t));let r=``;if(t){t=Z.clean(t)||``;let i=B.join(Ur(),e,t,n);E(`checking cache: ${i}`),z.existsSync(i)&&z.existsSync(`${i}.complete`)?(E(`Found tool in cache ${e} ${t} ${n}`),r=i):E(`not found`)}return r}function Lr(e,t){let n=[];t||=Re.arch();let r=B.join(Ur(),e);if(z.existsSync(r)){let e=z.readdirSync(r);for(let i of e)if(Vr(i)){let e=B.join(r,i,t||``);z.existsSync(e)&&z.existsSync(`${e}.complete`)&&n.push(i)}}return n}function Rr(e){return Q(this,void 0,void 0,function*(){return e||=B.join(Wr(),ze.randomUUID()),yield S(e),e})}function zr(e,t,n){return Q(this,void 0,void 0,function*(){let r=B.join(Ur(),e,Z.clean(t)||t,n||``);E(`destination ${r}`);let i=`${r}.complete`;return yield a(r),yield a(i),yield S(r),r})}function Br(e,t,n){let r=`${B.join(Ur(),e,Z.clean(t)||t,n||``)}.complete`;z.writeFileSync(r,``),E(`finished caching tool`)}function Vr(e){let t=Z.clean(e)||``;E(`isExplicit: ${t}`);let n=Z.valid(t)!=null;return E(`explicit? ${n}`),n}function Hr(e,t){let n=``;E(`evaluating ${e.length} versions`),e=e.sort((e,t)=>Z.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(Z.satisfies(i,t)){n=i;break}}return E(n?`matched: ${n}`:`match not found`),n}function Ur(){let e=process.env.RUNNER_TOOL_CACHE||``;return Be(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function Wr(){let e=process.env.RUNNER_TEMP||``;return Be(e,`Expected RUNNER_TEMP to be defined`),e}function Gr(e,t){let n=global[e];return n===void 0?t:n}function Kr(){return{find:Ir,downloadTool:kr,extractTar:jr,extractZip:Mr,cacheDir:Fr}}function qr(){return{exec:L,getExecOutput:le}}function Jr(e){let t;try{t=JSON.parse(e)}catch(e){throw e instanceof SyntaxError?Error(`Invalid auth-json format: ${e.message}`):e}if(typeof t!=`object`||!t||Array.isArray(t))throw Error(`auth-json must be a JSON object`);return t}async function Yr(e,t,n){let r=H.join(t,`auth.json`);await V.mkdir(t,{recursive:!0});let i=JSON.stringify(e,null,2);return await V.writeFile(r,i,{mode:384}),n.info(`Populated auth.json`,{path:r,providers:Object.keys(e).length}),r}function Xr(){let e=R.platform,t=R.arch;return{os:{darwin:`darwin`,linux:`linux`,win32:`windows`}[e]??`linux`,arch:{arm64:`aarch64`,x64:`x64`}[t]??`x64`,ext:`.zip`}}function Zr(e,t){return`https://github.com/oven-sh/bun/releases/download/bun-${e.startsWith(`v`)?e:`v${e}`}/${`bun-${t.os}-${t.arch}${t.ext}`}`}async function Qr(e,t,n,r,i=te){let a=Xr(),o=t.find(`bun`,i,a.arch);if(o.length>0)return e.info(`Bun found in cache`,{version:i,path:o}),r(o),await ei(o),{path:o,version:i,cached:!0};e.info(`Downloading Bun`,{version:i});let s=Zr(i,a);try{let o=await t.downloadTool(s);if(R.platform!==`win32`&&!await ti(o,e,n))throw Error(`Downloaded Bun archive appears corrupted`);e.info(`Extracting Bun`);let c=await $r(await t.extractZip(o),t),l=U.dirname(c);e.info(`Caching Bun`);let u=await t.cacheDir(l,`bun`,i,a.arch);return r(u),await ei(u),e.info(`Bun installed`,{version:i,path:u}),{path:u,version:i,cached:!1}}catch(e){let t=F(e);throw Error(`Failed to install Bun ${i}: ${t}`)}}async function $r(e,t){for(let n of await Ke.readdir(e,{withFileTypes:!0})){let{name:r}=n,i=U.join(e,r);if(n.isFile()){if(r===`bun`||r===`bun.exe`)return i;if(/^bun.*\.zip/.test(r))return $r(await t.extractZip(i),t)}if(r.startsWith(`bun`)&&n.isDirectory())return $r(i,t)}throw Error(`Could not find executable: bun`)}async function ei(e){let t=e=>R.platform===`win32`?`${e}.exe`:e,n=U.join(e,t(`bun`));try{await Ke.symlink(n,U.join(e,t(`bunx`)))}catch(e){let t=typeof e==`object`?e.code:void 0;if(t!==`EEXIST`&&t!==`EPERM`&&t!==`EACCES`)throw e}}async function ti(e,t,n){try{let{stdout:r}=await n.getExecOutput(`file`,[e],{silent:!0}),i=r.includes(`Zip archive`)||r.includes(`ZIP`);return i||t.warning(`Bun download validation failed`,{output:r.trim()}),i}catch{return t.debug(`Could not validate Bun download (file command unavailable)`),!0}}const ni=[`oh-my-openagent`],ri=[`oh-my-opencode-slim`],ii=[`1.1.1`];function ai(e){return ii.includes(e)}function oi(e){let t=e.lastIndexOf(`@`);return t>0?e.slice(0,t):e}function si(e){let t=oi(e);return ni.includes(t)}function ci(e){let t=oi(e);return ri.includes(t)}function li(e){let t=e.filter(e=>typeof e==`string`&&si(e)).length;return{cleaned:e.filter(e=>typeof e!=`string`||!si(e)),removed:t>0}}function ui(e){let t=e.filter(e=>typeof e==`string`&&ci(e)).length;return{cleaned:e.filter(e=>typeof e!=`string`||!ci(e)),removed:t>0}}function di(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function fi(e){let t=di(e.agent)?e.agent:{},n=di(t.build)?t.build:{},r=di(n.permission)?n.permission:{};e.agent={...t,build:{...n,permission:{...r,external_directory:`deny`}}}}function pi(e,t){let n=e.enableOmoSlim??!1,r=e.omoSlimVersion??`1.1.2`,i=e.omoSlimPreset??`openai`,a={autoupdate:!1};if(e.opencodeConfig!=null){let t;try{t=JSON.parse(e.opencodeConfig)}catch{return{config:a,error:`opencode-config must be valid JSON`}}if(typeof t!=`object`||!t||Array.isArray(t))return{config:a,error:`opencode-config must be a JSON object`};Object.assign(a,t)}let o=Array.isArray(a.plugin)?a.plugin:[],s=o.some(e=>typeof e==`string`&&si(e)),c=o.some(e=>typeof e==`string`&&ci(e));if(s&&c)return{config:a,error:`oMo and OMO Slim plugins cannot both be present`};if(n&&!ii.includes(r))return{config:a,error:`OMO Slim version ${r} is not verified to register the orchestrator agent (known-good: ${ii.join(`, `)})`};let l=`@fro.bot/systematic@${e.systematicVersion}`,u=Array.isArray(a.plugin)?a.plugin:[];if(u.some(e=>typeof e==`string`&&e.startsWith(`@fro.bot/systematic`))||(a.plugin=[...u,l]),n){let{cleaned:n}=li(Array.isArray(a.plugin)?a.plugin:[]),{cleaned:o}=ui(n),s=`oh-my-opencode-slim@${r}`;a.plugin=[...o,s],`plugins`in a&&delete a.plugins,a.default_agent=`orchestrator`,t.debug(`Built CI OpenCode config (slim mode)`,{hasUserConfig:e.opencodeConfig!=null,pluginCount:Array.isArray(a.plugin)?a.plugin.length:0,preset:i})}else if(e.enableOmo)t.debug(`Built CI OpenCode config`,{hasUserConfig:e.opencodeConfig!=null,pluginCount:Array.isArray(a.plugin)?a.plugin.length:0});else{let n=[],{cleaned:r,removed:i}=li(Array.isArray(a.plugin)?a.plugin:[]);i&&(n.push(`plugin`),a.plugin=r),`plugins`in a&&(delete a.plugins,n.push(`plugins`));let o=a.default_agent;a.default_agent=`build`,fi(a),o!=null&&o!==`build`&&n.push(`default_agent`),n.length>0&&t.warning(`OpenCode config rewritten for disabled oMo mode (enable-omo: false): ${n.join(`, `)}. oMo plugin entries are stripped and default_agent is pinned to "build". Set enable-omo: true to use oMo features.`),t.debug(`Built CI OpenCode config`,{hasUserConfig:e.opencodeConfig!=null,pluginCount:Array.isArray(a.plugin)?a.plugin.length:0})}return{config:a,error:null}}function mi(e){return{debug:t=>e.debug(t),info:t=>e.info(t),warn:t=>e.warning(t),error:t=>e.error(t)}}function hi(e){let{token:t,logger:n}=e;return n.debug(`Creating GitHub client with token`),je(t,{log:mi(n)})}async function gi(e,t){try{let{data:n}=await e.rest.users.getAuthenticated();return t.debug(`Authenticated as`,{login:n.login,type:n.type}),n.login}catch{return t.debug(`Failed to get authenticated user, may be app token`),`fro-bot[bot]`}}async function _i(e,t,n,r){let i=t??n,a=t==null?n.length>0?`github-token`:`none`:`app-token`;if(i.length===0)return r.warning(`No GitHub token available`),{authenticated:!1,method:`none`,botLogin:null};R.env.GH_TOKEN=i,r.info(`Configured authentication`,{method:a});let o=null;return e!=null&&(o=await gi(e,r)),{authenticated:!0,method:a,botLogin:o}}async function vi(e,t){let n=await t.getExecOutput(`git`,[`config`,e],{ignoreReturnCode:!0,silent:!0});return n.exitCode===0&&n.stdout.trim().length>0?n.stdout.trim():null}async function yi(e,t,n,r){let i=await vi(`user.name`,r),a=await vi(`user.email`,r);if(i!=null&&a!=null){n.info(`Git identity already configured`,{name:i,email:a});return}if(t==null)throw Error(`Cannot configure Git identity: no authenticated GitHub user`);let o=null;if(a==null){let r=await gn(e,t,n);if(r==null)throw Error(`Cannot configure Git identity: failed to look up user ID for '${t}'`);o=String(r.id)}i??await r.exec(`git`,[`config`,`--global`,`user.name`,t],void 0);let s=`${o}+${t}@users.noreply.github.com`;a??await r.exec(`git`,[`config`,`--global`,`user.email`,s],void 0),n.info(`Configured git identity`,{name:i??t,email:a??s})}async function bi(e,t,n){let{logger:r,execAdapter:i}=t;r.info(`Installing Oh My OpenCode Slim plugin`,{version:e,preset:n});let a=``,o=[`oh-my-opencode-slim@${e}`,`install`,`--no-tui`,`--reset`,`--preset=${n}`];try{let t=await i.exec(`bunx`,o,{listeners:{stdout:e=>{a+=e.toString()},stderr:e=>{a+=e.toString()}},ignoreReturnCode:!0});if(t!==0){let e=`bunx oh-my-opencode-slim install returned exit code ${t}`;return r.error(e,{output:a.slice(0,1e3)}),{installed:!1,version:null,error:`${e}\n${a.slice(0,500)}`}}let n=/oh-my-opencode-slim@(\d+\.\d+\.\d+)/i.exec(a),s=n!=null&&n[1]!=null?n[1]:e;return r.info(`OMO Slim plugin installed`,{version:s}),{installed:!0,version:s,error:null}}catch(e){let t=F(e),n=a.length>0?`${t}\nOutput: ${a.slice(0,500)}`:t;return r.error(`Failed to run OMO Slim installer`,{error:t,output:a.slice(0,500)}),{installed:!1,version:null,error:`bunx oh-my-opencode-slim install failed: ${n}`}}}async function xi(e,t,n={}){let{logger:r,execAdapter:i}=t,{claude:a=`no`,copilot:o=`no`,gemini:s=`no`,openai:c=`no`,opencodeZen:l=`no`,zaiCodingPlan:u=`no`,kimiForCoding:d=`no`}=n;r.info(`Installing Oh My OpenAgent plugin`,{version:e,claude:a,copilot:o,gemini:s,openai:c,opencodeZen:l,zaiCodingPlan:u,kimiForCoding:d});let f=``,p=[`oh-my-openagent@${e}`,`install`,`--no-tui`,`--skip-auth`,`--claude=${a}`,`--copilot=${o}`,`--gemini=${s}`,`--openai=${c}`,`--opencode-zen=${l}`,`--zai-coding-plan=${u}`,`--kimi-for-coding=${d}`];try{let t=await i.exec(`bunx`,p,{listeners:{stdout:e=>{f+=e.toString()},stderr:e=>{f+=e.toString()}},ignoreReturnCode:!0});if(t!==0){let e=`bunx oh-my-openagent install returned exit code ${t}`;return r.error(e,{output:f.slice(0,1e3)}),{installed:!1,version:null,error:`${e}\n${f.slice(0,500)}`}}let n=/oh-my-opencode@(\d+\.\d+\.\d+)/i.exec(f),a=n!=null&&n[1]!=null?n[1]:e;return r.info(`oMo plugin installed`,{version:a}),{installed:!0,version:a,error:null}}catch(e){let t=F(e),n=f.length>0?`${t}\nOutput: ${f.slice(0,500)}`:t;return r.error(`Failed to run oMo installer`,{error:t,output:f.slice(0,500)}),{installed:!1,version:null,error:`bunx oh-my-openagent install failed: ${n}`}}}const Si=`opencode`,Ci=`https://github.com/fro-bot/agent/releases/download`,wi=`+harness.`,Ti=`1.17.6`,Ei=/^\d+\.\d+\.\d+(?:[.-][\w.-]+)?(?:\+[\w.-]+)?$/;function Di(e){return e.includes(wi)}function Oi(e){return e.includes(wi)?e.replace(wi,`-harness.`):e}function ki(){let e=Ze.platform(),t=Ze.arch(),n={darwin:`darwin`,linux:`linux`,win32:`windows`},r={x64:`x64`,arm64:`arm64`},i=e===`win32`||e===`darwin`?`.zip`:`.tar.gz`;return{os:n[e]??`linux`,arch:r[t]??`x64`,ext:i}}function Ai(e){return(e.startsWith(`v`)?e.slice(1):e).replaceAll(`+`,`%2B`)}function ji(e){let t=e.startsWith(`v`)?e.slice(1):e;if(!Ei.test(t))throw Error(`Invalid version string: "${e}". Must match semver-ish pattern (no path traversal or shell metacharacters).`)}function Mi(e,t){ji(e);let n=`opencode-${t.os}-${t.arch}${t.ext}`;return Di(e)?`${Ci}/${Ai(e)}/${n}`:`https://github.com/anomalyco/opencode/releases/download/${e.startsWith(`v`)?e:`v${e}`}/${n}`}function Ni(e){if(ji(e),!Di(e))throw Error(`buildChecksumsUrl requires a harness version (must contain +harness.)`);return`${Ci}/${Ai(e)}/SHA256SUMS`}async function Pi(e,t,n,r,i){let a=Ni(t);i.debug(`Downloading SHA256SUMS for harness release`,{url:a});let o=et(await r.downloadTool(a),`utf8`),s=`opencode-${n.os}-${n.arch}${n.ext}`,c=o.split(` +If you had completed the task, confirm the completion.`,o=x.length>0?x:void 0,d=await(async()=>{try{return await mr(c,m,i,o,_,r,t,u)}finally{await jt(c,m,r?.sessionTitle,t)}})();if(d.success)return S=d.eventStreamResult,{success:!0,exitCode:0,duration:Date.now()-a,sessionId:m,error:null,tokenUsage:S.tokens,model:S.model,cost:S.cost,prsCreated:S.prsCreated,commitsCreated:S.commitsCreated,commentsPosted:S.commentsPosted,llmError:null};if(C=d.error,w=d.llmError,!d.shouldRetry||e>=4)break;t.warning(`LLM fetch error detected, retrying with continuation prompt`,{attempt:e,maxAttempts:4,error:d.error,delayMs:n,sessionId:m}),await Ae(n)}return{success:!1,exitCode:1,duration:Date.now()-a,sessionId:m,error:C??`Unknown error`,tokenUsage:S.tokens,model:S.model,cost:S.cost,prsCreated:S.prsCreated,commitsCreated:S.commitsCreated,commentsPosted:S.commentsPosted,llmError:w}}catch(e){let n=Date.now()-a,r=F(e);return t.error(`OpenCode execution failed`,{error:r,durationMs:n}),{success:!1,exitCode:1,duration:n,sessionId:null,error:r,tokenUsage:null,model:null,cost:null,prsCreated:[],commitsCreated:[],commentsPosted:0,llmError:xe(e)?ce(r):null}}finally{c!=null&&clearTimeout(c),o.abort(),u&&p?.close()}}async function gr(e,t,n){return t.commentId==null?(n.debug(`No comment ID, skipping eyes reaction`),!1):await sn(e,t.repo,t.commentId,`eyes`,n)==null?!1:(n.info(`Added eyes reaction`,{commentId:t.commentId}),!0)}async function _r(e,t,n){return t.issueNumber==null?(n.debug(`No issue number, skipping working label`),!1):await un(e,t.repo,`agent: working`,`fcf2e1`,`Agent is currently working on this`,n)&&await dn(e,t.repo,t.issueNumber,[`agent: working`],n)?(n.info(`Added working label`,{issueNumber:t.issueNumber}),!0):!1}async function vr(e,t,n){await Promise.all([gr(e,t,n),_r(e,t,n)])}async function yr(e,t,n){if(t.commentId==null||t.botLogin==null)return;let r=(await cn(e,t.repo,t.commentId,n)).find(e=>e.content===`eyes`&&e.userLogin===t.botLogin);r!=null&&await ln(e,t.repo,t.commentId,r.id,n)}async function br(e,t,n,r){t.commentId!=null&&await sn(e,t.repo,t.commentId,n,r)}async function xr(e,t,n){if(t.commentId==null||t.botLogin==null){n.debug(`Missing comment ID or bot login, skipping reaction update`);return}try{await yr(e,t,n),await br(e,t,`hooray`,n),n.info(`Updated reaction to success indicator`,{commentId:t.commentId,reaction:`hooray`})}catch(e){n.warning(`Failed to update reaction (non-fatal)`,{error:F(e)})}}async function Sr(e,t,n){if(t.commentId==null||t.botLogin==null){n.debug(`Missing comment ID or bot login, skipping reaction update`);return}try{await yr(e,t,n),await br(e,t,`confused`,n),n.info(`Updated reaction to confused`,{commentId:t.commentId})}catch(e){n.warning(`Failed to update failure reaction (non-fatal)`,{error:F(e)})}}async function Cr(e,t,n){if(t.issueNumber==null){n.debug(`No issue number, skipping label removal`);return}await fn(e,t.repo,t.issueNumber,`agent: working`,n)&&n.info(`Removed working label`,{issueNumber:t.issueNumber})}async function wr(e,t,n,r){n?await xr(e,t,r):await Sr(e,t,r),await Cr(e,t,r)}var Z=e(ue(),1),Tr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Er=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return Tr(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},Q=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Dr=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};const Or=process.platform===`win32`;process.platform;function kr(e,t,n,r){return Q(this,void 0,void 0,function*(){return t||=B.join(Wr(),ze.randomUUID()),yield S(B.dirname(t)),E(`Downloading ${e}`),E(`Destination ${t}`),yield new Er(3,Gr(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),Gr(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>Q(this,void 0,void 0,function*(){return yield Ar(e,t||``,n,r)}),e=>!(e instanceof Dr&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function Ar(e,t,n,r){return Q(this,void 0,void 0,function*(){if(z.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new c(`actions/tool-cache`,[],{allowRetries:!1});n&&(E(`set auth`),r===void 0&&(r={}),r.authorization=n);let o=yield i.get(e,r);if(o.message.statusCode!==200){let t=new Dr(o.message.statusCode);throw E(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}let s=Ve.promisify(tt.pipeline),l=Gr(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>o.message)(),u=!1;try{return yield s(l,z.createWriteStream(t)),E(`download complete`),u=!0,t}finally{if(!u){E(`download failed`);try{yield a(t)}catch(e){E(`Failed to delete '${t}'. ${e.message}`)}}}})}function jr(e,t){return Q(this,arguments,void 0,function*(e,t,n=`xz`){if(!e)throw Error(`parameter 'file' is required`);t=yield Rr(t),E(`Checking tar --version`);let r=``;yield L(`tar --version`,[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>r+=e.toString(),stderr:e=>r+=e.toString()}}),E(r.trim());let i=r.toUpperCase().includes(`GNU TAR`),a;a=n instanceof Array?n:[n],Ce()&&!n.includes(`v`)&&a.push(`-v`);let o=t,s=e;return Or&&i&&(a.push(`--force-local`),o=t.replace(/\\/g,`/`),s=e.replace(/\\/g,`/`)),i&&(a.push(`--warning=no-unknown-keyword`),a.push(`--overwrite`)),a.push(`-C`,o,`-f`,s),yield L(`tar`,a),t})}function Mr(e,t){return Q(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'file' is required`);return t=yield Rr(t),Or?yield Nr(e,t):yield Pr(e,t),t})}function Nr(e,t){return Q(this,void 0,void 0,function*(){let n=e.replace(/'/g,`''`).replace(/"|\n|\r/g,``),r=t.replace(/'/g,`''`).replace(/"|\n|\r/g,``),i=yield Fe(`pwsh`,!1);if(i){let e=[`-NoLogo`,`-NoProfile`,`-NonInteractive`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(` `)];E(`Using pwsh at path: ${i}`),yield L(`"${i}"`,e)}else{let e=[`-NoLogo`,`-Sta`,`-NoProfile`,`-NonInteractive`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`].join(` `)],t=yield Fe(`powershell`,!0);E(`Using powershell at path: ${t}`),yield L(`"${t}"`,e)}})}function Pr(e,t){return Q(this,void 0,void 0,function*(){let n=yield Fe(`unzip`,!0),r=[e];Ce()||r.unshift(`-q`),r.unshift(`-o`),yield L(`"${n}"`,r,{cwd:t})})}function Fr(e,t,n,r){return Q(this,void 0,void 0,function*(){if(n=Z.clean(n)||n,r||=Re.arch(),E(`Caching tool ${t} ${n} ${r}`),E(`source dir: ${e}`),!z.statSync(e).isDirectory())throw Error(`sourceDir is not a directory`);let i=yield zr(t,n,r);for(let t of z.readdirSync(e))yield Ie(B.join(e,t),i,{recursive:!0});return Br(t,n,r),i})}function Ir(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=Re.arch(),Vr(t)||(t=Hr(Lr(e,n),t));let r=``;if(t){t=Z.clean(t)||``;let i=B.join(Ur(),e,t,n);E(`checking cache: ${i}`),z.existsSync(i)&&z.existsSync(`${i}.complete`)?(E(`Found tool in cache ${e} ${t} ${n}`),r=i):E(`not found`)}return r}function Lr(e,t){let n=[];t||=Re.arch();let r=B.join(Ur(),e);if(z.existsSync(r)){let e=z.readdirSync(r);for(let i of e)if(Vr(i)){let e=B.join(r,i,t||``);z.existsSync(e)&&z.existsSync(`${e}.complete`)&&n.push(i)}}return n}function Rr(e){return Q(this,void 0,void 0,function*(){return e||=B.join(Wr(),ze.randomUUID()),yield S(e),e})}function zr(e,t,n){return Q(this,void 0,void 0,function*(){let r=B.join(Ur(),e,Z.clean(t)||t,n||``);E(`destination ${r}`);let i=`${r}.complete`;return yield a(r),yield a(i),yield S(r),r})}function Br(e,t,n){let r=`${B.join(Ur(),e,Z.clean(t)||t,n||``)}.complete`;z.writeFileSync(r,``),E(`finished caching tool`)}function Vr(e){let t=Z.clean(e)||``;E(`isExplicit: ${t}`);let n=Z.valid(t)!=null;return E(`explicit? ${n}`),n}function Hr(e,t){let n=``;E(`evaluating ${e.length} versions`),e=e.sort((e,t)=>Z.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(Z.satisfies(i,t)){n=i;break}}return E(n?`matched: ${n}`:`match not found`),n}function Ur(){let e=process.env.RUNNER_TOOL_CACHE||``;return Be(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function Wr(){let e=process.env.RUNNER_TEMP||``;return Be(e,`Expected RUNNER_TEMP to be defined`),e}function Gr(e,t){let n=global[e];return n===void 0?t:n}function Kr(){return{find:Ir,downloadTool:kr,extractTar:jr,extractZip:Mr,cacheDir:Fr}}function qr(){return{exec:L,getExecOutput:le}}function Jr(e){let t;try{t=JSON.parse(e)}catch(e){throw e instanceof SyntaxError?Error(`Invalid auth-json format: ${e.message}`):e}if(typeof t!=`object`||!t||Array.isArray(t))throw Error(`auth-json must be a JSON object`);return t}async function Yr(e,t,n){let r=H.join(t,`auth.json`);await V.mkdir(t,{recursive:!0});let i=JSON.stringify(e,null,2);return await V.writeFile(r,i,{mode:384}),n.info(`Populated auth.json`,{path:r,providers:Object.keys(e).length}),r}function Xr(){let e=R.platform,t=R.arch;return{os:{darwin:`darwin`,linux:`linux`,win32:`windows`}[e]??`linux`,arch:{arm64:`aarch64`,x64:`x64`}[t]??`x64`,ext:`.zip`}}function Zr(e,t){return`https://github.com/oven-sh/bun/releases/download/bun-${e.startsWith(`v`)?e:`v${e}`}/${`bun-${t.os}-${t.arch}${t.ext}`}`}async function Qr(e,t,n,r,i=te){let a=Xr(),o=t.find(`bun`,i,a.arch);if(o.length>0)return e.info(`Bun found in cache`,{version:i,path:o}),r(o),await ei(o),{path:o,version:i,cached:!0};e.info(`Downloading Bun`,{version:i});let s=Zr(i,a);try{let o=await t.downloadTool(s);if(R.platform!==`win32`&&!await ti(o,e,n))throw Error(`Downloaded Bun archive appears corrupted`);e.info(`Extracting Bun`);let c=await $r(await t.extractZip(o),t),l=U.dirname(c);e.info(`Caching Bun`);let u=await t.cacheDir(l,`bun`,i,a.arch);return r(u),await ei(u),e.info(`Bun installed`,{version:i,path:u}),{path:u,version:i,cached:!1}}catch(e){let t=F(e);throw Error(`Failed to install Bun ${i}: ${t}`)}}async function $r(e,t){for(let n of await Ke.readdir(e,{withFileTypes:!0})){let{name:r}=n,i=U.join(e,r);if(n.isFile()){if(r===`bun`||r===`bun.exe`)return i;if(/^bun.*\.zip/.test(r))return $r(await t.extractZip(i),t)}if(r.startsWith(`bun`)&&n.isDirectory())return $r(i,t)}throw Error(`Could not find executable: bun`)}async function ei(e){let t=e=>R.platform===`win32`?`${e}.exe`:e,n=U.join(e,t(`bun`));try{await Ke.symlink(n,U.join(e,t(`bunx`)))}catch(e){let t=typeof e==`object`?e.code:void 0;if(t!==`EEXIST`&&t!==`EPERM`&&t!==`EACCES`)throw e}}async function ti(e,t,n){try{let{stdout:r}=await n.getExecOutput(`file`,[e],{silent:!0}),i=r.includes(`Zip archive`)||r.includes(`ZIP`);return i||t.warning(`Bun download validation failed`,{output:r.trim()}),i}catch{return t.debug(`Could not validate Bun download (file command unavailable)`),!0}}const ni=[`oh-my-openagent`],ri=[`oh-my-opencode-slim`],ii=[`1.1.1`];function ai(e){return ii.includes(e)}function oi(e){let t=e.lastIndexOf(`@`);return t>0?e.slice(0,t):e}function si(e){let t=oi(e);return ni.includes(t)}function ci(e){let t=oi(e);return ri.includes(t)}function li(e){let t=e.filter(e=>typeof e==`string`&&si(e)).length;return{cleaned:e.filter(e=>typeof e!=`string`||!si(e)),removed:t>0}}function ui(e){let t=e.filter(e=>typeof e==`string`&&ci(e)).length;return{cleaned:e.filter(e=>typeof e!=`string`||!ci(e)),removed:t>0}}function di(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function fi(e){let t=di(e.agent)?e.agent:{},n=di(t.build)?t.build:{},r=di(n.permission)?n.permission:{};e.agent={...t,build:{...n,permission:{...r,external_directory:`deny`}}}}function pi(e,t){let n=e.enableOmoSlim??!1,r=e.omoSlimVersion??`1.1.2`,i=e.omoSlimPreset??`openai`,a={autoupdate:!1};if(e.opencodeConfig!=null){let t;try{t=JSON.parse(e.opencodeConfig)}catch{return{config:a,error:`opencode-config must be valid JSON`}}if(typeof t!=`object`||!t||Array.isArray(t))return{config:a,error:`opencode-config must be a JSON object`};Object.assign(a,t)}let o=Array.isArray(a.plugin)?a.plugin:[],s=o.some(e=>typeof e==`string`&&si(e)),c=o.some(e=>typeof e==`string`&&ci(e));if(s&&c)return{config:a,error:`oMo and OMO Slim plugins cannot both be present`};if(n&&!ii.includes(r))return{config:a,error:`OMO Slim version ${r} is not verified to register the orchestrator agent (known-good: ${ii.join(`, `)})`};let l=`@fro.bot/systematic@${e.systematicVersion}`,u=Array.isArray(a.plugin)?a.plugin:[];if(u.some(e=>typeof e==`string`&&e.startsWith(`@fro.bot/systematic`))||(a.plugin=[...u,l]),n){let{cleaned:n}=li(Array.isArray(a.plugin)?a.plugin:[]),{cleaned:o}=ui(n),s=`oh-my-opencode-slim@${r}`;a.plugin=[...o,s],`plugins`in a&&delete a.plugins,a.default_agent=`orchestrator`,t.debug(`Built CI OpenCode config (slim mode)`,{hasUserConfig:e.opencodeConfig!=null,pluginCount:Array.isArray(a.plugin)?a.plugin.length:0,preset:i})}else if(e.enableOmo)t.debug(`Built CI OpenCode config`,{hasUserConfig:e.opencodeConfig!=null,pluginCount:Array.isArray(a.plugin)?a.plugin.length:0});else{let n=[],{cleaned:r,removed:i}=li(Array.isArray(a.plugin)?a.plugin:[]);i&&(n.push(`plugin`),a.plugin=r),`plugins`in a&&(delete a.plugins,n.push(`plugins`));let o=a.default_agent;a.default_agent=`build`,fi(a),o!=null&&o!==`build`&&n.push(`default_agent`),n.length>0&&t.warning(`OpenCode config rewritten for disabled oMo mode (enable-omo: false): ${n.join(`, `)}. oMo plugin entries are stripped and default_agent is pinned to "build". Set enable-omo: true to use oMo features.`),t.debug(`Built CI OpenCode config`,{hasUserConfig:e.opencodeConfig!=null,pluginCount:Array.isArray(a.plugin)?a.plugin.length:0})}return{config:a,error:null}}function mi(e){return{debug:t=>e.debug(t),info:t=>e.info(t),warn:t=>e.warning(t),error:t=>e.error(t)}}function hi(e){let{token:t,logger:n}=e;return n.debug(`Creating GitHub client with token`),je(t,{log:mi(n)})}async function gi(e,t){try{let{data:n}=await e.rest.users.getAuthenticated();return t.debug(`Authenticated as`,{login:n.login,type:n.type}),n.login}catch{return t.debug(`Failed to get authenticated user, may be app token`),`fro-bot[bot]`}}async function _i(e,t,n,r){let i=t??n,a=t==null?n.length>0?`github-token`:`none`:`app-token`;if(i.length===0)return r.warning(`No GitHub token available`),{authenticated:!1,method:`none`,botLogin:null};R.env.GH_TOKEN=i,r.info(`Configured authentication`,{method:a});let o=null;return e!=null&&(o=await gi(e,r)),{authenticated:!0,method:a,botLogin:o}}async function vi(e,t){let n=await t.getExecOutput(`git`,[`config`,e],{ignoreReturnCode:!0,silent:!0});return n.exitCode===0&&n.stdout.trim().length>0?n.stdout.trim():null}async function yi(e,t,n,r){let i=await vi(`user.name`,r),a=await vi(`user.email`,r);if(i!=null&&a!=null){n.info(`Git identity already configured`,{name:i,email:a});return}if(t==null)throw Error(`Cannot configure Git identity: no authenticated GitHub user`);let o=null;if(a==null){let r=await gn(e,t,n);if(r==null)throw Error(`Cannot configure Git identity: failed to look up user ID for '${t}'`);o=String(r.id)}i??await r.exec(`git`,[`config`,`--global`,`user.name`,t],void 0);let s=`${o}+${t}@users.noreply.github.com`;a??await r.exec(`git`,[`config`,`--global`,`user.email`,s],void 0),n.info(`Configured git identity`,{name:i??t,email:a??s})}async function bi(e,t,n){let{logger:r,execAdapter:i}=t;r.info(`Installing Oh My OpenCode Slim plugin`,{version:e,preset:n});let a=``,o=[`oh-my-opencode-slim@${e}`,`install`,`--no-tui`,`--reset`,`--preset=${n}`];try{let t=await i.exec(`bunx`,o,{listeners:{stdout:e=>{a+=e.toString()},stderr:e=>{a+=e.toString()}},ignoreReturnCode:!0});if(t!==0){let e=`bunx oh-my-opencode-slim install returned exit code ${t}`;return r.error(e,{output:a.slice(0,1e3)}),{installed:!1,version:null,error:`${e}\n${a.slice(0,500)}`}}let n=/oh-my-opencode-slim@(\d+\.\d+\.\d+)/i.exec(a),s=n!=null&&n[1]!=null?n[1]:e;return r.info(`OMO Slim plugin installed`,{version:s}),{installed:!0,version:s,error:null}}catch(e){let t=F(e),n=a.length>0?`${t}\nOutput: ${a.slice(0,500)}`:t;return r.error(`Failed to run OMO Slim installer`,{error:t,output:a.slice(0,500)}),{installed:!1,version:null,error:`bunx oh-my-opencode-slim install failed: ${n}`}}}async function xi(e,t,n={}){let{logger:r,execAdapter:i}=t,{claude:a=`no`,copilot:o=`no`,gemini:s=`no`,openai:c=`no`,opencodeZen:l=`no`,zaiCodingPlan:u=`no`,kimiForCoding:d=`no`}=n;r.info(`Installing Oh My OpenAgent plugin`,{version:e,claude:a,copilot:o,gemini:s,openai:c,opencodeZen:l,zaiCodingPlan:u,kimiForCoding:d});let f=``,p=[`oh-my-openagent@${e}`,`install`,`--no-tui`,`--skip-auth`,`--claude=${a}`,`--copilot=${o}`,`--gemini=${s}`,`--openai=${c}`,`--opencode-zen=${l}`,`--zai-coding-plan=${u}`,`--kimi-for-coding=${d}`];try{let t=await i.exec(`bunx`,p,{listeners:{stdout:e=>{f+=e.toString()},stderr:e=>{f+=e.toString()}},ignoreReturnCode:!0});if(t!==0){let e=`bunx oh-my-openagent install returned exit code ${t}`;return r.error(e,{output:f.slice(0,1e3)}),{installed:!1,version:null,error:`${e}\n${f.slice(0,500)}`}}let n=/oh-my-opencode@(\d+\.\d+\.\d+)/i.exec(f),a=n!=null&&n[1]!=null?n[1]:e;return r.info(`oMo plugin installed`,{version:a}),{installed:!0,version:a,error:null}}catch(e){let t=F(e),n=f.length>0?`${t}\nOutput: ${f.slice(0,500)}`:t;return r.error(`Failed to run oMo installer`,{error:t,output:f.slice(0,500)}),{installed:!1,version:null,error:`bunx oh-my-openagent install failed: ${n}`}}}const Si=`opencode`,Ci=`https://github.com/fro-bot/agent/releases/download`,wi=`+harness.`,Ti=`1.17.9`,Ei=/^\d+\.\d+\.\d+(?:[.-][\w.-]+)?(?:\+[\w.-]+)?$/;function Di(e){return e.includes(wi)}function Oi(e){return e.includes(wi)?e.replace(wi,`-harness.`):e}function ki(){let e=Ze.platform(),t=Ze.arch(),n={darwin:`darwin`,linux:`linux`,win32:`windows`},r={x64:`x64`,arm64:`arm64`},i=e===`win32`||e===`darwin`?`.zip`:`.tar.gz`;return{os:n[e]??`linux`,arch:r[t]??`x64`,ext:i}}function Ai(e){return(e.startsWith(`v`)?e.slice(1):e).replaceAll(`+`,`%2B`)}function ji(e){let t=e.startsWith(`v`)?e.slice(1):e;if(!Ei.test(t))throw Error(`Invalid version string: "${e}". Must match semver-ish pattern (no path traversal or shell metacharacters).`)}function Mi(e,t){ji(e);let n=`opencode-${t.os}-${t.arch}${t.ext}`;return Di(e)?`${Ci}/${Ai(e)}/${n}`:`https://github.com/anomalyco/opencode/releases/download/${e.startsWith(`v`)?e:`v${e}`}/${n}`}function Ni(e){if(ji(e),!Di(e))throw Error(`buildChecksumsUrl requires a harness version (must contain +harness.)`);return`${Ci}/${Ai(e)}/SHA256SUMS`}async function Pi(e,t,n,r,i){let a=Ni(t);i.debug(`Downloading SHA256SUMS for harness release`,{url:a});let o=et(await r.downloadTool(a),`utf8`),s=`opencode-${n.os}-${n.arch}${n.ext}`,c=o.split(` `).map(e=>e.trim()).find(e=>{let t=e.split(/\s+/);return t.length>=2&&t.at(-1)===s});if(c===void 0)throw Error(`SHA256SUMS does not contain an entry for ${s}`);let l=c.split(/\s+/)[0];if(l===void 0||l.length===0)throw Error(`Could not parse hash from SHA256SUMS line: ${c}`);let u=We(`sha256`);await new Promise((t,n)=>{let r=$e(e);r.on(`error`,n),r.on(`data`,e=>{u.update(e)}),r.on(`end`,()=>{t()})});let d=u.digest(`hex`);if(d.toLowerCase()!==l.toLowerCase())throw Error(`SHA256 mismatch for ${s}: expected ${l}, got ${d}`);i.debug(`Harness archive SHA256 verified`,{filename:s,hash:d})}async function Fi(e,t,n,r){if(R.platform===`win32`)return!0;try{let{stdout:i}=await r.getExecOutput(`file`,[e],{silent:!0}),a=(t===`.zip`?[`Zip archive`,`ZIP`]:[`gzip`,`tar`,`compressed`]).some(e=>i.includes(e));return a||n.warning(`Download validation failed`,{output:i.trim()}),a}catch{return n.debug(`Could not validate download (file command unavailable)`),!0}}async function Ii(e,t,n,r,i=Ti){let a=ki(),o=n.find(Si,Oi(e),a.arch);if(o.length>0)return t.info(`OpenCode found in cache`,{version:e,path:o}),{path:o,version:e,cached:!0};try{return await Li(e,a,t,n,r)}catch(n){if(Di(e))throw Error(`Harness OpenCode download/verify failed for explicit pin "${e}": ${F(n)}. No stock fallback is attempted for an explicit harness pin (fail-closed).`);t.warning(`Primary version install failed, trying fallback`,{requestedVersion:e,fallbackVersion:i,error:F(n)})}if(e!==i)try{let e=await Li(i,a,t,n,r);return t.info(`Installed fallback version`,{version:i}),e}catch(t){throw Error(`Failed to install OpenCode (tried ${e} and ${i}): ${F(t)}`)}throw Error(`Failed to install OpenCode version ${e}`)}async function Li(e,t,n,r,i){n.info(`Downloading OpenCode`,{version:e});let a=Mi(e,t),o=await r.downloadTool(a);if(Di(e))await Pi(o,e,t,r,n);else if(!await Fi(o,t.ext,n,i))throw Error(`Downloaded archive appears corrupted`);n.info(`Extracting OpenCode`);let s=t.ext===`.zip`?await r.extractZip(o):await r.extractTar(o);n.info(`Caching OpenCode`);let c=await r.cacheDir(s,Si,Oi(e),t.arch);return n.info(`OpenCode installed`,{version:e,path:c}),{path:c,version:e,cached:!1}}async function Ri(e,t){if(t!==void 0&&Di(t))return e.debug(`Skipping stock latest fetch for harness-pinned version`,{version:t}),t;let n=await fetch(`https://api.github.com/repos/anomalyco/opencode/releases/latest`);if(!n.ok)throw Error(`Failed to fetch latest OpenCode version: ${n.statusText}`);let r=(await n.json()).tag_name.replace(/^v/,``);return e.info(`Latest OpenCode version`,{version:r}),r}const zi=new Set([`__proto__`,`prototype`,`constructor`]);function Bi(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Vi(e,t){let n=Object.create(null);for(let[t,r]of Object.entries(e))zi.has(t)||(n[t]=r);for(let[e,r]of Object.entries(t)){if(zi.has(e))continue;let t=n[e];Bi(r)&&Bi(t)?n[e]=Vi(t,r):n[e]=r}return n}function Hi(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}async function Ui(e,t,n){let r=JSON.parse(e);if(!Hi(r))throw Error(`systematic-config must be a JSON object (non-null, non-array)`);await V.mkdir(t,{recursive:!0});let i=H.join(t,`systematic.json`),a={};try{let e=await V.readFile(i,`utf8`),t=JSON.parse(e);Hi(t)&&(a=t)}catch(e){n.debug(`Using empty base Systematic config`,{path:i,error:String(e)})}let o=Vi(a,r);await V.writeFile(i,JSON.stringify(o,null,2)),n.info(`Wrote Systematic config`,{path:i,keyCount:Object.keys(r).length})}const Wi={restoreCache:async(e,t,n)=>be(e,t,n),saveCache:async(e,t)=>De(e,t)};function Gi(e){let{os:t,opencodeVersion:n,omoVersion:r,systematicVersion:i,cacheMode:a}=e;return a===`disabled`?`${O}-${t}-disabled-oc-${n}-sys-${i}`:`${O}-${t}-enabled-oc-${n}-omo-${r}-sys-${i}`}function Ki(e){let{os:t,opencodeVersion:n,omoVersion:r,systematicVersion:i,cacheMode:a}=e;return a===`disabled`?[`${O}-${t}-disabled-oc-${n}-sys-${i}-`]:[`${O}-${t}-enabled-oc-${n}-omo-${r}-sys-${i}-`]}function qi(e){let{cacheMode:t,toolCachePath:n,bunCachePath:r,omoConfigPath:i,opencodeCachePath:a}=e;return t===`disabled`?[n,a]:[n,r,i,a]}async function Ji(e){let{logger:t,os:n,opencodeVersion:r,omoVersion:i,systematicVersion:a,cacheMode:o,toolCachePath:s,bunCachePath:c,omoConfigPath:l,opencodeCachePath:u,cacheAdapter:d=Wi}=e,f=Gi({os:n,opencodeVersion:r,omoVersion:i,systematicVersion:a,cacheMode:o}),p=Ki({os:n,opencodeVersion:r,omoVersion:i,systematicVersion:a,cacheMode:o}),m=qi({cacheMode:o,toolCachePath:s,bunCachePath:c,omoConfigPath:l,opencodeCachePath:u});t.info(`Restoring tools cache`,{primaryKey:f,restoreKeys:[...p],paths:m});try{let e=await d.restoreCache([...m],f,[...p]);return e==null?(t.info(`Tools cache miss - will install tools`),{hit:!1,restoredKey:null}):(t.info(`Tools cache restored`,{restoredKey:e}),{hit:!0,restoredKey:e})}catch(e){return t.warning(`Tools cache restore failed`,{error:F(e)}),{hit:!1,restoredKey:null}}}async function Yi(e){let{logger:t,os:n,opencodeVersion:r,omoVersion:i,systematicVersion:a,cacheMode:o,toolCachePath:s,bunCachePath:c,omoConfigPath:l,opencodeCachePath:u,cacheAdapter:d=Wi}=e,f=Gi({os:n,opencodeVersion:r,omoVersion:i,systematicVersion:a,cacheMode:o}),p=qi({cacheMode:o,toolCachePath:s,bunCachePath:c,omoConfigPath:l,opencodeCachePath:u});t.info(`Saving tools cache`,{saveKey:f,paths:p});try{return await d.saveCache([...p],f),t.info(`Tools cache saved`,{saveKey:f}),!0}catch(e){return e instanceof Error&&e.message.includes(`already exists`)?(t.info(`Tools cache key already exists, skipping save`),!0):(t.warning(`Tools cache save failed`,{error:F(e)}),!1)}}async function Xi(e,t){let n=Date.now(),i=k({component:`setup`}),a=Kr(),o=qr();try{i.info(`Starting setup`,{version:e.opencodeVersion,enableOmo:e.enableOmo});let s;try{s=Jr(e.authJson)}catch(e){return M(`Invalid auth-json: ${F(e)}`),null}let c=e.opencodeVersion;if(c===`latest`)try{c=await Ri(i)}catch(e){i.warning(`Failed to get latest version, using fallback`,{error:F(e)}),c=Ti}let l=e.omoVersion,u=e.systematicVersion,d=R.env.RUNNER_TOOL_CACHE??`/opt/hostedtoolcache`,f=W(d,`opencode`),p=W(d,`bun`),m=W(Qe(),`.config`,`opencode`),h=W(Qe(),`.cache`,`opencode`),g=r(),_=await Ji({logger:i,os:g,opencodeVersion:c,omoVersion:l,systematicVersion:u,cacheMode:e.enableOmo||e.enableOmoSlim?`enabled`:`disabled`,toolCachePath:f,bunCachePath:p,omoConfigPath:m,opencodeCachePath:h}),v=_.hit?`hit`:`miss`,y,b=`skipped`,x=null,S=`skipped`,C=null;if(_.hit){let e=a.find(`opencode`,Oi(c));e.length>0?(y={path:e,version:c,cached:!0},i.info(`Tools cache hit, using cached OpenCode CLI`,{version:c,omoVersion:l})):i.warning(`Tools cache hit but binary not found in tool-cache, falling through to install`,{requestedVersion:c,restoredKey:_.restoredKey})}if(y==null)try{y=await Ii(c,i,a,o)}catch(e){return M(`Failed to install OpenCode: ${F(e)}`),null}if(e.enableOmo){let t=!1;try{await Qr(i,a,o,Oe,te),t=!0}catch(e){i.warning(`Bun installation failed, oMo will be unavailable`,{error:F(e)})}if(N(`OMO_SEND_ANONYMOUS_TELEMETRY`,`0`),N(`OMO_DISABLE_POSTHOG`,`1`),t){let t=await xi(l,{logger:i,execAdapter:o},e.omoProviders);t.installed?(i.info(`oMo installed`,{version:t.version}),b=`installed`):(i.warning(`oMo installation failed, continuing without oMo`,{error:t.error??`unknown error`}),b=`failed`),x=t.error}else b=`failed`,x=`Bun installation failed`}else if(e.enableOmoSlim){if(!ai(e.omoSlimVersion))return M(`OMO Slim version ${e.omoSlimVersion} is not verified to register the orchestrator agent (known-good: 1.1.1)`),null;let t=!1;try{await Qr(i,a,o,Oe,te),t=!0}catch(e){i.warning(`Bun installation failed, OMO Slim will be unavailable`,{error:F(e)})}let n=!1;if(t){let t=await bi(e.omoSlimVersion,{logger:i,execAdapter:o},e.omoSlimPreset);t.installed?(i.info(`OMO Slim installed`,{version:t.version}),S=`installed`,n=!0):(i.warning(`OMO Slim installation failed, continuing without OMO Slim`,{error:t.error??`unknown error`}),S=`failed`),C=t.error}else S=`failed`,C=`Bun installation failed`;e={...e,enableOmoSlim:n}}else i.info(`oMo disabled, skipping oMo install`);if(e.systematicConfig!=null)try{await Ui(e.systematicConfig,m,i)}catch(e){i.warning(`systematic-config write failed: ${F(e)}`)}let w=pi({opencodeConfig:e.opencodeConfig,systematicVersion:u,enableOmo:e.enableOmo,enableOmoSlim:e.enableOmoSlim,omoSlimVersion:e.omoSlimVersion,omoSlimPreset:e.omoSlimPreset},i);if(w.error!=null)return M(w.error),null;let T=W(m,`opencode.json`);if(await qe(m,{recursive:!0}),e.enableOmo){let e={};try{let t=await Je(T,`utf8`),n=JSON.parse(t);typeof n==`object`&&n&&!Array.isArray(n)&&(e=n)}catch{}delete e.plugins;let t=(e=>e.map(e=>typeof e==`string`&&(e===`oh-my-openagent`||e===`oh-my-openagent@latest`)?`oh-my-openagent@${l}`:e))(Array.isArray(e.plugin)?e.plugin:[]),n=Array.isArray(w.config.plugin)?w.config.plugin:[],r=[...t];for(let e of n){if(typeof e!=`string`)continue;let t=oi(e);r.some(e=>typeof e==`string`&&oi(e)===t)||r.push(e)}let a={...e,...w.config,plugin:r},o=JSON.stringify(a,null,2);N(`OPENCODE_CONFIG_CONTENT`,o),await Ye(T,o),i.info(`Wrote merged OpenCode config`,{path:T,pluginCount:r.length,plugins:r})}else{let e=JSON.stringify(w.config,null,2);N(`OPENCODE_CONFIG_CONTENT`,e),await Ye(T,e),i.info(`Wrote fresh OpenCode config (disabled oMo)`,{path:T,pluginCount:Array.isArray(w.config.plugin)?w.config.plugin.length:0})}_.hit||await Yi({logger:i,os:g,opencodeVersion:c,omoVersion:l,systematicVersion:u,cacheMode:e.enableOmo||e.enableOmoSlim?`enabled`:`disabled`,toolCachePath:f,bunCachePath:p,omoConfigPath:m,opencodeCachePath:h}),Oe(y.path),j(`opencode-path`,y.path),j(`opencode-version`,y.version),i.info(`OpenCode ready`,{version:y.version,cached:y.cached});let ne=je(t),re=await _i(ne,null,t,i);N(`GH_TOKEN`,t),i.info(`GitHub CLI configured`),await yi(ne,re.botLogin,i,o);let ie=W(ee(),`opencode`),ae=await Yr(s,ie,i);j(`auth-json-path`,ae),i.info(`auth.json populated`,{path:ae});let oe=Date.now()-n,se={opencodePath:y.path,opencodeVersion:y.version,ghAuthenticated:re.authenticated,omoStatus:b,omoError:x,omoSlimStatus:S,omoSlimError:C,toolsCacheStatus:v,duration:oe};return i.info(`Setup complete`,{duration:oe}),se}catch(e){let t=F(e);return i.error(`Setup failed`,{error:t}),M(t),null}}const Zi={verifyOpenCodeAvailable:async(e,t)=>{let n=e??`opencode`;try{let e=``;await L(n,[`--version`],{listeners:{stdout:t=>{e+=t.toString()}},silent:!0});let r=/(\d+\.\d+\.\d+)/.exec(e)?.[1]??null;return t.debug(`OpenCode version verified`,{version:r}),{available:!0,version:r}}catch{return t.debug(`OpenCode not available, will attempt auto-setup`),{available:!1,version:null}}},runSetup:async(e,t)=>Xi(e,t),addToPath:e=>{Oe(e)}};async function Qi(e,t){return x(e,t)}async function $i(e){return i(e,Zi)}async function ea(e,t){let n={repo:e.agentContext.repo,commentId:e.agentContext.commentId,issueNumber:e.agentContext.issueNumber,issueType:e.agentContext.issueType,botLogin:e.botLogin},r=k({phase:`acknowledgment`});return await vr(e.githubClient,n,r),t.debug(`Acknowledgment phase completed`),n}async function ta(e){let{storeConfig:t,repo:n,runId:r,runAttempt:i}=e,a=e.logger??k({phase:`acquire-lock`});if(t.enabled===!1)return a.debug(`coordination-disabled`,{reason:`s3-not-configured`}),{outcome:`s3-disabled`};let o=Se(t,a),s=`action:${r}:${i}`,c=await Kt({storeAdapter:o,storeConfig:t,lockTtlSeconds:900,heartbeatIntervalMs:0,staleThresholdMs:Jt,pendingStaleThresholdMs:Yt},n,s,`github`,r,a);return c.success===!1?(a.warning(`Lock acquisition failed`,{error:c.error.message,repo:n,holderId:s}),{outcome:`error`,error:c.error}):c.data.acquired===!0?(a.info(`Lock acquired`,{repo:n,holderId:s,etag:c.data.etag}),{outcome:`acquired`,lockEtag:c.data.etag}):(a.info(`lock-held-by-other-surface`,{repo:n,holderId:s,heldBy:c.data.holder?.holder_id??null,surface:c.data.holder?.surface??null}),{outcome:`held-by-other`,holder:c.data.holder})}function na(e,t){try{JSON.parse(e)}catch{throw Error(`${t} must be valid JSON`)}}function ra(e,t){let n=e.trim();if(!/^\d+$/.test(n))throw Error(`${t} must be a positive integer, received: ${e}`);let r=Number.parseInt(n,10);if(r===0)throw Error(`${t} must be a positive integer, received: ${e}`);return r}const ia=new Set([`sisyphus`,`hephaestus`,`oracle`,`librarian`,`prometheus`,`explore`]);function aa(e){let t=e.trim(),n=t.indexOf(`/`);if(n===-1)throw Error(`Invalid model format: "${e}". Expected "provider/model" (e.g., "anthropic/claude-sonnet-4-20250514")`);let r=t.slice(0,n).trim(),i=t.slice(n+1).trim();if(r.length===0)throw Error(`Invalid model format: "${e}". Provider cannot be empty.`);if(i.length===0)throw Error(`Invalid model format: "${e}". Model ID cannot be empty.`);return{providerID:r,modelID:i}}function oa(e,t=`timeout`){let n=e.trim();if(!/^\d+$/.test(n))throw Error(`${t} must be a non-negative integer, received: ${e}`);let r=Number.parseInt(n,10);if(Number.isNaN(r)||r<0)throw Error(`${t} must be a non-negative integer, received: ${e}`);return r}const sa=[`claude`,`claude-max20`,`copilot`,`gemini`,`openai`,`opencode-zen`,`zai-coding-plan`,`kimi-for-coding`],ca=[`auto`,`working-dir`,`branch-pr`],la=[`github`,`none`];function ua(e){if(!s.includes(e))throw Error(`Invalid omo-slim-preset value: "${e}". Valid values: ${s.join(`, `)}`);return e}function da(e){let t=e.split(`,`).map(e=>e.trim().toLowerCase()).filter(e=>e.length>0),n=`no`,r=`no`,i=`no`,a=`no`,o=`no`,s=`no`,c=`no`;for(let e of t){if(!sa.includes(e))throw Error(`Invalid omo-providers value: "${e}". Valid values: ${sa.join(`, `)}`);switch(e){case`claude`:n=`yes`;break;case`claude-max20`:n=`max20`;break;case`copilot`:r=`yes`;break;case`gemini`:i=`yes`;break;case`openai`:a=`yes`;break;case`opencode-zen`:o=`yes`;break;case`zai-coding-plan`:s=`yes`;break;case`kimi-for-coding`:c=`yes`;break}}return{claude:n,copilot:r,gemini:i,openai:a,opencodeZen:o,zaiCodingPlan:s,kimiForCoding:c}}function fa(e){return typeof e==`object`&&!!e}function pa(e){if(fa(e)===!1)return!1;let t=e.pull_request;if(fa(t)===!1)return!1;let n=t.head;if(fa(n)===!1)return!1;let r=n.repo;return fa(r)===!1?!1:r.fork===!0}function ma(e){if(e.length!==0){if(e===`aws:kms`||e===`AES256`)return e;throw Error(`s3-sse-encryption must be either 'aws:kms' or 'AES256'`)}}function ha(){try{let e=R.env.AWS_ACCESS_KEY_ID?.trim()??``;e.length>0&&oe(e);let n=R.env.AWS_SECRET_ACCESS_KEY?.trim()??``;n.length>0&&oe(n);let r=I(`github-token`,{required:!0}).trim();if(r.length===0)return o(Error(`github-token is required but was not provided`));let i=I(`auth-json`,{required:!0}).trim();if(i.length===0)return o(Error(`auth-json is required but was not provided`));na(i,`auth-json`);let a=I(`prompt`).trim(),s=a.length>0?a:null,c=I(`output-mode`).trim().toLowerCase(),l=c.length>0?ga(c):`auto`,d=I(`response-mode`).trim().toLowerCase(),f=d.length>0?_a(d):`github`,m=I(`session-retention`).trim(),h=m.length>0?ra(m,`session-retention`):50,g=I(`s3-backup`).trim().toLowerCase()===`true`,v=I(`s3-bucket`).trim(),b=v.length>0?v:``,x=I(`aws-region`).trim(),S=x.length>0?x:``,w=I(`s3-endpoint`).trim(),T=w.length>0?w:void 0,ee=I(`s3-prefix`).trim(),te=ee.length>0?ee:ne,se=I(`s3-expected-bucket-owner`).trim(),ce=se.length>0?se:void 0,le=I(`s3-allow-insecure-endpoint`).trim().toLowerCase()===`true`,ue=I(`s3-sse-kms-key-id`).trim(),E=ue.length>0?ue:void 0,D={enabled:g,bucket:b,region:S,prefix:te,endpoint:T,expectedBucketOwner:ce,allowInsecureEndpoint:le,sseEncryption:ma(I(`s3-sse-encryption`).trim()),sseKmsKeyId:E};if(D.enabled){if(D.bucket.length===0)throw Error(`s3-bucket is required when s3-backup is enabled`);let e=Me(D.prefix);if(!e.success)throw e.error;if(D.endpoint!=null){let e=ae(D.endpoint,D.allowInsecureEndpoint===!0);if(!e.success)throw e.error}pa(_e.payload)&&(Ne(`S3 object store is disabled for fork pull requests`),D={...D,enabled:!1})}let O=I(`enable-omo`).trim().toLowerCase()===`true`,k=I(`enable-omo-slim`).trim().toLowerCase()===`true`;if(O&&k)throw Error(`enable-omo and enable-omo-slim are mutually exclusive. Enable only one orchestration plugin.`);let de=I(`agent`).trim(),A=de.length>0?de:null,j=I(`model`).trim(),fe=j.length>0?aa(j):null,M=I(`timeout`).trim(),pe=M.length>0?oa(M):y,me=I(`opencode-version`).trim(),he=me.length>0?me:re,ge=I(`skip-cache`).trim().toLowerCase()===`true`,N=I(`omo-version`).trim(),ve=N.length>0?N:p,P=I(`systematic-version`).trim(),ye=P.length>0?P:ie,F=I(`omo-providers`).trim(),be=O?da(F.length>0?F:``):t,xe=I(`omo-slim-preset`).trim(),Se=xe.length>0?ua(xe):C,Ce=I(`opencode-config`).trim(),we=Ce.length>0?Ce:null,Te=I(`systematic-config`).trim(),Ee=Te.length>0?Te:null,De=I(`dedup-window`).trim(),Oe=De.length>0?oa(De,`dedup-window`):u;if(we!=null){na(we,`opencode-config`);let e=JSON.parse(we);if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Input 'opencode-config' must be a JSON object`)}if(!O){let e=[];F.length>0&&e.push(`omo-providers`),N.length>0&&N!==`3.17.15`&&e.push(`omo-version`),e.length>0&&Ne(`oMo is disabled (enable-omo: false). The following inputs are ignored: ${e.join(`, `)}. Set enable-omo: true to use oMo features.`),A!=null&&ia.has(A.toLowerCase())&&Ne(`Agent "${A}" is a known oMo-provided agent but oMo is disabled (enable-omo: false). Set enable-omo: true to use oMo agents, or configure "${A}" via your OpenCode config.`)}return _({githubToken:r,authJson:i,prompt:s,outputMode:l,responseMode:f,sessionRetention:h,storeConfig:D,agent:A,model:fe,timeoutMs:pe,enableOmo:O,enableOmoSlim:k,opencodeVersion:he,skipCache:ge,omoVersion:ve,systematicVersion:ye,omoProviders:be,omoSlimPreset:Se,opencodeConfig:we,systematicConfig:Ee,dedupWindow:Oe})}catch(e){return o(e instanceof Error?e:Error(String(e)))}}function ga(e){switch(e){case`auto`:case`working-dir`:case`branch-pr`:return e;default:throw Error(`Invalid output-mode value: "${e}". Valid values: ${ca.join(`, `)}`)}}function _a(e){switch(e){case`github`:case`none`:return e;default:throw Error(`Invalid response-mode value: "${e}". Valid values: ${la.join(`, `)}`)}}async function va(e){let t=ha();if(!t.success)return M(`Invalid inputs: ${t.error.message}`),null;let n=t.data,r=k({phase:`main`});r.info(`Action inputs parsed`,{sessionRetention:n.sessionRetention,s3Backup:n.storeConfig.enabled,hasGithubToken:n.githubToken.length>0,hasPrompt:n.prompt!=null,outputMode:n.outputMode,agent:n.agent,hasModelOverride:n.model!=null,timeoutMs:n.timeoutMs});let i=await $i({logger:r,opencodeVersion:n.opencodeVersion,githubToken:n.githubToken,authJson:n.authJson,enableOmo:n.enableOmo,omoVersion:n.omoVersion,systematicVersion:n.systematicVersion,omoProviders:n.omoProviders,opencodeConfig:n.opencodeConfig,systematicConfig:n.systematicConfig,enableOmoSlim:n.enableOmoSlim,omoSlimVersion:we,omoSlimPreset:n.omoSlimPreset});return i.didSetup?r.info(`OpenCode auto-setup completed`,{version:i.version}):r.info(`OpenCode already available`,{version:i.version}),P(D.OPENCODE_VERSION,i.version),P(D.S3_ENABLED,String(n.storeConfig.enabled)),P(D.S3_BUCKET,n.storeConfig.bucket),P(D.S3_REGION,n.storeConfig.region),P(D.S3_PREFIX,n.storeConfig.prefix),P(D.S3_ENDPOINT,n.storeConfig.endpoint??``),P(D.S3_EXPECTED_BUCKET_OWNER,n.storeConfig.expectedBucketOwner??``),P(D.S3_ALLOW_INSECURE_ENDPOINT,String(n.storeConfig.allowInsecureEndpoint===!0)),P(D.S3_SSE_ENCRYPTION,n.storeConfig.sseEncryption??``),P(D.S3_SSE_KMS_KEY_ID,n.storeConfig.sseKmsKeyId??``),e.debug(`Bootstrap phase completed`,{opencodeVersion:i.version}),{inputs:n,logger:r,opencodeResult:i}}const ya=/^[0-9a-f]{40}$/i;function ba(){return{exec:L,getExecOutput:le}}async function xa(e){let{workspacePath:t,logger:n,execAdapter:r=ba()}=e,i=H.join(t,`.git`),a=H.join(i,`opencode`);try{let e=(await V.readFile(a,`utf8`)).trim();if(e.length>0){if(ya.test(e))return n.debug(`Project ID loaded from cache`,{projectId:e}),{projectId:e,source:`cached`};n.warning(`Invalid cached project ID format, regenerating`,{cachedId:e})}}catch(e){n.debug(`No cached project ID found`,{error:F(e)})}try{let e=await V.readFile(i,`utf8`),n=/^gitdir: (.+)$/m.exec(e);if(n==null)return{projectId:null,source:`error`,error:`Invalid .git file format`};i=H.resolve(t,n[1]),a=H.join(i,`opencode`)}catch(e){if((typeof e==`object`?e.code:void 0)!==`EISDIR`)return{projectId:null,source:`error`,error:`Not a git repository`}}try{let{stdout:e,exitCode:i}=await r.getExecOutput(`git`,[`rev-list`,`--max-parents=0`,`--all`],{cwd:t,silent:!0});if(i!==0||e.trim().length===0)return{projectId:null,source:`error`,error:`No commits found in repository`};let o=e.trim().split(` `).map(e=>e.trim()).filter(e=>e.length>0).sort();if(o.length===0)return{projectId:null,source:`error`,error:`No root commits found`};let s=o[0];try{await V.writeFile(a,s,{encoding:`utf8`,flag:`wx`}),n.info(`Project ID generated and cached`,{projectId:s,source:`generated`})}catch(e){(typeof e==`object`?e.code:void 0)===`EEXIST`?n.debug(`Project ID file already written by concurrent process, skipping`,{projectId:s}):n.warning(`Failed to cache project ID (continuing)`,{error:F(e)})}return{projectId:s,source:`generated`}}catch(e){return{projectId:null,source:`error`,error:F(e)}}}async function Sa(e,t){let n=se(),r=k({phase:`cache`}),i=f(),a=H.join(i,`.git`,`opencode`),o=await Te({components:n,logger:r,storagePath:Le(),authPath:h(),projectIdPath:a,opencodeVersion:e.opencodeResult.version,storeConfig:e.inputs.storeConfig}),s=o.corrupted?`corrupted`:o.hit?`hit`:`miss`;t.setCacheStatus(s),t.setCacheSource(o.source),e.logger.info(`Cache restore completed`,{cacheStatus:s,key:o.key});let c=await xa({workspacePath:i,logger:r});c.source===`error`?r.warning(`Failed to generate project ID (continuing)`,{error:c.error}):r.debug(`Project ID ready`,{projectId:c.projectId,source:c.source});let l=k({phase:`server-bootstrap`}),u=await Qi(new AbortController().signal,l);if(!u.success)return M(`OpenCode server bootstrap failed: ${u.error.message}`),null;let d=u.data;return l.info(`SDK server bootstrapped successfully`),{cacheResult:o,cacheStatus:s,serverHandle:d}}const Ca={markdownImage:/!\[([^\]]*)\]\((https:\/\/github\.com\/user-attachments\/assets\/[^)]+)\)/gi,markdownLink:/\[([^\]]+)\]\((https:\/\/github\.com\/user-attachments\/files\/[^)]+)\)/gi,htmlImage:/]*src=["'](https:\/\/github\.com\/user-attachments\/assets\/[^"']+)["'][^>]*>/gi};function wa(e,t,n){e.lastIndex=0;let r=e.exec(t);for(;r!=null;)n(r),r=e.exec(t);e.lastIndex=0}function Ta(e){let t=[],n=new Set;return wa(Ca.markdownImage,e,e=>{let r=e[2],i=e[1],a=e[0];r!=null&&i!=null&&!n.has(r)&&Hn(r)&&(n.add(r),t.push({url:r,originalMarkdown:a,altText:i,type:`image`}))}),wa(Ca.markdownLink,e,e=>{let r=e[2],i=e[1],a=e[0];r!=null&&i!=null&&!n.has(r)&&Hn(r)&&(n.add(r),t.push({url:r,originalMarkdown:a,altText:i,type:`file`}))}),wa(Ca.htmlImage,e,e=>{let r=e[1],i=e[0];if(r!=null&&!n.has(r)&&Hn(r)){n.add(r);let e=/alt=["']([^"']*)["']/i.exec(i);t.push({url:r,originalMarkdown:i,altText:e?.[1]??``,type:`image`})}}),Ca.htmlImage.lastIndex=0,t}function Ea(e,t,n){try{let r=new URL(e).pathname.split(`/`).at(-1);if(r!=null&&/\.[a-z0-9]+$/i.test(r))return r;if(t.trim().length>0){let e=t.replaceAll(/[^\w.-]/g,`_`).slice(0,50);return e.trim().length>0?e:`attachment_${n+1}`}return`attachment_${n+1}`}catch{return`attachment_${n+1}`}}const Da={maxFiles:5,maxFileSizeBytes:5*1024*1024,maxTotalSizeBytes:15*1024*1024,allowedMimeTypes:[`image/png`,`image/jpeg`,`image/gif`,`image/webp`,`image/svg+xml`,`text/plain`,`text/markdown`,`text/csv`,`application/json`,`application/pdf`]},Oa=[`github.com`,`githubusercontent.com`];async function ka(e,t,n,r,i){i.debug(`Downloading attachment`,{url:e.url});try{let a=await fetch(e.url,{headers:{Authorization:`Bearer ${n}`,Accept:`*/*`,"User-Agent":`fro-bot-agent`},redirect:`manual`}),o=a;if(a.status>=300&&a.status<400){let t=a.headers.get(`location`);if(t==null)return i.warning(`Redirect without location`,{url:e.url}),null;let n=new URL(t);if(!Oa.some(e=>n.hostname===e||n.hostname.endsWith(`.${e}`)))return i.warning(`Redirect to non-GitHub host blocked`,{url:e.url,redirectTo:n.hostname}),null;o=await fetch(t,{headers:{Accept:`*/*`,"User-Agent":`fro-bot-agent`},redirect:`follow`})}if(!o.ok)return i.warning(`Attachment download failed`,{url:e.url,status:o.status}),null;let s=o.headers.get(`content-length`);if(s!=null){let t=Number.parseInt(s,10);if(t>r.maxFileSizeBytes)return i.warning(`Attachment exceeds size limit (Content-Length)`,{url:e.url,size:t,limit:r.maxFileSizeBytes}),null}let c=He.from(await o.arrayBuffer());if(c.length>r.maxFileSizeBytes)return i.warning(`Attachment exceeds size limit`,{url:e.url,size:c.length,limit:r.maxFileSizeBytes}),null;let l=o.headers.get(`content-type`)??`application/octet-stream`,u=Ea(e.url,e.altText,t),d=l.split(`;`)[0],f=d==null?`application/octet-stream`:d.trim(),p=await V.mkdtemp(H.join(Xe.tmpdir(),`fro-bot-attachments-`)),m=u.trim().length>0?u:`attachment_${t+1}`,h=H.join(p,m);return await V.writeFile(h,c),i.debug(`Attachment downloaded`,{filename:u,mime:f,sizeBytes:c.length,tempPath:h}),{url:e.url,filename:u,mime:f,sizeBytes:c.length,tempPath:h}}catch(t){return i.warning(`Attachment download error`,{url:e.url,error:F(t)}),null}}async function Aa(e,t,n=Da,r){return Promise.all(e.map(async(e,i)=>ka(e,i,t,n,r)))}async function ja(e,t){for(let n of e)try{await V.unlink(n);let e=H.dirname(n);await V.rmdir(e).catch(()=>{})}catch(e){t.debug(`Failed to cleanup temp file`,{path:n,error:F(e)})}}function Ma(e){return e.map(e=>({type:`file`,mime:e.mime,url:Ge(e.tempPath).toString(),filename:e.filename}))}function Na(e,t,n){let r=e,i=new Set(n.map(e=>e.filename));for(let e of t){let t=n.find(e=>i.has(e.filename));t!=null&&(r=r.replace(e.originalMarkdown,`@${t.filename}`))}return r}function Pa(e,t,n,r){return{processed:n,skipped:r,modifiedBody:Na(e,t,n),fileParts:Ma(n),tempFiles:n.map(e=>e.tempPath)}}function Fa(e,t=Da,n){let r=[],i=[],a=0;for(let o of e)if(o!=null){if(r.length>=t.maxFiles){i.push({url:o.url,reason:`Exceeds max file count (${t.maxFiles})`}),n.debug(`Attachment skipped: max count`,{url:o.url});continue}if(o.sizeBytes>t.maxFileSizeBytes){i.push({url:o.url,reason:`File too large (${g(o.sizeBytes)} > ${g(t.maxFileSizeBytes)})`}),n.debug(`Attachment skipped: too large`,{url:o.url,size:o.sizeBytes});continue}if(a+o.sizeBytes>t.maxTotalSizeBytes){i.push({url:o.url,reason:`Would exceed total size limit (${g(t.maxTotalSizeBytes)})`}),n.debug(`Attachment skipped: total size exceeded`,{url:o.url});continue}if(!Ia(o.mime,t.allowedMimeTypes)){i.push({url:o.url,reason:`MIME type not allowed: ${o.mime}`}),n.debug(`Attachment skipped: MIME type`,{url:o.url,mime:o.mime});continue}a+=o.sizeBytes,r.push({filename:o.filename,mime:o.mime,sizeBytes:o.sizeBytes,tempPath:o.tempPath}),n.info(`Attachment validated`,{filename:o.filename,mime:o.mime,sizeBytes:o.sizeBytes})}return{validated:r,skipped:i}}function Ia(e,t){let[n]=e.split(`/`);for(let r of t)if(r===e||r.endsWith(`/*`)&&n!=null&&n===r.slice(0,-2))return!0;return!1}function La(e){let t=H.resolve(e);return t.endsWith(H.sep)&&t.length>1?t.slice(0,-1):t}async function Ra(e){let{bootstrapLogger:t,reactionCtx:n,githubClient:r,agentSuccess:i,attachmentResult:a,serverHandle:o,detectedOpencodeVersion:s,storeConfig:c,metrics:u,agentIdentity:p,repo:m,runId:g,lockEtag:_}=e;try{if(a!=null){let e=k({phase:`attachment-cleanup`});await ja(a.tempFiles,e)}n!=null&&r!=null&&await wr(r,n,i,k({phase:`cleanup`}));let e=k({phase:`prune`}),_=f();if(o!=null){let t=La(_),n=await Tt(o.client,t,wt,e);n.prunedCount>0&&e.info(`Pruned old sessions`,{pruned:n.prunedCount,remaining:n.remainingCount})}if(o!=null)try{o.shutdown()}catch(e){t.warning(`Server shutdown failed (non-fatal)`,{error:e instanceof Error?e.message:String(e)})}if(c.enabled===!0){let e=k({phase:`object-store-artifacts`});try{let t=Se(c,e),n=await ve(t,c,p,m,g,b(),e),r=u.getMetrics(),i=[...new Set([...r.sessionsUsed,...r.sessionsCreated])];await fe(t,c,p,m,g,{runId:g,timestamp:new Date().toISOString(),tokenUsage:r.tokenUsage,timing:{startTime:r.startTime,endTime:r.endTime,duration:r.duration},cacheStatus:r.cacheStatus,cacheSource:r.cacheSource,sessionIds:i,sessionsUsed:r.sessionsUsed,sessionsCreated:r.sessionsCreated,prsCreated:r.prsCreated,commitsCreated:r.commitsCreated,commentsPosted:r.commentsPosted,model:r.model,cost:r.cost,errors:r.errors,artifactUpload:n},e)}catch(t){e.warning(`Object store artifact or metadata sync failed (non-fatal)`,{error:t instanceof Error?t.message:String(t)})}}let y=se(),x=k({phase:`cache-save`}),S=H.join(_,`.git`,`opencode`);if(await ye({components:y,runId:l(),logger:x,storagePath:Le(),authPath:h(),projectIdPath:S,opencodeVersion:s,storeConfig:c})&&P(D.CACHE_SAVED,`true`),d()){let e=k({phase:`artifact-upload`});await ke({logPath:b(),runId:l(),runAttempt:v(),logger:e})&&P(D.ARTIFACT_UPLOADED,`true`)}}catch(e){t.warning(`Cleanup failed (non-fatal)`,{error:e instanceof Error?e.message:String(e)})}finally{if(_!=null&&c.enabled===!0){let e=k({phase:`lock-release`});try{let t=await qt({storeAdapter:Se(c,e),storeConfig:c,lockTtlSeconds:900,heartbeatIntervalMs:3e4,staleThresholdMs:Jt,pendingStaleThresholdMs:Yt},m,_,e);t.success===!1?e.warning(`Lock release failed (non-fatal)`,{error:t.error.message,repo:m}):e.debug(`Lock released`,{repo:m})}catch(t){e.warning(`Lock release threw (non-fatal)`,{error:t instanceof Error?t.message:String(t),repo:m})}}}}const za=H.join(Ze.homedir(),`.cache`,`fro-bot-dedup`);function Ba(e){return e.replaceAll(`/`,`-`)}function Va(e,t){let n=Ba(e);return H.join(za,`${n}-${t.entityType}-${t.entityNumber}`)}function Ha(e,t){return`${T}-${Ba(e)}-${t.entityType}-${t.entityNumber}-`}function Ua(e,t,n){return`${Ha(e,t)}${n}`}async function Wa(e,t,n,r=pe){let i=Va(e,t),a=H.join(i,`sentinel.json`),o=Ha(e,t);try{if(await V.rm(i,{recursive:!0,force:!0}),await V.mkdir(i,{recursive:!0}),await r.restoreCache([i],o,[])==null)return null;let e=await V.readFile(a,`utf8`);return JSON.parse(e)}catch(e){return n.debug(`Dedup marker restore failed; proceeding without marker`,{error:F(e),entityType:t.entityType,entityNumber:t.entityNumber}),null}}async function Ga(e,t,n,r,i=pe){let a=Va(e,t),o=H.join(a,`sentinel.json`),s=Ua(e,t,n.runId);try{return await V.mkdir(a,{recursive:!0}),await V.writeFile(o,JSON.stringify(n),`utf8`),await i.saveCache([a],s),!0}catch(e){return F(e).toLowerCase().includes(`already exists`)?!0:(r.debug(`Dedup marker save failed`,{error:F(e),entityType:t.entityType,entityNumber:t.entityNumber,saveKey:s}),!1)}}const Ka=new Set([`pull_request`,`issues`]),qa=new Set([`synchronize`,`reopened`]);function Ja(e){return e.target==null||!Ka.has(e.eventType)?null:e.eventType===`pull_request`&&e.target.kind===`pr`?{entityType:`pr`,entityNumber:e.target.number}:e.eventType===`issues`&&e.target.kind===`issue`?{entityType:`issue`,entityNumber:e.target.number}:null}async function Ya(e,t,n,r,i=k({phase:`dedup`}),a){let o=Ja(t);if(e===0)return{shouldProceed:!0,entity:o};if(o==null)return{shouldProceed:!0,entity:null};if(t.action!=null&&qa.has(t.action))return i.debug(`Dedup bypassed for action`,{action:t.action}),{shouldProceed:!0,entity:o};let s=await Wa(n,o,i,a);if(s==null||s.runId===t.runId)return{shouldProceed:!0,entity:o};let c=new Date(s.timestamp).getTime();if(Number.isNaN(c))return i.warning(`Dedup marker timestamp is invalid; proceeding without dedup`,{markerTimestamp:s.timestamp}),{shouldProceed:!0,entity:o};let l=Date.now()-c;if(l<-6e4)return i.warning(`Dedup marker timestamp is too far in the future; proceeding without dedup`,{markerTimestamp:s.timestamp,markerAge:l}),{shouldProceed:!0,entity:o};let u=Math.max(0,l);return u>e?{shouldProceed:!0,entity:o}:(i.info(`Skipping duplicate trigger within dedup window`,{eventType:t.eventType,action:t.action,runId:t.runId,markerRunId:s.runId,markerTimestamp:s.timestamp,dedupWindow:e,entityType:o.entityType,entityNumber:o.entityNumber}),on({sessionId:null,resolvedOutputMode:null,cacheStatus:`miss`,duration:Date.now()-r}),await Za(t,o,s,u,e,i),{shouldProceed:!1,entity:o})}async function Xa(e,t,n,r=k({phase:`dedup`}),i){await Ga(n,t,{timestamp:new Date().toISOString(),runId:e.runId,action:e.action??`unknown`,eventType:e.eventType,entityType:t.entityType,entityNumber:t.entityNumber},r,i)}async function Za(e,t,n,r,i,a){try{let a=Math.round(r/1e3),o=Math.round(i/1e3),s=`${t.entityType} #${t.entityNumber}`,c=`https://github.com/${e.repo.owner}/${e.repo.repo}/actions/runs/${n.runId}`;w.addHeading(`Fro Bot Agent Run — Skipped (Dedup)`,2).addRaw(`Execution skipped because the agent already ran for **${s}** recently.\n\n`).addTable([[{data:`Detail`,header:!0},{data:`Value`,header:!0}],[`Current action`,`\`${e.eventType}.${e.action??`unknown`}\``],[`Prior run`,`[${n.runId}](${c})`],[`Prior action`,`\`${n.eventType}.${n.action}\``],[`Time since prior run`,`${a}s`],[`Dedup window`,`${o}s`]]).addRaw(` > Dedup is best-effort suppression. Use workflow concurrency groups to prevent overlapping runs. diff --git a/dist/post.js b/dist/post.js index 07cd71f808..19fac963ac 100644 --- a/dist/post.js +++ b/dist/post.js @@ -1 +1 @@ -import{F as e,H as t,L as n,N as r,P as i,R as a,a as o,d as s,dt as c,f as l,h as u,m as d,n as f,nt as p,p as m,t as h,z as g}from"./artifact-CiwRO5nl.js";function _(e){let t=c(e);return t.length>0?t:void 0}function v(){let e=_(s.S3_ENABLED),t=_(s.S3_BUCKET),n=_(s.S3_PREFIX);if(e==null||t==null||n==null)return;let r=_(s.S3_REGION)??``,i=_(s.S3_ENDPOINT),a=_(s.S3_EXPECTED_BUCKET_OWNER),o=_(s.S3_ALLOW_INSECURE_ENDPOINT),c=_(s.S3_SSE_ENCRYPTION),l=_(s.S3_SSE_KMS_KEY_ID);return{enabled:e===`true`,bucket:t,region:r,prefix:n,endpoint:i,expectedBucketOwner:a,allowInsecureEndpoint:o===`true`,sseEncryption:c===`aws:kms`||c===`AES256`?c:void 0,sseKmsKeyId:l}}async function y(_={}){let y=_.logger??l({phase:`post`}),b=c(s.SHOULD_SAVE_CACHE),x=c(s.CACHE_SAVED),S=c(s.SESSION_ID)||null,C=c(s.OPENCODE_VERSION)||null,w=v();if(y.debug(`Post-action state`,{shouldSaveCache:b,cacheSaved:x,sessionId:S,opencodeVersion:C,hasStoreConfig:w!=null}),b!==`true`){y.info(`Skipping post-action: event was not processed`,{shouldSaveCache:b});return}if(x===`true`)y.info(`Skipping post-action: cache already saved by main action`,{cacheSaved:x});else{let t=String(e());try{await f({components:o(),runId:e(),logger:y,storagePath:g(),authPath:n(),opencodeVersion:C,...w==null?{}:{storeConfig:w}})?y.info(`Post-action cache saved`,{sessionId:S}):y.info(`Post-action: no cache content to save`,{sessionId:S})}catch(e){y.warning(`Post-action cache save failed (non-fatal)`,{error:p(e)})}if(w?.enabled===!0)try{let e=l({phase:`post-object-store`}),n=m(w,e),o=r(),s=i();await u(n,w,`github`,o,t,{runId:t,timestamp:new Date().toISOString(),cleanupSkipped:!0,runAttempt:s},e),await d(n,w,`github`,o,t,a(),e)}catch(e){y.warning(`Post-action object store sync failed (non-fatal)`,{error:p(e)})}}if(t()&&c(s.ARTIFACT_UPLOADED)!==`true`)try{let t=l({phase:`post-artifact-upload`});await h({logPath:a(),runId:e(),runAttempt:i(),logger:t})}catch(e){y.warning(`Post-action artifact upload failed (non-fatal)`,{error:p(e)})}}await y();export{}; \ No newline at end of file +import{F as e,H as t,L as n,N as r,P as i,R as a,a as o,d as s,dt as c,f as l,h as u,m as d,n as f,nt as p,p as m,t as h,z as g}from"./artifact-DpEBMBCS.js";function _(e){let t=c(e);return t.length>0?t:void 0}function v(){let e=_(s.S3_ENABLED),t=_(s.S3_BUCKET),n=_(s.S3_PREFIX);if(e==null||t==null||n==null)return;let r=_(s.S3_REGION)??``,i=_(s.S3_ENDPOINT),a=_(s.S3_EXPECTED_BUCKET_OWNER),o=_(s.S3_ALLOW_INSECURE_ENDPOINT),c=_(s.S3_SSE_ENCRYPTION),l=_(s.S3_SSE_KMS_KEY_ID);return{enabled:e===`true`,bucket:t,region:r,prefix:n,endpoint:i,expectedBucketOwner:a,allowInsecureEndpoint:o===`true`,sseEncryption:c===`aws:kms`||c===`AES256`?c:void 0,sseKmsKeyId:l}}async function y(_={}){let y=_.logger??l({phase:`post`}),b=c(s.SHOULD_SAVE_CACHE),x=c(s.CACHE_SAVED),S=c(s.SESSION_ID)||null,C=c(s.OPENCODE_VERSION)||null,w=v();if(y.debug(`Post-action state`,{shouldSaveCache:b,cacheSaved:x,sessionId:S,opencodeVersion:C,hasStoreConfig:w!=null}),b!==`true`){y.info(`Skipping post-action: event was not processed`,{shouldSaveCache:b});return}if(x===`true`)y.info(`Skipping post-action: cache already saved by main action`,{cacheSaved:x});else{let t=String(e());try{await f({components:o(),runId:e(),logger:y,storagePath:g(),authPath:n(),opencodeVersion:C,...w==null?{}:{storeConfig:w}})?y.info(`Post-action cache saved`,{sessionId:S}):y.info(`Post-action: no cache content to save`,{sessionId:S})}catch(e){y.warning(`Post-action cache save failed (non-fatal)`,{error:p(e)})}if(w?.enabled===!0)try{let e=l({phase:`post-object-store`}),n=m(w,e),o=r(),s=i();await u(n,w,`github`,o,t,{runId:t,timestamp:new Date().toISOString(),cleanupSkipped:!0,runAttempt:s},e),await d(n,w,`github`,o,t,a(),e)}catch(e){y.warning(`Post-action object store sync failed (non-fatal)`,{error:p(e)})}}if(t()&&c(s.ARTIFACT_UPLOADED)!==`true`)try{let t=l({phase:`post-artifact-upload`});await h({logPath:a(),runId:e(),runAttempt:i(),logger:t})}catch(e){y.warning(`Post-action artifact upload failed (non-fatal)`,{error:p(e)})}}await y();export{}; \ No newline at end of file diff --git a/dist/v2-BTpcWq6_.js b/dist/v2-BTpcWq6_.js deleted file mode 100644 index dadaa6b7c9..0000000000 --- a/dist/v2-BTpcWq6_.js +++ /dev/null @@ -1,7 +0,0 @@ -import"./rolldown-runtime-DaDcL9Zw.js";import{i as e,r as t}from"./process-BRCHWG3d.js";const n=({onRequest:e,onSseError:t,onSseEvent:n,responseTransformer:r,responseValidator:i,sseDefaultRetryDelay:a,sseMaxRetryAttempts:o,sseMaxRetryDelay:s,sseSleepFn:c,url:l,...u})=>{let d,f=c??(e=>new Promise(t=>setTimeout(t,e)));return{stream:async function*(){let c=a??3e3,p=0,m=u.signal??new AbortController().signal;for(;!m.aborted;){p++;let a=u.headers instanceof Headers?u.headers:new Headers(u.headers);d!==void 0&&a.set(`Last-Event-ID`,d);try{let t={redirect:`follow`,...u,body:u.serializedBody,headers:a,signal:m},o=new Request(l,t);e&&(o=await e(l,t));let s=await(u.fetch??globalThis.fetch)(o);if(!s.ok)throw Error(`SSE failed: ${s.status} ${s.statusText}`);if(!s.body)throw Error(`No body in SSE response`);let f=s.body.pipeThrough(new TextDecoderStream).getReader(),p=``,h=()=>{try{f.cancel()}catch{}};m.addEventListener(`abort`,h);try{for(;;){let{done:e,value:t}=await f.read();if(e)break;p+=t,p=p.replace(/\r\n/g,` -`).replace(/\r/g,` -`);let a=p.split(` - -`);p=a.pop()??``;for(let e of a){let t=e.split(` -`),a=[],o;for(let e of t)if(e.startsWith(`data:`))a.push(e.replace(/^data:\s*/,``));else if(e.startsWith(`event:`))o=e.replace(/^event:\s*/,``);else if(e.startsWith(`id:`))d=e.replace(/^id:\s*/,``);else if(e.startsWith(`retry:`)){let t=Number.parseInt(e.replace(/^retry:\s*/,``),10);Number.isNaN(t)||(c=t)}let s,l=!1;if(a.length){let e=a.join(` -`);try{s=JSON.parse(e),l=!0}catch{s=e}}l&&(i&&await i(s),r&&(s=await r(s))),n?.({data:s,event:o,id:d,retry:c}),a.length&&(yield s)}}}finally{m.removeEventListener(`abort`,h),f.releaseLock()}break}catch(e){if(t?.(e),o!==void 0&&p>=o)break;await f(Math.min(c*2**(p-1),s??3e4))}}}()}},r=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},i=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},a=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},o=({allowReserved:e,explode:t,name:n,style:a,value:o})=>{if(!t){let t=(e?o:o.map(e=>encodeURIComponent(e))).join(i(a));switch(a){case`label`:return`.${t}`;case`matrix`:return`;${n}=${t}`;case`simple`:return t;default:return`${n}=${t}`}}let c=r(a),l=o.map(t=>a===`label`||a===`simple`?e?t:encodeURIComponent(t):s({allowReserved:e,name:n,value:t})).join(c);return a===`label`||a===`matrix`?c+l:l},s=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},c=({allowReserved:e,explode:t,name:n,style:r,value:i,valueOnly:o})=>{if(i instanceof Date)return o?i.toISOString():`${n}=${i.toISOString()}`;if(r!==`deepObject`&&!t){let t=[];Object.entries(i).forEach(([n,r])=>{t=[...t,n,e?r:encodeURIComponent(r)]});let a=t.join(`,`);switch(r){case`form`:return`${n}=${a}`;case`label`:return`.${a}`;case`matrix`:return`;${n}=${a}`;default:return a}}let c=a(r),l=Object.entries(i).map(([t,i])=>s({allowReserved:e,name:r===`deepObject`?`${n}[${t}]`:t,value:i})).join(c);return r===`label`||r===`matrix`?c+l:l},l=/\{[^{}]+\}/g,u=({path:e,url:t})=>{let n=t,r=t.match(l);if(r)for(let t of r){let r=!1,i=t.substring(1,t.length-1),a=`simple`;i.endsWith(`*`)&&(r=!0,i=i.substring(0,i.length-1)),i.startsWith(`.`)?(i=i.substring(1),a=`label`):i.startsWith(`;`)&&(i=i.substring(1),a=`matrix`);let l=e[i];if(l==null)continue;if(Array.isArray(l)){n=n.replace(t,o({explode:r,name:i,style:a,value:l}));continue}if(typeof l==`object`){n=n.replace(t,c({explode:r,name:i,style:a,value:l,valueOnly:!0}));continue}if(a===`matrix`){n=n.replace(t,`;${s({name:i,value:l})}`);continue}let u=encodeURIComponent(a===`label`?`.${l}`:l);n=n.replace(t,u)}return n},d=({baseUrl:e,path:t,query:n,querySerializer:r,url:i})=>{let a=i.startsWith(`/`)?i:`/${i}`,o=(e??``)+a;t&&(o=u({path:t,url:o}));let s=n?r(n):``;return s.startsWith(`?`)&&(s=s.substring(1)),s&&(o+=`?${s}`),o};function f(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}const p=async(e,t)=>{let n=typeof t==`function`?await t(e):t;if(n)return e.scheme===`bearer`?`Bearer ${n}`:e.scheme===`basic`?`Basic ${btoa(n)}`:n},m={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},h=({parameters:e={},...t}={})=>n=>{let r=[];if(n&&typeof n==`object`)for(let i in n){let a=n[i];if(a==null)continue;let l=e[i]||t;if(Array.isArray(a)){let e=o({allowReserved:l.allowReserved,explode:!0,name:i,style:`form`,value:a,...l.array});e&&r.push(e)}else if(typeof a==`object`){let e=c({allowReserved:l.allowReserved,explode:!0,name:i,style:`deepObject`,value:a,...l.object});e&&r.push(e)}else{let e=s({allowReserved:l.allowReserved,name:i,value:a});e&&r.push(e)}}return r.join(`&`)},g=e=>{if(!e)return`stream`;let t=e.split(`;`)[0]?.trim();if(t){if(t.startsWith(`application/json`)||t.endsWith(`+json`))return`json`;if(t===`multipart/form-data`)return`formData`;if([`application/`,`audio/`,`image/`,`video/`].some(e=>t.startsWith(e)))return`blob`;if(t.startsWith(`text/`))return`text`}},_=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get(`Cookie`)?.includes(`${t}=`)):!1,v=async({security:e,...t})=>{for(let n of e){if(_(t,n.name))continue;let e=await p(n,t.auth);if(!e)continue;let r=n.name??`Authorization`;switch(n.in){case`query`:t.query||={},t.query[r]=e;break;case`cookie`:t.headers.append(`Cookie`,`${r}=${e}`);break;default:t.headers.set(r,e);break}}},y=e=>d({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==`function`?e.querySerializer:h(e.querySerializer),url:e.url}),b=(e,t)=>{let n={...e,...t};return n.baseUrl?.endsWith(`/`)&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=S(e.headers,t.headers),n},x=e=>{let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t},S=(...e)=>{let t=new Headers;for(let n of e){if(!n)continue;let e=n instanceof Headers?x(n):Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,typeof r==`object`?JSON.stringify(r):r)}return t};var C=class{fns=[];clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){let t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e==`number`?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){let n=this.getInterceptorIndex(e);return this.fns[n]?(this.fns[n]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}};const w=()=>({error:new C,request:new C,response:new C}),ee=h({allowReserved:!1,array:{explode:!0,style:`form`},object:{explode:!0,style:`deepObject`}}),te={"Content-Type":`application/json`},T=(e={})=>({...m,headers:te,parseAs:`auto`,querySerializer:ee,...e}),E=(e={})=>{let t=b(T(),e),r=()=>({...t}),i=e=>(t=b(t,e),r()),a=w(),o=async e=>{let n={...t,...e,fetch:e.fetch??t.fetch??globalThis.fetch,headers:S(t.headers,e.headers),serializedBody:void 0};return n.security&&await v({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody===``)&&n.headers.delete(`Content-Type`),{opts:n,url:y(n)}},s=async e=>{let{opts:t,url:n}=await o(e),r={redirect:`follow`,...t,body:f(t)},i=new Request(n,r);for(let e of a.request.fns)e&&(i=await e(i,t));let s=t.fetch,c;try{c=await s(i)}catch(e){let n=e;for(let r of a.error.fns)r&&(n=await r(e,void 0,i,t));if(n||={},t.throwOnError)throw n;return t.responseStyle===`data`?void 0:{error:n,request:i,response:void 0}}for(let e of a.response.fns)e&&(c=await e(c,i,t));let l={request:i,response:c};if(c.ok){let e=(t.parseAs===`auto`?g(c.headers.get(`Content-Type`)):t.parseAs)??`json`;if(c.status===204||c.headers.get(`Content-Length`)===`0`){let n;switch(e){case`arrayBuffer`:case`blob`:case`text`:n=await c[e]();break;case`formData`:n=new FormData;break;case`stream`:n=c.body;break;default:n={};break}return t.responseStyle===`data`?n:{data:n,...l}}let n;switch(e){case`arrayBuffer`:case`blob`:case`formData`:case`text`:n=await c[e]();break;case`json`:{let e=await c.text();n=e?JSON.parse(e):{};break}case`stream`:return t.responseStyle===`data`?c.body:{data:c.body,...l}}return e===`json`&&(t.responseValidator&&await t.responseValidator(n),t.responseTransformer&&(n=await t.responseTransformer(n))),t.responseStyle===`data`?n:{data:n,...l}}let u=await c.text(),d;try{d=JSON.parse(u)}catch{}let p=d??u,m=p;for(let e of a.error.fns)e&&(m=await e(p,c,i,t));if(m||={},t.throwOnError)throw m;return t.responseStyle===`data`?void 0:{error:m,...l}},c=e=>t=>s({...t,method:e}),l=e=>async t=>{let{opts:r,url:i}=await o(t);return n({...r,body:r.body,headers:r.headers,method:e,onRequest:async(e,t)=>{let n=new Request(e,t);for(let e of a.request.fns)e&&(n=await e(n,r));return n},serializedBody:f(r),url:i})};return{buildUrl:y,connect:c(`CONNECT`),delete:c(`DELETE`),get:c(`GET`),getConfig:r,head:c(`HEAD`),interceptors:a,options:c(`OPTIONS`),patch:c(`PATCH`),post:c(`POST`),put:c(`PUT`),request:s,setConfig:i,sse:{connect:l(`CONNECT`),delete:l(`DELETE`),get:l(`GET`),head:l(`HEAD`),options:l(`OPTIONS`),patch:l(`PATCH`),post:l(`POST`),put:l(`PUT`),trace:l(`TRACE`)},trace:c(`TRACE`)}},D=Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`}),O=(e,t)=>{t||=new Map;for(let n of e)`in`in n?n.key&&t.set(n.key,{in:n.in,map:n.map}):`key`in n?t.set(n.key,{map:n.map}):n.args&&O(n.args,t);return t},k=e=>{for(let[t,n]of Object.entries(e))n&&typeof n==`object`&&!Object.keys(n).length&&delete e[t]},A=(e,t)=>{let n={body:{},headers:{},path:{},query:{}},r=O(t),i;for(let[a,o]of e.entries())if(t[a]&&(i=t[a]),i)if(`in`in i)if(i.key){let e=r.get(i.key),t=e.map||i.key;e.in&&(n[e.in][t]=o)}else n.body=o;else for(let[e,t]of Object.entries(o??{})){let a=r.get(e);if(a)if(a.in){let r=a.map||e;n[a.in][r]=t}else n[a.map]=t;else{let r=D.find(([t])=>e.startsWith(t));if(r){let[i,a]=r;n[a][e.slice(i.length)]=t}else if(`allowExtra`in i&&i.allowExtra){for(let[r,a]of Object.entries(i.allowExtra))if(a){n[r][e]=t;break}}}}return k(n),n},j=E(T({baseUrl:`http://localhost:4096`}));var M=class{client;constructor(e){this.client=e?.client??j}},N=class{defaultKey=`default`;instances=new Map;get(e){let t=this.instances.get(e??this.defaultKey);if(!t)throw Error(`No SDK client found. Create one with "new OpencodeClient()" to fix this error.`);return t}set(e,t){this.instances.set(t??this.defaultKey,e)}},P=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`}]}]);return(t?.client??this.client).delete({url:`/auth/{providerID}`,...t,...n})}set(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{key:`auth`,map:`body`}]}]);return(t?.client??this.client).put({url:`/auth/{providerID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},F=class extends M{log(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`service`},{in:`body`,key:`level`},{in:`body`,key:`message`},{in:`body`,key:`extra`}]}]);return(t?.client??this.client).post({url:`/log`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}agents(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/agent`,...t,...n})}skills(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/skill`,...t,...n})}},I=class extends M{moveSession(e,t){let n=A([e],[{args:[{in:`body`,key:`sessionID`},{in:`body`,key:`destination`},{in:`body`,key:`moveChanges`}]}]);return(t?.client??this.client).post({url:`/experimental/control-plane/move-session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},L=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/console`,...t,...n})}listOrgs(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/console/orgs`,...t,...n})}switchOrg(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`accountID`},{in:`body`,key:`orgID`}]}]);return(t?.client??this.client).post({url:`/experimental/console/switch`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},R=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`roots`},{in:`query`,key:`start`},{in:`query`,key:`cursor`},{in:`query`,key:`search`},{in:`query`,key:`limit`},{in:`query`,key:`archived`}]}]);return(t?.client??this.client).get({url:`/experimental/session`,...t,...n})}background(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/experimental/session/{sessionID}/background`,...t,...n})}},z=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/resource`,...t,...n})}},B=class extends M{generateName(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`context`}]}]);return(t?.client??this.client).post({url:`/experimental/project/{projectID}/copy/generate-name`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},V=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/workspace/adapter`,...t,...n})}},H=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/workspace`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`id`},{in:`body`,key:`type`},{in:`body`,key:`branch`},{in:`body`,key:`extra`}]}]);return(t?.client??this.client).post({url:`/experimental/workspace`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}syncList(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/experimental/workspace/sync-list`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/workspace/status`,...t,...n})}remove(e,t){let n=A([e],[{args:[{in:`path`,key:`id`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/experimental/workspace/{id}`,...t,...n})}warp(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`id`},{in:`body`,key:`sessionID`},{in:`body`,key:`copyChanges`}]}]);return(t?.client??this.client).post({url:`/experimental/workspace/warp`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_adapter;get adapter(){return this._adapter??=new V({client:this.client})}},U=class extends M{_controlPlane;get controlPlane(){return this._controlPlane??=new I({client:this.client})}_console;get console(){return this._console??=new L({client:this.client})}_session;get session(){return this._session??=new R({client:this.client})}_resource;get resource(){return this._resource??=new z({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new B({client:this.client})}_workspace;get workspace(){return this._workspace??=new H({client:this.client})}},W=class extends M{get(e){return(e?.client??this.client).get({url:`/global/config`,...e})}update(e,t){let n=A([e],[{args:[{key:`config`,map:`body`}]}]);return(t?.client??this.client).patch({url:`/global/config`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},G=class extends M{health(e){return(e?.client??this.client).get({url:`/global/health`,...e})}event(e){return(e?.client??this.client).sse.get({url:`/global/event`,...e})}dispose(e){return(e?.client??this.client).post({url:`/global/dispose`,...e})}upgrade(e,t){let n=A([e],[{args:[{in:`body`,key:`target`}]}]);return(t?.client??this.client).post({url:`/global/upgrade`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_config;get config(){return this._config??=new W({client:this.client})}},K=class extends M{subscribe(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).sse.get({url:`/event`,...t,...n})}},q=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/config`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`config`,map:`body`}]}]);return(t?.client??this.client).patch({url:`/config`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}providers(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/config/providers`,...t,...n})}},J=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`provider`},{in:`query`,key:`model`}]}]);return(t?.client??this.client).get({url:`/experimental/tool`,...t,...n})}ids(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/tool/ids`,...t,...n})}},Y=class extends M{remove(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`worktreeRemoveInput`,map:`body`}]}]);return(t?.client??this.client).delete({url:`/experimental/worktree`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/worktree`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`worktreeCreateInput`,map:`body`}]}]);return(t?.client??this.client).post({url:`/experimental/worktree`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}reset(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`worktreeResetInput`,map:`body`}]}]);return(t?.client??this.client).post({url:`/experimental/worktree/reset`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},X=class extends M{text(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`pattern`}]}]);return(t?.client??this.client).get({url:`/find`,...t,...n})}files(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`query`},{in:`query`,key:`dirs`},{in:`query`,key:`type`},{in:`query`,key:`limit`}]}]);return(t?.client??this.client).get({url:`/find/file`,...t,...n})}symbols(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`query`}]}]);return(t?.client??this.client).get({url:`/find/symbol`,...t,...n})}},Z=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`path`}]}]);return(t?.client??this.client).get({url:`/file`,...t,...n})}read(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`path`}]}]);return(t?.client??this.client).get({url:`/file/content`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/file/status`,...t,...n})}},Q=class extends M{dispose(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/instance/dispose`,...t,...n})}},ne=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/path`,...t,...n})}},re=class extends M{raw(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/vcs/diff/raw`,...t,...n})}},ie=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/vcs`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/vcs/status`,...t,...n})}diff(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`mode`},{in:`query`,key:`context`}]}]);return(t?.client??this.client).get({url:`/vcs/diff`,...t,...n})}apply(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`patch`}]}]);return(t?.client??this.client).post({url:`/vcs/apply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_diff;get diff2(){return this._diff??=new re({client:this.client})}},ae=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/command`,...t,...n})}},oe=class extends M{status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/lsp`,...t,...n})}},se=class extends M{status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/formatter`,...t,...n})}},ce=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/mcp/{name}/auth`,...t,...n})}start(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/auth`,...t,...n})}callback(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`code`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/auth/callback`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}authenticate(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/auth/authenticate`,...t,...n})}},le=class extends M{status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/mcp`,...t,...n})}add(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`name`},{in:`body`,key:`config`}]}]);return(t?.client??this.client).post({url:`/mcp`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}connect(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/connect`,...t,...n})}disconnect(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/disconnect`,...t,...n})}_auth;get auth(){return this._auth??=new ce({client:this.client})}},ue=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/project`,...t,...n})}current(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/project/current`,...t,...n})}initGit(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/project/git/init`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`name`},{in:`body`,key:`icon`},{in:`body`,key:`commands`}]}]);return(t?.client??this.client).patch({url:`/project/{projectID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}directories(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/project/{projectID}/directories`,...t,...n})}},de=class extends M{shells(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/pty/shells`,...t,...n})}list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/pty`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`command`},{in:`body`,key:`args`},{in:`body`,key:`cwd`},{in:`body`,key:`title`},{in:`body`,key:`env`}]}]);return(t?.client??this.client).post({url:`/pty`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}remove(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/pty/{ptyID}`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/pty/{ptyID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`title`},{in:`body`,key:`size`}]}]);return(t?.client??this.client).put({url:`/pty/{ptyID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}connectToken(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/pty/{ptyID}/connect-token`,...t,...n})}connect(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`cursor`},{in:`query`,key:`ticket`}]}]);return(t?.client??this.client).get({url:`/pty/{ptyID}/connect`,...t,...n})}},fe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/question`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`requestID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`answers`}]}]);return(t?.client??this.client).post({url:`/question/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}reject(e,t){let n=A([e],[{args:[{in:`path`,key:`requestID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/question/{requestID}/reject`,...t,...n})}},pe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/permission`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`requestID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`reply`},{in:`body`,key:`message`}]}]);return(t?.client??this.client).post({url:`/permission/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}respond(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`permissionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`response`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/permissions/{permissionID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},me=class extends M{authorize(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`method`},{in:`body`,key:`inputs`}]}]);return(t?.client??this.client).post({url:`/provider/{providerID}/oauth/authorize`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}callback(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`method`},{in:`body`,key:`code`}]}]);return(t?.client??this.client).post({url:`/provider/{providerID}/oauth/callback`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},he=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/provider`,...t,...n})}auth(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/provider/auth`,...t,...n})}_oauth;get oauth(){return this._oauth??=new me({client:this.client})}},ge=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`scope`},{in:`query`,key:`path`},{in:`query`,key:`roots`},{in:`query`,key:`start`},{in:`query`,key:`search`},{in:`query`,key:`limit`}]}]);return(t?.client??this.client).get({url:`/session`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`parentID`},{in:`body`,key:`title`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`metadata`},{in:`body`,key:`permission`},{in:`body`,key:`workspaceID`}]}]);return(t?.client??this.client).post({url:`/session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/status`,...t,...n})}delete(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`title`},{in:`body`,key:`metadata`},{in:`body`,key:`permission`},{in:`body`,key:`time`}]}]);return(t?.client??this.client).patch({url:`/session/{sessionID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}children(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/children`,...t,...n})}todo(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/todo`,...t,...n})}diff(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`messageID`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/diff`,...t,...n})}messages(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`limit`},{in:`query`,key:`before`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/message`,...t,...n})}prompt(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`model`},{in:`body`,key:`agent`},{in:`body`,key:`noReply`},{in:`body`,key:`tools`},{in:`body`,key:`format`},{in:`body`,key:`system`},{in:`body`,key:`variant`},{in:`body`,key:`parts`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/message`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}deleteMessage(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}/message/{messageID}`,...t,...n})}message(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/message/{messageID}`,...t,...n})}fork(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/fork`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}abort(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/abort`,...t,...n})}init(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`modelID`},{in:`body`,key:`providerID`},{in:`body`,key:`messageID`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/init`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}unshare(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}/share`,...t,...n})}share(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/share`,...t,...n})}summarize(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`providerID`},{in:`body`,key:`modelID`},{in:`body`,key:`auto`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/summarize`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}promptAsync(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`model`},{in:`body`,key:`agent`},{in:`body`,key:`noReply`},{in:`body`,key:`tools`},{in:`body`,key:`format`},{in:`body`,key:`system`},{in:`body`,key:`variant`},{in:`body`,key:`parts`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/prompt_async`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}command(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`arguments`},{in:`body`,key:`command`},{in:`body`,key:`variant`},{in:`body`,key:`parts`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/command`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}shell(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`command`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/shell`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}revert(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`partID`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/revert`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}unrevert(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/unrevert`,...t,...n})}},_e=class extends M{delete(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`path`,key:`partID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}/message/{messageID}/part/{partID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`path`,key:`partID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`part`,map:`body`}]}]);return(t?.client??this.client).patch({url:`/session/{sessionID}/message/{messageID}/part/{partID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},ve=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`body`,map:`body`}]}]);return(t?.client??this.client).post({url:`/sync/history`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},ye=class extends M{start(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/sync/start`,...t,...n})}replay(e,t){let n=A([e],[{args:[{in:`query`,key:`query_directory`,map:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`body_directory`,map:`directory`},{in:`body`,key:`events`}]}]);return(t?.client??this.client).post({url:`/sync/replay`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}steal(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/sync/steal`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_history;get history(){return this._history??=new ve({client:this.client})}},be=class extends M{next(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/tui/control/next`,...t,...n})}response(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`body`,map:`body`}]}]);return(t?.client??this.client).post({url:`/tui/control/response`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},xe=class extends M{appendPrompt(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`text`}]}]);return(t?.client??this.client).post({url:`/tui/append-prompt`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}openHelp(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-help`,...t,...n})}openSessions(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-sessions`,...t,...n})}openThemes(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-themes`,...t,...n})}openModels(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-models`,...t,...n})}submitPrompt(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/submit-prompt`,...t,...n})}clearPrompt(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/clear-prompt`,...t,...n})}executeCommand(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`command`}]}]);return(t?.client??this.client).post({url:`/tui/execute-command`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}showToast(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`title`},{in:`body`,key:`message`},{in:`body`,key:`variant`},{in:`body`,key:`duration`}]}]);return(t?.client??this.client).post({url:`/tui/show-toast`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}publish(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`body`,map:`body`}]}]);return(t?.client??this.client).post({url:`/tui/publish`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}selectSession(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/tui/select-session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_control;get control(){return this._control??=new be({client:this.client})}},Se=class extends M{get(e){return(e?.client??this.client).get({url:`/api/health`,...e})}},Ce=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/location`,...t,...n})}},we=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/agent`,...t,...n})}},Te=class extends M{list(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/permission`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`requestID`},{in:`body`,key:`reply`},{in:`body`,key:`message`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/permission/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Ee=class extends M{list(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/question`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`requestID`},{key:`questionV2Reply`,map:`body`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/question/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}reject(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`requestID`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/question/{requestID}/reject`,...t,...n})}},De=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`workspace`},{in:`query`,key:`limit`},{in:`query`,key:`order`},{in:`query`,key:`search`},{in:`query`,key:`directory`},{in:`query`,key:`project`},{in:`query`,key:`subpath`},{in:`query`,key:`cursor`}]}]);return(t?.client??this.client).get({url:`/api/session`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`body`,key:`id`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`location`}]}]);return(t?.client??this.client).post({url:`/api/session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}`,...t,...n})}prompt(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`body`,key:`id`},{in:`body`,key:`prompt`},{in:`body`,key:`delivery`},{in:`body`,key:`resume`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/prompt`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}compact(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/compact`,...t,...n})}wait(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/wait`,...t,...n})}context(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/context`,...t,...n})}messages(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`limit`},{in:`query`,key:`order`},{in:`query`,key:`cursor`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/message`,...t,...n})}_permission;get permission(){return this._permission??=new Te({client:this.client})}_question;get question(){return this._question??=new Ee({client:this.client})}},Oe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/model`,...t,...n})}},ke=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/provider`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/provider/{providerID}`,...t,...n})}},Ae=class extends M{key(e,t){let n=A([e],[{args:[{in:`path`,key:`integrationID`},{in:`query`,key:`location`},{in:`body`,key:`key`},{in:`body`,key:`label`}]}]);return(t?.client??this.client).post({url:`/api/integration/{integrationID}/connect/key`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}oauth(e,t){let n=A([e],[{args:[{in:`path`,key:`integrationID`},{in:`query`,key:`location`},{in:`body`,key:`methodID`},{in:`body`,key:`inputs`},{in:`body`,key:`label`}]}]);return(t?.client??this.client).post({url:`/api/integration/{integrationID}/connect/oauth`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},je=class extends M{cancel(e,t){let n=A([e],[{args:[{in:`path`,key:`attemptID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).delete({url:`/api/integration/attempt/{attemptID}`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`path`,key:`attemptID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/integration/attempt/{attemptID}`,...t,...n})}complete(e,t){let n=A([e],[{args:[{in:`path`,key:`attemptID`},{in:`query`,key:`location`},{in:`body`,key:`code`}]}]);return(t?.client??this.client).post({url:`/api/integration/attempt/{attemptID}/complete`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Me=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/integration`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`integrationID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/integration/{integrationID}`,...t,...n})}_connect;get connect(){return this._connect??=new Ae({client:this.client})}_attempt;get attempt(){return this._attempt??=new je({client:this.client})}},Ne=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`credentialID`}]}]);return(t?.client??this.client).delete({url:`/api/credential/{credentialID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`credentialID`},{in:`body`,key:`label`}]}]);return(t?.client??this.client).patch({url:`/api/credential/{credentialID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Pe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/permission/request`,...t,...n})}},$=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`projectID`}]}]);return(t?.client??this.client).get({url:`/api/permission/saved`,...t,...n})}remove(e,t){let n=A([e],[{args:[{in:`path`,key:`id`}]}]);return(t?.client??this.client).delete({url:`/api/permission/saved/{id}`,...t,...n})}},Fe=class extends M{_request;get request(){return this._request??=new Pe({client:this.client})}_saved;get saved(){return this._saved??=new $({client:this.client})}},Ie=class extends M{read(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/fs/read/*`,...t,...n})}list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`},{in:`query`,key:`path`}]}]);return(t?.client??this.client).get({url:`/api/fs/list`,...t,...n})}find(e,t){let n=A([e],[{args:[{in:`query`,key:`location`},{in:`query`,key:`query`},{in:`query`,key:`type`},{in:`query`,key:`limit`}]}]);return(t?.client??this.client).get({url:`/api/fs/find`,...t,...n})}},Le=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/command`,...t,...n})}},Re=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/skill`,...t,...n})}},ze=class extends M{subscribe(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).sse.get({url:`/api/event`,...t,...n})}},Be=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/question/request`,...t,...n})}},Ve=class extends M{_request;get request(){return this._request??=new Be({client:this.client})}},He=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/reference`,...t,...n})}},Ue=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`location`},{in:`body`,key:`directory`},{in:`body`,key:`force`}]}]);return(t?.client??this.client).delete({url:`/experimental/project/{projectID}/copy`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}create(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`location`},{in:`body`,key:`strategy`},{in:`body`,key:`directory`},{in:`body`,key:`name`}]}]);return(t?.client??this.client).post({url:`/experimental/project/{projectID}/copy`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}refresh(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).post({url:`/experimental/project/{projectID}/copy/refresh`,...t,...n})}},We=class extends M{_health;get health(){return this._health??=new Se({client:this.client})}_location;get location(){return this._location??=new Ce({client:this.client})}_agent;get agent(){return this._agent??=new we({client:this.client})}_session;get session(){return this._session??=new De({client:this.client})}_model;get model(){return this._model??=new Oe({client:this.client})}_provider;get provider(){return this._provider??=new ke({client:this.client})}_integration;get integration(){return this._integration??=new Me({client:this.client})}_credential;get credential(){return this._credential??=new Ne({client:this.client})}_permission;get permission(){return this._permission??=new Fe({client:this.client})}_fs;get fs(){return this._fs??=new Ie({client:this.client})}_command;get command(){return this._command??=new Le({client:this.client})}_skill;get skill(){return this._skill??=new Re({client:this.client})}_event;get event(){return this._event??=new ze({client:this.client})}_question;get question(){return this._question??=new Ve({client:this.client})}_reference;get reference(){return this._reference??=new He({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new Ue({client:this.client})}},Ge=class e extends M{static __registry=new N;constructor(t){super(t),e.__registry.set(this,t?.key)}_auth;get auth(){return this._auth??=new P({client:this.client})}_app;get app(){return this._app??=new F({client:this.client})}_experimental;get experimental(){return this._experimental??=new U({client:this.client})}_global;get global(){return this._global??=new G({client:this.client})}_event;get event(){return this._event??=new K({client:this.client})}_config;get config(){return this._config??=new q({client:this.client})}_tool;get tool(){return this._tool??=new J({client:this.client})}_worktree;get worktree(){return this._worktree??=new Y({client:this.client})}_find;get find(){return this._find??=new X({client:this.client})}_file;get file(){return this._file??=new Z({client:this.client})}_instance;get instance(){return this._instance??=new Q({client:this.client})}_path;get path(){return this._path??=new ne({client:this.client})}_vcs;get vcs(){return this._vcs??=new ie({client:this.client})}_command;get command(){return this._command??=new ae({client:this.client})}_lsp;get lsp(){return this._lsp??=new oe({client:this.client})}_formatter;get formatter(){return this._formatter??=new se({client:this.client})}_mcp;get mcp(){return this._mcp??=new le({client:this.client})}_project;get project(){return this._project??=new ue({client:this.client})}_pty;get pty(){return this._pty??=new de({client:this.client})}_question;get question(){return this._question??=new fe({client:this.client})}_permission;get permission(){return this._permission??=new pe({client:this.client})}_provider;get provider(){return this._provider??=new he({client:this.client})}_session;get session(){return this._session??=new ge({client:this.client})}_part;get part(){return this._part??=new _e({client:this.client})}_sync;get sync(){return this._sync??=new ye({client:this.client})}_tui;get tui(){return this._tui??=new xe({client:this.client})}_v2;get v2(){return this._v2??=new We({client:this.client})}};function Ke(e,t,n){if(e)return t&&(e===t||n&&e===n(t))?t:e}function qe(e,t){if(e.method!==`GET`&&e.method!==`HEAD`)return e;let n=new URL(e.url),r=!1;for(let[i,a]of[[`x-opencode-directory`,`directory`],[`x-opencode-workspace`,`workspace`]]){let o=Ke(e.headers.get(i),a===`directory`?t.directory:t.workspace,a===`directory`?encodeURIComponent:void 0);if(o){for(let e of n.pathname.startsWith(`/api/`)?[a,`location[${a}]`]:[a])n.searchParams.has(e)||n.searchParams.set(e,o);r=!0}}if(!r)return e;let i=new Request(n,e);return i.headers.delete(`x-opencode-directory`),i.headers.delete(`x-opencode-workspace`),i}function Je(t){if(!t?.fetch){let e=e=>(e.timeout=!1,fetch(e));t={...t,fetch:e}}t?.directory&&(t.headers={...t.headers,"x-opencode-directory":encodeURIComponent(t.directory)}),t?.experimental_workspaceID&&(t.headers={...t.headers,"x-opencode-workspace":t.experimental_workspaceID});let n=E(t);return n.interceptors.request.use(e=>qe(e,{directory:t?.directory,workspace:t?.experimental_workspaceID})),n.interceptors.response.use(e=>{if(e.headers.get(`content-type`)===`text/html`)throw Error(`Request is not supported by this version of OpenCode Server (Server responded with text/html)`);return e}),n.interceptors.error.use(e),new Ge({client:n})}t();export{Je as createOpencodeClient}; \ No newline at end of file diff --git a/dist/v2-cQAI1CIK.js b/dist/v2-cQAI1CIK.js new file mode 100644 index 0000000000..cda4634a21 --- /dev/null +++ b/dist/v2-cQAI1CIK.js @@ -0,0 +1,7 @@ +import"./rolldown-runtime-DaDcL9Zw.js";import{i as e,r as t}from"./process-BRCHWG3d.js";const n=({onRequest:e,onSseError:t,onSseEvent:n,responseTransformer:r,responseValidator:i,sseDefaultRetryDelay:a,sseMaxRetryAttempts:o,sseMaxRetryDelay:s,sseSleepFn:c,url:l,...u})=>{let d,f=c??(e=>new Promise(t=>setTimeout(t,e)));return{stream:async function*(){let c=a??3e3,p=0,m=u.signal??new AbortController().signal;for(;!m.aborted;){p++;let a=u.headers instanceof Headers?u.headers:new Headers(u.headers);d!==void 0&&a.set(`Last-Event-ID`,d);try{let t={redirect:`follow`,...u,body:u.serializedBody,headers:a,signal:m},o=new Request(l,t);e&&(o=await e(l,t));let s=await(u.fetch??globalThis.fetch)(o);if(!s.ok)throw Error(`SSE failed: ${s.status} ${s.statusText}`);if(!s.body)throw Error(`No body in SSE response`);let f=s.body.pipeThrough(new TextDecoderStream).getReader(),p=``,h=()=>{try{f.cancel()}catch{}};m.addEventListener(`abort`,h);try{for(;;){let{done:e,value:t}=await f.read();if(e)break;p+=t,p=p.replace(/\r\n/g,` +`).replace(/\r/g,` +`);let a=p.split(` + +`);p=a.pop()??``;for(let e of a){let t=e.split(` +`),a=[],o;for(let e of t)if(e.startsWith(`data:`))a.push(e.replace(/^data:\s*/,``));else if(e.startsWith(`event:`))o=e.replace(/^event:\s*/,``);else if(e.startsWith(`id:`))d=e.replace(/^id:\s*/,``);else if(e.startsWith(`retry:`)){let t=Number.parseInt(e.replace(/^retry:\s*/,``),10);Number.isNaN(t)||(c=t)}let s,l=!1;if(a.length){let e=a.join(` +`);try{s=JSON.parse(e),l=!0}catch{s=e}}l&&(i&&await i(s),r&&(s=await r(s))),n?.({data:s,event:o,id:d,retry:c}),a.length&&(yield s)}}}finally{m.removeEventListener(`abort`,h),f.releaseLock()}break}catch(e){if(t?.(e),o!==void 0&&p>=o)break;await f(Math.min(c*2**(p-1),s??3e4))}}}()}},r=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},i=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},a=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},o=({allowReserved:e,explode:t,name:n,style:a,value:o})=>{if(!t){let t=(e?o:o.map(e=>encodeURIComponent(e))).join(i(a));switch(a){case`label`:return`.${t}`;case`matrix`:return`;${n}=${t}`;case`simple`:return t;default:return`${n}=${t}`}}let c=r(a),l=o.map(t=>a===`label`||a===`simple`?e?t:encodeURIComponent(t):s({allowReserved:e,name:n,value:t})).join(c);return a===`label`||a===`matrix`?c+l:l},s=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},c=({allowReserved:e,explode:t,name:n,style:r,value:i,valueOnly:o})=>{if(i instanceof Date)return o?i.toISOString():`${n}=${i.toISOString()}`;if(r!==`deepObject`&&!t){let t=[];Object.entries(i).forEach(([n,r])=>{t=[...t,n,e?r:encodeURIComponent(r)]});let a=t.join(`,`);switch(r){case`form`:return`${n}=${a}`;case`label`:return`.${a}`;case`matrix`:return`;${n}=${a}`;default:return a}}let c=a(r),l=Object.entries(i).map(([t,i])=>s({allowReserved:e,name:r===`deepObject`?`${n}[${t}]`:t,value:i})).join(c);return r===`label`||r===`matrix`?c+l:l},l=/\{[^{}]+\}/g,u=({path:e,url:t})=>{let n=t,r=t.match(l);if(r)for(let t of r){let r=!1,i=t.substring(1,t.length-1),a=`simple`;i.endsWith(`*`)&&(r=!0,i=i.substring(0,i.length-1)),i.startsWith(`.`)?(i=i.substring(1),a=`label`):i.startsWith(`;`)&&(i=i.substring(1),a=`matrix`);let l=e[i];if(l==null)continue;if(Array.isArray(l)){n=n.replace(t,o({explode:r,name:i,style:a,value:l}));continue}if(typeof l==`object`){n=n.replace(t,c({explode:r,name:i,style:a,value:l,valueOnly:!0}));continue}if(a===`matrix`){n=n.replace(t,`;${s({name:i,value:l})}`);continue}let u=encodeURIComponent(a===`label`?`.${l}`:l);n=n.replace(t,u)}return n},d=({baseUrl:e,path:t,query:n,querySerializer:r,url:i})=>{let a=i.startsWith(`/`)?i:`/${i}`,o=(e??``)+a;t&&(o=u({path:t,url:o}));let s=n?r(n):``;return s.startsWith(`?`)&&(s=s.substring(1)),s&&(o+=`?${s}`),o};function f(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}const p=async(e,t)=>{let n=typeof t==`function`?await t(e):t;if(n)return e.scheme===`bearer`?`Bearer ${n}`:e.scheme===`basic`?`Basic ${btoa(n)}`:n},m={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},h=({parameters:e={},...t}={})=>n=>{let r=[];if(n&&typeof n==`object`)for(let i in n){let a=n[i];if(a==null)continue;let l=e[i]||t;if(Array.isArray(a)){let e=o({allowReserved:l.allowReserved,explode:!0,name:i,style:`form`,value:a,...l.array});e&&r.push(e)}else if(typeof a==`object`){let e=c({allowReserved:l.allowReserved,explode:!0,name:i,style:`deepObject`,value:a,...l.object});e&&r.push(e)}else{let e=s({allowReserved:l.allowReserved,name:i,value:a});e&&r.push(e)}}return r.join(`&`)},g=e=>{if(!e)return`stream`;let t=e.split(`;`)[0]?.trim();if(t){if(t.startsWith(`application/json`)||t.endsWith(`+json`))return`json`;if(t===`multipart/form-data`)return`formData`;if([`application/`,`audio/`,`image/`,`video/`].some(e=>t.startsWith(e)))return`blob`;if(t.startsWith(`text/`))return`text`}},_=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get(`Cookie`)?.includes(`${t}=`)):!1,v=async({security:e,...t})=>{for(let n of e){if(_(t,n.name))continue;let e=await p(n,t.auth);if(!e)continue;let r=n.name??`Authorization`;switch(n.in){case`query`:t.query||={},t.query[r]=e;break;case`cookie`:t.headers.append(`Cookie`,`${r}=${e}`);break;default:t.headers.set(r,e);break}}},y=e=>d({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==`function`?e.querySerializer:h(e.querySerializer),url:e.url}),b=(e,t)=>{let n={...e,...t};return n.baseUrl?.endsWith(`/`)&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=S(e.headers,t.headers),n},x=e=>{let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t},S=(...e)=>{let t=new Headers;for(let n of e){if(!n)continue;let e=n instanceof Headers?x(n):Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,typeof r==`object`?JSON.stringify(r):r)}return t};var C=class{fns=[];clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){let t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e==`number`?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){let n=this.getInterceptorIndex(e);return this.fns[n]?(this.fns[n]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}};const w=()=>({error:new C,request:new C,response:new C}),ee=h({allowReserved:!1,array:{explode:!0,style:`form`},object:{explode:!0,style:`deepObject`}}),te={"Content-Type":`application/json`},T=(e={})=>({...m,headers:te,parseAs:`auto`,querySerializer:ee,...e}),E=(e={})=>{let t=b(T(),e),r=()=>({...t}),i=e=>(t=b(t,e),r()),a=w(),o=async e=>{let n={...t,...e,fetch:e.fetch??t.fetch??globalThis.fetch,headers:S(t.headers,e.headers),serializedBody:void 0};return n.security&&await v({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody===``)&&n.headers.delete(`Content-Type`),{opts:n,url:y(n)}},s=async e=>{let{opts:t,url:n}=await o(e),r={redirect:`follow`,...t,body:f(t)},i=new Request(n,r);for(let e of a.request.fns)e&&(i=await e(i,t));let s=t.fetch,c;try{c=await s(i)}catch(e){let n=e;for(let r of a.error.fns)r&&(n=await r(e,void 0,i,t));if(n||={},t.throwOnError)throw n;return t.responseStyle===`data`?void 0:{error:n,request:i,response:void 0}}for(let e of a.response.fns)e&&(c=await e(c,i,t));let l={request:i,response:c};if(c.ok){let e=(t.parseAs===`auto`?g(c.headers.get(`Content-Type`)):t.parseAs)??`json`;if(c.status===204||c.headers.get(`Content-Length`)===`0`){let n;switch(e){case`arrayBuffer`:case`blob`:case`text`:n=await c[e]();break;case`formData`:n=new FormData;break;case`stream`:n=c.body;break;default:n={};break}return t.responseStyle===`data`?n:{data:n,...l}}let n;switch(e){case`arrayBuffer`:case`blob`:case`formData`:case`text`:n=await c[e]();break;case`json`:{let e=await c.text();n=e?JSON.parse(e):{};break}case`stream`:return t.responseStyle===`data`?c.body:{data:c.body,...l}}return e===`json`&&(t.responseValidator&&await t.responseValidator(n),t.responseTransformer&&(n=await t.responseTransformer(n))),t.responseStyle===`data`?n:{data:n,...l}}let u=await c.text(),d;try{d=JSON.parse(u)}catch{}let p=d??u,m=p;for(let e of a.error.fns)e&&(m=await e(p,c,i,t));if(m||={},t.throwOnError)throw m;return t.responseStyle===`data`?void 0:{error:m,...l}},c=e=>t=>s({...t,method:e}),l=e=>async t=>{let{opts:r,url:i}=await o(t);return n({...r,body:r.body,headers:r.headers,method:e,onRequest:async(e,t)=>{let n=new Request(e,t);for(let e of a.request.fns)e&&(n=await e(n,r));return n},serializedBody:f(r),url:i})};return{buildUrl:y,connect:c(`CONNECT`),delete:c(`DELETE`),get:c(`GET`),getConfig:r,head:c(`HEAD`),interceptors:a,options:c(`OPTIONS`),patch:c(`PATCH`),post:c(`POST`),put:c(`PUT`),request:s,setConfig:i,sse:{connect:l(`CONNECT`),delete:l(`DELETE`),get:l(`GET`),head:l(`HEAD`),options:l(`OPTIONS`),patch:l(`PATCH`),post:l(`POST`),put:l(`PUT`),trace:l(`TRACE`)},trace:c(`TRACE`)}},D=Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`}),O=(e,t)=>{t||=new Map;for(let n of e)`in`in n?n.key&&t.set(n.key,{in:n.in,map:n.map}):`key`in n?t.set(n.key,{map:n.map}):n.args&&O(n.args,t);return t},k=e=>{for(let[t,n]of Object.entries(e))n&&typeof n==`object`&&!Object.keys(n).length&&delete e[t]},A=(e,t)=>{let n={body:{},headers:{},path:{},query:{}},r=O(t),i;for(let[a,o]of e.entries())if(t[a]&&(i=t[a]),i)if(`in`in i)if(i.key){let e=r.get(i.key),t=e.map||i.key;e.in&&(n[e.in][t]=o)}else n.body=o;else for(let[e,t]of Object.entries(o??{})){let a=r.get(e);if(a)if(a.in){let r=a.map||e;n[a.in][r]=t}else n[a.map]=t;else{let r=D.find(([t])=>e.startsWith(t));if(r){let[i,a]=r;n[a][e.slice(i.length)]=t}else if(`allowExtra`in i&&i.allowExtra){for(let[r,a]of Object.entries(i.allowExtra))if(a){n[r][e]=t;break}}}}return k(n),n},j=E(T({baseUrl:`http://localhost:4096`}));var M=class{client;constructor(e){this.client=e?.client??j}},N=class{defaultKey=`default`;instances=new Map;get(e){let t=this.instances.get(e??this.defaultKey);if(!t)throw Error(`No SDK client found. Create one with "new OpencodeClient()" to fix this error.`);return t}set(e,t){this.instances.set(t??this.defaultKey,e)}},P=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`}]}]);return(t?.client??this.client).delete({url:`/auth/{providerID}`,...t,...n})}set(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{key:`auth`,map:`body`}]}]);return(t?.client??this.client).put({url:`/auth/{providerID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},F=class extends M{log(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`service`},{in:`body`,key:`level`},{in:`body`,key:`message`},{in:`body`,key:`extra`}]}]);return(t?.client??this.client).post({url:`/log`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}agents(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/agent`,...t,...n})}skills(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/skill`,...t,...n})}},I=class extends M{moveSession(e,t){let n=A([e],[{args:[{in:`body`,key:`sessionID`},{in:`body`,key:`destination`},{in:`body`,key:`moveChanges`}]}]);return(t?.client??this.client).post({url:`/experimental/control-plane/move-session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},L=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/capabilities`,...t,...n})}},R=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/console`,...t,...n})}listOrgs(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/console/orgs`,...t,...n})}switchOrg(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`accountID`},{in:`body`,key:`orgID`}]}]);return(t?.client??this.client).post({url:`/experimental/console/switch`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},z=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`roots`},{in:`query`,key:`start`},{in:`query`,key:`cursor`},{in:`query`,key:`search`},{in:`query`,key:`limit`},{in:`query`,key:`archived`}]}]);return(t?.client??this.client).get({url:`/experimental/session`,...t,...n})}background(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/experimental/session/{sessionID}/background`,...t,...n})}},B=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/resource`,...t,...n})}},V=class extends M{generateName(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`context`}]}]);return(t?.client??this.client).post({url:`/experimental/project/{projectID}/copy/generate-name`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},H=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/workspace/adapter`,...t,...n})}},U=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/workspace`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`id`},{in:`body`,key:`type`},{in:`body`,key:`branch`},{in:`body`,key:`extra`}]}]);return(t?.client??this.client).post({url:`/experimental/workspace`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}syncList(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/experimental/workspace/sync-list`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/workspace/status`,...t,...n})}remove(e,t){let n=A([e],[{args:[{in:`path`,key:`id`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/experimental/workspace/{id}`,...t,...n})}warp(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`id`},{in:`body`,key:`sessionID`},{in:`body`,key:`copyChanges`}]}]);return(t?.client??this.client).post({url:`/experimental/workspace/warp`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_adapter;get adapter(){return this._adapter??=new H({client:this.client})}},W=class extends M{_controlPlane;get controlPlane(){return this._controlPlane??=new I({client:this.client})}_capabilities;get capabilities(){return this._capabilities??=new L({client:this.client})}_console;get console(){return this._console??=new R({client:this.client})}_session;get session(){return this._session??=new z({client:this.client})}_resource;get resource(){return this._resource??=new B({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new V({client:this.client})}_workspace;get workspace(){return this._workspace??=new U({client:this.client})}},G=class extends M{get(e){return(e?.client??this.client).get({url:`/global/config`,...e})}update(e,t){let n=A([e],[{args:[{key:`config`,map:`body`}]}]);return(t?.client??this.client).patch({url:`/global/config`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},K=class extends M{health(e){return(e?.client??this.client).get({url:`/global/health`,...e})}event(e){return(e?.client??this.client).sse.get({url:`/global/event`,...e})}dispose(e){return(e?.client??this.client).post({url:`/global/dispose`,...e})}upgrade(e,t){let n=A([e],[{args:[{in:`body`,key:`target`}]}]);return(t?.client??this.client).post({url:`/global/upgrade`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_config;get config(){return this._config??=new G({client:this.client})}},q=class extends M{subscribe(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).sse.get({url:`/event`,...t,...n})}},J=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/config`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`config`,map:`body`}]}]);return(t?.client??this.client).patch({url:`/config`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}providers(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/config/providers`,...t,...n})}},Y=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`provider`},{in:`query`,key:`model`}]}]);return(t?.client??this.client).get({url:`/experimental/tool`,...t,...n})}ids(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/tool/ids`,...t,...n})}},X=class extends M{remove(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`worktreeRemoveInput`,map:`body`}]}]);return(t?.client??this.client).delete({url:`/experimental/worktree`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/experimental/worktree`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`worktreeCreateInput`,map:`body`}]}]);return(t?.client??this.client).post({url:`/experimental/worktree`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}reset(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`worktreeResetInput`,map:`body`}]}]);return(t?.client??this.client).post({url:`/experimental/worktree/reset`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Z=class extends M{text(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`pattern`}]}]);return(t?.client??this.client).get({url:`/find`,...t,...n})}files(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`query`},{in:`query`,key:`dirs`},{in:`query`,key:`type`},{in:`query`,key:`limit`}]}]);return(t?.client??this.client).get({url:`/find/file`,...t,...n})}symbols(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`query`}]}]);return(t?.client??this.client).get({url:`/find/symbol`,...t,...n})}},Q=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`path`}]}]);return(t?.client??this.client).get({url:`/file`,...t,...n})}read(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`path`}]}]);return(t?.client??this.client).get({url:`/file/content`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/file/status`,...t,...n})}},ne=class extends M{dispose(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/instance/dispose`,...t,...n})}},re=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/path`,...t,...n})}},ie=class extends M{raw(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/vcs/diff/raw`,...t,...n})}},ae=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/vcs`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/vcs/status`,...t,...n})}diff(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`mode`},{in:`query`,key:`context`}]}]);return(t?.client??this.client).get({url:`/vcs/diff`,...t,...n})}apply(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`patch`}]}]);return(t?.client??this.client).post({url:`/vcs/apply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_diff;get diff2(){return this._diff??=new ie({client:this.client})}},oe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/command`,...t,...n})}},se=class extends M{status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/lsp`,...t,...n})}},ce=class extends M{status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/formatter`,...t,...n})}},le=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/mcp/{name}/auth`,...t,...n})}start(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/auth`,...t,...n})}callback(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`code`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/auth/callback`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}authenticate(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/auth/authenticate`,...t,...n})}},ue=class extends M{status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/mcp`,...t,...n})}add(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`name`},{in:`body`,key:`config`}]}]);return(t?.client??this.client).post({url:`/mcp`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}connect(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/connect`,...t,...n})}disconnect(e,t){let n=A([e],[{args:[{in:`path`,key:`name`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/mcp/{name}/disconnect`,...t,...n})}_auth;get auth(){return this._auth??=new le({client:this.client})}},de=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/project`,...t,...n})}current(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/project/current`,...t,...n})}initGit(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/project/git/init`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`name`},{in:`body`,key:`icon`},{in:`body`,key:`commands`}]}]);return(t?.client??this.client).patch({url:`/project/{projectID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}directories(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/project/{projectID}/directories`,...t,...n})}},fe=class extends M{shells(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/pty/shells`,...t,...n})}list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/pty`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`command`},{in:`body`,key:`args`},{in:`body`,key:`cwd`},{in:`body`,key:`title`},{in:`body`,key:`env`}]}]);return(t?.client??this.client).post({url:`/pty`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}remove(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/pty/{ptyID}`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/pty/{ptyID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`title`},{in:`body`,key:`size`}]}]);return(t?.client??this.client).put({url:`/pty/{ptyID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}connectToken(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/pty/{ptyID}/connect-token`,...t,...n})}connect(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`cursor`},{in:`query`,key:`ticket`}]}]);return(t?.client??this.client).get({url:`/pty/{ptyID}/connect`,...t,...n})}},pe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/question`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`requestID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`answers`}]}]);return(t?.client??this.client).post({url:`/question/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}reject(e,t){let n=A([e],[{args:[{in:`path`,key:`requestID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/question/{requestID}/reject`,...t,...n})}},me=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/permission`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`requestID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`reply`},{in:`body`,key:`message`}]}]);return(t?.client??this.client).post({url:`/permission/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}respond(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`permissionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`response`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/permissions/{permissionID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},he=class extends M{authorize(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`method`},{in:`body`,key:`inputs`}]}]);return(t?.client??this.client).post({url:`/provider/{providerID}/oauth/authorize`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}callback(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`method`},{in:`body`,key:`code`}]}]);return(t?.client??this.client).post({url:`/provider/{providerID}/oauth/callback`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},ge=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/provider`,...t,...n})}auth(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/provider/auth`,...t,...n})}_oauth;get oauth(){return this._oauth??=new he({client:this.client})}},_e=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`scope`},{in:`query`,key:`path`},{in:`query`,key:`roots`},{in:`query`,key:`start`},{in:`query`,key:`search`},{in:`query`,key:`limit`}]}]);return(t?.client??this.client).get({url:`/session`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`parentID`},{in:`body`,key:`title`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`metadata`},{in:`body`,key:`permission`},{in:`body`,key:`workspaceID`}]}]);return(t?.client??this.client).post({url:`/session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}status(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/status`,...t,...n})}delete(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`title`},{in:`body`,key:`metadata`},{in:`body`,key:`permission`},{in:`body`,key:`time`}]}]);return(t?.client??this.client).patch({url:`/session/{sessionID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}children(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/children`,...t,...n})}todo(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/todo`,...t,...n})}diff(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`messageID`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/diff`,...t,...n})}messages(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`query`,key:`limit`},{in:`query`,key:`before`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/message`,...t,...n})}prompt(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`model`},{in:`body`,key:`agent`},{in:`body`,key:`noReply`},{in:`body`,key:`tools`},{in:`body`,key:`format`},{in:`body`,key:`system`},{in:`body`,key:`variant`},{in:`body`,key:`parts`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/message`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}deleteMessage(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}/message/{messageID}`,...t,...n})}message(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/session/{sessionID}/message/{messageID}`,...t,...n})}fork(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/fork`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}abort(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/abort`,...t,...n})}init(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`modelID`},{in:`body`,key:`providerID`},{in:`body`,key:`messageID`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/init`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}unshare(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}/share`,...t,...n})}share(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/share`,...t,...n})}summarize(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`providerID`},{in:`body`,key:`modelID`},{in:`body`,key:`auto`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/summarize`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}promptAsync(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`model`},{in:`body`,key:`agent`},{in:`body`,key:`noReply`},{in:`body`,key:`tools`},{in:`body`,key:`format`},{in:`body`,key:`system`},{in:`body`,key:`variant`},{in:`body`,key:`parts`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/prompt_async`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}command(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`arguments`},{in:`body`,key:`command`},{in:`body`,key:`variant`},{in:`body`,key:`parts`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/command`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}shell(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`command`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/shell`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}revert(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`messageID`},{in:`body`,key:`partID`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/revert`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}unrevert(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/session/{sessionID}/unrevert`,...t,...n})}},ve=class extends M{delete(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`path`,key:`partID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).delete({url:`/session/{sessionID}/message/{messageID}/part/{partID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`messageID`},{in:`path`,key:`partID`},{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`part`,map:`body`}]}]);return(t?.client??this.client).patch({url:`/session/{sessionID}/message/{messageID}/part/{partID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},ye=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`body`,map:`body`}]}]);return(t?.client??this.client).post({url:`/sync/history`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},be=class extends M{start(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/sync/start`,...t,...n})}replay(e,t){let n=A([e],[{args:[{in:`query`,key:`query_directory`,map:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`body_directory`,map:`directory`},{in:`body`,key:`events`}]}]);return(t?.client??this.client).post({url:`/sync/replay`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}steal(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/sync/steal`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_history;get history(){return this._history??=new ye({client:this.client})}},xe=class extends M{next(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).get({url:`/tui/control/next`,...t,...n})}response(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`body`,map:`body`}]}]);return(t?.client??this.client).post({url:`/tui/control/response`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Se=class extends M{appendPrompt(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`text`}]}]);return(t?.client??this.client).post({url:`/tui/append-prompt`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}openHelp(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-help`,...t,...n})}openSessions(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-sessions`,...t,...n})}openThemes(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-themes`,...t,...n})}openModels(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/open-models`,...t,...n})}submitPrompt(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/submit-prompt`,...t,...n})}clearPrompt(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`}]}]);return(t?.client??this.client).post({url:`/tui/clear-prompt`,...t,...n})}executeCommand(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`command`}]}]);return(t?.client??this.client).post({url:`/tui/execute-command`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}showToast(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`title`},{in:`body`,key:`message`},{in:`body`,key:`variant`},{in:`body`,key:`duration`}]}]);return(t?.client??this.client).post({url:`/tui/show-toast`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}publish(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{key:`body`,map:`body`}]}]);return(t?.client??this.client).post({url:`/tui/publish`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}selectSession(e,t){let n=A([e],[{args:[{in:`query`,key:`directory`},{in:`query`,key:`workspace`},{in:`body`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/tui/select-session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}_control;get control(){return this._control??=new xe({client:this.client})}},Ce=class extends M{get(e){return(e?.client??this.client).get({url:`/api/health`,...e})}},we=class extends M{get(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/location`,...t,...n})}},Te=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/agent`,...t,...n})}},Ee=class extends M{list(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/permission`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`requestID`},{in:`body`,key:`reply`},{in:`body`,key:`message`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/permission/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},De=class extends M{list(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/question`,...t,...n})}reply(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`requestID`},{key:`questionV2Reply`,map:`body`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/question/{requestID}/reply`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}reject(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`path`,key:`requestID`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/question/{requestID}/reject`,...t,...n})}},Oe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`workspace`},{in:`query`,key:`limit`},{in:`query`,key:`order`},{in:`query`,key:`search`},{in:`query`,key:`directory`},{in:`query`,key:`project`},{in:`query`,key:`subpath`},{in:`query`,key:`cursor`}]}]);return(t?.client??this.client).get({url:`/api/session`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`body`,key:`id`},{in:`body`,key:`agent`},{in:`body`,key:`model`},{in:`body`,key:`location`}]}]);return(t?.client??this.client).post({url:`/api/session`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}`,...t,...n})}prompt(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`body`,key:`id`},{in:`body`,key:`prompt`},{in:`body`,key:`delivery`},{in:`body`,key:`resume`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/prompt`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}compact(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/compact`,...t,...n})}wait(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).post({url:`/api/session/{sessionID}/wait`,...t,...n})}context(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/context`,...t,...n})}messages(e,t){let n=A([e],[{args:[{in:`path`,key:`sessionID`},{in:`query`,key:`limit`},{in:`query`,key:`order`},{in:`query`,key:`cursor`}]}]);return(t?.client??this.client).get({url:`/api/session/{sessionID}/message`,...t,...n})}_permission;get permission(){return this._permission??=new Ee({client:this.client})}_question;get question(){return this._question??=new De({client:this.client})}},ke=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/model`,...t,...n})}},Ae=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/provider`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`providerID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/provider/{providerID}`,...t,...n})}},je=class extends M{key(e,t){let n=A([e],[{args:[{in:`path`,key:`integrationID`},{in:`query`,key:`location`},{in:`body`,key:`key`},{in:`body`,key:`label`}]}]);return(t?.client??this.client).post({url:`/api/integration/{integrationID}/connect/key`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}oauth(e,t){let n=A([e],[{args:[{in:`path`,key:`integrationID`},{in:`query`,key:`location`},{in:`body`,key:`methodID`},{in:`body`,key:`inputs`},{in:`body`,key:`label`}]}]);return(t?.client??this.client).post({url:`/api/integration/{integrationID}/connect/oauth`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Me=class extends M{cancel(e,t){let n=A([e],[{args:[{in:`path`,key:`attemptID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).delete({url:`/api/integration/attempt/{attemptID}`,...t,...n})}status(e,t){let n=A([e],[{args:[{in:`path`,key:`attemptID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/integration/attempt/{attemptID}`,...t,...n})}complete(e,t){let n=A([e],[{args:[{in:`path`,key:`attemptID`},{in:`query`,key:`location`},{in:`body`,key:`code`}]}]);return(t?.client??this.client).post({url:`/api/integration/attempt/{attemptID}/complete`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Ne=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/integration`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`integrationID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/integration/{integrationID}`,...t,...n})}_connect;get connect(){return this._connect??=new je({client:this.client})}_attempt;get attempt(){return this._attempt??=new Me({client:this.client})}},Pe=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`credentialID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).delete({url:`/api/credential/{credentialID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`credentialID`},{in:`query`,key:`location`},{in:`body`,key:`label`}]}]);return(t?.client??this.client).patch({url:`/api/credential/{credentialID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}},Fe=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/permission/request`,...t,...n})}},Ie=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`projectID`}]}]);return(t?.client??this.client).get({url:`/api/permission/saved`,...t,...n})}remove(e,t){let n=A([e],[{args:[{in:`path`,key:`id`}]}]);return(t?.client??this.client).delete({url:`/api/permission/saved/{id}`,...t,...n})}},Le=class extends M{_request;get request(){return this._request??=new Fe({client:this.client})}_saved;get saved(){return this._saved??=new Ie({client:this.client})}},Re=class extends M{read(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/fs/read/*`,...t,...n})}list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`},{in:`query`,key:`path`}]}]);return(t?.client??this.client).get({url:`/api/fs/list`,...t,...n})}find(e,t){let n=A([e],[{args:[{in:`query`,key:`location`},{in:`query`,key:`query`},{in:`query`,key:`type`},{in:`query`,key:`limit`}]}]);return(t?.client??this.client).get({url:`/api/fs/find`,...t,...n})}},ze=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/command`,...t,...n})}},Be=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/skill`,...t,...n})}},Ve=class extends M{subscribe(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).sse.get({url:`/api/event`,...t,...n})}},$=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/pty`,...t,...n})}create(e,t){let n=A([e],[{args:[{in:`query`,key:`location`},{in:`body`,key:`command`},{in:`body`,key:`args`},{in:`body`,key:`cwd`},{in:`body`,key:`title`},{in:`body`,key:`env`}]}]);return(t?.client??this.client).post({url:`/api/pty`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}remove(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).delete({url:`/api/pty/{ptyID}`,...t,...n})}get(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/pty/{ptyID}`,...t,...n})}update(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`location`},{in:`body`,key:`title`},{in:`body`,key:`size`}]}]);return(t?.client??this.client).put({url:`/api/pty/{ptyID}`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}connectToken(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).post({url:`/api/pty/{ptyID}/connect-token`,...t,...n})}connect(e,t){let n=A([e],[{args:[{in:`path`,key:`ptyID`},{in:`query`,key:`location[directory]`},{in:`query`,key:`location[workspace]`},{in:`query`,key:`cursor`},{in:`query`,key:`ticket`}]}]);return(t?.client??this.client).get({url:`/api/pty/{ptyID}/connect`,...t,...n})}},He=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/question/request`,...t,...n})}},Ue=class extends M{_request;get request(){return this._request??=new He({client:this.client})}},We=class extends M{list(e,t){let n=A([e],[{args:[{in:`query`,key:`location`}]}]);return(t?.client??this.client).get({url:`/api/reference`,...t,...n})}},Ge=class extends M{remove(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`location`},{in:`body`,key:`directory`},{in:`body`,key:`force`}]}]);return(t?.client??this.client).delete({url:`/experimental/project/{projectID}/copy`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}create(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`location`},{in:`body`,key:`strategy`},{in:`body`,key:`directory`},{in:`body`,key:`name`}]}]);return(t?.client??this.client).post({url:`/experimental/project/{projectID}/copy`,...t,...n,headers:{"Content-Type":`application/json`,...t?.headers,...n.headers}})}refresh(e,t){let n=A([e],[{args:[{in:`path`,key:`projectID`},{in:`query`,key:`location`}]}]);return(t?.client??this.client).post({url:`/experimental/project/{projectID}/copy/refresh`,...t,...n})}},Ke=class extends M{_health;get health(){return this._health??=new Ce({client:this.client})}_location;get location(){return this._location??=new we({client:this.client})}_agent;get agent(){return this._agent??=new Te({client:this.client})}_session;get session(){return this._session??=new Oe({client:this.client})}_model;get model(){return this._model??=new ke({client:this.client})}_provider;get provider(){return this._provider??=new Ae({client:this.client})}_integration;get integration(){return this._integration??=new Ne({client:this.client})}_credential;get credential(){return this._credential??=new Pe({client:this.client})}_permission;get permission(){return this._permission??=new Le({client:this.client})}_fs;get fs(){return this._fs??=new Re({client:this.client})}_command;get command(){return this._command??=new ze({client:this.client})}_skill;get skill(){return this._skill??=new Be({client:this.client})}_event;get event(){return this._event??=new Ve({client:this.client})}_pty;get pty(){return this._pty??=new $({client:this.client})}_question;get question(){return this._question??=new Ue({client:this.client})}_reference;get reference(){return this._reference??=new We({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new Ge({client:this.client})}},qe=class e extends M{static __registry=new N;constructor(t){super(t),e.__registry.set(this,t?.key)}_auth;get auth(){return this._auth??=new P({client:this.client})}_app;get app(){return this._app??=new F({client:this.client})}_experimental;get experimental(){return this._experimental??=new W({client:this.client})}_global;get global(){return this._global??=new K({client:this.client})}_event;get event(){return this._event??=new q({client:this.client})}_config;get config(){return this._config??=new J({client:this.client})}_tool;get tool(){return this._tool??=new Y({client:this.client})}_worktree;get worktree(){return this._worktree??=new X({client:this.client})}_find;get find(){return this._find??=new Z({client:this.client})}_file;get file(){return this._file??=new Q({client:this.client})}_instance;get instance(){return this._instance??=new ne({client:this.client})}_path;get path(){return this._path??=new re({client:this.client})}_vcs;get vcs(){return this._vcs??=new ae({client:this.client})}_command;get command(){return this._command??=new oe({client:this.client})}_lsp;get lsp(){return this._lsp??=new se({client:this.client})}_formatter;get formatter(){return this._formatter??=new ce({client:this.client})}_mcp;get mcp(){return this._mcp??=new ue({client:this.client})}_project;get project(){return this._project??=new de({client:this.client})}_pty;get pty(){return this._pty??=new fe({client:this.client})}_question;get question(){return this._question??=new pe({client:this.client})}_permission;get permission(){return this._permission??=new me({client:this.client})}_provider;get provider(){return this._provider??=new ge({client:this.client})}_session;get session(){return this._session??=new _e({client:this.client})}_part;get part(){return this._part??=new ve({client:this.client})}_sync;get sync(){return this._sync??=new be({client:this.client})}_tui;get tui(){return this._tui??=new Se({client:this.client})}_v2;get v2(){return this._v2??=new Ke({client:this.client})}};function Je(e,t,n){if(e)return t&&(e===t||n&&e===n(t))?t:e}function Ye(e,t){if(e.method!==`GET`&&e.method!==`HEAD`)return e;let n=new URL(e.url),r=!1;for(let[i,a]of[[`x-opencode-directory`,`directory`],[`x-opencode-workspace`,`workspace`]]){let o=Je(e.headers.get(i),a===`directory`?t.directory:t.workspace,a===`directory`?encodeURIComponent:void 0);if(o){for(let e of n.pathname.startsWith(`/api/`)?[a,`location[${a}]`]:[a])n.searchParams.has(e)||n.searchParams.set(e,o);r=!0}}if(!r)return e;let i=new Request(n,e);return i.headers.delete(`x-opencode-directory`),i.headers.delete(`x-opencode-workspace`),i}function Xe(t){if(!t?.fetch){let e=e=>(e.timeout=!1,fetch(e));t={...t,fetch:e}}t?.directory&&(t.headers={...t.headers,"x-opencode-directory":encodeURIComponent(t.directory)}),t?.experimental_workspaceID&&(t.headers={...t.headers,"x-opencode-workspace":t.experimental_workspaceID});let n=E(t);return n.interceptors.request.use(e=>Ye(e,{directory:t?.directory,workspace:t?.experimental_workspaceID})),n.interceptors.response.use(e=>{if(e.headers.get(`content-type`)===`text/html`)throw Error(`Request is not supported by this version of OpenCode Server (Server responded with text/html)`);return e}),n.interceptors.error.use(e),new qe({client:n})}t();export{Xe as createOpencodeClient}; \ No newline at end of file diff --git a/docs/plans/2026-06-21-001-refactor-third-party-notices-sbom-plan.md b/docs/plans/2026-06-21-001-refactor-third-party-notices-sbom-plan.md new file mode 100644 index 0000000000..ea9a7cf1d5 --- /dev/null +++ b/docs/plans/2026-06-21-001-refactor-third-party-notices-sbom-plan.md @@ -0,0 +1,190 @@ +--- +title: 'refactor: deterministic committed third-party notices + CI SBOM' +type: refactor +status: active +date: 2026-06-21 +--- + +# Deterministic committed third-party notices + CI SBOM + +## Overview + +The action's bundled `dist/` is committed and is a redistribution of ~214 production dependencies (MIT/BSD/Apache-heavy). The build emits `dist/licenses.txt` (an 800KB concatenation of their license texts) on every build, but the file sits in half-tracked limbo: the release pipeline commits it, Renovate dep-bump commits delete it, CI's dist-diff check excludes it for `renovate/*` branches, and `.gitignore` doesn't cover it — so it perpetually shows as untracked. + +This makes the attribution notice deterministic and intentionally tracked, removes the CI carve-out that let it rot, and adds a machine-readable SBOM as a CI artifact. The boring invariant: if the bundle is committed, the attribution matching that bundle is committed too. + +## Problem Frame + +The committed `dist/` legally requires preserving the bundled dependencies' license/copyright notices (MIT/BSD/Apache all require notice preservation on redistribution; an SBOM is not a substitute, and a release-only artifact is too weak because the Action is consumed by tag/SHA). The current file is neither reliably committed nor ignored. + +Root cause of the oscillation (verified empirically 2026-06-21): the generated file is **already deterministic** — two consecutive clean builds produce byte-identical output, and a benign per-dependency warning (`Unable to determine license content for buffers@0.1.1`, a transitive dep of `@actions/artifact`) does not stop the file from being written. The file's current state is simply `??` untracked — main's HEAD genuinely lacks it, and it isn't gitignored. So the real defect is **process, not non-determinism**: the file is never landed in the tracked tree, the `renovate/*` CI carve-out (`ci.yaml:100`) exempts it from the diff gate, and the generator's fail-soft `catch` early-return (when `getProjectLicenses` *totally* fails) could in principle write nothing. Renovate's `ignorePaths: ['dist/**']` is only a *scan* exclusion; `postUpgradeTasks` already rebuilds + commits dist. The fix: commit the deterministic file under a clear name, remove the carve-out, and make the *total-failure* path fail-closed (without failing on benign per-dep gaps). + +## Requirements Trace + +- R1. The bundled third-party attribution notice is generated deterministically (stable order, normalized EOL, no timestamps/absolute paths) so identical inputs produce an identical file. +- R2. The generator never silently emits an empty/partial notice file — a generation failure fails the build rather than writing nothing. +- R3. The notice file is intentionally tracked and verified for **all** branches (the `renovate/*` dist-diff carve-out is removed), so every dependency change regenerates and commits matching notices. +- R4. A machine-readable SBOM (CycloneDX JSON) of production dependencies is produced as a CI artifact. +- R5. The notice content remains legally sufficient — actual license text preserved, attribution complete (no under-inclusion). + +## Scope Boundaries + +- Not gitignoring the notice file (rejected: weakens compliance for tag/SHA consumers; contradicts the committed-dist model). +- Not changing the bundle (`dist/main.js`/`post.js`) itself. +- Not changing Renovate's `ignorePaths` (it's a scan exclusion, not the cause — `postUpgradeTasks` already rebuilds + commits dist). + +### Deferred to Separate Tasks + +- Wiring GitHub's native SPDX "Export SBOM" / dependency-graph export as a secondary audit view (manual feature, not required for this fix). +- Committing the SBOM into the repo (start with a CI artifact; revisit only if a consumer needs SBOM-in-repo). +- `dependency-review-action` license-policy gating (separate policy decision). + +## Context & Research + +### Relevant Code and Patterns + +- `tsdown.config.ts` — `licenseCollectorPlugin()` (the generator: `getProjectLicenses` + `pnpm licenses list --json --prod`, sorts by name, normalizes `\r\n`→`\n`, dedups to highest version, writes `dist/licenses.txt`). The fail-soft early-return is the bug. +- `.github/workflows/ci.yaml` (build job, ~96-106) — the dist-diff check with the `renovate/*` carve-out at line ~100 (`DIFF_TARGETS="dist/ ':!dist/licenses.txt'"`). +- `.github/workflows/auto-release.yaml` (~60) — runs `pnpm build`, so it regenerates the notice under any new name automatically. +- `.github/renovate.json5` — `postUpgradeTasks: {commands: ['pnpm install','pnpm run build','pnpm run fix'], executionMode: 'branch'}` already rebuilds + commits dist on dep PRs; `ignorePaths: ['dist/**']` is scan-only. + +### Institutional Learnings + +- Memory: `dist/` is committed and must stay in sync; CI fails on `git diff dist/` after build. This plan brings the notice file under that same invariant instead of exempting it. + +### External References + +- pnpm 11.7 native `pnpm sbom --sbom-format cyclonedx --prod` (CycloneDX 1.7 JSON; workspace/lockfile-aware; no new dependency). +- Oracle review + librarian research (this session): committed-bundle Actions should ship a committed, deterministic `THIRD_PARTY_NOTICES`; SBOM is a CI artifact, secondary to the notice. + +## Key Technical Decisions + +- **Rename `dist/licenses.txt` → `dist/THIRD_PARTY_NOTICES.txt`** — names the file for what it legally is (attribution), and the rename naturally retires the stale-path confusion. +- **Make generation fail-closed** — replace the fail-soft early-return: if license collection genuinely fails, the build fails (so a broken generation can never produce an empty/deleted notice that thrashes the diff). Preserve a deliberate, documented exception only if there's a real reason a clean environment can't collect licenses; default is fail the build. +- **Remove the CI `renovate/*` carve-out** — once generation is deterministic + fail-closed, Renovate's `postUpgradeTasks` rebuild produces a stable notice that passes the diff check like the rest of `dist/`; no exception needed. +- **Keep the highest-version dedup, but verify it's attribution-safe** — the current generator keeps only the highest resolved version's license `content` per package. This is acceptable for attribution when the license text is the same across the resolved versions (true for the vast majority). Document the assumption; if a package resolves to multiple versions with *different* license text, that's a known edge the generator should not silently drop — note it, don't expand scope to solve it unless found. +- **SBOM via native `pnpm sbom` as a CI artifact** — CycloneDX JSON, generated in CI and uploaded; no new dependency, no commit churn. + +## Open Questions + +### Resolved During Planning + +- Commit vs gitignore the notice? → Commit (Oracle + research: committed bundle ⇒ committed attribution). +- Does removing the carve-out break Renovate PRs? → No, once the generator is deterministic + fail-closed; `postUpgradeTasks` already rebuilds and commits dist. +- New SBOM dependency needed? → No; `pnpm sbom` is native at pnpm 11.7. + +### Deferred to Implementation + +- The exact failure surface of `getProjectLicenses` in CI vs local — confirm during implementation whether it needs an install precondition (e.g. `pnpm licenses` data present) so fail-closed doesn't false-fail a legitimate build. If a clean `pnpm build` in CI can intermittently fail collection, the fix must make collection *reliable*, not just loud. + +## Implementation Units + +- [x] **Unit 1: Deterministic, fail-closed notice generation + rename** + +**Goal:** The build emits `dist/THIRD_PARTY_NOTICES.txt` deterministically and fails the build on a genuine generation failure instead of silently writing nothing. + +**Requirements:** R1, R2, R5 + +**Dependencies:** None + +**Files:** +- Modify: `tsdown.config.ts` (the `licenseCollectorPlugin`: rename the output path + log text; replace the fail-soft early-return with fail-closed behavior; confirm stable sort + EOL normalization + no timestamps/absolute paths in output) +- Test: `tsdown.config.test.ts` (create if absent) — or, if the plugin isn't unit-testable in isolation, verify via a deterministic-output assertion (build twice, diff) + +**Approach:** +- Rename `dist/licenses.txt` → `dist/THIRD_PARTY_NOTICES.txt` (2 occurrences: the `writeFile` target and the warning log text). +- **Determinism is already verified** (two clean builds → byte-identical; explicit sort + EOL normalization in place). No determinism work needed beyond confirming no regression. +- Make the **total-failure** path fail-closed: replace the `catch { console.warn(...); return }` early-return so a genuine `getProjectLicenses` failure throws and fails the build (never writes nothing). **Do NOT fail on benign per-dependency gaps** — e.g. `buffers@0.1.1` (transitive via `@actions/artifact`) legitimately has no resolvable license text and `generate-license-file` handles it while still writing the file. Fail-closed applies to total collection failure only. +- Keep the highest-version dedup; add a brief comment documenting the attribution-safety assumption (same license text across resolved versions). + +**Patterns to follow:** the existing `defaultVersionInvariantPlugin` in the same file (a build-time invariant that fails the build) — mirror its fail-the-build posture. + +**Test scenarios:** +- Happy path: a build produces `dist/THIRD_PARTY_NOTICES.txt` containing the bundled deps' names@version + license text, stably ordered. +- Edge case: two consecutive builds on an unchanged dependency tree produce byte-identical files (determinism). +- Error path: a forced collection failure fails the build (no silent empty/partial write). + +**Verification:** `pnpm build` produces `dist/THIRD_PARTY_NOTICES.txt` (not `licenses.txt`); rebuilding without changes yields no diff; a simulated collection failure exits non-zero. + +- [x] **Unit 2: Remove the CI dist-diff carve-out** + +**Goal:** CI verifies all of `dist/` (including the notice) on every branch, with no `renovate/*` exception. + +**Requirements:** R3 + +**Dependencies:** Unit 1 (the diff check only passes for Renovate PRs once generation is deterministic + fail-closed) + +**Files:** +- Modify: `.github/workflows/ci.yaml` (the "Compare the expected and actual dist/ directories" step: drop the `renovate/*` branch that sets `DIFF_TARGETS="dist/ ':!dist/licenses.txt'"`; `DIFF_TARGETS="dist/"` unconditionally) + +**Approach:** +- Remove the conditional that excludes the notice for `renovate/*`. The `eval`/`git diff` machinery stays; only the carve-out branch is deleted. Now Renovate dep PRs (whose `postUpgradeTasks` already runs `pnpm build`) must commit the regenerated notice, and CI verifies it like any other dist file. + +**Test scenarios:** Test expectation: none — CI workflow change; validated by `actionlint` and by a real Renovate/dep PR rebuilding dist cleanly. (No unit-test surface.) + +**Verification:** `actionlint` clean; the diff step has a single unconditional `DIFF_TARGETS="dist/"`; no remaining reference to `licenses.txt` anywhere in CI. + +- [x] **Unit 3: CI CycloneDX SBOM artifact** + +**Goal:** Each CI run (and/or release) produces a CycloneDX JSON SBOM of production dependencies, uploaded as an artifact. + +**Requirements:** R4 + +**Dependencies:** None (independent of Units 1-2) + +**Files:** +- Modify: `.github/workflows/ci.yaml` (add a step — likely in the build job — running `pnpm sbom --sbom-format cyclonedx --prod` and `actions/upload-artifact` for the output) + +**Approach:** +- `pnpm sbom --sbom-format cyclonedx --prod` writes valid CycloneDX 1.7 JSON to **stdout** (verified) — redirect to a file (e.g. `sbom.cdx.json`) and upload via the pinned `actions/upload-artifact`. Use `--prod` so the SBOM reflects shipped deps. Do not commit the SBOM (artifact only, per scope). Note: the output carries a `metadata.timestamp` — fine for an uncommitted artifact. + +**Test scenarios:** Test expectation: none — CI artifact generation; validated by `actionlint` and the artifact appearing on a CI run. (No unit-test surface.) + +**Verification:** `actionlint` clean; a CI run uploads a non-empty CycloneDX JSON artifact that parses as valid JSON with a `bomFormat: "CycloneDX"` field. + +- [x] **Unit 4: Commit the renamed notice + docs** + +**Goal:** The repo's tracked state reflects the new file, and the build/license behavior is documented. + +**Requirements:** R3, R5 + +**Dependencies:** Units 1-3 + +**Files:** +- Create/commit: `dist/THIRD_PARTY_NOTICES.txt` (the freshly generated, tracked file) +- Delete: `dist/licenses.txt` (if present in the tree at merge time) +- Modify: `AGENTS.md` and/or build docs — a line noting `dist/THIRD_PARTY_NOTICES.txt` is generated + committed attribution, and the SBOM is a CI artifact. Update any RULES/AGENTS reference that mentions `licenses.txt`. + +**Approach:** +- After Units 1-3, run `pnpm build`, stage the new `dist/THIRD_PARTY_NOTICES.txt`, ensure the old `dist/licenses.txt` is removed from the tree, and document the new posture. This unit is the "land it tracked" step that ends the oscillation. + +**Test scenarios:** Test expectation: none — generated artifact + docs. + +**Verification:** `git ls-files dist/` includes `THIRD_PARTY_NOTICES.txt` and not `licenses.txt`; a clean `pnpm build` leaves the tree diff-free; docs mention the new file. + +## System-Wide Impact + +- **Interaction graph:** the tsdown build plugin (local + CI + release + Renovate `postUpgradeTasks` all run `pnpm build`), the CI dist-diff gate, and Renovate's dep-PR commits. Making generation deterministic + fail-closed is what lets the CI gate apply uniformly across all of these. +- **Error propagation:** generation failure now fails the build (fail-closed) instead of silently writing nothing — the deferred question guards against this false-failing a legitimate CI build. +- **State lifecycle risks:** the rename must land atomically with the carve-out removal — if the carve-out is removed before the file is deterministic, Renovate PRs would fail the diff check. Sequence: Unit 1 (determinism) → Unit 2 (remove carve-out) → Unit 4 (commit tracked file). +- **Unchanged invariants:** the bundle (`dist/main.js`/`post.js`), Renovate `ignorePaths`, and the rest of the dist-diff machinery are unchanged. + +## Risks & Dependencies + +| Risk | Mitigation | +|------|------------| +| Fail-closed generation false-fails a legitimate CI/Renovate build (the original reason for the fail-soft path) | Resolve the deferred question first: confirm whether a clean `pnpm build` reliably collects licenses in CI; make collection *reliable* before making failure loud. If there's a genuine environment dependency, ensure it's satisfied (install state) rather than reintroducing silent fallback. | +| Removing the carve-out makes the next Renovate dep PR fail the dist-diff | Land Unit 1 (determinism) before/with Unit 2; verify on a real dep PR (or a simulated `renovate/*` branch build) that the rebuilt notice is byte-stable. | +| Highest-version dedup under-includes attribution when a package resolves to multiple versions with different license text | Document the assumption; if found in practice, emit per-resolved-version rather than collapsing (do not pre-build this unless observed). | +| `pnpm sbom` output flag/path differs from assumed | Confirm the exact invocation during Unit 3 implementation; it's a CI-only artifact step with no downstream coupling. | + +## Documentation / Operational Notes + +- Update `AGENTS.md` (and any RULES reference) to name `dist/THIRD_PARTY_NOTICES.txt` as the generated, committed attribution file and note the CycloneDX SBOM CI artifact. +- No runtime/deploy impact; this is build + CI + repo-hygiene only. + +## Sources & References + +- Related code: `tsdown.config.ts` (`licenseCollectorPlugin`), `.github/workflows/ci.yaml` (dist-diff), `.github/renovate.json5` (`postUpgradeTasks`), `.github/workflows/auto-release.yaml`. +- Research: Oracle strategic review + librarian SBOM/license research (this session). +- Trigger: maintainer question — "Why is dist/licenses.txt untracked and what's the modern way of tracking SBOM/licenses?" diff --git a/docs/plans/2026-06-21-002-feat-harness-release-carry-fingerprint-plan.md b/docs/plans/2026-06-21-002-feat-harness-release-carry-fingerprint-plan.md new file mode 100644 index 0000000000..c119148b5e --- /dev/null +++ b/docs/plans/2026-06-21-002-feat-harness-release-carry-fingerprint-plan.md @@ -0,0 +1,150 @@ +--- +title: 'feat: harness release carry fingerprint, notes, and non-latest' +type: feat +status: active +date: 2026-06-21 +--- + +# Harness release carry fingerprint, notes, and non-latest + +## Overview + +Three improvements to the `@fro.bot/harness` release pipeline so a harness build's identity, provenance, and release ranking are correct: + +1. **Squash all carried refs into one integration commit** so the integration SHA is a true fingerprint — its diff against the base tag is the combined diff of every carry, viewable as a single diff. Today the LLM merge produces N `--no-ff` merge commits and the SHA is just the *last* merge. +2. **List the carried PRs in the harness GitHub Release notes** (the same set `harness patches` reports), so a release at `1.17.6+harness.` documents exactly which upstream PRs it carries. +3. **Mark harness releases `--latest=false`** so a harness release never takes GitHub's "latest" pointer from the product `agent` releases. + +## Problem Frame + +The harness release flow: `prepare-integrate` renders a merge prompt → `integrate` (Fro Bot LLM merge) clones the base tag, `git merge --no-ff` each carry ref in order, pushes `refs/harness-integrate/` → `build` fetches that ref and resolves `integration_commit = HEAD` → `release-binaries` creates the GitHub Release tagged `+harness.`. + +- The integration commit is the **last** `--no-ff` merge, so "view the carries as one diff" isn't possible and the SHA fingerprint understates what's carried. +- The release notes are a fixed one-liner (`Harness build of OpenCode (integration )`) with no carry list. +- `gh release create` does not pass `--latest`, so GitHub's auto-latest could rank a harness tag (`1.17.6+...`) above a product tag (`v0.74.0`). Today `/releases/latest` resolves to the product release, but that is incidental, not enforced. + +## Requirements Trace + +- R1. The pushed integration ref is a **single commit** on top of the base tag whose tree equals all carries merged in order (conflicts resolved), so `git diff ..` is the combined carry diff. +- R2. The single integration commit's message names the carried refs. +- R3. The harness GitHub Release notes list the carried PRs (same labels as `harness patches` / the `integrationRefs`). +- R4. `gh release create` for harness releases passes `--latest=false`. +- R5. Existing gates still pass: the binary still self-reports `+harness.`, the build/verify/libc/checksum steps are unaffected (they operate on the resulting tree/binary, not on history shape). + +## Scope Boundaries + +- Not changing which refs are carried (that's `harness.config.json`). +- Not changing the npm publish flow or the non-`v` tag scheme. +- Not changing how `integration_commit` / `short8` is derived (still `git rev-parse HEAD` of the pushed ref — now a single commit). + +### Deferred to Separate Tasks + +- Embedding the carry list into the binary `provenance.json` notes (already carried there structurally; release-notes is the gap this addresses). + +## Context & Research + +### Relevant Code and Patterns + +- `packages/harness/prompt.txt` — the LLM merge procedure (step 2 merges each ref `--no-ff`; step 5 pushes `refs/harness-integrate/`; step 6 returns the integration SHA). This is where the squash is added. +- `.github/workflows/harness-release.yaml`: + - `prepare-integrate` (lines ~61-178) — computes `BRANCHES` (comma-joined carry labels like `anomalyco/opencode#19961, #31859, #31638`) from `integrationRefs`; renders the prompt. Add a `carries` output here. + - `release-binaries` → `Create GitHub Release` step (lines ~726-772) — the `gh release create` with `--notes` and no `--latest`. Add the carry list to notes + `--latest=false`. +- `packages/harness/src/cli.ts` `cmdPatches()` (lines ~45-62) — the `harness patches` output shape (lists `integrationRefs`); the release notes should convey the same set. +- `packages/harness/harness.config.json` — `integrationRefs` (the 3 PR URLs). + +### Institutional Learnings + +- `docs/solutions/build-errors/` harness docs: the integration commit is the build/provenance anchor; any change to how it's produced must keep the binary version-identity verification intact (the existing `verify-binary.ts` + the release-binaries version gate). + +## Key Technical Decisions + +- **Squash via merge-then-soft-reset** (chosen): keep the per-ref `git merge --no-ff` sequence so the LLM resolves conflicts naturally ref-by-ref, then `git reset --soft {{tag}} && git commit` to collapse to one commit. The tree is identical to the multi-merge result; only history is flattened. Build, version verification, and the pushed-ref consumer are unaffected because they read the tree/HEAD, not the history shape. +- **Single source for the carry list**: the carry labels already computed as `BRANCHES` in `prepare-integrate` feed BOTH the squash commit message (via the prompt's `{{branches}}`) and the release notes (via a new `carries` output). No new data source. +- **`--latest=false` is defensive-explicit**: enforce non-latest regardless of how GitHub's auto-latest would rank the tag. + +## Open Questions + +### Resolved During Planning + +- How to squash without breaking conflict resolution? → merge-then-soft-reset (conflicts handled during the merges; squash is purely a history flatten afterward). +- Does the squash break the version fingerprint / build? → No; the build and `verify-binary.ts` read the tree and the binary `--version`, not git history; `git rev-parse HEAD` still yields a single SHA. +- Where does the carry list come from for the notes? → the existing `BRANCHES` labels in `prepare-integrate`, plumbed as a `carries` output. + +### Deferred to Implementation + +- Exact commit-message format for the squash (e.g. `harness: integrate carrying `) — finalize during prompt edit so it reads well and is deterministic. +- Whether the release notes render the carries as a bullet list or comma-joined — finalize when editing the `--notes` (bullet list is more readable for the GitHub Release body). + +## Implementation Units + +- [x] **Unit 1: Squash the integration into one fingerprint commit (prompt.txt)** + +**Goal:** The pushed `refs/harness-integrate/` is a single commit on top of the base tag containing all carries. + +**Requirements:** R1, R2, R5 + +**Dependencies:** None + +**Files:** +- Modify: `packages/harness/prompt.txt` + +**Approach:** +- After step 2's per-ref `git merge --no-ff` sequence (and conflict resolution), add a squash step: `git reset --soft {{tag}}` then `git commit -m ""`. The message should name the carried refs (use the `{{branches}}` template var, already the comma-joined labels). Keep step 3 (build), step 4 (verify `--version` == `{{version}}`), and step 5 (push the ref) unchanged — they operate on the resulting tree/HEAD. Step 6 still returns `git rev-parse HEAD` (now the single squash commit). +- Update the procedure's prose/requirements so the agent knows the end state is ONE commit (not N merge commits) — explicitly: "After merging all refs and resolving conflicts, collapse the integration into a single commit with `git reset --soft {{tag}}` followed by `git commit`." +- Preserve the empty-carry path semantics: this job only runs when `has_refs == true` (the integrate job is skipped for empty carry sets), so the squash always has at least one carry. No empty-carry handling needed in the prompt. + +**Execution note:** This is a prompt/runbook change validated end-to-end by a dry-run release, not by a unit test. + +**Patterns to follow:** the existing exact-command style in `prompt.txt`; keep column-0 heredoc discipline. + +**Test scenarios:** Test expectation: none — prompt/runbook change. Validated by a dry-run harness-release that produces a single-commit integration ref whose `git diff ..HEAD` shows all carries. + +**Verification:** A dry-run integration ref has exactly one commit above the base tag; `git diff ..` contains all three carries' changes; the built binary still reports `+harness.`. + +- [x] **Unit 2: Plumb the carry list to the release job and into the notes (harness-release.yaml)** + +**Goal:** The harness GitHub Release notes list the carried PRs, and the release is marked non-latest. + +**Requirements:** R3, R4 + +**Dependencies:** None (independent of Unit 1; the carry labels already exist in `prepare-integrate`) + +**Files:** +- Modify: `.github/workflows/harness-release.yaml` + +**Approach:** +- In `prepare-integrate`, add a `carries` output carrying the human-readable carry labels (reuse the `BRANCHES` value, or emit the `integrationRefs` as a newline/comma list). Thread it through the job `outputs`. +- The `release-binaries` job needs the carry list. Since `release-binaries` already consumes `prepare-integrate` outputs indirectly, add `carries` to its available inputs (via `needs.prepare-integrate.outputs.carries`). +- In the `Create GitHub Release` step, extend `--notes` to include the carried PRs (a `### Carries` section listing each ref/PR), and add `--latest=false` to the `gh release create` call. Apply the carries-in-notes to the create path; the clobber/idempotent-repair path (`gh release upload`) doesn't set notes, which is fine (notes are set on creation). +- Keep the existing one-line summary plus the carry list. Format the carry list as a markdown bullet list for readability in the GitHub Release body. + +**Execution note:** CI/workflow change validated by `actionlint` + a dry-run/real release; no unit-test surface. + +**Patterns to follow:** the existing `>> "$GITHUB_OUTPUT"` heredoc pattern in `prepare-integrate`; the existing `gh release create` flag style. + +**Test scenarios:** Test expectation: none — workflow change. Validated by `actionlint` and a release run whose notes show the carry list and whose release is not marked latest. + +**Verification:** `actionlint` clean; a release run's GitHub Release body contains the three carried PRs; `gh api repos/fro-bot/agent/releases/latest` still resolves to the product release after a harness release publishes; the harness release shows `--latest=false` behavior (not flagged latest). + +## System-Wide Impact + +- **Interaction graph:** `prompt.txt` (consumed by the Fro Bot integrate job) → the pushed integration ref → `build`/`release-binaries`/`publish`. Squashing changes only the history shape of the pushed ref; all consumers read HEAD/tree/binary. +- **Unchanged invariants:** the binary version identity (`+harness.`), the build/verify/libc/checksum gates, the npm publish flow, the non-`v` tag scheme, and `integration_commit`/`short8` derivation (still `git rev-parse HEAD`, now a single commit). + +## Risks & Dependencies + +| Risk | Mitigation | +|------|------------| +| The soft-reset squash loses conflict resolutions or changes the tree | `git reset --soft` preserves the index/tree exactly; only commit history is discarded. The tree after the merges == the tree after the squash commit. Verify via dry-run `git diff ..HEAD`. | +| The squash commit message is non-deterministic, breaking byte-stability expectations | The integration commit SHA is already non-deterministic across runs (LLM merge); nothing downstream pins it except per-run derivation. A stable message format is preferred but not required for correctness. | +| `--latest=false` interacts badly with the clobber/repair path | `--latest` is a create-time flag; the repair path uses `gh release upload` (no latest change), so a repaired release retains its non-latest status. | +| Carry list formatting breaks the heredoc/`--notes` quoting | Build the notes via a heredoc or a `--notes-file`, mirroring the existing safe-quoting patterns; validate with `actionlint`. | + +## Documentation / Operational Notes + +- No runtime/deploy impact. The next real harness release (next OpenCode bump) exercises all three changes; a dry-run can validate Unit 1's single-commit shape and Unit 2's notes/latest before a real publish. + +## Sources & References + +- Related code: `packages/harness/prompt.txt`, `.github/workflows/harness-release.yaml` (`prepare-integrate`, `release-binaries`), `packages/harness/src/cli.ts` (`cmdPatches`), `packages/harness/harness.config.json`. +- Trigger: maintainer request — squash carries into one fingerprint commit, list carries in release notes, keep harness releases non-latest. diff --git a/docs/plans/2026-06-22-001-feat-opencode-1.17.9-upgrade-plan.md b/docs/plans/2026-06-22-001-feat-opencode-1.17.9-upgrade-plan.md new file mode 100644 index 0000000000..b98b1611c9 --- /dev/null +++ b/docs/plans/2026-06-22-001-feat-opencode-1.17.9-upgrade-plan.md @@ -0,0 +1,155 @@ +--- +title: 'feat: upgrade OpenCode to 1.17.9 + add SQLite-reliability carries' +type: feat +status: active +date: 2026-06-22 +--- + +# Upgrade OpenCode to 1.17.9 + add SQLite-reliability carries + +## Overview + +Upgrade the action/runtime OpenCode SDK pin and the `@fro.bot/harness` base version from 1.17.6 to **1.17.9**, keeping the three existing carries and adding two new paired reliability carries (`#33134` + `#33159`) that harden the SQLite session-durability path Fro Bot depends on. The new carry set is **5**: existing `#19961`, `#31859`, `#31638` plus new `#33134`, `#33159`. + +## Problem Frame + +The repo pins OpenCode at base 1.17.6 (`1.17.6+harness.13169873`). v1.17.9 is the current upstream stable release. Two open upstream PRs directly harden Fro Bot's load-bearing SQLite session path: + +- **`#33134`** (orphan-part projection guard) — prevents a crash when a late session event projects a child row after its parent was cascade-deleted; touches the core session projector / event-commit funnel Fro Bot consumes via SSE. +- **`#33159`** (SQLite lock-timeout retry on durable commits) — retries transient `LockTimeoutError` and raises `busy_timeout` to 10s on the durable event-commit path under concurrent writers. This is the **exact** path Fro Bot's cached-across-CI-runs SQLite session store hits, and the same operational class as the prior WAL/SHM cache fix. `#33159` is **stacked on `#33134`** (carrying it requires carrying `#33134`). + +Research (librarian + explorer) and an Oracle carry-policy review converged: GO on 1.17.9 (Bun stays 1.3.14, all 6 release binaries exist, no SDK/SSE/permission break in the changelog, all 3 existing carries still open and applicable) and CARRY both new PRs as a paired reliability stack, gated by a live SQLite/SSE/concurrency validation bar. + +## Requirements Trace + +- R1. Action/runtime consumes OpenCode 1.17.9: `@opencode-ai/sdk` → 1.17.9 (root + runtime), `FALLBACK_VERSION` → 1.17.9, Renovate cap → `<=1.17.9`, clonedeps + AGENTS.md annotations → v1.17.9. +- R2. The harness base is 1.17.9 with the 5-carry set (`harness.config.json` `base_version` + `integrationRefs`). +- R3. `DEFAULT_OPENCODE_VERSION` and the workspace Dockerfile `OPENCODE_VERSION` are **not** hand-edited in the upgrade PR — they are bumped by `sync-default-version` after the real harness release publishes (they can only know the real `1.17.9+harness.` then). +- R4. A live integration probe proves the 1.17.9 SDK path still streams correctly (tool lifecycle, text deltas, `session.idle`, no `session.error`) before merging the action/runtime PR. +- R5. The harness build carrying all 5 refs passes the Oracle validation gate before the real publish: diff-scope (all carry anchors landed, no unrelated drift), plus a live SQLite/SSE probe, a concurrent durable-commit stress probe, and a cache-restore probe. +- R6. Harness releases stay non-latest and list their carries (already shipped via #982 — this cycle exercises it for the first time with 5 carries). + +## Scope Boundaries + +- Not changing the SDK consumption code unless 1.17.9 introduces a real break (the changelog shows none; verify via the probe). +- Not hand-editing `DEFAULT_OPENCODE_VERSION` / workspace ARG (owned by `sync-default-version`). +- Not adding speculative carries beyond the 5-set. + +### Deferred to Separate Tasks + +- If the harness build fails the concurrency or cache-restore probe for `#33159`: drop `#33159` (and re-evaluate `#33134` standalone) per Oracle's fail policy — handled at validation time, not pre-committed here. + +## Context & Research + +### Relevant Code and Patterns + +- `package.json` + `packages/runtime/package.json` — `@opencode-ai/sdk` pin. +- `src/services/setup/opencode.ts:19` — `FALLBACK_VERSION` (stock base for latest-fetch failure). +- `packages/runtime/src/shared/constants.ts:26` — `DEFAULT_OPENCODE_VERSION` (harness build; sync-default owns the bump). +- `packages/harness/harness.config.json` — `base_version` + `integrationRefs` (the carry set). +- `.github/renovate.json5:130` — `allowedVersions: '<=1.17.6'` cap for the OpenCode/SDK packages. +- `deploy/workspace.Dockerfile` — `OPENCODE_VERSION` ARG (sync-default owns the bump). +- `AGENTS.md:229-230` + `.slim/clonedeps/repos/anomalyco__opencode` — clonedep version + annotations (use the `clonedeps` skill / delegate to @explorer to update the clone to v1.17.9). +- Prior cycle: the 1.17.6 upgrade plan/PR (`2026-06-14-001`) — same 2-PR shape; mirror it. + +### Institutional Learnings + +- `docs/solutions/` harness docs: the integration commit is the build/provenance anchor; the harness release (now single-commit fingerprint + carry notes + non-latest via #982) validates via dry-run + diff-scope. A prior 1.17.3 bump removed `directory` from the v2 `session.wait` path — watch the v2 client surface specifically. +- SQLite session durability is load-bearing and previously needed a WAL/SHM cache-preservation fix — which is exactly why `#33159` is a high-value carry, not a speculative one. + +## Key Technical Decisions + +- **5-carry set, paired reliability stack.** `#33134` + `#33159` carried together (stacking forces it); framed as one reliability stack, not two independent feature carries. +- **Two-PR release sequence** (established): PR1 bumps the action/runtime SDK + FALLBACK + harness base_version + carries + Renovate cap + clonedeps, runs the live probe, and deliberately leaves `DEFAULT_OPENCODE_VERSION` + workspace ARG to `sync-default-version`. Then dispatch the real harness release (after PR1 merges) → it opens the `sync-default-version` PR with the real `1.17.9+harness.` → merge that → product release. +- **Hard validation gate before real publish** (Oracle): a harness dry-run + diff-scope is necessary but insufficient for core commit/projection-semantics carries. Add a live action-tier SQLite/SSE probe, a concurrent durable-commit stress probe, and a cache-restore probe. Fail policy: drop `#33159` on concurrency/cache-restore failure; drop both if separating gets messy. + +## Open Questions + +### Resolved During Planning + +- Does 1.17.9 break the SDK/SSE/permission surface? → No break in the changelog; confirm via the live probe (R4). +- Does Bun change? → No, stays 1.3.14 (no `HARNESS_BUN_VERSION` change). +- Are the 3 existing carries still needed? → Yes, all open upstream + target files exist in 1.17.9. +- Carry both new PRs? → Yes (Marcus's call, Oracle's rec): paired reliability stack. + +### Deferred to Implementation + +- Whether the harness LLM-merge of `#33134`+`#33159` onto the v1.17.9 tag is clean — both are MEDIUM/MEDIUM-HIGH merge risk and base `dev` (mergeable:false against dev may be stacking/dev-drift, not tag-merge difficulty). Proven by the harness dry-run + diff-scope at validation time. +- The exact concurrent-durable-commit stress-probe shape — designed at validation time against the built 1.17.9+carries binary. + +## Implementation Units + +- [x] **Unit 1: Action/runtime + harness pin bump to 1.17.9 with the 5-carry set** + +**Goal:** Every 1.17.9 pin site is updated and the harness config carries all 5 refs, without touching the sync-default-owned values. + +**Requirements:** R1, R2, R3, R6 + +**Dependencies:** None + +**Files:** +- Modify: `package.json`, `packages/runtime/package.json` (`@opencode-ai/sdk` → 1.17.9), `pnpm-lock.yaml` +- Modify: `src/services/setup/opencode.ts` (`FALLBACK_VERSION` → 1.17.9) +- Modify: `packages/harness/harness.config.json` (`base_version` → 1.17.9; append `#33134`, `#33159` full PR URLs to `integrationRefs`, after the existing 3, in dependency order — `#33134` before `#33159`) +- Modify: `.github/renovate.json5` (`allowedVersions` cap → `<=1.17.9`) +- Modify: `AGENTS.md` (clonedep annotations v1.17.6 → v1.17.9) +- Do NOT modify: `packages/runtime/src/shared/constants.ts` `DEFAULT_OPENCODE_VERSION`, `deploy/workspace.Dockerfile` `OPENCODE_VERSION` (sync-default owns these) +- Update: `.slim/clonedeps/repos/anomalyco__opencode` to v1.17.9 (delegate to @explorer via the `clonedeps` skill) + +**Approach:** +- Use full GitHub PR URLs in `integrationRefs` (the harness parser treats `owner/repo#N` shorthand as a local branch — must be `https://github.com/anomalyco/opencode/pull/33134` etc). Order matters: `#33134` before `#33159` (stack order, matching the prompt's "merge in order"). +- `pnpm install` after the SDK bump so the lockfile + any version-gated `minimumReleaseAgeExclude` for the freshly-published SDK is handled (prior cycles needed a scoped exclude for the new `@opencode-ai/sdk` — add only if `pnpm install` empirically requires it, with a comment). +- Rebuild `dist/` (the SDK bump ripples into the action bundle) and keep it in sync. + +**Execution note:** Verify each pin against source after editing; the sync-default-owned values must stay at 1.17.6+harness until the harness publishes. + +**Test scenarios:** Test expectation: none for the pin edits themselves; the existing test suite must still pass after the SDK bump (catches any SDK-shape break). Add/adjust a test only if the SDK change forces a code change. + +**Verification:** `pnpm check-types`, `pnpm test`, `pnpm lint`, `pnpm build` all clean; `dist/` in sync; `DEFAULT_OPENCODE_VERSION` + workspace ARG unchanged at 1.17.6+harness; `harness.config.json` has 5 ordered carries. + +- [x] **Unit 2: Live 1.17.9 integration probe (action/runtime)** + +**Goal:** Prove the 1.17.9 SDK path still streams correctly before merging the action/runtime PR. + +**Requirements:** R4 + +**Dependencies:** Unit 1 + +**Files:** +- Add (temporary/env-gated): a probe mirroring the prior 1.17.x integration probe (`createOpencode` → real `processEventStream` → arming → wait), run against an isolated stock OpenCode 1.17.9 server. + +**Approach:** +- Mirror the prior-cycle probe (the 1.17.6 / 1.17.3 cycles used an env-gated integration probe driving the real harness path). Use an isolated `--pure` 1.17.9 server (temp HOME/XDG, isolated auth, `opencode/big-pickle` or a real model) to avoid global-config interference. Assert: a `| Bash` tool line renders, final assistant text arrives, `message.part.updated` / `message.part.delta` flow, `session.idle` fires, no `session.error`. Also smoke the v2 `session.wait` surface (the 1.17.3 cycle saw it return a structured "not available yet" — confirm the poll-watchdog fallback still holds). +- This probe validates STOCK 1.17.9 (the SDK consumption), independent of the carries (which are validated at the harness gate in the post-merge flow). + +**Test scenarios:** Happy path: tool line + text + idle, no error. Edge: v2 `session.wait` behavior unchanged (structured unavailable → poll fallback). + +**Verification:** The probe renders tool + text output against a live isolated 1.17.9 server with the real harness consumer path; no `session.error`; v2 wait behavior matches the documented fallback. + +## System-Wide Impact + +- **Interaction graph:** the SDK pin feeds the action/runtime execution path (`processEventStream`, retry/arming, `session.wait`); the harness `base_version`/carries feed the harness build; `sync-default-version` (post-publish) feeds `DEFAULT_OPENCODE_VERSION` + the workspace Dockerfile. +- **Unchanged invariants (until sync-default):** `DEFAULT_OPENCODE_VERSION` and the workspace ARG stay at `1.17.6+harness.13169873` through PR1; the gateway run-core SSE rendering is unaffected (no SSE-shape change in 1.17.9). Bun stays 1.3.14. +- **The carries change core commit/projection semantics** — validated at the harness gate (R5), not in the action/runtime PR. + +## Risks & Dependencies + +| Risk | Mitigation | +|------|------------| +| 1.17.9 SDK introduces a subtle SSE/permission/v2-wait break the changelog didn't flag | Unit 2 live probe against a real 1.17.9 server before merge; specifically smoke the v2 `session.wait` surface (prior 1.17.3 break precedent). | +| The `#33134`+`#33159` LLM-merge onto the v1.17.9 tag is hard/incomplete | Harness dry-run + diff-scope validation proves all 5 carry anchors landed with no unrelated drift before the real publish (R5). | +| `#33159` introduces a regression in durable-commit/SQLite semantics | Oracle's hard gate: concurrent durable-commit stress probe + cache-restore probe against the built binary; fail policy — drop `#33159` (re-eval `#33134` standalone) if it fails. | +| Mixed SDK-1.17.9 / default-1.17.6-harness skew on main between PR1 merge and the harness publish | The skew is brief and safe (the action runs the 1.17.6-harness binary while the SDK types are 1.17.9; the SDK is backward-compatible per the changelog). Close it promptly by dispatching the harness release right after PR1 merges. | +| `pnpm install` fails on the freshly-published SDK (minimumReleaseAge) | Add a scoped `minimumReleaseAgeExclude` for `@opencode-ai/sdk` with a comment, as prior cycles did, only if empirically needed. | + +## Documentation / Operational Notes + +- Release sequence: PR1 (action/runtime + harness config + clonedeps) → merge → dispatch `harness-release.yaml` (real, `base_version=1.17.9`) → validate via dry-run/diff-scope + the SQLite/SSE/concurrency/cache-restore probes → real publish → `sync-default-version` PR bumps `DEFAULT_OPENCODE_VERSION` + workspace ARG to `1.17.9+harness.` → merge → product release. +- The harness release exercises #982's new single-commit fingerprint + carry-notes + non-latest for the first time with 5 carries — confirm the GitHub Release lists all 5. + +## Sources & References + +- Research: librarian (v1.17.9 facts, existing-carry status) + explorer (candidate-PR evaluation) + Oracle (carry-policy decision + validation gate), this session. +- Candidates: anomalyco/opencode#33134, anomalyco/opencode#33159 (stacked). +- Related code: `package.json`, `packages/runtime/package.json`, `src/services/setup/opencode.ts`, `packages/runtime/src/shared/constants.ts`, `packages/harness/harness.config.json`, `.github/renovate.json5`, `deploy/workspace.Dockerfile`, `.github/workflows/harness-release.yaml`. +- Prior cycle: `docs/plans/2026-06-14-001-feat-opencode-1.17.6-upgrade-plan.md` (same 2-PR shape). diff --git a/docs/solutions/build-errors/gateway-docker-runtime-resolution-crash-loop-2026-05-31.md b/docs/solutions/build-errors/gateway-docker-runtime-resolution-crash-loop-2026-05-31.md index f4fe279e53..625230d0eb 100644 --- a/docs/solutions/build-errors/gateway-docker-runtime-resolution-crash-loop-2026-05-31.md +++ b/docs/solutions/build-errors/gateway-docker-runtime-resolution-crash-loop-2026-05-31.md @@ -103,3 +103,4 @@ Inlining removes the bare `@fro-bot/runtime` specifier from `dist/main.mjs`, so - Issue #707 (fixed by PR #708, `721f213`). - [Adding a Config-Declared Plugin to the Versioned Tool Pattern](../best-practices/versioned-tool-config-plugin-pattern-2026-03-29.md) — the same "verify how a dependency is actually resolved before copying a pattern" discipline, applied to workspace-package bundling. - [Tool Binary Caching Across Ephemeral Runners](./tool-binary-caching-ephemeral-runners.md) — related CI-hygiene angle; note that cache optimization does not address image-only packaging gaps. +- [Committed-bundle attribution and SBOM hygiene](../workflow-issues/committed-dist-attribution-and-sbom-hygiene-2026-06-21.md) — the same "build a concrete invariant into the bundler, then let a CI self-check prove it" discipline, applied to a committed dist/ attribution file. diff --git a/docs/solutions/workflow-issues/committed-dist-attribution-and-sbom-hygiene-2026-06-21.md b/docs/solutions/workflow-issues/committed-dist-attribution-and-sbom-hygiene-2026-06-21.md new file mode 100644 index 0000000000..055e1ffd05 --- /dev/null +++ b/docs/solutions/workflow-issues/committed-dist-attribution-and-sbom-hygiene-2026-06-21.md @@ -0,0 +1,146 @@ +--- +title: 'Committed-bundle attribution and SBOM hygiene' +date: 2026-06-21 +problem_type: workflow_issue +component: tooling +severity: medium +applies_when: + - 'A GitHub Action (or any tool) commits its bundled dist/ directory and redistributes third-party dependencies' + - 'A generated license-notice file is perpetually untracked or oscillates in and out of the tree' + - 'CI has a branch-specific carve-out that exempts a generated file from the dist-sync check' + - 'You need both committed legal attribution and a machine-readable SBOM' +tags: + - sbom + - license-notices + - dist + - renovate + - github-actions + - fail-closed +--- + +# Committed-bundle attribution and SBOM hygiene + +## Context + +A GitHub Action whose bundled `dist/` is committed and CI-verified-in-sync redistributes its ~214 production dependencies. The build emitted an 800KB concatenation of their license texts (`dist/licenses.txt`) on every run, but the file sat in half-tracked limbo: the release pipeline committed it, Renovate dependency-bump commits deleted it, the CI dist-diff check excluded it for `renovate/*` branches (a carve-out band-aid), and `.gitignore` never covered it. The result was a generated file that was neither reliably tracked nor ignored — it perpetually showed as `??` untracked and was a recurring source of developer friction. + +The underlying driver is legal, not cosmetic: a committed bundle **is** a redistribution of the bundled dependencies, and MIT/BSD/Apache licenses require preserving their copyright/notice text on redistribution. A machine-readable SBOM does not substitute for that notice, and a release-only artifact is too weak because an Action is consumed by tag/SHA from the repo, not by downloading release assets. + +## Guidance + +### 1. If the bundle is committed, the attribution matching it is committed too + +Name the file for what it legally is (`dist/THIRD_PARTY_NOTICES.txt`), commit it tracked, and verify it under the **same** dist-sync invariant as the rest of the bundle. Do not exempt it with a CI carve-out — bringing it under the gate is the whole point. + +```yaml +# .github/workflows/ci.yaml — the dist-sync gate, now unconditional (no renovate carve-out) +- name: Compare the expected and actual dist/ directories + run: | + if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then + echo "Detected uncommitted changes after build." + git diff --text dist/ + exit 1 + fi +``` + +### 2. Generate the notice deterministically — the dist-diff gate is then the reproducibility proof + +Stable sort + normalized line endings make the committed file byte-reproducible, so the existing dist-sync gate self-checks it. No separate "did the notice drift" test is needed. + +```ts +// tsdown.config.ts — pure, exported for unit testing +export function formatThirdPartyNotices(entries: ReadonlyMap): string { + return Array.from(entries.entries()) + .sort(([a], [b]) => a.localeCompare(b)) + .map(([name, {version, license, content}]) => `${name}@${version}\n${license}\n${content}`) + .join('\n\n') + .replaceAll('\r\n', '\n') +} +``` + +### 3. Fail closed on a *total* collection failure — but not on benign per-dependency gaps + +A generation failure must fail the build rather than silently write nothing (the old fail-soft `catch { warn; return }` was the latent bug). The distinction matters: a single dependency with no resolvable license text is handled inside the collector and does **not** reach this catch, so per-dependency gaps stay non-fatal. + +```ts +// Fail closed: a total failure means the notice would be incomplete; throw rather than write nothing. +try { + licenses = await getProjectLicenses('./package.json') +} catch (error) { + const reason = error instanceof Error ? error.message : String(error) + throw new Error(`[license-collector] license collection failed; cannot produce THIRD_PARTY_NOTICES.txt: ${reason}`) +} +``` + +### 4. Fix the file model, don't exempt the file + +The carve-out existed to paper over a fail-soft generator interacting with an untracked base state. The right fix is to make generation reliable (deterministic + fail-closed) and track the file — then remove the exception. This is the same meta-rule as [removing a duplicate version source rather than adding a drift-detection test](harness-base-version-source-of-truth-2026-06-12.md): delete the thing that can drift, don't add a check that asserts it didn't. + +### 5. Know your Renovate mechanics: `ignorePaths` is scan-only, not a commit filter + +Removing the CI carve-out is only safe because Renovate already regenerates the file. `ignorePaths: ['dist/**']` excludes `dist/` from Renovate's *scanning* (so it won't open update PRs for vendored code, and the hidden-Unicode detector skips it) — it does **not** stop Renovate from committing rebuilt `dist/`. `postUpgradeTasks` runs the build on every dependency PR: + +```json5 +// .github/renovate.json5 +ignorePaths: ['dist/**'], // scan exclusion only +postUpgradeTasks: { + commands: ['pnpm install', 'pnpm run build', 'pnpm run fix'], // regenerates + commits dist on dep PRs + executionMode: 'branch', +} +``` + +So dependency PRs regenerate the notice deterministically and the unconditional dist-diff gate verifies it — no exception required. + +### 6. SBOM is a separate lane from the NOTICE — ship it as a non-blocking CI artifact + +The human-readable legal notice and the machine-readable SBOM serve different consumers. Generate the SBOM with native tooling (`pnpm sbom`, CycloneDX), upload it as a CI artifact, and keep it **non-blocking** — it is informational, not a build gate, and a generation failure must not fail the build. + +```yaml +- name: Generate the dependency SBOM + id: sbom + continue-on-error: true + run: pnpm sbom --sbom-format cyclonedx --prod > sbom.cdx.json +- uses: actions/upload-artifact@... + if: ${{ steps.sbom.outcome == 'success' }} # gate on the step, not file existence — a shell redirect creates the file even on failure + with: + name: sbom-cyclonedx + path: sbom.cdx.json +``` + +### 7. Probe empirically before assuming a root cause + +The initial assumption was non-determinism, but two consecutive clean builds produced byte-identical output — the file was already deterministic. The real defect was process (the file was never landed in the tracked tree, and CI exempted it). Separately, a high-confidence reviewer finding ("`parsePackageName` collapses all scoped packages, dropping their attribution") was a **false positive**: checking the actual committed file showed 103 distinct scoped entries with zero collision (`.find(Boolean)` skips the leading empty string from the leading `@`). Verify load-bearing claims — both your own root-cause hypothesis and high-confidence review findings — against the real artifact before acting. + +## Why This Matters + +| Rule | Failure it prevents | +|------|---------------------| +| Committed bundle ⇒ committed notice | Perpetual untracked-file churn; legal under-attribution for a redistributed bundle | +| Deterministic generation | Flaky builds / dist-diff thrash from non-reproducible output | +| Fail closed on total failure only | A silent empty notice (fail-soft) shipping with no attribution; or an over-eager hard-fail on a benign per-dep gap | +| Fix the file model, don't exempt it | A carve-out that lets the exempted file rot indefinitely | +| `ignorePaths` is scan-only | Wrongly assuming Renovate won't commit dist, and either keeping an unnecessary carve-out or breaking dep PRs | +| SBOM as non-blocking artifact | A broken SBOM run failing the build, or a redirect-created empty SBOM being uploaded | +| Probe before assuming | Building the wrong fix (e.g. determinism machinery the file didn't need); acting on a false-positive review finding | + +## When to Apply + +Any project that commits a bundled or vendored `dist/` and redistributes third-party dependencies — GitHub Actions especially, where consumers pull by tag/SHA. Also when deciding an SBOM/license-attribution strategy: the modern split is a committed human-readable notice plus a CI-generated machine-readable SBOM artifact. + +## Examples + +**Carve-out removal** — before, the dist-diff check exempted the notice for Renovate branches (`DIFF_TARGETS="dist/ ':!dist/licenses.txt'"`); after, it checks all of `dist/` unconditionally (Rule 1 snippet). The eval/pathspec indirection that only existed to inject the exclusion was deleted with it. + +**Fail-closed generation** — before, `catch { console.warn(...); return }` (silently wrote nothing on failure); after, the catch throws and fails the build (Rule 3 snippet). + +**Deterministic helper** — the sort + EOL-normalization pure function (Rule 2 snippet) makes the committed file byte-reproducible so the dist-diff gate is the determinism proof. + +## See also + +- [harness-base-version-source-of-truth](harness-base-version-source-of-truth-2026-06-12.md) — the "remove the duplicate/exception, don't add a drift-detection test" meta-rule that justifies removing the carve-out (Rule 4). +- [cross-libc-build-and-release-safety](../best-practices/cross-libc-build-and-release-safety-2026-06-14.md) — the project's fail-closed canon ("abort on anomaly, no fallback"); Rule 3 applies it to license generation. +- [versioned-tool-config-plugin-pattern](../best-practices/versioned-tool-config-plugin-pattern-2026-03-29.md) — Renovate customManager / config-source-of-truth discipline behind Rule 5. +- [gateway-docker-runtime-resolution-crash-loop](../build-errors/gateway-docker-runtime-resolution-crash-loop-2026-05-31.md) — the sibling "build-time invariant in the bundler + CI self-check" pattern; the dist-diff-gate-as-proof here is the same discipline. +- [tool-binary-caching-ephemeral-runners](../build-errors/tool-binary-caching-ephemeral-runners.md) — the dist/ rebuild-verification convention this builds on. + +Source: PR #978 (no issue — arose from a maintainer question on why `dist/licenses.txt` was untracked and the modern SBOM/license approach). Files: `tsdown.config.ts`, `.github/workflows/ci.yaml`, `.github/renovate.json5`, `RULES.md`. diff --git a/docs/solutions/workflow-issues/harness-base-version-source-of-truth-2026-06-12.md b/docs/solutions/workflow-issues/harness-base-version-source-of-truth-2026-06-12.md index 660d60754e..9dca9e4bb0 100644 --- a/docs/solutions/workflow-issues/harness-base-version-source-of-truth-2026-06-12.md +++ b/docs/solutions/workflow-issues/harness-base-version-source-of-truth-2026-06-12.md @@ -130,6 +130,7 @@ The harness base-version site was added to the `versioned-tool` skill inventory ## Related +- `docs/solutions/workflow-issues/committed-dist-attribution-and-sbom-hygiene-2026-06-21.md` — applies the same meta-rule (remove the exception that can drift, don't add a drift-detection check) to a CI dist-diff carve-out exempting a generated notice file. - `docs/solutions/best-practices/versioned-tool-config-plugin-pattern-2026-03-29.md` — the single-source version pattern and Renovate `customManager` wiring for a config-declared plugin. Same prevention discipline (single source, track the consumed value), different root cause (plugin-config wiring vs. a Renovate-tracked dead sentinel). Consider reading both together when touching version management. - PR #867 — the fix (delete sentinel, retarget Renovate, remove provenance literals, inventory the site). - PR #866 — the Renovate bump against the soon-deleted sentinel, closed as moot; the concrete symptom of tracking the wrong file. diff --git a/docs/wiki/Architecture Overview.md b/docs/wiki/Architecture Overview.md index 961eefe48c..4509fa7f17 100644 --- a/docs/wiki/Architecture Overview.md +++ b/docs/wiki/Architecture Overview.md @@ -1,7 +1,7 @@ --- type: architecture -last-updated: "2026-06-07" -updated-by: "cbc7008" +last-updated: "2026-06-21" +updated-by: "aaaf91d" sources: - src/main.ts - src/post.ts @@ -14,6 +14,7 @@ sources: - packages/gateway/src/main.ts - packages/gateway/src/execute/run.ts - packages/gateway/src/http/server.ts + - packages/gateway/src/web/server.ts - packages/gateway/src/approvals/coordinator.ts - packages/runtime/src/agent/remote-client.ts - apps/workspace-agent/src/main.ts @@ -87,6 +88,8 @@ The Discord gateway (`@fro-bot/gateway`) is a long-running daemon that bridges D **HTTP** (`http/`) — The signed announce webhook server. Handles control-plane presence messages with HMAC signature verification (`hmac.ts`), replay protection (`replay-cache.ts`), rate limiting (`rate-limit.ts`), and schema validation (`announce-schema.ts`). +**Web** (`web/`, `operator-contract/`) — The authenticated operator web control surface: a browser-facing Hono server that lets a signed-in human launch and observe agent runs over HTTP and Server-Sent Events. It owns GitHub OAuth, server-side sessions, a numeric-user-ID allowlist, per-repo authorization, CSRF protection, and the SSE observation pipeline, all speaking a frozen operator contract. This is a second entry point into the same execution engine the Discord mention handler uses. See [[Operator Web Control Surface]]. + **Workspace API** (`workspace-api/`) — Client for calling the workspace-agent's clone and OpenCode-proxy endpoints (`client.ts`, `types.ts`). **Bindings** (`bindings/`) — Channel-to-repository binding store. Maps Discord channel IDs to the GitHub repository they operate on. Backed by S3 so bindings survive restarts. diff --git a/docs/wiki/Execution Lifecycle.md b/docs/wiki/Execution Lifecycle.md index f11bfec085..77f85cb6fd 100644 --- a/docs/wiki/Execution Lifecycle.md +++ b/docs/wiki/Execution Lifecycle.md @@ -1,7 +1,7 @@ --- type: architecture -last-updated: "2026-06-07" -updated-by: "cbc7008" +last-updated: "2026-06-21" +updated-by: "aaaf91d" sources: - src/harness/run.ts - src/harness/phases/bootstrap.ts @@ -73,7 +73,9 @@ A lightweight guard against duplicate runs for the same entity within a configur ## 4. Acquire Lock -When the S3 object store is enabled, the harness acquires a per-repo coordination lock (`src/harness/phases/acquire-lock.ts`) so that multiple surfaces — the GitHub Action and a future Discord gateway — cannot execute concurrently against the same repository. The lock is an S3 object (JSON `LockRecord`) written with conditional-put semantics (`If-None-Match: *` for initial acquisition). +When the S3 object store is enabled, the harness acquires a per-repo coordination lock (`src/harness/phases/acquire-lock.ts`) so that multiple surfaces — the GitHub Action, the Discord gateway, and the [[Operator Web Control Surface|operator web surface]] — cannot execute concurrently against the same repository. The lock is an S3 object (JSON `LockRecord`) written with conditional-put semantics (`If-None-Match: *` for initial acquisition). + +The lock config carries two staleness thresholds. The ordinary stale threshold governs takeover of a lock held by a _running_ surface that stopped heartbeating, while a separate **pending** stale threshold (`pendingStaleThresholdMs`) governs runs that were admitted but never progressed. This second threshold exists because the gateway now records queued and failed runs through the same admission path, so a run that is reserved but stuck must eventually become reclaimable without waiting out the full running-lease TTL. Both the acquire and cleanup phases pass this threshold so the two surfaces agree on when a pending lock may be taken over. The lock result is a discriminated union with four outcomes: diff --git a/docs/wiki/Operator Web Control Surface.md b/docs/wiki/Operator Web Control Surface.md new file mode 100644 index 0000000000..e14c33f235 --- /dev/null +++ b/docs/wiki/Operator Web Control Surface.md @@ -0,0 +1,102 @@ +--- +type: subsystem +last-updated: "2026-06-21" +updated-by: "aaaf91d" +sources: + - packages/gateway/src/web/server.ts + - packages/gateway/src/web/operator-route.ts + - packages/gateway/src/web/operator/launch-route.ts + - packages/gateway/src/web/operator/repos-route.ts + - packages/gateway/src/web/operator/web-approval.ts + - packages/gateway/src/web/operator/web-sinks.ts + - packages/gateway/src/web/operator/idempotency.ts + - packages/gateway/src/web/auth/github.ts + - packages/gateway/src/web/auth/session.ts + - packages/gateway/src/web/auth/allowlist.ts + - packages/gateway/src/web/auth/repo-authz.ts + - packages/gateway/src/web/auth/csrf.ts + - packages/gateway/src/web/auth/session-info-route.ts + - packages/gateway/src/web/sse/manager.ts + - packages/gateway/src/web/sse/projection.ts + - packages/gateway/src/web/sse/run-stream-route.ts + - packages/gateway/src/web/audit.ts + - packages/gateway/src/operator-contract/identity.ts + - packages/gateway/src/operator-contract/approval.ts + - packages/gateway/src/operator-contract/output.ts + - packages/gateway/src/operator-contract/run-status.ts + - packages/gateway/src/operator-contract/redaction.ts + - packages/gateway/src/operator-contract/repo-summary.ts + - packages/gateway/src/operator-contract/version.ts + - docs/decisions/2026-06-19-s2-operator-auth-authority.md +summary: "Authenticated browser surface that lets operators launch and observe gateway agent runs over HTTP and SSE" +--- + +# Operator Web Control Surface + +Beyond Discord mentions, the [[Architecture Overview|gateway]] exposes a second way to drive agent runs: an authenticated, browser-facing HTTP surface for human operators. An operator signs in with GitHub, launches a run against a bound repository, and watches its status and output stream back live. This page describes how that surface is structured and why its security posture is built the way it is. + +The implementation lives under `packages/gateway/src/web/` (the HTTP server, routes, authentication, and SSE machinery) and `packages/gateway/src/operator-contract/` (the frozen data types the surface speaks). The decision to make the gateway the single authority for operator authentication — rather than maintaining a parallel system in the separate dashboard project — is recorded in `docs/decisions/2026-06-19-s2-operator-auth-authority.md`. + +## Listener Topology + +The operator server (`web/server.ts`) is a Hono application bound only to the gateway's internal network — never the public internet directly and never the sandbox network the workspace runs on. TLS is terminated upstream by an infrastructure reverse proxy at a configured public origin, so the listener itself receives plain HTTP from that proxy. + +Because the server trusts a proxy in front of it, it validates the forwarded host and protocol headers against the expected public origin and rejects mismatches. This stops anything that can reach the listener from spoofing the operator origin. During graceful shutdown a drain gate refuses new requests with `503` before any request body is read, and unauthenticated routes carry small body-size limits and socket-keyed rate limiting (keyed on the TCP peer address rather than a spoofable header). + +Routes fall into two classes, enforced by a registration seam (`web/operator-route.ts`): + +- **Public** — health check and the two GitHub OAuth endpoints (start and callback). Registered through dedicated public helpers so they are never wrapped by the privileged guard. +- **Privileged** — launch, run-stream, repo listing, session info, and logout. Registered through a helper that automatically wraps each handler in the browser guard (session + allowlist + CSRF/origin checks). A startup assertion fails fast if any `/operator/*` route was registered without going through these helpers, making "forgot to add the guard" unrepresentable. + +## Authentication and Authorization + +### GitHub OAuth (`web/auth/github.ts`) + +Sign-in is a hand-rolled GitHub OAuth flow using PKCE and an anti-forgery `state` value. The start endpoint generates the PKCE verifier server-side (it is never written to a cookie or returned to the browser), stores the `state` server-side with a short TTL and an outstanding-attempt cap, and redirects to GitHub. The callback validates `state` as one-time, exchanges the code with the stored verifier, and reads the authenticated user's stable numeric GitHub ID and display login. + +Two properties matter throughout: the **numeric user ID is the authority** for every later authorization and audit decision, while the login is treated as mutable display metadata; and every authentication failure branch returns the same coarse response so the surface gives no oracle about why a request was rejected. + +### Sessions (`web/auth/session.ts`) + +A successful sign-in mints a server-side opaque session — a high-entropy random identifier stored in a `__Host-`-prefixed secure cookie, with the identity and the operator's GitHub OAuth token held only in memory on the gateway. Sessions enforce both an absolute lifetime (8 hours) and an idle timeout (30 minutes), checked on every lookup. The retained OAuth token is a session-bound secret: it is never written to disk, never logged, never placed in a cookie, and never returned through any API response. Because sessions live in memory, a gateway restart is a global logout. + +### Allowlist and repository access (`web/auth/allowlist.ts`, `web/auth/repo-authz.ts`) + +Authentication proves who an operator is; authorization decides what they may touch. A file-backed allowlist of stable numeric GitHub user IDs gates the surface, and it fails closed — a missing, unreadable, or malformed allowlist denies everyone. Repository authorization layers a second check on top: the operator must be on the allowlist **and** their OAuth token must prove read access to the specific target repository. The allowlist check runs first so a non-allowlisted operator never triggers a GitHub call. Results are cached briefly (with jitter, and with negative caching for denials and rate-limit windows), and concurrent misses for the same key coalesce into a single GitHub request. + +### CSRF and the browser guard (`web/auth/csrf.ts`) + +The browser guard validates Fetch Metadata headers and an HMAC-signed CSRF token on mutating requests (`POST`/`PUT`/`PATCH`/`DELETE`); safe methods are exempt. Combined with the same-origin posture from the listener topology, this is what makes the privileged routes safe to expose to a browser. + +## Launching a Run + +`POST /operator/runs` (`web/operator/launch-route.ts`) is a fire-and-return endpoint: the operator submits a repository and a prompt, and the server responds `202` with a `runId` almost immediately, leaving the operator to observe progress over SSE. Before anything launches, the request passes an ordered gauntlet: the browser guard, an operator-keyed rate limit, OAuth-token resolution from the session, body validation, **server-owned binding resolution** (the client names a repo but the server resolves the actual binding — client-supplied paths or owners are ignored), a denylist check that runs _before_ the authorization call, the repo-authorization check, and finally a per-operator idempotency guard. + +The idempotency guard (`web/operator/idempotency.ts`) namespaces its key by the operator's numeric ID (`{githubUserId}:{clientKey}`), so one operator can never suppress another's launch. It uses a two-phase reserve-then-commit lifecycle: the key is reserved before `launchWork` is called and committed only on success, so a concurrent duplicate during the reservation window is recognized as in-flight rather than launching the work twice. On rejection the reservation is rolled back so no dead `runId` is echoed. + +Admission itself goes through the gateway's single `launchWork` gate (see [[Execution Lifecycle]] for how that same admission path now records queued and failed runs). The web transport deliberately runs without interactive approvals: its approval sink (`web/operator/web-approval.ts`) auto-denies every permission request, so web-launched runs only perform work that needs no human gate. + +## Observing a Run + +`GET /operator/runs/:runId/stream` (`web/sse/run-stream-route.ts`) opens a Server-Sent Events stream. The route resolves the run to its repository through a server-owned run index (never a client-supplied mapping), re-runs the denylist and repository-authorization checks, and acquires a per-operator stream-slot lease (a small cap on concurrent streams per operator). Every failure on the authorization path returns the identical generic not-found shape; exhausting the stream-slot cap returns an honest `429`. There is deliberately no distinguishable "authorized but not streaming" response, because that would leak whether a run exists. + +Once open, the stream emits a closed set of frame types: a **status** frame carrying the operator-safe run projection, **output** frames (incremental deltas plus a final terminal frame that supersedes them), periodic **heartbeat** comments to keep proxies from closing the connection, and a **reset** frame with a typed reason on terminal status, shutdown, or overflow. A continuous authorization lease re-verifies the session, token, redaction, and repo access on an interval; if any check fails the stream closes gracefully. + +Fan-out is handled by an in-memory observation manager (`web/sse/manager.ts`). The run engine calls into the manager on every state transition; the manager projects the run state through the redaction bridge, caches the latest status, and enqueues frames per subscriber without ever awaiting a write — a slow consumer is dropped locally once its queue exceeds a byte cap, and cannot stall publishing for anyone else. A bounded terminal-replay cache lets a late subscriber connecting shortly after completion still receive the final output and status before the stream closes. The manager is observer-only: it can read and project run state but has no API to transition runs or touch coordination locks. + +## The Operator Contract + +The types crossing this boundary are defined once, in `packages/gateway/src/operator-contract/`, and treated as a frozen surface. The contract version (`version.ts`) is pinned at build time and never negotiated over the wire — clients cannot ask for an older shape. Two normative obligations are encoded directly in the contract (`redaction.ts`): + +- **Redaction obligation** — denylisted repositories must be excluded _before_ any per-repo query, not filtered at render time. Deny-key matching tolerates GitHub node-ID format skew by deriving the numeric database ID, and an entry with no usable deny key (or an unreadable denylist) must deny rather than leak. Redaction composes with repository authorization: authorization proves an operator _may_ see a repo, redaction proves the repo _is not hidden by policy_, and both must pass. +- **Authorization obligation** — operator identity is always constructed server-side from the authenticated session and is never deserialized from a request payload, and approval/launch decisions must carry a transport-bound identity rather than a free-form caller string. + +The projection helper (`sse/projection.ts`) enforces redaction structurally: it takes a denylist predicate as a required argument and returns nothing for a denied repository, so the operator-facing `OperatorRunStatus` (`run-status.ts`) exposes only safe fields (entity reference, surface, phase, status, timestamps, staleness) and never the internal coordination fields like holder or thread IDs. + +## Audit + +Security-critical events on this surface — sign-ins, authorization decisions, launches, and stream lifecycle — flow through a typed audit seam (`web/audit.ts`) that records the numeric GitHub user ID and other safe fields while excluding tokens, prompts, and internal identifiers. + +## Relationship to Other Surfaces + +This surface is one of three ways runs reach the gateway's execution engine, alongside Discord mentions and the GitHub Action. All three converge on the same `launchWork` admission gate and the same approval registry (`registry.handleDecision`) as the single settlement authority, which is why no transport — web included — implements a parallel launch or approval path. The conventions enforced here (functions only, dependency injection, fail-closed defaults, no secret leakage) match the rest of the project; see [[Conventions and Patterns]]. For the per-repo coordination lock these runs share with the Action, see [[Execution Lifecycle]]. diff --git a/docs/wiki/Session Persistence.md b/docs/wiki/Session Persistence.md index e23a7bcf6e..60feba7ae8 100644 --- a/docs/wiki/Session Persistence.md +++ b/docs/wiki/Session Persistence.md @@ -1,7 +1,7 @@ --- type: subsystem -last-updated: "2026-06-14" -updated-by: "7065ca0" +last-updated: "2026-06-21" +updated-by: "aaaf91d" sources: - packages/runtime/src/session/storage.ts - packages/runtime/src/session/search.ts @@ -56,6 +56,8 @@ On restore, the cache module performs several safety checks: Cache saves happen twice: once during the cleanup phase of the main step, and again in the post-action hook (`post.ts`). The post-action hook exists because GitHub Actions may kill the main step's `finally` block, and losing cache would mean losing all session history. +Before saving, `saveCache` in `src/services/cache/save.ts` checks whether there is anything worth caching — but this check is subtler than "is the storage directory non-empty." Recent OpenCode versions persist sessions in an `opencode.db` SQLite file in the _parent_ of the storage directory, not inside it, so a naive empty-directory check would skip the save on every real run. The guard therefore also treats any non-empty SQLite DB-family file (`opencode.db`, `opencode.db-wal`, `opencode.db-shm`) as evidence of cacheable content. The WAL file matters specifically: because server shutdown kills the process without awaiting a checkpoint, a valid session can leave `opencode.db` at zero bytes with all data still in the `-wal` file, so any one non-empty member of the family is sufficient to proceed with the save. + ## Object Store (S3 Backup) GitHub Actions cache has a 10 GB limit per repository and entries expire after 7 days of inactivity. For repositories where losing agent memory would be costly, the optional S3-compatible object store backend (RFC-019) provides durable persistence that survives cache eviction. diff --git a/docs/wiki/index.md b/docs/wiki/index.md index c8a9de450d..2449cf11a1 100644 --- a/docs/wiki/index.md +++ b/docs/wiki/index.md @@ -1,6 +1,6 @@ --- type: index -last-updated: "2026-06-07" +last-updated: "2026-06-21" summary: "Navigable entry point for the Fro Bot Agent project wiki" --- @@ -26,6 +26,7 @@ An Obsidian-powered project wiki maintained by Fro Bot. This vault provides huma | [Session Persistence](Session%20Persistence.md) | subsystem | How agent memory survives across CI runs via cache, SDK sessions, S3 object store, and pruning | | [Prompt Architecture](Prompt%20Architecture.md) | subsystem | How the multi-section XML-tagged prompt is assembled and why each section exists | | [Setup and Configuration](Setup%20and%20Configuration.md) | subsystem | Tool installation, configuration assembly, credential management, cache strategy, and oMo opt-in | +| [Operator Web Control Surface](Operator%20Web%20Control%20Surface.md) | subsystem | Authenticated browser surface that lets operators launch and observe gateway agent runs over HTTP and SSE | ### Conventions diff --git a/package.json b/package.json index 47ae48d2d4..ec258e001f 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@bfra.me/es": "0.1.0", "@fro-bot/runtime": "workspace:*", "@octokit/auth-app": "8.2.0", - "@opencode-ai/sdk": "1.17.6" + "@opencode-ai/sdk": "1.17.9" }, "devDependencies": { "@bfra.me/eslint-config": "0.51.1", diff --git a/packages/harness/harness.config.json b/packages/harness/harness.config.json index 3a6c1c22fb..08f3963599 100644 --- a/packages/harness/harness.config.json +++ b/packages/harness/harness.config.json @@ -1,11 +1,13 @@ { "release_repo": "anomalyco/opencode", "source_repo": "https://github.com/anomalyco/opencode.git", - "base_version": "1.17.6", + "base_version": "1.17.9", "integrationRefs": [ "https://github.com/anomalyco/opencode/pull/19961", "https://github.com/anomalyco/opencode/pull/31859", - "https://github.com/anomalyco/opencode/pull/31638" + "https://github.com/anomalyco/opencode/pull/31638", + "https://github.com/anomalyco/opencode/pull/33134", + "https://github.com/anomalyco/opencode/pull/33159" ], "agent": "build", "model": "anthropic/claude-sonnet-4-6", diff --git a/packages/harness/prompt.txt b/packages/harness/prompt.txt index f02a6c1513..389da30e01 100644 --- a/packages/harness/prompt.txt +++ b/packages/harness/prompt.txt @@ -37,7 +37,23 @@ git checkout -b {{branch}} refs/tags/{{tag}} Use the local ref name (the part after the colon in the fetch command) as the merge target. If there are merge conflicts, resolve them completely before proceeding. -3. Build the host CLI. Run from the repo root ({{repo}}) — build.ts does its own chdir into packages/opencode: +3. Collapse the integration into a SINGLE commit on top of {{tag}}. + + After all refs are merged and every conflict is resolved, flatten the merge + history into one commit so the integration SHA is a fingerprint whose diff + against {{tag}} is the combined diff of all carried refs: + +```bash +git reset --soft {{tag}} +git commit -m "harness: integrate OpenCode {{version}} carrying {{branches}}" +``` + + `git reset --soft` keeps the merged working tree and index exactly as-is and + only discards the intermediate merge commits, so this does not change any + file content — it only flattens history. After this, {{branch}} has exactly + one commit above {{tag}}, and `git diff {{tag}}..HEAD` shows all carries. + +4. Build the host CLI. Run from the repo root ({{repo}}) — build.ts does its own chdir into packages/opencode: First install workspace dependencies: bun install @@ -45,7 +61,7 @@ git checkout -b {{branch}} refs/tags/{{tag}} Then run the upstream build script with release identity: OPENCODE_CHANNEL=latest OPENCODE_VERSION={{version}} bun ./packages/opencode/script/build.ts --single -4. Verify the built binary exists and reports the correct version: +5. Verify the built binary exists and reports the correct version: ```bash artifact="$(find packages/opencode/dist -path '*/bin/opencode' -type f -print -quit)" @@ -55,7 +71,7 @@ test -n "$artifact" || { echo "ERROR: built binary not found under packages/open The `--version` output must be exactly `{{version}}`. -5. Push the integrated branch to the throwaway ref in the harness repo. Do not push to `origin`; `origin` is upstream OpenCode. Run this exact non-interactive pattern (the heredoc terminator and the helper body must stay at column 0): +6. Push the integrated branch to the throwaway ref in the harness repo. Do not push to `origin`; `origin` is upstream OpenCode. Run this exact non-interactive pattern (the heredoc terminator and the helper body must stay at column 0): ```bash test -n "${GH_TOKEN:-}" || { echo "GH_TOKEN is required for harness push"; exit 1; } @@ -80,9 +96,9 @@ HUSKY=0 GIT_TERMINAL_PROMPT=0 GIT_ASKPASS="$askpass" \ `--force` is required so re-runs overwrite the throwaway ref. `--no-verify` is required so local hooks do not run. -6. Return a concise plain-text final assistant message only — no GitHub posting — with: +7. Return a concise plain-text final assistant message only — no GitHub posting — with: - pushed ref: `refs/harness-integrate/{{version}}` - - integration commit SHA: output of `git rev-parse HEAD` + - integration commit SHA: output of `git rev-parse HEAD` (the single squash commit) - built artifact path(s) under `packages/opencode/dist/` @@ -103,6 +119,7 @@ Requirements: - Name the branch {{branch}}. - Merge refs {{merges}} into {{branch}} in order. - If there are merge conflicts, resolve them completely. +- After merging and resolving conflicts, collapse the integration into a single commit on top of {{tag}} with `git reset --soft {{tag}}` then `git commit`. The pushed ref must have exactly one commit above {{tag}}; `git diff {{tag}}..HEAD` must contain all carried refs. - Build the host CLI. - The CLI must be compiled with stable release identity: OPENCODE_CHANNEL=latest and OPENCODE_VERSION={{version}}. - In this automation clone, `origin` is the upstream OpenCode repo ({{release_repo}}), not `fro-bot/agent`. Do not push to `origin`. diff --git a/packages/harness/src/cli.test.ts b/packages/harness/src/cli.test.ts index 553441f9bd..ad4cec08df 100644 --- a/packages/harness/src/cli.test.ts +++ b/packages/harness/src/cli.test.ts @@ -13,7 +13,7 @@ describe('getProvenance', () => { const p = getProvenance() // #then - expect(p.baseVersion).toBe('1.17.6') + expect(p.baseVersion).toBe('1.17.9') expect(Array.isArray(p.integrationRefs)).toBe(true) expect(p.integrationCommit).toBeNull() expect(p.buildSha).toBe('dev') diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 78c05ae814..7ac746fea5 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -21,6 +21,6 @@ }, "dependencies": { "@bfra.me/es": "0.1.0", - "@opencode-ai/sdk": "1.17.6" + "@opencode-ai/sdk": "1.17.9" } } diff --git a/packages/runtime/src/shared/constants.ts b/packages/runtime/src/shared/constants.ts index fa9e66d3f1..54c3588df7 100644 --- a/packages/runtime/src/shared/constants.ts +++ b/packages/runtime/src/shared/constants.ts @@ -23,7 +23,7 @@ export const DEFAULT_MODEL = { // the stock OpenCode binary with verified SHA256SUMS. Downloaded from fro-bot/agent // releases, checksum-verified, and fail-closed on mismatch — no silent stock fallback. // FALLBACK_VERSION (in opencode.ts) is the plain stock base used when latest-fetch fails. -export const DEFAULT_OPENCODE_VERSION = '1.17.6+harness.13169873' +export const DEFAULT_OPENCODE_VERSION = '1.17.9+harness.bd89c818' export const DEFAULT_BUN_VERSION = '1.3.14' export const DEFAULT_OMO_VERSION = '3.17.15' // OMO Slim (oh-my-opencode-slim) pinned version. Stable line only — the 2.0.0-beta diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d440680db8..aaaa2348ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -55,8 +55,8 @@ importers: specifier: 8.2.0 version: 8.2.0 '@opencode-ai/sdk': - specifier: 1.17.6 - version: 1.17.6 + specifier: 1.17.9 + version: 1.17.9 devDependencies: '@bfra.me/eslint-config': specifier: 0.51.1 @@ -173,8 +173,8 @@ importers: specifier: 0.1.0 version: 0.1.0 '@opencode-ai/sdk': - specifier: 1.17.6 - version: 1.17.6 + specifier: 1.17.9 + version: 1.17.9 packages: @@ -785,8 +785,8 @@ packages: '@octokit/webhooks-types@7.6.1': resolution: {integrity: sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw==} - '@opencode-ai/sdk@1.17.6': - resolution: {integrity: sha512-kCzdd9Git2sjDjXSHj4mMWuU1RXZ38d7gFEcq2rzlVz7XV6PPwNw8pelWsk99La2CtDkpfoW5lfHnpCaK6/oBQ==} + '@opencode-ai/sdk@1.17.9': + resolution: {integrity: sha512-MHmXEpGPHkg14v1p+cUlIOUxd6DQdSElfau9nqY7tcDI0x5r4Y8D0dKXcyAh0Gc73ptaGW67Vg84nkcV6O27Pw==} '@ota-meshi/ast-token-store@0.3.0': resolution: {integrity: sha512-XRO0zi2NIUKq2lUk3T1ecFSld1fMWRKE6naRFGkgkdeosx7IslyUKNv5Dcb5PJTja9tHJoFu0v/7yEpAkrkrTg==} @@ -5495,7 +5495,7 @@ snapshots: '@octokit/webhooks-types@7.6.1': {} - '@opencode-ai/sdk@1.17.6': + '@opencode-ai/sdk@1.17.9': dependencies: cross-spawn: 7.0.6 diff --git a/src/features/agent/live-probe-1.17.9.test.ts b/src/features/agent/live-probe-1.17.9.test.ts new file mode 100644 index 0000000000..c87eb280ea --- /dev/null +++ b/src/features/agent/live-probe-1.17.9.test.ts @@ -0,0 +1,395 @@ +/** + * Live integration probe for OpenCode 1.17.9 SDK streaming path. + * + * Gate: OPENCODE_LIVE_PROBE=1 (skipped in normal CI) + * + * Proves the real harness consumer path (createOpencode → event.subscribe → + * promptAsync → runPromptAttempt) works end-to-end against a stock isolated + * 1.17.9 server. The prompt is sent directly via promptAsync (not through the + * arming/startPrompt path); runPromptAttempt handles stream processing and the + * poll/v2-wait completion signal. + * + * Run: OPENCODE_LIVE_PROBE=1 pnpm vitest run src/features/agent/live-probe-1.17.9.test.ts + */ +import type {Event} from '@opencode-ai/sdk' +import * as childProcess from 'node:child_process' +import * as fs from 'node:fs' +import * as os from 'node:os' +import * as path from 'node:path' +import {createOpencode} from '@opencode-ai/sdk' +import {createOpencodeClient} from '@opencode-ai/sdk/v2' +import {describe, expect, it} from 'vitest' +import {createLogger} from '../../shared/logger.js' +import {runPromptAttempt} from './retry.js' + +const PROBE_ENABLED = process.env.OPENCODE_LIVE_PROBE === '1' +const PROBE_TIMEOUT_MS = 120_000 // 2 minutes for LLM response + +// --------------------------------------------------------------------------- +// Resolve the real bun binary at module load time (before any env changes). +// Bypasses mise shims which may be broken. +// --------------------------------------------------------------------------- + +function resolveBunBinaryAtLoad(): string { + // Try common mise install paths for bun 1.3.14 (the pinned version) + const realHome = os.homedir() // real HOME before any env mutation + const misePaths = [ + path.join(realHome, '.local', 'share', 'mise', 'installs', 'bun', '1.3.14', 'bin', 'bun'), + path.join(realHome, '.local', 'share', 'mise', 'installs', 'bun', '1.3', 'bin', 'bun'), + path.join(realHome, '.local', 'share', 'mise', 'installs', 'bun', 'latest', 'bin', 'bun'), + ] + for (const p of misePaths) { + if (fs.existsSync(p)) { + try { + const version = childProcess + .execSync(`"${p}" --version`, {encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe']}) + .trim() + if (version.length > 0) return p + } catch { + // try next + } + } + } + // Fall back to PATH resolution (may be a shim, but try anyway) + try { + return childProcess.execSync('which bun', {encoding: 'utf8'}).trim() + } catch { + throw new Error('Cannot find bun binary — install bun or set up mise correctly') + } +} + +// Resolved once at module load, before any env mutations +const BUN_BIN = PROBE_ENABLED ? resolveBunBinaryAtLoad() : '/usr/bin/false' + +// --------------------------------------------------------------------------- +// Isolated environment helpers +// --------------------------------------------------------------------------- + +interface IsolatedEnv { + readonly home: string + readonly binDir: string + readonly opencodeBin: string + readonly originalEnv: Record +} + +function createIsolatedEnv(suffix: string): IsolatedEnv { + const home = fs.mkdtempSync(path.join(os.tmpdir(), `oc-probe-${suffix}-`)) + const binDir = path.join(home, 'bin') + fs.mkdirSync(binDir, {recursive: true}) + + // Create a wrapper script that calls `bun x opencode-ai@1.17.9` + const opencodeBin = path.join(binDir, 'opencode') + fs.writeFileSync( + opencodeBin, + `#!/bin/sh +exec "${BUN_BIN}" x opencode-ai@1.17.9 "$@" +`, + {mode: 0o755}, + ) + + // Save original env values + const originalEnv: Record = { + HOME: process.env.HOME, + PATH: process.env.PATH, + XDG_CONFIG_HOME: process.env.XDG_CONFIG_HOME, + XDG_DATA_HOME: process.env.XDG_DATA_HOME, + XDG_CACHE_HOME: process.env.XDG_CACHE_HOME, + } + + // Apply isolated env + process.env.HOME = home + process.env.PATH = `${binDir}:${originalEnv.PATH ?? ''}` + process.env.XDG_CONFIG_HOME = path.join(home, '.config') + process.env.XDG_DATA_HOME = path.join(home, '.local', 'share') + process.env.XDG_CACHE_HOME = path.join(home, '.cache') + + return {home, binDir, opencodeBin, originalEnv} +} + +function restoreEnv(originalEnv: Record): void { + for (const [key, value] of Object.entries(originalEnv)) { + if (value == null) { + delete process.env[key] + } else { + process.env[key] = value + } + } +} + +function cleanupIsolatedEnv(env: IsolatedEnv): void { + restoreEnv(env.originalEnv) + try { + fs.rmSync(env.home, {recursive: true, force: true}) + } catch { + // best-effort cleanup + } +} + +// --------------------------------------------------------------------------- +// Probe suite +// --------------------------------------------------------------------------- + +// IMPORTANT: This suite MUST remain gated behind OPENCODE_LIVE_PROBE (describe.skipIf) +// because createIsolatedEnv mutates global process.env (HOME, PATH, XDG_*) and restores +// it in a finally block. Running concurrently with the normal suite (Vitest parallel +// file execution) would cause env bleed into sibling test files. +describe.skipIf(!PROBE_ENABLED)('OpenCode 1.17.9 live integration probe', {timeout: PROBE_TIMEOUT_MS}, () => { + const logger = createLogger({component: 'probe'}) + + it('streams tool execution and final text via real harness consumer path', {timeout: PROBE_TIMEOUT_MS}, async () => { + const env = createIsolatedEnv('main') + const abortController = new AbortController() + let opencode: Awaited> | null = null + + try { + // ----------------------------------------------------------------------- + // Verify the binary version before starting the server + // ----------------------------------------------------------------------- + const versionOutput = childProcess + .execSync(`"${env.opencodeBin}" --version`, {encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe']}) + .trim() + console.log('[probe] opencode binary version:', versionOutput) + expect(versionOutput).toContain('1.17.9') + console.log('[probe] Isolated HOME:', env.home) + + // ----------------------------------------------------------------------- + // Start an isolated stock 1.17.9 server + // + // Config: + // - permission.bash = "allow" → auto-allow bash tool (no interactive gate) + // - permission.edit = "allow" → auto-allow edits + // - model = "opencode/big-pickle" → free model, no auth required + // - isolated HOME/XDG means no global plugins load (--pure equivalent) + // ----------------------------------------------------------------------- + opencode = await createOpencode({ + signal: abortController.signal, + timeout: 30_000, + port: 0, // Random port to avoid conflicts + config: { + permission: { + bash: 'allow', + edit: 'allow', + webfetch: 'allow', + }, + model: 'opencode/big-pickle', + }, + }) + + const {client, server} = opencode + console.log('[probe] Server started at:', server.url) + + // ----------------------------------------------------------------------- + // Create a session + // ----------------------------------------------------------------------- + const sessionResponse = await client.session.create() + expect(sessionResponse.data).toBeDefined() + expect(sessionResponse.error).toBeFalsy() + const sessionId = sessionResponse.data!.id + console.log('[probe] Session created:', sessionId) + + // ----------------------------------------------------------------------- + // Drive the real harness path: sendPromptToSession → runPromptAttempt + // (mirrors what executeOpenCode does internally) + // ----------------------------------------------------------------------- + const directory = process.cwd() + const prompt = 'Run `echo hello_from_probe` using the bash tool and report the output.' + + // Subscribe to events BEFORE sending the prompt (mirrors harness ordering) + const eventSubscription = await client.event.subscribe() + const eventStream = eventSubscription.stream as AsyncIterable + + // Track observed events for assertions + const observedEventTypes: string[] = [] + let toolLineObserved = false + let finalTextObserved = false + let sessionIdleObserved = false + let sessionErrorObserved = false + + // Wrap the stream to capture event types for assertions + async function* instrumentedStream(): AsyncIterable { + for await (const event of eventStream) { + const eventType = (event as {type?: string}).type ?? 'unknown' + observedEventTypes.push(eventType) + + // Detect tool execution events (message.part.updated with tool/completed) + if (eventType === 'session.next.tool.success') { + toolLineObserved = true + console.log('[probe] ✓ session.next.tool.success observed') + } else if (eventType === 'message.part.updated') { + const props = (event as {properties?: unknown}).properties + const part = props != null && typeof props === 'object' ? (props as {part?: unknown}).part : undefined + const partType = part != null && typeof part === 'object' ? (part as {type?: string}).type : undefined + const toolState = part != null && typeof part === 'object' ? (part as {state?: unknown}).state : undefined + const status = + toolState != null && typeof toolState === 'object' ? (toolState as {status?: string}).status : undefined + if (partType === 'tool' && status === 'completed') { + toolLineObserved = true + console.log('[probe] ✓ message.part.updated tool/completed observed') + } + finalTextObserved = true + } + + if (eventType === 'message.part.delta') { + finalTextObserved = true + } + + if (eventType === 'session.idle') { + sessionIdleObserved = true + console.log('[probe] ✓ session.idle observed') + } + + if (eventType === 'session.error') { + sessionErrorObserved = true + console.log('[probe] ✗ session.error observed!') + } + + yield event + } + } + + // Send the prompt + const promptResponse = await client.session.promptAsync({ + path: {id: sessionId}, + body: { + parts: [{type: 'text', text: prompt}], + model: {providerID: 'opencode', modelID: 'big-pickle'}, + }, + query: {directory}, + }) + console.log('[probe] Prompt sent, response error:', promptResponse.error ?? 'none') + + // Run the real harness event processor (the actual consumer path) + const result = await runPromptAttempt( + client, + sessionId, + directory, + PROBE_TIMEOUT_MS, + logger, + instrumentedStream(), + server.url, + ) + + console.log('[probe] runPromptAttempt result:', { + success: result.success, + error: result.error, + llmError: result.llmError, + }) + console.log('[probe] Observed event types:', [...new Set(observedEventTypes)].join(', ')) + + // ----------------------------------------------------------------------- + // Assertions + // ----------------------------------------------------------------------- + + // 1. Tool execution rendered + expect(toolLineObserved, 'A tool execution event (bash) should have been observed').toBe(true) + + // 2. Final assistant text arrived (message.part.delta or message.part.updated) + expect(finalTextObserved, 'message.part.delta or message.part.updated events should have flowed').toBe(true) + + // 3. SSE events flowed + const hasStreamEvents = + observedEventTypes.includes('message.part.updated') || observedEventTypes.includes('message.part.delta') + expect(hasStreamEvents, 'SSE stream events (message.part.updated or message.part.delta) should have flowed').toBe( + true, + ) + + // 4. session.idle fired + expect(sessionIdleObserved, 'session.idle should have fired as terminal signal').toBe(true) + + // 5. No session.error + expect(sessionErrorObserved, 'session.error should NOT have been observed').toBe(false) + + // 6. runPromptAttempt succeeded + expect(result.success, `runPromptAttempt should succeed, got error: ${result.error ?? 'none'}`).toBe(true) + + console.log('[probe] ✓ All assertions passed') + } finally { + abortController.abort() + opencode?.server.close() + cleanupIsolatedEnv(env) + } + }) + + it('v2 session.wait surface: fallback behavior holds', {timeout: 30_000}, async () => { + // ----------------------------------------------------------------------- + // Smoke the v2 session.wait surface against a live server. + // The 1.17.3 cycle saw it return a structured "not available yet" error + // (ServiceUnavailableError), and the harness falls back to the poll watchdog. + // Confirm the fallback still holds: wait() either resolves or throws/errors, + // but never hangs indefinitely. + // ----------------------------------------------------------------------- + const env = createIsolatedEnv('v2wait') + const abortController = new AbortController() + let opencode: Awaited> | null = null + + try { + opencode = await createOpencode({ + signal: abortController.signal, + timeout: 30_000, + port: 0, // Random port to avoid conflicts + config: { + permission: {bash: 'allow', edit: 'allow'}, + model: 'opencode/big-pickle', + }, + }) + + const {client, server} = opencode + console.log('[probe:v2-wait] Server started at:', server.url) + + // Create a session + const sessionResponse = await client.session.create() + const sessionId = sessionResponse.data!.id + console.log('[probe:v2-wait] Session:', sessionId) + + // Create a v2 client attached to the same server + const v2Client = createOpencodeClient({baseUrl: server.url}) + + // Call v2.session.wait() — expect it to either: + // a) resolve with a response (success or structured error) + // b) throw (ServiceUnavailableError or similar) + // Either way, the harness poll-watchdog fallback handles it. + let waitResult: 'resolved' | 'threw' + let waitError: string | null = null + let waitResponse: unknown = null + + try { + // Use a short timeout signal so we don't hang if wait() blocks forever + const waitSignal = AbortSignal.timeout(10_000) + const response = await v2Client.v2.session.wait({sessionID: sessionId}, {signal: waitSignal}) + waitResult = 'resolved' + waitResponse = response + console.log('[probe:v2-wait] wait() resolved:', JSON.stringify(response).slice(0, 200)) + } catch (error) { + waitResult = 'threw' + waitError = error instanceof Error ? error.message : String(error) + console.log('[probe:v2-wait] wait() threw:', waitError) + } + + // The harness handles both cases gracefully — assert it's one or the other + expect(['resolved', 'threw']).toContain(waitResult) + + if (waitResult === 'resolved') { + // If it resolved, check for structured error (the 1.17.3 pattern) + const response = waitResponse as {error?: unknown} + if (response.error == null) { + console.log('[probe:v2-wait] ✓ wait() resolved successfully (v2 wait path)') + } else { + console.log( + '[probe:v2-wait] ✓ wait() returned structured error (poll-watchdog fallback path):', + response.error, + ) + } + } else { + console.log('[probe:v2-wait] ✓ wait() threw (poll-watchdog fallback path):', waitError) + } + + // The key assertion: the harness signature `wait({sessionID}, options?)` is valid + // (TypeScript would have caught a shape mismatch at compile time) + console.log('[probe:v2-wait] ✓ v2.session.wait({sessionID}, options?) signature is valid in 1.17.9') + } finally { + abortController.abort() + opencode?.server.close() + cleanupIsolatedEnv(env) + } + }) +}) diff --git a/src/services/setup/opencode.ts b/src/services/setup/opencode.ts index 414c48ad29..8261c93b67 100644 --- a/src/services/setup/opencode.ts +++ b/src/services/setup/opencode.ts @@ -16,7 +16,7 @@ const HARNESS_MARKER = '+harness.' * Known stable stock version for fallback when latest-fetch fails or for non-harness paths. * This is a plain anomalyco/opencode release — not a harness build. */ -export const FALLBACK_VERSION = '1.17.6' +export const FALLBACK_VERSION = '1.17.9' /** * Semver-ish pattern for version validation (defense-in-depth, path-traversal guard). diff --git a/tsdown.config.test.ts b/tsdown.config.test.ts index 86415ec5cf..093e3c0d49 100644 --- a/tsdown.config.test.ts +++ b/tsdown.config.test.ts @@ -1,5 +1,5 @@ import {describe, expect, it} from 'vitest' -import {assertVersionPresent} from './tsdown.config.js' +import {assertVersionPresent, formatThirdPartyNotices, type LicenseEntry} from './tsdown.config.js' describe('assertVersionPresent', () => { it('throws when the expected version is absent from every chunk', () => { @@ -42,3 +42,75 @@ describe('assertVersionPresent', () => { expect(() => assertVersionPresent(expected, chunkContents)).toThrowError('1.17.3+harness.2c9cdbd2') }) }) + +describe('formatThirdPartyNotices', () => { + it('formats entries as name@version + license type + content, sorted by name', () => { + // #given two packages in reverse alphabetical order + const entries = new Map([ + ['zlib', {version: '1.2.3', license: 'MIT', content: 'MIT License text'}], + ['acorn', {version: '8.0.0', license: 'MIT', content: 'Acorn license text'}], + ]) + + // #when formatting + const result = formatThirdPartyNotices(entries) + + // #then output is sorted alphabetically by package name + expect(result).toBe('acorn@8.0.0\nMIT\nAcorn license text\n\nzlib@1.2.3\nMIT\nMIT License text') + }) + + it('normalizes CRLF line endings to LF', () => { + // #given a package whose license content uses Windows line endings + const entries = new Map([['pkg', {version: '1.0.0', license: 'Apache-2.0', content: 'line1\r\nline2\r\nline3'}]]) + + // #when formatting + const result = formatThirdPartyNotices(entries) + + // #then CRLF is replaced with LF throughout + expect(result).not.toContain('\r\n') + expect(result).toContain('line1\nline2\nline3') + }) + + it('produces identical output for the same input (determinism)', () => { + // #given a fixed set of license entries + const entries = new Map([ + ['react', {version: '18.2.0', license: 'MIT', content: 'React MIT license'}], + ['typescript', {version: '5.0.0', license: 'Apache-2.0', content: 'TypeScript Apache license'}], + ]) + + // #when formatting twice + const first = formatThirdPartyNotices(entries) + const second = formatThirdPartyNotices(entries) + + // #then both runs produce byte-identical output + expect(first).toBe(second) + }) + + it('returns an empty string for an empty map', () => { + // #given no license entries + const entries = new Map() + + // #when formatting + const result = formatThirdPartyNotices(entries) + + // #then output is empty + expect(result).toBe('') + }) + + it('separates entries with a blank line', () => { + // #given two packages + const entries = new Map([ + ['alpha', {version: '1.0.0', license: 'MIT', content: 'Alpha license'}], + ['beta', {version: '2.0.0', license: 'BSD-2-Clause', content: 'Beta license'}], + ]) + + // #when formatting + const result = formatThirdPartyNotices(entries) + + // #then entries are separated by a blank line (double newline) + expect(result).toContain('\n\n') + const parts = result.split('\n\n') + expect(parts).toHaveLength(2) + expect(parts[0]).toBe('alpha@1.0.0\nMIT\nAlpha license') + expect(parts[1]).toBe('beta@2.0.0\nBSD-2-Clause\nBeta license') + }) +}) diff --git a/tsdown.config.ts b/tsdown.config.ts index 5e8cc7fc93..7be973f33c 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -174,21 +174,48 @@ function escapeHiddenUnicodePlugin(): Plugin { } } +export interface LicenseEntry { + readonly version: string + readonly license: string + readonly content: string +} + +/** + * Formats collected license entries into the THIRD_PARTY_NOTICES output string. + * Sorts by package name (locale-aware), normalizes line endings to LF. + * Exported for unit testing. + * + * Attribution keeps the highest resolved version's license text per package. + * This is safe when the license text is identical across resolved versions of + * the same package, which holds for the vast majority of npm packages. The CI + * CycloneDX SBOM (pnpm sbom) is the complete per-version inventory. + */ +export function formatThirdPartyNotices(entries: ReadonlyMap): string { + return Array.from(entries.entries()) + .sort(([a], [b]) => a.localeCompare(b)) + .map(([name, {version, license, content}]) => `${name}@${version}\n${license}\n${content}`) + .join('\n\n') + .replaceAll('\r\n', '\n') +} + function licenseCollectorPlugin(): Plugin { return { name: 'license-collector', async writeBundle() { - const highestVersions = new Map() + const highestVersions = new Map() const licenseTypeMap = buildLicenseTypeMap(await getPnpmLicensesJson()) + // Fail closed: license collection reads resolved license text from installed + // node_modules, so a total failure here means the notice would be incomplete. + // Throw rather than write nothing (a missing per-dependency license is handled + // by generate-license-file and does not reach this catch). let licenses: Awaited> try { licenses = await getProjectLicenses('./package.json') } catch (error) { - console.warn( - `[license-collector] getProjectLicenses failed (${error instanceof Error ? error.message : String(error)}); preserving existing licenses.txt`, + throw new Error( + `[license-collector] license collection failed; cannot produce THIRD_PARTY_NOTICES.txt: ${error instanceof Error ? error.message : String(error)}`, ) - return } for (const license of licenses) { @@ -203,7 +230,6 @@ function licenseCollectorPlugin(): Plugin { highestVersions.set(pkgName, { version, license: licenseType, - content: license.content, }) } @@ -211,12 +237,7 @@ function licenseCollectorPlugin(): Plugin { } } - const output = Array.from(highestVersions.entries()) - .sort(([a], [b]) => a.localeCompare(b)) - .map(([name, {version, license, content}]) => `${name}@${version}\n${license}\n${content}`) - .join('\n\n') - - await writeFile('dist/licenses.txt', output.replaceAll('\r\n', '\n')) + await writeFile('dist/THIRD_PARTY_NOTICES.txt', formatThirdPartyNotices(highestVersions)) }, } }