@noob-stupid/dsh-plugin-console 0.5.13 → 0.5.14

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.
@@ -13,7 +13,7 @@ import { frameworkCheckPromptText } from './compat.js'
13
13
  import { compFind, compUpsert } from './components.js'
14
14
  import { jobLog, waitHealth } from './jobs.js'
15
15
  import { gitCloneUrls } from './sources.js'
16
- import { buildPnpmEnv, execFileAsync, gitEnv, resolvePnpmRunners, runPnpmWithFallback } from '../infra/exec.js'
16
+ import { buildPnpmEnv, execFileAsync, execFileWithKillTree, gitEnv, resolvePnpmRunners, runPnpmWithFallback } from '../infra/exec.js'
17
17
  import { maskUrl } from '../infra/mask.js'
18
18
 
19
19
  /**
@@ -173,7 +173,7 @@ async function aiEmpowerPlan(job, ports, profileDir) {
173
173
  mkdirSync(srcDir, { recursive: true })
174
174
  for (const url of gitCloneUrls(job.source)) {
175
175
  try {
176
- await execFileAsync('git', ['clone', '--depth', '1', '--quiet', url, srcDir], { timeout: 120000, windowsHide: true, env: gitEnv() })
176
+ await execFileWithKillTree('git', ['clone', '--depth', '1', '--quiet', url, srcDir], { timeout: 120000, windowsHide: true, env: gitEnv() })
177
177
  materialDir = srcDir
178
178
  break
179
179
  } catch {}
@@ -5,7 +5,7 @@ import { readFileSync, writeFileSync, mkdirSync } from 'node:fs'
5
5
  import { spawn } from 'node:child_process'
6
6
  import { dirname } from 'node:path'
7
7
  import { homedir } from 'node:os'
8
- import { execFileAsync, processAlive } from '../infra/exec.js'
8
+ import { execFileAsync, execFileWithKillTree, processAlive } from '../infra/exec.js'
9
9
  import { componentsFile } from '../infra/paths.js'
10
10
 
11
11
  function findComponents() {
@@ -5,7 +5,7 @@ import { readFileSync, writeFileSync, existsSync, rmSync, readdirSync, mkdirSync
5
5
  import { dirname, join } from 'node:path'
6
6
  import { tmpdir } from 'node:os'
7
7
  import { gitCloneUrls } from './sources.js'
8
- import { execFileAsync, gitEnv } from '../infra/exec.js'
8
+ import { execFileAsync, execFileWithKillTree, gitEnv } from '../infra/exec.js'
9
9
  import { copyTree } from '../infra/fsx.js'
10
10
  import { GITHUB_RAW, curlJson, curlText, rawTextWithFallback } from '../infra/http.js'
11
11
  import { dshHome } from '../infra/paths.js'
@@ -91,7 +91,7 @@ async function runSkillInstallJob(job) {
91
91
  let lastError = null
92
92
  for (const url of urls) {
93
93
  try {
94
- await execFileAsync('git', ['clone', '--depth', '1', '--quiet', url, tmpDir], {
94
+ await execFileWithKillTree('git', ['clone', '--depth', '1', '--quiet', url, tmpDir], {
95
95
  timeout: 120000,
96
96
  windowsHide: true,
97
97
  env: gitEnv(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noob-stupid/dsh-plugin-console",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "DSH 框架升级安全与插件升级门控:一键升级、失败自动回滚、升级后回滚上版、旧插件不适配自动禁用;内置多源插件市场为发现层,插件源全部可自定义,可指向公司内网私有源 / 私有索引 / 本地 Git 仓库,纯内网离线可用 | Framework upgrade safety & plugin version gating for DSH, with a customizable multi-source plugin market: point every source at internal mirrors or a local file:// repo for intranet-only, offline installs.",
5
5
  "repository": {
6
6
  "type": "git",