mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix AF-2692 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added comprehensive Windows support for audio and application capture, including real-time microphone usage detection, combined microphone and system audio recording, and application state monitoring. - The "meetings" setting is now enabled on Windows as well as macOS. - Conditional UI styling and attributes introduced for Windows environments in the Electron renderer. - **Bug Fixes** - Enhanced file path handling and validation for Windows in Electron file requests. - **Refactor** - Unified application info handling across platforms by consolidating types into a single `ApplicationInfo` structure. - Updated native module APIs by removing deprecated types, refining method signatures, and improving error messages. - Streamlined audio tapping APIs to use process IDs and consistent callback types. - **Documentation** - Added detailed documentation for the Windows-specific audio recording and microphone listener modules. - **Chores** - Updated development dependencies in multiple packages. - Reorganized and added platform-specific dependencies and configuration for Windows support. <!-- end of auto-generated comment: release notes by coderabbit.ai --> #### PR Dependency Tree * **PR #12615** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) --------- Co-authored-by: LongYinan <lynweklm@gmail.com>
42 lines
976 B
JSON
42 lines
976 B
JSON
{
|
|
"name": "@affine/server-native",
|
|
"version": "0.21.0",
|
|
"engines": {
|
|
"node": ">= 10.16.0 < 11 || >= 11.8.0"
|
|
},
|
|
"main": "./index.js",
|
|
"module": "./index.js",
|
|
"types": "index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"require": "./server-native.node",
|
|
"import": "./index.js",
|
|
"types": "./index.d.ts"
|
|
}
|
|
},
|
|
"napi": {
|
|
"binaryName": "server-native",
|
|
"targets": [
|
|
"aarch64-apple-darwin",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-pc-windows-msvc",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"x86_64-unknown-linux-gnu"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"test": "node --test ./__tests__/**/*.spec.js",
|
|
"bench": "node ./benchmark/index.js",
|
|
"build": "napi build --release --strip --no-const-enum",
|
|
"build:debug": "napi build"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "3.0.0-alpha.89",
|
|
"lib0": "^0.2.99",
|
|
"tiktoken": "^1.0.17",
|
|
"tinybench": "^4.0.0",
|
|
"yjs": "^13.6.21"
|
|
}
|
|
}
|