FIX: QVAC (QuantumVerse Automatic Computer) Packing
CI / test (push) Successful in 2m38s
Release rolling / release (push) Failing after 6m17s

This commit is contained in:
Raven Scott
2026-07-30 14:17:06 -04:00
parent e2d909eaaa
commit bce96d6550
16 changed files with 1391 additions and 441 deletions
+9 -20
View File
@@ -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')