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.
This commit is contained in:
12
packages/shared/src/data-dir.ts
Normal file
12
packages/shared/src/data-dir.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 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}`;
|
||||
@@ -2,6 +2,7 @@
|
||||
export * from './types.js';
|
||||
export * from './schemas.js';
|
||||
export * from './constants.js';
|
||||
export * from './data-dir.js';
|
||||
export * from './mcp-catalog.js';
|
||||
export * from './connector-recommendations.js';
|
||||
export * from './tool-detection.js';
|
||||
|
||||
@@ -47,7 +47,7 @@ export type ToolReleaseStatus = 'supported' | 'roadmap';
|
||||
* AI-OS #5 — declarative descriptor for one external tool. The single source of
|
||||
* truth for the per-tool facts that used to be duplicated across SUPPORTED_TOOLS
|
||||
* / LAUNCH_COHORT / TOOL_DISPLAY_NAMES / the per-tool detectors. Built-ins live in BUILTIN_TOOL_MANIFESTS; third-party
|
||||
* adapters are loaded (data-only) from ~/.waggle/adapters/*.json.
|
||||
* adapters are loaded (data-only) from ~/.waggle-community/adapters/*.json.
|
||||
*/
|
||||
export interface ToolManifest {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user