@3-/srv 0.1.9 → 0.1.10
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.
- package/CHANGELOG.md +7 -0
- package/README.md +15 -0
- package/install.js +0 -4
- package/package.json +1 -1
- package/uninstall.js +0 -4
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @3-/srv
|
|
2
|
+
|
|
3
|
+
跨平台系统服务注册与管理入口。
|
|
4
|
+
|
|
5
|
+
本模块为门面(Facade)包。它通过识别当前的 `process.platform`,在运行时动态桥接调用底层具体的系统服务控制器模块予以实施:
|
|
6
|
+
|
|
7
|
+
- **macOS**:委派至 `@3-/srv-darwin` (LaunchAgent `user` 域守护后台进程)
|
|
8
|
+
- **Linux**:委派至 `@3-/srv-linux` (systemd `user` 级自启服务)
|
|
9
|
+
- **Windows**:委派至 `@3-/srv-win32` (schtasks `ONLOGON` 事件监听触发器)
|
|
10
|
+
|
|
11
|
+
## 特性
|
|
12
|
+
|
|
13
|
+
- 采用硬编码重构锁定基于不同操作系统的底层 `zx` 命令行解释器(macOS/Linux 固定映射 `bash`,Windows 固定使用原生的 `cmd.exe`),彻底阻断各个服务器环境衍生出的默认终端歧义与未知注入。
|
|
14
|
+
- 保证包含绝大宽度全角字符、特殊空格、多语系中文字符的路径均能在底层完美被逃逸和吞咽执行。
|
|
15
|
+
- 尽可能挖掘与降级免管理员(无 `sudo`)权限下最早启动系统常驻进程的能力,做到极度平滑的静默代码部署。
|
package/install.js
CHANGED
package/package.json
CHANGED