Skip to content

Commit 1c26f83

Browse files
authored
v1.0.5 (#74)
## ✨ 新功能 新增 DesignViewer 设计模式组件,支持 Tailwind CSS 样式编辑和实时预览 增强 TiptapVariableInput:支持变量输入、Markdown 语法、可编辑变量节点、自定义标签保护 添加项目导出、聊天任务取消、变量建议外部关闭、多行智能样式替换 ## 🐛 Bug 修复 修复文件上传/导入加载状态管理、useAppDevServer 支持 devServerUrl 为 null 修复 PagePreviewIframe 文档处理、智能体引导问题、聊天滚动检测逻辑 修复设计模式状态管理,迁移到 appDevDesign 模型 ## ♻️ 重构 重构 TiptapVariableInput 实现自包含变量树,移除 VariableInferenceInput 统一变量转换方法到工具库,提取滚动检测到独立 Hook 优化 DesignViewer 模块化,升级 TiptapVariableInput 到 React 18 API 清理调试日志和未使用代码 ## ⚡ 性能优化 优化 TiptapVariableInput 光标位置和滚动保持,使用 useCallback 优化 EditAgent
1 parent c3bce9d commit 1c26f83

File tree

185 files changed

+35997
-8209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+35997
-8209
lines changed

.stylelintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 忽略第三方生成的 CSS 文件
2+
public/sdk/tailwind_design_mode.all.css
3+

CONTRIBUTING.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## Development Setup
44

5-
65
1. Install Dependencies
76

87
```bash
@@ -27,8 +26,6 @@ npm run dev
2726

2827
Open browser and visit `http://localhost:3000`
2928

30-
31-
3229
## Project Structure
3330

3431
```text
@@ -72,11 +69,10 @@ public/
7269
└── bg/ # Background image resources
7370
```
7471

75-
7672
## Building
7773

78-
7974
#### Development Environment Build
75+
8076
```bash
8177
pnpm build:dev
8278
```
@@ -86,13 +82,13 @@ pnpm build:dev
8682
```bash
8783
pnpm build:prod
8884
```
85+
8986
#### Local Preview of Build Results
9087

9188
```bash
9289
pnpm serve
9390
```
9491

95-
9692
### Code Standards
9793

9894
- **TypeScript**: All new files must use TypeScript, component Props and State must have type annotations
@@ -102,7 +98,6 @@ pnpm serve
10298
- **Performance Optimization**: Use `useMemo` and `useCallback` to optimize rendering, routes and components must be lazy loaded
10399
- **Code Quality**: Follow ESLint and Prettier standards, each component must have detailed JSDoc comments
104100

105-
106101
#### Performance Optimization
107102

108103
- **Route Lazy Loading**: Use React.lazy and UmiJS dynamic loading

CONTRIBUTING.zh-CN.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## Development Setup
44

5-
65
1. Install Dependencies
76

87
```bash
@@ -27,8 +26,6 @@ npm run dev
2726

2827
Open browser and visit `http://localhost:3000`
2928

30-
31-
3229
## Project Structure
3330

3431
```text
@@ -72,11 +69,10 @@ public/
7269
└── bg/ # Background image resources
7370
```
7471

75-
7672
## Building
7773

78-
7974
#### Development Environment Build
75+
8076
```bash
8177
pnpm build:dev
8278
```
@@ -86,13 +82,13 @@ pnpm build:dev
8682
```bash
8783
pnpm build:prod
8884
```
85+
8986
#### Local Preview of Build Results
9087

9188
```bash
9289
pnpm serve
9390
```
9491

95-
9692
### Code Standards
9793

9894
- **TypeScript**: All new files must use TypeScript, component Props and State must have type annotations
@@ -102,7 +98,6 @@ pnpm serve
10298
- **Performance Optimization**: Use `useMemo` and `useCallback` to optimize rendering, routes and components must be lazy loaded
10399
- **Code Quality**: Follow ESLint and Prettier standards, each component must have detailed JSDoc comments
104100

105-
106101
#### Performance Optimization
107102

108103
- **Route Lazy Loading**: Use React.lazy and UmiJS dynamic loading

README.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Nuwax
2+
23
Nuwax AI - Easily build and deploy your private Agentic AI solutions.
34

45
Official Website: https://nuwax.com
@@ -16,23 +17,27 @@ Use the official nuwax-cli command tool to quickly deploy services locally.
1617
#### Environment Preparation
1718

1819
##### System Requirements
20+
1921
- **System Requirements**: Ubuntu 22.04 LTS or later (other Linux versions not fully tested), macOS 10.15+, Windows 10/11 (support coming soon)
2022
- **Hardware Requirements**: 4 cores 8GB RAM or higher
2123
- **Environment Requirements**: docker, docker-compose V2 environment [Docker Installation Guide](#docker-environment-installation)
2224

2325
##### Supported Platforms
26+
2427
- **Linux**: x86_64, ARM64
25-
- Ubuntu 22.04 LTS (recommended)
26-
- Current user needs Docker permissions, verify with `docker ps`. If you encounter permission issues, you can run with sudo privileges.
27-
- Alibaba Cloud mirror acceleration is recommended
28+
- Ubuntu 22.04 LTS (recommended)
29+
- Current user needs Docker permissions, verify with `docker ps`. If you encounter permission issues, you can run with sudo privileges.
30+
- Alibaba Cloud mirror acceleration is recommended
2831
- **macOS**: Intel, Apple Silicon (M1/M2), Universal
29-
- macOS 10.15 (Catalina) and later versions
30-
- OrbStack is recommended (free for personal use, better performance)
31-
- Ensure OrbStack or Docker Desktop is started
32-
- First-time use may require allowing unknown developers: System Preferences → Security & Privacy
32+
- macOS 10.15 (Catalina) and later versions
33+
- OrbStack is recommended (free for personal use, better performance)
34+
- Ensure OrbStack or Docker Desktop is started
35+
- First-time use may require allowing unknown developers: System Preferences → Security & Privacy
3336

3437
##### Client Download
38+
3539
> The client is only a deployment tool and does not include the platform software package
40+
3641
- [nuwax-cli-linux-amd64.tar.gz](https://nuwa-packages.oss-rg-china-mainland.aliyuncs.com/duck-client-releases/v1.0.65/nuwax-cli-linux-amd64.tar.gz)
3742
- [nuwax-cli-linux-arm64.tar.gz](https://nuwa-packages.oss-rg-china-mainland.aliyuncs.com/duck-client-releases/v1.0.65/nuwax-cli-linux-arm64.tar.gz)
3843
- [nuwax-cli-macos-universal.tar.gz](https://nuwa-packages.oss-rg-china-mainland.aliyuncs.com/duck-client-releases/v1.0.65/nuwax-cli-macos-universal.tar.gz) (amd64&arm64)
@@ -42,6 +47,7 @@ Use the official nuwax-cli command tool to quickly deploy services locally.
4247
The following commands require Docker permissions or can be run with sudo
4348

4449
#### Linux / macOS
50+
4551
```bash
4652
# Example working directory
4753
mkdir nuwax_deploy
@@ -70,6 +76,7 @@ chmod +x nuwax-cli
7076
```
7177

7278
> **Important Note**: It is recommended to regularly upgrade the command line tool by executing in the working directory:
79+
>
7380
> ```bash
7481
> ./nuwax-cli check-update install
7582
> ```
@@ -85,62 +92,74 @@ Login with default administrator account: `admin@nuwax.com` password: `123456`
8592
> Note: If port 80 is occupied, you can specify a port for deployment, such as: `./nuwax-cli auto-upgrade-deploy run --port 8099`
8693
8794
##### Important Configuration
95+
8896
Please modify promptly after login:
97+
8998
- Administrator password
9099
- Site information configuration
91100
- Email service configuration for user registration and login verification codes.
92101
93102
### Troubleshooting
94103
95104
#### 1. Service Startup Failed
105+
96106
- Check if Docker is running properly
97107
- Use `./nuwax-cli status` to view detailed status
98108
- Check if ports are occupied
99109
100110
#### 2. Unable to Access Service
111+
101112
- Confirm service has started properly, you can execute `docker ps` or `./nuwax-cli ducker` to view container status
102113
- Check firewall settings
103114
- Confirm port configuration is correct
104115
105116
#### 3. Permission Issues - Permission denied
117+
106118
- **Linux (Ubuntu 22.04 LTS)**: Ensure user is in docker group
107119
- **macOS**: Allow unknown developers to run, ensure OrbStack or Docker Desktop is started
108120
109121
Use `sudo` to execute commands: `sudo ./nuwax-cli auto-upgrade-deploy run`
110122
111123
#### 4. Extraction Failed - Directory not empty(os error 39)
124+
112125
First stop Docker service: `./nuwax-cli docker-service stop`, then manually delete the `docker` directory in the working directory and re-execute the deployment command.
113126
114127
#### 5. Interface Shows System Exception
128+
115129
Check backend logs: `./docker/logs/agent/app.log`, usually restarting the service can resolve:
130+
116131
```bash
117132
./nuwax-cli docker-service restart
118133
```
119134
120135
#### 6. Download Failed - error decoding response body
136+
121137
Network issues cause this, re-executing the deployment command will work, supports resumable downloads.
122138
123139
### Common Management Commands
124140
125141
#### Service Management
142+
126143
- Start service: `./nuwax-cli docker-service start`
127144
- Stop service: `./nuwax-cli docker-service stop`
128145
- Restart service: `./nuwax-cli docker-service restart`
129146
- Check status: `./nuwax-cli docker-service status`
130147
131148
#### Backup Management
149+
132150
> Backup service requires stopping Docker application servers, it's recommended to operate during business low-peak periods
133151
134152
- **One-click Backup (Recommended):**
135-
- Manual backup execution: `./nuwax-cli auto-backup run`
136-
- List all backups: `./nuwax-cli list-backups`
137-
- Restore from backup: `./nuwax-cli rollback [BACKUP_ID]`
153+
- Manual backup execution: `./nuwax-cli auto-backup run`
154+
- List all backups: `./nuwax-cli list-backups`
155+
- Restore from backup: `./nuwax-cli rollback [BACKUP_ID]`
138156
139157
#### Upgrade Management
140158
141159
**Application service upgrade, using command `./nuwax-cli auto-upgrade-deploy run` will automatically detect and download new versions for deployment.**
142160
143161
Complete upgrade process:
162+
144163
```bash
145164
# Check if deployment client has new version and update
146165
./nuwax-cli check-update install
@@ -163,6 +182,7 @@ This installation guide includes detailed installation steps for the following p
163182
- **Installation verification and troubleshooting**
164183
165184
**Quick Docker Installation Verification:**
185+
166186
```bash
167187
# Check Docker version
168188
docker --version

0 commit comments

Comments
 (0)