Skip to content

Function: vendorKeysModeSelf()

vendorKeysModeSelf(options, env?): "source" | "installed"

Defined in: packages/aiui-util/src/vendor-keys.ts:71

vendorKeysMode for a module deciding about the package IT LIVES IN — self-provenance via ownPackageRoot instead of a by-name lookup from aiui-util's vantage, which under pnpm's strict layout cannot see a workspace sibling and crashed a consuming dev server on every page load (2026-08-24). This variant NEVER throws: an unresolvable vantage answers installed (vault only) — the conservative mode, since honoring the environment is the source-checkout privilege.

Parameters

options

SelfProvenanceOptions

env?

ProcessEnv = process.env

Returns

"source" | "installed"