FIX: QVAC Updates
CI / test (push) Successful in 2m45s
Release rolling / release (push) Successful in 11m36s

This commit is contained in:
Raven Scott
2026-07-30 15:23:43 -04:00
parent 79250e1a55
commit 4b5b78892f
25 changed files with 2886 additions and 345 deletions
+21 -16
View File
@@ -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();
}