pisper 0.6.3 → 0.6.4
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.en.md +0 -6
- package/README.md +0 -6
- package/bin/pisper.mjs +7 -15
- package/lib/install.mjs +9 -49
- package/lib/npm-platform.mjs +0 -12
- package/package.json +8 -9
- package/web/.vite/manifest.json +713 -737
- package/web/assets/AppDialog-BOGrPFbo.js +1 -0
- package/web/assets/{AppOverlays-CR5iJcP5.js → AppOverlays-D1vfPPIC.js} +1 -1
- package/web/assets/AppSelect-BCexz4Ty.js +1 -0
- package/web/assets/{AppShortcuts-BachmLQ3.js → AppShortcuts-Dd4gu7qz.js} +1 -1
- package/web/assets/{AssetsPage-BltehMID.js → AssetsPage-BPhPo5eU.js} +1 -1
- package/web/assets/ChannelsPage-Cu4v-GU2.js +1 -0
- package/web/assets/ChatAppearancePage-BLRQ7aH6.js +2 -0
- package/web/assets/ChatHistoryPage-BYqJFbY5.js +1 -0
- package/web/assets/ChatPage-tqAIj2Go.js +554 -0
- package/web/assets/ConfigPage-Z-BQwP2X.js +1 -0
- package/web/assets/{DecisionsPage-DOhLbIaD.js → DecisionsPage-Db6MIGD2.js} +1 -1
- package/web/assets/{DesktopWindowControls-KmgemDO8.js → DesktopWindowControls-CBYGv94u.js} +1 -1
- package/web/assets/{FloatingWidgets-Bs7ec6lW.js → FloatingWidgets-dzsQIxAO.js} +1 -1
- package/web/assets/{GitDiffViewer-xm2LnN9r.js → GitDiffViewer-m5aLB7Li.js} +1 -1
- package/web/assets/MarkdownMessage-CA9ODRKk.js +2 -0
- package/web/assets/McpPage-rerFxjYZ.js +1 -0
- package/web/assets/MemoryPage-cukfU824.js +1 -0
- package/web/assets/MobileContextScreen-W8V4H3Xv.js +2 -0
- package/web/assets/MobileNavigation-CEVgs1Ke.js +1 -0
- package/web/assets/MobileShellContext-D8qX-BlM.js +1 -0
- package/web/assets/{PageHeader-C_bfu8Ir.js → PageHeader-DIs9bESb.js} +1 -1
- package/web/assets/{PluginsPage-BPx5ERHL.js → PluginsPage-09Um3mY4.js} +1 -1
- package/web/assets/QueryClientProvider-CHJtxoX1.js +1 -0
- package/web/assets/{QuickPromptIdeas-Bs-udcSZ.js → QuickPromptIdeas-DGIL0nN7.js} +1 -1
- package/web/assets/SchedulesPage-C75QUeB5.js +1 -0
- package/web/assets/SessionContextPanel-oaKXyi7k.js +1 -0
- package/web/assets/{SessionFilesPane-BIRQ_hHi.js → SessionFilesPane-DPijesqH.js} +2 -2
- package/web/assets/{SidebarMoreTools-BDqt5VTG.js → SidebarMoreTools-D1nDS3i0.js} +1 -1
- package/web/assets/SidebarRecentSessions-a7z2ZvDv.js +2 -0
- package/web/assets/{SidebarSettingsButton-B4_vEBS5.js → SidebarSettingsButton-CRdV0Vft.js} +1 -1
- package/web/assets/{SidebarUpdateStatus-DD8f4Fxv.js → SidebarUpdateStatus-DgNJBwgT.js} +1 -1
- package/web/assets/SkillsPage-DLirgTyX.js +1 -0
- package/web/assets/TerminalPanel-CJPy4Qhs.js +18 -0
- package/web/assets/{ThemeToggleButton-CXXbLtcY.js → ThemeToggleButton-C5QA5Kf2.js} +1 -1
- package/web/assets/{WebDesktopPet-DWFspeZE.js → WebDesktopPet-DgyHLE9y.js} +1 -1
- package/web/assets/{WorkbenchSidebarToggle-AgjfcT29.js → WorkbenchSidebarToggle-CcO1Al5A.js} +1 -1
- package/web/assets/WorkflowsPage-DrKHzJvb.js +1 -0
- package/web/assets/WorkspacePicker-B3liZkwe.js +1 -0
- package/web/assets/{api-Dzobr-o_.js → api-YI8_cHpR.js} +1 -1
- package/web/assets/{app-primitives-BBXY6U2S.js → app-primitives-SxfoFmHc.js} +1 -1
- package/web/assets/app-update-Bg6w1SOW.js +32 -0
- package/web/assets/arrow-up-DST6-qVQ.js +1 -0
- package/web/assets/catalog-BPCnu3F8.js +1 -0
- package/web/assets/channels-messages-DgWnmzUo.js +1 -0
- package/web/assets/chat-api-CqF-FICX.js +1 -0
- package/web/assets/{client-store-DPMvgPNS.js → client-store-BP_3-plw.js} +1 -1
- package/web/assets/{component-api-Nwo2yGZI.js → component-api-CN9Tcn5p.js} +1 -1
- package/web/assets/config-search-DOIJENN1.js +1 -0
- package/web/assets/dist-B7rNRXig.js +1 -0
- package/web/assets/dist-C3P9WH0T.js +1 -0
- package/web/assets/dist-CXiO_DNx.js +1 -0
- package/web/assets/dist-D8Wfxh48.js +1 -0
- package/web/assets/{dropdown-menu-DmL4pJTo.js → dropdown-menu-pKRdLJUe.js} +1 -1
- package/web/assets/{events-Bwv6HmwM.js → events-KqdUtjsm.js} +1 -1
- package/web/assets/{floating-widgets-store-DIy4GSy4.js → floating-widgets-store-Pjm1AdvO.js} +2 -2
- package/web/assets/folder-DPM8D8cf.js +1 -0
- package/web/assets/house-BNrzTkx9.js +1 -0
- package/web/assets/{http-DphgzWtw.js → http-Be2GB6DH.js} +1 -1
- package/web/assets/i18n-8nTnthu6.js +1 -0
- package/web/assets/{index-iBrSU61i.js → index-AF29hfx9.js} +2 -2
- package/web/assets/index-BAmsg90v.css +2 -0
- package/web/assets/monitor-ORxecA9m.js +1 -0
- package/web/assets/mount-app-WW5hteuX.js +9 -0
- package/web/assets/panels-top-left-BlZftvhg.js +1 -0
- package/web/assets/pick-system-directory-BnIFt85A.js +1 -0
- package/web/assets/{popover-BBuzaBfd.js → popover-CQqAaq-c.js} +1 -1
- package/web/assets/public-c36e4881.js +1 -0
- package/web/assets/public-components-C4ndcOCF.js +1 -0
- package/web/assets/{runtime-capabilities-store-DaWPY5y-.js → runtime-capabilities-store-CiL3ZPEo.js} +1 -1
- package/web/assets/scale-D0LcHVmf.js +1 -0
- package/web/assets/{session-change-summary-api-DFgTzTci.js → session-change-summary-api--7cl4LDn.js} +1 -1
- package/web/assets/session-context-store-DJnHgWwb.js +1 -0
- package/web/assets/session-list-DkNhT87s.js +1 -0
- package/web/assets/settings-navigation-CI7Yt4Or.js +1 -0
- package/web/assets/{shortcuts-BO-h6OmP.js → shortcuts-C_Cph88H.js} +1 -1
- package/web/assets/side-chat-context-Dn8w9ut8.js +3 -0
- package/web/assets/{sidebar-CfWEKOIK.js → sidebar-C3YJQV72.js} +1 -1
- package/web/assets/{speech-session-DKjw0mV_.js → speech-session-CoUr4n9Q.js} +1 -1
- package/web/assets/{startup-queries-CAQZvUIR.js → startup-queries-ByepQfGF.js} +1 -1
- package/web/assets/tabs-B60r4YwO.js +1 -0
- package/web/assets/{ui-store-2wpnH8Kf.js → ui-store-BGs-dEVz.js} +1 -1
- package/web/assets/{use-i18n-BSZKFkMb.js → use-i18n-a84Zp9dV.js} +1 -1
- package/web/assets/{useCustomUiComponents-BH86kuaq.js → useCustomUiComponents-BaQ_fwbr.js} +1 -1
- package/web/assets/useQuery-D3P5wO_Z.js +1 -0
- package/web/assets/web-preview-B7L-G6kp.js +1 -0
- package/web/assets/web-preview-events-C4AW4-It.js +1 -0
- package/web/index.html +2 -2
- package/web/assets/AppSelect-D149YYg1.js +0 -1
- package/web/assets/ChannelsPage-Tuw_qicj.js +0 -1
- package/web/assets/ChatAppearancePage-DME3PgDr.js +0 -2
- package/web/assets/ChatDockView-DoGtrBpY.js +0 -2
- package/web/assets/ChatHistoryPage-DTXS6i3n.js +0 -1
- package/web/assets/ChatPage-ibc_7olm.js +0 -4
- package/web/assets/ConfigPage-CI6one5Y.js +0 -1
- package/web/assets/MarkdownMessage-H1336cMr.js +0 -2
- package/web/assets/McpPage-Ck-7aLuZ.js +0 -1
- package/web/assets/MemoryPage-BEdNJ3ot.js +0 -1
- package/web/assets/MobileContextScreen-Dasny2J9.js +0 -2
- package/web/assets/MobileThreePane-DEKMHPfN.js +0 -1
- package/web/assets/SchedulesPage-W4Mg7frl.js +0 -1
- package/web/assets/SessionContextPanel-lu9F9AJg.js +0 -1
- package/web/assets/SidebarRecentSessions-1G_huYu9.js +0 -1
- package/web/assets/SkillsPage-CpRRosmo.js +0 -1
- package/web/assets/TerminalPanel-DVKC4htc.js +0 -18
- package/web/assets/Threads-B8ij_QtI.js +0 -1
- package/web/assets/WorkflowsPage-bhQlHSzS.js +0 -1
- package/web/assets/app-update-DppJNspd.js +0 -32
- package/web/assets/arrow-right-DqLOhpA2.js +0 -1
- package/web/assets/catalog-D4eaIju4.js +0 -1
- package/web/assets/channels-messages-CeRKS_DE.js +0 -1
- package/web/assets/chat-api-DfnvubiW.js +0 -1
- package/web/assets/chevron-left-BAtyp3_6.js +0 -1
- package/web/assets/config-search-CwVhh2uc.js +0 -1
- package/web/assets/dist-DAs5KRGl.js +0 -1
- package/web/assets/dist-swnK7PHk.js +0 -1
- package/web/assets/i18n-7QvbQzOQ.js +0 -1
- package/web/assets/index-CdASiNlI.css +0 -2
- package/web/assets/local-path-reveal-DWhkyox-.js +0 -1
- package/web/assets/mobile-shell-layout-CMpTmYRX.js +0 -1
- package/web/assets/mount-app-n_05p6iW.js +0 -9
- package/web/assets/panel-left-C_lYsiIA.js +0 -1
- package/web/assets/panel-right-BSUtqUd8.js +0 -1
- package/web/assets/pick-system-directory-R1F5WyaB.js +0 -1
- package/web/assets/pin-Dc2zE4cS.js +0 -1
- package/web/assets/public-BcTP7F3I.js +0 -1
- package/web/assets/public-components-Ck5BYo6M.js +0 -1
- package/web/assets/session-list-CMaoK_ZX.js +0 -1
- package/web/assets/session-streaming-state-llCTupbI.js +0 -3
- package/web/assets/side-chat-context-Dr2QLUJA.js +0 -1
- package/web/assets/tabs-DQYVDdOp.js +0 -1
- package/web/assets/use-animation-visibility-_Xe7jeUy.js +0 -1
- package/web/assets/useQuery-DdcpUQhO.js +0 -1
- package/web/assets/vendor-dockview-Bf3Gg83W.js +0 -1
- package/web/assets/vendor-dockview-D5adAaCg.css +0 -1
- package/web/assets/web-preview-BPNd1LUd.js +0 -1
- package/web/assets/web-preview-CQbpHjt1.js +0 -1
- package/web/assets/web-preview-events-o845ErdA.js +0 -1
- package/web/assets/web-preview-panel-DVQxVfig.js +0 -552
- package/web/assets/workflow-Bg94dy8I.js +0 -1
package/README.en.md
CHANGED
|
@@ -69,9 +69,3 @@ For an external launch failure containing `MZ` and a Node syntax error, use the
|
|
|
69
69
|
| :--- | :--- |
|
|
70
70
|
| `/<tool> [request]` | Request a Runtime Tool, for example `/read README.md`, `/bash npm test`, or `/web_search Pisper`. The Agent still generates arguments and calls the Tool; the active execution mode and Tool settings remain enforced. |
|
|
71
71
|
| `/skill:<name> [request]` | Request an enabled Skill, for example `/skill:docs-search find signing requirements`. Runtime resources load on demand, and Tools invoked by the Skill follow the same permission chain. |
|
|
72
|
-
|
|
73
|
-
## Rust source and local packages
|
|
74
|
-
|
|
75
|
-
Run `cargo build --locked --manifest-path runtime-rs/Cargo.toml` before `npm run tui:dev -- doctor` or `npm run tui:dev`. The development CLI prefers the Rust Runtime in the same source tree. A missing build reports the build command instead of downloading the old Node Runtime.
|
|
76
|
-
|
|
77
|
-
`npm run tui:build` builds the standalone CLI, Rust Runtime, native resources, and Web frontend into `release/tui/`. Resource packaging covers macOS Apple Silicon/Intel, Windows x64, and Linux x64; device validation is tracked separately. `pisper web` and `/web` open model settings. The npm distribution explicitly selects the Rust Runtime backend. Local packaging does not publish a release.
|
package/README.md
CHANGED
|
@@ -69,9 +69,3 @@ Windows 桌面版安装到 `%LOCALAPPDATA%\com.lingkongran.pisper\cli\pisper.exe
|
|
|
69
69
|
| :--- | :--- |
|
|
70
70
|
| `/<tool> [请求]` | 请求 Runtime Tool,例如 `/read README.md`、`/bash npm test` 或 `/web_search Pisper`。Agent 仍负责生成参数并调用 Tool,当前执行模式与 Tool 开关继续生效。 |
|
|
71
71
|
| `/skill:<name> [请求]` | 请求已启用 Skill,例如 `/skill:docs-search 查找签名要求`。Runtime 按需加载 Skill 资源,其中触发的 Tool 继续经过同一权限链。 |
|
|
72
|
-
|
|
73
|
-
## Rust 源码与本地包
|
|
74
|
-
|
|
75
|
-
先执行 `cargo build --locked --manifest-path runtime-rs/Cargo.toml`,再运行 `npm run tui:dev -- doctor` 或 `npm run tui:dev`。开发 CLI 优先使用同一源码树的 Rust Runtime;未构建时会报出构建命令,不下载旧 Node Runtime。
|
|
76
|
-
|
|
77
|
-
`npm run tui:build` 构建独立 CLI、Rust Runtime、原生资源及 Web 前端,产物在 `release/tui/`。资源打包覆盖 macOS Apple Silicon/Intel、Windows x64 和 Linux x64;实际设备验证按平台记录。`pisper web` 和 `/web` 打开模型配置页。npm 分发使用显式标记的 Rust Runtime 包,本地打包不会发布版本。
|
package/bin/pisper.mjs
CHANGED
|
@@ -12,22 +12,14 @@ try {
|
|
|
12
12
|
const arguments_ = process.argv.slice(2)
|
|
13
13
|
if (!handleNpmHelp(arguments_) && !(await handleNpmUpdate(arguments_))) {
|
|
14
14
|
const installation = await ensurePisperInstallation()
|
|
15
|
-
const env = {
|
|
16
|
-
...process.env,
|
|
17
|
-
PISPER_APP_ROOT: installation.appRoot,
|
|
18
|
-
PISPER_DISTRIBUTION: 'npm',
|
|
19
|
-
PISPER_FRONTEND_ROOT: frontendRoot,
|
|
20
|
-
}
|
|
21
|
-
if (installation.runtimeBackend === 'rust') {
|
|
22
|
-
// npm 配对的原生 Runtime 必须优先于用户遗留的 Node 启动配置。
|
|
23
|
-
delete env.PISPER_RUNTIME_NODE
|
|
24
|
-
env.PISPER_SIDECAR_PATH = installation.sidecar
|
|
25
|
-
} else {
|
|
26
|
-
delete env.PISPER_SIDECAR_PATH
|
|
27
|
-
env.PISPER_RUNTIME_NODE = process.execPath
|
|
28
|
-
}
|
|
29
15
|
const child = spawn(installation.executable, arguments_, {
|
|
30
|
-
env
|
|
16
|
+
env: {
|
|
17
|
+
...process.env,
|
|
18
|
+
PISPER_APP_ROOT: installation.appRoot,
|
|
19
|
+
PISPER_DISTRIBUTION: 'npm',
|
|
20
|
+
PISPER_FRONTEND_ROOT: frontendRoot,
|
|
21
|
+
PISPER_RUNTIME_NODE: process.execPath,
|
|
22
|
+
},
|
|
31
23
|
stdio: 'inherit',
|
|
32
24
|
windowsHide: false,
|
|
33
25
|
})
|
package/lib/install.mjs
CHANGED
|
@@ -7,13 +7,7 @@ import { promisify } from 'node:util'
|
|
|
7
7
|
import { fileURLToPath } from 'node:url'
|
|
8
8
|
import { PublicKey, Signature } from '@threema/wasm-minisign-verify'
|
|
9
9
|
import { x as extractTar } from 'tar'
|
|
10
|
-
import {
|
|
11
|
-
npmPlatformAlias,
|
|
12
|
-
npmPlatformTarget,
|
|
13
|
-
npmPlatformVersion,
|
|
14
|
-
npmRuntimeBackend,
|
|
15
|
-
npmRuntimeAsset,
|
|
16
|
-
} from './npm-platform.mjs'
|
|
10
|
+
import { npmPlatformAlias, npmPlatformTarget, npmPlatformVersion } from './npm-platform.mjs'
|
|
17
11
|
import {
|
|
18
12
|
componentsRoot,
|
|
19
13
|
executableName,
|
|
@@ -28,7 +22,6 @@ const packageRoot = fileURLToPath(new URL('..', import.meta.url))
|
|
|
28
22
|
const packageManifest = JSON.parse(await readFile(join(packageRoot, 'package.json'), 'utf8'))
|
|
29
23
|
const tuiVersion = packageManifest.pisper?.tuiVersion
|
|
30
24
|
const runtimeVersion = packageManifest.pisper?.runtimeVersion
|
|
31
|
-
const runtimeBackend = npmRuntimeBackend(packageManifest.pisper?.runtimeBackend)
|
|
32
25
|
const MAX_ARCHIVE_BYTES = 128 * 1024 * 1024
|
|
33
26
|
const INSTALL_WAIT_MS = 600_000
|
|
34
27
|
const LEGACY_LOCK_GRACE_MS = 300_000
|
|
@@ -52,9 +45,8 @@ function decodeWrapped(value) {
|
|
|
52
45
|
|
|
53
46
|
function componentAsset(component, version, platform = process.platform, arch = process.arch) {
|
|
54
47
|
const target = supportedTarget(platform, arch)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
: npmRuntimeAsset(version, target, runtimeBackend)
|
|
48
|
+
const label = component === 'tui' ? 'TUI_Component' : 'Runtime_Node'
|
|
49
|
+
return `Pisper_${label}_${version}_${target}.tar.gz`
|
|
58
50
|
}
|
|
59
51
|
|
|
60
52
|
export function releaseAsset(
|
|
@@ -85,9 +77,7 @@ async function isFile(path) {
|
|
|
85
77
|
|
|
86
78
|
function commandName(component) {
|
|
87
79
|
if (component === 'tui') return executableName()
|
|
88
|
-
return
|
|
89
|
-
? `pisper-sidecar${process.platform === 'win32' ? '.exe' : ''}`
|
|
90
|
-
: 'sidecar-runtime/runtime/sidecar.mjs'
|
|
80
|
+
return 'sidecar-runtime/runtime/sidecar.mjs'
|
|
91
81
|
}
|
|
92
82
|
|
|
93
83
|
async function validateComponent(component, version, destination) {
|
|
@@ -101,14 +91,7 @@ async function validateComponent(component, version, destination) {
|
|
|
101
91
|
}
|
|
102
92
|
try {
|
|
103
93
|
const manifest = JSON.parse(await readFile(join(destination, 'manifest.json'), 'utf8'))
|
|
104
|
-
if (component === 'runtime' && runtimeBackend === 'rust') {
|
|
105
|
-
const payload = JSON.parse(
|
|
106
|
-
await readFile(join(destination, 'sidecar-runtime', 'package.json'), 'utf8'),
|
|
107
|
-
)
|
|
108
|
-
if (payload.backend !== 'rust' || payload.version !== version) return ''
|
|
109
|
-
}
|
|
110
94
|
if (
|
|
111
|
-
npmRuntimeBackend(manifest.backend) !== runtimeBackend ||
|
|
112
95
|
manifest.version !== version ||
|
|
113
96
|
manifest.platform !== releasePlatform() ||
|
|
114
97
|
manifest.arch !== releaseArchitecture() ||
|
|
@@ -160,8 +143,7 @@ async function resolvePlatformBundle() {
|
|
|
160
143
|
manifest.version !== expectedVersion ||
|
|
161
144
|
metadata?.target !== target.release ||
|
|
162
145
|
metadata?.tuiVersion !== tuiVersion ||
|
|
163
|
-
metadata?.runtimeVersion !== runtimeVersion
|
|
164
|
-
npmRuntimeBackend(metadata?.runtimeBackend) !== runtimeBackend
|
|
146
|
+
metadata?.runtimeVersion !== runtimeVersion
|
|
165
147
|
) {
|
|
166
148
|
throw new Error(
|
|
167
149
|
`npm platform package ${alias} does not match pisper@${packageManifest.version}`,
|
|
@@ -193,25 +175,17 @@ async function verifyArchive(component, archive, signatureBytes) {
|
|
|
193
175
|
const publicKeyText = await readFile(join(packageRoot, 'updater.pubkey'), 'utf8')
|
|
194
176
|
const publicKey = PublicKey.decode(decodeWrapped(publicKeyText))
|
|
195
177
|
const signature = Signature.decode(decodeWrapped(signatureBytes.toString('utf8')))
|
|
196
|
-
let verificationError
|
|
197
178
|
try {
|
|
198
179
|
if (!publicKey.verify(archive, signature)) {
|
|
199
180
|
throw new Error('signature verification returned false')
|
|
200
181
|
}
|
|
201
182
|
} catch (error) {
|
|
202
|
-
verificationError = error
|
|
203
183
|
throw new Error(`${component} archive signature verification failed: ${error.message}`, {
|
|
204
184
|
cause: error,
|
|
205
185
|
})
|
|
206
186
|
} finally {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
handle.free()
|
|
210
|
-
} catch (error) {
|
|
211
|
-
// 上游 WASM 验签失败后可能留下借用标记;清理异常不能覆盖原始验签拒绝。
|
|
212
|
-
if (!verificationError) throw error
|
|
213
|
-
}
|
|
214
|
-
}
|
|
187
|
+
signature.free()
|
|
188
|
+
publicKey.free()
|
|
215
189
|
}
|
|
216
190
|
}
|
|
217
191
|
|
|
@@ -373,18 +347,8 @@ async function installComponent({ root, bundleRoot, component, version, destinat
|
|
|
373
347
|
|
|
374
348
|
export async function ensurePisperInstallation() {
|
|
375
349
|
const root = componentsRoot()
|
|
376
|
-
const npmTuiDestination = join(
|
|
377
|
-
|
|
378
|
-
runtimeBackend === 'rust' ? 'npm-rust' : 'npm',
|
|
379
|
-
'versions',
|
|
380
|
-
tuiVersion,
|
|
381
|
-
)
|
|
382
|
-
const runtimeDestination = join(
|
|
383
|
-
root,
|
|
384
|
-
runtimeBackend === 'rust' ? 'npm-runtime-rust' : 'npm-runtime',
|
|
385
|
-
'versions',
|
|
386
|
-
runtimeVersion,
|
|
387
|
-
)
|
|
350
|
+
const npmTuiDestination = join(root, 'npm', 'versions', tuiVersion)
|
|
351
|
+
const runtimeDestination = join(root, 'npm-runtime', 'versions', runtimeVersion)
|
|
388
352
|
const [tui, runtime] = await Promise.all([
|
|
389
353
|
resolveCurrentComponent(root, 'tui', tuiVersion).then(
|
|
390
354
|
(current) => current || installedComponent('tui', tuiVersion, npmTuiDestination),
|
|
@@ -395,8 +359,6 @@ export async function ensurePisperInstallation() {
|
|
|
395
359
|
return {
|
|
396
360
|
executable: tui.executable,
|
|
397
361
|
appRoot: join(runtime.destination, 'sidecar-runtime'),
|
|
398
|
-
runtimeBackend,
|
|
399
|
-
...(runtimeBackend === 'rust' ? { sidecar: runtime.executable } : {}),
|
|
400
362
|
}
|
|
401
363
|
}
|
|
402
364
|
|
|
@@ -422,8 +384,6 @@ export async function ensurePisperInstallation() {
|
|
|
422
384
|
return {
|
|
423
385
|
executable: installedTui.executable,
|
|
424
386
|
appRoot: join(installedRuntime.destination, 'sidecar-runtime'),
|
|
425
|
-
runtimeBackend,
|
|
426
|
-
...(runtimeBackend === 'rust' ? { sidecar: installedRuntime.executable } : {}),
|
|
427
387
|
}
|
|
428
388
|
}
|
|
429
389
|
|
package/lib/npm-platform.mjs
CHANGED
|
@@ -39,15 +39,3 @@ export function npmPlatformOptionalDependencies(version) {
|
|
|
39
39
|
]),
|
|
40
40
|
)
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
export function npmRuntimeBackend(value = 'node') {
|
|
44
|
-
if (value !== 'node' && value !== 'rust') throw new Error(`Unsupported Runtime backend: ${value}`)
|
|
45
|
-
return value
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function npmRuntimeAsset(version, target, backend = 'node') {
|
|
49
|
-
if (!/^\d+\.\d+\.\d+$/.test(version || '')) throw new Error('Invalid Runtime version.')
|
|
50
|
-
if (!NPM_PLATFORM_TARGETS.some((entry) => entry.release === target))
|
|
51
|
-
throw new Error(`Unsupported Runtime target: ${target}`)
|
|
52
|
-
return `Pisper_Runtime_${npmRuntimeBackend(backend) === 'rust' ? 'Rust' : 'Node'}_${version}_${target}.tar.gz`
|
|
53
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pisper",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Pisper CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "https://github.com/ling-kong-ran/pisper/issues"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=20"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
24
|
"pisper": "bin/pisper.mjs"
|
|
@@ -41,15 +41,14 @@
|
|
|
41
41
|
},
|
|
42
42
|
"pisper": {
|
|
43
43
|
"repository": "ling-kong-ran/pisper",
|
|
44
|
-
"tuiVersion": "0.
|
|
45
|
-
"runtimeVersion": "0.
|
|
46
|
-
"runtimeBackend": "rust"
|
|
44
|
+
"tuiVersion": "0.5.39",
|
|
45
|
+
"runtimeVersion": "0.5.63"
|
|
47
46
|
},
|
|
48
47
|
"optionalDependencies": {
|
|
49
|
-
"pisper-binary-win32-x64": "npm:pisper@0.6.
|
|
50
|
-
"pisper-binary-darwin-x64": "npm:pisper@0.6.
|
|
51
|
-
"pisper-binary-darwin-arm64": "npm:pisper@0.6.
|
|
52
|
-
"pisper-binary-linux-x64": "npm:pisper@0.6.
|
|
48
|
+
"pisper-binary-win32-x64": "npm:pisper@0.6.4-win32-x64.0",
|
|
49
|
+
"pisper-binary-darwin-x64": "npm:pisper@0.6.4-darwin-x64.0",
|
|
50
|
+
"pisper-binary-darwin-arm64": "npm:pisper@0.6.4-darwin-arm64.0",
|
|
51
|
+
"pisper-binary-linux-x64": "npm:pisper@0.6.4-linux-x64.0"
|
|
53
52
|
},
|
|
54
53
|
"publishConfig": {
|
|
55
54
|
"access": "public",
|