FIX: QVAC (QuantumVerse Automatic Computer) Packing
This commit is contained in:
@@ -1,26 +1,15 @@
|
||||
/**
|
||||
* Pear Bare worker entry for QVAC (optional).
|
||||
* Pear Bare worker entry for QVAC.
|
||||
*
|
||||
* When using @qvac/bare-sdk in a Pear build, register only the plugins you need:
|
||||
* npm i @qvac/bare-sdk @qvac/llm-llamacpp @qvac/embed-llamacpp
|
||||
* Listed in package.json → pear.stage.entrypoints.
|
||||
* Plugins match qvac.config.json (LLM completion only).
|
||||
*
|
||||
* Add to package.json pear.stage.entrypoints: "/qvac/worker.pear.entry.mjs"
|
||||
*
|
||||
* Electron uses @qvac/sdk's default worker — this file is Pear-only.
|
||||
*
|
||||
* @see https://github.com/tetherto/qvac/tree/main/packages/bare-sdk
|
||||
* Requires `@qvac/sdk` in this project's node_modules (CI and local).
|
||||
* pear run -d . resolves the same tree as Electron when deps are installed.
|
||||
*/
|
||||
import { registerPlugin } from '@qvac/sdk/plugins'
|
||||
import { llmPlugin } from '@qvac/sdk/llamacpp-completion/plugin'
|
||||
|
||||
// Uncomment when bare-sdk is installed:
|
||||
//
|
||||
// import { registerPlugin } from '@qvac/bare-sdk/plugins'
|
||||
// import { llmPlugin } from '@qvac/bare-sdk/llamacpp-completion/plugin'
|
||||
// // import { embedPlugin } from '@qvac/bare-sdk/llamacpp-embedding/plugin'
|
||||
// registerPlugin(llmPlugin)
|
||||
// // registerPlugin(embedPlugin)
|
||||
// await import('../node_modules/@qvac/bare-sdk/worker.js').catch(() => {})
|
||||
registerPlugin(llmPlugin)
|
||||
|
||||
export const QVAC_PEAR_WORKER = {
|
||||
status: 'stub',
|
||||
note: 'Install @qvac/bare-sdk and enable plugin registration above for Pear native inference.',
|
||||
}
|
||||
await import('@qvac/sdk/worker-core')
|
||||
|
||||
Reference in New Issue
Block a user