Files
waggle-os/packages/shared/src/data-dir.ts
shumeiko.it b275f0bf89 feat: default the data directory to ~/.waggle-community (P1.3c)
The community edition defaulted to ~/.waggle, the data directory of the
commercial Waggle, so both editions would open the same config, vault,
waggle.db, marketplace catalog and skills. Default to
~/.waggle-community instead (ADR-0011). WAGGLE_DATA_DIR still overrides
it wherever it did; nothing is migrated from ~/.waggle.

The name is defined once as DEFAULT_DATA_DIR_NAME and
DEFAULT_DATA_DIR_LABEL in @waggle/shared, with defaultDataDir() in
@waggle/core for the sidecar, the CLI, the agent and the model caches.
The marketplace installs on its own without workspace packages, so it
keeps a copy in its data-dir.ts; the CLI help, which loads no
dependency, spells the path out and its runtime test checks it.

The marketplace security scan also flags skills that reference the new
skills folder. Tests that asserted the old default now use the
constant, and comments name the new directory.
2026-11-04 10:31:20 +01:00

13 lines
655 B
TypeScript

/**
* The community edition's default data directory, under the user's home
* directory. It is separate from the commercial Waggle's `~/.waggle`, so the
* two editions never open the same databases (ADR-0011). `WAGGLE_DATA_DIR`
* overrides it. The name is temporary: the final one follows the product-name
* decision (Q8). The Rust shell, the launcher, the marketplace and the CLI
* help text keep their own copy; tests check that they match.
*/
export const DEFAULT_DATA_DIR_NAME = '.waggle-community';
/** The default data directory as users see it in UI copy and messages. */
export const DEFAULT_DATA_DIR_LABEL = `~/${DEFAULT_DATA_DIR_NAME}`;