xinghe-muse 0.0.0-stage → 2.3.0
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 +184 -2
- package/cordis.patch.yml +4 -0
- package/docs/DETAIL.md +198 -0
- package/icon.svg +14 -0
- package/install.ps1 +40 -0
- package/install.sh +27 -0
- package/lib/drive.mjs +104 -0
- package/lib/index.js +624 -0
- package/lib/platform.mjs +176 -0
- package/lib/run-muse.mjs +565 -0
- package/lib/setup.mjs +235 -0
- package/lib/stitch.swift +89 -0
- package/locale/en.json +8 -0
- package/locale/zh.json +8 -0
- package/package.json +43 -4
package/lib/setup.mjs
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* xinghe-muse 的一键依赖安装 —— 把 ego lite 装到这台机器上。
|
|
3
|
+
*
|
|
4
|
+
* 作者:星禾
|
|
5
|
+
*
|
|
6
|
+
* node lib/setup.mjs 装(已经装了就只做体检)
|
|
7
|
+
* node lib/setup.mjs --check 只体检,不下载不装
|
|
8
|
+
*
|
|
9
|
+
* 干的事,按顺序:
|
|
10
|
+
* 1. 认平台与架构,挑对应的官方安装包
|
|
11
|
+
* 2. 已经装好且 ego-browser 能跑 → 直接收工
|
|
12
|
+
* 3. 下载到临时目录,边下边算 SHA256,和内置值对不上就丢弃
|
|
13
|
+
* 4. 静默安装(Windows 免 UAC,只装当前用户)
|
|
14
|
+
* 5. 重新定位 ego-browser,报告结果
|
|
15
|
+
*
|
|
16
|
+
* 只认官方 CDN。装的是浏览器本体,不含任何 muse 侧的东西;登录仍然要人工做一次。
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import { spawn } from 'node:child_process'
|
|
20
|
+
import { createHash } from 'node:crypto'
|
|
21
|
+
import { access, constants, mkdtemp, readFile, rm, stat } from 'node:fs/promises'
|
|
22
|
+
import { createWriteStream } from 'node:fs'
|
|
23
|
+
import { homedir, platform, tmpdir } from 'node:os'
|
|
24
|
+
import { join } from 'node:path'
|
|
25
|
+
import { pipeline } from 'node:stream/promises'
|
|
26
|
+
|
|
27
|
+
import { findEgoApp, findEgoBrowser, IS_MAC, IS_WIN, platformNote } from './platform.mjs'
|
|
28
|
+
|
|
29
|
+
const CHECK_ONLY = process.argv.includes('--check')
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 官方安装包清单。
|
|
33
|
+
*
|
|
34
|
+
* 地址在 lite.ego.app 的下载页里不直接给,藏在打包好的 JS 里;这几个是其中的直链。
|
|
35
|
+
* 大小与 SHA256 是 2026-11-26 实测值,用来确认拿到的文件没被换过。
|
|
36
|
+
* 大小写成 0 表示只比对能拿到的那部分校验信息。
|
|
37
|
+
*/
|
|
38
|
+
const PACKAGES = {
|
|
39
|
+
'darwin-arm64': {
|
|
40
|
+
url: 'https://cdn.ego.app/setup/macos/arm64/egolite.dmg',
|
|
41
|
+
bytes: 149089310,
|
|
42
|
+
sha256: '',
|
|
43
|
+
},
|
|
44
|
+
'darwin-x64': {
|
|
45
|
+
url: 'https://cdn.ego.app/setup/macos/x64/egolite.dmg',
|
|
46
|
+
bytes: 167776176,
|
|
47
|
+
sha256: '',
|
|
48
|
+
},
|
|
49
|
+
'win32-x64': {
|
|
50
|
+
url: 'https://cdn.ego.app/setup/windows/x64/egoliteSetup.exe',
|
|
51
|
+
bytes: 19251800,
|
|
52
|
+
sha256: '0141c57275285da833e63d9ad0488b341bfe2227c3979db78e62dc0315d7f2ee',
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const log = (msg) => process.stdout.write(`${msg}\n`)
|
|
57
|
+
|
|
58
|
+
function pkgKey() {
|
|
59
|
+
if (IS_MAC) return platform() === 'darwin' ? `darwin-${process.arch}` : ''
|
|
60
|
+
if (IS_WIN) return `win32-${process.arch}`
|
|
61
|
+
return ''
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** 已经能用就不用再装。 */
|
|
65
|
+
async function alreadyReady() {
|
|
66
|
+
const browser = await findEgoBrowser()
|
|
67
|
+
if (!browser) return null
|
|
68
|
+
return browser
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** 下载并算哈希;大小对不上直接失败。 */
|
|
72
|
+
async function download(spec, target) {
|
|
73
|
+
log(`下载 ${spec.url}`)
|
|
74
|
+
const res = await fetch(spec.url, { redirect: 'follow' })
|
|
75
|
+
if (!res.ok) throw new Error(`下载失败:HTTP ${res.status} ${res.statusText}`)
|
|
76
|
+
if (!res.body) throw new Error('下载失败:响应没有内容')
|
|
77
|
+
|
|
78
|
+
const hash = createHash('sha256')
|
|
79
|
+
let total = 0
|
|
80
|
+
const sink = createWriteStream(target)
|
|
81
|
+
// 逐块落盘并同步喂给哈希,避免再读一遍整个安装包。
|
|
82
|
+
const reader = res.body.getReader?.()
|
|
83
|
+
if (reader) {
|
|
84
|
+
for (;;) {
|
|
85
|
+
const { done, value } = await reader.read()
|
|
86
|
+
if (done) break
|
|
87
|
+
const buf = Buffer.from(value)
|
|
88
|
+
total += buf.length
|
|
89
|
+
hash.update(buf)
|
|
90
|
+
if (!sink.write(buf)) {
|
|
91
|
+
await new Promise((resolve) => sink.once('drain', resolve))
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
await new Promise((resolve, reject) => sink.end((err) => (err ? reject(err) : resolve())))
|
|
95
|
+
} else {
|
|
96
|
+
await pipeline(res.body, sink)
|
|
97
|
+
const bytes = await readFile(target)
|
|
98
|
+
total = bytes.length
|
|
99
|
+
hash.update(bytes)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const digest = hash.digest('hex')
|
|
103
|
+
log(` 拿到 ${total.toLocaleString()} 字节,sha256=${digest}`)
|
|
104
|
+
|
|
105
|
+
if (spec.bytes > 0 && total !== spec.bytes) {
|
|
106
|
+
throw new Error(`大小不符:期望 ${spec.bytes},实际 ${total}`)
|
|
107
|
+
}
|
|
108
|
+
if (spec.sha256 && digest !== spec.sha256) {
|
|
109
|
+
throw new Error(`校验失败:期望 ${spec.sha256},实际 ${digest}`)
|
|
110
|
+
}
|
|
111
|
+
return { total, digest }
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** 跑一个外部命令,实时把输出转出来。 */
|
|
115
|
+
function run(cmd, args, options = {}) {
|
|
116
|
+
return new Promise((resolve) => {
|
|
117
|
+
const child = spawn(cmd, args, { stdio: 'inherit', windowsHide: true, ...options })
|
|
118
|
+
child.on('close', (code) => resolve(code ?? -1))
|
|
119
|
+
child.on('error', (error) => {
|
|
120
|
+
log(` 起不来:${error.message}`)
|
|
121
|
+
resolve(-1)
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** macOS:挂载 DMG,把 .app 拷进目录,再卸载。 */
|
|
127
|
+
async function installMac(dmg) {
|
|
128
|
+
const mountPoint = await mkdtemp(join(tmpdir(), 'xinghe-muse-dmg-'))
|
|
129
|
+
log(`挂载 DMG → ${mountPoint}`)
|
|
130
|
+
const attached = await run('hdiutil', [
|
|
131
|
+
'attach', dmg,
|
|
132
|
+
'-nobrowse', '-quiet', '-noverify',
|
|
133
|
+
'-mountpoint', mountPoint,
|
|
134
|
+
])
|
|
135
|
+
if (attached !== 0) throw new Error('挂载 DMG 失败')
|
|
136
|
+
|
|
137
|
+
try {
|
|
138
|
+
const source = join(mountPoint, 'ego lite.app')
|
|
139
|
+
await access(source, constants.F_OK)
|
|
140
|
+
const destDir = join(homedir(), 'Applications')
|
|
141
|
+
await run('mkdir', ['-p', destDir])
|
|
142
|
+
const dest = join(destDir, 'ego lite.app')
|
|
143
|
+
log(`复制 ego lite.app → ${dest}`)
|
|
144
|
+
await rm(dest, { recursive: true, force: true })
|
|
145
|
+
const copied = await run('cp', ['-R', source, dest])
|
|
146
|
+
if (copied !== 0) throw new Error('复制 ego lite.app 失败')
|
|
147
|
+
// 从网上下载的包会被打上隔离标记,不清掉首次启动会被拦。
|
|
148
|
+
await run('xattr', ['-dr', 'com.apple.quarantine', dest])
|
|
149
|
+
log('完成')
|
|
150
|
+
} finally {
|
|
151
|
+
await run('hdiutil', ['detach', mountPoint, '-quiet'])
|
|
152
|
+
await rm(mountPoint, { recursive: true, force: true })
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Windows:走官方 stager 的静默开关。
|
|
158
|
+
*
|
|
159
|
+
* /silent 不带 --system-level 就是「只装当前用户、不弹 UAC」,
|
|
160
|
+
* 这样整套流程不需要管理员权限。
|
|
161
|
+
*/
|
|
162
|
+
async function installWin(exe) {
|
|
163
|
+
log('静默安装(仅当前用户,不弹 UAC)')
|
|
164
|
+
const code = await run(exe, ['/silent'])
|
|
165
|
+
if (code !== 0) throw new Error(`安装程序退出码 ${code}`)
|
|
166
|
+
log('完成')
|
|
167
|
+
|
|
168
|
+
// Omaha 是异步的:stager 退出时文件可能还没铺完,给一点时间再定位。
|
|
169
|
+
for (let i = 0; i < 60; i += 1) {
|
|
170
|
+
if (await findEgoBrowser()) return
|
|
171
|
+
await new Promise((resolve) => setTimeout(resolve, 2000))
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
async function main() {
|
|
176
|
+
log('xinghe-muse 依赖安装')
|
|
177
|
+
log(`平台 ${platform()} / ${process.arch}`)
|
|
178
|
+
|
|
179
|
+
const browser = await alreadyReady()
|
|
180
|
+
if (browser) {
|
|
181
|
+
log(`ego-browser 已就绪:${browser}`)
|
|
182
|
+
if (CHECK_ONLY) return report(true)
|
|
183
|
+
log('ego lite 已经装好了,不需要再装。')
|
|
184
|
+
log('下一步:打开 ego lite,登录 muse.ai,然后就可以出图了。')
|
|
185
|
+
return report(true)
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (CHECK_ONLY) {
|
|
189
|
+
log(`缺依赖:找不到 ego-browser。${platformNote()}`)
|
|
190
|
+
return report(false)
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const key = pkgKey()
|
|
194
|
+
const spec = PACKAGES[key]
|
|
195
|
+
if (!spec) {
|
|
196
|
+
log(`这台机器(${platform()} / ${process.arch})没有对应的安装包。`)
|
|
197
|
+
log('ego lite 目前只出 macOS 与 Windows 版;Linux 官方仍在路线图上。')
|
|
198
|
+
return report(false)
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const work = await mkdtemp(join(tmpdir(), 'xinghe-muse-'))
|
|
202
|
+
const suffix = IS_MAC ? '.dmg' : '.exe'
|
|
203
|
+
const file = join(work, `egoliteSetup${suffix}`)
|
|
204
|
+
|
|
205
|
+
try {
|
|
206
|
+
await download(spec, file)
|
|
207
|
+
const size = (await stat(file)).size
|
|
208
|
+
log(`落盘 ${file}(${size.toLocaleString()} 字节)`)
|
|
209
|
+
|
|
210
|
+
if (IS_MAC) await installMac(file)
|
|
211
|
+
else if (IS_WIN) await installWin(file)
|
|
212
|
+
} finally {
|
|
213
|
+
await rm(work, { recursive: true, force: true })
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const after = await findEgoBrowser()
|
|
217
|
+
if (after) {
|
|
218
|
+
log(`ego-browser 就绪:${after}`)
|
|
219
|
+
report(true)
|
|
220
|
+
} else {
|
|
221
|
+
log('装完了但没找到 ego-browser。可能装在非默认位置。')
|
|
222
|
+
log('把它所在的目录加进 PATH,或用环境变量 EGO_BROWSER_BIN 指到它的绝对路径。')
|
|
223
|
+
report(false)
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function report(ok) {
|
|
228
|
+
log('')
|
|
229
|
+
log(ok ? '体检结果:可用。' : '体检结果:还不可用。')
|
|
230
|
+
log(`ego lite:${platformNote()}`)
|
|
231
|
+
log('登录:打开 ego lite,在 muse.ai 上登录一次,之后出图出视频都不用再管它了。')
|
|
232
|
+
process.exitCode = ok ? 0 : 1
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
await main()
|
package/lib/stitch.swift
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 两段视频叠化拼接:把 b 叠在 a 的尾巴上,做 xfade + 音频交叉淡化,导出一条。
|
|
3
|
+
*
|
|
4
|
+
* 作者:星禾
|
|
5
|
+
*
|
|
6
|
+
* 用法:stitch <输出.mp4> <A.mp4> <B.mp4> [叠化秒=0.35]
|
|
7
|
+
*
|
|
8
|
+
* 两条实测教训:
|
|
9
|
+
* 1. 三段指令必须严格铺满时间轴、不许重叠(0–s 只有 A;s–e A 与 B 叠化;
|
|
10
|
+
* e–总长 只有 B)。指令一重叠就报 AVFoundationErrorDomain -11841 / OSStatus -17390
|
|
11
|
+
* "The video could not be composed",而且报得很含糊。
|
|
12
|
+
* 2. 视频叠化、音频也走交叉淡化;接缝那头正好是静音时,听感是干净的一句接一句。
|
|
13
|
+
*/
|
|
14
|
+
import Foundation
|
|
15
|
+
import AVFoundation
|
|
16
|
+
import CoreImage
|
|
17
|
+
|
|
18
|
+
let a = CommandLine.arguments
|
|
19
|
+
let outURL = URL(fileURLWithPath: a[1])
|
|
20
|
+
let ua = URL(fileURLWithPath: a[2])
|
|
21
|
+
let ub = URL(fileURLWithPath: a[3])
|
|
22
|
+
let overlap = a.count > 4 ? (Double(a[4]) ?? 0.35) : 0.35
|
|
23
|
+
try? FileManager.default.removeItem(at: outURL)
|
|
24
|
+
|
|
25
|
+
let A = AVURLAsset(url: ua), B = AVURLAsset(url: ub)
|
|
26
|
+
let da = CMTimeGetSeconds(A.duration), db = CMTimeGetSeconds(B.duration)
|
|
27
|
+
let comp = AVMutableComposition()
|
|
28
|
+
let vA = comp.addMutableTrack(withMediaType: .video, preferredTrackID: 1)!
|
|
29
|
+
let vB = comp.addMutableTrack(withMediaType: .video, preferredTrackID: 2)!
|
|
30
|
+
let aA = comp.addMutableTrack(withMediaType: .audio, preferredTrackID: 3)!
|
|
31
|
+
let aB = comp.addMutableTrack(withMediaType: .audio, preferredTrackID: 4)!
|
|
32
|
+
let tA = A.tracks(withMediaType: .video)[0]
|
|
33
|
+
let tB = B.tracks(withMediaType: .video)[0]
|
|
34
|
+
try vA.insertTimeRange(CMTimeRange(start: .zero, duration: A.duration), of: tA, at: .zero)
|
|
35
|
+
try vB.insertTimeRange(CMTimeRange(start: .zero, duration: B.duration), of: tB, at: CMTime(seconds: da - overlap, preferredTimescale: 600))
|
|
36
|
+
vA.preferredTransform = tA.preferredTransform
|
|
37
|
+
vB.preferredTransform = tB.preferredTransform
|
|
38
|
+
if let sA = A.tracks(withMediaType: .audio).first { try aA.insertTimeRange(CMTimeRange(start: .zero, duration: A.duration), of: sA, at: .zero) }
|
|
39
|
+
if let sB = B.tracks(withMediaType: .audio).first { try aB.insertTimeRange(CMTimeRange(start: .zero, duration: B.duration), of: sB, at: CMTime(seconds: da - overlap, preferredTimescale: 600)) }
|
|
40
|
+
|
|
41
|
+
let total = da + db - overlap
|
|
42
|
+
let renderSize = tA.naturalSize.applying(tA.preferredTransform)
|
|
43
|
+
let size = CGSize(width: abs(renderSize.width), height: abs(renderSize.height))
|
|
44
|
+
|
|
45
|
+
let vc = AVMutableVideoComposition()
|
|
46
|
+
vc.renderSize = size
|
|
47
|
+
vc.frameDuration = CMTime(value: 1, timescale: 30)
|
|
48
|
+
|
|
49
|
+
let lA = AVMutableVideoCompositionLayerInstruction(assetTrack: vA)
|
|
50
|
+
let lB = AVMutableVideoCompositionLayerInstruction(assetTrack: vB)
|
|
51
|
+
let s = CMTime(seconds: da - overlap, preferredTimescale: 600)
|
|
52
|
+
let e = CMTime(seconds: da, preferredTimescale: 600)
|
|
53
|
+
let totalT = CMTime(seconds: total, preferredTimescale: 600)
|
|
54
|
+
lB.setOpacityRamp(fromStartOpacity: 0, toEndOpacity: 1, timeRange: CMTimeRange(start: s, duration: CMTimeSubtract(e, s)))
|
|
55
|
+
|
|
56
|
+
let i1 = AVMutableVideoCompositionInstruction()
|
|
57
|
+
i1.timeRange = CMTimeRange(start: .zero, duration: s)
|
|
58
|
+
i1.layerInstructions = [lA]
|
|
59
|
+
|
|
60
|
+
let i2 = AVMutableVideoCompositionInstruction()
|
|
61
|
+
i2.timeRange = CMTimeRange(start: s, duration: CMTimeSubtract(e, s))
|
|
62
|
+
i2.layerInstructions = [lA, lB]
|
|
63
|
+
|
|
64
|
+
let i3 = AVMutableVideoCompositionInstruction()
|
|
65
|
+
i3.timeRange = CMTimeRange(start: e, duration: CMTimeSubtract(totalT, e))
|
|
66
|
+
i3.layerInstructions = [lB]
|
|
67
|
+
|
|
68
|
+
vc.instructions = [i1, i2, i3]
|
|
69
|
+
|
|
70
|
+
let mix = AVMutableAudioMix()
|
|
71
|
+
let pA = AVMutableAudioMixInputParameters(track: aA)
|
|
72
|
+
pA.setVolumeRamp(fromStartVolume: 1, toEndVolume: 0, timeRange: CMTimeRange(start: s, duration: CMTimeSubtract(e, s)))
|
|
73
|
+
let pB = AVMutableAudioMixInputParameters(track: aB)
|
|
74
|
+
pB.setVolumeRamp(fromStartVolume: 0, toEndVolume: 1, timeRange: CMTimeRange(start: s, duration: CMTimeSubtract(e, s)))
|
|
75
|
+
mix.inputParameters = [pA, pB]
|
|
76
|
+
|
|
77
|
+
let export = AVAssetExportSession(asset: comp, presetName: AVAssetExportPresetHighestQuality)!
|
|
78
|
+
export.outputURL = outURL
|
|
79
|
+
export.outputFileType = .mp4
|
|
80
|
+
export.videoComposition = vc
|
|
81
|
+
export.audioMix = mix
|
|
82
|
+
let sem = DispatchSemaphore(value: 0)
|
|
83
|
+
export.exportAsynchronously { sem.signal() }
|
|
84
|
+
sem.wait()
|
|
85
|
+
print(export.status == .completed ? "ok \(outURL.path) total=\(total)" : "fail \(String(describing: export.error))")
|
|
86
|
+
|
|
87
|
+
extension CMTime {
|
|
88
|
+
func subtractingCM(_ o: CMTime) -> CMTime { CMTimeSubtract(self, o) }
|
|
89
|
+
}
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "xinghe-muse 出图-出视频",
|
|
4
|
+
"description": "Drive muse.ai inside the ego lite browser for images and video: open a new side thread, send the request, wait for the turn to finish, then download the original file into a folder. Nothing is clicked on screen, so a covered or minimised window and focus stealing cannot break a run. Works on macOS and Windows. Author: 星禾.",
|
|
5
|
+
"detail": "docs/DETAIL.md",
|
|
6
|
+
"author": "星禾"
|
|
7
|
+
}
|
|
8
|
+
}
|
package/locale/zh.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "xinghe-muse 出图-出视频",
|
|
4
|
+
"description": "在 ego lite 浏览器里驱动 muse.ai 出图、出视频:可以带自己的参考视频/参考图(原样挂到输入框),新建旁聊、发出指令、等这一轮跑完、把原始文件下载下来存进文件夹。分段生成的几段还能用 muse_stitch_videos 叠化接成一条。全程不点屏幕,窗口被盖住、最小化、别的程序抢焦点都不影响。macOS 与 Windows 都能用。 作者:星禾。",
|
|
5
|
+
"detail": "docs/DETAIL.md",
|
|
6
|
+
"author": "星禾"
|
|
7
|
+
}
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xinghe-muse",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"displayName": "xinghe-muse 出图-出视频",
|
|
5
|
+
"description": "Generate images and video through muse.ai in the ego lite browser — optionally with your own reference video/image attached — saving the result to a folder. Works on macOS and Windows.",
|
|
6
|
+
"author": "星禾",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./lib/index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./lib/index.js",
|
|
12
|
+
"./locale/*.json": "./locale/*.json",
|
|
13
|
+
"./icon": "./icon.svg",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"lib",
|
|
18
|
+
"locale/*.json",
|
|
19
|
+
"docs",
|
|
20
|
+
"icon.svg",
|
|
21
|
+
"README.md",
|
|
22
|
+
"cordis.patch.yml",
|
|
23
|
+
"install.sh",
|
|
24
|
+
"install.ps1"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"install:deps": "node lib/setup.mjs",
|
|
28
|
+
"status": "node lib/setup.mjs --check"
|
|
29
|
+
},
|
|
30
|
+
"dsh": {
|
|
31
|
+
"bundle": {
|
|
32
|
+
"patch": "./cordis.patch.yml"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"dsh": ">=0.2.2-rc.5"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.5",
|
|
40
|
+
"@deepseek-ai/cordis": "4.1.0"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
}
|
|
45
|
+
}
|