feat(plugin): bytedance shared runtime library - #87022
Closed
andrexibiza wants to merge 1 commit into
Closed
andrexibiza wants to merge 1 commit into
andrexibiza wants to merge 1 commit into
Conversation
…ens, media, rate_limit, secrets, observability, approval) Ref NousResearch#86950 (EPIC) Ref NousResearch#86952 (Lane 1) - plugins/bytedance/plugin.yaml (library kind) - plugins/bytedance/shared/: 10 modules + __init__.py All 23 files pass ast.parse syntax validation. Tests: 28 unit tests for approval ledger, TikTok webhook, and Douyin webhook. Co-authored-by: Ares <a@b.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds the ByteDance (TikTok/Douyin) shared runtime library as a standalone plugin. This is the foundation dependency for the TikTok Business Messaging, Douyin Open Platform, and ByteDance operations plugins.
Related Issue
Ref EPIC #86950
Closes #86951
Type of Change
Changes Made
plugins/bytedance/plugin.yaml(library kind manifest)plugins/bytedance/shared/— 10 runtime modules:errors.py— structured provider error envelopehttp.py— bounded async HTTP client with retry/timeout/redirect capstate.py— profile-scoped SQLite state store (WAL, migrations)webhook.py— HMAC-SHA256 verifier + CompositeIdempotencyKeytokens.py— token broker with single-flight refreshmedia.py— media broker with SSRF boundary enforcementrate_limit.py— in-memory rate limitersecrets.py— redacted credential storageobservability.py— structured logging with redactionapproval.py— immutable prepare/approve/commit ledgerHow to Test
Checklist
Code
ast.parsesyntax validationDocumentation & Housekeeping
Depends on
Nothing.
Blocks
Lane 2/5 (#86952), Lane 3/5 (#86953)