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:
@@ -1,5 +1,6 @@
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { useSearchParams } from 'react-router-dom';
|
||||
import { DEFAULT_DATA_DIR_LABEL } from '@waggle/shared';
|
||||
import {
|
||||
Cpu, Shield, Palette, Save, Loader2, Database,
|
||||
Download, Upload, Wrench, DollarSign, Key, Lock, BarChart3, Trash2,
|
||||
@@ -916,7 +917,7 @@ const SettingsApp = () => {
|
||||
</div>
|
||||
<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-[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>
|
||||
</div>
|
||||
<BrowserCompanionSettings />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useState, useEffect, useRef } from 'react';
|
||||
import { DEFAULT_DATA_DIR_LABEL } from '@waggle/shared';
|
||||
import {
|
||||
Lock, Plus, Trash2, Eye, EyeOff, Loader2, Key, Plug, ExternalLink,
|
||||
Shield, ChevronDown, ChevronRight, RefreshCw, CheckCircle2, User, Pencil,
|
||||
@@ -264,7 +265,7 @@ const VaultApp = () => {
|
||||
<p>
|
||||
<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{' '}
|
||||
<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 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.
|
||||
|
||||
@@ -13,7 +13,7 @@ import { adapter } from '@/lib/adapter';
|
||||
* Contracts honoured:
|
||||
* - C13: create-to-local only (POST /api/skills/create — marketplace publish
|
||||
* 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" /
|
||||
* "## Outputs") — no frontmatter extension. The create route only accepts
|
||||
* name/description/steps/category, so the sections are appended with a
|
||||
|
||||
@@ -171,7 +171,7 @@ export const useOnboarding = () => {
|
||||
}, []);
|
||||
|
||||
// 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).
|
||||
// Auto-completes the wizard in that case. Complementary to the workspaces-
|
||||
// check below — flag is faster + doesn't need sidecar; either trigger is
|
||||
@@ -285,7 +285,7 @@ export const useOnboarding = () => {
|
||||
adapter.markOnboardingComplete().catch((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
|
||||
// sidecar is mid-restart).
|
||||
if (isTauri()) {
|
||||
|
||||
@@ -234,7 +234,7 @@ export function listenAgentEnd(
|
||||
|
||||
// ─── onboarding (A10) ──────────────────────────────────────────────────────
|
||||
// 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
|
||||
// per-step state shape; these commands gate the initial wizard show/hide
|
||||
// decision in Tauri builds.
|
||||
|
||||
Reference in New Issue
Block a user