feat(web): name ~/.waggle-community as the data directory (P1.3c)

Settings > Advanced and the Vault notice showed ~/.waggle. Take the path
from DEFAULT_DATA_DIR_LABEL in @waggle/shared (ADR-0011) and update the
comments that describe the first-launch flag and skill locations.
This commit is contained in:
shumeiko.it
2026-11-04 10:31:38 +01:00
parent 4fabed70c0
commit ad222e8bf3
5 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import { useEffect, useRef, useState } from 'react'; import { useEffect, useRef, useState } from 'react';
import { useSearchParams } from 'react-router-dom'; import { useSearchParams } from 'react-router-dom';
import { DEFAULT_DATA_DIR_LABEL } from '@waggle/shared';
import { import {
Cpu, Shield, Palette, Save, Loader2, Database, Cpu, Shield, Palette, Save, Loader2, Database,
Download, Upload, Wrench, DollarSign, Key, Lock, BarChart3, Trash2, Download, Upload, Wrench, DollarSign, Key, Lock, BarChart3, Trash2,
@@ -916,7 +917,7 @@ const SettingsApp = () => {
</div> </div>
<div className="p-3 rounded-xl bg-secondary/30 border border-border/30"> <div className="p-3 rounded-xl bg-secondary/30 border border-border/30">
<p className="text-xs font-display font-medium text-foreground mb-1">Data Directory</p> <p className="text-xs font-display font-medium text-foreground mb-1">Data Directory</p>
<p className="text-[11px] text-muted-foreground font-mono">~/.waggle/</p> <p className="text-[11px] text-muted-foreground font-mono">{DEFAULT_DATA_DIR_LABEL}/</p>
<p className="text-[11px] text-muted-foreground mt-1">All workspaces, memory, vault, and config live here.</p> <p className="text-[11px] text-muted-foreground mt-1">All workspaces, memory, vault, and config live here.</p>
</div> </div>
<BrowserCompanionSettings /> <BrowserCompanionSettings />

View File

@@ -1,4 +1,5 @@
import { useState, useEffect, useRef } from 'react'; import { useState, useEffect, useRef } from 'react';
import { DEFAULT_DATA_DIR_LABEL } from '@waggle/shared';
import { import {
Lock, Plus, Trash2, Eye, EyeOff, Loader2, Key, Plug, ExternalLink, Lock, Plus, Trash2, Eye, EyeOff, Loader2, Key, Plug, ExternalLink,
Shield, ChevronDown, ChevronRight, RefreshCw, CheckCircle2, User, Pencil, Shield, ChevronDown, ChevronRight, RefreshCw, CheckCircle2, User, Pencil,
@@ -264,7 +265,7 @@ const VaultApp = () => {
<p> <p>
<strong className="text-honey">The Vault is the single source for API keys.</strong> <strong className="text-honey">The Vault is the single source for API keys.</strong>
{' '}Values are encrypted with <strong>AES-256-GCM</strong> and stored locally at{' '} {' '}Values are encrypted with <strong>AES-256-GCM</strong> and stored locally at{' '}
<code className="px-1 py-0.5 rounded bg-muted text-[10px] text-honey">~/.waggle/vault</code>. <code className="px-1 py-0.5 rounded bg-muted text-[10px] text-honey">{DEFAULT_DATA_DIR_LABEL}/vault</code>.
</p> </p>
<p className="text-muted-foreground"> <p className="text-muted-foreground">
Keys never leave your machine, never appear in logs, and are only decrypted in-memory when the LLM SDK needs them. Clicking <strong>Reveal</strong> shows the value for 10 seconds, then auto-hides. Keys never leave your machine, never appear in logs, and are only decrypted in-memory when the LLM SDK needs them. Clicking <strong>Reveal</strong> shows the value for 10 seconds, then auto-hides.

View File

@@ -13,7 +13,7 @@ import { adapter } from '@/lib/adapter';
* Contracts honoured: * Contracts honoured:
* - C13: create-to-local only (POST /api/skills/create — marketplace publish * - C13: create-to-local only (POST /api/skills/create — marketplace publish
* lives in the Hub). Create == installed: the file lands in * lives in the Hub). Create == installed: the file lands in
* ~/.waggle/skills and appears under My Skills immediately. * ~/.waggle-community/skills and appears under My Skills immediately.
* - C14: inputs/outputs serialize into the markdown BODY ("## Inputs" / * - C14: inputs/outputs serialize into the markdown BODY ("## Inputs" /
* "## Outputs") — no frontmatter extension. The create route only accepts * "## Outputs") — no frontmatter extension. The create route only accepts
* name/description/steps/category, so the sections are appended with a * name/description/steps/category, so the sections are appended with a

View File

@@ -171,7 +171,7 @@ export const useOnboarding = () => {
}, []); }, []);
// CC Sesija A §2.3 A11: Tauri filesystem-flag fast-path for returning users. // CC Sesija A §2.3 A11: Tauri filesystem-flag fast-path for returning users.
// Runs in Tauri mode only; if ~/.waggle/first-launch.flag exists the user // Runs in Tauri mode only; if ~/.waggle-community/first-launch.flag exists the user
// has completed onboarding before (even if this WebView profile is fresh). // has completed onboarding before (even if this WebView profile is fresh).
// Auto-completes the wizard in that case. Complementary to the workspaces- // Auto-completes the wizard in that case. Complementary to the workspaces-
// check below — flag is faster + doesn't need sidecar; either trigger is // check below — flag is faster + doesn't need sidecar; either trigger is
@@ -285,7 +285,7 @@ export const useOnboarding = () => {
adapter.markOnboardingComplete().catch((err) => { adapter.markOnboardingComplete().catch((err) => {
console.warn('[useOnboarding] markOnboardingComplete failed:', err); console.warn('[useOnboarding] markOnboardingComplete failed:', err);
}); });
// CC Sesija A §2.3 A11: Tauri filesystem flag too (default ~/.waggle // CC Sesija A §2.3 A11: Tauri filesystem flag too (default ~/.waggle-community
// installs share the same file; the IPC path works even when the // installs share the same file; the IPC path works even when the
// sidecar is mid-restart). // sidecar is mid-restart).
if (isTauri()) { if (isTauri()) {

View File

@@ -234,7 +234,7 @@ export function listenAgentEnd(
// ─── onboarding (A10) ────────────────────────────────────────────────────── // ─── onboarding (A10) ──────────────────────────────────────────────────────
// CC Sesija A §2.3 Task A10. First-launch detection via Rust-managed // CC Sesija A §2.3 Task A10. First-launch detection via Rust-managed
// filesystem flag at `~/.waggle/first-launch.flag` (durable across reinstalls, // filesystem flag at `~/.waggle-community/first-launch.flag` (durable across reinstalls,
// unlike browser localStorage). useOnboarding still uses localStorage for the // unlike browser localStorage). useOnboarding still uses localStorage for the
// per-step state shape; these commands gate the initial wizard show/hide // per-step state shape; these commands gate the initial wizard show/hide
// decision in Tauri builds. // decision in Tauri builds.