mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-08 05:18:49 +03:00
chore(desktop): clean source package artifacts
This commit is contained in:
@@ -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
@@ -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.
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Generated
-3698
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user