xykj-plus/claude-ecc/dev-assistant/config/dev-assistant.yaml
2026-06-13 13:48:51 +08:00

111 lines
2.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# =============================================================================
# dev-assistant 默认配置admin-xy 项目)
# -----------------------------------------------------------------------------
# 模型路由由 UI 管理,存于 dev-assistant/.cache/endpoints.jsongitignore
# API Key走 keychain 或 .cache/keys.enc不写入本文件
# =============================================================================
# --------- 项目信息(驱动 AI 系统提示) ----------
project:
name: admin-xy
description: 企业管理系统 — 用户/角色/菜单/权限管理
techStack:
- Spring Boot 3
- Java 21
- React 18
- Vite
- TypeScript
- Tailwind + Radix UI
conventions:
- 分层架构Controller → Service → Repository → Entity → DTO
- JWT 无状态认证
- Flyway 数据库迁移
- Zod 表单校验
- 统一响应 ApiResponse<T>
# --------- 工作目录 ----------
workspace:
root: ./
allowWrite:
- admin-xy/**
- dev-assistant/**
denyWrite:
- .claude/**
- '**/.env*'
- '**/target/**'
- '**/node_modules/**'
- '**/dist/**'
# --------- 日志源 ----------
logs:
- id: admin-server
label: admin-xy Spring Boot
path: admin-xy/server/logs/app.log
format: logback-json
tailLines: 500
followDurationSec: 30
- id: admin-server-error
label: admin-xy 错误日志
path: admin-xy/server/logs/error.log
format: logback-json
tailLines: 200
priority: high
# --------- 上下文预算 ----------
context:
maxPromptTokens: 16000
attachAsFileThreshold: 4000
cacheDir: dev-assistant/.cache
console:
keepLines: 200
network:
keepRequests: 50
captureBody: true
bodyMaxBytes: 4096
redactHeaders:
- authorization
- cookie
- set-cookie
# --------- 场景模板 ----------
scenarios:
modify:
label: 调整现有页面
requireSelection: true
add:
label: 新增页面能力
requireSelection: false
bugfix:
label: 排查页面问题
requireSelection: false
attachErrorLogs: true
followJavaLogs: true
feature:
label: 新增业务功能
requireSelection: false
ui:
label: 界面优化
requireSelection: false
# --------- 桥接服务 ----------
# 部署环境通过环境变量覆盖:
# BRIDGE_HOST 监听地址(容器 0.0.0.0 / 裸机 127.0.0.1
# BRIDGE_AUTH_VERIFY_URL admin-xy /api/auth/me 校验地址
# BRIDGE_AUTH_DISABLED true 时跳过鉴权(仅本机开发)
# BRIDGE_ORIGIN CORS 允许的前端 Origin
bridge:
port: 9020
host: 127.0.0.1
wsPath: /copilot
origin: https://oa.xiangyuetech.cn
wsIdleTimeoutMs: 1800000 # 30 分钟
maxConcurrentChats: 1
auth:
verifyUrl: http://server:9010/api/auth/me # docker compose 内部域名
requiredRole: ROLE_ADMIN
cacheTtlSec: 60
disabled: false
rateLimit:
chatPerMinute: 20
httpPerMinute: 120