#add git monitor

This commit is contained in:
2025-12-18 10:19:11 +08:00
parent 5f6bba1d9f
commit 3f27eb07c2
9 changed files with 159 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,10 @@
# 代码库结构
- `app/Http/Controllers/`Web/API 控制器(如 Env/Jira/MessageSync/MessageDispatch 等)。
- `app/Models/`Eloquent 模型(如 `Config`)。
- `database/migrations/`:数据库迁移。
- `database/factories/`Model factories用于测试/seed
- `routes/web.php`页面入口路由admin 框架)。
- `routes/api.php`:后端 API 路由。
- `resources/`:前端资源(通常是 Vue/Vite 入口、视图等)。
- `tests/`:单元/特性测试。

View File

@@ -0,0 +1,6 @@
# 代码风格和约定
- 缩进4 空格换行LF文件编码UTF-8`.editorconfig`)。
- PHP 风格:遵循 Laravel 默认代码风格,建议使用 Pint 格式化(`./vendor/bin/pint`)。
- 命名:遵循 Laravel 约定Model 在 `App\Models`Factory 在 `Database\Factories`,路由在 `routes/`)。
- EloquentModel 使用 `$fillable``$casts` 等标准写法。

View File

@@ -0,0 +1,6 @@
# 任务完成检查清单
- 相关改动能通过 `php -l` 基础语法检查。
- 运行 `./vendor/bin/pint`(如项目要求统一格式)。
- 运行 `composer test`(至少覆盖/不破坏已有测试)。
- 确认路由/配置变更不会影响本地环境(必要时 `php artisan optimize:clear`)。

View File

@@ -0,0 +1,25 @@
# 建议命令
## 安装依赖
- PHP 依赖:`composer install`
- 前端依赖:`npm ci`
## 开发运行
- 一键开发(后端 serve + queue + pail + vite`composer dev`
- 单独启动后端:`php artisan serve`
- 单独启动前端:`npm run dev`
## 测试
- 运行测试:`composer test`(内部会 `php artisan test`
## 格式化
- PHP 格式化:`./vendor/bin/pint`
## 常用 Artisan
- 迁移:`php artisan migrate`
- 清缓存:`php artisan optimize:clear`

View File

@@ -0,0 +1,7 @@
# 技术栈
- 后端PHP ^8.2Laravel Framework ^12`composer.json`)。
- 依赖:`lesstif/php-jira-rest-client`JIRA REST ClientPDO 扩展。
- 测试PHPUnit ^11`phpunit.xml``composer test`)。
- 代码风格Laravel Pint`laravel/pint`)。
- 前端Vite + Vue 3 + Tailwind CSS`package.json`),并使用 CodeMirror 6 相关包。

View File

@@ -0,0 +1,9 @@
# 项目概述
- 这是一个基于 Laravel 的内部工具站点toolbox
- 提供 Web 管理界面(`routes/web.php` 统一走 `AdminController@index` 渲染前端框架),以及一组 API`routes/api.php`)。
- 主要功能模块(从路由推断):
- 环境管理env 项目/环境查看、保存、应用、导入、创建、删除)
- JIRA配置、周报生成/下载、工时日志)
- 消息同步(查询、同步、连接测试、对比 event-consumer、导出缺失消息等
- 消息分发(服务/路由/域名/国家码查询、异常分发查询、批量更新)

68
.serena/project.yml Normal file
View File

@@ -0,0 +1,68 @@
# language of the project (csharp, python, rust, java, typescript, go, cpp, or ruby)
# * For C, use cpp
# * For JavaScript, use typescript
# Special requirements:
# * csharp: Requires the presence of a .sln file in the project folder.
language: php
# whether to use the project's gitignore file to ignore files
# Added on 2025-04-07
ignore_all_files_in_gitignore: true
# list of additional paths to ignore
# same syntax as gitignore, so you can use * and **
# Was previously called `ignored_dirs`, please update your config if you are using that.
# Added (renamed) on 2025-04-07
ignored_paths: []
# whether the project is in read-only mode
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
# Added on 2025-04-18
read_only: false
# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
# Below is the complete list of tools for convenience.
# To make sure you have the latest list of tools, and to view their descriptions,
# execute `uv run scripts/print_tool_overview.py`.
#
# * `activate_project`: Activates a project by name.
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
# * `create_text_file`: Creates/overwrites a file in the project directory.
# * `delete_lines`: Deletes a range of lines within a file.
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
# * `execute_shell_command`: Executes a shell command.
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
# * `initial_instructions`: Gets the initial instructions for the current project.
# Should only be used in settings where the system prompt cannot be set,
# e.g. in clients you have no control over, like Claude Desktop.
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
# * `insert_at_line`: Inserts content at a given line in a file.
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
# * `list_memories`: Lists memories in Serena's project-specific memory store.
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
# * `read_file`: Reads a file within the project directory.
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
# * `remove_project`: Removes a project from the Serena configuration.
# * `replace_lines`: Replaces a range of lines within a file with new content.
# * `replace_symbol_body`: Replaces the full definition of a symbol.
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
# * `search_for_pattern`: Performs a search for a pattern in the project.
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
# * `switch_modes`: Activates modes by providing a list of their names
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
excluded_tools: []
# initial prompt for the project. It will always be given to the LLM upon activating the project
# (contrary to the memories, which are loaded on demand).
initial_prompt: ""
project_name: "toolbox"