# extendify/trunk/src/Shared/lib/applied-vibes.js

Extendify, version trunk. 16 lines.

- Page: https://pluginprobe.com/plugins/extendify/trunk/code/src/Shared/lib/applied-vibes.js
- Raw: https://pluginprobe.com/plugins/extendify/trunk/raw/src/Shared/lib/applied-vibes.js
- Modified: 2026-09-09T18:23:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/trunk/code/src/Shared/lib/applied-vibes.js#L10-L20`.

```javascript
import { vibeGlobalsEntry } from '@shared/lib/vibe-globals';
import { getVibes, vibesBySlug } from '@shared/lib/vibes';

// Widening to the served set purges leaves this vibe never declared.
export const appliedVibeOwnership = async (vibe) => {
	const selected = vibe || 'natural-1';

	try {
		const payloads = await getVibes(`agent,${selected}`);
		const entry = vibeGlobalsEntry(vibesBySlug(payloads), selected);
		return entry ? { [selected]: entry } : {};
	} catch {
		return {};
	}
};

```
