+
{t('terminalDepsFailed')}
+
+ {t('terminalDepsHint')}
+ {deps.profile !== null ? t('terminalDepsProfile', { profile: deps.profile }) : ''}
+
+
+
{deps.command}
+
+
+ {deps.note !== undefined &&
{deps.note}
}
+
+
+
+
+ )
+}
diff --git a/src/client/api.ts b/src/client/api.ts
index bfab3de..7dbdda1 100644
--- a/src/client/api.ts
+++ b/src/client/api.ts
@@ -79,6 +79,21 @@ export interface JobOutputResult {
read: boolean
}
+/** Terminal dependency status (mirror of the host's depsStatus; issue #140). */
+export type TerminalDepsStatus =
+ | { ok: true }
+ | {
+ ok: false
+ /** The require-time error message (module missing, native binding broken…). */
+ cause: string
+ /** The pasteable repair command (terminal/cmd). */
+ command: string
+ /** The detected profile name (null when undetected → the command defaults to web). */
+ profile: string | null
+ /** Optional supplementary hint (fallback command only). */
+ note?: string
+ }
+
async function call