@noob-stupid/dsh-plugin-console 0.3.49 → 0.3.50

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/README.md CHANGED
@@ -308,7 +308,7 @@ MIT
308
308
 
309
309
  The layered-refactor preview lives in its **own repository**: [**`Noob-stupid/dsh-plugin-hub-refactor`**](https://github.com/Noob-stupid/dsh-plugin-hub-refactor)
310
310
 
311
- - **What it is**: the monolithic `lib/index.js` (7637 lines) split into layers — `lib/index.js` **142 lines** + `lib/server/**` **36 modules**; **feature-equivalent to `0.3.49`**, maintainability only;
311
+ - **What it is**: the monolithic `lib/index.js` (7637 lines) split into layers — `lib/index.js` **142 lines** + `lib/server/**` **36 modules**; **feature-equivalent to `0.3.50`**, maintainability only;
312
312
  - **Verified**: 18 test suites green · 8 architecture-guard assertions · **47/47 routes identical** (`status` + response fields) against the stable build;
313
313
  - **Not yet exercised**: real framework upgrade / rollback, restart guardian, real install/uninstall, component start/stop, real AI run, Gitee OAuth (~10–25% long-tail risk, subjective);
314
- - **For everyday use** stick to npm `@noob-stupid/dsh-plugin-console@0.3.49`, or `main` of this repo.
314
+ - **For everyday use** stick to npm `@noob-stupid/dsh-plugin-console@0.3.50`, or `main` of this repo.
package/README.zh.md CHANGED
@@ -275,8 +275,8 @@ MIT
275
275
 
276
276
  分层重构预览线在**独立仓库**:[**`Noob-stupid/dsh-plugin-hub-refactor`**](https://github.com/Noob-stupid/dsh-plugin-hub-refactor)
277
277
 
278
- - **它是什么**:把单体 `lib/index.js`(7637 行)拆成分层结构 —— `lib/index.js` **142 行** + `lib/server/**` **36 个模块**,**功能与 `0.3.49` 等价**,只为可维护性;
278
+ - **它是什么**:把单体 `lib/index.js`(7637 行)拆成分层结构 —— `lib/index.js` **142 行** + `lib/server/**` **36 个模块**,**功能与 `0.3.50` 等价**,只为可维护性;
279
279
  - **已验证**:18 套测试全绿 · 8 条架构守卫断言 · 与稳定版逐条对打 **47 条路由,`status` + 响应字段 47/47 一致**;
280
280
  - **尚未实测**:真框架升级 / 真回滚、重启守护链路、真装真卸、组件进程启停、AI 真跑、Gitee OAuth 回调(长尾风险主观估计 **10%~25%**);
281
- - **日常使用请继续用**:npm `@noob-stupid/dsh-plugin-console@0.3.49`,或本仓库 `main`。
281
+ - **日常使用请继续用**:npm `@noob-stupid/dsh-plugin-console@0.3.50`,或本仓库 `main`。
282
282
  - 请多反馈问题
package/lib/index.js CHANGED
@@ -593,7 +593,7 @@ async function removeBundleFromManifest(profileDir, bundlePkg) {
593
593
 
594
594
  /** 用 corepack pnpm 移除包(与安装同一管理器与凭据抑制环境)。
595
595
  * 注意:pnpm remove 不支持 --registry 选项,去掉避免静默失败。 */
596
- async function pnpmRemove(profileDir, packageName) {
596
+ export async function pnpmRemove(profileDir, packageName) {
597
597
  const args = ['remove', packageName]
598
598
  const opts = {
599
599
  cwd: profileDir,
@@ -2397,7 +2397,7 @@ export function packageProbeErrorText(repo, branch, reason) {
2397
2397
  * profile 目录由 pnpm 管理;若用 npm 写入会与 pnpm 的目录重建互相破坏
2398
2398
  * (曾导致入口链接丢失、DSH 启动崩溃)。registry 走国内镜像。
2399
2399
  */
2400
- async function pnpmInstall(profileDir, spec, registry = 'https://registry.npmmirror.com', timeout = 90000, signal = null) {
2400
+ export async function pnpmInstall(profileDir, spec, registry = 'https://registry.npmmirror.com', timeout = 90000, signal = null) {
2401
2401
  const args = ['add', spec, '--registry', registry]
2402
2402
  const opts = {
2403
2403
  cwd: profileDir,
@@ -3059,7 +3059,7 @@ export function summarizeCloneErrors(errors) {
3059
3059
  }
3060
3060
 
3061
3061
  /** git clone(镜像→直连;gitee 直连),返回 { url } 或抛错。 */
3062
- async function gitCloneRepo(repo, dest, source = 'github', timeout = 180000) {
3062
+ export async function gitCloneRepo(repo, dest, source = 'github', timeout = 180000) {
3063
3063
  const urls = gitCloneUrls(repo, source)
3064
3064
  const errors = []
3065
3065
  for (const [attempt, url] of urls.entries()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noob-stupid/dsh-plugin-console",
3
- "version": "0.3.49",
3
+ "version": "0.3.50",
4
4
  "description": "DSH plugin management panel & marketplace: one-click enable/disable, multi-source market (GitHub/Gitee/custom), static-index market (500+ plugins / 300 skills), skills, suites, and one-click framework upgrade.",
5
5
  "repository": {
6
6
  "type": "git",