Run daemon on packaged Bare runtime
This commit is contained in:
Vendored
+9
-1
@@ -74,7 +74,15 @@ async function ensureInit() {
|
||||
paths.ensureQvacRoot();
|
||||
let mod;
|
||||
try {
|
||||
mod = await import('@qvac/sdk');
|
||||
if (typeof Bare !== 'undefined') {
|
||||
// @qvac/sdk's Bare RPC client is intentionally a stub. Bare hosts use
|
||||
// the in-process inference surface and register the engines they own.
|
||||
mod = await import('@qvac/inference');
|
||||
const { llmPlugin } = await import('@qvac/inference/llamacpp-completion/plugin');
|
||||
mod.registerPlugin(llmPlugin);
|
||||
} else {
|
||||
mod = await import('@qvac/sdk');
|
||||
}
|
||||
} catch (err) {
|
||||
initError = flattenError(err);
|
||||
log('sdk import failed: ' + initError);
|
||||
|
||||
Reference in New Issue
Block a user