Skip to content

v16.23.0

@itechdom itechdom tagged this 07 Jun 17:35
The registry/embeddings loaders derived their data dir from import.meta.url,
which breaks when @almadar/std is inlined into a downstream single-file bundle
(the orb agent's cli.js) — import.meta.url then points at the bundle, not this
package, so factory-signatures.json / embeddings aren't found.

New behaviors/data-dir.ts resolveStdDataDir(): ALMADAR_STD_DATA_DIR override →
require.resolve('@almadar/std/package.json') package identity → import.meta.url
fallback. All 4 loaders (factory-signatures, embeddings, query, knob-embeddings)
use it. exports adds ./package.json so the self-resolve is allowed. Backward
compatible — installed consumers resolve to the real package, same data.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Assets 2
Loading