chore(desktop): clean source package artifacts

This commit is contained in:
Xubin Ren
2026-06-06 16:56:39 +08:00
parent bc8a6547f5
commit 229dfe9f9c
7 changed files with 14 additions and 3707 deletions
+1
View File
@@ -11,6 +11,7 @@
desktop/build/ desktop/build/
desktop/dist/ desktop/dist/
desktop/node_modules/ desktop/node_modules/
desktop/package-lock.json
desktop/resources/nanobot-engine/ desktop/resources/nanobot-engine/
# Claude / AI assistant artifacts # Claude / AI assistant artifacts
+3 -1
View File
@@ -90,7 +90,9 @@ so updating the app replaces code without overwriting local user state.
## Runtime Contract ## Runtime Contract
- User data lives under the platform app data directory (`~/Library/Application Support/nanobot/` on macOS). - User data lives under Electron's platform app data directory. In development
this is usually `~/Library/Application Support/@nanobot/desktop/` on macOS;
packaged builds use the packaged app name.
- Fresh installs start the private engine directly. The Python desktop gateway - Fresh installs start the private engine directly. The Python desktop gateway
creates the first `config.json` with defaults, then shared WebUI settings own creates the first `config.json` with defaults, then shared WebUI settings own
provider, model, and credential setup. provider, model, and credential setup.
+5 -2
View File
@@ -77,10 +77,13 @@ permissions.
## Data Directory ## Data Directory
The host stores config, workspace, sessions, logs, and transient socket files The host stores config, workspace, sessions, logs, and transient socket files
under the platform app data directory. On macOS this is: under Electron's platform app data directory. In development on macOS this is
usually:
```text ```text
~/Library/Application Support/nanobot/ ~/Library/Application Support/@nanobot/desktop/
``` ```
Packaged builds use the packaged app name.
The app bundle is replaceable. User data is not stored in the bundle. The app bundle is replaceable. User data is not stored in the bundle.
+3 -2
View File
@@ -48,10 +48,11 @@ reload. Main/preload changes still require restarting `dev:app`.
## Checklist ## Checklist
- WebUI source remains product-neutral: - WebUI source remains host-neutral: it may branch on generic runtime
capabilities, but it must not import Electron or desktop source files.
```sh ```sh
rg -n "desktop|Desktop|nanobotDesktop" webui/src rg -n "from ['\\\"]electron|desktop/src|nanobotDesktop" webui/src
``` ```
This command should print nothing. This command should print nothing.
-3698
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -16,8 +16,8 @@ from datetime import datetime, timezone
from pathlib import Path from pathlib import Path
from typing import Any, Literal, Mapping from typing import Any, Literal, Mapping
from nanobot.apps.protocol import app_manifest, compact_dict
from nanobot.agent.tools.registry import ToolRegistry from nanobot.agent.tools.registry import ToolRegistry
from nanobot.apps.protocol import app_manifest, compact_dict
from nanobot.config.loader import load_config, resolve_config_env_vars, save_config from nanobot.config.loader import load_config, resolve_config_env_vars, save_config
from nanobot.config.paths import get_runtime_subdir from nanobot.config.paths import get_runtime_subdir
from nanobot.config.schema import MCPServerConfig from nanobot.config.schema import MCPServerConfig
+1 -3
View File
@@ -4,9 +4,7 @@ import { AlertCircle, ChevronRight, FileText, Loader2, X } from "lucide-react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { CodeBlock } from "@/components/CodeBlock"; import { CodeBlock } from "@/components/CodeBlock";
import { import { splitFilePath } from "@/components/FileReferenceChip";
splitFilePath,
} from "@/components/FileReferenceChip";
import { ApiError, fetchFilePreview } from "@/lib/api"; import { ApiError, fetchFilePreview } from "@/lib/api";
import type { FilePreviewPayload } from "@/lib/types"; import type { FilePreviewPayload } from "@/lib/types";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";