diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..3b08efdc --- /dev/null +++ b/.clang-format @@ -0,0 +1,215 @@ +# SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# please use clang-format version 16 or later + +Standard: c++20 +AccessModifierOffset: -8 +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignEscapedNewlines: Left +AlignOperands: true +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: false +AllowShortLambdasOnASingleLine: Inline +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: false +BinPackArguments: true +BinPackParameters: true +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Custom +BreakBeforeTernaryOperators: true +BreakConstructorInitializers: BeforeColon +BreakStringLiterals: false # apparently unpredictable +ColumnLimit: 120 +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 8 +ContinuationIndentWidth: 8 +Cpp11BracedListStyle: true +DerivePointerAlignment: false +DisableFormat: false +FixNamespaceComments: true +ForEachMacros: + - 'json_object_foreach' + - 'json_object_foreach_safe' + - 'json_array_foreach' + - 'HASH_ITER' +IncludeBlocks: Preserve +IndentCaseLabels: false +IndentPPDirectives: None +IndentWidth: 8 +IndentWrappedFunctionNames: false +KeepEmptyLinesAtTheStartOfBlocks: true +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCBinPackProtocolList: Auto +ObjCBlockIndentWidth: 8 +ObjCSpaceAfterProperty: true +ObjCSpaceBeforeProtocolList: true + +PenaltyBreakAssignment: 10 +PenaltyBreakBeforeFirstCallParameter: 30 +PenaltyBreakComment: 10 +PenaltyBreakFirstLessLess: 0 +PenaltyBreakString: 10 +PenaltyExcessCharacter: 100 +PenaltyReturnTypeOnItsOwnLine: 60 + +PointerAlignment: Right +ReflowComments: false +SkipMacroDefinitionBody: true +SortIncludes: false +SortUsingDeclarations: false +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +StatementMacros: + - 'Q_OBJECT' +TabWidth: 8 +TypenameMacros: + - 'DARRAY' +UseTab: ForContinuationAndIndentation +--- +Language: ObjC +AccessModifierOffset: 2 +AlignArrayOfStructures: Right +AlignConsecutiveAssignments: None +AlignConsecutiveBitFields: None +AlignConsecutiveDeclarations: None +AlignConsecutiveMacros: + Enabled: true + AcrossEmptyLines: false + AcrossComments: true +AllowShortBlocksOnASingleLine: Never +AllowShortEnumsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: None +AttributeMacros: ['__unused', '__autoreleasing', '_Nonnull', '__bridge'] +BitFieldColonSpacing: Both +#BreakBeforeBraces: Webkit +BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: false + AfterClass: true + AfterControlStatement: Never + AfterEnum: false + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + BeforeLambdaBody: false + BeforeWhile: false + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyRecord: false + SplitEmptyNamespace: true +BreakAfterAttributes: Never +BreakArrays: false +BreakBeforeConceptDeclarations: Allowed +BreakBeforeInlineASMColon: OnlyMultiline +BreakConstructorInitializers: AfterColon +BreakInheritanceList: AfterComma +ColumnLimit: 120 +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +EmptyLineAfterAccessModifier: Never +EmptyLineBeforeAccessModifier: LogicalBlock +ExperimentalAutoDetectBinPacking: false +FixNamespaceComments: true +IndentAccessModifiers: false +IndentCaseBlocks: false +IndentCaseLabels: true +IndentExternBlock: Indent +IndentGotoLabels: false +IndentRequiresClause: true +IndentWidth: 4 +IndentWrappedFunctionNames: true +InsertBraces: false +InsertNewlineAtEOF: true +KeepEmptyLinesAtTheStartOfBlocks: false +LambdaBodyIndentation: Signature +NamespaceIndentation: All +ObjCBinPackProtocolList: Auto +ObjCBlockIndentWidth: 4 +ObjCBreakBeforeNestedBlockParam: false +ObjCSpaceAfterProperty: true +ObjCSpaceBeforeProtocolList: true +PPIndentWidth: -1 +PackConstructorInitializers: NextLine +QualifierAlignment: Leave +ReferenceAlignment: Right +RemoveSemicolon: false +RequiresClausePosition: WithPreceding +RequiresExpressionIndentation: OuterScope +SeparateDefinitionBlocks: Leave +ShortNamespaceLines: 1 +SortIncludes: false +#SortUsingDeclarations: LexicographicNumeric +SortUsingDeclarations: true +SpaceAfterCStyleCast: true +SpaceAfterLogicalNot: false +SpaceAroundPointerQualifiers: Default +SpaceBeforeCaseColon: false +SpaceBeforeCpp11BracedList: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceBeforeSquareBrackets: false +SpaceInEmptyBlock: false +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 2 +SpacesInConditionalStatement: false +SpacesInLineCommentPrefix: + Minimum: 1 + Maximum: -1 +Standard: c++20 +TabWidth: 4 +UseTab: Never diff --git a/.devcontainer/debian-forky/Dockerfile b/.devcontainer/debian-forky/Dockerfile new file mode 100644 index 00000000..604ab4a5 --- /dev/null +++ b/.devcontainer/debian-forky/Dockerfile @@ -0,0 +1,41 @@ +# syntax=docker/dockerfile:1 + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +FROM debian:forky-slim + +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + clang-format-19 \ + cmake \ + curl \ + file \ + git \ + libcurl4-openssl-dev \ + libobs-dev \ + libonnxruntime-dev \ + libopencv-dev \ + ninja-build \ + python3.13-venv \ + sudo \ + tar \ + unzip \ + zip \ + && rm -rf /var/lib/apt/lists/* + +COPY --chmod=400 <<'EOF' /etc/sudoers.d/vscode +vscode ALL=(ALL) NOPASSWD: ALL +EOF + +RUN groupadd -g 1000 vscode && useradd -u 1000 -g vscode -m vscode -s /bin/bash + +USER vscode + +RUN python3.13 -m venv /home/vscode/.venv && /home/vscode/.venv/bin/pip install --no-cache-dir gersemi + +CMD ["/bin/bash"] + +ENV PATH="/home/vscode/.venv/bin:$PATH" diff --git a/.devcontainer/debian-forky/devcontainer.json b/.devcontainer/debian-forky/devcontainer.json new file mode 100644 index 00000000..225dca21 --- /dev/null +++ b/.devcontainer/debian-forky/devcontainer.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json", + "name": "Debian Forky", + "build": { + "dockerfile": "Dockerfile" + }, + "remoteUser": "vscode", + "updateRemoteUserUID": true, + "containerEnv": { + "PLUGIN_BUILD_DIR": "/home/vscode/obs-backgroundremoval-build" + }, + "postCreateCommand": "bin/setup", + "customizations": { + "vscode": { + "extensions": [ + "editorconfig.editorconfig", + "ms-vscode.cmake-tools", + "ms-vscode.cpp-devtools", + "ms-vscode.cpptools-extension-pack" + ] + } + } +} diff --git a/.devcontainer/debian-forky/devcontainer.json.license b/.devcontainer/debian-forky/devcontainer.json.license new file mode 100644 index 00000000..074590b4 --- /dev/null +++ b/.devcontainer/debian-forky/devcontainer.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/.devcontainer/ubuntu-resolute/Dockerfile b/.devcontainer/ubuntu-resolute/Dockerfile new file mode 100644 index 00000000..5da73cfd --- /dev/null +++ b/.devcontainer/ubuntu-resolute/Dockerfile @@ -0,0 +1,41 @@ +# syntax=docker/dockerfile:1 + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +FROM ubuntu:resolute + +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + clang-format-19 \ + cmake \ + curl \ + file \ + git \ + libcurl4-openssl-dev \ + libobs-dev \ + libonnxruntime-dev \ + libopencv-dev \ + ninja-build \ + python3.14-venv \ + sudo \ + tar \ + unzip \ + zip \ + && rm -rf /var/lib/apt/lists/* + +COPY --chmod=400 <<'EOF' /etc/sudoers.d/vscode +vscode ALL=(ALL) NOPASSWD: ALL +EOF + +RUN userdel ubuntu && rm -rf /home/ubuntu && groupadd -g 1000 vscode && useradd -u 1000 -g vscode -m vscode -s /bin/bash + +USER vscode + +RUN python3.14 -m venv /home/vscode/.venv && /home/vscode/.venv/bin/pip install --no-cache-dir gersemi + +CMD ["/bin/bash"] + +ENV PATH="/home/vscode/.venv/bin:$PATH" diff --git a/.devcontainer/ubuntu-resolute/devcontainer.json b/.devcontainer/ubuntu-resolute/devcontainer.json new file mode 100644 index 00000000..7ecc5042 --- /dev/null +++ b/.devcontainer/ubuntu-resolute/devcontainer.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json", + "name": "Ubuntu Resolute", + "build": { + "dockerfile": "Dockerfile" + }, + "remoteUser": "vscode", + "updateRemoteUserUID": true, + "containerEnv": { + "PLUGIN_BUILD_DIR": "/home/vscode/obs-backgroundremoval-build" + }, + "postCreateCommand": "bin/setup", + "customizations": { + "vscode": { + "extensions": [ + "editorconfig.editorconfig", + "ms-vscode.cmake-tools", + "ms-vscode.cpp-devtools", + "ms-vscode.cpptools-extension-pack" + ] + } + } +} diff --git a/.devcontainer/ubuntu-resolute/devcontainer.json.license b/.devcontainer/ubuntu-resolute/devcontainer.json.license new file mode 100644 index 00000000..074590b4 --- /dev/null +++ b/.devcontainer/ubuntu-resolute/devcontainer.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cd3412e0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: CC0-1.0 + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false + +[VERSION] +insert_final_newline = false diff --git a/.gersemirc b/.gersemirc new file mode 100644 index 00000000..23cafc06 --- /dev/null +++ b/.gersemirc @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/master/gersemi/configuration.schema.json + +definitions: [] +line_length: 120 +indent: 2 +list_expansion: favour-inlining +unsafe: false +warn_about_unknown_commands: false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..1b06f3eb --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.github/workflows/*.lock.yml linguist-generated=true merge=ours diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..d559eb87 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,6 @@ +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: CC0-1.0 + +github: [royshil,umireon] diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 00000000..128b525a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,138 @@ +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +name: Bug Report +description: Report a bug or crash +labels: bug +assignees: umireon +body: + - type: markdown + id: md_welcome + attributes: + value: | + ## 🐞 Bug Report for OBS Background Removal + + Please fill out **all required fields**. Incomplete reports may be closed without investigation. + - Attach an OBS log file (see below). + - For crashes, attach a crash log if available. + - Check existing issues before submitting a new one. + + **Note:** Developers are human too—please be polite and respectful in your communication. + Also, please understand that development time and resources are limited. + + - type: dropdown + id: os_info + attributes: + label: Operating System + description: Which operating system are you using? + options: + - Windows 11 + - Windows 10 + - macOS 26 + - macOS 15 + - macOS 14 + - macOS 13 + - macOS 12 + - macOS 11 + - Ubuntu 24.04 + - Arch Linux + - Other (please specify below) + validations: + required: true + + - type: input + id: os_info_other + attributes: + label: Other OS (if not listed above) + description: Specify your OS if you selected "Other". + placeholder: "e.g., Fedora 39, FreeBSD 13.2" + validations: + required: false + + - type: input + id: plugin_version + attributes: + label: Plugin Version + description: What version of OBS Background Removal are you using? + placeholder: "e.g., 1.0.0, 1.0.0-beta1, git-abcdef" + validations: + required: true + + - type: input + id: obs_version + attributes: + label: OBS Studio Version + description: Which version of OBS Studio are you using? (e.g., 32.0.2, 33.0.0-beta1, git-abcdef) + placeholder: "e.g., 32.0.2, 33.0.0-beta1, git-abcdef" + validations: + required: true + + - type: input + id: obs_log_url + attributes: + label: OBS Studio Log URL + description: | + Please provide the obsproject.com URL to the OBS log file where this issue occurred. + **Bug reports without a log file will be closed.** + (Help menu > Log Files > Upload Current/Previous Log File) + placeholder: "https://obsproject.com/logs/xxxxxxx" + validations: + required: true + + - type: input + id: obs_crash_log_url + attributes: + label: OBS Studio Crash Log URL (if applicable) + description: If this is a crash report, provide the obsproject.com URL to the crash log file. + placeholder: "https://obsproject.com/logs/xxxxxxx" + validations: + required: false + + - type: textarea + id: expected_behavior + attributes: + label: Expected Behavior + description: What did you expect to happen? + placeholder: "Describe what should have happened." + validations: + required: true + + - type: textarea + id: current_behavior + attributes: + label: Actual Behavior + description: What actually happened? + placeholder: "Describe what actually happened, including error messages if any." + validations: + required: true + + - type: textarea + id: steps_to_reproduce + attributes: + label: Steps to Reproduce + description: How can we reproduce this bug? Please provide step-by-step instructions. + placeholder: | + 1. ... + 2. ... + 3. ... + validations: + required: true + + - type: textarea + id: additional_notes + attributes: + label: Additional Notes / Screenshots + description: Add any other context, screenshots, or information that might help us understand the issue. + validations: + required: false + + - type: checkboxes + id: confirm_log + attributes: + label: Confirmation + description: Please confirm the following before submitting. + options: + - label: I have attached the required OBS log file(s). + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..d4d93ee4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +blank_issues_enabled: false + +contact_links: + - name: 💬 GitHub Discussions + url: https://github.com/kaito-tokyo/live-backgroundremoval-lite/discussions + about: Ask questions, get help, or start discussions with the community + + - name: 🌐 Official Website + url: https://kaito-tokyo.github.io/live-backgroundremoval-lite/ + about: Find installation guides, usage instructions, and official documentation diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 00000000..03e69ff1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,59 @@ +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +name: Feature Request +description: Suggest an idea or improvement for this project +labels: enhancement +assignees: umireon +body: + - type: markdown + id: md_welcome + attributes: + value: | + ## 💡 Feature Request for OBS Background Removal + + Please fill out the form below to suggest a new feature or improvement. + - Check existing issues before submitting a new one. + - Provide as much detail as possible. + + **Note:** Developers are human too—please be polite and respectful in your communication. + Also, please understand that development time and resources are limited. + + - type: textarea + id: problem + attributes: + label: Is your feature request related to a problem? + description: Describe the problem you are experiencing. (If not, you can leave this blank.) + placeholder: "I'm always frustrated when ..." + validations: + required: false + + - type: textarea + id: solution + attributes: + label: Describe the solution you'd like + description: What do you want to happen? Please be as specific as possible. + placeholder: "I would like to see ..." + validations: + required: true + + - type: textarea + id: technical_basis + attributes: + label: Technical Justification / Feasibility + description: | + Please explain why you believe this feature is technically feasible, or provide ideas on how it could be implemented. + (For example: reference to APIs, libraries, similar plugins, or technical documentation.) + placeholder: "This should be possible because ... (e.g., OBS provides an API for ..., or similar functionality exists in ...)" + validations: + required: true + + - type: textarea + id: additional_context + attributes: + label: Additional context + description: Add any other context, links, or screenshots about the feature request here. + validations: + required: false diff --git a/.github/actions/setup-ccache/action.yml b/.github/actions/setup-ccache/action.yml new file mode 100644 index 00000000..2e509390 --- /dev/null +++ b/.github/actions/setup-ccache/action.yml @@ -0,0 +1,73 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +name: Set up ccache +description: Set up ccache, and verify its installation. + +# file: .github/actions/setup-ccache/action.yml +# author: Kaito Udagawa +# version: 1.1.0 +# date: 2026-03-30 + +inputs: + version: + description: Version of ccache to install. + required: false + default: '4.12.3' + verify: + description: Whether to verify downloaded ccache. + required: false + default: 'true' + +outputs: + VERSION: + description: Version of ccache installed. + value: ${{ inputs.version }} + +runs: + using: composite + steps: + - name: Install ccache + id: install + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_PUBKEY: 'RWQX7yXbBedVfI4PNx6FLdFXu9GHUFsr28s4BVGxm4BeybtnX3P06saF' + INPUT_VERSION: '${{ inputs.version }}' + INPUT_VERIFY: '${{ inputs.verify }}' + run: | + BIN_DIR="$(mktemp -d -p "$RUNNER_TEMP" setup-ccache-bin.XXXXXXXXXX)" + DOWNLOAD_DIR="$(mktemp -d -p "$RUNNER_TEMP" setup-ccache-download.XXXXXXXXXX)" + + case "$RUNNER_OS" in + macOS) FILE="ccache-$INPUT_VERSION-darwin.tar.gz" ;; + Linux) FILE="ccache-$INPUT_VERSION-linux-x86_64.tar.xz" ;; + Windows) FILE="ccache-$INPUT_VERSION-windows-x86_64.zip" ;; + * ) echo "Unsupported OS: $RUNNER_OS" >&2; exit 1 ;; + esac + + cd "$DOWNLOAD_DIR" + curl -fsSL \ + -O "https://github.com/ccache/ccache/releases/download/v$INPUT_VERSION/$FILE" \ + -O "https://github.com/ccache/ccache/releases/download/v$INPUT_VERSION/$FILE.minisig" + + + if [[ "$INPUT_VERIFY" == true ]]; then + node "$GITHUB_ACTION_PATH/verify-js/minisign-verify-cli.mjs" -V -P "$CCACHE_PUBKEY" -m "$FILE" + fi + + if [[ "$RUNNER_OS" == Windows ]]; then + unzip -o "$FILE" + cp ccache-*/ccache.exe "$BIN_DIR/ccache.exe" + cygpath -w "$BIN_DIR" >> "$GITHUB_PATH" + else + tar -xf "$FILE" + cp ccache-*/ccache "$BIN_DIR/" + chmod +x "$BIN_DIR/ccache" || true + echo "$BIN_DIR" >> "$GITHUB_PATH" + fi + + - name: Show ccache version + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + ccache --version diff --git a/.github/actions/setup-ccache/verify-js/base64.mjs b/.github/actions/setup-ccache/verify-js/base64.mjs new file mode 100644 index 00000000..575f8511 --- /dev/null +++ b/.github/actions/setup-ccache/verify-js/base64.mjs @@ -0,0 +1,57 @@ +// SPDX-FileCopyrightText: 2026 Kaito Udagawa +// +// SPDX-License-Identifier: Apache-2.0 + +/** + * @file @kaito-tokyo/minisign-verify/verify-js/base64.mjs + * Base64 utilities for Modern JavaScript environments. + * @version 0.1.3 + * @since 2026-03-29 + */ + +/** + * Encodes an ArrayBuffer to a Base64url-string. + * @template {ArrayBufferLike} TArrayBuffer + * @param {TArrayBuffer | ArrayBufferView} arrayBuffer + * @return {string} + */ +export function arrayBufferToBase64url(arrayBuffer) { + const uint8Array = arrayBufferToUint8Array(arrayBuffer); + + if ('toBase64' in uint8Array && typeof uint8Array.toBase64 === "function") { + return uint8Array.toBase64({ alphabet: "base64url", omitPadding: true }); + } else if (typeof Buffer !== "undefined") { + return Buffer.from(uint8Array).toString("base64url"); + } else { + throw new Error("Base64EncodingNotSupportedError"); + } +} + +/** + * Returns a Uint8Array from ArrayBuffer efficiently. + * @template {ArrayBufferLike} TArrayBuffer + * @param {TArrayBuffer | ArrayBufferView} arrayBuffer + * @returns {Uint8Array} + */ +export function arrayBufferToUint8Array(arrayBuffer) { + if (ArrayBuffer.isView(arrayBuffer)) { + return new Uint8Array(arrayBuffer.buffer, arrayBuffer.byteOffset, arrayBuffer.byteLength); + } else { + return new Uint8Array(arrayBuffer); + } +} + +/** + * Decodes a Base64-string to a Uint8Array. + * @param {string} base64String + * @return {Uint8Array} + */ +export function base64ToUint8Array(base64String) { + if ('fromBase64' in Uint8Array && typeof Uint8Array.fromBase64 === "function") { + return Uint8Array.fromBase64(base64String); + } else if (typeof Buffer !== "undefined") { + return Buffer.from(base64String, "base64"); + } else { + throw new Error("Base64DecodingNotSupportedError"); + } +} diff --git a/.github/actions/setup-ccache/verify-js/index.mjs b/.github/actions/setup-ccache/verify-js/index.mjs new file mode 100644 index 00000000..a72ebb7d --- /dev/null +++ b/.github/actions/setup-ccache/verify-js/index.mjs @@ -0,0 +1,132 @@ +// SPDX-FileCopyrightText: 2026 Kaito Udagawa +// +// SPDX-License-Identifier: Apache-2.0 + +/** + * @file @kaito-tokyo/minisign-verify/verify-js/index.mjs + * Easy-to-use wrapper around the Minisign verifier for Node.js and compatible environments. + * @version 0.1.3 + * @since 2026-03-29 + * @license Apache-2.0 + */ + +import { arrayBuffer, text } from 'node:stream/consumers'; +import { createHash } from "node:crypto"; +import { createReadStream } from "node:fs"; +import { pipeline } from "node:stream/promises"; +import { readFile } from "node:fs/promises"; +import { Readable } from "node:stream"; +import { ReadableStream } from "node:stream/web"; + +import { + readPubkey, + parseSig, + parseSigFile, + getKeynumKey, + verifyMinisign, +} from "./minisign.mjs"; + +import { + arrayBufferToBase64url, + base64ToUint8Array, +} from "./base64.mjs"; + +/** + * MinisignVerifier is a helper class to verify Minisign signature on Node.js or its compatible environments. + * + * @example + * ```js + * import { MinisignVerifier } from "@kaito-tokyo/minisign-verify"; + * + * const pubkeyStrings = ["PUBKEYBASE64STRING"]; + * const verifier = await MinisignVerifier.create(pubkeyStrings); + * + * const verifyResult = await verifier.verifyFilepath("test_fixtures/test.dat"); + * if (verifyResult.ok) { + * console.log("Verification succeeded!"); + * } else { + * throw new Error("Verification failed!"); + * } + * ``` + */ +export class MinisignVerifier { + /** + * Creates a MinisignVerifier instance with Minisign public key string(s). + * @param {string | string[]} pubkeyStrings Minisign public key string(s). + * @returns {Promise} A MinisignVerifier instance with the provided public key(s) loaded. + */ + static async create(pubkeyStrings) { + const verifier = new MinisignVerifier(); + + if (!Array.isArray(pubkeyStrings)) { + pubkeyStrings = [pubkeyStrings]; + } + + await Promise.all(pubkeyStrings.map(verifier.loadPubkeyString.bind(verifier))); + + return verifier; + } + + constructor() { + this.readPubkey = readPubkey.bind(null, arrayBufferToBase64url, base64ToUint8Array); + this.parseSig = parseSig.bind(null, base64ToUint8Array); + this.parseSigFile = parseSigFile.bind(null, parseSig, base64ToUint8Array); + + /** @type {Map} */ + this.pubkeys = new Map(); + } + + /** + * @param {string} pubkeyString + */ + async loadPubkeyString(pubkeyString) { + const pubkey = await this.readPubkey(pubkeyString); + this.pubkeys.set(getKeynumKey(pubkey), pubkey); + } + + /** + * Verifies a Minisign signature. + * @param {Readable | import("stream/web").ReadableStream | Parameters[0]} message + * @param {string | Parameters[0]} sigFileContent + * @param {object} [options] + * @param {AbortSignal} [options.signal] + * @return {Promise} + */ + async verify(message, sigFileContent, options = undefined) { + const signal = options?.signal; + + if (!(message instanceof Readable)) { + if (message instanceof ReadableStream) { + message = Readable.fromWeb(message); + } else { + message = Readable.from(message); + } + } + + if (typeof sigFileContent !== "string") { + sigFileContent = await text(sigFileContent); + } + + const sigFile = this.parseSigFile(sigFileContent); + + return verifyMinisign(this.pubkeys, sigFile, async (blake2b512Required) => { + if (blake2b512Required) { + const hash = createHash("blake2b512"); + await pipeline(message, hash, { signal }); + return hash.digest(); + } else { + return arrayBuffer(message); + } + }); + } + + /** + * Convenience method to verify a file on the filesystem. + * @param {string} filepath The file path to the data to verify. + * @param {string} [signatureFilepath] The file path to the `.minisig` file. Defaults to `${filepath}.minisig`. + */ + async verifyFilepath(filepath, signatureFilepath = undefined) { + const sigFileContent = await readFile(signatureFilepath ?? `${filepath}.minisig`, "utf-8"); + return this.verify(createReadStream(filepath), sigFileContent); + } +} diff --git a/.github/actions/setup-ccache/verify-js/minisign-verify-cli.mjs b/.github/actions/setup-ccache/verify-js/minisign-verify-cli.mjs new file mode 100755 index 00000000..3f99af26 --- /dev/null +++ b/.github/actions/setup-ccache/verify-js/minisign-verify-cli.mjs @@ -0,0 +1,50 @@ +#!/usr/bin/env node + +// SPDX-FileCopyrightText: 2026 Kaito Udagawa +// +// SPDX-License-Identifier: Apache-2.0 + +/** + * @file @kaito-tokyo/minisign-verify/verify-js/minisign-verify-cli.mjs + * A command-line interface for Minisign verification for Node.js. + * @version 0.1.3 + * @since 2026-03-29 + */ + +import { MinisignVerifier } from "./index.mjs"; + +function printHelp() { + console.log("Usage: minisign-verify -V -P -m "); +} + +if (process.argv.length !== 7) { + printHelp(); + process.exit(64); +} + +const pubkey = process.argv[4]; +const messageFilepath = process.argv[6]; + +if (process.argv[2] !== "-V" || process.argv[3] !== "-P" || !pubkey || process.argv[5] !== "-m" || !messageFilepath) { + printHelp(); + process.exit(64); +} + +try { + const verifier = await MinisignVerifier.create(pubkey); + const verifyResult = await verifier.verifyFilepath(messageFilepath); + if (verifyResult.ok) { + console.log("Signature and comment signature verified"); + console.log(`Trusted comment: ${verifyResult.trustedComment}`); + } else { + console.error("Signature verification failed"); + process.exit(1); + } +} catch (error) { + if (error instanceof Error) { + console.error(error.message); + } else { + console.error("An unknown error occurred"); + } + process.exit(1); +} diff --git a/.github/actions/setup-ccache/verify-js/minisign.mjs b/.github/actions/setup-ccache/verify-js/minisign.mjs new file mode 100644 index 00000000..dbcbf683 --- /dev/null +++ b/.github/actions/setup-ccache/verify-js/minisign.mjs @@ -0,0 +1,250 @@ +// SPDX-FileCopyrightText: 2026 Kaito Udagawa +// +// SPDX-License-Identifier: Apache-2.0 + +/** + * @file @kaito-tokyo/minisign-verify/verify-js/minisign.mjs + * Self-contained Minisign signature verification library for ES Modules. + * @version 0.1.3 + * @since 2026-03-29 + */ + +/** + * @typedef {Object} Pubkey Public key of Minisign verification. + * @property {CryptoKey} cryptoKey internal field + * @property {'Ed'} sigAlg internal field + * @property {Uint8Array} keynum internal field + * @property {Uint8Array} pk internal field + * + * @typedef {Object} Sig Single signature data of Minisign verification. + * @property {'Ed' | 'ED'} sigAlg internal field + * @property {Uint8Array} keynum internal field + * @property {Uint8Array} sig internal field + * + * @typedef {Object} SigFile Signature file of Minisign verification. + * @property {string} comment internal field + * @property {Sig} sig internal field + * @property {string} trustedComment internal field + * @property {Uint8Array} globalSig internal field + * + * @typedef {bigint} KeynumKey The key type for a Pubkey Map based on keynum. + * + * @typedef {Object} VerifyMinisignSuccessResult + * @property {true} ok Overall verification result. + * @property {string} trustedComment The verified trusted comment from the signature file. + * @property {boolean} isPubkeyFound Whether the public key was found. + * @property {boolean} isMessageValid The integrity of the data. + * @property {boolean} isCommentValid The integrity of the signature file. + * + * @typedef {Object} VerifyMinisignFailureResult + * @property {false} ok Overall verification result. + * @property {boolean} isPubkeyFound Whether the public key was found. + * @property {boolean} isMessageValid The integrity of the data. + * @property {boolean} isCommentValid The integrity of the signature file. + * + * @typedef {VerifyMinisignSuccessResult | VerifyMinisignFailureResult} VerifyMinisignResult + */ + +const KEYNUMBYTES = 8; +const SIGALG = "Ed"; +const SIGALG_HASHED = "ED"; +const COMMENT_PREFIX = "untrusted comment: "; +const TRUSTED_COMMENT_PREFIX = "trusted comment: "; + +const crypto_sign_PUBLICKEYBYTES = 32; +const crypto_sign_BYTES = 64; + +/** + * Asynchronously reads a Minisign public key in the form of Base64-string. + * @param {typeof import("./base64.mjs").arrayBufferToBase64url} $arrayBufferToBase64url + * @param {typeof import("./base64.mjs").base64ToUint8Array} $base64ToUint8Array + * @param {string} pubkeyString The Base64-string of the public key. + * @return {Promise} + */ +export async function readPubkey($arrayBufferToBase64url, $base64ToUint8Array, pubkeyString) { + const bytes = $base64ToUint8Array(pubkeyString); + + if (bytes.length !== 2 + KEYNUMBYTES + crypto_sign_PUBLICKEYBYTES) { + throw new Error("InvalidPubkeyLengthError"); + } + + const sigAlgBytes = bytes.subarray(0, 2); + const keynum = bytes.subarray(2, 2 + KEYNUMBYTES); + const pk = bytes.subarray(2 + KEYNUMBYTES); + + if (sigAlgBytes[0] !== /*E*/ 0x45 || sigAlgBytes[1] !== /*d*/ 0x64) { + throw new Error("InvalidSigAlgError"); + } + + const cryptoKey = await crypto.subtle.importKey( + "jwk", + { + kty: "OKP", + crv: "Ed25519", + x: await $arrayBufferToBase64url(pk), + }, + { name: "Ed25519" }, + false, + ["verify"], + ); + + return { + cryptoKey, + sigAlg: SIGALG, + keynum, + pk, + }; +} + +/** + * Parses a Minisign signature in the form of Base64-string. + * @param {typeof import("./base64.mjs").base64ToUint8Array} $base64ToUint8Array + * @param {string} sigString The Base64-string of the signature. + * @return {Sig} + */ +export function parseSig($base64ToUint8Array, sigString) { + const bytes = $base64ToUint8Array(sigString); + + if (bytes.length !== 2 + KEYNUMBYTES + crypto_sign_BYTES) { + throw new Error("InvalidSigLengthError"); + } + + const sigAlgBytes = bytes.subarray(0, 2); + const keynum = bytes.subarray(2, 2 + KEYNUMBYTES); + const sig = bytes.subarray(2 + KEYNUMBYTES); + + /** @type {'Ed' | 'ED' | undefined} */ + let sigAlg; + if (sigAlgBytes[0] === /*E*/ 0x45) { + if (sigAlgBytes[1] === /*d*/ 0x64) { + sigAlg = SIGALG; + } else if (sigAlgBytes[1] === /*D*/ 0x44) { + sigAlg = SIGALG_HASHED; + } + } + + if (!sigAlg) { + throw new Error("InvalidSigAlgError"); + } + + return { sigAlg, keynum, sig }; +} + +/** + * Parses a `.minisig` file content. + * @param {typeof parseSig} $parseSig + * @param {typeof import("./base64.mjs").base64ToUint8Array} $base64ToUint8Array + * @param {string} sigFileContent The content of the `.minisig` file as a string. + * @return {SigFile} + */ +export function parseSigFile($parseSig, $base64ToUint8Array, sigFileContent) { + const lines = sigFileContent.split(/\r?\n/); + + if (lines.length < 4) { + throw new Error("InvalidSigContentError"); + } + + const [commentLine, sigString, trustedCommentLine, globalSigString] = lines; + + if (!commentLine.startsWith(COMMENT_PREFIX)) { + throw new Error("InvalidUntrustedCommentError"); + } + + if (!trustedCommentLine.startsWith(TRUSTED_COMMENT_PREFIX)) { + throw new Error("InvalidTrustedCommentError"); + } + + const comment = commentLine.substring(COMMENT_PREFIX.length); + const sig = $parseSig($base64ToUint8Array, sigString); + const trustedComment = trustedCommentLine.substring( + TRUSTED_COMMENT_PREFIX.length, + ); + const globalSig = $base64ToUint8Array(globalSigString); + + if (globalSig.length !== crypto_sign_BYTES) { + throw new Error("InvalidGlobalSigLengthError"); + } + + return { comment, sig, trustedComment, globalSig }; +} + +/** + * Gets the key for Map from a Pubkey. + * @param {Pubkey | Sig} pubkey + * @return {KeynumKey} + */ +export function getKeynumKey(pubkey) { + const { keynum } = pubkey; + return new DataView(keynum.buffer, keynum.byteOffset, keynum.byteLength).getBigUint64(0, true); +} + +/** + * @param {Pubkey | Map} pubkeys The Minisign public key(s) from `readPubkey()`. + * Provide a Pubkey, or construct a map with `new Map(pubkeys.map(pk => [getKeynumKey(pk), pk]))`. + * @param {SigFile} sigFile The `.minisig` content from `parseSigFile()`. + * @param {(blake2b512Required: boolean) => Promise>} dataFunc + * Callback to get the data to verify. Called exactly once if no exception is thrown, and never called more than once. + * If `blake2b512Required` is `true`: Return BLAKE2b-512 hash of the data to verify. + * If `blake2b512Required` is `false`: Return the raw data. + * @return {Promise} The result of the verification. + * Use its `ok` property to check if verification was successful. + */ +export async function verifyMinisign(pubkeys, sigFile, dataFunc) { + const sigKeynumKey = getKeynumKey(sigFile.sig); + const pubkey = pubkeys instanceof Map ? pubkeys.get(sigKeynumKey) : pubkeys; + + if (!pubkey || getKeynumKey(pubkey) !== sigKeynumKey) { + return { + ok: false, + isPubkeyFound: false, + isMessageValid: false, + isCommentValid: false, + }; + } + + const { cryptoKey } = pubkey; + const { sig: { sigAlg, sig }, trustedComment, globalSig } = sigFile; + + if (sigAlg !== SIGALG_HASHED && sigAlg !== SIGALG) { + throw new Error("UnsupportedSigAlgError"); + } + + const isMessageValid = await crypto.subtle.verify( + { name: "Ed25519" }, + cryptoKey, + sig, + await dataFunc(sigAlg === SIGALG_HASHED), + ); + + const trustedCommentBytes = new TextEncoder().encode(trustedComment); + const sigAndTrustedComment = new Uint8Array( + sig.length + trustedCommentBytes.length, + ); + sigAndTrustedComment.set(sig, 0); + sigAndTrustedComment.set(trustedCommentBytes, sig.length); + + const isCommentValid = await crypto.subtle.verify( + { name: "Ed25519" }, + cryptoKey, + globalSig, + sigAndTrustedComment, + ); + + const ok = isMessageValid && isCommentValid; + if (ok) { + return { + ok, + trustedComment, + isPubkeyFound: true, + isMessageValid, + isCommentValid, + }; + } else { + return { + ok, + isPubkeyFound: true, + isMessageValid, + isCommentValid, + }; + } +} diff --git a/.github/actions/setup-macos-codesigning/action.yml b/.github/actions/setup-macos-codesigning/action.yml new file mode 100644 index 00000000..6dc25612 --- /dev/null +++ b/.github/actions/setup-macos-codesigning/action.yml @@ -0,0 +1,67 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +name: Set up macOS Code Signing +description: Configure code signing for macOS. + +# file: .github/actions/setup-macos-codesigning/action.yml +# author: Kaito Udagawa +# version: 1.1.0 +# date: 2026-03-30 + +inputs: + MACOS_SIGNING_APPLICATION_IDENTITY: + description: Application Identity for code signing. + required: true + MACOS_SIGNING_CERT: + description: Base64 encoded .p12 certificate. + required: true + MACOS_SIGNING_CERT_PASSWORD: + description: Password for the .p12 certificate. + required: true + +outputs: + CODESIGN_TEAM: + description: The Team ID. + value: ${{ steps.extract.outputs.CODESIGN_TEAM }} + +runs: + using: composite + steps: + - name: Extract Codesign Identity + id: extract + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + MACOS_SIGNING_APPLICATION_IDENTITY: '${{ inputs.MACOS_SIGNING_APPLICATION_IDENTITY }}' + run: | + CODESIGN_TEAM="$(awk -F'[()]' '{ print $2 }' <<< "$MACOS_SIGNING_APPLICATION_IDENTITY")" + + if [[ -z "$CODESIGN_TEAM" ]]; then + echo "Error: Failed to extract Team ID from MACOS_SIGNING_APPLICATION_IDENTITY" >&2 + exit 1 + fi + + printf 'CODESIGN_TEAM=%s\n' "$CODESIGN_TEAM" >> "$GITHUB_OUTPUT" + + - name: Import Signing Certificate + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + MACOS_SIGNING_CERT: '${{ inputs.MACOS_SIGNING_CERT }}' + MACOS_SIGNING_CERT_PASSWORD: '${{ inputs.MACOS_SIGNING_CERT_PASSWORD }}' + run: | + KEYCHAIN_DIR="$(mktemp -d -p "$RUNNER_TEMP" setup-macos-codesigning.XXXXXXXXXX)" + KEYCHAIN_DB="$KEYCHAIN_DIR/app-signing.keychain-db" + KEYCHAIN_PASSWORD="$(openssl rand -base64 32)" + + security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_DB" + security set-keychain-settings -lut 21600 "$KEYCHAIN_DB" + security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_DB" + + security default-keychain -s "$KEYCHAIN_DB" + + base64 --decode <<< "$MACOS_SIGNING_CERT" > "$KEYCHAIN_DIR/certificate.p12" + security import "$KEYCHAIN_DIR/certificate.p12" -k "$KEYCHAIN_DB" -P "$MACOS_SIGNING_CERT_PASSWORD" -T /usr/bin/codesign -T /usr/bin/productbuild + rm "$KEYCHAIN_DIR/certificate.p12" + + security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$KEYCHAIN_PASSWORD" "$KEYCHAIN_DB" diff --git a/.github/aw/actions-lock.json b/.github/aw/actions-lock.json new file mode 100644 index 00000000..61c18b8f --- /dev/null +++ b/.github/aw/actions-lock.json @@ -0,0 +1,14 @@ +{ + "entries": { + "actions/github-script@v9.0.0": { + "repo": "actions/github-script", + "version": "v9.0.0", + "sha": "3a2844b7e9c422d3c10d287c895573f7108da1b3" + }, + "github/gh-aw-actions/setup@v0.74.8": { + "repo": "github/gh-aw-actions/setup", + "version": "v0.74.8", + "sha": "efa55847f72aadb03490d955263ff911bf758700" + } + } +} diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 00000000..28feff97 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,15 @@ + + +# Development rules for this repository + +## **IMPORTANT**: Excluded files that are generated + +You SHOULD NOT read the excluded files listed in the following `ExcludedGeneratedFiles` section, because they are all generated files specific to this project. In general, reviewing or modifying generated files manually is considered a waste of time. Since your resources are also limited, we recommend that you focus on non-generated files. + + +- `.github/workflows/*.lock.yml` + diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..9b2d5bfb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +version: 2 + +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + exclude-paths: + - ".github/workflows/*.lock.yml" + + - package-ecosystem: npm + directory: /pages + schedule: + interval: weekly + ignore: + - dependency-name: "@types/node" + versions: ["*"] diff --git a/.github/instructions/gh-aw-no-review-lockfiles.instructions.md b/.github/instructions/gh-aw-no-review-lockfiles.instructions.md new file mode 100644 index 00000000..7e33bf5f --- /dev/null +++ b/.github/instructions/gh-aw-no-review-lockfiles.instructions.md @@ -0,0 +1,12 @@ +--- +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +applyTo: .github/workflows/*.lock.yml +--- + +# Do not review lockfiles of GitHub Agentic Workflows + +- **No reviews for lockfiles**: You MUST NOT review any lockfiles of GitHub Agentic Workflows because they are automatically generated and should not be modified by any means. You MUST NOT generate any review comments for any changes in these lockfiles. +- **No runner image warning**: You MUST NOT generate any warning comment about runs-on in lockfiles. diff --git a/.github/instructions/github-actions.instructions.md b/.github/instructions/github-actions.instructions.md new file mode 100644 index 00000000..0e17f3a2 --- /dev/null +++ b/.github/instructions/github-actions.instructions.md @@ -0,0 +1,38 @@ +--- +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +applyTo: "**/*.{yml,yaml}" +--- + +# Development Guidelines for GitHub Actions Workflow + +## Style guides + +- **Name identifies unique step**: Every step that has the same name must have the same step definition across all workflows. +- **Prefer single quotes for environment variables**: Prefer to quote the value of environment variables on run steps using single quotes. This style has good consistency when we handle backslashes in Windows paths. You can switch to use double quotes or write values without quoting only if single quotes result in a messy syntax. +- **Enforce error-prone bash**: Always use `bash --noprofile --norc -euo pipefail -O nullglob {0}` for shell on run steps. +- **Multi-line syntax for run**: Always use multi-line syntax for the content of run to keep the style consistent. + +## Preinstalled Softwares on GitHub Actions Runner Images + +- **The command `jq`** is preinstalled on all the runner including `windows-2022`, `macos-15`, `ubuntu-slim`, and `ubuntu-24.04`. +- **The command `vswhere`** is preinstalled under `C:\ProgramData\chocolatey\bin` on the runner `windows-2022`. +- **The command `xcbeautify`** is preinstalled on the runner `macos-15`. + +## About the package `obs-studio` on Ubuntu +- **PPA**: We use the PPA provided by the OBS project (`ppa:obsproject/obs-studio`) to install OBS Studio and its development headers on Ubuntu. +- **Development Headers**: The package `obs-studio` includes both the OBS Studio application and its development headers. + +## The environment variables that ccache can recognize + +- **CCACHE_DEPEND**: Set to `true` to enable depend mode. Other values than `true` are not permitted. +- **CCACHE_DIRECT**: Set to `true` to enable direct mode. Other values than `true` are not permitted. +- **CCACHE_NODEPEND**: Set to `true` to disable depend mode. Other values than `true` are not permitted. +- **CCACHE_NODIRECT**: Set to `true` to disable direct mode. Other values than `true` are not permitted. + +## Inputs for the action `actions/setup-python` + +- **python-version-file**: File containing the Python version to use. Example: .python-version +- **pip-install**: Used to specify the packages to install with pip after setting up Python. Can be a requirements file or package names. diff --git a/.github/instructions/license-header-c-cpp.instructions.md b/.github/instructions/license-header-c-cpp.instructions.md new file mode 100644 index 00000000..305bbb58 --- /dev/null +++ b/.github/instructions/license-header-c-cpp.instructions.md @@ -0,0 +1,39 @@ +--- +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +applyTo: "**/*.{c,h,cpp,hpp}" +--- + +# License Header Requirements for C/C++ Files + +To keep the `obs-backgroundremoval` project safe and reliable for everyone including its users, its contributors, and its maintainers, those who are involved in development of this project must know the following terms. Whenever we receive your Pull Request, we will explicitly ask you to confirm that your PR conforms to our policy. + +## Header Template + + +/* + * SPDX-FileCopyrightText: Copyright (C) [Year] [Author Name] [Email] + * SPDX-License-Identifier: GPL-3.0-or-later + * + * OBS Plugin: Portrait Background Removal / Virtual Green-screen and Low-Light Enhancement + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +- **Year**: Replace `[Year]` in the header template with the current copyright year for new files. Keep the original years for existing files. +- **Author Name**: Replace `[Author Name]` in the header template with your full legal name. +- **Email**: Replace `[Email]` in the header template with your email address associated with your GitHub account. diff --git a/.github/instructions/onnxruntime-in-c-cxx.instructions.md b/.github/instructions/onnxruntime-in-c-cxx.instructions.md new file mode 100644 index 00000000..e9e1ce7b --- /dev/null +++ b/.github/instructions/onnxruntime-in-c-cxx.instructions.md @@ -0,0 +1,18 @@ +--- +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/instructions/onnxruntime-in-c-cxx.instructions.md +# author: Kaito Udagawa +# version: 1.0.0 +# date: 2026-04-04 + +applyTo: "**/*.{c,h,cpp,hpp}" +--- + +# Guidelines for Using ONNX Runtime C/C++ API + +## Rules + +- **Use flattened header paths**: When including ONNX Runtime headers, use the flattened header paths. For example, use `#include ` instead of `#include `. diff --git a/.github/instructions/plugin-metadata.instructions.md b/.github/instructions/plugin-metadata.instructions.md new file mode 100644 index 00000000..639d5b1d --- /dev/null +++ b/.github/instructions/plugin-metadata.instructions.md @@ -0,0 +1,26 @@ +--- +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +applyTo: "{buildspec,data/manifest}.json" +--- + +# Metadata Management Guideline + + +- **buildspec.json** is a file inherited from obsproject/obs-plugintemplate. This file is kept for convention among the OBS community. +- **data/manifest.json** is a file for Plugin Manager included in OBS Studio. The content of this file will be read by [the obs_module_load_metadata function defined in obs-module.c](https://github.com/obsproject/obs-studio/blob/master/libobs/obs-module.c). + + + +The fields listed below MUST have the same value, and let me know when you are reviewing and find the difference. + +| buildspec.json | data/manifest.json | +| ------------------------------ | ------------------ | +| .displayName | .display_name | +| .platformConfig.macos.bundleId | .id | +| .website | .urls.website | +| .name | .name | +| .version | .version | + diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..bd0f53d9 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +## Pull Request Checklist + +Please read our latest [CONTRIBUTING.md](https://github.com/royshil/obs-backgroundremoval/blob/main/CONTRIBUTING.md). + +- [ ] I have read the latest CONTRIBUTING.md. +- [ ] I have acknowledged the licensing and patent grant policy. +- [ ] I have included the required license headers. +- [ ] I am confident with my code integrity. +- [ ] I have signed off and verified all my commits. diff --git a/.github/scripts/clean-env-macos.bash b/.github/scripts/clean-env-macos.bash new file mode 100644 index 00000000..bff6e751 --- /dev/null +++ b/.github/scripts/clean-env-macos.bash @@ -0,0 +1,39 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/scripts/clean-env-macos.bash +# author: Kaito Udagawa +# version: 1.0.2 +# date: 2026-04-02 + +filter_env_macos() { + # Note: Stick to a Bash-3.2-compatible way for macOS support. + local names=() + while IFS= read -r line; do + names+=("$line") + done < <(compgen -e) + + local keepEnvVars=";${KEEP_ENV_VARS:-};" + + local name + for name in "${names[@]}"; do + case "$name" in + # Pattern + ACTIONS_* | CCACHE_* | GIT_* | GITHUB_* | RUNNER_*) ;; + # Common + CI | HOME | LANG | LC_ALL | LC_CTYPE | LOGNAME | PATH | PSModulePath | SHELL | TERM | TMPDIR | USER | XDG_CONFIG_HOME) ;; + # macOS runner + DEVELOPER_DIR | ImageOS | ImageVersion | XPC_FLAGS | XPC_SERVICE_NAME) ;; + # Workflow-specific + VCPKG_BINARY_SOURCES | VCPKG_ROOT | VCPKG_TARGET_TRIPLET) ;; + *) + if [[ "$keepEnvVars" != *";$name;"* ]]; then + unset -v "$name" 2>/dev/null || true + fi + ;; + esac + done +} +filter_env_macos +unset -f filter_env_macos diff --git a/.github/scripts/clean-env-ubuntu.bash b/.github/scripts/clean-env-ubuntu.bash new file mode 100644 index 00000000..a485a219 --- /dev/null +++ b/.github/scripts/clean-env-ubuntu.bash @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/scripts/clean-env-ubuntu.bash +# author: Kaito Udagawa +# version: 1.0.2 +# date: 2026-04-02 + +filter_env_ubuntu() { + local names + mapfile -t names < <(compgen -e) + + local keepEnvVars=";${KEEP_ENV_VARS:-};" + + local name + for name in "${names[@]}"; do + case "$name" in + # Pattern + ACTIONS_* | CCACHE_* | GIT_* | GITHUB_* | RUNNER_*) ;; + # Common + CI | HOME | LANG | LC_ALL | LC_CTYPE | LOGNAME | PATH | PSModulePath | SHELL | TERM | TMPDIR | USER | XDG_CONFIG_HOME) ;; + # Ubuntu runner + DEBIAN_FRONTEND | ImageOS | ImageVersion | XDG_RUNTIME_DIR) ;; + # Workflow-specific + VCPKG_BINARY_SOURCES | VCPKG_ROOT | VCPKG_TARGET_TRIPLET) ;; + *) + if [[ "$keepEnvVars" != *";$name;"* ]]; then + unset -v "$name" 2>/dev/null || true + fi + ;; + esac + done +} +filter_env_ubuntu +unset -f filter_env_ubuntu diff --git a/.github/scripts/clean-env-windows.ps1 b/.github/scripts/clean-env-windows.ps1 new file mode 100644 index 00000000..93a63e24 --- /dev/null +++ b/.github/scripts/clean-env-windows.ps1 @@ -0,0 +1,59 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/scripts/clean-env-windows.ps1 +# author: Kaito Udagawa +# version: 1.0.0 +# date: 2026-03-31 + +$CleanEnvWindowsAllowList = @( + # System + "ALLUSERSPROFILE", + "APPDATA", + "CI", + "CommonProgramFiles", + "CommonProgramFiles(x86)", + "CommonProgramW6432", + "COMPUTERNAME", + "ComSpec", + "HOMEDRIVE", + "HOMEPATH", + "ImageOS", + "ImageVersion", + "LOCALAPPDATA", + "NUMBER_OF_PROCESSORS", + "OS", + "Path", + "PATHEXT", + "PROCESSOR_ARCHITECTURE", + "PROCESSOR_IDENTIFIER", + "PROCESSOR_LEVEL", + "PROCESSOR_REVISION", + "ProgramData", + "ProgramFiles", + "ProgramFiles(x86)", + "ProgramW6432", + "PSModulePath", + "SystemDrive", + "SystemRoot", + "TEMP", + "TMP", + "USERDOMAIN_ROAMINGPROFILE", + "USERDOMAIN", + "USERNAME", + "USERPROFILE", + "windir", + + # Workflow-specific + "VCPKG_BINARY_SOURCES", + "VCPKG_ROOT", + "VCPKG_TARGET_TRIPLET" +) +$CleanEnvWindowsAllowList += ($env:KEEP_ENV_VARS -split ';').Where({$_}) +Get-ChildItem env: | ForEach-Object { + if ($CleanEnvWindowsAllowList -notcontains $_.Name -and $_.Name -notlike "ACTIONS_*" -and $_.Name -notlike "CCACHE_*" -and $_.Name -notlike "GIT_*" -and $_.Name -notlike "GITHUB_*" -and $_.Name -notlike "RUNNER_*") { + Remove-Item $_.PSPath -Force + } +} +Remove-Variable CleanEnvWindowsAllowList -Force diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..e909877d --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,98 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +name: Check CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + tags: ["*"] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + check-clang-format: + name: Check clang-format + + runs-on: ubuntu-24.04 + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Install clang-format with Linuxbrew + shell: bash + env: + HOMEBREW_NO_ANALYTICS: "1" + HOMEBREW_NO_AUTO_UPDATE: "1" + HOMEBREW_NO_ENV_HINTS: "1" + HOMEBREW_NO_INSTALL_CLEANUP: "1" + run: | + set -euo pipefail + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + brew install obsproject/tools/clang-format@19 + echo "$(brew --prefix obsproject/tools/clang-format@19)/bin" >> "$GITHUB_PATH" + + - name: Check with clang-format + shell: bash + run: | + set -euo pipefail + git ls-files "*.c" "*.cpp" "*.h" "*.hpp" | xargs --no-run-if-empty clang-format-19 --dry-run --Werror + + check-gersemi: + name: Check gersemi + + runs-on: ubuntu-24.04 + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Install gersemi with Linuxbrew + shell: bash + env: + HOMEBREW_NO_ANALYTICS: "1" + HOMEBREW_NO_AUTO_UPDATE: "1" + HOMEBREW_NO_ENV_HINTS: "1" + HOMEBREW_NO_INSTALL_CLEANUP: "1" + run: | + set -euo pipefail + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + brew install obsproject/tools/gersemi + echo "$(brew --prefix obsproject/tools/gersemi)/bin" >> "$GITHUB_PATH" + + - name: Check with gersemi + shell: bash + run: | + set -euo pipefail + git ls-files CMakeLists.txt "*.cmake" | xargs --no-run-if-empty gersemi --check + + check-reuse: + name: Check reuse + + runs-on: ubuntu-slim + timeout-minutes: 10 + + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Set up Python for REUSE + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version: "3.12" + pip-install: reuse + + - name: Lint with REUSE + shell: bash + run: reuse lint diff --git a/.github/workflows/dependencies-vcpkg.lock.yml b/.github/workflows/dependencies-vcpkg.lock.yml new file mode 100644 index 00000000..8506f889 --- /dev/null +++ b/.github/workflows/dependencies-vcpkg.lock.yml @@ -0,0 +1,1504 @@ +# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"676ff10a5d771f5a3559da19f9d7ea4ed1204ab7324ffeceaec0b7b508ce207f","compiler_version":"v0.74.8","strict":true,"agent_id":"copilot","agent_model":"gpt-5-mini"} +# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"efa55847f72aadb03490d955263ff911bf758700","version":"v0.74.8"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.49"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.49"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.9","digest":"sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.9@sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388"},{"image":"ghcr.io/github/github-mcp-server:v1.0.4"},{"image":"node:lts-alpine","digest":"sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f","pinned_image":"node:lts-alpine@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f"}]} +# ___ _ _ +# / _ \ | | (_) +# | |_| | __ _ ___ _ __ | |_ _ ___ +# | _ |/ _` |/ _ \ '_ \| __| |/ __| +# | | | | (_| | __/ | | | |_| | (__ +# \_| |_/\__, |\___|_| |_|\__|_|\___| +# __/ | +# _ _ |___/ +# | | | | / _| | +# | | | | ___ _ __ _ __| |_| | _____ ____ +# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___| +# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \ +# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/ +# +# This file was automatically generated by gh-aw (v0.74.8). DO NOT EDIT. +# +# To update this file, edit the corresponding .md file and run: +# gh aw compile +# Not all edits will cause changes to this file. +# +# For more information: https://github.github.com/gh-aw/introduction/overview/ +# +# Dependencies vcpkg +# +# Secrets used: +# - COPILOT_GITHUB_TOKEN +# - GH_AW_CI_TRIGGER_TOKEN +# - GH_AW_GITHUB_MCP_SERVER_TOKEN +# - GH_AW_GITHUB_TOKEN +# - GITHUB_TOKEN +# +# Custom actions used: +# - actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 +# - actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 +# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 +# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9) +# - actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 +# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 +# - github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 +# +# Container images used: +# - ghcr.io/github/gh-aw-firewall/agent:0.25.49 +# - ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49 +# - ghcr.io/github/gh-aw-firewall/squid:0.25.49 +# - ghcr.io/github/gh-aw-mcpg:v0.3.9@sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388 +# - ghcr.io/github/github-mcp-server:v1.0.4 +# - node:lts-alpine@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f + +name: "Vcpkg Update" +on: + push: + branches: + - main + schedule: + - cron: "36 5 * * *" + # Friendly format: daily (scattered) + workflow_dispatch: + inputs: + aw_context: + default: "" + description: "Agent caller context (used internally by Agentic Workflows)." + required: false + type: string + +permissions: {} + +concurrency: + group: "gh-aw-${{ github.workflow }}-${{ github.ref || github.run_id }}" + +run-name: "Vcpkg Update" + +jobs: + activation: + needs: pre_activation + if: needs.pre_activation.outputs.activated == 'true' + runs-on: ubuntu-slim + permissions: + actions: read + contents: read + outputs: + comment_id: "" + comment_repo: "" + engine_id: ${{ steps.generate_aw_info.outputs.engine_id }} + lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} + model: ${{ steps.generate_aw_info.outputs.model }} + secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + stale_lock_file_failed: ${{ steps.check-lock-file.outputs.stale_lock_file_failed == 'true' }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.pre_activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.pre_activation.outputs.setup-parent-span-id || needs.pre_activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/dependencies-vcpkg.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Generate agentic run info + id: generate_aw_info + env: + GH_AW_INFO_ENGINE_ID: "copilot" + GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI" + GH_AW_INFO_MODEL: "gpt-5-mini" + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_AGENT_VERSION: "1.0.48" + GH_AW_INFO_CLI_VERSION: "v0.74.8" + GH_AW_INFO_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_INFO_EXPERIMENTAL: "false" + GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true" + GH_AW_INFO_STAGED: "false" + GH_AW_INFO_ALLOWED_DOMAINS: '["defaults"]' + GH_AW_INFO_FIREWALL_ENABLED: "true" + GH_AW_INFO_AWF_VERSION: "v0.25.49" + GH_AW_INFO_AWMG_VERSION: "" + GH_AW_INFO_FIREWALL_TYPE: "squid" + GH_AW_COMPILED_STRICT: "true" + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_aw_info.cjs'); + await main(core, context); + - name: Validate COPILOT_GITHUB_TOKEN secret + id: validate-secret + run: bash "${RUNNER_TEMP}/gh-aw/actions/validate_multi_secret.sh" COPILOT_GITHUB_TOKEN 'GitHub Copilot CLI' https://github.github.com/gh-aw/reference/engines/#github-copilot-default + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + - name: Checkout .github and .agents folders + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + sparse-checkout: | + .github + .agents + .claude + .codex + .crush + .gemini + .opencode + .pi + sparse-checkout-cone-mode: true + fetch-depth: 1 + - name: Save agent config folders for base branch restoration + env: + GH_AW_AGENT_FOLDERS: ".agents .claude .codex .crush .gemini .github .opencode .pi" + GH_AW_AGENT_FILES: ".crush.json AGENTS.md CLAUDE.md GEMINI.md PI.md opencode.jsonc" + # poutine:ignore untrusted_checkout_exec + run: bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh" + - name: Check workflow lock file + id: check-lock-file + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_WORKFLOW_FILE: "dependencies-vcpkg.lock.yml" + GH_AW_CONTEXT_WORKFLOW_REF: "${{ github.workflow_ref }}" + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); + - name: Check compile-agentic version + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_COMPILED_VERSION: "v0.74.8" + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_version_updates.cjs'); + await main(); + - name: Create prompt with built-in context + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_SAFE_OUTPUTS: ${{ runner.temp }}/gh-aw/safeoutputs/outputs.jsonl + GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_FF1D34CE: ${{ github.event.comment.id || fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').comment_id }} + GH_AW_GITHUB_ACTOR: ${{ github.actor }} + GH_AW_GITHUB_REPOSITORY: ${{ github.repository }} + GH_AW_GITHUB_RUN_ID: ${{ github.run_id }} + GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }} + # poutine:ignore untrusted_checkout_exec + run: | + bash "${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh" + { + cat << 'GH_AW_PROMPT_ce17a44d43f38057_EOF' + + GH_AW_PROMPT_ce17a44d43f38057_EOF + cat "${RUNNER_TEMP}/gh-aw/prompts/xpia.md" + cat "${RUNNER_TEMP}/gh-aw/prompts/temp_folder_prompt.md" + cat "${RUNNER_TEMP}/gh-aw/prompts/markdown.md" + cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md" + cat << 'GH_AW_PROMPT_ce17a44d43f38057_EOF' + + Tools: create_pull_request, push_to_pull_request_branch, missing_tool, missing_data, noop + GH_AW_PROMPT_ce17a44d43f38057_EOF + cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_create_pull_request.md" + cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_push_to_pr_branch.md" + cat << 'GH_AW_PROMPT_ce17a44d43f38057_EOF' + + GH_AW_PROMPT_ce17a44d43f38057_EOF + cat "${RUNNER_TEMP}/gh-aw/prompts/mcp_cli_tools_prompt.md" + cat << 'GH_AW_PROMPT_ce17a44d43f38057_EOF' + + The following GitHub context information is available for this workflow: + {{#if github.actor}} + - **actor**: __GH_AW_GITHUB_ACTOR__ + {{/if}} + {{#if github.repository}} + - **repository**: __GH_AW_GITHUB_REPOSITORY__ + {{/if}} + {{#if github.workspace}} + - **workspace**: __GH_AW_GITHUB_WORKSPACE__ + {{/if}} + {{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}} + - **issue-number**: #__GH_AW_EXPR_802A9F6A__ + {{/if}} + {{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}} + - **discussion-number**: #__GH_AW_EXPR_1A3A194A__ + {{/if}} + {{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}} + - **pull-request-number**: #__GH_AW_EXPR_463A214A__ + {{/if}} + {{#if github.event.comment.id || github.aw.context.comment_id}} + - **comment-id**: __GH_AW_EXPR_FF1D34CE__ + {{/if}} + {{#if github.run_id}} + - **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__ + {{/if}} + - **checkouts**: The following repositories have been checked out and are available in the workspace: + - `$GITHUB_WORKSPACE` → `__GH_AW_GITHUB_REPOSITORY__` (cwd) [full history, all branches available as remote-tracking refs] [additional refs fetched: *] + - **Note**: If a branch you need is not in the list above and is not listed as an additional fetched ref, it has NOT been checked out. For private repositories you cannot fetch it without proper authentication. If the branch is required and not available, exit with an error and ask the user to add it to the `fetch:` option of the `checkout:` configuration (e.g., `fetch: ["refs/pulls/open/*"]` for all open PR refs, or `fetch: ["main", "feature/my-branch"]` for specific branches). + + + GH_AW_PROMPT_ce17a44d43f38057_EOF + cat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md" + cat << 'GH_AW_PROMPT_ce17a44d43f38057_EOF' + + {{#runtime-import .github/pull_request_template.md}} + {{#runtime-import .github/workflows/dependencies-vcpkg.md}} + GH_AW_PROMPT_ce17a44d43f38057_EOF + } > "$GH_AW_PROMPT" + - name: Interpolate variables and render templates + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_ENGINE_ID: "copilot" + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/interpolate_prompt.cjs'); + await main(); + - name: Substitute placeholders + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_FF1D34CE: ${{ github.event.comment.id || fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').comment_id }} + GH_AW_GITHUB_ACTOR: ${{ github.actor }} + GH_AW_GITHUB_REPOSITORY: ${{ github.repository }} + GH_AW_GITHUB_RUN_ID: ${{ github.run_id }} + GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }} + GH_AW_MCP_CLI_SERVERS_LIST: '- `safeoutputs` — run `safeoutputs --help` to see available tools' + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: ${{ needs.pre_activation.outputs.activated }} + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + + const substitutePlaceholders = require('${{ runner.temp }}/gh-aw/actions/substitute_placeholders.cjs'); + + // Call the substitution function + return await substitutePlaceholders({ + file: process.env.GH_AW_PROMPT, + substitutions: { + GH_AW_EXPR_1A3A194A: process.env.GH_AW_EXPR_1A3A194A, + GH_AW_EXPR_463A214A: process.env.GH_AW_EXPR_463A214A, + GH_AW_EXPR_802A9F6A: process.env.GH_AW_EXPR_802A9F6A, + GH_AW_EXPR_FF1D34CE: process.env.GH_AW_EXPR_FF1D34CE, + GH_AW_GITHUB_ACTOR: process.env.GH_AW_GITHUB_ACTOR, + GH_AW_GITHUB_REPOSITORY: process.env.GH_AW_GITHUB_REPOSITORY, + GH_AW_GITHUB_RUN_ID: process.env.GH_AW_GITHUB_RUN_ID, + GH_AW_GITHUB_WORKSPACE: process.env.GH_AW_GITHUB_WORKSPACE, + GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST, + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: process.env.GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED + } + }); + - name: Validate prompt placeholders + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + # poutine:ignore untrusted_checkout_exec + run: bash "${RUNNER_TEMP}/gh-aw/actions/validate_prompt_placeholders.sh" + - name: Print prompt + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + # poutine:ignore untrusted_checkout_exec + run: bash "${RUNNER_TEMP}/gh-aw/actions/print_prompt_summary.sh" + - name: Upload activation artifact + if: success() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: activation + include-hidden-files: true + path: | + /tmp/gh-aw/aw_info.json + /tmp/gh-aw/aw-prompts/prompt.txt + /tmp/gh-aw/aw-prompts/prompt-template.txt + /tmp/gh-aw/aw-prompts/prompt-import-tree.json + /tmp/gh-aw/github_rate_limits.jsonl + /tmp/gh-aw/base + /tmp/gh-aw/.github/agents + if-no-files-found: ignore + retention-days: 1 + + agent: + needs: activation + runs-on: ubuntu-latest + permissions: + contents: read + env: + DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} + GH_AW_ASSETS_ALLOWED_EXTS: "" + GH_AW_ASSETS_BRANCH: "" + GH_AW_ASSETS_MAX_SIZE_KB: 0 + GH_AW_MCP_LOG_DIR: /tmp/gh-aw/mcp-logs/safeoutputs + GH_AW_WORKFLOW_ID_SANITIZED: dependenciesvcpkg + outputs: + agentic_engine_timeout: ${{ steps.detect-copilot-errors.outputs.agentic_engine_timeout || 'false' }} + checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }} + effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} + effective_tokens_rate_limit_error: ${{ steps.parse-mcp-gateway.outputs.effective_tokens_rate_limit_error || 'false' }} + has_patch: ${{ steps.collect_output.outputs.has_patch }} + inference_access_error: ${{ steps.detect-copilot-errors.outputs.inference_access_error || 'false' }} + mcp_policy_error: ${{ steps.detect-copilot-errors.outputs.mcp_policy_error || 'false' }} + model: ${{ needs.activation.outputs.model }} + model_not_supported_error: ${{ steps.detect-copilot-errors.outputs.model_not_supported_error || 'false' }} + output: ${{ steps.collect_output.outputs.output }} + output_types: ${{ steps.collect_output.outputs.output_types }} + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/dependencies-vcpkg.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Set runtime paths + id: set-runtime-paths + run: | + { + echo "GH_AW_SAFE_OUTPUTS=${RUNNER_TEMP}/gh-aw/safeoutputs/outputs.jsonl" + echo "GH_AW_SAFE_OUTPUTS_CONFIG_PATH=${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" + echo "GH_AW_SAFE_OUTPUTS_TOOLS_PATH=${RUNNER_TEMP}/gh-aw/safeoutputs/tools.json" + } >> "$GITHUB_OUTPUT" + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + fetch-depth: 0 + - name: Fetch additional refs + env: + GH_AW_FETCH_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + run: | + header=$(printf "x-access-token:%s" "${GH_AW_FETCH_TOKEN}" | base64 -w 0) + git -c "http.extraheader=Authorization: Basic ${header}" fetch origin '+refs/heads/*:refs/remotes/origin/*' + - name: Create gh-aw temp directory + run: bash "${RUNNER_TEMP}/gh-aw/actions/create_gh_aw_tmp_dir.sh" + - name: Configure gh CLI for GitHub Enterprise + run: bash "${RUNNER_TEMP}/gh-aw/actions/configure_gh_for_ghe.sh" + env: + GH_TOKEN: ${{ github.token }} + - name: Configure Git credentials + env: + REPO_NAME: ${{ github.repository }} + SERVER_URL: ${{ github.server_url }} + GITHUB_TOKEN: ${{ github.token }} + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git config --global am.keepcr true + # Re-authenticate git with GitHub token + SERVER_URL_STRIPPED="${SERVER_URL#https://}" + git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git" + echo "Git configured with standard GitHub Actions identity" + - name: Checkout PR branch + id: checkout-pr + if: | + github.event.pull_request || github.event.issue.pull_request + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + with: + github-token: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/checkout_pr_branch.cjs'); + await main(); + - name: Install GitHub Copilot CLI + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.48 + env: + GH_HOST: github.com + - name: Install AWF binary + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.25.49 + - name: Determine automatic lockdown mode for GitHub MCP Server + id: determine-automatic-lockdown + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9) + env: + GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }} + GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }} + with: + script: | + const determineAutomaticLockdown = require('${{ runner.temp }}/gh-aw/actions/determine_automatic_lockdown.cjs'); + await determineAutomaticLockdown(github, context, core); + - name: Download activation artifact + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: activation + path: /tmp/gh-aw + - name: Restore agent config folders from base branch + if: steps.checkout-pr.outcome == 'success' + env: + GH_AW_AGENT_FOLDERS: ".agents .claude .codex .crush .gemini .github .opencode .pi" + GH_AW_AGENT_FILES: ".crush.json AGENTS.md CLAUDE.md GEMINI.md PI.md opencode.jsonc" + run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_base_github_folders.sh" + - name: Restore inline sub-agents from activation artifact + env: + GH_AW_SUB_AGENT_DIR: ".github/agents" + GH_AW_SUB_AGENT_EXT: ".agent.md" + run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_sub_agents.sh" + - name: Download container images + run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.25.49 ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49 ghcr.io/github/gh-aw-firewall/squid:0.25.49 ghcr.io/github/gh-aw-mcpg:v0.3.9@sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388 ghcr.io/github/github-mcp-server:v1.0.4 node:lts-alpine@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f + - name: Generate Safe Outputs Config + run: | + mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs" + mkdir -p /tmp/gh-aw/safeoutputs + mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs + cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_59ba951af6978ab4_EOF' + {"create_pull_request":{"allowed_files":["vcpkg-triplets/*.cmake","vcpkg-configuration.json"],"draft":true,"fallback_as_issue":false,"labels":["dependencies","vcpkg"],"max":1,"max_patch_files":100,"max_patch_size":1024,"protect_top_level_dot_folders":true,"protected_files":["package.json","bun.lockb","bunfig.toml","deno.json","deno.jsonc","deno.lock","global.json","NuGet.Config","Directory.Packages.props","mix.exs","mix.lock","go.mod","go.sum","stack.yaml","stack.yaml.lock","pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","package-lock.json","yarn.lock","pnpm-lock.yaml","npm-shrinkwrap.json","requirements.txt","Pipfile","Pipfile.lock","pyproject.toml","setup.py","setup.cfg","Gemfile","Gemfile.lock","uv.lock","CODEOWNERS","DESIGN.md","README.md","CONTRIBUTING.md","CHANGELOG.md","SECURITY.md","CODE_OF_CONDUCT.md","AGENTS.md","CLAUDE.md","GEMINI.md"],"title_prefix":"[dependencies vcpkg] "},"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"push_to_pull_request_branch":{"allowed_files":["vcpkg-triplets/*.cmake","vcpkg-configuration.json"],"if_no_changes":"warn","labels":["dependencies","vcpkg"],"max_patch_size":1024,"protect_top_level_dot_folders":true,"protected_files":["package.json","bun.lockb","bunfig.toml","deno.json","deno.jsonc","deno.lock","global.json","NuGet.Config","Directory.Packages.props","mix.exs","mix.lock","go.mod","go.sum","stack.yaml","stack.yaml.lock","pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","package-lock.json","yarn.lock","pnpm-lock.yaml","npm-shrinkwrap.json","requirements.txt","Pipfile","Pipfile.lock","pyproject.toml","setup.py","setup.cfg","Gemfile","Gemfile.lock","uv.lock","CODEOWNERS","DESIGN.md","README.md","CONTRIBUTING.md","CHANGELOG.md","SECURITY.md","CODE_OF_CONDUCT.md","AGENTS.md","CLAUDE.md","GEMINI.md"],"target":"*","title_prefix":"[dependencies vcpkg] "},"report_incomplete":{}} + GH_AW_SAFE_OUTPUTS_CONFIG_59ba951af6978ab4_EOF + - name: Generate Safe Outputs Tools + env: + GH_AW_TOOLS_META_JSON: | + { + "description_suffixes": { + "create_pull_request": " CONSTRAINTS: Maximum 1 pull request(s) can be created. Title will be prefixed with \"[dependencies vcpkg] \". Labels [\"dependencies\" \"vcpkg\"] will be automatically added. PRs will be created as drafts.", + "push_to_pull_request_branch": " CONSTRAINTS: The target pull request title must start with \"[dependencies vcpkg] \"." + }, + "repo_params": {}, + "dynamic_tools": [] + } + GH_AW_VALIDATION_JSON: | + { + "create_pull_request": { + "defaultMax": 1, + "fields": { + "base": { + "type": "string", + "sanitize": true, + "maxLength": 128 + }, + "body": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 65000 + }, + "branch": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "draft": { + "type": "boolean" + }, + "labels": { + "type": "array", + "itemType": "string", + "itemSanitize": true, + "itemMaxLength": 128 + }, + "repo": { + "type": "string", + "maxLength": 256 + }, + "title": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 128 + } + } + }, + "missing_data": { + "defaultMax": 20, + "fields": { + "alternatives": { + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "context": { + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "data_type": { + "type": "string", + "sanitize": true, + "maxLength": 128 + }, + "reason": { + "type": "string", + "sanitize": true, + "maxLength": 256 + } + } + }, + "missing_tool": { + "defaultMax": 20, + "fields": { + "alternatives": { + "type": "string", + "sanitize": true, + "maxLength": 512 + }, + "reason": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "tool": { + "type": "string", + "sanitize": true, + "maxLength": 128 + } + } + }, + "noop": { + "defaultMax": 1, + "fields": { + "message": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 65000 + } + } + }, + "push_to_pull_request_branch": { + "defaultMax": 1, + "fields": { + "branch": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "message": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 65000 + }, + "pull_request_number": { + "issueOrPRNumber": true + } + } + }, + "report_incomplete": { + "defaultMax": 5, + "fields": { + "details": { + "type": "string", + "sanitize": true, + "maxLength": 65000 + }, + "reason": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 1024 + } + } + } + } + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_safe_outputs_tools.cjs'); + await main(); + - name: Generate Safe Outputs MCP Server Config + id: safe-outputs-config + run: | + # Generate a secure random API key (360 bits of entropy, 40+ chars) + # Mask immediately to prevent timing vulnerabilities + API_KEY=$(openssl rand -base64 45 | tr -d '/+=') + echo "::add-mask::${API_KEY}" + + PORT=3001 + + # Set outputs for next steps + { + echo "safe_outputs_api_key=${API_KEY}" + echo "safe_outputs_port=${PORT}" + } >> "$GITHUB_OUTPUT" + + echo "Safe Outputs MCP server will run on port ${PORT}" + + - name: Start Safe Outputs MCP HTTP Server + id: safe-outputs-start + env: + DEBUG: '*' + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_SAFE_OUTPUTS_PORT: ${{ steps.safe-outputs-config.outputs.safe_outputs_port }} + GH_AW_SAFE_OUTPUTS_API_KEY: ${{ steps.safe-outputs-config.outputs.safe_outputs_api_key }} + GH_AW_SAFE_OUTPUTS_TOOLS_PATH: ${{ runner.temp }}/gh-aw/safeoutputs/tools.json + GH_AW_SAFE_OUTPUTS_CONFIG_PATH: ${{ runner.temp }}/gh-aw/safeoutputs/config.json + GH_AW_MCP_LOG_DIR: /tmp/gh-aw/mcp-logs/safeoutputs + run: | + # Environment variables are set above to prevent template injection + export DEBUG + export GH_AW_SAFE_OUTPUTS + export GH_AW_SAFE_OUTPUTS_PORT + export GH_AW_SAFE_OUTPUTS_API_KEY + export GH_AW_SAFE_OUTPUTS_TOOLS_PATH + export GH_AW_SAFE_OUTPUTS_CONFIG_PATH + export GH_AW_MCP_LOG_DIR + + bash "${RUNNER_TEMP}/gh-aw/actions/start_safe_outputs_server.sh" + + - name: Start MCP Gateway + id: start-mcp-gateway + env: + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_SAFE_OUTPUTS_API_KEY: ${{ steps.safe-outputs-start.outputs.api_key }} + GH_AW_SAFE_OUTPUTS_PORT: ${{ steps.safe-outputs-start.outputs.port }} + GITHUB_MCP_GUARD_MIN_INTEGRITY: ${{ steps.determine-automatic-lockdown.outputs.min_integrity }} + GITHUB_MCP_GUARD_REPOS: ${{ steps.determine-automatic-lockdown.outputs.repos }} + GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + run: | + set -eo pipefail + mkdir -p "${RUNNER_TEMP}/gh-aw/mcp-config" + + # Export gateway environment variables for MCP config and gateway script + export MCP_GATEWAY_PORT="8080" + export MCP_GATEWAY_DOMAIN="host.docker.internal" + export MCP_GATEWAY_HOST_DOMAIN="localhost" + MCP_GATEWAY_API_KEY=$(openssl rand -base64 45 | tr -d '/+=') + echo "::add-mask::${MCP_GATEWAY_API_KEY}" + export MCP_GATEWAY_API_KEY + export MCP_GATEWAY_PAYLOAD_DIR="/tmp/gh-aw/mcp-payloads" + mkdir -p "${MCP_GATEWAY_PAYLOAD_DIR}" + export MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD="524288" + export DEBUG="*" + + export GH_AW_ENGINE="copilot" + MCP_GATEWAY_UID=$(id -u 2>/dev/null || echo '0') + MCP_GATEWAY_GID=$(id -g 2>/dev/null || echo '0') + case "${DOCKER_HOST:-}" in + unix://* ) DOCKER_SOCK_PATH="${DOCKER_HOST#unix://}" ;; + /* ) DOCKER_SOCK_PATH="$DOCKER_HOST" ;; + * ) DOCKER_SOCK_PATH=/var/run/docker.sock ;; + esac + DOCKER_SOCK_GID=$(stat -c '%g' "$DOCKER_SOCK_PATH" 2>/dev/null || echo '0') + export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network host --add-host host.docker.internal:127.0.0.1 --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DOCKER_HOST=unix:///var/run/docker.sock -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GH_AW_SAFE_OUTPUTS_PORT -e GH_AW_SAFE_OUTPUTS_API_KEY -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw ghcr.io/github/gh-aw-mcpg:v0.3.9' + + mkdir -p /home/runner/.copilot + GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node) + cat << GH_AW_MCP_CONFIG_0e829acfe9d81465_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs" + { + "mcpServers": { + "github": { + "type": "stdio", + "container": "ghcr.io/github/github-mcp-server:v1.0.4", + "env": { + "GITHUB_HOST": "\${GITHUB_SERVER_URL}", + "GITHUB_PERSONAL_ACCESS_TOKEN": "\${GITHUB_MCP_SERVER_TOKEN}", + "GITHUB_READ_ONLY": "1", + "GITHUB_TOOLSETS": "context,repos,issues,pull_requests" + }, + "guard-policies": { + "allow-only": { + "min-integrity": "$GITHUB_MCP_GUARD_MIN_INTEGRITY", + "repos": "$GITHUB_MCP_GUARD_REPOS" + } + } + }, + "safeoutputs": { + "type": "http", + "url": "http://host.docker.internal:$GH_AW_SAFE_OUTPUTS_PORT", + "headers": { + "Authorization": "\${GH_AW_SAFE_OUTPUTS_API_KEY}" + }, + "guard-policies": { + "write-sink": { + "accept": [ + "*" + ] + } + } + } + }, + "gateway": { + "port": $MCP_GATEWAY_PORT, + "domain": "${MCP_GATEWAY_DOMAIN}", + "apiKey": "${MCP_GATEWAY_API_KEY}", + "payloadDir": "${MCP_GATEWAY_PAYLOAD_DIR}" + } + } + GH_AW_MCP_CONFIG_0e829acfe9d81465_EOF + - name: Mount MCP servers as CLIs + id: mount-mcp-clis + continue-on-error: true + env: + MCP_GATEWAY_API_KEY: ${{ steps.start-mcp-gateway.outputs.gateway-api-key }} + MCP_GATEWAY_DOMAIN: ${{ steps.start-mcp-gateway.outputs.gateway-domain }} + MCP_GATEWAY_PORT: ${{ steps.start-mcp-gateway.outputs.gateway-port }} + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io); + const { main } = require('${{ runner.temp }}/gh-aw/actions/mount_mcp_as_cli.cjs'); + await main(); + - name: Clean credentials + continue-on-error: true + run: bash "${RUNNER_TEMP}/gh-aw/actions/clean_git_credentials.sh" + - name: Audit pre-agent workspace + id: pre_agent_audit + continue-on-error: true + run: bash "${RUNNER_TEMP}/gh-aw/actions/audit_pre_agent_workspace.sh" + - name: Execute GitHub Copilot CLI + id: agentic_execution + # Copilot CLI tool arguments (sorted): + timeout-minutes: 20 + run: | + set -o pipefail + printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt + touch /tmp/gh-aw/agent-step-summary.md + GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true) + export GH_AW_NODE_BIN + export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK" + (umask 177 && touch /tmp/gh-aw/agent-stdio.log) + printf '%s\n' '{"$schema":"https://github.com/github/gh-aw-firewall/releases/download/v0.25.49/awf-config.schema.json","network":{"allowDomains":["api.business.githubcopilot.com","api.enterprise.githubcopilot.com","api.github.com","api.githubcopilot.com","api.individual.githubcopilot.com","api.snapcraft.io","archive.ubuntu.com","azure.archive.ubuntu.com","crl.geotrust.com","crl.globalsign.com","crl.identrust.com","crl.sectigo.com","crl.thawte.com","crl.usertrust.com","crl.verisign.com","crl3.digicert.com","crl4.digicert.com","crls.ssl.com","github.com","host.docker.internal","json-schema.org","json.schemastore.org","keyserver.ubuntu.com","ocsp.digicert.com","ocsp.geotrust.com","ocsp.globalsign.com","ocsp.identrust.com","ocsp.sectigo.com","ocsp.ssl.com","ocsp.thawte.com","ocsp.usertrust.com","ocsp.verisign.com","packagecloud.io","packages.cloud.google.com","packages.microsoft.com","ppa.launchpad.net","raw.githubusercontent.com","registry.npmjs.org","s.symcb.com","s.symcd.com","security.ubuntu.com","telemetry.enterprise.githubcopilot.com","ts-crl.ws.symantec.com","ts-ocsp.ws.symantec.com","www.googleapis.com"]},"apiProxy":{"enabled":true,"enableTokenSteering":true,"maxRuns":500,"maxEffectiveTokens":25000000,"models":{"agent":["sonnet-6x","gpt-5.4","gpt-5","gemini-pro","haiku","any"],"any":["copilot/*","anthropic/*","openai/*","google/*","gemini/*"],"auto":["large"],"claude":["agent","sonnet-6x","haiku","any"],"codex":["agent","gpt-5-codex","gpt-5","any"],"coding":["copilot/gpt-5*codex*","openai/gpt-5*codex*","gpt-5-codex"],"copilot":["agent","gpt-5.4","sonnet","gpt-5","any"],"deep-research":["copilot/deep-research*","copilot/o3-deep-research*","copilot/o4-mini-deep-research*","google/deep-research*","gemini/deep-research*","openai/o3-deep-research*","openai/o4-mini-deep-research*"],"gemini":["agent","gemini-pro","gemini-flash","any"],"gemini-flash":["copilot/gemini-*flash*","google/gemini-*flash*","gemini/gemini-*flash*"],"gemini-flash-lite":["copilot/gemini-*flash*lite*","google/gemini-*flash*lite*","gemini/gemini-*flash*lite*"],"gemini-pro":["copilot/gemini-*pro*","google/gemini-*pro*","gemini/gemini-*pro*"],"gemma":["copilot/gemma*","google/gemma*","gemini/gemma*"],"gpt-4.1":["copilot/gpt-4.1*","openai/gpt-4.1*"],"gpt-5":["copilot/gpt-5*","openai/gpt-5*"],"gpt-5-codex":["copilot/gpt-5*codex*","openai/gpt-5*codex*"],"gpt-5-mini":["copilot/gpt-5*mini*","openai/gpt-5*mini*"],"gpt-5-nano":["copilot/gpt-5*nano*","openai/gpt-5*nano*"],"gpt-5-pro":["copilot/gpt-5*pro*","openai/gpt-5*pro*"],"haiku":["copilot/*haiku*","anthropic/*haiku*"],"large":["sonnet","gpt-5-pro","gpt-5","gemini-pro"],"mini":["haiku","gpt-5-mini","gpt-5-nano","gemini-flash-lite","copilot/raptor*mini*"],"opus":["copilot/*opus*","anthropic/*opus*"],"reasoning":["copilot/o1*","copilot/o3*","copilot/o4*","openai/o1*","openai/o3*","openai/o4*"],"small":["mini"],"sonnet":["copilot/*sonnet*","anthropic/*sonnet*"],"sonnet-6x":["copilot/*sonnet-4.5*","copilot/*sonnet-4-5*","anthropic/*sonnet-4.5*","anthropic/*sonnet-4-5*","copilot/*sonnet-3.7*","copilot/*sonnet-3-7*","anthropic/*sonnet-3.7*","anthropic/*sonnet-3-7*","copilot/*sonnet-3.5*","copilot/*sonnet-3-5*","anthropic/*sonnet-3.5*","anthropic/*sonnet-3-5*"],"vision":["copilot/gemini-*image*","gemini/gemini-*image*","copilot/gemini-*flash*","gemini/gemini-*flash*"]}},"container":{"imageTag":"0.25.49"}}' > "${RUNNER_TEMP}/gh-aw/awf-config.json" + cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="" + if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="--docker-host-path-prefix /tmp/gh-aw" + fi + # shellcheck disable=SC1003 + sudo -E awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS} --env-all --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --audit-dir /tmp/gh-aw/sandbox/firewall/audit --enable-host-access --allow-host-ports 80,443,8080 --skip-pull \ + -- /bin/bash -c 'export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log + env: + AWF_REFLECT_ENABLED: 1 + COPILOT_AGENT_RUNNER_TYPE: STANDALONE + COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_MODEL: gpt-5-mini + GH_AW_MCP_CONFIG: /home/runner/.copilot/mcp-config.json + GH_AW_PHASE: agent + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_VERSION: v0.74.8 + GITHUB_API_URL: ${{ github.api_url }} + GITHUB_AW: true + GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows + GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + GITHUB_REF_NAME: ${{ github.ref_name }} + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_STEP_SUMMARY: /tmp/gh-aw/agent-step-summary.md + GITHUB_WORKSPACE: ${{ github.workspace }} + GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_AUTHOR_NAME: github-actions[bot] + GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_COMMITTER_NAME: github-actions[bot] + XDG_CONFIG_HOME: /home/runner + - name: Detect Copilot errors + id: detect-copilot-errors + if: always() + continue-on-error: true + run: node "${RUNNER_TEMP}/gh-aw/actions/detect_copilot_errors.cjs" + - name: Configure Git credentials + env: + REPO_NAME: ${{ github.repository }} + SERVER_URL: ${{ github.server_url }} + GITHUB_TOKEN: ${{ github.token }} + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git config --global am.keepcr true + # Re-authenticate git with GitHub token + SERVER_URL_STRIPPED="${SERVER_URL#https://}" + git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git" + echo "Git configured with standard GitHub Actions identity" + - name: Copy Copilot session state files to logs + if: always() + continue-on-error: true + run: bash "${RUNNER_TEMP}/gh-aw/actions/copy_copilot_session_state.sh" + - name: Stop MCP Gateway + if: always() + continue-on-error: true + env: + MCP_GATEWAY_PORT: ${{ steps.start-mcp-gateway.outputs.gateway-port }} + MCP_GATEWAY_API_KEY: ${{ steps.start-mcp-gateway.outputs.gateway-api-key }} + GATEWAY_PID: ${{ steps.start-mcp-gateway.outputs.gateway-pid }} + run: | + bash "${RUNNER_TEMP}/gh-aw/actions/stop_mcp_gateway.sh" "$GATEWAY_PID" + - name: Redact secrets in logs + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs'); + await main(); + env: + GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN' + SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + SECRET_GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }} + SECRET_GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }} + SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Append agent step summary + if: always() + run: bash "${RUNNER_TEMP}/gh-aw/actions/append_agent_step_summary.sh" + - name: Copy Safe Outputs + if: always() + env: + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + run: | + mkdir -p /tmp/gh-aw + cp "$GH_AW_SAFE_OUTPUTS" /tmp/gh-aw/safeoutputs.jsonl 2>/dev/null || true + - name: Ingest agent output + id: collect_output + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com" + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_API_URL: ${{ github.api_url }} + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/collect_ndjson_output.cjs'); + await main(); + - name: Parse agent logs for step summary + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: /tmp/gh-aw/sandbox/agent/logs/ + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_copilot_log.cjs'); + await main(); + - name: Parse MCP Gateway logs for step summary + if: always() + id: parse-mcp-gateway + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_mcp_gateway_log.cjs'); + await main(); + - name: Print firewall logs + if: always() + continue-on-error: true + env: + AWF_LOGS_DIR: /tmp/gh-aw/sandbox/firewall/logs + run: | + # Fix permissions on firewall logs/audit dirs so they can be uploaded as artifacts + # AWF runs with sudo, creating files owned by root + sudo chmod -R a+rX /tmp/gh-aw/sandbox/firewall 2>/dev/null || true + # Only run awf logs summary if awf command exists (it may not be installed if workflow failed before install step) + if command -v awf &> /dev/null; then + awf logs summary | tee -a "$GITHUB_STEP_SUMMARY" + else + echo 'AWF binary not installed, skipping firewall log summary' + fi + - name: Parse token usage for step summary + if: always() + continue-on-error: true + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_token_usage.cjs'); + await main(); + - name: Print AWF reflect summary + if: always() + continue-on-error: true + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/awf_reflect_summary.cjs'); + await main(); + - name: Write agent output placeholder if missing + if: always() + run: | + if [ ! -f /tmp/gh-aw/agent_output.json ]; then + echo '{"items":[]}' > /tmp/gh-aw/agent_output.json + fi + - name: Upload agent artifacts + if: always() + continue-on-error: true + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: agent + path: | + /tmp/gh-aw/aw-prompts/prompt.txt + /tmp/gh-aw/sandbox/agent/logs/ + /tmp/gh-aw/redacted-urls.log + /tmp/gh-aw/mcp-logs/ + /tmp/gh-aw/agent_usage.json + /tmp/gh-aw/agent-stdio.log + /tmp/gh-aw/pre-agent-audit.txt + /tmp/gh-aw/agent/ + /tmp/gh-aw/github_rate_limits.jsonl + /tmp/gh-aw/safeoutputs.jsonl + /tmp/gh-aw/agent_output.json + /tmp/gh-aw/aw-*.patch + /tmp/gh-aw/aw-*.bundle + /tmp/gh-aw/awf-config.json + /tmp/gh-aw/sandbox/firewall/logs/ + /tmp/gh-aw/sandbox/firewall/audit/ + /tmp/gh-aw/sandbox/firewall/awf-reflect.json + if-no-files-found: ignore + + conclusion: + needs: + - activation + - agent + - detection + - safe_outputs + if: > + always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' || + needs.activation.outputs.stale_lock_file_failed == 'true') + runs-on: ubuntu-slim + permissions: + contents: write + pull-requests: write + concurrency: + group: "gh-aw-conclusion-dependencies-vcpkg" + cancel-in-progress: false + queue: max + outputs: + incomplete_count: ${{ steps.report_incomplete.outputs.incomplete_count }} + noop_message: ${{ steps.noop.outputs.noop_message }} + tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} + total_count: ${{ steps.missing_tool.outputs.total_count }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/dependencies-vcpkg.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Download agent output artifact + id: download-agent-output + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: /tmp/gh-aw/ + - name: Setup agent output environment variable + id: setup-agent-output-env + if: steps.download-agent-output.outcome == 'success' + run: | + mkdir -p /tmp/gh-aw/ + find "/tmp/gh-aw/" -type f -print + echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT" + - name: Process no-op messages + id: noop + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_NOOP_MAX: "1" + GH_AW_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }} + GH_AW_NOOP_REPORT_AS_ISSUE: "true" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_noop_message.cjs'); + await main(); + - name: Log detection run + id: detection_runs + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }} + GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }} + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_detection_runs.cjs'); + await main(); + - name: Record missing tool + id: missing_tool + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_MISSING_TOOL_CREATE_ISSUE: "true" + GH_AW_WORKFLOW_NAME: "Vcpkg Update" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/missing_tool.cjs'); + await main(); + - name: Record incomplete + id: report_incomplete + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_REPORT_INCOMPLETE_CREATE_ISSUE: "true" + GH_AW_WORKFLOW_NAME: "Vcpkg Update" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/report_incomplete_handler.cjs'); + await main(); + - name: Handle agent failure + id: handle_agent_failure + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }} + GH_AW_WORKFLOW_ID: "dependencies-vcpkg" + GH_AW_ACTION_FAILURE_ISSUE_EXPIRES_HOURS: "168" + GH_AW_ENGINE_ID: "copilot" + GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.activation.outputs.secret_verification_result }} + GH_AW_CHECKOUT_PR_SUCCESS: ${{ needs.agent.outputs.checkout_pr_success }} + GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens || '' }} + GH_AW_EFFECTIVE_TOKENS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.effective_tokens_rate_limit_error || 'false' }} + GH_AW_INFERENCE_ACCESS_ERROR: ${{ needs.agent.outputs.inference_access_error }} + GH_AW_MCP_POLICY_ERROR: ${{ needs.agent.outputs.mcp_policy_error }} + GH_AW_AGENTIC_ENGINE_TIMEOUT: ${{ needs.agent.outputs.agentic_engine_timeout }} + GH_AW_MODEL_NOT_SUPPORTED_ERROR: ${{ needs.agent.outputs.model_not_supported_error }} + GH_AW_ENGINE_API_HOSTS: "api.enterprise.githubcopilot.com,api.githubcopilot.com,api.business.githubcopilot.com,api.individual.githubcopilot.com" + GH_AW_CODE_PUSH_FAILURE_ERRORS: ${{ needs.safe_outputs.outputs.code_push_failure_errors }} + GH_AW_CODE_PUSH_FAILURE_COUNT: ${{ needs.safe_outputs.outputs.code_push_failure_count }} + GH_AW_LOCKDOWN_CHECK_FAILED: ${{ needs.activation.outputs.lockdown_check_failed }} + GH_AW_STALE_LOCK_FILE_FAILED: ${{ needs.activation.outputs.stale_lock_file_failed }} + GH_AW_GROUP_REPORTS: "false" + GH_AW_FAILURE_REPORT_AS_ISSUE: "true" + GH_AW_MISSING_TOOL_REPORT_AS_FAILURE: "true" + GH_AW_MISSING_DATA_REPORT_AS_FAILURE: "true" + GH_AW_TIMEOUT_MINUTES: "20" + GH_AW_MAX_EFFECTIVE_TOKENS: "25000000" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_agent_failure.cjs'); + await main(); + + detection: + needs: + - activation + - agent + if: > + always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') + runs-on: ubuntu-latest + permissions: + contents: read + outputs: + detection_conclusion: ${{ steps.detection_conclusion.outputs.conclusion }} + detection_reason: ${{ steps.detection_conclusion.outputs.reason }} + detection_success: ${{ steps.detection_conclusion.outputs.success }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/dependencies-vcpkg.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Download agent output artifact + id: download-agent-output + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: /tmp/gh-aw/ + - name: Setup agent output environment variable + id: setup-agent-output-env + if: steps.download-agent-output.outcome == 'success' + run: | + mkdir -p /tmp/gh-aw/ + find "/tmp/gh-aw/" -type f -print + echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT" + - name: Checkout repository for patch context + if: needs.agent.outputs.has_patch == 'true' + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + # --- Threat Detection --- + - name: Clean stale firewall files from agent artifact + run: | + rm -rf /tmp/gh-aw/sandbox/firewall/logs + rm -rf /tmp/gh-aw/sandbox/firewall/audit + - name: Download container images + run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.25.49 ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49 ghcr.io/github/gh-aw-firewall/squid:0.25.49 + - name: Check if detection needed + id: detection_guard + if: always() + env: + OUTPUT_TYPES: ${{ needs.agent.outputs.output_types }} + HAS_PATCH: ${{ needs.agent.outputs.has_patch }} + run: | + if [[ -n "$OUTPUT_TYPES" || "$HAS_PATCH" == "true" ]]; then + echo "run_detection=true" >> "$GITHUB_OUTPUT" + echo "Detection will run: output_types=$OUTPUT_TYPES, has_patch=$HAS_PATCH" + else + echo "run_detection=false" >> "$GITHUB_OUTPUT" + echo "Detection skipped: no agent outputs or patches to analyze" + fi + - name: Clear MCP Config for detection + if: always() && steps.detection_guard.outputs.run_detection == 'true' + run: | + rm -f "${RUNNER_TEMP}/gh-aw/mcp-config/mcp-servers.json" + rm -f /home/runner/.copilot/mcp-config.json + rm -f "$GITHUB_WORKSPACE/.gemini/settings.json" + - name: Prepare threat detection files + if: always() && steps.detection_guard.outputs.run_detection == 'true' + run: | + mkdir -p /tmp/gh-aw/threat-detection/aw-prompts + cp /tmp/gh-aw/aw-prompts/prompt.txt /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt 2>/dev/null || true + cp /tmp/gh-aw/agent_output.json /tmp/gh-aw/threat-detection/agent_output.json 2>/dev/null || true + for f in /tmp/gh-aw/aw-*.patch; do + [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true + done + for f in /tmp/gh-aw/aw-*.bundle; do + [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true + done + echo "Prepared threat detection files:" + ls -la /tmp/gh-aw/threat-detection/ 2>/dev/null || true + - name: Setup threat detection + if: always() && steps.detection_guard.outputs.run_detection == 'true' + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + WORKFLOW_NAME: "Vcpkg Update" + WORKFLOW_DESCRIPTION: "Dependencies vcpkg" + HAS_PATCH: ${{ needs.agent.outputs.has_patch }} + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/setup_threat_detection.cjs'); + await main(); + - name: Ensure threat-detection directory and log + if: always() && steps.detection_guard.outputs.run_detection == 'true' + run: | + mkdir -p /tmp/gh-aw/threat-detection + touch /tmp/gh-aw/threat-detection/detection.log + - name: Setup Node.js + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + with: + node-version: '24' + package-manager-cache: false + - name: Install GitHub Copilot CLI + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.48 + env: + GH_HOST: github.com + - name: Install AWF binary + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.25.49 + - name: Execute GitHub Copilot CLI + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + id: detection_agentic_execution + # Copilot CLI tool arguments (sorted): + timeout-minutes: 20 + run: | + set -o pipefail + printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt + touch /tmp/gh-aw/agent-step-summary.md + GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true) + export GH_AW_NODE_BIN + export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK" + (umask 177 && touch /tmp/gh-aw/threat-detection/detection.log) + printf '%s\n' '{"$schema":"https://github.com/github/gh-aw-firewall/releases/download/v0.25.49/awf-config.schema.json","network":{"allowDomains":["api.business.githubcopilot.com","api.enterprise.githubcopilot.com","api.github.com","api.githubcopilot.com","api.individual.githubcopilot.com","github.com","host.docker.internal","telemetry.enterprise.githubcopilot.com"]},"apiProxy":{"enabled":true,"enableTokenSteering":true,"maxRuns":500,"maxEffectiveTokens":25000000},"container":{"imageTag":"0.25.49"}}' > "${RUNNER_TEMP}/gh-aw/awf-config.json" + cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="" + if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="--docker-host-path-prefix /tmp/gh-aw" + fi + # shellcheck disable=SC1003 + sudo -E awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS} --env-all --exclude-env COPILOT_GITHUB_TOKEN --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --audit-dir /tmp/gh-aw/sandbox/firewall/audit --enable-host-access --allow-host-ports 80,443,8080 --skip-pull \ + -- /bin/bash -c 'export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log + env: + AWF_REFLECT_ENABLED: 1 + COPILOT_AGENT_RUNNER_TYPE: STANDALONE + COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_MODEL: gpt-5-mini + GH_AW_PHASE: detection + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_VERSION: v0.74.8 + GITHUB_API_URL: ${{ github.api_url }} + GITHUB_AW: true + GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows + GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_REF_NAME: ${{ github.ref_name }} + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_STEP_SUMMARY: /tmp/gh-aw/agent-step-summary.md + GITHUB_WORKSPACE: ${{ github.workspace }} + GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_AUTHOR_NAME: github-actions[bot] + GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_COMMITTER_NAME: github-actions[bot] + XDG_CONFIG_HOME: /home/runner + - name: Upload threat detection log + if: always() && steps.detection_guard.outputs.run_detection == 'true' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: detection + path: /tmp/gh-aw/threat-detection/detection.log + if-no-files-found: ignore + - name: Parse and conclude threat detection + id: detection_conclusion + if: always() + continue-on-error: true + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }} + DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }} + GH_AW_DETECTION_CONTINUE_ON_ERROR: "true" + with: + script: | + try { + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_threat_detection_results.cjs'); + await main(); + } catch (loadErr) { + const continueOnError = process.env.GH_AW_DETECTION_CONTINUE_ON_ERROR !== 'false'; + const detectionExecutionFailed = process.env.DETECTION_AGENTIC_EXECUTION_OUTCOME === 'failure'; + const msg = 'ERR_SYSTEM: \u274C Unexpected error loading threat detection module: ' + (loadErr && loadErr.message ? loadErr.message : String(loadErr)); + core.error(msg); + core.setOutput('reason', 'parse_error'); + if (continueOnError && !detectionExecutionFailed) { + core.warning('\u26A0\uFE0F ' + msg); + core.setOutput('conclusion', 'warning'); + core.setOutput('success', 'false'); + } else { + core.setOutput('conclusion', 'failure'); + core.setOutput('success', 'false'); + core.setFailed(msg); + } + } + + pre_activation: + runs-on: ubuntu-slim + outputs: + activated: ${{ steps.check_membership.outputs.is_team_member == 'true' }} + matched_command: '' + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/dependencies-vcpkg.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Check team membership for workflow + id: check_membership + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_REQUIRED_ROLES: "admin,maintainer,write" + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_membership.cjs'); + await main(); + + safe_outputs: + needs: + - activation + - agent + - detection + if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' + runs-on: ubuntu-slim + permissions: + contents: write + pull-requests: write + timeout-minutes: 15 + env: + GH_AW_CALLER_WORKFLOW_ID: "${{ github.repository }}/dependencies-vcpkg" + GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }} + GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }} + GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens }} + GH_AW_ENGINE_ID: "copilot" + GH_AW_ENGINE_MODEL: "gpt-5-mini" + GH_AW_ENGINE_VERSION: "1.0.48" + GH_AW_WORKFLOW_ID: "dependencies-vcpkg" + GH_AW_WORKFLOW_NAME: "Vcpkg Update" + outputs: + code_push_failure_count: ${{ steps.process_safe_outputs.outputs.code_push_failure_count }} + code_push_failure_errors: ${{ steps.process_safe_outputs.outputs.code_push_failure_errors }} + create_discussion_error_count: ${{ steps.process_safe_outputs.outputs.create_discussion_error_count }} + create_discussion_errors: ${{ steps.process_safe_outputs.outputs.create_discussion_errors }} + created_pr_number: ${{ steps.process_safe_outputs.outputs.created_pr_number }} + created_pr_url: ${{ steps.process_safe_outputs.outputs.created_pr_url }} + process_safe_outputs_processed_count: ${{ steps.process_safe_outputs.outputs.processed_count }} + process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }} + push_commit_sha: ${{ steps.process_safe_outputs.outputs.push_commit_sha }} + push_commit_url: ${{ steps.process_safe_outputs.outputs.push_commit_url }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Vcpkg Update" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/dependencies-vcpkg.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Download agent output artifact + id: download-agent-output + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: /tmp/gh-aw/ + - name: Setup agent output environment variable + id: setup-agent-output-env + if: steps.download-agent-output.outcome == 'success' + run: | + mkdir -p /tmp/gh-aw/ + find "/tmp/gh-aw/" -type f -print + echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT" + - name: Download patch artifact + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: /tmp/gh-aw/ + - name: Extract base branch from agent output + id: extract-base-branch + if: steps.download-agent-output.outcome == 'success' + shell: bash + run: | + if [ -f "/tmp/gh-aw/agent_output.json" ]; then + GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node) + BASE_BRANCH=$("$GH_AW_NODE" -e " + try { + const data = JSON.parse(require('fs').readFileSync('/tmp/gh-aw/agent_output.json', 'utf8')); + const item = (data.items || []).find(i => + (i.type === 'create_pull_request' || i.type === 'push_to_pull_request_branch') && + i.base_branch + ); + if (item) process.stdout.write(item.base_branch); + } catch(e) {} + " 2>/dev/null || true) + # Validate: only allow safe git branch name characters + if [[ "$BASE_BRANCH" =~ ^[a-zA-Z0-9/_.-]+$ ]] && [ ${#BASE_BRANCH} -le 255 ]; then + printf 'base-branch=%s\n' "$BASE_BRANCH" >> "$GITHUB_OUTPUT" + echo "Extracted base branch from safe output: $BASE_BRANCH" + fi + fi + - name: Checkout repository (trusted default branch for comment events) + if: ((!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'create_pull_request') || (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'push_to_pull_request_branch')) && (github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + ref: ${{ github.event.repository.default_branch }} + token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + persist-credentials: false + fetch-depth: 1 + - name: Checkout repository + if: ((!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'create_pull_request') || (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'push_to_pull_request_branch')) && github.event_name != 'issue_comment' && github.event_name != 'pull_request_review_comment' + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + ref: ${{ steps.extract-base-branch.outputs.base-branch || github.base_ref || github.event.pull_request.base.ref || github.ref_name || github.event.repository.default_branch }} + token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + persist-credentials: false + fetch-depth: 1 + - name: Configure Git credentials + if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'create_pull_request') || (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'push_to_pull_request_branch') + env: + REPO_NAME: ${{ github.repository }} + SERVER_URL: ${{ github.server_url }} + GIT_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git config --global am.keepcr true + # Re-authenticate git with GitHub token + SERVER_URL_STRIPPED="${SERVER_URL#https://}" + git remote set-url origin "https://x-access-token:${GIT_TOKEN}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git" + echo "Git configured with standard GitHub Actions identity" + - name: Configure GH_HOST for enterprise compatibility + id: ghes-host-config + shell: bash + run: | + # Derive GH_HOST from GITHUB_SERVER_URL so the gh CLI targets the correct + # GitHub instance (GHES/GHEC). On github.com this is a harmless no-op. + GH_HOST="${GITHUB_SERVER_URL#https://}" + GH_HOST="${GH_HOST#http://}" + echo "GH_HOST=${GH_HOST}" >> "$GITHUB_ENV" + - name: Process Safe Outputs + id: process_safe_outputs + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} + GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com" + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_API_URL: ${{ github.api_url }} + GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"create_pull_request\":{\"allowed_files\":[\"vcpkg-triplets/*.cmake\",\"vcpkg-configuration.json\"],\"draft\":true,\"fallback_as_issue\":false,\"labels\":[\"dependencies\",\"vcpkg\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":1024,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\",\"CLAUDE.md\",\"GEMINI.md\"],\"title_prefix\":\"[dependencies vcpkg] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"true\"},\"push_to_pull_request_branch\":{\"allowed_files\":[\"vcpkg-triplets/*.cmake\",\"vcpkg-configuration.json\"],\"if_no_changes\":\"warn\",\"labels\":[\"dependencies\",\"vcpkg\"],\"max_patch_size\":1024,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\",\"CLAUDE.md\",\"GEMINI.md\"],\"target\":\"*\",\"title_prefix\":\"[dependencies vcpkg] \"},\"report_incomplete\":{}}" + GH_AW_CI_TRIGGER_TOKEN: ${{ secrets.GH_AW_CI_TRIGGER_TOKEN }} + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/safe_output_handler_manager.cjs'); + await main(); + - name: Upload Safe Outputs Items + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: safe-outputs-items + path: | + /tmp/gh-aw/safe-output-items.jsonl + /tmp/gh-aw/temporary-id-map.json + if-no-files-found: ignore + diff --git a/.github/workflows/dependencies-vcpkg.md b/.github/workflows/dependencies-vcpkg.md new file mode 100644 index 00000000..f2817046 --- /dev/null +++ b/.github/workflows/dependencies-vcpkg.md @@ -0,0 +1,73 @@ +--- +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +description: Dependencies vcpkg + +on: + schedule: daily + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +safe-outputs: + create-pull-request: + title-prefix: "[dependencies vcpkg] " + labels: [dependencies, vcpkg] + draft: true + fallback-as-issue: false + allowed-files: + - "vcpkg-triplets/*.cmake" + - "vcpkg-configuration.json" + + push-to-pull-request-branch: + target: "*" + title-prefix: "[dependencies vcpkg] " + labels: [dependencies, vcpkg] + allowed-files: + - "vcpkg-triplets/*.cmake" + - "vcpkg-configuration.json" + +checkout: + fetch: ["*"] + fetch-depth: 0 + +engine: + id: copilot + model: gpt-5-mini +--- + +# Vcpkg Update + + +`kaito-tokyo/vcpkg-obs-kaito-tokyo` is the upstream repository for vcpkg binary packages. + + + +Keep the vcpkg configuration files in sync between this repository and `kaito-tokyo/vcpkg-obs-kaito-tokyo`. + + + +- `vcpkg-triplets/*.cmake` +- `vcpkg-configuration.json` + + + +Help maintainers of this repository to keep the vcpkg configuration files up to date by creating or updating a Pull Request when you find changes in the upstream repository. + + + +{{#runtime-import .github/pull_request_template.md}} + + + +- You MUST keep only one open Pull Request at a time for this workflow. +- Pull Requests created by this workflow use the title prefix `[dependencies vcpkg] ` and are labeled with `dependencies` and `vcpkg`. +- If a matching open Pull Request already exists, you MUST push changes to that Pull Request's branch. Otherwise, you MUST create a new Pull Request. +- You MUST include the Pull Request template content in the Pull Request description. +- You MUST NOT change any fields other than `default-registry.baseline` or `registries[].baseline` in `vcpkg-configuration.json`. + diff --git a/.github/workflows/ort-build-macos.yml b/.github/workflows/ort-build-macos.yml new file mode 100644 index 00000000..c89e0bfc --- /dev/null +++ b/.github/workflows/ort-build-macos.yml @@ -0,0 +1,200 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/workflows/ort-build-macos.yml +# author: Kaito Udagawa +# date: 2026-05-28 + +name: ORT build macOS + +on: + workflow_call: + inputs: + runs-on: + description: The runner label to run this workflow on. + required: true + type: string + DEVELOPER_DIR: + description: The value of DEVELOPER_DIR environment variable. + required: true + type: string + VCPKG_BINARY_SOURCES: + description: VCPKG_BINARY_SOURCES environment variable for the build jobs. + required: true + type: string + +permissions: {} + +jobs: + build-macos: + runs-on: ${{ inputs.runs-on }} + timeout-minutes: 180 + + permissions: + contents: read + + env: + DEVELOPER_DIR: '${{ inputs.DEVELOPER_DIR }}' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + + steps: + - name: Output Image Metadata + id: image-metadata + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + echo "ImageVersion=$ImageVersion" >> "$GITHUB_OUTPUT" + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Extract buildspec.props + id: buildspec + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + awk '!/(^#|^[[:space:]]*$)/' buildspec.props >> "$GITHUB_OUTPUT" + + - name: Checkout vcpkg + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/vcpkg + ref: ${{ steps.buildspec.outputs.vcpkg_git_tag }} + persist-credentials: false + path: vcpkg + filter: blob:none + + - name: Checkout ONNX Runtime + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/onnxruntime + ref: ${{ steps.buildspec.outputs.onnxruntime_git_tag }} + persist-credentials: false + path: onnxruntime + submodules: recursive + + - name: Set up Python for build requirements + id: setup-python + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version-file: .python-version + pip-install: -r requirements-build.txt + + - name: Set up ccache + id: setup-ccache + uses: ./.github/actions/setup-ccache + + - name: Print Xcode version + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + xcodebuild -version + + - name: Run bootstrap-vcpkg.sh + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + ./vcpkg/bootstrap-vcpkg.sh -disableMetrics + + - name: Fetch CMake and Ninja from vcpkg toolchains + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + export PATH=/usr/bin:/bin:/usr/sbin:/sbin VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" + ./vcpkg/vcpkg fetch cmake + ./vcpkg/vcpkg fetch ninja + + - name: Generate toolchain report for building ONNX Runtime (macOS) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + PYTHON_EXE: '${{ steps.setup-python.outputs.python-path }}' + run: | + "$PYTHON_EXE" --version + + env -i \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH="/usr/bin:/bin:/usr/sbin:/sbin" \ + PYTHON="$PYTHON_EXE" \ + ./scripts/build_onnxruntime_macos.sh toolchain_report | tee build_onnxruntime_toolchain.txt + + - name: Restore ONNX Runtime ccache (macOS) + id: restore-ccache-ort + uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: .ccache_ort + key: ccache-ort-${{ runner.os }}-universal-${{ steps.image-metadata.outputs.ImageVersion }}-${{ hashFiles('build_onnxruntime_toolchain.txt') }}-${{ steps.setup-ccache.outputs.VERSION }} + restore-keys: | + ccache-ort-${{ runner.os }}-universal-${{ steps.image-metadata.outputs.ImageVersion }}-${{ hashFiles('build_onnxruntime_toolchain.txt') }}- + ccache-ort-${{ runner.os }}-universal-${{ steps.image-metadata.outputs.ImageVersion }}- + ccache-ort-${{ runner.os }}-universal- + + - name: Reset .ccache_ort stats + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ github.workspace }}/.ccache_ort' + CCACHE_BASEDIR: '${{ github.workspace }}' + run: | + ccache -z + + - name: Build ONNX Runtime (macOS) + id: build-onnxruntime + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + PYTHON_EXE: '${{ steps.setup-python.outputs.python-path }}' + run: | + CCACHE_EXE="$(command -v ccache)" + CMAKE_EXE="$(VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" ./vcpkg/vcpkg fetch cmake | tail -n1)" + NINJA_EXE="$(VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" ./vcpkg/vcpkg fetch ninja | tail -n1)" + + # shellcheck disable=SC2120 + xcbeautify() { if command -v xcbeautify >/dev/null 2>&1; then command xcbeautify "$@"; else cat; fi; } + + "$CCACHE_EXE" -V + "$CMAKE_EXE" --version + "$NINJA_EXE" --version + + build_onnxruntime_macos() { + env -i \ + CCACHE_DIR="$GITHUB_WORKSPACE/.ccache_ort" \ + CCACHE_BASEDIR="$GITHUB_WORKSPACE" \ + CCACHE_SLOPPINESS='include_file_mtime,time_macros' \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH="${CMAKE_EXE%/*}:${NINJA_EXE%/*}:${CCACHE_EXE%/*}:/usr/bin:/bin:/usr/sbin:/sbin" \ + PYTHON="$PYTHON_EXE" \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + ./scripts/build_onnxruntime_macos.sh "$@" + } + + build_onnxruntime_macos patch_onnxruntime + build_onnxruntime_macos build_py arm64 --update + build_onnxruntime_macos build_py x86_64 --update + build_onnxruntime_macos build_py arm64 --build | tee build_onnxruntime_build_arm64.log | xcbeautify + build_onnxruntime_macos build_py x86_64 --build | tee build_onnxruntime_build_x86_64.log | xcbeautify + build_onnxruntime_macos install_onnxruntime + + - name: Upload ONNX Runtime build logs + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: Build ONNX Runtime logs + path: | + build_onnxruntime_*.log + if-no-files-found: ignore + retention-days: 7 + + - name: Show .ccache_ort stats + if: always() + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ github.workspace }}/.ccache_ort' + CCACHE_BASEDIR: '${{ github.workspace }}' + run: | + ccache -s + + - name: Save ORT ccache + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 + with: + path: .ccache_ort + key: ${{ steps.restore-ccache-ort.outputs.cache-primary-key }} diff --git a/.github/workflows/ort-build-ubuntu.yml b/.github/workflows/ort-build-ubuntu.yml new file mode 100644 index 00000000..97d5d37e --- /dev/null +++ b/.github/workflows/ort-build-ubuntu.yml @@ -0,0 +1,145 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/workflows/ort-build-ubuntu.yml +# author: Kaito Udagawa +# version: 1.1.0 +# date: 2026-04-04 + +on: + workflow_call: + inputs: + VCPKG_BINARY_SOURCES: + description: VCPKG_BINARY_SOURCES environment variable for the build jobs. + required: true + type: string + ort-version: + description: The ONNX Runtime version. + required: true + type: string + +permissions: {} + +jobs: + build-ubuntu-x86_64: + runs-on: ubuntu-24.04 + timeout-minutes: 180 + + permissions: + contents: read + + env: + CLEAN_BASH_ENV: '${{ github.workspace }}/.github/scripts/clean-env-ubuntu.bash' + FILTERED_PATH: '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' + ORT_CCACHE_DIR: '${{ github.workspace }}/.ort_ccache' + ORT_CCACHE_LOGFILE: '${{ github.workspace }}/ort_ccache.log' + + steps: + - name: Output Image Metadata + id: image-metadata + shell: bash + run: | + echo "ImageVersion=$ImageVersion" >> "$GITHUB_OUTPUT" + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Set up Python for build requirements + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version-file: .python-version + pip-install: -r requirements-build.txt + + # ASSERT: The directory of python3 executable is prepended to the PATH even if PATH is overridden in the env section. + + - name: Set up ccache + id: setup-ccache + uses: ./.github/actions/setup-ccache + + # ASSERT: The directory of ccache executable is prepended to the PATH even if PATH is overridden in the env section. + + - name: Compute Toolchain Hash of ONNX Runtime (Ubuntu x86_64) + id: ort-toolchain + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + HASH: ${{ hashFiles('src/required_operators_and_types.with_runtime_opt.config', 'scripts/build_ort_ubuntu.sh', 'scripts/ort_patches/*.patch') }} + run: | + echo "HASH=$HASH" >> "$GITHUB_OUTPUT" + + - name: Restore ONNX Runtime ccache generated by ORT CI (Ubuntu x86_64) + id: restore-ort-ccache + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 + with: + path: ${{ env.ORT_CCACHE_DIR }} + key: ort-ccache-${{ runner.os }}-x86_64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}-${{ steps.setup-ccache.outputs.VERSION }} + restore-keys: | + ort-ccache-${{ runner.os }}-x86_64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}- + ort-ccache-${{ runner.os }}-x86_64-${{ steps.image-metadata.outputs.ImageVersion }}- + + - name: Checkout ONNX Runtime + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/onnxruntime + ref: ${{ inputs.ort-version }} + persist-credentials: false + path: .deps_vendor/onnxruntime + submodules: recursive + + - name: Patch ONNX Runtime + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + working-directory: .deps_vendor/onnxruntime + env: + GIT_CONFIG_PARAMETERS: "'user.name=github-actions[bot]' 'user.email=41898282+github-actions[bot]@users.noreply.github.com'" + run: | + patches=(../../scripts/ort_patches/*.patch) + if [[ "${#patches[@]}" -gt 0 ]]; then + git am --no-gpg-sign --3way "${patches[@]}" + fi + + - name: Build ONNX Runtime (Ubuntu x86_64) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + BASH_ENV: '${{ env.CLEAN_BASH_ENV }}' + CCACHE_BASEDIR: '${{ github.workspace }}' + CCACHE_COMPILERCHECK: 'content' + CCACHE_COMPRESS: 'true' + CCACHE_DEPEND: 'true' + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + CCACHE_DIRECT: 'true' + CCACHE_SLOPPINESS: 'include_file_ctime,include_file_mtime,time_macros,pch_defines' + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + # Do not set VCPKG_ROOT. Let it manage by ONNX Runtime itself. + run: | + ./scripts/build_ort_ubuntu.sh run_build_py x86_64 update + ./scripts/build_ort_ubuntu.sh run_build_py x86_64 build + ./scripts/build_ort_ubuntu.sh install_ort + + - name: Show ccache stats for ONNX Runtime + if: always() + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + continue-on-error: true + run: | + printf '## Ccache stats for ONNX Runtime\n\n```\n%s```\n' "$(ccache -s)" >> "$GITHUB_STEP_SUMMARY" + + - name: Upload ORT ccache log (Ubuntu x86_64) + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: ort-ccache-log-${{ runner.os }}-x86_64 + path: ${{ env.ORT_CCACHE_LOGFILE }} + if-no-files-found: warn + retention-days: 7 + + - name: Save ORT ccache + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 + with: + path: ${{ env.ORT_CCACHE_DIR }} + key: ${{ steps.restore-ort-ccache.outputs.cache-primary-key }} diff --git a/.github/workflows/ort-build-windows.yml b/.github/workflows/ort-build-windows.yml new file mode 100644 index 00000000..7af76d0c --- /dev/null +++ b/.github/workflows/ort-build-windows.yml @@ -0,0 +1,180 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/workflows/ort-build-windows.yml +# author: Kaito Udagawa +# version: 1.1.0 +# date: 2026-04-04 + +on: + workflow_call: + inputs: + VCPKG_BINARY_SOURCES: + description: VCPKG_BINARY_SOURCES environment variable for the build jobs. + required: true + type: string + ort-version: + description: The ONNX Runtime version. + required: true + type: string + +permissions: {} + +jobs: + build-windows-x64: + runs-on: windows-2022 + timeout-minutes: 180 + + permissions: + contents: read + + env: + CLEAN_PWSH_ENV: '${{ github.workspace }}\.github\scripts\clean-env-windows.ps1' + FILTERED_PATH: 'C:\ProgramData\chocolatey\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32;C:\Windows' + ORT_CCACHE_DIR: '${{ github.workspace }}\.ort_ccache' + ORT_CCACHE_LOGFILE: '${{ github.workspace }}\ort_ccache.log' + + steps: + - name: Enable Windows long path + shell: pwsh + run: | + Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 + + - name: Output Image Metadata + id: image-metadata + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + echo "ImageVersion=$ImageVersion" >> "$GITHUB_OUTPUT" + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Set up Python for build requirements + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version-file: .python-version + pip-install: -r requirements-build.txt + + - name: Print CMake version on Windows + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + . $env:CLEAN_PWSH_ENV + cmake --version + + - name: Print Ninja version on Windows + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + . $env:CLEAN_PWSH_ENV + ninja --version + + - name: Print vswhere information for Visual Studio 2022 on Windows + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + . $env:CLEAN_PWSH_ENV + vswhere -version '[17.0,18.0)' + + # ASSERT: The directory of python3 executable is prepended to the PATH even if PATH is overridden in the env section. + + - name: Set up ccache + id: setup-ccache + uses: ./.github/actions/setup-ccache + + # ASSERT: The directory of ccache executable is prepended to the PATH even if PATH is overridden in the env section. + + - name: Compute Toolchain Hash of ONNX Runtime (Windows x64) + id: ort-toolchain + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + HASH: ${{ hashFiles('src/required_operators_and_types.with_runtime_opt.config', 'scripts/build_ort_windows.ps1', 'scripts/ort_patches/*.patch') }} + run: | + echo "HASH=$HASH" >> "$GITHUB_OUTPUT" + + - name: Restore ONNX Runtime ccache generated by ORT CI (Windows x64) + id: restore-ort-ccache + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 + with: + path: ${{ env.ORT_CCACHE_DIR }} + key: ort-ccache-${{ runner.os }}-x64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}-${{ steps.setup-ccache.outputs.VERSION }} + restore-keys: | + ort-ccache-${{ runner.os }}-x64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}- + ort-ccache-${{ runner.os }}-x64-${{ steps.image-metadata.outputs.ImageVersion }}- + + - name: Checkout ONNX Runtime + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/onnxruntime + ref: ${{ inputs.ort-version }} + persist-credentials: false + path: .deps_vendor/onnxruntime + submodules: recursive + + - name: Patch ONNX Runtime + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + working-directory: .deps_vendor/onnxruntime + env: + GIT_CONFIG_PARAMETERS: "'user.name=github-actions[bot]' 'user.email=41898282+github-actions[bot]@users.noreply.github.com'" + run: | + patches=(../../scripts/ort_patches/*.patch) + if [[ "${#patches[@]}" -gt 0 ]]; then + git am --no-gpg-sign --3way "${patches[@]}" + fi + + - name: Build ONNX Runtime (Windows x64) + shell: pwsh + env: + CCACHE_BASEDIR: '${{ github.workspace }}' + CCACHE_COMPILERCHECK: 'content' + CCACHE_COMPRESS: 'true' + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + CCACHE_DIRECT: 'true' + CCACHE_NODEPEND: 'true' + CCACHE_SLOPPINESS: 'include_file_ctime,include_file_mtime,time_macros,pch_defines' + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + # Do not set VCPKG_ROOT. Let it manage by ONNX Runtime itself. + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + ./scripts/build_ort_windows.ps1 setup_ccache + ./scripts/build_ort_windows.ps1 run_build_py x64 update + ./scripts/build_ort_windows.ps1 run_build_py x64 build + ./scripts/build_ort_windows.ps1 install_ort + + - name: Show ccache stats for ONNX Runtime + if: always() + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + continue-on-error: true + run: | + printf '## Ccache stats for ONNX Runtime\n\n```\n%s```\n' "$(ccache -s)" >> "$GITHUB_STEP_SUMMARY" + + - name: Upload ORT ccache log (Windows x64) + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: ort-ccache-log-${{ runner.os }}-x64-${{ steps.image-metadata.outputs.ImageVersion }} + path: ${{ env.ORT_CCACHE_LOGFILE }} + if-no-files-found: warn + retention-days: 7 + + - name: Save ORT ccache + uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 + with: + path: ${{ env.ORT_CCACHE_DIR }} + key: ${{ steps.restore-ort-ccache.outputs.cache-primary-key }} diff --git a/.github/workflows/ort.yml b/.github/workflows/ort.yml new file mode 100644 index 00000000..7f912721 --- /dev/null +++ b/.github/workflows/ort.yml @@ -0,0 +1,79 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +name: ORT CI + +# file: .github/workflows/ort.yml +# author: Kaito Udagawa +# date: 2026-05-28 + +on: + pull_request: + branches: [main] + push: + branches: [main] + tags: ["*"] + schedule: + - cron: 17 4 * * * + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + +jobs: + config: + runs-on: ubuntu-slim + timeout-minutes: 10 + + permissions: {} + + outputs: + VCPKG_BINARY_SOURCES: ${{ steps.config.outputs.VCPKG_BINARY_SOURCES }} + + steps: + - name: Config + id: config + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + printf 'VCPKG_BINARY_SOURCES=%s\n' 'clear;http,https://vcpkg-obs.kaito.tokyo/{name}/{version}/{sha},read' >> "${GITHUB_OUTPUT}" + + + # build-windows: + # permissions: + # contents: read + # uses: ./.github/workflows/ort-build-windows.yml + # with: + # VCPKG_BINARY_SOURCES: 'clear;http,https://vcpkg-obs.kaito.tokyo/{name}/{version}/{sha}' + # ort-version: v1.24.4 + + build-macos: + needs: config + permissions: + contents: read + uses: ./.github/workflows/ort-build-macos.yml + with: + runs-on: macos-15 + DEVELOPER_DIR: /Applications/Xcode_16.4.app + VCPKG_BINARY_SOURCES: ${{ needs.config.outputs.VCPKG_BINARY_SOURCES }} + + # build-ubuntu: + # permissions: + # contents: read + # uses: ./.github/workflows/ort-build-ubuntu.yml + # with: + # VCPKG_BINARY_SOURCES: 'clear;http,https://vcpkg-obs.kaito.tokyo/{name}/{version}/{sha}' + # ort-version: v1.24.4 + + accept-ort: + name: Accept ORT CI + # needs: [build-windows, build-macos, build-ubuntu] + needs: [build-macos] + runs-on: ubuntu-slim + permissions: {} + steps: + - name: Accept ort + run: | + echo 'The workflow ort has completed successfully.' diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..a1862bdf --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,124 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +name: Pages CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + schedule: + - cron: '43 2 * * *' # Every day at 2:43 UTC + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + BUILD_PATH: pages + +jobs: + build: + name: Build Pages + + runs-on: ubuntu-slim + timeout-minutes: 10 + + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Setup Node + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + with: + node-version-file: ${{ env.BUILD_PATH }}/.node-version + cache: npm + cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json + + - name: Setup Pages + id: pages + uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 + + - name: Install dependencies + shell: bash + working-directory: ${{ env.BUILD_PATH }} + run: npm ci + + - name: Build with Astro + shell: bash + working-directory: ${{ env.BUILD_PATH }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SITE: ${{ steps.pages.outputs.origin }} + BASE: ${{ steps.pages.outputs.base_path }} + PRODUCTION_BASE_URL: ${{ steps.pages.outputs.base_url }} + run: | + set -euo pipefail + npx astro build --site "$SITE" --base "$BASE" + node scripts/add-sri.mjs "$PRODUCTION_BASE_URL" dist + node scripts/add-csp-hashes.mjs dist + node scripts/generate-provenance.mjs "$PRODUCTION_BASE_URL" dist provenance.json + mv provenance.json dist/provenance.json + + - name: Upload artifact + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: pages-build + path: ${{ env.BUILD_PATH }}/dist + if-no-files-found: error + + deploy: + name: Deploy Pages + + if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') + needs: build + + runs-on: ubuntu-slim + timeout-minutes: 10 + + permissions: + attestations: write + contents: read + id-token: write + pages: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Download artifact + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: pages-build + path: dist + + # Establish chain of trust by attesting the provenance of the build artifact. + - name: Attest site provenance + id: attest + uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0 + with: + subject-path: dist/provenance.json + + - name: Copy attestation bundle + env: + BUNDLE_PATH: ${{ steps.attest.outputs.bundle-path }} + shell: bash + run: cp "$BUNDLE_PATH" dist/provenance.attestation.json + + - name: Upload artifact + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 + with: + path: dist + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 diff --git a/.github/workflows/plugin-build-macos.yml b/.github/workflows/plugin-build-macos.yml new file mode 100644 index 00000000..eadd6350 --- /dev/null +++ b/.github/workflows/plugin-build-macos.yml @@ -0,0 +1,412 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/workflows/plugin-build-macos.yml +# author: Kaito Udagawa +# date: 2026-05-28 + +name: Plugin build macOS + +on: + workflow_call: + inputs: + job-index: + description: The job index for logging. + required: false + type: number + default: 0 + environment: + description: The environment name for the build jobs, or empty string for no environment. + required: false + type: string + default: '' + runs-on: + description: The runner label to run this workflow on. + required: true + type: string + DEVELOPER_DIR: + description: The value of DEVELOPER_DIR environment variable. + required: true + type: string + VCPKG_BINARY_SOURCES: + description: VCPKG_BINARY_SOURCES environment variable for the build jobs. + required: true + type: string + + secrets: + MACOS_NOTARIZATION_PASSWORD: + required: false + MACOS_NOTARIZATION_USERNAME: + required: false + MACOS_SIGNING_APPLICATION_IDENTITY: + required: false + MACOS_SIGNING_CERT_PASSWORD: + required: false + MACOS_SIGNING_CERT: + required: false + MACOS_SIGNING_INSTALLER_IDENTITY: + required: false + +permissions: {} + +jobs: + build-macos: + # FIXME: Environments will be created later. + # environment: ${{ inputs.environment }} + runs-on: ${{ inputs.runs-on }} + timeout-minutes: 180 + + permissions: + contents: read + + env: + DEVELOPER_DIR: '${{ inputs.DEVELOPER_DIR }}' + OSX_ARCHITECTURES: 'arm64;x86_64' + OSX_DEPLOYMENT_TARGET: '12.0' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + + steps: + - name: Output Image Metadata + id: image-metadata + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + echo "ImageVersion=$ImageVersion" >> "$GITHUB_OUTPUT" + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Extract buildspec.props + id: buildspec + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + awk '!/(^#|^[[:space:]]*$)/' buildspec.props >> "$GITHUB_OUTPUT" + + - name: Checkout obs-studio + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: obsproject/obs-studio + ref: ${{ steps.buildspec.outputs.obs_studio_git_tag }} + persist-credentials: false + path: obs-studio + filter: blob:none + + - name: Checkout vcpkg + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/vcpkg + ref: ${{ steps.buildspec.outputs.vcpkg_git_tag }} + persist-credentials: false + path: vcpkg + filter: blob:none + + - name: Checkout ONNX Runtime + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/onnxruntime + ref: ${{ steps.buildspec.outputs.onnxruntime_git_tag }} + persist-credentials: false + path: onnxruntime + submodules: recursive + + - name: Set up Python for build requirements + id: setup-python + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version-file: .python-version + pip-install: -r requirements-build.txt + + - name: Set up ccache + id: setup-ccache + uses: ./.github/actions/setup-ccache + + - name: Print Xcode version + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + xcodebuild -version + + - name: Run bootstrap-vcpkg.sh + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + ./vcpkg/bootstrap-vcpkg.sh -disableMetrics + + - name: Fetch CMake and Ninja from vcpkg toolchains + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + export PATH=/usr/bin:/bin:/usr/sbin:/sbin VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" + ./vcpkg/vcpkg fetch cmake + ./vcpkg/vcpkg fetch ninja + + - name: Build OBS (macOS) + id: build-obs + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + CMAKE_EXE="$(VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" ./vcpkg/vcpkg fetch cmake | tail -n1)" + + "$CMAKE_EXE" --version + + # shellcheck disable=SC2120 + xcbeautify() { if command -v xcbeautify >/dev/null 2>&1; then command xcbeautify "$@"; else cat; fi; } + + build_obs_macos() { + env -i \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH="${CMAKE_EXE%/*}:/usr/bin:/bin:/usr/sbin:/sbin" \ + ./scripts/build_obs_macos.sh "$@" + } + + build_obs_macos download_prebuilt + build_obs_macos download_qt6 + build_obs_macos configure_obs + build_obs_macos build_obs Release | tee build_obs_release.log | xcbeautify + build_obs_macos install_obs Release + + - name: Upload OBS build logs + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: Build OBS logs + path: | + build_obs*.log + if-no-files-found: ignore + retention-days: 7 + + - name: Install dependencies listed on vcpkg.json (arm64-osx-obs) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + env -i \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH=/usr/bin:/bin:/usr/sbin:/sbin \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" \ + ./vcpkg/vcpkg install --triplet=arm64-osx-obs --x-install-root=vcpkg_installed_arm64 + + - name: Install dependencies listed on vcpkg.json (x64-osx-obs) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + env -i \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH=/usr/bin:/bin:/usr/sbin:/sbin \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" \ + ./vcpkg/vcpkg install --triplet=x64-osx-obs --x-install-root=vcpkg_installed_x64 + + - name: Lipo vcpkg_installed + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + ./scripts/lipo_vcpkg_macos.sh \ + ./vcpkg_installed/universal-osx-obs \ + ./vcpkg_installed_arm64/arm64-osx-obs \ + ./vcpkg_installed_x64/x64-osx-obs + + - name: Generate toolchain report for building ONNX Runtime (macOS) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + PYTHON_EXE: '${{ steps.setup-python.outputs.python-path }}' + run: | + "$PYTHON_EXE" --version + + env -i \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH="/usr/bin:/bin:/usr/sbin:/sbin" \ + PYTHON="$PYTHON_EXE" \ + ./scripts/build_onnxruntime_macos.sh toolchain_report | tee build_onnxruntime_toolchain.txt + + - name: Restore ONNX Runtime ccache (macOS) + id: restore-ccache-ort + uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: .ccache_ort + key: ccache-ort-${{ runner.os }}-universal-${{ steps.image-metadata.outputs.ImageVersion }}-${{ hashFiles('build_onnxruntime_toolchain.txt') }}-${{ steps.setup-ccache.outputs.VERSION }} + restore-keys: | + ccache-ort-${{ runner.os }}-universal-${{ steps.image-metadata.outputs.ImageVersion }}-${{ hashFiles('build_onnxruntime_toolchain.txt') }}- + ccache-ort-${{ runner.os }}-universal-${{ steps.image-metadata.outputs.ImageVersion }}- + ccache-ort-${{ runner.os }}-universal- + + - name: Reset .ccache_ort stats + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ github.workspace }}/.ccache_ort' + CCACHE_BASEDIR: '${{ github.workspace }}' + run: | + ccache -z + + - name: Build ONNX Runtime (macOS) + id: build-onnxruntime + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + PYTHON_EXE: '${{ steps.setup-python.outputs.python-path }}' + run: | + CCACHE_EXE="$(command -v ccache)" + CMAKE_EXE="$(VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" ./vcpkg/vcpkg fetch cmake | tail -n1)" + NINJA_EXE="$(VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" ./vcpkg/vcpkg fetch ninja | tail -n1)" + + # shellcheck disable=SC2120 + xcbeautify() { if command -v xcbeautify >/dev/null 2>&1; then command xcbeautify "$@"; else cat; fi; } + + "$CCACHE_EXE" -V + "$CMAKE_EXE" --version + "$NINJA_EXE" --version + + build_onnxruntime_macos() { + env -i \ + CCACHE_DIR="$GITHUB_WORKSPACE/.ccache_ort" \ + CCACHE_BASEDIR="$GITHUB_WORKSPACE" \ + CCACHE_SLOPPINESS='include_file_mtime,time_macros' \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH="${CMAKE_EXE%/*}:${NINJA_EXE%/*}:${CCACHE_EXE%/*}:/usr/bin:/bin:/usr/sbin:/sbin" \ + PYTHON="$PYTHON_EXE" \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + ./scripts/build_onnxruntime_macos.sh "$@" + } + + build_onnxruntime_macos patch_onnxruntime + build_onnxruntime_macos build_py arm64 --update + build_onnxruntime_macos build_py x86_64 --update + build_onnxruntime_macos build_py arm64 --build | tee build_onnxruntime_build_arm64.log | xcbeautify + build_onnxruntime_macos build_py x86_64 --build | tee build_onnxruntime_build_x86_64.log | xcbeautify + build_onnxruntime_macos install_onnxruntime + + - name: Upload ONNX Runtime build logs + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: Build ONNX Runtime logs + path: | + build_onnxruntime_*.log + if-no-files-found: ignore + retention-days: 7 + + - name: Show .ccache_ort stats + if: always() + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ github.workspace }}/.ccache_ort' + CCACHE_BASEDIR: '${{ github.workspace }}' + run: | + ccache -s + + - name: Build Plugin (macOS) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + CMAKE_EXE="$(VCPKG_ROOT="$GITHUB_WORKSPACE/vcpkg" ./vcpkg/vcpkg fetch cmake | tail -n1)" + + plugin_cmake() { + env -i \ + DEVELOPER_DIR="$DEVELOPER_DIR" \ + HOME="$HOME" \ + PATH="/usr/bin:/bin:/usr/sbin:/sbin" \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + "$CMAKE_EXE" "$@" + } + + plugin_cmake -G Xcode -S . -B build_plugin + plugin_cmake --build build_plugin --config RelWithDebInfo | tee build_plugin_relwithdebinfo.log | xcbeautify + + - name: Upload Plugin build logs + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: Build Plugin logs + path: | + build_plugin_*.log + if-no-files-found: ignore + retention-days: 7 + + - name: Install Plugin (macOS) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + cmake --install build_plugin --config RelWithDebInfo --strip --prefix build_stage + + - name: Extract dSYM + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + mkdir -p release + . ./build_plugin/cmake_export.sh + + dsymutil "build_plugin/RelWithDebInfo/$PLUGIN_NAME.plugin/Contents/MacOS/$PLUGIN_NAME" -o "build_plugin/$PLUGIN_NAME.dSYM" + ZSTD_CLEVEL=19 tar -acf "release/$PLUGIN_NAME.dSYM.tar.zst" --mac-metadata "build_plugin/$PLUGIN_NAME.dSYM" + + - name: Set up macOS Signing Certificates + if: inputs.environment == 'production-macos' + id: codesign + uses: ./.github/actions/setup-macos-codesigning + with: + MACOS_SIGNING_APPLICATION_IDENTITY: ${{ secrets.MACOS_SIGNING_APPLICATION_IDENTITY }} + MACOS_SIGNING_CERT: ${{ secrets.MACOS_SIGNING_CERT }} + MACOS_SIGNING_CERT_PASSWORD: ${{ secrets.MACOS_SIGNING_CERT_PASSWORD }} + + - name: Package Plugin (macOS) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CODESIGN_ENABLED: "${{ inputs.environment == 'production-macos' }}" + MACOS_SIGNING_APPLICATION_IDENTITY: ${{ secrets.MACOS_SIGNING_APPLICATION_IDENTITY }} + MACOS_SIGNING_INSTALLER_IDENTITY: ${{ secrets.MACOS_SIGNING_INSTALLER_IDENTITY }} + run: | + mkdir -p release + . ./build_plugin/cmake_export.sh + + PLUGIN_BUNDLE="build_stage/Library/Application Support/obs-studio/plugins/$PLUGIN_NAME.plugin" + + if [[ "$CODESIGN_ENABLED" == true ]]; then + codesign -s "$MACOS_SIGNING_APPLICATION_IDENTITY" -f --deep --options runtime --timestamp "$PLUGIN_BUNDLE" + fi + + pkgbuild \ + --root build_stage \ + --identifier "$PLUGIN_BUNDLE_ID" \ + --version "$PLUGIN_VERSION" \ + --install-location / \ + build_plugin/component.pkg + + if [[ "$CODESIGN_ENABLED" == true ]]; then + productbuild \ + --distribution build_plugin/Distribution \ + --package-path build_plugin \ + --resources . \ + --sign "$MACOS_SIGNING_INSTALLER_IDENTITY" \ + "release/$PLUGIN_NAME-$PLUGIN_VERSION-macos-universal.pkg" + else + productbuild \ + --distribution build_plugin/Distribution \ + --package-path build_plugin \ + --resources . \ + "release/$PLUGIN_NAME-$PLUGIN_VERSION-macos-universal.pkg" + fi + + - name: Notarize Installer + if: inputs.environment == 'production-macos' + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CODESIGN_TEAM: '${{ steps.codesign.outputs.CODESIGN_TEAM }}' + MACOS_NOTARIZATION_PASSWORD: '${{ secrets.MACOS_NOTARIZATION_PASSWORD }}' + MACOS_NOTARIZATION_USERNAME: '${{ secrets.MACOS_NOTARIZATION_USERNAME }}' + run: | + . ./build_plugin/cmake_export.sh + + xcrun notarytool submit "release/$PLUGIN_NAME-$PLUGIN_VERSION-macos-universal.pkg" \ + --apple-id "$MACOS_NOTARIZATION_USERNAME" \ + --password "$MACOS_NOTARIZATION_PASSWORD" \ + --team-id "$CODESIGN_TEAM" \ + --wait + + xcrun stapler staple "release/$PLUGIN_NAME-$PLUGIN_VERSION-macos-universal.pkg" + + - name: Upload Plugin Binary + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: pluginbinary-${{ runner.os }}-universal-${{ github.run_id }} + path: | + release/*.pkg + release/*.dSYM.tar.zst + if-no-files-found: error + retention-days: 7 diff --git a/.github/workflows/plugin-build-ubuntu.yml b/.github/workflows/plugin-build-ubuntu.yml new file mode 100644 index 00000000..e6624cb6 --- /dev/null +++ b/.github/workflows/plugin-build-ubuntu.yml @@ -0,0 +1,219 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/workflows/plugin-build-ubuntu.yml +# author: Kaito Udagawa +# version: 1.1.0 +# date: 2026-04-04 + +on: + workflow_call: + inputs: + environment: + description: The environment name for the build jobs, or empty string for no environment + required: false + type: string + default: '' + VCPKG_BINARY_SOURCES: + description: VCPKG_BINARY_SOURCES environment variable for the build jobs + required: true + type: string + vcpkg-version: + description: The version of vcpkg to clone. + required: true + type: string + ort-version: + description: The ONNX Runtime version. + required: true + type: string + +permissions: {} + +jobs: + build-ubuntu-x86_64: + environment: ${{ inputs.environment }} + runs-on: ubuntu-24.04 + timeout-minutes: 180 + + permissions: + contents: read + + env: + CLEAN_BASH_ENV: '${{ github.workspace }}/.github/scripts/clean-env-ubuntu.bash' + FILTERED_PATH: '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' + ORT_CCACHE_DIR: '${{ github.workspace }}/.ort_ccache' + ROOT_VCPKG_ROOT: '${{ github.workspace }}/vcpkg' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + + steps: + - name: Output Image Metadata + id: image-metadata + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + echo "ImageVersion=$ImageVersion" >> "$GITHUB_OUTPUT" + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Set up Python for build requirements + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version-file: .python-version + pip-install: -r requirements-build.txt + + # ASSERT: The directory of python3 executable is prepended to the PATH even if PATH is overridden in the env section. + + - name: Set up ccache + id: setup-ccache + uses: ./.github/actions/setup-ccache + + # ASSERT: The directory of ccache executable is prepended to the PATH even if PATH is overridden in the env section. + + - name: Checkout vcpkg + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/vcpkg + ref: ${{ inputs.vcpkg-version }} + persist-credentials: false + path: ${{ env.ROOT_VCPKG_ROOT }} + + - name: Run bootstrap-vcpkg.sh + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + BASH_ENV: '${{ env.CLEAN_BASH_ENV }}' + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_ROOT: '${{ env.ROOT_VCPKG_ROOT }}' + run: | + "$VCPKG_ROOT/bootstrap-vcpkg.sh" -disableMetrics + + - name: Install dependencies from apt (Ubuntu x86_64) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + APT_PACKAGES=( + libgles2-mesa-dev + libqt6svg6-dev + libsimde-dev + obs-studio + qt6-base-dev + qt6-base-private-dev + ) + echo "man-db man-db/auto-update boolean false" | sudo debconf-set-selections + sudo apt-get remove --purge -y man-db + sudo add-apt-repository -y ppa:obsproject/obs-studio + sudo apt-get update + sudo apt-get install -y --no-install-recommends "${APT_PACKAGES[@]}" + + - name: Install dependencies from vcpkg (Ubuntu x86_64) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + BASH_ENV: '${{ env.CLEAN_BASH_ENV }}' + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_ROOT: '${{ env.ROOT_VCPKG_ROOT }}' + run: | + "$VCPKG_ROOT/vcpkg" install --x-install-root=./.deps_vendor/vcpkg_installed --triplet=x64-linux-obs + + - name: Compute Toolchain Hash of ONNX Runtime (Ubuntu x86_64) + id: ort-toolchain + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + HASH: ${{ hashFiles('src/required_operators_and_types.with_runtime_opt.config', 'scripts/build_ort_ubuntu.sh', 'scripts/ort_patches/*.patch') }} + run: | + echo "HASH=$HASH" >> "$GITHUB_OUTPUT" + + - name: Restore ONNX Runtime ccache generated by ORT CI (Ubuntu x86_64) + id: restore-ort-ccache + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 + with: + path: ${{ env.ORT_CCACHE_DIR }} + key: ort-ccache-${{ runner.os }}-x86_64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}-${{ steps.setup-ccache.outputs.VERSION }} + restore-keys: | + ort-ccache-${{ runner.os }}-x86_64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}- + ort-ccache-${{ runner.os }}-x86_64-${{ steps.image-metadata.outputs.ImageVersion }}- + + - name: Checkout ONNX Runtime + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/onnxruntime + ref: ${{ inputs.ort-version }} + persist-credentials: false + path: .deps_vendor/onnxruntime + submodules: recursive + + - name: Patch ONNX Runtime + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + working-directory: .deps_vendor/onnxruntime + env: + GIT_CONFIG_PARAMETERS: "'user.name=github-actions[bot]' 'user.email=41898282+github-actions[bot]@users.noreply.github.com'" + run: | + patches=(../../scripts/ort_patches/*.patch) + if [[ "${#patches[@]}" -gt 0 ]]; then + git am --no-gpg-sign --3way "${patches[@]}" + fi + + - name: Build ONNX Runtime (Ubuntu x86_64) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + BASH_ENV: '${{ env.CLEAN_BASH_ENV }}' + CCACHE_BASEDIR: '${{ github.workspace }}' + CCACHE_COMPILERCHECK: 'content' + CCACHE_COMPRESS: 'true' + CCACHE_DEPEND: 'true' + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + CCACHE_DIRECT: 'true' + CCACHE_SLOPPINESS: 'include_file_ctime,include_file_mtime,time_macros,pch_defines' + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + # Do not set VCPKG_ROOT. Let it manage by ONNX Runtime itself. + run: | + ./scripts/build_ort_ubuntu.sh run_build_py x86_64 update + ./scripts/build_ort_ubuntu.sh run_build_py x86_64 build + ./scripts/build_ort_ubuntu.sh install_ort + + - name: Show ccache stats for ONNX Runtime + if: always() + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + continue-on-error: true + run: | + printf '## Ccache stats for ONNX Runtime\n\n```\n%s```\n' "$(ccache -s)" >> "$GITHUB_STEP_SUMMARY" + + - name: Configure (Ubuntu x86_64) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + BASH_ENV: '${{ env.CLEAN_BASH_ENV }}' + PATH: '${{ env.FILTERED_PATH }}' + run: | + cmake --preset ubuntu-ci-x86_64 + + - name: Build (Ubuntu x86_64) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + BASH_ENV: '${{ env.CLEAN_BASH_ENV }}' + PATH: '${{ env.FILTERED_PATH }}' + run: | + cmake --build --preset ubuntu-ci-x86_64 + + - name: Package (Ubuntu x86_64) + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + BASH_ENV: '${{ env.CLEAN_BASH_ENV }}' + PATH: '${{ env.FILTERED_PATH }}' + working-directory: build_x86_64 + run: | + cpack -G DEB + + - name: Upload Plugin Binary + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: pluginbinary-${{ runner.os }}-x86_64-${{ github.run_id }} + path: | + release/*-x86_64-linux-gnu.deb + release/*-x86_64-linux-gnu-dbgsym.ddeb + if-no-files-found: error + retention-days: 7 diff --git a/.github/workflows/plugin-build-windows.yml b/.github/workflows/plugin-build-windows.yml new file mode 100644 index 00000000..8e7f0b7c --- /dev/null +++ b/.github/workflows/plugin-build-windows.yml @@ -0,0 +1,302 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/workflows/plugin-build-windows.yml +# author: Kaito Udagawa +# version: 1.1.0 +# date: 2026-04-04 + +on: + workflow_call: + inputs: + environment: + description: The environment name for the build jobs, or empty string for no environment + required: false + type: string + default: '' + VCPKG_BINARY_SOURCES: + description: VCPKG_BINARY_SOURCES environment variable for the build jobs + required: true + type: string + vcpkg-version: + description: The version of vcpkg to clone. + required: true + type: string + ort-version: + description: The ONNX Runtime version. + required: true + type: string + +permissions: {} + +jobs: + build-windows-x64: + environment: ${{ inputs.environment }} + runs-on: windows-2022 + timeout-minutes: 180 + + permissions: + contents: read + + env: + CLEAN_PWSH_ENV: '${{ github.workspace }}\.github\scripts\clean-env-windows.ps1' + FILTERED_PATH: 'C:\ProgramData\chocolatey\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32;C:\Windows' + ORT_CCACHE_DIR: '${{ github.workspace }}\.ort_ccache' + ROOT_VCPKG_ROOT: '${{ github.workspace }}\vcpkg' + + steps: + - name: Enable Windows long path + shell: pwsh + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 + + - name: Output Image Metadata + id: image-metadata + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + echo "ImageVersion=$ImageVersion" >> "$GITHUB_OUTPUT" + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Set up Python for build requirements + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version-file: .python-version + pip-install: -r requirements-build.txt + + # ASSERT: The directory of python3 executable is always prepended to the PATH specified in the env section. + + - name: Set up ccache + id: setup-ccache + uses: ./.github/actions/setup-ccache + + # ASSERT: The directory of ccache executable is prepended to the PATH even if PATH is overridden in the env section. + + - name: Print CMake version on Windows + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + . $env:CLEAN_PWSH_ENV + cmake --version + + - name: Print Ninja version on Windows + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + . $env:CLEAN_PWSH_ENV + ninja --version + + - name: Print vswhere information for Visual Studio 2022 on Windows + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + . $env:CLEAN_PWSH_ENV + vswhere -version '[17.0,18.0)' + + - name: Checkout vcpkg + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/vcpkg + ref: ${{ inputs.vcpkg-version }} + persist-credentials: false + path: ${{ env.ROOT_VCPKG_ROOT }} + + - name: Run bootstrap-vcpkg.bat + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_ROOT: '${{ env.ROOT_VCPKG_ROOT }}' + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + $bootstrapVcpkgPath = "$env:VCPKG_ROOT\bootstrap-vcpkg.bat" + & $bootstrapVcpkgPath -disableMetrics + + - name: Install dependencies from vcpkg (Windows x64) + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + VCPKG_ROOT: '${{ env.ROOT_VCPKG_ROOT }}' + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + $vcpkgPath = "$env:VCPKG_ROOT\vcpkg.exe" + & $vcpkgPath install --x-install-root=.\.deps_vendor\vcpkg_installed --triplet=x64-windows-static-md-obs + + - name: Download dependencies (Windows) + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + cmake -P ./scripts/download_deps.cmake + + - name: Build libobs (Windows) + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + ./scripts/build_libobs_windows.ps1 + + - name: Compute Toolchain Hash of ONNX Runtime (Windows x64) + id: ort-toolchain + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + HASH: ${{ hashFiles('src/required_operators_and_types.with_runtime_opt.config', 'scripts/build_ort_windows.ps1', 'scripts/ort_patches/*.patch') }} + run: | + echo "HASH=$HASH" >> "$GITHUB_OUTPUT" + + - name: Restore ONNX Runtime ccache generated by ORT CI (Windows x64) + id: restore-ort-ccache + uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 + with: + path: ${{ env.ORT_CCACHE_DIR }} + key: ort-ccache-${{ runner.os }}-x64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}-${{ steps.setup-ccache.outputs.VERSION }} + restore-keys: | + ort-ccache-${{ runner.os }}-x64-${{ steps.image-metadata.outputs.ImageVersion }}-${{ steps.ort-toolchain.outputs.HASH }}- + ort-ccache-${{ runner.os }}-x64-${{ steps.image-metadata.outputs.ImageVersion }}- + + - name: Checkout ONNX Runtime + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + repository: microsoft/onnxruntime + ref: ${{ inputs.ort-version }} + persist-credentials: false + path: .deps_vendor/onnxruntime + submodules: recursive + + - name: Patch ONNX Runtime + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + working-directory: .deps_vendor/onnxruntime + env: + GIT_CONFIG_PARAMETERS: "'user.name=github-actions[bot]' 'user.email=41898282+github-actions[bot]@users.noreply.github.com'" + run: | + patches=(../../scripts/ort_patches/*.patch) + if [[ "${#patches[@]}" -gt 0 ]]; then + git am --no-gpg-sign --3way "${patches[@]}" + fi + + - name: Build ONNX Runtime (Windows x64) + shell: pwsh + env: + CCACHE_BASEDIR: '${{ github.workspace }}' + CCACHE_COMPILERCHECK: 'content' + CCACHE_COMPRESS: 'true' + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + CCACHE_DIRECT: 'true' + CCACHE_NODEPEND: 'true' + CCACHE_SLOPPINESS: 'include_file_ctime,include_file_mtime,time_macros,pch_defines' + PATH: '${{ env.FILTERED_PATH }}' + VCPKG_BINARY_SOURCES: '${{ inputs.VCPKG_BINARY_SOURCES }}' + # Do not set VCPKG_ROOT. Let it manage by ONNX Runtime itself. + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + ./scripts/build_ort_windows.ps1 setup_ccache + ./scripts/build_ort_windows.ps1 run_build_py x64 update + ./scripts/build_ort_windows.ps1 run_build_py x64 build + ./scripts/build_ort_windows.ps1 install_ort + + - name: Upload Ort Binary + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: ortbinary-windows-x64-${{ github.run_id }} + path: | + .deps_vendor/ort_x64-prefix + if-no-files-found: error + retention-days: 7 + + - name: Show ccache stats for ONNX Runtime + if: always() + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + CCACHE_DIR: '${{ env.ORT_CCACHE_DIR }}' + continue-on-error: true + run: | + printf '## Ccache stats for ONNX Runtime\n\n```\n%s```\n' "$(ccache -s)" >> "$GITHUB_STEP_SUMMARY" + + - name: Configure (Windows x64) + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + cmake --preset windows-ci-x64 + + - name: Build (Windows x64) + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + cmake --build --preset windows-ci-x64 + + - name: Package (Windows x64) + shell: pwsh + env: + PATH: '${{ env.FILTERED_PATH }}' + run: | + $ErrorActionPreference = 'Stop' + Set-StrictMode -Version Latest + $PSNativeCommandUseErrorActionPreference = $true + + . $env:CLEAN_PWSH_ENV + + ./scripts/package_plugin_windows.ps1 -Target x64 + + - name: Upload Plugin Binary + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: pluginbinary-windows-x64-${{ github.run_id }} + path: | + release/*-windows-x64.zip + release/*-windows-x64-pdb.zip + if-no-files-found: error + retention-days: 7 diff --git a/.github/workflows/plugin-release.yml b/.github/workflows/plugin-release.yml new file mode 100644 index 00000000..9dac5c26 --- /dev/null +++ b/.github/workflows/plugin-release.yml @@ -0,0 +1,92 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +name: Release Plugin + +# file: .github/workflows/plugin-release.yml +# author: Kaito Udagawa +# version: 1.0.1 +# date: 2026-03-31 + +on: + workflow_call: + inputs: + environment: + description: The environment name for the release jobs, or empty string for no environment + required: false + type: string + default: '' + +permissions: {} + +jobs: + create-draft-release: + name: Create Draft Release + + if: startsWith(github.ref, 'refs/tags/') + + environment: ${{ inputs.environment }} + runs-on: ubuntu-slim + + permissions: + artifact-metadata: write + attestations: write + contents: write + id-token: write + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Select secure directory + id: secure-dir + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + printf 'ARTIFACTS_DIR=%s\n' "$(mktemp -d -p "$RUNNER_TEMP" artifacts.XXXXXXXXXX)" >> "$GITHUB_OUTPUT" + + - name: Download plugin binaries + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + pattern: pluginbinary-* + merge-multiple: true + path: ${{ steps.secure-dir.outputs.ARTIFACTS_DIR }} + + - name: Attest plugin binary artifacts + id: attest + uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0 + with: + subject-path: ${{ steps.secure-dir.outputs.ARTIFACTS_DIR }}/* + + - name: Create a draft release with artifacts + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + ARTIFACTS_DIR: '${{ steps.secure-dir.outputs.ARTIFACTS_DIR }}' + BUNDLE_PATH: '${{ steps.attest.outputs.bundle-path }}' + GH_REPO: '${{ github.repository }}' + GH_TOKEN: '${{ github.token }}' + run: | + # Output the existing release info, or create a new draft release if not exists. + if ! gh release view "$GITHUB_REF_NAME"; then + gh release create "$GITHUB_REF_NAME" --draft --notes "" --title "$GITHUB_REF_NAME" --verify-tag + fi + + ASSETS=("$BUNDLE_PATH") + + for f in "$ARTIFACTS_DIR"/*; do + case "$f" in + *-windows-x64.zip) ASSETS+=("$f") ;; + *-windows-x64-pdb.zip) ASSETS+=("$f") ;; + *.pkg) ASSETS+=("$f") ;; + *.dSYM.tar.zst) ASSETS+=("$f") ;; + *-x86_64-linux-gnu.deb) ASSETS+=("$f") ;; + *-x86_64-linux-gnu-dbgsym.ddeb) ASSETS+=("$f") ;; + esac + done + + gh release upload "$GITHUB_REF_NAME" "${ASSETS[@]}" --clobber diff --git a/.github/workflows/plugin.yml b/.github/workflows/plugin.yml new file mode 100644 index 00000000..d78f9849 --- /dev/null +++ b/.github/workflows/plugin.yml @@ -0,0 +1,94 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +name: Plugin CI + +# file: .github/workflows/plugin.yml +# author: Kaito Udagawa +# date: 2026-05-28 + +on: + pull_request: + branches: [main] + push: + branches: [main] + tags: ['*'] + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + config: + runs-on: ubuntu-slim + timeout-minutes: 10 + + permissions: {} + + outputs: + VCPKG_BINARY_SOURCES: ${{ steps.config.outputs.VCPKG_BINARY_SOURCES }} + + steps: + - name: Config + id: config + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + printf 'VCPKG_BINARY_SOURCES=%s\n' 'clear;http,https://vcpkg-obs.kaito.tokyo/{name}/{version}/{sha},read' >> "${GITHUB_OUTPUT}" + + # build-windows: + # needs: config + # permissions: + # contents: read + # uses: ./.github/workflows/plugin-build-windows.yml + # with: + # VCPKG_BINARY_SOURCES: ${{ needs.config.outputs.VCPKG_BINARY_SOURCES }} + # vcpkg-version: ${{ needs.config.outputs.VCPKG_VERSION }} + # ort-version: ${{ needs.config.outputs.ORT_VERSION }} + + build-macos: + needs: config + permissions: + contents: read + uses: ./.github/workflows/plugin-build-macos.yml + with: + environment: ${{ github.ref == 'refs/heads/main' && 'production-macos' || '' }} + runs-on: macos-15 + DEVELOPER_DIR: /Applications/Xcode_16.4.app + VCPKG_BINARY_SOURCES: ${{ needs.config.outputs.VCPKG_BINARY_SOURCES }} + secrets: inherit + + # build-ubuntu: + # needs: config + # permissions: + # contents: read + # uses: ./.github/workflows/plugin-build-ubuntu.yml + # with: + # VCPKG_BINARY_SOURCES: ${{ needs.config.outputs.VCPKG_BINARY_SOURCES }} + # vcpkg-version: ${{ needs.config.outputs.VCPKG_VERSION }} + # ort-version: ${{ needs.config.outputs.ORT_VERSION }} + + accept-plugin: + name: Accept Plugin CI + needs: [build-macos] + # needs: [build-windows, build-macos, build-ubuntu] + runs-on: ubuntu-slim + permissions: {} + steps: + - name: Accept plugin + run: | + echo 'The workflow plugin has completed successfully.' + + # release: + # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + # needs: accept-plugin + # permissions: + # artifact-metadata: write + # attestations: write + # contents: write + # id-token: write + # uses: ./.github/workflows/plugin-release.yml diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml new file mode 100644 index 00000000..fa6f2c4a --- /dev/null +++ b/.github/workflows/scripts.yml @@ -0,0 +1,94 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: .github/workflows/scripts.yml +# author: Kaito Udagawa +# date: 2026-05-23 + +name: Scripts CI + +on: + pull_request: + branches: [main] + merge_group: + push: + branches: [main] + tags: ['*'] + +permissions: {} + +jobs: + build-macos: + runs-on: macos-26 + timeout-minutes: 180 + + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Bootstrap + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + bin/bootstrap + + - name: Setup + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + bin/setup + + - name: Build + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + bin/build + + - name: Install + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + cmake --install build_plugin --config RelWithDebInfo --prefix ~ + + build-deb: + strategy: + matrix: + runs-on: + - ubuntu-24.04 + - ubuntu-24.04-arm + image: + - debian:forky-slim + - ubuntu:resolute + + name: ${{ matrix.image }} (${{ contains(matrix.runs-on, 'arm') && 'arm64' || 'x64' }}) + runs-on: ${{ matrix.runs-on }} + timeout-minutes: 180 + + permissions: + contents: read + + container: + image: ${{ matrix.image }} + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Bootstrap, Setup, and Build + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + bin/bootstrap + bin/setup + bin/build + + - name: Install + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + dpkg -i release/obs-backgroundremoval_*.deb + dpkg -L obs-backgroundremoval diff --git a/.github/workflows/validate-pr.lock.yml b/.github/workflows/validate-pr.lock.yml new file mode 100644 index 00000000..45073acb --- /dev/null +++ b/.github/workflows/validate-pr.lock.yml @@ -0,0 +1,1527 @@ +# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"cb4829379eac2ccad25360c86ac763826d02797d7b925ba0232a440280de34e7","compiler_version":"v0.74.8","strict":true,"agent_id":"copilot","agent_model":"gpt-5-mini"} +# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"efa55847f72aadb03490d955263ff911bf758700","version":"v0.74.8"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.49"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.49"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.9","digest":"sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.9@sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388"},{"image":"ghcr.io/github/github-mcp-server:v1.0.4"},{"image":"node:lts-alpine","digest":"sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f","pinned_image":"node:lts-alpine@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f"}]} +# ___ _ _ +# / _ \ | | (_) +# | |_| | __ _ ___ _ __ | |_ _ ___ +# | _ |/ _` |/ _ \ '_ \| __| |/ __| +# | | | | (_| | __/ | | | |_| | (__ +# \_| |_/\__, |\___|_| |_|\__|_|\___| +# __/ | +# _ _ |___/ +# | | | | / _| | +# | | | | ___ _ __ _ __| |_| | _____ ____ +# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___| +# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \ +# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/ +# +# This file was automatically generated by gh-aw (v0.74.8). DO NOT EDIT. +# +# To update this file, edit the corresponding .md file and run: +# gh aw compile +# Not all edits will cause changes to this file. +# +# For more information: https://github.github.com/gh-aw/introduction/overview/ +# +# Validate if this Pull Request meets our project criteria. COPILOT_GITHUB_TOKEN needs to be configured. +# +# Secrets used: +# - COPILOT_GITHUB_TOKEN +# - GH_AW_GITHUB_MCP_SERVER_TOKEN +# - GH_AW_GITHUB_TOKEN +# - GITHUB_TOKEN +# +# Custom actions used: +# - actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 +# - actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 +# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 +# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9) +# - actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 +# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 +# - github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 +# +# Container images used: +# - ghcr.io/github/gh-aw-firewall/agent:0.25.49 +# - ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49 +# - ghcr.io/github/gh-aw-firewall/squid:0.25.49 +# - ghcr.io/github/gh-aw-mcpg:v0.3.9@sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388 +# - ghcr.io/github/github-mcp-server:v1.0.4 +# - node:lts-alpine@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f + +name: "Validate Pull Request" +on: + pull_request: + types: + - labeled + workflow_dispatch: + inputs: + aw_context: + default: "" + description: "Agent caller context (used internally by Agentic Workflows)." + required: false + type: string + item_number: + default: "" + description: The number of the issue, pull request, or discussion + required: false + type: string + +permissions: {} + +concurrency: + group: "gh-aw-${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}-${{ github.event.label.name || github.run_id }}" + +run-name: "Validate Pull Request" + +jobs: + accept_validate_pr: + name: Accept validate-pr + needs: + - agent + - detection + if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'accept_validate_pr') + runs-on: ubuntu-slim + steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: ${{ runner.temp }}/gh-aw/safe-jobs/ + - name: Accept or Reject + run: | + if ! [[ -f "$GH_AW_AGENT_OUTPUT" ]]; then + echo "No agent output found." + exit 1 + fi + + COUNT="$(jq '[.items[] | select(.type == "accept_validate_pr")] | length' "$GH_AW_AGENT_OUTPUT")" + if [[ "$COUNT" -ne 1 ]]; then + echo "ERROR: $COUNT inputs received, only one was expected." + exit 1 + fi + + COMMIT_SIGNING="$(jq -r '.items[] | select(.type == "accept_validate_pr") | .commit_signing' "$GH_AW_AGENT_OUTPUT")" + DCO="$(jq -r '.items[] | select(.type == "accept_validate_pr") | .dco' "$GH_AW_AGENT_OUTPUT")" + PULL_REQUEST_CHECKLIST="$(jq -r '.items[] | select(.type == "accept_validate_pr") | .pull_request_checklist' "$GH_AW_AGENT_OUTPUT")" + + rejected=0 + messages=() + + if [[ "$COMMIT_SIGNING" != "true" ]]; then + messages+=("Commit Signing check was rejected.") + rejected=1 + fi + + if [[ "$DCO" != "true" ]]; then + messages+=("DCO check was rejected.") + rejected=1 + fi + + if [[ "$PULL_REQUEST_CHECKLIST" != "true" ]]; then + messages+=("Pull Request Checklist check was rejected.") + rejected=1 + fi + + if [[ "$rejected" -eq 1 ]]; then + messages+=("ERROR: $GITHUB_JOB rejected this check.") + else + messages+=("$GITHUB_JOB accepted the overall result.") + fi + + for m in "${messages[@]}"; do + printf '%s\n' "$m" + done + + exit "$rejected" + env: + GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + + activation: + needs: pre_activation + if: > + needs.pre_activation.outputs.activated == 'true' && (startsWith(github.ref, 'refs/pull/') && github.event.label.name == 'validate') + runs-on: ubuntu-slim + permissions: + actions: read + contents: read + issues: write + pull-requests: write + outputs: + comment_id: "" + comment_repo: "" + engine_id: ${{ steps.generate_aw_info.outputs.engine_id }} + label_command: ${{ steps.remove_trigger_label.outputs.label_name }} + lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} + model: ${{ steps.generate_aw_info.outputs.model }} + secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + stale_lock_file_failed: ${{ steps.check-lock-file.outputs.stale_lock_file_failed == 'true' }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.pre_activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.pre_activation.outputs.setup-parent-span-id || needs.pre_activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/validate-pr.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Generate agentic run info + id: generate_aw_info + env: + GH_AW_INFO_ENGINE_ID: "copilot" + GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI" + GH_AW_INFO_MODEL: "gpt-5-mini" + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_AGENT_VERSION: "1.0.48" + GH_AW_INFO_CLI_VERSION: "v0.74.8" + GH_AW_INFO_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_INFO_EXPERIMENTAL: "false" + GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true" + GH_AW_INFO_STAGED: "false" + GH_AW_INFO_ALLOWED_DOMAINS: '["defaults"]' + GH_AW_INFO_FIREWALL_ENABLED: "true" + GH_AW_INFO_AWF_VERSION: "v0.25.49" + GH_AW_INFO_AWMG_VERSION: "" + GH_AW_INFO_FIREWALL_TYPE: "squid" + GH_AW_COMPILED_STRICT: "true" + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_aw_info.cjs'); + await main(core, context); + - name: Add eyes reaction for immediate feedback + id: react + if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.id == github.repository_id + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_REACTION: "eyes" + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/add_reaction.cjs'); + await main(); + - name: Validate COPILOT_GITHUB_TOKEN secret + id: validate-secret + run: bash "${RUNNER_TEMP}/gh-aw/actions/validate_multi_secret.sh" COPILOT_GITHUB_TOKEN 'GitHub Copilot CLI' https://github.github.com/gh-aw/reference/engines/#github-copilot-default + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + - name: Checkout .github and .agents folders + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + sparse-checkout: | + .github + .agents + .claude + .codex + .crush + .gemini + .opencode + .pi + sparse-checkout-cone-mode: true + fetch-depth: 1 + - name: Save agent config folders for base branch restoration + env: + GH_AW_AGENT_FOLDERS: ".agents .claude .codex .crush .gemini .github .opencode .pi" + GH_AW_AGENT_FILES: ".crush.json AGENTS.md CLAUDE.md GEMINI.md PI.md opencode.jsonc" + # poutine:ignore untrusted_checkout_exec + run: bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh" + - name: Check workflow lock file + id: check-lock-file + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_WORKFLOW_FILE: "validate-pr.lock.yml" + GH_AW_CONTEXT_WORKFLOW_REF: "${{ github.workflow_ref }}" + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); + - name: Check compile-agentic version + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_COMPILED_VERSION: "v0.74.8" + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_version_updates.cjs'); + await main(); + - name: Remove trigger label + id: remove_trigger_label + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_LABEL_NAMES: "[\"validate\"]" + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/remove_trigger_label.cjs'); + await main(); + - name: Create prompt with built-in context + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_SAFE_OUTPUTS: ${{ runner.temp }}/gh-aw/safeoutputs/outputs.jsonl + GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_FF1D34CE: ${{ github.event.comment.id || fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').comment_id }} + GH_AW_GITHUB_ACTOR: ${{ github.actor }} + GH_AW_GITHUB_REPOSITORY: ${{ github.repository }} + GH_AW_GITHUB_RUN_ID: ${{ github.run_id }} + GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }} + # poutine:ignore untrusted_checkout_exec + run: | + bash "${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh" + { + cat << 'GH_AW_PROMPT_a390b2e157c737d1_EOF' + + GH_AW_PROMPT_a390b2e157c737d1_EOF + cat "${RUNNER_TEMP}/gh-aw/prompts/xpia.md" + cat "${RUNNER_TEMP}/gh-aw/prompts/temp_folder_prompt.md" + cat "${RUNNER_TEMP}/gh-aw/prompts/markdown.md" + cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md" + cat << 'GH_AW_PROMPT_a390b2e157c737d1_EOF' + + Tools: add_comment, missing_tool, missing_data, noop, accept_validate_pr + + GH_AW_PROMPT_a390b2e157c737d1_EOF + cat "${RUNNER_TEMP}/gh-aw/prompts/mcp_cli_tools_prompt.md" + cat << 'GH_AW_PROMPT_a390b2e157c737d1_EOF' + + The following GitHub context information is available for this workflow: + {{#if github.actor}} + - **actor**: __GH_AW_GITHUB_ACTOR__ + {{/if}} + {{#if github.repository}} + - **repository**: __GH_AW_GITHUB_REPOSITORY__ + {{/if}} + {{#if github.workspace}} + - **workspace**: __GH_AW_GITHUB_WORKSPACE__ + {{/if}} + {{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}} + - **issue-number**: #__GH_AW_EXPR_802A9F6A__ + {{/if}} + {{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}} + - **discussion-number**: #__GH_AW_EXPR_1A3A194A__ + {{/if}} + {{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}} + - **pull-request-number**: #__GH_AW_EXPR_463A214A__ + {{/if}} + {{#if github.event.comment.id || github.aw.context.comment_id}} + - **comment-id**: __GH_AW_EXPR_FF1D34CE__ + {{/if}} + {{#if github.run_id}} + - **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__ + {{/if}} + + + GH_AW_PROMPT_a390b2e157c737d1_EOF + cat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md" + cat << 'GH_AW_PROMPT_a390b2e157c737d1_EOF' + + {{#runtime-import .github/workflows/validate-pr.md}} + GH_AW_PROMPT_a390b2e157c737d1_EOF + } > "$GH_AW_PROMPT" + - name: Interpolate variables and render templates + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_ENGINE_ID: "copilot" + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/interpolate_prompt.cjs'); + await main(); + - name: Substitute placeholders + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }} + GH_AW_EXPR_FF1D34CE: ${{ github.event.comment.id || fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').comment_id }} + GH_AW_GITHUB_ACTOR: ${{ github.actor }} + GH_AW_GITHUB_REPOSITORY: ${{ github.repository }} + GH_AW_GITHUB_RUN_ID: ${{ github.run_id }} + GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }} + GH_AW_MCP_CLI_SERVERS_LIST: '- `safeoutputs` — run `safeoutputs --help` to see available tools' + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: ${{ needs.pre_activation.outputs.activated }} + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + + const substitutePlaceholders = require('${{ runner.temp }}/gh-aw/actions/substitute_placeholders.cjs'); + + // Call the substitution function + return await substitutePlaceholders({ + file: process.env.GH_AW_PROMPT, + substitutions: { + GH_AW_EXPR_1A3A194A: process.env.GH_AW_EXPR_1A3A194A, + GH_AW_EXPR_463A214A: process.env.GH_AW_EXPR_463A214A, + GH_AW_EXPR_802A9F6A: process.env.GH_AW_EXPR_802A9F6A, + GH_AW_EXPR_FF1D34CE: process.env.GH_AW_EXPR_FF1D34CE, + GH_AW_GITHUB_ACTOR: process.env.GH_AW_GITHUB_ACTOR, + GH_AW_GITHUB_REPOSITORY: process.env.GH_AW_GITHUB_REPOSITORY, + GH_AW_GITHUB_RUN_ID: process.env.GH_AW_GITHUB_RUN_ID, + GH_AW_GITHUB_WORKSPACE: process.env.GH_AW_GITHUB_WORKSPACE, + GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST, + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: process.env.GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED + } + }); + - name: Validate prompt placeholders + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + # poutine:ignore untrusted_checkout_exec + run: bash "${RUNNER_TEMP}/gh-aw/actions/validate_prompt_placeholders.sh" + - name: Print prompt + env: + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + # poutine:ignore untrusted_checkout_exec + run: bash "${RUNNER_TEMP}/gh-aw/actions/print_prompt_summary.sh" + - name: Upload activation artifact + if: success() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: activation + include-hidden-files: true + path: | + /tmp/gh-aw/aw_info.json + /tmp/gh-aw/aw-prompts/prompt.txt + /tmp/gh-aw/aw-prompts/prompt-template.txt + /tmp/gh-aw/aw-prompts/prompt-import-tree.json + /tmp/gh-aw/github_rate_limits.jsonl + /tmp/gh-aw/base + /tmp/gh-aw/.github/agents + if-no-files-found: ignore + retention-days: 1 + + agent: + needs: activation + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + env: + DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} + GH_AW_ASSETS_ALLOWED_EXTS: "" + GH_AW_ASSETS_BRANCH: "" + GH_AW_ASSETS_MAX_SIZE_KB: 0 + GH_AW_MCP_LOG_DIR: /tmp/gh-aw/mcp-logs/safeoutputs + GH_AW_WORKFLOW_ID_SANITIZED: validatepr + outputs: + agentic_engine_timeout: ${{ steps.detect-copilot-errors.outputs.agentic_engine_timeout || 'false' }} + checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }} + effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} + effective_tokens_rate_limit_error: ${{ steps.parse-mcp-gateway.outputs.effective_tokens_rate_limit_error || 'false' }} + has_patch: ${{ steps.collect_output.outputs.has_patch }} + inference_access_error: ${{ steps.detect-copilot-errors.outputs.inference_access_error || 'false' }} + mcp_policy_error: ${{ steps.detect-copilot-errors.outputs.mcp_policy_error || 'false' }} + model: ${{ needs.activation.outputs.model }} + model_not_supported_error: ${{ steps.detect-copilot-errors.outputs.model_not_supported_error || 'false' }} + output: ${{ steps.collect_output.outputs.output }} + output_types: ${{ steps.collect_output.outputs.output_types }} + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/validate-pr.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Set runtime paths + id: set-runtime-paths + run: | + { + echo "GH_AW_SAFE_OUTPUTS=${RUNNER_TEMP}/gh-aw/safeoutputs/outputs.jsonl" + echo "GH_AW_SAFE_OUTPUTS_CONFIG_PATH=${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" + echo "GH_AW_SAFE_OUTPUTS_TOOLS_PATH=${RUNNER_TEMP}/gh-aw/safeoutputs/tools.json" + } >> "$GITHUB_OUTPUT" + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + - name: Create gh-aw temp directory + run: bash "${RUNNER_TEMP}/gh-aw/actions/create_gh_aw_tmp_dir.sh" + - name: Configure gh CLI for GitHub Enterprise + run: bash "${RUNNER_TEMP}/gh-aw/actions/configure_gh_for_ghe.sh" + env: + GH_TOKEN: ${{ github.token }} + - env: + GH_TOKEN: ${{ github.token }} + name: Fetch Pull Request commits + run: "ARGS=(\n \"repos/$GITHUB_REPOSITORY/pulls/${GITHUB_REF_NAME%/merge}/commits\"\n -H \"Accept: application/vnd.github+json\"\n -H \"X-GitHub-Api-Version: 2026-03-10\"\n --paginate\n --jq '[.[] | {sha: .sha, message: .commit.message, verification: .commit.verification}]'\n)\ngh api \"${ARGS[@]}\" > /tmp/gh-aw/agent/pr_commits.json\n" + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + - env: + GH_TOKEN: ${{ github.token }} + name: Extract items on Pull Request Checklist + run: "VALID_ITEMS=(\n 'I have read the latest CONTRIBUTING.md.'\n 'I have acknowledged the licensing and patent grant policy.'\n 'I have included the required license headers.'\n 'I am confident with my code integrity.'\n 'I have signed off and verified all my commits.'\n)\n\nPR_NUMBER=\"${GITHUB_REF_NAME%/merge}\"\n\nGH_PR_VIEW_ARGS=(\n --json body\n --jq '[.body | splits(\"\\r?\\n\") | try match(\"^- \\\\[[ xX]\\\\] (.*)$\") catch empty]'\n)\n\ngh pr view \"$PR_NUMBER\" \"${GH_PR_VIEW_ARGS[@]}\" > /tmp/raw_pr_checklist.json\n\n{\n echo '## Pull Request Checklist (Listing all the valid items, including not found errors)'\n echo\n for item in \"${VALID_ITEMS[@]}\"; do\n if ! jq -e -r --arg item \"$item\" '.[] | select(.captures[0].string == $item) | .string' /tmp/raw_pr_checklist.json; then\n echo \"# ERROR: No lines found for '$item'\"\n fi\n done\n} >/tmp/gh-aw/agent/pr_checklist.md\n" + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + + - name: Configure Git credentials + env: + REPO_NAME: ${{ github.repository }} + SERVER_URL: ${{ github.server_url }} + GITHUB_TOKEN: ${{ github.token }} + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git config --global am.keepcr true + # Re-authenticate git with GitHub token + SERVER_URL_STRIPPED="${SERVER_URL#https://}" + git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git" + echo "Git configured with standard GitHub Actions identity" + - name: Checkout PR branch + id: checkout-pr + if: | + github.event.pull_request || github.event.issue.pull_request + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + with: + github-token: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/checkout_pr_branch.cjs'); + await main(); + - name: Install GitHub Copilot CLI + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.48 + env: + GH_HOST: github.com + - name: Install AWF binary + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.25.49 + - name: Determine automatic lockdown mode for GitHub MCP Server + id: determine-automatic-lockdown + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9) + env: + GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }} + GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }} + with: + script: | + const determineAutomaticLockdown = require('${{ runner.temp }}/gh-aw/actions/determine_automatic_lockdown.cjs'); + await determineAutomaticLockdown(github, context, core); + - name: Download activation artifact + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: activation + path: /tmp/gh-aw + - name: Restore agent config folders from base branch + if: steps.checkout-pr.outcome == 'success' + env: + GH_AW_AGENT_FOLDERS: ".agents .claude .codex .crush .gemini .github .opencode .pi" + GH_AW_AGENT_FILES: ".crush.json AGENTS.md CLAUDE.md GEMINI.md PI.md opencode.jsonc" + run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_base_github_folders.sh" + - name: Restore inline sub-agents from activation artifact + env: + GH_AW_SUB_AGENT_DIR: ".github/agents" + GH_AW_SUB_AGENT_EXT: ".agent.md" + run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_sub_agents.sh" + - name: Download container images + run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.25.49 ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49 ghcr.io/github/gh-aw-firewall/squid:0.25.49 ghcr.io/github/gh-aw-mcpg:v0.3.9@sha256:64828b42a4482f58fab16509d7f8f495a6d97c972a98a68aff20543531ac0388 ghcr.io/github/github-mcp-server:v1.0.4 node:lts-alpine@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f + - name: Generate Safe Outputs Config + run: | + mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs" + mkdir -p /tmp/gh-aw/safeoutputs + mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs + cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_8d019be8eb6654ab_EOF' + {"accept_validate_pr":{"description":"Decide if the result of this workflow is acceptable.","inputs":{"commit_signing":{"default":null,"description":"A boolean value to represent if commit signing check is passed or not.","required":true,"type":"boolean"},"dco":{"default":null,"description":"A boolean value to represent if DCO check is passed or not.","required":true,"type":"boolean"},"pull_request_checklist":{"default":null,"description":"A boolean value to represent if Pull Request Checklist check is passed or not.","required":true,"type":"boolean"}}},"add_comment":{"max":1},"create_report_incomplete_issue":{},"mentions":{"allowContext":false,"allowTeamMembers":false},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"report_incomplete":{}} + GH_AW_SAFE_OUTPUTS_CONFIG_8d019be8eb6654ab_EOF + - name: Generate Safe Outputs Tools + env: + GH_AW_TOOLS_META_JSON: | + { + "description_suffixes": { + "add_comment": " CONSTRAINTS: Maximum 1 comment(s) can be added. Supports reply_to_id for discussion threading." + }, + "repo_params": {}, + "dynamic_tools": [ + { + "description": "Decide if the result of this workflow is acceptable.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "commit_signing": { + "description": "A boolean value to represent if commit signing check is passed or not.", + "type": "boolean" + }, + "dco": { + "description": "A boolean value to represent if DCO check is passed or not.", + "type": "boolean" + }, + "pull_request_checklist": { + "description": "A boolean value to represent if Pull Request Checklist check is passed or not.", + "type": "boolean" + } + }, + "required": [ + "commit_signing", + "dco", + "pull_request_checklist" + ], + "type": "object" + }, + "name": "accept_validate_pr" + } + ] + } + GH_AW_VALIDATION_JSON: | + { + "add_comment": { + "defaultMax": 1, + "fields": { + "body": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 65000 + }, + "item_number": { + "issueOrPRNumber": true + }, + "reply_to_id": { + "type": "string", + "maxLength": 256 + }, + "repo": { + "type": "string", + "maxLength": 256 + } + } + }, + "missing_data": { + "defaultMax": 20, + "fields": { + "alternatives": { + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "context": { + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "data_type": { + "type": "string", + "sanitize": true, + "maxLength": 128 + }, + "reason": { + "type": "string", + "sanitize": true, + "maxLength": 256 + } + } + }, + "missing_tool": { + "defaultMax": 20, + "fields": { + "alternatives": { + "type": "string", + "sanitize": true, + "maxLength": 512 + }, + "reason": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 256 + }, + "tool": { + "type": "string", + "sanitize": true, + "maxLength": 128 + } + } + }, + "noop": { + "defaultMax": 1, + "fields": { + "message": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 65000 + } + } + }, + "report_incomplete": { + "defaultMax": 5, + "fields": { + "details": { + "type": "string", + "sanitize": true, + "maxLength": 65000 + }, + "reason": { + "required": true, + "type": "string", + "sanitize": true, + "maxLength": 1024 + } + } + } + } + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_safe_outputs_tools.cjs'); + await main(); + - name: Generate Safe Outputs MCP Server Config + id: safe-outputs-config + run: | + # Generate a secure random API key (360 bits of entropy, 40+ chars) + # Mask immediately to prevent timing vulnerabilities + API_KEY=$(openssl rand -base64 45 | tr -d '/+=') + echo "::add-mask::${API_KEY}" + + PORT=3001 + + # Set outputs for next steps + { + echo "safe_outputs_api_key=${API_KEY}" + echo "safe_outputs_port=${PORT}" + } >> "$GITHUB_OUTPUT" + + echo "Safe Outputs MCP server will run on port ${PORT}" + + - name: Start Safe Outputs MCP HTTP Server + id: safe-outputs-start + env: + DEBUG: '*' + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_SAFE_OUTPUTS_PORT: ${{ steps.safe-outputs-config.outputs.safe_outputs_port }} + GH_AW_SAFE_OUTPUTS_API_KEY: ${{ steps.safe-outputs-config.outputs.safe_outputs_api_key }} + GH_AW_SAFE_OUTPUTS_TOOLS_PATH: ${{ runner.temp }}/gh-aw/safeoutputs/tools.json + GH_AW_SAFE_OUTPUTS_CONFIG_PATH: ${{ runner.temp }}/gh-aw/safeoutputs/config.json + GH_AW_MCP_LOG_DIR: /tmp/gh-aw/mcp-logs/safeoutputs + run: | + # Environment variables are set above to prevent template injection + export DEBUG + export GH_AW_SAFE_OUTPUTS + export GH_AW_SAFE_OUTPUTS_PORT + export GH_AW_SAFE_OUTPUTS_API_KEY + export GH_AW_SAFE_OUTPUTS_TOOLS_PATH + export GH_AW_SAFE_OUTPUTS_CONFIG_PATH + export GH_AW_MCP_LOG_DIR + + bash "${RUNNER_TEMP}/gh-aw/actions/start_safe_outputs_server.sh" + + - name: Start MCP Gateway + id: start-mcp-gateway + env: + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_SAFE_OUTPUTS_API_KEY: ${{ steps.safe-outputs-start.outputs.api_key }} + GH_AW_SAFE_OUTPUTS_PORT: ${{ steps.safe-outputs-start.outputs.port }} + GITHUB_MCP_GUARD_MIN_INTEGRITY: ${{ steps.determine-automatic-lockdown.outputs.min_integrity }} + GITHUB_MCP_GUARD_REPOS: ${{ steps.determine-automatic-lockdown.outputs.repos }} + GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + run: | + set -eo pipefail + mkdir -p "${RUNNER_TEMP}/gh-aw/mcp-config" + + # Export gateway environment variables for MCP config and gateway script + export MCP_GATEWAY_PORT="8080" + export MCP_GATEWAY_DOMAIN="host.docker.internal" + export MCP_GATEWAY_HOST_DOMAIN="localhost" + MCP_GATEWAY_API_KEY=$(openssl rand -base64 45 | tr -d '/+=') + echo "::add-mask::${MCP_GATEWAY_API_KEY}" + export MCP_GATEWAY_API_KEY + export MCP_GATEWAY_PAYLOAD_DIR="/tmp/gh-aw/mcp-payloads" + mkdir -p "${MCP_GATEWAY_PAYLOAD_DIR}" + export MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD="524288" + export DEBUG="*" + + export GH_AW_ENGINE="copilot" + MCP_GATEWAY_UID=$(id -u 2>/dev/null || echo '0') + MCP_GATEWAY_GID=$(id -g 2>/dev/null || echo '0') + case "${DOCKER_HOST:-}" in + unix://* ) DOCKER_SOCK_PATH="${DOCKER_HOST#unix://}" ;; + /* ) DOCKER_SOCK_PATH="$DOCKER_HOST" ;; + * ) DOCKER_SOCK_PATH=/var/run/docker.sock ;; + esac + DOCKER_SOCK_GID=$(stat -c '%g' "$DOCKER_SOCK_PATH" 2>/dev/null || echo '0') + export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network host --add-host host.docker.internal:127.0.0.1 --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DOCKER_HOST=unix:///var/run/docker.sock -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GH_AW_SAFE_OUTPUTS_PORT -e GH_AW_SAFE_OUTPUTS_API_KEY -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw ghcr.io/github/gh-aw-mcpg:v0.3.9' + + mkdir -p /home/runner/.copilot + GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node) + cat << GH_AW_MCP_CONFIG_1a708bd914d6a3ba_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs" + { + "mcpServers": { + "github": { + "type": "stdio", + "container": "ghcr.io/github/github-mcp-server:v1.0.4", + "env": { + "GITHUB_HOST": "\${GITHUB_SERVER_URL}", + "GITHUB_PERSONAL_ACCESS_TOKEN": "\${GITHUB_MCP_SERVER_TOKEN}", + "GITHUB_READ_ONLY": "1", + "GITHUB_TOOLSETS": "context,repos,issues,pull_requests" + }, + "guard-policies": { + "allow-only": { + "min-integrity": "$GITHUB_MCP_GUARD_MIN_INTEGRITY", + "repos": "$GITHUB_MCP_GUARD_REPOS" + } + } + }, + "safeoutputs": { + "type": "http", + "url": "http://host.docker.internal:$GH_AW_SAFE_OUTPUTS_PORT", + "headers": { + "Authorization": "\${GH_AW_SAFE_OUTPUTS_API_KEY}" + }, + "guard-policies": { + "write-sink": { + "accept": [ + "*" + ] + } + } + } + }, + "gateway": { + "port": $MCP_GATEWAY_PORT, + "domain": "${MCP_GATEWAY_DOMAIN}", + "apiKey": "${MCP_GATEWAY_API_KEY}", + "payloadDir": "${MCP_GATEWAY_PAYLOAD_DIR}" + } + } + GH_AW_MCP_CONFIG_1a708bd914d6a3ba_EOF + - name: Mount MCP servers as CLIs + id: mount-mcp-clis + continue-on-error: true + env: + MCP_GATEWAY_API_KEY: ${{ steps.start-mcp-gateway.outputs.gateway-api-key }} + MCP_GATEWAY_DOMAIN: ${{ steps.start-mcp-gateway.outputs.gateway-domain }} + MCP_GATEWAY_PORT: ${{ steps.start-mcp-gateway.outputs.gateway-port }} + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io); + const { main } = require('${{ runner.temp }}/gh-aw/actions/mount_mcp_as_cli.cjs'); + await main(); + - name: Clean credentials + continue-on-error: true + run: bash "${RUNNER_TEMP}/gh-aw/actions/clean_git_credentials.sh" + - name: Audit pre-agent workspace + id: pre_agent_audit + continue-on-error: true + run: bash "${RUNNER_TEMP}/gh-aw/actions/audit_pre_agent_workspace.sh" + - name: Execute GitHub Copilot CLI + id: agentic_execution + # Copilot CLI tool arguments (sorted): + timeout-minutes: 20 + run: | + set -o pipefail + printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt + touch /tmp/gh-aw/agent-step-summary.md + GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true) + export GH_AW_NODE_BIN + export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK" + (umask 177 && touch /tmp/gh-aw/agent-stdio.log) + printf '%s\n' '{"$schema":"https://github.com/github/gh-aw-firewall/releases/download/v0.25.49/awf-config.schema.json","network":{"allowDomains":["api.business.githubcopilot.com","api.enterprise.githubcopilot.com","api.github.com","api.githubcopilot.com","api.individual.githubcopilot.com","api.snapcraft.io","archive.ubuntu.com","azure.archive.ubuntu.com","crl.geotrust.com","crl.globalsign.com","crl.identrust.com","crl.sectigo.com","crl.thawte.com","crl.usertrust.com","crl.verisign.com","crl3.digicert.com","crl4.digicert.com","crls.ssl.com","github.com","host.docker.internal","json-schema.org","json.schemastore.org","keyserver.ubuntu.com","ocsp.digicert.com","ocsp.geotrust.com","ocsp.globalsign.com","ocsp.identrust.com","ocsp.sectigo.com","ocsp.ssl.com","ocsp.thawte.com","ocsp.usertrust.com","ocsp.verisign.com","packagecloud.io","packages.cloud.google.com","packages.microsoft.com","ppa.launchpad.net","raw.githubusercontent.com","registry.npmjs.org","s.symcb.com","s.symcd.com","security.ubuntu.com","telemetry.enterprise.githubcopilot.com","ts-crl.ws.symantec.com","ts-ocsp.ws.symantec.com","www.googleapis.com"]},"apiProxy":{"enabled":true,"enableTokenSteering":true,"maxRuns":500,"maxEffectiveTokens":25000000,"models":{"agent":["sonnet-6x","gpt-5.4","gpt-5","gemini-pro","haiku","any"],"any":["copilot/*","anthropic/*","openai/*","google/*","gemini/*"],"auto":["large"],"claude":["agent","sonnet-6x","haiku","any"],"codex":["agent","gpt-5-codex","gpt-5","any"],"coding":["copilot/gpt-5*codex*","openai/gpt-5*codex*","gpt-5-codex"],"copilot":["agent","gpt-5.4","sonnet","gpt-5","any"],"deep-research":["copilot/deep-research*","copilot/o3-deep-research*","copilot/o4-mini-deep-research*","google/deep-research*","gemini/deep-research*","openai/o3-deep-research*","openai/o4-mini-deep-research*"],"gemini":["agent","gemini-pro","gemini-flash","any"],"gemini-flash":["copilot/gemini-*flash*","google/gemini-*flash*","gemini/gemini-*flash*"],"gemini-flash-lite":["copilot/gemini-*flash*lite*","google/gemini-*flash*lite*","gemini/gemini-*flash*lite*"],"gemini-pro":["copilot/gemini-*pro*","google/gemini-*pro*","gemini/gemini-*pro*"],"gemma":["copilot/gemma*","google/gemma*","gemini/gemma*"],"gpt-4.1":["copilot/gpt-4.1*","openai/gpt-4.1*"],"gpt-5":["copilot/gpt-5*","openai/gpt-5*"],"gpt-5-codex":["copilot/gpt-5*codex*","openai/gpt-5*codex*"],"gpt-5-mini":["copilot/gpt-5*mini*","openai/gpt-5*mini*"],"gpt-5-nano":["copilot/gpt-5*nano*","openai/gpt-5*nano*"],"gpt-5-pro":["copilot/gpt-5*pro*","openai/gpt-5*pro*"],"haiku":["copilot/*haiku*","anthropic/*haiku*"],"large":["sonnet","gpt-5-pro","gpt-5","gemini-pro"],"mini":["haiku","gpt-5-mini","gpt-5-nano","gemini-flash-lite","copilot/raptor*mini*"],"opus":["copilot/*opus*","anthropic/*opus*"],"reasoning":["copilot/o1*","copilot/o3*","copilot/o4*","openai/o1*","openai/o3*","openai/o4*"],"small":["mini"],"sonnet":["copilot/*sonnet*","anthropic/*sonnet*"],"sonnet-6x":["copilot/*sonnet-4.5*","copilot/*sonnet-4-5*","anthropic/*sonnet-4.5*","anthropic/*sonnet-4-5*","copilot/*sonnet-3.7*","copilot/*sonnet-3-7*","anthropic/*sonnet-3.7*","anthropic/*sonnet-3-7*","copilot/*sonnet-3.5*","copilot/*sonnet-3-5*","anthropic/*sonnet-3.5*","anthropic/*sonnet-3-5*"],"vision":["copilot/gemini-*image*","gemini/gemini-*image*","copilot/gemini-*flash*","gemini/gemini-*flash*"]}},"container":{"imageTag":"0.25.49"}}' > "${RUNNER_TEMP}/gh-aw/awf-config.json" + cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="" + if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="--docker-host-path-prefix /tmp/gh-aw" + fi + # shellcheck disable=SC1003 + sudo -E awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS} --env-all --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --audit-dir /tmp/gh-aw/sandbox/firewall/audit --enable-host-access --allow-host-ports 80,443,8080 --skip-pull \ + -- /bin/bash -c 'export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log + env: + AWF_REFLECT_ENABLED: 1 + COPILOT_AGENT_RUNNER_TYPE: STANDALONE + COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_MODEL: gpt-5-mini + GH_AW_MCP_CONFIG: /home/runner/.copilot/mcp-config.json + GH_AW_PHASE: agent + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_VERSION: v0.74.8 + GITHUB_API_URL: ${{ github.api_url }} + GITHUB_AW: true + GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows + GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + GITHUB_REF_NAME: ${{ github.ref_name }} + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_STEP_SUMMARY: /tmp/gh-aw/agent-step-summary.md + GITHUB_WORKSPACE: ${{ github.workspace }} + GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_AUTHOR_NAME: github-actions[bot] + GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_COMMITTER_NAME: github-actions[bot] + XDG_CONFIG_HOME: /home/runner + - name: Detect Copilot errors + id: detect-copilot-errors + if: always() + continue-on-error: true + run: node "${RUNNER_TEMP}/gh-aw/actions/detect_copilot_errors.cjs" + - name: Configure Git credentials + env: + REPO_NAME: ${{ github.repository }} + SERVER_URL: ${{ github.server_url }} + GITHUB_TOKEN: ${{ github.token }} + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git config --global am.keepcr true + # Re-authenticate git with GitHub token + SERVER_URL_STRIPPED="${SERVER_URL#https://}" + git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git" + echo "Git configured with standard GitHub Actions identity" + - name: Copy Copilot session state files to logs + if: always() + continue-on-error: true + run: bash "${RUNNER_TEMP}/gh-aw/actions/copy_copilot_session_state.sh" + - name: Stop MCP Gateway + if: always() + continue-on-error: true + env: + MCP_GATEWAY_PORT: ${{ steps.start-mcp-gateway.outputs.gateway-port }} + MCP_GATEWAY_API_KEY: ${{ steps.start-mcp-gateway.outputs.gateway-api-key }} + GATEWAY_PID: ${{ steps.start-mcp-gateway.outputs.gateway-pid }} + run: | + bash "${RUNNER_TEMP}/gh-aw/actions/stop_mcp_gateway.sh" "$GATEWAY_PID" + - name: Redact secrets in logs + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs'); + await main(); + env: + GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN' + SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + SECRET_GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }} + SECRET_GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }} + SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Append agent step summary + if: always() + run: bash "${RUNNER_TEMP}/gh-aw/actions/append_agent_step_summary.sh" + - name: Copy Safe Outputs + if: always() + env: + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + run: | + mkdir -p /tmp/gh-aw + cp "$GH_AW_SAFE_OUTPUTS" /tmp/gh-aw/safeoutputs.jsonl 2>/dev/null || true + - name: Ingest agent output + id: collect_output + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }} + GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com" + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_API_URL: ${{ github.api_url }} + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/collect_ndjson_output.cjs'); + await main(); + - name: Parse agent logs for step summary + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: /tmp/gh-aw/sandbox/agent/logs/ + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_copilot_log.cjs'); + await main(); + - name: Parse MCP Gateway logs for step summary + if: always() + id: parse-mcp-gateway + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_mcp_gateway_log.cjs'); + await main(); + - name: Print firewall logs + if: always() + continue-on-error: true + env: + AWF_LOGS_DIR: /tmp/gh-aw/sandbox/firewall/logs + run: | + # Fix permissions on firewall logs/audit dirs so they can be uploaded as artifacts + # AWF runs with sudo, creating files owned by root + sudo chmod -R a+rX /tmp/gh-aw/sandbox/firewall 2>/dev/null || true + # Only run awf logs summary if awf command exists (it may not be installed if workflow failed before install step) + if command -v awf &> /dev/null; then + awf logs summary | tee -a "$GITHUB_STEP_SUMMARY" + else + echo 'AWF binary not installed, skipping firewall log summary' + fi + - name: Parse token usage for step summary + if: always() + continue-on-error: true + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_token_usage.cjs'); + await main(); + - name: Print AWF reflect summary + if: always() + continue-on-error: true + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/awf_reflect_summary.cjs'); + await main(); + - name: Write agent output placeholder if missing + if: always() + run: | + if [ ! -f /tmp/gh-aw/agent_output.json ]; then + echo '{"items":[]}' > /tmp/gh-aw/agent_output.json + fi + - name: Upload agent artifacts + if: always() + continue-on-error: true + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: agent + path: | + /tmp/gh-aw/aw-prompts/prompt.txt + /tmp/gh-aw/sandbox/agent/logs/ + /tmp/gh-aw/redacted-urls.log + /tmp/gh-aw/mcp-logs/ + /tmp/gh-aw/agent_usage.json + /tmp/gh-aw/agent-stdio.log + /tmp/gh-aw/pre-agent-audit.txt + /tmp/gh-aw/agent/ + /tmp/gh-aw/github_rate_limits.jsonl + /tmp/gh-aw/safeoutputs.jsonl + /tmp/gh-aw/agent_output.json + /tmp/gh-aw/aw-*.patch + /tmp/gh-aw/aw-*.bundle + /tmp/gh-aw/awf-config.json + /tmp/gh-aw/sandbox/firewall/logs/ + /tmp/gh-aw/sandbox/firewall/audit/ + /tmp/gh-aw/sandbox/firewall/awf-reflect.json + if-no-files-found: ignore + + conclusion: + needs: + - accept_validate_pr + - activation + - agent + - detection + - safe_outputs + if: > + always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' || + needs.activation.outputs.stale_lock_file_failed == 'true') + runs-on: ubuntu-slim + permissions: + contents: read + discussions: write + issues: write + pull-requests: write + concurrency: + group: "gh-aw-conclusion-validate-pr" + cancel-in-progress: false + queue: max + outputs: + incomplete_count: ${{ steps.report_incomplete.outputs.incomplete_count }} + noop_message: ${{ steps.noop.outputs.noop_message }} + tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} + total_count: ${{ steps.missing_tool.outputs.total_count }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/validate-pr.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Download agent output artifact + id: download-agent-output + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: /tmp/gh-aw/ + - name: Setup agent output environment variable + id: setup-agent-output-env + if: steps.download-agent-output.outcome == 'success' + run: | + mkdir -p /tmp/gh-aw/ + find "/tmp/gh-aw/" -type f -print + echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT" + - name: Process no-op messages + id: noop + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_NOOP_MAX: "1" + GH_AW_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }} + GH_AW_NOOP_REPORT_AS_ISSUE: "true" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_noop_message.cjs'); + await main(); + - name: Log detection run + id: detection_runs + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }} + GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }} + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_detection_runs.cjs'); + await main(); + - name: Record missing tool + id: missing_tool + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_MISSING_TOOL_CREATE_ISSUE: "true" + GH_AW_WORKFLOW_NAME: "Validate Pull Request" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/missing_tool.cjs'); + await main(); + - name: Record incomplete + id: report_incomplete + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_REPORT_INCOMPLETE_CREATE_ISSUE: "true" + GH_AW_WORKFLOW_NAME: "Validate Pull Request" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/report_incomplete_handler.cjs'); + await main(); + - name: Handle agent failure + id: handle_agent_failure + if: always() + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }} + GH_AW_WORKFLOW_ID: "validate-pr" + GH_AW_ACTION_FAILURE_ISSUE_EXPIRES_HOURS: "168" + GH_AW_ENGINE_ID: "copilot" + GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.activation.outputs.secret_verification_result }} + GH_AW_CHECKOUT_PR_SUCCESS: ${{ needs.agent.outputs.checkout_pr_success }} + GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens || '' }} + GH_AW_EFFECTIVE_TOKENS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.effective_tokens_rate_limit_error || 'false' }} + GH_AW_INFERENCE_ACCESS_ERROR: ${{ needs.agent.outputs.inference_access_error }} + GH_AW_MCP_POLICY_ERROR: ${{ needs.agent.outputs.mcp_policy_error }} + GH_AW_AGENTIC_ENGINE_TIMEOUT: ${{ needs.agent.outputs.agentic_engine_timeout }} + GH_AW_MODEL_NOT_SUPPORTED_ERROR: ${{ needs.agent.outputs.model_not_supported_error }} + GH_AW_ENGINE_API_HOSTS: "api.enterprise.githubcopilot.com,api.githubcopilot.com,api.business.githubcopilot.com,api.individual.githubcopilot.com" + GH_AW_LOCKDOWN_CHECK_FAILED: ${{ needs.activation.outputs.lockdown_check_failed }} + GH_AW_STALE_LOCK_FILE_FAILED: ${{ needs.activation.outputs.stale_lock_file_failed }} + GH_AW_SAFE_OUTPUT_MESSAGES: "{\"appendOnlyComments\":true,\"activationComments\":\"false\"}" + GH_AW_GROUP_REPORTS: "false" + GH_AW_FAILURE_REPORT_AS_ISSUE: "false" + GH_AW_MISSING_TOOL_REPORT_AS_FAILURE: "true" + GH_AW_MISSING_DATA_REPORT_AS_FAILURE: "true" + GH_AW_TIMEOUT_MINUTES: "20" + GH_AW_MAX_EFFECTIVE_TOKENS: "25000000" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_agent_failure.cjs'); + await main(); + + detection: + needs: + - activation + - agent + if: > + always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') + runs-on: ubuntu-latest + permissions: + contents: read + outputs: + detection_conclusion: ${{ steps.detection_conclusion.outputs.conclusion }} + detection_reason: ${{ steps.detection_conclusion.outputs.reason }} + detection_success: ${{ steps.detection_conclusion.outputs.success }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/validate-pr.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Download agent output artifact + id: download-agent-output + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: /tmp/gh-aw/ + - name: Setup agent output environment variable + id: setup-agent-output-env + if: steps.download-agent-output.outcome == 'success' + run: | + mkdir -p /tmp/gh-aw/ + find "/tmp/gh-aw/" -type f -print + echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT" + - name: Checkout repository for patch context + if: needs.agent.outputs.has_patch == 'true' + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + # --- Threat Detection --- + - name: Clean stale firewall files from agent artifact + run: | + rm -rf /tmp/gh-aw/sandbox/firewall/logs + rm -rf /tmp/gh-aw/sandbox/firewall/audit + - name: Download container images + run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.25.49 ghcr.io/github/gh-aw-firewall/api-proxy:0.25.49 ghcr.io/github/gh-aw-firewall/squid:0.25.49 + - name: Check if detection needed + id: detection_guard + if: always() + env: + OUTPUT_TYPES: ${{ needs.agent.outputs.output_types }} + HAS_PATCH: ${{ needs.agent.outputs.has_patch }} + run: | + if [[ -n "$OUTPUT_TYPES" || "$HAS_PATCH" == "true" ]]; then + echo "run_detection=true" >> "$GITHUB_OUTPUT" + echo "Detection will run: output_types=$OUTPUT_TYPES, has_patch=$HAS_PATCH" + else + echo "run_detection=false" >> "$GITHUB_OUTPUT" + echo "Detection skipped: no agent outputs or patches to analyze" + fi + - name: Clear MCP Config for detection + if: always() && steps.detection_guard.outputs.run_detection == 'true' + run: | + rm -f "${RUNNER_TEMP}/gh-aw/mcp-config/mcp-servers.json" + rm -f /home/runner/.copilot/mcp-config.json + rm -f "$GITHUB_WORKSPACE/.gemini/settings.json" + - name: Prepare threat detection files + if: always() && steps.detection_guard.outputs.run_detection == 'true' + run: | + mkdir -p /tmp/gh-aw/threat-detection/aw-prompts + cp /tmp/gh-aw/aw-prompts/prompt.txt /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt 2>/dev/null || true + cp /tmp/gh-aw/agent_output.json /tmp/gh-aw/threat-detection/agent_output.json 2>/dev/null || true + for f in /tmp/gh-aw/aw-*.patch; do + [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true + done + for f in /tmp/gh-aw/aw-*.bundle; do + [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true + done + echo "Prepared threat detection files:" + ls -la /tmp/gh-aw/threat-detection/ 2>/dev/null || true + - name: Setup threat detection + if: always() && steps.detection_guard.outputs.run_detection == 'true' + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + WORKFLOW_NAME: "Validate Pull Request" + WORKFLOW_DESCRIPTION: "Validate if this Pull Request meets our project criteria. COPILOT_GITHUB_TOKEN needs to be configured." + HAS_PATCH: ${{ needs.agent.outputs.has_patch }} + with: + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/setup_threat_detection.cjs'); + await main(); + - name: Ensure threat-detection directory and log + if: always() && steps.detection_guard.outputs.run_detection == 'true' + run: | + mkdir -p /tmp/gh-aw/threat-detection + touch /tmp/gh-aw/threat-detection/detection.log + - name: Setup Node.js + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + with: + node-version: '24' + package-manager-cache: false + - name: Install GitHub Copilot CLI + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.48 + env: + GH_HOST: github.com + - name: Install AWF binary + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.25.49 + - name: Execute GitHub Copilot CLI + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + id: detection_agentic_execution + # Copilot CLI tool arguments (sorted): + timeout-minutes: 20 + run: | + set -o pipefail + printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt + touch /tmp/gh-aw/agent-step-summary.md + GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true) + export GH_AW_NODE_BIN + export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK" + (umask 177 && touch /tmp/gh-aw/threat-detection/detection.log) + printf '%s\n' '{"$schema":"https://github.com/github/gh-aw-firewall/releases/download/v0.25.49/awf-config.schema.json","network":{"allowDomains":["api.business.githubcopilot.com","api.enterprise.githubcopilot.com","api.github.com","api.githubcopilot.com","api.individual.githubcopilot.com","github.com","host.docker.internal","telemetry.enterprise.githubcopilot.com"]},"apiProxy":{"enabled":true,"enableTokenSteering":true,"maxRuns":500,"maxEffectiveTokens":25000000},"container":{"imageTag":"0.25.49"}}' > "${RUNNER_TEMP}/gh-aw/awf-config.json" + cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="" + if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then + GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS="--docker-host-path-prefix /tmp/gh-aw" + fi + # shellcheck disable=SC1003 + sudo -E awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS} --env-all --exclude-env COPILOT_GITHUB_TOKEN --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --audit-dir /tmp/gh-aw/sandbox/firewall/audit --enable-host-access --allow-host-ports 80,443,8080 --skip-pull \ + -- /bin/bash -c 'export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log + env: + AWF_REFLECT_ENABLED: 1 + COPILOT_AGENT_RUNNER_TYPE: STANDALONE + COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_MODEL: gpt-5-mini + GH_AW_PHASE: detection + GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt + GH_AW_VERSION: v0.74.8 + GITHUB_API_URL: ${{ github.api_url }} + GITHUB_AW: true + GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows + GITHUB_HEAD_REF: ${{ github.head_ref }} + GITHUB_REF_NAME: ${{ github.ref_name }} + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_STEP_SUMMARY: /tmp/gh-aw/agent-step-summary.md + GITHUB_WORKSPACE: ${{ github.workspace }} + GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_AUTHOR_NAME: github-actions[bot] + GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com + GIT_COMMITTER_NAME: github-actions[bot] + XDG_CONFIG_HOME: /home/runner + - name: Upload threat detection log + if: always() && steps.detection_guard.outputs.run_detection == 'true' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: detection + path: /tmp/gh-aw/threat-detection/detection.log + if-no-files-found: ignore + - name: Parse and conclude threat detection + id: detection_conclusion + if: always() + continue-on-error: true + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }} + DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }} + GH_AW_DETECTION_CONTINUE_ON_ERROR: "true" + with: + script: | + try { + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_threat_detection_results.cjs'); + await main(); + } catch (loadErr) { + const continueOnError = process.env.GH_AW_DETECTION_CONTINUE_ON_ERROR !== 'false'; + const detectionExecutionFailed = process.env.DETECTION_AGENTIC_EXECUTION_OUTCOME === 'failure'; + const msg = 'ERR_SYSTEM: \u274C Unexpected error loading threat detection module: ' + (loadErr && loadErr.message ? loadErr.message : String(loadErr)); + core.error(msg); + core.setOutput('reason', 'parse_error'); + if (continueOnError && !detectionExecutionFailed) { + core.warning('\u26A0\uFE0F ' + msg); + core.setOutput('conclusion', 'warning'); + core.setOutput('success', 'false'); + } else { + core.setOutput('conclusion', 'failure'); + core.setOutput('success', 'false'); + core.setFailed(msg); + } + } + + pre_activation: + if: startsWith(github.ref, 'refs/pull/') && github.event.label.name == 'validate' + runs-on: ubuntu-slim + outputs: + activated: ${{ steps.check_membership.outputs.is_team_member == 'true' }} + matched_command: '' + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/validate-pr.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Check team membership for workflow + id: check_membership + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_REQUIRED_ROLES: "admin,maintainer,write" + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_membership.cjs'); + await main(); + + safe_outputs: + needs: + - activation + - agent + - detection + if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' + runs-on: ubuntu-slim + permissions: + contents: read + discussions: write + issues: write + pull-requests: write + timeout-minutes: 15 + env: + GH_AW_CALLER_WORKFLOW_ID: "${{ github.repository }}/validate-pr" + GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }} + GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }} + GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens }} + GH_AW_ENGINE_ID: "copilot" + GH_AW_ENGINE_MODEL: "gpt-5-mini" + GH_AW_ENGINE_VERSION: "1.0.48" + GH_AW_SAFE_OUTPUT_MESSAGES: "{\"appendOnlyComments\":true,\"activationComments\":\"false\"}" + GH_AW_WORKFLOW_ID: "validate-pr" + GH_AW_WORKFLOW_NAME: "Validate Pull Request" + outputs: + code_push_failure_count: ${{ steps.process_safe_outputs.outputs.code_push_failure_count }} + code_push_failure_errors: ${{ steps.process_safe_outputs.outputs.code_push_failure_errors }} + comment_id: ${{ steps.process_safe_outputs.outputs.comment_id }} + comment_url: ${{ steps.process_safe_outputs.outputs.comment_url }} + create_discussion_error_count: ${{ steps.process_safe_outputs.outputs.create_discussion_error_count }} + create_discussion_errors: ${{ steps.process_safe_outputs.outputs.create_discussion_errors }} + process_safe_outputs_processed_count: ${{ steps.process_safe_outputs.outputs.processed_count }} + process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Validate Pull Request" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/validate-pr.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.48" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Download agent output artifact + id: download-agent-output + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: agent + path: /tmp/gh-aw/ + - name: Setup agent output environment variable + id: setup-agent-output-env + if: steps.download-agent-output.outcome == 'success' + run: | + mkdir -p /tmp/gh-aw/ + find "/tmp/gh-aw/" -type f -print + echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT" + - name: Configure GH_HOST for enterprise compatibility + id: ghes-host-config + shell: bash + run: | + # Derive GH_HOST from GITHUB_SERVER_URL so the gh CLI targets the correct + # GitHub instance (GHES/GHEC). On github.com this is a harmless no-op. + GH_HOST="${GITHUB_SERVER_URL#https://}" + GH_HOST="${GH_HOST#http://}" + echo "GH_HOST=${GH_HOST}" >> "$GITHUB_ENV" + - name: Process Safe Outputs + id: process_safe_outputs + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }} + GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} + GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com" + GITHUB_SERVER_URL: ${{ github.server_url }} + GITHUB_API_URL: ${{ github.api_url }} + GH_AW_SAFE_OUTPUT_JOBS: "{\"accept_validate_pr\":\"\"}" + GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"mentions\":{\"allowContext\":false,\"allowTeamMembers\":false},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"true\"},\"report_incomplete\":{}}" + with: + github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/safe_output_handler_manager.cjs'); + await main(); + - name: Upload Safe Outputs Items + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: safe-outputs-items + path: | + /tmp/gh-aw/safe-output-items.jsonl + /tmp/gh-aw/temporary-id-map.json + if-no-files-found: ignore + diff --git a/.github/workflows/validate-pr.md b/.github/workflows/validate-pr.md new file mode 100644 index 00000000..e881cdfb --- /dev/null +++ b/.github/workflows/validate-pr.md @@ -0,0 +1,202 @@ +--- +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +strict: true + +description: Validate if this Pull Request meets our project criteria. COPILOT_GITHUB_TOKEN needs to be configured. + +metadata: + author: Kaito Udagawa + version: 1.1.1 + date: 2026-03-29 + +engine: + id: copilot + model: gpt-5-mini + +on: + label_command: + name: validate + events: [pull_request] + + status-comment: false + +if: startsWith(github.ref, 'refs/pull/') && github.event.label.name == 'validate' + +permissions: + contents: read + pull-requests: read + +steps: + - name: Fetch Pull Request commits + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + GH_TOKEN: ${{ github.token }} + run: | + ARGS=( + "repos/$GITHUB_REPOSITORY/pulls/${GITHUB_REF_NAME%/merge}/commits" + -H "Accept: application/vnd.github+json" + -H "X-GitHub-Api-Version: 2026-03-10" + --paginate + --jq '[.[] | {sha: .sha, message: .commit.message, verification: .commit.verification}]' + ) + gh api "${ARGS[@]}" > /tmp/gh-aw/agent/pr_commits.json + + - name: Extract items on Pull Request Checklist + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + env: + GH_TOKEN: ${{ github.token }} + run: | + VALID_ITEMS=( + 'I have read the latest CONTRIBUTING.md.' + 'I have acknowledged the licensing and patent grant policy.' + 'I have included the required license headers.' + 'I am confident with my code integrity.' + 'I have signed off and verified all my commits.' + ) + + PR_NUMBER="${GITHUB_REF_NAME%/merge}" + + GH_PR_VIEW_ARGS=( + --json body + --jq '[.body | splits("\r?\n") | try match("^- \\[[ xX]\\] (.*)$") catch empty]' + ) + + gh pr view "$PR_NUMBER" "${GH_PR_VIEW_ARGS[@]}" > /tmp/raw_pr_checklist.json + + { + echo '## Pull Request Checklist (Listing all the valid items, including not found errors)' + echo + for item in "${VALID_ITEMS[@]}"; do + if ! jq -e -r --arg item "$item" '.[] | select(.captures[0].string == $item) | .string' /tmp/raw_pr_checklist.json; then + echo "# ERROR: No lines found for '$item'" + fi + done + } >/tmp/gh-aw/agent/pr_checklist.md + +safe-outputs: + add-comment: + + messages: + append-only-comments: true + + jobs: + accept_validate_pr: + name: Accept validate-pr + description: Decide if the result of this workflow is acceptable. + + inputs: + commit_signing: + description: A boolean value to represent if commit signing check is passed or not. + required: true + type: boolean + dco: + description: A boolean value to represent if DCO check is passed or not. + required: true + type: boolean + pull_request_checklist: + description: A boolean value to represent if Pull Request Checklist check is passed or not. + required: true + type: boolean + + runs-on: ubuntu-slim + + permissions: {} + + steps: + - name: Accept or Reject + shell: bash --noprofile --norc -euo pipefail -O nullglob {0} + run: | + if ! [[ -f "$GH_AW_AGENT_OUTPUT" ]]; then + echo "No agent output found." + exit 1 + fi + + COUNT="$(jq '[.items[] | select(.type == "accept_validate_pr")] | length' "$GH_AW_AGENT_OUTPUT")" + if [[ "$COUNT" -ne 1 ]]; then + echo "ERROR: $COUNT inputs received, only one was expected." + exit 1 + fi + + COMMIT_SIGNING="$(jq -r '.items[] | select(.type == "accept_validate_pr") | .commit_signing' "$GH_AW_AGENT_OUTPUT")" + DCO="$(jq -r '.items[] | select(.type == "accept_validate_pr") | .dco' "$GH_AW_AGENT_OUTPUT")" + PULL_REQUEST_CHECKLIST="$(jq -r '.items[] | select(.type == "accept_validate_pr") | .pull_request_checklist' "$GH_AW_AGENT_OUTPUT")" + + rejected=0 + messages=() + + if [[ "$COMMIT_SIGNING" != "true" ]]; then + messages+=("Commit Signing check was rejected.") + rejected=1 + fi + + if [[ "$DCO" != "true" ]]; then + messages+=("DCO check was rejected.") + rejected=1 + fi + + if [[ "$PULL_REQUEST_CHECKLIST" != "true" ]]; then + messages+=("Pull Request Checklist check was rejected.") + rejected=1 + fi + + if [[ "$rejected" -eq 1 ]]; then + messages+=("ERROR: $GITHUB_JOB rejected this check.") + else + messages+=("$GITHUB_JOB accepted the overall result.") + fi + + for m in "${messages[@]}"; do + printf '%s\n' "$m" + done + + exit "$rejected" + + activation-comments: false + mentions: + allow-team-members: false + allow-context: false + report-failure-as-issue: false + staged: false +--- + +# Validate Pull Request + +Validate if this Pull Request meets our project criteria. + +## Trigger + +This workflow is triggered by label command on Pull Request. + +## Checks + +- **Commit Signing** + - **Input**: Read `/tmp/gh-aw/agent/pr_commits.json` for summarized commit objects. + - **Verification**: Inspect the `verification` object of every commit on this Pull Request, and verify if all commits on this Pull Request are properly signed. + - **Context**: Refer to `CONTRIBUTING.md` for this commit signing policy. + +- **DCO (Developer’s Certificate of Origin)** + - **Input**: Read `/tmp/gh-aw/agent/pr_commits.json` for summarized commit objects. + - **Verification**: Inspect the `message` field of every commit on this Pull Request, and verify if all commits on this Pull Request contain a valid `Signed-off-by:` trailer for DCO compliance. + - **Context**: Refer to `CONTRIBUTING.md` for this policy. + +- **Pull Request Checklist** + - **Input**: Read `/tmp/gh-aw/agent/pr_checklist.md` for extracted and sanitized Pull Request checklist using whitelist. + - **Verification:** Read the extracted Pull Request checklist, and verify if it contains the Pull Request template and all the items are checked. + +## Outputs + +You MUST add a single pull request comment and use the accept tool once as described below. + +**Pull Request Comment**: + +- **Condition**: Always add a summary comment, regardless of the check result. +- **Output Format**: You MUST add a summary comment that describes what you verify on the Pull Request. +- **Summary Line**: The first line of your comment MUST be a single-line summary of this validation, starting with either ✅ or 🚫. + +**Accept tool**: + +- **Condition**: Always call the `accept_validate_pr` tool, regardless of the check result. +- **Output Format**: You MUST send the check result to the `accept_validate_pr` tool to control merge admittance, providing the three boolean fields: `commit_signing`, `dco`, and `pull_request_checklist`. diff --git a/.gitignore b/.gitignore index 1982bf8f..147a7bab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,14 @@ -*~ .DS_Store +.venv/ +.vscode/ +/.ccache*/ +/.deps_vendor/ +/.deps/ /build/ -/build32/ -/build64/ +/build_* +/obs-studio/ +/onnxruntime/ +/ort_installed*/ /release/ -/installer/Output/ - -.vscode -.idea - -# ignore generated files -*.generated.* +/vcpkg_installed*/ +/vcpkg/ diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/CMakeLists.txt b/CMakeLists.txt index 1825dd71..0feb768d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,298 +1,367 @@ -cmake_minimum_required(VERSION 3.10) - -include(external/MunkeiVersionFromGit.cmake) -version_from_git() - -# Change obs-plugintemplate to your plugin's name in a machine-readable format -# (e.g.: obs-myawesomeplugin) and set -project(obs-backgroundremoval VERSION ${VERSION}) - -# Replace `Your Name Here` with the name (yours or your organization's) you want -# to see as the author of the plugin (in the plugin's metadata itself and in the installers) -set(PLUGIN_AUTHOR "Roy Shilkrot") - -# Replace `com.example.obs-plugin-template` with a unique Bundle ID for macOS releases -# (used both in the installer and when submitting the installer for notarization) -set(MACOS_BUNDLEID "com.example.obs-backgroundremoval") - -# Replace `me@contoso.com` with the maintainer email address you want to put in Linux packages -set(LINUX_MAINTAINER_EMAIL "roy.shil@gmail.com") - -if(WIN32 OR MSVC) - set(VCPKG_DIR ${CMAKE_BINARY_DIR}/vcpkg) - set(VCPKG_INSTALLED_DIR ${VCPKG_DIR}/installed/x64-windows-static) - set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake) - - set(OpenCV_DIR ${VCPKG_INSTALLED_DIR}/share/opencv) - set(protobuf_DIR ${VCPKG_INSTALLED_DIR}/share/protobuf) - set(LibLZMA_DIR ${VCPKG_INSTALLED_DIR}/share/liblzma) - set(quirc_DIR ${VCPKG_INSTALLED_DIR}/share/quirc) +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.28) + +### Options +set(PLUGIN_NAME "obs-backgroundremoval" CACHE STRING "Name of plugin") +set(PLUGIN_DISPLAY_NAME "OBS Background Removal" CACHE STRING "Display name of plugin") +set(PLUGIN_AUTHOR "Roy Shilkrot" CACHE STRING "Author of plugin") +set(PLUGIN_EMAIL "roy.shil@gmail.com" CACHE STRING "Author email of plugin") +set(PLUGIN_BUILD_NUMBER "1" CACHE STRING "Build number in plugin metadata") +set(PLUGIN_BUNDLE_ID "com.royshilkrot.obs-backgroundremoval" CACHE STRING "Bundle ID of plugin installer") +set(PACKAGE_VERSION_SUFFIX "" CACHE STRING "Version suffix for plugin package") + +### Project +block(SCOPE_FOR POLICIES VARIABLES PROPAGATE PLUGIN_VERSION) + file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" VERSION_CONTENT) + string(STRIP "${VERSION_CONTENT}" PLUGIN_VERSION) +endblock() + +project(obs-backgroundremoval VERSION "${PLUGIN_VERSION}" LANGUAGES C CXX) + +block(SCOPE_FOR POLICIES VARIABLES PROPAGATE OS_LINUX_DETECTED) + if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + if(EXISTS "/etc/os-release") + file(STRINGS "/etc/os-release" OS_RELEASE_ID_LINE REGEX "^ID=") + string(TOLOWER "${OS_RELEASE_ID_LINE}" OS_RELEASE_ID_LINE_LOWER) + + if(OS_RELEASE_ID_LINE_LOWER MATCHES [[^id=['"]?debian['"]?$]]) + set(OS_LINUX_DETECTED Debian) + elseif(OS_RELEASE_ID_LINE_LOWER MATCHES [[^id=['"]?ubuntu['"]?$]]) + set(OS_LINUX_DETECTED Ubuntu) + else() + set(OS_LINUX_DETECTED Linux) + endif() + else() + set(OS_LINUX_DETECTED Linux) + endif() + else() + set(OS_LINUX_DETECTED FALSE) + endif() +endblock() - # Find lib TIFF - find_library(TIFF_LIBRARY tiff PATHS ${VCPKG_INSTALLED_DIR}/lib) - find_path(TIFF_INCLUDE_DIR tiff.h PATHS ${VCPKG_INSTALLED_DIR}/include) +set(OS_LINUX ${OS_LINUX_DETECTED} CACHE STRING "Linux variant: Linux Debian Ubuntu FALSE") - find_file(Protobuf_PROTOC_EXECUTABLE protoc.exe PATHS ${VCPKG_INSTALLED_DIR}/tools) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND OS_LINUX MATCHES "(Debian|Ubuntu)") + set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Install prefix" FORCE) endif() -if (UNIX) - set(Onnxruntime_INCLUDE_HINT /usr/local/include/) +include(GNUInstallDirs) + +### Global configurations +set(CMAKE_C_STANDARD 17) +set(CMAKE_C_STANDARD_REQUIRED TRUE) +set(CMAKE_C_EXTENSIONS FALSE) +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED TRUE) +set(CMAKE_CXX_EXTENSIONS FALSE) +set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) + +if(MSVC) + add_compile_definitions(NOMINMAX WIN32_LEAN_AND_MEAN) +elseif(APPLE OR OS_LINUX) + add_compile_definitions(SIMDE_ENABLE_OPENMP) + add_compile_options(-fopenmp-simd -fno-omit-frame-pointer -fstack-protector-strong) endif() -set(RELEASE_DIR "${PROJECT_SOURCE_DIR}/release" CACHE STRING "Directory for building release packages") - -set(CMAKE_PREFIX_PATH "${QTDIR}") -set(CMAKE_INCLUDE_CURRENT_DIR ON) -set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/external") - -# In case you need C++ -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -if (APPLE) - include(external/FindLibObs.cmake) +### Configure paths +if(DEFINED ENV{PLUGIN_BUILD_DIR}) + set(PLUGIN_BUILD_DIR "$ENV{PLUGIN_BUILD_DIR}") else() - find_package(LibObs REQUIRED) + set(PLUGIN_BUILD_DIR "${CMAKE_CURRENT_SOURCE_DIR}") endif() -# Qt is not required for this plugin, at the moment. -# set(CMAKE_AUTOMOC ON) -# set(CMAKE_AUTOUIC ON) -# find_package(Qt5 REQUIRED COMPONENTS Core Widgets) +if(APPLE) + list( + PREPEND + CMAKE_PREFIX_PATH + "${PLUGIN_BUILD_DIR}/.deps/obs-deps" + "${PLUGIN_BUILD_DIR}/.deps/obs-deps-qt6" + "${PLUGIN_BUILD_DIR}/.deps/Debug" + "${PLUGIN_BUILD_DIR}/.deps/Debug/Frameworks" + "${PLUGIN_BUILD_DIR}/.deps/Release" + "${PLUGIN_BUILD_DIR}/.deps/Release/Frameworks" + "${PLUGIN_BUILD_DIR}/vcpkg_installed/universal-osx-obs" + "${PLUGIN_BUILD_DIR}/vcpkg_installed_ort/universal-osx" + "${PLUGIN_BUILD_DIR}/ort_installed" + ) +endif() -configure_file( - src/plugin-macros.h.in - ../src/plugin-macros.generated.h -) -configure_file( - installer/installer-macOS.pkgproj.in - ../installer/installer-macOS.generated.pkgproj -) -configure_file( - installer/installer-Windows.iss.in - ../installer/installer-Windows.generated.iss -) +### Package dependencies +find_package(PkgConfig QUIET) -configure_file( - ci/ci_includes.sh.in - ../ci/ci_includes.generated.sh -) -configure_file( - ci/ci_includes.cmd.in - ../ci/ci_includes.generated.cmd -) +find_package(libobs REQUIRED) +find_package(obs-frontend-api REQUIRED) -set(PLUGIN_SOURCES - src/background-filter.cpp - src/plugin-main.cpp - ) +block(SCOPE_FOR POLICIES VARIABLES PROPAGATE CURL_FOUND) + find_package(CURL QUIET) + + if(NOT CURL_FOUND AND PkgConfig_FOUND) + pkg_check_modules(PC_CURL libcurl IMPORTED_TARGET) + if(PC_CURL_FOUND) + add_library(CURL::libcurl ALIAS PkgConfig::PC_CURL) + set(CURL_FOUND TRUE) + endif() + endif() + + if(NOT CURL_FOUND) + message(FATAL_ERROR "CURL not found via CMake or pkg-config.") + endif() +endblock() + +block(SCOPE_FOR POLICIES VARIABLES PROPAGATE OpenCV_FOUND) + find_package(OpenCV CONFIG QUIET) + + if(NOT OpenCV_FOUND AND PkgConfig_FOUND) + pkg_check_modules(PC_OPENCV opencv4 IMPORTED_TARGET) + if(PC_OPENCV_FOUND) + add_library(OpenCV::opencv_core ALIAS PkgConfig::PC_OPENCV) + add_library(OpenCV::opencv_imgproc ALIAS PkgConfig::PC_OPENCV) + set(OpenCV_FOUND TRUE) + endif() + endif() -set(PLUGIN_HEADERS - src/plugin-macros.generated.h) + if(NOT OpenCV_FOUND) + message(FATAL_ERROR "OpenCV not found via CMake or pkg-config.") + endif() -# --- Platform-independent build settings --- -add_library(${CMAKE_PROJECT_NAME} MODULE ${PLUGIN_SOURCES} ${PLUGIN_HEADERS}) + if(NOT TARGET OpenCV::opencv_core) + add_library(OpenCV::opencv_core ALIAS opencv_core) + endif() -find_package(Onnxruntime REQUIRED) + if(NOT TARGET OpenCV::opencv_imgproc) + add_library(OpenCV::opencv_imgproc ALIAS opencv_imgproc) + endif() +endblock() -if (APPLE) - set(OpenCV_DIR ${CMAKE_BINARY_DIR}/opencv/lib/cmake/opencv4) -endif() -find_package(OpenCV 4.2 REQUIRED COMPONENTS core imgproc) - -include_directories( - ${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api - ${LIBOBS_INCLUDE_DIR} - ${LIBOBS_INCLUDE_DIRS} - ${Onnxruntime_INCLUDE_DIRS} - ${OpenCV_INCLUDE_DIRS} -) +block(SCOPE_FOR POLICIES VARIABLES PROPAGATE onnxruntime_FOUND) + set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS ON) -target_link_libraries(${CMAKE_PROJECT_NAME} - ${LIBOBS_LIBRARIES} - ${Onnxruntime_LIBRARIES} - ${OpenCV_LIBRARIES} -) + if(POLICY CMP0167) + cmake_policy(SET CMP0167 OLD) + endif() -# --- End of section --- + find_package(onnxruntime CONFIG) -# --- Windows-specific build settings and tasks --- -if(WIN32) - find_library(OBS_FRONTEND_LIB obs-frontend-api - PATHS - ${obsPath}/build/UI/obs-frontend-api/Release - ${obsPath}/build64/UI/obs-frontend-api/Release - ) + if(NOT onnxruntime_FOUND AND PkgConfig_FOUND) + pkg_check_modules(PC_onnxruntime onnxruntime IMPORTED_TARGET) + if(PC_onnxruntime_FOUND) + add_library(onnxruntime::onnxruntime ALIAS PkgConfig::PC_onnxruntime) + set(onnxruntime_FOUND TRUE) + endif() + endif() - if(NOT DEFINED OBS_FRONTEND_LIB) - set(OBS_FRONTEND_LIB "OBS_FRONTEND_LIB-NOTFOUND" CACHE FILEPATH "OBS frontend library") - message(FATAL_ERROR "Could not find OBS Frontend API\'s library !") - endif() + if(NOT onnxruntime_FOUND) + message(FATAL_ERROR "ONNX Runtime not found via CMake or pkg-config.") + endif() - # find the onnxruntime DLL for packaging with the plugin DLL - set(Onnxruntime_DLL "${Onnxruntime_LIBRARY_DIR}/onnxruntime.dll") - set(DirectML_DLL "${CMAKE_BINARY_DIR}/nuget/Microsoft.AI.DirectML.1.4.2/bin/x64-win/DirectML.dll") + if(NOT TARGET onnxruntime::onnxruntime) + add_library(onnxruntime::onnxruntime ALIAS onnxruntime) + endif() +endblock() - # Enable Multicore Builds and disable FH4 (to not depend on VCRUNTIME140_1.DLL when building with VS2019) - if (MSVC) - add_definitions(/MP /d2FH4- /std:c++latest /MT) - endif() +### Plugin main +add_library(${CMAKE_PROJECT_NAME} MODULE) - if(CMAKE_SIZEOF_VOID_P EQUAL 8) - set(ARCH_NAME "64bit") - set(OBS_BUILDDIR_ARCH "build64") - else() - set(ARCH_NAME "32bit") - set(OBS_BUILDDIR_ARCH "build32") - endif() - - include_directories( - "${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/UI" - ) - - target_link_libraries(${CMAKE_PROJECT_NAME} - "${OBS_FRONTEND_LIB}" - ) - - # --- Release package helper --- - # The "release" folder has a structure similar OBS' one on Windows - add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD - # If config is Release or RelWithDebInfo, package release files - COMMAND if $,$>==1 ( - "${CMAKE_COMMAND}" -E make_directory - "${RELEASE_DIR}/data/obs-plugins/${CMAKE_PROJECT_NAME}" - "${RELEASE_DIR}/obs-plugins/${ARCH_NAME}" - ) - - COMMAND if $,$>==1 ( - "${CMAKE_COMMAND}" -E copy_directory - "${PROJECT_SOURCE_DIR}/data" - "${RELEASE_DIR}/data/obs-plugins/${CMAKE_PROJECT_NAME}" - ) - - COMMAND if $,$>==1 ( - "${CMAKE_COMMAND}" -E copy - "$" - "${RELEASE_DIR}/obs-plugins/${ARCH_NAME}" - ) - - COMMAND if $,$>==1 ( - "${CMAKE_COMMAND}" -E copy - "${Onnxruntime_DLL}" "${DirectML_DLL}" - "${RELEASE_DIR}/obs-plugins/${ARCH_NAME}" - ) - - # If config is RelWithDebInfo, copy the pdb file - COMMAND if $==1 ( - "${CMAKE_COMMAND}" -E copy - "$" - "${RELEASE_DIR}/obs-plugins/${ARCH_NAME}" - ) - - # Copy to obs-studio dev environment for immediate testing - COMMAND if $==1 ( - "${CMAKE_COMMAND}" -E copy - "$" - "${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$/obs-plugins/${ARCH_NAME}" - ) - - COMMAND if $==1 ( - "${CMAKE_COMMAND}" -E copy - "$" - "${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$/obs-plugins/${ARCH_NAME}" - ) - - COMMAND if $==1 ( - "${CMAKE_COMMAND}" -E make_directory - "${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$/data/obs-plugins/${CMAKE_PROJECT_NAME}" - ) - - COMMAND if $==1 ( - "${CMAKE_COMMAND}" -E copy_directory - "${PROJECT_SOURCE_DIR}/data" - "${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$/data/obs-plugins/${CMAKE_PROJECT_NAME}" - ) - ) - # --- End of sub-section --- - - install(DIRECTORY "${RELEASE_DIR}/" DESTINATION .) - # Tell CPack to create a zip file. - set(CPACK_GENERATOR "ZIP") - # Tell CPack what to name the zip file. It will append `.zip`. - set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-win64") - # Tell CPack not to put everything inside an enclosing directory. - set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) - # Apparently this should be always on but isn't for backwards compatibility. - set(CPACK_VERBATIM_VARIABLES YES) - include(CPack) +if(MSVC) + target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE /W4 /WX /MP) +elseif(APPLE OR OS_LINUX) + target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wall -Wextra -Werror) endif() -# --- End of section --- -# --- Linux-specific build settings and tasks --- -if(UNIX AND NOT APPLE) - include(GNUInstallDirs) +add_subdirectory(src/update-checker/CurlClient) +target_link_libraries( + ${CMAKE_PROJECT_NAME} + PRIVATE + OBS::libobs + OBS::obs-frontend-api + onnxruntime::onnxruntime + CurlClient + OpenCV::opencv_core + OpenCV::opencv_imgproc +) - set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES PREFIX "") - target_link_libraries(${CMAKE_PROJECT_NAME} obs-frontend-api) +target_sources( + ${CMAKE_PROJECT_NAME} + PRIVATE + src/plugin-main.c + src/plugin-support.c + src/ort-utils/ort-session-utils.cpp + src/obs-utils/obs-utils.cpp + src/obs-utils/obs-config-utils.cpp + src/update-checker/github-utils.cpp + src/update-checker/update-checker.cpp + src/background-filter-info.c + src/background-filter.cpp + src/enhance-filter.cpp + src/enhance-filter-info.c +) - file(GLOB locale_files data/locale/*.ini) - file(GLOB onnxmodels data/*.onnx) +### Hide symbols +if(APPLE) + target_link_options( + ${CMAKE_PROJECT_NAME} + PRIVATE "-Wl,-exported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/src/exported_symbols_macos.txt" + ) +elseif(MSVC) + target_sources(${CMAKE_PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/exported_symbols_windows.def") +elseif(OS_LINUX) + target_link_options( + ${CMAKE_PROJECT_NAME} + PRIVATE "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/src/exported_symbols_linux.map" "-Wl,-Bsymbolic" + ) +endif() - install(TARGETS ${CMAKE_PROJECT_NAME} - LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/obs-plugins") +### Install configurations +set( + EFFECTS_FILES + data/effects/blend_images.effect + data/effects/kawase_blur.effect + data/effects/mask_alpha_filter.effect +) - install(FILES ${locale_files} - DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/obs/obs-plugins/${CMAKE_PROJECT_NAME}/locale") +set( + LOCALE_FILES + data/locale/ar-EG.ini + data/locale/bn-IN.ini + data/locale/en-US.ini + data/locale/es-SP.ini + data/locale/fr-FR.ini + data/locale/hi-IN.ini + data/locale/it-IT.ini + data/locale/ja-JP.ini + data/locale/ko-KR.ini + data/locale/pt-BR.ini + data/locale/ru-RU.ini + data/locale/ta-IN.ini + data/locale/tr-TR.ini + data/locale/zh-CN.ini +) - install(FILES ${onnxmodels} - DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/obs/obs-plugins/${CMAKE_PROJECT_NAME}/") -endif() -# --- End of section --- +set( + MODELS_FILES + data/models/mediapipe.with_runtime_opt.ort + data/models/mediapipe.with_runtime_opt.ort.license + data/models/pphumanseg_fp32.with_runtime_opt.ort + data/models/pphumanseg_fp32.with_runtime_opt.ort.license + data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort + data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort.license + data/models/selfie_multiclass_256x256.with_runtime_opt.ort + data/models/selfie_multiclass_256x256.with_runtime_opt.ort.license + data/models/selfie_segmentation.with_runtime_opt.ort + data/models/selfie_segmentation.with_runtime_opt.ort.license + data/models/semantic_guided_llie_180x324.with_runtime_opt.ort + data/models/semantic_guided_llie_180x324.with_runtime_opt.ort.license + data/models/SINet_Softmax_simple.with_runtime_opt.ort + data/models/SINet_Softmax_simple.with_runtime_opt.ort.license + data/models/tbefn_fp32.with_runtime_opt.ort + data/models/tbefn_fp32.with_runtime_opt.ort.license + data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort + data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort.license + data/models/uretinex_net_180x320.with_runtime_opt.ort + data/models/uretinex_net_180x320.with_runtime_opt.ort.license +) -# -- OS X specific build settings and tasks -- if(APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.13) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -fvisibility=default -framework Foundation") - - set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES PREFIX "") - target_link_libraries(${CMAKE_PROJECT_NAME} "${OBS_FRONTEND_LIB}") - - # add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD - add_custom_target(dist DEPENDS ${CMAKE_PROJECT_NAME} - COMMAND - "${CMAKE_COMMAND}" -E rm -rf "${RELEASE_DIR}" - - COMMAND - "${CMAKE_COMMAND}" -E make_directory - "${RELEASE_DIR}/Resources/data/obs-plugins/${CMAKE_PROJECT_NAME}" - "${RELEASE_DIR}/Plugins" - - COMMAND - "${CMAKE_COMMAND}" -E copy_directory - "${PROJECT_SOURCE_DIR}/data" - "${RELEASE_DIR}/Resources/data/obs-plugins/${CMAKE_PROJECT_NAME}" - - COMMAND - "${CMAKE_COMMAND}" -E copy - "$" - "${RELEASE_DIR}/Plugins/" - - COMMAND - "${CMAKE_COMMAND}" -E rm -f - "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-macosx.zip" - - ) - - install(DIRECTORY "${RELEASE_DIR}/" DESTINATION .) - - # Tell CPack to create a zip file. - set(CPACK_GENERATOR "ZIP") - # Tell CPack what to name the zip file. It will append `.zip`. - set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-macosx") - # Tell CPack not to put everything inside an enclosing directory. - set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) - # Apparently this should be always on but isn't for backwards compatibility. - set(CPACK_VERBATIM_VARIABLES YES) - include(CPack) + set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES BUNDLE TRUE BUNDLE_EXTENSION "plugin") + set_source_files_properties(${EFFECTS_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/effects") + set_source_files_properties(${LOCALE_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/locale") + set_source_files_properties(${MODELS_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/models") + target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${EFFECTS_FILES} ${LOCALE_FILES} ${MODELS_FILES}) + + install( + TARGETS "${CMAKE_PROJECT_NAME}" + BUNDLE DESTINATION "Library/Application Support/obs-studio/plugins" + LIBRARY DESTINATION "Library/Application Support/obs-studio/plugins" + ) + + configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/packaging/pkg/Distribution.xml.in" + "${CMAKE_CURRENT_BINARY_DIR}/Distribution" + @ONLY + ) + + install( + CODE + "set(INSTALL_DIR \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}\") +set(PLUGIN_DIR \"\${INSTALL_DIR}/Library/Application Support/obs-studio/plugins\") + +set(BUNDLE_PATH \"\${PLUGIN_DIR}/${CMAKE_PROJECT_NAME}.plugin\") + +if(EXISTS \"\${BUNDLE_PATH}\") + message(STATUS \"Re-signing: \${BUNDLE_PATH}...\") + + execute_process( + COMMAND xattr -cr \"\${BUNDLE_PATH}\" + COMMAND_ERROR_IS_FATAL NONE + ) + + execute_process( + COMMAND dot_clean -m \"\${BUNDLE_PATH}\" + COMMAND_ERROR_IS_FATAL NONE + ) + + execute_process( + COMMAND codesign -s - -f -o runtime --deep \"\${BUNDLE_PATH}\" + COMMAND_ERROR_IS_FATAL ANY + ) +endif()" + ) +elseif(MSVC) +elseif(OS_LINUX MATCHES "(Debian|Ubuntu)") + set(OBS_PLUGIN_DATA_DIR "${CMAKE_INSTALL_DATAROOTDIR}/obs/obs-plugins/${CMAKE_PROJECT_NAME}") + set(OBS_PLUGIN_DOC_DIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${CMAKE_PROJECT_NAME}") + set(OBS_PLUGIN_LIB_DIR "${CMAKE_INSTALL_LIBDIR}/obs-plugins") + + set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES PREFIX "") + + install( + TARGETS "${CMAKE_PROJECT_NAME}" + BUNDLE DESTINATION "${OBS_PLUGIN_LIB_DIR}" + LIBRARY DESTINATION "${OBS_PLUGIN_LIB_DIR}" + ) + install(FILES ${EFFECTS_FILES} DESTINATION "${OBS_PLUGIN_DATA_DIR}/effects") + install(FILES ${LOCALE_FILES} DESTINATION "${OBS_PLUGIN_DATA_DIR}/locale") + install(FILES ${MODELS_FILES} DESTINATION "${OBS_PLUGIN_DATA_DIR}/models" OPTIONAL) + install(FILES LICENSE DESTINATION "${OBS_PLUGIN_DOC_DIR}" RENAME copyright) +else() + message("Installing on this platform is not supported officially.") endif() -# -- End of section -- + +### CPack configurations +set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}") +set(CPACK_PACKAGE_VERSION "${CMAKE_PROJECT_VERSION}${PACKAGE_VERSION_SUFFIX}") +set(CPACK_PACKAGE_CONTACT "${PLUGIN_AUTHOR} <${PLUGIN_EMAIL}>") + +set(CPACK_ARCHIVE_THREADS 0) +set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/release") +set(CPACK_SET_DESTDIR TRUE) +set(CPACK_VERBATIM_VARIABLES TRUE) + +set(CPACK_DEBIAN_COMPRESSION_LEVEL 19) +set(CPACK_DEBIAN_COMPRESSION_TYPE zstd) +set(CPACK_DEBIAN_DEBUGINFO_PACKAGE TRUE) +set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT") +set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS TRUE) + +include(CPack) # This line must be placed after all the package configurations + +### Export variables +block(SCOPE_FOR POLICIES VARIABLES) + set(SH_CONTENT "") + set(PS1_CONTENT "") + + foreach(VAR_NAME PLUGIN_BUNDLE_ID PLUGIN_DISPLAY_NAME PLUGIN_NAME PLUGIN_VERSION) + set(VAR_VALUE "${${VAR_NAME}}") + if(NOT VAR_VALUE MATCHES [[^[-A-Za-z0-9._ ]+$]]) + message(FATAL_ERROR "${VAR_NAME} contains unsupported characters: ${VAR_VALUE}") + endif() + string(APPEND SH_CONTENT "${VAR_NAME}=\'${VAR_VALUE}\'\n") + string(APPEND PS1_CONTENT "\$${VAR_NAME} = \'${VAR_VALUE}\'\n") + endforeach() + + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cmake_export.sh" "${SH_CONTENT}") + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cmake_export.ps1" "${PS1_CONTENT}") +endblock() diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..ccd9a5f7 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,53 @@ +# CONTRIBUTING.md for obs-backgroundremoval + +## Legal and Community Guidelines + +To keep the `obs-backgroundremoval` project safe and reliable for everyone including its users, its contributors, and its maintainers, those who are involved in development of this project must know the following terms. Whenever we receive your Pull Request, we will explicitly ask you to confirm that your PR conforms to our policy. + +### 1. Licensing and Patent Grant + +- **GPL-3.0-or-later**: You agree to distribute your contribution under the GNU General Public License v3.0 or later. +- **Patent License**: Refer to the [terms of GNU GPLv3 (Section 11)](https://www.gnu.org/licenses/gpl-3.0.html#section11) about patents. + +### 2. License Headers + +To ensure the transparency of our codebase, we require all new code to include the following header. Please provide the year you wrote this code, your full legal name, and your email address associated with your GitHub account. + +```cpp +/* + * SPDX-FileCopyrightText: Copyright (C) [Year] [Author Name] [Email] + * SPDX-License-Identifier: GPL-3.0-or-later + * + * OBS Plugin: Portrait Background Removal / Virtual Green-screen and Low-Light Enhancement + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +``` + +### 3. Code Integrity + +We always welcome every contribution! To deliver the value of your work to our users in a professional manner, please adhere to the following policies: + +- **No Unverified Code**: Do not submit any code that you cannot fully understand and explain. Submitting any raw outputs from LLMs or Generative-AI is strictly prohibited. +- **Responsibility**: You must take responsibility for your code. Please ensure that your contribution has clean licensing and is reliable. We are here to help you to accomplish this, of course! + +### 4. Developer Certificate of Origin (DCO) and Commit Signing + +Please sign off (-s) all your commits (DCO), and sign all your commits (-S) with your GPG or SSH key: + +``` +git commit -s -S +``` + +Please refer to the [GitHub Document for commit signing](https://docs.github.com/authentication/managing-commit-signature-verification) for configuring commit signing. diff --git a/FAQ.md b/FAQ.md new file mode 100644 index 00000000..8b2c8247 --- /dev/null +++ b/FAQ.md @@ -0,0 +1,141 @@ +# OBS Background Removal – FAQ (Knowledge Base for LLMs) + +> **Purpose:** +> This file is a structured knowledge base for LLMs and AI chat support. Use it to answer user queries about the OBS Background Removal plugin. For interactive help, see: https://royshil.github.io/obs-backgroundremoval/interactive-help/ + +--- + +## 1. Basic Features & Usage + +- No green screen required. AI (MODNet, Selfie Segmentation, etc.) removes the background in real time. +- Works with any video source in OBS, including cameras and video files. +- Can be applied to multiple sources (CPU usage increases with each). +- Optimized for single-person foreground segmentation. Accuracy may drop with multiple people or in low-light conditions. +- Compatible with OBS Virtual Camera. Do not use with other background removal plugins simultaneously. + +### How to Apply the Filter +1. Right-click your video source in OBS → "Filters" → "Effect Filters" → Add "Background Removal". + +### Customizing the Background +- Replace the background with any image or video by placing a source below your camera in the scene. +- Adjust AI model, threshold, and edge smoothing in filter settings. +- Background blur is available (enable in filter settings). + +--- + +## 2. Installation (Detailed) + +### Windows +1. Download the latest Windows ZIP from the [official site](https://royshil.github.io/obs-backgroundremoval/). +2. Extract the ZIP and copy its contents to your OBS Studio install folder (e.g., `C:\Program Files\obs-studio`). +3. Restart OBS Studio. + +[More info](https://royshil.github.io/obs-backgroundremoval/windows/) + +--- + +### macOS +1. Download the latest macOS PKG installer from the [official site](https://royshil.github.io/obs-backgroundremoval/). +2. Run the PKG installer and follow the instructions. +3. Restart OBS Studio. + +[More info](https://royshil.github.io/obs-backgroundremoval/macos/) + +--- + +### Ubuntu +1. Download the latest Ubuntu DEB package from the [official site](https://royshil.github.io/obs-backgroundremoval/). +2. Install via GUI (double-click `.deb`) or terminal: + ```sh + sudo dpkg -i ./obs-backgroundremoval_*_x86_64-linux-gnu.deb + sudo apt-get install -f + ``` +3. Restart OBS Studio. + +[More info](https://royshil.github.io/obs-backgroundremoval/ubuntu/) + +--- + +### Flatpak +1. Run: + ```sh + flatpak install flathub com.obsproject.Studio.Plugin.BackgroundRemoval + ``` +2. Restart OBS Studio. + +[More info](https://royshil.github.io/obs-backgroundremoval/flatpak/) + +--- + +### Arch Linux +1. From AUR: + ```sh + git clone https://aur.archlinux.org/obs-backgroundremoval.git + cd obs-backgroundremoval + makepkg -si + ``` + Or with an AUR helper: + ```sh + yay -S obs-backgroundremoval + ``` +2. Restart OBS Studio. + +[More info](https://royshil.github.io/obs-backgroundremoval/arch/) + +--- + +## 3. Uninstallation (Summary) + +- **Windows:** Close OBS Studio. Delete `obs-backgroundremoval` from `C:\Program Files\obs-studio\obs-plugins\`. Config: `AppData\Roaming\obs-studio\plugin_config\obs-backgroundremoval`. +- **macOS:** Close OBS Studio. Delete `obs-backgroundremoval` from `Applications/OBS Studio.app/Contents/Plugins/`. Config: `~/Library/Application Support/obs-studio/plugin_config/obs-backgroundremoval`. +- **Ubuntu:** `sudo apt-get remove obs-backgroundremoval` or `flatpak uninstall com.obsproject.Studio.Plugin.BackgroundRemoval`. Config: `~/.config/obs-studio/plugin_config/obs-backgroundremoval`. +- **Arch:** `yay -R obs-backgroundremoval` or similar. Config: same as Ubuntu. + +--- + +## 4. Compatibility & Performance + +- Supported OS: Windows 11 (x64), macOS 12+, Ubuntu 24.04+ +- OBS Studio 31.1.1 or later required +- CPU: AVX support required. Multi-core recommended. GPU support is planned for the future. +- High CPU usage with multiple sources or high resolution. Use lighter models (e.g., SelfieSeg) if needed. + +### macOS Architecture Compatibility + +- **Apple Silicon (M1/M2/M3/etc.):** Use the Universal binary installer. Intel binaries running via Rosetta2 are **not supported** and will cause crashes. +- **Intel Macs:** Use the Universal binary installer. Apple Silicon binaries running on Intel are **not supported**. +- Always ensure your OBS Studio installation matches your Mac's architecture to avoid compatibility issues. + +--- + +## 5. Troubleshooting + +- **"Failed to load" error:** Missing dependencies or wrong install path. Recheck installation steps. +- **Black/transparent background:** Check filter settings and source order. +- **OBS crashes on macOS:** If running on Apple Silicon, ensure you are NOT using an Intel OBS binary via Rosetta2. If on Intel Mac, ensure you are NOT using an Apple Silicon OBS binary. The plugin does not support cross-architecture translation and will crash. Use OBS Studio and the plugin built for your Mac's native architecture. +- **OBS crashes (other platforms):** Use latest OBS/plugin, remove conflicting plugins, report with OBS log on GitHub if needed. +- **"Cannot find model file":** Missing model files. Reinstall the plugin. + +--- + +## 6. Security & Privacy + +- All processing is local. No video or user data is sent externally. Only version checking may use the internet. + +--- + +## 7. Other + +- **Bug reports/feature requests:** Use GitHub Issues. Attach OBS log for bug reports. +- **Contributing:** Star the GitHub repo, give feedback, or contribute code. + +--- + + +[More info](https://royshil.github.io/obs-backgroundremoval/flatpak/) + + +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later \ No newline at end of file diff --git a/GENERATED.md b/GENERATED.md new file mode 100644 index 00000000..411a542a --- /dev/null +++ b/GENERATED.md @@ -0,0 +1,21 @@ + + +# About generated contents in this project + +## Policy on generated contents + +- We will not use generated content in our project codebase because GenAI-generated code is unreliable and suspicious. +- We use GitHub Copilot code review to help ensure that the quality of our software is satisfactory for every streamer, but we will not incorporate LLM-suggested code snippets into the codebase. +- We use GitHub Agentic Workflows to enforce our development policy, but we will not use them to generate any code or text automatically. +- **EXCEPTION**: We use OpenAI GPT to generate translations for our product. + +## List of generated contents + +**Generated by gh command:** + +- [.github/workflows/dependencies-vcpkg.lock.yml](.github/workflows/dependencies-vcpkg.lock.yml) +- [.github/workflows/validate-pr.lock.yml](.github/workflows/validate-pr.lock.yml) diff --git a/LICENSE b/LICENSE index 57cf2e8f..173b360a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,674 @@ -MIT License - -Copyright (c) 2021 Roy Shilkrot - -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. + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2025 Roy Shilkrot + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 00000000..137069b8 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +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. diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt new file mode 100644 index 00000000..ea890afb --- /dev/null +++ b/LICENSES/BSD-3-Clause.txt @@ -0,0 +1,11 @@ +Copyright (c) . + +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. diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 00000000..0e259d42 --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/LICENSES/GPL-3.0-only.txt b/LICENSES/GPL-3.0-only.txt new file mode 100644 index 00000000..f6cdd22a --- /dev/null +++ b/LICENSES/GPL-3.0-only.txt @@ -0,0 +1,232 @@ +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright © 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. + +“This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on the Program. + +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. + +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. +A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Use with the GNU Affero General Public License. +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. + +14. Revised Versions of this License. +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/LICENSES/GPL-3.0-or-later.txt b/LICENSES/GPL-3.0-or-later.txt new file mode 100644 index 00000000..f6cdd22a --- /dev/null +++ b/LICENSES/GPL-3.0-or-later.txt @@ -0,0 +1,232 @@ +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright © 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. + +“This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on the Program. + +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. + +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. +A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Use with the GNU Affero General Public License. +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. + +14. Revised Versions of this License. +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..d817195d --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +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. diff --git a/README.md b/README.md index 40af8cc1..3bdd161e 100644 --- a/README.md +++ b/README.md @@ -1,143 +1,127 @@ -# OBS Plugin: Background Removal +# OBS Plugin: Portrait Background Removal / Virtual Green-screen and Low-Light Enhancement -- [Introduction](#introduction) -- [Building](#building) - - [MacOSX](#mac-osx) - - [Linux (Ubuntu, Arch)](#linux) - - [Windows](#windows) +
-## Download -Check out the [latest releases](https://github.com/royshil/obs-backgroundremoval/releases) for downloads and install instructions. +[![GitHub](https://img.shields.io/github/license/royshil/obs-backgroundremoval)](https://github.com/royshil/obs-backgroundremoval/blob/main/LICENSE) +[![GitHub Workflow Status](https://github.com/royshil/obs-backgroundremoval/actions/workflows/push.yaml/badge.svg)](https://github.com/royshil/obs-backgroundremoval/actions/workflows/push.yaml) +[![Total downloads](https://img.shields.io/github/downloads/royshil/obs-backgroundremoval/total)](https://github.com/royshil/obs-backgroundremoval/releases) +![Flathub](https://img.shields.io/flathub/downloads/com.obsproject.Studio.Plugin.BackgroundRemoval?label=Flathub%20Installs) +[![GitHub release (latest by date)](https://img.shields.io/github/v/release/royshil/obs-backgroundremoval)](https://github.com/royshil/obs-backgroundremoval/releases) -## Introduction +
-This plugin is meant to make it easy to replace the background in portrait images and video. -It is using a neural network to predict the mask of the portrait and remove the background pixels. -It's easily composable with other OBS plugins to replace the background with e.g. an image or -a transparent color. +A plugin for [OBS Studio](https://obsproject.com/) that allows you to replace the background in portrait images and video, as well as enhance low-light scenes. -![](demo.gif) +

+ + ⬇️ Download & Install OBS Background Removal ⬇️ + +

-The models used for background detection are SINet: https://arxiv.org/abs/1911.09099 and MODNet: https://arxiv.org/pdf/2011.11961.pdf -The pre-trained model weights were taken from: -- https://github.com/anilsathyan7/Portrait-Segmentation/tree/master/SINet -- https://github.com/ZHKKKe/MODNet +Or, browse versions on [releases page](https://github.com/royshil/obs-backgroundremoval/releases). -Some more information about how I built it: https://www.morethantechnical.com/2021/04/15/obs-plugin-for-portrait-background-removal-with-onnx-sinet-model/ +> Not working? Please try [the Lite version (Live Background Removal Lite)](https://github.com/kaito-tokyo/live-backgroundremoval-lite) developed by one of us (Kaito Udagawa). -## Building +## Usage -The plugin was built and tested on Mac OSX, Windows and Ubuntu Linux. Help is appreciated in building on other OSs and formalizing the one-click installers. +
+ +
-### Prerequisites for building -- OpenCV v4.2+: https://github.com/opencv/opencv/ -- ONNXRuntime: https://github.com/microsoft/onnxruntime +Check out the [usage guide page](https://royshil.github.io/obs-backgroundremoval/usage/) for usage walkthrough and recommendations. -### Mac OSX +Additional tutorial videos: -#### Install dependencies +- [▶︎ Official guide to the Background Removal plugin for OBS Studio on YouTube](https://www.youtube.com/playlist?list=PLfd4SnaQQz_DVr_18OQozucYmiC56rRhy) +- Depth of Field effect: https://youtu.be/jC3EKSpNjQk +- Low-light enhancement: https://youtu.be/WSBLYWFrn2Q +- Remove background from ANY object (not just human): https://youtu.be/N74VCDCToX8 -You may use homebrew: -``` -$ brew install opencv onnxruntime -``` +## How to build on your system + +**Platforms we support building from source officially:** -Or - you may also build a (very minimal) version of OpenCV and ONNX Runtime for static-linking, instead of the homebrew ones: ``` -/build/ $ ../scripts/makeOpenCV_osx.sh -/build/ $ ../scripts/makeOnnxruntime_osx.sh +git clone https://github.com/royshil/obs-backgroundremoval.git +cd obs-backgroundremoval +sudo ./bin/bootstrap +./bin/setup +./bin/build +sudo dpkg -i release/obs-backgroundremoval-*-linux-gnu.deb ``` -Static linking should be more robust across versions of OSX, as well as building for 10.13. -#### Finding libobs +The supported platforms are: -If you install the desktop OBS app (https://obsproject.com/download) you already have the binaries -for libobs (e.g. `/Applications/OBS.app/Contents/Frameworks/libobs.0.dylib`) -But you don't have the headers - so clone the main obs repo e.g. `git clone --single-branch -b 27.0.1 git@github.com:obsproject/obs-studio.git` (match the version number to your OBS install. Right now on OSX it's 27.0.1) +- Debian Forky (x86_64 and arm64) -#### Build -``` -$ mkdir build && cd build -$ cmake .. -DobsLibPath=/Applications/OBS.app/Contents/Frameworks -DobsIncludePath=~/Downloads/obs-studio/libobs -$ cmake --build . --target dist -$ cpack -``` +We plan to add building scripts for popular platforms such as Windows, Mac, and various distributions of Linux. -#### Install -Unpack the package to the plugins directory of the system's Library folder (which is Apple's preffered way) -``` -$ unzip -o obs-backgroundremoval-macosx.zip -d "/Library/Application Support/obs-studio/plugins" -``` +## Introduction -or directly to your OBS install directory, e.g. -``` -$ unzip -o obs-backgroundremoval-macosx.zip -d /Applications/OBS.app/Contents/ -``` +This plugin is meant to make it easy to replace the background in portrait images and video. +It is using a neural network to predict the mask of the portrait and remove the background pixels. +It's easily composable with other OBS plugins to replace the background with e.g. an image or +a transparent color. -The first is recommended as it preserves the plugins over the parallel installation of OBS versions (i.e. running the latest productive version and a release candidate) whereas the latter will also remove the plugin if you decide to delete the OBS application. +If you like this work, which is given to you completely free of charge, please consider supporting it by sponsoring us on GitHub: -### Linux +- https://github.com/sponsors/royshil +- https://github.com/sponsors/umireon -#### Ubuntu -``` -$ apt install -y libobs-dev libopencv-dev language-pack-en wget git build-essential cmake -$ wget https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/onnxruntime-linux-x64-1.7.0.tgz -$ tar xzvf onnxruntime-linux-x64-1.7.0.tgz --strip-components=1 -C /usr/local/ --wildcards "*/include/*" "*/lib*/" -``` +### Support and Help -Then build and install: -``` -$ mkdir build && cd build -$ cmake .. && cmake --build . && cmake --install . -``` +Reach out to us on [GitHub Discussions](https://github.com/royshil/obs-backgroundremoval/discussions) or the [OBS Plugins forum](https://obsproject.com/forum/resources/background-removal-portrait-segmentation.1260/) for online / immediate help. -#### Archlinux -A `PKGBUILD` file is provided for making the plugin package -``` -$ cd scripts -$ makepkg -s -``` +If you found a bug or want to suggest a feature or improvement please open an [issue](https://github.com/royshil/obs-backgroundremoval/issues). -Building for Arch in Docker (host OS e.g. MacOSX): -``` -$ docker pull archlinux:latest -$ docker run -it -v $(pwd):/src archlinux:latest /bin/bash -# pacman -Sy --needed --noconfirm sudo fakeroot binutils gcc make -# useradd builduser -m -# passwd -d builduser -# printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers -# sudo -u builduser bash -c 'cd /src/scripts && makepkg -s' -``` +If you are looking for hands-on help or private consultation please select a [sponsorship tier](https://github.com/sponsors/royshil?frequency=one-time). -### Windows +### Technical Details -We will use static linking (as much as possible) to aviod having to lug around .DLLs with the plugin. +GPU support: -#### Install Prerequisites -Install OpenCV via `vcpkg`: -``` -$ mkdir build -$ cd build -$ git clone https://github.com/microsoft/vcpkg -$ cd vcpkg -$ .\bootstrap-vcpkg.bat -$ .\vcpkg.exe install opencv[core]:x64-windows-static -``` +- On Windows, we plan to support WinML acceleration. +- On Mac we support CoreML for acceleration, which is efficient on Apple Silicon. **Note:** This plugin does not support cross-architecture translation (Rosetta2). Intel binaries on Apple Silicon or Apple Silicon binaries on Intel will crash. +- On Linux CUDA, ROCM (deprecated in ONNX Runtime 1.23.0), and MIGraphX are supported if this plugin is built from source. Ensure your ONNX Runtime installation has CUDA, ROCM, or MIGraphX support. For AMD GPUs, MIGraphX is recommended as ROCM was removed from ONNX Runtime starting with version 1.23.0. +- The goal of this plugin is to be available for everyone on every system, even if they don't own a GPU. -Install Onnxruntime with NuGet: -``` -$ cd build -$ mkdir nuget -$ Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -UseBasicParsing -OutFile nuget.exe -$ nuget.exe install Microsoft.ML.OnnxRuntime.DirectML -``` +Number of CPU threads is controllable through the UI settings. A 2-thread setting works best. -Clone the OBS repo, `Downloads\ $ git clone --single-branch -b 27.0.1 git@github.com:obsproject/obs-studio.git`, to e.g. Downloads. +The pretrained model weights used for portrait foreground segmentation are taken from: -#### Build and install the plugin -``` -$ cmake .. -DobsPath="$HOME\Downloads\obs-studio\" -$ cmake --build . --config Release -$ cpack -$ Expand-Archive .\obs-backgroundremoval-win64.zip -DestinationPath 'C:\Program Files\obs-studio\' -Force -``` +- https://github.com/anilsathyan7/Portrait-Segmentation/tree/master/SINet +- https://github.com/PaddlePaddle/PaddleSeg/tree/release/2.7/contrib/PP-HumanSeg +- https://github.com/PINTO0309/PINTO_model_zoo/tree/main/082_MediaPipe_Meet_Segmentation +- https://github.com/PeterL1n/RobustVideoMatting +- https://github.com/PINTO0309/PINTO_model_zoo/tree/main/384_TCMonoDepth and https://github.com/yu-li/TCMonoDepth + +Image enhancement (low light) models are taken from: + +- https://github.com/PINTO0309/PINTO_model_zoo/tree/main/213_TBEFN +- https://github.com/PINTO0309/PINTO_model_zoo/tree/main/372_URetinex-Net +- https://github.com/PINTO0309/PINTO_model_zoo/tree/main/370_Semantic-Guided-Low-Light-Image-Enhancement + +Some more information about how I built it: https://www.morethantechnical.com/2021/04/15/obs-plugin-for-portrait-background-removal-with-onnx-sinet-model/ and https://www.morethantechnical.com/2023/05/20/building-an-obs-background-removal-plugin-a-walkthrough/ + +### Code Walkthrough + +This video on YouTube will take you through the major parts of the code and explain them. + + + + + + + Star History Chart + + +--- + +> SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +> SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +> +> SPDX-License-Identifier: GPL-3.0-or-later diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 00000000..12b12777 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,52 @@ +version = 1 + +# Configuration files +[[annotations]] +path = "VERSION" +SPDX-FileCopyrightText = [ + "2021-2026 Roy Shilkrot ", + "2023-2026 Kaito Udagawa ", +] +SPDX-License-Identifier = "CC0-1.0" + +[[annotations]] +path = [ + ".gitattributes", + ".github/actions/setup-ccache/SHA256SUMS-*.txt", + ".github/agents/agentic-workflows.agent.md", + ".github/aw/actions-lock.json", + ".github/dependabot.yml", + ".github/pull_request_template.md", + ".github/workflows/*.lock.yml", + ".gitignore", + ".python-version", + "buildspec.json", + "CMakePresets.json", + "data/config.json", + "data/manifest.json", + "requirements-build.txt", + "scripts/windows/*", + "src/exported_symbols_linux.map", + "src/exported_symbols_macos.txt", + "src/exported_symbols_windows.def", + "vcpkg-configuration.json", + "vcpkg.json", + "vcpkg-configuration.json", +] +SPDX-FileCopyrightText = [ + "2018-2026 OBS Project and its contributors", + "2021-2026 Roy Shilkrot ", + "2023-2026 Kaito Udagawa ", +] +SPDX-License-Identifier = "CC0-1.0" + +# Locale files (reuse tool has some bug around reading not-ASCII files) +[[annotations]] +path = [ + "data/locale/*.ini" +] +SPDX-FileCopyrightText = [ + "2021-2026 Roy Shilkrot ", + "2023-2026 Kaito Udagawa ", +] +SPDX-License-Identifier = "CC0-1.0" diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..e21e727f --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.4.0 \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 1cab565e..00000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,166 +0,0 @@ -variables: - macosSignAndNotarize: false - isReleaseMode: ${{ and(eq(variables['isReleaseMode'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }} - -trigger: - branches: - include: - - master - tags: - include: - - '*' - -jobs: -- job: 'Build_Windows' - pool: - vmImage: 'windows-2019' - variables: - build_config: RelWithDebInfo - DepsBasePath: 'D:\obsdependencies' - DepsPath32: '$(DepsBasePath)\win32' - DepsPath64: '$(DepsBasePath)\win64' - QtBaseDir: 'D:\QtDep' - QTDIR32: '$(QtBaseDir)\5.10.1\msvc2017' - QTDIR64: '$(QtBaseDir)\5.10.1\msvc2017_64' - OBSPath: 'D:\obs-studio' - steps: - - checkout: self - submodules: true - - - script: ./ci/windows/install-qt-win.cmd - displayName: 'Install Qt' - env: - QtBaseDir: $(QtBaseDir) - - - task: Cache@2 - displayName: Restore cached OBS Studio dependencies - inputs: - key: 'obsdeps | "$(Agent.OS)"' - restoreKeys: | - obsdeps | "$(Agent.OS)" - path: $(DepsBasePath) - - - script: ./ci/windows/download-obs-deps.cmd - displayName: 'Download OBS Studio dependencies' - - - task: Cache@2 - displayName: Restore cached OBS Studio builds - inputs: - key: 'obs | "$(Agent.OS)"' - restoreKeys: | - obs | "$(Agent.OS)" - path: $(OBSPath) - - - script: ./ci/windows/prepare-obs-windows.cmd - displayName: 'Checkout & CMake OBS Studio' - env: - build_config: $(build_config) - DepsPath32: $(DepsPath32) - DepsPath64: $(DepsPath64) - QTDIR32: $(QTDIR32) - QTDIR64: $(QTDIR64) - OBSPath: $(OBSPath) - - - task: MSBuild@1 - displayName: 'Build OBS Studio 32-bit' - inputs: - msbuildArguments: '/m /p:Configuration=$(build_config)' - solution: '$(OBSPath)\build32\obs-studio.sln' - - - task: MSBuild@1 - displayName: 'Build OBS Studio 64-bit' - inputs: - msbuildArguments: '/m /p:Configuration=$(build_config)' - solution: '$(OBSPath)\build64\obs-studio.sln' - - - script: ./ci/windows/prepare-windows.cmd - displayName: 'CMake Plugin' - env: - build_config: $(build_config) - QTDIR32: $(QTDIR32) - QTDIR64: $(QTDIR64) - OBSPath: $(OBSPath) - - - task: MSBuild@1 - displayName: 'Build Plugin 32-bit' - inputs: - msbuildArguments: '/m /p:Configuration=$(build_config)' - solution: '.\build32\main.sln' - - - task: MSBuild@1 - displayName: 'Build Plugin 64-bit' - inputs: - msbuildArguments: '/m /p:Configuration=$(build_config)' - solution: '.\build64\main.sln' - - - script: ./ci/windows/package-windows.cmd - displayName: 'Package Plugin' - - - task: PublishBuildArtifacts@1 - displayName: 'Upload package artifacts' - inputs: - pathtoPublish: './package' - artifactName: 'windows_build' - -- job: 'Build_Linux' - pool: - vmImage: 'ubuntu-18.04' - variables: - BUILD_REASON: $(Build.Reason) - BRANCH_SHORT_NAME: $(Build.SourceBranchName) - BRANCH_FULL_NAME: $(Build.SourceBranch) - steps: - - checkout: self - submodules: true - - - script: ./ci/linux/install-dependencies-ubuntu.sh - displayName: 'Install dependencies' - - - script: ./ci/linux/build-ubuntu.sh - displayName: 'Build Plugin' - - - script: ./ci/linux/package-ubuntu.sh - displayName: 'Package Plugin' - - - task: PublishBuildArtifacts@1 - inputs: - pathtoPublish: './package' - artifactName: 'deb_build' - -- job: 'Build_macOS' - pool: - vmImage: 'macos-10.14' - steps: - - checkout: self - submodules: true - - - script: ./ci/macos/install-dependencies-macos.sh - displayName: 'Install dependencies' - - - script: ./ci/macos/install-build-obs-macos.sh - displayName: 'Build OBS' - - - script: ./ci/macos/build-macos.sh - displayName: 'Build Plugin' - - - task: InstallAppleCertificate@1 - displayName: 'Install release signing certificates' - condition: eq(variables['isReleaseMode'], true) - inputs: - certSecureFile: 'Certificates.p12' - certPwd: $(secrets.macOS.certificatesImportPassword) - - - script: ./ci/macos/package-macos.sh - displayName: 'Package Plugin' - env: - RELEASE_MODE: $(isReleaseMode) - CODE_SIGNING_IDENTITY: $(secrets.macOS.codeSigningIdentity) - INSTALLER_SIGNING_IDENTITY: $(secrets.macOS.installerSigningIdentity) - AC_USERNAME: $(secrets.macOS.notarization.username) - AC_PASSWORD: $(secrets.macOS.notarization.password) - AC_PROVIDER_SHORTNAME: $(secrets.macOS.notarization.providerShortName) - - - task: PublishBuildArtifacts@1 - inputs: - pathtoPublish: './release' - artifactName: 'macos_build' diff --git a/bin/bootstrap b/bin/bootstrap new file mode 100755 index 00000000..3da0cc21 --- /dev/null +++ b/bin/bootstrap @@ -0,0 +1,93 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +set -euo pipefail +shopt -s nullglob + +debian_forky() { + apt-get update + apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + cmake \ + curl \ + file \ + git \ + libcurl4-openssl-dev \ + libobs-dev \ + libonnxruntime-dev \ + libopencv-dev \ + ninja-build \ + tar \ + unzip \ + zip +} + +ubuntu_resolute() { + apt-get update + apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + cmake \ + curl \ + file \ + git \ + libcurl4-openssl-dev \ + libobs-dev \ + libonnxruntime-dev \ + libopencv-dev \ + ninja-build \ + tar \ + unzip \ + zip +} + +macos() { + brew install ccache python@3.13 xcbeautify +} + +case "$(uname -s)" in +Darwin) + macos + exit 0 + ;; +*) + if [ -f /etc/os-release ]; then + # shellcheck disable=SC1091 + . /etc/os-release + + case "$ID" in + debian) + case "$VERSION_CODENAME" in + forky) + debian_forky + exit 0 + ;; + *) + printf 'ERROR: Debian %s is not supported.\n' "$VERSION_CODENAME" >&2 + exit 1 + ;; + esac + ;; + ubuntu) + case "$VERSION_CODENAME" in + resolute) + ubuntu_resolute + exit 0 + ;; + *) + printf 'ERROR: Ubuntu %s is not supported.\n' "$VERSION_CODENAME" >&2 + exit 1 + ;; + esac + ;; + esac + fi + ;; +esac + +printf 'ERROR: Your platform is not supported. Exiting...' >&2 +exit 1 diff --git a/bin/build b/bin/build new file mode 100755 index 00000000..7544d071 --- /dev/null +++ b/bin/build @@ -0,0 +1,175 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +set -euo pipefail +shopt -s nullglob + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +: "${PLUGIN_BUILD_DIR:=$ROOT_DIR}" +: "${PLUGIN_CONFIG:=RelWithDebInfo}" + +export PLUGIN_BUILD_DIR + +# shellcheck disable=SC2120 +xcbeautify() { if command -v xcbeautify >/dev/null 2>&1; then command xcbeautify "$@"; else cat; fi; } + +debian_forky() { + cmake -G Ninja -S "$ROOT_DIR" -B "$PLUGIN_BUILD_DIR/build_plugin" + + cmake --build "$PLUGIN_BUILD_DIR/build_plugin" + + (cd "$PLUGIN_BUILD_DIR/build_plugin" && cpack -G DEB) + + . "$PLUGIN_BUILD_DIR/build_plugin/cmake_export.sh" + + printf 'Run the following command to install the plugin:\n' + printf ' sudo dpkg -i %s\n' "$ROOT_DIR/release/${PLUGIN_NAME}_*.deb" +} + +ubuntu_resolute() { + cmake -G Ninja -S "$ROOT_DIR" -B "$PLUGIN_BUILD_DIR/build_plugin" + + cmake --build "$PLUGIN_BUILD_DIR/build_plugin" + + (cd "$PLUGIN_BUILD_DIR/build_plugin" && cpack -G DEB) + + . "$PLUGIN_BUILD_DIR/build_plugin/cmake_export.sh" + + printf 'Run the following command to install the plugin:\n' + printf ' sudo dpkg -i %s\n' "$ROOT_DIR/release/${PLUGIN_NAME}_*.deb" +} + +macos() { + : "${VCPKG_ROOT:=$PLUGIN_BUILD_DIR/vcpkg}" + + if [[ -z "${VCPKG_BINARY_SOURCES:-}" ]]; then + VCPKG_BINARY_SOURCES="clear;files,$PLUGIN_BUILD_DIR/.vcpkg_archives,readwrite;http,https://vcpkg-obs.kaito.tokyo/{name}/{version}/{sha},read" + fi + + CMAKE_EXE="$(PATH="/usr/bin:/bin:/usr/sbin:/sbin" "$VCPKG_ROOT/vcpkg" fetch cmake | tail -n1)" + NINJA_EXE="$(PATH="/usr/bin:/bin:/usr/sbin:/sbin" "$VCPKG_ROOT/vcpkg" fetch ninja | tail -n1)" + + CCACHE_EXE="$(command -v ccache)" + + build_obs_macos() { + env -i \ + DEVELOPER_DIR="$(xcode-select --print-path)" \ + HOME="$HOME" \ + PATH="${CMAKE_EXE%/*}:/usr/bin:/bin:/usr/sbin:/sbin" \ + PLUGIN_BUILD_DIR="$PLUGIN_BUILD_DIR" \ + "$ROOT_DIR/scripts/build_obs_macos.sh" "$@" + } + + build_obs_macos configure_obs + build_obs_macos build_obs Debug | xcbeautify + build_obs_macos build_obs Release | xcbeautify + build_obs_macos install_obs Debug + build_obs_macos install_obs Release + + vcpkg_install() { + env -i \ + DEVELOPER_DIR="$(xcode-select --print-path)" \ + HOME="$HOME" \ + PATH="/usr/bin:/bin:/usr/sbin:/sbin" \ + PLUGIN_BUILD_DIR="$PLUGIN_BUILD_DIR" \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + "$VCPKG_ROOT/vcpkg" install "$@" + } + + vcpkg_install --triplet=arm64-osx-obs --x-install-root="$PLUGIN_BUILD_DIR/vcpkg_installed_arm64" + vcpkg_install --triplet=x64-osx-obs --x-install-root="$PLUGIN_BUILD_DIR/vcpkg_installed_x64" + + "$ROOT_DIR/scripts/lipo_vcpkg_macos.sh" \ + "$PLUGIN_BUILD_DIR/vcpkg_installed/universal-osx-obs" \ + "$PLUGIN_BUILD_DIR/vcpkg_installed_arm64/arm64-osx-obs" \ + "$PLUGIN_BUILD_DIR/vcpkg_installed_x64/x64-osx-obs" + + build_onnxruntime_macos() { + env -i \ + CCACHE_DIR="$PLUGIN_BUILD_DIR/.ccache_ort" \ + CCACHE_SLOPPINESS='include_file_mtime,time_macros' \ + DEVELOPER_DIR="$(xcode-select --print-path)" \ + HOME="$HOME" \ + PATH="${CMAKE_EXE%/*}:${NINJA_EXE%/*}:${CCACHE_EXE%/*}:/usr/bin:/bin:/usr/sbin:/sbin" \ + PLUGIN_BUILD_DIR="$PLUGIN_BUILD_DIR" \ + PYTHON="$PLUGIN_BUILD_DIR/.venv/bin/python" \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + "$ROOT_DIR/scripts/build_onnxruntime_macos.sh" "$@" + } + + CCACHE_DIR="$PLUGIN_BUILD_DIR/.ccache_ort" "$CCACHE_EXE" --zero-stats + + build_onnxruntime_macos build_py arm64 --update + build_onnxruntime_macos build_py x86_64 --update + build_onnxruntime_macos build_py arm64 --build | xcbeautify + build_onnxruntime_macos build_py x86_64 --build | xcbeautify + build_onnxruntime_macos install_onnxruntime + + CCACHE_DIR="$PLUGIN_BUILD_DIR/.ccache_ort" "$CCACHE_EXE" --show-stats + + plugin_cmake() { + env -i \ + DEVELOPER_DIR="$(xcode-select --print-path)" \ + HOME="$HOME" \ + PATH="/usr/bin:/bin:/usr/sbin:/sbin" \ + PLUGIN_BUILD_DIR="$PLUGIN_BUILD_DIR" \ + PYTHON="$PLUGIN_BUILD_DIR/.venv/bin/python" \ + VCPKG_BINARY_SOURCES="$VCPKG_BINARY_SOURCES" \ + "$CMAKE_EXE" "$@" + } + + plugin_cmake -G Xcode -S "$ROOT_DIR" -B "$PLUGIN_BUILD_DIR/build_plugin" + + plugin_cmake --build "$PLUGIN_BUILD_DIR/build_plugin" --config "$PLUGIN_CONFIG" | xcbeautify + + . "$PLUGIN_BUILD_DIR/build_plugin/cmake_export.sh" + + printf 'Run the following command to install the plugin:\n' + printf ' cmake --install "%s" --config "%s" --prefix ~\n' "$PLUGIN_BUILD_DIR/build_plugin" "$PLUGIN_CONFIG" +} + +case "$(uname -s)" in +Darwin) + macos + exit 0 + ;; +*) + if [ -f /etc/os-release ]; then + # shellcheck disable=SC1091 + . /etc/os-release + + case "$ID" in + debian) + case "$VERSION_CODENAME" in + forky) + debian_forky + exit 0 + ;; + *) + printf 'ERROR: Debian %s is not supported.\n' "$VERSION_CODENAME" >&2 + exit 1 + ;; + esac + ;; + ubuntu) + case "$VERSION_CODENAME" in + resolute) + ubuntu_resolute + exit 0 + ;; + *) + printf 'ERROR: Ubuntu %s is not supported.\n' "$VERSION_CODENAME" >&2 + exit 1 + ;; + esac + ;; + esac + fi + ;; +esac + +printf 'ERROR: Your platform is not supported. Exiting...' >&2 +exit 1 diff --git a/bin/setup b/bin/setup new file mode 100755 index 00000000..ee7c998f --- /dev/null +++ b/bin/setup @@ -0,0 +1,105 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +set -euo pipefail +shopt -s nullglob + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +: "${PLUGIN_BUILD_DIR:="$ROOT_DIR"}" + +export PLUGIN_BUILD_DIR + +. "$ROOT_DIR/buildspec.props" + +debian_forky() { + printf 'INFO: No operation required for setup on Debian Forky.\n' +} + +ubuntu_resolute() { + printf 'INFO: No operation required for setup on Ubuntu Resolute.\n' +} + +macos() { + local PYTHON MINIMAL_PATH + + : "${PYTHON:=python3.13}" + MINIMAL_PATH=/usr/bin:/bin:/usr/sbin:/sbin + + "$ROOT_DIR/scripts/build_onnxruntime_macos.sh" clone_onnxruntime + + "$ROOT_DIR/scripts/build_obs_macos.sh" download_prebuilt + "$ROOT_DIR/scripts/build_obs_macos.sh" download_qt6 + "$ROOT_DIR/scripts/build_obs_macos.sh" clone_obs + + if [[ -n "${VCPKG_ROOT:-}" ]]; then + printf 'Using VCPKG_ROOT=%s.\n' "$VCPKG_ROOT" >&2 + else + VCPKG_ROOT="$PLUGIN_BUILD_DIR/vcpkg" + + if ! [[ -d "$VCPKG_ROOT" ]]; then + printf 'VCPKG_ROOT missing. Cloning vcpkg on %s...\n' "$VCPKG_ROOT" >&2 + git clone --filter blob:none --branch "$vcpkg_git_tag" https://github.com/microsoft/vcpkg.git "$VCPKG_ROOT" + fi + + if ! [[ -e "$VCPKG_ROOT/vcpkg" ]]; then + "$VCPKG_ROOT/bootstrap-vcpkg.sh" + fi + fi + + PATH="$MINIMAL_PATH" "$VCPKG_ROOT/vcpkg" fetch cmake + PATH="$MINIMAL_PATH" "$VCPKG_ROOT/vcpkg" fetch ninja + + local venv_dir="$PLUGIN_BUILD_DIR/.venv" + + if ! [[ -d "$venv_dir" ]]; then + "$PYTHON" -m venv "$venv_dir" + fi + + "$venv_dir/bin/pip" install -r "$ROOT_DIR/requirements-build.txt" +} + +case "$(uname -s)" in +Darwin) + macos + exit 0 + ;; +*) + if [ -f /etc/os-release ]; then + # shellcheck disable=SC1091 + . /etc/os-release + + case "$ID" in + debian) + case "$VERSION_CODENAME" in + forky) + debian_forky + exit 0 + ;; + *) + printf 'ERROR: Debian %s is not supported.\n' "$VERSION_CODENAME" >&2 + exit 1 + ;; + esac + ;; + ubuntu) + case "$VERSION_CODENAME" in + resolute) + ubuntu_resolute + exit 0 + ;; + *) + printf 'ERROR: Ubuntu %s is not supported.\n' "$VERSION_CODENAME" >&2 + exit 1 + ;; + esac + ;; + esac + fi + ;; +esac + +printf 'ERROR: Your platform is not supported. Exiting...' >&2 +exit 1 diff --git a/buildspec.json b/buildspec.json new file mode 100644 index 00000000..98b0c26f --- /dev/null +++ b/buildspec.json @@ -0,0 +1,45 @@ +{ + "dependencies": { + "obs-studio": { + "version": "31.1.1", + "baseUrl": "https://github.com/obsproject/obs-studio/archive/refs/tags", + "label": "OBS sources", + "hashes": { + "macos": "39751f067bacc13d44b116c5138491b5f1391f91516d3d590d874edd21292291", + "windows-x64": "2c8427c10b55ac6d68008df2e9a3e82f4647aaad18f105e30d4713c2de678ccf" + } + }, + "prebuilt": { + "version": "2025-07-11", + "baseUrl": "https://github.com/obsproject/obs-deps/releases/download", + "label": "Pre-Built obs-deps", + "hashes": { + "macos": "495687e63383d1a287684b6e2e9bfe246bb8f156fe265926afb1a325af1edd2a", + "windows-x64": "c8c642c1070dc31ce9a0f1e4cef5bb992f4bff4882255788b5da12129e85caa7" + } + }, + "qt6": { + "version": "2025-07-11", + "baseUrl": "https://github.com/obsproject/obs-deps/releases/download", + "label": "Pre-Built Qt6", + "hashes": { + "macos": "d3f5f04b6ea486e032530bdf0187cbda9a54e0a49621a4c8ba984c5023998867", + "windows-x64": "0e76bf0555dd5382838850b748d3dcfab44a1e1058441309ab54e1a65b156d0a" + }, + "debugSymbols": { + "windows-x64": "11b7be92cf66a273299b8f3515c07a5cfb61614b59a4e67f7fc5ecba5e2bdf21" + } + } + }, + "platformConfig": { + "macos": { + "bundleId": "com.royshilkrot.obs-backgroundremoval" + } + }, + "name": "obs-backgroundremoval", + "displayName": "OBS Background Removal", + "version": "1.4.0", + "author": "Roy Shilkrot", + "website": "https://royshil.github.io/obs-backgroundremoval/", + "email": "roy.shil@gmail.com" +} diff --git a/buildspec.props b/buildspec.props new file mode 100644 index 00000000..aae89284 --- /dev/null +++ b/buildspec.props @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +obs_studio_git_tag=31.1.1 + +prebuilt_windows_x64_url=https://github.com/obsproject/obs-deps/releases/download/2025-07-11/windows-deps-2025-07-11-x64.zip +prebuilt_windows_x64_sha256=c8c642c1070dc31ce9a0f1e4cef5bb992f4bff4882255788b5da12129e85caa7 + +prebuilt_macos_url=https://github.com/obsproject/obs-deps/releases/download/2025-07-11/macos-deps-2025-07-11-universal.tar.xz +prebuilt_macos_sha256=495687e63383d1a287684b6e2e9bfe246bb8f156fe265926afb1a325af1edd2a + +qt6_windows_x64_url=https://github.com/obsproject/obs-deps/releases/download/2025-07-11/windows-deps-qt6-2025-07-11-x64.zip +qt6_windows_x64_sha256=0e76bf0555dd5382838850b748d3dcfab44a1e1058441309ab54e1a65b156d0a + +qt6_macos_url=https://github.com/obsproject/obs-deps/releases/download/2025-07-11/macos-deps-qt6-2025-07-11-universal.tar.xz +qt6_macos_sha256=d3f5f04b6ea486e032530bdf0187cbda9a54e0a49621a4c8ba984c5023998867 + +vcpkg_git_tag=2026.04.27 +onnxruntime_git_tag=v1.23.2 diff --git a/ci/ci_includes.cmd.in b/ci/ci_includes.cmd.in deleted file mode 100644 index e347729e..00000000 --- a/ci/ci_includes.cmd.in +++ /dev/null @@ -1,2 +0,0 @@ -set PluginName=@CMAKE_PROJECT_NAME@ -set PluginVersion=@CMAKE_PROJECT_VERSION@ diff --git a/ci/ci_includes.sh.in b/ci/ci_includes.sh.in deleted file mode 100644 index 306b9415..00000000 --- a/ci/ci_includes.sh.in +++ /dev/null @@ -1,4 +0,0 @@ -PLUGIN_NAME="@CMAKE_PROJECT_NAME@" -PLUGIN_VERSION="@CMAKE_PROJECT_VERSION@" -MACOS_BUNDLEID="@MACOS_BUNDLEID@" -LINUX_MAINTAINER_EMAIL="@LINUX_MAINTAINER_EMAIL@" \ No newline at end of file diff --git a/ci/linux/build-ubuntu.sh b/ci/linux/build-ubuntu.sh deleted file mode 100755 index b19158ae..00000000 --- a/ci/linux/build-ubuntu.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -ex - -mkdir build && cd build -cmake -DCMAKE_INSTALL_PREFIX=/usr .. -make -j4 diff --git a/ci/linux/install-dependencies-ubuntu.sh b/ci/linux/install-dependencies-ubuntu.sh deleted file mode 100755 index d0e16f53..00000000 --- a/ci/linux/install-dependencies-ubuntu.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -set -ex - -sudo add-apt-repository -y ppa:obsproject/obs-studio -sudo apt-get -qq update - -sudo apt-get install -y \ - libc-dev-bin \ - libc6-dev git \ - build-essential \ - checkinstall \ - cmake \ - obs-studio \ - qtbase5-dev - -# Dirty hack -sudo wget -O /usr/include/obs/obs-frontend-api.h https://raw.githubusercontent.com/obsproject/obs-studio/25.0.0/UI/obs-frontend-api/obs-frontend-api.h - -sudo ldconfig diff --git a/ci/linux/package-ubuntu.sh b/ci/linux/package-ubuntu.sh deleted file mode 100755 index d45ef155..00000000 --- a/ci/linux/package-ubuntu.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -set -e - -script_dir=$(dirname "$0") -source "$script_dir/../ci_includes.generated.sh" - -export GIT_HASH=$(git rev-parse --short HEAD) -export PKG_VERSION="1-$GIT_HASH-$BRANCH_SHORT_NAME-git" - -if [[ "$BRANCH_FULL_NAME" =~ "^refs/tags/" ]]; then - export PKG_VERSION="$BRANCH_SHORT_NAME" -fi - -cd ./build - -PAGER="cat" sudo checkinstall -y --type=debian --fstrans=no --nodoc \ - --backup=no --deldoc=yes --install=no \ - --pkgname="$PLUGIN_NAME" --pkgversion="$PKG_VERSION" \ - --pkglicense="GPLv2.0" --maintainer="$LINUX_MAINTAINER_EMAIL" \ - --pkggroup="video" \ - --requires="obs-studio \(\>= 25.0.7\), libqt5core5a, libqt5widgets5, qt5-image-formats-plugins" \ - --pakdir="../package" - -sudo chmod ao+r ../package/* diff --git a/ci/macos/build-macos.sh b/ci/macos/build-macos.sh deleted file mode 100755 index 07e87f88..00000000 --- a/ci/macos/build-macos.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -OSTYPE=$(uname) - -if [ "${OSTYPE}" != "Darwin" ]; then - echo "[Error] macOS build script can be run on Darwin-type OS only." - exit 1 -fi - -HAS_CMAKE=$(type cmake 2>/dev/null) - -if [ "${HAS_CMAKE}" = "" ]; then - echo "[Error] CMake not installed - please run 'install-dependencies-macos.sh' first." - exit 1 -fi - -#export QT_PREFIX="$(find /usr/local/Cellar/qt5 -d 1 | tail -n 1)" - -echo "=> Building plugin for macOS." -mkdir -p build && cd build -cmake .. \ - -DQTDIR=/usr/local/opt/qt \ - -DLIBOBS_INCLUDE_DIR=../../obs-studio/libobs \ - -DLIBOBS_LIB=../../obs-studio/libobs \ - -DOBS_FRONTEND_LIB="$(pwd)/../../obs-studio/build/UI/obs-frontend-api/libobs-frontend-api.dylib" \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX=/usr \ -&& make -j4 diff --git a/ci/macos/install-build-obs-macos.sh b/ci/macos/install-build-obs-macos.sh deleted file mode 100755 index d5f02ea7..00000000 --- a/ci/macos/install-build-obs-macos.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -OSTYPE=$(uname) - -if [ "${OSTYPE}" != "Darwin" ]; then - echo "[Error] macOS obs-studio build script can be run on Darwin-type OS only." - exit 1 -fi - -HAS_CMAKE=$(type cmake 2>/dev/null) -HAS_GIT=$(type git 2>/dev/null) - -if [ "${HAS_CMAKE}" = "" ]; then - echo "[Error] CMake not installed - please run 'install-dependencies-macos.sh' first." - exit 1 -fi - -if [ "${HAS_GIT}" = "" ]; then - echo "[Error] Git not installed - please install Xcode developer tools or via Homebrew." - exit 1 -fi - -echo "=> Downloading and unpacking OBS dependencies" -wget --quiet --retry-connrefused --waitretry=1 https://obs-nightly.s3.amazonaws.com/osx-deps-2018-08-09.tar.gz -tar -xf ./osx-deps-2018-08-09.tar.gz -C /tmp - -# Build obs-studio -cd .. -echo "=> Cloning obs-studio from GitHub.." -git clone https://github.com/obsproject/obs-studio -cd obs-studio -OBSLatestTag=$(git describe --tags --abbrev=0) -git checkout $OBSLatestTag -mkdir build && cd build -echo "=> Building obs-studio.." -cmake .. \ - -DBUILD_CAPTIONS=true \ - -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 \ - -DDISABLE_PLUGINS=true \ - -DENABLE_SCRIPTING=0 \ - -DDepsPath=/tmp/obsdeps \ - -DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake \ -&& make -j4 diff --git a/ci/macos/install-dependencies-macos.sh b/ci/macos/install-dependencies-macos.sh deleted file mode 100755 index b9ff3477..00000000 --- a/ci/macos/install-dependencies-macos.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - - - -OSTYPE=$(uname) - -if [ "${OSTYPE}" != "Darwin" ]; then - echo "[Error] macOS install dependencies script can be run on Darwin-type OS only." - exit 1 -fi - -HAS_BREW=$(type brew 2>/dev/null) - -if [ "${HAS_BREW}" = "" ]; then - echo "[Error] Please install Homebrew (https://www.brew.sh/) to build this plugin on macOS." - exit 1 -fi - -# OBS Studio deps -echo "=> Updating Homebrew.." -brew update >/dev/null - -echo "[=> Checking installed Homebrew formulas.." -BREW_PACKAGES=$(brew list) -BREW_DEPENDENCIES="jack speexdsp ccache swig mbedtls" - -for DEPENDENCY in ${BREW_DEPENDENCIES}; do - if echo "${BREW_PACKAGES}" | grep -q "^${DEPENDENCY}\$"; then - echo "=> Upgrading OBS-Studio dependency '${DEPENDENCY}'.." - brew upgrade ${DEPENDENCY} 2>/dev/null - else - echo "=> Installing OBS-Studio dependency '${DEPENDENCY}'.." - brew install ${DEPENDENCY} 2>/dev/null - fi -done - -# qtwebsockets deps -echo "=> Installing plugin dependency 'QT 5.10.1'.." -# =!= NOTICE =!= -# When building QT5 from sources on macOS 10.13+, use local qt5 formula: -# brew install ./CI/macos/qt.rb -# Pouring from the bottle is much quicker though, so use bottle for now. -# =!= NOTICE =!= - -brew install https://gist.githubusercontent.com/DDRBoxman/b3956fab6073335a4bf151db0dcbd4ad/raw/ed1342a8a86793ea8c10d8b4d712a654da121ace/qt.rb - -# Pin this version of QT5 to avoid `brew upgrade` -# upgrading it to incompatible version -brew pin qt - -# Fetch and install Packages app -# =!= NOTICE =!= -# Installs a LaunchDaemon under /Library/LaunchDaemons/fr.whitebox.packages.build.dispatcher.plist -# =!= NOTICE =!= - -HAS_PACKAGES=$(type packagesbuild 2>/dev/null) - -if [ "${HAS_PACKAGES}" = "" ]; then - echo "=> Installing Packaging app (might require password due to 'sudo').." - curl -o './Packages.pkg' --retry-connrefused -s --retry-delay 1 'https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg' - sudo installer -pkg ./Packages.pkg -target / -fi diff --git a/ci/macos/package-macos.sh b/ci/macos/package-macos.sh deleted file mode 100755 index 14343b25..00000000 --- a/ci/macos/package-macos.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/bash - -set -e - -script_dir=$(dirname "$0") -source "$script_dir/../ci_includes.generated.sh" - -OSTYPE=$(uname) - -if [ "${OSTYPE}" != "Darwin" ]; then - echo "[Error] macOS package script can be run on Darwin-type OS only." - exit 1 -fi - -echo "=> Preparing package build" -export QT_CELLAR_PREFIX="$(/usr/bin/find /usr/local/Cellar/qt -d 1 | sort -t '.' -k 1,1n -k 2,2n -k 3,3n | tail -n 1)" - -GIT_HASH=$(git rev-parse --short HEAD) -GIT_BRANCH_OR_TAG=$(git name-rev --name-only HEAD | awk -F/ '{print $NF}') - -PKG_VERSION="$GIT_HASH-$GIT_BRANCH_OR_TAG" - -FILENAME_UNSIGNED="$PLUGIN_NAME-$PKG_VERSION-Unsigned.pkg" -FILENAME="$PLUGIN_NAME-$PKG_VERSION.pkg" - -echo "=> Modifying $PLUGIN_NAME.so" -install_name_tool \ - -change /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets \ - @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets \ - -change /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui \ - @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui \ - -change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore \ - @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \ - ./build/$PLUGIN_NAME.so - -# Check if replacement worked -echo "=> Dependencies for $PLUGIN_NAME" -otool -L ./build/$PLUGIN_NAME.so - -if [[ "$RELEASE_MODE" == "True" ]]; then - echo "=> Signing plugin binary: $PLUGIN_NAME.so" - codesign --sign "$CODE_SIGNING_IDENTITY" ./build/$PLUGIN_NAME.so -else - echo "=> Skipped plugin codesigning" -fi - -echo "=> Actual package build" -packagesbuild ./installer/installer-macOS.generated.pkgproj - -echo "=> Renaming $PLUGIN_NAME.pkg to $FILENAME" -mv ./release/$PLUGIN_NAME.pkg ./release/$FILENAME_UNSIGNED - -if [[ "$RELEASE_MODE" == "True" ]]; then - echo "=> Signing installer: $FILENAME" - productsign \ - --sign "$INSTALLER_SIGNING_IDENTITY" \ - ./release/$FILENAME_UNSIGNED \ - ./release/$FILENAME - rm ./release/$FILENAME_UNSIGNED - - echo "=> Submitting installer $FILENAME for notarization" - zip -r ./release/$FILENAME.zip ./release/$FILENAME - UPLOAD_RESULT=$(xcrun altool \ - --notarize-app \ - --primary-bundle-id "$MACOS_BUNDLEID" \ - --username "$AC_USERNAME" \ - --password "$AC_PASSWORD" \ - --asc-provider "$AC_PROVIDER_SHORTNAME" \ - --file "./release/$FILENAME.zip") - rm ./release/$FILENAME.zip - - REQUEST_UUID=$(echo $UPLOAD_RESULT | awk -F ' = ' '/RequestUUID/ {print $2}') - echo "Request UUID: $REQUEST_UUID" - - echo "=> Wait for notarization result" - # Pieces of code borrowed from rednoah/notarized-app - while sleep 30 && date; do - CHECK_RESULT=$(xcrun altool \ - --notarization-info "$REQUEST_UUID" \ - --username "$AC_USERNAME" \ - --password "$AC_PASSWORD" \ - --asc-provider "$AC_PROVIDER_SHORTNAME") - echo $CHECK_RESULT - - if ! grep -q "Status: in progress" <<< "$CHECK_RESULT"; then - echo "=> Staple ticket to installer: $FILENAME" - xcrun stapler staple ./release/$FILENAME - break - fi - done -else - echo "=> Skipped installer codesigning and notarization" -fi \ No newline at end of file diff --git a/ci/macos/qt.rb b/ci/macos/qt.rb deleted file mode 100644 index 50ff4f57..00000000 --- a/ci/macos/qt.rb +++ /dev/null @@ -1,163 +0,0 @@ -# Patches for Qt must be at the very least submitted to Qt's Gerrit codereview -# rather than their bug-report Jira. The latter is rarely reviewed by Qt. -class Qt < Formula - desc "Cross-platform application and UI framework" - homepage "https://www.qt.io/" - url "https://download.qt.io/archive/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz" - mirror "https://mirrorservice.org/sites/download.qt-project.org/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz" - sha256 "05ffba7b811b854ed558abf2be2ddbd3bb6ddd0b60ea4b5da75d277ac15e740a" - head "https://code.qt.io/qt/qt5.git", :branch => "5.10.1", :shallow => false - - bottle do - sha256 "8b4bad005596a5f8790150fe455db998ac2406f4e0f04140d6656205d844d266" => :high_sierra - sha256 "9c488554935fb573554a4e36d36d3c81e47245b7fefc4b61edef894e67ba1740" => :sierra - sha256 "c0407afba5951df6cc4c6f6c1c315972bd41c99cecb4e029919c4c15ab6f7bdc" => :el_capitan - end - - keg_only "Qt 5 has CMake issues when linked" - - option "with-docs", "Build documentation" - option "with-examples", "Build examples" - - deprecated_option "with-mysql" => "with-mysql-client" - - # OS X 10.7 Lion is still supported in Qt 5.5, but is no longer a reference - # configuration and thus untested in practice. Builds on OS X 10.7 have been - # reported to fail: . - depends_on :macos => :mountain_lion - - depends_on "pkg-config" => :build - depends_on :xcode => :build - depends_on "mysql-client" => :optional - depends_on "postgresql" => :optional - - # Restore `.pc` files for framework-based build of Qt 5 on OS X. This - # partially reverts merged - # between the 5.5.1 and 5.6.0 releases. (Remove this as soon as feasible!) - # - # Core formulae known to fail without this patch (as of 2016-10-15): - # * gnuplot (with `--with-qt` option) - # * mkvtoolnix (with `--with-qt` option, silent build failure) - # * poppler (with `--with-qt` option) - patch do - url "https://raw.githubusercontent.com/Homebrew/formula-patches/e8fe6567/qt5/restore-pc-files.patch" - sha256 "48ff18be2f4050de7288bddbae7f47e949512ac4bcd126c2f504be2ac701158b" - end - - # Fix compile error on macOS 10.13 around QFixed: - # https://github.com/Homebrew/homebrew-core/issues/27095 - # https://bugreports.qt.io/browse/QTBUG-67545 - patch do - url "https://raw.githubusercontent.com/z00m1n/formula-patches/0de0e229/qt/QTBUG-67545.patch" - sha256 "4a115097c7582c7dce4207f5500d13feb8c990eb8a05a43f41953985976ebe6c" - end - - # Fix compile error on macOS 10.13 caused by qtlocation dependency - # mapbox-gl-native using Boost 1.62.0 does not build with C++ 17: - # https://github.com/Homebrew/homebrew-core/issues/27095 - # https://bugreports.qt.io/browse/QTBUG-67810 - patch do - url "https://raw.githubusercontent.com/z00m1n/formula-patches/a1a1f0dd/qt/QTBUG-67810.patch" - sha256 "8ee0bf71df1043f08ebae3aa35036be29c4d9ebff8a27e3b0411a6bd635e9382" - end - - def install - args = %W[ - -verbose - -prefix #{prefix} - -release - -opensource -confirm-license - -system-zlib - -qt-libpng - -qt-libjpeg - -qt-freetype - -qt-pcre - -nomake tests - -no-rpath - -pkg-config - -dbus-runtime - -no-assimp - ] - - args << "-nomake" << "examples" if build.without? "examples" - - if build.with? "mysql-client" - args << "-plugin-sql-mysql" - (buildpath/"brew_shim/mysql_config").write <<~EOS - #!/bin/sh - if [ x"$1" = x"--libs" ]; then - mysql_config --libs | sed "s/-lssl -lcrypto//" - else - exec mysql_config "$@" - fi - EOS - chmod 0755, "brew_shim/mysql_config" - args << "-mysql_config" << buildpath/"brew_shim/mysql_config" - end - - args << "-plugin-sql-psql" if build.with? "postgresql" - - system "./configure", *args - system "make" - ENV.deparallelize - system "make", "install" - - if build.with? "docs" - system "make", "docs" - system "make", "install_docs" - end - - # Some config scripts will only find Qt in a "Frameworks" folder - frameworks.install_symlink Dir["#{lib}/*.framework"] - - # The pkg-config files installed suggest that headers can be found in the - # `include` directory. Make this so by creating symlinks from `include` to - # the Frameworks' Headers folders. - Pathname.glob("#{lib}/*.framework/Headers") do |path| - include.install_symlink path => path.parent.basename(".framework") - end - - # Move `*.app` bundles into `libexec` to expose them to `brew linkapps` and - # because we don't like having them in `bin`. - # (Note: This move breaks invocation of Assistant via the Help menu - # of both Designer and Linguist as that relies on Assistant being in `bin`.) - libexec.mkpath - Pathname.glob("#{bin}/*.app") { |app| mv app, libexec } - end - - def caveats; <<~EOS - We agreed to the Qt opensource license for you. - If this is unacceptable you should uninstall. - EOS - end - - test do - (testpath/"hello.pro").write <<~EOS - QT += core - QT -= gui - TARGET = hello - CONFIG += console - CONFIG -= app_bundle - TEMPLATE = app - SOURCES += main.cpp - EOS - - (testpath/"main.cpp").write <<~EOS - #include - #include - - int main(int argc, char *argv[]) - { - QCoreApplication a(argc, argv); - qDebug() << "Hello World!"; - return 0; - } - EOS - - system bin/"qmake", testpath/"hello.pro" - system "make" - assert_predicate testpath/"hello", :exist? - assert_predicate testpath/"main.o", :exist? - system "./hello" - end -end diff --git a/ci/windows/download-obs-deps.cmd b/ci/windows/download-obs-deps.cmd deleted file mode 100644 index ff4ffd57..00000000 --- a/ci/windows/download-obs-deps.cmd +++ /dev/null @@ -1,6 +0,0 @@ -if not exist %DepsBasePath% ( - curl -o %DepsBasePath%.zip -kLO https://obsproject.com/downloads/dependencies2017.zip -f --retry 5 -C - - 7z x %DepsBasePath%.zip -o%DepsBasePath% -) else ( - echo "OBS dependencies are already there. Download skipped." -) diff --git a/ci/windows/install-qt-win.cmd b/ci/windows/install-qt-win.cmd deleted file mode 100644 index e0537fe8..00000000 --- a/ci/windows/install-qt-win.cmd +++ /dev/null @@ -1,8 +0,0 @@ -if not exist %QtBaseDir% ( - curl -kLO https://cdn-fastly.obsproject.com/downloads/Qt_5.10.1.7z -f --retry 5 -z Qt_5.10.1.7z - 7z x Qt_5.10.1.7z -o%QtBaseDir% -) else ( - echo "Qt is already installed. Download skipped." -) - -dir %QtBaseDir% diff --git a/ci/windows/package-windows.cmd b/ci/windows/package-windows.cmd deleted file mode 100644 index 7282f1c2..00000000 --- a/ci/windows/package-windows.cmd +++ /dev/null @@ -1,14 +0,0 @@ -call "%~dp0..\ci_includes.generated.cmd" - -mkdir package -cd package - -git rev-parse --short HEAD > package-version.txt -set /p PackageVersion= "%OBSPath%\obs-studio-latest-tag.txt" - set /p OBSLatestTag=<"%OBSPath%\obs-studio-latest-tag.txt" -) - -REM Prepare OBS Studio builds - -echo Running CMake... -cd /D %OBSPath% -echo git checkout %OBSLatestTag% -git checkout %OBSLatestTag% -echo: - -if not exist build32 mkdir build32 -if not exist build64 mkdir build64 - -echo Running cmake for obs-studio %OBSLatestTag% 32-bit... -cd build32 -cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR32%" -DDepsPath="%DepsPath32%" -DBUILD_CAPTIONS=true -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true .. -echo: -echo: - -echo Running cmake for obs-studio %OBSLatestTag% 64-bit... -cd ..\build64 -cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR64%" -DDepsPath="%DepsPath64%" -DBUILD_CAPTIONS=true -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true .. -echo: -echo: - -dir "%OBSPath%\libobs" diff --git a/ci/windows/prepare-windows.cmd b/ci/windows/prepare-windows.cmd deleted file mode 100644 index 04b31097..00000000 --- a/ci/windows/prepare-windows.cmd +++ /dev/null @@ -1,15 +0,0 @@ -mkdir build32 -mkdir build64 - -cd build32 -cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR32%" -DLibObs_DIR="%OBSPath%\build32\libobs" -DLIBOBS_INCLUDE_DIR="%OBSPath%\libobs" -DLIBOBS_LIB="%OBSPath%\build32\libobs\%build_config%\obs.lib" -DOBS_FRONTEND_LIB="%OBSPath%\build32\UI\obs-frontend-api\%build_config%\obs-frontend-api.lib" .. -cd ..\build64 -cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR64%" -DLibObs_DIR="%OBSPath%\build64\libobs" -DLIBOBS_INCLUDE_DIR="%OBSPath%\libobs" -DLIBOBS_LIB="%OBSPath%\build64\libobs\%build_config%\obs.lib" -DOBS_FRONTEND_LIB="%OBSPath%\build64\UI\obs-frontend-api\%build_config%\obs-frontend-api.lib" .. - -REM Import the generated includes to get the plugin's name -call "%~dp0..\ci_includes.generated.cmd" - -REM Rename the solution files to something CI can pick up -cd .. -ren "build32\%PluginName%.sln" "main.sln" -ren "build64\%PluginName%.sln" "main.sln" diff --git a/cmake/common/compiler_common.cmake b/cmake/common/compiler_common.cmake new file mode 100644 index 00000000..06f85adc --- /dev/null +++ b/cmake/common/compiler_common.cmake @@ -0,0 +1,78 @@ +# SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# CMake common compiler options module + +include_guard(GLOBAL) + +# clang options for C, C++, ObjC, and ObjC++ +set( + _obs_clang_common_options + -fno-strict-aliasing + -Wno-trigraphs + -Wno-missing-field-initializers + -Wno-missing-prototypes + -Werror=return-type + -Wunreachable-code + -Wquoted-include-in-framework-header + -Wno-missing-braces + -Wparentheses + -Wswitch + -Wno-unused-function + -Wno-unused-label + -Wunused-parameter + -Wunused-variable + -Wunused-value + -Wempty-body + -Wuninitialized + -Wno-unknown-pragmas + -Wfour-char-constants + -Wconstant-conversion + -Wno-conversion + -Wint-conversion + -Wbool-conversion + -Wenum-conversion + -Wnon-literal-null-conversion + -Wsign-compare + -Wshorten-64-to-32 + -Wpointer-sign + -Wnewline-eof + -Wno-implicit-fallthrough + -Wdeprecated-declarations + -Wno-sign-conversion + -Winfinite-recursion + -Wcomma + -Wno-strict-prototypes + -Wno-semicolon-before-method-body + -Wformat-security + -Wvla + -Wno-error=shorten-64-to-32 +) + +# clang options for C +set(_obs_clang_c_options ${_obs_clang_common_options} -Wno-shadow -Wno-float-conversion) + +# clang options for C++ +set( + _obs_clang_cxx_options + ${_obs_clang_common_options} + -Wno-non-virtual-dtor + -Wno-overloaded-virtual + -Wno-exit-time-destructors + -Wno-shadow + -Winvalid-offsetof + -Wmove + -Werror=block-capture-autoreleasing + -Wrange-loop-analysis +) + +if(CMAKE_CXX_STANDARD GREATER_EQUAL 20) + list(APPEND _obs_clang_cxx_options -fno-char8_t) +endif() + +if(NOT DEFINED CMAKE_COMPILE_WARNING_AS_ERROR) + set(CMAKE_COMPILE_WARNING_AS_ERROR ON) +endif() diff --git a/cmake/common/helpers_common.cmake b/cmake/common/helpers_common.cmake new file mode 100644 index 00000000..2c1fa3ae --- /dev/null +++ b/cmake/common/helpers_common.cmake @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# CMake common helper functions module + +include_guard(GLOBAL) + +# check_uuid: Helper function to check for valid UUID +function(check_uuid uuid_string return_value) + set(valid_uuid TRUE) + # gersemi: off + set(uuid_token_lengths 8 4 4 4 12) + # gersemi: on + set(token_num 0) + + string(REPLACE "-" ";" uuid_tokens ${uuid_string}) + list(LENGTH uuid_tokens uuid_num_tokens) + + if(uuid_num_tokens EQUAL 5) + message(DEBUG "UUID ${uuid_string} is valid with 5 tokens.") + foreach(uuid_token IN LISTS uuid_tokens) + list(GET uuid_token_lengths ${token_num} uuid_target_length) + string(LENGTH "${uuid_token}" uuid_actual_length) + if(uuid_actual_length EQUAL uuid_target_length) + string(REGEX MATCH "[0-9a-fA-F]+" uuid_hex_match ${uuid_token}) + if(NOT uuid_hex_match STREQUAL uuid_token) + set(valid_uuid FALSE) + break() + endif() + else() + set(valid_uuid FALSE) + break() + endif() + math(EXPR token_num "${token_num}+1") + endforeach() + else() + set(valid_uuid FALSE) + endif() + message(DEBUG "UUID ${uuid_string} valid: ${valid_uuid}") + set(${return_value} ${valid_uuid} PARENT_SCOPE) +endfunction() + +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/plugin-support.c.in") + configure_file(src/plugin-support.c.in plugin-support.c @ONLY) + add_library(plugin-support STATIC) + target_sources(plugin-support PRIVATE plugin-support.c PUBLIC src/plugin-support.h) + target_include_directories(plugin-support PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src") +endif() diff --git a/cmake/windows/compilerconfig.cmake b/cmake/windows/compilerconfig.cmake new file mode 100644 index 00000000..b89a2448 --- /dev/null +++ b/cmake/windows/compilerconfig.cmake @@ -0,0 +1,69 @@ +# SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# CMake Windows compiler configuration module + +include_guard(GLOBAL) + +include(compiler_common) + +set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT ProgramDatabase) + +message(DEBUG "Current Windows API version: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}") +if(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM) + message(DEBUG "Maximum Windows API version: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM}") +endif() + +if(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION VERSION_LESS 10.0.20348) + message( + FATAL_ERROR + "OBS requires Windows 10 SDK version 10.0.20348.0 or more recent.\n" + "Please download and install the most recent Windows platform SDK." + ) +endif() + +set(_obs_msvc_c_options /MP /Zc:__cplusplus /Zc:preprocessor) +set(_obs_msvc_cpp_options /MP /Zc:__cplusplus /Zc:preprocessor) + +if(CMAKE_CXX_STANDARD GREATER_EQUAL 20) + list(APPEND _obs_msvc_cpp_options /Zc:char8_t-) +endif() + +add_compile_options( + /W3 + /utf-8 + /Brepro + /permissive- + "$<$:${_obs_msvc_c_options}>" + "$<$:${_obs_msvc_cpp_options}>" + "$<$:${_obs_clang_c_options}>" + "$<$:${_obs_clang_cxx_options}>" + $<$>:/Gy> + $<$>:/GL> + $<$>:/Oi> +) + +add_compile_definitions( + UNICODE + _UNICODE + _CRT_SECURE_NO_WARNINGS + _CRT_NONSTDC_NO_WARNINGS + $<$:DEBUG> + $<$:_DEBUG> +) + +add_link_options( + $<$>:/OPT:REF> + $<$>:/OPT:ICF> + $<$>:/LTCG> + $<$>:/INCREMENTAL:NO> + /DEBUG + /Brepro +) + +if(CMAKE_COMPILE_WARNING_AS_ERROR) + add_link_options(/WX) +endif() diff --git a/cmake/windows/defaults.cmake b/cmake/windows/defaults.cmake new file mode 100644 index 00000000..07de6731 --- /dev/null +++ b/cmake/windows/defaults.cmake @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# CMake Windows defaults module + +include_guard(GLOBAL) + +# Enable find_package targets to become globally available targets +set(CMAKE_FIND_PACKAGE_TARGETS_GLOBAL TRUE) + +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set( + CMAKE_INSTALL_PREFIX + "$ENV{ALLUSERSPROFILE}/obs-studio/plugins" + CACHE STRING + "Default plugin installation directory" + FORCE + ) +endif() diff --git a/cmake/windows/helpers.cmake b/cmake/windows/helpers.cmake new file mode 100644 index 00000000..af6ebba1 --- /dev/null +++ b/cmake/windows/helpers.cmake @@ -0,0 +1,114 @@ +# SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# CMake Windows helper functions module + +include_guard(GLOBAL) + +include(helpers_common) + +# set_target_properties_plugin: Set target properties for use in obs-studio +function(set_target_properties_plugin target) + set(options "") + set(oneValueArgs "") + set(multiValueArgs PROPERTIES) + cmake_parse_arguments(PARSE_ARGV 0 _STPO "${options}" "${oneValueArgs}" "${multiValueArgs}") + + message(DEBUG "Setting additional properties for target ${target}...") + + while(_STPO_PROPERTIES) + list(POP_FRONT _STPO_PROPERTIES key value) + set_property(TARGET ${target} PROPERTY ${key} "${value}") + endwhile() + + string(TIMESTAMP CURRENT_YEAR "%Y") + + set_target_properties(${target} PROPERTIES VERSION 0 SOVERSION ${PLUGIN_VERSION}) + + install(TARGETS ${target} RUNTIME DESTINATION "${target}/bin/64bit" LIBRARY DESTINATION "${target}/bin/64bit") + + install( + FILES "$" + CONFIGURATIONS RelWithDebInfo Debug Release + DESTINATION "${target}/bin/64bit" + OPTIONAL + ) + + if(TARGET plugin-support) + target_link_libraries(${target} PRIVATE plugin-support) + endif() + + add_custom_command( + TARGET ${target} + POST_BUILD + COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/rundir/$" + COMMAND + "${CMAKE_COMMAND}" -E copy_if_different "$" + "$<$:$>" + "${CMAKE_CURRENT_BINARY_DIR}/rundir/$" + COMMENT "Copy ${target} to rundir" + VERBATIM + ) + + target_install_resources(${target}) + + get_target_property(target_sources ${target} SOURCES) + set(target_ui_files ${target_sources}) + list(FILTER target_ui_files INCLUDE REGEX ".+\\.(ui|qrc)") + source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" PREFIX "UI Files" FILES ${target_ui_files}) + + configure_file(cmake/windows/resources/resource.rc.in "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.rc") + target_sources(${CMAKE_PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.rc") +endfunction() + +# Helper function to add resources into bundle +function(target_install_resources target) + message(DEBUG "Installing resources for target ${target}...") + if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/data") + file(GLOB_RECURSE data_files "${CMAKE_CURRENT_SOURCE_DIR}/data/*") + foreach(data_file IN LISTS data_files) + cmake_path( + RELATIVE_PATH + data_file + BASE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/data/" + OUTPUT_VARIABLE relative_path + ) + cmake_path(GET relative_path PARENT_PATH relative_path) + target_sources(${target} PRIVATE "${data_file}") + source_group("Resources/${relative_path}" FILES "${data_file}") + endforeach() + + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/data/" DESTINATION "${target}/data" USE_SOURCE_PERMISSIONS) + + add_custom_command( + TARGET ${target} + POST_BUILD + COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/rundir/$/${target}" + COMMAND + "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/data" + "${CMAKE_CURRENT_BINARY_DIR}/rundir/$/${target}" + COMMENT "Copy ${target} resources to rundir" + VERBATIM + ) + endif() +endfunction() + +# Helper function to add a specific resource to a bundle +function(target_add_resource target resource) + message(DEBUG "Add resource '${resource}' to target ${target} at destination '${target_destination}'...") + + install(FILES "${resource}" DESTINATION "${target}/data" COMPONENT Runtime) + + add_custom_command( + TARGET ${target} + POST_BUILD + COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/rundir/$/${target}" + COMMAND "${CMAKE_COMMAND}" -E copy "${resource}" "${CMAKE_CURRENT_BINARY_DIR}/rundir/$/${target}" + COMMENT "Copy ${target} resource ${resource} to rundir" + VERBATIM + ) + source_group("Resources" FILES "${resource}") +endfunction() diff --git a/cmake/windows/resources/resource.rc.in b/cmake/windows/resources/resource.rc.in new file mode 100644 index 00000000..5f3b00ec --- /dev/null +++ b/cmake/windows/resources/resource.rc.in @@ -0,0 +1,32 @@ +1 VERSIONINFO + FILEVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0 + PRODUCTVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0 + FILEFLAGSMASK 0x0L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x0L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "${PLUGIN_AUTHOR}" + VALUE "FileDescription", "${PROJECT_NAME}" + VALUE "FileVersion", "${PROJECT_VERSION}" + VALUE "InternalName", "${PROJECT_NAME}" + VALUE "LegalCopyright", "(C) ${CURRENT_YEAR} ${PLUGIN_AUTHOR}" + VALUE "OriginalFilename", "${PROJECT_NAME}" + VALUE "ProductName", "${PROJECT_NAME}" + VALUE "ProductVersion", "${PROJECT_VERSION}" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END diff --git a/cmake/windows/resources/resource.rc.in.license b/cmake/windows/resources/resource.rc.in.license new file mode 100644 index 00000000..81db98e1 --- /dev/null +++ b/cmake/windows/resources/resource.rc.in.license @@ -0,0 +1,5 @@ +SPDX-FileCopyrightText: 2018-2026 OBS Project and its contributors +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/data/config.json b/data/config.json new file mode 100644 index 00000000..6bc45b15 --- /dev/null +++ b/data/config.json @@ -0,0 +1,3 @@ +{ + "check_for_updates": true +} diff --git a/data/effects/blend_images.effect b/data/effects/blend_images.effect new file mode 100644 index 00000000..fa0ec9d2 --- /dev/null +++ b/data/effects/blend_images.effect @@ -0,0 +1,68 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +uniform float4x4 ViewProj; + +uniform texture2d image; // input RGBA +uniform texture2d blendimage; // input RGBA to blend +uniform float blendFactor; // how much to blend from each image +uniform float xOffset; +uniform float yOffset; + +sampler_state textureSampler { + Filter = Linear; + AddressU = Clamp; + AddressV = Clamp; +}; + +struct VertDataIn { + float4 pos : POSITION; + float2 uv : TEXCOORD0; +}; + +struct VertDataOut { + float4 pos : POSITION; + float2 uv : TEXCOORD0; +}; + +VertDataOut VSDefault(VertDataIn v_in) +{ + VertDataOut vert_out; + vert_out.pos = mul(float4(v_in.pos.xyz, 1.0), ViewProj); + vert_out.uv = v_in.uv; + return vert_out; +} + +/** + * Kawase High Pass Filter + */ +float4 KawaseHighPass(VertDataOut v_in) +{ + float4 sum = float4(0.0, 0.0, 0.0, 0.0); + sum += image.Sample(textureSampler, v_in.uv + float2( xOffset, yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2( xOffset, -yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, -yOffset)); + sum = image.Sample(textureSampler, v_in.uv) - sum * 0.25; + return sum; +} + +float4 PSBlend(VertDataOut v_in) : TARGET +{ + float4 imageRGBA = image.Sample(textureSampler, v_in.uv); + // Add high pass filter back to the blend image because the blend image is usually blurry + float4 blendimageRGBA = blendimage.Sample(textureSampler, v_in.uv) + KawaseHighPass(v_in); + return imageRGBA * (1.0 - blendFactor) + blendimageRGBA * blendFactor; +} + +technique Draw +{ + pass + { + vertex_shader = VSDefault(v_in); + pixel_shader = PSBlend(v_in); + } +} + diff --git a/data/effects/kawase_blur.effect b/data/effects/kawase_blur.effect new file mode 100644 index 00000000..f97f6a99 --- /dev/null +++ b/data/effects/kawase_blur.effect @@ -0,0 +1,146 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +uniform float4x4 ViewProj; +uniform texture2d image; +uniform texture2d focalmask; // focal (depth) mask + +uniform float xOffset; +uniform float yOffset; + +uniform int blurIter; // Current blur iteration +uniform int blurTotal; // Total number of blur iterations +uniform float blurFocusPoint; // Focus point for the blur. 0 = back, 1 = front +uniform float blurFocusDepth; // Depth of the focal blur. 0 = narrow, 1 = deep + +sampler_state textureSampler { + Filter = Linear; + AddressU = Clamp; + AddressV = Clamp; +}; + +struct VertDataIn { + float4 pos : POSITION; + float2 uv : TEXCOORD0; +}; + +struct VertDataOut { + float4 pos : POSITION; + float2 uv : TEXCOORD0; +}; + +VertDataOut VSDefault(VertDataOut v_in) +{ + VertDataOut vert_out; + vert_out.pos = mul(float4(v_in.pos.xyz, 1.0), ViewProj); + vert_out.uv = v_in.uv; + return vert_out; +} + +/** + * Kawase focal blur + * The blur amount will be based on the depth of the pixel, and the focus point. + * The focus point is a value between 0 and 1, where 0 is the back of the image, and 1 is the front. + * The blur amount is the difference between the focus point and the estimated depth of the pixel. + */ +float4 PSKawaseFocalBlur(VertDataOut v_in) : TARGET +{ + float blurIterF = float(blurIter) / float(blurTotal); + + // Blur the focal map to get a smoother value else aliasing occurs + float blurValue = focalmask.Sample(textureSampler, v_in.uv).r; + blurValue += focalmask.Sample(textureSampler, v_in.uv + float2( 0.01, 0.01)).r; + blurValue += focalmask.Sample(textureSampler, v_in.uv + float2(-0.01, 0.01)).r; + blurValue += focalmask.Sample(textureSampler, v_in.uv + float2( 0.01, -0.01)).r; + blurValue += focalmask.Sample(textureSampler, v_in.uv + float2(-0.01, -0.01)).r; + blurValue *= 0.25; + + // Calculate the distance from the focus point for this pixel + float blurFocusDistance = clamp(abs(blurValue - blurFocusPoint), 0.0, 1.0); + float blurFocusFactor = clamp(blurFocusDistance - blurFocusDepth, 0.0, 1.0); + + if (blurIterF > blurFocusFactor) { + // If we're past the focus point, just return the image pixel, don't blur further + return image.Sample(textureSampler, v_in.uv); + } + + // Calculate the blur value from neighboring pixels + float4 sum = float4(0.0, 0.0, 0.0, 0.0); + sum += image.Sample(textureSampler, v_in.uv + float2( xOffset, yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2( xOffset, -yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, -yOffset)); + sum *= 0.25; + return sum; +} + +/** + * Standard Kawase blur + * While it's not being used, we keep it here for reference. + */ +float4 PSKawaseBlur(VertDataOut v_in) : TARGET +{ + // Calculate the blur value from neighboring pixels + float4 sum = float4(0.0, 0.0, 0.0, 0.0); + sum += image.Sample(textureSampler, v_in.uv + float2( xOffset, yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2( xOffset, -yOffset)); + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, -yOffset)); + sum *= 0.25; + return sum; +} + +/** + * Mask aware Kawase blur + * Only uses pixels which are in the masked area for blur. This prevents the "Halo Effect" on + * the border pixels of the mask. + */ +float4 PSKawaseBlurMaskAware(VertDataOut v_in) : TARGET +{ + if (focalmask.Sample(textureSampler, v_in.uv).r == 0) { + // No mask - return the original image value without any blur + return image.Sample(textureSampler, v_in.uv); + } + + // Calculate the blur value from neighboring pixels + + float alphaValue1 = focalmask.Sample(textureSampler, v_in.uv + float2( xOffset, yOffset)).r; + float4 sum = image.Sample(textureSampler, v_in.uv + float2( xOffset, yOffset)) * alphaValue1; + float pixelCounter = alphaValue1; + + float alphaValue2 = focalmask.Sample(textureSampler, v_in.uv + float2(-xOffset, yOffset)).r; + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, yOffset)) * alphaValue2; + pixelCounter += alphaValue2; + + float alphaValue3 = focalmask.Sample(textureSampler, v_in.uv + float2( xOffset, -yOffset)).r; + sum += image.Sample(textureSampler, v_in.uv + float2( xOffset, -yOffset)) * alphaValue3; + pixelCounter += alphaValue3; + + float alphaValue4 = focalmask.Sample(textureSampler, v_in.uv + float2(-xOffset, -yOffset)).r; + sum += image.Sample(textureSampler, v_in.uv + float2(-xOffset, -yOffset)) * alphaValue4; + pixelCounter += alphaValue4; + + // Complement the blur pixels with a relative fraction of the center pixel + return (sum + image.Sample(textureSampler, v_in.uv) * (4.0 - pixelCounter)) * 0.25; +} + + +technique DrawFocalBlur +{ + pass + { + vertex_shader = VSDefault(v_in); + pixel_shader = PSKawaseFocalBlur(v_in); + } +} + +technique Draw +{ + pass + { + vertex_shader = VSDefault(v_in); + pixel_shader = PSKawaseBlurMaskAware(v_in); + } +} diff --git a/data/effects/mask_alpha_filter.effect b/data/effects/mask_alpha_filter.effect new file mode 100644 index 00000000..220a8d78 --- /dev/null +++ b/data/effects/mask_alpha_filter.effect @@ -0,0 +1,91 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +uniform float4x4 ViewProj; + +uniform texture2d image; // input RGBA +uniform texture2d alphamask; // alpha mask +uniform texture2d blurredBackground; // input RGBA + +sampler_state textureSampler { + Filter = Linear; + AddressU = Clamp; + AddressV = Clamp; +}; + +struct VertDataIn { + float4 pos : POSITION; + float2 uv : TEXCOORD0; +}; + +struct VertDataOut { + float4 pos : POSITION; + float2 uv : TEXCOORD0; +}; + +VertDataOut VSDefault(VertDataIn v_in) +{ + VertDataOut vert_out; + vert_out.pos = mul(float4(v_in.pos.xyz, 1.0), ViewProj); + vert_out.uv = v_in.uv; + return vert_out; +} + +float4 PSAlphaMaskRGBAWithBlur(VertDataOut v_in) : TARGET +{ + float4 inputRGBA = image.Sample(textureSampler, v_in.uv); + inputRGBA.rgb = max(float3(0.0, 0.0, 0.0), inputRGBA.rgb / inputRGBA.a); + + float4 outputRGBA; + float a = (1.0 - alphamask.Sample(textureSampler, v_in.uv).r) * inputRGBA.a; + outputRGBA.rgb = inputRGBA.rgb * a + blurredBackground.Sample(textureSampler, v_in.uv).rgb * (1.0 - a); + outputRGBA.a = 1; + return outputRGBA; +} + +float4 PSTakeBlur(VertDataOut v_in) : TARGET +{ + // Return the blurred image, assume any masking is already applied to the blurred image + return float4(blurredBackground.Sample(textureSampler, v_in.uv).rgb, 1.0); +} + +float4 PSAlphaMaskRGBAWithoutBlur(VertDataOut v_in) : TARGET +{ + float4 inputRGBA = image.Sample(textureSampler, v_in.uv); + inputRGBA.rgb = max(float3(0.0, 0.0, 0.0), inputRGBA.rgb / inputRGBA.a); + + float4 outputRGBA; + float a = (1.0 - alphamask.Sample(textureSampler, v_in.uv).r) * inputRGBA.a; + outputRGBA.rgb = inputRGBA.rgb * a; + outputRGBA.a = a; + return outputRGBA; +} + +technique DrawWithBlur +{ + pass + { + vertex_shader = VSDefault(v_in); + pixel_shader = PSTakeBlur(v_in); + } +} + +technique DrawWithFocalBlur +{ + pass + { + vertex_shader = VSDefault(v_in); + pixel_shader = PSTakeBlur(v_in); + } +} + +technique DrawWithoutBlur +{ + pass + { + vertex_shader = VSDefault(v_in); + pixel_shader = PSAlphaMaskRGBAWithoutBlur(v_in); + } +} diff --git a/data/locale/ar-EG.ini b/data/locale/ar-EG.ini new file mode 100644 index 00000000..ec8b38c1 --- /dev/null +++ b/data/locale/ar-EG.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="إزالة الخلفية" +PortraitBackgroundFilterPlugin="مكون إضافي لفلتر خلفية البورتريه" +Threshold="الحد" +ContourFilterPercentOfImage="فلتر المحيط (% من الصورة)" +SmoothSilhouette="صورة الشخص بأمان" +FeatherBlendSilhouette="صورة الشخص بلمسة" +BackgroundColor="لون الخلفية" +InferenceDevice="جهاز الإستدلال" +CPU="وحدة المعالجة المركزية" +GPUCUDA="الوحدة المركزية - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="نموذج التقسيم" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="تقسيم السيلفي" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="تركيب الفيديو بدقة" +CalculateMaskEveryXFrame="حساب القناع كل X إطار" +BlurBackgroundFactor0NoBlurUseColor="عامل ضبابية الخلفية (0 - لا ضبابية)" +EnhancePortrait="تحسين البورتريه" +EffectStrengh="قوة التأثير (0 - بدون تحسين)" +EnhancementModel="نموذج التحسين" +NumThreads="# من خيوط وحدة المعالجة المركزية" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="تحسين موجّه بالدليل الدلالي" +ZERODCE="Zero-DCE" +EnableThreshold="تمكين الحد" +Advanced="إعدادات متقدمة" diff --git a/data/locale/bn-IN.ini b/data/locale/bn-IN.ini new file mode 100644 index 00000000..46a2c66a --- /dev/null +++ b/data/locale/bn-IN.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="পটভূমি অপসারণ" +PortraitBackgroundFilterPlugin="প্রোফাইল পটভূমি ফিল্টার প্লাগইন" +Threshold="থ্রেসহোল্ড" +ContourFilterPercentOfImage="কনটুর ফিল্টার (ছবির শতকরা)" +SmoothSilhouette="স্মুদ্দ প্রতিফলক" +FeatherBlendSilhouette="ফেদার মিশ্রণ প্রতিফলক" +BackgroundColor="পটভূমি রঙ" +InferenceDevice="নিখরচনা ডিভাইস" +CPU="সিপিইউ" +GPUCUDA="জিপিইউ - কুড়া" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="কোরএমএল" +SegmentationModel="সেগমেন্টেশন মডেল" +SINet="এসআইনেট" +MediaPipe="মিডিয়াপাইপ" +SelfieSegmentation="সেলফি সেগমেন্টেশন" +PPHumanSeg="পিপি ম্যানসহায়ক নিখরচনা" +RobustVideoMatting="রবাস্ট ভিডিও ম্যাটিং" +CalculateMaskEveryXFrame="প্রতিটি X ফ্রেমে মাস্ক গণনা করুন" +BlurBackgroundFactor0NoBlurUseColor="পটভূমি ব্লার ফ্যাক্টর (0 - কোন ব্লার নেই)" +EnhancePortrait="প্রোফাইল উন্নয়ন করুন" +EffectStrengh="প্রভাব শক্তি (0 - উন্নয়ন নেই)" +EnhancementModel="উন্নয়ন মডেল" +NumThreads="# সিপিইউ থ্রেড" +TBEFN="টিবিইএফএন" +URETINEX="টিনেক্সএন-নেট" +SGLLIE="সেমান্টিক গাইডেড উন্নয়ন" +ZERODCE="শূন্য-DCE" +EnableThreshold="থ্রেসহোল্ড সক্ষম করুন" +Advanced="উন্নত সেটিংস" diff --git a/data/locale/en-US.ini b/data/locale/en-US.ini index e69de29b..55cc6c4c 100644 --- a/data/locale/en-US.ini +++ b/data/locale/en-US.ini @@ -0,0 +1,48 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="Background Removal" +PortraitBackgroundFilterPlugin="Portrait background filter plugin" +Threshold="Threshold" +ContourFilterPercentOfImage="Contour Filter (% of image)" +SmoothSilhouette="Smooth silhouette" +FeatherBlendSilhouette="Feather blend silhouette" +BackgroundColor="Background Color" +InferenceDevice="Inference device" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +GPUMIGRAPHX="GPU - MIGraphX" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="Segmentation model" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Selfie Segmentation" +SelfieMulticlass="Selfie Multiclass" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Robust Video Matting" +CalculateMaskEveryXFrame="Calculate every X frame" +BlurBackgroundFactor0NoBlurUseColor="Blur background (0 - no blur)" +EnhancePortrait="Enhance portrait" +EffectStrengh="Effect strength (0 - no enhance)" +EnhancementModel="Enhancement model" +NumThreads="# CPU threads" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Semantic Guided Enhancement" +ZERODCE="Zero-DCE" +EnableThreshold="Enable threshold" +BlurFocusPoint="Blur focus point" +TCMonoDepth="TCMonoDepth (Depth)" +EnableFocalBlur="Enable focal blur" +BlurFocusDepth="Blur focus depth" +Advanced="Advanced settings" +FocalBlurGroup="Focal blur settings" +ThresholdGroup="Threshold settings" +EnableImageSimilarity="Skip image based on similarity?" +ImageSimilarityThreshold="Sim. thresh. (high -> sensitive)" +TemporalSmoothFactor="Temporal smooth factor" +MaskExpansion="Mask expansion" diff --git a/data/locale/es-SP.ini b/data/locale/es-SP.ini new file mode 100644 index 00000000..76ae0820 --- /dev/null +++ b/data/locale/es-SP.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="Eliminación de fondo" +PortraitBackgroundFilterPlugin="Plugin de filtro de fondo de retrato" +Threshold="Umbral" +ContourFilterPercentOfImage="Filtro de contorno (% de la imagen)" +SmoothSilhouette="Silueta suave" +FeatherBlendSilhouette="Silueta difuminada" +BackgroundColor="Color de fondo" +InferenceDevice="Dispositivo de inferencia" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="Modelo de segmentación" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Segmentación Selfie" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Relleno de video robusto" +CalculateMaskEveryXFrame="Calcular máscara cada X fotograma" +BlurBackgroundFactor0NoBlurUseColor="Factor de desenfoque de fondo (0 - sin desenfoque)" +EnhancePortrait="Mejora de retrato" +EffectStrengh="Fuerza del efecto (0 - sin mejora)" +EnhancementModel="Modelo de mejora" +NumThreads="# de hilos de CPU" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Mejora guiada semántica" +ZERODCE="Zero-DCE" +EnableThreshold="Habilitar umbral" +Advanced="Configuración avanzada" diff --git a/data/locale/fr-FR.ini b/data/locale/fr-FR.ini new file mode 100644 index 00000000..7099f9ab --- /dev/null +++ b/data/locale/fr-FR.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="Suppression de l'arrière-plan" +PortraitBackgroundFilterPlugin="Plugin de filtre d'arrière-plan de portrait" +Threshold="Seuil" +ContourFilterPercentOfImage="Filtre de contour (% de l'image)" +SmoothSilhouette="Silhouette douce" +FeatherBlendSilhouette="Silhouette en fondu" +BackgroundColor="Couleur de l'arrière-plan" +InferenceDevice="Dispositif d'inférence" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="Modèle de segmentation" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Segmentation Selfie" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Matting Vidéo Robuste" +CalculateMaskEveryXFrame="Calculer le masque toutes les X images" +BlurBackgroundFactor0NoBlurUseColor="Facteur de flou d'arrière-plan (0 - pas de flou)" +EnhancePortrait="Améliorer le portrait" +EffectStrengh="Puissance de l'effet (0 - sans amélioration)" +EnhancementModel="Modèle d'amélioration" +NumThreads="# de Threads CPU" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Amélioration Guidée par la Sémantique" +ZERODCE="Zero-DCE" +EnableThreshold="Activer le seuil" +Advanced="Paramètres avancés" diff --git a/data/locale/hi-IN.ini b/data/locale/hi-IN.ini new file mode 100644 index 00000000..5c493de1 --- /dev/null +++ b/data/locale/hi-IN.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="बैकग्राउंड हटाना" +PortraitBackgroundFilterPlugin="पोर्ट्रेट बैकग्राउंड फ़िल्टर प्लगइन" +Threshold="थ्रेसहोल्ड" +ContourFilterPercentOfImage="कंटूर फ़िल्टर (% ऑफ इमेज)" +SmoothSilhouette="स्मूथ सिलुएट" +FeatherBlendSilhouette="फ़ेदर ब्लेंड सिलुएट" +BackgroundColor="बैकग्राउंड रंग" +InferenceDevice="संदर्भ डिवाइस" +CPU="सीपीयू" +GPUCUDA="जीपीयू - क्यूडा" +GPUROCM="जीपीयू - ROCM" +TENSORRT="TensorRT" +CoreML="कोरएमएल" +SegmentationModel="सेगमेंटेशन मॉडल" +SINet="ऐसआईनेट" +MediaPipe="मीडियापाइप" +SelfieSegmentation="सेल्फी सेगमेंटेशन" +PPHumanSeg="पीपीएच्यूमेनसेग" +RobustVideoMatting="रोबस्ट वीडियो मैटिंग" +CalculateMaskEveryXFrame="प्रत्येक X फ्रेम मास्क की गणना करें |" +BlurBackgroundFactor0NoBlurUseColor="बैकग्राउंड ब्लर का फैक्टर (0 - कोई ब्लर नहीं)" +EnhancePortrait="पोर्ट्रेट को बेहतर बनाएँ" +EffectStrengh="प्रभाव शक्ति (0 - कोई बेहतरीन नहीं)" +EnhancementModel="एन्हांसमेंट मॉडल" +NumThreads="# सीपीयू थ्रेड" +TBEFN="टीबीईएफएन" +URETINEX="यूरेटिनेक्स-नेट" +SGLLIE="सेमांटिक गाइडेड एन्हांसमेंट" +ZERODCE="ज़ीरो-डीसीई" +EnableThreshold="थ्रेसहोल्ड सक्षम करें" +Advanced="उन्नत सेटिंग्स" diff --git a/data/locale/it-IT.ini b/data/locale/it-IT.ini new file mode 100644 index 00000000..d9d54622 --- /dev/null +++ b/data/locale/it-IT.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="Rimozione dello sfondo" +PortraitBackgroundFilterPlugin="Plugin per filtro sfondo ritratto". +Threshold="Soglia" +ContourFilterPercentOfImage="Filtro contorno (% dell'immagine)". +SmoothSilhouette="Sagoma liscia". +FeatherBlendSilhouette="Silhouette con miscela di piume". +BackgroundColor="Colore di sfondo" +InferenceDevice="Dispositivo di inferenza" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="Modello di segmentazione". +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Segmentazione selfie" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Tappezzeria video robusta". +CalculateMaskEveryXFrame="Calcola maschera ogni X fotogrammi". +BlurBackgroundFactor0NoBlurUseColor="Fattore di sfocatura dello sfondo (0 - nessuna sfocatura)". +EnhancePortrait="Migliora il ritratto" +EffectStrengh="Forza effetto (0 - no migliorare)" +EnhancementModel="Modello di miglioramento" +NumThreads="# CPU threads" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Miglioramento semantico guidato" +ZERODCE="Zero-DCE" +EnableThreshold="Abilita soglia" +Advanced="Impostazioni avanzate" diff --git a/data/locale/ja-JP.ini b/data/locale/ja-JP.ini new file mode 100644 index 00000000..2747d029 --- /dev/null +++ b/data/locale/ja-JP.ini @@ -0,0 +1,41 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="背景除去" +PortraitBackgroundFilterPlugin="人物背景除去プラグイン" +Threshold="しきい値" +ContourFilterPercentOfImage="領域フィルタ(画像の%)" +SmoothSilhouette="輪郭の滑らかさ" +FeatherBlendSilhouette="輪郭ぼかし" +BackgroundColor="背景色" +InferenceDevice="推論デバイス" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="セグメンテーションモデル" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Selfie Segmentation" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Robust Video Matting" +CalculateMaskEveryXFrame="Xフレーム毎にマスクを計算" +BlurBackgroundFactor0NoBlurUseColor="背景ぼかし係数(0でぼかさず背景色を使用)" +EnableThreshold="しきい値を有効にする" +Advanced="詳細設定" +BlurFocusPoint="ぼかし焦点点" +EnableFocalBlur="焦点ぼかしを有効にする" +BlurFocusDepth="ぼかし焦点深度" +EffectStrengh="効果強度(0で効果なし)" +EnhancementModel="強化モデル" +NumThreads="# CPUスレッド" +TCMonoDepth="TCMonoDepth(深度)" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Semantic Guided Enhancement" +ZERODCE="Zero-DCE" +FocalBlurGroup="焦点ぼかし設定" +ThresholdGroup="しきい値設定" diff --git a/data/locale/ko-KR.ini b/data/locale/ko-KR.ini new file mode 100644 index 00000000..eb20983f --- /dev/null +++ b/data/locale/ko-KR.ini @@ -0,0 +1,38 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="배경 제거" +PortraitBackgroundFilterPlugin="인물 배경 필터 플러그인" +Threshold="임계값" +ContourFilterPercentOfImage="윤곽선 필터 (% 이미지)" +SmoothSilhouette="부드러운 실루엣" +FeatherBlendSilhouette="깃털 실루엣" +BackgroundColor="배경 색상" +InferenceDevice="추론 장치" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="세분화 모델" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="셀피 세분화" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="강인한 비디오 매팅" +CalculateMaskEveryXFrame="매 X 프레임마다 마스크 계산" +BlurBackgroundFactor0NoBlurUseColor="배경 블러 팩터 (0 - 블러 없음)" +EnhancePortrait="인물 좋게 보이기" +EffectStrengh="효과 강도 (0 - 향상 없음)" +EnhancementModel="향상 모델" +NumThreads="# CPU 쓰레드 수" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="시맨틱 가이드 개선" +ZERODCE="Zero-DCE" +EnableThreshold="임계값 활성화" +Advanced="고급 설정" +FocalBlurGroup="초점 블러 설정" +ThresholdGroup="임계값 설정" diff --git a/data/locale/pt-BR.ini b/data/locale/pt-BR.ini new file mode 100644 index 00000000..fc8619d4 --- /dev/null +++ b/data/locale/pt-BR.ini @@ -0,0 +1,42 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="Remoção de Fundo" +PortraitBackgroundFilterPlugin="Plugin de filtro de fundo de retrato" +Threshold="Limiar" +ContourFilterPercentOfImage="Filtro de contorno (% da imagem)" +SmoothSilhouette="Silhueta Suave" +FeatherBlendSilhouette="Silhueta desfocada" +BackgroundColor="Cor de Fundo" +InferenceDevice="Dispositivo de Inferência" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="Modelo de segmentação" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Segmentação de Selfie" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Limpeza de Vídeo Resistente" +CalculateMaskEveryXFrame="Calcular máscara a cada X quadro" +BlurBackgroundFactor0NoBlurUseColor="Fator de desfoque de plano de fundo (0 - sem desfoque)" +EnhancePortrait="Melhorar Retrato" +EffectStrengh="Força do efeito (0 - sem melhoria)" +EnhancementModel="Modelo de Melhoria" +NumThreads="# Número de Threads CPU" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Aprimoramento Guiado Semântico" +ZERODCE="Zero-DCE" +EnableThreshold="Ativar Limiar" +Advanced="Configurações Avançadas" +FocalBlurGroup="Configurações de desfoque focal" +BlurFocusPoint="Ponto de foco desfocado" +EnableFocalBlur="Ativar desfoque focal" +BlurFocusDepth="Profundidade de foco desfocada" +TCMonoDepth="TCMonoDepth (Profundidade)" +ThresholdGroup="Configurações de Limiar" diff --git a/data/locale/ru-RU.ini b/data/locale/ru-RU.ini new file mode 100644 index 00000000..3f1a6b73 --- /dev/null +++ b/data/locale/ru-RU.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="Удаление фона" +PortraitBackgroundFilterPlugin="Плагин фильтра для портретного заднего плана" +Threshold="Порог" +ContourFilterPercentOfImage="Фильтр контуров (% изображения)" +SmoothSilhouette="Плавная силуэт" +FeatherBlendSilhouette="Размытый контур" +BackgroundColor="Цвет фона" +InferenceDevice="Устройство вывода" +CPU="ЦПУ" +GPUCUDA="ГПУ - CUDA" +GPUROCM="ГПУ - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="Модель сегментации" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Сегментация Selfie" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Жёсткое видео матирование" +CalculateMaskEveryXFrame="Вычисление маски каждый X кадр" +BlurBackgroundFactor0NoBlurUseColor="Фактор размытия фона (0 - без размытия)" +EnhancePortrait="Улучшение портрета" +EffectStrengh="Сила эффекта (0 - без улучшений)" +EnhancementModel="Модель улучшения" +NumThreads="# кол-во потоков ЦП" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Семантическое улучшение" +ZERODCE="Zero-DCE" +EnableThreshold="Включить порог" +Advanced="Расширенные настройки" diff --git a/data/locale/ta-IN.ini b/data/locale/ta-IN.ini new file mode 100644 index 00000000..b3f43e91 --- /dev/null +++ b/data/locale/ta-IN.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="பின்னணி நீக்குதல்" +PortraitBackgroundFilterPlugin="பார்த்தை பின்னணி வடிவமைப்பு கூடுதல்" +Threshold="அளவுரு" +ContourFilterPercentOfImage="நிரப்பு வடிகள் (% புகைப்படத்தின்)" +SmoothSilhouette="மிதமான சிலூடு" +FeatherBlendSilhouette="பறக்கும் சிலூடு கலப்பி" +BackgroundColor="பின்னணி நிறம்" +InferenceDevice="பரிமாற்ற சாதனம்" +CPU="சிபியூ" +GPUCUDA="GPU-CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="பிரிவு மாதிரி" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="செல்பி பிரிவு" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="மாற்றாக்கத்தக்க வீடியோ மேட்டிங்" +CalculateMaskEveryXFrame="X புதுக்கப்பட்டப் பிரதி மாஸ்கை கணக்கிடுக" +BlurBackgroundFactor0NoBlurUseColor="பின்னணி மதிப்புப் பகுப்பு (0 - எந்த மாறுபாடும் இல்லை)" +EnhancePortrait="பார்த்தை மேம்படுத்துக" +EffectStrengh="விளைவு தகுதி (0 - மேம்படுத்தல் இல்லை)" +EnhancementModel="மேம்படுத்தல் மாதிரி" +NumThreads="# CPU சரங்கள்" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="பரிமாற்றத்தை உதர்வுபடுத்திய மேம்படுத்தல்" +ZERODCE="பூஜிய மேற்கோளிக் குறியீடு" +EnableThreshold="அளவுருக்கு அனுமதி" +Advanced="மேம்படுத்தப்பட்ட அமைப்புகள்" diff --git a/data/locale/tr-TR.ini b/data/locale/tr-TR.ini new file mode 100644 index 00000000..466d355c --- /dev/null +++ b/data/locale/tr-TR.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="Arka Plan Kaldırma" +PortraitBackgroundFilterPlugin="Portre arka plan filtre eklentisi" +Threshold="Eşik Değeri" +ContourFilterPercentOfImage="Hat Filtresi (% resmin)" +SmoothSilhouette="Düzgün Siluet" +FeatherBlendSilhouette="Bulutlu Siluet Karışımı" +BackgroundColor="Arka Plan Rengi" +InferenceDevice="Tahmin Cihazı" +CPU="CPU" +GPUCUDA="GPU - CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="Segmentasyon Modeli" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="Selfie Segmentasyonu" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="Sağlam Video Matlama" +CalculateMaskEveryXFrame="Her X kare için maskenin hesaplanması" +BlurBackgroundFactor0NoBlurUseColor="Arka Plan Bulanıklık Faktörü (0 - bulanık yok)" +EnhancePortrait="Portre İyileştirme" +EffectStrengh="Efekt Şiddeti (0 - iyileştirme yok)" +EnhancementModel="İyileştirme Modeli" +NumThreads="# CPU iş parçacığı" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="Semantik Rehberli İyileştirme" +ZERODCE="Zero-DCE" +EnableThreshold="Eşik Değerini Etkinleştir" +Advanced="Gelişmiş Ayarlar" diff --git a/data/locale/zh-CN.ini b/data/locale/zh-CN.ini new file mode 100644 index 00000000..d190c9e5 --- /dev/null +++ b/data/locale/zh-CN.ini @@ -0,0 +1,36 @@ +; SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +; SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +; +; SPDX-License-Identifier: CC0-1.0 + +BackgroundRemoval="背景去除" +PortraitBackgroundFilterPlugin="肖像背景过滤器插件" +Threshold="阈值" +ContourFilterPercentOfImage="轮廓过滤器(图像的百分之)" +SmoothSilhouette="平滑轮廓" +FeatherBlendSilhouette="轻柔轮廓柔和" +BackgroundColor="背景颜色" +InferenceDevice="推断设备" +CPU="CPU" +GPUCUDA="GPU-CUDA" +GPUROCM="GPU - ROCM" +TENSORRT="TensorRT" +CoreML="CoreML" +SegmentationModel="分割模型" +SINet="SINet" +MediaPipe="MediaPipe" +SelfieSegmentation="自拍分割" +PPHumanSeg="PPHumanSeg" +RobustVideoMatting="稳健视频抠图" +CalculateMaskEveryXFrame="每X帧计算掩码" +BlurBackgroundFactor0NoBlurUseColor="模糊背景系数(0-无模糊)" +EnhancePortrait="增强肖像" +EffectStrengh="效果强度(0-无增强)" +EnhancementModel="增强模型" +NumThreads="#CPU线程" +TBEFN="TBEFN" +URETINEX="URetinex-Net" +SGLLIE="语义引导增强" +ZERODCE="Zero-DCE" +EnableThreshold="启用阈值" +Advanced="高级设置" diff --git a/data/manifest.json b/data/manifest.json new file mode 100644 index 00000000..9aeefcd7 --- /dev/null +++ b/data/manifest.json @@ -0,0 +1,16 @@ +{ + "display_name": "OBS Background Removal", + "id": "com.royshilkrot.obs-backgroundremoval", + "version": "1.4.0", + "name": "obs-backgroundremoval", + "description": "OBS Plugin: Portrait Background Removal / Virtual Green-screen and Low-Light Enhancement", + "long_description": "A plugin for OBS Studio that allows you to replace the background in portrait images and video, as well as enhance low-light scenes.", + "os_arch": "windows-x64, macos, ubuntu-x86_64", + "urls": { + "repository": "https://github.com/royshil/obs-backgroundremoval", + "website": "https://royshil.github.io/obs-backgroundremoval/", + "support": "https://github.com/royshil/obs-backgroundremoval/issues" + }, + "has_banner": true, + "has_icon": true +} diff --git a/data/mediapipe.onnx b/data/mediapipe.onnx deleted file mode 100644 index b9725ad0..00000000 Binary files a/data/mediapipe.onnx and /dev/null differ diff --git a/data/models/SINet_Softmax_simple.with_runtime_opt.ort b/data/models/SINet_Softmax_simple.with_runtime_opt.ort new file mode 100644 index 00000000..17a902c5 Binary files /dev/null and b/data/models/SINet_Softmax_simple.with_runtime_opt.ort differ diff --git a/data/models/SINet_Softmax_simple.with_runtime_opt.ort.license b/data/models/SINet_Softmax_simple.with_runtime_opt.ort.license new file mode 100644 index 00000000..62194956 --- /dev/null +++ b/data/models/SINet_Softmax_simple.with_runtime_opt.ort.license @@ -0,0 +1,5 @@ +SPDX-FileCopyrightText: 2019 Anil Sathyan +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT \ No newline at end of file diff --git a/data/models/mediapipe.with_runtime_opt.ort b/data/models/mediapipe.with_runtime_opt.ort new file mode 100644 index 00000000..28b9ce34 Binary files /dev/null and b/data/models/mediapipe.with_runtime_opt.ort differ diff --git a/data/models/mediapipe.with_runtime_opt.ort.license b/data/models/mediapipe.with_runtime_opt.ort.license new file mode 100644 index 00000000..216e4356 --- /dev/null +++ b/data/models/mediapipe.with_runtime_opt.ort.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Google LLC +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/data/models/pphumanseg_fp32.with_runtime_opt.ort b/data/models/pphumanseg_fp32.with_runtime_opt.ort new file mode 100644 index 00000000..84e9fd9d Binary files /dev/null and b/data/models/pphumanseg_fp32.with_runtime_opt.ort differ diff --git a/data/models/pphumanseg_fp32.with_runtime_opt.ort.license b/data/models/pphumanseg_fp32.with_runtime_opt.ort.license new file mode 100644 index 00000000..167103d2 --- /dev/null +++ b/data/models/pphumanseg_fp32.with_runtime_opt.ort.license @@ -0,0 +1,5 @@ +SPDX-FileCopyrightText: 2021 PaddlePaddle Authors +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort b/data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort new file mode 100644 index 00000000..b5a32fa7 Binary files /dev/null and b/data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort differ diff --git a/data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort.license b/data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort.license new file mode 100644 index 00000000..59ed5b27 --- /dev/null +++ b/data/models/rvm_mobilenetv3_fp32.with_runtime_opt.ort.license @@ -0,0 +1,5 @@ +SPDX-FileCopyrightText: 2021 Peter Lin +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-only diff --git a/data/modnet_simple.onnx b/data/models/selfie_multiclass_256x256.with_runtime_opt.ort similarity index 52% rename from data/modnet_simple.onnx rename to data/models/selfie_multiclass_256x256.with_runtime_opt.ort index ee332d6f..e3aaf8ee 100644 Binary files a/data/modnet_simple.onnx and b/data/models/selfie_multiclass_256x256.with_runtime_opt.ort differ diff --git a/data/models/selfie_multiclass_256x256.with_runtime_opt.ort.license b/data/models/selfie_multiclass_256x256.with_runtime_opt.ort.license new file mode 100644 index 00000000..216e4356 --- /dev/null +++ b/data/models/selfie_multiclass_256x256.with_runtime_opt.ort.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Google LLC +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/data/models/selfie_segmentation.with_runtime_opt.ort b/data/models/selfie_segmentation.with_runtime_opt.ort new file mode 100644 index 00000000..dc765bd8 Binary files /dev/null and b/data/models/selfie_segmentation.with_runtime_opt.ort differ diff --git a/data/models/selfie_segmentation.with_runtime_opt.ort.license b/data/models/selfie_segmentation.with_runtime_opt.ort.license new file mode 100644 index 00000000..216e4356 --- /dev/null +++ b/data/models/selfie_segmentation.with_runtime_opt.ort.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Google LLC +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/data/models/semantic_guided_llie_180x324.with_runtime_opt.ort b/data/models/semantic_guided_llie_180x324.with_runtime_opt.ort new file mode 100644 index 00000000..44e0dd94 Binary files /dev/null and b/data/models/semantic_guided_llie_180x324.with_runtime_opt.ort differ diff --git a/data/models/semantic_guided_llie_180x324.with_runtime_opt.ort.license b/data/models/semantic_guided_llie_180x324.with_runtime_opt.ort.license new file mode 100644 index 00000000..57bd8d2a --- /dev/null +++ b/data/models/semantic_guided_llie_180x324.with_runtime_opt.ort.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 ShenZheng2000 +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT diff --git a/data/models/tbefn_fp32.with_runtime_opt.ort b/data/models/tbefn_fp32.with_runtime_opt.ort new file mode 100644 index 00000000..827e5874 Binary files /dev/null and b/data/models/tbefn_fp32.with_runtime_opt.ort differ diff --git a/data/models/tbefn_fp32.with_runtime_opt.ort.license b/data/models/tbefn_fp32.with_runtime_opt.ort.license new file mode 100644 index 00000000..fb492be7 --- /dev/null +++ b/data/models/tbefn_fp32.with_runtime_opt.ort.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 KUN LU +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: BSD-3-Clause diff --git a/data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort b/data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort new file mode 100644 index 00000000..756a4bc3 Binary files /dev/null and b/data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort differ diff --git a/data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort.license b/data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort.license new file mode 100644 index 00000000..16d30a83 --- /dev/null +++ b/data/models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Yu Li +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT diff --git a/data/models/uretinex_net_180x320.with_runtime_opt.ort b/data/models/uretinex_net_180x320.with_runtime_opt.ort new file mode 100644 index 00000000..46945e88 Binary files /dev/null and b/data/models/uretinex_net_180x320.with_runtime_opt.ort differ diff --git a/data/models/uretinex_net_180x320.with_runtime_opt.ort.license b/data/models/uretinex_net_180x320.with_runtime_opt.ort.license new file mode 100644 index 00000000..ac3ed112 --- /dev/null +++ b/data/models/uretinex_net_180x320.with_runtime_opt.ort.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2022 AndersonYong +SPDX-FileCopyrightText: 2022 Katsuya Hyodo +SPDX-FileCopyrightText: 2022-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT diff --git a/demo.gif b/demo.gif index 8c15d3b4..d1295eb4 100644 Binary files a/demo.gif and b/demo.gif differ diff --git a/demo.gif.license b/demo.gif.license new file mode 100644 index 00000000..67827385 --- /dev/null +++ b/demo.gif.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later \ No newline at end of file diff --git a/docs/BUG-REPORTING.md b/docs/BUG-REPORTING.md new file mode 100644 index 00000000..f6dc4d29 --- /dev/null +++ b/docs/BUG-REPORTING.md @@ -0,0 +1,27 @@ +# Reporting Bugs + +If you think you've found a bug, please report it by [opening an issue](https://github.com/royshil/obs-backgroundremoval/issues) + +Please include the following information: +- Desription of the bug +- Steps to reproduce +- Expected behavior +- Actual behavior +- Screenshots +- OBS logs (Help -> Log Files -> Upload last log file, or by navigating to `%appdata%\obs-studio\logs`) +- OS (Windows, Mac, Linux) version and architecture (32/64 bit) +- OBS version +- (If relevant) GPU: model, driver version + +## Grabbing logs from OBS from the disk +Here's a screenshot of the relevant location on disk for the logs: (Windows 10+) +![image](logs_location_windows.png) + +Get the file that is the latest (by date) and upload it to the issue. + +--- + +> SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +> SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +> +> SPDX-License-Identifier: GPL-3.0-or-later diff --git a/docs/BUILDING-CUDA-LINUX.md b/docs/BUILDING-CUDA-LINUX.md new file mode 100644 index 00000000..c6d1581b --- /dev/null +++ b/docs/BUILDING-CUDA-LINUX.md @@ -0,0 +1,134 @@ +# Building with a newer version of CUDA (Linux) +This guide provides instructions for compiling the `obs-backgroundremoval` plugin on Linux, specifically for users who have a newer version of the NVIDIA CUDA Toolkit installed than what is officially supported by the ONNXRuntime pre-compiled binaries. + +## Problem +The `obs-backgroundremoval` plugin relies on ONNXRuntime for AI processing. The pre-built versions of ONNXRuntime are often compiled for older CUDA versions. When you have a newer CUDA toolkit, this mismatch can cause errors in OBS, such as: + +``` +[ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_tensorrt.so with error: libcublas.so.12: cannot open shared object file: No such file or directory +``` + +This error means that ONNXRuntime is looking for an older version of a CUDA library (`libcublas.so.12` in this example) and cannot find it because your system has a newer version. The solution is to compile ONNXRuntime from source against your specific CUDA version. + + +## 1. Prerequisites +Before you begin, you must have the necessary software installed and configured on your system. This guide assumes you have already installed: +* CUDA Toolkit +* cuDNN +* TensorRT + +Make sure these are installed correctly before compiling. + +## 2. Compile ONNXRuntime from Source + +We will now download the ONNXRuntime source code and build it specifically for your system's hardware and software configuration. + +### Clone the ONNXRuntime Repository + +First, open a terminal and clone the official ONNXRuntime repository from GitHub. +```bash +git clone --recursive https://github.com/microsoft/onnxruntime.git +cd onnxruntime +``` + +### Determine Your GPU's CUDA Architecture + +You need to tell the compiler which CUDA architecture your GPU belongs to. You can find this with the following command: + +```bash +nvidia-smi --query-gpu=compute_cap --format=csv,noheader +``` + +The command will output a version number, for example, `8.6` for an NVIDIA RTX 30-series GPU. You will need to use this value in the build command, but without the dot. For example, `8.6` becomes `86`. + +Here are some common architecture values: +* **Turing (RTX 20-series):** `75` +* **Ampere (RTX 30-series):** `80`, `86`, `87` +* **Ada Lovelace (RTX 40-series):** `89` +* **Hopper:** `90` + +### Locate CUDA and TensorRT Installation Paths + +The build script needs to know where your CUDA and TensorRT installations are located. + +* **Find your CUDA path:** + ```bash + which nvcc + ``` + The output will be similar to `/opt/cuda/bin/nvcc`. Your `CUDA_HOME` path is the part before `/bin/nvcc` (e.g., `/opt/cuda`). + +* **Find your TensorRT path:** You can search for a key TensorRT file to find its location. + ```bash + sudo find / -name "libnvinfer.so" + ``` + A typical output might be `/usr/lib/libnvinfer.so`. The `TENSORRT_HOME` path would then be the root of this installation, which is `/usr` in this case. + +### Build ONNXRuntime +Now you can run the build script. Replace the placeholder values in brackets `[]` with the paths and architecture version you found in the previous steps. +```bash +./build.sh --config Release --build_shared_lib --use_vcpkg --parallel \ +--use_cuda --cuda_home [YOUR_CUDA_PATH] --cudnn_home [YOUR_CUDA_PATH] \ +--use_tensorrt --tensorrt_home [YOUR_TENSORRT_PATH] \ +--cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=[YOUR_ARCH_VERSION] CMAKE_POSITION_INDEPENDENT_CODE=ON onnxruntime_BUILD_UNIT_TESTS=OFF +``` + +Example for an RTX 3060: +```bash +./build.sh --config Release --build_shared_lib --use_vcpkg --parallel \ +--use_cuda --cuda_home /opt/cuda --cudnn_home /opt/cuda \ +--use_tensorrt --tensorrt_home /usr \ +--cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=86 CMAKE_POSITION_INDEPENDENT_CODE=ON onnxruntime_BUILD_UNIT_TESTS=OFF +``` + +This process can take a significant amount of time depending on your computer. + +### Install the Compiled Libraries + +Once the build is complete, the new library files will be located in the `build/Linux/Release` directory. + +Navigate to this directory: +```bash +cd build/Linux/Release +``` + +You should see several files, including `libonnxruntime.so`, `libonnxruntime.so.x.y.z` (where x.y.z is the version), and the provider libraries. + +To make these libraries available to other applications on your system, copy them into a standard location and update the system's linker cache. + +```bash +sudo cp libonnxruntime.so* /usr/local/lib/ +sudo cp libonnxruntime_providers_*.so /usr/local/lib/ +sudo ldconfig +``` +The `ldconfig` command refreshes the shared library cache. + +## 3. Compile obs-backgroundremoval + +With your custom version of ONNXRuntime installed, you can now compile the OBS plugin. + +### Clone and Build + +```bash +git clone https://github.com/royshil/obs-backgroundremoval.git +cd obs-backgroundremoval +``` + +Now, run CMake to prepare the build and then install it. +```bash +cmake -B build -S . \ + -DCMAKE_BUILD_TYPE=Release \ + -DUSE_SYSTEM_ONNXRUNTIME=ON + +sudo cmake --install build +``` + +## 4. Verification + +If the steps were completed successfully, the `obs-backgroundremoval` plugin is now installed. Launch OBS Studio, and you should find the "Background Removal" filter available when you right-click on a video source and select "Filters". It should now function correctly without the previous CUDA-related errors. + +--- + +> SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +> SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +> +> SPDX-License-Identifier: GPL-3.0-or-later diff --git a/docs/BUILDING-FEDORA.md b/docs/BUILDING-FEDORA.md new file mode 100644 index 00000000..0b8431c9 --- /dev/null +++ b/docs/BUILDING-FEDORA.md @@ -0,0 +1,47 @@ +## Instructions for building the plugin on Fedora + +NOTE: These instructions are unofficial and we will appreciate any pull requests to improve them. + +Please follow the steps to install obs-backgroundremoval plugin on Fedora. + +First, you have to install the development tools: + +``` +sudo dnf group install development-tools +``` + +Then, make sure you have the dependencies of this plugin installed: + +``` +sudo dnf install \ + cmake \ + curl-devel \ + gcc-c++ \ + obs-studio-devel \ + opencv-devel +``` + +Run the following command to compile the plugin: + +``` +cmake -B build_x86_64 \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DENABLE_FRONTEND_API=ON \ + -DENABLE_QT=OFF \ + -DUSE_SYSTEM_OPENCV=ON +cmake --build build_x86_64 +``` + +Finally, install the necessary files into the system directories, by issuing this command: + +``` +sudo cmake --install build_x86_64 --prefix /usr +``` + +--- + +> SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +> SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +> +> SPDX-License-Identifier: GPL-3.0-or-later diff --git a/docs/BUILDING-OPENSUSE.md b/docs/BUILDING-OPENSUSE.md new file mode 100644 index 00000000..bbb2df53 --- /dev/null +++ b/docs/BUILDING-OPENSUSE.md @@ -0,0 +1,44 @@ +## Building on openSUSE + +NOTE: These instructions are unofficial and we will appreciate any pull requests to improve them. + +Please follow the steps to install obs-backgroundremoval plugin on OpenSUSE. + +### Install OBS + +https://obsproject.com/wiki/unofficial-linux-builds#opensuse + +``` +sudo zypper ar -cfp 90 http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman +sudo zypper dup --from packman --allow-vendor-change +sudo zypper in obs-studio +``` + +### Building this plugin + +``` +sudo zypper install -t pattern devel_basis +sudo zypper install zsh cmake Mesa-libGL-devel \ + ffmpeg-6-libavcodec-devel ffmpeg-6-libavdevice-devel ffmpeg-6-libavformat-devel \ + libcurl-devel Mesa-libEGL-devel \ + libpulse-devel libxkbcommon-devel +sudo zypper in cmake gcc12-c++ ninja obs-studio-devel opencv-devel qt6-base-devel zsh curl-devel jq + +cmake . -B build_x86_64 \ + -DCMAKE_C_COMPILER=gcc-12 \ + -DCMAKE_CXX_COMPILER=g++-12 \ + -DQT_VERSION=6 \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DENABLE_FRONTEND_API=ON \ + -DENABLE_QT=ON +cmake --build build_x86_64 +sudo cmake --install build_x86_64 --prefix /usr +``` + +--- + +> SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +> SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +> +> SPDX-License-Identifier: GPL-3.0-or-later diff --git a/docs/logs_location_windows.png b/docs/logs_location_windows.png new file mode 100644 index 00000000..a667f67b Binary files /dev/null and b/docs/logs_location_windows.png differ diff --git a/docs/logs_location_windows.png.license b/docs/logs_location_windows.png.license new file mode 100644 index 00000000..67827385 --- /dev/null +++ b/docs/logs_location_windows.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later \ No newline at end of file diff --git a/external/FindLibObs.cmake b/external/FindLibObs.cmake deleted file mode 100644 index 28b4c203..00000000 --- a/external/FindLibObs.cmake +++ /dev/null @@ -1,123 +0,0 @@ -# This module can be copied and used by external plugins for OBS -# -# Once done these will be defined: -# -# LIBOBS_FOUND -# LIBOBS_INCLUDE_DIRS -# LIBOBS_LIBRARIES - -find_package(PkgConfig QUIET) -if (PKG_CONFIG_FOUND) - pkg_check_modules(_OBS QUIET obs libobs) -endif() - -if(CMAKE_SIZEOF_VOID_P EQUAL 8) - set(_lib_suffix 64) -else() - set(_lib_suffix 32) -endif() - -if(DEFINED CMAKE_BUILD_TYPE) - if(CMAKE_BUILD_TYPE STREQUAL "Debug") - set(_build_type_base "debug") - else() - set(_build_type_base "release") - endif() -endif() - -find_path(LIBOBS_INCLUDE_DIR - NAMES obs.h - HINTS - ENV obsPath${_lib_suffix} - ENV obsPath - ${obsPath} - ${obsIncludePath} - ${obsPath}/libobs - PATHS - /usr/include /usr/local/include /opt/local/include /sw/include - PATH_SUFFIXES - libobs - DOC "Lib OBS include directory" - ) - -if(APPLE) - # Hopeful hint at libobs in the /Applications folder - set(obsLibPath_osx "/Applications/OBS.app/Contents/Frameworks/") -endif() - -function(find_obs_lib base_name repo_build_path lib_name) - string(TOUPPER "${base_name}" base_name_u) - - if(DEFINED _build_type_base) - set(_build_type_${repo_build_path} "${_build_type_base}/${repo_build_path}") - set(_build_type_${repo_build_path}${_lib_suffix} "${_build_type_base}${_lib_suffix}/${repo_build_path}") - endif() - - find_library(${base_name_u}_LIB - NAMES ${_${base_name_u}_LIBRARIES} ${lib_name} lib${lib_name} ${lib_name}.0 - HINTS - ENV obsPath${_lib_suffix} - ENV obsPath - ${obsPath} - ${obsLibPath} - ${_${base_name_u}_LIBRARY_DIRS} - ${obsLibPath_osx} - PATHS - /usr/lib /usr/local/lib /opt/local/lib /sw/lib - PATH_SUFFIXES - lib${_lib_suffix} lib - libs${_lib_suffix} libs - bin${_lib_suffix} bin - ../lib${_lib_suffix} ../lib - ../libs${_lib_suffix} ../libs - ../bin${_lib_suffix} ../bin - # base repo non-msvc-specific search paths - ${_build_type_${repo_build_path}} - ${_build_type_${repo_build_path}${_lib_suffix}} - build/${repo_build_path} - build${_lib_suffix}/${repo_build_path} - # base repo msvc-specific search paths on windows - build${_lib_suffix}/${repo_build_path}/Debug - build${_lib_suffix}/${repo_build_path}/Release - build${_lib_suffix}/${repo_build_path}/RelWithDebInfo - build/${repo_build_path}/Debug - build/${repo_build_path}/Release - build/${repo_build_path}/RelWithDebInfo - DOC "Lib OBS library" - ) -endfunction() - -find_obs_lib(LIBOBS libobs obs) - -if(MSVC) - find_obs_lib(W32_PTHREADS deps/w32-pthreads w32-pthreads) -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(LibObs DEFAULT_MSG LIBOBS_LIB LIBOBS_INCLUDE_DIR) -mark_as_advanced(LIBOBS_INCLUDE_DIR LIBOBS_LIB) - -if(LIBOBS_FOUND) - if(MSVC) - if (NOT DEFINED W32_PTHREADS_LIB) - message(FATAL_ERROR "Could not find the w32-pthreads library" ) - endif() - - set(W32_PTHREADS_INCLUDE_DIR ${LIBOBS_INCLUDE_DIR}/../deps/w32-pthreads) - endif() - - set(LIBOBS_INCLUDE_DIRS ${LIBOBS_INCLUDE_DIR} ${W32_PTHREADS_INCLUDE_DIR} CACHE STRING "Lib OBS include directories") - set(LIBOBS_LIBRARIES ${LIBOBS_LIB} ${W32_PTHREADS_LIB} CACHE STRING "Lib OBS libraries") - - if (EXISTS ${LIBOBS_INCLUDE_DIR}/../cmake/external/ObsPluginHelpers.cmake) - include(${LIBOBS_INCLUDE_DIR}/../cmake/external/ObsPluginHelpers.cmake) - endif() - - # allows external plugins to easily use/share common dependencies that are often included with libobs (such as FFmpeg) - if(NOT DEFINED INCLUDED_LIBOBS_CMAKE_MODULES) - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LIBOBS_INCLUDE_DIR}/../cmake/Modules/") - set(INCLUDED_LIBOBS_CMAKE_MODULES true) - endif() -else() - message(FATAL_ERROR "Could not find the libobs library" ) -endif() diff --git a/external/FindOnnxruntime.cmake b/external/FindOnnxruntime.cmake deleted file mode 100644 index cb162741..00000000 --- a/external/FindOnnxruntime.cmake +++ /dev/null @@ -1,54 +0,0 @@ -# Try to find onnxruntime library -# Once done this will define -# Onnxruntime_FOUND - if system found onnruntime library -# Onnxruntime_INCLUDE_DIRS - The onnruntime include directories -# Onnxruntime_LIBRARIES - The libraries needed to use onnxruntime -# Onnxruntime_LIBRARY_DIR - The directory of onnxruntime libraries - -set(Onnxruntime_DIR_BUILD ${CMAKE_BINARY_DIR}/onnxruntime/) -if(APPLE AND EXISTS ${Onnxruntime_DIR_BUILD}) - file(GLOB Onnxruntime_LIBRARIES_EX ${Onnxruntime_DIR_BUILD}/lib/lib*.a) - set(Onnxruntime_LIBRARIES ${Onnxruntime_LIBRARIES_EX} CACHE STRING "Onnxruntime libraries") - set(Onnxruntime_INCLUDE_DIR ${Onnxruntime_DIR_BUILD}/include CACHE STRING "Onnxruntime include directory") -else() - find_library(Onnxruntime_LIBRARIES - NAMES - onnxruntime - PATHS - ${Onnxruntime_DIR} - ${CMAKE_BINARY_DIR}/nuget/Microsoft.ML.OnnxRuntime.DirectML.1.7.0/runtimes/win-x64/native - DOC "Onnxruntime library") - - find_path(Onnxruntime_INCLUDE_DIR - NAMES - "onnxruntime_cxx_api.h" - "onnxruntime/core/session/onnxruntime_cxx_api.h" - PATHS - ${Onnxruntime_INCLUDE_HINT} - ${CMAKE_BINARY_DIR}/nuget/Microsoft.ML.OnnxRuntime.DirectML.1.7.0/build/native/include - DOC "Onnxruntime include directory") -endif() - - - -include(FindPackageHandleStandardArgs) -# handle the QUIETLY and REQUIRED arguments and set LOGGING_FOUND to TRUE -# if all listed variables are TRUE -find_package_handle_standard_args(Onnxruntime DEFAULT_MSG Onnxruntime_INCLUDE_DIR Onnxruntime_LIBRARIES) - -if (Onnxruntime_FOUND) - set(Onnxruntime_INCLUDE_DIRS ${Onnxruntime_INCLUDE_DIR} CACHE STRING "Onnxruntime include directories") - if (APPLE) - set(Onnxruntime_INCLUDE_DIRS ${Onnxruntime_INCLUDE_DIRS} ${Onnxruntime_INCLUDE_DIR}/onnxruntime/core/session) - endif() - list(GET Onnxruntime_LIBRARIES 0 Onnxruntime_LIBRARY) - get_filename_component(Onnxruntime_LIBRARY_DIR_EX ${Onnxruntime_LIBRARY} DIRECTORY) - set(Onnxruntime_LIBRARY_DIR ${Onnxruntime_LIBRARY_DIR_EX} CACHE STRING "Onnxruntime library directory") -endif() - -# Tell cmake GUIs to ignore the "local" variables. -mark_as_advanced(Onnxruntime_INCLUDE_DIR - Onnxruntime_LIBRARY - Onnxruntime_INCLUDE_DIRS - Onnxruntime_LIBRARY_DIR - Onnxruntime_LIBRARIES) diff --git a/external/MunkeiVersionFromGit.cmake b/external/MunkeiVersionFromGit.cmake deleted file mode 100644 index 15ab0d20..00000000 --- a/external/MunkeiVersionFromGit.cmake +++ /dev/null @@ -1,167 +0,0 @@ -# The MIT License (MIT) -# -# Copyright (c) 2016-2017 Theo Willows -# -# 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. - -cmake_minimum_required( VERSION 3.0.0 ) - -include( CMakeParseArguments ) - -function( version_from_git ) - # Parse arguments - set( options OPTIONAL FAST ) - set( oneValueArgs - GIT_EXECUTABLE - INCLUDE_HASH - LOG - TIMESTAMP - ) - set( multiValueArgs ) - cmake_parse_arguments( ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) - - # Defaults - if( NOT DEFINED ARG_INCLUDE_HASH ) - set( ARG_INCLUDE_HASH ON ) - endif() - - if( DEFINED ARG_GIT_EXECUTABLE ) - set( GIT_EXECUTABLE "${ARG_GIT_EXECUTABLE}" ) - else () - # Find Git or bail out - find_package( Git ) - if( NOT GIT_FOUND ) - message( FATAL_ERROR "[MunkeiVersionFromGit] Git not found" ) - endif( NOT GIT_FOUND ) - endif() - - # Git describe - execute_process( - COMMAND "${GIT_EXECUTABLE}" describe --tags - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" - RESULT_VARIABLE git_result - OUTPUT_VARIABLE git_describe - ERROR_VARIABLE git_error - OUTPUT_STRIP_TRAILING_WHITESPACE - ERROR_STRIP_TRAILING_WHITESPACE - ) - if( NOT git_result EQUAL 0 ) - message( FATAL_ERROR - "[MunkeiVersionFromGit] Failed to execute Git: ${git_error}" - ) - endif() - - # Get Git tag - execute_process( - COMMAND "${GIT_EXECUTABLE}" describe --tags --abbrev=0 - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" - RESULT_VARIABLE git_result - OUTPUT_VARIABLE git_tag - ERROR_VARIABLE git_error - OUTPUT_STRIP_TRAILING_WHITESPACE - ERROR_STRIP_TRAILING_WHITESPACE - ) - if( NOT git_result EQUAL 0 ) - message( FATAL_ERROR - "[MunkeiVersionFromGit] Failed to execute Git: ${git_error}" - ) - endif() - - if( git_tag MATCHES "^v(0|[1-9][0-9]*)[.](0|[1-9][0-9]*)[.](0|[1-9][0-9]*)(-[.0-9A-Za-z-]+)?([+][.0-9A-Za-z-]+)?$" ) - set( version_major "${CMAKE_MATCH_1}" ) - set( version_minor "${CMAKE_MATCH_2}" ) - set( version_patch "${CMAKE_MATCH_3}" ) - set( identifiers "${CMAKE_MATCH_4}" ) - set( metadata "${CMAKE_MATCH_5}" ) - else() - message( FATAL_ERROR - "[MunkeiVersionFromGit] Git tag isn't valid semantic version: [${git_tag}]" - ) - endif() - - if( "${git_tag}" STREQUAL "${git_describe}" ) - set( git_at_a_tag ON ) - endif() - - if( NOT git_at_a_tag ) - # Extract the Git hash (if one exists) - string( REGEX MATCH "g[0-9a-f]+$" git_hash "${git_describe}" ) - endif() - - # Construct the version variables - set( version ${version_major}.${version_minor}.${version_patch} ) - set( semver ${version} ) - - # Identifiers - if( identifiers MATCHES ".+" ) - string( SUBSTRING "${identifiers}" 1 -1 identifiers ) - set( semver "${semver}-${identifiers}") - endif() - - # Metadata - # TODO Split and join (add Git hash inbetween) - if( metadata MATCHES ".+" ) - string( SUBSTRING "${metadata}" 1 -1 metadata ) - # Split - string( REPLACE "." ";" metadata "${metadata}" ) - endif() - - if( NOT git_at_a_tag ) - - if( ARG_INCLUDE_HASH ) - list( APPEND metadata "${git_hash}" ) - endif( ARG_INCLUDE_HASH ) - - # Timestamp - if( DEFINED ARG_TIMESTAMP ) - string( TIMESTAMP timestamp "${ARG_TIMESTAMP}" ${ARG_UTC} ) - list( APPEND metadata "${timestamp}" ) - endif( DEFINED ARG_TIMESTAMP ) - - endif() - - # Join - string( REPLACE ";" "." metadata "${metadata}" ) - - if( metadata MATCHES ".+" ) - set( semver "${semver}+${metadata}") - endif() - - # Log the results - if( ARG_LOG ) - message( STATUS - "[MunkeiVersionFromGit] Version: ${version} - Git tag: [${git_tag}] - Git hash: [${git_hash}] - Decorated: [${git_describe}] - Identifiers: [${identifiers}] - Metadata: [${metadata}] - SemVer: [${semver}]" - ) - endif( ARG_LOG ) - - # Set parent scope variables - set( GIT_TAG ${git_tag} PARENT_SCOPE ) - set( SEMVER ${semver} PARENT_SCOPE ) - set( VERSION ${version} PARENT_SCOPE ) - set( VERSION_MAJOR ${version_major} PARENT_SCOPE ) - set( VERSION_MINOR ${version_minor} PARENT_SCOPE ) - set( VERSION_PATCH ${version_patch} PARENT_SCOPE ) - -endfunction( version_from_git ) diff --git a/installer/installer-Windows.iss.in b/installer/installer-Windows.iss.in deleted file mode 100644 index 323272ba..00000000 --- a/installer/installer-Windows.iss.in +++ /dev/null @@ -1,63 +0,0 @@ -#define MyAppName "@CMAKE_PROJECT_NAME@" -#define MyAppVersion "@CMAKE_PROJECT_VERSION@" -#define MyAppPublisher "@PLUGIN_AUTHOR@" -#define MyAppURL "http://www.mywebsite.com" - -[Setup] -; NOTE: The value of AppId uniquely identifies this application. -; Do not use the same AppId value in installers for other applications. -; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) -AppId={{CD703FE5-1F2C-4837-BD3D-DD840D83C3E3} -AppName={#MyAppName} -AppVersion={#MyAppVersion} -AppPublisher={#MyAppPublisher} -AppPublisherURL={#MyAppURL} -AppSupportURL={#MyAppURL} -AppUpdatesURL={#MyAppURL} -DefaultDirName={code:GetDirName} -DefaultGroupName={#MyAppName} -OutputBaseFilename={#MyAppName}-{#MyAppVersion}-Windows-Installer -Compression=lzma -SolidCompression=yes - -[Languages] -Name: "english"; MessagesFile: "compiler:Default.isl" - -[Files] -Source: "..\release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs -Source: "..\LICENSE"; Flags: dontcopy -; NOTE: Don't use "Flags: ignoreversion" on any shared system files - -[Icons] -Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}" -Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" - -[Code] -procedure InitializeWizard(); -var - GPLText: AnsiString; - Page: TOutputMsgMemoWizardPage; -begin - ExtractTemporaryFile('LICENSE'); - LoadStringFromFile(ExpandConstant('{tmp}\LICENSE'), GPLText); - Page := CreateOutputMsgMemoPage(wpWelcome, - 'License Information', 'Please review the license terms before installing {#MyAppName}', - 'Press Page Down to see the rest of the agreement. Once you are aware of your rights, click Next to continue.', - String(GPLText) - ); -end; - -// credit where it's due : -// following function come from https://github.com/Xaymar/obs-studio_amf-encoder-plugin/blob/master/%23Resources/Installer.in.iss#L45 -function GetDirName(Value: string): string; -var - InstallPath: string; -begin - // initialize default path, which will be returned when the following registry - // key queries fail due to missing keys or for some different reason - Result := '{pf}\obs-studio'; - // query the first registry value; if this succeeds, return the obtained value - if RegQueryStringValue(HKLM32, 'SOFTWARE\OBS Studio', '', InstallPath) then - Result := InstallPath -end; - diff --git a/installer/installer-macOS.pkgproj.in b/installer/installer-macOS.pkgproj.in deleted file mode 100644 index 1b3793af..00000000 --- a/installer/installer-macOS.pkgproj.in +++ /dev/null @@ -1,726 +0,0 @@ - - - - - PROJECT - - PACKAGE_FILES - - DEFAULT_INSTALL_LOCATION - / - HIERARCHY - - CHILDREN - - - CHILDREN - - - CHILDREN - - - CHILDREN - - - CHILDREN - - - CHILDREN - - - CHILDREN - - - CHILDREN - - GID - 80 - PATH - ../build/@CMAKE_PROJECT_NAME@.so - PATH_TYPE - 1 - PERMISSIONS - 493 - TYPE - 3 - UID - 0 - - - GID - 80 - PATH - bin - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 2 - UID - 0 - - - CHILDREN - - GID - 80 - PATH - ../data - PATH_TYPE - 1 - PERMISSIONS - 493 - TYPE - 3 - UID - 0 - - - GID - 80 - PATH - @CMAKE_PROJECT_NAME@ - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 2 - UID - 0 - - - GID - 80 - PATH - plugins - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 2 - UID - 0 - - - GID - 80 - PATH - obs-studio - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 2 - UID - 0 - - - GID - 80 - PATH - Application Support - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Automator - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Documentation - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Extensions - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Filesystems - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Frameworks - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Input Methods - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Internet Plug-Ins - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - LaunchAgents - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - LaunchDaemons - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - PreferencePanes - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Preferences - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 80 - PATH - Printers - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - PrivilegedHelperTools - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - QuickLook - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - QuickTime - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Screen Savers - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Scripts - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Services - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - GID - 0 - PATH - Widgets - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - GID - 0 - PATH - Library - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - CHILDREN - - - CHILDREN - - GID - 0 - PATH - Shared - PATH_TYPE - 0 - PERMISSIONS - 1023 - TYPE - 1 - UID - 0 - - - GID - 80 - PATH - Users - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - - GID - 0 - PATH - / - PATH_TYPE - 0 - PERMISSIONS - 493 - TYPE - 1 - UID - 0 - - PAYLOAD_TYPE - 0 - VERSION - 4 - - PACKAGE_SCRIPTS - - RESOURCES - - - PACKAGE_SETTINGS - - AUTHENTICATION - 1 - CONCLUSION_ACTION - 0 - IDENTIFIER - @MACOS_BUNDLEID@ - OVERWRITE_PERMISSIONS - - VERSION - @CMAKE_PROJECT_VERSION@ - - PROJECT_COMMENTS - - NOTES - - PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1M - IDQuMDEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDQv - c3RyaWN0LmR0ZCI+CjxodG1sPgo8aGVhZD4KPG1ldGEgaHR0cC1l - cXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7 - IGNoYXJzZXQ9VVRGLTgiPgo8bWV0YSBodHRwLWVxdWl2PSJDb250 - ZW50LVN0eWxlLVR5cGUiIGNvbnRlbnQ9InRleHQvY3NzIj4KPHRp - dGxlPjwvdGl0bGU+CjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29u - dGVudD0iQ29jb2EgSFRNTCBXcml0ZXIiPgo8bWV0YSBuYW1lPSJD - b2NvYVZlcnNpb24iIGNvbnRlbnQ9IjE0MDQuMTMiPgo8c3R5bGUg - dHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5 - Pgo8L2JvZHk+CjwvaHRtbD4K - - - PROJECT_SETTINGS - - BUILD_PATH - - PATH - ../release - PATH_TYPE - 1 - - EXCLUDED_FILES - - - PATTERNS_ARRAY - - - REGULAR_EXPRESSION - - STRING - .DS_Store - TYPE - 0 - - - PROTECTED - - PROXY_NAME - Remove .DS_Store files - PROXY_TOOLTIP - Remove ".DS_Store" files created by the Finder. - STATE - - - - PATTERNS_ARRAY - - - REGULAR_EXPRESSION - - STRING - .pbdevelopment - TYPE - 0 - - - PROTECTED - - PROXY_NAME - Remove .pbdevelopment files - PROXY_TOOLTIP - Remove ".pbdevelopment" files created by ProjectBuilder or Xcode. - STATE - - - - PATTERNS_ARRAY - - - REGULAR_EXPRESSION - - STRING - CVS - TYPE - 1 - - - REGULAR_EXPRESSION - - STRING - .cvsignore - TYPE - 0 - - - REGULAR_EXPRESSION - - STRING - .cvspass - TYPE - 0 - - - REGULAR_EXPRESSION - - STRING - .svn - TYPE - 1 - - - REGULAR_EXPRESSION - - STRING - .git - TYPE - 1 - - - REGULAR_EXPRESSION - - STRING - .gitignore - TYPE - 0 - - - PROTECTED - - PROXY_NAME - Remove SCM metadata - PROXY_TOOLTIP - Remove helper files and folders used by the CVS, SVN or Git Source Code Management systems. - STATE - - - - PATTERNS_ARRAY - - - REGULAR_EXPRESSION - - STRING - classes.nib - TYPE - 0 - - - REGULAR_EXPRESSION - - STRING - designable.db - TYPE - 0 - - - REGULAR_EXPRESSION - - STRING - info.nib - TYPE - 0 - - - PROTECTED - - PROXY_NAME - Optimize nib files - PROXY_TOOLTIP - Remove "classes.nib", "info.nib" and "designable.nib" files within .nib bundles. - STATE - - - - PATTERNS_ARRAY - - - REGULAR_EXPRESSION - - STRING - Resources Disabled - TYPE - 1 - - - PROTECTED - - PROXY_NAME - Remove Resources Disabled folders - PROXY_TOOLTIP - Remove "Resources Disabled" folders. - STATE - - - - SEPARATOR - - - - NAME - @CMAKE_PROJECT_NAME@ - - - TYPE - 1 - VERSION - 2 - - diff --git a/data/SINet_Softmax_simple.onnx b/models/SINet_Softmax_simple.onnx similarity index 100% rename from data/SINet_Softmax_simple.onnx rename to models/SINet_Softmax_simple.onnx diff --git a/models/SINet_Softmax_simple.onnx.license b/models/SINet_Softmax_simple.onnx.license new file mode 100644 index 00000000..62194956 --- /dev/null +++ b/models/SINet_Softmax_simple.onnx.license @@ -0,0 +1,5 @@ +SPDX-FileCopyrightText: 2019 Anil Sathyan +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT \ No newline at end of file diff --git a/models/mediapipe.onnx b/models/mediapipe.onnx new file mode 100644 index 00000000..b34e8399 Binary files /dev/null and b/models/mediapipe.onnx differ diff --git a/models/mediapipe.onnx.license b/models/mediapipe.onnx.license new file mode 100644 index 00000000..216e4356 --- /dev/null +++ b/models/mediapipe.onnx.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Google LLC +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/models/pphumanseg_fp32.onnx b/models/pphumanseg_fp32.onnx new file mode 100644 index 00000000..b1b077f2 Binary files /dev/null and b/models/pphumanseg_fp32.onnx differ diff --git a/models/pphumanseg_fp32.onnx.license b/models/pphumanseg_fp32.onnx.license new file mode 100644 index 00000000..167103d2 --- /dev/null +++ b/models/pphumanseg_fp32.onnx.license @@ -0,0 +1,5 @@ +SPDX-FileCopyrightText: 2021 PaddlePaddle Authors +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/models/rvm_mobilenetv3_fp32.onnx b/models/rvm_mobilenetv3_fp32.onnx new file mode 100644 index 00000000..00279236 Binary files /dev/null and b/models/rvm_mobilenetv3_fp32.onnx differ diff --git a/models/rvm_mobilenetv3_fp32.onnx.license b/models/rvm_mobilenetv3_fp32.onnx.license new file mode 100644 index 00000000..59ed5b27 --- /dev/null +++ b/models/rvm_mobilenetv3_fp32.onnx.license @@ -0,0 +1,5 @@ +SPDX-FileCopyrightText: 2021 Peter Lin +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-only diff --git a/models/selfie_multiclass_256x256.onnx b/models/selfie_multiclass_256x256.onnx new file mode 100644 index 00000000..f10d38ba Binary files /dev/null and b/models/selfie_multiclass_256x256.onnx differ diff --git a/models/selfie_multiclass_256x256.onnx.license b/models/selfie_multiclass_256x256.onnx.license new file mode 100644 index 00000000..216e4356 --- /dev/null +++ b/models/selfie_multiclass_256x256.onnx.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Google LLC +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/data/selfie_segmentation.onnx b/models/selfie_segmentation.onnx similarity index 100% rename from data/selfie_segmentation.onnx rename to models/selfie_segmentation.onnx diff --git a/models/selfie_segmentation.onnx.license b/models/selfie_segmentation.onnx.license new file mode 100644 index 00000000..216e4356 --- /dev/null +++ b/models/selfie_segmentation.onnx.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Google LLC +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: Apache-2.0 diff --git a/models/semantic_guided_llie_180x324.onnx b/models/semantic_guided_llie_180x324.onnx new file mode 100644 index 00000000..0c436651 Binary files /dev/null and b/models/semantic_guided_llie_180x324.onnx differ diff --git a/models/semantic_guided_llie_180x324.onnx.license b/models/semantic_guided_llie_180x324.onnx.license new file mode 100644 index 00000000..57bd8d2a --- /dev/null +++ b/models/semantic_guided_llie_180x324.onnx.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 ShenZheng2000 +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT diff --git a/models/tbefn_fp32.onnx b/models/tbefn_fp32.onnx new file mode 100644 index 00000000..108b5081 Binary files /dev/null and b/models/tbefn_fp32.onnx differ diff --git a/models/tbefn_fp32.onnx.license b/models/tbefn_fp32.onnx.license new file mode 100644 index 00000000..fb492be7 --- /dev/null +++ b/models/tbefn_fp32.onnx.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 KUN LU +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: BSD-3-Clause diff --git a/models/tcmonodepth_tcsmallnet_192x320.onnx b/models/tcmonodepth_tcsmallnet_192x320.onnx new file mode 100644 index 00000000..d123f89c Binary files /dev/null and b/models/tcmonodepth_tcsmallnet_192x320.onnx differ diff --git a/models/tcmonodepth_tcsmallnet_192x320.onnx.license b/models/tcmonodepth_tcsmallnet_192x320.onnx.license new file mode 100644 index 00000000..16d30a83 --- /dev/null +++ b/models/tcmonodepth_tcsmallnet_192x320.onnx.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2021 Yu Li +SPDX-FileCopyrightText: 2021 Katsuya Hyodo +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT diff --git a/models/uretinex_net_180x320.onnx b/models/uretinex_net_180x320.onnx new file mode 100644 index 00000000..7f3bacc3 --- /dev/null +++ b/models/uretinex_net_180x320.onnx @@ -0,0 +1,6397 @@ +pytorch2.0.0:e + +input +Kpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.0.weight +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.0.biasYpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.0/Conv_output_0Ppre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.0/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +input +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_1_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice"Slice + +input +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_1_output_06pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_1"Slice + +input +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_10_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_2_output_06pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_2"Slice + +input +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_1_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0'pre21_pre19_pre17_pre16_/Slice_output_0pre21_pre19_pre17_pre16_/Slice"Slice + +input +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0)pre21_pre19_pre17_pre16_/Slice_1_output_0 pre21_pre19_pre17_pre16_/Slice_1"Slice + +input +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_10_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0)pre21_pre19_pre17_pre16_/Slice_2_output_0 pre21_pre19_pre17_pre16_/Slice_2"Slice +U +pre22_/Constant_output_0 +exposure_ratio_3to5pre22_/Mul_output_0 +pre22_/Mul"Mul + +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.0/Conv_output_0^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.1/LeakyRelu_output_0Upre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.1/LeakyRelu" LeakyRelu* +alphaL> + +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.1/LeakyRelu_output_0 +Kpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.2.weight +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.2.biasYpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.2/Conv_output_0Ppre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.2/Conv_output_0^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.3/LeakyRelu_output_0Upre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.3/LeakyRelu" LeakyRelu* +alphaL> + +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.3/LeakyRelu_output_0 +Kpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.4.weight +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.4.biasYpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.4/Conv_output_0Ppre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.4/Conv_output_0^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.5/LeakyRelu_output_0Upre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.5/LeakyRelu" LeakyRelu* +alphaL> + +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.5/LeakyRelu_output_0 +Kpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.6.weight +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.6.biasYpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.6/Conv_output_0Ppre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.6/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.6/Conv_output_0Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.7/Relu_output_0Ppre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.7/Relu"Relu + +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.7/Relu_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_1_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_10_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_PCpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/Slice"Slice + +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.7/Relu_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_10_output_0 +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/Constant_6_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_QEpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/Slice_1"Slice + +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_P +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv1.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv1.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv1/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv1/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_Q +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv2.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv2.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv2/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_Q +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv1.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv1.biasLpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv1/Conv_output_0Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv1/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +input +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_Q@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_output_07pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul"Mul + +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_Q +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_QBpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_2_output_09pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_2"Mul + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv1/Conv_output_0Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu1/Relu_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu1/Relu"Relu + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv2/Conv_output_0Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu2/Relu_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu2/Relu"Relu + +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv1/Conv_output_0Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_1/LeakyRelu_output_0Opre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_1/LeakyRelu" LeakyRelu* +alphaL> + +Epre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Constant_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_2_output_0Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add_1_output_09pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add_1"Add + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu1/Relu_output_0 +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu2/Relu_output_0Mpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/Concat_output_0Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/Concat"Concat* +axis + +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_1/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv2.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv2.biasLpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv2/Conv_output_0Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Mpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/Concat_output_0jpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/avg_pool/GlobalAveragePool_output_0apre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/avg_pool/GlobalAveragePool"GlobalAveragePool + +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv2/Conv_output_0Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_2/LeakyRelu_output_0Opre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_2/LeakyRelu" LeakyRelu* +alphaL> + +jpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/avg_pool/GlobalAveragePool_output_0 +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Constant_output_0Wpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape_output_0Npre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape"Reshape + +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_2/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv3.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv3.biasLpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv3/Conv_output_0Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv3/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Wpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape_output_0 +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_onnx::MatMul_63^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.0/MatMul_output_0Upre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.0/MatMul"MatMul + +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv3/Conv_output_0Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_3/LeakyRelu_output_0Opre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_3/LeakyRelu" LeakyRelu* +alphaL> + +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.0/MatMul_output_0\pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.1/Relu_output_0Spre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.1/Relu"Relu + +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_3/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv4.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv4.biasLpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv4/Conv_output_0Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +\pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.1/Relu_output_0 +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_onnx::MatMul_64^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.2/MatMul_output_0Upre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.2/MatMul"MatMul + +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv4/Conv_output_0Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_4/LeakyRelu_output_0Opre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_4/LeakyRelu" LeakyRelu* +alphaL> + +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.2/MatMul_output_0_pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.3/Sigmoid_output_0Vpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.3/Sigmoid"Sigmoid + +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_4/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv5.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv5.biasLpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv5/Conv_output_0Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv5/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +_pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.3/Sigmoid_output_0 +Zpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Constant_1_output_0Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape_1_output_0Ppre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape_1"Reshape + +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv5/Conv_output_0/pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_LBpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/relu/Relu"Relu + +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape_1_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_51Vpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Expand_output_0Mpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Expand"Expand + +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_24_output_0 +/pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_L=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_3_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_3"Mul + +Mpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/Concat_output_0 +Vpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Expand_output_0Spre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Mul_output_0Jpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Mul"Mul + +Spre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Mul_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv3.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv3.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv3/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv3/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv3/Conv_output_0Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu3/Relu_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu3/Relu"Relu + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu3/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv4.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv4.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv4/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv4/Conv_output_0Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu4/Relu_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu4/Relu"Relu + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu4/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv5.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv5.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv5/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv5/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv5/Conv_output_0Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu5/Relu_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu5/Relu"Relu + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu5/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv6.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv6.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv6/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv6/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv6/Conv_output_0Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu6/Relu_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu6/Relu"Relu + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu6/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv7.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv7.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv7/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv7/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv7/Conv_output_0Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu7/Relu_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu7/Relu"Relu + +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu7/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv8.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv8.biasQpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv8/Conv_output_0Hpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv8/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_P +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv8/Conv_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_RApre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/Add"Add + +Epre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Constant_output_0 +4pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_RBpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_1_output_09pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_1"Mul + +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_1_output_0@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add_output_07pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add"Add + +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add_1_output_02pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t17pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Div"Div + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_1_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_3_output_06pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_3"Slice + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_4_output_06pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_4"Slice + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_10_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_5_output_06pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_5"Slice + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv1.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv1.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv1/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv1/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_1_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0)pre21_pre19_pre17_pre16_/Slice_3_output_0 pre21_pre19_pre17_pre16_/Slice_3"Slice + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0)pre21_pre19_pre17_pre16_/Slice_4_output_0 pre21_pre19_pre17_pre16_/Slice_4"Slice + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_6_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_10_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0 +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_output_0)pre21_pre19_pre17_pre16_/Slice_5_output_0 pre21_pre19_pre17_pre16_/Slice_5"Slice + +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_3_output_0;pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_output_02pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul"Mul + +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_1_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_4_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_1_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_1"Mul + +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_2_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_5_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_2_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_2"Mul + +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_3_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_3_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_4_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_4"Mul + +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_4_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_4_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_5_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_5"Mul + +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_5_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_5_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_6_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_6"Mul + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv1/Conv_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu1/Relu_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu1/Relu"Relu + +'pre21_pre19_pre17_pre16_/Slice_output_0 +)pre21_pre19_pre17_pre16_/Slice_3_output_0%pre21_pre19_pre17_pre16_/Mul_output_0pre21_pre19_pre17_pre16_/Mul"Mul + +)pre21_pre19_pre17_pre16_/Slice_1_output_0 +)pre21_pre19_pre17_pre16_/Slice_4_output_0'pre21_pre19_pre17_pre16_/Mul_1_output_0pre21_pre19_pre17_pre16_/Mul_1"Mul + +)pre21_pre19_pre17_pre16_/Slice_2_output_0 +)pre21_pre19_pre17_pre16_/Slice_5_output_0'pre21_pre19_pre17_pre16_/Mul_2_output_0pre21_pre19_pre17_pre16_/Mul_2"Mul + +)pre21_pre19_pre17_pre16_/Slice_3_output_0 +)pre21_pre19_pre17_pre16_/Slice_3_output_0'pre21_pre19_pre17_pre16_/Mul_4_output_0pre21_pre19_pre17_pre16_/Mul_4"Mul + +)pre21_pre19_pre17_pre16_/Slice_4_output_0 +)pre21_pre19_pre17_pre16_/Slice_4_output_0'pre21_pre19_pre17_pre16_/Mul_5_output_0pre21_pre19_pre17_pre16_/Mul_5"Mul + +)pre21_pre19_pre17_pre16_/Slice_5_output_0 +)pre21_pre19_pre17_pre16_/Slice_5_output_0'pre21_pre19_pre17_pre16_/Mul_6_output_0pre21_pre19_pre17_pre16_/Mul_6"Mul + +;pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_output_0 +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_1_output_0;pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_output_02pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add"Add + +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_4_output_0 +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_5_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_3_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_3"Add + +%pre21_pre19_pre17_pre16_/Mul_output_0 +'pre21_pre19_pre17_pre16_/Mul_1_output_0%pre21_pre19_pre17_pre16_/Add_output_0pre21_pre19_pre17_pre16_/Add"Add + +'pre21_pre19_pre17_pre16_/Mul_4_output_0 +'pre21_pre19_pre17_pre16_/Mul_5_output_0'pre21_pre19_pre17_pre16_/Add_3_output_0pre21_pre19_pre17_pre16_/Add_3"Add + +;pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_output_0 +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_2_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_1_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_1"Add + +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_3_output_0 +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_6_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_4_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_4"Add + +%pre21_pre19_pre17_pre16_/Add_output_0 +'pre21_pre19_pre17_pre16_/Mul_2_output_0'pre21_pre19_pre17_pre16_/Add_1_output_0pre21_pre19_pre17_pre16_/Add_1"Add + +'pre21_pre19_pre17_pre16_/Add_3_output_0 +'pre21_pre19_pre17_pre16_/Mul_6_output_0'pre21_pre19_pre17_pre16_/Add_4_output_0pre21_pre19_pre17_pre16_/Add_4"Add + +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_1_output_0 +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_3_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_2_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_2"Add + +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_4_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Constant_24_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_5_output_04pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_5"Add + +'pre21_pre19_pre17_pre16_/Add_4_output_0 +-pre21_pre19_pre17_pre16_/Constant_24_output_0'pre21_pre19_pre17_pre16_/Add_5_output_0pre21_pre19_pre17_pre16_/Add_5"Add + +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_2_output_0 +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_5_output_0-pre21_pre19_pre17_pre15_pre13_pre11_pre9_Q_t12pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Div"Div + +-pre21_pre19_pre17_pre15_pre13_pre11_pre9_Q_t1 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv2.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv2.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv2/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +-pre21_pre19_pre17_pre15_pre13_pre11_pre9_Q_t1 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv1.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv1.bias8pre21_pre19_pre17_pre15_pre13_pre12_/conv1/Conv_output_0/pre21_pre19_pre17_pre15_pre13_pre12_/conv1/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +input +-pre21_pre19_pre17_pre15_pre13_pre11_pre9_Q_t1+pre21_pre19_pre17_pre15_pre14_/Mul_output_0"pre21_pre19_pre17_pre15_pre14_/Mul"Mul + +-pre21_pre19_pre17_pre15_pre13_pre11_pre9_Q_t1 +-pre21_pre19_pre17_pre15_pre13_pre11_pre9_Q_t1-pre21_pre19_pre17_pre15_pre14_/Mul_2_output_0$pre21_pre19_pre17_pre15_pre14_/Mul_2"Mul + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv2/Conv_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu2/Relu_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu2/Relu"Relu + +8pre21_pre19_pre17_pre15_pre13_pre12_/conv1/Conv_output_0Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_1/LeakyRelu_output_0;pre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_1/LeakyRelu" LeakyRelu* +alphaL> + +0pre21_pre19_pre17_pre15_pre14_/Constant_output_0 +-pre21_pre19_pre17_pre15_pre14_/Mul_2_output_0-pre21_pre19_pre17_pre15_pre14_/Add_1_output_0$pre21_pre19_pre17_pre15_pre14_/Add_1"Add + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu1/Relu_output_0 +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu2/Relu_output_0:pre21_pre19_pre17_pre15_pre13_pre11_pre10_/Concat_output_01pre21_pre19_pre17_pre15_pre13_pre11_pre10_/Concat"Concat* +axis + +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_1/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv2.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv2.bias8pre21_pre19_pre17_pre15_pre13_pre12_/conv2/Conv_output_0/pre21_pre19_pre17_pre15_pre13_pre12_/conv2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +:pre21_pre19_pre17_pre15_pre13_pre11_pre10_/Concat_output_0Wpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/avg_pool/GlobalAveragePool_output_0Npre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/avg_pool/GlobalAveragePool"GlobalAveragePool + +8pre21_pre19_pre17_pre15_pre13_pre12_/conv2/Conv_output_0Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_2/LeakyRelu_output_0;pre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_2/LeakyRelu" LeakyRelu* +alphaL> + +Wpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/avg_pool/GlobalAveragePool_output_0 +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Constant_output_0Dpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape_output_0;pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape"Reshape + +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_2/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv3.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv3.bias8pre21_pre19_pre17_pre15_pre13_pre12_/conv3/Conv_output_0/pre21_pre19_pre17_pre15_pre13_pre12_/conv3/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Dpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape_output_0 +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_onnx::MatMul_63Kpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.0/MatMul_output_0Bpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.0/MatMul"MatMul + +8pre21_pre19_pre17_pre15_pre13_pre12_/conv3/Conv_output_0Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_3/LeakyRelu_output_0;pre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_3/LeakyRelu" LeakyRelu* +alphaL> + +Kpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.0/MatMul_output_0Ipre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.1/Relu_output_0@pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.1/Relu"Relu + +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_3/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv4.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv4.bias8pre21_pre19_pre17_pre15_pre13_pre12_/conv4/Conv_output_0/pre21_pre19_pre17_pre15_pre13_pre12_/conv4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Ipre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.1/Relu_output_0 +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_onnx::MatMul_64Kpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.2/MatMul_output_0Bpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.2/MatMul"MatMul + +8pre21_pre19_pre17_pre15_pre13_pre12_/conv4/Conv_output_0Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_4/LeakyRelu_output_0;pre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_4/LeakyRelu" LeakyRelu* +alphaL> + +Kpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.2/MatMul_output_0Lpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.3/Sigmoid_output_0Cpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.3/Sigmoid"Sigmoid + +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_4/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv5.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv5.bias8pre21_pre19_pre17_pre15_pre13_pre12_/conv5/Conv_output_0/pre21_pre19_pre17_pre15_pre13_pre12_/conv5/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +Lpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.3/Sigmoid_output_0 +Zpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Constant_1_output_0Fpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape_1_output_0=pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape_1"Reshape + +8pre21_pre19_pre17_pre15_pre13_pre12_/conv5/Conv_output_0pre21_pre19_pre17_pre15_L.pre21_pre19_pre17_pre15_pre13_pre12_/relu/Relu"Relu + +Fpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape_1_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_51Cpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Expand_output_0:pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Expand"Expand + +-pre21_pre19_pre17_pre16_/Constant_24_output_0 +pre21_pre19_pre17_pre15_L'pre21_pre19_pre17_pre16_/Mul_3_output_0pre21_pre19_pre17_pre16_/Mul_3"Mul + +:pre21_pre19_pre17_pre15_pre13_pre11_pre10_/Concat_output_0 +Cpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Expand_output_0@pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Mul_output_07pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Mul"Mul + +'pre21_pre19_pre17_pre16_/Add_1_output_0 +'pre21_pre19_pre17_pre16_/Mul_3_output_0'pre21_pre19_pre17_pre16_/Add_2_output_0pre21_pre19_pre17_pre16_/Add_2"Add + +@pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Mul_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv3.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv3.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv3/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv3/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +'pre21_pre19_pre17_pre16_/Add_2_output_0 +'pre21_pre19_pre17_pre16_/Add_5_output_0pre21_pre19_pre17_Q_t2pre21_pre19_pre17_pre16_/Div"Div + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv3/Conv_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu3/Relu_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu3/Relu"Relu + +pre21_pre19_pre17_Q_t2 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv2.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv2.bias&pre21_pre19_pre18_/conv2/Conv_output_0pre21_pre19_pre18_/conv2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +pre21_pre19_pre17_Q_t2 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv1.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv1.bias pre21_pre20_/conv1/Conv_output_0pre21_pre20_/conv1/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu3/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv4.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv4.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv4/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +u +&pre21_pre19_pre18_/conv2/Conv_output_0&pre21_pre19_pre18_/relu2/Relu_output_0pre21_pre19_pre18_/relu2/Relu"Relu + + pre21_pre20_/conv1/Conv_output_0,pre21_pre20_/leaky_relu_1/LeakyRelu_output_0#pre21_pre20_/leaky_relu_1/LeakyRelu" LeakyRelu* +alphaL> + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv4/Conv_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu4/Relu_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu4/Relu"Relu + +,pre21_pre20_/leaky_relu_1/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv2.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv2.bias pre21_pre20_/conv2/Conv_output_0pre21_pre20_/conv2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu4/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv5.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv5.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv5/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv5/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + + pre21_pre20_/conv2/Conv_output_0,pre21_pre20_/leaky_relu_2/LeakyRelu_output_0#pre21_pre20_/leaky_relu_2/LeakyRelu" LeakyRelu* +alphaL> + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv5/Conv_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu5/Relu_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu5/Relu"Relu + +,pre21_pre20_/leaky_relu_2/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv3.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv3.bias pre21_pre20_/conv3/Conv_output_0pre21_pre20_/conv3/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu5/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv6.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv6.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv6/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv6/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + + pre21_pre20_/conv3/Conv_output_0,pre21_pre20_/leaky_relu_3/LeakyRelu_output_0#pre21_pre20_/leaky_relu_3/LeakyRelu" LeakyRelu* +alphaL> + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv6/Conv_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu6/Relu_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu6/Relu"Relu + +,pre21_pre20_/leaky_relu_3/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv4.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv4.bias pre21_pre20_/conv4/Conv_output_0pre21_pre20_/conv4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu6/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv7.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv7.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv7/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv7/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + + pre21_pre20_/conv4/Conv_output_0,pre21_pre20_/leaky_relu_4/LeakyRelu_output_0#pre21_pre20_/leaky_relu_4/LeakyRelu" LeakyRelu* +alphaL> + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv7/Conv_output_0>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu7/Relu_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu7/Relu"Relu + +,pre21_pre20_/leaky_relu_4/LeakyRelu_output_0 +Dpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv5.weight +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_conv5.bias pre21_pre20_/conv5/Conv_output_0pre21_pre20_/conv5/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu7/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv8.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv8.bias>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv8/Conv_output_05pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv8/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +I + pre21_pre20_/conv5/Conv_output_0pre21_Lpre21_pre20_/relu/Relu"Relu + +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv8/Conv_output_0pre21_pre19_pre17_pre15_pre13_R.pre21_pre19_pre17_pre15_pre13_pre11_pre10_/Add"Add +Z +pre21_L +pre22_/Mul_output_0pre22_/Concat_output_0 pre22_/Concat"Concat* +axis + +0pre21_pre19_pre17_pre15_pre14_/Constant_output_0 +pre21_pre19_pre17_pre15_pre13_R-pre21_pre19_pre17_pre15_pre14_/Mul_1_output_0$pre21_pre19_pre17_pre15_pre14_/Mul_1"Mul + +pre22_/Concat_output_0 +pre22_conv1.weight +pre22_conv1.biaspre22_/conv1/Conv_output_0pre22_/conv1/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + ++pre21_pre19_pre17_pre15_pre14_/Mul_output_0 +-pre21_pre19_pre17_pre15_pre14_/Mul_1_output_0+pre21_pre19_pre17_pre15_pre14_/Add_output_0"pre21_pre19_pre17_pre15_pre14_/Add"Add +{ +pre22_/conv1/Conv_output_0$pre22_/leaky_relu/LeakyRelu_output_0pre22_/leaky_relu/LeakyRelu" LeakyRelu* +alphaL> + ++pre21_pre19_pre17_pre15_pre14_/Add_output_0 +-pre21_pre19_pre17_pre15_pre14_/Add_1_output_0pre21_pre19_pre17_P_t2"pre21_pre19_pre17_pre15_pre14_/Div"Div + +$pre22_/leaky_relu/LeakyRelu_output_0 +pre22_conv2.weight +pre22_conv2.biaspre22_/conv2/Conv_output_0pre22_/conv2/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +pre21_pre19_pre17_P_t2 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv1.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv1.bias&pre21_pre19_pre18_/conv1/Conv_output_0pre21_pre19_pre18_/conv1/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +pre22_/conv2/Conv_output_0&pre22_/leaky_relu_1/LeakyRelu_output_0pre22_/leaky_relu_1/LeakyRelu" LeakyRelu* +alphaL> +u +&pre21_pre19_pre18_/conv1/Conv_output_0&pre21_pre19_pre18_/relu1/Relu_output_0pre21_pre19_pre18_/relu1/Relu"Relu + +&pre22_/leaky_relu_1/LeakyRelu_output_0 +pre22_conv3.weight +pre22_conv3.biaspre22_/conv3/Conv_output_0pre22_/conv3/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +&pre21_pre19_pre18_/relu1/Relu_output_0 +&pre21_pre19_pre18_/relu2/Relu_output_0"pre21_pre19_pre18_/Concat_output_0pre21_pre19_pre18_/Concat"Concat* +axis + +pre22_/conv3/Conv_output_0&pre22_/leaky_relu_2/LeakyRelu_output_0pre22_/leaky_relu_2/LeakyRelu" LeakyRelu* +alphaL> + +"pre21_pre19_pre18_/Concat_output_0?pre21_pre19_pre18_/se_layer/avg_pool/GlobalAveragePool_output_06pre21_pre19_pre18_/se_layer/avg_pool/GlobalAveragePool"GlobalAveragePool + +&pre22_/leaky_relu_2/LeakyRelu_output_0 +pre22_conv4.weight +pre22_conv4.biaspre22_/conv4/Conv_output_0pre22_/conv4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ + +?pre21_pre19_pre18_/se_layer/avg_pool/GlobalAveragePool_output_0 +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Constant_output_0,pre21_pre19_pre18_/se_layer/Reshape_output_0#pre21_pre19_pre18_/se_layer/Reshape"Reshape +O +pre22_/conv4/Conv_output_0pre22_/relu/Relu_output_0pre22_/relu/Relu"Relu + +,pre21_pre19_pre18_/se_layer/Reshape_output_0 +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_onnx::MatMul_633pre21_pre19_pre18_/se_layer/fc/fc.0/MatMul_output_0*pre21_pre19_pre18_/se_layer/fc/fc.0/MatMul"MatMul + +3pre21_pre19_pre18_/se_layer/fc/fc.0/MatMul_output_01pre21_pre19_pre18_/se_layer/fc/fc.1/Relu_output_0(pre21_pre19_pre18_/se_layer/fc/fc.1/Relu"Relu + +1pre21_pre19_pre18_/se_layer/fc/fc.1/Relu_output_0 +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_onnx::MatMul_643pre21_pre19_pre18_/se_layer/fc/fc.2/MatMul_output_0*pre21_pre19_pre18_/se_layer/fc/fc.2/MatMul"MatMul + +3pre21_pre19_pre18_/se_layer/fc/fc.2/MatMul_output_04pre21_pre19_pre18_/se_layer/fc/fc.3/Sigmoid_output_0+pre21_pre19_pre18_/se_layer/fc/fc.3/Sigmoid"Sigmoid + +4pre21_pre19_pre18_/se_layer/fc/fc.3/Sigmoid_output_0 +Zpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Constant_1_output_0.pre21_pre19_pre18_/se_layer/Reshape_1_output_0%pre21_pre19_pre18_/se_layer/Reshape_1"Reshape + +.pre21_pre19_pre18_/se_layer/Reshape_1_output_0 +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_51+pre21_pre19_pre18_/se_layer/Expand_output_0"pre21_pre19_pre18_/se_layer/Expand"Expand + +"pre21_pre19_pre18_/Concat_output_0 ++pre21_pre19_pre18_/se_layer/Expand_output_0(pre21_pre19_pre18_/se_layer/Mul_output_0pre21_pre19_pre18_/se_layer/Mul"Mul + +(pre21_pre19_pre18_/se_layer/Mul_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv3.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv3.bias&pre21_pre19_pre18_/conv3/Conv_output_0pre21_pre19_pre18_/conv3/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +u +&pre21_pre19_pre18_/conv3/Conv_output_0&pre21_pre19_pre18_/relu3/Relu_output_0pre21_pre19_pre18_/relu3/Relu"Relu + +&pre21_pre19_pre18_/relu3/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv4.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv4.bias&pre21_pre19_pre18_/conv4/Conv_output_0pre21_pre19_pre18_/conv4/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +u +&pre21_pre19_pre18_/conv4/Conv_output_0&pre21_pre19_pre18_/relu4/Relu_output_0pre21_pre19_pre18_/relu4/Relu"Relu + +&pre21_pre19_pre18_/relu4/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv5.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv5.bias&pre21_pre19_pre18_/conv5/Conv_output_0pre21_pre19_pre18_/conv5/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +u +&pre21_pre19_pre18_/conv5/Conv_output_0&pre21_pre19_pre18_/relu5/Relu_output_0pre21_pre19_pre18_/relu5/Relu"Relu + +&pre21_pre19_pre18_/relu5/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv6.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv6.bias&pre21_pre19_pre18_/conv6/Conv_output_0pre21_pre19_pre18_/conv6/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +u +&pre21_pre19_pre18_/conv6/Conv_output_0&pre21_pre19_pre18_/relu6/Relu_output_0pre21_pre19_pre18_/relu6/Relu"Relu + +&pre21_pre19_pre18_/relu6/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv7.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv7.bias&pre21_pre19_pre18_/conv7/Conv_output_0pre21_pre19_pre18_/conv7/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +u +&pre21_pre19_pre18_/conv7/Conv_output_0&pre21_pre19_pre18_/relu7/Relu_output_0pre21_pre19_pre18_/relu7/Relu"Relu + +&pre21_pre19_pre18_/relu7/Relu_output_0 +Ipre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv8.weight +Gpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_conv8.bias&pre21_pre19_pre18_/conv8/Conv_output_0pre21_pre19_pre18_/conv8/Conv"Conv* + dilations@@* +group* + kernel_shape@@* +pads@@@@* +strides@@ +f +pre21_pre19_pre17_P_t2 +&pre21_pre19_pre18_/conv8/Conv_output_0pre21_Rpre21_pre19_pre18_/Add"Add +? +pre22_/relu/Relu_output_0 +pre21_Routput pre22_/Mul_1"Mul torch_jit* BKpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_decom.0.weightJ>ɽ@>3/u }ODV/=qld=f$'=; ~N(>콼Lz=@G>PVf=kGG=ea/=m=ǐ +03`<6=סL= +>>^з= N˽!I=Y 5eTlm@Y]pȔ0DSCR=S%>ڄ(>I>=U)!⸺ =Z>>P{A=vig=w?cS2ٵ6D Nj>:%ýQ<>m-Zh>:/>,D=ğ#={i=.=qlh.&=F;6> = Zο~=#3>m>>=s=`>;= =+>=|9‰}@=+i= R0}qAq<19STvh <^ +R>`>ߟd'>=k;GLʽ㽕M?>q2&C>W= P;;ϽE)>?ǽ9=t=栽Ep>>STR½|=hMRC>V#U<ͽq>KBш̽r +wryָ; >5kd=23;׻ӃU='W<>(Z'c'>½5> aٽ<=WS>C޼=p=M3 +xLi`iB=; ];p=:>=a +g>YiZ=h0>> =[V">v#m] 5>2~=o +>.44t +[ +>=I^t)=5<:&TW^i9=؃2>Ae|>(= 8=$3 '닽Y!KI>d~S=-ϼ =p4>)8,=[LM?=E;>=|d>o58=<[_!: 8%Cx!Q>[ =}{=k7>ޟq'K>>dzݾYK=&rA$N`;=%.=߃p=|=`=M >p=/ս,Z=0]=[*>0>{=_ >W">=P<>*<~3M=r7 <>]3=w0!-NJE}ЋZg轨ӽO5>J>@=.H><>XgC)8=T=0(>H=S-;a=#=XQ;t%>$R=Ѓ=;]agt廽:=4=ܙ<\н[>2˸א2ч8\hSN>Z=b= =!.=GV$8-=9<} MFԼI$m [/>}`6< ;Z>WÊ/?A2ǽQS=(>C6_>B$>27w=^@>A %>t3>)άKºJ*|<ż㛽NG=X?=O">= ==|=V7>t!=E8<@z&$>B!>p=d2>_ӏ,=aSM *H߂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;L:H :;Z+:蒻¼S'ǻ깡ݵżu8̼sƙr7Ǽ*F;ƺ,;O♼GO8:?<H +;f`Twl<=:;#En<'<}Q=<0<Ͳ;S< :z 7;gb;.9({:il;A;8?»D;|d9a; +=ͅWd5x:$]h0 :g✺BZ9A: ;:;k9t-4G; fv;r%nlo9$8Ҥ< xS|:y󍺞:ػ'H 9%W^3h:};N"1y:;)k<Ϭ;J>$ҋxby;;Lj];w8;X;ЁR!һ6;v;;9:h.<ƾ <9y;S%#<4<#):/<><@<%2{oqg +țAi{ yD&;n::<|᭺4.:MqB;==Ȼ<["=r=<,:ELJ;hx;C7P#F;<;)<;1v:RӔ;JP;ƶ;+qꮻ1C<'<9=XG+Ѻo{3O;e ;pnM4P뻠Ls[w:mü;2;;,# 1=$L;yqz8ѻP;l::W;x 8F:9ן<%'<^;9d6<a;:ga;kr}KkA<6S<\논}V;$;ƥ/<&;ǰ; l;|P;[;Sr*/b+;*:^8;Q)=tT;*m ;\&W!F<% <]ߴ;лQb &:PҼ,ʼ^~Ji6ἮS; ;j_5Z! +input + + + + +Z! +exposure_ratio_3to5 + + +b" +output + + + + +ju +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.0/Conv_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_output_0 + + + + +j[ +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_1_output_0 + + + + +j[ +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_2_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Slice_output_0 + + + + +jE +)pre21_pre19_pre17_pre16_/Slice_1_output_0 + + + + +jE +)pre21_pre19_pre17_pre16_/Slice_2_output_0 + + + + +j/ +pre22_/Mul_output_0 + + + + +jz +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.1/LeakyRelu_output_0 + + + + +ju +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.2/Conv_output_0 + + + + +jz +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.3/LeakyRelu_output_0 + + + + +ju +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.4/Conv_output_0 + + + + +jz +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.5/LeakyRelu_output_0 + + + + +ju +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.6/Conv_output_0 + + + + +ju +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_/decom/decom.7/Relu_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_P + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre1_Q + + + + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv1/Conv_output_0 + + + + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv2/Conv_output_0 + + + + +jh +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv1/Conv_output_0 + + + + +j\ +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_output_0 + + + + +j^ +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_2_output_0 + + + + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu1/Relu_output_0 + + + + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu2/Relu_output_0 + + + + +jt +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_1/LeakyRelu_output_0 + + + + +j^ +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add_1_output_0 + + + + +ji +Mpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/Concat_output_0 + + +@ + +jh +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv2/Conv_output_0 + + + + +j +jpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/avg_pool/GlobalAveragePool_output_0 + + +@ + +jt +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_2/LeakyRelu_output_0 + + + + +ji +Wpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape_output_0 +  + +@jh +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv3/Conv_output_0 + + + + +jp +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.0/MatMul_output_0 +  + +jt +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_3/LeakyRelu_output_0 + + + + +jn +\pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.1/Relu_output_0 +  + +jh +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv4/Conv_output_0 + + + + +jp +^pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.2/MatMul_output_0 +  + +@jt +Xpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/leaky_relu_4/LeakyRelu_output_0 + + + + +jq +_pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/fc/fc.3/Sigmoid_output_0 +  + +@jh +Lpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre4_/conv5/Conv_output_0 + + + + +js +Ypre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Reshape_1_output_0 + + +@ + +jK +/pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_L + + + + +jr +Vpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Expand_output_0 + + +@ + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_3_output_0 + + + + +jo +Spre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/se_layer/Mul_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv3/Conv_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu3/Relu_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv4/Conv_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu4/Relu_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv5/Conv_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu5/Relu_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv6/Conv_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu6/Relu_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv7/Conv_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/relu7/Relu_output_0 + + +@ + +jm +Qpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_pre3_pre2_/conv8/Conv_output_0 + + + + +jP +4pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre5_R + + + + +j^ +Bpre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Mul_1_output_0 + + + + +j\ +@pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_pre6_/Add_output_0 + + + + +jN +2pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre7_P_t1 + + + + +j[ +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_3_output_0 + + + + +j[ +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_4_output_0 + + + + +j[ +?pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Slice_5_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv1/Conv_output_0 + + + + +jE +)pre21_pre19_pre17_pre16_/Slice_3_output_0 + + + + +jE +)pre21_pre19_pre17_pre16_/Slice_4_output_0 + + + + +jE +)pre21_pre19_pre17_pre16_/Slice_5_output_0 + + + + +jW +;pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_1_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_2_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_4_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_5_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Mul_6_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu1/Relu_output_0 + + + + +jA +%pre21_pre19_pre17_pre16_/Mul_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Mul_1_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Mul_2_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Mul_4_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Mul_5_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Mul_6_output_0 + + + + +jW +;pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_3_output_0 + + + + +jA +%pre21_pre19_pre17_pre16_/Add_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Add_3_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_1_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_4_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Add_1_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Add_4_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_2_output_0 + + + + +jY +=pre21_pre19_pre17_pre15_pre13_pre11_pre9_pre8_/Add_5_output_0 + + + + +jC +'pre21_pre19_pre17_pre16_/Add_5_output_0 + + + + +jI +-pre21_pre19_pre17_pre15_pre13_pre11_pre9_Q_t1 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv2/Conv_output_0 + + + + +jT +8pre21_pre19_pre17_pre15_pre13_pre12_/conv1/Conv_output_0 + + + + +jG ++pre21_pre19_pre17_pre15_pre14_/Mul_output_0 + + + + +jI +-pre21_pre19_pre17_pre15_pre14_/Mul_2_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu2/Relu_output_0 + + + + +j` +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_1/LeakyRelu_output_0 + + + + +jI +-pre21_pre19_pre17_pre15_pre14_/Add_1_output_0 + + + + +jV +:pre21_pre19_pre17_pre15_pre13_pre11_pre10_/Concat_output_0 + + +@ + +jT +8pre21_pre19_pre17_pre15_pre13_pre12_/conv2/Conv_output_0 + + + + +jq +Wpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/avg_pool/GlobalAveragePool_output_0 + + +@ + +j` +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_2/LeakyRelu_output_0 + + + + +jV +Dpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape_output_0 +  + +@jT +8pre21_pre19_pre17_pre15_pre13_pre12_/conv3/Conv_output_0 + + + + +j] +Kpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.0/MatMul_output_0 +  + +j` +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_3/LeakyRelu_output_0 + + + + +j[ +Ipre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.1/Relu_output_0 +  + +jT +8pre21_pre19_pre17_pre15_pre13_pre12_/conv4/Conv_output_0 + + + + +j] +Kpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.2/MatMul_output_0 +  + +@j` +Dpre21_pre19_pre17_pre15_pre13_pre12_/leaky_relu_4/LeakyRelu_output_0 + + + + +j^ +Lpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/fc/fc.3/Sigmoid_output_0 +  + +@jT +8pre21_pre19_pre17_pre15_pre13_pre12_/conv5/Conv_output_0 + + + + +j` +Fpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Reshape_1_output_0 + + +@ + +j5 +pre21_pre19_pre17_pre15_L + + + + +j_ +Cpre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Expand_output_0 + + +@ + +jC +'pre21_pre19_pre17_pre16_/Mul_3_output_0 + + + + +j\ +@pre21_pre19_pre17_pre15_pre13_pre11_pre10_/se_layer/Mul_output_0 + + +@ + +jC +'pre21_pre19_pre17_pre16_/Add_2_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv3/Conv_output_0 + + +@ + +j2 +pre21_pre19_pre17_Q_t2 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu3/Relu_output_0 + + +@ + +jB +&pre21_pre19_pre18_/conv2/Conv_output_0 + + + + +j< + pre21_pre20_/conv1/Conv_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv4/Conv_output_0 + + +@ + +jB +&pre21_pre19_pre18_/relu2/Relu_output_0 + + + + +jH +,pre21_pre20_/leaky_relu_1/LeakyRelu_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu4/Relu_output_0 + + +@ + +j< + pre21_pre20_/conv2/Conv_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv5/Conv_output_0 + + +@ + +jH +,pre21_pre20_/leaky_relu_2/LeakyRelu_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu5/Relu_output_0 + + +@ + +j< + pre21_pre20_/conv3/Conv_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv6/Conv_output_0 + + +@ + +jH +,pre21_pre20_/leaky_relu_3/LeakyRelu_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu6/Relu_output_0 + + +@ + +j< + pre21_pre20_/conv4/Conv_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv7/Conv_output_0 + + +@ + +jH +,pre21_pre20_/leaky_relu_4/LeakyRelu_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/relu7/Relu_output_0 + + +@ + +j< + pre21_pre20_/conv5/Conv_output_0 + + + + +jZ +>pre21_pre19_pre17_pre15_pre13_pre11_pre10_/conv8/Conv_output_0 + + + + +j# +pre21_L + + + + +j; +pre21_pre19_pre17_pre15_pre13_R + + + + +j2 +pre22_/Concat_output_0 + + + + +jI +-pre21_pre19_pre17_pre15_pre14_/Mul_1_output_0 + + + + +j6 +pre22_/conv1/Conv_output_0 + + + + +jG ++pre21_pre19_pre17_pre15_pre14_/Add_output_0 + + + + +j@ +$pre22_/leaky_relu/LeakyRelu_output_0 + + + + +j2 +pre21_pre19_pre17_P_t2 + + + + +j6 +pre22_/conv2/Conv_output_0 + + + + +jB +&pre21_pre19_pre18_/conv1/Conv_output_0 + + + + +jB +&pre22_/leaky_relu_1/LeakyRelu_output_0 + + + + +jB +&pre21_pre19_pre18_/relu1/Relu_output_0 + + + + +j6 +pre22_/conv3/Conv_output_0 + + + + +j> +"pre21_pre19_pre18_/Concat_output_0 + + +@ + +jB +&pre22_/leaky_relu_2/LeakyRelu_output_0 + + + + +jY +?pre21_pre19_pre18_/se_layer/avg_pool/GlobalAveragePool_output_0 + + +@ + +j6 +pre22_/conv4/Conv_output_0 + + + + +j> +,pre21_pre19_pre18_/se_layer/Reshape_output_0 +  + +@j5 +pre22_/relu/Relu_output_0 + + + + +jE +3pre21_pre19_pre18_/se_layer/fc/fc.0/MatMul_output_0 +  + +jC +1pre21_pre19_pre18_/se_layer/fc/fc.1/Relu_output_0 +  + +jE +3pre21_pre19_pre18_/se_layer/fc/fc.2/MatMul_output_0 +  + +@jF +4pre21_pre19_pre18_/se_layer/fc/fc.3/Sigmoid_output_0 +  + +@jH +.pre21_pre19_pre18_/se_layer/Reshape_1_output_0 + + +@ + +jG ++pre21_pre19_pre18_/se_layer/Expand_output_0 + + +@ + +jD +(pre21_pre19_pre18_/se_layer/Mul_output_0 + + +@ + +jB +&pre21_pre19_pre18_/conv3/Conv_output_0 + + +@ + +jB +&pre21_pre19_pre18_/relu3/Relu_output_0 + + +@ + +jB +&pre21_pre19_pre18_/conv4/Conv_output_0 + + +@ + +jB +&pre21_pre19_pre18_/relu4/Relu_output_0 + + +@ + +jB +&pre21_pre19_pre18_/conv5/Conv_output_0 + + +@ + +jB +&pre21_pre19_pre18_/relu5/Relu_output_0 + + +@ + +jB +&pre21_pre19_pre18_/conv6/Conv_output_0 + + +@ + +jB +&pre21_pre19_pre18_/relu6/Relu_output_0 + + +@ + +jB +&pre21_pre19_pre18_/conv7/Conv_output_0 + + +@ + +jB +&pre21_pre19_pre18_/relu7/Relu_output_0 + + +@ + +jB +&pre21_pre19_pre18_/conv8/Conv_output_0 + + + + +j# +pre21_R + + + + +B + \ No newline at end of file diff --git a/models/uretinex_net_180x320.onnx.license b/models/uretinex_net_180x320.onnx.license new file mode 100644 index 00000000..ac3ed112 --- /dev/null +++ b/models/uretinex_net_180x320.onnx.license @@ -0,0 +1,6 @@ +SPDX-FileCopyrightText: 2022 AndersonYong +SPDX-FileCopyrightText: 2022 Katsuya Hyodo +SPDX-FileCopyrightText: 2022-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: MIT diff --git a/montage.jpg b/montage.jpg deleted file mode 100644 index 46f95009..00000000 Binary files a/montage.jpg and /dev/null differ diff --git a/packaging/pkg/Distribution.xml.in b/packaging/pkg/Distribution.xml.in new file mode 100644 index 00000000..91c9b83e --- /dev/null +++ b/packaging/pkg/Distribution.xml.in @@ -0,0 +1,14 @@ + + + @PLUGIN_DISPLAY_NAME@ + + + + + + + + + + component.pkg + diff --git a/packaging/pkg/Distribution.xml.in.license b/packaging/pkg/Distribution.xml.in.license new file mode 100644 index 00000000..f9788dde --- /dev/null +++ b/packaging/pkg/Distribution.xml.in.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2026 Kaito Udagawa + +SPDX-License-Identifier: CC0-1.0 diff --git a/pages/.gitignore b/pages/.gitignore new file mode 100644 index 00000000..016b59ea --- /dev/null +++ b/pages/.gitignore @@ -0,0 +1,24 @@ +# build output +dist/ + +# generated types +.astro/ + +# dependencies +node_modules/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store + +# jetbrains setting folder +.idea/ diff --git a/pages/.ncurc.json b/pages/.ncurc.json new file mode 100644 index 00000000..47764a03 --- /dev/null +++ b/pages/.ncurc.json @@ -0,0 +1,3 @@ +{ + "reject": ["@types/node"] +} diff --git a/pages/.node-version b/pages/.node-version new file mode 100644 index 00000000..827eff45 --- /dev/null +++ b/pages/.node-version @@ -0,0 +1 @@ +24.x diff --git a/pages/.prettierrc b/pages/.prettierrc new file mode 100644 index 00000000..d87faa5d --- /dev/null +++ b/pages/.prettierrc @@ -0,0 +1,11 @@ +{ + "plugins": ["prettier-plugin-astro"], + "overrides": [ + { + "files": "*.astro", + "options": { + "parser": "astro" + } + } + ] +} diff --git a/pages/REUSE.toml b/pages/REUSE.toml new file mode 100644 index 00000000..7fb3dd27 --- /dev/null +++ b/pages/REUSE.toml @@ -0,0 +1,19 @@ +version = 1 + +# Configuration files +[[annotations]] +path = [ + ".gitignore", + ".ncurc.json", + ".node-version", + ".prettierrc", + "astro.config.mjs", + "package-lock.json", + "package.json", + "tsconfig.json", +] +SPDX-FileCopyrightText = [ + "2021-2026 Roy Shilkrot ", + "2023-2026 Kaito Udagawa ", +] +SPDX-License-Identifier = "CC0-1.0" diff --git a/pages/astro.config.mjs b/pages/astro.config.mjs new file mode 100644 index 00000000..17f6a62b --- /dev/null +++ b/pages/astro.config.mjs @@ -0,0 +1,5 @@ +// @ts-check +import { defineConfig } from "astro/config"; + +// https://astro.build/config +export default defineConfig({}); diff --git a/pages/package-lock.json b/pages/package-lock.json new file mode 100644 index 00000000..c97594f7 --- /dev/null +++ b/pages/package-lock.json @@ -0,0 +1,5154 @@ +{ + "name": "obs-backgroundremoval-pages", + "version": "1.4.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "obs-backgroundremoval-pages", + "version": "1.4.0", + "dependencies": { + "@octokit/rest": "^22.0.1", + "astro": "^6.3.8", + "pretty-bytes": "^7.1.0", + "typescript": "^6.0.3" + }, + "devDependencies": { + "@types/node": "^24.12.0", + "posthtml": "^0.16.7", + "prettier": "3.8.3", + "prettier-plugin-astro": "0.14.1" + }, + "engines": { + "node": "24.x" + } + }, + "node_modules/@astrojs/compiler": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-4.0.0.tgz", + "integrity": "sha512-eouss7G8ygdZqHuke033VMcVw5HTZUu+PXd/h06DGDUg/jt5btPYPqh66ENWw/mU78rBrf/oeC4oqoBwMtDMNA==", + "license": "MIT" + }, + "node_modules/@astrojs/internal-helpers": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.9.1.tgz", + "integrity": "sha512-1pWuARqYom/TzuU3+0ZugsTrKlUydWKuULmDqSMTuonY+9IRDUEGKX/8PXQ1nBxRq3w85uGtd9q9SXfqEldMIQ==", + "license": "MIT", + "dependencies": { + "picomatch": "^4.0.4" + } + }, + "node_modules/@astrojs/markdown-remark": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.1.2.tgz", + "integrity": "sha512-caXZ4Dc2St2dW8luEg22GlP0gupLdztCTQE4EzZOxW1pqWXz9mbeJEuHUkgDYcKWW8tjIHkydYDhWLVoxJ327Q==", + "license": "MIT", + "dependencies": { + "@astrojs/internal-helpers": "0.9.1", + "@astrojs/prism": "4.0.2", + "github-slugger": "^2.0.0", + "hast-util-from-html": "^2.0.3", + "hast-util-to-text": "^4.0.2", + "js-yaml": "^4.1.1", + "mdast-util-definitions": "^6.0.0", + "rehype-raw": "^7.0.0", + "rehype-stringify": "^10.0.1", + "remark-gfm": "^4.0.1", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.1.2", + "remark-smartypants": "^3.0.2", + "retext-smartypants": "^6.2.0", + "shiki": "^4.0.0", + "smol-toml": "^1.6.0", + "unified": "^11.0.5", + "unist-util-remove-position": "^5.0.0", + "unist-util-visit": "^5.1.0", + "unist-util-visit-parents": "^6.0.2", + "vfile": "^6.0.3" + } + }, + "node_modules/@astrojs/prism": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-4.0.2.tgz", + "integrity": "sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA==", + "license": "MIT", + "dependencies": { + "prismjs": "^1.30.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@astrojs/telemetry": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.3.2.tgz", + "integrity": "sha512-j8DNruA8ors99Al39RYZPJK4DC1bKkoNm93mAMuBhY9TCNC4R8n1q7ovFnJ5qhGh5Lsh7pa1gpQVpYpsJPeTHQ==", + "license": "MIT", + "dependencies": { + "ci-info": "^4.4.0", + "dset": "^3.1.4", + "is-docker": "^4.0.0", + "is-wsl": "^3.1.1", + "which-pm-runs": "^1.1.0" + }, + "engines": { + "node": "18.20.8 || ^20.3.0 || >=22.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", + "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@capsizecss/unpack": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@capsizecss/unpack/-/unpack-4.0.0.tgz", + "integrity": "sha512-VERIM64vtTP1C4mxQ5thVT9fK0apjPFobqybMtA1UdUujWka24ERHbRHFGmpbbhp73MhV+KSsHQH9C6uOTdEQA==", + "license": "MIT", + "dependencies": { + "fontkitten": "^1.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@clack/core": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.1.0.tgz", + "integrity": "sha512-SVcm4Dqm2ukn64/8Gub2wnlA5nS2iWJyCkdNHcvNHPIeBTGojpdJ+9cZKwLfmqy7irD4N5qLteSilJlE0WLAtA==", + "license": "MIT", + "dependencies": { + "sisteransi": "^1.0.5" + } + }, + "node_modules/@clack/prompts": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.1.0.tgz", + "integrity": "sha512-pkqbPGtohJAvm4Dphs2M8xE29ggupihHdy1x84HNojZuMtFsHiUlRvqD24tM2+XmI+61LlfNceM3Wr7U5QES5g==", + "license": "MIT", + "dependencies": { + "@clack/core": "1.1.0", + "sisteransi": "^1.0.5" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz", + "integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.4.tgz", + "integrity": "sha512-cQPwL2mp2nSmHHJlCyoXgHGhbEPMrEEU5xhkcy3Hs/O7nGZqEpZ2sUtLaL9MORLtDfRvVl2/3PAuEkYZH0Ty8Q==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.4.tgz", + "integrity": "sha512-X9bUgvxiC8CHAGKYufLIHGXPJWnr0OCdR0anD2e21vdvgCI8lIfqFbnoeOz7lBjdrAGUhqLZLcQo6MLhTO2DKQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.4.tgz", + "integrity": "sha512-gdLscB7v75wRfu7QSm/zg6Rx29VLdy9eTr2t44sfTW7CxwAtQghZ4ZnqHk3/ogz7xao0QAgrkradbBzcqFPasw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.4.tgz", + "integrity": "sha512-PzPFnBNVF292sfpfhiyiXCGSn9HZg5BcAz+ivBuSsl6Rk4ga1oEXAamhOXRFyMcjwr2DVtm40G65N3GLeH1Lvw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.4.tgz", + "integrity": "sha512-b7xaGIwdJlht8ZFCvMkpDN6uiSmnxxK56N2GDTMYPr2/gzvfdQN8rTfBsvVKmIVY/X7EM+/hJKEIbbHs9oA4tQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.4.tgz", + "integrity": "sha512-sR+OiKLwd15nmCdqpXMnuJ9W2kpy0KigzqScqHI3Hqwr7IXxBp3Yva+yJwoqh7rE8V77tdoheRYataNKL4QrPw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.4.tgz", + "integrity": "sha512-jnfpKe+p79tCnm4GVav68A7tUFeKQwQyLgESwEAUzyxk/TJr4QdGog9sqWNcUbr/bZt/O/HXouspuQDd9JxFSw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.4.tgz", + "integrity": "sha512-2kb4ceA/CpfUrIcTUl1wrP/9ad9Atrp5J94Lq69w7UwOMolPIGrfLSvAKJp0RTvkPPyn6CIWrNy13kyLikZRZQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.4.tgz", + "integrity": "sha512-aBYgcIxX/wd5n2ys0yESGeYMGF+pv6g0DhZr3G1ZG4jMfruU9Tl1i2Z+Wnj9/KjGz1lTLCcorqE2viePZqj4Eg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.4.tgz", + "integrity": "sha512-7nQOttdzVGth1iz57kxg9uCz57dxQLHWxopL6mYuYthohPKEK0vU0C3O21CcBK6KDlkYVcnDXY099HcCDXd9dA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.4.tgz", + "integrity": "sha512-oPtixtAIzgvzYcKBQM/qZ3R+9TEUd1aNJQu0HhGyqtx6oS7qTpvjheIWBbes4+qu1bNlo2V4cbkISr8q6gRBFA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.4.tgz", + "integrity": "sha512-8mL/vh8qeCoRcFH2nM8wm5uJP+ZcVYGGayMavi8GmRJjuI3g1v6Z7Ni0JJKAJW+m0EtUuARb6Lmp4hMjzCBWzA==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.4.tgz", + "integrity": "sha512-1RdrWFFiiLIW7LQq9Q2NES+HiD4NyT8Itj9AUeCl0IVCA459WnPhREKgwrpaIfTOe+/2rdntisegiPWn/r/aAw==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.4.tgz", + "integrity": "sha512-tLCwNG47l3sd9lpfyx9LAGEGItCUeRCWeAx6x2Jmbav65nAwoPXfewtAdtbtit/pJFLUWOhpv0FpS6GQAmPrHA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.4.tgz", + "integrity": "sha512-BnASypppbUWyqjd1KIpU4AUBiIhVr6YlHx/cnPgqEkNoVOhHg+YiSVxM1RLfiy4t9cAulbRGTNCKOcqHrEQLIw==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.4.tgz", + "integrity": "sha512-+eUqgb/Z7vxVLezG8bVB9SfBie89gMueS+I0xYh2tJdw3vqA/0ImZJ2ROeWwVJN59ihBeZ7Tu92dF/5dy5FttA==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.4.tgz", + "integrity": "sha512-S5qOXrKV8BQEzJPVxAwnryi2+Iq5pB40gTEIT69BQONqR7JH1EPIcQ/Uiv9mCnn05jff9umq/5nqzxlqTOg9NA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.4.tgz", + "integrity": "sha512-xHT8X4sb0GS8qTqiwzHqpY00C95DPAq7nAwX35Ie/s+LO9830hrMd3oX0ZMKLvy7vsonee73x0lmcdOVXFzd6Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.4.tgz", + "integrity": "sha512-RugOvOdXfdyi5Tyv40kgQnI0byv66BFgAqjdgtAKqHoZTbTF2QqfQrFwa7cHEORJf6X2ht+l9ABLMP0dnKYsgg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.4.tgz", + "integrity": "sha512-2MyL3IAaTX+1/qP0O1SwskwcwCoOI4kV2IBX1xYnDDqthmq5ArrW94qSIKCAuRraMgPOmG0RDTA74mzYNQA9ow==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.4.tgz", + "integrity": "sha512-u8fg/jQ5aQDfsnIV6+KwLOf1CmJnfu1ShpwqdwC0uA7ZPwFws55Ngc12vBdeUdnuWoQYx/SOQLGDcdlfXhYmXQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.4.tgz", + "integrity": "sha512-JkTZrl6VbyO8lDQO3yv26nNr2RM2yZzNrNHEsj9bm6dOwwu9OYN28CjzZkH57bh4w0I2F7IodpQvUAEd1mbWXg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.4.tgz", + "integrity": "sha512-/gOzgaewZJfeJTlsWhvUEmUG4tWEY2Spp5M20INYRg2ZKl9QPO3QEEgPeRtLjEWSW8FilRNacPOg8R1uaYkA6g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.4.tgz", + "integrity": "sha512-Z9SExBg2y32smoDQdf1HRwHRt6vAHLXcxD2uGgO/v2jK7Y718Ix4ndsbNMU/+1Qiem9OiOdaqitioZwxivhXYg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.4.tgz", + "integrity": "sha512-DAyGLS0Jz5G5iixEbMHi5KdiApqHBWMGzTtMiJ72ZOLhbu/bzxgAe8Ue8CTS3n3HbIUHQz/L51yMdGMeoxXNJw==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.4.tgz", + "integrity": "sha512-+knoa0BDoeXgkNvvV1vvbZX4+hizelrkwmGJBdT17t8FNPwG2lKemmuMZlmaNQ3ws3DKKCxpb4zRZEIp3UxFCg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/colour": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz", + "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.2.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz", + "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.2.4" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz", + "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz", + "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz", + "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==", + "cpu": [ + "arm" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz", + "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz", + "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==", + "cpu": [ + "ppc64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz", + "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==", + "cpu": [ + "riscv64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz", + "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==", + "cpu": [ + "s390x" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz", + "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz", + "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz", + "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz", + "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz", + "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz", + "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==", + "cpu": [ + "ppc64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz", + "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==", + "cpu": [ + "riscv64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz", + "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==", + "cpu": [ + "s390x" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.2.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz", + "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.2.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz", + "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz", + "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.2.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz", + "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==", + "cpu": [ + "wasm32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.7.0" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz", + "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz", + "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz", + "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@octokit/auth-token": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-6.0.0.tgz", + "integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==", + "license": "MIT", + "engines": { + "node": ">= 20" + } + }, + "node_modules/@octokit/core": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz", + "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", + "license": "MIT", + "dependencies": { + "@octokit/auth-token": "^6.0.0", + "@octokit/graphql": "^9.0.3", + "@octokit/request": "^10.0.6", + "@octokit/request-error": "^7.0.2", + "@octokit/types": "^16.0.0", + "before-after-hook": "^4.0.0", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/@octokit/endpoint": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.3.tgz", + "integrity": "sha512-FWFlNxghg4HrXkD3ifYbS/IdL/mDHjh9QcsNyhQjN8dplUoZbejsdpmuqdA76nxj2xoWPs7p8uX2SNr9rYu0Ag==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^16.0.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/@octokit/graphql": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.3.tgz", + "integrity": "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==", + "license": "MIT", + "dependencies": { + "@octokit/request": "^10.0.6", + "@octokit/types": "^16.0.0", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "27.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz", + "integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==", + "license": "MIT" + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-14.0.0.tgz", + "integrity": "sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^16.0.0" + }, + "engines": { + "node": ">= 20" + }, + "peerDependencies": { + "@octokit/core": ">=6" + } + }, + "node_modules/@octokit/plugin-request-log": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-6.0.0.tgz", + "integrity": "sha512-UkOzeEN3W91/eBq9sPZNQ7sUBvYCqYbrrD8gTbBuGtHEuycE4/awMXcYvx6sVYo7LypPhmQwwpUe4Yyu4QZN5Q==", + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "peerDependencies": { + "@octokit/core": ">=6" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "17.0.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-17.0.0.tgz", + "integrity": "sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^16.0.0" + }, + "engines": { + "node": ">= 20" + }, + "peerDependencies": { + "@octokit/core": ">=6" + } + }, + "node_modules/@octokit/request": { + "version": "10.0.8", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.8.tgz", + "integrity": "sha512-SJZNwY9pur9Agf7l87ywFi14W+Hd9Jg6Ifivsd33+/bGUQIjNujdFiXII2/qSlN2ybqUHfp5xpekMEjIBTjlSw==", + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^11.0.3", + "@octokit/request-error": "^7.0.2", + "@octokit/types": "^16.0.0", + "fast-content-type-parse": "^3.0.0", + "json-with-bigint": "^3.5.3", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/@octokit/request-error": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.0.tgz", + "integrity": "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^16.0.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/@octokit/rest": { + "version": "22.0.1", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-22.0.1.tgz", + "integrity": "sha512-Jzbhzl3CEexhnivb1iQ0KJ7s5vvjMWcmRtq5aUsKmKDrRW6z3r84ngmiFKFvpZjpiU/9/S6ITPFRpn5s/3uQJw==", + "license": "MIT", + "dependencies": { + "@octokit/core": "^7.0.6", + "@octokit/plugin-paginate-rest": "^14.0.0", + "@octokit/plugin-request-log": "^6.0.0", + "@octokit/plugin-rest-endpoint-methods": "^17.0.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/@octokit/types": { + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz", + "integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^27.0.0" + } + }, + "node_modules/@oslojs/encoding": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@oslojs/encoding/-/encoding-1.1.0.tgz", + "integrity": "sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==", + "license": "MIT" + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", + "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", + "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", + "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", + "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", + "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", + "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", + "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", + "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", + "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", + "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", + "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", + "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", + "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", + "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", + "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", + "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", + "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz", + "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz", + "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz", + "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz", + "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz", + "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz", + "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz", + "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz", + "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@shikijs/core": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.1.0.tgz", + "integrity": "sha512-jLJtSJeuFffqX6/inRE1zqU5aFv2hrszvYgq3OjbAgFRZiWv7abKMDdQzYxuSDfmUPQozZvI/kuy6VMTvnvqTQ==", + "license": "MIT", + "dependencies": { + "@shikijs/primitive": "4.1.0", + "@shikijs/types": "4.1.0", + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4", + "hast-util-to-html": "^9.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-javascript": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.1.0.tgz", + "integrity": "sha512-YquhawCUgaBfhsS72e2Y/dI59gCBNPHu3fEO/tvLaXrTssxZrY5ddjtNLTwndrMgPo8b3IscE+xoICDzpTmlFQ==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.1.0", + "@shikijs/vscode-textmate": "^10.0.2", + "oniguruma-to-es": "^4.3.6" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.1.0.tgz", + "integrity": "sha512-axLpjVs45YBvvINa+dJF+NPW+KtFkNXsFr4SDw2BMj9GdeMnGxVB9PQb2xXlJYovslt/nz6giedAyOANkfc7hg==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.1.0", + "@shikijs/vscode-textmate": "^10.0.2" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/langs": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.1.0.tgz", + "integrity": "sha512-nwOMruEkbgdZfQ/b8CgpNBVOpvG1k0N5tbmgiFeqsan401+x3ILqlzZJowSla4Agmq4hG2Uf2wh5jLTEhR8VSg==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.1.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/primitive": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.1.0.tgz", + "integrity": "sha512-zx2/2Uwj2q9X3KSyYREEhXO23xBw5WUhP4orK2lE4r+t9JGITmEe0JH+wPmJhqHpOT2bRRs6lAL945+LDvOAGw==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.1.0", + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/themes": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.1.0.tgz", + "integrity": "sha512-emCcTnUM7yO2wltYbaxm+yLvcCI4+h8XBKc4KmJ7EZUXoSGjcCHifkI//R4OFit9ewpg7H2/9tjOuXrT2v/Knw==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.1.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/types": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.1.0.tgz", + "integrity": "sha512-3EQWX54fMpniOrDblzAhiwiJwpiTMW6+B9DWyUd9ska483tbayFYuw47UxwuPknI31bKnySfVQ/QW+jFL4rFdA==", + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", + "license": "MIT" + }, + "node_modules/@types/debug": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "license": "MIT" + }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/nlcst": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/nlcst/-/nlcst-2.0.3.tgz", + "integrity": "sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/node": { + "version": "24.12.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.0.tgz", + "integrity": "sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "license": "ISC" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/array-iterate": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.1.tgz", + "integrity": "sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/astro": { + "version": "6.3.8", + "resolved": "https://registry.npmjs.org/astro/-/astro-6.3.8.tgz", + "integrity": "sha512-xH2UA8Z17IS+JaqSlSkBor7jO6gd7zXTLdmu06nKpfpDDJFbi/7KZEy3NDmWxmier+6XrCZ9Z4aitO8jhC9oiA==", + "license": "MIT", + "dependencies": { + "@astrojs/compiler": "^4.0.0", + "@astrojs/internal-helpers": "0.9.1", + "@astrojs/markdown-remark": "7.1.2", + "@astrojs/telemetry": "3.3.2", + "@capsizecss/unpack": "^4.0.0", + "@clack/prompts": "^1.1.0", + "@oslojs/encoding": "^1.1.0", + "@rollup/pluginutils": "^5.3.0", + "aria-query": "^5.3.2", + "axobject-query": "^4.1.0", + "ci-info": "^4.4.0", + "clsx": "^2.1.1", + "common-ancestor-path": "^2.0.0", + "cookie": "^1.1.1", + "devalue": "^5.6.3", + "diff": "^8.0.3", + "dset": "^3.1.4", + "es-module-lexer": "^2.0.0", + "esbuild": "^0.27.3", + "flattie": "^1.1.1", + "fontace": "~0.4.1", + "get-tsconfig": "5.0.0-beta.4", + "github-slugger": "^2.0.0", + "html-escaper": "3.0.3", + "http-cache-semantics": "^4.2.0", + "js-yaml": "^4.1.1", + "jsonc-parser": "^3.3.1", + "magic-string": "^0.30.21", + "magicast": "^0.5.2", + "mrmime": "^2.0.1", + "neotraverse": "^0.6.18", + "obug": "^2.1.1", + "p-limit": "^7.3.0", + "p-queue": "^9.1.0", + "package-manager-detector": "^1.6.0", + "piccolore": "^0.1.3", + "picomatch": "^4.0.4", + "rehype": "^13.0.2", + "semver": "^7.7.4", + "shiki": "^4.0.2", + "smol-toml": "^1.6.0", + "svgo": "^4.0.1", + "tinyclip": "^0.1.12", + "tinyexec": "^1.0.4", + "tinyglobby": "^0.2.15", + "ultrahtml": "^1.6.0", + "unifont": "~0.7.4", + "unist-util-visit": "^5.1.0", + "unstorage": "^1.17.5", + "vfile": "^6.0.3", + "vite": "^7.3.2", + "vitefu": "^1.1.2", + "xxhash-wasm": "^1.1.0", + "yargs-parser": "^22.0.0", + "zod": "^4.3.6" + }, + "bin": { + "astro": "bin/astro.mjs" + }, + "engines": { + "node": ">=22.12.0", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/astrodotbuild" + }, + "optionalDependencies": { + "sharp": "^0.34.0" + } + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/before-after-hook": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-4.0.0.tgz", + "integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==", + "license": "Apache-2.0" + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "license": "ISC" + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ci-info": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/commander": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, + "node_modules/common-ancestor-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-2.0.0.tgz", + "integrity": "sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">= 18" + } + }, + "node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cookie-es": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.3.tgz", + "integrity": "sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw==", + "license": "MIT" + }, + "node_modules/crossws": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.3.5.tgz", + "integrity": "sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==", + "license": "MIT", + "dependencies": { + "uncrypto": "^0.1.3" + } + }, + "node_modules/css-select": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz", + "integrity": "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select/node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domutils": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/css-select/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/css-tree": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", + "license": "MIT", + "dependencies": { + "mdn-data": "2.27.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/css-what": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz", + "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/csso": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", + "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==", + "license": "MIT", + "dependencies": { + "css-tree": "~2.2.0" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/css-tree": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz", + "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.28", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", + "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==", + "license": "CC0-1.0" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-named-character-reference": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", + "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", + "license": "MIT", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/defu": { + "version": "6.1.7", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", + "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==", + "license": "MIT" + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/devalue": { + "version": "5.6.4", + "resolved": "https://registry.npmjs.org/devalue/-/devalue-5.6.4.tgz", + "integrity": "sha512-Gp6rDldRsFh/7XuouDbxMH3Mx8GMCcgzIb1pDTvNyn8pZGQ22u+Wa+lGV9dQCltFQ7uVw0MhRyb8XDskNFOReA==", + "license": "MIT" + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/diff": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.3.tgz", + "integrity": "sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "license": "BSD-2-Clause", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dset": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz", + "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-module-lexer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz", + "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==", + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.27.4", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.4.tgz", + "integrity": "sha512-Rq4vbHnYkK5fws5NF7MYTU68FPRE1ajX7heQ/8QXXWqNgqqJ/GkmmyxIzUnf2Sr/bakf8l54716CcMGHYhMrrQ==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.4", + "@esbuild/android-arm": "0.27.4", + "@esbuild/android-arm64": "0.27.4", + "@esbuild/android-x64": "0.27.4", + "@esbuild/darwin-arm64": "0.27.4", + "@esbuild/darwin-x64": "0.27.4", + "@esbuild/freebsd-arm64": "0.27.4", + "@esbuild/freebsd-x64": "0.27.4", + "@esbuild/linux-arm": "0.27.4", + "@esbuild/linux-arm64": "0.27.4", + "@esbuild/linux-ia32": "0.27.4", + "@esbuild/linux-loong64": "0.27.4", + "@esbuild/linux-mips64el": "0.27.4", + "@esbuild/linux-ppc64": "0.27.4", + "@esbuild/linux-riscv64": "0.27.4", + "@esbuild/linux-s390x": "0.27.4", + "@esbuild/linux-x64": "0.27.4", + "@esbuild/netbsd-arm64": "0.27.4", + "@esbuild/netbsd-x64": "0.27.4", + "@esbuild/openbsd-arm64": "0.27.4", + "@esbuild/openbsd-x64": "0.27.4", + "@esbuild/openharmony-arm64": "0.27.4", + "@esbuild/sunos-x64": "0.27.4", + "@esbuild/win32-arm64": "0.27.4", + "@esbuild/win32-ia32": "0.27.4", + "@esbuild/win32-x64": "0.27.4" + } + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "license": "MIT" + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/fast-content-type-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-3.0.0.tgz", + "integrity": "sha512-ZvLdcY8P+N8mGQJahJV5G4U88CSvT1rP8ApL6uETe88MBXrBHAkZlSEySdUlyztF7ccb+Znos3TFqaepHxdhBg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/flattie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/flattie/-/flattie-1.1.1.tgz", + "integrity": "sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/fontace": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/fontace/-/fontace-0.4.1.tgz", + "integrity": "sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw==", + "license": "MIT", + "dependencies": { + "fontkitten": "^1.0.2" + } + }, + "node_modules/fontkitten": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fontkitten/-/fontkitten-1.0.3.tgz", + "integrity": "sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==", + "license": "MIT", + "dependencies": { + "tiny-inflate": "^1.0.3" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-tsconfig": { + "version": "5.0.0-beta.4", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-5.0.0-beta.4.tgz", + "integrity": "sha512-7nF7C9fIPFEMHgEMEfgIlO9wDdZ8CyHw27rWciFZfHvHDReIiPhsYuzPRXsfvBCqFy1l8RRyyWV7QLM+ZhUJsQ==", + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "engines": { + "node": ">=20.20.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/github-slugger": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", + "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", + "license": "ISC" + }, + "node_modules/h3": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.11.tgz", + "integrity": "sha512-L3THSe2MPeBwgIZVSH5zLdBBU90TOxarvhK9d04IDY2AmVS8j2Jz2LIWtwsGOU3lu2I5jCN7FNvVfY2+XyF+mg==", + "license": "MIT", + "dependencies": { + "cookie-es": "^1.2.3", + "crossws": "^0.3.5", + "defu": "^6.1.6", + "destr": "^2.0.5", + "iron-webcrypto": "^1.2.1", + "node-mock-http": "^1.0.4", + "radix3": "^1.1.2", + "ufo": "^1.6.3", + "uncrypto": "^0.1.3" + } + }, + "node_modules/hast-util-from-html": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz", + "integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.1.0", + "hast-util-from-parse5": "^8.0.0", + "parse5": "^7.0.0", + "vfile": "^6.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-parse5": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.3.tgz", + "integrity": "sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "devlop": "^1.0.0", + "hastscript": "^9.0.0", + "property-information": "^7.0.0", + "vfile": "^6.0.0", + "vfile-location": "^5.0.0", + "web-namespaces": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-is-element": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz", + "integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-parse-selector": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", + "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-raw": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.1.0.tgz", + "integrity": "sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "@ungap/structured-clone": "^1.0.0", + "hast-util-from-parse5": "^8.0.0", + "hast-util-to-parse5": "^8.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "parse5": "^7.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0", + "web-namespaces": "^2.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-html": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz", + "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-parse5": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.1.tgz", + "integrity": "sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "devlop": "^1.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "web-namespaces": "^2.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-text": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz", + "integrity": "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "hast-util-is-element": "^3.0.0", + "unist-util-find-after": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hastscript": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz", + "integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-parse-selector": "^4.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/html-escaper": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz", + "integrity": "sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==", + "license": "MIT" + }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/htmlparser2": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-7.2.0.tgz", + "integrity": "sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==", + "dev": true, + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.2", + "domutils": "^2.8.0", + "entities": "^3.0.1" + } + }, + "node_modules/htmlparser2/node_modules/entities": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", + "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "license": "BSD-2-Clause" + }, + "node_modules/iron-webcrypto": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", + "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/brc-dd" + } + }, + "node_modules/is-docker": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-4.0.0.tgz", + "integrity": "sha512-LHE+wROyG/Y/0ZnbktRCoTix2c1RhgWaZraMZ8o1Q7zCh0VSrICJQO5oqIIISrcSBtrXv0o233w1IYwsWCjTzA==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container/node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-json": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-json/-/is-json-2.0.1.tgz", + "integrity": "sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-with-bigint": { + "version": "3.5.7", + "resolved": "https://registry.npmjs.org/json-with-bigint/-/json-with-bigint-3.5.7.tgz", + "integrity": "sha512-7ei3MdAI5+fJPVnKlW77TKNKwQ5ppSzWvhPuSuINT/GYW9ZOC1eRKOuhV9yHG5aEsUPj9BBx5JIekkmoLHxZOw==", + "license": "MIT" + }, + "node_modules/jsonc-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "license": "MIT" + }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/lru-cache": { + "version": "11.5.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.1.tgz", + "integrity": "sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/magicast": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.2.tgz", + "integrity": "sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "source-map-js": "^1.2.1" + } + }, + "node_modules/markdown-table": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", + "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/mdast-util-definitions": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-6.0.0.tgz", + "integrity": "sha512-scTllyX6pnYNZH/AIp/0ePz6s4cZtARxImwoPJ7kS42n+MnVsI4XbnG6d4ibehRIldYMWM2LD7ImQblVhUejVQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-find-and-replace": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", + "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz", + "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "license": "MIT", + "dependencies": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-autolink-literal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", + "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-strikethrough": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", + "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-table": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", + "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-task-list-item": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", + "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", + "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", + "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdn-data": { + "version": "2.27.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", + "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", + "license": "CC0-1.0" + }, + "node_modules/micromark": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", + "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", + "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "license": "MIT", + "dependencies": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-table": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", + "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", + "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", + "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/mrmime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", + "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/neotraverse": { + "version": "0.6.18", + "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-0.6.18.tgz", + "integrity": "sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/nlcst-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/nlcst-to-string/-/nlcst-to-string-4.0.0.tgz", + "integrity": "sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/node-fetch-native": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz", + "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==", + "license": "MIT" + }, + "node_modules/node-mock-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/node-mock-http/-/node-mock-http-1.0.4.tgz", + "integrity": "sha512-8DY+kFsDkNXy1sJglUfuODx1/opAGJGyrTuFqEoN90oRc2Vk0ZbD4K2qmKXBBEhZQzdKHIVfEJpDU8Ak2NJEvQ==", + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/obug": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz", + "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==", + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT" + }, + "node_modules/ofetch": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.5.1.tgz", + "integrity": "sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==", + "license": "MIT", + "dependencies": { + "destr": "^2.0.5", + "node-fetch-native": "^1.6.7", + "ufo": "^1.6.1" + } + }, + "node_modules/ohash": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz", + "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==", + "license": "MIT" + }, + "node_modules/oniguruma-parser": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz", + "integrity": "sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==", + "license": "MIT" + }, + "node_modules/oniguruma-to-es": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.6.tgz", + "integrity": "sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==", + "license": "MIT", + "dependencies": { + "oniguruma-parser": "^0.12.2", + "regex": "^6.1.0", + "regex-recursion": "^6.0.2" + } + }, + "node_modules/p-limit": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-7.3.0.tgz", + "integrity": "sha512-7cIXg/Z0M5WZRblrsOla88S4wAK+zOQQWeBYfV3qJuJXMr+LnbYjaadrFaS0JILfEDPVqHyKnZ1Z/1d6J9VVUw==", + "license": "MIT", + "dependencies": { + "yocto-queue": "^1.2.1" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-queue": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-9.1.0.tgz", + "integrity": "sha512-O/ZPaXuQV29uSLbxWBGGZO1mCQXV2BLIwUr59JUU9SoH76mnYvtms7aafH/isNSNGwuEfP6W/4xD0/TJXxrizw==", + "license": "MIT", + "dependencies": { + "eventemitter3": "^5.0.1", + "p-timeout": "^7.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-timeout": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-7.0.1.tgz", + "integrity": "sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-manager-detector": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz", + "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==", + "license": "MIT" + }, + "node_modules/parse-latin": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/parse-latin/-/parse-latin-7.0.0.tgz", + "integrity": "sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0", + "@types/unist": "^3.0.0", + "nlcst-to-string": "^4.0.0", + "unist-util-modify-children": "^4.0.0", + "unist-util-visit-children": "^3.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "license": "MIT", + "dependencies": { + "entities": "^6.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/piccolore": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/piccolore/-/piccolore-0.1.3.tgz", + "integrity": "sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw==", + "license": "ISC" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.8", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz", + "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/posthtml": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/posthtml/-/posthtml-0.16.7.tgz", + "integrity": "sha512-7Hc+IvlQ7hlaIfQFZnxlRl0jnpWq2qwibORBhQYIb0QbNtuicc5ZxvKkVT71HJ4Py1wSZ/3VR1r8LfkCtoCzhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "posthtml-parser": "^0.11.0", + "posthtml-render": "^3.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/posthtml-parser": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.11.0.tgz", + "integrity": "sha512-QecJtfLekJbWVo/dMAA+OSwY79wpRmbqS5TeXvXSX+f0c6pW4/SE6inzZ2qkU7oAMCPqIDkZDvd/bQsSFUnKyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "htmlparser2": "^7.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/posthtml-render": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/posthtml-render/-/posthtml-render-3.0.0.tgz", + "integrity": "sha512-z+16RoxK3fUPgwaIgH9NGnK1HKY9XIDpydky5eQGgAFVXTCSezalv9U2jQuNV+Z9qV1fDWNzldcw4eK0SSbqKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-json": "^2.0.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/prettier": { + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz", + "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-plugin-astro": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/prettier-plugin-astro/-/prettier-plugin-astro-0.14.1.tgz", + "integrity": "sha512-RiBETaaP9veVstE4vUwSIcdATj6dKmXljouXc/DDNwBSPTp8FRkLGDSGFClKsAFeeg+13SB0Z1JZvbD76bigJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@astrojs/compiler": "^2.9.1", + "prettier": "^3.0.0", + "sass-formatter": "^0.7.6" + }, + "engines": { + "node": "^14.15.0 || >=16.0.0" + } + }, + "node_modules/prettier-plugin-astro/node_modules/@astrojs/compiler": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.13.1.tgz", + "integrity": "sha512-f3FN83d2G/v32ipNClRKgYv30onQlMZX1vCeZMjPsMMPl1mDpmbl0+N5BYo4S/ofzqJyS5hvwacEo0CCVDn/Qg==", + "dev": true, + "license": "MIT" + }, + "node_modules/pretty-bytes": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-7.1.0.tgz", + "integrity": "sha512-nODzvTiYVRGRqAOvE84Vk5JDPyyxsVk0/fbA/bq7RqlnhksGpset09XTxbpvLTIjoaF7K8Z8DG8yHtKGTPSYRw==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/prismjs": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz", + "integrity": "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/property-information": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz", + "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/radix3": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", + "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==", + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz", + "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz", + "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz", + "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "license": "MIT" + }, + "node_modules/rehype": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/rehype/-/rehype-13.0.2.tgz", + "integrity": "sha512-j31mdaRFrwFRUIlxGeuPXXKWQxet52RBQRvCmzl5eCefn/KGbomK5GMHNMsOJf55fgo3qw5tST5neDuarDYR2A==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "rehype-parse": "^9.0.0", + "rehype-stringify": "^10.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-parse": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/rehype-parse/-/rehype-parse-9.0.1.tgz", + "integrity": "sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-from-html": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-raw": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/rehype-raw/-/rehype-raw-7.0.0.tgz", + "integrity": "sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-raw": "^9.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-stringify": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/rehype-stringify/-/rehype-stringify-10.0.1.tgz", + "integrity": "sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-to-html": "^9.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-gfm": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz", + "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-gfm": "^3.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz", + "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "mdast-util-to-hast": "^13.0.0", + "unified": "^11.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-smartypants": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-3.0.2.tgz", + "integrity": "sha512-ILTWeOriIluwEvPjv67v7Blgrcx+LZOkAUVtKI3putuhlZm84FnqDORNXPPm+HY3NdZOMhyDwZ1E+eZB/Df5dA==", + "license": "MIT", + "dependencies": { + "retext": "^9.0.0", + "retext-smartypants": "^6.0.0", + "unified": "^11.0.4", + "unist-util-visit": "^5.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/remark-stringify": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", + "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-to-markdown": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/retext": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/retext/-/retext-9.0.0.tgz", + "integrity": "sha512-sbMDcpHCNjvlheSgMfEcVrZko3cDzdbe1x/e7G66dFp0Ff7Mldvi2uv6JkJQzdRcvLYE8CA8Oe8siQx8ZOgTcA==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0", + "retext-latin": "^4.0.0", + "retext-stringify": "^4.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/retext-latin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/retext-latin/-/retext-latin-4.0.0.tgz", + "integrity": "sha512-hv9woG7Fy0M9IlRQloq/N6atV82NxLGveq+3H2WOi79dtIYWN8OaxogDm77f8YnVXJL2VD3bbqowu5E3EMhBYA==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0", + "parse-latin": "^7.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/retext-smartypants": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/retext-smartypants/-/retext-smartypants-6.2.0.tgz", + "integrity": "sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0", + "nlcst-to-string": "^4.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/retext-stringify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/retext-stringify/-/retext-stringify-4.0.0.tgz", + "integrity": "sha512-rtfN/0o8kL1e+78+uxPTqu1Klt0yPzKuQ2BfWwwfgIUSayyzxpM1PJzkKt4V8803uB9qSy32MvI7Xep9khTpiA==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0", + "nlcst-to-string": "^4.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rollup": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", + "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.59.0", + "@rollup/rollup-android-arm64": "4.59.0", + "@rollup/rollup-darwin-arm64": "4.59.0", + "@rollup/rollup-darwin-x64": "4.59.0", + "@rollup/rollup-freebsd-arm64": "4.59.0", + "@rollup/rollup-freebsd-x64": "4.59.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", + "@rollup/rollup-linux-arm-musleabihf": "4.59.0", + "@rollup/rollup-linux-arm64-gnu": "4.59.0", + "@rollup/rollup-linux-arm64-musl": "4.59.0", + "@rollup/rollup-linux-loong64-gnu": "4.59.0", + "@rollup/rollup-linux-loong64-musl": "4.59.0", + "@rollup/rollup-linux-ppc64-gnu": "4.59.0", + "@rollup/rollup-linux-ppc64-musl": "4.59.0", + "@rollup/rollup-linux-riscv64-gnu": "4.59.0", + "@rollup/rollup-linux-riscv64-musl": "4.59.0", + "@rollup/rollup-linux-s390x-gnu": "4.59.0", + "@rollup/rollup-linux-x64-gnu": "4.59.0", + "@rollup/rollup-linux-x64-musl": "4.59.0", + "@rollup/rollup-openbsd-x64": "4.59.0", + "@rollup/rollup-openharmony-arm64": "4.59.0", + "@rollup/rollup-win32-arm64-msvc": "4.59.0", + "@rollup/rollup-win32-ia32-msvc": "4.59.0", + "@rollup/rollup-win32-x64-gnu": "4.59.0", + "@rollup/rollup-win32-x64-msvc": "4.59.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/s.color": { + "version": "0.0.15", + "resolved": "https://registry.npmjs.org/s.color/-/s.color-0.0.15.tgz", + "integrity": "sha512-AUNrbEUHeKY8XsYr/DYpl+qk5+aM+DChopnWOPEzn8YKzOhv4l2zH6LzZms3tOZP3wwdOyc0RmTciyi46HLIuA==", + "dev": true, + "license": "MIT" + }, + "node_modules/sass-formatter": { + "version": "0.7.9", + "resolved": "https://registry.npmjs.org/sass-formatter/-/sass-formatter-0.7.9.tgz", + "integrity": "sha512-CWZ8XiSim+fJVG0cFLStwDvft1VI7uvXdCNJYXhDvowiv+DsbD1nXLiQ4zrE5UBvj5DWZJ93cwN0NX5PMsr1Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "suf-log": "^2.5.3" + } + }, + "node_modules/sax": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.0.tgz", + "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, + "node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sharp": { + "version": "0.34.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz", + "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==", + "hasInstallScript": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/colour": "^1.0.0", + "detect-libc": "^2.1.2", + "semver": "^7.7.3" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.34.5", + "@img/sharp-darwin-x64": "0.34.5", + "@img/sharp-libvips-darwin-arm64": "1.2.4", + "@img/sharp-libvips-darwin-x64": "1.2.4", + "@img/sharp-libvips-linux-arm": "1.2.4", + "@img/sharp-libvips-linux-arm64": "1.2.4", + "@img/sharp-libvips-linux-ppc64": "1.2.4", + "@img/sharp-libvips-linux-riscv64": "1.2.4", + "@img/sharp-libvips-linux-s390x": "1.2.4", + "@img/sharp-libvips-linux-x64": "1.2.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", + "@img/sharp-libvips-linuxmusl-x64": "1.2.4", + "@img/sharp-linux-arm": "0.34.5", + "@img/sharp-linux-arm64": "0.34.5", + "@img/sharp-linux-ppc64": "0.34.5", + "@img/sharp-linux-riscv64": "0.34.5", + "@img/sharp-linux-s390x": "0.34.5", + "@img/sharp-linux-x64": "0.34.5", + "@img/sharp-linuxmusl-arm64": "0.34.5", + "@img/sharp-linuxmusl-x64": "0.34.5", + "@img/sharp-wasm32": "0.34.5", + "@img/sharp-win32-arm64": "0.34.5", + "@img/sharp-win32-ia32": "0.34.5", + "@img/sharp-win32-x64": "0.34.5" + } + }, + "node_modules/shiki": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.1.0.tgz", + "integrity": "sha512-l/ABZPUR5v70jI10EzqfMS/I96vjSGv2y0ihUV+WYFzv0EfvW4s54m0Lg8wCrrL+2IkwBzFTuxkZjPf8b2NX9Q==", + "license": "MIT", + "dependencies": { + "@shikijs/core": "4.1.0", + "@shikijs/engine-javascript": "4.1.0", + "@shikijs/engine-oniguruma": "4.1.0", + "@shikijs/langs": "4.1.0", + "@shikijs/themes": "4.1.0", + "@shikijs/types": "4.1.0", + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "license": "MIT" + }, + "node_modules/smol-toml": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.6.1.tgz", + "integrity": "sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 18" + }, + "funding": { + "url": "https://github.com/sponsors/cyyynthia" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/suf-log": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/suf-log/-/suf-log-2.5.3.tgz", + "integrity": "sha512-KvC8OPjzdNOe+xQ4XWJV2whQA0aM1kGVczMQ8+dStAO6KfEB140JEVQ9dE76ONZ0/Ylf67ni4tILPJB41U0eow==", + "dev": true, + "license": "MIT", + "dependencies": { + "s.color": "0.0.15" + } + }, + "node_modules/svgo": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.1.tgz", + "integrity": "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==", + "license": "MIT", + "dependencies": { + "commander": "^11.1.0", + "css-select": "^5.1.0", + "css-tree": "^3.0.1", + "css-what": "^6.1.0", + "csso": "^5.0.5", + "picocolors": "^1.1.1", + "sax": "^1.5.0" + }, + "bin": { + "svgo": "bin/svgo.js" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/svgo" + } + }, + "node_modules/tiny-inflate": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", + "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==", + "license": "MIT" + }, + "node_modules/tinyclip": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/tinyclip/-/tinyclip-0.1.12.tgz", + "integrity": "sha512-Ae3OVUqifDw0wBriIBS7yVaW44Dp6eSHQcyq4Igc7eN2TJH/2YsicswaW+J/OuMvhpDPOKEgpAZCjkb4hpoyeA==", + "license": "MIT", + "engines": { + "node": "^16.14.0 || >= 17.3.0" + } + }, + "node_modules/tinyexec": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.4.tgz", + "integrity": "sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD", + "optional": true + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz", + "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==", + "license": "MIT" + }, + "node_modules/ultrahtml": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ultrahtml/-/ultrahtml-1.6.0.tgz", + "integrity": "sha512-R9fBn90VTJrqqLDwyMph+HGne8eqY1iPfYhPzZrvKpIfwkWZbcYlfpsb8B9dTvBfpy1/hqAD7Wi8EKfP9e8zdw==", + "license": "MIT" + }, + "node_modules/uncrypto": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/uncrypto/-/uncrypto-0.1.3.tgz", + "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==", + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unifont": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/unifont/-/unifont-0.7.4.tgz", + "integrity": "sha512-oHeis4/xl42HUIeHuNZRGEvxj5AaIKR+bHPNegRq5LV1gdc3jundpONbjglKpihmJf+dswygdMJn3eftGIMemg==", + "license": "MIT", + "dependencies": { + "css-tree": "^3.1.0", + "ofetch": "^1.5.1", + "ohash": "^2.0.11" + } + }, + "node_modules/unist-util-find-after": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz", + "integrity": "sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-modify-children": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-modify-children/-/unist-util-modify-children-4.0.0.tgz", + "integrity": "sha512-+tdN5fGNddvsQdIzUF3Xx82CU9sMM+fA0dLgR9vOmT0oPT2jH+P1nd5lSqfCfXAw+93NhcXNY2qqvTUtE4cQkw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "array-iterate": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-remove-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz", + "integrity": "sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz", + "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-children": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit-children/-/unist-util-visit-children-3.0.0.tgz", + "integrity": "sha512-RgmdTfSBOg04sdPcpTSD1jzoNBjt9a80/ZCzp5cI9n1qPzLZWF9YdvWGN2zmTumP1HWhXKdUWexjy/Wy/lJ7tA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz", + "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/universal-user-agent": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.3.tgz", + "integrity": "sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==", + "license": "ISC" + }, + "node_modules/unstorage": { + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.17.5.tgz", + "integrity": "sha512-0i3iqvRfx29hkNntHyQvJTpf5W9dQ9ZadSoRU8+xVlhVtT7jAX57fazYO9EHvcRCfBCyi5YRya7XCDOsbTgkPg==", + "license": "MIT", + "dependencies": { + "anymatch": "^3.1.3", + "chokidar": "^5.0.0", + "destr": "^2.0.5", + "h3": "^1.15.10", + "lru-cache": "^11.2.7", + "node-fetch-native": "^1.6.7", + "ofetch": "^1.5.1", + "ufo": "^1.6.3" + }, + "peerDependencies": { + "@azure/app-configuration": "^1.8.0", + "@azure/cosmos": "^4.2.0", + "@azure/data-tables": "^13.3.0", + "@azure/identity": "^4.6.0", + "@azure/keyvault-secrets": "^4.9.0", + "@azure/storage-blob": "^12.26.0", + "@capacitor/preferences": "^6 || ^7 || ^8", + "@deno/kv": ">=0.9.0", + "@netlify/blobs": "^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0", + "@planetscale/database": "^1.19.0", + "@upstash/redis": "^1.34.3", + "@vercel/blob": ">=0.27.1", + "@vercel/functions": "^2.2.12 || ^3.0.0", + "@vercel/kv": "^1 || ^2 || ^3", + "aws4fetch": "^1.0.20", + "db0": ">=0.2.1", + "idb-keyval": "^6.2.1", + "ioredis": "^5.4.2", + "uploadthing": "^7.4.4" + }, + "peerDependenciesMeta": { + "@azure/app-configuration": { + "optional": true + }, + "@azure/cosmos": { + "optional": true + }, + "@azure/data-tables": { + "optional": true + }, + "@azure/identity": { + "optional": true + }, + "@azure/keyvault-secrets": { + "optional": true + }, + "@azure/storage-blob": { + "optional": true + }, + "@capacitor/preferences": { + "optional": true + }, + "@deno/kv": { + "optional": true + }, + "@netlify/blobs": { + "optional": true + }, + "@planetscale/database": { + "optional": true + }, + "@upstash/redis": { + "optional": true + }, + "@vercel/blob": { + "optional": true + }, + "@vercel/functions": { + "optional": true + }, + "@vercel/kv": { + "optional": true + }, + "aws4fetch": { + "optional": true + }, + "db0": { + "optional": true + }, + "idb-keyval": { + "optional": true + }, + "ioredis": { + "optional": true + }, + "uploadthing": { + "optional": true + } + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-location": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.3.tgz", + "integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", + "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vite": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.3.tgz", + "integrity": "sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==", + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vitefu": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.2.tgz", + "integrity": "sha512-zpKATdUbzbsycPFBN71nS2uzBUQiVnFoOrr2rvqv34S1lcAgMKKkjWleLGeiJlZ8lwCXvtWaRn7R3ZC16SYRuw==", + "license": "MIT", + "workspaces": [ + "tests/deps/*", + "tests/projects/*", + "tests/projects/workspace/packages/*" + ], + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0" + }, + "peerDependenciesMeta": { + "vite": { + "optional": true + } + } + }, + "node_modules/web-namespaces": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", + "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/which-pm-runs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz", + "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/xxhash-wasm": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz", + "integrity": "sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==", + "license": "MIT" + }, + "node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yocto-queue": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz", + "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==", + "license": "MIT", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/pages/package.json b/pages/package.json new file mode 100644 index 00000000..49323be2 --- /dev/null +++ b/pages/package.json @@ -0,0 +1,26 @@ +{ + "name": "obs-backgroundremoval-pages", + "type": "module", + "version": "1.4.0", + "scripts": { + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "engines": { + "node": "24.x" + }, + "dependencies": { + "@octokit/rest": "^22.0.1", + "astro": "^6.3.8", + "pretty-bytes": "^7.1.0", + "typescript": "^6.0.3" + }, + "devDependencies": { + "@types/node": "^24.12.0", + "posthtml": "^0.16.7", + "prettier": "3.8.3", + "prettier-plugin-astro": "0.14.1" + } +} diff --git a/pages/public/apple-touch-icon.png b/pages/public/apple-touch-icon.png new file mode 100644 index 00000000..b894e198 Binary files /dev/null and b/pages/public/apple-touch-icon.png differ diff --git a/pages/public/apple-touch-icon.png.license b/pages/public/apple-touch-icon.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/public/apple-touch-icon.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/public/favicon-96x96.png b/pages/public/favicon-96x96.png new file mode 100644 index 00000000..5128b88d Binary files /dev/null and b/pages/public/favicon-96x96.png differ diff --git a/pages/public/favicon-96x96.png.license b/pages/public/favicon-96x96.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/public/favicon-96x96.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/public/favicon.ico b/pages/public/favicon.ico new file mode 100644 index 00000000..28b0bded Binary files /dev/null and b/pages/public/favicon.ico differ diff --git a/pages/public/favicon.ico.license b/pages/public/favicon.ico.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/public/favicon.ico.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/public/favicon.svg b/pages/public/favicon.svg new file mode 100644 index 00000000..bd090e6e --- /dev/null +++ b/pages/public/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/pages/public/favicon.svg.license b/pages/public/favicon.svg.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/public/favicon.svg.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/public/github-mark-white.svg b/pages/public/github-mark-white.svg new file mode 100644 index 00000000..d5e64918 --- /dev/null +++ b/pages/public/github-mark-white.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pages/public/github-mark-white.svg.license b/pages/public/github-mark-white.svg.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/public/github-mark-white.svg.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/public/web-app-manifest-192x192.png b/pages/public/web-app-manifest-192x192.png new file mode 100644 index 00000000..540257c7 Binary files /dev/null and b/pages/public/web-app-manifest-192x192.png differ diff --git a/pages/public/web-app-manifest-192x192.png.license b/pages/public/web-app-manifest-192x192.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/public/web-app-manifest-192x192.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/public/web-app-manifest-512x512.png b/pages/public/web-app-manifest-512x512.png new file mode 100644 index 00000000..336169fa Binary files /dev/null and b/pages/public/web-app-manifest-512x512.png differ diff --git a/pages/public/web-app-manifest-512x512.png.license b/pages/public/web-app-manifest-512x512.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/public/web-app-manifest-512x512.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/scripts/add-csp-hashes.mjs b/pages/scripts/add-csp-hashes.mjs new file mode 100755 index 00000000..6b9e16cf --- /dev/null +++ b/pages/scripts/add-csp-hashes.mjs @@ -0,0 +1,158 @@ +#!/usr/bin/env node + +// SPDX-FileCopyrightText: 2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +/// + +import { readFile, writeFile, glob } from "node:fs/promises"; +import posthtml from "posthtml"; + +console.time("[CSP] Total time"); + +const args = process.argv.slice(2); +if (args.length < 1) { + console.error("Usage: node add-csp-hashes.mjs "); + console.error("Run this script with Node.js 24.x or later"); + process.exit(1); +} + +const distDir = args[0]; + +async function generateHash(content) { + const encoder = new TextEncoder(); + const data = encoder.encode(content); + + const hashBuffer = await crypto.subtle.digest("SHA-256", data); + + const base64String = Buffer.from(hashBuffer).toString("base64"); + + return `sha256-${base64String}`; +} + +/** + * @param {string} cspString + * @returns {Generator<{name: string, values: string[]}, void, unknown>} + */ +function* parseCsp(cspString) { + function* splitDirectives(cspString) { + for (const rawToken of cspString.split(/;/)) { + const token = rawToken.trim(); + if (token === "") continue; + const m = token.match(/^([^ ]+)(.*)$/); + if (m == null || m.length !== 3) continue; + const name = m[1].toLowerCase(); + const values = m[2] + .trim() + .split(/ +/) + .filter((v) => v !== ""); + yield { name, values }; + } + } + + /** @type {Set} */ + const processedDirectives = new Set(); + + for (const { name, values } of splitDirectives(cspString)) { + if (!processedDirectives.has(name)) { + processedDirectives.add(name); + yield { name, values }; + } + } +} + +/** + * @param {string} cspString + * @param {string} directiveName + * @param {string[]} hashes + * @return {string} + */ +function updateCSPDirective(cspString, directiveName, hashes) { + const hashValues = hashes.map((h) => `'${h}'`); + + const csp = Array.from(parseCsp(cspString)); + const index = csp.findIndex(({ name }) => name === directiveName); + if (index >= 0) { + csp[index].values = Array.from( + new Set([...csp[index].values, ...hashValues]), + ).toSorted(); + } else { + csp.push({ name: directiveName, values: hashValues.toSorted() }); + } + + return ( + csp.map(({ name, values }) => `${name} ${values.join(" ")}`).join("; ") + + ";" + ); +} + +/** + * @param {import("posthtml").Node} tree + * @returns {Promise} + */ +const cspHashPlugin = async (tree) => { + const scriptsToHash = []; + const stylesToHash = []; + + tree.walk((node) => { + if (node.tag === "script" && !node.attrs?.src && node.content) { + const content = node.content.join(""); + if (content.trim()) { + scriptsToHash.push(content); + } + } + + if (node.tag === "style" && node.content) { + const content = node.content.join(""); + if (content.trim()) { + stylesToHash.push(content); + } + } + return node; + }); + + const scriptHashes = await Promise.all(scriptsToHash.map(generateHash)); + const styleHashes = await Promise.all(stylesToHash.map(generateHash)); + + tree.match({ tag: "meta" }, (node) => { + if (!node.attrs) { + return node; + } + + const httpEquiv = node.attrs["http-equiv"]; + if (!httpEquiv || httpEquiv.toLowerCase() !== "content-security-policy") { + return node; + } + + let csp = node.attrs.content ?? ""; + + if (scriptHashes.length > 0) { + csp = updateCSPDirective(csp, "script-src", scriptHashes); + } + + if (styleHashes.length > 0) { + csp = updateCSPDirective(csp, "style-src", styleHashes); + } + + node.attrs.content = csp; + return node; + }); + + return tree; +}; + +let processedCount = 0; +console.log(`[CSP] Scanning HTML files in ${distDir} using Web Crypto API...`); + +for await (const htmlPath of glob(`${distDir}/**/*.html`)) { + const html = await readFile(htmlPath, "utf-8"); + + const result = await posthtml([cspHashPlugin]).process(html); + + await writeFile(htmlPath, result.html); + processedCount++; +} + +console.log(`[CSP] Updated CSP meta tags in ${processedCount} HTML files.`); +console.timeEnd("[CSP] Total time"); diff --git a/pages/scripts/add-sri.mjs b/pages/scripts/add-sri.mjs new file mode 100755 index 00000000..d537ebc4 --- /dev/null +++ b/pages/scripts/add-sri.mjs @@ -0,0 +1,145 @@ +#!/usr/bin/env node + +// SPDX-FileCopyrightText: 2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +/// + +import { glob, readFile, writeFile } from "node:fs/promises"; +import { relative, resolve, sep } from "node:path"; +import posthtml from "posthtml"; + +/** + * @param {string} urlString + * @returns {URL} + */ +function toNormalizedURL(urlString) { + const url = new URL(`${urlString}/`); + url.pathname = url.pathname.replace(/\/+$/, "/"); + return url; +} + +/** + * @param {string} filePath + * @returns {string} + */ +function toPosixPath(filePath) { + return filePath.split(sep).join("/"); +} + +/** + * @param {string} url + * @return {boolean} + */ +function isExternalUrl(url) { + return ( + url.startsWith("http://") || + url.startsWith("https://") || + url.startsWith("//") + ); +} + +/** + * @param {string} filePath + * @returns {Promise} + */ +async function sha384(filePath) { + const content = await readFile(filePath); + const hash = await crypto.subtle.digest("SHA-384", content); + return `sha384-${Buffer.from(hash).toString("base64")}`; +} + +async function createIntegrityMap(distDir, productionBaseUrl) { + /** @type {Map} */ + const integrityMap = new Map(); + + for await (const filePath of glob(`${distDir}/**/*.{js,css}`)) { + const relativePath = toPosixPath(relative(distDir, filePath)); + const url = new URL(relativePath, productionBaseUrl); + integrityMap.set(url.pathname, await sha384(filePath)); + } + + return integrityMap; +} + +/** + * @param {string} distDir + * @param {string} productionBaseUrl + * @param {Map} integrityMap + * @return {import("posthtml").Plugin} + */ +function addSriPlugin(distDir, productionBaseUrl, integrityMap) { + /** + * @param {import("posthtml").Node} tree + * @return {Promise} + */ + return async function (tree) { + if (!tree.options || !tree.options.htmlPath) { + throw new Error("addSriPlugin requires htmlPath option"); + } + + const htmlRelativePath = toPosixPath( + relative(distDir, resolve(tree.options.htmlPath)), + ); + const htmlBaseUrl = new URL(htmlRelativePath, productionBaseUrl); + + tree.match( + [{ tag: "script" }, { tag: "link", attrs: { rel: "stylesheet" } }], + (node) => { + const attrs = node.attrs ?? {}; + const assetRef = attrs.src ?? attrs.href; + + if (!assetRef || isExternalUrl(assetRef)) { + return node; + } + + const url = new URL(assetRef, htmlBaseUrl); + const integrity = integrityMap.get(url.pathname); + + if (integrity) { + node.attrs = { + ...attrs, + integrity, + crossorigin: "anonymous", + }; + } + return node; + }, + ); + return tree; + }; +} + +if (process.argv.length !== 4) { + console.error("Usage: node add-sri.mjs "); + process.exit(1); +} + +console.time("[SRI] Total time"); + +const PRODUCTION_BASE_URL = toNormalizedURL(process.argv[2]); +const distDir = process.argv[3]; + +console.log("[SRI] Hashing JS/CSS assets..."); + +const integrityMap = await createIntegrityMap(distDir, PRODUCTION_BASE_URL); + +console.log(`[SRI] Processing HTML with ${integrityMap.size} hashed assets...`); + +const processor = posthtml([ + addSriPlugin(distDir, PRODUCTION_BASE_URL, integrityMap), +]); + +let processedCount = 0; + +for await (const htmlPath of glob(`${distDir}/**/*.html`)) { + const html = await readFile(htmlPath, "utf8"); + const result = await processor.process(html, { htmlPath }); + + await writeFile(htmlPath, result.html); + processedCount++; +} + +console.log(`[SRI] Added standard integrity to ${processedCount} HTML files.`); +console.timeEnd("[SRI] Total time"); diff --git a/pages/scripts/generate-provenance.mjs b/pages/scripts/generate-provenance.mjs new file mode 100755 index 00000000..32ee355a --- /dev/null +++ b/pages/scripts/generate-provenance.mjs @@ -0,0 +1,187 @@ +#!/usr/bin/env node + +// SPDX-FileCopyrightText: 2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +// Run this script with Node 24.x + +/// + +import { glob, readFile, writeFile } from "node:fs/promises"; +import { join, relative, resolve, sep } from "node:path"; + +/** + * @param {string} name + * @returns {string} + */ +function readEnv(name) { + const value = process.env[name]; + if (value === undefined) { + throw new Error(`${name} is not defined`); + } + return value; +} + +/** + * @param {string} urlString + * @returns {URL} + */ +function toNormalizedURL(urlString) { + const url = new URL(`${urlString}/`); + url.pathname = url.pathname.replace(/\/+$/, "/"); + return url; +} + +/** + * @param {string} filePath + * @returns {string} + */ +function toPosixPath(filePath) { + return filePath.split(sep).join("/"); +} + +/** + * @param {string} dir + * @returns {AsyncGenerator} + */ +async function* lsFiles(dir) { + for await (const entry of glob(join(dir, "**/*"), { withFileTypes: true })) { + if (entry.isFile()) { + yield entry; + } + } +} + +/** + * @param {Buffer} content + * @returns {Promise} + */ +async function calculateSha384Hex(content) { + const arrayHash = await crypto.subtle.digest("SHA-384", content); + const uint8Array = new Uint8Array(arrayHash); + let hex = ""; + for (let i = 0; i < uint8Array.length; i++) { + hex += uint8Array[i].toString(16).padStart(2, "0"); + } + return hex; +} + +/** + * @param {any} value + * @return {any} + */ +function deepSort(value) { + if (value === null || typeof value !== "object") { + return value; + } + + if (Array.isArray(value)) { + return value.map(deepSort); + } + + return Object.keys(value) + .sort() + .reduce((sorted, key) => { + sorted[key] = deepSort(value[key]); + return sorted; + }, {}); +} + +if (globalThis.crypto === undefined) { + throw new Error("WebCrypto is required to run this script"); +} + +const GITHUB_EVENT_NAME = readEnv("GITHUB_EVENT_NAME"); +const GITHUB_REF = readEnv("GITHUB_REF"); +const GITHUB_REPOSITORY_ID = readEnv("GITHUB_REPOSITORY_ID"); +const GITHUB_REPOSITORY_OWNER_ID = readEnv("GITHUB_REPOSITORY_OWNER_ID"); +const GITHUB_REPOSITORY = readEnv("GITHUB_REPOSITORY"); +const GITHUB_RUN_ATTEMPT = readEnv("GITHUB_RUN_ATTEMPT"); +const GITHUB_RUN_ID = readEnv("GITHUB_RUN_ID"); +const GITHUB_SERVER_URL = readEnv("GITHUB_SERVER_URL"); +const GITHUB_SHA = readEnv("GITHUB_SHA"); +const GITHUB_WORKFLOW_REF = readEnv("GITHUB_WORKFLOW_REF"); +const RUNNER_ENVIRONMENT = readEnv("RUNNER_ENVIRONMENT"); + +if (process.argv.length !== 5) { + console.error( + "Usage: node generate-provenance.mjs ", + ); + process.exit(1); +} + +const PRODUCTION_BASE_URL = toNormalizedURL(process.argv[2]); +const distDir = process.argv[3]; +const outputFile = process.argv[4]; + +const repoUri = `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}`; +const workflowPath = GITHUB_WORKFLOW_REF.replace( + `${GITHUB_REPOSITORY}/`, + "", +).split("@")[0]; + +/** @type {Array<{ name: string, digest: { sha384: string }, size: number }>} */ +const subjects = []; + +for await (const { name, parentPath } of lsFiles(distDir)) { + const filePath = resolve(parentPath, name); + const content = await readFile(filePath); + const hexHash = await calculateSha384Hex(content); + const size = Buffer.byteLength(content); + + subjects.push({ + name: new URL( + toPosixPath(relative(distDir, filePath)), + PRODUCTION_BASE_URL, + ).toString(), + digest: { sha384: hexHash }, + size, + }); +} + +subjects.sort((a, b) => a.name.localeCompare(b.name)); + +const rawManifest = { + _type: "https://in-toto.io/Statement/v1", + subject: subjects, + predicateType: "https://slsa.dev/provenance/v1", + predicate: { + buildDefinition: { + buildType: "https://actions.github.io/buildtypes/workflow/v1", + externalParameters: { + workflow: { + ref: GITHUB_REF, + repository: repoUri, + path: workflowPath, + }, + }, + internalParameters: { + github: { + event_name: GITHUB_EVENT_NAME, + repository_id: GITHUB_REPOSITORY_ID, + repository_owner_id: GITHUB_REPOSITORY_OWNER_ID, + runner_environment: RUNNER_ENVIRONMENT, + }, + }, + resolvedDependencies: [ + { + uri: `git+${repoUri}@${GITHUB_REF}`, + digest: { sha1: GITHUB_SHA }, + }, + ], + }, + runDetails: { + builder: { + id: `${GITHUB_SERVER_URL}/${GITHUB_WORKFLOW_REF}`, + }, + metadata: { + invocationId: `${repoUri}/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT}`, + }, + }, + }, +}; + +const manifest = deepSort(rawManifest); + +await writeFile(outputFile, JSON.stringify(manifest, null, 2)); diff --git a/pages/src/assets/addAVideoCaptureSource.png b/pages/src/assets/addAVideoCaptureSource.png new file mode 100644 index 00000000..2afc2791 Binary files /dev/null and b/pages/src/assets/addAVideoCaptureSource.png differ diff --git a/pages/src/assets/addAVideoCaptureSource.png.license b/pages/src/assets/addAVideoCaptureSource.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/src/assets/addAVideoCaptureSource.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/src/assets/addBackgroundRemoval.png b/pages/src/assets/addBackgroundRemoval.png new file mode 100644 index 00000000..b883527c Binary files /dev/null and b/pages/src/assets/addBackgroundRemoval.png differ diff --git a/pages/src/assets/addBackgroundRemoval.png.license b/pages/src/assets/addBackgroundRemoval.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/src/assets/addBackgroundRemoval.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/src/assets/captureFilters.png b/pages/src/assets/captureFilters.png new file mode 100644 index 00000000..da74d88e Binary files /dev/null and b/pages/src/assets/captureFilters.png differ diff --git a/pages/src/assets/captureFilters.png.license b/pages/src/assets/captureFilters.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/src/assets/captureFilters.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/src/assets/demo.gif b/pages/src/assets/demo.gif new file mode 100644 index 00000000..d1295eb4 Binary files /dev/null and b/pages/src/assets/demo.gif differ diff --git a/pages/src/assets/demo.gif.license b/pages/src/assets/demo.gif.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/src/assets/demo.gif.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/src/assets/filterSettings.png b/pages/src/assets/filterSettings.png new file mode 100644 index 00000000..7066aacf Binary files /dev/null and b/pages/src/assets/filterSettings.png differ diff --git a/pages/src/assets/filterSettings.png.license b/pages/src/assets/filterSettings.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/src/assets/filterSettings.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/src/assets/filterSettingsAdvanced.png b/pages/src/assets/filterSettingsAdvanced.png new file mode 100644 index 00000000..07fc46d3 Binary files /dev/null and b/pages/src/assets/filterSettingsAdvanced.png differ diff --git a/pages/src/assets/filterSettingsAdvanced.png.license b/pages/src/assets/filterSettingsAdvanced.png.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/src/assets/filterSettingsAdvanced.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/src/assets/obs-backgroundremoval-icon.jpg b/pages/src/assets/obs-backgroundremoval-icon.jpg new file mode 100644 index 00000000..29e240f1 Binary files /dev/null and b/pages/src/assets/obs-backgroundremoval-icon.jpg differ diff --git a/pages/src/assets/obs-backgroundremoval-icon.jpg.license b/pages/src/assets/obs-backgroundremoval-icon.jpg.license new file mode 100644 index 00000000..febc34fd --- /dev/null +++ b/pages/src/assets/obs-backgroundremoval-icon.jpg.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: GPL-3.0-or-later diff --git a/pages/src/components/DefineFileVerifierDropArea.astro b/pages/src/components/DefineFileVerifierDropArea.astro new file mode 100644 index 00000000..fc2738b3 --- /dev/null +++ b/pages/src/components/DefineFileVerifierDropArea.astro @@ -0,0 +1,84 @@ +--- +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +import { transform } from "esbuild"; + +import FileVerifierDropAreaRaw from "./FileVerifierDropArea.ts?raw"; + +export interface FileVerifierFileDroppedDetail { + name: string; + size: number; + sha256Buffer: ArrayBuffer; +} + +export interface FileVerifierErrorDetail { + name: string; + size: number; + error: unknown; +} + +declare global { + interface HTMLElementEventMap { + "file-verifier-file-dropped": CustomEvent; + "file-verifier-error": CustomEvent; + } +} + +export function aggressiveMinify(source: string) { + source = source + /* --- CSS Optimization --- */ + // Remove whitespace around separators ({, :, ;, ,) + .replace(/\s*(? .2s) + .replace(/0\./g, ".") + + /* --- HTML Whitespace Removal --- */ + // Remove all newlines + .replace(/\n/g, "") + // Remove whitespace between tags (e.g., \s+<") + // Collapse multiple consecutive spaces into a single space + .replace(/\s+/g, " ") + + /* --- Attributes & Cleanup --- */ + // Remove quotes around alphanumeric attributes (e.g., id="f" -> id=f) + .replace(/="\s*([a-zA-Z0-9_-]+)\s*"/g, "=$1") + // Remove whitespace immediately after a CSS closing brace + .replace(/}\s+/g, "}") + + // Final trim + .trim(); + + return source; +} + +export function mangleClassNames(source: string) { + return source.replaceAll("active", "a"); +} + +export async function generateCode() { + const compactFileVerifierDropAreaRaw = FileVerifierDropAreaRaw.replaceAll( + /\/\*css\*\/\s*`([\s\S]*?)`/g, + (match, innerHTML) => { + return "`" + aggressiveMinify(innerHTML) + "`"; + }, + ); + + const { code } = await transform(compactFileVerifierDropAreaRaw, { + loader: "ts", + minify: true, + target: "esnext", + }); + + return mangleClassNames(code); +} + +const code = await generateCode(); +--- + + + + + + diff --git a/pages/src/pages/versions/index.astro b/pages/src/pages/versions/index.astro new file mode 100644 index 00000000..f3a64ae2 --- /dev/null +++ b/pages/src/pages/versions/index.astro @@ -0,0 +1,147 @@ +--- +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +import { joinURL, withTrailingSlash } from "ufo"; +import { Octokit, type RestEndpointMethodTypes } from "@octokit/rest"; + +import { + GITHUB_OWNER, + GITHUB_REPO, + GITHUB_URL, + PRODUCTION_BASE_URL, +} from "../../lib/info.js"; +import DefineLocalDate from "../../components/DefineLocalDate.astro"; +import Layout from "../../layouts/Layout.astro"; + +export type Releases = + RestEndpointMethodTypes["repos"]["listReleases"]["response"]["data"]; + +const { BASE_URL } = import.meta.env; + +async function listReleases(): Promise { + const octokit = new Octokit({ auth: import.meta.env.GITHUB_TOKEN }); + + const allReleases = await octokit.paginate(octokit.rest.repos.listReleases, { + owner: GITHUB_OWNER, + repo: GITHUB_REPO, + per_page: 100, + }); + + return allReleases; +} + +const releases = (await listReleases()).filter( + (r) => !r.draft && r.published_at, +); + +if (releases.length === 0) { + throw new Error("No releases found."); +} + +const latestRelease = releases[0]; +const pastReleases = releases.slice(1); +--- + + + + + + + + + + + +

+
+

Version History

+

OBS Background Removal

+
+ +

Latest Release

+

+ {latestRelease.tag_name} + { + [ + "(", + + + , + ")", + ] + } + +

+ + + +
+ +

Past Versions

+ +
+ + + diff --git a/pages/src/pages/windows.astro b/pages/src/pages/windows.astro new file mode 100644 index 00000000..45a33061 --- /dev/null +++ b/pages/src/pages/windows.astro @@ -0,0 +1,174 @@ +--- +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +import { joinURL, withTrailingSlash } from "ufo"; +import { Octokit, type RestEndpointMethodTypes } from "@octokit/rest"; + +import Layout from "../layouts/Layout.astro"; + +import { GITHUB_OWNER, GITHUB_REPO, PRODUCTION_BASE_URL, PLUGIN_TUTORIAL_YOUTUBE_COURSE_URL } from "../lib/info.js"; + +import GitHubMarkWhite from "../../public/github-mark-white.svg"; + +export type LatestRelease = + RestEndpointMethodTypes["repos"]["getLatestRelease"]["response"]["data"]; + +const { BASE_URL } = import.meta.env; + +async function getLatestRelease(): Promise { + const octokit = new Octokit({ auth: import.meta.env.GITHUB_TOKEN }); + + const latestRelease = await octokit.rest.repos.getLatestRelease({ + owner: GITHUB_OWNER, + repo: GITHUB_REPO, + }); + + return latestRelease.data; +} + +const release = await getLatestRelease(); + +const assetX64 = release.assets.find((e) => /windows-x64\.zip/.test(e.name)); +if (!assetX64) throw new Error("Windows x64 asset not found!"); +--- + + + + + + + +
+

Windows Installation Guide

+

How to use our Background Removal plugin on Windows

+ + + +

+ Here we describe how you can install our Background Removal plugin into + your OBS Studio on Windows. +

+ +
+ + +
+ +

Installing version {release.tag_name}

+ +
    +
  1. + Download ZIP: The latest release of our plugin is { + release.tag_name + }.
    + Please download our plugin from the GitHub Release of version { + release.tag_name + }.
    +
    +
    + 📝 The {release.tag_name} release page on GitHub: +
    +
    {release.html_url}
    +
    ⬇️ Direct download link for Windows x64 ZIP:
    +
    + {assetX64.browser_download_url} +
    +
    +
  2. +
  3. + Extract ZIP File:
    + The ZIP file you downloaded has some files and a folder named obs-backgroundremoval. This folder is the bundle of our plugin, and you need to place this + folder where your OBS Studio can find it. Please read README.txt in the + ZIP file and follow the instructions to install our plugin. +
  4. +
  5. + Place obs-backgroundremoval Folder into + C:/ProgramData/obs-studio/plugins
    +
    +
    📝 How to install plugin on Windows.txt:
    +
    + A text file to guide you through the installation process on + Windows. +
    +
    ⤵️ Install Into Here:
    +
    A shortcut to C:/ProgramData/obs-studio/plugins.
    +
    📂 obs-backgroundremoval:
    +
    The plugin itself.
    +
    + ProgramData is a system folder that stores application data such as databases + and plugins. To open this folder, press Win + R, and type C:/ProgramData, then press Enter. File Explorer will open in ProgramData. In this + folder, please create a + obs-studio/plugins subfolder and place the obs-backgroundremoval folder inside it. When you finish this step, you have C:/ProgramData/obs-studio/plugins/obs-backgroundremoval. +
  6. +
  7. + Restart OBS Studio:
    + Once you have installed a new plugin into OBS Studio, you need to restart + OBS Studio for these changes to take effect. Open the effect filters list of + any video sources to check if there are Background Removal and Low-Light Enhancement + filters available. +
  8. +
  9. + Set up our plugin as described in Usage page:
    + Background Removal and Low-Light Enhancement filters can be applied to any + video sources or groups in OBS Studio. If you don't see any of our filters, + please check the Plugin Manager in the Tools menu. + GitHub Discussions may be helpful to solve your problem as well. +
  10. +
+ +

+ Back to the top page +

+
+
diff --git a/pages/src/styles/global.css b/pages/src/styles/global.css new file mode 100644 index 00000000..267f4d6b --- /dev/null +++ b/pages/src/styles/global.css @@ -0,0 +1,147 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +:root { + --color-bg-0: rgb(202, 216, 228); + --color-bg-1: hsl(209, 36%, 86%); + --color-bg-2: hsl(224, 44%, 95%); + --color-button-1: #007acc; + --color-button-2: #189cff; + --color-white-box-bg: #fbfbfb; + --color-box-shadow: #0000001a; + --color-download-button-bg: #007acc; + --color-download-button-active-bg: #189cff; + --color-download-button-fg: #fff; + --color-github-black: #24292f; + --color-alert-bg: #fff3cd; + --color-alert-fg: #856404; +} + +main.white-box { + max-width: 800px; + width: 100%; + margin: 1rem auto; + padding: 2rem; + box-sizing: border-box; + overflow: visible; + + border-radius: 8px; + box-shadow: 0 4px 8px var(--color-box-shadow); + + background-color: var(--color-white-box-bg); +} + +.astro-code { + padding: 10px; +} + +html, +body { + margin: 0; + width: 100%; + height: 100%; +} + +html { + background-attachment: fixed; + background-image: linear-gradient( + 180deg, + var(--color-bg-0) 0%, + var(--color-bg-1) 15%, + var(--color-bg-2) 50% + ); +} + +footer { + margin: auto; + display: flex; + flex-direction: column; + align-items: center; +} + +ul.download-links { + display: flex; + justify-content: center; + flex-wrap: wrap; + gap: 20px; + list-style: none; + padding: 0; +} + +ul.download-links > li > a { + display: flex; + align-items: center; + justify-content: center; + padding: 10px 20px; + background-color: var(--color-download-button-bg); + color: var(--color-download-button-fg); + text-align: center; + text-decoration: none; + font-size: 18px; + border-radius: 5px; + transition: background-color 0.3s ease; + font-weight: bold; +} + +ul.download-links > li > a:hover { + background-color: var(--color-download-button-active-bg); +} + +.alert-box { + background-color: var(--color-alert-bg); + color: var(--color-alert-fg); + padding: 0.5rem 1rem; + border-radius: 1rem; +} + +.prominent { + font-size: 1.5rem; + font-style: italic; +} + +.material-button-section { + align-items: center; + column-gap: 1rem; + display: flex; + flex-wrap: wrap; + justify-content: center; + row-gap: 0.5rem; +} + +.material-button-section > div { + margin: .3rem 0; +} + +.github-button { + display: flex; + justify-content: center; +} + +.github-button a { + align-items: center; + background-color: var(--color-github-black); + border-radius: 5px; + color: #fff; + display: flex; + font-size: 18px; + font-weight: bold; + gap: 0.5rem; + padding: 10px 20px; + text-decoration: none; +} + +.video-tutorials-button a { + background-color: #ff0000; + border-radius: 25px; + color: #ffffff; + display: inline-block; + font-size: 18px; + font-weight: bold; + padding: 10px 20px; + text-align: center; + text-decoration: none; +} diff --git a/pages/tsconfig.json b/pages/tsconfig.json new file mode 100644 index 00000000..8bf91d3b --- /dev/null +++ b/pages/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "astro/tsconfigs/strict", + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"] +} diff --git a/requirements-build.txt b/requirements-build.txt new file mode 100644 index 00000000..52498411 --- /dev/null +++ b/requirements-build.txt @@ -0,0 +1 @@ +flatbuffers==25.12.19 diff --git a/scripts/PKGBUILD b/scripts/PKGBUILD deleted file mode 100644 index b71b9717..00000000 --- a/scripts/PKGBUILD +++ /dev/null @@ -1,44 +0,0 @@ -pkgname=obs-backgroundremoval -pkgver=0.2.5_beta -_ONNXRUNTIME_FILE=onnxruntime-linux-x64-1.7.0.tgz -_onnxdir=onnxruntime-linux-x64-1.7.0 -_bgdir=$pkgname-${pkgver//_/-} -pkgrel=1 -arch=(x86_64) -url='https://github.com/royshil/obs-backgroundremoval' -pkgdesc="Background removal plugin for OBS studio (precomopiled onnxruntime)" -license=(MIT custom) -depends=(obs-studio opencv) -makedepends=(cmake) -source=("${_bgdir}.tar.gz::https://github.com/royshil/$pkgname/archive/refs/tags/v${pkgver//_/-}.tar.gz" - "https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/$_ONNXRUNTIME_FILE") -sha256sums=('c22280bfa5341e371c4d095717063fe04b15a2f529a531205e8df860d70aacb0' - '0345f45f222208344406d79a6db3280ed2ccc884dc1e064ce6e6951ed4c70606') - -prepare() { - # build from archive, not git. Version set during build() - sed -i "s/^version_from_git/#&/" $_bgdir/CMakeLists.txt -} - -build() { - cd "$_bgdir" - # set rpath to avoid installing onnxruntime globally - cmake -B build -DVERSION="${pkgver//_*/.0}" -DobsIncludePath=/usr/include/obs/ \ - -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - -DOnnxruntime_INCLUDE_DIRS="$srcdir/$_onnxdir/include/" -DOnnxruntime_LIBRARIES="$srcdir/$_onnxdir/lib/libonnxruntime.so" \ - -DOnnxruntime_INCLUDE_DIR="$srcdir/$_onnxdir/include/" \ - -DCMAKE_INSTALL_RPATH="/usr/lib/obs-backgroundremoval" - cd build - make -} - -package() { - make -C "$_bgdir/build" DESTDIR="$pkgdir" install - install -Dt "$pkgdir/usr/share/licenses/obs-backgroundremoval" "$_bgdir/LICENSE" - - # install onnxruntime - cd "$_onnxdir" - install -Dt "$pkgdir/usr/share/licenses/obs-backgroundremoval/onnxruntime" \ - LICENSE Privacy.md README.md ThirdPartyNotices.txt - install -Dt "$pkgdir/usr/lib/obs-backgroundremoval" lib/* -} diff --git a/scripts/build_libobs_windows.ps1 b/scripts/build_libobs_windows.ps1 new file mode 100644 index 00000000..9018e3e1 --- /dev/null +++ b/scripts/build_libobs_windows.ps1 @@ -0,0 +1,120 @@ +# SPDX-FileCopyrightText: 2025-2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +Set-StrictMode -Version Latest +$ErrorActionPreference = 'Stop' + +# ------------------------------------------------------------------------------ +# 1. Setup Phase +# ------------------------------------------------------------------------------ +Write-Host "::group::Initialize and Check Dependencies" + +$ScriptDir = $PSScriptRoot +$RootDir = Split-Path -Parent $ScriptDir +$DepsDir = Join-Path $RootDir ".deps" +$BuildSpecFile = Join-Path $RootDir "buildspec.json" + +if (-not (Test-Path $BuildSpecFile)) { + Write-Error "buildspec.json not found at $BuildSpecFile" + exit 1 +} + +try { + $Spec = Get-Content $BuildSpecFile -Raw | ConvertFrom-Json +} +catch { + Write-Error "Failed to parse buildspec.json: $_" + exit 1 +} + +$ObsVersion = $Spec.dependencies."obs-studio".version +$PrebuiltVersion = $Spec.dependencies.prebuilt.version +$Qt6Version = $Spec.dependencies.qt6.version + +Write-Host "Detected Versions from buildspec.json:" +Write-Host " OBS Studio: $ObsVersion" +Write-Host " Prebuilt: $PrebuiltVersion" +Write-Host " Qt6: $Qt6Version" + +$PrebuiltDir = Join-Path $DepsDir "obs-deps-$PrebuiltVersion-x64" +$Qt6Dir = Join-Path $DepsDir "obs-deps-qt6-$Qt6Version-x64" +$SourceDir = Join-Path $DepsDir "obs-studio-$ObsVersion" +$BuildDir = Join-Path $SourceDir "build_x64" + +if (-not (Test-Path $SourceDir)) { + Write-Error "Error: OBS source directory not found at $SourceDir" + Write-Error "Please run 'cmake -P scripts/download_deps.cmake' first." + exit 1 +} + +Write-Host "Cleaning build directory..." +if (Test-Path $BuildDir) { + Remove-Item -Path $BuildDir -Recurse -Force +} + +Write-Host "::endgroup::" + +# ------------------------------------------------------------------------------ +# 2. Configure Phase +# ------------------------------------------------------------------------------ +Write-Host "::group::Configure OBS Studio (x64)" + +$CmakeArgs = @( + "-S", "$SourceDir", + "-B", "$BuildDir", + "-G", "Visual Studio 17 2022", + "-A", "x64", + "-DOBS_CMAKE_VERSION=3.0.0", + "-DENABLE_PLUGINS=OFF", + "-DENABLE_FRONTEND=OFF", + "-DOBS_VERSION_OVERRIDE=$ObsVersion", + "-DCMAKE_PREFIX_PATH=$PrebuiltDir;$Qt6Dir", + "-DCMAKE_INSTALL_PREFIX=$DepsDir" +) + +cmake @CmakeArgs +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + +Write-Host "::endgroup::" + +# ------------------------------------------------------------------------------ +# 3. Build Phase (Debug) +# ------------------------------------------------------------------------------ +Write-Host "::group::Build OBS Frontend API (Debug)" + +cmake --build "$BuildDir" --target obs-frontend-api --config Debug --parallel +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + +Write-Host "::endgroup::" + +# ------------------------------------------------------------------------------ +# 4. Build Phase (Release) +# ------------------------------------------------------------------------------ +Write-Host "::group::Build OBS Frontend API (Release)" + +cmake --build "$BuildDir" --target obs-frontend-api --config Release --parallel +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + +Write-Host "::endgroup::" + +# ------------------------------------------------------------------------------ +# 5. Install Phase (Debug) +# ------------------------------------------------------------------------------ +Write-Host "::group::Install Development Artifacts (Debug)" + +cmake --install "$BuildDir" --component Development --config Debug --prefix "$DepsDir" +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + +Write-Host "::endgroup::" + +# ------------------------------------------------------------------------------ +# 6. Install Phase (Release) +# ------------------------------------------------------------------------------ +Write-Host "::group::Install Development Artifacts (Release)" + +cmake --install "$BuildDir" --component Development --config Release --prefix "$DepsDir" +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + +Write-Host "Install done. Artifacts are in $DepsDir" +Write-Host "::endgroup::" diff --git a/scripts/build_obs_macos.sh b/scripts/build_obs_macos.sh new file mode 100755 index 00000000..de6557e7 --- /dev/null +++ b/scripts/build_obs_macos.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: scripts/build_obs_macos.sh +# description: Helper script to build the OBS library for macOS. +# author: Kaito Udagawa +# version: 1.0.0 +# date: 2026-05-27 + +set -euo pipefail +shopt -s nullglob + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +: "${PLUGIN_BUILD_DIR:=$ROOT_DIR}" +: "${CMAKE_OSX_ARCHITECTURES:=arm64;x86_64}" +: "${CMAKE_OSX_DEPLOYMENT_TARGET:=12.0}" + +. "$ROOT_DIR/buildspec.props" + +download_prebuilt() { + mkdir -p "$PLUGIN_BUILD_DIR/.deps/" + + local outfile="$PLUGIN_BUILD_DIR/.deps/${prebuilt_macos_url##*/}" + local outdir="$PLUGIN_BUILD_DIR/.deps/obs-deps" + + curl -fsSLo "$outfile" "$prebuilt_macos_url" + printf '%s %s\n' "$prebuilt_macos_sha256" "$outfile" | shasum -a 256 -c - + rm -rf "$outdir" + mkdir -p "$outdir" + tar -C "$outdir" -xf "$outfile" +} + +download_qt6() { + mkdir -p "$PLUGIN_BUILD_DIR/.deps/" + + local outfile="$PLUGIN_BUILD_DIR/.deps/${qt6_macos_url##*/}" + local outdir="$PLUGIN_BUILD_DIR/.deps/obs-deps-qt6" + + curl -fsSLo "$outfile" "$qt6_macos_url" + printf '%s %s\n' "$qt6_macos_sha256" "$outfile" | shasum -a 256 -c - + rm -rf "$outdir" + mkdir -p "$outdir" + tar -C "$outdir" -xf "$outfile" +} + +clone_obs() { + if [[ -d "$PLUGIN_BUILD_DIR/obs-studio" ]]; then + git -C "$PLUGIN_BUILD_DIR/obs-studio" fetch --depth 1 origin "$obs_studio_git_tag" + git -C "$PLUGIN_BUILD_DIR/obs-studio" checkout --force FETCH_HEAD + git -C "$PLUGIN_BUILD_DIR/obs-studio" clean -fdx + else + git clone --depth 1 --branch "$obs_studio_git_tag" https://github.com/obsproject/obs-studio.git "$PLUGIN_BUILD_DIR/obs-studio" + fi +} + +configure_obs() { + cmake -S "$PLUGIN_BUILD_DIR/obs-studio" \ + -B "$PLUGIN_BUILD_DIR/build_obs" \ + -G Xcode \ + -DCMAKE_OSX_ARCHITECTURES="$CMAKE_OSX_ARCHITECTURES" \ + -DCMAKE_OSX_DEPLOYMENT_TARGET="$CMAKE_OSX_DEPLOYMENT_TARGET" \ + -DOBS_CMAKE_VERSION=3.0.0 \ + -DENABLE_PLUGINS=OFF \ + -DENABLE_FRONTEND=OFF \ + -DOBS_VERSION_OVERRIDE="$obs_studio_git_tag" \ + -DCMAKE_PREFIX_PATH="$PLUGIN_BUILD_DIR/.deps/obs-deps;$PLUGIN_BUILD_DIR/.deps/obs-deps-qt6" \ + -DCMAKE_INSTALL_PREFIX="$PLUGIN_BUILD_DIR/.deps" +} + +build_obs() { + cmake --build "$PLUGIN_BUILD_DIR/build_obs" --target obs-frontend-api --config "$1" --parallel +} + +install_obs() { + cmake --install "$PLUGIN_BUILD_DIR/build_obs" --component Development --config "$1" --prefix "$PLUGIN_BUILD_DIR/.deps/$1" +} + +if [[ "$#" -eq 0 ]]; then + download_prebuilt + download_qt6 + clone_obs + configure_obs + build_obs Debug + build_obs Release + install_obs Debug + install_obs Release +else + "$@" +fi diff --git a/scripts/build_onnxruntime_macos.sh b/scripts/build_onnxruntime_macos.sh new file mode 100755 index 00000000..cfa87c5a --- /dev/null +++ b/scripts/build_onnxruntime_macos.sh @@ -0,0 +1,189 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: scripts/build_onnxruntime_macos.sh +# description: Helper script to build ONNX Runtime for macOS. +# author: Kaito Udagawa +# version: 1.2.0 +# date: 2026-05-27 + +set -euo pipefail +shopt -s nullglob + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +: "${CMAKE_BUILD_TYPE:=Release}" +: "${CMAKE_OSX_DEPLOYMENT_TARGET:=12.0}" +: "${PLUGIN_BUILD_DIR:=$ROOT_DIR}" +: "${PYTHON:=python3}" + +# shellcheck disable=SC1091 +. "$ROOT_DIR/buildspec.props" + +: "${onnxruntime_git_tag:=master}" +: "${vcpkg_git_tag:=master}" + +REDUCED_OPS_CONFIG_NAME='src/required_operators_and_types.with_runtime_opt.config' + +ORT_COMPONENTS=( + onnxruntime_session + onnxruntime_optimizer + onnxruntime_providers + onnxruntime_lora + onnxruntime_framework + onnxruntime_graph + onnxruntime_util + onnxruntime_mlas + onnxruntime_common + onnxruntime_flatbuffers + onnxruntime_providers_coreml + coreml_proto +) + +clone_onnxruntime() { + if [ -d "$PLUGIN_BUILD_DIR/onnxruntime" ]; then + git -C "$PLUGIN_BUILD_DIR/onnxruntime" fetch --depth 1 origin "$onnxruntime_git_tag" + git -C "$PLUGIN_BUILD_DIR/onnxruntime" checkout --force FETCH_HEAD + git -C "$PLUGIN_BUILD_DIR/onnxruntime" clean -fdx + git -C "$PLUGIN_BUILD_DIR/onnxruntime" submodule update --init --recursive + else + git clone --depth 1 --branch "$onnxruntime_git_tag" --recursive https://github.com/microsoft/onnxruntime.git "$PLUGIN_BUILD_DIR/onnxruntime" + fi + + patch_onnxruntime +} + +patch_onnxruntime() { + patches=("$ROOT_DIR/scripts/ort_patches/$onnxruntime_git_tag"/*.patch) + if [[ "${#patches[@]}" -gt 0 ]]; then + git -C "$PLUGIN_BUILD_DIR/onnxruntime" apply -v "${patches[@]}" + fi +} + +build_py() { + local -r arch="$1" + local -r command="$2" + + if ! [[ -d "$PLUGIN_BUILD_DIR/onnxruntime" ]]; then + echo "ERROR: ONNX Runtime tree is not found." >&2 + exit 1 + fi + + local args=( + --build_dir "$PLUGIN_BUILD_DIR/build_ort_$arch" + --osx_arch "$arch" + --apple_deploy_target "$CMAKE_OSX_DEPLOYMENT_TARGET" + --cmake_generator Ninja + --compile_no_warning_as_error + --config "$CMAKE_BUILD_TYPE" + --disable_rtti + --parallel + --skip_submodule_sync + --skip_tests + --use_coreml + --use_vcpkg + --cmake_extra_defines + "CMAKE_POLICY_VERSION_MINIMUM=3.5" + "onnxruntime_BUILD_UNIT_TESTS=OFF" + ) + + if [[ -f "$ROOT_DIR/$REDUCED_OPS_CONFIG_NAME" ]]; then + args+=( + --enable_reduced_operator_type_support + --include_ops_by_config "$ROOT_DIR/$REDUCED_OPS_CONFIG_NAME" + ) + fi + + if [[ -n "${CCACHE_DIR:-}" ]]; then + args+=(--use_cache) + fi + + "$PYTHON" "$PLUGIN_BUILD_DIR/onnxruntime/tools/ci_build/build.py" "$command" "${args[@]}" +} + +install_onnxruntime() { + local ORT_ARM64_BUILD_DIR="$PLUGIN_BUILD_DIR/build_ort_arm64" + local ORT_X86_64_BUILD_DIR="$PLUGIN_BUILD_DIR/build_ort_x86_64" + local ORT_UNIVERSAL_PREFIX="$PLUGIN_BUILD_DIR/ort_installed" + local ORT_ARM64_PREFIX="$PLUGIN_BUILD_DIR/ort_installed_arm64" + local ORT_X86_64_PREFIX="$PLUGIN_BUILD_DIR/ort_installed_x86_64" + + rm -rf "$ORT_UNIVERSAL_PREFIX" "$ORT_ARM64_PREFIX" "$ORT_X86_64_PREFIX" + + cmake --install "$ORT_ARM64_BUILD_DIR/$CMAKE_BUILD_TYPE" --config "$CMAKE_BUILD_TYPE" --prefix "$ORT_UNIVERSAL_PREFIX" + cmake --install "$ORT_ARM64_BUILD_DIR/$CMAKE_BUILD_TYPE" --config "$CMAKE_BUILD_TYPE" --prefix "$ORT_ARM64_PREFIX" + cmake --install "$ORT_X86_64_BUILD_DIR/$CMAKE_BUILD_TYPE" --config "$CMAKE_BUILD_TYPE" --prefix "$ORT_X86_64_PREFIX" + + local name + for name in "${ORT_COMPONENTS[@]}"; do + rm -f "$ORT_UNIVERSAL_PREFIX/lib/lib$name.a" + lipo -create \ + "$ORT_ARM64_PREFIX/lib/lib$name.a" \ + "$ORT_X86_64_PREFIX/lib/lib$name.a" \ + -output "$ORT_UNIVERSAL_PREFIX/lib/lib$name.a" + done + + echo 'void __attribute__((visibility("hidden"))) __dummy__(){}' | + clang -x c -arch x86_64 -c -o "$ORT_X86_64_BUILD_DIR/dummy.o" -mmacosx-version-min="$CMAKE_OSX_DEPLOYMENT_TARGET" - + + libtool -static -o "$ORT_X86_64_BUILD_DIR/dummy.a" "$ORT_X86_64_BUILD_DIR/dummy.o" + + lipo -create \ + "$ORT_ARM64_PREFIX/lib/libkleidiai.a" \ + "$ORT_X86_64_BUILD_DIR/dummy.a" \ + -output "$ORT_UNIVERSAL_PREFIX/lib/libkleidiai.a" + + lipo -create \ + "$ORT_ARM64_BUILD_DIR/$CMAKE_BUILD_TYPE/_deps/pytorch_cpuinfo-build/libcpuinfo.a" \ + "$ORT_X86_64_BUILD_DIR/$CMAKE_BUILD_TYPE/_deps/pytorch_cpuinfo-build/libcpuinfo.a" \ + -output "$ORT_UNIVERSAL_PREFIX/lib/libcpuinfo.a" + + mkdir -p "$ORT_UNIVERSAL_PREFIX/lib/cmake/cpuinfo" + cat <<'EOF' >"$ORT_UNIVERSAL_PREFIX/lib/cmake/cpuinfo/cpuinfoConfig.cmake" +add_library(cpuinfo::cpuinfo STATIC IMPORTED GLOBAL) +get_filename_component(_CPUINFO_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE) +set_target_properties(cpuinfo::cpuinfo PROPERTIES + IMPORTED_LOCATION "${_CPUINFO_PREFIX}/lib/libcpuinfo.a" +) +EOF + + "$ROOT_DIR/scripts/lipo_vcpkg_macos.sh" \ + "$PLUGIN_BUILD_DIR/vcpkg_installed_ort/universal-osx" \ + "$ORT_ARM64_BUILD_DIR/$CMAKE_BUILD_TYPE/vcpkg_installed/arm64-osx" \ + "$ORT_X86_64_BUILD_DIR/$CMAKE_BUILD_TYPE/vcpkg_installed/x64-osx" +} + +toolchain_report() { + cd "$ROOT_DIR" + + shasum -a 384 \ + "$REDUCED_OPS_CONFIG_NAME" \ + scripts/build_onnxruntime_macos.sh \ + scripts/lipo_vcpkg_macos.sh \ + scripts/ort_patches/"$onnxruntime_git_tag"/*.patch + + printf 'CMAKE_BUILD_TYPE=%q\n' "$CMAKE_BUILD_TYPE" + printf 'CMAKE_OSX_DEPLOYMENT_TARGET=%q\n' "$CMAKE_OSX_DEPLOYMENT_TARGET" + printf 'onnxruntime_git_tag=%q\n' "$onnxruntime_git_tag" + printf 'REDUCED_OPS_CONFIG_NAME=%q\n' "$REDUCED_OPS_CONFIG_NAME" + printf 'vcpkg_git_tag=%q\n' "$vcpkg_git_tag" + + printf 'xcodebuild -version #=> %s\n' "$(xcodebuild -version | /usr/bin/ruby -rjson -e 'print $<.read.to_json')" + # shellcheck disable=SC2016 + printf '$PYTHON --version #=> %s\n' "$("$PYTHON" --version | /usr/bin/ruby -rjson -e 'print $<.read.to_json')" + # shellcheck disable=SC2016 + printf '$PYTHON -m pip freeze | sort #=> %s\n' "$("$PYTHON" -m pip freeze | sort | /usr/bin/ruby -rjson -e 'print $<.read.to_json')" +} + +if [[ "$#" -eq 0 ]]; then + clone_onnxruntime + build_py arm64 --update + build_py x86_64 --update + build_py arm64 --build + build_py x86_64 --build + install_onnxruntime +else + "$@" +fi diff --git a/scripts/build_ort_ubuntu.sh b/scripts/build_ort_ubuntu.sh new file mode 100755 index 00000000..d64e162c --- /dev/null +++ b/scripts/build_ort_ubuntu.sh @@ -0,0 +1,121 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: scripts/build_ort_ubuntu.sh +# description: Helper script to build ONNX Runtime for Ubuntu. +# author: Kaito Udagawa +# version: 1.1.0 +# date: 2026-04-04 + +set -euo pipefail +shopt -s nullglob + +PYTHON="${PYTHON:-python3}" + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +ORT_SRC_DIR="${ROOT_DIR}/.deps_vendor/onnxruntime" +BUILD_PY="${ORT_SRC_DIR}/tools/ci_build/build.py" +REDUCED_OPS_CONFIG="${ROOT_DIR}/src/required_operators_and_types.with_runtime_opt.config" +ORT_X86_64_BUILD_DIR="${ROOT_DIR}/.deps_vendor/ort_x86_64" +ORT_X86_64_PREFIX="${ROOT_DIR}/.deps_vendor/ort_x86_64-prefix" + +ORT_COMPONENTS=( + onnxruntime_session + onnxruntime_optimizer + onnxruntime_providers + onnxruntime_lora + onnxruntime_framework + onnxruntime_graph + onnxruntime_util + onnxruntime_mlas + onnxruntime_common + onnxruntime_flatbuffers +) + +BUILD_PY_ARGS=( + --cmake_generator Ninja + --compile_no_warning_as_error + --config Release + --disable_rtti + --parallel + --skip_submodule_sync + --skip_tests + --use_vcpkg +) + +if [[ -f "${REDUCED_OPS_CONFIG}" ]]; then + BUILD_PY_ARGS+=( + --enable_reduced_operator_type_support + --include_ops_by_config "${REDUCED_OPS_CONFIG}" + ) +fi + +BUILD_PY_CMAKE_EXTRA_DEFINES=( + "CMAKE_POLICY_VERSION_MINIMUM=3.5" + "onnxruntime_BUILD_UNIT_TESTS=OFF" +) + +run_build_py() { + local -r arch="$1" + local -r command="$2" + + if ! [[ -d "${ORT_SRC_DIR}" ]]; then + echo "ERROR: ONNX Runtime tree is not found." >&2 + exit 1 + fi + + local commandline=( + "${PYTHON}" + "${BUILD_PY}" + "${BUILD_PY_ARGS[@]}" + --cmake_extra_defines "${BUILD_PY_CMAKE_EXTRA_DEFINES[@]}" + ) + + case "${arch}" in + x86_64) + commandline+=( + --build_dir "${ORT_X86_64_BUILD_DIR}" + --targets "${ORT_COMPONENTS[@]}" + ) + ;; + *) + echo "ERROR: Invalid arch ${arch}." >&2 + exit 1 + ;; + esac + + case "${command}" in + update) + commandline+=(--update) + ;; + build) + commandline+=(--build) + ;; + *) + echo "ERROR: Invalid command ${command}." >&2 + exit 1 + ;; + esac + + if [[ -n "${CCACHE_DIR:-}" ]]; then + commandline+=(--use_cache) + fi + + "${commandline[@]}" +} + +install_ort() { + rm -rf "${ORT_X86_64_PREFIX}" + cmake --install "${ORT_X86_64_BUILD_DIR}/Release" --config Release --prefix "${ORT_X86_64_PREFIX}" +} + +if [[ "$#" -eq 0 ]]; then + run_build_py x86_64 update + run_build_py x86_64 build + install_ort +else + "$@" +fi diff --git a/scripts/build_ort_windows.ps1 b/scripts/build_ort_windows.ps1 new file mode 100644 index 00000000..8a462a8b --- /dev/null +++ b/scripts/build_ort_windows.ps1 @@ -0,0 +1,134 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: scripts/build_ort_windows.ps1 +# description: Helper script to build ONNX Runtime for Windows. +# author: Kaito Udagawa +# version: 1.1.1 +# date: 2026-04-04 + +$ErrorActionPreference = 'Stop' +Set-StrictMode -Version Latest +$PSNativeCommandUseErrorActionPreference = $true + +$PYTHON = if ($env:PYTHON) { $env:PYTHON } else { 'python' } + +$ROOT_DIR = Split-Path -Path $PSScriptRoot -Parent +$ORT_SRC_DIR = "$ROOT_DIR/.deps_vendor/onnxruntime" +$BUILD_PY = "$ORT_SRC_DIR/tools/ci_build/build.py" +$REDUCED_OPS_CONFIG = "$ROOT_DIR/src/required_operators_and_types.with_runtime_opt.config" +$ORT_X64_BUILD_DIR = "$ROOT_DIR/.deps_vendor/ort_x64" +$ORT_X64_PREFIX = "$ROOT_DIR/.deps_vendor/ort_x64-prefix" +$CMAKE_MASQUERADE_BIN_DIR = "$ROOT_DIR/.deps_vendor/cmake_masquerade_bin" +$CMAKE_MASQUERADE_CL_EXE = "$CMAKE_MASQUERADE_BIN_DIR/cl.exe" + +$ORT_COMPONENTS = @( + 'onnxruntime_session', + 'onnxruntime_optimizer', + 'onnxruntime_providers', + 'onnxruntime_lora', + 'onnxruntime_framework', + 'onnxruntime_graph', + 'onnxruntime_util', + 'onnxruntime_mlas', + 'onnxruntime_common', + 'onnxruntime_flatbuffers' +) + +$BUILD_PY_ARGS = @( + '--config', 'Release', + '--parallel', + '--compile_no_warning_as_error', + '--disable_rtti', + '--skip_submodule_sync', + '--skip_tests', + '--use_vcpkg' +) + +if (Test-Path $REDUCED_OPS_CONFIG -PathType Leaf) { + $BUILD_PY_ARGS += @( + '--include_ops_by_config', $REDUCED_OPS_CONFIG, + '--enable_reduced_operator_type_support' + ) +} + +$BUILD_PY_CMAKE_EXTRA_DEFINES = @( + "CMAKE_POLICY_VERSION_MINIMUM=3.5", + "onnxruntime_BUILD_UNIT_TESTS=OFF" +) + +function setup_ccache() { + if (Test-Path $CMAKE_MASQUERADE_CL_EXE -PathType Leaf) { + Write-Host 'Masquerading cl.exe already exists. Skipping setup.' + } + else { + New-Item -ItemType Directory -Path $CMAKE_MASQUERADE_BIN_DIR -Force + + $ccacheCommand = Get-Command ccache.exe -ErrorAction SilentlyContinue + if (-not $ccacheCommand) { + Write-Error 'ERROR: ccache.exe was not found.' + exit 1 + } + + Copy-Item -Path $ccacheCommand.Source -Destination $CMAKE_MASQUERADE_CL_EXE -Force + } +} + +function run_build_py() { + param( + [string]$arch, + [string]$command + ) + + if (!(Test-Path -Path $ORT_SRC_DIR -PathType Container)) { + Write-Error 'ERROR: ONNX Runtime tree is not found.' + exit 1 + } + + $commandlineArgs = @("$BUILD_PY") + $commandlineArgs += $BUILD_PY_ARGS + $commandlineArgs += @('--targets') + $commandlineArgs += $ORT_COMPONENTS + $commandlineArgs += @('--cmake_extra_defines') + $commandlineArgs += $BUILD_PY_CMAKE_EXTRA_DEFINES + if ($env:CCACHE_DIR) { + $commandlineArgs += @("CMAKE_VS_GLOBALS=UseMultiToolTask=true;EnforceProcessCountAcrossBuilds=true;TrackFileAccess=false;CLToolExe=cl.exe;CLToolPath=$CMAKE_MASQUERADE_BIN_DIR") + $commandlineArgs += @('--use_cache') + } + + switch ($arch) { + 'x64' { $commandlineArgs += @('--build_dir', $ORT_X64_BUILD_DIR) } + default { + Write-Error "ERROR: Invalid arch $arch" + exit 1 + } + } + + switch ($command) { + 'update' { $commandlineArgs += '--update' } + 'build' { $commandlineArgs += '--build' } + default { + Write-Error "ERROR: Invalid command $command." + exit 1 + } + } + + & $PYTHON @commandlineArgs +} + +function install_ort() { + Remove-Item -Path $ORT_X64_PREFIX -Recurse -Force -ErrorAction SilentlyContinue + cmake --install "${ORT_X64_BUILD_DIR}/Release" --config Release --prefix "$ORT_X64_PREFIX" +} + +if ($args.Count -eq 0) { + run_build_py x64 update + run_build_py x64 build + install_ort +} +else { + $command = $args[0] + $commandArgs = $args | Select-Object -Skip 1 + & $command @commandArgs +} diff --git a/scripts/convert_selfie_multiclass.py b/scripts/convert_selfie_multiclass.py new file mode 100755 index 00000000..4f69ed3a --- /dev/null +++ b/scripts/convert_selfie_multiclass.py @@ -0,0 +1,88 @@ +#!/usr/bin/env python3 + +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +""" +Script to convert MediaPipe Selfie Multiclass Segmentation model from TFLite to ONNX format. + +The MediaPipe Selfie Multiclass model provides improved segmentation quality compared to +the standard selfie segmentation model, especially for: +- Multiple people in frame +- Full-body segmentation +- Fine-grained segmentation (hair, clothes, body, etc.) + +Model source: https://storage.googleapis.com/mediapipe-models/image_segmenter/selfie_multiclass_256x256/float32/latest/selfie_multiclass_256x256.tflite + +Input: [1, 256, 256, 3] - 256x256 RGB image, float32, range [0, 1] +Output: [1, 256, 256, 6] - 256x256 with 6 classes: + - Class 0: Background + - Class 1: Hair + - Class 2: Body-skin + - Class 3: Face-skin + - Class 4: Clothes + - Class 5: Others (accessories) + +For background removal, we use argmax to find the class with highest confidence per pixel, +then create a binary mask where class > 0 (any non-background class) becomes foreground. + +Conversion methods: +1. Using PINTO0309's tflite2tensorflow (recommended): + docker run --rm -v $PWD:/workspace pinto0309/tflite2tensorflow:latest \ + --model_path /workspace/selfie_multiclass_256x256.tflite \ + --flatc_path /usr/local/bin/flatc \ + --schema_path /usr/local/bin/schema.fbs \ + --model_output_path /workspace/selfie_multiclass_saved_model \ + --output_onnx + +2. Using online PINTO model zoo (if available): + Visit: https://github.com/PINTO0309/PINTO_model_zoo + Search for model ID 039 or selfie_multiclass + +3. Manual conversion with tf2onnx (after converting TFLite to SavedModel): + - Not recommended due to unsupported ops in this specific model +""" + +import sys +import os + +def main(): + print(__doc__) + print("\n" + "="*80) + print("CONVERSION INSTRUCTIONS") + print("="*80) + print("\nThis script provides instructions for converting the model.") + print("Due to the complexity of the model architecture, Docker-based conversion") + print("using PINTO0309's tools is recommended.\n") + + print("Step 1: Download the TFLite model") + print("-------") + print("wget https://github.com/valeragabriel/BodySegmentation-MediaPipe/raw/main/selfie_multiclass_256x256.tflite") + print("OR") + print("curl -L -o selfie_multiclass_256x256.tflite 'https://github.com/valeragabriel/BodySegmentation-MediaPipe/raw/main/selfie_multiclass_256x256.tflite'") + print() + + print("Step 2: Convert using Docker (requires Docker installed)") + print("-------") + print("docker run --rm -v $PWD:/workspace pinto0309/tflite2tensorflow:latest \\") + print(" --model_path /workspace/selfie_multiclass_256x256.tflite \\") + print(" --flatc_path /usr/local/bin/flatc \\") + print(" --schema_path /usr/local/bin/schema.fbs \\") + print(" --model_output_path /workspace/selfie_multiclass_saved_model \\") + print(" --output_onnx") + print() + + print("Step 3: Copy the ONNX model to the models directory") + print("-------") + print("cp selfie_multiclass_saved_model/model_float32.onnx ../data/models/selfie_multiclass_256x256.onnx") + print() + + print("Alternative: Download pre-converted ONNX from PINTO model zoo if available") + print("-------") + print("Check: https://github.com/PINTO0309/PINTO_model_zoo") + print() + +if __name__ == "__main__": + main() diff --git a/scripts/download_deps.cmake b/scripts/download_deps.cmake new file mode 100644 index 00000000..501267c9 --- /dev/null +++ b/scripts/download_deps.cmake @@ -0,0 +1,122 @@ +# SPDX-FileCopyrightText: 2025-2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.28) + +set(BUILDSPEC_FILE "${CMAKE_CURRENT_LIST_DIR}/../buildspec.json") +set(DEPS_DIR "${CMAKE_CURRENT_LIST_DIR}/../.deps") + +macro(get_dependency_info BUILDSPEC_CONTENT DEP_NAME PLATFORM_KEY HAS_DEBUG_SYMBOLS) + string(JSON DEP_VERSION GET "${BUILDSPEC_CONTENT}" dependencies "${DEP_NAME}" version) + string(JSON DEP_BASEURL GET "${BUILDSPEC_CONTENT}" dependencies "${DEP_NAME}" baseUrl) + string(JSON DEP_HASH GET "${BUILDSPEC_CONTENT}" dependencies "${DEP_NAME}" hashes "${PLATFORM_KEY}") + if(HAS_DEBUG_SYMBOLS) + string( + JSON + DEP_DEBUG_SYMBOLS_HASH + GET "${BUILDSPEC_CONTENT}" + dependencies + "${DEP_NAME}" + debugSymbols + "${PLATFORM_KEY}" + ) + endif() +endmacro() + +function(download_and_check URL FILE EXPECTED_HASH) + if(EXISTS "${FILE}") + file(SHA256 "${FILE}" CURRENT_HASH) + if(CURRENT_HASH STREQUAL EXPECTED_HASH) + message(STATUS "Skipping download: ${FILE} (Hash matches)") + return() + endif() + endif() + + message(STATUS "Downloading: ${URL}") + file(DOWNLOAD "${URL}" "${FILE}" EXPECTED_HASH "SHA256=${EXPECTED_HASH}" STATUS DOWNLOAD_STATUS) + + list(GET DOWNLOAD_STATUS 0 STATUS_CODE) + if(NOT STATUS_CODE EQUAL 0) + list(GET DOWNLOAD_STATUS 1 STATUS_MSG) + message(FATAL_ERROR "Download failed: ${STATUS_MSG}. Please remove ${FILE} before retrying.") + endif() +endfunction() + +if(NOT EXISTS "${BUILDSPEC_FILE}") + message(FATAL_ERROR "buildspec.json not found at ${BUILDSPEC_FILE}") +endif() +file(READ "${BUILDSPEC_FILE}" BUILDSPEC_CONTENT) + +file(MAKE_DIRECTORY "${DEPS_DIR}") + +if(WIN32) + # 1. OBS Studio + get_dependency_info("${BUILDSPEC_CONTENT}" obs-studio windows-x64 OFF) + set(FILENAME "obs-studio-${DEP_VERSION}.zip") + set(EXTRACT_DIR "${DEPS_DIR}") + + download_and_check("${DEP_BASEURL}/${DEP_VERSION}.zip" "${DEPS_DIR}/${FILENAME}" "${DEP_HASH}") + file(ARCHIVE_EXTRACT INPUT "${DEPS_DIR}/${FILENAME}" DESTINATION "${EXTRACT_DIR}") + + # 2. Prebuilt Deps + get_dependency_info("${BUILDSPEC_CONTENT}" prebuilt windows-x64 OFF) + set(FILENAME "windows-deps-${DEP_VERSION}-x64.zip") + set(EXTRACT_DIR "${DEPS_DIR}/obs-deps-${DEP_VERSION}-x64") + + download_and_check("${DEP_BASEURL}/${DEP_VERSION}/${FILENAME}" "${DEPS_DIR}/${FILENAME}" "${DEP_HASH}") + file(MAKE_DIRECTORY "${EXTRACT_DIR}") + file(ARCHIVE_EXTRACT INPUT "${DEPS_DIR}/${FILENAME}" DESTINATION "${EXTRACT_DIR}") + + # 3. Qt6 + get_dependency_info("${BUILDSPEC_CONTENT}" qt6 windows-x64 ON) + set(FILENAME "windows-deps-qt6-${DEP_VERSION}-x64.zip") + set(EXTRACT_DIR "${DEPS_DIR}/obs-deps-qt6-${DEP_VERSION}-x64") + + download_and_check("${DEP_BASEURL}/${DEP_VERSION}/${FILENAME}" "${DEPS_DIR}/${FILENAME}" "${DEP_HASH}") + file(MAKE_DIRECTORY "${EXTRACT_DIR}") + file(ARCHIVE_EXTRACT INPUT "${DEPS_DIR}/${FILENAME}" DESTINATION "${EXTRACT_DIR}") +elseif(APPLE) + set(VERSIONS_FILE "${DEPS_DIR}/.deps_versions") + file(WRITE "${VERSIONS_FILE}" "# Auto-generated by download_deps.cmake\n") + + # 1. OBS Studio + get_dependency_info("${BUILDSPEC_CONTENT}" obs-studio macos OFF) + set(FILENAME "${DEP_VERSION}.tar.gz") + set(EXTRACT_DIR "${DEPS_DIR}") + + file(APPEND "${VERSIONS_FILE}" "OBS_VERSION=\"${DEP_VERSION}\"\n") + download_and_check("${DEP_BASEURL}/${FILENAME}" "${DEPS_DIR}/${FILENAME}" "${DEP_HASH}") + file(ARCHIVE_EXTRACT INPUT "${DEPS_DIR}/${FILENAME}" DESTINATION "${EXTRACT_DIR}") + + # 2. Prebuilt Deps + get_dependency_info("${BUILDSPEC_CONTENT}" prebuilt macos OFF) + set(FILENAME "macos-deps-${DEP_VERSION}-universal.tar.xz") + set(EXTRACT_DIR "${DEPS_DIR}/obs-deps-${DEP_VERSION}-universal") + + file(APPEND "${VERSIONS_FILE}" "PREBUILT_VERSION=\"${DEP_VERSION}\"\n") + download_and_check("${DEP_BASEURL}/${DEP_VERSION}/${FILENAME}" "${DEPS_DIR}/${FILENAME}" "${DEP_HASH}") + file(MAKE_DIRECTORY "${EXTRACT_DIR}") + file(ARCHIVE_EXTRACT INPUT "${DEPS_DIR}/${FILENAME}" DESTINATION "${EXTRACT_DIR}") + + # 3. Qt6 + get_dependency_info("${BUILDSPEC_CONTENT}" qt6 macos ON) + set(FILENAME "macos-deps-qt6-${DEP_VERSION}-universal.tar.xz") + set(EXTRACT_DIR "${DEPS_DIR}/obs-deps-qt6-${DEP_VERSION}-universal") + + file(APPEND "${VERSIONS_FILE}" "QT6_VERSION=\"${DEP_VERSION}\"\n") + download_and_check("${DEP_BASEURL}/${DEP_VERSION}/${FILENAME}" "${DEPS_DIR}/${FILENAME}" "${DEP_HASH}") + file(MAKE_DIRECTORY "${EXTRACT_DIR}") + file(ARCHIVE_EXTRACT INPUT "${DEPS_DIR}/${FILENAME}" DESTINATION "${EXTRACT_DIR}") + + execute_process( + COMMAND xattr -r -d com.apple.quarantine "${DEPS_DIR}" + RESULT_VARIABLE XATTR_RESULT + OUTPUT_QUIET + ERROR_QUIET + ) +else() + message(FATAL_ERROR "This script must not be run on this platform.") +endif() + +message(STATUS "All dependencies downloaded and extracted to ${DEPS_DIR}") diff --git a/scripts/lipo_vcpkg_macos.sh b/scripts/lipo_vcpkg_macos.sh new file mode 100755 index 00000000..886102b7 --- /dev/null +++ b/scripts/lipo_vcpkg_macos.sh @@ -0,0 +1,61 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2025-2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +# file: scripts/lipo_vcpkg_macos.sh +# description: Combines vcpkg_installed directories into a universal one. +# author: Kaito Udagawa +# version: 1.0.1 +# date: 2026-04-02 + +set -euo pipefail +shopt -s nullglob + +lipo_vcpkg() { + local -r VCPKG_INSTALLED_UNIVERSAL="$1" + local -r VCPKG_INSTALLED_ARM64="$2" + local -r VCPKG_INSTALLED_X64="$3" + + rm -rf "${VCPKG_INSTALLED_UNIVERSAL}" + mkdir -p "${VCPKG_INSTALLED_UNIVERSAL}"/{debug/lib/pkgconfig,include,lib/pkgconfig,share} + + cp -a "${VCPKG_INSTALLED_ARM64}/include/." "${VCPKG_INSTALLED_UNIVERSAL}/include/" + cp -a "${VCPKG_INSTALLED_ARM64}/lib/pkgconfig/." "${VCPKG_INSTALLED_UNIVERSAL}/lib/pkgconfig/" + cp -a "${VCPKG_INSTALLED_ARM64}/share/." "${VCPKG_INSTALLED_UNIVERSAL}/share/" + + if [[ -d "${VCPKG_INSTALLED_ARM64}/debug" ]]; then + cp -a "${VCPKG_INSTALLED_ARM64}/debug/lib/pkgconfig/." "${VCPKG_INSTALLED_UNIVERSAL}/debug/lib/pkgconfig/" + fi + + if [[ -d "${VCPKG_INSTALLED_ARM64}/tools" ]]; then + mkdir -p "${VCPKG_INSTALLED_UNIVERSAL}/tools" + cp -a "${VCPKG_INSTALLED_ARM64}/tools/." "${VCPKG_INSTALLED_UNIVERSAL}/tools/" + fi + + local lib_full_path lib_rel_path arm64_path x64_path universal_path + for lib_full_path in "${VCPKG_INSTALLED_ARM64}"/lib/*.a "${VCPKG_INSTALLED_ARM64}"/debug/lib/*.a; do + lib_rel_path="${lib_full_path#${VCPKG_INSTALLED_ARM64}/}" + + echo "Processing ${lib_rel_path}..." + + arm64_path="${VCPKG_INSTALLED_ARM64}/${lib_rel_path}" + x64_path="${VCPKG_INSTALLED_X64}/${lib_rel_path}" + universal_path="${VCPKG_INSTALLED_UNIVERSAL}/${lib_rel_path}" + + if ! [[ -f "${x64_path}" ]]; then + echo "ERROR: ${x64_path} does not exist." >&2 + exit 1 + fi + + lipo "${arm64_path}" "${x64_path}" -create -output "${universal_path}" + done +} + +if [[ "$#" -ne 3 ]]; then + echo "Usage: $0 " + exit 1 +fi + +lipo_vcpkg "$@" diff --git a/scripts/makeOnnxruntime_osx.sh b/scripts/makeOnnxruntime_osx.sh deleted file mode 100755 index ab7e4f32..00000000 --- a/scripts/makeOnnxruntime_osx.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -WORK_DIR=$(git rev-parse --show-toplevel)/build -CURRENT_DIR=$(pwd) -OUTPUT_DIR=$WORK_DIR/onnxruntime - -if [[ -d $OUTPUT_DIR ]]; then - rm -rf $OUTPUT_DIR -fi - -if [[ ! -d $WORK_DIR ]]; then - mkdir -p $WORK_DIR -fi - -cd $WORK_DIR - -ONNXRT_VER=1.7.2 -ONNXRT_DIR=$WORK_DIR/onnxruntime-$ONNXRT_VER - -if [[ ! -d $ONNXRT_DIR ]]; then - git clone --single-branch -b v$ONNXRT_VER https://github.com/microsoft/onnxruntime $ONNXRT_DIR -fi - -cd $ONNXRT_DIR - -./build.sh --config RelWithDebInfo --parallel --skip_tests - -cd build/MacOS/RelWithDebInfo - -cmake $WORK_DIR/onnxruntime-$ONNXRT_VER/cmake -DCMAKE_INSTALL_PREFIX=$OUTPUT_DIR && \ - cmake --build . --target install - -mkdir -p $OUTPUT_DIR/lib -for f in $( find . -name "lib*.a" ); do - cp $f $OUTPUT_DIR/lib -done - -cd $CURRENT_DIR diff --git a/scripts/makeOpenCV_osx.sh b/scripts/makeOpenCV_osx.sh deleted file mode 100755 index 40686fc3..00000000 --- a/scripts/makeOpenCV_osx.sh +++ /dev/null @@ -1,107 +0,0 @@ -#!/bin/bash - -WORK_DIR=$(git rev-parse --show-toplevel)/build -CURRENT_DIR=$(pwd) -OUTPUT_DIR=$WORK_DIR/opencv - -if [[ -d $OUTPUT_DIR ]]; then - rm -rf $OUTPUT_DIR -fi - -if [[ ! -d $WORK_DIR ]]; then - mkdir -p $WORK_DIR -fi - -cd $WORK_DIR - -# download opencv if not already downloaded -if [[ ! -d opencv-4.5.2 ]]; then - if [[ ! $( which wget ) ]]; then - echo "wget is not available, please install it e.g. `$ brew install wget`" - exit 1 - fi - wget https://github.com/opencv/opencv/archive/refs/tags/4.5.2.tar.gz - tar xzf 4.5.2.tar.gz - rm 4.5.2.tar.gz -fi - -cd opencv-4.5.2/ - -if [[ ! -d build ]]; then - mkdir build -else - rm -f build/CMakeCache.txt -fi - -cd build - -# build opencv minimal (just core and imgproc) -cmake .. \ - -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \ - -DBUILD_SHARED_LIBS=OFF \ - -DBUILD_opencv_apps=OFF \ - -DBUILD_opencv_js=OFF \ - -DBUILD_ANDROID_PROJECTS=OFF \ - -DBUILD_ANDROID_EXAMPLES=OFF \ - -DBUILD_DOCS=OFF \ - -DBUILD_EXAMPLES=OFF \ - -DBUILD_PACKAGE=OFF \ - -DBUILD_PERF_TESTS=OFF \ - -DBUILD_TESTS=OFF \ - -DBUILD_WITH_DEBUG_INFO=OFF \ - -DBUILD_WITH_STATIC_CRT=OFF \ - -DBUILD_WITH_DYNAMIC_IPP=OFF \ - -DBUILD_FAT_JAVA_LIB=OFF \ - -DBUILD_ANDROID_SERVICE=OFF \ - -DBUILD_CUDA_STUBS=OFF \ - -DBUILD_JAVA=OFF \ - -DBUILD_OBJC=OFF \ - -DBUILD_opencv_python3=OFF \ - -DINSTALL_CREATE_DISTRIB=OFF \ - -DINSTALL_BIN_EXAMPLES=OFF \ - -DINSTALL_C_EXAMPLES=OFF \ - -DINSTALL_PYTHON_EXAMPLES=OFF \ - -DINSTALL_ANDROID_EXAMPLES=OFF \ - -DINSTALL_TO_MANGLED_PATHS=OFF \ - -DINSTALL_TESTS=OFF \ - -DBUILD_opencv_calib3d=OFF \ - -DBUILD_opencv_core=ON \ - -DBUILD_opencv_dnn=OFF \ - -DBUILD_opencv_features2d=OFF \ - -DBUILD_opencv_flann=OFF \ - -DBUILD_opencv_gapi=OFF \ - -DBUILD_opencv_highgui=OFF \ - -DBUILD_opencv_imgcodecs=OFF \ - -DBUILD_opencv_imgproc=ON \ - -DBUILD_opencv_ml=OFF \ - -DBUILD_opencv_objdetect=OFF \ - -DBUILD_opencv_photo=OFF \ - -DBUILD_opencv_stitching=OFF \ - -DBUILD_opencv_video=OFF \ - -DBUILD_opencv_videoio=OFF \ - -DWITH_PNG=OFF \ - -DWITH_JPEG=OFF \ - -DWITH_TIFF=OFF \ - -DWITH_WEBP=OFF \ - -DWITH_OPENJPEG=OFF \ - -DWITH_JASPER=OFF \ - -DWITH_OPENEXR=OFF \ - -DWITH_FFMPEG=OFF \ - -DWITH_GSTREAMER=OFF \ - -DWITH_1394=OFF \ - -DCMAKE_INSTALL_PREFIX=$OUTPUT_DIR \ - -DWITH_PROTOBUF=OFF \ - -DBUILD_PROTOBUF=OFF \ - -DWITH_CAROTENE=OFF \ - -DWITH_EIGEN=OFF \ - -DWITH_OPENVX=OFF \ - -DWITH_CLP=OFF \ - -DWITH_DIRECTX=OFF \ - -DWITH_VA=OFF \ - -DWITH_LAPACK=OFF \ - -DWITH_QUIRC=OFF \ - -DWITH_ADE=OFF \ - && \ - cmake --build . --target install -- -j8 - -cd "$CURRENT_DIR" diff --git a/scripts/obs-backgroundremoval-0.2beta-1-x86_64.pkg.tar.zst b/scripts/obs-backgroundremoval-0.2beta-1-x86_64.pkg.tar.zst deleted file mode 100644 index 827449fe..00000000 Binary files a/scripts/obs-backgroundremoval-0.2beta-1-x86_64.pkg.tar.zst and /dev/null differ diff --git a/scripts/ort_patches/REUSE.toml b/scripts/ort_patches/REUSE.toml new file mode 100644 index 00000000..da015239 --- /dev/null +++ b/scripts/ort_patches/REUSE.toml @@ -0,0 +1,6 @@ +version = 1 + +[[annotations]] +path = ["*/*.patch"] +SPDX-FileCopyrightText = "2026 Kaito Udagawa " +SPDX-License-Identifier = "Apache-2.0" diff --git a/scripts/ort_patches/v1.23.2/27960.patch b/scripts/ort_patches/v1.23.2/27960.patch new file mode 100644 index 00000000..5cbbbac0 --- /dev/null +++ b/scripts/ort_patches/v1.23.2/27960.patch @@ -0,0 +1,33 @@ +From f243ded0263723e5eab72ad653e819ba1fc0a109 Mon Sep 17 00:00:00 2001 +From: Kaito Udagawa +Date: Fri, 3 Apr 2026 12:51:14 +0900 +Subject: [PATCH] Fix CoreML-enabled static build on macOS + +The `coreml_proto` target must be properly exported to `onnxruntimeTargets`. Its include directories must not contain any paths from the build tree during the install phase. + +Signed-off-by: Kaito Udagawa +--- + cmake/onnxruntime_providers_coreml.cmake | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/cmake/onnxruntime_providers_coreml.cmake b/cmake/onnxruntime_providers_coreml.cmake +index 757198ffb651d..bf46a73e43839 100644 +--- a/cmake/onnxruntime_providers_coreml.cmake ++++ b/cmake/onnxruntime_providers_coreml.cmake +@@ -26,7 +26,7 @@ file(GLOB coreml_proto_srcs "${COREML_PROTO_ROOT}/*.proto") + onnxruntime_add_static_library(coreml_proto ${coreml_proto_srcs}) + target_include_directories(coreml_proto + PUBLIC $ +- "${CMAKE_CURRENT_BINARY_DIR}") ++ $) + target_compile_definitions(coreml_proto + PUBLIC $) + set_target_properties(coreml_proto PROPERTIES COMPILE_FLAGS "-fvisibility=hidden") +@@ -42,6 +42,7 @@ onnxruntime_protobuf_generate( + + if (NOT onnxruntime_BUILD_SHARED_LIB) + install(TARGETS coreml_proto ++ EXPORT ${PROJECT_NAME}Targets + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} diff --git a/scripts/ort_patches/v1.23.2/27981.patch b/scripts/ort_patches/v1.23.2/27981.patch new file mode 100644 index 00000000..4d44379a --- /dev/null +++ b/scripts/ort_patches/v1.23.2/27981.patch @@ -0,0 +1,24 @@ +From 0b47b496e0e7c5de0e002f6efe69640e6b993af6 Mon Sep 17 00:00:00 2001 +From: Kaito Udagawa +Date: Sat, 4 Apr 2026 19:37:56 +0900 +Subject: [PATCH] Install without providers_shared for static build + +`onnxruntime_providers_shared` should not be installed when building static library. + +Signed-off-by: Kaito Udagawa +--- + cmake/onnxruntime_providers_cpu.cmake | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cmake/onnxruntime_providers_cpu.cmake b/cmake/onnxruntime_providers_cpu.cmake +index f6efcb3fad6a9..dcd279dca6489 100644 +--- a/cmake/onnxruntime_providers_cpu.cmake ++++ b/cmake/onnxruntime_providers_cpu.cmake +@@ -216,6 +216,7 @@ set_target_properties(onnxruntime_providers PROPERTIES LINKER_LANGUAGE CXX) + set_target_properties(onnxruntime_providers PROPERTIES FOLDER "ONNXRuntime") + + if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD ++ AND onnxruntime_BUILD_SHARED_LIB + AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin|iOS|visionOS|tvOS" + AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android" + AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten") diff --git a/scripts/ort_patches/v1.23.2/27982.patch b/scripts/ort_patches/v1.23.2/27982.patch new file mode 100644 index 00000000..b9975919 --- /dev/null +++ b/scripts/ort_patches/v1.23.2/27982.patch @@ -0,0 +1,22 @@ +From ec4792ab46173266ea9b2c19da0ff9c1ce0d7a97 Mon Sep 17 00:00:00 2001 +From: Kaito Udagawa +Date: Sun, 5 Apr 2026 08:19:58 +0900 +Subject: [PATCH] Add include paths for static build + +Signed-off-by: Kaito Udagawa +--- + cmake/onnxruntime.cmake | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cmake/onnxruntime.cmake b/cmake/onnxruntime.cmake +index ff06ae91bead9..9b7e12b039b65 100644 +--- a/cmake/onnxruntime.cmake ++++ b/cmake/onnxruntime.cmake +@@ -214,6 +214,7 @@ endif() + + if (NOT onnxruntime_BUILD_SHARED_LIB) + add_library(onnxruntime INTERFACE) ++ target_include_directories(onnxruntime INTERFACE "$" "$") + endif() + + set(onnxruntime_INTERNAL_PROVIDER_LIBRARIES diff --git a/scripts/package_plugin_windows.ps1 b/scripts/package_plugin_windows.ps1 new file mode 100644 index 00000000..7c953e1a --- /dev/null +++ b/scripts/package_plugin_windows.ps1 @@ -0,0 +1,123 @@ +# SPDX-FileCopyrightText: 2026 Kaito Udagawa +# +# SPDX-License-Identifier: Apache-2.0 + +param ( + [string]$Target = "x64", + [string]$Configuration = "RelWithDebInfo", + [string]$OutputDir = "release" +) + +Set-StrictMode -Version Latest +$ErrorActionPreference = 'Stop' + +# 1. Locate and read buildspec.json +$BuildDir = "build_$Target" +$ScriptDir = $PSScriptRoot +$RootDir = Split-Path -Parent $ScriptDir +$BuildSpecFile = Join-Path $RootDir "buildspec.json" + +if (-not (Test-Path $BuildSpecFile)) { + Write-Error "buildspec.json not found at $BuildSpecFile" + exit 1 +} + +try { + Write-Host "Reading buildspec.json..." + $Spec = Get-Content $BuildSpecFile -Raw | ConvertFrom-Json + $PluginName = $Spec.name + $PluginVersion = $Spec.version +} +catch { + Write-Error "Failed to parse buildspec.json: $_" + exit 1 +} + +if (-not $PluginName -or -not $PluginVersion) { + Write-Error "Could not find 'name' or 'version' in buildspec.json" + exit 1 +} + +Write-Host "Packaging Plugin: $PluginName ($PluginVersion)" +Write-Host "Output Directory: $OutputDir" + +# 2. Prepare output directory +if (-not (Test-Path $OutputDir)) { + New-Item -ItemType Directory -Path $OutputDir -Force | Out-Null +} + +# Generate a unique temporary directory path +$TempBase = Join-Path ([System.IO.Path]::GetTempPath()) ([System.Guid]::NewGuid().ToString()) +$InstallDir = Join-Path $TempBase "package" +$SymbolsDir = Join-Path $TempBase "symbols" + +Write-Host "Using temporary working directory: $TempBase" + +try { + # 3. Run installation + Write-Host "Installing to temporary directory..." + # Ensure the parent temp directory exists + if (-not (Test-Path $TempBase)) { New-Item -ItemType Directory -Path $TempBase -Force | Out-Null } + + cmake --install $BuildDir --config $Configuration --prefix $InstallDir + if ($LASTEXITCODE -ne 0) { throw "CMake install failed" } + + # 4. Separate symbol files (PDBs) + Write-Host "Separating PDB files..." + New-Item -ItemType Directory -Path $SymbolsDir -Force | Out-Null + + Get-ChildItem -Path $InstallDir -Filter "*.pdb" -Recurse | ForEach-Object { + $RelativePath = $_.DirectoryName.Substring($InstallDir.Length).TrimStart('\', '/') + $DestDir = Join-Path $SymbolsDir $RelativePath + + if (-not (Test-Path $DestDir)) { + New-Item -ItemType Directory -Path $DestDir -Force | Out-Null + } + + Move-Item -Path $_.FullName -Destination $DestDir + } + + # 5. Create Zip archives (from temp dir to OutputDir) + Write-Host "Creating Archives..." + + $MainZip = Join-Path $OutputDir "$PluginName-$PluginVersion-windows-x64.zip" + if (Test-Path $MainZip) { Remove-Item $MainZip -Force } + + # Copy scripts/windows files to a temp root for zipping + $TempRoot = Join-Path $TempBase "ziproot" + New-Item -ItemType Directory -Path $TempRoot -Force | Out-Null + + # Copy plugin install files (preserve structure) + Copy-Item -Path "$InstallDir\*" -Destination $TempRoot -Recurse -Force + + # Copy scripts/windows files to root of zip + $ScriptsWin = Join-Path $ScriptDir "windows" + if (Test-Path $ScriptsWin) { + Get-ChildItem -Path $ScriptsWin -File | ForEach-Object { + Copy-Item $_.FullName -Destination $TempRoot -Force + } + } + + Compress-Archive -Path "$TempRoot/*" -DestinationPath $MainZip -Force + + $PdbZip = Join-Path $OutputDir "$PluginName-$PluginVersion-windows-x64-pdb.zip" + if (Test-Path $PdbZip) { Remove-Item $PdbZip -Force } + Compress-Archive -Path "$SymbolsDir/*" -DestinationPath $PdbZip -Force + + Write-Host "Packaging complete." + Write-Host " Binary: $MainZip" + Write-Host " Symbols: $PdbZip" + +} +catch { + Write-Error "Packaging failed: $_" + exit 1 +} +finally { + # 6. Cleanup + # Remove the temporary directory regardless of success or failure + if (Test-Path $TempBase) { + Write-Host "Cleaning up temporary directory..." + Remove-Item -Path $TempBase -Recurse -Force + } +} diff --git a/scripts/windows/How to install plugin on Windows.txt b/scripts/windows/How to install plugin on Windows.txt new file mode 100644 index 00000000..3374e005 --- /dev/null +++ b/scripts/windows/How to install plugin on Windows.txt @@ -0,0 +1,9 @@ +How to Install OBS Background Removal Plugin on Windows +============================================================= + +Copy the `obs-backgroundremoval` folder to your OBS Studio plugins directory. + +The default path is `C:/ProgramData/obs-studio/plugins\`. + +If `C:/ProgramData/obs-studio` or `C:/ProgramData/obs-studio\plugins` folders +do not exists, create them manually first. diff --git a/scripts/windows/Install Into Here.lnk b/scripts/windows/Install Into Here.lnk new file mode 100644 index 00000000..1dc02d5e Binary files /dev/null and b/scripts/windows/Install Into Here.lnk differ diff --git a/scripts/windows/remove-old-installation.bat b/scripts/windows/remove-old-installation.bat new file mode 100644 index 00000000..851fbf55 --- /dev/null +++ b/scripts/windows/remove-old-installation.bat @@ -0,0 +1,77 @@ +REM SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +REM SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +REM +REM SPDX-License-Identifier: GPL-3.0-or-later + +@echo off +REM Remove old installation of obs-backgroundremoval plugin +setlocal + +set PLUGIN_DIR=C:\ProgramData\obs-studio\plugins\obs-backgroundremoval +set DLL_FILE=C:\Program Files\obs-studio\obs-plugins\64bit\obs-backgroundremoval.dll +set PDB_FILE=C:\Program Files\obs-studio\obs-plugins\64bit\obs-backgroundremoval.pdb +set DATA_DIR=C:\Program Files\obs-studio\data\obs-plugins\obs-backgroundremoval + +REM Remove plugin directory (ProgramData) +if exist "%PLUGIN_DIR%" ( + echo Removing "%PLUGIN_DIR%" ... + rmdir /s /q "%PLUGIN_DIR%" + if exist "%PLUGIN_DIR%" ( + echo Failed to remove "%PLUGIN_DIR%". + ) else ( + echo Successfully removed "%PLUGIN_DIR%". + ) +) else ( + echo "%PLUGIN_DIR%" does not exist. +) + +REM Remove DLL file +if exist "%DLL_FILE%" ( + echo Removing "%DLL_FILE%" ... + del /f /q "%DLL_FILE%" + if exist "%DLL_FILE%" ( + echo Failed to remove "%DLL_FILE%". + ) else ( + echo Successfully removed "%DLL_FILE%". + ) +) else ( + echo "%DLL_FILE%" does not exist. +) + +REM Remove PDB file +if exist "%PDB_FILE%" ( + echo Removing "%PDB_FILE%" ... + del /f /q "%PDB_FILE%" + if exist "%PDB_FILE%" ( + echo Failed to remove "%PDB_FILE%". + ) else ( + echo Successfully removed "%PDB_FILE%". + ) +) else ( + echo "%PDB_FILE%" does not exist. +) + +REM Remove data directory +if exist "%DATA_DIR%" ( + echo Removing "%DATA_DIR%" ... + rmdir /s /q "%DATA_DIR%" + if exist "%DATA_DIR%" ( + echo Failed to remove "%DATA_DIR%". + exit /b 1 + ) else ( + echo Successfully removed "%DATA_DIR%". + ) +) else ( + echo "%DATA_DIR%" does not exist. +) + +echo. +echo ------------------------------------------------------------ +echo If you have installed OBS Studio in a different location, +echo please manually remove the corresponding plugin files and +echo directories listed above from that location. +echo ------------------------------------------------------------ + +pause + +endlocal diff --git a/src/DelayLoad.cpp b/src/DelayLoad.cpp new file mode 100644 index 00000000..b557ca8a --- /dev/null +++ b/src/DelayLoad.cpp @@ -0,0 +1,35 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include +#include + +#include +#include "plugin-support.h" + +extern "C" { + +FARPROC WINAPI DelayLoadHook(unsigned dliNotify, PDelayLoadInfo pdli) +{ + if (dliNotify == dliNotePreLoadLibrary) { + const std::string dllName(pdli->szDll); + if (dllName == "onnxruntime.dll") { + const std::filesystem::path binaryDir("../../obs-plugins/64bit"); + const std::filesystem::path absPath = + std::filesystem::absolute(binaryDir / PLUGIN_NAME / dllName); + obs_log(LOG_INFO, "Loading %S from %S", dllName.c_str(), absPath.c_str()); + return (FARPROC)LoadLibraryExW(absPath.c_str(), NULL, LOAD_WITH_ALTERED_SEARCH_PATH); + } else { + return NULL; + } + } + return NULL; +} + +const PfnDliHook __pfnDliNotifyHook2 = DelayLoadHook; +} diff --git a/src/FilterData.hpp b/src/FilterData.hpp new file mode 100644 index 00000000..0cd585ac --- /dev/null +++ b/src/FilterData.hpp @@ -0,0 +1,47 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef FILTERDATA_H +#define FILTERDATA_H + +#include + +#include +#include + +#include "models/Model.hpp" +#include "ort-utils/ORTModelData.hpp" + +/** + * @brief The filter_data struct + * + * This struct is used to store the base data needed for ORT filters. + * +*/ +struct filter_data : public ORTModelData, public std::enable_shared_from_this { + std::string useGPU; + uint32_t numThreads; + std::string modelSelection; + std::unique_ptr model; + + obs_source_t *source; + gs_texrender_t *texrender; + gs_stagesurf_t *stagesurface; + + cv::Mat inputBGRA; + + std::atomic isDisabled{false}; + + std::mutex inputBGRALock; + std::mutex outputLock; + +#if _WIN32 + std::wstring modelFilepath; +#else + std::string modelFilepath; +#endif +}; + +#endif /* FILTERDATA_H */ diff --git a/src/background-filter-info.c b/src/background-filter-info.c new file mode 100644 index 00000000..d8b64d60 --- /dev/null +++ b/src/background-filter-info.c @@ -0,0 +1,24 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include "background-filter.h" + +struct obs_source_info background_removal_filter_info = { + .id = "background_removal", + .type = OBS_SOURCE_TYPE_FILTER, + .output_flags = OBS_SOURCE_VIDEO, + .get_name = background_filter_getname, + .create = background_filter_create, + .destroy = background_filter_destroy, + .get_defaults = background_filter_defaults, + .get_properties = background_filter_properties, + .update = background_filter_update, + .activate = background_filter_activate, + .deactivate = background_filter_deactivate, + .video_tick = background_filter_video_tick, + .video_render = background_filter_video_render, +}; diff --git a/src/background-filter.cpp b/src/background-filter.cpp index 31cce58a..888aea7c 100644 --- a/src/background-filter.cpp +++ b/src/background-filter.cpp @@ -1,17 +1,15 @@ -#include -#include +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "background-filter.h" -#if defined(__APPLE__) -#include -#include -#else #include -#include -#endif + #ifdef _WIN32 -#include #include -#endif +#endif // _WIN32 #include @@ -19,533 +17,808 @@ #include #include #include - -#include "plugin-macros.generated.h" - - -const char* MODEL_SINET = "SINet_Softmax_simple.onnx"; -const char* MODEL_MODNET = "modnet_simple.onnx"; -const char* MODEL_MEDIAPIPE = "mediapipe.onnx"; -const char* MODEL_SELFIE = "selfie_segmentation.onnx"; - - -struct background_removal_filter { - std::unique_ptr session; - std::unique_ptr env; - std::vector inputNames; - std::vector outputNames; - Ort::Value inputTensor; - Ort::Value outputTensor; - std::vector inputDims; - std::vector outputDims; - std::vector outputTensorValues; - std::vector inputTensorValues; - Ort::MemoryInfo memoryInfo; +#include +#include +#include +#include + +#include "plugin-support.h" +#include "models/ModelSINET.hpp" +#include "models/ModelMediapipe.hpp" +#include "models/ModelSelfie.hpp" +#include "models/ModelSelfieMulticlass.hpp" +#include "models/ModelRVM.hpp" +#include "models/ModelPPHumanSeg.hpp" +#include "models/ModelTCMonoDepth.hpp" +#include "FilterData.hpp" +#include "ort-utils/ort-session-utils.hpp" +#include "obs-utils/obs-utils.hpp" +#include "consts.h" +#include "update-checker/update-checker.h" + +struct background_removal_filter : public filter_data, public std::enable_shared_from_this { + bool enableThreshold = true; + bool stopWhenSourceIsInactive = true; float threshold = 0.5f; - cv::Scalar backgroundColor{0, 0, 0}; + cv::Scalar backgroundColor{0, 0, 0, 0}; float contourFilter = 0.05f; float smoothContour = 0.5f; float feather = 0.0f; - bool useGPU = false; - std::string modelSelection = MODEL_MEDIAPIPE; - - // Use the media-io converter to both scale and convert the colorspace - video_scaler_t* scalerToBGR; - video_scaler_t* scalerFromBGR; - -#if _WIN32 - const wchar_t* modelFilepath = nullptr; -#else - const char* modelFilepath = nullptr; -#endif + int maskExpansion = 0; + + cv::Mat backgroundMask; + cv::Mat lastBackgroundMask; + cv::Mat lastImageBGRA; + float temporalSmoothFactor = 0.0f; + float imageSimilarityThreshold = 35.0f; + bool enableImageSimilarity = true; + int maskEveryXFrames = 1; + int maskEveryXFramesCount = 0; + int64_t blurBackground = 0; + bool enableFocalBlur = false; + float blurFocusPoint = 0.1f; + float blurFocusDepth = 0.1f; + + gs_effect_t *effect; + gs_effect_t *kawaseBlurEffect; + + std::mutex modelMutex; + + ~background_removal_filter() { obs_log(LOG_INFO, "Background removal filter destructor called"); } }; -static const char *filter_getname(void *unused) +void background_removal_thread(void *data); // Forward declaration + +const char *background_filter_getname(void *unused) { UNUSED_PARAMETER(unused); - return "Background Removal"; + return obs_module_text("BackgroundRemoval"); } -template -T vectorProduct(const std::vector& v) +/** PROPERTIES */ + +static bool visible_on_bool(obs_properties_t *ppts, obs_data_t *settings, const char *bool_prop, const char *prop_name) { - return accumulate(v.begin(), v.end(), (T)1, std::multiplies()); + const bool enabled = obs_data_get_bool(settings, bool_prop); + obs_property_t *p = obs_properties_get(ppts, prop_name); + obs_property_set_visible(p, enabled); + return true; } -static void hwc_to_chw(cv::InputArray src, cv::OutputArray dst) { - std::vector channels; - cv::split(src, channels); +static bool enable_threshold_modified(obs_properties_t *ppts, obs_property_t *p, obs_data_t *settings) +{ + UNUSED_PARAMETER(p); + return visible_on_bool(ppts, settings, "enable_threshold", "threshold_group"); +} - // Stretch one-channel images to vector - for (auto &img : channels) { - img = img.reshape(1, 1); - } +static bool enable_focal_blur(obs_properties_t *ppts, obs_property_t *p, obs_data_t *settings) +{ + UNUSED_PARAMETER(p); + return visible_on_bool(ppts, settings, "enable_focal_blur", "focal_blur_group"); +} - // Concatenate three vectors to one - cv::hconcat( channels, dst ); +static bool enable_image_similarity(obs_properties_t *ppts, obs_property_t *p, obs_data_t *settings) +{ + UNUSED_PARAMETER(p); + return visible_on_bool(ppts, settings, "enable_image_similarity", "image_similarity_threshold"); } +static bool enable_advanced_settings(obs_properties_t *ppts, obs_property_t *p, obs_data_t *settings) +{ + const bool enabled = obs_data_get_bool(settings, "advanced"); + p = obs_properties_get(ppts, "blur_background"); + obs_property_set_visible(p, true); + + for (const char *prop_name : + {"model_select", "useGPU", "mask_every_x_frames", "numThreads", "enable_focal_blur", "enable_threshold", + "threshold_group", "focal_blur_group", "temporal_smooth_factor", "image_similarity_threshold", + "enable_image_similarity", "mask_expansion"}) { + p = obs_properties_get(ppts, prop_name); + obs_property_set_visible(p, enabled); + } -/** PROPERTIES */ + if (enabled) { + enable_threshold_modified(ppts, p, settings); + enable_focal_blur(ppts, p, settings); + enable_image_similarity(ppts, p, settings); + } + + return true; +} -static obs_properties_t *filter_properties(void *data) +obs_properties_t *background_filter_properties(void *data) { obs_properties_t *props = obs_properties_create(); - obs_property_t *p_threshold = obs_properties_add_float_slider( - props, - "threshold", - obs_module_text("Threshold"), - 0.0, - 1.0, - 0.025); - - obs_property_t *p_contour_filter = obs_properties_add_float_slider( - props, - "contour_filter", - obs_module_text("Contour Filter (% of image)"), - 0.0, - 1.0, - 0.025); - - obs_property_t *p_smooth_contour = obs_properties_add_float_slider( - props, - "smooth_contour", - obs_module_text("Smooth silhouette"), - 0.0, - 1.0, - 0.05); - - obs_property_t *p_feather = obs_properties_add_float_slider( - props, - "feather", - obs_module_text("Feather blend silhouette"), - 0.0, - 1.0, - 0.05); - - obs_property_t *p_color = obs_properties_add_color( - props, - "replaceColor", - obs_module_text("Background Color")); - - obs_property_t *p_use_gpu = obs_properties_add_bool( - props, - "useGPU", - obs_module_text("Use GPU for inference (Windows only)")); - - obs_property_t *p_model_select = obs_properties_add_list( - props, - "model_select", - obs_module_text("Segmentation model"), - OBS_COMBO_TYPE_LIST, - OBS_COMBO_FORMAT_STRING - ); + obs_property_t *advanced = obs_properties_add_bool(props, "advanced", obs_module_text("Advanced")); + + obs_properties_add_bool(props, "stop_when_source_is_inactive", + obs_module_text("Stop filter when source is inactive")); + + // If advanced is selected show the advanced settings, otherwise hide them + obs_property_set_modified_callback(advanced, enable_advanced_settings); + + /* Threshold props */ + obs_property_t *p_enable_threshold = + obs_properties_add_bool(props, "enable_threshold", obs_module_text("EnableThreshold")); + obs_property_set_modified_callback(p_enable_threshold, enable_threshold_modified); + + // Threshold props group + obs_properties_t *threshold_props = obs_properties_create(); + + obs_properties_add_float_slider(threshold_props, "threshold", obs_module_text("Threshold"), 0.0, 1.0, 0.025); + + obs_properties_add_float_slider(threshold_props, "contour_filter", + obs_module_text("ContourFilterPercentOfImage"), 0.0, 1.0, 0.025); + + obs_properties_add_float_slider(threshold_props, "smooth_contour", obs_module_text("SmoothSilhouette"), 0.0, + 1.0, 0.05); + + obs_properties_add_float_slider(threshold_props, "feather", obs_module_text("FeatherBlendSilhouette"), 0.0, 1.0, + 0.05); + + obs_properties_add_group(props, "threshold_group", obs_module_text("ThresholdGroup"), OBS_GROUP_NORMAL, + threshold_props); + + /* Mask expansion slider - in advanced settings */ + obs_properties_add_int_slider(props, "mask_expansion", obs_module_text("MaskExpansion"), -30, 30, 1); + + /* GPU, CPU and performance Props */ + obs_property_t *p_use_gpu = obs_properties_add_list(props, "useGPU", obs_module_text("InferenceDevice"), + OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_STRING); + + obs_property_list_add_string(p_use_gpu, obs_module_text("CPU"), USEGPU_CPU); +#ifdef HAVE_ONNXRUNTIME_CUDA_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("GPUCUDA"), USEGPU_CUDA); +#endif +#ifdef HAVE_ONNXRUNTIME_ROCM_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("GPUROCM"), USEGPU_ROCM); +#endif +#ifdef HAVE_ONNXRUNTIME_MIGRAPHX_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("GPUMIGRAPHX"), USEGPU_MIGRAPHX); +#endif +#ifdef HAVE_ONNXRUNTIME_TENSORRT_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("TENSORRT"), USEGPU_TENSORRT); +#endif +#if defined(__APPLE__) + obs_property_list_add_string(p_use_gpu, obs_module_text("CoreML"), USEGPU_COREML); +#endif + + obs_properties_add_int(props, "mask_every_x_frames", obs_module_text("CalculateMaskEveryXFrame"), 1, 300, 1); + obs_properties_add_int_slider(props, "numThreads", obs_module_text("NumThreads"), 0, 8, 1); + + /* Model selection Props */ + obs_property_t *p_model_select = obs_properties_add_list(props, "model_select", + obs_module_text("SegmentationModel"), + OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_STRING); + obs_property_list_add_string(p_model_select, obs_module_text("SINet"), MODEL_SINET); - obs_property_list_add_string(p_model_select, obs_module_text("MODNet"), MODEL_MODNET); obs_property_list_add_string(p_model_select, obs_module_text("MediaPipe"), MODEL_MEDIAPIPE); obs_property_list_add_string(p_model_select, obs_module_text("Selfie Segmentation"), MODEL_SELFIE); - -#ifndef _WIN32 - obs_property_set_enabled(p_use_gpu, false); -#endif + obs_property_list_add_string(p_model_select, obs_module_text("Selfie Multiclass"), MODEL_SELFIE_MULTICLASS); + obs_property_list_add_string(p_model_select, obs_module_text("PPHumanSeg"), MODEL_PPHUMANSEG); + obs_property_list_add_string(p_model_select, obs_module_text("Robust Video Matting"), MODEL_RVM); + obs_property_list_add_string(p_model_select, obs_module_text("TCMonoDepth"), MODEL_DEPTH_TCMONODEPTH); + + obs_properties_add_float_slider(props, "temporal_smooth_factor", obs_module_text("TemporalSmoothFactor"), 0.0, + 1.0, 0.01); + + obs_property_t *p_enable_image_similarity = + obs_properties_add_bool(props, "enable_image_similarity", obs_module_text("EnableImageSimilarity")); + obs_property_set_modified_callback(p_enable_image_similarity, enable_image_similarity); + + obs_properties_add_float_slider(props, "image_similarity_threshold", + obs_module_text("ImageSimilarityThreshold"), 0.0, 100.0, 1.0); + + /* Background Blur Props */ + obs_properties_add_int_slider(props, "blur_background", obs_module_text("BlurBackgroundFactor0NoBlurUseColor"), + 0, 20, 1); + + obs_property_t *p_enable_focal_blur = + obs_properties_add_bool(props, "enable_focal_blur", obs_module_text("EnableFocalBlur")); + obs_property_set_modified_callback(p_enable_focal_blur, enable_focal_blur); + + obs_properties_t *focal_blur_props = obs_properties_create(); + + obs_properties_add_float_slider(focal_blur_props, "blur_focus_point", obs_module_text("BlurFocusPoint"), 0.0, + 1.0, 0.05); + obs_properties_add_float_slider(focal_blur_props, "blur_focus_depth", obs_module_text("BlurFocusDepth"), 0.0, + 0.3, 0.02); + + obs_properties_add_group(props, "focal_blur_group", obs_module_text("FocalBlurGroup"), OBS_GROUP_NORMAL, + focal_blur_props); + + // Add a informative text about the plugin + // replace the placeholder with the current version + // use std::regex_replace instead of QString::arg because the latter doesn't work on Linux + std::string basic_info = std::regex_replace(PLUGIN_INFO_TEMPLATE, std::regex("%1"), PLUGIN_VERSION); + // Check for update + if (get_latest_version() != nullptr) { + basic_info += std::regex_replace(PLUGIN_INFO_TEMPLATE_UPDATE_AVAILABLE, std::regex("%1"), + get_latest_version()); + } + obs_properties_add_text(props, "info", basic_info.c_str(), OBS_TEXT_INFO); UNUSED_PARAMETER(data); return props; } -static void filter_defaults(obs_data_t *settings) { +void background_filter_defaults(obs_data_t *settings) +{ + obs_data_set_default_bool(settings, "advanced", false); + obs_data_set_default_bool(settings, "stop_when_source_is_inactive", true); + obs_data_set_default_bool(settings, "enable_threshold", true); obs_data_set_default_double(settings, "threshold", 0.5); obs_data_set_default_double(settings, "contour_filter", 0.05); obs_data_set_default_double(settings, "smooth_contour", 0.5); + obs_data_set_default_double(settings, "mask_expansion", 0); obs_data_set_default_double(settings, "feather", 0.0); - obs_data_set_default_int(settings, "replaceColor", 0x000000); - obs_data_set_default_bool(settings, "useGPU", false); +#if defined(__APPLE__) + obs_data_set_default_string(settings, "useGPU", USEGPU_CPU); +#else + // Linux + obs_data_set_default_string(settings, "useGPU", USEGPU_CPU); +#endif obs_data_set_default_string(settings, "model_select", MODEL_MEDIAPIPE); + obs_data_set_default_int(settings, "mask_every_x_frames", 1); + obs_data_set_default_int(settings, "blur_background", 0); + obs_data_set_default_int(settings, "numThreads", 1); + obs_data_set_default_bool(settings, "enable_focal_blur", false); + obs_data_set_default_double(settings, "temporal_smooth_factor", 0.85); + obs_data_set_default_double(settings, "image_similarity_threshold", 35.0); + obs_data_set_default_bool(settings, "enable_image_similarity", true); + obs_data_set_default_double(settings, "blur_focus_point", 0.1); + obs_data_set_default_double(settings, "blur_focus_depth", 0.0); } -static void createOrtSession(struct background_removal_filter *tf) { - - Ort::SessionOptions sessionOptions; +void background_filter_update(void *data, obs_data_t *settings) +{ + obs_log(LOG_INFO, "Background filter updated"); - sessionOptions.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_ALL); - if (tf->useGPU) { - sessionOptions.DisableMemPattern(); - sessionOptions.SetExecutionMode(ExecutionMode::ORT_SEQUENTIAL); + // Cast to shared_ptr pointer and create a local shared_ptr + auto *ptr = static_cast *>(data); + if (!ptr) { + return; } - char* modelFilepath_rawPtr = obs_module_file(tf->modelSelection.c_str()); - - if (modelFilepath_rawPtr == nullptr) { - blog(LOG_ERROR, "Unable to get model filename from plugin."); + std::shared_ptr tf = *ptr; + if (!tf) { return; } - std::string modelFilepath_s(modelFilepath_rawPtr); - bfree(modelFilepath_rawPtr); + tf->isDisabled = true; -#if _WIN32 - std::wstring modelFilepath_ws(modelFilepath_s.size(), L' '); - std::copy(modelFilepath_s.begin(), modelFilepath_s.end(), modelFilepath_ws.begin()); - tf->modelFilepath = modelFilepath_ws.c_str(); -#else - tf->modelFilepath = modelFilepath_s.c_str(); -#endif + tf->stopWhenSourceIsInactive = obs_data_get_bool(settings, "stop_when_source_is_inactive"); + tf->enableThreshold = (float)obs_data_get_bool(settings, "enable_threshold"); + tf->threshold = (float)obs_data_get_double(settings, "threshold"); - try { -#ifdef _WIN32 - if (tf->useGPU) { - Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_DML(sessionOptions, 0)); + tf->contourFilter = (float)obs_data_get_double(settings, "contour_filter"); + tf->smoothContour = (float)obs_data_get_double(settings, "smooth_contour"); + tf->maskExpansion = (int)obs_data_get_double(settings, "mask_expansion"); + tf->feather = (float)obs_data_get_double(settings, "feather"); + tf->maskEveryXFrames = (int)obs_data_get_int(settings, "mask_every_x_frames"); + tf->maskEveryXFramesCount = (int)(0); + tf->blurBackground = obs_data_get_int(settings, "blur_background"); + tf->enableFocalBlur = (float)obs_data_get_bool(settings, "enable_focal_blur"); + tf->blurFocusPoint = (float)obs_data_get_double(settings, "blur_focus_point"); + tf->blurFocusDepth = (float)obs_data_get_double(settings, "blur_focus_depth"); + tf->temporalSmoothFactor = (float)obs_data_get_double(settings, "temporal_smooth_factor"); + tf->imageSimilarityThreshold = (float)obs_data_get_double(settings, "image_similarity_threshold"); + tf->enableImageSimilarity = (float)obs_data_get_bool(settings, "enable_image_similarity"); + + const std::string newUseGpu = obs_data_get_string(settings, "useGPU"); + const std::string newModel = obs_data_get_string(settings, "model_select"); + const uint32_t newNumThreads = (uint32_t)obs_data_get_int(settings, "numThreads"); + + if (tf->modelSelection.empty() || tf->modelSelection != newModel || tf->useGPU != newUseGpu || + tf->numThreads != newNumThreads) { + // lock modelMutex + std::unique_lock lock(tf->modelMutex); + + // Re-initialize model if it's not already the selected one or switching inference device + tf->modelSelection = newModel; + tf->useGPU = newUseGpu; + tf->numThreads = newNumThreads; + + if (tf->modelSelection == MODEL_SINET) { + tf->model.reset(new ModelSINET); + } + if (tf->modelSelection == MODEL_SELFIE) { + tf->model.reset(new ModelSelfie); + } + if (tf->modelSelection == MODEL_SELFIE_MULTICLASS) { + tf->model.reset(new ModelSelfieMulticlass); + } + if (tf->modelSelection == MODEL_MEDIAPIPE) { + tf->model.reset(new ModelMediaPipe); } + if (tf->modelSelection == MODEL_RVM) { + tf->model.reset(new ModelRVM); + } + if (tf->modelSelection == MODEL_PPHUMANSEG) { + tf->model.reset(new ModelPPHumanSeg); + } + if (tf->modelSelection == MODEL_DEPTH_TCMONODEPTH) { + tf->model.reset(new ModelTCMonoDepth); + } + + int ortSessionResult = createOrtSession(tf.get()); + if (ortSessionResult != OBS_BGREMOVAL_ORT_SESSION_SUCCESS) { + obs_log(LOG_ERROR, "Failed to create ONNXRuntime session. Error code: %d", ortSessionResult); + // disable filter + tf->isDisabled = true; + tf->model.reset(); + return; + } + } + + obs_enter_graphics(); + + char *effect_path = obs_module_file(EFFECT_PATH); + gs_effect_destroy(tf->effect); + tf->effect = gs_effect_create_from_file(effect_path, NULL); + bfree(effect_path); + + char *kawaseBlurEffectPath = obs_module_file(KAWASE_BLUR_EFFECT_PATH); + gs_effect_destroy(tf->kawaseBlurEffect); + tf->kawaseBlurEffect = gs_effect_create_from_file(kawaseBlurEffectPath, NULL); + bfree(kawaseBlurEffectPath); + + obs_leave_graphics(); + + // Log the currently selected options + obs_log(LOG_INFO, "Background Removal Filter Options:"); + // name of the source that the filter is attached to + obs_log(LOG_INFO, " Source: %s", obs_source_get_name(tf->source)); + obs_log(LOG_INFO, " Model: %s", tf->modelSelection.c_str()); + obs_log(LOG_INFO, " Inference Device: %s", tf->useGPU.c_str()); + obs_log(LOG_INFO, " Num Threads: %d", tf->numThreads); + obs_log(LOG_INFO, " Enable Threshold: %s", tf->enableThreshold ? "true" : "false"); + obs_log(LOG_INFO, " Threshold: %f", tf->threshold); + obs_log(LOG_INFO, " Contour Filter: %f", tf->contourFilter); + obs_log(LOG_INFO, " Smooth Contour: %f", tf->smoothContour); + obs_log(LOG_INFO, " Mask Expansion: %f", tf->maskExpansion); + obs_log(LOG_INFO, " Feather: %f", tf->feather); + obs_log(LOG_INFO, " Mask Every X Frames: %d", tf->maskEveryXFrames); + obs_log(LOG_INFO, " Enable Image Similarity: %s", tf->enableImageSimilarity ? "true" : "false"); + obs_log(LOG_INFO, " Image Similarity Threshold: %f", tf->imageSimilarityThreshold); + obs_log(LOG_INFO, " Blur Background: %d", tf->blurBackground); + obs_log(LOG_INFO, " Enable Focal Blur: %s", tf->enableFocalBlur ? "true" : "false"); + obs_log(LOG_INFO, " Blur Focus Point: %f", tf->blurFocusPoint); + obs_log(LOG_INFO, " Blur Focus Depth: %f", tf->blurFocusDepth); + obs_log(LOG_INFO, " Disabled: %s", tf->isDisabled ? "true" : "false"); +#ifdef _WIN32 + obs_log(LOG_INFO, " Model file path: %S", tf->modelFilepath.c_str()); +#else + obs_log(LOG_INFO, " Model file path: %s", tf->modelFilepath.c_str()); #endif - tf->session.reset(new Ort::Session(*tf->env, tf->modelFilepath, sessionOptions)); - } catch (const std::exception& e) { - blog(LOG_ERROR, "%s", e.what()); + + // enable + tf->isDisabled = false; +} + +void background_filter_activate(void *data) +{ + auto *ptr = static_cast *>(data); + if (!ptr) { return; } - Ort::AllocatorWithDefaultOptions allocator; - - tf->inputNames.clear(); - tf->outputNames.clear(); - - tf->inputNames.push_back(tf->session->GetInputName(0, allocator)); - tf->outputNames.push_back(tf->session->GetOutputName(0, allocator)); - - // Allocate output buffer - const Ort::TypeInfo outputTypeInfo = tf->session->GetOutputTypeInfo(0); - const auto outputTensorInfo = outputTypeInfo.GetTensorTypeAndShapeInfo(); - tf->outputDims = outputTensorInfo.GetShape(); - tf->outputTensorValues.resize(vectorProduct(tf->outputDims)); - - // Allocate input buffer - const Ort::TypeInfo inputTypeInfo = tf->session->GetInputTypeInfo(0); - const auto inputTensorInfo = inputTypeInfo.GetTensorTypeAndShapeInfo(); - tf->inputDims = inputTensorInfo.GetShape(); - tf->inputTensorValues.resize(vectorProduct(tf->inputDims)); - - blog(LOG_INFO, "Model input: name %s shape %d x %d x %d, output: name %s shape %d x %d x %d", - tf->inputNames[0], (int)tf->inputDims[1], (int)tf->inputDims[2], (int)tf->inputDims[3], - tf->outputNames[0], (int)tf->outputDims[1], (int)tf->outputDims[2], (int)tf->outputDims[3]); - - // Build input and output tensors - tf->memoryInfo = Ort::MemoryInfo::CreateCpu( - OrtAllocatorType::OrtDeviceAllocator, OrtMemType::OrtMemTypeDefault); - tf->outputTensor = Ort::Value::CreateTensor( - tf->memoryInfo, - tf->outputTensorValues.data(), - tf->outputTensorValues.size(), - tf->outputDims.data(), - tf->outputDims.size()); - tf->inputTensor = Ort::Value::CreateTensor( - tf->memoryInfo, - tf->inputTensorValues.data(), - tf->inputTensorValues.size(), - tf->inputDims.data(), - tf->inputDims.size()); + std::shared_ptr tf = *ptr; + if (tf && tf->stopWhenSourceIsInactive) { + obs_log(LOG_INFO, "Background filter activated"); + tf->isDisabled = false; + } } - -static void destroyScalers(struct background_removal_filter *tf) { - blog(LOG_INFO, "Destroy scalers."); - if (tf->scalerToBGR != nullptr) { - video_scaler_destroy(tf->scalerToBGR); - tf->scalerToBGR = nullptr; +void background_filter_deactivate(void *data) +{ + auto *ptr = static_cast *>(data); + if (!ptr) { + return; } - if (tf->scalerFromBGR != nullptr) { - video_scaler_destroy(tf->scalerFromBGR); - tf->scalerFromBGR = nullptr; + + std::shared_ptr tf = *ptr; + if (tf && tf->stopWhenSourceIsInactive) { + obs_log(LOG_INFO, "Background filter deactivated"); + tf->isDisabled = true; } } +/** FILTER CORE */ -static void filter_update(void *data, obs_data_t *settings) +void *background_filter_create(obs_data_t *settings, obs_source_t *source) { - struct background_removal_filter *tf = reinterpret_cast(data); - tf->threshold = (float)obs_data_get_double(settings, "threshold"); + obs_log(LOG_INFO, "Background filter created"); + try { + // Create the instance as a shared_ptr + auto instance = std::make_shared(); - uint64_t color = obs_data_get_int(settings, "replaceColor"); - tf->backgroundColor.val[0] = (double)((color >> 16) & 0x0000ff); - tf->backgroundColor.val[1] = (double)((color >> 8) & 0x0000ff); - tf->backgroundColor.val[2] = (double)(color & 0x0000ff); + instance->source = source; + instance->texrender = gs_texrender_create(GS_BGRA, GS_ZS_NONE); - tf->contourFilter = (float)obs_data_get_double(settings, "contour_filter"); - tf->smoothContour = (float)obs_data_get_double(settings, "smooth_contour"); - tf->feather = (float)obs_data_get_double(settings, "feather"); + std::string instanceName{"background-removal-inference"}; + instance->env.reset(new Ort::Env(OrtLoggingLevel::ORT_LOGGING_LEVEL_ERROR, instanceName.c_str())); - const bool newUseGpu = (bool)obs_data_get_bool(settings, "useGPU"); - const std::string newModel = obs_data_get_string(settings, "model_select"); + instance->modelSelection = MODEL_MEDIAPIPE; - if (tf->modelSelection.empty() || tf->modelSelection != newModel || newUseGpu != tf->useGPU) - { - // Re-initialize model if it's not already the selected one - tf->modelSelection = std::string(newModel); - tf->useGPU = newUseGpu; - destroyScalers(tf); - createOrtSession(tf); + // Create pointer to shared_ptr for the update call + auto ptr = new std::shared_ptr(instance); + background_filter_update(ptr, settings); + + // Return the pointer to the shared_ptr + // This keeps the reference count at least 1 until destroy is called + return ptr; + } catch (const std::exception &e) { + obs_log(LOG_ERROR, "Failed to create background filter: %s", e.what()); + return nullptr; } } +void background_filter_destroy(void *data) +{ + obs_log(LOG_INFO, "Background filter destroyed"); + + // Cast back to shared_ptr pointer + auto *ptr = static_cast *>(data); + if (ptr) { + if (*ptr) { + // Mark as disabled to prevent further processing + (*ptr)->isDisabled = true; + + // Perform cleanup + obs_enter_graphics(); + gs_texrender_destroy((*ptr)->texrender); + if ((*ptr)->stagesurface) { + gs_stagesurface_destroy((*ptr)->stagesurface); + } + gs_effect_destroy((*ptr)->effect); + gs_effect_destroy((*ptr)->kawaseBlurEffect); + obs_leave_graphics(); + } + // Delete the pointer to shared_ptr + // This decrements the ref count. If no other threads hold a shared_ptr, the instance is deleted + delete ptr; + } +} -/** FILTER CORE */ +static void processImageForBackground(struct background_removal_filter *tf, const cv::Mat &imageBGRA, + cv::Mat &backgroundMask) +{ + cv::Mat outputImage; + if (!runFilterModelInference(tf, imageBGRA, outputImage)) { + return; + } + // Assume outputImage is now a single channel, uint8 image with values between 0 and 255 + + // If we have a threshold, apply it. Otherwise, just use the output image as the mask + if (tf->enableThreshold) { + // We need to make tf->threshold (float [0,1]) be in that range + const uint8_t threshold_value = (uint8_t)(tf->threshold * 255.0f); + backgroundMask = outputImage < threshold_value; + } else { + backgroundMask = 255 - outputImage; + } +} -static void *filter_create(obs_data_t *settings, obs_source_t *source) +void background_filter_video_tick(void *data, float seconds) { - struct background_removal_filter *tf = reinterpret_cast(bzalloc(sizeof(struct background_removal_filter))); + UNUSED_PARAMETER(seconds); - std::string instanceName{"background-removal-inference"}; - tf->env.reset(new Ort::Env(OrtLoggingLevel::ORT_LOGGING_LEVEL_ERROR, instanceName.c_str())); + // Cast to shared_ptr pointer and create a local shared_ptr + auto *ptr = static_cast *>(data); + if (!ptr) { + return; + } - filter_update(tf, settings); + // Create a local shared_ptr + // This guarantees the object stays alive for the duration of this function scope + // even if filter_destroy is called on the main thread + std::shared_ptr tf = *ptr; - return tf; -} + if (!tf || tf->isDisabled) { + return; + } + if (!obs_source_enabled(tf->source)) { + return; + } -static void initializeScalers( - cv::Size frameSize, - enum video_format frameFormat, - struct background_removal_filter *tf -) { - - struct video_scale_info dst{ - VIDEO_FORMAT_BGR3, - (uint32_t)frameSize.width, - (uint32_t)frameSize.height, - VIDEO_RANGE_DEFAULT, - VIDEO_CS_DEFAULT - }; - struct video_scale_info src{ - frameFormat, - (uint32_t)frameSize.width, - (uint32_t)frameSize.height, - VIDEO_RANGE_DEFAULT, - VIDEO_CS_DEFAULT - }; - - // Check if scalers already defined and release them - destroyScalers(tf); - - blog(LOG_INFO, "Initialize scalers. Size %d x %d", - frameSize.width, frameSize.height); - - // Create new scalers - video_scaler_create(&tf->scalerToBGR, &dst, &src, VIDEO_SCALE_DEFAULT); - video_scaler_create(&tf->scalerFromBGR, &src, &dst, VIDEO_SCALE_DEFAULT); -} + if (!tf->model) { + obs_log(LOG_ERROR, "Model is not initialized"); + return; + } + cv::Mat imageBGRA; + { + std::unique_lock lock(tf->inputBGRALock, std::try_to_lock); + if (!lock.owns_lock()) { + // No data to process + return; + } + if (tf->inputBGRA.empty()) { + // No data to process + return; + } + imageBGRA = tf->inputBGRA.clone(); + } -static cv::Mat convertFrameToBGR( - struct obs_source_frame *frame, - struct background_removal_filter *tf -) { - const cv::Size frameSize(frame->width, frame->height); + if (tf->enableImageSimilarity) { + if (!tf->lastImageBGRA.empty() && !imageBGRA.empty() && tf->lastImageBGRA.size() == imageBGRA.size()) { + // calculate PSNR + double psnr = cv::PSNR(tf->lastImageBGRA, imageBGRA); - if (tf->scalerToBGR == nullptr) { - // Lazy initialize the frame scale & color converter - initializeScalers(frameSize, frame->format, tf); + if (psnr > tf->imageSimilarityThreshold) { + // The image is almost the same as the previous one. Skip processing. + return; + } + } + tf->lastImageBGRA = imageBGRA.clone(); } - cv::Mat imageBGR(frameSize, CV_8UC3); - const uint32_t bgrLinesize = (uint32_t)(imageBGR.cols * imageBGR.elemSize()); - video_scaler_scale(tf->scalerToBGR, - &(imageBGR.data), &(bgrLinesize), - frame->data, frame->linesize); + if (tf->backgroundMask.empty()) { + // First frame. Initialize the background mask. + tf->backgroundMask = cv::Mat(imageBGRA.size(), CV_8UC1, cv::Scalar(255)); + } - return imageBGR; -} + tf->maskEveryXFramesCount++; + tf->maskEveryXFramesCount %= tf->maskEveryXFrames; + try { + if (tf->maskEveryXFramesCount != 0 && !tf->backgroundMask.empty()) { + // We are skipping processing of the mask for this frame. + // Get the background mask previously generated. + ; // Do nothing + } else { + cv::Mat backgroundMask; -static void convertBGRToFrame( - const cv::Mat& imageBGR, - struct obs_source_frame *frame, - struct background_removal_filter *tf -) { - if (tf->scalerFromBGR == nullptr) { - // Lazy initialize the frame scale & color converter - initializeScalers(cv::Size(frame->width, frame->height), frame->format, tf); - } + { + std::unique_lock lock(tf->modelMutex); + // Process the image to find the mask. + processImageForBackground(tf.get(), imageBGRA, backgroundMask); + } - const uint32_t rgbLinesize = (uint32_t)(imageBGR.cols * imageBGR.elemSize()); - video_scaler_scale(tf->scalerFromBGR, - frame->data, frame->linesize, - &(imageBGR.data), &(rgbLinesize)); -} + if (backgroundMask.empty()) { + // Something went wrong. Just use the previous mask. + obs_log(LOG_WARNING, + "Background mask is empty. This shouldn't happen. Using previous mask."); + return; + } + // Temporal smoothing + if (tf->temporalSmoothFactor > 0.0 && tf->temporalSmoothFactor < 1.0 && + !tf->lastBackgroundMask.empty() && tf->lastBackgroundMask.size() == backgroundMask.size()) { -static struct obs_source_frame * filter_render(void *data, struct obs_source_frame *frame) -{ - struct background_removal_filter *tf = reinterpret_cast(data); + float temporalSmoothFactor = tf->temporalSmoothFactor; + if (tf->enableThreshold) { + // The temporal smooth factor can't be smaller than the threshold + temporalSmoothFactor = std::max(temporalSmoothFactor, tf->threshold); + } - // Convert to BGR - cv::Mat imageBGR = convertFrameToBGR(frame, tf); + cv::addWeighted(backgroundMask, temporalSmoothFactor, tf->lastBackgroundMask, + 1.0 - temporalSmoothFactor, 0.0, backgroundMask); + } - try { + tf->lastBackgroundMask = backgroundMask.clone(); + + // Contour processing + // Only applicable if we are thresholding (and get a binary image) + if (tf->enableThreshold) { + if (tf->contourFilter > 0.0 && tf->contourFilter < 1.0) { + std::vector> contours; + findContours(backgroundMask, contours, cv::RETR_EXTERNAL, + cv::CHAIN_APPROX_SIMPLE); + std::vector> filteredContours; + const double contourSizeThreshold = + (double)(backgroundMask.total()) * tf->contourFilter; + for (auto &contour : contours) { + if (cv::contourArea(contour) > (double)contourSizeThreshold) { + filteredContours.push_back(contour); + } + } + backgroundMask.setTo(0); + drawContours(backgroundMask, filteredContours, -1, cv::Scalar(255), -1); + } - // To RGB - cv::Mat imageRGB; - cv::cvtColor(imageBGR, imageRGB, cv::COLOR_BGR2RGB); + if (tf->smoothContour > 0.0) { + int k_size = (int)(3 + 11 * tf->smoothContour); + k_size += k_size % 2 == 0 ? 1 : 0; + cv::stackBlur(backgroundMask, backgroundMask, cv::Size(k_size, k_size)); + } - // Resize to network input size - uint32_t inputWidth, inputHeight; - if (tf->modelSelection == MODEL_SINET || tf->modelSelection == MODEL_MODNET) { - // BCHW - inputWidth = (int)tf->inputDims[3]; - inputHeight = (int)tf->inputDims[2]; - } else { - // BHWC - inputWidth = (int)tf->inputDims[2]; - inputHeight = (int)tf->inputDims[1]; - } + // Resize the size of the mask back to the size of the original input. + cv::resize(backgroundMask, backgroundMask, imageBGRA.size()); + + // Additional contour processing at full resolution + if (tf->smoothContour > 0.0) { + // If the mask was smoothed, apply a threshold to get a binary mask + backgroundMask = backgroundMask > 128; + } - cv::Mat resizedImageRGB; - cv::resize(imageRGB, resizedImageRGB, cv::Size(inputWidth, inputHeight)); + // Expand or shrink the mask + if (tf->maskExpansion > 0.0) { + cv::erode(backgroundMask, backgroundMask, cv::Mat(), cv::Point(-1, -1), + tf->maskExpansion); + } else if (tf->maskExpansion < 0.0) { + cv::dilate(backgroundMask, backgroundMask, cv::Mat(), cv::Point(-1, -1), + -tf->maskExpansion); + } - // Prepare input to nework - cv::Mat resizedImage, preprocessedImage; - resizedImageRGB.convertTo(resizedImage, CV_32F); + if (tf->feather > 0.0) { + // Feather (blur) the mask + int k_size = (int)(40 * tf->feather); + k_size += k_size % 2 == 0 ? 1 : 0; + cv::dilate(backgroundMask, backgroundMask, cv::Mat(), cv::Point(-1, -1), + k_size / 3); + cv::boxFilter(backgroundMask, backgroundMask, tf->backgroundMask.depth(), + cv::Size(k_size, k_size)); + } + } - if (tf->modelSelection == MODEL_SINET) { - cv::subtract(resizedImage, cv::Scalar(102.890434, 111.25247, 126.91212), resizedImage); - cv::multiply(resizedImage, cv::Scalar(1.0 / 62.93292, 1.0 / 62.82138, 1.0 / 66.355705) / 255.0, resizedImage); - } else if (tf->modelSelection == MODEL_MODNET) { - cv::subtract(resizedImage, cv::Scalar::all(127.5), resizedImage); - resizedImage = resizedImage / 127.5; - } else { - preprocessedImage = resizedImage / 255.0; + // Save the mask for the next frame + { + std::lock_guard lock(tf->outputLock); + backgroundMask.copyTo(tf->backgroundMask); + } } + } catch (const Ort::Exception &e) { + obs_log(LOG_ERROR, "ONNXRuntime Exception: %s", e.what()); + // TODO: Fall back to CPU if it makes sense + } catch (const std::exception &e) { + obs_log(LOG_ERROR, "%s", e.what()); + } +} - if (tf->modelSelection == MODEL_SINET || tf->modelSelection == MODEL_MODNET) { - hwc_to_chw(resizedImage, preprocessedImage); - tf->inputTensorValues.assign( - preprocessedImage.begin(), - preprocessedImage.end() - ); - } else { - preprocessedImage.copyTo(cv::Mat(inputHeight, inputWidth, CV_32FC3, &(tf->inputTensorValues[0]))); +static gs_texture_t *blur_background(std::shared_ptr tf, uint32_t width, uint32_t height, + gs_texture_t *alphaTexture) +{ + if (tf->blurBackground == 0 || !tf->kawaseBlurEffect) { + return nullptr; + } + gs_texture_t *blurredTexture = gs_texture_create(width, height, GS_BGRA, 1, nullptr, 0); + gs_copy_texture(blurredTexture, gs_texrender_get_texture(tf->texrender)); + gs_eparam_t *image = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "image"); + gs_eparam_t *focalmask = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "focalmask"); + gs_eparam_t *xOffset = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "xOffset"); + gs_eparam_t *yOffset = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "yOffset"); + gs_eparam_t *blurIter = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "blurIter"); + gs_eparam_t *blurTotal = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "blurTotal"); + gs_eparam_t *blurFocusPointParam = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "blurFocusPoint"); + gs_eparam_t *blurFocusDepthParam = gs_effect_get_param_by_name(tf->kawaseBlurEffect, "blurFocusDepth"); + + for (int i = 0; i < (int)tf->blurBackground; i++) { + gs_texrender_reset(tf->texrender); + if (!gs_texrender_begin(tf->texrender, width, height)) { + obs_log(LOG_INFO, "Could not open background blur texrender!"); + return blurredTexture; } - // Run network inference - tf->session->Run( - Ort::RunOptions{nullptr}, - tf->inputNames.data(), &(tf->inputTensor), 1, - tf->outputNames.data(), &(tf->outputTensor), 1); - - uint32_t outputWidth, outputHeight; - int64_t outputChannels; - if (tf->modelSelection == MODEL_SINET || tf->modelSelection == MODEL_MODNET) { - // BCHW - outputWidth = (int)tf->outputDims.at(3); - outputHeight = (int)tf->outputDims.at(2); - outputChannels = CV_32FC1; - } else { - // BHWC - outputWidth = (int)tf->outputDims.at(2); - outputHeight = (int)tf->outputDims.at(1); - outputChannels = (tf->modelSelection == MODEL_MEDIAPIPE) ? CV_32FC2 : CV_32FC1; + gs_effect_set_texture(image, blurredTexture); + gs_effect_set_texture(focalmask, alphaTexture); + gs_effect_set_float(xOffset, ((float)i + 0.5f) / (float)width); + gs_effect_set_float(yOffset, ((float)i + 0.5f) / (float)height); + gs_effect_set_int(blurIter, i); + gs_effect_set_int(blurTotal, (int)tf->blurBackground); + gs_effect_set_float(blurFocusPointParam, tf->blurFocusPoint); + gs_effect_set_float(blurFocusDepthParam, tf->blurFocusDepth); + + struct vec4 background; + vec4_zero(&background); + gs_clear(GS_CLEAR_COLOR, &background, 0.0f, 0); + gs_ortho(0.0f, static_cast(width), 0.0f, static_cast(height), -100.0f, 100.0f); + gs_blend_state_push(); + gs_blend_function(GS_BLEND_ONE, GS_BLEND_ZERO); + + const char *blur_type = (tf->enableFocalBlur) ? "DrawFocalBlur" : "Draw"; + + while (gs_effect_loop(tf->kawaseBlurEffect, blur_type)) { + gs_draw_sprite(blurredTexture, 0, width, height); } + gs_blend_state_pop(); + gs_texrender_end(tf->texrender); + gs_copy_texture(blurredTexture, gs_texrender_get_texture(tf->texrender)); + } + return blurredTexture; +} - // Map network output mask to cv::Mat - cv::Mat outputImage(outputHeight, outputWidth, outputChannels, &(tf->outputTensorValues[0])); +void background_filter_video_render(void *data, gs_effect_t *_effect) +{ + UNUSED_PARAMETER(_effect); - if (tf->modelSelection == MODEL_MEDIAPIPE) { - // take 1st channel - std::vector outputImageSplit; - cv::split(outputImage, outputImageSplit); + // Cast to shared_ptr pointer and create a local shared_ptr + auto *ptr = static_cast *>(data); + if (!ptr) { + return; + } - // "Softmax" - cv::Mat outputA, outputB; - cv::exp(outputImageSplit[0], outputA); - cv::exp(outputImageSplit[1], outputB); - outputImage = outputA / (outputA + outputB); + // Create a local shared_ptr + std::shared_ptr tf = *ptr; - cv::normalize(outputImage, outputImage, 1.0, 0.0, cv::NORM_MINMAX); + if (!tf || tf->isDisabled) { + if (tf && tf->source) { + obs_source_skip_video_filter(tf->source); } + return; + } - if (tf->modelSelection == MODEL_SELFIE) { - cv::normalize(outputImage, outputImage, 1.0, 0.0, cv::NORM_MINMAX); + uint32_t width, height; + if (!getRGBAFromStageSurface(tf.get(), width, height)) { + if (tf->source) { + obs_source_skip_video_filter(tf->source); } + return; + } - cv::Mat backgroundMask; - if (tf->modelSelection == MODEL_SINET || tf->modelSelection == MODEL_MEDIAPIPE) { - backgroundMask = outputImage > tf->threshold; - } else { - backgroundMask = outputImage < tf->threshold; + if (!tf->effect) { + // Effect failed to load, skip rendering + if (tf->source) { + obs_source_skip_video_filter(tf->source); } + return; + } - // Contour processing - if (tf->contourFilter > 0.0 && tf->contourFilter < 1.0) { - std::vector > contours; - findContours(backgroundMask, contours, cv::RETR_EXTERNAL, cv::CHAIN_APPROX_SIMPLE); - std::vector > filteredContours; - const int64_t contourSizeThreshold = (int64_t)(backgroundMask.total() * tf->contourFilter); - for (auto& contour : contours) { - if (cv::contourArea(contour) > contourSizeThreshold) { - filteredContours.push_back(contour); - } + gs_texture_t *alphaTexture = nullptr; + { + std::lock_guard lock(tf->outputLock); + + if (tf->backgroundMask.empty()) { + obs_log(LOG_WARNING, "Background mask is empty during render, skipping frame."); + if (tf->source) { + obs_source_skip_video_filter(tf->source); } - backgroundMask.setTo(0); - drawContours(backgroundMask, filteredContours, -1, cv::Scalar(255), -1); + return; } - // Mask the input - cv::resize(backgroundMask, backgroundMask, imageBGR.size()); + alphaTexture = gs_texture_create(tf->backgroundMask.cols, tf->backgroundMask.rows, GS_R8, 1, + (const uint8_t **)&tf->backgroundMask.data, 0); - // Smooth mask with a fast filter (box) - if (tf->smoothContour > 0.0) { - int k_size = (int)(100 * tf->smoothContour); - cv::boxFilter(backgroundMask, backgroundMask, backgroundMask.depth(), cv::Size(k_size, k_size)); - backgroundMask = backgroundMask > 128; + if (!alphaTexture) { + obs_log(LOG_ERROR, "Failed to create alpha texture"); + if (tf->source) { + obs_source_skip_video_filter(tf->source); + } + return; } + } - if (tf->feather > 0.0) { - // Feather mask - int k_size = (int)(40 * tf->feather); - cv::Mat maskFloat; - backgroundMask.convertTo(maskFloat, CV_32FC1, 1.0 / 255.0); - cv::boxFilter(maskFloat, maskFloat, maskFloat.depth(), cv::Size(k_size, k_size)); - - // Alpha blend - cv::Mat maskFloat3c; - cv::cvtColor(maskFloat, maskFloat3c, cv::COLOR_GRAY2BGR); - cv::Mat tmpImage, tmpBackground; - cv::multiply(imageBGR, cv::Scalar(1, 1, 1) - maskFloat3c, tmpImage, 1.0, CV_32FC3); - cv::multiply(cv::Mat(imageBGR.size(), CV_32FC3, tf->backgroundColor), maskFloat3c, tmpBackground); - cv::Mat(tmpImage + tmpBackground).convertTo(imageBGR, CV_8UC3); - } else { - imageBGR.setTo(tf->backgroundColor, backgroundMask); + // Output the masked image + gs_texture_t *blurredTexture = blur_background(tf, width, height, alphaTexture); + + if (!obs_source_process_filter_begin(tf->source, GS_RGBA, OBS_ALLOW_DIRECT_RENDERING)) { + if (tf->source) { + obs_source_skip_video_filter(tf->source); } + gs_texture_destroy(alphaTexture); + gs_texture_destroy(blurredTexture); + return; } - catch(const std::exception& e) { - blog(LOG_ERROR, "%s", e.what()); - } - // Put masked image back on frame - convertBGRToFrame(imageBGR, frame, tf); - return frame; -} + gs_eparam_t *alphamask = gs_effect_get_param_by_name(tf->effect, "alphamask"); + gs_eparam_t *blurredBackground = gs_effect_get_param_by_name(tf->effect, "blurredBackground"); -static void filter_destroy(void *data) -{ - struct background_removal_filter *tf = reinterpret_cast(data); + gs_effect_set_texture(alphamask, alphaTexture); - if (tf) { - destroyScalers(tf); - bfree(tf); + if (tf->blurBackground > 0) { + gs_effect_set_texture(blurredBackground, blurredTexture); + } + + gs_blend_state_push(); + gs_reset_blend_state(); + + const char *techName; + if (tf->blurBackground > 0) { + if (tf->enableFocalBlur) + techName = "DrawWithFocalBlur"; + else + techName = "DrawWithBlur"; + } else { + techName = "DrawWithoutBlur"; } -} + obs_source_process_filter_tech_end(tf->source, tf->effect, 0, 0, techName); + gs_blend_state_pop(); -struct obs_source_info background_removal_filter_info = { - .id = "background_removal", - .type = OBS_SOURCE_TYPE_FILTER, - .output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_ASYNC, - .get_name = filter_getname, - .create = filter_create, - .destroy = filter_destroy, - .get_defaults = filter_defaults, - .get_properties = filter_properties, - .update = filter_update, - .filter_video = filter_render, -}; + gs_texture_destroy(alphaTexture); + gs_texture_destroy(blurredTexture); +} diff --git a/src/background-filter.h b/src/background-filter.h new file mode 100644 index 00000000..12acd776 --- /dev/null +++ b/src/background-filter.h @@ -0,0 +1,27 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +const char *background_filter_getname(void *unused); +void *background_filter_create(obs_data_t *settings, obs_source_t *source); +void background_filter_destroy(void *data); +void background_filter_defaults(obs_data_t *settings); +obs_properties_t *background_filter_properties(void *data); +void background_filter_update(void *data, obs_data_t *settings); +void background_filter_activate(void *data); +void background_filter_deactivate(void *data); +void background_filter_video_tick(void *data, float seconds); +void background_filter_video_render(void *data, gs_effect_t *_effect); + +#ifdef __cplusplus +} +#endif diff --git a/src/consts.h b/src/consts.h new file mode 100644 index 00000000..412f0827 --- /dev/null +++ b/src/consts.h @@ -0,0 +1,40 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#ifndef CONSTS_H +#define CONSTS_H + +const char *const MODEL_SINET = "models/SINet_Softmax_simple.with_runtime_opt.ort"; +const char *const MODEL_MEDIAPIPE = "models/mediapipe.with_runtime_opt.ort"; +const char *const MODEL_SELFIE = "models/selfie_segmentation.with_runtime_opt.ort"; +const char *const MODEL_SELFIE_MULTICLASS = "models/selfie_multiclass_256x256.with_runtime_opt.ort"; +const char *const MODEL_RVM = "models/rvm_mobilenetv3_fp32.with_runtime_opt.ort"; +const char *const MODEL_PPHUMANSEG = "models/pphumanseg_fp32.with_runtime_opt.ort"; +const char *const MODEL_ENHANCE_TBEFN = "models/tbefn_fp32.with_runtime_opt.ort"; +const char *const MODEL_ENHANCE_URETINEX = "models/uretinex_net_180x320.with_runtime_opt.ort"; +const char *const MODEL_ENHANCE_SGLLIE = "models/semantic_guided_llie_180x324.with_runtime_opt.ort"; +const char *const MODEL_DEPTH_TCMONODEPTH = "models/tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort"; + +const char *const USEGPU_CPU = "cpu"; +const char *const USEGPU_CUDA = "cuda"; +const char *const USEGPU_ROCM = "rocm"; +const char *const USEGPU_MIGRAPHX = "migraphx"; +const char *const USEGPU_TENSORRT = "tensorrt"; +const char *const USEGPU_COREML = "coreml"; + +const char *const EFFECT_PATH = "effects/mask_alpha_filter.effect"; +const char *const KAWASE_BLUR_EFFECT_PATH = "effects/kawase_blur.effect"; +const char *const BLEND_EFFECT_PATH = "effects/blend_images.effect"; + +const char *const PLUGIN_INFO_TEMPLATE = + "Background Removal (%1) by " + "Roy Shilkrot ❤️ " + "Support & Follow"; +const char *const PLUGIN_INFO_TEMPLATE_UPDATE_AVAILABLE = + "
🚀 Update available! (%1)
"; + +#endif /* CONSTS_H */ diff --git a/src/enhance-filter-info.c b/src/enhance-filter-info.c new file mode 100644 index 00000000..ad2fac67 --- /dev/null +++ b/src/enhance-filter-info.c @@ -0,0 +1,24 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include "enhance-filter.h" + +struct obs_source_info enhance_filter_info = { + .id = "enhanceportrait", + .type = OBS_SOURCE_TYPE_FILTER, + .output_flags = OBS_SOURCE_VIDEO, + .get_name = enhance_filter_getname, + .create = enhance_filter_create, + .destroy = enhance_filter_destroy, + .get_defaults = enhance_filter_defaults, + .get_properties = enhance_filter_properties, + .update = enhance_filter_update, + .activate = enhance_filter_activate, + .deactivate = enhance_filter_deactivate, + .video_tick = enhance_filter_video_tick, + .video_render = enhance_filter_video_render, +}; diff --git a/src/enhance-filter.cpp b/src/enhance-filter.cpp new file mode 100644 index 00000000..85dd34ba --- /dev/null +++ b/src/enhance-filter.cpp @@ -0,0 +1,350 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "enhance-filter.h" + +#include + +#ifdef _WIN32 +#include +#endif // _WIN32 + +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "plugin-support.h" +#include "consts.h" +#include "obs-utils/obs-utils.hpp" +#include "ort-utils/ort-session-utils.hpp" +#include "models/ModelTBEFN.hpp" +#include "models/ModelURetinex.hpp" +#include "update-checker/update-checker.h" + +struct enhance_filter : public filter_data, public std::enable_shared_from_this { + cv::Mat outputBGRA; + gs_effect_t *blendEffect; + float blendFactor; + + std::mutex modelMutex; + + ~enhance_filter() { obs_log(LOG_INFO, "Enhance filter destructor called"); } +}; + +const char *enhance_filter_getname(void *unused) +{ + UNUSED_PARAMETER(unused); + return obs_module_text("EnhancePortrait"); +} + +obs_properties_t *enhance_filter_properties(void *data) +{ + UNUSED_PARAMETER(data); + obs_properties_t *props = obs_properties_create(); + obs_properties_add_float_slider(props, "blend", obs_module_text("EffectStrengh"), 0.0, 1.0, 0.05); + obs_properties_add_int_slider(props, "numThreads", obs_module_text("NumThreads"), 0, 8, 1); + obs_property_t *p_model_select = obs_properties_add_list(props, "model_select", + obs_module_text("EnhancementModel"), + OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_STRING); + obs_property_list_add_string(p_model_select, obs_module_text("TBEFN"), MODEL_ENHANCE_TBEFN); + obs_property_list_add_string(p_model_select, obs_module_text("URETINEX"), MODEL_ENHANCE_URETINEX); + obs_property_list_add_string(p_model_select, obs_module_text("SGLLIE"), MODEL_ENHANCE_SGLLIE); + obs_property_t *p_use_gpu = obs_properties_add_list(props, "useGPU", obs_module_text("InferenceDevice"), + OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_STRING); + obs_property_list_add_string(p_use_gpu, obs_module_text("CPU"), USEGPU_CPU); +#ifdef HAVE_ONNXRUNTIME_CUDA_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("GPUCUDA"), USEGPU_CUDA); +#endif +#ifdef HAVE_ONNXRUNTIME_ROCM_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("GPUROCM"), USEGPU_ROCM); +#endif +#ifdef HAVE_ONNXRUNTIME_MIGRAPHX_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("GPUMIGRAPHX"), USEGPU_MIGRAPHX); +#endif +#ifdef HAVE_ONNXRUNTIME_TENSORRT_EP + obs_property_list_add_string(p_use_gpu, obs_module_text("TENSORRT"), USEGPU_TENSORRT); +#endif +#if defined(__APPLE__) + obs_property_list_add_string(p_use_gpu, obs_module_text("CoreML"), USEGPU_COREML); +#endif + + // Add a informative text about the plugin + // replace the placeholder with the current version using std::regex_replace + std::string basic_info = std::regex_replace(PLUGIN_INFO_TEMPLATE, std::regex("%1"), PLUGIN_VERSION); + // Check for update + if (get_latest_version() != nullptr) { + basic_info += std::regex_replace(PLUGIN_INFO_TEMPLATE_UPDATE_AVAILABLE, std::regex("%1"), + get_latest_version()); + } + obs_properties_add_text(props, "info", basic_info.c_str(), OBS_TEXT_INFO); + + return props; +} + +void enhance_filter_defaults(obs_data_t *settings) +{ + obs_data_set_default_double(settings, "blend", 1.0); + obs_data_set_default_int(settings, "numThreads", 1); + obs_data_set_default_string(settings, "model_select", MODEL_ENHANCE_TBEFN); +#if defined(__APPLE__) + obs_data_set_default_string(settings, "useGPU", USEGPU_CPU); +#else + // Linux + obs_data_set_default_string(settings, "useGPU", USEGPU_CPU); +#endif +} + +void enhance_filter_activate(void *data) +{ + auto *ptr = static_cast *>(data); + if (!ptr) { + return; + } + + std::shared_ptr tf = *ptr; + if (tf) { + tf->isDisabled = false; + } +} + +void enhance_filter_deactivate(void *data) +{ + auto *ptr = static_cast *>(data); + if (!ptr) { + return; + } + + std::shared_ptr tf = *ptr; + if (tf) { + tf->isDisabled = true; + } +} + +void enhance_filter_update(void *data, obs_data_t *settings) +{ + UNUSED_PARAMETER(settings); + + auto *ptr = static_cast *>(data); + if (!ptr) { + return; + } + + std::shared_ptr tf = *ptr; + if (!tf) { + return; + } + + tf->blendFactor = (float)obs_data_get_double(settings, "blend"); + const uint32_t newNumThreads = (uint32_t)obs_data_get_int(settings, "numThreads"); + const std::string newModel = obs_data_get_string(settings, "model_select"); + const std::string newUseGpu = obs_data_get_string(settings, "useGPU"); + + if (tf->modelSelection.empty() || tf->modelSelection != newModel || tf->useGPU != newUseGpu || + tf->numThreads != newNumThreads) { + // Lock modelMutex to prevent race condition with video_tick + std::unique_lock lock(tf->modelMutex); + + tf->numThreads = newNumThreads; + tf->modelSelection = newModel; + if (tf->modelSelection == MODEL_ENHANCE_TBEFN) { + tf->model.reset(new ModelTBEFN); + } else if (tf->modelSelection == MODEL_ENHANCE_URETINEX) { + tf->model.reset(new ModelURetinex); + } else { + tf->model.reset(new ModelBCHW); + } + tf->useGPU = newUseGpu; + createOrtSession(tf.get()); + } + + if (tf->blendEffect == nullptr) { + obs_enter_graphics(); + + char *effect_path = obs_module_file(BLEND_EFFECT_PATH); + tf->blendEffect = gs_effect_create_from_file(effect_path, NULL); + bfree(effect_path); + + obs_leave_graphics(); + } +} + +void *enhance_filter_create(obs_data_t *settings, obs_source_t *source) +{ + try { + // Create the instance as a shared_ptr + auto instance = std::make_shared(); + + instance->source = source; + instance->texrender = gs_texrender_create(GS_BGRA, GS_ZS_NONE); + + std::string instanceName{"enhance-portrait-inference"}; + instance->env.reset(new Ort::Env(OrtLoggingLevel::ORT_LOGGING_LEVEL_ERROR, instanceName.c_str())); + + // Create pointer to shared_ptr for the update call + auto ptr = new std::shared_ptr(instance); + enhance_filter_update(ptr, settings); + + // Return the pointer to the shared_ptr + // This keeps the reference count at least 1 until destroy is called + return ptr; + } catch (const std::exception &e) { + obs_log(LOG_ERROR, "Failed to create enhance filter: %s", e.what()); + return nullptr; + } +} + +void enhance_filter_destroy(void *data) +{ + // Cast back to shared_ptr pointer + auto *ptr = static_cast *>(data); + if (ptr) { + if (*ptr) { + // Mark as disabled to prevent further processing + (*ptr)->isDisabled = true; + + // Perform cleanup + obs_enter_graphics(); + gs_texrender_destroy((*ptr)->texrender); + if ((*ptr)->stagesurface) { + gs_stagesurface_destroy((*ptr)->stagesurface); + } + gs_effect_destroy((*ptr)->blendEffect); + obs_leave_graphics(); + } + // Delete the pointer to shared_ptr + // This decrements the ref count. If no other threads hold a shared_ptr, the instance is deleted + delete ptr; + } +} + +void enhance_filter_video_tick(void *data, float seconds) +{ + UNUSED_PARAMETER(seconds); + + auto *ptr = static_cast *>(data); + if (!ptr) { + return; + } + + // Create a local shared_ptr + // This guarantees the object stays alive for the duration of this function scope + // even if filter_destroy is called on the main thread + std::shared_ptr tf = *ptr; + + if (!tf || tf->isDisabled) { + return; + } + + if (!obs_source_enabled(tf->source)) { + return; + } + + if (tf->inputBGRA.empty()) { + return; + } + + // Get input image from source rendering pipeline + cv::Mat imageBGRA; + { + std::unique_lock lock(tf->inputBGRALock, std::try_to_lock); + if (!lock.owns_lock()) { + return; + } + imageBGRA = tf->inputBGRA.clone(); + } + + cv::Mat outputImage; + { + std::unique_lock lock(tf->modelMutex); + try { + if (!runFilterModelInference(tf.get(), imageBGRA, outputImage)) { + return; + } + } catch (const std::exception &e) { + obs_log(LOG_ERROR, "Exception caught: %s", e.what()); + return; + } + } + + // Put output image back to source rendering pipeline + { + std::unique_lock lock(tf->outputLock, std::try_to_lock); + if (!lock.owns_lock()) { + return; + } + + // convert to RGBA + cv::cvtColor(outputImage, tf->outputBGRA, cv::COLOR_BGR2RGBA); + } +} + +void enhance_filter_video_render(void *data, gs_effect_t *_effect) +{ + UNUSED_PARAMETER(_effect); + + auto *ptr = static_cast *>(data); + if (!ptr) { + return; + } + + // Create a local shared_ptr + std::shared_ptr tf = *ptr; + + if (!tf) { + return; + } + + // Get input from source + uint32_t width, height; + if (!getRGBAFromStageSurface(tf.get(), width, height)) { + obs_source_skip_video_filter(tf->source); + return; + } + + // Engage filter + if (!obs_source_process_filter_begin(tf->source, GS_RGBA, OBS_ALLOW_DIRECT_RENDERING)) { + obs_source_skip_video_filter(tf->source); + return; + } + + // Get output from neural network into texture + gs_texture_t *outputTexture = nullptr; + { + std::lock_guard lock(tf->outputLock); + outputTexture = gs_texture_create(tf->outputBGRA.cols, tf->outputBGRA.rows, GS_BGRA, 1, + (const uint8_t **)&tf->outputBGRA.data, 0); + if (!outputTexture) { + obs_log(LOG_ERROR, "Failed to create output texture"); + obs_source_skip_video_filter(tf->source); + return; + } + } + + gs_eparam_t *blendimage = gs_effect_get_param_by_name(tf->blendEffect, "blendimage"); + gs_eparam_t *blendFactor = gs_effect_get_param_by_name(tf->blendEffect, "blendFactor"); + gs_eparam_t *xOffset = gs_effect_get_param_by_name(tf->blendEffect, "xOffset"); + gs_eparam_t *yOffset = gs_effect_get_param_by_name(tf->blendEffect, "yOffset"); + + gs_effect_set_texture(blendimage, outputTexture); + gs_effect_set_float(blendFactor, tf->blendFactor); + gs_effect_set_float(xOffset, 1.0f / float(width)); + gs_effect_set_float(yOffset, 1.0f / float(height)); + + // Render texture + gs_blend_state_push(); + gs_reset_blend_state(); + + obs_source_process_filter_tech_end(tf->source, tf->blendEffect, 0, 0, "Draw"); + + gs_blend_state_pop(); + + gs_texture_destroy(outputTexture); +} diff --git a/src/enhance-filter.h b/src/enhance-filter.h new file mode 100644 index 00000000..09435a47 --- /dev/null +++ b/src/enhance-filter.h @@ -0,0 +1,27 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +const char *enhance_filter_getname(void *unused); +void *enhance_filter_create(obs_data_t *settings, obs_source_t *source); +void enhance_filter_destroy(void *data); +void enhance_filter_defaults(obs_data_t *settings); +obs_properties_t *enhance_filter_properties(void *data); +void enhance_filter_update(void *data, obs_data_t *settings); +void enhance_filter_activate(void *data); +void enhance_filter_deactivate(void *data); +void enhance_filter_video_tick(void *data, float seconds); +void enhance_filter_video_render(void *data, gs_effect_t *_effect); + +#ifdef __cplusplus +} +#endif diff --git a/src/exported_symbols_linux.map b/src/exported_symbols_linux.map new file mode 100644 index 00000000..3e4e5e9b --- /dev/null +++ b/src/exported_symbols_linux.map @@ -0,0 +1,12 @@ +{ + global: + obs_module_free_locale; + obs_module_get_string; + obs_module_load; + obs_module_set_locale; + obs_module_set_pointer; + obs_module_unload; + obs_module_ver; + local: + *; +}; diff --git a/src/exported_symbols_macos.txt b/src/exported_symbols_macos.txt new file mode 100644 index 00000000..805eb7e8 --- /dev/null +++ b/src/exported_symbols_macos.txt @@ -0,0 +1,7 @@ +_obs_module_free_locale +_obs_module_get_string +_obs_module_load +_obs_module_set_locale +_obs_module_set_pointer +_obs_module_unload +_obs_module_ver diff --git a/src/exported_symbols_windows.def b/src/exported_symbols_windows.def new file mode 100644 index 00000000..954d6f45 --- /dev/null +++ b/src/exported_symbols_windows.def @@ -0,0 +1,9 @@ +LIBRARY +EXPORTS + obs_module_free_locale + obs_module_get_string + obs_module_load + obs_module_set_locale + obs_module_set_pointer + obs_module_unload + obs_module_ver diff --git a/src/models/Model.hpp b/src/models/Model.hpp new file mode 100644 index 00000000..03e03cc2 --- /dev/null +++ b/src/models/Model.hpp @@ -0,0 +1,334 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODEL_H +#define MODEL_H + +#include +#include "../plugin-support.h" + +#ifdef _WIN32 +#include +#endif + +#include +#include + +template T vectorProduct(const std::vector &v) +{ + T product = 1; + for (auto &i : v) { + // turn 0 or -1, which are usually used as "None" (meaning any size), to 1s + if (i > 0) { + product *= i; + } + } + return product; +} + +static void hwc_to_chw(cv::InputArray src, cv::OutputArray dst) +{ + std::vector channels; + cv::split(src, channels); + + // Stretch one-channel images to vector + for (auto &img : channels) { + img = img.reshape(1, 1); + } + + // Concatenate three vectors to one + cv::hconcat(channels, dst); +} + +/** +* Convert a CHW Mat to HWC +* Assume the input Mat is a 3D tensor of shape (C, H, W), but the Mat header has +* the correct shape (H, W, C). This function will swap the channels to make it +* (H, W, C) on the data level. +* @param src Input Mat, assume data is in CHW format, type is float32 +* @param dst Output Mat, data is in HWC format, type is float32 +*/ +static void chw_to_hwc_32f(cv::InputArray src, cv::OutputArray dst) +{ + const cv::Mat srcMat = src.getMat(); + const int channels = srcMat.channels(); + const int height = srcMat.rows; + const int width = srcMat.cols; + const int dtype = srcMat.type(); + assert(dtype == CV_32F); + const int channelStride = height * width; + + // Flatten to a vector of channels + cv::Mat flatMat = srcMat.reshape(1, 1); + + std::vector channelsVec(channels); + // Split the vector into channels + for (int i = 0; i < channels; i++) { + channelsVec[i] = + cv::Mat(height, width, CV_MAKE_TYPE(dtype, 1), flatMat.ptr(0) + i * channelStride); + } + + cv::merge(channelsVec, dst); +} + +/** + * @brief Base class for all models + * + * Assume that all models have one input and one output. + * The input is a 4D tensor of shape (1, H, W, C) where H and W are the height and width of + * the input image. + * The range of the input is [0, 255]. The input is in BGR format. + * The input is a 32-bit floating point tensor. + * This base model will convert the input to [0,1] and then the output to [0,255]. + * + * Inheriting classes may override the methods for loading the model and running inference + * with different pre-post processing behavior (like BCHW instead of BHWC or different ranges). +*/ +class Model { +private: + /* data */ +public: + Model(/* args */) {}; + virtual ~Model() {}; + + const char *name; + +#if _WIN32 + const std::wstring +#else + const std::string +#endif + getModelFilepath(const std::string &modelSelection) + { + char *modelFilepath_rawPtr = obs_module_file(modelSelection.c_str()); + + if (modelFilepath_rawPtr == nullptr) { + obs_log(LOG_ERROR, "Unable to get model filename %s from plugin.", modelSelection.c_str()); +#if _WIN32 + return std::wstring(); +#else + return std::string(); +#endif + } + + std::string modelFilepath_s(modelFilepath_rawPtr); + bfree(modelFilepath_rawPtr); + +#if _WIN32 + std::wstring modelFilepath_ws(modelFilepath_s.size(), L' '); + std::copy(modelFilepath_s.begin(), modelFilepath_s.end(), modelFilepath_ws.begin()); + return modelFilepath_ws; +#else + return modelFilepath_s; +#endif + } + + virtual void populateInputOutputNames(const std::unique_ptr &session, + std::vector &inputNames, + std::vector &outputNames) + { + Ort::AllocatorWithDefaultOptions allocator; + + inputNames.clear(); + outputNames.clear(); + inputNames.push_back(session->GetInputNameAllocated(0, allocator)); + outputNames.push_back(session->GetOutputNameAllocated(0, allocator)); + } + + virtual bool populateInputOutputShapes(const std::unique_ptr &session, + std::vector> &inputDims, + std::vector> &outputDims) + { + // Assuming model only has one input and one output image + + inputDims.clear(); + outputDims.clear(); + + inputDims.push_back(std::vector()); + outputDims.push_back(std::vector()); + + // Get output shape + const Ort::TypeInfo outputTypeInfo = session->GetOutputTypeInfo(0); + const auto outputTensorInfo = outputTypeInfo.GetTensorTypeAndShapeInfo(); + outputDims[0] = outputTensorInfo.GetShape(); + + // fix any -1 values in outputDims to 1 + for (auto &i : outputDims[0]) { + if (i == -1) { + i = 1; + } + } + + // Get input shape + const Ort::TypeInfo inputTypeInfo = session->GetInputTypeInfo(0); + const auto inputTensorInfo = inputTypeInfo.GetTensorTypeAndShapeInfo(); + inputDims[0] = inputTensorInfo.GetShape(); + + // fix any -1 values in inputDims to 1 + for (auto &i : inputDims[0]) { + if (i == -1) { + i = 1; + } + } + + if (inputDims[0].size() < 3 || outputDims[0].size() < 3) { + obs_log(LOG_ERROR, "Input or output tensor dims are < 3. input = %d, output = %d", + (int)inputDims.size(), (int)outputDims.size()); + return false; + } + + return true; + } + + virtual void allocateTensorBuffers(const std::vector> &inputDims, + const std::vector> &outputDims, + std::vector> &outputTensorValues, + std::vector> &inputTensorValues, + std::vector &inputTensor, std::vector &outputTensor) + { + // Assuming model only has one input and one output images + + outputTensorValues.clear(); + outputTensor.clear(); + + inputTensorValues.clear(); + inputTensor.clear(); + + Ort::MemoryInfo memoryInfo = + Ort::MemoryInfo::CreateCpu(OrtAllocatorType::OrtDeviceAllocator, OrtMemType::OrtMemTypeDefault); + + // Allocate buffers and build input and output tensors + + for (size_t i = 0; i < inputDims.size(); i++) { + inputTensorValues.push_back(std::vector(vectorProduct(inputDims[i]), 0.0f)); + obs_log(LOG_INFO, "Allocated %d sized float-array for input %d", + (int)inputTensorValues[i].size(), (int)i); + inputTensor.push_back(Ort::Value::CreateTensor( + memoryInfo, inputTensorValues[i].data(), inputTensorValues[i].size(), + inputDims[i].data(), inputDims[i].size())); + } + + for (size_t i = 0; i < outputDims.size(); i++) { + outputTensorValues.push_back(std::vector(vectorProduct(outputDims[i]), 0.0f)); + obs_log(LOG_INFO, "Allocated %d sized float-array for output %d", + (int)outputTensorValues[i].size(), (int)i); + outputTensor.push_back(Ort::Value::CreateTensor( + memoryInfo, outputTensorValues[i].data(), outputTensorValues[i].size(), + outputDims[i].data(), outputDims[i].size())); + } + } + + virtual void getNetworkInputSize(const std::vector> &inputDims, uint32_t &inputWidth, + uint32_t &inputHeight) + { + // BHWC + inputWidth = (int)inputDims[0][2]; + inputHeight = (int)inputDims[0][1]; + } + + virtual void prepareInputToNetwork(cv::Mat &resizedImage, cv::Mat &preprocessedImage) + { + preprocessedImage = resizedImage / 255.0; + } + + /** + * @brief Postprocess the output of the network + * + * @param output The output of the network. This function should ensure the output is with + * values in the range 0-1 (float 32), and in the BHWC format + */ + virtual void postprocessOutput(cv::Mat &output) { UNUSED_PARAMETER(output); } + + virtual void loadInputToTensor(const cv::Mat &preprocessedImage, uint32_t inputWidth, uint32_t inputHeight, + std::vector> &inputTensorValues) + { + preprocessedImage.copyTo(cv::Mat(inputHeight, inputWidth, CV_32FC3, &(inputTensorValues[0][0]))); + } + + virtual cv::Mat getNetworkOutput(const std::vector> &outputDims, + std::vector> &outputTensorValues) + { + // BHWC + uint32_t outputWidth = (int)outputDims[0].at(2); + uint32_t outputHeight = (int)outputDims[0].at(1); + int32_t outputChannels = CV_MAKE_TYPE(CV_32F, (int)outputDims[0].at(3)); + + return cv::Mat(outputHeight, outputWidth, outputChannels, outputTensorValues[0].data()); + } + + virtual void assignOutputToInput(std::vector> &, std::vector> &) {} + + virtual void runNetworkInference(const std::unique_ptr &session, + const std::vector &inputNames, + const std::vector &outputNames, + const std::vector &inputTensor, + std::vector &outputTensor) + { + if (inputNames.size() == 0 || outputNames.size() == 0 || inputTensor.size() == 0 || + outputTensor.size() == 0) { + obs_log(LOG_INFO, "Skip network inference. Inputs or outputs are null."); + return; + } + + std::vector rawInputNames; + for (auto &inputName : inputNames) { + rawInputNames.push_back(inputName.get()); + } + + std::vector rawOutputNames; + for (auto &outputName : outputNames) { + rawOutputNames.push_back(outputName.get()); + } + + session->Run(Ort::RunOptions{nullptr}, rawInputNames.data(), inputTensor.data(), inputNames.size(), + rawOutputNames.data(), outputTensor.data(), outputNames.size()); + } +}; + +class ModelBCHW : public Model { +public: + ModelBCHW(/* args */) {} + ~ModelBCHW() {} + + virtual void prepareInputToNetwork(cv::Mat &resizedImage, cv::Mat &preprocessedImage) + { + resizedImage = resizedImage / 255.0; + hwc_to_chw(resizedImage, preprocessedImage); + } + + virtual void postprocessOutput(cv::Mat &output) + { + cv::Mat outputTransposed; + chw_to_hwc_32f(output, outputTransposed); + outputTransposed.copyTo(output); + } + + virtual void getNetworkInputSize(const std::vector> &inputDims, uint32_t &inputWidth, + uint32_t &inputHeight) + { + // BCHW + inputWidth = (int)inputDims[0][3]; + inputHeight = (int)inputDims[0][2]; + } + + virtual cv::Mat getNetworkOutput(const std::vector> &outputDims, + std::vector> &outputTensorValues) + { + // BCHW + uint32_t outputWidth = (int)outputDims[0].at(3); + uint32_t outputHeight = (int)outputDims[0].at(2); + int32_t outputChannels = CV_MAKE_TYPE(CV_32F, (int)outputDims[0].at(1)); + + return cv::Mat(outputHeight, outputWidth, outputChannels, outputTensorValues[0].data()); + } + + virtual void loadInputToTensor(const cv::Mat &preprocessedImage, uint32_t, uint32_t, + std::vector> &inputTensorValues) + { + inputTensorValues[0].assign(preprocessedImage.begin(), preprocessedImage.end()); + } +}; + +#endif diff --git a/src/models/ModelMediapipe.hpp b/src/models/ModelMediapipe.hpp new file mode 100644 index 00000000..f165facd --- /dev/null +++ b/src/models/ModelMediapipe.hpp @@ -0,0 +1,38 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELMEDIAPIPE_H +#define MODELMEDIAPIPE_H + +#include "Model.hpp" + +class ModelMediaPipe : public Model { +private: + /* data */ +public: + ModelMediaPipe(/* args */) {} + ~ModelMediaPipe() {} + + virtual cv::Mat getNetworkOutput(const std::vector> &outputDims, + std::vector> &outputTensorValues) + { + uint32_t outputWidth = (int)outputDims[0].at(2); + uint32_t outputHeight = (int)outputDims[0].at(1); + int32_t outputChannels = CV_32FC2; + + return cv::Mat(outputHeight, outputWidth, outputChannels, outputTensorValues[0].data()); + } + + virtual void postprocessOutput(cv::Mat &outputImage) + { + // take 2nd channel + std::vector outputImageSplit; + cv::split(outputImage, outputImageSplit); + + outputImage = outputImageSplit[1]; + } +}; + +#endif // MODELMEDIAPIPE_H diff --git a/src/models/ModelPPHumanSeg.hpp b/src/models/ModelPPHumanSeg.hpp new file mode 100644 index 00000000..11016920 --- /dev/null +++ b/src/models/ModelPPHumanSeg.hpp @@ -0,0 +1,43 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELPPHUMANSEG_H +#define MODELPPHUMANSEG_H + +#include "Model.hpp" + +class ModelPPHumanSeg : public ModelBCHW { +public: + ModelPPHumanSeg(/* args */) {} + ~ModelPPHumanSeg() {} + + virtual void prepareInputToNetwork(cv::Mat &resizedImage, cv::Mat &preprocessedImage) + { + resizedImage = (resizedImage / 256.0 - cv::Scalar(0.5, 0.5, 0.5)) / cv::Scalar(0.5, 0.5, 0.5); + + hwc_to_chw(resizedImage, preprocessedImage); + } + + virtual cv::Mat getNetworkOutput(const std::vector> &outputDims, + std::vector> &outputTensorValues) + { + uint32_t outputWidth = (int)outputDims[0].at(2); + uint32_t outputHeight = (int)outputDims[0].at(1); + int32_t outputChannels = CV_32FC2; + + return cv::Mat(outputHeight, outputWidth, outputChannels, outputTensorValues[0].data()); + } + + virtual void postprocessOutput(cv::Mat &outputImage) + { + // take 1st channel + std::vector outputImageSplit; + cv::split(outputImage, outputImageSplit); + + cv::normalize(outputImageSplit[1], outputImage, 1.0, 0.0, cv::NORM_MINMAX); + } +}; + +#endif // MODELPPHUMANSEG_H diff --git a/src/models/ModelRVM.hpp b/src/models/ModelRVM.hpp new file mode 100644 index 00000000..997d75f0 --- /dev/null +++ b/src/models/ModelRVM.hpp @@ -0,0 +1,98 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELRVM_H +#define MODELRVM_H + +#include "Model.hpp" + +class ModelRVM : public ModelBCHW { +private: + /* data */ +public: + ModelRVM(/* args */) {} + ~ModelRVM() {} + + virtual void populateInputOutputNames(const std::unique_ptr &session, + std::vector &inputNames, + std::vector &outputNames) + { + Ort::AllocatorWithDefaultOptions allocator; + + inputNames.clear(); + outputNames.clear(); + + for (size_t i = 0; i < session->GetInputCount(); i++) { + inputNames.push_back(session->GetInputNameAllocated(i, allocator)); + } + for (size_t i = 1; i < session->GetOutputCount(); i++) { + outputNames.push_back(session->GetOutputNameAllocated(i, allocator)); + } + } + + virtual bool populateInputOutputShapes(const std::unique_ptr &session, + std::vector> &inputDims, + std::vector> &outputDims) + { + // Assuming model only has one input and one output image + + inputDims.clear(); + outputDims.clear(); + + for (size_t i = 0; i < session->GetInputCount(); i++) { + // Get input shape + const Ort::TypeInfo inputTypeInfo = session->GetInputTypeInfo(i); + const auto inputTensorInfo = inputTypeInfo.GetTensorTypeAndShapeInfo(); + inputDims.push_back(inputTensorInfo.GetShape()); + } + + for (size_t i = 1; i < session->GetOutputCount(); i++) { + // Get output shape + const Ort::TypeInfo outputTypeInfo = session->GetOutputTypeInfo(i); + const auto outputTensorInfo = outputTypeInfo.GetTensorTypeAndShapeInfo(); + outputDims.push_back(outputTensorInfo.GetShape()); + } + + const int base_width = 320; + const int base_height = 192; + + inputDims[0][0] = 1; + inputDims[0][2] = base_height; + inputDims[0][3] = base_width; + for (size_t i = 1; i < 5; i++) { + inputDims[i][0] = 1; + inputDims[i][1] = (i == 1) ? 16 : (i == 2) ? 20 : (i == 3) ? 40 : 64; + inputDims[i][2] = base_height / (2 << (i - 1)); + inputDims[i][3] = base_width / (2 << (i - 1)); + } + + outputDims[0][0] = 1; + outputDims[0][2] = base_height; + outputDims[0][3] = base_width; + for (size_t i = 1; i < 5; i++) { + outputDims[i][0] = 1; + outputDims[i][2] = base_height / (2 << (i - 1)); + outputDims[i][3] = base_width / (2 << (i - 1)); + } + return true; + } + + virtual void loadInputToTensor(const cv::Mat &preprocessedImage, uint32_t, uint32_t, + std::vector> &inputTensorValues) + { + inputTensorValues[0].assign(preprocessedImage.begin(), preprocessedImage.end()); + inputTensorValues[5][0] = 1.0f; + } + + virtual void assignOutputToInput(std::vector> &outputTensorValues, + std::vector> &inputTensorValues) + { + for (size_t i = 1; i < 5; i++) { + inputTensorValues[i].assign(outputTensorValues[i].begin(), outputTensorValues[i].end()); + } + } +}; + +#endif /* MODELRVM_H */ diff --git a/src/models/ModelSINET.hpp b/src/models/ModelSINET.hpp new file mode 100644 index 00000000..4a1d94e0 --- /dev/null +++ b/src/models/ModelSINET.hpp @@ -0,0 +1,41 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELSINET_H +#define MODELSINET_H + +#include "Model.hpp" + +class ModelSINET : public ModelBCHW { +public: + ModelSINET(/* args */) {} + ~ModelSINET() {} + + virtual void prepareInputToNetwork(cv::Mat &resizedImage, cv::Mat &preprocessedImage) + { + resizedImage = (resizedImage - cv::Scalar(102.890434, 111.25247, 126.91212)) / + cv::Scalar(62.93292 * 255.0, 62.82138 * 255.0, 66.355705 * 255.0); + hwc_to_chw(resizedImage, preprocessedImage); + } + + virtual cv::Mat getNetworkOutput(const std::vector> &outputDims, + std::vector> &outputTensorValues) + { + UNUSED_PARAMETER(outputDims); + return cv::Mat(320, 320, CV_32FC2, outputTensorValues[0].data()); + } + + virtual void postprocessOutput(cv::Mat &outputImage) + { + cv::Mat outputTransposed; + chw_to_hwc_32f(outputImage, outputTransposed); + // take 2nd channel + std::vector outputImageSplit; + cv::split(outputTransposed, outputImageSplit); + outputImage = outputImageSplit[1]; + } +}; + +#endif // MODELSINET_H diff --git a/src/models/ModelSelfie.hpp b/src/models/ModelSelfie.hpp new file mode 100644 index 00000000..cea3e33d --- /dev/null +++ b/src/models/ModelSelfie.hpp @@ -0,0 +1,24 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELSELFIE_H +#define MODELSELFIE_H + +#include "Model.hpp" + +class ModelSelfie : public Model { +private: + /* data */ +public: + ModelSelfie(/* args */) {} + ~ModelSelfie() {} + + virtual void postprocessOutput(cv::Mat &outputImage) + { + cv::normalize(outputImage, outputImage, 1.0, 0.0, cv::NORM_MINMAX); + } +}; + +#endif // MODELSELFIE_H diff --git a/src/models/ModelSelfieMulticlass.hpp b/src/models/ModelSelfieMulticlass.hpp new file mode 100644 index 00000000..c8e50888 --- /dev/null +++ b/src/models/ModelSelfieMulticlass.hpp @@ -0,0 +1,116 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELSELFIE_MULTICLASS_H +#define MODELSELFIE_MULTICLASS_H + +#include "Model.hpp" + +/** + * @brief MediaPipe Selfie Multiclass Segmentation Model + * + * This model provides improved segmentation quality compared to the standard + * selfie segmentation model, especially for: + * - Multiple people in the frame + * - Full-body segmentation + * - Fine-grained class segmentation (hair, clothes, body, face) + * + * Model Details: + * - Input: [1, 256, 256, 3] - 256x256 RGB image, float32, range [0, 1] + * - Output: [1, 256, 256, 6] - 256x256 with 6 classes per pixel: + * - Class 0: Background + * - Class 1: Hair + * - Class 2: Body-skin + * - Class 3: Face-skin + * - Class 4: Clothes + * - Class 5: Others (accessories) + * + * For background removal, we use argmax across the 6 channels to find the + * dominant class per pixel, then create a binary mask where: + * - Class 0 (background) = 0 (remove) + * - Classes 1-5 (person-related) = 1 (keep) + * + * Model Card: https://storage.googleapis.com/mediapipe-assets/Model%20Card%20Multiclass%20Segmentation.pdf + * Source: https://storage.googleapis.com/mediapipe-models/image_segmenter/selfie_multiclass_256x256/float32/latest/selfie_multiclass_256x256.tflite + * + * Conversion from TFLite to ONNX required - see scripts/convert_selfie_multiclass.py + */ +class ModelSelfieMulticlass : public Model { +private: + /* data */ +public: + ModelSelfieMulticlass(/* args */) {} + ~ModelSelfieMulticlass() {} + + /** + * @brief Get the network output and reshape it appropriately + * + * The output is [1, 256, 256, 6] with 6 channels representing class probabilities. + * We need to convert this to a single-channel mask for background removal. + */ + virtual cv::Mat getNetworkOutput(const std::vector> &outputDims, + std::vector> &outputTensorValues) + { + // Output is BHWC format: [1, 256, 256, 6] + uint32_t outputWidth = (int)outputDims[0].at(2); + uint32_t outputHeight = (int)outputDims[0].at(1); + int32_t numClasses = (int)outputDims[0].at(3); // Should be 6 + + // Create a multi-channel Mat with all class probabilities + return cv::Mat(outputHeight, outputWidth, CV_MAKE_TYPE(CV_32F, numClasses), + outputTensorValues[0].data()); + } + + /** + * @brief Post-process the multi-class output to create a binary foreground mask + * + * This function: + * 1. Finds the class with maximum probability for each pixel (argmax) + * 2. Creates a binary mask where class > 0 (any non-background) = foreground + * 3. Outputs a single-channel float mask with values in [0, 1] + */ + virtual void postprocessOutput(cv::Mat &outputImage) + { + // outputImage is [H, W, 6] with float32 class probabilities + + const int height = outputImage.rows; + const int width = outputImage.cols; + const int numClasses = outputImage.channels(); + + // Split multi-channel output into separate channels + std::vector channels(numClasses); + cv::split(outputImage, channels); + + // Create matrices to store argmax results + cv::Mat maxValues = cv::Mat::zeros(height, width, CV_32FC1); + cv::Mat maxIndices = cv::Mat::zeros(height, width, CV_8UC1); + + // Find argmax across all channels + for (int c = 0; c < numClasses; c++) { + // Create a mask where this channel has the maximum value + cv::Mat mask = channels[c] > maxValues; + + // Update maxValues where this channel is larger + maxValues.copyTo(channels[c], ~mask); + channels[c].copyTo(maxValues, mask); + + // Update maxIndices where this channel is larger + maxIndices.setTo(c, mask); + } + + // Create output mask: foreground = 1 where maxIndices > 0 (not background) + cv::Mat foregroundMask = maxIndices > 0; + + // Convert boolean mask to float and multiply by confidence values + cv::Mat mask; + foregroundMask.convertTo(mask, CV_32FC1, 1.0 / 255.0); // Convert uint8 to float [0,1] + mask = mask.mul(maxValues); // Multiply by confidence + + // Replace the multi-channel output with single-channel mask + mask.copyTo(outputImage); + } +}; + +#endif // MODELSELFIE_MULTICLASS_H diff --git a/src/models/ModelTBEFN.hpp b/src/models/ModelTBEFN.hpp new file mode 100644 index 00000000..19abe2bb --- /dev/null +++ b/src/models/ModelTBEFN.hpp @@ -0,0 +1,31 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELTBEFN_H +#define MODELTBEFN_H + +#include "Model.hpp" + +class ModelTBEFN : public ModelBCHW { +public: + virtual void postprocessOutput(cv::Mat &output) + { + // output is already BHWC ... + output = output * 255.0; // Convert to 0-255 range + } + + virtual cv::Mat getNetworkOutput(const std::vector> &outputDims, + std::vector> &outputTensorValues) + { + // BHWC + uint32_t outputWidth = (int)outputDims[0].at(2); + uint32_t outputHeight = (int)outputDims[0].at(1); + int32_t outputChannels = CV_MAKE_TYPE(CV_32F, (int)outputDims[0].at(3)); + + return cv::Mat(outputHeight, outputWidth, outputChannels, outputTensorValues[0].data()); + } +}; + +#endif /* MODELTBEFN_H */ diff --git a/src/models/ModelTCMonoDepth.hpp b/src/models/ModelTCMonoDepth.hpp new file mode 100644 index 00000000..c2531910 --- /dev/null +++ b/src/models/ModelTCMonoDepth.hpp @@ -0,0 +1,31 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELTCMONODEPTH_H +#define MODELTCMONODEPTH_H + +#include "Model.hpp" + +class ModelTCMonoDepth : public ModelBCHW { +private: + /* data */ +public: + ModelTCMonoDepth(/* args */) {} + ~ModelTCMonoDepth() {} + + virtual void prepareInputToNetwork(cv::Mat &resizedImage, cv::Mat &preprocessedImage) + { + // Do not normalize from [0, 255] to [0, 1]. + + hwc_to_chw(resizedImage, preprocessedImage); + } + + virtual void postprocessOutput(cv::Mat &outputImage) + { + cv::normalize(outputImage, outputImage, 1.0, 0.0, cv::NORM_MINMAX); + } +}; + +#endif // MODELTCMONODEPTH_H diff --git a/src/models/ModelURetinex.hpp b/src/models/ModelURetinex.hpp new file mode 100644 index 00000000..78d92795 --- /dev/null +++ b/src/models/ModelURetinex.hpp @@ -0,0 +1,64 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef MODELURETINEX_H +#define MODELURETINEX_H + +#include "Model.hpp" + +class ModelURetinex : public ModelBCHW { +public: + virtual void populateInputOutputNames(const std::unique_ptr &session, + std::vector &inputNames, + std::vector &outputNames) + { + Ort::AllocatorWithDefaultOptions allocator; + + inputNames.clear(); + outputNames.clear(); + + for (size_t i = 0; i < session->GetInputCount(); i++) { + inputNames.push_back(session->GetInputNameAllocated(i, allocator)); + } + for (size_t i = 0; i < session->GetOutputCount(); i++) { + outputNames.push_back(session->GetOutputNameAllocated(i, allocator)); + } + } + + virtual bool populateInputOutputShapes(const std::unique_ptr &session, + std::vector> &inputDims, + std::vector> &outputDims) + { + // Assuming model only has one input and one output image + + inputDims.clear(); + outputDims.clear(); + + for (size_t i = 0; i < session->GetInputCount(); i++) { + // Get input shape + const Ort::TypeInfo inputTypeInfo = session->GetInputTypeInfo(i); + const auto inputTensorInfo = inputTypeInfo.GetTensorTypeAndShapeInfo(); + inputDims.push_back(inputTensorInfo.GetShape()); + } + + for (size_t i = 0; i < session->GetOutputCount(); i++) { + // Get output shape + const Ort::TypeInfo outputTypeInfo = session->GetOutputTypeInfo(i); + const auto outputTensorInfo = outputTypeInfo.GetTensorTypeAndShapeInfo(); + outputDims.push_back(outputTensorInfo.GetShape()); + } + + return true; + } + + virtual void loadInputToTensor(const cv::Mat &preprocessedImage, uint32_t, uint32_t, + std::vector> &inputTensorValues) + { + inputTensorValues[0].assign(preprocessedImage.begin(), preprocessedImage.end()); + inputTensorValues[1][0] = 5.0f; + } +}; + +#endif /* MODELURETINEX_H */ diff --git a/src/obs-utils/obs-config-utils.cpp b/src/obs-utils/obs-config-utils.cpp new file mode 100644 index 00000000..a033ee0c --- /dev/null +++ b/src/obs-utils/obs-config-utils.cpp @@ -0,0 +1,71 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "obs-config-utils.hpp" +#include "../plugin-support.h" + +#include +#include +#include +#include + +void create_config_folder() +{ + char *config_folder_path = obs_module_config_path(NULL); + if (!config_folder_path) { + obs_log(LOG_ERROR, "Failed to get config folder path"); + return; + } + os_mkdirs(config_folder_path); + bfree(config_folder_path); +} + +int getConfig(config_t **config) +{ + create_config_folder(); // ensure the config folder exists + + // Get the config file + char *config_file_path = obs_module_config_path("config.ini"); + + int ret = config_open(config, config_file_path, CONFIG_OPEN_EXISTING); + if (ret != CONFIG_SUCCESS) { + obs_log(LOG_INFO, "Failed to open config file %s", config_file_path); + bfree(config_file_path); + return OBS_BGREMOVAL_CONFIG_FAIL; + } + + bfree(config_file_path); + return OBS_BGREMOVAL_CONFIG_SUCCESS; +} + +int getFlagFromConfig(const char *name, bool *returnValue, bool defaultValue) +{ + // Get the config file + config_t *config; + if (getConfig(&config) != OBS_BGREMOVAL_CONFIG_SUCCESS) { + *returnValue = defaultValue; + return OBS_BGREMOVAL_CONFIG_FAIL; + } + + *returnValue = config_get_bool(config, "config", name); + config_close(config); + + return OBS_BGREMOVAL_CONFIG_SUCCESS; +} + +int setFlagInConfig(const char *name, const bool value) +{ + // Get the config file + config_t *config; + if (getConfig(&config) != OBS_BGREMOVAL_CONFIG_SUCCESS) { + return OBS_BGREMOVAL_CONFIG_FAIL; + } + + config_set_bool(config, "config", name, value); + config_save(config); + config_close(config); + + return OBS_BGREMOVAL_CONFIG_SUCCESS; +} diff --git a/src/obs-utils/obs-config-utils.hpp b/src/obs-utils/obs-config-utils.hpp new file mode 100644 index 00000000..12ec0c14 --- /dev/null +++ b/src/obs-utils/obs-config-utils.hpp @@ -0,0 +1,35 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef OBS_CONFIG_UTILS_H +#define OBS_CONFIG_UTILS_H + +enum { + OBS_BGREMOVAL_CONFIG_SUCCESS = 0, + OBS_BGREMOVAL_CONFIG_FAIL = 1, +}; + +/** + * Get a boolean flasg from the module configuration file. + * + * @param name The name of the config item. + * @param returnValue The value of the config item. + * @param defaultValue The default value of the config item. + * @return OBS_BGREMOVAL_CONFIG_SUCCESS if the config item was found, + * OBS_BGREMOVAL_CONFIG_FAIL otherwise. + */ +int getFlagFromConfig(const char *name, bool *returnValue, bool defaultValue); + +/** + * Set a boolean flag in the module configuration file. + * + * @param name The name of the config item. + * @param value The value of the config item. + * @return OBS_BGREMOVAL_CONFIG_SUCCESS if the config item was found, + * OBS_BGREMOVAL_CONFIG_FAIL otherwise. + */ +int setFlagInConfig(const char *name, const bool value); + +#endif /* OBS_CONFIG_UTILS_H */ diff --git a/src/obs-utils/obs-utils.cpp b/src/obs-utils/obs-utils.cpp new file mode 100644 index 00000000..0ebd21a9 --- /dev/null +++ b/src/obs-utils/obs-utils.cpp @@ -0,0 +1,76 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "obs-utils.hpp" + +#include + +/** + * @brief Get RGBA from the stage surface + * + * @param tf The filter data + * @param width The width of the stage surface (output) + * @param height The height of the stage surface (output) + * @return true if successful + * @return false if unsuccessful +*/ +bool getRGBAFromStageSurface(filter_data *tf, uint32_t &width, uint32_t &height) +{ + + if (!obs_source_enabled(tf->source)) { + return false; + } + + obs_source_t *target = obs_filter_get_target(tf->source); + if (!target) { + return false; + } + width = obs_source_get_base_width(target); + height = obs_source_get_base_height(target); + if (width == 0 || height == 0) { + return false; + } + gs_texrender_reset(tf->texrender); + if (!gs_texrender_begin(tf->texrender, width, height)) { + return false; + } + struct vec4 background; + vec4_zero(&background); + gs_clear(GS_CLEAR_COLOR, &background, 0.0f, 0); + gs_ortho(0.0f, static_cast(width), 0.0f, static_cast(height), -100.0f, 100.0f); + gs_blend_state_push(); + gs_blend_function(GS_BLEND_ONE, GS_BLEND_ZERO); + obs_source_video_render(target); + gs_blend_state_pop(); + gs_texrender_end(tf->texrender); + + if (tf->stagesurface) { + uint32_t stagesurf_width = gs_stagesurface_get_width(tf->stagesurface); + uint32_t stagesurf_height = gs_stagesurface_get_height(tf->stagesurface); + if (stagesurf_width != width || stagesurf_height != height) { + gs_stagesurface_destroy(tf->stagesurface); + tf->stagesurface = nullptr; + } + } + if (!tf->stagesurface) { + tf->stagesurface = gs_stagesurface_create(width, height, GS_BGRA); + } + gs_stage_texture(tf->stagesurface, gs_texrender_get_texture(tf->texrender)); + uint8_t *video_data; + uint32_t linesize; + if (!gs_stagesurface_map(tf->stagesurface, &video_data, &linesize)) { + return false; + } + { + std::lock_guard lock(tf->inputBGRALock); + // Create a temporary Mat that wraps the video_data pointer + cv::Mat temp(height, width, CV_8UC4, video_data, linesize); + // Clone the data to ensure tf->inputBGRA has its own copy + // This prevents use-after-unmap race condition + tf->inputBGRA = temp.clone(); + } + gs_stagesurface_unmap(tf->stagesurface); + return true; +} diff --git a/src/obs-utils/obs-utils.hpp b/src/obs-utils/obs-utils.hpp new file mode 100644 index 00000000..76c25de2 --- /dev/null +++ b/src/obs-utils/obs-utils.hpp @@ -0,0 +1,13 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef OBS_UTILS_H +#define OBS_UTILS_H + +#include "../FilterData.hpp" + +bool getRGBAFromStageSurface(filter_data *tf, uint32_t &width, uint32_t &height); + +#endif /* OBS_UTILS_H */ diff --git a/src/ort-utils/ORTModelData.hpp b/src/ort-utils/ORTModelData.hpp new file mode 100644 index 00000000..7fa41713 --- /dev/null +++ b/src/ort-utils/ORTModelData.hpp @@ -0,0 +1,24 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef ORTMODELDATA_H +#define ORTMODELDATA_H + +#include + +struct ORTModelData { + std::unique_ptr session; + std::unique_ptr env; + std::vector inputNames; + std::vector outputNames; + std::vector inputTensor; + std::vector outputTensor; + std::vector> inputDims; + std::vector> outputDims; + std::vector> outputTensorValues; + std::vector> inputTensorValues; +}; + +#endif /* ORTMODELDATA_H */ diff --git a/src/ort-utils/ort-session-utils.cpp b/src/ort-utils/ort-session-utils.cpp new file mode 100644 index 00000000..ab199f44 --- /dev/null +++ b/src/ort-utils/ort-session-utils.cpp @@ -0,0 +1,175 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include +#include + +#if defined(__APPLE__) +#include +#endif + +#ifdef _WIN32 +#include +#include +#endif // _WIN32 + +#include + +#include "ort-session-utils.hpp" +#include "../consts.h" +#include "../plugin-support.h" + +int createOrtSession(filter_data *tf) +{ + if (tf->model.get() == nullptr) { + obs_log(LOG_ERROR, "Model object is not initialized"); + return OBS_BGREMOVAL_ORT_SESSION_ERROR_INVALID_MODEL; + } + + Ort::SessionOptions sessionOptions; + + sessionOptions.SetGraphOptimizationLevel(GraphOptimizationLevel::ORT_ENABLE_ALL); + if (tf->useGPU != USEGPU_CPU) { + sessionOptions.DisableMemPattern(); + sessionOptions.SetExecutionMode(ExecutionMode::ORT_SEQUENTIAL); + } else { + sessionOptions.SetInterOpNumThreads(tf->numThreads); + sessionOptions.SetIntraOpNumThreads(tf->numThreads); + } + + char *modelFilepath_rawPtr = obs_module_file(tf->modelSelection.c_str()); + + if (modelFilepath_rawPtr == nullptr) { + obs_log(LOG_ERROR, "Unable to get model filename %s from plugin.", tf->modelSelection.c_str()); + return OBS_BGREMOVAL_ORT_SESSION_ERROR_FILE_NOT_FOUND; + } + + std::string modelFilepath_s(modelFilepath_rawPtr); + +#if _WIN32 + int outLength = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, modelFilepath_rawPtr, -1, nullptr, 0); + tf->modelFilepath = std::wstring(outLength, L'\0'); + MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, modelFilepath_rawPtr, -1, tf->modelFilepath.data(), outLength); +#else + tf->modelFilepath = std::string(modelFilepath_rawPtr); +#endif + + bfree(modelFilepath_rawPtr); + + try { +#ifdef HAVE_ONNXRUNTIME_CUDA_EP + if (tf->useGPU == USEGPU_CUDA) { + Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_CUDA(sessionOptions, 0)); + } +#endif +#ifdef HAVE_ONNXRUNTIME_ROCM_EP + if (tf->useGPU == USEGPU_ROCM) { + Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_ROCM(sessionOptions, 0)); + } +#endif +#ifdef HAVE_ONNXRUNTIME_MIGRAPHX_EP + if (tf->useGPU == USEGPU_MIGRAPHX) { + Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_MIGraphX(sessionOptions, 0)); + } +#endif +#ifdef HAVE_ONNXRUNTIME_TENSORRT_EP + if (tf->useGPU == USEGPU_TENSORRT) { + Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_Tensorrt(sessionOptions, 0)); + } +#endif +#if defined(__APPLE__) + if (tf->useGPU == USEGPU_COREML) { + uint32_t coreml_flags = 0; + coreml_flags |= COREML_FLAG_ENABLE_ON_SUBGRAPH; + Ort::ThrowOnError( + OrtSessionOptionsAppendExecutionProvider_CoreML(sessionOptions, coreml_flags)); + } +#endif + tf->session.reset(new Ort::Session(*tf->env, tf->modelFilepath.c_str(), sessionOptions)); + } catch (const std::exception &e) { + obs_log(LOG_ERROR, "%s", e.what()); + return OBS_BGREMOVAL_ORT_SESSION_ERROR_STARTUP; + } + + Ort::AllocatorWithDefaultOptions allocator; + + tf->model->populateInputOutputNames(tf->session, tf->inputNames, tf->outputNames); + + if (!tf->model->populateInputOutputShapes(tf->session, tf->inputDims, tf->outputDims)) { + obs_log(LOG_ERROR, "Unable to get model input and output shapes"); + return OBS_BGREMOVAL_ORT_SESSION_ERROR_INVALID_INPUT_OUTPUT; + } + + for (size_t i = 0; i < tf->inputNames.size(); i++) { + obs_log(LOG_INFO, "Model %s input %d: name %s shape (%d dim) %d x %d x %d x %d", + tf->modelSelection.c_str(), (int)i, tf->inputNames[i].get(), (int)tf->inputDims[i].size(), + (int)tf->inputDims[i][0], ((int)tf->inputDims[i].size() > 1) ? (int)tf->inputDims[i][1] : 0, + ((int)tf->inputDims[i].size() > 2) ? (int)tf->inputDims[i][2] : 0, + ((int)tf->inputDims[i].size() > 3) ? (int)tf->inputDims[i][3] : 0); + } + for (size_t i = 0; i < tf->outputNames.size(); i++) { + obs_log(LOG_INFO, "Model %s output %d: name %s shape (%d dim) %d x %d x %d x %d", + tf->modelSelection.c_str(), (int)i, tf->outputNames[i].get(), (int)tf->outputDims[i].size(), + (int)tf->outputDims[i][0], ((int)tf->outputDims[i].size() > 1) ? (int)tf->outputDims[i][1] : 0, + ((int)tf->outputDims[i].size() > 2) ? (int)tf->outputDims[i][2] : 0, + ((int)tf->outputDims[i].size() > 3) ? (int)tf->outputDims[i][3] : 0); + } + + // Allocate buffers + tf->model->allocateTensorBuffers(tf->inputDims, tf->outputDims, tf->outputTensorValues, tf->inputTensorValues, + tf->inputTensor, tf->outputTensor); + + return OBS_BGREMOVAL_ORT_SESSION_SUCCESS; +} + +bool runFilterModelInference(filter_data *tf, const cv::Mat &imageBGRA, cv::Mat &output) +{ + if (tf->session.get() == nullptr) { + // Onnx runtime session is not initialized. Problem in initialization + return false; + } + if (tf->model.get() == nullptr) { + // Model object is not initialized + return false; + } + + // To RGB + cv::Mat imageRGB; + cv::cvtColor(imageBGRA, imageRGB, cv::COLOR_BGRA2RGB); + + // Resize to network input size + uint32_t inputWidth, inputHeight; + tf->model->getNetworkInputSize(tf->inputDims, inputWidth, inputHeight); + + cv::Mat resizedImageRGB; + cv::resize(imageRGB, resizedImageRGB, cv::Size(inputWidth, inputHeight)); + + // Prepare input to nework + cv::Mat resizedImage, preprocessedImage; + resizedImageRGB.convertTo(resizedImage, CV_32F); + + tf->model->prepareInputToNetwork(resizedImage, preprocessedImage); + + tf->model->loadInputToTensor(preprocessedImage, inputWidth, inputHeight, tf->inputTensorValues); + + // Run network inference + tf->model->runNetworkInference(tf->session, tf->inputNames, tf->outputNames, tf->inputTensor, tf->outputTensor); + + // Get output + // Map network output to cv::Mat + cv::Mat outputImage = tf->model->getNetworkOutput(tf->outputDims, tf->outputTensorValues); + + // Assign output to input in some models that have temporal information + tf->model->assignOutputToInput(tf->outputTensorValues, tf->inputTensorValues); + + // Post-process output. The image will now be in [0,1] float, BHWC format + tf->model->postprocessOutput(outputImage); + + // Convert [0,1] float to CV_8U [0,255] + outputImage.convertTo(output, CV_8U, 255.0); + + return true; +} diff --git a/src/ort-utils/ort-session-utils.hpp b/src/ort-utils/ort-session-utils.hpp new file mode 100644 index 00000000..1e689630 --- /dev/null +++ b/src/ort-utils/ort-session-utils.hpp @@ -0,0 +1,23 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef ORT_SESSION_UTILS_H +#define ORT_SESSION_UTILS_H + +#include + +#include "../FilterData.hpp" + +#define OBS_BGREMOVAL_ORT_SESSION_ERROR_FILE_NOT_FOUND 1 +#define OBS_BGREMOVAL_ORT_SESSION_ERROR_INVALID_MODEL 2 +#define OBS_BGREMOVAL_ORT_SESSION_ERROR_INVALID_INPUT_OUTPUT 3 +#define OBS_BGREMOVAL_ORT_SESSION_ERROR_STARTUP 5 +#define OBS_BGREMOVAL_ORT_SESSION_SUCCESS 0 + +int createOrtSession(filter_data *tf); + +bool runFilterModelInference(filter_data *tf, const cv::Mat &imageBGRA, cv::Mat &output); + +#endif /* ORT_SESSION_UTILS_H */ diff --git a/src/plugin-macros.h.in b/src/plugin-macros.h.in deleted file mode 100644 index dad1d7ff..00000000 --- a/src/plugin-macros.h.in +++ /dev/null @@ -1,27 +0,0 @@ -/* -Plugin Name -Copyright (C) - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program. If not, see -*/ - -#ifndef PLUGINNAME_H -#define PLUGINNAME_H - -#define PLUGIN_NAME "@CMAKE_PROJECT_NAME@" -#define PLUGIN_VERSION "@CMAKE_PROJECT_VERSION@" - -#define blog(level, msg, ...) blog(level, "[" PLUGIN_NAME "] " msg, ##__VA_ARGS__) - -#endif // PLUGINNAME_H \ No newline at end of file diff --git a/src/plugin-main.c b/src/plugin-main.c new file mode 100644 index 00000000..6dc90d02 --- /dev/null +++ b/src/plugin-main.c @@ -0,0 +1,34 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include + +#include "plugin-support.h" + +#include "update-checker/update-checker.h" + +OBS_DECLARE_MODULE() +OBS_MODULE_USE_DEFAULT_LOCALE(PLUGIN_NAME, "en-US") + +extern struct obs_source_info background_removal_filter_info; +extern struct obs_source_info enhance_filter_info; + +bool obs_module_load(void) +{ + obs_register_source(&background_removal_filter_info); + obs_register_source(&enhance_filter_info); + obs_log(LOG_INFO, "Plugin loaded successfully (version %s)", PLUGIN_VERSION); + + check_update(); + + return true; +} + +void obs_module_unload() +{ + obs_log(LOG_INFO, "plugin unloaded"); +} diff --git a/src/plugin-main.cpp b/src/plugin-main.cpp deleted file mode 100644 index 8e952c79..00000000 --- a/src/plugin-main.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* -Plugin Name -Copyright (C) 2021 Roy Shilkrot roy.shil@gmail.com - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program. If not, see -*/ - -#include - -#include "plugin-macros.generated.h" - -OBS_DECLARE_MODULE() -OBS_MODULE_USE_DEFAULT_LOCALE(PLUGIN_NAME, "en-US") - -MODULE_EXPORT const char *obs_module_description(void) -{ - return "Portrait background filter plugin"; -} - -extern struct obs_source_info background_removal_filter_info; - -bool obs_module_load(void) -{ - obs_register_source(&background_removal_filter_info); - blog(LOG_INFO, "plugin loaded successfully (version %s)", PLUGIN_VERSION); - return true; -} - -void obs_module_unload() -{ - blog(LOG_INFO, "plugin unloaded"); -} diff --git a/src/plugin-support.c b/src/plugin-support.c new file mode 100644 index 00000000..16ac1ef8 --- /dev/null +++ b/src/plugin-support.c @@ -0,0 +1,30 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include "plugin-support.h" + +extern void blogva(int log_level, const char *format, va_list args); + +const char *PLUGIN_NAME = "obs-backgroundremoval"; +const char *PLUGIN_VERSION = "1.4.0"; + +void obs_log(int log_level, const char *format, ...) +{ + size_t length = 4 + strlen(PLUGIN_NAME) + strlen(format); + + char *template = malloc(length + 1); + + snprintf(template, length, "[%s] %s", PLUGIN_NAME, format); + + va_list(args); + + va_start(args, format); + blogva(log_level, template, args); + va_end(args); + + free(template); +} diff --git a/src/plugin-support.h b/src/plugin-support.h new file mode 100644 index 00000000..36b46f84 --- /dev/null +++ b/src/plugin-support.h @@ -0,0 +1,26 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include +#include + +extern const char *PLUGIN_NAME; +extern const char *PLUGIN_VERSION; + +void obs_log(int log_level, const char *format, ...); + +#ifdef __cplusplus +} +#endif diff --git a/src/required_operators_and_types.with_runtime_opt.config b/src/required_operators_and_types.with_runtime_opt.config new file mode 100644 index 00000000..697937f5 --- /dev/null +++ b/src/required_operators_and_types.with_runtime_opt.config @@ -0,0 +1,21 @@ +# Generated from model/s: +# - SINet_Softmax_simple.with_runtime_opt.ort +# - mediapipe.with_runtime_opt.ort +# - pphumanseg_fp32.with_runtime_opt.ort +# - rvm_mobilenetv3_fp32.with_runtime_opt.ort +# - selfie_multiclass_256x256.with_runtime_opt.ort +# - selfie_segmentation.with_runtime_opt.ort +# - semantic_guided_llie_180x324.with_runtime_opt.ort +# - tbefn_fp32.with_runtime_opt.ort +# - tcmonodepth_tcsmallnet_192x320.with_runtime_opt.ort +# - uretinex_net_180x320.with_runtime_opt.ort +ai.onnx;1;GlobalAveragePool,Shape,Transpose{"inputs": {"0": ["float"]}} +ai.onnx;5;Reshape +ai.onnx;6;HardSigmoid,LeakyRelu,Relu{"inputs": {"0": ["float"]}},Sigmoid{"inputs": {"0": ["float"]}},Tanh{"inputs": {"0": ["float"]}} +ai.onnx;7;Add{"inputs": {"0": ["float"]}},Div{"inputs": {"0": ["float"]}},Mul{"inputs": {"0": ["float"]}},Pow{"inputs": {"0": ["float"], "1": ["float"]}},Sub{"inputs": {"0": ["float"]}} +ai.onnx;8;Expand{"inputs": {"0": ["float"]}} +ai.onnx;9;BatchNormalization{"inputs": {"0": ["float"]}},MatMul{"inputs": {"0": ["float"]}},PRelu +ai.onnx;11;AveragePool{"inputs": {"0": ["float"]}},Clip{"inputs": {"0": ["float"]}},Concat{"inputs": {"0": ["float", "int64_t"]}},Conv{"inputs": {"0": ["float"]}},ConvTranspose,Flatten,Gemm{"inputs": {"0": ["float"]}},MaxPool{"inputs": {"0": ["float"]}},ReduceMean{"inputs": {"0": ["float"]}},Resize{"inputs": {"0": ["float"]}},Slice{"inputs": {"0": ["float", "int64_t"], "1": ["int64_t"]}},Softmax{"inputs": {"0": ["float"]}},Split{"inputs": {"0": ["float"]}} +ai.onnx;12;Clip{"inputs": {"0": ["float"]}},MaxPool{"inputs": {"0": ["float"]}} +ai.onnx;13;Add{"inputs": {"0": ["float"]}},Mul{"inputs": {"0": ["float"]}},ReduceSum{"inputs": {"0": ["float"]}},Relu{"inputs": {"0": ["float"]}},Reshape,Resize{"inputs": {"0": ["float"]}},Softmax{"inputs": {"0": ["float"]}},Transpose{"inputs": {"0": ["float"]}} +com.microsoft;1;FusedConv diff --git a/src/required_operators_and_types.with_runtime_opt.config.license b/src/required_operators_and_types.with_runtime_opt.config.license new file mode 100644 index 00000000..3edc408e --- /dev/null +++ b/src/required_operators_and_types.with_runtime_opt.config.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + +SPDX-License-Identifier: CC0-1.0 diff --git a/src/update-checker/Client.hpp b/src/update-checker/Client.hpp new file mode 100644 index 00000000..142e484d --- /dev/null +++ b/src/update-checker/Client.hpp @@ -0,0 +1,9 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +void fetchStringFromUrl(const char *urlString, std::function callback); diff --git a/src/update-checker/CurlClient/CMakeLists.txt b/src/update-checker/CurlClient/CMakeLists.txt new file mode 100644 index 00000000..e291ce30 --- /dev/null +++ b/src/update-checker/CurlClient/CMakeLists.txt @@ -0,0 +1,8 @@ +# SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +# SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +# +# SPDX-License-Identifier: GPL-3.0-or-later + +add_library(CurlClient STATIC CurlClient.cpp) +target_link_libraries(CurlClient PRIVATE OBS::libobs CURL::libcurl) +target_include_directories(CurlClient PRIVATE "${CMAKE_SOURCE_DIR}/src") diff --git a/src/update-checker/CurlClient/CurlClient.cpp b/src/update-checker/CurlClient/CurlClient.cpp new file mode 100644 index 00000000..005eb30a --- /dev/null +++ b/src/update-checker/CurlClient/CurlClient.cpp @@ -0,0 +1,46 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include + +#include +#include "plugin-support.h" + +const std::string userAgent = std::string(PLUGIN_NAME) + "/" + PLUGIN_VERSION; + +static std::size_t writeFunc(void *ptr, std::size_t size, size_t nmemb, std::string *data) +{ + data->append(static_cast(ptr), size * nmemb); + return size * nmemb; +} + +void fetchStringFromUrl(const char *urlString, std::function callback) +{ + CURL *curl = curl_easy_init(); + if (!curl) { + obs_log(LOG_INFO, "Failed to initialize curl"); + callback("", CURL_LAST); + return; + } + + std::string responseBody; + curl_easy_setopt(curl, CURLOPT_URL, urlString); + curl_easy_setopt(curl, CURLOPT_USERAGENT, userAgent.c_str()); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeFunc); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, &responseBody); + + CURLcode code = curl_easy_perform(curl); + curl_easy_cleanup(curl); + + if (code == CURLE_OK) { + callback(responseBody, 0); + } else { + obs_log(LOG_INFO, "Failed to get latest release info"); + callback("", code); + } +} diff --git a/src/update-checker/github-utils.cpp b/src/update-checker/github-utils.cpp new file mode 100644 index 00000000..b1020a52 --- /dev/null +++ b/src/update-checker/github-utils.cpp @@ -0,0 +1,43 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include +#include + +#include + +#include "Client.hpp" +#include "github-utils.hpp" +#include "../plugin-support.h" + +static const std::string GITHUB_LATEST_RELEASE_URL = + "https://api.github.com/repos/royshil/obs-backgroundremoval/releases/latest"; + +void github_utils_get_release_information(std::function callback) +{ + fetchStringFromUrl(GITHUB_LATEST_RELEASE_URL.c_str(), [callback](std::string responseBody, int code) { + if (code != 0) + return; + // Parse the JSON response + obs_data_t *data = obs_data_create_from_json(responseBody.c_str()); + if (!data) { + obs_log(LOG_INFO, "Failed to parse latest release info"); + callback({OBS_BGREMOVAL_GITHUB_UTILS_ERROR, "", ""}); + return; + } + + // The version is in the "tag_name" property + std::string version = obs_data_get_string(data, "tag_name"); + std::string body = obs_data_get_string(data, "body"); + obs_data_release(data); + + // remove the "v" prefix in version, if it exists + if (version[0] == 'v') { + version = version.substr(1); + } + + callback({OBS_BGREMOVAL_GITHUB_UTILS_SUCCESS, body, version}); + }); +} diff --git a/src/update-checker/github-utils.hpp b/src/update-checker/github-utils.hpp new file mode 100644 index 00000000..23cce37f --- /dev/null +++ b/src/update-checker/github-utils.hpp @@ -0,0 +1,22 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include +#include + +enum { + OBS_BGREMOVAL_GITHUB_UTILS_SUCCESS = 0, + OBS_BGREMOVAL_GITHUB_UTILS_ERROR = -1, +}; + +struct github_utils_release_information { + int responseCode; + std::string responseBody; + std::string version; +}; + +void github_utils_get_release_information(std::function callback); diff --git a/src/update-checker/update-checker.cpp b/src/update-checker/update-checker.cpp new file mode 100644 index 00000000..fff860f6 --- /dev/null +++ b/src/update-checker/update-checker.cpp @@ -0,0 +1,66 @@ +// SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot +// SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "update-checker.h" +#include "github-utils.hpp" +#include "../obs-utils/obs-config-utils.hpp" + +#include +#include + +#include "../plugin-support.h" + +#include + +extern "C" const char *PLUGIN_VERSION; + +static std::string latestVersionForUpdate; +static std::mutex latestVersionMutex; + +void check_update(void) +{ + bool shouldCheckForUpdates = false; + if (getFlagFromConfig("check_for_updates", &shouldCheckForUpdates, true) != OBS_BGREMOVAL_CONFIG_SUCCESS) { + // Failed to get the config value, assume it's enabled + shouldCheckForUpdates = true; + // store the default value + setFlagInConfig("check_for_updates", shouldCheckForUpdates); + } + + if (!shouldCheckForUpdates) { + // Update checks are disabled + return; + } + + const auto callback = [](github_utils_release_information info) { + if (info.responseCode != OBS_BGREMOVAL_GITHUB_UTILS_SUCCESS) { + obs_log(LOG_INFO, "failed to get latest release information"); + return; + } + obs_log(LOG_INFO, "Latest release is %s", info.version.c_str()); + + if (info.version == PLUGIN_VERSION) { + // No update available, latest version is the same as the current version + std::lock_guard lock(latestVersionMutex); + latestVersionForUpdate.clear(); + return; + } + + std::lock_guard lock(latestVersionMutex); + latestVersionForUpdate = info.version; + }; + + github_utils_get_release_information(callback); +} + +const char *get_latest_version(void) +{ + std::lock_guard lock(latestVersionMutex); + obs_log(LOG_INFO, "get_latest_version: %s", latestVersionForUpdate.c_str()); + if (latestVersionForUpdate.empty()) { + return nullptr; + } + return latestVersionForUpdate.c_str(); +} diff --git a/src/update-checker/update-checker.h b/src/update-checker/update-checker.h new file mode 100644 index 00000000..018bd4db --- /dev/null +++ b/src/update-checker/update-checker.h @@ -0,0 +1,19 @@ +/* + * SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot + * SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +void check_update(void); +const char *get_latest_version(void); + +#ifdef __cplusplus +} +#endif diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json new file mode 100644 index 00000000..9c09ad7d --- /dev/null +++ b/vcpkg-configuration.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg-configuration.schema.json", + "default-registry": { + "kind": "git", + "baseline": "f7f94113c3b629c01df3d49d5edebae6d598c78c", + "repository": "https://github.com/microsoft/vcpkg" + }, + "registries": [ + { + "kind": "git", + "baseline": "a0f06e896a158885fb426e5a91afe72b9b10526b", + "repository": "https://github.com/kaito-tokyo/vcpkg-registry-kaito-tokyo", + "packages": [ + "wolfssl" + ] + } + ], + "overlay-triplets": [ + "./vcpkg-triplets" + ] +} diff --git a/vcpkg-triplets/REUSE.toml b/vcpkg-triplets/REUSE.toml new file mode 100644 index 00000000..23130b7c --- /dev/null +++ b/vcpkg-triplets/REUSE.toml @@ -0,0 +1,6 @@ +version = 1 + +[[annotations]] +path = "*.cmake" +SPDX-FileCopyrightText = "2026 Kaito Udagawa " +SPDX-License-Identifier = "CC0-1.0" diff --git a/vcpkg-triplets/arm64-osx-obs-asan.cmake b/vcpkg-triplets/arm64-osx-obs-asan.cmake new file mode 100644 index 00000000..d3f58be1 --- /dev/null +++ b/vcpkg-triplets/arm64-osx-obs-asan.cmake @@ -0,0 +1,14 @@ +set(VCPKG_TARGET_ARCHITECTURE arm64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_SYSTEM_NAME Darwin) +set(VCPKG_OSX_ARCHITECTURES arm64) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_OSX_DEPLOYMENT_TARGET "12.0") +set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -fsanitize=address") +set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fsanitize=address") +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_LINKER_FLAGS "${VCPKG_LINKER_FLAGS} -fsanitize=address") diff --git a/vcpkg-triplets/arm64-osx-obs.cmake b/vcpkg-triplets/arm64-osx-obs.cmake new file mode 100644 index 00000000..23cee536 --- /dev/null +++ b/vcpkg-triplets/arm64-osx-obs.cmake @@ -0,0 +1,11 @@ +set(VCPKG_TARGET_ARCHITECTURE arm64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_SYSTEM_NAME Darwin) +set(VCPKG_OSX_ARCHITECTURES arm64) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_OSX_DEPLOYMENT_TARGET "12.0") +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") diff --git a/vcpkg-triplets/x64-linux-obs-asan.cmake b/vcpkg-triplets/x64-linux-obs-asan.cmake new file mode 100644 index 00000000..ca8e6950 --- /dev/null +++ b/vcpkg-triplets/x64-linux-obs-asan.cmake @@ -0,0 +1,12 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_SYSTEM_NAME Linux) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -fsanitize=address") +set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fsanitize=address") +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_LINKER_FLAGS "${VCPKG_LINKER_FLAGS} -fsanitize=address") diff --git a/vcpkg-triplets/x64-linux-obs.cmake b/vcpkg-triplets/x64-linux-obs.cmake new file mode 100644 index 00000000..363c0ed6 --- /dev/null +++ b/vcpkg-triplets/x64-linux-obs.cmake @@ -0,0 +1,9 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_SYSTEM_NAME Linux) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") diff --git a/vcpkg-triplets/x64-osx-obs-asan.cmake b/vcpkg-triplets/x64-osx-obs-asan.cmake new file mode 100644 index 00000000..c83d4c80 --- /dev/null +++ b/vcpkg-triplets/x64-osx-obs-asan.cmake @@ -0,0 +1,14 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_SYSTEM_NAME Darwin) +set(VCPKG_OSX_ARCHITECTURES x86_64) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_OSX_DEPLOYMENT_TARGET "12.0") +set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -fsanitize=address") +set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fsanitize=address") +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_LINKER_FLAGS "${VCPKG_LINKER_FLAGS} -fsanitize=address") diff --git a/vcpkg-triplets/x64-osx-obs.cmake b/vcpkg-triplets/x64-osx-obs.cmake new file mode 100644 index 00000000..a6b9d674 --- /dev/null +++ b/vcpkg-triplets/x64-osx-obs.cmake @@ -0,0 +1,11 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_SYSTEM_NAME Darwin) +set(VCPKG_OSX_ARCHITECTURES x86_64) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_OSX_DEPLOYMENT_TARGET "12.0") +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} -g -fno-omit-frame-pointer -fstack-protector-strong") diff --git a/vcpkg-triplets/x64-windows-static-md-obs-asan.cmake b/vcpkg-triplets/x64-windows-static-md-obs-asan.cmake new file mode 100644 index 00000000..3b4f9928 --- /dev/null +++ b/vcpkg-triplets/x64-windows-static-md-obs-asan.cmake @@ -0,0 +1,10 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} /fsanitize=address") +set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} /fsanitize=address") +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} /Z7") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} /Z7") +set(VCPKG_LINKER_FLAGS_RELEASE "${VCPKG_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF") diff --git a/vcpkg-triplets/x64-windows-static-md-obs.cmake b/vcpkg-triplets/x64-windows-static-md-obs.cmake new file mode 100644 index 00000000..f239366f --- /dev/null +++ b/vcpkg-triplets/x64-windows-static-md-obs.cmake @@ -0,0 +1,8 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) + +set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DCMAKE_INSTALL_DO_STRIP=OFF) +set(VCPKG_C_FLAGS_RELEASE "${VCPKG_C_FLAGS_RELEASE} /Z7") +set(VCPKG_CXX_FLAGS_RELEASE "${VCPKG_CXX_FLAGS_RELEASE} /Z7") +set(VCPKG_LINKER_FLAGS_RELEASE "${VCPKG_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF") diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 00000000..4fe48f67 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "dependencies": [ + { + "name": "curl", + "default-features": false, + "features": [ + "ssl" + ], + "platform": "((windows & !uwp) | mingw) & !osx" + }, + { + "name": "curl", + "default-features": false, + "features": [ + "wolfssl" + ], + "platform": "((uwp | !windows) & !mingw) & !osx" + }, + { + "name": "opencv4", + "default-features": false, + "features": [ + "jpeg" + ] + } + ] +}