From a8044cc1c28edf8131eb1fc98eaeb2c1829cd2bf Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Thu, 5 Mar 2026 11:34:00 +0800 Subject: [PATCH] feat: add copyright and author attribution to source files Add copyright notice and author attribution to multiple Python files in the gns3-copilot module. This ensures proper licensing attribution and clarifies authorship for the project files. --- gns3server/agent/gns3_copilot/__init__.py | 3 ++ .../agent/gns3_copilot/agent/__init__.py | 3 ++ .../gns3_copilot/agent/context_manager.py | 3 ++ .../agent/gns3_copilot/agent/gns3_copilot.py | 3 ++ .../agent/gns3_copilot/agent/model_factory.py | 3 ++ .../agent/gns3_copilot/agent_service.py | 3 ++ .../gns3_copilot/chat_sessions_repository.py | 3 ++ .../gns3_copilot/gns3_client/__init__.py | 3 ++ .../gns3_client/connector_factory.py | 3 ++ .../gns3_copilot/gns3_client/custom_gns3fy.py | 3 ++ .../gns3_client/gns3_project_info.py | 3 ++ .../gns3_client/gns3_topology_reader.py | 3 ++ .../gns3_copilot/project_agent_manager.py | 3 ++ .../agent/gns3_copilot/prompts/__init__.py | 3 ++ .../agent/gns3_copilot/prompts/base_prompt.py | 3 ++ .../gns3_copilot/prompts/prompt_loader.py | 3 ++ .../gns3_copilot/prompts/title_prompt.py | 3 ++ .../agent/gns3_copilot/tools_v2/__init__.py | 3 ++ .../tools_v2/config_tools_nornir.py | 3 ++ .../tools_v2/display_tools_nornir.py | 3 ++ .../gns3_copilot/tools_v2/gns3_create_link.py | 3 ++ .../gns3_copilot/tools_v2/gns3_create_node.py | 3 ++ .../tools_v2/gns3_get_node_temp.py | 3 ++ .../gns3_copilot/tools_v2/gns3_start_node.py | 3 ++ .../tools_v2/gns3_update_node_name.py | 3 ++ .../tools_v2/vpcs_tools_telnetlib3.py | 3 ++ .../agent/gns3_copilot/utils/__init__.py | 3 ++ .../utils/get_gns3_device_port.py | 3 ++ .../gns3_copilot/utils/gns3_drawing_utils.py | 3 ++ .../gns3_copilot/utils/llm_config_helper.py | 3 ++ .../gns3_copilot/utils/message_converters.py | 28 ++++++++++++------- .../gns3_copilot/utils/parse_tool_content.py | 3 ++ 32 files changed, 111 insertions(+), 10 deletions(-) diff --git a/gns3server/agent/gns3_copilot/__init__.py b/gns3server/agent/gns3_copilot/__init__.py index f6aa26a80..ecbb76ca1 100644 --- a/gns3server/agent/gns3_copilot/__init__.py +++ b/gns3server/agent/gns3_copilot/__init__.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/agent/__init__.py b/gns3server/agent/gns3_copilot/agent/__init__.py index eb06974df..57c67d8e8 100644 --- a/gns3server/agent/gns3_copilot/agent/__init__.py +++ b/gns3server/agent/gns3_copilot/agent/__init__.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/agent/context_manager.py b/gns3server/agent/gns3_copilot/agent/context_manager.py index 25244429e..1e8cc988f 100644 --- a/gns3server/agent/gns3_copilot/agent/context_manager.py +++ b/gns3server/agent/gns3_copilot/agent/context_manager.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/agent/gns3_copilot.py b/gns3server/agent/gns3_copilot/agent/gns3_copilot.py index 7679768db..06999db1e 100644 --- a/gns3server/agent/gns3_copilot/agent/gns3_copilot.py +++ b/gns3server/agent/gns3_copilot/agent/gns3_copilot.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/agent/model_factory.py b/gns3server/agent/gns3_copilot/agent/model_factory.py index 3d7ec022d..3b7460775 100644 --- a/gns3server/agent/gns3_copilot/agent/model_factory.py +++ b/gns3server/agent/gns3_copilot/agent/model_factory.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/agent_service.py b/gns3server/agent/gns3_copilot/agent_service.py index 59ddbcc9c..a46d79bca 100644 --- a/gns3server/agent/gns3_copilot/agent_service.py +++ b/gns3server/agent/gns3_copilot/agent_service.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/chat_sessions_repository.py b/gns3server/agent/gns3_copilot/chat_sessions_repository.py index 191bab228..5fca1f0a7 100644 --- a/gns3server/agent/gns3_copilot/chat_sessions_repository.py +++ b/gns3server/agent/gns3_copilot/chat_sessions_repository.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/gns3_client/__init__.py b/gns3server/agent/gns3_copilot/gns3_client/__init__.py index ef15bb76a..b515dcc81 100644 --- a/gns3server/agent/gns3_copilot/gns3_client/__init__.py +++ b/gns3server/agent/gns3_copilot/gns3_client/__init__.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/gns3_client/connector_factory.py b/gns3server/agent/gns3_copilot/gns3_client/connector_factory.py index 44bdb2c39..1c81527fd 100644 --- a/gns3server/agent/gns3_copilot/gns3_client/connector_factory.py +++ b/gns3server/agent/gns3_copilot/gns3_client/connector_factory.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py b/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py index aa7203c2a..0dd347a69 100644 --- a/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py +++ b/gns3server/agent/gns3_copilot/gns3_client/custom_gns3fy.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/gns3_client/gns3_project_info.py b/gns3server/agent/gns3_copilot/gns3_client/gns3_project_info.py index b6f150c0f..f5707b43c 100644 --- a/gns3server/agent/gns3_copilot/gns3_client/gns3_project_info.py +++ b/gns3server/agent/gns3_copilot/gns3_client/gns3_project_info.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/gns3_client/gns3_topology_reader.py b/gns3server/agent/gns3_copilot/gns3_client/gns3_topology_reader.py index 71e914623..6d6fb427a 100644 --- a/gns3server/agent/gns3_copilot/gns3_client/gns3_topology_reader.py +++ b/gns3server/agent/gns3_copilot/gns3_client/gns3_topology_reader.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/project_agent_manager.py b/gns3server/agent/gns3_copilot/project_agent_manager.py index 9d91ec9a6..551481642 100644 --- a/gns3server/agent/gns3_copilot/project_agent_manager.py +++ b/gns3server/agent/gns3_copilot/project_agent_manager.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/prompts/__init__.py b/gns3server/agent/gns3_copilot/prompts/__init__.py index 3deef6c0c..6aa0e2a23 100644 --- a/gns3server/agent/gns3_copilot/prompts/__init__.py +++ b/gns3server/agent/gns3_copilot/prompts/__init__.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/prompts/base_prompt.py b/gns3server/agent/gns3_copilot/prompts/base_prompt.py index d1c331820..d0c16b8b2 100644 --- a/gns3server/agent/gns3_copilot/prompts/base_prompt.py +++ b/gns3server/agent/gns3_copilot/prompts/base_prompt.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/prompts/prompt_loader.py b/gns3server/agent/gns3_copilot/prompts/prompt_loader.py index 40483e2f2..ed9397987 100644 --- a/gns3server/agent/gns3_copilot/prompts/prompt_loader.py +++ b/gns3server/agent/gns3_copilot/prompts/prompt_loader.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/prompts/title_prompt.py b/gns3server/agent/gns3_copilot/prompts/title_prompt.py index 62a1b8b58..9192cca1c 100644 --- a/gns3server/agent/gns3_copilot/prompts/title_prompt.py +++ b/gns3server/agent/gns3_copilot/prompts/title_prompt.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # diff --git a/gns3server/agent/gns3_copilot/tools_v2/__init__.py b/gns3server/agent/gns3_copilot/tools_v2/__init__.py index 77adbfa82..5b5765973 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/__init__.py +++ b/gns3server/agent/gns3_copilot/tools_v2/__init__.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py b/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py index 601d7c11f..11f410c85 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py +++ b/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py b/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py index 0fffe95ed..baa4dbd83 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py +++ b/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/gns3_create_link.py b/gns3server/agent/gns3_copilot/tools_v2/gns3_create_link.py index e7d17ed01..707906d2a 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/gns3_create_link.py +++ b/gns3server/agent/gns3_copilot/tools_v2/gns3_create_link.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/gns3_create_node.py b/gns3server/agent/gns3_copilot/tools_v2/gns3_create_node.py index 2c380ae03..b6bfceb4e 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/gns3_create_node.py +++ b/gns3server/agent/gns3_copilot/tools_v2/gns3_create_node.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/gns3_get_node_temp.py b/gns3server/agent/gns3_copilot/tools_v2/gns3_get_node_temp.py index 6c51dea97..a4cd48594 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/gns3_get_node_temp.py +++ b/gns3server/agent/gns3_copilot/tools_v2/gns3_get_node_temp.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/gns3_start_node.py b/gns3server/agent/gns3_copilot/tools_v2/gns3_start_node.py index fde9c16dc..1c397c4a8 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/gns3_start_node.py +++ b/gns3server/agent/gns3_copilot/tools_v2/gns3_start_node.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/gns3_update_node_name.py b/gns3server/agent/gns3_copilot/tools_v2/gns3_update_node_name.py index fb760358f..380d4516b 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/gns3_update_node_name.py +++ b/gns3server/agent/gns3_copilot/tools_v2/gns3_update_node_name.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_telnetlib3.py b/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_telnetlib3.py index c17f2957a..c5d36ada7 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_telnetlib3.py +++ b/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_telnetlib3.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/utils/__init__.py b/gns3server/agent/gns3_copilot/utils/__init__.py index d9863449b..b11390aae 100644 --- a/gns3server/agent/gns3_copilot/utils/__init__.py +++ b/gns3server/agent/gns3_copilot/utils/__init__.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/utils/get_gns3_device_port.py b/gns3server/agent/gns3_copilot/utils/get_gns3_device_port.py index a6873be75..713d14625 100644 --- a/gns3server/agent/gns3_copilot/utils/get_gns3_device_port.py +++ b/gns3server/agent/gns3_copilot/utils/get_gns3_device_port.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py b/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py index 005888f90..d73cd8ca4 100644 --- a/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py +++ b/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/utils/llm_config_helper.py b/gns3server/agent/gns3_copilot/utils/llm_config_helper.py index fee056cce..34a6077b1 100644 --- a/gns3server/agent/gns3_copilot/utils/llm_config_helper.py +++ b/gns3server/agent/gns3_copilot/utils/llm_config_helper.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """ diff --git a/gns3server/agent/gns3_copilot/utils/message_converters.py b/gns3server/agent/gns3_copilot/utils/message_converters.py index 6ec5e7350..b52ec5d3f 100644 --- a/gns3server/agent/gns3_copilot/utils/message_converters.py +++ b/gns3server/agent/gns3_copilot/utils/message_converters.py @@ -1,19 +1,27 @@ # SPDX-License-Identifier: GPL-3.0-or-later # -# This file is part of GNS3 Server. +# GNS3-Copilot - AI-powered Network Lab Assistant for GNS3 # -# GNS3 Server is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This file is part of GNS3-Copilot project. +# +# GNS3-Copilot is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at your +# option) any later version. +# +# GNS3-Copilot is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with GNS3-Copilot. If not, see . +# +# Project Home: https://github.com/yueguobin/gns3-copilot +# """ diff --git a/gns3server/agent/gns3_copilot/utils/parse_tool_content.py b/gns3server/agent/gns3_copilot/utils/parse_tool_content.py index 541de35c6..554bebaac 100644 --- a/gns3server/agent/gns3_copilot/utils/parse_tool_content.py +++ b/gns3server/agent/gns3_copilot/utils/parse_tool_content.py @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with GNS3-Copilot. If not, see . # +# Copyright (C) 2025 Guobin Yue +# Author: Guobin Yue +# # Project Home: https://github.com/yueguobin/gns3-copilot # """