#add git monitor
This commit is contained in:
BIN
.serena/cache/php/document_symbols_cache_v23-06-25.pkl
vendored
Normal file
BIN
.serena/cache/php/document_symbols_cache_v23-06-25.pkl
vendored
Normal file
Binary file not shown.
10
.serena/memories/代码库结构.md
Normal file
10
.serena/memories/代码库结构.md
Normal 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/`:单元/特性测试。
|
||||||
6
.serena/memories/代码风格和约定.md
Normal file
6
.serena/memories/代码风格和约定.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# 代码风格和约定
|
||||||
|
|
||||||
|
- 缩进:4 空格;换行:LF;文件编码:UTF-8(见 `.editorconfig`)。
|
||||||
|
- PHP 风格:遵循 Laravel 默认代码风格,建议使用 Pint 格式化(`./vendor/bin/pint`)。
|
||||||
|
- 命名:遵循 Laravel 约定(Model 在 `App\Models`,Factory 在 `Database\Factories`,路由在 `routes/`)。
|
||||||
|
- Eloquent:Model 使用 `$fillable`、`$casts` 等标准写法。
|
||||||
6
.serena/memories/任务完成检查清单.md
Normal file
6
.serena/memories/任务完成检查清单.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# 任务完成检查清单
|
||||||
|
|
||||||
|
- 相关改动能通过 `php -l` 基础语法检查。
|
||||||
|
- 运行 `./vendor/bin/pint`(如项目要求统一格式)。
|
||||||
|
- 运行 `composer test`(至少覆盖/不破坏已有测试)。
|
||||||
|
- 确认路由/配置变更不会影响本地环境(必要时 `php artisan optimize:clear`)。
|
||||||
25
.serena/memories/建议命令.md
Normal file
25
.serena/memories/建议命令.md
Normal 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`
|
||||||
7
.serena/memories/技术栈.md
Normal file
7
.serena/memories/技术栈.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# 技术栈
|
||||||
|
|
||||||
|
- 后端:PHP ^8.2,Laravel Framework ^12(见 `composer.json`)。
|
||||||
|
- 依赖:`lesstif/php-jira-rest-client`(JIRA REST Client),PDO 扩展。
|
||||||
|
- 测试:PHPUnit ^11(`phpunit.xml`,`composer test`)。
|
||||||
|
- 代码风格:Laravel Pint(`laravel/pint`)。
|
||||||
|
- 前端:Vite + Vue 3 + Tailwind CSS(`package.json`),并使用 CodeMirror 6 相关包。
|
||||||
9
.serena/memories/项目概述.md
Normal file
9
.serena/memories/项目概述.md
Normal 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
68
.serena/project.yml
Normal 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"
|
||||||
28
database/factories/ConfigFactory.php
Normal file
28
database/factories/ConfigFactory.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Config>
|
||||||
|
*/
|
||||||
|
class ConfigFactory extends Factory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Define the model's default state.
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
public function definition(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'key' => fake()->unique()->lexify('config_??????'),
|
||||||
|
'value' => [
|
||||||
|
'enabled' => fake()->boolean(),
|
||||||
|
'name' => fake()->word(),
|
||||||
|
],
|
||||||
|
'description' => fake()->sentence(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user