Commit Graph

724 Commits

Author SHA1 Message Date
手瓜一十雪
d344f3ac6c Add build script for plugin-builtin package
Introduces a new npm script 'build:plugin-builtin' to build the napcat-plugin-builtin package using pnpm.
2026-01-22 14:51:21 +08:00
手瓜一十雪
656690874e Add convertToNTSilkTct to FFmpeg adapters and update usage (#1517)
Introduces the convertToNTSilkTct method to FFmpeg adapter interfaces and implementations, updating audio conversion logic to use this new method for Silk format conversion. Refactors FFmpegService to rename convertFile to convertAudioFmt and updates related usages. Removes 'audio-worker' entry from vite configs in napcat-framework and napcat-shell. Also fixes a typo in appid.json.

Remove silk-wasm dependency and refactor audio handling

Eliminated the silk-wasm package and related code, including audio-worker and direct Silk encoding/decoding logic. Audio format conversion and Silk detection are now handled via FFmpeg adapters. Updated related OneBot actions and configuration files to remove all references to silk-wasm and streamline audio processing.
2026-01-13 16:18:32 +08:00
手瓜一十雪
e2ef1ddfc7 Remove vite-plugin-font from dependencies
Deleted the vite-plugin-font package from both the root and frontend package.json files as it is no longer required.
2025-12-24 18:29:17 +08:00
手瓜一十雪
5a5ae5a21d Remove unused dependencies and optimize Monaco workers
Removed @simplewebauthn/browser, framer-motion, and react-responsive from dependencies as they are no longer used. Updated Monaco editor configuration to only load the JSON worker for improved performance, falling back to the basic editor worker for other languages. Refactored the new version tip UI to use Chip and Spinner instead of Button and removed unused react-icons import. Also updated Vite config to stop sharing react-icons.
2025-12-24 15:32:21 +08:00
手瓜一十雪
e165c498a8 Move inversify and reflect-metadata to napcat-core
Transferred 'inversify' and 'reflect-metadata' dependencies from the root package.json to packages/napcat-core/package.json to better scope dependencies and improve project organization.
2025-11-15 16:23:03 +08:00
手瓜一十雪
26e84653d6 Add ESLint config and update code style
Introduced a new eslint.config.js using neostandard and added related devDependencies. Updated codebase for consistent formatting, spacing, and function declarations. Minor refactoring and cleanup across multiple files to improve readability and maintain code style compliance.
2025-11-15 16:21:59 +08:00
手瓜一十雪
fd0febb47b Add napcat-test package and Vitest setup
Introduces the napcat-test package with initial SHA-1 stream tests, configuration files, and scripts for running tests. Updates root package.json to include test commands and Vitest dependencies, and adds Vitest configuration at the root and package level for test environment setup.
2025-11-15 16:05:09 +08:00
手瓜一十雪
bce329232a Refactor TypeScript configs to use shared base
Introduced tsconfig.base.json for shared TypeScript configuration and updated all package tsconfig.json files to extend from it, reducing duplication and improving maintainability. Also updated typecheck script in package.json and fixed import in prebuild-loader.ts.
2025-11-15 14:00:27 +08:00
手瓜一十雪
43441f285b feat: 所有的类型检查 2025-11-15 12:57:19 +08:00
手瓜一十雪
550880a8ae Add service handler registration and DI support
Introduces dependency injection via Inversify and reflect-metadata, adds a service handler registry for packet handling, and updates core initialization to auto-register and bind service handlers. Also updates Vite configs and auto-include logic to support protocol service files.
2025-11-14 22:20:33 +08:00
手瓜一十雪
41c953f2f8 Add dev build script and improve Vite config
Introduces a 'build:shell:dev' script for development builds and updates napcat-shell's Vite config to conditionally enable source maps in development mode. This enhances build flexibility for development and production environments.
2025-11-14 21:25:29 +08:00
手瓜一十雪
eaa23b4719 feat: 装饰器与装饰器路由注册 2025-11-14 19:49:13 +08:00
手瓜一十雪
4f850cd4dc Replace nap-proto-core with napcat-protobuf package
Switched all imports from '@napneko/nap-proto-core' to the new 'napcat-protobuf' package across napcat-core and related packages. Updated dependencies and references to support the new package structure, improving maintainability and workspace integration.
2025-11-14 16:19:26 +08:00
手瓜一十雪
e741729de8 Add napcat-develop package and update scripts
Introduces the napcat-develop package with its own package.json and tsconfig.json. Updates build and dev scripts in the root package.json, modifies loadNapCat.cjs to adjust paths and output directories, and updates nodeTest.ps1 to use the correct script path.
2025-11-13 19:30:33 +08:00
手瓜一十雪
7b65fa581a feat: 以后仅维护napCatVersion 2025-11-13 16:14:31 +08:00
手瓜一十雪
ed19c52f25 refactor: 整体重构 (#1381)
* feat: pnpm new

* Refactor build and release workflows, update dependencies

Switch build scripts and workflows from npm to pnpm, update build and artifact paths, and simplify release workflow by removing version detection and changelog steps. Add new dependencies (silk-wasm, express, ws, node-pty-prebuilt-multiarch), update exports in package.json files, and add vite config for napcat-framework. Also, rename manifest.json for framework package and fix static asset copying in shell build config.
2025-11-13 15:39:42 +08:00
Mlikiowa
e926803d14 release: v4.9.42 2025-11-13 02:48:59 +00:00
Mlikiowa
8a9795296d release: v4.9.41 2025-11-13 01:28:44 +00:00
Mlikiowa
680432bb81 release: v4.9.40 2025-11-12 05:38:39 +00:00
Mlikiowa
27ad435fb2 release: v4.9.38 2025-11-12 04:20:16 +00:00
Mlikiowa
1b82fa0139 release: v4.9.36 2025-11-11 12:30:58 +00:00
Mlikiowa
97c836efeb release: v4.9.35 2025-11-10 04:04:07 +00:00
Mlikiowa
86ee2082e0 release: v4.9.33 2025-11-09 04:54:38 +00:00
Mlikiowa
6c27dddb55 release: v4.9.32 2025-11-08 04:26:49 +00:00
Mlikiowa
6661934888 release: v4.9.30 2025-11-08 02:30:01 +00:00
Mlikiowa
558b8a7e28 release: v4.9.29 2025-11-07 12:01:08 +00:00
Mlikiowa
6f264ba2ba release: v4.9.28 2025-11-07 11:35:58 +00:00
Mlikiowa
ad4d228353 release: v4.9.27 2025-11-07 09:05:14 +00:00
Mlikiowa
42a70e73b4 release: v4.9.26 2025-11-06 15:15:20 +00:00
手瓜一十雪
e8e41f573b feat: add Node NapCat Test 2025-11-06 17:57:57 +08:00
Mlikiowa
c8a8739633 release: v4.9.25 2025-11-04 13:55:32 +00:00
Mlikiowa
d8c6ffa7b6 release: v4.9.24 2025-11-04 09:53:36 +00:00
Mlikiowa
4733dd2d16 release: v4.9.23 2025-11-03 15:18:57 +00:00
Mlikiowa
cddb0b7f2f release: v4.9.22 2025-11-03 15:13:03 +00:00
时瑾
2185a884b4 refactor: 优化eslint配置,提升代码质量 (#1341)
* feat: 统一并标准化eslint

* lint: napcat.webui

* lint: napcat.webui

* lint: napcat.core

* build: fix

* lint: napcat.webui

* refactor: 重构eslint

* Update README.md
2025-11-03 16:30:45 +08:00
Mlikiowa
c9b1d3fafa release: v4.9.21 2025-11-02 13:33:28 +00:00
Mlikiowa
bb8814e777 release: v4.9.20 2025-11-02 03:30:09 +00:00
Mlikiowa
47805276da release: v4.9.19 2025-11-01 15:23:54 +00:00
Mlikiowa
62fa407530 release: v4.9.18 2025-11-01 13:54:19 +00:00
Mlikiowa
726603acbc release: v4.9.17 2025-11-01 10:43:55 +00:00
Mlikiowa
5cfd010345 release: v4.9.16 2025-11-01 08:19:18 +00:00
Mlikiowa
fb58c03da1 release: v4.9.15 2025-11-01 06:08:11 +00:00
Mlikiowa
b677b2e1ad release: v4.9.14 2025-10-31 08:53:45 +00:00
Mlikiowa
659d97e295 release: v4.9.13 2025-10-31 07:15:49 +00:00
Mlikiowa
e68234a77a release: v4.9.11 2025-10-31 06:43:40 +00:00
Mlikiowa
5848d6b8a2 release: v4.9.10 2025-10-31 04:38:12 +00:00
Mlikiowa
b82d63bd76 release: v4.9.9 2025-10-30 16:08:57 +00:00
Mlikiowa
562bb353ec release: v4.9.8 2025-10-30 14:28:31 +00:00
Mlikiowa
cd76f6194f release: v4.9.7 2025-10-30 13:56:19 +00:00
Mlikiowa
19dc97bd18 release: v4.9.6 2025-10-30 13:49:11 +00:00