@vibe-cafe/vibe-usage 0.10.6 → 0.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ import { delimiter, join } from 'node:path';
2
+ import { homedir } from 'node:os';
3
+
4
+ export function getDefaultWorkbuddyProjectsDirs(home = homedir()) {
5
+ return [
6
+ join(home, '.workbuddy-ai', 'projects'),
7
+ join(home, '.workbuddy', 'projects'),
8
+ ];
9
+ }
10
+
11
+ // Fixture/relocation hook. Entries may name either the WorkBuddy home or its
12
+ // projects/ directory; the parser normalizes both forms.
13
+ export function findWorkbuddyDataDirs() {
14
+ const override = process.env.VIBE_USAGE_WORKBUDDY_DIRS?.trim();
15
+ if (!override) return getDefaultWorkbuddyProjectsDirs();
16
+ return [...new Set(
17
+ override
18
+ .split(delimiter)
19
+ .map(entry => entry.trim())
20
+ .filter(Boolean)
21
+ )];
22
+ }