FIX: QVAC Updates
This commit is contained in:
+21
-16
@@ -1,21 +1,26 @@
|
||||
/**
|
||||
* Desktop Bare worker entry for QVAC (Electron + Node).
|
||||
* QVAC SDK Worker Entry (auto-generated)
|
||||
* Generated by: @qvac/sdk/commands bundleSdk
|
||||
* Plugins: 1
|
||||
*
|
||||
* Prefer the file produced by packaging:
|
||||
* - Electron Forge: `@qvac/sdk/electron-forge` → `qvac/worker.bundle.js`
|
||||
* - Local: `npm run build:qvac-worker`
|
||||
*
|
||||
* This hand-written entry is a lean fallback for dev / pear when the SDK
|
||||
* is installed but the bare-pack bundle has not been regenerated yet.
|
||||
*
|
||||
* Plugins match `qvac.config.json` (LLM completion only).
|
||||
*
|
||||
* @see https://docs.qvac.tether.io/tutorials/electron
|
||||
* - @qvac/sdk/llamacpp-completion/plugin
|
||||
*/
|
||||
import { registerPlugin } from '@qvac/sdk/plugins'
|
||||
import { llmPlugin } from '@qvac/sdk/llamacpp-completion/plugin'
|
||||
|
||||
registerPlugin(llmPlugin)
|
||||
import { initializeWorkerCore, ensureRPCSetup } from "file:///Users/raven/dev/peardata/node_modules/@qvac/sdk/dist/server/worker-core.js";
|
||||
import { registerPlugin } from "file:///Users/raven/dev/peardata/node_modules/@qvac/sdk/dist/server/plugins/index.js";
|
||||
import { getServerLogger } from "file:///Users/raven/dev/peardata/node_modules/@qvac/sdk/dist/logging/index.js";
|
||||
|
||||
// RPC loop without re-registering every built-in plugin.
|
||||
await import('@qvac/sdk/worker-core')
|
||||
import { llmPlugin } from "file:///Users/raven/dev/peardata/node_modules/@qvac/sdk/dist/server/bare/plugins/llamacpp-completion/plugin.js";
|
||||
|
||||
const { hasRPCConfig } = initializeWorkerCore();
|
||||
|
||||
const logger = getServerLogger();
|
||||
logger.info("🐻 QVAC Worker (custom bundle)");
|
||||
logger.info("📦 Plugins: 1");
|
||||
|
||||
registerPlugin(llmPlugin);
|
||||
|
||||
// Auto-setup RPC if config present
|
||||
if (hasRPCConfig) {
|
||||
ensureRPCSetup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user