@longzai-intelligence-oxlint/architecture-plugin 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -11
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,17 +1,15 @@
1
1
  # @longzai-intelligence-oxlint/architecture-plugin
2
2
 
3
- ## 意图
3
+ Longzai Intelligence Oxlint 的架构治理插件,在静态检查阶段守护生态的架构边界。
4
4
 
5
- 在静态检查阶段守护 Longzai Intelligence 生态的架构边界,防止依赖方向倒置、跨层泄漏与不安全的跨包导入。
5
+ ## 简介
6
6
 
7
- ## 定位
7
+ 治理架构边界失守的问题:依赖方向倒置、跨层泄漏、不安全的跨包导入与 Electron 进程隔离违规等约束在静态检查阶段固化,防止架构边界被逐步侵蚀;各技术栈的业务规则不在本插件族承载。
8
8
 
9
- Oxlint 生态的架构治理插件,按 core、domain、electron、library 四个子插件组织,是组织内最核心的架构约束载体。
9
+ ## 能力
10
10
 
11
- ## 职能
12
-
13
- core 子插件负责依赖方向、业务泄漏、实现包导入限制、导出控制、导出合规性、跨包相对导入禁止、按路径限制调用与导入等通用架构规则;domain 子插件负责 DDD 域实体命名、Port-Adapter 实现、域导出、域 TypeORM 导入、层 README 必备等域层规则;electron 子插件负责 IPC 通道类型化、IPC 结果解包、暴露安全 API、平台泄漏、unsafe electron API 暴露、renderer 实现禁入、generic IPC bridge 暴露、preload 内 ipcRenderer 直连、custom IPC utility 等规则;library 子插件负责测试文件放置、测试文件与源文件匹配、测试目录无非测试文件等规则。
14
-
15
- ## 实现情况
16
-
17
- 四类子插件均已实现并对外分别导出,完整插件聚合所有规则统一注册为 `@longzai-intelligence/architecture`;规则数量与覆盖范围在生态内最为完整,且配套 recommended-core 与 recommended-library 配置入口。
11
+ - core 子插件:依赖方向、业务泄漏、实现包导入限制、导出控制与合规、跨包相对导入禁止、按路径限制调用与导入等通用架构规则
12
+ - domain 子插件:DDD 域实体命名、Port-Adapter 实现、域导出、域 TypeORM 导入、层 README 必备等域层规则
13
+ - electron 子插件:IPC 通道类型化、IPC 结果解包、暴露安全 API、平台泄漏、unsafe electron API 暴露、renderer 实现禁入、generic IPC bridge 暴露、preload 内 ipcRenderer 直连、custom IPC utility 等 Electron 进程隔离与 IPC 安全规则
14
+ - library 子插件:测试文件放置、测试文件与源文件匹配、测试目录无非测试文件等测试目录结构规则
15
+ - 完整插件聚合全部规则统一注册为 `@longzai-intelligence/architecture`,并配套 recommended-core 与 recommended-library 配置入口
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-oxlint/architecture-plugin",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "dist"
@@ -31,10 +31,10 @@
31
31
  "typecheck:test": "lzi-tsgo typecheck tsconfig/test.json"
32
32
  },
33
33
  "dependencies": {
34
- "@longzai-intelligence-oxlint/architecture-core-plugin": "0.1.18",
35
- "@longzai-intelligence-oxlint/architecture-domain-plugin": "0.1.18",
36
- "@longzai-intelligence-oxlint/architecture-electron-plugin": "0.1.18",
37
- "@longzai-intelligence-oxlint/architecture-library-plugin": "0.1.18",
34
+ "@longzai-intelligence-oxlint/architecture-core-plugin": "0.1.19",
35
+ "@longzai-intelligence-oxlint/architecture-domain-plugin": "0.1.19",
36
+ "@longzai-intelligence-oxlint/architecture-electron-plugin": "0.1.19",
37
+ "@longzai-intelligence-oxlint/architecture-library-plugin": "0.1.19",
38
38
  "@oxlint/plugins": "^1.74.0"
39
39
  },
40
40
  "devDependencies": {