26 lines
947 B
JavaScript
26 lines
947 B
JavaScript
/**
|
|
* QVAC SDK Worker Entry (portable)
|
|
* Relative imports only — safe for packaged Electron / CI clients.
|
|
* Plugins: 1 — @qvac/sdk/llamacpp-completion/plugin
|
|
*
|
|
* Regenerated by scripts/rewrite-qvac-worker-entry.cjs
|
|
* (bundleSdk emits absolute file:// URLs that break off the build machine)
|
|
*/
|
|
|
|
import { initializeWorkerCore, ensureRPCSetup } from '../node_modules/@qvac/sdk/dist/server/worker-core.js'
|
|
import { registerPlugin } from '../node_modules/@qvac/sdk/dist/server/plugins/index.js'
|
|
import { getServerLogger } from '../node_modules/@qvac/sdk/dist/logging/index.js'
|
|
import { llmPlugin } from '../node_modules/@qvac/sdk/dist/server/bare/plugins/llamacpp-completion/plugin.js'
|
|
|
|
const { hasRPCConfig } = initializeWorkerCore()
|
|
|
|
const logger = getServerLogger()
|
|
logger.info('🐻 QVAC Worker (portable bundle)')
|
|
logger.info('📦 Plugins: 1 (llamacpp-completion)')
|
|
|
|
registerPlugin(llmPlugin)
|
|
|
|
if (hasRPCConfig) {
|
|
ensureRPCSetup()
|
|
}
|