Repository navigation
Add Mini App: Live Stream Recorder - #216
Open
charlesnty612 wants to merge 10 commits into
Open
charlesnty612 wants to merge 10 commits into
charlesnty612 wants to merge 10 commits into
Conversation
Sync source worktree build output: engine download module, local install APIs, first-run dialog, engine panel, banner and disabled recording entries. Payload stays 69 files / 1,239,095 bytes (+18,664 bytes vs previous copy), no prebuilt engine. Community check: 0 errors; source build and package SHA-256 match file by file. TODO: Release URL/SHA/version remain placeholders until authorized; PR body maintained by Bunny.
Update bundled engine.mjs and client assets with the published Release URL, SHA-256, size and version; enable the user-triggered download button. Payload 69 files / 1,239,060 bytes; SHA-256 matches source build; community check 0 errors.
- Rebuild client bundle from source commit f66e6bc: ready-state redownload action replaces the fake update-check button; engine.mjs gains force download with atomic replace + rollback; proxy.mjs gains POST /miniapp/engine/redownload. - Drop 32 stale hashed client assets from the previous build and add the new ones; package stays 69 files / 1,240,598 bytes. All 59 payload files match dist-miniapp byte-for-byte (SHA-256), zero stale. - README.md: state --fast 11/11 and --full 14/14 separately instead of a single gate figure. Community check: 0 errors, 2 pre-existing warnings (NODE_RESERVED_ROUTE for the Host-reserved /__mavis/ prefix; NODE_UNGUARDED_SERVER for sidecar.mjs net.createServer used only by freePort; actual listen is node:http in server.mjs). No push, no PR, no community publish.
- README.md: add ## References at the end; README.zh-CN.md: add the matching ## 引用. Both list only the third-party components whose license files are actually present in this package, copied verbatim from NOTICE/licenses. - State the on-demand engine model in the wording supplied for this change: no engine binary is bundled, download runs only on user choice via this project's HTTPS Release, and installation is checked against a fixed hash. - No other section, manifest, code, icon, or package file was touched. npm run check: package 0 errors, 2 pre-existing warnings; suite 113 pass / 0 fail / 2 skipped. No push, no fork, no PR.
- Fix the opening sentence of both reference sections: the named components are linked by the on-demand engine; only their license texts and notices ship with this package. No code or resource file for them is in the payload. - Component entries and the closing engine paragraph stay byte-identical. - No other section or file was touched. npm run check: package 0 errors, 2 pre-existing warnings; suite 113 pass / 0 fail / 2 skipped. No push, no fork, no PR.
…ontend license audit\n\n- engine: unique .old-<ts> backup; only two renames are critical; cleanup best-effort with visible notice; ready keeps error text; injectable unlink/rename for tests\n- tests: 2 new EPERM cases + strengthened hash-mismatch assertion; mutation verified (2 fail when fix reverted)\n- ui: downloader/settings labels neutralized (values/keys/env untouched); engine panel shows notice and ready-state error\n- licenses: audit 22 bundled frontend packages; add licenses/frontend + NOTICE section 7; @juggle/resize-observer 3.4.0 is Apache-2.0 (non-MIT) with its text\n- community check: 0 errors, 2 pre-existing warnings; 115 tests, 113 pass, 0 fail, 2 skipped
…play names\n\n- README.md / README.zh-CN.md: engine product name and Microsoft in user-visible prose replaced with neutral wording; config keys, values, path-resolution facts and References section untouched\n- rebuilt client: SettingsView label "biliup-cli path" -> neutral "engine CLI path (read-only)"; field and readonly attribute unchanged\n- verification: web typecheck 0, gates fast 11/11 0, build-miniapp 0, community check 0 errors (115 tests, 113 pass, 0 fail, 2 skipped)\n- mutation re-run with current 12-case test file: defective 9 pass/3 fail exit 1 (two EPERM cases red), restored 12 pass/0 fail exit 0; assertions unchanged
- 根 README.md / README.zh-CN.md:Live Stream Recorder 表格行改为「引擎在你同意后 按需下载」,不含第三方引擎产品名;其余行列一字未动。 - 包内 README.md / README.zh-CN.md 的 State location:写明持久配置在宿主 dataDir, 独立启动落到包内 .data/,且无环境变量可改写这两处位置。 - 包内 miniapp/node/server.mjs(构建产物副本):与源同步,去掉 AMOEBA_PLUGIN_ROOT 覆盖,逐字节一致。 社区 npm run check:本包 0 errors / 2 warnings(即约定保留的 /__mavis/ 404 守卫与 net 探端口两条);全局 tests 115 / pass 113 / fail 0 / skipped 2。 仅本地提交,未推送、未建 PR、未 rebase/merge main。
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.
Live Stream Recorder is a native MiniMax Code Mini App that turns a recording engine into a desktop-style workbench: monitor multiple livestream rooms, record them with danmaku capture, replay and clip recordings, back up short videos, and manage relay tasks -- all inside the chat client. The package ships the workbench only. The recording engine is not bundled; the Mini App detects that it is missing, asks whether to download it, and installs it only after you agree.
This contribution adds the complete, self-contained package under
plugins/charlesnty612/live-stream-recorder/and one row at the top of each root README, with no executable, shared library or native module of any kind.On-demand recording engine
https://github.com/charlesnty612/live-stream-recorder/releases/download/engine-v1.1.3/engine-windows-x64.exe, pinned to versionengine-v1.1.3, 100,927,488 bytes, SHA-2561a4f9ee255b396b84991a9ea3088f66909d6199916bcdbee546fbfdfc1945c20..partfile, verify SHA-256, atomically replace, restart the engine. If the digest does not match, the previous engine is kept and the.partfile is deleted. Download is offered only on Windows x64 and only when free space covers the engine plus a reserve.Tested environment and results
engines.mcode: ">=3.1.20"andpermissions.device: ["notifications"], both first available in 3.1.20.publish->inspect->open) exercised: cold start and readiness in 400-465 ms with noREADINESS_TIMEOUT; Host-reserved/__mavis/returning 401 with no SPA fallback; private-route 404 interception; loopback-only network activity with zero external requests; the 584 px narrow-screen layout and both themes; Settings diagnostics and the notification permission controls. One defect found during acceptance (a missingmcpServers: []manifest field that blocked publish) was fixed and re-verified. The browser console showed 0 errors.readywith no error. The Host refused deletion of the replaced engine's backup; the package kept the backup, stayedready, and showed a notice containing the backup path.master(2026-12-06, after the last change in this PR):node --test npm/tests/*.test.cjs14/14 (EXIT=0);npm run typecheck(EXIT=0);node scripts/build-miniapp.mjs(EXIT=0, structure self-check and clean-source gate OK);node scripts/gates.mjs --full14/14 (EXIT=0). No Rust compilation was run for this PR;cargo build/cargo testwere not executed.npm run check(EXIT=0): this package reports 0 errors, 2 warnings (both explained below). Tests: 115 total, 113 pass, 0 fail, 2 skipped (case-insensitive filesystem checks, skipped on this machine's filesystem).Behavior not verified at runtime
disposepath is implemented, but no engine process existed to terminate).fileHandlers.Known issues (not fixed in this PR)
.tile-hint) measures 1.63-3.03:1 contrast, below WCAG AA.npm run checkwarnings (explained, not fixed)NODE_RESERVED_ROUTEinminiapp/node/proxy.mjs. The code mentions/__mavis/only to explicitly return 404 for that prefix so the workbench never registers a route there or SPA-falls-back onto a Host-reserved path. Acceptance confirmed the Host guard returned 401, not the plugin. The warning is triggered by the defensive mention and is intentional.NODE_UNGUARDED_SERVERinminiapp/node/sidecar.mjs. Thenetandtlsimports are used for outbound WebSocket passthrough (net.connect/tls.connect) to the upstream engine and for a short-livednet.createServer()on127.0.0.1:0that only selects a free port and is immediately closed. The package's only listener isnode:httpinserver.mjs, bound tocontext.listen, so the Host loopback guard applies. No unguarded server servescontext.listen.port.Declared access
permissions.device: ["notifications"]-- the Settings page readsNotification.permissionand callsNotification.requestPermission()only when the user clicks "Enable system notifications". Nothing else is granted: noagent,session,tool,connector,host, microphone, or camera access;apps,mcpServers, andskillsare empty.fileHandlers:.flv,.mp4,.mkv,.webm,.xml. The Host delivers a file path, Node registers it as an opaque in-memory token (10-minute TTL), and the page reads it by token only; the path is never echoed back.context.listen. Sidecar mode connects tohttp://127.0.0.1:<free-port>; remote mode connects to the user-configuredbaseUrl. Outbound traffic goes to that one engine: a reverse proxy for/v1/,/bili/,/static/, WebSocket/v1/ws/*, and a three-second/v1/activity-eventspoll. The only other destination is the engine download URL above, and only after the user asks for it. No third-party host is contacted from the page.context.dataDir/miniapp-config.jsonis created and written when configuration changes (mode0600where supported), holding the connection mode, optional engine and media-tool paths, and remote settings; secret fields are blanked in API responses and replaced withhas*flags. A downloaded engine is installed as<dataDir>/bin/under its original filename; a replaced engine is kept as a uniquely named backup. Pages read only their own static assets and tokenized recordings.context.dataDir. When the Host provides no data directory (standalone start), it falls back to.data/inside the package directory. No environment variable can redirect either location; the source repository has a regression test that starts the package with the former plugin-root environment variable pointed at another directory and asserts the data directory does not move.--helpcapability probe, a PATH lookup by executable name, and a process-tree termination only as a shutdown fallback. Any media tooling the engine needs is launched by the engine itself, not by this package.window.miniapp.host.composer.appendto place redacted diagnostics or a clip-plan prompt into the chat input for the user to review and send. The clip-plan prompt mentions MCP tool names, but this package declares no MCP servers and calls no tools itself. No conversation is read.Written by MiniMax-M4
Package layout and size
92 files, 1,287,692 bytes (about 1.23 MiB), zero executables. No
node_modules, VCS metadata, caches, logs, PID files, temporary files, OS metadata, or Host runtime state.Third-party components and redistribution
No precompiled binary is included. The recording engine is downloaded on demand from this project's GitHub Release and is not redistributed in this package. The built client bundles open-source front-end dependencies into minified JavaScript;
NOTICEandlicenses/carry their attribution and license texts, includinglicenses/frontend/with a manifest that maps each bundled dependency to its license file. The engine that is downloaded links the third-party components listed in the package README's References section; their license texts ship underlicenses/. No copyleft (GPL/AGPL) component is bundled in this package.Sensitive-information scan of the copied package
Every text file in the contribution directory was read and searched for credentials, private endpoints, personal data, and real business data. Findings, all benign and none changed:
token,authorization,cookie,secret,desktopToken,appPassword) appear only as variable names, redaction regexes, and comments in the Node modules. No value is present; secrets are generated at runtime or supplied by the user.FORBIDDENliteral scan: one hit inproxy.mjs,'/v1/' + 'membership', which is a concatenation-style 404 interceptor for private routes, not a private endpoint. No external private domain in the payload.169.254.0.0/16inconfig.mjsis a cloud-metadata SSRF guard, not an internal network address in use.BEGIN ... PRIVATE KEY, no token-shaped string (sk-,ghp_,github_pat, etc.), no/Users/or user-specific absolute path, no personal name or real business record, no log or screenshot in the package.Consistency checks
diff).miniapp/miniapp.jsondeclares exactly the access the code uses: the only browser-permission call is theNotificationAPI, and it is covered bypermissions.device: ["notifications"].npm run checkreported noACCESS_UNDECLARED.miniapp/clientoutput plus source Node modules; it needs no build step at install time and works on its own without other repository directories.Scope of this PR
Only
plugins/charlesnty612/live-stream-recorder/and one row at the top ofREADME.mdandREADME.zh-CN.mdare added. No existing plugin, check, or script is modified. The branch is based on currentmainwith linear history and no merge commits.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.